[02:59:44]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [02:59:44]Read from MH i2c: E2 [02:59:44]MH_I2C_Read... [02:59:44]Read from MH i2c: E2 03 00 [02:59:44]MH_I2C_Read... [02:59:44]Read from MH i2c: E2 03 00 40 0D 00 90 00 C1 [02:59:44]RAPDU: 90 00 [02:59:44]wFMCommunicate OK [02:59:44]wFMCommunicate request_size=15 [02:59:44]MH_SAM_APDU [02:59:44]CAPDU: 80 15 02 00 0A 07 04 06 00 A0 86 01 00 00 00 [02:59:44]Write to MH i2c: E2 12 00 41 0D 80 15 02 00 0A 00 07 04 06 00 A0 86 01 00 00 00 00 00 1A [02:59:44]Write i2c OK [02:59:44]MH_I2C_Read... [02:59:44]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [02:59:44]Read from MH i2c: E2 [02:59:44]MH_I2C_Read... [02:59:44]Read from MH i2c: E2 03 00 [02:59:44]MH_I2C_Read... [02:59:44]Read from MH i2c: E2 03 00 41 0D 00 90 00 C2 [02:59:44]RAPDU: 90 00 [02:59:44]wFMCommunicate OK [02:59:44]wFMCommunicate request_size=15 [02:59:44]MH_SAM_APDU [02:59:44]CAPDU: 80 15 02 00 0A 39 04 06 00 00 00 00 00 00 00 [02:59:44]Write to MH i2c: E2 12 00 42 0D 80 15 02 00 0A 00 39 04 06 00 00 00 00 00 00 00 00 00 26 [02:59:44]Write i2c OK [02:59:44]MH_I2C_Read... [02:59:44]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [02:59:44]Read from MH i2c: E2 [02:59:44]MH_I2C_Read... [02:59:44]Read from MH i2c: E2 03 00 [02:59:44]MH_I2C_Read... [02:59:44]Read from MH i2c: E2 03 00 42 0D 00 90 00 C3 [02:59:44]RAPDU: 90 00 [02:59:44]wFMCommunicate OK [02:59:44]wFMCommunicate request_size=11 [02:59:44]MH_SAM_APDU [02:59:44]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [02:59:44]Write to MH i2c: E2 0E 00 43 0D 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 02 [02:59:44]Write i2c OK [02:59:44]MH_I2C_Read... [02:59:44]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [02:59:44]Read from MH i2c: E2 [02:59:44]MH_I2C_Read... [02:59:44]Read from MH i2c: E2 03 00 [02:59:44]MH_I2C_Read... [02:59:44]Read from MH i2c: E2 03 00 43 0D 00 90 00 C4 [02:59:44]RAPDU: 90 00 [02:59:44]wFMCommunicate OK [02:59:44]wFMCommunicate request_size=13 [02:59:44]MH_SAM_APDU [02:59:44]CAPDU: 80 15 02 00 08 F4 03 04 00 22 5B 1C 67 [02:59:44]Write to MH i2c: E2 10 00 44 0D 80 15 02 00 08 00 F4 03 04 00 22 5B 1C 67 00 00 DC [02:59:44]Write i2c OK [02:59:44]MH_I2C_Read... [02:59:44]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [02:59:44]Read from MH i2c: E2 [02:59:44]MH_I2C_Read... [02:59:44]Read from MH i2c: E2 03 00 [02:59:44]MH_I2C_Read... [02:59:44]Read from MH i2c: E2 03 00 44 0D 00 90 00 C5 [02:59:44]RAPDU: 90 00 [02:59:44]wFMCommunicate OK [02:59:44]wFMCommunicate request_size=25 [02:59:44]MH_SAM_APDU [02:59:44]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 [02:59:44]Write to MH i2c: E2 1C 00 45 0D 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 00 00 3A [02:59:44]Write i2c OK [02:59:44]MH_I2C_Read... [02:59:44]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [02:59:44]Read from MH i2c: E2 [02:59:44]MH_I2C_Read... [02:59:44]Read from MH i2c: E2 03 00 [02:59:44]MH_I2C_Read... [02:59:44]Read from MH i2c: E2 03 00 45 0D 00 90 00 C6 [02:59:44]RAPDU: 90 00 [02:59:44]wFMCommunicate OK [02:59:44]wFMCommunicate request_size=4 [02:59:44]MH_SAM_APDU [02:59:44]CAPDU: 80 15 03 00 [02:59:44]Write to MH i2c: E2 08 00 46 0D 80 15 03 00 00 00 00 00 D4 [02:59:44]Write i2c OK [02:59:44]MH_I2C_Read... [02:59:45]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [02:59:45]Read from MH i2c: E2 [02:59:45]MH_I2C_Read... [02:59:45]Read from MH i2c: E2 40 00 [02:59:45]MH_I2C_Read... [02:59:45]Read from MH i2c: E2 40 00 46 0D 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1D 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 07 00 00 00 35 04 06 00 26 7B 98 2E 06 AD 90 00 40 [02:59:45]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1D 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 07 00 00 00 35 04 06 00 26 7B 98 2E 06 AD 90 00 [02:59:45]wFMCommunicate OK [02:59:45]SAM_PROTO_ProcessDocument answer len = 59 [02:59:45]SAM_PROTO_ProcessDocument done [02:59:45]SetTLVBufToDocument [02:59:45]Processing tag 1209 (04B9) [02:59:45]Malloc new data [02:59:45]Processing tag 1041 (0411) [02:59:45]Processing tag 1040 (0410) [02:59:45]Malloc new data [02:59:45]Processing tag 1038 (040E) [02:59:45]Malloc new data [02:59:45]Processing tag 1042 (0412) [02:59:45]Malloc new data [02:59:45]Processing tag 1077 (0435) [02:59:45]Malloc new data [02:59:45]SetTLVBufToDocument err=0 [02:59:45]KKMLoadAndSignReceiptData store KKM data [02:59:45]KKMLoadAndSignReceiptData err=0 [02:59:45]wFMCommunicate request_size=4 [02:59:45]MH_SAM_APDU [02:59:45]CAPDU: 80 11 00 00 [02:59:45]Write to MH i2c: E2 08 00 47 0D 80 11 00 00 00 00 00 00 CE [02:59:45]Write i2c OK [02:59:45]MH_I2C_Read... [02:59:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:59:45]Read from MH i2c: E2 [02:59:45]MH_I2C_Read... [02:59:45]Read from MH i2c: E2 17 00 [02:59:45]MH_I2C_Read... [02:59:45]Read from MH i2c: E2 17 00 47 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 23 [02:59:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [02:59:45]wFMCommunicate OK [02:59:45]Счет N : (1)448990 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 51 Товар: 2710124500 Аи-95-К-3 13.480 * 74.20 = 1000.22 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 7 26.10.2024 02:59 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201245 ФПД: 42312275986093 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T025946&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201245&fm=42312275986093&tin=02508201610067®Number=0000000000091777&sum=100000 [02:59:45]StoreToDocumentArchive [02:59:45]shift 543 fd 201245 [02:59:45]save to /storage/0543/doc_00201245 [02:59:45]save last doc name /storage/0543/doc_00201245 to /storage/kkm_last_doc_name [02:59:45]save OK [02:59:45]Clear old archive folders... [02:59:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:59:45]tlvbuf is 017404C0 [02:59:45]SAM_PROTO_ClearQueue [02:59:45]wFMCommunicate request_size=4 [02:59:45]MH_SAM_APDU [02:59:45]CAPDU: 80 09 00 00 [02:59:45]Write to MH i2c: E2 08 00 48 0D 80 09 00 00 00 00 00 00 C7 [02:59:45]Write i2c OK [02:59:45]MH_I2C_Read... [02:59:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:59:45]Read from MH i2c: E2 [02:59:45]MH_I2C_Read... [02:59:45]Read from MH i2c: E2 03 00 [02:59:45]MH_I2C_Read... [02:59:45]Read from MH i2c: E2 03 00 48 0D 00 90 00 C9 [02:59:45]RAPDU: 90 00 [02:59:45]wFMCommunicate OK [02:59:45]SAM_PROTO_ClearQueue done [02:59:45]KKMCreateOFDPacket [02:59:45]OFDProtocolAddRootSTLVToBuf [02:59:45]FM_MakeSignedData [02:59:45]FM_MakeSignedData [02:59:45]SAM_PROTO_SignData [02:59:45]wFMCommunicate request_size=4 [02:59:45]MH_SAM_APDU [02:59:45]CAPDU: 80 0D 01 02 [02:59:45]Write to MH i2c: E2 08 00 49 0D 80 0D 01 02 00 00 00 00 CF [02:59:45]Write i2c OK [02:59:45]MH_I2C_Read... [02:59:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:59:45]Read from MH i2c: E2 [02:59:45]MH_I2C_Read... [02:59:45]Read from MH i2c: E2 03 00 [02:59:45]MH_I2C_Read... [02:59:45]Read from MH i2c: E2 03 00 49 0D 00 90 00 CA [02:59:45]RAPDU: 90 00 [02:59:45]wFMCommunicate OK [02:59:45]wFMCommunicate request_size=255 [02:59:45]MH_SAM_APDU [02:59: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 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 7E 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 07 00 00 00 F4 03 04 00 22 5B 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1D 12 03 00 35 04 06 00 26 [02:59:45]Write to MH i2c: E2 02 01 4A 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 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 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 7E 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 07 00 00 00 F4 03 04 00 22 5B 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1D 12 03 00 35 04 06 00 26 00 00 01 [02:59:45]Write i2c OK [02:59:45]MH_I2C_Read... [02:59:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:59:45]Read from MH i2c: E2 [02:59:45]MH_I2C_Read... [02:59:45]Read from MH i2c: E2 03 00 [02:59:45]MH_I2C_Read... [02:59:45]Read from MH i2c: E2 03 00 4A 0D 00 90 00 CB [02:59:45]RAPDU: 90 00 [02:59:45]wFMCommunicate OK [02:59:45]wFMCommunicate request_size=10 [02:59:45]MH_SAM_APDU [02:59:45]CAPDU: 80 0D 02 02 05 7B 98 2E 06 AD [02:59:45]Write to MH i2c: E2 0D 00 4B 0D 80 0D 02 02 05 00 7B 98 2E 06 AD 00 00 D0 [02:59:45]Write i2c OK [02:59:45]MH_I2C_Read... [02:59:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:59:45]Read from MH i2c: E2 [02:59:45]MH_I2C_Read... [02:59:45]Read from MH i2c: E2 03 00 [02:59:45]MH_I2C_Read... [02:59:45]Read from MH i2c: E2 03 00 4B 0D 00 90 00 CC [02:59:45]RAPDU: 90 00 [02:59:45]wFMCommunicate OK [02:59:45]wFMCommunicate request_size=4 [02:59:45]MH_SAM_APDU [02:59:45]CAPDU: 80 0D 03 02 [02:59:45]Write to MH i2c: E2 08 00 4C 0D 80 0D 03 02 00 00 00 00 D4 [02:59:45]Write i2c OK [02:59:45]MH_I2C_Read... [02:59:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:59:45]Read from MH i2c: E2 [02:59:45]MH_I2C_Read... [02:59:45]Read from MH i2c: E2 0B 00 [02:59:45]MH_I2C_Read... [02:59:45]Read from MH i2c: E2 0B 00 4C 0D 00 4B 65 8B D2 0C 3F D8 37 90 00 3C [02:59:45]RAPDU: 4B 65 8B D2 0C 3F D8 37 90 00 [02:59:45]wFMCommunicate OK [02:59:45]SAM_PROTO_SignData done [02:59:45]FM_MakeSignedData done [02:59:45]CreateOFDProtocolMessage [02:59:45]wFMCommunicate request_size=4 [02:59:45]MH_SAM_APDU [02:59:45]CAPDU: 80 11 00 00 [02:59:45]Write to MH i2c: E2 08 00 4D 0D 80 11 00 00 00 00 00 00 D4 [02:59:45]Write i2c OK [02:59:45]MH_I2C_Read... [02:59:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:59:45]Read from MH i2c: E2 [02:59:45]MH_I2C_Read... [02:59:45]Read from MH i2c: E2 17 00 [02:59:45]MH_I2C_Read... [02:59:45]Read from MH i2c: E2 17 00 4D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 29 [02:59:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [02:59:45]wFMCommunicate OK [02:59:45]CreateOFDProtocolMessage done [02:59:45]OFDSenderStorePacket 201245 [02:59:45]StoreOFDPacket docnum=201245 [02:59:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 61 32 07 01 8B 59 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 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 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 7E 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 07 00 00 00 F4 03 04 00 22 5B 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1D 12 03 00 35 04 06 00 26 7B 98 2E 06 AD 4B 65 8B D2 0C 3F D8 37 [02:59:45]CheckFolder [02:59:45]dirname=/storage/ofd_packets [02:59:45]CheckFolder done [02:59:45]ProducePacketName [02:59:45]name=ofd_packets/00201245 [02:59:45]NVStorageSaveData ofd_packets/00201245 [02:59:45]File name is /storage/ofd_packets/00201245 [02:59:45]Write 301 bytes [02:59:45]NVStorageSaveData done [02:59:45]OFDSenderStorePacket done [02:59:45]KKMCreateOFDPacket done [02:59:45]NVStorageSaveData kkm_last_timestamp [02:59:45]File name is /storage/kkm_last_timestamp [02:59:45]Write 4 bytes [02:59:45]NVStorageSaveData done [02:59:45]ExternCall_PrintAddStr [02:59:45]wPrintStart [02:59:45]Write to MH i2c: 01 00 00 4E 0D 5B [02:59:45]Write i2c OK [02:59:45]MH_I2C_Read... [02:59:45]Read from MH i2c: 01 [02:59:45]MH_I2C_Read... [02:59:45]Read from MH i2c: 01 07 00 [02:59:45]MH_I2C_Read... [02:59:45]Read from MH i2c: 01 07 00 4E 0D 00 00 00 00 00 FF 0F 70 [02:59:45]RasterBufferAndPrint [02:59:45]line Счет N : (1)448990 [02:59:45]line ИНН: 02508201610067 [02:59:45]line Контрольно-Кассовый Чек [02:59:45]line ПРОДАЖА [02:59:45]line ТРК (МРК, ГНК) : 51 [02:59:45]line Товар: 2710124500 [02:59:45]line Аи-95-К-3 [02:59:45]line 13.480 * 74.20 [02:59:45]line = 1000.22 [02:59:45]line НДС 12% НСП 1% [02:59:45]line > о реализуемом товаре [02:59:45]line ОКРУГЛЕНИЕ: -0.22 [02:59:45]line ИТОГО: 1000.00 [02:59:45]line Внесено: 1000.00 [02:59:45]line СДАЧА: 0.00 [02:59:45]line НСП 1% : 8.85 [02:59:45]line НДС 12% : 106.22 [02:59:45]line Наличными: 1000.00 [02:59:45]line Безнал.: 0.00 [02:59:45]line Место: АЗС № 171 "Партнер Нефть" [02:59:45]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [02:59:45]line СНО: Общий режим [02:59:45]line Чек 7 26.10.2024 02:59 [02:59:45]line Смена: 543 ФФД: 1.0 [02:59:45]line ЗНМ: 0300000109 [02:59:45]line РНМ: 0000000000091777 [02:59:45]line Версия ККМ: 001 [02:59:45]line ФМ: 0000000000871756 [02:59:45]line ФД: 201245 [02:59:45]line ФПД: 42312275986093 [02:59:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T025946&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201245&fm=42312275986093&tin=02508201610067®Number=0000000000091777&sum=100000 [02:59:46]OFD Sender: Processing packet 201245 [packets to send 112, broken 111] [02:59:46]ProducePacketName [02:59:46]name=ofd_packets/00201245 [02:59:46]OFD Sender: To server: pG, [02:59:46]CommunicateWithHost lk.salyk.kg:30040 [02:59:46]ConnectInit lk.salyk.kg [02:59:46]written 0, free lines is 4095 [02:59:46]Connected sock=10 [02:59:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 61 32 07 01 8B 59 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 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 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 7E 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 07 00 00 00 F4 03 04 00 22 5B 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1D 12 03 00 35 04 06 00 26 7B 98 2E 06 AD 4B 65 8B D2 0C 3F D8 37 [02:59:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 7E 50 47 00 59 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1D 12 03 00 F4 03 04 00 CC 06 1C 67 B6 04 01 00 00 AC 28 14 F3 F9 2E 0F 9B [02:59:46]CommunicateWithHost err = 0 [02:59:46]CheckOFDResponse [02:59:46]1017 (14) - 77093643461234 [02:59:46]1041 (16) - 0000000000871756 [02:59:46]1040 (4) - 201245 [02:59:46]1012 (4) - 25.10.2024 20:59 [02:59:46]1206 (1) - 0 [02:59:46]OFD Sender: Remove packet 201245 [02:59:46]ProducePacketName [02:59:46]name=ofd_packets/00201245 [02:59:46]NVStorageDeleteData [02:59:46]Write to MH i2c: 01 00 00 79 0D 86 [02:59:46]Write i2c OK [02:59:46]MH_I2C_Read... [02:59:46]Read from MH i2c: 01 [02:59:46]MH_I2C_Read... [02:59:46]Read from MH i2c: 01 07 00 [02:59:46]MH_I2C_Read... [02:59:46]Read from MH i2c: 01 07 00 79 0D 00 00 00 00 00 9B 0C 34 [02:59:46]RasterBufferAndPrint [02:59:46]line [02:59:46]line [02:59:46]line [02:59:46]line [02:59:46]line [02:59:46]written 0, free lines is 3233 [02:59:46]MH_Cut [02:59:46]Write to MH i2c: D1 01 00 80 0D 01 5F [02:59:46]Write i2c OK [02:59:46]MH_I2C_Read... [02:59:46]Read from MH i2c: D1 [02:59:46]MH_I2C_Read... [02:59:46]Read from MH i2c: D1 01 00 [02:59:46]MH_I2C_Read... [02:59:46]Read from MH i2c: D1 01 00 80 0D 00 5E [02:59:46]Write to MH i2c: 01 00 00 81 0D 8E [02:59:46]Write i2c OK [02:59:46]MH_I2C_Read... [02:59:46]OFD Sender: No OFD packet to send [02:59:47]*** Cut start [02:59:47]*** Purtial cut [02:59:47]*** Stage 1: CUTSNS_PIN = 1 [02:59:47]Read from MH i2c: 01 [02:59:47]MH_I2C_Read... [02:59:47]*** Stop cut motor [02:59:47]*** Cut end [02:59:47]Read from MH i2c: 01 07 00 [02:59:47]MH_I2C_Read... [02:59:47]Read from MH i2c: 01 07 00 81 0D 00 00 00 00 00 FF 0F A3 [02:59:47]process_action close_receipt done [02:59:47]requested_data is exist [02:59:47]produce_requested_data [02:59:47]requested_item fm.sn is exist - process it [02:59:47]wFMCommunicate request_size=4 [02:59:47]MH_SAM_APDU [02:59:47]CAPDU: 80 11 00 00 [02:59:47]Write to MH i2c: E2 08 00 82 0D 80 11 00 00 00 00 00 00 09 [02:59:47]Write i2c OK [02:59:47]MH_I2C_Read... [02:59:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:59:47]Read from MH i2c: E2 [02:59:47]MH_I2C_Read... [02:59:47]Read from MH i2c: E2 17 00 [02:59:47]MH_I2C_Read... [02:59:47]Read from MH i2c: E2 17 00 82 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5E [02:59:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [02:59:47]wFMCommunicate OK [02:59:47]requested_item fd.num is exist - process it [02:59:47]SAM_PROTO_GetFieldsCounters [02:59:47]wFMCommunicate request_size=4 [02:59:47]MH_SAM_APDU [02:59:47]CAPDU: 80 13 00 00 [02:59:47]Write to MH i2c: E2 08 00 83 0D 80 13 00 00 00 00 00 00 0C [02:59:47]Write i2c OK [02:59:47]MH_I2C_Read... [02:59:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:59:47]Read from MH i2c: E2 [02:59:47]MH_I2C_Read... [02:59:47]Read from MH i2c: E2 62 00 [02:59:47]MH_I2C_Read... [02:59:47]Read from MH i2c: E2 62 00 83 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1D 12 03 00 0E 04 04 00 1F 02 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 9D [02:59:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1D 12 03 00 0E 04 04 00 1F 02 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 [02:59:47]wFMCommunicate OK [02:59:47]SAM_PROTO_GetFieldsCounters done [02:59:47]requested_item shift.num is exist - process it [02:59:47]requested_item shift.opened is exist - process it [02:59:47]req_shift_opened [02:59:47]FM_GetShiftState [02:59:47]SAM_PROTO_GetShiftState [02:59:47]wFMCommunicate request_size=4 [02:59:47]MH_SAM_APDU [02:59:47]CAPDU: 80 13 01 00 [02:59:47]Write to MH i2c: E2 08 00 84 0D 80 13 01 00 00 00 00 00 0E [02:59:47]Write i2c OK [02:59:47]MH_I2C_Read... [02:59:47]Read from MH i2c: E2 [02:59:47]MH_I2C_Read... [02:59:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:59:47]Read from MH i2c: E2 0E 00 [02:59:47]MH_I2C_Read... [02:59:47]Read from MH i2c: E2 0E 00 84 0D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 1D [02:59:47]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [02:59:47]wFMCommunicate OK [02:59:47]SAM_PROTO_GetShiftState done [02:59:47]FM_GetShiftState done [02:59:47]req_shift_opened done [02:59:47]requested_item shift.open_date is exist - process it [02:59:47]req_shift_open_date [02:59:47]req_shift_open_date done [02:59:47]produce_requested_data done [02:59:47]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201245,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [02:59:47]process_action_free close_receipt [02:59:47]json_value_free [02:59:47]json_value_free done [02:59:47]process_json_proto returns [02:59:47]Send response to host [02:59:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201245,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [02:59:47]free response buf [02:59:47]execute_script done [02:59:47]execute_script returns [02:59:47]free content buf [02:59:47]Sock 9.Close socket [02:59:47]Sock 9.Thread stoped [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:32]OFD Sender: No OFD packet to send [03:00:37]OFD Sender: No OFD packet to send [03:00:42]OFD Sender: No OFD packet to send [03:00:47]OFD Sender: No OFD packet to send [03:00:52]OFD Sender: No OFD packet to send [03:00:57]OFD Sender: No OFD packet to send [03:01:02]OFD Sender: No OFD packet to send [03:01:07]OFD Sender: No OFD packet to send [03:01:12]OFD Sender: No OFD packet to send [03:01:17]OFD Sender: No OFD packet to send [03:01:22]OFD Sender: No OFD packet to send [03:01:27]OFD Sender: No OFD packet to send [03:01:32]OFD Sender: No OFD packet to send [03:01:37]OFD Sender: No OFD packet to send [03:01:42]OFD Sender: No OFD packet to send [03:01:47]OFD Sender: No OFD packet to send [03:01:52]OFD Sender: No OFD packet to send [03:01:57]OFD Sender: No OFD packet to send [03:02:02]OFD Sender: No OFD packet to send [03:02:07]OFD Sender: No OFD packet to send [03:02:12]OFD Sender: No OFD packet to send [03:02:17]OFD Sender: No OFD packet to send [03:02:22]OFD Sender: No OFD packet to send [03:02:27]OFD Sender: No OFD packet to send [03:02:32]OFD Sender: No OFD packet to send [03:02:37]OFD Sender: No OFD packet to send [03:02:42]OFD Sender: No OFD packet to send [03:02:47]OFD Sender: No OFD packet to send [03:02:52]OFD Sender: No OFD packet to send [03:02:57]OFD Sender: No OFD packet to send [03:03:02]OFD Sender: No OFD packet to send [03:03:07]OFD Sender: No OFD packet to send [03:03:12]OFD Sender: No OFD packet to send [03:03:17]OFD Sender: No OFD packet to send [03:03:22]OFD Sender: No OFD packet to send [03:03:27]OFD Sender: No OFD packet to send [03:03:32]OFD Sender: No OFD packet to send [03:03:37]OFD Sender: No OFD packet to send [03:03:42]OFD Sender: No OFD packet to send [03:03:47]OFD Sender: No OFD packet to send [03:03:52]OFD Sender: No OFD packet to send [03:03:57]OFD Sender: No OFD packet to send [03:04:02]OFD Sender: No OFD packet to send [03:04:07]OFD Sender: No OFD packet to send [03:04:12]OFD Sender: No OFD packet to send [03:04:17]OFD Sender: No OFD packet to send [03:04:22]OFD Sender: No OFD packet to send [03:04:27]OFD Sender: No OFD packet to send [03:04:32]OFD Sender: No OFD packet to send [03:04:37]OFD Sender: No OFD packet to send [03:04:42]OFD Sender: No OFD packet to send [03:04:47]OFD Sender: No OFD packet to send [03:04:52]OFD Sender: No OFD packet to send [03:04:57]OFD Sender: No OFD packet to send [03:05:02]OFD Sender: No OFD packet to send [03:05:07]OFD Sender: No OFD packet to send [03:05:12]OFD Sender: No OFD packet to send [03:05:17]OFD Sender: No OFD packet to send [03:05:22]OFD Sender: No OFD packet to send [03:05:27]OFD Sender: No OFD packet to send [03:05:32]OFD Sender: No OFD packet to send [03:05:37]OFD Sender: No OFD packet to send [03:05:42]OFD Sender: No OFD packet to send [03:05:47]OFD Sender: No OFD packet to send [03:05:52]OFD Sender: No OFD packet to send [03:05:57]OFD Sender: No OFD packet to send [03:06:02]OFD Sender: No OFD packet to send [03:06:07]OFD Sender: No OFD packet to send [03:06:12]OFD Sender: No OFD packet to send [03:06:17]OFD Sender: No OFD packet to send [03:06:22]OFD Sender: No OFD packet to send [03:06:27]OFD Sender: No OFD packet to send [03:06:32]OFD Sender: No OFD packet to send [03:06:37]OFD Sender: No OFD packet to send [03:06:42]OFD Sender: No OFD packet to send [03:06:47]OFD Sender: No OFD packet to send [03:06:52]OFD Sender: No OFD packet to send [03:06:57]OFD Sender: No OFD packet to send [03:07:02]OFD Sender: No OFD packet to send [03:07:07]OFD Sender: No OFD packet to send [03:07:12]OFD Sender: No OFD packet to send [03:07:17]OFD Sender: No OFD packet to send [03:07:22]OFD Sender: No OFD packet to send [03:07:27]OFD Sender: No OFD packet to send [03:07:32]OFD Sender: No OFD packet to send [03:07:37]OFD Sender: No OFD packet to send [03:07:42]OFD Sender: No OFD packet to send [03:07:47]OFD Sender: No OFD packet to send [03:07:52]OFD Sender: No OFD packet to send [03:07:57]OFD Sender: No OFD packet to send [03:08:02]OFD Sender: No OFD packet to send [03:08:07]OFD Sender: No OFD packet to send [03:08:12]OFD Sender: No OFD packet to send [03:08:17]OFD Sender: No OFD packet to send [03:08:22]OFD Sender: No OFD packet to send [03:08:27]OFD Sender: No OFD packet to send [03:08:32]OFD Sender: No OFD packet to send [03:08:37]OFD Sender: No OFD packet to send [03:08:42]OFD Sender: No OFD packet to send [03:08:47]OFD Sender: No OFD packet to send [03:08:52]OFD Sender: No OFD packet to send [03:08:57]OFD Sender: No OFD packet to send [03:09:02]OFD Sender: No OFD packet to send [03:09:07]OFD Sender: No OFD packet to send [03:09:12]OFD Sender: No OFD packet to send [03:09:17]OFD Sender: No OFD packet to send [03:09:22]OFD Sender: No OFD packet to send [03:09:27]OFD Sender: No OFD packet to send [03:09:32]OFD Sender: No OFD packet to send [03:09:37]OFD Sender: No OFD packet to send [03:09:42]OFD Sender: No OFD packet to send [03:09:47]OFD Sender: No OFD packet to send [03:09:52]OFD Sender: No OFD packet to send [03:09:57]OFD Sender: No OFD packet to send [03:10:02]OFD Sender: No OFD packet to send [03:10:07]OFD Sender: No OFD packet to send [03:10:12]OFD Sender: No OFD packet to send [03:10:17]OFD Sender: No OFD packet to send [03:10:22]OFD Sender: No OFD packet to send [03:10:27]OFD Sender: No OFD packet to send [03:10:32]OFD Sender: No OFD packet to send [03:10:37]OFD Sender: No OFD packet to send [03:10:42]OFD Sender: No OFD packet to send [03:10:47]OFD Sender: No OFD packet to send [03:10:52]OFD Sender: No OFD packet to send [03:10:57]OFD Sender: No OFD packet to send [03:11:02]OFD Sender: No OFD packet to send [03:11:07]OFD Sender: No OFD packet to send [03:11:12]OFD Sender: No OFD packet to send [03:11:17]OFD Sender: No OFD packet to send [03:11:22]OFD Sender: No OFD packet to send [03:11:27]OFD Sender: No OFD packet to send [03:11:32]OFD Sender: No OFD packet to send [03:11:37]OFD Sender: No OFD packet to send [03:11:42]OFD Sender: No OFD packet to send [03:11:47]OFD Sender: No OFD packet to send [03:11:52]OFD Sender: No OFD packet to send [03:11:57]OFD Sender: No OFD packet to send [03:12:02]OFD Sender: No OFD packet to send [03:12:07]OFD Sender: No OFD packet to send [03:12:12]OFD Sender: No OFD packet to send [03:12:17]OFD Sender: No OFD packet to send [03:12:22]OFD Sender: No OFD packet to send [03:12:27]OFD Sender: No OFD packet to send [03:12:32]OFD Sender: No OFD packet to send [03:12:37]OFD Sender: No OFD packet to send [03:12:42]OFD Sender: No OFD packet to send [03:12:47]OFD Sender: No OFD packet to send [03:12:52]OFD Sender: No OFD packet to send [03:12:57]OFD Sender: No OFD packet to send [03:13:02]OFD Sender: No OFD packet to send [03:13:07]OFD Sender: No OFD packet to send [03:13:12]OFD Sender: No OFD packet to send [03:13:17]OFD Sender: No OFD packet to send [03:13:22]OFD Sender: No OFD packet to send [03:13:27]OFD Sender: No OFD packet to send [03:13:32]OFD Sender: No OFD packet to send [03:13:37]OFD Sender: No OFD packet to send [03:13:42]OFD Sender: No OFD packet to send [03:13:47]OFD Sender: No OFD packet to send [03:13:52]OFD Sender: No OFD packet to send [03:13:57]OFD Sender: No OFD packet to send [03:14:02]OFD Sender: No OFD packet to send [03:14:07]OFD Sender: No OFD packet to send [03:14:12]OFD Sender: No OFD packet to send [03:14:17]OFD Sender: No OFD packet to send [03:14:22]OFD Sender: No OFD packet to send [03:14:27]OFD Sender: No OFD packet to send [03:14:32]OFD Sender: No OFD packet to send [03:14:37]OFD Sender: No OFD packet to send [03:14:42]OFD Sender: No OFD packet to send [03:14:47]OFD Sender: No OFD packet to send [03:14:52]OFD Sender: No OFD packet to send [03:14:58]OFD Sender: No OFD packet to send [03:15:03]OFD Sender: No OFD packet to send [03:15:08]OFD Sender: No OFD packet to send [03:15:13]OFD Sender: No OFD packet to send [03:15:18]OFD Sender: No OFD packet to send [03:15:23]OFD Sender: No OFD packet to send [03:15:28]OFD Sender: No OFD packet to send [03:15:33]OFD Sender: No OFD packet to send [03:15:38]OFD Sender: No OFD packet to send [03:15:43]OFD Sender: No OFD packet to send [03:15:48]OFD Sender: No OFD packet to send [03:15:53]OFD Sender: No OFD packet to send [03:15:58]OFD Sender: No OFD packet to send [03:16:03]OFD Sender: No OFD packet to send [03:16:08]OFD Sender: No OFD packet to send [03:16:13]OFD Sender: No OFD packet to send [03:16:18]OFD Sender: No OFD packet to send [03:16:23]OFD Sender: No OFD packet to send [03:16:28]OFD Sender: No OFD packet to send [03:16:33]OFD Sender: No OFD packet to send [03:16:38]OFD Sender: No OFD packet to send [03:16:43]OFD Sender: No OFD packet to send [03:16:48]OFD Sender: No OFD packet to send [03:16:53]OFD Sender: No OFD packet to send [03:16:58]OFD Sender: No OFD packet to send [03:17:03]OFD Sender: No OFD packet to send [03:17:08]OFD Sender: No OFD packet to send [03:17:13]OFD Sender: No OFD packet to send [03:17:18]OFD Sender: No OFD packet to send [03:17:23]OFD Sender: No OFD packet to send [03:17:28]OFD Sender: No OFD packet to send [03:17:33]OFD Sender: No OFD packet to send [03:17:38]OFD Sender: No OFD packet to send [03:17:43]OFD Sender: No OFD packet to send [03:17:48]OFD Sender: No OFD packet to send [03:17:53]OFD Sender: No OFD packet to send [03:17:58]OFD Sender: No OFD packet to send [03:18:03]OFD Sender: No OFD packet to send [03:18:08]OFD Sender: No OFD packet to send [03:18:13]OFD Sender: No OFD packet to send [03:18:18]OFD Sender: No OFD packet to send [03:18:23]OFD Sender: No OFD packet to send [03:18:28]OFD Sender: No OFD packet to send [03:18:33]OFD Sender: No OFD packet to send [03:18:38]OFD Sender: No OFD packet to send [03:18:43]OFD Sender: No OFD packet to send [03:18:48]OFD Sender: No OFD packet to send [03:18:53]OFD Sender: No OFD packet to send [03:18:58]OFD Sender: No OFD packet to send [03:19:03]OFD Sender: No OFD packet to send [03:19:08]OFD Sender: No OFD packet to send [03:19:13]OFD Sender: No OFD packet to send [03:19:18]OFD Sender: No OFD packet to send [03:19:23]OFD Sender: No OFD packet to send [03:19:28]OFD Sender: No OFD packet to send [03:19:33]OFD Sender: No OFD packet to send [03:19:38]OFD Sender: No OFD packet to send [03:19:43]OFD Sender: No OFD packet to send [03:19:48]OFD Sender: No OFD packet to send [03:19:53]OFD Sender: No OFD packet to send [03:19:58]OFD Sender: No OFD packet to send [03:20:03]OFD Sender: No OFD packet to send [03:20:08]OFD Sender: No OFD packet to send [03:20:13]OFD Sender: No OFD packet to send [03:20:18]OFD Sender: No OFD packet to send [03:20:23]OFD Sender: No OFD packet to send [03:20:28]OFD Sender: No OFD packet to send [03:20:33]OFD Sender: No OFD packet to send [03:20:38]OFD Sender: No OFD packet to send [03:20:43]OFD Sender: No OFD packet to send [03:20:48]OFD Sender: No OFD packet to send [03:20:53]OFD Sender: No OFD packet to send [03:20:58]OFD Sender: No OFD packet to send [03:21:03]OFD Sender: No OFD packet to send [03:21:08]OFD Sender: No OFD packet to send [03:21:13]OFD Sender: No OFD packet to send [03:21:18]OFD Sender: No OFD packet to send [03:21:23]OFD Sender: No OFD packet to send [03:21:28]OFD Sender: No OFD packet to send [03:21:33]OFD Sender: No OFD packet to send [03:21:38]OFD Sender: No OFD packet to send [03:21:43]OFD Sender: No OFD packet to send [03:21:48]OFD Sender: No OFD packet to send [03:21:53]OFD Sender: No OFD packet to send [03:21:58]OFD Sender: No OFD packet to send [03:22:03]OFD Sender: No OFD packet to send [03:22:08]OFD Sender: No OFD packet to send [03:22:13]OFD Sender: No OFD packet to send [03:22:18]OFD Sender: No OFD packet to send [03:22:23]OFD Sender: No OFD packet to send [03:22:28]OFD Sender: No OFD packet to send [03:22:33]OFD Sender: No OFD packet to send [03:22:38]OFD Sender: No OFD packet to send [03:22:43]OFD Sender: No OFD packet to send [03:22:48]OFD Sender: No OFD packet to send [03:22:53]OFD Sender: No OFD packet to send [03:22:58]OFD Sender: No OFD packet to send [03:23:03]OFD Sender: No OFD packet to send [03:23:08]OFD Sender: No OFD packet to send [03:23:13]OFD Sender: No OFD packet to send [03:23:18]OFD Sender: No OFD packet to send [03:23:23]OFD Sender: No OFD packet to send [03:23:28]OFD Sender: No OFD packet to send [03:23:33]OFD Sender: No OFD packet to send [03:23:38]OFD Sender: No OFD packet to send [03:23:43]OFD Sender: No OFD packet to send [03:23:48]OFD Sender: No OFD packet to send [03:23:53]OFD Sender: No OFD packet to send [03:23:58]OFD Sender: No OFD packet to send [03:24:03]OFD Sender: No OFD packet to send [03:24:08]OFD Sender: No OFD packet to send [03:24:13]OFD Sender: No OFD packet to send [03:24:18]OFD Sender: No OFD packet to send [03:24:23]OFD Sender: No OFD packet to send [03:24:28]OFD Sender: No OFD packet to send [03:24:33]OFD Sender: No OFD packet to send [03:24:38]OFD Sender: No OFD packet to send [03:24:43]OFD Sender: No OFD packet to send [03:24:48]OFD Sender: No OFD packet to send [03:24:53]OFD Sender: No OFD packet to send [03:24:58]OFD Sender: No OFD packet to send [03:25:03]OFD Sender: No OFD packet to send [03:25:08]OFD Sender: No OFD packet to send [03:25:13]OFD Sender: No OFD packet to send [03:25:18]OFD Sender: No OFD packet to send [03:25:23]OFD Sender: No OFD packet to send [03:25:28]OFD Sender: No OFD packet to send [03:25:33]OFD Sender: No OFD packet to send [03:25:38]OFD Sender: No OFD packet to send [03:25:43]OFD Sender: No OFD packet to send [03:25:48]OFD Sender: No OFD packet to send [03:25:53]OFD Sender: No OFD packet to send [03:25:58]OFD Sender: No OFD packet to send [03:26:03]OFD Sender: No OFD packet to send [03:26:08]OFD Sender: No OFD packet to send [03:26:13]OFD Sender: No OFD packet to send [03:26:18]OFD Sender: No OFD packet to send [03:26:23]OFD Sender: No OFD packet to send [03:26:28]OFD Sender: No OFD packet to send [03:26:33]OFD Sender: No OFD packet to send [03:26:38]OFD Sender: No OFD packet to send [03:26:43]OFD Sender: No OFD packet to send [03:26:48]OFD Sender: No OFD packet to send [03:26:53]OFD Sender: No OFD packet to send [03:26:58]OFD Sender: No OFD packet to send [03:27:03]OFD Sender: No OFD packet to send [03:27:08]OFD Sender: No OFD packet to send [03:27:13]OFD Sender: No OFD packet to send [03:27:18]OFD Sender: No OFD packet to send [03:27:23]OFD Sender: No OFD packet to send [03:27:28]OFD Sender: No OFD packet to send [03:27:33]OFD Sender: No OFD packet to send [03:27:38]OFD Sender: No OFD packet to send [03:27:43]OFD Sender: No OFD packet to send [03:27:48]OFD Sender: No OFD packet to send [03:27:53]OFD Sender: No OFD packet to send [03:27:58]OFD Sender: No OFD packet to send [03:28:03]OFD Sender: No OFD packet to send [03:28:08]OFD Sender: No OFD packet to send [03:28:13]OFD Sender: No OFD packet to send [03:28:18]OFD Sender: No OFD packet to send [03:28:23]OFD Sender: No OFD packet to send [03:28:28]OFD Sender: No OFD packet to send [03:28:33]OFD Sender: No OFD packet to send [03:28:38]OFD Sender: No OFD packet to send [03:28:43]OFD Sender: No OFD packet to send [03:28:48]OFD Sender: No OFD packet to send [03:28:53]OFD Sender: No OFD packet to send [03:28:58]OFD Sender: No OFD packet to send [03:29:03]OFD Sender: No OFD packet to send [03:29:08]OFD Sender: No OFD packet to send [03:29:13]OFD Sender: No OFD packet to send [03:29:18]OFD Sender: No OFD packet to send [03:29:24]OFD Sender: No OFD packet to send [03:29:29]OFD Sender: No OFD packet to send [03:29:34]OFD Sender: No OFD packet to send [03:29:39]OFD Sender: No OFD packet to send [03:29:44]OFD Sender: No OFD packet to send [03:29:49]OFD Sender: No OFD packet to send [03:29:54]OFD Sender: No OFD packet to send [03:29:59]OFD Sender: No OFD packet to send [03:30:04]OFD Sender: No OFD packet to send [03:30:09]OFD Sender: No OFD packet to send [03:30:14]OFD Sender: No OFD packet to send [03:30:19]OFD Sender: No OFD packet to send [03:30:24]OFD Sender: No OFD packet to send [03:30:29]OFD Sender: No OFD packet to send [03:30:34]OFD Sender: No OFD packet to send [03:30:39]OFD Sender: No OFD packet to send [03:30:44]OFD Sender: No OFD packet to send [03:30:49]OFD Sender: No OFD packet to send [03:30:54]OFD Sender: No OFD packet to send [03:30:59]OFD Sender: No OFD packet to send [03:31:04]OFD Sender: No OFD packet to send [03:31:09]OFD Sender: No OFD packet to send [03:31:14]OFD Sender: No OFD packet to send [03:31:19]OFD Sender: No OFD packet to send [03:31:24]OFD Sender: No OFD packet to send [03:31:29]OFD Sender: No OFD packet to send [03:31:34]OFD Sender: No OFD packet to send [03:31:39]OFD Sender: No OFD packet to send [03:31:44]OFD Sender: No OFD packet to send [03:31:49]OFD Sender: No OFD packet to send [03:31:54]OFD Sender: No OFD packet to send [03:31:59]OFD Sender: No OFD packet to send [03:32:04]OFD Sender: No OFD packet to send [03:32:09]OFD Sender: No OFD packet to send [03:32:14]OFD Sender: No OFD packet to send [03:32:19]OFD Sender: No OFD packet to send [03:32:24]OFD Sender: No OFD packet to send [03:32:29]OFD Sender: No OFD packet to send [03:32:34]OFD Sender: No OFD packet to send [03:32:39]OFD Sender: No OFD packet to send [03:32:44]OFD Sender: No OFD packet to send [03:32:49]OFD Sender: No OFD packet to send [03:32:54]OFD Sender: No OFD packet to send [03:32:59]OFD Sender: No OFD packet to send [03:33:04]OFD Sender: No OFD packet to send [03:33:09]OFD Sender: No OFD packet to send [03:33:14]OFD Sender: No OFD packet to send [03:33:19]OFD Sender: No OFD packet to send [03:33:24]OFD Sender: No OFD packet to send [03:33:29]OFD Sender: No OFD packet to send [03:33:34]OFD Sender: No OFD packet to send [03:33:39]OFD Sender: No OFD packet to send [03:33:44]OFD Sender: No OFD packet to send [03:33:49]OFD Sender: No OFD packet to send [03:33:54]OFD Sender: No OFD packet to send [03:33:59]OFD Sender: No OFD packet to send [03:34:04]OFD Sender: No OFD packet to send [03:34:09]OFD Sender: No OFD packet to send [03:34:14]OFD Sender: No OFD packet to send [03:34:19]OFD Sender: No OFD packet to send [03:34:24]OFD Sender: No OFD packet to send [03:34:29]OFD Sender: No OFD packet to send [03:34:34]OFD Sender: No OFD packet to send [03:34:39]OFD Sender: No OFD packet to send [03:34:44]OFD Sender: No OFD packet to send [03:34:49]OFD Sender: No OFD packet to send [03:34:54]OFD Sender: No OFD packet to send [03:34:59]OFD Sender: No OFD packet to send [03:35:04]OFD Sender: No OFD packet to send [03:35:09]OFD Sender: No OFD packet to send [03:35:14]OFD Sender: No OFD packet to send [03:35:19]OFD Sender: No OFD packet to send [03:35:24]OFD Sender: No OFD packet to send [03:35:29]OFD Sender: No OFD packet to send [03:35:34]OFD Sender: No OFD packet to send [03:35:39]OFD Sender: No OFD packet to send [03:35:44]OFD Sender: No OFD packet to send [03:35:49]OFD Sender: No OFD packet to send [03:35:54]OFD Sender: No OFD packet to send [03:35:59]OFD Sender: No OFD packet to send [03:36:04]OFD Sender: No OFD packet to send [03:36:09]OFD Sender: No OFD packet to send [03:36:14]OFD Sender: No OFD packet to send [03:36:19]OFD Sender: No OFD packet to send [03:36:24]OFD Sender: No OFD packet to send [03:36:29]OFD Sender: No OFD packet to send [03:36:34]OFD Sender: No OFD packet to send [03:36:39]OFD Sender: No OFD packet to send [03:36:44]OFD Sender: No OFD packet to send [03:36:49]OFD Sender: No OFD packet to send [03:36:54]OFD Sender: No OFD packet to send [03:36:59]OFD Sender: No OFD packet to send [03:37:04]OFD Sender: No OFD packet to send [03:37:09]OFD Sender: No OFD packet to send [03:37:14]OFD Sender: No OFD packet to send [03:37:19]OFD Sender: No OFD packet to send [03:37:24]OFD Sender: No OFD packet to send [03:37:29]OFD Sender: No OFD packet to send [03:37:34]OFD Sender: No OFD packet to send [03:37:39]OFD Sender: No OFD packet to send [03:37:44]OFD Sender: No OFD packet to send [03:37:49]OFD Sender: No OFD packet to send [03:37:54]OFD Sender: No OFD packet to send [03:37:59]OFD Sender: No OFD packet to send [03:38:04]OFD Sender: No OFD packet to send [03:38:09]OFD Sender: No OFD packet to send [03:38:14]OFD Sender: No OFD packet to send [03:38:19]OFD Sender: No OFD packet to send [03:38:24]OFD Sender: No OFD packet to send [03:38:29]OFD Sender: No OFD packet to send [03:38:34]OFD Sender: No OFD packet to send [03:38:39]OFD Sender: No OFD packet to send [03:38:44]OFD Sender: No OFD packet to send [03:38:49]OFD Sender: No OFD packet to send [03:38:54]OFD Sender: No OFD packet to send [03:38:59]OFD Sender: No OFD packet to send [03:39:04]OFD Sender: No OFD packet to send [03:39:09]OFD Sender: No OFD packet to send [03:39:14]OFD Sender: No OFD packet to send [03:39:19]OFD Sender: No OFD packet to send [03:39:24]OFD Sender: No OFD packet to send [03:39:29]OFD Sender: No OFD packet to send [03:39:34]OFD Sender: No OFD packet to send [03:39:39]OFD Sender: No OFD packet to send [03:39:44]OFD Sender: No OFD packet to send [03:39:49]OFD Sender: No OFD packet to send [03:39:54]OFD Sender: No OFD packet to send [03:39:59]OFD Sender: No OFD packet to send [03:40:04]OFD Sender: No OFD packet to send [03:40:09]OFD Sender: No OFD packet to send [03:40:14]OFD Sender: No OFD packet to send [03:40:19]OFD Sender: No OFD packet to send [03:40:24]OFD Sender: No OFD packet to send [03:40:29]OFD Sender: No OFD packet to send [03:40:34]OFD Sender: No OFD packet to send [03:40:39]OFD Sender: No OFD packet to send [03:40:44]OFD Sender: No OFD packet to send [03:40:49]OFD Sender: No OFD packet to send [03:40:54]OFD Sender: No OFD packet to send [03:40:59]OFD Sender: No OFD packet to send [03:41:04]OFD Sender: No OFD packet to send [03:41:09]OFD Sender: No OFD packet to send [03:41:14]OFD Sender: No OFD packet to send [03:41:19]OFD Sender: No OFD packet to send [03:41:24]OFD Sender: No OFD packet to send [03:41:29]OFD Sender: No OFD packet to send [03:41:34]OFD Sender: No OFD packet to send [03:41:39]OFD Sender: No OFD packet to send [03:41:44]OFD Sender: No OFD packet to send [03:41:49]OFD Sender: No OFD packet to send [03:41:54]OFD Sender: No OFD packet to send [03:41:59]OFD Sender: No OFD packet to send [03:42:04]OFD Sender: No OFD packet to send [03:42:09]OFD Sender: No OFD packet to send [03:42:14]OFD Sender: No OFD packet to send [03:42:19]OFD Sender: No OFD packet to send [03:42:24]OFD Sender: No OFD packet to send [03:42:29]OFD Sender: No OFD packet to send [03:42:34]OFD Sender: No OFD packet to send [03:42:39]OFD Sender: No OFD packet to send [03:42:44]OFD Sender: No OFD packet to send [03:42:49]OFD Sender: No OFD packet to send [03:42:54]OFD Sender: No OFD packet to send [03:42:59]OFD Sender: No OFD packet to send [03:43:04]OFD Sender: No OFD packet to send [03:43:09]OFD Sender: No OFD packet to send [03:43:14]OFD Sender: No OFD packet to send [03:43:19]OFD Sender: No OFD packet to send [03:43:24]OFD Sender: No OFD packet to send [03:43:29]OFD Sender: No OFD packet to send [03:43:34]OFD Sender: No OFD packet to send [03:43:39]OFD Sender: No OFD packet to send [03:43:44]OFD Sender: No OFD packet to send [03:43:49]OFD Sender: No OFD packet to send [03:43:54]OFD Sender: No OFD packet to send [03:43:59]OFD Sender: No OFD packet to send [03:44:05]OFD Sender: No OFD packet to send [03:44:10]OFD Sender: No OFD packet to send [03:44:15]OFD Sender: No OFD packet to send [03:44:20]OFD Sender: No OFD packet to send [03:44:25]OFD Sender: No OFD packet to send [03:44:30]OFD Sender: No OFD packet to send [03:44:35]OFD Sender: No OFD packet to send [03:44:40]OFD Sender: No OFD packet to send [03:44:45]OFD Sender: No OFD packet to send [03:44:50]OFD Sender: No OFD packet to send [03:44:55]OFD Sender: No OFD packet to send [03:45:00]OFD Sender: No OFD packet to send [03:45:05]OFD Sender: No OFD packet to send [03:45:10]OFD Sender: No OFD packet to send [03:45:15]OFD Sender: No OFD packet to send [03:45:20]OFD Sender: No OFD packet to send [03:45:25]OFD Sender: No OFD packet to send [03:45:30]OFD Sender: No OFD packet to send [03:45:35]OFD Sender: No OFD packet to send [03:45:40]OFD Sender: No OFD packet to send [03:45:45]OFD Sender: No OFD packet to send [03:45:50]OFD Sender: No OFD packet to send [03:45:55]OFD Sender: No OFD packet to send [03:46:00]OFD Sender: No OFD packet to send [03:46:05]OFD Sender: No OFD packet to send [03:46:10]OFD Sender: No OFD packet to send [03:46:15]OFD Sender: No OFD packet to send [03:46:20]OFD Sender: No OFD packet to send [03:46:25]OFD Sender: No OFD packet to send [03:46:30]OFD Sender: No OFD packet to send [03:46:35]OFD Sender: No OFD packet to send [03:46:40]OFD Sender: No OFD packet to send [03:46:45]OFD Sender: No OFD packet to send [03:46:50]OFD Sender: No OFD packet to send [03:46:55]OFD Sender: No OFD packet to send [03:47:00]OFD Sender: No OFD packet to send [03:47:05]OFD Sender: No OFD packet to send [03:47:10]OFD Sender: No OFD packet to send [03:47:15]OFD Sender: No OFD packet to send [03:47:20]OFD Sender: No OFD packet to send [03:47:25]OFD Sender: No OFD packet to send [03:47:30]OFD Sender: No OFD packet to send [03:47:35]OFD Sender: No OFD packet to send [03:47:40]OFD Sender: No OFD packet to send [03:47:45]OFD Sender: No OFD packet to send [03:47:50]OFD Sender: No OFD packet to send [03:47:55]OFD Sender: No OFD packet to send [03:48:00]OFD Sender: No OFD packet to send [03:48:05]OFD Sender: No OFD packet to send [03:48:10]OFD Sender: No OFD packet to send [03:48:15]OFD Sender: No OFD packet to send [03:48:20]OFD Sender: No OFD packet to send [03:48:25]OFD Sender: No OFD packet to send [03:48:30]OFD Sender: No OFD packet to send [03:48:35]OFD Sender: No OFD packet to send [03:48:40]OFD Sender: No OFD packet to send [03:48:45]OFD Sender: No OFD packet to send [03:48:50]OFD Sender: No OFD packet to send [03:48:55]OFD Sender: No OFD packet to send [03:49:00]OFD Sender: No OFD packet to send [03:49:05]OFD Sender: No OFD packet to send [03:49:10]OFD Sender: No OFD packet to send [03:49:15]OFD Sender: No OFD packet to send [03:49:20]OFD Sender: No OFD packet to send [03:49:25]OFD Sender: No OFD packet to send [03:49:30]OFD Sender: No OFD packet to send [03:49:35]OFD Sender: No OFD packet to send [03:49:40]OFD Sender: No OFD packet to send [03:49:45]OFD Sender: No OFD packet to send [03:49:50]OFD Sender: No OFD packet to send [03:49:55]OFD Sender: No OFD packet to send [03:50:00]OFD Sender: No OFD packet to send [03:50:05]OFD Sender: No OFD packet to send [03:50:10]OFD Sender: No OFD packet to send [03:50:15]OFD Sender: No OFD packet to send [03:50:20]OFD Sender: No OFD packet to send [03:50:25]OFD Sender: No OFD packet to send [03:50:30]OFD Sender: No OFD packet to send [03:50:35]OFD Sender: No OFD packet to send [03:50:40]OFD Sender: No OFD packet to send [03:50:45]OFD Sender: No OFD packet to send [03:50:50]OFD Sender: No OFD packet to send [03:50:55]OFD Sender: No OFD packet to send [03:51:00]OFD Sender: No OFD packet to send [03:51:05]OFD Sender: No OFD packet to send [03:51:10]OFD Sender: No OFD packet to send [03:51:15]OFD Sender: No OFD packet to send [03:51:20]OFD Sender: No OFD packet to send [03:51:25]OFD Sender: No OFD packet to send [03:51:30]OFD Sender: No OFD packet to send [03:51:35]OFD Sender: No OFD packet to send [03:51:40]OFD Sender: No OFD packet to send [03:51:45]OFD Sender: No OFD packet to send [03:51:50]OFD Sender: No OFD packet to send [03:51:55]OFD Sender: No OFD packet to send [03:52:00]OFD Sender: No OFD packet to send [03:52:05]OFD Sender: No OFD packet to send [03:52:10]OFD Sender: No OFD packet to send [03:52:15]OFD Sender: No OFD packet to send [03:52:20]OFD Sender: No OFD packet to send [03:52:25]OFD Sender: No OFD packet to send [03:52:30]OFD Sender: No OFD packet to send [03:52:35]OFD Sender: No OFD packet to send [03:52:40]OFD Sender: No OFD packet to send [03:52:45]OFD Sender: No OFD packet to send [03:52:50]OFD Sender: No OFD packet to send [03:52:55]OFD Sender: No OFD packet to send [03:53:00]OFD Sender: No OFD packet to send [03:53:05]OFD Sender: No OFD packet to send [03:53:10]OFD Sender: No OFD packet to send [03:53:15]OFD Sender: No OFD packet to send [03:53:20]OFD Sender: No OFD packet to send [03:53:25]OFD Sender: No OFD packet to send [03:53:30]OFD Sender: No OFD packet to send [03:53:35]OFD Sender: No OFD packet to send [03:53:40]OFD Sender: No OFD packet to send [03:53:45]OFD Sender: No OFD packet to send [03:53:50]OFD Sender: No OFD packet to send [03:53:55]OFD Sender: No OFD packet to send [03:54:00]OFD Sender: No OFD packet to send [03:54:05]OFD Sender: No OFD packet to send [03:54:10]OFD Sender: No OFD packet to send [03:54:15]OFD Sender: No OFD packet to send [03:54:20]OFD Sender: No OFD packet to send [03:54:25]OFD Sender: No OFD packet to send [03:54:30]OFD Sender: No OFD packet to send [03:54:35]OFD Sender: No OFD packet to send [03:54:40]OFD Sender: No OFD packet to send [03:54:45]OFD Sender: No OFD packet to send [03:54:50]OFD Sender: No OFD packet to send [03:54:55]OFD Sender: No OFD packet to send [03:55:00]OFD Sender: No OFD packet to send [03:55:05]OFD Sender: No OFD packet to send [03:55:10]OFD Sender: No OFD packet to send [03:55:15]OFD Sender: No OFD packet to send [03:55:20]OFD Sender: No OFD packet to send [03:55:25]OFD Sender: No OFD packet to send [03:55:30]OFD Sender: No OFD packet to send [03:55:35]OFD Sender: No OFD packet to send [03:55:40]OFD Sender: No OFD packet to send [03:55:45]OFD Sender: No OFD packet to send [03:55:50]OFD Sender: No OFD packet to send [03:55:55]OFD Sender: No OFD packet to send [03:56:00]OFD Sender: No OFD packet to send [03:56:05]OFD Sender: No OFD packet to send [03:56:10]OFD Sender: No OFD packet to send [03:56:15]OFD Sender: No OFD packet to send [03:56:20]OFD Sender: No OFD packet to send [03:56:25]OFD Sender: No OFD packet to send [03:56:30]OFD Sender: No OFD packet to send [03:56:35]OFD Sender: No OFD packet to send [03:56:40]OFD Sender: No OFD packet to send [03:56:45]OFD Sender: No OFD packet to send [03:56:50]OFD Sender: No OFD packet to send [03:56:55]OFD Sender: No OFD packet to send [03:57:00]OFD Sender: No OFD packet to send [03:57:05]OFD Sender: No OFD packet to send [03:57:10]OFD Sender: No OFD packet to send [03:57:15]OFD Sender: No OFD packet to send [03:57:20]OFD Sender: No OFD packet to send [03:57:25]OFD Sender: No OFD packet to send [03:57:30]OFD Sender: No OFD packet to send [03:57:35]OFD Sender: No OFD packet to send [03:57:40]OFD Sender: No OFD packet to send [03:57:45]OFD Sender: No OFD packet to send [03:57:50]OFD Sender: No OFD packet to send [03:57:55]OFD Sender: No OFD packet to send [03:58:00]OFD Sender: No OFD packet to send [03:58:05]OFD Sender: No OFD packet to send [03:58:10]OFD Sender: No OFD packet to send [03:58:15]OFD Sender: No OFD packet to send [03:58:20]OFD Sender: No OFD packet to send [03:58:25]OFD Sender: No OFD packet to send [03:58:30]OFD Sender: No OFD packet to send [03:58:35]OFD Sender: No OFD packet to send [03:58:40]OFD Sender: No OFD packet to send [03:58:45]OFD Sender: No OFD packet to send [03:58:51]OFD Sender: No OFD packet to send [03:58:56]OFD Sender: No OFD packet to send [03:59:01]OFD Sender: No OFD packet to send [03:59:06]OFD Sender: No OFD packet to send [03:59:11]OFD Sender: No OFD packet to send [03:59:16]OFD Sender: No OFD packet to send [03:59:21]OFD Sender: No OFD packet to send [03:59:26]OFD Sender: No OFD packet to send [03:59:31]OFD Sender: No OFD packet to send [03:59:36]OFD Sender: No OFD packet to send [03:59:41]OFD Sender: No OFD packet to send [03:59:46]OFD Sender: No OFD packet to send [03:59:51]OFD Sender: No OFD packet to send [03:59:56]OFD Sender: No OFD packet to send [04:00:01]OFD Sender: No OFD packet to send [04:00:06]OFD Sender: No OFD packet to send [04:00:11]OFD Sender: No OFD packet to send [04:00:16]OFD Sender: No OFD packet to send [04:00:21]OFD Sender: No OFD packet to send [04:00:26]OFD Sender: No OFD packet to send [04:00:31]OFD Sender: No OFD packet to send [04:00:36]OFD Sender: No OFD packet to send [04:00:41]OFD Sender: No OFD packet to send [04:00:46]OFD Sender: No OFD packet to send [04:00:51]OFD Sender: No OFD packet to send [04:00:56]OFD Sender: No OFD packet to send [04:01:01]OFD Sender: No OFD packet to send [04:01:06]OFD Sender: No OFD packet to send [04:01:11]OFD Sender: No OFD packet to send [04:01:16]OFD Sender: No OFD packet to send [04:01:21]OFD Sender: No OFD packet to send [04:01:26]OFD Sender: No OFD packet to send [04:01:31]OFD Sender: No OFD packet to send [04:01:36]OFD Sender: No OFD packet to send [04:01:41]OFD Sender: No OFD packet to send [04:01:46]OFD Sender: No OFD packet to send [04:01:51]OFD Sender: No OFD packet to send [04:01:56]OFD Sender: No OFD packet to send [04:02:01]OFD Sender: No OFD packet to send [04:02:06]OFD Sender: No OFD packet to send [04:02:11]OFD Sender: No OFD packet to send [04:02:16]OFD Sender: No OFD packet to send [04:02:21]OFD Sender: No OFD packet to send [04:02:26]OFD Sender: No OFD packet to send [04:02:31]OFD Sender: No OFD packet to send [04:02:36]OFD Sender: No OFD packet to send [04:02:41]OFD Sender: No OFD packet to send [04:02:46]OFD Sender: No OFD packet to send [04:02:51]OFD Sender: No OFD packet to send [04:02:56]OFD Sender: No OFD packet to send [04:03:01]OFD Sender: No OFD packet to send [04:03:06]OFD Sender: No OFD packet to send [04:03:11]OFD Sender: No OFD packet to send [04:03:16]OFD Sender: No OFD packet to send [04:03:21]OFD Sender: No OFD packet to send [04:03:26]OFD Sender: No OFD packet to send [04:03:31]OFD Sender: No OFD packet to send [04:03:36]OFD Sender: No OFD packet to send [04:03:41]OFD Sender: No OFD packet to send [04:03:46]OFD Sender: No OFD packet to send [04:03:51]OFD Sender: No OFD packet to send [04:03:56]OFD Sender: No OFD packet to send [04:04:01]OFD Sender: No OFD packet to send [04:04:06]OFD Sender: No OFD packet to send [04:04:11]OFD Sender: No OFD packet to send [04:04:16]OFD Sender: No OFD packet to send [04:04:21]OFD Sender: No OFD packet to send [04:04:26]OFD Sender: No OFD packet to send [04:04:31]OFD Sender: No OFD packet to send [04:04:36]OFD Sender: No OFD packet to send [04:04:41]OFD Sender: No OFD packet to send [04:04:46]OFD Sender: No OFD packet to send [04:04:51]OFD Sender: No OFD packet to send [04:04:56]OFD Sender: No OFD packet to send [04:05:01]OFD Sender: No OFD packet to send [04:05:02]accept exits with 7 [04:05:02]New connection [04:05:02]New thread 3067415908 created [04:05:02]Thread 3067559268 joined [04:05:02]Waiting for new connection... [04:05:02] Sock 7.Parse request [04:05:02]Sock 7.Check first char [04:05:02]Sock 7.First char is OK [04:05:02]request: POST /json_proto HTTP/1.0 [04:05:02]Method: POST [04:05:02]URL: /json_proto [04:05:02]Method is POST - this is cgi request [04:05:02]url: /json_proto [04:05:02]query_string will be loaded in cgi processing [04:05:02]execute_cgi json_proto POST (null) [04:05:02]execute_cgi path=json_proto method=POST [04:05:02]POST find Content-Length [04:05:02]Host: 172.17.63.195:8080 [04:05:02]Content-Length: 682 [04:05:02]Content-Type: application/json [04:05:02] [04:05:02]POST finish read [04:05:02]Found Content-Length = 682 [04:05:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)448991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [04:05:02]execute_script... [04:05: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)448991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [04:05:02]POST & json_proto [04:05:02]process_json_proto [04:05:02]json parsed OK: [04:05:02]protocol is kg_v1.0 [04:05:02]action value=close_receipt [04:05:02]process_action close_receipt [04:05:02]cmd_close_receipt [04:05:02]MH_GetDate [04:05:02]Write to MH i2c: F0 00 00 85 0D 81 [04:05:02]Write i2c OK [04:05:02]MH_I2C_Read... [04:05:02]Read from MH i2c: F0 [04:05:02]MH_I2C_Read... [04:05:02]Read from MH i2c: F0 09 00 [04:05:02]MH_I2C_Read... [04:05:02]Read from MH i2c: F0 09 00 85 0D 00 71 6A 1C 67 68 46 19 67 16 [04:05:02]GetLastDocTimeStamp 1729911586 [04:05:02]current date 1729915505 [04:05:02]FM_GetShiftState [04:05:02]SAM_PROTO_GetShiftState [04:05:02]wFMCommunicate request_size=4 [04:05:02]MH_SAM_APDU [04:05:02]CAPDU: 80 13 01 00 [04:05:02]Write to MH i2c: E2 08 00 86 0D 80 13 01 00 00 00 00 00 10 [04:05:02]Write i2c OK [04:05:02]MH_I2C_Read... [04:05:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:05:02]Read from MH i2c: E2 [04:05:02]MH_I2C_Read... [04:05:02]Read from MH i2c: E2 0E 00 [04:05:02]MH_I2C_Read... [04:05:02]Read from MH i2c: E2 0E 00 86 0D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 1F [04:05:02]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [04:05:02]wFMCommunicate OK [04:05:02]SAM_PROTO_GetShiftState done [04:05:02]FM_GetShiftState done [04:05:02]opened in 1729900879 [04:05:02]opened+sec_in_day 1729987279 [04:05:02]quantity*price = 200031 [04:05:02]sum+1 = 200032 [04:05:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 8 26.10.2024 04:05 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201246 ФПД: 131519587293727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T040505&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201246&fm=131519587293727&tin=02508201610067®Number=0000000000091777&sum=200000 [04:05:04]StoreToDocumentArchive [04:05:04]shift 543 fd 201246 [04:05:04]save to /storage/0543/doc_00201246 [04:05:04]save last doc name /storage/0543/doc_00201246 to /storage/kkm_last_doc_name [04:05:04]save OK [04:05:04]Clear old archive folders... [04:05:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:05:04]tlvbuf is 0170D2F0 [04:05:04]SAM_PROTO_ClearQueue [04:05:04]wFMCommunicate request_size=4 [04:05:04]MH_SAM_APDU [04:05:04]CAPDU: 80 09 00 00 [04:05:04]Write to MH i2c: E2 08 00 93 0D 80 09 00 00 00 00 00 00 12 [04:05:04]Write i2c OK [04:05:04]MH_I2C_Read... [04:05:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:05:04]Read from MH i2c: E2 [04:05:04]MH_I2C_Read... [04:05:04]Read from MH i2c: E2 03 00 [04:05:04]MH_I2C_Read... [04:05:04]Read from MH i2c: E2 03 00 93 0D 00 90 00 14 [04:05:04]RAPDU: 90 00 [04:05:04]wFMCommunicate OK [04:05:04]SAM_PROTO_ClearQueue done [04:05:04]KKMCreateOFDPacket [04:05:04]OFDProtocolAddRootSTLVToBuf [04:05:04]FM_MakeSignedData [04:05:04]FM_MakeSignedData [04:05:04]SAM_PROTO_SignData [04:05:04]wFMCommunicate request_size=4 [04:05:04]MH_SAM_APDU [04:05:04]CAPDU: 80 0D 01 02 [04:05:04]Write to MH i2c: E2 08 00 94 0D 80 0D 01 02 00 00 00 00 1A [04:05:04]Write i2c OK [04:05:04]MH_I2C_Read... [04:05:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:05:04]Read from MH i2c: E2 [04:05:04]MH_I2C_Read... [04:05:04]Read from MH i2c: E2 03 00 [04:05:04]MH_I2C_Read... [04:05:04]Read from MH i2c: E2 03 00 94 0D 00 90 00 15 [04:05:04]RAPDU: 90 00 [04:05:04]wFMCommunicate OK [04:05:04]wFMCommunicate request_size=255 [04:05:04]MH_SAM_APDU [04:05: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 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 FA 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 08 00 00 00 F4 03 04 00 71 6A 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1E 12 03 00 35 04 06 00 77 [04:05:04]Write to MH i2c: E2 02 01 95 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 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 FA 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 08 00 00 00 F4 03 04 00 71 6A 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1E 12 03 00 35 04 06 00 77 00 00 21 [04:05:04]Write i2c OK [04:05:04]MH_I2C_Read... [04:05:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:05:04]Read from MH i2c: E2 [04:05:04]MH_I2C_Read... [04:05:04]Read from MH i2c: E2 03 00 [04:05:04]MH_I2C_Read... [04:05:04]Read from MH i2c: E2 03 00 95 0D 00 90 00 16 [04:05:04]RAPDU: 90 00 [04:05:04]wFMCommunicate OK [04:05:04]wFMCommunicate request_size=10 [04:05:04]MH_SAM_APDU [04:05:04]CAPDU: 80 0D 02 02 05 9D CA 48 1A 1F [04:05:04]Write to MH i2c: E2 0D 00 96 0D 80 0D 02 02 05 00 9D CA 48 1A 1F 00 00 0F [04:05:04]Write i2c OK [04:05:04]MH_I2C_Read... [04:05:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:05:04]Read from MH i2c: E2 [04:05:04]MH_I2C_Read... [04:05:04]Read from MH i2c: E2 03 00 [04:05:04]MH_I2C_Read... [04:05:04]Read from MH i2c: E2 03 00 96 0D 00 90 00 17 [04:05:04]RAPDU: 90 00 [04:05:04]wFMCommunicate OK [04:05:04]wFMCommunicate request_size=4 [04:05:04]MH_SAM_APDU [04:05:04]CAPDU: 80 0D 03 02 [04:05:04]Write to MH i2c: E2 08 00 97 0D 80 0D 03 02 00 00 00 00 1F [04:05:04]Write i2c OK [04:05:04]MH_I2C_Read... [04:05:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:05:04]Read from MH i2c: E2 [04:05:04]MH_I2C_Read... [04:05:04]Read from MH i2c: E2 0B 00 [04:05:04]MH_I2C_Read... [04:05:04]Read from MH i2c: E2 0B 00 97 0D 00 F4 70 B8 E7 B9 A3 7B 6D 90 00 67 [04:05:04]RAPDU: F4 70 B8 E7 B9 A3 7B 6D 90 00 [04:05:04]wFMCommunicate OK [04:05:04]SAM_PROTO_SignData done [04:05:04]FM_MakeSignedData done [04:05:04]CreateOFDProtocolMessage [04:05:04]wFMCommunicate request_size=4 [04:05:04]MH_SAM_APDU [04:05:04]CAPDU: 80 11 00 00 [04:05:04]Write to MH i2c: E2 08 00 98 0D 80 11 00 00 00 00 00 00 1F [04:05:04]Write i2c OK [04:05:04]MH_I2C_Read... [04:05:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:05:04]Read from MH i2c: E2 [04:05:04]MH_I2C_Read... [04:05:04]Read from MH i2c: E2 17 00 [04:05:04]MH_I2C_Read... [04:05:04]Read from MH i2c: E2 17 00 98 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 74 [04:05:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [04:05:04]wFMCommunicate OK [04:05:04]CreateOFDProtocolMessage done [04:05:04]OFDSenderStorePacket 201246 [04:05:04]StoreOFDPacket docnum=201246 [04:05:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8A 5D 07 01 94 63 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 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 FA 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 08 00 00 00 F4 03 04 00 71 6A 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1E 12 03 00 35 04 06 00 77 9D CA 48 1A 1F F4 70 B8 E7 B9 A3 7B 6D [04:05:04]CheckFolder [04:05:04]dirname=/storage/ofd_packets [04:05:04]CheckFolder done [04:05:04]ProducePacketName [04:05:04]name=ofd_packets/00201246 [04:05:04]NVStorageSaveData ofd_packets/00201246 [04:05:04]File name is /storage/ofd_packets/00201246 [04:05:04]Write 301 bytes [04:05:04]NVStorageSaveData done [04:05:04]OFDSenderStorePacket done [04:05:04]KKMCreateOFDPacket done [04:05:04]NVStorageSaveData kkm_last_timestamp [04:05:04]File name is /storage/kkm_last_timestamp [04:05:04]Write 4 bytes [04:05:04]NVStorageSaveData done [04:05:04]ExternCall_PrintAddStr [04:05:04]wPrintStart [04:05:04]Write to MH i2c: 01 00 00 99 0D A6 [04:05:04]Write i2c OK [04:05:04]MH_I2C_Read... [04:05:04]Read from MH i2c: 01 [04:05:04]MH_I2C_Read... [04:05:04]Read from MH i2c: 01 07 00 [04:05:04]MH_I2C_Read... [04:05:04]Read from MH i2c: 01 07 00 99 0D 00 00 00 00 00 FF 0F BB [04:05:04]RasterBufferAndPrint [04:05:04]line Счет N : (1)448991 [04:05:04]line ИНН: 02508201610067 [04:05:04]line Контрольно-Кассовый Чек [04:05:04]line ПРОДАЖА [04:05:04]line ТРК (МРК, ГНК) : 52 [04:05:04]line Товар: 2710124130 [04:05:04]line Аи-92-К-2 [04:05:04]line 29.900 * 66.90 [04:05:04]line = 2000.31 [04:05:04]line НДС 12% НСП 1% [04:05:04]line > о реализуемом товаре [04:05:04]line ОКРУГЛЕНИЕ: -0.31 [04:05:04]line ИТОГО: 2000.00 [04:05:04]line Внесено: 2000.00 [04:05:04]line СДАЧА: 0.00 [04:05:04]line НСП 1% : 17.70 [04:05:04]line НДС 12% : 212.42 [04:05:04]line Наличными: 2000.00 [04:05:04]line Безнал.: 0.00 [04:05:04]line Место: АЗС № 171 "Партнер Нефть" [04:05:04]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [04:05:04]line СНО: Общий режим [04:05:04]line Чек 8 26.10.2024 04:05 [04:05:04]line Смена: 543 ФФД: 1.0 [04:05:04]line ЗНМ: 0300000109 [04:05:04]line РНМ: 0000000000091777 [04:05:04]line Версия ККМ: 001 [04:05:04]line ФМ: 0000000000871756 [04:05:04]line ФД: 201246 [04:05:04]line ФПД: 131519587293727 [04:05:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T040505&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201246&fm=131519587293727&tin=02508201610067®Number=0000000000091777&sum=200000 [04:05:04]OFD Sender: Processing packet 201246 [packets to send 112, broken 111] [04:05:04]ProducePacketName [04:05:04]name=ofd_packets/00201246 [04:05:04]OFD Sender: To server: pG, [04:05:04]CommunicateWithHost lk.salyk.kg:30040 [04:05:04]ConnectInit lk.salyk.kg [04:05:04]written 0, free lines is 4095 [04:05:05]Connected sock=10 [04:05:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8A 5D 07 01 94 63 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 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 FA 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 08 00 00 00 F4 03 04 00 71 6A 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1E 12 03 00 35 04 06 00 77 9D CA 48 1A 1F F4 70 B8 E7 B9 A3 7B 6D [04:05:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 14 B7 47 00 7E A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1E 12 03 00 F4 03 04 00 1B 16 1C 67 B6 04 01 00 00 84 B9 FC 2A 8E 30 EC 2C [04:05:05]CommunicateWithHost err = 0 [04:05:05]CheckOFDResponse [04:05:05]1017 (14) - 77093643461234 [04:05:05]1041 (16) - 0000000000871756 [04:05:05]1040 (4) - 201246 [04:05:05]1012 (4) - 25.10.2024 22:05 [04:05:05]1206 (1) - 0 [04:05:05]OFD Sender: Remove packet 201246 [04:05:05]ProducePacketName [04:05:05]name=ofd_packets/00201246 [04:05:05]NVStorageDeleteData [04:05:05]Write to MH i2c: 01 00 00 C4 0D D1 [04:05:05]Write i2c OK [04:05:05]MH_I2C_Read... [04:05:05]Read from MH i2c: 01 [04:05:05]MH_I2C_Read... [04:05:05]Read from MH i2c: 01 07 00 [04:05:05]MH_I2C_Read... [04:05:05]Read from MH i2c: 01 07 00 C4 0D 00 00 00 00 00 95 0C 79 [04:05:05]RasterBufferAndPrint [04:05:05]line [04:05:05]line [04:05:05]line [04:05:05]line [04:05:05]line [04:05:05]written 0, free lines is 3227 [04:05:05]MH_Cut [04:05:05]Write to MH i2c: D1 01 00 CB 0D 01 AA [04:05:05]Write i2c OK [04:05:05]MH_I2C_Read... [04:05:05]Read from MH i2c: D1 [04:05:05]MH_I2C_Read... [04:05:05]Read from MH i2c: D1 01 00 [04:05:05]MH_I2C_Read... [04:05:05]Read from MH i2c: D1 01 00 CB 0D 00 A9 [04:05:05]Write to MH i2c: 01 00 00 CC 0D D9 [04:05:05]Write i2c OK [04:05:05]MH_I2C_Read... [04:05:05]OFD Sender: No OFD packet to send [04:05:06]*** Cut start [04:05:06]*** Purtial cut [04:05:06]*** Stage 1: CUTSNS_PIN = 1 [04:05:06]Read from MH i2c: 01 [04:05:06]MH_I2C_Read... [04:05:06]*** Stop cut motor [04:05:06]*** Cut end [04:05:06]Read from MH i2c: 01 07 00 [04:05:06]MH_I2C_Read... [04:05:06]Read from MH i2c: 01 07 00 CC 0D 00 00 00 00 00 FF 0F EE [04:05:06]process_action close_receipt done [04:05:06]requested_data is exist [04:05:06]produce_requested_data [04:05:06]requested_item fm.sn is exist - process it [04:05:06]wFMCommunicate request_size=4 [04:05:06]MH_SAM_APDU [04:05:06]CAPDU: 80 11 00 00 [04:05:06]Write to MH i2c: E2 08 00 CD 0D 80 11 00 00 00 00 00 00 54 [04:05:06]Write i2c OK [04:05:06]MH_I2C_Read... [04:05:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:05:06]Read from MH i2c: E2 [04:05:06]MH_I2C_Read... [04:05:06]Read from MH i2c: E2 17 00 [04:05:06]MH_I2C_Read... [04:05:06]Read from MH i2c: E2 17 00 CD 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A9 [04:05:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [04:05:06]wFMCommunicate OK [04:05:06]requested_item fd.num is exist - process it [04:05:06]SAM_PROTO_GetFieldsCounters [04:05:06]wFMCommunicate request_size=4 [04:05:06]MH_SAM_APDU [04:05:06]CAPDU: 80 13 00 00 [04:05:06]Write to MH i2c: E2 08 00 CE 0D 80 13 00 00 00 00 00 00 57 [04:05:06]Write i2c OK [04:05:06]MH_I2C_Read... [04:05:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:05:06]Read from MH i2c: E2 [04:05:06]MH_I2C_Read... [04:05:06]Read from MH i2c: E2 62 00 [04:05:06]MH_I2C_Read... [04:05:06]Read from MH i2c: E2 62 00 CE 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1E 12 03 00 0E 04 04 00 1F 02 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 EC [04:05:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1E 12 03 00 0E 04 04 00 1F 02 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 [04:05:06]wFMCommunicate OK [04:05:06]SAM_PROTO_GetFieldsCounters done [04:05:06]requested_item shift.num is exist - process it [04:05:06]requested_item shift.opened is exist - process it [04:05:06]req_shift_opened [04:05:06]FM_GetShiftState [04:05:06]SAM_PROTO_GetShiftState [04:05:06]wFMCommunicate request_size=4 [04:05:06]MH_SAM_APDU [04:05:06]CAPDU: 80 13 01 00 [04:05:06]Write to MH i2c: E2 08 00 CF 0D 80 13 01 00 00 00 00 00 59 [04:05:06]Write i2c OK [04:05:06]MH_I2C_Read... [04:05:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:05:06]Read from MH i2c: E2 [04:05:06]MH_I2C_Read... [04:05:06]Read from MH i2c: E2 0E 00 [04:05:06]MH_I2C_Read... [04:05:06]Read from MH i2c: E2 0E 00 CF 0D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 68 [04:05:06]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [04:05:06]wFMCommunicate OK [04:05:06]SAM_PROTO_GetShiftState done [04:05:06]FM_GetShiftState done [04:05:06]req_shift_opened done [04:05:06]requested_item shift.open_date is exist - process it [04:05:06]req_shift_open_date [04:05:06]req_shift_open_date done [04:05:06]produce_requested_data done [04:05:06]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201246,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [04:05:06]process_action_free close_receipt [04:05:06]json_value_free [04:05:06]json_value_free done [04:05:06]process_json_proto returns [04:05:06]Send response to host [04:05:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201246,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [04:05:06]free response buf [04:05:06]execute_script done [04:05:06]execute_script returns [04:05:06]free content buf [04:05:06]Sock 7.Close socket [04:05:06]Sock 7.Thread stoped [04:05:10]OFD Sender: No OFD packet to send [04:05:15]OFD Sender: No OFD packet to send [04:05:20]OFD Sender: No OFD packet to send [04:05:25]OFD Sender: No OFD packet to send [04:05:30]OFD Sender: No OFD packet to send [04:05:35]OFD Sender: No OFD packet to send [04:05:40]OFD Sender: No OFD packet to send [04:05:45]OFD Sender: No OFD packet to send [04:05:50]OFD Sender: No OFD packet to send [04:05:55]OFD Sender: No OFD packet to send [04:06:00]OFD Sender: No OFD packet to send [04:06:05]OFD Sender: No OFD packet to send [04:06:10]OFD Sender: No OFD packet to send [04:06:15]OFD Sender: No OFD packet to send [04:06:20]OFD Sender: No OFD packet to send [04:06:25]OFD Sender: No OFD packet to send [04:06:30]OFD Sender: No OFD packet to send [04:06:35]OFD Sender: No OFD packet to send [04:06:40]OFD Sender: No OFD packet to send [04:06:45]OFD Sender: No OFD packet to send [04:06:50]OFD Sender: No OFD packet to send [04:06:55]OFD Sender: No OFD packet to send [04:07:00]OFD Sender: No OFD packet to send [04:07:05]OFD Sender: No OFD packet to send [04:07:10]OFD Sender: No OFD packet to send [04:07:15]OFD Sender: No OFD packet to send [04:07:20]OFD Sender: No OFD packet to send [04:07:25]OFD Sender: No OFD packet to send [04:07:30]OFD Sender: No OFD packet to send [04:07:35]OFD Sender: No OFD packet to send [04:07:40]OFD Sender: No OFD packet to send [04:07:45]OFD Sender: No OFD packet to send [04:07:50]OFD Sender: No OFD packet to send [04:07:55]OFD Sender: No OFD packet to send [04:08:00]OFD Sender: No OFD packet to send [04:08:05]OFD Sender: No OFD packet to send [04:08:10]OFD Sender: No OFD packet to send [04:08:15]OFD Sender: No OFD packet to send [04:08:20]OFD Sender: No OFD packet to send [04:08:25]OFD Sender: No OFD packet to send [04:08:30]OFD Sender: No OFD packet to send [04:08:35]OFD Sender: No OFD packet to send [04:08:40]OFD Sender: No OFD packet to send [04:08:41]accept exits with 9 [04:08:41]New connection [04:08:41]New thread 3067559268 created [04:08:41]Thread 3067415908 joined [04:08:41]Waiting for new connection... [04:08:41] Sock 9.Parse request [04:08:41]Sock 9.Check first char [04:08:41]Sock 9.First char is OK [04:08:41]request: POST /json_proto HTTP/1.0 [04:08:41]Method: POST [04:08:41]URL: /json_proto [04:08:41]Method is POST - this is cgi request [04:08:41]url: /json_proto [04:08:41]query_string will be loaded in cgi processing [04:08:41]execute_cgi json_proto POST (null) [04:08:41]execute_cgi path=json_proto method=POST [04:08:41]POST find Content-Length [04:08:41]Host: 172.17.63.195:8080 [04:08:41]Content-Length: 682 [04:08:41]Content-Type: application/json [04:08:41] [04:08:41]POST finish read [04:08:41]Found Content-Length = 682 [04:08:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)448992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [04:08:41]execute_script... [04:08: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)448992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [04:08:41]POST & json_proto [04:08:41]process_json_proto [04:08:41]json parsed OK: [04:08:41]protocol is kg_v1.0 [04:08:41]action value=close_receipt [04:08:41]process_action close_receipt [04:08:41]cmd_close_receipt [04:08:41]MH_GetDate [04:08:41]Write to MH i2c: F0 00 00 D0 0D CC [04:08:41]Write i2c OK [04:08:41]MH_I2C_Read... [04:08:41]Read from MH i2c: F0 [04:08:41]MH_I2C_Read... [04:08:41]Read from MH i2c: F0 09 00 [04:08:41]MH_I2C_Read... [04:08:41]Read from MH i2c: F0 09 00 D0 0D 00 4B 6B 1C 67 68 46 19 67 3C [04:08:41]GetLastDocTimeStamp 1729915505 [04:08:41]current date 1729915723 [04:08:41]FM_GetShiftState [04:08:41]SAM_PROTO_GetShiftState [04:08:41]wFMCommunicate request_size=4 [04:08:41]MH_SAM_APDU [04:08:41]CAPDU: 80 13 01 00 [04:08:41]Write to MH i2c: E2 08 00 D1 0D 80 13 01 00 00 00 00 00 5B [04:08:41]Write i2c OK [04:08:41]MH_I2C_Read... [04:08:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:08:41]Read from MH i2c: E2 [04:08:41]MH_I2C_Read... [04:08:41]Read from MH i2c: E2 0E 00 [04:08:41]MH_I2C_Read... [04:08:41]Read from MH i2c: E2 0E 00 D1 0D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 6A [04:08:41]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [04:08:41]wFMCommunicate OK [04:08:41]SAM_PROTO_GetShiftState done [04:08:41]FM_GetShiftState done [04:08:41]opened in 1729900879 [04:08:41]opened+sec_in_day 1729987279 [04:08:41]quantity*price = 100015 [04:08:41]sum+1 = 100017 [04:08:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 9 26.10.2024 04:08 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201247 ФПД: 141720601546738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T040843&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201247&fm=141720601546738&tin=02508201610067®Number=0000000000091777&sum=100000 [04:08:42]StoreToDocumentArchive [04:08:42]shift 543 fd 201247 [04:08:42]save to /storage/0543/doc_00201247 [04:08:42]save last doc name /storage/0543/doc_00201247 to /storage/kkm_last_doc_name [04:08:42]save OK [04:08:42]Clear old archive folders... [04:08:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:08:42]tlvbuf is 016E5300 [04:08:42]SAM_PROTO_ClearQueue [04:08:42]wFMCommunicate request_size=4 [04:08:42]MH_SAM_APDU [04:08:42]CAPDU: 80 09 00 00 [04:08:42]Write to MH i2c: E2 08 00 DE 0D 80 09 00 00 00 00 00 00 5D [04:08:42]Write i2c OK [04:08:42]MH_I2C_Read... [04:08:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:08:42]Read from MH i2c: E2 [04:08:42]MH_I2C_Read... [04:08:42]Read from MH i2c: E2 03 00 [04:08:42]MH_I2C_Read... [04:08:42]Read from MH i2c: E2 03 00 DE 0D 00 90 00 5F [04:08:42]RAPDU: 90 00 [04:08:42]wFMCommunicate OK [04:08:42]SAM_PROTO_ClearQueue done [04:08:42]KKMCreateOFDPacket [04:08:42]OFDProtocolAddRootSTLVToBuf [04:08:42]FM_MakeSignedData [04:08:42]FM_MakeSignedData [04:08:42]SAM_PROTO_SignData [04:08:42]wFMCommunicate request_size=4 [04:08:42]MH_SAM_APDU [04:08:42]CAPDU: 80 0D 01 02 [04:08:42]Write to MH i2c: E2 08 00 DF 0D 80 0D 01 02 00 00 00 00 65 [04:08:42]Write i2c OK [04:08:42]MH_I2C_Read... [04:08:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:08:42]Read from MH i2c: E2 [04:08:42]MH_I2C_Read... [04:08:42]Read from MH i2c: E2 03 00 [04:08:42]MH_I2C_Read... [04:08:42]Read from MH i2c: E2 03 00 DF 0D 00 90 00 60 [04:08:42]RAPDU: 90 00 [04:08:42]wFMCommunicate OK [04:08:42]wFMCommunicate request_size=255 [04:08:42]MH_SAM_APDU [04:08:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 09 00 00 00 F4 03 04 00 4B 6B 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1F 12 03 00 35 04 06 00 80 [04:08:42]Write to MH i2c: E2 02 01 E0 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 32 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 09 00 00 00 F4 03 04 00 4B 6B 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1F 12 03 00 35 04 06 00 80 00 00 0A [04:08:42]Write i2c OK [04:08:42]MH_I2C_Read... [04:08:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:08:43]Read from MH i2c: E2 [04:08:43]MH_I2C_Read... [04:08:43]Read from MH i2c: E2 03 00 [04:08:43]MH_I2C_Read... [04:08:43]Read from MH i2c: E2 03 00 E0 0D 00 90 00 61 [04:08:43]RAPDU: 90 00 [04:08:43]wFMCommunicate OK [04:08:43]wFMCommunicate request_size=10 [04:08:43]MH_SAM_APDU [04:08:43]CAPDU: 80 0D 02 02 05 E4 E6 1C CF F2 [04:08:43]Write to MH i2c: E2 0D 00 E1 0D 80 0D 02 02 05 00 E4 E6 1C CF F2 00 00 19 [04:08:43]Write i2c OK [04:08:43]MH_I2C_Read... [04:08:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:08:43]Read from MH i2c: E2 [04:08:43]MH_I2C_Read... [04:08:43]Read from MH i2c: E2 03 00 [04:08:43]MH_I2C_Read... [04:08:43]Read from MH i2c: E2 03 00 E1 0D 00 90 00 62 [04:08:43]RAPDU: 90 00 [04:08:43]wFMCommunicate OK [04:08:43]wFMCommunicate request_size=4 [04:08:43]MH_SAM_APDU [04:08:43]CAPDU: 80 0D 03 02 [04:08:43]Write to MH i2c: E2 08 00 E2 0D 80 0D 03 02 00 00 00 00 6A [04:08:43]Write i2c OK [04:08:43]MH_I2C_Read... [04:08:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:08:43]Read from MH i2c: E2 [04:08:43]MH_I2C_Read... [04:08:43]Read from MH i2c: E2 0B 00 [04:08:43]MH_I2C_Read... [04:08:43]Read from MH i2c: E2 0B 00 E2 0D 00 51 9C FF C6 98 D8 D4 2C 90 00 8D [04:08:43]RAPDU: 51 9C FF C6 98 D8 D4 2C 90 00 [04:08:43]wFMCommunicate OK [04:08:43]SAM_PROTO_SignData done [04:08:43]FM_MakeSignedData done [04:08:43]CreateOFDProtocolMessage [04:08:43]wFMCommunicate request_size=4 [04:08:43]MH_SAM_APDU [04:08:43]CAPDU: 80 11 00 00 [04:08:43]Write to MH i2c: E2 08 00 E3 0D 80 11 00 00 00 00 00 00 6A [04:08:43]Write i2c OK [04:08:43]MH_I2C_Read... [04:08:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:08:43]Read from MH i2c: E2 [04:08:43]MH_I2C_Read... [04:08:43]Read from MH i2c: E2 17 00 [04:08:43]MH_I2C_Read... [04:08:43]Read from MH i2c: E2 17 00 E3 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BF [04:08:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [04:08:43]wFMCommunicate OK [04:08:43]CreateOFDProtocolMessage done [04:08:43]OFDSenderStorePacket 201247 [04:08:43]StoreOFDPacket docnum=201247 [04:08:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 02 5E 07 01 42 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 09 00 00 00 F4 03 04 00 4B 6B 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1F 12 03 00 35 04 06 00 80 E4 E6 1C CF F2 51 9C FF C6 98 D8 D4 2C [04:08:43]CheckFolder [04:08:43]dirname=/storage/ofd_packets [04:08:43]CheckFolder done [04:08:43]ProducePacketName [04:08:43]name=ofd_packets/00201247 [04:08:43]NVStorageSaveData ofd_packets/00201247 [04:08:43]File name is /storage/ofd_packets/00201247 [04:08:43]Write 301 bytes [04:08:43]NVStorageSaveData done [04:08:43]OFDSenderStorePacket done [04:08:43]KKMCreateOFDPacket done [04:08:43]NVStorageSaveData kkm_last_timestamp [04:08:43]File name is /storage/kkm_last_timestamp [04:08:43]Write 4 bytes [04:08:43]NVStorageSaveData done [04:08:43]ExternCall_PrintAddStr [04:08:43]wPrintStart [04:08:43]Write to MH i2c: 01 00 00 E4 0D F1 [04:08:43]Write i2c OK [04:08:43]MH_I2C_Read... [04:08:43]Read from MH i2c: 01 [04:08:43]MH_I2C_Read... [04:08:43]Read from MH i2c: 01 07 00 [04:08:43]MH_I2C_Read... [04:08:43]Read from MH i2c: 01 07 00 E4 0D 00 00 00 00 00 FF 0F 06 [04:08:43]RasterBufferAndPrint [04:08:43]line Счет N : (1)448992 [04:08:43]line ИНН: 02508201610067 [04:08:43]line Контрольно-Кассовый Чек [04:08:43]line ПРОДАЖА [04:08:43]line ТРК (МРК, ГНК) : 31 [04:08:43]line Товар: 2710124130 [04:08:43]line Аи-92-К-2 [04:08:43]line 14.950 * 66.90 [04:08:43]line = 1000.16 [04:08:43]line НДС 12% НСП 1% [04:08:43]line > о реализуемом товаре [04:08:43]line ОКРУГЛЕНИЕ: -0.16 [04:08:43]line ИТОГО: 1000.00 [04:08:43]line Внесено: 1000.00 [04:08:43]line СДАЧА: 0.00 [04:08:43]line НСП 1% : 8.85 [04:08:43]line НДС 12% : 106.21 [04:08:43]line Наличными: 1000.00 [04:08:43]line Безнал.: 0.00 [04:08:43]line Место: АЗС № 171 "Партнер Нефть" [04:08:43]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [04:08:43]line СНО: Общий режим [04:08:43]line Чек 9 26.10.2024 04:08 [04:08:43]line Смена: 543 ФФД: 1.0 [04:08:43]line ЗНМ: 0300000109 [04:08:43]line РНМ: 0000000000091777 [04:08:43]line Версия ККМ: 001 [04:08:43]line ФМ: 0000000000871756 [04:08:43]line ФД: 201247 [04:08:43]line ФПД: 141720601546738 [04:08:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T040843&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201247&fm=141720601546738&tin=02508201610067®Number=0000000000091777&sum=100000 [04:08:43]OFD Sender: Processing packet 201247 [packets to send 112, broken 111] [04:08:43]ProducePacketName [04:08:43]name=ofd_packets/00201247 [04:08:43]OFD Sender: To server: pG, [04:08:43]CommunicateWithHost lk.salyk.kg:30040 [04:08:43]ConnectInit lk.salyk.kg [04:08:43]written 0, free lines is 4095 [04:08:43]Connected sock=10 [04:08:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 02 5E 07 01 42 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 09 00 00 00 F4 03 04 00 4B 6B 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1F 12 03 00 35 04 06 00 80 E4 E6 1C CF F2 51 9C FF C6 98 D8 D4 2C [04:08:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 22 36 47 00 38 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1F 12 03 00 F4 03 04 00 F6 16 1C 67 B6 04 01 00 00 AC 67 F9 7F DB DF 63 88 [04:08:43]CommunicateWithHost err = 0 [04:08:43]CheckOFDResponse [04:08:43]1017 (14) - 77093643461234 [04:08:43]1041 (16) - 0000000000871756 [04:08:43]1040 (4) - 201247 [04:08:43]1012 (4) - 25.10.2024 22:08 [04:08:43]1206 (1) - 0 [04:08:43]OFD Sender: Remove packet 201247 [04:08:43]ProducePacketName [04:08:43]name=ofd_packets/00201247 [04:08:43]NVStorageDeleteData [04:08:43]Write to MH i2c: 01 00 00 0F 0E 1D [04:08:43]Write i2c OK [04:08:43]MH_I2C_Read... [04:08:43]Read from MH i2c: 01 [04:08:43]MH_I2C_Read... [04:08:43]Read from MH i2c: 01 07 00 [04:08:43]MH_I2C_Read... [04:08:43]Read from MH i2c: 01 07 00 0F 0E 00 00 00 00 00 94 0C C4 [04:08:43]RasterBufferAndPrint [04:08:43]line [04:08:43]line [04:08:43]line [04:08:43]line [04:08:43]line [04:08:43]written 0, free lines is 3225 [04:08:43]MH_Cut [04:08:43]Write to MH i2c: D1 01 00 16 0E 01 F6 [04:08:43]Write i2c OK [04:08:43]MH_I2C_Read... [04:08:43]Read from MH i2c: D1 [04:08:43]MH_I2C_Read... [04:08:43]Read from MH i2c: D1 01 00 [04:08:43]MH_I2C_Read... [04:08:43]Read from MH i2c: D1 01 00 16 0E 00 F5 [04:08:43]Write to MH i2c: 01 00 00 17 0E 25 [04:08:43]Write i2c OK [04:08:43]MH_I2C_Read... [04:08:44]OFD Sender: No OFD packet to send [04:08:44]*** Cut start [04:08:44]*** Purtial cut [04:08:44]*** Stage 1: CUTSNS_PIN = 1 [04:08:45]Read from MH i2c: 01 [04:08:45]MH_I2C_Read... [04:08:45]*** Stop cut motor [04:08:45]*** Cut end [04:08:45]Read from MH i2c: 01 07 00 [04:08:45]MH_I2C_Read... [04:08:45]Read from MH i2c: 01 07 00 17 0E 00 00 00 00 00 FF 0F 3A [04:08:45]process_action close_receipt done [04:08:45]requested_data is exist [04:08:45]produce_requested_data [04:08:45]requested_item fm.sn is exist - process it [04:08:45]wFMCommunicate request_size=4 [04:08:45]MH_SAM_APDU [04:08:45]CAPDU: 80 11 00 00 [04:08:45]Write to MH i2c: E2 08 00 18 0E 80 11 00 00 00 00 00 00 A0 [04:08:45]Write i2c OK [04:08:45]MH_I2C_Read... [04:08:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:08:45]Read from MH i2c: E2 [04:08:45]MH_I2C_Read... [04:08:45]Read from MH i2c: E2 17 00 [04:08:45]MH_I2C_Read... [04:08:45]Read from MH i2c: E2 17 00 18 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F5 [04:08:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [04:08:45]wFMCommunicate OK [04:08:45]requested_item fd.num is exist - process it [04:08:45]SAM_PROTO_GetFieldsCounters [04:08:45]wFMCommunicate request_size=4 [04:08:45]MH_SAM_APDU [04:08:45]CAPDU: 80 13 00 00 [04:08:45]Write to MH i2c: E2 08 00 19 0E 80 13 00 00 00 00 00 00 A3 [04:08:45]Write i2c OK [04:08:45]MH_I2C_Read... [04:08:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:08:45]Read from MH i2c: E2 [04:08:45]MH_I2C_Read... [04:08:45]Read from MH i2c: E2 62 00 [04:08:45]MH_I2C_Read... [04:08:45]Read from MH i2c: E2 62 00 19 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1F 12 03 00 0E 04 04 00 1F 02 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 3C [04:08:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1F 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:08:45]wFMCommunicate OK [04:08:45]SAM_PROTO_GetFieldsCounters done [04:08:45]requested_item shift.num is exist - process it [04:08:45]requested_item shift.opened is exist - process it [04:08:45]req_shift_opened [04:08:45]FM_GetShiftState [04:08:45]SAM_PROTO_GetShiftState [04:08:45]wFMCommunicate request_size=4 [04:08:45]MH_SAM_APDU [04:08:45]CAPDU: 80 13 01 00 [04:08:45]Write to MH i2c: E2 08 00 1A 0E 80 13 01 00 00 00 00 00 A5 [04:08:45]Write i2c OK [04:08:45]MH_I2C_Read... [04:08:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:08:45]Read from MH i2c: E2 [04:08:45]MH_I2C_Read... [04:08:45]Read from MH i2c: E2 0E 00 [04:08:45]MH_I2C_Read... [04:08:45]Read from MH i2c: E2 0E 00 1A 0E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 B4 [04:08:45]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [04:08:45]wFMCommunicate OK [04:08:45]SAM_PROTO_GetShiftState done [04:08:45]FM_GetShiftState done [04:08:45]req_shift_opened done [04:08:45]requested_item shift.open_date is exist - process it [04:08:45]req_shift_open_date [04:08:45]req_shift_open_date done [04:08:45]produce_requested_data done [04:08:45]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201247,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [04:08:45]process_action_free close_receipt [04:08:45]json_value_free [04:08:45]json_value_free done [04:08:45]process_json_proto returns [04:08:45]Send response to host [04:08:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201247,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [04:08:45]free response buf [04:08:45]execute_script done [04:08:45]execute_script returns [04:08:45]free content buf [04:08:45]Sock 9.Close socket [04:08:45]Sock 9.Thread stoped [04:08:49]OFD Sender: No OFD packet to send [04:08:54]OFD Sender: No OFD packet to send [04:08:59]OFD Sender: No OFD packet to send [04:09:04]OFD Sender: No OFD packet to send [04:09:09]OFD Sender: No OFD packet to send [04:09:14]OFD Sender: No OFD packet to send [04:09:19]OFD Sender: No OFD packet to send [04:09:24]OFD Sender: No OFD packet to send [04:09:29]OFD Sender: No OFD packet to send [04:09:34]OFD Sender: No OFD packet to send [04:09:39]OFD Sender: No OFD packet to send [04:09:44]OFD Sender: No OFD packet to send [04:09:49]OFD Sender: No OFD packet to send [04:09:54]OFD Sender: No OFD packet to send [04:09:59]OFD Sender: No OFD packet to send [04:10:04]OFD Sender: No OFD packet to send [04:10:09]OFD Sender: No OFD packet to send [04:10:14]OFD Sender: No OFD packet to send [04:10:19]OFD Sender: No OFD packet to send [04:10:24]OFD Sender: No OFD packet to send [04:10:29]OFD Sender: No OFD packet to send [04:10:34]OFD Sender: No OFD packet to send [04:10:39]OFD Sender: No OFD packet to send [04:10:44]OFD Sender: No OFD packet to send [04:10:49]OFD Sender: No OFD packet to send [04:10:54]OFD Sender: No OFD packet to send [04:10:59]OFD Sender: No OFD packet to send [04:11:04]OFD Sender: No OFD packet to send [04:11:09]OFD Sender: No OFD packet to send [04:11:14]OFD Sender: No OFD packet to send [04:11:19]OFD Sender: No OFD packet to send [04:11:24]OFD Sender: No OFD packet to send [04:11:29]OFD Sender: No OFD packet to send [04:11:34]OFD Sender: No OFD packet to send [04:11:39]OFD Sender: No OFD packet to send [04:11:44]OFD Sender: No OFD packet to send [04:11:49]OFD Sender: No OFD packet to send [04:11:54]OFD Sender: No OFD packet to send [04:11:59]OFD Sender: No OFD packet to send [04:12:04]OFD Sender: No OFD packet to send [04:12:09]OFD Sender: No OFD packet to send [04:12:14]OFD Sender: No OFD packet to send [04:12:19]OFD Sender: No OFD packet to send [04:12:24]OFD Sender: No OFD packet to send [04:12:29]OFD Sender: No OFD packet to send [04:12:34]OFD Sender: No OFD packet to send [04:12:39]OFD Sender: No OFD packet to send [04:12:44]OFD Sender: No OFD packet to send [04:12:49]OFD Sender: No OFD packet to send [04:12:54]OFD Sender: No OFD packet to send [04:12:59]OFD Sender: No OFD packet to send [04:13:04]OFD Sender: No OFD packet to send [04:13:09]OFD Sender: No OFD packet to send [04:13:14]OFD Sender: No OFD packet to send [04:13:19]OFD Sender: No OFD packet to send [04:13:24]OFD Sender: No OFD packet to send [04:13:29]OFD Sender: No OFD packet to send [04:13:34]OFD Sender: No OFD packet to send [04:13:39]OFD Sender: No OFD packet to send [04:13:44]OFD Sender: No OFD packet to send [04:13:49]OFD Sender: No OFD packet to send [04:13:54]OFD Sender: No OFD packet to send [04:13:59]OFD Sender: No OFD packet to send [04:14:04]OFD Sender: No OFD packet to send [04:14:09]OFD Sender: No OFD packet to send [04:14:14]OFD Sender: No OFD packet to send [04:14:19]OFD Sender: No OFD packet to send [04:14:24]OFD Sender: No OFD packet to send [04:14:29]OFD Sender: No OFD packet to send [04:14:34]OFD Sender: No OFD packet to send [04:14:39]OFD Sender: No OFD packet to send [04:14:44]OFD Sender: No OFD packet to send [04:14:49]OFD Sender: No OFD packet to send [04:14:54]OFD Sender: No OFD packet to send [04:14:59]OFD Sender: No OFD packet to send [04:15:04]OFD Sender: No OFD packet to send [04:15:09]OFD Sender: No OFD packet to send [04:15:14]OFD Sender: No OFD packet to send [04:15:19]OFD Sender: No OFD packet to send [04:15:24]OFD Sender: No OFD packet to send [04:15:29]OFD Sender: No OFD packet to send [04:15:34]OFD Sender: No OFD packet to send [04:15:39]OFD Sender: No OFD packet to send [04:15:44]OFD Sender: No OFD packet to send [04:15:49]OFD Sender: No OFD packet to send [04:15:54]OFD Sender: No OFD packet to send [04:15:59]OFD Sender: No OFD packet to send [04:16:04]OFD Sender: No OFD packet to send [04:16:09]OFD Sender: No OFD packet to send [04:16:14]OFD Sender: No OFD packet to send [04:16:19]OFD Sender: No OFD packet to send [04:16:24]OFD Sender: No OFD packet to send [04:16:29]OFD Sender: No OFD packet to send [04:16:34]OFD Sender: No OFD packet to send [04:16:39]OFD Sender: No OFD packet to send [04:16:44]OFD Sender: No OFD packet to send [04:16:49]OFD Sender: No OFD packet to send [04:16:54]OFD Sender: No OFD packet to send [04:16:59]OFD Sender: No OFD packet to send [04:17:04]OFD Sender: No OFD packet to send [04:17:09]OFD Sender: No OFD packet to send [04:17:14]OFD Sender: No OFD packet to send [04:17:19]OFD Sender: No OFD packet to send [04:17:24]OFD Sender: No OFD packet to send [04:17:29]OFD Sender: No OFD packet to send [04:17:34]OFD Sender: No OFD packet to send [04:17:39]OFD Sender: No OFD packet to send [04:17:44]OFD Sender: No OFD packet to send [04:17:49]OFD Sender: No OFD packet to send [04:17:54]OFD Sender: No OFD packet to send [04:17:59]OFD Sender: No OFD packet to send [04:18:04]OFD Sender: No OFD packet to send [04:18:09]OFD Sender: No OFD packet to send [04:18:14]OFD Sender: No OFD packet to send [04:18:19]OFD Sender: No OFD packet to send [04:18:25]OFD Sender: No OFD packet to send [04:18:30]OFD Sender: No OFD packet to send [04:18:35]OFD Sender: No OFD packet to send [04:18:40]OFD Sender: No OFD packet to send [04:18:45]OFD Sender: No OFD packet to send [04:18:50]OFD Sender: No OFD packet to send [04:18:55]OFD Sender: No OFD packet to send [04:19:00]OFD Sender: No OFD packet to send [04:19:05]OFD Sender: No OFD packet to send [04:19:10]OFD Sender: No OFD packet to send [04:19:15]OFD Sender: No OFD packet to send [04:19:20]OFD Sender: No OFD packet to send [04:19:25]OFD Sender: No OFD packet to send [04:19:30]OFD Sender: No OFD packet to send [04:19:35]OFD Sender: No OFD packet to send [04:19:40]OFD Sender: No OFD packet to send [04:19:45]OFD Sender: No OFD packet to send [04:19:50]OFD Sender: No OFD packet to send [04:19:55]OFD Sender: No OFD packet to send [04:20:00]OFD Sender: No OFD packet to send [04:20:05]OFD Sender: No OFD packet to send [04:20:10]OFD Sender: No OFD packet to send [04:20:15]OFD Sender: No OFD packet to send [04:20:20]OFD Sender: No OFD packet to send [04:20:25]OFD Sender: No OFD packet to send [04:20:30]OFD Sender: No OFD packet to send [04:20:35]OFD Sender: No OFD packet to send [04:20:40]OFD Sender: No OFD packet to send [04:20:45]OFD Sender: No OFD packet to send [04:20:50]OFD Sender: No OFD packet to send [04:20:55]OFD Sender: No OFD packet to send [04:21:00]OFD Sender: No OFD packet to send [04:21:05]OFD Sender: No OFD packet to send [04:21:10]OFD Sender: No OFD packet to send [04:21:15]OFD Sender: No OFD packet to send [04:21:20]OFD Sender: No OFD packet to send [04:21:25]OFD Sender: No OFD packet to send [04:21:30]OFD Sender: No OFD packet to send [04:21:35]OFD Sender: No OFD packet to send [04:21:40]OFD Sender: No OFD packet to send [04:21:45]OFD Sender: No OFD packet to send [04:21:50]OFD Sender: No OFD packet to send [04:21:55]OFD Sender: No OFD packet to send [04:22:00]OFD Sender: No OFD packet to send [04:22:05]OFD Sender: No OFD packet to send [04:22:10]OFD Sender: No OFD packet to send [04:22:15]OFD Sender: No OFD packet to send [04:22:20]OFD Sender: No OFD packet to send [04:22:25]OFD Sender: No OFD packet to send [04:22:30]OFD Sender: No OFD packet to send [04:22:35]OFD Sender: No OFD packet to send [04:22:40]OFD Sender: No OFD packet to send [04:22:45]OFD Sender: No OFD packet to send [04:22:50]OFD Sender: No OFD packet to send [04:22:55]OFD Sender: No OFD packet to send [04:23:00]OFD Sender: No OFD packet to send [04:23:05]OFD Sender: No OFD packet to send [04:23:10]OFD Sender: No OFD packet to send [04:23:15]OFD Sender: No OFD packet to send [04:23:20]OFD Sender: No OFD packet to send [04:23:25]OFD Sender: No OFD packet to send [04:23:30]OFD Sender: No OFD packet to send [04:23:35]OFD Sender: No OFD packet to send [04:23:40]OFD Sender: No OFD packet to send [04:23:45]OFD Sender: No OFD packet to send [04:23:50]OFD Sender: No OFD packet to send [04:23:55]OFD Sender: No OFD packet to send [04:24:00]OFD Sender: No OFD packet to send [04:24:05]OFD Sender: No OFD packet to send [04:24:10]OFD Sender: No OFD packet to send [04:24:15]OFD Sender: No OFD packet to send [04:24:20]OFD Sender: No OFD packet to send [04:24:25]OFD Sender: No OFD packet to send [04:24:30]OFD Sender: No OFD packet to send [04:24:35]OFD Sender: No OFD packet to send [04:24:40]OFD Sender: No OFD packet to send [04:24:45]OFD Sender: No OFD packet to send [04:24:50]OFD Sender: No OFD packet to send [04:24:55]OFD Sender: No OFD packet to send [04:25:00]OFD Sender: No OFD packet to send [04:25:05]OFD Sender: No OFD packet to send [04:25:10]OFD Sender: No OFD packet to send [04:25:15]OFD Sender: No OFD packet to send [04:25:20]OFD Sender: No OFD packet to send [04:25:25]OFD Sender: No OFD packet to send [04:25:30]OFD Sender: No OFD packet to send [04:25:35]OFD Sender: No OFD packet to send [04:25:40]OFD Sender: No OFD packet to send [04:25:45]OFD Sender: No OFD packet to send [04:25:50]OFD Sender: No OFD packet to send [04:25:55]OFD Sender: No OFD packet to send [04:26:00]OFD Sender: No OFD packet to send [04:26:05]OFD Sender: No OFD packet to send [04:26:10]OFD Sender: No OFD packet to send [04:26:15]OFD Sender: No OFD packet to send [04:26:20]OFD Sender: No OFD packet to send [04:26:25]OFD Sender: No OFD packet to send [04:26:30]OFD Sender: No OFD packet to send [04:26:35]OFD Sender: No OFD packet to send [04:26:40]OFD Sender: No OFD packet to send [04:26:45]OFD Sender: No OFD packet to send [04:26:50]OFD Sender: No OFD packet to send [04:26:55]OFD Sender: No OFD packet to send [04:27:00]OFD Sender: No OFD packet to send [04:27:05]OFD Sender: No OFD packet to send [04:27:10]OFD Sender: No OFD packet to send [04:27:15]OFD Sender: No OFD packet to send [04:27:20]OFD Sender: No OFD packet to send [04:27:25]OFD Sender: No OFD packet to send [04:27:30]OFD Sender: No OFD packet to send [04:27:35]OFD Sender: No OFD packet to send [04:27:40]OFD Sender: No OFD packet to send [04:27:45]OFD Sender: No OFD packet to send [04:27:50]OFD Sender: No OFD packet to send [04:27:55]OFD Sender: No OFD packet to send [04:28:00]OFD Sender: No OFD packet to send [04:28:05]OFD Sender: No OFD packet to send [04:28:10]OFD Sender: No OFD packet to send [04:28:15]OFD Sender: No OFD packet to send [04:28:20]OFD Sender: No OFD packet to send [04:28:25]OFD Sender: No OFD packet to send [04:28:30]OFD Sender: No OFD packet to send [04:28:35]OFD Sender: No OFD packet to send [04:28:40]OFD Sender: No OFD packet to send [04:28:45]OFD Sender: No OFD packet to send [04:28:50]OFD Sender: No OFD packet to send [04:28:55]OFD Sender: No OFD packet to send [04:29:00]OFD Sender: No OFD packet to send [04:29:05]OFD Sender: No OFD packet to send [04:29:10]OFD Sender: No OFD packet to send [04:29:15]OFD Sender: No OFD packet to send [04:29:20]OFD Sender: No OFD packet to send [04:29:25]OFD Sender: No OFD packet to send [04:29:30]OFD Sender: No OFD packet to send [04:29:35]OFD Sender: No OFD packet to send [04:29:40]OFD Sender: No OFD packet to send [04:29:45]OFD Sender: No OFD packet to send [04:29:50]OFD Sender: No OFD packet to send [04:29:55]OFD Sender: No OFD packet to send [04:30:00]OFD Sender: No OFD packet to send [04:30:05]OFD Sender: No OFD packet to send [04:30:10]OFD Sender: No OFD packet to send [04:30:15]OFD Sender: No OFD packet to send [04:30:20]OFD Sender: No OFD packet to send [04:30:25]OFD Sender: No OFD packet to send [04:30:30]OFD Sender: No OFD packet to send [04:30:35]OFD Sender: No OFD packet to send [04:30:40]OFD Sender: No OFD packet to send [04:30:45]OFD Sender: No OFD packet to send [04:30:50]OFD Sender: No OFD packet to send [04:30:55]OFD Sender: No OFD packet to send [04:31:00]OFD Sender: No OFD packet to send [04:31:05]OFD Sender: No OFD packet to send [04:31:10]OFD Sender: No OFD packet to send [04:31:15]OFD Sender: No OFD packet to send [04:31:20]OFD Sender: No OFD packet to send [04:31:25]OFD Sender: No OFD packet to send [04:31:30]OFD Sender: No OFD packet to send [04:31:35]OFD Sender: No OFD packet to send [04:31:40]OFD Sender: No OFD packet to send [04:31:45]OFD Sender: No OFD packet to send [04:31:50]OFD Sender: No OFD packet to send [04:31:55]OFD Sender: No OFD packet to send [04:32:00]OFD Sender: No OFD packet to send [04:32:05]OFD Sender: No OFD packet to send [04:32:10]OFD Sender: No OFD packet to send [04:32:15]OFD Sender: No OFD packet to send [04:32:20]OFD Sender: No OFD packet to send [04:32:25]OFD Sender: No OFD packet to send [04:32:30]OFD Sender: No OFD packet to send [04:32:35]OFD Sender: No OFD packet to send [04:32:40]OFD Sender: No OFD packet to send [04:32:45]OFD Sender: No OFD packet to send [04:32:50]OFD Sender: No OFD packet to send [04:32:55]OFD Sender: No OFD packet to send [04:33:00]OFD Sender: No OFD packet to send [04:33:06]OFD Sender: No OFD packet to send [04:33:11]OFD Sender: No OFD packet to send [04:33:16]OFD Sender: No OFD packet to send [04:33:21]OFD Sender: No OFD packet to send [04:33:26]OFD Sender: No OFD packet to send [04:33:31]OFD Sender: No OFD packet to send [04:33:36]OFD Sender: No OFD packet to send [04:33:41]OFD Sender: No OFD packet to send [04:33:46]OFD Sender: No OFD packet to send [04:33:51]OFD Sender: No OFD packet to send [04:33:56]OFD Sender: No OFD packet to send [04:34:01]OFD Sender: No OFD packet to send [04:34:06]OFD Sender: No OFD packet to send [04:34:11]OFD Sender: No OFD packet to send [04:34:16]OFD Sender: No OFD packet to send [04:34:21]OFD Sender: No OFD packet to send [04:34:26]OFD Sender: No OFD packet to send [04:34:31]OFD Sender: No OFD packet to send [04:34:36]OFD Sender: No OFD packet to send [04:34:41]OFD Sender: No OFD packet to send [04:34:46]OFD Sender: No OFD packet to send [04:34:51]OFD Sender: No OFD packet to send [04:34:56]OFD Sender: No OFD packet to send [04:35:01]OFD Sender: No OFD packet to send [04:35:06]OFD Sender: No OFD packet to send [04:35:11]OFD Sender: No OFD packet to send [04:35:16]OFD Sender: No OFD packet to send [04:35:21]OFD Sender: No OFD packet to send [04:35:26]OFD Sender: No OFD packet to send [04:35:31]OFD Sender: No OFD packet to send [04:35:36]OFD Sender: No OFD packet to send [04:35:41]OFD Sender: No OFD packet to send [04:35:46]OFD Sender: No OFD packet to send [04:35:51]OFD Sender: No OFD packet to send [04:35:56]OFD Sender: No OFD packet to send [04:36:01]OFD Sender: No OFD packet to send [04:36:06]OFD Sender: No OFD packet to send [04:36:11]OFD Sender: No OFD packet to send [04:36:16]OFD Sender: No OFD packet to send [04:36:21]OFD Sender: No OFD packet to send [04:36:26]OFD Sender: No OFD packet to send [04:36:31]OFD Sender: No OFD packet to send [04:36:36]OFD Sender: No OFD packet to send [04:36:41]OFD Sender: No OFD packet to send [04:36:46]OFD Sender: No OFD packet to send [04:36:51]OFD Sender: No OFD packet to send [04:36:56]OFD Sender: No OFD packet to send [04:37:01]OFD Sender: No OFD packet to send [04:37:06]OFD Sender: No OFD packet to send [04:37:11]OFD Sender: No OFD packet to send [04:37:16]OFD Sender: No OFD packet to send [04:37:21]OFD Sender: No OFD packet to send [04:37:26]OFD Sender: No OFD packet to send [04:37:31]OFD Sender: No OFD packet to send [04:37:36]OFD Sender: No OFD packet to send [04:37:41]OFD Sender: No OFD packet to send [04:37:46]OFD Sender: No OFD packet to send [04:37:51]OFD Sender: No OFD packet to send [04:37:56]OFD Sender: No OFD packet to send [04:38:01]OFD Sender: No OFD packet to send [04:38:06]OFD Sender: No OFD packet to send [04:38:11]OFD Sender: No OFD packet to send [04:38:16]OFD Sender: No OFD packet to send [04:38:21]OFD Sender: No OFD packet to send [04:38:26]OFD Sender: No OFD packet to send [04:38:31]OFD Sender: No OFD packet to send [04:38:36]OFD Sender: No OFD packet to send [04:38:41]OFD Sender: No OFD packet to send [04:38:46]OFD Sender: No OFD packet to send [04:38:51]OFD Sender: No OFD packet to send [04:38:56]OFD Sender: No OFD packet to send [04:39:01]OFD Sender: No OFD packet to send [04:39:06]OFD Sender: No OFD packet to send [04:39:11]OFD Sender: No OFD packet to send [04:39:16]OFD Sender: No OFD packet to send [04:39:21]OFD Sender: No OFD packet to send [04:39:26]OFD Sender: No OFD packet to send [04:39:31]OFD Sender: No OFD packet to send [04:39:36]OFD Sender: No OFD packet to send [04:39:41]OFD Sender: No OFD packet to send [04:39:46]OFD Sender: No OFD packet to send [04:39:51]OFD Sender: No OFD packet to send [04:39:56]OFD Sender: No OFD packet to send [04:40:01]OFD Sender: No OFD packet to send [04:40:06]OFD Sender: No OFD packet to send [04:40:11]OFD Sender: No OFD packet to send [04:40:16]OFD Sender: No OFD packet to send [04:40:21]OFD Sender: No OFD packet to send [04:40:26]OFD Sender: No OFD packet to send [04:40:31]OFD Sender: No OFD packet to send [04:40:36]OFD Sender: No OFD packet to send [04:40:41]OFD Sender: No OFD packet to send [04:40:46]OFD Sender: No OFD packet to send [04:40:51]OFD Sender: No OFD packet to send [04:40:56]OFD Sender: No OFD packet to send [04:41:01]OFD Sender: No OFD packet to send [04:41:06]OFD Sender: No OFD packet to send [04:41:11]OFD Sender: No OFD packet to send [04:41:16]OFD Sender: No OFD packet to send [04:41:21]OFD Sender: No OFD packet to send [04:41:26]OFD Sender: No OFD packet to send [04:41:31]OFD Sender: No OFD packet to send [04:41:36]OFD Sender: No OFD packet to send [04:41:41]OFD Sender: No OFD packet to send [04:41:46]OFD Sender: No OFD packet to send [04:41:51]OFD Sender: No OFD packet to send [04:41:56]OFD Sender: No OFD packet to send [04:42:01]OFD Sender: No OFD packet to send [04:42:06]OFD Sender: No OFD packet to send [04:42:11]OFD Sender: No OFD packet to send [04:42:16]OFD Sender: No OFD packet to send [04:42:21]OFD Sender: No OFD packet to send [04:42:26]OFD Sender: No OFD packet to send [04:42:31]OFD Sender: No OFD packet to send [04:42:36]OFD Sender: No OFD packet to send [04:42:41]OFD Sender: No OFD packet to send [04:42:46]OFD Sender: No OFD packet to send [04:42:51]OFD Sender: No OFD packet to send [04:42:56]OFD Sender: No OFD packet to send [04:43:01]OFD Sender: No OFD packet to send [04:43:06]OFD Sender: No OFD packet to send [04:43:11]OFD Sender: No OFD packet to send [04:43:16]OFD Sender: No OFD packet to send [04:43:21]OFD Sender: No OFD packet to send [04:43:26]OFD Sender: No OFD packet to send [04:43:31]OFD Sender: No OFD packet to send [04:43:36]OFD Sender: No OFD packet to send [04:43:41]OFD Sender: No OFD packet to send [04:43:46]OFD Sender: No OFD packet to send [04:43:51]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:16]OFD Sender: No OFD packet to send [04:44:21]OFD Sender: No OFD packet to send [04:44:26]OFD Sender: No OFD packet to send [04:44:31]OFD Sender: No OFD packet to send [04:44:36]OFD Sender: No OFD packet to send [04:44:41]OFD Sender: No OFD packet to send [04:44:46]OFD Sender: No OFD packet to send [04:44:51]OFD Sender: No OFD packet to send [04:44:56]OFD Sender: No OFD packet to send [04:45:01]OFD Sender: No OFD packet to send [04:45:06]OFD Sender: No OFD packet to send [04:45:11]OFD Sender: No OFD packet to send [04:45:16]OFD Sender: No OFD packet to send [04:45:21]OFD Sender: No OFD packet to send [04:45:26]OFD Sender: No OFD packet to send [04:45:31]OFD Sender: No OFD packet to send [04:45:36]OFD Sender: No OFD packet to send [04:45:41]OFD Sender: No OFD packet to send [04:45:46]OFD Sender: No OFD packet to send [04:45:51]OFD Sender: No OFD packet to send [04:45:56]OFD Sender: No OFD packet to send [04:46:01]OFD Sender: No OFD packet to send [04:46:06]OFD Sender: No OFD packet to send [04:46:11]OFD Sender: No OFD packet to send [04:46:16]OFD Sender: No OFD packet to send [04:46:21]OFD Sender: No OFD packet to send [04:46:26]OFD Sender: No OFD packet to send [04:46:31]OFD Sender: No OFD packet to send [04:46:36]OFD Sender: No OFD packet to send [04:46:41]OFD Sender: No OFD packet to send [04:46:46]OFD Sender: No OFD packet to send [04:46:51]OFD Sender: No OFD packet to send [04:46:56]OFD Sender: No OFD packet to send [04:47:01]OFD Sender: No OFD packet to send [04:47:06]OFD Sender: No OFD packet to send [04:47:11]OFD Sender: No OFD packet to send [04:47:16]OFD Sender: No OFD packet to send [04:47:21]OFD Sender: No OFD packet to send [04:47:26]OFD Sender: No OFD packet to send [04:47:31]OFD Sender: No OFD packet to send [04:47:36]OFD Sender: No OFD packet to send [04:47:41]OFD Sender: No OFD packet to send [04:47:47]OFD Sender: No OFD packet to send [04:47:52]OFD Sender: No OFD packet to send [04:47:57]OFD Sender: No OFD packet to send [04:48:02]OFD Sender: No OFD packet to send [04:48:07]OFD Sender: No OFD packet to send [04:48:12]OFD Sender: No OFD packet to send [04:48:17]OFD Sender: No OFD packet to send [04:48:22]OFD Sender: No OFD packet to send [04:48:27]OFD Sender: No OFD packet to send [04:48:32]OFD Sender: No OFD packet to send [04:48:37]OFD Sender: No OFD packet to send [04:48:42]OFD Sender: No OFD packet to send [04:48:47]OFD Sender: No OFD packet to send [04:48:52]OFD Sender: No OFD packet to send [04:48:57]OFD Sender: No OFD packet to send [04:49:02]OFD Sender: No OFD packet to send [04:49:07]OFD Sender: No OFD packet to send [04:49:12]OFD Sender: No OFD packet to send [04:49:17]OFD Sender: No OFD packet to send [04:49:22]OFD Sender: No OFD packet to send [04:49:27]OFD Sender: No OFD packet to send [04:49:32]OFD Sender: No OFD packet to send [04:49:37]OFD Sender: No OFD packet to send [04:49:42]OFD Sender: No OFD packet to send [04:49:47]OFD Sender: No OFD packet to send [04:49:52]OFD Sender: No OFD packet to send [04:49:57]OFD Sender: No OFD packet to send [04:50:02]OFD Sender: No OFD packet to send [04:50:07]OFD Sender: No OFD packet to send [04:50:12]OFD Sender: No OFD packet to send [04:50:17]OFD Sender: No OFD packet to send [04:50:22]OFD Sender: No OFD packet to send [04:50:27]OFD Sender: No OFD packet to send [04:50:32]OFD Sender: No OFD packet to send [04:50:37]OFD Sender: No OFD packet to send [04:50:42]OFD Sender: No OFD packet to send [04:50:47]OFD Sender: No OFD packet to send [04:50:52]OFD Sender: No OFD packet to send [04:50:57]OFD Sender: No OFD packet to send [04:51:02]OFD Sender: No OFD packet to send [04:51:07]OFD Sender: No OFD packet to send [04:51:12]OFD Sender: No OFD packet to send [04:51:17]OFD Sender: No OFD packet to send [04:51:22]OFD Sender: No OFD packet to send [04:51:27]OFD Sender: No OFD packet to send [04:51:32]OFD Sender: No OFD packet to send [04:51:37]OFD Sender: No OFD packet to send [04:51:42]OFD Sender: No OFD packet to send [04:51:47]OFD Sender: No OFD packet to send [04:51:52]OFD Sender: No OFD packet to send [04:51:57]OFD Sender: No OFD packet to send [04:52:02]OFD Sender: No OFD packet to send [04:52:07]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:47]OFD Sender: No OFD packet to send [04:52:52]OFD Sender: No OFD packet to send [04:52:57]OFD Sender: No OFD packet to send [04:53:02]OFD Sender: No OFD packet to send [04:53:07]OFD Sender: No OFD packet to send [04:53:12]OFD Sender: No OFD packet to send [04:53:17]OFD Sender: No OFD packet to send [04:53:22]OFD Sender: No OFD packet to send [04:53:27]OFD Sender: No OFD packet to send [04:53:32]OFD Sender: No OFD packet to send [04:53:37]OFD Sender: No OFD packet to send [04:53:42]OFD Sender: No OFD packet to send [04:53:47]OFD Sender: No OFD packet to send [04:53:52]OFD Sender: No OFD packet to send [04:53:57]OFD Sender: No OFD packet to send [04:54:02]OFD Sender: No OFD packet to send [04:54:07]OFD Sender: No OFD packet to send [04:54:12]OFD Sender: No OFD packet to send [04:54:17]OFD Sender: No OFD packet to send [04:54:22]OFD Sender: No OFD packet to send [04:54:27]OFD Sender: No OFD packet to send [04:54:32]OFD Sender: No OFD packet to send [04:54:37]OFD Sender: No OFD packet to send [04:54:42]OFD Sender: No OFD packet to send [04:54:47]OFD Sender: No OFD packet to send [04:54:52]OFD Sender: No OFD packet to send [04:54:57]OFD Sender: No OFD packet to send [04:55:02]OFD Sender: No OFD packet to send [04:55:07]OFD Sender: No OFD packet to send [04:55:12]OFD Sender: No OFD packet to send [04:55:17]OFD Sender: No OFD packet to send [04:55:22]OFD Sender: No OFD packet to send [04:55:27]OFD Sender: No OFD packet to send [04:55:32]OFD Sender: No OFD packet to send [04:55:37]OFD Sender: No OFD packet to send [04:55:42]OFD Sender: No OFD packet to send [04:55:47]OFD Sender: No OFD packet to send [04:55:52]OFD Sender: No OFD packet to send [04:55:57]OFD Sender: No OFD packet to send [04:56:02]OFD Sender: No OFD packet to send [04:56:07]OFD Sender: No OFD packet to send [04:56:12]OFD Sender: No OFD packet to send [04:56:17]OFD Sender: No OFD packet to send [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:42]OFD Sender: No OFD packet to send [04:56:47]OFD Sender: No OFD packet to send [04:56:52]OFD Sender: No OFD packet to send [04:56:57]OFD Sender: No OFD packet to send [04:57:02]OFD Sender: No OFD packet to send [04:57:07]OFD Sender: No OFD packet to send [04:57:12]OFD Sender: No OFD packet to send [04:57:17]OFD Sender: No OFD packet to send [04:57:22]OFD Sender: No OFD packet to send [04:57:27]OFD Sender: No OFD packet to send [04:57:32]OFD Sender: No OFD packet to send [04:57:37]OFD Sender: No OFD packet to send [04:57:42]OFD Sender: No OFD packet to send [04:57:47]OFD Sender: No OFD packet to send [04:57:52]OFD Sender: No OFD packet to send [04:57:57]OFD Sender: No OFD packet to send [04:58:02]OFD Sender: No OFD packet to send [04:58:07]OFD Sender: No OFD packet to send [04:58:12]OFD Sender: No OFD packet to send [04:58:17]OFD Sender: No OFD packet to send [04:58:22]OFD Sender: No OFD packet to send [04:58:27]OFD Sender: No OFD packet to send [04:58:32]OFD Sender: No OFD packet to send [04:58:37]OFD Sender: No OFD packet to send [04:58:42]OFD Sender: No OFD packet to send [04:58:47]OFD Sender: No OFD packet to send [04:58:52]OFD Sender: No OFD packet to send [04:58:57]OFD Sender: No OFD packet to send [04:59:02]OFD Sender: No OFD packet to send [04:59:07]OFD Sender: No OFD packet to send [04:59:12]OFD Sender: No OFD packet to send [04:59:17]OFD Sender: No OFD packet to send [04:59:22]OFD Sender: No OFD packet to send [04:59:27]OFD Sender: No OFD packet to send [04:59:32]OFD Sender: No OFD packet to send [04:59:37]OFD Sender: No OFD packet to send [04:59:42]OFD Sender: No OFD packet to send [04:59:47]OFD Sender: No OFD packet to send [04:59:52]OFD Sender: No OFD packet to send [04:59:57]OFD Sender: No OFD packet to send [05:00:02]OFD Sender: No OFD packet to send [05:00:07]OFD Sender: No OFD packet to send [05:00:12]OFD Sender: No OFD packet to send [05:00:17]OFD Sender: No OFD packet to send [05:00:22]OFD Sender: No OFD packet to send [05:00:27]OFD Sender: No OFD packet to send [05:00:32]OFD Sender: No OFD packet to send [05:00:37]OFD Sender: No OFD packet to send [05:00:42]OFD Sender: No OFD packet to send [05:00:47]OFD Sender: No OFD packet to send [05:00:52]OFD Sender: No OFD packet to send [05:00:57]OFD Sender: No OFD packet to send [05:01:02]OFD Sender: No OFD packet to send [05:01:03]accept exits with 7 [05:01:03]New connection [05:01:03]New thread 3067415908 created [05:01:03]Thread 3067559268 joined [05:01:03]Waiting for new connection... [05:01:03] Sock 7.Parse request [05:01:03]Sock 7.Check first char [05:01:03]Sock 7.First char is OK [05:01:03]request: POST /json_proto HTTP/1.0 [05:01:03]Method: POST [05:01:03]URL: /json_proto [05:01:03]Method is POST - this is cgi request [05:01:03]url: /json_proto [05:01:03]query_string will be loaded in cgi processing [05:01:03]execute_cgi json_proto POST (null) [05:01:03]execute_cgi path=json_proto method=POST [05:01:03]POST find Content-Length [05:01:03]Host: 172.17.63.195:8080 [05:01:03]Content-Length: 632 [05:01:03]Content-Type: application/json [05:01:03] [05:01:03]POST finish read [05:01:03]Found Content-Length = 632 [05:01:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)448993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:01:03]execute_script... [05:01: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)448993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:01:03]POST & json_proto [05:01:03]process_json_proto [05:01:03]json parsed OK: [05:01:03]protocol is kg_v1.0 [05:01:03]action value=close_receipt [05:01:03]process_action close_receipt [05:01:03]cmd_close_receipt [05:01:03]MH_GetDate [05:01:03]Write to MH i2c: F0 00 00 1B 0E 18 [05:01:03]Write i2c OK [05:01:03]MH_I2C_Read... [05:01:03]Read from MH i2c: F0 [05:01:03]MH_I2C_Read... [05:01:03]Read from MH i2c: F0 09 00 [05:01:03]MH_I2C_Read... [05:01:03]Read from MH i2c: F0 09 00 1B 0E 00 91 77 1C 67 68 46 19 67 DA [05:01:03]GetLastDocTimeStamp 1729915723 [05:01:03]current date 1729918865 [05:01:03]FM_GetShiftState [05:01:03]SAM_PROTO_GetShiftState [05:01:03]wFMCommunicate request_size=4 [05:01:03]MH_SAM_APDU [05:01:03]CAPDU: 80 13 01 00 [05:01:03]Write to MH i2c: E2 08 00 1C 0E 80 13 01 00 00 00 00 00 A7 [05:01:03]Write i2c OK [05:01:03]MH_I2C_Read... [05:01:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:01:03]Read from MH i2c: E2 [05:01:03]MH_I2C_Read... [05:01:03]Read from MH i2c: E2 0E 00 [05:01:03]MH_I2C_Read... [05:01:03]Read from MH i2c: E2 0E 00 1C 0E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 B6 [05:01:03]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [05:01:03]wFMCommunicate OK [05:01:03]SAM_PROTO_GetShiftState done [05:01:03]FM_GetShiftState done [05:01:03]opened in 1729900879 [05:01:03]opened+sec_in_day 1729987279 [05:01:03]quantity*price = 50000 [05:01:03]sum+1 = 50001 [05:01:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 10 26.10.2024 05:01 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201248 ФПД: 125044669374850 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T050105&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201248&fm=125044669374850&tin=02508201610067®Number=0000000000091777&sum=50000 [05:01:04]StoreToDocumentArchive [05:01:04]shift 543 fd 201248 [05:01:04]save to /storage/0543/doc_00201248 [05:01:04]save last doc name /storage/0543/doc_00201248 to /storage/kkm_last_doc_name [05:01:04]save OK [05:01:04]Clear old archive folders... [05:01:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:01:04]tlvbuf is 0174EBD0 [05:01:04]SAM_PROTO_ClearQueue [05:01:04]wFMCommunicate request_size=4 [05:01:04]MH_SAM_APDU [05:01:04]CAPDU: 80 09 00 00 [05:01:04]Write to MH i2c: E2 08 00 29 0E 80 09 00 00 00 00 00 00 A9 [05:01:04]Write i2c OK [05:01:04]MH_I2C_Read... [05:01:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:01:04]Read from MH i2c: E2 [05:01:04]MH_I2C_Read... [05:01:04]Read from MH i2c: E2 03 00 [05:01:04]MH_I2C_Read... [05:01:04]Read from MH i2c: E2 03 00 29 0E 00 90 00 AB [05:01:04]RAPDU: 90 00 [05:01:04]wFMCommunicate OK [05:01:04]SAM_PROTO_ClearQueue done [05:01:04]KKMCreateOFDPacket [05:01:04]OFDProtocolAddRootSTLVToBuf [05:01:04]FM_MakeSignedData [05:01:04]FM_MakeSignedData [05:01:04]SAM_PROTO_SignData [05:01:04]wFMCommunicate request_size=4 [05:01:04]MH_SAM_APDU [05:01:04]CAPDU: 80 0D 01 02 [05:01:04]Write to MH i2c: E2 08 00 2A 0E 80 0D 01 02 00 00 00 00 B1 [05:01:04]Write i2c OK [05:01:04]MH_I2C_Read... [05:01:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:01:04]Read from MH i2c: E2 [05:01:04]MH_I2C_Read... [05:01:04]Read from MH i2c: E2 03 00 [05:01:04]MH_I2C_Read... [05:01:04]Read from MH i2c: E2 03 00 2A 0E 00 90 00 AC [05:01:04]RAPDU: 90 00 [05:01:04]wFMCommunicate OK [05:01:04]wFMCommunicate request_size=255 [05:01:04]MH_SAM_APDU [05:01:04]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 91 77 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 20 12 03 00 35 04 06 00 [05:01:04]Write to MH i2c: E2 02 01 2B 0E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 91 77 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 20 12 03 00 35 04 06 00 00 00 8D [05:01:04]Write i2c OK [05:01:04]MH_I2C_Read... [05:01:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:01:04]Read from MH i2c: E2 [05:01:04]MH_I2C_Read... [05:01:04]Read from MH i2c: E2 03 00 [05:01:04]MH_I2C_Read... [05:01:04]Read from MH i2c: E2 03 00 2B 0E 00 90 00 AD [05:01:04]RAPDU: 90 00 [05:01:04]wFMCommunicate OK [05:01:04]wFMCommunicate request_size=11 [05:01:04]MH_SAM_APDU [05:01:04]CAPDU: 80 0D 02 02 06 71 BA 3B 19 61 82 [05:01:04]Write to MH i2c: E2 0E 00 2C 0E 80 0D 02 02 06 00 71 BA 3B 19 61 82 00 00 22 [05:01:04]Write i2c OK [05:01:04]MH_I2C_Read... [05:01:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:01:04]Read from MH i2c: E2 [05:01:04]MH_I2C_Read... [05:01:04]Read from MH i2c: E2 03 00 [05:01:04]MH_I2C_Read... [05:01:04]Read from MH i2c: E2 03 00 2C 0E 00 90 00 AE [05:01:04]RAPDU: 90 00 [05:01:04]wFMCommunicate OK [05:01:04]wFMCommunicate request_size=4 [05:01:04]MH_SAM_APDU [05:01:04]CAPDU: 80 0D 03 02 [05:01:04]Write to MH i2c: E2 08 00 2D 0E 80 0D 03 02 00 00 00 00 B6 [05:01:04]Write i2c OK [05:01:04]MH_I2C_Read... [05:01:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:01:04]Read from MH i2c: E2 [05:01:04]MH_I2C_Read... [05:01:04]Read from MH i2c: E2 0B 00 [05:01:04]MH_I2C_Read... [05:01:04]Read from MH i2c: E2 0B 00 2D 0E 00 26 E5 13 1D 7A A2 B5 48 90 00 0B [05:01:04]RAPDU: 26 E5 13 1D 7A A2 B5 48 90 00 [05:01:04]wFMCommunicate OK [05:01:04]SAM_PROTO_SignData done [05:01:04]FM_MakeSignedData done [05:01:04]CreateOFDProtocolMessage [05:01:04]wFMCommunicate request_size=4 [05:01:04]MH_SAM_APDU [05:01:04]CAPDU: 80 11 00 00 [05:01:04]Write to MH i2c: E2 08 00 2E 0E 80 11 00 00 00 00 00 00 B6 [05:01:04]Write i2c OK [05:01:04]MH_I2C_Read... [05:01:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:01:04]Read from MH i2c: E2 [05:01:04]MH_I2C_Read... [05:01:04]Read from MH i2c: E2 17 00 [05:01:04]MH_I2C_Read... [05:01:04]Read from MH i2c: E2 17 00 2E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0B [05:01:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [05:01:04]wFMCommunicate OK [05:01:04]CreateOFDProtocolMessage done [05:01:04]OFDSenderStorePacket 201248 [05:01:04]StoreOFDPacket docnum=201248 [05:01:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 85 22 08 01 15 ED 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 91 77 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 20 12 03 00 35 04 06 00 71 BA 3B 19 61 82 26 E5 13 1D 7A A2 B5 48 [05:01:04]CheckFolder [05:01:04]dirname=/storage/ofd_packets [05:01:04]CheckFolder done [05:01:04]ProducePacketName [05:01:04]name=ofd_packets/00201248 [05:01:04]NVStorageSaveData ofd_packets/00201248 [05:01:04]File name is /storage/ofd_packets/00201248 [05:01:04]Write 302 bytes [05:01:04]NVStorageSaveData done [05:01:04]OFDSenderStorePacket done [05:01:04]KKMCreateOFDPacket done [05:01:04]NVStorageSaveData kkm_last_timestamp [05:01:04]File name is /storage/kkm_last_timestamp [05:01:04]Write 4 bytes [05:01:04]NVStorageSaveData done [05:01:04]ExternCall_PrintAddStr [05:01:04]wPrintStart [05:01:04]Write to MH i2c: 01 00 00 2F 0E 3D [05:01:04]Write i2c OK [05:01:04]MH_I2C_Read... [05:01:04]Read from MH i2c: 01 [05:01:04]MH_I2C_Read... [05:01:04]Read from MH i2c: 01 07 00 [05:01:04]MH_I2C_Read... [05:01:04]Read from MH i2c: 01 07 00 2F 0E 00 00 00 00 00 FF 0F 52 [05:01:04]RasterBufferAndPrint [05:01:04]line Счет N : (1)448993 [05:01:04]line ИНН: 02508201610067 [05:01:04]line Контрольно-Кассовый Чек [05:01:04]line ПРОДАЖА [05:01:04]line ТРК (МРК, ГНК) : 53 [05:01:04]line Товар: 2710124130 [05:01:04]line SUPER 92-К-5 [05:01:04]line 7.310 * 68.40 [05:01:04]line = 500.00 [05:01:04]line НДС 12% НСП 1% [05:01:04]line > о реализуемом товаре [05:01:04]line ИТОГО: 500.00 [05:01:04]line НСП 1% : 4.42 [05:01:04]line НДС 12% : 53.10 [05:01:04]line Наличными: 500.00 [05:01:04]line Безнал.: 0.00 [05:01:04]line Место: АЗС № 171 "Партнер Нефть" [05:01:04]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [05:01:04]line СНО: Общий режим [05:01:04]line Чек 10 26.10.2024 05:01 [05:01:04]line Смена: 543 ФФД: 1.0 [05:01:04]line ЗНМ: 0300000109 [05:01:04]line РНМ: 0000000000091777 [05:01:04]line Версия ККМ: 001 [05:01:04]line ФМ: 0000000000871756 [05:01:04]line ФД: 201248 [05:01:04]line ФПД: 125044669374850 [05:01:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T050105&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201248&fm=125044669374850&tin=02508201610067®Number=0000000000091777&sum=50000 [05:01:05]OFD Sender: Processing packet 201248 [packets to send 112, broken 111] [05:01:05]ProducePacketName [05:01:05]name=ofd_packets/00201248 [05:01:05]OFD Sender: To server: pG, [05:01:05]CommunicateWithHost lk.salyk.kg:30040 [05:01:05]ConnectInit lk.salyk.kg [05:01:05]written 0, free lines is 4095 [05:01:05]Connected sock=10 [05:01:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 85 22 08 01 15 ED 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 91 77 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 20 12 03 00 35 04 06 00 71 BA 3B 19 61 82 26 E5 13 1D 7A A2 B5 48 [05:01:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 94 E5 47 00 67 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 20 12 03 00 F4 03 04 00 3C 23 1C 67 B6 04 01 00 00 54 D1 BE 54 5D 82 79 35 [05:01:05]CommunicateWithHost err = 0 [05:01:05]CheckOFDResponse [05:01:05]1017 (14) - 77093643461234 [05:01:05]1041 (16) - 0000000000871756 [05:01:05]1040 (4) - 201248 [05:01:05]1012 (4) - 25.10.2024 23:01 [05:01:05]1206 (1) - 0 [05:01:05]OFD Sender: Remove packet 201248 [05:01:05]ProducePacketName [05:01:05]name=ofd_packets/00201248 [05:01:05]NVStorageDeleteData [05:01:05]Write to MH i2c: 01 00 00 57 0E 65 [05:01:05]Write i2c OK [05:01:05]MH_I2C_Read... [05:01:05]Read from MH i2c: 01 [05:01:05]MH_I2C_Read... [05:01:05]Read from MH i2c: 01 07 00 [05:01:05]MH_I2C_Read... [05:01:05]Read from MH i2c: 01 07 00 57 0E 00 00 00 00 00 D8 0C 50 [05:01:05]RasterBufferAndPrint [05:01:05]line [05:01:05]line [05:01:05]line [05:01:05]line [05:01:05]line [05:01:05]written 0, free lines is 3293 [05:01:05]MH_Cut [05:01:05]Write to MH i2c: D1 01 00 5E 0E 01 3E [05:01:05]Write i2c OK [05:01:05]MH_I2C_Read... [05:01:05]Read from MH i2c: D1 [05:01:05]MH_I2C_Read... [05:01:05]Read from MH i2c: D1 01 00 [05:01:05]MH_I2C_Read... [05:01:05]Read from MH i2c: D1 01 00 5E 0E 00 3D [05:01:05]Write to MH i2c: 01 00 00 5F 0E 6D [05:01:05]Write i2c OK [05:01:05]MH_I2C_Read... [05:01:06]OFD Sender: No OFD packet to send [05:01:06]*** Cut start [05:01:06]*** Purtial cut [05:01:06]*** Stage 1: CUTSNS_PIN = 1 [05:01:06]Read from MH i2c: 01 [05:01:06]MH_I2C_Read... [05:01:06]*** Stop cut motor [05:01:06]*** Cut end [05:01:06]Read from MH i2c: 01 07 00 [05:01:06]MH_I2C_Read... [05:01:06]Read from MH i2c: 01 07 00 5F 0E 00 00 00 00 00 FF 0F 82 [05:01:06]process_action close_receipt done [05:01:06]requested_data is exist [05:01:06]produce_requested_data [05:01:06]requested_item fm.sn is exist - process it [05:01:06]wFMCommunicate request_size=4 [05:01:06]MH_SAM_APDU [05:01:06]CAPDU: 80 11 00 00 [05:01:06]Write to MH i2c: E2 08 00 60 0E 80 11 00 00 00 00 00 00 E8 [05:01:06]Write i2c OK [05:01:06]MH_I2C_Read... [05:01:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:01:06]Read from MH i2c: E2 [05:01:06]MH_I2C_Read... [05:01:06]Read from MH i2c: E2 17 00 [05:01:06]MH_I2C_Read... [05:01:06]Read from MH i2c: E2 17 00 60 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3D [05:01:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [05:01:06]wFMCommunicate OK [05:01:06]requested_item fd.num is exist - process it [05:01:06]SAM_PROTO_GetFieldsCounters [05:01:06]wFMCommunicate request_size=4 [05:01:06]MH_SAM_APDU [05:01:06]CAPDU: 80 13 00 00 [05:01:06]Write to MH i2c: E2 08 00 61 0E 80 13 00 00 00 00 00 00 EB [05:01:06]Write i2c OK [05:01:06]MH_I2C_Read... [05:01:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:01:07]Read from MH i2c: E2 [05:01:07]MH_I2C_Read... [05:01:07]Read from MH i2c: E2 62 00 [05:01:07]MH_I2C_Read... [05:01:07]Read from MH i2c: E2 62 00 61 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 20 12 03 00 0E 04 04 00 1F 02 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 88 [05:01:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 20 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:01:07]wFMCommunicate OK [05:01:07]SAM_PROTO_GetFieldsCounters done [05:01:07]requested_item shift.num is exist - process it [05:01:07]requested_item shift.opened is exist - process it [05:01:07]req_shift_opened [05:01:07]FM_GetShiftState [05:01:07]SAM_PROTO_GetShiftState [05:01:07]wFMCommunicate request_size=4 [05:01:07]MH_SAM_APDU [05:01:07]CAPDU: 80 13 01 00 [05:01:07]Write to MH i2c: E2 08 00 62 0E 80 13 01 00 00 00 00 00 ED [05:01:07]Write i2c OK [05:01:07]MH_I2C_Read... [05:01:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:01:07]Read from MH i2c: E2 [05:01:07]MH_I2C_Read... [05:01:07]Read from MH i2c: E2 0E 00 [05:01:07]MH_I2C_Read... [05:01:07]Read from MH i2c: E2 0E 00 62 0E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 FC [05:01:07]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [05:01:07]wFMCommunicate OK [05:01:07]SAM_PROTO_GetShiftState done [05:01:07]FM_GetShiftState done [05:01:07]req_shift_opened done [05:01:07]requested_item shift.open_date is exist - process it [05:01:07]req_shift_open_date [05:01:07]req_shift_open_date done [05:01:07]produce_requested_data done [05:01:07]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201248,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [05:01:07]process_action_free close_receipt [05:01:07]json_value_free [05:01:07]json_value_free done [05:01:07]process_json_proto returns [05:01:07]Send response to host [05:01:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201248,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [05:01:07]free response buf [05:01:07]execute_script done [05:01:07]execute_script returns [05:01:07]free content buf [05:01:07]Sock 7.Close socket [05:01:07]Sock 7.Thread stoped [05:01:11]OFD Sender: No OFD packet to send [05:01:16]OFD Sender: No OFD packet to send [05:01:21]OFD Sender: No OFD packet to send [05:01:26]OFD Sender: No OFD packet to send [05:01:31]OFD Sender: No OFD packet to send [05:01:36]OFD Sender: No OFD packet to send [05:01:41]OFD Sender: No OFD packet to send [05:01:46]OFD Sender: No OFD packet to send [05:01:51]OFD Sender: No OFD packet to send [05:01:56]OFD Sender: No OFD packet to send [05:02:01]OFD Sender: No OFD packet to send [05:02:06]OFD Sender: No OFD packet to send [05:02:11]OFD Sender: No OFD packet to send [05:02:16]OFD Sender: No OFD packet to send [05:02:21]OFD Sender: No OFD packet to send [05:02:26]OFD Sender: No OFD packet to send [05:02:31]OFD Sender: No OFD packet to send [05:02:36]OFD Sender: No OFD packet to send [05:02:41]OFD Sender: No OFD packet to send [05:02:46]OFD Sender: No OFD packet to send [05:02:51]OFD Sender: No OFD packet to send [05:02:56]OFD Sender: No OFD packet to send [05:03:01]OFD Sender: No OFD packet to send [05:03:06]OFD Sender: No OFD packet to send [05:03:11]OFD Sender: No OFD packet to send [05:03:16]OFD Sender: No OFD packet to send [05:03:21]OFD Sender: No OFD packet to send [05:03:26]OFD Sender: No OFD packet to send [05:03:31]OFD Sender: No OFD packet to send [05:03:36]OFD Sender: No OFD packet to send [05:03:41]OFD Sender: No OFD packet to send [05:03:46]OFD Sender: No OFD packet to send [05:03:51]OFD Sender: No OFD packet to send [05:03:56]OFD Sender: No OFD packet to send [05:04:01]OFD Sender: No OFD packet to send [05:04:06]OFD Sender: No OFD packet to send [05:04:11]OFD Sender: No OFD packet to send [05:04:16]OFD Sender: No OFD packet to send [05:04:21]OFD Sender: No OFD packet to send [05:04:26]OFD Sender: No OFD packet to send [05:04:31]OFD Sender: No OFD packet to send [05:04:36]OFD Sender: No OFD packet to send [05:04:41]OFD Sender: No OFD packet to send [05:04:46]OFD Sender: No OFD packet to send [05:04:51]OFD Sender: No OFD packet to send [05:04:56]OFD Sender: No OFD packet to send [05:05:01]OFD Sender: No OFD packet to send [05:05:06]OFD Sender: No OFD packet to send [05:05:11]OFD Sender: No OFD packet to send [05:05:16]OFD Sender: No OFD packet to send [05:05:21]OFD Sender: No OFD packet to send [05:05:26]OFD Sender: No OFD packet to send [05:05:31]OFD Sender: No OFD packet to send [05:05:36]OFD Sender: No OFD packet to send [05:05:41]OFD Sender: No OFD packet to send [05:05:46]OFD Sender: No OFD packet to send [05:05:51]OFD Sender: No OFD packet to send [05:05:56]OFD Sender: No OFD packet to send [05:06:01]OFD Sender: No OFD packet to send [05:06:06]OFD Sender: No OFD packet to send [05:06:11]OFD Sender: No OFD packet to send [05:06:16]OFD Sender: No OFD packet to send [05:06:21]OFD Sender: No OFD packet to send [05:06:26]OFD Sender: No OFD packet to send [05:06:31]OFD Sender: No OFD packet to send [05:06:36]OFD Sender: No OFD packet to send [05:06:41]OFD Sender: No OFD packet to send [05:06:46]OFD Sender: No OFD packet to send [05:06:51]OFD Sender: No OFD packet to send [05:06:56]OFD Sender: No OFD packet to send [05:07:01]OFD Sender: No OFD packet to send [05:07:06]OFD Sender: No OFD packet to send [05:07:11]OFD Sender: No OFD packet to send [05:07:16]OFD Sender: No OFD packet to send [05:07:21]OFD Sender: No OFD packet to send [05:07:26]OFD Sender: No OFD packet to send [05:07:31]OFD Sender: No OFD packet to send [05:07:36]OFD Sender: No OFD packet to send [05:07:41]OFD Sender: No OFD packet to send [05:07:46]OFD Sender: No OFD packet to send [05:07:51]OFD Sender: No OFD packet to send [05:07:56]OFD Sender: No OFD packet to send [05:08:01]OFD Sender: No OFD packet to send [05:08:06]OFD Sender: No OFD packet to send [05:08:11]OFD Sender: No OFD packet to send [05:08:16]OFD Sender: No OFD packet to send [05:08:21]OFD Sender: No OFD packet to send [05:08:26]OFD Sender: No OFD packet to send [05:08:31]OFD Sender: No OFD packet to send [05:08:36]OFD Sender: No OFD packet to send [05:08:41]OFD Sender: No OFD packet to send [05:08:46]OFD Sender: No OFD packet to send [05:08:51]OFD Sender: No OFD packet to send [05:08:56]OFD Sender: No OFD packet to send [05:09:01]OFD Sender: No OFD packet to send [05:09:06]OFD Sender: No OFD packet to send [05:09:11]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:46]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:51]OFD Sender: No OFD packet to send [05:11:56]OFD Sender: No OFD packet to send [05:12:01]OFD Sender: No OFD packet to send [05:12:06]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:21]OFD Sender: No OFD packet to send [05:12:26]OFD Sender: No OFD packet to send [05:12:31]OFD Sender: No OFD packet to send [05:12:36]OFD Sender: No OFD packet to send [05:12:41]OFD Sender: No OFD packet to send [05:12:46]OFD Sender: No OFD packet to send [05:12:51]OFD Sender: No OFD packet to send [05:12:56]OFD Sender: No OFD packet to send [05:13:01]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:12]OFD Sender: No OFD packet to send [05:13:17]OFD Sender: No OFD packet to send [05:13:22]OFD Sender: No OFD packet to send [05:13:27]OFD Sender: No OFD packet to send [05:13:32]OFD Sender: No OFD packet to send [05:13:37]OFD Sender: No OFD packet to send [05:13:42]OFD Sender: No OFD packet to send [05:13:47]OFD Sender: No OFD packet to send [05:13:52]OFD Sender: No OFD packet to send [05:13:57]OFD Sender: No OFD packet to send [05:14:02]OFD Sender: No OFD packet to send [05:14:07]OFD Sender: No OFD packet to send [05:14:12]OFD Sender: No OFD packet to send [05:14:17]OFD Sender: No OFD packet to send [05:14:22]OFD Sender: No OFD packet to send [05:14:27]OFD Sender: No OFD packet to send [05:14:32]OFD Sender: No OFD packet to send [05:14:37]OFD Sender: No OFD packet to send [05:14:42]OFD Sender: No OFD packet to send [05:14:47]OFD Sender: No OFD packet to send [05:14:52]OFD Sender: No OFD packet to send [05:14:57]OFD Sender: No OFD packet to send [05:15:02]OFD Sender: No OFD packet to send [05:15:07]OFD Sender: No OFD packet to send [05:15:12]OFD Sender: No OFD packet to send [05:15:17]OFD Sender: No OFD packet to send [05:15:22]OFD Sender: No OFD packet to send [05:15:27]OFD Sender: No OFD packet to send [05:15:32]OFD Sender: No OFD packet to send [05:15:37]OFD Sender: No OFD packet to send [05:15:42]OFD Sender: No OFD packet to send [05:15:47]OFD Sender: No OFD packet to send [05:15:52]OFD Sender: No OFD packet to send [05:15:57]OFD Sender: No OFD packet to send [05:16:02]OFD Sender: No OFD packet to send [05:16:07]OFD Sender: No OFD packet to send [05:16:12]OFD Sender: No OFD packet to send [05:16:17]OFD Sender: No OFD packet to send [05:16:22]OFD Sender: No OFD packet to send [05:16:27]OFD Sender: No OFD packet to send [05:16:32]OFD Sender: No OFD packet to send [05:16:37]OFD Sender: No OFD packet to send [05:16:42]OFD Sender: No OFD packet to send [05:16:47]OFD Sender: No OFD packet to send [05:16:52]OFD Sender: No OFD packet to send [05:16:57]OFD Sender: No OFD packet to send [05:17:02]OFD Sender: No OFD packet to send [05:17:07]OFD Sender: No OFD packet to send [05:17:12]OFD Sender: No OFD packet to send [05:17:17]OFD Sender: No OFD packet to send [05:17:22]OFD Sender: No OFD packet to send [05:17:27]OFD Sender: No OFD packet to send [05:17:32]OFD Sender: No OFD packet to send [05:17:37]OFD Sender: No OFD packet to send [05:17:42]OFD Sender: No OFD packet to send [05:17:47]OFD Sender: No OFD packet to send [05:17:52]OFD Sender: No OFD packet to send [05:17:57]OFD Sender: No OFD packet to send [05:18:02]OFD Sender: No OFD packet to send [05:18:07]OFD Sender: No OFD packet to send [05:18:12]OFD Sender: No OFD packet to send [05:18:17]OFD Sender: No OFD packet to send [05:18:22]OFD Sender: No OFD packet to send [05:18:27]OFD Sender: No OFD packet to send [05:18:32]OFD Sender: No OFD packet to send [05:18:37]OFD Sender: No OFD packet to send [05:18:42]OFD Sender: No OFD packet to send [05:18:47]OFD Sender: No OFD packet to send [05:18:52]OFD Sender: No OFD packet to send [05:18:57]OFD Sender: No OFD packet to send [05:19:02]OFD Sender: No OFD packet to send [05:19:07]OFD Sender: No OFD packet to send [05:19:12]OFD Sender: No OFD packet to send [05:19:17]OFD Sender: No OFD packet to send [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:37]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19:52]OFD Sender: No OFD packet to send [05:19:57]OFD Sender: No OFD packet to send [05:20:02]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:12]OFD Sender: No OFD packet to send [05:20:17]OFD Sender: No OFD packet to send [05:20:22]OFD Sender: No OFD packet to send [05:20:27]OFD Sender: No OFD packet to send [05:20:32]OFD Sender: No OFD packet to send [05:20:37]OFD Sender: No OFD packet to send [05:20:42]OFD Sender: No OFD packet to send [05:20:47]OFD Sender: No OFD packet to send [05:20:52]OFD Sender: No OFD packet to send [05:20:57]OFD Sender: No OFD packet to send [05:21:02]OFD Sender: No OFD packet to send [05:21:07]OFD Sender: No OFD packet to send [05:21:12]OFD Sender: No OFD packet to send [05:21:17]OFD Sender: No OFD packet to send [05:21:22]OFD Sender: No OFD packet to send [05:21:27]OFD Sender: No OFD packet to send [05:21:32]OFD Sender: No OFD packet to send [05:21:37]OFD Sender: No OFD packet to send [05:21:42]OFD Sender: No OFD packet to send [05:21:47]OFD Sender: No OFD packet to send [05:21:52]OFD Sender: No OFD packet to send [05:21:57]OFD Sender: No OFD packet to send [05:22:02]OFD Sender: No OFD packet to send [05:22:07]OFD Sender: No OFD packet to send [05:22:12]OFD Sender: No OFD packet to send [05:22:17]OFD Sender: No OFD packet to send [05:22:22]OFD Sender: No OFD packet to send [05:22:27]OFD Sender: No OFD packet to send [05:22:32]OFD Sender: No OFD packet to send [05:22:37]OFD Sender: No OFD packet to send [05:22:42]OFD Sender: No OFD packet to send [05:22:47]OFD Sender: No OFD packet to send [05:22:52]OFD Sender: No OFD packet to send [05:22:57]OFD Sender: No OFD packet to send [05:23:02]OFD Sender: No OFD packet to send [05:23:07]OFD Sender: No OFD packet to send [05:23:12]OFD Sender: No OFD packet to send [05:23:17]OFD Sender: No OFD packet to send [05:23:22]OFD Sender: No OFD packet to send [05:23:27]OFD Sender: No OFD packet to send [05:23:32]OFD Sender: No OFD packet to send [05:23:37]OFD Sender: No OFD packet to send [05:23:42]OFD Sender: No OFD packet to send [05:23:47]OFD Sender: No OFD packet to send [05:23:52]OFD Sender: No OFD packet to send [05:23:57]OFD Sender: No OFD packet to send [05:24:02]OFD Sender: No OFD packet to send [05:24:07]OFD Sender: No OFD packet to send [05:24:12]OFD Sender: No OFD packet to send [05:24:17]OFD Sender: No OFD packet to send [05:24:22]OFD Sender: No OFD packet to send [05:24:27]OFD Sender: No OFD packet to send [05:24:32]OFD Sender: No OFD packet to send [05:24:37]OFD Sender: No OFD packet to send [05:24:42]OFD Sender: No OFD packet to send [05:24:47]OFD Sender: No OFD packet to send [05:24:52]OFD Sender: No OFD packet to send [05:24:57]OFD Sender: No OFD packet to send [05:25:02]OFD Sender: No OFD packet to send [05:25:07]OFD Sender: No OFD packet to send [05:25:12]OFD Sender: No OFD packet to send [05:25:17]OFD Sender: No OFD packet to send [05:25:22]OFD Sender: No OFD packet to send [05:25:27]OFD Sender: No OFD packet to send [05:25:32]OFD Sender: No OFD packet to send [05:25:37]OFD Sender: No OFD packet to send [05:25:42]OFD Sender: No OFD packet to send [05:25:47]OFD Sender: No OFD packet to send [05:25:52]OFD Sender: No OFD packet to send [05:25:57]OFD Sender: No OFD packet to send [05:26:02]OFD Sender: No OFD packet to send [05:26:07]OFD Sender: No OFD packet to send [05:26:12]OFD Sender: No OFD packet to send [05:26:17]OFD Sender: No OFD packet to send [05:26:22]OFD Sender: No OFD packet to send [05:26:27]OFD Sender: No OFD packet to send [05:26:32]OFD Sender: No OFD packet to send [05:26:37]OFD Sender: No OFD packet to send [05:26:42]OFD Sender: No OFD packet to send [05:26:47]OFD Sender: No OFD packet to send [05:26:52]OFD Sender: No OFD packet to send [05:26:57]OFD Sender: No OFD packet to send [05:27:02]OFD Sender: No OFD packet to send [05:27:07]OFD Sender: No OFD packet to send [05:27:12]OFD Sender: No OFD packet to send [05:27:17]OFD Sender: No OFD packet to send [05:27:22]OFD Sender: No OFD packet to send [05:27:27]OFD Sender: No OFD packet to send [05:27:32]OFD Sender: No OFD packet to send [05:27:37]OFD Sender: No OFD packet to send [05:27:42]OFD Sender: No OFD packet to send [05:27:47]OFD Sender: No OFD packet to send [05:27:53]OFD Sender: No OFD packet to send [05:27:58]OFD Sender: No OFD packet to send [05:28:03]OFD Sender: No OFD packet to send [05:28:08]OFD Sender: No OFD packet to send [05:28:13]OFD Sender: No OFD packet to send [05:28:18]OFD Sender: No OFD packet to send [05:28:23]OFD Sender: No OFD packet to send [05:28:28]OFD Sender: No OFD packet to send [05:28:33]OFD Sender: No OFD packet to send [05:28:38]OFD Sender: No OFD packet to send [05:28:43]OFD Sender: No OFD packet to send [05:28:48]OFD Sender: No OFD packet to send [05:28:53]OFD Sender: No OFD packet to send [05:28:58]OFD Sender: No OFD packet to send [05:29:03]OFD Sender: No OFD packet to send [05:29:08]OFD Sender: No OFD packet to send [05:29:13]OFD Sender: No OFD packet to send [05:29:18]OFD Sender: No OFD packet to send [05:29:23]OFD Sender: No OFD packet to send [05:29:28]OFD Sender: No OFD packet to send [05:29:33]OFD Sender: No OFD packet to send [05:29:38]OFD Sender: No OFD packet to send [05:29:43]OFD Sender: No OFD packet to send [05:29:48]OFD Sender: No OFD packet to send [05:29:53]OFD Sender: No OFD packet to send [05:29:58]OFD Sender: No OFD packet to send [05:30:03]OFD Sender: No OFD packet to send [05:30:08]OFD Sender: No OFD packet to send [05:30:13]OFD Sender: No OFD packet to send [05:30:18]OFD Sender: No OFD packet to send [05:30:23]OFD Sender: No OFD packet to send [05:30:28]OFD Sender: No OFD packet to send [05:30:33]OFD Sender: No OFD packet to send [05:30:38]OFD Sender: No OFD packet to send [05:30:43]OFD Sender: No OFD packet to send [05:30:48]OFD Sender: No OFD packet to send [05:30:53]OFD Sender: No OFD packet to send [05:30:58]OFD Sender: No OFD packet to send [05:31:03]OFD Sender: No OFD packet to send [05:31:08]OFD Sender: No OFD packet to send [05:31:13]OFD Sender: No OFD packet to send [05:31:18]OFD Sender: No OFD packet to send [05:31:23]OFD Sender: No OFD packet to send [05:31:28]OFD Sender: No OFD packet to send [05:31:33]OFD Sender: No OFD packet to send [05:31:38]OFD Sender: No OFD packet to send [05:31:43]OFD Sender: No OFD packet to send [05:31:48]OFD Sender: No OFD packet to send [05:31:53]OFD Sender: No OFD packet to send [05:31:58]OFD Sender: No OFD packet to send [05:32:03]OFD Sender: No OFD packet to send [05:32:08]OFD Sender: No OFD packet to send [05:32:13]OFD Sender: No OFD packet to send [05:32:18]OFD Sender: No OFD packet to send [05:32:23]OFD Sender: No OFD packet to send [05:32:28]OFD Sender: No OFD packet to send [05:32:33]OFD Sender: No OFD packet to send [05:32:38]OFD Sender: No OFD packet to send [05:32:43]OFD Sender: No OFD packet to send [05:32:48]OFD Sender: No OFD packet to send [05:32:53]OFD Sender: No OFD packet to send [05:32:58]OFD Sender: No OFD packet to send [05:33:03]OFD Sender: No OFD packet to send [05:33:08]OFD Sender: No OFD packet to send [05:33:13]OFD Sender: No OFD packet to send [05:33:18]OFD Sender: No OFD packet to send [05:33:23]OFD Sender: No OFD packet to send [05:33:28]OFD Sender: No OFD packet to send [05:33:33]OFD Sender: No OFD packet to send [05:33:38]OFD Sender: No OFD packet to send [05:33:43]OFD Sender: No OFD packet to send [05:33:48]OFD Sender: No OFD packet to send [05:33:53]OFD Sender: No OFD packet to send [05:33:58]OFD Sender: No OFD packet to send [05:34:03]OFD Sender: No OFD packet to send [05:34:08]OFD Sender: No OFD packet to send [05:34:13]OFD Sender: No OFD packet to send [05:34:18]OFD Sender: No OFD packet to send [05:34:23]OFD Sender: No OFD packet to send [05:34:28]OFD Sender: No OFD packet to send [05:34:33]OFD Sender: No OFD packet to send [05:34:38]OFD Sender: No OFD packet to send [05:34:43]OFD Sender: No OFD packet to send [05:34:48]OFD Sender: No OFD packet to send [05:34:53]OFD Sender: No OFD packet to send [05:34:58]OFD Sender: No OFD packet to send [05:35:03]OFD Sender: No OFD packet to send [05:35:08]OFD Sender: No OFD packet to send [05:35:13]OFD Sender: No OFD packet to send [05:35:18]OFD Sender: No OFD packet to send [05:35:23]OFD Sender: No OFD packet to send [05:35:28]OFD Sender: No OFD packet to send [05:35:33]OFD Sender: No OFD packet to send [05:35:38]OFD Sender: No OFD packet to send [05:35:43]OFD Sender: No OFD packet to send [05:35:48]OFD Sender: No OFD packet to send [05:35:53]OFD Sender: No OFD packet to send [05:35:58]OFD Sender: No OFD packet to send [05:36:03]OFD Sender: No OFD packet to send [05:36:08]OFD Sender: No OFD packet to send [05:36:13]OFD Sender: No OFD packet to send [05:36:18]OFD Sender: No OFD packet to send [05:36:23]OFD Sender: No OFD packet to send [05:36:28]OFD Sender: No OFD packet to send [05:36:33]OFD Sender: No OFD packet to send [05:36:38]OFD Sender: No OFD packet to send [05:36:43]OFD Sender: No OFD packet to send [05:36:48]OFD Sender: No OFD packet to send [05:36:53]OFD Sender: No OFD packet to send [05:36:58]OFD Sender: No OFD packet to send [05:37:03]OFD Sender: No OFD packet to send [05:37:08]OFD Sender: No OFD packet to send [05:37:13]OFD Sender: No OFD packet to send [05:37:18]OFD Sender: No OFD packet to send [05:37:23]OFD Sender: No OFD packet to send [05:37:28]OFD Sender: No OFD packet to send [05:37:33]OFD Sender: No OFD packet to send [05:37:38]OFD Sender: No OFD packet to send [05:37:43]OFD Sender: No OFD packet to send [05:37:48]OFD Sender: No OFD packet to send [05:37:53]OFD Sender: No OFD packet to send [05:37:58]OFD Sender: No OFD packet to send [05:38:03]OFD Sender: No OFD packet to send [05:38:08]OFD Sender: No OFD packet to send [05:38:13]OFD Sender: No OFD packet to send [05:38:18]OFD Sender: No OFD packet to send [05:38:23]OFD Sender: No OFD packet to send [05:38:28]OFD Sender: No OFD packet to send [05:38:33]OFD Sender: No OFD packet to send [05:38:38]OFD Sender: No OFD packet to send [05:38:43]OFD Sender: No OFD packet to send [05:38:48]OFD Sender: No OFD packet to send [05:38:53]OFD Sender: No OFD packet to send [05:38:58]OFD Sender: No OFD packet to send [05:39:03]OFD Sender: No OFD packet to send [05:39:08]OFD Sender: No OFD packet to send [05:39:13]OFD Sender: No OFD packet to send [05:39:18]OFD Sender: No OFD packet to send [05:39:23]OFD Sender: No OFD packet to send [05:39:28]OFD Sender: No OFD packet to send [05:39:33]OFD Sender: No OFD packet to send [05:39:38]OFD Sender: No OFD packet to send [05:39:43]OFD Sender: No OFD packet to send [05:39:48]OFD Sender: No OFD packet to send [05:39:53]OFD Sender: No OFD packet to send [05:39:58]OFD Sender: No OFD packet to send [05:40:03]OFD Sender: No OFD packet to send [05:40:08]OFD Sender: No OFD packet to send [05:40:13]OFD Sender: No OFD packet to send [05:40:18]OFD Sender: No OFD packet to send [05:40:23]OFD Sender: No OFD packet to send [05:40:28]OFD Sender: No OFD packet to send [05:40:33]OFD Sender: No OFD packet to send [05:40:38]OFD Sender: No OFD packet to send [05:40:43]OFD Sender: No OFD packet to send [05:40:48]OFD Sender: No OFD packet to send [05:40:53]OFD Sender: No OFD packet to send [05:40:58]OFD Sender: No OFD packet to send [05:41:03]OFD Sender: No OFD packet to send [05:41:08]OFD Sender: No OFD packet to send [05:41:13]OFD Sender: No OFD packet to send [05:41:18]OFD Sender: No OFD packet to send [05:41:23]OFD Sender: No OFD packet to send [05:41:28]OFD Sender: No OFD packet to send [05:41:33]OFD Sender: No OFD packet to send [05:41:38]OFD Sender: No OFD packet to send [05:41:43]OFD Sender: No OFD packet to send [05:41:48]OFD Sender: No OFD packet to send [05:41:53]OFD Sender: No OFD packet to send [05:41:58]OFD Sender: No OFD packet to send [05:42:03]OFD Sender: No OFD packet to send [05:42:08]OFD Sender: No OFD packet to send [05:42:13]OFD Sender: No OFD packet to send [05:42:18]OFD Sender: No OFD packet to send [05:42:23]OFD Sender: No OFD packet to send [05:42:28]OFD Sender: No OFD packet to send [05:42:33]OFD Sender: No OFD packet to send [05:42:39]OFD Sender: No OFD packet to send [05:42:44]OFD Sender: No OFD packet to send [05:42:49]OFD Sender: No OFD packet to send [05:42:54]OFD Sender: No OFD packet to send [05:42:59]OFD Sender: No OFD packet to send [05:43:04]OFD Sender: No OFD packet to send [05:43:09]OFD Sender: No OFD packet to send [05:43:14]OFD Sender: No OFD packet to send [05:43:19]OFD Sender: No OFD packet to send [05:43:24]OFD Sender: No OFD packet to send [05:43:29]OFD Sender: No OFD packet to send [05:43:34]OFD Sender: No OFD packet to send [05:43:39]OFD Sender: No OFD packet to send [05:43:44]OFD Sender: No OFD packet to send [05:43:49]OFD Sender: No OFD packet to send [05:43:54]OFD Sender: No OFD packet to send [05:43:59]OFD Sender: No OFD packet to send [05:44:04]OFD Sender: No OFD packet to send [05:44:09]OFD Sender: No OFD packet to send [05:44:14]OFD Sender: No OFD packet to send [05:44:19]OFD Sender: No OFD packet to send [05:44:24]OFD Sender: No OFD packet to send [05:44:29]OFD Sender: No OFD packet to send [05:44:34]OFD Sender: No OFD packet to send [05:44:39]OFD Sender: No OFD packet to send [05:44:44]OFD Sender: No OFD packet to send [05:44:49]OFD Sender: No OFD packet to send [05:44:54]OFD Sender: No OFD packet to send [05:44:59]OFD Sender: No OFD packet to send [05:45:04]OFD Sender: No OFD packet to send [05:45:09]OFD Sender: No OFD packet to send [05:45:14]OFD Sender: No OFD packet to send [05:45:19]OFD Sender: No OFD packet to send [05:45:24]OFD Sender: No OFD packet to send [05:45:29]OFD Sender: No OFD packet to send [05:45:34]OFD Sender: No OFD packet to send [05:45:39]OFD Sender: No OFD packet to send [05:45:44]OFD Sender: No OFD packet to send [05:45:49]OFD Sender: No OFD packet to send [05:45:54]OFD Sender: No OFD packet to send [05:45:59]OFD Sender: No OFD packet to send [05:46:04]OFD Sender: No OFD packet to send [05:46:09]OFD Sender: No OFD packet to send [05:46:14]OFD Sender: No OFD packet to send [05:46:19]OFD Sender: No OFD packet to send [05:46:24]OFD Sender: No OFD packet to send [05:46:29]OFD Sender: No OFD packet to send [05:46:34]OFD Sender: No OFD packet to send [05:46:39]OFD Sender: No OFD packet to send [05:46:44]OFD Sender: No OFD packet to send [05:46:49]OFD Sender: No OFD packet to send [05:46:54]OFD Sender: No OFD packet to send [05:46:59]OFD Sender: No OFD packet to send [05:47:04]OFD Sender: No OFD packet to send [05:47:09]OFD Sender: No OFD packet to send [05:47:14]OFD Sender: No OFD packet to send [05:47:19]OFD Sender: No OFD packet to send [05:47:24]OFD Sender: No OFD packet to send [05:47:29]OFD Sender: No OFD packet to send [05:47:34]OFD Sender: No OFD packet to send [05:47:39]OFD Sender: No OFD packet to send [05:47:44]OFD Sender: No OFD packet to send [05:47:49]OFD Sender: No OFD packet to send [05:47:54]OFD Sender: No OFD packet to send [05:47:59]OFD Sender: No OFD packet to send [05:48:04]OFD Sender: No OFD packet to send [05:48:09]OFD Sender: No OFD packet to send [05:48:14]OFD Sender: No OFD packet to send [05:48:19]OFD Sender: No OFD packet to send [05:48:24]OFD Sender: No OFD packet to send [05:48:29]OFD Sender: No OFD packet to send [05:48:34]OFD Sender: No OFD packet to send [05:48:39]OFD Sender: No OFD packet to send [05:48:44]OFD Sender: No OFD packet to send [05:48:49]OFD Sender: No OFD packet to send [05:48:54]OFD Sender: No OFD packet to send [05:48:59]OFD Sender: No OFD packet to send [05:49:04]OFD Sender: No OFD packet to send [05:49:09]OFD Sender: No OFD packet to send [05:49:14]OFD Sender: No OFD packet to send [05:49:19]OFD Sender: No OFD packet to send [05:49:24]OFD Sender: No OFD packet to send [05:49:29]OFD Sender: No OFD packet to send [05:49:34]OFD Sender: No OFD packet to send [05:49:39]OFD Sender: No OFD packet to send [05:49:44]OFD Sender: No OFD packet to send [05:49:49]OFD Sender: No OFD packet to send [05:49:54]OFD Sender: No OFD packet to send [05:49:59]OFD Sender: No OFD packet to send [05:50:04]OFD Sender: No OFD packet to send [05:50:09]OFD Sender: No OFD packet to send [05:50:14]OFD Sender: No OFD packet to send [05:50:19]OFD Sender: No OFD packet to send [05:50:24]OFD Sender: No OFD packet to send [05:50:29]OFD Sender: No OFD packet to send [05:50:34]OFD Sender: No OFD packet to send [05:50:39]OFD Sender: No OFD packet to send [05:50:44]OFD Sender: No OFD packet to send [05:50:49]OFD Sender: No OFD packet to send [05:50:54]OFD Sender: No OFD packet to send [05:50:59]OFD Sender: No OFD packet to send [05:51:04]OFD Sender: No OFD packet to send [05:51:09]OFD Sender: No OFD packet to send [05:51:14]OFD Sender: No OFD packet to send [05:51:19]OFD Sender: No OFD packet to send [05:51:24]OFD Sender: No OFD packet to send [05:51:29]OFD Sender: No OFD packet to send [05:51:34]OFD Sender: No OFD packet to send [05:51:39]OFD Sender: No OFD packet to send [05:51:44]OFD Sender: No OFD packet to send [05:51:49]OFD Sender: No OFD packet to send [05:51:54]OFD Sender: No OFD packet to send [05:51:59]OFD Sender: No OFD packet to send [05:52:04]OFD Sender: No OFD packet to send [05:52:09]OFD Sender: No OFD packet to send [05:52:14]OFD Sender: No OFD packet to send [05:52:19]OFD Sender: No OFD packet to send [05:52:24]OFD Sender: No OFD packet to send [05:52:29]OFD Sender: No OFD packet to send [05:52:34]OFD Sender: No OFD packet to send [05:52:39]OFD Sender: No OFD packet to send [05:52:44]OFD Sender: No OFD packet to send [05:52:49]OFD Sender: No OFD packet to send [05:52:54]OFD Sender: No OFD packet to send [05:52:59]OFD Sender: No OFD packet to send [05:53:04]OFD Sender: No OFD packet to send [05:53:09]OFD Sender: No OFD packet to send [05:53:14]OFD Sender: No OFD packet to send [05:53:19]OFD Sender: No OFD packet to send [05:53:24]OFD Sender: No OFD packet to send [05:53:29]OFD Sender: No OFD packet to send [05:53:34]OFD Sender: No OFD packet to send [05:53:39]OFD Sender: No OFD packet to send [05:53:44]OFD Sender: No OFD packet to send [05:53:49]OFD Sender: No OFD packet to send [05:53:54]OFD Sender: No OFD packet to send [05:53:59]OFD Sender: No OFD packet to send [05:54:04]OFD Sender: No OFD packet to send [05:54:09]OFD Sender: No OFD packet to send [05:54:14]OFD Sender: No OFD packet to send [05:54:19]OFD Sender: No OFD packet to send [05:54:24]OFD Sender: No OFD packet to send [05:54:29]OFD Sender: No OFD packet to send [05:54:34]OFD Sender: No OFD packet to send [05:54:39]OFD Sender: No OFD packet to send [05:54:44]OFD Sender: No OFD packet to send [05:54:49]OFD Sender: No OFD packet to send [05:54:54]OFD Sender: No OFD packet to send [05:54:59]OFD Sender: No OFD packet to send [05:55:04]OFD Sender: No OFD packet to send [05:55:09]OFD Sender: No OFD packet to send [05:55:14]OFD Sender: No OFD packet to send [05:55:19]OFD Sender: No OFD packet to send [05:55:24]OFD Sender: No OFD packet to send [05:55:29]OFD Sender: No OFD packet to send [05:55:34]OFD Sender: No OFD packet to send [05:55:39]OFD Sender: No OFD packet to send [05:55:44]OFD Sender: No OFD packet to send [05:55:49]OFD Sender: No OFD packet to send [05:55:54]OFD Sender: No OFD packet to send [05:55:59]OFD Sender: No OFD packet to send [05:56:04]OFD Sender: No OFD packet to send [05:56:09]OFD Sender: No OFD packet to send [05:56:14]OFD Sender: No OFD packet to send [05:56:19]OFD Sender: No OFD packet to send [05:56:24]OFD Sender: No OFD packet to send [05:56:29]OFD Sender: No OFD packet to send [05:56:34]OFD Sender: No OFD packet to send [05:56:39]OFD Sender: No OFD packet to send [05:56:44]OFD Sender: No OFD packet to send [05:56:49]OFD Sender: No OFD packet to send [05:56:54]OFD Sender: No OFD packet to send [05:56:59]OFD Sender: No OFD packet to send [05:57:04]OFD Sender: No OFD packet to send [05:57:09]OFD Sender: No OFD packet to send [05:57:14]OFD Sender: No OFD packet to send [05:57:20]OFD Sender: No OFD packet to send [05:57:25]OFD Sender: No OFD packet to send [05:57:30]OFD Sender: No OFD packet to send [05:57:35]OFD Sender: No OFD packet to send [05:57:40]OFD Sender: No OFD packet to send [05:57:45]OFD Sender: No OFD packet to send [05:57:50]OFD Sender: No OFD packet to send [05:57:55]OFD Sender: No OFD packet to send [05:58:00]OFD Sender: No OFD packet to send [05:58:05]OFD Sender: No OFD packet to send [05:58:10]OFD Sender: No OFD packet to send [05:58:15]OFD Sender: No OFD packet to send [05:58:20]OFD Sender: No OFD packet to send [05:58:22]accept exits with 9 [05:58:22]New connection [05:58:22]New thread 3067559268 created [05:58:22]Thread 3067415908 joined [05:58:22]Waiting for new connection... [05:58:22] Sock 9.Parse request [05:58:22]Sock 9.Check first char [05:58:22]Sock 9.First char is OK [05:58:22]request: POST /json_proto HTTP/1.0 [05:58:22]Method: POST [05:58:22]URL: /json_proto [05:58:22]Method is POST - this is cgi request [05:58:22]url: /json_proto [05:58:22]query_string will be loaded in cgi processing [05:58:22]execute_cgi json_proto POST (null) [05:58:22]execute_cgi path=json_proto method=POST [05:58:22]POST find Content-Length [05:58:22]Host: 172.17.63.195:8080 [05:58:22]Content-Length: 677 [05:58:22]Content-Type: application/json [05:58:22] [05:58:22]POST finish read [05:58:22]Found Content-Length = 677 [05:58:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)448994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [05:58:22]execute_script... [05:58:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)448994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [05:58:22]POST & json_proto [05:58:22]process_json_proto [05:58:22]json parsed OK: [05:58:22]protocol is kg_v1.0 [05:58:22]action value=close_receipt [05:58:22]process_action close_receipt [05:58:22]cmd_close_receipt [05:58:22]MH_GetDate [05:58:22]Write to MH i2c: F0 00 00 63 0E 60 [05:58:22]Write i2c OK [05:58:22]MH_I2C_Read... [05:58:22]Read from MH i2c: F0 [05:58:22]MH_I2C_Read... [05:58:22]Read from MH i2c: F0 09 00 [05:58:22]MH_I2C_Read... [05:58:22]Read from MH i2c: F0 09 00 63 0E 00 01 85 1C 67 68 46 19 67 A0 [05:58:22]GetLastDocTimeStamp 1729918865 [05:58:22]current date 1729922305 [05:58:22]FM_GetShiftState [05:58:22]SAM_PROTO_GetShiftState [05:58:22]wFMCommunicate request_size=4 [05:58:22]MH_SAM_APDU [05:58:22]CAPDU: 80 13 01 00 [05:58:22]Write to MH i2c: E2 08 00 64 0E 80 13 01 00 00 00 00 00 EF [05:58:22]Write i2c OK [05:58:22]MH_I2C_Read... [05:58:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:58:22]Read from MH i2c: E2 [05:58:22]MH_I2C_Read... [05:58:22]Read from MH i2c: E2 0E 00 [05:58:22]MH_I2C_Read... [05:58:22]Read from MH i2c: E2 0E 00 64 0E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 FE [05:58:22]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [05:58:22]wFMCommunicate OK [05:58:22]SAM_PROTO_GetShiftState done [05:58:22]FM_GetShiftState done [05:58:22]opened in 1729900879 [05:58:22]opened+sec_in_day 1729987279 [05:58:22]quantity*price = 50041 [05:58:22]sum+1 = 50042 [05:58:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 11 26.10.2024 05:58 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201249 ФПД: 14064950967677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T055825&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201249&fm=14064950967677&tin=02508201610067®Number=0000000000091777&sum=50000 [05:58:24]StoreToDocumentArchive [05:58:24]shift 543 fd 201249 [05:58:24]save to /storage/0543/doc_00201249 [05:58:24]save last doc name /storage/0543/doc_00201249 to /storage/kkm_last_doc_name [05:58:24]save OK [05:58:24]Clear old archive folders... [05:58:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:58:24]tlvbuf is 01732DE0 [05:58:24]SAM_PROTO_ClearQueue [05:58:24]wFMCommunicate request_size=4 [05:58:24]MH_SAM_APDU [05:58:24]CAPDU: 80 09 00 00 [05:58:24]Write to MH i2c: E2 08 00 71 0E 80 09 00 00 00 00 00 00 F1 [05:58:24]Write i2c OK [05:58:24]MH_I2C_Read... [05:58:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:58:24]Read from MH i2c: E2 [05:58:24]MH_I2C_Read... [05:58:24]Read from MH i2c: E2 03 00 [05:58:24]MH_I2C_Read... [05:58:24]Read from MH i2c: E2 03 00 71 0E 00 90 00 F3 [05:58:24]RAPDU: 90 00 [05:58:24]wFMCommunicate OK [05:58:24]SAM_PROTO_ClearQueue done [05:58:24]KKMCreateOFDPacket [05:58:24]OFDProtocolAddRootSTLVToBuf [05:58:24]FM_MakeSignedData [05:58:24]FM_MakeSignedData [05:58:24]SAM_PROTO_SignData [05:58:24]wFMCommunicate request_size=4 [05:58:24]MH_SAM_APDU [05:58:24]CAPDU: 80 0D 01 02 [05:58:24]Write to MH i2c: E2 08 00 72 0E 80 0D 01 02 00 00 00 00 F9 [05:58:24]Write i2c OK [05:58:24]MH_I2C_Read... [05:58:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:58:24]Read from MH i2c: E2 [05:58:24]MH_I2C_Read... [05:58:24]Read from MH i2c: E2 03 00 [05:58:24]MH_I2C_Read... [05:58:24]Read from MH i2c: E2 03 00 72 0E 00 90 00 F4 [05:58:24]RAPDU: 90 00 [05:58:24]wFMCommunicate OK [05:58:24]wFMCommunicate request_size=255 [05:58:24]MH_SAM_APDU [05:58:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0B 00 00 00 F4 03 04 00 01 85 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 21 12 03 00 35 04 06 00 0C [05:58:24]Write to MH i2c: E2 02 01 73 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 32 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 0B 00 00 00 F4 03 04 00 01 85 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 21 12 03 00 35 04 06 00 0C 00 00 04 [05:58:24]Write i2c OK [05:58:24]MH_I2C_Read... [05:58:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:58:24]Read from MH i2c: E2 [05:58:24]MH_I2C_Read... [05:58:24]Read from MH i2c: E2 03 00 [05:58:24]MH_I2C_Read... [05:58:24]Read from MH i2c: E2 03 00 73 0E 00 90 00 F5 [05:58:24]RAPDU: 90 00 [05:58:24]wFMCommunicate OK [05:58:24]wFMCommunicate request_size=10 [05:58:24]MH_SAM_APDU [05:58:24]CAPDU: 80 0D 02 02 05 CA C0 67 FD 7D [05:58:24]Write to MH i2c: E2 0D 00 74 0E 80 0D 02 02 05 00 CA C0 67 FD 7D 00 00 71 [05:58:24]Write i2c OK [05:58:24]MH_I2C_Read... [05:58:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:58:24]Read from MH i2c: E2 [05:58:24]MH_I2C_Read... [05:58:24]Read from MH i2c: E2 03 00 [05:58:24]MH_I2C_Read... [05:58:24]Read from MH i2c: E2 03 00 74 0E 00 90 00 F6 [05:58:24]RAPDU: 90 00 [05:58:24]wFMCommunicate OK [05:58:24]wFMCommunicate request_size=4 [05:58:24]MH_SAM_APDU [05:58:24]CAPDU: 80 0D 03 02 [05:58:24]Write to MH i2c: E2 08 00 75 0E 80 0D 03 02 00 00 00 00 FE [05:58:24]Write i2c OK [05:58:24]MH_I2C_Read... [05:58:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:58:24]Read from MH i2c: E2 [05:58:24]MH_I2C_Read... [05:58:24]Read from MH i2c: E2 0B 00 [05:58:24]MH_I2C_Read... [05:58:24]Read from MH i2c: E2 0B 00 75 0E 00 AB 61 5B 31 8E 37 1D 94 90 00 0D [05:58:24]RAPDU: AB 61 5B 31 8E 37 1D 94 90 00 [05:58:24]wFMCommunicate OK [05:58:24]SAM_PROTO_SignData done [05:58:24]FM_MakeSignedData done [05:58:24]CreateOFDProtocolMessage [05:58:24]wFMCommunicate request_size=4 [05:58:24]MH_SAM_APDU [05:58:24]CAPDU: 80 11 00 00 [05:58:24]Write to MH i2c: E2 08 00 76 0E 80 11 00 00 00 00 00 00 FE [05:58:24]Write i2c OK [05:58:24]MH_I2C_Read... [05:58:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:58:24]Read from MH i2c: E2 [05:58:24]MH_I2C_Read... [05:58:24]Read from MH i2c: E2 17 00 [05:58:24]MH_I2C_Read... [05:58:24]Read from MH i2c: E2 17 00 76 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 53 [05:58:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [05:58:24]wFMCommunicate OK [05:58:24]CreateOFDProtocolMessage done [05:58:24]OFDSenderStorePacket 201249 [05:58:24]StoreOFDPacket docnum=201249 [05:58:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 84 71 07 01 D4 29 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 32 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 0B 00 00 00 F4 03 04 00 01 85 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 21 12 03 00 35 04 06 00 0C CA C0 67 FD 7D AB 61 5B 31 8E 37 1D 94 [05:58:24]CheckFolder [05:58:24]dirname=/storage/ofd_packets [05:58:24]CheckFolder done [05:58:24]ProducePacketName [05:58:24]name=ofd_packets/00201249 [05:58:24]NVStorageSaveData ofd_packets/00201249 [05:58:24]File name is /storage/ofd_packets/00201249 [05:58:24]Write 301 bytes [05:58:24]NVStorageSaveData done [05:58:24]OFDSenderStorePacket done [05:58:24]KKMCreateOFDPacket done [05:58:24]NVStorageSaveData kkm_last_timestamp [05:58:24]File name is /storage/kkm_last_timestamp [05:58:24]Write 4 bytes [05:58:24]NVStorageSaveData done [05:58:24]ExternCall_PrintAddStr [05:58:24]wPrintStart [05:58:24]Write to MH i2c: 01 00 00 77 0E 85 [05:58:24]Write i2c OK [05:58:24]MH_I2C_Read... [05:58:24]Read from MH i2c: 01 [05:58:24]MH_I2C_Read... [05:58:24]Read from MH i2c: 01 07 00 [05:58:24]MH_I2C_Read... [05:58:24]Read from MH i2c: 01 07 00 77 0E 00 00 00 00 00 FF 0F 9A [05:58:24]RasterBufferAndPrint [05:58:24]line Счет N : (1)448994 [05:58:24]line ИНН: 02508201610067 [05:58:24]line Контрольно-Кассовый Чек [05:58:24]line ПРОДАЖА [05:58:24]line ТРК (МРК, ГНК) : 41 [05:58:24]line Товар: 2710124130 [05:58:24]line Аи-92-К-2 [05:58:24]line 7.480 * 66.90 [05:58:24]line = 500.41 [05:58:24]line НДС 12% НСП 1% [05:58:24]line > о реализуемом товаре [05:58:24]line ОКРУГЛЕНИЕ: -0.41 [05:58:24]line ИТОГО: 500.00 [05:58:24]line Внесено: 500.00 [05:58:24]line СДАЧА: 0.00 [05:58:24]line НСП 1% : 4.43 [05:58:24]line НДС 12% : 53.14 [05:58:24]line Наличными: 500.00 [05:58:24]line Безнал.: 0.00 [05:58:24]line Место: АЗС № 171 "Партнер Нефть" [05:58:24]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [05:58:24]line СНО: Общий режим [05:58:24]line Чек 11 26.10.2024 05:58 [05:58:24]line Смена: 543 ФФД: 1.0 [05:58:24]line ЗНМ: 0300000109 [05:58:24]line РНМ: 0000000000091777 [05:58:24]line Версия ККМ: 001 [05:58:24]line ФМ: 0000000000871756 [05:58:24]line ФД: 201249 [05:58:24]line ФПД: 14064950967677 [05:58:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T055825&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201249&fm=14064950967677&tin=02508201610067®Number=0000000000091777&sum=50000 [05:58:24]OFD Sender: Processing packet 201249 [packets to send 112, broken 111] [05:58:24]ProducePacketName [05:58:24]name=ofd_packets/00201249 [05:58:24]OFD Sender: To server: pG, [05:58:24]CommunicateWithHost lk.salyk.kg:30040 [05:58:24]ConnectInit lk.salyk.kg [05:58:24]written 0, free lines is 4095 [05:58:25]Connected sock=10 [05:58:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 84 71 07 01 D4 29 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 32 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 0B 00 00 00 F4 03 04 00 01 85 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 21 12 03 00 35 04 06 00 0C CA C0 67 FD 7D AB 61 5B 31 8E 37 1D 94 [05:58:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 35 7B 47 00 59 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 38 37 31 37 35 36 10 04 04 00 21 12 03 00 F4 03 04 00 AB 30 1C 67 B6 04 01 00 00 1E AF 77 44 EB 3A F3 9D [05:58:25]CommunicateWithHost err = 0 [05:58:25]CheckOFDResponse [05:58:25]1017 (14) - 77093643461234 [05:58:25]1041 (16) - 0000000000871756 [05:58:25]1040 (4) - 201249 [05:58:25]1012 (4) - 25.10.2024 23:58 [05:58:25]1206 (1) - 0 [05:58:25]OFD Sender: Remove packet 201249 [05:58:25]ProducePacketName [05:58:25]name=ofd_packets/00201249 [05:58:25]NVStorageDeleteData [05:58:25]Write to MH i2c: 01 00 00 A2 0E B0 [05:58:25]Write i2c OK [05:58:25]MH_I2C_Read... [05:58:25]Read from MH i2c: 01 [05:58:25]MH_I2C_Read... [05:58:25]Read from MH i2c: 01 07 00 [05:58:25]MH_I2C_Read... [05:58:25]Read from MH i2c: 01 07 00 A2 0E 00 00 00 00 00 91 0C 54 [05:58:25]RasterBufferAndPrint [05:58:25]line [05:58:25]line [05:58:25]line [05:58:25]line [05:58:25]line [05:58:25]written 0, free lines is 3222 [05:58:25]MH_Cut [05:58:25]Write to MH i2c: D1 01 00 A9 0E 01 89 [05:58:25]Write i2c OK [05:58:25]MH_I2C_Read... [05:58:25]Read from MH i2c: D1 [05:58:25]MH_I2C_Read... [05:58:25]Read from MH i2c: D1 01 00 [05:58:25]MH_I2C_Read... [05:58:25]Read from MH i2c: D1 01 00 A9 0E 00 88 [05:58:25]Write to MH i2c: 01 00 00 AA 0E B8 [05:58:25]Write i2c OK [05:58:25]MH_I2C_Read... [05:58:25]OFD Sender: No OFD packet to send [05:58:26]*** Cut start [05:58:26]*** Purtial cut [05:58:26]*** Stage 1: CUTSNS_PIN = 1 [05:58:26]Read from MH i2c: 01 [05:58:26]MH_I2C_Read... [05:58:26]*** Stop cut motor [05:58:26]*** Cut end [05:58:26]Read from MH i2c: 01 07 00 [05:58:26]MH_I2C_Read... [05:58:26]Read from MH i2c: 01 07 00 AA 0E 00 00 00 00 00 FF 0F CD [05:58:26]process_action close_receipt done [05:58:26]requested_data is exist [05:58:26]produce_requested_data [05:58:26]requested_item fm.sn is exist - process it [05:58:26]wFMCommunicate request_size=4 [05:58:26]MH_SAM_APDU [05:58:26]CAPDU: 80 11 00 00 [05:58:26]Write to MH i2c: E2 08 00 AB 0E 80 11 00 00 00 00 00 00 33 [05:58:26]Write i2c OK [05:58:26]MH_I2C_Read... [05:58:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:58:26]Read from MH i2c: E2 [05:58:26]MH_I2C_Read... [05:58:26]Read from MH i2c: E2 17 00 [05:58:26]MH_I2C_Read... [05:58:26]Read from MH i2c: E2 17 00 AB 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 88 [05:58:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [05:58:26]wFMCommunicate OK [05:58:26]requested_item fd.num is exist - process it [05:58:26]SAM_PROTO_GetFieldsCounters [05:58:26]wFMCommunicate request_size=4 [05:58:26]MH_SAM_APDU [05:58:26]CAPDU: 80 13 00 00 [05:58:26]Write to MH i2c: E2 08 00 AC 0E 80 13 00 00 00 00 00 00 36 [05:58:26]Write i2c OK [05:58:26]MH_I2C_Read... [05:58:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:58:26]Read from MH i2c: E2 [05:58:26]MH_I2C_Read... [05:58:26]Read from MH i2c: E2 62 00 [05:58:26]MH_I2C_Read... [05:58:26]Read from MH i2c: E2 62 00 AC 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 21 12 03 00 0E 04 04 00 1F 02 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 D7 [05:58:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 21 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:58:26]wFMCommunicate OK [05:58:26]SAM_PROTO_GetFieldsCounters done [05:58:26]requested_item shift.num is exist - process it [05:58:26]requested_item shift.opened is exist - process it [05:58:26]req_shift_opened [05:58:26]FM_GetShiftState [05:58:26]SAM_PROTO_GetShiftState [05:58:26]wFMCommunicate request_size=4 [05:58:26]MH_SAM_APDU [05:58:26]CAPDU: 80 13 01 00 [05:58:26]Write to MH i2c: E2 08 00 AD 0E 80 13 01 00 00 00 00 00 38 [05:58:26]Write i2c OK [05:58:26]MH_I2C_Read... [05:58:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:58:26]Read from MH i2c: E2 [05:58:26]MH_I2C_Read... [05:58:26]Read from MH i2c: E2 0E 00 [05:58:26]MH_I2C_Read... [05:58:26]Read from MH i2c: E2 0E 00 AD 0E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 47 [05:58:26]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [05:58:26]wFMCommunicate OK [05:58:26]SAM_PROTO_GetShiftState done [05:58:26]FM_GetShiftState done [05:58:26]req_shift_opened done [05:58:26]requested_item shift.open_date is exist - process it [05:58:26]req_shift_open_date [05:58:26]req_shift_open_date done [05:58:26]produce_requested_data done [05:58:26]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201249,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [05:58:26]process_action_free close_receipt [05:58:26]json_value_free [05:58:26]json_value_free done [05:58:26]process_json_proto returns [05:58:26]Send response to host [05:58:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201249,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [05:58:26]free response buf [05:58:26]execute_script done [05:58:26]execute_script returns [05:58:26]free content buf [05:58:26]Sock 9.Close socket [05:58:26]Sock 9.Thread stoped [05:58:30]OFD Sender: No OFD packet to send [05:58:35]OFD Sender: No OFD packet to send [05:58:40]OFD Sender: No OFD packet to send [05:58:45]OFD Sender: No OFD packet to send [05:58:50]OFD Sender: No OFD packet to send [05:58:55]OFD Sender: No OFD packet to send [05:59:00]OFD Sender: No OFD packet to send [05:59:05]OFD Sender: No OFD packet to send [05:59:10]OFD Sender: No OFD packet to send [05:59:15]OFD Sender: No OFD packet to send [05:59:20]OFD Sender: No OFD packet to send [05:59:25]OFD Sender: No OFD packet to send [05:59:30]OFD Sender: No OFD packet to send [05:59:35]OFD Sender: No OFD packet to send [05:59:40]OFD Sender: No OFD packet to send [05:59:45]OFD Sender: No OFD packet to send [05:59:50]OFD Sender: No OFD packet to send [05:59:55]OFD Sender: No OFD packet to send [06:00:00]OFD Sender: No OFD packet to send [06:00:05]OFD Sender: No OFD packet to send [06:00:10]OFD Sender: No OFD packet to send [06:00:15]OFD Sender: No OFD packet to send [06:00:20]OFD Sender: No OFD packet to send [06:00:25]OFD Sender: No OFD packet to send [06:00:30]OFD Sender: No OFD packet to send [06:00:35]OFD Sender: No OFD packet to send [06:00:40]OFD Sender: No OFD packet to send [06:00:45]OFD Sender: No OFD packet to send [06:00:50]OFD Sender: No OFD packet to send [06:00:55]OFD Sender: No OFD packet to send [06:01:00]OFD Sender: No OFD packet to send [06:01:05]OFD Sender: No OFD packet to send [06:01:10]OFD Sender: No OFD packet to send [06:01:15]OFD Sender: No OFD packet to send [06:01:20]OFD Sender: No OFD packet to send [06:01:26]OFD Sender: No OFD packet to send [06:01:31]OFD Sender: No OFD packet to send [06:01:36]OFD Sender: No OFD packet to send [06:01:41]OFD Sender: No OFD packet to send [06:01:46]OFD Sender: No OFD packet to send [06:01:51]OFD Sender: No OFD packet to send [06:01:56]OFD Sender: No OFD packet to send [06:02:01]OFD Sender: No OFD packet to send [06:02:06]OFD Sender: No OFD packet to send [06:02:11]OFD Sender: No OFD packet to send [06:02:16]OFD Sender: No OFD packet to send [06:02:21]OFD Sender: No OFD packet to send [06:02:26]OFD Sender: No OFD packet to send [06:02:31]OFD Sender: No OFD packet to send [06:02:36]OFD Sender: No OFD packet to send [06:02:41]OFD Sender: No OFD packet to send [06:02:46]OFD Sender: No OFD packet to send [06:02:51]OFD Sender: No OFD packet to send [06:02:56]OFD Sender: No OFD packet to send [06:03:01]OFD Sender: No OFD packet to send [06:03:06]OFD Sender: No OFD packet to send [06:03:11]OFD Sender: No OFD packet to send [06:03:16]OFD Sender: No OFD packet to send [06:03:21]OFD Sender: No OFD packet to send [06:03:26]OFD Sender: No OFD packet to send [06:03:31]OFD Sender: No OFD packet to send [06:03:36]OFD Sender: No OFD packet to send [06:03:41]OFD Sender: No OFD packet to send [06:03:46]OFD Sender: No OFD packet to send [06:03:51]OFD Sender: No OFD packet to send [06:03:56]OFD Sender: No OFD packet to send [06:04:01]OFD Sender: No OFD packet to send [06:04:06]OFD Sender: No OFD packet to send [06:04:11]OFD Sender: No OFD packet to send [06:04:16]OFD Sender: No OFD packet to send [06:04:21]OFD Sender: No OFD packet to send [06:04:26]OFD Sender: No OFD packet to send [06:04:31]OFD Sender: No OFD packet to send [06:04:36]OFD Sender: No OFD packet to send [06:04:41]OFD Sender: No OFD packet to send [06:04:46]OFD Sender: No OFD packet to send [06:04:51]OFD Sender: No OFD packet to send [06:04:56]OFD Sender: No OFD packet to send [06:05:01]OFD Sender: No OFD packet to send [06:05:06]OFD Sender: No OFD packet to send [06:05:11]OFD Sender: No OFD packet to send [06:05:16]OFD Sender: No OFD packet to send [06:05:21]OFD Sender: No OFD packet to send [06:05:26]OFD Sender: No OFD packet to send [06:05:31]OFD Sender: No OFD packet to send [06:05:36]OFD Sender: No OFD packet to send [06:05:41]OFD Sender: No OFD packet to send [06:05:46]OFD Sender: No OFD packet to send [06:05:51]OFD Sender: No OFD packet to send [06:05:56]OFD Sender: No OFD packet to send [06:06:01]OFD Sender: No OFD packet to send [06:06:06]OFD Sender: No OFD packet to send [06:06:11]OFD Sender: No OFD packet to send [06:06:16]OFD Sender: No OFD packet to send [06:06:21]OFD Sender: No OFD packet to send [06:06:26]OFD Sender: No OFD packet to send [06:06:31]OFD Sender: No OFD packet to send [06:06:36]OFD Sender: No OFD packet to send [06:06:41]OFD Sender: No OFD packet to send [06:06:46]OFD Sender: No OFD packet to send [06:06:51]OFD Sender: No OFD packet to send [06:06:56]OFD Sender: No OFD packet to send [06:07:01]OFD Sender: No OFD packet to send [06:07:02]accept exits with 7 [06:07:02]New connection [06:07:02]New thread 3067415908 created [06:07:02]Thread 3067559268 joined [06:07:02]Waiting for new connection... [06:07:02] Sock 7.Parse request [06:07:02]Sock 7.Check first char [06:07:02]Sock 7.First char is OK [06:07:02]request: POST /json_proto HTTP/1.0 [06:07:02]Method: POST [06:07:02]URL: /json_proto [06:07:02]Method is POST - this is cgi request [06:07:02]url: /json_proto [06:07:02]query_string will be loaded in cgi processing [06:07:02]execute_cgi json_proto POST (null) [06:07:02]execute_cgi path=json_proto method=POST [06:07:02]POST find Content-Length [06:07:02]Host: 172.17.63.195:8080 [06:07:02]Content-Length: 682 [06:07:02]Content-Type: application/json [06:07:02] [06:07:02]POST finish read [06:07:02]Found Content-Length = 682 [06:07:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)448995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 17.470, "sum" : 1296.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1296.00, "payments": [ { "type": 0, "sum" : 1296.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:07:02]execute_script... [06:07: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)448995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 17.470, "sum" : 1296.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1296.00, "payments": [ { "type": 0, "sum" : 1296.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:07:02]POST & json_proto [06:07:02]process_json_proto [06:07:02]json parsed OK: [06:07:02]protocol is kg_v1.0 [06:07:02]action value=close_receipt [06:07:02]process_action close_receipt [06:07:02]cmd_close_receipt [06:07:02]MH_GetDate [06:07:02]Write to MH i2c: F0 00 00 AE 0E AB [06:07:02]Write i2c OK [06:07:02]MH_I2C_Read... [06:07:02]Read from MH i2c: F0 [06:07:02]MH_I2C_Read... [06:07:02]Read from MH i2c: F0 09 00 [06:07:02]MH_I2C_Read... [06:07:02]Read from MH i2c: F0 09 00 AE 0E 00 09 87 1C 67 68 46 19 67 F5 [06:07:02]GetLastDocTimeStamp 1729922305 [06:07:02]current date 1729922825 [06:07:02]FM_GetShiftState [06:07:02]SAM_PROTO_GetShiftState [06:07:02]wFMCommunicate request_size=4 [06:07:02]MH_SAM_APDU [06:07:02]CAPDU: 80 13 01 00 [06:07:02]Write to MH i2c: E2 08 00 AF 0E 80 13 01 00 00 00 00 00 3A [06:07:02]Write i2c OK [06:07:02]MH_I2C_Read... [06:07:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:07:02]Read from MH i2c: E2 [06:07:02]MH_I2C_Read... [06:07:02]Read from MH i2c: E2 0E 00 [06:07:02]MH_I2C_Read... [06:07:02]Read from MH i2c: E2 0E 00 AF 0E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 49 [06:07:02]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [06:07:02]wFMCommunicate OK [06:07:02]SAM_PROTO_GetShiftState done [06:07:02]FM_GetShiftState done [06:07:02]opened in 1729900879 [06:07:02]opened+sec_in_day 1729987279 [06:07:02]quantity*price = 129627 [06:07:02]sum+1 = 129628 [06:07:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1296.00 Внесено: 1500.00 СДАЧА: 204.00 НСП 1% : 11.47 НДС 12% : 137.66 Наличными: 1296.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 12 26.10.2024 06:07 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201250 ФПД: 215129746846552 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T060705&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201250&fm=215129746846552&tin=02508201610067®Number=0000000000091777&sum=129600 [06:07:03]StoreToDocumentArchive [06:07:03]shift 543 fd 201250 [06:07:03]save to /storage/0543/doc_00201250 [06:07:04]save last doc name /storage/0543/doc_00201250 to /storage/kkm_last_doc_name [06:07:04]save OK [06:07:04]Clear old archive folders... [06:07:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:07:04]tlvbuf is 0170D3A0 [06:07:04]SAM_PROTO_ClearQueue [06:07:04]wFMCommunicate request_size=4 [06:07:04]MH_SAM_APDU [06:07:04]CAPDU: 80 09 00 00 [06:07:04]Write to MH i2c: E2 08 00 BC 0E 80 09 00 00 00 00 00 00 3C [06:07:04]Write i2c OK [06:07:04]MH_I2C_Read... [06:07:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:07:04]Read from MH i2c: E2 [06:07:04]MH_I2C_Read... [06:07:04]Read from MH i2c: E2 03 00 [06:07:04]MH_I2C_Read... [06:07:04]Read from MH i2c: E2 03 00 BC 0E 00 90 00 3E [06:07:04]RAPDU: 90 00 [06:07:04]wFMCommunicate OK [06:07:04]SAM_PROTO_ClearQueue done [06:07:04]KKMCreateOFDPacket [06:07:04]OFDProtocolAddRootSTLVToBuf [06:07:04]FM_MakeSignedData [06:07:04]FM_MakeSignedData [06:07:04]SAM_PROTO_SignData [06:07:04]wFMCommunicate request_size=4 [06:07:04]MH_SAM_APDU [06:07:04]CAPDU: 80 0D 01 02 [06:07:04]Write to MH i2c: E2 08 00 BD 0E 80 0D 01 02 00 00 00 00 44 [06:07:04]Write i2c OK [06:07:04]MH_I2C_Read... [06:07:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:07:04]Read from MH i2c: E2 [06:07:04]MH_I2C_Read... [06:07:04]Read from MH i2c: E2 03 00 [06:07:04]MH_I2C_Read... [06:07:04]Read from MH i2c: E2 03 00 BD 0E 00 90 00 3F [06:07:04]RAPDU: 90 00 [06:07:04]wFMCommunicate OK [06:07:04]wFMCommunicate request_size=255 [06:07:04]MH_SAM_APDU [06:07: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 3E 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B FA 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 FA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 35 00 00 00 00 07 04 06 00 40 FA 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 09 87 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 22 12 03 00 35 04 06 00 C3 [06:07:04]Write to MH i2c: E2 02 01 BE 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 3E 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B FA 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 FA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 35 00 00 00 00 07 04 06 00 40 FA 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 09 87 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 22 12 03 00 35 04 06 00 C3 00 00 72 [06:07:04]Write i2c OK [06:07:04]MH_I2C_Read... [06:07:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:07:04]Read from MH i2c: E2 [06:07:04]MH_I2C_Read... [06:07:04]Read from MH i2c: E2 03 00 [06:07:04]MH_I2C_Read... [06:07:04]Read from MH i2c: E2 03 00 BE 0E 00 90 00 40 [06:07:04]RAPDU: 90 00 [06:07:04]wFMCommunicate OK [06:07:04]wFMCommunicate request_size=10 [06:07:04]MH_SAM_APDU [06:07:04]CAPDU: 80 0D 02 02 05 A8 CC 24 33 58 [06:07:04]Write to MH i2c: E2 0D 00 BF 0E 80 0D 02 02 05 00 A8 CC 24 33 58 00 00 74 [06:07:04]Write i2c OK [06:07:04]MH_I2C_Read... [06:07:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:07:04]Read from MH i2c: E2 [06:07:04]MH_I2C_Read... [06:07:04]Read from MH i2c: E2 03 00 [06:07:04]MH_I2C_Read... [06:07:04]Read from MH i2c: E2 03 00 BF 0E 00 90 00 41 [06:07:04]RAPDU: 90 00 [06:07:04]wFMCommunicate OK [06:07:04]wFMCommunicate request_size=4 [06:07:04]MH_SAM_APDU [06:07:04]CAPDU: 80 0D 03 02 [06:07:04]Write to MH i2c: E2 08 00 C0 0E 80 0D 03 02 00 00 00 00 49 [06:07:04]Write i2c OK [06:07:04]MH_I2C_Read... [06:07:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:07:04]Read from MH i2c: E2 [06:07:04]MH_I2C_Read... [06:07:04]Read from MH i2c: E2 0B 00 [06:07:04]MH_I2C_Read... [06:07:04]Read from MH i2c: E2 0B 00 C0 0E 00 B4 92 C6 16 D5 34 0A 22 90 00 A1 [06:07:04]RAPDU: B4 92 C6 16 D5 34 0A 22 90 00 [06:07:04]wFMCommunicate OK [06:07:04]SAM_PROTO_SignData done [06:07:04]FM_MakeSignedData done [06:07:04]CreateOFDProtocolMessage [06:07:04]wFMCommunicate request_size=4 [06:07:04]MH_SAM_APDU [06:07:04]CAPDU: 80 11 00 00 [06:07:04]Write to MH i2c: E2 08 00 C1 0E 80 11 00 00 00 00 00 00 49 [06:07:04]Write i2c OK [06:07:04]MH_I2C_Read... [06:07:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:07:04]Read from MH i2c: E2 [06:07:04]MH_I2C_Read... [06:07:04]Read from MH i2c: E2 17 00 [06:07:04]MH_I2C_Read... [06:07:04]Read from MH i2c: E2 17 00 C1 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9E [06:07:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:07:04]wFMCommunicate OK [06:07:04]CreateOFDProtocolMessage done [06:07:04]OFDSenderStorePacket 201250 [06:07:04]StoreOFDPacket docnum=201250 [06:07:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A6 60 07 01 38 33 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 33 FF 03 08 00 03 3E 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B FA 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 FA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 35 00 00 00 00 07 04 06 00 40 FA 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 09 87 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 22 12 03 00 35 04 06 00 C3 A8 CC 24 33 58 B4 92 C6 16 D5 34 0A 22 [06:07:04]CheckFolder [06:07:04]dirname=/storage/ofd_packets [06:07:04]CheckFolder done [06:07:04]ProducePacketName [06:07:04]name=ofd_packets/00201250 [06:07:04]NVStorageSaveData ofd_packets/00201250 [06:07:04]File name is /storage/ofd_packets/00201250 [06:07:04]Write 301 bytes [06:07:04]NVStorageSaveData done [06:07:04]OFDSenderStorePacket done [06:07:04]KKMCreateOFDPacket done [06:07:04]NVStorageSaveData kkm_last_timestamp [06:07:04]File name is /storage/kkm_last_timestamp [06:07:04]Write 4 bytes [06:07:04]NVStorageSaveData done [06:07:04]ExternCall_PrintAddStr [06:07:04]wPrintStart [06:07:04]Write to MH i2c: 01 00 00 C2 0E D0 [06:07:04]Write i2c OK [06:07:04]MH_I2C_Read... [06:07:04]Read from MH i2c: 01 [06:07:04]MH_I2C_Read... [06:07:04]Read from MH i2c: 01 07 00 [06:07:04]MH_I2C_Read... [06:07:04]Read from MH i2c: 01 07 00 C2 0E 00 00 00 00 00 FF 0F E5 [06:07:04]RasterBufferAndPrint [06:07:04]line Счет N : (1)448995 [06:07:04]line ИНН: 02508201610067 [06:07:04]line Контрольно-Кассовый Чек [06:07:04]line ПРОДАЖА [06:07:04]line ТРК (МРК, ГНК) : 51 [06:07:04]line Товар: 2710124500 [06:07:04]line Аи-95-К-3 [06:07:04]line 17.470 * 74.20 [06:07:04]line = 1296.27 [06:07:04]line НДС 12% НСП 1% [06:07:04]line > о реализуемом товаре [06:07:04]line ОКРУГЛЕНИЕ: -0.27 [06:07:04]line ИТОГО: 1296.00 [06:07:04]line Внесено: 1500.00 [06:07:04]line СДАЧА: 204.00 [06:07:04]line НСП 1% : 11.47 [06:07:04]line НДС 12% : 137.66 [06:07:04]line Наличными: 1296.00 [06:07:04]line Безнал.: 0.00 [06:07:04]line Место: АЗС № 171 "Партнер Нефть" [06:07:04]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [06:07:04]line СНО: Общий режим [06:07:04]line Чек 12 26.10.2024 06:07 [06:07:04]line Смена: 543 ФФД: 1.0 [06:07:04]line ЗНМ: 0300000109 [06:07:04]line РНМ: 0000000000091777 [06:07:04]line Версия ККМ: 001 [06:07:04]line ФМ: 0000000000871756 [06:07:04]line ФД: 201250 [06:07:04]line ФПД: 215129746846552 [06:07:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T060705&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201250&fm=215129746846552&tin=02508201610067®Number=0000000000091777&sum=129600 [06:07:04]written 0, free lines is 4095 [06:07:04]OFD Sender: Processing packet 201250 [packets to send 112, broken 111] [06:07:04]ProducePacketName [06:07:04]name=ofd_packets/00201250 [06:07:04]OFD Sender: To server: pG, [06:07:04]CommunicateWithHost lk.salyk.kg:30040 [06:07:04]ConnectInit lk.salyk.kg [06:07:04]Connected sock=10 [06:07:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A6 60 07 01 38 33 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 33 FF 03 08 00 03 3E 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B FA 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 FA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 35 00 00 00 00 07 04 06 00 40 FA 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 09 87 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 22 12 03 00 35 04 06 00 C3 A8 CC 24 33 58 B4 92 C6 16 D5 34 0A 22 [06:07:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 3B 37 47 00 E1 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 22 12 03 00 F4 03 04 00 B3 32 1C 67 B6 04 01 00 00 22 38 36 B2 96 D7 D1 FE [06:07:04]CommunicateWithHost err = 0 [06:07:04]CheckOFDResponse [06:07:04]1017 (14) - 77093643461234 [06:07:04]1041 (16) - 0000000000871756 [06:07:04]1040 (4) - 201250 [06:07:04]1012 (4) - 26.10.2024 00:07 [06:07:04]1206 (1) - 0 [06:07:04]OFD Sender: Remove packet 201250 [06:07:04]ProducePacketName [06:07:04]name=ofd_packets/00201250 [06:07:04]NVStorageDeleteData [06:07:05]Write to MH i2c: 01 00 00 ED 0E FB [06:07:05]Write i2c OK [06:07:05]MH_I2C_Read... [06:07:05]Read from MH i2c: 01 [06:07:05]MH_I2C_Read... [06:07:05]Read from MH i2c: 01 07 00 [06:07:05]MH_I2C_Read... [06:07:05]Read from MH i2c: 01 07 00 ED 0E 00 00 00 00 00 94 0C A2 [06:07:05]RasterBufferAndPrint [06:07:05]line [06:07:05]line [06:07:05]line [06:07:05]line [06:07:05]line [06:07:05]written 0, free lines is 3227 [06:07:05]MH_Cut [06:07:05]Write to MH i2c: D1 01 00 F4 0E 01 D4 [06:07:05]Write i2c OK [06:07:05]MH_I2C_Read... [06:07:05]Read from MH i2c: D1 [06:07:05]MH_I2C_Read... [06:07:05]Read from MH i2c: D1 01 00 [06:07:05]MH_I2C_Read... [06:07:05]Read from MH i2c: D1 01 00 F4 0E 00 D3 [06:07:05]Write to MH i2c: 01 00 00 F5 0E 03 [06:07:05]Write i2c OK [06:07:05]MH_I2C_Read... [06:07:05]OFD Sender: No OFD packet to send [06:07:05]*** Cut start [06:07:05]*** Purtial cut [06:07:05]*** Stage 1: CUTSNS_PIN = 1 [06:07:06]Read from MH i2c: 01 [06:07:06]MH_I2C_Read... [06:07:06]*** Stop cut motor [06:07:06]*** Cut end [06:07:06]Read from MH i2c: 01 07 00 [06:07:06]MH_I2C_Read... [06:07:06]Read from MH i2c: 01 07 00 F5 0E 00 00 00 00 00 FF 0F 18 [06:07:06]process_action close_receipt done [06:07:06]requested_data is exist [06:07:06]produce_requested_data [06:07:06]requested_item fm.sn is exist - process it [06:07:06]wFMCommunicate request_size=4 [06:07:06]MH_SAM_APDU [06:07:06]CAPDU: 80 11 00 00 [06:07:06]Write to MH i2c: E2 08 00 F6 0E 80 11 00 00 00 00 00 00 7E [06:07:06]Write i2c OK [06:07:06]MH_I2C_Read... [06:07:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:07:06]Read from MH i2c: E2 [06:07:06]MH_I2C_Read... [06:07:06]Read from MH i2c: E2 17 00 [06:07:06]MH_I2C_Read... [06:07:06]Read from MH i2c: E2 17 00 F6 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D3 [06:07:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:07:06]wFMCommunicate OK [06:07:06]requested_item fd.num is exist - process it [06:07:06]SAM_PROTO_GetFieldsCounters [06:07:06]wFMCommunicate request_size=4 [06:07:06]MH_SAM_APDU [06:07:06]CAPDU: 80 13 00 00 [06:07:06]Write to MH i2c: E2 08 00 F7 0E 80 13 00 00 00 00 00 00 81 [06:07:06]Write i2c OK [06:07:06]MH_I2C_Read... [06:07:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:07:06]Read from MH i2c: E2 [06:07:06]MH_I2C_Read... [06:07:06]Read from MH i2c: E2 62 00 [06:07:06]MH_I2C_Read... [06:07:06]Read from MH i2c: E2 62 00 F7 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 22 12 03 00 0E 04 04 00 1F 02 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 26 [06:07:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 22 12 03 00 0E 04 04 00 1F 02 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 [06:07:06]wFMCommunicate OK [06:07:06]SAM_PROTO_GetFieldsCounters done [06:07:06]requested_item shift.num is exist - process it [06:07:06]requested_item shift.opened is exist - process it [06:07:06]req_shift_opened [06:07:06]FM_GetShiftState [06:07:06]SAM_PROTO_GetShiftState [06:07:06]wFMCommunicate request_size=4 [06:07:06]MH_SAM_APDU [06:07:06]CAPDU: 80 13 01 00 [06:07:06]Write to MH i2c: E2 08 00 F8 0E 80 13 01 00 00 00 00 00 83 [06:07:06]Write i2c OK [06:07:06]MH_I2C_Read... [06:07:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:07:06]Read from MH i2c: E2 [06:07:06]MH_I2C_Read... [06:07:06]Read from MH i2c: E2 0E 00 [06:07:06]MH_I2C_Read... [06:07:06]Read from MH i2c: E2 0E 00 F8 0E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 92 [06:07:06]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [06:07:06]wFMCommunicate OK [06:07:06]SAM_PROTO_GetShiftState done [06:07:06]FM_GetShiftState done [06:07:06]req_shift_opened done [06:07:06]requested_item shift.open_date is exist - process it [06:07:06]req_shift_open_date [06:07:06]req_shift_open_date done [06:07:06]produce_requested_data done [06:07:06]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201250,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [06:07:06]process_action_free close_receipt [06:07:06]json_value_free [06:07:06]json_value_free done [06:07:06]process_json_proto returns [06:07:06]Send response to host [06:07:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201250,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [06:07:06]free response buf [06:07:06]execute_script done [06:07:06]execute_script returns [06:07:06]free content buf [06:07:06]Sock 7.Close socket [06:07:06]Sock 7.Thread stoped [06:07:10]OFD Sender: No OFD packet to send [06:07:15]OFD Sender: No OFD packet to send [06:07:20]OFD Sender: No OFD packet to send [06:07:25]OFD Sender: No OFD packet to send [06:07:30]OFD Sender: No OFD packet to send [06:07:35]OFD Sender: No OFD packet to send [06:07:40]OFD Sender: No OFD packet to send [06:07:45]OFD Sender: No OFD packet to send [06:07:50]OFD Sender: No OFD packet to send [06:07:55]OFD Sender: No OFD packet to send [06:08:00]OFD Sender: No OFD packet to send [06:08:05]OFD Sender: No OFD packet to send [06:08:10]OFD Sender: No OFD packet to send [06:08:15]OFD Sender: No OFD packet to send [06:08:20]OFD Sender: No OFD packet to send [06:08:25]OFD Sender: No OFD packet to send [06:08:30]OFD Sender: No OFD packet to send [06:08:35]OFD Sender: No OFD packet to send [06:08:40]OFD Sender: No OFD packet to send [06:08:45]OFD Sender: No OFD packet to send [06:08:50]OFD Sender: No OFD packet to send [06:08:55]OFD Sender: No OFD packet to send [06:09:00]OFD Sender: No OFD packet to send [06:09:05]OFD Sender: No OFD packet to send [06:09:10]OFD Sender: No OFD packet to send [06:09:15]OFD Sender: No OFD packet to send [06:09:20]OFD Sender: No OFD packet to send [06:09:25]OFD Sender: No OFD packet to send [06:09:30]OFD Sender: No OFD packet to send [06:09:35]OFD Sender: No OFD packet to send [06:09:40]OFD Sender: No OFD packet to send [06:09:45]OFD Sender: No OFD packet to send [06:09:50]OFD Sender: No OFD packet to send [06:09:55]OFD Sender: No OFD packet to send [06:10:00]OFD Sender: No OFD packet to send [06:10:05]OFD Sender: No OFD packet to send [06:10:10]OFD Sender: No OFD packet to send [06:10:15]OFD Sender: No OFD packet to send [06:10:20]OFD Sender: No OFD packet to send [06:10:25]OFD Sender: No OFD packet to send [06:10:30]OFD Sender: No OFD packet to send [06:10:35]OFD Sender: No OFD packet to send [06:10:40]int [06:10:40]Write to MH i2c: 01 00 00 F9 0E 07 [06:10:40]*** FLAG_PRN_KEY set [06:10:40]Write i2c OK [06:10:40]MH_I2C_Read... [06:10:40]Read from MH i2c: 01 [06:10:40]MH_I2C_Read... [06:10:40]Read from MH i2c: 01 07 00 [06:10:40]MH_I2C_Read... [06:10:40]Read from MH i2c: 01 07 00 F9 0E 00 08 00 00 00 FF 0F 24 [06:10:40]state=0 [06:10:40]Key pressed [06:10:40]Feed [06:10:40]Write to MH i2c: D8 00 00 FA 0E DF [06:10:40]Write i2c OK [06:10:40]MH_I2C_Read... [06:10:40]Read from MH i2c: D8 [06:10:40]MH_I2C_Read... [06:10:40]Read from MH i2c: D8 01 00 [06:10:40]MH_I2C_Read... [06:10:40]Read from MH i2c: D8 01 00 FA 0E 00 E0 [06:10:40]int [06:10:40]Write to MH i2c: 01 00 00 FB 0E 09 [06:10:40]Write i2c OK [06:10:40]MH_I2C_Read... [06:10:40]Read from MH i2c: 01 [06:10:40]MH_I2C_Read... [06:10:40]Read from MH i2c: 01 07 00 [06:10:40]MH_I2C_Read... [06:10:40]Read from MH i2c: 01 07 00 FB 0E 00 48 00 00 00 3C 00 94 [06:10:40]state=2 [06:10:40]Key pressed [06:10:40]OFD Sender: No OFD packet to send [06:10:40]int [06:10:40]Write to MH i2c: 01 00 00 FC 0E 0A [06:10:40]*** FLAG_PRN_KEY reset [06:10:40]Write i2c OK [06:10:40]MH_I2C_Read... [06:10:40]Read from MH i2c: 01 [06:10:40]MH_I2C_Read... [06:10:40]Read from MH i2c: 01 07 00 [06:10:40]MH_I2C_Read... [06:10:40]Read from MH i2c: 01 07 00 FC 0E 00 00 00 00 00 F6 0F 16 [06:10:40]state=2 [06:10:40]Stop feed [06:10:45]OFD Sender: No OFD packet to send [06:10:50]OFD Sender: No OFD packet to send [06:10:55]OFD Sender: No OFD packet to send [06:11:00]OFD Sender: No OFD packet to send [06:11:05]OFD Sender: No OFD packet to send [06:11:10]OFD Sender: No OFD packet to send [06:11:15]OFD Sender: No OFD packet to send [06:11:20]OFD Sender: No OFD packet to send [06:11:25]OFD Sender: No OFD packet to send [06:11:30]OFD Sender: No OFD packet to send [06:11:35]OFD Sender: No OFD packet to send [06:11:40]OFD Sender: No OFD packet to send [06:11:45]OFD Sender: No OFD packet to send [06:11:50]OFD Sender: No OFD packet to send [06:11:55]OFD Sender: No OFD packet to send [06:12:00]OFD Sender: No OFD packet to send [06:12:05]OFD Sender: No OFD packet to send [06:12:10]OFD Sender: No OFD packet to send [06:12:15]OFD Sender: No OFD packet to send [06:12:20]OFD Sender: No OFD packet to send [06:12:25]OFD Sender: No OFD packet to send [06:12:30]OFD Sender: No OFD packet to send [06:12:35]OFD Sender: No OFD packet to send [06:12:40]OFD Sender: No OFD packet to send [06:12:45]OFD Sender: No OFD packet to send [06:12:50]OFD Sender: No OFD packet to send [06:12:55]OFD Sender: No OFD packet to send [06:13:00]OFD Sender: No OFD packet to send [06:13:05]OFD Sender: No OFD packet to send [06:13:10]OFD Sender: No OFD packet to send [06:13:15]OFD Sender: No OFD packet to send [06:13:20]OFD Sender: No OFD packet to send [06:13:25]OFD Sender: No OFD packet to send [06:13:30]OFD Sender: No OFD packet to send [06:13:35]OFD Sender: No OFD packet to send [06:13:40]OFD Sender: No OFD packet to send [06:13:45]OFD Sender: No OFD packet to send [06:13:50]OFD Sender: No OFD packet to send [06:13:55]OFD Sender: No OFD packet to send [06:14:00]OFD Sender: No OFD packet to send [06:14:05]OFD Sender: No OFD packet to send [06:14:10]OFD Sender: No OFD packet to send [06:14:15]OFD Sender: No OFD packet to send [06:14:20]OFD Sender: No OFD packet to send [06:14:26]OFD Sender: No OFD packet to send [06:14:31]OFD Sender: No OFD packet to send [06:14:36]OFD Sender: No OFD packet to send [06:14:41]OFD Sender: No OFD packet to send [06:14:46]OFD Sender: No OFD packet to send [06:14:51]OFD Sender: No OFD packet to send [06:14:56]OFD Sender: No OFD packet to send [06:15:01]OFD Sender: No OFD packet to send [06:15:06]OFD Sender: No OFD packet to send [06:15:11]OFD Sender: No OFD packet to send [06:15:16]OFD Sender: No OFD packet to send [06:15:21]OFD Sender: No OFD packet to send [06:15:26]OFD Sender: No OFD packet to send [06:15:31]OFD Sender: No OFD packet to send [06:15:36]OFD Sender: No OFD packet to send [06:15:41]OFD Sender: No OFD packet to send [06:15:46]OFD Sender: No OFD packet to send [06:15:51]OFD Sender: No OFD packet to send [06:15:56]OFD Sender: No OFD packet to send [06:16:01]OFD Sender: No OFD packet to send [06:16:06]OFD Sender: No OFD packet to send [06:16:11]OFD Sender: No OFD packet to send [06:16:16]OFD Sender: No OFD packet to send [06:16:21]OFD Sender: No OFD packet to send [06:16:26]OFD Sender: No OFD packet to send [06:16:31]OFD Sender: No OFD packet to send [06:16:36]OFD Sender: No OFD packet to send [06:16:41]OFD Sender: No OFD packet to send [06:16:46]OFD Sender: No OFD packet to send [06:16:51]OFD Sender: No OFD packet to send [06:16:56]OFD Sender: No OFD packet to send [06:17:01]OFD Sender: No OFD packet to send [06:17:06]OFD Sender: No OFD packet to send [06:17:11]OFD Sender: No OFD packet to send [06:17:16]OFD Sender: No OFD packet to send [06:17:21]OFD Sender: No OFD packet to send [06:17:26]OFD Sender: No OFD packet to send [06:17:31]OFD Sender: No OFD packet to send [06:17:36]OFD Sender: No OFD packet to send [06:17:41]OFD Sender: No OFD packet to send [06:17:46]OFD Sender: No OFD packet to send [06:17:51]OFD Sender: No OFD packet to send [06:17:56]OFD Sender: No OFD packet to send [06:18:01]OFD Sender: No OFD packet to send [06:18:06]OFD Sender: No OFD packet to send [06:18:11]OFD Sender: No OFD packet to send [06:18:16]OFD Sender: No OFD packet to send [06:18:21]OFD Sender: No OFD packet to send [06:18:26]OFD Sender: No OFD packet to send [06:18:31]OFD Sender: No OFD packet to send [06:18:36]OFD Sender: No OFD packet to send [06:18:41]OFD Sender: No OFD packet to send [06:18:46]OFD Sender: No OFD packet to send [06:18:51]OFD Sender: No OFD packet to send [06:18:56]OFD Sender: No OFD packet to send [06:19:01]OFD Sender: No OFD packet to send [06:19:06]OFD Sender: No OFD packet to send [06:19:11]OFD Sender: No OFD packet to send [06:19:16]OFD Sender: No OFD packet to send [06:19:21]OFD Sender: No OFD packet to send [06:19:26]OFD Sender: No OFD packet to send [06:19:31]OFD Sender: No OFD packet to send [06:19:36]OFD Sender: No OFD packet to send [06:19:41]OFD Sender: No OFD packet to send [06:19:46]OFD Sender: No OFD packet to send [06:19:51]OFD Sender: No OFD packet to send [06:19:56]OFD Sender: No OFD packet to send [06:20:01]OFD Sender: No OFD packet to send [06:20:06]OFD Sender: No OFD packet to send [06:20:11]OFD Sender: No OFD packet to send [06:20:16]OFD Sender: No OFD packet to send [06:20:21]OFD Sender: No OFD packet to send [06:20:26]OFD Sender: No OFD packet to send [06:20:31]OFD Sender: No OFD packet to send [06:20:36]OFD Sender: No OFD packet to send [06:20:41]OFD Sender: No OFD packet to send [06:20:46]OFD Sender: No OFD packet to send [06:20:51]OFD Sender: No OFD packet to send [06:20:56]OFD Sender: No OFD packet to send [06:21:01]OFD Sender: No OFD packet to send [06:21:06]OFD Sender: No OFD packet to send [06:21:11]OFD Sender: No OFD packet to send [06:21:16]OFD Sender: No OFD packet to send [06:21:21]OFD Sender: No OFD packet to send [06:21:26]OFD Sender: No OFD packet to send [06:21:31]OFD Sender: No OFD packet to send [06:21:36]OFD Sender: No OFD packet to send [06:21:41]OFD Sender: No OFD packet to send [06:21:46]OFD Sender: No OFD packet to send [06:21:51]OFD Sender: No OFD packet to send [06:21:56]OFD Sender: No OFD packet to send [06:22:01]OFD Sender: No OFD packet to send [06:22:06]OFD Sender: No OFD packet to send [06:22:11]OFD Sender: No OFD packet to send [06:22:16]OFD Sender: No OFD packet to send [06:22:21]OFD Sender: No OFD packet to send [06:22:26]OFD Sender: No OFD packet to send [06:22:31]OFD Sender: No OFD packet to send [06:22:36]OFD Sender: No OFD packet to send [06:22:41]OFD Sender: No OFD packet to send [06:22:46]OFD Sender: No OFD packet to send [06:22:51]OFD Sender: No OFD packet to send [06:22:56]OFD Sender: No OFD packet to send [06:23:01]OFD Sender: No OFD packet to send [06:23:06]OFD Sender: No OFD packet to send [06:23:11]OFD Sender: No OFD packet to send [06:23:16]OFD Sender: No OFD packet to send [06:23:21]OFD Sender: No OFD packet to send [06:23:26]OFD Sender: No OFD packet to send [06:23:31]OFD Sender: No OFD packet to send [06:23:36]OFD Sender: No OFD packet to send [06:23:41]OFD Sender: No OFD packet to send [06:23:46]OFD Sender: No OFD packet to send [06:23:51]OFD Sender: No OFD packet to send [06:23:56]OFD Sender: No OFD packet to send [06:24:01]OFD Sender: No OFD packet to send [06:24:06]OFD Sender: No OFD packet to send [06:24:11]OFD Sender: No OFD packet to send [06:24:16]OFD Sender: No OFD packet to send [06:24:21]OFD Sender: No OFD packet to send [06:24:26]OFD Sender: No OFD packet to send [06:24:31]OFD Sender: No OFD packet to send [06:24:36]OFD Sender: No OFD packet to send [06:24:41]OFD Sender: No OFD packet to send [06:24:46]OFD Sender: No OFD packet to send [06:24:51]OFD Sender: No OFD packet to send [06:24:56]OFD Sender: No OFD packet to send [06:25:01]OFD Sender: No OFD packet to send [06:25:06]OFD Sender: No OFD packet to send [06:25:11]OFD Sender: No OFD packet to send [06:25:16]OFD Sender: No OFD packet to send [06:25:21]OFD Sender: No OFD packet to send [06:25:26]OFD Sender: No OFD packet to send [06:25:31]OFD Sender: No OFD packet to send [06:25:36]OFD Sender: No OFD packet to send [06:25:41]OFD Sender: No OFD packet to send [06:25:46]OFD Sender: No OFD packet to send [06:25:51]OFD Sender: No OFD packet to send [06:25:56]OFD Sender: No OFD packet to send [06:26:01]OFD Sender: No OFD packet to send [06:26:06]OFD Sender: No OFD packet to send [06:26:11]OFD Sender: No OFD packet to send [06:26:16]OFD Sender: No OFD packet to send [06:26:21]OFD Sender: No OFD packet to send [06:26:26]OFD Sender: No OFD packet to send [06:26:31]OFD Sender: No OFD packet to send [06:26:36]OFD Sender: No OFD packet to send [06:26:41]OFD Sender: No OFD packet to send [06:26:46]OFD Sender: No OFD packet to send [06:26:51]OFD Sender: No OFD packet to send [06:26:56]OFD Sender: No OFD packet to send [06:27:01]OFD Sender: No OFD packet to send [06:27:06]OFD Sender: No OFD packet to send [06:27:11]OFD Sender: No OFD packet to send [06:27:16]OFD Sender: No OFD packet to send [06:27:21]OFD Sender: No OFD packet to send [06:27:26]OFD Sender: No OFD packet to send [06:27:31]OFD Sender: No OFD packet to send [06:27:36]OFD Sender: No OFD packet to send [06:27:41]OFD Sender: No OFD packet to send [06:27:46]OFD Sender: No OFD packet to send [06:27:51]OFD Sender: No OFD packet to send [06:27:56]OFD Sender: No OFD packet to send [06:28:01]OFD Sender: No OFD packet to send [06:28:06]OFD Sender: No OFD packet to send [06:28:11]OFD Sender: No OFD packet to send [06:28:16]accept exits with 9 [06:28:16]New connection [06:28:16]New thread 3067559268 created [06:28:16]Thread 3067415908 joined [06:28:16]Waiting for new connection... [06:28:16] Sock 9.Parse request [06:28:16]Sock 9.Check first char [06:28:16]Sock 9.First char is OK [06:28:16]request: POST /json_proto HTTP/1.0 [06:28:16]Method: POST [06:28:16]URL: /json_proto [06:28:16]Method is POST - this is cgi request [06:28:16]url: /json_proto [06:28:16]query_string will be loaded in cgi processing [06:28:16]execute_cgi json_proto POST (null) [06:28:16]execute_cgi path=json_proto method=POST [06:28:16]POST find Content-Length [06:28:16]Host: 172.17.63.195:8080 [06:28:16]Content-Length: 682 [06:28:16]Content-Type: application/json [06:28:16] [06:28:16]POST finish read [06:28:16]Found Content-Length = 682 [06:28:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)448996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [06:28:16]execute_script... [06:28: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)448996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [06:28:16]POST & json_proto [06:28:16]process_json_proto [06:28:16]json parsed OK: [06:28:16]protocol is kg_v1.0 [06:28:16]action value=close_receipt [06:28:16]process_action close_receipt [06:28:16]cmd_close_receipt [06:28:16]MH_GetDate [06:28:16]Write to MH i2c: F0 00 00 FD 0E FA [06:28:16]Write i2c OK [06:28:16]MH_I2C_Read... [06:28:16]Read from MH i2c: F0 [06:28:16]MH_I2C_Read... [06:28:16]Read from MH i2c: F0 09 00 [06:28:16]MH_I2C_Read... [06:28:16]Read from MH i2c: F0 09 00 FD 0E 00 03 8C 1C 67 68 46 19 67 43 [06:28:16]GetLastDocTimeStamp 1729922825 [06:28:16]current date 1729924099 [06:28:16]FM_GetShiftState [06:28:16]SAM_PROTO_GetShiftState [06:28:16]wFMCommunicate request_size=4 [06:28:16]MH_SAM_APDU [06:28:16]CAPDU: 80 13 01 00 [06:28:16]Write to MH i2c: E2 08 00 FE 0E 80 13 01 00 00 00 00 00 89 [06:28:16]Write i2c OK [06:28:16]MH_I2C_Read... [06:28:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:28:16]Read from MH i2c: E2 [06:28:16]MH_I2C_Read... [06:28:16]Read from MH i2c: E2 0E 00 [06:28:16]MH_I2C_Read... [06:28:16]Read from MH i2c: E2 0E 00 FE 0E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 98 [06:28:16]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [06:28:16]wFMCommunicate OK [06:28:16]SAM_PROTO_GetShiftState done [06:28:16]FM_GetShiftState done [06:28:16]opened in 1729900879 [06:28:16]opened+sec_in_day 1729987279 [06:28:16]quantity*price = 100015 [06:28:16]sum+1 = 100017 [06:28:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 13 26.10.2024 06:28 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201251 ФПД: 128316643329712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T062819&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201251&fm=128316643329712&tin=02508201610067®Number=0000000000091777&sum=100000 [06:28:17]StoreToDocumentArchive [06:28:17]shift 543 fd 201251 [06:28:17]save to /storage/0543/doc_00201251 [06:28:17]save last doc name /storage/0543/doc_00201251 to /storage/kkm_last_doc_name [06:28:17]save OK [06:28:17]Clear old archive folders... [06:28:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:28:17]tlvbuf is 017334E0 [06:28:17]SAM_PROTO_ClearQueue [06:28:17]wFMCommunicate request_size=4 [06:28:17]MH_SAM_APDU [06:28:17]CAPDU: 80 09 00 00 [06:28:17]Write to MH i2c: E2 08 00 0B 0F 80 09 00 00 00 00 00 00 8C [06:28:17]Write i2c OK [06:28:17]MH_I2C_Read... [06:28:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:28:17]Read from MH i2c: E2 [06:28:17]MH_I2C_Read... [06:28:17]Read from MH i2c: E2 03 00 [06:28:17]MH_I2C_Read... [06:28:17]Read from MH i2c: E2 03 00 0B 0F 00 90 00 8E [06:28:17]RAPDU: 90 00 [06:28:17]wFMCommunicate OK [06:28:17]SAM_PROTO_ClearQueue done [06:28:17]KKMCreateOFDPacket [06:28:17]OFDProtocolAddRootSTLVToBuf [06:28:17]FM_MakeSignedData [06:28:17]FM_MakeSignedData [06:28:17]SAM_PROTO_SignData [06:28:17]wFMCommunicate request_size=4 [06:28:17]MH_SAM_APDU [06:28:17]CAPDU: 80 0D 01 02 [06:28:17]Write to MH i2c: E2 08 00 0C 0F 80 0D 01 02 00 00 00 00 94 [06:28:17]Write i2c OK [06:28:17]MH_I2C_Read... [06:28:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:28:17]Read from MH i2c: E2 [06:28:17]MH_I2C_Read... [06:28:17]Read from MH i2c: E2 03 00 [06:28:17]MH_I2C_Read... [06:28:17]Read from MH i2c: E2 03 00 0C 0F 00 90 00 8F [06:28:17]RAPDU: 90 00 [06:28:17]wFMCommunicate OK [06:28:17]wFMCommunicate request_size=255 [06:28:17]MH_SAM_APDU [06:28: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 32 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 0D 00 00 00 F4 03 04 00 03 8C 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 23 12 03 00 35 04 06 00 74 [06:28:17]Write to MH i2c: E2 02 01 0D 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 32 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 0D 00 00 00 F4 03 04 00 03 8C 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 23 12 03 00 35 04 06 00 74 00 00 0E [06:28:17]Write i2c OK [06:28:17]MH_I2C_Read... [06:28:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:28:17]Read from MH i2c: E2 [06:28:17]MH_I2C_Read... [06:28:17]Read from MH i2c: E2 03 00 [06:28:17]MH_I2C_Read... [06:28:17]Read from MH i2c: E2 03 00 0D 0F 00 90 00 90 [06:28:17]RAPDU: 90 00 [06:28:17]wFMCommunicate OK [06:28:17]wFMCommunicate request_size=10 [06:28:17]MH_SAM_APDU [06:28:17]CAPDU: 80 0D 02 02 05 B4 0B F1 C6 B0 [06:28:17]Write to MH i2c: E2 0D 00 0E 0F 80 0D 02 02 05 00 B4 0B F1 C6 B0 00 00 C7 [06:28:17]Write i2c OK [06:28:17]MH_I2C_Read... [06:28:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:28:17]Read from MH i2c: E2 [06:28:17]MH_I2C_Read... [06:28:17]Read from MH i2c: E2 03 00 [06:28:17]MH_I2C_Read... [06:28:17]Read from MH i2c: E2 03 00 0E 0F 00 90 00 91 [06:28:17]RAPDU: 90 00 [06:28:17]wFMCommunicate OK [06:28:17]wFMCommunicate request_size=4 [06:28:17]MH_SAM_APDU [06:28:17]CAPDU: 80 0D 03 02 [06:28:17]Write to MH i2c: E2 08 00 0F 0F 80 0D 03 02 00 00 00 00 99 [06:28:17]Write i2c OK [06:28:17]MH_I2C_Read... [06:28:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:28:17]Read from MH i2c: E2 [06:28:17]MH_I2C_Read... [06:28:17]Read from MH i2c: E2 0B 00 [06:28:17]MH_I2C_Read... [06:28:17]Read from MH i2c: E2 0B 00 0F 0F 00 73 A3 BE 9E 33 6A A0 77 90 00 C0 [06:28:17]RAPDU: 73 A3 BE 9E 33 6A A0 77 90 00 [06:28:17]wFMCommunicate OK [06:28:17]SAM_PROTO_SignData done [06:28:17]FM_MakeSignedData done [06:28:17]CreateOFDProtocolMessage [06:28:17]wFMCommunicate request_size=4 [06:28:17]MH_SAM_APDU [06:28:17]CAPDU: 80 11 00 00 [06:28:17]Write to MH i2c: E2 08 00 10 0F 80 11 00 00 00 00 00 00 99 [06:28:17]Write i2c OK [06:28:17]MH_I2C_Read... [06:28:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:28:18]Read from MH i2c: E2 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: E2 17 00 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: E2 17 00 10 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EE [06:28:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:28:18]wFMCommunicate OK [06:28:18]CreateOFDProtocolMessage done [06:28:18]OFDSenderStorePacket 201251 [06:28:18]StoreOFDPacket docnum=201251 [06:28:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 20 F2 07 01 D9 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0D 00 00 00 F4 03 04 00 03 8C 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 23 12 03 00 35 04 06 00 74 B4 0B F1 C6 B0 73 A3 BE 9E 33 6A A0 77 [06:28:18]CheckFolder [06:28:18]dirname=/storage/ofd_packets [06:28:18]CheckFolder done [06:28:18]ProducePacketName [06:28:18]name=ofd_packets/00201251 [06:28:18]NVStorageSaveData ofd_packets/00201251 [06:28:18]File name is /storage/ofd_packets/00201251 [06:28:18]Write 301 bytes [06:28:18]NVStorageSaveData done [06:28:18]OFDSenderStorePacket done [06:28:18]KKMCreateOFDPacket done [06:28:18]NVStorageSaveData kkm_last_timestamp [06:28:18]File name is /storage/kkm_last_timestamp [06:28:18]Write 4 bytes [06:28:18]NVStorageSaveData done [06:28:18]ExternCall_PrintAddStr [06:28:18]wPrintStart [06:28:18]Write to MH i2c: 01 00 00 11 0F 20 [06:28:18]Write i2c OK [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: 01 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: 01 07 00 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: 01 07 00 11 0F 00 00 00 00 00 FF 0F 35 [06:28:18]RasterBufferAndPrint [06:28:18]line Счет N : (1)448996 [06:28:18]line ИНН: 02508201610067 [06:28:18]line Контрольно-Кассовый Чек [06:28:18]line ПРОДАЖА [06:28:18]line ТРК (МРК, ГНК) : 41 [06:28:18]line Товар: 2710124130 [06:28:18]line Аи-92-К-2 [06:28:18]line 14.950 * 66.90 [06:28:18]line = 1000.16 [06:28:18]line НДС 12% НСП 1% [06:28:18]line > о реализуемом товаре [06:28:18]line ОКРУГЛЕНИЕ: -0.16 [06:28:18]line ИТОГО: 1000.00 [06:28:18]line Внесено: 1000.00 [06:28:18]line СДАЧА: 0.00 [06:28:18]line НСП 1% : 8.85 [06:28:18]line НДС 12% : 106.21 [06:28:18]line Наличными: 1000.00 [06:28:18]line Безнал.: 0.00 [06:28:18]line Место: АЗС № 171 "Партнер Нефть" [06:28:18]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [06:28:18]line СНО: Общий режим [06:28:18]line Чек 13 26.10.2024 06:28 [06:28:18]line Смена: 543 ФФД: 1.0 [06:28:18]line ЗНМ: 0300000109 [06:28:18]line РНМ: 0000000000091777 [06:28:18]line Версия ККМ: 001 [06:28:18]line ФМ: 0000000000871756 [06:28:18]line ФД: 201251 [06:28:18]line ФПД: 128316643329712 [06:28:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T062819&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201251&fm=128316643329712&tin=02508201610067®Number=0000000000091777&sum=100000 [06:28:18]OFD Sender: Processing packet 201251 [packets to send 112, broken 111] [06:28:18]ProducePacketName [06:28:18]name=ofd_packets/00201251 [06:28:18]OFD Sender: To server: pG, [06:28:18]CommunicateWithHost lk.salyk.kg:30040 [06:28:18]ConnectInit lk.salyk.kg [06:28:18]written 0, free lines is 4095 [06:28:18]Connected sock=10 [06:28:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 20 F2 07 01 D9 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0D 00 00 00 F4 03 04 00 03 8C 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 23 12 03 00 35 04 06 00 74 B4 0B F1 C6 B0 73 A3 BE 9E 33 6A A0 77 [06:28:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 0F 88 47 00 93 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 23 12 03 00 F4 03 04 00 AD 37 1C 67 B6 04 01 00 00 3C 94 8D C8 7E F2 C9 5B [06:28:18]CommunicateWithHost err = 0 [06:28:18]CheckOFDResponse [06:28:18]1017 (14) - 77093643461234 [06:28:18]1041 (16) - 0000000000871756 [06:28:18]1040 (4) - 201251 [06:28:18]1012 (4) - 26.10.2024 00:28 [06:28:18]1206 (1) - 0 [06:28:18]OFD Sender: Remove packet 201251 [06:28:18]ProducePacketName [06:28:18]name=ofd_packets/00201251 [06:28:18]NVStorageDeleteData [06:28:18]Write to MH i2c: 01 00 00 3C 0F 4B [06:28:18]Write i2c OK [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: 01 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: 01 07 00 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: 01 07 00 3C 0F 00 00 00 00 00 A2 0C 00 [06:28:18]RasterBufferAndPrint [06:28:18]line [06:28:18]line [06:28:18]line [06:28:18]line [06:28:18]line [06:28:18]written 0, free lines is 3240 [06:28:18]MH_Cut [06:28:18]Write to MH i2c: D1 01 00 43 0F 01 24 [06:28:18]Write i2c OK [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: D1 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: D1 01 00 [06:28:18]MH_I2C_Read... [06:28:18]Read from MH i2c: D1 01 00 43 0F 00 23 [06:28:18]Write to MH i2c: 01 00 00 44 0F 53 [06:28:18]Write i2c OK [06:28:18]MH_I2C_Read... [06:28:19]OFD Sender: No OFD packet to send [06:28:19]*** Cut start [06:28:19]*** Purtial cut [06:28:19]*** Stage 1: CUTSNS_PIN = 1 [06:28:19]Read from MH i2c: 01 [06:28:19]MH_I2C_Read... [06:28:19]*** Stop cut motor [06:28:19]*** Cut end [06:28:19]Read from MH i2c: 01 07 00 [06:28:19]MH_I2C_Read... [06:28:19]Read from MH i2c: 01 07 00 44 0F 00 00 00 00 00 FF 0F 68 [06:28:19]process_action close_receipt done [06:28:19]requested_data is exist [06:28:19]produce_requested_data [06:28:19]requested_item fm.sn is exist - process it [06:28:19]wFMCommunicate request_size=4 [06:28:19]MH_SAM_APDU [06:28:19]CAPDU: 80 11 00 00 [06:28:19]Write to MH i2c: E2 08 00 45 0F 80 11 00 00 00 00 00 00 CE [06:28:19]Write i2c OK [06:28:19]MH_I2C_Read... [06:28:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:28:20]Read from MH i2c: E2 [06:28:20]MH_I2C_Read... [06:28:20]Read from MH i2c: E2 17 00 [06:28:20]MH_I2C_Read... [06:28:20]Read from MH i2c: E2 17 00 45 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 23 [06:28:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:28:20]wFMCommunicate OK [06:28:20]requested_item fd.num is exist - process it [06:28:20]SAM_PROTO_GetFieldsCounters [06:28:20]wFMCommunicate request_size=4 [06:28:20]MH_SAM_APDU [06:28:20]CAPDU: 80 13 00 00 [06:28:20]Write to MH i2c: E2 08 00 46 0F 80 13 00 00 00 00 00 00 D1 [06:28:20]Write i2c OK [06:28:20]MH_I2C_Read... [06:28:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:28:20]Read from MH i2c: E2 [06:28:20]MH_I2C_Read... [06:28:20]Read from MH i2c: E2 62 00 [06:28:20]MH_I2C_Read... [06:28:20]Read from MH i2c: E2 62 00 46 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 23 12 03 00 0E 04 04 00 1F 02 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 7A [06:28:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 23 12 03 00 0E 04 04 00 1F 02 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 [06:28:20]wFMCommunicate OK [06:28:20]SAM_PROTO_GetFieldsCounters done [06:28:20]requested_item shift.num is exist - process it [06:28:20]requested_item shift.opened is exist - process it [06:28:20]req_shift_opened [06:28:20]FM_GetShiftState [06:28:20]SAM_PROTO_GetShiftState [06:28:20]wFMCommunicate request_size=4 [06:28:20]MH_SAM_APDU [06:28:20]CAPDU: 80 13 01 00 [06:28:20]Write to MH i2c: E2 08 00 47 0F 80 13 01 00 00 00 00 00 D3 [06:28:20]Write i2c OK [06:28:20]MH_I2C_Read... [06:28:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:28:20]Read from MH i2c: E2 [06:28:20]MH_I2C_Read... [06:28:20]Read from MH i2c: E2 0E 00 [06:28:20]MH_I2C_Read... [06:28:20]Read from MH i2c: E2 0E 00 47 0F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E2 [06:28:20]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [06:28:20]wFMCommunicate OK [06:28:20]SAM_PROTO_GetShiftState done [06:28:20]FM_GetShiftState done [06:28:20]req_shift_opened done [06:28:20]requested_item shift.open_date is exist - process it [06:28:20]req_shift_open_date [06:28:20]req_shift_open_date done [06:28:20]produce_requested_data done [06:28:20]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201251,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [06:28:20]process_action_free close_receipt [06:28:20]json_value_free [06:28:20]json_value_free done [06:28:20]process_json_proto returns [06:28:20]Send response to host [06:28:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201251,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [06:28:20]free response buf [06:28:20]execute_script done [06:28:20]execute_script returns [06:28:20]free content buf [06:28:20]Sock 9.Close socket [06:28:20]Sock 9.Thread stoped [06:28:24]OFD Sender: No OFD packet to send [06:28:29]OFD Sender: No OFD packet to send [06:28:34]OFD Sender: No OFD packet to send [06:28:39]OFD Sender: No OFD packet to send [06:28:44]OFD Sender: No OFD packet to send [06:28:49]OFD Sender: No OFD packet to send [06:28:54]OFD Sender: No OFD packet to send [06:28:59]OFD Sender: No OFD packet to send [06:29:04]OFD Sender: No OFD packet to send [06:29:09]OFD Sender: No OFD packet to send [06:29:14]OFD Sender: No OFD packet to send [06:29:19]OFD Sender: No OFD packet to send [06:29:24]OFD Sender: No OFD packet to send [06:29:29]OFD Sender: No OFD packet to send [06:29:34]OFD Sender: No OFD packet to send [06:29:39]OFD Sender: No OFD packet to send [06:29:44]OFD Sender: No OFD packet to send [06:29:49]OFD Sender: No OFD packet to send [06:29:54]OFD Sender: No OFD packet to send [06:29:59]OFD Sender: No OFD packet to send [06:30:04]OFD Sender: No OFD packet to send [06:30:09]OFD Sender: No OFD packet to send [06:30:14]OFD Sender: No OFD packet to send [06:30:19]OFD Sender: No OFD packet to send [06:30:24]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:04]OFD Sender: No OFD packet to send [06:32:09]OFD Sender: No OFD packet to send [06:32:14]OFD Sender: No OFD packet to send [06:32:19]OFD Sender: No OFD packet to send [06:32:24]OFD Sender: No OFD packet to send [06:32:29]OFD Sender: No OFD packet to send [06:32:34]OFD Sender: No OFD packet to send [06:32:39]OFD Sender: No OFD packet to send [06:32:44]OFD Sender: No OFD packet to send [06:32:49]OFD Sender: No OFD packet to send [06:32:54]OFD Sender: No OFD packet to send [06:32:59]OFD Sender: No OFD packet to send [06:33:04]OFD Sender: No OFD packet to send [06:33:09]OFD Sender: No OFD packet to send [06:33:14]OFD Sender: No OFD packet to send [06:33:19]OFD Sender: No OFD packet to send [06:33:24]OFD Sender: No OFD packet to send [06:33:29]OFD Sender: No OFD packet to send [06:33:34]OFD Sender: No OFD packet to send [06:33:39]OFD Sender: No OFD packet to send [06:33:44]OFD Sender: No OFD packet to send [06:33:49]OFD Sender: No OFD packet to send [06:33:54]OFD Sender: No OFD packet to send [06:33:59]OFD Sender: No OFD packet to send [06:34:04]OFD Sender: No OFD packet to send [06:34:09]OFD Sender: No OFD packet to send [06:34:14]OFD Sender: No OFD packet to send [06:34:19]OFD Sender: No OFD packet to send [06:34:24]OFD Sender: No OFD packet to send [06:34:29]OFD Sender: No OFD packet to send [06:34:34]OFD Sender: No OFD packet to send [06:34:39]OFD Sender: No OFD packet to send [06:34:44]OFD Sender: No OFD packet to send [06:34:49]OFD Sender: No OFD packet to send [06:34:54]OFD Sender: No OFD packet to send [06:34:59]OFD Sender: No OFD packet to send [06:35:04]OFD Sender: No OFD packet to send [06:35:09]OFD Sender: No OFD packet to send [06:35:14]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35:24]OFD Sender: No OFD packet to send [06:35:29]OFD Sender: No OFD packet to send [06:35:34]OFD Sender: No OFD packet to send [06:35:39]OFD Sender: No OFD packet to send [06:35:44]OFD Sender: No OFD packet to send [06:35:49]OFD Sender: No OFD packet to send [06:35:54]OFD Sender: No OFD packet to send [06:35:59]OFD Sender: No OFD packet to send [06:36:04]OFD Sender: No OFD packet to send [06:36:09]OFD Sender: No OFD packet to send [06:36:14]OFD Sender: No OFD packet to send [06:36:19]OFD Sender: No OFD packet to send [06:36:24]OFD Sender: No OFD packet to send [06:36:29]OFD Sender: No OFD packet to send [06:36:34]OFD Sender: No OFD packet to send [06:36:39]OFD Sender: No OFD packet to send [06:36:44]OFD Sender: No OFD packet to send [06:36:49]OFD Sender: No OFD packet to send [06:36:54]OFD Sender: No OFD packet to send [06:36:59]OFD Sender: No OFD packet to send [06:37:04]OFD Sender: No OFD packet to send [06:37:09]OFD Sender: No OFD packet to send [06:37:14]OFD Sender: No OFD packet to send [06:37:19]OFD Sender: No OFD packet to send [06:37:24]OFD Sender: No OFD packet to send [06:37:29]OFD Sender: No OFD packet to send [06:37:34]OFD Sender: No OFD packet to send [06:37:39]OFD Sender: No OFD packet to send [06:37:44]OFD Sender: No OFD packet to send [06:37:49]OFD Sender: No OFD packet to send [06:37:54]OFD Sender: No OFD packet to send [06:37:59]OFD Sender: No OFD packet to send [06:38:04]OFD Sender: No OFD packet to send [06:38:09]OFD Sender: No OFD packet to send [06:38:14]OFD Sender: No OFD packet to send [06:38:19]OFD Sender: No OFD packet to send [06:38:24]OFD Sender: No OFD packet to send [06:38:29]OFD Sender: No OFD packet to send [06:38:34]OFD Sender: No OFD packet to send [06:38:39]OFD Sender: No OFD packet to send [06:38:44]OFD Sender: No OFD packet to send [06:38:49]OFD Sender: No OFD packet to send [06:38:54]OFD Sender: No OFD packet to send [06:38:59]OFD Sender: No OFD packet to send [06:39:04]OFD Sender: No OFD packet to send [06:39:09]OFD Sender: No OFD packet to send [06:39:14]OFD Sender: No OFD packet to send [06:39:19]OFD Sender: No OFD packet to send [06:39:24]OFD Sender: No OFD packet to send [06:39:29]OFD Sender: No OFD packet to send [06:39:34]OFD Sender: No OFD packet to send [06:39:39]OFD Sender: No OFD packet to send [06:39:44]OFD Sender: No OFD packet to send [06:39:49]OFD Sender: No OFD packet to send [06:39:54]OFD Sender: No OFD packet to send [06:39:59]OFD Sender: No OFD packet to send [06:40:04]OFD Sender: No OFD packet to send [06:40:10]OFD Sender: No OFD packet to send [06:40:15]OFD Sender: No OFD packet to send [06:40:20]OFD Sender: No OFD packet to send [06:40:25]OFD Sender: No OFD packet to send [06:40:30]OFD Sender: No OFD packet to send [06:40:35]OFD Sender: No OFD packet to send [06:40:40]OFD Sender: No OFD packet to send [06:40:45]OFD Sender: No OFD packet to send [06:40:50]OFD Sender: No OFD packet to send [06:40:55]OFD Sender: No OFD packet to send [06:41:00]OFD Sender: No OFD packet to send [06:41:05]OFD Sender: No OFD packet to send [06:41:10]OFD Sender: No OFD packet to send [06:41:15]OFD Sender: No OFD packet to send [06:41:20]OFD Sender: No OFD packet to send [06:41:25]OFD Sender: No OFD packet to send [06:41:30]OFD Sender: No OFD packet to send [06:41:35]OFD Sender: No OFD packet to send [06:41:40]OFD Sender: No OFD packet to send [06:41:45]OFD Sender: No OFD packet to send [06:41:50]OFD Sender: No OFD packet to send [06:41:55]OFD Sender: No OFD packet to send [06:42:00]OFD Sender: No OFD packet to send [06:42:05]OFD Sender: No OFD packet to send [06:42:10]OFD Sender: No OFD packet to send [06:42:15]OFD Sender: No OFD packet to send [06:42:20]OFD Sender: No OFD packet to send [06:42:25]OFD Sender: No OFD packet to send [06:42:30]OFD Sender: No OFD packet to send [06:42:35]OFD Sender: No OFD packet to send [06:42:40]OFD Sender: No OFD packet to send [06:42:45]OFD Sender: No OFD packet to send [06:42:50]OFD Sender: No OFD packet to send [06:42:55]OFD Sender: No OFD packet to send [06:43:00]OFD Sender: No OFD packet to send [06:43:05]OFD Sender: No OFD packet to send [06:43:10]OFD Sender: No OFD packet to send [06:43:15]OFD Sender: No OFD packet to send [06:43:20]OFD Sender: No OFD packet to send [06:43:25]OFD Sender: No OFD packet to send [06:43:30]OFD Sender: No OFD packet to send [06:43:35]OFD Sender: No OFD packet to send [06:43:40]OFD Sender: No OFD packet to send [06:43:45]OFD Sender: No OFD packet to send [06:43:50]OFD Sender: No OFD packet to send [06:43:55]OFD Sender: No OFD packet to send [06:44:00]OFD Sender: No OFD packet to send [06:44:05]OFD Sender: No OFD packet to send [06:44:10]OFD Sender: No OFD packet to send [06:44:15]OFD Sender: No OFD packet to send [06:44:20]OFD Sender: No OFD packet to send [06:44:25]OFD Sender: No OFD packet to send [06:44:30]OFD Sender: No OFD packet to send [06:44:35]OFD Sender: No OFD packet to send [06:44:40]OFD Sender: No OFD packet to send [06:44:45]OFD Sender: No OFD packet to send [06:44:50]OFD Sender: No OFD packet to send [06:44:55]OFD Sender: No OFD packet to send [06:45:00]OFD Sender: No OFD packet to send [06:45:05]OFD Sender: No OFD packet to send [06:45:10]OFD Sender: No OFD packet to send [06:45:15]OFD Sender: No OFD packet to send [06:45:20]OFD Sender: No OFD packet to send [06:45:25]OFD Sender: No OFD packet to send [06:45:30]OFD Sender: No OFD packet to send [06:45:35]OFD Sender: No OFD packet to send [06:45:40]OFD Sender: No OFD packet to send [06:45:45]OFD Sender: No OFD packet to send [06:45:50]OFD Sender: No OFD packet to send [06:45:55]OFD Sender: No OFD packet to send [06:46:00]OFD Sender: No OFD packet to send [06:46:05]OFD Sender: No OFD packet to send [06:46:10]OFD Sender: No OFD packet to send [06:46:15]OFD Sender: No OFD packet to send [06:46:20]OFD Sender: No OFD packet to send [06:46:25]OFD Sender: No OFD packet to send [06:46:30]OFD Sender: No OFD packet to send [06:46:35]OFD Sender: No OFD packet to send [06:46:40]OFD Sender: No OFD packet to send [06:46:45]OFD Sender: No OFD packet to send [06:46:50]OFD Sender: No OFD packet to send [06:46:55]OFD Sender: No OFD packet to send [06:47:00]OFD Sender: No OFD packet to send [06:47:05]OFD Sender: No OFD packet to send [06:47:10]OFD Sender: No OFD packet to send [06:47:15]OFD Sender: No OFD packet to send [06:47:20]OFD Sender: No OFD packet to send [06:47:25]OFD Sender: No OFD packet to send [06:47:30]OFD Sender: No OFD packet to send [06:47:35]OFD Sender: No OFD packet to send [06:47:40]OFD Sender: No OFD packet to send [06:47:45]OFD Sender: No OFD packet to send [06:47:50]OFD Sender: No OFD packet to send [06:47:55]OFD Sender: No OFD packet to send [06:48:00]OFD Sender: No OFD packet to send [06:48:05]OFD Sender: No OFD packet to send [06:48:10]OFD Sender: No OFD packet to send [06:48:15]OFD Sender: No OFD packet to send [06:48:20]OFD Sender: No OFD packet to send [06:48:25]OFD Sender: No OFD packet to send [06:48:30]OFD Sender: No OFD packet to send [06:48:35]OFD Sender: No OFD packet to send [06:48:40]OFD Sender: No OFD packet to send [06:48:45]OFD Sender: No OFD packet to send [06:48:50]OFD Sender: No OFD packet to send [06:48:55]OFD Sender: No OFD packet to send [06:49:00]OFD Sender: No OFD packet to send [06:49:05]OFD Sender: No OFD packet to send [06:49:10]OFD Sender: No OFD packet to send [06:49:15]OFD Sender: No OFD packet to send [06:49:20]OFD Sender: No OFD packet to send [06:49:25]OFD Sender: No OFD packet to send [06:49:30]OFD Sender: No OFD packet to send [06:49:35]OFD Sender: No OFD packet to send [06:49:40]OFD Sender: No OFD packet to send [06:49:45]OFD Sender: No OFD packet to send [06:49:50]OFD Sender: No OFD packet to send [06:49:55]OFD Sender: No OFD packet to send [06:50:00]OFD Sender: No OFD packet to send [06:50:05]OFD Sender: No OFD packet to send [06:50:10]OFD Sender: No OFD packet to send [06:50:15]OFD Sender: No OFD packet to send [06:50:20]OFD Sender: No OFD packet to send [06:50:25]OFD Sender: No OFD packet to send [06:50:30]OFD Sender: No OFD packet to send [06:50:35]OFD Sender: No OFD packet to send [06:50:40]OFD Sender: No OFD packet to send [06:50:45]OFD Sender: No OFD packet to send [06:50:50]OFD Sender: No OFD packet to send [06:50:55]OFD Sender: No OFD packet to send [06:51:00]OFD Sender: No OFD packet to send [06:51:05]OFD Sender: No OFD packet to send [06:51:10]OFD Sender: No OFD packet to send [06:51:15]OFD Sender: No OFD packet to send [06:51:20]OFD Sender: No OFD packet to send [06:51:25]OFD Sender: No OFD packet to send [06:51:30]OFD Sender: No OFD packet to send [06:51:35]OFD Sender: No OFD packet to send [06:51:40]OFD Sender: No OFD packet to send [06:51:45]OFD Sender: No OFD packet to send [06:51:50]OFD Sender: No OFD packet to send [06:51:55]OFD Sender: No OFD packet to send [06:52:00]OFD Sender: No OFD packet to send [06:52:05]OFD Sender: No OFD packet to send [06:52:10]OFD Sender: No OFD packet to send [06:52:15]OFD Sender: No OFD packet to send [06:52:20]OFD Sender: No OFD packet to send [06:52:25]OFD Sender: No OFD packet to send [06:52:30]OFD Sender: No OFD packet to send [06:52:35]OFD Sender: No OFD packet to send [06:52:40]OFD Sender: No OFD packet to send [06:52:45]OFD Sender: No OFD packet to send [06:52:50]OFD Sender: No OFD packet to send [06:52:55]OFD Sender: No OFD packet to send [06:53:00]OFD Sender: No OFD packet to send [06:53:05]OFD Sender: No OFD packet to send [06:53:10]OFD Sender: No OFD packet to send [06:53:15]OFD Sender: No OFD packet to send [06:53:20]OFD Sender: No OFD packet to send [06:53:25]OFD Sender: No OFD packet to send [06:53:30]OFD Sender: No OFD packet to send [06:53:35]OFD Sender: No OFD packet to send [06:53:40]OFD Sender: No OFD packet to send [06:53:45]OFD Sender: No OFD packet to send [06:53:50]OFD Sender: No OFD packet to send [06:53:55]OFD Sender: No OFD packet to send [06:54:00]OFD Sender: No OFD packet to send [06:54:05]OFD Sender: No OFD packet to send [06:54:10]OFD Sender: No OFD packet to send [06:54:15]OFD Sender: No OFD packet to send [06:54:20]OFD Sender: No OFD packet to send [06:54:25]OFD Sender: No OFD packet to send [06:54:30]OFD Sender: No OFD packet to send [06:54:35]OFD Sender: No OFD packet to send [06:54:40]OFD Sender: No OFD packet to send [06:54:45]OFD Sender: No OFD packet to send [06:54:50]OFD Sender: No OFD packet to send [06:54:56]OFD Sender: No OFD packet to send [06:55:01]OFD Sender: No OFD packet to send [06:55:06]OFD Sender: No OFD packet to send [06:55:11]OFD Sender: No OFD packet to send [06:55:16]OFD Sender: No OFD packet to send [06:55:21]OFD Sender: No OFD packet to send [06:55:26]OFD Sender: No OFD packet to send [06:55:31]OFD Sender: No OFD packet to send [06:55:36]OFD Sender: No OFD packet to send [06:55:41]OFD Sender: No OFD packet to send [06:55:46]OFD Sender: No OFD packet to send [06:55:51]OFD Sender: No OFD packet to send [06:55:56]OFD Sender: No OFD packet to send [06:56:01]OFD Sender: No OFD packet to send [06:56:06]OFD Sender: No OFD packet to send [06:56:11]OFD Sender: No OFD packet to send [06:56:16]OFD Sender: No OFD packet to send [06:56:21]OFD Sender: No OFD packet to send [06:56:26]OFD Sender: No OFD packet to send [06:56:31]OFD Sender: No OFD packet to send [06:56:36]OFD Sender: No OFD packet to send [06:56:41]OFD Sender: No OFD packet to send [06:56:46]OFD Sender: No OFD packet to send [06:56:51]OFD Sender: No OFD packet to send [06:56:56]OFD Sender: No OFD packet to send [06:57:01]OFD Sender: No OFD packet to send [06:57:06]OFD Sender: No OFD packet to send [06:57:11]OFD Sender: No OFD packet to send [06:57:16]OFD Sender: No OFD packet to send [06:57:21]OFD Sender: No OFD packet to send [06:57:26]OFD Sender: No OFD packet to send [06:57:31]OFD Sender: No OFD packet to send [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:16]OFD Sender: No OFD packet to send [06:59:16]accept exits with 7 [06:59:16]New connection [06:59:16]New thread 3067415908 created [06:59:16]Thread 3067559268 joined [06:59:16]Waiting for new connection... [06:59:16] Sock 7.Parse request [06:59:16]Sock 7.Check first char [06:59:16]Sock 7.First char is OK [06:59:16]request: POST /json_proto HTTP/1.0 [06:59:16]Method: POST [06:59:16]URL: /json_proto [06:59:16]Method is POST - this is cgi request [06:59:16]url: /json_proto [06:59:16]query_string will be loaded in cgi processing [06:59:16]execute_cgi json_proto POST (null) [06:59:16]execute_cgi path=json_proto method=POST [06:59:16]POST find Content-Length [06:59:16]Host: 172.17.63.195:8080 [06:59:16]Content-Length: 677 [06:59:16]Content-Type: application/json [06:59:16] [06:59:16]POST finish read [06:59:16]Found Content-Length = 677 [06:59:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)448997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [06:59:16]execute_script... [06:59: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)448997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [06:59:16]POST & json_proto [06:59:16]process_json_proto [06:59:16]json parsed OK: [06:59:16]protocol is kg_v1.0 [06:59:16]action value=close_receipt [06:59:16]process_action close_receipt [06:59:16]cmd_close_receipt [06:59:16]MH_GetDate [06:59:16]Write to MH i2c: F0 00 00 48 0F 46 [06:59:16]Write i2c OK [06:59:16]MH_I2C_Read... [06:59:16]Read from MH i2c: F0 [06:59:16]MH_I2C_Read... [06:59:16]Read from MH i2c: F0 09 00 [06:59:16]MH_I2C_Read... [06:59:16]Read from MH i2c: F0 09 00 48 0F 00 47 93 1C 67 68 46 19 67 DA [06:59:16]GetLastDocTimeStamp 1729924099 [06:59:16]current date 1729925959 [06:59:16]FM_GetShiftState [06:59:16]SAM_PROTO_GetShiftState [06:59:16]wFMCommunicate request_size=4 [06:59:16]MH_SAM_APDU [06:59:16]CAPDU: 80 13 01 00 [06:59:16]Write to MH i2c: E2 08 00 49 0F 80 13 01 00 00 00 00 00 D5 [06:59:16]Write i2c OK [06:59:16]MH_I2C_Read... [06:59:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:16]Read from MH i2c: E2 [06:59:16]MH_I2C_Read... [06:59:16]Read from MH i2c: E2 0E 00 [06:59:16]MH_I2C_Read... [06:59:16]Read from MH i2c: E2 0E 00 49 0F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E4 [06:59:16]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [06:59:16]wFMCommunicate OK [06:59:16]SAM_PROTO_GetShiftState done [06:59:16]FM_GetShiftState done [06:59:16]opened in 1729900879 [06:59:16]opened+sec_in_day 1729987279 [06:59:16]quantity*price = 50041 [06:59:16]sum+1 = 50042 [06:59:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 14 26.10.2024 06:59 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201252 ФПД: 73302901311130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T065919&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201252&fm=73302901311130&tin=02508201610067®Number=0000000000091777&sum=50000 [06:59:18]StoreToDocumentArchive [06:59:18]shift 543 fd 201252 [06:59:18]save to /storage/0543/doc_00201252 [06:59:18]save last doc name /storage/0543/doc_00201252 to /storage/kkm_last_doc_name [06:59:18]save OK [06:59:18]Clear old archive folders... [06:59:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:59:18]tlvbuf is 017482D0 [06:59:18]SAM_PROTO_ClearQueue [06:59:18]wFMCommunicate request_size=4 [06:59:18]MH_SAM_APDU [06:59:18]CAPDU: 80 09 00 00 [06:59:18]Write to MH i2c: E2 08 00 56 0F 80 09 00 00 00 00 00 00 D7 [06:59:18]Write i2c OK [06:59:18]MH_I2C_Read... [06:59:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:59:18]Read from MH i2c: E2 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 03 00 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 03 00 56 0F 00 90 00 D9 [06:59:18]RAPDU: 90 00 [06:59:18]wFMCommunicate OK [06:59:18]SAM_PROTO_ClearQueue done [06:59:18]KKMCreateOFDPacket [06:59:18]OFDProtocolAddRootSTLVToBuf [06:59:18]FM_MakeSignedData [06:59:18]FM_MakeSignedData [06:59:18]SAM_PROTO_SignData [06:59:18]wFMCommunicate request_size=4 [06:59:18]MH_SAM_APDU [06:59:18]CAPDU: 80 0D 01 02 [06:59:18]Write to MH i2c: E2 08 00 57 0F 80 0D 01 02 00 00 00 00 DF [06:59:18]Write i2c OK [06:59:18]MH_I2C_Read... [06:59:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:59:18]Read from MH i2c: E2 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 03 00 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 03 00 57 0F 00 90 00 DA [06:59:18]RAPDU: 90 00 [06:59:18]wFMCommunicate OK [06:59:18]wFMCommunicate request_size=255 [06:59:18]MH_SAM_APDU [06:59: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 32 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 0E 00 00 00 F4 03 04 00 47 93 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 24 12 03 00 35 04 06 00 42 [06:59:18]Write to MH i2c: E2 02 01 58 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 32 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 0E 00 00 00 F4 03 04 00 47 93 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 24 12 03 00 35 04 06 00 42 00 00 7A [06:59:18]Write i2c OK [06:59:18]MH_I2C_Read... [06:59:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:18]Read from MH i2c: E2 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 03 00 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 03 00 58 0F 00 90 00 DB [06:59:18]RAPDU: 90 00 [06:59:18]wFMCommunicate OK [06:59:18]wFMCommunicate request_size=10 [06:59:18]MH_SAM_APDU [06:59:18]CAPDU: 80 0D 02 02 05 AB 29 64 C6 9A [06:59:18]Write to MH i2c: E2 0D 00 59 0F 80 0D 02 02 05 00 AB 29 64 C6 9A 00 00 84 [06:59:18]Write i2c OK [06:59:18]MH_I2C_Read... [06:59:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:18]Read from MH i2c: E2 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 03 00 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 03 00 59 0F 00 90 00 DC [06:59:18]RAPDU: 90 00 [06:59:18]wFMCommunicate OK [06:59:18]wFMCommunicate request_size=4 [06:59:18]MH_SAM_APDU [06:59:18]CAPDU: 80 0D 03 02 [06:59:18]Write to MH i2c: E2 08 00 5A 0F 80 0D 03 02 00 00 00 00 E4 [06:59:18]Write i2c OK [06:59:18]MH_I2C_Read... [06:59:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:59:18]Read from MH i2c: E2 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 0B 00 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 0B 00 5A 0F 00 98 8A C9 13 24 50 E0 DE 90 00 15 [06:59:18]RAPDU: 98 8A C9 13 24 50 E0 DE 90 00 [06:59:18]wFMCommunicate OK [06:59:18]SAM_PROTO_SignData done [06:59:18]FM_MakeSignedData done [06:59:18]CreateOFDProtocolMessage [06:59:18]wFMCommunicate request_size=4 [06:59:18]MH_SAM_APDU [06:59:18]CAPDU: 80 11 00 00 [06:59:18]Write to MH i2c: E2 08 00 5B 0F 80 11 00 00 00 00 00 00 E4 [06:59:18]Write i2c OK [06:59:18]MH_I2C_Read... [06:59:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:18]Read from MH i2c: E2 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 17 00 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 17 00 5B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 39 [06:59:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:59:18]wFMCommunicate OK [06:59:18]CreateOFDProtocolMessage done [06:59:18]OFDSenderStorePacket 201252 [06:59:18]StoreOFDPacket docnum=201252 [06:59:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 4D 8D 07 01 EF EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0E 00 00 00 F4 03 04 00 47 93 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 24 12 03 00 35 04 06 00 42 AB 29 64 C6 9A 98 8A C9 13 24 50 E0 DE [06:59:18]CheckFolder [06:59:18]dirname=/storage/ofd_packets [06:59:18]CheckFolder done [06:59:18]ProducePacketName [06:59:18]name=ofd_packets/00201252 [06:59:18]NVStorageSaveData ofd_packets/00201252 [06:59:18]File name is /storage/ofd_packets/00201252 [06:59:18]Write 301 bytes [06:59:18]NVStorageSaveData done [06:59:18]OFDSenderStorePacket done [06:59:18]KKMCreateOFDPacket done [06:59:18]NVStorageSaveData kkm_last_timestamp [06:59:18]File name is /storage/kkm_last_timestamp [06:59:18]Write 4 bytes [06:59:18]NVStorageSaveData done [06:59:18]ExternCall_PrintAddStr [06:59:18]wPrintStart [06:59:18]Write to MH i2c: 01 00 00 5C 0F 6B [06:59:18]Write i2c OK [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: 01 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: 01 07 00 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: 01 07 00 5C 0F 00 00 00 00 00 FF 0F 80 [06:59:18]RasterBufferAndPrint [06:59:18]line Счет N : (1)448997 [06:59:18]line ИНН: 02508201610067 [06:59:18]line Контрольно-Кассовый Чек [06:59:18]line ПРОДАЖА [06:59:18]line ТРК (МРК, ГНК) : 52 [06:59:18]line Товар: 2710124130 [06:59:18]line Аи-92-К-2 [06:59:18]line 7.480 * 66.90 [06:59:18]line = 500.41 [06:59:18]line НДС 12% НСП 1% [06:59:18]line > о реализуемом товаре [06:59:18]line ОКРУГЛЕНИЕ: -0.41 [06:59:18]line ИТОГО: 500.00 [06:59:18]line Внесено: 500.00 [06:59:18]line СДАЧА: 0.00 [06:59:18]line НСП 1% : 4.43 [06:59:18]line НДС 12% : 53.14 [06:59:18]line Наличными: 500.00 [06:59:18]line Безнал.: 0.00 [06:59:18]line Место: АЗС № 171 "Партнер Нефть" [06:59:18]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [06:59:18]line СНО: Общий режим [06:59:18]line Чек 14 26.10.2024 06:59 [06:59:18]line Смена: 543 ФФД: 1.0 [06:59:18]line ЗНМ: 0300000109 [06:59:18]line РНМ: 0000000000091777 [06:59:18]line Версия ККМ: 001 [06:59:18]line ФМ: 0000000000871756 [06:59:18]line ФД: 201252 [06:59:18]line ФПД: 73302901311130 [06:59:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T065919&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201252&fm=73302901311130&tin=02508201610067®Number=0000000000091777&sum=50000 [06:59:18]OFD Sender: Processing packet 201252 [packets to send 112, broken 111] [06:59:18]ProducePacketName [06:59:18]name=ofd_packets/00201252 [06:59:18]OFD Sender: To server: pG, [06:59:18]CommunicateWithHost lk.salyk.kg:30040 [06:59:18]ConnectInit lk.salyk.kg [06:59:18]written 0, free lines is 4095 [06:59:19]Connected sock=10 [06:59:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 4D 8D 07 01 EF EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0E 00 00 00 F4 03 04 00 47 93 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 24 12 03 00 35 04 06 00 42 AB 29 64 C6 9A 98 8A C9 13 24 50 E0 DE [06:59:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A6 E1 47 00 F7 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 24 12 03 00 F4 03 04 00 F1 3E 1C 67 B6 04 01 00 00 A3 85 0D 07 54 86 08 C3 [06:59:19]CommunicateWithHost err = 0 [06:59:19]CheckOFDResponse [06:59:19]1017 (14) - 77093643461234 [06:59:19]1041 (16) - 0000000000871756 [06:59:19]1040 (4) - 201252 [06:59:19]1012 (4) - 26.10.2024 00:59 [06:59:19]1206 (1) - 0 [06:59:19]OFD Sender: Remove packet 201252 [06:59:19]ProducePacketName [06:59:19]name=ofd_packets/00201252 [06:59:19]NVStorageDeleteData [06:59:19]Write to MH i2c: 01 00 00 87 0F 96 [06:59:19]Write i2c OK [06:59:19]MH_I2C_Read... [06:59:19]Read from MH i2c: 01 [06:59:19]MH_I2C_Read... [06:59:19]Read from MH i2c: 01 07 00 [06:59:19]MH_I2C_Read... [06:59:19]Read from MH i2c: 01 07 00 87 0F 00 00 00 00 00 8F 0C 38 [06:59:19]RasterBufferAndPrint [06:59:19]line [06:59:19]line [06:59:19]line [06:59:19]line [06:59:19]line [06:59:19]written 0, free lines is 3219 [06:59:19]MH_Cut [06:59:19]Write to MH i2c: D1 01 00 8E 0F 01 6F [06:59:19]Write i2c OK [06:59:19]MH_I2C_Read... [06:59:19]Read from MH i2c: D1 [06:59:19]MH_I2C_Read... [06:59:19]Read from MH i2c: D1 01 00 [06:59:19]MH_I2C_Read... [06:59:19]Read from MH i2c: D1 01 00 8E 0F 00 6E [06:59:19]Write to MH i2c: 01 00 00 8F 0F 9E [06:59:19]Write i2c OK [06:59:19]MH_I2C_Read... [06:59:19]OFD Sender: No OFD packet to send [06:59:20]*** Cut start [06:59:20]*** Purtial cut [06:59:20]*** Stage 1: CUTSNS_PIN = 1 [06:59:20]Read from MH i2c: 01 [06:59:20]MH_I2C_Read... [06:59:20]*** Stop cut motor [06:59:20]*** Cut end [06:59:20]Read from MH i2c: 01 07 00 [06:59:20]MH_I2C_Read... [06:59:20]Read from MH i2c: 01 07 00 8F 0F 00 00 00 00 00 FF 0F B3 [06:59:20]process_action close_receipt done [06:59:20]requested_data is exist [06:59:20]produce_requested_data [06:59:20]requested_item fm.sn is exist - process it [06:59:20]wFMCommunicate request_size=4 [06:59:20]MH_SAM_APDU [06:59:20]CAPDU: 80 11 00 00 [06:59:20]Write to MH i2c: E2 08 00 90 0F 80 11 00 00 00 00 00 00 19 [06:59:20]Write i2c OK [06:59:20]MH_I2C_Read... [06:59:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:20]Read from MH i2c: E2 [06:59:20]MH_I2C_Read... [06:59:20]Read from MH i2c: E2 17 00 [06:59:20]MH_I2C_Read... [06:59:20]Read from MH i2c: E2 17 00 90 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6E [06:59:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [06:59:20]wFMCommunicate OK [06:59:20]requested_item fd.num is exist - process it [06:59:20]SAM_PROTO_GetFieldsCounters [06:59:20]wFMCommunicate request_size=4 [06:59:20]MH_SAM_APDU [06:59:20]CAPDU: 80 13 00 00 [06:59:20]Write to MH i2c: E2 08 00 91 0F 80 13 00 00 00 00 00 00 1C [06:59:20]Write i2c OK [06:59:20]MH_I2C_Read... [06:59:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:59:20]Read from MH i2c: E2 [06:59:20]MH_I2C_Read... [06:59:20]Read from MH i2c: E2 62 00 [06:59:20]MH_I2C_Read... [06:59:20]Read from MH i2c: E2 62 00 91 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 24 12 03 00 0E 04 04 00 1F 02 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 C9 [06:59:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 24 12 03 00 0E 04 04 00 1F 02 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 [06:59:20]wFMCommunicate OK [06:59:20]SAM_PROTO_GetFieldsCounters done [06:59:20]requested_item shift.num is exist - process it [06:59:20]requested_item shift.opened is exist - process it [06:59:20]req_shift_opened [06:59:20]FM_GetShiftState [06:59:20]SAM_PROTO_GetShiftState [06:59:20]wFMCommunicate request_size=4 [06:59:20]MH_SAM_APDU [06:59:20]CAPDU: 80 13 01 00 [06:59:20]Write to MH i2c: E2 08 00 92 0F 80 13 01 00 00 00 00 00 1E [06:59:20]Write i2c OK [06:59:20]MH_I2C_Read... [06:59:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:20]Read from MH i2c: E2 [06:59:20]MH_I2C_Read... [06:59:20]Read from MH i2c: E2 0E 00 [06:59:20]MH_I2C_Read... [06:59:20]Read from MH i2c: E2 0E 00 92 0F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 2D [06:59:20]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [06:59:20]wFMCommunicate OK [06:59:20]SAM_PROTO_GetShiftState done [06:59:20]FM_GetShiftState done [06:59:20]req_shift_opened done [06:59:20]requested_item shift.open_date is exist - process it [06:59:20]req_shift_open_date [06:59:20]req_shift_open_date done [06:59:20]produce_requested_data done [06:59:20]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201252,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [06:59:20]process_action_free close_receipt [06:59:20]json_value_free [06:59:20]json_value_free done [06:59:20]process_json_proto returns [06:59:20]Send response to host [06:59:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201252,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [06:59:20]free response buf [06:59:20]execute_script done [06:59:20]execute_script returns [06:59:20]free content buf [06:59:20]Sock 7.Close socket [06:59:20]Sock 7.Thread stoped [06:59:24]OFD Sender: No OFD packet to send [06:59:29]OFD Sender: No OFD packet to send [06:59:34]OFD Sender: No OFD packet to send [06:59:39]OFD Sender: No OFD packet to send [06:59:44]OFD Sender: No OFD packet to send [06:59:49]OFD Sender: No OFD packet to send [06:59:54]OFD Sender: No OFD packet to send [06:59:59]OFD Sender: No OFD packet to send [07:00:04]OFD Sender: No OFD packet to send [07:00:09]OFD Sender: No OFD packet to send [07:00:14]OFD Sender: No OFD packet to send [07:00:19]OFD Sender: No OFD packet to send [07:00:24]OFD Sender: No OFD packet to send [07:00:29]OFD Sender: No OFD packet to send [07:00:34]OFD Sender: No OFD packet to send [07:00:39]OFD Sender: No OFD packet to send [07:00:44]OFD Sender: No OFD packet to send [07:00:49]OFD Sender: No OFD packet to send [07:00:54]OFD Sender: No OFD packet to send [07:00:59]OFD Sender: No OFD packet to send [07:01:04]OFD Sender: No OFD packet to send [07:01:09]OFD Sender: No OFD packet to send [07:01:14]OFD Sender: No OFD packet to send [07:01:19]OFD Sender: No OFD packet to send [07:01:24]OFD Sender: No OFD packet to send [07:01:29]OFD Sender: No OFD packet to send [07:01:34]OFD Sender: No OFD packet to send [07:01:39]OFD Sender: No OFD packet to send [07:01:44]OFD Sender: No OFD packet to send [07:01:49]OFD Sender: No OFD packet to send [07:01:54]OFD Sender: No OFD packet to send [07:01:59]OFD Sender: No OFD packet to send [07:02:04]OFD Sender: No OFD packet to send [07:02:09]OFD Sender: No OFD packet to send [07:02:14]OFD Sender: No OFD packet to send [07:02:19]OFD Sender: No OFD packet to send [07:02:24]OFD Sender: No OFD packet to send [07:02:34]OFD Sender: No OFD packet to send [07:02:39]OFD Sender: No OFD packet to send [07:02:45]OFD Sender: No OFD packet to send [07:02:50]OFD Sender: No OFD packet to send [07:02:55]OFD Sender: No OFD packet to send [07:03:00]OFD Sender: No OFD packet to send [07:03:05]OFD Sender: No OFD packet to send [07:03:10]OFD Sender: No OFD packet to send [07:03:15]OFD Sender: No OFD packet to send [07:03:20]OFD Sender: No OFD packet to send [07:03:25]OFD Sender: No OFD packet to send [07:03:30]OFD Sender: No OFD packet to send [07:03:35]OFD Sender: No OFD packet to send [07:03:40]OFD Sender: No OFD packet to send [07:03:45]OFD Sender: No OFD packet to send [07:03:50]OFD Sender: No OFD packet to send [07:03:55]OFD Sender: No OFD packet to send [07:04:00]OFD Sender: No OFD packet to send [07:04:05]OFD Sender: No OFD packet to send [07:04:10]OFD Sender: No OFD packet to send [07:04:15]OFD Sender: No OFD packet to send [07:04:20]OFD Sender: No OFD packet to send [07:04:25]OFD Sender: No OFD packet to send [07:04:30]OFD Sender: No OFD packet to send [07:04:35]OFD Sender: No OFD packet to send [07:04:40]OFD Sender: No OFD packet to send [07:04:44]ConnectInit Can't connect to host [07:04:45]OFD Sender: No OFD packet to send [07:06:00]OFD Sender: No OFD packet to send [07:06:05]OFD Sender: No OFD packet to send [07:06:10]OFD Sender: No OFD packet to send [07:06:15]OFD Sender: No OFD packet to send [07:06:20]OFD Sender: No OFD packet to send [07:06:25]OFD Sender: No OFD packet to send [07:06:30]OFD Sender: No OFD packet to send [07:06:35]OFD Sender: No OFD packet to send [07:06:40]OFD Sender: No OFD packet to send [07:06:45]OFD Sender: No OFD packet to send [07:06:50]OFD Sender: No OFD packet to send [07:06:55]OFD Sender: No OFD packet to send [07:07:00]OFD Sender: No OFD packet to send [07:07:05]OFD Sender: No OFD packet to send [07:07:10]OFD Sender: No OFD packet to send [07:07:15]OFD Sender: No OFD packet to send [07:07:20]OFD Sender: No OFD packet to send [07:07:25]OFD Sender: No OFD packet to send [07:07:30]OFD Sender: No OFD packet to send [07:07:35]OFD Sender: No OFD packet to send [07:07:40]OFD Sender: No OFD packet to send [07:07:45]OFD Sender: No OFD packet to send [07:07:50]OFD Sender: No OFD packet to send [07:07:55]OFD Sender: No OFD packet to send [07:08:00]OFD Sender: No OFD packet to send [07:08:05]OFD Sender: No OFD packet to send [07:08:09]ConnectInit Can't connect to host [07:08:10]OFD Sender: No OFD packet to send [07:08:15]OFD Sender: No OFD packet to send [07:08:20]OFD Sender: No OFD packet to send [07:08:25]OFD Sender: No OFD packet to send [07:08:30]OFD Sender: No OFD packet to send [07:08:35]OFD Sender: No OFD packet to send [07:08:40]OFD Sender: No OFD packet to send [07:08:45]OFD Sender: No OFD packet to send [07:08:50]OFD Sender: No OFD packet to send [07:08:55]OFD Sender: No OFD packet to send [07:09:00]OFD Sender: No OFD packet to send [07:09:05]OFD Sender: No OFD packet to send [07:09:10]OFD Sender: No OFD packet to send [07:09:15]OFD Sender: No OFD packet to send [07:09:20]OFD Sender: No OFD packet to send [07:09:25]OFD Sender: No OFD packet to send [07:09:30]OFD Sender: No OFD packet to send [07:09:35]OFD Sender: No OFD packet to send [07:09:40]OFD Sender: No OFD packet to send [07:09:45]OFD Sender: No OFD packet to send [07:09:50]OFD Sender: No OFD packet to send [07:09:55]OFD Sender: No OFD packet to send [07:10:00]OFD Sender: No OFD packet to send [07:10:05]OFD Sender: No OFD packet to send [07:10:20]OFD Sender: No OFD packet to send [07:10:25]OFD Sender: No OFD packet to send [07:10:30]OFD Sender: No OFD packet to send [07:10:35]OFD Sender: No OFD packet to send [07:10:40]OFD Sender: No OFD packet to send [07:10:45]OFD Sender: No OFD packet to send [07:10:50]OFD Sender: No OFD packet to send [07:10:55]OFD Sender: No OFD packet to send [07:11:00]OFD Sender: No OFD packet to send [07:11:05]OFD Sender: No OFD packet to send [07:11:10]OFD Sender: No OFD packet to send [07:11:15]OFD Sender: No OFD packet to send [07:11:20]OFD Sender: No OFD packet to send [07:11:25]OFD Sender: No OFD packet to send [07:11:30]OFD Sender: No OFD packet to send [07:11:35]OFD Sender: No OFD packet to send [07:11:40]OFD Sender: No OFD packet to send [07:11:45]OFD Sender: No OFD packet to send [07:11:50]OFD Sender: No OFD packet to send [07:11:55]OFD Sender: No OFD packet to send [07:12:00]OFD Sender: No OFD packet to send [07:12:05]OFD Sender: No OFD packet to send [07:12:10]accept exits with 9 [07:12:10]New connection [07:12:10]New thread 3067559268 created [07:12:10] Sock 9.Parse request [07:12:10]Thread 3067415908 joined [07:12:10]Sock 9.Check first char [07:12:10]Waiting for new connection... [07:12:10]Sock 9.First char is OK [07:12:10]request: POST /json_proto HTTP/1.0 [07:12:10]Method: POST [07:12:10]URL: /json_proto [07:12:10]Method is POST - this is cgi request [07:12:10]url: /json_proto [07:12:10]query_string will be loaded in cgi processing [07:12:10]execute_cgi json_proto POST (null) [07:12:10]execute_cgi path=json_proto method=POST [07:12:10]POST find Content-Length [07:12:10]Host: 172.17.63.195:8080 [07:12:10]Content-Length: 678 [07:12:10]Content-Type: application/json [07:12:10] [07:12:10]POST finish read [07:12:10]Found Content-Length = 678 [07:12:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)448998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:12:10]execute_script... [07:12:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)448998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:12:10]POST & json_proto [07:12:10]process_json_proto [07:12:10]json parsed OK: [07:12:10]protocol is kg_v1.0 [07:12:10]action value=close_receipt [07:12:10]process_action close_receipt [07:12:10]cmd_close_receipt [07:12:10]MH_GetDate [07:12:10]Write to MH i2c: F0 00 00 93 0F 91 [07:12:10]Write i2c OK [07:12:10]MH_I2C_Read... [07:12:10]Read from MH i2c: F0 [07:12:10]MH_I2C_Read... [07:12:10]Read from MH i2c: F0 09 00 [07:12:10]MH_I2C_Read... [07:12:10]Read from MH i2c: F0 09 00 93 0F 00 4D 96 1C 67 68 46 19 67 2E [07:12:10]GetLastDocTimeStamp 1729925959 [07:12:10]current date 1729926733 [07:12:10]FM_GetShiftState [07:12:10]SAM_PROTO_GetShiftState [07:12:10]wFMCommunicate request_size=4 [07:12:10]MH_SAM_APDU [07:12:10]CAPDU: 80 13 01 00 [07:12:10]Write to MH i2c: E2 08 00 94 0F 80 13 01 00 00 00 00 00 20 [07:12:10]Write i2c OK [07:12:10]MH_I2C_Read... [07:12:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:10]Read from MH i2c: E2 [07:12:10]MH_I2C_Read... [07:12:10]Read from MH i2c: E2 0E 00 [07:12:10]MH_I2C_Read... [07:12:10]Read from MH i2c: E2 0E 00 94 0F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 2F [07:12:10]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [07:12:10]wFMCommunicate OK [07:12:10]SAM_PROTO_GetShiftState done [07:12:10]FM_GetShiftState done [07:12:10]opened in 1729900879 [07:12:10]opened+sec_in_day 1729987279 [07:12:10]quantity*price = 80061 [07:12:10]sum+1 = 80063 [07:12:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 15 26.10.2024 07:12 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201253 ФПД: 103095442059687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T071213&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201253&fm=103095442059687&tin=02508201610067®Number=0000000000091777&sum=80000 [07:12:11]StoreToDocumentArchive [07:12:11]shift 543 fd 201253 [07:12:11]save to /storage/0543/doc_00201253 [07:12:11]save last doc name /storage/0543/doc_00201253 to /storage/kkm_last_doc_name [07:12:11]save OK [07:12:11]Clear old archive folders... [07:12:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:12:11]tlvbuf is 0170C600 [07:12:11]SAM_PROTO_ClearQueue [07:12:11]wFMCommunicate request_size=4 [07:12:11]MH_SAM_APDU [07:12:11]CAPDU: 80 09 00 00 [07:12:11]Write to MH i2c: E2 08 00 A1 0F 80 09 00 00 00 00 00 00 22 [07:12:11]Write i2c OK [07:12:11]MH_I2C_Read... [07:12:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:12:11]Read from MH i2c: E2 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 03 00 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 03 00 A1 0F 00 90 00 24 [07:12:11]RAPDU: 90 00 [07:12:11]wFMCommunicate OK [07:12:11]SAM_PROTO_ClearQueue done [07:12:11]KKMCreateOFDPacket [07:12:11]OFDProtocolAddRootSTLVToBuf [07:12:11]FM_MakeSignedData [07:12:11]FM_MakeSignedData [07:12:11]SAM_PROTO_SignData [07:12:11]wFMCommunicate request_size=4 [07:12:11]MH_SAM_APDU [07:12:11]CAPDU: 80 0D 01 02 [07:12:11]Write to MH i2c: E2 08 00 A2 0F 80 0D 01 02 00 00 00 00 2A [07:12:11]Write i2c OK [07:12:11]MH_I2C_Read... [07:12:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:12:11]Read from MH i2c: E2 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 03 00 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 03 00 A2 0F 00 90 00 25 [07:12:11]RAPDU: 90 00 [07:12:11]wFMCommunicate OK [07:12:11]wFMCommunicate request_size=255 [07:12:11]MH_SAM_APDU [07:12:11]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 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 4D 96 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 25 12 03 00 35 04 06 00 5D [07:12:11]Write to MH i2c: E2 02 01 A3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 4D 96 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 25 12 03 00 35 04 06 00 5D 00 00 59 [07:12:11]Write i2c OK [07:12:11]MH_I2C_Read... [07:12:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:11]Read from MH i2c: E2 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 03 00 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 03 00 A3 0F 00 90 00 26 [07:12:11]RAPDU: 90 00 [07:12:11]wFMCommunicate OK [07:12:11]wFMCommunicate request_size=10 [07:12:11]MH_SAM_APDU [07:12:11]CAPDU: 80 0D 02 02 05 C3 C7 33 B1 A7 [07:12:11]Write to MH i2c: E2 0D 00 A4 0F 80 0D 02 02 05 00 C3 C7 33 B1 A7 00 00 4C [07:12:11]Write i2c OK [07:12:11]MH_I2C_Read... [07:12:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:11]Read from MH i2c: E2 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 03 00 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 03 00 A4 0F 00 90 00 27 [07:12:11]RAPDU: 90 00 [07:12:11]wFMCommunicate OK [07:12:11]wFMCommunicate request_size=4 [07:12:11]MH_SAM_APDU [07:12:11]CAPDU: 80 0D 03 02 [07:12:11]Write to MH i2c: E2 08 00 A5 0F 80 0D 03 02 00 00 00 00 2F [07:12:11]Write i2c OK [07:12:11]MH_I2C_Read... [07:12:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:12:11]Read from MH i2c: E2 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 0B 00 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 0B 00 A5 0F 00 37 31 60 EE 2B 51 AF 85 90 00 96 [07:12:11]RAPDU: 37 31 60 EE 2B 51 AF 85 90 00 [07:12:11]wFMCommunicate OK [07:12:11]SAM_PROTO_SignData done [07:12:11]FM_MakeSignedData done [07:12:11]CreateOFDProtocolMessage [07:12:11]wFMCommunicate request_size=4 [07:12:11]MH_SAM_APDU [07:12:11]CAPDU: 80 11 00 00 [07:12:11]Write to MH i2c: E2 08 00 A6 0F 80 11 00 00 00 00 00 00 2F [07:12:11]Write i2c OK [07:12:11]MH_I2C_Read... [07:12:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:11]Read from MH i2c: E2 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 17 00 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: E2 17 00 A6 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 84 [07:12:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:12:11]wFMCommunicate OK [07:12:11]CreateOFDProtocolMessage done [07:12:11]OFDSenderStorePacket 201253 [07:12:11]StoreOFDPacket docnum=201253 [07:12:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 95 B7 07 01 55 F1 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 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 4D 96 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 25 12 03 00 35 04 06 00 5D C3 C7 33 B1 A7 37 31 60 EE 2B 51 AF 85 [07:12:11]CheckFolder [07:12:11]dirname=/storage/ofd_packets [07:12:11]CheckFolder done [07:12:11]ProducePacketName [07:12:11]name=ofd_packets/00201253 [07:12:11]NVStorageSaveData ofd_packets/00201253 [07:12:11]File name is /storage/ofd_packets/00201253 [07:12:11]Write 301 bytes [07:12:11]NVStorageSaveData done [07:12:11]OFDSenderStorePacket done [07:12:11]KKMCreateOFDPacket done [07:12:11]NVStorageSaveData kkm_last_timestamp [07:12:11]File name is /storage/kkm_last_timestamp [07:12:11]Write 4 bytes [07:12:11]NVStorageSaveData done [07:12:11]ExternCall_PrintAddStr [07:12:11]wPrintStart [07:12:11]Write to MH i2c: 01 00 00 A7 0F B6 [07:12:11]Write i2c OK [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: 01 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: 01 07 00 [07:12:11]MH_I2C_Read... [07:12:11]Read from MH i2c: 01 07 00 A7 0F 00 00 00 00 00 FF 0F CB [07:12:11]RasterBufferAndPrint [07:12:11]line Счет N : (1)448998 [07:12:11]line ИНН: 02508201610067 [07:12:11]line Контрольно-Кассовый Чек [07:12:11]line ПРОДАЖА [07:12:11]line ТРК (МРК, ГНК) : 51 [07:12:11]line Товар: 2710124500 [07:12:11]line Аи-95-К-3 [07:12:11]line 10.790 * 74.20 [07:12:11]line = 800.62 [07:12:11]line НДС 12% НСП 1% [07:12:11]line > о реализуемом товаре [07:12:11]line ОКРУГЛЕНИЕ: -0.62 [07:12:11]line ИТОГО: 800.00 [07:12:11]line Внесено: 800.00 [07:12:11]line СДАЧА: 0.00 [07:12:11]line НСП 1% : 7.08 [07:12:11]line НДС 12% : 85.02 [07:12:11]line Наличными: 800.00 [07:12:11]line Безнал.: 0.00 [07:12:11]line Место: АЗС № 171 "Партнер Нефть" [07:12:11]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [07:12:11]line СНО: Общий режим [07:12:11]line Чек 15 26.10.2024 07:12 [07:12:11]line Смена: 543 ФФД: 1.0 [07:12:11]line ЗНМ: 0300000109 [07:12:11]line РНМ: 0000000000091777 [07:12:11]line Версия ККМ: 001 [07:12:11]line ФМ: 0000000000871756 [07:12:11]line ФД: 201253 [07:12:11]line ФПД: 103095442059687 [07:12:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T071213&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201253&fm=103095442059687&tin=02508201610067®Number=0000000000091777&sum=80000 [07:12:12]OFD Sender: Processing packet 201253 [packets to send 112, broken 111] [07:12:12]ProducePacketName [07:12:12]name=ofd_packets/00201253 [07:12:12]OFD Sender: To server: pG, [07:12:12]CommunicateWithHost lk.salyk.kg:30040 [07:12:12]ConnectInit lk.salyk.kg [07:12:12]written 0, free lines is 4095 [07:12:12]Connected sock=11 [07:12:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 95 B7 07 01 55 F1 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 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 4D 96 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 25 12 03 00 35 04 06 00 5D C3 C7 33 B1 A7 37 31 60 EE 2B 51 AF 85 [07:12:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 5A D1 47 00 69 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 25 12 03 00 F4 03 04 00 F7 41 1C 67 B6 04 01 00 00 64 EB E5 1D 91 3A B3 B3 [07:12:12]CommunicateWithHost err = 0 [07:12:12]CheckOFDResponse [07:12:12]1017 (14) - 77093643461234 [07:12:12]1041 (16) - 0000000000871756 [07:12:12]1040 (4) - 201253 [07:12:12]1012 (4) - 26.10.2024 01:12 [07:12:12]1206 (1) - 0 [07:12:12]OFD Sender: Remove packet 201253 [07:12:12]ProducePacketName [07:12:12]name=ofd_packets/00201253 [07:12:12]NVStorageDeleteData [07:12:12]Write to MH i2c: 01 00 00 D2 0F E1 [07:12:12]Write i2c OK [07:12:12]MH_I2C_Read... [07:12:12]Read from MH i2c: 01 [07:12:12]MH_I2C_Read... [07:12:12]Read from MH i2c: 01 07 00 [07:12:12]MH_I2C_Read... [07:12:12]Read from MH i2c: 01 07 00 D2 0F 00 00 00 00 00 93 0C 87 [07:12:12]RasterBufferAndPrint [07:12:12]line [07:12:12]line [07:12:12]line [07:12:12]line [07:12:12]line [07:12:12]written 0, free lines is 3225 [07:12:12]MH_Cut [07:12:12]Write to MH i2c: D1 01 00 D9 0F 01 BA [07:12:12]Write i2c OK [07:12:12]MH_I2C_Read... [07:12:12]Read from MH i2c: D1 [07:12:12]MH_I2C_Read... [07:12:12]Read from MH i2c: D1 01 00 [07:12:12]MH_I2C_Read... [07:12:12]Read from MH i2c: D1 01 00 D9 0F 00 B9 [07:12:12]Write to MH i2c: 01 00 00 DA 0F E9 [07:12:12]Write i2c OK [07:12:12]MH_I2C_Read... [07:12:12]OFD Sender: No OFD packet to send [07:12:13]*** Cut start [07:12:13]*** Purtial cut [07:12:13]*** Stage 1: CUTSNS_PIN = 1 [07:12:13]Read from MH i2c: 01 [07:12:13]MH_I2C_Read... [07:12:13]*** Stop cut motor [07:12:13]*** Cut end [07:12:13]Read from MH i2c: 01 07 00 [07:12:13]MH_I2C_Read... [07:12:13]Read from MH i2c: 01 07 00 DA 0F 00 00 00 00 00 FF 0F FE [07:12:13]process_action close_receipt done [07:12:13]requested_data is exist [07:12:13]produce_requested_data [07:12:13]requested_item fm.sn is exist - process it [07:12:13]wFMCommunicate request_size=4 [07:12:13]MH_SAM_APDU [07:12:13]CAPDU: 80 11 00 00 [07:12:13]Write to MH i2c: E2 08 00 DB 0F 80 11 00 00 00 00 00 00 64 [07:12:13]Write i2c OK [07:12:13]MH_I2C_Read... [07:12:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:13]Read from MH i2c: E2 [07:12:13]MH_I2C_Read... [07:12:13]Read from MH i2c: E2 17 00 [07:12:13]MH_I2C_Read... [07:12:13]Read from MH i2c: E2 17 00 DB 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B9 [07:12:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:12:13]wFMCommunicate OK [07:12:13]requested_item fd.num is exist - process it [07:12:13]SAM_PROTO_GetFieldsCounters [07:12:13]wFMCommunicate request_size=4 [07:12:13]MH_SAM_APDU [07:12:13]CAPDU: 80 13 00 00 [07:12:13]Write to MH i2c: E2 08 00 DC 0F 80 13 00 00 00 00 00 00 67 [07:12:13]Write i2c OK [07:12:13]MH_I2C_Read... [07:12:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:12:13]Read from MH i2c: E2 [07:12:13]MH_I2C_Read... [07:12:13]Read from MH i2c: E2 62 00 [07:12:13]MH_I2C_Read... [07:12:13]Read from MH i2c: E2 62 00 DC 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 25 12 03 00 0E 04 04 00 1F 02 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 18 [07:12:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 25 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:12:13]wFMCommunicate OK [07:12:13]SAM_PROTO_GetFieldsCounters done [07:12:13]requested_item shift.num is exist - process it [07:12:13]requested_item shift.opened is exist - process it [07:12:13]req_shift_opened [07:12:13]FM_GetShiftState [07:12:13]SAM_PROTO_GetShiftState [07:12:13]wFMCommunicate request_size=4 [07:12:13]MH_SAM_APDU [07:12:13]CAPDU: 80 13 01 00 [07:12:13]Write to MH i2c: E2 08 00 DD 0F 80 13 01 00 00 00 00 00 69 [07:12:13]Write i2c OK [07:12:13]MH_I2C_Read... [07:12:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:13]Read from MH i2c: E2 [07:12:13]MH_I2C_Read... [07:12:13]Read from MH i2c: E2 0E 00 [07:12:13]MH_I2C_Read... [07:12:13]Read from MH i2c: E2 0E 00 DD 0F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 78 [07:12:13]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [07:12:13]wFMCommunicate OK [07:12:13]SAM_PROTO_GetShiftState done [07:12:13]FM_GetShiftState done [07:12:13]req_shift_opened done [07:12:13]requested_item shift.open_date is exist - process it [07:12:13]req_shift_open_date [07:12:13]req_shift_open_date done [07:12:13]produce_requested_data done [07:12:13]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201253,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [07:12:13]process_action_free close_receipt [07:12:13]json_value_free [07:12:13]json_value_free done [07:12:13]process_json_proto returns [07:12:13]Send response to host [07:12:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201253,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [07:12:13]free response buf [07:12:13]execute_script done [07:12:13]execute_script returns [07:12:13]free content buf [07:12:13]Sock 9.Close socket [07:12:13]Sock 9.Thread stoped [07:12:17]OFD Sender: No OFD packet to send [07:12:22]OFD Sender: No OFD packet to send [07:12:25]ConnectInit Can't connect to host [07:12:27]OFD Sender: No OFD packet to send [07:12:32]OFD Sender: No OFD packet to send [07:12:37]OFD Sender: No OFD packet to send [07:12:42]OFD Sender: No OFD packet to send [07:12:52]OFD Sender: No OFD packet to send [07:12:57]OFD Sender: No OFD packet to send [07:13:02]OFD Sender: No OFD packet to send [07:13:07]OFD Sender: No OFD packet to send [07:13:12]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:33]OFD Sender: No OFD packet to send [07:13:38]OFD Sender: No OFD packet to send [07:13:43]OFD Sender: No OFD packet to send [07:13:48]OFD Sender: No OFD packet to send [07:13:53]OFD Sender: No OFD packet to send [07:13:58]OFD Sender: No OFD packet to send [07:14:03]OFD Sender: No OFD packet to send [07:14:08]OFD Sender: No OFD packet to send [07:14:13]OFD Sender: No OFD packet to send [07:14:18]OFD Sender: No OFD packet to send [07:14:23]OFD Sender: No OFD packet to send [07:14:28]OFD Sender: No OFD packet to send [07:14:33]OFD Sender: No OFD packet to send [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]OFD Sender: No OFD packet to send [07:14:53]OFD Sender: No OFD packet to send [07:14:58]OFD Sender: No OFD packet to send [07:15:03]OFD Sender: No OFD packet to send [07:15:04]ConnectInit Can't connect to host [07:15:08]OFD Sender: No OFD packet to send [07:15:13]OFD Sender: No OFD packet to send [07:15:18]OFD Sender: No OFD packet to send [07:15:23]OFD Sender: No OFD packet to send [07:15:28]OFD Sender: No OFD packet to send [07:15:33]OFD Sender: No OFD packet to send [07:15:38]OFD Sender: No OFD packet to send [07:15:43]OFD Sender: No OFD packet to send [07:15:48]OFD Sender: No OFD packet to send [07:15:53]OFD Sender: No OFD packet to send [07:15:58]OFD Sender: No OFD packet to send [07:16:03]OFD Sender: No OFD packet to send [07:16:08]OFD Sender: No OFD packet to send [07:16:13]OFD Sender: No OFD packet to send [07:16:18]OFD Sender: No OFD packet to send [07:16:23]OFD Sender: No OFD packet to send [07:16:28]OFD Sender: No OFD packet to send [07:16:33]OFD Sender: No OFD packet to send [07:16:38]OFD Sender: No OFD packet to send [07:16:43]OFD Sender: No OFD packet to send [07:16:48]OFD Sender: No OFD packet to send [07:16:53]OFD Sender: No OFD packet to send [07:16:58]OFD Sender: No OFD packet to send [07:17:03]OFD Sender: No OFD packet to send [07:17:08]OFD Sender: No OFD packet to send [07:17:13]OFD Sender: No OFD packet to send [07:17:18]OFD Sender: No OFD packet to send [07:17:23]OFD Sender: No OFD packet to send [07:17:28]OFD Sender: No OFD packet to send [07:17:33]OFD Sender: No OFD packet to send [07:17:38]OFD Sender: No OFD packet to send [07:17:43]OFD Sender: No OFD packet to send [07:17:48]OFD Sender: No OFD packet to send [07:17:53]OFD Sender: No OFD packet to send [07:17:58]OFD Sender: No OFD packet to send [07:18:03]OFD Sender: No OFD packet to send [07:18:08]OFD Sender: No OFD packet to send [07:18:13]OFD Sender: No OFD packet to send [07:18:18]OFD Sender: No OFD packet to send [07:18:23]OFD Sender: No OFD packet to send [07:18:28]OFD Sender: No OFD packet to send [07:18:33]OFD Sender: No OFD packet to send [07:18:38]OFD Sender: No OFD packet to send [07:18:43]OFD Sender: No OFD packet to send [07:18:48]OFD Sender: No OFD packet to send [07:18:53]OFD Sender: No OFD packet to send [07:18:58]OFD Sender: No OFD packet to send [07:19:03]OFD Sender: No OFD packet to send [07:19:08]OFD Sender: No OFD packet to send [07:19:13]OFD Sender: No OFD packet to send [07:19:18]OFD Sender: No OFD packet to send [07:19:23]OFD Sender: No OFD packet to send [07:19:28]OFD Sender: No OFD packet to send [07:19:33]OFD Sender: No OFD packet to send [07:19:38]OFD Sender: No OFD packet to send [07:19:43]OFD Sender: No OFD packet to send [07:19:48]OFD Sender: No OFD packet to send [07:19:53]OFD Sender: No OFD packet to send [07:19:58]OFD Sender: No OFD packet to send [07:20:03]OFD Sender: No OFD packet to send [07:20:08]OFD Sender: No OFD packet to send [07:20:13]OFD Sender: No OFD packet to send [07:20:18]OFD Sender: No OFD packet to send [07:20:23]OFD Sender: No OFD packet to send [07:20:28]OFD Sender: No OFD packet to send [07:20:33]OFD Sender: No OFD packet to send [07:20:38]OFD Sender: No OFD packet to send [07:20:43]OFD Sender: No OFD packet to send [07:20:48]OFD Sender: No OFD packet to send [07:20:53]OFD Sender: No OFD packet to send [07:20:58]OFD Sender: No OFD packet to send [07:21:03]OFD Sender: No OFD packet to send [07:21:08]OFD Sender: No OFD packet to send [07:21:13]OFD Sender: No OFD packet to send [07:21:18]OFD Sender: No OFD packet to send [07:21:23]OFD Sender: No OFD packet to send [07:21:28]OFD Sender: No OFD packet to send [07:21:33]OFD Sender: No OFD packet to send [07:21:38]OFD Sender: No OFD packet to send [07:21:43]OFD Sender: No OFD packet to send [07:21:48]OFD Sender: No OFD packet to send [07:21:53]OFD Sender: No OFD packet to send [07:21:58]OFD Sender: No OFD packet to send [07:22:03]OFD Sender: No OFD packet to send [07:22:08]OFD Sender: No OFD packet to send [07:22:13]OFD Sender: No OFD packet to send [07:22:18]OFD Sender: No OFD packet to send [07:22:23]OFD Sender: No OFD packet to send [07:22:28]OFD Sender: No OFD packet to send [07:22:33]OFD Sender: No OFD packet to send [07:22:38]OFD Sender: No OFD packet to send [07:22:43]OFD Sender: No OFD packet to send [07:22:48]OFD Sender: No OFD packet to send [07:22:53]OFD Sender: No OFD packet to send [07:22:58]OFD Sender: No OFD packet to send [07:23:03]OFD Sender: No OFD packet to send [07:23:08]OFD Sender: No OFD packet to send [07:23:13]OFD Sender: No OFD packet to send [07:23:18]OFD Sender: No OFD packet to send [07:23:23]OFD Sender: No OFD packet to send [07:23:28]OFD Sender: No OFD packet to send [07:23:33]OFD Sender: No OFD packet to send [07:23:38]OFD Sender: No OFD packet to send [07:23:43]OFD Sender: No OFD packet to send [07:23:48]OFD Sender: No OFD packet to send [07:23:53]OFD Sender: No OFD packet to send [07:23:58]OFD Sender: No OFD packet to send [07:24:03]OFD Sender: No OFD packet to send [07:24:08]OFD Sender: No OFD packet to send [07:24:13]OFD Sender: No OFD packet to send [07:24:18]OFD Sender: No OFD packet to send [07:24:23]OFD Sender: No OFD packet to send [07:24:28]OFD Sender: No OFD packet to send [07:24:33]OFD Sender: No OFD packet to send [07:24:38]OFD Sender: No OFD packet to send [07:24:43]OFD Sender: No OFD packet to send [07:24:48]OFD Sender: No OFD packet to send [07:24:53]OFD Sender: No OFD packet to send [07:24:58]OFD Sender: No OFD packet to send [07:25:03]OFD Sender: No OFD packet to send [07:25:08]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:13]OFD Sender: No OFD packet to send [07:26:18]OFD Sender: No OFD packet to send [07:26:23]OFD Sender: No OFD packet to send [07:26:28]OFD Sender: No OFD packet to send [07:26:33]OFD Sender: No OFD packet to send [07:26:38]OFD Sender: No OFD packet to send [07:26:43]OFD Sender: No OFD packet to send [07:26:48]OFD Sender: No OFD packet to send [07:26:53]OFD Sender: No OFD packet to send [07:26:58]OFD Sender: No OFD packet to send [07:27:03]OFD Sender: No OFD packet to send [07:27:08]OFD Sender: No OFD packet to send [07:27:13]OFD Sender: No OFD packet to send [07:27:18]OFD Sender: No OFD packet to send [07:27:23]OFD Sender: No OFD packet to send [07:27:28]OFD Sender: No OFD packet to send [07:27:33]OFD Sender: No OFD packet to send [07:27:38]OFD Sender: No OFD packet to send [07:27:43]OFD Sender: No OFD packet to send [07:27:48]OFD Sender: No OFD packet to send [07:27:53]OFD Sender: No OFD packet to send [07:27:59]OFD Sender: No OFD packet to send [07:28:04]OFD Sender: No OFD packet to send [07:28:09]OFD Sender: No OFD packet to send [07:28:14]OFD Sender: No OFD packet to send [07:28:19]OFD Sender: No OFD packet to send [07:28:24]OFD Sender: No OFD packet to send [07:28:29]OFD Sender: No OFD packet to send [07:28:34]OFD Sender: No OFD packet to send [07:28:39]OFD Sender: No OFD packet to send [07:28:44]OFD Sender: No OFD packet to send [07:28:49]OFD Sender: No OFD packet to send [07:28:54]OFD Sender: No OFD packet to send [07:28:59]OFD Sender: No OFD packet to send [07:29:04]OFD Sender: No OFD packet to send [07:29:09]OFD Sender: No OFD packet to send [07:29:14]OFD Sender: No OFD packet to send [07:29:19]OFD Sender: No OFD packet to send [07:29:24]OFD Sender: No OFD packet to send [07:29:29]OFD Sender: No OFD packet to send [07:29:34]OFD Sender: No OFD packet to send [07:29:39]OFD Sender: No OFD packet to send [07:29:44]OFD Sender: No OFD packet to send [07:29:49]OFD Sender: No OFD packet to send [07:29:54]OFD Sender: No OFD packet to send [07:29:59]OFD Sender: No OFD packet to send [07:30:04]OFD Sender: No OFD packet to send [07:30:09]OFD Sender: No OFD packet to send [07:30:14]OFD Sender: No OFD packet to send [07:30:19]OFD Sender: No OFD packet to send [07:30:24]OFD Sender: No OFD packet to send [07:30:26]accept exits with 10 [07:30:26]New connection [07:30:26]New thread 3067415908 created [07:30:26]Thread 3067559268 joined [07:30:26]Waiting for new connection... [07:30:26] Sock 10.Parse request [07:30:26]Sock 10.Check first char [07:30:26]Sock 10.First char is OK [07:30:26]request: POST /json_proto HTTP/1.0 [07:30:26]Method: POST [07:30:26]URL: /json_proto [07:30:26]Method is POST - this is cgi request [07:30:26]url: /json_proto [07:30:26]query_string will be loaded in cgi processing [07:30:26]execute_cgi json_proto POST (null) [07:30:26]execute_cgi path=json_proto method=POST [07:30:26]POST find Content-Length [07:30:26]Host: 172.17.63.195:8080 [07:30:26]Content-Length: 632 [07:30:26]Content-Type: application/json [07:30:26] [07:30:26]POST finish read [07:30:26]Found Content-Length = 632 [07:30:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)448999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:30:26]execute_script... [07:30: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)448999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:30:26]POST & json_proto [07:30:26]process_json_proto [07:30:26]json parsed OK: [07:30:26]protocol is kg_v1.0 [07:30:26]action value=close_receipt [07:30:26]process_action close_receipt [07:30:26]cmd_close_receipt [07:30:26]MH_GetDate [07:30:26]Write to MH i2c: F0 00 00 DE 0F DC [07:30:26]Write i2c OK [07:30:26]MH_I2C_Read... [07:30:26]Read from MH i2c: F0 [07:30:26]MH_I2C_Read... [07:30:26]Read from MH i2c: F0 09 00 [07:30:26]MH_I2C_Read... [07:30:26]Read from MH i2c: F0 09 00 DE 0F 00 95 9A 1C 67 68 46 19 67 C5 [07:30:26]GetLastDocTimeStamp 1729926733 [07:30:26]current date 1729927829 [07:30:26]FM_GetShiftState [07:30:26]SAM_PROTO_GetShiftState [07:30:26]wFMCommunicate request_size=4 [07:30:26]MH_SAM_APDU [07:30:26]CAPDU: 80 13 01 00 [07:30:26]Write to MH i2c: E2 08 00 DF 0F 80 13 01 00 00 00 00 00 6B [07:30:26]Write i2c OK [07:30:26]MH_I2C_Read... [07:30:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:30:26]Read from MH i2c: E2 [07:30:26]MH_I2C_Read... [07:30:26]Read from MH i2c: E2 0E 00 [07:30:26]MH_I2C_Read... [07:30:26]Read from MH i2c: E2 0E 00 DF 0F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 7A [07:30:26]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [07:30:26]wFMCommunicate OK [07:30:26]SAM_PROTO_GetShiftState done [07:30:26]FM_GetShiftState done [07:30:26]opened in 1729900879 [07:30:26]opened+sec_in_day 1729987279 [07:30:26]quantity*price = 50000 [07:30:26]sum+1 = 50001 [07:30:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 16 26.10.2024 07:30 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201254 ФПД: 270671778967837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T073029&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201254&fm=270671778967837&tin=02508201610067®Number=0000000000091777&sum=50000 [07:30:27]StoreToDocumentArchive [07:30:27]shift 543 fd 201254 [07:30:27]save to /storage/0543/doc_00201254 [07:30:27]save last doc name /storage/0543/doc_00201254 to /storage/kkm_last_doc_name [07:30:27]save OK [07:30:27]Clear old archive folders... [07:30:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:30:27]tlvbuf is 01747AF0 [07:30:27]SAM_PROTO_ClearQueue [07:30:27]wFMCommunicate request_size=4 [07:30:27]MH_SAM_APDU [07:30:27]CAPDU: 80 09 00 00 [07:30:27]Write to MH i2c: E2 08 00 EC 0F 80 09 00 00 00 00 00 00 6D [07:30:27]Write i2c OK [07:30:27]MH_I2C_Read... [07:30:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:30:27]Read from MH i2c: E2 [07:30:27]MH_I2C_Read... [07:30:27]Read from MH i2c: E2 03 00 [07:30:27]MH_I2C_Read... [07:30:27]Read from MH i2c: E2 03 00 EC 0F 00 90 00 6F [07:30:27]RAPDU: 90 00 [07:30:27]wFMCommunicate OK [07:30:27]SAM_PROTO_ClearQueue done [07:30:27]KKMCreateOFDPacket [07:30:27]OFDProtocolAddRootSTLVToBuf [07:30:27]FM_MakeSignedData [07:30:27]FM_MakeSignedData [07:30:27]SAM_PROTO_SignData [07:30:27]wFMCommunicate request_size=4 [07:30:27]MH_SAM_APDU [07:30:27]CAPDU: 80 0D 01 02 [07:30:27]Write to MH i2c: E2 08 00 ED 0F 80 0D 01 02 00 00 00 00 75 [07:30:27]Write i2c OK [07:30:27]MH_I2C_Read... [07:30:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:30:27]Read from MH i2c: E2 [07:30:27]MH_I2C_Read... [07:30:27]Read from MH i2c: E2 03 00 [07:30:27]MH_I2C_Read... [07:30:27]Read from MH i2c: E2 03 00 ED 0F 00 90 00 70 [07:30:27]RAPDU: 90 00 [07:30:27]wFMCommunicate OK [07:30:27]wFMCommunicate request_size=255 [07:30:27]MH_SAM_APDU [07:30:27]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 95 9A 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 26 12 03 00 35 04 06 00 [07:30:27]Write to MH i2c: E2 02 01 EE 0F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 95 9A 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 26 12 03 00 35 04 06 00 00 00 84 [07:30:27]Write i2c OK [07:30:27]MH_I2C_Read... [07:30:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:30:27]Read from MH i2c: E2 [07:30:27]MH_I2C_Read... [07:30:27]Read from MH i2c: E2 03 00 [07:30:27]MH_I2C_Read... [07:30:27]Read from MH i2c: E2 03 00 EE 0F 00 90 00 71 [07:30:27]RAPDU: 90 00 [07:30:27]wFMCommunicate OK [07:30:27]wFMCommunicate request_size=11 [07:30:27]MH_SAM_APDU [07:30:27]CAPDU: 80 0D 02 02 06 F6 2C AF 3C 71 1D [07:30:27]Write to MH i2c: E2 0E 00 EF 0F 80 0D 02 02 06 00 F6 2C AF 3C 71 1D 00 00 1F [07:30:27]Write i2c OK [07:30:27]MH_I2C_Read... [07:30:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:30:27]Read from MH i2c: E2 [07:30:27]MH_I2C_Read... [07:30:27]Read from MH i2c: E2 03 00 [07:30:27]MH_I2C_Read... [07:30:27]Read from MH i2c: E2 03 00 EF 0F 00 90 00 72 [07:30:27]RAPDU: 90 00 [07:30:27]wFMCommunicate OK [07:30:27]wFMCommunicate request_size=4 [07:30:27]MH_SAM_APDU [07:30:27]CAPDU: 80 0D 03 02 [07:30:27]Write to MH i2c: E2 08 00 F0 0F 80 0D 03 02 00 00 00 00 7A [07:30:27]Write i2c OK [07:30:27]MH_I2C_Read... [07:30:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:30:27]Read from MH i2c: E2 [07:30:27]MH_I2C_Read... [07:30:27]Read from MH i2c: E2 0B 00 [07:30:27]MH_I2C_Read... [07:30:27]Read from MH i2c: E2 0B 00 F0 0F 00 96 E5 18 93 E0 07 AC DD 90 00 11 [07:30:27]RAPDU: 96 E5 18 93 E0 07 AC DD 90 00 [07:30:27]wFMCommunicate OK [07:30:27]SAM_PROTO_SignData done [07:30:27]FM_MakeSignedData done [07:30:27]CreateOFDProtocolMessage [07:30:27]wFMCommunicate request_size=4 [07:30:27]MH_SAM_APDU [07:30:27]CAPDU: 80 11 00 00 [07:30:27]Write to MH i2c: E2 08 00 F1 0F 80 11 00 00 00 00 00 00 7A [07:30:27]Write i2c OK [07:30:27]MH_I2C_Read... [07:30:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:30:27]Read from MH i2c: E2 [07:30:27]MH_I2C_Read... [07:30:27]Read from MH i2c: E2 17 00 [07:30:27]MH_I2C_Read... [07:30:27]Read from MH i2c: E2 17 00 F1 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CF [07:30:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:30:27]wFMCommunicate OK [07:30:27]CreateOFDProtocolMessage done [07:30:27]OFDSenderStorePacket 201254 [07:30:27]StoreOFDPacket docnum=201254 [07:30:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 FA E0 08 01 DC 3A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 95 9A 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 26 12 03 00 35 04 06 00 F6 2C AF 3C 71 1D 96 E5 18 93 E0 07 AC DD [07:30:27]CheckFolder [07:30:27]dirname=/storage/ofd_packets [07:30:27]CheckFolder done [07:30:27]ProducePacketName [07:30:27]name=ofd_packets/00201254 [07:30:27]NVStorageSaveData ofd_packets/00201254 [07:30:27]File name is /storage/ofd_packets/00201254 [07:30:27]Write 302 bytes [07:30:27]NVStorageSaveData done [07:30:27]OFDSenderStorePacket done [07:30:27]KKMCreateOFDPacket done [07:30:27]NVStorageSaveData kkm_last_timestamp [07:30:27]File name is /storage/kkm_last_timestamp [07:30:27]Write 4 bytes [07:30:27]NVStorageSaveData done [07:30:27]ExternCall_PrintAddStr [07:30:27]wPrintStart [07:30:27]Write to MH i2c: 01 00 00 F2 0F 01 [07:30:27]Write i2c OK [07:30:27]MH_I2C_Read... [07:30:27]Read from MH i2c: 01 [07:30:27]MH_I2C_Read... [07:30:27]Read from MH i2c: 01 07 00 [07:30:27]MH_I2C_Read... [07:30:27]Read from MH i2c: 01 07 00 F2 0F 00 00 00 00 00 FF 0F 16 [07:30:27]RasterBufferAndPrint [07:30:27]line Счет N : (1)448999 [07:30:27]line ИНН: 02508201610067 [07:30:27]line Контрольно-Кассовый Чек [07:30:27]line ПРОДАЖА [07:30:27]line ТРК (МРК, ГНК) : 63 [07:30:27]line Товар: 2710124130 [07:30:27]line SUPER 92-К-5 [07:30:27]line 7.310 * 68.40 [07:30:27]line = 500.00 [07:30:27]line НДС 12% НСП 1% [07:30:27]line > о реализуемом товаре [07:30:27]line ИТОГО: 500.00 [07:30:27]line НСП 1% : 4.42 [07:30:27]line НДС 12% : 53.10 [07:30:27]line Наличными: 500.00 [07:30:27]line Безнал.: 0.00 [07:30:27]line Место: АЗС № 171 "Партнер Нефть" [07:30:27]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [07:30:27]line СНО: Общий режим [07:30:27]line Чек 16 26.10.2024 07:30 [07:30:27]line Смена: 543 ФФД: 1.0 [07:30:27]line ЗНМ: 0300000109 [07:30:27]line РНМ: 0000000000091777 [07:30:27]line Версия ККМ: 001 [07:30:27]line ФМ: 0000000000871756 [07:30:27]line ФД: 201254 [07:30:27]line ФПД: 270671778967837 [07:30:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T073029&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201254&fm=270671778967837&tin=02508201610067®Number=0000000000091777&sum=50000 [07:30:28]OFD Sender: Processing packet 201254 [packets to send 112, broken 111] [07:30:28]ProducePacketName [07:30:28]name=ofd_packets/00201254 [07:30:28]OFD Sender: To server: pG, [07:30:28]CommunicateWithHost lk.salyk.kg:30040 [07:30:28]ConnectInit lk.salyk.kg [07:30:28]written 0, free lines is 4095 [07:30:28]Connected sock=9 [07:30:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 FA E0 08 01 DC 3A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 95 9A 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 26 12 03 00 35 04 06 00 F6 2C AF 3C 71 1D 96 E5 18 93 E0 07 AC DD [07:30:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 4A 61 47 00 D2 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 26 12 03 00 F4 03 04 00 3F 46 1C 67 B6 04 01 00 00 C0 61 C4 A7 37 3F 80 4A [07:30:28]CommunicateWithHost err = 0 [07:30:28]CheckOFDResponse [07:30:28]1017 (14) - 77093643461234 [07:30:28]1041 (16) - 0000000000871756 [07:30:28]1040 (4) - 201254 [07:30:28]1012 (4) - 26.10.2024 01:30 [07:30:28]1206 (1) - 0 [07:30:28]OFD Sender: Remove packet 201254 [07:30:28]ProducePacketName [07:30:28]name=ofd_packets/00201254 [07:30:28]NVStorageDeleteData [07:30:28]Write to MH i2c: 01 00 00 1A 10 2A [07:30:28]Write i2c OK [07:30:28]MH_I2C_Read... [07:30:28]Read from MH i2c: 01 [07:30:28]MH_I2C_Read... [07:30:28]Read from MH i2c: 01 07 00 [07:30:28]MH_I2C_Read... [07:30:28]Read from MH i2c: 01 07 00 1A 10 00 00 00 00 00 D1 0C 0E [07:30:28]RasterBufferAndPrint [07:30:28]line [07:30:28]line [07:30:28]line [07:30:28]line [07:30:28]line [07:30:28]written 0, free lines is 3285 [07:30:28]MH_Cut [07:30:28]Write to MH i2c: D1 01 00 21 10 01 03 [07:30:28]Write i2c OK [07:30:28]MH_I2C_Read... [07:30:28]Read from MH i2c: D1 [07:30:28]MH_I2C_Read... [07:30:28]Read from MH i2c: D1 01 00 [07:30:28]MH_I2C_Read... [07:30:28]Read from MH i2c: D1 01 00 21 10 00 02 [07:30:28]Write to MH i2c: 01 00 00 22 10 32 [07:30:28]Write i2c OK [07:30:28]MH_I2C_Read... [07:30:29]OFD Sender: No OFD packet to send [07:30:29]*** Cut start [07:30:29]*** Purtial cut [07:30:29]*** Stage 1: CUTSNS_PIN = 1 [07:30:29]Read from MH i2c: 01 [07:30:29]MH_I2C_Read... [07:30:29]*** Stop cut motor [07:30:29]*** Cut end [07:30:29]Read from MH i2c: 01 07 00 [07:30:29]MH_I2C_Read... [07:30:29]Read from MH i2c: 01 07 00 22 10 00 00 00 00 00 FF 0F 47 [07:30:29]process_action close_receipt done [07:30:29]requested_data is exist [07:30:29]produce_requested_data [07:30:29]requested_item fm.sn is exist - process it [07:30:29]wFMCommunicate request_size=4 [07:30:29]MH_SAM_APDU [07:30:29]CAPDU: 80 11 00 00 [07:30:29]Write to MH i2c: E2 08 00 23 10 80 11 00 00 00 00 00 00 AD [07:30:29]Write i2c OK [07:30:29]MH_I2C_Read... [07:30:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:30:29]Read from MH i2c: E2 [07:30:29]MH_I2C_Read... [07:30:29]Read from MH i2c: E2 17 00 [07:30:29]MH_I2C_Read... [07:30:29]Read from MH i2c: E2 17 00 23 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 02 [07:30:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:30:29]wFMCommunicate OK [07:30:29]requested_item fd.num is exist - process it [07:30:29]SAM_PROTO_GetFieldsCounters [07:30:29]wFMCommunicate request_size=4 [07:30:29]MH_SAM_APDU [07:30:29]CAPDU: 80 13 00 00 [07:30:29]Write to MH i2c: E2 08 00 24 10 80 13 00 00 00 00 00 00 B0 [07:30:29]Write i2c OK [07:30:29]MH_I2C_Read... [07:30:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:30:30]Read from MH i2c: E2 [07:30:30]MH_I2C_Read... [07:30:30]Read from MH i2c: E2 62 00 [07:30:30]MH_I2C_Read... [07:30:30]Read from MH i2c: E2 62 00 24 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 26 12 03 00 0E 04 04 00 1F 02 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 65 [07:30:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 26 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:30:30]wFMCommunicate OK [07:30:30]SAM_PROTO_GetFieldsCounters done [07:30:30]requested_item shift.num is exist - process it [07:30:30]requested_item shift.opened is exist - process it [07:30:30]req_shift_opened [07:30:30]FM_GetShiftState [07:30:30]SAM_PROTO_GetShiftState [07:30:30]wFMCommunicate request_size=4 [07:30:30]MH_SAM_APDU [07:30:30]CAPDU: 80 13 01 00 [07:30:30]Write to MH i2c: E2 08 00 25 10 80 13 01 00 00 00 00 00 B2 [07:30:30]Write i2c OK [07:30:30]MH_I2C_Read... [07:30:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:30:30]Read from MH i2c: E2 [07:30:30]MH_I2C_Read... [07:30:30]Read from MH i2c: E2 0E 00 [07:30:30]MH_I2C_Read... [07:30:30]Read from MH i2c: E2 0E 00 25 10 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C1 [07:30:30]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [07:30:30]wFMCommunicate OK [07:30:30]SAM_PROTO_GetShiftState done [07:30:30]FM_GetShiftState done [07:30:30]req_shift_opened done [07:30:30]requested_item shift.open_date is exist - process it [07:30:30]req_shift_open_date [07:30:30]req_shift_open_date done [07:30:30]produce_requested_data done [07:30:30]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201254,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [07:30:30]process_action_free close_receipt [07:30:30]json_value_free [07:30:30]json_value_free done [07:30:30]process_json_proto returns [07:30:30]Send response to host [07:30:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201254,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [07:30:30]free response buf [07:30:30]execute_script done [07:30:30]execute_script returns [07:30:30]free content buf [07:30:30]Sock 10.Close socket [07:30:30]Sock 10.Thread stoped [07:30:34]OFD Sender: No OFD packet to send [07:30:39]OFD Sender: No OFD packet to send [07:30:44]OFD Sender: No OFD packet to send [07:30:49]OFD Sender: No OFD packet to send [07:30:54]OFD Sender: No OFD packet to send [07:30:59]OFD Sender: No OFD packet to send [07:31:04]OFD Sender: No OFD packet to send [07:31:09]OFD Sender: No OFD packet to send [07:31:14]OFD Sender: No OFD packet to send [07:31:19]OFD Sender: No OFD packet to send [07:31:24]OFD Sender: No OFD packet to send [07:31:29]OFD Sender: No OFD packet to send [07:31:34]OFD Sender: No OFD packet to send [07:31:39]OFD Sender: No OFD packet to send [07:31:44]OFD Sender: No OFD packet to send [07:31:49]OFD Sender: No OFD packet to send [07:31:54]OFD Sender: No OFD packet to send [07:31:59]OFD Sender: No OFD packet to send [07:32:04]OFD Sender: No OFD packet to send [07:32:09]OFD Sender: No OFD packet to send [07:32:14]OFD Sender: No OFD packet to send [07:32:19]OFD Sender: No OFD packet to send [07:32:24]OFD Sender: No OFD packet to send [07:32:29]OFD Sender: No OFD packet to send [07:32:34]OFD Sender: No OFD packet to send [07:32:39]OFD Sender: No OFD packet to send [07:32:44]OFD Sender: No OFD packet to send [07:32:49]OFD Sender: No OFD packet to send [07:32:54]OFD Sender: No OFD packet to send [07:32:59]OFD Sender: No OFD packet to send [07:33:04]OFD Sender: No OFD packet to send [07:33:09]OFD Sender: No OFD packet to send [07:33:14]OFD Sender: No OFD packet to send [07:33:19]OFD Sender: No OFD packet to send [07:33:24]OFD Sender: No OFD packet to send [07:33:29]OFD Sender: No OFD packet to send [07:33:34]OFD Sender: No OFD packet to send [07:33:39]OFD Sender: No OFD packet to send [07:33:44]OFD Sender: No OFD packet to send [07:33:49]OFD Sender: No OFD packet to send [07:33:54]OFD Sender: No OFD packet to send [07:33:59]OFD Sender: No OFD packet to send [07:34:04]OFD Sender: No OFD packet to send [07:34:09]OFD Sender: No OFD packet to send [07:34:14]OFD Sender: No OFD packet to send [07:34:19]OFD Sender: No OFD packet to send [07:34:24]OFD Sender: No OFD packet to send [07:34:29]OFD Sender: No OFD packet to send [07:34:34]OFD Sender: No OFD packet to send [07:34:39]OFD Sender: No OFD packet to send [07:34:44]OFD Sender: No OFD packet to send [07:34:49]OFD Sender: No OFD packet to send [07:34:54]OFD Sender: No OFD packet to send [07:34:59]OFD Sender: No OFD packet to send [07:35:04]OFD Sender: No OFD packet to send [07:35:09]OFD Sender: No OFD packet to send [07:35:14]OFD Sender: No OFD packet to send [07:35:19]OFD Sender: No OFD packet to send [07:35:24]OFD Sender: No OFD packet to send [07:35:29]OFD Sender: No OFD packet to send [07:35:34]OFD Sender: No OFD packet to send [07:35:39]OFD Sender: No OFD packet to send [07:35:44]OFD Sender: No OFD packet to send [07:35:49]OFD Sender: No OFD packet to send [07:35:54]OFD Sender: No OFD packet to send [07:35:59]OFD Sender: No OFD packet to send [07:36:04]OFD Sender: No OFD packet to send [07:36:09]OFD Sender: No OFD packet to send [07:36:14]OFD Sender: No OFD packet to send [07:36:19]OFD Sender: No OFD packet to send [07:36:24]OFD Sender: No OFD packet to send [07:36:29]OFD Sender: No OFD packet to send [07:36:34]OFD Sender: No OFD packet to send [07:36:39]OFD Sender: No OFD packet to send [07:36:44]OFD Sender: No OFD packet to send [07:36:49]OFD Sender: No OFD packet to send [07:36:54]OFD Sender: No OFD packet to send [07:36:59]OFD Sender: No OFD packet to send [07:37:04]OFD Sender: No OFD packet to send [07:37:09]OFD Sender: No OFD packet to send [07:37:14]OFD Sender: No OFD packet to send [07:37:19]OFD Sender: No OFD packet to send [07:37:24]OFD Sender: No OFD packet to send [07:37:29]OFD Sender: No OFD packet to send [07:37:34]OFD Sender: No OFD packet to send [07:37:39]OFD Sender: No OFD packet to send [07:37:44]OFD Sender: No OFD packet to send [07:37:49]OFD Sender: No OFD packet to send [07:37:54]OFD Sender: No OFD packet to send [07:37:59]OFD Sender: No OFD packet to send [07:38:04]OFD Sender: No OFD packet to send [07:38:09]OFD Sender: No OFD packet to send [07:38:14]OFD Sender: No OFD packet to send [07:38:19]OFD Sender: No OFD packet to send [07:38:24]OFD Sender: No OFD packet to send [07:38:29]OFD Sender: No OFD packet to send [07:38:34]OFD Sender: No OFD packet to send [07:38:39]OFD Sender: No OFD packet to send [07:38:44]OFD Sender: No OFD packet to send [07:38:49]OFD Sender: No OFD packet to send [07:38:54]OFD Sender: No OFD packet to send [07:38:59]OFD Sender: No OFD packet to send [07:39:04]OFD Sender: No OFD packet to send [07:39:09]OFD Sender: No OFD packet to send [07:39:14]OFD Sender: No OFD packet to send [07:39:19]OFD Sender: No OFD packet to send [07:39:24]OFD Sender: No OFD packet to send [07:39:29]OFD Sender: No OFD packet to send [07:39:34]OFD Sender: No OFD packet to send [07:39:39]OFD Sender: No OFD packet to send [07:39:44]OFD Sender: No OFD packet to send [07:39:49]OFD Sender: No OFD packet to send [07:39:54]OFD Sender: No OFD packet to send [07:39:59]OFD Sender: No OFD packet to send [07:40:04]OFD Sender: No OFD packet to send [07:40:09]OFD Sender: No OFD packet to send [07:40:14]OFD Sender: No OFD packet to send [07:40:15]accept exits with 7 [07:40:15]New connection [07:40:15]New thread 3067559268 created [07:40:15]Thread 3067415908 joined [07:40:15]Waiting for new connection... [07:40:15] Sock 7.Parse request [07:40:15]Sock 7.Check first char [07:40:15]Sock 7.First char is OK [07:40:15]request: POST /json_proto HTTP/1.0 [07:40:15]Method: POST [07:40:15]URL: /json_proto [07:40:15]Method is POST - this is cgi request [07:40:15]url: /json_proto [07:40:15]query_string will be loaded in cgi processing [07:40:15]execute_cgi json_proto POST (null) [07:40:15]execute_cgi path=json_proto method=POST [07:40:15]POST find Content-Length [07:40:15]Host: 172.17.63.195:8080 [07:40:15]Content-Length: 674 [07:40:15]Content-Type: application/json [07:40:15] [07:40:15]POST finish read [07:40:15]Found Content-Length = 674 [07:40:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [07:40:15]execute_script... [07:40: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)449000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [07:40:15]POST & json_proto [07:40:15]process_json_proto [07:40:15]json parsed OK: [07:40:15]protocol is kg_v1.0 [07:40:15]action value=close_receipt [07:40:15]process_action close_receipt [07:40:15]cmd_close_receipt [07:40:15]MH_GetDate [07:40:15]Write to MH i2c: F0 00 00 26 10 25 [07:40:15]Write i2c OK [07:40:15]MH_I2C_Read... [07:40:15]Read from MH i2c: F0 [07:40:15]MH_I2C_Read... [07:40:15]Read from MH i2c: F0 09 00 [07:40:15]MH_I2C_Read... [07:40:15]Read from MH i2c: F0 09 00 26 10 00 E2 9C 1C 67 68 46 19 67 5D [07:40:15]GetLastDocTimeStamp 1729927829 [07:40:15]current date 1729928418 [07:40:15]FM_GetShiftState [07:40:15]SAM_PROTO_GetShiftState [07:40:15]wFMCommunicate request_size=4 [07:40:15]MH_SAM_APDU [07:40:15]CAPDU: 80 13 01 00 [07:40:15]Write to MH i2c: E2 08 00 27 10 80 13 01 00 00 00 00 00 B4 [07:40:15]Write i2c OK [07:40:15]MH_I2C_Read... [07:40:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:40:15]Read from MH i2c: E2 [07:40:15]MH_I2C_Read... [07:40:15]Read from MH i2c: E2 0E 00 [07:40:15]MH_I2C_Read... [07:40:15]Read from MH i2c: E2 0E 00 27 10 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C3 [07:40:15]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [07:40:15]wFMCommunicate OK [07:40:15]SAM_PROTO_GetShiftState done [07:40:15]FM_GetShiftState done [07:40:15]opened in 1729900879 [07:40:15]opened+sec_in_day 1729987279 [07:40:15]quantity*price = 50063 [07:40:15]sum+1 = 50064 [07:40:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 17 26.10.2024 07:40 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201255 ФПД: 281322502726246 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T074018&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201255&fm=281322502726246&tin=02508201610067®Number=0000000000091777&sum=50000 [07:40:16]StoreToDocumentArchive [07:40:16]shift 543 fd 201255 [07:40:16]save to /storage/0543/doc_00201255 [07:40:16]save last doc name /storage/0543/doc_00201255 to /storage/kkm_last_doc_name [07:40:16]save OK [07:40:16]Clear old archive folders... [07:40:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:40:16]tlvbuf is 01767570 [07:40:16]SAM_PROTO_ClearQueue [07:40:16]wFMCommunicate request_size=4 [07:40:16]MH_SAM_APDU [07:40:16]CAPDU: 80 09 00 00 [07:40:16]Write to MH i2c: E2 08 00 34 10 80 09 00 00 00 00 00 00 B6 [07:40:16]Write i2c OK [07:40:16]MH_I2C_Read... [07:40:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:40:16]Read from MH i2c: E2 [07:40:16]MH_I2C_Read... [07:40:16]Read from MH i2c: E2 03 00 [07:40:16]MH_I2C_Read... [07:40:16]Read from MH i2c: E2 03 00 34 10 00 90 00 B8 [07:40:16]RAPDU: 90 00 [07:40:16]wFMCommunicate OK [07:40:16]SAM_PROTO_ClearQueue done [07:40:16]KKMCreateOFDPacket [07:40:16]OFDProtocolAddRootSTLVToBuf [07:40:16]FM_MakeSignedData [07:40:16]FM_MakeSignedData [07:40:16]SAM_PROTO_SignData [07:40:16]wFMCommunicate request_size=4 [07:40:16]MH_SAM_APDU [07:40:16]CAPDU: 80 0D 01 02 [07:40:16]Write to MH i2c: E2 08 00 35 10 80 0D 01 02 00 00 00 00 BE [07:40:16]Write i2c OK [07:40:16]MH_I2C_Read... [07:40:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:40:16]Read from MH i2c: E2 [07:40:16]MH_I2C_Read... [07:40:16]Read from MH i2c: E2 03 00 [07:40:16]MH_I2C_Read... [07:40:16]Read from MH i2c: E2 03 00 35 10 00 90 00 B9 [07:40:16]RAPDU: 90 00 [07:40:16]wFMCommunicate OK [07:40:16]wFMCommunicate request_size=255 [07:40:16]MH_SAM_APDU [07:40:16]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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 11 00 00 00 F4 03 04 00 E2 9C 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 27 12 03 00 35 04 06 00 FF DC 7F D7 [07:40:17]Write to MH i2c: E2 02 01 36 10 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 11 00 00 00 F4 03 04 00 E2 9C 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 27 12 03 00 35 04 06 00 FF DC 7F D7 00 00 70 [07:40:17]Write i2c OK [07:40:17]MH_I2C_Read... [07:40:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:40:17]Read from MH i2c: E2 [07:40:17]MH_I2C_Read... [07:40:17]Read from MH i2c: E2 03 00 [07:40:17]MH_I2C_Read... [07:40:17]Read from MH i2c: E2 03 00 36 10 00 90 00 BA [07:40:17]RAPDU: 90 00 [07:40:17]wFMCommunicate OK [07:40:17]wFMCommunicate request_size=7 [07:40:17]MH_SAM_APDU [07:40:17]CAPDU: 80 0D 02 02 02 A2 66 [07:40:17]Write to MH i2c: E2 0A 00 37 10 80 0D 02 02 02 00 A2 66 00 00 CD [07:40:17]Write i2c OK [07:40:17]MH_I2C_Read... [07:40:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:40:17]Read from MH i2c: E2 [07:40:17]MH_I2C_Read... [07:40:17]Read from MH i2c: E2 03 00 [07:40:17]MH_I2C_Read... [07:40:17]Read from MH i2c: E2 03 00 37 10 00 90 00 BB [07:40:17]RAPDU: 90 00 [07:40:17]wFMCommunicate OK [07:40:17]wFMCommunicate request_size=4 [07:40:17]MH_SAM_APDU [07:40:17]CAPDU: 80 0D 03 02 [07:40:17]Write to MH i2c: E2 08 00 38 10 80 0D 03 02 00 00 00 00 C3 [07:40:17]Write i2c OK [07:40:17]MH_I2C_Read... [07:40:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:40:17]Read from MH i2c: E2 [07:40:17]MH_I2C_Read... [07:40:17]Read from MH i2c: E2 0B 00 [07:40:17]MH_I2C_Read... [07:40:17]Read from MH i2c: E2 0B 00 38 10 00 28 CA C5 1C 65 65 13 7D 90 00 F1 [07:40:17]RAPDU: 28 CA C5 1C 65 65 13 7D 90 00 [07:40:17]wFMCommunicate OK [07:40:17]SAM_PROTO_SignData done [07:40:17]FM_MakeSignedData done [07:40:17]CreateOFDProtocolMessage [07:40:17]wFMCommunicate request_size=4 [07:40:17]MH_SAM_APDU [07:40:17]CAPDU: 80 11 00 00 [07:40:17]Write to MH i2c: E2 08 00 39 10 80 11 00 00 00 00 00 00 C3 [07:40:17]Write i2c OK [07:40:17]MH_I2C_Read... [07:40:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:40:17]Read from MH i2c: E2 [07:40:17]MH_I2C_Read... [07:40:17]Read from MH i2c: E2 17 00 [07:40:17]MH_I2C_Read... [07:40:17]Read from MH i2c: E2 17 00 39 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 18 [07:40:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:40:17]wFMCommunicate OK [07:40:17]CreateOFDProtocolMessage done [07:40:17]OFDSenderStorePacket 201255 [07:40:17]StoreOFDPacket docnum=201255 [07:40:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 AC 28 04 01 AC AE 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 11 00 00 00 F4 03 04 00 E2 9C 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 27 12 03 00 35 04 06 00 FF DC 7F D7 A2 66 28 CA C5 1C 65 65 13 7D [07:40:17]CheckFolder [07:40:17]dirname=/storage/ofd_packets [07:40:17]CheckFolder done [07:40:17]ProducePacketName [07:40:17]name=ofd_packets/00201255 [07:40:17]NVStorageSaveData ofd_packets/00201255 [07:40:17]File name is /storage/ofd_packets/00201255 [07:40:17]Write 298 bytes [07:40:17]NVStorageSaveData done [07:40:17]OFDSenderStorePacket done [07:40:17]KKMCreateOFDPacket done [07:40:17]NVStorageSaveData kkm_last_timestamp [07:40:17]File name is /storage/kkm_last_timestamp [07:40:17]Write 4 bytes [07:40:17]NVStorageSaveData done [07:40:17]ExternCall_PrintAddStr [07:40:17]wPrintStart [07:40:17]Write to MH i2c: 01 00 00 3A 10 4A [07:40:17]Write i2c OK [07:40:17]MH_I2C_Read... [07:40:17]Read from MH i2c: 01 [07:40:17]MH_I2C_Read... [07:40:17]Read from MH i2c: 01 07 00 [07:40:17]MH_I2C_Read... [07:40:17]Read from MH i2c: 01 07 00 3A 10 00 00 00 00 00 FF 0F 5F [07:40:17]RasterBufferAndPrint [07:40:17]line Счет N : (1)449000 [07:40:17]line ИНН: 02508201610067 [07:40:17]line Контрольно-Кассовый Чек [07:40:17]line ПРОДАЖА [07:40:17]line ТРК (МРК, ГНК) : 43 [07:40:17]line Товар: 2710194210 [07:40:17]line ДТ-К-2 [07:40:17]line 6.570 * 76.20 [07:40:17]line = 500.63 [07:40:17]line НДС 12% НСП 1% [07:40:17]line > о реализуемом товаре [07:40:17]line ОКРУГЛЕНИЕ: -0.63 [07:40:17]line ИТОГО: 500.00 [07:40:17]line Внесено: 500.00 [07:40:17]line СДАЧА: 0.00 [07:40:17]line НСП 1% : 4.43 [07:40:17]line НДС 12% : 53.16 [07:40:17]line Наличными: 500.00 [07:40:17]line Безнал.: 0.00 [07:40:17]line Место: АЗС № 171 "Партнер Нефть" [07:40:17]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [07:40:17]line СНО: Общий режим [07:40:17]line Чек 17 26.10.2024 07:40 [07:40:17]line Смена: 543 ФФД: 1.0 [07:40:17]line ЗНМ: 0300000109 [07:40:17]line РНМ: 0000000000091777 [07:40:17]line Версия ККМ: 001 [07:40:17]line ФМ: 0000000000871756 [07:40:17]line ФД: 201255 [07:40:17]line ФПД: 281322502726246 [07:40:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T074018&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201255&fm=281322502726246&tin=02508201610067®Number=0000000000091777&sum=50000 [07:40:17]OFD Sender: Processing packet 201255 [packets to send 112, broken 111] [07:40:17]ProducePacketName [07:40:17]name=ofd_packets/00201255 [07:40:17]OFD Sender: To server: pG, [07:40:17]CommunicateWithHost lk.salyk.kg:30040 [07:40:17]ConnectInit lk.salyk.kg [07:40:17]written 0, free lines is 4095 [07:40:17]Connected sock=10 [07:40:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 AC 28 04 01 AC AE 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 11 00 00 00 F4 03 04 00 E2 9C 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 27 12 03 00 35 04 06 00 FF DC 7F D7 A2 66 28 CA C5 1C 65 65 13 7D [07:40:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 3F DD 47 00 46 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 27 12 03 00 F4 03 04 00 8C 48 1C 67 B6 04 01 00 00 9C A5 63 AB 86 4E 3A EA [07:40:18]CommunicateWithHost err = 0 [07:40:18]CheckOFDResponse [07:40:18]1017 (14) - 77093643461234 [07:40:18]1041 (16) - 0000000000871756 [07:40:18]1040 (4) - 201255 [07:40:18]1012 (4) - 26.10.2024 01:40 [07:40:18]1206 (1) - 0 [07:40:18]OFD Sender: Remove packet 201255 [07:40:18]ProducePacketName [07:40:18]name=ofd_packets/00201255 [07:40:18]NVStorageDeleteData [07:40:18]Write to MH i2c: 01 00 00 65 10 75 [07:40:18]Write i2c OK [07:40:18]MH_I2C_Read... [07:40:18]Read from MH i2c: 01 [07:40:18]MH_I2C_Read... [07:40:18]Read from MH i2c: 01 07 00 [07:40:18]MH_I2C_Read... [07:40:18]Read from MH i2c: 01 07 00 65 10 00 00 00 00 00 93 0C 1B [07:40:18]RasterBufferAndPrint [07:40:18]line [07:40:18]line [07:40:18]line [07:40:18]line [07:40:18]line [07:40:18]written 0, free lines is 3223 [07:40:18]MH_Cut [07:40:18]Write to MH i2c: D1 01 00 6C 10 01 4E [07:40:18]Write i2c OK [07:40:18]MH_I2C_Read... [07:40:18]Read from MH i2c: D1 [07:40:18]MH_I2C_Read... [07:40:18]Read from MH i2c: D1 01 00 [07:40:18]MH_I2C_Read... [07:40:18]Read from MH i2c: D1 01 00 6C 10 00 4D [07:40:18]Write to MH i2c: 01 00 00 6D 10 7D [07:40:18]Write i2c OK [07:40:18]MH_I2C_Read... [07:40:18]OFD Sender: No OFD packet to send [07:40:19]*** Cut start [07:40:19]*** Purtial cut [07:40:19]*** Stage 1: CUTSNS_PIN = 1 [07:40:19]Read from MH i2c: 01 [07:40:19]MH_I2C_Read... [07:40:19]*** Stop cut motor [07:40:19]*** Cut end [07:40:19]Read from MH i2c: 01 07 00 [07:40:19]MH_I2C_Read... [07:40:19]Read from MH i2c: 01 07 00 6D 10 00 00 00 00 00 FF 0F 92 [07:40:19]process_action close_receipt done [07:40:19]requested_data is exist [07:40:19]produce_requested_data [07:40:19]requested_item fm.sn is exist - process it [07:40:19]wFMCommunicate request_size=4 [07:40:19]MH_SAM_APDU [07:40:19]CAPDU: 80 11 00 00 [07:40:19]Write to MH i2c: E2 08 00 6E 10 80 11 00 00 00 00 00 00 F8 [07:40:19]Write i2c OK [07:40:19]MH_I2C_Read... [07:40:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:40:19]Read from MH i2c: E2 [07:40:19]MH_I2C_Read... [07:40:19]Read from MH i2c: E2 17 00 [07:40:19]MH_I2C_Read... [07:40:19]Read from MH i2c: E2 17 00 6E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4D [07:40:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:40:19]wFMCommunicate OK [07:40:19]requested_item fd.num is exist - process it [07:40:19]SAM_PROTO_GetFieldsCounters [07:40:19]wFMCommunicate request_size=4 [07:40:19]MH_SAM_APDU [07:40:19]CAPDU: 80 13 00 00 [07:40:19]Write to MH i2c: E2 08 00 6F 10 80 13 00 00 00 00 00 00 FB [07:40:19]Write i2c OK [07:40:19]MH_I2C_Read... [07:40:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:40:19]Read from MH i2c: E2 [07:40:19]MH_I2C_Read... [07:40:19]Read from MH i2c: E2 62 00 [07:40:19]MH_I2C_Read... [07:40:19]Read from MH i2c: E2 62 00 6F 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 27 12 03 00 0E 04 04 00 1F 02 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 B4 [07:40:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 27 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:40:19]wFMCommunicate OK [07:40:19]SAM_PROTO_GetFieldsCounters done [07:40:19]requested_item shift.num is exist - process it [07:40:19]requested_item shift.opened is exist - process it [07:40:19]req_shift_opened [07:40:19]FM_GetShiftState [07:40:19]SAM_PROTO_GetShiftState [07:40:19]wFMCommunicate request_size=4 [07:40:19]MH_SAM_APDU [07:40:19]CAPDU: 80 13 01 00 [07:40:19]Write to MH i2c: E2 08 00 70 10 80 13 01 00 00 00 00 00 FD [07:40:19]Write i2c OK [07:40:19]MH_I2C_Read... [07:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:40:19]Read from MH i2c: E2 [07:40:19]MH_I2C_Read... [07:40:19]Read from MH i2c: E2 0E 00 [07:40:19]MH_I2C_Read... [07:40:19]Read from MH i2c: E2 0E 00 70 10 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 0C [07:40:19]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [07:40:19]wFMCommunicate OK [07:40:19]SAM_PROTO_GetShiftState done [07:40:19]FM_GetShiftState done [07:40:19]req_shift_opened done [07:40:19]requested_item shift.open_date is exist - process it [07:40:19]req_shift_open_date [07:40:19]req_shift_open_date done [07:40:19]produce_requested_data done [07:40:19]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201255,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [07:40:19]process_action_free close_receipt [07:40:19]json_value_free [07:40:19]json_value_free done [07:40:19]process_json_proto returns [07:40:19]Send response to host [07:40:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201255,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [07:40:19]free response buf [07:40:19]execute_script done [07:40:19]execute_script returns [07:40:19]free content buf [07:40:19]Sock 7.Close socket [07:40:19]Sock 7.Thread stoped [07:40:23]OFD Sender: No OFD packet to send [07:40:28]OFD Sender: No OFD packet to send [07:40:33]OFD Sender: No OFD packet to send [07:40:38]OFD Sender: No OFD packet to send [07:40:43]OFD Sender: No OFD packet to send [07:40:48]OFD Sender: No OFD packet to send [07:40:53]OFD Sender: No OFD packet to send [07:40:58]OFD Sender: No OFD packet to send [07:41:03]OFD Sender: No OFD packet to send [07:41:08]OFD Sender: No OFD packet to send [07:41:13]OFD Sender: No OFD packet to send [07:41:18]OFD Sender: No OFD packet to send [07:41:23]OFD Sender: No OFD packet to send [07:41:28]OFD Sender: No OFD packet to send [07:41:33]OFD Sender: No OFD packet to send [07:41:38]OFD Sender: No OFD packet to send [07:41:43]OFD Sender: No OFD packet to send [07:41:48]OFD Sender: No OFD packet to send [07:41:53]OFD Sender: No OFD packet to send [07:41:58]OFD Sender: No OFD packet to send [07:42:03]OFD Sender: No OFD packet to send [07:42:08]OFD Sender: No OFD packet to send [07:42:13]OFD Sender: No OFD packet to send [07:42:18]OFD Sender: No OFD packet to send [07:42:23]OFD Sender: No OFD packet to send [07:42:28]OFD Sender: No OFD packet to send [07:42:33]OFD Sender: No OFD packet to send [07:42:38]OFD Sender: No OFD packet to send [07:42:43]OFD Sender: No OFD packet to send [07:42:48]OFD Sender: No OFD packet to send [07:42:53]OFD Sender: No OFD packet to send [07:42:58]OFD Sender: No OFD packet to send [07:43:03]OFD Sender: No OFD packet to send [07:43:08]OFD Sender: No OFD packet to send [07:43:13]OFD Sender: No OFD packet to send [07:43:18]OFD Sender: No OFD packet to send [07:43:23]OFD Sender: No OFD packet to send [07:43:28]OFD Sender: No OFD packet to send [07:43:33]OFD Sender: No OFD packet to send [07:43:38]OFD Sender: No OFD packet to send [07:43:43]OFD Sender: No OFD packet to send [07:43:48]OFD Sender: No OFD packet to send [07:43:53]OFD Sender: No OFD packet to send [07:43:58]OFD Sender: No OFD packet to send [07:44:03]OFD Sender: No OFD packet to send [07:44:08]OFD Sender: No OFD packet to send [07:44:13]OFD Sender: No OFD packet to send [07:44:18]OFD Sender: No OFD packet to send [07:44:23]OFD Sender: No OFD packet to send [07:44:28]OFD Sender: No OFD packet to send [07:44:33]OFD Sender: No OFD packet to send [07:44:36]accept exits with 9 [07:44:36]New connection [07:44:36]New thread 3067415908 created [07:44:36]Thread 3067559268 joined [07:44:36]Waiting for new connection... [07:44:36] Sock 9.Parse request [07:44:36]Sock 9.Check first char [07:44:36]Sock 9.First char is OK [07:44:36]request: POST /json_proto HTTP/1.0 [07:44:36]Method: POST [07:44:36]URL: /json_proto [07:44:36]Method is POST - this is cgi request [07:44:36]url: /json_proto [07:44:36]query_string will be loaded in cgi processing [07:44:36]execute_cgi json_proto POST (null) [07:44:36]execute_cgi path=json_proto method=POST [07:44:36]POST find Content-Length [07:44:36]Host: 172.17.63.195:8080 [07:44:36]Content-Length: 677 [07:44:36]Content-Type: application/json [07:44:36] [07:44:36]POST finish read [07:44:36]Found Content-Length = 677 [07:44:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [07:44:36]execute_script... [07:44: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)449001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [07:44:36]POST & json_proto [07:44:36]process_json_proto [07:44:36]json parsed OK: [07:44:36]protocol is kg_v1.0 [07:44:36]action value=close_receipt [07:44:36]process_action close_receipt [07:44:36]cmd_close_receipt [07:44:36]MH_GetDate [07:44:36]Write to MH i2c: F0 00 00 71 10 70 [07:44:36]Write i2c OK [07:44:36]MH_I2C_Read... [07:44:36]Read from MH i2c: F0 [07:44:36]MH_I2C_Read... [07:44:36]Read from MH i2c: F0 09 00 [07:44:36]MH_I2C_Read... [07:44:36]Read from MH i2c: F0 09 00 71 10 00 E8 9D 1C 67 68 46 19 67 AF [07:44:36]GetLastDocTimeStamp 1729928418 [07:44:36]current date 1729928680 [07:44:36]FM_GetShiftState [07:44:36]SAM_PROTO_GetShiftState [07:44:36]wFMCommunicate request_size=4 [07:44:36]MH_SAM_APDU [07:44:36]CAPDU: 80 13 01 00 [07:44:36]Write to MH i2c: E2 08 00 72 10 80 13 01 00 00 00 00 00 FF [07:44:36]Write i2c OK [07:44:36]MH_I2C_Read... [07:44:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:36]Read from MH i2c: E2 [07:44:36]MH_I2C_Read... [07:44:36]Read from MH i2c: E2 0E 00 [07:44:36]MH_I2C_Read... [07:44:36]Read from MH i2c: E2 0E 00 72 10 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 0E [07:44:36]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [07:44:36]wFMCommunicate OK [07:44:36]SAM_PROTO_GetShiftState done [07:44:36]FM_GetShiftState done [07:44:36]opened in 1729900879 [07:44:36]opened+sec_in_day 1729987279 [07:44:36]quantity*price = 50041 [07:44:36]sum+1 = 50042 [07:44:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 18 26.10.2024 07:44 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201256 ФПД: 204287042157246 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T074440&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201256&fm=204287042157246&tin=02508201610067®Number=0000000000091777&sum=50000 [07:44:38]StoreToDocumentArchive [07:44:38]shift 543 fd 201256 [07:44:38]save to /storage/0543/doc_00201256 [07:44:38]save last doc name /storage/0543/doc_00201256 to /storage/kkm_last_doc_name [07:44:38]save OK [07:44:38]Clear old archive folders... [07:44:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:44:38]tlvbuf is 01747320 [07:44:38]SAM_PROTO_ClearQueue [07:44:38]wFMCommunicate request_size=4 [07:44:38]MH_SAM_APDU [07:44:38]CAPDU: 80 09 00 00 [07:44:38]Write to MH i2c: E2 08 00 7F 10 80 09 00 00 00 00 00 00 01 [07:44:38]Write i2c OK [07:44:38]MH_I2C_Read... [07:44:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:44:38]Read from MH i2c: E2 [07:44:38]MH_I2C_Read... [07:44:38]Read from MH i2c: E2 03 00 [07:44:38]MH_I2C_Read... [07:44:38]Read from MH i2c: E2 03 00 7F 10 00 90 00 03 [07:44:38]RAPDU: 90 00 [07:44:38]wFMCommunicate OK [07:44:38]SAM_PROTO_ClearQueue done [07:44:38]KKMCreateOFDPacket [07:44:38]OFDProtocolAddRootSTLVToBuf [07:44:38]FM_MakeSignedData [07:44:38]FM_MakeSignedData [07:44:38]SAM_PROTO_SignData [07:44:38]wFMCommunicate request_size=4 [07:44:38]MH_SAM_APDU [07:44:38]CAPDU: 80 0D 01 02 [07:44:38]Write to MH i2c: E2 08 00 80 10 80 0D 01 02 00 00 00 00 09 [07:44:38]Write i2c OK [07:44:38]MH_I2C_Read... [07:44:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:44:38]Read from MH i2c: E2 [07:44:38]MH_I2C_Read... [07:44:38]Read from MH i2c: E2 03 00 [07:44:38]MH_I2C_Read... [07:44:38]Read from MH i2c: E2 03 00 80 10 00 90 00 04 [07:44:38]RAPDU: 90 00 [07:44:38]wFMCommunicate OK [07:44:38]wFMCommunicate request_size=255 [07:44:38]MH_SAM_APDU [07:44:38]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 32 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 12 00 00 00 F4 03 04 00 E8 9D 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 28 12 03 00 35 04 06 00 B9 [07:44:38]Write to MH i2c: E2 02 01 81 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 32 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 12 00 00 00 F4 03 04 00 E8 9D 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 28 12 03 00 35 04 06 00 B9 00 00 CE [07:44:38]Write i2c OK [07:44:38]MH_I2C_Read... [07:44:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:38]Read from MH i2c: E2 [07:44:38]MH_I2C_Read... [07:44:38]Read from MH i2c: E2 03 00 [07:44:38]MH_I2C_Read... [07:44:38]Read from MH i2c: E2 03 00 81 10 00 90 00 05 [07:44:38]RAPDU: 90 00 [07:44:38]wFMCommunicate OK [07:44:38]wFMCommunicate request_size=10 [07:44:38]MH_SAM_APDU [07:44:38]CAPDU: 80 0D 02 02 05 CC 48 94 7A BE [07:44:38]Write to MH i2c: E2 0D 00 82 10 80 0D 02 02 05 00 CC 48 94 7A BE 00 00 F6 [07:44:38]Write i2c OK [07:44:38]MH_I2C_Read... [07:44:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:38]Read from MH i2c: E2 [07:44:38]MH_I2C_Read... [07:44:38]Read from MH i2c: E2 03 00 [07:44:38]MH_I2C_Read... [07:44:38]Read from MH i2c: E2 03 00 82 10 00 90 00 06 [07:44:38]RAPDU: 90 00 [07:44:38]wFMCommunicate OK [07:44:38]wFMCommunicate request_size=4 [07:44:38]MH_SAM_APDU [07:44:38]CAPDU: 80 0D 03 02 [07:44:38]Write to MH i2c: E2 08 00 83 10 80 0D 03 02 00 00 00 00 0E [07:44:38]Write i2c OK [07:44:38]MH_I2C_Read... [07:44:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:44:38]Read from MH i2c: E2 [07:44:38]MH_I2C_Read... [07:44:38]Read from MH i2c: E2 0B 00 [07:44:38]MH_I2C_Read... [07:44:38]Read from MH i2c: E2 0B 00 83 10 00 BB 8D 4E 02 25 62 3F 91 90 00 FE [07:44:38]RAPDU: BB 8D 4E 02 25 62 3F 91 90 00 [07:44:38]wFMCommunicate OK [07:44:38]SAM_PROTO_SignData done [07:44:38]FM_MakeSignedData done [07:44:38]CreateOFDProtocolMessage [07:44:38]wFMCommunicate request_size=4 [07:44:38]MH_SAM_APDU [07:44:38]CAPDU: 80 11 00 00 [07:44:38]Write to MH i2c: E2 08 00 84 10 80 11 00 00 00 00 00 00 0E [07:44:38]Write i2c OK [07:44:38]MH_I2C_Read... [07:44:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:38]Read from MH i2c: E2 [07:44:38]MH_I2C_Read... [07:44:38]Read from MH i2c: E2 17 00 [07:44:38]MH_I2C_Read... [07:44:38]Read from MH i2c: E2 17 00 84 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 63 [07:44:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:44:38]wFMCommunicate OK [07:44:38]CreateOFDProtocolMessage done [07:44:38]OFDSenderStorePacket 201256 [07:44:38]StoreOFDPacket docnum=201256 [07:44:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 AA CC 07 01 6F 1E 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 32 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 12 00 00 00 F4 03 04 00 E8 9D 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 28 12 03 00 35 04 06 00 B9 CC 48 94 7A BE BB 8D 4E 02 25 62 3F 91 [07:44:38]CheckFolder [07:44:38]dirname=/storage/ofd_packets [07:44:38]CheckFolder done [07:44:38]ProducePacketName [07:44:38]name=ofd_packets/00201256 [07:44:38]NVStorageSaveData ofd_packets/00201256 [07:44:38]File name is /storage/ofd_packets/00201256 [07:44:38]Write 301 bytes [07:44:38]NVStorageSaveData done [07:44:38]OFDSenderStorePacket done [07:44:38]KKMCreateOFDPacket done [07:44:38]NVStorageSaveData kkm_last_timestamp [07:44:38]File name is /storage/kkm_last_timestamp [07:44:38]Write 4 bytes [07:44:38]NVStorageSaveData done [07:44:38]ExternCall_PrintAddStr [07:44:38]wPrintStart [07:44:38]Write to MH i2c: 01 00 00 85 10 95 [07:44:38]Write i2c OK [07:44:38]MH_I2C_Read... [07:44:38]Read from MH i2c: 01 [07:44:38]MH_I2C_Read... [07:44:38]Read from MH i2c: 01 07 00 [07:44:38]MH_I2C_Read... [07:44:38]Read from MH i2c: 01 07 00 85 10 00 00 00 00 00 FF 0F AA [07:44:38]RasterBufferAndPrint [07:44:38]line Счет N : (1)449001 [07:44:38]line ИНН: 02508201610067 [07:44:38]line Контрольно-Кассовый Чек [07:44:38]line ПРОДАЖА [07:44:38]line ТРК (МРК, ГНК) : 41 [07:44:38]line Товар: 2710124130 [07:44:38]line Аи-92-К-2 [07:44:38]line 7.480 * 66.90 [07:44:38]line = 500.41 [07:44:38]line НДС 12% НСП 1% [07:44:38]line > о реализуемом товаре [07:44:38]line ОКРУГЛЕНИЕ: -0.41 [07:44:38]line ИТОГО: 500.00 [07:44:38]line Внесено: 500.00 [07:44:38]line СДАЧА: 0.00 [07:44:38]line НСП 1% : 4.43 [07:44:38]line НДС 12% : 53.14 [07:44:38]line Наличными: 500.00 [07:44:38]line Безнал.: 0.00 [07:44:38]line Место: АЗС № 171 "Партнер Нефть" [07:44:38]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [07:44:38]line СНО: Общий режим [07:44:38]line Чек 18 26.10.2024 07:44 [07:44:38]line Смена: 543 ФФД: 1.0 [07:44:38]line ЗНМ: 0300000109 [07:44:38]line РНМ: 0000000000091777 [07:44:38]line Версия ККМ: 001 [07:44:38]line ФМ: 0000000000871756 [07:44:38]line ФД: 201256 [07:44:38]line ФПД: 204287042157246 [07:44:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T074440&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201256&fm=204287042157246&tin=02508201610067®Number=0000000000091777&sum=50000 [07:44:38]OFD Sender: Processing packet 201256 [packets to send 112, broken 111] [07:44:38]ProducePacketName [07:44:38]name=ofd_packets/00201256 [07:44:38]OFD Sender: To server: pG, [07:44:38]CommunicateWithHost lk.salyk.kg:30040 [07:44:38]ConnectInit lk.salyk.kg [07:44:38]written 0, free lines is 4095 [07:44:39]Connected sock=10 [07:44:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 AA CC 07 01 6F 1E 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 32 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 12 00 00 00 F4 03 04 00 E8 9D 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 28 12 03 00 35 04 06 00 B9 CC 48 94 7A BE BB 8D 4E 02 25 62 3F 91 [07:44:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 05 B7 47 00 AC 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 28 12 03 00 F4 03 04 00 92 49 1C 67 B6 04 01 00 00 00 48 42 BC 2B 39 91 B2 [07:44:39]CommunicateWithHost err = 0 [07:44:39]CheckOFDResponse [07:44:39]1017 (14) - 77093643461234 [07:44:39]1041 (16) - 0000000000871756 [07:44:39]1040 (4) - 201256 [07:44:39]1012 (4) - 26.10.2024 01:44 [07:44:39]1206 (1) - 0 [07:44:39]OFD Sender: Remove packet 201256 [07:44:39]ProducePacketName [07:44:39]name=ofd_packets/00201256 [07:44:39]NVStorageDeleteData [07:44:39]Write to MH i2c: 01 00 00 B0 10 C0 [07:44:39]Write i2c OK [07:44:39]MH_I2C_Read... [07:44:39]Read from MH i2c: 01 [07:44:39]MH_I2C_Read... [07:44:39]Read from MH i2c: 01 07 00 [07:44:39]MH_I2C_Read... [07:44:39]Read from MH i2c: 01 07 00 B0 10 00 00 00 00 00 97 0C 6A [07:44:39]RasterBufferAndPrint [07:44:39]line [07:44:39]line [07:44:39]line [07:44:39]line [07:44:39]line [07:44:39]written 0, free lines is 3229 [07:44:39]MH_Cut [07:44:39]Write to MH i2c: D1 01 00 B7 10 01 99 [07:44:39]Write i2c OK [07:44:39]MH_I2C_Read... [07:44:39]Read from MH i2c: D1 [07:44:39]MH_I2C_Read... [07:44:39]Read from MH i2c: D1 01 00 [07:44:39]MH_I2C_Read... [07:44:39]Read from MH i2c: D1 01 00 B7 10 00 98 [07:44:39]Write to MH i2c: 01 00 00 B8 10 C8 [07:44:39]Write i2c OK [07:44:39]MH_I2C_Read... [07:44:39]OFD Sender: No OFD packet to send [07:44:40]*** Cut start [07:44:40]*** Purtial cut [07:44:40]*** Stage 1: CUTSNS_PIN = 1 [07:44:40]Read from MH i2c: 01 [07:44:40]MH_I2C_Read... [07:44:40]*** Stop cut motor [07:44:40]*** Cut end [07:44:40]Read from MH i2c: 01 07 00 [07:44:40]MH_I2C_Read... [07:44:40]Read from MH i2c: 01 07 00 B8 10 00 00 00 00 00 FF 0F DD [07:44:40]process_action close_receipt done [07:44:40]requested_data is exist [07:44:40]produce_requested_data [07:44:40]requested_item fm.sn is exist - process it [07:44:40]wFMCommunicate request_size=4 [07:44:40]MH_SAM_APDU [07:44:40]CAPDU: 80 11 00 00 [07:44:40]Write to MH i2c: E2 08 00 B9 10 80 11 00 00 00 00 00 00 43 [07:44:40]Write i2c OK [07:44:40]MH_I2C_Read... [07:44:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:40]Read from MH i2c: E2 [07:44:40]MH_I2C_Read... [07:44:40]Read from MH i2c: E2 17 00 [07:44:40]MH_I2C_Read... [07:44:40]Read from MH i2c: E2 17 00 B9 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 98 [07:44:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:44:40]wFMCommunicate OK [07:44:40]requested_item fd.num is exist - process it [07:44:40]SAM_PROTO_GetFieldsCounters [07:44:40]wFMCommunicate request_size=4 [07:44:40]MH_SAM_APDU [07:44:40]CAPDU: 80 13 00 00 [07:44:40]Write to MH i2c: E2 08 00 BA 10 80 13 00 00 00 00 00 00 46 [07:44:40]Write i2c OK [07:44:40]MH_I2C_Read... [07:44:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:44:40]Read from MH i2c: E2 [07:44:40]MH_I2C_Read... [07:44:40]Read from MH i2c: E2 62 00 [07:44:40]MH_I2C_Read... [07:44:40]Read from MH i2c: E2 62 00 BA 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 28 12 03 00 0E 04 04 00 1F 02 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 03 [07:44:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 28 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:44:40]wFMCommunicate OK [07:44:40]SAM_PROTO_GetFieldsCounters done [07:44:40]requested_item shift.num is exist - process it [07:44:40]requested_item shift.opened is exist - process it [07:44:40]req_shift_opened [07:44:40]FM_GetShiftState [07:44:40]SAM_PROTO_GetShiftState [07:44:40]wFMCommunicate request_size=4 [07:44:40]MH_SAM_APDU [07:44:40]CAPDU: 80 13 01 00 [07:44:40]Write to MH i2c: E2 08 00 BB 10 80 13 01 00 00 00 00 00 48 [07:44:40]Write i2c OK [07:44:40]MH_I2C_Read... [07:44:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:40]Read from MH i2c: E2 [07:44:40]MH_I2C_Read... [07:44:40]Read from MH i2c: E2 0E 00 [07:44:40]MH_I2C_Read... [07:44:40]Read from MH i2c: E2 0E 00 BB 10 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 57 [07:44:40]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [07:44:40]wFMCommunicate OK [07:44:40]SAM_PROTO_GetShiftState done [07:44:40]FM_GetShiftState done [07:44:40]req_shift_opened done [07:44:40]requested_item shift.open_date is exist - process it [07:44:40]req_shift_open_date [07:44:40]req_shift_open_date done [07:44:40]produce_requested_data done [07:44:40]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201256,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [07:44:40]process_action_free close_receipt [07:44:40]json_value_free [07:44:40]json_value_free done [07:44:40]process_json_proto returns [07:44:40]Send response to host [07:44:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201256,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [07:44:40]free response buf [07:44:40]execute_script done [07:44:40]execute_script returns [07:44:40]free content buf [07:44:40]Sock 9.Close socket [07:44:40]Sock 9.Thread stoped [07:44:44]OFD Sender: No OFD packet to send [07:44:49]OFD Sender: No OFD packet to send [07:44:54]OFD Sender: No OFD packet to send [07:44:59]OFD Sender: No OFD packet to send [07:45:04]OFD Sender: No OFD packet to send [07:45:09]OFD Sender: No OFD packet to send [07:45:14]OFD Sender: No OFD packet to send [07:45:19]OFD Sender: No OFD packet to send [07:45:24]OFD Sender: No OFD packet to send [07:45:29]OFD Sender: No OFD packet to send [07:45:34]OFD Sender: No OFD packet to send [07:45:39]OFD Sender: No OFD packet to send [07:45:44]OFD Sender: No OFD packet to send [07:45:49]OFD Sender: No OFD packet to send [07:45:54]OFD Sender: No OFD packet to send [07:45:59]OFD Sender: No OFD packet to send [07:46:04]OFD Sender: No OFD packet to send [07:46:09]OFD Sender: No OFD packet to send [07:46:14]OFD Sender: No OFD packet to send [07:46:19]OFD Sender: No OFD packet to send [07:46:24]OFD Sender: No OFD packet to send [07:46:28]accept exits with 7 [07:46:28]New connection [07:46:28]New thread 3067559268 created [07:46:28]Thread 3067415908 joined [07:46:28]Waiting for new connection... [07:46:28] Sock 7.Parse request [07:46:28]Sock 7.Check first char [07:46:28]Sock 7.First char is OK [07:46:28]request: POST /json_proto HTTP/1.0 [07:46:28]Method: POST [07:46:28]URL: /json_proto [07:46:28]Method is POST - this is cgi request [07:46:28]url: /json_proto [07:46:28]query_string will be loaded in cgi processing [07:46:28]execute_cgi json_proto POST (null) [07:46:28]execute_cgi path=json_proto method=POST [07:46:28]POST find Content-Length [07:46:28]Host: 172.17.63.195:8080 [07:46:28]Content-Length: 670 [07:46:28]Content-Type: application/json [07:46:28] [07:46:28]POST finish read [07:46:28]Found Content-Length = 670 [07:46:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "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" ] } } [07:46:28]execute_script... [07:46: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)449002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "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" ] } } [07:46:28]POST & json_proto [07:46:28]process_json_proto [07:46:28]json parsed OK: [07:46:28]protocol is kg_v1.0 [07:46:28]action value=close_receipt [07:46:28]process_action close_receipt [07:46:28]cmd_close_receipt [07:46:28]MH_GetDate [07:46:28]Write to MH i2c: F0 00 00 BC 10 BB [07:46:28]Write i2c OK [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: F0 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: F0 09 00 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: F0 09 00 BC 10 00 58 9E 1C 67 68 46 19 67 6B [07:46:28]GetLastDocTimeStamp 1729928680 [07:46:28]current date 1729928792 [07:46:28]FM_GetShiftState [07:46:28]SAM_PROTO_GetShiftState [07:46:28]wFMCommunicate request_size=4 [07:46:28]MH_SAM_APDU [07:46:28]CAPDU: 80 13 01 00 [07:46:28]Write to MH i2c: E2 08 00 BD 10 80 13 01 00 00 00 00 00 4A [07:46:28]Write i2c OK [07:46:28]MH_I2C_Read... [07:46:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:28]Read from MH i2c: E2 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: E2 0E 00 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: E2 0E 00 BD 10 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 59 [07:46:28]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [07:46:28]wFMCommunicate OK [07:46:28]SAM_PROTO_GetShiftState done [07:46:28]FM_GetShiftState done [07:46:28]opened in 1729900879 [07:46:28]opened+sec_in_day 1729987279 [07:46:28]quantity*price = 60055 [07:46:28]sum+1 = 60056 [07:46:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 19 26.10.2024 07:46 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201257 ФПД: 165300020909279 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T074632&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201257&fm=165300020909279&tin=02508201610067®Number=0000000000091777&sum=60000 [07:46:30]StoreToDocumentArchive [07:46:30]shift 543 fd 201257 [07:46:30]save to /storage/0543/doc_00201257 [07:46:30]save last doc name /storage/0543/doc_00201257 to /storage/kkm_last_doc_name [07:46:30]save OK [07:46:30]Clear old archive folders... [07:46:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:46:30]tlvbuf is 016E4A20 [07:46:30]SAM_PROTO_ClearQueue [07:46:30]wFMCommunicate request_size=4 [07:46:30]MH_SAM_APDU [07:46:30]CAPDU: 80 09 00 00 [07:46:30]Write to MH i2c: E2 08 00 CA 10 80 09 00 00 00 00 00 00 4C [07:46:30]Write i2c OK [07:46:30]MH_I2C_Read... [07:46:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:46:30]Read from MH i2c: E2 [07:46:30]MH_I2C_Read... [07:46:30]Read from MH i2c: E2 03 00 [07:46:30]MH_I2C_Read... [07:46:30]Read from MH i2c: E2 03 00 CA 10 00 90 00 4E [07:46:30]RAPDU: 90 00 [07:46:30]wFMCommunicate OK [07:46:30]SAM_PROTO_ClearQueue done [07:46:30]KKMCreateOFDPacket [07:46:30]OFDProtocolAddRootSTLVToBuf [07:46:30]FM_MakeSignedData [07:46:30]FM_MakeSignedData [07:46:30]SAM_PROTO_SignData [07:46:30]wFMCommunicate request_size=4 [07:46:30]MH_SAM_APDU [07:46:30]CAPDU: 80 0D 01 02 [07:46:30]Write to MH i2c: E2 08 00 CB 10 80 0D 01 02 00 00 00 00 54 [07:46:30]Write i2c OK [07:46:30]MH_I2C_Read... [07:46:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:46:30]Read from MH i2c: E2 [07:46:30]MH_I2C_Read... [07:46:30]Read from MH i2c: E2 03 00 [07:46:30]MH_I2C_Read... [07:46:30]Read from MH i2c: E2 03 00 CB 10 00 90 00 4F [07:46:30]RAPDU: 90 00 [07:46:30]wFMCommunicate OK [07:46:30]wFMCommunicate request_size=255 [07:46:30]MH_SAM_APDU [07:46:30]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 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 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 E9 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 13 00 00 00 F4 03 04 00 58 9E 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 29 12 03 00 35 04 06 00 [07:46:30]Write to MH i2c: E2 02 01 CC 10 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 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 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 E9 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 13 00 00 00 F4 03 04 00 58 9E 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 29 12 03 00 35 04 06 00 00 00 59 [07:46:30]Write i2c OK [07:46:30]MH_I2C_Read... [07:46:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:30]Read from MH i2c: E2 [07:46:30]MH_I2C_Read... [07:46:30]Read from MH i2c: E2 03 00 [07:46:30]MH_I2C_Read... [07:46:30]Read from MH i2c: E2 03 00 CC 10 00 90 00 50 [07:46:30]RAPDU: 90 00 [07:46:30]wFMCommunicate OK [07:46:30]wFMCommunicate request_size=11 [07:46:30]MH_SAM_APDU [07:46:30]CAPDU: 80 0D 02 02 06 96 56 E9 07 14 DF [07:46:30]Write to MH i2c: E2 0E 00 CD 10 80 0D 02 02 06 00 96 56 E9 07 14 DF 00 00 32 [07:46:30]Write i2c OK [07:46:30]MH_I2C_Read... [07:46:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:30]Read from MH i2c: E2 [07:46:30]MH_I2C_Read... [07:46:30]Read from MH i2c: E2 03 00 [07:46:30]MH_I2C_Read... [07:46:30]Read from MH i2c: E2 03 00 CD 10 00 90 00 51 [07:46:30]RAPDU: 90 00 [07:46:30]wFMCommunicate OK [07:46:30]wFMCommunicate request_size=4 [07:46:30]MH_SAM_APDU [07:46:30]CAPDU: 80 0D 03 02 [07:46:30]Write to MH i2c: E2 08 00 CE 10 80 0D 03 02 00 00 00 00 59 [07:46:30]Write i2c OK [07:46:30]MH_I2C_Read... [07:46:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:46:30]Read from MH i2c: E2 [07:46:30]MH_I2C_Read... [07:46:30]Read from MH i2c: E2 0B 00 [07:46:30]MH_I2C_Read... [07:46:30]Read from MH i2c: E2 0B 00 CE 10 00 C7 72 D0 58 9C 01 B4 75 90 00 81 [07:46:30]RAPDU: C7 72 D0 58 9C 01 B4 75 90 00 [07:46:30]wFMCommunicate OK [07:46:30]SAM_PROTO_SignData done [07:46:30]FM_MakeSignedData done [07:46:30]CreateOFDProtocolMessage [07:46:30]wFMCommunicate request_size=4 [07:46:30]MH_SAM_APDU [07:46:30]CAPDU: 80 11 00 00 [07:46:30]Write to MH i2c: E2 08 00 CF 10 80 11 00 00 00 00 00 00 59 [07:46:30]Write i2c OK [07:46:30]MH_I2C_Read... [07:46:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:30]Read from MH i2c: E2 [07:46:30]MH_I2C_Read... [07:46:30]Read from MH i2c: E2 17 00 [07:46:30]MH_I2C_Read... [07:46:30]Read from MH i2c: E2 17 00 CF 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AE [07:46:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:46:30]wFMCommunicate OK [07:46:30]CreateOFDProtocolMessage done [07:46:30]OFDSenderStorePacket 201257 [07:46:30]StoreOFDPacket docnum=201257 [07:46:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 14 F2 08 01 75 C2 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 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 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 E9 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 13 00 00 00 F4 03 04 00 58 9E 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 29 12 03 00 35 04 06 00 96 56 E9 07 14 DF C7 72 D0 58 9C 01 B4 75 [07:46:30]CheckFolder [07:46:30]dirname=/storage/ofd_packets [07:46:30]CheckFolder done [07:46:30]ProducePacketName [07:46:30]name=ofd_packets/00201257 [07:46:30]NVStorageSaveData ofd_packets/00201257 [07:46:30]File name is /storage/ofd_packets/00201257 [07:46:30]Write 302 bytes [07:46:30]NVStorageSaveData done [07:46:30]OFDSenderStorePacket done [07:46:30]KKMCreateOFDPacket done [07:46:30]NVStorageSaveData kkm_last_timestamp [07:46:30]File name is /storage/kkm_last_timestamp [07:46:30]Write 4 bytes [07:46:30]NVStorageSaveData done [07:46:30]ExternCall_PrintAddStr [07:46:30]wPrintStart [07:46:30]Write to MH i2c: 01 00 00 D0 10 E0 [07:46:30]Write i2c OK [07:46:30]MH_I2C_Read... [07:46:30]Read from MH i2c: 01 [07:46:30]MH_I2C_Read... [07:46:30]Read from MH i2c: 01 07 00 [07:46:30]MH_I2C_Read... [07:46:30]Read from MH i2c: 01 07 00 D0 10 00 00 00 00 00 FF 0F F5 [07:46:30]RasterBufferAndPrint [07:46:30]line Счет N : (1)449002 [07:46:30]line ИНН: 02508201610067 [07:46:30]line Контрольно-Кассовый Чек [07:46:30]line ПРОДАЖА [07:46:30]line ТРК (МРК, ГНК) : 42 [07:46:30]line Товар: 2710124130 [07:46:30]line SUPER 92-К-5 [07:46:30]line 8.780 * 68.40 [07:46:30]line = 600.55 [07:46:30]line НДС 12% НСП 1% [07:46:30]line > о реализуемом товаре [07:46:30]line ОКРУГЛЕНИЕ: -0.55 [07:46:30]line ИТОГО: 600.00 [07:46:30]line Внесено: 600.00 [07:46:30]line СДАЧА: 0.00 [07:46:30]line НСП 1% : 5.31 [07:46:30]line НДС 12% : 63.77 [07:46:30]line Наличными: 600.00 [07:46:30]line Безнал.: 0.00 [07:46:30]line Место: АЗС № 171 "Партнер Нефть" [07:46:30]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [07:46:30]line СНО: Общий режим [07:46:30]line Чек 19 26.10.2024 07:46 [07:46:30]line Смена: 543 ФФД: 1.0 [07:46:30]line ЗНМ: 0300000109 [07:46:30]line РНМ: 0000000000091777 [07:46:30]line Версия ККМ: 001 [07:46:30]line ФМ: 0000000000871756 [07:46:30]line ФД: 201257 [07:46:30]line ФПД: 165300020909279 [07:46:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T074632&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201257&fm=165300020909279&tin=02508201610067®Number=0000000000091777&sum=60000 [07:46:30]OFD Sender: Processing packet 201257 [packets to send 112, broken 111] [07:46:30]ProducePacketName [07:46:30]name=ofd_packets/00201257 [07:46:30]OFD Sender: To server: pG, [07:46:30]CommunicateWithHost lk.salyk.kg:30040 [07:46:30]ConnectInit lk.salyk.kg [07:46:30]written 0, free lines is 4095 [07:46:31]Connected sock=10 [07:46:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 14 F2 08 01 75 C2 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 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 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 E9 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 13 00 00 00 F4 03 04 00 58 9E 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 29 12 03 00 35 04 06 00 96 56 E9 07 14 DF C7 72 D0 58 9C 01 B4 75 [07:46:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 3F 03 47 00 6E 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 29 12 03 00 F4 03 04 00 01 4A 1C 67 B6 04 01 00 00 80 C6 CB 76 D3 04 9A 09 [07:46:31]CommunicateWithHost err = 0 [07:46:31]CheckOFDResponse [07:46:31]1017 (14) - 77093643461234 [07:46:31]1041 (16) - 0000000000871756 [07:46:31]1040 (4) - 201257 [07:46:31]1012 (4) - 26.10.2024 01:46 [07:46:31]1206 (1) - 0 [07:46:31]OFD Sender: Remove packet 201257 [07:46:31]ProducePacketName [07:46:31]name=ofd_packets/00201257 [07:46:31]NVStorageDeleteData [07:46:31]Write to MH i2c: 01 00 00 FB 10 0B [07:46:31]Write i2c OK [07:46:31]MH_I2C_Read... [07:46:31]Read from MH i2c: 01 [07:46:31]MH_I2C_Read... [07:46:31]Read from MH i2c: 01 07 00 [07:46:31]MH_I2C_Read... [07:46:31]Read from MH i2c: 01 07 00 FB 10 00 00 00 00 00 94 0C B2 [07:46:31]RasterBufferAndPrint [07:46:31]line [07:46:31]line [07:46:31]line [07:46:31]line [07:46:31]line [07:46:31]written 0, free lines is 3225 [07:46:31]MH_Cut [07:46:31]Write to MH i2c: D1 01 00 02 11 01 E5 [07:46:31]Write i2c OK [07:46:31]MH_I2C_Read... [07:46:31]Read from MH i2c: D1 [07:46:31]MH_I2C_Read... [07:46:31]Read from MH i2c: D1 01 00 [07:46:31]MH_I2C_Read... [07:46:31]Read from MH i2c: D1 01 00 02 11 00 E4 [07:46:31]Write to MH i2c: 01 00 00 03 11 14 [07:46:31]Write i2c OK [07:46:31]MH_I2C_Read... [07:46:31]OFD Sender: No OFD packet to send [07:46:32]*** Cut start [07:46:32]*** Purtial cut [07:46:32]*** Stage 1: CUTSNS_PIN = 1 [07:46:32]Read from MH i2c: 01 [07:46:32]MH_I2C_Read... [07:46:32]*** Stop cut motor [07:46:32]*** Cut end [07:46:32]Read from MH i2c: 01 07 00 [07:46:32]MH_I2C_Read... [07:46:32]Read from MH i2c: 01 07 00 03 11 00 00 00 00 00 FF 0F 29 [07:46:32]process_action close_receipt done [07:46:32]requested_data is exist [07:46:32]produce_requested_data [07:46:32]requested_item fm.sn is exist - process it [07:46:32]wFMCommunicate request_size=4 [07:46:32]MH_SAM_APDU [07:46:32]CAPDU: 80 11 00 00 [07:46:32]Write to MH i2c: E2 08 00 04 11 80 11 00 00 00 00 00 00 8F [07:46:32]Write i2c OK [07:46:32]MH_I2C_Read... [07:46:32]Read from MH i2c: E2 [07:46:32]MH_I2C_Read... [07:46:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:32]Read from MH i2c: E2 17 00 [07:46:32]MH_I2C_Read... [07:46:32]Read from MH i2c: E2 17 00 04 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E4 [07:46:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:46:32]wFMCommunicate OK [07:46:32]requested_item fd.num is exist - process it [07:46:32]SAM_PROTO_GetFieldsCounters [07:46:32]wFMCommunicate request_size=4 [07:46:32]MH_SAM_APDU [07:46:32]CAPDU: 80 13 00 00 [07:46:32]Write to MH i2c: E2 08 00 05 11 80 13 00 00 00 00 00 00 92 [07:46:32]Write i2c OK [07:46:32]MH_I2C_Read... [07:46:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:46:32]Read from MH i2c: E2 [07:46:32]MH_I2C_Read... [07:46:32]Read from MH i2c: E2 62 00 [07:46:32]MH_I2C_Read... [07:46:32]Read from MH i2c: E2 62 00 05 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 29 12 03 00 0E 04 04 00 1F 02 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 53 [07:46:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 29 12 03 00 0E 04 04 00 1F 02 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 [07:46:32]wFMCommunicate OK [07:46:32]SAM_PROTO_GetFieldsCounters done [07:46:32]requested_item shift.num is exist - process it [07:46:32]requested_item shift.opened is exist - process it [07:46:32]req_shift_opened [07:46:32]FM_GetShiftState [07:46:32]SAM_PROTO_GetShiftState [07:46:32]wFMCommunicate request_size=4 [07:46:32]MH_SAM_APDU [07:46:32]CAPDU: 80 13 01 00 [07:46:32]Write to MH i2c: E2 08 00 06 11 80 13 01 00 00 00 00 00 94 [07:46:32]Write i2c OK [07:46:32]MH_I2C_Read... [07:46:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:32]Read from MH i2c: E2 [07:46:32]MH_I2C_Read... [07:46:32]Read from MH i2c: E2 0E 00 [07:46:32]MH_I2C_Read... [07:46:32]Read from MH i2c: E2 0E 00 06 11 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 A3 [07:46:32]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [07:46:32]wFMCommunicate OK [07:46:32]SAM_PROTO_GetShiftState done [07:46:32]FM_GetShiftState done [07:46:32]req_shift_opened done [07:46:32]requested_item shift.open_date is exist - process it [07:46:32]req_shift_open_date [07:46:32]req_shift_open_date done [07:46:32]produce_requested_data done [07:46:32]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201257,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [07:46:32]process_action_free close_receipt [07:46:32]json_value_free [07:46:32]json_value_free done [07:46:32]process_json_proto returns [07:46:32]Send response to host [07:46:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201257,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [07:46:32]free response buf [07:46:32]execute_script done [07:46:32]execute_script returns [07:46:32]free content buf [07:46:32]Sock 7.Close socket [07:46:32]Sock 7.Thread stoped [07:46:36]OFD Sender: No OFD packet to send [07:46:41]OFD Sender: No OFD packet to send [07:46:46]OFD Sender: No OFD packet to send [07:46:51]OFD Sender: No OFD packet to send [07:46:56]OFD Sender: No OFD packet to send [07:47:01]OFD Sender: No OFD packet to send [07:47:06]OFD Sender: No OFD packet to send [07:47:11]OFD Sender: No OFD packet to send [07:47:16]OFD Sender: No OFD packet to send [07:47:21]OFD Sender: No OFD packet to send [07:47:26]OFD Sender: No OFD packet to send [07:47:31]OFD Sender: No OFD packet to send [07:47:36]OFD Sender: No OFD packet to send [07:47:41]OFD Sender: No OFD packet to send [07:47:46]OFD Sender: No OFD packet to send [07:47:51]OFD Sender: No OFD packet to send [07:47:56]OFD Sender: No OFD packet to send [07:48:01]OFD Sender: No OFD packet to send [07:48:06]OFD Sender: No OFD packet to send [07:48:11]OFD Sender: No OFD packet to send [07:48:16]OFD Sender: No OFD packet to send [07:48:21]OFD Sender: No OFD packet to send [07:48:26]OFD Sender: No OFD packet to send [07:48:31]OFD Sender: No OFD packet to send [07:48:36]OFD Sender: No OFD packet to send [07:48:41]OFD Sender: No OFD packet to send [07:48:46]OFD Sender: No OFD packet to send [07:48:51]accept exits with 9 [07:48:51]New connection [07:48:51]New thread 3067415908 created [07:48:51]Thread 3067559268 joined [07:48:51]Waiting for new connection... [07:48:51] Sock 9.Parse request [07:48:51]Sock 9.Check first char [07:48:51]Sock 9.First char is OK [07:48:51]request: POST /json_proto HTTP/1.0 [07:48:51]Method: POST [07:48:51]URL: /json_proto [07:48:51]Method is POST - this is cgi request [07:48:51]url: /json_proto [07:48:51]query_string will be loaded in cgi processing [07:48:51]execute_cgi json_proto POST (null) [07:48:51]execute_cgi path=json_proto method=POST [07:48:51]POST find Content-Length [07:48:51]Host: 172.17.63.195:8080 [07:48:51]Content-Length: 816 [07:48:51]Content-Type: application/json [07:48:51] [07:48:51]POST finish read [07:48:51]Found Content-Length = 816 [07:48:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:51]execute_script... [07:48: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)449003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:51]POST & json_proto [07:48:51]process_json_proto [07:48:51]json parsed OK: [07:48:51]protocol is kg_v1.0 [07:48:51]action value=close_receipt [07:48:51]process_action close_receipt [07:48:51]cmd_close_receipt [07:48:51]MH_GetDate [07:48:51]Write to MH i2c: F0 00 00 07 11 07 [07:48:51]Write i2c OK [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: F0 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: F0 09 00 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: F0 09 00 07 11 00 E6 9E 1C 67 68 46 19 67 45 [07:48:51]GetLastDocTimeStamp 1729928792 [07:48:51]current date 1729928934 [07:48:51]FM_GetShiftState [07:48:51]SAM_PROTO_GetShiftState [07:48:51]wFMCommunicate request_size=4 [07:48:51]MH_SAM_APDU [07:48:51]CAPDU: 80 13 01 00 [07:48:51]Write to MH i2c: E2 08 00 08 11 80 13 01 00 00 00 00 00 96 [07:48:51]Write i2c OK [07:48:51]MH_I2C_Read... [07:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:51]Read from MH i2c: E2 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: E2 0E 00 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: E2 0E 00 08 11 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 A5 [07:48:51]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [07:48:51]wFMCommunicate OK [07:48:51]SAM_PROTO_GetShiftState done [07:48:51]FM_GetShiftState done [07:48:51]opened in 1729900879 [07:48:51]opened+sec_in_day 1729987279 [07:48:51]quantity*price = 150037 [07:48:51]sum+1 = 150039 [07:48:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.38 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.38 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 20 26.10.2024 07:48 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871756 ФД: 201258 ФПД: 55083688102513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T074854&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201258&fm=55083688102513&tin=02508201610067®Number=0000000000091777&sum=150038 [07:48:52]StoreToDocumentArchive [07:48:52]shift 543 fd 201258 [07:48:52]save to /storage/0543/doc_00201258 [07:48:52]save last doc name /storage/0543/doc_00201258 to /storage/kkm_last_doc_name [07:48:52]save OK [07:48:52]Clear old archive folders... [07:48:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:48:52]tlvbuf is 0173FD80 [07:48:52]SAM_PROTO_ClearQueue [07:48:52]wFMCommunicate request_size=4 [07:48:52]MH_SAM_APDU [07:48:52]CAPDU: 80 09 00 00 [07:48:52]Write to MH i2c: E2 08 00 15 11 80 09 00 00 00 00 00 00 98 [07:48:52]Write i2c OK [07:48:52]MH_I2C_Read... [07:48:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:48:52]Read from MH i2c: E2 [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: E2 03 00 [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: E2 03 00 15 11 00 90 00 9A [07:48:52]RAPDU: 90 00 [07:48:52]wFMCommunicate OK [07:48:52]SAM_PROTO_ClearQueue done [07:48:52]KKMCreateOFDPacket [07:48:52]OFDProtocolAddRootSTLVToBuf [07:48:52]FM_MakeSignedData [07:48:52]FM_MakeSignedData [07:48:52]SAM_PROTO_SignData [07:48:52]wFMCommunicate request_size=4 [07:48:52]MH_SAM_APDU [07:48:52]CAPDU: 80 0D 01 02 [07:48:52]Write to MH i2c: E2 08 00 16 11 80 0D 01 02 00 00 00 00 A0 [07:48:52]Write i2c OK [07:48:52]MH_I2C_Read... [07:48:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:48:52]Read from MH i2c: E2 [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: E2 03 00 [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: E2 03 00 16 11 00 90 00 9B [07:48:52]RAPDU: 90 00 [07:48:52]wFMCommunicate OK [07:48:52]wFMCommunicate request_size=255 [07:48:52]MH_SAM_APDU [07:48:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 E6 9E 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2A 12 03 00 35 04 06 00 32 19 2B A9 [07:48:52]Write to MH i2c: E2 02 01 17 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 E6 9E 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2A 12 03 00 35 04 06 00 32 19 2B A9 00 00 89 [07:48:52]Write i2c OK [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: E2 [07:48:52]MH_I2C_Read... [07:48:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:52]Read from MH i2c: E2 03 00 [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: E2 03 00 17 11 00 90 00 9C [07:48:52]RAPDU: 90 00 [07:48:52]wFMCommunicate OK [07:48:52]wFMCommunicate request_size=7 [07:48:52]MH_SAM_APDU [07:48:52]CAPDU: 80 0D 02 02 02 8A 71 [07:48:52]Write to MH i2c: E2 0A 00 18 11 80 0D 02 02 02 00 8A 71 00 00 A2 [07:48:52]Write i2c OK [07:48:52]MH_I2C_Read... [07:48:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:52]Read from MH i2c: E2 [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: E2 03 00 [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: E2 03 00 18 11 00 90 00 9D [07:48:52]RAPDU: 90 00 [07:48:52]wFMCommunicate OK [07:48:52]wFMCommunicate request_size=4 [07:48:52]MH_SAM_APDU [07:48:52]CAPDU: 80 0D 03 02 [07:48:52]Write to MH i2c: E2 08 00 19 11 80 0D 03 02 00 00 00 00 A5 [07:48:52]Write i2c OK [07:48:52]MH_I2C_Read... [07:48:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:48:52]Read from MH i2c: E2 [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: E2 0B 00 [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: E2 0B 00 19 11 00 EA A2 EF 34 03 21 F4 FA 90 00 67 [07:48:52]RAPDU: EA A2 EF 34 03 21 F4 FA 90 00 [07:48:52]wFMCommunicate OK [07:48:52]SAM_PROTO_SignData done [07:48:52]FM_MakeSignedData done [07:48:52]CreateOFDProtocolMessage [07:48:52]wFMCommunicate request_size=4 [07:48:52]MH_SAM_APDU [07:48:52]CAPDU: 80 11 00 00 [07:48:52]Write to MH i2c: E2 08 00 1A 11 80 11 00 00 00 00 00 00 A5 [07:48:52]Write i2c OK [07:48:52]MH_I2C_Read... [07:48:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:52]Read from MH i2c: E2 [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: E2 17 00 [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: E2 17 00 1A 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FA [07:48:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:48:52]wFMCommunicate OK [07:48:52]CreateOFDProtocolMessage done [07:48:52]OFDSenderStorePacket 201258 [07:48:52]StoreOFDPacket docnum=201258 [07:48:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 E1 D1 04 01 4B 6F 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 E6 9E 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2A 12 03 00 35 04 06 00 32 19 2B A9 8A 71 EA A2 EF 34 03 21 F4 FA [07:48:52]CheckFolder [07:48:52]dirname=/storage/ofd_packets [07:48:52]CheckFolder done [07:48:52]ProducePacketName [07:48:52]name=ofd_packets/00201258 [07:48:52]NVStorageSaveData ofd_packets/00201258 [07:48:52]File name is /storage/ofd_packets/00201258 [07:48:52]Write 298 bytes [07:48:52]NVStorageSaveData done [07:48:52]OFDSenderStorePacket done [07:48:52]KKMCreateOFDPacket done [07:48:52]NVStorageSaveData kkm_last_timestamp [07:48:52]File name is /storage/kkm_last_timestamp [07:48:52]Write 4 bytes [07:48:52]NVStorageSaveData done [07:48:52]ExternCall_PrintAddStr [07:48:52]wPrintStart [07:48:52]Write to MH i2c: 01 00 00 1B 11 2C [07:48:52]Write i2c OK [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: 01 [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: 01 07 00 [07:48:52]MH_I2C_Read... [07:48:52]Read from MH i2c: 01 07 00 1B 11 00 00 00 00 00 FF 0F 41 [07:48:52]RasterBufferAndPrint [07:48:52]line Счет N : (1)449003 [07:48:52]line ИНН: 02508201610067 [07:48:52]line Контрольно-Кассовый Чек [07:48:52]line ПРОДАЖА [07:48:52]line ТРК (МРК, ГНК) : 33 [07:48:52]line Товар: 2710194210 [07:48:52]line ДТ-К-2 [07:48:52]line 19.690 * 76.20 [07:48:52]line = 1500.38 [07:48:52]line НДС 12% НСП 1% [07:48:52]line > о реализуемом товаре [07:48:52]line ИТОГО: 1500.38 [07:48:52]line НСП 1% : 13.28 [07:48:52]line НДС 12% : 159.33 [07:48:52]line Наличными: 0.00 [07:48:52]line Безнал.: 1500.38 [07:48:52]line Место: АЗС № 171 "Партнер Нефть" [07:48:52]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [07:48:52]line СНО: Общий режим [07:48:52]line Чек 20 26.10.2024 07:48 [07:48:52]line Смена: 543 ФФД: 1.0 [07:48:52]line ЗНМ: 0300000109 [07:48:52]line РНМ: 0000000000091777 [07:48:52]line Версия ККМ: 001 [07:48:52]line Платежная система: Бакай Банк [07:48:52]line ФМ: 0000000000871756 [07:48:52]line ФД: 201258 [07:48:52]line ФПД: 55083688102513 [07:48:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T074854&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201258&fm=55083688102513&tin=02508201610067®Number=0000000000091777&sum=150038 [07:48:52]written 0, free lines is 4095 [07:48:52]OFD Sender: Processing packet 201258 [packets to send 112, broken 111] [07:48:52]ProducePacketName [07:48:52]name=ofd_packets/00201258 [07:48:52]OFD Sender: To server: pG, [07:48:52]CommunicateWithHost lk.salyk.kg:30040 [07:48:52]ConnectInit lk.salyk.kg [07:48:52]Connected sock=10 [07:48:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 E1 D1 04 01 4B 6F 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 E6 9E 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2A 12 03 00 35 04 06 00 32 19 2B A9 8A 71 EA A2 EF 34 03 21 F4 FA [07:48:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B9 B9 47 00 D5 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2A 12 03 00 F4 03 04 00 8F 4A 1C 67 B6 04 01 00 00 B9 C1 C0 2C A5 D8 40 44 [07:48:53]CommunicateWithHost err = 0 [07:48:53]CheckOFDResponse [07:48:53]1017 (14) - 77093643461234 [07:48:53]1041 (16) - 0000000000871756 [07:48:53]1040 (4) - 201258 [07:48:53]1012 (4) - 26.10.2024 01:49 [07:48:53]1206 (1) - 0 [07:48:53]OFD Sender: Remove packet 201258 [07:48:53]ProducePacketName [07:48:53]name=ofd_packets/00201258 [07:48:53]NVStorageDeleteData [07:48:53]Write to MH i2c: 01 00 00 45 11 56 [07:48:53]Write i2c OK [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: 01 [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: 01 07 00 [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: 01 07 00 45 11 00 00 00 00 00 A5 0C 0E [07:48:53]RasterBufferAndPrint [07:48:53]line [07:48:53]line [07:48:53]line [07:48:53]line [07:48:53]line [07:48:53]written 0, free lines is 3242 [07:48:53]MH_Cut [07:48:53]Write to MH i2c: D1 01 00 4C 11 01 2F [07:48:53]Write i2c OK [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: D1 [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: D1 01 00 [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: D1 01 00 4C 11 00 2E [07:48:53]Write to MH i2c: 01 00 00 4D 11 5E [07:48:53]Write i2c OK [07:48:53]MH_I2C_Read... [07:48:53]OFD Sender: No OFD packet to send [07:48:54]*** Cut start [07:48:54]*** Purtial cut [07:48:54]*** Stage 1: CUTSNS_PIN = 1 [07:48:54]Read from MH i2c: 01 [07:48:54]MH_I2C_Read... [07:48:54]*** Stop cut motor [07:48:54]*** Cut end [07:48:54]Read from MH i2c: 01 07 00 [07:48:54]MH_I2C_Read... [07:48:54]Read from MH i2c: 01 07 00 4D 11 00 00 00 00 00 FF 0F 73 [07:48:54]process_action close_receipt done [07:48:54]requested_data is exist [07:48:54]produce_requested_data [07:48:54]requested_item fm.sn is exist - process it [07:48:54]wFMCommunicate request_size=4 [07:48:54]MH_SAM_APDU [07:48:54]CAPDU: 80 11 00 00 [07:48:54]Write to MH i2c: E2 08 00 4E 11 80 11 00 00 00 00 00 00 D9 [07:48:54]Write i2c OK [07:48:54]MH_I2C_Read... [07:48:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:54]Read from MH i2c: E2 [07:48:54]MH_I2C_Read... [07:48:54]Read from MH i2c: E2 17 00 [07:48:54]MH_I2C_Read... [07:48:54]Read from MH i2c: E2 17 00 4E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2E [07:48:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [07:48:54]wFMCommunicate OK [07:48:54]requested_item fd.num is exist - process it [07:48:54]SAM_PROTO_GetFieldsCounters [07:48:54]wFMCommunicate request_size=4 [07:48:54]MH_SAM_APDU [07:48:54]CAPDU: 80 13 00 00 [07:48:54]Write to MH i2c: E2 08 00 4F 11 80 13 00 00 00 00 00 00 DC [07:48:54]Write i2c OK [07:48:54]MH_I2C_Read... [07:48:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:48:54]Read from MH i2c: E2 [07:48:54]MH_I2C_Read... [07:48:54]Read from MH i2c: E2 62 00 [07:48:54]MH_I2C_Read... [07:48:54]Read from MH i2c: E2 62 00 4F 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2A 12 03 00 0E 04 04 00 1F 02 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 A1 [07:48:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2A 12 03 00 0E 04 04 00 1F 02 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 [07:48:54]wFMCommunicate OK [07:48:54]SAM_PROTO_GetFieldsCounters done [07:48:54]requested_item shift.num is exist - process it [07:48:54]requested_item shift.opened is exist - process it [07:48:54]req_shift_opened [07:48:54]FM_GetShiftState [07:48:54]SAM_PROTO_GetShiftState [07:48:54]wFMCommunicate request_size=4 [07:48:54]MH_SAM_APDU [07:48:54]CAPDU: 80 13 01 00 [07:48:54]Write to MH i2c: E2 08 00 50 11 80 13 01 00 00 00 00 00 DE [07:48:54]Write i2c OK [07:48:54]MH_I2C_Read... [07:48:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:54]Read from MH i2c: E2 [07:48:54]MH_I2C_Read... [07:48:54]Read from MH i2c: E2 0E 00 [07:48:54]MH_I2C_Read... [07:48:54]Read from MH i2c: E2 0E 00 50 11 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 ED [07:48:54]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [07:48:54]wFMCommunicate OK [07:48:54]SAM_PROTO_GetShiftState done [07:48:54]FM_GetShiftState done [07:48:54]req_shift_opened done [07:48:54]requested_item shift.open_date is exist - process it [07:48:54]req_shift_open_date [07:48:54]req_shift_open_date done [07:48:54]produce_requested_data done [07:48:54]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201258,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [07:48:54]process_action_free close_receipt [07:48:54]json_value_free [07:48:54]json_value_free done [07:48:54]process_json_proto returns [07:48:54]Send response to host [07:48:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201258,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [07:48:54]free response buf [07:48:54]execute_script done [07:48:54]execute_script returns [07:48:54]free content buf [07:48:54]Sock 9.Close socket [07:48:54]Sock 9.Thread stoped [07:48:58]OFD Sender: No OFD packet to send [07:49:03]OFD Sender: No OFD packet to send [07:49:08]OFD Sender: No OFD packet to send [07:49:13]OFD Sender: No OFD packet to send [07:49:18]OFD Sender: No OFD packet to send [07:49:23]OFD Sender: No OFD packet to send [07:49:28]OFD Sender: No OFD packet to send [07:49:33]OFD Sender: No OFD packet to send [07:49:38]OFD Sender: No OFD packet to send [07:49:43]OFD Sender: No OFD packet to send [07:49:48]OFD Sender: No OFD packet to send [07:49:53]OFD Sender: No OFD packet to send [07:49:58]OFD Sender: No OFD packet to send [07:50:03]OFD Sender: No OFD packet to send [07:50:08]OFD Sender: No OFD packet to send [07:50:13]OFD Sender: No OFD packet to send [07:50:18]OFD Sender: No OFD packet to send [07:50:23]OFD Sender: No OFD packet to send [07:50:28]OFD Sender: No OFD packet to send [07:50:33]OFD Sender: No OFD packet to send [07:50:38]OFD Sender: No OFD packet to send [07:50:43]OFD Sender: No OFD packet to send [07:50:48]OFD Sender: No OFD packet to send [07:50:53]OFD Sender: No OFD packet to send [07:50:58]OFD Sender: No OFD packet to send [07:51:03]OFD Sender: No OFD packet to send [07:51:08]OFD Sender: No OFD packet to send [07:51:13]OFD Sender: No OFD packet to send [07:51:18]OFD Sender: No OFD packet to send [07:51:23]OFD Sender: No OFD packet to send [07:51:28]OFD Sender: No OFD packet to send [07:51:33]OFD Sender: No OFD packet to send [07:51:38]OFD Sender: No OFD packet to send [07:51:43]OFD Sender: No OFD packet to send [07:51:48]OFD Sender: No OFD packet to send [07:51:53]OFD Sender: No OFD packet to send [07:51:58]OFD Sender: No OFD packet to send [07:52:03]OFD Sender: No OFD packet to send [07:52:08]OFD Sender: No OFD packet to send [07:52:13]OFD Sender: No OFD packet to send [07:52:18]OFD Sender: No OFD packet to send [07:52:23]OFD Sender: No OFD packet to send [07:52:28]OFD Sender: No OFD packet to send [07:52:33]OFD Sender: No OFD packet to send [07:52:38]OFD Sender: No OFD packet to send [07:52:43]OFD Sender: No OFD packet to send [07:52:48]OFD Sender: No OFD packet to send [07:52:53]OFD Sender: No OFD packet to send [07:52:58]OFD Sender: No OFD packet to send [07:53:03]OFD Sender: No OFD packet to send [07:53:08]OFD Sender: No OFD packet to send [07:53:13]OFD Sender: No OFD packet to send [07:53:18]OFD Sender: No OFD packet to send [07:53:23]OFD Sender: No OFD packet to send [07:53:28]OFD Sender: No OFD packet to send [07:53:33]OFD Sender: No OFD packet to send [07:53:39]OFD Sender: No OFD packet to send [07:53:44]OFD Sender: No OFD packet to send [07:53:49]OFD Sender: No OFD packet to send [07:53:54]OFD Sender: No OFD packet to send [07:53:59]OFD Sender: No OFD packet to send [07:54:04]OFD Sender: No OFD packet to send [07:54:09]OFD Sender: No OFD packet to send [07:54:14]OFD Sender: No OFD packet to send [07:54:19]OFD Sender: No OFD packet to send [07:54:24]OFD Sender: No OFD packet to send [07:54:29]OFD Sender: No OFD packet to send [07:54:34]OFD Sender: No OFD packet to send [07:54:39]OFD Sender: No OFD packet to send [07:54:44]OFD Sender: No OFD packet to send [07:54:49]OFD Sender: No OFD packet to send [07:54:54]OFD Sender: No OFD packet to send [07:54:59]OFD Sender: No OFD packet to send [07:55:04]OFD Sender: No OFD packet to send [07:55:09]OFD Sender: No OFD packet to send [07:55:14]OFD Sender: No OFD packet to send [07:55:19]OFD Sender: No OFD packet to send [07:55:24]OFD Sender: No OFD packet to send [07:55:29]OFD Sender: No OFD packet to send [07:55:34]OFD Sender: No OFD packet to send [07:55:39]OFD Sender: No OFD packet to send [07:55:44]OFD Sender: No OFD packet to send [07:55:49]OFD Sender: No OFD packet to send [07:55:54]OFD Sender: No OFD packet to send [07:55:59]OFD Sender: No OFD packet to send [07:56:04]OFD Sender: No OFD packet to send [07:56:09]OFD Sender: No OFD packet to send [07:56:14]OFD Sender: No OFD packet to send [07:56:19]OFD Sender: No OFD packet to send [07:56:24]OFD Sender: No OFD packet to send [07:56:29]OFD Sender: No OFD packet to send [07:56:34]OFD Sender: No OFD packet to send [07:56:39]OFD Sender: No OFD packet to send [07:56:44]OFD Sender: No OFD packet to send [07:56:49]OFD Sender: No OFD packet to send [07:56:54]OFD Sender: No OFD packet to send [07:56:59]OFD Sender: No OFD packet to send [07:57:04]OFD Sender: No OFD packet to send [07:57:09]OFD Sender: No OFD packet to send [07:57:14]OFD Sender: No OFD packet to send [07:57:19]OFD Sender: No OFD packet to send [07:57:24]OFD Sender: No OFD packet to send [07:57:29]OFD Sender: No OFD packet to send [07:57:34]OFD Sender: No OFD packet to send [07:57:39]OFD Sender: No OFD packet to send [07:57:44]OFD Sender: No OFD packet to send [07:57:49]OFD Sender: No OFD packet to send [07:57:54]OFD Sender: No OFD packet to send [07:57:59]OFD Sender: No OFD packet to send [07:58:04]OFD Sender: No OFD packet to send [07:58:09]OFD Sender: No OFD packet to send [07:58:14]OFD Sender: No OFD packet to send [07:58:19]OFD Sender: No OFD packet to send [07:58:24]OFD Sender: No OFD packet to send [07:58:29]OFD Sender: No OFD packet to send [07:58:34]OFD Sender: No OFD packet to send [07:58:39]OFD Sender: No OFD packet to send [07:58:44]OFD Sender: No OFD packet to send [07:58:49]OFD Sender: No OFD packet to send [07:58:54]OFD Sender: No OFD packet to send [07:58:59]OFD Sender: No OFD packet to send [07:59:04]OFD Sender: No OFD packet to send [07:59:09]OFD Sender: No OFD packet to send [07:59:14]OFD Sender: No OFD packet to send [07:59:19]OFD Sender: No OFD packet to send [07:59:24]OFD Sender: No OFD packet to send [07:59:29]OFD Sender: No OFD packet to send [07:59:34]OFD Sender: No OFD packet to send [07:59:39]OFD Sender: No OFD packet to send [07:59:44]OFD Sender: No OFD packet to send [07:59:49]OFD Sender: No OFD packet to send [07:59:54]OFD Sender: No OFD packet to send [07:59:59]OFD Sender: No OFD packet to send [08:00:04]OFD Sender: No OFD packet to send [08:00:09]OFD Sender: No OFD packet to send [08:00:14]OFD Sender: No OFD packet to send [08:00:19]OFD Sender: No OFD packet to send [08:00:24]OFD Sender: No OFD packet to send [08:00:29]OFD Sender: No OFD packet to send [08:00:34]OFD Sender: No OFD packet to send [08:00:39]OFD Sender: No OFD packet to send [08:00:41]accept exits with 7 [08:00:41]New connection [08:00:41]New thread 3067559268 created [08:00:41]Thread 3067415908 joined [08:00:41]Waiting for new connection... [08:00:41] Sock 7.Parse request [08:00:41]Sock 7.Check first char [08:00:41]Sock 7.First char is OK [08:00:41]request: POST /json_proto HTTP/1.0 [08:00:41]Method: POST [08:00:41]URL: /json_proto [08:00:41]Method is POST - this is cgi request [08:00:41]url: /json_proto [08:00:41]query_string will be loaded in cgi processing [08:00:41]execute_cgi json_proto POST (null) [08:00:41]execute_cgi path=json_proto method=POST [08:00:41]POST find Content-Length [08:00:41]Host: 172.17.63.195:8080 [08:00:41]Content-Length: 769 [08:00:41]Content-Type: application/json [08:00:41] [08:00:41]POST finish read [08:00:41]Found Content-Length = 769 [08:00:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:41]execute_script... [08:00: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)449006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:41]POST & json_proto [08:00:41]process_json_proto [08:00:41]json parsed OK: [08:00:41]protocol is kg_v1.0 [08:00:41]action value=close_receipt [08:00:41]process_action close_receipt [08:00:41]cmd_close_receipt [08:00:41]MH_GetDate [08:00:41]Write to MH i2c: F0 00 00 51 11 51 [08:00:41]Write i2c OK [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: F0 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: F0 09 00 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: F0 09 00 51 11 00 AC A1 1C 67 68 46 19 67 58 [08:00:41]GetLastDocTimeStamp 1729928934 [08:00:41]current date 1729929644 [08:00:41]FM_GetShiftState [08:00:41]SAM_PROTO_GetShiftState [08:00:41]wFMCommunicate request_size=4 [08:00:41]MH_SAM_APDU [08:00:41]CAPDU: 80 13 01 00 [08:00:41]Write to MH i2c: E2 08 00 52 11 80 13 01 00 00 00 00 00 E0 [08:00:41]Write i2c OK [08:00:41]MH_I2C_Read... [08:00:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:41]Read from MH i2c: E2 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: E2 0E 00 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: E2 0E 00 52 11 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 EF [08:00:41]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:00:41]wFMCommunicate OK [08:00:41]SAM_PROTO_GetShiftState done [08:00:41]FM_GetShiftState done [08:00:41]opened in 1729900879 [08:00:41]opened+sec_in_day 1729987279 [08:00:41]quantity*price = 100015 [08:00:41]sum+1 = 100017 [08:00:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 21 26.10.2024 08:00 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201259 ФПД: 166769759844817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T080044&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201259&fm=166769759844817&tin=02508201610067®Number=0000000000091777&sum=100016 [08:00:42]StoreToDocumentArchive [08:00:42]shift 543 fd 201259 [08:00:42]save to /storage/0543/doc_00201259 [08:00:42]save last doc name /storage/0543/doc_00201259 to /storage/kkm_last_doc_name [08:00:42]save OK [08:00:42]Clear old archive folders... [08:00:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:00:42]tlvbuf is B6F55710 [08:00:42]SAM_PROTO_ClearQueue [08:00:42]wFMCommunicate request_size=4 [08:00:42]MH_SAM_APDU [08:00:42]CAPDU: 80 09 00 00 [08:00:42]Write to MH i2c: E2 08 00 5F 11 80 09 00 00 00 00 00 00 E2 [08:00:42]Write i2c OK [08:00:42]MH_I2C_Read... [08:00:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:00:42]Read from MH i2c: E2 [08:00:42]MH_I2C_Read... [08:00:42]Read from MH i2c: E2 03 00 [08:00:42]MH_I2C_Read... [08:00:42]Read from MH i2c: E2 03 00 5F 11 00 90 00 E4 [08:00:42]RAPDU: 90 00 [08:00:42]wFMCommunicate OK [08:00:42]SAM_PROTO_ClearQueue done [08:00:42]KKMCreateOFDPacket [08:00:42]OFDProtocolAddRootSTLVToBuf [08:00:42]FM_MakeSignedData [08:00:42]FM_MakeSignedData [08:00:42]SAM_PROTO_SignData [08:00:42]wFMCommunicate request_size=4 [08:00:42]MH_SAM_APDU [08:00:42]CAPDU: 80 0D 01 02 [08:00:42]Write to MH i2c: E2 08 00 60 11 80 0D 01 02 00 00 00 00 EA [08:00:42]Write i2c OK [08:00:42]MH_I2C_Read... [08:00:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:00:42]Read from MH i2c: E2 [08:00:42]MH_I2C_Read... [08:00:42]Read from MH i2c: E2 03 00 [08:00:42]MH_I2C_Read... [08:00:42]Read from MH i2c: E2 03 00 60 11 00 90 00 E5 [08:00:42]RAPDU: 90 00 [08:00:42]wFMCommunicate OK [08:00:42]wFMCommunicate request_size=255 [08:00:42]MH_SAM_APDU [08:00:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B0 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 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 AC A1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2B 12 03 00 35 04 06 00 97 [08:00:42]Write to MH i2c: E2 02 01 61 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 32 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 B0 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 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 AC A1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2B 12 03 00 35 04 06 00 97 00 00 75 [08:00:42]Write i2c OK [08:00:42]MH_I2C_Read... [08:00:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:43]Read from MH i2c: E2 [08:00:43]MH_I2C_Read... [08:00:43]Read from MH i2c: E2 03 00 [08:00:43]MH_I2C_Read... [08:00:43]Read from MH i2c: E2 03 00 61 11 00 90 00 E6 [08:00:43]RAPDU: 90 00 [08:00:43]wFMCommunicate OK [08:00:43]wFMCommunicate request_size=10 [08:00:43]MH_SAM_APDU [08:00:43]CAPDU: 80 0D 02 02 05 AD 1C 4B 79 D1 [08:00:43]Write to MH i2c: E2 0D 00 62 11 80 0D 02 02 05 00 AD 1C 4B 79 D1 00 00 55 [08:00:43]Write i2c OK [08:00:43]MH_I2C_Read... [08:00:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:43]Read from MH i2c: E2 [08:00:43]MH_I2C_Read... [08:00:43]Read from MH i2c: E2 03 00 [08:00:43]MH_I2C_Read... [08:00:43]Read from MH i2c: E2 03 00 62 11 00 90 00 E7 [08:00:43]RAPDU: 90 00 [08:00:43]wFMCommunicate OK [08:00:43]wFMCommunicate request_size=4 [08:00:43]MH_SAM_APDU [08:00:43]CAPDU: 80 0D 03 02 [08:00:43]Write to MH i2c: E2 08 00 63 11 80 0D 03 02 00 00 00 00 EF [08:00:43]Write i2c OK [08:00:43]MH_I2C_Read... [08:00:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:00:43]Read from MH i2c: E2 [08:00:43]MH_I2C_Read... [08:00:43]Read from MH i2c: E2 0B 00 [08:00:43]MH_I2C_Read... [08:00:43]Read from MH i2c: E2 0B 00 63 11 00 F1 89 3E 2E D8 9D CB FE 90 00 14 [08:00:43]RAPDU: F1 89 3E 2E D8 9D CB FE 90 00 [08:00:43]wFMCommunicate OK [08:00:43]SAM_PROTO_SignData done [08:00:43]FM_MakeSignedData done [08:00:43]CreateOFDProtocolMessage [08:00:43]wFMCommunicate request_size=4 [08:00:43]MH_SAM_APDU [08:00:43]CAPDU: 80 11 00 00 [08:00:43]Write to MH i2c: E2 08 00 64 11 80 11 00 00 00 00 00 00 EF [08:00:43]Write i2c OK [08:00:43]MH_I2C_Read... [08:00:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:43]Read from MH i2c: E2 [08:00:43]MH_I2C_Read... [08:00:43]Read from MH i2c: E2 17 00 [08:00:43]MH_I2C_Read... [08:00:43]Read from MH i2c: E2 17 00 64 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 44 [08:00:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:00:43]wFMCommunicate OK [08:00:43]CreateOFDProtocolMessage done [08:00:43]OFDSenderStorePacket 201259 [08:00:43]StoreOFDPacket docnum=201259 [08:00:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 4C 97 07 01 E4 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 32 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 B0 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 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 AC A1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2B 12 03 00 35 04 06 00 97 AD 1C 4B 79 D1 F1 89 3E 2E D8 9D CB FE [08:00:43]CheckFolder [08:00:43]dirname=/storage/ofd_packets [08:00:43]CheckFolder done [08:00:43]ProducePacketName [08:00:43]name=ofd_packets/00201259 [08:00:43]NVStorageSaveData ofd_packets/00201259 [08:00:43]File name is /storage/ofd_packets/00201259 [08:00:43]Write 301 bytes [08:00:43]NVStorageSaveData done [08:00:43]OFDSenderStorePacket done [08:00:43]KKMCreateOFDPacket done [08:00:43]NVStorageSaveData kkm_last_timestamp [08:00:43]File name is /storage/kkm_last_timestamp [08:00:43]Write 4 bytes [08:00:43]NVStorageSaveData done [08:00:43]ExternCall_PrintAddStr [08:00:43]wPrintStart [08:00:43]Write to MH i2c: 01 00 00 65 11 76 [08:00:43]Write i2c OK [08:00:43]MH_I2C_Read... [08:00:43]Read from MH i2c: 01 [08:00:43]MH_I2C_Read... [08:00:43]Read from MH i2c: 01 07 00 [08:00:43]MH_I2C_Read... [08:00:43]Read from MH i2c: 01 07 00 65 11 00 00 00 00 00 FF 0F 8B [08:00:43]RasterBufferAndPrint [08:00:43]line Счет N : (1)449006 [08:00:43]line ИНН: 02508201610067 [08:00:43]line Контрольно-Кассовый Чек [08:00:43]line ПРОДАЖА [08:00:43]line ТРК (МРК, ГНК) : 41 [08:00:43]line Товар: 2710124130 [08:00:43]line Аи-92-К-2 [08:00:43]line 14.950 * 66.90 [08:00:43]line = 1000.16 [08:00:43]line НДС 12% НСП 1% [08:00:43]line > о реализуемом товаре [08:00:43]line ИТОГО: 1000.16 [08:00:43]line НСП 1% : 8.85 [08:00:43]line НДС 12% : 106.21 [08:00:43]line Наличными: 0.00 [08:00:43]line Безнал.: 1000.16 [08:00:43]line Место: АЗС № 171 "Партнер Нефть" [08:00:43]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:00:43]line СНО: Общий режим [08:00:43]line Чек 21 26.10.2024 08:00 [08:00:43]line Смена: 543 ФФД: 1.0 [08:00:43]line ЗНМ: 0300000109 [08:00:43]line РНМ: 0000000000091777 [08:00:43]line Версия ККМ: 001 [08:00:43]line Платежная система: Mbank [08:00:43]line ФМ: 0000000000871756 [08:00:43]line ФД: 201259 [08:00:43]line ФПД: 166769759844817 [08:00:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T080044&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201259&fm=166769759844817&tin=02508201610067®Number=0000000000091777&sum=100016 [08:00:43]OFD Sender: Processing packet 201259 [packets to send 112, broken 111] [08:00:43]ProducePacketName [08:00:43]name=ofd_packets/00201259 [08:00:43]OFD Sender: To server: pG, [08:00:43]CommunicateWithHost lk.salyk.kg:30040 [08:00:43]ConnectInit lk.salyk.kg [08:00:43]written 0, free lines is 4095 [08:00:43]Connected sock=10 [08:00:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 4C 97 07 01 E4 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 32 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 B0 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 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 AC A1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2B 12 03 00 35 04 06 00 97 AD 1C 4B 79 D1 F1 89 3E 2E D8 9D CB FE [08:00:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 97 38 47 00 7A EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2B 12 03 00 F4 03 04 00 56 4D 1C 67 B6 04 01 00 00 6A BB 91 F3 D5 00 A2 5E [08:00:43]CommunicateWithHost err = 0 [08:00:43]CheckOFDResponse [08:00:43]1017 (14) - 77093643461234 [08:00:43]1041 (16) - 0000000000871756 [08:00:43]1040 (4) - 201259 [08:00:43]1012 (4) - 26.10.2024 02:00 [08:00:43]1206 (1) - 0 [08:00:43]OFD Sender: Remove packet 201259 [08:00:43]ProducePacketName [08:00:43]name=ofd_packets/00201259 [08:00:43]NVStorageDeleteData [08:00:44]Write to MH i2c: 01 00 00 8E 11 9F [08:00:44]Write i2c OK [08:00:44]MH_I2C_Read... [08:00:44]Read from MH i2c: 01 [08:00:44]MH_I2C_Read... [08:00:44]Read from MH i2c: 01 07 00 [08:00:44]MH_I2C_Read... [08:00:44]Read from MH i2c: 01 07 00 8E 11 00 00 00 00 00 C6 0C 78 [08:00:44]RasterBufferAndPrint [08:00:44]line [08:00:44]line [08:00:44]line [08:00:44]line [08:00:44]line [08:00:44]written 0, free lines is 3274 [08:00:44]MH_Cut [08:00:44]Write to MH i2c: D1 01 00 95 11 01 78 [08:00:44]Write i2c OK [08:00:44]MH_I2C_Read... [08:00:44]Read from MH i2c: D1 [08:00:44]MH_I2C_Read... [08:00:44]Read from MH i2c: D1 01 00 [08:00:44]MH_I2C_Read... [08:00:44]Read from MH i2c: D1 01 00 95 11 00 77 [08:00:44]Write to MH i2c: 01 00 00 96 11 A7 [08:00:44]Write i2c OK [08:00:44]MH_I2C_Read... [08:00:44]OFD Sender: No OFD packet to send [08:00:44]*** Cut start [08:00:44]*** Purtial cut [08:00:44]*** Stage 1: CUTSNS_PIN = 1 [08:00:45]Read from MH i2c: 01 [08:00:45]MH_I2C_Read... [08:00:45]*** Stop cut motor [08:00:45]*** Cut end [08:00:45]Read from MH i2c: 01 07 00 [08:00:45]MH_I2C_Read... [08:00:45]Read from MH i2c: 01 07 00 96 11 00 00 00 00 00 FF 0F BC [08:00:45]process_action close_receipt done [08:00:45]requested_data is exist [08:00:45]produce_requested_data [08:00:45]requested_item fm.sn is exist - process it [08:00:45]wFMCommunicate request_size=4 [08:00:45]MH_SAM_APDU [08:00:45]CAPDU: 80 11 00 00 [08:00:45]Write to MH i2c: E2 08 00 97 11 80 11 00 00 00 00 00 00 22 [08:00:45]Write i2c OK [08:00:45]MH_I2C_Read... [08:00:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:45]Read from MH i2c: E2 [08:00:45]MH_I2C_Read... [08:00:45]Read from MH i2c: E2 17 00 [08:00:45]MH_I2C_Read... [08:00:45]Read from MH i2c: E2 17 00 97 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 77 [08:00:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:00:45]wFMCommunicate OK [08:00:45]requested_item fd.num is exist - process it [08:00:45]SAM_PROTO_GetFieldsCounters [08:00:45]wFMCommunicate request_size=4 [08:00:45]MH_SAM_APDU [08:00:45]CAPDU: 80 13 00 00 [08:00:45]Write to MH i2c: E2 08 00 98 11 80 13 00 00 00 00 00 00 25 [08:00:45]Write i2c OK [08:00:45]MH_I2C_Read... [08:00:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:00:45]Read from MH i2c: E2 [08:00:45]MH_I2C_Read... [08:00:45]Read from MH i2c: E2 62 00 [08:00:45]MH_I2C_Read... [08:00:45]Read from MH i2c: E2 62 00 98 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2B 12 03 00 0E 04 04 00 1F 02 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 EE [08:00:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2B 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:00:45]wFMCommunicate OK [08:00:45]SAM_PROTO_GetFieldsCounters done [08:00:45]requested_item shift.num is exist - process it [08:00:45]requested_item shift.opened is exist - process it [08:00:45]req_shift_opened [08:00:45]FM_GetShiftState [08:00:45]SAM_PROTO_GetShiftState [08:00:45]wFMCommunicate request_size=4 [08:00:45]MH_SAM_APDU [08:00:45]CAPDU: 80 13 01 00 [08:00:45]Write to MH i2c: E2 08 00 99 11 80 13 01 00 00 00 00 00 27 [08:00:45]Write i2c OK [08:00:45]MH_I2C_Read... [08:00:45]Read from MH i2c: E2 [08:00:45]MH_I2C_Read... [08:00:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:45]Read from MH i2c: E2 0E 00 [08:00:45]MH_I2C_Read... [08:00:45]Read from MH i2c: E2 0E 00 99 11 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 36 [08:00:45]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:00:45]wFMCommunicate OK [08:00:45]SAM_PROTO_GetShiftState done [08:00:45]FM_GetShiftState done [08:00:45]req_shift_opened done [08:00:45]requested_item shift.open_date is exist - process it [08:00:45]req_shift_open_date [08:00:45]req_shift_open_date done [08:00:45]produce_requested_data done [08:00:45]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201259,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [08:00:45]process_action_free close_receipt [08:00:45]json_value_free [08:00:45]json_value_free done [08:00:45]process_json_proto returns [08:00:45]Send response to host [08:00:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201259,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [08:00:45]free response buf [08:00:45]execute_script done [08:00:45]execute_script returns [08:00:45]free content buf [08:00:45]Sock 7.Close socket [08:00:45]Sock 7.Thread stoped [08:00:49]OFD Sender: No OFD packet to send [08:00:54]OFD Sender: No OFD packet to send [08:00:59]OFD Sender: No OFD packet to send [08:01:04]OFD Sender: No OFD packet to send [08:01:09]OFD Sender: No OFD packet to send [08:01:14]OFD Sender: No OFD packet to send [08:01:19]OFD Sender: No OFD packet to send [08:01:24]OFD Sender: No OFD packet to send [08:01:29]OFD Sender: No OFD packet to send [08:01:34]OFD Sender: No OFD packet to send [08:01:39]OFD Sender: No OFD packet to send [08:01:44]OFD Sender: No OFD packet to send [08:01:49]OFD Sender: No OFD packet to send [08:01:54]OFD Sender: No OFD packet to send [08:01:59]OFD Sender: No OFD packet to send [08:02:03]accept exits with 9 [08:02:03]New connection [08:02:03]New thread 3067415908 created [08:02:03]Thread 3067559268 joined [08:02:03]Waiting for new connection... [08:02:03] Sock 9.Parse request [08:02:03]Sock 9.Check first char [08:02:03]Sock 9.First char is OK [08:02:03]request: POST /json_proto HTTP/1.0 [08:02:03]Method: POST [08:02:03]URL: /json_proto [08:02:03]Method is POST - this is cgi request [08:02:03]url: /json_proto [08:02:03]query_string will be loaded in cgi processing [08:02:03]execute_cgi json_proto POST (null) [08:02:03]execute_cgi path=json_proto method=POST [08:02:03]POST find Content-Length [08:02:03]Host: 172.17.63.195:8080 [08:02:03]Content-Length: 812 [08:02:03]Content-Type: application/json [08:02:03] [08:02:03]POST finish read [08:02:03]Found Content-Length = 812 [08:02:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 28.000, "sum" : 1915.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1915.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:02:03]execute_script... [08:02:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 28.000, "sum" : 1915.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1915.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:02:03]POST & json_proto [08:02:03]process_json_proto [08:02:03]json parsed OK: [08:02:03]protocol is kg_v1.0 [08:02:03]action value=close_receipt [08:02:03]process_action close_receipt [08:02:03]cmd_close_receipt [08:02:03]MH_GetDate [08:02:03]Write to MH i2c: F0 00 00 9A 11 9A [08:02:03]Write i2c OK [08:02:03]MH_I2C_Read... [08:02:03]Read from MH i2c: F0 [08:02:03]MH_I2C_Read... [08:02:03]Read from MH i2c: F0 09 00 [08:02:03]MH_I2C_Read... [08:02:03]Read from MH i2c: F0 09 00 9A 11 00 FE A1 1C 67 68 46 19 67 F3 [08:02:03]GetLastDocTimeStamp 1729929644 [08:02:03]current date 1729929726 [08:02:03]FM_GetShiftState [08:02:03]SAM_PROTO_GetShiftState [08:02:03]wFMCommunicate request_size=4 [08:02:03]MH_SAM_APDU [08:02:03]CAPDU: 80 13 01 00 [08:02:03]Write to MH i2c: E2 08 00 9B 11 80 13 01 00 00 00 00 00 29 [08:02:03]Write i2c OK [08:02:03]MH_I2C_Read... [08:02:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:03]Read from MH i2c: E2 [08:02:03]MH_I2C_Read... [08:02:03]Read from MH i2c: E2 0E 00 [08:02:03]MH_I2C_Read... [08:02:03]Read from MH i2c: E2 0E 00 9B 11 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 38 [08:02:03]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:02:03]wFMCommunicate OK [08:02:03]SAM_PROTO_GetShiftState done [08:02:03]FM_GetShiftState done [08:02:03]opened in 1729900879 [08:02:03]opened+sec_in_day 1729987279 [08:02:03]quantity*price = 191520 [08:02:03]sum+1 = 191521 [08:02:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1915.20 НСП 1% : 16.95 НДС 12% : 203.38 Наличными: 0.00 Безнал.: 1915.20 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 22 26.10.2024 08:02 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871756 ФД: 201260 ФПД: 66324414574648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T080207&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201260&fm=66324414574648&tin=02508201610067®Number=0000000000091777&sum=191520 [08:02:04]StoreToDocumentArchive [08:02:04]shift 543 fd 201260 [08:02:04]save to /storage/0543/doc_00201260 [08:02:04]save last doc name /storage/0543/doc_00201260 to /storage/kkm_last_doc_name [08:02:04]save OK [08:02:04]Clear old archive folders... [08:02:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:02:04]tlvbuf is 017187F0 [08:02:04]SAM_PROTO_ClearQueue [08:02:04]wFMCommunicate request_size=4 [08:02:04]MH_SAM_APDU [08:02:04]CAPDU: 80 09 00 00 [08:02:04]Write to MH i2c: E2 08 00 A8 11 80 09 00 00 00 00 00 00 2B [08:02:04]Write i2c OK [08:02:04]MH_I2C_Read... [08:02:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:02:04]Read from MH i2c: E2 [08:02:04]MH_I2C_Read... [08:02:04]Read from MH i2c: E2 03 00 [08:02:04]MH_I2C_Read... [08:02:04]Read from MH i2c: E2 03 00 A8 11 00 90 00 2D [08:02:04]RAPDU: 90 00 [08:02:04]wFMCommunicate OK [08:02:04]SAM_PROTO_ClearQueue done [08:02:04]KKMCreateOFDPacket [08:02:04]OFDProtocolAddRootSTLVToBuf [08:02:04]FM_MakeSignedData [08:02:04]FM_MakeSignedData [08:02:04]SAM_PROTO_SignData [08:02:04]wFMCommunicate request_size=4 [08:02:04]MH_SAM_APDU [08:02:04]CAPDU: 80 0D 01 02 [08:02:04]Write to MH i2c: E2 08 00 A9 11 80 0D 01 02 00 00 00 00 33 [08:02:04]Write i2c OK [08:02:04]MH_I2C_Read... [08:02:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:02:04]Read from MH i2c: E2 [08:02:04]MH_I2C_Read... [08:02:04]Read from MH i2c: E2 03 00 [08:02:04]MH_I2C_Read... [08:02:04]Read from MH i2c: E2 03 00 A9 11 00 90 00 2E [08:02:04]RAPDU: 90 00 [08:02:04]wFMCommunicate OK [08:02:04]wFMCommunicate request_size=255 [08:02:04]MH_SAM_APDU [08:02:04]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 60 6D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 20 EC 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 EC 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 4F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 EC 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 FF A1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2C 12 03 00 35 04 06 00 [08:02:04]Write to MH i2c: E2 02 01 AA 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 60 6D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 20 EC 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 EC 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 4F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 EC 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 FF A1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2C 12 03 00 35 04 06 00 00 00 AC [08:02:04]Write i2c OK [08:02:04]MH_I2C_Read... [08:02:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:05]Read from MH i2c: E2 [08:02:05]MH_I2C_Read... [08:02:05]Read from MH i2c: E2 03 00 [08:02:05]MH_I2C_Read... [08:02:05]Read from MH i2c: E2 03 00 AA 11 00 90 00 2F [08:02:05]RAPDU: 90 00 [08:02:05]wFMCommunicate OK [08:02:05]wFMCommunicate request_size=11 [08:02:05]MH_SAM_APDU [08:02:05]CAPDU: 80 0D 02 02 06 3C 52 5B 2B B0 38 [08:02:05]Write to MH i2c: E2 0E 00 AB 11 80 0D 02 02 06 00 3C 52 5B 2B B0 38 00 00 3E [08:02:05]Write i2c OK [08:02:05]MH_I2C_Read... [08:02:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:05]Read from MH i2c: E2 [08:02:05]MH_I2C_Read... [08:02:05]Read from MH i2c: E2 03 00 [08:02:05]MH_I2C_Read... [08:02:05]Read from MH i2c: E2 03 00 AB 11 00 90 00 30 [08:02:05]RAPDU: 90 00 [08:02:05]wFMCommunicate OK [08:02:05]wFMCommunicate request_size=4 [08:02:05]MH_SAM_APDU [08:02:05]CAPDU: 80 0D 03 02 [08:02:05]Write to MH i2c: E2 08 00 AC 11 80 0D 03 02 00 00 00 00 38 [08:02:05]Write i2c OK [08:02:05]MH_I2C_Read... [08:02:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:02:05]Read from MH i2c: E2 [08:02:05]MH_I2C_Read... [08:02:05]Read from MH i2c: E2 0B 00 [08:02:05]MH_I2C_Read... [08:02:05]Read from MH i2c: E2 0B 00 AC 11 00 E0 2D 91 30 9F 8D FE 92 90 00 C3 [08:02:05]RAPDU: E0 2D 91 30 9F 8D FE 92 90 00 [08:02:05]wFMCommunicate OK [08:02:05]SAM_PROTO_SignData done [08:02:05]FM_MakeSignedData done [08:02:05]CreateOFDProtocolMessage [08:02:05]wFMCommunicate request_size=4 [08:02:05]MH_SAM_APDU [08:02:05]CAPDU: 80 11 00 00 [08:02:05]Write to MH i2c: E2 08 00 AD 11 80 11 00 00 00 00 00 00 38 [08:02:05]Write i2c OK [08:02:05]MH_I2C_Read... [08:02:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:05]Read from MH i2c: E2 [08:02:05]MH_I2C_Read... [08:02:05]Read from MH i2c: E2 17 00 [08:02:05]MH_I2C_Read... [08:02:05]Read from MH i2c: E2 17 00 AD 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8D [08:02:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:02:05]wFMCommunicate OK [08:02:05]CreateOFDProtocolMessage done [08:02:05]OFDSenderStorePacket 201260 [08:02:05]StoreOFDPacket docnum=201260 [08:02:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 A9 4C 08 01 6D D3 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 60 6D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 20 EC 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 EC 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 4F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 EC 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 FF A1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2C 12 03 00 35 04 06 00 3C 52 5B 2B B0 38 E0 2D 91 30 9F 8D FE 92 [08:02:05]CheckFolder [08:02:05]dirname=/storage/ofd_packets [08:02:05]CheckFolder done [08:02:05]ProducePacketName [08:02:05]name=ofd_packets/00201260 [08:02:05]NVStorageSaveData ofd_packets/00201260 [08:02:05]File name is /storage/ofd_packets/00201260 [08:02:05]Write 302 bytes [08:02:05]NVStorageSaveData done [08:02:05]OFDSenderStorePacket done [08:02:05]KKMCreateOFDPacket done [08:02:05]NVStorageSaveData kkm_last_timestamp [08:02:05]File name is /storage/kkm_last_timestamp [08:02:05]Write 4 bytes [08:02:05]NVStorageSaveData done [08:02:05]ExternCall_PrintAddStr [08:02:05]wPrintStart [08:02:05]Write to MH i2c: 01 00 00 AE 11 BF [08:02:05]OFD Sender: Processing packet 201260 [packets to send 112, broken 111] [08:02:05]ProducePacketName [08:02:05]name=ofd_packets/00201260 [08:02:05]OFD Sender: To server: pG, [08:02:05]CommunicateWithHost lk.salyk.kg:30040 [08:02:05]ConnectInit lk.salyk.kg [08:02:05]Write i2c OK [08:02:05]MH_I2C_Read... [08:02:05]Read from MH i2c: 01 [08:02:05]MH_I2C_Read... [08:02:05]Read from MH i2c: 01 07 00 [08:02:05]MH_I2C_Read... [08:02:05]Read from MH i2c: 01 07 00 AE 11 00 00 00 00 00 FF 0F D4 [08:02:05]RasterBufferAndPrint [08:02:05]line Счет N : (1)449007 [08:02:05]line ИНН: 02508201610067 [08:02:05]line Контрольно-Кассовый Чек [08:02:05]line ПРОДАЖА [08:02:05]line ТРК (МРК, ГНК) : 53 [08:02:05]line Товар: 2710124130 [08:02:05]line SUPER 92-К-5 [08:02:05]line 28.000 * 68.40 [08:02:05]line = 1915.20 [08:02:05]line НДС 12% НСП 1% [08:02:05]line > о реализуемом товаре [08:02:05]line ИТОГО: 1915.20 [08:02:05]line НСП 1% : 16.95 [08:02:05]line НДС 12% : 203.38 [08:02:05]line Наличными: 0.00 [08:02:05]line Безнал.: 1915.20 [08:02:05]line Место: АЗС № 171 "Партнер Нефть" [08:02:05]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:02:05]line СНО: Общий режим [08:02:05]line Чек 22 26.10.2024 08:02 [08:02:05]line Смена: 543 ФФД: 1.0 [08:02:05]line ЗНМ: 0300000109 [08:02:05]line РНМ: 0000000000091777 [08:02:05]line Версия ККМ: 001 [08:02:05]line Платежная система: Бакай Банк [08:02:05]line ФМ: 0000000000871756 [08:02:05]line ФД: 201260 [08:02:05]line ФПД: 66324414574648 [08:02:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T080207&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201260&fm=66324414574648&tin=02508201610067®Number=0000000000091777&sum=191520 [08:02:05]Connected sock=10 [08:02:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 A9 4C 08 01 6D D3 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 60 6D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 20 EC 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 EC 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 4F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 EC 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 FF A1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2C 12 03 00 35 04 06 00 3C 52 5B 2B B0 38 E0 2D 91 30 9F 8D FE 92 [08:02:05]written 0, free lines is 4095 [08:02:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 78 21 47 00 BE F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2C 12 03 00 F4 03 04 00 A8 4D 1C 67 B6 04 01 00 00 DB E1 D7 BF 71 89 74 81 [08:02:05]CommunicateWithHost err = 0 [08:02:05]CheckOFDResponse [08:02:05]1017 (14) - 77093643461234 [08:02:05]1041 (16) - 0000000000871756 [08:02:05]1040 (4) - 201260 [08:02:05]1012 (4) - 26.10.2024 02:02 [08:02:05]1206 (1) - 0 [08:02:05]OFD Sender: Remove packet 201260 [08:02:05]ProducePacketName [08:02:05]name=ofd_packets/00201260 [08:02:05]NVStorageDeleteData [08:02:06]Write to MH i2c: 01 00 00 D8 11 E9 [08:02:06]Write i2c OK [08:02:06]MH_I2C_Read... [08:02:06]Read from MH i2c: 01 [08:02:06]MH_I2C_Read... [08:02:06]Read from MH i2c: 01 07 00 [08:02:06]MH_I2C_Read... [08:02:06]Read from MH i2c: 01 07 00 D8 11 00 00 00 00 00 A8 0C A4 [08:02:06]RasterBufferAndPrint [08:02:06]line [08:02:06]line [08:02:06]line [08:02:06]line [08:02:06]line [08:02:06]written 0, free lines is 3245 [08:02:06]MH_Cut [08:02:06]Write to MH i2c: D1 01 00 DF 11 01 C2 [08:02:06]Write i2c OK [08:02:06]MH_I2C_Read... [08:02:06]Read from MH i2c: D1 [08:02:06]MH_I2C_Read... [08:02:06]Read from MH i2c: D1 01 00 [08:02:06]MH_I2C_Read... [08:02:06]Read from MH i2c: D1 01 00 DF 11 00 C1 [08:02:06]Write to MH i2c: 01 00 00 E0 11 F1 [08:02:06]Write i2c OK [08:02:06]MH_I2C_Read... [08:02:06]OFD Sender: No OFD packet to send [08:02:07]*** Cut start [08:02:07]*** Purtial cut [08:02:07]*** Stage 1: CUTSNS_PIN = 1 [08:02:07]Read from MH i2c: 01 [08:02:07]MH_I2C_Read... [08:02:07]*** Stop cut motor [08:02:07]*** Cut end [08:02:07]Read from MH i2c: 01 07 00 [08:02:07]MH_I2C_Read... [08:02:07]Read from MH i2c: 01 07 00 E0 11 00 00 00 00 00 FF 0F 06 [08:02:07]process_action close_receipt done [08:02:07]requested_data is exist [08:02:07]produce_requested_data [08:02:07]requested_item fm.sn is exist - process it [08:02:07]wFMCommunicate request_size=4 [08:02:07]MH_SAM_APDU [08:02:07]CAPDU: 80 11 00 00 [08:02:07]Write to MH i2c: E2 08 00 E1 11 80 11 00 00 00 00 00 00 6C [08:02:07]Write i2c OK [08:02:07]MH_I2C_Read... [08:02:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:07]Read from MH i2c: E2 [08:02:07]MH_I2C_Read... [08:02:07]Read from MH i2c: E2 17 00 [08:02:07]MH_I2C_Read... [08:02:07]Read from MH i2c: E2 17 00 E1 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C1 [08:02:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:02:07]wFMCommunicate OK [08:02:07]requested_item fd.num is exist - process it [08:02:07]SAM_PROTO_GetFieldsCounters [08:02:07]wFMCommunicate request_size=4 [08:02:07]MH_SAM_APDU [08:02:07]CAPDU: 80 13 00 00 [08:02:07]Write to MH i2c: E2 08 00 E2 11 80 13 00 00 00 00 00 00 6F [08:02:07]Write i2c OK [08:02:07]MH_I2C_Read... [08:02:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:02:07]Read from MH i2c: E2 [08:02:07]MH_I2C_Read... [08:02:07]Read from MH i2c: E2 62 00 [08:02:07]MH_I2C_Read... [08:02:07]Read from MH i2c: E2 62 00 E2 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2C 12 03 00 0E 04 04 00 1F 02 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 3C [08:02:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2C 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:02:07]wFMCommunicate OK [08:02:07]SAM_PROTO_GetFieldsCounters done [08:02:07]requested_item shift.num is exist - process it [08:02:07]requested_item shift.opened is exist - process it [08:02:07]req_shift_opened [08:02:07]FM_GetShiftState [08:02:07]SAM_PROTO_GetShiftState [08:02:07]wFMCommunicate request_size=4 [08:02:07]MH_SAM_APDU [08:02:07]CAPDU: 80 13 01 00 [08:02:07]Write to MH i2c: E2 08 00 E3 11 80 13 01 00 00 00 00 00 71 [08:02:07]Write i2c OK [08:02:07]MH_I2C_Read... [08:02:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:07]Read from MH i2c: E2 [08:02:07]MH_I2C_Read... [08:02:07]Read from MH i2c: E2 0E 00 [08:02:07]MH_I2C_Read... [08:02:07]Read from MH i2c: E2 0E 00 E3 11 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 80 [08:02:07]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:02:07]wFMCommunicate OK [08:02:07]SAM_PROTO_GetShiftState done [08:02:07]FM_GetShiftState done [08:02:07]req_shift_opened done [08:02:07]requested_item shift.open_date is exist - process it [08:02:07]req_shift_open_date [08:02:07]req_shift_open_date done [08:02:07]produce_requested_data done [08:02:07]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201260,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [08:02:07]process_action_free close_receipt [08:02:07]json_value_free [08:02:07]json_value_free done [08:02:07]process_json_proto returns [08:02:07]Send response to host [08:02:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201260,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [08:02:07]free response buf [08:02:07]execute_script done [08:02:07]execute_script returns [08:02:07]free content buf [08:02:07]Sock 9.Close socket [08:02:07]Sock 9.Thread stoped [08:02:11]OFD Sender: No OFD packet to send [08:02:16]OFD Sender: No OFD packet to send [08:02:21]OFD Sender: No OFD packet to send [08:02:26]OFD Sender: No OFD packet to send [08:02:31]OFD Sender: No OFD packet to send [08:02:36]OFD Sender: No OFD packet to send [08:02:41]OFD Sender: No OFD packet to send [08:02:46]OFD Sender: No OFD packet to send [08:02:51]OFD Sender: No OFD packet to send [08:02:56]OFD Sender: No OFD packet to send [08:03:00]int [08:03:00]Write to MH i2c: 01 00 00 E4 11 F5 [08:03:00]*** FLAG_PRN_KEY set [08:03:00]Write i2c OK [08:03:00]MH_I2C_Read... [08:03:00]Read from MH i2c: 01 [08:03:00]MH_I2C_Read... [08:03:00]Read from MH i2c: 01 07 00 [08:03:00]MH_I2C_Read... [08:03:00]Read from MH i2c: 01 07 00 E4 11 00 08 00 00 00 FF 0F 12 [08:03:00]state=0 [08:03:00]Key pressed [08:03:00]Feed [08:03:00]Write to MH i2c: D8 00 00 E5 11 CD [08:03:00]Write i2c OK [08:03:00]MH_I2C_Read... [08:03:00]Read from MH i2c: D8 [08:03:00]MH_I2C_Read... [08:03:00]Read from MH i2c: D8 01 00 [08:03:00]MH_I2C_Read... [08:03:00]Read from MH i2c: D8 01 00 E5 11 00 CE [08:03:00]int [08:03:00]Write to MH i2c: 01 00 00 E6 11 F7 [08:03:00]Write i2c OK [08:03:00]MH_I2C_Read... [08:03:00]Read from MH i2c: 01 [08:03:00]MH_I2C_Read... [08:03:00]Read from MH i2c: 01 07 00 [08:03:00]MH_I2C_Read... [08:03:00]Read from MH i2c: 01 07 00 E6 11 00 48 00 00 00 3C 00 82 [08:03:00]state=2 [08:03:00]Key pressed [08:03:00]int [08:03:00]Write to MH i2c: 01 00 00 E7 11 F8 [08:03:00]*** FLAG_PRN_KEY reset [08:03:00]Write i2c OK [08:03:00]MH_I2C_Read... [08:03:00]Read from MH i2c: 01 [08:03:00]MH_I2C_Read... [08:03:00]Read from MH i2c: 01 07 00 [08:03:00]MH_I2C_Read... [08:03:00]Read from MH i2c: 01 07 00 E7 11 00 00 00 00 00 F5 0F 03 [08:03:00]state=2 [08:03:00]Stop feed [08:03:00]int [08:03:00]Write to MH i2c: 01 00 00 E8 11 F9 [08:03:00]*** FLAG_PRN_KEY set [08:03:00]Write i2c OK [08:03:00]MH_I2C_Read... [08:03:00]Read from MH i2c: 01 [08:03:00]MH_I2C_Read... [08:03:00]Read from MH i2c: 01 07 00 [08:03:00]MH_I2C_Read... [08:03:00]Read from MH i2c: 01 07 00 E8 11 00 08 00 00 00 FF 0F 16 [08:03:00]state=0 [08:03:00]Key pressed [08:03:00]Feed [08:03:00]Write to MH i2c: D8 00 00 E9 11 D1 [08:03:00]Write i2c OK [08:03:00]MH_I2C_Read... [08:03:00]Read from MH i2c: D8 [08:03:00]MH_I2C_Read... [08:03:00]Read from MH i2c: D8 01 00 [08:03:00]MH_I2C_Read... [08:03:00]Read from MH i2c: D8 01 00 E9 11 00 D2 [08:03:00]int [08:03:00]Write to MH i2c: 01 00 00 EA 11 FB [08:03:00]Write i2c OK [08:03:00]MH_I2C_Read... [08:03:00]Read from MH i2c: 01 [08:03:00]MH_I2C_Read... [08:03:00]Read from MH i2c: 01 07 00 [08:03:00]MH_I2C_Read... [08:03:00]Read from MH i2c: 01 07 00 EA 11 00 48 00 00 00 3C 00 86 [08:03:00]state=2 [08:03:00]Key pressed [08:03:00]int [08:03:00]Write to MH i2c: 01 00 00 EB 11 FC [08:03:00]*** FLAG_PRN_KEY reset [08:03:00]Write i2c OK [08:03:00]MH_I2C_Read... [08:03:00]Read from MH i2c: 01 [08:03:00]MH_I2C_Read... [08:03:00]Read from MH i2c: 01 07 00 [08:03:00]MH_I2C_Read... [08:03:00]Read from MH i2c: 01 07 00 EB 11 00 00 00 00 00 F5 0F 07 [08:03:00]state=2 [08:03:00]Stop feed [08:03:01]OFD Sender: No OFD packet to send [08:03:06]OFD Sender: No OFD packet to send [08:03:11]OFD Sender: No OFD packet to send [08:03:16]OFD Sender: No OFD packet to send [08:03:21]OFD Sender: No OFD packet to send [08:03:26]OFD Sender: No OFD packet to send [08:03:31]OFD Sender: No OFD packet to send [08:03:36]OFD Sender: No OFD packet to send [08:03:41]OFD Sender: No OFD packet to send [08:03:46]OFD Sender: No OFD packet to send [08:03:51]OFD Sender: No OFD packet to send [08:03:56]OFD Sender: No OFD packet to send [08:04:01]OFD Sender: No OFD packet to send [08:04:06]OFD Sender: No OFD packet to send [08:04:11]OFD Sender: No OFD packet to send [08:04:16]OFD Sender: No OFD packet to send [08:04:21]OFD Sender: No OFD packet to send [08:04:26]OFD Sender: No OFD packet to send [08:04:31]OFD Sender: No OFD packet to send [08:04:36]OFD Sender: No OFD packet to send [08:04:41]OFD Sender: No OFD packet to send [08:04:46]OFD Sender: No OFD packet to send [08:04:51]OFD Sender: No OFD packet to send [08:04:56]OFD Sender: No OFD packet to send [08:05:01]OFD Sender: No OFD packet to send [08:05:06]OFD Sender: No OFD packet to send [08:05:11]OFD Sender: No OFD packet to send [08:05:16]OFD Sender: No OFD packet to send [08:05:21]OFD Sender: No OFD packet to send [08:05:26]OFD Sender: No OFD packet to send [08:05:31]OFD Sender: No OFD packet to send [08:05:36]OFD Sender: No OFD packet to send [08:05:41]OFD Sender: No OFD packet to send [08:05:46]OFD Sender: No OFD packet to send [08:05:51]OFD Sender: No OFD packet to send [08:05:56]OFD Sender: No OFD packet to send [08:06:01]OFD Sender: No OFD packet to send [08:06:06]OFD Sender: No OFD packet to send [08:06:11]OFD Sender: No OFD packet to send [08:06:16]OFD Sender: No OFD packet to send [08:06:21]OFD Sender: No OFD packet to send [08:06:26]OFD Sender: No OFD packet to send [08:06:31]OFD Sender: No OFD packet to send [08:06:36]OFD Sender: No OFD packet to send [08:06:41]OFD Sender: No OFD packet to send [08:06:46]OFD Sender: No OFD packet to send [08:06:51]OFD Sender: No OFD packet to send [08:06:56]OFD Sender: No OFD packet to send [08:07:01]OFD Sender: No OFD packet to send [08:07:06]OFD Sender: No OFD packet to send [08:07:11]OFD Sender: No OFD packet to send [08:07:16]OFD Sender: No OFD packet to send [08:07:21]OFD Sender: No OFD packet to send [08:07:26]OFD Sender: No OFD packet to send [08:07:31]OFD Sender: No OFD packet to send [08:07:36]OFD Sender: No OFD packet to send [08:07:41]OFD Sender: No OFD packet to send [08:07:46]OFD Sender: No OFD packet to send [08:07:51]OFD Sender: No OFD packet to send [08:07:56]OFD Sender: No OFD packet to send [08:08:01]OFD Sender: No OFD packet to send [08:08:05]accept exits with 7 [08:08:05]New connection [08:08:05]New thread 3067559268 created [08:08:05]Thread 3067415908 joined [08:08:05]Waiting for new connection... [08:08:05] Sock 7.Parse request [08:08:05]Sock 7.Check first char [08:08:05]Sock 7.First char is OK [08:08:05]request: POST /json_proto HTTP/1.0 [08:08:05]Method: POST [08:08:05]URL: /json_proto [08:08:05]Method is POST - this is cgi request [08:08:05]url: /json_proto [08:08:05]query_string will be loaded in cgi processing [08:08:05]execute_cgi json_proto POST (null) [08:08:05]execute_cgi path=json_proto method=POST [08:08:05]POST find Content-Length [08:08:05]Host: 172.17.63.195:8080 [08:08:05]Content-Length: 677 [08:08:05]Content-Type: application/json [08:08:05] [08:08:05]POST finish read [08:08:05]Found Content-Length = 677 [08:08:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:08:05]execute_script... [08:08: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)449008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:08:05]POST & json_proto [08:08:05]process_json_proto [08:08:05]json parsed OK: [08:08:05]protocol is kg_v1.0 [08:08:05]action value=close_receipt [08:08:05]process_action close_receipt [08:08:05]cmd_close_receipt [08:08:05]MH_GetDate [08:08:05]Write to MH i2c: F0 00 00 EC 11 EC [08:08:05]Write i2c OK [08:08:05]MH_I2C_Read... [08:08:05]Read from MH i2c: F0 [08:08:05]MH_I2C_Read... [08:08:05]Read from MH i2c: F0 09 00 [08:08:05]MH_I2C_Read... [08:08:05]Read from MH i2c: F0 09 00 EC 11 00 68 A3 1C 67 68 46 19 67 B1 [08:08:05]GetLastDocTimeStamp 1729929727 [08:08:05]current date 1729930088 [08:08:05]FM_GetShiftState [08:08:05]SAM_PROTO_GetShiftState [08:08:05]wFMCommunicate request_size=4 [08:08:05]MH_SAM_APDU [08:08:05]CAPDU: 80 13 01 00 [08:08:05]Write to MH i2c: E2 08 00 ED 11 80 13 01 00 00 00 00 00 7B [08:08:05]Write i2c OK [08:08:05]MH_I2C_Read... [08:08:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:05]Read from MH i2c: E2 [08:08:05]MH_I2C_Read... [08:08:05]Read from MH i2c: E2 0E 00 [08:08:05]MH_I2C_Read... [08:08:05]Read from MH i2c: E2 0E 00 ED 11 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 8A [08:08:05]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:08:05]wFMCommunicate OK [08:08:05]SAM_PROTO_GetShiftState done [08:08:05]FM_GetShiftState done [08:08:05]opened in 1729900879 [08:08:05]opened+sec_in_day 1729987279 [08:08:05]quantity*price = 40006 [08:08:05]sum+1 = 40007 [08:08:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 23 26.10.2024 08:08 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201261 ФПД: 60236496806007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T080809&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201261&fm=60236496806007&tin=02508201610067®Number=0000000000091777&sum=40000 [08:08:06]StoreToDocumentArchive [08:08:06]shift 543 fd 201261 [08:08:06]save to /storage/0543/doc_00201261 [08:08:06]save last doc name /storage/0543/doc_00201261 to /storage/kkm_last_doc_name [08:08:06]save OK [08:08:06]Clear old archive folders... [08:08:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:08:06]tlvbuf is 0170CB10 [08:08:06]SAM_PROTO_ClearQueue [08:08:06]wFMCommunicate request_size=4 [08:08:06]MH_SAM_APDU [08:08:06]CAPDU: 80 09 00 00 [08:08:06]Write to MH i2c: E2 08 00 FA 11 80 09 00 00 00 00 00 00 7D [08:08:06]Write i2c OK [08:08:06]MH_I2C_Read... [08:08:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:08:06]OFD Sender: No OFD packet to send [08:08:06]Read from MH i2c: E2 [08:08:06]MH_I2C_Read... [08:08:06]Read from MH i2c: E2 03 00 [08:08:06]MH_I2C_Read... [08:08:06]Read from MH i2c: E2 03 00 FA 11 00 90 00 7F [08:08:06]RAPDU: 90 00 [08:08:06]wFMCommunicate OK [08:08:06]SAM_PROTO_ClearQueue done [08:08:06]KKMCreateOFDPacket [08:08:06]OFDProtocolAddRootSTLVToBuf [08:08:06]FM_MakeSignedData [08:08:06]FM_MakeSignedData [08:08:06]SAM_PROTO_SignData [08:08:06]wFMCommunicate request_size=4 [08:08:06]MH_SAM_APDU [08:08:06]CAPDU: 80 0D 01 02 [08:08:06]Write to MH i2c: E2 08 00 FB 11 80 0D 01 02 00 00 00 00 85 [08:08:06]Write i2c OK [08:08:06]MH_I2C_Read... [08:08:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:08:06]Read from MH i2c: E2 [08:08:06]MH_I2C_Read... [08:08:06]Read from MH i2c: E2 03 00 [08:08:06]MH_I2C_Read... [08:08:06]Read from MH i2c: E2 03 00 FB 11 00 90 00 80 [08:08:06]RAPDU: 90 00 [08:08:06]wFMCommunicate OK [08:08:06]wFMCommunicate request_size=255 [08:08:06]MH_SAM_APDU [08:08: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 32 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 17 00 00 00 F4 03 04 00 69 A3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2D 12 03 00 35 04 06 00 36 [08:08:06]Write to MH i2c: E2 02 01 FC 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 32 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 17 00 00 00 F4 03 04 00 69 A3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2D 12 03 00 35 04 06 00 36 00 00 27 [08:08:06]Write i2c OK [08:08:06]MH_I2C_Read... [08:08:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:07]Read from MH i2c: E2 [08:08:07]MH_I2C_Read... [08:08:07]Read from MH i2c: E2 03 00 [08:08:07]MH_I2C_Read... [08:08:07]Read from MH i2c: E2 03 00 FC 11 00 90 00 81 [08:08:07]RAPDU: 90 00 [08:08:07]wFMCommunicate OK [08:08:07]wFMCommunicate request_size=10 [08:08:07]MH_SAM_APDU [08:08:07]CAPDU: 80 0D 02 02 05 C8 E6 FE A0 77 [08:08:07]Write to MH i2c: E2 0D 00 FD 11 80 0D 02 02 05 00 C8 E6 FE A0 77 00 00 55 [08:08:07]Write i2c OK [08:08:07]MH_I2C_Read... [08:08:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:07]Read from MH i2c: E2 [08:08:07]MH_I2C_Read... [08:08:07]Read from MH i2c: E2 03 00 [08:08:07]MH_I2C_Read... [08:08:07]Read from MH i2c: E2 03 00 FD 11 00 90 00 82 [08:08:07]RAPDU: 90 00 [08:08:07]wFMCommunicate OK [08:08:07]wFMCommunicate request_size=4 [08:08:07]MH_SAM_APDU [08:08:07]CAPDU: 80 0D 03 02 [08:08:07]Write to MH i2c: E2 08 00 FE 11 80 0D 03 02 00 00 00 00 8A [08:08:07]Write i2c OK [08:08:07]MH_I2C_Read... [08:08:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:08:07]Read from MH i2c: E2 [08:08:07]MH_I2C_Read... [08:08:07]Read from MH i2c: E2 0B 00 [08:08:07]MH_I2C_Read... [08:08:07]Read from MH i2c: E2 0B 00 FE 11 00 4A 9E 9D 79 07 D0 BA 88 90 00 A2 [08:08:07]RAPDU: 4A 9E 9D 79 07 D0 BA 88 90 00 [08:08:07]wFMCommunicate OK [08:08:07]SAM_PROTO_SignData done [08:08:07]FM_MakeSignedData done [08:08:07]CreateOFDProtocolMessage [08:08:07]wFMCommunicate request_size=4 [08:08:07]MH_SAM_APDU [08:08:07]CAPDU: 80 11 00 00 [08:08:07]Write to MH i2c: E2 08 00 FF 11 80 11 00 00 00 00 00 00 8A [08:08:07]Write i2c OK [08:08:07]MH_I2C_Read... [08:08:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:07]Read from MH i2c: E2 [08:08:07]MH_I2C_Read... [08:08:07]Read from MH i2c: E2 17 00 [08:08:07]MH_I2C_Read... [08:08:07]Read from MH i2c: E2 17 00 FF 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DF [08:08:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:08:07]wFMCommunicate OK [08:08:07]CreateOFDProtocolMessage done [08:08:07]OFDSenderStorePacket 201261 [08:08:07]StoreOFDPacket docnum=201261 [08:08:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 77 DB 07 01 2E E6 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 32 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 17 00 00 00 F4 03 04 00 69 A3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2D 12 03 00 35 04 06 00 36 C8 E6 FE A0 77 4A 9E 9D 79 07 D0 BA 88 [08:08:07]CheckFolder [08:08:07]dirname=/storage/ofd_packets [08:08:07]CheckFolder done [08:08:07]ProducePacketName [08:08:07]name=ofd_packets/00201261 [08:08:07]NVStorageSaveData ofd_packets/00201261 [08:08:07]File name is /storage/ofd_packets/00201261 [08:08:07]Write 301 bytes [08:08:07]NVStorageSaveData done [08:08:07]OFDSenderStorePacket done [08:08:07]KKMCreateOFDPacket done [08:08:07]NVStorageSaveData kkm_last_timestamp [08:08:07]File name is /storage/kkm_last_timestamp [08:08:07]Write 4 bytes [08:08:07]NVStorageSaveData done [08:08:07]ExternCall_PrintAddStr [08:08:07]wPrintStart [08:08:07]Write to MH i2c: 01 00 00 00 12 12 [08:08:07]Write i2c OK [08:08:07]MH_I2C_Read... [08:08:07]Read from MH i2c: 01 [08:08:07]MH_I2C_Read... [08:08:07]Read from MH i2c: 01 07 00 [08:08:07]MH_I2C_Read... [08:08:07]Read from MH i2c: 01 07 00 00 12 00 00 00 00 00 FF 0F 27 [08:08:07]RasterBufferAndPrint [08:08:07]line Счет N : (1)449008 [08:08:07]line ИНН: 02508201610067 [08:08:07]line Контрольно-Кассовый Чек [08:08:07]line ПРОДАЖА [08:08:07]line ТРК (МРК, ГНК) : 41 [08:08:07]line Товар: 2710124130 [08:08:07]line Аи-92-К-2 [08:08:07]line 5.980 * 66.90 [08:08:07]line = 400.06 [08:08:07]line НДС 12% НСП 1% [08:08:07]line > о реализуемом товаре [08:08:07]line ОКРУГЛЕНИЕ: -0.06 [08:08:07]line ИТОГО: 400.00 [08:08:07]line Внесено: 400.00 [08:08:07]line СДАЧА: 0.00 [08:08:07]line НСП 1% : 3.54 [08:08:07]line НДС 12% : 42.48 [08:08:07]line Наличными: 400.00 [08:08:07]line Безнал.: 0.00 [08:08:07]line Место: АЗС № 171 "Партнер Нефть" [08:08:07]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:08:07]line СНО: Общий режим [08:08:07]line Чек 23 26.10.2024 08:08 [08:08:07]line Смена: 543 ФФД: 1.0 [08:08:07]line ЗНМ: 0300000109 [08:08:07]line РНМ: 0000000000091777 [08:08:07]line Версия ККМ: 001 [08:08:07]line ФМ: 0000000000871756 [08:08:07]line ФД: 201261 [08:08:07]line ФПД: 60236496806007 [08:08:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T080809&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201261&fm=60236496806007&tin=02508201610067®Number=0000000000091777&sum=40000 [08:08:07]OFD Sender: Processing packet 201261 [packets to send 112, broken 111] [08:08:07]ProducePacketName [08:08:07]name=ofd_packets/00201261 [08:08:07]OFD Sender: To server: pG, [08:08:07]CommunicateWithHost lk.salyk.kg:30040 [08:08:07]ConnectInit lk.salyk.kg [08:08:07]written 0, free lines is 4095 [08:08:07]Connected sock=11 [08:08:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 77 DB 07 01 2E E6 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 32 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 17 00 00 00 F4 03 04 00 69 A3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2D 12 03 00 35 04 06 00 36 C8 E6 FE A0 77 4A 9E 9D 79 07 D0 BA 88 [08:08:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 27 50 47 00 E4 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2D 12 03 00 F4 03 04 00 12 4F 1C 67 B6 04 01 00 00 52 10 BE FD 68 BD FC BE [08:08:08]CommunicateWithHost err = 0 [08:08:08]CheckOFDResponse [08:08:08]1017 (14) - 77093643461234 [08:08:08]1041 (16) - 0000000000871756 [08:08:08]1040 (4) - 201261 [08:08:08]1012 (4) - 26.10.2024 02:08 [08:08:08]1206 (1) - 0 [08:08:08]OFD Sender: Remove packet 201261 [08:08:08]ProducePacketName [08:08:08]name=ofd_packets/00201261 [08:08:08]NVStorageDeleteData [08:08:08]Write to MH i2c: 01 00 00 2B 12 3D [08:08:08]Write i2c OK [08:08:08]MH_I2C_Read... [08:08:08]Read from MH i2c: 01 [08:08:08]MH_I2C_Read... [08:08:08]Read from MH i2c: 01 07 00 [08:08:08]MH_I2C_Read... [08:08:08]Read from MH i2c: 01 07 00 2B 12 00 00 00 00 00 99 0C E9 [08:08:08]RasterBufferAndPrint [08:08:08]line [08:08:08]line [08:08:08]line [08:08:08]line [08:08:08]line [08:08:08]written 0, free lines is 3229 [08:08:08]MH_Cut [08:08:08]Write to MH i2c: D1 01 00 32 12 01 16 [08:08:08]Write i2c OK [08:08:08]MH_I2C_Read... [08:08:08]Read from MH i2c: D1 [08:08:08]MH_I2C_Read... [08:08:08]Read from MH i2c: D1 01 00 [08:08:08]MH_I2C_Read... [08:08:08]Read from MH i2c: D1 01 00 32 12 00 15 [08:08:08]Write to MH i2c: 01 00 00 33 12 45 [08:08:08]Write i2c OK [08:08:08]MH_I2C_Read... [08:08:08]OFD Sender: No OFD packet to send [08:08:09]*** Cut start [08:08:09]*** Purtial cut [08:08:09]*** Stage 1: CUTSNS_PIN = 1 [08:08:09]Read from MH i2c: 01 [08:08:09]MH_I2C_Read... [08:08:09]*** Stop cut motor [08:08:09]*** Cut end [08:08:09]Read from MH i2c: 01 07 00 [08:08:09]MH_I2C_Read... [08:08:09]Read from MH i2c: 01 07 00 33 12 00 00 00 00 00 FF 0F 5A [08:08:09]process_action close_receipt done [08:08:09]requested_data is exist [08:08:09]produce_requested_data [08:08:09]requested_item fm.sn is exist - process it [08:08:09]wFMCommunicate request_size=4 [08:08:09]MH_SAM_APDU [08:08:09]CAPDU: 80 11 00 00 [08:08:09]Write to MH i2c: E2 08 00 34 12 80 11 00 00 00 00 00 00 C0 [08:08:09]Write i2c OK [08:08:09]MH_I2C_Read... [08:08:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:09]Read from MH i2c: E2 [08:08:09]MH_I2C_Read... [08:08:09]Read from MH i2c: E2 17 00 [08:08:09]MH_I2C_Read... [08:08:09]Read from MH i2c: E2 17 00 34 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 15 [08:08:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:08:09]wFMCommunicate OK [08:08:09]requested_item fd.num is exist - process it [08:08:09]SAM_PROTO_GetFieldsCounters [08:08:09]wFMCommunicate request_size=4 [08:08:09]MH_SAM_APDU [08:08:09]CAPDU: 80 13 00 00 [08:08:09]Write to MH i2c: E2 08 00 35 12 80 13 00 00 00 00 00 00 C3 [08:08:09]Write i2c OK [08:08:09]MH_I2C_Read... [08:08:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:08:09]Read from MH i2c: E2 [08:08:09]MH_I2C_Read... [08:08:09]Read from MH i2c: E2 62 00 [08:08:09]MH_I2C_Read... [08:08:09]Read from MH i2c: E2 62 00 35 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2D 12 03 00 0E 04 04 00 1F 02 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 94 [08:08:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2D 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:08:09]wFMCommunicate OK [08:08:09]SAM_PROTO_GetFieldsCounters done [08:08:09]requested_item shift.num is exist - process it [08:08:09]requested_item shift.opened is exist - process it [08:08:09]req_shift_opened [08:08:09]FM_GetShiftState [08:08:09]SAM_PROTO_GetShiftState [08:08:09]wFMCommunicate request_size=4 [08:08:09]MH_SAM_APDU [08:08:09]CAPDU: 80 13 01 00 [08:08:09]Write to MH i2c: E2 08 00 36 12 80 13 01 00 00 00 00 00 C5 [08:08:09]Write i2c OK [08:08:09]MH_I2C_Read... [08:08:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:09]Read from MH i2c: E2 [08:08:09]MH_I2C_Read... [08:08:09]Read from MH i2c: E2 0E 00 [08:08:09]MH_I2C_Read... [08:08:09]Read from MH i2c: E2 0E 00 36 12 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D4 [08:08:09]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:08:09]wFMCommunicate OK [08:08:09]SAM_PROTO_GetShiftState done [08:08:09]FM_GetShiftState done [08:08:09]req_shift_opened done [08:08:09]requested_item shift.open_date is exist - process it [08:08:09]req_shift_open_date [08:08:09]req_shift_open_date done [08:08:09]produce_requested_data done [08:08:09]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201261,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [08:08:09]process_action_free close_receipt [08:08:09]json_value_free [08:08:09]json_value_free done [08:08:09]process_json_proto returns [08:08:09]Send response to host [08:08:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201261,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [08:08:09]free response buf [08:08:09]execute_script done [08:08:09]execute_script returns [08:08:09]free content buf [08:08:09]Sock 7.Close socket [08:08:09]Sock 7.Thread stoped [08:08:13]OFD Sender: No OFD packet to send [08:08:18]OFD Sender: No OFD packet to send [08:08:23]OFD Sender: No OFD packet to send [08:08:28]OFD Sender: No OFD packet to send [08:08:33]OFD Sender: No OFD packet to send [08:08:38]OFD Sender: No OFD packet to send [08:08:43]OFD Sender: No OFD packet to send [08:08:48]OFD Sender: No OFD packet to send [08:08:53]OFD Sender: No OFD packet to send [08:08:58]OFD Sender: No OFD packet to send [08:09:03]OFD Sender: No OFD packet to send [08:09:08]OFD Sender: No OFD packet to send [08:09:13]OFD Sender: No OFD packet to send [08:09:18]OFD Sender: No OFD packet to send [08:09:23]OFD Sender: No OFD packet to send [08:09:28]OFD Sender: No OFD packet to send [08:09:33]OFD Sender: No OFD packet to send [08:09:38]OFD Sender: No OFD packet to send [08:09:43]OFD Sender: No OFD packet to send [08:09:48]OFD Sender: No OFD packet to send [08:09:53]OFD Sender: No OFD packet to send [08:09:58]OFD Sender: No OFD packet to send [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:13]OFD Sender: No OFD packet to send [08:10:18]OFD Sender: No OFD packet to send [08:10:23]OFD Sender: No OFD packet to send [08:10:28]OFD Sender: No OFD packet to send [08:10:33]OFD Sender: No OFD packet to send [08:10:38]OFD Sender: No OFD packet to send [08:10:43]OFD Sender: No OFD packet to send [08:10:48]OFD Sender: No OFD packet to send [08:10:53]OFD Sender: No OFD packet to send [08:10:58]OFD Sender: No OFD packet to send [08:11:03]OFD Sender: No OFD packet to send [08:11:08]accept exits with 9 [08:11:08]New connection [08:11:08]New thread 3067415908 created [08:11:08]Thread 3067559268 joined [08:11:08]Waiting for new connection... [08:11:08] Sock 9.Parse request [08:11:08]Sock 9.Check first char [08:11:08]Sock 9.First char is OK [08:11:08]request: POST /json_proto HTTP/1.0 [08:11:08]Method: POST [08:11:08]URL: /json_proto [08:11:08]Method is POST - this is cgi request [08:11:08]url: /json_proto [08:11:08]query_string will be loaded in cgi processing [08:11:08]execute_cgi json_proto POST (null) [08:11:08]execute_cgi path=json_proto method=POST [08:11:08]POST find Content-Length [08:11:08]Host: 172.17.63.195:8080 [08:11:08]Content-Length: 677 [08:11:08]Content-Type: application/json [08:11:08] [08:11:08]POST finish read [08:11:08]Found Content-Length = 677 [08:11:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:11:08]execute_script... [08:11:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:11:08]POST & json_proto [08:11:08]process_json_proto [08:11:08]json parsed OK: [08:11:08]protocol is kg_v1.0 [08:11:08]action value=close_receipt [08:11:08]process_action close_receipt [08:11:08]cmd_close_receipt [08:11:08]MH_GetDate [08:11:08]Write to MH i2c: F0 00 00 37 12 38 [08:11:08]Write i2c OK [08:11:08]MH_I2C_Read... [08:11:08]Read from MH i2c: F0 [08:11:08]MH_I2C_Read... [08:11:08]Read from MH i2c: F0 09 00 [08:11:08]MH_I2C_Read... [08:11:08]Read from MH i2c: F0 09 00 37 12 00 1F A4 1C 67 68 46 19 67 B5 [08:11:08]GetLastDocTimeStamp 1729930089 [08:11:08]current date 1729930271 [08:11:08]FM_GetShiftState [08:11:08]SAM_PROTO_GetShiftState [08:11:08]wFMCommunicate request_size=4 [08:11:08]MH_SAM_APDU [08:11:08]CAPDU: 80 13 01 00 [08:11:08]Write to MH i2c: E2 08 00 38 12 80 13 01 00 00 00 00 00 C7 [08:11:08]Write i2c OK [08:11:08]MH_I2C_Read... [08:11:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:08]Read from MH i2c: E2 [08:11:08]MH_I2C_Read... [08:11:08]Read from MH i2c: E2 0E 00 [08:11:08]MH_I2C_Read... [08:11:08]Read from MH i2c: E2 0E 00 38 12 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D6 [08:11:08]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:11:08]wFMCommunicate OK [08:11:08]SAM_PROTO_GetShiftState done [08:11:08]FM_GetShiftState done [08:11:08]opened in 1729900879 [08:11:08]opened+sec_in_day 1729987279 [08:11:08]quantity*price = 50041 [08:11:08]sum+1 = 50042 [08:11:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 24 26.10.2024 08:11 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201262 ФПД: 149386911705913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T081111&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201262&fm=149386911705913&tin=02508201610067®Number=0000000000091777&sum=50000 [08:11:09]StoreToDocumentArchive [08:11:09]shift 543 fd 201262 [08:11:09]save to /storage/0543/doc_00201262 [08:11:09]save last doc name /storage/0543/doc_00201262 to /storage/kkm_last_doc_name [08:11:09]save OK [08:11:09]Clear old archive folders... [08:11:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:11:09]tlvbuf is 01718F80 [08:11:09]SAM_PROTO_ClearQueue [08:11:09]wFMCommunicate request_size=4 [08:11:09]MH_SAM_APDU [08:11:09]CAPDU: 80 09 00 00 [08:11:09]Write to MH i2c: E2 08 00 45 12 80 09 00 00 00 00 00 00 C9 [08:11:09]Write i2c OK [08:11:09]MH_I2C_Read... [08:11:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:11:09]Read from MH i2c: E2 [08:11:09]MH_I2C_Read... [08:11:09]Read from MH i2c: E2 03 00 [08:11:09]MH_I2C_Read... [08:11:09]Read from MH i2c: E2 03 00 45 12 00 90 00 CB [08:11:09]RAPDU: 90 00 [08:11:09]wFMCommunicate OK [08:11:09]SAM_PROTO_ClearQueue done [08:11:09]KKMCreateOFDPacket [08:11:09]OFDProtocolAddRootSTLVToBuf [08:11:09]FM_MakeSignedData [08:11:09]FM_MakeSignedData [08:11:09]SAM_PROTO_SignData [08:11:09]wFMCommunicate request_size=4 [08:11:09]MH_SAM_APDU [08:11:09]CAPDU: 80 0D 01 02 [08:11:09]Write to MH i2c: E2 08 00 46 12 80 0D 01 02 00 00 00 00 D1 [08:11:09]Write i2c OK [08:11:09]MH_I2C_Read... [08:11:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:11:09]Read from MH i2c: E2 [08:11:09]MH_I2C_Read... [08:11:09]Read from MH i2c: E2 03 00 [08:11:09]MH_I2C_Read... [08:11:09]Read from MH i2c: E2 03 00 46 12 00 90 00 CC [08:11:09]RAPDU: 90 00 [08:11:09]wFMCommunicate OK [08:11:09]wFMCommunicate request_size=255 [08:11:09]MH_SAM_APDU [08:11:09]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 32 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 18 00 00 00 F4 03 04 00 1F A4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2E 12 03 00 35 04 06 00 87 [08:11:09]Write to MH i2c: E2 02 01 47 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 32 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 18 00 00 00 F4 03 04 00 1F A4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2E 12 03 00 35 04 06 00 87 00 00 AE [08:11:09]Write i2c OK [08:11:09]MH_I2C_Read... [08:11:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:10]Read from MH i2c: E2 [08:11:10]MH_I2C_Read... [08:11:10]Read from MH i2c: E2 03 00 [08:11:10]MH_I2C_Read... [08:11:10]Read from MH i2c: E2 03 00 47 12 00 90 00 CD [08:11:10]RAPDU: 90 00 [08:11:10]wFMCommunicate OK [08:11:10]wFMCommunicate request_size=10 [08:11:10]MH_SAM_APDU [08:11:10]CAPDU: 80 0D 02 02 05 DD D9 CE 6B 39 [08:11:10]Write to MH i2c: E2 0D 00 48 12 80 0D 02 02 05 00 DD D9 CE 6B 39 00 00 06 [08:11:10]Write i2c OK [08:11:10]MH_I2C_Read... [08:11:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:10]Read from MH i2c: E2 [08:11:10]MH_I2C_Read... [08:11:10]Read from MH i2c: E2 03 00 [08:11:10]MH_I2C_Read... [08:11:10]Read from MH i2c: E2 03 00 48 12 00 90 00 CE [08:11:10]RAPDU: 90 00 [08:11:10]wFMCommunicate OK [08:11:10]wFMCommunicate request_size=4 [08:11:10]MH_SAM_APDU [08:11:10]CAPDU: 80 0D 03 02 [08:11:10]Write to MH i2c: E2 08 00 49 12 80 0D 03 02 00 00 00 00 D6 [08:11:10]Write i2c OK [08:11:10]MH_I2C_Read... [08:11:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:11:10]Read from MH i2c: E2 [08:11:10]MH_I2C_Read... [08:11:10]Read from MH i2c: E2 0B 00 [08:11:10]MH_I2C_Read... [08:11:10]Read from MH i2c: E2 0B 00 49 12 00 9E B4 98 37 D6 D4 68 D7 90 00 E1 [08:11:10]RAPDU: 9E B4 98 37 D6 D4 68 D7 90 00 [08:11:10]wFMCommunicate OK [08:11:10]SAM_PROTO_SignData done [08:11:10]FM_MakeSignedData done [08:11:10]CreateOFDProtocolMessage [08:11:10]wFMCommunicate request_size=4 [08:11:10]MH_SAM_APDU [08:11:10]CAPDU: 80 11 00 00 [08:11:10]Write to MH i2c: E2 08 00 4A 12 80 11 00 00 00 00 00 00 D6 [08:11:10]Write i2c OK [08:11:10]MH_I2C_Read... [08:11:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:10]Read from MH i2c: E2 [08:11:10]MH_I2C_Read... [08:11:10]Read from MH i2c: E2 17 00 [08:11:10]MH_I2C_Read... [08:11:10]Read from MH i2c: E2 17 00 4A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2B [08:11:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:11:10]wFMCommunicate OK [08:11:10]CreateOFDProtocolMessage done [08:11:10]OFDSenderStorePacket 201262 [08:11:10]StoreOFDPacket docnum=201262 [08:11:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D9 E9 07 01 06 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 18 00 00 00 F4 03 04 00 1F A4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2E 12 03 00 35 04 06 00 87 DD D9 CE 6B 39 9E B4 98 37 D6 D4 68 D7 [08:11:10]CheckFolder [08:11:10]dirname=/storage/ofd_packets [08:11:10]CheckFolder done [08:11:10]ProducePacketName [08:11:10]name=ofd_packets/00201262 [08:11:10]NVStorageSaveData ofd_packets/00201262 [08:11:10]File name is /storage/ofd_packets/00201262 [08:11:10]Write 301 bytes [08:11:10]NVStorageSaveData done [08:11:10]OFDSenderStorePacket done [08:11:10]KKMCreateOFDPacket done [08:11:10]NVStorageSaveData kkm_last_timestamp [08:11:10]File name is /storage/kkm_last_timestamp [08:11:10]Write 4 bytes [08:11:10]NVStorageSaveData done [08:11:10]ExternCall_PrintAddStr [08:11:10]wPrintStart [08:11:10]Write to MH i2c: 01 00 00 4B 12 5D [08:11:10]Write i2c OK [08:11:10]MH_I2C_Read... [08:11:10]Read from MH i2c: 01 [08:11:10]MH_I2C_Read... [08:11:10]Read from MH i2c: 01 07 00 [08:11:10]MH_I2C_Read... [08:11:10]Read from MH i2c: 01 07 00 4B 12 00 00 00 00 00 FF 0F 72 [08:11:10]RasterBufferAndPrint [08:11:10]line Счет N : (1)449009 [08:11:10]line ИНН: 02508201610067 [08:11:10]line Контрольно-Кассовый Чек [08:11:10]line ПРОДАЖА [08:11:10]line ТРК (МРК, ГНК) : 31 [08:11:10]line Товар: 2710124130 [08:11:10]line Аи-92-К-2 [08:11:10]line 7.480 * 66.90 [08:11:10]line = 500.41 [08:11:10]line НДС 12% НСП 1% [08:11:10]line > о реализуемом товаре [08:11:10]line ОКРУГЛЕНИЕ: -0.41 [08:11:10]line ИТОГО: 500.00 [08:11:10]line Внесено: 500.00 [08:11:10]line СДАЧА: 0.00 [08:11:10]line НСП 1% : 4.43 [08:11:10]line НДС 12% : 53.14 [08:11:10]line Наличными: 500.00 [08:11:10]line Безнал.: 0.00 [08:11:10]line Место: АЗС № 171 "Партнер Нефть" [08:11:10]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:11:10]line СНО: Общий режим [08:11:10]line Чек 24 26.10.2024 08:11 [08:11:10]line Смена: 543 ФФД: 1.0 [08:11:10]line ЗНМ: 0300000109 [08:11:10]line РНМ: 0000000000091777 [08:11:10]line Версия ККМ: 001 [08:11:10]line ФМ: 0000000000871756 [08:11:10]line ФД: 201262 [08:11:10]line ФПД: 149386911705913 [08:11:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T081111&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201262&fm=149386911705913&tin=02508201610067®Number=0000000000091777&sum=50000 [08:11:10]OFD Sender: Processing packet 201262 [packets to send 112, broken 111] [08:11:10]ProducePacketName [08:11:10]name=ofd_packets/00201262 [08:11:10]OFD Sender: To server: pG, [08:11:10]CommunicateWithHost lk.salyk.kg:30040 [08:11:10]ConnectInit lk.salyk.kg [08:11:10]written 0, free lines is 4095 [08:11:10]Connected sock=10 [08:11:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D9 E9 07 01 06 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 18 00 00 00 F4 03 04 00 1F A4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2E 12 03 00 35 04 06 00 87 DD D9 CE 6B 39 9E B4 98 37 D6 D4 68 D7 [08:11:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B1 39 47 00 8E B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2E 12 03 00 F4 03 04 00 C9 4F 1C 67 B6 04 01 00 00 EE F2 0D 1F C1 10 8F 9E [08:11:10]CommunicateWithHost err = 0 [08:11:10]CheckOFDResponse [08:11:10]1017 (14) - 77093643461234 [08:11:10]1041 (16) - 0000000000871756 [08:11:10]1040 (4) - 201262 [08:11:10]1012 (4) - 26.10.2024 02:11 [08:11:10]1206 (1) - 0 [08:11:10]OFD Sender: Remove packet 201262 [08:11:10]ProducePacketName [08:11:10]name=ofd_packets/00201262 [08:11:10]NVStorageDeleteData [08:11:11]Write to MH i2c: 01 00 00 76 12 88 [08:11:11]Write i2c OK [08:11:11]MH_I2C_Read... [08:11:11]Read from MH i2c: 01 [08:11:11]MH_I2C_Read... [08:11:11]Read from MH i2c: 01 07 00 [08:11:11]MH_I2C_Read... [08:11:11]Read from MH i2c: 01 07 00 76 12 00 00 00 00 00 94 0C 2F [08:11:11]RasterBufferAndPrint [08:11:11]line [08:11:11]line [08:11:11]line [08:11:11]line [08:11:11]line [08:11:11]written 0, free lines is 3224 [08:11:11]MH_Cut [08:11:11]Write to MH i2c: D1 01 00 7D 12 01 61 [08:11:11]Write i2c OK [08:11:11]MH_I2C_Read... [08:11:11]Read from MH i2c: D1 [08:11:11]MH_I2C_Read... [08:11:11]Read from MH i2c: D1 01 00 [08:11:11]MH_I2C_Read... [08:11:11]Read from MH i2c: D1 01 00 7D 12 00 60 [08:11:11]Write to MH i2c: 01 00 00 7E 12 90 [08:11:11]Write i2c OK [08:11:11]MH_I2C_Read... [08:11:11]OFD Sender: No OFD packet to send [08:11:11]*** Cut start [08:11:11]*** Purtial cut [08:11:11]*** Stage 1: CUTSNS_PIN = 1 [08:11:12]Read from MH i2c: 01 [08:11:12]MH_I2C_Read... [08:11:12]*** Stop cut motor [08:11:12]*** Cut end [08:11:12]Read from MH i2c: 01 07 00 [08:11:12]MH_I2C_Read... [08:11:12]Read from MH i2c: 01 07 00 7E 12 00 00 00 00 00 FF 0F A5 [08:11:12]process_action close_receipt done [08:11:12]requested_data is exist [08:11:12]produce_requested_data [08:11:12]requested_item fm.sn is exist - process it [08:11:12]wFMCommunicate request_size=4 [08:11:12]MH_SAM_APDU [08:11:12]CAPDU: 80 11 00 00 [08:11:12]Write to MH i2c: E2 08 00 7F 12 80 11 00 00 00 00 00 00 0B [08:11:12]Write i2c OK [08:11:12]MH_I2C_Read... [08:11:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:12]Read from MH i2c: E2 [08:11:12]MH_I2C_Read... [08:11:12]Read from MH i2c: E2 17 00 [08:11:12]MH_I2C_Read... [08:11:12]Read from MH i2c: E2 17 00 7F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 60 [08:11:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:11:12]wFMCommunicate OK [08:11:12]requested_item fd.num is exist - process it [08:11:12]SAM_PROTO_GetFieldsCounters [08:11:12]wFMCommunicate request_size=4 [08:11:12]MH_SAM_APDU [08:11:12]CAPDU: 80 13 00 00 [08:11:12]Write to MH i2c: E2 08 00 80 12 80 13 00 00 00 00 00 00 0E [08:11:12]Write i2c OK [08:11:12]MH_I2C_Read... [08:11:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:11:12]Read from MH i2c: E2 [08:11:12]MH_I2C_Read... [08:11:12]Read from MH i2c: E2 62 00 [08:11:12]MH_I2C_Read... [08:11:12]Read from MH i2c: E2 62 00 80 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2E 12 03 00 0E 04 04 00 1F 02 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 E3 [08:11:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2E 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:11:12]wFMCommunicate OK [08:11:12]SAM_PROTO_GetFieldsCounters done [08:11:12]requested_item shift.num is exist - process it [08:11:12]requested_item shift.opened is exist - process it [08:11:12]req_shift_opened [08:11:12]FM_GetShiftState [08:11:12]SAM_PROTO_GetShiftState [08:11:12]wFMCommunicate request_size=4 [08:11:12]MH_SAM_APDU [08:11:12]CAPDU: 80 13 01 00 [08:11:12]Write to MH i2c: E2 08 00 81 12 80 13 01 00 00 00 00 00 10 [08:11:12]Write i2c OK [08:11:12]MH_I2C_Read... [08:11:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:12]Read from MH i2c: E2 [08:11:12]MH_I2C_Read... [08:11:12]Read from MH i2c: E2 0E 00 [08:11:12]MH_I2C_Read... [08:11:12]Read from MH i2c: E2 0E 00 81 12 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 1F [08:11:12]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:11:12]wFMCommunicate OK [08:11:12]SAM_PROTO_GetShiftState done [08:11:12]FM_GetShiftState done [08:11:12]req_shift_opened done [08:11:12]requested_item shift.open_date is exist - process it [08:11:12]req_shift_open_date [08:11:12]req_shift_open_date done [08:11:12]produce_requested_data done [08:11:12]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201262,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [08:11:12]process_action_free close_receipt [08:11:12]json_value_free [08:11:12]json_value_free done [08:11:12]process_json_proto returns [08:11:12]Send response to host [08:11:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201262,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [08:11:12]free response buf [08:11:12]execute_script done [08:11:12]execute_script returns [08:11:12]free content buf [08:11:12]Sock 9.Close socket [08:11:12]Sock 9.Thread stoped [08:11:16]OFD Sender: No OFD packet to send [08:11:21]OFD Sender: No OFD packet to send [08:11:26]OFD Sender: No OFD packet to send [08:11:31]OFD Sender: No OFD packet to send [08:11:36]OFD Sender: No OFD packet to send [08:11:41]OFD Sender: No OFD packet to send [08:11:46]OFD Sender: No OFD packet to send [08:11:49]accept exits with 7 [08:11:49]New connection [08:11:49]New thread 3067559268 created [08:11:49]Thread 3067415908 joined [08:11:49]Waiting for new connection... [08:11:49] Sock 7.Parse request [08:11:49]Sock 7.Check first char [08:11:49]Sock 7.First char is OK [08:11:49]request: POST /json_proto HTTP/1.0 [08:11:49]Method: POST [08:11:49]URL: /json_proto [08:11:49]Method is POST - this is cgi request [08:11:49]url: /json_proto [08:11:49]query_string will be loaded in cgi processing [08:11:49]execute_cgi json_proto POST (null) [08:11:49]execute_cgi path=json_proto method=POST [08:11:49]POST find Content-Length [08:11:49]Host: 172.17.63.195:8080 [08:11:49]Content-Length: 677 [08:11:49]Content-Type: application/json [08:11:49] [08:11:49]POST finish read [08:11:49]Found Content-Length = 677 [08:11:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:49]execute_script... [08:11: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)449010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:49]POST & json_proto [08:11:49]process_json_proto [08:11:49]json parsed OK: [08:11:49]protocol is kg_v1.0 [08:11:49]action value=close_receipt [08:11:49]process_action close_receipt [08:11:49]cmd_close_receipt [08:11:49]MH_GetDate [08:11:49]Write to MH i2c: F0 00 00 82 12 83 [08:11:49]Write i2c OK [08:11:49]MH_I2C_Read... [08:11:49]Read from MH i2c: F0 [08:11:49]MH_I2C_Read... [08:11:49]Read from MH i2c: F0 09 00 [08:11:49]MH_I2C_Read... [08:11:49]Read from MH i2c: F0 09 00 82 12 00 49 A4 1C 67 68 46 19 67 2A [08:11:49]GetLastDocTimeStamp 1729930271 [08:11:49]current date 1729930313 [08:11:49]FM_GetShiftState [08:11:49]SAM_PROTO_GetShiftState [08:11:49]wFMCommunicate request_size=4 [08:11:49]MH_SAM_APDU [08:11:49]CAPDU: 80 13 01 00 [08:11:49]Write to MH i2c: E2 08 00 83 12 80 13 01 00 00 00 00 00 12 [08:11:49]Write i2c OK [08:11:49]MH_I2C_Read... [08:11:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:49]Read from MH i2c: E2 [08:11:49]MH_I2C_Read... [08:11:49]Read from MH i2c: E2 0E 00 [08:11:49]MH_I2C_Read... [08:11:49]Read from MH i2c: E2 0E 00 83 12 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 21 [08:11:49]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:11:49]wFMCommunicate OK [08:11:49]SAM_PROTO_GetShiftState done [08:11:49]FM_GetShiftState done [08:11:49]opened in 1729900879 [08:11:49]opened+sec_in_day 1729987279 [08:11:49]quantity*price = 30038 [08:11:49]sum+1 = 30039 [08:11:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 25 26.10.2024 08:11 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201263 ФПД: 152980632339976 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T081153&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201263&fm=152980632339976&tin=02508201610067®Number=0000000000091777&sum=30000 [08:11:51]StoreToDocumentArchive [08:11:51]shift 543 fd 201263 [08:11:51]save to /storage/0543/doc_00201263 [08:11:51]save last doc name /storage/0543/doc_00201263 to /storage/kkm_last_doc_name [08:11:51]save OK [08:11:51]Clear old archive folders... [08:11:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:11:51]tlvbuf is 0174ED00 [08:11:51]SAM_PROTO_ClearQueue [08:11:51]wFMCommunicate request_size=4 [08:11:51]MH_SAM_APDU [08:11:51]CAPDU: 80 09 00 00 [08:11:51]Write to MH i2c: E2 08 00 90 12 80 09 00 00 00 00 00 00 14 [08:11:51]Write i2c OK [08:11:51]MH_I2C_Read... [08:11:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:11:51]Read from MH i2c: E2 [08:11:51]MH_I2C_Read... [08:11:51]Read from MH i2c: E2 03 00 [08:11:51]MH_I2C_Read... [08:11:51]Read from MH i2c: E2 03 00 90 12 00 90 00 16 [08:11:51]RAPDU: 90 00 [08:11:51]wFMCommunicate OK [08:11:51]SAM_PROTO_ClearQueue done [08:11:51]KKMCreateOFDPacket [08:11:51]OFDProtocolAddRootSTLVToBuf [08:11:51]FM_MakeSignedData [08:11:51]FM_MakeSignedData [08:11:51]SAM_PROTO_SignData [08:11:51]wFMCommunicate request_size=4 [08:11:51]MH_SAM_APDU [08:11:51]CAPDU: 80 0D 01 02 [08:11:51]Write to MH i2c: E2 08 00 91 12 80 0D 01 02 00 00 00 00 1C [08:11:51]Write i2c OK [08:11:51]MH_I2C_Read... [08:11:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:11:51]Read from MH i2c: E2 [08:11:51]MH_I2C_Read... [08:11:51]Read from MH i2c: E2 03 00 [08:11:51]MH_I2C_Read... [08:11:51]Read from MH i2c: E2 03 00 91 12 00 90 00 17 [08:11:51]RAPDU: 90 00 [08:11:51]wFMCommunicate OK [08:11:51]wFMCommunicate request_size=255 [08:11:51]MH_SAM_APDU [08:11: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 49 A4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2F 12 03 00 35 04 06 00 8B [08:11:51]Write to MH i2c: E2 02 01 92 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 49 A4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2F 12 03 00 35 04 06 00 8B 00 00 1D [08:11:51]Write i2c OK [08:11:51]MH_I2C_Read... [08:11:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:51]Read from MH i2c: E2 [08:11:51]MH_I2C_Read... [08:11:51]Read from MH i2c: E2 03 00 [08:11:51]MH_I2C_Read... [08:11:51]Read from MH i2c: E2 03 00 92 12 00 90 00 18 [08:11:51]RAPDU: 90 00 [08:11:51]wFMCommunicate OK [08:11:51]wFMCommunicate request_size=10 [08:11:51]MH_SAM_APDU [08:11:51]CAPDU: 80 0D 02 02 05 22 94 3F 86 08 [08:11:51]Write to MH i2c: E2 0D 00 93 12 80 0D 02 02 05 00 22 94 3F 86 08 00 00 AC [08:11:51]Write i2c OK [08:11:51]MH_I2C_Read... [08:11:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:51]Read from MH i2c: E2 [08:11:51]MH_I2C_Read... [08:11:51]Read from MH i2c: E2 03 00 [08:11:51]MH_I2C_Read... [08:11:51]Read from MH i2c: E2 03 00 93 12 00 90 00 19 [08:11:51]RAPDU: 90 00 [08:11:51]wFMCommunicate OK [08:11:51]wFMCommunicate request_size=4 [08:11:51]MH_SAM_APDU [08:11:51]CAPDU: 80 0D 03 02 [08:11:51]Write to MH i2c: E2 08 00 94 12 80 0D 03 02 00 00 00 00 21 [08:11:51]Write i2c OK [08:11:51]MH_I2C_Read... [08:11:51]OFD Sender: No OFD packet to send [08:11:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:11:51]Read from MH i2c: E2 [08:11:51]MH_I2C_Read... [08:11:51]Read from MH i2c: E2 0B 00 [08:11:51]MH_I2C_Read... [08:11:51]Read from MH i2c: E2 0B 00 94 12 00 55 69 57 88 2F 10 CB A7 90 00 70 [08:11:51]RAPDU: 55 69 57 88 2F 10 CB A7 90 00 [08:11:51]wFMCommunicate OK [08:11:51]SAM_PROTO_SignData done [08:11:51]FM_MakeSignedData done [08:11:51]CreateOFDProtocolMessage [08:11:51]wFMCommunicate request_size=4 [08:11:51]MH_SAM_APDU [08:11:51]CAPDU: 80 11 00 00 [08:11:51]Write to MH i2c: E2 08 00 95 12 80 11 00 00 00 00 00 00 21 [08:11:51]Write i2c OK [08:11:51]MH_I2C_Read... [08:11:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:51]Read from MH i2c: E2 [08:11:51]MH_I2C_Read... [08:11:51]Read from MH i2c: E2 17 00 [08:11:51]MH_I2C_Read... [08:11:51]Read from MH i2c: E2 17 00 95 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 76 [08:11:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:11:51]wFMCommunicate OK [08:11:51]CreateOFDProtocolMessage done [08:11:51]OFDSenderStorePacket 201263 [08:11:51]StoreOFDPacket docnum=201263 [08:11:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 59 A5 07 01 39 44 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 49 A4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2F 12 03 00 35 04 06 00 8B 22 94 3F 86 08 55 69 57 88 2F 10 CB A7 [08:11:51]CheckFolder [08:11:51]dirname=/storage/ofd_packets [08:11:51]CheckFolder done [08:11:51]ProducePacketName [08:11:51]name=ofd_packets/00201263 [08:11:51]NVStorageSaveData ofd_packets/00201263 [08:11:51]File name is /storage/ofd_packets/00201263 [08:11:51]Write 301 bytes [08:11:51]NVStorageSaveData done [08:11:51]OFDSenderStorePacket done [08:11:51]KKMCreateOFDPacket done [08:11:51]NVStorageSaveData kkm_last_timestamp [08:11:51]File name is /storage/kkm_last_timestamp [08:11:51]Write 4 bytes [08:11:51]NVStorageSaveData done [08:11:51]ExternCall_PrintAddStr [08:11:51]wPrintStart [08:11:51]Write to MH i2c: 01 00 00 96 12 A8 [08:11:51]Write i2c OK [08:11:51]MH_I2C_Read... [08:11:51]Read from MH i2c: 01 [08:11:51]MH_I2C_Read... [08:11:51]Read from MH i2c: 01 07 00 [08:11:51]MH_I2C_Read... [08:11:51]Read from MH i2c: 01 07 00 96 12 00 00 00 00 00 FF 0F BD [08:11:51]RasterBufferAndPrint [08:11:51]line Счет N : (1)449010 [08:11:51]line ИНН: 02508201610067 [08:11:51]line Контрольно-Кассовый Чек [08:11:51]line ПРОДАЖА [08:11:51]line ТРК (МРК, ГНК) : 31 [08:11:51]line Товар: 2710124130 [08:11:51]line Аи-92-К-2 [08:11:51]line 4.490 * 66.90 [08:11:51]line = 300.38 [08:11:51]line НДС 12% НСП 1% [08:11:51]line > о реализуемом товаре [08:11:51]line ОКРУГЛЕНИЕ: -0.38 [08:11:51]line ИТОГО: 300.00 [08:11:51]line Внесено: 300.00 [08:11:51]line СДАЧА: 0.00 [08:11:51]line НСП 1% : 2.66 [08:11:51]line НДС 12% : 31.90 [08:11:51]line Наличными: 300.00 [08:11:51]line Безнал.: 0.00 [08:11:51]line Место: АЗС № 171 "Партнер Нефть" [08:11:51]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:11:51]line СНО: Общий режим [08:11:51]line Чек 25 26.10.2024 08:11 [08:11:51]line Смена: 543 ФФД: 1.0 [08:11:51]line ЗНМ: 0300000109 [08:11:51]line РНМ: 0000000000091777 [08:11:51]line Версия ККМ: 001 [08:11:51]line ФМ: 0000000000871756 [08:11:51]line ФД: 201263 [08:11:51]line ФПД: 152980632339976 [08:11:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T081153&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201263&fm=152980632339976&tin=02508201610067®Number=0000000000091777&sum=30000 [08:11:51]OFD Sender: Processing packet 201263 [packets to send 112, broken 111] [08:11:51]ProducePacketName [08:11:51]name=ofd_packets/00201263 [08:11:51]OFD Sender: To server: pG, [08:11:51]CommunicateWithHost lk.salyk.kg:30040 [08:11:51]ConnectInit lk.salyk.kg [08:11:51]written 0, free lines is 4095 [08:11:52]Connected sock=10 [08:11:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 59 A5 07 01 39 44 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 49 A4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2F 12 03 00 35 04 06 00 8B 22 94 3F 86 08 55 69 57 88 2F 10 CB A7 [08:11:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 60 21 47 00 32 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2F 12 03 00 F4 03 04 00 F3 4F 1C 67 B6 04 01 00 00 DD 7E F8 7E F3 95 6A 2D [08:11:52]CommunicateWithHost err = 0 [08:11:52]CheckOFDResponse [08:11:52]1017 (14) - 77093643461234 [08:11:52]1041 (16) - 0000000000871756 [08:11:52]1040 (4) - 201263 [08:11:52]1012 (4) - 26.10.2024 02:12 [08:11:52]1206 (1) - 0 [08:11:52]OFD Sender: Remove packet 201263 [08:11:52]ProducePacketName [08:11:52]name=ofd_packets/00201263 [08:11:52]NVStorageDeleteData [08:11:52]Write to MH i2c: 01 00 00 C1 12 D3 [08:11:52]Write i2c OK [08:11:52]MH_I2C_Read... [08:11:52]Read from MH i2c: 01 [08:11:52]MH_I2C_Read... [08:11:52]Read from MH i2c: 01 07 00 [08:11:52]MH_I2C_Read... [08:11:52]Read from MH i2c: 01 07 00 C1 12 00 00 00 00 00 96 0C 7C [08:11:52]RasterBufferAndPrint [08:11:52]line [08:11:52]line [08:11:52]line [08:11:52]line [08:11:52]line [08:11:52]written 0, free lines is 3227 [08:11:52]MH_Cut [08:11:52]Write to MH i2c: D1 01 00 C8 12 01 AC [08:11:52]Write i2c OK [08:11:52]MH_I2C_Read... [08:11:52]Read from MH i2c: D1 [08:11:52]MH_I2C_Read... [08:11:52]Read from MH i2c: D1 01 00 [08:11:52]MH_I2C_Read... [08:11:52]Read from MH i2c: D1 01 00 C8 12 00 AB [08:11:52]Write to MH i2c: 01 00 00 C9 12 DB [08:11:52]Write i2c OK [08:11:52]MH_I2C_Read... [08:11:52]OFD Sender: No OFD packet to send [08:11:53]*** Cut start [08:11:53]*** Purtial cut [08:11:53]*** Stage 1: CUTSNS_PIN = 1 [08:11:53]Read from MH i2c: 01 [08:11:53]MH_I2C_Read... [08:11:53]*** Stop cut motor [08:11:53]*** Cut end [08:11:53]Read from MH i2c: 01 07 00 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: 01 07 00 C9 12 00 00 00 00 00 FF 0F F0 [08:11:53]process_action close_receipt done [08:11:53]requested_data is exist [08:11:53]produce_requested_data [08:11:53]requested_item fm.sn is exist - process it [08:11:53]wFMCommunicate request_size=4 [08:11:53]MH_SAM_APDU [08:11:53]CAPDU: 80 11 00 00 [08:11:53]Write to MH i2c: E2 08 00 CA 12 80 11 00 00 00 00 00 00 56 [08:11:53]Write i2c OK [08:11:53]MH_I2C_Read... [08:11:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:53]Read from MH i2c: E2 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: E2 17 00 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: E2 17 00 CA 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AB [08:11:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:11:53]wFMCommunicate OK [08:11:53]requested_item fd.num is exist - process it [08:11:53]SAM_PROTO_GetFieldsCounters [08:11:53]wFMCommunicate request_size=4 [08:11:53]MH_SAM_APDU [08:11:53]CAPDU: 80 13 00 00 [08:11:53]Write to MH i2c: E2 08 00 CB 12 80 13 00 00 00 00 00 00 59 [08:11:53]Write i2c OK [08:11:53]MH_I2C_Read... [08:11:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:11:53]Read from MH i2c: E2 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: E2 62 00 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: E2 62 00 CB 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2F 12 03 00 0E 04 04 00 1F 02 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 32 [08:11:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2F 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:11:53]wFMCommunicate OK [08:11:53]SAM_PROTO_GetFieldsCounters done [08:11:53]requested_item shift.num is exist - process it [08:11:53]requested_item shift.opened is exist - process it [08:11:53]req_shift_opened [08:11:53]FM_GetShiftState [08:11:53]SAM_PROTO_GetShiftState [08:11:53]wFMCommunicate request_size=4 [08:11:53]MH_SAM_APDU [08:11:53]CAPDU: 80 13 01 00 [08:11:53]Write to MH i2c: E2 08 00 CC 12 80 13 01 00 00 00 00 00 5B [08:11:53]Write i2c OK [08:11:53]MH_I2C_Read... [08:11:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:53]Read from MH i2c: E2 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: E2 0E 00 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: E2 0E 00 CC 12 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 6A [08:11:53]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:11:53]wFMCommunicate OK [08:11:53]SAM_PROTO_GetShiftState done [08:11:53]FM_GetShiftState done [08:11:53]req_shift_opened done [08:11:53]requested_item shift.open_date is exist - process it [08:11:53]req_shift_open_date [08:11:53]req_shift_open_date done [08:11:53]produce_requested_data done [08:11:53]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201263,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [08:11:53]process_action_free close_receipt [08:11:53]json_value_free [08:11:53]json_value_free done [08:11:53]process_json_proto returns [08:11:53]Send response to host [08:11:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201263,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [08:11:53]free response buf [08:11:53]execute_script done [08:11:53]execute_script returns [08:11:53]free content buf [08:11:53]Sock 7.Close socket [08:11:53]Sock 7.Thread stoped [08:11:57]OFD Sender: No OFD packet to send [08:12:02]OFD Sender: No OFD packet to send [08:12:07]OFD Sender: No OFD packet to send [08:12:12]OFD Sender: No OFD packet to send [08:12:17]OFD Sender: No OFD packet to send [08:12:22]OFD Sender: No OFD packet to send [08:12:27]OFD Sender: No OFD packet to send [08:12:32]OFD Sender: No OFD packet to send [08:12:37]OFD Sender: No OFD packet to send [08:12:42]OFD Sender: No OFD packet to send [08:12:47]OFD Sender: No OFD packet to send [08:12:52]OFD Sender: No OFD packet to send [08:12:57]OFD Sender: No OFD packet to send [08:13:02]OFD Sender: No OFD packet to send [08:13:07]OFD Sender: No OFD packet to send [08:13:12]OFD Sender: No OFD packet to send [08:13:17]accept exits with 9 [08:13:17]New connection [08:13:17]New thread 3067415908 created [08:13:17]Thread 3067559268 joined [08:13:17]Waiting for new connection... [08:13:17] Sock 9.Parse request [08:13:17]Sock 9.Check first char [08:13:17]Sock 9.First char is OK [08:13:17]request: POST /json_proto HTTP/1.0 [08:13:17]Method: POST [08:13:17]URL: /json_proto [08:13:17]Method is POST - this is cgi request [08:13:17]url: /json_proto [08:13:17]query_string will be loaded in cgi processing [08:13:17]execute_cgi json_proto POST (null) [08:13:17]execute_cgi path=json_proto method=POST [08:13:17]POST find Content-Length [08:13:17]Host: 172.17.63.195:8080 [08:13:17]Content-Length: 670 [08:13:17]Content-Type: application/json [08:13:17] [08:13:17]POST finish read [08:13:17]Found Content-Length = 670 [08:13:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 4.540, "sum" : 310.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:17]execute_script... [08:13: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)449011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 4.540, "sum" : 310.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:17]POST & json_proto [08:13:17]process_json_proto [08:13:17]json parsed OK: [08:13:17]protocol is kg_v1.0 [08:13:17]action value=close_receipt [08:13:17]process_action close_receipt [08:13:17]cmd_close_receipt [08:13:17]MH_GetDate [08:13:17]Write to MH i2c: F0 00 00 CD 12 CE [08:13:17]Write i2c OK [08:13:17]MH_I2C_Read... [08:13:17]Read from MH i2c: F0 [08:13:17]MH_I2C_Read... [08:13:17]Read from MH i2c: F0 09 00 [08:13:17]MH_I2C_Read... [08:13:17]Read from MH i2c: F0 09 00 CD 12 00 A0 A4 1C 67 68 46 19 67 CC [08:13:17]GetLastDocTimeStamp 1729930313 [08:13:17]current date 1729930400 [08:13:17]FM_GetShiftState [08:13:17]SAM_PROTO_GetShiftState [08:13:17]wFMCommunicate request_size=4 [08:13:17]MH_SAM_APDU [08:13:17]CAPDU: 80 13 01 00 [08:13:17]Write to MH i2c: E2 08 00 CE 12 80 13 01 00 00 00 00 00 5D [08:13:17]Write i2c OK [08:13:17]MH_I2C_Read... [08:13:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:17]Read from MH i2c: E2 [08:13:17]MH_I2C_Read... [08:13:17]Read from MH i2c: E2 0E 00 [08:13:17]MH_I2C_Read... [08:13:17]Read from MH i2c: E2 0E 00 CE 12 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 6C [08:13:17]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:13:17]wFMCommunicate OK [08:13:17]SAM_PROTO_GetShiftState done [08:13:17]FM_GetShiftState done [08:13:17]opened in 1729900879 [08:13:17]opened+sec_in_day 1729987279 [08:13:17]quantity*price = 31053 [08:13:17]sum+1 = 31055 [08:13:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 310.00 Внесено: 310.00 СДАЧА: 0.00 НСП 1% : 2.75 НДС 12% : 32.98 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 26 26.10.2024 08:13 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201264 ФПД: 242587674123929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T081320&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201264&fm=242587674123929&tin=02508201610067®Number=0000000000091777&sum=31000 [08:13:18]StoreToDocumentArchive [08:13:18]shift 543 fd 201264 [08:13:18]save to /storage/0543/doc_00201264 [08:13:18]save last doc name /storage/0543/doc_00201264 to /storage/kkm_last_doc_name [08:13:18]save OK [08:13:18]Clear old archive folders... [08:13:18]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:13:18]tlvbuf is 017188B0 [08:13:18]SAM_PROTO_ClearQueue [08:13:18]wFMCommunicate request_size=4 [08:13:18]MH_SAM_APDU [08:13:18]CAPDU: 80 09 00 00 [08:13:18]Write to MH i2c: E2 08 00 DB 12 80 09 00 00 00 00 00 00 5F [08:13:18]Write i2c OK [08:13:18]MH_I2C_Read... [08:13:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:13:18]Read from MH i2c: E2 [08:13:18]MH_I2C_Read... [08:13:18]Read from MH i2c: E2 03 00 [08:13:18]MH_I2C_Read... [08:13:18]Read from MH i2c: E2 03 00 DB 12 00 90 00 61 [08:13:18]RAPDU: 90 00 [08:13:18]wFMCommunicate OK [08:13:18]SAM_PROTO_ClearQueue done [08:13:18]KKMCreateOFDPacket [08:13:18]OFDProtocolAddRootSTLVToBuf [08:13:18]FM_MakeSignedData [08:13:18]FM_MakeSignedData [08:13:18]SAM_PROTO_SignData [08:13:18]wFMCommunicate request_size=4 [08:13:18]MH_SAM_APDU [08:13:18]CAPDU: 80 0D 01 02 [08:13:18]Write to MH i2c: E2 08 00 DC 12 80 0D 01 02 00 00 00 00 67 [08:13:18]Write i2c OK [08:13:18]MH_I2C_Read... [08:13:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:13:18]Read from MH i2c: E2 [08:13:18]MH_I2C_Read... [08:13:18]Read from MH i2c: E2 03 00 [08:13:18]MH_I2C_Read... [08:13:18]Read from MH i2c: E2 03 00 DC 12 00 90 00 62 [08:13:18]RAPDU: 90 00 [08:13:18]wFMCommunicate OK [08:13:18]wFMCommunicate request_size=255 [08:13:18]MH_SAM_APDU [08:13:18]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 A0 A4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 30 12 03 00 35 04 06 00 [08:13:18]Write to MH i2c: E2 02 01 DD 12 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 BC 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 A0 A4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 30 12 03 00 35 04 06 00 00 00 E7 [08:13:18]Write i2c OK [08:13:18]MH_I2C_Read... [08:13:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:18]Read from MH i2c: E2 [08:13:18]MH_I2C_Read... [08:13:18]Read from MH i2c: E2 03 00 [08:13:18]MH_I2C_Read... [08:13:18]Read from MH i2c: E2 03 00 DD 12 00 90 00 63 [08:13:18]RAPDU: 90 00 [08:13:18]wFMCommunicate OK [08:13:18]wFMCommunicate request_size=11 [08:13:18]MH_SAM_APDU [08:13:18]CAPDU: 80 0D 02 02 06 DC A1 D8 24 9E 99 [08:13:18]Write to MH i2c: E2 0E 00 DE 12 80 0D 02 02 06 00 DC A1 D8 24 9E 99 00 00 26 [08:13:18]Write i2c OK [08:13:18]MH_I2C_Read... [08:13:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:18]Read from MH i2c: E2 [08:13:18]MH_I2C_Read... [08:13:18]Read from MH i2c: E2 03 00 [08:13:18]MH_I2C_Read... [08:13:18]Read from MH i2c: E2 03 00 DE 12 00 90 00 64 [08:13:18]RAPDU: 90 00 [08:13:18]wFMCommunicate OK [08:13:18]wFMCommunicate request_size=4 [08:13:18]MH_SAM_APDU [08:13:18]CAPDU: 80 0D 03 02 [08:13:18]Write to MH i2c: E2 08 00 DF 12 80 0D 03 02 00 00 00 00 6C [08:13:18]Write i2c OK [08:13:18]MH_I2C_Read... [08:13:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:13:18]Read from MH i2c: E2 [08:13:18]MH_I2C_Read... [08:13:18]Read from MH i2c: E2 0B 00 [08:13:18]MH_I2C_Read... [08:13:18]Read from MH i2c: E2 0B 00 DF 12 00 5E 00 94 9F 6B 55 5C 81 90 00 9B [08:13:18]RAPDU: 5E 00 94 9F 6B 55 5C 81 90 00 [08:13:18]wFMCommunicate OK [08:13:18]SAM_PROTO_SignData done [08:13:18]FM_MakeSignedData done [08:13:18]CreateOFDProtocolMessage [08:13:18]wFMCommunicate request_size=4 [08:13:18]MH_SAM_APDU [08:13:18]CAPDU: 80 11 00 00 [08:13:18]Write to MH i2c: E2 08 00 E0 12 80 11 00 00 00 00 00 00 6C [08:13:18]Write i2c OK [08:13:18]MH_I2C_Read... [08:13:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:19]Read from MH i2c: E2 [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: E2 17 00 [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: E2 17 00 E0 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C1 [08:13:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:13:19]wFMCommunicate OK [08:13:19]CreateOFDProtocolMessage done [08:13:19]OFDSenderStorePacket 201264 [08:13:19]StoreOFDPacket docnum=201264 [08:13:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 2E AB 08 01 31 E3 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 BC 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 A0 A4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 30 12 03 00 35 04 06 00 DC A1 D8 24 9E 99 5E 00 94 9F 6B 55 5C 81 [08:13:19]CheckFolder [08:13:19]dirname=/storage/ofd_packets [08:13:19]CheckFolder done [08:13:19]ProducePacketName [08:13:19]name=ofd_packets/00201264 [08:13:19]NVStorageSaveData ofd_packets/00201264 [08:13:19]File name is /storage/ofd_packets/00201264 [08:13:19]Write 302 bytes [08:13:19]NVStorageSaveData done [08:13:19]OFDSenderStorePacket done [08:13:19]KKMCreateOFDPacket done [08:13:19]NVStorageSaveData kkm_last_timestamp [08:13:19]File name is /storage/kkm_last_timestamp [08:13:19]Write 4 bytes [08:13:19]NVStorageSaveData done [08:13:19]ExternCall_PrintAddStr [08:13:19]wPrintStart [08:13:19]Write to MH i2c: 01 00 00 E1 12 F3 [08:13:19]Write i2c OK [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: 01 [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: 01 07 00 [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: 01 07 00 E1 12 00 00 00 00 00 FF 0F 08 [08:13:19]RasterBufferAndPrint [08:13:19]line Счет N : (1)449011 [08:13:19]line ИНН: 02508201610067 [08:13:19]line Контрольно-Кассовый Чек [08:13:19]line ПРОДАЖА [08:13:19]line ТРК (МРК, ГНК) : 53 [08:13:19]line Товар: 2710124130 [08:13:19]line SUPER 92-К-5 [08:13:19]line 4.540 * 68.40 [08:13:19]line = 310.54 [08:13:19]line НДС 12% НСП 1% [08:13:19]line > о реализуемом товаре [08:13:19]line ОКРУГЛЕНИЕ: -0.54 [08:13:19]line ИТОГО: 310.00 [08:13:19]line Внесено: 310.00 [08:13:19]line СДАЧА: 0.00 [08:13:19]line НСП 1% : 2.75 [08:13:19]line НДС 12% : 32.98 [08:13:19]line Наличными: 310.00 [08:13:19]line Безнал.: 0.00 [08:13:19]line Место: АЗС № 171 "Партнер Нефть" [08:13:19]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:13:19]line СНО: Общий режим [08:13:19]line Чек 26 26.10.2024 08:13 [08:13:19]line Смена: 543 ФФД: 1.0 [08:13:19]line ЗНМ: 0300000109 [08:13:19]line РНМ: 0000000000091777 [08:13:19]line Версия ККМ: 001 [08:13:19]line ФМ: 0000000000871756 [08:13:19]line ФД: 201264 [08:13:19]line ФПД: 242587674123929 [08:13:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T081320&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201264&fm=242587674123929&tin=02508201610067®Number=0000000000091777&sum=31000 [08:13:19]OFD Sender: Processing packet 201264 [packets to send 112, broken 111] [08:13:19]ProducePacketName [08:13:19]name=ofd_packets/00201264 [08:13:19]OFD Sender: To server: pG, [08:13:19]CommunicateWithHost lk.salyk.kg:30040 [08:13:19]ConnectInit lk.salyk.kg [08:13:19]written 0, free lines is 4095 [08:13:19]Connected sock=10 [08:13:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 2E AB 08 01 31 E3 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 BC 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 A0 A4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 30 12 03 00 35 04 06 00 DC A1 D8 24 9E 99 5E 00 94 9F 6B 55 5C 81 [08:13:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 62 92 47 00 0B 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 30 12 03 00 F4 03 04 00 4A 50 1C 67 B6 04 01 00 00 D9 26 8B C3 01 BB 00 7F [08:13:19]CommunicateWithHost err = 0 [08:13:19]CheckOFDResponse [08:13:19]1017 (14) - 77093643461234 [08:13:19]1041 (16) - 0000000000871756 [08:13:19]1040 (4) - 201264 [08:13:19]1012 (4) - 26.10.2024 02:13 [08:13:19]1206 (1) - 0 [08:13:19]OFD Sender: Remove packet 201264 [08:13:19]ProducePacketName [08:13:19]name=ofd_packets/00201264 [08:13:19]NVStorageDeleteData [08:13:19]Write to MH i2c: 01 00 00 0C 13 1F [08:13:19]Write i2c OK [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: 01 [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: 01 07 00 [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: 01 07 00 0C 13 00 00 00 00 00 97 0C C9 [08:13:19]RasterBufferAndPrint [08:13:19]line [08:13:19]line [08:13:19]line [08:13:19]line [08:13:19]line [08:13:19]written 0, free lines is 3229 [08:13:19]MH_Cut [08:13:19]Write to MH i2c: D1 01 00 13 13 01 F8 [08:13:19]Write i2c OK [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: D1 [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: D1 01 00 [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: D1 01 00 13 13 00 F7 [08:13:19]Write to MH i2c: 01 00 00 14 13 27 [08:13:19]Write i2c OK [08:13:19]MH_I2C_Read... [08:13:20]OFD Sender: No OFD packet to send [08:13:20]*** Cut start [08:13:20]*** Purtial cut [08:13:20]*** Stage 1: CUTSNS_PIN = 1 [08:13:20]Read from MH i2c: 01 [08:13:20]MH_I2C_Read... [08:13:20]*** Stop cut motor [08:13:20]*** Cut end [08:13:20]Read from MH i2c: 01 07 00 [08:13:20]MH_I2C_Read... [08:13:20]Read from MH i2c: 01 07 00 14 13 00 00 00 00 00 FF 0F 3C [08:13:20]process_action close_receipt done [08:13:20]requested_data is exist [08:13:20]produce_requested_data [08:13:20]requested_item fm.sn is exist - process it [08:13:20]wFMCommunicate request_size=4 [08:13:20]MH_SAM_APDU [08:13:20]CAPDU: 80 11 00 00 [08:13:20]Write to MH i2c: E2 08 00 15 13 80 11 00 00 00 00 00 00 A2 [08:13:20]Write i2c OK [08:13:20]MH_I2C_Read... [08:13:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:20]Read from MH i2c: E2 [08:13:20]MH_I2C_Read... [08:13:20]Read from MH i2c: E2 17 00 [08:13:20]MH_I2C_Read... [08:13:20]Read from MH i2c: E2 17 00 15 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F7 [08:13:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:13:20]wFMCommunicate OK [08:13:20]requested_item fd.num is exist - process it [08:13:20]SAM_PROTO_GetFieldsCounters [08:13:20]wFMCommunicate request_size=4 [08:13:20]MH_SAM_APDU [08:13:20]CAPDU: 80 13 00 00 [08:13:20]Write to MH i2c: E2 08 00 16 13 80 13 00 00 00 00 00 00 A5 [08:13:20]Write i2c OK [08:13:20]MH_I2C_Read... [08:13:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:21]Read from MH i2c: E2 [08:13:21]MH_I2C_Read... [08:13:21]Read from MH i2c: E2 62 00 [08:13:21]MH_I2C_Read... [08:13:21]Read from MH i2c: E2 62 00 16 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 30 12 03 00 0E 04 04 00 1F 02 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 82 [08:13:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 30 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:13:21]wFMCommunicate OK [08:13:21]SAM_PROTO_GetFieldsCounters done [08:13:21]requested_item shift.num is exist - process it [08:13:21]requested_item shift.opened is exist - process it [08:13:21]req_shift_opened [08:13:21]FM_GetShiftState [08:13:21]SAM_PROTO_GetShiftState [08:13:21]wFMCommunicate request_size=4 [08:13:21]MH_SAM_APDU [08:13:21]CAPDU: 80 13 01 00 [08:13:21]Write to MH i2c: E2 08 00 17 13 80 13 01 00 00 00 00 00 A7 [08:13:21]Write i2c OK [08:13:21]MH_I2C_Read... [08:13:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:21]Read from MH i2c: E2 [08:13:21]MH_I2C_Read... [08:13:21]Read from MH i2c: E2 0E 00 [08:13:21]MH_I2C_Read... [08:13:21]Read from MH i2c: E2 0E 00 17 13 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 B6 [08:13:21]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:13:21]wFMCommunicate OK [08:13:21]SAM_PROTO_GetShiftState done [08:13:21]FM_GetShiftState done [08:13:21]req_shift_opened done [08:13:21]requested_item shift.open_date is exist - process it [08:13:21]req_shift_open_date [08:13:21]req_shift_open_date done [08:13:21]produce_requested_data done [08:13:21]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201264,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [08:13:21]process_action_free close_receipt [08:13:21]json_value_free [08:13:21]json_value_free done [08:13:21]process_json_proto returns [08:13:21]Send response to host [08:13:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201264,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [08:13:21]free response buf [08:13:21]execute_script done [08:13:21]execute_script returns [08:13:21]free content buf [08:13:21]Sock 9.Close socket [08:13:21]Sock 9.Thread stoped [08:13:25]OFD Sender: No OFD packet to send [08:13:30]OFD Sender: No OFD packet to send [08:13:35]OFD Sender: No OFD packet to send [08:13:40]OFD Sender: No OFD packet to send [08:13:45]OFD Sender: No OFD packet to send [08:13:50]OFD Sender: No OFD packet to send [08:13:55]OFD Sender: No OFD packet to send [08:14:00]OFD Sender: No OFD packet to send [08:14:05]OFD Sender: No OFD packet to send [08:14:10]OFD Sender: No OFD packet to send [08:14:15]OFD Sender: No OFD packet to send [08:14:20]OFD Sender: No OFD packet to send [08:14:25]OFD Sender: No OFD packet to send [08:14:30]OFD Sender: No OFD packet to send [08:14:35]OFD Sender: No OFD packet to send [08:14:40]OFD Sender: No OFD packet to send [08:14:45]OFD Sender: No OFD packet to send [08:14:50]OFD Sender: No OFD packet to send [08:14:55]OFD Sender: No OFD packet to send [08:15:00]OFD Sender: No OFD packet to send [08:15:05]OFD Sender: No OFD packet to send [08:15:10]OFD Sender: No OFD packet to send [08:15:15]OFD Sender: No OFD packet to send [08:15:20]OFD Sender: No OFD packet to send [08:15:25]OFD Sender: No OFD packet to send [08:15:30]OFD Sender: No OFD packet to send [08:15:35]OFD Sender: No OFD packet to send [08:15:40]OFD Sender: No OFD packet to send [08:15:45]OFD Sender: No OFD packet to send [08:15:50]OFD Sender: No OFD packet to send [08:15:55]OFD Sender: No OFD packet to send [08:16:00]OFD Sender: No OFD packet to send [08:16:05]OFD Sender: No OFD packet to send [08:16:10]OFD Sender: No OFD packet to send [08:16:15]OFD Sender: No OFD packet to send [08:16:20]OFD Sender: No OFD packet to send [08:16:25]OFD Sender: No OFD packet to send [08:16:30]OFD Sender: No OFD packet to send [08:16:35]OFD Sender: No OFD packet to send [08:16:40]OFD Sender: No OFD packet to send [08:16:45]OFD Sender: No OFD packet to send [08:16:50]OFD Sender: No OFD packet to send [08:16:55]OFD Sender: No OFD packet to send [08:17:00]OFD Sender: No OFD packet to send [08:17:05]OFD Sender: No OFD packet to send [08:17:10]OFD Sender: No OFD packet to send [08:17:15]OFD Sender: No OFD packet to send [08:17:20]OFD Sender: No OFD packet to send [08:17:25]OFD Sender: No OFD packet to send [08:17:30]OFD Sender: No OFD packet to send [08:17:35]OFD Sender: No OFD packet to send [08:17:40]OFD Sender: No OFD packet to send [08:17:45]OFD Sender: No OFD packet to send [08:17:50]OFD Sender: No OFD packet to send [08:17:55]OFD Sender: No OFD packet to send [08:17:55]int [08:17:55]Write to MH i2c: 01 00 00 18 13 2B [08:17:55]*** FLAG_PRN_KEY set [08:17:55]Write i2c OK [08:17:55]MH_I2C_Read... [08:17:55]Read from MH i2c: 01 [08:17:55]MH_I2C_Read... [08:17:55]Read from MH i2c: 01 07 00 [08:17:55]MH_I2C_Read... [08:17:55]Read from MH i2c: 01 07 00 18 13 00 08 00 00 00 FF 0F 48 [08:17:55]state=0 [08:17:55]Key pressed [08:17:55]Feed [08:17:55]Write to MH i2c: D8 00 00 19 13 03 [08:17:55]Write i2c OK [08:17:55]MH_I2C_Read... [08:17:55]Read from MH i2c: D8 [08:17:55]MH_I2C_Read... [08:17:55]Read from MH i2c: D8 01 00 [08:17:55]MH_I2C_Read... [08:17:55]Read from MH i2c: D8 01 00 19 13 00 04 [08:17:55]int [08:17:55]Write to MH i2c: 01 00 00 1A 13 2D [08:17:55]Write i2c OK [08:17:55]MH_I2C_Read... [08:17:55]Read from MH i2c: 01 [08:17:55]MH_I2C_Read... [08:17:55]Read from MH i2c: 01 07 00 [08:17:55]MH_I2C_Read... [08:17:55]Read from MH i2c: 01 07 00 1A 13 00 48 00 00 00 3C 00 B8 [08:17:55]state=2 [08:17:55]Key pressed [08:17:55]int [08:17:55]Write to MH i2c: 01 00 00 1B 13 2E [08:17:55]*** FLAG_PRN_KEY reset [08:17:55]Write i2c OK [08:17:55]MH_I2C_Read... [08:17:55]Read from MH i2c: 01 [08:17:55]MH_I2C_Read... [08:17:55]Read from MH i2c: 01 07 00 [08:17:55]MH_I2C_Read... [08:17:55]Read from MH i2c: 01 07 00 1B 13 00 00 00 00 00 F6 0F 3A [08:17:55]state=2 [08:17:55]Stop feed [08:18:00]OFD Sender: No OFD packet to send [08:18:05]OFD Sender: No OFD packet to send [08:18:10]OFD Sender: No OFD packet to send [08:18:15]OFD Sender: No OFD packet to send [08:18:20]OFD Sender: No OFD packet to send [08:18:25]OFD Sender: No OFD packet to send [08:18:29]accept exits with 7 [08:18:29]New connection [08:18:29]New thread 3067559268 created [08:18:29]Thread 3067415908 joined [08:18:29]Waiting for new connection... [08:18:29] Sock 7.Parse request [08:18:29]Sock 7.Check first char [08:18:29]Sock 7.First char is OK [08:18:29]request: POST /json_proto HTTP/1.0 [08:18:29]Method: POST [08:18:29]URL: /json_proto [08:18:29]Method is POST - this is cgi request [08:18:29]url: /json_proto [08:18:29]query_string will be loaded in cgi processing [08:18:29]execute_cgi json_proto POST (null) [08:18:29]execute_cgi path=json_proto method=POST [08:18:29]POST find Content-Length [08:18:29]Host: 172.17.63.195:8080 [08:18:29]Content-Length: 677 [08:18:29]Content-Type: application/json [08:18:29] [08:18:29]POST finish read [08:18:29]Found Content-Length = 677 [08:18:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:29]execute_script... [08:18: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)449012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:29]POST & json_proto [08:18:29]process_json_proto [08:18:29]json parsed OK: [08:18:29]protocol is kg_v1.0 [08:18:29]action value=close_receipt [08:18:29]process_action close_receipt [08:18:29]cmd_close_receipt [08:18:29]MH_GetDate [08:18:29]Write to MH i2c: F0 00 00 1C 13 1E [08:18:29]Write i2c OK [08:18:29]MH_I2C_Read... [08:18:29]Read from MH i2c: F0 [08:18:29]MH_I2C_Read... [08:18:29]Read from MH i2c: F0 09 00 [08:18:29]MH_I2C_Read... [08:18:29]Read from MH i2c: F0 09 00 1C 13 00 D8 A5 1C 67 68 46 19 67 55 [08:18:29]GetLastDocTimeStamp 1729930400 [08:18:29]current date 1729930712 [08:18:29]FM_GetShiftState [08:18:29]SAM_PROTO_GetShiftState [08:18:29]wFMCommunicate request_size=4 [08:18:29]MH_SAM_APDU [08:18:29]CAPDU: 80 13 01 00 [08:18:29]Write to MH i2c: E2 08 00 1D 13 80 13 01 00 00 00 00 00 AD [08:18:29]Write i2c OK [08:18:29]MH_I2C_Read... [08:18:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:29]Read from MH i2c: E2 [08:18:29]MH_I2C_Read... [08:18:29]Read from MH i2c: E2 0E 00 [08:18:29]MH_I2C_Read... [08:18:29]Read from MH i2c: E2 0E 00 1D 13 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 BC [08:18:29]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:18:29]wFMCommunicate OK [08:18:29]SAM_PROTO_GetShiftState done [08:18:29]FM_GetShiftState done [08:18:29]opened in 1729900879 [08:18:29]opened+sec_in_day 1729987279 [08:18:29]quantity*price = 30038 [08:18:29]sum+1 = 30039 [08:18:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 27 26.10.2024 08:18 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201265 ФПД: 2613383885321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T081832&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201265&fm=2613383885321&tin=02508201610067®Number=0000000000091777&sum=30000 [08:18:30]StoreToDocumentArchive [08:18:30]shift 543 fd 201265 [08:18:30]save to /storage/0543/doc_00201265 [08:18:30]save last doc name /storage/0543/doc_00201265 to /storage/kkm_last_doc_name [08:18:30]save OK [08:18:30]Clear old archive folders... [08:18:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:18:30]tlvbuf is 016E5A60 [08:18:30]SAM_PROTO_ClearQueue [08:18:30]wFMCommunicate request_size=4 [08:18:30]MH_SAM_APDU [08:18:30]CAPDU: 80 09 00 00 [08:18:30]Write to MH i2c: E2 08 00 2A 13 80 09 00 00 00 00 00 00 AF [08:18:30]Write i2c OK [08:18:30]MH_I2C_Read... [08:18:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:18:30]Read from MH i2c: E2 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 03 00 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 03 00 2A 13 00 90 00 B1 [08:18:30]RAPDU: 90 00 [08:18:30]wFMCommunicate OK [08:18:30]SAM_PROTO_ClearQueue done [08:18:30]KKMCreateOFDPacket [08:18:30]OFDProtocolAddRootSTLVToBuf [08:18:30]FM_MakeSignedData [08:18:30]FM_MakeSignedData [08:18:30]SAM_PROTO_SignData [08:18:30]wFMCommunicate request_size=4 [08:18:30]MH_SAM_APDU [08:18:30]CAPDU: 80 0D 01 02 [08:18:30]Write to MH i2c: E2 08 00 2B 13 80 0D 01 02 00 00 00 00 B7 [08:18:30]Write i2c OK [08:18:30]MH_I2C_Read... [08:18:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:18:30]Read from MH i2c: E2 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 03 00 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 03 00 2B 13 00 90 00 B2 [08:18:30]RAPDU: 90 00 [08:18:30]wFMCommunicate OK [08:18:30]wFMCommunicate request_size=255 [08:18:30]MH_SAM_APDU [08:18:30]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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 D8 A5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 31 12 03 00 35 04 06 00 02 [08:18:30]Write to MH i2c: E2 02 01 2C 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 D8 A5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 31 12 03 00 35 04 06 00 02 00 00 C3 [08:18:30]Write i2c OK [08:18:30]MH_I2C_Read... [08:18:30]OFD Sender: No OFD packet to send [08:18:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:30]Read from MH i2c: E2 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 03 00 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 03 00 2C 13 00 90 00 B3 [08:18:30]RAPDU: 90 00 [08:18:30]wFMCommunicate OK [08:18:30]wFMCommunicate request_size=10 [08:18:30]MH_SAM_APDU [08:18:30]CAPDU: 80 0D 02 02 05 60 79 D1 72 09 [08:18:30]Write to MH i2c: E2 0D 00 2D 13 80 0D 02 02 05 00 60 79 D1 72 09 00 00 E9 [08:18:30]Write i2c OK [08:18:30]MH_I2C_Read... [08:18:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:30]Read from MH i2c: E2 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 03 00 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 03 00 2D 13 00 90 00 B4 [08:18:30]RAPDU: 90 00 [08:18:30]wFMCommunicate OK [08:18:30]wFMCommunicate request_size=4 [08:18:30]MH_SAM_APDU [08:18:30]CAPDU: 80 0D 03 02 [08:18:30]Write to MH i2c: E2 08 00 2E 13 80 0D 03 02 00 00 00 00 BC [08:18:30]Write i2c OK [08:18:30]MH_I2C_Read... [08:18:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:18:30]Read from MH i2c: E2 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 0B 00 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 0B 00 2E 13 00 B7 A3 C8 BB 1B 52 D3 11 90 00 EB [08:18:30]RAPDU: B7 A3 C8 BB 1B 52 D3 11 90 00 [08:18:30]wFMCommunicate OK [08:18:30]SAM_PROTO_SignData done [08:18:30]FM_MakeSignedData done [08:18:30]CreateOFDProtocolMessage [08:18:30]wFMCommunicate request_size=4 [08:18:30]MH_SAM_APDU [08:18:30]CAPDU: 80 11 00 00 [08:18:30]Write to MH i2c: E2 08 00 2F 13 80 11 00 00 00 00 00 00 BC [08:18:30]Write i2c OK [08:18:30]MH_I2C_Read... [08:18:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:31]Read from MH i2c: E2 [08:18:31]MH_I2C_Read... [08:18:31]Read from MH i2c: E2 17 00 [08:18:31]MH_I2C_Read... [08:18:31]Read from MH i2c: E2 17 00 2F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 11 [08:18:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:18:31]wFMCommunicate OK [08:18:31]CreateOFDProtocolMessage done [08:18:31]OFDSenderStorePacket 201265 [08:18:31]StoreOFDPacket docnum=201265 [08:18:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 00 4D 07 01 C4 5D 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 D8 A5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 31 12 03 00 35 04 06 00 02 60 79 D1 72 09 B7 A3 C8 BB 1B 52 D3 11 [08:18:31]CheckFolder [08:18:31]dirname=/storage/ofd_packets [08:18:31]CheckFolder done [08:18:31]ProducePacketName [08:18:31]name=ofd_packets/00201265 [08:18:31]NVStorageSaveData ofd_packets/00201265 [08:18:31]File name is /storage/ofd_packets/00201265 [08:18:31]Write 301 bytes [08:18:31]NVStorageSaveData done [08:18:31]OFDSenderStorePacket done [08:18:31]KKMCreateOFDPacket done [08:18:31]NVStorageSaveData kkm_last_timestamp [08:18:31]File name is /storage/kkm_last_timestamp [08:18:31]Write 4 bytes [08:18:31]NVStorageSaveData done [08:18:31]ExternCall_PrintAddStr [08:18:31]wPrintStart [08:18:31]Write to MH i2c: 01 00 00 30 13 43 [08:18:31]Write i2c OK [08:18:31]MH_I2C_Read... [08:18:31]Read from MH i2c: 01 [08:18:31]MH_I2C_Read... [08:18:31]Read from MH i2c: 01 07 00 [08:18:31]MH_I2C_Read... [08:18:31]Read from MH i2c: 01 07 00 30 13 00 00 00 00 00 FF 0F 58 [08:18:31]RasterBufferAndPrint [08:18:31]line Счет N : (1)449012 [08:18:31]line ИНН: 02508201610067 [08:18:31]line Контрольно-Кассовый Чек [08:18:31]line ПРОДАЖА [08:18:31]line ТРК (МРК, ГНК) : 41 [08:18:31]line Товар: 2710124130 [08:18:31]line Аи-92-К-2 [08:18:31]line 4.490 * 66.90 [08:18:31]line = 300.38 [08:18:31]line НДС 12% НСП 1% [08:18:31]line > о реализуемом товаре [08:18:31]line ОКРУГЛЕНИЕ: -0.38 [08:18:31]line ИТОГО: 300.00 [08:18:31]line Внесено: 300.00 [08:18:31]line СДАЧА: 0.00 [08:18:31]line НСП 1% : 2.66 [08:18:31]line НДС 12% : 31.90 [08:18:31]line Наличными: 300.00 [08:18:31]line Безнал.: 0.00 [08:18:31]line Место: АЗС № 171 "Партнер Нефть" [08:18:31]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:18:31]line СНО: Общий режим [08:18:31]line Чек 27 26.10.2024 08:18 [08:18:31]line Смена: 543 ФФД: 1.0 [08:18:31]line ЗНМ: 0300000109 [08:18:31]line РНМ: 0000000000091777 [08:18:31]line Версия ККМ: 001 [08:18:31]line ФМ: 0000000000871756 [08:18:31]line ФД: 201265 [08:18:31]line ФПД: 2613383885321 [08:18:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T081832&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201265&fm=2613383885321&tin=02508201610067®Number=0000000000091777&sum=30000 [08:18:31]OFD Sender: Processing packet 201265 [packets to send 112, broken 111] [08:18:31]ProducePacketName [08:18:31]name=ofd_packets/00201265 [08:18:31]OFD Sender: To server: pG, [08:18:31]CommunicateWithHost lk.salyk.kg:30040 [08:18:31]ConnectInit lk.salyk.kg [08:18:31]written 0, free lines is 4095 [08:18:31]Connected sock=10 [08:18:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 00 4D 07 01 C4 5D 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 D8 A5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 31 12 03 00 35 04 06 00 02 60 79 D1 72 09 B7 A3 C8 BB 1B 52 D3 11 [08:18:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 61 64 47 00 DD 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 31 12 03 00 F4 03 04 00 82 51 1C 67 B6 04 01 00 00 38 E9 C5 97 E0 8A D3 84 [08:18:31]CommunicateWithHost err = 0 [08:18:31]CheckOFDResponse [08:18:31]1017 (14) - 77093643461234 [08:18:31]1041 (16) - 0000000000871756 [08:18:31]1040 (4) - 201265 [08:18:31]1012 (4) - 26.10.2024 02:18 [08:18:31]1206 (1) - 0 [08:18:31]OFD Sender: Remove packet 201265 [08:18:31]ProducePacketName [08:18:31]name=ofd_packets/00201265 [08:18:31]NVStorageDeleteData [08:18:31]Write to MH i2c: 01 00 00 5B 13 6E [08:18:31]Write i2c OK [08:18:31]MH_I2C_Read... [08:18:31]Read from MH i2c: 01 [08:18:31]MH_I2C_Read... [08:18:31]Read from MH i2c: 01 07 00 [08:18:31]MH_I2C_Read... [08:18:31]Read from MH i2c: 01 07 00 5B 13 00 00 00 00 00 A3 0C 24 [08:18:31]RasterBufferAndPrint [08:18:31]line [08:18:31]line [08:18:31]line [08:18:31]line [08:18:31]line [08:18:31]written 0, free lines is 3241 [08:18:31]MH_Cut [08:18:31]Write to MH i2c: D1 01 00 62 13 01 47 [08:18:31]Write i2c OK [08:18:31]MH_I2C_Read... [08:18:31]Read from MH i2c: D1 [08:18:31]MH_I2C_Read... [08:18:31]Read from MH i2c: D1 01 00 [08:18:31]MH_I2C_Read... [08:18:31]Read from MH i2c: D1 01 00 62 13 00 46 [08:18:31]Write to MH i2c: 01 00 00 63 13 76 [08:18:31]Write i2c OK [08:18:31]MH_I2C_Read... [08:18:32]OFD Sender: No OFD packet to send [08:18:32]*** Cut start [08:18:32]*** Purtial cut [08:18:32]*** Stage 1: CUTSNS_PIN = 1 [08:18:32]Read from MH i2c: 01 [08:18:32]MH_I2C_Read... [08:18:32]*** Stop cut motor [08:18:32]*** Cut end [08:18:32]Read from MH i2c: 01 07 00 [08:18:32]MH_I2C_Read... [08:18:32]Read from MH i2c: 01 07 00 63 13 00 00 00 00 00 FF 0F 8B [08:18:32]process_action close_receipt done [08:18:32]requested_data is exist [08:18:32]produce_requested_data [08:18:32]requested_item fm.sn is exist - process it [08:18:32]wFMCommunicate request_size=4 [08:18:32]MH_SAM_APDU [08:18:32]CAPDU: 80 11 00 00 [08:18:32]Write to MH i2c: E2 08 00 64 13 80 11 00 00 00 00 00 00 F1 [08:18:32]Write i2c OK [08:18:32]MH_I2C_Read... [08:18:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:32]Read from MH i2c: E2 [08:18:32]MH_I2C_Read... [08:18:32]Read from MH i2c: E2 17 00 [08:18:33]MH_I2C_Read... [08:18:33]Read from MH i2c: E2 17 00 64 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 46 [08:18:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:18:33]wFMCommunicate OK [08:18:33]requested_item fd.num is exist - process it [08:18:33]SAM_PROTO_GetFieldsCounters [08:18:33]wFMCommunicate request_size=4 [08:18:33]MH_SAM_APDU [08:18:33]CAPDU: 80 13 00 00 [08:18:33]Write to MH i2c: E2 08 00 65 13 80 13 00 00 00 00 00 00 F4 [08:18:33]Write i2c OK [08:18:33]MH_I2C_Read... [08:18:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:18:33]Read from MH i2c: E2 [08:18:33]MH_I2C_Read... [08:18:33]Read from MH i2c: E2 62 00 [08:18:33]MH_I2C_Read... [08:18:33]Read from MH i2c: E2 62 00 65 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 31 12 03 00 0E 04 04 00 1F 02 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 D5 [08:18:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 31 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:18:33]wFMCommunicate OK [08:18:33]SAM_PROTO_GetFieldsCounters done [08:18:33]requested_item shift.num is exist - process it [08:18:33]requested_item shift.opened is exist - process it [08:18:33]req_shift_opened [08:18:33]FM_GetShiftState [08:18:33]SAM_PROTO_GetShiftState [08:18:33]wFMCommunicate request_size=4 [08:18:33]MH_SAM_APDU [08:18:33]CAPDU: 80 13 01 00 [08:18:33]Write to MH i2c: E2 08 00 66 13 80 13 01 00 00 00 00 00 F6 [08:18:33]Write i2c OK [08:18:33]MH_I2C_Read... [08:18:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:33]Read from MH i2c: E2 [08:18:33]MH_I2C_Read... [08:18:33]Read from MH i2c: E2 0E 00 [08:18:33]MH_I2C_Read... [08:18:33]Read from MH i2c: E2 0E 00 66 13 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 05 [08:18:33]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:18:33]wFMCommunicate OK [08:18:33]SAM_PROTO_GetShiftState done [08:18:33]FM_GetShiftState done [08:18:33]req_shift_opened done [08:18:33]requested_item shift.open_date is exist - process it [08:18:33]req_shift_open_date [08:18:33]req_shift_open_date done [08:18:33]produce_requested_data done [08:18:33]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201265,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [08:18:33]process_action_free close_receipt [08:18:33]json_value_free [08:18:33]json_value_free done [08:18:33]process_json_proto returns [08:18:33]Send response to host [08:18:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201265,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [08:18:33]free response buf [08:18:33]execute_script done [08:18:33]execute_script returns [08:18:33]free content buf [08:18:33]Sock 7.Close socket [08:18:33]Sock 7.Thread stoped [08:18:37]OFD Sender: No OFD packet to send [08:18:42]OFD Sender: No OFD packet to send [08:18:47]OFD Sender: No OFD packet to send [08:18:52]OFD Sender: No OFD packet to send [08:18:57]OFD Sender: No OFD packet to send [08:19:02]OFD Sender: No OFD packet to send [08:19:07]OFD Sender: No OFD packet to send [08:19:12]OFD Sender: No OFD packet to send [08:19:17]OFD Sender: No OFD packet to send [08:19:22]OFD Sender: No OFD packet to send [08:19:27]OFD Sender: No OFD packet to send [08:19:32]OFD Sender: No OFD packet to send [08:19:37]OFD Sender: No OFD packet to send [08:19:42]OFD Sender: No OFD packet to send [08:19:47]OFD Sender: No OFD packet to send [08:19:48]accept exits with 9 [08:19:48]New connection [08:19:48]New thread 3067415908 created [08:19:48]Thread 3067559268 joined [08:19:48]Waiting for new connection... [08:19:48] Sock 9.Parse request [08:19:48]Sock 9.Check first char [08:19:48]Sock 9.First char is OK [08:19:48]request: POST /json_proto HTTP/1.0 [08:19:48]Method: POST [08:19:48]URL: /json_proto [08:19:48]Method is POST - this is cgi request [08:19:48]url: /json_proto [08:19:48]query_string will be loaded in cgi processing [08:19:48]execute_cgi json_proto POST (null) [08:19:48]execute_cgi path=json_proto method=POST [08:19:48]POST find Content-Length [08:19:48]Host: 172.17.63.195:8080 [08:19:48]Content-Length: 677 [08:19:48]Content-Type: application/json [08:19:48] [08:19:48]POST finish read [08:19:48]Found Content-Length = 677 [08:19:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:19:48]execute_script... [08:19:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:19:48]POST & json_proto [08:19:48]process_json_proto [08:19:48]json parsed OK: [08:19:48]protocol is kg_v1.0 [08:19:48]action value=close_receipt [08:19:48]process_action close_receipt [08:19:48]cmd_close_receipt [08:19:48]MH_GetDate [08:19:48]Write to MH i2c: F0 00 00 67 13 69 [08:19:48]Write i2c OK [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: F0 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: F0 09 00 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: F0 09 00 67 13 00 27 A6 1C 67 68 46 19 67 F0 [08:19:48]GetLastDocTimeStamp 1729930712 [08:19:48]current date 1729930791 [08:19:48]FM_GetShiftState [08:19:48]SAM_PROTO_GetShiftState [08:19:48]wFMCommunicate request_size=4 [08:19:48]MH_SAM_APDU [08:19:48]CAPDU: 80 13 01 00 [08:19:48]Write to MH i2c: E2 08 00 68 13 80 13 01 00 00 00 00 00 F8 [08:19:48]Write i2c OK [08:19:48]MH_I2C_Read... [08:19:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:48]Read from MH i2c: E2 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: E2 0E 00 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: E2 0E 00 68 13 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 07 [08:19:48]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:19:48]wFMCommunicate OK [08:19:48]SAM_PROTO_GetShiftState done [08:19:48]FM_GetShiftState done [08:19:48]opened in 1729900879 [08:19:48]opened+sec_in_day 1729987279 [08:19:48]quantity*price = 50041 [08:19:48]sum+1 = 50042 [08:19:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 28 26.10.2024 08:19 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201266 ФПД: 123047577252584 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T081951&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201266&fm=123047577252584&tin=02508201610067®Number=0000000000091777&sum=50000 [08:19:49]StoreToDocumentArchive [08:19:49]shift 543 fd 201266 [08:19:49]save to /storage/0543/doc_00201266 [08:19:49]save last doc name /storage/0543/doc_00201266 to /storage/kkm_last_doc_name [08:19:49]save OK [08:19:49]Clear old archive folders... [08:19:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:19:49]tlvbuf is 01719760 [08:19:49]SAM_PROTO_ClearQueue [08:19:49]wFMCommunicate request_size=4 [08:19:49]MH_SAM_APDU [08:19:49]CAPDU: 80 09 00 00 [08:19:49]Write to MH i2c: E2 08 00 75 13 80 09 00 00 00 00 00 00 FA [08:19:49]Write i2c OK [08:19:49]MH_I2C_Read... [08:19:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:49]Read from MH i2c: E2 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: E2 03 00 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: E2 03 00 75 13 00 90 00 FC [08:19:49]RAPDU: 90 00 [08:19:49]wFMCommunicate OK [08:19:49]SAM_PROTO_ClearQueue done [08:19:49]KKMCreateOFDPacket [08:19:49]OFDProtocolAddRootSTLVToBuf [08:19:49]FM_MakeSignedData [08:19:49]FM_MakeSignedData [08:19:49]SAM_PROTO_SignData [08:19:49]wFMCommunicate request_size=4 [08:19:49]MH_SAM_APDU [08:19:49]CAPDU: 80 0D 01 02 [08:19:49]Write to MH i2c: E2 08 00 76 13 80 0D 01 02 00 00 00 00 02 [08:19:49]Write i2c OK [08:19:49]MH_I2C_Read... [08:19:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:49]Read from MH i2c: E2 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: E2 03 00 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: E2 03 00 76 13 00 90 00 FD [08:19:49]RAPDU: 90 00 [08:19:49]wFMCommunicate OK [08:19:49]wFMCommunicate request_size=255 [08:19:49]MH_SAM_APDU [08:19: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 32 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 1C 00 00 00 F4 03 04 00 27 A6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 32 12 03 00 35 04 06 00 6F [08:19:49]Write to MH i2c: E2 02 01 77 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 1C 00 00 00 F4 03 04 00 27 A6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 32 12 03 00 35 04 06 00 6F 00 00 D9 [08:19:49]Write i2c OK [08:19:49]MH_I2C_Read... [08:19:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:49]Read from MH i2c: E2 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: E2 03 00 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: E2 03 00 77 13 00 90 00 FE [08:19:49]RAPDU: 90 00 [08:19:49]wFMCommunicate OK [08:19:49]wFMCommunicate request_size=10 [08:19:49]MH_SAM_APDU [08:19:49]CAPDU: 80 0D 02 02 05 E9 3F 21 F2 E8 [08:19:49]Write to MH i2c: E2 0D 00 78 13 80 0D 02 02 05 00 E9 3F 21 F2 E8 00 00 32 [08:19:49]Write i2c OK [08:19:49]MH_I2C_Read... [08:19:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:49]Read from MH i2c: E2 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: E2 03 00 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: E2 03 00 78 13 00 90 00 FF [08:19:49]RAPDU: 90 00 [08:19:49]wFMCommunicate OK [08:19:49]wFMCommunicate request_size=4 [08:19:49]MH_SAM_APDU [08:19:49]CAPDU: 80 0D 03 02 [08:19:49]Write to MH i2c: E2 08 00 79 13 80 0D 03 02 00 00 00 00 07 [08:19:49]Write i2c OK [08:19:49]MH_I2C_Read... [08:19:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:49]Read from MH i2c: E2 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: E2 0B 00 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: E2 0B 00 79 13 00 74 45 F9 59 7F C1 A3 5B 90 00 51 [08:19:49]RAPDU: 74 45 F9 59 7F C1 A3 5B 90 00 [08:19:49]wFMCommunicate OK [08:19:49]SAM_PROTO_SignData done [08:19:49]FM_MakeSignedData done [08:19:49]CreateOFDProtocolMessage [08:19:49]wFMCommunicate request_size=4 [08:19:49]MH_SAM_APDU [08:19:49]CAPDU: 80 11 00 00 [08:19:49]Write to MH i2c: E2 08 00 7A 13 80 11 00 00 00 00 00 00 07 [08:19:49]Write i2c OK [08:19:49]MH_I2C_Read... [08:19:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:49]Read from MH i2c: E2 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: E2 17 00 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: E2 17 00 7A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5C [08:19:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:19:49]wFMCommunicate OK [08:19:49]CreateOFDProtocolMessage done [08:19:49]OFDSenderStorePacket 201266 [08:19:49]StoreOFDPacket docnum=201266 [08:19:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 79 26 07 01 02 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 32 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 1C 00 00 00 F4 03 04 00 27 A6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 32 12 03 00 35 04 06 00 6F E9 3F 21 F2 E8 74 45 F9 59 7F C1 A3 5B [08:19:49]CheckFolder [08:19:49]dirname=/storage/ofd_packets [08:19:49]CheckFolder done [08:19:49]ProducePacketName [08:19:49]name=ofd_packets/00201266 [08:19:49]NVStorageSaveData ofd_packets/00201266 [08:19:49]File name is /storage/ofd_packets/00201266 [08:19:49]Write 301 bytes [08:19:49]NVStorageSaveData done [08:19:49]OFDSenderStorePacket done [08:19:49]KKMCreateOFDPacket done [08:19:49]NVStorageSaveData kkm_last_timestamp [08:19:49]File name is /storage/kkm_last_timestamp [08:19:49]Write 4 bytes [08:19:49]NVStorageSaveData done [08:19:49]ExternCall_PrintAddStr [08:19:49]wPrintStart [08:19:49]Write to MH i2c: 01 00 00 7B 13 8E [08:19:49]Write i2c OK [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: 01 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: 01 07 00 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: 01 07 00 7B 13 00 00 00 00 00 FF 0F A3 [08:19:49]RasterBufferAndPrint [08:19:49]line Счет N : (1)449013 [08:19:49]line ИНН: 02508201610067 [08:19:49]line Контрольно-Кассовый Чек [08:19:49]line ПРОДАЖА [08:19:49]line ТРК (МРК, ГНК) : 52 [08:19:49]line Товар: 2710124130 [08:19:49]line Аи-92-К-2 [08:19:49]line 7.480 * 66.90 [08:19:49]line = 500.41 [08:19:49]line НДС 12% НСП 1% [08:19:49]line > о реализуемом товаре [08:19:49]line ОКРУГЛЕНИЕ: -0.41 [08:19:49]line ИТОГО: 500.00 [08:19:49]line Внесено: 500.00 [08:19:49]line СДАЧА: 0.00 [08:19:49]line НСП 1% : 4.43 [08:19:49]line НДС 12% : 53.14 [08:19:49]line Наличными: 500.00 [08:19:49]line Безнал.: 0.00 [08:19:49]line Место: АЗС № 171 "Партнер Нефть" [08:19:49]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:19:49]line СНО: Общий режим [08:19:49]line Чек 28 26.10.2024 08:19 [08:19:49]line Смена: 543 ФФД: 1.0 [08:19:49]line ЗНМ: 0300000109 [08:19:49]line РНМ: 0000000000091777 [08:19:49]line Версия ККМ: 001 [08:19:49]line ФМ: 0000000000871756 [08:19:49]line ФД: 201266 [08:19:49]line ФПД: 123047577252584 [08:19:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T081951&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201266&fm=123047577252584&tin=02508201610067®Number=0000000000091777&sum=50000 [08:19:50]OFD Sender: Processing packet 201266 [packets to send 112, broken 111] [08:19:50]ProducePacketName [08:19:50]name=ofd_packets/00201266 [08:19:50]OFD Sender: To server: pG, [08:19:50]CommunicateWithHost lk.salyk.kg:30040 [08:19:50]ConnectInit lk.salyk.kg [08:19:50]written 0, free lines is 4095 [08:19:50]Connected sock=10 [08:19:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 79 26 07 01 02 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 32 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 1C 00 00 00 F4 03 04 00 27 A6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 32 12 03 00 35 04 06 00 6F E9 3F 21 F2 E8 74 45 F9 59 7F C1 A3 5B [08:19:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B8 4E 47 00 97 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 32 12 03 00 F4 03 04 00 D1 51 1C 67 B6 04 01 00 00 47 32 BE 19 59 3D 10 79 [08:19:50]CommunicateWithHost err = 0 [08:19:50]CheckOFDResponse [08:19:50]1017 (14) - 77093643461234 [08:19:50]1041 (16) - 0000000000871756 [08:19:50]1040 (4) - 201266 [08:19:50]1012 (4) - 26.10.2024 02:20 [08:19:50]1206 (1) - 0 [08:19:50]OFD Sender: Remove packet 201266 [08:19:50]ProducePacketName [08:19:50]name=ofd_packets/00201266 [08:19:50]NVStorageDeleteData [08:19:50]Write to MH i2c: 01 00 00 A6 13 B9 [08:19:50]Write i2c OK [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: 01 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: 01 07 00 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: 01 07 00 A6 13 00 00 00 00 00 8D 0C 59 [08:19:50]RasterBufferAndPrint [08:19:50]line [08:19:50]line [08:19:50]line [08:19:50]line [08:19:50]line [08:19:50]written 0, free lines is 3218 [08:19:50]MH_Cut [08:19:50]Write to MH i2c: D1 01 00 AD 13 01 92 [08:19:50]Write i2c OK [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: D1 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: D1 01 00 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: D1 01 00 AD 13 00 91 [08:19:50]Write to MH i2c: 01 00 00 AE 13 C1 [08:19:50]Write i2c OK [08:19:50]MH_I2C_Read... [08:19:51]OFD Sender: No OFD packet to send [08:19:51]*** Cut start [08:19:51]*** Purtial cut [08:19:51]*** Stage 1: CUTSNS_PIN = 1 [08:19:51]Read from MH i2c: 01 [08:19:51]MH_I2C_Read... [08:19:51]*** Stop cut motor [08:19:51]*** Cut end [08:19:51]Read from MH i2c: 01 07 00 [08:19:51]MH_I2C_Read... [08:19:51]Read from MH i2c: 01 07 00 AE 13 00 00 00 00 00 FF 0F D6 [08:19:51]process_action close_receipt done [08:19:51]requested_data is exist [08:19:51]produce_requested_data [08:19:51]requested_item fm.sn is exist - process it [08:19:51]wFMCommunicate request_size=4 [08:19:51]MH_SAM_APDU [08:19:51]CAPDU: 80 11 00 00 [08:19:51]Write to MH i2c: E2 08 00 AF 13 80 11 00 00 00 00 00 00 3C [08:19:51]Write i2c OK [08:19:51]MH_I2C_Read... [08:19:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:51]Read from MH i2c: E2 [08:19:51]MH_I2C_Read... [08:19:51]Read from MH i2c: E2 17 00 [08:19:51]MH_I2C_Read... [08:19:51]Read from MH i2c: E2 17 00 AF 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 91 [08:19:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:19:51]wFMCommunicate OK [08:19:51]requested_item fd.num is exist - process it [08:19:51]SAM_PROTO_GetFieldsCounters [08:19:51]wFMCommunicate request_size=4 [08:19:51]MH_SAM_APDU [08:19:51]CAPDU: 80 13 00 00 [08:19:51]Write to MH i2c: E2 08 00 B0 13 80 13 00 00 00 00 00 00 3F [08:19:51]Write i2c OK [08:19:51]MH_I2C_Read... [08:19:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:52]Read from MH i2c: E2 [08:19:52]MH_I2C_Read... [08:19:52]Read from MH i2c: E2 62 00 [08:19:52]MH_I2C_Read... [08:19:52]Read from MH i2c: E2 62 00 B0 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 32 12 03 00 0E 04 04 00 1F 02 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 24 [08:19:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 32 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:19:52]wFMCommunicate OK [08:19:52]SAM_PROTO_GetFieldsCounters done [08:19:52]requested_item shift.num is exist - process it [08:19:52]requested_item shift.opened is exist - process it [08:19:52]req_shift_opened [08:19:52]FM_GetShiftState [08:19:52]SAM_PROTO_GetShiftState [08:19:52]wFMCommunicate request_size=4 [08:19:52]MH_SAM_APDU [08:19:52]CAPDU: 80 13 01 00 [08:19:52]Write to MH i2c: E2 08 00 B1 13 80 13 01 00 00 00 00 00 41 [08:19:52]Write i2c OK [08:19:52]MH_I2C_Read... [08:19:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:52]Read from MH i2c: E2 [08:19:52]MH_I2C_Read... [08:19:52]Read from MH i2c: E2 0E 00 [08:19:52]MH_I2C_Read... [08:19:52]Read from MH i2c: E2 0E 00 B1 13 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 50 [08:19:52]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:19:52]wFMCommunicate OK [08:19:52]SAM_PROTO_GetShiftState done [08:19:52]FM_GetShiftState done [08:19:52]req_shift_opened done [08:19:52]requested_item shift.open_date is exist - process it [08:19:52]req_shift_open_date [08:19:52]req_shift_open_date done [08:19:52]produce_requested_data done [08:19:52]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201266,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [08:19:52]process_action_free close_receipt [08:19:52]json_value_free [08:19:52]json_value_free done [08:19:52]process_json_proto returns [08:19:52]Send response to host [08:19:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201266,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [08:19:52]free response buf [08:19:52]execute_script done [08:19:52]execute_script returns [08:19:52]free content buf [08:19:52]Sock 9.Close socket [08:19:52]Sock 9.Thread stoped [08:19:56]OFD Sender: No OFD packet to send [08:20:01]OFD Sender: No OFD packet to send [08:20:06]OFD Sender: No OFD packet to send [08:20:11]OFD Sender: No OFD packet to send [08:20:16]OFD Sender: No OFD packet to send [08:20:21]OFD Sender: No OFD packet to send [08:20:26]OFD Sender: No OFD packet to send [08:20:31]OFD Sender: No OFD packet to send [08:20:36]OFD Sender: No OFD packet to send [08:20:41]OFD Sender: No OFD packet to send [08:20:46]OFD Sender: No OFD packet to send [08:20:51]OFD Sender: No OFD packet to send [08:20:56]OFD Sender: No OFD packet to send [08:21:01]OFD Sender: No OFD packet to send [08:21:06]OFD Sender: No OFD packet to send [08:21:11]OFD Sender: No OFD packet to send [08:21:16]OFD Sender: No OFD packet to send [08:21:21]OFD Sender: No OFD packet to send [08:21:26]OFD Sender: No OFD packet to send [08:21:31]OFD Sender: No OFD packet to send [08:21:36]OFD Sender: No OFD packet to send [08:21:41]OFD Sender: No OFD packet to send [08:21:46]OFD Sender: No OFD packet to send [08:21:51]OFD Sender: No OFD packet to send [08:21:56]OFD Sender: No OFD packet to send [08:22:01]OFD Sender: No OFD packet to send [08:22:06]OFD Sender: No OFD packet to send [08:22:11]OFD Sender: No OFD packet to send [08:22:16]OFD Sender: No OFD packet to send [08:22:21]OFD Sender: No OFD packet to send [08:22:26]OFD Sender: No OFD packet to send [08:22:31]OFD Sender: No OFD packet to send [08:22:36]OFD Sender: No OFD packet to send [08:22:41]OFD Sender: No OFD packet to send [08:22:46]OFD Sender: No OFD packet to send [08:22:51]OFD Sender: No OFD packet to send [08:22:56]OFD Sender: No OFD packet to send [08:23:01]OFD Sender: No OFD packet to send [08:23:06]OFD Sender: No OFD packet to send [08:23:11]OFD Sender: No OFD packet to send [08:23:16]OFD Sender: No OFD packet to send [08:23:21]OFD Sender: No OFD packet to send [08:23:26]OFD Sender: No OFD packet to send [08:23:31]OFD Sender: No OFD packet to send [08:23:36]OFD Sender: No OFD packet to send [08:23:41]OFD Sender: No OFD packet to send [08:23:46]OFD Sender: No OFD packet to send [08:23:51]OFD Sender: No OFD packet to send [08:23:54]accept exits with 7 [08:23:54]New connection [08:23:54]New thread 3067559268 created [08:23:54]Thread 3067415908 joined [08:23:54]Waiting for new connection... [08:23:54] Sock 7.Parse request [08:23:54]Sock 7.Check first char [08:23:54]Sock 7.First char is OK [08:23:54]request: POST /json_proto HTTP/1.0 [08:23:54]Method: POST [08:23:54]URL: /json_proto [08:23:54]Method is POST - this is cgi request [08:23:54]url: /json_proto [08:23:54]query_string will be loaded in cgi processing [08:23:54]execute_cgi json_proto POST (null) [08:23:54]execute_cgi path=json_proto method=POST [08:23:54]POST find Content-Length [08:23:54]Host: 172.17.63.195:8080 [08:23:54]Content-Length: 816 [08:23:54]Content-Type: application/json [08:23:54] [08:23:54]POST finish read [08:23:54]Found Content-Length = 816 [08:23:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.510, "sum" : 1486.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1486.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:54]execute_script... [08:23:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.510, "sum" : 1486.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1486.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:54]POST & json_proto [08:23:54]process_json_proto [08:23:54]json parsed OK: [08:23:54]protocol is kg_v1.0 [08:23:54]action value=close_receipt [08:23:54]process_action close_receipt [08:23:54]cmd_close_receipt [08:23:54]MH_GetDate [08:23:54]Write to MH i2c: F0 00 00 B2 13 B4 [08:23:54]Write i2c OK [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: F0 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: F0 09 00 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: F0 09 00 B2 13 00 1D A7 1C 67 68 46 19 67 32 [08:23:54]GetLastDocTimeStamp 1729930791 [08:23:54]current date 1729931037 [08:23:54]FM_GetShiftState [08:23:54]SAM_PROTO_GetShiftState [08:23:54]wFMCommunicate request_size=4 [08:23:54]MH_SAM_APDU [08:23:54]CAPDU: 80 13 01 00 [08:23:54]Write to MH i2c: E2 08 00 B3 13 80 13 01 00 00 00 00 00 43 [08:23:54]Write i2c OK [08:23:54]MH_I2C_Read... [08:23:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:54]Read from MH i2c: E2 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: E2 0E 00 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: E2 0E 00 B3 13 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 52 [08:23:54]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:23:54]wFMCommunicate OK [08:23:54]SAM_PROTO_GetShiftState done [08:23:54]FM_GetShiftState done [08:23:54]opened in 1729900879 [08:23:54]opened+sec_in_day 1729987279 [08:23:54]quantity*price = 148666 [08:23:54]sum+1 = 148667 [08:23:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1486.66 НСП 1% : 13.16 НДС 12% : 157.87 Наличными: 0.00 Безнал.: 1486.66 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 29 26.10.2024 08:23 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871756 ФД: 201267 ФПД: 11267570062613 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T082357&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201267&fm=11267570062613&tin=02508201610067®Number=0000000000091777&sum=148666 [08:23:55]StoreToDocumentArchive [08:23:55]shift 543 fd 201267 [08:23:55]save to /storage/0543/doc_00201267 [08:23:55]save last doc name /storage/0543/doc_00201267 to /storage/kkm_last_doc_name [08:23:55]save OK [08:23:55]Clear old archive folders... [08:23:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:23:55]tlvbuf is 01762350 [08:23:55]SAM_PROTO_ClearQueue [08:23:55]wFMCommunicate request_size=4 [08:23:55]MH_SAM_APDU [08:23:55]CAPDU: 80 09 00 00 [08:23:55]Write to MH i2c: E2 08 00 C0 13 80 09 00 00 00 00 00 00 45 [08:23:55]Write i2c OK [08:23:55]MH_I2C_Read... [08:23:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:23:55]Read from MH i2c: E2 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 03 00 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 03 00 C0 13 00 90 00 47 [08:23:55]RAPDU: 90 00 [08:23:55]wFMCommunicate OK [08:23:55]SAM_PROTO_ClearQueue done [08:23:55]KKMCreateOFDPacket [08:23:55]OFDProtocolAddRootSTLVToBuf [08:23:55]FM_MakeSignedData [08:23:55]FM_MakeSignedData [08:23:55]SAM_PROTO_SignData [08:23:55]wFMCommunicate request_size=4 [08:23:55]MH_SAM_APDU [08:23:55]CAPDU: 80 0D 01 02 [08:23:55]Write to MH i2c: E2 08 00 C1 13 80 0D 01 02 00 00 00 00 4D [08:23:55]Write i2c OK [08:23:55]MH_I2C_Read... [08:23:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:23:55]Read from MH i2c: E2 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 03 00 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 03 00 C1 13 00 90 00 48 [08:23:55]RAPDU: 90 00 [08:23:55]wFMCommunicate OK [08:23:55]wFMCommunicate request_size=255 [08:23:55]MH_SAM_APDU [08:23: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 32 FF 03 08 00 03 36 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 BA 44 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BA 44 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 3D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BA 44 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 1D A7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 33 12 03 00 35 04 06 00 0A 3F 6F 82 [08:23:55]Write to MH i2c: E2 02 01 C2 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 32 FF 03 08 00 03 36 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 BA 44 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BA 44 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 3D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BA 44 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 1D A7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 33 12 03 00 35 04 06 00 0A 3F 6F 82 00 00 2A [08:23:55]Write i2c OK [08:23:55]MH_I2C_Read... [08:23:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:55]Read from MH i2c: E2 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 03 00 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 03 00 C2 13 00 90 00 49 [08:23:55]RAPDU: 90 00 [08:23:55]wFMCommunicate OK [08:23:55]wFMCommunicate request_size=7 [08:23:55]MH_SAM_APDU [08:23:55]CAPDU: 80 0D 02 02 02 D5 15 [08:23:55]Write to MH i2c: E2 0A 00 C3 13 80 0D 02 02 02 00 D5 15 00 00 3E [08:23:55]Write i2c OK [08:23:55]MH_I2C_Read... [08:23:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:55]Read from MH i2c: E2 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 03 00 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: E2 03 00 C3 13 00 90 00 4A [08:23:55]RAPDU: 90 00 [08:23:55]wFMCommunicate OK [08:23:55]wFMCommunicate request_size=4 [08:23:55]MH_SAM_APDU [08:23:55]CAPDU: 80 0D 03 02 [08:23:55]Write to MH i2c: E2 08 00 C4 13 80 0D 03 02 00 00 00 00 52 [08:23:55]Write i2c OK [08:23:55]MH_I2C_Read... [08:23:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:23:56]Read from MH i2c: E2 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: E2 0B 00 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: E2 0B 00 C4 13 00 D3 28 2B E1 AB 87 A5 19 90 00 4A [08:23:56]RAPDU: D3 28 2B E1 AB 87 A5 19 90 00 [08:23:56]wFMCommunicate OK [08:23:56]SAM_PROTO_SignData done [08:23:56]FM_MakeSignedData done [08:23:56]CreateOFDProtocolMessage [08:23:56]wFMCommunicate request_size=4 [08:23:56]MH_SAM_APDU [08:23:56]CAPDU: 80 11 00 00 [08:23:56]Write to MH i2c: E2 08 00 C5 13 80 11 00 00 00 00 00 00 52 [08:23:56]Write i2c OK [08:23:56]MH_I2C_Read... [08:23:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:56]Read from MH i2c: E2 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: E2 17 00 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: E2 17 00 C5 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A7 [08:23:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:23:56]wFMCommunicate OK [08:23:56]CreateOFDProtocolMessage done [08:23:56]OFDSenderStorePacket 201267 [08:23:56]StoreOFDPacket docnum=201267 [08:23:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 D8 C6 04 01 3A 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 36 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 BA 44 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BA 44 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 3D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BA 44 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 1D A7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 33 12 03 00 35 04 06 00 0A 3F 6F 82 D5 15 D3 28 2B E1 AB 87 A5 19 [08:23:56]CheckFolder [08:23:56]dirname=/storage/ofd_packets [08:23:56]CheckFolder done [08:23:56]ProducePacketName [08:23:56]name=ofd_packets/00201267 [08:23:56]NVStorageSaveData ofd_packets/00201267 [08:23:56]File name is /storage/ofd_packets/00201267 [08:23:56]Write 298 bytes [08:23:56]NVStorageSaveData done [08:23:56]OFDSenderStorePacket done [08:23:56]KKMCreateOFDPacket done [08:23:56]NVStorageSaveData kkm_last_timestamp [08:23:56]File name is /storage/kkm_last_timestamp [08:23:56]Write 4 bytes [08:23:56]NVStorageSaveData done [08:23:56]ExternCall_PrintAddStr [08:23:56]wPrintStart [08:23:56]Write to MH i2c: 01 00 00 C6 13 D9 [08:23:56]Write i2c OK [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: 01 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: 01 07 00 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: 01 07 00 C6 13 00 00 00 00 00 FF 0F EE [08:23:56]RasterBufferAndPrint [08:23:56]line Счет N : (1)449014 [08:23:56]line ИНН: 02508201610067 [08:23:56]line Контрольно-Кассовый Чек [08:23:56]line ПРОДАЖА [08:23:56]line ТРК (МРК, ГНК) : 11 [08:23:56]line Товар: 2710194210 [08:23:56]line ДТ-К-2 [08:23:56]line 19.510 * 76.20 [08:23:56]line = 1486.66 [08:23:56]line НДС 12% НСП 1% [08:23:56]line > о реализуемом товаре [08:23:56]line ИТОГО: 1486.66 [08:23:56]line НСП 1% : 13.16 [08:23:56]line НДС 12% : 157.87 [08:23:56]line Наличными: 0.00 [08:23:56]line Безнал.: 1486.66 [08:23:56]line Место: АЗС № 171 "Партнер Нефть" [08:23:56]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:23:56]line СНО: Общий режим [08:23:56]line Чек 29 26.10.2024 08:23 [08:23:56]line Смена: 543 ФФД: 1.0 [08:23:56]line ЗНМ: 0300000109 [08:23:56]line РНМ: 0000000000091777 [08:23:56]line Версия ККМ: 001 [08:23:56]line Платежная система: Бакай Банк [08:23:56]line ФМ: 0000000000871756 [08:23:56]line ФД: 201267 [08:23:56]line ФПД: 11267570062613 [08:23:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T082357&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201267&fm=11267570062613&tin=02508201610067®Number=0000000000091777&sum=148666 [08:23:56]OFD Sender: Processing packet 201267 [packets to send 112, broken 111] [08:23:56]ProducePacketName [08:23:56]name=ofd_packets/00201267 [08:23:56]OFD Sender: To server: pG, [08:23:56]CommunicateWithHost lk.salyk.kg:30040 [08:23:56]ConnectInit lk.salyk.kg [08:23:56]written 0, free lines is 4095 [08:23:56]Connected sock=10 [08:23:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 D8 C6 04 01 3A 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 36 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 BA 44 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BA 44 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 3D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BA 44 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 1D A7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 33 12 03 00 35 04 06 00 0A 3F 6F 82 D5 15 D3 28 2B E1 AB 87 A5 19 [08:23:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D2 0F 47 00 76 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 33 12 03 00 F4 03 04 00 C7 52 1C 67 B6 04 01 00 00 CF 99 48 F5 FA 7E D7 B5 [08:23:56]CommunicateWithHost err = 0 [08:23:56]CheckOFDResponse [08:23:56]1017 (14) - 77093643461234 [08:23:56]1041 (16) - 0000000000871756 [08:23:56]1040 (4) - 201267 [08:23:56]1012 (4) - 26.10.2024 02:24 [08:23:56]1206 (1) - 0 [08:23:56]OFD Sender: Remove packet 201267 [08:23:56]ProducePacketName [08:23:56]name=ofd_packets/00201267 [08:23:56]NVStorageDeleteData [08:23:56]Write to MH i2c: 01 00 00 F0 13 03 [08:23:56]Write i2c OK [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: 01 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: 01 07 00 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: 01 07 00 F0 13 00 00 00 00 00 A1 0C B7 [08:23:56]RasterBufferAndPrint [08:23:56]line [08:23:56]line [08:23:56]line [08:23:56]line [08:23:56]line [08:23:56]written 0, free lines is 3239 [08:23:56]MH_Cut [08:23:56]Write to MH i2c: D1 01 00 F7 13 01 DC [08:23:56]Write i2c OK [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: D1 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: D1 01 00 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: D1 01 00 F7 13 00 DB [08:23:56]Write to MH i2c: 01 00 00 F8 13 0B [08:23:56]Write i2c OK [08:23:56]MH_I2C_Read... [08:23:57]OFD Sender: No OFD packet to send [08:23:57]*** Cut start [08:23:57]*** Purtial cut [08:23:57]*** Stage 1: CUTSNS_PIN = 1 [08:23:57]Read from MH i2c: 01 [08:23:57]MH_I2C_Read... [08:23:57]*** Stop cut motor [08:23:57]*** Cut end [08:23:57]Read from MH i2c: 01 07 00 [08:23:57]MH_I2C_Read... [08:23:57]Read from MH i2c: 01 07 00 F8 13 00 00 00 00 00 FF 0F 20 [08:23:57]process_action close_receipt done [08:23:57]requested_data is exist [08:23:57]produce_requested_data [08:23:57]requested_item fm.sn is exist - process it [08:23:57]wFMCommunicate request_size=4 [08:23:57]MH_SAM_APDU [08:23:57]CAPDU: 80 11 00 00 [08:23:57]Write to MH i2c: E2 08 00 F9 13 80 11 00 00 00 00 00 00 86 [08:23:57]Write i2c OK [08:23:57]MH_I2C_Read... [08:23:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:58]Read from MH i2c: E2 [08:23:58]MH_I2C_Read... [08:23:58]Read from MH i2c: E2 17 00 [08:23:58]MH_I2C_Read... [08:23:58]Read from MH i2c: E2 17 00 F9 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DB [08:23:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:23:58]wFMCommunicate OK [08:23:58]requested_item fd.num is exist - process it [08:23:58]SAM_PROTO_GetFieldsCounters [08:23:58]wFMCommunicate request_size=4 [08:23:58]MH_SAM_APDU [08:23:58]CAPDU: 80 13 00 00 [08:23:58]Write to MH i2c: E2 08 00 FA 13 80 13 00 00 00 00 00 00 89 [08:23:58]Write i2c OK [08:23:58]MH_I2C_Read... [08:23:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:58]Read from MH i2c: E2 [08:23:58]MH_I2C_Read... [08:23:58]Read from MH i2c: E2 62 00 [08:23:58]MH_I2C_Read... [08:23:58]Read from MH i2c: E2 62 00 FA 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 33 12 03 00 0E 04 04 00 1F 02 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 72 [08:23:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 33 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:23:58]wFMCommunicate OK [08:23:58]SAM_PROTO_GetFieldsCounters done [08:23:58]requested_item shift.num is exist - process it [08:23:58]requested_item shift.opened is exist - process it [08:23:58]req_shift_opened [08:23:58]FM_GetShiftState [08:23:58]SAM_PROTO_GetShiftState [08:23:58]wFMCommunicate request_size=4 [08:23:58]MH_SAM_APDU [08:23:58]CAPDU: 80 13 01 00 [08:23:58]Write to MH i2c: E2 08 00 FB 13 80 13 01 00 00 00 00 00 8B [08:23:58]Write i2c OK [08:23:58]MH_I2C_Read... [08:23:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:58]Read from MH i2c: E2 [08:23:58]MH_I2C_Read... [08:23:58]Read from MH i2c: E2 0E 00 [08:23:58]MH_I2C_Read... [08:23:58]Read from MH i2c: E2 0E 00 FB 13 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 9A [08:23:58]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:23:58]wFMCommunicate OK [08:23:58]SAM_PROTO_GetShiftState done [08:23:58]FM_GetShiftState done [08:23:58]req_shift_opened done [08:23:58]requested_item shift.open_date is exist - process it [08:23:58]req_shift_open_date [08:23:58]req_shift_open_date done [08:23:58]produce_requested_data done [08:23:58]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201267,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [08:23:58]process_action_free close_receipt [08:23:58]json_value_free [08:23:58]json_value_free done [08:23:58]process_json_proto returns [08:23:58]Send response to host [08:23:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201267,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [08:23:58]free response buf [08:23:58]execute_script done [08:23:58]execute_script returns [08:23:58]free content buf [08:23:58]Sock 7.Close socket [08:23:58]Sock 7.Thread stoped [08:24:02]OFD Sender: No OFD packet to send [08:24:07]OFD Sender: No OFD packet to send [08:24:12]OFD Sender: No OFD packet to send [08:24:17]OFD Sender: No OFD packet to send [08:24:22]OFD Sender: No OFD packet to send [08:24:24]accept exits with 9 [08:24:24]New connection [08:24:24]New thread 3067415908 created [08:24:24]Thread 3067559268 joined [08:24:24]Waiting for new connection... [08:24:24] Sock 9.Parse request [08:24:24]Sock 9.Check first char [08:24:24]Sock 9.First char is OK [08:24:24]request: POST /json_proto HTTP/1.0 [08:24:24]Method: POST [08:24:24]URL: /json_proto [08:24:24]Method is POST - this is cgi request [08:24:24]url: /json_proto [08:24:24]query_string will be loaded in cgi processing [08:24:24]execute_cgi json_proto POST (null) [08:24:24]execute_cgi path=json_proto method=POST [08:24:24]POST find Content-Length [08:24:24]Host: 172.17.63.195:8080 [08:24:24]Content-Length: 677 [08:24:24]Content-Type: application/json [08:24:24] [08:24:24]POST finish read [08:24:24]Found Content-Length = 677 [08:24:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:24:24]execute_script... [08:24: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)449015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:24:24]POST & json_proto [08:24:24]process_json_proto [08:24:24]json parsed OK: [08:24:24]protocol is kg_v1.0 [08:24:24]action value=close_receipt [08:24:24]process_action close_receipt [08:24:24]cmd_close_receipt [08:24:24]MH_GetDate [08:24:24]Write to MH i2c: F0 00 00 FC 13 FE [08:24:24]Write i2c OK [08:24:24]MH_I2C_Read... [08:24:24]Read from MH i2c: F0 [08:24:24]MH_I2C_Read... [08:24:24]Read from MH i2c: F0 09 00 [08:24:24]MH_I2C_Read... [08:24:24]Read from MH i2c: F0 09 00 FC 13 00 3C A7 1C 67 68 46 19 67 9B [08:24:24]GetLastDocTimeStamp 1729931037 [08:24:24]current date 1729931068 [08:24:24]FM_GetShiftState [08:24:24]SAM_PROTO_GetShiftState [08:24:24]wFMCommunicate request_size=4 [08:24:24]MH_SAM_APDU [08:24:24]CAPDU: 80 13 01 00 [08:24:24]Write to MH i2c: E2 08 00 FD 13 80 13 01 00 00 00 00 00 8D [08:24:24]Write i2c OK [08:24:24]MH_I2C_Read... [08:24:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:24]Read from MH i2c: E2 [08:24:24]MH_I2C_Read... [08:24:24]Read from MH i2c: E2 0E 00 [08:24:24]MH_I2C_Read... [08:24:24]Read from MH i2c: E2 0E 00 FD 13 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 9C [08:24:24]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:24:24]wFMCommunicate OK [08:24:24]SAM_PROTO_GetShiftState done [08:24:24]FM_GetShiftState done [08:24:24]opened in 1729900879 [08:24:24]opened+sec_in_day 1729987279 [08:24:24]quantity*price = 30038 [08:24:24]sum+1 = 30039 [08:24:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 30 26.10.2024 08:24 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201268 ФПД: 24003934865636 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T082428&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201268&fm=24003934865636&tin=02508201610067®Number=0000000000091777&sum=30000 [08:24:25]StoreToDocumentArchive [08:24:25]shift 543 fd 201268 [08:24:25]save to /storage/0543/doc_00201268 [08:24:25]save last doc name /storage/0543/doc_00201268 to /storage/kkm_last_doc_name [08:24:25]save OK [08:24:25]Clear old archive folders... [08:24:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:24:25]tlvbuf is 0174E8D0 [08:24:25]SAM_PROTO_ClearQueue [08:24:25]wFMCommunicate request_size=4 [08:24:25]MH_SAM_APDU [08:24:25]CAPDU: 80 09 00 00 [08:24:25]Write to MH i2c: E2 08 00 0A 14 80 09 00 00 00 00 00 00 90 [08:24:25]Write i2c OK [08:24:25]MH_I2C_Read... [08:24:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:24:26]Read from MH i2c: E2 [08:24:26]MH_I2C_Read... [08:24:26]Read from MH i2c: E2 03 00 [08:24:26]MH_I2C_Read... [08:24:26]Read from MH i2c: E2 03 00 0A 14 00 90 00 92 [08:24:26]RAPDU: 90 00 [08:24:26]wFMCommunicate OK [08:24:26]SAM_PROTO_ClearQueue done [08:24:26]KKMCreateOFDPacket [08:24:26]OFDProtocolAddRootSTLVToBuf [08:24:26]FM_MakeSignedData [08:24:26]FM_MakeSignedData [08:24:26]SAM_PROTO_SignData [08:24:26]wFMCommunicate request_size=4 [08:24:26]MH_SAM_APDU [08:24:26]CAPDU: 80 0D 01 02 [08:24:26]Write to MH i2c: E2 08 00 0B 14 80 0D 01 02 00 00 00 00 98 [08:24:26]Write i2c OK [08:24:26]MH_I2C_Read... [08:24:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:24:26]Read from MH i2c: E2 [08:24:26]MH_I2C_Read... [08:24:26]Read from MH i2c: E2 03 00 [08:24:26]MH_I2C_Read... [08:24:26]Read from MH i2c: E2 03 00 0B 14 00 90 00 93 [08:24:26]RAPDU: 90 00 [08:24:26]wFMCommunicate OK [08:24:26]wFMCommunicate request_size=255 [08:24:26]MH_SAM_APDU [08:24:26]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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 3C A7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 34 12 03 00 35 04 06 00 15 [08:24:26]Write to MH i2c: E2 02 01 0C 14 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 3C A7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 34 12 03 00 35 04 06 00 15 00 00 23 [08:24:26]Write i2c OK [08:24:26]MH_I2C_Read... [08:24:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:26]Read from MH i2c: E2 [08:24:26]MH_I2C_Read... [08:24:26]Read from MH i2c: E2 03 00 [08:24:26]MH_I2C_Read... [08:24:26]Read from MH i2c: E2 03 00 0C 14 00 90 00 94 [08:24:26]RAPDU: 90 00 [08:24:26]wFMCommunicate OK [08:24:26]wFMCommunicate request_size=10 [08:24:26]MH_SAM_APDU [08:24:26]CAPDU: 80 0D 02 02 05 D4 DA 02 C8 E4 [08:24:26]Write to MH i2c: E2 0D 00 0D 14 80 0D 02 02 05 00 D4 DA 02 C8 E4 00 00 01 [08:24:26]Write i2c OK [08:24:26]MH_I2C_Read... [08:24:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:26]Read from MH i2c: E2 [08:24:26]MH_I2C_Read... [08:24:26]Read from MH i2c: E2 03 00 [08:24:26]MH_I2C_Read... [08:24:26]Read from MH i2c: E2 03 00 0D 14 00 90 00 95 [08:24:26]RAPDU: 90 00 [08:24:26]wFMCommunicate OK [08:24:26]wFMCommunicate request_size=4 [08:24:26]MH_SAM_APDU [08:24:26]CAPDU: 80 0D 03 02 [08:24:26]Write to MH i2c: E2 08 00 0E 14 80 0D 03 02 00 00 00 00 9D [08:24:26]Write i2c OK [08:24:26]MH_I2C_Read... [08:24:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:24:26]Read from MH i2c: E2 [08:24:26]MH_I2C_Read... [08:24:26]Read from MH i2c: E2 0B 00 [08:24:26]MH_I2C_Read... [08:24:26]Read from MH i2c: E2 0B 00 0E 14 00 BD 89 DC 63 27 DC 2C 9C 90 00 EE [08:24:26]RAPDU: BD 89 DC 63 27 DC 2C 9C 90 00 [08:24:26]wFMCommunicate OK [08:24:26]SAM_PROTO_SignData done [08:24:26]FM_MakeSignedData done [08:24:26]CreateOFDProtocolMessage [08:24:26]wFMCommunicate request_size=4 [08:24:26]MH_SAM_APDU [08:24:26]CAPDU: 80 11 00 00 [08:24:26]Write to MH i2c: E2 08 00 0F 14 80 11 00 00 00 00 00 00 9D [08:24:26]Write i2c OK [08:24:26]MH_I2C_Read... [08:24:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:26]Read from MH i2c: E2 [08:24:26]MH_I2C_Read... [08:24:26]Read from MH i2c: E2 17 00 [08:24:26]MH_I2C_Read... [08:24:26]Read from MH i2c: E2 17 00 0F 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F2 [08:24:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:24:26]wFMCommunicate OK [08:24:26]CreateOFDProtocolMessage done [08:24:26]OFDSenderStorePacket 201268 [08:24:26]StoreOFDPacket docnum=201268 [08:24:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C6 88 07 01 FE 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 3C A7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 34 12 03 00 35 04 06 00 15 D4 DA 02 C8 E4 BD 89 DC 63 27 DC 2C 9C [08:24:26]CheckFolder [08:24:26]dirname=/storage/ofd_packets [08:24:26]CheckFolder done [08:24:26]ProducePacketName [08:24:26]name=ofd_packets/00201268 [08:24:26]NVStorageSaveData ofd_packets/00201268 [08:24:26]File name is /storage/ofd_packets/00201268 [08:24:26]Write 301 bytes [08:24:26]NVStorageSaveData done [08:24:26]OFDSenderStorePacket done [08:24:26]KKMCreateOFDPacket done [08:24:26]NVStorageSaveData kkm_last_timestamp [08:24:26]File name is /storage/kkm_last_timestamp [08:24:26]Write 4 bytes [08:24:26]NVStorageSaveData done [08:24:26]ExternCall_PrintAddStr [08:24:26]wPrintStart [08:24:26]Write to MH i2c: 01 00 00 10 14 24 [08:24:26]Write i2c OK [08:24:26]MH_I2C_Read... [08:24:26]Read from MH i2c: 01 [08:24:26]MH_I2C_Read... [08:24:26]Read from MH i2c: 01 07 00 [08:24:26]MH_I2C_Read... [08:24:26]Read from MH i2c: 01 07 00 10 14 00 00 00 00 00 FF 0F 39 [08:24:26]RasterBufferAndPrint [08:24:26]line Счет N : (1)449015 [08:24:26]line ИНН: 02508201610067 [08:24:26]line Контрольно-Кассовый Чек [08:24:26]line ПРОДАЖА [08:24:26]line ТРК (МРК, ГНК) : 52 [08:24:26]line Товар: 2710124130 [08:24:26]line Аи-92-К-2 [08:24:26]line 4.490 * 66.90 [08:24:26]line = 300.38 [08:24:26]line НДС 12% НСП 1% [08:24:26]line > о реализуемом товаре [08:24:26]line ОКРУГЛЕНИЕ: -0.38 [08:24:26]line ИТОГО: 300.00 [08:24:26]line Внесено: 300.00 [08:24:26]line СДАЧА: 0.00 [08:24:26]line НСП 1% : 2.66 [08:24:26]line НДС 12% : 31.90 [08:24:26]line Наличными: 300.00 [08:24:26]line Безнал.: 0.00 [08:24:26]line Место: АЗС № 171 "Партнер Нефть" [08:24:26]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:24:26]line СНО: Общий режим [08:24:26]line Чек 30 26.10.2024 08:24 [08:24:26]line Смена: 543 ФФД: 1.0 [08:24:26]line ЗНМ: 0300000109 [08:24:26]line РНМ: 0000000000091777 [08:24:26]line Версия ККМ: 001 [08:24:26]line ФМ: 0000000000871756 [08:24:26]line ФД: 201268 [08:24:26]line ФПД: 24003934865636 [08:24:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T082428&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201268&fm=24003934865636&tin=02508201610067®Number=0000000000091777&sum=30000 [08:24:26]OFD Sender: Processing packet 201268 [packets to send 112, broken 111] [08:24:26]ProducePacketName [08:24:26]name=ofd_packets/00201268 [08:24:26]OFD Sender: To server: pG, [08:24:26]CommunicateWithHost lk.salyk.kg:30040 [08:24:26]ConnectInit lk.salyk.kg [08:24:26]written 0, free lines is 4095 [08:24:26]Connected sock=10 [08:24:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C6 88 07 01 FE 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 3C A7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 34 12 03 00 35 04 06 00 15 D4 DA 02 C8 E4 BD 89 DC 63 27 DC 2C 9C [08:24:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 8F B9 47 00 E0 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 38 37 31 37 35 36 10 04 04 00 34 12 03 00 F4 03 04 00 E5 52 1C 67 B6 04 01 00 00 14 24 91 AE F2 27 44 80 [08:24:27]CommunicateWithHost err = 0 [08:24:27]CheckOFDResponse [08:24:27]1017 (14) - 77093643461234 [08:24:27]1041 (16) - 0000000000871756 [08:24:27]1040 (4) - 201268 [08:24:27]1012 (4) - 26.10.2024 02:24 [08:24:27]1206 (1) - 0 [08:24:27]OFD Sender: Remove packet 201268 [08:24:27]ProducePacketName [08:24:27]name=ofd_packets/00201268 [08:24:27]NVStorageDeleteData [08:24:27]Write to MH i2c: 01 00 00 3B 14 4F [08:24:27]Write i2c OK [08:24:27]MH_I2C_Read... [08:24:27]Read from MH i2c: 01 [08:24:27]MH_I2C_Read... [08:24:27]Read from MH i2c: 01 07 00 [08:24:27]MH_I2C_Read... [08:24:27]Read from MH i2c: 01 07 00 3B 14 00 00 00 00 00 94 0C F6 [08:24:27]RasterBufferAndPrint [08:24:27]line [08:24:27]line [08:24:27]line [08:24:27]line [08:24:27]line [08:24:27]written 0, free lines is 3227 [08:24:27]MH_Cut [08:24:27]Write to MH i2c: D1 01 00 42 14 01 28 [08:24:27]Write i2c OK [08:24:27]MH_I2C_Read... [08:24:27]Read from MH i2c: D1 [08:24:27]MH_I2C_Read... [08:24:27]Read from MH i2c: D1 01 00 [08:24:27]MH_I2C_Read... [08:24:27]Read from MH i2c: D1 01 00 42 14 00 27 [08:24:27]Write to MH i2c: 01 00 00 43 14 57 [08:24:27]Write i2c OK [08:24:27]MH_I2C_Read... [08:24:27]OFD Sender: No OFD packet to send [08:24:28]*** Cut start [08:24:28]*** Purtial cut [08:24:28]*** Stage 1: CUTSNS_PIN = 1 [08:24:28]Read from MH i2c: 01 [08:24:28]MH_I2C_Read... [08:24:28]*** Stop cut motor [08:24:28]*** Cut end [08:24:28]Read from MH i2c: 01 07 00 [08:24:28]MH_I2C_Read... [08:24:28]Read from MH i2c: 01 07 00 43 14 00 00 00 00 00 FF 0F 6C [08:24:28]process_action close_receipt done [08:24:28]requested_data is exist [08:24:28]produce_requested_data [08:24:28]requested_item fm.sn is exist - process it [08:24:28]wFMCommunicate request_size=4 [08:24:28]MH_SAM_APDU [08:24:28]CAPDU: 80 11 00 00 [08:24:28]Write to MH i2c: E2 08 00 44 14 80 11 00 00 00 00 00 00 D2 [08:24:28]Write i2c OK [08:24:28]MH_I2C_Read... [08:24:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:28]Read from MH i2c: E2 [08:24:28]MH_I2C_Read... [08:24:28]Read from MH i2c: E2 17 00 [08:24:28]MH_I2C_Read... [08:24:28]Read from MH i2c: E2 17 00 44 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 27 [08:24:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:24:28]wFMCommunicate OK [08:24:28]requested_item fd.num is exist - process it [08:24:28]SAM_PROTO_GetFieldsCounters [08:24:28]wFMCommunicate request_size=4 [08:24:28]MH_SAM_APDU [08:24:28]CAPDU: 80 13 00 00 [08:24:28]Write to MH i2c: E2 08 00 45 14 80 13 00 00 00 00 00 00 D5 [08:24:28]Write i2c OK [08:24:28]MH_I2C_Read... [08:24:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:24:28]Read from MH i2c: E2 [08:24:28]MH_I2C_Read... [08:24:28]Read from MH i2c: E2 62 00 [08:24:28]MH_I2C_Read... [08:24:28]Read from MH i2c: E2 62 00 45 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 34 12 03 00 0E 04 04 00 1F 02 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 C2 [08:24:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 34 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:24:28]wFMCommunicate OK [08:24:28]SAM_PROTO_GetFieldsCounters done [08:24:28]requested_item shift.num is exist - process it [08:24:28]requested_item shift.opened is exist - process it [08:24:28]req_shift_opened [08:24:28]FM_GetShiftState [08:24:28]SAM_PROTO_GetShiftState [08:24:28]wFMCommunicate request_size=4 [08:24:28]MH_SAM_APDU [08:24:28]CAPDU: 80 13 01 00 [08:24:28]Write to MH i2c: E2 08 00 46 14 80 13 01 00 00 00 00 00 D7 [08:24:28]Write i2c OK [08:24:28]MH_I2C_Read... [08:24:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:28]Read from MH i2c: E2 [08:24:28]MH_I2C_Read... [08:24:28]Read from MH i2c: E2 0E 00 [08:24:28]MH_I2C_Read... [08:24:28]Read from MH i2c: E2 0E 00 46 14 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E6 [08:24:28]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:24:28]wFMCommunicate OK [08:24:28]SAM_PROTO_GetShiftState done [08:24:28]FM_GetShiftState done [08:24:28]req_shift_opened done [08:24:28]requested_item shift.open_date is exist - process it [08:24:28]req_shift_open_date [08:24:28]req_shift_open_date done [08:24:28]produce_requested_data done [08:24:28]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201268,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [08:24:28]process_action_free close_receipt [08:24:28]json_value_free [08:24:28]json_value_free done [08:24:28]process_json_proto returns [08:24:28]Send response to host [08:24:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201268,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [08:24:28]free response buf [08:24:28]execute_script done [08:24:28]execute_script returns [08:24:28]free content buf [08:24:28]Sock 9.Close socket [08:24:28]Sock 9.Thread stoped [08:24:32]OFD Sender: No OFD packet to send [08:24:37]OFD Sender: No OFD packet to send [08:24:42]int [08:24:42]Write to MH i2c: 01 00 00 47 14 5B [08:24:42]*** FLAG_PRN_KEY set [08:24:42]Write i2c OK [08:24:42]MH_I2C_Read... [08:24:42]Read from MH i2c: 01 [08:24:42]MH_I2C_Read... [08:24:42]Read from MH i2c: 01 07 00 [08:24:42]MH_I2C_Read... [08:24:42]Read from MH i2c: 01 07 00 47 14 00 08 00 00 00 FF 0F 78 [08:24:42]state=0 [08:24:42]Key pressed [08:24:42]Feed [08:24:42]Write to MH i2c: D8 00 00 48 14 33 [08:24:42]Write i2c OK [08:24:42]MH_I2C_Read... [08:24:42]Read from MH i2c: D8 [08:24:42]MH_I2C_Read... [08:24:42]Read from MH i2c: D8 01 00 [08:24:42]MH_I2C_Read... [08:24:42]Read from MH i2c: D8 01 00 48 14 00 34 [08:24:42]int [08:24:42]Write to MH i2c: 01 00 00 49 14 5D [08:24:42]Write i2c OK [08:24:42]MH_I2C_Read... [08:24:42]Read from MH i2c: 01 [08:24:42]MH_I2C_Read... [08:24:42]Read from MH i2c: 01 07 00 [08:24:42]MH_I2C_Read... [08:24:42]Read from MH i2c: 01 07 00 49 14 00 48 00 00 00 3C 00 E8 [08:24:42]state=2 [08:24:42]Key pressed [08:24:42]int [08:24:42]Write to MH i2c: 01 00 00 4A 14 5E [08:24:42]*** FLAG_PRN_KEY reset [08:24:42]Write i2c OK [08:24:42]MH_I2C_Read... [08:24:42]Read from MH i2c: 01 [08:24:42]MH_I2C_Read... [08:24:42]Read from MH i2c: 01 07 00 [08:24:42]MH_I2C_Read... [08:24:42]Read from MH i2c: 01 07 00 4A 14 00 00 00 00 00 F6 0F 6A [08:24:42]state=2 [08:24:42]Stop feed [08:24:42]OFD Sender: No OFD packet to send [08:24:47]OFD Sender: No OFD packet to send [08:24:52]OFD Sender: No OFD packet to send [08:24:57]OFD Sender: No OFD packet to send [08:25:02]OFD Sender: No OFD packet to send [08:25:07]OFD Sender: No OFD packet to send [08:25:12]OFD Sender: No OFD packet to send [08:25:17]OFD Sender: No OFD packet to send [08:25:22]OFD Sender: No OFD packet to send [08:25:27]OFD Sender: No OFD packet to send [08:25:32]OFD Sender: No OFD packet to send [08:25:37]OFD Sender: No OFD packet to send [08:25:42]OFD Sender: No OFD packet to send [08:25:47]OFD Sender: No OFD packet to send [08:25:52]OFD Sender: No OFD packet to send [08:25:57]OFD Sender: No OFD packet to send [08:26:02]OFD Sender: No OFD packet to send [08:26:07]OFD Sender: No OFD packet to send [08:26:12]OFD Sender: No OFD packet to send [08:26:17]OFD Sender: No OFD packet to send [08:26:22]OFD Sender: No OFD packet to send [08:26:27]OFD Sender: No OFD packet to send [08:26:32]OFD Sender: No OFD packet to send [08:26:37]OFD Sender: No OFD packet to send [08:26:42]OFD Sender: No OFD packet to send [08:26:47]OFD Sender: No OFD packet to send [08:26:52]OFD Sender: No OFD packet to send [08:26:57]OFD Sender: No OFD packet to send [08:27:02]OFD Sender: No OFD packet to send [08:27:07]OFD Sender: No OFD packet to send [08:27:12]OFD Sender: No OFD packet to send [08:27:17]OFD Sender: No OFD packet to send [08:27:22]OFD Sender: No OFD packet to send [08:27:27]OFD Sender: No OFD packet to send [08:27:32]OFD Sender: No OFD packet to send [08:27:37]OFD Sender: No OFD packet to send [08:27:42]OFD Sender: No OFD packet to send [08:27:47]OFD Sender: No OFD packet to send [08:27:52]OFD Sender: No OFD packet to send [08:27:57]OFD Sender: No OFD packet to send [08:28:02]OFD Sender: No OFD packet to send [08:28:07]OFD Sender: No OFD packet to send [08:28:12]OFD Sender: No OFD packet to send [08:28:17]OFD Sender: No OFD packet to send [08:28:22]OFD Sender: No OFD packet to send [08:28:27]OFD Sender: No OFD packet to send [08:28:32]OFD Sender: No OFD packet to send [08:28:37]OFD Sender: No OFD packet to send [08:28:42]OFD Sender: No OFD packet to send [08:28:47]OFD Sender: No OFD packet to send [08:28:52]OFD Sender: No OFD packet to send [08:28:57]OFD Sender: No OFD packet to send [08:29:03]OFD Sender: No OFD packet to send [08:29:08]OFD Sender: No OFD packet to send [08:29:13]OFD Sender: No OFD packet to send [08:29:18]OFD Sender: No OFD packet to send [08:29:23]OFD Sender: No OFD packet to send [08:29:28]OFD Sender: No OFD packet to send [08:29:33]OFD Sender: No OFD packet to send [08:29:38]OFD Sender: No OFD packet to send [08:29:43]OFD Sender: No OFD packet to send [08:29:48]OFD Sender: No OFD packet to send [08:29:53]OFD Sender: No OFD packet to send [08:29:58]OFD Sender: No OFD packet to send [08:30:03]OFD Sender: No OFD packet to send [08:30:08]OFD Sender: No OFD packet to send [08:30:13]OFD Sender: No OFD packet to send [08:30:18]OFD Sender: No OFD packet to send [08:30:23]OFD Sender: No OFD packet to send [08:30:28]OFD Sender: No OFD packet to send [08:30:33]OFD Sender: No OFD packet to send [08:30:38]OFD Sender: No OFD packet to send [08:30:43]OFD Sender: No OFD packet to send [08:30:48]OFD Sender: No OFD packet to send [08:30:53]OFD Sender: No OFD packet to send [08:30:58]OFD Sender: No OFD packet to send [08:31:03]OFD Sender: No OFD packet to send [08:31:08]OFD Sender: No OFD packet to send [08:31:13]OFD Sender: No OFD packet to send [08:31:18]OFD Sender: No OFD packet to send [08:31:23]OFD Sender: No OFD packet to send [08:31:28]OFD Sender: No OFD packet to send [08:31:33]OFD Sender: No OFD packet to send [08:31:38]OFD Sender: No OFD packet to send [08:31:43]OFD Sender: No OFD packet to send [08:31:48]OFD Sender: No OFD packet to send [08:31:53]OFD Sender: No OFD packet to send [08:31:58]OFD Sender: No OFD packet to send [08:32:03]OFD Sender: No OFD packet to send [08:32:08]OFD Sender: No OFD packet to send [08:32:13]OFD Sender: No OFD packet to send [08:32:15]accept exits with 7 [08:32:15]New connection [08:32:15]New thread 3067559268 created [08:32:15]Thread 3067415908 joined [08:32:15]Waiting for new connection... [08:32:15] Sock 7.Parse request [08:32:15]Sock 7.Check first char [08:32:15]Sock 7.First char is OK [08:32:15]request: POST /json_proto HTTP/1.0 [08:32:15]Method: POST [08:32:15]URL: /json_proto [08:32:15]Method is POST - this is cgi request [08:32:15]url: /json_proto [08:32:15]query_string will be loaded in cgi processing [08:32:15]execute_cgi json_proto POST (null) [08:32:15]execute_cgi path=json_proto method=POST [08:32:15]POST find Content-Length [08:32:15]Host: 172.17.63.195:8080 [08:32:15]Content-Length: 677 [08:32:15]Content-Type: application/json [08:32:15] [08:32:15]POST finish read [08:32:15]Found Content-Length = 677 [08:32:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:32:15]execute_script... [08:32: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)449016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:32:15]POST & json_proto [08:32:15]process_json_proto [08:32:15]json parsed OK: [08:32:15]protocol is kg_v1.0 [08:32:15]action value=close_receipt [08:32:15]process_action close_receipt [08:32:15]cmd_close_receipt [08:32:15]MH_GetDate [08:32:15]Write to MH i2c: F0 00 00 4B 14 4E [08:32:15]Write i2c OK [08:32:15]MH_I2C_Read... [08:32:15]Read from MH i2c: F0 [08:32:15]MH_I2C_Read... [08:32:15]Read from MH i2c: F0 09 00 [08:32:15]MH_I2C_Read... [08:32:15]Read from MH i2c: F0 09 00 4B 14 00 13 A9 1C 67 68 46 19 67 C4 [08:32:15]GetLastDocTimeStamp 1729931068 [08:32:15]current date 1729931539 [08:32:15]FM_GetShiftState [08:32:15]SAM_PROTO_GetShiftState [08:32:15]wFMCommunicate request_size=4 [08:32:15]MH_SAM_APDU [08:32:15]CAPDU: 80 13 01 00 [08:32:15]Write to MH i2c: E2 08 00 4C 14 80 13 01 00 00 00 00 00 DD [08:32:15]Write i2c OK [08:32:15]MH_I2C_Read... [08:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:15]Read from MH i2c: E2 [08:32:15]MH_I2C_Read... [08:32:15]Read from MH i2c: E2 0E 00 [08:32:15]MH_I2C_Read... [08:32:15]Read from MH i2c: E2 0E 00 4C 14 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 EC [08:32:15]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:32:15]wFMCommunicate OK [08:32:15]SAM_PROTO_GetShiftState done [08:32:15]FM_GetShiftState done [08:32:15]opened in 1729900879 [08:32:15]opened+sec_in_day 1729987279 [08:32:15]quantity*price = 50041 [08:32:15]sum+1 = 50042 [08:32:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 31 26.10.2024 08:32 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201269 ФПД: 53435134692317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T083219&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201269&fm=53435134692317&tin=02508201610067®Number=0000000000091777&sum=50000 [08:32:16]StoreToDocumentArchive [08:32:16]shift 543 fd 201269 [08:32:16]save to /storage/0543/doc_00201269 [08:32:16]save last doc name /storage/0543/doc_00201269 to /storage/kkm_last_doc_name [08:32:16]save OK [08:32:16]Clear old archive folders... [08:32:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:32:16]tlvbuf is 0172DF00 [08:32:16]SAM_PROTO_ClearQueue [08:32:16]wFMCommunicate request_size=4 [08:32:16]MH_SAM_APDU [08:32:16]CAPDU: 80 09 00 00 [08:32:16]Write to MH i2c: E2 08 00 59 14 80 09 00 00 00 00 00 00 DF [08:32:16]Write i2c OK [08:32:16]MH_I2C_Read... [08:32:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:32:16]Read from MH i2c: E2 [08:32:16]MH_I2C_Read... [08:32:16]Read from MH i2c: E2 03 00 [08:32:16]MH_I2C_Read... [08:32:16]Read from MH i2c: E2 03 00 59 14 00 90 00 E1 [08:32:16]RAPDU: 90 00 [08:32:16]wFMCommunicate OK [08:32:16]SAM_PROTO_ClearQueue done [08:32:16]KKMCreateOFDPacket [08:32:16]OFDProtocolAddRootSTLVToBuf [08:32:16]FM_MakeSignedData [08:32:16]FM_MakeSignedData [08:32:16]SAM_PROTO_SignData [08:32:16]wFMCommunicate request_size=4 [08:32:16]MH_SAM_APDU [08:32:16]CAPDU: 80 0D 01 02 [08:32:16]Write to MH i2c: E2 08 00 5A 14 80 0D 01 02 00 00 00 00 E7 [08:32:16]Write i2c OK [08:32:16]MH_I2C_Read... [08:32:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:32:16]Read from MH i2c: E2 [08:32:16]MH_I2C_Read... [08:32:16]Read from MH i2c: E2 03 00 [08:32:16]MH_I2C_Read... [08:32:16]Read from MH i2c: E2 03 00 5A 14 00 90 00 E2 [08:32:16]RAPDU: 90 00 [08:32:16]wFMCommunicate OK [08:32:16]wFMCommunicate request_size=255 [08:32:16]MH_SAM_APDU [08:32:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 1F 00 00 00 F4 03 04 00 13 A9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 35 12 03 00 35 04 06 00 30 [08:32:16]Write to MH i2c: E2 02 01 5B 14 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 32 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 1F 00 00 00 F4 03 04 00 13 A9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 35 12 03 00 35 04 06 00 30 00 00 74 [08:32:16]Write i2c OK [08:32:16]MH_I2C_Read... [08:32:17]Read from MH i2c: E2 [08:32:17]MH_I2C_Read... [08:32:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:17]Read from MH i2c: E2 03 00 [08:32:17]MH_I2C_Read... [08:32:17]Read from MH i2c: E2 03 00 5B 14 00 90 00 E3 [08:32:17]RAPDU: 90 00 [08:32:17]wFMCommunicate OK [08:32:17]wFMCommunicate request_size=10 [08:32:17]MH_SAM_APDU [08:32:17]CAPDU: 80 0D 02 02 05 99 56 38 CB DD [08:32:17]Write to MH i2c: E2 0D 00 5C 14 80 0D 02 02 05 00 99 56 38 CB DD 00 00 C3 [08:32:17]Write i2c OK [08:32:17]MH_I2C_Read... [08:32:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:17]Read from MH i2c: E2 [08:32:17]MH_I2C_Read... [08:32:17]Read from MH i2c: E2 03 00 [08:32:17]MH_I2C_Read... [08:32:17]Read from MH i2c: E2 03 00 5C 14 00 90 00 E4 [08:32:17]RAPDU: 90 00 [08:32:17]wFMCommunicate OK [08:32:17]wFMCommunicate request_size=4 [08:32:17]MH_SAM_APDU [08:32:17]CAPDU: 80 0D 03 02 [08:32:17]Write to MH i2c: E2 08 00 5D 14 80 0D 03 02 00 00 00 00 EC [08:32:17]Write i2c OK [08:32:17]MH_I2C_Read... [08:32:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:32:17]Read from MH i2c: E2 [08:32:17]MH_I2C_Read... [08:32:17]Read from MH i2c: E2 0B 00 [08:32:17]MH_I2C_Read... [08:32:17]Read from MH i2c: E2 0B 00 5D 14 00 DA D6 52 C9 EE 51 83 EA 90 00 64 [08:32:17]RAPDU: DA D6 52 C9 EE 51 83 EA 90 00 [08:32:17]wFMCommunicate OK [08:32:17]SAM_PROTO_SignData done [08:32:17]FM_MakeSignedData done [08:32:17]CreateOFDProtocolMessage [08:32:17]wFMCommunicate request_size=4 [08:32:17]MH_SAM_APDU [08:32:17]CAPDU: 80 11 00 00 [08:32:17]Write to MH i2c: E2 08 00 5E 14 80 11 00 00 00 00 00 00 EC [08:32:17]Write i2c OK [08:32:17]MH_I2C_Read... [08:32:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:17]Read from MH i2c: E2 [08:32:17]MH_I2C_Read... [08:32:17]Read from MH i2c: E2 17 00 [08:32:17]MH_I2C_Read... [08:32:17]Read from MH i2c: E2 17 00 5E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 41 [08:32:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:32:17]wFMCommunicate OK [08:32:17]CreateOFDProtocolMessage done [08:32:17]OFDSenderStorePacket 201269 [08:32:17]StoreOFDPacket docnum=201269 [08:32:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B3 49 07 01 53 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 32 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 1F 00 00 00 F4 03 04 00 13 A9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 35 12 03 00 35 04 06 00 30 99 56 38 CB DD DA D6 52 C9 EE 51 83 EA [08:32:17]CheckFolder [08:32:17]dirname=/storage/ofd_packets [08:32:17]CheckFolder done [08:32:17]ProducePacketName [08:32:17]name=ofd_packets/00201269 [08:32:17]NVStorageSaveData ofd_packets/00201269 [08:32:17]File name is /storage/ofd_packets/00201269 [08:32:17]Write 301 bytes [08:32:17]NVStorageSaveData done [08:32:17]OFDSenderStorePacket done [08:32:17]KKMCreateOFDPacket done [08:32:17]NVStorageSaveData kkm_last_timestamp [08:32:17]File name is /storage/kkm_last_timestamp [08:32:17]Write 4 bytes [08:32:17]NVStorageSaveData done [08:32:17]ExternCall_PrintAddStr [08:32:17]wPrintStart [08:32:17]Write to MH i2c: 01 00 00 5F 14 73 [08:32:17]Write i2c OK [08:32:17]MH_I2C_Read... [08:32:17]Read from MH i2c: 01 [08:32:17]MH_I2C_Read... [08:32:17]Read from MH i2c: 01 07 00 [08:32:17]MH_I2C_Read... [08:32:17]Read from MH i2c: 01 07 00 5F 14 00 00 00 00 00 FF 0F 88 [08:32:17]RasterBufferAndPrint [08:32:17]line Счет N : (1)449016 [08:32:17]line ИНН: 02508201610067 [08:32:17]line Контрольно-Кассовый Чек [08:32:17]line ПРОДАЖА [08:32:17]line ТРК (МРК, ГНК) : 41 [08:32:17]line Товар: 2710124130 [08:32:17]line Аи-92-К-2 [08:32:17]line 7.480 * 66.90 [08:32:17]line = 500.41 [08:32:17]line НДС 12% НСП 1% [08:32:17]line > о реализуемом товаре [08:32:17]line ОКРУГЛЕНИЕ: -0.41 [08:32:17]line ИТОГО: 500.00 [08:32:17]line Внесено: 500.00 [08:32:17]line СДАЧА: 0.00 [08:32:17]line НСП 1% : 4.43 [08:32:17]line НДС 12% : 53.14 [08:32:17]line Наличными: 500.00 [08:32:17]line Безнал.: 0.00 [08:32:17]line Место: АЗС № 171 "Партнер Нефть" [08:32:17]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:32:17]line СНО: Общий режим [08:32:17]line Чек 31 26.10.2024 08:32 [08:32:17]line Смена: 543 ФФД: 1.0 [08:32:17]line ЗНМ: 0300000109 [08:32:17]line РНМ: 0000000000091777 [08:32:17]line Версия ККМ: 001 [08:32:17]line ФМ: 0000000000871756 [08:32:17]line ФД: 201269 [08:32:17]line ФПД: 53435134692317 [08:32:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T083219&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201269&fm=53435134692317&tin=02508201610067®Number=0000000000091777&sum=50000 [08:32:17]OFD Sender: Processing packet 201269 [packets to send 112, broken 111] [08:32:17]ProducePacketName [08:32:17]name=ofd_packets/00201269 [08:32:17]OFD Sender: To server: pG, [08:32:17]CommunicateWithHost lk.salyk.kg:30040 [08:32:17]ConnectInit lk.salyk.kg [08:32:17]written 0, free lines is 4095 [08:32:17]Connected sock=10 [08:32:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B3 49 07 01 53 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 32 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 1F 00 00 00 F4 03 04 00 13 A9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 35 12 03 00 35 04 06 00 30 99 56 38 CB DD DA D6 52 C9 EE 51 83 EA [08:32:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B6 52 47 00 DD 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 35 12 03 00 F4 03 04 00 BC 54 1C 67 B6 04 01 00 00 1E 5A D1 AB 56 49 E0 C4 [08:32:18]CommunicateWithHost err = 0 [08:32:18]CheckOFDResponse [08:32:18]1017 (14) - 77093643461234 [08:32:18]1041 (16) - 0000000000871756 [08:32:18]1040 (4) - 201269 [08:32:18]1012 (4) - 26.10.2024 02:32 [08:32:18]1206 (1) - 0 [08:32:18]OFD Sender: Remove packet 201269 [08:32:18]ProducePacketName [08:32:18]name=ofd_packets/00201269 [08:32:18]NVStorageDeleteData [08:32:18]Write to MH i2c: 01 00 00 8A 14 9E [08:32:18]Write i2c OK [08:32:18]MH_I2C_Read... [08:32:18]Read from MH i2c: 01 [08:32:18]MH_I2C_Read... [08:32:18]Read from MH i2c: 01 07 00 [08:32:18]MH_I2C_Read... [08:32:18]Read from MH i2c: 01 07 00 8A 14 00 00 00 00 00 96 0C 47 [08:32:18]RasterBufferAndPrint [08:32:18]line [08:32:18]line [08:32:18]line [08:32:18]line [08:32:18]line [08:32:18]written 0, free lines is 3228 [08:32:18]MH_Cut [08:32:18]Write to MH i2c: D1 01 00 91 14 01 77 [08:32:18]Write i2c OK [08:32:18]MH_I2C_Read... [08:32:18]Read from MH i2c: D1 [08:32:18]MH_I2C_Read... [08:32:18]Read from MH i2c: D1 01 00 [08:32:18]MH_I2C_Read... [08:32:18]Read from MH i2c: D1 01 00 91 14 00 76 [08:32:18]Write to MH i2c: 01 00 00 92 14 A6 [08:32:18]Write i2c OK [08:32:18]MH_I2C_Read... [08:32:18]OFD Sender: No OFD packet to send [08:32:19]*** Cut start [08:32:19]*** Purtial cut [08:32:19]*** Stage 1: CUTSNS_PIN = 1 [08:32:19]Read from MH i2c: 01 [08:32:19]MH_I2C_Read... [08:32:19]*** Stop cut motor [08:32:19]*** Cut end [08:32:19]Read from MH i2c: 01 07 00 [08:32:19]MH_I2C_Read... [08:32:19]Read from MH i2c: 01 07 00 92 14 00 00 00 00 00 FF 0F BB [08:32:19]process_action close_receipt done [08:32:19]requested_data is exist [08:32:19]produce_requested_data [08:32:19]requested_item fm.sn is exist - process it [08:32:19]wFMCommunicate request_size=4 [08:32:19]MH_SAM_APDU [08:32:19]CAPDU: 80 11 00 00 [08:32:19]Write to MH i2c: E2 08 00 93 14 80 11 00 00 00 00 00 00 21 [08:32:19]Write i2c OK [08:32:19]MH_I2C_Read... [08:32:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:19]Read from MH i2c: E2 [08:32:19]MH_I2C_Read... [08:32:19]Read from MH i2c: E2 17 00 [08:32:19]MH_I2C_Read... [08:32:19]Read from MH i2c: E2 17 00 93 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 76 [08:32:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:32:19]wFMCommunicate OK [08:32:19]requested_item fd.num is exist - process it [08:32:19]SAM_PROTO_GetFieldsCounters [08:32:19]wFMCommunicate request_size=4 [08:32:19]MH_SAM_APDU [08:32:19]CAPDU: 80 13 00 00 [08:32:19]Write to MH i2c: E2 08 00 94 14 80 13 00 00 00 00 00 00 24 [08:32:19]Write i2c OK [08:32:19]MH_I2C_Read... [08:32:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:19]Read from MH i2c: E2 [08:32:19]MH_I2C_Read... [08:32:19]Read from MH i2c: E2 62 00 [08:32:19]MH_I2C_Read... [08:32:19]Read from MH i2c: E2 62 00 94 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 35 12 03 00 0E 04 04 00 1F 02 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 15 [08:32:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 35 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:32:19]wFMCommunicate OK [08:32:19]SAM_PROTO_GetFieldsCounters done [08:32:19]requested_item shift.num is exist - process it [08:32:19]requested_item shift.opened is exist - process it [08:32:19]req_shift_opened [08:32:19]FM_GetShiftState [08:32:19]SAM_PROTO_GetShiftState [08:32:19]wFMCommunicate request_size=4 [08:32:19]MH_SAM_APDU [08:32:19]CAPDU: 80 13 01 00 [08:32:19]Write to MH i2c: E2 08 00 95 14 80 13 01 00 00 00 00 00 26 [08:32:19]Write i2c OK [08:32:19]MH_I2C_Read... [08:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:19]Read from MH i2c: E2 [08:32:19]MH_I2C_Read... [08:32:19]Read from MH i2c: E2 0E 00 [08:32:19]MH_I2C_Read... [08:32:19]Read from MH i2c: E2 0E 00 95 14 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 35 [08:32:19]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:32:19]wFMCommunicate OK [08:32:19]SAM_PROTO_GetShiftState done [08:32:19]FM_GetShiftState done [08:32:19]req_shift_opened done [08:32:19]requested_item shift.open_date is exist - process it [08:32:19]req_shift_open_date [08:32:19]req_shift_open_date done [08:32:19]produce_requested_data done [08:32:19]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201269,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [08:32:19]process_action_free close_receipt [08:32:19]json_value_free [08:32:19]json_value_free done [08:32:19]process_json_proto returns [08:32:19]Send response to host [08:32:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201269,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [08:32:19]free response buf [08:32:19]execute_script done [08:32:19]execute_script returns [08:32:19]free content buf [08:32:19]Sock 7.Close socket [08:32:19]Sock 7.Thread stoped [08:32:23]OFD Sender: No OFD packet to send [08:32:28]OFD Sender: No OFD packet to send [08:32:33]OFD Sender: No OFD packet to send [08:32:38]OFD Sender: No OFD packet to send [08:32:43]OFD Sender: No OFD packet to send [08:32:48]OFD Sender: No OFD packet to send [08:32:53]OFD Sender: No OFD packet to send [08:32:58]OFD Sender: No OFD packet to send [08:33:03]accept exits with 9 [08:33:03]New connection [08:33:03]New thread 3067415908 created [08:33:03]Thread 3067559268 joined [08:33:03]Waiting for new connection... [08:33:03] Sock 9.Parse request [08:33:03]Sock 9.Check first char [08:33:03]Sock 9.First char is OK [08:33:03]request: POST /json_proto HTTP/1.0 [08:33:03]Method: POST [08:33:03]URL: /json_proto [08:33:03]Method is POST - this is cgi request [08:33:03]url: /json_proto [08:33:03]query_string will be loaded in cgi processing [08:33:03]execute_cgi json_proto POST (null) [08:33:03]execute_cgi path=json_proto method=POST [08:33:03]POST find Content-Length [08:33:03]Host: 172.17.63.195:8080 [08:33:03]Content-Length: 682 [08:33:03]Content-Type: application/json [08:33:03] [08:33:03]POST finish read [08:33:03]Found Content-Length = 682 [08:33:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:33:03]execute_script... [08:33: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)449017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:33:03]POST & json_proto [08:33:03]process_json_proto [08:33:03]json parsed OK: [08:33:03]protocol is kg_v1.0 [08:33:03]action value=close_receipt [08:33:03]process_action close_receipt [08:33:03]cmd_close_receipt [08:33:03]MH_GetDate [08:33:03]Write to MH i2c: F0 00 00 96 14 99 [08:33:03]Write i2c OK [08:33:03]MH_I2C_Read... [08:33:03]Read from MH i2c: F0 [08:33:03]MH_I2C_Read... [08:33:03]Read from MH i2c: F0 09 00 [08:33:03]MH_I2C_Read... [08:33:03]Read from MH i2c: F0 09 00 96 14 00 42 A9 1C 67 68 46 19 67 3E [08:33:03]GetLastDocTimeStamp 1729931539 [08:33:03]current date 1729931586 [08:33:03]FM_GetShiftState [08:33:03]SAM_PROTO_GetShiftState [08:33:03]wFMCommunicate request_size=4 [08:33:03]MH_SAM_APDU [08:33:03]CAPDU: 80 13 01 00 [08:33:03]Write to MH i2c: E2 08 00 97 14 80 13 01 00 00 00 00 00 28 [08:33:03]Write i2c OK [08:33:03]MH_I2C_Read... [08:33:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:03]Read from MH i2c: E2 [08:33:03]MH_I2C_Read... [08:33:03]Read from MH i2c: E2 0E 00 [08:33:03]MH_I2C_Read... [08:33:03]Read from MH i2c: E2 0E 00 97 14 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 37 [08:33:03]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:33:03]wFMCommunicate OK [08:33:03]SAM_PROTO_GetShiftState done [08:33:03]FM_GetShiftState done [08:33:03]opened in 1729900879 [08:33:03]opened+sec_in_day 1729987279 [08:33:03]quantity*price = 100015 [08:33:03]sum+1 = 100017 [08:33:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 32 26.10.2024 08:33 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201270 ФПД: 81507842625847 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T083306&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201270&fm=81507842625847&tin=02508201610067®Number=0000000000091777&sum=100000 [08:33:04]StoreToDocumentArchive [08:33:04]shift 543 fd 201270 [08:33:04]save to /storage/0543/doc_00201270 [08:33:04]save last doc name /storage/0543/doc_00201270 to /storage/kkm_last_doc_name [08:33:04]save OK [08:33:04]Clear old archive folders... [08:33:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:33:04]tlvbuf is 01762330 [08:33:04]SAM_PROTO_ClearQueue [08:33:04]wFMCommunicate request_size=4 [08:33:04]MH_SAM_APDU [08:33:04]CAPDU: 80 09 00 00 [08:33:04]Write to MH i2c: E2 08 00 A4 14 80 09 00 00 00 00 00 00 2A [08:33:04]Write i2c OK [08:33:04]MH_I2C_Read... [08:33:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:33:04]Read from MH i2c: E2 [08:33:04]MH_I2C_Read... [08:33:04]Read from MH i2c: E2 03 00 [08:33:04]MH_I2C_Read... [08:33:04]Read from MH i2c: E2 03 00 A4 14 00 90 00 2C [08:33:04]RAPDU: 90 00 [08:33:04]wFMCommunicate OK [08:33:04]SAM_PROTO_ClearQueue done [08:33:04]KKMCreateOFDPacket [08:33:04]OFDProtocolAddRootSTLVToBuf [08:33:04]FM_MakeSignedData [08:33:04]FM_MakeSignedData [08:33:04]SAM_PROTO_SignData [08:33:04]wFMCommunicate request_size=4 [08:33:04]MH_SAM_APDU [08:33:04]CAPDU: 80 0D 01 02 [08:33:04]Write to MH i2c: E2 08 00 A5 14 80 0D 01 02 00 00 00 00 32 [08:33:04]Write i2c OK [08:33:04]MH_I2C_Read... [08:33:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:33:04]Read from MH i2c: E2 [08:33:04]MH_I2C_Read... [08:33:04]Read from MH i2c: E2 03 00 [08:33:04]MH_I2C_Read... [08:33:04]Read from MH i2c: E2 03 00 A5 14 00 90 00 2D [08:33:04]RAPDU: 90 00 [08:33:04]wFMCommunicate OK [08:33:04]wFMCommunicate request_size=255 [08:33:04]MH_SAM_APDU [08:33: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 32 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 20 00 00 00 F4 03 04 00 42 A9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 36 12 03 00 35 04 06 00 4A [08:33:04]Write to MH i2c: E2 02 01 A6 14 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 32 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 20 00 00 00 F4 03 04 00 42 A9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 36 12 03 00 35 04 06 00 4A 00 00 04 [08:33:04]Write i2c OK [08:33:04]MH_I2C_Read... [08:33:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:05]Read from MH i2c: E2 [08:33:05]MH_I2C_Read... [08:33:05]Read from MH i2c: E2 03 00 [08:33:05]MH_I2C_Read... [08:33:05]Read from MH i2c: E2 03 00 A6 14 00 90 00 2E [08:33:05]RAPDU: 90 00 [08:33:05]wFMCommunicate OK [08:33:05]wFMCommunicate request_size=10 [08:33:05]MH_SAM_APDU [08:33:05]CAPDU: 80 0D 02 02 05 21 86 01 91 37 [08:33:05]Write to MH i2c: E2 0D 00 A7 14 80 0D 02 02 05 00 21 86 01 91 37 00 00 AF [08:33:05]Write i2c OK [08:33:05]MH_I2C_Read... [08:33:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:05]Read from MH i2c: E2 [08:33:05]MH_I2C_Read... [08:33:05]Read from MH i2c: E2 03 00 [08:33:05]MH_I2C_Read... [08:33:05]Read from MH i2c: E2 03 00 A7 14 00 90 00 2F [08:33:05]RAPDU: 90 00 [08:33:05]wFMCommunicate OK [08:33:05]wFMCommunicate request_size=4 [08:33:05]MH_SAM_APDU [08:33:05]CAPDU: 80 0D 03 02 [08:33:05]Write to MH i2c: E2 08 00 A8 14 80 0D 03 02 00 00 00 00 37 [08:33:05]Write i2c OK [08:33:05]MH_I2C_Read... [08:33:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:33:05]Read from MH i2c: E2 [08:33:05]MH_I2C_Read... [08:33:05]Read from MH i2c: E2 0B 00 [08:33:05]MH_I2C_Read... [08:33:05]Read from MH i2c: E2 0B 00 A8 14 00 1A 4A 12 EE 75 9D 8F 2C 90 00 69 [08:33:05]RAPDU: 1A 4A 12 EE 75 9D 8F 2C 90 00 [08:33:05]wFMCommunicate OK [08:33:05]SAM_PROTO_SignData done [08:33:05]FM_MakeSignedData done [08:33:05]CreateOFDProtocolMessage [08:33:05]wFMCommunicate request_size=4 [08:33:05]MH_SAM_APDU [08:33:05]CAPDU: 80 11 00 00 [08:33:05]Write to MH i2c: E2 08 00 A9 14 80 11 00 00 00 00 00 00 37 [08:33:05]Write i2c OK [08:33:05]MH_I2C_Read... [08:33:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:05]Read from MH i2c: E2 [08:33:05]MH_I2C_Read... [08:33:05]Read from MH i2c: E2 17 00 [08:33:05]MH_I2C_Read... [08:33:05]Read from MH i2c: E2 17 00 A9 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8C [08:33:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:33:05]wFMCommunicate OK [08:33:05]CreateOFDProtocolMessage done [08:33:05]OFDSenderStorePacket 201270 [08:33:05]StoreOFDPacket docnum=201270 [08:33:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C4 AB 07 01 8D A1 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 32 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 20 00 00 00 F4 03 04 00 42 A9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 36 12 03 00 35 04 06 00 4A 21 86 01 91 37 1A 4A 12 EE 75 9D 8F 2C [08:33:05]CheckFolder [08:33:05]dirname=/storage/ofd_packets [08:33:05]CheckFolder done [08:33:05]ProducePacketName [08:33:05]name=ofd_packets/00201270 [08:33:05]NVStorageSaveData ofd_packets/00201270 [08:33:05]File name is /storage/ofd_packets/00201270 [08:33:05]Write 301 bytes [08:33:05]NVStorageSaveData done [08:33:05]OFDSenderStorePacket done [08:33:05]KKMCreateOFDPacket done [08:33:05]NVStorageSaveData kkm_last_timestamp [08:33:05]File name is /storage/kkm_last_timestamp [08:33:05]Write 4 bytes [08:33:05]NVStorageSaveData done [08:33:05]ExternCall_PrintAddStr [08:33:05]wPrintStart [08:33:05]Write to MH i2c: 01 00 00 AA 14 BE [08:33:05]Write i2c OK [08:33:05]MH_I2C_Read... [08:33:05]Read from MH i2c: 01 [08:33:05]MH_I2C_Read... [08:33:05]Read from MH i2c: 01 07 00 [08:33:05]MH_I2C_Read... [08:33:05]Read from MH i2c: 01 07 00 AA 14 00 00 00 00 00 FF 0F D3 [08:33:05]RasterBufferAndPrint [08:33:05]line Счет N : (1)449017 [08:33:05]line ИНН: 02508201610067 [08:33:05]line Контрольно-Кассовый Чек [08:33:05]line ПРОДАЖА [08:33:05]line ТРК (МРК, ГНК) : 31 [08:33:05]line Товар: 2710124130 [08:33:05]line Аи-92-К-2 [08:33:05]line 14.950 * 66.90 [08:33:05]line = 1000.16 [08:33:05]line НДС 12% НСП 1% [08:33:05]line > о реализуемом товаре [08:33:05]line ОКРУГЛЕНИЕ: -0.16 [08:33:05]line ИТОГО: 1000.00 [08:33:05]line Внесено: 1000.00 [08:33:05]line СДАЧА: 0.00 [08:33:05]line НСП 1% : 8.85 [08:33:05]line НДС 12% : 106.21 [08:33:05]line Наличными: 1000.00 [08:33:05]line Безнал.: 0.00 [08:33:05]line Место: АЗС № 171 "Партнер Нефть" [08:33:05]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:33:05]line СНО: Общий режим [08:33:05]line Чек 32 26.10.2024 08:33 [08:33:05]line Смена: 543 ФФД: 1.0 [08:33:05]line ЗНМ: 0300000109 [08:33:05]line РНМ: 0000000000091777 [08:33:05]line Версия ККМ: 001 [08:33:05]line ФМ: 0000000000871756 [08:33:05]line ФД: 201270 [08:33:05]line ФПД: 81507842625847 [08:33:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T083306&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201270&fm=81507842625847&tin=02508201610067®Number=0000000000091777&sum=100000 [08:33:05]OFD Sender: Processing packet 201270 [packets to send 112, broken 111] [08:33:05]ProducePacketName [08:33:05]name=ofd_packets/00201270 [08:33:05]OFD Sender: To server: pG, [08:33:05]CommunicateWithHost lk.salyk.kg:30040 [08:33:05]ConnectInit lk.salyk.kg [08:33:05]written 0, free lines is 4095 [08:33:05]Connected sock=10 [08:33:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C4 AB 07 01 8D A1 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 32 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 20 00 00 00 F4 03 04 00 42 A9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 36 12 03 00 35 04 06 00 4A 21 86 01 91 37 1A 4A 12 EE 75 9D 8F 2C [08:33:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 FA A3 47 00 B2 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 36 12 03 00 F4 03 04 00 EC 54 1C 67 B6 04 01 00 00 62 26 95 B4 A4 B4 D5 F4 [08:33:05]CommunicateWithHost err = 0 [08:33:05]CheckOFDResponse [08:33:05]1017 (14) - 77093643461234 [08:33:05]1041 (16) - 0000000000871756 [08:33:05]1040 (4) - 201270 [08:33:05]1012 (4) - 26.10.2024 02:33 [08:33:05]1206 (1) - 0 [08:33:05]OFD Sender: Remove packet 201270 [08:33:05]ProducePacketName [08:33:05]name=ofd_packets/00201270 [08:33:05]NVStorageDeleteData [08:33:06]Write to MH i2c: 01 00 00 D5 14 E9 [08:33:06]Write i2c OK [08:33:06]MH_I2C_Read... [08:33:06]Read from MH i2c: 01 [08:33:06]MH_I2C_Read... [08:33:06]Read from MH i2c: 01 07 00 [08:33:06]MH_I2C_Read... [08:33:06]Read from MH i2c: 01 07 00 D5 14 00 00 00 00 00 8F 0C 8B [08:33:06]RasterBufferAndPrint [08:33:06]line [08:33:06]line [08:33:06]line [08:33:06]line [08:33:06]line [08:33:06]written 0, free lines is 3219 [08:33:06]MH_Cut [08:33:06]Write to MH i2c: D1 01 00 DC 14 01 C2 [08:33:06]Write i2c OK [08:33:06]MH_I2C_Read... [08:33:06]Read from MH i2c: D1 [08:33:06]MH_I2C_Read... [08:33:06]Read from MH i2c: D1 01 00 [08:33:06]MH_I2C_Read... [08:33:06]Read from MH i2c: D1 01 00 DC 14 00 C1 [08:33:06]Write to MH i2c: 01 00 00 DD 14 F1 [08:33:06]Write i2c OK [08:33:06]MH_I2C_Read... [08:33:06]OFD Sender: No OFD packet to send [08:33:06]*** Cut start [08:33:06]*** Purtial cut [08:33:06]*** Stage 1: CUTSNS_PIN = 1 [08:33:07]Read from MH i2c: 01 [08:33:07]MH_I2C_Read... [08:33:07]*** Stop cut motor [08:33:07]*** Cut end [08:33:07]Read from MH i2c: 01 07 00 [08:33:07]MH_I2C_Read... [08:33:07]Read from MH i2c: 01 07 00 DD 14 00 00 00 00 00 FF 0F 06 [08:33:07]process_action close_receipt done [08:33:07]requested_data is exist [08:33:07]produce_requested_data [08:33:07]requested_item fm.sn is exist - process it [08:33:07]wFMCommunicate request_size=4 [08:33:07]MH_SAM_APDU [08:33:07]CAPDU: 80 11 00 00 [08:33:07]Write to MH i2c: E2 08 00 DE 14 80 11 00 00 00 00 00 00 6C [08:33:07]Write i2c OK [08:33:07]MH_I2C_Read... [08:33:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:07]Read from MH i2c: E2 [08:33:07]MH_I2C_Read... [08:33:07]Read from MH i2c: E2 17 00 [08:33:07]MH_I2C_Read... [08:33:07]Read from MH i2c: E2 17 00 DE 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C1 [08:33:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:33:07]wFMCommunicate OK [08:33:07]requested_item fd.num is exist - process it [08:33:07]SAM_PROTO_GetFieldsCounters [08:33:07]wFMCommunicate request_size=4 [08:33:07]MH_SAM_APDU [08:33:07]CAPDU: 80 13 00 00 [08:33:07]Write to MH i2c: E2 08 00 DF 14 80 13 00 00 00 00 00 00 6F [08:33:07]Write i2c OK [08:33:07]MH_I2C_Read... [08:33:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:07]Read from MH i2c: E2 [08:33:07]MH_I2C_Read... [08:33:07]Read from MH i2c: E2 62 00 [08:33:07]MH_I2C_Read... [08:33:07]Read from MH i2c: E2 62 00 DF 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 36 12 03 00 0E 04 04 00 1F 02 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 64 [08:33:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 36 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:33:07]wFMCommunicate OK [08:33:07]SAM_PROTO_GetFieldsCounters done [08:33:07]requested_item shift.num is exist - process it [08:33:07]requested_item shift.opened is exist - process it [08:33:07]req_shift_opened [08:33:07]FM_GetShiftState [08:33:07]SAM_PROTO_GetShiftState [08:33:07]wFMCommunicate request_size=4 [08:33:07]MH_SAM_APDU [08:33:07]CAPDU: 80 13 01 00 [08:33:07]Write to MH i2c: E2 08 00 E0 14 80 13 01 00 00 00 00 00 71 [08:33:07]Write i2c OK [08:33:07]MH_I2C_Read... [08:33:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:07]Read from MH i2c: E2 [08:33:07]MH_I2C_Read... [08:33:07]Read from MH i2c: E2 0E 00 [08:33:07]MH_I2C_Read... [08:33:07]Read from MH i2c: E2 0E 00 E0 14 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 80 [08:33:07]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:33:07]wFMCommunicate OK [08:33:07]SAM_PROTO_GetShiftState done [08:33:07]FM_GetShiftState done [08:33:07]req_shift_opened done [08:33:07]requested_item shift.open_date is exist - process it [08:33:07]req_shift_open_date [08:33:07]req_shift_open_date done [08:33:07]produce_requested_data done [08:33:07]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201270,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [08:33:07]process_action_free close_receipt [08:33:07]json_value_free [08:33:07]json_value_free done [08:33:07]process_json_proto returns [08:33:07]Send response to host [08:33:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201270,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [08:33:07]free response buf [08:33:07]execute_script done [08:33:07]execute_script returns [08:33:07]free content buf [08:33:07]Sock 9.Close socket [08:33:07]Sock 9.Thread stoped [08:33:11]OFD Sender: No OFD packet to send [08:33:16]OFD Sender: No OFD packet to send [08:33:21]OFD Sender: No OFD packet to send [08:33:26]OFD Sender: No OFD packet to send [08:33:31]OFD Sender: No OFD packet to send [08:33:36]OFD Sender: No OFD packet to send [08:33:41]OFD Sender: No OFD packet to send [08:33:46]OFD Sender: No OFD packet to send [08:33:51]OFD Sender: No OFD packet to send [08:33:56]OFD Sender: No OFD packet to send [08:34:01]OFD Sender: No OFD packet to send [08:34:06]OFD Sender: No OFD packet to send [08:34:11]OFD Sender: No OFD packet to send [08:34:16]OFD Sender: No OFD packet to send [08:34:21]OFD Sender: No OFD packet to send [08:34:26]OFD Sender: No OFD packet to send [08:34:31]OFD Sender: No OFD packet to send [08:34:36]OFD Sender: No OFD packet to send [08:34:41]OFD Sender: No OFD packet to send [08:34:42]accept exits with 7 [08:34:42]New connection [08:34:42]New thread 3067559268 created [08:34:42]Thread 3067415908 joined [08:34:42]Waiting for new connection... [08:34:42] Sock 7.Parse request [08:34:42]Sock 7.Check first char [08:34:42]Sock 7.First char is OK [08:34:42]request: POST /json_proto HTTP/1.0 [08:34:42]Method: POST [08:34:42]URL: /json_proto [08:34:42]Method is POST - this is cgi request [08:34:42]url: /json_proto [08:34:42]query_string will be loaded in cgi processing [08:34:42]execute_cgi json_proto POST (null) [08:34:42]execute_cgi path=json_proto method=POST [08:34:42]POST find Content-Length [08:34:42]Host: 172.17.63.195:8080 [08:34:42]Content-Length: 764 [08:34:42]Content-Type: application/json [08:34:42] [08:34:42]POST finish read [08:34:42]Found Content-Length = 764 [08:34:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 1.280, "sum" : 85.63, "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: Mbank", "payments": [ { "type": 1, "sum" : 85.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:42]execute_script... [08:34:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 1.280, "sum" : 85.63, "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: Mbank", "payments": [ { "type": 1, "sum" : 85.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:42]POST & json_proto [08:34:42]process_json_proto [08:34:42]json parsed OK: [08:34:42]protocol is kg_v1.0 [08:34:42]action value=close_receipt [08:34:42]process_action close_receipt [08:34:42]cmd_close_receipt [08:34:42]MH_GetDate [08:34:42]Write to MH i2c: F0 00 00 E1 14 E4 [08:34:42]Write i2c OK [08:34:42]MH_I2C_Read... [08:34:42]Read from MH i2c: F0 [08:34:42]MH_I2C_Read... [08:34:42]Read from MH i2c: F0 09 00 [08:34:42]MH_I2C_Read... [08:34:42]Read from MH i2c: F0 09 00 E1 14 00 A6 A9 1C 67 68 46 19 67 ED [08:34:42]GetLastDocTimeStamp 1729931586 [08:34:42]current date 1729931686 [08:34:42]FM_GetShiftState [08:34:42]SAM_PROTO_GetShiftState [08:34:42]wFMCommunicate request_size=4 [08:34:42]MH_SAM_APDU [08:34:42]CAPDU: 80 13 01 00 [08:34:42]Write to MH i2c: E2 08 00 E2 14 80 13 01 00 00 00 00 00 73 [08:34:42]Write i2c OK [08:34:42]MH_I2C_Read... [08:34:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:42]Read from MH i2c: E2 [08:34:42]MH_I2C_Read... [08:34:42]Read from MH i2c: E2 0E 00 [08:34:42]MH_I2C_Read... [08:34:42]Read from MH i2c: E2 0E 00 E2 14 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 82 [08:34:42]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:34:42]wFMCommunicate OK [08:34:42]SAM_PROTO_GetShiftState done [08:34:42]FM_GetShiftState done [08:34:42]opened in 1729900879 [08:34:42]opened+sec_in_day 1729987279 [08:34:42]quantity*price = 8563 [08:34:42]sum+1 = 8564 [08:34:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.63 НСП 1% : 0.76 НДС 12% : 9.09 Наличными: 0.00 Безнал.: 85.63 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 33 26.10.2024 08:34 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201271 ФПД: 14501356068854 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T083446&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201271&fm=14501356068854&tin=02508201610067®Number=0000000000091777&sum=8563 [08:34:43]StoreToDocumentArchive [08:34:43]shift 543 fd 201271 [08:34:43]save to /storage/0543/doc_00201271 [08:34:43]save last doc name /storage/0543/doc_00201271 to /storage/kkm_last_doc_name [08:34:43]save OK [08:34:43]Clear old archive folders... [08:34:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:34:43]tlvbuf is 0174EB40 [08:34:43]SAM_PROTO_ClearQueue [08:34:43]wFMCommunicate request_size=4 [08:34:43]MH_SAM_APDU [08:34:43]CAPDU: 80 09 00 00 [08:34:43]Write to MH i2c: E2 08 00 EF 14 80 09 00 00 00 00 00 00 75 [08:34:43]Write i2c OK [08:34:43]MH_I2C_Read... [08:34:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:43]Read from MH i2c: E2 [08:34:43]MH_I2C_Read... [08:34:43]Read from MH i2c: E2 03 00 [08:34:43]MH_I2C_Read... [08:34:43]Read from MH i2c: E2 03 00 EF 14 00 90 00 77 [08:34:43]RAPDU: 90 00 [08:34:43]wFMCommunicate OK [08:34:43]SAM_PROTO_ClearQueue done [08:34:43]KKMCreateOFDPacket [08:34:43]OFDProtocolAddRootSTLVToBuf [08:34:43]FM_MakeSignedData [08:34:43]FM_MakeSignedData [08:34:43]SAM_PROTO_SignData [08:34:43]wFMCommunicate request_size=4 [08:34:43]MH_SAM_APDU [08:34:43]CAPDU: 80 0D 01 02 [08:34:43]Write to MH i2c: E2 08 00 F0 14 80 0D 01 02 00 00 00 00 7D [08:34:43]Write i2c OK [08:34:43]MH_I2C_Read... [08:34:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:43]Read from MH i2c: E2 [08:34:43]MH_I2C_Read... [08:34:43]Read from MH i2c: E2 03 00 [08:34:43]MH_I2C_Read... [08:34:43]Read from MH i2c: E2 03 00 F0 14 00 90 00 78 [08:34:43]RAPDU: 90 00 [08:34:43]wFMCommunicate OK [08:34:43]wFMCommunicate request_size=255 [08:34:43]MH_SAM_APDU [08:34:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 00 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 73 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 A6 A9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 37 12 03 00 35 04 06 00 0D [08:34:43]Write to MH i2c: E2 02 01 F1 14 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 32 FF 03 08 00 03 00 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 73 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 A6 A9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 37 12 03 00 35 04 06 00 0D 00 00 D2 [08:34:43]Write i2c OK [08:34:43]MH_I2C_Read... [08:34:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:44]Read from MH i2c: E2 [08:34:44]MH_I2C_Read... [08:34:44]Read from MH i2c: E2 03 00 [08:34:44]MH_I2C_Read... [08:34:44]Read from MH i2c: E2 03 00 F1 14 00 90 00 79 [08:34:44]RAPDU: 90 00 [08:34:44]wFMCommunicate OK [08:34:44]wFMCommunicate request_size=10 [08:34:44]MH_SAM_APDU [08:34:44]CAPDU: 80 0D 02 02 05 30 5C 2D 5F F6 [08:34:44]Write to MH i2c: E2 0D 00 F2 14 80 0D 02 02 05 00 30 5C 2D 5F F6 00 00 98 [08:34:44]Write i2c OK [08:34:44]MH_I2C_Read... [08:34:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:44]Read from MH i2c: E2 [08:34:44]MH_I2C_Read... [08:34:44]Read from MH i2c: E2 03 00 [08:34:44]MH_I2C_Read... [08:34:44]Read from MH i2c: E2 03 00 F2 14 00 90 00 7A [08:34:44]RAPDU: 90 00 [08:34:44]wFMCommunicate OK [08:34:44]wFMCommunicate request_size=4 [08:34:44]MH_SAM_APDU [08:34:44]CAPDU: 80 0D 03 02 [08:34:44]Write to MH i2c: E2 08 00 F3 14 80 0D 03 02 00 00 00 00 82 [08:34:44]Write i2c OK [08:34:44]MH_I2C_Read... [08:34:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:44]Read from MH i2c: E2 [08:34:44]MH_I2C_Read... [08:34:44]Read from MH i2c: E2 0B 00 [08:34:44]MH_I2C_Read... [08:34:44]Read from MH i2c: E2 0B 00 F3 14 00 90 24 8A FD 75 B3 5F 4B 90 00 90 [08:34:44]RAPDU: 90 24 8A FD 75 B3 5F 4B 90 00 [08:34:44]wFMCommunicate OK [08:34:44]SAM_PROTO_SignData done [08:34:44]FM_MakeSignedData done [08:34:44]CreateOFDProtocolMessage [08:34:44]wFMCommunicate request_size=4 [08:34:44]MH_SAM_APDU [08:34:44]CAPDU: 80 11 00 00 [08:34:44]Write to MH i2c: E2 08 00 F4 14 80 11 00 00 00 00 00 00 82 [08:34:44]Write i2c OK [08:34:44]MH_I2C_Read... [08:34:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:44]Read from MH i2c: E2 [08:34:44]MH_I2C_Read... [08:34:44]Read from MH i2c: E2 17 00 [08:34:44]MH_I2C_Read... [08:34:44]Read from MH i2c: E2 17 00 F4 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D7 [08:34:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:34:44]wFMCommunicate OK [08:34:44]CreateOFDProtocolMessage done [08:34:44]OFDSenderStorePacket 201271 [08:34:44]StoreOFDPacket docnum=201271 [08:34:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 18 E4 07 01 BD 0A 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 32 FF 03 08 00 03 00 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 73 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 A6 A9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 37 12 03 00 35 04 06 00 0D 30 5C 2D 5F F6 90 24 8A FD 75 B3 5F 4B [08:34:44]CheckFolder [08:34:44]dirname=/storage/ofd_packets [08:34:44]CheckFolder done [08:34:44]ProducePacketName [08:34:44]name=ofd_packets/00201271 [08:34:44]NVStorageSaveData ofd_packets/00201271 [08:34:44]File name is /storage/ofd_packets/00201271 [08:34:44]Write 301 bytes [08:34:44]NVStorageSaveData done [08:34:44]OFDSenderStorePacket done [08:34:44]KKMCreateOFDPacket done [08:34:44]NVStorageSaveData kkm_last_timestamp [08:34:44]File name is /storage/kkm_last_timestamp [08:34:44]Write 4 bytes [08:34:44]NVStorageSaveData done [08:34:44]ExternCall_PrintAddStr [08:34:44]wPrintStart [08:34:44]Write to MH i2c: 01 00 00 F5 14 09 [08:34:44]Write i2c OK [08:34:44]MH_I2C_Read... [08:34:44]Read from MH i2c: 01 [08:34:44]MH_I2C_Read... [08:34:44]Read from MH i2c: 01 07 00 [08:34:44]MH_I2C_Read... [08:34:44]Read from MH i2c: 01 07 00 F5 14 00 00 00 00 00 FF 0F 1E [08:34:44]RasterBufferAndPrint [08:34:44]line Счет N : (1)449018 [08:34:44]line ИНН: 02508201610067 [08:34:44]line Контрольно-Кассовый Чек [08:34:44]line ПРОДАЖА [08:34:44]line ТРК (МРК, ГНК) : 52 [08:34:44]line Товар: 2710124130 [08:34:44]line Аи-92-К-2 [08:34:44]line 1.280 * 66.90 [08:34:44]line = 85.63 [08:34:44]line НДС 12% НСП 1% [08:34:44]line > о реализуемом товаре [08:34:44]line ИТОГО: 85.63 [08:34:44]line НСП 1% : 0.76 [08:34:44]line НДС 12% : 9.09 [08:34:44]line Наличными: 0.00 [08:34:44]line Безнал.: 85.63 [08:34:44]line Место: АЗС № 171 "Партнер Нефть" [08:34:44]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:34:44]line СНО: Общий режим [08:34:44]line Чек 33 26.10.2024 08:34 [08:34:44]line Смена: 543 ФФД: 1.0 [08:34:44]line ЗНМ: 0300000109 [08:34:44]line РНМ: 0000000000091777 [08:34:44]line Версия ККМ: 001 [08:34:44]line Платежная система: Mbank [08:34:44]line ФМ: 0000000000871756 [08:34:44]line ФД: 201271 [08:34:44]line ФПД: 14501356068854 [08:34:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T083446&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201271&fm=14501356068854&tin=02508201610067®Number=0000000000091777&sum=8563 [08:34:44]written 0, free lines is 4095 [08:34:44]OFD Sender: Processing packet 201271 [packets to send 112, broken 111] [08:34:44]ProducePacketName [08:34:44]name=ofd_packets/00201271 [08:34:44]OFD Sender: To server: pG, [08:34:44]CommunicateWithHost lk.salyk.kg:30040 [08:34:44]ConnectInit lk.salyk.kg [08:34:44]Write to MH i2c: 01 00 00 1E 15 33 [08:34:44]Write i2c OK [08:34:44]MH_I2C_Read... [08:34:44]Read from MH i2c: 01 [08:34:44]MH_I2C_Read... [08:34:44]Read from MH i2c: 01 07 00 [08:34:44]MH_I2C_Read... [08:34:44]Read from MH i2c: 01 07 00 1E 15 00 00 00 00 00 BB 0C 01 [08:34:44]RasterBufferAndPrint [08:34:44]line [08:34:44]line [08:34:44]line [08:34:44]line [08:34:44]line [08:34:44]Connected sock=10 [08:34:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 18 E4 07 01 BD 0A 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 32 FF 03 08 00 03 00 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 73 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 A6 A9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 37 12 03 00 35 04 06 00 0D 30 5C 2D 5F F6 90 24 8A FD 75 B3 5F 4B [08:34:44]written 0, free lines is 3262 [08:34:44]MH_Cut [08:34:44]Write to MH i2c: D1 01 00 25 15 01 0C [08:34:44]Write i2c OK [08:34:44]MH_I2C_Read... [08:34:44]Read from MH i2c: D1 [08:34:44]MH_I2C_Read... [08:34:44]Read from MH i2c: D1 01 00 [08:34:44]MH_I2C_Read... [08:34:44]Read from MH i2c: D1 01 00 25 15 00 0B [08:34:44]Write to MH i2c: 01 00 00 26 15 3B [08:34:44]Write i2c OK [08:34:44]MH_I2C_Read... [08:34:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 21 F3 47 00 13 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 37 12 03 00 F4 03 04 00 4F 55 1C 67 B6 04 01 00 00 82 2F B4 1A ED 3A 48 11 [08:34:45]CommunicateWithHost err = 0 [08:34:45]CheckOFDResponse [08:34:45]1017 (14) - 77093643461234 [08:34:45]1041 (16) - 0000000000871756 [08:34:45]1040 (4) - 201271 [08:34:45]1012 (4) - 26.10.2024 02:34 [08:34:45]1206 (1) - 0 [08:34:45]OFD Sender: Remove packet 201271 [08:34:45]ProducePacketName [08:34:45]name=ofd_packets/00201271 [08:34:45]NVStorageDeleteData [08:34:45]OFD Sender: No OFD packet to send [08:34:45]*** Cut start [08:34:45]*** Purtial cut [08:34:45]*** Stage 1: CUTSNS_PIN = 1 [08:34:45]Read from MH i2c: 01 [08:34:45]MH_I2C_Read... [08:34:45]*** Stop cut motor [08:34:45]*** Cut end [08:34:45]Read from MH i2c: 01 07 00 [08:34:45]MH_I2C_Read... [08:34:45]Read from MH i2c: 01 07 00 26 15 00 00 00 00 00 FF 0F 50 [08:34:45]process_action close_receipt done [08:34:45]requested_data is exist [08:34:45]produce_requested_data [08:34:45]requested_item fm.sn is exist - process it [08:34:45]wFMCommunicate request_size=4 [08:34:45]MH_SAM_APDU [08:34:45]CAPDU: 80 11 00 00 [08:34:45]Write to MH i2c: E2 08 00 27 15 80 11 00 00 00 00 00 00 B6 [08:34:45]Write i2c OK [08:34:45]MH_I2C_Read... [08:34:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:45]Read from MH i2c: E2 [08:34:45]MH_I2C_Read... [08:34:45]Read from MH i2c: E2 17 00 [08:34:45]MH_I2C_Read... [08:34:45]Read from MH i2c: E2 17 00 27 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0B [08:34:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:34:45]wFMCommunicate OK [08:34:45]requested_item fd.num is exist - process it [08:34:45]SAM_PROTO_GetFieldsCounters [08:34:45]wFMCommunicate request_size=4 [08:34:45]MH_SAM_APDU [08:34:45]CAPDU: 80 13 00 00 [08:34:45]Write to MH i2c: E2 08 00 28 15 80 13 00 00 00 00 00 00 B9 [08:34:45]Write i2c OK [08:34:45]MH_I2C_Read... [08:34:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:46]Read from MH i2c: E2 [08:34:46]MH_I2C_Read... [08:34:46]Read from MH i2c: E2 62 00 [08:34:46]MH_I2C_Read... [08:34:46]Read from MH i2c: E2 62 00 28 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 37 12 03 00 0E 04 04 00 1F 02 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 B2 [08:34:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 37 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:34:46]wFMCommunicate OK [08:34:46]SAM_PROTO_GetFieldsCounters done [08:34:46]requested_item shift.num is exist - process it [08:34:46]requested_item shift.opened is exist - process it [08:34:46]req_shift_opened [08:34:46]FM_GetShiftState [08:34:46]SAM_PROTO_GetShiftState [08:34:46]wFMCommunicate request_size=4 [08:34:46]MH_SAM_APDU [08:34:46]CAPDU: 80 13 01 00 [08:34:46]Write to MH i2c: E2 08 00 29 15 80 13 01 00 00 00 00 00 BB [08:34:46]Write i2c OK [08:34:46]MH_I2C_Read... [08:34:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:46]Read from MH i2c: E2 [08:34:46]MH_I2C_Read... [08:34:46]Read from MH i2c: E2 0E 00 [08:34:46]MH_I2C_Read... [08:34:46]Read from MH i2c: E2 0E 00 29 15 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 CA [08:34:46]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:34:46]wFMCommunicate OK [08:34:46]SAM_PROTO_GetShiftState done [08:34:46]FM_GetShiftState done [08:34:46]req_shift_opened done [08:34:46]requested_item shift.open_date is exist - process it [08:34:46]req_shift_open_date [08:34:46]req_shift_open_date done [08:34:46]produce_requested_data done [08:34:46]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201271,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [08:34:46]process_action_free close_receipt [08:34:46]json_value_free [08:34:46]json_value_free done [08:34:46]process_json_proto returns [08:34:46]Send response to host [08:34:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201271,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [08:34:46]free response buf [08:34:46]execute_script done [08:34:46]execute_script returns [08:34:46]free content buf [08:34:46]Sock 7.Close socket [08:34:46]Sock 7.Thread stoped [08:34:50]OFD Sender: No OFD packet to send [08:34:55]OFD Sender: No OFD packet to send [08:35:00]OFD Sender: No OFD packet to send [08:35:05]OFD Sender: No OFD packet to send [08:35:10]OFD Sender: No OFD packet to send [08:35:15]OFD Sender: No OFD packet to send [08:35:20]OFD Sender: No OFD packet to send [08:35:25]OFD Sender: No OFD packet to send [08:35:30]OFD Sender: No OFD packet to send [08:35:35]OFD Sender: No OFD packet to send [08:35:40]OFD Sender: No OFD packet to send [08:35:45]OFD Sender: No OFD packet to send [08:35:50]OFD Sender: No OFD packet to send [08:35:55]OFD Sender: No OFD packet to send [08:36:00]OFD Sender: No OFD packet to send [08:36:05]OFD Sender: No OFD packet to send [08:36:10]OFD Sender: No OFD packet to send [08:36:15]OFD Sender: No OFD packet to send [08:36:20]OFD Sender: No OFD packet to send [08:36:25]OFD Sender: No OFD packet to send [08:36:30]OFD Sender: No OFD packet to send [08:36:35]OFD Sender: No OFD packet to send [08:36:40]OFD Sender: No OFD packet to send [08:36:45]OFD Sender: No OFD packet to send [08:36:47]accept exits with 9 [08:36:47]New connection [08:36:47]New thread 3067415908 created [08:36:47]Thread 3067559268 joined [08:36:47]Waiting for new connection... [08:36:47] Sock 9.Parse request [08:36:47]Sock 9.Check first char [08:36:47]Sock 9.First char is OK [08:36:47]request: POST /json_proto HTTP/1.0 [08:36:47]Method: POST [08:36:47]URL: /json_proto [08:36:47]Method is POST - this is cgi request [08:36:47]url: /json_proto [08:36:47]query_string will be loaded in cgi processing [08:36:47]execute_cgi json_proto POST (null) [08:36:47]execute_cgi path=json_proto method=POST [08:36:47]POST find Content-Length [08:36:47]Host: 172.17.63.195:8080 [08:36:47]Content-Length: 670 [08:36:47]Content-Type: application/json [08:36:47] [08:36:47]POST finish read [08:36:47]Found Content-Length = 670 [08:36:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "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" ] } } [08:36:47]execute_script... [08:36: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)449019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "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" ] } } [08:36:47]POST & json_proto [08:36:47]process_json_proto [08:36:47]json parsed OK: [08:36:47]protocol is kg_v1.0 [08:36:47]action value=close_receipt [08:36:47]process_action close_receipt [08:36:47]cmd_close_receipt [08:36:47]MH_GetDate [08:36:47]Write to MH i2c: F0 00 00 2A 15 2E [08:36:47]Write i2c OK [08:36:47]MH_I2C_Read... [08:36:47]Read from MH i2c: F0 [08:36:47]MH_I2C_Read... [08:36:47]Read from MH i2c: F0 09 00 [08:36:47]MH_I2C_Read... [08:36:47]Read from MH i2c: F0 09 00 2A 15 00 22 AA 1C 67 68 46 19 67 B4 [08:36:47]GetLastDocTimeStamp 1729931686 [08:36:47]current date 1729931810 [08:36:47]FM_GetShiftState [08:36:47]SAM_PROTO_GetShiftState [08:36:47]wFMCommunicate request_size=4 [08:36:47]MH_SAM_APDU [08:36:47]CAPDU: 80 13 01 00 [08:36:47]Write to MH i2c: E2 08 00 2B 15 80 13 01 00 00 00 00 00 BD [08:36:47]Write i2c OK [08:36:47]MH_I2C_Read... [08:36:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:47]Read from MH i2c: E2 [08:36:47]MH_I2C_Read... [08:36:47]Read from MH i2c: E2 0E 00 [08:36:47]MH_I2C_Read... [08:36:47]Read from MH i2c: E2 0E 00 2B 15 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 CC [08:36:47]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:36:47]wFMCommunicate OK [08:36:47]SAM_PROTO_GetShiftState done [08:36:47]FM_GetShiftState done [08:36:47]opened in 1729900879 [08:36:47]opened+sec_in_day 1729987279 [08:36:47]quantity*price = 40014 [08:36:47]sum+1 = 40015 [08:36:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 34 26.10.2024 08:36 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201272 ФПД: 122636859859319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T083650&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201272&fm=122636859859319&tin=02508201610067®Number=0000000000091777&sum=40000 [08:36:48]StoreToDocumentArchive [08:36:48]shift 543 fd 201272 [08:36:48]save to /storage/0543/doc_00201272 [08:36:48]save last doc name /storage/0543/doc_00201272 to /storage/kkm_last_doc_name [08:36:48]save OK [08:36:48]Clear old archive folders... [08:36:48]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:36:48]tlvbuf is 0172E810 [08:36:48]SAM_PROTO_ClearQueue [08:36:48]wFMCommunicate request_size=4 [08:36:48]MH_SAM_APDU [08:36:48]CAPDU: 80 09 00 00 [08:36:48]Write to MH i2c: E2 08 00 38 15 80 09 00 00 00 00 00 00 BF [08:36:48]Write i2c OK [08:36:48]MH_I2C_Read... [08:36:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:36:48]Read from MH i2c: E2 [08:36:48]MH_I2C_Read... [08:36:48]Read from MH i2c: E2 03 00 [08:36:48]MH_I2C_Read... [08:36:48]Read from MH i2c: E2 03 00 38 15 00 90 00 C1 [08:36:48]RAPDU: 90 00 [08:36:48]wFMCommunicate OK [08:36:48]SAM_PROTO_ClearQueue done [08:36:48]KKMCreateOFDPacket [08:36:48]OFDProtocolAddRootSTLVToBuf [08:36:48]FM_MakeSignedData [08:36:48]FM_MakeSignedData [08:36:48]SAM_PROTO_SignData [08:36:48]wFMCommunicate request_size=4 [08:36:48]MH_SAM_APDU [08:36:48]CAPDU: 80 0D 01 02 [08:36:48]Write to MH i2c: E2 08 00 39 15 80 0D 01 02 00 00 00 00 C7 [08:36:48]Write i2c OK [08:36:48]MH_I2C_Read... [08:36:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:36:48]Read from MH i2c: E2 [08:36:48]MH_I2C_Read... [08:36:48]Read from MH i2c: E2 03 00 [08:36:48]MH_I2C_Read... [08:36:48]Read from MH i2c: E2 03 00 39 15 00 90 00 C2 [08:36:48]RAPDU: 90 00 [08:36:48]wFMCommunicate OK [08:36:48]wFMCommunicate request_size=255 [08:36:48]MH_SAM_APDU [08:36:48]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 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 22 00 00 00 F4 03 04 00 22 AA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 38 12 03 00 35 04 06 00 [08:36:48]Write to MH i2c: E2 02 01 3A 15 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 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 22 00 00 00 F4 03 04 00 22 AA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 38 12 03 00 35 04 06 00 00 00 C5 [08:36:48]Write i2c OK [08:36:48]MH_I2C_Read... [08:36:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:48]Read from MH i2c: E2 [08:36:48]MH_I2C_Read... [08:36:48]Read from MH i2c: E2 03 00 [08:36:48]MH_I2C_Read... [08:36:48]Read from MH i2c: E2 03 00 3A 15 00 90 00 C3 [08:36:48]RAPDU: 90 00 [08:36:48]wFMCommunicate OK [08:36:48]wFMCommunicate request_size=11 [08:36:48]MH_SAM_APDU [08:36:48]CAPDU: 80 0D 02 02 06 6F 89 9E 77 E1 77 [08:36:48]Write to MH i2c: E2 0E 00 3B 15 80 0D 02 02 06 00 6F 89 9E 77 E1 77 00 00 3B [08:36:48]Write i2c OK [08:36:48]MH_I2C_Read... [08:36:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:48]Read from MH i2c: E2 [08:36:48]MH_I2C_Read... [08:36:48]Read from MH i2c: E2 03 00 [08:36:48]MH_I2C_Read... [08:36:48]Read from MH i2c: E2 03 00 3B 15 00 90 00 C4 [08:36:48]RAPDU: 90 00 [08:36:48]wFMCommunicate OK [08:36:48]wFMCommunicate request_size=4 [08:36:48]MH_SAM_APDU [08:36:48]CAPDU: 80 0D 03 02 [08:36:48]Write to MH i2c: E2 08 00 3C 15 80 0D 03 02 00 00 00 00 CC [08:36:48]Write i2c OK [08:36:48]MH_I2C_Read... [08:36:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:36:49]Read from MH i2c: E2 [08:36:49]MH_I2C_Read... [08:36:49]Read from MH i2c: E2 0B 00 [08:36:49]MH_I2C_Read... [08:36:49]Read from MH i2c: E2 0B 00 3C 15 00 95 73 45 EE 7F 32 2D 48 90 00 2E [08:36:49]RAPDU: 95 73 45 EE 7F 32 2D 48 90 00 [08:36:49]wFMCommunicate OK [08:36:49]SAM_PROTO_SignData done [08:36:49]FM_MakeSignedData done [08:36:49]CreateOFDProtocolMessage [08:36:49]wFMCommunicate request_size=4 [08:36:49]MH_SAM_APDU [08:36:49]CAPDU: 80 11 00 00 [08:36:49]Write to MH i2c: E2 08 00 3D 15 80 11 00 00 00 00 00 00 CC [08:36:49]Write i2c OK [08:36:49]MH_I2C_Read... [08:36:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:49]Read from MH i2c: E2 [08:36:49]MH_I2C_Read... [08:36:49]Read from MH i2c: E2 17 00 [08:36:49]MH_I2C_Read... [08:36:49]Read from MH i2c: E2 17 00 3D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 21 [08:36:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:36:49]wFMCommunicate OK [08:36:49]CreateOFDProtocolMessage done [08:36:49]OFDSenderStorePacket 201272 [08:36:49]StoreOFDPacket docnum=201272 [08:36:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 83 9A 08 01 F5 FC 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 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 22 00 00 00 F4 03 04 00 22 AA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 38 12 03 00 35 04 06 00 6F 89 9E 77 E1 77 95 73 45 EE 7F 32 2D 48 [08:36:49]CheckFolder [08:36:49]dirname=/storage/ofd_packets [08:36:49]CheckFolder done [08:36:49]ProducePacketName [08:36:49]name=ofd_packets/00201272 [08:36:49]NVStorageSaveData ofd_packets/00201272 [08:36:49]File name is /storage/ofd_packets/00201272 [08:36:49]Write 302 bytes [08:36:49]NVStorageSaveData done [08:36:49]OFDSenderStorePacket done [08:36:49]KKMCreateOFDPacket done [08:36:49]NVStorageSaveData kkm_last_timestamp [08:36:49]File name is /storage/kkm_last_timestamp [08:36:49]Write 4 bytes [08:36:49]NVStorageSaveData done [08:36:49]ExternCall_PrintAddStr [08:36:49]wPrintStart [08:36:49]Write to MH i2c: 01 00 00 3E 15 53 [08:36:49]Write i2c OK [08:36:49]MH_I2C_Read... [08:36:49]Read from MH i2c: 01 [08:36:49]MH_I2C_Read... [08:36:49]Read from MH i2c: 01 07 00 [08:36:49]MH_I2C_Read... [08:36:49]Read from MH i2c: 01 07 00 3E 15 00 00 00 00 00 FF 0F 68 [08:36:49]RasterBufferAndPrint [08:36:49]line Счет N : (1)449019 [08:36:49]line ИНН: 02508201610067 [08:36:49]line Контрольно-Кассовый Чек [08:36:49]line ПРОДАЖА [08:36:49]line ТРК (МРК, ГНК) : 32 [08:36:49]line Товар: 2710124130 [08:36:49]line SUPER 92-К-5 [08:36:49]line 5.850 * 68.40 [08:36:49]line = 400.14 [08:36:49]line НДС 12% НСП 1% [08:36:49]line > о реализуемом товаре [08:36:49]line ОКРУГЛЕНИЕ: -0.14 [08:36:49]line ИТОГО: 400.00 [08:36:49]line Внесено: 400.00 [08:36:49]line СДАЧА: 0.00 [08:36:49]line НСП 1% : 3.54 [08:36:49]line НДС 12% : 42.49 [08:36:49]line Наличными: 400.00 [08:36:49]line Безнал.: 0.00 [08:36:49]line Место: АЗС № 171 "Партнер Нефть" [08:36:49]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:36:49]line СНО: Общий режим [08:36:49]line Чек 34 26.10.2024 08:36 [08:36:49]line Смена: 543 ФФД: 1.0 [08:36:49]line ЗНМ: 0300000109 [08:36:49]line РНМ: 0000000000091777 [08:36:49]line Версия ККМ: 001 [08:36:49]line ФМ: 0000000000871756 [08:36:49]line ФД: 201272 [08:36:49]line ФПД: 122636859859319 [08:36:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T083650&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201272&fm=122636859859319&tin=02508201610067®Number=0000000000091777&sum=40000 [08:36:49]OFD Sender: Processing packet 201272 [packets to send 112, broken 111] [08:36:49]ProducePacketName [08:36:49]name=ofd_packets/00201272 [08:36:49]OFD Sender: To server: pG, [08:36:49]CommunicateWithHost lk.salyk.kg:30040 [08:36:49]ConnectInit lk.salyk.kg [08:36:49]written 0, free lines is 4095 [08:36:49]Connected sock=10 [08:36:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 83 9A 08 01 F5 FC 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 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 22 00 00 00 F4 03 04 00 22 AA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 38 12 03 00 35 04 06 00 6F 89 9E 77 E1 77 95 73 45 EE 7F 32 2D 48 [08:36:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B6 98 47 00 FB C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 38 12 03 00 F4 03 04 00 CC 55 1C 67 B6 04 01 00 00 FF D3 59 4A C7 BE 63 A2 [08:36:49]CommunicateWithHost err = 0 [08:36:49]CheckOFDResponse [08:36:49]1017 (14) - 77093643461234 [08:36:49]1041 (16) - 0000000000871756 [08:36:49]1040 (4) - 201272 [08:36:49]1012 (4) - 26.10.2024 02:37 [08:36:49]1206 (1) - 0 [08:36:49]OFD Sender: Remove packet 201272 [08:36:49]ProducePacketName [08:36:49]name=ofd_packets/00201272 [08:36:49]NVStorageDeleteData [08:36:49]Write to MH i2c: 01 00 00 69 15 7E [08:36:49]Write i2c OK [08:36:49]MH_I2C_Read... [08:36:49]Read from MH i2c: 01 [08:36:49]MH_I2C_Read... [08:36:49]Read from MH i2c: 01 07 00 [08:36:49]MH_I2C_Read... [08:36:49]Read from MH i2c: 01 07 00 69 15 00 00 00 00 00 A4 0C 35 [08:36:49]RasterBufferAndPrint [08:36:49]line [08:36:49]line [08:36:49]line [08:36:49]line [08:36:49]line [08:36:49]written 0, free lines is 3242 [08:36:49]MH_Cut [08:36:49]Write to MH i2c: D1 01 00 70 15 01 57 [08:36:49]Write i2c OK [08:36:49]MH_I2C_Read... [08:36:49]Read from MH i2c: D1 [08:36:49]MH_I2C_Read... [08:36:49]Read from MH i2c: D1 01 00 [08:36:49]MH_I2C_Read... [08:36:49]Read from MH i2c: D1 01 00 70 15 00 56 [08:36:49]Write to MH i2c: 01 00 00 71 15 86 [08:36:49]Write i2c OK [08:36:49]MH_I2C_Read... [08:36:50]OFD Sender: No OFD packet to send [08:36:50]*** Cut start [08:36:50]*** Purtial cut [08:36:50]*** Stage 1: CUTSNS_PIN = 1 [08:36:51]Read from MH i2c: 01 [08:36:51]MH_I2C_Read... [08:36:51]*** Stop cut motor [08:36:51]*** Cut end [08:36:51]Read from MH i2c: 01 07 00 [08:36:51]MH_I2C_Read... [08:36:51]Read from MH i2c: 01 07 00 71 15 00 00 00 00 00 FF 0F 9B [08:36:51]process_action close_receipt done [08:36:51]requested_data is exist [08:36:51]produce_requested_data [08:36:51]requested_item fm.sn is exist - process it [08:36:51]wFMCommunicate request_size=4 [08:36:51]MH_SAM_APDU [08:36:51]CAPDU: 80 11 00 00 [08:36:51]Write to MH i2c: E2 08 00 72 15 80 11 00 00 00 00 00 00 01 [08:36:51]Write i2c OK [08:36:51]MH_I2C_Read... [08:36:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:51]Read from MH i2c: E2 [08:36:51]MH_I2C_Read... [08:36:51]Read from MH i2c: E2 17 00 [08:36:51]MH_I2C_Read... [08:36:51]Read from MH i2c: E2 17 00 72 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 56 [08:36:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:36:51]wFMCommunicate OK [08:36:51]requested_item fd.num is exist - process it [08:36:51]SAM_PROTO_GetFieldsCounters [08:36:51]wFMCommunicate request_size=4 [08:36:51]MH_SAM_APDU [08:36:51]CAPDU: 80 13 00 00 [08:36:51]Write to MH i2c: E2 08 00 73 15 80 13 00 00 00 00 00 00 04 [08:36:51]Write i2c OK [08:36:51]MH_I2C_Read... [08:36:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:36:51]Read from MH i2c: E2 [08:36:51]MH_I2C_Read... [08:36:51]Read from MH i2c: E2 62 00 [08:36:51]MH_I2C_Read... [08:36:51]Read from MH i2c: E2 62 00 73 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 38 12 03 00 0E 04 04 00 1F 02 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 01 [08:36:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 38 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:36:51]wFMCommunicate OK [08:36:51]SAM_PROTO_GetFieldsCounters done [08:36:51]requested_item shift.num is exist - process it [08:36:51]requested_item shift.opened is exist - process it [08:36:51]req_shift_opened [08:36:51]FM_GetShiftState [08:36:51]SAM_PROTO_GetShiftState [08:36:51]wFMCommunicate request_size=4 [08:36:51]MH_SAM_APDU [08:36:51]CAPDU: 80 13 01 00 [08:36:51]Write to MH i2c: E2 08 00 74 15 80 13 01 00 00 00 00 00 06 [08:36:51]Write i2c OK [08:36:51]MH_I2C_Read... [08:36:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:51]Read from MH i2c: E2 [08:36:51]MH_I2C_Read... [08:36:51]Read from MH i2c: E2 0E 00 [08:36:51]MH_I2C_Read... [08:36:51]Read from MH i2c: E2 0E 00 74 15 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 15 [08:36:51]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:36:51]wFMCommunicate OK [08:36:51]SAM_PROTO_GetShiftState done [08:36:51]FM_GetShiftState done [08:36:51]req_shift_opened done [08:36:51]requested_item shift.open_date is exist - process it [08:36:51]req_shift_open_date [08:36:51]req_shift_open_date done [08:36:51]produce_requested_data done [08:36:51]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201272,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [08:36:51]process_action_free close_receipt [08:36:51]json_value_free [08:36:51]json_value_free done [08:36:51]process_json_proto returns [08:36:51]Send response to host [08:36:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201272,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [08:36:51]free response buf [08:36:51]execute_script done [08:36:51]execute_script returns [08:36:51]free content buf [08:36:51]Sock 9.Close socket [08:36:51]Sock 9.Thread stoped [08:36:55]OFD Sender: No OFD packet to send [08:37:00]OFD Sender: No OFD packet to send [08:37:05]OFD Sender: No OFD packet to send [08:37:10]OFD Sender: No OFD packet to send [08:37:15]OFD Sender: No OFD packet to send [08:37:20]OFD Sender: No OFD packet to send [08:37:25]OFD Sender: No OFD packet to send [08:37:30]OFD Sender: No OFD packet to send [08:37:35]OFD Sender: No OFD packet to send [08:37:40]OFD Sender: No OFD packet to send [08:37:45]OFD Sender: No OFD packet to send [08:37:50]OFD Sender: No OFD packet to send [08:37:55]OFD Sender: No OFD packet to send [08:38:00]OFD Sender: No OFD packet to send [08:38:02]accept exits with 7 [08:38:02]New connection [08:38:02]New thread 3067559268 created [08:38:02]Thread 3067415908 joined [08:38:02]Waiting for new connection... [08:38:02] Sock 7.Parse request [08:38:02]Sock 7.Check first char [08:38:02]Sock 7.First char is OK [08:38:02]request: POST /json_proto HTTP/1.0 [08:38:02]Method: POST [08:38:02]URL: /json_proto [08:38:02]Method is POST - this is cgi request [08:38:02]url: /json_proto [08:38:02]query_string will be loaded in cgi processing [08:38:02]execute_cgi json_proto POST (null) [08:38:02]execute_cgi path=json_proto method=POST [08:38:02]POST find Content-Length [08:38:02]Host: 172.17.63.195:8080 [08:38:02]Content-Length: 677 [08:38:02]Content-Type: application/json [08:38:02] [08:38:02]POST finish read [08:38:02]Found Content-Length = 677 [08:38:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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" ] } } [08:38:02]execute_script... [08:38: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)449021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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" ] } } [08:38:02]POST & json_proto [08:38:02]process_json_proto [08:38:02]json parsed OK: [08:38:02]protocol is kg_v1.0 [08:38:02]action value=close_receipt [08:38:02]process_action close_receipt [08:38:02]cmd_close_receipt [08:38:02]MH_GetDate [08:38:02]Write to MH i2c: F0 00 00 75 15 79 [08:38:02]Write i2c OK [08:38:02]MH_I2C_Read... [08:38:02]Read from MH i2c: F0 [08:38:02]MH_I2C_Read... [08:38:02]Read from MH i2c: F0 09 00 [08:38:02]MH_I2C_Read... [08:38:02]Read from MH i2c: F0 09 00 75 15 00 6E AA 1C 67 68 46 19 67 4B [08:38:02]GetLastDocTimeStamp 1729931810 [08:38:02]current date 1729931886 [08:38:02]FM_GetShiftState [08:38:02]SAM_PROTO_GetShiftState [08:38:02]wFMCommunicate request_size=4 [08:38:02]MH_SAM_APDU [08:38:02]CAPDU: 80 13 01 00 [08:38:02]Write to MH i2c: E2 08 00 76 15 80 13 01 00 00 00 00 00 08 [08:38:02]Write i2c OK [08:38:02]MH_I2C_Read... [08:38:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:02]Read from MH i2c: E2 [08:38:02]MH_I2C_Read... [08:38:02]Read from MH i2c: E2 0E 00 [08:38:02]MH_I2C_Read... [08:38:02]Read from MH i2c: E2 0E 00 76 15 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 17 [08:38:02]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:38:02]wFMCommunicate OK [08:38:02]SAM_PROTO_GetShiftState done [08:38:02]FM_GetShiftState done [08:38:02]opened in 1729900879 [08:38:02]opened+sec_in_day 1729987279 [08:38:02]quantity*price = 60009 [08:38:02]sum+1 = 60010 [08:38:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 35 26.10.2024 08:38 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201273 ФПД: 101849954178035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T083806&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201273&fm=101849954178035&tin=02508201610067®Number=0000000000091777&sum=60000 [08:38:03]StoreToDocumentArchive [08:38:03]shift 543 fd 201273 [08:38:03]save to /storage/0543/doc_00201273 [08:38:03]save last doc name /storage/0543/doc_00201273 to /storage/kkm_last_doc_name [08:38:03]save OK [08:38:03]Clear old archive folders... [08:38:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:38:03]tlvbuf is 01762520 [08:38:03]SAM_PROTO_ClearQueue [08:38:03]wFMCommunicate request_size=4 [08:38:03]MH_SAM_APDU [08:38:03]CAPDU: 80 09 00 00 [08:38:03]Write to MH i2c: E2 08 00 83 15 80 09 00 00 00 00 00 00 0A [08:38:03]Write i2c OK [08:38:03]MH_I2C_Read... [08:38:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:38:03]Read from MH i2c: E2 [08:38:03]MH_I2C_Read... [08:38:03]Read from MH i2c: E2 03 00 [08:38:03]MH_I2C_Read... [08:38:03]Read from MH i2c: E2 03 00 83 15 00 90 00 0C [08:38:03]RAPDU: 90 00 [08:38:03]wFMCommunicate OK [08:38:03]SAM_PROTO_ClearQueue done [08:38:03]KKMCreateOFDPacket [08:38:03]OFDProtocolAddRootSTLVToBuf [08:38:03]FM_MakeSignedData [08:38:03]FM_MakeSignedData [08:38:03]SAM_PROTO_SignData [08:38:03]wFMCommunicate request_size=4 [08:38:03]MH_SAM_APDU [08:38:03]CAPDU: 80 0D 01 02 [08:38:03]Write to MH i2c: E2 08 00 84 15 80 0D 01 02 00 00 00 00 12 [08:38:03]Write i2c OK [08:38:03]MH_I2C_Read... [08:38:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:38:04]Read from MH i2c: E2 [08:38:04]MH_I2C_Read... [08:38:04]Read from MH i2c: E2 03 00 [08:38:04]MH_I2C_Read... [08:38:04]Read from MH i2c: E2 03 00 84 15 00 90 00 0D [08:38:04]RAPDU: 90 00 [08:38:04]wFMCommunicate OK [08:38:04]wFMCommunicate request_size=255 [08:38:04]MH_SAM_APDU [08:38: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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 23 00 00 00 F4 03 04 00 6E AA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 39 12 03 00 35 04 06 00 5C [08:38:04]Write to MH i2c: E2 02 01 85 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 23 00 00 00 F4 03 04 00 6E AA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 39 12 03 00 35 04 06 00 5C 00 00 0C [08:38:04]Write i2c OK [08:38:04]MH_I2C_Read... [08:38:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:04]Read from MH i2c: E2 [08:38:04]MH_I2C_Read... [08:38:04]Read from MH i2c: E2 03 00 [08:38:04]MH_I2C_Read... [08:38:04]Read from MH i2c: E2 03 00 85 15 00 90 00 0E [08:38:04]RAPDU: 90 00 [08:38:04]wFMCommunicate OK [08:38:04]wFMCommunicate request_size=10 [08:38:04]MH_SAM_APDU [08:38:04]CAPDU: 80 0D 02 02 05 A1 CA 56 D3 F3 [08:38:04]Write to MH i2c: E2 0D 00 86 15 80 0D 02 02 05 00 A1 CA 56 D3 F3 00 00 A6 [08:38:04]Write i2c OK [08:38:04]MH_I2C_Read... [08:38:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:04]Read from MH i2c: E2 [08:38:04]MH_I2C_Read... [08:38:04]Read from MH i2c: E2 03 00 [08:38:04]MH_I2C_Read... [08:38:04]Read from MH i2c: E2 03 00 86 15 00 90 00 0F [08:38:04]RAPDU: 90 00 [08:38:04]wFMCommunicate OK [08:38:04]wFMCommunicate request_size=4 [08:38:04]MH_SAM_APDU [08:38:04]CAPDU: 80 0D 03 02 [08:38:04]Write to MH i2c: E2 08 00 87 15 80 0D 03 02 00 00 00 00 17 [08:38:04]Write i2c OK [08:38:04]MH_I2C_Read... [08:38:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:38:04]Read from MH i2c: E2 [08:38:04]MH_I2C_Read... [08:38:04]Read from MH i2c: E2 0B 00 [08:38:04]MH_I2C_Read... [08:38:04]Read from MH i2c: E2 0B 00 87 15 00 EC 9C 54 9F B5 D5 81 82 90 00 20 [08:38:04]RAPDU: EC 9C 54 9F B5 D5 81 82 90 00 [08:38:04]wFMCommunicate OK [08:38:04]SAM_PROTO_SignData done [08:38:04]FM_MakeSignedData done [08:38:04]CreateOFDProtocolMessage [08:38:04]wFMCommunicate request_size=4 [08:38:04]MH_SAM_APDU [08:38:04]CAPDU: 80 11 00 00 [08:38:04]Write to MH i2c: E2 08 00 88 15 80 11 00 00 00 00 00 00 17 [08:38:04]Write i2c OK [08:38:04]MH_I2C_Read... [08:38:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:04]Read from MH i2c: E2 [08:38:04]MH_I2C_Read... [08:38:04]Read from MH i2c: E2 17 00 [08:38:04]MH_I2C_Read... [08:38:04]Read from MH i2c: E2 17 00 88 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6C [08:38:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:38:04]wFMCommunicate OK [08:38:04]CreateOFDProtocolMessage done [08:38:04]OFDSenderStorePacket 201273 [08:38:04]StoreOFDPacket docnum=201273 [08:38:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 14 B7 07 01 E7 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 23 00 00 00 F4 03 04 00 6E AA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 39 12 03 00 35 04 06 00 5C A1 CA 56 D3 F3 EC 9C 54 9F B5 D5 81 82 [08:38:04]CheckFolder [08:38:04]dirname=/storage/ofd_packets [08:38:04]CheckFolder done [08:38:04]ProducePacketName [08:38:04]name=ofd_packets/00201273 [08:38:04]NVStorageSaveData ofd_packets/00201273 [08:38:04]File name is /storage/ofd_packets/00201273 [08:38:04]Write 301 bytes [08:38:04]NVStorageSaveData done [08:38:04]OFDSenderStorePacket done [08:38:04]KKMCreateOFDPacket done [08:38:04]NVStorageSaveData kkm_last_timestamp [08:38:04]File name is /storage/kkm_last_timestamp [08:38:04]Write 4 bytes [08:38:04]NVStorageSaveData done [08:38:04]ExternCall_PrintAddStr [08:38:04]wPrintStart [08:38:04]Write to MH i2c: 01 00 00 89 15 9E [08:38:04]Write i2c OK [08:38:04]MH_I2C_Read... [08:38:04]Read from MH i2c: 01 [08:38:04]MH_I2C_Read... [08:38:04]Read from MH i2c: 01 07 00 [08:38:04]MH_I2C_Read... [08:38:04]Read from MH i2c: 01 07 00 89 15 00 00 00 00 00 FF 0F B3 [08:38:04]RasterBufferAndPrint [08:38:04]line Счет N : (1)449021 [08:38:04]line ИНН: 02508201610067 [08:38:04]line Контрольно-Кассовый Чек [08:38:04]line ПРОДАЖА [08:38:04]line ТРК (МРК, ГНК) : 52 [08:38:04]line Товар: 2710124130 [08:38:04]line Аи-92-К-2 [08:38:04]line 8.970 * 66.90 [08:38:04]line = 600.09 [08:38:04]line НДС 12% НСП 1% [08:38:04]line > о реализуемом товаре [08:38:04]line ОКРУГЛЕНИЕ: -0.09 [08:38:04]line ИТОГО: 600.00 [08:38:04]line Внесено: 600.00 [08:38:04]line СДАЧА: 0.00 [08:38:04]line НСП 1% : 5.31 [08:38:04]line НДС 12% : 63.73 [08:38:04]line Наличными: 600.00 [08:38:04]line Безнал.: 0.00 [08:38:04]line Место: АЗС № 171 "Партнер Нефть" [08:38:04]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:38:04]line СНО: Общий режим [08:38:04]line Чек 35 26.10.2024 08:38 [08:38:04]line Смена: 543 ФФД: 1.0 [08:38:04]line ЗНМ: 0300000109 [08:38:04]line РНМ: 0000000000091777 [08:38:04]line Версия ККМ: 001 [08:38:04]line ФМ: 0000000000871756 [08:38:04]line ФД: 201273 [08:38:04]line ФПД: 101849954178035 [08:38:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T083806&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201273&fm=101849954178035&tin=02508201610067®Number=0000000000091777&sum=60000 [08:38:04]OFD Sender: Processing packet 201273 [packets to send 112, broken 111] [08:38:04]ProducePacketName [08:38:04]name=ofd_packets/00201273 [08:38:04]OFD Sender: To server: pG, [08:38:04]CommunicateWithHost lk.salyk.kg:30040 [08:38:04]ConnectInit lk.salyk.kg [08:38:04]written 0, free lines is 4095 [08:38:04]Connected sock=10 [08:38:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 14 B7 07 01 E7 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 23 00 00 00 F4 03 04 00 6E AA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 39 12 03 00 35 04 06 00 5C A1 CA 56 D3 F3 EC 9C 54 9F B5 D5 81 82 [08:38:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 9F D4 47 00 87 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 39 12 03 00 F4 03 04 00 17 56 1C 67 B6 04 01 00 00 E3 9F 62 4C 8E BB 8B 18 [08:38:05]CommunicateWithHost err = 0 [08:38:05]CheckOFDResponse [08:38:05]1017 (14) - 77093643461234 [08:38:05]1041 (16) - 0000000000871756 [08:38:05]1040 (4) - 201273 [08:38:05]1012 (4) - 26.10.2024 02:38 [08:38:05]1206 (1) - 0 [08:38:05]OFD Sender: Remove packet 201273 [08:38:05]ProducePacketName [08:38:05]name=ofd_packets/00201273 [08:38:05]NVStorageDeleteData [08:38:05]Write to MH i2c: 01 00 00 B4 15 C9 [08:38:05]Write i2c OK [08:38:05]MH_I2C_Read... [08:38:05]Read from MH i2c: 01 [08:38:05]MH_I2C_Read... [08:38:05]Read from MH i2c: 01 07 00 [08:38:05]MH_I2C_Read... [08:38:05]Read from MH i2c: 01 07 00 B4 15 00 00 00 00 00 97 0C 73 [08:38:05]RasterBufferAndPrint [08:38:05]line [08:38:05]line [08:38:05]line [08:38:05]line [08:38:05]line [08:38:05]written 0, free lines is 3229 [08:38:05]MH_Cut [08:38:05]Write to MH i2c: D1 01 00 BB 15 01 A2 [08:38:05]Write i2c OK [08:38:05]MH_I2C_Read... [08:38:05]Read from MH i2c: D1 [08:38:05]MH_I2C_Read... [08:38:05]Read from MH i2c: D1 01 00 [08:38:05]MH_I2C_Read... [08:38:05]Read from MH i2c: D1 01 00 BB 15 00 A1 [08:38:05]Write to MH i2c: 01 00 00 BC 15 D1 [08:38:05]Write i2c OK [08:38:05]MH_I2C_Read... [08:38:05]OFD Sender: No OFD packet to send [08:38:06]*** Cut start [08:38:06]*** Purtial cut [08:38:06]*** Stage 1: CUTSNS_PIN = 1 [08:38:06]Read from MH i2c: 01 [08:38:06]MH_I2C_Read... [08:38:06]*** Stop cut motor [08:38:06]*** Cut end [08:38:06]Read from MH i2c: 01 07 00 [08:38:06]MH_I2C_Read... [08:38:06]Read from MH i2c: 01 07 00 BC 15 00 00 00 00 00 FF 0F E6 [08:38:06]process_action close_receipt done [08:38:06]requested_data is exist [08:38:06]produce_requested_data [08:38:06]requested_item fm.sn is exist - process it [08:38:06]wFMCommunicate request_size=4 [08:38:06]MH_SAM_APDU [08:38:06]CAPDU: 80 11 00 00 [08:38:06]Write to MH i2c: E2 08 00 BD 15 80 11 00 00 00 00 00 00 4C [08:38:06]Write i2c OK [08:38:06]MH_I2C_Read... [08:38:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:06]Read from MH i2c: E2 [08:38:06]MH_I2C_Read... [08:38:06]Read from MH i2c: E2 17 00 [08:38:06]MH_I2C_Read... [08:38:06]Read from MH i2c: E2 17 00 BD 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A1 [08:38:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:38:06]wFMCommunicate OK [08:38:06]requested_item fd.num is exist - process it [08:38:06]SAM_PROTO_GetFieldsCounters [08:38:06]wFMCommunicate request_size=4 [08:38:06]MH_SAM_APDU [08:38:06]CAPDU: 80 13 00 00 [08:38:06]Write to MH i2c: E2 08 00 BE 15 80 13 00 00 00 00 00 00 4F [08:38:06]Write i2c OK [08:38:06]MH_I2C_Read... [08:38:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:38:06]Read from MH i2c: E2 [08:38:06]MH_I2C_Read... [08:38:06]Read from MH i2c: E2 62 00 [08:38:06]MH_I2C_Read... [08:38:06]Read from MH i2c: E2 62 00 BE 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 39 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [08:38:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 39 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:38:06]wFMCommunicate OK [08:38:06]SAM_PROTO_GetFieldsCounters done [08:38:06]requested_item shift.num is exist - process it [08:38:06]requested_item shift.opened is exist - process it [08:38:06]req_shift_opened [08:38:06]FM_GetShiftState [08:38:06]SAM_PROTO_GetShiftState [08:38:06]wFMCommunicate request_size=4 [08:38:06]MH_SAM_APDU [08:38:06]CAPDU: 80 13 01 00 [08:38:06]Write to MH i2c: E2 08 00 BF 15 80 13 01 00 00 00 00 00 51 [08:38:06]Write i2c OK [08:38:06]MH_I2C_Read... [08:38:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:06]Read from MH i2c: E2 [08:38:06]MH_I2C_Read... [08:38:06]Read from MH i2c: E2 0E 00 [08:38:06]MH_I2C_Read... [08:38:06]Read from MH i2c: E2 0E 00 BF 15 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 60 [08:38:06]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:38:06]wFMCommunicate OK [08:38:06]SAM_PROTO_GetShiftState done [08:38:06]FM_GetShiftState done [08:38:06]req_shift_opened done [08:38:06]requested_item shift.open_date is exist - process it [08:38:06]req_shift_open_date [08:38:06]req_shift_open_date done [08:38:06]produce_requested_data done [08:38:06]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201273,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [08:38:06]process_action_free close_receipt [08:38:06]json_value_free [08:38:06]json_value_free done [08:38:06]process_json_proto returns [08:38:06]Send response to host [08:38:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201273,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [08:38:06]free response buf [08:38:06]execute_script done [08:38:06]execute_script returns [08:38:06]free content buf [08:38:06]Sock 7.Close socket [08:38:06]Sock 7.Thread stoped [08:38:10]OFD Sender: No OFD packet to send [08:38:15]OFD Sender: No OFD packet to send [08:38:20]OFD Sender: No OFD packet to send [08:38:25]OFD Sender: No OFD packet to send [08:38:30]OFD Sender: No OFD packet to send [08:38:35]OFD Sender: No OFD packet to send [08:38:35]accept exits with 9 [08:38:35]New connection [08:38:35]New thread 3067415908 created [08:38:35]Thread 3067559268 joined [08:38:35]Waiting for new connection... [08:38:35] Sock 9.Parse request [08:38:35]Sock 9.Check first char [08:38:35]Sock 9.First char is OK [08:38:35]request: POST /json_proto HTTP/1.0 [08:38:35]Method: POST [08:38:35]URL: /json_proto [08:38:35]Method is POST - this is cgi request [08:38:35]url: /json_proto [08:38:35]query_string will be loaded in cgi processing [08:38:35]execute_cgi json_proto POST (null) [08:38:35]execute_cgi path=json_proto method=POST [08:38:35]POST find Content-Length [08:38:35]Host: 172.17.63.195:8080 [08:38:35]Content-Length: 812 [08:38:35]Content-Type: application/json [08:38:35] [08:38:35]POST finish read [08:38:35]Found Content-Length = 812 [08:38:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:35]execute_script... [08:38: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)449020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:35]POST & json_proto [08:38:35]process_json_proto [08:38:35]json parsed OK: [08:38:35]protocol is kg_v1.0 [08:38:35]action value=close_receipt [08:38:35]process_action close_receipt [08:38:35]cmd_close_receipt [08:38:35]MH_GetDate [08:38:35]Write to MH i2c: F0 00 00 C0 15 C4 [08:38:35]Write i2c OK [08:38:35]MH_I2C_Read... [08:38:35]Read from MH i2c: F0 [08:38:35]MH_I2C_Read... [08:38:35]Read from MH i2c: F0 09 00 [08:38:35]MH_I2C_Read... [08:38:35]Read from MH i2c: F0 09 00 C0 15 00 8F AA 1C 67 68 46 19 67 B7 [08:38:35]GetLastDocTimeStamp 1729931886 [08:38:35]current date 1729931919 [08:38:35]FM_GetShiftState [08:38:35]SAM_PROTO_GetShiftState [08:38:35]wFMCommunicate request_size=4 [08:38:35]MH_SAM_APDU [08:38:35]CAPDU: 80 13 01 00 [08:38:35]Write to MH i2c: E2 08 00 C1 15 80 13 01 00 00 00 00 00 53 [08:38:35]Write i2c OK [08:38:35]MH_I2C_Read... [08:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:35]Read from MH i2c: E2 [08:38:35]MH_I2C_Read... [08:38:35]Read from MH i2c: E2 0E 00 [08:38:35]MH_I2C_Read... [08:38:35]Read from MH i2c: E2 0E 00 C1 15 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 62 [08:38:35]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:38:35]wFMCommunicate OK [08:38:35]SAM_PROTO_GetShiftState done [08:38:35]FM_GetShiftState done [08:38:35]opened in 1729900879 [08:38:35]opened+sec_in_day 1729987279 [08:38:35]quantity*price = 200001 [08:38:35]sum+1 = 200003 [08:38:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.02 НСП 1% : 17.70 НДС 12% : 212.39 Наличными: 0.00 Безнал.: 2000.02 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 36 26.10.2024 08:38 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871756 ФД: 201274 ФПД: 75050659726183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T083839&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201274&fm=75050659726183&tin=02508201610067®Number=0000000000091777&sum=200002 [08:38:37]StoreToDocumentArchive [08:38:37]shift 543 fd 201274 [08:38:37]save to /storage/0543/doc_00201274 [08:38:37]save last doc name /storage/0543/doc_00201274 to /storage/kkm_last_doc_name [08:38:37]save OK [08:38:37]Clear old archive folders... [08:38:37]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:38:37]tlvbuf is 01718FD0 [08:38:37]SAM_PROTO_ClearQueue [08:38:37]wFMCommunicate request_size=4 [08:38:37]MH_SAM_APDU [08:38:37]CAPDU: 80 09 00 00 [08:38:37]Write to MH i2c: E2 08 00 CE 15 80 09 00 00 00 00 00 00 55 [08:38:37]Write i2c OK [08:38:37]MH_I2C_Read... [08:38:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:38:37]Read from MH i2c: E2 [08:38:37]MH_I2C_Read... [08:38:37]Read from MH i2c: E2 03 00 [08:38:37]MH_I2C_Read... [08:38:37]Read from MH i2c: E2 03 00 CE 15 00 90 00 57 [08:38:37]RAPDU: 90 00 [08:38:37]wFMCommunicate OK [08:38:37]SAM_PROTO_ClearQueue done [08:38:37]KKMCreateOFDPacket [08:38:37]OFDProtocolAddRootSTLVToBuf [08:38:37]FM_MakeSignedData [08:38:37]FM_MakeSignedData [08:38:37]SAM_PROTO_SignData [08:38:37]wFMCommunicate request_size=4 [08:38:37]MH_SAM_APDU [08:38:37]CAPDU: 80 0D 01 02 [08:38:37]Write to MH i2c: E2 08 00 CF 15 80 0D 01 02 00 00 00 00 5D [08:38:37]Write i2c OK [08:38:37]MH_I2C_Read... [08:38:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:38:37]Read from MH i2c: E2 [08:38:37]MH_I2C_Read... [08:38:37]Read from MH i2c: E2 03 00 [08:38:37]MH_I2C_Read... [08:38:37]Read from MH i2c: E2 03 00 CF 15 00 90 00 58 [08:38:37]RAPDU: 90 00 [08:38:37]wFMCommunicate OK [08:38:37]wFMCommunicate request_size=255 [08:38:37]MH_SAM_APDU [08:38:37]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 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 8F AA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3A 12 03 00 35 04 06 00 [08:38:37]Write to MH i2c: E2 02 01 D0 15 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 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 8F AA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3A 12 03 00 35 04 06 00 00 00 07 [08:38:37]Write i2c OK [08:38:37]MH_I2C_Read... [08:38:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:37]Read from MH i2c: E2 [08:38:37]MH_I2C_Read... [08:38:37]Read from MH i2c: E2 03 00 [08:38:37]MH_I2C_Read... [08:38:37]Read from MH i2c: E2 03 00 D0 15 00 90 00 59 [08:38:37]RAPDU: 90 00 [08:38:37]wFMCommunicate OK [08:38:37]wFMCommunicate request_size=11 [08:38:37]MH_SAM_APDU [08:38:37]CAPDU: 80 0D 02 02 06 44 42 17 E9 C3 67 [08:38:37]Write to MH i2c: E2 0E 00 D1 15 80 0D 02 02 06 00 44 42 17 E9 C3 67 00 00 1C [08:38:37]Write i2c OK [08:38:37]MH_I2C_Read... [08:38:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:37]Read from MH i2c: E2 [08:38:37]MH_I2C_Read... [08:38:37]Read from MH i2c: E2 03 00 [08:38:37]MH_I2C_Read... [08:38:37]Read from MH i2c: E2 03 00 D1 15 00 90 00 5A [08:38:37]RAPDU: 90 00 [08:38:37]wFMCommunicate OK [08:38:37]wFMCommunicate request_size=4 [08:38:37]MH_SAM_APDU [08:38:37]CAPDU: 80 0D 03 02 [08:38:37]Write to MH i2c: E2 08 00 D2 15 80 0D 03 02 00 00 00 00 62 [08:38:37]Write i2c OK [08:38:37]MH_I2C_Read... [08:38:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:38:37]Read from MH i2c: E2 [08:38:37]MH_I2C_Read... [08:38:37]Read from MH i2c: E2 0B 00 [08:38:37]MH_I2C_Read... [08:38:37]Read from MH i2c: E2 0B 00 D2 15 00 C8 D8 68 97 CA 98 08 07 90 00 73 [08:38:37]RAPDU: C8 D8 68 97 CA 98 08 07 90 00 [08:38:37]wFMCommunicate OK [08:38:37]SAM_PROTO_SignData done [08:38:37]FM_MakeSignedData done [08:38:37]CreateOFDProtocolMessage [08:38:37]wFMCommunicate request_size=4 [08:38:37]MH_SAM_APDU [08:38:37]CAPDU: 80 11 00 00 [08:38:37]Write to MH i2c: E2 08 00 D3 15 80 11 00 00 00 00 00 00 62 [08:38:37]Write i2c OK [08:38:37]MH_I2C_Read... [08:38:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:37]Read from MH i2c: E2 [08:38:37]MH_I2C_Read... [08:38:37]Read from MH i2c: E2 17 00 [08:38:37]MH_I2C_Read... [08:38:37]Read from MH i2c: E2 17 00 D3 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B7 [08:38:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:38:37]wFMCommunicate OK [08:38:37]CreateOFDProtocolMessage done [08:38:37]OFDSenderStorePacket 201274 [08:38:37]StoreOFDPacket docnum=201274 [08:38:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 2E B0 08 01 E5 E0 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 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 8F AA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3A 12 03 00 35 04 06 00 44 42 17 E9 C3 67 C8 D8 68 97 CA 98 08 07 [08:38:37]CheckFolder [08:38:37]dirname=/storage/ofd_packets [08:38:37]CheckFolder done [08:38:37]ProducePacketName [08:38:37]name=ofd_packets/00201274 [08:38:37]NVStorageSaveData ofd_packets/00201274 [08:38:37]File name is /storage/ofd_packets/00201274 [08:38:37]Write 302 bytes [08:38:37]NVStorageSaveData done [08:38:37]OFDSenderStorePacket done [08:38:37]KKMCreateOFDPacket done [08:38:37]NVStorageSaveData kkm_last_timestamp [08:38:37]File name is /storage/kkm_last_timestamp [08:38:37]Write 4 bytes [08:38:37]NVStorageSaveData done [08:38:37]ExternCall_PrintAddStr [08:38:37]wPrintStart [08:38:37]Write to MH i2c: 01 00 00 D4 15 E9 [08:38:37]Write i2c OK [08:38:37]MH_I2C_Read... [08:38:37]Read from MH i2c: 01 [08:38:37]MH_I2C_Read... [08:38:37]Read from MH i2c: 01 07 00 [08:38:37]MH_I2C_Read... [08:38:37]Read from MH i2c: 01 07 00 D4 15 00 00 00 00 00 FF 0F FE [08:38:37]RasterBufferAndPrint [08:38:37]line Счет N : (1)449020 [08:38:37]line ИНН: 02508201610067 [08:38:37]line Контрольно-Кассовый Чек [08:38:37]line ПРОДАЖА [08:38:37]line ТРК (МРК, ГНК) : 42 [08:38:37]line Товар: 2710124130 [08:38:37]line SUPER 92-К-5 [08:38:37]line 29.240 * 68.40 [08:38:37]line = 2000.02 [08:38:37]line НДС 12% НСП 1% [08:38:37]line > о реализуемом товаре [08:38:37]line ИТОГО: 2000.02 [08:38:37]line НСП 1% : 17.70 [08:38:37]line НДС 12% : 212.39 [08:38:37]line Наличными: 0.00 [08:38:37]line Безнал.: 2000.02 [08:38:37]line Место: АЗС № 171 "Партнер Нефть" [08:38:37]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:38:37]line СНО: Общий режим [08:38:37]line Чек 36 26.10.2024 08:38 [08:38:37]line Смена: 543 ФФД: 1.0 [08:38:37]line ЗНМ: 0300000109 [08:38:37]line РНМ: 0000000000091777 [08:38:37]line Версия ККМ: 001 [08:38:37]line Платежная система: Бакай Банк [08:38:37]line ФМ: 0000000000871756 [08:38:37]line ФД: 201274 [08:38:37]line ФПД: 75050659726183 [08:38:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T083839&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201274&fm=75050659726183&tin=02508201610067®Number=0000000000091777&sum=200002 [08:38:37]written 0, free lines is 4095 [08:38:37]OFD Sender: Processing packet 201274 [packets to send 112, broken 111] [08:38:37]ProducePacketName [08:38:37]name=ofd_packets/00201274 [08:38:37]OFD Sender: To server: pG, [08:38:37]CommunicateWithHost lk.salyk.kg:30040 [08:38:37]ConnectInit lk.salyk.kg [08:38:38]Connected sock=10 [08:38:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 2E B0 08 01 E5 E0 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 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 8F AA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3A 12 03 00 35 04 06 00 44 42 17 E9 C3 67 C8 D8 68 97 CA 98 08 07 [08:38:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 96 39 47 00 2F 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3A 12 03 00 F4 03 04 00 39 56 1C 67 B6 04 01 00 00 8C 27 2D 47 2D 76 C0 AC [08:38:38]CommunicateWithHost err = 0 [08:38:38]CheckOFDResponse [08:38:38]1017 (14) - 77093643461234 [08:38:38]1041 (16) - 0000000000871756 [08:38:38]1040 (4) - 201274 [08:38:38]1012 (4) - 26.10.2024 02:38 [08:38:38]1206 (1) - 0 [08:38:38]OFD Sender: Remove packet 201274 [08:38:38]ProducePacketName [08:38:38]name=ofd_packets/00201274 [08:38:38]NVStorageDeleteData [08:38:38]Write to MH i2c: 01 00 00 FE 15 13 [08:38:38]Write i2c OK [08:38:38]MH_I2C_Read... [08:38:38]Read from MH i2c: 01 [08:38:38]MH_I2C_Read... [08:38:38]Read from MH i2c: 01 07 00 [08:38:38]MH_I2C_Read... [08:38:38]Read from MH i2c: 01 07 00 FE 15 00 00 00 00 00 B6 0C DC [08:38:38]RasterBufferAndPrint [08:38:38]line [08:38:38]line [08:38:38]line [08:38:38]line [08:38:38]line [08:38:38]written 0, free lines is 3260 [08:38:38]MH_Cut [08:38:38]Write to MH i2c: D1 01 00 05 16 01 ED [08:38:38]Write i2c OK [08:38:38]MH_I2C_Read... [08:38:38]Read from MH i2c: D1 [08:38:38]MH_I2C_Read... [08:38:38]Read from MH i2c: D1 01 00 [08:38:38]MH_I2C_Read... [08:38:38]Read from MH i2c: D1 01 00 05 16 00 EC [08:38:38]Write to MH i2c: 01 00 00 06 16 1C [08:38:38]Write i2c OK [08:38:38]MH_I2C_Read... [08:38:38]OFD Sender: No OFD packet to send [08:38:39]*** Cut start [08:38:39]*** Purtial cut [08:38:39]*** Stage 1: CUTSNS_PIN = 1 [08:38:39]Read from MH i2c: 01 [08:38:39]MH_I2C_Read... [08:38:39]*** Stop cut motor [08:38:39]*** Cut end [08:38:39]Read from MH i2c: 01 07 00 [08:38:39]MH_I2C_Read... [08:38:39]Read from MH i2c: 01 07 00 06 16 00 00 00 00 00 FF 0F 31 [08:38:39]process_action close_receipt done [08:38:39]requested_data is exist [08:38:39]produce_requested_data [08:38:39]requested_item fm.sn is exist - process it [08:38:39]wFMCommunicate request_size=4 [08:38:39]MH_SAM_APDU [08:38:39]CAPDU: 80 11 00 00 [08:38:39]Write to MH i2c: E2 08 00 07 16 80 11 00 00 00 00 00 00 97 [08:38:39]Write i2c OK [08:38:39]MH_I2C_Read... [08:38:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:39]Read from MH i2c: E2 [08:38:39]MH_I2C_Read... [08:38:39]Read from MH i2c: E2 17 00 [08:38:39]MH_I2C_Read... [08:38:39]Read from MH i2c: E2 17 00 07 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EC [08:38:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:38:39]wFMCommunicate OK [08:38:39]requested_item fd.num is exist - process it [08:38:39]SAM_PROTO_GetFieldsCounters [08:38:39]wFMCommunicate request_size=4 [08:38:39]MH_SAM_APDU [08:38:39]CAPDU: 80 13 00 00 [08:38:39]Write to MH i2c: E2 08 00 08 16 80 13 00 00 00 00 00 00 9A [08:38:39]Write i2c OK [08:38:39]MH_I2C_Read... [08:38:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:38:39]Read from MH i2c: E2 [08:38:39]MH_I2C_Read... [08:38:39]Read from MH i2c: E2 62 00 [08:38:39]MH_I2C_Read... [08:38:39]Read from MH i2c: E2 62 00 08 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3A 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [08:38:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3A 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:38:39]wFMCommunicate OK [08:38:39]SAM_PROTO_GetFieldsCounters done [08:38:39]requested_item shift.num is exist - process it [08:38:39]requested_item shift.opened is exist - process it [08:38:39]req_shift_opened [08:38:39]FM_GetShiftState [08:38:39]SAM_PROTO_GetShiftState [08:38:39]wFMCommunicate request_size=4 [08:38:39]MH_SAM_APDU [08:38:39]CAPDU: 80 13 01 00 [08:38:39]Write to MH i2c: E2 08 00 09 16 80 13 01 00 00 00 00 00 9C [08:38:39]Write i2c OK [08:38:39]MH_I2C_Read... [08:38:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:39]Read from MH i2c: E2 [08:38:39]MH_I2C_Read... [08:38:39]Read from MH i2c: E2 0E 00 [08:38:39]MH_I2C_Read... [08:38:39]Read from MH i2c: E2 0E 00 09 16 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 AB [08:38:39]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:38:39]wFMCommunicate OK [08:38:39]SAM_PROTO_GetShiftState done [08:38:39]FM_GetShiftState done [08:38:39]req_shift_opened done [08:38:39]requested_item shift.open_date is exist - process it [08:38:39]req_shift_open_date [08:38:39]req_shift_open_date done [08:38:39]produce_requested_data done [08:38:39]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201274,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [08:38:39]process_action_free close_receipt [08:38:39]json_value_free [08:38:39]json_value_free done [08:38:39]process_json_proto returns [08:38:39]Send response to host [08:38:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201274,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [08:38:39]free response buf [08:38:39]execute_script done [08:38:39]execute_script returns [08:38:39]free content buf [08:38:39]Sock 9.Close socket [08:38:39]Sock 9.Thread stoped [08:38:43]OFD Sender: No OFD packet to send [08:38:48]OFD Sender: No OFD packet to send [08:38:53]OFD Sender: No OFD packet to send [08:38:58]OFD Sender: No OFD packet to send [08:39:03]OFD Sender: No OFD packet to send [08:39:08]OFD Sender: No OFD packet to send [08:39:13]OFD Sender: No OFD packet to send [08:39:18]OFD Sender: No OFD packet to send [08:39:23]OFD Sender: No OFD packet to send [08:39:28]OFD Sender: No OFD packet to send [08:39:33]OFD Sender: No OFD packet to send [08:39:38]OFD Sender: No OFD packet to send [08:39:43]OFD Sender: No OFD packet to send [08:39:48]OFD Sender: No OFD packet to send [08:39:53]OFD Sender: No OFD packet to send [08:39:58]OFD Sender: No OFD packet to send [08:40:03]OFD Sender: No OFD packet to send [08:40:08]OFD Sender: No OFD packet to send [08:40:13]OFD Sender: No OFD packet to send [08:40:18]OFD Sender: No OFD packet to send [08:40:23]OFD Sender: No OFD packet to send [08:40:28]OFD Sender: No OFD packet to send [08:40:33]OFD Sender: No OFD packet to send [08:40:38]OFD Sender: No OFD packet to send [08:40:43]OFD Sender: No OFD packet to send [08:40:45]accept exits with 7 [08:40:45]New connection [08:40:45]New thread 3067559268 created [08:40:45]Thread 3067415908 joined [08:40:45]Waiting for new connection... [08:40:45] Sock 7.Parse request [08:40:45]Sock 7.Check first char [08:40:45]Sock 7.First char is OK [08:40:45]request: POST /json_proto HTTP/1.0 [08:40:45]Method: POST [08:40:45]URL: /json_proto [08:40:45]Method is POST - this is cgi request [08:40:45]url: /json_proto [08:40:45]query_string will be loaded in cgi processing [08:40:45]execute_cgi json_proto POST (null) [08:40:45]execute_cgi path=json_proto method=POST [08:40:45]POST find Content-Length [08:40:45]Host: 172.17.63.195:8080 [08:40:45]Content-Length: 677 [08:40:45]Content-Type: application/json [08:40:45] [08:40:45]POST finish read [08:40:45]Found Content-Length = 677 [08:40:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:40:45]execute_script... [08:40: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)449022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:40:45]POST & json_proto [08:40:45]process_json_proto [08:40:45]json parsed OK: [08:40:45]protocol is kg_v1.0 [08:40:45]action value=close_receipt [08:40:45]process_action close_receipt [08:40:45]cmd_close_receipt [08:40:45]MH_GetDate [08:40:45]Write to MH i2c: F0 00 00 0A 16 0F [08:40:45]Write i2c OK [08:40:45]MH_I2C_Read... [08:40:45]Read from MH i2c: F0 [08:40:45]MH_I2C_Read... [08:40:45]Read from MH i2c: F0 09 00 [08:40:45]MH_I2C_Read... [08:40:45]Read from MH i2c: F0 09 00 0A 16 00 11 AB 1C 67 68 46 19 67 85 [08:40:45]GetLastDocTimeStamp 1729931919 [08:40:45]current date 1729932049 [08:40:45]FM_GetShiftState [08:40:45]SAM_PROTO_GetShiftState [08:40:45]wFMCommunicate request_size=4 [08:40:45]MH_SAM_APDU [08:40:45]CAPDU: 80 13 01 00 [08:40:45]Write to MH i2c: E2 08 00 0B 16 80 13 01 00 00 00 00 00 9E [08:40:45]Write i2c OK [08:40:45]MH_I2C_Read... [08:40:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:45]Read from MH i2c: E2 [08:40:46]MH_I2C_Read... [08:40:46]Read from MH i2c: E2 0E 00 [08:40:46]MH_I2C_Read... [08:40:46]Read from MH i2c: E2 0E 00 0B 16 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 AD [08:40:46]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:40:46]wFMCommunicate OK [08:40:46]SAM_PROTO_GetShiftState done [08:40:46]FM_GetShiftState done [08:40:46]opened in 1729900879 [08:40:46]opened+sec_in_day 1729987279 [08:40:46]quantity*price = 50041 [08:40:46]sum+1 = 50042 [08:40:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 37 26.10.2024 08:40 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201275 ФПД: 239897413201567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T084049&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201275&fm=239897413201567&tin=02508201610067®Number=0000000000091777&sum=50000 [08:40:47]StoreToDocumentArchive [08:40:47]shift 543 fd 201275 [08:40:47]save to /storage/0543/doc_00201275 [08:40:47]save last doc name /storage/0543/doc_00201275 to /storage/kkm_last_doc_name [08:40:47]save OK [08:40:47]Clear old archive folders... [08:40:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:40:47]tlvbuf is 0172E720 [08:40:47]SAM_PROTO_ClearQueue [08:40:47]wFMCommunicate request_size=4 [08:40:47]MH_SAM_APDU [08:40:47]CAPDU: 80 09 00 00 [08:40:47]Write to MH i2c: E2 08 00 18 16 80 09 00 00 00 00 00 00 A0 [08:40:47]Write i2c OK [08:40:47]MH_I2C_Read... [08:40:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:47]Read from MH i2c: E2 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 03 00 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 03 00 18 16 00 90 00 A2 [08:40:47]RAPDU: 90 00 [08:40:47]wFMCommunicate OK [08:40:47]SAM_PROTO_ClearQueue done [08:40:47]KKMCreateOFDPacket [08:40:47]OFDProtocolAddRootSTLVToBuf [08:40:47]FM_MakeSignedData [08:40:47]FM_MakeSignedData [08:40:47]SAM_PROTO_SignData [08:40:47]wFMCommunicate request_size=4 [08:40:47]MH_SAM_APDU [08:40:47]CAPDU: 80 0D 01 02 [08:40:47]Write to MH i2c: E2 08 00 19 16 80 0D 01 02 00 00 00 00 A8 [08:40:47]Write i2c OK [08:40:47]MH_I2C_Read... [08:40:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:47]Read from MH i2c: E2 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 03 00 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 03 00 19 16 00 90 00 A3 [08:40:47]RAPDU: 90 00 [08:40:47]wFMCommunicate OK [08:40:47]wFMCommunicate request_size=255 [08:40:47]MH_SAM_APDU [08:40: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 32 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 25 00 00 00 F4 03 04 00 11 AB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3B 12 03 00 35 04 06 00 DA [08:40:47]Write to MH i2c: E2 02 01 1A 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 32 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 25 00 00 00 F4 03 04 00 11 AB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3B 12 03 00 35 04 06 00 DA 00 00 EB [08:40:47]Write i2c OK [08:40:47]MH_I2C_Read... [08:40:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:47]Read from MH i2c: E2 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 03 00 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 03 00 1A 16 00 90 00 A4 [08:40:47]RAPDU: 90 00 [08:40:47]wFMCommunicate OK [08:40:47]wFMCommunicate request_size=10 [08:40:47]MH_SAM_APDU [08:40:47]CAPDU: 80 0D 02 02 05 2F 78 18 AE 9F [08:40:47]Write to MH i2c: E2 0D 00 1B 16 80 0D 02 02 05 00 2F 78 18 AE 9F 00 00 C1 [08:40:47]Write i2c OK [08:40:47]MH_I2C_Read... [08:40:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:47]Read from MH i2c: E2 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 03 00 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 03 00 1B 16 00 90 00 A5 [08:40:47]RAPDU: 90 00 [08:40:47]wFMCommunicate OK [08:40:47]wFMCommunicate request_size=4 [08:40:47]MH_SAM_APDU [08:40:47]CAPDU: 80 0D 03 02 [08:40:47]Write to MH i2c: E2 08 00 1C 16 80 0D 03 02 00 00 00 00 AD [08:40:47]Write i2c OK [08:40:47]MH_I2C_Read... [08:40:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:47]Read from MH i2c: E2 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 0B 00 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 0B 00 1C 16 00 BC F3 B2 68 8F 06 70 9D 90 00 19 [08:40:47]RAPDU: BC F3 B2 68 8F 06 70 9D 90 00 [08:40:47]wFMCommunicate OK [08:40:47]SAM_PROTO_SignData done [08:40:47]FM_MakeSignedData done [08:40:47]CreateOFDProtocolMessage [08:40:47]wFMCommunicate request_size=4 [08:40:47]MH_SAM_APDU [08:40:47]CAPDU: 80 11 00 00 [08:40:47]Write to MH i2c: E2 08 00 1D 16 80 11 00 00 00 00 00 00 AD [08:40:47]Write i2c OK [08:40:47]MH_I2C_Read... [08:40:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:47]Read from MH i2c: E2 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 17 00 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 17 00 1D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 02 [08:40:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:40:47]wFMCommunicate OK [08:40:47]CreateOFDProtocolMessage done [08:40:47]OFDSenderStorePacket 201275 [08:40:47]StoreOFDPacket docnum=201275 [08:40:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 EB 4B 07 01 E2 37 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 32 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 25 00 00 00 F4 03 04 00 11 AB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3B 12 03 00 35 04 06 00 DA 2F 78 18 AE 9F BC F3 B2 68 8F 06 70 9D [08:40:47]CheckFolder [08:40:47]dirname=/storage/ofd_packets [08:40:47]CheckFolder done [08:40:47]ProducePacketName [08:40:47]name=ofd_packets/00201275 [08:40:47]NVStorageSaveData ofd_packets/00201275 [08:40:47]File name is /storage/ofd_packets/00201275 [08:40:47]Write 301 bytes [08:40:47]NVStorageSaveData done [08:40:47]OFDSenderStorePacket done [08:40:47]KKMCreateOFDPacket done [08:40:47]NVStorageSaveData kkm_last_timestamp [08:40:47]File name is /storage/kkm_last_timestamp [08:40:47]Write 4 bytes [08:40:47]NVStorageSaveData done [08:40:47]ExternCall_PrintAddStr [08:40:47]wPrintStart [08:40:47]Write to MH i2c: 01 00 00 1E 16 34 [08:40:47]Write i2c OK [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: 01 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: 01 07 00 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: 01 07 00 1E 16 00 00 00 00 00 FF 0F 49 [08:40:47]RasterBufferAndPrint [08:40:47]line Счет N : (1)449022 [08:40:47]line ИНН: 02508201610067 [08:40:47]line Контрольно-Кассовый Чек [08:40:47]line ПРОДАЖА [08:40:47]line ТРК (МРК, ГНК) : 31 [08:40:47]line Товар: 2710124130 [08:40:47]line Аи-92-К-2 [08:40:47]line 7.480 * 66.90 [08:40:47]line = 500.41 [08:40:47]line НДС 12% НСП 1% [08:40:47]line > о реализуемом товаре [08:40:47]line ОКРУГЛЕНИЕ: -0.41 [08:40:47]line ИТОГО: 500.00 [08:40:47]line Внесено: 500.00 [08:40:47]line СДАЧА: 0.00 [08:40:47]line НСП 1% : 4.43 [08:40:47]line НДС 12% : 53.14 [08:40:47]line Наличными: 500.00 [08:40:47]line Безнал.: 0.00 [08:40:47]line Место: АЗС № 171 "Партнер Нефть" [08:40:47]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:40:47]line СНО: Общий режим [08:40:47]line Чек 37 26.10.2024 08:40 [08:40:47]line Смена: 543 ФФД: 1.0 [08:40:47]line ЗНМ: 0300000109 [08:40:47]line РНМ: 0000000000091777 [08:40:47]line Версия ККМ: 001 [08:40:47]line ФМ: 0000000000871756 [08:40:47]line ФД: 201275 [08:40:47]line ФПД: 239897413201567 [08:40:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T084049&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201275&fm=239897413201567&tin=02508201610067®Number=0000000000091777&sum=50000 [08:40:48]OFD Sender: Processing packet 201275 [packets to send 112, broken 111] [08:40:48]ProducePacketName [08:40:48]name=ofd_packets/00201275 [08:40:48]OFD Sender: To server: pG, [08:40:48]CommunicateWithHost lk.salyk.kg:30040 [08:40:48]ConnectInit lk.salyk.kg [08:40:48]written 0, free lines is 4095 [08:40:48]Connected sock=10 [08:40:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 EB 4B 07 01 E2 37 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 32 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 25 00 00 00 F4 03 04 00 11 AB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3B 12 03 00 35 04 06 00 DA 2F 78 18 AE 9F BC F3 B2 68 8F 06 70 9D [08:40:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 4C D5 47 00 99 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3B 12 03 00 F4 03 04 00 BB 56 1C 67 B6 04 01 00 00 EE B7 0E EB 33 9C 56 B8 [08:40:48]CommunicateWithHost err = 0 [08:40:48]CheckOFDResponse [08:40:48]1017 (14) - 77093643461234 [08:40:48]1041 (16) - 0000000000871756 [08:40:48]1040 (4) - 201275 [08:40:48]1012 (4) - 26.10.2024 02:40 [08:40:48]1206 (1) - 0 [08:40:48]OFD Sender: Remove packet 201275 [08:40:48]ProducePacketName [08:40:48]name=ofd_packets/00201275 [08:40:48]NVStorageDeleteData [08:40:48]Write to MH i2c: 01 00 00 49 16 5F [08:40:48]Write i2c OK [08:40:48]MH_I2C_Read... [08:40:48]Read from MH i2c: 01 [08:40:48]MH_I2C_Read... [08:40:48]Read from MH i2c: 01 07 00 [08:40:48]MH_I2C_Read... [08:40:48]Read from MH i2c: 01 07 00 49 16 00 00 00 00 00 A1 0C 13 [08:40:48]RasterBufferAndPrint [08:40:48]line [08:40:48]line [08:40:48]line [08:40:48]line [08:40:48]line [08:40:48]written 0, free lines is 3239 [08:40:48]MH_Cut [08:40:48]Write to MH i2c: D1 01 00 50 16 01 38 [08:40:48]Write i2c OK [08:40:48]MH_I2C_Read... [08:40:48]Read from MH i2c: D1 [08:40:48]MH_I2C_Read... [08:40:48]Read from MH i2c: D1 01 00 [08:40:48]MH_I2C_Read... [08:40:48]Read from MH i2c: D1 01 00 50 16 00 37 [08:40:48]Write to MH i2c: 01 00 00 51 16 67 [08:40:48]Write i2c OK [08:40:48]MH_I2C_Read... [08:40:48]OFD Sender: No OFD packet to send [08:40:49]*** Cut start [08:40:49]*** Purtial cut [08:40:49]*** Stage 1: CUTSNS_PIN = 1 [08:40:49]Read from MH i2c: 01 [08:40:49]MH_I2C_Read... [08:40:49]*** Stop cut motor [08:40:49]*** Cut end [08:40:49]Read from MH i2c: 01 07 00 [08:40:49]MH_I2C_Read... [08:40:49]Read from MH i2c: 01 07 00 51 16 00 00 00 00 00 FF 0F 7C [08:40:49]process_action close_receipt done [08:40:49]requested_data is exist [08:40:49]produce_requested_data [08:40:49]requested_item fm.sn is exist - process it [08:40:49]wFMCommunicate request_size=4 [08:40:49]MH_SAM_APDU [08:40:49]CAPDU: 80 11 00 00 [08:40:49]Write to MH i2c: E2 08 00 52 16 80 11 00 00 00 00 00 00 E2 [08:40:49]Write i2c OK [08:40:49]MH_I2C_Read... [08:40:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:49]Read from MH i2c: E2 [08:40:49]MH_I2C_Read... [08:40:49]Read from MH i2c: E2 17 00 [08:40:49]MH_I2C_Read... [08:40:49]Read from MH i2c: E2 17 00 52 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 37 [08:40:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:40:49]wFMCommunicate OK [08:40:49]requested_item fd.num is exist - process it [08:40:49]SAM_PROTO_GetFieldsCounters [08:40:49]wFMCommunicate request_size=4 [08:40:49]MH_SAM_APDU [08:40:49]CAPDU: 80 13 00 00 [08:40:49]Write to MH i2c: E2 08 00 53 16 80 13 00 00 00 00 00 00 E5 [08:40:49]Write i2c OK [08:40:49]MH_I2C_Read... [08:40:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:49]Read from MH i2c: E2 [08:40:49]MH_I2C_Read... [08:40:49]Read from MH i2c: E2 62 00 [08:40:49]MH_I2C_Read... [08:40:49]Read from MH i2c: E2 62 00 53 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3B 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [08:40:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3B 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:40:49]wFMCommunicate OK [08:40:49]SAM_PROTO_GetFieldsCounters done [08:40:49]requested_item shift.num is exist - process it [08:40:49]requested_item shift.opened is exist - process it [08:40:49]req_shift_opened [08:40:49]FM_GetShiftState [08:40:49]SAM_PROTO_GetShiftState [08:40:49]wFMCommunicate request_size=4 [08:40:49]MH_SAM_APDU [08:40:49]CAPDU: 80 13 01 00 [08:40:49]Write to MH i2c: E2 08 00 54 16 80 13 01 00 00 00 00 00 E7 [08:40:49]Write i2c OK [08:40:49]MH_I2C_Read... [08:40:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:49]Read from MH i2c: E2 [08:40:49]MH_I2C_Read... [08:40:49]Read from MH i2c: E2 0E 00 [08:40:49]MH_I2C_Read... [08:40:49]Read from MH i2c: E2 0E 00 54 16 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F6 [08:40:49]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:40:49]wFMCommunicate OK [08:40:49]SAM_PROTO_GetShiftState done [08:40:49]FM_GetShiftState done [08:40:49]req_shift_opened done [08:40:49]requested_item shift.open_date is exist - process it [08:40:49]req_shift_open_date [08:40:49]req_shift_open_date done [08:40:49]produce_requested_data done [08:40:49]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201275,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [08:40:49]process_action_free close_receipt [08:40:49]json_value_free [08:40:49]json_value_free done [08:40:49]process_json_proto returns [08:40:49]Send response to host [08:40:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201275,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [08:40:49]free response buf [08:40:49]execute_script done [08:40:49]execute_script returns [08:40:49]free content buf [08:40:49]Sock 7.Close socket [08:40:49]Sock 7.Thread stoped [08:40:53]OFD Sender: No OFD packet to send [08:40:58]OFD Sender: No OFD packet to send [08:41:03]OFD Sender: No OFD packet to send [08:41:08]OFD Sender: No OFD packet to send [08:41:13]OFD Sender: No OFD packet to send [08:41:18]OFD Sender: No OFD packet to send [08:41:23]OFD Sender: No OFD packet to send [08:41:28]OFD Sender: No OFD packet to send [08:41:33]OFD Sender: No OFD packet to send [08:41:38]OFD Sender: No OFD packet to send [08:41:43]OFD Sender: No OFD packet to send [08:41:48]OFD Sender: No OFD packet to send [08:41:53]OFD Sender: No OFD packet to send [08:41:58]OFD Sender: No OFD packet to send [08:42:03]OFD Sender: No OFD packet to send [08:42:08]OFD Sender: No OFD packet to send [08:42:13]OFD Sender: No OFD packet to send [08:42:18]OFD Sender: No OFD packet to send [08:42:23]OFD Sender: No OFD packet to send [08:42:28]OFD Sender: No OFD packet to send [08:42:33]OFD Sender: No OFD packet to send [08:42:37]accept exits with 9 [08:42:37]New connection [08:42:37]New thread 3067415908 created [08:42:37]Thread 3067559268 joined [08:42:37]Waiting for new connection... [08:42:37] Sock 9.Parse request [08:42:37]Sock 9.Check first char [08:42:37]Sock 9.First char is OK [08:42:37]request: POST /json_proto HTTP/1.0 [08:42:37]Method: POST [08:42:37]URL: /json_proto [08:42:37]Method is POST - this is cgi request [08:42:37]url: /json_proto [08:42:37]query_string will be loaded in cgi processing [08:42:37]execute_cgi json_proto POST (null) [08:42:37]execute_cgi path=json_proto method=POST [08:42:37]POST find Content-Length [08:42:37]Host: 172.17.63.195:8080 [08:42:37]Content-Length: 677 [08:42:37]Content-Type: application/json [08:42:37] [08:42:37]POST finish read [08:42:37]Found Content-Length = 677 [08:42:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:37]execute_script... [08:42:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:37]POST & json_proto [08:42:37]process_json_proto [08:42:37]json parsed OK: [08:42:37]protocol is kg_v1.0 [08:42:37]action value=close_receipt [08:42:37]process_action close_receipt [08:42:37]cmd_close_receipt [08:42:37]MH_GetDate [08:42:37]Write to MH i2c: F0 00 00 55 16 5A [08:42:37]Write i2c OK [08:42:37]MH_I2C_Read... [08:42:37]Read from MH i2c: F0 [08:42:37]MH_I2C_Read... [08:42:37]Read from MH i2c: F0 09 00 [08:42:37]MH_I2C_Read... [08:42:37]Read from MH i2c: F0 09 00 55 16 00 81 AB 1C 67 68 46 19 67 40 [08:42:37]GetLastDocTimeStamp 1729932049 [08:42:37]current date 1729932161 [08:42:37]FM_GetShiftState [08:42:37]SAM_PROTO_GetShiftState [08:42:37]wFMCommunicate request_size=4 [08:42:37]MH_SAM_APDU [08:42:37]CAPDU: 80 13 01 00 [08:42:37]Write to MH i2c: E2 08 00 56 16 80 13 01 00 00 00 00 00 E9 [08:42:37]Write i2c OK [08:42:37]MH_I2C_Read... [08:42:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:37]Read from MH i2c: E2 [08:42:37]MH_I2C_Read... [08:42:37]Read from MH i2c: E2 0E 00 [08:42:37]MH_I2C_Read... [08:42:37]Read from MH i2c: E2 0E 00 56 16 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F8 [08:42:37]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:42:37]wFMCommunicate OK [08:42:37]SAM_PROTO_GetShiftState done [08:42:37]FM_GetShiftState done [08:42:37]opened in 1729900879 [08:42:37]opened+sec_in_day 1729987279 [08:42:37]quantity*price = 30038 [08:42:37]sum+1 = 30039 [08:42:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 38 26.10.2024 08:42 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201276 ФПД: 215335876300784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T084241&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201276&fm=215335876300784&tin=02508201610067®Number=0000000000091777&sum=30000 [08:42:38]StoreToDocumentArchive [08:42:38]shift 543 fd 201276 [08:42:38]save to /storage/0543/doc_00201276 [08:42:38]save last doc name /storage/0543/doc_00201276 to /storage/kkm_last_doc_name [08:42:38]save OK [08:42:38]Clear old archive folders... [08:42:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:42:38]tlvbuf is 01762170 [08:42:38]SAM_PROTO_ClearQueue [08:42:38]wFMCommunicate request_size=4 [08:42:38]MH_SAM_APDU [08:42:38]CAPDU: 80 09 00 00 [08:42:38]Write to MH i2c: E2 08 00 63 16 80 09 00 00 00 00 00 00 EB [08:42:38]Write i2c OK [08:42:38]MH_I2C_Read... [08:42:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:42:38]Read from MH i2c: E2 [08:42:38]MH_I2C_Read... [08:42:38]Read from MH i2c: E2 03 00 [08:42:38]MH_I2C_Read... [08:42:38]Read from MH i2c: E2 03 00 63 16 00 90 00 ED [08:42:38]RAPDU: 90 00 [08:42:38]wFMCommunicate OK [08:42:38]SAM_PROTO_ClearQueue done [08:42:38]KKMCreateOFDPacket [08:42:38]OFDProtocolAddRootSTLVToBuf [08:42:38]FM_MakeSignedData [08:42:38]FM_MakeSignedData [08:42:38]SAM_PROTO_SignData [08:42:38]wFMCommunicate request_size=4 [08:42:38]MH_SAM_APDU [08:42:38]CAPDU: 80 0D 01 02 [08:42:38]Write to MH i2c: E2 08 00 64 16 80 0D 01 02 00 00 00 00 F3 [08:42:38]Write i2c OK [08:42:38]MH_I2C_Read... [08:42:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:42:38]Read from MH i2c: E2 [08:42:38]MH_I2C_Read... [08:42:38]Read from MH i2c: E2 03 00 [08:42:38]MH_I2C_Read... [08:42:38]Read from MH i2c: E2 03 00 64 16 00 90 00 EE [08:42:38]RAPDU: 90 00 [08:42:38]wFMCommunicate OK [08:42:38]wFMCommunicate request_size=255 [08:42:38]MH_SAM_APDU [08:42:38]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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 81 AB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3C 12 03 00 35 04 06 00 C3 [08:42:38]Write to MH i2c: E2 02 01 65 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 81 AB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3C 12 03 00 35 04 06 00 C3 00 00 85 [08:42:38]Write i2c OK [08:42:38]MH_I2C_Read... [08:42:39]OFD Sender: No OFD packet to send [08:42:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:39]Read from MH i2c: E2 [08:42:39]MH_I2C_Read... [08:42:39]Read from MH i2c: E2 03 00 [08:42:39]MH_I2C_Read... [08:42:39]Read from MH i2c: E2 03 00 65 16 00 90 00 EF [08:42:39]RAPDU: 90 00 [08:42:39]wFMCommunicate OK [08:42:39]wFMCommunicate request_size=10 [08:42:39]MH_SAM_APDU [08:42:39]CAPDU: 80 0D 02 02 05 D8 CA 6A 0F F0 [08:42:39]Write to MH i2c: E2 0D 00 66 16 80 0D 02 02 05 00 D8 CA 6A 0F F0 00 00 0B [08:42:39]Write i2c OK [08:42:39]MH_I2C_Read... [08:42:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:39]Read from MH i2c: E2 [08:42:39]MH_I2C_Read... [08:42:39]Read from MH i2c: E2 03 00 [08:42:39]MH_I2C_Read... [08:42:39]Read from MH i2c: E2 03 00 66 16 00 90 00 F0 [08:42:39]RAPDU: 90 00 [08:42:39]wFMCommunicate OK [08:42:39]wFMCommunicate request_size=4 [08:42:39]MH_SAM_APDU [08:42:39]CAPDU: 80 0D 03 02 [08:42:39]Write to MH i2c: E2 08 00 67 16 80 0D 03 02 00 00 00 00 F8 [08:42:39]Write i2c OK [08:42:39]MH_I2C_Read... [08:42:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:42:39]Read from MH i2c: E2 [08:42:39]MH_I2C_Read... [08:42:39]Read from MH i2c: E2 0B 00 [08:42:39]MH_I2C_Read... [08:42:39]Read from MH i2c: E2 0B 00 67 16 00 4E 0D 65 4E 37 BC 40 FC 90 00 36 [08:42:39]RAPDU: 4E 0D 65 4E 37 BC 40 FC 90 00 [08:42:39]wFMCommunicate OK [08:42:39]SAM_PROTO_SignData done [08:42:39]FM_MakeSignedData done [08:42:39]CreateOFDProtocolMessage [08:42:39]wFMCommunicate request_size=4 [08:42:39]MH_SAM_APDU [08:42:39]CAPDU: 80 11 00 00 [08:42:39]Write to MH i2c: E2 08 00 68 16 80 11 00 00 00 00 00 00 F8 [08:42:39]Write i2c OK [08:42:39]MH_I2C_Read... [08:42:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:39]Read from MH i2c: E2 [08:42:39]MH_I2C_Read... [08:42:39]Read from MH i2c: E2 17 00 [08:42:39]MH_I2C_Read... [08:42:39]Read from MH i2c: E2 17 00 68 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4D [08:42:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:42:39]wFMCommunicate OK [08:42:39]CreateOFDProtocolMessage done [08:42:39]OFDSenderStorePacket 201276 [08:42:39]StoreOFDPacket docnum=201276 [08:42:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 AB 83 07 01 7B E8 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 81 AB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3C 12 03 00 35 04 06 00 C3 D8 CA 6A 0F F0 4E 0D 65 4E 37 BC 40 FC [08:42:39]CheckFolder [08:42:39]dirname=/storage/ofd_packets [08:42:39]CheckFolder done [08:42:39]ProducePacketName [08:42:39]name=ofd_packets/00201276 [08:42:39]NVStorageSaveData ofd_packets/00201276 [08:42:39]File name is /storage/ofd_packets/00201276 [08:42:39]Write 301 bytes [08:42:39]NVStorageSaveData done [08:42:39]OFDSenderStorePacket done [08:42:39]KKMCreateOFDPacket done [08:42:39]NVStorageSaveData kkm_last_timestamp [08:42:39]File name is /storage/kkm_last_timestamp [08:42:39]Write 4 bytes [08:42:39]NVStorageSaveData done [08:42:39]ExternCall_PrintAddStr [08:42:39]wPrintStart [08:42:39]Write to MH i2c: 01 00 00 69 16 7F [08:42:39]Write i2c OK [08:42:39]MH_I2C_Read... [08:42:39]Read from MH i2c: 01 [08:42:39]MH_I2C_Read... [08:42:39]Read from MH i2c: 01 07 00 [08:42:39]MH_I2C_Read... [08:42:39]Read from MH i2c: 01 07 00 69 16 00 00 00 00 00 FF 0F 94 [08:42:39]RasterBufferAndPrint [08:42:39]line Счет N : (1)449023 [08:42:39]line ИНН: 02508201610067 [08:42:39]line Контрольно-Кассовый Чек [08:42:39]line ПРОДАЖА [08:42:39]line ТРК (МРК, ГНК) : 31 [08:42:39]line Товар: 2710124130 [08:42:39]line Аи-92-К-2 [08:42:39]line 4.490 * 66.90 [08:42:39]line = 300.38 [08:42:39]line НДС 12% НСП 1% [08:42:39]line > о реализуемом товаре [08:42:39]line ОКРУГЛЕНИЕ: -0.38 [08:42:39]line ИТОГО: 300.00 [08:42:39]line Внесено: 300.00 [08:42:39]line СДАЧА: 0.00 [08:42:39]line НСП 1% : 2.66 [08:42:39]line НДС 12% : 31.90 [08:42:39]line Наличными: 300.00 [08:42:39]line Безнал.: 0.00 [08:42:39]line Место: АЗС № 171 "Партнер Нефть" [08:42:39]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:42:39]line СНО: Общий режим [08:42:39]line Чек 38 26.10.2024 08:42 [08:42:39]line Смена: 543 ФФД: 1.0 [08:42:39]line ЗНМ: 0300000109 [08:42:39]line РНМ: 0000000000091777 [08:42:39]line Версия ККМ: 001 [08:42:39]line ФМ: 0000000000871756 [08:42:39]line ФД: 201276 [08:42:39]line ФПД: 215335876300784 [08:42:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T084241&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201276&fm=215335876300784&tin=02508201610067®Number=0000000000091777&sum=30000 [08:42:39]OFD Sender: Processing packet 201276 [packets to send 112, broken 111] [08:42:39]ProducePacketName [08:42:39]name=ofd_packets/00201276 [08:42:39]OFD Sender: To server: pG, [08:42:39]CommunicateWithHost lk.salyk.kg:30040 [08:42:39]ConnectInit lk.salyk.kg [08:42:39]written 0, free lines is 4095 [08:42:39]Connected sock=10 [08:42:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 AB 83 07 01 7B E8 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 81 AB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3C 12 03 00 35 04 06 00 C3 D8 CA 6A 0F F0 4E 0D 65 4E 37 BC 40 FC [08:42:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 70 2C 47 00 8D D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3C 12 03 00 F4 03 04 00 2A 57 1C 67 B6 04 01 00 00 96 40 AA 9A 39 45 D4 8D [08:42:40]CommunicateWithHost err = 0 [08:42:40]CheckOFDResponse [08:42:40]1017 (14) - 77093643461234 [08:42:40]1041 (16) - 0000000000871756 [08:42:40]1040 (4) - 201276 [08:42:40]1012 (4) - 26.10.2024 02:42 [08:42:40]1206 (1) - 0 [08:42:40]OFD Sender: Remove packet 201276 [08:42:40]ProducePacketName [08:42:40]name=ofd_packets/00201276 [08:42:40]NVStorageDeleteData [08:42:40]Write to MH i2c: 01 00 00 94 16 AA [08:42:40]Write i2c OK [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: 01 [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: 01 07 00 [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: 01 07 00 94 16 00 00 00 00 00 9D 0C 5A [08:42:40]RasterBufferAndPrint [08:42:40]line [08:42:40]line [08:42:40]line [08:42:40]line [08:42:40]line [08:42:40]written 0, free lines is 3235 [08:42:40]MH_Cut [08:42:40]Write to MH i2c: D1 01 00 9B 16 01 83 [08:42:40]Write i2c OK [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: D1 [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: D1 01 00 [08:42:40]MH_I2C_Read... [08:42:40]Read from MH i2c: D1 01 00 9B 16 00 82 [08:42:40]Write to MH i2c: 01 00 00 9C 16 B2 [08:42:40]Write i2c OK [08:42:40]MH_I2C_Read... [08:42:40]OFD Sender: No OFD packet to send [08:42:41]*** Cut start [08:42:41]*** Purtial cut [08:42:41]*** Stage 1: CUTSNS_PIN = 1 [08:42:41]Read from MH i2c: 01 [08:42:41]MH_I2C_Read... [08:42:41]*** Stop cut motor [08:42:41]*** Cut end [08:42:41]Read from MH i2c: 01 07 00 [08:42:41]MH_I2C_Read... [08:42:41]Read from MH i2c: 01 07 00 9C 16 00 00 00 00 00 FF 0F C7 [08:42:41]process_action close_receipt done [08:42:41]requested_data is exist [08:42:41]produce_requested_data [08:42:41]requested_item fm.sn is exist - process it [08:42:41]wFMCommunicate request_size=4 [08:42:41]MH_SAM_APDU [08:42:41]CAPDU: 80 11 00 00 [08:42:41]Write to MH i2c: E2 08 00 9D 16 80 11 00 00 00 00 00 00 2D [08:42:41]Write i2c OK [08:42:41]MH_I2C_Read... [08:42:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:41]Read from MH i2c: E2 [08:42:41]MH_I2C_Read... [08:42:41]Read from MH i2c: E2 17 00 [08:42:41]MH_I2C_Read... [08:42:41]Read from MH i2c: E2 17 00 9D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 82 [08:42:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:42:41]wFMCommunicate OK [08:42:41]requested_item fd.num is exist - process it [08:42:41]SAM_PROTO_GetFieldsCounters [08:42:41]wFMCommunicate request_size=4 [08:42:41]MH_SAM_APDU [08:42:41]CAPDU: 80 13 00 00 [08:42:41]Write to MH i2c: E2 08 00 9E 16 80 13 00 00 00 00 00 00 30 [08:42:41]Write i2c OK [08:42:41]MH_I2C_Read... [08:42:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:42:41]Read from MH i2c: E2 [08:42:41]MH_I2C_Read... [08:42:41]Read from MH i2c: E2 62 00 [08:42:41]MH_I2C_Read... [08:42:41]Read from MH i2c: E2 62 00 9E 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3C 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [08:42:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3C 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:42:41]wFMCommunicate OK [08:42:41]SAM_PROTO_GetFieldsCounters done [08:42:41]requested_item shift.num is exist - process it [08:42:41]requested_item shift.opened is exist - process it [08:42:41]req_shift_opened [08:42:41]FM_GetShiftState [08:42:41]SAM_PROTO_GetShiftState [08:42:41]wFMCommunicate request_size=4 [08:42:41]MH_SAM_APDU [08:42:41]CAPDU: 80 13 01 00 [08:42:41]Write to MH i2c: E2 08 00 9F 16 80 13 01 00 00 00 00 00 32 [08:42:41]Write i2c OK [08:42:41]MH_I2C_Read... [08:42:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:41]Read from MH i2c: E2 [08:42:41]MH_I2C_Read... [08:42:41]Read from MH i2c: E2 0E 00 [08:42:41]MH_I2C_Read... [08:42:41]Read from MH i2c: E2 0E 00 9F 16 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 41 [08:42:41]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:42:41]wFMCommunicate OK [08:42:41]SAM_PROTO_GetShiftState done [08:42:41]FM_GetShiftState done [08:42:41]req_shift_opened done [08:42:41]requested_item shift.open_date is exist - process it [08:42:41]req_shift_open_date [08:42:41]req_shift_open_date done [08:42:41]produce_requested_data done [08:42:41]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201276,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [08:42:41]process_action_free close_receipt [08:42:41]json_value_free [08:42:41]json_value_free done [08:42:41]process_json_proto returns [08:42:41]Send response to host [08:42:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201276,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [08:42:41]free response buf [08:42:41]execute_script done [08:42:41]execute_script returns [08:42:41]free content buf [08:42:41]Sock 9.Close socket [08:42:41]Sock 9.Thread stoped [08:42:45]OFD Sender: No OFD packet to send [08:42:50]OFD Sender: No OFD packet to send [08:42:55]OFD Sender: No OFD packet to send [08:43:00]OFD Sender: No OFD packet to send [08:43:05]OFD Sender: No OFD packet to send [08:43:10]OFD Sender: No OFD packet to send [08:43:15]OFD Sender: No OFD packet to send [08:43:20]OFD Sender: No OFD packet to send [08:43:25]OFD Sender: No OFD packet to send [08:43:30]OFD Sender: No OFD packet to send [08:43:35]OFD Sender: No OFD packet to send [08:43:40]OFD Sender: No OFD packet to send [08:43:45]OFD Sender: No OFD packet to send [08:43:50]OFD Sender: No OFD packet to send [08:43:55]OFD Sender: No OFD packet to send [08:44:00]OFD Sender: No OFD packet to send [08:44:05]accept exits with 7 [08:44:05]New connection [08:44:05]New thread 3067559268 created [08:44:05]Thread 3067415908 joined [08:44:05]Waiting for new connection... [08:44:05] Sock 7.Parse request [08:44:05]Sock 7.Check first char [08:44:05]Sock 7.First char is OK [08:44:05]request: POST /json_proto HTTP/1.0 [08:44:05]Method: POST [08:44:05]URL: /json_proto [08:44:05]Method is POST - this is cgi request [08:44:05]url: /json_proto [08:44:05]query_string will be loaded in cgi processing [08:44:05]execute_cgi json_proto POST (null) [08:44:05]execute_cgi path=json_proto method=POST [08:44:05]POST find Content-Length [08:44:05]Host: 172.17.63.195:8080 [08:44:05]Content-Length: 677 [08:44:05]Content-Type: application/json [08:44:05] [08:44:05]POST finish read [08:44:05]Found Content-Length = 677 [08:44:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:44:05]execute_script... [08:44: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)449024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:44:05]POST & json_proto [08:44:05]process_json_proto [08:44:05]json parsed OK: [08:44:05]protocol is kg_v1.0 [08:44:05]action value=close_receipt [08:44:05]process_action close_receipt [08:44:05]cmd_close_receipt [08:44:05]MH_GetDate [08:44:05]Write to MH i2c: F0 00 00 A0 16 A5 [08:44:05]Write i2c OK [08:44:05]MH_I2C_Read... [08:44:05]Read from MH i2c: F0 [08:44:05]MH_I2C_Read... [08:44:05]Read from MH i2c: F0 09 00 [08:44:05]MH_I2C_Read... [08:44:05]Read from MH i2c: F0 09 00 A0 16 00 D8 AB 1C 67 68 46 19 67 E2 [08:44:05]GetLastDocTimeStamp 1729932161 [08:44:05]current date 1729932248 [08:44:05]FM_GetShiftState [08:44:05]SAM_PROTO_GetShiftState [08:44:05]wFMCommunicate request_size=4 [08:44:05]MH_SAM_APDU [08:44:05]CAPDU: 80 13 01 00 [08:44:05]Write to MH i2c: E2 08 00 A1 16 80 13 01 00 00 00 00 00 34 [08:44:05]Write i2c OK [08:44:05]MH_I2C_Read... [08:44:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:05]Read from MH i2c: E2 [08:44:05]MH_I2C_Read... [08:44:05]Read from MH i2c: E2 0E 00 [08:44:05]MH_I2C_Read... [08:44:05]Read from MH i2c: E2 0E 00 A1 16 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 43 [08:44:05]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:44:05]wFMCommunicate OK [08:44:05]SAM_PROTO_GetShiftState done [08:44:05]FM_GetShiftState done [08:44:05]opened in 1729900879 [08:44:05]opened+sec_in_day 1729987279 [08:44:05]quantity*price = 50041 [08:44:05]sum+1 = 50042 [08:44:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 39 26.10.2024 08:44 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201277 ФПД: 199801511086590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T084408&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201277&fm=199801511086590&tin=02508201610067®Number=0000000000091777&sum=50000 [08:44:06]StoreToDocumentArchive [08:44:06]shift 543 fd 201277 [08:44:06]save to /storage/0543/doc_00201277 [08:44:06]save last doc name /storage/0543/doc_00201277 to /storage/kkm_last_doc_name [08:44:06]save OK [08:44:06]Clear old archive folders... [08:44:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:44:06]tlvbuf is 0173FBA0 [08:44:06]SAM_PROTO_ClearQueue [08:44:06]wFMCommunicate request_size=4 [08:44:06]MH_SAM_APDU [08:44:06]CAPDU: 80 09 00 00 [08:44:06]Write to MH i2c: E2 08 00 AE 16 80 09 00 00 00 00 00 00 36 [08:44:06]Write i2c OK [08:44:06]MH_I2C_Read... [08:44:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:06]Read from MH i2c: E2 [08:44:06]MH_I2C_Read... [08:44:06]Read from MH i2c: E2 03 00 [08:44:06]MH_I2C_Read... [08:44:06]Read from MH i2c: E2 03 00 AE 16 00 90 00 38 [08:44:06]RAPDU: 90 00 [08:44:06]wFMCommunicate OK [08:44:06]SAM_PROTO_ClearQueue done [08:44:06]KKMCreateOFDPacket [08:44:06]OFDProtocolAddRootSTLVToBuf [08:44:06]FM_MakeSignedData [08:44:06]FM_MakeSignedData [08:44:06]SAM_PROTO_SignData [08:44:06]wFMCommunicate request_size=4 [08:44:06]MH_SAM_APDU [08:44:06]CAPDU: 80 0D 01 02 [08:44:06]Write to MH i2c: E2 08 00 AF 16 80 0D 01 02 00 00 00 00 3E [08:44:06]Write i2c OK [08:44:06]MH_I2C_Read... [08:44:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:06]Read from MH i2c: E2 [08:44:06]MH_I2C_Read... [08:44:06]Read from MH i2c: E2 03 00 [08:44:06]MH_I2C_Read... [08:44:06]Read from MH i2c: E2 03 00 AF 16 00 90 00 39 [08:44:06]RAPDU: 90 00 [08:44:06]wFMCommunicate OK [08:44:06]wFMCommunicate request_size=255 [08:44:06]MH_SAM_APDU [08:44: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 32 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 27 00 00 00 F4 03 04 00 D8 AB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3D 12 03 00 35 04 06 00 B5 [08:44:06]Write to MH i2c: E2 02 01 B0 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 32 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 27 00 00 00 F4 03 04 00 D8 AB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3D 12 03 00 35 04 06 00 B5 00 00 27 [08:44:06]Write i2c OK [08:44:06]MH_I2C_Read... [08:44:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:06]Read from MH i2c: E2 [08:44:06]MH_I2C_Read... [08:44:06]Read from MH i2c: E2 03 00 [08:44:06]MH_I2C_Read... [08:44:06]Read from MH i2c: E2 03 00 B0 16 00 90 00 3A [08:44:06]RAPDU: 90 00 [08:44:06]wFMCommunicate OK [08:44:06]wFMCommunicate request_size=10 [08:44:06]MH_SAM_APDU [08:44:06]CAPDU: 80 0D 02 02 05 B7 EA 18 09 FE [08:44:06]Write to MH i2c: E2 0D 00 B1 16 80 0D 02 02 05 00 B7 EA 18 09 FE 00 00 0B [08:44:06]Write i2c OK [08:44:06]MH_I2C_Read... [08:44:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:06]Read from MH i2c: E2 [08:44:06]MH_I2C_Read... [08:44:06]Read from MH i2c: E2 03 00 [08:44:06]MH_I2C_Read... [08:44:06]Read from MH i2c: E2 03 00 B1 16 00 90 00 3B [08:44:06]RAPDU: 90 00 [08:44:06]wFMCommunicate OK [08:44:06]wFMCommunicate request_size=4 [08:44:06]MH_SAM_APDU [08:44:06]CAPDU: 80 0D 03 02 [08:44:06]Write to MH i2c: E2 08 00 B2 16 80 0D 03 02 00 00 00 00 43 [08:44:06]Write i2c OK [08:44:06]MH_I2C_Read... [08:44:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:06]Read from MH i2c: E2 [08:44:06]MH_I2C_Read... [08:44:06]Read from MH i2c: E2 0B 00 [08:44:06]MH_I2C_Read... [08:44:06]Read from MH i2c: E2 0B 00 B2 16 00 EC A4 72 45 DA 5D 27 C6 90 00 AF [08:44:06]RAPDU: EC A4 72 45 DA 5D 27 C6 90 00 [08:44:06]wFMCommunicate OK [08:44:06]SAM_PROTO_SignData done [08:44:06]FM_MakeSignedData done [08:44:06]CreateOFDProtocolMessage [08:44:06]wFMCommunicate request_size=4 [08:44:06]MH_SAM_APDU [08:44:06]CAPDU: 80 11 00 00 [08:44:06]Write to MH i2c: E2 08 00 B3 16 80 11 00 00 00 00 00 00 43 [08:44:06]Write i2c OK [08:44:06]MH_I2C_Read... [08:44:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:06]Read from MH i2c: E2 [08:44:06]MH_I2C_Read... [08:44:06]Read from MH i2c: E2 17 00 [08:44:06]MH_I2C_Read... [08:44:06]Read from MH i2c: E2 17 00 B3 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 98 [08:44:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:44:06]wFMCommunicate OK [08:44:06]CreateOFDProtocolMessage done [08:44:06]OFDSenderStorePacket 201277 [08:44:06]StoreOFDPacket docnum=201277 [08:44:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C1 23 07 01 2E 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 32 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 27 00 00 00 F4 03 04 00 D8 AB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3D 12 03 00 35 04 06 00 B5 B7 EA 18 09 FE EC A4 72 45 DA 5D 27 C6 [08:44:06]CheckFolder [08:44:06]dirname=/storage/ofd_packets [08:44:06]CheckFolder done [08:44:06]ProducePacketName [08:44:06]name=ofd_packets/00201277 [08:44:06]NVStorageSaveData ofd_packets/00201277 [08:44:06]File name is /storage/ofd_packets/00201277 [08:44:06]Write 301 bytes [08:44:06]NVStorageSaveData done [08:44:06]OFDSenderStorePacket done [08:44:06]KKMCreateOFDPacket done [08:44:06]NVStorageSaveData kkm_last_timestamp [08:44:06]File name is /storage/kkm_last_timestamp [08:44:06]Write 4 bytes [08:44:06]NVStorageSaveData done [08:44:06]ExternCall_PrintAddStr [08:44:06]wPrintStart [08:44:06]Write to MH i2c: 01 00 00 B4 16 CA [08:44:06]Write i2c OK [08:44:06]MH_I2C_Read... [08:44:06]Read from MH i2c: 01 [08:44:06]MH_I2C_Read... [08:44:06]Read from MH i2c: 01 07 00 [08:44:06]MH_I2C_Read... [08:44:06]Read from MH i2c: 01 07 00 B4 16 00 00 00 00 00 FF 0F DF [08:44:06]RasterBufferAndPrint [08:44:06]line Счет N : (1)449024 [08:44:06]line ИНН: 02508201610067 [08:44:06]line Контрольно-Кассовый Чек [08:44:06]line ПРОДАЖА [08:44:06]line ТРК (МРК, ГНК) : 52 [08:44:06]line Товар: 2710124130 [08:44:06]line Аи-92-К-2 [08:44:06]line 7.480 * 66.90 [08:44:06]line = 500.41 [08:44:06]line НДС 12% НСП 1% [08:44:06]line > о реализуемом товаре [08:44:06]line ОКРУГЛЕНИЕ: -0.41 [08:44:06]line ИТОГО: 500.00 [08:44:06]line Внесено: 500.00 [08:44:06]line СДАЧА: 0.00 [08:44:06]line НСП 1% : 4.43 [08:44:06]line НДС 12% : 53.14 [08:44:06]line Наличными: 500.00 [08:44:06]line Безнал.: 0.00 [08:44:06]line Место: АЗС № 171 "Партнер Нефть" [08:44:06]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:44:06]line СНО: Общий режим [08:44:06]line Чек 39 26.10.2024 08:44 [08:44:06]line Смена: 543 ФФД: 1.0 [08:44:06]line ЗНМ: 0300000109 [08:44:06]line РНМ: 0000000000091777 [08:44:06]line Версия ККМ: 001 [08:44:06]line ФМ: 0000000000871756 [08:44:06]line ФД: 201277 [08:44:06]line ФПД: 199801511086590 [08:44:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T084408&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201277&fm=199801511086590&tin=02508201610067®Number=0000000000091777&sum=50000 [08:44:06]written 0, free lines is 4095 [08:44:06]OFD Sender: Processing packet 201277 [packets to send 112, broken 111] [08:44:06]ProducePacketName [08:44:06]name=ofd_packets/00201277 [08:44:06]OFD Sender: To server: pG, [08:44:06]CommunicateWithHost lk.salyk.kg:30040 [08:44:06]ConnectInit lk.salyk.kg [08:44:06]Connected sock=11 [08:44:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C1 23 07 01 2E 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 32 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 27 00 00 00 F4 03 04 00 D8 AB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3D 12 03 00 35 04 06 00 B5 B7 EA 18 09 FE EC A4 72 45 DA 5D 27 C6 [08:44:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 FC 8D 47 00 6B F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3D 12 03 00 F4 03 04 00 81 57 1C 67 B6 04 01 00 00 43 4F 94 C0 11 CE E1 84 [08:44:07]CommunicateWithHost err = 0 [08:44:07]CheckOFDResponse [08:44:07]1017 (14) - 77093643461234 [08:44:07]1041 (16) - 0000000000871756 [08:44:07]1040 (4) - 201277 [08:44:07]1012 (4) - 26.10.2024 02:44 [08:44:07]1206 (1) - 0 [08:44:07]OFD Sender: Remove packet 201277 [08:44:07]ProducePacketName [08:44:07]name=ofd_packets/00201277 [08:44:07]NVStorageDeleteData [08:44:07]Write to MH i2c: 01 00 00 DF 16 F5 [08:44:07]Write i2c OK [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: 01 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: 01 07 00 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: 01 07 00 DF 16 00 00 00 00 00 9D 0C A5 [08:44:07]RasterBufferAndPrint [08:44:07]line [08:44:07]line [08:44:07]line [08:44:07]line [08:44:07]line [08:44:07]written 0, free lines is 3235 [08:44:07]MH_Cut [08:44:07]Write to MH i2c: D1 01 00 E6 16 01 CE [08:44:07]Write i2c OK [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: D1 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: D1 01 00 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: D1 01 00 E6 16 00 CD [08:44:07]Write to MH i2c: 01 00 00 E7 16 FD [08:44:07]Write i2c OK [08:44:07]MH_I2C_Read... [08:44:07]OFD Sender: No OFD packet to send [08:44:08]*** Cut start [08:44:08]*** Purtial cut [08:44:08]*** Stage 1: CUTSNS_PIN = 1 [08:44:08]Read from MH i2c: 01 [08:44:08]MH_I2C_Read... [08:44:08]*** Stop cut motor [08:44:08]*** Cut end [08:44:08]Read from MH i2c: 01 07 00 [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: 01 07 00 E7 16 00 00 00 00 00 FF 0F 12 [08:44:08]process_action close_receipt done [08:44:08]requested_data is exist [08:44:08]produce_requested_data [08:44:08]requested_item fm.sn is exist - process it [08:44:08]wFMCommunicate request_size=4 [08:44:08]MH_SAM_APDU [08:44:08]CAPDU: 80 11 00 00 [08:44:08]Write to MH i2c: E2 08 00 E8 16 80 11 00 00 00 00 00 00 78 [08:44:08]Write i2c OK [08:44:08]MH_I2C_Read... [08:44:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:08]Read from MH i2c: E2 [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: E2 17 00 [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: E2 17 00 E8 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CD [08:44:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:44:08]wFMCommunicate OK [08:44:08]requested_item fd.num is exist - process it [08:44:08]SAM_PROTO_GetFieldsCounters [08:44:08]wFMCommunicate request_size=4 [08:44:08]MH_SAM_APDU [08:44:08]CAPDU: 80 13 00 00 [08:44:08]Write to MH i2c: E2 08 00 E9 16 80 13 00 00 00 00 00 00 7B [08:44:08]Write i2c OK [08:44:08]MH_I2C_Read... [08:44:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:08]Read from MH i2c: E2 [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: E2 62 00 [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: E2 62 00 E9 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3D 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [08:44:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3D 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:44:08]wFMCommunicate OK [08:44:08]SAM_PROTO_GetFieldsCounters done [08:44:08]requested_item shift.num is exist - process it [08:44:08]requested_item shift.opened is exist - process it [08:44:08]req_shift_opened [08:44:08]FM_GetShiftState [08:44:08]SAM_PROTO_GetShiftState [08:44:08]wFMCommunicate request_size=4 [08:44:08]MH_SAM_APDU [08:44:08]CAPDU: 80 13 01 00 [08:44:08]Write to MH i2c: E2 08 00 EA 16 80 13 01 00 00 00 00 00 7D [08:44:08]Write i2c OK [08:44:08]MH_I2C_Read... [08:44:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:08]Read from MH i2c: E2 [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: E2 0E 00 [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: E2 0E 00 EA 16 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 8C [08:44:08]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:44:08]wFMCommunicate OK [08:44:08]SAM_PROTO_GetShiftState done [08:44:08]FM_GetShiftState done [08:44:08]req_shift_opened done [08:44:08]requested_item shift.open_date is exist - process it [08:44:08]req_shift_open_date [08:44:08]req_shift_open_date done [08:44:08]produce_requested_data done [08:44:08]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201277,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [08:44:08]process_action_free close_receipt [08:44:08]json_value_free [08:44:08]json_value_free done [08:44:08]process_json_proto returns [08:44:08]Send response to host [08:44:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201277,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [08:44:08]free response buf [08:44:08]execute_script done [08:44:08]execute_script returns [08:44:08]free content buf [08:44:08]Sock 7.Close socket [08:44:08]Sock 7.Thread stoped [08:44:12]OFD Sender: No OFD packet to send [08:44:17]OFD Sender: No OFD packet to send [08:44:22]OFD Sender: No OFD packet to send [08:44:27]OFD Sender: No OFD packet to send [08:44:32]OFD Sender: No OFD packet to send [08:44:37]OFD Sender: No OFD packet to send [08:44:39]accept exits with 9 [08:44:39]New connection [08:44:39]New thread 3067415908 created [08:44:39]Thread 3067559268 joined [08:44:39]Waiting for new connection... [08:44:39] Sock 9.Parse request [08:44:39]Sock 9.Check first char [08:44:39]Sock 9.First char is OK [08:44:39]request: POST /json_proto HTTP/1.0 [08:44:39]Method: POST [08:44:39]URL: /json_proto [08:44:39]Method is POST - this is cgi request [08:44:39]url: /json_proto [08:44:39]query_string will be loaded in cgi processing [08:44:39]execute_cgi json_proto POST (null) [08:44:39]execute_cgi path=json_proto method=POST [08:44:39]POST find Content-Length [08:44:39]Host: 172.17.63.195:8080 [08:44:39]Content-Length: 677 [08:44:39]Content-Type: application/json [08:44:39] [08:44:39]POST finish read [08:44:39]Found Content-Length = 677 [08:44:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:44:39]execute_script... [08:44:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [08:44:39]POST & json_proto [08:44:39]process_json_proto [08:44:39]json parsed OK: [08:44:39]protocol is kg_v1.0 [08:44:39]action value=close_receipt [08:44:39]process_action close_receipt [08:44:39]cmd_close_receipt [08:44:39]MH_GetDate [08:44:39]Write to MH i2c: F0 00 00 EB 16 F0 [08:44:39]Write i2c OK [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: F0 [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: F0 09 00 [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: F0 09 00 EB 16 00 FB AB 1C 67 68 46 19 67 50 [08:44:39]GetLastDocTimeStamp 1729932248 [08:44:39]current date 1729932283 [08:44:39]FM_GetShiftState [08:44:39]SAM_PROTO_GetShiftState [08:44:39]wFMCommunicate request_size=4 [08:44:39]MH_SAM_APDU [08:44:39]CAPDU: 80 13 01 00 [08:44:39]Write to MH i2c: E2 08 00 EC 16 80 13 01 00 00 00 00 00 7F [08:44:39]Write i2c OK [08:44:39]MH_I2C_Read... [08:44:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:39]Read from MH i2c: E2 [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: E2 0E 00 [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: E2 0E 00 EC 16 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 8E [08:44:39]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:44:39]wFMCommunicate OK [08:44:39]SAM_PROTO_GetShiftState done [08:44:39]FM_GetShiftState done [08:44:39]opened in 1729900879 [08:44:39]opened+sec_in_day 1729987279 [08:44:39]quantity*price = 50041 [08:44:39]sum+1 = 50042 [08:44:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 40 26.10.2024 08:44 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201278 ФПД: 109510504582748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T084443&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201278&fm=109510504582748&tin=02508201610067®Number=0000000000091777&sum=50000 [08:44:40]StoreToDocumentArchive [08:44:40]shift 543 fd 201278 [08:44:40]save to /storage/0543/doc_00201278 [08:44:40]save last doc name /storage/0543/doc_00201278 to /storage/kkm_last_doc_name [08:44:40]save OK [08:44:40]Clear old archive folders... [08:44:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:44:40]tlvbuf is 0172DAC0 [08:44:40]SAM_PROTO_ClearQueue [08:44:40]wFMCommunicate request_size=4 [08:44:40]MH_SAM_APDU [08:44:40]CAPDU: 80 09 00 00 [08:44:40]Write to MH i2c: E2 08 00 F9 16 80 09 00 00 00 00 00 00 81 [08:44:40]Write i2c OK [08:44:40]MH_I2C_Read... [08:44:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:40]Read from MH i2c: E2 [08:44:40]MH_I2C_Read... [08:44:40]Read from MH i2c: E2 03 00 [08:44:40]MH_I2C_Read... [08:44:40]Read from MH i2c: E2 03 00 F9 16 00 90 00 83 [08:44:40]RAPDU: 90 00 [08:44:40]wFMCommunicate OK [08:44:40]SAM_PROTO_ClearQueue done [08:44:40]KKMCreateOFDPacket [08:44:40]OFDProtocolAddRootSTLVToBuf [08:44:40]FM_MakeSignedData [08:44:40]FM_MakeSignedData [08:44:40]SAM_PROTO_SignData [08:44:40]wFMCommunicate request_size=4 [08:44:40]MH_SAM_APDU [08:44:40]CAPDU: 80 0D 01 02 [08:44:40]Write to MH i2c: E2 08 00 FA 16 80 0D 01 02 00 00 00 00 89 [08:44:40]Write i2c OK [08:44:40]MH_I2C_Read... [08:44:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:40]Read from MH i2c: E2 [08:44:40]MH_I2C_Read... [08:44:40]Read from MH i2c: E2 03 00 [08:44:40]MH_I2C_Read... [08:44:40]Read from MH i2c: E2 03 00 FA 16 00 90 00 84 [08:44:40]RAPDU: 90 00 [08:44:40]wFMCommunicate OK [08:44:40]wFMCommunicate request_size=255 [08:44:40]MH_SAM_APDU [08:44: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 32 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 28 00 00 00 F4 03 04 00 FB AB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3E 12 03 00 35 04 06 00 63 [08:44:40]Write to MH i2c: E2 02 01 FB 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 32 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 28 00 00 00 F4 03 04 00 FB AB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3E 12 03 00 35 04 06 00 63 00 00 45 [08:44:40]Write i2c OK [08:44:40]MH_I2C_Read... [08:44:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:41]Read from MH i2c: E2 [08:44:41]MH_I2C_Read... [08:44:41]Read from MH i2c: E2 03 00 [08:44:41]MH_I2C_Read... [08:44:41]Read from MH i2c: E2 03 00 FB 16 00 90 00 85 [08:44:41]RAPDU: 90 00 [08:44:41]wFMCommunicate OK [08:44:41]wFMCommunicate request_size=10 [08:44:41]MH_SAM_APDU [08:44:41]CAPDU: 80 0D 02 02 05 99 66 B9 8E 5C [08:44:41]Write to MH i2c: E2 0D 00 FC 16 80 0D 02 02 05 00 99 66 B9 8E 5C 00 00 38 [08:44:41]Write i2c OK [08:44:41]MH_I2C_Read... [08:44:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:41]Read from MH i2c: E2 [08:44:41]MH_I2C_Read... [08:44:41]Read from MH i2c: E2 03 00 [08:44:41]MH_I2C_Read... [08:44:41]Read from MH i2c: E2 03 00 FC 16 00 90 00 86 [08:44:41]RAPDU: 90 00 [08:44:41]wFMCommunicate OK [08:44:41]wFMCommunicate request_size=4 [08:44:41]MH_SAM_APDU [08:44:41]CAPDU: 80 0D 03 02 [08:44:41]Write to MH i2c: E2 08 00 FD 16 80 0D 03 02 00 00 00 00 8E [08:44:41]Write i2c OK [08:44:41]MH_I2C_Read... [08:44:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:41]Read from MH i2c: E2 [08:44:41]MH_I2C_Read... [08:44:41]Read from MH i2c: E2 0B 00 [08:44:41]MH_I2C_Read... [08:44:41]Read from MH i2c: E2 0B 00 FD 16 00 27 67 7C 33 00 22 43 35 90 00 66 [08:44:41]RAPDU: 27 67 7C 33 00 22 43 35 90 00 [08:44:41]wFMCommunicate OK [08:44:41]SAM_PROTO_SignData done [08:44:41]FM_MakeSignedData done [08:44:41]CreateOFDProtocolMessage [08:44:41]wFMCommunicate request_size=4 [08:44:41]MH_SAM_APDU [08:44:41]CAPDU: 80 11 00 00 [08:44:41]Write to MH i2c: E2 08 00 FE 16 80 11 00 00 00 00 00 00 8E [08:44:41]Write i2c OK [08:44:41]MH_I2C_Read... [08:44:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:41]Read from MH i2c: E2 [08:44:41]MH_I2C_Read... [08:44:41]Read from MH i2c: E2 17 00 [08:44:41]MH_I2C_Read... [08:44:41]Read from MH i2c: E2 17 00 FE 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E3 [08:44:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:44:41]wFMCommunicate OK [08:44:41]CreateOFDProtocolMessage done [08:44:41]OFDSenderStorePacket 201278 [08:44:41]StoreOFDPacket docnum=201278 [08:44:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 5D 23 07 01 EA 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 32 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 28 00 00 00 F4 03 04 00 FB AB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3E 12 03 00 35 04 06 00 63 99 66 B9 8E 5C 27 67 7C 33 00 22 43 35 [08:44:41]CheckFolder [08:44:41]dirname=/storage/ofd_packets [08:44:41]CheckFolder done [08:44:41]ProducePacketName [08:44:41]name=ofd_packets/00201278 [08:44:41]NVStorageSaveData ofd_packets/00201278 [08:44:41]File name is /storage/ofd_packets/00201278 [08:44:41]Write 301 bytes [08:44:41]NVStorageSaveData done [08:44:41]OFDSenderStorePacket done [08:44:41]KKMCreateOFDPacket done [08:44:41]NVStorageSaveData kkm_last_timestamp [08:44:41]File name is /storage/kkm_last_timestamp [08:44:41]Write 4 bytes [08:44:41]NVStorageSaveData done [08:44:41]ExternCall_PrintAddStr [08:44:41]wPrintStart [08:44:41]Write to MH i2c: 01 00 00 FF 16 15 [08:44:41]Write i2c OK [08:44:41]MH_I2C_Read... [08:44:41]Read from MH i2c: 01 [08:44:41]MH_I2C_Read... [08:44:41]Read from MH i2c: 01 07 00 [08:44:41]MH_I2C_Read... [08:44:41]Read from MH i2c: 01 07 00 FF 16 00 00 00 00 00 FF 0F 2A [08:44:41]RasterBufferAndPrint [08:44:41]line Счет N : (1)449025 [08:44:41]line ИНН: 02508201610067 [08:44:41]line Контрольно-Кассовый Чек [08:44:41]line ПРОДАЖА [08:44:41]line ТРК (МРК, ГНК) : 62 [08:44:41]line Товар: 2710124130 [08:44:41]line Аи-92-К-2 [08:44:41]line 7.480 * 66.90 [08:44:41]line = 500.41 [08:44:41]line НДС 12% НСП 1% [08:44:41]line > о реализуемом товаре [08:44:41]line ОКРУГЛЕНИЕ: -0.41 [08:44:41]line ИТОГО: 500.00 [08:44:41]line Внесено: 500.00 [08:44:41]line СДАЧА: 0.00 [08:44:41]line НСП 1% : 4.43 [08:44:41]line НДС 12% : 53.14 [08:44:41]line Наличными: 500.00 [08:44:41]line Безнал.: 0.00 [08:44:41]line Место: АЗС № 171 "Партнер Нефть" [08:44:41]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:44:41]line СНО: Общий режим [08:44:41]line Чек 40 26.10.2024 08:44 [08:44:41]line Смена: 543 ФФД: 1.0 [08:44:41]line ЗНМ: 0300000109 [08:44:41]line РНМ: 0000000000091777 [08:44:41]line Версия ККМ: 001 [08:44:41]line ФМ: 0000000000871756 [08:44:41]line ФД: 201278 [08:44:41]line ФПД: 109510504582748 [08:44:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T084443&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201278&fm=109510504582748&tin=02508201610067®Number=0000000000091777&sum=50000 [08:44:41]OFD Sender: Processing packet 201278 [packets to send 112, broken 111] [08:44:41]ProducePacketName [08:44:41]name=ofd_packets/00201278 [08:44:41]OFD Sender: To server: pG, [08:44:41]CommunicateWithHost lk.salyk.kg:30040 [08:44:41]ConnectInit lk.salyk.kg [08:44:41]written 0, free lines is 4095 [08:44:41]Connected sock=10 [08:44:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 5D 23 07 01 EA 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 32 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 28 00 00 00 F4 03 04 00 FB AB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3E 12 03 00 35 04 06 00 63 99 66 B9 8E 5C 27 67 7C 33 00 22 43 35 [08:44:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 FE D3 47 00 A4 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3E 12 03 00 F4 03 04 00 A4 57 1C 67 B6 04 01 00 00 7D FC 03 28 32 7E 39 0B [08:44:42]CommunicateWithHost err = 0 [08:44:42]CheckOFDResponse [08:44:42]1017 (14) - 77093643461234 [08:44:42]1041 (16) - 0000000000871756 [08:44:42]1040 (4) - 201278 [08:44:42]1012 (4) - 26.10.2024 02:44 [08:44:42]1206 (1) - 0 [08:44:42]OFD Sender: Remove packet 201278 [08:44:42]ProducePacketName [08:44:42]name=ofd_packets/00201278 [08:44:42]NVStorageDeleteData [08:44:42]Write to MH i2c: 01 00 00 2A 17 41 [08:44:42]Write i2c OK [08:44:42]MH_I2C_Read... [08:44:42]Read from MH i2c: 01 [08:44:42]MH_I2C_Read... [08:44:42]Read from MH i2c: 01 07 00 [08:44:42]MH_I2C_Read... [08:44:42]Read from MH i2c: 01 07 00 2A 17 00 00 00 00 00 9D 0C F1 [08:44:42]RasterBufferAndPrint [08:44:42]line [08:44:42]line [08:44:42]line [08:44:42]line [08:44:42]line [08:44:42]written 0, free lines is 3235 [08:44:42]MH_Cut [08:44:42]Write to MH i2c: D1 01 00 31 17 01 1A [08:44:42]Write i2c OK [08:44:42]MH_I2C_Read... [08:44:42]Read from MH i2c: D1 [08:44:42]MH_I2C_Read... [08:44:42]Read from MH i2c: D1 01 00 [08:44:42]MH_I2C_Read... [08:44:42]Read from MH i2c: D1 01 00 31 17 00 19 [08:44:42]Write to MH i2c: 01 00 00 32 17 49 [08:44:42]Write i2c OK [08:44:42]MH_I2C_Read... [08:44:42]OFD Sender: No OFD packet to send [08:44:43]*** Cut start [08:44:43]*** Purtial cut [08:44:43]*** Stage 1: CUTSNS_PIN = 1 [08:44:43]Read from MH i2c: 01 [08:44:43]MH_I2C_Read... [08:44:43]*** Stop cut motor [08:44:43]*** Cut end [08:44:43]Read from MH i2c: 01 07 00 [08:44:43]MH_I2C_Read... [08:44:43]Read from MH i2c: 01 07 00 32 17 00 00 00 00 00 FF 0F 5E [08:44:43]process_action close_receipt done [08:44:43]requested_data is exist [08:44:43]produce_requested_data [08:44:43]requested_item fm.sn is exist - process it [08:44:43]wFMCommunicate request_size=4 [08:44:43]MH_SAM_APDU [08:44:43]CAPDU: 80 11 00 00 [08:44:43]Write to MH i2c: E2 08 00 33 17 80 11 00 00 00 00 00 00 C4 [08:44:43]Write i2c OK [08:44:43]MH_I2C_Read... [08:44:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:43]Read from MH i2c: E2 [08:44:43]MH_I2C_Read... [08:44:43]Read from MH i2c: E2 17 00 [08:44:43]MH_I2C_Read... [08:44:43]Read from MH i2c: E2 17 00 33 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 19 [08:44:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:44:43]wFMCommunicate OK [08:44:43]requested_item fd.num is exist - process it [08:44:43]SAM_PROTO_GetFieldsCounters [08:44:43]wFMCommunicate request_size=4 [08:44:43]MH_SAM_APDU [08:44:43]CAPDU: 80 13 00 00 [08:44:43]Write to MH i2c: E2 08 00 34 17 80 13 00 00 00 00 00 00 C7 [08:44:43]Write i2c OK [08:44:43]MH_I2C_Read... [08:44:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:43]Read from MH i2c: E2 [08:44:43]MH_I2C_Read... [08:44:43]Read from MH i2c: E2 62 00 [08:44:43]MH_I2C_Read... [08:44:43]Read from MH i2c: E2 62 00 34 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3E 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [08:44:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3E 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:44:43]wFMCommunicate OK [08:44:43]SAM_PROTO_GetFieldsCounters done [08:44:43]requested_item shift.num is exist - process it [08:44:43]requested_item shift.opened is exist - process it [08:44:43]req_shift_opened [08:44:43]FM_GetShiftState [08:44:43]SAM_PROTO_GetShiftState [08:44:43]wFMCommunicate request_size=4 [08:44:43]MH_SAM_APDU [08:44:43]CAPDU: 80 13 01 00 [08:44:43]Write to MH i2c: E2 08 00 35 17 80 13 01 00 00 00 00 00 C9 [08:44:43]Write i2c OK [08:44:43]MH_I2C_Read... [08:44:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:43]Read from MH i2c: E2 [08:44:43]MH_I2C_Read... [08:44:43]Read from MH i2c: E2 0E 00 [08:44:43]MH_I2C_Read... [08:44:43]Read from MH i2c: E2 0E 00 35 17 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D8 [08:44:43]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:44:43]wFMCommunicate OK [08:44:43]SAM_PROTO_GetShiftState done [08:44:43]FM_GetShiftState done [08:44:43]req_shift_opened done [08:44:43]requested_item shift.open_date is exist - process it [08:44:43]req_shift_open_date [08:44:43]req_shift_open_date done [08:44:43]produce_requested_data done [08:44:43]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201278,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [08:44:43]process_action_free close_receipt [08:44:43]json_value_free [08:44:43]json_value_free done [08:44:43]process_json_proto returns [08:44:43]Send response to host [08:44:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201278,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [08:44:43]free response buf [08:44:43]execute_script done [08:44:43]execute_script returns [08:44:43]free content buf [08:44:43]Sock 9.Close socket [08:44:43]Sock 9.Thread stoped [08:44:47]OFD Sender: No OFD packet to send [08:44:52]OFD Sender: No OFD packet to send [08:44:57]OFD Sender: No OFD packet to send [08:45:02]OFD Sender: No OFD packet to send [08:45:07]OFD Sender: No OFD packet to send [08:45:12]OFD Sender: No OFD packet to send [08:45:17]OFD Sender: No OFD packet to send [08:45:22]OFD Sender: No OFD packet to send [08:45:27]OFD Sender: No OFD packet to send [08:45:32]OFD Sender: No OFD packet to send [08:45:37]OFD Sender: No OFD packet to send [08:45:42]OFD Sender: No OFD packet to send [08:45:47]OFD Sender: No OFD packet to send [08:45:52]OFD Sender: No OFD packet to send [08:45:57]OFD Sender: No OFD packet to send [08:46:02]OFD Sender: No OFD packet to send [08:46:07]OFD Sender: No OFD packet to send [08:46:12]OFD Sender: No OFD packet to send [08:46:17]OFD Sender: No OFD packet to send [08:46:22]OFD Sender: No OFD packet to send [08:46:22]accept exits with 7 [08:46:22]New connection [08:46:22]New thread 3067559268 created [08:46:22]Thread 3067415908 joined [08:46:22]Waiting for new connection... [08:46:22] Sock 7.Parse request [08:46:22]Sock 7.Check first char [08:46:22]Sock 7.First char is OK [08:46:22]request: POST /json_proto HTTP/1.0 [08:46:22]Method: POST [08:46:22]URL: /json_proto [08:46:22]Method is POST - this is cgi request [08:46:22]url: /json_proto [08:46:22]query_string will be loaded in cgi processing [08:46:22]execute_cgi json_proto POST (null) [08:46:22]execute_cgi path=json_proto method=POST [08:46:22]POST find Content-Length [08:46:22]Host: 172.17.63.195:8080 [08:46:22]Content-Length: 671 [08:46:22]Content-Type: application/json [08:46:22] [08:46:22]POST finish read [08:46:22]Found Content-Length = 671 [08:46:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "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" ] } } [08:46:22]execute_script... [08:46:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "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" ] } } [08:46:22]POST & json_proto [08:46:22]process_json_proto [08:46:22]json parsed OK: [08:46:22]protocol is kg_v1.0 [08:46:22]action value=close_receipt [08:46:22]process_action close_receipt [08:46:22]cmd_close_receipt [08:46:22]MH_GetDate [08:46:22]Write to MH i2c: F0 00 00 36 17 3C [08:46:22]Write i2c OK [08:46:22]MH_I2C_Read... [08:46:22]Read from MH i2c: F0 [08:46:22]MH_I2C_Read... [08:46:22]Read from MH i2c: F0 09 00 [08:46:22]MH_I2C_Read... [08:46:22]Read from MH i2c: F0 09 00 36 17 00 62 AC 1C 67 68 46 19 67 04 [08:46:22]GetLastDocTimeStamp 1729932283 [08:46:22]current date 1729932386 [08:46:22]FM_GetShiftState [08:46:22]SAM_PROTO_GetShiftState [08:46:22]wFMCommunicate request_size=4 [08:46:22]MH_SAM_APDU [08:46:22]CAPDU: 80 13 01 00 [08:46:22]Write to MH i2c: E2 08 00 37 17 80 13 01 00 00 00 00 00 CB [08:46:22]Write i2c OK [08:46:22]MH_I2C_Read... [08:46:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:22]Read from MH i2c: E2 [08:46:22]MH_I2C_Read... [08:46:22]Read from MH i2c: E2 0E 00 [08:46:22]MH_I2C_Read... [08:46:22]Read from MH i2c: E2 0E 00 37 17 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 DA [08:46:22]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:46:22]wFMCommunicate OK [08:46:22]SAM_PROTO_GetShiftState done [08:46:22]FM_GetShiftState done [08:46:22]opened in 1729900879 [08:46:22]opened+sec_in_day 1729987279 [08:46:22]quantity*price = 70041 [08:46:22]sum+1 = 70043 [08:46:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 41 26.10.2024 08:46 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201279 ФПД: 47290399833125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T084626&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201279&fm=47290399833125&tin=02508201610067®Number=0000000000091777&sum=70000 [08:46:23]StoreToDocumentArchive [08:46:23]shift 543 fd 201279 [08:46:23]save to /storage/0543/doc_00201279 [08:46:23]save last doc name /storage/0543/doc_00201279 to /storage/kkm_last_doc_name [08:46:23]save OK [08:46:23]Clear old archive folders... [08:46:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:46:23]tlvbuf is B6F55A10 [08:46:23]SAM_PROTO_ClearQueue [08:46:23]wFMCommunicate request_size=4 [08:46:23]MH_SAM_APDU [08:46:23]CAPDU: 80 09 00 00 [08:46:23]Write to MH i2c: E2 08 00 44 17 80 09 00 00 00 00 00 00 CD [08:46:23]Write i2c OK [08:46:23]MH_I2C_Read... [08:46:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:23]Read from MH i2c: E2 [08:46:23]MH_I2C_Read... [08:46:23]Read from MH i2c: E2 03 00 [08:46:23]MH_I2C_Read... [08:46:23]Read from MH i2c: E2 03 00 44 17 00 90 00 CF [08:46:23]RAPDU: 90 00 [08:46:23]wFMCommunicate OK [08:46:23]SAM_PROTO_ClearQueue done [08:46:23]KKMCreateOFDPacket [08:46:23]OFDProtocolAddRootSTLVToBuf [08:46:23]FM_MakeSignedData [08:46:23]FM_MakeSignedData [08:46:23]SAM_PROTO_SignData [08:46:23]wFMCommunicate request_size=4 [08:46:23]MH_SAM_APDU [08:46:23]CAPDU: 80 0D 01 02 [08:46:23]Write to MH i2c: E2 08 00 45 17 80 0D 01 02 00 00 00 00 D5 [08:46:23]Write i2c OK [08:46:23]MH_I2C_Read... [08:46:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:24]Read from MH i2c: E2 [08:46:24]MH_I2C_Read... [08:46:24]Read from MH i2c: E2 03 00 [08:46:24]MH_I2C_Read... [08:46:24]Read from MH i2c: E2 03 00 45 17 00 90 00 D0 [08:46:24]RAPDU: 90 00 [08:46:24]wFMCommunicate OK [08:46:24]wFMCommunicate request_size=255 [08:46:24]MH_SAM_APDU [08:46: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 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 29 00 00 00 F4 03 04 00 62 AC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3F 12 03 00 35 04 06 00 [08:46:24]Write to MH i2c: E2 02 01 46 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 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 29 00 00 00 F4 03 04 00 62 AC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3F 12 03 00 35 04 06 00 00 00 F6 [08:46:24]Write i2c OK [08:46:24]MH_I2C_Read... [08:46:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:24]Read from MH i2c: E2 [08:46:24]MH_I2C_Read... [08:46:24]Read from MH i2c: E2 03 00 [08:46:24]MH_I2C_Read... [08:46:24]Read from MH i2c: E2 03 00 46 17 00 90 00 D1 [08:46:24]RAPDU: 90 00 [08:46:24]wFMCommunicate OK [08:46:24]wFMCommunicate request_size=11 [08:46:24]MH_SAM_APDU [08:46:24]CAPDU: 80 0D 02 02 06 2B 02 A7 7B BC 25 [08:46:24]Write to MH i2c: E2 0E 00 47 17 80 0D 02 02 06 00 2B 02 A7 7B BC 25 00 00 14 [08:46:24]Write i2c OK [08:46:24]MH_I2C_Read... [08:46:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:24]Read from MH i2c: E2 [08:46:24]MH_I2C_Read... [08:46:24]Read from MH i2c: E2 03 00 [08:46:24]MH_I2C_Read... [08:46:24]Read from MH i2c: E2 03 00 47 17 00 90 00 D2 [08:46:24]RAPDU: 90 00 [08:46:24]wFMCommunicate OK [08:46:24]wFMCommunicate request_size=4 [08:46:24]MH_SAM_APDU [08:46:24]CAPDU: 80 0D 03 02 [08:46:24]Write to MH i2c: E2 08 00 48 17 80 0D 03 02 00 00 00 00 DA [08:46:24]Write i2c OK [08:46:24]MH_I2C_Read... [08:46:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:46:24]Read from MH i2c: E2 [08:46:24]MH_I2C_Read... [08:46:24]Read from MH i2c: E2 0B 00 [08:46:24]MH_I2C_Read... [08:46:24]Read from MH i2c: E2 0B 00 48 17 00 68 D0 95 D6 AD 5C 8C 5E 90 00 71 [08:46:24]RAPDU: 68 D0 95 D6 AD 5C 8C 5E 90 00 [08:46:24]wFMCommunicate OK [08:46:24]SAM_PROTO_SignData done [08:46:24]FM_MakeSignedData done [08:46:24]CreateOFDProtocolMessage [08:46:24]wFMCommunicate request_size=4 [08:46:24]MH_SAM_APDU [08:46:24]CAPDU: 80 11 00 00 [08:46:24]Write to MH i2c: E2 08 00 49 17 80 11 00 00 00 00 00 00 DA [08:46:24]Write i2c OK [08:46:24]MH_I2C_Read... [08:46:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:24]Read from MH i2c: E2 [08:46:24]MH_I2C_Read... [08:46:24]Read from MH i2c: E2 17 00 [08:46:24]MH_I2C_Read... [08:46:24]Read from MH i2c: E2 17 00 49 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2F [08:46:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:46:24]wFMCommunicate OK [08:46:24]CreateOFDProtocolMessage done [08:46:24]OFDSenderStorePacket 201279 [08:46:24]StoreOFDPacket docnum=201279 [08:46:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 0B CA 08 01 58 B8 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 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 29 00 00 00 F4 03 04 00 62 AC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3F 12 03 00 35 04 06 00 2B 02 A7 7B BC 25 68 D0 95 D6 AD 5C 8C 5E [08:46:24]CheckFolder [08:46:24]dirname=/storage/ofd_packets [08:46:24]CheckFolder done [08:46:24]ProducePacketName [08:46:24]name=ofd_packets/00201279 [08:46:24]NVStorageSaveData ofd_packets/00201279 [08:46:24]File name is /storage/ofd_packets/00201279 [08:46:24]Write 302 bytes [08:46:24]NVStorageSaveData done [08:46:24]OFDSenderStorePacket done [08:46:24]KKMCreateOFDPacket done [08:46:24]NVStorageSaveData kkm_last_timestamp [08:46:24]File name is /storage/kkm_last_timestamp [08:46:24]Write 4 bytes [08:46:24]NVStorageSaveData done [08:46:24]ExternCall_PrintAddStr [08:46:24]wPrintStart [08:46:24]Write to MH i2c: 01 00 00 4A 17 61 [08:46:24]Write i2c OK [08:46:24]MH_I2C_Read... [08:46:24]Read from MH i2c: 01 [08:46:24]MH_I2C_Read... [08:46:24]Read from MH i2c: 01 07 00 [08:46:24]MH_I2C_Read... [08:46:24]Read from MH i2c: 01 07 00 4A 17 00 00 00 00 00 FF 0F 76 [08:46:24]RasterBufferAndPrint [08:46:24]line Счет N : (1)449026 [08:46:24]line ИНН: 02508201610067 [08:46:24]line Контрольно-Кассовый Чек [08:46:24]line ПРОДАЖА [08:46:24]line ТРК (МРК, ГНК) : 63 [08:46:24]line Товар: 2710124130 [08:46:24]line SUPER 92-К-5 [08:46:24]line 10.240 * 68.40 [08:46:24]line = 700.42 [08:46:24]line НДС 12% НСП 1% [08:46:24]line > о реализуемом товаре [08:46:24]line ОКРУГЛЕНИЕ: -0.42 [08:46:24]line ИТОГО: 700.00 [08:46:24]line Внесено: 700.00 [08:46:24]line СДАЧА: 0.00 [08:46:24]line НСП 1% : 6.20 [08:46:24]line НДС 12% : 74.38 [08:46:24]line Наличными: 700.00 [08:46:24]line Безнал.: 0.00 [08:46:24]line Место: АЗС № 171 "Партнер Нефть" [08:46:24]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:46:24]line СНО: Общий режим [08:46:24]line Чек 41 26.10.2024 08:46 [08:46:24]line Смена: 543 ФФД: 1.0 [08:46:24]line ЗНМ: 0300000109 [08:46:24]line РНМ: 0000000000091777 [08:46:24]line Версия ККМ: 001 [08:46:24]line ФМ: 0000000000871756 [08:46:24]line ФД: 201279 [08:46:24]line ФПД: 47290399833125 [08:46:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T084626&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201279&fm=47290399833125&tin=02508201610067®Number=0000000000091777&sum=70000 [08:46:24]written 0, free lines is 4095 [08:46:24]OFD Sender: Processing packet 201279 [packets to send 112, broken 111] [08:46:24]ProducePacketName [08:46:24]name=ofd_packets/00201279 [08:46:24]OFD Sender: To server: pG, [08:46:24]CommunicateWithHost lk.salyk.kg:30040 [08:46:24]ConnectInit lk.salyk.kg [08:46:24]Connected sock=11 [08:46:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 0B CA 08 01 58 B8 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 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 29 00 00 00 F4 03 04 00 62 AC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3F 12 03 00 35 04 06 00 2B 02 A7 7B BC 25 68 D0 95 D6 AD 5C 8C 5E [08:46:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 92 D3 47 00 CE 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3F 12 03 00 F4 03 04 00 0B 58 1C 67 B6 04 01 00 00 A9 1C 0B F5 75 81 05 88 [08:46:24]CommunicateWithHost err = 0 [08:46:24]CheckOFDResponse [08:46:24]1017 (14) - 77093643461234 [08:46:24]1041 (16) - 0000000000871756 [08:46:24]1040 (4) - 201279 [08:46:24]1012 (4) - 26.10.2024 02:46 [08:46:24]1206 (1) - 0 [08:46:24]OFD Sender: Remove packet 201279 [08:46:24]ProducePacketName [08:46:24]name=ofd_packets/00201279 [08:46:24]NVStorageDeleteData [08:46:24]Write to MH i2c: 01 00 00 75 17 8C [08:46:24]Write i2c OK [08:46:24]MH_I2C_Read... [08:46:24]Read from MH i2c: 01 [08:46:24]MH_I2C_Read... [08:46:24]Read from MH i2c: 01 07 00 [08:46:24]MH_I2C_Read... [08:46:24]Read from MH i2c: 01 07 00 75 17 00 00 00 00 00 97 0C 36 [08:46:24]RasterBufferAndPrint [08:46:24]line [08:46:24]line [08:46:24]line [08:46:24]line [08:46:24]line [08:46:24]written 0, free lines is 3229 [08:46:24]MH_Cut [08:46:24]Write to MH i2c: D1 01 00 7C 17 01 65 [08:46:24]Write i2c OK [08:46:24]MH_I2C_Read... [08:46:24]Read from MH i2c: D1 [08:46:24]MH_I2C_Read... [08:46:24]Read from MH i2c: D1 01 00 [08:46:24]MH_I2C_Read... [08:46:24]Read from MH i2c: D1 01 00 7C 17 00 64 [08:46:24]Write to MH i2c: 01 00 00 7D 17 94 [08:46:24]Write i2c OK [08:46:24]MH_I2C_Read... [08:46:25]OFD Sender: No OFD packet to send [08:46:25]*** Cut start [08:46:25]*** Purtial cut [08:46:25]*** Stage 1: CUTSNS_PIN = 1 [08:46:26]Read from MH i2c: 01 [08:46:26]MH_I2C_Read... [08:46:26]*** Stop cut motor [08:46:26]*** Cut end [08:46:26]Read from MH i2c: 01 07 00 [08:46:26]MH_I2C_Read... [08:46:26]Read from MH i2c: 01 07 00 7D 17 00 00 00 00 00 FF 0F A9 [08:46:26]process_action close_receipt done [08:46:26]requested_data is exist [08:46:26]produce_requested_data [08:46:26]requested_item fm.sn is exist - process it [08:46:26]wFMCommunicate request_size=4 [08:46:26]MH_SAM_APDU [08:46:26]CAPDU: 80 11 00 00 [08:46:26]Write to MH i2c: E2 08 00 7E 17 80 11 00 00 00 00 00 00 0F [08:46:26]Write i2c OK [08:46:26]MH_I2C_Read... [08:46:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:26]Read from MH i2c: E2 [08:46:26]MH_I2C_Read... [08:46:26]Read from MH i2c: E2 17 00 [08:46:26]MH_I2C_Read... [08:46:26]Read from MH i2c: E2 17 00 7E 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 64 [08:46:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:46:26]wFMCommunicate OK [08:46:26]requested_item fd.num is exist - process it [08:46:26]SAM_PROTO_GetFieldsCounters [08:46:26]wFMCommunicate request_size=4 [08:46:26]MH_SAM_APDU [08:46:26]CAPDU: 80 13 00 00 [08:46:26]Write to MH i2c: E2 08 00 7F 17 80 13 00 00 00 00 00 00 12 [08:46:26]Write i2c OK [08:46:26]MH_I2C_Read... [08:46:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:26]Read from MH i2c: E2 [08:46:26]MH_I2C_Read... [08:46:26]Read from MH i2c: E2 62 00 [08:46:26]MH_I2C_Read... [08:46:26]Read from MH i2c: E2 62 00 7F 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3F 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [08:46:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3F 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:46:26]wFMCommunicate OK [08:46:26]SAM_PROTO_GetFieldsCounters done [08:46:26]requested_item shift.num is exist - process it [08:46:26]requested_item shift.opened is exist - process it [08:46:26]req_shift_opened [08:46:26]FM_GetShiftState [08:46:26]SAM_PROTO_GetShiftState [08:46:26]wFMCommunicate request_size=4 [08:46:26]MH_SAM_APDU [08:46:26]CAPDU: 80 13 01 00 [08:46:26]Write to MH i2c: E2 08 00 80 17 80 13 01 00 00 00 00 00 14 [08:46:26]Write i2c OK [08:46:26]MH_I2C_Read... [08:46:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:26]Read from MH i2c: E2 [08:46:26]MH_I2C_Read... [08:46:26]Read from MH i2c: E2 0E 00 [08:46:26]MH_I2C_Read... [08:46:26]Read from MH i2c: E2 0E 00 80 17 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 23 [08:46:26]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:46:26]wFMCommunicate OK [08:46:26]SAM_PROTO_GetShiftState done [08:46:26]FM_GetShiftState done [08:46:26]req_shift_opened done [08:46:26]requested_item shift.open_date is exist - process it [08:46:26]req_shift_open_date [08:46:26]req_shift_open_date done [08:46:26]produce_requested_data done [08:46:26]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201279,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [08:46:26]process_action_free close_receipt [08:46:26]json_value_free [08:46:26]json_value_free done [08:46:26]process_json_proto returns [08:46:26]Send response to host [08:46:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201279,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [08:46:26]free response buf [08:46:26]execute_script done [08:46:26]execute_script returns [08:46:26]free content buf [08:46:26]Sock 7.Close socket [08:46:26]Sock 7.Thread stoped [08:46:30]OFD Sender: No OFD packet to send [08:46:35]OFD Sender: No OFD packet to send [08:46:40]OFD Sender: No OFD packet to send [08:46:45]OFD Sender: No OFD packet to send [08:46:50]OFD Sender: No OFD packet to send [08:46:55]OFD Sender: No OFD packet to send [08:47:00]OFD Sender: No OFD packet to send [08:47:05]OFD Sender: No OFD packet to send [08:47:10]OFD Sender: No OFD packet to send [08:47:15]OFD Sender: No OFD packet to send [08:47:20]OFD Sender: No OFD packet to send [08:47:25]OFD Sender: No OFD packet to send [08:47:30]OFD Sender: No OFD packet to send [08:47:35]OFD Sender: No OFD packet to send [08:47:40]OFD Sender: No OFD packet to send [08:47:45]OFD Sender: No OFD packet to send [08:47:50]OFD Sender: No OFD packet to send [08:47:55]OFD Sender: No OFD packet to send [08:48:00]OFD Sender: No OFD packet to send [08:48:05]OFD Sender: No OFD packet to send [08:48:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48:25]OFD Sender: No OFD packet to send [08:48:30]OFD Sender: No OFD packet to send [08:48:35]OFD Sender: No OFD packet to send [08:48:40]OFD Sender: No OFD packet to send [08:48:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:15]OFD Sender: No OFD packet to send [08:49:20]OFD Sender: No OFD packet to send [08:49:25]OFD Sender: No OFD packet to send [08:49:30]OFD Sender: No OFD packet to send [08:49:35]OFD Sender: No OFD packet to send [08:49:40]OFD Sender: No OFD packet to send [08:49:45]OFD Sender: No OFD packet to send [08:49:49]accept exits with 9 [08:49:49]New connection [08:49:49]New thread 3067415908 created [08:49:49]Thread 3067559268 joined [08:49:49]Waiting for new connection... [08:49:49] Sock 9.Parse request [08:49:49]Sock 9.Check first char [08:49:49]Sock 9.First char is OK [08:49:49]request: POST /json_proto HTTP/1.0 [08:49:49]Method: POST [08:49:49]URL: /json_proto [08:49:49]Method is POST - this is cgi request [08:49:49]url: /json_proto [08:49:49]query_string will be loaded in cgi processing [08:49:49]execute_cgi json_proto POST (null) [08:49:49]execute_cgi path=json_proto method=POST [08:49:49]POST find Content-Length [08:49:49]Host: 172.17.63.195:8080 [08:49:49]Content-Length: 677 [08:49:49]Content-Type: application/json [08:49:49] [08:49:49]POST finish read [08:49:49]Found Content-Length = 677 [08:49:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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" ] } } [08:49:49]execute_script... [08:49: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)449027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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" ] } } [08:49:49]POST & json_proto [08:49:49]process_json_proto [08:49:49]json parsed OK: [08:49:49]protocol is kg_v1.0 [08:49:49]action value=close_receipt [08:49:49]process_action close_receipt [08:49:49]cmd_close_receipt [08:49:49]MH_GetDate [08:49:49]Write to MH i2c: F0 00 00 81 17 87 [08:49:49]Write i2c OK [08:49:49]MH_I2C_Read... [08:49:49]Read from MH i2c: F0 [08:49:49]MH_I2C_Read... [08:49:49]Read from MH i2c: F0 09 00 [08:49:49]MH_I2C_Read... [08:49:49]Read from MH i2c: F0 09 00 81 17 00 31 AD 1C 67 68 46 19 67 1F [08:49:49]GetLastDocTimeStamp 1729932386 [08:49:49]current date 1729932593 [08:49:49]FM_GetShiftState [08:49:49]SAM_PROTO_GetShiftState [08:49:49]wFMCommunicate request_size=4 [08:49:49]MH_SAM_APDU [08:49:49]CAPDU: 80 13 01 00 [08:49:49]Write to MH i2c: E2 08 00 82 17 80 13 01 00 00 00 00 00 16 [08:49:49]Write i2c OK [08:49:49]MH_I2C_Read... [08:49:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:49]Read from MH i2c: E2 [08:49:49]MH_I2C_Read... [08:49:49]Read from MH i2c: E2 0E 00 [08:49:49]MH_I2C_Read... [08:49:49]Read from MH i2c: E2 0E 00 82 17 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 25 [08:49:49]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:49:49]wFMCommunicate OK [08:49:49]SAM_PROTO_GetShiftState done [08:49:49]FM_GetShiftState done [08:49:49]opened in 1729900879 [08:49:49]opened+sec_in_day 1729987279 [08:49:49]quantity*price = 60009 [08:49:49]sum+1 = 60010 [08:49:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 42 26.10.2024 08:49 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201280 ФПД: 144515921954063 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T084953&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201280&fm=144515921954063&tin=02508201610067®Number=0000000000091777&sum=60000 [08:49:50]StoreToDocumentArchive [08:49:50]shift 543 fd 201280 [08:49:50]save to /storage/0543/doc_00201280 [08:49:50]save last doc name /storage/0543/doc_00201280 to /storage/kkm_last_doc_name [08:49:50]save OK [08:49:50]Clear old archive folders... [08:49:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:49:50]tlvbuf is 0172E140 [08:49:50]SAM_PROTO_ClearQueue [08:49:50]wFMCommunicate request_size=4 [08:49:50]MH_SAM_APDU [08:49:50]CAPDU: 80 09 00 00 [08:49:50]Write to MH i2c: E2 08 00 8F 17 80 09 00 00 00 00 00 00 18 [08:49:50]Write i2c OK [08:49:50]MH_I2C_Read... [08:49:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:49:50]Read from MH i2c: E2 [08:49:50]MH_I2C_Read... [08:49:50]Read from MH i2c: E2 03 00 [08:49:50]MH_I2C_Read... [08:49:50]Read from MH i2c: E2 03 00 8F 17 00 90 00 1A [08:49:50]RAPDU: 90 00 [08:49:50]wFMCommunicate OK [08:49:50]SAM_PROTO_ClearQueue done [08:49:50]KKMCreateOFDPacket [08:49:50]OFDProtocolAddRootSTLVToBuf [08:49:50]FM_MakeSignedData [08:49:50]FM_MakeSignedData [08:49:50]SAM_PROTO_SignData [08:49:50]wFMCommunicate request_size=4 [08:49:50]MH_SAM_APDU [08:49:50]CAPDU: 80 0D 01 02 [08:49:50]Write to MH i2c: E2 08 00 90 17 80 0D 01 02 00 00 00 00 20 [08:49:50]Write i2c OK [08:49:50]MH_I2C_Read... [08:49:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:49:50]Read from MH i2c: E2 [08:49:50]MH_I2C_Read... [08:49:50]Read from MH i2c: E2 03 00 [08:49:50]MH_I2C_Read... [08:49:50]Read from MH i2c: E2 03 00 90 17 00 90 00 1B [08:49:50]RAPDU: 90 00 [08:49:50]wFMCommunicate OK [08:49:50]wFMCommunicate request_size=255 [08:49:50]MH_SAM_APDU [08:49: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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 2A 00 00 00 F4 03 04 00 31 AD 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 40 12 03 00 35 04 06 00 83 [08:49:50]Write to MH i2c: E2 02 01 91 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 2A 00 00 00 F4 03 04 00 31 AD 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 40 12 03 00 35 04 06 00 83 00 00 15 [08:49:50]Write i2c OK [08:49:50]MH_I2C_Read... [08:49:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:51]Read from MH i2c: E2 [08:49:51]MH_I2C_Read... [08:49:51]Read from MH i2c: E2 03 00 [08:49:51]MH_I2C_Read... [08:49:51]Read from MH i2c: E2 03 00 91 17 00 90 00 1C [08:49:51]RAPDU: 90 00 [08:49:51]wFMCommunicate OK [08:49:51]wFMCommunicate request_size=10 [08:49:51]MH_SAM_APDU [08:49:51]CAPDU: 80 0D 02 02 05 6F BC 31 45 0F [08:49:51]Write to MH i2c: E2 0D 00 92 17 80 0D 02 02 05 00 6F BC 31 45 0F 00 00 DD [08:49:51]Write i2c OK [08:49:51]MH_I2C_Read... [08:49:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:51]Read from MH i2c: E2 [08:49:51]MH_I2C_Read... [08:49:51]Read from MH i2c: E2 03 00 [08:49:51]MH_I2C_Read... [08:49:51]Read from MH i2c: E2 03 00 92 17 00 90 00 1D [08:49:51]RAPDU: 90 00 [08:49:51]wFMCommunicate OK [08:49:51]wFMCommunicate request_size=4 [08:49:51]MH_SAM_APDU [08:49:51]CAPDU: 80 0D 03 02 [08:49:51]Write to MH i2c: E2 08 00 93 17 80 0D 03 02 00 00 00 00 25 [08:49:51]Write i2c OK [08:49:51]MH_I2C_Read... [08:49:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:49:51]Read from MH i2c: E2 [08:49:51]MH_I2C_Read... [08:49:51]Read from MH i2c: E2 0B 00 [08:49:51]MH_I2C_Read... [08:49:51]Read from MH i2c: E2 0B 00 93 17 00 2A CE 1F 58 F0 50 D6 28 90 00 D3 [08:49:51]RAPDU: 2A CE 1F 58 F0 50 D6 28 90 00 [08:49:51]wFMCommunicate OK [08:49:51]SAM_PROTO_SignData done [08:49:51]FM_MakeSignedData done [08:49:51]CreateOFDProtocolMessage [08:49:51]wFMCommunicate request_size=4 [08:49:51]MH_SAM_APDU [08:49:51]CAPDU: 80 11 00 00 [08:49:51]Write to MH i2c: E2 08 00 94 17 80 11 00 00 00 00 00 00 25 [08:49:51]Write i2c OK [08:49:51]MH_I2C_Read... [08:49:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:51]Read from MH i2c: E2 [08:49:51]MH_I2C_Read... [08:49:51]Read from MH i2c: E2 17 00 [08:49:51]MH_I2C_Read... [08:49:51]Read from MH i2c: E2 17 00 94 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7A [08:49:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:49:51]wFMCommunicate OK [08:49:51]CreateOFDProtocolMessage done [08:49:51]OFDSenderStorePacket 201280 [08:49:51]StoreOFDPacket docnum=201280 [08:49:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 9A D2 07 01 3D 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 2A 00 00 00 F4 03 04 00 31 AD 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 40 12 03 00 35 04 06 00 83 6F BC 31 45 0F 2A CE 1F 58 F0 50 D6 28 [08:49:51]CheckFolder [08:49:51]dirname=/storage/ofd_packets [08:49:51]CheckFolder done [08:49:51]ProducePacketName [08:49:51]name=ofd_packets/00201280 [08:49:51]NVStorageSaveData ofd_packets/00201280 [08:49:51]File name is /storage/ofd_packets/00201280 [08:49:51]Write 301 bytes [08:49:51]NVStorageSaveData done [08:49:51]OFDSenderStorePacket done [08:49:51]KKMCreateOFDPacket done [08:49:51]NVStorageSaveData kkm_last_timestamp [08:49:51]File name is /storage/kkm_last_timestamp [08:49:51]Write 4 bytes [08:49:51]NVStorageSaveData done [08:49:51]ExternCall_PrintAddStr [08:49:51]wPrintStart [08:49:51]Write to MH i2c: 01 00 00 95 17 AC [08:49:51]Write i2c OK [08:49:51]MH_I2C_Read... [08:49:51]Read from MH i2c: 01 [08:49:51]MH_I2C_Read... [08:49:51]Read from MH i2c: 01 07 00 [08:49:51]MH_I2C_Read... [08:49:51]Read from MH i2c: 01 07 00 95 17 00 00 00 00 00 FF 0F C1 [08:49:51]RasterBufferAndPrint [08:49:51]line Счет N : (1)449027 [08:49:51]line ИНН: 02508201610067 [08:49:51]line Контрольно-Кассовый Чек [08:49:51]line ПРОДАЖА [08:49:51]line ТРК (МРК, ГНК) : 41 [08:49:51]line Товар: 2710124130 [08:49:51]line Аи-92-К-2 [08:49:51]line 8.970 * 66.90 [08:49:51]line = 600.09 [08:49:51]line НДС 12% НСП 1% [08:49:51]line > о реализуемом товаре [08:49:51]line ОКРУГЛЕНИЕ: -0.09 [08:49:51]line ИТОГО: 600.00 [08:49:51]line Внесено: 600.00 [08:49:51]line СДАЧА: 0.00 [08:49:51]line НСП 1% : 5.31 [08:49:51]line НДС 12% : 63.73 [08:49:51]line Наличными: 600.00 [08:49:51]line Безнал.: 0.00 [08:49:51]line Место: АЗС № 171 "Партнер Нефть" [08:49:51]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:49:51]line СНО: Общий режим [08:49:51]line Чек 42 26.10.2024 08:49 [08:49:51]line Смена: 543 ФФД: 1.0 [08:49:51]line ЗНМ: 0300000109 [08:49:51]line РНМ: 0000000000091777 [08:49:51]line Версия ККМ: 001 [08:49:51]line ФМ: 0000000000871756 [08:49:51]line ФД: 201280 [08:49:51]line ФПД: 144515921954063 [08:49:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T084953&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201280&fm=144515921954063&tin=02508201610067®Number=0000000000091777&sum=60000 [08:49:51]OFD Sender: Processing packet 201280 [packets to send 112, broken 111] [08:49:51]ProducePacketName [08:49:51]name=ofd_packets/00201280 [08:49:51]OFD Sender: To server: pG, [08:49:51]CommunicateWithHost lk.salyk.kg:30040 [08:49:51]ConnectInit lk.salyk.kg [08:49:51]written 0, free lines is 4095 [08:49:51]Connected sock=10 [08:49:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 9A D2 07 01 3D 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 2A 00 00 00 F4 03 04 00 31 AD 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 40 12 03 00 35 04 06 00 83 6F BC 31 45 0F 2A CE 1F 58 F0 50 D6 28 [08:49:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C4 40 47 00 B6 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 40 12 03 00 F4 03 04 00 DA 58 1C 67 B6 04 01 00 00 99 BB D3 CD 8C C1 6C 65 [08:49:51]CommunicateWithHost err = 0 [08:49:51]CheckOFDResponse [08:49:51]1017 (14) - 77093643461234 [08:49:51]1041 (16) - 0000000000871756 [08:49:51]1040 (4) - 201280 [08:49:51]1012 (4) - 26.10.2024 02:50 [08:49:51]1206 (1) - 0 [08:49:51]OFD Sender: Remove packet 201280 [08:49:51]ProducePacketName [08:49:51]name=ofd_packets/00201280 [08:49:51]NVStorageDeleteData [08:49:52]Write to MH i2c: 01 00 00 C0 17 D7 [08:49:52]Write i2c OK [08:49:52]MH_I2C_Read... [08:49:52]Read from MH i2c: 01 [08:49:52]MH_I2C_Read... [08:49:52]Read from MH i2c: 01 07 00 [08:49:52]MH_I2C_Read... [08:49:52]Read from MH i2c: 01 07 00 C0 17 00 00 00 00 00 A0 0C 8A [08:49:52]RasterBufferAndPrint [08:49:52]line [08:49:52]line [08:49:52]line [08:49:52]line [08:49:52]line [08:49:52]written 0, free lines is 3236 [08:49:52]MH_Cut [08:49:52]Write to MH i2c: D1 01 00 C7 17 01 B0 [08:49:52]Write i2c OK [08:49:52]MH_I2C_Read... [08:49:52]Read from MH i2c: D1 [08:49:52]MH_I2C_Read... [08:49:52]Read from MH i2c: D1 01 00 [08:49:52]MH_I2C_Read... [08:49:52]Read from MH i2c: D1 01 00 C7 17 00 AF [08:49:52]Write to MH i2c: 01 00 00 C8 17 DF [08:49:52]Write i2c OK [08:49:52]MH_I2C_Read... [08:49:52]OFD Sender: No OFD packet to send [08:49:52]*** Cut start [08:49:52]*** Purtial cut [08:49:52]*** Stage 1: CUTSNS_PIN = 1 [08:49:53]Read from MH i2c: 01 [08:49:53]MH_I2C_Read... [08:49:53]*** Stop cut motor [08:49:53]*** Cut end [08:49:53]Read from MH i2c: 01 07 00 [08:49:53]MH_I2C_Read... [08:49:53]Read from MH i2c: 01 07 00 C8 17 00 00 00 00 00 FF 0F F4 [08:49:53]process_action close_receipt done [08:49:53]requested_data is exist [08:49:53]produce_requested_data [08:49:53]requested_item fm.sn is exist - process it [08:49:53]wFMCommunicate request_size=4 [08:49:53]MH_SAM_APDU [08:49:53]CAPDU: 80 11 00 00 [08:49:53]Write to MH i2c: E2 08 00 C9 17 80 11 00 00 00 00 00 00 5A [08:49:53]Write i2c OK [08:49:53]MH_I2C_Read... [08:49:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:53]Read from MH i2c: E2 [08:49:53]MH_I2C_Read... [08:49:53]Read from MH i2c: E2 17 00 [08:49:53]MH_I2C_Read... [08:49:53]Read from MH i2c: E2 17 00 C9 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AF [08:49:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:49:53]wFMCommunicate OK [08:49:53]requested_item fd.num is exist - process it [08:49:53]SAM_PROTO_GetFieldsCounters [08:49:53]wFMCommunicate request_size=4 [08:49:53]MH_SAM_APDU [08:49:53]CAPDU: 80 13 00 00 [08:49:53]Write to MH i2c: E2 08 00 CA 17 80 13 00 00 00 00 00 00 5D [08:49:53]Write i2c OK [08:49:53]MH_I2C_Read... [08:49:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:49:53]Read from MH i2c: E2 [08:49:53]MH_I2C_Read... [08:49:53]Read from MH i2c: E2 62 00 [08:49:53]MH_I2C_Read... [08:49:53]Read from MH i2c: E2 62 00 CA 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 40 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [08:49:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 40 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:49:53]wFMCommunicate OK [08:49:53]SAM_PROTO_GetFieldsCounters done [08:49:53]requested_item shift.num is exist - process it [08:49:53]requested_item shift.opened is exist - process it [08:49:53]req_shift_opened [08:49:53]FM_GetShiftState [08:49:53]SAM_PROTO_GetShiftState [08:49:53]wFMCommunicate request_size=4 [08:49:53]MH_SAM_APDU [08:49:53]CAPDU: 80 13 01 00 [08:49:53]Write to MH i2c: E2 08 00 CB 17 80 13 01 00 00 00 00 00 5F [08:49:53]Write i2c OK [08:49:53]MH_I2C_Read... [08:49:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:53]Read from MH i2c: E2 [08:49:53]MH_I2C_Read... [08:49:53]Read from MH i2c: E2 0E 00 [08:49:53]MH_I2C_Read... [08:49:53]Read from MH i2c: E2 0E 00 CB 17 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 6E [08:49:53]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:49:53]wFMCommunicate OK [08:49:53]SAM_PROTO_GetShiftState done [08:49:53]FM_GetShiftState done [08:49:53]req_shift_opened done [08:49:53]requested_item shift.open_date is exist - process it [08:49:53]req_shift_open_date [08:49:53]req_shift_open_date done [08:49:53]produce_requested_data done [08:49:53]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201280,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [08:49:53]process_action_free close_receipt [08:49:53]json_value_free [08:49:53]json_value_free done [08:49:53]process_json_proto returns [08:49:53]Send response to host [08:49:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201280,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [08:49:53]free response buf [08:49:53]execute_script done [08:49:53]execute_script returns [08:49:53]free content buf [08:49:53]Sock 9.Close socket [08:49:53]Sock 9.Thread stoped [08:49:57]OFD Sender: No OFD packet to send [08:50:02]OFD Sender: No OFD packet to send [08:50:07]OFD Sender: No OFD packet to send [08:50:12]OFD Sender: No OFD packet to send [08:50:17]OFD Sender: No OFD packet to send [08:50:22]OFD Sender: No OFD packet to send [08:50:27]OFD Sender: No OFD packet to send [08:50:32]OFD Sender: No OFD packet to send [08:50:37]OFD Sender: No OFD packet to send [08:50:42]accept exits with 7 [08:50:42]New connection [08:50:42]New thread 3067559268 created [08:50:42]Thread 3067415908 joined [08:50:42]Waiting for new connection... [08:50:42] Sock 7.Parse request [08:50:42]Sock 7.Check first char [08:50:42]Sock 7.First char is OK [08:50:42]request: POST /json_proto HTTP/1.0 [08:50:42]Method: POST [08:50:42]URL: /json_proto [08:50:42]Method is POST - this is cgi request [08:50:42]url: /json_proto [08:50:42]query_string will be loaded in cgi processing [08:50:42]execute_cgi json_proto POST (null) [08:50:42]execute_cgi path=json_proto method=POST [08:50:42]POST find Content-Length [08:50:42]Host: 172.17.63.195:8080 [08:50:42]Content-Length: 632 [08:50:42]Content-Type: application/json [08:50:42] [08:50:42]POST finish read [08:50:42]Found Content-Length = 632 [08:50:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:42]execute_script... [08:50: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)449028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:42]POST & json_proto [08:50:42]process_json_proto [08:50:42]json parsed OK: [08:50:42]protocol is kg_v1.0 [08:50:42]action value=close_receipt [08:50:42]process_action close_receipt [08:50:42]cmd_close_receipt [08:50:42]MH_GetDate [08:50:42]Write to MH i2c: F0 00 00 CC 17 D2 [08:50:42]Write i2c OK [08:50:42]MH_I2C_Read... [08:50:42]Read from MH i2c: F0 [08:50:42]MH_I2C_Read... [08:50:42]Read from MH i2c: F0 09 00 [08:50:42]MH_I2C_Read... [08:50:42]Read from MH i2c: F0 09 00 CC 17 00 65 AD 1C 67 68 46 19 67 9E [08:50:42]GetLastDocTimeStamp 1729932593 [08:50:42]current date 1729932645 [08:50:42]FM_GetShiftState [08:50:42]SAM_PROTO_GetShiftState [08:50:42]wFMCommunicate request_size=4 [08:50:42]MH_SAM_APDU [08:50:42]CAPDU: 80 13 01 00 [08:50:42]Write to MH i2c: E2 08 00 CD 17 80 13 01 00 00 00 00 00 61 [08:50:42]Write i2c OK [08:50:42]MH_I2C_Read... [08:50:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:42]Read from MH i2c: E2 [08:50:42]MH_I2C_Read... [08:50:42]Read from MH i2c: E2 0E 00 [08:50:42]MH_I2C_Read... [08:50:42]Read from MH i2c: E2 0E 00 CD 17 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 70 [08:50:42]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:50:42]wFMCommunicate OK [08:50:42]SAM_PROTO_GetShiftState done [08:50:42]FM_GetShiftState done [08:50:42]opened in 1729900879 [08:50:42]opened+sec_in_day 1729987279 [08:50:42]quantity*price = 50000 [08:50:42]sum+1 = 50001 [08:50:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 43 26.10.2024 08:50 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201281 ФПД: 116211637317982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T085045&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201281&fm=116211637317982&tin=02508201610067®Number=0000000000091777&sum=50000 [08:50:43]StoreToDocumentArchive [08:50:43]shift 543 fd 201281 [08:50:43]save to /storage/0543/doc_00201281 [08:50:43]save last doc name /storage/0543/doc_00201281 to /storage/kkm_last_doc_name [08:50:43]save OK [08:50:43]Clear old archive folders... [08:50:43]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:50:43]tlvbuf is 0178B230 [08:50:43]SAM_PROTO_ClearQueue [08:50:43]wFMCommunicate request_size=4 [08:50:43]MH_SAM_APDU [08:50:43]CAPDU: 80 09 00 00 [08:50:43]Write to MH i2c: E2 08 00 DA 17 80 09 00 00 00 00 00 00 63 [08:50:43]Write i2c OK [08:50:43]MH_I2C_Read... [08:50:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:43]Read from MH i2c: E2 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: E2 03 00 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: E2 03 00 DA 17 00 90 00 65 [08:50:43]RAPDU: 90 00 [08:50:43]wFMCommunicate OK [08:50:43]SAM_PROTO_ClearQueue done [08:50:43]KKMCreateOFDPacket [08:50:43]OFDProtocolAddRootSTLVToBuf [08:50:43]FM_MakeSignedData [08:50:43]FM_MakeSignedData [08:50:43]SAM_PROTO_SignData [08:50:43]wFMCommunicate request_size=4 [08:50:43]MH_SAM_APDU [08:50:43]CAPDU: 80 0D 01 02 [08:50:43]Write to MH i2c: E2 08 00 DB 17 80 0D 01 02 00 00 00 00 6B [08:50:43]Write i2c OK [08:50:43]MH_I2C_Read... [08:50:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:43]Read from MH i2c: E2 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: E2 03 00 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: E2 03 00 DB 17 00 90 00 66 [08:50:43]RAPDU: 90 00 [08:50:43]wFMCommunicate OK [08:50:43]wFMCommunicate request_size=255 [08:50:43]MH_SAM_APDU [08:50:43]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 65 AD 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 41 12 03 00 35 04 06 00 [08:50:43]Write to MH i2c: E2 02 01 DC 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 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 65 AD 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 41 12 03 00 35 04 06 00 00 00 93 [08:50:43]Write i2c OK [08:50:43]MH_I2C_Read... [08:50:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:43]Read from MH i2c: E2 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: E2 03 00 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: E2 03 00 DC 17 00 90 00 67 [08:50:43]RAPDU: 90 00 [08:50:43]wFMCommunicate OK [08:50:43]wFMCommunicate request_size=11 [08:50:43]MH_SAM_APDU [08:50:43]CAPDU: 80 0D 02 02 06 69 B1 A1 5C 71 5E [08:50:43]Write to MH i2c: E2 0E 00 DD 17 80 0D 02 02 06 00 69 B1 A1 5C 71 5E 00 00 60 [08:50:43]Write i2c OK [08:50:43]MH_I2C_Read... [08:50:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:43]Read from MH i2c: E2 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: E2 03 00 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: E2 03 00 DD 17 00 90 00 68 [08:50:43]RAPDU: 90 00 [08:50:43]wFMCommunicate OK [08:50:43]wFMCommunicate request_size=4 [08:50:43]MH_SAM_APDU [08:50:43]CAPDU: 80 0D 03 02 [08:50:43]Write to MH i2c: E2 08 00 DE 17 80 0D 03 02 00 00 00 00 70 [08:50:43]Write i2c OK [08:50:43]MH_I2C_Read... [08:50:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:43]Read from MH i2c: E2 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: E2 0B 00 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: E2 0B 00 DE 17 00 52 E0 82 73 D6 9A 04 E5 90 00 F1 [08:50:43]RAPDU: 52 E0 82 73 D6 9A 04 E5 90 00 [08:50:43]wFMCommunicate OK [08:50:43]SAM_PROTO_SignData done [08:50:43]FM_MakeSignedData done [08:50:43]CreateOFDProtocolMessage [08:50:43]wFMCommunicate request_size=4 [08:50:43]MH_SAM_APDU [08:50:43]CAPDU: 80 11 00 00 [08:50:43]Write to MH i2c: E2 08 00 DF 17 80 11 00 00 00 00 00 00 70 [08:50:43]Write i2c OK [08:50:43]MH_I2C_Read... [08:50:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:43]Read from MH i2c: E2 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: E2 17 00 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: E2 17 00 DF 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C5 [08:50:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:50:43]wFMCommunicate OK [08:50:43]CreateOFDProtocolMessage done [08:50:43]OFDSenderStorePacket 201281 [08:50:43]StoreOFDPacket docnum=201281 [08:50:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 F2 F9 08 01 61 CD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 65 AD 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 41 12 03 00 35 04 06 00 69 B1 A1 5C 71 5E 52 E0 82 73 D6 9A 04 E5 [08:50:43]CheckFolder [08:50:43]dirname=/storage/ofd_packets [08:50:43]CheckFolder done [08:50:43]ProducePacketName [08:50:43]name=ofd_packets/00201281 [08:50:43]NVStorageSaveData ofd_packets/00201281 [08:50:43]File name is /storage/ofd_packets/00201281 [08:50:43]Write 302 bytes [08:50:43]NVStorageSaveData done [08:50:43]OFDSenderStorePacket done [08:50:43]KKMCreateOFDPacket done [08:50:43]NVStorageSaveData kkm_last_timestamp [08:50:43]File name is /storage/kkm_last_timestamp [08:50:43]Write 4 bytes [08:50:43]NVStorageSaveData done [08:50:43]ExternCall_PrintAddStr [08:50:43]wPrintStart [08:50:43]Write to MH i2c: 01 00 00 E0 17 F7 [08:50:43]Write i2c OK [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: 01 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: 01 07 00 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: 01 07 00 E0 17 00 00 00 00 00 FF 0F 0C [08:50:43]RasterBufferAndPrint [08:50:43]line Счет N : (1)449028 [08:50:43]line ИНН: 02508201610067 [08:50:43]line Контрольно-Кассовый Чек [08:50:43]line ПРОДАЖА [08:50:43]line ТРК (МРК, ГНК) : 53 [08:50:43]line Товар: 2710124130 [08:50:43]line SUPER 92-К-5 [08:50:43]line 7.310 * 68.40 [08:50:43]line = 500.00 [08:50:43]line НДС 12% НСП 1% [08:50:43]line > о реализуемом товаре [08:50:43]line ИТОГО: 500.00 [08:50:43]line НСП 1% : 4.42 [08:50:43]line НДС 12% : 53.10 [08:50:43]line Наличными: 500.00 [08:50:43]line Безнал.: 0.00 [08:50:43]line Место: АЗС № 171 "Партнер Нефть" [08:50:43]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:50:44]line СНО: Общий режим [08:50:44]line Чек 43 26.10.2024 08:50 [08:50:44]line Смена: 543 ФФД: 1.0 [08:50:44]line ЗНМ: 0300000109 [08:50:44]line РНМ: 0000000000091777 [08:50:44]line Версия ККМ: 001 [08:50:44]line ФМ: 0000000000871756 [08:50:44]line ФД: 201281 [08:50:44]line ФПД: 116211637317982 [08:50:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T085045&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201281&fm=116211637317982&tin=02508201610067®Number=0000000000091777&sum=50000 [08:50:44]written 0, free lines is 4095 [08:50:44]OFD Sender: Processing packet 201281 [packets to send 112, broken 111] [08:50:44]ProducePacketName [08:50:44]name=ofd_packets/00201281 [08:50:44]OFD Sender: To server: pG, [08:50:44]CommunicateWithHost lk.salyk.kg:30040 [08:50:44]ConnectInit lk.salyk.kg [08:50:44]Connected sock=10 [08:50:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 F2 F9 08 01 61 CD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 65 AD 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 41 12 03 00 35 04 06 00 69 B1 A1 5C 71 5E 52 E0 82 73 D6 9A 04 E5 [08:50:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 9B A4 47 00 91 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 41 12 03 00 F4 03 04 00 0F 59 1C 67 B6 04 01 00 00 1D C9 87 4F AD 3A 76 7D [08:50:44]CommunicateWithHost err = 0 [08:50:44]CheckOFDResponse [08:50:44]1017 (14) - 77093643461234 [08:50:44]1041 (16) - 0000000000871756 [08:50:44]1040 (4) - 201281 [08:50:44]1012 (4) - 26.10.2024 02:50 [08:50:44]1206 (1) - 0 [08:50:44]OFD Sender: Remove packet 201281 [08:50:44]ProducePacketName [08:50:44]name=ofd_packets/00201281 [08:50:44]NVStorageDeleteData [08:50:44]Write to MH i2c: 01 00 00 08 18 20 [08:50:44]Write i2c OK [08:50:44]MH_I2C_Read... [08:50:44]Read from MH i2c: 01 [08:50:44]MH_I2C_Read... [08:50:44]Read from MH i2c: 01 07 00 [08:50:44]MH_I2C_Read... [08:50:44]Read from MH i2c: 01 07 00 08 18 00 00 00 00 00 D4 0C 07 [08:50:44]RasterBufferAndPrint [08:50:44]line [08:50:44]line [08:50:44]line [08:50:44]line [08:50:44]line [08:50:44]written 0, free lines is 3287 [08:50:44]MH_Cut [08:50:44]Write to MH i2c: D1 01 00 0F 18 01 F9 [08:50:44]Write i2c OK [08:50:44]MH_I2C_Read... [08:50:44]Read from MH i2c: D1 [08:50:44]MH_I2C_Read... [08:50:44]Read from MH i2c: D1 01 00 [08:50:44]MH_I2C_Read... [08:50:44]Read from MH i2c: D1 01 00 0F 18 00 F8 [08:50:44]Write to MH i2c: 01 00 00 10 18 28 [08:50:44]Write i2c OK [08:50:44]MH_I2C_Read... [08:50:44]OFD Sender: No OFD packet to send [08:50:45]*** Cut start [08:50:45]*** Purtial cut [08:50:45]*** Stage 1: CUTSNS_PIN = 1 [08:50:45]Read from MH i2c: 01 [08:50:45]MH_I2C_Read... [08:50:45]*** Stop cut motor [08:50:45]*** Cut end [08:50:45]Read from MH i2c: 01 07 00 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: 01 07 00 10 18 00 00 00 00 00 FF 0F 3D [08:50:45]process_action close_receipt done [08:50:45]requested_data is exist [08:50:45]produce_requested_data [08:50:45]requested_item fm.sn is exist - process it [08:50:45]wFMCommunicate request_size=4 [08:50:45]MH_SAM_APDU [08:50:45]CAPDU: 80 11 00 00 [08:50:45]Write to MH i2c: E2 08 00 11 18 80 11 00 00 00 00 00 00 A3 [08:50:45]Write i2c OK [08:50:45]MH_I2C_Read... [08:50:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:45]Read from MH i2c: E2 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 17 00 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 17 00 11 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F8 [08:50:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:50:45]wFMCommunicate OK [08:50:45]requested_item fd.num is exist - process it [08:50:45]SAM_PROTO_GetFieldsCounters [08:50:45]wFMCommunicate request_size=4 [08:50:45]MH_SAM_APDU [08:50:45]CAPDU: 80 13 00 00 [08:50:45]Write to MH i2c: E2 08 00 12 18 80 13 00 00 00 00 00 00 A6 [08:50:45]Write i2c OK [08:50:45]MH_I2C_Read... [08:50:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:45]Read from MH i2c: E2 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 62 00 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 62 00 12 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 41 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [08:50:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 41 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:50:45]wFMCommunicate OK [08:50:45]SAM_PROTO_GetFieldsCounters done [08:50:45]requested_item shift.num is exist - process it [08:50:45]requested_item shift.opened is exist - process it [08:50:45]req_shift_opened [08:50:45]FM_GetShiftState [08:50:45]SAM_PROTO_GetShiftState [08:50:45]wFMCommunicate request_size=4 [08:50:45]MH_SAM_APDU [08:50:45]CAPDU: 80 13 01 00 [08:50:45]Write to MH i2c: E2 08 00 13 18 80 13 01 00 00 00 00 00 A8 [08:50:45]Write i2c OK [08:50:45]MH_I2C_Read... [08:50:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:45]Read from MH i2c: E2 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 0E 00 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 0E 00 13 18 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 B7 [08:50:45]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:50:45]wFMCommunicate OK [08:50:45]SAM_PROTO_GetShiftState done [08:50:45]FM_GetShiftState done [08:50:45]req_shift_opened done [08:50:45]requested_item shift.open_date is exist - process it [08:50:45]req_shift_open_date [08:50:45]req_shift_open_date done [08:50:45]produce_requested_data done [08:50:45]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201281,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [08:50:45]process_action_free close_receipt [08:50:45]json_value_free [08:50:45]json_value_free done [08:50:45]process_json_proto returns [08:50:45]Send response to host [08:50:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201281,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [08:50:45]free response buf [08:50:45]execute_script done [08:50:45]execute_script returns [08:50:45]free content buf [08:50:45]Sock 7.Close socket [08:50:45]Sock 7.Thread stoped [08:50:49]OFD Sender: No OFD packet to send [08:50:54]OFD Sender: No OFD packet to send [08:50:59]OFD Sender: No OFD packet to send [08:51:04]OFD Sender: No OFD packet to send [08:51:09]OFD Sender: No OFD packet to send [08:51:14]OFD Sender: No OFD packet to send [08:51:19]OFD Sender: No OFD packet to send [08:51:24]OFD Sender: No OFD packet to send [08:51:29]OFD Sender: No OFD packet to send [08:51:34]OFD Sender: No OFD packet to send [08:51:39]OFD Sender: No OFD packet to send [08:51:44]OFD Sender: No OFD packet to send [08:51:49]OFD Sender: No OFD packet to send [08:51:54]OFD Sender: No OFD packet to send [08:51:59]OFD Sender: No OFD packet to send [08:52:04]OFD Sender: No OFD packet to send [08:52:09]OFD Sender: No OFD packet to send [08:52:14]OFD Sender: No OFD packet to send [08:52:19]OFD Sender: No OFD packet to send [08:52:24]OFD Sender: No OFD packet to send [08:52:29]OFD Sender: No OFD packet to send [08:52:34]OFD Sender: No OFD packet to send [08:52:39]OFD Sender: No OFD packet to send [08:52:45]OFD Sender: No OFD packet to send [08:52:50]OFD Sender: No OFD packet to send [08:52:55]OFD Sender: No OFD packet to send [08:53:00]OFD Sender: No OFD packet to send [08:53:05]OFD Sender: No OFD packet to send [08:53:10]OFD Sender: No OFD packet to send [08:53:15]OFD Sender: No OFD packet to send [08:53:20]OFD Sender: No OFD packet to send [08:53:25]OFD Sender: No OFD packet to send [08:53:30]OFD Sender: No OFD packet to send [08:53:35]OFD Sender: No OFD packet to send [08:53:40]OFD Sender: No OFD packet to send [08:53:45]OFD Sender: No OFD packet to send [08:53:50]OFD Sender: No OFD packet to send [08:53:55]OFD Sender: No OFD packet to send [08:54:00]OFD Sender: No OFD packet to send [08:54:05]OFD Sender: No OFD packet to send [08:54:10]OFD Sender: No OFD packet to send [08:54:15]OFD Sender: No OFD packet to send [08:54:20]OFD Sender: No OFD packet to send [08:54:25]OFD Sender: No OFD packet to send [08:54:30]OFD Sender: No OFD packet to send [08:54:35]OFD Sender: No OFD packet to send [08:54:40]OFD Sender: No OFD packet to send [08:54:45]OFD Sender: No OFD packet to send [08:54:50]OFD Sender: No OFD packet to send [08:54:51]accept exits with 9 [08:54:51]New connection [08:54:51]New thread 3067415908 created [08:54:51]Thread 3067559268 joined [08:54:51]Waiting for new connection... [08:54:51] Sock 9.Parse request [08:54:51]Sock 9.Check first char [08:54:51]Sock 9.First char is OK [08:54:51]request: POST /json_proto HTTP/1.0 [08:54:51]Method: POST [08:54:51]URL: /json_proto [08:54:51]Method is POST - this is cgi request [08:54:51]url: /json_proto [08:54:51]query_string will be loaded in cgi processing [08:54:51]execute_cgi json_proto POST (null) [08:54:51]execute_cgi path=json_proto method=POST [08:54:51]POST find Content-Length [08:54:51]Host: 172.17.63.195:8080 [08:54:51]Content-Length: 677 [08:54:51]Content-Type: application/json [08:54:51] [08:54:51]POST finish read [08:54:51]Found Content-Length = 677 [08:54:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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" ] } } [08:54:51]execute_script... [08: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)449029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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" ] } } [08:54:51]POST & json_proto [08:54:51]process_json_proto [08:54:51]json parsed OK: [08:54:51]protocol is kg_v1.0 [08:54:51]action value=close_receipt [08:54:51]process_action close_receipt [08:54:51]cmd_close_receipt [08:54:51]MH_GetDate [08:54:51]Write to MH i2c: F0 00 00 14 18 1B [08:54:51]Write i2c OK [08:54:51]MH_I2C_Read... [08:54:51]Read from MH i2c: F0 [08:54:51]MH_I2C_Read... [08:54:51]Read from MH i2c: F0 09 00 [08:54:51]MH_I2C_Read... [08:54:51]Read from MH i2c: F0 09 00 14 18 00 5E AE 1C 67 68 46 19 67 E1 [08:54:51]GetLastDocTimeStamp 1729932645 [08:54:51]current date 1729932894 [08:54:51]FM_GetShiftState [08:54:51]SAM_PROTO_GetShiftState [08:54:51]wFMCommunicate request_size=4 [08:54:51]MH_SAM_APDU [08:54:51]CAPDU: 80 13 01 00 [08:54:51]Write to MH i2c: E2 08 00 15 18 80 13 01 00 00 00 00 00 AA [08:54:51]Write i2c OK [08:54:51]MH_I2C_Read... [08:54:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:51]Read from MH i2c: E2 [08:54:51]MH_I2C_Read... [08:54:51]Read from MH i2c: E2 0E 00 [08:54:51]MH_I2C_Read... [08:54:51]Read from MH i2c: E2 0E 00 15 18 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 B9 [08:54:51]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:54:51]wFMCommunicate OK [08:54:51]SAM_PROTO_GetShiftState done [08:54:51]FM_GetShiftState done [08:54:51]opened in 1729900879 [08:54:51]opened+sec_in_day 1729987279 [08:54:51]quantity*price = 50010 [08:54:51]sum+1 = 50012 [08:54:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 44 26.10.2024 08:54 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201282 ФПД: 46965910754256 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T085454&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201282&fm=46965910754256&tin=02508201610067®Number=0000000000091777&sum=50000 [08:54:52]StoreToDocumentArchive [08:54:52]shift 543 fd 201282 [08:54:52]save to /storage/0543/doc_00201282 [08:54:52]save last doc name /storage/0543/doc_00201282 to /storage/kkm_last_doc_name [08:54:52]save OK [08:54:52]Clear old archive folders... [08:54:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:54:52]tlvbuf is 0173FB20 [08:54:52]SAM_PROTO_ClearQueue [08:54:52]wFMCommunicate request_size=4 [08:54:52]MH_SAM_APDU [08:54:52]CAPDU: 80 09 00 00 [08:54:52]Write to MH i2c: E2 08 00 22 18 80 09 00 00 00 00 00 00 AC [08:54:52]Write i2c OK [08:54:52]MH_I2C_Read... [08:54:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:52]Read from MH i2c: E2 [08:54:52]MH_I2C_Read... [08:54:52]Read from MH i2c: E2 03 00 [08:54:52]MH_I2C_Read... [08:54:52]Read from MH i2c: E2 03 00 22 18 00 90 00 AE [08:54:52]RAPDU: 90 00 [08:54:52]wFMCommunicate OK [08:54:52]SAM_PROTO_ClearQueue done [08:54:52]KKMCreateOFDPacket [08:54:52]OFDProtocolAddRootSTLVToBuf [08:54:52]FM_MakeSignedData [08:54:52]FM_MakeSignedData [08:54:52]SAM_PROTO_SignData [08:54:52]wFMCommunicate request_size=4 [08:54:52]MH_SAM_APDU [08:54:52]CAPDU: 80 0D 01 02 [08:54:52]Write to MH i2c: E2 08 00 23 18 80 0D 01 02 00 00 00 00 B4 [08:54:52]Write i2c OK [08:54:52]MH_I2C_Read... [08:54:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:52]Read from MH i2c: E2 [08:54:52]MH_I2C_Read... [08:54:52]Read from MH i2c: E2 03 00 [08:54:52]MH_I2C_Read... [08:54:52]Read from MH i2c: E2 03 00 23 18 00 90 00 AF [08:54:52]RAPDU: 90 00 [08:54:52]wFMCommunicate OK [08:54:52]wFMCommunicate request_size=255 [08:54:52]MH_SAM_APDU [08:54: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 2C 00 00 00 F4 03 04 00 5E AE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 42 12 03 00 35 04 06 00 2A [08:54:52]Write to MH i2c: E2 02 01 24 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 2C 00 00 00 F4 03 04 00 5E AE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 42 12 03 00 35 04 06 00 2A 00 00 7E [08:54:52]Write i2c OK [08:54:52]MH_I2C_Read... [08:54:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:52]Read from MH i2c: E2 [08:54:52]MH_I2C_Read... [08:54:52]Read from MH i2c: E2 03 00 [08:54:52]MH_I2C_Read... [08:54:52]Read from MH i2c: E2 03 00 24 18 00 90 00 B0 [08:54:52]RAPDU: 90 00 [08:54:52]wFMCommunicate OK [08:54:52]wFMCommunicate request_size=10 [08:54:52]MH_SAM_APDU [08:54:52]CAPDU: 80 0D 02 02 05 B7 1A 6D 53 D0 [08:54:52]Write to MH i2c: E2 0D 00 25 18 80 0D 02 02 05 00 B7 1A 6D 53 D0 00 00 22 [08:54:52]Write i2c OK [08:54:52]MH_I2C_Read... [08:54:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:52]Read from MH i2c: E2 [08:54:52]MH_I2C_Read... [08:54:52]Read from MH i2c: E2 03 00 [08:54:52]MH_I2C_Read... [08:54:52]Read from MH i2c: E2 03 00 25 18 00 90 00 B1 [08:54:52]RAPDU: 90 00 [08:54:52]wFMCommunicate OK [08:54:52]wFMCommunicate request_size=4 [08:54:52]MH_SAM_APDU [08:54:52]CAPDU: 80 0D 03 02 [08:54:52]Write to MH i2c: E2 08 00 26 18 80 0D 03 02 00 00 00 00 B9 [08:54:52]Write i2c OK [08:54:52]MH_I2C_Read... [08:54:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:52]Read from MH i2c: E2 [08:54:52]MH_I2C_Read... [08:54:52]Read from MH i2c: E2 0B 00 [08:54:52]MH_I2C_Read... [08:54:52]Read from MH i2c: E2 0B 00 26 18 00 DF C0 4C 71 F6 AF CB 9E 90 00 24 [08:54:52]RAPDU: DF C0 4C 71 F6 AF CB 9E 90 00 [08:54:52]wFMCommunicate OK [08:54:52]SAM_PROTO_SignData done [08:54:52]FM_MakeSignedData done [08:54:52]CreateOFDProtocolMessage [08:54:52]wFMCommunicate request_size=4 [08:54:52]MH_SAM_APDU [08:54:52]CAPDU: 80 11 00 00 [08:54:52]Write to MH i2c: E2 08 00 27 18 80 11 00 00 00 00 00 00 B9 [08:54:52]Write i2c OK [08:54:52]MH_I2C_Read... [08:54:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:53]Read from MH i2c: E2 [08:54:53]MH_I2C_Read... [08:54:53]Read from MH i2c: E2 17 00 [08:54:53]MH_I2C_Read... [08:54:53]Read from MH i2c: E2 17 00 27 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0E [08:54:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:54:53]wFMCommunicate OK [08:54:53]CreateOFDProtocolMessage done [08:54:53]OFDSenderStorePacket 201282 [08:54:53]StoreOFDPacket docnum=201282 [08:54:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 29 DC 07 01 45 6F 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 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 2C 00 00 00 F4 03 04 00 5E AE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 42 12 03 00 35 04 06 00 2A B7 1A 6D 53 D0 DF C0 4C 71 F6 AF CB 9E [08:54:53]CheckFolder [08:54:53]dirname=/storage/ofd_packets [08:54:53]CheckFolder done [08:54:53]ProducePacketName [08:54:53]name=ofd_packets/00201282 [08:54:53]NVStorageSaveData ofd_packets/00201282 [08:54:53]File name is /storage/ofd_packets/00201282 [08:54:53]Write 301 bytes [08:54:53]NVStorageSaveData done [08:54:53]OFDSenderStorePacket done [08:54:53]KKMCreateOFDPacket done [08:54:53]NVStorageSaveData kkm_last_timestamp [08:54:53]File name is /storage/kkm_last_timestamp [08:54:53]Write 4 bytes [08:54:53]NVStorageSaveData done [08:54:53]ExternCall_PrintAddStr [08:54:53]wPrintStart [08:54:53]Write to MH i2c: 01 00 00 28 18 40 [08:54:53]Write i2c OK [08:54:53]MH_I2C_Read... [08:54:53]Read from MH i2c: 01 [08:54:53]MH_I2C_Read... [08:54:53]Read from MH i2c: 01 07 00 [08:54:53]MH_I2C_Read... [08:54:53]Read from MH i2c: 01 07 00 28 18 00 00 00 00 00 FF 0F 55 [08:54:53]RasterBufferAndPrint [08:54:53]line Счет N : (1)449029 [08:54:53]line ИНН: 02508201610067 [08:54:53]line Контрольно-Кассовый Чек [08:54:53]line ПРОДАЖА [08:54:53]line ТРК (МРК, ГНК) : 61 [08:54:53]line Товар: 2710124500 [08:54:53]line Аи-95-К-3 [08:54:53]line 6.740 * 74.20 [08:54:53]line = 500.11 [08:54:53]line НДС 12% НСП 1% [08:54:53]line > о реализуемом товаре [08:54:53]line ОКРУГЛЕНИЕ: -0.11 [08:54:53]line ИТОГО: 500.00 [08:54:53]line Внесено: 500.00 [08:54:53]line СДАЧА: 0.00 [08:54:53]line НСП 1% : 4.43 [08:54:53]line НДС 12% : 53.11 [08:54:53]line Наличными: 500.00 [08:54:53]line Безнал.: 0.00 [08:54:53]line Место: АЗС № 171 "Партнер Нефть" [08:54:53]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:54:53]line СНО: Общий режим [08:54:53]line Чек 44 26.10.2024 08:54 [08:54:53]line Смена: 543 ФФД: 1.0 [08:54:53]line ЗНМ: 0300000109 [08:54:53]line РНМ: 0000000000091777 [08:54:53]line Версия ККМ: 001 [08:54:53]line ФМ: 0000000000871756 [08:54:53]line ФД: 201282 [08:54:53]line ФПД: 46965910754256 [08:54:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T085454&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201282&fm=46965910754256&tin=02508201610067®Number=0000000000091777&sum=50000 [08:54:53]OFD Sender: Processing packet 201282 [packets to send 112, broken 111] [08:54:53]ProducePacketName [08:54:53]name=ofd_packets/00201282 [08:54:53]OFD Sender: To server: pG, [08:54:53]CommunicateWithHost lk.salyk.kg:30040 [08:54:53]ConnectInit lk.salyk.kg [08:54:53]written 0, free lines is 4095 [08:54:53]Connected sock=10 [08:54:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 29 DC 07 01 45 6F 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 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 2C 00 00 00 F4 03 04 00 5E AE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 42 12 03 00 35 04 06 00 2A B7 1A 6D 53 D0 DF C0 4C 71 F6 AF CB 9E [08:54:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A4 7A 47 00 D2 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 42 12 03 00 F4 03 04 00 08 5A 1C 67 B6 04 01 00 00 0A F8 A9 9B D2 BE A7 97 [08:54:53]CommunicateWithHost err = 0 [08:54:53]CheckOFDResponse [08:54:53]1017 (14) - 77093643461234 [08:54:53]1041 (16) - 0000000000871756 [08:54:53]1040 (4) - 201282 [08:54:53]1012 (4) - 26.10.2024 02:55 [08:54:53]1206 (1) - 0 [08:54:53]OFD Sender: Remove packet 201282 [08:54:53]ProducePacketName [08:54:53]name=ofd_packets/00201282 [08:54:53]NVStorageDeleteData [08:54:53]Write to MH i2c: 01 00 00 53 18 6B [08:54:53]Write i2c OK [08:54:53]MH_I2C_Read... [08:54:53]Read from MH i2c: 01 [08:54:53]MH_I2C_Read... [08:54:53]Read from MH i2c: 01 07 00 [08:54:53]MH_I2C_Read... [08:54:53]Read from MH i2c: 01 07 00 53 18 00 00 00 00 00 A0 0C 1E [08:54:53]RasterBufferAndPrint [08:54:53]line [08:54:53]line [08:54:53]line [08:54:53]line [08:54:53]line [08:54:53]written 0, free lines is 3237 [08:54:53]MH_Cut [08:54:53]Write to MH i2c: D1 01 00 5A 18 01 44 [08:54:53]Write i2c OK [08:54:53]MH_I2C_Read... [08:54:53]Read from MH i2c: D1 [08:54:53]MH_I2C_Read... [08:54:53]Read from MH i2c: D1 01 00 [08:54:53]MH_I2C_Read... [08:54:53]Read from MH i2c: D1 01 00 5A 18 00 43 [08:54:53]Write to MH i2c: 01 00 00 5B 18 73 [08:54:53]Write i2c OK [08:54:53]MH_I2C_Read... [08:54:54]OFD Sender: No OFD packet to send [08:54:54]*** Cut start [08:54:54]*** Purtial cut [08:54:54]*** Stage 1: CUTSNS_PIN = 1 [08:54:54]Read from MH i2c: 01 [08:54:54]MH_I2C_Read... [08:54:54]*** Stop cut motor [08:54:54]*** Cut end [08:54:54]Read from MH i2c: 01 07 00 [08:54:54]MH_I2C_Read... [08:54:54]Read from MH i2c: 01 07 00 5B 18 00 00 00 00 00 FF 0F 88 [08:54:54]process_action close_receipt done [08:54:54]requested_data is exist [08:54:54]produce_requested_data [08:54:54]requested_item fm.sn is exist - process it [08:54:54]wFMCommunicate request_size=4 [08:54:54]MH_SAM_APDU [08:54:54]CAPDU: 80 11 00 00 [08:54:54]Write to MH i2c: E2 08 00 5C 18 80 11 00 00 00 00 00 00 EE [08:54:54]Write i2c OK [08:54:54]MH_I2C_Read... [08:54:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:55]Read from MH i2c: E2 [08:54:55]MH_I2C_Read... [08:54:55]Read from MH i2c: E2 17 00 [08:54:55]MH_I2C_Read... [08:54:55]Read from MH i2c: E2 17 00 5C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 43 [08:54:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:54:55]wFMCommunicate OK [08:54:55]requested_item fd.num is exist - process it [08:54:55]SAM_PROTO_GetFieldsCounters [08:54:55]wFMCommunicate request_size=4 [08:54:55]MH_SAM_APDU [08:54:55]CAPDU: 80 13 00 00 [08:54:55]Write to MH i2c: E2 08 00 5D 18 80 13 00 00 00 00 00 00 F1 [08:54:55]Write i2c OK [08:54:55]MH_I2C_Read... [08:54:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:55]Read from MH i2c: E2 [08:54:55]MH_I2C_Read... [08:54:55]Read from MH i2c: E2 62 00 [08:54:55]MH_I2C_Read... [08:54:55]Read from MH i2c: E2 62 00 5D 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 42 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [08:54:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 42 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:54:55]wFMCommunicate OK [08:54:55]SAM_PROTO_GetFieldsCounters done [08:54:55]requested_item shift.num is exist - process it [08:54:55]requested_item shift.opened is exist - process it [08:54:55]req_shift_opened [08:54:55]FM_GetShiftState [08:54:55]SAM_PROTO_GetShiftState [08:54:55]wFMCommunicate request_size=4 [08:54:55]MH_SAM_APDU [08:54:55]CAPDU: 80 13 01 00 [08:54:55]Write to MH i2c: E2 08 00 5E 18 80 13 01 00 00 00 00 00 F3 [08:54:55]Write i2c OK [08:54:55]MH_I2C_Read... [08:54:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:55]Read from MH i2c: E2 [08:54:55]MH_I2C_Read... [08:54:55]Read from MH i2c: E2 0E 00 [08:54:55]MH_I2C_Read... [08:54:55]Read from MH i2c: E2 0E 00 5E 18 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 02 [08:54:55]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:54:55]wFMCommunicate OK [08:54:55]SAM_PROTO_GetShiftState done [08:54:55]FM_GetShiftState done [08:54:55]req_shift_opened done [08:54:55]requested_item shift.open_date is exist - process it [08:54:55]req_shift_open_date [08:54:55]req_shift_open_date done [08:54:55]produce_requested_data done [08:54:55]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201282,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [08:54:55]process_action_free close_receipt [08:54:55]json_value_free [08:54:55]json_value_free done [08:54:55]process_json_proto returns [08:54:55]Send response to host [08:54:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201282,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [08:54:55]free response buf [08:54:55]execute_script done [08:54:55]execute_script returns [08:54:55]free content buf [08:54:55]Sock 9.Close socket [08:54:55]Sock 9.Thread stoped [08:54:59]OFD Sender: No OFD packet to send [08:55:04]OFD Sender: No OFD packet to send [08:55:09]OFD Sender: No OFD packet to send [08:55:14]OFD Sender: No OFD packet to send [08:55:19]OFD Sender: No OFD packet to send [08:55:24]OFD Sender: No OFD packet to send [08:55:29]OFD Sender: No OFD packet to send [08:55:34]OFD Sender: No OFD packet to send [08:55:39]OFD Sender: No OFD packet to send [08:55:44]OFD Sender: No OFD packet to send [08:55:49]OFD Sender: No OFD packet to send [08:55:52]accept exits with 7 [08:55:52]New connection [08:55:52]New thread 3067559268 created [08:55:52]Thread 3067415908 joined [08:55:52]Waiting for new connection... [08:55:52] Sock 7.Parse request [08:55:52]Sock 7.Check first char [08:55:52]Sock 7.First char is OK [08:55:52]request: POST /json_proto HTTP/1.0 [08:55:52]Method: POST [08:55:52]URL: /json_proto [08:55:52]Method is POST - this is cgi request [08:55:52]url: /json_proto [08:55:52]query_string will be loaded in cgi processing [08:55:52]execute_cgi json_proto POST (null) [08:55:52]execute_cgi path=json_proto method=POST [08:55:52]POST find Content-Length [08:55:52]Host: 172.17.63.195:8080 [08:55:52]Content-Length: 679 [08:55:52]Content-Type: application/json [08:55:52] [08:55:52]POST finish read [08:55:52]Found Content-Length = 679 [08:55:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [08:55:52]execute_script... [08:55: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)449030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [08:55:52]POST & json_proto [08:55:52]process_json_proto [08:55:52]json parsed OK: [08:55:52]protocol is kg_v1.0 [08:55:52]action value=close_receipt [08:55:52]process_action close_receipt [08:55:52]cmd_close_receipt [08:55:52]MH_GetDate [08:55:52]Write to MH i2c: F0 00 00 5F 18 66 [08:55:52]Write i2c OK [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: F0 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: F0 09 00 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: F0 09 00 5F 18 00 9C AE 1C 67 68 46 19 67 6A [08:55:52]GetLastDocTimeStamp 1729932894 [08:55:52]current date 1729932956 [08:55:52]FM_GetShiftState [08:55:52]SAM_PROTO_GetShiftState [08:55:52]wFMCommunicate request_size=4 [08:55:52]MH_SAM_APDU [08:55:52]CAPDU: 80 13 01 00 [08:55:52]Write to MH i2c: E2 08 00 60 18 80 13 01 00 00 00 00 00 F5 [08:55:52]Write i2c OK [08:55:52]MH_I2C_Read... [08:55:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:52]Read from MH i2c: E2 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: E2 0E 00 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: E2 0E 00 60 18 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 04 [08:55:52]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:55:52]wFMCommunicate OK [08:55:52]SAM_PROTO_GetShiftState done [08:55:52]FM_GetShiftState done [08:55:52]opened in 1729900879 [08:55:52]opened+sec_in_day 1729987279 [08:55:52]quantity*price = 100050 [08:55:52]sum+1 = 100052 [08:55:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 45 26.10.2024 08:55 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201283 ФПД: 209289443695935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T085556&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201283&fm=209289443695935&tin=02508201610067®Number=0000000000091777&sum=100000 [08:55:54]StoreToDocumentArchive [08:55:54]shift 543 fd 201283 [08:55:54]save to /storage/0543/doc_00201283 [08:55:54]save last doc name /storage/0543/doc_00201283 to /storage/kkm_last_doc_name [08:55:54]save OK [08:55:54]Clear old archive folders... [08:55:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:55:54]tlvbuf is 017187E0 [08:55:54]SAM_PROTO_ClearQueue [08:55:54]wFMCommunicate request_size=4 [08:55:54]MH_SAM_APDU [08:55:54]CAPDU: 80 09 00 00 [08:55:54]Write to MH i2c: E2 08 00 6D 18 80 09 00 00 00 00 00 00 F7 [08:55:54]Write i2c OK [08:55:54]MH_I2C_Read... [08:55:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:54]Read from MH i2c: E2 [08:55:54]MH_I2C_Read... [08:55:54]Read from MH i2c: E2 03 00 [08:55:54]MH_I2C_Read... [08:55:54]Read from MH i2c: E2 03 00 6D 18 00 90 00 F9 [08:55:54]RAPDU: 90 00 [08:55:54]wFMCommunicate OK [08:55:54]SAM_PROTO_ClearQueue done [08:55:54]KKMCreateOFDPacket [08:55:54]OFDProtocolAddRootSTLVToBuf [08:55:54]FM_MakeSignedData [08:55:54]FM_MakeSignedData [08:55:54]SAM_PROTO_SignData [08:55:54]wFMCommunicate request_size=4 [08:55:54]MH_SAM_APDU [08:55:54]CAPDU: 80 0D 01 02 [08:55:54]Write to MH i2c: E2 08 00 6E 18 80 0D 01 02 00 00 00 00 FF [08:55:54]Write i2c OK [08:55:54]MH_I2C_Read... [08:55:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:54]Read from MH i2c: E2 [08:55:54]MH_I2C_Read... [08:55:54]Read from MH i2c: E2 03 00 [08:55:54]MH_I2C_Read... [08:55:54]Read from MH i2c: E2 03 00 6E 18 00 90 00 FA [08:55:54]RAPDU: 90 00 [08:55:54]wFMCommunicate OK [08:55:54]wFMCommunicate request_size=255 [08:55:54]MH_SAM_APDU [08:55:54]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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 2D 00 00 00 F4 03 04 00 9C AE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 43 12 03 00 35 04 06 00 BE 58 FE F2 [08:55:54]Write to MH i2c: E2 02 01 6F 18 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 2D 00 00 00 F4 03 04 00 9C AE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 43 12 03 00 35 04 06 00 BE 58 FE F2 00 00 02 [08:55:54]Write i2c OK [08:55:54]MH_I2C_Read... [08:55:54]OFD Sender: No OFD packet to send [08:55:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:54]Read from MH i2c: E2 [08:55:54]MH_I2C_Read... [08:55:54]Read from MH i2c: E2 03 00 [08:55:54]MH_I2C_Read... [08:55:54]Read from MH i2c: E2 03 00 6F 18 00 90 00 FB [08:55:54]RAPDU: 90 00 [08:55:54]wFMCommunicate OK [08:55:54]wFMCommunicate request_size=7 [08:55:54]MH_SAM_APDU [08:55:54]CAPDU: 80 0D 02 02 02 5D 3F [08:55:54]Write to MH i2c: E2 0A 00 70 18 80 0D 02 02 02 00 5D 3F 00 00 A2 [08:55:54]Write i2c OK [08:55:54]MH_I2C_Read... [08:55:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:54]Read from MH i2c: E2 [08:55:54]MH_I2C_Read... [08:55:54]Read from MH i2c: E2 03 00 [08:55:54]MH_I2C_Read... [08:55:54]Read from MH i2c: E2 03 00 70 18 00 90 00 FC [08:55:54]RAPDU: 90 00 [08:55:54]wFMCommunicate OK [08:55:54]wFMCommunicate request_size=4 [08:55:54]MH_SAM_APDU [08:55:54]CAPDU: 80 0D 03 02 [08:55:54]Write to MH i2c: E2 08 00 71 18 80 0D 03 02 00 00 00 00 04 [08:55:54]Write i2c OK [08:55:54]MH_I2C_Read... [08:55:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:54]Read from MH i2c: E2 [08:55:54]MH_I2C_Read... [08:55:54]Read from MH i2c: E2 0B 00 [08:55:54]MH_I2C_Read... [08:55:54]Read from MH i2c: E2 0B 00 71 18 00 8D 61 E4 1E 9D 3B 57 24 90 00 48 [08:55:54]RAPDU: 8D 61 E4 1E 9D 3B 57 24 90 00 [08:55:54]wFMCommunicate OK [08:55:54]SAM_PROTO_SignData done [08:55:54]FM_MakeSignedData done [08:55:54]CreateOFDProtocolMessage [08:55:54]wFMCommunicate request_size=4 [08:55:54]MH_SAM_APDU [08:55:54]CAPDU: 80 11 00 00 [08:55:54]Write to MH i2c: E2 08 00 72 18 80 11 00 00 00 00 00 00 04 [08:55:54]Write i2c OK [08:55:54]MH_I2C_Read... [08:55:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:54]Read from MH i2c: E2 [08:55:54]MH_I2C_Read... [08:55:54]Read from MH i2c: E2 17 00 [08:55:54]MH_I2C_Read... [08:55:54]Read from MH i2c: E2 17 00 72 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 59 [08:55:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:55:54]wFMCommunicate OK [08:55:54]CreateOFDProtocolMessage done [08:55:54]OFDSenderStorePacket 201283 [08:55:54]StoreOFDPacket docnum=201283 [08:55:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 A3 A3 04 01 98 FB 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 2D 00 00 00 F4 03 04 00 9C AE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 43 12 03 00 35 04 06 00 BE 58 FE F2 5D 3F 8D 61 E4 1E 9D 3B 57 24 [08:55:54]CheckFolder [08:55:54]dirname=/storage/ofd_packets [08:55:54]CheckFolder done [08:55:54]ProducePacketName [08:55:54]name=ofd_packets/00201283 [08:55:54]NVStorageSaveData ofd_packets/00201283 [08:55:54]File name is /storage/ofd_packets/00201283 [08:55:54]Write 298 bytes [08:55:54]NVStorageSaveData done [08:55:54]OFDSenderStorePacket done [08:55:54]KKMCreateOFDPacket done [08:55:54]NVStorageSaveData kkm_last_timestamp [08:55:54]File name is /storage/kkm_last_timestamp [08:55:54]Write 4 bytes [08:55:54]NVStorageSaveData done [08:55:54]ExternCall_PrintAddStr [08:55:54]wPrintStart [08:55:54]Write to MH i2c: 01 00 00 73 18 8B [08:55:54]Write i2c OK [08:55:54]MH_I2C_Read... [08:55:54]Read from MH i2c: 01 [08:55:54]MH_I2C_Read... [08:55:54]Read from MH i2c: 01 07 00 [08:55:54]MH_I2C_Read... [08:55:54]Read from MH i2c: 01 07 00 73 18 00 00 00 00 00 FF 0F A0 [08:55:54]RasterBufferAndPrint [08:55:54]line Счет N : (1)449030 [08:55:54]line ИНН: 02508201610067 [08:55:54]line Контрольно-Кассовый Чек [08:55:54]line ПРОДАЖА [08:55:54]line ТРК (МРК, ГНК) : 11 [08:55:54]line Товар: 2710194210 [08:55:54]line ДТ-К-2 [08:55:54]line 13.130 * 76.20 [08:55:54]line = 1000.51 [08:55:54]line НДС 12% НСП 1% [08:55:54]line > о реализуемом товаре [08:55:54]line ОКРУГЛЕНИЕ: -0.51 [08:55:54]line ИТОГО: 1000.00 [08:55:54]line Внесено: 1000.00 [08:55:54]line СДАЧА: 0.00 [08:55:54]line НСП 1% : 8.85 [08:55:54]line НДС 12% : 106.25 [08:55:54]line Наличными: 1000.00 [08:55:54]line Безнал.: 0.00 [08:55:54]line Место: АЗС № 171 "Партнер Нефть" [08:55:54]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [08:55:54]line СНО: Общий режим [08:55:54]line Чек 45 26.10.2024 08:55 [08:55:54]line Смена: 543 ФФД: 1.0 [08:55:54]line ЗНМ: 0300000109 [08:55:54]line РНМ: 0000000000091777 [08:55:54]line Версия ККМ: 001 [08:55:54]line ФМ: 0000000000871756 [08:55:54]line ФД: 201283 [08:55:54]line ФПД: 209289443695935 [08:55:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T085556&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201283&fm=209289443695935&tin=02508201610067®Number=0000000000091777&sum=100000 [08:55:54]OFD Sender: Processing packet 201283 [packets to send 112, broken 111] [08:55:54]ProducePacketName [08:55:54]name=ofd_packets/00201283 [08:55:54]OFD Sender: To server: pG, [08:55:54]CommunicateWithHost lk.salyk.kg:30040 [08:55:54]ConnectInit lk.salyk.kg [08:55:54]written 0, free lines is 4095 [08:55:54]Connected sock=10 [08:55:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 A3 A3 04 01 98 FB 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 2D 00 00 00 F4 03 04 00 9C AE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 43 12 03 00 35 04 06 00 BE 58 FE F2 5D 3F 8D 61 E4 1E 9D 3B 57 24 [08:55:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 1E 84 47 00 79 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 43 12 03 00 F4 03 04 00 46 5A 1C 67 B6 04 01 00 00 F3 D9 C8 C1 12 2C 32 6B [08:55:55]CommunicateWithHost err = 0 [08:55:55]CheckOFDResponse [08:55:55]1017 (14) - 77093643461234 [08:55:55]1041 (16) - 0000000000871756 [08:55:55]1040 (4) - 201283 [08:55:55]1012 (4) - 26.10.2024 02:56 [08:55:55]1206 (1) - 0 [08:55:55]OFD Sender: Remove packet 201283 [08:55:55]ProducePacketName [08:55:55]name=ofd_packets/00201283 [08:55:55]NVStorageDeleteData [08:55:55]Write to MH i2c: 01 00 00 9E 18 B6 [08:55:55]Write i2c OK [08:55:55]MH_I2C_Read... [08:55:55]Read from MH i2c: 01 [08:55:55]MH_I2C_Read... [08:55:55]Read from MH i2c: 01 07 00 [08:55:55]MH_I2C_Read... [08:55:55]Read from MH i2c: 01 07 00 9E 18 00 00 00 00 00 9D 0C 66 [08:55:55]RasterBufferAndPrint [08:55:55]line [08:55:55]line [08:55:55]line [08:55:55]line [08:55:55]line [08:55:55]written 0, free lines is 3235 [08:55:55]MH_Cut [08:55:55]Write to MH i2c: D1 01 00 A5 18 01 8F [08:55:55]Write i2c OK [08:55:55]MH_I2C_Read... [08:55:55]Read from MH i2c: D1 [08:55:55]MH_I2C_Read... [08:55:55]Read from MH i2c: D1 01 00 [08:55:55]MH_I2C_Read... [08:55:55]Read from MH i2c: D1 01 00 A5 18 00 8E [08:55:55]Write to MH i2c: 01 00 00 A6 18 BE [08:55:55]Write i2c OK [08:55:55]MH_I2C_Read... [08:55:55]OFD Sender: No OFD packet to send [08:55:56]*** Cut start [08:55:56]*** Purtial cut [08:55:56]*** Stage 1: CUTSNS_PIN = 1 [08:55:56]Read from MH i2c: 01 [08:55:56]MH_I2C_Read... [08:55:56]*** Stop cut motor [08:55:56]*** Cut end [08:55:56]Read from MH i2c: 01 07 00 [08:55:56]MH_I2C_Read... [08:55:56]Read from MH i2c: 01 07 00 A6 18 00 00 00 00 00 FF 0F D3 [08:55:56]process_action close_receipt done [08:55:56]requested_data is exist [08:55:56]produce_requested_data [08:55:56]requested_item fm.sn is exist - process it [08:55:56]wFMCommunicate request_size=4 [08:55:56]MH_SAM_APDU [08:55:56]CAPDU: 80 11 00 00 [08:55:56]Write to MH i2c: E2 08 00 A7 18 80 11 00 00 00 00 00 00 39 [08:55:56]Write i2c OK [08:55:56]MH_I2C_Read... [08:55:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:56]Read from MH i2c: E2 [08:55:56]MH_I2C_Read... [08:55:56]Read from MH i2c: E2 17 00 [08:55:56]MH_I2C_Read... [08:55:56]Read from MH i2c: E2 17 00 A7 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8E [08:55:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [08:55:56]wFMCommunicate OK [08:55:56]requested_item fd.num is exist - process it [08:55:56]SAM_PROTO_GetFieldsCounters [08:55:56]wFMCommunicate request_size=4 [08:55:56]MH_SAM_APDU [08:55:56]CAPDU: 80 13 00 00 [08:55:56]Write to MH i2c: E2 08 00 A8 18 80 13 00 00 00 00 00 00 3C [08:55:56]Write i2c OK [08:55:56]MH_I2C_Read... [08:55:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:56]Read from MH i2c: E2 [08:55:56]MH_I2C_Read... [08:55:56]Read from MH i2c: E2 62 00 [08:55:56]MH_I2C_Read... [08:55:56]Read from MH i2c: E2 62 00 A8 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 43 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [08:55:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 43 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:55:56]wFMCommunicate OK [08:55:56]SAM_PROTO_GetFieldsCounters done [08:55:56]requested_item shift.num is exist - process it [08:55:56]requested_item shift.opened is exist - process it [08:55:56]req_shift_opened [08:55:56]FM_GetShiftState [08:55:56]SAM_PROTO_GetShiftState [08:55:56]wFMCommunicate request_size=4 [08:55:56]MH_SAM_APDU [08:55:56]CAPDU: 80 13 01 00 [08:55:56]Write to MH i2c: E2 08 00 A9 18 80 13 01 00 00 00 00 00 3E [08:55:56]Write i2c OK [08:55:56]MH_I2C_Read... [08:55:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:56]Read from MH i2c: E2 [08:55:56]MH_I2C_Read... [08:55:56]Read from MH i2c: E2 0E 00 [08:55:56]MH_I2C_Read... [08:55:56]Read from MH i2c: E2 0E 00 A9 18 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 4D [08:55:56]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [08:55:56]wFMCommunicate OK [08:55:56]SAM_PROTO_GetShiftState done [08:55:56]FM_GetShiftState done [08:55:56]req_shift_opened done [08:55:56]requested_item shift.open_date is exist - process it [08:55:56]req_shift_open_date [08:55:56]req_shift_open_date done [08:55:56]produce_requested_data done [08:55:56]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201283,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [08:55:56]process_action_free close_receipt [08:55:56]json_value_free [08:55:56]json_value_free done [08:55:56]process_json_proto returns [08:55:56]Send response to host [08:55:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201283,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [08:55:56]free response buf [08:55:56]execute_script done [08:55:56]execute_script returns [08:55:56]free content buf [08:55:56]Sock 7.Close socket [08:55:56]Sock 7.Thread stoped [08:56:00]OFD Sender: No OFD packet to send [08:56:05]OFD Sender: No OFD packet to send [08:56:10]OFD Sender: No OFD packet to send [08:56:15]OFD Sender: No OFD packet to send [08:56:20]OFD Sender: No OFD packet to send [08:56:25]OFD Sender: No OFD packet to send [08:56:30]OFD Sender: No OFD packet to send [08:56:35]OFD Sender: No OFD packet to send [08:56:40]OFD Sender: No OFD packet to send [08:56:45]OFD Sender: No OFD packet to send [08:56:50]OFD Sender: No OFD packet to send [08:56:55]OFD Sender: No OFD packet to send [08:57:00]OFD Sender: No OFD packet to send [08:57:05]OFD Sender: No OFD packet to send [08:57:10]OFD Sender: No OFD packet to send [08:57:15]OFD Sender: No OFD packet to send [08:57:20]OFD Sender: No OFD packet to send [08:57:25]OFD Sender: No OFD packet to send [08:57:30]OFD Sender: No OFD packet to send [08:57:35]OFD Sender: No OFD packet to send [08:57:40]OFD Sender: No OFD packet to send [08:57:45]OFD Sender: No OFD packet to send [08:57:50]OFD Sender: No OFD packet to send [08:57:55]OFD Sender: No OFD packet to send [08:58:00]OFD Sender: No OFD packet to send [08:58:05]OFD Sender: No OFD packet to send [08:58:10]OFD Sender: No OFD packet to send [08:58:15]OFD Sender: No OFD packet to send [08:58:20]OFD Sender: No OFD packet to send [08:58:25]OFD Sender: No OFD packet to send [08:58:30]OFD Sender: No OFD packet to send [08:58:35]OFD Sender: No OFD packet to send [08:58:40]OFD Sender: No OFD packet to send [08:58:45]OFD Sender: No OFD packet to send [08:58:50]OFD Sender: No OFD packet to send [08:58:55]OFD Sender: No OFD packet to send [08:59:00]OFD Sender: No OFD packet to send [08:59:05]OFD Sender: No OFD packet to send [08:59:10]OFD Sender: No OFD packet to send [08:59:15]OFD Sender: No OFD packet to send [08:59:20]OFD Sender: No OFD packet to send [08:59:25]OFD Sender: No OFD packet to send [08:59:30]OFD Sender: No OFD packet to send [08:59:35]OFD Sender: No OFD packet to send [08:59:40]OFD Sender: No OFD packet to send [08:59:45]OFD Sender: No OFD packet to send [08:59:50]OFD Sender: No OFD packet to send [08:59:56]OFD Sender: No OFD packet to send [09:00:01]OFD Sender: No OFD packet to send [09:00:06]OFD Sender: No OFD packet to send [09:00:11]OFD Sender: No OFD packet to send [09:00:16]OFD Sender: No OFD packet to send [09:00:21]OFD Sender: No OFD packet to send [09:00:22]accept exits with 9 [09:00:22]New connection [09:00:22]New thread 3067415908 created [09:00:22]Thread 3067559268 joined [09:00:22]Waiting for new connection... [09:00:22] Sock 9.Parse request [09:00:22]Sock 9.Check first char [09:00:22]Sock 9.First char is OK [09:00:22]request: POST /json_proto HTTP/1.0 [09:00:22]Method: POST [09:00:22]URL: /json_proto [09:00:22]Method is POST - this is cgi request [09:00:22]url: /json_proto [09:00:22]query_string will be loaded in cgi processing [09:00:22]execute_cgi json_proto POST (null) [09:00:22]execute_cgi path=json_proto method=POST [09:00:22]POST find Content-Length [09:00:22]Host: 172.17.63.195:8080 [09:00:22]Content-Length: 677 [09:00:22]Content-Type: application/json [09:00:22] [09:00:22]POST finish read [09:00:22]Found Content-Length = 677 [09:00:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:00:22]execute_script... [09:00:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:00:22]POST & json_proto [09:00:22]process_json_proto [09:00:22]json parsed OK: [09:00:22]protocol is kg_v1.0 [09:00:22]action value=close_receipt [09:00:22]process_action close_receipt [09:00:22]cmd_close_receipt [09:00:22]MH_GetDate [09:00:22]Write to MH i2c: F0 00 00 AA 18 B1 [09:00:22]Write i2c OK [09:00:22]MH_I2C_Read... [09:00:22]Read from MH i2c: F0 [09:00:22]MH_I2C_Read... [09:00:22]Read from MH i2c: F0 09 00 [09:00:22]MH_I2C_Read... [09:00:22]Read from MH i2c: F0 09 00 AA 18 00 A9 AF 1C 67 68 46 19 67 C3 [09:00:22]GetLastDocTimeStamp 1729932956 [09:00:22]current date 1729933225 [09:00:22]FM_GetShiftState [09:00:22]SAM_PROTO_GetShiftState [09:00:22]wFMCommunicate request_size=4 [09:00:22]MH_SAM_APDU [09:00:22]CAPDU: 80 13 01 00 [09:00:22]Write to MH i2c: E2 08 00 AB 18 80 13 01 00 00 00 00 00 40 [09:00:22]Write i2c OK [09:00:22]MH_I2C_Read... [09:00:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:22]Read from MH i2c: E2 [09:00:22]MH_I2C_Read... [09:00:22]Read from MH i2c: E2 0E 00 [09:00:22]MH_I2C_Read... [09:00:22]Read from MH i2c: E2 0E 00 AB 18 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 4F [09:00:22]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:00:22]wFMCommunicate OK [09:00:22]SAM_PROTO_GetShiftState done [09:00:22]FM_GetShiftState done [09:00:22]opened in 1729900879 [09:00:22]opened+sec_in_day 1729987279 [09:00:22]quantity*price = 50041 [09:00:22]sum+1 = 50042 [09:00:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 46 26.10.2024 09:00 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201284 ФПД: 93675197303052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090025&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201284&fm=93675197303052&tin=02508201610067®Number=0000000000091777&sum=50000 [09:00:23]StoreToDocumentArchive [09:00:23]shift 543 fd 201284 [09:00:23]save to /storage/0543/doc_00201284 [09:00:23]save last doc name /storage/0543/doc_00201284 to /storage/kkm_last_doc_name [09:00:23]save OK [09:00:23]Clear old archive folders... [09:00:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:00:23]tlvbuf is B6FE9010 [09:00:23]SAM_PROTO_ClearQueue [09:00:23]wFMCommunicate request_size=4 [09:00:23]MH_SAM_APDU [09:00:23]CAPDU: 80 09 00 00 [09:00:23]Write to MH i2c: E2 08 00 B8 18 80 09 00 00 00 00 00 00 42 [09:00:23]Write i2c OK [09:00:23]MH_I2C_Read... [09:00:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:00:23]Read from MH i2c: E2 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: E2 03 00 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: E2 03 00 B8 18 00 90 00 44 [09:00:23]RAPDU: 90 00 [09:00:23]wFMCommunicate OK [09:00:23]SAM_PROTO_ClearQueue done [09:00:23]KKMCreateOFDPacket [09:00:23]OFDProtocolAddRootSTLVToBuf [09:00:23]FM_MakeSignedData [09:00:23]FM_MakeSignedData [09:00:23]SAM_PROTO_SignData [09:00:23]wFMCommunicate request_size=4 [09:00:23]MH_SAM_APDU [09:00:23]CAPDU: 80 0D 01 02 [09:00:23]Write to MH i2c: E2 08 00 B9 18 80 0D 01 02 00 00 00 00 4A [09:00:23]Write i2c OK [09:00:23]MH_I2C_Read... [09:00:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:23]Read from MH i2c: E2 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: E2 03 00 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: E2 03 00 B9 18 00 90 00 45 [09:00:23]RAPDU: 90 00 [09:00:23]wFMCommunicate OK [09:00:23]wFMCommunicate request_size=255 [09:00:23]MH_SAM_APDU [09:00:23]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 32 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 2E 00 00 00 F4 03 04 00 A9 AF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 44 12 03 00 35 04 06 00 55 [09:00:23]Write to MH i2c: E2 02 01 BA 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 2E 00 00 00 F4 03 04 00 A9 AF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 44 12 03 00 35 04 06 00 55 00 00 B6 [09:00:23]Write i2c OK [09:00:23]MH_I2C_Read... [09:00:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:23]Read from MH i2c: E2 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: E2 03 00 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: E2 03 00 BA 18 00 90 00 46 [09:00:23]RAPDU: 90 00 [09:00:23]wFMCommunicate OK [09:00:23]wFMCommunicate request_size=10 [09:00:23]MH_SAM_APDU [09:00:23]CAPDU: 80 0D 02 02 05 32 74 DC 09 0C [09:00:23]Write to MH i2c: E2 0D 00 BB 18 80 0D 02 02 05 00 32 74 DC 09 0C 00 00 EE [09:00:23]Write i2c OK [09:00:23]MH_I2C_Read... [09:00:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:23]Read from MH i2c: E2 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: E2 03 00 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: E2 03 00 BB 18 00 90 00 47 [09:00:23]RAPDU: 90 00 [09:00:23]wFMCommunicate OK [09:00:23]wFMCommunicate request_size=4 [09:00:23]MH_SAM_APDU [09:00:23]CAPDU: 80 0D 03 02 [09:00:23]Write to MH i2c: E2 08 00 BC 18 80 0D 03 02 00 00 00 00 4F [09:00:23]Write i2c OK [09:00:23]MH_I2C_Read... [09:00:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:23]Read from MH i2c: E2 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: E2 0B 00 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: E2 0B 00 BC 18 00 E3 58 72 A8 6D 26 DB 4F 90 00 62 [09:00:23]RAPDU: E3 58 72 A8 6D 26 DB 4F 90 00 [09:00:23]wFMCommunicate OK [09:00:23]SAM_PROTO_SignData done [09:00:23]FM_MakeSignedData done [09:00:23]CreateOFDProtocolMessage [09:00:23]wFMCommunicate request_size=4 [09:00:23]MH_SAM_APDU [09:00:23]CAPDU: 80 11 00 00 [09:00:23]Write to MH i2c: E2 08 00 BD 18 80 11 00 00 00 00 00 00 4F [09:00:23]Write i2c OK [09:00:23]MH_I2C_Read... [09:00:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:23]Read from MH i2c: E2 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: E2 17 00 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: E2 17 00 BD 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A4 [09:00:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:00:23]wFMCommunicate OK [09:00:23]CreateOFDProtocolMessage done [09:00:23]OFDSenderStorePacket 201284 [09:00:23]StoreOFDPacket docnum=201284 [09:00:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 5F D8 07 01 83 91 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 32 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 2E 00 00 00 F4 03 04 00 A9 AF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 44 12 03 00 35 04 06 00 55 32 74 DC 09 0C E3 58 72 A8 6D 26 DB 4F [09:00:23]CheckFolder [09:00:23]dirname=/storage/ofd_packets [09:00:23]CheckFolder done [09:00:23]ProducePacketName [09:00:23]name=ofd_packets/00201284 [09:00:23]NVStorageSaveData ofd_packets/00201284 [09:00:23]File name is /storage/ofd_packets/00201284 [09:00:23]Write 301 bytes [09:00:23]NVStorageSaveData done [09:00:23]OFDSenderStorePacket done [09:00:23]KKMCreateOFDPacket done [09:00:23]NVStorageSaveData kkm_last_timestamp [09:00:23]File name is /storage/kkm_last_timestamp [09:00:23]Write 4 bytes [09:00:23]NVStorageSaveData done [09:00:23]ExternCall_PrintAddStr [09:00:23]wPrintStart [09:00:23]Write to MH i2c: 01 00 00 BE 18 D6 [09:00:23]Write i2c OK [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: 01 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: 01 07 00 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: 01 07 00 BE 18 00 00 00 00 00 FF 0F EB [09:00:23]RasterBufferAndPrint [09:00:23]line Счет N : (1)449032 [09:00:23]line ИНН: 02508201610067 [09:00:23]line Контрольно-Кассовый Чек [09:00:23]line ПРОДАЖА [09:00:23]line ТРК (МРК, ГНК) : 41 [09:00:23]line Товар: 2710124130 [09:00:23]line Аи-92-К-2 [09:00:23]line 7.480 * 66.90 [09:00:23]line = 500.41 [09:00:23]line НДС 12% НСП 1% [09:00:23]line > о реализуемом товаре [09:00:23]line ОКРУГЛЕНИЕ: -0.41 [09:00:23]line ИТОГО: 500.00 [09:00:23]line Внесено: 500.00 [09:00:23]line СДАЧА: 0.00 [09:00:23]line НСП 1% : 4.43 [09:00:23]line НДС 12% : 53.14 [09:00:23]line Наличными: 500.00 [09:00:23]line Безнал.: 0.00 [09:00:23]line Место: АЗС № 171 "Партнер Нефть" [09:00:23]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:00:23]line СНО: Общий режим [09:00:23]line Чек 46 26.10.2024 09:00 [09:00:23]line Смена: 543 ФФД: 1.0 [09:00:23]line ЗНМ: 0300000109 [09:00:23]line РНМ: 0000000000091777 [09:00:23]line Версия ККМ: 001 [09:00:23]line ФМ: 0000000000871756 [09:00:23]line ФД: 201284 [09:00:23]line ФПД: 93675197303052 [09:00:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090025&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201284&fm=93675197303052&tin=02508201610067®Number=0000000000091777&sum=50000 [09:00:24]OFD Sender: Processing packet 201284 [packets to send 112, broken 111] [09:00:24]ProducePacketName [09:00:24]name=ofd_packets/00201284 [09:00:24]OFD Sender: To server: pG, [09:00:24]CommunicateWithHost lk.salyk.kg:30040 [09:00:24]ConnectInit lk.salyk.kg [09:00:24]written 0, free lines is 4095 [09:00:24]Connected sock=10 [09:00:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 5F D8 07 01 83 91 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 32 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 2E 00 00 00 F4 03 04 00 A9 AF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 44 12 03 00 35 04 06 00 55 32 74 DC 09 0C E3 58 72 A8 6D 26 DB 4F [09:00:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 18 03 47 00 EC 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 44 12 03 00 F4 03 04 00 53 5B 1C 67 B6 04 01 00 00 FB F8 83 8D B0 9E 25 8B [09:00:24]CommunicateWithHost err = 0 [09:00:24]CheckOFDResponse [09:00:24]1017 (14) - 77093643461234 [09:00:24]1041 (16) - 0000000000871756 [09:00:24]1040 (4) - 201284 [09:00:24]1012 (4) - 26.10.2024 03:00 [09:00:24]1206 (1) - 0 [09:00:24]OFD Sender: Remove packet 201284 [09:00:24]ProducePacketName [09:00:24]name=ofd_packets/00201284 [09:00:24]NVStorageDeleteData [09:00:24]Write to MH i2c: 01 00 00 E9 18 01 [09:00:24]Write i2c OK [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: 01 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: 01 07 00 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: 01 07 00 E9 18 00 00 00 00 00 9B 0C AF [09:00:24]RasterBufferAndPrint [09:00:24]line [09:00:24]line [09:00:24]line [09:00:24]line [09:00:24]line [09:00:24]written 0, free lines is 3233 [09:00:24]MH_Cut [09:00:24]Write to MH i2c: D1 01 00 F0 18 01 DA [09:00:24]Write i2c OK [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: D1 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: D1 01 00 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: D1 01 00 F0 18 00 D9 [09:00:24]Write to MH i2c: 01 00 00 F1 18 09 [09:00:24]Write i2c OK [09:00:24]MH_I2C_Read... [09:00:24]OFD Sender: No OFD packet to send [09:00:25]*** Cut start [09:00:25]*** Purtial cut [09:00:25]*** Stage 1: CUTSNS_PIN = 1 [09:00:25]Read from MH i2c: 01 [09:00:25]MH_I2C_Read... [09:00:25]*** Stop cut motor [09:00:25]*** Cut end [09:00:25]Read from MH i2c: 01 07 00 [09:00:25]MH_I2C_Read... [09:00:25]Read from MH i2c: 01 07 00 F1 18 00 00 00 00 00 FF 0F 1E [09:00:25]process_action close_receipt done [09:00:25]requested_data is exist [09:00:25]produce_requested_data [09:00:25]requested_item fm.sn is exist - process it [09:00:25]wFMCommunicate request_size=4 [09:00:25]MH_SAM_APDU [09:00:25]CAPDU: 80 11 00 00 [09:00:25]Write to MH i2c: E2 08 00 F2 18 80 11 00 00 00 00 00 00 84 [09:00:25]Write i2c OK [09:00:25]MH_I2C_Read... [09:00:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:25]Read from MH i2c: E2 [09:00:25]MH_I2C_Read... [09:00:25]Read from MH i2c: E2 17 00 [09:00:25]MH_I2C_Read... [09:00:25]Read from MH i2c: E2 17 00 F2 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D9 [09:00:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:00:25]wFMCommunicate OK [09:00:25]requested_item fd.num is exist - process it [09:00:25]SAM_PROTO_GetFieldsCounters [09:00:25]wFMCommunicate request_size=4 [09:00:25]MH_SAM_APDU [09:00:25]CAPDU: 80 13 00 00 [09:00:25]Write to MH i2c: E2 08 00 F3 18 80 13 00 00 00 00 00 00 87 [09:00:25]Write i2c OK [09:00:25]MH_I2C_Read... [09:00:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:00:25]Read from MH i2c: E2 [09:00:25]MH_I2C_Read... [09:00:25]Read from MH i2c: E2 62 00 [09:00:25]MH_I2C_Read... [09:00:25]Read from MH i2c: E2 62 00 F3 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 44 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [09:00:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 44 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:00:25]wFMCommunicate OK [09:00:25]SAM_PROTO_GetFieldsCounters done [09:00:25]requested_item shift.num is exist - process it [09:00:25]requested_item shift.opened is exist - process it [09:00:25]req_shift_opened [09:00:25]FM_GetShiftState [09:00:25]SAM_PROTO_GetShiftState [09:00:25]wFMCommunicate request_size=4 [09:00:25]MH_SAM_APDU [09:00:25]CAPDU: 80 13 01 00 [09:00:25]Write to MH i2c: E2 08 00 F4 18 80 13 01 00 00 00 00 00 89 [09:00:25]Write i2c OK [09:00:25]MH_I2C_Read... [09:00:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:25]Read from MH i2c: E2 [09:00:25]MH_I2C_Read... [09:00:25]Read from MH i2c: E2 0E 00 [09:00:25]MH_I2C_Read... [09:00:25]Read from MH i2c: E2 0E 00 F4 18 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 98 [09:00:25]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:00:25]wFMCommunicate OK [09:00:25]SAM_PROTO_GetShiftState done [09:00:25]FM_GetShiftState done [09:00:25]req_shift_opened done [09:00:25]requested_item shift.open_date is exist - process it [09:00:25]req_shift_open_date [09:00:25]req_shift_open_date done [09:00:25]produce_requested_data done [09:00:25]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201284,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:00:25]process_action_free close_receipt [09:00:25]json_value_free [09:00:25]json_value_free done [09:00:25]process_json_proto returns [09:00:25]Send response to host [09:00:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201284,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:00:25]free response buf [09:00:25]execute_script done [09:00:25]execute_script returns [09:00:25]free content buf [09:00:25]Sock 9.Close socket [09:00:25]Sock 9.Thread stoped [09:00:29]accept exits with 7 [09:00:29]New connection [09:00:29]New thread 3067559268 created [09:00:29]Thread 3067415908 joined [09:00:29]Waiting for new connection... [09:00:29] Sock 7.Parse request [09:00:29]Sock 7.Check first char [09:00:29]Sock 7.First char is OK [09:00:29]request: POST /json_proto HTTP/1.0 [09:00:29]Method: POST [09:00:29]URL: /json_proto [09:00:29]Method is POST - this is cgi request [09:00:29]url: /json_proto [09:00:29]query_string will be loaded in cgi processing [09:00:29]execute_cgi json_proto POST (null) [09:00:29]execute_cgi path=json_proto method=POST [09:00:29]POST find Content-Length [09:00:29]Host: 172.17.63.195:8080 [09:00:29]Content-Length: 682 [09:00:29]Content-Type: application/json [09:00:29] [09:00:29]POST finish read [09:00:29]Found Content-Length = 682 [09:00:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [09:00:29]execute_script... [09: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)449031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [09:00:29]POST & json_proto [09:00:29]process_json_proto [09:00:29]json parsed OK: [09:00:29]protocol is kg_v1.0 [09:00:29]action value=close_receipt [09:00:29]process_action close_receipt [09:00:29]cmd_close_receipt [09:00:29]MH_GetDate [09:00:29]Write to MH i2c: F0 00 00 F5 18 FC [09:00:29]Write i2c OK [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: F0 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: F0 09 00 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: F0 09 00 F5 18 00 B1 AF 1C 67 68 46 19 67 16 [09:00:29]GetLastDocTimeStamp 1729933225 [09:00:29]current date 1729933233 [09:00:29]FM_GetShiftState [09:00:29]SAM_PROTO_GetShiftState [09:00:29]wFMCommunicate request_size=4 [09:00:29]MH_SAM_APDU [09:00:29]CAPDU: 80 13 01 00 [09:00:29]Write to MH i2c: E2 08 00 F6 18 80 13 01 00 00 00 00 00 8B [09:00:29]Write i2c OK [09:00:29]MH_I2C_Read... [09:00:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:29]Read from MH i2c: E2 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: E2 0E 00 [09:00:29]MH_I2C_Read... [09:00:29]Read from MH i2c: E2 0E 00 F6 18 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 9A [09:00:29]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:00:29]wFMCommunicate OK [09:00:29]SAM_PROTO_GetShiftState done [09:00:29]FM_GetShiftState done [09:00:29]opened in 1729900879 [09:00:29]opened+sec_in_day 1729987279 [09:00:29]quantity*price = 150056 [09:00:29]sum+1 = 150058 [09:00:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 47 26.10.2024 09:00 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201285 ФПД: 234069553789940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090033&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201285&fm=234069553789940&tin=02508201610067®Number=0000000000091777&sum=150000 [09:00:30]StoreToDocumentArchive [09:00:30]shift 543 fd 201285 [09:00:30]save to /storage/0543/doc_00201285 [09:00:30]save last doc name /storage/0543/doc_00201285 to /storage/kkm_last_doc_name [09:00:30]save OK [09:00:30]Clear old archive folders... [09:00:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:00:30]tlvbuf is 017A4CB0 [09:00:30]SAM_PROTO_ClearQueue [09:00:30]wFMCommunicate request_size=4 [09:00:30]MH_SAM_APDU [09:00:30]CAPDU: 80 09 00 00 [09:00:30]Write to MH i2c: E2 08 00 03 19 80 09 00 00 00 00 00 00 8E [09:00:30]Write i2c OK [09:00:30]MH_I2C_Read... [09:00:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:00:31]Read from MH i2c: E2 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: E2 03 00 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: E2 03 00 03 19 00 90 00 90 [09:00:31]RAPDU: 90 00 [09:00:31]wFMCommunicate OK [09:00:31]SAM_PROTO_ClearQueue done [09:00:31]KKMCreateOFDPacket [09:00:31]OFDProtocolAddRootSTLVToBuf [09:00:31]FM_MakeSignedData [09:00:31]FM_MakeSignedData [09:00:31]SAM_PROTO_SignData [09:00:31]wFMCommunicate request_size=4 [09:00:31]MH_SAM_APDU [09:00:31]CAPDU: 80 0D 01 02 [09:00:31]Write to MH i2c: E2 08 00 04 19 80 0D 01 02 00 00 00 00 96 [09:00:31]Write i2c OK [09:00:31]MH_I2C_Read... [09:00:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:31]Read from MH i2c: E2 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: E2 03 00 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: E2 03 00 04 19 00 90 00 91 [09:00:31]RAPDU: 90 00 [09:00:31]wFMCommunicate OK [09:00:31]wFMCommunicate request_size=255 [09:00:31]MH_SAM_APDU [09: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 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 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 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 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 2F 00 00 00 F4 03 04 00 B1 AF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 45 12 03 00 35 04 06 00 D4 [09:00:31]Write to MH i2c: E2 02 01 05 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 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 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 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 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 2F 00 00 00 F4 03 04 00 B1 AF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 45 12 03 00 35 04 06 00 D4 00 00 D4 [09:00:31]Write i2c OK [09:00:31]MH_I2C_Read... [09:00:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:31]Read from MH i2c: E2 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: E2 03 00 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: E2 03 00 05 19 00 90 00 92 [09:00:31]RAPDU: 90 00 [09:00:31]wFMCommunicate OK [09:00:31]wFMCommunicate request_size=10 [09:00:31]MH_SAM_APDU [09:00:31]CAPDU: 80 0D 02 02 05 E2 90 9B 3B F4 [09:00:31]Write to MH i2c: E2 0D 00 06 19 80 0D 02 02 05 00 E2 90 9B 3B F4 00 00 DF [09:00:31]Write i2c OK [09:00:31]MH_I2C_Read... [09:00:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:31]Read from MH i2c: E2 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: E2 03 00 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: E2 03 00 06 19 00 90 00 93 [09:00:31]RAPDU: 90 00 [09:00:31]wFMCommunicate OK [09:00:31]wFMCommunicate request_size=4 [09:00:31]MH_SAM_APDU [09:00:31]CAPDU: 80 0D 03 02 [09:00:31]Write to MH i2c: E2 08 00 07 19 80 0D 03 02 00 00 00 00 9B [09:00:31]Write i2c OK [09:00:31]MH_I2C_Read... [09:00:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:31]Read from MH i2c: E2 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: E2 0B 00 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: E2 0B 00 07 19 00 3A 52 7F 08 BC B0 67 95 90 00 17 [09:00:31]RAPDU: 3A 52 7F 08 BC B0 67 95 90 00 [09:00:31]wFMCommunicate OK [09:00:31]SAM_PROTO_SignData done [09:00:31]FM_MakeSignedData done [09:00:31]CreateOFDProtocolMessage [09:00:31]wFMCommunicate request_size=4 [09:00:31]MH_SAM_APDU [09:00:31]CAPDU: 80 11 00 00 [09:00:31]Write to MH i2c: E2 08 00 08 19 80 11 00 00 00 00 00 00 9B [09:00:31]Write i2c OK [09:00:31]MH_I2C_Read... [09:00:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:31]Read from MH i2c: E2 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: E2 17 00 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: E2 17 00 08 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F0 [09:00:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:00:31]wFMCommunicate OK [09:00:31]CreateOFDProtocolMessage done [09:00:31]OFDSenderStorePacket 201285 [09:00:31]StoreOFDPacket docnum=201285 [09:00:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6F FC 07 01 4C 72 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 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 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 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 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 2F 00 00 00 F4 03 04 00 B1 AF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 45 12 03 00 35 04 06 00 D4 E2 90 9B 3B F4 3A 52 7F 08 BC B0 67 95 [09:00:31]CheckFolder [09:00:31]dirname=/storage/ofd_packets [09:00:31]CheckFolder done [09:00:31]ProducePacketName [09:00:31]name=ofd_packets/00201285 [09:00:31]NVStorageSaveData ofd_packets/00201285 [09:00:31]File name is /storage/ofd_packets/00201285 [09:00:31]Write 301 bytes [09:00:31]NVStorageSaveData done [09:00:31]OFDSenderStorePacket done [09:00:31]KKMCreateOFDPacket done [09:00:31]NVStorageSaveData kkm_last_timestamp [09:00:31]File name is /storage/kkm_last_timestamp [09:00:31]Write 4 bytes [09:00:31]NVStorageSaveData done [09:00:31]ExternCall_PrintAddStr [09:00:31]wPrintStart [09:00:31]Write to MH i2c: 01 00 00 09 19 22 [09:00:31]Write i2c OK [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: 01 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: 01 07 00 [09:00:31]MH_I2C_Read... [09:00:31]Read from MH i2c: 01 07 00 09 19 00 00 00 00 00 FF 0F 37 [09:00:31]RasterBufferAndPrint [09:00:31]line Счет N : (1)449031 [09:00:31]line ИНН: 02508201610067 [09:00:31]line Контрольно-Кассовый Чек [09:00:31]line ПРОДАЖА [09:00:31]line ТРК (МРК, ГНК) : 62 [09:00:31]line Товар: 2710124130 [09:00:31]line Аи-92-К-2 [09:00:31]line 22.430 * 66.90 [09:00:31]line = 1500.57 [09:00:31]line НДС 12% НСП 1% [09:00:31]line > о реализуемом товаре [09:00:31]line ОКРУГЛЕНИЕ: -0.57 [09:00:31]line ИТОГО: 1500.00 [09:00:31]line Внесено: 1500.00 [09:00:31]line СДАЧА: 0.00 [09:00:31]line НСП 1% : 13.28 [09:00:31]line НДС 12% : 159.35 [09:00:31]line Наличными: 1500.00 [09:00:31]line Безнал.: 0.00 [09:00:31]line Место: АЗС № 171 "Партнер Нефть" [09:00:31]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:00:31]line СНО: Общий режим [09:00:31]line Чек 47 26.10.2024 09:00 [09:00:31]line Смена: 543 ФФД: 1.0 [09:00:31]line ЗНМ: 0300000109 [09:00:31]line РНМ: 0000000000091777 [09:00:31]line Версия ККМ: 001 [09:00:31]line ФМ: 0000000000871756 [09:00:31]line ФД: 201285 [09:00:31]line ФПД: 234069553789940 [09:00:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090033&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201285&fm=234069553789940&tin=02508201610067®Number=0000000000091777&sum=150000 [09:00:31]written 0, free lines is 4095 [09:00:31]OFD Sender: Processing packet 201285 [packets to send 112, broken 111] [09:00:31]ProducePacketName [09:00:31]name=ofd_packets/00201285 [09:00:31]OFD Sender: To server: pG, [09:00:31]CommunicateWithHost lk.salyk.kg:30040 [09:00:31]ConnectInit lk.salyk.kg [09:00:31]Connected sock=10 [09:00:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6F FC 07 01 4C 72 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 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 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 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 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 2F 00 00 00 F4 03 04 00 B1 AF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 45 12 03 00 35 04 06 00 D4 E2 90 9B 3B F4 3A 52 7F 08 BC B0 67 95 [09:00:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 50 33 47 00 CC ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 45 12 03 00 F4 03 04 00 5A 5B 1C 67 B6 04 01 00 00 BB 06 FD 49 C3 16 73 69 [09:00:31]CommunicateWithHost err = 0 [09:00:31]CheckOFDResponse [09:00:31]1017 (14) - 77093643461234 [09:00:31]1041 (16) - 0000000000871756 [09:00:31]1040 (4) - 201285 [09:00:31]1012 (4) - 26.10.2024 03:00 [09:00:31]1206 (1) - 0 [09:00:31]OFD Sender: Remove packet 201285 [09:00:31]ProducePacketName [09:00:31]name=ofd_packets/00201285 [09:00:31]NVStorageDeleteData [09:00:32]Write to MH i2c: 01 00 00 34 19 4D [09:00:32]Write i2c OK [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: 01 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: 01 07 00 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: 01 07 00 34 19 00 00 00 00 00 9D 0C FD [09:00:32]RasterBufferAndPrint [09:00:32]line [09:00:32]line [09:00:32]line [09:00:32]line [09:00:32]line [09:00:32]written 0, free lines is 3241 [09:00:32]MH_Cut [09:00:32]Write to MH i2c: D1 01 00 3B 19 01 26 [09:00:32]Write i2c OK [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: D1 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: D1 01 00 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: D1 01 00 3B 19 00 25 [09:00:32]Write to MH i2c: 01 00 00 3C 19 55 [09:00:32]Write i2c OK [09:00:32]MH_I2C_Read... [09:00:32]OFD Sender: No OFD packet to send [09:00:32]*** Cut start [09:00:32]*** Purtial cut [09:00:32]*** Stage 1: CUTSNS_PIN = 1 [09:00:33]Read from MH i2c: 01 [09:00:33]MH_I2C_Read... [09:00:33]*** Stop cut motor [09:00:33]*** Cut end [09:00:33]Read from MH i2c: 01 07 00 [09:00:33]MH_I2C_Read... [09:00:33]Read from MH i2c: 01 07 00 3C 19 00 00 00 00 00 FF 0F 6A [09:00:33]process_action close_receipt done [09:00:33]requested_data is exist [09:00:33]produce_requested_data [09:00:33]requested_item fm.sn is exist - process it [09:00:33]wFMCommunicate request_size=4 [09:00:33]MH_SAM_APDU [09:00:33]CAPDU: 80 11 00 00 [09:00:33]Write to MH i2c: E2 08 00 3D 19 80 11 00 00 00 00 00 00 D0 [09:00:33]Write i2c OK [09:00:33]MH_I2C_Read... [09:00:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:33]Read from MH i2c: E2 [09:00:33]MH_I2C_Read... [09:00:33]Read from MH i2c: E2 17 00 [09:00:33]MH_I2C_Read... [09:00:33]Read from MH i2c: E2 17 00 3D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 25 [09:00:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:00:33]wFMCommunicate OK [09:00:33]requested_item fd.num is exist - process it [09:00:33]SAM_PROTO_GetFieldsCounters [09:00:33]wFMCommunicate request_size=4 [09:00:33]MH_SAM_APDU [09:00:33]CAPDU: 80 13 00 00 [09:00:33]Write to MH i2c: E2 08 00 3E 19 80 13 00 00 00 00 00 00 D3 [09:00:33]Write i2c OK [09:00:33]MH_I2C_Read... [09:00:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:00:33]Read from MH i2c: E2 [09:00:33]MH_I2C_Read... [09:00:33]Read from MH i2c: E2 62 00 [09:00:33]MH_I2C_Read... [09:00:33]Read from MH i2c: E2 62 00 3E 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 45 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [09:00:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 45 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:00:33]wFMCommunicate OK [09:00:33]SAM_PROTO_GetFieldsCounters done [09:00:33]requested_item shift.num is exist - process it [09:00:33]requested_item shift.opened is exist - process it [09:00:33]req_shift_opened [09:00:33]FM_GetShiftState [09:00:33]SAM_PROTO_GetShiftState [09:00:33]wFMCommunicate request_size=4 [09:00:33]MH_SAM_APDU [09:00:33]CAPDU: 80 13 01 00 [09:00:33]Write to MH i2c: E2 08 00 3F 19 80 13 01 00 00 00 00 00 D5 [09:00:33]Write i2c OK [09:00:33]MH_I2C_Read... [09:00:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:33]Read from MH i2c: E2 [09:00:33]MH_I2C_Read... [09:00:33]Read from MH i2c: E2 0E 00 [09:00:33]MH_I2C_Read... [09:00:33]Read from MH i2c: E2 0E 00 3F 19 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E4 [09:00:33]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:00:33]wFMCommunicate OK [09:00:33]SAM_PROTO_GetShiftState done [09:00:33]FM_GetShiftState done [09:00:33]req_shift_opened done [09:00:33]requested_item shift.open_date is exist - process it [09:00:33]req_shift_open_date [09:00:33]req_shift_open_date done [09:00:33]produce_requested_data done [09:00:33]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201285,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:00:33]process_action_free close_receipt [09:00:33]json_value_free [09:00:33]json_value_free done [09:00:33]process_json_proto returns [09:00:33]Send response to host [09:00:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201285,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:00:33]free response buf [09:00:33]execute_script done [09:00:33]execute_script returns [09:00:33]free content buf [09:00:33]Sock 7.Close socket [09:00:33]Sock 7.Thread stoped [09:00:37]OFD Sender: No OFD packet to send [09:00:42]OFD Sender: No OFD packet to send [09:00:47]OFD Sender: No OFD packet to send [09:00:52]OFD Sender: No OFD packet to send [09:00:54]accept exits with 9 [09:00:54]New connection [09:00:54]New thread 3067415908 created [09:00:54]Thread 3067559268 joined [09:00:54]Waiting for new connection... [09:00:54] Sock 9.Parse request [09:00:54]Sock 9.Check first char [09:00:54]Sock 9.First char is OK [09:00:54]request: POST /json_proto HTTP/1.0 [09:00:54]Method: POST [09:00:54]URL: /json_proto [09:00:54]Method is POST - this is cgi request [09:00:54]url: /json_proto [09:00:54]query_string will be loaded in cgi processing [09:00:54]execute_cgi json_proto POST (null) [09:00:54]execute_cgi path=json_proto method=POST [09:00:54]POST find Content-Length [09:00:54]Host: 172.17.63.195:8080 [09:00:54]Content-Length: 677 [09:00:54]Content-Type: application/json [09:00:54] [09:00:54]POST finish read [09:00:54]Found Content-Length = 677 [09:00:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:00:54]execute_script... [09:00: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)449033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:00:54]POST & json_proto [09:00:54]process_json_proto [09:00:54]json parsed OK: [09:00:54]protocol is kg_v1.0 [09:00:54]action value=close_receipt [09:00:54]process_action close_receipt [09:00:54]cmd_close_receipt [09:00:54]MH_GetDate [09:00:54]Write to MH i2c: F0 00 00 40 19 48 [09:00:54]Write i2c OK [09:00:54]MH_I2C_Read... [09:00:54]Read from MH i2c: F0 [09:00:54]MH_I2C_Read... [09:00:54]Read from MH i2c: F0 09 00 [09:00:54]MH_I2C_Read... [09:00:54]Read from MH i2c: F0 09 00 40 19 00 C9 AF 1C 67 68 46 19 67 7A [09:00:54]GetLastDocTimeStamp 1729933233 [09:00:54]current date 1729933257 [09:00:54]FM_GetShiftState [09:00:54]SAM_PROTO_GetShiftState [09:00:54]wFMCommunicate request_size=4 [09:00:54]MH_SAM_APDU [09:00:54]CAPDU: 80 13 01 00 [09:00:54]Write to MH i2c: E2 08 00 41 19 80 13 01 00 00 00 00 00 D7 [09:00:54]Write i2c OK [09:00:54]MH_I2C_Read... [09:00:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:54]Read from MH i2c: E2 [09:00:54]MH_I2C_Read... [09:00:54]Read from MH i2c: E2 0E 00 [09:00:54]MH_I2C_Read... [09:00:54]Read from MH i2c: E2 0E 00 41 19 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E6 [09:00:54]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:00:54]wFMCommunicate OK [09:00:54]SAM_PROTO_GetShiftState done [09:00:54]FM_GetShiftState done [09:00:54]opened in 1729900879 [09:00:54]opened+sec_in_day 1729987279 [09:00:54]quantity*price = 20003 [09:00:54]sum+1 = 20004 [09:00:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 48 26.10.2024 09:00 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201286 ФПД: 102809380603860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090057&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201286&fm=102809380603860&tin=02508201610067®Number=0000000000091777&sum=20000 [09:00:55]StoreToDocumentArchive [09:00:55]shift 543 fd 201286 [09:00:55]save to /storage/0543/doc_00201286 [09:00:55]save last doc name /storage/0543/doc_00201286 to /storage/kkm_last_doc_name [09:00:55]save OK [09:00:55]Clear old archive folders... [09:00:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:00:55]tlvbuf is 01706F00 [09:00:55]SAM_PROTO_ClearQueue [09:00:55]wFMCommunicate request_size=4 [09:00:55]MH_SAM_APDU [09:00:55]CAPDU: 80 09 00 00 [09:00:55]Write to MH i2c: E2 08 00 4E 19 80 09 00 00 00 00 00 00 D9 [09:00:55]Write i2c OK [09:00:55]MH_I2C_Read... [09:00:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:00:55]Read from MH i2c: E2 [09:00:55]MH_I2C_Read... [09:00:55]Read from MH i2c: E2 03 00 [09:00:55]MH_I2C_Read... [09:00:55]Read from MH i2c: E2 03 00 4E 19 00 90 00 DB [09:00:55]RAPDU: 90 00 [09:00:55]wFMCommunicate OK [09:00:55]SAM_PROTO_ClearQueue done [09:00:55]KKMCreateOFDPacket [09:00:55]OFDProtocolAddRootSTLVToBuf [09:00:55]FM_MakeSignedData [09:00:55]FM_MakeSignedData [09:00:55]SAM_PROTO_SignData [09:00:55]wFMCommunicate request_size=4 [09:00:55]MH_SAM_APDU [09:00:55]CAPDU: 80 0D 01 02 [09:00:55]Write to MH i2c: E2 08 00 4F 19 80 0D 01 02 00 00 00 00 E1 [09:00:55]Write i2c OK [09:00:55]MH_I2C_Read... [09:00:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:55]Read from MH i2c: E2 [09:00:55]MH_I2C_Read... [09:00:55]Read from MH i2c: E2 03 00 [09:00:55]MH_I2C_Read... [09:00:55]Read from MH i2c: E2 03 00 4F 19 00 90 00 DC [09:00:55]RAPDU: 90 00 [09:00:55]wFMCommunicate OK [09:00:55]wFMCommunicate request_size=255 [09:00:55]MH_SAM_APDU [09:00:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 30 00 00 00 F4 03 04 00 C9 AF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 46 12 03 00 35 04 06 00 5D [09:00:55]Write to MH i2c: E2 02 01 50 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 32 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 30 00 00 00 F4 03 04 00 C9 AF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 46 12 03 00 35 04 06 00 5D 00 00 3B [09:00:55]Write i2c OK [09:00:55]MH_I2C_Read... [09:00:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:55]Read from MH i2c: E2 [09:00:55]MH_I2C_Read... [09:00:55]Read from MH i2c: E2 03 00 [09:00:55]MH_I2C_Read... [09:00:55]Read from MH i2c: E2 03 00 50 19 00 90 00 DD [09:00:55]RAPDU: 90 00 [09:00:55]wFMCommunicate OK [09:00:55]wFMCommunicate request_size=10 [09:00:55]MH_SAM_APDU [09:00:55]CAPDU: 80 0D 02 02 05 81 2C 9C 47 D4 [09:00:55]Write to MH i2c: E2 0D 00 51 19 80 0D 02 02 05 00 81 2C 9C 47 D4 00 00 52 [09:00:55]Write i2c OK [09:00:55]MH_I2C_Read... [09:00:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:55]Read from MH i2c: E2 [09:00:55]MH_I2C_Read... [09:00:55]Read from MH i2c: E2 03 00 [09:00:55]MH_I2C_Read... [09:00:55]Read from MH i2c: E2 03 00 51 19 00 90 00 DE [09:00:55]RAPDU: 90 00 [09:00:55]wFMCommunicate OK [09:00:55]wFMCommunicate request_size=4 [09:00:55]MH_SAM_APDU [09:00:55]CAPDU: 80 0D 03 02 [09:00:55]Write to MH i2c: E2 08 00 52 19 80 0D 03 02 00 00 00 00 E6 [09:00:55]Write i2c OK [09:00:55]MH_I2C_Read... [09:00:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:55]Read from MH i2c: E2 [09:00:55]MH_I2C_Read... [09:00:55]Read from MH i2c: E2 0B 00 [09:00:55]MH_I2C_Read... [09:00:55]Read from MH i2c: E2 0B 00 52 19 00 14 94 84 FD 0C 24 20 71 90 00 D1 [09:00:55]RAPDU: 14 94 84 FD 0C 24 20 71 90 00 [09:00:55]wFMCommunicate OK [09:00:55]SAM_PROTO_SignData done [09:00:55]FM_MakeSignedData done [09:00:55]CreateOFDProtocolMessage [09:00:55]wFMCommunicate request_size=4 [09:00:55]MH_SAM_APDU [09:00:55]CAPDU: 80 11 00 00 [09:00:55]Write to MH i2c: E2 08 00 53 19 80 11 00 00 00 00 00 00 E6 [09:00:55]Write i2c OK [09:00:55]MH_I2C_Read... [09:00:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:55]Read from MH i2c: E2 [09:00:55]MH_I2C_Read... [09:00:55]Read from MH i2c: E2 17 00 [09:00:55]MH_I2C_Read... [09:00:55]Read from MH i2c: E2 17 00 53 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3B [09:00:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:00:55]wFMCommunicate OK [09:00:55]CreateOFDProtocolMessage done [09:00:55]OFDSenderStorePacket 201286 [09:00:55]StoreOFDPacket docnum=201286 [09:00:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 BD 6A 07 01 DE 57 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 32 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 30 00 00 00 F4 03 04 00 C9 AF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 46 12 03 00 35 04 06 00 5D 81 2C 9C 47 D4 14 94 84 FD 0C 24 20 71 [09:00:55]CheckFolder [09:00:55]dirname=/storage/ofd_packets [09:00:55]CheckFolder done [09:00:55]ProducePacketName [09:00:55]name=ofd_packets/00201286 [09:00:55]NVStorageSaveData ofd_packets/00201286 [09:00:55]File name is /storage/ofd_packets/00201286 [09:00:55]Write 301 bytes [09:00:55]NVStorageSaveData done [09:00:55]OFDSenderStorePacket done [09:00:55]KKMCreateOFDPacket done [09:00:55]NVStorageSaveData kkm_last_timestamp [09:00:55]File name is /storage/kkm_last_timestamp [09:00:55]Write 4 bytes [09:00:55]NVStorageSaveData done [09:00:55]ExternCall_PrintAddStr [09:00:55]wPrintStart [09:00:55]Write to MH i2c: 01 00 00 54 19 6D [09:00:55]Write i2c OK [09:00:55]MH_I2C_Read... [09:00:55]Read from MH i2c: 01 [09:00:55]MH_I2C_Read... [09:00:55]Read from MH i2c: 01 07 00 [09:00:55]MH_I2C_Read... [09:00:55]Read from MH i2c: 01 07 00 54 19 00 00 00 00 00 FF 0F 82 [09:00:55]RasterBufferAndPrint [09:00:55]line Счет N : (1)449033 [09:00:55]line ИНН: 02508201610067 [09:00:55]line Контрольно-Кассовый Чек [09:00:55]line ПРОДАЖА [09:00:55]line ТРК (МРК, ГНК) : 52 [09:00:55]line Товар: 2710124130 [09:00:55]line Аи-92-К-2 [09:00:55]line 2.990 * 66.90 [09:00:55]line = 200.03 [09:00:55]line НДС 12% НСП 1% [09:00:55]line > о реализуемом товаре [09:00:55]line ОКРУГЛЕНИЕ: -0.03 [09:00:55]line ИТОГО: 200.00 [09:00:55]line Внесено: 200.00 [09:00:55]line СДАЧА: 0.00 [09:00:55]line НСП 1% : 1.77 [09:00:55]line НДС 12% : 21.24 [09:00:55]line Наличными: 200.00 [09:00:55]line Безнал.: 0.00 [09:00:55]line Место: АЗС № 171 "Партнер Нефть" [09:00:55]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:00:55]line СНО: Общий режим [09:00:55]line Чек 48 26.10.2024 09:00 [09:00:55]line Смена: 543 ФФД: 1.0 [09:00:55]line ЗНМ: 0300000109 [09:00:55]line РНМ: 0000000000091777 [09:00:55]line Версия ККМ: 001 [09:00:55]line ФМ: 0000000000871756 [09:00:55]line ФД: 201286 [09:00:55]line ФПД: 102809380603860 [09:00:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090057&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201286&fm=102809380603860&tin=02508201610067®Number=0000000000091777&sum=20000 [09:00:56]OFD Sender: Processing packet 201286 [packets to send 112, broken 111] [09:00:56]ProducePacketName [09:00:56]name=ofd_packets/00201286 [09:00:56]OFD Sender: To server: pG, [09:00:56]CommunicateWithHost lk.salyk.kg:30040 [09:00:56]ConnectInit lk.salyk.kg [09:00:56]written 0, free lines is 4095 [09:00:56]Connected sock=10 [09:00:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 BD 6A 07 01 DE 57 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 32 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 30 00 00 00 F4 03 04 00 C9 AF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 46 12 03 00 35 04 06 00 5D 81 2C 9C 47 D4 14 94 84 FD 0C 24 20 71 [09:00:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 FE 6D 47 00 77 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 38 37 31 37 35 36 10 04 04 00 46 12 03 00 F4 03 04 00 73 5B 1C 67 B6 04 01 00 00 1F 9B 32 73 8E F5 AC AF [09:00:56]CommunicateWithHost err = 0 [09:00:56]CheckOFDResponse [09:00:56]1017 (14) - 77093643461234 [09:00:56]1041 (16) - 0000000000871756 [09:00:56]1040 (4) - 201286 [09:00:56]1012 (4) - 26.10.2024 03:01 [09:00:56]1206 (1) - 0 [09:00:56]OFD Sender: Remove packet 201286 [09:00:56]ProducePacketName [09:00:56]name=ofd_packets/00201286 [09:00:56]NVStorageDeleteData [09:00:56]Write to MH i2c: 01 00 00 7F 19 98 [09:00:56]Write i2c OK [09:00:56]MH_I2C_Read... [09:00:56]Read from MH i2c: 01 [09:00:56]MH_I2C_Read... [09:00:56]Read from MH i2c: 01 07 00 [09:00:56]MH_I2C_Read... [09:00:56]Read from MH i2c: 01 07 00 7F 19 00 00 00 00 00 A2 0C 4D [09:00:56]RasterBufferAndPrint [09:00:56]line [09:00:56]line [09:00:56]line [09:00:56]line [09:00:56]line [09:00:56]written 0, free lines is 3240 [09:00:56]MH_Cut [09:00:56]Write to MH i2c: D1 01 00 86 19 01 71 [09:00:56]Write i2c OK [09:00:56]MH_I2C_Read... [09:00:56]Read from MH i2c: D1 [09:00:56]MH_I2C_Read... [09:00:56]Read from MH i2c: D1 01 00 [09:00:56]MH_I2C_Read... [09:00:56]Read from MH i2c: D1 01 00 86 19 00 70 [09:00:56]Write to MH i2c: 01 00 00 87 19 A0 [09:00:56]Write i2c OK [09:00:56]MH_I2C_Read... [09:00:57]OFD Sender: No OFD packet to send [09:00:57]*** Cut start [09:00:57]*** Purtial cut [09:00:57]*** Stage 1: CUTSNS_PIN = 1 [09:00:57]Read from MH i2c: 01 [09:00:57]MH_I2C_Read... [09:00:57]*** Stop cut motor [09:00:57]*** Cut end [09:00:57]Read from MH i2c: 01 07 00 [09:00:57]MH_I2C_Read... [09:00:57]Read from MH i2c: 01 07 00 87 19 00 00 00 00 00 FF 0F B5 [09:00:57]process_action close_receipt done [09:00:57]requested_data is exist [09:00:57]produce_requested_data [09:00:57]requested_item fm.sn is exist - process it [09:00:57]wFMCommunicate request_size=4 [09:00:57]MH_SAM_APDU [09:00:57]CAPDU: 80 11 00 00 [09:00:57]Write to MH i2c: E2 08 00 88 19 80 11 00 00 00 00 00 00 1B [09:00:57]Write i2c OK [09:00:57]MH_I2C_Read... [09:00:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:57]Read from MH i2c: E2 [09:00:57]MH_I2C_Read... [09:00:57]Read from MH i2c: E2 17 00 [09:00:57]MH_I2C_Read... [09:00:57]Read from MH i2c: E2 17 00 88 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 70 [09:00:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:00:57]wFMCommunicate OK [09:00:57]requested_item fd.num is exist - process it [09:00:57]SAM_PROTO_GetFieldsCounters [09:00:57]wFMCommunicate request_size=4 [09:00:57]MH_SAM_APDU [09:00:57]CAPDU: 80 13 00 00 [09:00:57]Write to MH i2c: E2 08 00 89 19 80 13 00 00 00 00 00 00 1E [09:00:57]Write i2c OK [09:00:57]MH_I2C_Read... [09:00:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:00:57]Read from MH i2c: E2 [09:00:57]MH_I2C_Read... [09:00:57]Read from MH i2c: E2 62 00 [09:00:57]MH_I2C_Read... [09:00:57]Read from MH i2c: E2 62 00 89 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 46 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [09:00:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 46 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:00:58]wFMCommunicate OK [09:00:58]SAM_PROTO_GetFieldsCounters done [09:00:58]requested_item shift.num is exist - process it [09:00:58]requested_item shift.opened is exist - process it [09:00:58]req_shift_opened [09:00:58]FM_GetShiftState [09:00:58]SAM_PROTO_GetShiftState [09:00:58]wFMCommunicate request_size=4 [09:00:58]MH_SAM_APDU [09:00:58]CAPDU: 80 13 01 00 [09:00:58]Write to MH i2c: E2 08 00 8A 19 80 13 01 00 00 00 00 00 20 [09:00:58]Write i2c OK [09:00:58]MH_I2C_Read... [09:00:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:58]Read from MH i2c: E2 [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: E2 0E 00 [09:00:58]MH_I2C_Read... [09:00:58]Read from MH i2c: E2 0E 00 8A 19 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 2F [09:00:58]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:00:58]wFMCommunicate OK [09:00:58]SAM_PROTO_GetShiftState done [09:00:58]FM_GetShiftState done [09:00:58]req_shift_opened done [09:00:58]requested_item shift.open_date is exist - process it [09:00:58]req_shift_open_date [09:00:58]req_shift_open_date done [09:00:58]produce_requested_data done [09:00:58]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201286,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:00:58]process_action_free close_receipt [09:00:58]json_value_free [09:00:58]json_value_free done [09:00:58]process_json_proto returns [09:00:58]Send response to host [09:00:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201286,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:00:58]free response buf [09:00:58]execute_script done [09:00:58]execute_script returns [09:00:58]free content buf [09:00:58]Sock 9.Close socket [09:00:58]Sock 9.Thread stoped [09:01:02]OFD Sender: No OFD packet to send [09:01:07]OFD Sender: No OFD packet to send [09:01:12]OFD Sender: No OFD packet to send [09:01:17]OFD Sender: No OFD packet to send [09:01:22]OFD Sender: No OFD packet to send [09:01:27]OFD Sender: No OFD packet to send [09:01:32]OFD Sender: No OFD packet to send [09:01:37]OFD Sender: No OFD packet to send [09:01:42]OFD Sender: No OFD packet to send [09:01:47]OFD Sender: No OFD packet to send [09:01:52]OFD Sender: No OFD packet to send [09:01:57]OFD Sender: No OFD packet to send [09:02:02]OFD Sender: No OFD packet to send [09:02:07]OFD Sender: No OFD packet to send [09:02:12]OFD Sender: No OFD packet to send [09:02:13]accept exits with 7 [09:02:13]New connection [09:02:13]New thread 3067559268 created [09:02:13]Thread 3067415908 joined [09:02:13]Waiting for new connection... [09:02:13] Sock 7.Parse request [09:02:13]Sock 7.Check first char [09:02:13]Sock 7.First char is OK [09:02:13]request: POST /json_proto HTTP/1.0 [09:02:13]Method: POST [09:02:13]URL: /json_proto [09:02:13]Method is POST - this is cgi request [09:02:13]url: /json_proto [09:02:13]query_string will be loaded in cgi processing [09:02:13]execute_cgi json_proto POST (null) [09:02:13]execute_cgi path=json_proto method=POST [09:02:13]POST find Content-Length [09:02:13]Host: 172.17.63.195:8080 [09:02:13]Content-Length: 677 [09:02:13]Content-Type: application/json [09:02:13] [09:02:13]POST finish read [09:02:13]Found Content-Length = 677 [09:02:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:13]execute_script... [09:02: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)449034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:13]POST & json_proto [09:02:13]process_json_proto [09:02:13]json parsed OK: [09:02:13]protocol is kg_v1.0 [09:02:13]action value=close_receipt [09:02:13]process_action close_receipt [09:02:13]cmd_close_receipt [09:02:13]MH_GetDate [09:02:13]Write to MH i2c: F0 00 00 8B 19 93 [09:02:13]Write i2c OK [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: F0 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: F0 09 00 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: F0 09 00 8B 19 00 19 B0 1C 67 68 46 19 67 16 [09:02:13]GetLastDocTimeStamp 1729933257 [09:02:13]current date 1729933337 [09:02:13]FM_GetShiftState [09:02:13]SAM_PROTO_GetShiftState [09:02:13]wFMCommunicate request_size=4 [09:02:13]MH_SAM_APDU [09:02:13]CAPDU: 80 13 01 00 [09:02:13]Write to MH i2c: E2 08 00 8C 19 80 13 01 00 00 00 00 00 22 [09:02:13]Write i2c OK [09:02:13]MH_I2C_Read... [09:02:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:13]Read from MH i2c: E2 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 0E 00 [09:02:13]MH_I2C_Read... [09:02:13]Read from MH i2c: E2 0E 00 8C 19 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 31 [09:02:13]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:02:13]wFMCommunicate OK [09:02:13]SAM_PROTO_GetShiftState done [09:02:13]FM_GetShiftState done [09:02:13]opened in 1729900879 [09:02:13]opened+sec_in_day 1729987279 [09:02:13]quantity*price = 30038 [09:02:13]sum+1 = 30039 [09:02:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 49 26.10.2024 09:02 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201287 ФПД: 265429474748425 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090217&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201287&fm=265429474748425&tin=02508201610067®Number=0000000000091777&sum=30000 [09:02:15]StoreToDocumentArchive [09:02:15]shift 543 fd 201287 [09:02:15]save to /storage/0543/doc_00201287 [09:02:15]save last doc name /storage/0543/doc_00201287 to /storage/kkm_last_doc_name [09:02:15]save OK [09:02:15]Clear old archive folders... [09:02:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:02:15]tlvbuf is B6F3C9D0 [09:02:15]SAM_PROTO_ClearQueue [09:02:15]wFMCommunicate request_size=4 [09:02:15]MH_SAM_APDU [09:02:15]CAPDU: 80 09 00 00 [09:02:15]Write to MH i2c: E2 08 00 99 19 80 09 00 00 00 00 00 00 24 [09:02:15]Write i2c OK [09:02:15]MH_I2C_Read... [09:02:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:15]Read from MH i2c: E2 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 03 00 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 03 00 99 19 00 90 00 26 [09:02:15]RAPDU: 90 00 [09:02:15]wFMCommunicate OK [09:02:15]SAM_PROTO_ClearQueue done [09:02:15]KKMCreateOFDPacket [09:02:15]OFDProtocolAddRootSTLVToBuf [09:02:15]FM_MakeSignedData [09:02:15]FM_MakeSignedData [09:02:15]SAM_PROTO_SignData [09:02:15]wFMCommunicate request_size=4 [09:02:15]MH_SAM_APDU [09:02:15]CAPDU: 80 0D 01 02 [09:02:15]Write to MH i2c: E2 08 00 9A 19 80 0D 01 02 00 00 00 00 2C [09:02:15]Write i2c OK [09:02:15]MH_I2C_Read... [09:02:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:15]Read from MH i2c: E2 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 03 00 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 03 00 9A 19 00 90 00 27 [09:02:15]RAPDU: 90 00 [09:02:15]wFMCommunicate OK [09:02:15]wFMCommunicate request_size=255 [09:02:15]MH_SAM_APDU [09:02: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 19 B0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 47 12 03 00 35 04 06 00 F1 [09:02:15]Write to MH i2c: E2 02 01 9B 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 19 B0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 47 12 03 00 35 04 06 00 F1 00 00 9F [09:02:15]Write i2c OK [09:02:15]MH_I2C_Read... [09:02:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:15]Read from MH i2c: E2 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 03 00 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 03 00 9B 19 00 90 00 28 [09:02:15]RAPDU: 90 00 [09:02:15]wFMCommunicate OK [09:02:15]wFMCommunicate request_size=10 [09:02:15]MH_SAM_APDU [09:02:15]CAPDU: 80 0D 02 02 05 68 1D 8E 28 09 [09:02:15]Write to MH i2c: E2 0D 00 9C 19 80 0D 02 02 05 00 68 1D 8E 28 09 00 00 7D [09:02:15]Write i2c OK [09:02:15]MH_I2C_Read... [09:02:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:15]Read from MH i2c: E2 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 03 00 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 03 00 9C 19 00 90 00 29 [09:02:15]RAPDU: 90 00 [09:02:15]wFMCommunicate OK [09:02:15]wFMCommunicate request_size=4 [09:02:15]MH_SAM_APDU [09:02:15]CAPDU: 80 0D 03 02 [09:02:15]Write to MH i2c: E2 08 00 9D 19 80 0D 03 02 00 00 00 00 31 [09:02:15]Write i2c OK [09:02:15]MH_I2C_Read... [09:02:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:15]Read from MH i2c: E2 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 0B 00 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 0B 00 9D 19 00 EE D6 1F 26 9F 89 7B B9 90 00 97 [09:02:15]RAPDU: EE D6 1F 26 9F 89 7B B9 90 00 [09:02:15]wFMCommunicate OK [09:02:15]SAM_PROTO_SignData done [09:02:15]FM_MakeSignedData done [09:02:15]CreateOFDProtocolMessage [09:02:15]wFMCommunicate request_size=4 [09:02:15]MH_SAM_APDU [09:02:15]CAPDU: 80 11 00 00 [09:02:15]Write to MH i2c: E2 08 00 9E 19 80 11 00 00 00 00 00 00 31 [09:02:15]Write i2c OK [09:02:15]MH_I2C_Read... [09:02:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:15]Read from MH i2c: E2 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 17 00 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: E2 17 00 9E 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 86 [09:02:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:02:15]wFMCommunicate OK [09:02:15]CreateOFDProtocolMessage done [09:02:15]OFDSenderStorePacket 201287 [09:02:15]StoreOFDPacket docnum=201287 [09:02:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F2 C4 07 01 31 92 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 19 B0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 47 12 03 00 35 04 06 00 F1 68 1D 8E 28 09 EE D6 1F 26 9F 89 7B B9 [09:02:15]CheckFolder [09:02:15]dirname=/storage/ofd_packets [09:02:15]CheckFolder done [09:02:15]ProducePacketName [09:02:15]name=ofd_packets/00201287 [09:02:15]NVStorageSaveData ofd_packets/00201287 [09:02:15]File name is /storage/ofd_packets/00201287 [09:02:15]Write 301 bytes [09:02:15]NVStorageSaveData done [09:02:15]OFDSenderStorePacket done [09:02:15]KKMCreateOFDPacket done [09:02:15]NVStorageSaveData kkm_last_timestamp [09:02:15]File name is /storage/kkm_last_timestamp [09:02:15]Write 4 bytes [09:02:15]NVStorageSaveData done [09:02:15]ExternCall_PrintAddStr [09:02:15]wPrintStart [09:02:15]Write to MH i2c: 01 00 00 9F 19 B8 [09:02:15]Write i2c OK [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: 01 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: 01 07 00 [09:02:15]MH_I2C_Read... [09:02:15]Read from MH i2c: 01 07 00 9F 19 00 00 00 00 00 FF 0F CD [09:02:15]RasterBufferAndPrint [09:02:15]line Счет N : (1)449034 [09:02:15]line ИНН: 02508201610067 [09:02:15]line Контрольно-Кассовый Чек [09:02:15]line ПРОДАЖА [09:02:15]line ТРК (МРК, ГНК) : 41 [09:02:15]line Товар: 2710124130 [09:02:15]line Аи-92-К-2 [09:02:15]line 4.490 * 66.90 [09:02:15]line = 300.38 [09:02:15]line НДС 12% НСП 1% [09:02:15]line > о реализуемом товаре [09:02:15]line ОКРУГЛЕНИЕ: -0.38 [09:02:15]line ИТОГО: 300.00 [09:02:15]line Внесено: 300.00 [09:02:15]line СДАЧА: 0.00 [09:02:15]line НСП 1% : 2.66 [09:02:15]line НДС 12% : 31.90 [09:02:15]line Наличными: 300.00 [09:02:15]line Безнал.: 0.00 [09:02:15]line Место: АЗС № 171 "Партнер Нефть" [09:02:15]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:02:15]line СНО: Общий режим [09:02:15]line Чек 49 26.10.2024 09:02 [09:02:15]line Смена: 543 ФФД: 1.0 [09:02:15]line ЗНМ: 0300000109 [09:02:15]line РНМ: 0000000000091777 [09:02:15]line Версия ККМ: 001 [09:02:15]line ФМ: 0000000000871756 [09:02:15]line ФД: 201287 [09:02:15]line ФПД: 265429474748425 [09:02:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090217&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201287&fm=265429474748425&tin=02508201610067®Number=0000000000091777&sum=30000 [09:02:16]OFD Sender: Processing packet 201287 [packets to send 112, broken 111] [09:02:16]ProducePacketName [09:02:16]name=ofd_packets/00201287 [09:02:16]OFD Sender: To server: pG, [09:02:16]CommunicateWithHost lk.salyk.kg:30040 [09:02:16]ConnectInit lk.salyk.kg [09:02:16]written 0, free lines is 4095 [09:02:16]Connected sock=9 [09:02:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F2 C4 07 01 31 92 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 19 B0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 47 12 03 00 35 04 06 00 F1 68 1D 8E 28 09 EE D6 1F 26 9F 89 7B B9 [09:02:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 8D 39 47 00 07 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 47 12 03 00 F4 03 04 00 C3 5B 1C 67 B6 04 01 00 00 75 BB C4 CC A2 82 05 66 [09:02:16]CommunicateWithHost err = 0 [09:02:16]CheckOFDResponse [09:02:16]1017 (14) - 77093643461234 [09:02:16]1041 (16) - 0000000000871756 [09:02:16]1040 (4) - 201287 [09:02:16]1012 (4) - 26.10.2024 03:02 [09:02:16]1206 (1) - 0 [09:02:16]OFD Sender: Remove packet 201287 [09:02:16]ProducePacketName [09:02:16]name=ofd_packets/00201287 [09:02:16]NVStorageDeleteData [09:02:16]Write to MH i2c: 01 00 00 CA 19 E3 [09:02:16]Write i2c OK [09:02:16]MH_I2C_Read... [09:02:16]Read from MH i2c: 01 [09:02:16]MH_I2C_Read... [09:02:16]Read from MH i2c: 01 07 00 [09:02:16]MH_I2C_Read... [09:02:16]Read from MH i2c: 01 07 00 CA 19 00 00 00 00 00 B1 0C A7 [09:02:16]RasterBufferAndPrint [09:02:16]line [09:02:16]line [09:02:16]line [09:02:16]line [09:02:16]line [09:02:16]written 0, free lines is 3255 [09:02:16]MH_Cut [09:02:16]Write to MH i2c: D1 01 00 D1 19 01 BC [09:02:16]Write i2c OK [09:02:16]MH_I2C_Read... [09:02:16]Read from MH i2c: D1 [09:02:16]MH_I2C_Read... [09:02:16]Read from MH i2c: D1 01 00 [09:02:16]MH_I2C_Read... [09:02:16]Read from MH i2c: D1 01 00 D1 19 00 BB [09:02:16]Write to MH i2c: 01 00 00 D2 19 EB [09:02:16]Write i2c OK [09:02:16]MH_I2C_Read... [09:02:16]OFD Sender: No OFD packet to send [09:02:17]*** Cut start [09:02:17]*** Purtial cut [09:02:17]*** Stage 1: CUTSNS_PIN = 1 [09:02:17]Read from MH i2c: 01 [09:02:17]MH_I2C_Read... [09:02:17]*** Stop cut motor [09:02:17]*** Cut end [09:02:17]Read from MH i2c: 01 07 00 [09:02:17]MH_I2C_Read... [09:02:17]Read from MH i2c: 01 07 00 D2 19 00 00 00 00 00 FF 0F 00 [09:02:17]process_action close_receipt done [09:02:17]requested_data is exist [09:02:17]produce_requested_data [09:02:17]requested_item fm.sn is exist - process it [09:02:17]wFMCommunicate request_size=4 [09:02:17]MH_SAM_APDU [09:02:17]CAPDU: 80 11 00 00 [09:02:17]Write to MH i2c: E2 08 00 D3 19 80 11 00 00 00 00 00 00 66 [09:02:17]Write i2c OK [09:02:17]MH_I2C_Read... [09:02:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:17]Read from MH i2c: E2 [09:02:17]MH_I2C_Read... [09:02:17]Read from MH i2c: E2 17 00 [09:02:17]MH_I2C_Read... [09:02:17]Read from MH i2c: E2 17 00 D3 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BB [09:02:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:02:17]wFMCommunicate OK [09:02:17]requested_item fd.num is exist - process it [09:02:17]SAM_PROTO_GetFieldsCounters [09:02:17]wFMCommunicate request_size=4 [09:02:17]MH_SAM_APDU [09:02:17]CAPDU: 80 13 00 00 [09:02:17]Write to MH i2c: E2 08 00 D4 19 80 13 00 00 00 00 00 00 69 [09:02:17]Write i2c OK [09:02:17]MH_I2C_Read... [09:02:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:17]Read from MH i2c: E2 [09:02:17]MH_I2C_Read... [09:02:17]Read from MH i2c: E2 62 00 [09:02:17]MH_I2C_Read... [09:02:17]Read from MH i2c: E2 62 00 D4 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 47 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [09:02:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 47 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:02:17]wFMCommunicate OK [09:02:17]SAM_PROTO_GetFieldsCounters done [09:02:17]requested_item shift.num is exist - process it [09:02:17]requested_item shift.opened is exist - process it [09:02:17]req_shift_opened [09:02:17]FM_GetShiftState [09:02:17]SAM_PROTO_GetShiftState [09:02:17]wFMCommunicate request_size=4 [09:02:17]MH_SAM_APDU [09:02:17]CAPDU: 80 13 01 00 [09:02:17]Write to MH i2c: E2 08 00 D5 19 80 13 01 00 00 00 00 00 6B [09:02:17]Write i2c OK [09:02:17]MH_I2C_Read... [09:02:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:17]Read from MH i2c: E2 [09:02:17]MH_I2C_Read... [09:02:17]Read from MH i2c: E2 0E 00 [09:02:17]MH_I2C_Read... [09:02:17]Read from MH i2c: E2 0E 00 D5 19 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 7A [09:02:17]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:02:17]wFMCommunicate OK [09:02:17]SAM_PROTO_GetShiftState done [09:02:17]FM_GetShiftState done [09:02:17]req_shift_opened done [09:02:17]requested_item shift.open_date is exist - process it [09:02:17]req_shift_open_date [09:02:17]req_shift_open_date done [09:02:17]produce_requested_data done [09:02:17]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201287,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:02:17]process_action_free close_receipt [09:02:17]json_value_free [09:02:17]json_value_free done [09:02:17]process_json_proto returns [09:02:17]Send response to host [09:02:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201287,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:02:17]free response buf [09:02:17]execute_script done [09:02:17]execute_script returns [09:02:17]free content buf [09:02:17]Sock 7.Close socket [09:02:17]Sock 7.Thread stoped [09:02:21]OFD Sender: No OFD packet to send [09:02:26]OFD Sender: No OFD packet to send [09:02:31]OFD Sender: No OFD packet to send [09:02:36]OFD Sender: No OFD packet to send [09:02:41]OFD Sender: No OFD packet to send [09:02:46]OFD Sender: No OFD packet to send [09:02:51]OFD Sender: No OFD packet to send [09:02:56]OFD Sender: No OFD packet to send [09:03:01]OFD Sender: No OFD packet to send [09:03:06]OFD Sender: No OFD packet to send [09:03:10]accept exits with 10 [09:03:10]New connection [09:03:10]New thread 3067415908 created [09:03:10]Thread 3067559268 joined [09:03:10]Waiting for new connection... [09:03:10] Sock 10.Parse request [09:03:10]Sock 10.Check first char [09:03:10]Sock 10.First char is OK [09:03:10]request: POST /json_proto HTTP/1.0 [09:03:10]Method: POST [09:03:10]URL: /json_proto [09:03:10]Method is POST - this is cgi request [09:03:10]url: /json_proto [09:03:10]query_string will be loaded in cgi processing [09:03:10]execute_cgi json_proto POST (null) [09:03:10]execute_cgi path=json_proto method=POST [09:03:10]POST find Content-Length [09:03:10]Host: 172.17.63.195:8080 [09:03:10]Content-Length: 677 [09:03:10]Content-Type: application/json [09:03:10] [09:03:10]POST finish read [09:03:10]Found Content-Length = 677 [09:03:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:10]execute_script... [09:03:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:10]POST & json_proto [09:03:10]process_json_proto [09:03:10]json parsed OK: [09:03:10]protocol is kg_v1.0 [09:03:10]action value=close_receipt [09:03:10]process_action close_receipt [09:03:10]cmd_close_receipt [09:03:10]MH_GetDate [09:03:10]Write to MH i2c: F0 00 00 D6 19 DE [09:03:10]Write i2c OK [09:03:10]MH_I2C_Read... [09:03:10]Read from MH i2c: F0 [09:03:10]MH_I2C_Read... [09:03:10]Read from MH i2c: F0 09 00 [09:03:10]MH_I2C_Read... [09:03:10]Read from MH i2c: F0 09 00 D6 19 00 52 B0 1C 67 68 46 19 67 9A [09:03:10]GetLastDocTimeStamp 1729933337 [09:03:10]current date 1729933394 [09:03:10]FM_GetShiftState [09:03:10]SAM_PROTO_GetShiftState [09:03:10]wFMCommunicate request_size=4 [09:03:10]MH_SAM_APDU [09:03:10]CAPDU: 80 13 01 00 [09:03:10]Write to MH i2c: E2 08 00 D7 19 80 13 01 00 00 00 00 00 6D [09:03:10]Write i2c OK [09:03:10]MH_I2C_Read... [09:03:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:10]Read from MH i2c: E2 [09:03:10]MH_I2C_Read... [09:03:10]Read from MH i2c: E2 0E 00 [09:03:10]MH_I2C_Read... [09:03:10]Read from MH i2c: E2 0E 00 D7 19 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 7C [09:03:10]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:03:10]wFMCommunicate OK [09:03:10]SAM_PROTO_GetShiftState done [09:03:10]FM_GetShiftState done [09:03:10]opened in 1729900879 [09:03:10]opened+sec_in_day 1729987279 [09:03:10]quantity*price = 30038 [09:03:10]sum+1 = 30039 [09:03:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 50 26.10.2024 09:03 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201288 ФПД: 122662417281255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090314&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201288&fm=122662417281255&tin=02508201610067®Number=0000000000091777&sum=30000 [09:03:11]StoreToDocumentArchive [09:03:11]shift 543 fd 201288 [09:03:11]save to /storage/0543/doc_00201288 [09:03:11]save last doc name /storage/0543/doc_00201288 to /storage/kkm_last_doc_name [09:03:11]save OK [09:03:11]Clear old archive folders... [09:03:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:03:11]tlvbuf is 017402C0 [09:03:11]SAM_PROTO_ClearQueue [09:03:11]wFMCommunicate request_size=4 [09:03:11]MH_SAM_APDU [09:03:11]CAPDU: 80 09 00 00 [09:03:11]Write to MH i2c: E2 08 00 E4 19 80 09 00 00 00 00 00 00 6F [09:03:11]Write i2c OK [09:03:11]MH_I2C_Read... [09:03:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:11]Read from MH i2c: E2 [09:03:11]MH_I2C_Read... [09:03:11]Read from MH i2c: E2 03 00 [09:03:11]MH_I2C_Read... [09:03:11]Read from MH i2c: E2 03 00 E4 19 00 90 00 71 [09:03:11]RAPDU: 90 00 [09:03:11]wFMCommunicate OK [09:03:11]SAM_PROTO_ClearQueue done [09:03:11]KKMCreateOFDPacket [09:03:11]OFDProtocolAddRootSTLVToBuf [09:03:11]FM_MakeSignedData [09:03:11]FM_MakeSignedData [09:03:11]SAM_PROTO_SignData [09:03:11]wFMCommunicate request_size=4 [09:03:11]MH_SAM_APDU [09:03:11]CAPDU: 80 0D 01 02 [09:03:11]Write to MH i2c: E2 08 00 E5 19 80 0D 01 02 00 00 00 00 77 [09:03:11]Write i2c OK [09:03:11]MH_I2C_Read... [09:03:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:11]Read from MH i2c: E2 [09:03:11]MH_I2C_Read... [09:03:11]Read from MH i2c: E2 03 00 [09:03:11]MH_I2C_Read... [09:03:11]Read from MH i2c: E2 03 00 E5 19 00 90 00 72 [09:03:11]RAPDU: 90 00 [09:03:11]wFMCommunicate OK [09:03:11]wFMCommunicate request_size=255 [09:03:11]MH_SAM_APDU [09:03:11]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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 52 B0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 48 12 03 00 35 04 06 00 6F [09:03:11]Write to MH i2c: E2 02 01 E6 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 52 B0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 48 12 03 00 35 04 06 00 6F 00 00 A3 [09:03:11]Write i2c OK [09:03:11]MH_I2C_Read... [09:03:11]OFD Sender: No OFD packet to send [09:03:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:12]Read from MH i2c: E2 [09:03:12]MH_I2C_Read... [09:03:12]Read from MH i2c: E2 03 00 [09:03:12]MH_I2C_Read... [09:03:12]Read from MH i2c: E2 03 00 E6 19 00 90 00 73 [09:03:12]RAPDU: 90 00 [09:03:12]wFMCommunicate OK [09:03:12]wFMCommunicate request_size=10 [09:03:12]MH_SAM_APDU [09:03:12]CAPDU: 80 0D 02 02 05 8F 91 CF 30 E7 [09:03:12]Write to MH i2c: E2 0D 00 E7 19 80 0D 02 02 05 00 8F 91 CF 30 E7 00 00 8A [09:03:12]Write i2c OK [09:03:12]MH_I2C_Read... [09:03:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:12]Read from MH i2c: E2 [09:03:12]MH_I2C_Read... [09:03:12]Read from MH i2c: E2 03 00 [09:03:12]MH_I2C_Read... [09:03:12]Read from MH i2c: E2 03 00 E7 19 00 90 00 74 [09:03:12]RAPDU: 90 00 [09:03:12]wFMCommunicate OK [09:03:12]wFMCommunicate request_size=4 [09:03:12]MH_SAM_APDU [09:03:12]CAPDU: 80 0D 03 02 [09:03:12]Write to MH i2c: E2 08 00 E8 19 80 0D 03 02 00 00 00 00 7C [09:03:12]Write i2c OK [09:03:12]MH_I2C_Read... [09:03:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:12]Read from MH i2c: E2 [09:03:12]MH_I2C_Read... [09:03:12]Read from MH i2c: E2 0B 00 [09:03:12]MH_I2C_Read... [09:03:12]Read from MH i2c: E2 0B 00 E8 19 00 9C 59 8D C8 15 96 20 54 90 00 E6 [09:03:12]RAPDU: 9C 59 8D C8 15 96 20 54 90 00 [09:03:12]wFMCommunicate OK [09:03:12]SAM_PROTO_SignData done [09:03:12]FM_MakeSignedData done [09:03:12]CreateOFDProtocolMessage [09:03:12]wFMCommunicate request_size=4 [09:03:12]MH_SAM_APDU [09:03:12]CAPDU: 80 11 00 00 [09:03:12]Write to MH i2c: E2 08 00 E9 19 80 11 00 00 00 00 00 00 7C [09:03:12]Write i2c OK [09:03:12]MH_I2C_Read... [09:03:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:12]Read from MH i2c: E2 [09:03:12]MH_I2C_Read... [09:03:12]Read from MH i2c: E2 17 00 [09:03:12]MH_I2C_Read... [09:03:12]Read from MH i2c: E2 17 00 E9 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D1 [09:03:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:03:12]wFMCommunicate OK [09:03:12]CreateOFDProtocolMessage done [09:03:12]OFDSenderStorePacket 201288 [09:03:12]StoreOFDPacket docnum=201288 [09:03:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 5F AC 07 01 30 85 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 52 B0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 48 12 03 00 35 04 06 00 6F 8F 91 CF 30 E7 9C 59 8D C8 15 96 20 54 [09:03:12]CheckFolder [09:03:12]dirname=/storage/ofd_packets [09:03:12]CheckFolder done [09:03:12]ProducePacketName [09:03:12]name=ofd_packets/00201288 [09:03:12]NVStorageSaveData ofd_packets/00201288 [09:03:12]File name is /storage/ofd_packets/00201288 [09:03:12]Write 301 bytes [09:03:12]NVStorageSaveData done [09:03:12]OFDSenderStorePacket done [09:03:12]KKMCreateOFDPacket done [09:03:12]NVStorageSaveData kkm_last_timestamp [09:03:12]File name is /storage/kkm_last_timestamp [09:03:12]Write 4 bytes [09:03:12]NVStorageSaveData done [09:03:12]ExternCall_PrintAddStr [09:03:12]wPrintStart [09:03:12]Write to MH i2c: 01 00 00 EA 19 03 [09:03:12]Write i2c OK [09:03:12]MH_I2C_Read... [09:03:12]Read from MH i2c: 01 [09:03:12]MH_I2C_Read... [09:03:12]Read from MH i2c: 01 07 00 [09:03:12]MH_I2C_Read... [09:03:12]Read from MH i2c: 01 07 00 EA 19 00 00 00 00 00 FF 0F 18 [09:03:12]RasterBufferAndPrint [09:03:12]line Счет N : (1)449035 [09:03:12]line ИНН: 02508201610067 [09:03:12]line Контрольно-Кассовый Чек [09:03:12]line ПРОДАЖА [09:03:12]line ТРК (МРК, ГНК) : 31 [09:03:12]line Товар: 2710124130 [09:03:12]line Аи-92-К-2 [09:03:12]line 4.490 * 66.90 [09:03:12]line = 300.38 [09:03:12]line НДС 12% НСП 1% [09:03:12]line > о реализуемом товаре [09:03:12]line ОКРУГЛЕНИЕ: -0.38 [09:03:12]line ИТОГО: 300.00 [09:03:12]line Внесено: 300.00 [09:03:12]line СДАЧА: 0.00 [09:03:12]line НСП 1% : 2.66 [09:03:12]line НДС 12% : 31.90 [09:03:12]line Наличными: 300.00 [09:03:12]line Безнал.: 0.00 [09:03:12]line Место: АЗС № 171 "Партнер Нефть" [09:03:12]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:03:12]line СНО: Общий режим [09:03:12]line Чек 50 26.10.2024 09:03 [09:03:12]line Смена: 543 ФФД: 1.0 [09:03:12]line ЗНМ: 0300000109 [09:03:12]line РНМ: 0000000000091777 [09:03:12]line Версия ККМ: 001 [09:03:12]line ФМ: 0000000000871756 [09:03:12]line ФД: 201288 [09:03:12]line ФПД: 122662417281255 [09:03:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090314&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201288&fm=122662417281255&tin=02508201610067®Number=0000000000091777&sum=30000 [09:03:12]OFD Sender: Processing packet 201288 [packets to send 112, broken 111] [09:03:12]ProducePacketName [09:03:12]name=ofd_packets/00201288 [09:03:12]OFD Sender: To server: pG, [09:03:12]CommunicateWithHost lk.salyk.kg:30040 [09:03:12]ConnectInit lk.salyk.kg [09:03:12]written 0, free lines is 4095 [09:03:12]Connected sock=9 [09:03:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 5F AC 07 01 30 85 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 52 B0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 48 12 03 00 35 04 06 00 6F 8F 91 CF 30 E7 9C 59 8D C8 15 96 20 54 [09:03:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 0C 21 47 00 3D AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 48 12 03 00 F4 03 04 00 FB 5B 1C 67 B6 04 01 00 00 6C 4F 3B EA 5C B3 E9 71 [09:03:13]CommunicateWithHost err = 0 [09:03:13]CheckOFDResponse [09:03:13]1017 (14) - 77093643461234 [09:03:13]1041 (16) - 0000000000871756 [09:03:13]1040 (4) - 201288 [09:03:13]1012 (4) - 26.10.2024 03:03 [09:03:13]1206 (1) - 0 [09:03:13]OFD Sender: Remove packet 201288 [09:03:13]ProducePacketName [09:03:13]name=ofd_packets/00201288 [09:03:13]NVStorageDeleteData [09:03:13]Write to MH i2c: 01 00 00 15 1A 2F [09:03:13]Write i2c OK [09:03:13]MH_I2C_Read... [09:03:13]Read from MH i2c: 01 [09:03:13]MH_I2C_Read... [09:03:13]Read from MH i2c: 01 07 00 [09:03:13]MH_I2C_Read... [09:03:13]Read from MH i2c: 01 07 00 15 1A 00 00 00 00 00 A3 0C E5 [09:03:13]RasterBufferAndPrint [09:03:13]line [09:03:13]line [09:03:13]line [09:03:13]line [09:03:13]line [09:03:13]written 0, free lines is 3241 [09:03:13]MH_Cut [09:03:13]Write to MH i2c: D1 01 00 1C 1A 01 08 [09:03:13]Write i2c OK [09:03:13]MH_I2C_Read... [09:03:13]Read from MH i2c: D1 [09:03:13]MH_I2C_Read... [09:03:13]Read from MH i2c: D1 01 00 [09:03:13]MH_I2C_Read... [09:03:13]Read from MH i2c: D1 01 00 1C 1A 00 07 [09:03:13]Write to MH i2c: 01 00 00 1D 1A 37 [09:03:13]Write i2c OK [09:03:13]MH_I2C_Read... [09:03:13]OFD Sender: No OFD packet to send [09:03:14]*** Cut start [09:03:14]*** Purtial cut [09:03:14]*** Stage 1: CUTSNS_PIN = 1 [09:03:14]Read from MH i2c: 01 [09:03:14]MH_I2C_Read... [09:03:14]*** Stop cut motor [09:03:14]*** Cut end [09:03:14]Read from MH i2c: 01 07 00 [09:03:14]MH_I2C_Read... [09:03:14]Read from MH i2c: 01 07 00 1D 1A 00 00 00 00 00 FF 0F 4C [09:03:14]process_action close_receipt done [09:03:14]requested_data is exist [09:03:14]produce_requested_data [09:03:14]requested_item fm.sn is exist - process it [09:03:14]wFMCommunicate request_size=4 [09:03:14]MH_SAM_APDU [09:03:14]CAPDU: 80 11 00 00 [09:03:14]Write to MH i2c: E2 08 00 1E 1A 80 11 00 00 00 00 00 00 B2 [09:03:14]Write i2c OK [09:03:14]MH_I2C_Read... [09:03:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:14]Read from MH i2c: E2 [09:03:14]MH_I2C_Read... [09:03:14]Read from MH i2c: E2 17 00 [09:03:14]MH_I2C_Read... [09:03:14]Read from MH i2c: E2 17 00 1E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 07 [09:03:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:03:14]wFMCommunicate OK [09:03:14]requested_item fd.num is exist - process it [09:03:14]SAM_PROTO_GetFieldsCounters [09:03:14]wFMCommunicate request_size=4 [09:03:14]MH_SAM_APDU [09:03:14]CAPDU: 80 13 00 00 [09:03:14]Write to MH i2c: E2 08 00 1F 1A 80 13 00 00 00 00 00 00 B5 [09:03:14]Write i2c OK [09:03:14]MH_I2C_Read... [09:03:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:14]Read from MH i2c: E2 [09:03:14]MH_I2C_Read... [09:03:14]Read from MH i2c: E2 62 00 [09:03:14]MH_I2C_Read... [09:03:14]Read from MH i2c: E2 62 00 1F 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 48 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [09:03:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 48 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:03:14]wFMCommunicate OK [09:03:14]SAM_PROTO_GetFieldsCounters done [09:03:14]requested_item shift.num is exist - process it [09:03:14]requested_item shift.opened is exist - process it [09:03:14]req_shift_opened [09:03:14]FM_GetShiftState [09:03:14]SAM_PROTO_GetShiftState [09:03:14]wFMCommunicate request_size=4 [09:03:14]MH_SAM_APDU [09:03:14]CAPDU: 80 13 01 00 [09:03:14]Write to MH i2c: E2 08 00 20 1A 80 13 01 00 00 00 00 00 B7 [09:03:14]Write i2c OK [09:03:14]MH_I2C_Read... [09:03:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:14]Read from MH i2c: E2 [09:03:14]MH_I2C_Read... [09:03:14]Read from MH i2c: E2 0E 00 [09:03:14]MH_I2C_Read... [09:03:14]Read from MH i2c: E2 0E 00 20 1A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C6 [09:03:14]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:03:14]wFMCommunicate OK [09:03:14]SAM_PROTO_GetShiftState done [09:03:14]FM_GetShiftState done [09:03:14]req_shift_opened done [09:03:14]requested_item shift.open_date is exist - process it [09:03:14]req_shift_open_date [09:03:14]req_shift_open_date done [09:03:14]produce_requested_data done [09:03:14]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201288,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:03:14]process_action_free close_receipt [09:03:14]json_value_free [09:03:14]json_value_free done [09:03:14]process_json_proto returns [09:03:14]Send response to host [09:03:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201288,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:03:14]free response buf [09:03:14]execute_script done [09:03:14]execute_script returns [09:03:14]free content buf [09:03:14]Sock 10.Close socket [09:03:14]Sock 10.Thread stoped [09:03:18]OFD Sender: No OFD packet to send [09:03:23]OFD Sender: No OFD packet to send [09:03:28]OFD Sender: No OFD packet to send [09:03:33]OFD Sender: No OFD packet to send [09:03:38]OFD Sender: No OFD packet to send [09:03:43]OFD Sender: No OFD packet to send [09:03:48]OFD Sender: No OFD packet to send [09:03:53]OFD Sender: No OFD packet to send [09:03:58]OFD Sender: No OFD packet to send [09:04:03]OFD Sender: No OFD packet to send [09:04:08]OFD Sender: No OFD packet to send [09:04:13]OFD Sender: No OFD packet to send [09:04:18]OFD Sender: No OFD packet to send [09:04:23]OFD Sender: No OFD packet to send [09:04:28]OFD Sender: No OFD packet to send [09:04:33]OFD Sender: No OFD packet to send [09:04:38]accept exits with 7 [09:04:38]New connection [09:04:38]New thread 3067559268 created [09:04:38]Thread 3067415908 joined [09:04:38]Waiting for new connection... [09:04:38] Sock 7.Parse request [09:04:38]Sock 7.Check first char [09:04:38]Sock 7.First char is OK [09:04:38]request: POST /json_proto HTTP/1.0 [09:04:38]Method: POST [09:04:38]URL: /json_proto [09:04:38]Method is POST - this is cgi request [09:04:38]url: /json_proto [09:04:38]query_string will be loaded in cgi processing [09:04:38]execute_cgi json_proto POST (null) [09:04:38]execute_cgi path=json_proto method=POST [09:04:38]POST find Content-Length [09:04:38]Host: 172.17.63.195:8080 [09:04:38]Content-Length: 677 [09:04:38]Content-Type: application/json [09:04:38] [09:04:38]POST finish read [09:04:38]Found Content-Length = 677 [09:04:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [09:04:38]execute_script... [09:04: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)449037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [09:04:38]POST & json_proto [09:04:38]process_json_proto [09:04:38]json parsed OK: [09:04:38]protocol is kg_v1.0 [09:04:38]action value=close_receipt [09:04:38]process_action close_receipt [09:04:38]cmd_close_receipt [09:04:38]MH_GetDate [09:04:38]Write to MH i2c: F0 00 00 21 1A 2A [09:04:38]Write i2c OK [09:04:38]MH_I2C_Read... [09:04:38]Read from MH i2c: F0 [09:04:38]MH_I2C_Read... [09:04:38]Read from MH i2c: F0 09 00 [09:04:38]MH_I2C_Read... [09:04:38]Read from MH i2c: F0 09 00 21 1A 00 A9 B0 1C 67 68 46 19 67 3D [09:04:38]GetLastDocTimeStamp 1729933394 [09:04:38]current date 1729933481 [09:04:38]FM_GetShiftState [09:04:38]SAM_PROTO_GetShiftState [09:04:38]wFMCommunicate request_size=4 [09:04:38]MH_SAM_APDU [09:04:38]CAPDU: 80 13 01 00 [09:04:38]Write to MH i2c: E2 08 00 22 1A 80 13 01 00 00 00 00 00 B9 [09:04:38]Write i2c OK [09:04:38]MH_I2C_Read... [09:04:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:38]Read from MH i2c: E2 [09:04:38]MH_I2C_Read... [09:04:38]Read from MH i2c: E2 0E 00 [09:04:38]MH_I2C_Read... [09:04:38]Read from MH i2c: E2 0E 00 22 1A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C8 [09:04:38]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:04:38]wFMCommunicate OK [09:04:38]SAM_PROTO_GetShiftState done [09:04:38]FM_GetShiftState done [09:04:38]opened in 1729900879 [09:04:38]opened+sec_in_day 1729987279 [09:04:38]quantity*price = 35055 [09:04:38]sum+1 = 35057 [09:04:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 51 26.10.2024 09:04 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201289 ФПД: 273863395585076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090441&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201289&fm=273863395585076&tin=02508201610067®Number=0000000000091777&sum=35000 [09:04:39]StoreToDocumentArchive [09:04:39]shift 543 fd 201289 [09:04:39]save to /storage/0543/doc_00201289 [09:04:39]save last doc name /storage/0543/doc_00201289 to /storage/kkm_last_doc_name [09:04:39]save OK [09:04:39]Clear old archive folders... [09:04:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:04:39]tlvbuf is 0173FED0 [09:04:39]SAM_PROTO_ClearQueue [09:04:39]wFMCommunicate request_size=4 [09:04:39]MH_SAM_APDU [09:04:39]CAPDU: 80 09 00 00 [09:04:39]Write to MH i2c: E2 08 00 2F 1A 80 09 00 00 00 00 00 00 BB [09:04:39]Write i2c OK [09:04:39]MH_I2C_Read... [09:04:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:04:39]Read from MH i2c: E2 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: E2 03 00 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: E2 03 00 2F 1A 00 90 00 BD [09:04:39]RAPDU: 90 00 [09:04:39]wFMCommunicate OK [09:04:39]SAM_PROTO_ClearQueue done [09:04:39]KKMCreateOFDPacket [09:04:39]OFDProtocolAddRootSTLVToBuf [09:04:39]FM_MakeSignedData [09:04:39]FM_MakeSignedData [09:04:39]SAM_PROTO_SignData [09:04:39]wFMCommunicate request_size=4 [09:04:39]MH_SAM_APDU [09:04:39]CAPDU: 80 0D 01 02 [09:04:39]Write to MH i2c: E2 08 00 30 1A 80 0D 01 02 00 00 00 00 C3 [09:04:39]Write i2c OK [09:04:39]MH_I2C_Read... [09:04:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:04:39]Read from MH i2c: E2 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: E2 03 00 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: E2 03 00 30 1A 00 90 00 BE [09:04:39]RAPDU: 90 00 [09:04:39]wFMCommunicate OK [09:04:39]wFMCommunicate request_size=255 [09:04:39]MH_SAM_APDU [09:04:39]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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 33 00 00 00 F4 03 04 00 A9 B0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 49 12 03 00 35 04 06 00 F9 [09:04:39]Write to MH i2c: E2 02 01 31 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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 33 00 00 00 F4 03 04 00 A9 B0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 49 12 03 00 35 04 06 00 F9 00 00 E9 [09:04:39]Write i2c OK [09:04:39]MH_I2C_Read... [09:04:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:39]Read from MH i2c: E2 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: E2 03 00 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: E2 03 00 31 1A 00 90 00 BF [09:04:39]RAPDU: 90 00 [09:04:39]wFMCommunicate OK [09:04:39]wFMCommunicate request_size=10 [09:04:39]MH_SAM_APDU [09:04:39]CAPDU: 80 0D 02 02 05 13 CA 69 2C 34 [09:04:39]Write to MH i2c: E2 0D 00 32 1A 80 0D 02 02 05 00 13 CA 69 2C 34 00 00 76 [09:04:39]Write i2c OK [09:04:39]MH_I2C_Read... [09:04:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:39]Read from MH i2c: E2 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: E2 03 00 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: E2 03 00 32 1A 00 90 00 C0 [09:04:39]RAPDU: 90 00 [09:04:39]wFMCommunicate OK [09:04:39]wFMCommunicate request_size=4 [09:04:39]MH_SAM_APDU [09:04:39]CAPDU: 80 0D 03 02 [09:04:39]Write to MH i2c: E2 08 00 33 1A 80 0D 03 02 00 00 00 00 C8 [09:04:39]Write i2c OK [09:04:39]MH_I2C_Read... [09:04:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:04:39]Read from MH i2c: E2 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: E2 0B 00 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: E2 0B 00 33 1A 00 59 81 ED F3 75 D9 16 8D 90 00 74 [09:04:39]RAPDU: 59 81 ED F3 75 D9 16 8D 90 00 [09:04:39]wFMCommunicate OK [09:04:39]SAM_PROTO_SignData done [09:04:39]FM_MakeSignedData done [09:04:39]CreateOFDProtocolMessage [09:04:39]wFMCommunicate request_size=4 [09:04:39]MH_SAM_APDU [09:04:39]CAPDU: 80 11 00 00 [09:04:39]Write to MH i2c: E2 08 00 34 1A 80 11 00 00 00 00 00 00 C8 [09:04:39]Write i2c OK [09:04:39]MH_I2C_Read... [09:04:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:39]Read from MH i2c: E2 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: E2 17 00 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: E2 17 00 34 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1D [09:04:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:04:39]wFMCommunicate OK [09:04:39]CreateOFDProtocolMessage done [09:04:39]OFDSenderStorePacket 201289 [09:04:39]StoreOFDPacket docnum=201289 [09:04:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D3 07 07 01 54 5D 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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 33 00 00 00 F4 03 04 00 A9 B0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 49 12 03 00 35 04 06 00 F9 13 CA 69 2C 34 59 81 ED F3 75 D9 16 8D [09:04:39]CheckFolder [09:04:39]dirname=/storage/ofd_packets [09:04:39]CheckFolder done [09:04:39]ProducePacketName [09:04:39]name=ofd_packets/00201289 [09:04:39]NVStorageSaveData ofd_packets/00201289 [09:04:39]File name is /storage/ofd_packets/00201289 [09:04:39]Write 301 bytes [09:04:39]NVStorageSaveData done [09:04:39]OFDSenderStorePacket done [09:04:39]KKMCreateOFDPacket done [09:04:39]NVStorageSaveData kkm_last_timestamp [09:04:39]File name is /storage/kkm_last_timestamp [09:04:39]Write 4 bytes [09:04:39]NVStorageSaveData done [09:04:39]ExternCall_PrintAddStr [09:04:39]wPrintStart [09:04:39]Write to MH i2c: 01 00 00 35 1A 4F [09:04:39]Write i2c OK [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: 01 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: 01 07 00 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: 01 07 00 35 1A 00 00 00 00 00 FF 0F 64 [09:04:39]RasterBufferAndPrint [09:04:39]line Счет N : (1)449037 [09:04:39]line ИНН: 02508201610067 [09:04:39]line Контрольно-Кассовый Чек [09:04:39]line ПРОДАЖА [09:04:39]line ТРК (МРК, ГНК) : 41 [09:04:39]line Товар: 2710124130 [09:04:39]line Аи-92-К-2 [09:04:39]line 5.240 * 66.90 [09:04:39]line = 350.56 [09:04:39]line НДС 12% НСП 1% [09:04:39]line > о реализуемом товаре [09:04:39]line ОКРУГЛЕНИЕ: -0.56 [09:04:39]line ИТОГО: 350.00 [09:04:39]line Внесено: 350.00 [09:04:39]line СДАЧА: 0.00 [09:04:39]line НСП 1% : 3.10 [09:04:39]line НДС 12% : 37.23 [09:04:39]line Наличными: 350.00 [09:04:39]line Безнал.: 0.00 [09:04:39]line Место: АЗС № 171 "Партнер Нефть" [09:04:39]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:04:39]line СНО: Общий режим [09:04:39]line Чек 51 26.10.2024 09:04 [09:04:39]line Смена: 543 ФФД: 1.0 [09:04:39]line ЗНМ: 0300000109 [09:04:39]line РНМ: 0000000000091777 [09:04:39]line Версия ККМ: 001 [09:04:39]line ФМ: 0000000000871756 [09:04:39]line ФД: 201289 [09:04:39]line ФПД: 273863395585076 [09:04:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090441&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201289&fm=273863395585076&tin=02508201610067®Number=0000000000091777&sum=35000 [09:04:40]OFD Sender: Processing packet 201289 [packets to send 112, broken 111] [09:04:40]ProducePacketName [09:04:40]name=ofd_packets/00201289 [09:04:40]OFD Sender: To server: pG, [09:04:40]CommunicateWithHost lk.salyk.kg:30040 [09:04:40]ConnectInit lk.salyk.kg [09:04:40]written 0, free lines is 4095 [09:04:40]Connected sock=10 [09:04:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D3 07 07 01 54 5D 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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 33 00 00 00 F4 03 04 00 A9 B0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 49 12 03 00 35 04 06 00 F9 13 CA 69 2C 34 59 81 ED F3 75 D9 16 8D [09:04:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 90 F5 47 00 CC 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 38 37 31 37 35 36 10 04 04 00 49 12 03 00 F4 03 04 00 53 5C 1C 67 B6 04 01 00 00 B3 E1 6A 11 16 68 5D DD [09:04:40]CommunicateWithHost err = 0 [09:04:40]CheckOFDResponse [09:04:40]1017 (14) - 77093643461234 [09:04:40]1041 (16) - 0000000000871756 [09:04:40]1040 (4) - 201289 [09:04:40]1012 (4) - 26.10.2024 03:04 [09:04:40]1206 (1) - 0 [09:04:40]OFD Sender: Remove packet 201289 [09:04:40]ProducePacketName [09:04:40]name=ofd_packets/00201289 [09:04:40]NVStorageDeleteData [09:04:40]Write to MH i2c: 01 00 00 60 1A 7A [09:04:40]Write i2c OK [09:04:40]MH_I2C_Read... [09:04:40]Read from MH i2c: 01 [09:04:40]MH_I2C_Read... [09:04:40]Read from MH i2c: 01 07 00 [09:04:40]MH_I2C_Read... [09:04:40]Read from MH i2c: 01 07 00 60 1A 00 00 00 00 00 B0 0C 3D [09:04:40]RasterBufferAndPrint [09:04:40]line [09:04:40]line [09:04:40]line [09:04:40]line [09:04:40]line [09:04:40]written 0, free lines is 3257 [09:04:40]MH_Cut [09:04:40]Write to MH i2c: D1 01 00 67 1A 01 53 [09:04:40]Write i2c OK [09:04:40]MH_I2C_Read... [09:04:40]Read from MH i2c: D1 [09:04:40]MH_I2C_Read... [09:04:40]Read from MH i2c: D1 01 00 [09:04:40]MH_I2C_Read... [09:04:40]Read from MH i2c: D1 01 00 67 1A 00 52 [09:04:40]Write to MH i2c: 01 00 00 68 1A 82 [09:04:40]Write i2c OK [09:04:40]MH_I2C_Read... [09:04:41]OFD Sender: No OFD packet to send [09:04:41]*** Cut start [09:04:41]*** Purtial cut [09:04:41]*** CUTSNS_PIN = 0 [09:04:41]*** Stage 1: CUTSNS_PIN = 1 [09:04:43]Read from MH i2c: 01 [09:04:43]MH_I2C_Read... [09:04:43]*** Stop cut motor [09:04:43]*** Cut end [09:04:43]Read from MH i2c: 01 07 00 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: 01 07 00 68 1A 00 00 00 00 00 FF 0F 97 [09:04:43]process_action close_receipt done [09:04:43]requested_data is exist [09:04:43]produce_requested_data [09:04:43]requested_item fm.sn is exist - process it [09:04:43]wFMCommunicate request_size=4 [09:04:43]MH_SAM_APDU [09:04:43]CAPDU: 80 11 00 00 [09:04:43]Write to MH i2c: E2 08 00 69 1A 80 11 00 00 00 00 00 00 FD [09:04:43]Write i2c OK [09:04:43]MH_I2C_Read... [09:04:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:43]Read from MH i2c: E2 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 17 00 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 17 00 69 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 52 [09:04:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:04:43]wFMCommunicate OK [09:04:43]requested_item fd.num is exist - process it [09:04:43]SAM_PROTO_GetFieldsCounters [09:04:43]wFMCommunicate request_size=4 [09:04:43]MH_SAM_APDU [09:04:43]CAPDU: 80 13 00 00 [09:04:43]Write to MH i2c: E2 08 00 6A 1A 80 13 00 00 00 00 00 00 00 [09:04:43]Write i2c OK [09:04:43]MH_I2C_Read... [09:04:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:04:43]Read from MH i2c: E2 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 62 00 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 62 00 6A 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 49 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [09:04:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 49 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:04:43]wFMCommunicate OK [09:04:43]SAM_PROTO_GetFieldsCounters done [09:04:43]requested_item shift.num is exist - process it [09:04:43]requested_item shift.opened is exist - process it [09:04:43]req_shift_opened [09:04:43]FM_GetShiftState [09:04:43]SAM_PROTO_GetShiftState [09:04:43]wFMCommunicate request_size=4 [09:04:43]MH_SAM_APDU [09:04:43]CAPDU: 80 13 01 00 [09:04:43]Write to MH i2c: E2 08 00 6B 1A 80 13 01 00 00 00 00 00 02 [09:04:43]Write i2c OK [09:04:43]MH_I2C_Read... [09:04:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:43]Read from MH i2c: E2 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 0E 00 [09:04:43]MH_I2C_Read... [09:04:43]Read from MH i2c: E2 0E 00 6B 1A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 11 [09:04:43]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:04:43]wFMCommunicate OK [09:04:43]SAM_PROTO_GetShiftState done [09:04:43]FM_GetShiftState done [09:04:43]req_shift_opened done [09:04:43]requested_item shift.open_date is exist - process it [09:04:43]req_shift_open_date [09:04:43]req_shift_open_date done [09:04:43]produce_requested_data done [09:04:43]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201289,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:04:43]process_action_free close_receipt [09:04:43]json_value_free [09:04:43]json_value_free done [09:04:43]process_json_proto returns [09:04:43]Send response to host [09:04:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201289,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:04:43]free response buf [09:04:43]execute_script done [09:04:43]execute_script returns [09:04:43]free content buf [09:04:43]Sock 7.Close socket [09:04:43]Sock 7.Thread stoped [09:04:44]accept exits with 9 [09:04:44]New connection [09:04:44]New thread 3067415908 created [09:04:44]Thread 3067559268 joined [09:04:44]Waiting for new connection... [09:04:44] Sock 9.Parse request [09:04:44]Sock 9.Check first char [09:04:44]Sock 9.First char is OK [09:04:44]request: POST /json_proto HTTP/1.0 [09:04:44]Method: POST [09:04:44]URL: /json_proto [09:04:44]Method is POST - this is cgi request [09:04:44]url: /json_proto [09:04:44]query_string will be loaded in cgi processing [09:04:44]execute_cgi json_proto POST (null) [09:04:44]execute_cgi path=json_proto method=POST [09:04:44]POST find Content-Length [09:04:44]Host: 172.17.63.195:8080 [09:04:44]Content-Length: 677 [09:04:44]Content-Type: application/json [09:04:44] [09:04:44]POST finish read [09:04:44]Found Content-Length = 677 [09:04:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:04:44]execute_script... [09:04:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:04:44]POST & json_proto [09:04:44]process_json_proto [09:04:44]json parsed OK: [09:04:44]protocol is kg_v1.0 [09:04:44]action value=close_receipt [09:04:44]process_action close_receipt [09:04:44]cmd_close_receipt [09:04:44]MH_GetDate [09:04:44]Write to MH i2c: F0 00 00 6C 1A 75 [09:04:44]Write i2c OK [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: F0 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: F0 09 00 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: F0 09 00 6C 1A 00 AF B0 1C 67 68 46 19 67 8E [09:04:44]GetLastDocTimeStamp 1729933481 [09:04:44]current date 1729933487 [09:04:44]FM_GetShiftState [09:04:44]SAM_PROTO_GetShiftState [09:04:44]wFMCommunicate request_size=4 [09:04:44]MH_SAM_APDU [09:04:44]CAPDU: 80 13 01 00 [09:04:44]Write to MH i2c: E2 08 00 6D 1A 80 13 01 00 00 00 00 00 04 [09:04:44]Write i2c OK [09:04:44]MH_I2C_Read... [09:04:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:44]Read from MH i2c: E2 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: E2 0E 00 [09:04:44]MH_I2C_Read... [09:04:44]Read from MH i2c: E2 0E 00 6D 1A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 13 [09:04:44]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:04:44]wFMCommunicate OK [09:04:44]SAM_PROTO_GetShiftState done [09:04:44]FM_GetShiftState done [09:04:44]opened in 1729900879 [09:04:44]opened+sec_in_day 1729987279 [09:04:44]quantity*price = 50041 [09:04:44]sum+1 = 50042 [09:04:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 52 26.10.2024 09:04 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201290 ФПД: 232132839013661 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090447&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201290&fm=232132839013661&tin=02508201610067®Number=0000000000091777&sum=50000 [09:04:45]StoreToDocumentArchive [09:04:45]shift 543 fd 201290 [09:04:45]save to /storage/0543/doc_00201290 [09:04:45]save last doc name /storage/0543/doc_00201290 to /storage/kkm_last_doc_name [09:04:45]save OK [09:04:45]Clear old archive folders... [09:04:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:04:45]tlvbuf is 017B2E20 [09:04:45]SAM_PROTO_ClearQueue [09:04:45]wFMCommunicate request_size=4 [09:04:45]MH_SAM_APDU [09:04:45]CAPDU: 80 09 00 00 [09:04:45]Write to MH i2c: E2 08 00 7A 1A 80 09 00 00 00 00 00 00 06 [09:04:45]Write i2c OK [09:04:45]MH_I2C_Read... [09:04:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:04:45]Read from MH i2c: E2 [09:04:45]MH_I2C_Read... [09:04:45]Read from MH i2c: E2 03 00 [09:04:45]MH_I2C_Read... [09:04:45]Read from MH i2c: E2 03 00 7A 1A 00 90 00 08 [09:04:45]RAPDU: 90 00 [09:04:45]wFMCommunicate OK [09:04:45]SAM_PROTO_ClearQueue done [09:04:45]KKMCreateOFDPacket [09:04:45]OFDProtocolAddRootSTLVToBuf [09:04:45]FM_MakeSignedData [09:04:45]FM_MakeSignedData [09:04:45]SAM_PROTO_SignData [09:04:45]wFMCommunicate request_size=4 [09:04:45]MH_SAM_APDU [09:04:45]CAPDU: 80 0D 01 02 [09:04:45]Write to MH i2c: E2 08 00 7B 1A 80 0D 01 02 00 00 00 00 0E [09:04:45]Write i2c OK [09:04:45]MH_I2C_Read... [09:04:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:04:45]Read from MH i2c: E2 [09:04:45]MH_I2C_Read... [09:04:45]Read from MH i2c: E2 03 00 [09:04:45]MH_I2C_Read... [09:04:45]Read from MH i2c: E2 03 00 7B 1A 00 90 00 09 [09:04:45]RAPDU: 90 00 [09:04:45]wFMCommunicate OK [09:04:45]wFMCommunicate request_size=255 [09:04:45]MH_SAM_APDU [09:04: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 32 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 34 00 00 00 F4 03 04 00 AF B0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4A 12 03 00 35 04 06 00 D3 [09:04:45]Write to MH i2c: E2 02 01 7C 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 32 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 34 00 00 00 F4 03 04 00 AF B0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4A 12 03 00 35 04 06 00 D3 00 00 0B [09:04:45]Write i2c OK [09:04:45]MH_I2C_Read... [09:04:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:46]OFD Sender: No OFD packet to send [09:04:46]Read from MH i2c: E2 [09:04:46]MH_I2C_Read... [09:04:46]Read from MH i2c: E2 03 00 [09:04:46]MH_I2C_Read... [09:04:46]Read from MH i2c: E2 03 00 7C 1A 00 90 00 0A [09:04:46]RAPDU: 90 00 [09:04:46]wFMCommunicate OK [09:04:46]wFMCommunicate request_size=10 [09:04:46]MH_SAM_APDU [09:04:46]CAPDU: 80 0D 02 02 05 1F A3 68 FD 1D [09:04:46]Write to MH i2c: E2 0D 00 7D 1A 80 0D 02 02 05 00 1F A3 68 FD 1D 00 00 5F [09:04:46]Write i2c OK [09:04:46]MH_I2C_Read... [09:04:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:46]Read from MH i2c: E2 [09:04:46]MH_I2C_Read... [09:04:46]Read from MH i2c: E2 03 00 [09:04:46]MH_I2C_Read... [09:04:46]Read from MH i2c: E2 03 00 7D 1A 00 90 00 0B [09:04:46]RAPDU: 90 00 [09:04:46]wFMCommunicate OK [09:04:46]wFMCommunicate request_size=4 [09:04:46]MH_SAM_APDU [09:04:46]CAPDU: 80 0D 03 02 [09:04:46]Write to MH i2c: E2 08 00 7E 1A 80 0D 03 02 00 00 00 00 13 [09:04:46]Write i2c OK [09:04:46]MH_I2C_Read... [09:04:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:04:46]Read from MH i2c: E2 [09:04:46]MH_I2C_Read... [09:04:46]Read from MH i2c: E2 0B 00 [09:04:46]MH_I2C_Read... [09:04:46]Read from MH i2c: E2 0B 00 7E 1A 00 1F E7 13 EF B2 EF 4D EC 90 00 F6 [09:04:46]RAPDU: 1F E7 13 EF B2 EF 4D EC 90 00 [09:04:46]wFMCommunicate OK [09:04:46]SAM_PROTO_SignData done [09:04:46]FM_MakeSignedData done [09:04:46]CreateOFDProtocolMessage [09:04:46]wFMCommunicate request_size=4 [09:04:46]MH_SAM_APDU [09:04:46]CAPDU: 80 11 00 00 [09:04:46]Write to MH i2c: E2 08 00 7F 1A 80 11 00 00 00 00 00 00 13 [09:04:46]Write i2c OK [09:04:46]MH_I2C_Read... [09:04:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:46]Read from MH i2c: E2 [09:04:46]MH_I2C_Read... [09:04:46]Read from MH i2c: E2 17 00 [09:04:46]MH_I2C_Read... [09:04:46]Read from MH i2c: E2 17 00 7F 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 68 [09:04:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:04:46]wFMCommunicate OK [09:04:46]CreateOFDProtocolMessage done [09:04:46]OFDSenderStorePacket 201290 [09:04:46]StoreOFDPacket docnum=201290 [09:04:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 06 12 07 01 4B 1E 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 32 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 34 00 00 00 F4 03 04 00 AF B0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4A 12 03 00 35 04 06 00 D3 1F A3 68 FD 1D 1F E7 13 EF B2 EF 4D EC [09:04:46]CheckFolder [09:04:46]dirname=/storage/ofd_packets [09:04:46]CheckFolder done [09:04:46]ProducePacketName [09:04:46]name=ofd_packets/00201290 [09:04:46]NVStorageSaveData ofd_packets/00201290 [09:04:46]File name is /storage/ofd_packets/00201290 [09:04:46]Write 301 bytes [09:04:46]NVStorageSaveData done [09:04:46]OFDSenderStorePacket done [09:04:46]KKMCreateOFDPacket done [09:04:46]NVStorageSaveData kkm_last_timestamp [09:04:46]File name is /storage/kkm_last_timestamp [09:04:46]Write 4 bytes [09:04:46]NVStorageSaveData done [09:04:46]ExternCall_PrintAddStr [09:04:46]wPrintStart [09:04:46]Write to MH i2c: 01 00 00 80 1A 9A [09:04:46]Write i2c OK [09:04:46]MH_I2C_Read... [09:04:46]Read from MH i2c: 01 [09:04:46]MH_I2C_Read... [09:04:46]OFD Sender: Processing packet 201290 [packets to send 112, broken 111] [09:04:46]ProducePacketName [09:04:46]name=ofd_packets/00201290 [09:04:46]OFD Sender: To server: pG, [09:04:46]CommunicateWithHost lk.salyk.kg:30040 [09:04:46]ConnectInit lk.salyk.kg [09:04:46]Read from MH i2c: 01 07 00 [09:04:46]MH_I2C_Read... [09:04:46]Read from MH i2c: 01 07 00 80 1A 00 00 00 00 00 FF 0F AF [09:04:46]RasterBufferAndPrint [09:04:46]line Счет N : (1)449036 [09:04:46]line ИНН: 02508201610067 [09:04:46]line Контрольно-Кассовый Чек [09:04:46]line ПРОДАЖА [09:04:46]line ТРК (МРК, ГНК) : 52 [09:04:46]line Товар: 2710124130 [09:04:46]line Аи-92-К-2 [09:04:46]line 7.480 * 66.90 [09:04:46]line = 500.41 [09:04:46]line НДС 12% НСП 1% [09:04:46]line > о реализуемом товаре [09:04:46]line ОКРУГЛЕНИЕ: -0.41 [09:04:46]line ИТОГО: 500.00 [09:04:46]line Внесено: 500.00 [09:04:46]line СДАЧА: 0.00 [09:04:46]line НСП 1% : 4.43 [09:04:46]line НДС 12% : 53.14 [09:04:46]line Наличными: 500.00 [09:04:46]line Безнал.: 0.00 [09:04:46]line Место: АЗС № 171 "Партнер Нефть" [09:04:46]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:04:46]line СНО: Общий режим [09:04:46]line Чек 52 26.10.2024 09:04 [09:04:46]line Смена: 543 ФФД: 1.0 [09:04:46]line ЗНМ: 0300000109 [09:04:46]line РНМ: 0000000000091777 [09:04:46]line Версия ККМ: 001 [09:04:46]line ФМ: 0000000000871756 [09:04:46]line ФД: 201290 [09:04:46]line ФПД: 232132839013661 [09:04:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090447&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201290&fm=232132839013661&tin=02508201610067®Number=0000000000091777&sum=50000 [09:04:46]written 0, free lines is 4095 [09:04:46]Connected sock=10 [09:04:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 06 12 07 01 4B 1E 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 32 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 34 00 00 00 F4 03 04 00 AF B0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4A 12 03 00 35 04 06 00 D3 1F A3 68 FD 1D 1F E7 13 EF B2 EF 4D EC [09:04:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 FC D2 47 00 76 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4A 12 03 00 F4 03 04 00 59 5C 1C 67 B6 04 01 00 00 FB 87 F1 21 CA 68 60 AD [09:04:47]CommunicateWithHost err = 0 [09:04:47]CheckOFDResponse [09:04:47]1017 (14) - 77093643461234 [09:04:47]1041 (16) - 0000000000871756 [09:04:47]1040 (4) - 201290 [09:04:47]1012 (4) - 26.10.2024 03:04 [09:04:47]1206 (1) - 0 [09:04:47]OFD Sender: Remove packet 201290 [09:04:47]ProducePacketName [09:04:47]name=ofd_packets/00201290 [09:04:47]NVStorageDeleteData [09:04:47]Write to MH i2c: 01 00 00 AB 1A C5 [09:04:47]Write i2c OK [09:04:47]MH_I2C_Read... [09:04:47]Read from MH i2c: 01 [09:04:47]MH_I2C_Read... [09:04:47]Read from MH i2c: 01 07 00 [09:04:47]MH_I2C_Read... [09:04:47]Read from MH i2c: 01 07 00 AB 1A 00 00 00 00 00 A8 0C 80 [09:04:47]RasterBufferAndPrint [09:04:47]line [09:04:47]line [09:04:47]line [09:04:47]line [09:04:47]line [09:04:47]written 0, free lines is 3254 [09:04:47]MH_Cut [09:04:47]Write to MH i2c: D1 01 00 B2 1A 01 9E [09:04:47]Write i2c OK [09:04:47]MH_I2C_Read... [09:04:47]Read from MH i2c: D1 [09:04:47]MH_I2C_Read... [09:04:47]Read from MH i2c: D1 01 00 [09:04:47]MH_I2C_Read... [09:04:47]Read from MH i2c: D1 01 00 B2 1A 00 9D [09:04:47]Write to MH i2c: 01 00 00 B3 1A CD [09:04:47]Write i2c OK [09:04:47]MH_I2C_Read... [09:04:47]OFD Sender: No OFD packet to send [09:04:48]*** Cut start [09:04:48]*** Purtial cut [09:04:48]*** Stage 1: CUTSNS_PIN = 1 [09:04:48]Read from MH i2c: 01 [09:04:48]MH_I2C_Read... [09:04:48]*** Stop cut motor [09:04:48]*** Cut end [09:04:48]Read from MH i2c: 01 07 00 [09:04:48]MH_I2C_Read... [09:04:48]Read from MH i2c: 01 07 00 B3 1A 00 00 00 00 00 FF 0F E2 [09:04:48]process_action close_receipt done [09:04:48]requested_data is exist [09:04:48]produce_requested_data [09:04:48]requested_item fm.sn is exist - process it [09:04:48]wFMCommunicate request_size=4 [09:04:48]MH_SAM_APDU [09:04:48]CAPDU: 80 11 00 00 [09:04:48]Write to MH i2c: E2 08 00 B4 1A 80 11 00 00 00 00 00 00 48 [09:04:48]Write i2c OK [09:04:48]MH_I2C_Read... [09:04:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:48]Read from MH i2c: E2 [09:04:48]MH_I2C_Read... [09:04:48]Read from MH i2c: E2 17 00 [09:04:48]MH_I2C_Read... [09:04:48]Read from MH i2c: E2 17 00 B4 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9D [09:04:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:04:48]wFMCommunicate OK [09:04:48]requested_item fd.num is exist - process it [09:04:48]SAM_PROTO_GetFieldsCounters [09:04:48]wFMCommunicate request_size=4 [09:04:48]MH_SAM_APDU [09:04:48]CAPDU: 80 13 00 00 [09:04:48]Write to MH i2c: E2 08 00 B5 1A 80 13 00 00 00 00 00 00 4B [09:04:48]Write i2c OK [09:04:48]MH_I2C_Read... [09:04:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:04:48]Read from MH i2c: E2 [09:04:48]MH_I2C_Read... [09:04:48]Read from MH i2c: E2 62 00 [09:04:48]MH_I2C_Read... [09:04:48]Read from MH i2c: E2 62 00 B5 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4A 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [09:04:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4A 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:04:48]wFMCommunicate OK [09:04:48]SAM_PROTO_GetFieldsCounters done [09:04:48]requested_item shift.num is exist - process it [09:04:48]requested_item shift.opened is exist - process it [09:04:48]req_shift_opened [09:04:48]FM_GetShiftState [09:04:48]SAM_PROTO_GetShiftState [09:04:48]wFMCommunicate request_size=4 [09:04:48]MH_SAM_APDU [09:04:48]CAPDU: 80 13 01 00 [09:04:48]Write to MH i2c: E2 08 00 B6 1A 80 13 01 00 00 00 00 00 4D [09:04:48]Write i2c OK [09:04:48]MH_I2C_Read... [09:04:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:48]Read from MH i2c: E2 [09:04:48]MH_I2C_Read... [09:04:48]Read from MH i2c: E2 0E 00 [09:04:48]MH_I2C_Read... [09:04:48]Read from MH i2c: E2 0E 00 B6 1A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 5C [09:04:48]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:04:48]wFMCommunicate OK [09:04:48]SAM_PROTO_GetShiftState done [09:04:48]FM_GetShiftState done [09:04:48]req_shift_opened done [09:04:48]requested_item shift.open_date is exist - process it [09:04:48]req_shift_open_date [09:04:48]req_shift_open_date done [09:04:48]produce_requested_data done [09:04:48]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201290,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:04:48]process_action_free close_receipt [09:04:48]json_value_free [09:04:48]json_value_free done [09:04:48]process_json_proto returns [09:04:48]Send response to host [09:04:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201290,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:04:48]free response buf [09:04:48]execute_script done [09:04:48]execute_script returns [09:04:48]free content buf [09:04:48]Sock 9.Close socket [09:04:48]Sock 9.Thread stoped [09:04:52]OFD Sender: No OFD packet to send [09:04:57]OFD Sender: No OFD packet to send [09:05:02]OFD Sender: No OFD packet to send [09:05:07]OFD Sender: No OFD packet to send [09:05:12]OFD Sender: No OFD packet to send [09:05:17]OFD Sender: No OFD packet to send [09:05:22]OFD Sender: No OFD packet to send [09:05:27]OFD Sender: No OFD packet to send [09:05:32]OFD Sender: No OFD packet to send [09:05:36]accept exits with 7 [09:05:36]New connection [09:05:36]New thread 3067559268 created [09:05:36]Thread 3067415908 joined [09:05:36]Waiting for new connection... [09:05:36] Sock 7.Parse request [09:05:36]Sock 7.Check first char [09:05:36]Sock 7.First char is OK [09:05:36]request: POST /json_proto HTTP/1.0 [09:05:36]Method: POST [09:05:36]URL: /json_proto [09:05:36]Method is POST - this is cgi request [09:05:36]url: /json_proto [09:05:36]query_string will be loaded in cgi processing [09:05:36]execute_cgi json_proto POST (null) [09:05:36]execute_cgi path=json_proto method=POST [09:05:36]POST find Content-Length [09:05:36]Host: 172.17.63.195:8080 [09:05:36]Content-Length: 682 [09:05:36]Content-Type: application/json [09:05:36] [09:05:36]POST finish read [09:05:36]Found Content-Length = 682 [09:05:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:05:36]execute_script... [09:05: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)449038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:05:36]POST & json_proto [09:05:36]process_json_proto [09:05:36]json parsed OK: [09:05:36]protocol is kg_v1.0 [09:05:36]action value=close_receipt [09:05:36]process_action close_receipt [09:05:36]cmd_close_receipt [09:05:36]MH_GetDate [09:05:36]Write to MH i2c: F0 00 00 B7 1A C0 [09:05:36]Write i2c OK [09:05:36]MH_I2C_Read... [09:05:36]Read from MH i2c: F0 [09:05:36]MH_I2C_Read... [09:05:36]Read from MH i2c: F0 09 00 [09:05:36]MH_I2C_Read... [09:05:36]Read from MH i2c: F0 09 00 B7 1A 00 E3 B0 1C 67 68 46 19 67 0D [09:05:36]GetLastDocTimeStamp 1729933487 [09:05:36]current date 1729933539 [09:05:36]FM_GetShiftState [09:05:36]SAM_PROTO_GetShiftState [09:05:36]wFMCommunicate request_size=4 [09:05:36]MH_SAM_APDU [09:05:36]CAPDU: 80 13 01 00 [09:05:36]Write to MH i2c: E2 08 00 B8 1A 80 13 01 00 00 00 00 00 4F [09:05:36]Write i2c OK [09:05:36]MH_I2C_Read... [09:05:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:36]Read from MH i2c: E2 [09:05:36]MH_I2C_Read... [09:05:36]Read from MH i2c: E2 0E 00 [09:05:36]MH_I2C_Read... [09:05:36]Read from MH i2c: E2 0E 00 B8 1A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 5E [09:05:36]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:05:36]wFMCommunicate OK [09:05:36]SAM_PROTO_GetShiftState done [09:05:36]FM_GetShiftState done [09:05:36]opened in 1729900879 [09:05:36]opened+sec_in_day 1729987279 [09:05:36]quantity*price = 100015 [09:05:36]sum+1 = 100017 [09:05:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 53 26.10.2024 09:05 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201291 ФПД: 15218032329045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090539&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201291&fm=15218032329045&tin=02508201610067®Number=0000000000091777&sum=100000 [09:05:37]StoreToDocumentArchive [09:05:37]shift 543 fd 201291 [09:05:37]save to /storage/0543/doc_00201291 [09:05:37]save last doc name /storage/0543/doc_00201291 to /storage/kkm_last_doc_name [09:05:37]save OK [09:05:37]Clear old archive folders... [09:05:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:05:37]tlvbuf is 0173F990 [09:05:37]SAM_PROTO_ClearQueue [09:05:37]wFMCommunicate request_size=4 [09:05:37]MH_SAM_APDU [09:05:37]CAPDU: 80 09 00 00 [09:05:37]Write to MH i2c: E2 08 00 C5 1A 80 09 00 00 00 00 00 00 51 [09:05:37]Write i2c OK [09:05:37]MH_I2C_Read... [09:05:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:05:37]Read from MH i2c: E2 [09:05:37]MH_I2C_Read... [09:05:37]Read from MH i2c: E2 03 00 [09:05:37]MH_I2C_Read... [09:05:37]Read from MH i2c: E2 03 00 C5 1A 00 90 00 53 [09:05:37]RAPDU: 90 00 [09:05:37]wFMCommunicate OK [09:05:37]SAM_PROTO_ClearQueue done [09:05:37]KKMCreateOFDPacket [09:05:37]OFDProtocolAddRootSTLVToBuf [09:05:37]FM_MakeSignedData [09:05:37]FM_MakeSignedData [09:05:37]SAM_PROTO_SignData [09:05:37]wFMCommunicate request_size=4 [09:05:37]MH_SAM_APDU [09:05:37]CAPDU: 80 0D 01 02 [09:05:37]Write to MH i2c: E2 08 00 C6 1A 80 0D 01 02 00 00 00 00 59 [09:05:37]Write i2c OK [09:05:37]MH_I2C_Read... [09:05:37]OFD Sender: No OFD packet to send [09:05:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:05:37]Read from MH i2c: E2 [09:05:37]MH_I2C_Read... [09:05:37]Read from MH i2c: E2 03 00 [09:05:37]MH_I2C_Read... [09:05:37]Read from MH i2c: E2 03 00 C6 1A 00 90 00 54 [09:05:37]RAPDU: 90 00 [09:05:37]wFMCommunicate OK [09:05:37]wFMCommunicate request_size=255 [09:05:37]MH_SAM_APDU [09:05:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 35 00 00 00 F4 03 04 00 E3 B0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4B 12 03 00 35 04 06 00 0D [09:05:37]Write to MH i2c: E2 02 01 C7 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 32 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 35 00 00 00 F4 03 04 00 E3 B0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4B 12 03 00 35 04 06 00 0D 00 00 C0 [09:05:37]Write i2c OK [09:05:37]MH_I2C_Read... [09:05:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:37]Read from MH i2c: E2 [09:05:37]MH_I2C_Read... [09:05:37]Read from MH i2c: E2 03 00 [09:05:37]MH_I2C_Read... [09:05:37]Read from MH i2c: E2 03 00 C7 1A 00 90 00 55 [09:05:37]RAPDU: 90 00 [09:05:37]wFMCommunicate OK [09:05:37]wFMCommunicate request_size=10 [09:05:37]MH_SAM_APDU [09:05:37]CAPDU: 80 0D 02 02 05 D7 39 69 41 55 [09:05:37]Write to MH i2c: E2 0D 00 C8 1A 80 0D 02 02 05 00 D7 39 69 41 55 00 00 75 [09:05:37]Write i2c OK [09:05:37]MH_I2C_Read... [09:05:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:37]Read from MH i2c: E2 [09:05:37]MH_I2C_Read... [09:05:37]Read from MH i2c: E2 03 00 [09:05:37]MH_I2C_Read... [09:05:37]Read from MH i2c: E2 03 00 C8 1A 00 90 00 56 [09:05:37]RAPDU: 90 00 [09:05:37]wFMCommunicate OK [09:05:37]wFMCommunicate request_size=4 [09:05:37]MH_SAM_APDU [09:05:37]CAPDU: 80 0D 03 02 [09:05:37]Write to MH i2c: E2 08 00 C9 1A 80 0D 03 02 00 00 00 00 5E [09:05:37]Write i2c OK [09:05:37]MH_I2C_Read... [09:05:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:05:37]Read from MH i2c: E2 [09:05:37]MH_I2C_Read... [09:05:37]Read from MH i2c: E2 0B 00 [09:05:37]MH_I2C_Read... [09:05:37]Read from MH i2c: E2 0B 00 C9 1A 00 65 A5 48 1A E7 20 23 EC 90 00 E1 [09:05:37]RAPDU: 65 A5 48 1A E7 20 23 EC 90 00 [09:05:37]wFMCommunicate OK [09:05:37]SAM_PROTO_SignData done [09:05:37]FM_MakeSignedData done [09:05:37]CreateOFDProtocolMessage [09:05:37]wFMCommunicate request_size=4 [09:05:37]MH_SAM_APDU [09:05:37]CAPDU: 80 11 00 00 [09:05:37]Write to MH i2c: E2 08 00 CA 1A 80 11 00 00 00 00 00 00 5E [09:05:37]Write i2c OK [09:05:37]MH_I2C_Read... [09:05:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:38]Read from MH i2c: E2 [09:05:38]MH_I2C_Read... [09:05:38]Read from MH i2c: E2 17 00 [09:05:38]MH_I2C_Read... [09:05:38]Read from MH i2c: E2 17 00 CA 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B3 [09:05:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:05:38]wFMCommunicate OK [09:05:38]CreateOFDProtocolMessage done [09:05:38]OFDSenderStorePacket 201291 [09:05:38]StoreOFDPacket docnum=201291 [09:05:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B0 DA 07 01 BE FC 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 32 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 35 00 00 00 F4 03 04 00 E3 B0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4B 12 03 00 35 04 06 00 0D D7 39 69 41 55 65 A5 48 1A E7 20 23 EC [09:05:38]CheckFolder [09:05:38]dirname=/storage/ofd_packets [09:05:38]CheckFolder done [09:05:38]ProducePacketName [09:05:38]name=ofd_packets/00201291 [09:05:38]NVStorageSaveData ofd_packets/00201291 [09:05:38]File name is /storage/ofd_packets/00201291 [09:05:38]Write 301 bytes [09:05:38]NVStorageSaveData done [09:05:38]OFDSenderStorePacket done [09:05:38]KKMCreateOFDPacket done [09:05:38]NVStorageSaveData kkm_last_timestamp [09:05:38]File name is /storage/kkm_last_timestamp [09:05:38]Write 4 bytes [09:05:38]NVStorageSaveData done [09:05:38]ExternCall_PrintAddStr [09:05:38]wPrintStart [09:05:38]Write to MH i2c: 01 00 00 CB 1A E5 [09:05:38]Write i2c OK [09:05:38]MH_I2C_Read... [09:05:38]Read from MH i2c: 01 [09:05:38]MH_I2C_Read... [09:05:38]Read from MH i2c: 01 07 00 [09:05:38]MH_I2C_Read... [09:05:38]Read from MH i2c: 01 07 00 CB 1A 00 00 00 00 00 FF 0F FA [09:05:38]RasterBufferAndPrint [09:05:38]line Счет N : (1)449038 [09:05:38]line ИНН: 02508201610067 [09:05:38]line Контрольно-Кассовый Чек [09:05:38]line ПРОДАЖА [09:05:38]line ТРК (МРК, ГНК) : 62 [09:05:38]line Товар: 2710124130 [09:05:38]line Аи-92-К-2 [09:05:38]line 14.950 * 66.90 [09:05:38]line = 1000.16 [09:05:38]line НДС 12% НСП 1% [09:05:38]line > о реализуемом товаре [09:05:38]line ОКРУГЛЕНИЕ: -0.16 [09:05:38]line ИТОГО: 1000.00 [09:05:38]line Внесено: 1000.00 [09:05:38]line СДАЧА: 0.00 [09:05:38]line НСП 1% : 8.85 [09:05:38]line НДС 12% : 106.21 [09:05:38]line Наличными: 1000.00 [09:05:38]line Безнал.: 0.00 [09:05:38]line Место: АЗС № 171 "Партнер Нефть" [09:05:38]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:05:38]line СНО: Общий режим [09:05:38]line Чек 53 26.10.2024 09:05 [09:05:38]line Смена: 543 ФФД: 1.0 [09:05:38]line ЗНМ: 0300000109 [09:05:38]line РНМ: 0000000000091777 [09:05:38]line Версия ККМ: 001 [09:05:38]line ФМ: 0000000000871756 [09:05:38]line ФД: 201291 [09:05:38]line ФПД: 15218032329045 [09:05:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090539&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201291&fm=15218032329045&tin=02508201610067®Number=0000000000091777&sum=100000 [09:05:38]OFD Sender: Processing packet 201291 [packets to send 112, broken 111] [09:05:38]ProducePacketName [09:05:38]name=ofd_packets/00201291 [09:05:38]OFD Sender: To server: pG, [09:05:38]CommunicateWithHost lk.salyk.kg:30040 [09:05:38]ConnectInit lk.salyk.kg [09:05:38]written 0, free lines is 4095 [09:05:38]Connected sock=10 [09:05:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B0 DA 07 01 BE FC 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 32 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 35 00 00 00 F4 03 04 00 E3 B0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4B 12 03 00 35 04 06 00 0D D7 39 69 41 55 65 A5 48 1A E7 20 23 EC [09:05:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 32 4C 47 00 C0 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4B 12 03 00 F4 03 04 00 8D 5C 1C 67 B6 04 01 00 00 89 FB 9E 1E 5D F9 D4 D3 [09:05:38]CommunicateWithHost err = 0 [09:05:38]CheckOFDResponse [09:05:38]1017 (14) - 77093643461234 [09:05:38]1041 (16) - 0000000000871756 [09:05:38]1040 (4) - 201291 [09:05:38]1012 (4) - 26.10.2024 03:05 [09:05:38]1206 (1) - 0 [09:05:38]OFD Sender: Remove packet 201291 [09:05:38]ProducePacketName [09:05:38]name=ofd_packets/00201291 [09:05:38]NVStorageDeleteData [09:05:38]Write to MH i2c: 01 00 00 F6 1A 10 [09:05:38]Write i2c OK [09:05:38]MH_I2C_Read... [09:05:38]Read from MH i2c: 01 [09:05:38]MH_I2C_Read... [09:05:38]Read from MH i2c: 01 07 00 [09:05:38]MH_I2C_Read... [09:05:38]Read from MH i2c: 01 07 00 F6 1A 00 00 00 00 00 AA 0C CD [09:05:38]RasterBufferAndPrint [09:05:38]line [09:05:38]line [09:05:38]line [09:05:38]line [09:05:38]line [09:05:38]written 0, free lines is 3248 [09:05:38]MH_Cut [09:05:38]Write to MH i2c: D1 01 00 FD 1A 01 E9 [09:05:38]Write i2c OK [09:05:38]MH_I2C_Read... [09:05:38]Read from MH i2c: D1 [09:05:38]MH_I2C_Read... [09:05:38]Read from MH i2c: D1 01 00 [09:05:38]MH_I2C_Read... [09:05:38]Read from MH i2c: D1 01 00 FD 1A 00 E8 [09:05:38]Write to MH i2c: 01 00 00 FE 1A 18 [09:05:38]Write i2c OK [09:05:38]MH_I2C_Read... [09:05:39]OFD Sender: No OFD packet to send [09:05:39]*** Cut start [09:05:39]*** Purtial cut [09:05:39]*** Stage 1: CUTSNS_PIN = 1 [09:05:39]Read from MH i2c: 01 [09:05:39]MH_I2C_Read... [09:05:39]*** Stop cut motor [09:05:39]*** Cut end [09:05:39]Read from MH i2c: 01 07 00 [09:05:39]MH_I2C_Read... [09:05:39]Read from MH i2c: 01 07 00 FE 1A 00 00 00 00 00 FF 0F 2D [09:05:39]process_action close_receipt done [09:05:39]requested_data is exist [09:05:39]produce_requested_data [09:05:39]requested_item fm.sn is exist - process it [09:05:39]wFMCommunicate request_size=4 [09:05:39]MH_SAM_APDU [09:05:39]CAPDU: 80 11 00 00 [09:05:39]Write to MH i2c: E2 08 00 FF 1A 80 11 00 00 00 00 00 00 93 [09:05:39]Write i2c OK [09:05:39]MH_I2C_Read... [09:05:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:40]Read from MH i2c: E2 [09:05:40]MH_I2C_Read... [09:05:40]Read from MH i2c: E2 17 00 [09:05:40]MH_I2C_Read... [09:05:40]Read from MH i2c: E2 17 00 FF 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E8 [09:05:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:05:40]wFMCommunicate OK [09:05:40]requested_item fd.num is exist - process it [09:05:40]SAM_PROTO_GetFieldsCounters [09:05:40]wFMCommunicate request_size=4 [09:05:40]MH_SAM_APDU [09:05:40]CAPDU: 80 13 00 00 [09:05:40]Write to MH i2c: E2 08 00 00 1B 80 13 00 00 00 00 00 00 97 [09:05:40]Write i2c OK [09:05:40]MH_I2C_Read... [09:05:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:40]Read from MH i2c: E2 [09:05:40]MH_I2C_Read... [09:05:40]Read from MH i2c: E2 62 00 [09:05:40]MH_I2C_Read... [09:05:40]Read from MH i2c: E2 62 00 00 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4B 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [09:05:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4B 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:05:40]wFMCommunicate OK [09:05:40]SAM_PROTO_GetFieldsCounters done [09:05:40]requested_item shift.num is exist - process it [09:05:40]requested_item shift.opened is exist - process it [09:05:40]req_shift_opened [09:05:40]FM_GetShiftState [09:05:40]SAM_PROTO_GetShiftState [09:05:40]wFMCommunicate request_size=4 [09:05:40]MH_SAM_APDU [09:05:40]CAPDU: 80 13 01 00 [09:05:40]Write to MH i2c: E2 08 00 01 1B 80 13 01 00 00 00 00 00 99 [09:05:40]Write i2c OK [09:05:40]MH_I2C_Read... [09:05:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:40]Read from MH i2c: E2 [09:05:40]MH_I2C_Read... [09:05:40]Read from MH i2c: E2 0E 00 [09:05:40]MH_I2C_Read... [09:05:40]Read from MH i2c: E2 0E 00 01 1B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 A8 [09:05:40]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:05:40]wFMCommunicate OK [09:05:40]SAM_PROTO_GetShiftState done [09:05:40]FM_GetShiftState done [09:05:40]req_shift_opened done [09:05:40]requested_item shift.open_date is exist - process it [09:05:40]req_shift_open_date [09:05:40]req_shift_open_date done [09:05:40]produce_requested_data done [09:05:40]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201291,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:05:40]process_action_free close_receipt [09:05:40]json_value_free [09:05:40]json_value_free done [09:05:40]process_json_proto returns [09:05:40]Send response to host [09:05:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201291,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:05:40]free response buf [09:05:40]execute_script done [09:05:40]execute_script returns [09:05:40]free content buf [09:05:40]Sock 7.Close socket [09:05:40]Sock 7.Thread stoped [09:05:44]OFD Sender: No OFD packet to send [09:05:46]accept exits with 9 [09:05:46]New connection [09:05:46]New thread 3067415908 created [09:05:46]Thread 3067559268 joined [09:05:46]Waiting for new connection... [09:05:46] Sock 9.Parse request [09:05:46]Sock 9.Check first char [09:05:46]Sock 9.First char is OK [09:05:46]request: POST /json_proto HTTP/1.0 [09:05:46]Method: POST [09:05:46]URL: /json_proto [09:05:46]Method is POST - this is cgi request [09:05:46]url: /json_proto [09:05:46]query_string will be loaded in cgi processing [09:05:46]execute_cgi json_proto POST (null) [09:05:46]execute_cgi path=json_proto method=POST [09:05:46]POST find Content-Length [09:05:46]Host: 172.17.63.195:8080 [09:05:46]Content-Length: 677 [09:05:46]Content-Type: application/json [09:05:46] [09:05:46]POST finish read [09:05:46]Found Content-Length = 677 [09:05:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:46]execute_script... [09:05: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)449039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:46]POST & json_proto [09:05:46]process_json_proto [09:05:46]json parsed OK: [09:05:46]protocol is kg_v1.0 [09:05:46]action value=close_receipt [09:05:46]process_action close_receipt [09:05:46]cmd_close_receipt [09:05:46]MH_GetDate [09:05:46]Write to MH i2c: F0 00 00 02 1B 0C [09:05:46]Write i2c OK [09:05:46]MH_I2C_Read... [09:05:46]Read from MH i2c: F0 [09:05:46]MH_I2C_Read... [09:05:46]Read from MH i2c: F0 09 00 [09:05:46]MH_I2C_Read... [09:05:46]Read from MH i2c: F0 09 00 02 1B 00 EE B0 1C 67 68 46 19 67 64 [09:05:46]GetLastDocTimeStamp 1729933539 [09:05:46]current date 1729933550 [09:05:46]FM_GetShiftState [09:05:46]SAM_PROTO_GetShiftState [09:05:46]wFMCommunicate request_size=4 [09:05:46]MH_SAM_APDU [09:05:46]CAPDU: 80 13 01 00 [09:05:46]Write to MH i2c: E2 08 00 03 1B 80 13 01 00 00 00 00 00 9B [09:05:46]Write i2c OK [09:05:46]MH_I2C_Read... [09:05:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:46]Read from MH i2c: E2 [09:05:46]MH_I2C_Read... [09:05:46]Read from MH i2c: E2 0E 00 [09:05:46]MH_I2C_Read... [09:05:46]Read from MH i2c: E2 0E 00 03 1B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 AA [09:05:46]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:05:46]wFMCommunicate OK [09:05:46]SAM_PROTO_GetShiftState done [09:05:46]FM_GetShiftState done [09:05:46]opened in 1729900879 [09:05:46]opened+sec_in_day 1729987279 [09:05:46]quantity*price = 30038 [09:05:46]sum+1 = 30039 [09:05:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 54 26.10.2024 09:05 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201292 ФПД: 79279385764603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090550&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201292&fm=79279385764603&tin=02508201610067®Number=0000000000091777&sum=30000 [09:05:48]StoreToDocumentArchive [09:05:48]shift 543 fd 201292 [09:05:48]save to /storage/0543/doc_00201292 [09:05:48]save last doc name /storage/0543/doc_00201292 to /storage/kkm_last_doc_name [09:05:48]save OK [09:05:48]Clear old archive folders... [09:05:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:05:48]tlvbuf is 0177E400 [09:05:48]SAM_PROTO_ClearQueue [09:05:48]wFMCommunicate request_size=4 [09:05:48]MH_SAM_APDU [09:05:48]CAPDU: 80 09 00 00 [09:05:48]Write to MH i2c: E2 08 00 10 1B 80 09 00 00 00 00 00 00 9D [09:05:48]Write i2c OK [09:05:48]MH_I2C_Read... [09:05:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:05:48]Read from MH i2c: E2 [09:05:48]MH_I2C_Read... [09:05:48]Read from MH i2c: E2 03 00 [09:05:48]MH_I2C_Read... [09:05:48]Read from MH i2c: E2 03 00 10 1B 00 90 00 9F [09:05:48]RAPDU: 90 00 [09:05:48]wFMCommunicate OK [09:05:48]SAM_PROTO_ClearQueue done [09:05:48]KKMCreateOFDPacket [09:05:48]OFDProtocolAddRootSTLVToBuf [09:05:48]FM_MakeSignedData [09:05:48]FM_MakeSignedData [09:05:48]SAM_PROTO_SignData [09:05:48]wFMCommunicate request_size=4 [09:05:48]MH_SAM_APDU [09:05:48]CAPDU: 80 0D 01 02 [09:05:48]Write to MH i2c: E2 08 00 11 1B 80 0D 01 02 00 00 00 00 A5 [09:05:48]Write i2c OK [09:05:48]MH_I2C_Read... [09:05:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:05:48]Read from MH i2c: E2 [09:05:48]MH_I2C_Read... [09:05:48]Read from MH i2c: E2 03 00 [09:05:48]MH_I2C_Read... [09:05:48]Read from MH i2c: E2 03 00 11 1B 00 90 00 A0 [09:05:48]RAPDU: 90 00 [09:05:48]wFMCommunicate OK [09:05:48]wFMCommunicate request_size=255 [09:05:48]MH_SAM_APDU [09:05: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 EE B0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4C 12 03 00 35 04 06 00 48 [09:05:48]Write to MH i2c: E2 02 01 12 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 EE B0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4C 12 03 00 35 04 06 00 48 00 00 4E [09:05:48]Write i2c OK [09:05:48]MH_I2C_Read... [09:05:48]Read from MH i2c: E2 [09:05:48]MH_I2C_Read... [09:05:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:48]Read from MH i2c: E2 03 00 [09:05:48]MH_I2C_Read... [09:05:48]Read from MH i2c: E2 03 00 12 1B 00 90 00 A1 [09:05:48]RAPDU: 90 00 [09:05:48]wFMCommunicate OK [09:05:48]wFMCommunicate request_size=10 [09:05:48]MH_SAM_APDU [09:05:48]CAPDU: 80 0D 02 02 05 1A AB A0 62 FB [09:05:48]Write to MH i2c: E2 0D 00 13 1B 80 0D 02 02 05 00 1A AB A0 62 FB 00 00 74 [09:05:48]Write i2c OK [09:05:48]MH_I2C_Read... [09:05:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:48]Read from MH i2c: E2 [09:05:48]MH_I2C_Read... [09:05:48]Read from MH i2c: E2 03 00 [09:05:48]MH_I2C_Read... [09:05:48]Read from MH i2c: E2 03 00 13 1B 00 90 00 A2 [09:05:48]RAPDU: 90 00 [09:05:48]wFMCommunicate OK [09:05:48]wFMCommunicate request_size=4 [09:05:48]MH_SAM_APDU [09:05:48]CAPDU: 80 0D 03 02 [09:05:48]Write to MH i2c: E2 08 00 14 1B 80 0D 03 02 00 00 00 00 AA [09:05:48]Write i2c OK [09:05:48]MH_I2C_Read... [09:05:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:05:48]Read from MH i2c: E2 [09:05:48]MH_I2C_Read... [09:05:48]Read from MH i2c: E2 0B 00 [09:05:48]MH_I2C_Read... [09:05:48]Read from MH i2c: E2 0B 00 14 1B 00 D6 DA E8 49 71 F6 4E 3D 90 00 7E [09:05:48]RAPDU: D6 DA E8 49 71 F6 4E 3D 90 00 [09:05:48]wFMCommunicate OK [09:05:48]SAM_PROTO_SignData done [09:05:48]FM_MakeSignedData done [09:05:48]CreateOFDProtocolMessage [09:05:48]wFMCommunicate request_size=4 [09:05:48]MH_SAM_APDU [09:05:48]CAPDU: 80 11 00 00 [09:05:48]Write to MH i2c: E2 08 00 15 1B 80 11 00 00 00 00 00 00 AA [09:05:48]Write i2c OK [09:05:48]MH_I2C_Read... [09:05:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:48]Read from MH i2c: E2 [09:05:48]MH_I2C_Read... [09:05:48]Read from MH i2c: E2 17 00 [09:05:48]MH_I2C_Read... [09:05:48]Read from MH i2c: E2 17 00 15 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FF [09:05:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:05:48]wFMCommunicate OK [09:05:48]CreateOFDProtocolMessage done [09:05:48]OFDSenderStorePacket 201292 [09:05:48]StoreOFDPacket docnum=201292 [09:05:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 86 19 07 01 AB CE 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 EE B0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4C 12 03 00 35 04 06 00 48 1A AB A0 62 FB D6 DA E8 49 71 F6 4E 3D [09:05:48]CheckFolder [09:05:48]dirname=/storage/ofd_packets [09:05:48]CheckFolder done [09:05:48]ProducePacketName [09:05:48]name=ofd_packets/00201292 [09:05:48]NVStorageSaveData ofd_packets/00201292 [09:05:48]File name is /storage/ofd_packets/00201292 [09:05:48]Write 301 bytes [09:05:48]NVStorageSaveData done [09:05:48]OFDSenderStorePacket done [09:05:48]KKMCreateOFDPacket done [09:05:48]NVStorageSaveData kkm_last_timestamp [09:05:48]File name is /storage/kkm_last_timestamp [09:05:48]Write 4 bytes [09:05:48]NVStorageSaveData done [09:05:48]ExternCall_PrintAddStr [09:05:48]wPrintStart [09:05:48]Write to MH i2c: 01 00 00 16 1B 31 [09:05:48]Write i2c OK [09:05:48]MH_I2C_Read... [09:05:48]Read from MH i2c: 01 [09:05:48]MH_I2C_Read... [09:05:48]Read from MH i2c: 01 07 00 [09:05:48]MH_I2C_Read... [09:05:48]Read from MH i2c: 01 07 00 16 1B 00 00 00 00 00 FF 0F 46 [09:05:48]RasterBufferAndPrint [09:05:48]line Счет N : (1)449039 [09:05:48]line ИНН: 02508201610067 [09:05:48]line Контрольно-Кассовый Чек [09:05:48]line ПРОДАЖА [09:05:48]line ТРК (МРК, ГНК) : 31 [09:05:48]line Товар: 2710124130 [09:05:48]line Аи-92-К-2 [09:05:48]line 4.490 * 66.90 [09:05:48]line = 300.38 [09:05:48]line НДС 12% НСП 1% [09:05:48]line > о реализуемом товаре [09:05:48]line ОКРУГЛЕНИЕ: -0.38 [09:05:48]line ИТОГО: 300.00 [09:05:48]line Внесено: 300.00 [09:05:48]line СДАЧА: 0.00 [09:05:48]line НСП 1% : 2.66 [09:05:48]line НДС 12% : 31.90 [09:05:48]line Наличными: 300.00 [09:05:48]line Безнал.: 0.00 [09:05:48]line Место: АЗС № 171 "Партнер Нефть" [09:05:48]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:05:48]line СНО: Общий режим [09:05:48]line Чек 54 26.10.2024 09:05 [09:05:48]line Смена: 543 ФФД: 1.0 [09:05:48]line ЗНМ: 0300000109 [09:05:48]line РНМ: 0000000000091777 [09:05:48]line Версия ККМ: 001 [09:05:48]line ФМ: 0000000000871756 [09:05:48]line ФД: 201292 [09:05:48]line ФПД: 79279385764603 [09:05:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090550&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201292&fm=79279385764603&tin=02508201610067®Number=0000000000091777&sum=30000 [09:05:48]written 0, free lines is 4095 [09:05:48]OFD Sender: Processing packet 201292 [packets to send 112, broken 111] [09:05:48]ProducePacketName [09:05:48]name=ofd_packets/00201292 [09:05:48]OFD Sender: To server: pG, [09:05:48]CommunicateWithHost lk.salyk.kg:30040 [09:05:48]ConnectInit lk.salyk.kg [09:05:48]Connected sock=10 [09:05:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 86 19 07 01 AB CE 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 EE B0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4C 12 03 00 35 04 06 00 48 1A AB A0 62 FB D6 DA E8 49 71 F6 4E 3D [09:05:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 64 51 47 00 24 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4C 12 03 00 F4 03 04 00 97 5C 1C 67 B6 04 01 00 00 FA EB E6 FC 5F 76 7E 07 [09:05:48]CommunicateWithHost err = 0 [09:05:48]CheckOFDResponse [09:05:48]1017 (14) - 77093643461234 [09:05:48]1041 (16) - 0000000000871756 [09:05:48]1040 (4) - 201292 [09:05:48]1012 (4) - 26.10.2024 03:05 [09:05:48]1206 (1) - 0 [09:05:48]OFD Sender: Remove packet 201292 [09:05:48]ProducePacketName [09:05:48]name=ofd_packets/00201292 [09:05:48]NVStorageDeleteData [09:05:49]Write to MH i2c: 01 00 00 41 1B 5C [09:05:49]Write i2c OK [09:05:49]MH_I2C_Read... [09:05:49]Read from MH i2c: 01 [09:05:49]MH_I2C_Read... [09:05:49]Read from MH i2c: 01 07 00 [09:05:49]MH_I2C_Read... [09:05:49]Read from MH i2c: 01 07 00 41 1B 00 00 00 00 00 A3 0C 12 [09:05:49]RasterBufferAndPrint [09:05:49]line [09:05:49]line [09:05:49]line [09:05:49]line [09:05:49]line [09:05:49]written 0, free lines is 3244 [09:05:49]MH_Cut [09:05:49]Write to MH i2c: D1 01 00 48 1B 01 35 [09:05:49]Write i2c OK [09:05:49]MH_I2C_Read... [09:05:49]Read from MH i2c: D1 [09:05:49]MH_I2C_Read... [09:05:49]Read from MH i2c: D1 01 00 [09:05:49]MH_I2C_Read... [09:05:49]Read from MH i2c: D1 01 00 48 1B 00 34 [09:05:49]Write to MH i2c: 01 00 00 49 1B 64 [09:05:49]Write i2c OK [09:05:49]MH_I2C_Read... [09:05:49]OFD Sender: No OFD packet to send [09:05:49]*** Cut start [09:05:49]*** Purtial cut [09:05:49]*** Stage 1: CUTSNS_PIN = 1 [09:05:50]Read from MH i2c: 01 [09:05:50]MH_I2C_Read... [09:05:50]*** Stop cut motor [09:05:50]*** Cut end [09:05:50]Read from MH i2c: 01 07 00 [09:05:50]MH_I2C_Read... [09:05:50]Read from MH i2c: 01 07 00 49 1B 00 00 00 00 00 FF 0F 79 [09:05:50]process_action close_receipt done [09:05:50]requested_data is exist [09:05:50]produce_requested_data [09:05:50]requested_item fm.sn is exist - process it [09:05:50]wFMCommunicate request_size=4 [09:05:50]MH_SAM_APDU [09:05:50]CAPDU: 80 11 00 00 [09:05:50]Write to MH i2c: E2 08 00 4A 1B 80 11 00 00 00 00 00 00 DF [09:05:50]Write i2c OK [09:05:50]MH_I2C_Read... [09:05:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:50]Read from MH i2c: E2 [09:05:50]MH_I2C_Read... [09:05:50]Read from MH i2c: E2 17 00 [09:05:50]MH_I2C_Read... [09:05:50]Read from MH i2c: E2 17 00 4A 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 34 [09:05:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:05:50]wFMCommunicate OK [09:05:50]requested_item fd.num is exist - process it [09:05:50]SAM_PROTO_GetFieldsCounters [09:05:50]wFMCommunicate request_size=4 [09:05:50]MH_SAM_APDU [09:05:50]CAPDU: 80 13 00 00 [09:05:50]Write to MH i2c: E2 08 00 4B 1B 80 13 00 00 00 00 00 00 E2 [09:05:50]Write i2c OK [09:05:50]MH_I2C_Read... [09:05:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:50]Read from MH i2c: E2 [09:05:50]MH_I2C_Read... [09:05:50]Read from MH i2c: E2 62 00 [09:05:50]MH_I2C_Read... [09:05:50]Read from MH i2c: E2 62 00 4B 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4C 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [09:05:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4C 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:05:50]wFMCommunicate OK [09:05:50]SAM_PROTO_GetFieldsCounters done [09:05:50]requested_item shift.num is exist - process it [09:05:50]requested_item shift.opened is exist - process it [09:05:50]req_shift_opened [09:05:50]FM_GetShiftState [09:05:50]SAM_PROTO_GetShiftState [09:05:50]wFMCommunicate request_size=4 [09:05:50]MH_SAM_APDU [09:05:50]CAPDU: 80 13 01 00 [09:05:50]Write to MH i2c: E2 08 00 4C 1B 80 13 01 00 00 00 00 00 E4 [09:05:50]Write i2c OK [09:05:50]MH_I2C_Read... [09:05:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:50]Read from MH i2c: E2 [09:05:50]MH_I2C_Read... [09:05:50]Read from MH i2c: E2 0E 00 [09:05:50]MH_I2C_Read... [09:05:50]Read from MH i2c: E2 0E 00 4C 1B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F3 [09:05:50]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:05:50]wFMCommunicate OK [09:05:50]SAM_PROTO_GetShiftState done [09:05:50]FM_GetShiftState done [09:05:50]req_shift_opened done [09:05:50]requested_item shift.open_date is exist - process it [09:05:50]req_shift_open_date [09:05:50]req_shift_open_date done [09:05:50]produce_requested_data done [09:05:50]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201292,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:05:50]process_action_free close_receipt [09:05:50]json_value_free [09:05:50]json_value_free done [09:05:50]process_json_proto returns [09:05:50]Send response to host [09:05:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201292,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:05:50]free response buf [09:05:50]execute_script done [09:05:50]execute_script returns [09:05:50]free content buf [09:05:50]Sock 9.Close socket [09:05:50]Sock 9.Thread stoped [09:05:54]OFD Sender: No OFD packet to send [09:05:59]OFD Sender: No OFD packet to send [09:06:04]OFD Sender: No OFD packet to send [09:06:09]OFD Sender: No OFD packet to send [09:06:14]OFD Sender: No OFD packet to send [09:06:19]OFD Sender: No OFD packet to send [09:06:24]OFD Sender: No OFD packet to send [09:06:29]OFD Sender: No OFD packet to send [09:06:34]OFD Sender: No OFD packet to send [09:06:39]OFD Sender: No OFD packet to send [09:06:44]OFD Sender: No OFD packet to send [09:06:49]OFD Sender: No OFD packet to send [09:06:54]OFD Sender: No OFD packet to send [09:06:59]OFD Sender: No OFD packet to send [09:06:59]accept exits with 7 [09:06:59]New connection [09:06:59]New thread 3067559268 created [09:06:59]Thread 3067415908 joined [09:06:59]Waiting for new connection... [09:06:59] Sock 7.Parse request [09:06:59]Sock 7.Check first char [09:06:59]Sock 7.First char is OK [09:06:59]request: POST /json_proto HTTP/1.0 [09:06:59]Method: POST [09:06:59]URL: /json_proto [09:06:59]Method is POST - this is cgi request [09:06:59]url: /json_proto [09:06:59]query_string will be loaded in cgi processing [09:06:59]execute_cgi json_proto POST (null) [09:06:59]execute_cgi path=json_proto method=POST [09:06:59]POST find Content-Length [09:06:59]Host: 172.17.63.195:8080 [09:06:59]Content-Length: 677 [09:06:59]Content-Type: application/json [09:06:59] [09:06:59]POST finish read [09:06:59]Found Content-Length = 677 [09:06:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:06:59]execute_script... [09:06:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:06:59]POST & json_proto [09:06:59]process_json_proto [09:06:59]json parsed OK: [09:06:59]protocol is kg_v1.0 [09:06:59]action value=close_receipt [09:06:59]process_action close_receipt [09:06:59]cmd_close_receipt [09:06:59]MH_GetDate [09:06:59]Write to MH i2c: F0 00 00 4D 1B 57 [09:06:59]Write i2c OK [09:06:59]MH_I2C_Read... [09:06:59]Read from MH i2c: F0 [09:06:59]MH_I2C_Read... [09:06:59]Read from MH i2c: F0 09 00 [09:06:59]MH_I2C_Read... [09:06:59]Read from MH i2c: F0 09 00 4D 1B 00 37 B1 1C 67 68 46 19 67 F9 [09:06:59]GetLastDocTimeStamp 1729933550 [09:06:59]current date 1729933623 [09:06:59]FM_GetShiftState [09:06:59]SAM_PROTO_GetShiftState [09:06:59]wFMCommunicate request_size=4 [09:06:59]MH_SAM_APDU [09:06:59]CAPDU: 80 13 01 00 [09:06:59]Write to MH i2c: E2 08 00 4E 1B 80 13 01 00 00 00 00 00 E6 [09:06:59]Write i2c OK [09:06:59]MH_I2C_Read... [09:06:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:59]Read from MH i2c: E2 [09:06:59]MH_I2C_Read... [09:06:59]Read from MH i2c: E2 0E 00 [09:06:59]MH_I2C_Read... [09:06:59]Read from MH i2c: E2 0E 00 4E 1B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F5 [09:06:59]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:06:59]wFMCommunicate OK [09:06:59]SAM_PROTO_GetShiftState done [09:06:59]FM_GetShiftState done [09:06:59]opened in 1729900879 [09:06:59]opened+sec_in_day 1729987279 [09:06:59]quantity*price = 40006 [09:06:59]sum+1 = 40007 [09:06:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 55 26.10.2024 09:07 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201293 ФПД: 110467438393269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090703&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201293&fm=110467438393269&tin=02508201610067®Number=0000000000091777&sum=40000 [09:07:00]StoreToDocumentArchive [09:07:00]shift 543 fd 201293 [09:07:00]save to /storage/0543/doc_00201293 [09:07:00]save last doc name /storage/0543/doc_00201293 to /storage/kkm_last_doc_name [09:07:00]save OK [09:07:00]Clear old archive folders... [09:07:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:07:00]tlvbuf is 017A8550 [09:07:00]SAM_PROTO_ClearQueue [09:07:00]wFMCommunicate request_size=4 [09:07:00]MH_SAM_APDU [09:07:00]CAPDU: 80 09 00 00 [09:07:00]Write to MH i2c: E2 08 00 5B 1B 80 09 00 00 00 00 00 00 E8 [09:07:00]Write i2c OK [09:07:00]MH_I2C_Read... [09:07:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:07:00]Read from MH i2c: E2 [09:07:00]MH_I2C_Read... [09:07:00]Read from MH i2c: E2 03 00 [09:07:00]MH_I2C_Read... [09:07:00]Read from MH i2c: E2 03 00 5B 1B 00 90 00 EA [09:07:00]RAPDU: 90 00 [09:07:00]wFMCommunicate OK [09:07:00]SAM_PROTO_ClearQueue done [09:07:00]KKMCreateOFDPacket [09:07:00]OFDProtocolAddRootSTLVToBuf [09:07:00]FM_MakeSignedData [09:07:00]FM_MakeSignedData [09:07:00]SAM_PROTO_SignData [09:07:00]wFMCommunicate request_size=4 [09:07:00]MH_SAM_APDU [09:07:00]CAPDU: 80 0D 01 02 [09:07:00]Write to MH i2c: E2 08 00 5C 1B 80 0D 01 02 00 00 00 00 F0 [09:07:00]Write i2c OK [09:07:00]MH_I2C_Read... [09:07:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:07:00]Read from MH i2c: E2 [09:07:00]MH_I2C_Read... [09:07:00]Read from MH i2c: E2 03 00 [09:07:00]MH_I2C_Read... [09:07:00]Read from MH i2c: E2 03 00 5C 1B 00 90 00 EB [09:07:00]RAPDU: 90 00 [09:07:00]wFMCommunicate OK [09:07:00]wFMCommunicate request_size=255 [09:07:00]MH_SAM_APDU [09:07:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 37 00 00 00 F4 03 04 00 37 B1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4D 12 03 00 35 04 06 00 64 [09:07:01]Write to MH i2c: E2 02 01 5D 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 32 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 37 00 00 00 F4 03 04 00 37 B1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4D 12 03 00 35 04 06 00 64 00 00 DC [09:07:01]Write i2c OK [09:07:01]MH_I2C_Read... [09:07:01]Read from MH i2c: E2 [09:07:01]MH_I2C_Read... [09:07:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:01]Read from MH i2c: E2 03 00 [09:07:01]MH_I2C_Read... [09:07:01]Read from MH i2c: E2 03 00 5D 1B 00 90 00 EC [09:07:01]RAPDU: 90 00 [09:07:01]wFMCommunicate OK [09:07:01]wFMCommunicate request_size=10 [09:07:01]MH_SAM_APDU [09:07:01]CAPDU: 80 0D 02 02 05 78 34 6C B7 B5 [09:07:01]Write to MH i2c: E2 0D 00 5E 1B 80 0D 02 02 05 00 78 34 6C B7 B5 00 00 81 [09:07:01]Write i2c OK [09:07:01]MH_I2C_Read... [09:07:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:01]Read from MH i2c: E2 [09:07:01]MH_I2C_Read... [09:07:01]Read from MH i2c: E2 03 00 [09:07:01]MH_I2C_Read... [09:07:01]Read from MH i2c: E2 03 00 5E 1B 00 90 00 ED [09:07:01]RAPDU: 90 00 [09:07:01]wFMCommunicate OK [09:07:01]wFMCommunicate request_size=4 [09:07:01]MH_SAM_APDU [09:07:01]CAPDU: 80 0D 03 02 [09:07:01]Write to MH i2c: E2 08 00 5F 1B 80 0D 03 02 00 00 00 00 F5 [09:07:01]Write i2c OK [09:07:01]MH_I2C_Read... [09:07:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:07:01]Read from MH i2c: E2 [09:07:01]MH_I2C_Read... [09:07:01]Read from MH i2c: E2 0B 00 [09:07:01]MH_I2C_Read... [09:07:01]Read from MH i2c: E2 0B 00 5F 1B 00 B1 BA D0 6B 28 6A 37 38 90 00 9D [09:07:01]RAPDU: B1 BA D0 6B 28 6A 37 38 90 00 [09:07:01]wFMCommunicate OK [09:07:01]SAM_PROTO_SignData done [09:07:01]FM_MakeSignedData done [09:07:01]CreateOFDProtocolMessage [09:07:01]wFMCommunicate request_size=4 [09:07:01]MH_SAM_APDU [09:07:01]CAPDU: 80 11 00 00 [09:07:01]Write to MH i2c: E2 08 00 60 1B 80 11 00 00 00 00 00 00 F5 [09:07:01]Write i2c OK [09:07:01]MH_I2C_Read... [09:07:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:01]Read from MH i2c: E2 [09:07:01]MH_I2C_Read... [09:07:01]Read from MH i2c: E2 17 00 [09:07:01]MH_I2C_Read... [09:07:01]Read from MH i2c: E2 17 00 60 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4A [09:07:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:07:01]wFMCommunicate OK [09:07:01]CreateOFDProtocolMessage done [09:07:01]OFDSenderStorePacket 201293 [09:07:01]StoreOFDPacket docnum=201293 [09:07:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 31 7A 07 01 76 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 32 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 37 00 00 00 F4 03 04 00 37 B1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4D 12 03 00 35 04 06 00 64 78 34 6C B7 B5 B1 BA D0 6B 28 6A 37 38 [09:07:01]CheckFolder [09:07:01]dirname=/storage/ofd_packets [09:07:01]CheckFolder done [09:07:01]ProducePacketName [09:07:01]name=ofd_packets/00201293 [09:07:01]NVStorageSaveData ofd_packets/00201293 [09:07:01]File name is /storage/ofd_packets/00201293 [09:07:01]Write 301 bytes [09:07:01]NVStorageSaveData done [09:07:01]OFDSenderStorePacket done [09:07:01]KKMCreateOFDPacket done [09:07:01]NVStorageSaveData kkm_last_timestamp [09:07:01]File name is /storage/kkm_last_timestamp [09:07:01]Write 4 bytes [09:07:01]NVStorageSaveData done [09:07:01]ExternCall_PrintAddStr [09:07:01]wPrintStart [09:07:01]Write to MH i2c: 01 00 00 61 1B 7C [09:07:01]Write i2c OK [09:07:01]MH_I2C_Read... [09:07:01]Read from MH i2c: 01 [09:07:01]MH_I2C_Read... [09:07:01]Read from MH i2c: 01 07 00 [09:07:01]MH_I2C_Read... [09:07:01]Read from MH i2c: 01 07 00 61 1B 00 00 00 00 00 FF 0F 91 [09:07:01]RasterBufferAndPrint [09:07:01]line Счет N : (1)449040 [09:07:01]line ИНН: 02508201610067 [09:07:01]line Контрольно-Кассовый Чек [09:07:01]line ПРОДАЖА [09:07:01]line ТРК (МРК, ГНК) : 41 [09:07:01]line Товар: 2710124130 [09:07:01]line Аи-92-К-2 [09:07:01]line 5.980 * 66.90 [09:07:01]line = 400.06 [09:07:01]line НДС 12% НСП 1% [09:07:01]line > о реализуемом товаре [09:07:01]line ОКРУГЛЕНИЕ: -0.06 [09:07:01]line ИТОГО: 400.00 [09:07:01]line Внесено: 400.00 [09:07:01]line СДАЧА: 0.00 [09:07:01]line НСП 1% : 3.54 [09:07:01]line НДС 12% : 42.48 [09:07:01]line Наличными: 400.00 [09:07:01]line Безнал.: 0.00 [09:07:01]line Место: АЗС № 171 "Партнер Нефть" [09:07:01]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:07:01]line СНО: Общий режим [09:07:01]line Чек 55 26.10.2024 09:07 [09:07:01]line Смена: 543 ФФД: 1.0 [09:07:01]line ЗНМ: 0300000109 [09:07:01]line РНМ: 0000000000091777 [09:07:01]line Версия ККМ: 001 [09:07:01]line ФМ: 0000000000871756 [09:07:01]line ФД: 201293 [09:07:01]line ФПД: 110467438393269 [09:07:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090703&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201293&fm=110467438393269&tin=02508201610067®Number=0000000000091777&sum=40000 [09:07:01]OFD Sender: Processing packet 201293 [packets to send 112, broken 111] [09:07:01]ProducePacketName [09:07:01]name=ofd_packets/00201293 [09:07:01]OFD Sender: To server: pG, [09:07:01]CommunicateWithHost lk.salyk.kg:30040 [09:07:01]ConnectInit lk.salyk.kg [09:07:01]written 0, free lines is 4095 [09:07:01]Connected sock=10 [09:07:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 31 7A 07 01 76 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 32 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 37 00 00 00 F4 03 04 00 37 B1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4D 12 03 00 35 04 06 00 64 78 34 6C B7 B5 B1 BA D0 6B 28 6A 37 38 [09:07:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B8 55 47 00 30 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4D 12 03 00 F4 03 04 00 E0 5C 1C 67 B6 04 01 00 00 EB 5E B4 55 9C D4 C9 80 [09:07:02]CommunicateWithHost err = 0 [09:07:02]CheckOFDResponse [09:07:02]1017 (14) - 77093643461234 [09:07:02]1041 (16) - 0000000000871756 [09:07:02]1040 (4) - 201293 [09:07:02]1012 (4) - 26.10.2024 03:07 [09:07:02]1206 (1) - 0 [09:07:02]OFD Sender: Remove packet 201293 [09:07:02]ProducePacketName [09:07:02]name=ofd_packets/00201293 [09:07:02]NVStorageDeleteData [09:07:02]Write to MH i2c: 01 00 00 8C 1B A7 [09:07:02]Write i2c OK [09:07:02]MH_I2C_Read... [09:07:02]Read from MH i2c: 01 [09:07:02]MH_I2C_Read... [09:07:02]Read from MH i2c: 01 07 00 [09:07:02]MH_I2C_Read... [09:07:02]Read from MH i2c: 01 07 00 8C 1B 00 00 00 00 00 A2 0C 5C [09:07:02]RasterBufferAndPrint [09:07:02]line [09:07:02]line [09:07:02]line [09:07:02]line [09:07:02]line [09:07:02]written 0, free lines is 3240 [09:07:02]MH_Cut [09:07:02]Write to MH i2c: D1 01 00 93 1B 01 80 [09:07:02]Write i2c OK [09:07:02]MH_I2C_Read... [09:07:02]Read from MH i2c: D1 [09:07:02]MH_I2C_Read... [09:07:02]Read from MH i2c: D1 01 00 [09:07:02]MH_I2C_Read... [09:07:02]Read from MH i2c: D1 01 00 93 1B 00 7F [09:07:02]Write to MH i2c: 01 00 00 94 1B AF [09:07:02]Write i2c OK [09:07:02]MH_I2C_Read... [09:07:02]OFD Sender: No OFD packet to send [09:07:03]*** Cut start [09:07:03]*** Purtial cut [09:07:03]*** Stage 1: CUTSNS_PIN = 1 [09:07:03]Read from MH i2c: 01 [09:07:03]MH_I2C_Read... [09:07:03]*** Stop cut motor [09:07:03]*** Cut end [09:07:03]Read from MH i2c: 01 07 00 [09:07:03]MH_I2C_Read... [09:07:03]Read from MH i2c: 01 07 00 94 1B 00 00 00 00 00 FF 0F C4 [09:07:03]process_action close_receipt done [09:07:03]requested_data is exist [09:07:03]produce_requested_data [09:07:03]requested_item fm.sn is exist - process it [09:07:03]wFMCommunicate request_size=4 [09:07:03]MH_SAM_APDU [09:07:03]CAPDU: 80 11 00 00 [09:07:03]Write to MH i2c: E2 08 00 95 1B 80 11 00 00 00 00 00 00 2A [09:07:03]Write i2c OK [09:07:03]MH_I2C_Read... [09:07:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:03]Read from MH i2c: E2 [09:07:03]MH_I2C_Read... [09:07:03]Read from MH i2c: E2 17 00 [09:07:03]MH_I2C_Read... [09:07:03]Read from MH i2c: E2 17 00 95 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7F [09:07:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:07:03]wFMCommunicate OK [09:07:03]requested_item fd.num is exist - process it [09:07:03]SAM_PROTO_GetFieldsCounters [09:07:03]wFMCommunicate request_size=4 [09:07:03]MH_SAM_APDU [09:07:03]CAPDU: 80 13 00 00 [09:07:03]Write to MH i2c: E2 08 00 96 1B 80 13 00 00 00 00 00 00 2D [09:07:03]Write i2c OK [09:07:03]MH_I2C_Read... [09:07:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:03]Read from MH i2c: E2 [09:07:03]MH_I2C_Read... [09:07:03]Read from MH i2c: E2 62 00 [09:07:03]MH_I2C_Read... [09:07:03]Read from MH i2c: E2 62 00 96 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4D 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [09:07:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4D 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:07:03]wFMCommunicate OK [09:07:03]SAM_PROTO_GetFieldsCounters done [09:07:03]requested_item shift.num is exist - process it [09:07:03]requested_item shift.opened is exist - process it [09:07:03]req_shift_opened [09:07:03]FM_GetShiftState [09:07:03]SAM_PROTO_GetShiftState [09:07:03]wFMCommunicate request_size=4 [09:07:03]MH_SAM_APDU [09:07:03]CAPDU: 80 13 01 00 [09:07:03]Write to MH i2c: E2 08 00 97 1B 80 13 01 00 00 00 00 00 2F [09:07:03]Write i2c OK [09:07:03]MH_I2C_Read... [09:07:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:03]Read from MH i2c: E2 [09:07:03]MH_I2C_Read... [09:07:03]Read from MH i2c: E2 0E 00 [09:07:03]MH_I2C_Read... [09:07:03]Read from MH i2c: E2 0E 00 97 1B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 3E [09:07:03]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:07:03]wFMCommunicate OK [09:07:03]SAM_PROTO_GetShiftState done [09:07:03]FM_GetShiftState done [09:07:03]req_shift_opened done [09:07:03]requested_item shift.open_date is exist - process it [09:07:03]req_shift_open_date [09:07:03]req_shift_open_date done [09:07:03]produce_requested_data done [09:07:03]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201293,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:07:03]process_action_free close_receipt [09:07:03]json_value_free [09:07:03]json_value_free done [09:07:03]process_json_proto returns [09:07:03]Send response to host [09:07:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201293,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:07:03]free response buf [09:07:03]execute_script done [09:07:03]execute_script returns [09:07:03]free content buf [09:07:03]Sock 7.Close socket [09:07:03]Sock 7.Thread stoped [09:07:07]OFD Sender: No OFD packet to send [09:07:12]OFD Sender: No OFD packet to send [09:07:17]OFD Sender: No OFD packet to send [09:07:22]OFD Sender: No OFD packet to send [09:07:27]OFD Sender: No OFD packet to send [09:07:32]OFD Sender: No OFD packet to send [09:07:37]OFD Sender: No OFD packet to send [09:07:42]OFD Sender: No OFD packet to send [09:07:47]OFD Sender: No OFD packet to send [09:07:52]OFD Sender: No OFD packet to send [09:07:57]OFD Sender: No OFD packet to send [09:08:02]OFD Sender: No OFD packet to send [09:08:07]OFD Sender: No OFD packet to send [09:08:12]OFD Sender: No OFD packet to send [09:08:17]OFD Sender: No OFD packet to send [09:08:22]OFD Sender: No OFD packet to send [09:08:27]OFD Sender: No OFD packet to send [09:08:32]OFD Sender: No OFD packet to send [09:08:37]OFD Sender: No OFD packet to send [09:08:42]OFD Sender: No OFD packet to send [09:08:47]OFD Sender: No OFD packet to send [09:08:52]OFD Sender: No OFD packet to send [09:08:54]accept exits with 9 [09:08:54]New connection [09:08:54]New thread 3067415908 created [09:08:54]Thread 3067559268 joined [09:08:54]Waiting for new connection... [09:08:54] Sock 9.Parse request [09:08:54]Sock 9.Check first char [09:08:54]Sock 9.First char is OK [09:08:54]request: POST /json_proto HTTP/1.0 [09:08:54]Method: POST [09:08:54]URL: /json_proto [09:08:54]Method is POST - this is cgi request [09:08:54]url: /json_proto [09:08:54]query_string will be loaded in cgi processing [09:08:54]execute_cgi json_proto POST (null) [09:08:54]execute_cgi path=json_proto method=POST [09:08:54]POST find Content-Length [09:08:54]Host: 172.17.63.195:8080 [09:08:54]Content-Length: 677 [09:08:54]Content-Type: application/json [09:08:54] [09:08:54]POST finish read [09:08:54]Found Content-Length = 677 [09:08:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:08:54]execute_script... [09:08:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:08:54]POST & json_proto [09:08:54]process_json_proto [09:08:54]json parsed OK: [09:08:54]protocol is kg_v1.0 [09:08:54]action value=close_receipt [09:08:54]process_action close_receipt [09:08:54]cmd_close_receipt [09:08:54]MH_GetDate [09:08:54]Write to MH i2c: F0 00 00 98 1B A2 [09:08:54]Write i2c OK [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: F0 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: F0 09 00 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: F0 09 00 98 1B 00 A9 B1 1C 67 68 46 19 67 B6 [09:08:54]GetLastDocTimeStamp 1729933623 [09:08:54]current date 1729933737 [09:08:54]FM_GetShiftState [09:08:54]SAM_PROTO_GetShiftState [09:08:54]wFMCommunicate request_size=4 [09:08:54]MH_SAM_APDU [09:08:54]CAPDU: 80 13 01 00 [09:08:54]Write to MH i2c: E2 08 00 99 1B 80 13 01 00 00 00 00 00 31 [09:08:54]Write i2c OK [09:08:54]MH_I2C_Read... [09:08:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:54]Read from MH i2c: E2 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: E2 0E 00 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: E2 0E 00 99 1B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 40 [09:08:54]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:08:54]wFMCommunicate OK [09:08:54]SAM_PROTO_GetShiftState done [09:08:54]FM_GetShiftState done [09:08:54]opened in 1729900879 [09:08:54]opened+sec_in_day 1729987279 [09:08:54]quantity*price = 20003 [09:08:54]sum+1 = 20004 [09:08:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 56 26.10.2024 09:08 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201294 ФПД: 270130150697722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090857&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201294&fm=270130150697722&tin=02508201610067®Number=0000000000091777&sum=20000 [09:08:55]StoreToDocumentArchive [09:08:55]shift 543 fd 201294 [09:08:55]save to /storage/0543/doc_00201294 [09:08:55]save last doc name /storage/0543/doc_00201294 to /storage/kkm_last_doc_name [09:08:55]save OK [09:08:55]Clear old archive folders... [09:08:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:08:55]tlvbuf is 0173FE10 [09:08:55]SAM_PROTO_ClearQueue [09:08:55]wFMCommunicate request_size=4 [09:08:55]MH_SAM_APDU [09:08:55]CAPDU: 80 09 00 00 [09:08:55]Write to MH i2c: E2 08 00 A6 1B 80 09 00 00 00 00 00 00 33 [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:55]Read from MH i2c: E2 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 03 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 03 00 A6 1B 00 90 00 35 [09:08:55]RAPDU: 90 00 [09:08:55]wFMCommunicate OK [09:08:55]SAM_PROTO_ClearQueue done [09:08:55]KKMCreateOFDPacket [09:08:55]OFDProtocolAddRootSTLVToBuf [09:08:55]FM_MakeSignedData [09:08:55]FM_MakeSignedData [09:08:55]SAM_PROTO_SignData [09:08:55]wFMCommunicate request_size=4 [09:08:55]MH_SAM_APDU [09:08:55]CAPDU: 80 0D 01 02 [09:08:55]Write to MH i2c: E2 08 00 A7 1B 80 0D 01 02 00 00 00 00 3B [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:55]Read from MH i2c: E2 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 03 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 03 00 A7 1B 00 90 00 36 [09:08:55]RAPDU: 90 00 [09:08:55]wFMCommunicate OK [09:08:55]wFMCommunicate request_size=255 [09:08:55]MH_SAM_APDU [09:08:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 38 00 00 00 F4 03 04 00 A9 B1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4E 12 03 00 35 04 06 00 F5 [09:08:55]Write to MH i2c: E2 02 01 A8 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 32 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 38 00 00 00 F4 03 04 00 A9 B1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4E 12 03 00 35 04 06 00 F5 00 00 1F [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:55]Read from MH i2c: E2 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 03 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 03 00 A8 1B 00 90 00 37 [09:08:55]RAPDU: 90 00 [09:08:55]wFMCommunicate OK [09:08:55]wFMCommunicate request_size=10 [09:08:55]MH_SAM_APDU [09:08:55]CAPDU: 80 0D 02 02 05 AE 93 AC EA FA [09:08:55]Write to MH i2c: E2 0D 00 A9 1B 80 0D 02 02 05 00 AE 93 AC EA FA 00 00 19 [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:55]Read from MH i2c: E2 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 03 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 03 00 A9 1B 00 90 00 38 [09:08:55]RAPDU: 90 00 [09:08:55]wFMCommunicate OK [09:08:55]wFMCommunicate request_size=4 [09:08:55]MH_SAM_APDU [09:08:55]CAPDU: 80 0D 03 02 [09:08:55]Write to MH i2c: E2 08 00 AA 1B 80 0D 03 02 00 00 00 00 40 [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:56]Read from MH i2c: E2 [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: E2 0B 00 [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: E2 0B 00 AA 1B 00 0B 0C 41 2E B3 B7 DF FD 90 00 0D [09:08:56]RAPDU: 0B 0C 41 2E B3 B7 DF FD 90 00 [09:08:56]wFMCommunicate OK [09:08:56]SAM_PROTO_SignData done [09:08:56]FM_MakeSignedData done [09:08:56]CreateOFDProtocolMessage [09:08:56]wFMCommunicate request_size=4 [09:08:56]MH_SAM_APDU [09:08:56]CAPDU: 80 11 00 00 [09:08:56]Write to MH i2c: E2 08 00 AB 1B 80 11 00 00 00 00 00 00 40 [09:08:56]Write i2c OK [09:08:56]MH_I2C_Read... [09:08:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:56]Read from MH i2c: E2 [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: E2 17 00 [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: E2 17 00 AB 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 95 [09:08:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:08:56]wFMCommunicate OK [09:08:56]CreateOFDProtocolMessage done [09:08:56]OFDSenderStorePacket 201294 [09:08:56]StoreOFDPacket docnum=201294 [09:08:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1C E0 07 01 21 59 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 32 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 38 00 00 00 F4 03 04 00 A9 B1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4E 12 03 00 35 04 06 00 F5 AE 93 AC EA FA 0B 0C 41 2E B3 B7 DF FD [09:08:56]CheckFolder [09:08:56]dirname=/storage/ofd_packets [09:08:56]CheckFolder done [09:08:56]ProducePacketName [09:08:56]name=ofd_packets/00201294 [09:08:56]NVStorageSaveData ofd_packets/00201294 [09:08:56]File name is /storage/ofd_packets/00201294 [09:08:56]Write 301 bytes [09:08:56]NVStorageSaveData done [09:08:56]OFDSenderStorePacket done [09:08:56]KKMCreateOFDPacket done [09:08:56]NVStorageSaveData kkm_last_timestamp [09:08:56]File name is /storage/kkm_last_timestamp [09:08:56]Write 4 bytes [09:08:56]NVStorageSaveData done [09:08:56]ExternCall_PrintAddStr [09:08:56]wPrintStart [09:08:56]Write to MH i2c: 01 00 00 AC 1B C7 [09:08:56]Write i2c OK [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: 01 [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: 01 07 00 [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: 01 07 00 AC 1B 00 00 00 00 00 FF 0F DC [09:08:56]RasterBufferAndPrint [09:08:56]line Счет N : (1)449041 [09:08:56]line ИНН: 02508201610067 [09:08:56]line Контрольно-Кассовый Чек [09:08:56]line ПРОДАЖА [09:08:56]line ТРК (МРК, ГНК) : 41 [09:08:56]line Товар: 2710124130 [09:08:56]line Аи-92-К-2 [09:08:56]line 2.990 * 66.90 [09:08:56]line = 200.03 [09:08:56]line НДС 12% НСП 1% [09:08:56]line > о реализуемом товаре [09:08:56]line ОКРУГЛЕНИЕ: -0.03 [09:08:56]line ИТОГО: 200.00 [09:08:56]line Внесено: 200.00 [09:08:56]line СДАЧА: 0.00 [09:08:56]line НСП 1% : 1.77 [09:08:56]line НДС 12% : 21.24 [09:08:56]line Наличными: 200.00 [09:08:56]line Безнал.: 0.00 [09:08:56]line Место: АЗС № 171 "Партнер Нефть" [09:08:56]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:08:56]line СНО: Общий режим [09:08:56]line Чек 56 26.10.2024 09:08 [09:08:56]line Смена: 543 ФФД: 1.0 [09:08:56]line ЗНМ: 0300000109 [09:08:56]line РНМ: 0000000000091777 [09:08:56]line Версия ККМ: 001 [09:08:56]line ФМ: 0000000000871756 [09:08:56]line ФД: 201294 [09:08:56]line ФПД: 270130150697722 [09:08:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090857&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201294&fm=270130150697722&tin=02508201610067®Number=0000000000091777&sum=20000 [09:08:56]OFD Sender: Processing packet 201294 [packets to send 112, broken 111] [09:08:56]ProducePacketName [09:08:56]name=ofd_packets/00201294 [09:08:56]OFD Sender: To server: pG, [09:08:56]CommunicateWithHost lk.salyk.kg:30040 [09:08:56]ConnectInit lk.salyk.kg [09:08:56]written 0, free lines is 4095 [09:08:56]Connected sock=10 [09:08:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1C E0 07 01 21 59 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 32 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 38 00 00 00 F4 03 04 00 A9 B1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4E 12 03 00 35 04 06 00 F5 AE 93 AC EA FA 0B 0C 41 2E B3 B7 DF FD [09:08:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 19 4A 47 00 7D 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4E 12 03 00 F4 03 04 00 53 5D 1C 67 B6 04 01 00 00 2B 30 31 AA 7C BC FE 96 [09:08:56]CommunicateWithHost err = 0 [09:08:56]CheckOFDResponse [09:08:56]1017 (14) - 77093643461234 [09:08:56]1041 (16) - 0000000000871756 [09:08:56]1040 (4) - 201294 [09:08:56]1012 (4) - 26.10.2024 03:09 [09:08:56]1206 (1) - 0 [09:08:56]OFD Sender: Remove packet 201294 [09:08:56]ProducePacketName [09:08:56]name=ofd_packets/00201294 [09:08:56]NVStorageDeleteData [09:08:56]Write to MH i2c: 01 00 00 D7 1B F2 [09:08:56]Write i2c OK [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: 01 [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: 01 07 00 [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: 01 07 00 D7 1B 00 00 00 00 00 B3 0C B8 [09:08:56]RasterBufferAndPrint [09:08:56]line [09:08:56]line [09:08:56]line [09:08:56]line [09:08:56]line [09:08:56]written 0, free lines is 3256 [09:08:56]MH_Cut [09:08:56]Write to MH i2c: D1 01 00 DE 1B 01 CB [09:08:56]Write i2c OK [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: D1 [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: D1 01 00 [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: D1 01 00 DE 1B 00 CA [09:08:56]Write to MH i2c: 01 00 00 DF 1B FA [09:08:56]Write i2c OK [09:08:56]MH_I2C_Read... [09:08:57]OFD Sender: No OFD packet to send [09:08:57]*** Cut start [09:08:57]*** Purtial cut [09:08:57]*** Stage 1: CUTSNS_PIN = 1 [09:08:57]Read from MH i2c: 01 [09:08:57]MH_I2C_Read... [09:08:57]*** Stop cut motor [09:08:58]*** Cut end [09:08:58]Read from MH i2c: 01 07 00 [09:08:58]MH_I2C_Read... [09:08:58]Read from MH i2c: 01 07 00 DF 1B 00 00 00 00 00 FF 0F 0F [09:08:58]process_action close_receipt done [09:08:58]requested_data is exist [09:08:58]produce_requested_data [09:08:58]requested_item fm.sn is exist - process it [09:08:58]wFMCommunicate request_size=4 [09:08:58]MH_SAM_APDU [09:08:58]CAPDU: 80 11 00 00 [09:08:58]Write to MH i2c: E2 08 00 E0 1B 80 11 00 00 00 00 00 00 75 [09:08:58]Write i2c OK [09:08:58]MH_I2C_Read... [09:08:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:58]Read from MH i2c: E2 [09:08:58]MH_I2C_Read... [09:08:58]Read from MH i2c: E2 17 00 [09:08:58]MH_I2C_Read... [09:08:58]Read from MH i2c: E2 17 00 E0 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CA [09:08:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:08:58]wFMCommunicate OK [09:08:58]requested_item fd.num is exist - process it [09:08:58]SAM_PROTO_GetFieldsCounters [09:08:58]wFMCommunicate request_size=4 [09:08:58]MH_SAM_APDU [09:08:58]CAPDU: 80 13 00 00 [09:08:58]Write to MH i2c: E2 08 00 E1 1B 80 13 00 00 00 00 00 00 78 [09:08:58]Write i2c OK [09:08:58]MH_I2C_Read... [09:08:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:58]Read from MH i2c: E2 [09:08:58]MH_I2C_Read... [09:08:58]Read from MH i2c: E2 62 00 [09:08:58]MH_I2C_Read... [09:08:58]Read from MH i2c: E2 62 00 E1 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4E 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [09:08:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4E 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:08:58]wFMCommunicate OK [09:08:58]SAM_PROTO_GetFieldsCounters done [09:08:58]requested_item shift.num is exist - process it [09:08:58]requested_item shift.opened is exist - process it [09:08:58]req_shift_opened [09:08:58]FM_GetShiftState [09:08:58]SAM_PROTO_GetShiftState [09:08:58]wFMCommunicate request_size=4 [09:08:58]MH_SAM_APDU [09:08:58]CAPDU: 80 13 01 00 [09:08:58]Write to MH i2c: E2 08 00 E2 1B 80 13 01 00 00 00 00 00 7A [09:08:58]Write i2c OK [09:08:58]MH_I2C_Read... [09:08:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:58]Read from MH i2c: E2 [09:08:58]MH_I2C_Read... [09:08:58]Read from MH i2c: E2 0E 00 [09:08:58]MH_I2C_Read... [09:08:58]Read from MH i2c: E2 0E 00 E2 1B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 89 [09:08:58]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:08:58]wFMCommunicate OK [09:08:58]SAM_PROTO_GetShiftState done [09:08:58]FM_GetShiftState done [09:08:58]req_shift_opened done [09:08:58]requested_item shift.open_date is exist - process it [09:08:58]req_shift_open_date [09:08:58]req_shift_open_date done [09:08:58]produce_requested_data done [09:08:58]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201294,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:08:58]process_action_free close_receipt [09:08:58]json_value_free [09:08:58]json_value_free done [09:08:58]process_json_proto returns [09:08:58]Send response to host [09:08:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201294,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:08:58]free response buf [09:08:58]execute_script done [09:08:58]execute_script returns [09:08:58]free content buf [09:08:58]Sock 9.Close socket [09:08:58]Sock 9.Thread stoped [09:09:02]OFD Sender: No OFD packet to send [09:09:07]OFD Sender: No OFD packet to send [09:09:12]OFD Sender: No OFD packet to send [09:09:17]OFD Sender: No OFD packet to send [09:09:22]OFD Sender: No OFD packet to send [09:09:27]OFD Sender: No OFD packet to send [09:09:32]OFD Sender: No OFD packet to send [09:09:37]OFD Sender: No OFD packet to send [09:09:42]OFD Sender: No OFD packet to send [09:09:47]OFD Sender: No OFD packet to send [09:09:52]OFD Sender: No OFD packet to send [09:09:57]OFD Sender: No OFD packet to send [09:10:02]OFD Sender: No OFD packet to send [09:10:07]OFD Sender: No OFD packet to send [09:10:12]OFD Sender: No OFD packet to send [09:10:17]OFD Sender: No OFD packet to send [09:10:22]OFD Sender: No OFD packet to send [09:10:27]OFD Sender: No OFD packet to send [09:10:32]OFD Sender: No OFD packet to send [09:10:37]OFD Sender: No OFD packet to send [09:10:42]OFD Sender: No OFD packet to send [09:10:47]OFD Sender: No OFD packet to send [09:10:52]OFD Sender: No OFD packet to send [09:10:57]OFD Sender: No OFD packet to send [09:10:58]accept exits with 7 [09:10:58]New connection [09:10:58]New thread 3067559268 created [09:10:58]Thread 3067415908 joined [09:10:58]Waiting for new connection... [09:10:58] Sock 7.Parse request [09:10:58]Sock 7.Check first char [09:10:58]Sock 7.First char is OK [09:10:58]request: POST /json_proto HTTP/1.0 [09:10:58]Method: POST [09:10:58]URL: /json_proto [09:10:58]Method is POST - this is cgi request [09:10:58]url: /json_proto [09:10:58]query_string will be loaded in cgi processing [09:10:58]execute_cgi json_proto POST (null) [09:10:58]execute_cgi path=json_proto method=POST [09:10:58]POST find Content-Length [09:10:58]Host: 172.17.63.195:8080 [09:10:58]Content-Length: 677 [09:10:58]Content-Type: application/json [09:10:58] [09:10:58]POST finish read [09:10:58]Found Content-Length = 677 [09:10:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:10:58]execute_script... [09:10:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:10:58]POST & json_proto [09:10:58]process_json_proto [09:10:58]json parsed OK: [09:10:58]protocol is kg_v1.0 [09:10:58]action value=close_receipt [09:10:58]process_action close_receipt [09:10:58]cmd_close_receipt [09:10:58]MH_GetDate [09:10:58]Write to MH i2c: F0 00 00 E3 1B ED [09:10:58]Write i2c OK [09:10:58]MH_I2C_Read... [09:10:58]Read from MH i2c: F0 [09:10:58]MH_I2C_Read... [09:10:58]Read from MH i2c: F0 09 00 [09:10:58]MH_I2C_Read... [09:10:58]Read from MH i2c: F0 09 00 E3 1B 00 26 B2 1C 67 68 46 19 67 7F [09:10:58]GetLastDocTimeStamp 1729933737 [09:10:58]current date 1729933862 [09:10:58]FM_GetShiftState [09:10:58]SAM_PROTO_GetShiftState [09:10:58]wFMCommunicate request_size=4 [09:10:58]MH_SAM_APDU [09:10:58]CAPDU: 80 13 01 00 [09:10:58]Write to MH i2c: E2 08 00 E4 1B 80 13 01 00 00 00 00 00 7C [09:10:58]Write i2c OK [09:10:58]MH_I2C_Read... [09:10:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:58]Read from MH i2c: E2 [09:10:58]MH_I2C_Read... [09:10:58]Read from MH i2c: E2 0E 00 [09:10:58]MH_I2C_Read... [09:10:58]Read from MH i2c: E2 0E 00 E4 1B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 8B [09:10:58]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:10:58]wFMCommunicate OK [09:10:58]SAM_PROTO_GetShiftState done [09:10:58]FM_GetShiftState done [09:10:58]opened in 1729900879 [09:10:58]opened+sec_in_day 1729987279 [09:10:58]quantity*price = 20003 [09:10:58]sum+1 = 20004 [09:10:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 57 26.10.2024 09:11 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201295 ФПД: 166229045418946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091102&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201295&fm=166229045418946&tin=02508201610067®Number=0000000000091777&sum=20000 [09:10:59]StoreToDocumentArchive [09:10:59]shift 543 fd 201295 [09:10:59]save to /storage/0543/doc_00201295 [09:10:59]save last doc name /storage/0543/doc_00201295 to /storage/kkm_last_doc_name [09:10:59]save OK [09:10:59]Clear old archive folders... [09:10:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:10:59]tlvbuf is B6F55510 [09:10:59]SAM_PROTO_ClearQueue [09:10:59]wFMCommunicate request_size=4 [09:10:59]MH_SAM_APDU [09:10:59]CAPDU: 80 09 00 00 [09:10:59]Write to MH i2c: E2 08 00 F1 1B 80 09 00 00 00 00 00 00 7E [09:10:59]Write i2c OK [09:10:59]MH_I2C_Read... [09:10:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:59]Read from MH i2c: E2 [09:10:59]MH_I2C_Read... [09:10:59]Read from MH i2c: E2 03 00 [09:10:59]MH_I2C_Read... [09:10:59]Read from MH i2c: E2 03 00 F1 1B 00 90 00 80 [09:10:59]RAPDU: 90 00 [09:10:59]wFMCommunicate OK [09:10:59]SAM_PROTO_ClearQueue done [09:10:59]KKMCreateOFDPacket [09:10:59]OFDProtocolAddRootSTLVToBuf [09:10:59]FM_MakeSignedData [09:10:59]FM_MakeSignedData [09:10:59]SAM_PROTO_SignData [09:10:59]wFMCommunicate request_size=4 [09:10:59]MH_SAM_APDU [09:10:59]CAPDU: 80 0D 01 02 [09:10:59]Write to MH i2c: E2 08 00 F2 1B 80 0D 01 02 00 00 00 00 86 [09:10:59]Write i2c OK [09:10:59]MH_I2C_Read... [09:10:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:59]Read from MH i2c: E2 [09:10:59]MH_I2C_Read... [09:10:59]Read from MH i2c: E2 03 00 [09:10:59]MH_I2C_Read... [09:10:59]Read from MH i2c: E2 03 00 F2 1B 00 90 00 81 [09:10:59]RAPDU: 90 00 [09:10:59]wFMCommunicate OK [09:10:59]wFMCommunicate request_size=255 [09:10:59]MH_SAM_APDU [09:10: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 32 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 39 00 00 00 F4 03 04 00 26 B2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4F 12 03 00 35 04 06 00 97 [09:10:59]Write to MH i2c: E2 02 01 F3 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 32 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 39 00 00 00 F4 03 04 00 26 B2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4F 12 03 00 35 04 06 00 97 00 00 8C [09:10:59]Write i2c OK [09:10:59]MH_I2C_Read... [09:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:00]Read from MH i2c: E2 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 03 00 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 03 00 F3 1B 00 90 00 82 [09:11:00]RAPDU: 90 00 [09:11:00]wFMCommunicate OK [09:11:00]wFMCommunicate request_size=10 [09:11:00]MH_SAM_APDU [09:11:00]CAPDU: 80 0D 02 02 05 2F 37 34 1B C2 [09:11:00]Write to MH i2c: E2 0D 00 F4 1B 80 0D 02 02 05 00 2F 37 34 1B C2 00 00 0A [09:11:00]Write i2c OK [09:11:00]MH_I2C_Read... [09:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:00]Read from MH i2c: E2 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 03 00 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 03 00 F4 1B 00 90 00 83 [09:11:00]RAPDU: 90 00 [09:11:00]wFMCommunicate OK [09:11:00]wFMCommunicate request_size=4 [09:11:00]MH_SAM_APDU [09:11:00]CAPDU: 80 0D 03 02 [09:11:00]Write to MH i2c: E2 08 00 F5 1B 80 0D 03 02 00 00 00 00 8B [09:11:00]Write i2c OK [09:11:00]MH_I2C_Read... [09:11:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:00]Read from MH i2c: E2 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 0B 00 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 0B 00 F5 1B 00 DE 33 C3 5E 01 CB E0 C2 90 00 2C [09:11:00]RAPDU: DE 33 C3 5E 01 CB E0 C2 90 00 [09:11:00]wFMCommunicate OK [09:11:00]SAM_PROTO_SignData done [09:11:00]FM_MakeSignedData done [09:11:00]CreateOFDProtocolMessage [09:11:00]wFMCommunicate request_size=4 [09:11:00]MH_SAM_APDU [09:11:00]CAPDU: 80 11 00 00 [09:11:00]Write to MH i2c: E2 08 00 F6 1B 80 11 00 00 00 00 00 00 8B [09:11:00]Write i2c OK [09:11:00]MH_I2C_Read... [09:11:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:00]Read from MH i2c: E2 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 17 00 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 17 00 F6 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E0 [09:11:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:11:00]wFMCommunicate OK [09:11:00]CreateOFDProtocolMessage done [09:11:00]OFDSenderStorePacket 201295 [09:11:00]StoreOFDPacket docnum=201295 [09:11:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 04 1A 07 01 FC 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 39 00 00 00 F4 03 04 00 26 B2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4F 12 03 00 35 04 06 00 97 2F 37 34 1B C2 DE 33 C3 5E 01 CB E0 C2 [09:11:00]CheckFolder [09:11:00]dirname=/storage/ofd_packets [09:11:00]CheckFolder done [09:11:00]ProducePacketName [09:11:00]name=ofd_packets/00201295 [09:11:00]NVStorageSaveData ofd_packets/00201295 [09:11:00]File name is /storage/ofd_packets/00201295 [09:11:00]Write 301 bytes [09:11:00]NVStorageSaveData done [09:11:00]OFDSenderStorePacket done [09:11:00]KKMCreateOFDPacket done [09:11:00]NVStorageSaveData kkm_last_timestamp [09:11:00]File name is /storage/kkm_last_timestamp [09:11:00]Write 4 bytes [09:11:00]NVStorageSaveData done [09:11:00]ExternCall_PrintAddStr [09:11:00]wPrintStart [09:11:00]Write to MH i2c: 01 00 00 F7 1B 12 [09:11:00]Write i2c OK [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: 01 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: 01 07 00 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: 01 07 00 F7 1B 00 00 00 00 00 FF 0F 27 [09:11:00]RasterBufferAndPrint [09:11:00]line Счет N : (1)449042 [09:11:00]line ИНН: 02508201610067 [09:11:00]line Контрольно-Кассовый Чек [09:11:00]line ПРОДАЖА [09:11:00]line ТРК (МРК, ГНК) : 31 [09:11:00]line Товар: 2710124130 [09:11:00]line Аи-92-К-2 [09:11:00]line 2.990 * 66.90 [09:11:00]line = 200.03 [09:11:00]line НДС 12% НСП 1% [09:11:00]line > о реализуемом товаре [09:11:00]line ОКРУГЛЕНИЕ: -0.03 [09:11:00]line ИТОГО: 200.00 [09:11:00]line Внесено: 200.00 [09:11:00]line СДАЧА: 0.00 [09:11:00]line НСП 1% : 1.77 [09:11:00]line НДС 12% : 21.24 [09:11:00]line Наличными: 200.00 [09:11:00]line Безнал.: 0.00 [09:11:00]line Место: АЗС № 171 "Партнер Нефть" [09:11:00]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:11:00]line СНО: Общий режим [09:11:00]line Чек 57 26.10.2024 09:11 [09:11:00]line Смена: 543 ФФД: 1.0 [09:11:00]line ЗНМ: 0300000109 [09:11:00]line РНМ: 0000000000091777 [09:11:00]line Версия ККМ: 001 [09:11:00]line ФМ: 0000000000871756 [09:11:00]line ФД: 201295 [09:11:00]line ФПД: 166229045418946 [09:11:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091102&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201295&fm=166229045418946&tin=02508201610067®Number=0000000000091777&sum=20000 [09:11:00]OFD Sender: Processing packet 201295 [packets to send 112, broken 111] [09:11:00]ProducePacketName [09:11:00]name=ofd_packets/00201295 [09:11:00]OFD Sender: To server: pG, [09:11:00]CommunicateWithHost lk.salyk.kg:30040 [09:11:00]ConnectInit lk.salyk.kg [09:11:00]written 0, free lines is 4095 [09:11:00]Connected sock=9 [09:11:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 04 1A 07 01 FC 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 39 00 00 00 F4 03 04 00 26 B2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4F 12 03 00 35 04 06 00 97 2F 37 34 1B C2 DE 33 C3 5E 01 CB E0 C2 [09:11:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 92 AB 47 00 03 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4F 12 03 00 F4 03 04 00 CF 5D 1C 67 B6 04 01 00 00 09 32 6C 54 90 06 5D 83 [09:11:01]CommunicateWithHost err = 0 [09:11:01]CheckOFDResponse [09:11:01]1017 (14) - 77093643461234 [09:11:01]1041 (16) - 0000000000871756 [09:11:01]1040 (4) - 201295 [09:11:01]1012 (4) - 26.10.2024 03:11 [09:11:01]1206 (1) - 0 [09:11:01]OFD Sender: Remove packet 201295 [09:11:01]ProducePacketName [09:11:01]name=ofd_packets/00201295 [09:11:01]NVStorageDeleteData [09:11:01]Write to MH i2c: 01 00 00 22 1C 3E [09:11:01]Write i2c OK [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: 01 [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: 01 07 00 [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: 01 07 00 22 1C 00 00 00 00 00 9D 0C EE [09:11:01]RasterBufferAndPrint [09:11:01]line [09:11:01]line [09:11:01]line [09:11:01]line [09:11:01]line [09:11:01]written 0, free lines is 3235 [09:11:01]MH_Cut [09:11:01]Write to MH i2c: D1 01 00 29 1C 01 17 [09:11:01]Write i2c OK [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: D1 [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: D1 01 00 [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: D1 01 00 29 1C 00 16 [09:11:01]Write to MH i2c: 01 00 00 2A 1C 46 [09:11:01]Write i2c OK [09:11:01]MH_I2C_Read... [09:11:01]OFD Sender: No OFD packet to send [09:11:02]*** Cut start [09:11:02]*** Purtial cut [09:11:02]*** Stage 1: CUTSNS_PIN = 1 [09:11:02]Read from MH i2c: 01 [09:11:02]MH_I2C_Read... [09:11:02]*** Stop cut motor [09:11:02]*** Cut end [09:11:02]Read from MH i2c: 01 07 00 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: 01 07 00 2A 1C 00 00 00 00 00 FF 0F 5B [09:11:02]process_action close_receipt done [09:11:02]requested_data is exist [09:11:02]produce_requested_data [09:11:02]requested_item fm.sn is exist - process it [09:11:02]wFMCommunicate request_size=4 [09:11:02]MH_SAM_APDU [09:11:02]CAPDU: 80 11 00 00 [09:11:02]Write to MH i2c: E2 08 00 2B 1C 80 11 00 00 00 00 00 00 C1 [09:11:02]Write i2c OK [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 [09:11:02]MH_I2C_Read... [09:11:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:02]Read from MH i2c: E2 17 00 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 17 00 2B 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 16 [09:11:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:11:02]wFMCommunicate OK [09:11:02]requested_item fd.num is exist - process it [09:11:02]SAM_PROTO_GetFieldsCounters [09:11:02]wFMCommunicate request_size=4 [09:11:02]MH_SAM_APDU [09:11:02]CAPDU: 80 13 00 00 [09:11:02]Write to MH i2c: E2 08 00 2C 1C 80 13 00 00 00 00 00 00 C4 [09:11:02]Write i2c OK [09:11:02]MH_I2C_Read... [09:11:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:02]Read from MH i2c: E2 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 62 00 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 62 00 2C 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4F 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [09:11:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4F 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:11:02]wFMCommunicate OK [09:11:02]SAM_PROTO_GetFieldsCounters done [09:11:02]requested_item shift.num is exist - process it [09:11:02]requested_item shift.opened is exist - process it [09:11:02]req_shift_opened [09:11:02]FM_GetShiftState [09:11:02]SAM_PROTO_GetShiftState [09:11:02]wFMCommunicate request_size=4 [09:11:02]MH_SAM_APDU [09:11:02]CAPDU: 80 13 01 00 [09:11:02]Write to MH i2c: E2 08 00 2D 1C 80 13 01 00 00 00 00 00 C6 [09:11:02]Write i2c OK [09:11:02]MH_I2C_Read... [09:11:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:02]Read from MH i2c: E2 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 0E 00 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 0E 00 2D 1C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D5 [09:11:02]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:11:02]wFMCommunicate OK [09:11:02]SAM_PROTO_GetShiftState done [09:11:02]FM_GetShiftState done [09:11:02]req_shift_opened done [09:11:02]requested_item shift.open_date is exist - process it [09:11:02]req_shift_open_date [09:11:02]req_shift_open_date done [09:11:02]produce_requested_data done [09:11:02]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201295,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:11:02]process_action_free close_receipt [09:11:02]json_value_free [09:11:02]json_value_free done [09:11:02]process_json_proto returns [09:11:02]Send response to host [09:11:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201295,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:11:02]free response buf [09:11:02]execute_script done [09:11:02]execute_script returns [09:11:02]free content buf [09:11:02]Sock 7.Close socket [09:11:02]Sock 7.Thread stoped [09:11:06]OFD Sender: No OFD packet to send [09:11:11]OFD Sender: No OFD packet to send [09:11:16]OFD Sender: No OFD packet to send [09:11:21]OFD Sender: No OFD packet to send [09:11:26]OFD Sender: No OFD packet to send [09:11:31]OFD Sender: No OFD packet to send [09:11:36]OFD Sender: No OFD packet to send [09:11:41]OFD Sender: No OFD packet to send [09:11:46]OFD Sender: No OFD packet to send [09:11:47]accept exits with 10 [09:11:47]New connection [09:11:47]New thread 3067415908 created [09:11:47]Thread 3067559268 joined [09:11:47]Waiting for new connection... [09:11:47] Sock 10.Parse request [09:11:47]Sock 10.Check first char [09:11:47]Sock 10.First char is OK [09:11:47]request: POST /json_proto HTTP/1.0 [09:11:47]Method: POST [09:11:47]URL: /json_proto [09:11:47]Method is POST - this is cgi request [09:11:47]url: /json_proto [09:11:47]query_string will be loaded in cgi processing [09:11:47]execute_cgi json_proto POST (null) [09:11:47]execute_cgi path=json_proto method=POST [09:11:47]POST find Content-Length [09:11:47]Host: 172.17.63.195:8080 [09:11:47]Content-Length: 677 [09:11:47]Content-Type: application/json [09:11:47] [09:11:47]POST finish read [09:11:47]Found Content-Length = 677 [09:11:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:11:47]execute_script... [09:11: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)449044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:11:47]POST & json_proto [09:11:47]process_json_proto [09:11:47]json parsed OK: [09:11:47]protocol is kg_v1.0 [09:11:47]action value=close_receipt [09:11:47]process_action close_receipt [09:11:47]cmd_close_receipt [09:11:47]MH_GetDate [09:11:47]Write to MH i2c: F0 00 00 2E 1C 39 [09:11:47]Write i2c OK [09:11:47]MH_I2C_Read... [09:11:47]Read from MH i2c: F0 [09:11:47]MH_I2C_Read... [09:11:47]Read from MH i2c: F0 09 00 [09:11:47]MH_I2C_Read... [09:11:47]Read from MH i2c: F0 09 00 2E 1C 00 57 B2 1C 67 68 46 19 67 FC [09:11:47]GetLastDocTimeStamp 1729933862 [09:11:47]current date 1729933911 [09:11:47]FM_GetShiftState [09:11:47]SAM_PROTO_GetShiftState [09:11:47]wFMCommunicate request_size=4 [09:11:47]MH_SAM_APDU [09:11:47]CAPDU: 80 13 01 00 [09:11:47]Write to MH i2c: E2 08 00 2F 1C 80 13 01 00 00 00 00 00 C8 [09:11:47]Write i2c OK [09:11:47]MH_I2C_Read... [09:11:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:47]Read from MH i2c: E2 [09:11:47]MH_I2C_Read... [09:11:47]Read from MH i2c: E2 0E 00 [09:11:47]MH_I2C_Read... [09:11:47]Read from MH i2c: E2 0E 00 2F 1C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D7 [09:11:47]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:11:47]wFMCommunicate OK [09:11:47]SAM_PROTO_GetShiftState done [09:11:47]FM_GetShiftState done [09:11:47]opened in 1729900879 [09:11:47]opened+sec_in_day 1729987279 [09:11:47]quantity*price = 40006 [09:11:47]sum+1 = 40007 [09:11:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 58 26.10.2024 09:11 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201296 ФПД: 42080678740780 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091151&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201296&fm=42080678740780&tin=02508201610067®Number=0000000000091777&sum=40000 [09:11:48]StoreToDocumentArchive [09:11:48]shift 543 fd 201296 [09:11:48]save to /storage/0543/doc_00201296 [09:11:48]save last doc name /storage/0543/doc_00201296 to /storage/kkm_last_doc_name [09:11:48]save OK [09:11:48]Clear old archive folders... [09:11:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:11:48]tlvbuf is 0173FB60 [09:11:48]SAM_PROTO_ClearQueue [09:11:48]wFMCommunicate request_size=4 [09:11:48]MH_SAM_APDU [09:11:48]CAPDU: 80 09 00 00 [09:11:48]Write to MH i2c: E2 08 00 3C 1C 80 09 00 00 00 00 00 00 CA [09:11:48]Write i2c OK [09:11:48]MH_I2C_Read... [09:11:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:49]Read from MH i2c: E2 [09:11:49]MH_I2C_Read... [09:11:49]Read from MH i2c: E2 03 00 [09:11:49]MH_I2C_Read... [09:11:49]Read from MH i2c: E2 03 00 3C 1C 00 90 00 CC [09:11:49]RAPDU: 90 00 [09:11:49]wFMCommunicate OK [09:11:49]SAM_PROTO_ClearQueue done [09:11:49]KKMCreateOFDPacket [09:11:49]OFDProtocolAddRootSTLVToBuf [09:11:49]FM_MakeSignedData [09:11:49]FM_MakeSignedData [09:11:49]SAM_PROTO_SignData [09:11:49]wFMCommunicate request_size=4 [09:11:49]MH_SAM_APDU [09:11:49]CAPDU: 80 0D 01 02 [09:11:49]Write to MH i2c: E2 08 00 3D 1C 80 0D 01 02 00 00 00 00 D2 [09:11:49]Write i2c OK [09:11:49]MH_I2C_Read... [09:11:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:49]Read from MH i2c: E2 [09:11:49]MH_I2C_Read... [09:11:49]Read from MH i2c: E2 03 00 [09:11:49]MH_I2C_Read... [09:11:49]Read from MH i2c: E2 03 00 3D 1C 00 90 00 CD [09:11:49]RAPDU: 90 00 [09:11:49]wFMCommunicate OK [09:11:49]wFMCommunicate request_size=255 [09:11:49]MH_SAM_APDU [09:11: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 32 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 3A 00 00 00 F4 03 04 00 57 B2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 50 12 03 00 35 04 06 00 26 [09:11:49]Write to MH i2c: E2 02 01 3E 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 32 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 3A 00 00 00 F4 03 04 00 57 B2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 50 12 03 00 35 04 06 00 26 00 00 A7 [09:11:49]Write i2c OK [09:11:49]MH_I2C_Read... [09:11:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:49]Read from MH i2c: E2 [09:11:49]MH_I2C_Read... [09:11:49]Read from MH i2c: E2 03 00 [09:11:49]MH_I2C_Read... [09:11:49]Read from MH i2c: E2 03 00 3E 1C 00 90 00 CE [09:11:49]RAPDU: 90 00 [09:11:49]wFMCommunicate OK [09:11:49]wFMCommunicate request_size=10 [09:11:49]MH_SAM_APDU [09:11:49]CAPDU: 80 0D 02 02 05 45 AB E8 83 2C [09:11:49]Write to MH i2c: E2 0D 00 3F 1C 80 0D 02 02 05 00 45 AB E8 83 2C 00 00 66 [09:11:49]Write i2c OK [09:11:49]MH_I2C_Read... [09:11:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:49]Read from MH i2c: E2 [09:11:49]MH_I2C_Read... [09:11:49]Read from MH i2c: E2 03 00 [09:11:49]MH_I2C_Read... [09:11:49]Read from MH i2c: E2 03 00 3F 1C 00 90 00 CF [09:11:49]RAPDU: 90 00 [09:11:49]wFMCommunicate OK [09:11:49]wFMCommunicate request_size=4 [09:11:49]MH_SAM_APDU [09:11:49]CAPDU: 80 0D 03 02 [09:11:49]Write to MH i2c: E2 08 00 40 1C 80 0D 03 02 00 00 00 00 D7 [09:11:49]Write i2c OK [09:11:49]MH_I2C_Read... [09:11:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:49]Read from MH i2c: E2 [09:11:49]MH_I2C_Read... [09:11:49]Read from MH i2c: E2 0B 00 [09:11:49]MH_I2C_Read... [09:11:49]Read from MH i2c: E2 0B 00 40 1C 00 21 03 E3 3D 76 01 2A 37 90 00 F4 [09:11:49]RAPDU: 21 03 E3 3D 76 01 2A 37 90 00 [09:11:49]wFMCommunicate OK [09:11:49]SAM_PROTO_SignData done [09:11:49]FM_MakeSignedData done [09:11:49]CreateOFDProtocolMessage [09:11:49]wFMCommunicate request_size=4 [09:11:49]MH_SAM_APDU [09:11:49]CAPDU: 80 11 00 00 [09:11:49]Write to MH i2c: E2 08 00 41 1C 80 11 00 00 00 00 00 00 D7 [09:11:49]Write i2c OK [09:11:49]MH_I2C_Read... [09:11:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:49]Read from MH i2c: E2 [09:11:49]MH_I2C_Read... [09:11:49]Read from MH i2c: E2 17 00 [09:11:49]MH_I2C_Read... [09:11:49]Read from MH i2c: E2 17 00 41 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2C [09:11:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:11:49]wFMCommunicate OK [09:11:49]CreateOFDProtocolMessage done [09:11:49]OFDSenderStorePacket 201296 [09:11:49]StoreOFDPacket docnum=201296 [09:11:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 CC 84 07 01 2B CB 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 32 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 3A 00 00 00 F4 03 04 00 57 B2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 50 12 03 00 35 04 06 00 26 45 AB E8 83 2C 21 03 E3 3D 76 01 2A 37 [09:11:49]CheckFolder [09:11:49]dirname=/storage/ofd_packets [09:11:49]CheckFolder done [09:11:49]ProducePacketName [09:11:49]name=ofd_packets/00201296 [09:11:49]NVStorageSaveData ofd_packets/00201296 [09:11:49]File name is /storage/ofd_packets/00201296 [09:11:49]Write 301 bytes [09:11:49]NVStorageSaveData done [09:11:49]OFDSenderStorePacket done [09:11:49]KKMCreateOFDPacket done [09:11:49]NVStorageSaveData kkm_last_timestamp [09:11:49]File name is /storage/kkm_last_timestamp [09:11:49]Write 4 bytes [09:11:49]NVStorageSaveData done [09:11:49]ExternCall_PrintAddStr [09:11:49]wPrintStart [09:11:49]Write to MH i2c: 01 00 00 42 1C 5E [09:11:49]Write i2c OK [09:11:49]MH_I2C_Read... [09:11:49]Read from MH i2c: 01 [09:11:49]MH_I2C_Read... [09:11:49]Read from MH i2c: 01 07 00 [09:11:49]MH_I2C_Read... [09:11:49]Read from MH i2c: 01 07 00 42 1C 00 00 00 00 00 FF 0F 73 [09:11:49]RasterBufferAndPrint [09:11:49]line Счет N : (1)449044 [09:11:49]line ИНН: 02508201610067 [09:11:49]line Контрольно-Кассовый Чек [09:11:49]line ПРОДАЖА [09:11:49]line ТРК (МРК, ГНК) : 52 [09:11:49]line Товар: 2710124130 [09:11:49]line Аи-92-К-2 [09:11:49]line 5.980 * 66.90 [09:11:49]line = 400.06 [09:11:49]line НДС 12% НСП 1% [09:11:49]line > о реализуемом товаре [09:11:49]line ОКРУГЛЕНИЕ: -0.06 [09:11:49]line ИТОГО: 400.00 [09:11:49]line Внесено: 400.00 [09:11:49]line СДАЧА: 0.00 [09:11:49]line НСП 1% : 3.54 [09:11:49]line НДС 12% : 42.48 [09:11:49]line Наличными: 400.00 [09:11:49]line Безнал.: 0.00 [09:11:49]line Место: АЗС № 171 "Партнер Нефть" [09:11:49]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:11:49]line СНО: Общий режим [09:11:49]line Чек 58 26.10.2024 09:11 [09:11:49]line Смена: 543 ФФД: 1.0 [09:11:49]line ЗНМ: 0300000109 [09:11:49]line РНМ: 0000000000091777 [09:11:49]line Версия ККМ: 001 [09:11:49]line ФМ: 0000000000871756 [09:11:49]line ФД: 201296 [09:11:49]line ФПД: 42080678740780 [09:11:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091151&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201296&fm=42080678740780&tin=02508201610067®Number=0000000000091777&sum=40000 [09:11:49]OFD Sender: Processing packet 201296 [packets to send 112, broken 111] [09:11:49]ProducePacketName [09:11:49]name=ofd_packets/00201296 [09:11:49]OFD Sender: To server: pG, [09:11:49]CommunicateWithHost lk.salyk.kg:30040 [09:11:49]ConnectInit lk.salyk.kg [09:11:49]written 0, free lines is 4095 [09:11:49]Connected sock=9 [09:11:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 CC 84 07 01 2B CB 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 32 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 3A 00 00 00 F4 03 04 00 57 B2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 50 12 03 00 35 04 06 00 26 45 AB E8 83 2C 21 03 E3 3D 76 01 2A 37 [09:11:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 20 86 47 00 F5 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 50 12 03 00 F4 03 04 00 01 5E 1C 67 B6 04 01 00 00 E0 4E CF 18 AD CD 12 01 [09:11:50]CommunicateWithHost err = 0 [09:11:50]CheckOFDResponse [09:11:50]1017 (14) - 77093643461234 [09:11:50]1041 (16) - 0000000000871756 [09:11:50]1040 (4) - 201296 [09:11:50]1012 (4) - 26.10.2024 03:12 [09:11:50]1206 (1) - 0 [09:11:50]OFD Sender: Remove packet 201296 [09:11:50]ProducePacketName [09:11:50]name=ofd_packets/00201296 [09:11:50]NVStorageDeleteData [09:11:50]Write to MH i2c: 01 00 00 6D 1C 89 [09:11:50]Write i2c OK [09:11:50]MH_I2C_Read... [09:11:50]Read from MH i2c: 01 [09:11:50]MH_I2C_Read... [09:11:50]Read from MH i2c: 01 07 00 [09:11:50]MH_I2C_Read... [09:11:50]Read from MH i2c: 01 07 00 6D 1C 00 00 00 00 00 99 0C 35 [09:11:50]RasterBufferAndPrint [09:11:50]line [09:11:50]line [09:11:50]line [09:11:50]line [09:11:50]line [09:11:50]written 0, free lines is 3229 [09:11:50]MH_Cut [09:11:50]Write to MH i2c: D1 01 00 74 1C 01 62 [09:11:50]Write i2c OK [09:11:50]MH_I2C_Read... [09:11:50]Read from MH i2c: D1 [09:11:50]MH_I2C_Read... [09:11:50]Read from MH i2c: D1 01 00 [09:11:50]MH_I2C_Read... [09:11:50]Read from MH i2c: D1 01 00 74 1C 00 61 [09:11:50]Write to MH i2c: 01 00 00 75 1C 91 [09:11:50]Write i2c OK [09:11:50]MH_I2C_Read... [09:11:50]OFD Sender: No OFD packet to send [09:11:51]*** Cut start [09:11:51]*** Purtial cut [09:11:51]*** Stage 1: CUTSNS_PIN = 1 [09:11:51]Read from MH i2c: 01 [09:11:51]MH_I2C_Read... [09:11:51]*** Stop cut motor [09:11:51]*** Cut end [09:11:51]Read from MH i2c: 01 07 00 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: 01 07 00 75 1C 00 00 00 00 00 FF 0F A6 [09:11:51]process_action close_receipt done [09:11:51]requested_data is exist [09:11:51]produce_requested_data [09:11:51]requested_item fm.sn is exist - process it [09:11:51]wFMCommunicate request_size=4 [09:11:51]MH_SAM_APDU [09:11:51]CAPDU: 80 11 00 00 [09:11:51]Write to MH i2c: E2 08 00 76 1C 80 11 00 00 00 00 00 00 0C [09:11:51]Write i2c OK [09:11:51]MH_I2C_Read... [09:11:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:51]Read from MH i2c: E2 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: E2 17 00 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: E2 17 00 76 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 61 [09:11:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:11:51]wFMCommunicate OK [09:11:51]requested_item fd.num is exist - process it [09:11:51]SAM_PROTO_GetFieldsCounters [09:11:51]wFMCommunicate request_size=4 [09:11:51]MH_SAM_APDU [09:11:51]CAPDU: 80 13 00 00 [09:11:51]Write to MH i2c: E2 08 00 77 1C 80 13 00 00 00 00 00 00 0F [09:11:51]Write i2c OK [09:11:51]MH_I2C_Read... [09:11:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:51]Read from MH i2c: E2 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: E2 62 00 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: E2 62 00 77 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 50 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [09:11:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 50 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:11:51]wFMCommunicate OK [09:11:51]SAM_PROTO_GetFieldsCounters done [09:11:51]requested_item shift.num is exist - process it [09:11:51]requested_item shift.opened is exist - process it [09:11:51]req_shift_opened [09:11:51]FM_GetShiftState [09:11:51]SAM_PROTO_GetShiftState [09:11:51]wFMCommunicate request_size=4 [09:11:51]MH_SAM_APDU [09:11:51]CAPDU: 80 13 01 00 [09:11:51]Write to MH i2c: E2 08 00 78 1C 80 13 01 00 00 00 00 00 11 [09:11:51]Write i2c OK [09:11:51]MH_I2C_Read... [09:11:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:51]Read from MH i2c: E2 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: E2 0E 00 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: E2 0E 00 78 1C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 20 [09:11:51]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:11:51]wFMCommunicate OK [09:11:51]SAM_PROTO_GetShiftState done [09:11:51]FM_GetShiftState done [09:11:51]req_shift_opened done [09:11:51]requested_item shift.open_date is exist - process it [09:11:51]req_shift_open_date [09:11:51]req_shift_open_date done [09:11:51]produce_requested_data done [09:11:51]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201296,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:11:51]process_action_free close_receipt [09:11:51]json_value_free [09:11:51]json_value_free done [09:11:51]process_json_proto returns [09:11:51]Send response to host [09:11:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201296,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:11:51]free response buf [09:11:51]execute_script done [09:11:51]execute_script returns [09:11:51]free content buf [09:11:51]Sock 10.Close socket [09:11:51]Sock 10.Thread stoped [09:11:55]OFD Sender: No OFD packet to send [09:12:00]OFD Sender: No OFD packet to send [09:12:05]OFD Sender: No OFD packet to send [09:12:10]OFD Sender: No OFD packet to send [09:12:15]OFD Sender: No OFD packet to send [09:12:20]OFD Sender: No OFD packet to send [09:12:25]OFD Sender: No OFD packet to send [09:12:30]OFD Sender: No OFD packet to send [09:12:35]accept exits with 7 [09:12:35]New connection [09:12:35]New thread 3067559268 created [09:12:35]Thread 3067415908 joined [09:12:35]Waiting for new connection... [09:12:35] Sock 7.Parse request [09:12:35]Sock 7.Check first char [09:12:35]Sock 7.First char is OK [09:12:35]request: POST /json_proto HTTP/1.0 [09:12:35]Method: POST [09:12:35]URL: /json_proto [09:12:35]Method is POST - this is cgi request [09:12:35]url: /json_proto [09:12:35]query_string will be loaded in cgi processing [09:12:35]execute_cgi json_proto POST (null) [09:12:35]execute_cgi path=json_proto method=POST [09:12:35]POST find Content-Length [09:12:35]Host: 172.17.63.195:8080 [09:12:35]Content-Length: 677 [09:12:35]Content-Type: application/json [09:12:35] [09:12:35]POST finish read [09:12:35]Found Content-Length = 677 [09:12:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:12:35]execute_script... [09:12: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)449045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:12:35]POST & json_proto [09:12:35]process_json_proto [09:12:35]json parsed OK: [09:12:35]protocol is kg_v1.0 [09:12:35]action value=close_receipt [09:12:35]process_action close_receipt [09:12:35]cmd_close_receipt [09:12:35]MH_GetDate [09:12:35]Write to MH i2c: F0 00 00 79 1C 84 [09:12:35]Write i2c OK [09:12:35]MH_I2C_Read... [09:12:35]Read from MH i2c: F0 [09:12:35]MH_I2C_Read... [09:12:35]Read from MH i2c: F0 09 00 [09:12:35]MH_I2C_Read... [09:12:35]Read from MH i2c: F0 09 00 79 1C 00 86 B2 1C 67 68 46 19 67 76 [09:12:35]GetLastDocTimeStamp 1729933911 [09:12:35]current date 1729933958 [09:12:35]FM_GetShiftState [09:12:35]SAM_PROTO_GetShiftState [09:12:35]wFMCommunicate request_size=4 [09:12:35]MH_SAM_APDU [09:12:35]CAPDU: 80 13 01 00 [09:12:35]Write to MH i2c: E2 08 00 7A 1C 80 13 01 00 00 00 00 00 13 [09:12:35]Write i2c OK [09:12:35]MH_I2C_Read... [09:12:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:35]Read from MH i2c: E2 [09:12:35]MH_I2C_Read... [09:12:35]Read from MH i2c: E2 0E 00 [09:12:35]MH_I2C_Read... [09:12:35]Read from MH i2c: E2 0E 00 7A 1C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 22 [09:12:35]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:12:35]wFMCommunicate OK [09:12:35]SAM_PROTO_GetShiftState done [09:12:35]FM_GetShiftState done [09:12:35]opened in 1729900879 [09:12:35]opened+sec_in_day 1729987279 [09:12:35]quantity*price = 40006 [09:12:35]sum+1 = 40007 [09:12:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 59 26.10.2024 09:12 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201297 ФПД: 16346844542444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091238&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201297&fm=16346844542444&tin=02508201610067®Number=0000000000091777&sum=40000 [09:12:36]StoreToDocumentArchive [09:12:36]shift 543 fd 201297 [09:12:36]save to /storage/0543/doc_00201297 [09:12:36]save last doc name /storage/0543/doc_00201297 to /storage/kkm_last_doc_name [09:12:36]save OK [09:12:36]Clear old archive folders... [09:12:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:12:36]tlvbuf is B6F55200 [09:12:36]SAM_PROTO_ClearQueue [09:12:36]wFMCommunicate request_size=4 [09:12:36]MH_SAM_APDU [09:12:36]CAPDU: 80 09 00 00 [09:12:36]Write to MH i2c: E2 08 00 87 1C 80 09 00 00 00 00 00 00 15 [09:12:36]Write i2c OK [09:12:36]MH_I2C_Read... [09:12:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:36]Read from MH i2c: E2 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: E2 03 00 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: E2 03 00 87 1C 00 90 00 17 [09:12:36]RAPDU: 90 00 [09:12:36]wFMCommunicate OK [09:12:36]SAM_PROTO_ClearQueue done [09:12:36]KKMCreateOFDPacket [09:12:36]OFDProtocolAddRootSTLVToBuf [09:12:36]FM_MakeSignedData [09:12:36]FM_MakeSignedData [09:12:36]SAM_PROTO_SignData [09:12:36]wFMCommunicate request_size=4 [09:12:36]MH_SAM_APDU [09:12:36]CAPDU: 80 0D 01 02 [09:12:36]Write to MH i2c: E2 08 00 88 1C 80 0D 01 02 00 00 00 00 1D [09:12:36]Write i2c OK [09:12:36]MH_I2C_Read... [09:12:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:36]Read from MH i2c: E2 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: E2 03 00 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: E2 03 00 88 1C 00 90 00 18 [09:12:36]RAPDU: 90 00 [09:12:36]wFMCommunicate OK [09:12:36]wFMCommunicate request_size=255 [09:12:36]MH_SAM_APDU [09:12: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 32 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 3B 00 00 00 F4 03 04 00 86 B2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 51 12 03 00 35 04 06 00 0E [09:12:36]Write to MH i2c: E2 02 01 89 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 32 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 3B 00 00 00 F4 03 04 00 86 B2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 51 12 03 00 35 04 06 00 0E 00 00 0B [09:12:36]Write i2c OK [09:12:36]MH_I2C_Read... [09:12:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:36]Read from MH i2c: E2 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: E2 03 00 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: E2 03 00 89 1C 00 90 00 19 [09:12:36]RAPDU: 90 00 [09:12:36]wFMCommunicate OK [09:12:36]wFMCommunicate request_size=10 [09:12:36]MH_SAM_APDU [09:12:36]CAPDU: 80 0D 02 02 05 DE 0B DC B5 EC [09:12:36]Write to MH i2c: E2 0D 00 8A 1C 80 0D 02 02 05 00 DE 0B DC B5 EC 00 00 90 [09:12:36]Write i2c OK [09:12:36]MH_I2C_Read... [09:12:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:36]Read from MH i2c: E2 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: E2 03 00 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: E2 03 00 8A 1C 00 90 00 1A [09:12:36]RAPDU: 90 00 [09:12:36]wFMCommunicate OK [09:12:36]wFMCommunicate request_size=4 [09:12:36]MH_SAM_APDU [09:12:36]CAPDU: 80 0D 03 02 [09:12:36]Write to MH i2c: E2 08 00 8B 1C 80 0D 03 02 00 00 00 00 22 [09:12:36]Write i2c OK [09:12:36]MH_I2C_Read... [09:12:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:36]Read from MH i2c: E2 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: E2 0B 00 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: E2 0B 00 8B 1C 00 EF D8 CA 60 50 A8 05 37 90 00 48 [09:12:36]RAPDU: EF D8 CA 60 50 A8 05 37 90 00 [09:12:36]wFMCommunicate OK [09:12:36]SAM_PROTO_SignData done [09:12:36]FM_MakeSignedData done [09:12:36]CreateOFDProtocolMessage [09:12:36]wFMCommunicate request_size=4 [09:12:36]MH_SAM_APDU [09:12:36]CAPDU: 80 11 00 00 [09:12:36]Write to MH i2c: E2 08 00 8C 1C 80 11 00 00 00 00 00 00 22 [09:12:36]Write i2c OK [09:12:36]MH_I2C_Read... [09:12:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:36]Read from MH i2c: E2 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: E2 17 00 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: E2 17 00 8C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 77 [09:12:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:12:36]wFMCommunicate OK [09:12:36]CreateOFDProtocolMessage done [09:12:36]OFDSenderStorePacket 201297 [09:12:36]StoreOFDPacket docnum=201297 [09:12:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 3C 36 07 01 82 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3B 00 00 00 F4 03 04 00 86 B2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 51 12 03 00 35 04 06 00 0E DE 0B DC B5 EC EF D8 CA 60 50 A8 05 37 [09:12:36]CheckFolder [09:12:36]dirname=/storage/ofd_packets [09:12:36]CheckFolder done [09:12:36]ProducePacketName [09:12:36]name=ofd_packets/00201297 [09:12:36]NVStorageSaveData ofd_packets/00201297 [09:12:36]File name is /storage/ofd_packets/00201297 [09:12:36]Write 301 bytes [09:12:36]NVStorageSaveData done [09:12:36]OFDSenderStorePacket done [09:12:36]KKMCreateOFDPacket done [09:12:36]NVStorageSaveData kkm_last_timestamp [09:12:36]File name is /storage/kkm_last_timestamp [09:12:36]Write 4 bytes [09:12:36]NVStorageSaveData done [09:12:36]ExternCall_PrintAddStr [09:12:36]wPrintStart [09:12:36]Write to MH i2c: 01 00 00 8D 1C A9 [09:12:36]Write i2c OK [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: 01 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: 01 07 00 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: 01 07 00 8D 1C 00 00 00 00 00 FF 0F BE [09:12:36]RasterBufferAndPrint [09:12:36]line Счет N : (1)449045 [09:12:36]line ИНН: 02508201610067 [09:12:36]line Контрольно-Кассовый Чек [09:12:36]line ПРОДАЖА [09:12:36]line ТРК (МРК, ГНК) : 41 [09:12:36]line Товар: 2710124130 [09:12:36]line Аи-92-К-2 [09:12:36]line 5.980 * 66.90 [09:12:36]line = 400.06 [09:12:36]line НДС 12% НСП 1% [09:12:36]line > о реализуемом товаре [09:12:36]line ОКРУГЛЕНИЕ: -0.06 [09:12:36]line ИТОГО: 400.00 [09:12:36]line Внесено: 400.00 [09:12:36]line СДАЧА: 0.00 [09:12:36]line НСП 1% : 3.54 [09:12:36]line НДС 12% : 42.48 [09:12:36]line Наличными: 400.00 [09:12:36]line Безнал.: 0.00 [09:12:36]line Место: АЗС № 171 "Партнер Нефть" [09:12:36]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:12:36]line СНО: Общий режим [09:12:36]line Чек 59 26.10.2024 09:12 [09:12:36]line Смена: 543 ФФД: 1.0 [09:12:36]line ЗНМ: 0300000109 [09:12:36]line РНМ: 0000000000091777 [09:12:36]line Версия ККМ: 001 [09:12:36]line ФМ: 0000000000871756 [09:12:36]line ФД: 201297 [09:12:36]line ФПД: 16346844542444 [09:12:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091238&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201297&fm=16346844542444&tin=02508201610067®Number=0000000000091777&sum=40000 [09:12:37]OFD Sender: Processing packet 201297 [packets to send 112, broken 111] [09:12:37]ProducePacketName [09:12:37]name=ofd_packets/00201297 [09:12:37]OFD Sender: To server: pG, [09:12:37]CommunicateWithHost lk.salyk.kg:30040 [09:12:37]ConnectInit lk.salyk.kg [09:12:37]written 0, free lines is 4095 [09:12:37]Connected sock=10 [09:12:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 3C 36 07 01 82 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3B 00 00 00 F4 03 04 00 86 B2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 51 12 03 00 35 04 06 00 0E DE 0B DC B5 EC EF D8 CA 60 50 A8 05 37 [09:12:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 92 5D 47 00 37 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 51 12 03 00 F4 03 04 00 30 5E 1C 67 B6 04 01 00 00 3E 7F 9E F9 F9 B7 87 93 [09:12:37]CommunicateWithHost err = 0 [09:12:37]CheckOFDResponse [09:12:37]1017 (14) - 77093643461234 [09:12:37]1041 (16) - 0000000000871756 [09:12:37]1040 (4) - 201297 [09:12:37]1012 (4) - 26.10.2024 03:12 [09:12:37]1206 (1) - 0 [09:12:37]OFD Sender: Remove packet 201297 [09:12:37]ProducePacketName [09:12:37]name=ofd_packets/00201297 [09:12:37]NVStorageDeleteData [09:12:37]Write to MH i2c: 01 00 00 B8 1C D4 [09:12:37]Write i2c OK [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: 01 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: 01 07 00 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: 01 07 00 B8 1C 00 00 00 00 00 B0 0C 97 [09:12:37]RasterBufferAndPrint [09:12:37]line [09:12:37]line [09:12:37]line [09:12:37]line [09:12:37]line [09:12:37]written 0, free lines is 3257 [09:12:37]MH_Cut [09:12:37]Write to MH i2c: D1 01 00 BF 1C 01 AD [09:12:37]Write i2c OK [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: D1 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: D1 01 00 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: D1 01 00 BF 1C 00 AC [09:12:37]Write to MH i2c: 01 00 00 C0 1C DC [09:12:37]Write i2c OK [09:12:37]MH_I2C_Read... [09:12:38]OFD Sender: No OFD packet to send [09:12:38]*** Cut start [09:12:38]*** Purtial cut [09:12:38]*** Stage 1: CUTSNS_PIN = 1 [09:12:38]Read from MH i2c: 01 [09:12:38]MH_I2C_Read... [09:12:38]*** Stop cut motor [09:12:38]*** Cut end [09:12:38]Read from MH i2c: 01 07 00 [09:12:38]MH_I2C_Read... [09:12:38]Read from MH i2c: 01 07 00 C0 1C 00 00 00 00 00 FF 0F F1 [09:12:38]process_action close_receipt done [09:12:38]requested_data is exist [09:12:38]produce_requested_data [09:12:38]requested_item fm.sn is exist - process it [09:12:38]wFMCommunicate request_size=4 [09:12:38]MH_SAM_APDU [09:12:38]CAPDU: 80 11 00 00 [09:12:38]Write to MH i2c: E2 08 00 C1 1C 80 11 00 00 00 00 00 00 57 [09:12:38]Write i2c OK [09:12:38]MH_I2C_Read... [09:12:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:38]Read from MH i2c: E2 [09:12:38]MH_I2C_Read... [09:12:38]Read from MH i2c: E2 17 00 [09:12:38]MH_I2C_Read... [09:12:38]Read from MH i2c: E2 17 00 C1 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AC [09:12:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:12:38]wFMCommunicate OK [09:12:38]requested_item fd.num is exist - process it [09:12:38]SAM_PROTO_GetFieldsCounters [09:12:38]wFMCommunicate request_size=4 [09:12:38]MH_SAM_APDU [09:12:38]CAPDU: 80 13 00 00 [09:12:38]Write to MH i2c: E2 08 00 C2 1C 80 13 00 00 00 00 00 00 5A [09:12:38]Write i2c OK [09:12:38]MH_I2C_Read... [09:12:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:39]Read from MH i2c: E2 [09:12:39]MH_I2C_Read... [09:12:39]Read from MH i2c: E2 62 00 [09:12:39]MH_I2C_Read... [09:12:39]Read from MH i2c: E2 62 00 C2 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 51 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [09:12:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 51 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:12:39]wFMCommunicate OK [09:12:39]SAM_PROTO_GetFieldsCounters done [09:12:39]requested_item shift.num is exist - process it [09:12:39]requested_item shift.opened is exist - process it [09:12:39]req_shift_opened [09:12:39]FM_GetShiftState [09:12:39]SAM_PROTO_GetShiftState [09:12:39]wFMCommunicate request_size=4 [09:12:39]MH_SAM_APDU [09:12:39]CAPDU: 80 13 01 00 [09:12:39]Write to MH i2c: E2 08 00 C3 1C 80 13 01 00 00 00 00 00 5C [09:12:39]Write i2c OK [09:12:39]MH_I2C_Read... [09:12:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:39]Read from MH i2c: E2 [09:12:39]MH_I2C_Read... [09:12:39]Read from MH i2c: E2 0E 00 [09:12:39]MH_I2C_Read... [09:12:39]Read from MH i2c: E2 0E 00 C3 1C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 6B [09:12:39]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:12:39]wFMCommunicate OK [09:12:39]SAM_PROTO_GetShiftState done [09:12:39]FM_GetShiftState done [09:12:39]req_shift_opened done [09:12:39]requested_item shift.open_date is exist - process it [09:12:39]req_shift_open_date [09:12:39]req_shift_open_date done [09:12:39]produce_requested_data done [09:12:39]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201297,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:12:39]process_action_free close_receipt [09:12:39]json_value_free [09:12:39]json_value_free done [09:12:39]process_json_proto returns [09:12:39]Send response to host [09:12:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201297,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:12:39]free response buf [09:12:39]execute_script done [09:12:39]execute_script returns [09:12:39]free content buf [09:12:39]Sock 7.Close socket [09:12:39]Sock 7.Thread stoped [09:12:43]OFD Sender: No OFD packet to send [09:12:48]OFD Sender: No OFD packet to send [09:12:53]OFD Sender: No OFD packet to send [09:12:58]OFD Sender: No OFD packet to send [09:13:03]OFD Sender: No OFD packet to send [09:13:08]OFD Sender: No OFD packet to send [09:13:13]OFD Sender: No OFD packet to send [09:13:15]accept exits with 9 [09:13:15]New connection [09:13:15]New thread 3067415908 created [09:13:15]Thread 3067559268 joined [09:13:15]Waiting for new connection... [09:13:15] Sock 9.Parse request [09:13:15]Sock 9.Check first char [09:13:15]Sock 9.First char is OK [09:13:15]request: POST /json_proto HTTP/1.0 [09:13:15]Method: POST [09:13:15]URL: /json_proto [09:13:15]Method is POST - this is cgi request [09:13:15]url: /json_proto [09:13:15]query_string will be loaded in cgi processing [09:13:15]execute_cgi json_proto POST (null) [09:13:15]execute_cgi path=json_proto method=POST [09:13:15]POST find Content-Length [09:13:15]Host: 172.17.63.195:8080 [09:13:15]Content-Length: 677 [09:13:15]Content-Type: application/json [09:13:15] [09:13:15]POST finish read [09:13:15]Found Content-Length = 677 [09:13:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:13:15]execute_script... [09:13: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)449043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:13:15]POST & json_proto [09:13:15]process_json_proto [09:13:15]json parsed OK: [09:13:15]protocol is kg_v1.0 [09:13:15]action value=close_receipt [09:13:15]process_action close_receipt [09:13:15]cmd_close_receipt [09:13:15]MH_GetDate [09:13:15]Write to MH i2c: F0 00 00 C4 1C CF [09:13:15]Write i2c OK [09:13:15]MH_I2C_Read... [09:13:15]Read from MH i2c: F0 [09:13:15]MH_I2C_Read... [09:13:15]Read from MH i2c: F0 09 00 [09:13:15]MH_I2C_Read... [09:13:15]Read from MH i2c: F0 09 00 C4 1C 00 AE B2 1C 67 68 46 19 67 E9 [09:13:15]GetLastDocTimeStamp 1729933958 [09:13:15]current date 1729933998 [09:13:15]FM_GetShiftState [09:13:15]SAM_PROTO_GetShiftState [09:13:15]wFMCommunicate request_size=4 [09:13:15]MH_SAM_APDU [09:13:15]CAPDU: 80 13 01 00 [09:13:15]Write to MH i2c: E2 08 00 C5 1C 80 13 01 00 00 00 00 00 5E [09:13:15]Write i2c OK [09:13:15]MH_I2C_Read... [09:13:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:15]Read from MH i2c: E2 [09:13:15]MH_I2C_Read... [09:13:15]Read from MH i2c: E2 0E 00 [09:13:15]MH_I2C_Read... [09:13:15]Read from MH i2c: E2 0E 00 C5 1C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 6D [09:13:15]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:13:15]wFMCommunicate OK [09:13:15]SAM_PROTO_GetShiftState done [09:13:15]FM_GetShiftState done [09:13:15]opened in 1729900879 [09:13:15]opened+sec_in_day 1729987279 [09:13:15]quantity*price = 50041 [09:13:15]sum+1 = 50042 [09:13:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 60 26.10.2024 09:13 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201298 ФПД: 82794515285505 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091318&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201298&fm=82794515285505&tin=02508201610067®Number=0000000000091777&sum=50000 [09:13:16]StoreToDocumentArchive [09:13:16]shift 543 fd 201298 [09:13:16]save to /storage/0543/doc_00201298 [09:13:16]save last doc name /storage/0543/doc_00201298 to /storage/kkm_last_doc_name [09:13:16]save OK [09:13:16]Clear old archive folders... [09:13:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:13:16]tlvbuf is B6F3C0D0 [09:13:16]SAM_PROTO_ClearQueue [09:13:16]wFMCommunicate request_size=4 [09:13:16]MH_SAM_APDU [09:13:16]CAPDU: 80 09 00 00 [09:13:16]Write to MH i2c: E2 08 00 D2 1C 80 09 00 00 00 00 00 00 60 [09:13:16]Write i2c OK [09:13:16]MH_I2C_Read... [09:13:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:16]Read from MH i2c: E2 [09:13:16]MH_I2C_Read... [09:13:16]Read from MH i2c: E2 03 00 [09:13:16]MH_I2C_Read... [09:13:16]Read from MH i2c: E2 03 00 D2 1C 00 90 00 62 [09:13:16]RAPDU: 90 00 [09:13:16]wFMCommunicate OK [09:13:16]SAM_PROTO_ClearQueue done [09:13:16]KKMCreateOFDPacket [09:13:16]OFDProtocolAddRootSTLVToBuf [09:13:16]FM_MakeSignedData [09:13:16]FM_MakeSignedData [09:13:16]SAM_PROTO_SignData [09:13:16]wFMCommunicate request_size=4 [09:13:16]MH_SAM_APDU [09:13:16]CAPDU: 80 0D 01 02 [09:13:16]Write to MH i2c: E2 08 00 D3 1C 80 0D 01 02 00 00 00 00 68 [09:13:16]Write i2c OK [09:13:16]MH_I2C_Read... [09:13:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:16]Read from MH i2c: E2 [09:13:16]MH_I2C_Read... [09:13:16]Read from MH i2c: E2 03 00 [09:13:16]MH_I2C_Read... [09:13:16]Read from MH i2c: E2 03 00 D3 1C 00 90 00 63 [09:13:16]RAPDU: 90 00 [09:13:16]wFMCommunicate OK [09:13:16]wFMCommunicate request_size=255 [09:13:16]MH_SAM_APDU [09:13:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3C 00 00 00 F4 03 04 00 AE B2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 52 12 03 00 35 04 06 00 4B [09:13:16]Write to MH i2c: E2 02 01 D4 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 32 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 3C 00 00 00 F4 03 04 00 AE B2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 52 12 03 00 35 04 06 00 4B 00 00 EE [09:13:16]Write i2c OK [09:13:16]MH_I2C_Read... [09:13:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:16]Read from MH i2c: E2 [09:13:16]MH_I2C_Read... [09:13:16]Read from MH i2c: E2 03 00 [09:13:16]MH_I2C_Read... [09:13:16]Read from MH i2c: E2 03 00 D4 1C 00 90 00 64 [09:13:16]RAPDU: 90 00 [09:13:16]wFMCommunicate OK [09:13:16]wFMCommunicate request_size=10 [09:13:16]MH_SAM_APDU [09:13:16]CAPDU: 80 0D 02 02 05 4D 19 AC 46 01 [09:13:16]Write to MH i2c: E2 0D 00 D5 1C 80 0D 02 02 05 00 4D 19 AC 46 01 00 00 CE [09:13:16]Write i2c OK [09:13:16]MH_I2C_Read... [09:13:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:16]Read from MH i2c: E2 [09:13:16]MH_I2C_Read... [09:13:16]Read from MH i2c: E2 03 00 [09:13:16]MH_I2C_Read... [09:13:16]Read from MH i2c: E2 03 00 D5 1C 00 90 00 65 [09:13:16]RAPDU: 90 00 [09:13:16]wFMCommunicate OK [09:13:16]wFMCommunicate request_size=4 [09:13:16]MH_SAM_APDU [09:13:16]CAPDU: 80 0D 03 02 [09:13:16]Write to MH i2c: E2 08 00 D6 1C 80 0D 03 02 00 00 00 00 6D [09:13:16]Write i2c OK [09:13:16]MH_I2C_Read... [09:13:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:17]Read from MH i2c: E2 [09:13:17]MH_I2C_Read... [09:13:17]Read from MH i2c: E2 0B 00 [09:13:17]MH_I2C_Read... [09:13:17]Read from MH i2c: E2 0B 00 D6 1C 00 4D 40 51 FE 9D AE A5 E9 90 00 23 [09:13:17]RAPDU: 4D 40 51 FE 9D AE A5 E9 90 00 [09:13:17]wFMCommunicate OK [09:13:17]SAM_PROTO_SignData done [09:13:17]FM_MakeSignedData done [09:13:17]CreateOFDProtocolMessage [09:13:17]wFMCommunicate request_size=4 [09:13:17]MH_SAM_APDU [09:13:17]CAPDU: 80 11 00 00 [09:13:17]Write to MH i2c: E2 08 00 D7 1C 80 11 00 00 00 00 00 00 6D [09:13:17]Write i2c OK [09:13:17]MH_I2C_Read... [09:13:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:17]Read from MH i2c: E2 [09:13:17]MH_I2C_Read... [09:13:17]Read from MH i2c: E2 17 00 [09:13:17]MH_I2C_Read... [09:13:17]Read from MH i2c: E2 17 00 D7 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C2 [09:13:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:13:17]wFMCommunicate OK [09:13:17]CreateOFDProtocolMessage done [09:13:17]OFDSenderStorePacket 201298 [09:13:17]StoreOFDPacket docnum=201298 [09:13:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D9 F2 07 01 37 A3 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 32 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 3C 00 00 00 F4 03 04 00 AE B2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 52 12 03 00 35 04 06 00 4B 4D 19 AC 46 01 4D 40 51 FE 9D AE A5 E9 [09:13:17]CheckFolder [09:13:17]dirname=/storage/ofd_packets [09:13:17]CheckFolder done [09:13:17]ProducePacketName [09:13:17]name=ofd_packets/00201298 [09:13:17]NVStorageSaveData ofd_packets/00201298 [09:13:17]File name is /storage/ofd_packets/00201298 [09:13:17]Write 301 bytes [09:13:17]NVStorageSaveData done [09:13:17]OFDSenderStorePacket done [09:13:17]KKMCreateOFDPacket done [09:13:17]NVStorageSaveData kkm_last_timestamp [09:13:17]File name is /storage/kkm_last_timestamp [09:13:17]Write 4 bytes [09:13:17]NVStorageSaveData done [09:13:17]ExternCall_PrintAddStr [09:13:17]wPrintStart [09:13:17]Write to MH i2c: 01 00 00 D8 1C F4 [09:13:17]Write i2c OK [09:13:17]MH_I2C_Read... [09:13:17]Read from MH i2c: 01 [09:13:17]MH_I2C_Read... [09:13:17]Read from MH i2c: 01 07 00 [09:13:17]MH_I2C_Read... [09:13:17]Read from MH i2c: 01 07 00 D8 1C 00 00 00 00 00 FF 0F 09 [09:13:17]RasterBufferAndPrint [09:13:17]line Счет N : (1)449043 [09:13:17]line ИНН: 02508201610067 [09:13:17]line Контрольно-Кассовый Чек [09:13:17]line ПРОДАЖА [09:13:17]line ТРК (МРК, ГНК) : 62 [09:13:17]line Товар: 2710124130 [09:13:17]line Аи-92-К-2 [09:13:17]line 7.480 * 66.90 [09:13:17]line = 500.41 [09:13:17]line НДС 12% НСП 1% [09:13:17]line > о реализуемом товаре [09:13:17]line ОКРУГЛЕНИЕ: -0.41 [09:13:17]line ИТОГО: 500.00 [09:13:17]line Внесено: 500.00 [09:13:17]line СДАЧА: 0.00 [09:13:17]line НСП 1% : 4.43 [09:13:17]line НДС 12% : 53.14 [09:13:17]line Наличными: 500.00 [09:13:17]line Безнал.: 0.00 [09:13:17]line Место: АЗС № 171 "Партнер Нефть" [09:13:17]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:13:17]line СНО: Общий режим [09:13:17]line Чек 60 26.10.2024 09:13 [09:13:17]line Смена: 543 ФФД: 1.0 [09:13:17]line ЗНМ: 0300000109 [09:13:17]line РНМ: 0000000000091777 [09:13:17]line Версия ККМ: 001 [09:13:17]line ФМ: 0000000000871756 [09:13:17]line ФД: 201298 [09:13:17]line ФПД: 82794515285505 [09:13:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091318&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201298&fm=82794515285505&tin=02508201610067®Number=0000000000091777&sum=50000 [09:13:17]OFD Sender: Processing packet 201298 [packets to send 112, broken 111] [09:13:17]ProducePacketName [09:13:17]name=ofd_packets/00201298 [09:13:17]OFD Sender: To server: pG, [09:13:17]CommunicateWithHost lk.salyk.kg:30040 [09:13:17]ConnectInit lk.salyk.kg [09:13:17]written 0, free lines is 4095 [09:13:17]Connected sock=10 [09:13:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D9 F2 07 01 37 A3 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 32 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 3C 00 00 00 F4 03 04 00 AE B2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 52 12 03 00 35 04 06 00 4B 4D 19 AC 46 01 4D 40 51 FE 9D AE A5 E9 [09:13:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A6 9A 47 00 AB A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 52 12 03 00 F4 03 04 00 58 5E 1C 67 B6 04 01 00 00 71 6B AF 9A 25 49 D5 79 [09:13:17]CommunicateWithHost err = 0 [09:13:17]CheckOFDResponse [09:13:17]1017 (14) - 77093643461234 [09:13:17]1041 (16) - 0000000000871756 [09:13:17]1040 (4) - 201298 [09:13:17]1012 (4) - 26.10.2024 03:13 [09:13:17]1206 (1) - 0 [09:13:17]OFD Sender: Remove packet 201298 [09:13:17]ProducePacketName [09:13:17]name=ofd_packets/00201298 [09:13:17]NVStorageDeleteData [09:13:17]Write to MH i2c: 01 00 00 03 1D 20 [09:13:17]Write i2c OK [09:13:17]MH_I2C_Read... [09:13:17]Read from MH i2c: 01 [09:13:17]MH_I2C_Read... [09:13:17]Read from MH i2c: 01 07 00 [09:13:17]MH_I2C_Read... [09:13:17]Read from MH i2c: 01 07 00 03 1D 00 00 00 00 00 99 0C CC [09:13:17]RasterBufferAndPrint [09:13:17]line [09:13:17]line [09:13:17]line [09:13:17]line [09:13:17]line [09:13:17]written 0, free lines is 3229 [09:13:17]MH_Cut [09:13:17]Write to MH i2c: D1 01 00 0A 1D 01 F9 [09:13:17]Write i2c OK [09:13:17]MH_I2C_Read... [09:13:17]Read from MH i2c: D1 [09:13:17]MH_I2C_Read... [09:13:17]Read from MH i2c: D1 01 00 [09:13:17]MH_I2C_Read... [09:13:17]Read from MH i2c: D1 01 00 0A 1D 00 F8 [09:13:17]Write to MH i2c: 01 00 00 0B 1D 28 [09:13:17]Write i2c OK [09:13:17]MH_I2C_Read... [09:13:18]OFD Sender: No OFD packet to send [09:13:18]*** Cut start [09:13:18]*** Purtial cut [09:13:18]*** CUTSNS_PIN = 0 [09:13:18]*** Stage 1: CUTSNS_PIN = 1 [09:13:20]Read from MH i2c: 01 [09:13:20]MH_I2C_Read... [09:13:20]*** Stop cut motor [09:13:20]*** Cut end [09:13:20]Read from MH i2c: 01 07 00 [09:13:20]MH_I2C_Read... [09:13:20]Read from MH i2c: 01 07 00 0B 1D 00 00 00 00 00 FF 0F 3D [09:13:20]process_action close_receipt done [09:13:20]requested_data is exist [09:13:20]produce_requested_data [09:13:20]requested_item fm.sn is exist - process it [09:13:20]wFMCommunicate request_size=4 [09:13:20]MH_SAM_APDU [09:13:20]CAPDU: 80 11 00 00 [09:13:20]Write to MH i2c: E2 08 00 0C 1D 80 11 00 00 00 00 00 00 A3 [09:13:20]Write i2c OK [09:13:20]MH_I2C_Read... [09:13:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:20]Read from MH i2c: E2 [09:13:20]MH_I2C_Read... [09:13:20]Read from MH i2c: E2 17 00 [09:13:20]MH_I2C_Read... [09:13:20]Read from MH i2c: E2 17 00 0C 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F8 [09:13:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:13:20]wFMCommunicate OK [09:13:20]requested_item fd.num is exist - process it [09:13:20]SAM_PROTO_GetFieldsCounters [09:13:20]wFMCommunicate request_size=4 [09:13:20]MH_SAM_APDU [09:13:20]CAPDU: 80 13 00 00 [09:13:20]Write to MH i2c: E2 08 00 0D 1D 80 13 00 00 00 00 00 00 A6 [09:13:20]Write i2c OK [09:13:20]MH_I2C_Read... [09:13:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:20]Read from MH i2c: E2 [09:13:20]MH_I2C_Read... [09:13:20]Read from MH i2c: E2 62 00 [09:13:20]MH_I2C_Read... [09:13:20]Read from MH i2c: E2 62 00 0D 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 52 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [09:13:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 52 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:13:20]wFMCommunicate OK [09:13:20]SAM_PROTO_GetFieldsCounters done [09:13:20]requested_item shift.num is exist - process it [09:13:20]requested_item shift.opened is exist - process it [09:13:20]req_shift_opened [09:13:20]FM_GetShiftState [09:13:20]SAM_PROTO_GetShiftState [09:13:20]wFMCommunicate request_size=4 [09:13:20]MH_SAM_APDU [09:13:20]CAPDU: 80 13 01 00 [09:13:20]Write to MH i2c: E2 08 00 0E 1D 80 13 01 00 00 00 00 00 A8 [09:13:20]Write i2c OK [09:13:20]MH_I2C_Read... [09:13:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:21]Read from MH i2c: E2 [09:13:21]MH_I2C_Read... [09:13:21]Read from MH i2c: E2 0E 00 [09:13:21]MH_I2C_Read... [09:13:21]Read from MH i2c: E2 0E 00 0E 1D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 B7 [09:13:21]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:13:21]wFMCommunicate OK [09:13:21]SAM_PROTO_GetShiftState done [09:13:21]FM_GetShiftState done [09:13:21]req_shift_opened done [09:13:21]requested_item shift.open_date is exist - process it [09:13:21]req_shift_open_date [09:13:21]req_shift_open_date done [09:13:21]produce_requested_data done [09:13:21]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201298,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:13:21]process_action_free close_receipt [09:13:21]json_value_free [09:13:21]json_value_free done [09:13:21]process_json_proto returns [09:13:21]Send response to host [09:13:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201298,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:13:21]free response buf [09:13:21]execute_script done [09:13:21]execute_script returns [09:13:21]free content buf [09:13:21]Sock 9.Close socket [09:13:21]Sock 9.Thread stoped [09:13:23]OFD Sender: No OFD packet to send [09:13:28]OFD Sender: No OFD packet to send [09:13:33]OFD Sender: No OFD packet to send [09:13:38]OFD Sender: No OFD packet to send [09:13:43]OFD Sender: No OFD packet to send [09:13:48]OFD Sender: No OFD packet to send [09:13:53]OFD Sender: No OFD packet to send [09:13:58]OFD Sender: No OFD packet to send [09:14:03]OFD Sender: No OFD packet to send [09:14:08]OFD Sender: No OFD packet to send [09:14:13]OFD Sender: No OFD packet to send [09:14:18]OFD Sender: No OFD packet to send [09:14:23]OFD Sender: No OFD packet to send [09:14:28]OFD Sender: No OFD packet to send [09:14:33]OFD Sender: No OFD packet to send [09:14:38]OFD Sender: No OFD packet to send [09:14:43]OFD Sender: No OFD packet to send [09:14:48]OFD Sender: No OFD packet to send [09:14:53]OFD Sender: No OFD packet to send [09:14:58]OFD Sender: No OFD packet to send [09:15:03]OFD Sender: No OFD packet to send [09:15:08]OFD Sender: No OFD packet to send [09:15:13]OFD Sender: No OFD packet to send [09:15:18]OFD Sender: No OFD packet to send [09:15:23]OFD Sender: No OFD packet to send [09:15:28]OFD Sender: No OFD packet to send [09:15:33]OFD Sender: No OFD packet to send [09:15:38]OFD Sender: No OFD packet to send [09:15:43]OFD Sender: No OFD packet to send [09:15:48]OFD Sender: No OFD packet to send [09:15:53]OFD Sender: No OFD packet to send [09:15:57]accept exits with 7 [09:15:57]New connection [09:15:57]New thread 3067559268 created [09:15:57]Thread 3067415908 joined [09:15:57]Waiting for new connection... [09:15:57] Sock 7.Parse request [09:15:57]Sock 7.Check first char [09:15:57]Sock 7.First char is OK [09:15:57]request: POST /json_proto HTTP/1.0 [09:15:57]Method: POST [09:15:57]URL: /json_proto [09:15:57]Method is POST - this is cgi request [09:15:57]url: /json_proto [09:15:57]query_string will be loaded in cgi processing [09:15:57]execute_cgi json_proto POST (null) [09:15:57]execute_cgi path=json_proto method=POST [09:15:57]POST find Content-Length [09:15:57]Host: 172.17.63.195:8080 [09:15:57]Content-Length: 677 [09:15:57]Content-Type: application/json [09:15:57] [09:15:57]POST finish read [09:15:57]Found Content-Length = 677 [09:15:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:15:57]execute_script... [09:15: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)449046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:15:57]POST & json_proto [09:15:57]process_json_proto [09:15:57]json parsed OK: [09:15:57]protocol is kg_v1.0 [09:15:57]action value=close_receipt [09:15:57]process_action close_receipt [09:15:57]cmd_close_receipt [09:15:57]MH_GetDate [09:15:57]Write to MH i2c: F0 00 00 0F 1D 1B [09:15:57]Write i2c OK [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: F0 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: F0 09 00 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: F0 09 00 0F 1D 00 51 B3 1C 67 68 46 19 67 D9 [09:15:57]GetLastDocTimeStamp 1729933998 [09:15:57]current date 1729934161 [09:15:57]FM_GetShiftState [09:15:57]SAM_PROTO_GetShiftState [09:15:57]wFMCommunicate request_size=4 [09:15:57]MH_SAM_APDU [09:15:57]CAPDU: 80 13 01 00 [09:15:57]Write to MH i2c: E2 08 00 10 1D 80 13 01 00 00 00 00 00 AA [09:15:57]Write i2c OK [09:15:57]MH_I2C_Read... [09:15:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:57]Read from MH i2c: E2 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: E2 0E 00 [09:15:57]MH_I2C_Read... [09:15:57]Read from MH i2c: E2 0E 00 10 1D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 B9 [09:15:57]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:15:57]wFMCommunicate OK [09:15:57]SAM_PROTO_GetShiftState done [09:15:57]FM_GetShiftState done [09:15:57]opened in 1729900879 [09:15:57]opened+sec_in_day 1729987279 [09:15:57]quantity*price = 50041 [09:15:57]sum+1 = 50042 [09:15:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 61 26.10.2024 09:16 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201299 ФПД: 26180985517542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091601&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201299&fm=26180985517542&tin=02508201610067®Number=0000000000091777&sum=50000 [09:15:59]StoreToDocumentArchive [09:15:59]shift 543 fd 201299 [09:15:59]save to /storage/0543/doc_00201299 [09:15:59]save last doc name /storage/0543/doc_00201299 to /storage/kkm_last_doc_name [09:15:59]save OK [09:15:59]Clear old archive folders... [09:15:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:15:59]tlvbuf is B6F55130 [09:15:59]SAM_PROTO_ClearQueue [09:15:59]wFMCommunicate request_size=4 [09:15:59]MH_SAM_APDU [09:15:59]CAPDU: 80 09 00 00 [09:15:59]Write to MH i2c: E2 08 00 1D 1D 80 09 00 00 00 00 00 00 AC [09:15:59]Write i2c OK [09:15:59]MH_I2C_Read... [09:15:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:59]Read from MH i2c: E2 [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: E2 03 00 [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: E2 03 00 1D 1D 00 90 00 AE [09:15:59]RAPDU: 90 00 [09:15:59]wFMCommunicate OK [09:15:59]SAM_PROTO_ClearQueue done [09:15:59]KKMCreateOFDPacket [09:15:59]OFDProtocolAddRootSTLVToBuf [09:15:59]FM_MakeSignedData [09:15:59]FM_MakeSignedData [09:15:59]SAM_PROTO_SignData [09:15:59]wFMCommunicate request_size=4 [09:15:59]MH_SAM_APDU [09:15:59]CAPDU: 80 0D 01 02 [09:15:59]Write to MH i2c: E2 08 00 1E 1D 80 0D 01 02 00 00 00 00 B4 [09:15:59]Write i2c OK [09:15:59]MH_I2C_Read... [09:15:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:59]Read from MH i2c: E2 [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: E2 03 00 [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: E2 03 00 1E 1D 00 90 00 AF [09:15:59]RAPDU: 90 00 [09:15:59]wFMCommunicate OK [09:15:59]wFMCommunicate request_size=255 [09:15:59]MH_SAM_APDU [09:15: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 32 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 3D 00 00 00 F4 03 04 00 51 B3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 53 12 03 00 35 04 06 00 17 [09:15:59]Write to MH i2c: E2 02 01 1F 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 32 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 3D 00 00 00 F4 03 04 00 51 B3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 53 12 03 00 35 04 06 00 17 00 00 AC [09:15:59]Write i2c OK [09:15:59]MH_I2C_Read... [09:15:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:59]Read from MH i2c: E2 [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: E2 03 00 [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: E2 03 00 1F 1D 00 90 00 B0 [09:15:59]RAPDU: 90 00 [09:15:59]wFMCommunicate OK [09:15:59]wFMCommunicate request_size=10 [09:15:59]MH_SAM_APDU [09:15:59]CAPDU: 80 0D 02 02 05 CF BC 57 75 E6 [09:15:59]Write to MH i2c: E2 0D 00 20 1D 80 0D 02 02 05 00 CF BC 57 75 E6 00 00 FE [09:15:59]Write i2c OK [09:15:59]MH_I2C_Read... [09:15:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:59]Read from MH i2c: E2 [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: E2 03 00 [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: E2 03 00 20 1D 00 90 00 B1 [09:15:59]RAPDU: 90 00 [09:15:59]wFMCommunicate OK [09:15:59]wFMCommunicate request_size=4 [09:15:59]MH_SAM_APDU [09:15:59]CAPDU: 80 0D 03 02 [09:15:59]Write to MH i2c: E2 08 00 21 1D 80 0D 03 02 00 00 00 00 B9 [09:15:59]Write i2c OK [09:15:59]MH_I2C_Read... [09:15:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:59]Read from MH i2c: E2 [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: E2 0B 00 [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: E2 0B 00 21 1D 00 F4 98 B1 18 C1 43 45 11 90 00 69 [09:15:59]RAPDU: F4 98 B1 18 C1 43 45 11 90 00 [09:15:59]wFMCommunicate OK [09:15:59]SAM_PROTO_SignData done [09:15:59]FM_MakeSignedData done [09:15:59]CreateOFDProtocolMessage [09:15:59]wFMCommunicate request_size=4 [09:15:59]MH_SAM_APDU [09:15:59]CAPDU: 80 11 00 00 [09:15:59]Write to MH i2c: E2 08 00 22 1D 80 11 00 00 00 00 00 00 B9 [09:15:59]Write i2c OK [09:15:59]MH_I2C_Read... [09:15:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:59]Read from MH i2c: E2 [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: E2 17 00 [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: E2 17 00 22 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0E [09:15:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:15:59]wFMCommunicate OK [09:15:59]CreateOFDProtocolMessage done [09:15:59]OFDSenderStorePacket 201299 [09:15:59]StoreOFDPacket docnum=201299 [09:15:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1E 39 07 01 FA AF 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 32 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 3D 00 00 00 F4 03 04 00 51 B3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 53 12 03 00 35 04 06 00 17 CF BC 57 75 E6 F4 98 B1 18 C1 43 45 11 [09:15:59]CheckFolder [09:15:59]dirname=/storage/ofd_packets [09:15:59]CheckFolder done [09:15:59]ProducePacketName [09:15:59]name=ofd_packets/00201299 [09:15:59]NVStorageSaveData ofd_packets/00201299 [09:15:59]File name is /storage/ofd_packets/00201299 [09:15:59]Write 301 bytes [09:15:59]NVStorageSaveData done [09:15:59]OFDSenderStorePacket done [09:15:59]KKMCreateOFDPacket done [09:15:59]NVStorageSaveData kkm_last_timestamp [09:15:59]File name is /storage/kkm_last_timestamp [09:15:59]Write 4 bytes [09:15:59]NVStorageSaveData done [09:15:59]ExternCall_PrintAddStr [09:15:59]wPrintStart [09:15:59]Write to MH i2c: 01 00 00 23 1D 40 [09:15:59]Write i2c OK [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: 01 [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: 01 07 00 [09:15:59]MH_I2C_Read... [09:15:59]Read from MH i2c: 01 07 00 23 1D 00 00 00 00 00 FF 0F 55 [09:15:59]RasterBufferAndPrint [09:15:59]line Счет N : (1)449046 [09:15:59]line ИНН: 02508201610067 [09:15:59]line Контрольно-Кассовый Чек [09:15:59]line ПРОДАЖА [09:15:59]line ТРК (МРК, ГНК) : 52 [09:15:59]line Товар: 2710124130 [09:15:59]line Аи-92-К-2 [09:15:59]line 7.480 * 66.90 [09:15:59]line = 500.41 [09:15:59]line НДС 12% НСП 1% [09:15:59]line > о реализуемом товаре [09:15:59]line ОКРУГЛЕНИЕ: -0.41 [09:15:59]line ИТОГО: 500.00 [09:15:59]line Внесено: 500.00 [09:15:59]line СДАЧА: 0.00 [09:15:59]line НСП 1% : 4.43 [09:15:59]line НДС 12% : 53.14 [09:15:59]line Наличными: 500.00 [09:15:59]line Безнал.: 0.00 [09:15:59]line Место: АЗС № 171 "Партнер Нефть" [09:15:59]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:15:59]line СНО: Общий режим [09:15:59]line Чек 61 26.10.2024 09:16 [09:15:59]line Смена: 543 ФФД: 1.0 [09:15:59]line ЗНМ: 0300000109 [09:15:59]line РНМ: 0000000000091777 [09:15:59]line Версия ККМ: 001 [09:15:59]line ФМ: 0000000000871756 [09:15:59]line ФД: 201299 [09:15:59]line ФПД: 26180985517542 [09:15:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091601&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201299&fm=26180985517542&tin=02508201610067®Number=0000000000091777&sum=50000 [09:15:59]OFD Sender: Processing packet 201299 [packets to send 112, broken 111] [09:15:59]ProducePacketName [09:15:59]name=ofd_packets/00201299 [09:15:59]OFD Sender: To server: pG, [09:15:59]CommunicateWithHost lk.salyk.kg:30040 [09:15:59]ConnectInit lk.salyk.kg [09:15:59]written 0, free lines is 4095 [09:16:00]Connected sock=10 [09:16:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1E 39 07 01 FA AF 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 32 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 3D 00 00 00 F4 03 04 00 51 B3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 53 12 03 00 35 04 06 00 17 CF BC 57 75 E6 F4 98 B1 18 C1 43 45 11 [09:16:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E9 DA 47 00 39 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 53 12 03 00 F4 03 04 00 FB 5E 1C 67 B6 04 01 00 00 27 AB 17 C8 6D 91 4B 3C [09:16:00]CommunicateWithHost err = 0 [09:16:00]CheckOFDResponse [09:16:00]1017 (14) - 77093643461234 [09:16:00]1041 (16) - 0000000000871756 [09:16:00]1040 (4) - 201299 [09:16:00]1012 (4) - 26.10.2024 03:16 [09:16:00]1206 (1) - 0 [09:16:00]OFD Sender: Remove packet 201299 [09:16:00]ProducePacketName [09:16:00]name=ofd_packets/00201299 [09:16:00]NVStorageDeleteData [09:16:00]Write to MH i2c: 01 00 00 4E 1D 6B [09:16:00]Write i2c OK [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: 01 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: 01 07 00 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: 01 07 00 4E 1D 00 00 00 00 00 91 0C 0F [09:16:00]RasterBufferAndPrint [09:16:00]line [09:16:00]line [09:16:00]line [09:16:00]line [09:16:00]line [09:16:00]written 0, free lines is 3222 [09:16:00]MH_Cut [09:16:00]Write to MH i2c: D1 01 00 55 1D 01 44 [09:16:00]Write i2c OK [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: D1 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: D1 01 00 [09:16:00]MH_I2C_Read... [09:16:00]Read from MH i2c: D1 01 00 55 1D 00 43 [09:16:00]Write to MH i2c: 01 00 00 56 1D 73 [09:16:00]Write i2c OK [09:16:00]MH_I2C_Read... [09:16:00]OFD Sender: No OFD packet to send [09:16:01]*** Cut start [09:16:01]*** Purtial cut [09:16:01]*** Stage 1: CUTSNS_PIN = 1 [09:16:01]Read from MH i2c: 01 [09:16:01]MH_I2C_Read... [09:16:01]*** Stop cut motor [09:16:01]*** Cut end [09:16:01]Read from MH i2c: 01 07 00 [09:16:01]MH_I2C_Read... [09:16:01]Read from MH i2c: 01 07 00 56 1D 00 00 00 00 00 FF 0F 88 [09:16:01]process_action close_receipt done [09:16:01]requested_data is exist [09:16:01]produce_requested_data [09:16:01]requested_item fm.sn is exist - process it [09:16:01]wFMCommunicate request_size=4 [09:16:01]MH_SAM_APDU [09:16:01]CAPDU: 80 11 00 00 [09:16:01]Write to MH i2c: E2 08 00 57 1D 80 11 00 00 00 00 00 00 EE [09:16:01]Write i2c OK [09:16:01]MH_I2C_Read... [09:16:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:01]Read from MH i2c: E2 [09:16:01]MH_I2C_Read... [09:16:01]Read from MH i2c: E2 17 00 [09:16:01]MH_I2C_Read... [09:16:01]Read from MH i2c: E2 17 00 57 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 43 [09:16:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:16:01]wFMCommunicate OK [09:16:01]requested_item fd.num is exist - process it [09:16:01]SAM_PROTO_GetFieldsCounters [09:16:01]wFMCommunicate request_size=4 [09:16:01]MH_SAM_APDU [09:16:01]CAPDU: 80 13 00 00 [09:16:01]Write to MH i2c: E2 08 00 58 1D 80 13 00 00 00 00 00 00 F1 [09:16:01]Write i2c OK [09:16:01]MH_I2C_Read... [09:16:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:01]Read from MH i2c: E2 [09:16:01]MH_I2C_Read... [09:16:01]Read from MH i2c: E2 62 00 [09:16:01]MH_I2C_Read... [09:16:01]Read from MH i2c: E2 62 00 58 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 53 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [09:16:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 53 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:16:01]wFMCommunicate OK [09:16:01]SAM_PROTO_GetFieldsCounters done [09:16:01]requested_item shift.num is exist - process it [09:16:01]requested_item shift.opened is exist - process it [09:16:01]req_shift_opened [09:16:01]FM_GetShiftState [09:16:01]SAM_PROTO_GetShiftState [09:16:01]wFMCommunicate request_size=4 [09:16:01]MH_SAM_APDU [09:16:01]CAPDU: 80 13 01 00 [09:16:01]Write to MH i2c: E2 08 00 59 1D 80 13 01 00 00 00 00 00 F3 [09:16:01]Write i2c OK [09:16:01]MH_I2C_Read... [09:16:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:01]Read from MH i2c: E2 [09:16:01]MH_I2C_Read... [09:16:01]Read from MH i2c: E2 0E 00 [09:16:01]MH_I2C_Read... [09:16:01]Read from MH i2c: E2 0E 00 59 1D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 02 [09:16:01]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:16:01]wFMCommunicate OK [09:16:01]SAM_PROTO_GetShiftState done [09:16:01]FM_GetShiftState done [09:16:01]req_shift_opened done [09:16:01]requested_item shift.open_date is exist - process it [09:16:01]req_shift_open_date [09:16:01]req_shift_open_date done [09:16:01]produce_requested_data done [09:16:01]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201299,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:16:01]process_action_free close_receipt [09:16:01]json_value_free [09:16:01]json_value_free done [09:16:01]process_json_proto returns [09:16:01]Send response to host [09:16:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201299,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:16:01]free response buf [09:16:01]execute_script done [09:16:01]execute_script returns [09:16:01]free content buf [09:16:01]Sock 7.Close socket [09:16:01]Sock 7.Thread stoped [09:16:05]OFD Sender: No OFD packet to send [09:16:10]OFD Sender: No OFD packet to send [09:16:15]OFD Sender: No OFD packet to send [09:16:20]OFD Sender: No OFD packet to send [09:16:25]OFD Sender: No OFD packet to send [09:16:30]OFD Sender: No OFD packet to send [09:16:35]OFD Sender: No OFD packet to send [09:16:40]OFD Sender: No OFD packet to send [09:16:45]OFD Sender: No OFD packet to send [09:16:50]OFD Sender: No OFD packet to send [09:16:55]OFD Sender: No OFD packet to send [09:17:00]OFD Sender: No OFD packet to send [09:17:05]OFD Sender: No OFD packet to send [09:17:10]OFD Sender: No OFD packet to send [09:17:15]OFD Sender: No OFD packet to send [09:17:20]OFD Sender: No OFD packet to send [09:17:25]OFD Sender: No OFD packet to send [09:17:30]OFD Sender: No OFD packet to send [09:17:35]OFD Sender: No OFD packet to send [09:17:40]OFD Sender: No OFD packet to send [09:17:45]OFD Sender: No OFD packet to send [09:17:50]OFD Sender: No OFD packet to send [09:17:55]OFD Sender: No OFD packet to send [09:18:00]OFD Sender: No OFD packet to send [09:18:05]OFD Sender: No OFD packet to send [09:18:10]OFD Sender: No OFD packet to send [09:18:15]OFD Sender: No OFD packet to send [09:18:20]OFD Sender: No OFD packet to send [09:18:25]OFD Sender: No OFD packet to send [09:18:30]OFD Sender: No OFD packet to send [09:18:35]OFD Sender: No OFD packet to send [09:18:40]OFD Sender: No OFD packet to send [09:18:45]OFD Sender: No OFD packet to send [09:18:50]OFD Sender: No OFD packet to send [09:18:55]OFD Sender: No OFD packet to send [09:19:00]OFD Sender: No OFD packet to send [09:19:05]OFD Sender: No OFD packet to send [09:19:11]OFD Sender: No OFD packet to send [09:19:16]OFD Sender: No OFD packet to send [09:19:21]OFD Sender: No OFD packet to send [09:19:26]OFD Sender: No OFD packet to send [09:19:31]OFD Sender: No OFD packet to send [09:19:36]OFD Sender: No OFD packet to send [09:19:41]OFD Sender: No OFD packet to send [09:19:46]OFD Sender: No OFD packet to send [09:19:51]OFD Sender: No OFD packet to send [09:19:56]OFD Sender: No OFD packet to send [09:20:01]OFD Sender: No OFD packet to send [09:20:06]OFD Sender: No OFD packet to send [09:20:11]OFD Sender: No OFD packet to send [09:20:16]OFD Sender: No OFD packet to send [09:20:21]OFD Sender: No OFD packet to send [09:20:26]OFD Sender: No OFD packet to send [09:20:31]OFD Sender: No OFD packet to send [09:20:36]OFD Sender: No OFD packet to send [09:20:40]accept exits with 9 [09:20:40]New connection [09:20:40]New thread 3067415908 created [09:20:40]Thread 3067559268 joined [09:20:40]Waiting for new connection... [09:20:40] Sock 9.Parse request [09:20:40]Sock 9.Check first char [09:20:40]Sock 9.First char is OK [09:20:40]request: POST /json_proto HTTP/1.0 [09:20:40]Method: POST [09:20:40]URL: /json_proto [09:20:40]Method is POST - this is cgi request [09:20:40]url: /json_proto [09:20:40]query_string will be loaded in cgi processing [09:20:40]execute_cgi json_proto POST (null) [09:20:40]execute_cgi path=json_proto method=POST [09:20:40]POST find Content-Length [09:20:40]Host: 172.17.63.195:8080 [09:20:40]Content-Length: 682 [09:20:40]Content-Type: application/json [09:20:40] [09:20:40]POST finish read [09:20:40]Found Content-Length = 682 [09:20:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:20:40]execute_script... [09:20:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:20:40]POST & json_proto [09:20:40]process_json_proto [09:20:40]json parsed OK: [09:20:40]protocol is kg_v1.0 [09:20:40]action value=close_receipt [09:20:40]process_action close_receipt [09:20:40]cmd_close_receipt [09:20:40]MH_GetDate [09:20:40]Write to MH i2c: F0 00 00 5A 1D 66 [09:20:40]Write i2c OK [09:20:40]MH_I2C_Read... [09:20:40]Read from MH i2c: F0 [09:20:40]MH_I2C_Read... [09:20:40]Read from MH i2c: F0 09 00 [09:20:40]MH_I2C_Read... [09:20:40]Read from MH i2c: F0 09 00 5A 1D 00 6C B4 1C 67 68 46 19 67 40 [09:20:40]GetLastDocTimeStamp 1729934161 [09:20:40]current date 1729934444 [09:20:40]FM_GetShiftState [09:20:40]SAM_PROTO_GetShiftState [09:20:40]wFMCommunicate request_size=4 [09:20:40]MH_SAM_APDU [09:20:40]CAPDU: 80 13 01 00 [09:20:40]Write to MH i2c: E2 08 00 5B 1D 80 13 01 00 00 00 00 00 F5 [09:20:40]Write i2c OK [09:20:40]MH_I2C_Read... [09:20:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:40]Read from MH i2c: E2 [09:20:40]MH_I2C_Read... [09:20:40]Read from MH i2c: E2 0E 00 [09:20:40]MH_I2C_Read... [09:20:40]Read from MH i2c: E2 0E 00 5B 1D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 04 [09:20:40]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:20:40]wFMCommunicate OK [09:20:40]SAM_PROTO_GetShiftState done [09:20:40]FM_GetShiftState done [09:20:40]opened in 1729900879 [09:20:40]opened+sec_in_day 1729987279 [09:20:40]quantity*price = 100015 [09:20:40]sum+1 = 100017 [09:20:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 62 26.10.2024 09:20 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201300 ФПД: 227502255097092 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092044&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201300&fm=227502255097092&tin=02508201610067®Number=0000000000091777&sum=100000 [09:20:41]StoreToDocumentArchive [09:20:41]shift 543 fd 201300 [09:20:41]save to /storage/0543/doc_00201300 [09:20:41]save last doc name /storage/0543/doc_00201300 to /storage/kkm_last_doc_name [09:20:41]save OK [09:20:41]Clear old archive folders... [09:20:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:20:41]tlvbuf is 017402C0 [09:20:41]SAM_PROTO_ClearQueue [09:20:41]wFMCommunicate request_size=4 [09:20:41]MH_SAM_APDU [09:20:41]CAPDU: 80 09 00 00 [09:20:41]Write to MH i2c: E2 08 00 68 1D 80 09 00 00 00 00 00 00 F7 [09:20:41]Write i2c OK [09:20:41]MH_I2C_Read... [09:20:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:41]Read from MH i2c: E2 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: E2 03 00 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: E2 03 00 68 1D 00 90 00 F9 [09:20:41]RAPDU: 90 00 [09:20:41]wFMCommunicate OK [09:20:41]SAM_PROTO_ClearQueue done [09:20:41]KKMCreateOFDPacket [09:20:41]OFDProtocolAddRootSTLVToBuf [09:20:41]FM_MakeSignedData [09:20:41]FM_MakeSignedData [09:20:41]SAM_PROTO_SignData [09:20:41]wFMCommunicate request_size=4 [09:20:41]MH_SAM_APDU [09:20:41]CAPDU: 80 0D 01 02 [09:20:41]Write to MH i2c: E2 08 00 69 1D 80 0D 01 02 00 00 00 00 FF [09:20:41]Write i2c OK [09:20:41]MH_I2C_Read... [09:20:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:41]Read from MH i2c: E2 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: E2 03 00 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: E2 03 00 69 1D 00 90 00 FA [09:20:41]RAPDU: 90 00 [09:20:42]wFMCommunicate OK [09:20:42]wFMCommunicate request_size=255 [09:20:42]MH_SAM_APDU [09:20:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 3E 00 00 00 F4 03 04 00 6C B4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 54 12 03 00 35 04 06 00 CE [09:20:42]Write to MH i2c: E2 02 01 6A 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 32 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 3E 00 00 00 F4 03 04 00 6C B4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 54 12 03 00 35 04 06 00 CE 00 00 C6 [09:20:42]Write i2c OK [09:20:42]MH_I2C_Read... [09:20:42]Read from MH i2c: E2 [09:20:42]MH_I2C_Read... [09:20:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:42]Read from MH i2c: E2 03 00 [09:20:42]MH_I2C_Read... [09:20:42]Read from MH i2c: E2 03 00 6A 1D 00 90 00 FB [09:20:42]RAPDU: 90 00 [09:20:42]wFMCommunicate OK [09:20:42]wFMCommunicate request_size=10 [09:20:42]MH_SAM_APDU [09:20:42]CAPDU: 80 0D 02 02 05 E9 7F 19 C5 04 [09:20:42]Write to MH i2c: E2 0D 00 6B 1D 80 0D 02 02 05 00 E9 7F 19 C5 04 00 00 56 [09:20:42]Write i2c OK [09:20:42]MH_I2C_Read... [09:20:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:42]Read from MH i2c: E2 [09:20:42]MH_I2C_Read... [09:20:42]Read from MH i2c: E2 03 00 [09:20:42]MH_I2C_Read... [09:20:42]Read from MH i2c: E2 03 00 6B 1D 00 90 00 FC [09:20:42]RAPDU: 90 00 [09:20:42]wFMCommunicate OK [09:20:42]wFMCommunicate request_size=4 [09:20:42]MH_SAM_APDU [09:20:42]CAPDU: 80 0D 03 02 [09:20:42]Write to MH i2c: E2 08 00 6C 1D 80 0D 03 02 00 00 00 00 04 [09:20:42]Write i2c OK [09:20:42]MH_I2C_Read... [09:20:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:42]Read from MH i2c: E2 [09:20:42]MH_I2C_Read... [09:20:42]Read from MH i2c: E2 0B 00 [09:20:42]MH_I2C_Read... [09:20:42]Read from MH i2c: E2 0B 00 6C 1D 00 4C 7C 08 6C 8E B2 14 80 90 00 15 [09:20:42]RAPDU: 4C 7C 08 6C 8E B2 14 80 90 00 [09:20:42]wFMCommunicate OK [09:20:42]SAM_PROTO_SignData done [09:20:42]FM_MakeSignedData done [09:20:42]CreateOFDProtocolMessage [09:20:42]wFMCommunicate request_size=4 [09:20:42]MH_SAM_APDU [09:20:42]CAPDU: 80 11 00 00 [09:20:42]Write to MH i2c: E2 08 00 6D 1D 80 11 00 00 00 00 00 00 04 [09:20:42]Write i2c OK [09:20:42]MH_I2C_Read... [09:20:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:42]Read from MH i2c: E2 [09:20:42]MH_I2C_Read... [09:20:42]Read from MH i2c: E2 17 00 [09:20:42]MH_I2C_Read... [09:20:42]Read from MH i2c: E2 17 00 6D 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 59 [09:20:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:20:42]wFMCommunicate OK [09:20:42]CreateOFDProtocolMessage done [09:20:42]OFDSenderStorePacket 201300 [09:20:42]StoreOFDPacket docnum=201300 [09:20:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A2 29 07 01 94 62 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 32 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 3E 00 00 00 F4 03 04 00 6C B4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 54 12 03 00 35 04 06 00 CE E9 7F 19 C5 04 4C 7C 08 6C 8E B2 14 80 [09:20:42]CheckFolder [09:20:42]dirname=/storage/ofd_packets [09:20:42]CheckFolder done [09:20:42]ProducePacketName [09:20:42]name=ofd_packets/00201300 [09:20:42]NVStorageSaveData ofd_packets/00201300 [09:20:42]File name is /storage/ofd_packets/00201300 [09:20:42]Write 301 bytes [09:20:42]NVStorageSaveData done [09:20:42]OFDSenderStorePacket done [09:20:42]KKMCreateOFDPacket done [09:20:42]NVStorageSaveData kkm_last_timestamp [09:20:42]File name is /storage/kkm_last_timestamp [09:20:42]Write 4 bytes [09:20:42]NVStorageSaveData done [09:20:42]ExternCall_PrintAddStr [09:20:42]wPrintStart [09:20:42]Write to MH i2c: 01 00 00 6E 1D 8B [09:20:42]Write i2c OK [09:20:42]MH_I2C_Read... [09:20:42]Read from MH i2c: 01 [09:20:42]MH_I2C_Read... [09:20:42]Read from MH i2c: 01 07 00 [09:20:42]MH_I2C_Read... [09:20:42]Read from MH i2c: 01 07 00 6E 1D 00 00 00 00 00 FF 0F A0 [09:20:42]RasterBufferAndPrint [09:20:42]line Счет N : (1)449047 [09:20:42]line ИНН: 02508201610067 [09:20:42]line Контрольно-Кассовый Чек [09:20:42]line ПРОДАЖА [09:20:42]line ТРК (МРК, ГНК) : 41 [09:20:42]line Товар: 2710124130 [09:20:42]line Аи-92-К-2 [09:20:42]line 14.950 * 66.90 [09:20:42]line = 1000.16 [09:20:42]line НДС 12% НСП 1% [09:20:42]line > о реализуемом товаре [09:20:42]line ОКРУГЛЕНИЕ: -0.16 [09:20:42]line ИТОГО: 1000.00 [09:20:42]line Внесено: 1000.00 [09:20:42]line СДАЧА: 0.00 [09:20:42]line НСП 1% : 8.85 [09:20:42]line НДС 12% : 106.21 [09:20:42]line Наличными: 1000.00 [09:20:42]line Безнал.: 0.00 [09:20:42]line Место: АЗС № 171 "Партнер Нефть" [09:20:42]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:20:42]line СНО: Общий режим [09:20:42]line Чек 62 26.10.2024 09:20 [09:20:42]line Смена: 543 ФФД: 1.0 [09:20:42]line ЗНМ: 0300000109 [09:20:42]line РНМ: 0000000000091777 [09:20:42]line Версия ККМ: 001 [09:20:42]line ФМ: 0000000000871756 [09:20:42]line ФД: 201300 [09:20:42]line ФПД: 227502255097092 [09:20:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092044&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201300&fm=227502255097092&tin=02508201610067®Number=0000000000091777&sum=100000 [09:20:42]OFD Sender: Processing packet 201300 [packets to send 112, broken 111] [09:20:42]ProducePacketName [09:20:42]name=ofd_packets/00201300 [09:20:42]OFD Sender: To server: pG, [09:20:42]CommunicateWithHost lk.salyk.kg:30040 [09:20:42]ConnectInit lk.salyk.kg [09:20:42]written 0, free lines is 4095 [09:20:42]Connected sock=10 [09:20:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A2 29 07 01 94 62 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 32 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 3E 00 00 00 F4 03 04 00 6C B4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 54 12 03 00 35 04 06 00 CE E9 7F 19 C5 04 4C 7C 08 6C 8E B2 14 80 [09:20:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 6B 4F 47 00 EC 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 54 12 03 00 F4 03 04 00 15 60 1C 67 B6 04 01 00 00 B8 D9 1A EE 69 BD 72 2B [09:20:43]CommunicateWithHost err = 0 [09:20:43]CheckOFDResponse [09:20:43]1017 (14) - 77093643461234 [09:20:43]1041 (16) - 0000000000871756 [09:20:43]1040 (4) - 201300 [09:20:43]1012 (4) - 26.10.2024 03:20 [09:20:43]1206 (1) - 0 [09:20:43]OFD Sender: Remove packet 201300 [09:20:43]ProducePacketName [09:20:43]name=ofd_packets/00201300 [09:20:43]NVStorageDeleteData [09:20:43]Write to MH i2c: 01 00 00 99 1D B6 [09:20:43]Write i2c OK [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: 01 [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: 01 07 00 [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: 01 07 00 99 1D 00 00 00 00 00 94 0C 5D [09:20:43]RasterBufferAndPrint [09:20:43]line [09:20:43]line [09:20:43]line [09:20:43]line [09:20:43]line [09:20:43]written 0, free lines is 3224 [09:20:43]MH_Cut [09:20:43]Write to MH i2c: D1 01 00 A0 1D 01 8F [09:20:43]Write i2c OK [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: D1 [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: D1 01 00 [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: D1 01 00 A0 1D 00 8E [09:20:43]Write to MH i2c: 01 00 00 A1 1D BE [09:20:43]Write i2c OK [09:20:43]MH_I2C_Read... [09:20:43]OFD Sender: No OFD packet to send [09:20:44]*** Cut start [09:20:44]*** Purtial cut [09:20:44]*** CUTSNS_PIN = 0 [09:20:44]*** Stage 1: CUTSNS_PIN = 1 [09:20:46]Read from MH i2c: 01 [09:20:46]MH_I2C_Read... [09:20:46]*** Stop cut motor [09:20:46]*** Cut end [09:20:46]Read from MH i2c: 01 07 00 [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: 01 07 00 A1 1D 00 00 00 00 00 FF 0F D3 [09:20:46]process_action close_receipt done [09:20:46]requested_data is exist [09:20:46]produce_requested_data [09:20:46]requested_item fm.sn is exist - process it [09:20:46]wFMCommunicate request_size=4 [09:20:46]MH_SAM_APDU [09:20:46]CAPDU: 80 11 00 00 [09:20:46]Write to MH i2c: E2 08 00 A2 1D 80 11 00 00 00 00 00 00 39 [09:20:46]Write i2c OK [09:20:46]MH_I2C_Read... [09:20:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:46]Read from MH i2c: E2 [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: E2 17 00 [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: E2 17 00 A2 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8E [09:20:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:20:46]wFMCommunicate OK [09:20:46]requested_item fd.num is exist - process it [09:20:46]SAM_PROTO_GetFieldsCounters [09:20:46]wFMCommunicate request_size=4 [09:20:46]MH_SAM_APDU [09:20:46]CAPDU: 80 13 00 00 [09:20:46]Write to MH i2c: E2 08 00 A3 1D 80 13 00 00 00 00 00 00 3C [09:20:46]Write i2c OK [09:20:46]MH_I2C_Read... [09:20:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:46]Read from MH i2c: E2 [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: E2 62 00 [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: E2 62 00 A3 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 54 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [09:20:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 54 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:20:46]wFMCommunicate OK [09:20:46]SAM_PROTO_GetFieldsCounters done [09:20:46]requested_item shift.num is exist - process it [09:20:46]requested_item shift.opened is exist - process it [09:20:46]req_shift_opened [09:20:46]FM_GetShiftState [09:20:46]SAM_PROTO_GetShiftState [09:20:46]wFMCommunicate request_size=4 [09:20:46]MH_SAM_APDU [09:20:46]CAPDU: 80 13 01 00 [09:20:46]Write to MH i2c: E2 08 00 A4 1D 80 13 01 00 00 00 00 00 3E [09:20:46]Write i2c OK [09:20:46]MH_I2C_Read... [09:20:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:46]Read from MH i2c: E2 [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: E2 0E 00 [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: E2 0E 00 A4 1D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 4D [09:20:46]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:20:46]wFMCommunicate OK [09:20:46]SAM_PROTO_GetShiftState done [09:20:46]FM_GetShiftState done [09:20:46]req_shift_opened done [09:20:46]requested_item shift.open_date is exist - process it [09:20:46]req_shift_open_date [09:20:46]req_shift_open_date done [09:20:46]produce_requested_data done [09:20:46]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201300,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:20:46]process_action_free close_receipt [09:20:46]json_value_free [09:20:46]json_value_free done [09:20:46]process_json_proto returns [09:20:46]Send response to host [09:20:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201300,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:20:46]free response buf [09:20:46]execute_script done [09:20:46]execute_script returns [09:20:46]free content buf [09:20:46]Sock 9.Close socket [09:20:46]Sock 9.Thread stoped [09:20:48]OFD Sender: No OFD packet to send [09:20:53]OFD Sender: No OFD packet to send [09:20:58]OFD Sender: No OFD packet to send [09:21:03]OFD Sender: No OFD packet to send [09:21:08]OFD Sender: No OFD packet to send [09:21:13]OFD Sender: No OFD packet to send [09:21:18]OFD Sender: No OFD packet to send [09:21:23]OFD Sender: No OFD packet to send [09:21:28]OFD Sender: No OFD packet to send [09:21:33]OFD Sender: No OFD packet to send [09:21:37]accept exits with 7 [09:21:37]New connection [09:21:37]New thread 3067559268 created [09:21:37]Thread 3067415908 joined [09:21:37]Waiting for new connection... [09:21:37] Sock 7.Parse request [09:21:37]Sock 7.Check first char [09:21:37]Sock 7.First char is OK [09:21:37]request: POST /json_proto HTTP/1.0 [09:21:37]Method: POST [09:21:37]URL: /json_proto [09:21:37]Method is POST - this is cgi request [09:21:37]url: /json_proto [09:21:37]query_string will be loaded in cgi processing [09:21:37]execute_cgi json_proto POST (null) [09:21:37]execute_cgi path=json_proto method=POST [09:21:37]POST find Content-Length [09:21:37]Host: 172.17.63.195:8080 [09:21:37]Content-Length: 766 [09:21:37]Content-Type: application/json [09:21:37] [09:21:37]POST finish read [09:21:37]Found Content-Length = 766 [09:21:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.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: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:37]execute_script... [09:21:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.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: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:37]POST & json_proto [09:21:37]process_json_proto [09:21:37]json parsed OK: [09:21:37]protocol is kg_v1.0 [09:21:37]action value=close_receipt [09:21:37]process_action close_receipt [09:21:37]cmd_close_receipt [09:21:37]MH_GetDate [09:21:37]Write to MH i2c: F0 00 00 A5 1D B1 [09:21:37]Write i2c OK [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: F0 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: F0 09 00 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: F0 09 00 A5 1D 00 A5 B4 1C 67 68 46 19 67 C4 [09:21:37]GetLastDocTimeStamp 1729934444 [09:21:37]current date 1729934501 [09:21:37]FM_GetShiftState [09:21:37]SAM_PROTO_GetShiftState [09:21:37]wFMCommunicate request_size=4 [09:21:37]MH_SAM_APDU [09:21:37]CAPDU: 80 13 01 00 [09:21:37]Write to MH i2c: E2 08 00 A6 1D 80 13 01 00 00 00 00 00 40 [09:21:37]Write i2c OK [09:21:37]MH_I2C_Read... [09:21:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:37]Read from MH i2c: E2 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: E2 0E 00 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: E2 0E 00 A6 1D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 4F [09:21:37]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:21:37]wFMCommunicate OK [09:21:37]SAM_PROTO_GetShiftState done [09:21:37]FM_GetShiftState done [09:21:37]opened in 1729900879 [09:21:37]opened+sec_in_day 1729987279 [09:21:37]quantity*price = 200025 [09:21:37]sum+1 = 200026 [09:21:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 63 26.10.2024 09:21 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201301 ФПД: 121165035739392 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092141&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201301&fm=121165035739392&tin=02508201610067®Number=0000000000091777&sum=200025 [09:21:38]StoreToDocumentArchive [09:21:38]shift 543 fd 201301 [09:21:38]save to /storage/0543/doc_00201301 [09:21:38]save last doc name /storage/0543/doc_00201301 to /storage/kkm_last_doc_name [09:21:38]save OK [09:21:38]Clear old archive folders... [09:21:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:21:38]tlvbuf is 016FF7E0 [09:21:38]SAM_PROTO_ClearQueue [09:21:38]wFMCommunicate request_size=4 [09:21:38]MH_SAM_APDU [09:21:38]CAPDU: 80 09 00 00 [09:21:38]Write to MH i2c: E2 08 00 B3 1D 80 09 00 00 00 00 00 00 42 [09:21:38]Write i2c OK [09:21:38]MH_I2C_Read... [09:21:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:21:38]Read from MH i2c: E2 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: E2 03 00 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: E2 03 00 B3 1D 00 90 00 44 [09:21:38]RAPDU: 90 00 [09:21:38]wFMCommunicate OK [09:21:38]SAM_PROTO_ClearQueue done [09:21:38]KKMCreateOFDPacket [09:21:38]OFDProtocolAddRootSTLVToBuf [09:21:38]FM_MakeSignedData [09:21:38]FM_MakeSignedData [09:21:38]SAM_PROTO_SignData [09:21:38]wFMCommunicate request_size=4 [09:21:38]MH_SAM_APDU [09:21:38]CAPDU: 80 0D 01 02 [09:21:38]Write to MH i2c: E2 08 00 B4 1D 80 0D 01 02 00 00 00 00 4A [09:21:38]Write i2c OK [09:21:38]MH_I2C_Read... [09:21:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:21:38]Read from MH i2c: E2 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: E2 03 00 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: E2 03 00 B4 1D 00 90 00 45 [09:21:38]RAPDU: 90 00 [09:21:38]wFMCommunicate OK [09:21:38]wFMCommunicate request_size=255 [09:21:38]MH_SAM_APDU [09:21:38]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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 A5 B4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 55 12 03 00 35 04 06 00 6E 32 EE EA [09:21:38]Write to MH i2c: E2 02 01 B5 1D 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 A5 B4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 55 12 03 00 35 04 06 00 6E 32 EE EA 00 00 12 [09:21:38]Write i2c OK [09:21:38]MH_I2C_Read... [09:21:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:39]Read from MH i2c: E2 [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: E2 03 00 [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: E2 03 00 B5 1D 00 90 00 46 [09:21:39]RAPDU: 90 00 [09:21:39]wFMCommunicate OK [09:21:39]wFMCommunicate request_size=7 [09:21:39]MH_SAM_APDU [09:21:39]CAPDU: 80 0D 02 02 02 19 00 [09:21:39]Write to MH i2c: E2 0A 00 B6 1D 80 0D 02 02 02 00 19 00 00 00 6A [09:21:39]Write i2c OK [09:21:39]MH_I2C_Read... [09:21:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:39]Read from MH i2c: E2 [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: E2 03 00 [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: E2 03 00 B6 1D 00 90 00 47 [09:21:39]RAPDU: 90 00 [09:21:39]wFMCommunicate OK [09:21:39]wFMCommunicate request_size=4 [09:21:39]MH_SAM_APDU [09:21:39]CAPDU: 80 0D 03 02 [09:21:39]Write to MH i2c: E2 08 00 B7 1D 80 0D 03 02 00 00 00 00 4F [09:21:39]Write i2c OK [09:21:39]MH_I2C_Read... [09:21:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:21:39]Read from MH i2c: E2 [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: E2 0B 00 [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: E2 0B 00 B7 1D 00 BC 4C F4 A1 D9 7A A7 F6 90 00 DD [09:21:39]RAPDU: BC 4C F4 A1 D9 7A A7 F6 90 00 [09:21:39]wFMCommunicate OK [09:21:39]SAM_PROTO_SignData done [09:21:39]FM_MakeSignedData done [09:21:39]CreateOFDProtocolMessage [09:21:39]wFMCommunicate request_size=4 [09:21:39]MH_SAM_APDU [09:21:39]CAPDU: 80 11 00 00 [09:21:39]Write to MH i2c: E2 08 00 B8 1D 80 11 00 00 00 00 00 00 4F [09:21:39]Write i2c OK [09:21:39]MH_I2C_Read... [09:21:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:39]Read from MH i2c: E2 [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: E2 17 00 [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: E2 17 00 B8 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A4 [09:21:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:21:39]wFMCommunicate OK [09:21:39]CreateOFDProtocolMessage done [09:21:39]OFDSenderStorePacket 201301 [09:21:39]StoreOFDPacket docnum=201301 [09:21:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 DB 0F 04 01 A7 11 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 A5 B4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 55 12 03 00 35 04 06 00 6E 32 EE EA 19 00 BC 4C F4 A1 D9 7A A7 F6 [09:21:39]CheckFolder [09:21:39]dirname=/storage/ofd_packets [09:21:39]CheckFolder done [09:21:39]ProducePacketName [09:21:39]name=ofd_packets/00201301 [09:21:39]NVStorageSaveData ofd_packets/00201301 [09:21:39]File name is /storage/ofd_packets/00201301 [09:21:39]Write 298 bytes [09:21:39]NVStorageSaveData done [09:21:39]OFDSenderStorePacket done [09:21:39]KKMCreateOFDPacket done [09:21:39]NVStorageSaveData kkm_last_timestamp [09:21:39]File name is /storage/kkm_last_timestamp [09:21:39]Write 4 bytes [09:21:39]NVStorageSaveData done [09:21:39]ExternCall_PrintAddStr [09:21:39]wPrintStart [09:21:39]Write to MH i2c: 01 00 00 B9 1D D6 [09:21:39]Write i2c OK [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: 01 [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: 01 07 00 [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: 01 07 00 B9 1D 00 00 00 00 00 FF 0F EB [09:21:39]RasterBufferAndPrint [09:21:39]line Счет N : (1)449048 [09:21:39]line ИНН: 02508201610067 [09:21:39]line Контрольно-Кассовый Чек [09:21:39]line ПРОДАЖА [09:21:39]line ТРК (МРК, ГНК) : 33 [09:21:39]line Товар: 2710194210 [09:21:39]line ДТ-К-2 [09:21:39]line 26.250 * 76.20 [09:21:39]line = 2000.25 [09:21:39]line НДС 12% НСП 1% [09:21:39]line > о реализуемом товаре [09:21:39]line ИТОГО: 2000.25 [09:21:39]line НСП 1% : 17.70 [09:21:39]line НДС 12% : 212.42 [09:21:39]line Наличными: 0.00 [09:21:39]line Безнал.: 2000.25 [09:21:39]line Место: АЗС № 171 "Партнер Нефть" [09:21:39]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:21:39]line СНО: Общий режим [09:21:39]line Чек 63 26.10.2024 09:21 [09:21:39]line Смена: 543 ФФД: 1.0 [09:21:39]line ЗНМ: 0300000109 [09:21:39]line РНМ: 0000000000091777 [09:21:39]line Версия ККМ: 001 [09:21:39]line Платежная система: Mbank [09:21:39]line ФМ: 0000000000871756 [09:21:39]line ФД: 201301 [09:21:39]line ФПД: 121165035739392 [09:21:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092141&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201301&fm=121165035739392&tin=02508201610067®Number=0000000000091777&sum=200025 [09:21:39]OFD Sender: Processing packet 201301 [packets to send 112, broken 111] [09:21:39]ProducePacketName [09:21:39]name=ofd_packets/00201301 [09:21:39]OFD Sender: To server: pG, [09:21:39]CommunicateWithHost lk.salyk.kg:30040 [09:21:39]ConnectInit lk.salyk.kg [09:21:39]written 0, free lines is 4095 [09:21:39]Connected sock=10 [09:21:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 DB 0F 04 01 A7 11 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 A5 B4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 55 12 03 00 35 04 06 00 6E 32 EE EA 19 00 BC 4C F4 A1 D9 7A A7 F6 [09:21:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 3B D6 47 00 4A 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 55 12 03 00 F4 03 04 00 4E 60 1C 67 B6 04 01 00 00 95 31 4F 40 56 C9 24 41 [09:21:40]CommunicateWithHost err = 0 [09:21:40]CheckOFDResponse [09:21:40]1017 (14) - 77093643461234 [09:21:40]1041 (16) - 0000000000871756 [09:21:40]1040 (4) - 201301 [09:21:40]1012 (4) - 26.10.2024 03:21 [09:21:40]1206 (1) - 0 [09:21:40]OFD Sender: Remove packet 201301 [09:21:40]ProducePacketName [09:21:40]name=ofd_packets/00201301 [09:21:40]NVStorageDeleteData [09:21:40]Write to MH i2c: 01 00 00 E2 1D FF [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: 01 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: 01 07 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: 01 07 00 E2 1D 00 00 00 00 00 BF 0C D1 [09:21:40]RasterBufferAndPrint [09:21:40]line [09:21:40]line [09:21:40]line [09:21:40]line [09:21:40]line [09:21:40]written 0, free lines is 3269 [09:21:40]MH_Cut [09:21:40]Write to MH i2c: D1 01 00 E9 1D 01 D8 [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: D1 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: D1 01 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: D1 01 00 E9 1D 00 D7 [09:21:40]Write to MH i2c: 01 00 00 EA 1D 07 [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]OFD Sender: No OFD packet to send [09:21:40]*** Cut start [09:21:40]*** Purtial cut [09:21:40]*** Stage 1: CUTSNS_PIN = 1 [09:21:41]Read from MH i2c: 01 [09:21:41]MH_I2C_Read... [09:21:41]*** Stop cut motor [09:21:41]*** Cut end [09:21:41]Read from MH i2c: 01 07 00 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: 01 07 00 EA 1D 00 00 00 00 00 FF 0F 1C [09:21:41]process_action close_receipt done [09:21:41]requested_data is exist [09:21:41]produce_requested_data [09:21:41]requested_item fm.sn is exist - process it [09:21:41]wFMCommunicate request_size=4 [09:21:41]MH_SAM_APDU [09:21:41]CAPDU: 80 11 00 00 [09:21:41]Write to MH i2c: E2 08 00 EB 1D 80 11 00 00 00 00 00 00 82 [09:21:41]Write i2c OK [09:21:41]MH_I2C_Read... [09:21:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:41]Read from MH i2c: E2 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: E2 17 00 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: E2 17 00 EB 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D7 [09:21:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:21:41]wFMCommunicate OK [09:21:41]requested_item fd.num is exist - process it [09:21:41]SAM_PROTO_GetFieldsCounters [09:21:41]wFMCommunicate request_size=4 [09:21:41]MH_SAM_APDU [09:21:41]CAPDU: 80 13 00 00 [09:21:41]Write to MH i2c: E2 08 00 EC 1D 80 13 00 00 00 00 00 00 85 [09:21:41]Write i2c OK [09:21:41]MH_I2C_Read... [09:21:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:41]Read from MH i2c: E2 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: E2 62 00 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: E2 62 00 EC 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 55 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [09:21:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 55 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:21:41]wFMCommunicate OK [09:21:41]SAM_PROTO_GetFieldsCounters done [09:21:41]requested_item shift.num is exist - process it [09:21:41]requested_item shift.opened is exist - process it [09:21:41]req_shift_opened [09:21:41]FM_GetShiftState [09:21:41]SAM_PROTO_GetShiftState [09:21:41]wFMCommunicate request_size=4 [09:21:41]MH_SAM_APDU [09:21:41]CAPDU: 80 13 01 00 [09:21:41]Write to MH i2c: E2 08 00 ED 1D 80 13 01 00 00 00 00 00 87 [09:21:41]Write i2c OK [09:21:41]MH_I2C_Read... [09:21:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:41]Read from MH i2c: E2 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: E2 0E 00 [09:21:41]MH_I2C_Read... [09:21:41]Read from MH i2c: E2 0E 00 ED 1D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 96 [09:21:41]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:21:41]wFMCommunicate OK [09:21:41]SAM_PROTO_GetShiftState done [09:21:41]FM_GetShiftState done [09:21:41]req_shift_opened done [09:21:41]requested_item shift.open_date is exist - process it [09:21:41]req_shift_open_date [09:21:41]req_shift_open_date done [09:21:41]produce_requested_data done [09:21:41]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201301,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:21:41]process_action_free close_receipt [09:21:41]json_value_free [09:21:41]json_value_free done [09:21:41]process_json_proto returns [09:21:41]Send response to host [09:21:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201301,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:21:41]free response buf [09:21:41]execute_script done [09:21:41]execute_script returns [09:21:41]free content buf [09:21:41]Sock 7.Close socket [09:21:41]Sock 7.Thread stoped [09:21:45]OFD Sender: No OFD packet to send [09:21:50]OFD Sender: No OFD packet to send [09:21:55]OFD Sender: No OFD packet to send [09:22:00]OFD Sender: No OFD packet to send [09:22:05]OFD Sender: No OFD packet to send [09:22:10]OFD Sender: No OFD packet to send [09:22:15]OFD Sender: No OFD packet to send [09:22:20]OFD Sender: No OFD packet to send [09:22:25]OFD Sender: No OFD packet to send [09:22:27]accept exits with 9 [09:22:27]New connection [09:22:27]New thread 3067415908 created [09:22:27]Thread 3067559268 joined [09:22:27]Waiting for new connection... [09:22:27] Sock 9.Parse request [09:22:27]Sock 9.Check first char [09:22:27]Sock 9.First char is OK [09:22:27]request: POST /json_proto HTTP/1.0 [09:22:27]Method: POST [09:22:27]URL: /json_proto [09:22:27]Method is POST - this is cgi request [09:22:27]url: /json_proto [09:22:27]query_string will be loaded in cgi processing [09:22:27]execute_cgi json_proto POST (null) [09:22:27]execute_cgi path=json_proto method=POST [09:22:27]POST find Content-Length [09:22:27]Host: 172.17.63.195:8080 [09:22:27]Content-Length: 679 [09:22:27]Content-Type: application/json [09:22:27] [09:22:27]POST finish read [09:22:27]Found Content-Length = 679 [09:22:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [09:22:27]execute_script... [09:22:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [09:22:27]POST & json_proto [09:22:27]process_json_proto [09:22:27]json parsed OK: [09:22:27]protocol is kg_v1.0 [09:22:27]action value=close_receipt [09:22:27]process_action close_receipt [09:22:27]cmd_close_receipt [09:22:27]MH_GetDate [09:22:27]Write to MH i2c: F0 00 00 EE 1D FA [09:22:27]Write i2c OK [09:22:27]MH_I2C_Read... [09:22:27]Read from MH i2c: F0 [09:22:27]MH_I2C_Read... [09:22:27]Read from MH i2c: F0 09 00 [09:22:27]MH_I2C_Read... [09:22:27]Read from MH i2c: F0 09 00 EE 1D 00 D6 B4 1C 67 68 46 19 67 3E [09:22:27]GetLastDocTimeStamp 1729934501 [09:22:27]current date 1729934550 [09:22:27]FM_GetShiftState [09:22:27]SAM_PROTO_GetShiftState [09:22:27]wFMCommunicate request_size=4 [09:22:27]MH_SAM_APDU [09:22:27]CAPDU: 80 13 01 00 [09:22:27]Write to MH i2c: E2 08 00 EF 1D 80 13 01 00 00 00 00 00 89 [09:22:27]Write i2c OK [09:22:27]MH_I2C_Read... [09:22:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:27]Read from MH i2c: E2 [09:22:27]MH_I2C_Read... [09:22:27]Read from MH i2c: E2 0E 00 [09:22:27]MH_I2C_Read... [09:22:27]Read from MH i2c: E2 0E 00 EF 1D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 98 [09:22:27]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:22:27]wFMCommunicate OK [09:22:27]SAM_PROTO_GetShiftState done [09:22:27]FM_GetShiftState done [09:22:27]opened in 1729900879 [09:22:27]opened+sec_in_day 1729987279 [09:22:27]quantity*price = 150037 [09:22:27]sum+1 = 150039 [09:22:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 64 26.10.2024 09:22 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201302 ФПД: 252832615632000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092230&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201302&fm=252832615632000&tin=02508201610067®Number=0000000000091777&sum=150000 [09:22:28]StoreToDocumentArchive [09:22:28]shift 543 fd 201302 [09:22:28]save to /storage/0543/doc_00201302 [09:22:28]save last doc name /storage/0543/doc_00201302 to /storage/kkm_last_doc_name [09:22:28]save OK [09:22:28]Clear old archive folders... [09:22:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:22:28]tlvbuf is 01767660 [09:22:28]SAM_PROTO_ClearQueue [09:22:28]wFMCommunicate request_size=4 [09:22:28]MH_SAM_APDU [09:22:28]CAPDU: 80 09 00 00 [09:22:28]Write to MH i2c: E2 08 00 FC 1D 80 09 00 00 00 00 00 00 8B [09:22:28]Write i2c OK [09:22:28]MH_I2C_Read... [09:22:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:28]Read from MH i2c: E2 [09:22:28]MH_I2C_Read... [09:22:28]Read from MH i2c: E2 03 00 [09:22:28]MH_I2C_Read... [09:22:28]Read from MH i2c: E2 03 00 FC 1D 00 90 00 8D [09:22:28]RAPDU: 90 00 [09:22:28]wFMCommunicate OK [09:22:28]SAM_PROTO_ClearQueue done [09:22:28]KKMCreateOFDPacket [09:22:28]OFDProtocolAddRootSTLVToBuf [09:22:28]FM_MakeSignedData [09:22:28]FM_MakeSignedData [09:22:28]SAM_PROTO_SignData [09:22:28]wFMCommunicate request_size=4 [09:22:28]MH_SAM_APDU [09:22:28]CAPDU: 80 0D 01 02 [09:22:28]Write to MH i2c: E2 08 00 FD 1D 80 0D 01 02 00 00 00 00 93 [09:22:28]Write i2c OK [09:22:28]MH_I2C_Read... [09:22:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:28]Read from MH i2c: E2 [09:22:28]MH_I2C_Read... [09:22:28]Read from MH i2c: E2 03 00 [09:22:28]MH_I2C_Read... [09:22:28]Read from MH i2c: E2 03 00 FD 1D 00 90 00 8E [09:22:28]RAPDU: 90 00 [09:22:28]wFMCommunicate OK [09:22:28]wFMCommunicate request_size=255 [09:22:28]MH_SAM_APDU [09:22:28]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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 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 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 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 40 00 00 00 F4 03 04 00 D6 B4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 56 12 03 00 35 04 06 00 E5 F3 2E 3E [09:22:28]Write to MH i2c: E2 02 01 FE 1D 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 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 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 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 40 00 00 00 F4 03 04 00 D6 B4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 56 12 03 00 35 04 06 00 E5 F3 2E 3E 00 00 B1 [09:22:28]Write i2c OK [09:22:28]MH_I2C_Read... [09:22:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:28]Read from MH i2c: E2 [09:22:28]MH_I2C_Read... [09:22:28]Read from MH i2c: E2 03 00 [09:22:28]MH_I2C_Read... [09:22:28]Read from MH i2c: E2 03 00 FE 1D 00 90 00 8F [09:22:28]RAPDU: 90 00 [09:22:28]wFMCommunicate OK [09:22:28]wFMCommunicate request_size=7 [09:22:28]MH_SAM_APDU [09:22:28]CAPDU: 80 0D 02 02 02 0C 80 [09:22:28]Write to MH i2c: E2 0A 00 FF 1D 80 0D 02 02 02 00 0C 80 00 00 26 [09:22:28]Write i2c OK [09:22:28]MH_I2C_Read... [09:22:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:28]Read from MH i2c: E2 [09:22:28]MH_I2C_Read... [09:22:28]Read from MH i2c: E2 03 00 [09:22:28]MH_I2C_Read... [09:22:28]Read from MH i2c: E2 03 00 FF 1D 00 90 00 90 [09:22:28]RAPDU: 90 00 [09:22:28]wFMCommunicate OK [09:22:28]wFMCommunicate request_size=4 [09:22:28]MH_SAM_APDU [09:22:28]CAPDU: 80 0D 03 02 [09:22:28]Write to MH i2c: E2 08 00 00 1E 80 0D 03 02 00 00 00 00 99 [09:22:28]Write i2c OK [09:22:28]MH_I2C_Read... [09:22:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:28]Read from MH i2c: E2 [09:22:28]MH_I2C_Read... [09:22:28]Read from MH i2c: E2 0B 00 [09:22:28]MH_I2C_Read... [09:22:28]Read from MH i2c: E2 0B 00 00 1E 00 B5 88 D9 04 46 70 60 89 90 00 53 [09:22:28]RAPDU: B5 88 D9 04 46 70 60 89 90 00 [09:22:28]wFMCommunicate OK [09:22:28]SAM_PROTO_SignData done [09:22:28]FM_MakeSignedData done [09:22:28]CreateOFDProtocolMessage [09:22:28]wFMCommunicate request_size=4 [09:22:28]MH_SAM_APDU [09:22:28]CAPDU: 80 11 00 00 [09:22:28]Write to MH i2c: E2 08 00 01 1E 80 11 00 00 00 00 00 00 99 [09:22:28]Write i2c OK [09:22:28]MH_I2C_Read... [09:22:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:28]Read from MH i2c: E2 [09:22:28]MH_I2C_Read... [09:22:28]Read from MH i2c: E2 17 00 [09:22:28]MH_I2C_Read... [09:22:28]Read from MH i2c: E2 17 00 01 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EE [09:22:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:22:28]wFMCommunicate OK [09:22:28]CreateOFDProtocolMessage done [09:22:28]OFDSenderStorePacket 201302 [09:22:28]StoreOFDPacket docnum=201302 [09:22:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 B0 3D 04 01 9C CA 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 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 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 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 40 00 00 00 F4 03 04 00 D6 B4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 56 12 03 00 35 04 06 00 E5 F3 2E 3E 0C 80 B5 88 D9 04 46 70 60 89 [09:22:28]CheckFolder [09:22:28]dirname=/storage/ofd_packets [09:22:28]CheckFolder done [09:22:28]ProducePacketName [09:22:28]name=ofd_packets/00201302 [09:22:28]NVStorageSaveData ofd_packets/00201302 [09:22:28]File name is /storage/ofd_packets/00201302 [09:22:28]Write 298 bytes [09:22:28]NVStorageSaveData done [09:22:28]OFDSenderStorePacket done [09:22:28]KKMCreateOFDPacket done [09:22:28]NVStorageSaveData kkm_last_timestamp [09:22:28]File name is /storage/kkm_last_timestamp [09:22:28]Write 4 bytes [09:22:28]NVStorageSaveData done [09:22:28]ExternCall_PrintAddStr [09:22:28]wPrintStart [09:22:28]Write to MH i2c: 01 00 00 02 1E 20 [09:22:28]Write i2c OK [09:22:28]MH_I2C_Read... [09:22:28]Read from MH i2c: 01 [09:22:28]MH_I2C_Read... [09:22:28]Read from MH i2c: 01 07 00 [09:22:28]MH_I2C_Read... [09:22:28]Read from MH i2c: 01 07 00 02 1E 00 00 00 00 00 FF 0F 35 [09:22:28]RasterBufferAndPrint [09:22:28]line Счет N : (1)449049 [09:22:28]line ИНН: 02508201610067 [09:22:28]line Контрольно-Кассовый Чек [09:22:28]line ПРОДАЖА [09:22:28]line ТРК (МРК, ГНК) : 43 [09:22:28]line Товар: 2710194210 [09:22:28]line ДТ-К-2 [09:22:28]line 19.690 * 76.20 [09:22:28]line = 1500.38 [09:22:28]line НДС 12% НСП 1% [09:22:28]line > о реализуемом товаре [09:22:28]line ОКРУГЛЕНИЕ: -0.38 [09:22:28]line ИТОГО: 1500.00 [09:22:28]line Внесено: 1500.00 [09:22:28]line СДАЧА: 0.00 [09:22:28]line НСП 1% : 13.28 [09:22:28]line НДС 12% : 159.33 [09:22:28]line Наличными: 1500.00 [09:22:28]line Безнал.: 0.00 [09:22:28]line Место: АЗС № 171 "Партнер Нефть" [09:22:28]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:22:28]line СНО: Общий режим [09:22:28]line Чек 64 26.10.2024 09:22 [09:22:28]line Смена: 543 ФФД: 1.0 [09:22:28]line ЗНМ: 0300000109 [09:22:28]line РНМ: 0000000000091777 [09:22:28]line Версия ККМ: 001 [09:22:28]line ФМ: 0000000000871756 [09:22:28]line ФД: 201302 [09:22:29]line ФПД: 252832615632000 [09:22:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092230&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201302&fm=252832615632000&tin=02508201610067®Number=0000000000091777&sum=150000 [09:22:29]OFD Sender: Processing packet 201302 [packets to send 112, broken 111] [09:22:29]ProducePacketName [09:22:29]name=ofd_packets/00201302 [09:22:29]OFD Sender: To server: pG, [09:22:29]CommunicateWithHost lk.salyk.kg:30040 [09:22:29]ConnectInit lk.salyk.kg [09:22:29]written 0, free lines is 4095 [09:22:29]Connected sock=10 [09:22:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 B0 3D 04 01 9C CA 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 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 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 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 40 00 00 00 F4 03 04 00 D6 B4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 56 12 03 00 35 04 06 00 E5 F3 2E 3E 0C 80 B5 88 D9 04 46 70 60 89 [09:22:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 0E 20 47 00 8A 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 56 12 03 00 F4 03 04 00 80 60 1C 67 B6 04 01 00 00 24 44 C6 9A A8 D1 FD AF [09:22:29]CommunicateWithHost err = 0 [09:22:29]CheckOFDResponse [09:22:29]1017 (14) - 77093643461234 [09:22:29]1041 (16) - 0000000000871756 [09:22:29]1040 (4) - 201302 [09:22:29]1012 (4) - 26.10.2024 03:22 [09:22:29]1206 (1) - 0 [09:22:29]OFD Sender: Remove packet 201302 [09:22:29]ProducePacketName [09:22:29]name=ofd_packets/00201302 [09:22:29]NVStorageDeleteData [09:22:29]Write to MH i2c: 01 00 00 2D 1E 4B [09:22:29]Write i2c OK [09:22:29]MH_I2C_Read... [09:22:29]Read from MH i2c: 01 [09:22:29]MH_I2C_Read... [09:22:29]Read from MH i2c: 01 07 00 [09:22:29]MH_I2C_Read... [09:22:29]Read from MH i2c: 01 07 00 2D 1E 00 00 00 00 00 A2 0C 00 [09:22:29]RasterBufferAndPrint [09:22:29]line [09:22:29]line [09:22:29]line [09:22:29]line [09:22:29]line [09:22:29]written 0, free lines is 3238 [09:22:29]MH_Cut [09:22:29]Write to MH i2c: D1 01 00 34 1E 01 24 [09:22:29]Write i2c OK [09:22:29]MH_I2C_Read... [09:22:29]Read from MH i2c: D1 [09:22:29]MH_I2C_Read... [09:22:29]Read from MH i2c: D1 01 00 [09:22:29]MH_I2C_Read... [09:22:29]Read from MH i2c: D1 01 00 34 1E 00 23 [09:22:29]Write to MH i2c: 01 00 00 35 1E 53 [09:22:29]Write i2c OK [09:22:29]MH_I2C_Read... [09:22:30]OFD Sender: No OFD packet to send [09:22:30]*** Cut start [09:22:30]*** Purtial cut [09:22:30]*** Stage 1: CUTSNS_PIN = 1 [09:22:30]Read from MH i2c: 01 [09:22:30]MH_I2C_Read... [09:22:30]Read from MH i2c: 01 07 00 [09:22:30]MH_I2C_Read... [09:22:30]*** Stop cut motor [09:22:30]*** Cut end [09:22:30]Read from MH i2c: 01 07 00 35 1E 00 00 00 00 00 FF 0F 68 [09:22:30]process_action close_receipt done [09:22:30]requested_data is exist [09:22:30]produce_requested_data [09:22:30]requested_item fm.sn is exist - process it [09:22:30]wFMCommunicate request_size=4 [09:22:30]MH_SAM_APDU [09:22:30]CAPDU: 80 11 00 00 [09:22:30]Write to MH i2c: E2 08 00 36 1E 80 11 00 00 00 00 00 00 CE [09:22:30]Write i2c OK [09:22:30]MH_I2C_Read... [09:22:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:30]Read from MH i2c: E2 [09:22:30]MH_I2C_Read... [09:22:30]Read from MH i2c: E2 17 00 [09:22:30]MH_I2C_Read... [09:22:30]Read from MH i2c: E2 17 00 36 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 23 [09:22:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:22:30]wFMCommunicate OK [09:22:30]requested_item fd.num is exist - process it [09:22:30]SAM_PROTO_GetFieldsCounters [09:22:30]wFMCommunicate request_size=4 [09:22:30]MH_SAM_APDU [09:22:30]CAPDU: 80 13 00 00 [09:22:30]Write to MH i2c: E2 08 00 37 1E 80 13 00 00 00 00 00 00 D1 [09:22:30]Write i2c OK [09:22:30]MH_I2C_Read... [09:22:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:30]Read from MH i2c: E2 [09:22:30]MH_I2C_Read... [09:22:30]Read from MH i2c: E2 62 00 [09:22:30]MH_I2C_Read... [09:22:30]Read from MH i2c: E2 62 00 37 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 56 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [09:22:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 56 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:22:30]wFMCommunicate OK [09:22:30]SAM_PROTO_GetFieldsCounters done [09:22:30]requested_item shift.num is exist - process it [09:22:30]requested_item shift.opened is exist - process it [09:22:30]req_shift_opened [09:22:30]FM_GetShiftState [09:22:30]SAM_PROTO_GetShiftState [09:22:30]wFMCommunicate request_size=4 [09:22:30]MH_SAM_APDU [09:22:30]CAPDU: 80 13 01 00 [09:22:30]Write to MH i2c: E2 08 00 38 1E 80 13 01 00 00 00 00 00 D3 [09:22:30]Write i2c OK [09:22:30]MH_I2C_Read... [09:22:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:30]Read from MH i2c: E2 [09:22:30]MH_I2C_Read... [09:22:31]Read from MH i2c: E2 0E 00 [09:22:31]MH_I2C_Read... [09:22:31]Read from MH i2c: E2 0E 00 38 1E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E2 [09:22:31]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:22:31]wFMCommunicate OK [09:22:31]SAM_PROTO_GetShiftState done [09:22:31]FM_GetShiftState done [09:22:31]req_shift_opened done [09:22:31]requested_item shift.open_date is exist - process it [09:22:31]req_shift_open_date [09:22:31]req_shift_open_date done [09:22:31]produce_requested_data done [09:22:31]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201302,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:22:31]process_action_free close_receipt [09:22:31]json_value_free [09:22:31]json_value_free done [09:22:31]process_json_proto returns [09:22:31]Send response to host [09:22:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201302,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:22:31]free response buf [09:22:31]execute_script done [09:22:31]execute_script returns [09:22:31]free content buf [09:22:31]Sock 9.Close socket [09:22:31]Sock 9.Thread stoped [09:22:35]OFD Sender: No OFD packet to send [09:22:40]OFD Sender: No OFD packet to send [09:22:45]OFD Sender: No OFD packet to send [09:22:50]OFD Sender: No OFD packet to send [09:22:52]accept exits with 7 [09:22:52]New connection [09:22:52]New thread 3067559268 created [09:22:52]Thread 3067415908 joined [09:22:52]Waiting for new connection... [09:22:52] Sock 7.Parse request [09:22:52]Sock 7.Check first char [09:22:52]Sock 7.First char is OK [09:22:52]request: POST /json_proto HTTP/1.0 [09:22:52]Method: POST [09:22:52]URL: /json_proto [09:22:52]Method is POST - this is cgi request [09:22:52]url: /json_proto [09:22:52]query_string will be loaded in cgi processing [09:22:52]execute_cgi json_proto POST (null) [09:22:52]execute_cgi path=json_proto method=POST [09:22:52]POST find Content-Length [09:22:52]Host: 172.17.63.195:8080 [09:22:52]Content-Length: 677 [09:22:52]Content-Type: application/json [09:22:52] [09:22:52]POST finish read [09:22:52]Found Content-Length = 677 [09:22:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:52]execute_script... [09:22: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)449050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:52]POST & json_proto [09:22:52]process_json_proto [09:22:52]json parsed OK: [09:22:52]protocol is kg_v1.0 [09:22:52]action value=close_receipt [09:22:52]process_action close_receipt [09:22:52]cmd_close_receipt [09:22:52]MH_GetDate [09:22:52]Write to MH i2c: F0 00 00 39 1E 46 [09:22:52]Write i2c OK [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: F0 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: F0 09 00 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: F0 09 00 39 1E 00 EF B4 1C 67 68 46 19 67 A3 [09:22:52]GetLastDocTimeStamp 1729934550 [09:22:52]current date 1729934575 [09:22:52]FM_GetShiftState [09:22:52]SAM_PROTO_GetShiftState [09:22:52]wFMCommunicate request_size=4 [09:22:52]MH_SAM_APDU [09:22:52]CAPDU: 80 13 01 00 [09:22:52]Write to MH i2c: E2 08 00 3A 1E 80 13 01 00 00 00 00 00 D5 [09:22:52]Write i2c OK [09:22:52]MH_I2C_Read... [09:22:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:52]Read from MH i2c: E2 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: E2 0E 00 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: E2 0E 00 3A 1E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E4 [09:22:52]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:22:52]wFMCommunicate OK [09:22:52]SAM_PROTO_GetShiftState done [09:22:52]FM_GetShiftState done [09:22:52]opened in 1729900879 [09:22:52]opened+sec_in_day 1729987279 [09:22:52]quantity*price = 30038 [09:22:52]sum+1 = 30039 [09:22:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 65 26.10.2024 09:22 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201303 ФПД: 228323503361189 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092256&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201303&fm=228323503361189&tin=02508201610067®Number=0000000000091777&sum=30000 [09:22:53]StoreToDocumentArchive [09:22:53]shift 543 fd 201303 [09:22:53]save to /storage/0543/doc_00201303 [09:22:53]save last doc name /storage/0543/doc_00201303 to /storage/kkm_last_doc_name [09:22:53]save OK [09:22:53]Clear old archive folders... [09:22:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:22:53]tlvbuf is B6F3CB80 [09:22:53]SAM_PROTO_ClearQueue [09:22:53]wFMCommunicate request_size=4 [09:22:53]MH_SAM_APDU [09:22:53]CAPDU: 80 09 00 00 [09:22:53]Write to MH i2c: E2 08 00 47 1E 80 09 00 00 00 00 00 00 D7 [09:22:53]Write i2c OK [09:22:53]MH_I2C_Read... [09:22:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:53]Read from MH i2c: E2 [09:22:53]MH_I2C_Read... [09:22:53]Read from MH i2c: E2 03 00 [09:22:53]MH_I2C_Read... [09:22:53]Read from MH i2c: E2 03 00 47 1E 00 90 00 D9 [09:22:53]RAPDU: 90 00 [09:22:53]wFMCommunicate OK [09:22:53]SAM_PROTO_ClearQueue done [09:22:53]KKMCreateOFDPacket [09:22:53]OFDProtocolAddRootSTLVToBuf [09:22:53]FM_MakeSignedData [09:22:53]FM_MakeSignedData [09:22:53]SAM_PROTO_SignData [09:22:53]wFMCommunicate request_size=4 [09:22:53]MH_SAM_APDU [09:22:53]CAPDU: 80 0D 01 02 [09:22:53]Write to MH i2c: E2 08 00 48 1E 80 0D 01 02 00 00 00 00 DF [09:22:53]Write i2c OK [09:22:53]MH_I2C_Read... [09:22:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:53]Read from MH i2c: E2 [09:22:53]MH_I2C_Read... [09:22:53]Read from MH i2c: E2 03 00 [09:22:53]MH_I2C_Read... [09:22:53]Read from MH i2c: E2 03 00 48 1E 00 90 00 DA [09:22:53]RAPDU: 90 00 [09:22:53]wFMCommunicate OK [09:22:53]wFMCommunicate request_size=255 [09:22:53]MH_SAM_APDU [09:22:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 F0 B4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 57 12 03 00 35 04 06 00 CF [09:22:53]Write to MH i2c: E2 02 01 49 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 F0 B4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 57 12 03 00 35 04 06 00 CF 00 00 2B [09:22:53]Write i2c OK [09:22:53]MH_I2C_Read... [09:22:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:53]Read from MH i2c: E2 [09:22:53]MH_I2C_Read... [09:22:53]Read from MH i2c: E2 03 00 [09:22:53]MH_I2C_Read... [09:22:53]Read from MH i2c: E2 03 00 49 1E 00 90 00 DB [09:22:53]RAPDU: 90 00 [09:22:53]wFMCommunicate OK [09:22:53]wFMCommunicate request_size=10 [09:22:53]MH_SAM_APDU [09:22:53]CAPDU: 80 0D 02 02 05 A8 B5 4F CC A5 [09:22:53]Write to MH i2c: E2 0D 00 4A 1E 80 0D 02 02 05 00 A8 B5 4F CC A5 00 00 09 [09:22:53]Write i2c OK [09:22:53]MH_I2C_Read... [09:22:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:53]Read from MH i2c: E2 [09:22:53]MH_I2C_Read... [09:22:53]Read from MH i2c: E2 03 00 [09:22:53]MH_I2C_Read... [09:22:53]Read from MH i2c: E2 03 00 4A 1E 00 90 00 DC [09:22:53]RAPDU: 90 00 [09:22:53]wFMCommunicate OK [09:22:53]wFMCommunicate request_size=4 [09:22:53]MH_SAM_APDU [09:22:53]CAPDU: 80 0D 03 02 [09:22:53]Write to MH i2c: E2 08 00 4B 1E 80 0D 03 02 00 00 00 00 E4 [09:22:53]Write i2c OK [09:22:53]MH_I2C_Read... [09:22:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:54]Read from MH i2c: E2 [09:22:54]MH_I2C_Read... [09:22:54]Read from MH i2c: E2 0B 00 [09:22:54]MH_I2C_Read... [09:22:54]Read from MH i2c: E2 0B 00 4B 1E 00 96 D5 04 FD 63 13 90 EA 90 00 41 [09:22:54]RAPDU: 96 D5 04 FD 63 13 90 EA 90 00 [09:22:54]wFMCommunicate OK [09:22:54]SAM_PROTO_SignData done [09:22:54]FM_MakeSignedData done [09:22:54]CreateOFDProtocolMessage [09:22:54]wFMCommunicate request_size=4 [09:22:54]MH_SAM_APDU [09:22:54]CAPDU: 80 11 00 00 [09:22:54]Write to MH i2c: E2 08 00 4C 1E 80 11 00 00 00 00 00 00 E4 [09:22:54]Write i2c OK [09:22:54]MH_I2C_Read... [09:22:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:54]Read from MH i2c: E2 [09:22:54]MH_I2C_Read... [09:22:54]Read from MH i2c: E2 17 00 [09:22:54]MH_I2C_Read... [09:22:54]Read from MH i2c: E2 17 00 4C 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 39 [09:22:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:22:54]wFMCommunicate OK [09:22:54]CreateOFDProtocolMessage done [09:22:54]OFDSenderStorePacket 201303 [09:22:54]StoreOFDPacket docnum=201303 [09:22:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 9C 6C 07 01 AC 9D 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 F0 B4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 57 12 03 00 35 04 06 00 CF A8 B5 4F CC A5 96 D5 04 FD 63 13 90 EA [09:22:54]CheckFolder [09:22:54]dirname=/storage/ofd_packets [09:22:54]CheckFolder done [09:22:54]ProducePacketName [09:22:54]name=ofd_packets/00201303 [09:22:54]NVStorageSaveData ofd_packets/00201303 [09:22:54]File name is /storage/ofd_packets/00201303 [09:22:54]Write 301 bytes [09:22:54]NVStorageSaveData done [09:22:54]OFDSenderStorePacket done [09:22:54]KKMCreateOFDPacket done [09:22:54]NVStorageSaveData kkm_last_timestamp [09:22:54]File name is /storage/kkm_last_timestamp [09:22:54]Write 4 bytes [09:22:54]NVStorageSaveData done [09:22:54]ExternCall_PrintAddStr [09:22:54]wPrintStart [09:22:54]Write to MH i2c: 01 00 00 4D 1E 6B [09:22:54]Write i2c OK [09:22:54]MH_I2C_Read... [09:22:54]Read from MH i2c: 01 [09:22:54]MH_I2C_Read... [09:22:54]Read from MH i2c: 01 07 00 [09:22:54]MH_I2C_Read... [09:22:54]Read from MH i2c: 01 07 00 4D 1E 00 00 00 00 00 FF 0F 80 [09:22:54]RasterBufferAndPrint [09:22:54]line Счет N : (1)449050 [09:22:54]line ИНН: 02508201610067 [09:22:54]line Контрольно-Кассовый Чек [09:22:54]line ПРОДАЖА [09:22:54]line ТРК (МРК, ГНК) : 62 [09:22:54]line Товар: 2710124130 [09:22:54]line Аи-92-К-2 [09:22:54]line 4.490 * 66.90 [09:22:54]line = 300.38 [09:22:54]line НДС 12% НСП 1% [09:22:54]line > о реализуемом товаре [09:22:54]line ОКРУГЛЕНИЕ: -0.38 [09:22:54]line ИТОГО: 300.00 [09:22:54]line Внесено: 300.00 [09:22:54]line СДАЧА: 0.00 [09:22:54]line НСП 1% : 2.66 [09:22:54]line НДС 12% : 31.90 [09:22:54]line Наличными: 300.00 [09:22:54]line Безнал.: 0.00 [09:22:54]line Место: АЗС № 171 "Партнер Нефть" [09:22:54]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:22:54]line СНО: Общий режим [09:22:54]line Чек 65 26.10.2024 09:22 [09:22:54]line Смена: 543 ФФД: 1.0 [09:22:54]line ЗНМ: 0300000109 [09:22:54]line РНМ: 0000000000091777 [09:22:54]line Версия ККМ: 001 [09:22:54]line ФМ: 0000000000871756 [09:22:54]line ФД: 201303 [09:22:54]line ФПД: 228323503361189 [09:22:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092256&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201303&fm=228323503361189&tin=02508201610067®Number=0000000000091777&sum=30000 [09:22:54]OFD Sender: Processing packet 201303 [packets to send 112, broken 111] [09:22:54]ProducePacketName [09:22:54]name=ofd_packets/00201303 [09:22:54]OFD Sender: To server: pG, [09:22:54]CommunicateWithHost lk.salyk.kg:30040 [09:22:54]ConnectInit lk.salyk.kg [09:22:54]written 0, free lines is 4095 [09:22:54]Connected sock=10 [09:22:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 9C 6C 07 01 AC 9D 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 F0 B4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 57 12 03 00 35 04 06 00 CF A8 B5 4F CC A5 96 D5 04 FD 63 13 90 EA [09:22:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 65 DD 47 00 19 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 57 12 03 00 F4 03 04 00 99 60 1C 67 B6 04 01 00 00 B1 1C AE 32 8F 6A F6 62 [09:22:54]CommunicateWithHost err = 0 [09:22:54]CheckOFDResponse [09:22:54]1017 (14) - 77093643461234 [09:22:54]1041 (16) - 0000000000871756 [09:22:54]1040 (4) - 201303 [09:22:54]1012 (4) - 26.10.2024 03:23 [09:22:54]1206 (1) - 0 [09:22:54]OFD Sender: Remove packet 201303 [09:22:54]ProducePacketName [09:22:54]name=ofd_packets/00201303 [09:22:54]NVStorageDeleteData [09:22:54]Write to MH i2c: 01 00 00 78 1E 96 [09:22:54]Write i2c OK [09:22:54]MH_I2C_Read... [09:22:54]Read from MH i2c: 01 [09:22:54]MH_I2C_Read... [09:22:54]Read from MH i2c: 01 07 00 [09:22:54]MH_I2C_Read... [09:22:54]Read from MH i2c: 01 07 00 78 1E 00 00 00 00 00 B2 0C 5B [09:22:54]RasterBufferAndPrint [09:22:54]line [09:22:54]line [09:22:54]line [09:22:54]line [09:22:54]line [09:22:54]written 0, free lines is 3256 [09:22:54]MH_Cut [09:22:54]Write to MH i2c: D1 01 00 7F 1E 01 6F [09:22:54]Write i2c OK [09:22:54]MH_I2C_Read... [09:22:54]Read from MH i2c: D1 [09:22:54]MH_I2C_Read... [09:22:54]Read from MH i2c: D1 01 00 [09:22:54]MH_I2C_Read... [09:22:54]Read from MH i2c: D1 01 00 7F 1E 00 6E [09:22:54]Write to MH i2c: 01 00 00 80 1E 9E [09:22:54]Write i2c OK [09:22:54]MH_I2C_Read... [09:22:55]OFD Sender: No OFD packet to send [09:22:55]*** Cut start [09:22:55]*** Purtial cut [09:22:55]*** Stage 1: CUTSNS_PIN = 1 [09:22:55]Read from MH i2c: 01 [09:22:56]MH_I2C_Read... [09:22:56]*** Stop cut motor [09:22:56]*** Cut end [09:22:56]Read from MH i2c: 01 07 00 [09:22:56]MH_I2C_Read... [09:22:56]Read from MH i2c: 01 07 00 80 1E 00 00 00 00 00 FF 0F B3 [09:22:56]process_action close_receipt done [09:22:56]requested_data is exist [09:22:56]produce_requested_data [09:22:56]requested_item fm.sn is exist - process it [09:22:56]wFMCommunicate request_size=4 [09:22:56]MH_SAM_APDU [09:22:56]CAPDU: 80 11 00 00 [09:22:56]Write to MH i2c: E2 08 00 81 1E 80 11 00 00 00 00 00 00 19 [09:22:56]Write i2c OK [09:22:56]MH_I2C_Read... [09:22:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:56]Read from MH i2c: E2 [09:22:56]MH_I2C_Read... [09:22:56]Read from MH i2c: E2 17 00 [09:22:56]MH_I2C_Read... [09:22:56]Read from MH i2c: E2 17 00 81 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6E [09:22:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:22:56]wFMCommunicate OK [09:22:56]requested_item fd.num is exist - process it [09:22:56]SAM_PROTO_GetFieldsCounters [09:22:56]wFMCommunicate request_size=4 [09:22:56]MH_SAM_APDU [09:22:56]CAPDU: 80 13 00 00 [09:22:56]Write to MH i2c: E2 08 00 82 1E 80 13 00 00 00 00 00 00 1C [09:22:56]Write i2c OK [09:22:56]MH_I2C_Read... [09:22:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:56]Read from MH i2c: E2 [09:22:56]MH_I2C_Read... [09:22:56]Read from MH i2c: E2 62 00 [09:22:56]MH_I2C_Read... [09:22:56]Read from MH i2c: E2 62 00 82 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 57 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [09:22:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 57 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:22:56]wFMCommunicate OK [09:22:56]SAM_PROTO_GetFieldsCounters done [09:22:56]requested_item shift.num is exist - process it [09:22:56]requested_item shift.opened is exist - process it [09:22:56]req_shift_opened [09:22:56]FM_GetShiftState [09:22:56]SAM_PROTO_GetShiftState [09:22:56]wFMCommunicate request_size=4 [09:22:56]MH_SAM_APDU [09:22:56]CAPDU: 80 13 01 00 [09:22:56]Write to MH i2c: E2 08 00 83 1E 80 13 01 00 00 00 00 00 1E [09:22:56]Write i2c OK [09:22:56]MH_I2C_Read... [09:22:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:56]Read from MH i2c: E2 [09:22:56]MH_I2C_Read... [09:22:56]Read from MH i2c: E2 0E 00 [09:22:56]MH_I2C_Read... [09:22:56]Read from MH i2c: E2 0E 00 83 1E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 2D [09:22:56]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:22:56]wFMCommunicate OK [09:22:56]SAM_PROTO_GetShiftState done [09:22:56]FM_GetShiftState done [09:22:56]req_shift_opened done [09:22:56]requested_item shift.open_date is exist - process it [09:22:56]req_shift_open_date [09:22:56]req_shift_open_date done [09:22:56]produce_requested_data done [09:22:56]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201303,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:22:56]process_action_free close_receipt [09:22:56]json_value_free [09:22:56]json_value_free done [09:22:56]process_json_proto returns [09:22:56]Send response to host [09:22:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201303,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:22:56]free response buf [09:22:56]execute_script done [09:22:56]execute_script returns [09:22:56]free content buf [09:22:56]Sock 7.Close socket [09:22:56]Sock 7.Thread stoped [09:23:00]OFD Sender: No OFD packet to send [09:23:05]OFD Sender: No OFD packet to send [09:23:07]accept exits with 9 [09:23:07]New connection [09:23:07]New thread 3067415908 created [09:23:07]Thread 3067559268 joined [09:23:07]Waiting for new connection... [09:23:07] Sock 9.Parse request [09:23:07]Sock 9.Check first char [09:23:07]Sock 9.First char is OK [09:23:07]request: POST /json_proto HTTP/1.0 [09:23:07]Method: POST [09:23:07]URL: /json_proto [09:23:07]Method is POST - this is cgi request [09:23:07]url: /json_proto [09:23:07]query_string will be loaded in cgi processing [09:23:07]execute_cgi json_proto POST (null) [09:23:07]execute_cgi path=json_proto method=POST [09:23:07]POST find Content-Length [09:23:07]Host: 172.17.63.195:8080 [09:23:07]Content-Length: 677 [09:23:07]Content-Type: application/json [09:23:07] [09:23:07]POST finish read [09:23:07]Found Content-Length = 677 [09:23:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:23:07]execute_script... [09:23:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:23:07]POST & json_proto [09:23:07]process_json_proto [09:23:07]json parsed OK: [09:23:07]protocol is kg_v1.0 [09:23:07]action value=close_receipt [09:23:07]process_action close_receipt [09:23:07]cmd_close_receipt [09:23:07]MH_GetDate [09:23:07]Write to MH i2c: F0 00 00 84 1E 91 [09:23:07]Write i2c OK [09:23:07]MH_I2C_Read... [09:23:07]Read from MH i2c: F0 [09:23:07]MH_I2C_Read... [09:23:07]Read from MH i2c: F0 09 00 [09:23:07]MH_I2C_Read... [09:23:07]Read from MH i2c: F0 09 00 84 1E 00 FF B4 1C 67 68 46 19 67 FE [09:23:07]GetLastDocTimeStamp 1729934576 [09:23:07]current date 1729934591 [09:23:07]FM_GetShiftState [09:23:07]SAM_PROTO_GetShiftState [09:23:07]wFMCommunicate request_size=4 [09:23:07]MH_SAM_APDU [09:23:07]CAPDU: 80 13 01 00 [09:23:07]Write to MH i2c: E2 08 00 85 1E 80 13 01 00 00 00 00 00 20 [09:23:07]Write i2c OK [09:23:07]MH_I2C_Read... [09:23:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:07]Read from MH i2c: E2 [09:23:07]MH_I2C_Read... [09:23:07]Read from MH i2c: E2 0E 00 [09:23:07]MH_I2C_Read... [09:23:07]Read from MH i2c: E2 0E 00 85 1E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 2F [09:23:07]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:23:07]wFMCommunicate OK [09:23:07]SAM_PROTO_GetShiftState done [09:23:07]FM_GetShiftState done [09:23:07]opened in 1729900879 [09:23:07]opened+sec_in_day 1729987279 [09:23:07]quantity*price = 50041 [09:23:07]sum+1 = 50042 [09:23:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 66 26.10.2024 09:23 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201304 ФПД: 156183766110516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092311&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201304&fm=156183766110516&tin=02508201610067®Number=0000000000091777&sum=50000 [09:23:08]StoreToDocumentArchive [09:23:08]shift 543 fd 201304 [09:23:08]save to /storage/0543/doc_00201304 [09:23:08]save last doc name /storage/0543/doc_00201304 to /storage/kkm_last_doc_name [09:23:08]save OK [09:23:08]Clear old archive folders... [09:23:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:23:08]tlvbuf is 0179A420 [09:23:08]SAM_PROTO_ClearQueue [09:23:08]wFMCommunicate request_size=4 [09:23:08]MH_SAM_APDU [09:23:08]CAPDU: 80 09 00 00 [09:23:08]Write to MH i2c: E2 08 00 92 1E 80 09 00 00 00 00 00 00 22 [09:23:08]Write i2c OK [09:23:08]MH_I2C_Read... [09:23:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:08]Read from MH i2c: E2 [09:23:08]MH_I2C_Read... [09:23:08]Read from MH i2c: E2 03 00 [09:23:08]MH_I2C_Read... [09:23:08]Read from MH i2c: E2 03 00 92 1E 00 90 00 24 [09:23:08]RAPDU: 90 00 [09:23:08]wFMCommunicate OK [09:23:08]SAM_PROTO_ClearQueue done [09:23:08]KKMCreateOFDPacket [09:23:08]OFDProtocolAddRootSTLVToBuf [09:23:08]FM_MakeSignedData [09:23:08]FM_MakeSignedData [09:23:08]SAM_PROTO_SignData [09:23:08]wFMCommunicate request_size=4 [09:23:08]MH_SAM_APDU [09:23:08]CAPDU: 80 0D 01 02 [09:23:08]Write to MH i2c: E2 08 00 93 1E 80 0D 01 02 00 00 00 00 2A [09:23:08]Write i2c OK [09:23:08]MH_I2C_Read... [09:23:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:08]Read from MH i2c: E2 [09:23:08]MH_I2C_Read... [09:23:08]Read from MH i2c: E2 03 00 [09:23:08]MH_I2C_Read... [09:23:08]Read from MH i2c: E2 03 00 93 1E 00 90 00 25 [09:23:08]RAPDU: 90 00 [09:23:08]wFMCommunicate OK [09:23:08]wFMCommunicate request_size=255 [09:23:08]MH_SAM_APDU [09:23:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 42 00 00 00 F4 03 04 00 FF B4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 58 12 03 00 35 04 06 00 8E [09:23:08]Write to MH i2c: E2 02 01 94 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 32 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 42 00 00 00 F4 03 04 00 FF B4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 58 12 03 00 35 04 06 00 8E 00 00 52 [09:23:09]Write i2c OK [09:23:09]MH_I2C_Read... [09:23:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:09]Read from MH i2c: E2 [09:23:09]MH_I2C_Read... [09:23:09]Read from MH i2c: E2 03 00 [09:23:09]MH_I2C_Read... [09:23:09]Read from MH i2c: E2 03 00 94 1E 00 90 00 26 [09:23:09]RAPDU: 90 00 [09:23:09]wFMCommunicate OK [09:23:09]wFMCommunicate request_size=10 [09:23:09]MH_SAM_APDU [09:23:09]CAPDU: 80 0D 02 02 05 0C 5D E6 11 34 [09:23:09]Write to MH i2c: E2 0D 00 95 1E 80 0D 02 02 05 00 0C 5D E6 11 34 00 00 CB [09:23:09]Write i2c OK [09:23:09]MH_I2C_Read... [09:23:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:09]Read from MH i2c: E2 [09:23:09]MH_I2C_Read... [09:23:09]Read from MH i2c: E2 03 00 [09:23:09]MH_I2C_Read... [09:23:09]Read from MH i2c: E2 03 00 95 1E 00 90 00 27 [09:23:09]RAPDU: 90 00 [09:23:09]wFMCommunicate OK [09:23:09]wFMCommunicate request_size=4 [09:23:09]MH_SAM_APDU [09:23:09]CAPDU: 80 0D 03 02 [09:23:09]Write to MH i2c: E2 08 00 96 1E 80 0D 03 02 00 00 00 00 2F [09:23:09]Write i2c OK [09:23:09]MH_I2C_Read... [09:23:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:09]Read from MH i2c: E2 [09:23:09]MH_I2C_Read... [09:23:09]Read from MH i2c: E2 0B 00 [09:23:09]MH_I2C_Read... [09:23:09]Read from MH i2c: E2 0B 00 96 1E 00 80 09 BF 69 1F 94 0C 58 90 00 F8 [09:23:09]RAPDU: 80 09 BF 69 1F 94 0C 58 90 00 [09:23:09]wFMCommunicate OK [09:23:09]SAM_PROTO_SignData done [09:23:09]FM_MakeSignedData done [09:23:09]CreateOFDProtocolMessage [09:23:09]wFMCommunicate request_size=4 [09:23:09]MH_SAM_APDU [09:23:09]CAPDU: 80 11 00 00 [09:23:09]Write to MH i2c: E2 08 00 97 1E 80 11 00 00 00 00 00 00 2F [09:23:09]Write i2c OK [09:23:09]MH_I2C_Read... [09:23:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:09]Read from MH i2c: E2 [09:23:09]MH_I2C_Read... [09:23:09]Read from MH i2c: E2 17 00 [09:23:09]MH_I2C_Read... [09:23:09]Read from MH i2c: E2 17 00 97 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 84 [09:23:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:23:09]wFMCommunicate OK [09:23:09]CreateOFDProtocolMessage done [09:23:09]OFDSenderStorePacket 201304 [09:23:09]StoreOFDPacket docnum=201304 [09:23:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F1 D6 07 01 0A 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 32 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 42 00 00 00 F4 03 04 00 FF B4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 58 12 03 00 35 04 06 00 8E 0C 5D E6 11 34 80 09 BF 69 1F 94 0C 58 [09:23:09]CheckFolder [09:23:09]dirname=/storage/ofd_packets [09:23:09]CheckFolder done [09:23:09]ProducePacketName [09:23:09]name=ofd_packets/00201304 [09:23:09]NVStorageSaveData ofd_packets/00201304 [09:23:09]File name is /storage/ofd_packets/00201304 [09:23:09]Write 301 bytes [09:23:09]NVStorageSaveData done [09:23:09]OFDSenderStorePacket done [09:23:09]KKMCreateOFDPacket done [09:23:09]NVStorageSaveData kkm_last_timestamp [09:23:09]File name is /storage/kkm_last_timestamp [09:23:09]Write 4 bytes [09:23:09]NVStorageSaveData done [09:23:09]ExternCall_PrintAddStr [09:23:09]wPrintStart [09:23:09]Write to MH i2c: 01 00 00 98 1E B6 [09:23:09]Write i2c OK [09:23:09]MH_I2C_Read... [09:23:09]Read from MH i2c: 01 [09:23:09]MH_I2C_Read... [09:23:09]Read from MH i2c: 01 07 00 [09:23:09]MH_I2C_Read... [09:23:09]Read from MH i2c: 01 07 00 98 1E 00 00 00 00 00 FF 0F CB [09:23:09]RasterBufferAndPrint [09:23:09]line Счет N : (1)449051 [09:23:09]line ИНН: 02508201610067 [09:23:09]line Контрольно-Кассовый Чек [09:23:09]line ПРОДАЖА [09:23:09]line ТРК (МРК, ГНК) : 52 [09:23:09]line Товар: 2710124130 [09:23:09]line Аи-92-К-2 [09:23:09]line 7.480 * 66.90 [09:23:09]line = 500.41 [09:23:09]line НДС 12% НСП 1% [09:23:09]line > о реализуемом товаре [09:23:09]line ОКРУГЛЕНИЕ: -0.41 [09:23:09]line ИТОГО: 500.00 [09:23:09]line Внесено: 500.00 [09:23:09]line СДАЧА: 0.00 [09:23:09]line НСП 1% : 4.43 [09:23:09]line НДС 12% : 53.14 [09:23:09]line Наличными: 500.00 [09:23:09]line Безнал.: 0.00 [09:23:09]line Место: АЗС № 171 "Партнер Нефть" [09:23:09]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:23:09]line СНО: Общий режим [09:23:09]line Чек 66 26.10.2024 09:23 [09:23:09]line Смена: 543 ФФД: 1.0 [09:23:09]line ЗНМ: 0300000109 [09:23:09]line РНМ: 0000000000091777 [09:23:09]line Версия ККМ: 001 [09:23:09]line ФМ: 0000000000871756 [09:23:09]line ФД: 201304 [09:23:09]line ФПД: 156183766110516 [09:23:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092311&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201304&fm=156183766110516&tin=02508201610067®Number=0000000000091777&sum=50000 [09:23:09]written 0, free lines is 4095 [09:23:09]OFD Sender: Processing packet 201304 [packets to send 112, broken 111] [09:23:09]ProducePacketName [09:23:09]name=ofd_packets/00201304 [09:23:09]OFD Sender: To server: pG, [09:23:09]CommunicateWithHost lk.salyk.kg:30040 [09:23:09]ConnectInit lk.salyk.kg [09:23:09]Connected sock=10 [09:23:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F1 D6 07 01 0A 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 32 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 42 00 00 00 F4 03 04 00 FF B4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 58 12 03 00 35 04 06 00 8E 0C 5D E6 11 34 80 09 BF 69 1F 94 0C 58 [09:23:09]Write to MH i2c: 01 00 00 C3 1E E1 [09:23:09]Write i2c OK [09:23:09]MH_I2C_Read... [09:23:09]Read from MH i2c: 01 [09:23:09]MH_I2C_Read... [09:23:09]Read from MH i2c: 01 07 00 [09:23:09]MH_I2C_Read... [09:23:09]Read from MH i2c: 01 07 00 C3 1E 00 00 00 00 00 9B 0C 8F [09:23:09]RasterBufferAndPrint [09:23:09]line [09:23:09]line [09:23:09]line [09:23:09]line [09:23:09]line [09:23:09]written 0, free lines is 3234 [09:23:09]MH_Cut [09:23:09]Write to MH i2c: D1 01 00 CA 1E 01 BA [09:23:09]Write i2c OK [09:23:09]MH_I2C_Read... [09:23:09]Read from MH i2c: D1 [09:23:09]MH_I2C_Read... [09:23:09]Read from MH i2c: D1 01 00 [09:23:09]MH_I2C_Read... [09:23:09]Read from MH i2c: D1 01 00 CA 1E 00 B9 [09:23:09]Write to MH i2c: 01 00 00 CB 1E E9 [09:23:09]Write i2c OK [09:23:09]MH_I2C_Read... [09:23:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E3 7C 47 00 05 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 58 12 03 00 F4 03 04 00 A8 60 1C 67 B6 04 01 00 00 00 99 05 0C E9 50 72 90 [09:23:10]CommunicateWithHost err = 0 [09:23:10]CheckOFDResponse [09:23:10]1017 (14) - 77093643461234 [09:23:10]1041 (16) - 0000000000871756 [09:23:10]1040 (4) - 201304 [09:23:10]1012 (4) - 26.10.2024 03:23 [09:23:10]1206 (1) - 0 [09:23:10]OFD Sender: Remove packet 201304 [09:23:10]ProducePacketName [09:23:10]name=ofd_packets/00201304 [09:23:10]NVStorageDeleteData [09:23:10]OFD Sender: No OFD packet to send [09:23:10]*** Cut start [09:23:10]*** Purtial cut [09:23:10]*** Stage 1: CUTSNS_PIN = 1 [09:23:10]Read from MH i2c: 01 [09:23:10]*** Stop cut motor [09:23:10]*** Cut end [09:23:10]MH_I2C_Read... [09:23:10]Read from MH i2c: 01 07 00 [09:23:10]MH_I2C_Read... [09:23:10]Read from MH i2c: 01 07 00 CB 1E 00 00 00 00 00 FF 0F FE [09:23:10]process_action close_receipt done [09:23:10]requested_data is exist [09:23:10]produce_requested_data [09:23:10]requested_item fm.sn is exist - process it [09:23:10]wFMCommunicate request_size=4 [09:23:10]MH_SAM_APDU [09:23:10]CAPDU: 80 11 00 00 [09:23:10]Write to MH i2c: E2 08 00 CC 1E 80 11 00 00 00 00 00 00 64 [09:23:10]Write i2c OK [09:23:10]MH_I2C_Read... [09:23:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:11]Read from MH i2c: E2 [09:23:11]MH_I2C_Read... [09:23:11]Read from MH i2c: E2 17 00 [09:23:11]MH_I2C_Read... [09:23:11]Read from MH i2c: E2 17 00 CC 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B9 [09:23:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:23:11]wFMCommunicate OK [09:23:11]requested_item fd.num is exist - process it [09:23:11]SAM_PROTO_GetFieldsCounters [09:23:11]wFMCommunicate request_size=4 [09:23:11]MH_SAM_APDU [09:23:11]CAPDU: 80 13 00 00 [09:23:11]Write to MH i2c: E2 08 00 CD 1E 80 13 00 00 00 00 00 00 67 [09:23:11]Write i2c OK [09:23:11]MH_I2C_Read... [09:23:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:11]Read from MH i2c: E2 [09:23:11]MH_I2C_Read... [09:23:11]Read from MH i2c: E2 62 00 [09:23:11]MH_I2C_Read... [09:23:11]Read from MH i2c: E2 62 00 CD 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 58 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [09:23:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 58 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:23:11]wFMCommunicate OK [09:23:11]SAM_PROTO_GetFieldsCounters done [09:23:11]requested_item shift.num is exist - process it [09:23:11]requested_item shift.opened is exist - process it [09:23:11]req_shift_opened [09:23:11]FM_GetShiftState [09:23:11]SAM_PROTO_GetShiftState [09:23:11]wFMCommunicate request_size=4 [09:23:11]MH_SAM_APDU [09:23:11]CAPDU: 80 13 01 00 [09:23:11]Write to MH i2c: E2 08 00 CE 1E 80 13 01 00 00 00 00 00 69 [09:23:11]Write i2c OK [09:23:11]MH_I2C_Read... [09:23:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:11]Read from MH i2c: E2 [09:23:11]MH_I2C_Read... [09:23:11]Read from MH i2c: E2 0E 00 [09:23:11]MH_I2C_Read... [09:23:11]Read from MH i2c: E2 0E 00 CE 1E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 78 [09:23:11]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:23:11]wFMCommunicate OK [09:23:11]SAM_PROTO_GetShiftState done [09:23:11]FM_GetShiftState done [09:23:11]req_shift_opened done [09:23:11]requested_item shift.open_date is exist - process it [09:23:11]req_shift_open_date [09:23:11]req_shift_open_date done [09:23:11]produce_requested_data done [09:23:11]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201304,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:23:11]process_action_free close_receipt [09:23:11]json_value_free [09:23:11]json_value_free done [09:23:11]process_json_proto returns [09:23:11]Send response to host [09:23:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201304,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:23:11]free response buf [09:23:11]execute_script done [09:23:11]execute_script returns [09:23:11]free content buf [09:23:11]Sock 9.Close socket [09:23:11]Sock 9.Thread stoped [09:23:15]OFD Sender: No OFD packet to send [09:23:20]OFD Sender: No OFD packet to send [09:23:25]OFD Sender: No OFD packet to send [09:23:30]OFD Sender: No OFD packet to send [09:23:35]OFD Sender: No OFD packet to send [09:23:40]OFD Sender: No OFD packet to send [09:23:41]accept exits with 7 [09:23:41]New connection [09:23:41]New thread 3067559268 created [09:23:41]Thread 3067415908 joined [09:23:41]Waiting for new connection... [09:23:41] Sock 7.Parse request [09:23:41]Sock 7.Check first char [09:23:41]Sock 7.First char is OK [09:23:41]request: POST /json_proto HTTP/1.0 [09:23:41]Method: POST [09:23:41]URL: /json_proto [09:23:41]Method is POST - this is cgi request [09:23:41]url: /json_proto [09:23:41]query_string will be loaded in cgi processing [09:23:41]execute_cgi json_proto POST (null) [09:23:41]execute_cgi path=json_proto method=POST [09:23:41]POST find Content-Length [09:23:41]Host: 172.17.63.195:8080 [09:23:41]Content-Length: 677 [09:23:41]Content-Type: application/json [09:23:41] [09:23:41]POST finish read [09:23:41]Found Content-Length = 677 [09:23:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:23:41]execute_script... [09:23: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)449052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:23:41]POST & json_proto [09:23:41]process_json_proto [09:23:41]json parsed OK: [09:23:41]protocol is kg_v1.0 [09:23:41]action value=close_receipt [09:23:41]process_action close_receipt [09:23:41]cmd_close_receipt [09:23:41]MH_GetDate [09:23:41]Write to MH i2c: F0 00 00 CF 1E DC [09:23:41]Write i2c OK [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: F0 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: F0 09 00 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: F0 09 00 CF 1E 00 20 B5 1C 67 68 46 19 67 6B [09:23:41]GetLastDocTimeStamp 1729934591 [09:23:41]current date 1729934624 [09:23:41]FM_GetShiftState [09:23:41]SAM_PROTO_GetShiftState [09:23:41]wFMCommunicate request_size=4 [09:23:41]MH_SAM_APDU [09:23:41]CAPDU: 80 13 01 00 [09:23:41]Write to MH i2c: E2 08 00 D0 1E 80 13 01 00 00 00 00 00 6B [09:23:41]Write i2c OK [09:23:41]MH_I2C_Read... [09:23:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:41]Read from MH i2c: E2 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: E2 0E 00 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: E2 0E 00 D0 1E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 7A [09:23:41]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:23:41]wFMCommunicate OK [09:23:41]SAM_PROTO_GetShiftState done [09:23:41]FM_GetShiftState done [09:23:41]opened in 1729900879 [09:23:41]opened+sec_in_day 1729987279 [09:23:41]quantity*price = 50041 [09:23:41]sum+1 = 50042 [09:23:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 67 26.10.2024 09:23 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201305 ФПД: 118478742030302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092344&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201305&fm=118478742030302&tin=02508201610067®Number=0000000000091777&sum=50000 [09:23:42]StoreToDocumentArchive [09:23:42]shift 543 fd 201305 [09:23:42]save to /storage/0543/doc_00201305 [09:23:42]save last doc name /storage/0543/doc_00201305 to /storage/kkm_last_doc_name [09:23:42]save OK [09:23:42]Clear old archive folders... [09:23:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:23:42]tlvbuf is 0176B710 [09:23:42]SAM_PROTO_ClearQueue [09:23:42]wFMCommunicate request_size=4 [09:23:42]MH_SAM_APDU [09:23:42]CAPDU: 80 09 00 00 [09:23:42]Write to MH i2c: E2 08 00 DD 1E 80 09 00 00 00 00 00 00 6D [09:23:42]Write i2c OK [09:23:42]MH_I2C_Read... [09:23:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:42]Read from MH i2c: E2 [09:23:42]MH_I2C_Read... [09:23:42]Read from MH i2c: E2 03 00 [09:23:42]MH_I2C_Read... [09:23:42]Read from MH i2c: E2 03 00 DD 1E 00 90 00 6F [09:23:42]RAPDU: 90 00 [09:23:42]wFMCommunicate OK [09:23:42]SAM_PROTO_ClearQueue done [09:23:42]KKMCreateOFDPacket [09:23:42]OFDProtocolAddRootSTLVToBuf [09:23:42]FM_MakeSignedData [09:23:42]FM_MakeSignedData [09:23:42]SAM_PROTO_SignData [09:23:42]wFMCommunicate request_size=4 [09:23:42]MH_SAM_APDU [09:23:42]CAPDU: 80 0D 01 02 [09:23:42]Write to MH i2c: E2 08 00 DE 1E 80 0D 01 02 00 00 00 00 75 [09:23:42]Write i2c OK [09:23:42]MH_I2C_Read... [09:23:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:42]Read from MH i2c: E2 [09:23:42]MH_I2C_Read... [09:23:42]Read from MH i2c: E2 03 00 [09:23:42]MH_I2C_Read... [09:23:42]Read from MH i2c: E2 03 00 DE 1E 00 90 00 70 [09:23:42]RAPDU: 90 00 [09:23:42]wFMCommunicate OK [09:23:42]wFMCommunicate request_size=255 [09:23:42]MH_SAM_APDU [09:23:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 43 00 00 00 F4 03 04 00 20 B5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 59 12 03 00 35 04 06 00 6B [09:23:42]Write to MH i2c: E2 02 01 DF 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 32 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 43 00 00 00 F4 03 04 00 20 B5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 59 12 03 00 35 04 06 00 6B 00 00 9E [09:23:42]Write i2c OK [09:23:42]MH_I2C_Read... [09:23:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:42]Read from MH i2c: E2 [09:23:42]MH_I2C_Read... [09:23:42]Read from MH i2c: E2 03 00 [09:23:42]MH_I2C_Read... [09:23:42]Read from MH i2c: E2 03 00 DF 1E 00 90 00 71 [09:23:42]RAPDU: 90 00 [09:23:42]wFMCommunicate OK [09:23:42]wFMCommunicate request_size=10 [09:23:42]MH_SAM_APDU [09:23:42]CAPDU: 80 0D 02 02 05 C1 7B 55 07 DE [09:23:42]Write to MH i2c: E2 0D 00 E0 1E 80 0D 02 02 05 00 C1 7B 55 07 DE 00 00 F8 [09:23:42]Write i2c OK [09:23:42]MH_I2C_Read... [09:23:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:42]Read from MH i2c: E2 [09:23:42]MH_I2C_Read... [09:23:42]Read from MH i2c: E2 03 00 [09:23:42]MH_I2C_Read... [09:23:42]Read from MH i2c: E2 03 00 E0 1E 00 90 00 72 [09:23:42]RAPDU: 90 00 [09:23:42]wFMCommunicate OK [09:23:42]wFMCommunicate request_size=4 [09:23:42]MH_SAM_APDU [09:23:42]CAPDU: 80 0D 03 02 [09:23:42]Write to MH i2c: E2 08 00 E1 1E 80 0D 03 02 00 00 00 00 7A [09:23:42]Write i2c OK [09:23:42]MH_I2C_Read... [09:23:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:42]Read from MH i2c: E2 [09:23:42]MH_I2C_Read... [09:23:42]Read from MH i2c: E2 0B 00 [09:23:42]MH_I2C_Read... [09:23:42]Read from MH i2c: E2 0B 00 E1 1E 00 AF 90 FE 92 7B CF 36 48 90 00 12 [09:23:42]RAPDU: AF 90 FE 92 7B CF 36 48 90 00 [09:23:42]wFMCommunicate OK [09:23:42]SAM_PROTO_SignData done [09:23:42]FM_MakeSignedData done [09:23:42]CreateOFDProtocolMessage [09:23:42]wFMCommunicate request_size=4 [09:23:42]MH_SAM_APDU [09:23:42]CAPDU: 80 11 00 00 [09:23:42]Write to MH i2c: E2 08 00 E2 1E 80 11 00 00 00 00 00 00 7A [09:23:42]Write i2c OK [09:23:42]MH_I2C_Read... [09:23:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:42]Read from MH i2c: E2 [09:23:42]MH_I2C_Read... [09:23:42]Read from MH i2c: E2 17 00 [09:23:42]MH_I2C_Read... [09:23:42]Read from MH i2c: E2 17 00 E2 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CF [09:23:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:23:42]wFMCommunicate OK [09:23:42]CreateOFDProtocolMessage done [09:23:42]OFDSenderStorePacket 201305 [09:23:42]StoreOFDPacket docnum=201305 [09:23:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 4B E8 07 01 7A 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 43 00 00 00 F4 03 04 00 20 B5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 59 12 03 00 35 04 06 00 6B C1 7B 55 07 DE AF 90 FE 92 7B CF 36 48 [09:23:42]CheckFolder [09:23:42]dirname=/storage/ofd_packets [09:23:42]CheckFolder done [09:23:42]ProducePacketName [09:23:42]name=ofd_packets/00201305 [09:23:42]NVStorageSaveData ofd_packets/00201305 [09:23:42]File name is /storage/ofd_packets/00201305 [09:23:42]Write 301 bytes [09:23:42]NVStorageSaveData done [09:23:42]OFDSenderStorePacket done [09:23:42]KKMCreateOFDPacket done [09:23:42]NVStorageSaveData kkm_last_timestamp [09:23:42]File name is /storage/kkm_last_timestamp [09:23:42]Write 4 bytes [09:23:42]NVStorageSaveData done [09:23:42]ExternCall_PrintAddStr [09:23:42]wPrintStart [09:23:42]Write to MH i2c: 01 00 00 E3 1E 01 [09:23:42]Write i2c OK [09:23:42]MH_I2C_Read... [09:23:42]Read from MH i2c: 01 [09:23:42]MH_I2C_Read... [09:23:42]Read from MH i2c: 01 07 00 [09:23:42]MH_I2C_Read... [09:23:42]Read from MH i2c: 01 07 00 E3 1E 00 00 00 00 00 FF 0F 16 [09:23:42]RasterBufferAndPrint [09:23:42]line Счет N : (1)449052 [09:23:42]line ИНН: 02508201610067 [09:23:42]line Контрольно-Кассовый Чек [09:23:42]line ПРОДАЖА [09:23:42]line ТРК (МРК, ГНК) : 31 [09:23:42]line Товар: 2710124130 [09:23:42]line Аи-92-К-2 [09:23:42]line 7.480 * 66.90 [09:23:42]line = 500.41 [09:23:42]line НДС 12% НСП 1% [09:23:42]line > о реализуемом товаре [09:23:42]line ОКРУГЛЕНИЕ: -0.41 [09:23:42]line ИТОГО: 500.00 [09:23:42]line Внесено: 500.00 [09:23:42]line СДАЧА: 0.00 [09:23:42]line НСП 1% : 4.43 [09:23:42]line НДС 12% : 53.14 [09:23:42]line Наличными: 500.00 [09:23:42]line Безнал.: 0.00 [09:23:42]line Место: АЗС № 171 "Партнер Нефть" [09:23:42]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:23:42]line СНО: Общий режим [09:23:42]line Чек 67 26.10.2024 09:23 [09:23:42]line Смена: 543 ФФД: 1.0 [09:23:42]line ЗНМ: 0300000109 [09:23:42]line РНМ: 0000000000091777 [09:23:42]line Версия ККМ: 001 [09:23:42]line ФМ: 0000000000871756 [09:23:42]line ФД: 201305 [09:23:42]line ФПД: 118478742030302 [09:23:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092344&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201305&fm=118478742030302&tin=02508201610067®Number=0000000000091777&sum=50000 [09:23:43]OFD Sender: Processing packet 201305 [packets to send 112, broken 111] [09:23:43]ProducePacketName [09:23:43]name=ofd_packets/00201305 [09:23:43]OFD Sender: To server: pG, [09:23:43]CommunicateWithHost lk.salyk.kg:30040 [09:23:43]ConnectInit lk.salyk.kg [09:23:43]written 0, free lines is 4095 [09:23:43]Connected sock=10 [09:23:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 4B E8 07 01 7A 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 43 00 00 00 F4 03 04 00 20 B5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 59 12 03 00 35 04 06 00 6B C1 7B 55 07 DE AF 90 FE 92 7B CF 36 48 [09:23:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 7F EC 47 00 6D 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 59 12 03 00 F4 03 04 00 CA 60 1C 67 B6 04 01 00 00 D4 9B FD 9A A1 82 69 F0 [09:23:43]CommunicateWithHost err = 0 [09:23:43]CheckOFDResponse [09:23:43]1017 (14) - 77093643461234 [09:23:43]1041 (16) - 0000000000871756 [09:23:43]1040 (4) - 201305 [09:23:43]1012 (4) - 26.10.2024 03:23 [09:23:43]1206 (1) - 0 [09:23:43]OFD Sender: Remove packet 201305 [09:23:43]ProducePacketName [09:23:43]name=ofd_packets/00201305 [09:23:43]NVStorageDeleteData [09:23:43]Write to MH i2c: 01 00 00 0E 1F 2D [09:23:43]Write i2c OK [09:23:43]MH_I2C_Read... [09:23:43]Read from MH i2c: 01 [09:23:43]MH_I2C_Read... [09:23:43]Read from MH i2c: 01 07 00 [09:23:43]MH_I2C_Read... [09:23:43]Read from MH i2c: 01 07 00 0E 1F 00 00 00 00 00 92 0C D2 [09:23:43]RasterBufferAndPrint [09:23:43]line [09:23:43]line [09:23:43]line [09:23:43]line [09:23:43]line [09:23:43]written 0, free lines is 3223 [09:23:43]MH_Cut [09:23:43]Write to MH i2c: D1 01 00 15 1F 01 06 [09:23:43]Write i2c OK [09:23:43]MH_I2C_Read... [09:23:43]Read from MH i2c: D1 [09:23:43]MH_I2C_Read... [09:23:43]Read from MH i2c: D1 01 00 [09:23:43]MH_I2C_Read... [09:23:43]Read from MH i2c: D1 01 00 15 1F 00 05 [09:23:43]Write to MH i2c: 01 00 00 16 1F 35 [09:23:43]Write i2c OK [09:23:43]MH_I2C_Read... [09:23:43]OFD Sender: No OFD packet to send [09:23:44]*** Cut start [09:23:44]*** Purtial cut [09:23:44]*** Stage 1: CUTSNS_PIN = 1 [09:23:44]Read from MH i2c: 01 [09:23:44]MH_I2C_Read... [09:23:44]*** Stop cut motor [09:23:44]*** Cut end [09:23:44]Read from MH i2c: 01 07 00 [09:23:44]MH_I2C_Read... [09:23:44]Read from MH i2c: 01 07 00 16 1F 00 00 00 00 00 FF 0F 4A [09:23:44]process_action close_receipt done [09:23:44]requested_data is exist [09:23:44]produce_requested_data [09:23:44]requested_item fm.sn is exist - process it [09:23:44]wFMCommunicate request_size=4 [09:23:44]MH_SAM_APDU [09:23:44]CAPDU: 80 11 00 00 [09:23:44]Write to MH i2c: E2 08 00 17 1F 80 11 00 00 00 00 00 00 B0 [09:23:44]Write i2c OK [09:23:44]MH_I2C_Read... [09:23:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:44]Read from MH i2c: E2 [09:23:44]MH_I2C_Read... [09:23:44]Read from MH i2c: E2 17 00 [09:23:44]MH_I2C_Read... [09:23:44]Read from MH i2c: E2 17 00 17 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 05 [09:23:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:23:44]wFMCommunicate OK [09:23:44]requested_item fd.num is exist - process it [09:23:44]SAM_PROTO_GetFieldsCounters [09:23:44]wFMCommunicate request_size=4 [09:23:44]MH_SAM_APDU [09:23:44]CAPDU: 80 13 00 00 [09:23:44]Write to MH i2c: E2 08 00 18 1F 80 13 00 00 00 00 00 00 B3 [09:23:44]Write i2c OK [09:23:44]MH_I2C_Read... [09:23:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:44]Read from MH i2c: E2 [09:23:44]MH_I2C_Read... [09:23:44]Read from MH i2c: E2 62 00 [09:23:44]MH_I2C_Read... [09:23:44]Read from MH i2c: E2 62 00 18 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 59 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [09:23:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 59 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:23:44]wFMCommunicate OK [09:23:44]SAM_PROTO_GetFieldsCounters done [09:23:44]requested_item shift.num is exist - process it [09:23:44]requested_item shift.opened is exist - process it [09:23:44]req_shift_opened [09:23:44]FM_GetShiftState [09:23:44]SAM_PROTO_GetShiftState [09:23:44]wFMCommunicate request_size=4 [09:23:44]MH_SAM_APDU [09:23:44]CAPDU: 80 13 01 00 [09:23:44]Write to MH i2c: E2 08 00 19 1F 80 13 01 00 00 00 00 00 B5 [09:23:44]Write i2c OK [09:23:44]MH_I2C_Read... [09:23:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:44]Read from MH i2c: E2 [09:23:44]MH_I2C_Read... [09:23:44]Read from MH i2c: E2 0E 00 [09:23:44]MH_I2C_Read... [09:23:44]Read from MH i2c: E2 0E 00 19 1F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C4 [09:23:44]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:23:44]wFMCommunicate OK [09:23:44]SAM_PROTO_GetShiftState done [09:23:44]FM_GetShiftState done [09:23:44]req_shift_opened done [09:23:44]requested_item shift.open_date is exist - process it [09:23:44]req_shift_open_date [09:23:44]req_shift_open_date done [09:23:44]produce_requested_data done [09:23:44]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201305,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:23:44]process_action_free close_receipt [09:23:44]json_value_free [09:23:44]json_value_free done [09:23:44]process_json_proto returns [09:23:44]Send response to host [09:23:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201305,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:23:44]free response buf [09:23:44]execute_script done [09:23:44]execute_script returns [09:23:44]free content buf [09:23:44]Sock 7.Close socket [09:23:44]Sock 7.Thread stoped [09:23:48]OFD Sender: No OFD packet to send [09:23:53]OFD Sender: No OFD packet to send [09:23:58]OFD Sender: No OFD packet to send [09:24:03]OFD Sender: No OFD packet to send [09:24:09]OFD Sender: No OFD packet to send [09:24:14]OFD Sender: No OFD packet to send [09:24:19]OFD Sender: No OFD packet to send [09:24:24]OFD Sender: No OFD packet to send [09:24:29]OFD Sender: No OFD packet to send [09:24:29]accept exits with 9 [09:24:29]New connection [09:24:29]New thread 3067415908 created [09:24:29]Thread 3067559268 joined [09:24:29]Waiting for new connection... [09:24:29] Sock 9.Parse request [09:24:29]Sock 9.Check first char [09:24:29]Sock 9.First char is OK [09:24:29]request: POST /json_proto HTTP/1.0 [09:24:29]Method: POST [09:24:29]URL: /json_proto [09:24:29]Method is POST - this is cgi request [09:24:29]url: /json_proto [09:24:29]query_string will be loaded in cgi processing [09:24:29]execute_cgi json_proto POST (null) [09:24:29]execute_cgi path=json_proto method=POST [09:24:29]POST find Content-Length [09:24:29]Host: 172.17.63.195:8080 [09:24:29]Content-Length: 677 [09:24:29]Content-Type: application/json [09:24:29] [09:24:29]POST finish read [09:24:29]Found Content-Length = 677 [09:24:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.070, "sum" : 450.39, "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" ] } } [09:24:29]execute_script... [09:24: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)449053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.070, "sum" : 450.39, "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" ] } } [09:24:29]POST & json_proto [09:24:29]process_json_proto [09:24:29]json parsed OK: [09:24:29]protocol is kg_v1.0 [09:24:29]action value=close_receipt [09:24:29]process_action close_receipt [09:24:29]cmd_close_receipt [09:24:29]MH_GetDate [09:24:29]Write to MH i2c: F0 00 00 1A 1F 28 [09:24:29]Write i2c OK [09:24:29]MH_I2C_Read... [09:24:29]Read from MH i2c: F0 [09:24:29]MH_I2C_Read... [09:24:29]Read from MH i2c: F0 09 00 [09:24:29]MH_I2C_Read... [09:24:29]Read from MH i2c: F0 09 00 1A 1F 00 50 B5 1C 67 68 46 19 67 E7 [09:24:29]GetLastDocTimeStamp 1729934624 [09:24:29]current date 1729934672 [09:24:29]FM_GetShiftState [09:24:29]SAM_PROTO_GetShiftState [09:24:29]wFMCommunicate request_size=4 [09:24:29]MH_SAM_APDU [09:24:29]CAPDU: 80 13 01 00 [09:24:29]Write to MH i2c: E2 08 00 1B 1F 80 13 01 00 00 00 00 00 B7 [09:24:29]Write i2c OK [09:24:29]MH_I2C_Read... [09:24:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:29]Read from MH i2c: E2 [09:24:29]MH_I2C_Read... [09:24:29]Read from MH i2c: E2 0E 00 [09:24:29]MH_I2C_Read... [09:24:29]Read from MH i2c: E2 0E 00 1B 1F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C6 [09:24:29]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:24:29]wFMCommunicate OK [09:24:29]SAM_PROTO_GetShiftState done [09:24:29]FM_GetShiftState done [09:24:29]opened in 1729900879 [09:24:29]opened+sec_in_day 1729987279 [09:24:29]quantity*price = 45039 [09:24:29]sum+1 = 45040 [09:24:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.99 НДС 12% : 47.83 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 68 26.10.2024 09:24 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201306 ФПД: 280894755329894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092433&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201306&fm=280894755329894&tin=02508201610067®Number=0000000000091777&sum=45000 [09:24:30]StoreToDocumentArchive [09:24:30]shift 543 fd 201306 [09:24:30]save to /storage/0543/doc_00201306 [09:24:30]save last doc name /storage/0543/doc_00201306 to /storage/kkm_last_doc_name [09:24:30]save OK [09:24:30]Clear old archive folders... [09:24:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:24:30]tlvbuf is B6F6E9B0 [09:24:30]SAM_PROTO_ClearQueue [09:24:30]wFMCommunicate request_size=4 [09:24:30]MH_SAM_APDU [09:24:30]CAPDU: 80 09 00 00 [09:24:30]Write to MH i2c: E2 08 00 28 1F 80 09 00 00 00 00 00 00 B9 [09:24:30]Write i2c OK [09:24:30]MH_I2C_Read... [09:24:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:24:30]Read from MH i2c: E2 [09:24:30]MH_I2C_Read... [09:24:30]Read from MH i2c: E2 03 00 [09:24:30]MH_I2C_Read... [09:24:30]Read from MH i2c: E2 03 00 28 1F 00 90 00 BB [09:24:30]RAPDU: 90 00 [09:24:30]wFMCommunicate OK [09:24:30]SAM_PROTO_ClearQueue done [09:24:30]KKMCreateOFDPacket [09:24:30]OFDProtocolAddRootSTLVToBuf [09:24:30]FM_MakeSignedData [09:24:30]FM_MakeSignedData [09:24:30]SAM_PROTO_SignData [09:24:30]wFMCommunicate request_size=4 [09:24:30]MH_SAM_APDU [09:24:30]CAPDU: 80 0D 01 02 [09:24:30]Write to MH i2c: E2 08 00 29 1F 80 0D 01 02 00 00 00 00 C1 [09:24:30]Write i2c OK [09:24:30]MH_I2C_Read... [09:24:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:24:30]Read from MH i2c: E2 [09:24:30]MH_I2C_Read... [09:24:30]Read from MH i2c: E2 03 00 [09:24:30]MH_I2C_Read... [09:24:30]Read from MH i2c: E2 03 00 29 1F 00 90 00 BC [09:24:30]RAPDU: 90 00 [09:24:30]wFMCommunicate OK [09:24:30]wFMCommunicate request_size=255 [09:24:30]MH_SAM_APDU [09:24:30]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 33 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF 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 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 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 44 00 00 00 F4 03 04 00 51 B5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5A 12 03 00 35 04 06 00 FF [09:24:30]Write to MH i2c: E2 02 01 2A 1F 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 33 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF 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 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 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 44 00 00 00 F4 03 04 00 51 B5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5A 12 03 00 35 04 06 00 FF 00 00 F3 [09:24:30]Write i2c OK [09:24:30]MH_I2C_Read... [09:24:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:30]Read from MH i2c: E2 [09:24:30]MH_I2C_Read... [09:24:30]Read from MH i2c: E2 03 00 [09:24:30]MH_I2C_Read... [09:24:30]Read from MH i2c: E2 03 00 2A 1F 00 90 00 BD [09:24:30]RAPDU: 90 00 [09:24:30]wFMCommunicate OK [09:24:30]wFMCommunicate request_size=10 [09:24:30]MH_SAM_APDU [09:24:30]CAPDU: 80 0D 02 02 05 78 E8 1C 57 66 [09:24:30]Write to MH i2c: E2 0D 00 2B 1F 80 0D 02 02 05 00 78 E8 1C 57 66 00 00 07 [09:24:30]Write i2c OK [09:24:30]MH_I2C_Read... [09:24:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:30]Read from MH i2c: E2 [09:24:30]MH_I2C_Read... [09:24:30]Read from MH i2c: E2 03 00 [09:24:30]MH_I2C_Read... [09:24:30]Read from MH i2c: E2 03 00 2B 1F 00 90 00 BE [09:24:30]RAPDU: 90 00 [09:24:30]wFMCommunicate OK [09:24:30]wFMCommunicate request_size=4 [09:24:30]MH_SAM_APDU [09:24:30]CAPDU: 80 0D 03 02 [09:24:30]Write to MH i2c: E2 08 00 2C 1F 80 0D 03 02 00 00 00 00 C6 [09:24:30]Write i2c OK [09:24:30]MH_I2C_Read... [09:24:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:24:31]Read from MH i2c: E2 [09:24:31]MH_I2C_Read... [09:24:31]Read from MH i2c: E2 0B 00 [09:24:31]MH_I2C_Read... [09:24:31]Read from MH i2c: E2 0B 00 2C 1F 00 60 62 83 EA 4B B3 C5 59 90 00 12 [09:24:31]RAPDU: 60 62 83 EA 4B B3 C5 59 90 00 [09:24:31]wFMCommunicate OK [09:24:31]SAM_PROTO_SignData done [09:24:31]FM_MakeSignedData done [09:24:31]CreateOFDProtocolMessage [09:24:31]wFMCommunicate request_size=4 [09:24:31]MH_SAM_APDU [09:24:31]CAPDU: 80 11 00 00 [09:24:31]Write to MH i2c: E2 08 00 2D 1F 80 11 00 00 00 00 00 00 C6 [09:24:31]Write i2c OK [09:24:31]MH_I2C_Read... [09:24:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:31]Read from MH i2c: E2 [09:24:31]MH_I2C_Read... [09:24:31]Read from MH i2c: E2 17 00 [09:24:31]MH_I2C_Read... [09:24:31]Read from MH i2c: E2 17 00 2D 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1B [09:24:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:24:31]wFMCommunicate OK [09:24:31]CreateOFDProtocolMessage done [09:24:31]OFDSenderStorePacket 201306 [09:24:31]StoreOFDPacket docnum=201306 [09:24:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E7 0C 07 01 C3 F8 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 33 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF 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 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 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 44 00 00 00 F4 03 04 00 51 B5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5A 12 03 00 35 04 06 00 FF 78 E8 1C 57 66 60 62 83 EA 4B B3 C5 59 [09:24:31]CheckFolder [09:24:31]dirname=/storage/ofd_packets [09:24:31]CheckFolder done [09:24:31]ProducePacketName [09:24:31]name=ofd_packets/00201306 [09:24:31]NVStorageSaveData ofd_packets/00201306 [09:24:31]File name is /storage/ofd_packets/00201306 [09:24:31]Write 301 bytes [09:24:31]NVStorageSaveData done [09:24:31]OFDSenderStorePacket done [09:24:31]KKMCreateOFDPacket done [09:24:31]NVStorageSaveData kkm_last_timestamp [09:24:31]File name is /storage/kkm_last_timestamp [09:24:31]Write 4 bytes [09:24:31]NVStorageSaveData done [09:24:31]ExternCall_PrintAddStr [09:24:31]wPrintStart [09:24:31]Write to MH i2c: 01 00 00 2E 1F 4D [09:24:31]Write i2c OK [09:24:31]MH_I2C_Read... [09:24:31]Read from MH i2c: 01 [09:24:31]MH_I2C_Read... [09:24:31]Read from MH i2c: 01 07 00 [09:24:31]MH_I2C_Read... [09:24:31]Read from MH i2c: 01 07 00 2E 1F 00 00 00 00 00 FF 0F 62 [09:24:31]RasterBufferAndPrint [09:24:31]line Счет N : (1)449053 [09:24:31]line ИНН: 02508201610067 [09:24:31]line Контрольно-Кассовый Чек [09:24:31]line ПРОДАЖА [09:24:31]line ТРК (МРК, ГНК) : 61 [09:24:31]line Товар: 2710124500 [09:24:31]line Аи-95-К-3 [09:24:31]line 6.070 * 74.20 [09:24:31]line = 450.39 [09:24:31]line НДС 12% НСП 1% [09:24:31]line > о реализуемом товаре [09:24:31]line ОКРУГЛЕНИЕ: -0.39 [09:24:31]line ИТОГО: 450.00 [09:24:31]line Внесено: 450.00 [09:24:31]line СДАЧА: 0.00 [09:24:31]line НСП 1% : 3.99 [09:24:31]line НДС 12% : 47.83 [09:24:31]line Наличными: 450.00 [09:24:31]line Безнал.: 0.00 [09:24:31]line Место: АЗС № 171 "Партнер Нефть" [09:24:31]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:24:31]line СНО: Общий режим [09:24:31]line Чек 68 26.10.2024 09:24 [09:24:31]line Смена: 543 ФФД: 1.0 [09:24:31]line ЗНМ: 0300000109 [09:24:31]line РНМ: 0000000000091777 [09:24:31]line Версия ККМ: 001 [09:24:31]line ФМ: 0000000000871756 [09:24:31]line ФД: 201306 [09:24:31]line ФПД: 280894755329894 [09:24:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092433&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201306&fm=280894755329894&tin=02508201610067®Number=0000000000091777&sum=45000 [09:24:31]OFD Sender: Processing packet 201306 [packets to send 112, broken 111] [09:24:31]ProducePacketName [09:24:31]name=ofd_packets/00201306 [09:24:31]OFD Sender: To server: pG, [09:24:31]CommunicateWithHost lk.salyk.kg:30040 [09:24:31]ConnectInit lk.salyk.kg [09:24:31]written 0, free lines is 4095 [09:24:31]Connected sock=10 [09:24:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E7 0C 07 01 C3 F8 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 33 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF 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 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 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 44 00 00 00 F4 03 04 00 51 B5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5A 12 03 00 35 04 06 00 FF 78 E8 1C 57 66 60 62 83 EA 4B B3 C5 59 [09:24:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 FA BB 47 00 C2 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5A 12 03 00 F4 03 04 00 FA 60 1C 67 B6 04 01 00 00 64 64 BC B4 9B 00 69 70 [09:24:31]CommunicateWithHost err = 0 [09:24:31]CheckOFDResponse [09:24:31]1017 (14) - 77093643461234 [09:24:31]1041 (16) - 0000000000871756 [09:24:31]1040 (4) - 201306 [09:24:31]1012 (4) - 26.10.2024 03:24 [09:24:31]1206 (1) - 0 [09:24:31]OFD Sender: Remove packet 201306 [09:24:31]ProducePacketName [09:24:31]name=ofd_packets/00201306 [09:24:31]NVStorageDeleteData [09:24:31]Write to MH i2c: 01 00 00 59 1F 78 [09:24:31]Write i2c OK [09:24:31]MH_I2C_Read... [09:24:31]Read from MH i2c: 01 [09:24:31]MH_I2C_Read... [09:24:31]Read from MH i2c: 01 07 00 [09:24:31]MH_I2C_Read... [09:24:31]Read from MH i2c: 01 07 00 59 1F 00 00 00 00 00 94 0C 1F [09:24:31]RasterBufferAndPrint [09:24:31]line [09:24:31]line [09:24:31]line [09:24:31]line [09:24:31]line [09:24:31]written 0, free lines is 3225 [09:24:31]MH_Cut [09:24:31]Write to MH i2c: D1 01 00 60 1F 01 51 [09:24:31]Write i2c OK [09:24:31]MH_I2C_Read... [09:24:31]Read from MH i2c: D1 [09:24:31]MH_I2C_Read... [09:24:31]Read from MH i2c: D1 01 00 [09:24:31]MH_I2C_Read... [09:24:31]Read from MH i2c: D1 01 00 60 1F 00 50 [09:24:31]Write to MH i2c: 01 00 00 61 1F 80 [09:24:31]Write i2c OK [09:24:31]MH_I2C_Read... [09:24:32]OFD Sender: No OFD packet to send [09:24:32]*** Cut start [09:24:32]*** Purtial cut [09:24:32]*** Stage 1: CUTSNS_PIN = 1 [09:24:32]Read from MH i2c: 01 [09:24:32]MH_I2C_Read... [09:24:32]*** Stop cut motor [09:24:32]*** Cut end [09:24:32]Read from MH i2c: 01 07 00 [09:24:32]MH_I2C_Read... [09:24:32]Read from MH i2c: 01 07 00 61 1F 00 00 00 00 00 FF 0F 95 [09:24:32]process_action close_receipt done [09:24:32]requested_data is exist [09:24:32]produce_requested_data [09:24:32]requested_item fm.sn is exist - process it [09:24:32]wFMCommunicate request_size=4 [09:24:32]MH_SAM_APDU [09:24:32]CAPDU: 80 11 00 00 [09:24:32]Write to MH i2c: E2 08 00 62 1F 80 11 00 00 00 00 00 00 FB [09:24:32]Write i2c OK [09:24:32]MH_I2C_Read... [09:24:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:33]Read from MH i2c: E2 [09:24:33]MH_I2C_Read... [09:24:33]Read from MH i2c: E2 17 00 [09:24:33]MH_I2C_Read... [09:24:33]Read from MH i2c: E2 17 00 62 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 50 [09:24:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:24:33]wFMCommunicate OK [09:24:33]requested_item fd.num is exist - process it [09:24:33]SAM_PROTO_GetFieldsCounters [09:24:33]wFMCommunicate request_size=4 [09:24:33]MH_SAM_APDU [09:24:33]CAPDU: 80 13 00 00 [09:24:33]Write to MH i2c: E2 08 00 63 1F 80 13 00 00 00 00 00 00 FE [09:24:33]Write i2c OK [09:24:33]MH_I2C_Read... [09:24:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:24:33]Read from MH i2c: E2 [09:24:33]MH_I2C_Read... [09:24:33]Read from MH i2c: E2 62 00 [09:24:33]MH_I2C_Read... [09:24:33]Read from MH i2c: E2 62 00 63 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5A 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [09:24:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5A 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:24:33]wFMCommunicate OK [09:24:33]SAM_PROTO_GetFieldsCounters done [09:24:33]requested_item shift.num is exist - process it [09:24:33]requested_item shift.opened is exist - process it [09:24:33]req_shift_opened [09:24:33]FM_GetShiftState [09:24:33]SAM_PROTO_GetShiftState [09:24:33]wFMCommunicate request_size=4 [09:24:33]MH_SAM_APDU [09:24:33]CAPDU: 80 13 01 00 [09:24:33]Write to MH i2c: E2 08 00 64 1F 80 13 01 00 00 00 00 00 00 [09:24:33]Write i2c OK [09:24:33]MH_I2C_Read... [09:24:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:33]Read from MH i2c: E2 [09:24:33]MH_I2C_Read... [09:24:33]Read from MH i2c: E2 0E 00 [09:24:33]MH_I2C_Read... [09:24:33]Read from MH i2c: E2 0E 00 64 1F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 0F [09:24:33]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:24:33]wFMCommunicate OK [09:24:33]SAM_PROTO_GetShiftState done [09:24:33]FM_GetShiftState done [09:24:33]req_shift_opened done [09:24:33]requested_item shift.open_date is exist - process it [09:24:33]req_shift_open_date [09:24:33]req_shift_open_date done [09:24:33]produce_requested_data done [09:24:33]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201306,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:24:33]process_action_free close_receipt [09:24:33]json_value_free [09:24:33]json_value_free done [09:24:33]process_json_proto returns [09:24:33]Send response to host [09:24:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201306,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:24:33]free response buf [09:24:33]execute_script done [09:24:33]execute_script returns [09:24:33]free content buf [09:24:33]Sock 9.Close socket [09:24:33]Sock 9.Thread stoped [09:24:37]OFD Sender: No OFD packet to send [09:24:42]OFD Sender: No OFD packet to send [09:24:47]OFD Sender: No OFD packet to send [09:24:52]OFD Sender: No OFD packet to send [09:24:57]OFD Sender: No OFD packet to send [09:25:00]accept exits with 7 [09:25:00]New connection [09:25:00]New thread 3067559268 created [09:25:00]Thread 3067415908 joined [09:25:00]Waiting for new connection... [09:25:00] Sock 7.Parse request [09:25:00]Sock 7.Check first char [09:25:00]Sock 7.First char is OK [09:25:00]request: POST /json_proto HTTP/1.0 [09:25:00]Method: POST [09:25:00]URL: /json_proto [09:25:00]Method is POST - this is cgi request [09:25:00]url: /json_proto [09:25:00]query_string will be loaded in cgi processing [09:25:00]execute_cgi json_proto POST (null) [09:25:00]execute_cgi path=json_proto method=POST [09:25:00]POST find Content-Length [09:25:00]Host: 172.17.63.195:8080 [09:25:00]Content-Length: 682 [09:25:00]Content-Type: application/json [09:25:00] [09:25:00]POST finish read [09:25:00]Found Content-Length = 682 [09:25:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:25:00]execute_script... [09:25: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)449054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:25:00]POST & json_proto [09:25:00]process_json_proto [09:25:00]json parsed OK: [09:25:00]protocol is kg_v1.0 [09:25:00]action value=close_receipt [09:25:00]process_action close_receipt [09:25:00]cmd_close_receipt [09:25:00]MH_GetDate [09:25:00]Write to MH i2c: F0 00 00 65 1F 73 [09:25:00]Write i2c OK [09:25:00]MH_I2C_Read... [09:25:00]Read from MH i2c: F0 [09:25:00]MH_I2C_Read... [09:25:00]Read from MH i2c: F0 09 00 [09:25:00]MH_I2C_Read... [09:25:00]Read from MH i2c: F0 09 00 65 1F 00 6F B5 1C 67 68 46 19 67 51 [09:25:00]GetLastDocTimeStamp 1729934673 [09:25:00]current date 1729934703 [09:25:00]FM_GetShiftState [09:25:00]SAM_PROTO_GetShiftState [09:25:00]wFMCommunicate request_size=4 [09:25:00]MH_SAM_APDU [09:25:00]CAPDU: 80 13 01 00 [09:25:00]Write to MH i2c: E2 08 00 66 1F 80 13 01 00 00 00 00 00 02 [09:25:00]Write i2c OK [09:25:00]MH_I2C_Read... [09:25:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:00]Read from MH i2c: E2 [09:25:00]MH_I2C_Read... [09:25:00]Read from MH i2c: E2 0E 00 [09:25:00]MH_I2C_Read... [09:25:00]Read from MH i2c: E2 0E 00 66 1F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 11 [09:25:00]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:25:00]wFMCommunicate OK [09:25:00]SAM_PROTO_GetShiftState done [09:25:00]FM_GetShiftState done [09:25:00]opened in 1729900879 [09:25:00]opened+sec_in_day 1729987279 [09:25:00]quantity*price = 100015 [09:25:00]sum+1 = 100017 [09:25:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 69 26.10.2024 09:25 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201307 ФПД: 236666195951412 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092503&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201307&fm=236666195951412&tin=02508201610067®Number=0000000000091777&sum=100000 [09:25:01]StoreToDocumentArchive [09:25:01]shift 543 fd 201307 [09:25:01]save to /storage/0543/doc_00201307 [09:25:01]save last doc name /storage/0543/doc_00201307 to /storage/kkm_last_doc_name [09:25:01]save OK [09:25:01]Clear old archive folders... [09:25:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:01]tlvbuf is 0174C610 [09:25:01]SAM_PROTO_ClearQueue [09:25:01]wFMCommunicate request_size=4 [09:25:01]MH_SAM_APDU [09:25:01]CAPDU: 80 09 00 00 [09:25:01]Write to MH i2c: E2 08 00 73 1F 80 09 00 00 00 00 00 00 04 [09:25:01]Write i2c OK [09:25:01]MH_I2C_Read... [09:25:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:01]Read from MH i2c: E2 [09:25:01]MH_I2C_Read... [09:25:01]Read from MH i2c: E2 03 00 [09:25:01]MH_I2C_Read... [09:25:01]Read from MH i2c: E2 03 00 73 1F 00 90 00 06 [09:25:01]RAPDU: 90 00 [09:25:01]wFMCommunicate OK [09:25:01]SAM_PROTO_ClearQueue done [09:25:01]KKMCreateOFDPacket [09:25:01]OFDProtocolAddRootSTLVToBuf [09:25:01]FM_MakeSignedData [09:25:01]FM_MakeSignedData [09:25:01]SAM_PROTO_SignData [09:25:01]wFMCommunicate request_size=4 [09:25:01]MH_SAM_APDU [09:25:01]CAPDU: 80 0D 01 02 [09:25:01]Write to MH i2c: E2 08 00 74 1F 80 0D 01 02 00 00 00 00 0C [09:25:01]Write i2c OK [09:25:01]MH_I2C_Read... [09:25:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:01]Read from MH i2c: E2 [09:25:01]MH_I2C_Read... [09:25:01]Read from MH i2c: E2 03 00 [09:25:01]MH_I2C_Read... [09:25:01]Read from MH i2c: E2 03 00 74 1F 00 90 00 07 [09:25:01]RAPDU: 90 00 [09:25:01]wFMCommunicate OK [09:25:01]wFMCommunicate request_size=255 [09:25:01]MH_SAM_APDU [09:25: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 32 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 45 00 00 00 F4 03 04 00 6F B5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5B 12 03 00 35 04 06 00 D7 [09:25:01]Write to MH i2c: E2 02 01 75 1F 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 32 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 45 00 00 00 F4 03 04 00 6F B5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5B 12 03 00 35 04 06 00 D7 00 00 EE [09:25:01]Write i2c OK [09:25:01]MH_I2C_Read... [09:25:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:01]Read from MH i2c: E2 [09:25:01]MH_I2C_Read... [09:25:01]Read from MH i2c: E2 03 00 [09:25:01]MH_I2C_Read... [09:25:01]Read from MH i2c: E2 03 00 75 1F 00 90 00 08 [09:25:01]RAPDU: 90 00 [09:25:01]wFMCommunicate OK [09:25:01]wFMCommunicate request_size=10 [09:25:01]MH_SAM_APDU [09:25:01]CAPDU: 80 0D 02 02 05 3F 24 8A 3F 34 [09:25:01]Write to MH i2c: E2 0D 00 76 1F 80 0D 02 02 05 00 3F 24 8A 3F 34 00 00 79 [09:25:01]Write i2c OK [09:25:01]MH_I2C_Read... [09:25:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:01]Read from MH i2c: E2 [09:25:01]MH_I2C_Read... [09:25:01]Read from MH i2c: E2 03 00 [09:25:01]MH_I2C_Read... [09:25:01]Read from MH i2c: E2 03 00 76 1F 00 90 00 09 [09:25:01]RAPDU: 90 00 [09:25:01]wFMCommunicate OK [09:25:01]wFMCommunicate request_size=4 [09:25:01]MH_SAM_APDU [09:25:01]CAPDU: 80 0D 03 02 [09:25:01]Write to MH i2c: E2 08 00 77 1F 80 0D 03 02 00 00 00 00 11 [09:25:01]Write i2c OK [09:25:01]MH_I2C_Read... [09:25:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:01]Read from MH i2c: E2 [09:25:01]MH_I2C_Read... [09:25:01]Read from MH i2c: E2 0B 00 [09:25:01]MH_I2C_Read... [09:25:01]Read from MH i2c: E2 0B 00 77 1F 00 24 0F FB 2E 22 65 5F FD 90 00 51 [09:25:01]RAPDU: 24 0F FB 2E 22 65 5F FD 90 00 [09:25:01]wFMCommunicate OK [09:25:01]SAM_PROTO_SignData done [09:25:01]FM_MakeSignedData done [09:25:01]CreateOFDProtocolMessage [09:25:01]wFMCommunicate request_size=4 [09:25:01]MH_SAM_APDU [09:25:01]CAPDU: 80 11 00 00 [09:25:01]Write to MH i2c: E2 08 00 78 1F 80 11 00 00 00 00 00 00 11 [09:25:01]Write i2c OK [09:25:01]MH_I2C_Read... [09:25:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:01]Read from MH i2c: E2 [09:25:01]MH_I2C_Read... [09:25:01]Read from MH i2c: E2 17 00 [09:25:01]MH_I2C_Read... [09:25:01]Read from MH i2c: E2 17 00 78 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 66 [09:25:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:25:01]wFMCommunicate OK [09:25:01]CreateOFDProtocolMessage done [09:25:01]OFDSenderStorePacket 201307 [09:25:01]StoreOFDPacket docnum=201307 [09:25:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A4 CB 07 01 EB 41 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 32 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 45 00 00 00 F4 03 04 00 6F B5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5B 12 03 00 35 04 06 00 D7 3F 24 8A 3F 34 24 0F FB 2E 22 65 5F FD [09:25:01]CheckFolder [09:25:01]dirname=/storage/ofd_packets [09:25:01]CheckFolder done [09:25:01]ProducePacketName [09:25:01]name=ofd_packets/00201307 [09:25:01]NVStorageSaveData ofd_packets/00201307 [09:25:01]File name is /storage/ofd_packets/00201307 [09:25:01]Write 301 bytes [09:25:01]NVStorageSaveData done [09:25:01]OFDSenderStorePacket done [09:25:01]KKMCreateOFDPacket done [09:25:01]NVStorageSaveData kkm_last_timestamp [09:25:01]File name is /storage/kkm_last_timestamp [09:25:01]Write 4 bytes [09:25:01]NVStorageSaveData done [09:25:01]OFD Sender: Processing packet 201307 [packets to send 112, broken 111] [09:25:01]ProducePacketName [09:25:01]name=ofd_packets/00201307 [09:25:01]OFD Sender: To server: pG, [09:25:01]CommunicateWithHost lk.salyk.kg:30040 [09:25:01]ConnectInit lk.salyk.kg [09:25:01]ExternCall_PrintAddStr [09:25:01]wPrintStart [09:25:01]Write to MH i2c: 01 00 00 79 1F 98 [09:25:01]Write i2c OK [09:25:01]MH_I2C_Read... [09:25:01]Read from MH i2c: 01 [09:25:01]MH_I2C_Read... [09:25:01]Read from MH i2c: 01 07 00 [09:25:01]MH_I2C_Read... [09:25:01]Read from MH i2c: 01 07 00 79 1F 00 00 00 00 00 FF 0F AD [09:25:01]RasterBufferAndPrint [09:25:01]line Счет N : (1)449054 [09:25:01]line ИНН: 02508201610067 [09:25:01]line Контрольно-Кассовый Чек [09:25:01]line ПРОДАЖА [09:25:01]line ТРК (МРК, ГНК) : 41 [09:25:01]line Товар: 2710124130 [09:25:01]line Аи-92-К-2 [09:25:01]line 14.950 * 66.90 [09:25:01]line = 1000.16 [09:25:01]line НДС 12% НСП 1% [09:25:01]line > о реализуемом товаре [09:25:01]line ОКРУГЛЕНИЕ: -0.16 [09:25:01]line ИТОГО: 1000.00 [09:25:01]line Внесено: 1000.00 [09:25:01]line СДАЧА: 0.00 [09:25:01]line НСП 1% : 8.85 [09:25:01]line НДС 12% : 106.21 [09:25:01]line Наличными: 1000.00 [09:25:01]line Безнал.: 0.00 [09:25:01]line Место: АЗС № 171 "Партнер Нефть" [09:25:01]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:25:01]line СНО: Общий режим [09:25:01]line Чек 69 26.10.2024 09:25 [09:25:01]line Смена: 543 ФФД: 1.0 [09:25:01]line ЗНМ: 0300000109 [09:25:01]line РНМ: 0000000000091777 [09:25:01]line Версия ККМ: 001 [09:25:01]line ФМ: 0000000000871756 [09:25:01]line ФД: 201307 [09:25:01]line ФПД: 236666195951412 [09:25:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092503&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201307&fm=236666195951412&tin=02508201610067®Number=0000000000091777&sum=100000 [09:25:02]Connected sock=11 [09:25:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A4 CB 07 01 EB 41 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 32 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 45 00 00 00 F4 03 04 00 6F B5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5B 12 03 00 35 04 06 00 D7 3F 24 8A 3F 34 24 0F FB 2E 22 65 5F FD [09:25:02]written 0, free lines is 4095 [09:25:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 6F ED 47 00 C9 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5B 12 03 00 F4 03 04 00 19 61 1C 67 B6 04 01 00 00 DF A4 62 7C C7 FC DD FD [09:25:02]CommunicateWithHost err = 0 [09:25:02]CheckOFDResponse [09:25:02]1017 (14) - 77093643461234 [09:25:02]1041 (16) - 0000000000871756 [09:25:02]1040 (4) - 201307 [09:25:02]1012 (4) - 26.10.2024 03:25 [09:25:02]1206 (1) - 0 [09:25:02]OFD Sender: Remove packet 201307 [09:25:02]ProducePacketName [09:25:02]name=ofd_packets/00201307 [09:25:02]NVStorageDeleteData [09:25:02]Write to MH i2c: 01 00 00 A4 1F C3 [09:25:02]Write i2c OK [09:25:02]MH_I2C_Read... [09:25:02]Read from MH i2c: 01 [09:25:02]MH_I2C_Read... [09:25:02]Read from MH i2c: 01 07 00 [09:25:02]MH_I2C_Read... [09:25:02]Read from MH i2c: 01 07 00 A4 1F 00 00 00 00 00 97 0C 6D [09:25:02]RasterBufferAndPrint [09:25:02]line [09:25:02]line [09:25:02]line [09:25:02]line [09:25:02]line [09:25:02]written 0, free lines is 3227 [09:25:02]MH_Cut [09:25:02]Write to MH i2c: D1 01 00 AB 1F 01 9C [09:25:02]Write i2c OK [09:25:02]MH_I2C_Read... [09:25:02]Read from MH i2c: D1 [09:25:02]MH_I2C_Read... [09:25:02]Read from MH i2c: D1 01 00 [09:25:02]MH_I2C_Read... [09:25:02]Read from MH i2c: D1 01 00 AB 1F 00 9B [09:25:02]Write to MH i2c: 01 00 00 AC 1F CB [09:25:02]Write i2c OK [09:25:02]MH_I2C_Read... [09:25:02]OFD Sender: No OFD packet to send [09:25:03]*** Cut start [09:25:03]*** Purtial cut [09:25:03]*** Stage 1: CUTSNS_PIN = 1 [09:25:03]Read from MH i2c: 01 [09:25:03]MH_I2C_Read... [09:25:03]*** Stop cut motor [09:25:03]*** Cut end [09:25:03]Read from MH i2c: 01 07 00 [09:25:03]MH_I2C_Read... [09:25:03]Read from MH i2c: 01 07 00 AC 1F 00 00 00 00 00 FF 0F E0 [09:25:03]process_action close_receipt done [09:25:03]requested_data is exist [09:25:03]produce_requested_data [09:25:03]requested_item fm.sn is exist - process it [09:25:03]wFMCommunicate request_size=4 [09:25:03]MH_SAM_APDU [09:25:03]CAPDU: 80 11 00 00 [09:25:03]Write to MH i2c: E2 08 00 AD 1F 80 11 00 00 00 00 00 00 46 [09:25:03]Write i2c OK [09:25:03]MH_I2C_Read... [09:25:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:03]Read from MH i2c: E2 [09:25:03]MH_I2C_Read... [09:25:03]Read from MH i2c: E2 17 00 [09:25:03]MH_I2C_Read... [09:25:03]Read from MH i2c: E2 17 00 AD 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9B [09:25:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:25:03]wFMCommunicate OK [09:25:03]requested_item fd.num is exist - process it [09:25:03]SAM_PROTO_GetFieldsCounters [09:25:03]wFMCommunicate request_size=4 [09:25:03]MH_SAM_APDU [09:25:03]CAPDU: 80 13 00 00 [09:25:03]Write to MH i2c: E2 08 00 AE 1F 80 13 00 00 00 00 00 00 49 [09:25:03]Write i2c OK [09:25:03]MH_I2C_Read... [09:25:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:03]Read from MH i2c: E2 [09:25:03]MH_I2C_Read... [09:25:03]Read from MH i2c: E2 62 00 [09:25:03]MH_I2C_Read... [09:25:03]Read from MH i2c: E2 62 00 AE 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5B 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [09:25:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5B 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:25:03]wFMCommunicate OK [09:25:03]SAM_PROTO_GetFieldsCounters done [09:25:03]requested_item shift.num is exist - process it [09:25:03]requested_item shift.opened is exist - process it [09:25:03]req_shift_opened [09:25:03]FM_GetShiftState [09:25:03]SAM_PROTO_GetShiftState [09:25:03]wFMCommunicate request_size=4 [09:25:03]MH_SAM_APDU [09:25:03]CAPDU: 80 13 01 00 [09:25:03]Write to MH i2c: E2 08 00 AF 1F 80 13 01 00 00 00 00 00 4B [09:25:03]Write i2c OK [09:25:03]MH_I2C_Read... [09:25:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:03]Read from MH i2c: E2 [09:25:03]MH_I2C_Read... [09:25:03]Read from MH i2c: E2 0E 00 [09:25:03]MH_I2C_Read... [09:25:03]Read from MH i2c: E2 0E 00 AF 1F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 5A [09:25:03]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:25:03]wFMCommunicate OK [09:25:03]SAM_PROTO_GetShiftState done [09:25:03]FM_GetShiftState done [09:25:03]req_shift_opened done [09:25:03]requested_item shift.open_date is exist - process it [09:25:03]req_shift_open_date [09:25:03]req_shift_open_date done [09:25:03]produce_requested_data done [09:25:03]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201307,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:25:03]process_action_free close_receipt [09:25:03]json_value_free [09:25:03]json_value_free done [09:25:03]process_json_proto returns [09:25:03]Send response to host [09:25:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201307,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:25:03]free response buf [09:25:03]execute_script done [09:25:03]execute_script returns [09:25:03]free content buf [09:25:03]Sock 7.Close socket [09:25:03]Sock 7.Thread stoped [09:25:07]OFD Sender: No OFD packet to send [09:25:12]OFD Sender: No OFD packet to send [09:25:17]OFD Sender: No OFD packet to send [09:25:22]OFD Sender: No OFD packet to send [09:25:27]OFD Sender: No OFD packet to send [09:25:32]OFD Sender: No OFD packet to send [09:25:37]OFD Sender: No OFD packet to send [09:25:42]OFD Sender: No OFD packet to send [09:25:46]accept exits with 9 [09:25:46]New connection [09:25:46]New thread 3067415908 created [09:25:46]Thread 3067559268 joined [09:25:46]Waiting for new connection... [09:25:46] Sock 9.Parse request [09:25:46]Sock 9.Check first char [09:25:46]Sock 9.First char is OK [09:25:46]request: POST /json_proto HTTP/1.0 [09:25:46]Method: POST [09:25:46]URL: /json_proto [09:25:46]Method is POST - this is cgi request [09:25:46]url: /json_proto [09:25:46]query_string will be loaded in cgi processing [09:25:46]execute_cgi json_proto POST (null) [09:25:46]execute_cgi path=json_proto method=POST [09:25:46]POST find Content-Length [09:25:46]Host: 172.17.63.195:8080 [09:25:46]Content-Length: 677 [09:25:46]Content-Type: application/json [09:25:46] [09:25:46]POST finish read [09:25:46]Found Content-Length = 677 [09:25:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:25:46]execute_script... [09: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)449055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:25:46]POST & json_proto [09:25:46]process_json_proto [09:25:46]json parsed OK: [09:25:46]protocol is kg_v1.0 [09:25:46]action value=close_receipt [09:25:46]process_action close_receipt [09:25:46]cmd_close_receipt [09:25:46]MH_GetDate [09:25:46]Write to MH i2c: F0 00 00 B0 1F BE [09:25:46]Write i2c OK [09:25:46]MH_I2C_Read... [09:25:46]Read from MH i2c: F0 [09:25:46]MH_I2C_Read... [09:25:46]Read from MH i2c: F0 09 00 [09:25:46]MH_I2C_Read... [09:25:46]Read from MH i2c: F0 09 00 B0 1F 00 9E B5 1C 67 68 46 19 67 CB [09:25:46]GetLastDocTimeStamp 1729934703 [09:25:46]current date 1729934750 [09:25:46]FM_GetShiftState [09:25:46]SAM_PROTO_GetShiftState [09:25:46]wFMCommunicate request_size=4 [09:25:46]MH_SAM_APDU [09:25:46]CAPDU: 80 13 01 00 [09:25:46]Write to MH i2c: E2 08 00 B1 1F 80 13 01 00 00 00 00 00 4D [09:25:46]Write i2c OK [09:25:46]MH_I2C_Read... [09:25:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:46]Read from MH i2c: E2 [09:25:46]MH_I2C_Read... [09:25:46]Read from MH i2c: E2 0E 00 [09:25:46]MH_I2C_Read... [09:25:46]Read from MH i2c: E2 0E 00 B1 1F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 5C [09:25:46]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:25:46]wFMCommunicate OK [09:25:46]SAM_PROTO_GetShiftState done [09:25:46]FM_GetShiftState done [09:25:46]opened in 1729900879 [09:25:46]opened+sec_in_day 1729987279 [09:25:46]quantity*price = 50041 [09:25:46]sum+1 = 50042 [09:25:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 70 26.10.2024 09:25 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201308 ФПД: 92493396473509 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092550&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201308&fm=92493396473509&tin=02508201610067®Number=0000000000091777&sum=50000 [09:25:48]StoreToDocumentArchive [09:25:48]shift 543 fd 201308 [09:25:48]save to /storage/0543/doc_00201308 [09:25:48]save last doc name /storage/0543/doc_00201308 to /storage/kkm_last_doc_name [09:25:48]save OK [09:25:48]Clear old archive folders... [09:25:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:48]tlvbuf is 0173D640 [09:25:48]SAM_PROTO_ClearQueue [09:25:48]wFMCommunicate request_size=4 [09:25:48]MH_SAM_APDU [09:25:48]CAPDU: 80 09 00 00 [09:25:48]Write to MH i2c: E2 08 00 BE 1F 80 09 00 00 00 00 00 00 4F [09:25:48]Write i2c OK [09:25:48]MH_I2C_Read... [09:25:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:48]Read from MH i2c: E2 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: E2 03 00 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: E2 03 00 BE 1F 00 90 00 51 [09:25:48]RAPDU: 90 00 [09:25:48]wFMCommunicate OK [09:25:48]SAM_PROTO_ClearQueue done [09:25:48]KKMCreateOFDPacket [09:25:48]OFDProtocolAddRootSTLVToBuf [09:25:48]FM_MakeSignedData [09:25:48]FM_MakeSignedData [09:25:48]SAM_PROTO_SignData [09:25:48]wFMCommunicate request_size=4 [09:25:48]MH_SAM_APDU [09:25:48]CAPDU: 80 0D 01 02 [09:25:48]Write to MH i2c: E2 08 00 BF 1F 80 0D 01 02 00 00 00 00 57 [09:25:48]Write i2c OK [09:25:48]MH_I2C_Read... [09:25:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:48]Read from MH i2c: E2 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: E2 03 00 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: E2 03 00 BF 1F 00 90 00 52 [09:25:48]RAPDU: 90 00 [09:25:48]wFMCommunicate OK [09:25:48]wFMCommunicate request_size=255 [09:25:48]MH_SAM_APDU [09:25: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 32 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 46 00 00 00 F4 03 04 00 9E B5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5C 12 03 00 35 04 06 00 54 [09:25:48]Write to MH i2c: E2 02 01 C0 1F 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 32 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 46 00 00 00 F4 03 04 00 9E B5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5C 12 03 00 35 04 06 00 54 00 00 ED [09:25:48]Write i2c OK [09:25:48]MH_I2C_Read... [09:25:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:48]Read from MH i2c: E2 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: E2 03 00 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: E2 03 00 C0 1F 00 90 00 53 [09:25:48]RAPDU: 90 00 [09:25:48]wFMCommunicate OK [09:25:48]wFMCommunicate request_size=10 [09:25:48]MH_SAM_APDU [09:25:48]CAPDU: 80 0D 02 02 05 1F 4C 0A 76 A5 [09:25:48]Write to MH i2c: E2 0D 00 C1 1F 80 0D 02 02 05 00 1F 4C 0A 76 A5 00 00 F4 [09:25:48]Write i2c OK [09:25:48]MH_I2C_Read... [09:25:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:48]Read from MH i2c: E2 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: E2 03 00 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: E2 03 00 C1 1F 00 90 00 54 [09:25:48]RAPDU: 90 00 [09:25:48]wFMCommunicate OK [09:25:48]wFMCommunicate request_size=4 [09:25:48]MH_SAM_APDU [09:25:48]CAPDU: 80 0D 03 02 [09:25:48]Write to MH i2c: E2 08 00 C2 1F 80 0D 03 02 00 00 00 00 5C [09:25:48]Write i2c OK [09:25:48]MH_I2C_Read... [09:25:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:48]Read from MH i2c: E2 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: E2 0B 00 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: E2 0B 00 C2 1F 00 18 62 58 05 CC 8F 75 E4 90 00 E8 [09:25:48]RAPDU: 18 62 58 05 CC 8F 75 E4 90 00 [09:25:48]wFMCommunicate OK [09:25:48]SAM_PROTO_SignData done [09:25:48]FM_MakeSignedData done [09:25:48]CreateOFDProtocolMessage [09:25:48]wFMCommunicate request_size=4 [09:25:48]MH_SAM_APDU [09:25:48]CAPDU: 80 11 00 00 [09:25:48]Write to MH i2c: E2 08 00 C3 1F 80 11 00 00 00 00 00 00 5C [09:25:48]Write i2c OK [09:25:48]MH_I2C_Read... [09:25:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:48]Read from MH i2c: E2 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: E2 17 00 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: E2 17 00 C3 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B1 [09:25:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:25:48]wFMCommunicate OK [09:25:48]CreateOFDProtocolMessage done [09:25:48]OFDSenderStorePacket 201308 [09:25:48]StoreOFDPacket docnum=201308 [09:25:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 70 94 07 01 45 06 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 32 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 46 00 00 00 F4 03 04 00 9E B5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5C 12 03 00 35 04 06 00 54 1F 4C 0A 76 A5 18 62 58 05 CC 8F 75 E4 [09:25:48]CheckFolder [09:25:48]dirname=/storage/ofd_packets [09:25:48]CheckFolder done [09:25:48]ProducePacketName [09:25:48]name=ofd_packets/00201308 [09:25:48]NVStorageSaveData ofd_packets/00201308 [09:25:48]File name is /storage/ofd_packets/00201308 [09:25:48]Write 301 bytes [09:25:48]NVStorageSaveData done [09:25:48]OFDSenderStorePacket done [09:25:48]KKMCreateOFDPacket done [09:25:48]NVStorageSaveData kkm_last_timestamp [09:25:48]File name is /storage/kkm_last_timestamp [09:25:48]Write 4 bytes [09:25:48]NVStorageSaveData done [09:25:48]ExternCall_PrintAddStr [09:25:48]wPrintStart [09:25:48]Write to MH i2c: 01 00 00 C4 1F E3 [09:25:48]Write i2c OK [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: 01 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: 01 07 00 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: 01 07 00 C4 1F 00 00 00 00 00 FF 0F F8 [09:25:48]RasterBufferAndPrint [09:25:48]line Счет N : (1)449055 [09:25:48]line ИНН: 02508201610067 [09:25:48]line Контрольно-Кассовый Чек [09:25:48]line ПРОДАЖА [09:25:48]line ТРК (МРК, ГНК) : 52 [09:25:48]line Товар: 2710124130 [09:25:48]line Аи-92-К-2 [09:25:48]line 7.480 * 66.90 [09:25:48]line = 500.41 [09:25:48]line НДС 12% НСП 1% [09:25:48]line > о реализуемом товаре [09:25:48]line ОКРУГЛЕНИЕ: -0.41 [09:25:48]line ИТОГО: 500.00 [09:25:48]line Внесено: 500.00 [09:25:48]line СДАЧА: 0.00 [09:25:48]line НСП 1% : 4.43 [09:25:48]line НДС 12% : 53.14 [09:25:48]line Наличными: 500.00 [09:25:48]line Безнал.: 0.00 [09:25:48]line Место: АЗС № 171 "Партнер Нефть" [09:25:48]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:25:48]line СНО: Общий режим [09:25:48]line Чек 70 26.10.2024 09:25 [09:25:48]line Смена: 543 ФФД: 1.0 [09:25:48]line ЗНМ: 0300000109 [09:25:48]line РНМ: 0000000000091777 [09:25:48]line Версия ККМ: 001 [09:25:48]line ФМ: 0000000000871756 [09:25:48]line ФД: 201308 [09:25:48]line ФПД: 92493396473509 [09:25:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092550&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201308&fm=92493396473509&tin=02508201610067®Number=0000000000091777&sum=50000 [09:25:48]written 0, free lines is 4095 [09:25:48]OFD Sender: Processing packet 201308 [packets to send 112, broken 111] [09:25:48]ProducePacketName [09:25:48]name=ofd_packets/00201308 [09:25:48]OFD Sender: To server: pG, [09:25:48]CommunicateWithHost lk.salyk.kg:30040 [09:25:48]ConnectInit lk.salyk.kg [09:25:48]Connected sock=10 [09:25:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 70 94 07 01 45 06 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 32 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 46 00 00 00 F4 03 04 00 9E B5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5C 12 03 00 35 04 06 00 54 1F 4C 0A 76 A5 18 62 58 05 CC 8F 75 E4 [09:25:49]Write to MH i2c: 01 00 00 EF 1F 0E [09:25:49]Write i2c OK [09:25:49]MH_I2C_Read... [09:25:49]Read from MH i2c: 01 [09:25:49]MH_I2C_Read... [09:25:49]Read from MH i2c: 01 07 00 [09:25:49]MH_I2C_Read... [09:25:49]Read from MH i2c: 01 07 00 EF 1F 00 00 00 00 00 99 0C BA [09:25:49]RasterBufferAndPrint [09:25:49]line [09:25:49]line [09:25:49]line [09:25:49]line [09:25:49]line [09:25:49]written 0, free lines is 3229 [09:25:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 16 9D 47 00 44 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5C 12 03 00 F4 03 04 00 47 61 1C 67 B6 04 01 00 00 F2 67 90 26 F5 2E 31 5F [09:25:49]CommunicateWithHost err = 0 [09:25:49]CheckOFDResponse [09:25:49]1017 (14) - 77093643461234 [09:25:49]1041 (16) - 0000000000871756 [09:25:49]1040 (4) - 201308 [09:25:49]1012 (4) - 26.10.2024 03:25 [09:25:49]1206 (1) - 0 [09:25:49]OFD Sender: Remove packet 201308 [09:25:49]ProducePacketName [09:25:49]name=ofd_packets/00201308 [09:25:49]NVStorageDeleteData [09:25:49]MH_Cut [09:25:49]Write to MH i2c: D1 01 00 F6 1F 01 E7 [09:25:49]Write i2c OK [09:25:49]MH_I2C_Read... [09:25:49]Read from MH i2c: D1 [09:25:49]MH_I2C_Read... [09:25:49]Read from MH i2c: D1 01 00 [09:25:49]MH_I2C_Read... [09:25:49]Read from MH i2c: D1 01 00 F6 1F 00 E6 [09:25:49]Write to MH i2c: 01 00 00 F7 1F 16 [09:25:49]Write i2c OK [09:25:49]MH_I2C_Read... [09:25:49]OFD Sender: No OFD packet to send [09:25:49]*** Cut start [09:25:49]*** Purtial cut [09:25:49]*** Stage 1: CUTSNS_PIN = 1 [09:25:50]Read from MH i2c: 01 [09:25:50]MH_I2C_Read... [09:25:50]*** Stop cut motor [09:25:50]*** Cut end [09:25:50]Read from MH i2c: 01 07 00 [09:25:50]MH_I2C_Read... [09:25:50]Read from MH i2c: 01 07 00 F7 1F 00 00 00 00 00 FF 0F 2B [09:25:50]process_action close_receipt done [09:25:50]requested_data is exist [09:25:50]produce_requested_data [09:25:50]requested_item fm.sn is exist - process it [09:25:50]wFMCommunicate request_size=4 [09:25:50]MH_SAM_APDU [09:25:50]CAPDU: 80 11 00 00 [09:25:50]Write to MH i2c: E2 08 00 F8 1F 80 11 00 00 00 00 00 00 91 [09:25:50]Write i2c OK [09:25:50]MH_I2C_Read... [09:25:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:50]Read from MH i2c: E2 [09:25:50]MH_I2C_Read... [09:25:50]Read from MH i2c: E2 17 00 [09:25:50]MH_I2C_Read... [09:25:50]Read from MH i2c: E2 17 00 F8 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E6 [09:25:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:25:50]wFMCommunicate OK [09:25:50]requested_item fd.num is exist - process it [09:25:50]SAM_PROTO_GetFieldsCounters [09:25:50]wFMCommunicate request_size=4 [09:25:50]MH_SAM_APDU [09:25:50]CAPDU: 80 13 00 00 [09:25:50]Write to MH i2c: E2 08 00 F9 1F 80 13 00 00 00 00 00 00 94 [09:25:50]Write i2c OK [09:25:50]MH_I2C_Read... [09:25:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:50]Read from MH i2c: E2 [09:25:50]MH_I2C_Read... [09:25:50]Read from MH i2c: E2 62 00 [09:25:50]MH_I2C_Read... [09:25:50]Read from MH i2c: E2 62 00 F9 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5C 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [09:25:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5C 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:25:50]wFMCommunicate OK [09:25:50]SAM_PROTO_GetFieldsCounters done [09:25:50]requested_item shift.num is exist - process it [09:25:50]requested_item shift.opened is exist - process it [09:25:50]req_shift_opened [09:25:50]FM_GetShiftState [09:25:50]SAM_PROTO_GetShiftState [09:25:50]wFMCommunicate request_size=4 [09:25:50]MH_SAM_APDU [09:25:50]CAPDU: 80 13 01 00 [09:25:50]Write to MH i2c: E2 08 00 FA 1F 80 13 01 00 00 00 00 00 96 [09:25:50]Write i2c OK [09:25:50]MH_I2C_Read... [09:25:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:50]Read from MH i2c: E2 [09:25:50]MH_I2C_Read... [09:25:50]Read from MH i2c: E2 0E 00 [09:25:50]MH_I2C_Read... [09:25:50]Read from MH i2c: E2 0E 00 FA 1F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 A5 [09:25:50]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:25:50]wFMCommunicate OK [09:25:50]SAM_PROTO_GetShiftState done [09:25:50]FM_GetShiftState done [09:25:50]req_shift_opened done [09:25:50]requested_item shift.open_date is exist - process it [09:25:50]req_shift_open_date [09:25:50]req_shift_open_date done [09:25:50]produce_requested_data done [09:25:50]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201308,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:25:50]process_action_free close_receipt [09:25:50]json_value_free [09:25:50]json_value_free done [09:25:50]process_json_proto returns [09:25:50]Send response to host [09:25:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201308,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:25:50]free response buf [09:25:50]execute_script done [09:25:50]execute_script returns [09:25:50]free content buf [09:25:50]Sock 9.Close socket [09:25:50]Sock 9.Thread stoped [09:25:54]OFD Sender: No OFD packet to send [09:25:59]OFD Sender: No OFD packet to send [09:26:04]OFD Sender: No OFD packet to send [09:26:08]accept exits with 7 [09:26:08]New connection [09:26:08]New thread 3067559268 created [09:26:08]Thread 3067415908 joined [09:26:08]Waiting for new connection... [09:26:08] Sock 7.Parse request [09:26:08]Sock 7.Check first char [09:26:08]Sock 7.First char is OK [09:26:08]request: POST /json_proto HTTP/1.0 [09:26:08]Method: POST [09:26:08]URL: /json_proto [09:26:08]Method is POST - this is cgi request [09:26:08]url: /json_proto [09:26:08]query_string will be loaded in cgi processing [09:26:08]execute_cgi json_proto POST (null) [09:26:08]execute_cgi path=json_proto method=POST [09:26:08]POST find Content-Length [09:26:08]Host: 172.17.63.195:8080 [09:26:08]Content-Length: 678 [09:26:08]Content-Type: application/json [09:26:08] [09:26:08]POST finish read [09:26:08]Found Content-Length = 678 [09:26:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [09:26:08]execute_script... [09:26:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [09:26:08]POST & json_proto [09:26:08]process_json_proto [09:26:08]json parsed OK: [09:26:08]protocol is kg_v1.0 [09:26:08]action value=close_receipt [09:26:08]process_action close_receipt [09:26:08]cmd_close_receipt [09:26:08]MH_GetDate [09:26:08]Write to MH i2c: F0 00 00 FB 1F 09 [09:26:08]Write i2c OK [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: F0 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: F0 09 00 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: F0 09 00 FB 1F 00 B4 B5 1C 67 68 46 19 67 2C [09:26:08]GetLastDocTimeStamp 1729934750 [09:26:08]current date 1729934772 [09:26:08]FM_GetShiftState [09:26:08]SAM_PROTO_GetShiftState [09:26:08]wFMCommunicate request_size=4 [09:26:08]MH_SAM_APDU [09:26:08]CAPDU: 80 13 01 00 [09:26:08]Write to MH i2c: E2 08 00 FC 1F 80 13 01 00 00 00 00 00 98 [09:26:08]Write i2c OK [09:26:08]MH_I2C_Read... [09:26:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:08]Read from MH i2c: E2 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: E2 0E 00 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: E2 0E 00 FC 1F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 A7 [09:26:08]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:26:08]wFMCommunicate OK [09:26:08]SAM_PROTO_GetShiftState done [09:26:08]FM_GetShiftState done [09:26:08]opened in 1729900879 [09:26:08]opened+sec_in_day 1729987279 [09:26:08]quantity*price = 70044 [09:26:08]sum+1 = 70045 [09:26:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 71 26.10.2024 09:26 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201309 ФПД: 63333652136425 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092612&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201309&fm=63333652136425&tin=02508201610067®Number=0000000000091777&sum=70000 [09:26:09]StoreToDocumentArchive [09:26:09]shift 543 fd 201309 [09:26:09]save to /storage/0543/doc_00201309 [09:26:09]save last doc name /storage/0543/doc_00201309 to /storage/kkm_last_doc_name [09:26:09]save OK [09:26:09]Clear old archive folders... [09:26:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:26:09]tlvbuf is B6F3C090 [09:26:09]SAM_PROTO_ClearQueue [09:26:09]wFMCommunicate request_size=4 [09:26:09]MH_SAM_APDU [09:26:09]CAPDU: 80 09 00 00 [09:26:09]Write to MH i2c: E2 08 00 09 20 80 09 00 00 00 00 00 00 9B [09:26:09]Write i2c OK [09:26:09]MH_I2C_Read... [09:26:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:09]Read from MH i2c: E2 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 03 00 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 03 00 09 20 00 90 00 9D [09:26:09]RAPDU: 90 00 [09:26:09]wFMCommunicate OK [09:26:09]SAM_PROTO_ClearQueue done [09:26:09]KKMCreateOFDPacket [09:26:09]OFDProtocolAddRootSTLVToBuf [09:26:09]FM_MakeSignedData [09:26:09]FM_MakeSignedData [09:26:09]SAM_PROTO_SignData [09:26:09]wFMCommunicate request_size=4 [09:26:09]MH_SAM_APDU [09:26:09]CAPDU: 80 0D 01 02 [09:26:09]Write to MH i2c: E2 08 00 0A 20 80 0D 01 02 00 00 00 00 A3 [09:26:09]Write i2c OK [09:26:09]MH_I2C_Read... [09:26:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:09]Read from MH i2c: E2 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 03 00 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: E2 03 00 0A 20 00 90 00 9E [09:26:09]RAPDU: 90 00 [09:26:09]wFMCommunicate OK [09:26:09]wFMCommunicate request_size=255 [09:26:09]MH_SAM_APDU [09:26:09]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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 47 00 00 00 F4 03 04 00 B4 B5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5D 12 03 00 35 04 06 00 39 [09:26:09]Write to MH i2c: E2 02 01 0B 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 47 00 00 00 F4 03 04 00 B4 B5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5D 12 03 00 35 04 06 00 39 00 00 46 [09:26:09]Write i2c OK [09:26:09]MH_I2C_Read... [09:26:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:10]Read from MH i2c: E2 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: E2 03 00 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: E2 03 00 0B 20 00 90 00 9F [09:26:10]RAPDU: 90 00 [09:26:10]wFMCommunicate OK [09:26:10]wFMCommunicate request_size=10 [09:26:10]MH_SAM_APDU [09:26:10]CAPDU: 80 0D 02 02 05 9A 03 D6 81 E9 [09:26:10]Write to MH i2c: E2 0D 00 0C 20 80 0D 02 02 05 00 9A 03 D6 81 E9 00 00 8D [09:26:10]Write i2c OK [09:26:10]MH_I2C_Read... [09:26:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:10]Read from MH i2c: E2 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: E2 03 00 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: E2 03 00 0C 20 00 90 00 A0 [09:26:10]RAPDU: 90 00 [09:26:10]wFMCommunicate OK [09:26:10]wFMCommunicate request_size=4 [09:26:10]MH_SAM_APDU [09:26:10]CAPDU: 80 0D 03 02 [09:26:10]Write to MH i2c: E2 08 00 0D 20 80 0D 03 02 00 00 00 00 A8 [09:26:10]Write i2c OK [09:26:10]MH_I2C_Read... [09:26:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:10]Read from MH i2c: E2 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: E2 0B 00 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: E2 0B 00 0D 20 00 30 9F 92 15 AA 0F C0 5A 90 00 F2 [09:26:10]RAPDU: 30 9F 92 15 AA 0F C0 5A 90 00 [09:26:10]wFMCommunicate OK [09:26:10]SAM_PROTO_SignData done [09:26:10]FM_MakeSignedData done [09:26:10]CreateOFDProtocolMessage [09:26:10]wFMCommunicate request_size=4 [09:26:10]MH_SAM_APDU [09:26:10]CAPDU: 80 11 00 00 [09:26:10]Write to MH i2c: E2 08 00 0E 20 80 11 00 00 00 00 00 00 A8 [09:26:10]Write i2c OK [09:26:10]MH_I2C_Read... [09:26:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:10]Read from MH i2c: E2 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: E2 17 00 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: E2 17 00 0E 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FD [09:26:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:26:10]wFMCommunicate OK [09:26:10]CreateOFDProtocolMessage done [09:26:10]OFDSenderStorePacket 201309 [09:26:10]StoreOFDPacket docnum=201309 [09:26:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A4 6D 07 01 AD A1 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 47 00 00 00 F4 03 04 00 B4 B5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5D 12 03 00 35 04 06 00 39 9A 03 D6 81 E9 30 9F 92 15 AA 0F C0 5A [09:26:10]CheckFolder [09:26:10]dirname=/storage/ofd_packets [09:26:10]CheckFolder done [09:26:10]ProducePacketName [09:26:10]name=ofd_packets/00201309 [09:26:10]NVStorageSaveData ofd_packets/00201309 [09:26:10]File name is /storage/ofd_packets/00201309 [09:26:10]Write 301 bytes [09:26:10]NVStorageSaveData done [09:26:10]OFDSenderStorePacket done [09:26:10]KKMCreateOFDPacket done [09:26:10]NVStorageSaveData kkm_last_timestamp [09:26:10]File name is /storage/kkm_last_timestamp [09:26:10]Write 4 bytes [09:26:10]NVStorageSaveData done [09:26:10]ExternCall_PrintAddStr [09:26:10]wPrintStart [09:26:10]Write to MH i2c: 01 00 00 0F 20 2F [09:26:10]Write i2c OK [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: 01 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: 01 07 00 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: 01 07 00 0F 20 00 00 00 00 00 FF 0F 44 [09:26:10]RasterBufferAndPrint [09:26:10]line Счет N : (1)449056 [09:26:10]line ИНН: 02508201610067 [09:26:10]line Контрольно-Кассовый Чек [09:26:10]line ПРОДАЖА [09:26:10]line ТРК (МРК, ГНК) : 31 [09:26:10]line Товар: 2710124130 [09:26:10]line Аи-92-К-2 [09:26:10]line 10.470 * 66.90 [09:26:10]line = 700.44 [09:26:10]line НДС 12% НСП 1% [09:26:10]line > о реализуемом товаре [09:26:10]line ОКРУГЛЕНИЕ: -0.44 [09:26:10]line ИТОГО: 700.00 [09:26:10]line Внесено: 700.00 [09:26:10]line СДАЧА: 0.00 [09:26:10]line НСП 1% : 6.20 [09:26:10]line НДС 12% : 74.38 [09:26:10]line Наличными: 700.00 [09:26:10]line Безнал.: 0.00 [09:26:10]line Место: АЗС № 171 "Партнер Нефть" [09:26:10]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:26:10]line СНО: Общий режим [09:26:10]line Чек 71 26.10.2024 09:26 [09:26:10]line Смена: 543 ФФД: 1.0 [09:26:10]line ЗНМ: 0300000109 [09:26:10]line РНМ: 0000000000091777 [09:26:10]line Версия ККМ: 001 [09:26:10]line ФМ: 0000000000871756 [09:26:10]line ФД: 201309 [09:26:10]line ФПД: 63333652136425 [09:26:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092612&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201309&fm=63333652136425&tin=02508201610067®Number=0000000000091777&sum=70000 [09:26:10]written 0, free lines is 4095 [09:26:10]OFD Sender: Processing packet 201309 [packets to send 112, broken 111] [09:26:10]ProducePacketName [09:26:10]name=ofd_packets/00201309 [09:26:10]OFD Sender: To server: pG, [09:26:10]CommunicateWithHost lk.salyk.kg:30040 [09:26:10]ConnectInit lk.salyk.kg [09:26:10]Connected sock=10 [09:26:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A4 6D 07 01 AD A1 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 47 00 00 00 F4 03 04 00 B4 B5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5D 12 03 00 35 04 06 00 39 9A 03 D6 81 E9 30 9F 92 15 AA 0F C0 5A [09:26:10]Write to MH i2c: 01 00 00 3A 20 5A [09:26:10]Write i2c OK [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: 01 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: 01 07 00 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: 01 07 00 3A 20 00 00 00 00 00 9B 0C 08 [09:26:10]RasterBufferAndPrint [09:26:10]line [09:26:10]line [09:26:10]line [09:26:10]line [09:26:10]line [09:26:10]written 0, free lines is 3232 [09:26:10]MH_Cut [09:26:10]Write to MH i2c: D1 01 00 41 20 01 33 [09:26:10]Write i2c OK [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: D1 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: D1 01 00 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: D1 01 00 41 20 00 32 [09:26:10]Write to MH i2c: 01 00 00 42 20 62 [09:26:10]Write i2c OK [09:26:10]MH_I2C_Read... [09:26:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C5 66 47 00 75 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5D 12 03 00 F4 03 04 00 5D 61 1C 67 B6 04 01 00 00 C3 87 B7 87 7A 2A 66 62 [09:26:10]CommunicateWithHost err = 0 [09:26:10]CheckOFDResponse [09:26:10]1017 (14) - 77093643461234 [09:26:10]1041 (16) - 0000000000871756 [09:26:10]1040 (4) - 201309 [09:26:10]1012 (4) - 26.10.2024 03:26 [09:26:10]1206 (1) - 0 [09:26:10]OFD Sender: Remove packet 201309 [09:26:10]ProducePacketName [09:26:10]name=ofd_packets/00201309 [09:26:10]NVStorageDeleteData [09:26:11]OFD Sender: No OFD packet to send [09:26:11]*** Cut start [09:26:11]*** Purtial cut [09:26:11]*** Stage 1: CUTSNS_PIN = 1 [09:26:11]Read from MH i2c: 01 [09:26:11]MH_I2C_Read... [09:26:11]*** Stop cut motor [09:26:11]*** Cut end [09:26:11]Read from MH i2c: 01 07 00 [09:26:11]MH_I2C_Read... [09:26:11]Read from MH i2c: 01 07 00 42 20 00 00 00 00 00 FF 0F 77 [09:26:11]process_action close_receipt done [09:26:11]requested_data is exist [09:26:11]produce_requested_data [09:26:11]requested_item fm.sn is exist - process it [09:26:11]wFMCommunicate request_size=4 [09:26:11]MH_SAM_APDU [09:26:11]CAPDU: 80 11 00 00 [09:26:11]Write to MH i2c: E2 08 00 43 20 80 11 00 00 00 00 00 00 DD [09:26:11]Write i2c OK [09:26:11]MH_I2C_Read... [09:26:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:11]Read from MH i2c: E2 [09:26:11]MH_I2C_Read... [09:26:11]Read from MH i2c: E2 17 00 [09:26:11]MH_I2C_Read... [09:26:11]Read from MH i2c: E2 17 00 43 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 32 [09:26:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:26:11]wFMCommunicate OK [09:26:11]requested_item fd.num is exist - process it [09:26:11]SAM_PROTO_GetFieldsCounters [09:26:11]wFMCommunicate request_size=4 [09:26:11]MH_SAM_APDU [09:26:11]CAPDU: 80 13 00 00 [09:26:11]Write to MH i2c: E2 08 00 44 20 80 13 00 00 00 00 00 00 E0 [09:26:11]Write i2c OK [09:26:11]MH_I2C_Read... [09:26:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:11]Read from MH i2c: E2 [09:26:11]MH_I2C_Read... [09:26:11]Read from MH i2c: E2 62 00 [09:26:11]MH_I2C_Read... [09:26:11]Read from MH i2c: E2 62 00 44 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5D 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [09:26:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5D 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:11]wFMCommunicate OK [09:26:11]SAM_PROTO_GetFieldsCounters done [09:26:11]requested_item shift.num is exist - process it [09:26:11]requested_item shift.opened is exist - process it [09:26:11]req_shift_opened [09:26:11]FM_GetShiftState [09:26:11]SAM_PROTO_GetShiftState [09:26:11]wFMCommunicate request_size=4 [09:26:11]MH_SAM_APDU [09:26:11]CAPDU: 80 13 01 00 [09:26:11]Write to MH i2c: E2 08 00 45 20 80 13 01 00 00 00 00 00 E2 [09:26:11]Write i2c OK [09:26:11]MH_I2C_Read... [09:26:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:12]Read from MH i2c: E2 [09:26:12]MH_I2C_Read... [09:26:12]Read from MH i2c: E2 0E 00 [09:26:12]MH_I2C_Read... [09:26:12]Read from MH i2c: E2 0E 00 45 20 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F1 [09:26:12]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:26:12]wFMCommunicate OK [09:26:12]SAM_PROTO_GetShiftState done [09:26:12]FM_GetShiftState done [09:26:12]req_shift_opened done [09:26:12]requested_item shift.open_date is exist - process it [09:26:12]req_shift_open_date [09:26:12]req_shift_open_date done [09:26:12]produce_requested_data done [09:26:12]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201309,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:26:12]process_action_free close_receipt [09:26:12]json_value_free [09:26:12]json_value_free done [09:26:12]process_json_proto returns [09:26:12]Send response to host [09:26:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201309,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:26:12]free response buf [09:26:12]execute_script done [09:26:12]execute_script returns [09:26:12]free content buf [09:26:12]Sock 7.Close socket [09:26:12]Sock 7.Thread stoped [09:26:16]OFD Sender: No OFD packet to send [09:26:21]OFD Sender: No OFD packet to send [09:26:26]OFD Sender: No OFD packet to send [09:26:27]accept exits with 9 [09:26:27]New connection [09:26:27]New thread 3067415908 created [09:26:27]Thread 3067559268 joined [09:26:27]Waiting for new connection... [09:26:27] Sock 9.Parse request [09:26:27]Sock 9.Check first char [09:26:27]Sock 9.First char is OK [09:26:27]request: POST /json_proto HTTP/1.0 [09:26:27]Method: POST [09:26:27]URL: /json_proto [09:26:27]Method is POST - this is cgi request [09:26:27]url: /json_proto [09:26:27]query_string will be loaded in cgi processing [09:26:27]execute_cgi json_proto POST (null) [09:26:27]execute_cgi path=json_proto method=POST [09:26:27]POST find Content-Length [09:26:27]Host: 172.17.63.195:8080 [09:26:27]Content-Length: 682 [09:26:27]Content-Type: application/json [09:26:27] [09:26:27]POST finish read [09:26:27]Found Content-Length = 682 [09:26:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:26:27]execute_script... [09:26:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:26:27]POST & json_proto [09:26:27]process_json_proto [09:26:27]json parsed OK: [09:26:27]protocol is kg_v1.0 [09:26:27]action value=close_receipt [09:26:27]process_action close_receipt [09:26:27]cmd_close_receipt [09:26:27]MH_GetDate [09:26:27]Write to MH i2c: F0 00 00 46 20 55 [09:26:27]Write i2c OK [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: F0 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: F0 09 00 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: F0 09 00 46 20 00 C7 B5 1C 67 68 46 19 67 8B [09:26:27]GetLastDocTimeStamp 1729934772 [09:26:27]current date 1729934791 [09:26:27]FM_GetShiftState [09:26:27]SAM_PROTO_GetShiftState [09:26:27]wFMCommunicate request_size=4 [09:26:27]MH_SAM_APDU [09:26:27]CAPDU: 80 13 01 00 [09:26:27]Write to MH i2c: E2 08 00 47 20 80 13 01 00 00 00 00 00 E4 [09:26:27]Write i2c OK [09:26:27]MH_I2C_Read... [09:26:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:27]Read from MH i2c: E2 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: E2 0E 00 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: E2 0E 00 47 20 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F3 [09:26:27]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:26:27]wFMCommunicate OK [09:26:27]SAM_PROTO_GetShiftState done [09:26:27]FM_GetShiftState done [09:26:27]opened in 1729900879 [09:26:27]opened+sec_in_day 1729987279 [09:26:27]quantity*price = 100015 [09:26:27]sum+1 = 100017 [09:26:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 72 26.10.2024 09:26 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201310 ФПД: 129618313245864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092631&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201310&fm=129618313245864&tin=02508201610067®Number=0000000000091777&sum=100000 [09:26:28]StoreToDocumentArchive [09:26:28]shift 543 fd 201310 [09:26:28]save to /storage/0543/doc_00201310 [09:26:28]save last doc name /storage/0543/doc_00201310 to /storage/kkm_last_doc_name [09:26:28]save OK [09:26:28]Clear old archive folders... [09:26:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:26:28]tlvbuf is 01777520 [09:26:28]SAM_PROTO_ClearQueue [09:26:28]wFMCommunicate request_size=4 [09:26:28]MH_SAM_APDU [09:26:28]CAPDU: 80 09 00 00 [09:26:28]Write to MH i2c: E2 08 00 54 20 80 09 00 00 00 00 00 00 E6 [09:26:28]Write i2c OK [09:26:28]MH_I2C_Read... [09:26:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:28]Read from MH i2c: E2 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: E2 03 00 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: E2 03 00 54 20 00 90 00 E8 [09:26:28]RAPDU: 90 00 [09:26:28]wFMCommunicate OK [09:26:28]SAM_PROTO_ClearQueue done [09:26:28]KKMCreateOFDPacket [09:26:28]OFDProtocolAddRootSTLVToBuf [09:26:28]FM_MakeSignedData [09:26:28]FM_MakeSignedData [09:26:28]SAM_PROTO_SignData [09:26:28]wFMCommunicate request_size=4 [09:26:28]MH_SAM_APDU [09:26:28]CAPDU: 80 0D 01 02 [09:26:28]Write to MH i2c: E2 08 00 55 20 80 0D 01 02 00 00 00 00 EE [09:26:28]Write i2c OK [09:26:28]MH_I2C_Read... [09:26:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:28]Read from MH i2c: E2 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: E2 03 00 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: E2 03 00 55 20 00 90 00 E9 [09:26:28]RAPDU: 90 00 [09:26:28]wFMCommunicate OK [09:26:28]wFMCommunicate request_size=255 [09:26:28]MH_SAM_APDU [09:26:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 48 00 00 00 F4 03 04 00 C7 B5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5E 12 03 00 35 04 06 00 75 [09:26:28]Write to MH i2c: E2 02 01 56 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 48 00 00 00 F4 03 04 00 C7 B5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5E 12 03 00 35 04 06 00 75 00 00 CC [09:26:28]Write i2c OK [09:26:28]MH_I2C_Read... [09:26:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:29]Read from MH i2c: E2 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: E2 03 00 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: E2 03 00 56 20 00 90 00 EA [09:26:29]RAPDU: 90 00 [09:26:29]wFMCommunicate OK [09:26:29]wFMCommunicate request_size=10 [09:26:29]MH_SAM_APDU [09:26:29]CAPDU: 80 0D 02 02 05 E3 1D 84 74 A8 [09:26:29]Write to MH i2c: E2 0D 00 57 20 80 0D 02 02 05 00 E3 1D 84 74 A8 00 00 9B [09:26:29]Write i2c OK [09:26:29]MH_I2C_Read... [09:26:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:29]Read from MH i2c: E2 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: E2 03 00 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: E2 03 00 57 20 00 90 00 EB [09:26:29]RAPDU: 90 00 [09:26:29]wFMCommunicate OK [09:26:29]wFMCommunicate request_size=4 [09:26:29]MH_SAM_APDU [09:26:29]CAPDU: 80 0D 03 02 [09:26:29]Write to MH i2c: E2 08 00 58 20 80 0D 03 02 00 00 00 00 F3 [09:26:29]Write i2c OK [09:26:29]MH_I2C_Read... [09:26:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:29]Read from MH i2c: E2 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: E2 0B 00 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: E2 0B 00 58 20 00 59 F2 4D 67 B6 AC CE AB 90 00 CE [09:26:29]RAPDU: 59 F2 4D 67 B6 AC CE AB 90 00 [09:26:29]wFMCommunicate OK [09:26:29]SAM_PROTO_SignData done [09:26:29]FM_MakeSignedData done [09:26:29]CreateOFDProtocolMessage [09:26:29]wFMCommunicate request_size=4 [09:26:29]MH_SAM_APDU [09:26:29]CAPDU: 80 11 00 00 [09:26:29]Write to MH i2c: E2 08 00 59 20 80 11 00 00 00 00 00 00 F3 [09:26:29]Write i2c OK [09:26:29]MH_I2C_Read... [09:26:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:29]Read from MH i2c: E2 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: E2 17 00 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: E2 17 00 59 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 48 [09:26:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:26:29]wFMCommunicate OK [09:26:29]CreateOFDProtocolMessage done [09:26:29]OFDSenderStorePacket 201310 [09:26:29]StoreOFDPacket docnum=201310 [09:26:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D2 35 07 01 85 68 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 32 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 48 00 00 00 F4 03 04 00 C7 B5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5E 12 03 00 35 04 06 00 75 E3 1D 84 74 A8 59 F2 4D 67 B6 AC CE AB [09:26:29]CheckFolder [09:26:29]dirname=/storage/ofd_packets [09:26:29]CheckFolder done [09:26:29]ProducePacketName [09:26:29]name=ofd_packets/00201310 [09:26:29]NVStorageSaveData ofd_packets/00201310 [09:26:29]File name is /storage/ofd_packets/00201310 [09:26:29]Write 301 bytes [09:26:29]NVStorageSaveData done [09:26:29]OFDSenderStorePacket done [09:26:29]KKMCreateOFDPacket done [09:26:29]NVStorageSaveData kkm_last_timestamp [09:26:29]File name is /storage/kkm_last_timestamp [09:26:29]Write 4 bytes [09:26:29]NVStorageSaveData done [09:26:29]ExternCall_PrintAddStr [09:26:29]wPrintStart [09:26:29]Write to MH i2c: 01 00 00 5A 20 7A [09:26:29]Write i2c OK [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: 01 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: 01 07 00 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: 01 07 00 5A 20 00 00 00 00 00 FF 0F 8F [09:26:29]RasterBufferAndPrint [09:26:29]line Счет N : (1)449057 [09:26:29]line ИНН: 02508201610067 [09:26:29]line Контрольно-Кассовый Чек [09:26:29]line ПРОДАЖА [09:26:29]line ТРК (МРК, ГНК) : 62 [09:26:29]line Товар: 2710124130 [09:26:29]line Аи-92-К-2 [09:26:29]line 14.950 * 66.90 [09:26:29]line = 1000.16 [09:26:29]line НДС 12% НСП 1% [09:26:29]line > о реализуемом товаре [09:26:29]line ОКРУГЛЕНИЕ: -0.16 [09:26:29]line ИТОГО: 1000.00 [09:26:29]line Внесено: 1000.00 [09:26:29]line СДАЧА: 0.00 [09:26:29]line НСП 1% : 8.85 [09:26:29]line НДС 12% : 106.21 [09:26:29]line Наличными: 1000.00 [09:26:29]line Безнал.: 0.00 [09:26:29]line Место: АЗС № 171 "Партнер Нефть" [09:26:29]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:26:29]line СНО: Общий режим [09:26:29]line Чек 72 26.10.2024 09:26 [09:26:29]line Смена: 543 ФФД: 1.0 [09:26:29]line ЗНМ: 0300000109 [09:26:29]line РНМ: 0000000000091777 [09:26:29]line Версия ККМ: 001 [09:26:29]line ФМ: 0000000000871756 [09:26:29]line ФД: 201310 [09:26:29]line ФПД: 129618313245864 [09:26:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092631&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201310&fm=129618313245864&tin=02508201610067®Number=0000000000091777&sum=100000 [09:26:29]OFD Sender: Processing packet 201310 [packets to send 112, broken 111] [09:26:29]ProducePacketName [09:26:29]name=ofd_packets/00201310 [09:26:29]OFD Sender: To server: pG, [09:26:29]CommunicateWithHost lk.salyk.kg:30040 [09:26:29]ConnectInit lk.salyk.kg [09:26:29]written 0, free lines is 4095 [09:26:29]Connected sock=10 [09:26:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D2 35 07 01 85 68 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 32 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 48 00 00 00 F4 03 04 00 C7 B5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5E 12 03 00 35 04 06 00 75 E3 1D 84 74 A8 59 F2 4D 67 B6 AC CE AB [09:26:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 50 0C 47 00 2A 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5E 12 03 00 F4 03 04 00 70 61 1C 67 B6 04 01 00 00 9F 14 BC F7 5F 2E 55 41 [09:26:30]CommunicateWithHost err = 0 [09:26:30]CheckOFDResponse [09:26:30]1017 (14) - 77093643461234 [09:26:30]1041 (16) - 0000000000871756 [09:26:30]1040 (4) - 201310 [09:26:30]1012 (4) - 26.10.2024 03:26 [09:26:30]1206 (1) - 0 [09:26:30]OFD Sender: Remove packet 201310 [09:26:30]ProducePacketName [09:26:30]name=ofd_packets/00201310 [09:26:30]NVStorageDeleteData [09:26:30]Write to MH i2c: 01 00 00 85 20 A5 [09:26:30]Write i2c OK [09:26:30]MH_I2C_Read... [09:26:30]Read from MH i2c: 01 [09:26:30]MH_I2C_Read... [09:26:30]Read from MH i2c: 01 07 00 [09:26:30]MH_I2C_Read... [09:26:30]Read from MH i2c: 01 07 00 85 20 00 00 00 00 00 96 0C 4E [09:26:30]RasterBufferAndPrint [09:26:30]line [09:26:30]line [09:26:30]line [09:26:30]line [09:26:30]line [09:26:30]written 0, free lines is 3228 [09:26:30]MH_Cut [09:26:30]Write to MH i2c: D1 01 00 8C 20 01 7E [09:26:30]Write i2c OK [09:26:30]MH_I2C_Read... [09:26:30]Read from MH i2c: D1 [09:26:30]MH_I2C_Read... [09:26:30]Read from MH i2c: D1 01 00 [09:26:30]MH_I2C_Read... [09:26:30]Read from MH i2c: D1 01 00 8C 20 00 7D [09:26:30]Write to MH i2c: 01 00 00 8D 20 AD [09:26:30]Write i2c OK [09:26:30]MH_I2C_Read... [09:26:30]OFD Sender: No OFD packet to send [09:26:30]*** Cut start [09:26:30]*** Purtial cut [09:26:30]*** Stage 1: CUTSNS_PIN = 1 [09:26:31]Read from MH i2c: 01 [09:26:31]MH_I2C_Read... [09:26:31]*** Stop cut motor [09:26:31]*** Cut end [09:26:31]Read from MH i2c: 01 07 00 [09:26:31]MH_I2C_Read... [09:26:31]Read from MH i2c: 01 07 00 8D 20 00 00 00 00 00 FF 0F C2 [09:26:31]process_action close_receipt done [09:26:31]requested_data is exist [09:26:31]produce_requested_data [09:26:31]requested_item fm.sn is exist - process it [09:26:31]wFMCommunicate request_size=4 [09:26:31]MH_SAM_APDU [09:26:31]CAPDU: 80 11 00 00 [09:26:31]Write to MH i2c: E2 08 00 8E 20 80 11 00 00 00 00 00 00 28 [09:26:31]Write i2c OK [09:26:31]MH_I2C_Read... [09:26:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:31]Read from MH i2c: E2 [09:26:31]MH_I2C_Read... [09:26:31]Read from MH i2c: E2 17 00 [09:26:31]MH_I2C_Read... [09:26:31]Read from MH i2c: E2 17 00 8E 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7D [09:26:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:26:31]wFMCommunicate OK [09:26:31]requested_item fd.num is exist - process it [09:26:31]SAM_PROTO_GetFieldsCounters [09:26:31]wFMCommunicate request_size=4 [09:26:31]MH_SAM_APDU [09:26:31]CAPDU: 80 13 00 00 [09:26:31]Write to MH i2c: E2 08 00 8F 20 80 13 00 00 00 00 00 00 2B [09:26:31]Write i2c OK [09:26:31]MH_I2C_Read... [09:26:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:31]Read from MH i2c: E2 [09:26:31]MH_I2C_Read... [09:26:31]Read from MH i2c: E2 62 00 [09:26:31]MH_I2C_Read... [09:26:31]Read from MH i2c: E2 62 00 8F 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5E 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [09:26:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5E 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:31]wFMCommunicate OK [09:26:31]SAM_PROTO_GetFieldsCounters done [09:26:31]requested_item shift.num is exist - process it [09:26:31]requested_item shift.opened is exist - process it [09:26:31]req_shift_opened [09:26:31]FM_GetShiftState [09:26:31]SAM_PROTO_GetShiftState [09:26:31]wFMCommunicate request_size=4 [09:26:31]MH_SAM_APDU [09:26:31]CAPDU: 80 13 01 00 [09:26:31]Write to MH i2c: E2 08 00 90 20 80 13 01 00 00 00 00 00 2D [09:26:31]Write i2c OK [09:26:31]MH_I2C_Read... [09:26:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:31]Read from MH i2c: E2 [09:26:31]MH_I2C_Read... [09:26:31]Read from MH i2c: E2 0E 00 [09:26:31]MH_I2C_Read... [09:26:31]Read from MH i2c: E2 0E 00 90 20 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 3C [09:26:31]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:26:31]wFMCommunicate OK [09:26:31]SAM_PROTO_GetShiftState done [09:26:31]FM_GetShiftState done [09:26:31]req_shift_opened done [09:26:31]requested_item shift.open_date is exist - process it [09:26:31]req_shift_open_date [09:26:31]req_shift_open_date done [09:26:31]produce_requested_data done [09:26:31]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201310,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:26:31]process_action_free close_receipt [09:26:31]json_value_free [09:26:31]json_value_free done [09:26:31]process_json_proto returns [09:26:31]Send response to host [09:26:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201310,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:26:31]free response buf [09:26:31]execute_script done [09:26:31]execute_script returns [09:26:31]free content buf [09:26:31]Sock 9.Close socket [09:26:31]Sock 9.Thread stoped [09:26:35]OFD Sender: No OFD packet to send [09:26:40]OFD Sender: No OFD packet to send [09:26:45]OFD Sender: No OFD packet to send [09:26:50]OFD Sender: No OFD packet to send [09:26:55]OFD Sender: No OFD packet to send [09:27:00]OFD Sender: No OFD packet to send [09:27:05]OFD Sender: No OFD packet to send [09:27:10]OFD Sender: No OFD packet to send [09:27:15]OFD Sender: No OFD packet to send [09:27:15]accept exits with 7 [09:27:15]New connection [09:27:15]New thread 3067559268 created [09:27:15]Thread 3067415908 joined [09:27:15]Waiting for new connection... [09:27:15] Sock 7.Parse request [09:27:15]Sock 7.Check first char [09:27:15]Sock 7.First char is OK [09:27:15]request: POST /json_proto HTTP/1.0 [09:27:15]Method: POST [09:27:15]URL: /json_proto [09:27:15]Method is POST - this is cgi request [09:27:15]url: /json_proto [09:27:15]query_string will be loaded in cgi processing [09:27:15]execute_cgi json_proto POST (null) [09:27:15]execute_cgi path=json_proto method=POST [09:27:15]POST find Content-Length [09:27:15]Host: 172.17.63.195:8080 [09:27:15]Content-Length: 677 [09:27:15]Content-Type: application/json [09:27:15] [09:27:15]POST finish read [09:27:15]Found Content-Length = 677 [09:27:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:27:15]execute_script... [09:27: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)449058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:27:15]POST & json_proto [09:27:15]process_json_proto [09:27:15]json parsed OK: [09:27:15]protocol is kg_v1.0 [09:27:15]action value=close_receipt [09:27:15]process_action close_receipt [09:27:15]cmd_close_receipt [09:27:15]MH_GetDate [09:27:15]Write to MH i2c: F0 00 00 91 20 A0 [09:27:15]Write i2c OK [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: F0 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: F0 09 00 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: F0 09 00 91 20 00 F7 B5 1C 67 68 46 19 67 06 [09:27:15]GetLastDocTimeStamp 1729934791 [09:27:15]current date 1729934839 [09:27:15]FM_GetShiftState [09:27:15]SAM_PROTO_GetShiftState [09:27:15]wFMCommunicate request_size=4 [09:27:15]MH_SAM_APDU [09:27:15]CAPDU: 80 13 01 00 [09:27:15]Write to MH i2c: E2 08 00 92 20 80 13 01 00 00 00 00 00 2F [09:27:15]Write i2c OK [09:27:15]MH_I2C_Read... [09:27:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:15]Read from MH i2c: E2 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: E2 0E 00 [09:27:15]MH_I2C_Read... [09:27:15]Read from MH i2c: E2 0E 00 92 20 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 3E [09:27:15]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:27:15]wFMCommunicate OK [09:27:15]SAM_PROTO_GetShiftState done [09:27:15]FM_GetShiftState done [09:27:15]opened in 1729900879 [09:27:15]opened+sec_in_day 1729987279 [09:27:15]quantity*price = 50041 [09:27:15]sum+1 = 50042 [09:27:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 73 26.10.2024 09:27 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201311 ФПД: 57658454530212 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092719&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201311&fm=57658454530212&tin=02508201610067®Number=0000000000091777&sum=50000 [09:27:16]StoreToDocumentArchive [09:27:16]shift 543 fd 201311 [09:27:16]save to /storage/0543/doc_00201311 [09:27:16]save last doc name /storage/0543/doc_00201311 to /storage/kkm_last_doc_name [09:27:16]save OK [09:27:16]Clear old archive folders... [09:27:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:27:16]tlvbuf is 0174BEE0 [09:27:16]SAM_PROTO_ClearQueue [09:27:16]wFMCommunicate request_size=4 [09:27:16]MH_SAM_APDU [09:27:16]CAPDU: 80 09 00 00 [09:27:16]Write to MH i2c: E2 08 00 9F 20 80 09 00 00 00 00 00 00 31 [09:27:16]Write i2c OK [09:27:16]MH_I2C_Read... [09:27:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:16]Read from MH i2c: E2 [09:27:16]MH_I2C_Read... [09:27:16]Read from MH i2c: E2 03 00 [09:27:16]MH_I2C_Read... [09:27:16]Read from MH i2c: E2 03 00 9F 20 00 90 00 33 [09:27:16]RAPDU: 90 00 [09:27:16]wFMCommunicate OK [09:27:16]SAM_PROTO_ClearQueue done [09:27:16]KKMCreateOFDPacket [09:27:16]OFDProtocolAddRootSTLVToBuf [09:27:16]FM_MakeSignedData [09:27:16]FM_MakeSignedData [09:27:16]SAM_PROTO_SignData [09:27:16]wFMCommunicate request_size=4 [09:27:16]MH_SAM_APDU [09:27:16]CAPDU: 80 0D 01 02 [09:27:16]Write to MH i2c: E2 08 00 A0 20 80 0D 01 02 00 00 00 00 39 [09:27:16]Write i2c OK [09:27:16]MH_I2C_Read... [09:27:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:16]Read from MH i2c: E2 [09:27:16]MH_I2C_Read... [09:27:16]Read from MH i2c: E2 03 00 [09:27:16]MH_I2C_Read... [09:27:16]Read from MH i2c: E2 03 00 A0 20 00 90 00 34 [09:27:16]RAPDU: 90 00 [09:27:16]wFMCommunicate OK [09:27:16]wFMCommunicate request_size=255 [09:27:16]MH_SAM_APDU [09:27:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 49 00 00 00 F4 03 04 00 F7 B5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5F 12 03 00 35 04 06 00 34 [09:27:16]Write to MH i2c: E2 02 01 A1 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 49 00 00 00 F4 03 04 00 F7 B5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5F 12 03 00 35 04 06 00 34 00 00 0E [09:27:16]Write i2c OK [09:27:16]MH_I2C_Read... [09:27:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:17]Read from MH i2c: E2 [09:27:17]MH_I2C_Read... [09:27:17]Read from MH i2c: E2 03 00 [09:27:17]MH_I2C_Read... [09:27:17]Read from MH i2c: E2 03 00 A1 20 00 90 00 35 [09:27:17]RAPDU: 90 00 [09:27:17]wFMCommunicate OK [09:27:17]wFMCommunicate request_size=10 [09:27:17]MH_SAM_APDU [09:27:17]CAPDU: 80 0D 02 02 05 70 A7 B3 58 A4 [09:27:17]Write to MH i2c: E2 0D 00 A2 20 80 0D 02 02 05 00 70 A7 B3 58 A4 00 00 0C [09:27:17]Write i2c OK [09:27:17]MH_I2C_Read... [09:27:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:17]Read from MH i2c: E2 [09:27:17]MH_I2C_Read... [09:27:17]Read from MH i2c: E2 03 00 [09:27:17]MH_I2C_Read... [09:27:17]Read from MH i2c: E2 03 00 A2 20 00 90 00 36 [09:27:17]RAPDU: 90 00 [09:27:17]wFMCommunicate OK [09:27:17]wFMCommunicate request_size=4 [09:27:17]MH_SAM_APDU [09:27:17]CAPDU: 80 0D 03 02 [09:27:17]Write to MH i2c: E2 08 00 A3 20 80 0D 03 02 00 00 00 00 3E [09:27:17]Write i2c OK [09:27:17]MH_I2C_Read... [09:27:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:17]Read from MH i2c: E2 [09:27:17]MH_I2C_Read... [09:27:17]Read from MH i2c: E2 0B 00 [09:27:17]MH_I2C_Read... [09:27:17]Read from MH i2c: E2 0B 00 A3 20 00 00 CD 7D 72 5E 1D 82 30 90 00 28 [09:27:17]RAPDU: 00 CD 7D 72 5E 1D 82 30 90 00 [09:27:17]wFMCommunicate OK [09:27:17]SAM_PROTO_SignData done [09:27:17]FM_MakeSignedData done [09:27:17]CreateOFDProtocolMessage [09:27:17]wFMCommunicate request_size=4 [09:27:17]MH_SAM_APDU [09:27:17]CAPDU: 80 11 00 00 [09:27:17]Write to MH i2c: E2 08 00 A4 20 80 11 00 00 00 00 00 00 3E [09:27:17]Write i2c OK [09:27:17]MH_I2C_Read... [09:27:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:17]Read from MH i2c: E2 [09:27:17]MH_I2C_Read... [09:27:17]Read from MH i2c: E2 17 00 [09:27:17]MH_I2C_Read... [09:27:17]Read from MH i2c: E2 17 00 A4 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 93 [09:27:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:27:17]wFMCommunicate OK [09:27:17]CreateOFDProtocolMessage done [09:27:17]OFDSenderStorePacket 201311 [09:27:17]StoreOFDPacket docnum=201311 [09:27:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 33 59 07 01 82 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 49 00 00 00 F4 03 04 00 F7 B5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5F 12 03 00 35 04 06 00 34 70 A7 B3 58 A4 00 CD 7D 72 5E 1D 82 30 [09:27:17]CheckFolder [09:27:17]dirname=/storage/ofd_packets [09:27:17]CheckFolder done [09:27:17]ProducePacketName [09:27:17]name=ofd_packets/00201311 [09:27:17]NVStorageSaveData ofd_packets/00201311 [09:27:17]File name is /storage/ofd_packets/00201311 [09:27:17]Write 301 bytes [09:27:17]NVStorageSaveData done [09:27:17]OFDSenderStorePacket done [09:27:17]KKMCreateOFDPacket done [09:27:17]NVStorageSaveData kkm_last_timestamp [09:27:17]File name is /storage/kkm_last_timestamp [09:27:17]Write 4 bytes [09:27:17]NVStorageSaveData done [09:27:17]ExternCall_PrintAddStr [09:27:17]wPrintStart [09:27:17]Write to MH i2c: 01 00 00 A5 20 C5 [09:27:17]Write i2c OK [09:27:17]MH_I2C_Read... [09:27:17]Read from MH i2c: 01 [09:27:17]MH_I2C_Read... [09:27:17]Read from MH i2c: 01 07 00 [09:27:17]MH_I2C_Read... [09:27:17]Read from MH i2c: 01 07 00 A5 20 00 00 00 00 00 FF 0F DA [09:27:17]RasterBufferAndPrint [09:27:17]line Счет N : (1)449058 [09:27:17]line ИНН: 02508201610067 [09:27:17]line Контрольно-Кассовый Чек [09:27:17]line ПРОДАЖА [09:27:17]line ТРК (МРК, ГНК) : 41 [09:27:17]line Товар: 2710124130 [09:27:17]line Аи-92-К-2 [09:27:17]line 7.480 * 66.90 [09:27:17]line = 500.41 [09:27:17]line НДС 12% НСП 1% [09:27:17]line > о реализуемом товаре [09:27:17]line ОКРУГЛЕНИЕ: -0.41 [09:27:17]line ИТОГО: 500.00 [09:27:17]line Внесено: 500.00 [09:27:17]line СДАЧА: 0.00 [09:27:17]line НСП 1% : 4.43 [09:27:17]line НДС 12% : 53.14 [09:27:17]line Наличными: 500.00 [09:27:17]line Безнал.: 0.00 [09:27:17]line Место: АЗС № 171 "Партнер Нефть" [09:27:17]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:27:17]line СНО: Общий режим [09:27:17]line Чек 73 26.10.2024 09:27 [09:27:17]line Смена: 543 ФФД: 1.0 [09:27:17]line ЗНМ: 0300000109 [09:27:17]line РНМ: 0000000000091777 [09:27:17]line Версия ККМ: 001 [09:27:17]line ФМ: 0000000000871756 [09:27:17]line ФД: 201311 [09:27:17]line ФПД: 57658454530212 [09:27:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092719&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201311&fm=57658454530212&tin=02508201610067®Number=0000000000091777&sum=50000 [09:27:17]OFD Sender: Processing packet 201311 [packets to send 112, broken 111] [09:27:17]ProducePacketName [09:27:17]name=ofd_packets/00201311 [09:27:17]OFD Sender: To server: pG, [09:27:17]CommunicateWithHost lk.salyk.kg:30040 [09:27:17]ConnectInit lk.salyk.kg [09:27:17]written 0, free lines is 4095 [09:27:17]Connected sock=10 [09:27:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 33 59 07 01 82 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 49 00 00 00 F4 03 04 00 F7 B5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5F 12 03 00 35 04 06 00 34 70 A7 B3 58 A4 00 CD 7D 72 5E 1D 82 30 [09:27:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 04 1C 47 00 62 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5F 12 03 00 F4 03 04 00 A0 61 1C 67 B6 04 01 00 00 02 97 D0 CB 5F 3D B2 DB [09:27:18]CommunicateWithHost err = 0 [09:27:18]CheckOFDResponse [09:27:18]1017 (14) - 77093643461234 [09:27:18]1041 (16) - 0000000000871756 [09:27:18]1040 (4) - 201311 [09:27:18]1012 (4) - 26.10.2024 03:27 [09:27:18]1206 (1) - 0 [09:27:18]OFD Sender: Remove packet 201311 [09:27:18]ProducePacketName [09:27:18]name=ofd_packets/00201311 [09:27:18]NVStorageDeleteData [09:27:18]Write to MH i2c: 01 00 00 D0 20 F0 [09:27:18]Write i2c OK [09:27:18]MH_I2C_Read... [09:27:18]Read from MH i2c: 01 [09:27:18]MH_I2C_Read... [09:27:18]Read from MH i2c: 01 07 00 [09:27:18]MH_I2C_Read... [09:27:18]Read from MH i2c: 01 07 00 D0 20 00 00 00 00 00 A9 0C AC [09:27:18]RasterBufferAndPrint [09:27:18]line [09:27:18]line [09:27:18]line [09:27:18]line [09:27:18]line [09:27:18]written 0, free lines is 3248 [09:27:18]MH_Cut [09:27:18]Write to MH i2c: D1 01 00 D7 20 01 C9 [09:27:18]Write i2c OK [09:27:18]MH_I2C_Read... [09:27:18]Read from MH i2c: D1 [09:27:18]MH_I2C_Read... [09:27:18]Read from MH i2c: D1 01 00 [09:27:18]MH_I2C_Read... [09:27:18]Read from MH i2c: D1 01 00 D7 20 00 C8 [09:27:18]Write to MH i2c: 01 00 00 D8 20 F8 [09:27:18]Write i2c OK [09:27:18]MH_I2C_Read... [09:27:18]OFD Sender: No OFD packet to send [09:27:19]*** Cut start [09:27:19]*** Purtial cut [09:27:19]*** Stage 1: CUTSNS_PIN = 1 [09:27:19]Read from MH i2c: 01 [09:27:19]MH_I2C_Read... [09:27:19]*** Stop cut motor [09:27:19]*** Cut end [09:27:19]Read from MH i2c: 01 07 00 [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: 01 07 00 D8 20 00 00 00 00 00 FF 0F 0D [09:27:19]process_action close_receipt done [09:27:19]requested_data is exist [09:27:19]produce_requested_data [09:27:19]requested_item fm.sn is exist - process it [09:27:19]wFMCommunicate request_size=4 [09:27:19]MH_SAM_APDU [09:27:19]CAPDU: 80 11 00 00 [09:27:19]Write to MH i2c: E2 08 00 D9 20 80 11 00 00 00 00 00 00 73 [09:27:19]Write i2c OK [09:27:19]MH_I2C_Read... [09:27:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:19]Read from MH i2c: E2 [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: E2 17 00 [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: E2 17 00 D9 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C8 [09:27:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:27:19]wFMCommunicate OK [09:27:19]requested_item fd.num is exist - process it [09:27:19]SAM_PROTO_GetFieldsCounters [09:27:19]wFMCommunicate request_size=4 [09:27:19]MH_SAM_APDU [09:27:19]CAPDU: 80 13 00 00 [09:27:19]Write to MH i2c: E2 08 00 DA 20 80 13 00 00 00 00 00 00 76 [09:27:19]Write i2c OK [09:27:19]MH_I2C_Read... [09:27:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:19]Read from MH i2c: E2 [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: E2 62 00 [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: E2 62 00 DA 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5F 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [09:27:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5F 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:27:19]wFMCommunicate OK [09:27:19]SAM_PROTO_GetFieldsCounters done [09:27:19]requested_item shift.num is exist - process it [09:27:19]requested_item shift.opened is exist - process it [09:27:19]req_shift_opened [09:27:19]FM_GetShiftState [09:27:19]SAM_PROTO_GetShiftState [09:27:19]wFMCommunicate request_size=4 [09:27:19]MH_SAM_APDU [09:27:19]CAPDU: 80 13 01 00 [09:27:19]Write to MH i2c: E2 08 00 DB 20 80 13 01 00 00 00 00 00 78 [09:27:19]Write i2c OK [09:27:19]MH_I2C_Read... [09:27:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:19]Read from MH i2c: E2 [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: E2 0E 00 [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: E2 0E 00 DB 20 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 87 [09:27:19]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:27:19]wFMCommunicate OK [09:27:19]SAM_PROTO_GetShiftState done [09:27:19]FM_GetShiftState done [09:27:19]req_shift_opened done [09:27:19]requested_item shift.open_date is exist - process it [09:27:19]req_shift_open_date [09:27:19]req_shift_open_date done [09:27:19]produce_requested_data done [09:27:19]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201311,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:27:19]process_action_free close_receipt [09:27:19]json_value_free [09:27:19]json_value_free done [09:27:19]process_json_proto returns [09:27:19]Send response to host [09:27:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201311,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:27:19]free response buf [09:27:19]execute_script done [09:27:19]execute_script returns [09:27:19]free content buf [09:27:19]Sock 7.Close socket [09:27:19]Sock 7.Thread stoped [09:27:23]OFD Sender: No OFD packet to send [09:27:28]OFD Sender: No OFD packet to send [09:27:33]OFD Sender: No OFD packet to send [09:27:38]OFD Sender: No OFD packet to send [09:27:43]OFD Sender: No OFD packet to send [09:27:48]OFD Sender: No OFD packet to send [09:27:53]OFD Sender: No OFD packet to send [09:27:58]OFD Sender: No OFD packet to send [09:27:59]accept exits with 9 [09:27:59]New connection [09:27:59]New thread 3067415908 created [09:27:59]Thread 3067559268 joined [09:27:59]Waiting for new connection... [09:27:59] Sock 9.Parse request [09:27:59]Sock 9.Check first char [09:27:59]Sock 9.First char is OK [09:27:59]request: POST /json_proto HTTP/1.0 [09:27:59]Method: POST [09:27:59]URL: /json_proto [09:27:59]Method is POST - this is cgi request [09:27:59]url: /json_proto [09:27:59]query_string will be loaded in cgi processing [09:27:59]execute_cgi json_proto POST (null) [09:27:59]execute_cgi path=json_proto method=POST [09:27:59]POST find Content-Length [09:27:59]Host: 172.17.63.195:8080 [09:27:59]Content-Length: 671 [09:27:59]Content-Type: application/json [09:27:59] [09:27:59]POST finish read [09:27:59]Found Content-Length = 671 [09:27:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "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" ] } } [09:27:59]execute_script... [09:27:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "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" ] } } [09:27:59]POST & json_proto [09:27:59]process_json_proto [09:27:59]json parsed OK: [09:27:59]protocol is kg_v1.0 [09:27:59]action value=close_receipt [09:27:59]process_action close_receipt [09:27:59]cmd_close_receipt [09:27:59]MH_GetDate [09:27:59]Write to MH i2c: F0 00 00 DC 20 EB [09:27:59]Write i2c OK [09:27:59]MH_I2C_Read... [09:27:59]Read from MH i2c: F0 [09:27:59]MH_I2C_Read... [09:27:59]Read from MH i2c: F0 09 00 [09:27:59]MH_I2C_Read... [09:27:59]Read from MH i2c: F0 09 00 DC 20 00 23 B6 1C 67 68 46 19 67 7E [09:27:59]GetLastDocTimeStamp 1729934839 [09:27:59]current date 1729934883 [09:27:59]FM_GetShiftState [09:27:59]SAM_PROTO_GetShiftState [09:27:59]wFMCommunicate request_size=4 [09:27:59]MH_SAM_APDU [09:27:59]CAPDU: 80 13 01 00 [09:27:59]Write to MH i2c: E2 08 00 DD 20 80 13 01 00 00 00 00 00 7A [09:27:59]Write i2c OK [09:27:59]MH_I2C_Read... [09:27:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:59]Read from MH i2c: E2 [09:27:59]MH_I2C_Read... [09:27:59]Read from MH i2c: E2 0E 00 [09:27:59]MH_I2C_Read... [09:27:59]Read from MH i2c: E2 0E 00 DD 20 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 89 [09:27:59]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:27:59]wFMCommunicate OK [09:27:59]SAM_PROTO_GetShiftState done [09:27:59]FM_GetShiftState done [09:27:59]opened in 1729900879 [09:27:59]opened+sec_in_day 1729987279 [09:27:59]quantity*price = 70041 [09:27:59]sum+1 = 70043 [09:27:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 74 26.10.2024 09:28 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201312 ФПД: 240083906327081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092803&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201312&fm=240083906327081&tin=02508201610067®Number=0000000000091777&sum=70000 [09:28:00]StoreToDocumentArchive [09:28:00]shift 543 fd 201312 [09:28:00]save to /storage/0543/doc_00201312 [09:28:00]save last doc name /storage/0543/doc_00201312 to /storage/kkm_last_doc_name [09:28:00]save OK [09:28:00]Clear old archive folders... [09:28:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:28:00]tlvbuf is 01777170 [09:28:00]SAM_PROTO_ClearQueue [09:28:00]wFMCommunicate request_size=4 [09:28:00]MH_SAM_APDU [09:28:00]CAPDU: 80 09 00 00 [09:28:00]Write to MH i2c: E2 08 00 EA 20 80 09 00 00 00 00 00 00 7C [09:28:00]Write i2c OK [09:28:00]MH_I2C_Read... [09:28:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:01]Read from MH i2c: E2 [09:28:01]MH_I2C_Read... [09:28:01]Read from MH i2c: E2 03 00 [09:28:01]MH_I2C_Read... [09:28:01]Read from MH i2c: E2 03 00 EA 20 00 90 00 7E [09:28:01]RAPDU: 90 00 [09:28:01]wFMCommunicate OK [09:28:01]SAM_PROTO_ClearQueue done [09:28:01]KKMCreateOFDPacket [09:28:01]OFDProtocolAddRootSTLVToBuf [09:28:01]FM_MakeSignedData [09:28:01]FM_MakeSignedData [09:28:01]SAM_PROTO_SignData [09:28:01]wFMCommunicate request_size=4 [09:28:01]MH_SAM_APDU [09:28:01]CAPDU: 80 0D 01 02 [09:28:01]Write to MH i2c: E2 08 00 EB 20 80 0D 01 02 00 00 00 00 84 [09:28:01]Write i2c OK [09:28:01]MH_I2C_Read... [09:28:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:01]Read from MH i2c: E2 [09:28:01]MH_I2C_Read... [09:28:01]Read from MH i2c: E2 03 00 [09:28:01]MH_I2C_Read... [09:28:01]Read from MH i2c: E2 03 00 EB 20 00 90 00 7F [09:28:01]RAPDU: 90 00 [09:28:01]wFMCommunicate OK [09:28:01]wFMCommunicate request_size=255 [09:28:01]MH_SAM_APDU [09:28:01]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 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 4A 00 00 00 F4 03 04 00 23 B6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 60 12 03 00 35 04 06 00 [09:28:01]Write to MH i2c: E2 02 01 EC 20 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 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 4A 00 00 00 F4 03 04 00 23 B6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 60 12 03 00 35 04 06 00 00 00 B2 [09:28:01]Write i2c OK [09:28:01]MH_I2C_Read... [09:28:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:01]Read from MH i2c: E2 [09:28:01]MH_I2C_Read... [09:28:01]Read from MH i2c: E2 03 00 [09:28:01]MH_I2C_Read... [09:28:01]Read from MH i2c: E2 03 00 EC 20 00 90 00 80 [09:28:01]RAPDU: 90 00 [09:28:01]wFMCommunicate OK [09:28:01]wFMCommunicate request_size=11 [09:28:01]MH_SAM_APDU [09:28:01]CAPDU: 80 0D 02 02 06 DA 5A E3 F3 F2 29 [09:28:01]Write to MH i2c: E2 0E 00 ED 20 80 0D 02 02 06 00 DA 5A E3 F3 F2 29 00 00 B8 [09:28:01]Write i2c OK [09:28:01]MH_I2C_Read... [09:28:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:01]Read from MH i2c: E2 [09:28:01]MH_I2C_Read... [09:28:01]Read from MH i2c: E2 03 00 [09:28:01]MH_I2C_Read... [09:28:01]Read from MH i2c: E2 03 00 ED 20 00 90 00 81 [09:28:01]RAPDU: 90 00 [09:28:01]wFMCommunicate OK [09:28:01]wFMCommunicate request_size=4 [09:28:01]MH_SAM_APDU [09:28:01]CAPDU: 80 0D 03 02 [09:28:01]Write to MH i2c: E2 08 00 EE 20 80 0D 03 02 00 00 00 00 89 [09:28:01]Write i2c OK [09:28:01]MH_I2C_Read... [09:28:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:01]Read from MH i2c: E2 [09:28:01]MH_I2C_Read... [09:28:01]Read from MH i2c: E2 0B 00 [09:28:01]MH_I2C_Read... [09:28:01]Read from MH i2c: E2 0B 00 EE 20 00 67 7F 74 7B 2D 35 9F DB 90 00 3B [09:28:01]RAPDU: 67 7F 74 7B 2D 35 9F DB 90 00 [09:28:01]wFMCommunicate OK [09:28:01]SAM_PROTO_SignData done [09:28:01]FM_MakeSignedData done [09:28:01]CreateOFDProtocolMessage [09:28:01]wFMCommunicate request_size=4 [09:28:01]MH_SAM_APDU [09:28:01]CAPDU: 80 11 00 00 [09:28:01]Write to MH i2c: E2 08 00 EF 20 80 11 00 00 00 00 00 00 89 [09:28:01]Write i2c OK [09:28:01]MH_I2C_Read... [09:28:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:01]Read from MH i2c: E2 [09:28:01]MH_I2C_Read... [09:28:01]Read from MH i2c: E2 17 00 [09:28:01]MH_I2C_Read... [09:28:01]Read from MH i2c: E2 17 00 EF 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DE [09:28:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:28:01]wFMCommunicate OK [09:28:01]CreateOFDProtocolMessage done [09:28:01]OFDSenderStorePacket 201312 [09:28:01]StoreOFDPacket docnum=201312 [09:28:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 9E 4E 08 01 5A DD 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 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 4A 00 00 00 F4 03 04 00 23 B6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 60 12 03 00 35 04 06 00 DA 5A E3 F3 F2 29 67 7F 74 7B 2D 35 9F DB [09:28:01]CheckFolder [09:28:01]dirname=/storage/ofd_packets [09:28:01]CheckFolder done [09:28:01]ProducePacketName [09:28:01]name=ofd_packets/00201312 [09:28:01]NVStorageSaveData ofd_packets/00201312 [09:28:01]File name is /storage/ofd_packets/00201312 [09:28:01]Write 302 bytes [09:28:01]NVStorageSaveData done [09:28:01]OFDSenderStorePacket done [09:28:01]KKMCreateOFDPacket done [09:28:01]NVStorageSaveData kkm_last_timestamp [09:28:01]File name is /storage/kkm_last_timestamp [09:28:01]Write 4 bytes [09:28:01]NVStorageSaveData done [09:28:01]ExternCall_PrintAddStr [09:28:01]wPrintStart [09:28:01]Write to MH i2c: 01 00 00 F0 20 10 [09:28:01]Write i2c OK [09:28:01]MH_I2C_Read... [09:28:01]Read from MH i2c: 01 [09:28:01]MH_I2C_Read... [09:28:01]Read from MH i2c: 01 07 00 [09:28:01]MH_I2C_Read... [09:28:01]Read from MH i2c: 01 07 00 F0 20 00 00 00 00 00 FF 0F 25 [09:28:01]RasterBufferAndPrint [09:28:01]line Счет N : (1)449059 [09:28:01]line ИНН: 02508201610067 [09:28:01]line Контрольно-Кассовый Чек [09:28:01]line ПРОДАЖА [09:28:01]line ТРК (МРК, ГНК) : 53 [09:28:01]line Товар: 2710124130 [09:28:01]line SUPER 92-К-5 [09:28:01]line 10.240 * 68.40 [09:28:01]line = 700.42 [09:28:01]line НДС 12% НСП 1% [09:28:01]line > о реализуемом товаре [09:28:01]line ОКРУГЛЕНИЕ: -0.42 [09:28:01]line ИТОГО: 700.00 [09:28:01]line Внесено: 700.00 [09:28:01]line СДАЧА: 0.00 [09:28:01]line НСП 1% : 6.20 [09:28:01]line НДС 12% : 74.38 [09:28:01]line Наличными: 700.00 [09:28:01]line Безнал.: 0.00 [09:28:01]line Место: АЗС № 171 "Партнер Нефть" [09:28:01]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:28:01]line СНО: Общий режим [09:28:01]line Чек 74 26.10.2024 09:28 [09:28:01]line Смена: 543 ФФД: 1.0 [09:28:01]line ЗНМ: 0300000109 [09:28:01]line РНМ: 0000000000091777 [09:28:01]line Версия ККМ: 001 [09:28:01]line ФМ: 0000000000871756 [09:28:01]line ФД: 201312 [09:28:01]line ФПД: 240083906327081 [09:28:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092803&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201312&fm=240083906327081&tin=02508201610067®Number=0000000000091777&sum=70000 [09:28:01]OFD Sender: Processing packet 201312 [packets to send 112, broken 111] [09:28:01]ProducePacketName [09:28:01]name=ofd_packets/00201312 [09:28:01]OFD Sender: To server: pG, [09:28:01]CommunicateWithHost lk.salyk.kg:30040 [09:28:01]ConnectInit lk.salyk.kg [09:28:01]written 0, free lines is 4095 [09:28:01]Connected sock=10 [09:28:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 9E 4E 08 01 5A DD 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 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 4A 00 00 00 F4 03 04 00 23 B6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 60 12 03 00 35 04 06 00 DA 5A E3 F3 F2 29 67 7F 74 7B 2D 35 9F DB [09:28:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 95 9F 47 00 0B 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 60 12 03 00 F4 03 04 00 CD 61 1C 67 B6 04 01 00 00 F8 04 CC 9D E4 95 A9 B0 [09:28:02]CommunicateWithHost err = 0 [09:28:02]CheckOFDResponse [09:28:02]1017 (14) - 77093643461234 [09:28:02]1041 (16) - 0000000000871756 [09:28:02]1040 (4) - 201312 [09:28:02]1012 (4) - 26.10.2024 03:28 [09:28:02]1206 (1) - 0 [09:28:02]OFD Sender: Remove packet 201312 [09:28:02]ProducePacketName [09:28:02]name=ofd_packets/00201312 [09:28:02]NVStorageDeleteData [09:28:02]Write to MH i2c: 01 00 00 1B 21 3C [09:28:02]Write i2c OK [09:28:02]MH_I2C_Read... [09:28:02]Read from MH i2c: 01 [09:28:02]MH_I2C_Read... [09:28:02]Read from MH i2c: 01 07 00 [09:28:02]MH_I2C_Read... [09:28:02]Read from MH i2c: 01 07 00 1B 21 00 00 00 00 00 99 0C E8 [09:28:02]RasterBufferAndPrint [09:28:02]line [09:28:02]line [09:28:02]line [09:28:02]line [09:28:02]line [09:28:02]written 0, free lines is 3229 [09:28:02]MH_Cut [09:28:02]Write to MH i2c: D1 01 00 22 21 01 15 [09:28:02]Write i2c OK [09:28:02]MH_I2C_Read... [09:28:02]Read from MH i2c: D1 [09:28:02]MH_I2C_Read... [09:28:02]Read from MH i2c: D1 01 00 [09:28:02]MH_I2C_Read... [09:28:02]Read from MH i2c: D1 01 00 22 21 00 14 [09:28:02]Write to MH i2c: 01 00 00 23 21 44 [09:28:02]Write i2c OK [09:28:02]MH_I2C_Read... [09:28:02]OFD Sender: No OFD packet to send [09:28:03]*** Cut start [09:28:03]*** Purtial cut [09:28:03]*** CUTSNS_PIN = 0 [09:28:03]*** Stage 1: CUTSNS_PIN = 1 [09:28:05]Read from MH i2c: 01 [09:28:05]MH_I2C_Read... [09:28:05]*** Stop cut motor [09:28:05]*** Cut end [09:28:05]Read from MH i2c: 01 07 00 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: 01 07 00 23 21 00 00 00 00 00 FF 0F 59 [09:28:05]process_action close_receipt done [09:28:05]requested_data is exist [09:28:05]produce_requested_data [09:28:05]requested_item fm.sn is exist - process it [09:28:05]wFMCommunicate request_size=4 [09:28:05]MH_SAM_APDU [09:28:05]CAPDU: 80 11 00 00 [09:28:05]Write to MH i2c: E2 08 00 24 21 80 11 00 00 00 00 00 00 BF [09:28:05]Write i2c OK [09:28:05]MH_I2C_Read... [09:28:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:05]Read from MH i2c: E2 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 17 00 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 17 00 24 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 14 [09:28:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:28:05]wFMCommunicate OK [09:28:05]requested_item fd.num is exist - process it [09:28:05]SAM_PROTO_GetFieldsCounters [09:28:05]wFMCommunicate request_size=4 [09:28:05]MH_SAM_APDU [09:28:05]CAPDU: 80 13 00 00 [09:28:05]Write to MH i2c: E2 08 00 25 21 80 13 00 00 00 00 00 00 C2 [09:28:05]Write i2c OK [09:28:05]MH_I2C_Read... [09:28:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:05]Read from MH i2c: E2 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 62 00 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 62 00 25 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 60 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [09:28:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 60 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:28:05]wFMCommunicate OK [09:28:05]SAM_PROTO_GetFieldsCounters done [09:28:05]requested_item shift.num is exist - process it [09:28:05]requested_item shift.opened is exist - process it [09:28:05]req_shift_opened [09:28:05]FM_GetShiftState [09:28:05]SAM_PROTO_GetShiftState [09:28:05]wFMCommunicate request_size=4 [09:28:05]MH_SAM_APDU [09:28:05]CAPDU: 80 13 01 00 [09:28:05]Write to MH i2c: E2 08 00 26 21 80 13 01 00 00 00 00 00 C4 [09:28:05]Write i2c OK [09:28:05]MH_I2C_Read... [09:28:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:05]Read from MH i2c: E2 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 0E 00 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 0E 00 26 21 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D3 [09:28:05]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:28:05]wFMCommunicate OK [09:28:05]SAM_PROTO_GetShiftState done [09:28:05]FM_GetShiftState done [09:28:05]req_shift_opened done [09:28:05]requested_item shift.open_date is exist - process it [09:28:05]req_shift_open_date [09:28:05]req_shift_open_date done [09:28:05]produce_requested_data done [09:28:05]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201312,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:28:05]process_action_free close_receipt [09:28:05]json_value_free [09:28:05]json_value_free done [09:28:05]process_json_proto returns [09:28:05]Send response to host [09:28:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201312,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:28:05]free response buf [09:28:05]execute_script done [09:28:05]execute_script returns [09:28:05]free content buf [09:28:05]Sock 9.Close socket [09:28:05]Sock 9.Thread stoped [09:28:07]OFD Sender: No OFD packet to send [09:28:12]OFD Sender: No OFD packet to send [09:28:17]OFD Sender: No OFD packet to send [09:28:22]OFD Sender: No OFD packet to send [09:28:27]OFD Sender: No OFD packet to send [09:28:30]accept exits with 7 [09:28:30]New connection [09:28:30]New thread 3067559268 created [09:28:30]Thread 3067415908 joined [09:28:30]Waiting for new connection... [09:28:30] Sock 7.Parse request [09:28:30]Sock 7.Check first char [09:28:30]Sock 7.First char is OK [09:28:30]request: POST /json_proto HTTP/1.0 [09:28:30]Method: POST [09:28:30]URL: /json_proto [09:28:30]Method is POST - this is cgi request [09:28:30]url: /json_proto [09:28:30]query_string will be loaded in cgi processing [09:28:30]execute_cgi json_proto POST (null) [09:28:30]execute_cgi path=json_proto method=POST [09:28:30]POST find Content-Length [09:28:30]Host: 172.17.63.195:8080 [09:28:30]Content-Length: 632 [09:28:30]Content-Type: application/json [09:28:30] [09:28:30]POST finish read [09:28:30]Found Content-Length = 632 [09:28:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:30]execute_script... [09:28: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)449060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:30]POST & json_proto [09:28:30]process_json_proto [09:28:30]json parsed OK: [09:28:30]protocol is kg_v1.0 [09:28:30]action value=close_receipt [09:28:30]process_action close_receipt [09:28:30]cmd_close_receipt [09:28:30]MH_GetDate [09:28:30]Write to MH i2c: F0 00 00 27 21 37 [09:28:30]Write i2c OK [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: F0 [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: F0 09 00 [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: F0 09 00 27 21 00 41 B6 1C 67 68 46 19 67 E8 [09:28:30]GetLastDocTimeStamp 1729934883 [09:28:30]current date 1729934913 [09:28:30]FM_GetShiftState [09:28:30]SAM_PROTO_GetShiftState [09:28:30]wFMCommunicate request_size=4 [09:28:30]MH_SAM_APDU [09:28:30]CAPDU: 80 13 01 00 [09:28:30]Write to MH i2c: E2 08 00 28 21 80 13 01 00 00 00 00 00 C6 [09:28:30]Write i2c OK [09:28:30]MH_I2C_Read... [09:28:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:30]Read from MH i2c: E2 [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: E2 0E 00 [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: E2 0E 00 28 21 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D5 [09:28:30]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:28:30]wFMCommunicate OK [09:28:30]SAM_PROTO_GetShiftState done [09:28:30]FM_GetShiftState done [09:28:30]opened in 1729900879 [09:28:30]opened+sec_in_day 1729987279 [09:28:30]quantity*price = 50000 [09:28:30]sum+1 = 50001 [09:28:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 75 26.10.2024 09:28 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201313 ФПД: 166087310455299 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092833&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201313&fm=166087310455299&tin=02508201610067®Number=0000000000091777&sum=50000 [09:28:31]StoreToDocumentArchive [09:28:31]shift 543 fd 201313 [09:28:31]save to /storage/0543/doc_00201313 [09:28:31]save last doc name /storage/0543/doc_00201313 to /storage/kkm_last_doc_name [09:28:31]save OK [09:28:31]Clear old archive folders... [09:28:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:28:31]tlvbuf is B6FE9840 [09:28:31]SAM_PROTO_ClearQueue [09:28:31]wFMCommunicate request_size=4 [09:28:31]MH_SAM_APDU [09:28:31]CAPDU: 80 09 00 00 [09:28:31]Write to MH i2c: E2 08 00 35 21 80 09 00 00 00 00 00 00 C8 [09:28:31]Write i2c OK [09:28:31]MH_I2C_Read... [09:28:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:31]Read from MH i2c: E2 [09:28:31]MH_I2C_Read... [09:28:31]Read from MH i2c: E2 03 00 [09:28:31]MH_I2C_Read... [09:28:31]Read from MH i2c: E2 03 00 35 21 00 90 00 CA [09:28:31]RAPDU: 90 00 [09:28:31]wFMCommunicate OK [09:28:31]SAM_PROTO_ClearQueue done [09:28:31]KKMCreateOFDPacket [09:28:31]OFDProtocolAddRootSTLVToBuf [09:28:31]FM_MakeSignedData [09:28:31]FM_MakeSignedData [09:28:31]SAM_PROTO_SignData [09:28:31]wFMCommunicate request_size=4 [09:28:31]MH_SAM_APDU [09:28:31]CAPDU: 80 0D 01 02 [09:28:31]Write to MH i2c: E2 08 00 36 21 80 0D 01 02 00 00 00 00 D0 [09:28:31]Write i2c OK [09:28:31]MH_I2C_Read... [09:28:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:31]Read from MH i2c: E2 [09:28:31]MH_I2C_Read... [09:28:31]Read from MH i2c: E2 03 00 [09:28:31]MH_I2C_Read... [09:28:31]Read from MH i2c: E2 03 00 36 21 00 90 00 CB [09:28:31]RAPDU: 90 00 [09:28:31]wFMCommunicate OK [09:28:31]wFMCommunicate request_size=255 [09:28:31]MH_SAM_APDU [09:28:31]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 41 B6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 61 12 03 00 35 04 06 00 [09:28:31]Write to MH i2c: E2 02 01 37 21 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 41 B6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 61 12 03 00 35 04 06 00 00 00 1D [09:28:31]Write i2c OK [09:28:31]MH_I2C_Read... [09:28:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:31]Read from MH i2c: E2 [09:28:31]MH_I2C_Read... [09:28:31]Read from MH i2c: E2 03 00 [09:28:31]MH_I2C_Read... [09:28:31]Read from MH i2c: E2 03 00 37 21 00 90 00 CC [09:28:31]RAPDU: 90 00 [09:28:31]wFMCommunicate OK [09:28:31]wFMCommunicate request_size=11 [09:28:31]MH_SAM_APDU [09:28:31]CAPDU: 80 0D 02 02 06 97 0E 37 24 32 03 [09:28:31]Write to MH i2c: E2 0E 00 38 21 80 0D 02 02 06 00 97 0E 37 24 32 03 00 00 14 [09:28:31]Write i2c OK [09:28:31]MH_I2C_Read... [09:28:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:31]Read from MH i2c: E2 [09:28:31]MH_I2C_Read... [09:28:31]Read from MH i2c: E2 03 00 [09:28:31]MH_I2C_Read... [09:28:31]Read from MH i2c: E2 03 00 38 21 00 90 00 CD [09:28:31]RAPDU: 90 00 [09:28:31]wFMCommunicate OK [09:28:31]wFMCommunicate request_size=4 [09:28:31]MH_SAM_APDU [09:28:31]CAPDU: 80 0D 03 02 [09:28:31]Write to MH i2c: E2 08 00 39 21 80 0D 03 02 00 00 00 00 D5 [09:28:31]Write i2c OK [09:28:31]MH_I2C_Read... [09:28:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:31]Read from MH i2c: E2 [09:28:31]MH_I2C_Read... [09:28:31]Read from MH i2c: E2 0B 00 [09:28:31]MH_I2C_Read... [09:28:31]Read from MH i2c: E2 0B 00 39 21 00 CA B1 F7 13 BF 9F B6 35 90 00 A4 [09:28:31]RAPDU: CA B1 F7 13 BF 9F B6 35 90 00 [09:28:31]wFMCommunicate OK [09:28:31]SAM_PROTO_SignData done [09:28:31]FM_MakeSignedData done [09:28:31]CreateOFDProtocolMessage [09:28:31]wFMCommunicate request_size=4 [09:28:31]MH_SAM_APDU [09:28:31]CAPDU: 80 11 00 00 [09:28:31]Write to MH i2c: E2 08 00 3A 21 80 11 00 00 00 00 00 00 D5 [09:28:31]Write i2c OK [09:28:31]MH_I2C_Read... [09:28:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:31]Read from MH i2c: E2 [09:28:31]MH_I2C_Read... [09:28:31]Read from MH i2c: E2 17 00 [09:28:31]MH_I2C_Read... [09:28:31]Read from MH i2c: E2 17 00 3A 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2A [09:28:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:28:31]wFMCommunicate OK [09:28:31]CreateOFDProtocolMessage done [09:28:31]OFDSenderStorePacket 201313 [09:28:31]StoreOFDPacket docnum=201313 [09:28:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 DB B5 08 01 DE 75 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 41 B6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 61 12 03 00 35 04 06 00 97 0E 37 24 32 03 CA B1 F7 13 BF 9F B6 35 [09:28:31]CheckFolder [09:28:31]dirname=/storage/ofd_packets [09:28:31]CheckFolder done [09:28:31]ProducePacketName [09:28:31]name=ofd_packets/00201313 [09:28:31]NVStorageSaveData ofd_packets/00201313 [09:28:31]File name is /storage/ofd_packets/00201313 [09:28:31]Write 302 bytes [09:28:31]NVStorageSaveData done [09:28:31]OFDSenderStorePacket done [09:28:31]KKMCreateOFDPacket done [09:28:31]NVStorageSaveData kkm_last_timestamp [09:28:31]File name is /storage/kkm_last_timestamp [09:28:31]Write 4 bytes [09:28:31]NVStorageSaveData done [09:28:31]ExternCall_PrintAddStr [09:28:31]wPrintStart [09:28:31]Write to MH i2c: 01 00 00 3B 21 5C [09:28:31]Write i2c OK [09:28:31]MH_I2C_Read... [09:28:31]Read from MH i2c: 01 [09:28:31]MH_I2C_Read... [09:28:31]Read from MH i2c: 01 07 00 [09:28:31]MH_I2C_Read... [09:28:31]Read from MH i2c: 01 07 00 3B 21 00 00 00 00 00 FF 0F 71 [09:28:31]RasterBufferAndPrint [09:28:31]line Счет N : (1)449060 [09:28:31]line ИНН: 02508201610067 [09:28:31]line Контрольно-Кассовый Чек [09:28:31]line ПРОДАЖА [09:28:31]line ТРК (МРК, ГНК) : 32 [09:28:31]line Товар: 2710124130 [09:28:31]line SUPER 92-К-5 [09:28:31]line 7.310 * 68.40 [09:28:31]line = 500.00 [09:28:31]line НДС 12% НСП 1% [09:28:31]line > о реализуемом товаре [09:28:31]line ИТОГО: 500.00 [09:28:31]line НСП 1% : 4.42 [09:28:31]line НДС 12% : 53.10 [09:28:31]line Наличными: 500.00 [09:28:31]line Безнал.: 0.00 [09:28:31]line Место: АЗС № 171 "Партнер Нефть" [09:28:31]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:28:31]line СНО: Общий режим [09:28:31]line Чек 75 26.10.2024 09:28 [09:28:31]line Смена: 543 ФФД: 1.0 [09:28:31]line ЗНМ: 0300000109 [09:28:31]line РНМ: 0000000000091777 [09:28:31]line Версия ККМ: 001 [09:28:31]line ФМ: 0000000000871756 [09:28:31]line ФД: 201313 [09:28:31]line ФПД: 166087310455299 [09:28:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092833&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201313&fm=166087310455299&tin=02508201610067®Number=0000000000091777&sum=50000 [09:28:32]OFD Sender: Processing packet 201313 [packets to send 112, broken 111] [09:28:32]ProducePacketName [09:28:32]name=ofd_packets/00201313 [09:28:32]OFD Sender: To server: pG, [09:28:32]CommunicateWithHost lk.salyk.kg:30040 [09:28:32]ConnectInit lk.salyk.kg [09:28:32]written 0, free lines is 4095 [09:28:32]Connected sock=10 [09:28:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 DB B5 08 01 DE 75 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 41 B6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 61 12 03 00 35 04 06 00 97 0E 37 24 32 03 CA B1 F7 13 BF 9F B6 35 [09:28:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 34 19 47 00 66 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 61 12 03 00 F4 03 04 00 EB 61 1C 67 B6 04 01 00 00 35 80 C4 82 E5 B8 23 34 [09:28:32]CommunicateWithHost err = 0 [09:28:32]CheckOFDResponse [09:28:32]1017 (14) - 77093643461234 [09:28:32]1041 (16) - 0000000000871756 [09:28:32]1040 (4) - 201313 [09:28:32]1012 (4) - 26.10.2024 03:28 [09:28:32]1206 (1) - 0 [09:28:32]OFD Sender: Remove packet 201313 [09:28:32]ProducePacketName [09:28:32]name=ofd_packets/00201313 [09:28:32]NVStorageDeleteData [09:28:32]Write to MH i2c: 01 00 00 63 21 84 [09:28:32]Write i2c OK [09:28:32]MH_I2C_Read... [09:28:32]Read from MH i2c: 01 [09:28:32]MH_I2C_Read... [09:28:32]Read from MH i2c: 01 07 00 [09:28:32]MH_I2C_Read... [09:28:32]Read from MH i2c: 01 07 00 63 21 00 00 00 00 00 DD 0C 74 [09:28:32]RasterBufferAndPrint [09:28:32]line [09:28:32]line [09:28:32]line [09:28:32]line [09:28:32]line [09:28:32]written 0, free lines is 3298 [09:28:32]MH_Cut [09:28:32]Write to MH i2c: D1 01 00 6A 21 01 5D [09:28:32]Write i2c OK [09:28:32]MH_I2C_Read... [09:28:32]Read from MH i2c: D1 [09:28:32]MH_I2C_Read... [09:28:32]Read from MH i2c: D1 01 00 [09:28:32]MH_I2C_Read... [09:28:32]Read from MH i2c: D1 01 00 6A 21 00 5C [09:28:32]Write to MH i2c: 01 00 00 6B 21 8C [09:28:32]Write i2c OK [09:28:32]MH_I2C_Read... [09:28:33]OFD Sender: No OFD packet to send [09:28:33]*** Cut start [09:28:33]*** Purtial cut [09:28:33]*** Stage 1: CUTSNS_PIN = 1 [09:28:33]Read from MH i2c: 01 [09:28:33]MH_I2C_Read... [09:28:33]*** Stop cut motor [09:28:33]*** Cut end [09:28:33]Read from MH i2c: 01 07 00 [09:28:33]MH_I2C_Read... [09:28:33]Read from MH i2c: 01 07 00 6B 21 00 00 00 00 00 FF 0F A1 [09:28:33]process_action close_receipt done [09:28:33]requested_data is exist [09:28:33]produce_requested_data [09:28:33]requested_item fm.sn is exist - process it [09:28:33]wFMCommunicate request_size=4 [09:28:33]MH_SAM_APDU [09:28:33]CAPDU: 80 11 00 00 [09:28:33]Write to MH i2c: E2 08 00 6C 21 80 11 00 00 00 00 00 00 07 [09:28:33]Write i2c OK [09:28:33]MH_I2C_Read... [09:28:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:33]Read from MH i2c: E2 [09:28:33]MH_I2C_Read... [09:28:33]Read from MH i2c: E2 17 00 [09:28:33]MH_I2C_Read... [09:28:33]Read from MH i2c: E2 17 00 6C 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5C [09:28:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:28:33]wFMCommunicate OK [09:28:33]requested_item fd.num is exist - process it [09:28:33]SAM_PROTO_GetFieldsCounters [09:28:33]wFMCommunicate request_size=4 [09:28:33]MH_SAM_APDU [09:28:33]CAPDU: 80 13 00 00 [09:28:33]Write to MH i2c: E2 08 00 6D 21 80 13 00 00 00 00 00 00 0A [09:28:33]Write i2c OK [09:28:33]MH_I2C_Read... [09:28:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:33]Read from MH i2c: E2 [09:28:33]MH_I2C_Read... [09:28:33]Read from MH i2c: E2 62 00 [09:28:33]MH_I2C_Read... [09:28:33]Read from MH i2c: E2 62 00 6D 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 61 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [09:28:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 61 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:28:33]wFMCommunicate OK [09:28:33]SAM_PROTO_GetFieldsCounters done [09:28:33]requested_item shift.num is exist - process it [09:28:33]requested_item shift.opened is exist - process it [09:28:33]req_shift_opened [09:28:33]FM_GetShiftState [09:28:33]SAM_PROTO_GetShiftState [09:28:33]wFMCommunicate request_size=4 [09:28:33]MH_SAM_APDU [09:28:33]CAPDU: 80 13 01 00 [09:28:33]Write to MH i2c: E2 08 00 6E 21 80 13 01 00 00 00 00 00 0C [09:28:33]Write i2c OK [09:28:33]MH_I2C_Read... [09:28:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:34]Read from MH i2c: E2 [09:28:34]MH_I2C_Read... [09:28:34]Read from MH i2c: E2 0E 00 [09:28:34]MH_I2C_Read... [09:28:34]Read from MH i2c: E2 0E 00 6E 21 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 1B [09:28:34]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:28:34]wFMCommunicate OK [09:28:34]SAM_PROTO_GetShiftState done [09:28:34]FM_GetShiftState done [09:28:34]req_shift_opened done [09:28:34]requested_item shift.open_date is exist - process it [09:28:34]req_shift_open_date [09:28:34]req_shift_open_date done [09:28:34]produce_requested_data done [09:28:34]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201313,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:28:34]process_action_free close_receipt [09:28:34]json_value_free [09:28:34]json_value_free done [09:28:34]process_json_proto returns [09:28:34]Send response to host [09:28:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201313,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:28:34]free response buf [09:28:34]execute_script done [09:28:34]execute_script returns [09:28:34]free content buf [09:28:34]Sock 7.Close socket [09:28:34]Sock 7.Thread stoped [09:28:38]OFD Sender: No OFD packet to send [09:28:43]OFD Sender: No OFD packet to send [09:28:48]OFD Sender: No OFD packet to send [09:28:53]OFD Sender: No OFD packet to send [09:28:58]OFD Sender: No OFD packet to send [09:29:03]OFD Sender: No OFD packet to send [09:29:08]OFD Sender: No OFD packet to send [09:29:13]OFD Sender: No OFD packet to send [09:29:18]OFD Sender: No OFD packet to send [09:29:23]OFD Sender: No OFD packet to send [09:29:28]OFD Sender: No OFD packet to send [09:29:33]OFD Sender: No OFD packet to send [09:29:38]OFD Sender: No OFD packet to send [09:29:43]OFD Sender: No OFD packet to send [09:29:48]OFD Sender: No OFD packet to send [09:29:53]OFD Sender: No OFD packet to send [09:29:58]OFD Sender: No OFD packet to send [09:30:03]OFD Sender: No OFD packet to send [09:30:08]OFD Sender: No OFD packet to send [09:30:10]accept exits with 9 [09:30:10]New connection [09:30:10]New thread 3067415908 created [09:30:10]Thread 3067559268 joined [09:30:10]Waiting for new connection... [09:30:10] Sock 9.Parse request [09:30:10]Sock 9.Check first char [09:30:10]Sock 9.First char is OK [09:30:10]request: POST /json_proto HTTP/1.0 [09:30:10]Method: POST [09:30:10]URL: /json_proto [09:30:10]Method is POST - this is cgi request [09:30:10]url: /json_proto [09:30:10]query_string will be loaded in cgi processing [09:30:10]execute_cgi json_proto POST (null) [09:30:10]execute_cgi path=json_proto method=POST [09:30:10]POST find Content-Length [09:30:10]Host: 172.17.63.195:8080 [09:30:10]Content-Length: 632 [09:30:10]Content-Type: application/json [09:30:10] [09:30:10]POST finish read [09:30:10]Found Content-Length = 632 [09:30:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:10]execute_script... [09:30:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:10]POST & json_proto [09:30:10]process_json_proto [09:30:10]json parsed OK: [09:30:10]protocol is kg_v1.0 [09:30:10]action value=close_receipt [09:30:10]process_action close_receipt [09:30:10]cmd_close_receipt [09:30:10]MH_GetDate [09:30:10]Write to MH i2c: F0 00 00 6F 21 7F [09:30:10]Write i2c OK [09:30:10]MH_I2C_Read... [09:30:10]Read from MH i2c: F0 [09:30:10]MH_I2C_Read... [09:30:10]Read from MH i2c: F0 09 00 [09:30:10]MH_I2C_Read... [09:30:10]Read from MH i2c: F0 09 00 6F 21 00 A5 B6 1C 67 68 46 19 67 94 [09:30:10]GetLastDocTimeStamp 1729934913 [09:30:10]current date 1729935013 [09:30:10]FM_GetShiftState [09:30:10]SAM_PROTO_GetShiftState [09:30:10]wFMCommunicate request_size=4 [09:30:10]MH_SAM_APDU [09:30:10]CAPDU: 80 13 01 00 [09:30:10]Write to MH i2c: E2 08 00 70 21 80 13 01 00 00 00 00 00 0E [09:30:10]Write i2c OK [09:30:10]MH_I2C_Read... [09:30:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:10]Read from MH i2c: E2 [09:30:10]MH_I2C_Read... [09:30:10]Read from MH i2c: E2 0E 00 [09:30:10]MH_I2C_Read... [09:30:10]Read from MH i2c: E2 0E 00 70 21 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 1D [09:30:10]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:30:10]wFMCommunicate OK [09:30:10]SAM_PROTO_GetShiftState done [09:30:10]FM_GetShiftState done [09:30:10]opened in 1729900879 [09:30:10]opened+sec_in_day 1729987279 [09:30:10]quantity*price = 50000 [09:30:10]sum+1 = 50001 [09:30:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 76 26.10.2024 09:30 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201314 ФПД: 236991402095503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093014&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201314&fm=236991402095503&tin=02508201610067®Number=0000000000091777&sum=50000 [09:30:11]StoreToDocumentArchive [09:30:11]shift 543 fd 201314 [09:30:11]save to /storage/0543/doc_00201314 [09:30:11]save last doc name /storage/0543/doc_00201314 to /storage/kkm_last_doc_name [09:30:11]save OK [09:30:11]Clear old archive folders... [09:30:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:30:11]tlvbuf is B6F3C230 [09:30:11]SAM_PROTO_ClearQueue [09:30:11]wFMCommunicate request_size=4 [09:30:11]MH_SAM_APDU [09:30:11]CAPDU: 80 09 00 00 [09:30:11]Write to MH i2c: E2 08 00 7D 21 80 09 00 00 00 00 00 00 10 [09:30:11]Write i2c OK [09:30:11]MH_I2C_Read... [09:30:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:11]Read from MH i2c: E2 [09:30:11]MH_I2C_Read... [09:30:11]Read from MH i2c: E2 03 00 [09:30:11]MH_I2C_Read... [09:30:11]Read from MH i2c: E2 03 00 7D 21 00 90 00 12 [09:30:11]RAPDU: 90 00 [09:30:11]wFMCommunicate OK [09:30:11]SAM_PROTO_ClearQueue done [09:30:11]KKMCreateOFDPacket [09:30:11]OFDProtocolAddRootSTLVToBuf [09:30:11]FM_MakeSignedData [09:30:11]FM_MakeSignedData [09:30:11]SAM_PROTO_SignData [09:30:11]wFMCommunicate request_size=4 [09:30:11]MH_SAM_APDU [09:30:11]CAPDU: 80 0D 01 02 [09:30:11]Write to MH i2c: E2 08 00 7E 21 80 0D 01 02 00 00 00 00 18 [09:30:11]Write i2c OK [09:30:11]MH_I2C_Read... [09:30:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:11]Read from MH i2c: E2 [09:30:11]MH_I2C_Read... [09:30:11]Read from MH i2c: E2 03 00 [09:30:11]MH_I2C_Read... [09:30:11]Read from MH i2c: E2 03 00 7E 21 00 90 00 13 [09:30:11]RAPDU: 90 00 [09:30:11]wFMCommunicate OK [09:30:11]wFMCommunicate request_size=255 [09:30:11]MH_SAM_APDU [09:30:11]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 A6 B6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 62 12 03 00 35 04 06 00 [09:30:11]Write to MH i2c: E2 02 01 7F 21 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 A6 B6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 62 12 03 00 35 04 06 00 00 00 CC [09:30:11]Write i2c OK [09:30:11]MH_I2C_Read... [09:30:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:11]Read from MH i2c: E2 [09:30:11]MH_I2C_Read... [09:30:11]Read from MH i2c: E2 03 00 [09:30:11]MH_I2C_Read... [09:30:11]Read from MH i2c: E2 03 00 7F 21 00 90 00 14 [09:30:11]RAPDU: 90 00 [09:30:11]wFMCommunicate OK [09:30:11]wFMCommunicate request_size=11 [09:30:11]MH_SAM_APDU [09:30:11]CAPDU: 80 0D 02 02 06 D7 8A DC 56 33 8F [09:30:11]Write to MH i2c: E2 0E 00 80 21 80 0D 02 02 06 00 D7 8A DC 56 33 8F 00 00 7C [09:30:11]Write i2c OK [09:30:11]MH_I2C_Read... [09:30:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:11]Read from MH i2c: E2 [09:30:11]MH_I2C_Read... [09:30:11]Read from MH i2c: E2 03 00 [09:30:11]MH_I2C_Read... [09:30:11]Read from MH i2c: E2 03 00 80 21 00 90 00 15 [09:30:11]RAPDU: 90 00 [09:30:11]wFMCommunicate OK [09:30:11]wFMCommunicate request_size=4 [09:30:11]MH_SAM_APDU [09:30:11]CAPDU: 80 0D 03 02 [09:30:11]Write to MH i2c: E2 08 00 81 21 80 0D 03 02 00 00 00 00 1D [09:30:11]Write i2c OK [09:30:11]MH_I2C_Read... [09:30:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:12]Read from MH i2c: E2 [09:30:12]MH_I2C_Read... [09:30:12]Read from MH i2c: E2 0B 00 [09:30:12]MH_I2C_Read... [09:30:12]Read from MH i2c: E2 0B 00 81 21 00 46 E4 74 59 EE 0D 49 6A 90 00 C3 [09:30:12]RAPDU: 46 E4 74 59 EE 0D 49 6A 90 00 [09:30:12]wFMCommunicate OK [09:30:12]SAM_PROTO_SignData done [09:30:12]FM_MakeSignedData done [09:30:12]CreateOFDProtocolMessage [09:30:12]wFMCommunicate request_size=4 [09:30:12]MH_SAM_APDU [09:30:12]CAPDU: 80 11 00 00 [09:30:12]Write to MH i2c: E2 08 00 82 21 80 11 00 00 00 00 00 00 1D [09:30:12]Write i2c OK [09:30:12]MH_I2C_Read... [09:30:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:12]Read from MH i2c: E2 [09:30:12]MH_I2C_Read... [09:30:12]Read from MH i2c: E2 17 00 [09:30:12]MH_I2C_Read... [09:30:12]Read from MH i2c: E2 17 00 82 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 72 [09:30:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:30:12]wFMCommunicate OK [09:30:12]CreateOFDProtocolMessage done [09:30:12]OFDSenderStorePacket 201314 [09:30:12]StoreOFDPacket docnum=201314 [09:30:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 7D 3B 08 01 A4 80 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 A6 B6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 62 12 03 00 35 04 06 00 D7 8A DC 56 33 8F 46 E4 74 59 EE 0D 49 6A [09:30:12]CheckFolder [09:30:12]dirname=/storage/ofd_packets [09:30:12]CheckFolder done [09:30:12]ProducePacketName [09:30:12]name=ofd_packets/00201314 [09:30:12]NVStorageSaveData ofd_packets/00201314 [09:30:12]File name is /storage/ofd_packets/00201314 [09:30:12]Write 302 bytes [09:30:12]NVStorageSaveData done [09:30:12]OFDSenderStorePacket done [09:30:12]KKMCreateOFDPacket done [09:30:12]NVStorageSaveData kkm_last_timestamp [09:30:12]File name is /storage/kkm_last_timestamp [09:30:12]Write 4 bytes [09:30:12]NVStorageSaveData done [09:30:12]ExternCall_PrintAddStr [09:30:12]wPrintStart [09:30:12]Write to MH i2c: 01 00 00 83 21 A4 [09:30:12]Write i2c OK [09:30:12]MH_I2C_Read... [09:30:12]Read from MH i2c: 01 [09:30:12]MH_I2C_Read... [09:30:12]Read from MH i2c: 01 07 00 [09:30:12]MH_I2C_Read... [09:30:12]Read from MH i2c: 01 07 00 83 21 00 00 00 00 00 FF 0F B9 [09:30:12]RasterBufferAndPrint [09:30:12]line Счет N : (1)449062 [09:30:12]line ИНН: 02508201610067 [09:30:12]line Контрольно-Кассовый Чек [09:30:12]line ПРОДАЖА [09:30:12]line ТРК (МРК, ГНК) : 32 [09:30:12]line Товар: 2710124130 [09:30:12]line SUPER 92-К-5 [09:30:12]line 7.310 * 68.40 [09:30:12]line = 500.00 [09:30:12]line НДС 12% НСП 1% [09:30:12]line > о реализуемом товаре [09:30:12]line ИТОГО: 500.00 [09:30:12]line НСП 1% : 4.42 [09:30:12]line НДС 12% : 53.10 [09:30:12]line Наличными: 500.00 [09:30:12]line Безнал.: 0.00 [09:30:12]line Место: АЗС № 171 "Партнер Нефть" [09:30:12]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:30:12]line СНО: Общий режим [09:30:12]line Чек 76 26.10.2024 09:30 [09:30:12]line Смена: 543 ФФД: 1.0 [09:30:12]line ЗНМ: 0300000109 [09:30:12]line РНМ: 0000000000091777 [09:30:12]line Версия ККМ: 001 [09:30:12]line ФМ: 0000000000871756 [09:30:12]line ФД: 201314 [09:30:12]line ФПД: 236991402095503 [09:30:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093014&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201314&fm=236991402095503&tin=02508201610067®Number=0000000000091777&sum=50000 [09:30:12]OFD Sender: Processing packet 201314 [packets to send 112, broken 111] [09:30:12]ProducePacketName [09:30:12]name=ofd_packets/00201314 [09:30:12]OFD Sender: To server: pG, [09:30:12]CommunicateWithHost lk.salyk.kg:30040 [09:30:12]ConnectInit lk.salyk.kg [09:30:12]written 0, free lines is 4095 [09:30:12]Connected sock=10 [09:30:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 7D 3B 08 01 A4 80 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 A6 B6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 62 12 03 00 35 04 06 00 D7 8A DC 56 33 8F 46 E4 74 59 EE 0D 49 6A [09:30:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 4E DB 47 00 A4 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 62 12 03 00 F4 03 04 00 4F 62 1C 67 B6 04 01 00 00 E3 86 E6 E7 D6 A7 E0 68 [09:30:12]CommunicateWithHost err = 0 [09:30:12]CheckOFDResponse [09:30:12]1017 (14) - 77093643461234 [09:30:12]1041 (16) - 0000000000871756 [09:30:12]1040 (4) - 201314 [09:30:12]1012 (4) - 26.10.2024 03:30 [09:30:12]1206 (1) - 0 [09:30:12]OFD Sender: Remove packet 201314 [09:30:12]ProducePacketName [09:30:12]name=ofd_packets/00201314 [09:30:12]NVStorageDeleteData [09:30:12]Write to MH i2c: 01 00 00 AB 21 CC [09:30:12]Write i2c OK [09:30:12]MH_I2C_Read... [09:30:12]Read from MH i2c: 01 [09:30:12]MH_I2C_Read... [09:30:12]Read from MH i2c: 01 07 00 [09:30:12]MH_I2C_Read... [09:30:12]Read from MH i2c: 01 07 00 AB 21 00 00 00 00 00 E4 0C C3 [09:30:12]RasterBufferAndPrint [09:30:12]line [09:30:12]line [09:30:12]line [09:30:12]line [09:30:12]line [09:30:12]written 0, free lines is 3306 [09:30:12]MH_Cut [09:30:12]Write to MH i2c: D1 01 00 B2 21 01 A5 [09:30:12]Write i2c OK [09:30:12]MH_I2C_Read... [09:30:12]Read from MH i2c: D1 [09:30:12]MH_I2C_Read... [09:30:12]Read from MH i2c: D1 01 00 [09:30:12]MH_I2C_Read... [09:30:12]Read from MH i2c: D1 01 00 B2 21 00 A4 [09:30:12]Write to MH i2c: 01 00 00 B3 21 D4 [09:30:12]Write i2c OK [09:30:12]MH_I2C_Read... [09:30:13]OFD Sender: No OFD packet to send [09:30:13]*** Cut start [09:30:13]*** Purtial cut [09:30:13]*** Stage 1: CUTSNS_PIN = 1 [09:30:13]Read from MH i2c: 01 [09:30:13]MH_I2C_Read... [09:30:13]*** Stop cut motor [09:30:13]*** Cut end [09:30:13]Read from MH i2c: 01 07 00 [09:30:13]MH_I2C_Read... [09:30:13]Read from MH i2c: 01 07 00 B3 21 00 00 00 00 00 FF 0F E9 [09:30:13]process_action close_receipt done [09:30:13]requested_data is exist [09:30:13]produce_requested_data [09:30:13]requested_item fm.sn is exist - process it [09:30:13]wFMCommunicate request_size=4 [09:30:13]MH_SAM_APDU [09:30:13]CAPDU: 80 11 00 00 [09:30:13]Write to MH i2c: E2 08 00 B4 21 80 11 00 00 00 00 00 00 4F [09:30:13]Write i2c OK [09:30:13]MH_I2C_Read... [09:30:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:14]Read from MH i2c: E2 [09:30:14]MH_I2C_Read... [09:30:14]Read from MH i2c: E2 17 00 [09:30:14]MH_I2C_Read... [09:30:14]Read from MH i2c: E2 17 00 B4 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A4 [09:30:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:30:14]wFMCommunicate OK [09:30:14]requested_item fd.num is exist - process it [09:30:14]SAM_PROTO_GetFieldsCounters [09:30:14]wFMCommunicate request_size=4 [09:30:14]MH_SAM_APDU [09:30:14]CAPDU: 80 13 00 00 [09:30:14]Write to MH i2c: E2 08 00 B5 21 80 13 00 00 00 00 00 00 52 [09:30:14]Write i2c OK [09:30:14]MH_I2C_Read... [09:30:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:14]Read from MH i2c: E2 [09:30:14]MH_I2C_Read... [09:30:14]Read from MH i2c: E2 62 00 [09:30:14]MH_I2C_Read... [09:30:14]Read from MH i2c: E2 62 00 B5 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 62 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [09:30:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 62 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:30:14]wFMCommunicate OK [09:30:14]SAM_PROTO_GetFieldsCounters done [09:30:14]requested_item shift.num is exist - process it [09:30:14]requested_item shift.opened is exist - process it [09:30:14]req_shift_opened [09:30:14]FM_GetShiftState [09:30:14]SAM_PROTO_GetShiftState [09:30:14]wFMCommunicate request_size=4 [09:30:14]MH_SAM_APDU [09:30:14]CAPDU: 80 13 01 00 [09:30:14]Write to MH i2c: E2 08 00 B6 21 80 13 01 00 00 00 00 00 54 [09:30:14]Write i2c OK [09:30:14]MH_I2C_Read... [09:30:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:14]Read from MH i2c: E2 [09:30:14]MH_I2C_Read... [09:30:14]Read from MH i2c: E2 0E 00 [09:30:14]MH_I2C_Read... [09:30:14]Read from MH i2c: E2 0E 00 B6 21 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 63 [09:30:14]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:30:14]wFMCommunicate OK [09:30:14]SAM_PROTO_GetShiftState done [09:30:14]FM_GetShiftState done [09:30:14]req_shift_opened done [09:30:14]requested_item shift.open_date is exist - process it [09:30:14]req_shift_open_date [09:30:14]req_shift_open_date done [09:30:14]produce_requested_data done [09:30:14]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201314,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:30:14]process_action_free close_receipt [09:30:14]json_value_free [09:30:14]json_value_free done [09:30:14]process_json_proto returns [09:30:14]Send response to host [09:30:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201314,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:30:14]free response buf [09:30:14]execute_script done [09:30:14]execute_script returns [09:30:14]free content buf [09:30:14]Sock 9.Close socket [09:30:14]Sock 9.Thread stoped [09:30:14]accept exits with 7 [09:30:14]New connection [09:30:14]New thread 3067559268 created [09:30:14]Thread 3067415908 joined [09:30:14]Waiting for new connection... [09:30:14] Sock 7.Parse request [09:30:14]Sock 7.Check first char [09:30:14]Sock 7.First char is OK [09:30:14]request: POST /json_proto HTTP/1.0 [09:30:14]Method: POST [09:30:14]URL: /json_proto [09:30:14]Method is POST - this is cgi request [09:30:14]url: /json_proto [09:30:14]query_string will be loaded in cgi processing [09:30:14]execute_cgi json_proto POST (null) [09:30:14]execute_cgi path=json_proto method=POST [09:30:14]POST find Content-Length [09:30:14]Host: 172.17.63.195:8080 [09:30:14]Content-Length: 682 [09:30:14]Content-Type: application/json [09:30:14] [09:30:14]POST finish read [09:30:14]Found Content-Length = 682 [09:30:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:14]execute_script... [09:30:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:14]POST & json_proto [09:30:14]process_json_proto [09:30:14]json parsed OK: [09:30:14]protocol is kg_v1.0 [09:30:14]action value=close_receipt [09:30:14]process_action close_receipt [09:30:14]cmd_close_receipt [09:30:14]MH_GetDate [09:30:14]Write to MH i2c: F0 00 00 B7 21 C7 [09:30:14]Write i2c OK [09:30:14]MH_I2C_Read... [09:30:14]Read from MH i2c: F0 [09:30:14]MH_I2C_Read... [09:30:14]Read from MH i2c: F0 09 00 [09:30:14]MH_I2C_Read... [09:30:14]Read from MH i2c: F0 09 00 B7 21 00 AA B6 1C 67 68 46 19 67 E1 [09:30:14]GetLastDocTimeStamp 1729935014 [09:30:14]current date 1729935018 [09:30:14]FM_GetShiftState [09:30:14]SAM_PROTO_GetShiftState [09:30:14]wFMCommunicate request_size=4 [09:30:14]MH_SAM_APDU [09:30:14]CAPDU: 80 13 01 00 [09:30:14]Write to MH i2c: E2 08 00 B8 21 80 13 01 00 00 00 00 00 56 [09:30:14]Write i2c OK [09:30:14]MH_I2C_Read... [09:30:14]Read from MH i2c: E2 [09:30:14]MH_I2C_Read... [09:30:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:14]Read from MH i2c: E2 0E 00 [09:30:14]MH_I2C_Read... [09:30:14]Read from MH i2c: E2 0E 00 B8 21 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 65 [09:30:14]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:30:14]wFMCommunicate OK [09:30:14]SAM_PROTO_GetShiftState done [09:30:14]FM_GetShiftState done [09:30:14]opened in 1729900879 [09:30:14]opened+sec_in_day 1729987279 [09:30:14]quantity*price = 300064 [09:30:14]sum+1 = 300066 [09:30:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 77 26.10.2024 09:30 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201315 ФПД: 252877100469677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093018&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201315&fm=252877100469677&tin=02508201610067®Number=0000000000091777&sum=300000 [09:30:16]StoreToDocumentArchive [09:30:16]shift 543 fd 201315 [09:30:16]save to /storage/0543/doc_00201315 [09:30:16]save last doc name /storage/0543/doc_00201315 to /storage/kkm_last_doc_name [09:30:16]save OK [09:30:16]Clear old archive folders... [09:30:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:30:16]tlvbuf is B6E3CA80 [09:30:16]SAM_PROTO_ClearQueue [09:30:16]wFMCommunicate request_size=4 [09:30:16]MH_SAM_APDU [09:30:16]CAPDU: 80 09 00 00 [09:30:16]Write to MH i2c: E2 08 00 C5 21 80 09 00 00 00 00 00 00 58 [09:30:16]Write i2c OK [09:30:16]MH_I2C_Read... [09:30:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:16]Read from MH i2c: E2 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: E2 03 00 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: E2 03 00 C5 21 00 90 00 5A [09:30:16]RAPDU: 90 00 [09:30:16]wFMCommunicate OK [09:30:16]SAM_PROTO_ClearQueue done [09:30:16]KKMCreateOFDPacket [09:30:16]OFDProtocolAddRootSTLVToBuf [09:30:16]FM_MakeSignedData [09:30:16]FM_MakeSignedData [09:30:16]SAM_PROTO_SignData [09:30:16]wFMCommunicate request_size=4 [09:30:16]MH_SAM_APDU [09:30:16]CAPDU: 80 0D 01 02 [09:30:16]Write to MH i2c: E2 08 00 C6 21 80 0D 01 02 00 00 00 00 60 [09:30:16]Write i2c OK [09:30:16]MH_I2C_Read... [09:30:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:16]Read from MH i2c: E2 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: E2 03 00 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: E2 03 00 C6 21 00 90 00 5B [09:30:16]RAPDU: 90 00 [09:30:16]wFMCommunicate OK [09:30:16]wFMCommunicate request_size=255 [09:30:16]MH_SAM_APDU [09:30: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 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 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 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 AA B6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 63 12 03 00 35 04 06 00 E5 [09:30:16]Write to MH i2c: E2 02 01 C7 21 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 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 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 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 AA B6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 63 12 03 00 35 04 06 00 E5 00 00 D4 [09:30:16]Write i2c OK [09:30:16]MH_I2C_Read... [09:30:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:16]Read from MH i2c: E2 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: E2 03 00 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: E2 03 00 C7 21 00 90 00 5C [09:30:16]RAPDU: 90 00 [09:30:16]wFMCommunicate OK [09:30:16]wFMCommunicate request_size=10 [09:30:16]MH_SAM_APDU [09:30:16]CAPDU: 80 0D 02 02 05 FD 89 BE CD AD [09:30:16]Write to MH i2c: E2 0D 00 C8 21 80 0D 02 02 05 00 FD 89 BE CD AD 00 00 2B [09:30:16]Write i2c OK [09:30:16]MH_I2C_Read... [09:30:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:16]Read from MH i2c: E2 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: E2 03 00 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: E2 03 00 C8 21 00 90 00 5D [09:30:16]RAPDU: 90 00 [09:30:16]wFMCommunicate OK [09:30:16]wFMCommunicate request_size=4 [09:30:16]MH_SAM_APDU [09:30:16]CAPDU: 80 0D 03 02 [09:30:16]Write to MH i2c: E2 08 00 C9 21 80 0D 03 02 00 00 00 00 65 [09:30:16]Write i2c OK [09:30:16]MH_I2C_Read... [09:30:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:16]Read from MH i2c: E2 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: E2 0B 00 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: E2 0B 00 C9 21 00 39 3C B1 4E 85 4B 55 EE 90 00 ED [09:30:16]RAPDU: 39 3C B1 4E 85 4B 55 EE 90 00 [09:30:16]wFMCommunicate OK [09:30:16]SAM_PROTO_SignData done [09:30:16]FM_MakeSignedData done [09:30:16]CreateOFDProtocolMessage [09:30:16]wFMCommunicate request_size=4 [09:30:16]MH_SAM_APDU [09:30:16]CAPDU: 80 11 00 00 [09:30:16]Write to MH i2c: E2 08 00 CA 21 80 11 00 00 00 00 00 00 65 [09:30:16]Write i2c OK [09:30:16]MH_I2C_Read... [09:30:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:16]Read from MH i2c: E2 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: E2 17 00 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: E2 17 00 CA 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BA [09:30:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:30:16]wFMCommunicate OK [09:30:16]CreateOFDProtocolMessage done [09:30:16]OFDSenderStorePacket 201315 [09:30:16]StoreOFDPacket docnum=201315 [09:30:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 41 9A 07 01 74 66 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 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 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 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 AA B6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 63 12 03 00 35 04 06 00 E5 FD 89 BE CD AD 39 3C B1 4E 85 4B 55 EE [09:30:16]CheckFolder [09:30:16]dirname=/storage/ofd_packets [09:30:16]CheckFolder done [09:30:16]ProducePacketName [09:30:16]name=ofd_packets/00201315 [09:30:16]NVStorageSaveData ofd_packets/00201315 [09:30:16]File name is /storage/ofd_packets/00201315 [09:30:16]Write 301 bytes [09:30:16]NVStorageSaveData done [09:30:16]OFDSenderStorePacket done [09:30:16]KKMCreateOFDPacket done [09:30:16]NVStorageSaveData kkm_last_timestamp [09:30:16]File name is /storage/kkm_last_timestamp [09:30:16]Write 4 bytes [09:30:16]NVStorageSaveData done [09:30:16]ExternCall_PrintAddStr [09:30:16]wPrintStart [09:30:16]Write to MH i2c: 01 00 00 CB 21 EC [09:30:16]Write i2c OK [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: 01 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: 01 07 00 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: 01 07 00 CB 21 00 00 00 00 00 FF 0F 01 [09:30:16]RasterBufferAndPrint [09:30:16]line Счет N : (1)449061 [09:30:16]line ИНН: 02508201610067 [09:30:16]line Контрольно-Кассовый Чек [09:30:16]line ПРОДАЖА [09:30:16]line ТРК (МРК, ГНК) : 61 [09:30:16]line Товар: 2710124500 [09:30:16]line Аи-95-К-3 [09:30:16]line 40.440 * 74.20 [09:30:16]line = 3000.65 [09:30:16]line НДС 12% НСП 1% [09:30:16]line > о реализуемом товаре [09:30:16]line ОКРУГЛЕНИЕ: -0.65 [09:30:16]line ИТОГО: 3000.00 [09:30:16]line Внесено: 3000.00 [09:30:16]line СДАЧА: 0.00 [09:30:16]line НСП 1% : 26.55 [09:30:16]line НДС 12% : 318.65 [09:30:16]line Наличными: 3000.00 [09:30:16]line Безнал.: 0.00 [09:30:16]line Место: АЗС № 171 "Партнер Нефть" [09:30:16]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:30:16]line СНО: Общий режим [09:30:16]line Чек 77 26.10.2024 09:30 [09:30:16]line Смена: 543 ФФД: 1.0 [09:30:16]line ЗНМ: 0300000109 [09:30:16]line РНМ: 0000000000091777 [09:30:16]line Версия ККМ: 001 [09:30:16]line ФМ: 0000000000871756 [09:30:16]line ФД: 201315 [09:30:16]line ФПД: 252877100469677 [09:30:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093018&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201315&fm=252877100469677&tin=02508201610067®Number=0000000000091777&sum=300000 [09:30:16]written 0, free lines is 4095 [09:30:16]OFD Sender: Processing packet 201315 [packets to send 112, broken 111] [09:30:16]ProducePacketName [09:30:16]name=ofd_packets/00201315 [09:30:16]OFD Sender: To server: pG, [09:30:16]CommunicateWithHost lk.salyk.kg:30040 [09:30:16]ConnectInit lk.salyk.kg [09:30:16]Connected sock=10 [09:30:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 41 9A 07 01 74 66 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 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 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 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 AA B6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 63 12 03 00 35 04 06 00 E5 FD 89 BE CD AD 39 3C B1 4E 85 4B 55 EE [09:30:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 31 07 47 00 54 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 63 12 03 00 F4 03 04 00 54 62 1C 67 B6 04 01 00 00 62 90 D9 52 F3 EE 39 5A [09:30:17]CommunicateWithHost err = 0 [09:30:17]CheckOFDResponse [09:30:17]1017 (14) - 77093643461234 [09:30:17]1041 (16) - 0000000000871756 [09:30:17]1040 (4) - 201315 [09:30:17]1012 (4) - 26.10.2024 03:30 [09:30:17]1206 (1) - 0 [09:30:17]OFD Sender: Remove packet 201315 [09:30:17]ProducePacketName [09:30:17]name=ofd_packets/00201315 [09:30:17]NVStorageDeleteData [09:30:17]Write to MH i2c: 01 00 00 F6 21 17 [09:30:17]Write i2c OK [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: 01 [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: 01 07 00 [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: 01 07 00 F6 21 00 00 00 00 00 AA 0C D4 [09:30:17]RasterBufferAndPrint [09:30:17]line [09:30:17]line [09:30:17]line [09:30:17]line [09:30:17]line [09:30:17]written 0, free lines is 3255 [09:30:17]MH_Cut [09:30:17]Write to MH i2c: D1 01 00 FD 21 01 F0 [09:30:17]Write i2c OK [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: D1 [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: D1 01 00 [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: D1 01 00 FD 21 00 EF [09:30:17]Write to MH i2c: 01 00 00 FE 21 1F [09:30:17]Write i2c OK [09:30:17]MH_I2C_Read... [09:30:17]OFD Sender: No OFD packet to send [09:30:18]*** Cut start [09:30:18]*** Purtial cut [09:30:18]*** Stage 1: CUTSNS_PIN = 1 [09:30:18]Read from MH i2c: 01 [09:30:18]MH_I2C_Read... [09:30:18]*** Stop cut motor [09:30:18]*** Cut end [09:30:18]Read from MH i2c: 01 07 00 [09:30:18]MH_I2C_Read... [09:30:18]Read from MH i2c: 01 07 00 FE 21 00 00 00 00 00 FF 0F 34 [09:30:18]process_action close_receipt done [09:30:18]requested_data is exist [09:30:18]produce_requested_data [09:30:18]requested_item fm.sn is exist - process it [09:30:18]wFMCommunicate request_size=4 [09:30:18]MH_SAM_APDU [09:30:18]CAPDU: 80 11 00 00 [09:30:18]Write to MH i2c: E2 08 00 FF 21 80 11 00 00 00 00 00 00 9A [09:30:18]Write i2c OK [09:30:18]MH_I2C_Read... [09:30:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:18]Read from MH i2c: E2 [09:30:18]MH_I2C_Read... [09:30:18]Read from MH i2c: E2 17 00 [09:30:18]MH_I2C_Read... [09:30:18]Read from MH i2c: E2 17 00 FF 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EF [09:30:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:30:18]wFMCommunicate OK [09:30:18]requested_item fd.num is exist - process it [09:30:18]SAM_PROTO_GetFieldsCounters [09:30:18]wFMCommunicate request_size=4 [09:30:18]MH_SAM_APDU [09:30:18]CAPDU: 80 13 00 00 [09:30:18]Write to MH i2c: E2 08 00 00 22 80 13 00 00 00 00 00 00 9E [09:30:18]Write i2c OK [09:30:18]MH_I2C_Read... [09:30:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:18]Read from MH i2c: E2 [09:30:18]MH_I2C_Read... [09:30:18]Read from MH i2c: E2 62 00 [09:30:18]MH_I2C_Read... [09:30:18]Read from MH i2c: E2 62 00 00 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 63 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [09:30:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 63 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:30:18]wFMCommunicate OK [09:30:18]SAM_PROTO_GetFieldsCounters done [09:30:18]requested_item shift.num is exist - process it [09:30:18]requested_item shift.opened is exist - process it [09:30:18]req_shift_opened [09:30:18]FM_GetShiftState [09:30:18]SAM_PROTO_GetShiftState [09:30:18]wFMCommunicate request_size=4 [09:30:18]MH_SAM_APDU [09:30:18]CAPDU: 80 13 01 00 [09:30:18]Write to MH i2c: E2 08 00 01 22 80 13 01 00 00 00 00 00 A0 [09:30:18]Write i2c OK [09:30:18]MH_I2C_Read... [09:30:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:18]Read from MH i2c: E2 [09:30:18]MH_I2C_Read... [09:30:18]Read from MH i2c: E2 0E 00 [09:30:18]MH_I2C_Read... [09:30:18]Read from MH i2c: E2 0E 00 01 22 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 AF [09:30:18]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:30:18]wFMCommunicate OK [09:30:18]SAM_PROTO_GetShiftState done [09:30:18]FM_GetShiftState done [09:30:18]req_shift_opened done [09:30:18]requested_item shift.open_date is exist - process it [09:30:18]req_shift_open_date [09:30:18]req_shift_open_date done [09:30:18]produce_requested_data done [09:30:18]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201315,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:30:18]process_action_free close_receipt [09:30:18]json_value_free [09:30:18]json_value_free done [09:30:18]process_json_proto returns [09:30:18]Send response to host [09:30:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201315,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:30:18]free response buf [09:30:18]execute_script done [09:30:18]execute_script returns [09:30:18]free content buf [09:30:18]Sock 7.Close socket [09:30:18]Sock 7.Thread stoped [09:30:22]OFD Sender: No OFD packet to send [09:30:27]OFD Sender: No OFD packet to send [09:30:32]OFD Sender: No OFD packet to send [09:30:37]OFD Sender: No OFD packet to send [09:30:42]OFD Sender: No OFD packet to send [09:30:47]OFD Sender: No OFD packet to send [09:30:52]OFD Sender: No OFD packet to send [09:30:57]OFD Sender: No OFD packet to send [09:31:02]OFD Sender: No OFD packet to send [09:31:03]int [09:31:03]Write to MH i2c: 01 00 00 02 22 24 [09:31:03]*** FLAG_PRN_KEY set [09:31:03]Write i2c OK [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: 01 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: 01 07 00 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: 01 07 00 02 22 00 08 00 00 00 FF 0F 41 [09:31:03]state=0 [09:31:03]Key pressed [09:31:03]Feed [09:31:03]Write to MH i2c: D8 00 00 03 22 FC [09:31:03]Write i2c OK [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: D8 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: D8 01 00 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: D8 01 00 03 22 00 FD [09:31:03]int [09:31:03]Write to MH i2c: 01 00 00 04 22 26 [09:31:03]Write i2c OK [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: 01 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: 01 07 00 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: 01 07 00 04 22 00 48 00 00 00 3C 00 B1 [09:31:03]state=2 [09:31:03]Key pressed [09:31:03]int [09:31:03]Write to MH i2c: 01 00 00 05 22 27 [09:31:03]*** FLAG_PRN_KEY reset [09:31:03]Write i2c OK [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: 01 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: 01 07 00 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: 01 07 00 05 22 00 00 00 00 00 F5 0F 32 [09:31:03]state=2 [09:31:03]Stop feed [09:31:07]OFD Sender: No OFD packet to send [09:31:12]OFD Sender: No OFD packet to send [09:31:14]accept exits with 9 [09:31:14]New connection [09:31:14]New thread 3067415908 created [09:31:14]Thread 3067559268 joined [09:31:14]Waiting for new connection... [09:31:14] Sock 9.Parse request [09:31:14]Sock 9.Check first char [09:31:14]Sock 9.First char is OK [09:31:14]request: POST /json_proto HTTP/1.0 [09:31:14]Method: POST [09:31:14]URL: /json_proto [09:31:14]Method is POST - this is cgi request [09:31:14]url: /json_proto [09:31:14]query_string will be loaded in cgi processing [09:31:14]execute_cgi json_proto POST (null) [09:31:14]execute_cgi path=json_proto method=POST [09:31:14]POST find Content-Length [09:31:14]Host: 172.17.63.195:8080 [09:31:14]Content-Length: 677 [09:31:14]Content-Type: application/json [09:31:14] [09:31:14]POST finish read [09:31:14]Found Content-Length = 677 [09:31:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.390, "sum" : 360.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:14]execute_script... [09:31: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)449063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.390, "sum" : 360.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:14]POST & json_proto [09:31:14]process_json_proto [09:31:14]json parsed OK: [09:31:14]protocol is kg_v1.0 [09:31:14]action value=close_receipt [09:31:14]process_action close_receipt [09:31:14]cmd_close_receipt [09:31:14]MH_GetDate [09:31:14]Write to MH i2c: F0 00 00 06 22 17 [09:31:14]Write i2c OK [09:31:14]MH_I2C_Read... [09:31:14]Read from MH i2c: F0 [09:31:14]MH_I2C_Read... [09:31:14]Read from MH i2c: F0 09 00 [09:31:14]MH_I2C_Read... [09:31:14]Read from MH i2c: F0 09 00 06 22 00 E6 B6 1C 67 68 46 19 67 6D [09:31:14]GetLastDocTimeStamp 1729935018 [09:31:14]current date 1729935078 [09:31:14]FM_GetShiftState [09:31:14]SAM_PROTO_GetShiftState [09:31:14]wFMCommunicate request_size=4 [09:31:14]MH_SAM_APDU [09:31:14]CAPDU: 80 13 01 00 [09:31:14]Write to MH i2c: E2 08 00 07 22 80 13 01 00 00 00 00 00 A6 [09:31:14]Write i2c OK [09:31:14]MH_I2C_Read... [09:31:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:14]Read from MH i2c: E2 [09:31:14]MH_I2C_Read... [09:31:14]Read from MH i2c: E2 0E 00 [09:31:14]MH_I2C_Read... [09:31:14]Read from MH i2c: E2 0E 00 07 22 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 B5 [09:31:14]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:31:14]wFMCommunicate OK [09:31:14]SAM_PROTO_GetShiftState done [09:31:14]FM_GetShiftState done [09:31:14]opened in 1729900879 [09:31:14]opened+sec_in_day 1729987279 [09:31:14]quantity*price = 36059 [09:31:14]sum+1 = 36060 [09:31:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 360.00 Внесено: 360.00 СДАЧА: 0.00 НСП 1% : 3.19 НДС 12% : 38.29 Наличными: 360.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 78 26.10.2024 09:31 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201316 ФПД: 229763555068353 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093118&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201316&fm=229763555068353&tin=02508201610067®Number=0000000000091777&sum=36000 [09:31:15]StoreToDocumentArchive [09:31:15]shift 543 fd 201316 [09:31:15]save to /storage/0543/doc_00201316 [09:31:15]save last doc name /storage/0543/doc_00201316 to /storage/kkm_last_doc_name [09:31:15]save OK [09:31:15]Clear old archive folders... [09:31:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:31:15]tlvbuf is 017D1BD0 [09:31:15]SAM_PROTO_ClearQueue [09:31:15]wFMCommunicate request_size=4 [09:31:15]MH_SAM_APDU [09:31:15]CAPDU: 80 09 00 00 [09:31:15]Write to MH i2c: E2 08 00 14 22 80 09 00 00 00 00 00 00 A8 [09:31:15]Write i2c OK [09:31:15]MH_I2C_Read... [09:31:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:15]Read from MH i2c: E2 [09:31:15]MH_I2C_Read... [09:31:15]Read from MH i2c: E2 03 00 [09:31:15]MH_I2C_Read... [09:31:15]Read from MH i2c: E2 03 00 14 22 00 90 00 AA [09:31:15]RAPDU: 90 00 [09:31:15]wFMCommunicate OK [09:31:15]SAM_PROTO_ClearQueue done [09:31:15]KKMCreateOFDPacket [09:31:15]OFDProtocolAddRootSTLVToBuf [09:31:15]FM_MakeSignedData [09:31:15]FM_MakeSignedData [09:31:15]SAM_PROTO_SignData [09:31:15]wFMCommunicate request_size=4 [09:31:15]MH_SAM_APDU [09:31:15]CAPDU: 80 0D 01 02 [09:31:15]Write to MH i2c: E2 08 00 15 22 80 0D 01 02 00 00 00 00 B0 [09:31:15]Write i2c OK [09:31:15]MH_I2C_Read... [09:31:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:15]Read from MH i2c: E2 [09:31:15]MH_I2C_Read... [09:31:15]Read from MH i2c: E2 03 00 [09:31:15]MH_I2C_Read... [09:31:15]Read from MH i2c: E2 03 00 15 22 00 90 00 AB [09:31:15]RAPDU: 90 00 [09:31:15]wFMCommunicate OK [09:31:15]wFMCommunicate request_size=255 [09:31:15]MH_SAM_APDU [09:31: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 32 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DB 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 E6 B6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 64 12 03 00 35 04 06 00 D0 [09:31:15]Write to MH i2c: E2 02 01 16 22 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 32 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DB 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 E6 B6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 64 12 03 00 35 04 06 00 D0 00 00 F7 [09:31:15]Write i2c OK [09:31:15]MH_I2C_Read... [09:31:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:15]Read from MH i2c: E2 [09:31:15]MH_I2C_Read... [09:31:15]Read from MH i2c: E2 03 00 [09:31:15]MH_I2C_Read... [09:31:15]Read from MH i2c: E2 03 00 16 22 00 90 00 AC [09:31:15]RAPDU: 90 00 [09:31:15]wFMCommunicate OK [09:31:15]wFMCommunicate request_size=10 [09:31:15]MH_SAM_APDU [09:31:15]CAPDU: 80 0D 02 02 05 F7 FF 15 09 C1 [09:31:15]Write to MH i2c: E2 0D 00 17 22 80 0D 02 02 05 00 F7 FF 15 09 C1 00 00 92 [09:31:15]Write i2c OK [09:31:15]MH_I2C_Read... [09:31:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:16]Read from MH i2c: E2 [09:31:16]MH_I2C_Read... [09:31:16]Read from MH i2c: E2 03 00 [09:31:16]MH_I2C_Read... [09:31:16]Read from MH i2c: E2 03 00 17 22 00 90 00 AD [09:31:16]RAPDU: 90 00 [09:31:16]wFMCommunicate OK [09:31:16]wFMCommunicate request_size=4 [09:31:16]MH_SAM_APDU [09:31:16]CAPDU: 80 0D 03 02 [09:31:16]Write to MH i2c: E2 08 00 18 22 80 0D 03 02 00 00 00 00 B5 [09:31:16]Write i2c OK [09:31:16]MH_I2C_Read... [09:31:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:16]Read from MH i2c: E2 [09:31:16]MH_I2C_Read... [09:31:16]Read from MH i2c: E2 0B 00 [09:31:16]MH_I2C_Read... [09:31:16]Read from MH i2c: E2 0B 00 18 22 00 4F 21 DB CF C2 5C 02 21 90 00 11 [09:31:16]RAPDU: 4F 21 DB CF C2 5C 02 21 90 00 [09:31:16]wFMCommunicate OK [09:31:16]SAM_PROTO_SignData done [09:31:16]FM_MakeSignedData done [09:31:16]CreateOFDProtocolMessage [09:31:16]wFMCommunicate request_size=4 [09:31:16]MH_SAM_APDU [09:31:16]CAPDU: 80 11 00 00 [09:31:16]Write to MH i2c: E2 08 00 19 22 80 11 00 00 00 00 00 00 B5 [09:31:16]Write i2c OK [09:31:16]MH_I2C_Read... [09:31:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:16]Read from MH i2c: E2 [09:31:16]MH_I2C_Read... [09:31:16]Read from MH i2c: E2 17 00 [09:31:16]MH_I2C_Read... [09:31:16]Read from MH i2c: E2 17 00 19 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0A [09:31:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:31:16]wFMCommunicate OK [09:31:16]CreateOFDProtocolMessage done [09:31:16]OFDSenderStorePacket 201316 [09:31:16]StoreOFDPacket docnum=201316 [09:31:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 13 2F 07 01 DC 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 32 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DB 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 E6 B6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 64 12 03 00 35 04 06 00 D0 F7 FF 15 09 C1 4F 21 DB CF C2 5C 02 21 [09:31:16]CheckFolder [09:31:16]dirname=/storage/ofd_packets [09:31:16]CheckFolder done [09:31:16]ProducePacketName [09:31:16]name=ofd_packets/00201316 [09:31:16]NVStorageSaveData ofd_packets/00201316 [09:31:16]File name is /storage/ofd_packets/00201316 [09:31:16]Write 301 bytes [09:31:16]NVStorageSaveData done [09:31:16]OFDSenderStorePacket done [09:31:16]KKMCreateOFDPacket done [09:31:16]NVStorageSaveData kkm_last_timestamp [09:31:16]File name is /storage/kkm_last_timestamp [09:31:16]Write 4 bytes [09:31:16]NVStorageSaveData done [09:31:16]ExternCall_PrintAddStr [09:31:16]wPrintStart [09:31:16]Write to MH i2c: 01 00 00 1A 22 3C [09:31:16]Write i2c OK [09:31:16]MH_I2C_Read... [09:31:16]Read from MH i2c: 01 [09:31:16]MH_I2C_Read... [09:31:16]Read from MH i2c: 01 07 00 [09:31:16]MH_I2C_Read... [09:31:16]Read from MH i2c: 01 07 00 1A 22 00 00 00 00 00 FF 0F 51 [09:31:16]RasterBufferAndPrint [09:31:16]line Счет N : (1)449063 [09:31:16]line ИНН: 02508201610067 [09:31:16]line Контрольно-Кассовый Чек [09:31:16]line ПРОДАЖА [09:31:16]line ТРК (МРК, ГНК) : 41 [09:31:16]line Товар: 2710124130 [09:31:16]line Аи-92-К-2 [09:31:16]line 5.390 * 66.90 [09:31:16]line = 360.59 [09:31:16]line НДС 12% НСП 1% [09:31:16]line > о реализуемом товаре [09:31:16]line ОКРУГЛЕНИЕ: -0.59 [09:31:16]line ИТОГО: 360.00 [09:31:16]line Внесено: 360.00 [09:31:16]line СДАЧА: 0.00 [09:31:16]line НСП 1% : 3.19 [09:31:16]line НДС 12% : 38.29 [09:31:16]line Наличными: 360.00 [09:31:16]line Безнал.: 0.00 [09:31:16]line Место: АЗС № 171 "Партнер Нефть" [09:31:16]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:31:16]line СНО: Общий режим [09:31:16]line Чек 78 26.10.2024 09:31 [09:31:16]line Смена: 543 ФФД: 1.0 [09:31:16]line ЗНМ: 0300000109 [09:31:16]line РНМ: 0000000000091777 [09:31:16]line Версия ККМ: 001 [09:31:16]line ФМ: 0000000000871756 [09:31:16]line ФД: 201316 [09:31:16]line ФПД: 229763555068353 [09:31:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093118&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201316&fm=229763555068353&tin=02508201610067®Number=0000000000091777&sum=36000 [09:31:16]OFD Sender: Processing packet 201316 [packets to send 112, broken 111] [09:31:16]ProducePacketName [09:31:16]name=ofd_packets/00201316 [09:31:16]OFD Sender: To server: pG, [09:31:16]CommunicateWithHost lk.salyk.kg:30040 [09:31:16]ConnectInit lk.salyk.kg [09:31:16]written 0, free lines is 4095 [09:31:16]Connected sock=10 [09:31:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 13 2F 07 01 DC 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 32 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DB 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 E6 B6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 64 12 03 00 35 04 06 00 D0 F7 FF 15 09 C1 4F 21 DB CF C2 5C 02 21 [09:31:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 DF D5 47 00 A5 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 64 12 03 00 F4 03 04 00 8F 62 1C 67 B6 04 01 00 00 F4 6C 2E C3 45 49 90 FE [09:31:16]CommunicateWithHost err = 0 [09:31:16]CheckOFDResponse [09:31:16]1017 (14) - 77093643461234 [09:31:16]1041 (16) - 0000000000871756 [09:31:16]1040 (4) - 201316 [09:31:16]1012 (4) - 26.10.2024 03:31 [09:31:16]1206 (1) - 0 [09:31:16]OFD Sender: Remove packet 201316 [09:31:16]ProducePacketName [09:31:16]name=ofd_packets/00201316 [09:31:16]NVStorageDeleteData [09:31:16]Write to MH i2c: 01 00 00 45 22 67 [09:31:16]Write i2c OK [09:31:16]MH_I2C_Read... [09:31:16]Read from MH i2c: 01 [09:31:16]MH_I2C_Read... [09:31:16]Read from MH i2c: 01 07 00 [09:31:16]MH_I2C_Read... [09:31:16]Read from MH i2c: 01 07 00 45 22 00 00 00 00 00 B6 0C 30 [09:31:16]RasterBufferAndPrint [09:31:16]line [09:31:16]line [09:31:16]line [09:31:16]line [09:31:16]line [09:31:16]written 0, free lines is 3263 [09:31:16]MH_Cut [09:31:16]Write to MH i2c: D1 01 00 4C 22 01 40 [09:31:16]Write i2c OK [09:31:16]MH_I2C_Read... [09:31:16]Read from MH i2c: D1 [09:31:16]MH_I2C_Read... [09:31:16]Read from MH i2c: D1 01 00 [09:31:16]MH_I2C_Read... [09:31:16]Read from MH i2c: D1 01 00 4C 22 00 3F [09:31:16]Write to MH i2c: 01 00 00 4D 22 6F [09:31:16]Write i2c OK [09:31:16]MH_I2C_Read... [09:31:17]OFD Sender: No OFD packet to send [09:31:17]*** Cut start [09:31:17]*** Purtial cut [09:31:17]*** Stage 1: CUTSNS_PIN = 1 [09:31:18]Read from MH i2c: 01 [09:31:18]MH_I2C_Read... [09:31:18]*** Stop cut motor [09:31:18]*** Cut end [09:31:18]Read from MH i2c: 01 07 00 [09:31:18]MH_I2C_Read... [09:31:18]Read from MH i2c: 01 07 00 4D 22 00 00 00 00 00 FF 0F 84 [09:31:18]process_action close_receipt done [09:31:18]requested_data is exist [09:31:18]produce_requested_data [09:31:18]requested_item fm.sn is exist - process it [09:31:18]wFMCommunicate request_size=4 [09:31:18]MH_SAM_APDU [09:31:18]CAPDU: 80 11 00 00 [09:31:18]Write to MH i2c: E2 08 00 4E 22 80 11 00 00 00 00 00 00 EA [09:31:18]Write i2c OK [09:31:18]MH_I2C_Read... [09:31:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:18]Read from MH i2c: E2 [09:31:18]MH_I2C_Read... [09:31:18]Read from MH i2c: E2 17 00 [09:31:18]MH_I2C_Read... [09:31:18]Read from MH i2c: E2 17 00 4E 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3F [09:31:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:31:18]wFMCommunicate OK [09:31:18]requested_item fd.num is exist - process it [09:31:18]SAM_PROTO_GetFieldsCounters [09:31:18]wFMCommunicate request_size=4 [09:31:18]MH_SAM_APDU [09:31:18]CAPDU: 80 13 00 00 [09:31:18]Write to MH i2c: E2 08 00 4F 22 80 13 00 00 00 00 00 00 ED [09:31:18]Write i2c OK [09:31:18]MH_I2C_Read... [09:31:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:18]Read from MH i2c: E2 [09:31:18]MH_I2C_Read... [09:31:18]Read from MH i2c: E2 62 00 [09:31:18]MH_I2C_Read... [09:31:18]Read from MH i2c: E2 62 00 4F 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 64 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [09:31:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 64 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:31:18]wFMCommunicate OK [09:31:18]SAM_PROTO_GetFieldsCounters done [09:31:18]requested_item shift.num is exist - process it [09:31:18]requested_item shift.opened is exist - process it [09:31:18]req_shift_opened [09:31:18]FM_GetShiftState [09:31:18]SAM_PROTO_GetShiftState [09:31:18]wFMCommunicate request_size=4 [09:31:18]MH_SAM_APDU [09:31:18]CAPDU: 80 13 01 00 [09:31:18]Write to MH i2c: E2 08 00 50 22 80 13 01 00 00 00 00 00 EF [09:31:18]Write i2c OK [09:31:18]MH_I2C_Read... [09:31:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:18]Read from MH i2c: E2 [09:31:18]MH_I2C_Read... [09:31:18]Read from MH i2c: E2 0E 00 [09:31:18]MH_I2C_Read... [09:31:18]Read from MH i2c: E2 0E 00 50 22 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 FE [09:31:18]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:31:18]wFMCommunicate OK [09:31:18]SAM_PROTO_GetShiftState done [09:31:18]FM_GetShiftState done [09:31:18]req_shift_opened done [09:31:18]requested_item shift.open_date is exist - process it [09:31:18]req_shift_open_date [09:31:18]req_shift_open_date done [09:31:18]produce_requested_data done [09:31:18]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201316,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:31:18]process_action_free close_receipt [09:31:18]json_value_free [09:31:18]json_value_free done [09:31:18]process_json_proto returns [09:31:18]Send response to host [09:31:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201316,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:31:18]free response buf [09:31:18]execute_script done [09:31:18]execute_script returns [09:31:18]free content buf [09:31:18]Sock 9.Close socket [09:31:18]Sock 9.Thread stoped [09:31:19]int [09:31:19]Write to MH i2c: 01 00 00 51 22 73 [09:31:19]*** FLAG_PRN_KEY set [09:31:19]Write i2c OK [09:31:19]MH_I2C_Read... [09:31:19]Read from MH i2c: 01 [09:31:19]MH_I2C_Read... [09:31:19]Read from MH i2c: 01 07 00 [09:31:19]MH_I2C_Read... [09:31:19]Read from MH i2c: 01 07 00 51 22 00 08 00 00 00 FF 0F 90 [09:31:19]state=0 [09:31:19]Key pressed [09:31:19]Feed [09:31:19]Write to MH i2c: D8 00 00 52 22 4B [09:31:19]Write i2c OK [09:31:19]MH_I2C_Read... [09:31:19]Read from MH i2c: D8 [09:31:19]MH_I2C_Read... [09:31:19]Read from MH i2c: D8 01 00 [09:31:19]MH_I2C_Read... [09:31:19]Read from MH i2c: D8 01 00 52 22 00 4C [09:31:19]int [09:31:19]Write to MH i2c: 01 00 00 53 22 75 [09:31:19]Write i2c OK [09:31:19]MH_I2C_Read... [09:31:19]Read from MH i2c: 01 [09:31:19]MH_I2C_Read... [09:31:19]Read from MH i2c: 01 07 00 [09:31:19]MH_I2C_Read... [09:31:19]Read from MH i2c: 01 07 00 53 22 00 48 00 00 00 3C 00 00 [09:31:19]state=2 [09:31:19]Key pressed [09:31:19]int [09:31:19]Write to MH i2c: 01 00 00 54 22 76 [09:31:19]*** FLAG_PRN_KEY reset [09:31:19]Write i2c OK [09:31:19]MH_I2C_Read... [09:31:19]Read from MH i2c: 01 [09:31:19]MH_I2C_Read... [09:31:19]Read from MH i2c: 01 07 00 [09:31:19]MH_I2C_Read... [09:31:19]Read from MH i2c: 01 07 00 54 22 00 00 00 00 00 FF 0F 8B [09:31:19]state=2 [09:31:19]Stop feed [09:31:22]OFD Sender: No OFD packet to send [09:31:27]OFD Sender: No OFD packet to send [09:31:32]OFD Sender: No OFD packet to send [09:31:37]OFD Sender: No OFD packet to send [09:31:40]accept exits with 7 [09:31:40]New connection [09:31:40]New thread 3067559268 created [09:31:40]Thread 3067415908 joined [09:31:40]Waiting for new connection... [09:31:40] Sock 7.Parse request [09:31:40]Sock 7.Check first char [09:31:40]Sock 7.First char is OK [09:31:40]request: POST /json_proto HTTP/1.0 [09:31:40]Method: POST [09:31:40]URL: /json_proto [09:31:40]Method is POST - this is cgi request [09:31:40]url: /json_proto [09:31:40]query_string will be loaded in cgi processing [09:31:40]execute_cgi json_proto POST (null) [09:31:40]execute_cgi path=json_proto method=POST [09:31:40]POST find Content-Length [09:31:40]Host: 172.17.63.195:8080 [09:31:40]Content-Length: 682 [09:31:40]Content-Type: application/json [09:31:40] [09:31:40]POST finish read [09:31:40]Found Content-Length = 682 [09:31:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:31:40]execute_script... [09:31:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:31:40]POST & json_proto [09:31:40]process_json_proto [09:31:40]json parsed OK: [09:31:40]protocol is kg_v1.0 [09:31:40]action value=close_receipt [09:31:40]process_action close_receipt [09:31:40]cmd_close_receipt [09:31:40]MH_GetDate [09:31:40]Write to MH i2c: F0 00 00 55 22 66 [09:31:40]Write i2c OK [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: F0 [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: F0 09 00 [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: F0 09 00 55 22 00 00 B7 1C 67 68 46 19 67 D7 [09:31:40]GetLastDocTimeStamp 1729935078 [09:31:40]current date 1729935104 [09:31:40]FM_GetShiftState [09:31:40]SAM_PROTO_GetShiftState [09:31:40]wFMCommunicate request_size=4 [09:31:40]MH_SAM_APDU [09:31:40]CAPDU: 80 13 01 00 [09:31:40]Write to MH i2c: E2 08 00 56 22 80 13 01 00 00 00 00 00 F5 [09:31:40]Write i2c OK [09:31:40]MH_I2C_Read... [09:31:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:40]Read from MH i2c: E2 [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: E2 0E 00 [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: E2 0E 00 56 22 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 04 [09:31:40]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:31:40]wFMCommunicate OK [09:31:40]SAM_PROTO_GetShiftState done [09:31:40]FM_GetShiftState done [09:31:40]opened in 1729900879 [09:31:40]opened+sec_in_day 1729987279 [09:31:40]quantity*price = 100015 [09:31:40]sum+1 = 100017 [09:31:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 79 26.10.2024 09:31 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201317 ФПД: 190089540962273 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093144&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201317&fm=190089540962273&tin=02508201610067®Number=0000000000091777&sum=100000 [09:31:41]StoreToDocumentArchive [09:31:41]shift 543 fd 201317 [09:31:41]save to /storage/0543/doc_00201317 [09:31:41]save last doc name /storage/0543/doc_00201317 to /storage/kkm_last_doc_name [09:31:41]save OK [09:31:41]Clear old archive folders... [09:31:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:31:41]tlvbuf is 0174C480 [09:31:41]SAM_PROTO_ClearQueue [09:31:41]wFMCommunicate request_size=4 [09:31:41]MH_SAM_APDU [09:31:41]CAPDU: 80 09 00 00 [09:31:41]Write to MH i2c: E2 08 00 63 22 80 09 00 00 00 00 00 00 F7 [09:31:41]Write i2c OK [09:31:41]MH_I2C_Read... [09:31:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:41]Read from MH i2c: E2 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: E2 03 00 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: E2 03 00 63 22 00 90 00 F9 [09:31:41]RAPDU: 90 00 [09:31:41]wFMCommunicate OK [09:31:41]SAM_PROTO_ClearQueue done [09:31:41]KKMCreateOFDPacket [09:31:41]OFDProtocolAddRootSTLVToBuf [09:31:41]FM_MakeSignedData [09:31:41]FM_MakeSignedData [09:31:41]SAM_PROTO_SignData [09:31:41]wFMCommunicate request_size=4 [09:31:41]MH_SAM_APDU [09:31:41]CAPDU: 80 0D 01 02 [09:31:41]Write to MH i2c: E2 08 00 64 22 80 0D 01 02 00 00 00 00 FF [09:31:41]Write i2c OK [09:31:41]MH_I2C_Read... [09:31:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:41]Read from MH i2c: E2 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: E2 03 00 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: E2 03 00 64 22 00 90 00 FA [09:31:41]RAPDU: 90 00 [09:31:41]wFMCommunicate OK [09:31:41]wFMCommunicate request_size=255 [09:31:41]MH_SAM_APDU [09:31:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4F 00 00 00 F4 03 04 00 00 B7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 65 12 03 00 35 04 06 00 AC [09:31:41]Write to MH i2c: E2 02 01 65 22 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 32 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 4F 00 00 00 F4 03 04 00 00 B7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 65 12 03 00 35 04 06 00 AC 00 00 5D [09:31:41]Write i2c OK [09:31:41]MH_I2C_Read... [09:31:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:42]Read from MH i2c: E2 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 03 00 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 03 00 65 22 00 90 00 FB [09:31:42]RAPDU: 90 00 [09:31:42]wFMCommunicate OK [09:31:42]wFMCommunicate request_size=10 [09:31:42]MH_SAM_APDU [09:31:42]CAPDU: 80 0D 02 02 05 E2 AB 90 87 E1 [09:31:42]Write to MH i2c: E2 0D 00 66 22 80 0D 02 02 05 00 E2 AB 90 87 E1 00 00 91 [09:31:42]Write i2c OK [09:31:42]MH_I2C_Read... [09:31:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:42]Read from MH i2c: E2 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 03 00 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 03 00 66 22 00 90 00 FC [09:31:42]RAPDU: 90 00 [09:31:42]wFMCommunicate OK [09:31:42]wFMCommunicate request_size=4 [09:31:42]MH_SAM_APDU [09:31:42]CAPDU: 80 0D 03 02 [09:31:42]Write to MH i2c: E2 08 00 67 22 80 0D 03 02 00 00 00 00 04 [09:31:42]Write i2c OK [09:31:42]MH_I2C_Read... [09:31:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:42]Read from MH i2c: E2 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 0B 00 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 0B 00 67 22 00 D5 D2 F2 0A 6D 44 5C 88 90 00 3D [09:31:42]RAPDU: D5 D2 F2 0A 6D 44 5C 88 90 00 [09:31:42]wFMCommunicate OK [09:31:42]SAM_PROTO_SignData done [09:31:42]FM_MakeSignedData done [09:31:42]CreateOFDProtocolMessage [09:31:42]wFMCommunicate request_size=4 [09:31:42]MH_SAM_APDU [09:31:42]CAPDU: 80 11 00 00 [09:31:42]Write to MH i2c: E2 08 00 68 22 80 11 00 00 00 00 00 00 04 [09:31:42]Write i2c OK [09:31:42]MH_I2C_Read... [09:31:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:42]Read from MH i2c: E2 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 17 00 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 17 00 68 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 59 [09:31:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:31:42]wFMCommunicate OK [09:31:42]CreateOFDProtocolMessage done [09:31:42]OFDSenderStorePacket 201317 [09:31:42]StoreOFDPacket docnum=201317 [09:31:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 47 C9 07 01 28 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 32 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 4F 00 00 00 F4 03 04 00 00 B7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 65 12 03 00 35 04 06 00 AC E2 AB 90 87 E1 D5 D2 F2 0A 6D 44 5C 88 [09:31:42]CheckFolder [09:31:42]dirname=/storage/ofd_packets [09:31:42]CheckFolder done [09:31:42]ProducePacketName [09:31:42]name=ofd_packets/00201317 [09:31:42]NVStorageSaveData ofd_packets/00201317 [09:31:42]File name is /storage/ofd_packets/00201317 [09:31:42]Write 301 bytes [09:31:42]NVStorageSaveData done [09:31:42]OFDSenderStorePacket done [09:31:42]KKMCreateOFDPacket done [09:31:42]NVStorageSaveData kkm_last_timestamp [09:31:42]File name is /storage/kkm_last_timestamp [09:31:42]Write 4 bytes [09:31:42]NVStorageSaveData done [09:31:42]ExternCall_PrintAddStr [09:31:42]wPrintStart [09:31:42]Write to MH i2c: 01 00 00 69 22 8B [09:31:42]Write i2c OK [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: 01 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: 01 07 00 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: 01 07 00 69 22 00 00 00 00 00 FF 0F A0 [09:31:42]RasterBufferAndPrint [09:31:42]line Счет N : (1)449064 [09:31:42]line ИНН: 02508201610067 [09:31:42]line Контрольно-Кассовый Чек [09:31:42]line ПРОДАЖА [09:31:42]line ТРК (МРК, ГНК) : 52 [09:31:42]line Товар: 2710124130 [09:31:42]line Аи-92-К-2 [09:31:42]line 14.950 * 66.90 [09:31:42]line = 1000.16 [09:31:42]line НДС 12% НСП 1% [09:31:42]line > о реализуемом товаре [09:31:42]line ОКРУГЛЕНИЕ: -0.16 [09:31:42]line ИТОГО: 1000.00 [09:31:42]line Внесено: 1000.00 [09:31:42]line СДАЧА: 0.00 [09:31:42]line НСП 1% : 8.85 [09:31:42]line НДС 12% : 106.21 [09:31:42]line Наличными: 1000.00 [09:31:42]line Безнал.: 0.00 [09:31:42]line Место: АЗС № 171 "Партнер Нефть" [09:31:42]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:31:42]line СНО: Общий режим [09:31:42]line Чек 79 26.10.2024 09:31 [09:31:42]line Смена: 543 ФФД: 1.0 [09:31:42]line ЗНМ: 0300000109 [09:31:42]line РНМ: 0000000000091777 [09:31:42]line Версия ККМ: 001 [09:31:42]line ФМ: 0000000000871756 [09:31:42]line ФД: 201317 [09:31:42]line ФПД: 190089540962273 [09:31:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093144&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201317&fm=190089540962273&tin=02508201610067®Number=0000000000091777&sum=100000 [09:31:42]OFD Sender: Processing packet 201317 [packets to send 112, broken 111] [09:31:42]ProducePacketName [09:31:42]name=ofd_packets/00201317 [09:31:42]OFD Sender: To server: pG, [09:31:42]CommunicateWithHost lk.salyk.kg:30040 [09:31:42]ConnectInit lk.salyk.kg [09:31:42]written 0, free lines is 4095 [09:31:42]Connected sock=10 [09:31:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 47 C9 07 01 28 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 32 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 4F 00 00 00 F4 03 04 00 00 B7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 65 12 03 00 35 04 06 00 AC E2 AB 90 87 E1 D5 D2 F2 0A 6D 44 5C 88 [09:31:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F3 E4 47 00 81 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 65 12 03 00 F4 03 04 00 A9 62 1C 67 B6 04 01 00 00 3F 50 96 D1 06 0E 1E 82 [09:31:43]CommunicateWithHost err = 0 [09:31:43]CheckOFDResponse [09:31:43]1017 (14) - 77093643461234 [09:31:43]1041 (16) - 0000000000871756 [09:31:43]1040 (4) - 201317 [09:31:43]1012 (4) - 26.10.2024 03:31 [09:31:43]1206 (1) - 0 [09:31:43]OFD Sender: Remove packet 201317 [09:31:43]ProducePacketName [09:31:43]name=ofd_packets/00201317 [09:31:43]NVStorageDeleteData [09:31:43]Write to MH i2c: 01 00 00 94 22 B6 [09:31:43]Write i2c OK [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: 01 [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: 01 07 00 [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: 01 07 00 94 22 00 00 00 00 00 A3 0C 6C [09:31:43]RasterBufferAndPrint [09:31:43]line [09:31:43]line [09:31:43]line [09:31:43]line [09:31:43]line [09:31:43]written 0, free lines is 3243 [09:31:43]MH_Cut [09:31:43]Write to MH i2c: D1 01 00 9B 22 01 8F [09:31:43]Write i2c OK [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: D1 [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: D1 01 00 [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: D1 01 00 9B 22 00 8E [09:31:43]Write to MH i2c: 01 00 00 9C 22 BE [09:31:43]Write i2c OK [09:31:43]MH_I2C_Read... [09:31:43]OFD Sender: No OFD packet to send [09:31:44]*** Cut start [09:31:44]*** Purtial cut [09:31:44]*** Stage 1: CUTSNS_PIN = 1 [09:31:44]Read from MH i2c: 01 [09:31:44]MH_I2C_Read... [09:31:44]*** Stop cut motor [09:31:44]*** Cut end [09:31:44]Read from MH i2c: 01 07 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: 01 07 00 9C 22 00 00 00 00 00 FF 0F D3 [09:31:44]process_action close_receipt done [09:31:44]requested_data is exist [09:31:44]produce_requested_data [09:31:44]requested_item fm.sn is exist - process it [09:31:44]wFMCommunicate request_size=4 [09:31:44]MH_SAM_APDU [09:31:44]CAPDU: 80 11 00 00 [09:31:44]Write to MH i2c: E2 08 00 9D 22 80 11 00 00 00 00 00 00 39 [09:31:44]Write i2c OK [09:31:44]MH_I2C_Read... [09:31:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:44]Read from MH i2c: E2 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 17 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 17 00 9D 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8E [09:31:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:31:44]wFMCommunicate OK [09:31:44]requested_item fd.num is exist - process it [09:31:44]SAM_PROTO_GetFieldsCounters [09:31:44]wFMCommunicate request_size=4 [09:31:44]MH_SAM_APDU [09:31:44]CAPDU: 80 13 00 00 [09:31:44]Write to MH i2c: E2 08 00 9E 22 80 13 00 00 00 00 00 00 3C [09:31:44]Write i2c OK [09:31:44]MH_I2C_Read... [09:31:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:44]Read from MH i2c: E2 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 62 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 62 00 9E 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 65 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [09:31:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 65 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:31:44]wFMCommunicate OK [09:31:44]SAM_PROTO_GetFieldsCounters done [09:31:44]requested_item shift.num is exist - process it [09:31:44]requested_item shift.opened is exist - process it [09:31:44]req_shift_opened [09:31:44]FM_GetShiftState [09:31:44]SAM_PROTO_GetShiftState [09:31:44]wFMCommunicate request_size=4 [09:31:44]MH_SAM_APDU [09:31:44]CAPDU: 80 13 01 00 [09:31:44]Write to MH i2c: E2 08 00 9F 22 80 13 01 00 00 00 00 00 3E [09:31:44]Write i2c OK [09:31:44]MH_I2C_Read... [09:31:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:44]Read from MH i2c: E2 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 0E 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 0E 00 9F 22 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 4D [09:31:44]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:31:44]wFMCommunicate OK [09:31:44]SAM_PROTO_GetShiftState done [09:31:44]FM_GetShiftState done [09:31:44]req_shift_opened done [09:31:44]requested_item shift.open_date is exist - process it [09:31:44]req_shift_open_date [09:31:44]req_shift_open_date done [09:31:44]produce_requested_data done [09:31:44]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201317,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:31:44]process_action_free close_receipt [09:31:44]json_value_free [09:31:44]json_value_free done [09:31:44]process_json_proto returns [09:31:44]Send response to host [09:31:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201317,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:31:44]free response buf [09:31:44]execute_script done [09:31:44]execute_script returns [09:31:44]free content buf [09:31:44]Sock 7.Close socket [09:31:44]Sock 7.Thread stoped [09:31:48]OFD Sender: No OFD packet to send [09:31:53]OFD Sender: No OFD packet to send [09:31:58]OFD Sender: No OFD packet to send [09:32:03]OFD Sender: No OFD packet to send [09:32:08]OFD Sender: No OFD packet to send [09:32:13]OFD Sender: No OFD packet to send [09:32:18]OFD Sender: No OFD packet to send [09:32:23]OFD Sender: No OFD packet to send [09:32:28]OFD Sender: No OFD packet to send [09:32:33]OFD Sender: No OFD packet to send [09:32:38]OFD Sender: No OFD packet to send [09:32:43]OFD Sender: No OFD packet to send [09:32:48]OFD Sender: No OFD packet to send [09:32:53]OFD Sender: No OFD packet to send [09:32:53]accept exits with 9 [09:32:53]New connection [09:32:53]New thread 3067415908 created [09:32:53]Thread 3067559268 joined [09:32:53]Waiting for new connection... [09:32:53] Sock 9.Parse request [09:32:53]Sock 9.Check first char [09:32:53]Sock 9.First char is OK [09:32:53]request: POST /json_proto HTTP/1.0 [09:32:53]Method: POST [09:32:53]URL: /json_proto [09:32:53]Method is POST - this is cgi request [09:32:53]url: /json_proto [09:32:53]query_string will be loaded in cgi processing [09:32:53]execute_cgi json_proto POST (null) [09:32:53]execute_cgi path=json_proto method=POST [09:32:53]POST find Content-Length [09:32:53]Host: 172.17.63.195:8080 [09:32:53]Content-Length: 677 [09:32:53]Content-Type: application/json [09:32:53] [09:32:53]POST finish read [09:32:53]Found Content-Length = 677 [09:32:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:32:53]execute_script... [09:32:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:32:53]POST & json_proto [09:32:53]process_json_proto [09:32:53]json parsed OK: [09:32:53]protocol is kg_v1.0 [09:32:53]action value=close_receipt [09:32:53]process_action close_receipt [09:32:53]cmd_close_receipt [09:32:53]MH_GetDate [09:32:53]Write to MH i2c: F0 00 00 A0 22 B1 [09:32:53]Write i2c OK [09:32:53]MH_I2C_Read... [09:32:53]Read from MH i2c: F0 [09:32:53]MH_I2C_Read... [09:32:53]Read from MH i2c: F0 09 00 [09:32:53]MH_I2C_Read... [09:32:53]Read from MH i2c: F0 09 00 A0 22 00 49 B7 1C 67 68 46 19 67 6B [09:32:53]GetLastDocTimeStamp 1729935104 [09:32:53]current date 1729935177 [09:32:53]FM_GetShiftState [09:32:53]SAM_PROTO_GetShiftState [09:32:53]wFMCommunicate request_size=4 [09:32:53]MH_SAM_APDU [09:32:53]CAPDU: 80 13 01 00 [09:32:53]Write to MH i2c: E2 08 00 A1 22 80 13 01 00 00 00 00 00 40 [09:32:53]Write i2c OK [09:32:53]MH_I2C_Read... [09:32:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:53]Read from MH i2c: E2 [09:32:53]MH_I2C_Read... [09:32:53]Read from MH i2c: E2 0E 00 [09:32:53]MH_I2C_Read... [09:32:53]Read from MH i2c: E2 0E 00 A1 22 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 4F [09:32:53]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:32:53]wFMCommunicate OK [09:32:53]SAM_PROTO_GetShiftState done [09:32:53]FM_GetShiftState done [09:32:53]opened in 1729900879 [09:32:53]opened+sec_in_day 1729987279 [09:32:53]quantity*price = 50041 [09:32:53]sum+1 = 50042 [09:32:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 80 26.10.2024 09:32 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201318 ФПД: 125300995522473 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093257&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201318&fm=125300995522473&tin=02508201610067®Number=0000000000091777&sum=50000 [09:32:54]StoreToDocumentArchive [09:32:54]shift 543 fd 201318 [09:32:54]save to /storage/0543/doc_00201318 [09:32:54]save last doc name /storage/0543/doc_00201318 to /storage/kkm_last_doc_name [09:32:54]save OK [09:32:54]Clear old archive folders... [09:32:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:32:54]tlvbuf is 017777E0 [09:32:54]SAM_PROTO_ClearQueue [09:32:54]wFMCommunicate request_size=4 [09:32:54]MH_SAM_APDU [09:32:54]CAPDU: 80 09 00 00 [09:32:54]Write to MH i2c: E2 08 00 AE 22 80 09 00 00 00 00 00 00 42 [09:32:54]Write i2c OK [09:32:54]MH_I2C_Read... [09:32:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:54]Read from MH i2c: E2 [09:32:54]MH_I2C_Read... [09:32:54]Read from MH i2c: E2 03 00 [09:32:54]MH_I2C_Read... [09:32:54]Read from MH i2c: E2 03 00 AE 22 00 90 00 44 [09:32:54]RAPDU: 90 00 [09:32:54]wFMCommunicate OK [09:32:54]SAM_PROTO_ClearQueue done [09:32:54]KKMCreateOFDPacket [09:32:54]OFDProtocolAddRootSTLVToBuf [09:32:54]FM_MakeSignedData [09:32:54]FM_MakeSignedData [09:32:54]SAM_PROTO_SignData [09:32:54]wFMCommunicate request_size=4 [09:32:54]MH_SAM_APDU [09:32:54]CAPDU: 80 0D 01 02 [09:32:54]Write to MH i2c: E2 08 00 AF 22 80 0D 01 02 00 00 00 00 4A [09:32:54]Write i2c OK [09:32:54]MH_I2C_Read... [09:32:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:55]Read from MH i2c: E2 [09:32:55]MH_I2C_Read... [09:32:55]Read from MH i2c: E2 03 00 [09:32:55]MH_I2C_Read... [09:32:55]Read from MH i2c: E2 03 00 AF 22 00 90 00 45 [09:32:55]RAPDU: 90 00 [09:32:55]wFMCommunicate OK [09:32:55]wFMCommunicate request_size=255 [09:32:55]MH_SAM_APDU [09:32:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 50 00 00 00 F4 03 04 00 49 B7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 66 12 03 00 35 04 06 00 71 [09:32:55]Write to MH i2c: E2 02 01 B0 22 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 32 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 50 00 00 00 F4 03 04 00 49 B7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 66 12 03 00 35 04 06 00 71 00 00 BE [09:32:55]Write i2c OK [09:32:55]MH_I2C_Read... [09:32:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:55]Read from MH i2c: E2 [09:32:55]MH_I2C_Read... [09:32:55]Read from MH i2c: E2 03 00 [09:32:55]MH_I2C_Read... [09:32:55]Read from MH i2c: E2 03 00 B0 22 00 90 00 46 [09:32:55]RAPDU: 90 00 [09:32:55]wFMCommunicate OK [09:32:55]wFMCommunicate request_size=10 [09:32:55]MH_SAM_APDU [09:32:55]CAPDU: 80 0D 02 02 05 F5 E9 53 FF A9 [09:32:55]Write to MH i2c: E2 0D 00 B1 22 80 0D 02 02 05 00 F5 E9 53 FF A9 00 00 30 [09:32:55]Write i2c OK [09:32:55]MH_I2C_Read... [09:32:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:55]Read from MH i2c: E2 [09:32:55]MH_I2C_Read... [09:32:55]Read from MH i2c: E2 03 00 [09:32:55]MH_I2C_Read... [09:32:55]Read from MH i2c: E2 03 00 B1 22 00 90 00 47 [09:32:55]RAPDU: 90 00 [09:32:55]wFMCommunicate OK [09:32:55]wFMCommunicate request_size=4 [09:32:55]MH_SAM_APDU [09:32:55]CAPDU: 80 0D 03 02 [09:32:55]Write to MH i2c: E2 08 00 B2 22 80 0D 03 02 00 00 00 00 4F [09:32:55]Write i2c OK [09:32:55]MH_I2C_Read... [09:32:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:55]Read from MH i2c: E2 [09:32:55]MH_I2C_Read... [09:32:55]Read from MH i2c: E2 0B 00 [09:32:55]MH_I2C_Read... [09:32:55]Read from MH i2c: E2 0B 00 B2 22 00 D4 1F 51 5E CE D4 0E 04 90 00 A6 [09:32:55]RAPDU: D4 1F 51 5E CE D4 0E 04 90 00 [09:32:55]wFMCommunicate OK [09:32:55]SAM_PROTO_SignData done [09:32:55]FM_MakeSignedData done [09:32:55]CreateOFDProtocolMessage [09:32:55]wFMCommunicate request_size=4 [09:32:55]MH_SAM_APDU [09:32:55]CAPDU: 80 11 00 00 [09:32:55]Write to MH i2c: E2 08 00 B3 22 80 11 00 00 00 00 00 00 4F [09:32:55]Write i2c OK [09:32:55]MH_I2C_Read... [09:32:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:55]Read from MH i2c: E2 [09:32:55]MH_I2C_Read... [09:32:55]Read from MH i2c: E2 17 00 [09:32:55]MH_I2C_Read... [09:32:55]Read from MH i2c: E2 17 00 B3 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A4 [09:32:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:32:55]wFMCommunicate OK [09:32:55]CreateOFDProtocolMessage done [09:32:55]OFDSenderStorePacket 201318 [09:32:55]StoreOFDPacket docnum=201318 [09:32:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 36 71 07 01 DC 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 50 00 00 00 F4 03 04 00 49 B7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 66 12 03 00 35 04 06 00 71 F5 E9 53 FF A9 D4 1F 51 5E CE D4 0E 04 [09:32:55]CheckFolder [09:32:55]dirname=/storage/ofd_packets [09:32:55]CheckFolder done [09:32:55]ProducePacketName [09:32:55]name=ofd_packets/00201318 [09:32:55]NVStorageSaveData ofd_packets/00201318 [09:32:55]File name is /storage/ofd_packets/00201318 [09:32:55]Write 301 bytes [09:32:55]NVStorageSaveData done [09:32:55]OFDSenderStorePacket done [09:32:55]KKMCreateOFDPacket done [09:32:55]NVStorageSaveData kkm_last_timestamp [09:32:55]File name is /storage/kkm_last_timestamp [09:32:55]Write 4 bytes [09:32:55]NVStorageSaveData done [09:32:55]ExternCall_PrintAddStr [09:32:55]wPrintStart [09:32:55]Write to MH i2c: 01 00 00 B4 22 D6 [09:32:55]Write i2c OK [09:32:55]MH_I2C_Read... [09:32:55]Read from MH i2c: 01 [09:32:55]MH_I2C_Read... [09:32:55]Read from MH i2c: 01 07 00 [09:32:55]MH_I2C_Read... [09:32:55]Read from MH i2c: 01 07 00 B4 22 00 00 00 00 00 FF 0F EB [09:32:55]RasterBufferAndPrint [09:32:55]line Счет N : (1)449065 [09:32:55]line ИНН: 02508201610067 [09:32:55]line Контрольно-Кассовый Чек [09:32:55]line ПРОДАЖА [09:32:55]line ТРК (МРК, ГНК) : 62 [09:32:55]line Товар: 2710124130 [09:32:55]line Аи-92-К-2 [09:32:55]line 7.480 * 66.90 [09:32:55]line = 500.41 [09:32:55]line НДС 12% НСП 1% [09:32:55]line > о реализуемом товаре [09:32:55]line ОКРУГЛЕНИЕ: -0.41 [09:32:55]line ИТОГО: 500.00 [09:32:55]line Внесено: 500.00 [09:32:55]line СДАЧА: 0.00 [09:32:55]line НСП 1% : 4.43 [09:32:55]line НДС 12% : 53.14 [09:32:55]line Наличными: 500.00 [09:32:55]line Безнал.: 0.00 [09:32:55]line Место: АЗС № 171 "Партнер Нефть" [09:32:55]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:32:55]line СНО: Общий режим [09:32:55]line Чек 80 26.10.2024 09:32 [09:32:55]line Смена: 543 ФФД: 1.0 [09:32:55]line ЗНМ: 0300000109 [09:32:55]line РНМ: 0000000000091777 [09:32:55]line Версия ККМ: 001 [09:32:55]line ФМ: 0000000000871756 [09:32:55]line ФД: 201318 [09:32:55]line ФПД: 125300995522473 [09:32:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093257&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201318&fm=125300995522473&tin=02508201610067®Number=0000000000091777&sum=50000 [09:32:55]OFD Sender: Processing packet 201318 [packets to send 112, broken 111] [09:32:55]ProducePacketName [09:32:55]name=ofd_packets/00201318 [09:32:55]OFD Sender: To server: pG, [09:32:55]CommunicateWithHost lk.salyk.kg:30040 [09:32:55]ConnectInit lk.salyk.kg [09:32:55]written 0, free lines is 4095 [09:32:55]Connected sock=10 [09:32:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 36 71 07 01 DC 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 50 00 00 00 F4 03 04 00 49 B7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 66 12 03 00 35 04 06 00 71 F5 E9 53 FF A9 D4 1F 51 5E CE D4 0E 04 [09:32:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C2 32 47 00 E3 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 66 12 03 00 F4 03 04 00 F2 62 1C 67 B6 04 01 00 00 82 F8 C0 07 F9 1A B0 5A [09:32:56]CommunicateWithHost err = 0 [09:32:56]CheckOFDResponse [09:32:56]1017 (14) - 77093643461234 [09:32:56]1041 (16) - 0000000000871756 [09:32:56]1040 (4) - 201318 [09:32:56]1012 (4) - 26.10.2024 03:33 [09:32:56]1206 (1) - 0 [09:32:56]OFD Sender: Remove packet 201318 [09:32:56]ProducePacketName [09:32:56]name=ofd_packets/00201318 [09:32:56]NVStorageDeleteData [09:32:56]Write to MH i2c: 01 00 00 DF 22 01 [09:32:56]Write i2c OK [09:32:56]MH_I2C_Read... [09:32:56]Read from MH i2c: 01 [09:32:56]MH_I2C_Read... [09:32:56]Read from MH i2c: 01 07 00 [09:32:56]MH_I2C_Read... [09:32:56]Read from MH i2c: 01 07 00 DF 22 00 00 00 00 00 A0 0C B4 [09:32:56]RasterBufferAndPrint [09:32:56]line [09:32:56]line [09:32:56]line [09:32:56]line [09:32:56]line [09:32:56]written 0, free lines is 3238 [09:32:56]MH_Cut [09:32:56]Write to MH i2c: D1 01 00 E6 22 01 DA [09:32:56]Write i2c OK [09:32:56]MH_I2C_Read... [09:32:56]Read from MH i2c: D1 [09:32:56]MH_I2C_Read... [09:32:56]Read from MH i2c: D1 01 00 [09:32:56]MH_I2C_Read... [09:32:56]Read from MH i2c: D1 01 00 E6 22 00 D9 [09:32:56]Write to MH i2c: 01 00 00 E7 22 09 [09:32:56]Write i2c OK [09:32:56]MH_I2C_Read... [09:32:56]OFD Sender: No OFD packet to send [09:32:57]*** Cut start [09:32:57]*** Purtial cut [09:32:57]*** CUTSNS_PIN = 0 [09:32:57]*** Stage 1: CUTSNS_PIN = 1 [09:32:59]Read from MH i2c: 01 [09:32:59]MH_I2C_Read... [09:32:59]*** Stop cut motor [09:32:59]*** Cut end [09:32:59]Read from MH i2c: 01 07 00 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: 01 07 00 E7 22 00 00 00 00 00 FF 0F 1E [09:32:59]process_action close_receipt done [09:32:59]requested_data is exist [09:32:59]produce_requested_data [09:32:59]requested_item fm.sn is exist - process it [09:32:59]wFMCommunicate request_size=4 [09:32:59]MH_SAM_APDU [09:32:59]CAPDU: 80 11 00 00 [09:32:59]Write to MH i2c: E2 08 00 E8 22 80 11 00 00 00 00 00 00 84 [09:32:59]Write i2c OK [09:32:59]MH_I2C_Read... [09:32:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:59]Read from MH i2c: E2 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: E2 17 00 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: E2 17 00 E8 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D9 [09:32:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:32:59]wFMCommunicate OK [09:32:59]requested_item fd.num is exist - process it [09:32:59]SAM_PROTO_GetFieldsCounters [09:32:59]wFMCommunicate request_size=4 [09:32:59]MH_SAM_APDU [09:32:59]CAPDU: 80 13 00 00 [09:32:59]Write to MH i2c: E2 08 00 E9 22 80 13 00 00 00 00 00 00 87 [09:32:59]Write i2c OK [09:32:59]MH_I2C_Read... [09:32:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:59]Read from MH i2c: E2 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: E2 62 00 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: E2 62 00 E9 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 66 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [09:32:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 66 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:32:59]wFMCommunicate OK [09:32:59]SAM_PROTO_GetFieldsCounters done [09:32:59]requested_item shift.num is exist - process it [09:32:59]requested_item shift.opened is exist - process it [09:32:59]req_shift_opened [09:32:59]FM_GetShiftState [09:32:59]SAM_PROTO_GetShiftState [09:32:59]wFMCommunicate request_size=4 [09:32:59]MH_SAM_APDU [09:32:59]CAPDU: 80 13 01 00 [09:32:59]Write to MH i2c: E2 08 00 EA 22 80 13 01 00 00 00 00 00 89 [09:32:59]Write i2c OK [09:32:59]MH_I2C_Read... [09:32:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:59]Read from MH i2c: E2 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: E2 0E 00 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: E2 0E 00 EA 22 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 98 [09:32:59]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:32:59]wFMCommunicate OK [09:32:59]SAM_PROTO_GetShiftState done [09:32:59]FM_GetShiftState done [09:32:59]req_shift_opened done [09:32:59]requested_item shift.open_date is exist - process it [09:32:59]req_shift_open_date [09:32:59]req_shift_open_date done [09:32:59]produce_requested_data done [09:32:59]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201318,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:32:59]process_action_free close_receipt [09:32:59]json_value_free [09:32:59]json_value_free done [09:32:59]process_json_proto returns [09:32:59]Send response to host [09:32:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201318,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:32:59]free response buf [09:32:59]execute_script done [09:32:59]execute_script returns [09:32:59]free content buf [09:32:59]Sock 9.Close socket [09:32:59]Sock 9.Thread stoped [09:33:01]OFD Sender: No OFD packet to send [09:33:03]accept exits with 7 [09:33:03]New connection [09:33:03]New thread 3067559268 created [09:33:03]Thread 3067415908 joined [09:33:03]Waiting for new connection... [09:33:03] Sock 7.Parse request [09:33:03]Sock 7.Check first char [09:33:03]Sock 7.First char is OK [09:33:03]request: POST /json_proto HTTP/1.0 [09:33:03]Method: POST [09:33:03]URL: /json_proto [09:33:03]Method is POST - this is cgi request [09:33:03]url: /json_proto [09:33:03]query_string will be loaded in cgi processing [09:33:03]execute_cgi json_proto POST (null) [09:33:03]execute_cgi path=json_proto method=POST [09:33:03]POST find Content-Length [09:33:03]Host: 172.17.63.195:8080 [09:33:03]Content-Length: 677 [09:33:03]Content-Type: application/json [09:33:03] [09:33:03]POST finish read [09:33:03]Found Content-Length = 677 [09:33:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:33:03]execute_script... [09:33: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)449066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:33:03]POST & json_proto [09:33:03]process_json_proto [09:33:03]json parsed OK: [09:33:03]protocol is kg_v1.0 [09:33:03]action value=close_receipt [09:33:03]process_action close_receipt [09:33:03]cmd_close_receipt [09:33:03]MH_GetDate [09:33:03]Write to MH i2c: F0 00 00 EB 22 FC [09:33:03]Write i2c OK [09:33:03]MH_I2C_Read... [09:33:03]Read from MH i2c: F0 [09:33:03]MH_I2C_Read... [09:33:03]Read from MH i2c: F0 09 00 [09:33:03]MH_I2C_Read... [09:33:03]Read from MH i2c: F0 09 00 EB 22 00 53 B7 1C 67 68 46 19 67 C0 [09:33:03]GetLastDocTimeStamp 1729935177 [09:33:03]current date 1729935187 [09:33:03]FM_GetShiftState [09:33:03]SAM_PROTO_GetShiftState [09:33:03]wFMCommunicate request_size=4 [09:33:03]MH_SAM_APDU [09:33:03]CAPDU: 80 13 01 00 [09:33:03]Write to MH i2c: E2 08 00 EC 22 80 13 01 00 00 00 00 00 8B [09:33:03]Write i2c OK [09:33:03]MH_I2C_Read... [09:33:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:03]Read from MH i2c: E2 [09:33:03]MH_I2C_Read... [09:33:03]Read from MH i2c: E2 0E 00 [09:33:03]MH_I2C_Read... [09:33:03]Read from MH i2c: E2 0E 00 EC 22 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 9A [09:33:03]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:33:03]wFMCommunicate OK [09:33:03]SAM_PROTO_GetShiftState done [09:33:03]FM_GetShiftState done [09:33:03]opened in 1729900879 [09:33:03]opened+sec_in_day 1729987279 [09:33:03]quantity*price = 20003 [09:33:03]sum+1 = 20004 [09:33:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 81 26.10.2024 09:33 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201319 ФПД: 100493729823696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093307&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201319&fm=100493729823696&tin=02508201610067®Number=0000000000091777&sum=20000 [09:33:04]StoreToDocumentArchive [09:33:04]shift 543 fd 201319 [09:33:04]save to /storage/0543/doc_00201319 [09:33:04]save last doc name /storage/0543/doc_00201319 to /storage/kkm_last_doc_name [09:33:04]save OK [09:33:04]Clear old archive folders... [09:33:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:33:04]tlvbuf is 0174F530 [09:33:04]SAM_PROTO_ClearQueue [09:33:04]wFMCommunicate request_size=4 [09:33:04]MH_SAM_APDU [09:33:04]CAPDU: 80 09 00 00 [09:33:04]Write to MH i2c: E2 08 00 F9 22 80 09 00 00 00 00 00 00 8D [09:33:04]Write i2c OK [09:33:04]MH_I2C_Read... [09:33:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:04]Read from MH i2c: E2 [09:33:04]MH_I2C_Read... [09:33:04]Read from MH i2c: E2 03 00 [09:33:04]MH_I2C_Read... [09:33:04]Read from MH i2c: E2 03 00 F9 22 00 90 00 8F [09:33:04]RAPDU: 90 00 [09:33:04]wFMCommunicate OK [09:33:04]SAM_PROTO_ClearQueue done [09:33:04]KKMCreateOFDPacket [09:33:04]OFDProtocolAddRootSTLVToBuf [09:33:04]FM_MakeSignedData [09:33:04]FM_MakeSignedData [09:33:04]SAM_PROTO_SignData [09:33:04]wFMCommunicate request_size=4 [09:33:04]MH_SAM_APDU [09:33:04]CAPDU: 80 0D 01 02 [09:33:04]Write to MH i2c: E2 08 00 FA 22 80 0D 01 02 00 00 00 00 95 [09:33:04]Write i2c OK [09:33:04]MH_I2C_Read... [09:33:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:04]Read from MH i2c: E2 [09:33:04]MH_I2C_Read... [09:33:04]Read from MH i2c: E2 03 00 [09:33:04]MH_I2C_Read... [09:33:04]Read from MH i2c: E2 03 00 FA 22 00 90 00 90 [09:33:04]RAPDU: 90 00 [09:33:04]wFMCommunicate OK [09:33:04]wFMCommunicate request_size=255 [09:33:04]MH_SAM_APDU [09:33: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 32 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 51 00 00 00 F4 03 04 00 53 B7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 67 12 03 00 35 04 06 00 5B [09:33:04]Write to MH i2c: E2 02 01 FB 22 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 32 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 51 00 00 00 F4 03 04 00 53 B7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 67 12 03 00 35 04 06 00 5B 00 00 C1 [09:33:04]Write i2c OK [09:33:04]MH_I2C_Read... [09:33:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:05]Read from MH i2c: E2 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 03 00 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 03 00 FB 22 00 90 00 91 [09:33:05]RAPDU: 90 00 [09:33:05]wFMCommunicate OK [09:33:05]wFMCommunicate request_size=10 [09:33:05]MH_SAM_APDU [09:33:05]CAPDU: 80 0D 02 02 05 66 05 11 7B D0 [09:33:05]Write to MH i2c: E2 0D 00 FC 22 80 0D 02 02 05 00 66 05 11 7B D0 00 00 69 [09:33:05]Write i2c OK [09:33:05]MH_I2C_Read... [09:33:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:05]Read from MH i2c: E2 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 03 00 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 03 00 FC 22 00 90 00 92 [09:33:05]RAPDU: 90 00 [09:33:05]wFMCommunicate OK [09:33:05]wFMCommunicate request_size=4 [09:33:05]MH_SAM_APDU [09:33:05]CAPDU: 80 0D 03 02 [09:33:05]Write to MH i2c: E2 08 00 FD 22 80 0D 03 02 00 00 00 00 9A [09:33:05]Write i2c OK [09:33:05]MH_I2C_Read... [09:33:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:05]Read from MH i2c: E2 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 0B 00 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 0B 00 FD 22 00 BE CB 74 42 BF DE 87 FF 90 00 FD [09:33:05]RAPDU: BE CB 74 42 BF DE 87 FF 90 00 [09:33:05]wFMCommunicate OK [09:33:05]SAM_PROTO_SignData done [09:33:05]FM_MakeSignedData done [09:33:05]CreateOFDProtocolMessage [09:33:05]wFMCommunicate request_size=4 [09:33:05]MH_SAM_APDU [09:33:05]CAPDU: 80 11 00 00 [09:33:05]Write to MH i2c: E2 08 00 FE 22 80 11 00 00 00 00 00 00 9A [09:33:05]Write i2c OK [09:33:05]MH_I2C_Read... [09:33:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:05]Read from MH i2c: E2 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 17 00 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 17 00 FE 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EF [09:33:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:33:05]wFMCommunicate OK [09:33:05]CreateOFDProtocolMessage done [09:33:05]OFDSenderStorePacket 201319 [09:33:05]StoreOFDPacket docnum=201319 [09:33:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 0D 6B 07 01 90 83 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 32 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 51 00 00 00 F4 03 04 00 53 B7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 67 12 03 00 35 04 06 00 5B 66 05 11 7B D0 BE CB 74 42 BF DE 87 FF [09:33:05]CheckFolder [09:33:05]dirname=/storage/ofd_packets [09:33:05]CheckFolder done [09:33:05]ProducePacketName [09:33:05]name=ofd_packets/00201319 [09:33:05]NVStorageSaveData ofd_packets/00201319 [09:33:05]File name is /storage/ofd_packets/00201319 [09:33:05]Write 301 bytes [09:33:05]NVStorageSaveData done [09:33:05]OFDSenderStorePacket done [09:33:05]KKMCreateOFDPacket done [09:33:05]NVStorageSaveData kkm_last_timestamp [09:33:05]File name is /storage/kkm_last_timestamp [09:33:05]Write 4 bytes [09:33:05]NVStorageSaveData done [09:33:05]ExternCall_PrintAddStr [09:33:05]wPrintStart [09:33:05]Write to MH i2c: 01 00 00 FF 22 21 [09:33:05]Write i2c OK [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: 01 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: 01 07 00 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: 01 07 00 FF 22 00 00 00 00 00 FF 0F 36 [09:33:05]RasterBufferAndPrint [09:33:05]line Счет N : (1)449066 [09:33:05]line ИНН: 02508201610067 [09:33:05]line Контрольно-Кассовый Чек [09:33:05]line ПРОДАЖА [09:33:05]line ТРК (МРК, ГНК) : 41 [09:33:05]line Товар: 2710124130 [09:33:05]line Аи-92-К-2 [09:33:05]line 2.990 * 66.90 [09:33:05]line = 200.03 [09:33:05]line НДС 12% НСП 1% [09:33:05]line > о реализуемом товаре [09:33:05]line ОКРУГЛЕНИЕ: -0.03 [09:33:05]line ИТОГО: 200.00 [09:33:05]line Внесено: 200.00 [09:33:05]line СДАЧА: 0.00 [09:33:05]line НСП 1% : 1.77 [09:33:05]line НДС 12% : 21.24 [09:33:05]line Наличными: 200.00 [09:33:05]line Безнал.: 0.00 [09:33:05]line Место: АЗС № 171 "Партнер Нефть" [09:33:05]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:33:05]line СНО: Общий режим [09:33:05]line Чек 81 26.10.2024 09:33 [09:33:05]line Смена: 543 ФФД: 1.0 [09:33:05]line ЗНМ: 0300000109 [09:33:05]line РНМ: 0000000000091777 [09:33:05]line Версия ККМ: 001 [09:33:05]line ФМ: 0000000000871756 [09:33:05]line ФД: 201319 [09:33:05]line ФПД: 100493729823696 [09:33:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093307&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201319&fm=100493729823696&tin=02508201610067®Number=0000000000091777&sum=20000 [09:33:05]written 0, free lines is 4095 [09:33:05]OFD Sender: Processing packet 201319 [packets to send 112, broken 111] [09:33:05]ProducePacketName [09:33:05]name=ofd_packets/00201319 [09:33:05]OFD Sender: To server: pG, [09:33:05]CommunicateWithHost lk.salyk.kg:30040 [09:33:05]ConnectInit lk.salyk.kg [09:33:05]Connected sock=10 [09:33:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 0D 6B 07 01 90 83 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 32 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 51 00 00 00 F4 03 04 00 53 B7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 67 12 03 00 35 04 06 00 5B 66 05 11 7B D0 BE CB 74 42 BF DE 87 FF [09:33:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F8 2C 47 00 99 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 67 12 03 00 F4 03 04 00 FC 62 1C 67 B6 04 01 00 00 6B 17 51 74 19 C6 7E 65 [09:33:05]CommunicateWithHost err = 0 [09:33:05]CheckOFDResponse [09:33:05]1017 (14) - 77093643461234 [09:33:05]1041 (16) - 0000000000871756 [09:33:05]1040 (4) - 201319 [09:33:05]1012 (4) - 26.10.2024 03:33 [09:33:05]1206 (1) - 0 [09:33:05]OFD Sender: Remove packet 201319 [09:33:05]ProducePacketName [09:33:05]name=ofd_packets/00201319 [09:33:05]NVStorageDeleteData [09:33:05]Write to MH i2c: 01 00 00 2A 23 4D [09:33:05]Write i2c OK [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: 01 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: 01 07 00 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: 01 07 00 2A 23 00 00 00 00 00 AC 0C 0C [09:33:05]RasterBufferAndPrint [09:33:05]line [09:33:05]line [09:33:05]line [09:33:05]line [09:33:05]line [09:33:05]written 0, free lines is 3253 [09:33:05]MH_Cut [09:33:05]Write to MH i2c: D1 01 00 31 23 01 26 [09:33:05]Write i2c OK [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: D1 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: D1 01 00 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: D1 01 00 31 23 00 25 [09:33:05]Write to MH i2c: 01 00 00 32 23 55 [09:33:05]Write i2c OK [09:33:05]MH_I2C_Read... [09:33:06]OFD Sender: No OFD packet to send [09:33:06]*** Cut start [09:33:06]*** Purtial cut [09:33:06]*** Stage 1: CUTSNS_PIN = 1 [09:33:06]Read from MH i2c: 01 [09:33:06]MH_I2C_Read... [09:33:06]*** Stop cut motor [09:33:06]*** Cut end [09:33:06]Read from MH i2c: 01 07 00 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: 01 07 00 32 23 00 00 00 00 00 FF 0F 6A [09:33:06]process_action close_receipt done [09:33:06]requested_data is exist [09:33:06]produce_requested_data [09:33:06]requested_item fm.sn is exist - process it [09:33:06]wFMCommunicate request_size=4 [09:33:06]MH_SAM_APDU [09:33:06]CAPDU: 80 11 00 00 [09:33:06]Write to MH i2c: E2 08 00 33 23 80 11 00 00 00 00 00 00 D0 [09:33:06]Write i2c OK [09:33:06]MH_I2C_Read... [09:33:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:06]Read from MH i2c: E2 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: E2 17 00 [09:33:06]MH_I2C_Read... [09:33:07]Read from MH i2c: E2 17 00 33 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 25 [09:33:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:33:07]wFMCommunicate OK [09:33:07]requested_item fd.num is exist - process it [09:33:07]SAM_PROTO_GetFieldsCounters [09:33:07]wFMCommunicate request_size=4 [09:33:07]MH_SAM_APDU [09:33:07]CAPDU: 80 13 00 00 [09:33:07]Write to MH i2c: E2 08 00 34 23 80 13 00 00 00 00 00 00 D3 [09:33:07]Write i2c OK [09:33:07]MH_I2C_Read... [09:33:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:07]Read from MH i2c: E2 [09:33:07]MH_I2C_Read... [09:33:07]Read from MH i2c: E2 62 00 [09:33:07]MH_I2C_Read... [09:33:07]Read from MH i2c: E2 62 00 34 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 67 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [09:33:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 67 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:33:07]wFMCommunicate OK [09:33:07]SAM_PROTO_GetFieldsCounters done [09:33:07]requested_item shift.num is exist - process it [09:33:07]requested_item shift.opened is exist - process it [09:33:07]req_shift_opened [09:33:07]FM_GetShiftState [09:33:07]SAM_PROTO_GetShiftState [09:33:07]wFMCommunicate request_size=4 [09:33:07]MH_SAM_APDU [09:33:07]CAPDU: 80 13 01 00 [09:33:07]Write to MH i2c: E2 08 00 35 23 80 13 01 00 00 00 00 00 D5 [09:33:07]Write i2c OK [09:33:07]MH_I2C_Read... [09:33:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:07]Read from MH i2c: E2 [09:33:07]MH_I2C_Read... [09:33:07]Read from MH i2c: E2 0E 00 [09:33:07]MH_I2C_Read... [09:33:07]Read from MH i2c: E2 0E 00 35 23 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E4 [09:33:07]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:33:07]wFMCommunicate OK [09:33:07]SAM_PROTO_GetShiftState done [09:33:07]FM_GetShiftState done [09:33:07]req_shift_opened done [09:33:07]requested_item shift.open_date is exist - process it [09:33:07]req_shift_open_date [09:33:07]req_shift_open_date done [09:33:07]produce_requested_data done [09:33:07]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201319,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:33:07]process_action_free close_receipt [09:33:07]json_value_free [09:33:07]json_value_free done [09:33:07]process_json_proto returns [09:33:07]Send response to host [09:33:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201319,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:33:07]free response buf [09:33:07]execute_script done [09:33:07]execute_script returns [09:33:07]free content buf [09:33:07]Sock 7.Close socket [09:33:07]Sock 7.Thread stoped [09:33:11]OFD Sender: No OFD packet to send [09:33:16]OFD Sender: No OFD packet to send [09:33:21]OFD Sender: No OFD packet to send [09:33:26]OFD Sender: No OFD packet to send [09:33:31]OFD Sender: No OFD packet to send [09:33:36]OFD Sender: No OFD packet to send [09:33:41]OFD Sender: No OFD packet to send [09:33:46]OFD Sender: No OFD packet to send [09:33:51]OFD Sender: No OFD packet to send [09:33:56]OFD Sender: No OFD packet to send [09:34:01]OFD Sender: No OFD packet to send [09:34:06]OFD Sender: No OFD packet to send [09:34:10]accept exits with 9 [09:34:10]New connection [09:34:10]New thread 3067415908 created [09:34:10]Thread 3067559268 joined [09:34:10]Waiting for new connection... [09:34:10] Sock 9.Parse request [09:34:10]Sock 9.Check first char [09:34:10]Sock 9.First char is OK [09:34:10]request: POST /json_proto HTTP/1.0 [09:34:10]Method: POST [09:34:10]URL: /json_proto [09:34:10]Method is POST - this is cgi request [09:34:10]url: /json_proto [09:34:10]query_string will be loaded in cgi processing [09:34:10]execute_cgi json_proto POST (null) [09:34:10]execute_cgi path=json_proto method=POST [09:34:10]POST find Content-Length [09:34:10]Host: 172.17.63.195:8080 [09:34:10]Content-Length: 682 [09:34:10]Content-Type: application/json [09:34:10] [09:34:10]POST finish read [09:34:10]Found Content-Length = 682 [09:34:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:34:10]execute_script... [09:34:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:34:10]POST & json_proto [09:34:10]process_json_proto [09:34:10]json parsed OK: [09:34:10]protocol is kg_v1.0 [09:34:10]action value=close_receipt [09:34:10]process_action close_receipt [09:34:10]cmd_close_receipt [09:34:10]MH_GetDate [09:34:10]Write to MH i2c: F0 00 00 36 23 48 [09:34:10]Write i2c OK [09:34:10]MH_I2C_Read... [09:34:10]Read from MH i2c: F0 [09:34:10]MH_I2C_Read... [09:34:10]Read from MH i2c: F0 09 00 [09:34:10]MH_I2C_Read... [09:34:10]Read from MH i2c: F0 09 00 36 23 00 96 B7 1C 67 68 46 19 67 4F [09:34:10]GetLastDocTimeStamp 1729935187 [09:34:10]current date 1729935254 [09:34:10]FM_GetShiftState [09:34:10]SAM_PROTO_GetShiftState [09:34:10]wFMCommunicate request_size=4 [09:34:10]MH_SAM_APDU [09:34:10]CAPDU: 80 13 01 00 [09:34:10]Write to MH i2c: E2 08 00 37 23 80 13 01 00 00 00 00 00 D7 [09:34:10]Write i2c OK [09:34:10]MH_I2C_Read... [09:34:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:10]Read from MH i2c: E2 [09:34:10]MH_I2C_Read... [09:34:10]Read from MH i2c: E2 0E 00 [09:34:10]MH_I2C_Read... [09:34:10]Read from MH i2c: E2 0E 00 37 23 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E6 [09:34:10]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:34:10]wFMCommunicate OK [09:34:10]SAM_PROTO_GetShiftState done [09:34:10]FM_GetShiftState done [09:34:10]opened in 1729900879 [09:34:10]opened+sec_in_day 1729987279 [09:34:10]quantity*price = 100015 [09:34:10]sum+1 = 100017 [09:34:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 82 26.10.2024 09:34 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201320 ФПД: 69092586433580 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093414&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201320&fm=69092586433580&tin=02508201610067®Number=0000000000091777&sum=100000 [09:34:11]StoreToDocumentArchive [09:34:11]shift 543 fd 201320 [09:34:11]save to /storage/0543/doc_00201320 [09:34:11]save last doc name /storage/0543/doc_00201320 to /storage/kkm_last_doc_name [09:34:11]save OK [09:34:11]Clear old archive folders... [09:34:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:34:11]tlvbuf is 0176B0F0 [09:34:11]SAM_PROTO_ClearQueue [09:34:11]wFMCommunicate request_size=4 [09:34:11]MH_SAM_APDU [09:34:11]CAPDU: 80 09 00 00 [09:34:11]Write to MH i2c: E2 08 00 44 23 80 09 00 00 00 00 00 00 D9 [09:34:11]Write i2c OK [09:34:11]MH_I2C_Read... [09:34:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:34:12]Read from MH i2c: E2 [09:34:12]MH_I2C_Read... [09:34:12]Read from MH i2c: E2 03 00 [09:34:12]MH_I2C_Read... [09:34:12]Read from MH i2c: E2 03 00 44 23 00 90 00 DB [09:34:12]RAPDU: 90 00 [09:34:12]wFMCommunicate OK [09:34:12]SAM_PROTO_ClearQueue done [09:34:12]KKMCreateOFDPacket [09:34:12]OFDProtocolAddRootSTLVToBuf [09:34:12]FM_MakeSignedData [09:34:12]FM_MakeSignedData [09:34:12]SAM_PROTO_SignData [09:34:12]wFMCommunicate request_size=4 [09:34:12]MH_SAM_APDU [09:34:12]CAPDU: 80 0D 01 02 [09:34:12]Write to MH i2c: E2 08 00 45 23 80 0D 01 02 00 00 00 00 E1 [09:34:12]Write i2c OK [09:34:12]MH_I2C_Read... [09:34:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:34:12]Read from MH i2c: E2 [09:34:12]MH_I2C_Read... [09:34:12]Read from MH i2c: E2 03 00 [09:34:12]MH_I2C_Read... [09:34:12]Read from MH i2c: E2 03 00 45 23 00 90 00 DC [09:34:12]RAPDU: 90 00 [09:34:12]wFMCommunicate OK [09:34:12]wFMCommunicate request_size=255 [09:34:12]MH_SAM_APDU [09:34:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 52 00 00 00 F4 03 04 00 96 B7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 68 12 03 00 35 04 06 00 3E [09:34:12]Write to MH i2c: E2 02 01 46 23 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 32 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 52 00 00 00 F4 03 04 00 96 B7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 68 12 03 00 35 04 06 00 3E 00 00 6D [09:34:12]Write i2c OK [09:34:12]MH_I2C_Read... [09:34:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:12]Read from MH i2c: E2 [09:34:12]MH_I2C_Read... [09:34:12]Read from MH i2c: E2 03 00 [09:34:12]MH_I2C_Read... [09:34:12]Read from MH i2c: E2 03 00 46 23 00 90 00 DD [09:34:12]RAPDU: 90 00 [09:34:12]wFMCommunicate OK [09:34:12]wFMCommunicate request_size=10 [09:34:12]MH_SAM_APDU [09:34:12]CAPDU: 80 0D 02 02 05 D6 DF 12 2C 2C [09:34:12]Write to MH i2c: E2 0D 00 47 23 80 0D 02 02 05 00 D6 DF 12 2C 2C 00 00 0D [09:34:12]Write i2c OK [09:34:12]MH_I2C_Read... [09:34:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:12]Read from MH i2c: E2 [09:34:12]MH_I2C_Read... [09:34:12]Read from MH i2c: E2 03 00 [09:34:12]MH_I2C_Read... [09:34:12]Read from MH i2c: E2 03 00 47 23 00 90 00 DE [09:34:12]RAPDU: 90 00 [09:34:12]wFMCommunicate OK [09:34:12]wFMCommunicate request_size=4 [09:34:12]MH_SAM_APDU [09:34:12]CAPDU: 80 0D 03 02 [09:34:12]Write to MH i2c: E2 08 00 48 23 80 0D 03 02 00 00 00 00 E6 [09:34:12]Write i2c OK [09:34:12]MH_I2C_Read... [09:34:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:34:12]Read from MH i2c: E2 [09:34:12]MH_I2C_Read... [09:34:12]Read from MH i2c: E2 0B 00 [09:34:12]MH_I2C_Read... [09:34:12]Read from MH i2c: E2 0B 00 48 23 00 27 00 AB DB 31 46 5A 45 90 00 AA [09:34:12]RAPDU: 27 00 AB DB 31 46 5A 45 90 00 [09:34:12]wFMCommunicate OK [09:34:12]SAM_PROTO_SignData done [09:34:12]FM_MakeSignedData done [09:34:12]CreateOFDProtocolMessage [09:34:12]wFMCommunicate request_size=4 [09:34:12]MH_SAM_APDU [09:34:12]CAPDU: 80 11 00 00 [09:34:12]Write to MH i2c: E2 08 00 49 23 80 11 00 00 00 00 00 00 E6 [09:34:12]Write i2c OK [09:34:12]MH_I2C_Read... [09:34:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:12]Read from MH i2c: E2 [09:34:12]MH_I2C_Read... [09:34:12]Read from MH i2c: E2 17 00 [09:34:12]MH_I2C_Read... [09:34:12]Read from MH i2c: E2 17 00 49 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3B [09:34:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:34:12]wFMCommunicate OK [09:34:12]CreateOFDProtocolMessage done [09:34:12]OFDSenderStorePacket 201320 [09:34:12]StoreOFDPacket docnum=201320 [09:34:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 81 A5 07 01 1E 2E 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 32 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 52 00 00 00 F4 03 04 00 96 B7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 68 12 03 00 35 04 06 00 3E D6 DF 12 2C 2C 27 00 AB DB 31 46 5A 45 [09:34:12]CheckFolder [09:34:12]dirname=/storage/ofd_packets [09:34:12]CheckFolder done [09:34:12]ProducePacketName [09:34:12]name=ofd_packets/00201320 [09:34:12]NVStorageSaveData ofd_packets/00201320 [09:34:12]File name is /storage/ofd_packets/00201320 [09:34:12]Write 301 bytes [09:34:12]NVStorageSaveData done [09:34:12]OFDSenderStorePacket done [09:34:12]KKMCreateOFDPacket done [09:34:12]NVStorageSaveData kkm_last_timestamp [09:34:12]File name is /storage/kkm_last_timestamp [09:34:12]Write 4 bytes [09:34:12]NVStorageSaveData done [09:34:12]ExternCall_PrintAddStr [09:34:12]wPrintStart [09:34:12]Write to MH i2c: 01 00 00 4A 23 6D [09:34:12]Write i2c OK [09:34:12]MH_I2C_Read... [09:34:12]Read from MH i2c: 01 [09:34:12]MH_I2C_Read... [09:34:12]Read from MH i2c: 01 07 00 [09:34:12]MH_I2C_Read... [09:34:12]Read from MH i2c: 01 07 00 4A 23 00 00 00 00 00 FF 0F 82 [09:34:12]RasterBufferAndPrint [09:34:12]line Счет N : (1)449067 [09:34:12]line ИНН: 02508201610067 [09:34:12]line Контрольно-Кассовый Чек [09:34:12]line ПРОДАЖА [09:34:12]line ТРК (МРК, ГНК) : 52 [09:34:12]line Товар: 2710124130 [09:34:12]line Аи-92-К-2 [09:34:12]line 14.950 * 66.90 [09:34:12]line = 1000.16 [09:34:12]line НДС 12% НСП 1% [09:34:12]line > о реализуемом товаре [09:34:12]line ОКРУГЛЕНИЕ: -0.16 [09:34:12]line ИТОГО: 1000.00 [09:34:12]line Внесено: 1000.00 [09:34:12]line СДАЧА: 0.00 [09:34:12]line НСП 1% : 8.85 [09:34:12]line НДС 12% : 106.21 [09:34:12]line Наличными: 1000.00 [09:34:12]line Безнал.: 0.00 [09:34:12]line Место: АЗС № 171 "Партнер Нефть" [09:34:12]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:34:12]line СНО: Общий режим [09:34:12]line Чек 82 26.10.2024 09:34 [09:34:12]line Смена: 543 ФФД: 1.0 [09:34:12]line ЗНМ: 0300000109 [09:34:12]line РНМ: 0000000000091777 [09:34:12]line Версия ККМ: 001 [09:34:12]line ФМ: 0000000000871756 [09:34:12]line ФД: 201320 [09:34:12]line ФПД: 69092586433580 [09:34:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093414&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201320&fm=69092586433580&tin=02508201610067®Number=0000000000091777&sum=100000 [09:34:12]OFD Sender: Processing packet 201320 [packets to send 112, broken 111] [09:34:12]ProducePacketName [09:34:12]name=ofd_packets/00201320 [09:34:12]OFD Sender: To server: pG, [09:34:12]CommunicateWithHost lk.salyk.kg:30040 [09:34:12]ConnectInit lk.salyk.kg [09:34:12]written 0, free lines is 4095 [09:34:13]Write to MH i2c: 01 00 00 75 23 98 [09:34:13]Write i2c OK [09:34:13]MH_I2C_Read... [09:34:13]Read from MH i2c: 01 [09:34:13]MH_I2C_Read... [09:34:13]Read from MH i2c: 01 07 00 [09:34:13]MH_I2C_Read... [09:34:13]Read from MH i2c: 01 07 00 75 23 00 00 00 00 00 95 0C 40 [09:34:13]RasterBufferAndPrint [09:34:13]line [09:34:13]line [09:34:13]line [09:34:13]line [09:34:13]line [09:34:13]written 0, free lines is 3225 [09:34:13]MH_Cut [09:34:13]Write to MH i2c: D1 01 00 7C 23 01 71 [09:34:13]Write i2c OK [09:34:13]MH_I2C_Read... [09:34:13]Read from MH i2c: D1 [09:34:13]MH_I2C_Read... [09:34:13]Read from MH i2c: D1 01 00 [09:34:13]MH_I2C_Read... [09:34:13]Read from MH i2c: D1 01 00 7C 23 00 70 [09:34:13]Write to MH i2c: 01 00 00 7D 23 A0 [09:34:13]Write i2c OK [09:34:13]MH_I2C_Read... [09:34:14]*** Cut start [09:34:14]*** Purtial cut [09:34:14]*** Stage 1: CUTSNS_PIN = 1 [09:34:14]Read from MH i2c: 01 [09:34:14]MH_I2C_Read... [09:34:14]*** Stop cut motor [09:34:14]*** Cut end [09:34:14]Read from MH i2c: 01 07 00 [09:34:14]MH_I2C_Read... [09:34:14]Read from MH i2c: 01 07 00 7D 23 00 00 00 00 00 FF 0F B5 [09:34:14]process_action close_receipt done [09:34:14]requested_data is exist [09:34:14]produce_requested_data [09:34:14]requested_item fm.sn is exist - process it [09:34:14]wFMCommunicate request_size=4 [09:34:14]MH_SAM_APDU [09:34:14]CAPDU: 80 11 00 00 [09:34:14]Write to MH i2c: E2 08 00 7E 23 80 11 00 00 00 00 00 00 1B [09:34:14]Write i2c OK [09:34:14]MH_I2C_Read... [09:34:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:14]Read from MH i2c: E2 [09:34:14]MH_I2C_Read... [09:34:14]Read from MH i2c: E2 17 00 [09:34:14]MH_I2C_Read... [09:34:14]Read from MH i2c: E2 17 00 7E 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 70 [09:34:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:34:14]wFMCommunicate OK [09:34:14]requested_item fd.num is exist - process it [09:34:14]SAM_PROTO_GetFieldsCounters [09:34:14]wFMCommunicate request_size=4 [09:34:14]MH_SAM_APDU [09:34:14]CAPDU: 80 13 00 00 [09:34:14]Write to MH i2c: E2 08 00 7F 23 80 13 00 00 00 00 00 00 1E [09:34:14]Write i2c OK [09:34:14]MH_I2C_Read... [09:34:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:34:14]Read from MH i2c: E2 [09:34:14]MH_I2C_Read... [09:34:14]Read from MH i2c: E2 62 00 [09:34:14]MH_I2C_Read... [09:34:14]Read from MH i2c: E2 62 00 7F 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 68 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [09:34:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 68 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:34:14]wFMCommunicate OK [09:34:14]SAM_PROTO_GetFieldsCounters done [09:34:14]requested_item shift.num is exist - process it [09:34:14]requested_item shift.opened is exist - process it [09:34:14]req_shift_opened [09:34:14]FM_GetShiftState [09:34:14]SAM_PROTO_GetShiftState [09:34:14]wFMCommunicate request_size=4 [09:34:14]MH_SAM_APDU [09:34:14]CAPDU: 80 13 01 00 [09:34:14]Write to MH i2c: E2 08 00 80 23 80 13 01 00 00 00 00 00 20 [09:34:14]Write i2c OK [09:34:14]MH_I2C_Read... [09:34:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:14]Read from MH i2c: E2 [09:34:14]MH_I2C_Read... [09:34:14]Read from MH i2c: E2 0E 00 [09:34:14]MH_I2C_Read... [09:34:14]Read from MH i2c: E2 0E 00 80 23 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 2F [09:34:14]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:34:14]wFMCommunicate OK [09:34:14]SAM_PROTO_GetShiftState done [09:34:14]FM_GetShiftState done [09:34:14]req_shift_opened done [09:34:14]requested_item shift.open_date is exist - process it [09:34:14]req_shift_open_date [09:34:14]req_shift_open_date done [09:34:14]produce_requested_data done [09:34:14]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201320,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:34:14]process_action_free close_receipt [09:34:14]json_value_free [09:34:14]json_value_free done [09:34:14]process_json_proto returns [09:34:14]Send response to host [09:34:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201320,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:34:14]free response buf [09:34:14]execute_script done [09:34:14]execute_script returns [09:34:14]free content buf [09:34:14]Sock 9.Close socket [09:34:14]Sock 9.Thread stoped [09:34:20]accept exits with 7 [09:34:20]New connection [09:34:20]New thread 3067559268 created [09:34:20]Thread 3067415908 joined [09:34:20]Waiting for new connection... [09:34:20] Sock 7.Parse request [09:34:20]Sock 7.Check first char [09:34:20]Sock 7.First char is OK [09:34:20]request: POST /json_proto HTTP/1.0 [09:34:20]Method: POST [09:34:20]URL: /json_proto [09:34:20]Method is POST - this is cgi request [09:34:20]url: /json_proto [09:34:20]query_string will be loaded in cgi processing [09:34:20]execute_cgi json_proto POST (null) [09:34:20]execute_cgi path=json_proto method=POST [09:34:20]POST find Content-Length [09:34:20]Host: 172.17.63.195:8080 [09:34:20]Content-Length: 677 [09:34:20]Content-Type: application/json [09:34:20] [09:34:20]POST finish read [09:34:20]Found Content-Length = 677 [09:34:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:20]execute_script... [09:34: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)449068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:20]POST & json_proto [09:34:20]process_json_proto [09:34:20]json parsed OK: [09:34:20]protocol is kg_v1.0 [09:34:20]action value=close_receipt [09:34:20]process_action close_receipt [09:34:20]cmd_close_receipt [09:34:20]MH_GetDate [09:34:20]Write to MH i2c: F0 00 00 81 23 93 [09:34:20]Write i2c OK [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: F0 [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: F0 09 00 [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: F0 09 00 81 23 00 A0 B7 1C 67 68 46 19 67 A4 [09:34:20]GetLastDocTimeStamp 1729935254 [09:34:20]current date 1729935264 [09:34:20]FM_GetShiftState [09:34:20]SAM_PROTO_GetShiftState [09:34:20]wFMCommunicate request_size=4 [09:34:20]MH_SAM_APDU [09:34:20]CAPDU: 80 13 01 00 [09:34:20]Write to MH i2c: E2 08 00 82 23 80 13 01 00 00 00 00 00 22 [09:34:20]Write i2c OK [09:34:20]MH_I2C_Read... [09:34:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:20]Read from MH i2c: E2 [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: E2 0E 00 [09:34:20]MH_I2C_Read... [09:34:20]Read from MH i2c: E2 0E 00 82 23 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 31 [09:34:20]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:34:20]wFMCommunicate OK [09:34:20]SAM_PROTO_GetShiftState done [09:34:20]FM_GetShiftState done [09:34:20]opened in 1729900879 [09:34:20]opened+sec_in_day 1729987279 [09:34:20]quantity*price = 30038 [09:34:20]sum+1 = 30039 [09:34:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 83 26.10.2024 09:34 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201321 ФПД: 240442099022788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093424&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201321&fm=240442099022788&tin=02508201610067®Number=0000000000091777&sum=30000 [09:34:21]StoreToDocumentArchive [09:34:21]shift 543 fd 201321 [09:34:21]save to /storage/0543/doc_00201321 [09:34:21]save last doc name /storage/0543/doc_00201321 to /storage/kkm_last_doc_name [09:34:21]save OK [09:34:21]Clear old archive folders... [09:34:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:34:21]tlvbuf is 017189F0 [09:34:21]SAM_PROTO_ClearQueue [09:34:21]wFMCommunicate request_size=4 [09:34:21]MH_SAM_APDU [09:34:21]CAPDU: 80 09 00 00 [09:34:21]Write to MH i2c: E2 08 00 8F 23 80 09 00 00 00 00 00 00 24 [09:34:21]Write i2c OK [09:34:21]MH_I2C_Read... [09:34:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:34:21]Read from MH i2c: E2 [09:34:21]MH_I2C_Read... [09:34:21]Read from MH i2c: E2 03 00 [09:34:21]MH_I2C_Read... [09:34:21]Read from MH i2c: E2 03 00 8F 23 00 90 00 26 [09:34:21]RAPDU: 90 00 [09:34:21]wFMCommunicate OK [09:34:21]SAM_PROTO_ClearQueue done [09:34:21]KKMCreateOFDPacket [09:34:21]OFDProtocolAddRootSTLVToBuf [09:34:21]FM_MakeSignedData [09:34:21]FM_MakeSignedData [09:34:21]SAM_PROTO_SignData [09:34:21]wFMCommunicate request_size=4 [09:34:21]MH_SAM_APDU [09:34:21]CAPDU: 80 0D 01 02 [09:34:21]Write to MH i2c: E2 08 00 90 23 80 0D 01 02 00 00 00 00 2C [09:34:21]Write i2c OK [09:34:21]MH_I2C_Read... [09:34:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:34:21]Read from MH i2c: E2 [09:34:21]MH_I2C_Read... [09:34:21]Read from MH i2c: E2 03 00 [09:34:21]MH_I2C_Read... [09:34:21]Read from MH i2c: E2 03 00 90 23 00 90 00 27 [09:34:21]RAPDU: 90 00 [09:34:21]wFMCommunicate OK [09:34:21]wFMCommunicate request_size=255 [09:34:21]MH_SAM_APDU [09:34: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 A0 B7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 69 12 03 00 35 04 06 00 DA [09:34:21]Write to MH i2c: E2 02 01 91 23 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 A0 B7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 69 12 03 00 35 04 06 00 DA 00 00 5A [09:34:21]Write i2c OK [09:34:21]MH_I2C_Read... [09:34:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:22]Read from MH i2c: E2 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: E2 03 00 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: E2 03 00 91 23 00 90 00 28 [09:34:22]RAPDU: 90 00 [09:34:22]wFMCommunicate OK [09:34:22]wFMCommunicate request_size=10 [09:34:22]MH_SAM_APDU [09:34:22]CAPDU: 80 0D 02 02 05 AE 49 E6 BB C4 [09:34:22]Write to MH i2c: E2 0D 00 92 23 80 0D 02 02 05 00 AE 49 E6 BB C4 00 00 95 [09:34:22]Write i2c OK [09:34:22]MH_I2C_Read... [09:34:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:22]Read from MH i2c: E2 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: E2 03 00 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: E2 03 00 92 23 00 90 00 29 [09:34:22]RAPDU: 90 00 [09:34:22]wFMCommunicate OK [09:34:22]wFMCommunicate request_size=4 [09:34:22]MH_SAM_APDU [09:34:22]CAPDU: 80 0D 03 02 [09:34:22]Write to MH i2c: E2 08 00 93 23 80 0D 03 02 00 00 00 00 31 [09:34:22]Write i2c OK [09:34:22]MH_I2C_Read... [09:34:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:34:22]Read from MH i2c: E2 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: E2 0B 00 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: E2 0B 00 93 23 00 CD C6 FB 7B F0 4C 79 40 90 00 30 [09:34:22]RAPDU: CD C6 FB 7B F0 4C 79 40 90 00 [09:34:22]wFMCommunicate OK [09:34:22]SAM_PROTO_SignData done [09:34:22]FM_MakeSignedData done [09:34:22]CreateOFDProtocolMessage [09:34:22]wFMCommunicate request_size=4 [09:34:22]MH_SAM_APDU [09:34:22]CAPDU: 80 11 00 00 [09:34:22]Write to MH i2c: E2 08 00 94 23 80 11 00 00 00 00 00 00 31 [09:34:22]Write i2c OK [09:34:22]MH_I2C_Read... [09:34:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:22]Read from MH i2c: E2 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: E2 17 00 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: E2 17 00 94 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 86 [09:34:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:34:22]wFMCommunicate OK [09:34:22]CreateOFDProtocolMessage done [09:34:22]OFDSenderStorePacket 201321 [09:34:22]StoreOFDPacket docnum=201321 [09:34:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 32 2C 07 01 0B 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 A0 B7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 69 12 03 00 35 04 06 00 DA AE 49 E6 BB C4 CD C6 FB 7B F0 4C 79 40 [09:34:22]CheckFolder [09:34:22]dirname=/storage/ofd_packets [09:34:22]CheckFolder done [09:34:22]ProducePacketName [09:34:22]name=ofd_packets/00201321 [09:34:22]NVStorageSaveData ofd_packets/00201321 [09:34:22]File name is /storage/ofd_packets/00201321 [09:34:22]Write 301 bytes [09:34:22]NVStorageSaveData done [09:34:22]OFDSenderStorePacket done [09:34:22]KKMCreateOFDPacket done [09:34:22]NVStorageSaveData kkm_last_timestamp [09:34:22]File name is /storage/kkm_last_timestamp [09:34:22]Write 4 bytes [09:34:22]NVStorageSaveData done [09:34:22]ExternCall_PrintAddStr [09:34:22]wPrintStart [09:34:22]Write to MH i2c: 01 00 00 95 23 B8 [09:34:22]Write i2c OK [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: 01 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: 01 07 00 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: 01 07 00 95 23 00 00 00 00 00 FF 0F CD [09:34:22]RasterBufferAndPrint [09:34:22]line Счет N : (1)449068 [09:34:22]line ИНН: 02508201610067 [09:34:22]line Контрольно-Кассовый Чек [09:34:22]line ПРОДАЖА [09:34:22]line ТРК (МРК, ГНК) : 31 [09:34:22]line Товар: 2710124130 [09:34:22]line Аи-92-К-2 [09:34:22]line 4.490 * 66.90 [09:34:22]line = 300.38 [09:34:22]line НДС 12% НСП 1% [09:34:22]line > о реализуемом товаре [09:34:22]line ОКРУГЛЕНИЕ: -0.38 [09:34:22]line ИТОГО: 300.00 [09:34:22]line Внесено: 300.00 [09:34:22]line СДАЧА: 0.00 [09:34:22]line НСП 1% : 2.66 [09:34:22]line НДС 12% : 31.90 [09:34:22]line Наличными: 300.00 [09:34:22]line Безнал.: 0.00 [09:34:22]line Место: АЗС № 171 "Партнер Нефть" [09:34:22]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:34:22]line СНО: Общий режим [09:34:22]line Чек 83 26.10.2024 09:34 [09:34:22]line Смена: 543 ФФД: 1.0 [09:34:22]line ЗНМ: 0300000109 [09:34:22]line РНМ: 0000000000091777 [09:34:22]line Версия ККМ: 001 [09:34:22]line ФМ: 0000000000871756 [09:34:22]line ФД: 201321 [09:34:22]line ФПД: 240442099022788 [09:34:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093424&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201321&fm=240442099022788&tin=02508201610067®Number=0000000000091777&sum=30000 [09:34:22]written 0, free lines is 4095 [09:34:22]Write to MH i2c: 01 00 00 C0 23 E3 [09:34:22]Write i2c OK [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: 01 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: 01 07 00 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: 01 07 00 C0 23 00 00 00 00 00 9B 0C 91 [09:34:22]RasterBufferAndPrint [09:34:22]line [09:34:22]line [09:34:22]line [09:34:22]line [09:34:22]line [09:34:22]written 0, free lines is 3235 [09:34:22]MH_Cut [09:34:22]Write to MH i2c: D1 01 00 C7 23 01 BC [09:34:22]Write i2c OK [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: D1 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: D1 01 00 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: D1 01 00 C7 23 00 BB [09:34:22]Write to MH i2c: 01 00 00 C8 23 EB [09:34:22]Write i2c OK [09:34:22]MH_I2C_Read... [09:34:23]*** Cut start [09:34:23]*** Purtial cut [09:34:23]*** Stage 1: CUTSNS_PIN = 1 [09:34:23]Read from MH i2c: 01 [09:34:23]MH_I2C_Read... [09:34:23]*** Stop cut motor [09:34:23]*** Cut end [09:34:23]Read from MH i2c: 01 07 00 [09:34:23]MH_I2C_Read... [09:34:23]Read from MH i2c: 01 07 00 C8 23 00 00 00 00 00 FF 0F 00 [09:34:23]process_action close_receipt done [09:34:23]requested_data is exist [09:34:23]produce_requested_data [09:34:23]requested_item fm.sn is exist - process it [09:34:23]wFMCommunicate request_size=4 [09:34:23]MH_SAM_APDU [09:34:23]CAPDU: 80 11 00 00 [09:34:23]Write to MH i2c: E2 08 00 C9 23 80 11 00 00 00 00 00 00 66 [09:34:23]Write i2c OK [09:34:23]MH_I2C_Read... [09:34:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:24]Read from MH i2c: E2 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 17 00 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 17 00 C9 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BB [09:34:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:34:24]wFMCommunicate OK [09:34:24]requested_item fd.num is exist - process it [09:34:24]SAM_PROTO_GetFieldsCounters [09:34:24]wFMCommunicate request_size=4 [09:34:24]MH_SAM_APDU [09:34:24]CAPDU: 80 13 00 00 [09:34:24]Write to MH i2c: E2 08 00 CA 23 80 13 00 00 00 00 00 00 69 [09:34:24]Write i2c OK [09:34:24]MH_I2C_Read... [09:34:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:34:24]Read from MH i2c: E2 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 62 00 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 62 00 CA 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 69 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [09:34:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 69 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:34:24]wFMCommunicate OK [09:34:24]SAM_PROTO_GetFieldsCounters done [09:34:24]requested_item shift.num is exist - process it [09:34:24]requested_item shift.opened is exist - process it [09:34:24]req_shift_opened [09:34:24]FM_GetShiftState [09:34:24]SAM_PROTO_GetShiftState [09:34:24]wFMCommunicate request_size=4 [09:34:24]MH_SAM_APDU [09:34:24]CAPDU: 80 13 01 00 [09:34:24]Write to MH i2c: E2 08 00 CB 23 80 13 01 00 00 00 00 00 6B [09:34:24]Write i2c OK [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 [09:34:24]MH_I2C_Read... [09:34:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:24]Read from MH i2c: E2 0E 00 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 0E 00 CB 23 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 7A [09:34:24]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:34:24]wFMCommunicate OK [09:34:24]SAM_PROTO_GetShiftState done [09:34:24]FM_GetShiftState done [09:34:24]req_shift_opened done [09:34:24]requested_item shift.open_date is exist - process it [09:34:24]req_shift_open_date [09:34:24]req_shift_open_date done [09:34:24]produce_requested_data done [09:34:24]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201321,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:34:24]process_action_free close_receipt [09:34:24]json_value_free [09:34:24]json_value_free done [09:34:24]process_json_proto returns [09:34:24]Send response to host [09:34:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201321,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:34:24]free response buf [09:34:24]execute_script done [09:34:24]execute_script returns [09:34:24]free content buf [09:34:24]Sock 7.Close socket [09:34:24]Sock 7.Thread stoped [09:36:02]accept exits with 9 [09:36:02]New connection [09:36:02]New thread 3067415908 created [09:36:02]Thread 3067559268 joined [09:36:02]Waiting for new connection... [09:36:02] Sock 9.Parse request [09:36:02]Sock 9.Check first char [09:36:02]Sock 9.First char is OK [09:36:02]request: POST /json_proto HTTP/1.0 [09:36:02]Method: POST [09:36:02]URL: /json_proto [09:36:02]Method is POST - this is cgi request [09:36:02]url: /json_proto [09:36:02]query_string will be loaded in cgi processing [09:36:02]execute_cgi json_proto POST (null) [09:36:02]execute_cgi path=json_proto method=POST [09:36:02]POST find Content-Length [09:36:02]Host: 172.17.63.195:8080 [09:36:02]Content-Length: 682 [09:36:02]Content-Type: application/json [09:36:02] [09:36:02]POST finish read [09:36:02]Found Content-Length = 682 [09:36:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:36:02]execute_script... [09:36: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)449069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:36:02]POST & json_proto [09:36:02]process_json_proto [09:36:02]json parsed OK: [09:36:02]protocol is kg_v1.0 [09:36:02]action value=close_receipt [09:36:02]process_action close_receipt [09:36:02]cmd_close_receipt [09:36:02]MH_GetDate [09:36:02]Write to MH i2c: F0 00 00 CC 23 DE [09:36:02]Write i2c OK [09:36:02]MH_I2C_Read... [09:36:02]Read from MH i2c: F0 [09:36:02]MH_I2C_Read... [09:36:02]Read from MH i2c: F0 09 00 [09:36:02]MH_I2C_Read... [09:36:02]Read from MH i2c: F0 09 00 CC 23 00 06 B8 1C 67 68 46 19 67 56 [09:36:02]GetLastDocTimeStamp 1729935264 [09:36:02]current date 1729935366 [09:36:02]FM_GetShiftState [09:36:02]SAM_PROTO_GetShiftState [09:36:02]wFMCommunicate request_size=4 [09:36:02]MH_SAM_APDU [09:36:02]CAPDU: 80 13 01 00 [09:36:02]Write to MH i2c: E2 08 00 CD 23 80 13 01 00 00 00 00 00 6D [09:36:02]Write i2c OK [09:36:02]MH_I2C_Read... [09:36:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:02]Read from MH i2c: E2 [09:36:02]MH_I2C_Read... [09:36:02]Read from MH i2c: E2 0E 00 [09:36:02]MH_I2C_Read... [09:36:02]Read from MH i2c: E2 0E 00 CD 23 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 7C [09:36:02]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:36:02]wFMCommunicate OK [09:36:02]SAM_PROTO_GetShiftState done [09:36:02]FM_GetShiftState done [09:36:02]opened in 1729900879 [09:36:02]opened+sec_in_day 1729987279 [09:36:02]quantity*price = 100015 [09:36:02]sum+1 = 100017 [09:36:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 84 26.10.2024 09:36 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201322 ФПД: 106704512991427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093606&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201322&fm=106704512991427&tin=02508201610067®Number=0000000000091777&sum=100000 [09:36:04]StoreToDocumentArchive [09:36:04]shift 543 fd 201322 [09:36:04]save to /storage/0543/doc_00201322 [09:36:04]save last doc name /storage/0543/doc_00201322 to /storage/kkm_last_doc_name [09:36:04]save OK [09:36:04]Clear old archive folders... [09:36:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:36:04]tlvbuf is B6FE9320 [09:36:04]SAM_PROTO_ClearQueue [09:36:04]wFMCommunicate request_size=4 [09:36:04]MH_SAM_APDU [09:36:04]CAPDU: 80 09 00 00 [09:36:04]Write to MH i2c: E2 08 00 DA 23 80 09 00 00 00 00 00 00 6F [09:36:04]Write i2c OK [09:36:04]MH_I2C_Read... [09:36:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:04]Read from MH i2c: E2 [09:36:04]MH_I2C_Read... [09:36:04]Read from MH i2c: E2 03 00 [09:36:04]MH_I2C_Read... [09:36:04]Read from MH i2c: E2 03 00 DA 23 00 90 00 71 [09:36:04]RAPDU: 90 00 [09:36:04]wFMCommunicate OK [09:36:04]SAM_PROTO_ClearQueue done [09:36:04]KKMCreateOFDPacket [09:36:04]OFDProtocolAddRootSTLVToBuf [09:36:04]FM_MakeSignedData [09:36:04]FM_MakeSignedData [09:36:04]SAM_PROTO_SignData [09:36:04]wFMCommunicate request_size=4 [09:36:04]MH_SAM_APDU [09:36:04]CAPDU: 80 0D 01 02 [09:36:04]Write to MH i2c: E2 08 00 DB 23 80 0D 01 02 00 00 00 00 77 [09:36:04]Write i2c OK [09:36:04]MH_I2C_Read... [09:36:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:04]Read from MH i2c: E2 [09:36:04]MH_I2C_Read... [09:36:04]Read from MH i2c: E2 03 00 [09:36:04]MH_I2C_Read... [09:36:04]Read from MH i2c: E2 03 00 DB 23 00 90 00 72 [09:36:04]RAPDU: 90 00 [09:36:04]wFMCommunicate OK [09:36:04]wFMCommunicate request_size=255 [09:36:04]MH_SAM_APDU [09:36: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 32 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 54 00 00 00 F4 03 04 00 06 B8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6A 12 03 00 35 04 06 00 61 [09:36:04]Write to MH i2c: E2 02 01 DC 23 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 32 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 54 00 00 00 F4 03 04 00 06 B8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6A 12 03 00 35 04 06 00 61 00 00 9B [09:36:04]Write i2c OK [09:36:04]MH_I2C_Read... [09:36:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:04]Read from MH i2c: E2 [09:36:04]MH_I2C_Read... [09:36:04]Read from MH i2c: E2 03 00 [09:36:04]MH_I2C_Read... [09:36:04]Read from MH i2c: E2 03 00 DC 23 00 90 00 73 [09:36:04]RAPDU: 90 00 [09:36:04]wFMCommunicate OK [09:36:04]wFMCommunicate request_size=10 [09:36:04]MH_SAM_APDU [09:36:04]CAPDU: 80 0D 02 02 05 0C 14 97 C0 C3 [09:36:04]Write to MH i2c: E2 0D 00 DD 23 80 0D 02 02 05 00 0C 14 97 C0 C3 00 00 BE [09:36:04]Write i2c OK [09:36:04]MH_I2C_Read... [09:36:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:04]Read from MH i2c: E2 [09:36:04]MH_I2C_Read... [09:36:04]Read from MH i2c: E2 03 00 [09:36:04]MH_I2C_Read... [09:36:04]Read from MH i2c: E2 03 00 DD 23 00 90 00 74 [09:36:04]RAPDU: 90 00 [09:36:04]wFMCommunicate OK [09:36:04]wFMCommunicate request_size=4 [09:36:04]MH_SAM_APDU [09:36:04]CAPDU: 80 0D 03 02 [09:36:04]Write to MH i2c: E2 08 00 DE 23 80 0D 03 02 00 00 00 00 7C [09:36:04]Write i2c OK [09:36:04]MH_I2C_Read... [09:36:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:04]Read from MH i2c: E2 [09:36:04]MH_I2C_Read... [09:36:04]Read from MH i2c: E2 0B 00 [09:36:04]MH_I2C_Read... [09:36:04]Read from MH i2c: E2 0B 00 DE 23 00 1C 43 E6 DD FD B5 C4 4E 90 00 63 [09:36:04]RAPDU: 1C 43 E6 DD FD B5 C4 4E 90 00 [09:36:04]wFMCommunicate OK [09:36:04]SAM_PROTO_SignData done [09:36:04]FM_MakeSignedData done [09:36:04]CreateOFDProtocolMessage [09:36:04]wFMCommunicate request_size=4 [09:36:04]MH_SAM_APDU [09:36:04]CAPDU: 80 11 00 00 [09:36:04]Write to MH i2c: E2 08 00 DF 23 80 11 00 00 00 00 00 00 7C [09:36:04]Write i2c OK [09:36:04]MH_I2C_Read... [09:36:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:04]Read from MH i2c: E2 [09:36:04]MH_I2C_Read... [09:36:04]Read from MH i2c: E2 17 00 [09:36:04]MH_I2C_Read... [09:36:04]Read from MH i2c: E2 17 00 DF 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D1 [09:36:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:36:04]wFMCommunicate OK [09:36:04]CreateOFDProtocolMessage done [09:36:04]OFDSenderStorePacket 201322 [09:36:04]StoreOFDPacket docnum=201322 [09:36:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 2D 03 07 01 DD 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 54 00 00 00 F4 03 04 00 06 B8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6A 12 03 00 35 04 06 00 61 0C 14 97 C0 C3 1C 43 E6 DD FD B5 C4 4E [09:36:04]CheckFolder [09:36:04]dirname=/storage/ofd_packets [09:36:04]CheckFolder done [09:36:04]ProducePacketName [09:36:04]name=ofd_packets/00201322 [09:36:04]NVStorageSaveData ofd_packets/00201322 [09:36:04]File name is /storage/ofd_packets/00201322 [09:36:04]Write 301 bytes [09:36:04]NVStorageSaveData done [09:36:04]OFDSenderStorePacket done [09:36:04]KKMCreateOFDPacket done [09:36:04]NVStorageSaveData kkm_last_timestamp [09:36:04]File name is /storage/kkm_last_timestamp [09:36:04]Write 4 bytes [09:36:04]NVStorageSaveData done [09:36:04]ExternCall_PrintAddStr [09:36:04]wPrintStart [09:36:04]Write to MH i2c: 01 00 00 E0 23 03 [09:36:04]Write i2c OK [09:36:04]MH_I2C_Read... [09:36:04]Read from MH i2c: 01 [09:36:04]MH_I2C_Read... [09:36:04]Read from MH i2c: 01 07 00 [09:36:04]MH_I2C_Read... [09:36:04]Read from MH i2c: 01 07 00 E0 23 00 00 00 00 00 FF 0F 18 [09:36:04]RasterBufferAndPrint [09:36:04]line Счет N : (1)449069 [09:36:04]line ИНН: 02508201610067 [09:36:04]line Контрольно-Кассовый Чек [09:36:04]line ПРОДАЖА [09:36:04]line ТРК (МРК, ГНК) : 52 [09:36:04]line Товар: 2710124130 [09:36:04]line Аи-92-К-2 [09:36:04]line 14.950 * 66.90 [09:36:04]line = 1000.16 [09:36:04]line НДС 12% НСП 1% [09:36:04]line > о реализуемом товаре [09:36:04]line ОКРУГЛЕНИЕ: -0.16 [09:36:04]line ИТОГО: 1000.00 [09:36:04]line Внесено: 1000.00 [09:36:04]line СДАЧА: 0.00 [09:36:04]line НСП 1% : 8.85 [09:36:04]line НДС 12% : 106.21 [09:36:04]line Наличными: 1000.00 [09:36:04]line Безнал.: 0.00 [09:36:04]line Место: АЗС № 171 "Партнер Нефть" [09:36:04]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:36:04]line СНО: Общий режим [09:36:04]line Чек 84 26.10.2024 09:36 [09:36:04]line Смена: 543 ФФД: 1.0 [09:36:04]line ЗНМ: 0300000109 [09:36:04]line РНМ: 0000000000091777 [09:36:04]line Версия ККМ: 001 [09:36:04]line ФМ: 0000000000871756 [09:36:04]line ФД: 201322 [09:36:04]line ФПД: 106704512991427 [09:36:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093606&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201322&fm=106704512991427&tin=02508201610067®Number=0000000000091777&sum=100000 [09:36:04]written 0, free lines is 4095 [09:36:05]Write to MH i2c: 01 00 00 0B 24 2F [09:36:05]Write i2c OK [09:36:05]MH_I2C_Read... [09:36:05]Read from MH i2c: 01 [09:36:05]MH_I2C_Read... [09:36:05]Read from MH i2c: 01 07 00 [09:36:05]MH_I2C_Read... [09:36:05]Read from MH i2c: 01 07 00 0B 24 00 00 00 00 00 99 0C DB [09:36:05]RasterBufferAndPrint [09:36:05]line [09:36:05]line [09:36:05]line [09:36:05]line [09:36:05]line [09:36:05]written 0, free lines is 3229 [09:36:05]MH_Cut [09:36:05]Write to MH i2c: D1 01 00 12 24 01 08 [09:36:05]Write i2c OK [09:36:05]MH_I2C_Read... [09:36:05]Read from MH i2c: D1 [09:36:05]MH_I2C_Read... [09:36:05]Read from MH i2c: D1 01 00 [09:36:05]MH_I2C_Read... [09:36:05]Read from MH i2c: D1 01 00 12 24 00 07 [09:36:05]Write to MH i2c: 01 00 00 13 24 37 [09:36:05]Write i2c OK [09:36:05]MH_I2C_Read... [09:36:06]*** Cut start [09:36:06]*** Purtial cut [09:36:06]*** Stage 1: CUTSNS_PIN = 1 [09:36:06]Read from MH i2c: 01 [09:36:06]MH_I2C_Read... [09:36:06]Read from MH i2c: 01 07 00 [09:36:06]MH_I2C_Read... [09:36:06]*** Stop cut motor [09:36:06]*** Cut end [09:36:06]Read from MH i2c: 01 07 00 13 24 00 00 00 00 00 FF 0F 4C [09:36:06]process_action close_receipt done [09:36:06]requested_data is exist [09:36:06]produce_requested_data [09:36:06]requested_item fm.sn is exist - process it [09:36:06]wFMCommunicate request_size=4 [09:36:06]MH_SAM_APDU [09:36:06]CAPDU: 80 11 00 00 [09:36:06]Write to MH i2c: E2 08 00 14 24 80 11 00 00 00 00 00 00 B2 [09:36:06]Write i2c OK [09:36:06]MH_I2C_Read... [09:36:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:06]Read from MH i2c: E2 [09:36:06]MH_I2C_Read... [09:36:06]Read from MH i2c: E2 17 00 [09:36:06]MH_I2C_Read... [09:36:06]Read from MH i2c: E2 17 00 14 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 07 [09:36:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:36:06]wFMCommunicate OK [09:36:06]requested_item fd.num is exist - process it [09:36:06]SAM_PROTO_GetFieldsCounters [09:36:06]wFMCommunicate request_size=4 [09:36:06]MH_SAM_APDU [09:36:06]CAPDU: 80 13 00 00 [09:36:06]Write to MH i2c: E2 08 00 15 24 80 13 00 00 00 00 00 00 B5 [09:36:06]Write i2c OK [09:36:06]MH_I2C_Read... [09:36:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:06]Read from MH i2c: E2 [09:36:06]MH_I2C_Read... [09:36:06]Read from MH i2c: E2 62 00 [09:36:06]MH_I2C_Read... [09:36:06]Read from MH i2c: E2 62 00 15 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6A 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [09:36:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6A 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:36:06]wFMCommunicate OK [09:36:06]SAM_PROTO_GetFieldsCounters done [09:36:06]requested_item shift.num is exist - process it [09:36:06]requested_item shift.opened is exist - process it [09:36:06]req_shift_opened [09:36:06]FM_GetShiftState [09:36:06]SAM_PROTO_GetShiftState [09:36:06]wFMCommunicate request_size=4 [09:36:06]MH_SAM_APDU [09:36:06]CAPDU: 80 13 01 00 [09:36:06]Write to MH i2c: E2 08 00 16 24 80 13 01 00 00 00 00 00 B7 [09:36:06]Write i2c OK [09:36:06]MH_I2C_Read... [09:36:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:06]Read from MH i2c: E2 [09:36:06]MH_I2C_Read... [09:36:06]Read from MH i2c: E2 0E 00 [09:36:06]MH_I2C_Read... [09:36:06]Read from MH i2c: E2 0E 00 16 24 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C6 [09:36:06]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:36:06]wFMCommunicate OK [09:36:06]SAM_PROTO_GetShiftState done [09:36:06]FM_GetShiftState done [09:36:06]req_shift_opened done [09:36:06]requested_item shift.open_date is exist - process it [09:36:06]req_shift_open_date [09:36:06]req_shift_open_date done [09:36:06]produce_requested_data done [09:36:06]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201322,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:36:06]process_action_free close_receipt [09:36:06]json_value_free [09:36:06]json_value_free done [09:36:06]process_json_proto returns [09:36:06]Send response to host [09:36:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201322,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:36:06]free response buf [09:36:06]execute_script done [09:36:06]execute_script returns [09:36:06]free content buf [09:36:06]Sock 9.Close socket [09:36:06]Sock 9.Thread stoped [09:36:22]ConnectInit Can't connect to host [09:36:22]CommunicateWithHost connect error [09:36:22]CommunicateWithHost err = -1 [09:36:22]OFD Sender: Server communicate error [09:36:23]OFD Sender: Processing packet 201320 [packets to send 114, broken 111] [09:36:23]ProducePacketName [09:36:23]name=ofd_packets/00201320 [09:36:23]OFD Sender: To server: pG, [09:36:23]CommunicateWithHost lk.salyk.kg:30040 [09:36:23]ConnectInit lk.salyk.kg [09:36:23]Connected sock=9 [09:36:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 81 A5 07 01 1E 2E 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 32 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 52 00 00 00 F4 03 04 00 96 B7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 68 12 03 00 35 04 06 00 3E D6 DF 12 2C 2C 27 00 AB DB 31 46 5A 45 [09:36:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 5F F3 47 00 49 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 68 12 03 00 F4 03 04 00 C2 63 1C 67 B6 04 01 00 00 34 72 0D CA 43 73 06 B9 [09:36:23]CommunicateWithHost err = 0 [09:36:23]CheckOFDResponse [09:36:23]1017 (14) - 77093643461234 [09:36:23]1041 (16) - 0000000000871756 [09:36:23]1040 (4) - 201320 [09:36:23]1012 (4) - 26.10.2024 03:36 [09:36:23]1206 (1) - 0 [09:36:23]OFD Sender: Remove packet 201320 [09:36:23]ProducePacketName [09:36:23]name=ofd_packets/00201320 [09:36:23]NVStorageDeleteData [09:36:23]OFD Sender: Processing packet 201321 [packets to send 113, broken 111] [09:36:23]ProducePacketName [09:36:23]name=ofd_packets/00201321 [09:36:23]OFD Sender: To server: pG, [09:36:23]CommunicateWithHost lk.salyk.kg:30040 [09:36:23]ConnectInit lk.salyk.kg [09:36:24]Connected sock=9 [09:36:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 32 2C 07 01 0B 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 A0 B7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 69 12 03 00 35 04 06 00 DA AE 49 E6 BB C4 CD C6 FB 7B F0 4C 79 40 [09:36:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 9C 55 47 00 50 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 69 12 03 00 F4 03 04 00 C3 63 1C 67 B6 04 01 00 00 C2 BA C9 66 37 B4 7C 6A [09:36:24]CommunicateWithHost err = 0 [09:36:24]CheckOFDResponse [09:36:24]1017 (14) - 77093643461234 [09:36:24]1041 (16) - 0000000000871756 [09:36:24]1040 (4) - 201321 [09:36:24]1012 (4) - 26.10.2024 03:36 [09:36:24]1206 (1) - 0 [09:36:24]OFD Sender: Remove packet 201321 [09:36:24]ProducePacketName [09:36:24]name=ofd_packets/00201321 [09:36:24]NVStorageDeleteData [09:36:24]OFD Sender: Processing packet 201322 [packets to send 112, broken 111] [09:36:24]ProducePacketName [09:36:24]name=ofd_packets/00201322 [09:36:24]OFD Sender: To server: pG, [09:36:24]CommunicateWithHost lk.salyk.kg:30040 [09:36:24]ConnectInit lk.salyk.kg [09:36:24]Connected sock=9 [09:36:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 2D 03 07 01 DD 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 54 00 00 00 F4 03 04 00 06 B8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6A 12 03 00 35 04 06 00 61 0C 14 97 C0 C3 1C 43 E6 DD FD B5 C4 4E [09:36:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 90 B1 47 00 30 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6A 12 03 00 F4 03 04 00 C3 63 1C 67 B6 04 01 00 00 74 B0 1E 3D 89 10 BE 76 [09:36:25]CommunicateWithHost err = 0 [09:36:25]CheckOFDResponse [09:36:25]1017 (14) - 77093643461234 [09:36:25]1041 (16) - 0000000000871756 [09:36:25]1040 (4) - 201322 [09:36:25]1012 (4) - 26.10.2024 03:36 [09:36:25]1206 (1) - 0 [09:36:25]OFD Sender: Remove packet 201322 [09:36:25]ProducePacketName [09:36:25]name=ofd_packets/00201322 [09:36:25]NVStorageDeleteData [09:36:25]OFD Sender: No OFD packet to send [09:36:30]OFD Sender: No OFD packet to send [09:36:35]OFD Sender: No OFD packet to send [09:36:38]accept exits with 7 [09:36:38]New connection [09:36:38]New thread 3067559268 created [09:36:38]Thread 3067415908 joined [09:36:38]Waiting for new connection... [09:36:38] Sock 7.Parse request [09:36:38]Sock 7.Check first char [09:36:38]Sock 7.First char is OK [09:36:38]request: POST /json_proto HTTP/1.0 [09:36:38]Method: POST [09:36:38]URL: /json_proto [09:36:38]Method is POST - this is cgi request [09:36:38]url: /json_proto [09:36:38]query_string will be loaded in cgi processing [09:36:38]execute_cgi json_proto POST (null) [09:36:38]execute_cgi path=json_proto method=POST [09:36:38]POST find Content-Length [09:36:38]Host: 172.17.63.195:8080 [09:36:38]Content-Length: 675 [09:36:38]Content-Type: application/json [09:36:38] [09:36:38]POST finish read [09:36:38]Found Content-Length = 675 [09:36:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 21.930, "sum" : 1500.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [09:36:38]execute_script... [09:36: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)449070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 21.930, "sum" : 1500.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [09:36:38]POST & json_proto [09:36:38]process_json_proto [09:36:38]json parsed OK: [09:36:38]protocol is kg_v1.0 [09:36:38]action value=close_receipt [09:36:38]process_action close_receipt [09:36:38]cmd_close_receipt [09:36:38]MH_GetDate [09:36:38]Write to MH i2c: F0 00 00 17 24 2A [09:36:38]Write i2c OK [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: F0 [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: F0 09 00 [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: F0 09 00 17 24 00 2A B8 1C 67 68 46 19 67 C6 [09:36:38]GetLastDocTimeStamp 1729935366 [09:36:38]current date 1729935402 [09:36:38]FM_GetShiftState [09:36:38]SAM_PROTO_GetShiftState [09:36:38]wFMCommunicate request_size=4 [09:36:38]MH_SAM_APDU [09:36:38]CAPDU: 80 13 01 00 [09:36:38]Write to MH i2c: E2 08 00 18 24 80 13 01 00 00 00 00 00 B9 [09:36:38]Write i2c OK [09:36:38]MH_I2C_Read... [09:36:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:38]Read from MH i2c: E2 [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: E2 0E 00 [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: E2 0E 00 18 24 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C8 [09:36:38]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:36:38]wFMCommunicate OK [09:36:38]SAM_PROTO_GetShiftState done [09:36:38]FM_GetShiftState done [09:36:38]opened in 1729900879 [09:36:38]opened+sec_in_day 1729987279 [09:36:38]quantity*price = 150001 [09:36:38]sum+1 = 150002 [09:36:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.29 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 85 26.10.2024 09:36 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201323 ФПД: 39847148790595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093642&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201323&fm=39847148790595&tin=02508201610067®Number=0000000000091777&sum=150000 [09:36:40]StoreToDocumentArchive [09:36:40]shift 543 fd 201323 [09:36:40]save to /storage/0543/doc_00201323 [09:36:40]save last doc name /storage/0543/doc_00201323 to /storage/kkm_last_doc_name [09:36:40]save OK [09:36:40]Clear old archive folders... [09:36:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:36:40]tlvbuf is B6F6E8B0 [09:36:40]SAM_PROTO_ClearQueue [09:36:40]wFMCommunicate request_size=4 [09:36:40]MH_SAM_APDU [09:36:40]CAPDU: 80 09 00 00 [09:36:40]Write to MH i2c: E2 08 00 25 24 80 09 00 00 00 00 00 00 BB [09:36:40]Write i2c OK [09:36:40]MH_I2C_Read... [09:36:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:40]Read from MH i2c: E2 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: E2 03 00 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: E2 03 00 25 24 00 90 00 BD [09:36:40]RAPDU: 90 00 [09:36:40]wFMCommunicate OK [09:36:40]SAM_PROTO_ClearQueue done [09:36:40]KKMCreateOFDPacket [09:36:40]OFDProtocolAddRootSTLVToBuf [09:36:40]FM_MakeSignedData [09:36:40]FM_MakeSignedData [09:36:40]SAM_PROTO_SignData [09:36:40]wFMCommunicate request_size=4 [09:36:40]MH_SAM_APDU [09:36:40]CAPDU: 80 0D 01 02 [09:36:40]Write to MH i2c: E2 08 00 26 24 80 0D 01 02 00 00 00 00 C3 [09:36:40]Write i2c OK [09:36:40]MH_I2C_Read... [09:36:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:40]Read from MH i2c: E2 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: E2 03 00 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: E2 03 00 26 24 00 90 00 BE [09:36:40]RAPDU: 90 00 [09:36:40]wFMCommunicate OK [09:36:40]wFMCommunicate request_size=255 [09:36:40]MH_SAM_APDU [09:36:40]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 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 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 39 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 55 00 00 00 F4 03 04 00 2A B8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6B 12 03 00 35 04 06 00 [09:36:40]Write to MH i2c: E2 02 01 27 24 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 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 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 39 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 55 00 00 00 F4 03 04 00 2A B8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6B 12 03 00 35 04 06 00 00 00 FB [09:36:40]Write i2c OK [09:36:40]MH_I2C_Read... [09:36:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:40]Read from MH i2c: E2 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: E2 03 00 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: E2 03 00 27 24 00 90 00 BF [09:36:40]RAPDU: 90 00 [09:36:40]wFMCommunicate OK [09:36:40]wFMCommunicate request_size=11 [09:36:40]MH_SAM_APDU [09:36:40]CAPDU: 80 0D 02 02 06 24 3D A3 26 23 43 [09:36:40]Write to MH i2c: E2 0E 00 28 24 80 0D 02 02 06 00 24 3D A3 26 23 43 00 00 62 [09:36:40]Write i2c OK [09:36:40]MH_I2C_Read... [09:36:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:40]Read from MH i2c: E2 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: E2 03 00 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: E2 03 00 28 24 00 90 00 C0 [09:36:40]RAPDU: 90 00 [09:36:40]wFMCommunicate OK [09:36:40]wFMCommunicate request_size=4 [09:36:40]MH_SAM_APDU [09:36:40]CAPDU: 80 0D 03 02 [09:36:40]Write to MH i2c: E2 08 00 29 24 80 0D 03 02 00 00 00 00 C8 [09:36:40]Write i2c OK [09:36:40]MH_I2C_Read... [09:36:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:40]Read from MH i2c: E2 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: E2 0B 00 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: E2 0B 00 29 24 00 FA 65 03 05 AF 28 64 C7 90 00 32 [09:36:40]RAPDU: FA 65 03 05 AF 28 64 C7 90 00 [09:36:40]wFMCommunicate OK [09:36:40]SAM_PROTO_SignData done [09:36:40]FM_MakeSignedData done [09:36:40]CreateOFDProtocolMessage [09:36:40]wFMCommunicate request_size=4 [09:36:40]MH_SAM_APDU [09:36:40]CAPDU: 80 11 00 00 [09:36:40]Write to MH i2c: E2 08 00 2A 24 80 11 00 00 00 00 00 00 C8 [09:36:40]Write i2c OK [09:36:40]MH_I2C_Read... [09:36:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:40]Read from MH i2c: E2 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: E2 17 00 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: E2 17 00 2A 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1D [09:36:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:36:40]wFMCommunicate OK [09:36:40]CreateOFDProtocolMessage done [09:36:40]OFDSenderStorePacket 201323 [09:36:40]StoreOFDPacket docnum=201323 [09:36:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 60 4A 08 01 D6 05 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 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 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 39 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 55 00 00 00 F4 03 04 00 2A B8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6B 12 03 00 35 04 06 00 24 3D A3 26 23 43 FA 65 03 05 AF 28 64 C7 [09:36:40]CheckFolder [09:36:40]dirname=/storage/ofd_packets [09:36:40]CheckFolder done [09:36:40]ProducePacketName [09:36:40]name=ofd_packets/00201323 [09:36:40]NVStorageSaveData ofd_packets/00201323 [09:36:40]File name is /storage/ofd_packets/00201323 [09:36:40]Write 302 bytes [09:36:40]NVStorageSaveData done [09:36:40]OFDSenderStorePacket done [09:36:40]KKMCreateOFDPacket done [09:36:40]NVStorageSaveData kkm_last_timestamp [09:36:40]File name is /storage/kkm_last_timestamp [09:36:40]Write 4 bytes [09:36:40]NVStorageSaveData done [09:36:40]ExternCall_PrintAddStr [09:36:40]wPrintStart [09:36:40]Write to MH i2c: 01 00 00 2B 24 4F [09:36:40]Write i2c OK [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: 01 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: 01 07 00 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: 01 07 00 2B 24 00 00 00 00 00 FF 0F 64 [09:36:40]RasterBufferAndPrint [09:36:40]line Счет N : (1)449070 [09:36:40]line ИНН: 02508201610067 [09:36:40]line Контрольно-Кассовый Чек [09:36:40]line ПРОДАЖА [09:36:40]line ТРК (МРК, ГНК) : 42 [09:36:40]line Товар: 2710124130 [09:36:40]line SUPER 92-К-5 [09:36:40]line 21.930 * 68.40 [09:36:40]line = 1500.01 [09:36:40]line НДС 12% НСП 1% [09:36:40]line > о реализуемом товаре [09:36:40]line ОКРУГЛЕНИЕ: -0.01 [09:36:40]line ИТОГО: 1500.00 [09:36:40]line Внесено: 1500.00 [09:36:40]line СДАЧА: 0.00 [09:36:40]line НСП 1% : 13.27 [09:36:40]line НДС 12% : 159.29 [09:36:40]line Наличными: 1500.00 [09:36:40]line Безнал.: 0.00 [09:36:40]line Место: АЗС № 171 "Партнер Нефть" [09:36:40]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:36:40]line СНО: Общий режим [09:36:40]line Чек 85 26.10.2024 09:36 [09:36:40]line Смена: 543 ФФД: 1.0 [09:36:40]line ЗНМ: 0300000109 [09:36:40]line РНМ: 0000000000091777 [09:36:40]line Версия ККМ: 001 [09:36:40]line ФМ: 0000000000871756 [09:36:40]line ФД: 201323 [09:36:40]line ФПД: 39847148790595 [09:36:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093642&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201323&fm=39847148790595&tin=02508201610067®Number=0000000000091777&sum=150000 [09:36:40]OFD Sender: Processing packet 201323 [packets to send 112, broken 111] [09:36:40]ProducePacketName [09:36:40]name=ofd_packets/00201323 [09:36:40]OFD Sender: To server: pG, [09:36:40]CommunicateWithHost lk.salyk.kg:30040 [09:36:40]ConnectInit lk.salyk.kg [09:36:40]written 0, free lines is 4095 [09:36:41]Connected sock=10 [09:36:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 60 4A 08 01 D6 05 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 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 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 39 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 55 00 00 00 F4 03 04 00 2A B8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6B 12 03 00 35 04 06 00 24 3D A3 26 23 43 FA 65 03 05 AF 28 64 C7 [09:36:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C7 91 47 00 93 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6B 12 03 00 F4 03 04 00 D4 63 1C 67 B6 04 01 00 00 B1 21 A1 E6 A3 FA 28 E1 [09:36:41]CommunicateWithHost err = 0 [09:36:41]CheckOFDResponse [09:36:41]1017 (14) - 77093643461234 [09:36:41]1041 (16) - 0000000000871756 [09:36:41]1040 (4) - 201323 [09:36:41]1012 (4) - 26.10.2024 03:36 [09:36:41]1206 (1) - 0 [09:36:41]OFD Sender: Remove packet 201323 [09:36:41]ProducePacketName [09:36:41]name=ofd_packets/00201323 [09:36:41]NVStorageDeleteData [09:36:41]Write to MH i2c: 01 00 00 56 24 7A [09:36:41]Write i2c OK [09:36:41]MH_I2C_Read... [09:36:41]Read from MH i2c: 01 [09:36:41]MH_I2C_Read... [09:36:41]Read from MH i2c: 01 07 00 [09:36:41]MH_I2C_Read... [09:36:41]Read from MH i2c: 01 07 00 56 24 00 00 00 00 00 AA 0C 37 [09:36:41]RasterBufferAndPrint [09:36:41]line [09:36:41]line [09:36:41]line [09:36:41]line [09:36:41]line [09:36:41]written 0, free lines is 3249 [09:36:41]MH_Cut [09:36:41]Write to MH i2c: D1 01 00 5D 24 01 53 [09:36:41]Write i2c OK [09:36:41]MH_I2C_Read... [09:36:41]Read from MH i2c: D1 [09:36:41]MH_I2C_Read... [09:36:41]Read from MH i2c: D1 01 00 [09:36:41]MH_I2C_Read... [09:36:41]Read from MH i2c: D1 01 00 5D 24 00 52 [09:36:41]Write to MH i2c: 01 00 00 5E 24 82 [09:36:41]Write i2c OK [09:36:41]MH_I2C_Read... [09:36:41]OFD Sender: No OFD packet to send [09:36:42]*** Cut start [09:36:42]*** Purtial cut [09:36:42]*** Stage 1: CUTSNS_PIN = 1 [09:36:42]Read from MH i2c: 01 [09:36:42]MH_I2C_Read... [09:36:42]*** Stop cut motor [09:36:42]*** Cut end [09:36:42]Read from MH i2c: 01 07 00 [09:36:42]MH_I2C_Read... [09:36:42]Read from MH i2c: 01 07 00 5E 24 00 00 00 00 00 FF 0F 97 [09:36:42]process_action close_receipt done [09:36:42]requested_data is exist [09:36:42]produce_requested_data [09:36:42]requested_item fm.sn is exist - process it [09:36:42]wFMCommunicate request_size=4 [09:36:42]MH_SAM_APDU [09:36:42]CAPDU: 80 11 00 00 [09:36:42]Write to MH i2c: E2 08 00 5F 24 80 11 00 00 00 00 00 00 FD [09:36:42]Write i2c OK [09:36:42]MH_I2C_Read... [09:36:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:42]Read from MH i2c: E2 [09:36:42]MH_I2C_Read... [09:36:42]Read from MH i2c: E2 17 00 [09:36:42]MH_I2C_Read... [09:36:42]Read from MH i2c: E2 17 00 5F 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 52 [09:36:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:36:42]wFMCommunicate OK [09:36:42]requested_item fd.num is exist - process it [09:36:42]SAM_PROTO_GetFieldsCounters [09:36:42]wFMCommunicate request_size=4 [09:36:42]MH_SAM_APDU [09:36:42]CAPDU: 80 13 00 00 [09:36:42]Write to MH i2c: E2 08 00 60 24 80 13 00 00 00 00 00 00 00 [09:36:42]Write i2c OK [09:36:42]MH_I2C_Read... [09:36:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:42]Read from MH i2c: E2 [09:36:42]MH_I2C_Read... [09:36:42]Read from MH i2c: E2 62 00 [09:36:42]MH_I2C_Read... [09:36:42]Read from MH i2c: E2 62 00 60 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6B 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [09:36:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6B 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:36:42]wFMCommunicate OK [09:36:42]SAM_PROTO_GetFieldsCounters done [09:36:42]requested_item shift.num is exist - process it [09:36:42]requested_item shift.opened is exist - process it [09:36:42]req_shift_opened [09:36:42]FM_GetShiftState [09:36:42]SAM_PROTO_GetShiftState [09:36:42]wFMCommunicate request_size=4 [09:36:42]MH_SAM_APDU [09:36:42]CAPDU: 80 13 01 00 [09:36:42]Write to MH i2c: E2 08 00 61 24 80 13 01 00 00 00 00 00 02 [09:36:42]Write i2c OK [09:36:42]MH_I2C_Read... [09:36:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:42]Read from MH i2c: E2 [09:36:42]MH_I2C_Read... [09:36:42]Read from MH i2c: E2 0E 00 [09:36:42]MH_I2C_Read... [09:36:42]Read from MH i2c: E2 0E 00 61 24 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 11 [09:36:42]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:36:42]wFMCommunicate OK [09:36:42]SAM_PROTO_GetShiftState done [09:36:42]FM_GetShiftState done [09:36:42]req_shift_opened done [09:36:42]requested_item shift.open_date is exist - process it [09:36:42]req_shift_open_date [09:36:42]req_shift_open_date done [09:36:42]produce_requested_data done [09:36:42]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201323,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:36:42]process_action_free close_receipt [09:36:42]json_value_free [09:36:42]json_value_free done [09:36:42]process_json_proto returns [09:36:42]Send response to host [09:36:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201323,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:36:42]free response buf [09:36:42]execute_script done [09:36:42]execute_script returns [09:36:42]free content buf [09:36:42]Sock 7.Close socket [09:36:42]Sock 7.Thread stoped [09:36:46]OFD Sender: No OFD packet to send [09:36:51]OFD Sender: No OFD packet to send [09:36:56]OFD Sender: No OFD packet to send [09:37:01]OFD Sender: No OFD packet to send [09:37:06]accept exits with 9 [09:37:06]New connection [09:37:06]New thread 3067415908 created [09:37:06]Thread 3067559268 joined [09:37:06]Waiting for new connection... [09:37:06] Sock 9.Parse request [09:37:06]Sock 9.Check first char [09:37:06]Sock 9.First char is OK [09:37:06]request: POST /json_proto HTTP/1.0 [09:37:06]Method: POST [09:37:06]URL: /json_proto [09:37:06]Method is POST - this is cgi request [09:37:06]url: /json_proto [09:37:06]query_string will be loaded in cgi processing [09:37:06]execute_cgi json_proto POST (null) [09:37:06]execute_cgi path=json_proto method=POST [09:37:06]POST find Content-Length [09:37:06]Host: 172.17.63.195:8080 [09:37:06]Content-Length: 674 [09:37:06]Content-Type: application/json [09:37:06] [09:37:06]POST finish read [09:37:06]Found Content-Length = 674 [09:37:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [09:37:06]execute_script... [09:37:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [09:37:06]POST & json_proto [09:37:06]process_json_proto [09:37:06]json parsed OK: [09:37:06]protocol is kg_v1.0 [09:37:06]action value=close_receipt [09:37:06]process_action close_receipt [09:37:06]cmd_close_receipt [09:37:06]MH_GetDate [09:37:06]Write to MH i2c: F0 00 00 62 24 75 [09:37:06]Write i2c OK [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: F0 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: F0 09 00 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: F0 09 00 62 24 00 45 B8 1C 67 68 46 19 67 2C [09:37:06]GetLastDocTimeStamp 1729935402 [09:37:06]current date 1729935429 [09:37:06]FM_GetShiftState [09:37:06]SAM_PROTO_GetShiftState [09:37:06]wFMCommunicate request_size=4 [09:37:06]MH_SAM_APDU [09:37:06]CAPDU: 80 13 01 00 [09:37:06]Write to MH i2c: E2 08 00 63 24 80 13 01 00 00 00 00 00 04 [09:37:06]Write i2c OK [09:37:06]MH_I2C_Read... [09:37:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:06]Read from MH i2c: E2 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: E2 0E 00 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: E2 0E 00 63 24 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 13 [09:37:06]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:37:06]wFMCommunicate OK [09:37:06]SAM_PROTO_GetShiftState done [09:37:06]FM_GetShiftState done [09:37:06]opened in 1729900879 [09:37:06]opened+sec_in_day 1729987279 [09:37:06]quantity*price = 50063 [09:37:06]sum+1 = 50064 [09:37:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 86 26.10.2024 09:37 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201324 ФПД: 138329957160846 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093710&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201324&fm=138329957160846&tin=02508201610067®Number=0000000000091777&sum=50000 [09:37:07]StoreToDocumentArchive [09:37:07]shift 543 fd 201324 [09:37:07]save to /storage/0543/doc_00201324 [09:37:07]save last doc name /storage/0543/doc_00201324 to /storage/kkm_last_doc_name [09:37:07]save OK [09:37:07]Clear old archive folders... [09:37:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:37:07]tlvbuf is 0176B950 [09:37:07]SAM_PROTO_ClearQueue [09:37:07]wFMCommunicate request_size=4 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 09 00 00 [09:37:07]Write to MH i2c: E2 08 00 70 24 80 09 00 00 00 00 00 00 06 [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:07]Read from MH i2c: E2 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 70 24 00 90 00 08 [09:37:07]RAPDU: 90 00 [09:37:07]wFMCommunicate OK [09:37:07]SAM_PROTO_ClearQueue done [09:37:07]KKMCreateOFDPacket [09:37:07]OFDProtocolAddRootSTLVToBuf [09:37:07]FM_MakeSignedData [09:37:07]FM_MakeSignedData [09:37:07]SAM_PROTO_SignData [09:37:07]wFMCommunicate request_size=4 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 0D 01 02 [09:37:07]Write to MH i2c: E2 08 00 71 24 80 0D 01 02 00 00 00 00 0E [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:07]Read from MH i2c: E2 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 71 24 00 90 00 09 [09:37:07]RAPDU: 90 00 [09:37:07]wFMCommunicate OK [09:37:07]wFMCommunicate request_size=255 [09:37:07]MH_SAM_APDU [09:37:07]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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 56 00 00 00 F4 03 04 00 46 B8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6C 12 03 00 35 04 06 00 7D CF 73 F5 [09:37:07]Write to MH i2c: E2 02 01 72 24 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 56 00 00 00 F4 03 04 00 46 B8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6C 12 03 00 35 04 06 00 7D CF 73 F5 00 00 4D [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:07]Read from MH i2c: E2 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 72 24 00 90 00 0A [09:37:07]RAPDU: 90 00 [09:37:07]wFMCommunicate OK [09:37:07]wFMCommunicate request_size=7 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 0D 02 02 02 57 8E [09:37:07]Write to MH i2c: E2 0A 00 73 24 80 0D 02 02 02 00 57 8E 00 00 FA [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:07]Read from MH i2c: E2 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 73 24 00 90 00 0B [09:37:07]RAPDU: 90 00 [09:37:07]wFMCommunicate OK [09:37:07]wFMCommunicate request_size=4 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 0D 03 02 [09:37:07]Write to MH i2c: E2 08 00 74 24 80 0D 03 02 00 00 00 00 13 [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:07]Read from MH i2c: E2 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 0B 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 0B 00 74 24 00 3B D6 EA FA A3 96 97 FE 90 00 D7 [09:37:07]RAPDU: 3B D6 EA FA A3 96 97 FE 90 00 [09:37:07]wFMCommunicate OK [09:37:07]SAM_PROTO_SignData done [09:37:07]FM_MakeSignedData done [09:37:07]CreateOFDProtocolMessage [09:37:07]wFMCommunicate request_size=4 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 11 00 00 [09:37:07]Write to MH i2c: E2 08 00 75 24 80 11 00 00 00 00 00 00 13 [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:08]Read from MH i2c: E2 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 17 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 17 00 75 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 68 [09:37:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:37:08]wFMCommunicate OK [09:37:08]CreateOFDProtocolMessage done [09:37:08]OFDSenderStorePacket 201324 [09:37:08]StoreOFDPacket docnum=201324 [09:37:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 58 D5 04 01 DA 13 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 56 00 00 00 F4 03 04 00 46 B8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6C 12 03 00 35 04 06 00 7D CF 73 F5 57 8E 3B D6 EA FA A3 96 97 FE [09:37:08]CheckFolder [09:37:08]dirname=/storage/ofd_packets [09:37:08]CheckFolder done [09:37:08]ProducePacketName [09:37:08]name=ofd_packets/00201324 [09:37:08]NVStorageSaveData ofd_packets/00201324 [09:37:08]File name is /storage/ofd_packets/00201324 [09:37:08]Write 298 bytes [09:37:08]NVStorageSaveData done [09:37:08]OFDSenderStorePacket done [09:37:08]KKMCreateOFDPacket done [09:37:08]NVStorageSaveData kkm_last_timestamp [09:37:08]File name is /storage/kkm_last_timestamp [09:37:08]Write 4 bytes [09:37:08]NVStorageSaveData done [09:37:08]ExternCall_PrintAddStr [09:37:08]wPrintStart [09:37:08]Write to MH i2c: 01 00 00 76 24 9A [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: 01 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: 01 07 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: 01 07 00 76 24 00 00 00 00 00 FF 0F AF [09:37:08]RasterBufferAndPrint [09:37:08]line Счет N : (1)449071 [09:37:08]line ИНН: 02508201610067 [09:37:08]line Контрольно-Кассовый Чек [09:37:08]line ПРОДАЖА [09:37:08]line ТРК (МРК, ГНК) : 21 [09:37:08]line Товар: 2710194210 [09:37:08]line ДТ-К-2 [09:37:08]line 6.570 * 76.20 [09:37:08]line = 500.63 [09:37:08]line НДС 12% НСП 1% [09:37:08]line > о реализуемом товаре [09:37:08]line ОКРУГЛЕНИЕ: -0.63 [09:37:08]line ИТОГО: 500.00 [09:37:08]line Внесено: 500.00 [09:37:08]line СДАЧА: 0.00 [09:37:08]line НСП 1% : 4.43 [09:37:08]line НДС 12% : 53.16 [09:37:08]line Наличными: 500.00 [09:37:08]line Безнал.: 0.00 [09:37:08]line Место: АЗС № 171 "Партнер Нефть" [09:37:08]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:37:08]line СНО: Общий режим [09:37:08]line Чек 86 26.10.2024 09:37 [09:37:08]line Смена: 543 ФФД: 1.0 [09:37:08]line ЗНМ: 0300000109 [09:37:08]line РНМ: 0000000000091777 [09:37:08]line Версия ККМ: 001 [09:37:08]line ФМ: 0000000000871756 [09:37:08]line ФД: 201324 [09:37:08]line ФПД: 138329957160846 [09:37:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093710&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201324&fm=138329957160846&tin=02508201610067®Number=0000000000091777&sum=50000 [09:37:08]OFD Sender: Processing packet 201324 [packets to send 112, broken 111] [09:37:08]ProducePacketName [09:37:08]name=ofd_packets/00201324 [09:37:08]OFD Sender: To server: pG, [09:37:08]CommunicateWithHost lk.salyk.kg:30040 [09:37:08]ConnectInit lk.salyk.kg [09:37:08]written 0, free lines is 4095 [09:37:08]Connected sock=10 [09:37:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 58 D5 04 01 DA 13 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 56 00 00 00 F4 03 04 00 46 B8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6C 12 03 00 35 04 06 00 7D CF 73 F5 57 8E 3B D6 EA FA A3 96 97 FE [09:37:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 98 98 47 00 04 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6C 12 03 00 F4 03 04 00 EF 63 1C 67 B6 04 01 00 00 DF AD D7 17 1F E3 E2 A5 [09:37:08]CommunicateWithHost err = 0 [09:37:08]CheckOFDResponse [09:37:08]1017 (14) - 77093643461234 [09:37:08]1041 (16) - 0000000000871756 [09:37:08]1040 (4) - 201324 [09:37:08]1012 (4) - 26.10.2024 03:37 [09:37:08]1206 (1) - 0 [09:37:08]OFD Sender: Remove packet 201324 [09:37:08]ProducePacketName [09:37:08]name=ofd_packets/00201324 [09:37:08]NVStorageDeleteData [09:37:08]Write to MH i2c: 01 00 00 A1 24 C5 [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: 01 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: 01 07 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: 01 07 00 A1 24 00 00 00 00 00 A2 0C 7A [09:37:08]RasterBufferAndPrint [09:37:08]line [09:37:08]line [09:37:08]line [09:37:08]line [09:37:08]line [09:37:08]written 0, free lines is 3240 [09:37:08]MH_Cut [09:37:08]Write to MH i2c: D1 01 00 A8 24 01 9E [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: D1 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: D1 01 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: D1 01 00 A8 24 00 9D [09:37:08]Write to MH i2c: 01 00 00 A9 24 CD [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:09]OFD Sender: No OFD packet to send [09:37:09]*** Cut start [09:37:09]*** Purtial cut [09:37:09]*** Stage 1: CUTSNS_PIN = 1 [09:37:09]Read from MH i2c: 01 [09:37:09]MH_I2C_Read... [09:37:09]*** Stop cut motor [09:37:09]*** Cut end [09:37:09]Read from MH i2c: 01 07 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: 01 07 00 A9 24 00 00 00 00 00 FF 0F E2 [09:37:09]process_action close_receipt done [09:37:09]requested_data is exist [09:37:09]produce_requested_data [09:37:09]requested_item fm.sn is exist - process it [09:37:09]wFMCommunicate request_size=4 [09:37:09]MH_SAM_APDU [09:37:09]CAPDU: 80 11 00 00 [09:37:09]Write to MH i2c: E2 08 00 AA 24 80 11 00 00 00 00 00 00 48 [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:09]Read from MH i2c: E2 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 17 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 17 00 AA 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9D [09:37:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:37:09]wFMCommunicate OK [09:37:09]requested_item fd.num is exist - process it [09:37:09]SAM_PROTO_GetFieldsCounters [09:37:09]wFMCommunicate request_size=4 [09:37:09]MH_SAM_APDU [09:37:09]CAPDU: 80 13 00 00 [09:37:09]Write to MH i2c: E2 08 00 AB 24 80 13 00 00 00 00 00 00 4B [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:10]Read from MH i2c: E2 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: E2 62 00 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: E2 62 00 AB 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6C 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [09:37:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6C 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:37:10]wFMCommunicate OK [09:37:10]SAM_PROTO_GetFieldsCounters done [09:37:10]requested_item shift.num is exist - process it [09:37:10]requested_item shift.opened is exist - process it [09:37:10]req_shift_opened [09:37:10]FM_GetShiftState [09:37:10]SAM_PROTO_GetShiftState [09:37:10]wFMCommunicate request_size=4 [09:37:10]MH_SAM_APDU [09:37:10]CAPDU: 80 13 01 00 [09:37:10]Write to MH i2c: E2 08 00 AC 24 80 13 01 00 00 00 00 00 4D [09:37:10]Write i2c OK [09:37:10]MH_I2C_Read... [09:37:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:10]Read from MH i2c: E2 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: E2 0E 00 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: E2 0E 00 AC 24 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 5C [09:37:10]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:37:10]wFMCommunicate OK [09:37:10]SAM_PROTO_GetShiftState done [09:37:10]FM_GetShiftState done [09:37:10]req_shift_opened done [09:37:10]requested_item shift.open_date is exist - process it [09:37:10]req_shift_open_date [09:37:10]req_shift_open_date done [09:37:10]produce_requested_data done [09:37:10]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201324,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:37:10]process_action_free close_receipt [09:37:10]json_value_free [09:37:10]json_value_free done [09:37:10]process_json_proto returns [09:37:10]Send response to host [09:37:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201324,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:37:10]free response buf [09:37:10]execute_script done [09:37:10]execute_script returns [09:37:10]free content buf [09:37:10]Sock 9.Close socket [09:37:10]Sock 9.Thread stoped [09:37:14]OFD Sender: No OFD packet to send [09:37:19]OFD Sender: No OFD packet to send [09:37:24]OFD Sender: No OFD packet to send [09:37:29]OFD Sender: No OFD packet to send [09:37:34]OFD Sender: No OFD packet to send [09:37:39]OFD Sender: No OFD packet to send [09:37:44]OFD Sender: No OFD packet to send [09:37:49]OFD Sender: No OFD packet to send [09:37:54]OFD Sender: No OFD packet to send [09:37:59]OFD Sender: No OFD packet to send [09:38:04]OFD Sender: No OFD packet to send [09:38:09]OFD Sender: No OFD packet to send [09:38:14]OFD Sender: No OFD packet to send [09:38:19]OFD Sender: No OFD packet to send [09:38:24]OFD Sender: No OFD packet to send [09:38:29]OFD Sender: No OFD packet to send [09:38:34]OFD Sender: No OFD packet to send [09:38:39]OFD Sender: No OFD packet to send [09:38:44]OFD Sender: No OFD packet to send [09:38:49]OFD Sender: No OFD packet to send [09:38:54]OFD Sender: No OFD packet to send [09:38:59]OFD Sender: No OFD packet to send [09:39:04]OFD Sender: No OFD packet to send [09:39:09]OFD Sender: No OFD packet to send [09:39:14]OFD Sender: No OFD packet to send [09:39:19]OFD Sender: No OFD packet to send [09:39:24]OFD Sender: No OFD packet to send [09:39:29]OFD Sender: No OFD packet to send [09:39:34]OFD Sender: No OFD packet to send [09:39:39]OFD Sender: No OFD packet to send [09:39:44]OFD Sender: No OFD packet to send [09:39:49]OFD Sender: No OFD packet to send [09:39:54]OFD Sender: No OFD packet to send [09:39:59]OFD Sender: No OFD packet to send [09:40:04]OFD Sender: No OFD packet to send [09:40:09]OFD Sender: No OFD packet to send [09:40:14]OFD Sender: No OFD packet to send [09:40:17]accept exits with 7 [09:40:17]New connection [09:40:17]New thread 3067559268 created [09:40:17]Thread 3067415908 joined [09:40:17]Waiting for new connection... [09:40:17] Sock 7.Parse request [09:40:17]Sock 7.Check first char [09:40:17]Sock 7.First char is OK [09:40:17]request: POST /json_proto HTTP/1.0 [09:40:17]Method: POST [09:40:17]URL: /json_proto [09:40:17]Method is POST - this is cgi request [09:40:17]url: /json_proto [09:40:17]query_string will be loaded in cgi processing [09:40:17]execute_cgi json_proto POST (null) [09:40:17]execute_cgi path=json_proto method=POST [09:40:17]POST find Content-Length [09:40:17]Host: 172.17.63.195:8080 [09:40:17]Content-Length: 682 [09:40:17]Content-Type: application/json [09:40:17] [09:40:17]POST finish read [09:40:17]Found Content-Length = 682 [09:40:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:40:17]execute_script... [09:40: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)449073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:40:17]POST & json_proto [09:40:17]process_json_proto [09:40:17]json parsed OK: [09:40:17]protocol is kg_v1.0 [09:40:17]action value=close_receipt [09:40:17]process_action close_receipt [09:40:17]cmd_close_receipt [09:40:17]MH_GetDate [09:40:17]Write to MH i2c: F0 00 00 AD 24 C0 [09:40:17]Write i2c OK [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: F0 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: F0 09 00 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: F0 09 00 AD 24 00 04 B9 1C 67 68 46 19 67 37 [09:40:17]GetLastDocTimeStamp 1729935430 [09:40:17]current date 1729935620 [09:40:17]FM_GetShiftState [09:40:17]SAM_PROTO_GetShiftState [09:40:17]wFMCommunicate request_size=4 [09:40:17]MH_SAM_APDU [09:40:17]CAPDU: 80 13 01 00 [09:40:17]Write to MH i2c: E2 08 00 AE 24 80 13 01 00 00 00 00 00 4F [09:40:17]Write i2c OK [09:40:17]MH_I2C_Read... [09:40:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:17]Read from MH i2c: E2 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: E2 0E 00 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: E2 0E 00 AE 24 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 5E [09:40:17]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:40:17]wFMCommunicate OK [09:40:17]SAM_PROTO_GetShiftState done [09:40:17]FM_GetShiftState done [09:40:17]opened in 1729900879 [09:40:17]opened+sec_in_day 1729987279 [09:40:17]quantity*price = 100015 [09:40:17]sum+1 = 100017 [09:40:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 87 26.10.2024 09:40 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201325 ФПД: 221551446297187 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094020&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201325&fm=221551446297187&tin=02508201610067®Number=0000000000091777&sum=100000 [09:40:18]StoreToDocumentArchive [09:40:18]shift 543 fd 201325 [09:40:18]save to /storage/0543/doc_00201325 [09:40:18]save last doc name /storage/0543/doc_00201325 to /storage/kkm_last_doc_name [09:40:18]save OK [09:40:18]Clear old archive folders... [09:40:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:40:18]tlvbuf is 0179E540 [09:40:18]SAM_PROTO_ClearQueue [09:40:18]wFMCommunicate request_size=4 [09:40:18]MH_SAM_APDU [09:40:18]CAPDU: 80 09 00 00 [09:40:18]Write to MH i2c: E2 08 00 BB 24 80 09 00 00 00 00 00 00 51 [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 03 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 03 00 BB 24 00 90 00 53 [09:40:18]RAPDU: 90 00 [09:40:18]wFMCommunicate OK [09:40:18]SAM_PROTO_ClearQueue done [09:40:18]KKMCreateOFDPacket [09:40:18]OFDProtocolAddRootSTLVToBuf [09:40:18]FM_MakeSignedData [09:40:18]FM_MakeSignedData [09:40:18]SAM_PROTO_SignData [09:40:18]wFMCommunicate request_size=4 [09:40:18]MH_SAM_APDU [09:40:18]CAPDU: 80 0D 01 02 [09:40:18]Write to MH i2c: E2 08 00 BC 24 80 0D 01 02 00 00 00 00 59 [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 03 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 03 00 BC 24 00 90 00 54 [09:40:18]RAPDU: 90 00 [09:40:18]wFMCommunicate OK [09:40:18]wFMCommunicate request_size=255 [09:40:18]MH_SAM_APDU [09:40: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 32 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 57 00 00 00 F4 03 04 00 04 B9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6D 12 03 00 35 04 06 00 C9 [09:40:18]Write to MH i2c: E2 02 01 BD 24 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 32 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 57 00 00 00 F4 03 04 00 04 B9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6D 12 03 00 35 04 06 00 C9 00 00 EA [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 03 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 03 00 BD 24 00 90 00 55 [09:40:18]RAPDU: 90 00 [09:40:18]wFMCommunicate OK [09:40:18]wFMCommunicate request_size=10 [09:40:18]MH_SAM_APDU [09:40:18]CAPDU: 80 0D 02 02 05 7F F7 41 8A 63 [09:40:18]Write to MH i2c: E2 0D 00 BE 24 80 0D 02 02 05 00 7F F7 41 8A 63 00 00 0A [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 03 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 03 00 BE 24 00 90 00 56 [09:40:18]RAPDU: 90 00 [09:40:18]wFMCommunicate OK [09:40:18]wFMCommunicate request_size=4 [09:40:18]MH_SAM_APDU [09:40:18]CAPDU: 80 0D 03 02 [09:40:18]Write to MH i2c: E2 08 00 BF 24 80 0D 03 02 00 00 00 00 5E [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 0B 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 0B 00 BF 24 00 8A A7 C7 03 13 72 9E E0 90 00 5D [09:40:18]RAPDU: 8A A7 C7 03 13 72 9E E0 90 00 [09:40:18]wFMCommunicate OK [09:40:18]SAM_PROTO_SignData done [09:40:18]FM_MakeSignedData done [09:40:18]CreateOFDProtocolMessage [09:40:18]wFMCommunicate request_size=4 [09:40:18]MH_SAM_APDU [09:40:18]CAPDU: 80 11 00 00 [09:40:18]Write to MH i2c: E2 08 00 C0 24 80 11 00 00 00 00 00 00 5E [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 17 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 17 00 C0 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B3 [09:40:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:40:18]wFMCommunicate OK [09:40:18]CreateOFDProtocolMessage done [09:40:18]OFDSenderStorePacket 201325 [09:40:18]StoreOFDPacket docnum=201325 [09:40:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 BE CC 07 01 E4 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 57 00 00 00 F4 03 04 00 04 B9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6D 12 03 00 35 04 06 00 C9 7F F7 41 8A 63 8A A7 C7 03 13 72 9E E0 [09:40:18]CheckFolder [09:40:18]dirname=/storage/ofd_packets [09:40:18]CheckFolder done [09:40:18]ProducePacketName [09:40:18]name=ofd_packets/00201325 [09:40:18]NVStorageSaveData ofd_packets/00201325 [09:40:18]File name is /storage/ofd_packets/00201325 [09:40:18]Write 301 bytes [09:40:18]NVStorageSaveData done [09:40:18]OFDSenderStorePacket done [09:40:18]KKMCreateOFDPacket done [09:40:18]NVStorageSaveData kkm_last_timestamp [09:40:18]File name is /storage/kkm_last_timestamp [09:40:18]Write 4 bytes [09:40:18]NVStorageSaveData done [09:40:18]ExternCall_PrintAddStr [09:40:18]wPrintStart [09:40:18]Write to MH i2c: 01 00 00 C1 24 E5 [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: 01 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: 01 07 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: 01 07 00 C1 24 00 00 00 00 00 FF 0F FA [09:40:18]RasterBufferAndPrint [09:40:18]line Счет N : (1)449073 [09:40:18]line ИНН: 02508201610067 [09:40:18]line Контрольно-Кассовый Чек [09:40:18]line ПРОДАЖА [09:40:18]line ТРК (МРК, ГНК) : 31 [09:40:18]line Товар: 2710124130 [09:40:18]line Аи-92-К-2 [09:40:18]line 14.950 * 66.90 [09:40:18]line = 1000.16 [09:40:18]line НДС 12% НСП 1% [09:40:18]line > о реализуемом товаре [09:40:18]line ОКРУГЛЕНИЕ: -0.16 [09:40:18]line ИТОГО: 1000.00 [09:40:18]line Внесено: 1000.00 [09:40:18]line СДАЧА: 0.00 [09:40:18]line НСП 1% : 8.85 [09:40:18]line НДС 12% : 106.21 [09:40:18]line Наличными: 1000.00 [09:40:18]line Безнал.: 0.00 [09:40:18]line Место: АЗС № 171 "Партнер Нефть" [09:40:18]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:40:18]line СНО: Общий режим [09:40:18]line Чек 87 26.10.2024 09:40 [09:40:18]line Смена: 543 ФФД: 1.0 [09:40:18]line ЗНМ: 0300000109 [09:40:18]line РНМ: 0000000000091777 [09:40:18]line Версия ККМ: 001 [09:40:18]line ФМ: 0000000000871756 [09:40:18]line ФД: 201325 [09:40:18]line ФПД: 221551446297187 [09:40:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094020&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201325&fm=221551446297187&tin=02508201610067®Number=0000000000091777&sum=100000 [09:40:19]OFD Sender: Processing packet 201325 [packets to send 112, broken 111] [09:40:19]ProducePacketName [09:40:19]name=ofd_packets/00201325 [09:40:19]OFD Sender: To server: pG, [09:40:19]CommunicateWithHost lk.salyk.kg:30040 [09:40:19]ConnectInit lk.salyk.kg [09:40:19]written 0, free lines is 4095 [09:40:19]Connected sock=11 [09:40:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 BE CC 07 01 E4 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 57 00 00 00 F4 03 04 00 04 B9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6D 12 03 00 35 04 06 00 C9 7F F7 41 8A 63 8A A7 C7 03 13 72 9E E0 [09:40:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B5 3D 47 00 4E 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 38 37 31 37 35 36 10 04 04 00 6D 12 03 00 F4 03 04 00 AE 64 1C 67 B6 04 01 00 00 F7 C7 FF 4D 11 76 44 DE [09:40:19]CommunicateWithHost err = 0 [09:40:19]CheckOFDResponse [09:40:19]1017 (14) - 77093643461234 [09:40:19]1041 (16) - 0000000000871756 [09:40:19]1040 (4) - 201325 [09:40:19]1012 (4) - 26.10.2024 03:40 [09:40:19]1206 (1) - 0 [09:40:19]OFD Sender: Remove packet 201325 [09:40:19]ProducePacketName [09:40:19]name=ofd_packets/00201325 [09:40:19]NVStorageDeleteData [09:40:19]Write to MH i2c: 01 00 00 EC 24 10 [09:40:19]Write i2c OK [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: 01 [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: 01 07 00 [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: 01 07 00 EC 24 00 00 00 00 00 95 0C B8 [09:40:19]RasterBufferAndPrint [09:40:19]line [09:40:19]line [09:40:19]line [09:40:19]line [09:40:19]line [09:40:19]written 0, free lines is 3227 [09:40:19]MH_Cut [09:40:19]Write to MH i2c: D1 01 00 F3 24 01 E9 [09:40:19]Write i2c OK [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: D1 [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: D1 01 00 [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: D1 01 00 F3 24 00 E8 [09:40:19]Write to MH i2c: 01 00 00 F4 24 18 [09:40:19]Write i2c OK [09:40:19]MH_I2C_Read... [09:40:19]OFD Sender: No OFD packet to send [09:40:20]*** Cut start [09:40:20]*** Purtial cut [09:40:20]*** CUTSNS_PIN = 0 [09:40:20]*** Stage 1: CUTSNS_PIN = 1 [09:40:22]Read from MH i2c: 01 [09:40:22]MH_I2C_Read... [09:40:22]*** Stop cut motor [09:40:22]*** Cut end [09:40:22]Read from MH i2c: 01 07 00 [09:40:22]MH_I2C_Read... [09:40:22]Read from MH i2c: 01 07 00 F4 24 00 00 00 00 00 FF 0F 2D [09:40:22]process_action close_receipt done [09:40:22]requested_data is exist [09:40:22]produce_requested_data [09:40:22]requested_item fm.sn is exist - process it [09:40:22]wFMCommunicate request_size=4 [09:40:22]MH_SAM_APDU [09:40:22]CAPDU: 80 11 00 00 [09:40:22]Write to MH i2c: E2 08 00 F5 24 80 11 00 00 00 00 00 00 93 [09:40:22]Write i2c OK [09:40:22]MH_I2C_Read... [09:40:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:22]Read from MH i2c: E2 [09:40:22]MH_I2C_Read... [09:40:22]Read from MH i2c: E2 17 00 [09:40:22]MH_I2C_Read... [09:40:22]Read from MH i2c: E2 17 00 F5 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E8 [09:40:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:40:22]wFMCommunicate OK [09:40:22]requested_item fd.num is exist - process it [09:40:22]SAM_PROTO_GetFieldsCounters [09:40:22]wFMCommunicate request_size=4 [09:40:22]MH_SAM_APDU [09:40:22]CAPDU: 80 13 00 00 [09:40:22]Write to MH i2c: E2 08 00 F6 24 80 13 00 00 00 00 00 00 96 [09:40:22]Write i2c OK [09:40:22]MH_I2C_Read... [09:40:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:22]Read from MH i2c: E2 [09:40:22]MH_I2C_Read... [09:40:22]Read from MH i2c: E2 62 00 [09:40:22]MH_I2C_Read... [09:40:22]Read from MH i2c: E2 62 00 F6 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6D 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [09:40:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6D 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:40:22]wFMCommunicate OK [09:40:22]SAM_PROTO_GetFieldsCounters done [09:40:22]requested_item shift.num is exist - process it [09:40:22]requested_item shift.opened is exist - process it [09:40:22]req_shift_opened [09:40:22]FM_GetShiftState [09:40:22]SAM_PROTO_GetShiftState [09:40:22]wFMCommunicate request_size=4 [09:40:22]MH_SAM_APDU [09:40:22]CAPDU: 80 13 01 00 [09:40:22]Write to MH i2c: E2 08 00 F7 24 80 13 01 00 00 00 00 00 98 [09:40:22]Write i2c OK [09:40:22]MH_I2C_Read... [09:40:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:22]Read from MH i2c: E2 [09:40:22]MH_I2C_Read... [09:40:22]Read from MH i2c: E2 0E 00 [09:40:22]MH_I2C_Read... [09:40:22]Read from MH i2c: E2 0E 00 F7 24 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 A7 [09:40:22]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:40:22]wFMCommunicate OK [09:40:22]SAM_PROTO_GetShiftState done [09:40:22]FM_GetShiftState done [09:40:22]req_shift_opened done [09:40:22]requested_item shift.open_date is exist - process it [09:40:22]req_shift_open_date [09:40:22]req_shift_open_date done [09:40:22]produce_requested_data done [09:40:22]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201325,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:40:22]process_action_free close_receipt [09:40:22]json_value_free [09:40:22]json_value_free done [09:40:22]process_json_proto returns [09:40:22]Send response to host [09:40:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201325,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:40:22]free response buf [09:40:22]execute_script done [09:40:22]execute_script returns [09:40:22]free content buf [09:40:22]Sock 7.Close socket [09:40:22]Sock 7.Thread stoped [09:40:24]OFD Sender: No OFD packet to send [09:40:29]OFD Sender: No OFD packet to send [09:40:34]OFD Sender: No OFD packet to send [09:40:39]OFD Sender: No OFD packet to send [09:40:44]OFD Sender: No OFD packet to send [09:40:49]OFD Sender: No OFD packet to send [09:40:54]OFD Sender: No OFD packet to send [09:41:00]OFD Sender: No OFD packet to send [09:41:05]OFD Sender: No OFD packet to send [09:41:10]OFD Sender: No OFD packet to send [09:41:15]OFD Sender: No OFD packet to send [09:41:20]OFD Sender: No OFD packet to send [09:41:25]OFD Sender: No OFD packet to send [09:41:30]OFD Sender: No OFD packet to send [09:41:35]OFD Sender: No OFD packet to send [09:41:40]OFD Sender: No OFD packet to send [09:41:45]OFD Sender: No OFD packet to send [09:41:50]OFD Sender: No OFD packet to send [09:41:55]OFD Sender: No OFD packet to send [09:42:00]OFD Sender: No OFD packet to send [09:42:05]OFD Sender: No OFD packet to send [09:42:10]OFD Sender: No OFD packet to send [09:42:15]OFD Sender: No OFD packet to send [09:42:20]OFD Sender: No OFD packet to send [09:42:25]OFD Sender: No OFD packet to send [09:42:30]OFD Sender: No OFD packet to send [09:42:34]accept exits with 9 [09:42:34]New connection [09:42:34]New thread 3067415908 created [09:42:34]Thread 3067559268 joined [09:42:34]Waiting for new connection... [09:42:34] Sock 9.Parse request [09:42:34]Sock 9.Check first char [09:42:34]Sock 9.First char is OK [09:42:34]request: POST /json_proto HTTP/1.0 [09:42:34]Method: POST [09:42:34]URL: /json_proto [09:42:34]Method is POST - this is cgi request [09:42:34]url: /json_proto [09:42:34]query_string will be loaded in cgi processing [09:42:34]execute_cgi json_proto POST (null) [09:42:34]execute_cgi path=json_proto method=POST [09:42:34]POST find Content-Length [09:42:34]Host: 172.17.63.195:8080 [09:42:34]Content-Length: 677 [09:42:34]Content-Type: application/json [09:42:34] [09:42:34]POST finish read [09:42:34]Found Content-Length = 677 [09:42:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:42:34]execute_script... [09:42: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)449075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:42:34]POST & json_proto [09:42:34]process_json_proto [09:42:34]json parsed OK: [09:42:34]protocol is kg_v1.0 [09:42:34]action value=close_receipt [09:42:34]process_action close_receipt [09:42:34]cmd_close_receipt [09:42:34]MH_GetDate [09:42:34]Write to MH i2c: F0 00 00 F8 24 0B [09:42:34]Write i2c OK [09:42:34]MH_I2C_Read... [09:42:34]Read from MH i2c: F0 [09:42:34]MH_I2C_Read... [09:42:34]Read from MH i2c: F0 09 00 [09:42:34]MH_I2C_Read... [09:42:34]Read from MH i2c: F0 09 00 F8 24 00 8E B9 1C 67 68 46 19 67 0C [09:42:34]GetLastDocTimeStamp 1729935620 [09:42:34]current date 1729935758 [09:42:34]FM_GetShiftState [09:42:34]SAM_PROTO_GetShiftState [09:42:34]wFMCommunicate request_size=4 [09:42:34]MH_SAM_APDU [09:42:34]CAPDU: 80 13 01 00 [09:42:34]Write to MH i2c: E2 08 00 F9 24 80 13 01 00 00 00 00 00 9A [09:42:34]Write i2c OK [09:42:34]MH_I2C_Read... [09:42:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:34]Read from MH i2c: E2 [09:42:34]MH_I2C_Read... [09:42:34]Read from MH i2c: E2 0E 00 [09:42:34]MH_I2C_Read... [09:42:34]Read from MH i2c: E2 0E 00 F9 24 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 A9 [09:42:34]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:42:34]wFMCommunicate OK [09:42:34]SAM_PROTO_GetShiftState done [09:42:34]FM_GetShiftState done [09:42:34]opened in 1729900879 [09:42:34]opened+sec_in_day 1729987279 [09:42:34]quantity*price = 40006 [09:42:34]sum+1 = 40007 [09:42:34]Check (price>sum+1) || (price+1 о реализуемом товаре [09:42:36]line ОКРУГЛЕНИЕ: -0.06 [09:42:36]line ИТОГО: 400.00 [09:42:36]line Внесено: 400.00 [09:42:36]line СДАЧА: 0.00 [09:42:36]line НСП 1% : 3.54 [09:42:36]line НДС 12% : 42.48 [09:42:36]line Наличными: 400.00 [09:42:36]line Безнал.: 0.00 [09:42:36]line Место: АЗС № 171 "Партнер Нефть" [09:42:36]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:42:36]line СНО: Общий режим [09:42:36]line Чек 88 26.10.2024 09:42 [09:42:36]line Смена: 543 ФФД: 1.0 [09:42:36]line ЗНМ: 0300000109 [09:42:36]line РНМ: 0000000000091777 [09:42:36]line Версия ККМ: 001 [09:42:36]line ФМ: 0000000000871756 [09:42:36]line ФД: 201326 [09:42:36]line ФПД: 99463533663867 [09:42:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094238&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201326&fm=99463533663867&tin=02508201610067®Number=0000000000091777&sum=40000 [09:42:36]OFD Sender: Processing packet 201326 [packets to send 112, broken 111] [09:42:36]ProducePacketName [09:42:36]name=ofd_packets/00201326 [09:42:36]OFD Sender: To server: pG, [09:42:36]CommunicateWithHost lk.salyk.kg:30040 [09:42:36]ConnectInit lk.salyk.kg [09:42:36]written 0, free lines is 4095 [09:42:36]Connected sock=11 [09:42:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 9E 45 07 01 B7 09 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 32 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 58 00 00 00 F4 03 04 00 8E B9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6E 12 03 00 35 04 06 00 5A 76 28 97 96 7B 19 20 A9 87 16 E8 FF 4A [09:42:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 8D 42 47 00 78 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6E 12 03 00 F4 03 04 00 38 65 1C 67 B6 04 01 00 00 A0 D3 F3 4E DF 6D 86 DF [09:42:37]CommunicateWithHost err = 0 [09:42:37]CheckOFDResponse [09:42:37]1017 (14) - 77093643461234 [09:42:37]1041 (16) - 0000000000871756 [09:42:37]1040 (4) - 201326 [09:42:37]1012 (4) - 26.10.2024 03:42 [09:42:37]1206 (1) - 0 [09:42:37]OFD Sender: Remove packet 201326 [09:42:37]ProducePacketName [09:42:37]name=ofd_packets/00201326 [09:42:37]NVStorageDeleteData [09:42:37]Write to MH i2c: 01 00 00 37 25 5C [09:42:37]Write i2c OK [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: 01 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: 01 07 00 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: 01 07 00 37 25 00 00 00 00 00 AF 0C 1E [09:42:37]RasterBufferAndPrint [09:42:37]line [09:42:37]line [09:42:37]line [09:42:37]line [09:42:37]line [09:42:37]written 0, free lines is 3253 [09:42:37]MH_Cut [09:42:37]Write to MH i2c: D1 01 00 3E 25 01 35 [09:42:37]Write i2c OK [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: D1 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: D1 01 00 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: D1 01 00 3E 25 00 34 [09:42:37]Write to MH i2c: 01 00 00 3F 25 64 [09:42:37]Write i2c OK [09:42:37]MH_I2C_Read... [09:42:37]OFD Sender: No OFD packet to send [09:42:38]*** Cut start [09:42:38]*** Purtial cut [09:42:38]*** Stage 1: CUTSNS_PIN = 1 [09:42:38]Read from MH i2c: 01 [09:42:38]MH_I2C_Read... [09:42:38]*** Stop cut motor [09:42:38]*** Cut end [09:42:38]Read from MH i2c: 01 07 00 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: 01 07 00 3F 25 00 00 00 00 00 FF 0F 79 [09:42:38]process_action close_receipt done [09:42:38]requested_data is exist [09:42:38]produce_requested_data [09:42:38]requested_item fm.sn is exist - process it [09:42:38]wFMCommunicate request_size=4 [09:42:38]MH_SAM_APDU [09:42:38]CAPDU: 80 11 00 00 [09:42:38]Write to MH i2c: E2 08 00 40 25 80 11 00 00 00 00 00 00 DF [09:42:38]Write i2c OK [09:42:38]MH_I2C_Read... [09:42:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:38]Read from MH i2c: E2 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: E2 17 00 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: E2 17 00 40 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 34 [09:42:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:42:38]wFMCommunicate OK [09:42:38]requested_item fd.num is exist - process it [09:42:38]SAM_PROTO_GetFieldsCounters [09:42:38]wFMCommunicate request_size=4 [09:42:38]MH_SAM_APDU [09:42:38]CAPDU: 80 13 00 00 [09:42:38]Write to MH i2c: E2 08 00 41 25 80 13 00 00 00 00 00 00 E2 [09:42:38]Write i2c OK [09:42:38]MH_I2C_Read... [09:42:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:38]Read from MH i2c: E2 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: E2 62 00 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: E2 62 00 41 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6E 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [09:42:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6E 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:38]wFMCommunicate OK [09:42:38]SAM_PROTO_GetFieldsCounters done [09:42:38]requested_item shift.num is exist - process it [09:42:38]requested_item shift.opened is exist - process it [09:42:38]req_shift_opened [09:42:38]FM_GetShiftState [09:42:38]SAM_PROTO_GetShiftState [09:42:38]wFMCommunicate request_size=4 [09:42:38]MH_SAM_APDU [09:42:38]CAPDU: 80 13 01 00 [09:42:38]Write to MH i2c: E2 08 00 42 25 80 13 01 00 00 00 00 00 E4 [09:42:38]Write i2c OK [09:42:38]MH_I2C_Read... [09:42:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:38]Read from MH i2c: E2 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: E2 0E 00 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: E2 0E 00 42 25 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F3 [09:42:38]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:42:38]wFMCommunicate OK [09:42:38]SAM_PROTO_GetShiftState done [09:42:38]FM_GetShiftState done [09:42:38]req_shift_opened done [09:42:38]requested_item shift.open_date is exist - process it [09:42:38]req_shift_open_date [09:42:38]req_shift_open_date done [09:42:38]produce_requested_data done [09:42:38]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201326,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:42:38]process_action_free close_receipt [09:42:38]json_value_free [09:42:38]json_value_free done [09:42:38]process_json_proto returns [09:42:38]Send response to host [09:42:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201326,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:42:38]free response buf [09:42:38]execute_script done [09:42:38]execute_script returns [09:42:38]free content buf [09:42:38]Sock 9.Close socket [09:42:38]Sock 9.Thread stoped [09:42:42]OFD Sender: No OFD packet to send [09:42:47]OFD Sender: No OFD packet to send [09:42:50]accept exits with 10 [09:42:50]New connection [09:42:50]New thread 3067559268 created [09:42:50]Thread 3067415908 joined [09:42:50]Waiting for new connection... [09:42:50] Sock 10.Parse request [09:42:50]Sock 10.Check first char [09:42:50]Sock 10.First char is OK [09:42:50]request: POST /json_proto HTTP/1.0 [09:42:50]Method: POST [09:42:50]URL: /json_proto [09:42:50]Method is POST - this is cgi request [09:42:50]url: /json_proto [09:42:50]query_string will be loaded in cgi processing [09:42:50]execute_cgi json_proto POST (null) [09:42:50]execute_cgi path=json_proto method=POST [09:42:50]POST find Content-Length [09:42:50]Host: 172.17.63.195:8080 [09:42:50]Content-Length: 678 [09:42:50]Content-Type: application/json [09:42:50] [09:42:50]POST finish read [09:42:50]Found Content-Length = 678 [09:42:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:50]execute_script... [09:42: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)449074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:50]POST & json_proto [09:42:50]process_json_proto [09:42:50]json parsed OK: [09:42:50]protocol is kg_v1.0 [09:42:50]action value=close_receipt [09:42:50]process_action close_receipt [09:42:50]cmd_close_receipt [09:42:50]MH_GetDate [09:42:50]Write to MH i2c: F0 00 00 43 25 57 [09:42:50]Write i2c OK [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: F0 [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: F0 09 00 [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: F0 09 00 43 25 00 9D B9 1C 67 68 46 19 67 67 [09:42:50]GetLastDocTimeStamp 1729935758 [09:42:50]current date 1729935773 [09:42:50]FM_GetShiftState [09:42:50]SAM_PROTO_GetShiftState [09:42:50]wFMCommunicate request_size=4 [09:42:50]MH_SAM_APDU [09:42:50]CAPDU: 80 13 01 00 [09:42:50]Write to MH i2c: E2 08 00 44 25 80 13 01 00 00 00 00 00 E6 [09:42:50]Write i2c OK [09:42:50]MH_I2C_Read... [09:42:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:50]Read from MH i2c: E2 [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: E2 0E 00 [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: E2 0E 00 44 25 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F5 [09:42:50]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:42:50]wFMCommunicate OK [09:42:50]SAM_PROTO_GetShiftState done [09:42:50]FM_GetShiftState done [09:42:50]opened in 1729900879 [09:42:50]opened+sec_in_day 1729987279 [09:42:50]quantity*price = 80012 [09:42:50]sum+1 = 80013 [09:42:50]Check (price>sum+1) || (price+1 о реализуемом товаре [09:42:51]line ОКРУГЛЕНИЕ: -0.12 [09:42:51]line ИТОГО: 800.00 [09:42:51]line Внесено: 800.00 [09:42:51]line СДАЧА: 0.00 [09:42:51]line НСП 1% : 7.08 [09:42:51]line НДС 12% : 84.97 [09:42:51]line Наличными: 800.00 [09:42:51]line Безнал.: 0.00 [09:42:51]line Место: АЗС № 171 "Партнер Нефть" [09:42:51]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:42:51]line СНО: Общий режим [09:42:51]line Чек 89 26.10.2024 09:42 [09:42:51]line Смена: 543 ФФД: 1.0 [09:42:51]line ЗНМ: 0300000109 [09:42:51]line РНМ: 0000000000091777 [09:42:51]line Версия ККМ: 001 [09:42:51]line ФМ: 0000000000871756 [09:42:51]line ФД: 201327 [09:42:51]line ФПД: 244908378775653 [09:42:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094253&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201327&fm=244908378775653&tin=02508201610067®Number=0000000000091777&sum=80000 [09:42:51]written 0, free lines is 4095 [09:42:52]OFD Sender: Processing packet 201327 [packets to send 112, broken 111] [09:42:52]ProducePacketName [09:42:52]name=ofd_packets/00201327 [09:42:52]OFD Sender: To server: pG, [09:42:52]CommunicateWithHost lk.salyk.kg:30040 [09:42:52]ConnectInit lk.salyk.kg [09:42:52]Connected sock=11 [09:42:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 DC 9D 07 01 31 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 9D B9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6F 12 03 00 35 04 06 00 DE BE 2C EB 60 65 3A A2 25 14 9D 13 13 6B [09:42:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 4F 67 47 00 D6 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 38 37 31 37 35 36 10 04 04 00 6F 12 03 00 F4 03 04 00 47 65 1C 67 B6 04 01 00 00 7F 29 A4 CC 3F C6 60 72 [09:42:52]CommunicateWithHost err = 0 [09:42:52]CheckOFDResponse [09:42:52]1017 (14) - 77093643461234 [09:42:52]1041 (16) - 0000000000871756 [09:42:52]1040 (4) - 201327 [09:42:52]1012 (4) - 26.10.2024 03:43 [09:42:52]1206 (1) - 0 [09:42:52]OFD Sender: Remove packet 201327 [09:42:52]ProducePacketName [09:42:52]name=ofd_packets/00201327 [09:42:52]NVStorageDeleteData [09:42:52]Write to MH i2c: 01 00 00 82 25 A7 [09:42:52]Write i2c OK [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: 01 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: 01 07 00 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: 01 07 00 82 25 00 00 00 00 00 BF 0C 79 [09:42:52]RasterBufferAndPrint [09:42:52]line [09:42:52]line [09:42:52]line [09:42:52]line [09:42:52]line [09:42:52]written 0, free lines is 3280 [09:42:52]MH_Cut [09:42:52]Write to MH i2c: D1 01 00 89 25 01 80 [09:42:52]Write i2c OK [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: D1 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: D1 01 00 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: D1 01 00 89 25 00 7F [09:42:52]Write to MH i2c: 01 00 00 8A 25 AF [09:42:52]Write i2c OK [09:42:52]MH_I2C_Read... [09:42:52]OFD Sender: No OFD packet to send [09:42:53]*** Cut start [09:42:53]*** Purtial cut [09:42:53]*** CUTSNS_PIN = 0 [09:42:53]*** Stage 1: CUTSNS_PIN = 1 [09:42:55]Read from MH i2c: 01 [09:42:55]MH_I2C_Read... [09:42:55]*** Stop cut motor [09:42:55]*** Cut end [09:42:55]Read from MH i2c: 01 07 00 [09:42:55]MH_I2C_Read... [09:42:55]Read from MH i2c: 01 07 00 8A 25 00 00 00 00 00 FF 0F C4 [09:42:55]process_action close_receipt done [09:42:55]requested_data is exist [09:42:55]produce_requested_data [09:42:55]requested_item fm.sn is exist - process it [09:42:55]wFMCommunicate request_size=4 [09:42:55]MH_SAM_APDU [09:42:55]CAPDU: 80 11 00 00 [09:42:55]Write to MH i2c: E2 08 00 8B 25 80 11 00 00 00 00 00 00 2A [09:42:55]Write i2c OK [09:42:55]MH_I2C_Read... [09:42:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:55]Read from MH i2c: E2 [09:42:55]MH_I2C_Read... [09:42:55]Read from MH i2c: E2 17 00 [09:42:55]MH_I2C_Read... [09:42:55]Read from MH i2c: E2 17 00 8B 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7F [09:42:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:42:55]wFMCommunicate OK [09:42:55]requested_item fd.num is exist - process it [09:42:55]SAM_PROTO_GetFieldsCounters [09:42:55]wFMCommunicate request_size=4 [09:42:55]MH_SAM_APDU [09:42:55]CAPDU: 80 13 00 00 [09:42:55]Write to MH i2c: E2 08 00 8C 25 80 13 00 00 00 00 00 00 2D [09:42:55]Write i2c OK [09:42:55]MH_I2C_Read... [09:42:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:55]Read from MH i2c: E2 [09:42:55]MH_I2C_Read... [09:42:55]Read from MH i2c: E2 62 00 [09:42:55]MH_I2C_Read... [09:42:55]Read from MH i2c: E2 62 00 8C 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6F 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [09:42:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6F 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:55]wFMCommunicate OK [09:42:55]SAM_PROTO_GetFieldsCounters done [09:42:55]requested_item shift.num is exist - process it [09:42:55]requested_item shift.opened is exist - process it [09:42:55]req_shift_opened [09:42:55]FM_GetShiftState [09:42:55]SAM_PROTO_GetShiftState [09:42:55]wFMCommunicate request_size=4 [09:42:55]MH_SAM_APDU [09:42:55]CAPDU: 80 13 01 00 [09:42:55]Write to MH i2c: E2 08 00 8D 25 80 13 01 00 00 00 00 00 2F [09:42:55]Write i2c OK [09:42:55]MH_I2C_Read... [09:42:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:55]Read from MH i2c: E2 [09:42:55]MH_I2C_Read... [09:42:55]Read from MH i2c: E2 0E 00 [09:42:55]MH_I2C_Read... [09:42:55]Read from MH i2c: E2 0E 00 8D 25 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 3E [09:42:55]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:42:55]wFMCommunicate OK [09:42:55]SAM_PROTO_GetShiftState done [09:42:55]FM_GetShiftState done [09:42:55]req_shift_opened done [09:42:55]requested_item shift.open_date is exist - process it [09:42:55]req_shift_open_date [09:42:55]req_shift_open_date done [09:42:55]produce_requested_data done [09:42:55]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201327,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:42:55]process_action_free close_receipt [09:42:55]json_value_free [09:42:55]json_value_free done [09:42:55]process_json_proto returns [09:42:55]Send response to host [09:42:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201327,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:42:55]free response buf [09:42:55]execute_script done [09:42:55]execute_script returns [09:42:55]free content buf [09:42:55]Sock 10.Close socket [09:42:55]Sock 10.Thread stoped [09:42:57]OFD Sender: No OFD packet to send [09:43:02]OFD Sender: No OFD packet to send [09:43:07]OFD Sender: No OFD packet to send [09:43:12]OFD Sender: No OFD packet to send [09:43:17]OFD Sender: No OFD packet to send [09:43:22]OFD Sender: No OFD packet to send [09:43:27]OFD Sender: No OFD packet to send [09:43:32]OFD Sender: No OFD packet to send [09:43:38]OFD Sender: No OFD packet to send [09:43:43]OFD Sender: No OFD packet to send [09:43:48]OFD Sender: No OFD packet to send [09:43:53]OFD Sender: No OFD packet to send [09:43:58]OFD Sender: No OFD packet to send [09:44:03]OFD Sender: No OFD packet to send [09:44:08]OFD Sender: No OFD packet to send [09:44:13]OFD Sender: No OFD packet to send [09:44:18]OFD Sender: No OFD packet to send [09:44:23]OFD Sender: No OFD packet to send [09:44:28]OFD Sender: No OFD packet to send [09:44:33]OFD Sender: No OFD packet to send [09:44:38]OFD Sender: No OFD packet to send [09:44:43]OFD Sender: No OFD packet to send [09:44:48]OFD Sender: No OFD packet to send [09:44:53]OFD Sender: No OFD packet to send [09:44:58]OFD Sender: No OFD packet to send [09:45:03]OFD Sender: No OFD packet to send [09:45:08]OFD Sender: No OFD packet to send [09:45:13]OFD Sender: No OFD packet to send [09:45:18]OFD Sender: No OFD packet to send [09:45:23]OFD Sender: No OFD packet to send [09:45:28]OFD Sender: No OFD packet to send [09:45:33]OFD Sender: No OFD packet to send [09:45:33]int [09:45:33]Write to MH i2c: 01 00 00 8E 25 B3 [09:45:33]*** FLAG_PRN_PAP1 set [09:45:33]Write i2c OK [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: 01 [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: 01 07 00 [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: 01 07 00 8E 25 00 01 00 00 00 FF 0F C9 [09:45:33]state=0 [09:45:33]No paper [09:45:33]int [09:45:33]Write to MH i2c: 01 00 00 8F 25 B4 [09:45:33]*** FLAG_PRN_PAP2 set [09:45:33]Write i2c OK [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: 01 [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: 01 07 00 [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: 01 07 00 8F 25 00 03 00 00 00 FF 0F CC [09:45:33]state=0 [09:45:33]No paper [09:45:33]Cover opened [09:45:38]OFD Sender: No OFD packet to send [09:45:38]Write to MH i2c: 01 00 00 90 25 B5 [09:45:38]Write i2c OK [09:45:38]MH_I2C_Read... [09:45:38]Read from MH i2c: 01 [09:45:38]MH_I2C_Read... [09:45:38]Read from MH i2c: 01 07 00 [09:45:38]MH_I2C_Read... [09:45:38]Read from MH i2c: 01 07 00 90 25 00 03 00 00 00 FF 0F CD [09:45:38]state=3 [09:45:38]No paper [09:45:38]Cover opened [09:45:40]int [09:45:40]Write to MH i2c: 01 00 00 91 25 B6 [09:45:40]*** FLAG_PRN_PAP2 reset [09:45:40]*** FLAG_PRN_PAP1 reset [09:45:40]Write i2c OK [09:45:40]MH_I2C_Read... [09:45:40]Read from MH i2c: 01 [09:45:40]MH_I2C_Read... [09:45:40]Read from MH i2c: 01 07 00 [09:45:40]MH_I2C_Read... [09:45:40]Read from MH i2c: 01 07 00 91 25 00 00 00 00 00 FF 0F CB [09:45:40]state=3 [09:45:40]Cover closed [09:45:40]int [09:45:40]Write to MH i2c: 01 00 00 92 25 B7 [09:45:40]*** FLAG_PRN_KEY set [09:45:40]Write i2c OK [09:45:40]MH_I2C_Read... [09:45:40]Read from MH i2c: 01 [09:45:40]MH_I2C_Read... [09:45:40]Read from MH i2c: 01 07 00 [09:45:40]MH_I2C_Read... [09:45:40]Read from MH i2c: 01 07 00 92 25 00 08 00 00 00 FF 0F D4 [09:45:40]state=0 [09:45:40]Key pressed [09:45:40]Feed [09:45:40]Write to MH i2c: D8 00 00 93 25 8F [09:45:40]Write i2c OK [09:45:40]MH_I2C_Read... [09:45:40]Read from MH i2c: D8 [09:45:40]MH_I2C_Read... [09:45:40]Read from MH i2c: D8 01 00 [09:45:40]MH_I2C_Read... [09:45:40]Read from MH i2c: D8 01 00 93 25 00 90 [09:45:40]int [09:45:40]Write to MH i2c: 01 00 00 94 25 B9 [09:45:40]Write i2c OK [09:45:40]MH_I2C_Read... [09:45:40]Read from MH i2c: 01 [09:45:40]MH_I2C_Read... [09:45:40]Read from MH i2c: 01 07 00 [09:45:40]MH_I2C_Read... [09:45:40]Read from MH i2c: 01 07 00 94 25 00 48 00 00 00 3C 00 44 [09:45:40]state=2 [09:45:40]Key pressed [09:45:41]int [09:45:41]Write to MH i2c: 01 00 00 95 25 BA [09:45:41]*** FLAG_PRN_KEY reset [09:45:41]Write i2c OK [09:45:41]MH_I2C_Read... [09:45:41]Read from MH i2c: 01 [09:45:41]MH_I2C_Read... [09:45:41]Read from MH i2c: 01 07 00 [09:45:41]MH_I2C_Read... [09:45:41]Read from MH i2c: 01 07 00 95 25 00 00 00 00 00 FF 0F CF [09:45:41]state=2 [09:45:41]Stop feed [09:45:43]OFD Sender: No OFD packet to send [09:45:48]OFD Sender: No OFD packet to send [09:45:53]OFD Sender: No OFD packet to send [09:45:58]OFD Sender: No OFD packet to send [09:46:03]OFD Sender: No OFD packet to send [09:46:08]OFD Sender: No OFD packet to send [09:46:13]OFD Sender: No OFD packet to send [09:46:18]OFD Sender: No OFD packet to send [09:46:23]OFD Sender: No OFD packet to send [09:46:28]OFD Sender: No OFD packet to send [09:46:33]OFD Sender: No OFD packet to send [09:46:38]OFD Sender: No OFD packet to send [09:46:43]OFD Sender: No OFD packet to send [09:46:47]ConnectInit Can't connect to host [09:46:48]OFD Sender: No OFD packet to send [09:46:53]OFD Sender: No OFD packet to send [09:46:58]OFD Sender: No OFD packet to send [09:47:03]OFD Sender: No OFD packet to send [09:47:08]OFD Sender: No OFD packet to send [09:47:13]OFD Sender: No OFD packet to send [09:47:18]OFD Sender: No OFD packet to send [09:47:23]OFD Sender: No OFD packet to send [09:47:28]OFD Sender: No OFD packet to send [09:47:33]OFD Sender: No OFD packet to send [09:47:38]OFD Sender: No OFD packet to send [09:47:43]OFD Sender: No OFD packet to send [09:47:48]OFD Sender: No OFD packet to send [09:47:53]OFD Sender: No OFD packet to send [09:47:58]OFD Sender: No OFD packet to send [09:48:03]OFD Sender: No OFD packet to send [09:48:08]OFD Sender: No OFD packet to send [09:48:13]OFD Sender: No OFD packet to send [09:48:18]OFD Sender: No OFD packet to send [09:48:19]accept exits with 9 [09:48:19]New connection [09:48:19]New thread 3067415908 created [09:48:19]Thread 3067559268 joined [09:48:19]Waiting for new connection... [09:48:19] Sock 9.Parse request [09:48:19]Sock 9.Check first char [09:48:19]Sock 9.First char is OK [09:48:19]request: POST /json_proto HTTP/1.0 [09:48:19]Method: POST [09:48:19]URL: /json_proto [09:48:19]Method is POST - this is cgi request [09:48:19]url: /json_proto [09:48:19]query_string will be loaded in cgi processing [09:48:19]execute_cgi json_proto POST (null) [09:48:19]execute_cgi path=json_proto method=POST [09:48:19]POST find Content-Length [09:48:19]Host: 172.17.63.195:8080 [09:48:19]Content-Length: 675 [09:48:19]Content-Type: application/json [09:48:19] [09:48:19]POST finish read [09:48:19]Found Content-Length = 675 [09:48:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 21.930, "sum" : 1500.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [09:48:19]execute_script... [09:48: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)449077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 21.930, "sum" : 1500.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [09:48:19]POST & json_proto [09:48:19]process_json_proto [09:48:19]json parsed OK: [09:48:19]protocol is kg_v1.0 [09:48:19]action value=close_receipt [09:48:19]process_action close_receipt [09:48:19]cmd_close_receipt [09:48:19]MH_GetDate [09:48:19]Write to MH i2c: F0 00 00 96 25 AA [09:48:19]Write i2c OK [09:48:19]MH_I2C_Read... [09:48:19]Read from MH i2c: F0 [09:48:19]MH_I2C_Read... [09:48:19]Read from MH i2c: F0 09 00 [09:48:19]MH_I2C_Read... [09:48:19]Read from MH i2c: F0 09 00 96 25 00 E6 BA 1C 67 68 46 19 67 04 [09:48:19]GetLastDocTimeStamp 1729935773 [09:48:19]current date 1729936102 [09:48:19]FM_GetShiftState [09:48:19]SAM_PROTO_GetShiftState [09:48:19]wFMCommunicate request_size=4 [09:48:19]MH_SAM_APDU [09:48:19]CAPDU: 80 13 01 00 [09:48:19]Write to MH i2c: E2 08 00 97 25 80 13 01 00 00 00 00 00 39 [09:48:19]Write i2c OK [09:48:19]MH_I2C_Read... [09:48:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:19]Read from MH i2c: E2 [09:48:19]MH_I2C_Read... [09:48:19]Read from MH i2c: E2 0E 00 [09:48:19]MH_I2C_Read... [09:48:19]Read from MH i2c: E2 0E 00 97 25 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 48 [09:48:19]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:48:19]wFMCommunicate OK [09:48:19]SAM_PROTO_GetShiftState done [09:48:19]FM_GetShiftState done [09:48:19]opened in 1729900879 [09:48:19]opened+sec_in_day 1729987279 [09:48:19]quantity*price = 150001 [09:48:19]sum+1 = 150002 [09:48:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.29 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 90 26.10.2024 09:48 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201328 ФПД: 108117206697872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094822&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201328&fm=108117206697872&tin=02508201610067®Number=0000000000091777&sum=150000 [09:48:20]StoreToDocumentArchive [09:48:20]shift 543 fd 201328 [09:48:20]save to /storage/0543/doc_00201328 [09:48:20]save last doc name /storage/0543/doc_00201328 to /storage/kkm_last_doc_name [09:48:20]save OK [09:48:20]Clear old archive folders... [09:48:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:48:20]tlvbuf is B6F3C3D0 [09:48:20]SAM_PROTO_ClearQueue [09:48:20]wFMCommunicate request_size=4 [09:48:20]MH_SAM_APDU [09:48:20]CAPDU: 80 09 00 00 [09:48:20]Write to MH i2c: E2 08 00 A4 25 80 09 00 00 00 00 00 00 3B [09:48:20]Write i2c OK [09:48:20]MH_I2C_Read... [09:48:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:20]Read from MH i2c: E2 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 03 00 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 03 00 A4 25 00 90 00 3D [09:48:20]RAPDU: 90 00 [09:48:20]wFMCommunicate OK [09:48:20]SAM_PROTO_ClearQueue done [09:48:20]KKMCreateOFDPacket [09:48:20]OFDProtocolAddRootSTLVToBuf [09:48:20]FM_MakeSignedData [09:48:20]FM_MakeSignedData [09:48:20]SAM_PROTO_SignData [09:48:20]wFMCommunicate request_size=4 [09:48:20]MH_SAM_APDU [09:48:20]CAPDU: 80 0D 01 02 [09:48:20]Write to MH i2c: E2 08 00 A5 25 80 0D 01 02 00 00 00 00 43 [09:48:20]Write i2c OK [09:48:20]MH_I2C_Read... [09:48:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:20]Read from MH i2c: E2 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 03 00 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 03 00 A5 25 00 90 00 3E [09:48:20]RAPDU: 90 00 [09:48:20]wFMCommunicate OK [09:48:20]wFMCommunicate request_size=255 [09:48:20]MH_SAM_APDU [09:48:20]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 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 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 39 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 5A 00 00 00 F4 03 04 00 E6 BA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 70 12 03 00 35 04 06 00 [09:48:20]Write to MH i2c: E2 02 01 A6 25 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 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 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 39 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 5A 00 00 00 F4 03 04 00 E6 BA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 70 12 03 00 35 04 06 00 00 00 43 [09:48:20]Write i2c OK [09:48:20]MH_I2C_Read... [09:48:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:20]Read from MH i2c: E2 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 03 00 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 03 00 A6 25 00 90 00 3F [09:48:20]RAPDU: 90 00 [09:48:20]wFMCommunicate OK [09:48:20]wFMCommunicate request_size=11 [09:48:20]MH_SAM_APDU [09:48:20]CAPDU: 80 0D 02 02 06 62 54 FF B3 07 90 [09:48:20]Write to MH i2c: E2 0E 00 A7 25 80 0D 02 02 06 00 62 54 FF B3 07 90 00 00 51 [09:48:20]Write i2c OK [09:48:20]MH_I2C_Read... [09:48:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:20]Read from MH i2c: E2 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 03 00 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 03 00 A7 25 00 90 00 40 [09:48:20]RAPDU: 90 00 [09:48:20]wFMCommunicate OK [09:48:20]wFMCommunicate request_size=4 [09:48:20]MH_SAM_APDU [09:48:20]CAPDU: 80 0D 03 02 [09:48:20]Write to MH i2c: E2 08 00 A8 25 80 0D 03 02 00 00 00 00 48 [09:48:20]Write i2c OK [09:48:20]MH_I2C_Read... [09:48:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:20]Read from MH i2c: E2 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 0B 00 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 0B 00 A8 25 00 A2 53 EA 38 D4 4C D3 D3 90 00 26 [09:48:20]RAPDU: A2 53 EA 38 D4 4C D3 D3 90 00 [09:48:20]wFMCommunicate OK [09:48:20]SAM_PROTO_SignData done [09:48:20]FM_MakeSignedData done [09:48:20]CreateOFDProtocolMessage [09:48:20]wFMCommunicate request_size=4 [09:48:20]MH_SAM_APDU [09:48:20]CAPDU: 80 11 00 00 [09:48:20]Write to MH i2c: E2 08 00 A9 25 80 11 00 00 00 00 00 00 48 [09:48:20]Write i2c OK [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 [09:48:20]MH_I2C_Read... [09:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:20]Read from MH i2c: E2 17 00 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 17 00 A9 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9D [09:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:48:20]wFMCommunicate OK [09:48:20]CreateOFDProtocolMessage done [09:48:20]OFDSenderStorePacket 201328 [09:48:20]StoreOFDPacket docnum=201328 [09:48:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 E0 CA 08 01 05 0C 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 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 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 39 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 5A 00 00 00 F4 03 04 00 E6 BA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 70 12 03 00 35 04 06 00 62 54 FF B3 07 90 A2 53 EA 38 D4 4C D3 D3 [09:48:20]CheckFolder [09:48:20]dirname=/storage/ofd_packets [09:48:20]CheckFolder done [09:48:20]ProducePacketName [09:48:20]name=ofd_packets/00201328 [09:48:20]NVStorageSaveData ofd_packets/00201328 [09:48:20]File name is /storage/ofd_packets/00201328 [09:48:20]Write 302 bytes [09:48:20]NVStorageSaveData done [09:48:20]OFDSenderStorePacket done [09:48:20]KKMCreateOFDPacket done [09:48:20]NVStorageSaveData kkm_last_timestamp [09:48:20]File name is /storage/kkm_last_timestamp [09:48:20]Write 4 bytes [09:48:20]NVStorageSaveData done [09:48:20]ExternCall_PrintAddStr [09:48:20]wPrintStart [09:48:20]Write to MH i2c: 01 00 00 AA 25 CF [09:48:20]Write i2c OK [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: 01 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: 01 07 00 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: 01 07 00 AA 25 00 00 00 00 00 FF 0F E4 [09:48:20]RasterBufferAndPrint [09:48:20]line Счет N : (1)449077 [09:48:20]line ИНН: 02508201610067 [09:48:20]line Контрольно-Кассовый Чек [09:48:20]line ПРОДАЖА [09:48:20]line ТРК (МРК, ГНК) : 42 [09:48:20]line Товар: 2710124130 [09:48:20]line SUPER 92-К-5 [09:48:20]line 21.930 * 68.40 [09:48:20]line = 1500.01 [09:48:20]line НДС 12% НСП 1% [09:48:20]line > о реализуемом товаре [09:48:20]line ОКРУГЛЕНИЕ: -0.01 [09:48:20]line ИТОГО: 1500.00 [09:48:20]line Внесено: 1500.00 [09:48:20]line СДАЧА: 0.00 [09:48:20]line НСП 1% : 13.27 [09:48:20]line НДС 12% : 159.29 [09:48:20]line Наличными: 1500.00 [09:48:20]line Безнал.: 0.00 [09:48:20]line Место: АЗС № 171 "Партнер Нефть" [09:48:20]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:48:20]line СНО: Общий режим [09:48:20]line Чек 90 26.10.2024 09:48 [09:48:20]line Смена: 543 ФФД: 1.0 [09:48:20]line ЗНМ: 0300000109 [09:48:20]line РНМ: 0000000000091777 [09:48:20]line Версия ККМ: 001 [09:48:20]line ФМ: 0000000000871756 [09:48:20]line ФД: 201328 [09:48:20]line ФПД: 108117206697872 [09:48:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094822&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201328&fm=108117206697872&tin=02508201610067®Number=0000000000091777&sum=150000 [09:48:20]OFD Sender: Processing packet 201328 [packets to send 112, broken 111] [09:48:20]ProducePacketName [09:48:20]name=ofd_packets/00201328 [09:48:20]OFD Sender: To server: pG, [09:48:20]CommunicateWithHost lk.salyk.kg:30040 [09:48:20]ConnectInit lk.salyk.kg [09:48:20]written 0, free lines is 4095 [09:48:20]Connected sock=11 [09:48:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 E0 CA 08 01 05 0C 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 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 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 39 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 5A 00 00 00 F4 03 04 00 E6 BA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 70 12 03 00 35 04 06 00 62 54 FF B3 07 90 A2 53 EA 38 D4 4C D3 D3 [09:48:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F0 F0 47 00 4E 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 70 12 03 00 F4 03 04 00 90 66 1C 67 B6 04 01 00 00 D6 19 9A C3 DB 2C 13 B9 [09:48:21]CommunicateWithHost err = 0 [09:48:21]CheckOFDResponse [09:48:21]1017 (14) - 77093643461234 [09:48:21]1041 (16) - 0000000000871756 [09:48:21]1040 (4) - 201328 [09:48:21]1012 (4) - 26.10.2024 03:48 [09:48:21]1206 (1) - 0 [09:48:21]OFD Sender: Remove packet 201328 [09:48:21]ProducePacketName [09:48:21]name=ofd_packets/00201328 [09:48:21]NVStorageDeleteData [09:48:21]Write to MH i2c: 01 00 00 D5 25 FA [09:48:21]Write i2c OK [09:48:21]MH_I2C_Read... [09:48:21]Read from MH i2c: 01 [09:48:21]MH_I2C_Read... [09:48:21]Read from MH i2c: 01 07 00 [09:48:21]MH_I2C_Read... [09:48:21]Read from MH i2c: 01 07 00 D5 25 00 00 00 00 00 AE 0C BB [09:48:21]RasterBufferAndPrint [09:48:21]line [09:48:21]line [09:48:21]line [09:48:21]line [09:48:21]line [09:48:21]written 0, free lines is 3257 [09:48:21]MH_Cut [09:48:21]Write to MH i2c: D1 01 00 DC 25 01 D3 [09:48:21]Write i2c OK [09:48:21]MH_I2C_Read... [09:48:21]Read from MH i2c: D1 [09:48:21]MH_I2C_Read... [09:48:21]Read from MH i2c: D1 01 00 [09:48:21]MH_I2C_Read... [09:48:21]Read from MH i2c: D1 01 00 DC 25 00 D2 [09:48:21]Write to MH i2c: 01 00 00 DD 25 02 [09:48:21]Write i2c OK [09:48:21]MH_I2C_Read... [09:48:21]OFD Sender: No OFD packet to send [09:48:22]*** Cut start [09:48:22]*** Purtial cut [09:48:22]*** Stage 1: CUTSNS_PIN = 1 [09:48:22]Read from MH i2c: 01 [09:48:22]MH_I2C_Read... [09:48:22]*** Stop cut motor [09:48:22]*** Cut end [09:48:22]Read from MH i2c: 01 07 00 [09:48:22]MH_I2C_Read... [09:48:22]Read from MH i2c: 01 07 00 DD 25 00 00 00 00 00 FF 0F 17 [09:48:22]process_action close_receipt done [09:48:22]requested_data is exist [09:48:22]produce_requested_data [09:48:22]requested_item fm.sn is exist - process it [09:48:22]wFMCommunicate request_size=4 [09:48:22]MH_SAM_APDU [09:48:22]CAPDU: 80 11 00 00 [09:48:22]Write to MH i2c: E2 08 00 DE 25 80 11 00 00 00 00 00 00 7D [09:48:22]Write i2c OK [09:48:22]MH_I2C_Read... [09:48:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:22]Read from MH i2c: E2 [09:48:22]MH_I2C_Read... [09:48:22]Read from MH i2c: E2 17 00 [09:48:22]MH_I2C_Read... [09:48:22]Read from MH i2c: E2 17 00 DE 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D2 [09:48:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:48:22]wFMCommunicate OK [09:48:22]requested_item fd.num is exist - process it [09:48:22]SAM_PROTO_GetFieldsCounters [09:48:22]wFMCommunicate request_size=4 [09:48:22]MH_SAM_APDU [09:48:22]CAPDU: 80 13 00 00 [09:48:22]Write to MH i2c: E2 08 00 DF 25 80 13 00 00 00 00 00 00 80 [09:48:22]Write i2c OK [09:48:22]MH_I2C_Read... [09:48:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:22]Read from MH i2c: E2 [09:48:22]MH_I2C_Read... [09:48:22]Read from MH i2c: E2 62 00 [09:48:22]MH_I2C_Read... [09:48:22]Read from MH i2c: E2 62 00 DF 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 70 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [09:48:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 70 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:22]wFMCommunicate OK [09:48:22]SAM_PROTO_GetFieldsCounters done [09:48:22]requested_item shift.num is exist - process it [09:48:22]requested_item shift.opened is exist - process it [09:48:22]req_shift_opened [09:48:22]FM_GetShiftState [09:48:22]SAM_PROTO_GetShiftState [09:48:22]wFMCommunicate request_size=4 [09:48:22]MH_SAM_APDU [09:48:22]CAPDU: 80 13 01 00 [09:48:22]Write to MH i2c: E2 08 00 E0 25 80 13 01 00 00 00 00 00 82 [09:48:22]Write i2c OK [09:48:22]MH_I2C_Read... [09:48:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:22]Read from MH i2c: E2 [09:48:22]MH_I2C_Read... [09:48:22]Read from MH i2c: E2 0E 00 [09:48:22]MH_I2C_Read... [09:48:22]Read from MH i2c: E2 0E 00 E0 25 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 91 [09:48:22]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:48:22]wFMCommunicate OK [09:48:22]SAM_PROTO_GetShiftState done [09:48:22]FM_GetShiftState done [09:48:22]req_shift_opened done [09:48:22]requested_item shift.open_date is exist - process it [09:48:22]req_shift_open_date [09:48:22]req_shift_open_date done [09:48:22]produce_requested_data done [09:48:22]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201328,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:48:22]process_action_free close_receipt [09:48:22]json_value_free [09:48:22]json_value_free done [09:48:22]process_json_proto returns [09:48:22]Send response to host [09:48:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201328,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:48:22]free response buf [09:48:22]execute_script done [09:48:22]execute_script returns [09:48:22]free content buf [09:48:22]Sock 9.Close socket [09:48:22]Sock 9.Thread stoped [09:48:26]OFD Sender: No OFD packet to send [09:48:31]OFD Sender: No OFD packet to send [09:48:36]OFD Sender: No OFD packet to send [09:48:41]OFD Sender: No OFD packet to send [09:48:46]OFD Sender: No OFD packet to send [09:48:49]accept exits with 10 [09:48:49]New connection [09:48:49]New thread 3067559268 created [09:48:49]Thread 3067415908 joined [09:48:49]Waiting for new connection... [09:48:49] Sock 10.Parse request [09:48:49]Sock 10.Check first char [09:48:49]Sock 10.First char is OK [09:48:49]request: POST /json_proto HTTP/1.0 [09:48:49]Method: POST [09:48:49]URL: /json_proto [09:48:49]Method is POST - this is cgi request [09:48:49]url: /json_proto [09:48:49]query_string will be loaded in cgi processing [09:48:49]execute_cgi json_proto POST (null) [09:48:49]execute_cgi path=json_proto method=POST [09:48:49]POST find Content-Length [09:48:49]Host: 172.17.63.195:8080 [09:48:49]Content-Length: 798 [09:48:49]Content-Type: application/json [09:48:49] [09:48:49]POST finish read [09:48:49]Found Content-Length = 798 [09:48:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 120.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4692168", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:49]execute_script... [09:48: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)449076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 120.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4692168", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:49]POST & json_proto [09:48:49]process_json_proto [09:48:49]json parsed OK: [09:48:49]protocol is kg_v1.0 [09:48:49]action value=close_receipt [09:48:49]process_action close_receipt [09:48:49]cmd_close_receipt [09:48:49]MH_GetDate [09:48:49]Write to MH i2c: F0 00 00 E1 25 F5 [09:48:49]Write i2c OK [09:48:49]MH_I2C_Read... [09:48:49]Read from MH i2c: F0 [09:48:49]MH_I2C_Read... [09:48:49]Read from MH i2c: F0 09 00 [09:48:49]MH_I2C_Read... [09:48:49]Read from MH i2c: F0 09 00 E1 25 00 05 BB 1C 67 68 46 19 67 6F [09:48:49]GetLastDocTimeStamp 1729936102 [09:48:49]current date 1729936133 [09:48:49]FM_GetShiftState [09:48:49]SAM_PROTO_GetShiftState [09:48:49]wFMCommunicate request_size=4 [09:48:49]MH_SAM_APDU [09:48:49]CAPDU: 80 13 01 00 [09:48:49]Write to MH i2c: E2 08 00 E2 25 80 13 01 00 00 00 00 00 84 [09:48:49]Write i2c OK [09:48:49]MH_I2C_Read... [09:48:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:49]Read from MH i2c: E2 [09:48:49]MH_I2C_Read... [09:48:49]Read from MH i2c: E2 0E 00 [09:48:49]MH_I2C_Read... [09:48:49]Read from MH i2c: E2 0E 00 E2 25 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 93 [09:48:49]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:48:49]wFMCommunicate OK [09:48:49]SAM_PROTO_GetShiftState done [09:48:49]FM_GetShiftState done [09:48:49]opened in 1729900879 [09:48:49]opened+sec_in_day 1729987279 [09:48:49]quantity*price = 0 [09:48:49]sum+1 = 1 [09:48:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 91 26.10.2024 09:48 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Талоны: Топливные Талоны 4692168 ФМ: 0000000000871756 ФД: 201329 ФПД: 505500087008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094853&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201329&fm=505500087008&tin=02508201610067®Number=0000000000091777&sum=0 [09:48:50]StoreToDocumentArchive [09:48:50]shift 543 fd 201329 [09:48:50]save to /storage/0543/doc_00201329 [09:48:50]save last doc name /storage/0543/doc_00201329 to /storage/kkm_last_doc_name [09:48:50]save OK [09:48:50]Clear old archive folders... [09:48:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:48:50]tlvbuf is 017E5550 [09:48:50]SAM_PROTO_ClearQueue [09:48:50]wFMCommunicate request_size=4 [09:48:50]MH_SAM_APDU [09:48:50]CAPDU: 80 09 00 00 [09:48:50]Write to MH i2c: E2 08 00 EF 25 80 09 00 00 00 00 00 00 86 [09:48:50]Write i2c OK [09:48:50]MH_I2C_Read... [09:48:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:50]Read from MH i2c: E2 [09:48:50]MH_I2C_Read... [09:48:50]Read from MH i2c: E2 03 00 [09:48:50]MH_I2C_Read... [09:48:50]Read from MH i2c: E2 03 00 EF 25 00 90 00 88 [09:48:50]RAPDU: 90 00 [09:48:50]wFMCommunicate OK [09:48:50]SAM_PROTO_ClearQueue done [09:48:50]KKMCreateOFDPacket [09:48:50]OFDProtocolAddRootSTLVToBuf [09:48:50]FM_MakeSignedData [09:48:50]FM_MakeSignedData [09:48:50]SAM_PROTO_SignData [09:48:50]wFMCommunicate request_size=4 [09:48:50]MH_SAM_APDU [09:48:50]CAPDU: 80 0D 01 02 [09:48:50]Write to MH i2c: E2 08 00 F0 25 80 0D 01 02 00 00 00 00 8E [09:48:50]Write i2c OK [09:48:50]MH_I2C_Read... [09:48:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:50]Read from MH i2c: E2 [09:48:50]MH_I2C_Read... [09:48:50]Read from MH i2c: E2 03 00 [09:48:50]MH_I2C_Read... [09:48:50]Read from MH i2c: E2 03 00 F0 25 00 90 00 89 [09:48:50]RAPDU: 90 00 [09:48:50]wFMCommunicate OK [09:48:50]wFMCommunicate request_size=255 [09:48:50]MH_SAM_APDU [09:48:50]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 32 FF 03 08 00 03 C0 D4 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 05 BB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 71 12 03 00 35 04 06 00 00 75 B2 27 [09:48:50]Write to MH i2c: E2 02 01 F1 25 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 32 FF 03 08 00 03 C0 D4 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 05 BB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 71 12 03 00 35 04 06 00 00 75 B2 27 00 00 18 [09:48:50]Write i2c OK [09:48:50]MH_I2C_Read... [09:48:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:51]Read from MH i2c: E2 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: E2 03 00 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: E2 03 00 F1 25 00 90 00 8A [09:48:51]RAPDU: 90 00 [09:48:51]wFMCommunicate OK [09:48:51]wFMCommunicate request_size=7 [09:48:51]MH_SAM_APDU [09:48:51]CAPDU: 80 0D 02 02 02 32 E0 [09:48:51]Write to MH i2c: E2 0A 00 F2 25 80 0D 02 02 02 00 32 E0 00 00 A7 [09:48:51]Write i2c OK [09:48:51]MH_I2C_Read... [09:48:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:51]Read from MH i2c: E2 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: E2 03 00 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: E2 03 00 F2 25 00 90 00 8B [09:48:51]RAPDU: 90 00 [09:48:51]wFMCommunicate OK [09:48:51]wFMCommunicate request_size=4 [09:48:51]MH_SAM_APDU [09:48:51]CAPDU: 80 0D 03 02 [09:48:51]Write to MH i2c: E2 08 00 F3 25 80 0D 03 02 00 00 00 00 93 [09:48:51]Write i2c OK [09:48:51]MH_I2C_Read... [09:48:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:51]Read from MH i2c: E2 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: E2 0B 00 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: E2 0B 00 F3 25 00 FA F3 6C 94 22 94 63 25 90 00 BF [09:48:51]RAPDU: FA F3 6C 94 22 94 63 25 90 00 [09:48:51]wFMCommunicate OK [09:48:51]SAM_PROTO_SignData done [09:48:51]FM_MakeSignedData done [09:48:51]CreateOFDProtocolMessage [09:48:51]wFMCommunicate request_size=4 [09:48:51]MH_SAM_APDU [09:48:51]CAPDU: 80 11 00 00 [09:48:51]Write to MH i2c: E2 08 00 F4 25 80 11 00 00 00 00 00 00 93 [09:48:51]Write i2c OK [09:48:51]MH_I2C_Read... [09:48:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:51]Read from MH i2c: E2 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: E2 17 00 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: E2 17 00 F4 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E8 [09:48:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:48:51]wFMCommunicate OK [09:48:51]CreateOFDProtocolMessage done [09:48:51]OFDSenderStorePacket 201329 [09:48:51]StoreOFDPacket docnum=201329 [09:48:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 82 E8 04 01 69 F4 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 32 FF 03 08 00 03 C0 D4 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 05 BB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 71 12 03 00 35 04 06 00 00 75 B2 27 32 E0 FA F3 6C 94 22 94 63 25 [09:48:51]CheckFolder [09:48:51]dirname=/storage/ofd_packets [09:48:51]CheckFolder done [09:48:51]ProducePacketName [09:48:51]name=ofd_packets/00201329 [09:48:51]NVStorageSaveData ofd_packets/00201329 [09:48:51]File name is /storage/ofd_packets/00201329 [09:48:51]Write 298 bytes [09:48:51]NVStorageSaveData done [09:48:51]OFDSenderStorePacket done [09:48:51]KKMCreateOFDPacket done [09:48:51]NVStorageSaveData kkm_last_timestamp [09:48:51]File name is /storage/kkm_last_timestamp [09:48:51]Write 4 bytes [09:48:51]NVStorageSaveData done [09:48:51]ExternCall_PrintAddStr [09:48:51]wPrintStart [09:48:51]Write to MH i2c: 01 00 00 F5 25 1A [09:48:51]Write i2c OK [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: 01 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: 01 07 00 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: 01 07 00 F5 25 00 00 00 00 00 FF 0F 2F [09:48:51]RasterBufferAndPrint [09:48:51]line Счет N : (1)449076 [09:48:51]line ИНН: 02508201610067 [09:48:51]line Контрольно-Кассовый Чек [09:48:51]line ПРОДАЖА [09:48:51]line ТРК (МРК, ГНК) : 33 [09:48:51]line Товар: 2710194210 [09:48:51]line ДТ-К-2 [09:48:51]line 120.000 * 0.00 [09:48:51]line = 0.00 [09:48:51]line НДС 12% НСП 1% [09:48:51]line > о реализуемом товаре [09:48:51]line ИТОГО: 0.00 [09:48:51]line НСП 1% : 0.00 [09:48:51]line НДС 12% : 0.00 [09:48:51]line Наличными: 0.00 [09:48:51]line Безнал.: 0.00 [09:48:51]line Место: АЗС № 171 "Партнер Нефть" [09:48:51]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:48:51]line СНО: Общий режим [09:48:51]line Чек 91 26.10.2024 09:48 [09:48:51]line Смена: 543 ФФД: 1.0 [09:48:51]line ЗНМ: 0300000109 [09:48:51]line РНМ: 0000000000091777 [09:48:51]line Версия ККМ: 001 [09:48:51]line Талоны: Топливные Талоны [09:48:51]line 4692168 [09:48:51]line ФМ: 0000000000871756 [09:48:51]line ФД: 201329 [09:48:51]line ФПД: 505500087008 [09:48:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094853&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201329&fm=505500087008&tin=02508201610067®Number=0000000000091777&sum=0 [09:48:51]written 0, free lines is 4095 [09:48:51]OFD Sender: Processing packet 201329 [packets to send 112, broken 111] [09:48:51]ProducePacketName [09:48:51]name=ofd_packets/00201329 [09:48:51]OFD Sender: To server: pG, [09:48:51]CommunicateWithHost lk.salyk.kg:30040 [09:48:51]ConnectInit lk.salyk.kg [09:48:51]Connected sock=11 [09:48:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 82 E8 04 01 69 F4 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 32 FF 03 08 00 03 C0 D4 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 05 BB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 71 12 03 00 35 04 06 00 00 75 B2 27 32 E0 FA F3 6C 94 22 94 63 25 [09:48:51]Write to MH i2c: 01 00 00 1F 26 45 [09:48:51]Write i2c OK [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: 01 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: 01 07 00 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: 01 07 00 1F 26 00 00 00 00 00 BC 0C 14 [09:48:51]RasterBufferAndPrint [09:48:51]line [09:48:51]line [09:48:51]line [09:48:51]line [09:48:51]line [09:48:51]written 0, free lines is 3280 [09:48:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 2F 32 47 00 85 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 71 12 03 00 F4 03 04 00 AE 66 1C 67 B6 04 01 00 00 7D F4 63 26 A9 6D 45 CD [09:48:51]CommunicateWithHost err = 0 [09:48:51]CheckOFDResponse [09:48:51]1017 (14) - 77093643461234 [09:48:51]1041 (16) - 0000000000871756 [09:48:51]1040 (4) - 201329 [09:48:51]1012 (4) - 26.10.2024 03:49 [09:48:51]1206 (1) - 0 [09:48:51]OFD Sender: Remove packet 201329 [09:48:51]ProducePacketName [09:48:51]name=ofd_packets/00201329 [09:48:51]NVStorageDeleteData [09:48:51]MH_Cut [09:48:51]Write to MH i2c: D1 01 00 26 26 01 1E [09:48:51]Write i2c OK [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: D1 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: D1 01 00 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: D1 01 00 26 26 00 1D [09:48:51]Write to MH i2c: 01 00 00 27 26 4D [09:48:51]Write i2c OK [09:48:51]MH_I2C_Read... [09:48:52]OFD Sender: No OFD packet to send [09:48:52]*** Cut start [09:48:52]*** Purtial cut [09:48:52]*** Stage 1: CUTSNS_PIN = 1 [09:48:52]Read from MH i2c: 01 [09:48:52]MH_I2C_Read... [09:48:52]*** Stop cut motor [09:48:52]*** Cut end [09:48:52]Read from MH i2c: 01 07 00 [09:48:52]MH_I2C_Read... [09:48:52]Read from MH i2c: 01 07 00 27 26 00 00 00 00 00 FF 0F 62 [09:48:52]process_action close_receipt done [09:48:52]requested_data is exist [09:48:52]produce_requested_data [09:48:52]requested_item fm.sn is exist - process it [09:48:52]wFMCommunicate request_size=4 [09:48:52]MH_SAM_APDU [09:48:52]CAPDU: 80 11 00 00 [09:48:52]Write to MH i2c: E2 08 00 28 26 80 11 00 00 00 00 00 00 C8 [09:48:52]Write i2c OK [09:48:52]MH_I2C_Read... [09:48:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:52]Read from MH i2c: E2 [09:48:52]MH_I2C_Read... [09:48:52]Read from MH i2c: E2 17 00 [09:48:52]MH_I2C_Read... [09:48:52]Read from MH i2c: E2 17 00 28 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1D [09:48:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:48:53]wFMCommunicate OK [09:48:53]requested_item fd.num is exist - process it [09:48:53]SAM_PROTO_GetFieldsCounters [09:48:53]wFMCommunicate request_size=4 [09:48:53]MH_SAM_APDU [09:48:53]CAPDU: 80 13 00 00 [09:48:53]Write to MH i2c: E2 08 00 29 26 80 13 00 00 00 00 00 00 CB [09:48:53]Write i2c OK [09:48:53]MH_I2C_Read... [09:48:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:53]Read from MH i2c: E2 [09:48:53]MH_I2C_Read... [09:48:53]Read from MH i2c: E2 62 00 [09:48:53]MH_I2C_Read... [09:48:53]Read from MH i2c: E2 62 00 29 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 71 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [09:48:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 71 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:53]wFMCommunicate OK [09:48:53]SAM_PROTO_GetFieldsCounters done [09:48:53]requested_item shift.num is exist - process it [09:48:53]requested_item shift.opened is exist - process it [09:48:53]req_shift_opened [09:48:53]FM_GetShiftState [09:48:53]SAM_PROTO_GetShiftState [09:48:53]wFMCommunicate request_size=4 [09:48:53]MH_SAM_APDU [09:48:53]CAPDU: 80 13 01 00 [09:48:53]Write to MH i2c: E2 08 00 2A 26 80 13 01 00 00 00 00 00 CD [09:48:53]Write i2c OK [09:48:53]MH_I2C_Read... [09:48:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:53]Read from MH i2c: E2 [09:48:53]MH_I2C_Read... [09:48:53]Read from MH i2c: E2 0E 00 [09:48:53]MH_I2C_Read... [09:48:53]Read from MH i2c: E2 0E 00 2A 26 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 DC [09:48:53]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:48:53]wFMCommunicate OK [09:48:53]SAM_PROTO_GetShiftState done [09:48:53]FM_GetShiftState done [09:48:53]req_shift_opened done [09:48:53]requested_item shift.open_date is exist - process it [09:48:53]req_shift_open_date [09:48:53]req_shift_open_date done [09:48:53]produce_requested_data done [09:48:53]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201329,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:48:53]process_action_free close_receipt [09:48:53]json_value_free [09:48:53]json_value_free done [09:48:53]process_json_proto returns [09:48:53]Send response to host [09:48:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201329,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:48:53]free response buf [09:48:53]execute_script done [09:48:53]execute_script returns [09:48:53]free content buf [09:48:53]Sock 10.Close socket [09:48:53]Sock 10.Thread stoped [09:48:57]OFD Sender: No OFD packet to send [09:49:02]OFD Sender: No OFD packet to send [09:49:07]OFD Sender: No OFD packet to send [09:49:12]OFD Sender: No OFD packet to send [09:49:16]ConnectInit Can't connect to host [09:49:17]OFD Sender: No OFD packet to send [09:49:22]OFD Sender: No OFD packet to send [09:49:27]OFD Sender: No OFD packet to send [09:49:32]OFD Sender: No OFD packet to send [09:49:37]OFD Sender: No OFD packet to send [09:49:42]OFD Sender: No OFD packet to send [09:49:47]OFD Sender: No OFD packet to send [09:49:52]OFD Sender: No OFD packet to send [09:49:57]OFD Sender: No OFD packet to send [09:50:02]OFD Sender: No OFD packet to send [09:50:07]OFD Sender: No OFD packet to send [09:50:12]OFD Sender: No OFD packet to send [09:50:17]OFD Sender: No OFD packet to send [09:50:22]OFD Sender: No OFD packet to send [09:50:27]OFD Sender: No OFD packet to send [09:50:32]OFD Sender: No OFD packet to send [09:50:36]accept exits with 9 [09:50:36]New connection [09:50:36]New thread 3067415908 created [09:50:36]Thread 3067559268 joined [09:50:36]Waiting for new connection... [09:50:36] Sock 9.Parse request [09:50:36]Sock 9.Check first char [09:50:36]Sock 9.First char is OK [09:50:36]request: POST /json_proto HTTP/1.0 [09:50:36]Method: POST [09:50:36]URL: /json_proto [09:50:36]Method is POST - this is cgi request [09:50:36]url: /json_proto [09:50:36]query_string will be loaded in cgi processing [09:50:36]execute_cgi json_proto POST (null) [09:50:36]execute_cgi path=json_proto method=POST [09:50:36]POST find Content-Length [09:50:36]Host: 172.17.63.195:8080 [09:50:36]Content-Length: 762 [09:50:36]Content-Type: application/json [09:50:36] [09:50:36]POST finish read [09:50:36]Found Content-Length = 762 [09:50:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 43.860, "sum" : 3000.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: Mbank", "payments": [ { "type": 1, "sum" : 3000.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:36]execute_script... [09:50: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)449078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 43.860, "sum" : 3000.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: Mbank", "payments": [ { "type": 1, "sum" : 3000.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:36]POST & json_proto [09:50:36]process_json_proto [09:50:36]json parsed OK: [09:50:36]protocol is kg_v1.0 [09:50:36]action value=close_receipt [09:50:36]process_action close_receipt [09:50:36]cmd_close_receipt [09:50:36]MH_GetDate [09:50:36]Write to MH i2c: F0 00 00 2B 26 40 [09:50:36]Write i2c OK [09:50:36]MH_I2C_Read... [09:50:36]Read from MH i2c: F0 [09:50:36]MH_I2C_Read... [09:50:36]Read from MH i2c: F0 09 00 [09:50:36]MH_I2C_Read... [09:50:36]Read from MH i2c: F0 09 00 2B 26 00 70 BB 1C 67 68 46 19 67 25 [09:50:36]GetLastDocTimeStamp 1729936133 [09:50:36]current date 1729936240 [09:50:36]FM_GetShiftState [09:50:36]SAM_PROTO_GetShiftState [09:50:36]wFMCommunicate request_size=4 [09:50:36]MH_SAM_APDU [09:50:36]CAPDU: 80 13 01 00 [09:50:36]Write to MH i2c: E2 08 00 2C 26 80 13 01 00 00 00 00 00 CF [09:50:36]Write i2c OK [09:50:36]MH_I2C_Read... [09:50:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:36]Read from MH i2c: E2 [09:50:36]MH_I2C_Read... [09:50:36]Read from MH i2c: E2 0E 00 [09:50:36]MH_I2C_Read... [09:50:36]Read from MH i2c: E2 0E 00 2C 26 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 DE [09:50:36]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:50:36]wFMCommunicate OK [09:50:36]SAM_PROTO_GetShiftState done [09:50:36]FM_GetShiftState done [09:50:36]opened in 1729900879 [09:50:36]opened+sec_in_day 1729987279 [09:50:36]quantity*price = 300002 [09:50:36]sum+1 = 300003 [09:50:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.02 НСП 1% : 26.55 НДС 12% : 318.59 Наличными: 0.00 Безнал.: 3000.02 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 92 26.10.2024 09:50 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201330 ФПД: 115397053331115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095040&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201330&fm=115397053331115&tin=02508201610067®Number=0000000000091777&sum=300002 [09:50:37]StoreToDocumentArchive [09:50:37]shift 543 fd 201330 [09:50:37]save to /storage/0543/doc_00201330 [09:50:37]save last doc name /storage/0543/doc_00201330 to /storage/kkm_last_doc_name [09:50:37]save OK [09:50:37]Clear old archive folders... [09:50:37]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:50:37]tlvbuf is 017E7180 [09:50:37]SAM_PROTO_ClearQueue [09:50:37]wFMCommunicate request_size=4 [09:50:37]MH_SAM_APDU [09:50:37]CAPDU: 80 09 00 00 [09:50:37]Write to MH i2c: E2 08 00 39 26 80 09 00 00 00 00 00 00 D1 [09:50:37]Write i2c OK [09:50:37]MH_I2C_Read... [09:50:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:37]Read from MH i2c: E2 [09:50:37]MH_I2C_Read... [09:50:37]Read from MH i2c: E2 03 00 [09:50:37]MH_I2C_Read... [09:50:37]Read from MH i2c: E2 03 00 39 26 00 90 00 D3 [09:50:37]RAPDU: 90 00 [09:50:37]wFMCommunicate OK [09:50:37]SAM_PROTO_ClearQueue done [09:50:37]KKMCreateOFDPacket [09:50:37]OFDProtocolAddRootSTLVToBuf [09:50:37]FM_MakeSignedData [09:50:37]FM_MakeSignedData [09:50:37]SAM_PROTO_SignData [09:50:37]wFMCommunicate request_size=4 [09:50:37]MH_SAM_APDU [09:50:37]CAPDU: 80 0D 01 02 [09:50:37]Write to MH i2c: E2 08 00 3A 26 80 0D 01 02 00 00 00 00 D9 [09:50:37]Write i2c OK [09:50:37]MH_I2C_Read... [09:50:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:37]Read from MH i2c: E2 [09:50:37]MH_I2C_Read... [09:50:37]Read from MH i2c: E2 03 00 [09:50:37]MH_I2C_Read... [09:50:37]Read from MH i2c: E2 03 00 3A 26 00 90 00 D4 [09:50:37]RAPDU: 90 00 [09:50:37]wFMCommunicate OK [09:50:37]wFMCommunicate request_size=255 [09:50:37]MH_SAM_APDU [09:50:37]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 54 AB 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E2 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 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 73 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 70 BB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 72 12 03 00 35 04 06 00 [09:50:37]Write to MH i2c: E2 02 01 3B 26 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 54 AB 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E2 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 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 73 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 70 BB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 72 12 03 00 35 04 06 00 00 00 CE [09:50:37]Write i2c OK [09:50:37]MH_I2C_Read... [09:50:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:38]Read from MH i2c: E2 [09:50:38]MH_I2C_Read... [09:50:38]Read from MH i2c: E2 03 00 [09:50:38]MH_I2C_Read... [09:50:38]Read from MH i2c: E2 03 00 3B 26 00 90 00 D5 [09:50:38]RAPDU: 90 00 [09:50:38]wFMCommunicate OK [09:50:38]wFMCommunicate request_size=11 [09:50:38]MH_SAM_APDU [09:50:38]CAPDU: 80 0D 02 02 06 68 F3 F8 5F 36 AB [09:50:38]Write to MH i2c: E2 0E 00 3C 26 80 0D 02 02 06 00 68 F3 F8 5F 36 AB 00 00 7B [09:50:38]Write i2c OK [09:50:38]MH_I2C_Read... [09:50:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:38]Read from MH i2c: E2 [09:50:38]MH_I2C_Read... [09:50:38]Read from MH i2c: E2 03 00 [09:50:38]MH_I2C_Read... [09:50:38]Read from MH i2c: E2 03 00 3C 26 00 90 00 D6 [09:50:38]RAPDU: 90 00 [09:50:38]wFMCommunicate OK [09:50:38]wFMCommunicate request_size=4 [09:50:38]MH_SAM_APDU [09:50:38]CAPDU: 80 0D 03 02 [09:50:38]Write to MH i2c: E2 08 00 3D 26 80 0D 03 02 00 00 00 00 DE [09:50:38]Write i2c OK [09:50:38]MH_I2C_Read... [09:50:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:38]Read from MH i2c: E2 [09:50:38]MH_I2C_Read... [09:50:38]Read from MH i2c: E2 0B 00 [09:50:38]MH_I2C_Read... [09:50:38]Read from MH i2c: E2 0B 00 3D 26 00 3F 64 16 D8 81 69 62 70 90 00 2C [09:50:38]RAPDU: 3F 64 16 D8 81 69 62 70 90 00 [09:50:38]wFMCommunicate OK [09:50:38]SAM_PROTO_SignData done [09:50:38]FM_MakeSignedData done [09:50:38]CreateOFDProtocolMessage [09:50:38]wFMCommunicate request_size=4 [09:50:38]MH_SAM_APDU [09:50:38]CAPDU: 80 11 00 00 [09:50:38]Write to MH i2c: E2 08 00 3E 26 80 11 00 00 00 00 00 00 DE [09:50:38]Write i2c OK [09:50:38]MH_I2C_Read... [09:50:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:38]Read from MH i2c: E2 [09:50:38]MH_I2C_Read... [09:50:38]Read from MH i2c: E2 17 00 [09:50:38]MH_I2C_Read... [09:50:38]Read from MH i2c: E2 17 00 3E 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 33 [09:50:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:50:38]wFMCommunicate OK [09:50:38]CreateOFDProtocolMessage done [09:50:38]OFDSenderStorePacket 201330 [09:50:38]StoreOFDPacket docnum=201330 [09:50:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 BD 3B 08 01 42 32 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 54 AB 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E2 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 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 73 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 70 BB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 72 12 03 00 35 04 06 00 68 F3 F8 5F 36 AB 3F 64 16 D8 81 69 62 70 [09:50:38]CheckFolder [09:50:38]dirname=/storage/ofd_packets [09:50:38]CheckFolder done [09:50:38]ProducePacketName [09:50:38]name=ofd_packets/00201330 [09:50:38]NVStorageSaveData ofd_packets/00201330 [09:50:38]File name is /storage/ofd_packets/00201330 [09:50:38]Write 302 bytes [09:50:38]NVStorageSaveData done [09:50:38]OFDSenderStorePacket done [09:50:38]KKMCreateOFDPacket done [09:50:38]NVStorageSaveData kkm_last_timestamp [09:50:38]File name is /storage/kkm_last_timestamp [09:50:38]Write 4 bytes [09:50:38]NVStorageSaveData done [09:50:38]ExternCall_PrintAddStr [09:50:38]wPrintStart [09:50:38]Write to MH i2c: 01 00 00 3F 26 65 [09:50:38]Write i2c OK [09:50:38]MH_I2C_Read... [09:50:38]Read from MH i2c: 01 [09:50:38]MH_I2C_Read... [09:50:38]Read from MH i2c: 01 07 00 [09:50:38]MH_I2C_Read... [09:50:38]Read from MH i2c: 01 07 00 3F 26 00 00 00 00 00 FF 0F 7A [09:50:38]RasterBufferAndPrint [09:50:38]line Счет N : (1)449078 [09:50:38]line ИНН: 02508201610067 [09:50:38]line Контрольно-Кассовый Чек [09:50:38]line ПРОДАЖА [09:50:38]line ТРК (МРК, ГНК) : 63 [09:50:38]line Товар: 2710124130 [09:50:38]line SUPER 92-К-5 [09:50:38]line 43.860 * 68.40 [09:50:38]line = 3000.02 [09:50:38]line НДС 12% НСП 1% [09:50:38]line > о реализуемом товаре [09:50:38]line ИТОГО: 3000.02 [09:50:38]line НСП 1% : 26.55 [09:50:38]line НДС 12% : 318.59 [09:50:38]line Наличными: 0.00 [09:50:38]line Безнал.: 3000.02 [09:50:38]line Место: АЗС № 171 "Партнер Нефть" [09:50:38]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:50:38]line СНО: Общий режим [09:50:38]line Чек 92 26.10.2024 09:50 [09:50:38]line Смена: 543 ФФД: 1.0 [09:50:38]line ЗНМ: 0300000109 [09:50:38]line РНМ: 0000000000091777 [09:50:38]line Версия ККМ: 001 [09:50:38]line Платежная система: Mbank [09:50:38]line ФМ: 0000000000871756 [09:50:38]line ФД: 201330 [09:50:38]line ФПД: 115397053331115 [09:50:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095040&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201330&fm=115397053331115&tin=02508201610067®Number=0000000000091777&sum=300002 [09:50:38]OFD Sender: Processing packet 201330 [packets to send 112, broken 111] [09:50:38]ProducePacketName [09:50:38]name=ofd_packets/00201330 [09:50:38]OFD Sender: To server: pG, [09:50:38]CommunicateWithHost lk.salyk.kg:30040 [09:50:38]ConnectInit lk.salyk.kg [09:50:38]written 0, free lines is 4095 [09:50:38]Connected sock=11 [09:50:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 BD 3B 08 01 42 32 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 54 AB 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E2 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 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 73 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 70 BB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 72 12 03 00 35 04 06 00 68 F3 F8 5F 36 AB 3F 64 16 D8 81 69 62 70 [09:50:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 97 64 47 00 F6 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 72 12 03 00 F4 03 04 00 19 67 1C 67 B6 04 01 00 00 50 A1 A1 F2 C6 E6 02 C7 [09:50:39]CommunicateWithHost err = 0 [09:50:39]CheckOFDResponse [09:50:39]1017 (14) - 77093643461234 [09:50:39]1041 (16) - 0000000000871756 [09:50:39]1040 (4) - 201330 [09:50:39]1012 (4) - 26.10.2024 03:50 [09:50:39]1206 (1) - 0 [09:50:39]OFD Sender: Remove packet 201330 [09:50:39]ProducePacketName [09:50:39]name=ofd_packets/00201330 [09:50:39]NVStorageDeleteData [09:50:39]Write to MH i2c: 01 00 00 68 26 8E [09:50:39]Write i2c OK [09:50:39]MH_I2C_Read... [09:50:39]Read from MH i2c: 01 [09:50:39]MH_I2C_Read... [09:50:39]Read from MH i2c: 01 07 00 [09:50:39]MH_I2C_Read... [09:50:39]Read from MH i2c: 01 07 00 68 26 00 00 00 00 00 63 0D 05 [09:50:39]RasterBufferAndPrint [09:50:39]line [09:50:39]line [09:50:39]line [09:50:39]line [09:50:39]line [09:50:39]written 0, free lines is 3448 [09:50:39]MH_Cut [09:50:39]Write to MH i2c: D1 01 00 6F 26 01 67 [09:50:39]Write i2c OK [09:50:39]MH_I2C_Read... [09:50:39]Read from MH i2c: D1 [09:50:39]MH_I2C_Read... [09:50:39]Read from MH i2c: D1 01 00 [09:50:39]MH_I2C_Read... [09:50:39]Read from MH i2c: D1 01 00 6F 26 00 66 [09:50:39]Write to MH i2c: 01 00 00 70 26 96 [09:50:39]Write i2c OK [09:50:39]MH_I2C_Read... [09:50:39]OFD Sender: No OFD packet to send [09:50:39]*** Cut start [09:50:39]*** Purtial cut [09:50:39]*** CUTSNS_PIN = 0 [09:50:40]*** Stage 1: CUTSNS_PIN = 1 [09:50:41]Read from MH i2c: 01 [09:50:41]MH_I2C_Read... [09:50:41]*** Stop cut motor [09:50:41]*** Cut end [09:50:41]Read from MH i2c: 01 07 00 [09:50:41]MH_I2C_Read... [09:50:41]Read from MH i2c: 01 07 00 70 26 00 00 00 00 00 FF 0F AB [09:50:41]process_action close_receipt done [09:50:41]requested_data is exist [09:50:41]produce_requested_data [09:50:41]requested_item fm.sn is exist - process it [09:50:41]wFMCommunicate request_size=4 [09:50:41]MH_SAM_APDU [09:50:41]CAPDU: 80 11 00 00 [09:50:41]Write to MH i2c: E2 08 00 71 26 80 11 00 00 00 00 00 00 11 [09:50:41]Write i2c OK [09:50:41]MH_I2C_Read... [09:50:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:41]Read from MH i2c: E2 [09:50:41]MH_I2C_Read... [09:50:41]Read from MH i2c: E2 17 00 [09:50:41]MH_I2C_Read... [09:50:41]Read from MH i2c: E2 17 00 71 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 66 [09:50:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:50:41]wFMCommunicate OK [09:50:41]requested_item fd.num is exist - process it [09:50:41]SAM_PROTO_GetFieldsCounters [09:50:41]wFMCommunicate request_size=4 [09:50:41]MH_SAM_APDU [09:50:41]CAPDU: 80 13 00 00 [09:50:41]Write to MH i2c: E2 08 00 72 26 80 13 00 00 00 00 00 00 14 [09:50:41]Write i2c OK [09:50:41]MH_I2C_Read... [09:50:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:42]Read from MH i2c: E2 [09:50:42]MH_I2C_Read... [09:50:42]Read from MH i2c: E2 62 00 [09:50:42]MH_I2C_Read... [09:50:42]Read from MH i2c: E2 62 00 72 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 72 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [09:50:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 72 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:50:42]wFMCommunicate OK [09:50:42]SAM_PROTO_GetFieldsCounters done [09:50:42]requested_item shift.num is exist - process it [09:50:42]requested_item shift.opened is exist - process it [09:50:42]req_shift_opened [09:50:42]FM_GetShiftState [09:50:42]SAM_PROTO_GetShiftState [09:50:42]wFMCommunicate request_size=4 [09:50:42]MH_SAM_APDU [09:50:42]CAPDU: 80 13 01 00 [09:50:42]Write to MH i2c: E2 08 00 73 26 80 13 01 00 00 00 00 00 16 [09:50:42]Write i2c OK [09:50:42]MH_I2C_Read... [09:50:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:42]Read from MH i2c: E2 [09:50:42]MH_I2C_Read... [09:50:42]Read from MH i2c: E2 0E 00 [09:50:42]MH_I2C_Read... [09:50:42]Read from MH i2c: E2 0E 00 73 26 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 25 [09:50:42]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:50:42]wFMCommunicate OK [09:50:42]SAM_PROTO_GetShiftState done [09:50:42]FM_GetShiftState done [09:50:42]req_shift_opened done [09:50:42]requested_item shift.open_date is exist - process it [09:50:42]req_shift_open_date [09:50:42]req_shift_open_date done [09:50:42]produce_requested_data done [09:50:42]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201330,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:50:42]process_action_free close_receipt [09:50:42]json_value_free [09:50:42]json_value_free done [09:50:42]process_json_proto returns [09:50:42]Send response to host [09:50:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201330,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:50:42]free response buf [09:50:42]execute_script done [09:50:42]execute_script returns [09:50:42]free content buf [09:50:42]Sock 9.Close socket [09:50:42]Sock 9.Thread stoped [09:50:44]OFD Sender: No OFD packet to send [09:50:49]OFD Sender: No OFD packet to send [09:50:54]OFD Sender: No OFD packet to send [09:50:59]OFD Sender: No OFD packet to send [09:51:04]OFD Sender: No OFD packet to send [09:51:09]OFD Sender: No OFD packet to send [09:51:14]OFD Sender: No OFD packet to send [09:51:19]OFD Sender: No OFD packet to send [09:51:24]OFD Sender: No OFD packet to send [09:51:29]OFD Sender: No OFD packet to send [09:51:34]OFD Sender: No OFD packet to send [09:51:36]accept exits with 10 [09:51:36]New connection [09:51:36]New thread 3067559268 created [09:51:36]Thread 3067415908 joined [09:51:36]Waiting for new connection... [09:51:36] Sock 10.Parse request [09:51:36]Sock 10.Check first char [09:51:36]Sock 10.First char is OK [09:51:36]request: POST /json_proto HTTP/1.0 [09:51:36]Method: POST [09:51:36]URL: /json_proto [09:51:36]Method is POST - this is cgi request [09:51:36]url: /json_proto [09:51:36]query_string will be loaded in cgi processing [09:51:36]execute_cgi json_proto POST (null) [09:51:36]execute_cgi path=json_proto method=POST [09:51:36]POST find Content-Length [09:51:36]Host: 172.17.63.195:8080 [09:51:36]Content-Length: 677 [09:51:36]Content-Type: application/json [09:51:36] [09:51:36]POST finish read [09:51:36]Found Content-Length = 677 [09:51:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:51:36]execute_script... [09:51: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)449079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:51:36]POST & json_proto [09:51:36]process_json_proto [09:51:36]json parsed OK: [09:51:36]protocol is kg_v1.0 [09:51:36]action value=close_receipt [09:51:36]process_action close_receipt [09:51:36]cmd_close_receipt [09:51:36]MH_GetDate [09:51:36]Write to MH i2c: F0 00 00 74 26 89 [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: F0 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: F0 09 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: F0 09 00 74 26 00 AC BB 1C 67 68 46 19 67 AA [09:51:36]GetLastDocTimeStamp 1729936240 [09:51:36]current date 1729936300 [09:51:36]FM_GetShiftState [09:51:36]SAM_PROTO_GetShiftState [09:51:36]wFMCommunicate request_size=4 [09:51:36]MH_SAM_APDU [09:51:36]CAPDU: 80 13 01 00 [09:51:36]Write to MH i2c: E2 08 00 75 26 80 13 01 00 00 00 00 00 18 [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:36]Read from MH i2c: E2 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 0E 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 0E 00 75 26 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 27 [09:51:37]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:51:37]wFMCommunicate OK [09:51:37]SAM_PROTO_GetShiftState done [09:51:37]FM_GetShiftState done [09:51:37]opened in 1729900879 [09:51:37]opened+sec_in_day 1729987279 [09:51:37]quantity*price = 50041 [09:51:37]sum+1 = 50042 [09:51:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 93 26.10.2024 09:51 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201331 ФПД: 267171602520204 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095140&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201331&fm=267171602520204&tin=02508201610067®Number=0000000000091777&sum=50000 [09:51:38]StoreToDocumentArchive [09:51:38]shift 543 fd 201331 [09:51:38]save to /storage/0543/doc_00201331 [09:51:38]save last doc name /storage/0543/doc_00201331 to /storage/kkm_last_doc_name [09:51:38]save OK [09:51:38]Clear old archive folders... [09:51:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:51:38]tlvbuf is 01857C10 [09:51:38]SAM_PROTO_ClearQueue [09:51:38]wFMCommunicate request_size=4 [09:51:38]MH_SAM_APDU [09:51:38]CAPDU: 80 09 00 00 [09:51:38]Write to MH i2c: E2 08 00 82 26 80 09 00 00 00 00 00 00 1A [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:38]Read from MH i2c: E2 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 03 00 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 03 00 82 26 00 90 00 1C [09:51:38]RAPDU: 90 00 [09:51:38]wFMCommunicate OK [09:51:38]SAM_PROTO_ClearQueue done [09:51:38]KKMCreateOFDPacket [09:51:38]OFDProtocolAddRootSTLVToBuf [09:51:38]FM_MakeSignedData [09:51:38]FM_MakeSignedData [09:51:38]SAM_PROTO_SignData [09:51:38]wFMCommunicate request_size=4 [09:51:38]MH_SAM_APDU [09:51:38]CAPDU: 80 0D 01 02 [09:51:38]Write to MH i2c: E2 08 00 83 26 80 0D 01 02 00 00 00 00 22 [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:38]Read from MH i2c: E2 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 03 00 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 03 00 83 26 00 90 00 1D [09:51:38]RAPDU: 90 00 [09:51:38]wFMCommunicate OK [09:51:38]wFMCommunicate request_size=255 [09:51:38]MH_SAM_APDU [09:51:38]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 32 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 5D 00 00 00 F4 03 04 00 AC BB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 73 12 03 00 35 04 06 00 F2 [09:51:38]Write to MH i2c: E2 02 01 84 26 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 32 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 5D 00 00 00 F4 03 04 00 AC BB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 73 12 03 00 35 04 06 00 F2 00 00 98 [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:39]Read from MH i2c: E2 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 03 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 03 00 84 26 00 90 00 1E [09:51:39]RAPDU: 90 00 [09:51:39]wFMCommunicate OK [09:51:39]wFMCommunicate request_size=10 [09:51:39]MH_SAM_APDU [09:51:39]CAPDU: 80 0D 02 02 05 FD BC 76 58 8C [09:51:39]Write to MH i2c: E2 0D 00 85 26 80 0D 02 02 05 00 FD BC 76 58 8C 00 00 42 [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:39]Read from MH i2c: E2 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 03 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 03 00 85 26 00 90 00 1F [09:51:39]RAPDU: 90 00 [09:51:39]wFMCommunicate OK [09:51:39]wFMCommunicate request_size=4 [09:51:39]MH_SAM_APDU [09:51:39]CAPDU: 80 0D 03 02 [09:51:39]Write to MH i2c: E2 08 00 86 26 80 0D 03 02 00 00 00 00 27 [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:39]Read from MH i2c: E2 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 0B 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 0B 00 86 26 00 4F A6 A4 D0 78 A0 22 C8 90 00 93 [09:51:39]RAPDU: 4F A6 A4 D0 78 A0 22 C8 90 00 [09:51:39]wFMCommunicate OK [09:51:39]SAM_PROTO_SignData done [09:51:39]FM_MakeSignedData done [09:51:39]CreateOFDProtocolMessage [09:51:39]wFMCommunicate request_size=4 [09:51:39]MH_SAM_APDU [09:51:39]CAPDU: 80 11 00 00 [09:51:39]Write to MH i2c: E2 08 00 87 26 80 11 00 00 00 00 00 00 27 [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:39]Read from MH i2c: E2 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 17 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 17 00 87 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7C [09:51:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:51:39]wFMCommunicate OK [09:51:39]CreateOFDProtocolMessage done [09:51:39]OFDSenderStorePacket 201331 [09:51:39]StoreOFDPacket docnum=201331 [09:51:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 2C 6E 07 01 FC 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 32 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 5D 00 00 00 F4 03 04 00 AC BB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 73 12 03 00 35 04 06 00 F2 FD BC 76 58 8C 4F A6 A4 D0 78 A0 22 C8 [09:51:39]CheckFolder [09:51:39]dirname=/storage/ofd_packets [09:51:39]CheckFolder done [09:51:39]ProducePacketName [09:51:39]name=ofd_packets/00201331 [09:51:39]NVStorageSaveData ofd_packets/00201331 [09:51:39]File name is /storage/ofd_packets/00201331 [09:51:39]Write 301 bytes [09:51:39]NVStorageSaveData done [09:51:39]OFDSenderStorePacket done [09:51:39]KKMCreateOFDPacket done [09:51:39]NVStorageSaveData kkm_last_timestamp [09:51:39]File name is /storage/kkm_last_timestamp [09:51:39]Write 4 bytes [09:51:39]NVStorageSaveData done [09:51:39]ExternCall_PrintAddStr [09:51:39]wPrintStart [09:51:39]Write to MH i2c: 01 00 00 88 26 AE [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: 01 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: 01 07 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: 01 07 00 88 26 00 00 00 00 00 FF 0F C3 [09:51:39]RasterBufferAndPrint [09:51:39]line Счет N : (1)449079 [09:51:39]line ИНН: 02508201610067 [09:51:39]line Контрольно-Кассовый Чек [09:51:39]line ПРОДАЖА [09:51:39]line ТРК (МРК, ГНК) : 31 [09:51:39]line Товар: 2710124130 [09:51:39]line Аи-92-К-2 [09:51:39]line 7.480 * 66.90 [09:51:39]line = 500.41 [09:51:39]line НДС 12% НСП 1% [09:51:39]line > о реализуемом товаре [09:51:39]line ОКРУГЛЕНИЕ: -0.41 [09:51:39]line ИТОГО: 500.00 [09:51:39]line Внесено: 500.00 [09:51:39]line СДАЧА: 0.00 [09:51:39]line НСП 1% : 4.43 [09:51:39]line НДС 12% : 53.14 [09:51:39]line Наличными: 500.00 [09:51:39]line Безнал.: 0.00 [09:51:39]line Место: АЗС № 171 "Партнер Нефть" [09:51:39]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:51:39]line СНО: Общий режим [09:51:39]line Чек 93 26.10.2024 09:51 [09:51:39]line Смена: 543 ФФД: 1.0 [09:51:39]line ЗНМ: 0300000109 [09:51:39]line РНМ: 0000000000091777 [09:51:39]line Версия ККМ: 001 [09:51:39]line ФМ: 0000000000871756 [09:51:39]line ФД: 201331 [09:51:39]line ФПД: 267171602520204 [09:51:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095140&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201331&fm=267171602520204&tin=02508201610067®Number=0000000000091777&sum=50000 [09:51:39]OFD Sender: Processing packet 201331 [packets to send 112, broken 111] [09:51:39]ProducePacketName [09:51:39]name=ofd_packets/00201331 [09:51:39]OFD Sender: To server: pG, [09:51:39]CommunicateWithHost lk.salyk.kg:30040 [09:51:39]ConnectInit lk.salyk.kg [09:51:39]written 0, free lines is 4095 [09:51:39]Connected sock=7 [09:51:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 2C 6E 07 01 FC 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 32 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 5D 00 00 00 F4 03 04 00 AC BB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 73 12 03 00 35 04 06 00 F2 FD BC 76 58 8C 4F A6 A4 D0 78 A0 22 C8 [09:51:39]Write to MH i2c: 01 00 00 B3 26 D9 [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: 01 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: 01 07 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: 01 07 00 B3 26 00 00 00 00 00 AA 0C 96 [09:51:39]RasterBufferAndPrint [09:51:39]line [09:51:39]line [09:51:39]line [09:51:39]line [09:51:39]line [09:51:39]written 0, free lines is 3280 [09:51:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 7F C8 47 00 2C EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 73 12 03 00 F4 03 04 00 56 67 1C 67 B6 04 01 00 00 44 2C AF 66 B8 32 78 FC [09:51:40]CommunicateWithHost err = 0 [09:51:40]CheckOFDResponse [09:51:40]1017 (14) - 77093643461234 [09:51:40]1041 (16) - 0000000000871756 [09:51:40]1040 (4) - 201331 [09:51:40]1012 (4) - 26.10.2024 03:51 [09:51:40]1206 (1) - 0 [09:51:40]OFD Sender: Remove packet 201331 [09:51:40]ProducePacketName [09:51:40]name=ofd_packets/00201331 [09:51:40]NVStorageDeleteData [09:51:40]MH_Cut [09:51:40]Write to MH i2c: D1 01 00 BA 26 01 B2 [09:51:40]Write i2c OK [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: D1 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: D1 01 00 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: D1 01 00 BA 26 00 B1 [09:51:40]Write to MH i2c: 01 00 00 BB 26 E1 [09:51:40]Write i2c OK [09:51:40]MH_I2C_Read... [09:51:40]OFD Sender: No OFD packet to send [09:51:40]*** Cut start [09:51:40]*** Purtial cut [09:51:40]*** Stage 1: CUTSNS_PIN = 1 [09:51:40]Read from MH i2c: 01 [09:51:41]MH_I2C_Read... [09:51:41]*** Stop cut motor [09:51:41]*** Cut end [09:51:41]Read from MH i2c: 01 07 00 [09:51:41]MH_I2C_Read... [09:51:41]Read from MH i2c: 01 07 00 BB 26 00 00 00 00 00 FF 0F F6 [09:51:41]process_action close_receipt done [09:51:41]requested_data is exist [09:51:41]produce_requested_data [09:51:41]requested_item fm.sn is exist - process it [09:51:41]wFMCommunicate request_size=4 [09:51:41]MH_SAM_APDU [09:51:41]CAPDU: 80 11 00 00 [09:51:41]Write to MH i2c: E2 08 00 BC 26 80 11 00 00 00 00 00 00 5C [09:51:41]Write i2c OK [09:51:41]MH_I2C_Read... [09:51:41]Read from MH i2c: E2 [09:51:41]MH_I2C_Read... [09:51:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:41]Read from MH i2c: E2 17 00 [09:51:41]MH_I2C_Read... [09:51:41]Read from MH i2c: E2 17 00 BC 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B1 [09:51:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:51:41]wFMCommunicate OK [09:51:41]requested_item fd.num is exist - process it [09:51:41]SAM_PROTO_GetFieldsCounters [09:51:41]wFMCommunicate request_size=4 [09:51:41]MH_SAM_APDU [09:51:41]CAPDU: 80 13 00 00 [09:51:41]Write to MH i2c: E2 08 00 BD 26 80 13 00 00 00 00 00 00 5F [09:51:41]Write i2c OK [09:51:41]MH_I2C_Read... [09:51:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:41]Read from MH i2c: E2 [09:51:41]MH_I2C_Read... [09:51:41]Read from MH i2c: E2 62 00 [09:51:41]MH_I2C_Read... [09:51:41]Read from MH i2c: E2 62 00 BD 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 73 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [09:51:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 73 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:51:41]wFMCommunicate OK [09:51:41]SAM_PROTO_GetFieldsCounters done [09:51:41]requested_item shift.num is exist - process it [09:51:41]requested_item shift.opened is exist - process it [09:51:41]req_shift_opened [09:51:41]FM_GetShiftState [09:51:41]SAM_PROTO_GetShiftState [09:51:41]wFMCommunicate request_size=4 [09:51:41]MH_SAM_APDU [09:51:41]CAPDU: 80 13 01 00 [09:51:41]Write to MH i2c: E2 08 00 BE 26 80 13 01 00 00 00 00 00 61 [09:51:41]Write i2c OK [09:51:41]MH_I2C_Read... [09:51:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:41]Read from MH i2c: E2 [09:51:41]MH_I2C_Read... [09:51:41]Read from MH i2c: E2 0E 00 [09:51:41]MH_I2C_Read... [09:51:41]Read from MH i2c: E2 0E 00 BE 26 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 70 [09:51:41]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:51:41]wFMCommunicate OK [09:51:41]SAM_PROTO_GetShiftState done [09:51:41]FM_GetShiftState done [09:51:41]req_shift_opened done [09:51:41]requested_item shift.open_date is exist - process it [09:51:41]req_shift_open_date [09:51:41]req_shift_open_date done [09:51:41]produce_requested_data done [09:51:41]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201331,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:51:41]process_action_free close_receipt [09:51:41]json_value_free [09:51:41]json_value_free done [09:51:41]process_json_proto returns [09:51:41]Send response to host [09:51:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201331,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:51:41]free response buf [09:51:41]execute_script done [09:51:41]execute_script returns [09:51:41]free content buf [09:51:41]Sock 10.Close socket [09:51:41]Sock 10.Thread stoped [09:51:45]OFD Sender: No OFD packet to send [09:51:50]OFD Sender: No OFD packet to send [09:51:55]OFD Sender: No OFD packet to send [09:52:00]OFD Sender: No OFD packet to send [09:52:05]OFD Sender: No OFD packet to send [09:52:10]OFD Sender: No OFD packet to send [09:52:15]OFD Sender: No OFD packet to send [09:52:20]OFD Sender: No OFD packet to send [09:52:25]OFD Sender: No OFD packet to send [09:52:29]accept exits with 9 [09:52:29]New connection [09:52:29]New thread 3067415908 created [09:52:29]Thread 3067559268 joined [09:52:29]Waiting for new connection... [09:52:29] Sock 9.Parse request [09:52:29]Sock 9.Check first char [09:52:29]Sock 9.First char is OK [09:52:29]request: POST /json_proto HTTP/1.0 [09:52:29]Method: POST [09:52:29]URL: /json_proto [09:52:29]Method is POST - this is cgi request [09:52:29]url: /json_proto [09:52:29]query_string will be loaded in cgi processing [09:52:29]execute_cgi json_proto POST (null) [09:52:29]execute_cgi path=json_proto method=POST [09:52:29]POST find Content-Length [09:52:29]Host: 172.17.63.195:8080 [09:52:29]Content-Length: 670 [09:52:29]Content-Type: application/json [09:52:29] [09:52:29]POST finish read [09:52:29]Found Content-Length = 670 [09:52:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "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" ] } } [09:52:29]execute_script... [09:52: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)449080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "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" ] } } [09:52:29]POST & json_proto [09:52:29]process_json_proto [09:52:29]json parsed OK: [09:52:29]protocol is kg_v1.0 [09:52:29]action value=close_receipt [09:52:29]process_action close_receipt [09:52:29]cmd_close_receipt [09:52:29]MH_GetDate [09:52:29]Write to MH i2c: F0 00 00 BF 26 D4 [09:52:29]Write i2c OK [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: F0 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: F0 09 00 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: F0 09 00 BF 26 00 E1 BB 1C 67 68 46 19 67 2A [09:52:29]GetLastDocTimeStamp 1729936300 [09:52:29]current date 1729936353 [09:52:29]FM_GetShiftState [09:52:29]SAM_PROTO_GetShiftState [09:52:29]wFMCommunicate request_size=4 [09:52:29]MH_SAM_APDU [09:52:29]CAPDU: 80 13 01 00 [09:52:29]Write to MH i2c: E2 08 00 C0 26 80 13 01 00 00 00 00 00 63 [09:52:29]Write i2c OK [09:52:29]MH_I2C_Read... [09:52:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:29]Read from MH i2c: E2 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: E2 0E 00 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: E2 0E 00 C0 26 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 72 [09:52:29]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:52:29]wFMCommunicate OK [09:52:29]SAM_PROTO_GetShiftState done [09:52:29]FM_GetShiftState done [09:52:29]opened in 1729900879 [09:52:29]opened+sec_in_day 1729987279 [09:52:29]quantity*price = 30027 [09:52:29]sum+1 = 30029 [09:52:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 94 26.10.2024 09:52 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201332 ФПД: 87470820145944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095233&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201332&fm=87470820145944&tin=02508201610067®Number=0000000000091777&sum=30000 [09:52:31]StoreToDocumentArchive [09:52:31]shift 543 fd 201332 [09:52:31]save to /storage/0543/doc_00201332 [09:52:31]save last doc name /storage/0543/doc_00201332 to /storage/kkm_last_doc_name [09:52:31]save OK [09:52:31]Clear old archive folders... [09:52:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:52:31]tlvbuf is 0186C560 [09:52:31]SAM_PROTO_ClearQueue [09:52:31]wFMCommunicate request_size=4 [09:52:31]MH_SAM_APDU [09:52:31]CAPDU: 80 09 00 00 [09:52:31]Write to MH i2c: E2 08 00 CD 26 80 09 00 00 00 00 00 00 65 [09:52:31]Write i2c OK [09:52:31]MH_I2C_Read... [09:52:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:31]Read from MH i2c: E2 [09:52:31]MH_I2C_Read... [09:52:31]Read from MH i2c: E2 03 00 [09:52:31]MH_I2C_Read... [09:52:31]Read from MH i2c: E2 03 00 CD 26 00 90 00 67 [09:52:31]RAPDU: 90 00 [09:52:31]wFMCommunicate OK [09:52:31]SAM_PROTO_ClearQueue done [09:52:31]KKMCreateOFDPacket [09:52:31]OFDProtocolAddRootSTLVToBuf [09:52:31]FM_MakeSignedData [09:52:31]FM_MakeSignedData [09:52:31]SAM_PROTO_SignData [09:52:31]wFMCommunicate request_size=4 [09:52:31]MH_SAM_APDU [09:52:31]CAPDU: 80 0D 01 02 [09:52:31]Write to MH i2c: E2 08 00 CE 26 80 0D 01 02 00 00 00 00 6D [09:52:31]Write i2c OK [09:52:31]MH_I2C_Read... [09:52:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:31]Read from MH i2c: E2 [09:52:31]MH_I2C_Read... [09:52:31]Read from MH i2c: E2 03 00 [09:52:31]MH_I2C_Read... [09:52:31]Read from MH i2c: E2 03 00 CE 26 00 90 00 68 [09:52:31]RAPDU: 90 00 [09:52:31]wFMCommunicate OK [09:52:31]wFMCommunicate request_size=255 [09:52:31]MH_SAM_APDU [09:52:31]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 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 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 75 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 5E 00 00 00 F4 03 04 00 E1 BB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 74 12 03 00 35 04 06 00 [09:52:31]Write to MH i2c: E2 02 01 CF 26 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 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 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 75 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 5E 00 00 00 F4 03 04 00 E1 BB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 74 12 03 00 35 04 06 00 00 00 E3 [09:52:31]Write i2c OK [09:52:31]MH_I2C_Read... [09:52:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:31]Read from MH i2c: E2 [09:52:31]MH_I2C_Read... [09:52:31]Read from MH i2c: E2 03 00 [09:52:31]MH_I2C_Read... [09:52:31]Read from MH i2c: E2 03 00 CF 26 00 90 00 69 [09:52:31]RAPDU: 90 00 [09:52:31]wFMCommunicate OK [09:52:31]wFMCommunicate request_size=11 [09:52:31]MH_SAM_APDU [09:52:31]CAPDU: 80 0D 02 02 06 4F 8D E3 29 BB 18 [09:52:31]Write to MH i2c: E2 0E 00 D0 26 80 0D 02 02 06 00 4F 8D E3 29 BB 18 00 00 37 [09:52:31]Write i2c OK [09:52:31]MH_I2C_Read... [09:52:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:32]Read from MH i2c: E2 [09:52:32]MH_I2C_Read... [09:52:32]Read from MH i2c: E2 03 00 [09:52:32]MH_I2C_Read... [09:52:32]Read from MH i2c: E2 03 00 D0 26 00 90 00 6A [09:52:32]RAPDU: 90 00 [09:52:32]wFMCommunicate OK [09:52:32]wFMCommunicate request_size=4 [09:52:32]MH_SAM_APDU [09:52:32]CAPDU: 80 0D 03 02 [09:52:32]Write to MH i2c: E2 08 00 D1 26 80 0D 03 02 00 00 00 00 72 [09:52:32]Write i2c OK [09:52:32]MH_I2C_Read... [09:52:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:32]Read from MH i2c: E2 [09:52:32]MH_I2C_Read... [09:52:32]Read from MH i2c: E2 0B 00 [09:52:32]MH_I2C_Read... [09:52:32]Read from MH i2c: E2 0B 00 D1 26 00 DB 18 7B E5 6D 35 D5 CE 90 00 0B [09:52:32]RAPDU: DB 18 7B E5 6D 35 D5 CE 90 00 [09:52:32]wFMCommunicate OK [09:52:32]SAM_PROTO_SignData done [09:52:32]FM_MakeSignedData done [09:52:32]CreateOFDProtocolMessage [09:52:32]wFMCommunicate request_size=4 [09:52:32]MH_SAM_APDU [09:52:32]CAPDU: 80 11 00 00 [09:52:32]Write to MH i2c: E2 08 00 D2 26 80 11 00 00 00 00 00 00 72 [09:52:32]Write i2c OK [09:52:32]MH_I2C_Read... [09:52:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:32]Read from MH i2c: E2 [09:52:32]MH_I2C_Read... [09:52:32]Read from MH i2c: E2 17 00 [09:52:32]MH_I2C_Read... [09:52:32]Read from MH i2c: E2 17 00 D2 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C7 [09:52:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:52:32]wFMCommunicate OK [09:52:32]CreateOFDProtocolMessage done [09:52:32]OFDSenderStorePacket 201332 [09:52:32]StoreOFDPacket docnum=201332 [09:52:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 24 01 08 01 D9 18 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 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 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 75 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 5E 00 00 00 F4 03 04 00 E1 BB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 74 12 03 00 35 04 06 00 4F 8D E3 29 BB 18 DB 18 7B E5 6D 35 D5 CE [09:52:32]CheckFolder [09:52:32]dirname=/storage/ofd_packets [09:52:32]CheckFolder done [09:52:32]ProducePacketName [09:52:32]name=ofd_packets/00201332 [09:52:32]NVStorageSaveData ofd_packets/00201332 [09:52:32]File name is /storage/ofd_packets/00201332 [09:52:32]Write 302 bytes [09:52:32]NVStorageSaveData done [09:52:32]OFDSenderStorePacket done [09:52:32]KKMCreateOFDPacket done [09:52:32]NVStorageSaveData kkm_last_timestamp [09:52:32]File name is /storage/kkm_last_timestamp [09:52:32]Write 4 bytes [09:52:32]NVStorageSaveData done [09:52:32]ExternCall_PrintAddStr [09:52:32]wPrintStart [09:52:32]Write to MH i2c: 01 00 00 D3 26 F9 [09:52:32]Write i2c OK [09:52:32]MH_I2C_Read... [09:52:32]Read from MH i2c: 01 [09:52:32]MH_I2C_Read... [09:52:32]Read from MH i2c: 01 07 00 [09:52:32]MH_I2C_Read... [09:52:32]Read from MH i2c: 01 07 00 D3 26 00 00 00 00 00 FF 0F 0E [09:52:32]RasterBufferAndPrint [09:52:32]line Счет N : (1)449080 [09:52:32]line ИНН: 02508201610067 [09:52:32]line Контрольно-Кассовый Чек [09:52:32]line ПРОДАЖА [09:52:32]line ТРК (МРК, ГНК) : 42 [09:52:32]line Товар: 2710124130 [09:52:32]line SUPER 92-К-5 [09:52:32]line 4.390 * 68.40 [09:52:32]line = 300.28 [09:52:32]line НДС 12% НСП 1% [09:52:32]line > о реализуемом товаре [09:52:32]line ОКРУГЛЕНИЕ: -0.28 [09:52:32]line ИТОГО: 300.00 [09:52:32]line Внесено: 300.00 [09:52:32]line СДАЧА: 0.00 [09:52:32]line НСП 1% : 2.66 [09:52:32]line НДС 12% : 31.89 [09:52:32]line Наличными: 300.00 [09:52:32]line Безнал.: 0.00 [09:52:32]line Место: АЗС № 171 "Партнер Нефть" [09:52:32]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:52:32]OFD Sender: Processing packet 201332 [packets to send 112, broken 111] [09:52:32]ProducePacketName [09:52:32]name=ofd_packets/00201332 [09:52:32]OFD Sender: To server: pG, [09:52:32]CommunicateWithHost lk.salyk.kg:30040 [09:52:32]ConnectInit lk.salyk.kg [09:52:32]line СНО: Общий режим [09:52:32]line Чек 94 26.10.2024 09:52 [09:52:32]line Смена: 543 ФФД: 1.0 [09:52:32]line ЗНМ: 0300000109 [09:52:32]line РНМ: 0000000000091777 [09:52:32]line Версия ККМ: 001 [09:52:32]line ФМ: 0000000000871756 [09:52:32]line ФД: 201332 [09:52:32]line ФПД: 87470820145944 [09:52:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095233&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201332&fm=87470820145944&tin=02508201610067®Number=0000000000091777&sum=30000 [09:52:32]written 0, free lines is 4095 [09:52:32]Connected sock=11 [09:52:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 24 01 08 01 D9 18 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 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 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 75 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 5E 00 00 00 F4 03 04 00 E1 BB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 74 12 03 00 35 04 06 00 4F 8D E3 29 BB 18 DB 18 7B E5 6D 35 D5 CE [09:52:32]Write to MH i2c: 01 00 00 FE 26 24 [09:52:32]Write i2c OK [09:52:32]MH_I2C_Read... [09:52:32]Read from MH i2c: 01 [09:52:32]MH_I2C_Read... [09:52:32]Read from MH i2c: 01 07 00 [09:52:32]MH_I2C_Read... [09:52:32]Read from MH i2c: 01 07 00 FE 26 00 00 00 00 00 BF 0C F6 [09:52:32]RasterBufferAndPrint [09:52:32]line [09:52:32]line [09:52:32]line [09:52:32]line [09:52:32]line [09:52:32]written 0, free lines is 3304 [09:52:32]MH_Cut [09:52:32]Write to MH i2c: D1 01 00 05 27 01 FE [09:52:32]Write i2c OK [09:52:32]MH_I2C_Read... [09:52:32]Read from MH i2c: D1 [09:52:32]MH_I2C_Read... [09:52:32]Read from MH i2c: D1 01 00 [09:52:32]MH_I2C_Read... [09:52:32]Read from MH i2c: D1 01 00 05 27 00 FD [09:52:32]Write to MH i2c: 01 00 00 06 27 2D [09:52:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D9 31 47 00 5A 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 74 12 03 00 F4 03 04 00 8B 67 1C 67 B6 04 01 00 00 88 A9 D7 31 F3 B5 79 AD [09:52:33]CommunicateWithHost err = 0 [09:52:33]CheckOFDResponse [09:52:33]1017 (14) - 77093643461234 [09:52:33]1041 (16) - 0000000000871756 [09:52:33]1040 (4) - 201332 [09:52:33]1012 (4) - 26.10.2024 03:52 [09:52:33]1206 (1) - 0 [09:52:33]OFD Sender: Remove packet 201332 [09:52:33]ProducePacketName [09:52:33]name=ofd_packets/00201332 [09:52:33]NVStorageDeleteData [09:52:33]Write i2c OK [09:52:33]MH_I2C_Read... [09:52:33]OFD Sender: No OFD packet to send [09:52:33]*** Cut start [09:52:33]*** Purtial cut [09:52:33]*** Stage 1: CUTSNS_PIN = 1 [09:52:33]Read from MH i2c: 01 [09:52:33]MH_I2C_Read... [09:52:33]*** Stop cut motor [09:52:33]*** Cut end [09:52:33]Read from MH i2c: 01 07 00 [09:52:33]MH_I2C_Read... [09:52:33]Read from MH i2c: 01 07 00 06 27 00 00 00 00 00 FF 0F 42 [09:52:33]process_action close_receipt done [09:52:33]requested_data is exist [09:52:33]produce_requested_data [09:52:33]requested_item fm.sn is exist - process it [09:52:33]wFMCommunicate request_size=4 [09:52:33]MH_SAM_APDU [09:52:33]CAPDU: 80 11 00 00 [09:52:33]Write to MH i2c: E2 08 00 07 27 80 11 00 00 00 00 00 00 A8 [09:52:33]Write i2c OK [09:52:33]MH_I2C_Read... [09:52:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:34]Read from MH i2c: E2 [09:52:34]MH_I2C_Read... [09:52:34]Read from MH i2c: E2 17 00 [09:52:34]MH_I2C_Read... [09:52:34]Read from MH i2c: E2 17 00 07 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FD [09:52:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:52:34]wFMCommunicate OK [09:52:34]requested_item fd.num is exist - process it [09:52:34]SAM_PROTO_GetFieldsCounters [09:52:34]wFMCommunicate request_size=4 [09:52:34]MH_SAM_APDU [09:52:34]CAPDU: 80 13 00 00 [09:52:34]Write to MH i2c: E2 08 00 08 27 80 13 00 00 00 00 00 00 AB [09:52:34]Write i2c OK [09:52:34]MH_I2C_Read... [09:52:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:34]Read from MH i2c: E2 [09:52:34]MH_I2C_Read... [09:52:34]Read from MH i2c: E2 62 00 [09:52:34]MH_I2C_Read... [09:52:34]Read from MH i2c: E2 62 00 08 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 74 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [09:52:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 74 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:34]wFMCommunicate OK [09:52:34]SAM_PROTO_GetFieldsCounters done [09:52:34]requested_item shift.num is exist - process it [09:52:34]requested_item shift.opened is exist - process it [09:52:34]req_shift_opened [09:52:34]FM_GetShiftState [09:52:34]SAM_PROTO_GetShiftState [09:52:34]wFMCommunicate request_size=4 [09:52:34]MH_SAM_APDU [09:52:34]CAPDU: 80 13 01 00 [09:52:34]Write to MH i2c: E2 08 00 09 27 80 13 01 00 00 00 00 00 AD [09:52:34]Write i2c OK [09:52:34]MH_I2C_Read... [09:52:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:34]Read from MH i2c: E2 [09:52:34]MH_I2C_Read... [09:52:34]Read from MH i2c: E2 0E 00 [09:52:34]MH_I2C_Read... [09:52:34]Read from MH i2c: E2 0E 00 09 27 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 BC [09:52:34]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:52:34]wFMCommunicate OK [09:52:34]SAM_PROTO_GetShiftState done [09:52:34]FM_GetShiftState done [09:52:34]req_shift_opened done [09:52:34]requested_item shift.open_date is exist - process it [09:52:34]req_shift_open_date [09:52:34]req_shift_open_date done [09:52:34]produce_requested_data done [09:52:34]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201332,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:52:34]process_action_free close_receipt [09:52:34]json_value_free [09:52:34]json_value_free done [09:52:34]process_json_proto returns [09:52:34]Send response to host [09:52:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201332,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:52:34]free response buf [09:52:34]execute_script done [09:52:34]execute_script returns [09:52:34]free content buf [09:52:34]Sock 9.Close socket [09:52:34]Sock 9.Thread stoped [09:52:38]OFD Sender: No OFD packet to send [09:52:43]OFD Sender: No OFD packet to send [09:52:48]OFD Sender: No OFD packet to send [09:52:52]accept exits with 10 [09:52:52]New connection [09:52:52]New thread 3067559268 created [09:52:52]Thread 3067415908 joined [09:52:52]Waiting for new connection... [09:52:52] Sock 10.Parse request [09:52:52]Sock 10.Check first char [09:52:52]Sock 10.First char is OK [09:52:52]request: POST /json_proto HTTP/1.0 [09:52:52]Method: POST [09:52:52]URL: /json_proto [09:52:52]Method is POST - this is cgi request [09:52:52]url: /json_proto [09:52:52]query_string will be loaded in cgi processing [09:52:52]execute_cgi json_proto POST (null) [09:52:52]execute_cgi path=json_proto method=POST [09:52:52]POST find Content-Length [09:52:52]Host: 172.17.63.195:8080 [09:52:52]Content-Length: 677 [09:52:52]Content-Type: application/json [09:52:52] [09:52:52]POST finish read [09:52:52]Found Content-Length = 677 [09:52:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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" ] } } [09:52:52]execute_script... [09:52: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)449081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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" ] } } [09:52:52]POST & json_proto [09:52:52]process_json_proto [09:52:52]json parsed OK: [09:52:52]protocol is kg_v1.0 [09:52:52]action value=close_receipt [09:52:52]process_action close_receipt [09:52:52]cmd_close_receipt [09:52:52]MH_GetDate [09:52:52]Write to MH i2c: F0 00 00 0A 27 20 [09:52:52]Write i2c OK [09:52:52]MH_I2C_Read... [09:52:52]Read from MH i2c: F0 [09:52:52]MH_I2C_Read... [09:52:52]Read from MH i2c: F0 09 00 [09:52:52]MH_I2C_Read... [09:52:52]Read from MH i2c: F0 09 00 0A 27 00 F8 BB 1C 67 68 46 19 67 8D [09:52:52]GetLastDocTimeStamp 1729936353 [09:52:52]current date 1729936376 [09:52:52]FM_GetShiftState [09:52:52]SAM_PROTO_GetShiftState [09:52:52]wFMCommunicate request_size=4 [09:52:52]MH_SAM_APDU [09:52:52]CAPDU: 80 13 01 00 [09:52:52]Write to MH i2c: E2 08 00 0B 27 80 13 01 00 00 00 00 00 AF [09:52:52]Write i2c OK [09:52:52]MH_I2C_Read... [09:52:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:52]Read from MH i2c: E2 [09:52:52]MH_I2C_Read... [09:52:52]Read from MH i2c: E2 0E 00 [09:52:52]MH_I2C_Read... [09:52:52]Read from MH i2c: E2 0E 00 0B 27 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 BE [09:52:52]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:52:52]wFMCommunicate OK [09:52:52]SAM_PROTO_GetShiftState done [09:52:52]FM_GetShiftState done [09:52:52]opened in 1729900879 [09:52:52]opened+sec_in_day 1729987279 [09:52:52]quantity*price = 60009 [09:52:52]sum+1 = 60010 [09:52:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 95 26.10.2024 09:52 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201333 ФПД: 199067426990474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095256&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201333&fm=199067426990474&tin=02508201610067®Number=0000000000091777&sum=60000 [09:52:54]StoreToDocumentArchive [09:52:54]shift 543 fd 201333 [09:52:54]save to /storage/0543/doc_00201333 [09:52:54]save last doc name /storage/0543/doc_00201333 to /storage/kkm_last_doc_name [09:52:54]save OK [09:52:54]Clear old archive folders... [09:52:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:52:54]tlvbuf is 017D9D50 [09:52:54]SAM_PROTO_ClearQueue [09:52:54]wFMCommunicate request_size=4 [09:52:54]MH_SAM_APDU [09:52:54]CAPDU: 80 09 00 00 [09:52:54]Write to MH i2c: E2 08 00 18 27 80 09 00 00 00 00 00 00 B1 [09:52:54]Write i2c OK [09:52:54]MH_I2C_Read... [09:52:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:54]Read from MH i2c: E2 [09:52:54]MH_I2C_Read... [09:52:54]Read from MH i2c: E2 03 00 [09:52:54]MH_I2C_Read... [09:52:54]Read from MH i2c: E2 03 00 18 27 00 90 00 B3 [09:52:54]RAPDU: 90 00 [09:52:54]wFMCommunicate OK [09:52:54]SAM_PROTO_ClearQueue done [09:52:54]KKMCreateOFDPacket [09:52:54]OFDProtocolAddRootSTLVToBuf [09:52:54]FM_MakeSignedData [09:52:54]FM_MakeSignedData [09:52:54]SAM_PROTO_SignData [09:52:54]wFMCommunicate request_size=4 [09:52:54]MH_SAM_APDU [09:52:54]CAPDU: 80 0D 01 02 [09:52:54]Write to MH i2c: E2 08 00 19 27 80 0D 01 02 00 00 00 00 B9 [09:52:54]Write i2c OK [09:52:54]MH_I2C_Read... [09:52:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:54]Read from MH i2c: E2 [09:52:54]MH_I2C_Read... [09:52:54]Read from MH i2c: E2 03 00 [09:52:54]MH_I2C_Read... [09:52:54]Read from MH i2c: E2 03 00 19 27 00 90 00 B4 [09:52:54]RAPDU: 90 00 [09:52:54]wFMCommunicate OK [09:52:54]wFMCommunicate request_size=255 [09:52:54]MH_SAM_APDU [09:52: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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 5F 00 00 00 F4 03 04 00 F8 BB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 75 12 03 00 35 04 06 00 B5 [09:52:54]Write to MH i2c: E2 02 01 1A 27 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 5F 00 00 00 F4 03 04 00 F8 BB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 75 12 03 00 35 04 06 00 B5 00 00 1F [09:52:54]Write i2c OK [09:52:54]MH_I2C_Read... [09:52:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:55]Read from MH i2c: E2 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: E2 03 00 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: E2 03 00 1A 27 00 90 00 B5 [09:52:55]RAPDU: 90 00 [09:52:55]wFMCommunicate OK [09:52:55]wFMCommunicate request_size=10 [09:52:55]MH_SAM_APDU [09:52:55]CAPDU: 80 0D 02 02 05 0C FF 45 A9 8A [09:52:55]Write to MH i2c: E2 0D 00 1B 27 80 0D 02 02 05 00 0C FF 45 A9 8A 00 00 49 [09:52:55]Write i2c OK [09:52:55]MH_I2C_Read... [09:52:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:55]Read from MH i2c: E2 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: E2 03 00 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: E2 03 00 1B 27 00 90 00 B6 [09:52:55]RAPDU: 90 00 [09:52:55]wFMCommunicate OK [09:52:55]wFMCommunicate request_size=4 [09:52:55]MH_SAM_APDU [09:52:55]CAPDU: 80 0D 03 02 [09:52:55]Write to MH i2c: E2 08 00 1C 27 80 0D 03 02 00 00 00 00 BE [09:52:55]Write i2c OK [09:52:55]MH_I2C_Read... [09:52:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:55]Read from MH i2c: E2 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: E2 0B 00 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: E2 0B 00 1C 27 00 40 62 CE 71 EC 2B BF FA 90 00 70 [09:52:55]RAPDU: 40 62 CE 71 EC 2B BF FA 90 00 [09:52:55]wFMCommunicate OK [09:52:55]SAM_PROTO_SignData done [09:52:55]FM_MakeSignedData done [09:52:55]CreateOFDProtocolMessage [09:52:55]wFMCommunicate request_size=4 [09:52:55]MH_SAM_APDU [09:52:55]CAPDU: 80 11 00 00 [09:52:55]Write to MH i2c: E2 08 00 1D 27 80 11 00 00 00 00 00 00 BE [09:52:55]Write i2c OK [09:52:55]MH_I2C_Read... [09:52:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:55]Read from MH i2c: E2 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: E2 17 00 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: E2 17 00 1D 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 13 [09:52:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:52:55]wFMCommunicate OK [09:52:55]CreateOFDProtocolMessage done [09:52:55]OFDSenderStorePacket 201333 [09:52:55]StoreOFDPacket docnum=201333 [09:52:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 DF 89 07 01 36 E6 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 5F 00 00 00 F4 03 04 00 F8 BB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 75 12 03 00 35 04 06 00 B5 0C FF 45 A9 8A 40 62 CE 71 EC 2B BF FA [09:52:55]CheckFolder [09:52:55]dirname=/storage/ofd_packets [09:52:55]CheckFolder done [09:52:55]ProducePacketName [09:52:55]name=ofd_packets/00201333 [09:52:55]NVStorageSaveData ofd_packets/00201333 [09:52:55]File name is /storage/ofd_packets/00201333 [09:52:55]Write 301 bytes [09:52:55]NVStorageSaveData done [09:52:55]OFDSenderStorePacket done [09:52:55]KKMCreateOFDPacket done [09:52:55]NVStorageSaveData kkm_last_timestamp [09:52:55]File name is /storage/kkm_last_timestamp [09:52:55]Write 4 bytes [09:52:55]NVStorageSaveData done [09:52:55]ExternCall_PrintAddStr [09:52:55]wPrintStart [09:52:55]Write to MH i2c: 01 00 00 1E 27 45 [09:52:55]Write i2c OK [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: 01 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: 01 07 00 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: 01 07 00 1E 27 00 00 00 00 00 FF 0F 5A [09:52:55]RasterBufferAndPrint [09:52:55]line Счет N : (1)449081 [09:52:55]line ИНН: 02508201610067 [09:52:55]line Контрольно-Кассовый Чек [09:52:55]line ПРОДАЖА [09:52:55]line ТРК (МРК, ГНК) : 52 [09:52:55]line Товар: 2710124130 [09:52:55]line Аи-92-К-2 [09:52:55]line 8.970 * 66.90 [09:52:55]line = 600.09 [09:52:55]line НДС 12% НСП 1% [09:52:55]line > о реализуемом товаре [09:52:55]line ОКРУГЛЕНИЕ: -0.09 [09:52:55]line ИТОГО: 600.00 [09:52:55]line Внесено: 600.00 [09:52:55]line СДАЧА: 0.00 [09:52:55]line НСП 1% : 5.31 [09:52:55]line НДС 12% : 63.73 [09:52:55]line Наличными: 600.00 [09:52:55]line Безнал.: 0.00 [09:52:55]line Место: АЗС № 171 "Партнер Нефть" [09:52:55]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:52:55]line СНО: Общий режим [09:52:55]line Чек 95 26.10.2024 09:52 [09:52:55]line Смена: 543 ФФД: 1.0 [09:52:55]line ЗНМ: 0300000109 [09:52:55]line РНМ: 0000000000091777 [09:52:55]line Версия ККМ: 001 [09:52:55]line ФМ: 0000000000871756 [09:52:55]line ФД: 201333 [09:52:55]line ФПД: 199067426990474 [09:52:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095256&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201333&fm=199067426990474&tin=02508201610067®Number=0000000000091777&sum=60000 [09:52:55]written 0, free lines is 4095 [09:52:55]OFD Sender: Processing packet 201333 [packets to send 112, broken 111] [09:52:55]ProducePacketName [09:52:55]name=ofd_packets/00201333 [09:52:55]OFD Sender: To server: pG, [09:52:55]CommunicateWithHost lk.salyk.kg:30040 [09:52:55]ConnectInit lk.salyk.kg [09:52:55]Connected sock=9 [09:52:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 DF 89 07 01 36 E6 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 5F 00 00 00 F4 03 04 00 F8 BB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 75 12 03 00 35 04 06 00 B5 0C FF 45 A9 8A 40 62 CE 71 EC 2B BF FA [09:52:55]Write to MH i2c: 01 00 00 49 27 70 [09:52:55]Write i2c OK [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: 01 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: 01 07 00 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: 01 07 00 49 27 00 00 00 00 00 AB 0C 2E [09:52:55]RasterBufferAndPrint [09:52:55]line [09:52:55]line [09:52:55]line [09:52:55]line [09:52:55]line [09:52:55]written 0, free lines is 3289 [09:52:55]MH_Cut [09:52:55]Write to MH i2c: D1 01 00 50 27 01 49 [09:52:55]Write i2c OK [09:52:56]MH_I2C_Read... [09:52:56]Read from MH i2c: D1 [09:52:56]MH_I2C_Read... [09:52:56]Read from MH i2c: D1 01 00 [09:52:56]MH_I2C_Read... [09:52:56]Read from MH i2c: D1 01 00 50 27 00 48 [09:52:56]Write to MH i2c: 01 00 00 51 27 78 [09:52:56]Write i2c OK [09:52:56]MH_I2C_Read... [09:52:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 89 62 47 00 BF 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 75 12 03 00 F4 03 04 00 A2 67 1C 67 B6 04 01 00 00 99 19 07 B0 BE FB 70 2C [09:52:56]CommunicateWithHost err = 0 [09:52:56]CheckOFDResponse [09:52:56]1017 (14) - 77093643461234 [09:52:56]1041 (16) - 0000000000871756 [09:52:56]1040 (4) - 201333 [09:52:56]1012 (4) - 26.10.2024 03:53 [09:52:56]1206 (1) - 0 [09:52:56]OFD Sender: Remove packet 201333 [09:52:56]ProducePacketName [09:52:56]name=ofd_packets/00201333 [09:52:56]NVStorageDeleteData [09:52:56]OFD Sender: No OFD packet to send [09:52:56]*** Cut start [09:52:56]*** Purtial cut [09:52:56]*** Stage 1: CUTSNS_PIN = 1 [09:52:57]Read from MH i2c: 01 [09:52:57]MH_I2C_Read... [09:52:57]*** Stop cut motor [09:52:57]*** Cut end [09:52:57]Read from MH i2c: 01 07 00 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: 01 07 00 51 27 00 00 00 00 00 FF 0F 8D [09:52:57]process_action close_receipt done [09:52:57]requested_data is exist [09:52:57]produce_requested_data [09:52:57]requested_item fm.sn is exist - process it [09:52:57]wFMCommunicate request_size=4 [09:52:57]MH_SAM_APDU [09:52:57]CAPDU: 80 11 00 00 [09:52:57]Write to MH i2c: E2 08 00 52 27 80 11 00 00 00 00 00 00 F3 [09:52:57]Write i2c OK [09:52:57]MH_I2C_Read... [09:52:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:57]Read from MH i2c: E2 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: E2 17 00 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: E2 17 00 52 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 48 [09:52:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:52:57]wFMCommunicate OK [09:52:57]requested_item fd.num is exist - process it [09:52:57]SAM_PROTO_GetFieldsCounters [09:52:57]wFMCommunicate request_size=4 [09:52:57]MH_SAM_APDU [09:52:57]CAPDU: 80 13 00 00 [09:52:57]Write to MH i2c: E2 08 00 53 27 80 13 00 00 00 00 00 00 F6 [09:52:57]Write i2c OK [09:52:57]MH_I2C_Read... [09:52:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:57]Read from MH i2c: E2 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: E2 62 00 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: E2 62 00 53 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 75 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [09:52:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 75 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:57]wFMCommunicate OK [09:52:57]SAM_PROTO_GetFieldsCounters done [09:52:57]requested_item shift.num is exist - process it [09:52:57]requested_item shift.opened is exist - process it [09:52:57]req_shift_opened [09:52:57]FM_GetShiftState [09:52:57]SAM_PROTO_GetShiftState [09:52:57]wFMCommunicate request_size=4 [09:52:57]MH_SAM_APDU [09:52:57]CAPDU: 80 13 01 00 [09:52:57]Write to MH i2c: E2 08 00 54 27 80 13 01 00 00 00 00 00 F8 [09:52:57]Write i2c OK [09:52:57]MH_I2C_Read... [09:52:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:57]Read from MH i2c: E2 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: E2 0E 00 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: E2 0E 00 54 27 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 07 [09:52:57]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:52:57]wFMCommunicate OK [09:52:57]SAM_PROTO_GetShiftState done [09:52:57]FM_GetShiftState done [09:52:57]req_shift_opened done [09:52:57]requested_item shift.open_date is exist - process it [09:52:57]req_shift_open_date [09:52:57]req_shift_open_date done [09:52:57]produce_requested_data done [09:52:57]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201333,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:52:57]process_action_free close_receipt [09:52:57]json_value_free [09:52:57]json_value_free done [09:52:57]process_json_proto returns [09:52:57]Send response to host [09:52:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201333,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:52:57]free response buf [09:52:57]execute_script done [09:52:57]execute_script returns [09:52:57]free content buf [09:52:57]Sock 10.Close socket [09:52:57]Sock 10.Thread stoped [09:53:01]OFD Sender: No OFD packet to send [09:53:06]OFD Sender: No OFD packet to send [09:53:11]OFD Sender: No OFD packet to send [09:53:16]OFD Sender: No OFD packet to send [09:53:21]OFD Sender: No OFD packet to send [09:53:26]OFD Sender: No OFD packet to send [09:53:31]OFD Sender: No OFD packet to send [09:53:36]OFD Sender: No OFD packet to send [09:53:41]OFD Sender: No OFD packet to send [09:53:46]OFD Sender: No OFD packet to send [09:53:51]OFD Sender: No OFD packet to send [09:53:56]OFD Sender: No OFD packet to send [09:54:01]OFD Sender: No OFD packet to send [09:54:06]OFD Sender: No OFD packet to send [09:54:11]OFD Sender: No OFD packet to send [09:54:15]accept exits with 7 [09:54:15]New connection [09:54:15]New thread 3067415908 created [09:54:15]Thread 3067559268 joined [09:54:15]Waiting for new connection... [09:54:15] Sock 7.Parse request [09:54:15]Sock 7.Check first char [09:54:15]Sock 7.First char is OK [09:54:15]request: POST /json_proto HTTP/1.0 [09:54:15]Method: POST [09:54:15]URL: /json_proto [09:54:15]Method is POST - this is cgi request [09:54:15]url: /json_proto [09:54:15]query_string will be loaded in cgi processing [09:54:15]execute_cgi json_proto POST (null) [09:54:15]execute_cgi path=json_proto method=POST [09:54:15]POST find Content-Length [09:54:15]Host: 172.17.63.195:8080 [09:54:15]Content-Length: 677 [09:54:15]Content-Type: application/json [09:54:15] [09:54:15]POST finish read [09:54:15]Found Content-Length = 677 [09:54:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:54:15]execute_script... [09:54: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)449082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [09:54:15]POST & json_proto [09:54:15]process_json_proto [09:54:15]json parsed OK: [09:54:15]protocol is kg_v1.0 [09:54:15]action value=close_receipt [09:54:15]process_action close_receipt [09:54:15]cmd_close_receipt [09:54:15]MH_GetDate [09:54:15]Write to MH i2c: F0 00 00 55 27 6B [09:54:15]Write i2c OK [09:54:15]MH_I2C_Read... [09:54:15]Read from MH i2c: F0 [09:54:15]MH_I2C_Read... [09:54:15]Read from MH i2c: F0 09 00 [09:54:15]MH_I2C_Read... [09:54:15]Read from MH i2c: F0 09 00 55 27 00 4A BC 1C 67 68 46 19 67 2B [09:54:15]GetLastDocTimeStamp 1729936376 [09:54:15]current date 1729936458 [09:54:15]FM_GetShiftState [09:54:15]SAM_PROTO_GetShiftState [09:54:15]wFMCommunicate request_size=4 [09:54:15]MH_SAM_APDU [09:54:15]CAPDU: 80 13 01 00 [09:54:15]Write to MH i2c: E2 08 00 56 27 80 13 01 00 00 00 00 00 FA [09:54:15]Write i2c OK [09:54:15]MH_I2C_Read... [09:54:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:15]Read from MH i2c: E2 [09:54:15]MH_I2C_Read... [09:54:15]Read from MH i2c: E2 0E 00 [09:54:15]MH_I2C_Read... [09:54:15]Read from MH i2c: E2 0E 00 56 27 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 09 [09:54:15]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:54:15]wFMCommunicate OK [09:54:15]SAM_PROTO_GetShiftState done [09:54:15]FM_GetShiftState done [09:54:15]opened in 1729900879 [09:54:15]opened+sec_in_day 1729987279 [09:54:15]quantity*price = 20003 [09:54:15]sum+1 = 20004 [09:54:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 96 26.10.2024 09:54 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201334 ФПД: 65672947247244 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095418&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201334&fm=65672947247244&tin=02508201610067®Number=0000000000091777&sum=20000 [09:54:16]StoreToDocumentArchive [09:54:16]shift 543 fd 201334 [09:54:16]save to /storage/0543/doc_00201334 [09:54:16]save last doc name /storage/0543/doc_00201334 to /storage/kkm_last_doc_name [09:54:16]save OK [09:54:16]Clear old archive folders... [09:54:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:54:16]tlvbuf is 0176B600 [09:54:16]SAM_PROTO_ClearQueue [09:54:16]wFMCommunicate request_size=4 [09:54:16]MH_SAM_APDU [09:54:16]CAPDU: 80 09 00 00 [09:54:16]Write to MH i2c: E2 08 00 63 27 80 09 00 00 00 00 00 00 FC [09:54:16]Write i2c OK [09:54:16]MH_I2C_Read... [09:54:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:16]Read from MH i2c: E2 [09:54:16]MH_I2C_Read... [09:54:16]Read from MH i2c: E2 03 00 [09:54:16]MH_I2C_Read... [09:54:16]Read from MH i2c: E2 03 00 63 27 00 90 00 FE [09:54:16]RAPDU: 90 00 [09:54:16]wFMCommunicate OK [09:54:16]SAM_PROTO_ClearQueue done [09:54:16]KKMCreateOFDPacket [09:54:16]OFDProtocolAddRootSTLVToBuf [09:54:16]FM_MakeSignedData [09:54:16]FM_MakeSignedData [09:54:16]SAM_PROTO_SignData [09:54:16]wFMCommunicate request_size=4 [09:54:16]MH_SAM_APDU [09:54:16]CAPDU: 80 0D 01 02 [09:54:16]Write to MH i2c: E2 08 00 64 27 80 0D 01 02 00 00 00 00 04 [09:54:16]Write i2c OK [09:54:16]MH_I2C_Read... [09:54:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:16]Read from MH i2c: E2 [09:54:16]MH_I2C_Read... [09:54:16]Read from MH i2c: E2 03 00 [09:54:16]MH_I2C_Read... [09:54:16]Read from MH i2c: E2 03 00 64 27 00 90 00 FF [09:54:16]RAPDU: 90 00 [09:54:16]wFMCommunicate OK [09:54:16]wFMCommunicate request_size=255 [09:54:16]MH_SAM_APDU [09:54:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 60 00 00 00 F4 03 04 00 4A BC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 76 12 03 00 35 04 06 00 3B [09:54:16]Write to MH i2c: E2 02 01 65 27 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 32 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 60 00 00 00 F4 03 04 00 4A BC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 76 12 03 00 35 04 06 00 3B 00 00 2A [09:54:16]Write i2c OK [09:54:16]MH_I2C_Read... [09:54:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:16]Read from MH i2c: E2 [09:54:16]MH_I2C_Read... [09:54:16]Read from MH i2c: E2 03 00 [09:54:16]MH_I2C_Read... [09:54:16]Read from MH i2c: E2 03 00 65 27 00 90 00 00 [09:54:16]RAPDU: 90 00 [09:54:16]wFMCommunicate OK [09:54:16]wFMCommunicate request_size=10 [09:54:16]MH_SAM_APDU [09:54:16]CAPDU: 80 0D 02 02 05 BA AC B1 28 8C [09:54:16]Write to MH i2c: E2 0D 00 66 27 80 0D 02 02 05 00 BA AC B1 28 8C 00 00 DC [09:54:16]Write i2c OK [09:54:16]MH_I2C_Read... [09:54:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:16]Read from MH i2c: E2 [09:54:16]MH_I2C_Read... [09:54:16]Read from MH i2c: E2 03 00 [09:54:16]MH_I2C_Read... [09:54:16]Read from MH i2c: E2 03 00 66 27 00 90 00 01 [09:54:16]RAPDU: 90 00 [09:54:16]wFMCommunicate OK [09:54:16]wFMCommunicate request_size=4 [09:54:16]MH_SAM_APDU [09:54:16]CAPDU: 80 0D 03 02 [09:54:16]Write to MH i2c: E2 08 00 67 27 80 0D 03 02 00 00 00 00 09 [09:54:16]Write i2c OK [09:54:16]MH_I2C_Read... [09:54:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:16]Read from MH i2c: E2 [09:54:16]MH_I2C_Read... [09:54:16]Read from MH i2c: E2 0B 00 [09:54:16]MH_I2C_Read... [09:54:16]Read from MH i2c: E2 0B 00 67 27 00 DE 27 16 4F 72 A8 0D AA 90 00 45 [09:54:16]RAPDU: DE 27 16 4F 72 A8 0D AA 90 00 [09:54:16]wFMCommunicate OK [09:54:16]SAM_PROTO_SignData done [09:54:16]FM_MakeSignedData done [09:54:16]CreateOFDProtocolMessage [09:54:16]wFMCommunicate request_size=4 [09:54:16]MH_SAM_APDU [09:54:16]CAPDU: 80 11 00 00 [09:54:16]Write to MH i2c: E2 08 00 68 27 80 11 00 00 00 00 00 00 09 [09:54:16]Write i2c OK [09:54:16]MH_I2C_Read... [09:54:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:16]Read from MH i2c: E2 [09:54:16]MH_I2C_Read... [09:54:16]Read from MH i2c: E2 17 00 [09:54:16]MH_I2C_Read... [09:54:16]Read from MH i2c: E2 17 00 68 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5E [09:54:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:54:16]wFMCommunicate OK [09:54:16]CreateOFDProtocolMessage done [09:54:16]OFDSenderStorePacket 201334 [09:54:16]StoreOFDPacket docnum=201334 [09:54:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8A 4C 07 01 4A 56 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 32 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 60 00 00 00 F4 03 04 00 4A BC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 76 12 03 00 35 04 06 00 3B BA AC B1 28 8C DE 27 16 4F 72 A8 0D AA [09:54:16]CheckFolder [09:54:16]dirname=/storage/ofd_packets [09:54:16]CheckFolder done [09:54:16]ProducePacketName [09:54:16]name=ofd_packets/00201334 [09:54:16]NVStorageSaveData ofd_packets/00201334 [09:54:16]File name is /storage/ofd_packets/00201334 [09:54:16]Write 301 bytes [09:54:16]NVStorageSaveData done [09:54:16]OFDSenderStorePacket done [09:54:16]KKMCreateOFDPacket done [09:54:17]NVStorageSaveData kkm_last_timestamp [09:54:17]File name is /storage/kkm_last_timestamp [09:54:17]Write 4 bytes [09:54:17]NVStorageSaveData done [09:54:17]ExternCall_PrintAddStr [09:54:17]wPrintStart [09:54:17]Write to MH i2c: 01 00 00 69 27 90 [09:54:17]OFD Sender: No OFD packet to send [09:54:17]Write i2c OK [09:54:17]MH_I2C_Read... [09:54:17]Read from MH i2c: 01 [09:54:17]MH_I2C_Read... [09:54:17]Read from MH i2c: 01 07 00 [09:54:17]MH_I2C_Read... [09:54:17]Read from MH i2c: 01 07 00 69 27 00 00 00 00 00 FF 0F A5 [09:54:17]RasterBufferAndPrint [09:54:17]line Счет N : (1)449082 [09:54:17]line ИНН: 02508201610067 [09:54:17]line Контрольно-Кассовый Чек [09:54:17]line ПРОДАЖА [09:54:17]line ТРК (МРК, ГНК) : 41 [09:54:17]line Товар: 2710124130 [09:54:17]line Аи-92-К-2 [09:54:17]line 2.990 * 66.90 [09:54:17]line = 200.03 [09:54:17]line НДС 12% НСП 1% [09:54:17]line > о реализуемом товаре [09:54:17]line ОКРУГЛЕНИЕ: -0.03 [09:54:17]line ИТОГО: 200.00 [09:54:17]line Внесено: 200.00 [09:54:17]line СДАЧА: 0.00 [09:54:17]line НСП 1% : 1.77 [09:54:17]line НДС 12% : 21.24 [09:54:17]line Наличными: 200.00 [09:54:17]line Безнал.: 0.00 [09:54:17]line Место: АЗС № 171 "Партнер Нефть" [09:54:17]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:54:17]line СНО: Общий режим [09:54:17]line Чек 96 26.10.2024 09:54 [09:54:17]line Смена: 543 ФФД: 1.0 [09:54:17]line ЗНМ: 0300000109 [09:54:17]line РНМ: 0000000000091777 [09:54:17]line Версия ККМ: 001 [09:54:17]line ФМ: 0000000000871756 [09:54:17]line ФД: 201334 [09:54:17]line ФПД: 65672947247244 [09:54:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095418&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201334&fm=65672947247244&tin=02508201610067®Number=0000000000091777&sum=20000 [09:54:17]written 0, free lines is 4095 [09:54:17]OFD Sender: Processing packet 201334 [packets to send 112, broken 111] [09:54:17]ProducePacketName [09:54:17]name=ofd_packets/00201334 [09:54:17]OFD Sender: To server: pG, [09:54:17]CommunicateWithHost lk.salyk.kg:30040 [09:54:17]ConnectInit lk.salyk.kg [09:54:17]Connected sock=10 [09:54:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8A 4C 07 01 4A 56 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 32 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 60 00 00 00 F4 03 04 00 4A BC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 76 12 03 00 35 04 06 00 3B BA AC B1 28 8C DE 27 16 4F 72 A8 0D AA [09:54:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 0A E1 47 00 E6 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 76 12 03 00 F4 03 04 00 F4 67 1C 67 B6 04 01 00 00 55 43 0A DD B8 2E AB D5 [09:54:17]CommunicateWithHost err = 0 [09:54:17]CheckOFDResponse [09:54:17]1017 (14) - 77093643461234 [09:54:17]1041 (16) - 0000000000871756 [09:54:17]1040 (4) - 201334 [09:54:17]1012 (4) - 26.10.2024 03:54 [09:54:17]1206 (1) - 0 [09:54:17]OFD Sender: Remove packet 201334 [09:54:17]ProducePacketName [09:54:17]name=ofd_packets/00201334 [09:54:17]NVStorageDeleteData [09:54:17]Write to MH i2c: 01 00 00 94 27 BB [09:54:17]Write i2c OK [09:54:17]MH_I2C_Read... [09:54:17]Read from MH i2c: 01 [09:54:17]MH_I2C_Read... [09:54:17]Read from MH i2c: 01 07 00 [09:54:17]MH_I2C_Read... [09:54:17]Read from MH i2c: 01 07 00 94 27 00 00 00 00 00 9F 0C 6D [09:54:17]RasterBufferAndPrint [09:54:17]line [09:54:17]line [09:54:17]line [09:54:17]line [09:54:17]line [09:54:17]written 0, free lines is 3241 [09:54:17]MH_Cut [09:54:17]Write to MH i2c: D1 01 00 9B 27 01 94 [09:54:17]Write i2c OK [09:54:17]MH_I2C_Read... [09:54:17]Read from MH i2c: D1 [09:54:17]MH_I2C_Read... [09:54:17]Read from MH i2c: D1 01 00 [09:54:17]MH_I2C_Read... [09:54:17]Read from MH i2c: D1 01 00 9B 27 00 93 [09:54:17]Write to MH i2c: 01 00 00 9C 27 C3 [09:54:17]Write i2c OK [09:54:17]MH_I2C_Read... [09:54:17]OFD Sender: No OFD packet to send [09:54:18]*** Cut start [09:54:18]*** Purtial cut [09:54:18]*** CUTSNS_PIN = 0 [09:54:18]*** Stage 1: CUTSNS_PIN = 1 [09:54:20]Read from MH i2c: 01 [09:54:20]MH_I2C_Read... [09:54:20]*** Stop cut motor [09:54:20]*** Cut end [09:54:20]Read from MH i2c: 01 07 00 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: 01 07 00 9C 27 00 00 00 00 00 FF 0F D8 [09:54:20]process_action close_receipt done [09:54:20]requested_data is exist [09:54:20]produce_requested_data [09:54:20]requested_item fm.sn is exist - process it [09:54:20]wFMCommunicate request_size=4 [09:54:20]MH_SAM_APDU [09:54:20]CAPDU: 80 11 00 00 [09:54:20]Write to MH i2c: E2 08 00 9D 27 80 11 00 00 00 00 00 00 3E [09:54:20]Write i2c OK [09:54:20]MH_I2C_Read... [09:54:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:20]Read from MH i2c: E2 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: E2 17 00 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: E2 17 00 9D 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 93 [09:54:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:54:20]wFMCommunicate OK [09:54:20]requested_item fd.num is exist - process it [09:54:20]SAM_PROTO_GetFieldsCounters [09:54:20]wFMCommunicate request_size=4 [09:54:20]MH_SAM_APDU [09:54:20]CAPDU: 80 13 00 00 [09:54:20]Write to MH i2c: E2 08 00 9E 27 80 13 00 00 00 00 00 00 41 [09:54:20]Write i2c OK [09:54:20]MH_I2C_Read... [09:54:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:20]Read from MH i2c: E2 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: E2 62 00 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: E2 62 00 9E 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 76 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [09:54:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 76 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:54:20]wFMCommunicate OK [09:54:20]SAM_PROTO_GetFieldsCounters done [09:54:20]requested_item shift.num is exist - process it [09:54:20]requested_item shift.opened is exist - process it [09:54:20]req_shift_opened [09:54:20]FM_GetShiftState [09:54:20]SAM_PROTO_GetShiftState [09:54:20]wFMCommunicate request_size=4 [09:54:20]MH_SAM_APDU [09:54:20]CAPDU: 80 13 01 00 [09:54:20]Write to MH i2c: E2 08 00 9F 27 80 13 01 00 00 00 00 00 43 [09:54:20]Write i2c OK [09:54:20]MH_I2C_Read... [09:54:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:20]Read from MH i2c: E2 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: E2 0E 00 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: E2 0E 00 9F 27 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 52 [09:54:20]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:54:20]wFMCommunicate OK [09:54:20]SAM_PROTO_GetShiftState done [09:54:20]FM_GetShiftState done [09:54:20]req_shift_opened done [09:54:20]requested_item shift.open_date is exist - process it [09:54:20]req_shift_open_date [09:54:20]req_shift_open_date done [09:54:20]produce_requested_data done [09:54:20]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201334,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:54:20]process_action_free close_receipt [09:54:20]json_value_free [09:54:20]json_value_free done [09:54:20]process_json_proto returns [09:54:20]Send response to host [09:54:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201334,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:54:20]free response buf [09:54:20]execute_script done [09:54:20]execute_script returns [09:54:20]free content buf [09:54:20]Sock 7.Close socket [09:54:20]Sock 7.Thread stoped [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:42]OFD Sender: No OFD packet to send [09:54:47]OFD Sender: No OFD packet to send [09:54:53]OFD Sender: No OFD packet to send [09:54:58]OFD Sender: No OFD packet to send [09:55:03]OFD Sender: No OFD packet to send [09:55:08]OFD Sender: No OFD packet to send [09:55:13]OFD Sender: No OFD packet to send [09:55:18]OFD Sender: No OFD packet to send [09:55:23]OFD Sender: No OFD packet to send [09:55:28]OFD Sender: No OFD packet to send [09:55:28]accept exits with 9 [09:55:28]New connection [09:55:28]New thread 3067559268 created [09:55:28]Thread 3067415908 joined [09:55:28]Waiting for new connection... [09:55:28] Sock 9.Parse request [09:55:28]Sock 9.Check first char [09:55:28]Sock 9.First char is OK [09:55:28]request: POST /json_proto HTTP/1.0 [09:55:28]Method: POST [09:55:28]URL: /json_proto [09:55:28]Method is POST - this is cgi request [09:55:28]url: /json_proto [09:55:28]query_string will be loaded in cgi processing [09:55:28]execute_cgi json_proto POST (null) [09:55:28]execute_cgi path=json_proto method=POST [09:55:28]POST find Content-Length [09:55:28]Host: 172.17.63.195:8080 [09:55:28]Content-Length: 678 [09:55:28]Content-Type: application/json [09:55:28] [09:55:28]POST finish read [09:55:28]Found Content-Length = 678 [09:55:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:28]execute_script... [09: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)449083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:28]POST & json_proto [09:55:28]process_json_proto [09:55:28]json parsed OK: [09:55:28]protocol is kg_v1.0 [09:55:28]action value=close_receipt [09:55:28]process_action close_receipt [09:55:28]cmd_close_receipt [09:55:28]MH_GetDate [09:55:28]Write to MH i2c: F0 00 00 A0 27 B6 [09:55:28]Write i2c OK [09:55:28]MH_I2C_Read... [09:55:28]Read from MH i2c: F0 [09:55:28]MH_I2C_Read... [09:55:28]Read from MH i2c: F0 09 00 [09:55:28]MH_I2C_Read... [09:55:28]Read from MH i2c: F0 09 00 A0 27 00 94 BC 1C 67 68 46 19 67 C0 [09:55:28]GetLastDocTimeStamp 1729936458 [09:55:28]current date 1729936532 [09:55:28]FM_GetShiftState [09:55:28]SAM_PROTO_GetShiftState [09:55:28]wFMCommunicate request_size=4 [09:55:28]MH_SAM_APDU [09:55:28]CAPDU: 80 13 01 00 [09:55:28]Write to MH i2c: E2 08 00 A1 27 80 13 01 00 00 00 00 00 45 [09:55:28]Write i2c OK [09:55:28]MH_I2C_Read... [09:55:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:28]Read from MH i2c: E2 [09:55:28]MH_I2C_Read... [09:55:28]Read from MH i2c: E2 0E 00 [09:55:28]MH_I2C_Read... [09:55:28]Read from MH i2c: E2 0E 00 A1 27 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 54 [09:55:28]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:55:28]wFMCommunicate OK [09:55:28]SAM_PROTO_GetShiftState done [09:55:28]FM_GetShiftState done [09:55:28]opened in 1729900879 [09:55:28]opened+sec_in_day 1729987279 [09:55:28]quantity*price = 80012 [09:55:28]sum+1 = 80013 [09:55:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 97 26.10.2024 09:55 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201335 ФПД: 135534506860099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095532&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201335&fm=135534506860099&tin=02508201610067®Number=0000000000091777&sum=80000 [09:55:29]StoreToDocumentArchive [09:55:29]shift 543 fd 201335 [09:55:29]save to /storage/0543/doc_00201335 [09:55:29]save last doc name /storage/0543/doc_00201335 to /storage/kkm_last_doc_name [09:55:29]save OK [09:55:29]Clear old archive folders... [09:55:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:55:29]tlvbuf is B6FE9840 [09:55:29]SAM_PROTO_ClearQueue [09:55:29]wFMCommunicate request_size=4 [09:55:29]MH_SAM_APDU [09:55:29]CAPDU: 80 09 00 00 [09:55:29]Write to MH i2c: E2 08 00 AE 27 80 09 00 00 00 00 00 00 47 [09:55:29]Write i2c OK [09:55:29]MH_I2C_Read... [09:55:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:29]Read from MH i2c: E2 [09:55:29]MH_I2C_Read... [09:55:29]Read from MH i2c: E2 03 00 [09:55:29]MH_I2C_Read... [09:55:29]Read from MH i2c: E2 03 00 AE 27 00 90 00 49 [09:55:29]RAPDU: 90 00 [09:55:29]wFMCommunicate OK [09:55:29]SAM_PROTO_ClearQueue done [09:55:29]KKMCreateOFDPacket [09:55:29]OFDProtocolAddRootSTLVToBuf [09:55:29]FM_MakeSignedData [09:55:29]FM_MakeSignedData [09:55:29]SAM_PROTO_SignData [09:55:29]wFMCommunicate request_size=4 [09:55:29]MH_SAM_APDU [09:55:29]CAPDU: 80 0D 01 02 [09:55:29]Write to MH i2c: E2 08 00 AF 27 80 0D 01 02 00 00 00 00 4F [09:55:29]Write i2c OK [09:55:29]MH_I2C_Read... [09:55:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:29]Read from MH i2c: E2 [09:55:29]MH_I2C_Read... [09:55:29]Read from MH i2c: E2 03 00 [09:55:29]MH_I2C_Read... [09:55:29]Read from MH i2c: E2 03 00 AF 27 00 90 00 4A [09:55:29]RAPDU: 90 00 [09:55:29]wFMCommunicate OK [09:55:29]wFMCommunicate request_size=255 [09:55:29]MH_SAM_APDU [09: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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 94 BC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 77 12 03 00 35 04 06 00 7B [09:55:29]Write to MH i2c: E2 02 01 B0 27 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 94 BC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 77 12 03 00 35 04 06 00 7B 00 00 2B [09:55:29]Write i2c OK [09:55:29]MH_I2C_Read... [09:55:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:29]Read from MH i2c: E2 [09:55:29]MH_I2C_Read... [09:55:29]Read from MH i2c: E2 03 00 [09:55:29]MH_I2C_Read... [09:55:29]Read from MH i2c: E2 03 00 B0 27 00 90 00 4B [09:55:29]RAPDU: 90 00 [09:55:29]wFMCommunicate OK [09:55:29]wFMCommunicate request_size=10 [09:55:29]MH_SAM_APDU [09:55:29]CAPDU: 80 0D 02 02 05 44 96 22 DE 43 [09:55:29]Write to MH i2c: E2 0D 00 B1 27 80 0D 02 02 05 00 44 96 22 DE 43 00 00 79 [09:55:29]Write i2c OK [09:55:29]MH_I2C_Read... [09:55:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:29]Read from MH i2c: E2 [09:55:29]MH_I2C_Read... [09:55:29]Read from MH i2c: E2 03 00 [09:55:29]MH_I2C_Read... [09:55:29]Read from MH i2c: E2 03 00 B1 27 00 90 00 4C [09:55:29]RAPDU: 90 00 [09:55:29]wFMCommunicate OK [09:55:29]wFMCommunicate request_size=4 [09:55:29]MH_SAM_APDU [09:55:29]CAPDU: 80 0D 03 02 [09:55:29]Write to MH i2c: E2 08 00 B2 27 80 0D 03 02 00 00 00 00 54 [09:55:29]Write i2c OK [09:55:29]MH_I2C_Read... [09:55:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:29]Read from MH i2c: E2 [09:55:29]MH_I2C_Read... [09:55:29]Read from MH i2c: E2 0B 00 [09:55:29]MH_I2C_Read... [09:55:29]Read from MH i2c: E2 0B 00 B2 27 00 D9 16 AD F0 D7 8A 6F 2E 90 00 DF [09:55:29]RAPDU: D9 16 AD F0 D7 8A 6F 2E 90 00 [09:55:29]wFMCommunicate OK [09:55:29]SAM_PROTO_SignData done [09:55:29]FM_MakeSignedData done [09:55:29]CreateOFDProtocolMessage [09:55:29]wFMCommunicate request_size=4 [09:55:29]MH_SAM_APDU [09:55:29]CAPDU: 80 11 00 00 [09:55:29]Write to MH i2c: E2 08 00 B3 27 80 11 00 00 00 00 00 00 54 [09:55:29]Write i2c OK [09:55:29]MH_I2C_Read... [09:55:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:29]Read from MH i2c: E2 [09:55:29]MH_I2C_Read... [09:55:29]Read from MH i2c: E2 17 00 [09:55:29]MH_I2C_Read... [09:55:29]Read from MH i2c: E2 17 00 B3 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A9 [09:55:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:55:29]wFMCommunicate OK [09:55:29]CreateOFDProtocolMessage done [09:55:29]OFDSenderStorePacket 201335 [09:55:29]StoreOFDPacket docnum=201335 [09:55:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 FC FC 07 01 8D 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 94 BC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 77 12 03 00 35 04 06 00 7B 44 96 22 DE 43 D9 16 AD F0 D7 8A 6F 2E [09:55:29]CheckFolder [09:55:29]dirname=/storage/ofd_packets [09:55:29]CheckFolder done [09:55:29]ProducePacketName [09:55:29]name=ofd_packets/00201335 [09:55:29]NVStorageSaveData ofd_packets/00201335 [09:55:29]File name is /storage/ofd_packets/00201335 [09:55:29]Write 301 bytes [09:55:29]NVStorageSaveData done [09:55:29]OFDSenderStorePacket done [09:55:29]KKMCreateOFDPacket done [09:55:29]NVStorageSaveData kkm_last_timestamp [09:55:29]File name is /storage/kkm_last_timestamp [09:55:30]Write 4 bytes [09:55:30]NVStorageSaveData done [09:55:30]ExternCall_PrintAddStr [09:55:30]wPrintStart [09:55:30]Write to MH i2c: 01 00 00 B4 27 DB [09:55:30]OFD Sender: Processing packet 201335 [packets to send 112, broken 111] [09:55:30]ProducePacketName [09:55:30]name=ofd_packets/00201335 [09:55:30]OFD Sender: To server: pG, [09:55:30]CommunicateWithHost lk.salyk.kg:30040 [09:55:30]ConnectInit lk.salyk.kg [09:55:30]Write i2c OK [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: 01 [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: 01 07 00 [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: 01 07 00 B4 27 00 00 00 00 00 FF 0F F0 [09:55:30]RasterBufferAndPrint [09:55:30]line Счет N : (1)449083 [09:55:30]line ИНН: 02508201610067 [09:55:30]line Контрольно-Кассовый Чек [09:55:30]line ПРОДАЖА [09:55:30]line ТРК (МРК, ГНК) : 52 [09:55:30]line Товар: 2710124130 [09:55:30]line Аи-92-К-2 [09:55:30]line 11.960 * 66.90 [09:55:30]line = 800.12 [09:55:30]line НДС 12% НСП 1% [09:55:30]line > о реализуемом товаре [09:55:30]line ОКРУГЛЕНИЕ: -0.12 [09:55:30]line ИТОГО: 800.00 [09:55:30]line Внесено: 800.00 [09:55:30]line СДАЧА: 0.00 [09:55:30]line НСП 1% : 7.08 [09:55:30]line НДС 12% : 84.97 [09:55:30]line Наличными: 800.00 [09:55:30]line Безнал.: 0.00 [09:55:30]line Место: АЗС № 171 "Партнер Нефть" [09:55:30]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [09:55:30]line СНО: Общий режим [09:55:30]line Чек 97 26.10.2024 09:55 [09:55:30]line Смена: 543 ФФД: 1.0 [09:55:30]line ЗНМ: 0300000109 [09:55:30]line РНМ: 0000000000091777 [09:55:30]line Версия ККМ: 001 [09:55:30]line ФМ: 0000000000871756 [09:55:30]line ФД: 201335 [09:55:30]line ФПД: 135534506860099 [09:55:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095532&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201335&fm=135534506860099&tin=02508201610067®Number=0000000000091777&sum=80000 [09:55:30]Connected sock=10 [09:55:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 FC FC 07 01 8D 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 94 BC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 77 12 03 00 35 04 06 00 7B 44 96 22 DE 43 D9 16 AD F0 D7 8A 6F 2E [09:55:30]written 0, free lines is 4095 [09:55:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 7D 50 47 00 98 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 77 12 03 00 F4 03 04 00 3D 68 1C 67 B6 04 01 00 00 22 98 BC 4A 72 A1 C8 0D [09:55:30]CommunicateWithHost err = 0 [09:55:30]CheckOFDResponse [09:55:30]1017 (14) - 77093643461234 [09:55:30]1041 (16) - 0000000000871756 [09:55:30]1040 (4) - 201335 [09:55:30]1012 (4) - 26.10.2024 03:55 [09:55:30]1206 (1) - 0 [09:55:30]OFD Sender: Remove packet 201335 [09:55:30]ProducePacketName [09:55:30]name=ofd_packets/00201335 [09:55:30]NVStorageDeleteData [09:55:30]Write to MH i2c: 01 00 00 DF 27 06 [09:55:30]Write i2c OK [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: 01 [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: 01 07 00 [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: 01 07 00 DF 27 00 00 00 00 00 A2 0C BB [09:55:30]RasterBufferAndPrint [09:55:30]line [09:55:30]line [09:55:30]line [09:55:30]line [09:55:30]line [09:55:30]written 0, free lines is 3240 [09:55:30]MH_Cut [09:55:30]Write to MH i2c: D1 01 00 E6 27 01 DF [09:55:30]Write i2c OK [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: D1 [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: D1 01 00 [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: D1 01 00 E6 27 00 DE [09:55:30]Write to MH i2c: 01 00 00 E7 27 0E [09:55:30]Write i2c OK [09:55:30]MH_I2C_Read... [09:55:31]OFD Sender: No OFD packet to send [09:55:31]*** Cut start [09:55:31]*** Purtial cut [09:55:31]*** Stage 1: CUTSNS_PIN = 1 [09:55:31]*** Stop cut motor [09:55:31]*** Cut end [09:55:31]Read from MH i2c: 01 [09:55:31]MH_I2C_Read... [09:55:31]Read from MH i2c: 01 07 00 [09:55:31]MH_I2C_Read... [09:55:31]Read from MH i2c: 01 07 00 E7 27 00 00 00 00 00 FF 0F 23 [09:55:31]process_action close_receipt done [09:55:31]requested_data is exist [09:55:31]produce_requested_data [09:55:31]requested_item fm.sn is exist - process it [09:55:31]wFMCommunicate request_size=4 [09:55:31]MH_SAM_APDU [09:55:31]CAPDU: 80 11 00 00 [09:55:31]Write to MH i2c: E2 08 00 E8 27 80 11 00 00 00 00 00 00 89 [09:55:31]Write i2c OK [09:55:31]MH_I2C_Read... [09:55:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:32]Read from MH i2c: E2 [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: E2 17 00 [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: E2 17 00 E8 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DE [09:55:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [09:55:32]wFMCommunicate OK [09:55:32]requested_item fd.num is exist - process it [09:55:32]SAM_PROTO_GetFieldsCounters [09:55:32]wFMCommunicate request_size=4 [09:55:32]MH_SAM_APDU [09:55:32]CAPDU: 80 13 00 00 [09:55:32]Write to MH i2c: E2 08 00 E9 27 80 13 00 00 00 00 00 00 8C [09:55:32]Write i2c OK [09:55:32]MH_I2C_Read... [09:55:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:32]Read from MH i2c: E2 [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: E2 62 00 [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: E2 62 00 E9 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 77 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [09:55:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 77 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:55:32]wFMCommunicate OK [09:55:32]SAM_PROTO_GetFieldsCounters done [09:55:32]requested_item shift.num is exist - process it [09:55:32]requested_item shift.opened is exist - process it [09:55:32]req_shift_opened [09:55:32]FM_GetShiftState [09:55:32]SAM_PROTO_GetShiftState [09:55:32]wFMCommunicate request_size=4 [09:55:32]MH_SAM_APDU [09:55:32]CAPDU: 80 13 01 00 [09:55:32]Write to MH i2c: E2 08 00 EA 27 80 13 01 00 00 00 00 00 8E [09:55:32]Write i2c OK [09:55:32]MH_I2C_Read... [09:55:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:32]Read from MH i2c: E2 [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: E2 0E 00 [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: E2 0E 00 EA 27 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 9D [09:55:32]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [09:55:32]wFMCommunicate OK [09:55:32]SAM_PROTO_GetShiftState done [09:55:32]FM_GetShiftState done [09:55:32]req_shift_opened done [09:55:32]requested_item shift.open_date is exist - process it [09:55:32]req_shift_open_date [09:55:32]req_shift_open_date done [09:55:32]produce_requested_data done [09:55:32]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201335,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [09:55:32]process_action_free close_receipt [09:55:32]json_value_free [09:55:32]json_value_free done [09:55:32]process_json_proto returns [09:55:32]Send response to host [09:55:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201335,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [09:55:32]free response buf [09:55:32]execute_script done [09:55:32]execute_script returns [09:55:32]free content buf [09:55:32]Sock 9.Close socket [09:55:32]Sock 9.Thread stoped [09:55:36]OFD Sender: No OFD packet to send [09:55:41]OFD Sender: No OFD packet to send [09:55:46]OFD Sender: No OFD packet to send [09:55:51]OFD Sender: No OFD packet to send [09:55:56]OFD Sender: No OFD packet to send [09:56:01]OFD Sender: No OFD packet to send [09:56:06]OFD Sender: No OFD packet to send [09:56:11]OFD Sender: No OFD packet to send [09:56:16]OFD Sender: No OFD packet to send [09:56:21]OFD Sender: No OFD packet to send [09:56:26]OFD Sender: No OFD packet to send [09:56:31]OFD Sender: No OFD packet to send [09:56:36]OFD Sender: No OFD packet to send [09:56:41]OFD Sender: No OFD packet to send [09:56:46]OFD Sender: No OFD packet to send [09:56:51]OFD Sender: No OFD packet to send [09:56:56]OFD Sender: No OFD packet to send [09:57:01]OFD Sender: No OFD packet to send [09:57:06]OFD Sender: No OFD packet to send [09:57:11]OFD Sender: No OFD packet to send [09:57:16]OFD Sender: No OFD packet to send [09:57:21]OFD Sender: No OFD packet to send [09:57:26]OFD Sender: No OFD packet to send [09:57:31]OFD Sender: No OFD packet to send [09:57:36]OFD Sender: No OFD packet to send [09:57:41]OFD Sender: No OFD packet to send [09:57:46]OFD Sender: No OFD packet to send [09:57:51]OFD Sender: No OFD packet to send [09:57:56]OFD Sender: No OFD packet to send [09:58:01]OFD Sender: No OFD packet to send [09:58:06]OFD Sender: No OFD packet to send [09:58:11]OFD Sender: No OFD packet to send [09:58:16]OFD Sender: No OFD packet to send [09:58:21]OFD Sender: No OFD packet to send [09:58:26]OFD Sender: No OFD packet to send [09:58:31]OFD Sender: No OFD packet to send [09:58:36]OFD Sender: No OFD packet to send [09:58:41]OFD Sender: No OFD packet to send [09:58:46]OFD Sender: No OFD packet to send [09:58:51]OFD Sender: No OFD packet to send [09:58:56]OFD Sender: No OFD packet to send [09:59:01]OFD Sender: No OFD packet to send [09:59:06]OFD Sender: No OFD packet to send [09:59:11]OFD Sender: No OFD packet to send [09:59:16]OFD Sender: No OFD packet to send [09:59:21]OFD Sender: No OFD packet to send [09:59:26]OFD Sender: No OFD packet to send [09:59:31]OFD Sender: No OFD packet to send [09:59:36]OFD Sender: No OFD packet to send [09:59:41]OFD Sender: No OFD packet to send [09:59:46]OFD Sender: No OFD packet to send [09:59:51]OFD Sender: No OFD packet to send [09:59:56]OFD Sender: No OFD packet to send [10:00:01]OFD Sender: No OFD packet to send [10:00:06]OFD Sender: No OFD packet to send [10:00:11]OFD Sender: No OFD packet to send [10:00:16]OFD Sender: No OFD packet to send [10:00:21]OFD Sender: No OFD packet to send [10:00:26]OFD Sender: No OFD packet to send [10:00:31]OFD Sender: No OFD packet to send [10:00:36]OFD Sender: No OFD packet to send [10:00:41]OFD Sender: No OFD packet to send [10:00:46]OFD Sender: No OFD packet to send [10:00:51]OFD Sender: No OFD packet to send [10:00:56]OFD Sender: No OFD packet to send [10:01:01]OFD Sender: No OFD packet to send [10:01:06]OFD Sender: No OFD packet to send [10:01:11]OFD Sender: No OFD packet to send [10:01:16]OFD Sender: No OFD packet to send [10:01:21]OFD Sender: No OFD packet to send [10:01:26]OFD Sender: No OFD packet to send [10:01:31]OFD Sender: No OFD packet to send [10:01:36]OFD Sender: No OFD packet to send [10:01:41]OFD Sender: No OFD packet to send [10:01:46]OFD Sender: No OFD packet to send [10:01:51]OFD Sender: No OFD packet to send [10:01:56]OFD Sender: No OFD packet to send [10:02:01]OFD Sender: No OFD packet to send [10:02:06]OFD Sender: No OFD packet to send [10:02:11]OFD Sender: No OFD packet to send [10:02:16]OFD Sender: No OFD packet to send [10:02:21]OFD Sender: No OFD packet to send [10:02:26]OFD Sender: No OFD packet to send [10:02:29]accept exits with 7 [10:02:29]New connection [10:02:29]New thread 3067415908 created [10:02:29]Thread 3067559268 joined [10:02:29]Waiting for new connection... [10:02:29] Sock 7.Parse request [10:02:29]Sock 7.Check first char [10:02:29]Sock 7.First char is OK [10:02:29]request: POST /json_proto HTTP/1.0 [10:02:29]Method: POST [10:02:29]URL: /json_proto [10:02:29]Method is POST - this is cgi request [10:02:29]url: /json_proto [10:02:29]query_string will be loaded in cgi processing [10:02:29]execute_cgi json_proto POST (null) [10:02:29]execute_cgi path=json_proto method=POST [10:02:29]POST find Content-Length [10:02:29]Host: 172.17.63.195:8080 [10:02:29]Content-Length: 677 [10:02:29]Content-Type: application/json [10:02:29] [10:02:29]POST finish read [10:02:29]Found Content-Length = 677 [10:02:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:02:29]execute_script... [10:02: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)449084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:02:29]POST & json_proto [10:02:29]process_json_proto [10:02:29]json parsed OK: [10:02:29]protocol is kg_v1.0 [10:02:29]action value=close_receipt [10:02:29]process_action close_receipt [10:02:29]cmd_close_receipt [10:02:29]MH_GetDate [10:02:29]Write to MH i2c: F0 00 00 EB 27 01 [10:02:29]Write i2c OK [10:02:29]MH_I2C_Read... [10:02:29]Read from MH i2c: F0 [10:02:29]MH_I2C_Read... [10:02:29]Read from MH i2c: F0 09 00 [10:02:29]MH_I2C_Read... [10:02:29]Read from MH i2c: F0 09 00 EB 27 00 39 BE 1C 67 68 46 19 67 B2 [10:02:29]GetLastDocTimeStamp 1729936532 [10:02:29]current date 1729936953 [10:02:29]FM_GetShiftState [10:02:29]SAM_PROTO_GetShiftState [10:02:29]wFMCommunicate request_size=4 [10:02:29]MH_SAM_APDU [10:02:29]CAPDU: 80 13 01 00 [10:02:29]Write to MH i2c: E2 08 00 EC 27 80 13 01 00 00 00 00 00 90 [10:02:29]Write i2c OK [10:02:29]MH_I2C_Read... [10:02:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:29]Read from MH i2c: E2 [10:02:29]MH_I2C_Read... [10:02:29]Read from MH i2c: E2 0E 00 [10:02:29]MH_I2C_Read... [10:02:29]Read from MH i2c: E2 0E 00 EC 27 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 9F [10:02:29]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:02:29]wFMCommunicate OK [10:02:29]SAM_PROTO_GetShiftState done [10:02:29]FM_GetShiftState done [10:02:29]opened in 1729900879 [10:02:29]opened+sec_in_day 1729987279 [10:02:29]quantity*price = 40006 [10:02:29]sum+1 = 40007 [10:02:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 98 26.10.2024 10:02 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201336 ФПД: 83747188640145 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100233&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201336&fm=83747188640145&tin=02508201610067®Number=0000000000091777&sum=40000 [10:02:31]StoreToDocumentArchive [10:02:31]shift 543 fd 201336 [10:02:31]save to /storage/0543/doc_00201336 [10:02:31]save last doc name /storage/0543/doc_00201336 to /storage/kkm_last_doc_name [10:02:31]save OK [10:02:31]Clear old archive folders... [10:02:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:02:31]tlvbuf is 01713180 [10:02:31]SAM_PROTO_ClearQueue [10:02:31]wFMCommunicate request_size=4 [10:02:31]MH_SAM_APDU [10:02:31]CAPDU: 80 09 00 00 [10:02:31]Write to MH i2c: E2 08 00 F9 27 80 09 00 00 00 00 00 00 92 [10:02:31]Write i2c OK [10:02:31]MH_I2C_Read... [10:02:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:31]Read from MH i2c: E2 [10:02:31]MH_I2C_Read... [10:02:31]Read from MH i2c: E2 03 00 [10:02:31]MH_I2C_Read... [10:02:31]Read from MH i2c: E2 03 00 F9 27 00 90 00 94 [10:02:31]RAPDU: 90 00 [10:02:31]wFMCommunicate OK [10:02:31]SAM_PROTO_ClearQueue done [10:02:31]KKMCreateOFDPacket [10:02:31]OFDProtocolAddRootSTLVToBuf [10:02:31]FM_MakeSignedData [10:02:31]FM_MakeSignedData [10:02:31]SAM_PROTO_SignData [10:02:31]wFMCommunicate request_size=4 [10:02:31]MH_SAM_APDU [10:02:31]CAPDU: 80 0D 01 02 [10:02:31]Write to MH i2c: E2 08 00 FA 27 80 0D 01 02 00 00 00 00 9A [10:02:31]Write i2c OK [10:02:31]MH_I2C_Read... [10:02:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:31]Read from MH i2c: E2 [10:02:31]MH_I2C_Read... [10:02:31]Read from MH i2c: E2 03 00 [10:02:31]MH_I2C_Read... [10:02:31]Read from MH i2c: E2 03 00 FA 27 00 90 00 95 [10:02:31]RAPDU: 90 00 [10:02:31]wFMCommunicate OK [10:02:31]wFMCommunicate request_size=255 [10:02:31]MH_SAM_APDU [10:02: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 32 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 62 00 00 00 F4 03 04 00 39 BE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 78 12 03 00 35 04 06 00 4C [10:02:31]Write to MH i2c: E2 02 01 FB 27 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 32 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 62 00 00 00 F4 03 04 00 39 BE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 78 12 03 00 35 04 06 00 4C 00 00 D3 [10:02:31]Write i2c OK [10:02:31]MH_I2C_Read... [10:02:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:31]Read from MH i2c: E2 [10:02:31]MH_I2C_Read... [10:02:31]Read from MH i2c: E2 03 00 [10:02:31]MH_I2C_Read... [10:02:31]Read from MH i2c: E2 03 00 FB 27 00 90 00 96 [10:02:31]RAPDU: 90 00 [10:02:31]wFMCommunicate OK [10:02:31]wFMCommunicate request_size=10 [10:02:31]MH_SAM_APDU [10:02:31]CAPDU: 80 0D 02 02 05 2A E9 6E 09 91 [10:02:31]Write to MH i2c: E2 0D 00 FC 27 80 0D 02 02 05 00 2A E9 6E 09 91 00 00 C2 [10:02:31]Write i2c OK [10:02:31]MH_I2C_Read... [10:02:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:31]Read from MH i2c: E2 [10:02:31]MH_I2C_Read... [10:02:31]Read from MH i2c: E2 03 00 [10:02:31]MH_I2C_Read... [10:02:31]Read from MH i2c: E2 03 00 FC 27 00 90 00 97 [10:02:31]RAPDU: 90 00 [10:02:31]wFMCommunicate OK [10:02:31]wFMCommunicate request_size=4 [10:02:31]MH_SAM_APDU [10:02:31]CAPDU: 80 0D 03 02 [10:02:31]Write to MH i2c: E2 08 00 FD 27 80 0D 03 02 00 00 00 00 9F [10:02:31]Write i2c OK [10:02:31]MH_I2C_Read... [10:02:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:31]Read from MH i2c: E2 [10:02:31]MH_I2C_Read... [10:02:31]Read from MH i2c: E2 0B 00 [10:02:31]MH_I2C_Read... [10:02:31]Read from MH i2c: E2 0B 00 FD 27 00 CE E3 9B 3A EC 2F 67 89 90 00 31 [10:02:31]RAPDU: CE E3 9B 3A EC 2F 67 89 90 00 [10:02:31]wFMCommunicate OK [10:02:31]SAM_PROTO_SignData done [10:02:31]FM_MakeSignedData done [10:02:31]CreateOFDProtocolMessage [10:02:31]wFMCommunicate request_size=4 [10:02:31]MH_SAM_APDU [10:02:31]CAPDU: 80 11 00 00 [10:02:31]Write to MH i2c: E2 08 00 FE 27 80 11 00 00 00 00 00 00 9F [10:02:31]Write i2c OK [10:02:31]MH_I2C_Read... [10:02:31]OFD Sender: No OFD packet to send [10:02:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:31]Read from MH i2c: E2 [10:02:31]MH_I2C_Read... [10:02:31]Read from MH i2c: E2 17 00 [10:02:31]MH_I2C_Read... [10:02:31]Read from MH i2c: E2 17 00 FE 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F4 [10:02:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:02:31]wFMCommunicate OK [10:02:31]CreateOFDProtocolMessage done [10:02:31]OFDSenderStorePacket 201336 [10:02:31]StoreOFDPacket docnum=201336 [10:02:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 35 00 07 01 31 D9 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 32 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 62 00 00 00 F4 03 04 00 39 BE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 78 12 03 00 35 04 06 00 4C 2A E9 6E 09 91 CE E3 9B 3A EC 2F 67 89 [10:02:31]CheckFolder [10:02:31]dirname=/storage/ofd_packets [10:02:31]CheckFolder done [10:02:31]ProducePacketName [10:02:31]name=ofd_packets/00201336 [10:02:31]NVStorageSaveData ofd_packets/00201336 [10:02:31]File name is /storage/ofd_packets/00201336 [10:02:31]Write 301 bytes [10:02:31]NVStorageSaveData done [10:02:31]OFDSenderStorePacket done [10:02:31]KKMCreateOFDPacket done [10:02:31]NVStorageSaveData kkm_last_timestamp [10:02:31]File name is /storage/kkm_last_timestamp [10:02:31]Write 4 bytes [10:02:31]NVStorageSaveData done [10:02:31]ExternCall_PrintAddStr [10:02:31]wPrintStart [10:02:31]Write to MH i2c: 01 00 00 FF 27 26 [10:02:31]Write i2c OK [10:02:31]MH_I2C_Read... [10:02:31]Read from MH i2c: 01 [10:02:31]MH_I2C_Read... [10:02:31]Read from MH i2c: 01 07 00 [10:02:31]MH_I2C_Read... [10:02:31]Read from MH i2c: 01 07 00 FF 27 00 00 00 00 00 FF 0F 3B [10:02:31]RasterBufferAndPrint [10:02:31]line Счет N : (1)449084 [10:02:31]line ИНН: 02508201610067 [10:02:31]line Контрольно-Кассовый Чек [10:02:31]line ПРОДАЖА [10:02:31]line ТРК (МРК, ГНК) : 31 [10:02:31]line Товар: 2710124130 [10:02:31]line Аи-92-К-2 [10:02:31]line 5.980 * 66.90 [10:02:31]line = 400.06 [10:02:31]line НДС 12% НСП 1% [10:02:31]line > о реализуемом товаре [10:02:31]line ОКРУГЛЕНИЕ: -0.06 [10:02:31]line ИТОГО: 400.00 [10:02:31]line Внесено: 400.00 [10:02:31]line СДАЧА: 0.00 [10:02:31]line НСП 1% : 3.54 [10:02:31]line НДС 12% : 42.48 [10:02:31]line Наличными: 400.00 [10:02:31]line Безнал.: 0.00 [10:02:31]line Место: АЗС № 171 "Партнер Нефть" [10:02:31]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:02:31]line СНО: Общий режим [10:02:31]line Чек 98 26.10.2024 10:02 [10:02:31]line Смена: 543 ФФД: 1.0 [10:02:31]line ЗНМ: 0300000109 [10:02:31]line РНМ: 0000000000091777 [10:02:31]line Версия ККМ: 001 [10:02:31]line ФМ: 0000000000871756 [10:02:31]line ФД: 201336 [10:02:31]line ФПД: 83747188640145 [10:02:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100233&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201336&fm=83747188640145&tin=02508201610067®Number=0000000000091777&sum=40000 [10:02:31]OFD Sender: Processing packet 201336 [packets to send 112, broken 111] [10:02:31]ProducePacketName [10:02:31]name=ofd_packets/00201336 [10:02:31]OFD Sender: To server: pG, [10:02:31]CommunicateWithHost lk.salyk.kg:30040 [10:02:31]ConnectInit lk.salyk.kg [10:02:31]written 0, free lines is 4095 [10:02:32]Connected sock=10 [10:02:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 35 00 07 01 31 D9 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 32 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 62 00 00 00 F4 03 04 00 39 BE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 78 12 03 00 35 04 06 00 4C 2A E9 6E 09 91 CE E3 9B 3A EC 2F 67 89 [10:02:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 60 05 47 00 50 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 78 12 03 00 F4 03 04 00 E3 69 1C 67 B6 04 01 00 00 7F B3 7F 5B E7 AA F0 82 [10:02:32]CommunicateWithHost err = 0 [10:02:32]CheckOFDResponse [10:02:32]1017 (14) - 77093643461234 [10:02:32]1041 (16) - 0000000000871756 [10:02:32]1040 (4) - 201336 [10:02:32]1012 (4) - 26.10.2024 04:02 [10:02:32]1206 (1) - 0 [10:02:32]OFD Sender: Remove packet 201336 [10:02:32]ProducePacketName [10:02:32]name=ofd_packets/00201336 [10:02:32]NVStorageDeleteData [10:02:32]Write to MH i2c: 01 00 00 2A 28 52 [10:02:32]Write i2c OK [10:02:32]MH_I2C_Read... [10:02:32]Read from MH i2c: 01 [10:02:32]MH_I2C_Read... [10:02:32]Read from MH i2c: 01 07 00 [10:02:32]MH_I2C_Read... [10:02:32]Read from MH i2c: 01 07 00 2A 28 00 00 00 00 00 9D 0C 02 [10:02:32]RasterBufferAndPrint [10:02:32]line [10:02:32]line [10:02:32]line [10:02:32]line [10:02:32]line [10:02:32]written 0, free lines is 3235 [10:02:32]MH_Cut [10:02:32]Write to MH i2c: D1 01 00 31 28 01 2B [10:02:32]Write i2c OK [10:02:32]MH_I2C_Read... [10:02:32]Read from MH i2c: D1 [10:02:32]MH_I2C_Read... [10:02:32]Read from MH i2c: D1 01 00 [10:02:32]MH_I2C_Read... [10:02:32]Read from MH i2c: D1 01 00 31 28 00 2A [10:02:32]Write to MH i2c: 01 00 00 32 28 5A [10:02:32]Write i2c OK [10:02:32]MH_I2C_Read... [10:02:32]OFD Sender: No OFD packet to send [10:02:33]*** Cut start [10:02:33]*** Purtial cut [10:02:33]*** Stage 1: CUTSNS_PIN = 1 [10:02:33]Read from MH i2c: 01 [10:02:33]MH_I2C_Read... [10:02:33]*** Stop cut motor [10:02:33]*** Cut end [10:02:33]Read from MH i2c: 01 07 00 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: 01 07 00 32 28 00 00 00 00 00 FF 0F 6F [10:02:33]process_action close_receipt done [10:02:33]requested_data is exist [10:02:33]produce_requested_data [10:02:33]requested_item fm.sn is exist - process it [10:02:33]wFMCommunicate request_size=4 [10:02:33]MH_SAM_APDU [10:02:33]CAPDU: 80 11 00 00 [10:02:33]Write to MH i2c: E2 08 00 33 28 80 11 00 00 00 00 00 00 D5 [10:02:33]Write i2c OK [10:02:33]MH_I2C_Read... [10:02:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:33]Read from MH i2c: E2 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: E2 17 00 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: E2 17 00 33 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2A [10:02:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:02:33]wFMCommunicate OK [10:02:33]requested_item fd.num is exist - process it [10:02:33]SAM_PROTO_GetFieldsCounters [10:02:33]wFMCommunicate request_size=4 [10:02:33]MH_SAM_APDU [10:02:33]CAPDU: 80 13 00 00 [10:02:33]Write to MH i2c: E2 08 00 34 28 80 13 00 00 00 00 00 00 D8 [10:02:33]Write i2c OK [10:02:33]MH_I2C_Read... [10:02:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:33]Read from MH i2c: E2 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: E2 62 00 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: E2 62 00 34 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 78 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [10:02:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 78 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:02:33]wFMCommunicate OK [10:02:33]SAM_PROTO_GetFieldsCounters done [10:02:33]requested_item shift.num is exist - process it [10:02:33]requested_item shift.opened is exist - process it [10:02:33]req_shift_opened [10:02:33]FM_GetShiftState [10:02:33]SAM_PROTO_GetShiftState [10:02:33]wFMCommunicate request_size=4 [10:02:33]MH_SAM_APDU [10:02:33]CAPDU: 80 13 01 00 [10:02:33]Write to MH i2c: E2 08 00 35 28 80 13 01 00 00 00 00 00 DA [10:02:33]Write i2c OK [10:02:33]MH_I2C_Read... [10:02:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:33]Read from MH i2c: E2 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: E2 0E 00 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: E2 0E 00 35 28 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E9 [10:02:33]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:02:33]wFMCommunicate OK [10:02:33]SAM_PROTO_GetShiftState done [10:02:33]FM_GetShiftState done [10:02:33]req_shift_opened done [10:02:33]requested_item shift.open_date is exist - process it [10:02:33]req_shift_open_date [10:02:33]req_shift_open_date done [10:02:33]produce_requested_data done [10:02:33]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201336,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:02:33]process_action_free close_receipt [10:02:33]json_value_free [10:02:33]json_value_free done [10:02:33]process_json_proto returns [10:02:33]Send response to host [10:02:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201336,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:02:33]free response buf [10:02:33]execute_script done [10:02:33]execute_script returns [10:02:33]free content buf [10:02:33]Sock 7.Close socket [10:02:33]Sock 7.Thread stoped [10:02:37]OFD Sender: No OFD packet to send [10:02:42]OFD Sender: No OFD packet to send [10:02:47]OFD Sender: No OFD packet to send [10:02:52]OFD Sender: No OFD packet to send [10:02:57]OFD Sender: No OFD packet to send [10:03:02]OFD Sender: No OFD packet to send [10:03:07]OFD Sender: No OFD packet to send [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:57]OFD Sender: No OFD packet to send [10:04:02]OFD Sender: No OFD packet to send [10:04:07]OFD Sender: No OFD packet to send [10:04:12]OFD Sender: No OFD packet to send [10:04:17]OFD Sender: No OFD packet to send [10:04:22]OFD Sender: No OFD packet to send [10:04:27]OFD Sender: No OFD packet to send [10:04:32]OFD Sender: No OFD packet to send [10:04:35]accept exits with 9 [10:04:35]New connection [10:04:35]New thread 3067559268 created [10:04:35]Thread 3067415908 joined [10:04:35]Waiting for new connection... [10:04:35] Sock 9.Parse request [10:04:35]Sock 9.Check first char [10:04:35]Sock 9.First char is OK [10:04:35]request: POST /json_proto HTTP/1.0 [10:04:35]Method: POST [10:04:35]URL: /json_proto [10:04:35]Method is POST - this is cgi request [10:04:35]url: /json_proto [10:04:35]query_string will be loaded in cgi processing [10:04:35]execute_cgi json_proto POST (null) [10:04:35]execute_cgi path=json_proto method=POST [10:04:35]POST find Content-Length [10:04:35]Host: 172.17.63.195:8080 [10:04:35]Content-Length: 677 [10:04:35]Content-Type: application/json [10:04:35] [10:04:35]POST finish read [10:04:35]Found Content-Length = 677 [10:04:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:04:35]execute_script... [10:04: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)449085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:04:35]POST & json_proto [10:04:35]process_json_proto [10:04:35]json parsed OK: [10:04:35]protocol is kg_v1.0 [10:04:35]action value=close_receipt [10:04:35]process_action close_receipt [10:04:35]cmd_close_receipt [10:04:35]MH_GetDate [10:04:35]Write to MH i2c: F0 00 00 36 28 4D [10:04:35]Write i2c OK [10:04:35]MH_I2C_Read... [10:04:35]Read from MH i2c: F0 [10:04:35]MH_I2C_Read... [10:04:35]Read from MH i2c: F0 09 00 [10:04:35]MH_I2C_Read... [10:04:35]Read from MH i2c: F0 09 00 36 28 00 B7 BE 1C 67 68 46 19 67 7C [10:04:35]GetLastDocTimeStamp 1729936953 [10:04:35]current date 1729937079 [10:04:35]FM_GetShiftState [10:04:35]SAM_PROTO_GetShiftState [10:04:35]wFMCommunicate request_size=4 [10:04:35]MH_SAM_APDU [10:04:35]CAPDU: 80 13 01 00 [10:04:35]Write to MH i2c: E2 08 00 37 28 80 13 01 00 00 00 00 00 DC [10:04:35]Write i2c OK [10:04:35]MH_I2C_Read... [10:04:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:35]Read from MH i2c: E2 [10:04:35]MH_I2C_Read... [10:04:35]Read from MH i2c: E2 0E 00 [10:04:35]MH_I2C_Read... [10:04:35]Read from MH i2c: E2 0E 00 37 28 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 EB [10:04:35]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:04:35]wFMCommunicate OK [10:04:35]SAM_PROTO_GetShiftState done [10:04:35]FM_GetShiftState done [10:04:35]opened in 1729900879 [10:04:35]opened+sec_in_day 1729987279 [10:04:35]quantity*price = 50041 [10:04:35]sum+1 = 50042 [10:04:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 99 26.10.2024 10:04 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201337 ФПД: 38003199080589 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100439&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201337&fm=38003199080589&tin=02508201610067®Number=0000000000091777&sum=50000 [10:04:36]StoreToDocumentArchive [10:04:36]shift 543 fd 201337 [10:04:36]save to /storage/0543/doc_00201337 [10:04:36]save last doc name /storage/0543/doc_00201337 to /storage/kkm_last_doc_name [10:04:36]save OK [10:04:36]Clear old archive folders... [10:04:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:04:36]tlvbuf is 0176B860 [10:04:36]SAM_PROTO_ClearQueue [10:04:36]wFMCommunicate request_size=4 [10:04:36]MH_SAM_APDU [10:04:36]CAPDU: 80 09 00 00 [10:04:36]Write to MH i2c: E2 08 00 44 28 80 09 00 00 00 00 00 00 DE [10:04:36]Write i2c OK [10:04:36]MH_I2C_Read... [10:04:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:36]Read from MH i2c: E2 [10:04:36]MH_I2C_Read... [10:04:36]Read from MH i2c: E2 03 00 [10:04:36]MH_I2C_Read... [10:04:36]Read from MH i2c: E2 03 00 44 28 00 90 00 E0 [10:04:36]RAPDU: 90 00 [10:04:36]wFMCommunicate OK [10:04:36]SAM_PROTO_ClearQueue done [10:04:36]KKMCreateOFDPacket [10:04:36]OFDProtocolAddRootSTLVToBuf [10:04:36]FM_MakeSignedData [10:04:36]FM_MakeSignedData [10:04:36]SAM_PROTO_SignData [10:04:36]wFMCommunicate request_size=4 [10:04:36]MH_SAM_APDU [10:04:36]CAPDU: 80 0D 01 02 [10:04:36]Write to MH i2c: E2 08 00 45 28 80 0D 01 02 00 00 00 00 E6 [10:04:36]Write i2c OK [10:04:36]MH_I2C_Read... [10:04:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:36]Read from MH i2c: E2 [10:04:36]MH_I2C_Read... [10:04:36]Read from MH i2c: E2 03 00 [10:04:36]MH_I2C_Read... [10:04:36]Read from MH i2c: E2 03 00 45 28 00 90 00 E1 [10:04:36]RAPDU: 90 00 [10:04:36]wFMCommunicate OK [10:04:36]wFMCommunicate request_size=255 [10:04:36]MH_SAM_APDU [10:04: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 32 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 63 00 00 00 F4 03 04 00 B7 BE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 79 12 03 00 35 04 06 00 22 [10:04:36]Write to MH i2c: E2 02 01 46 28 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 32 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 63 00 00 00 F4 03 04 00 B7 BE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 79 12 03 00 35 04 06 00 22 00 00 A6 [10:04:36]Write i2c OK [10:04:36]MH_I2C_Read... [10:04:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:37]Read from MH i2c: E2 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: E2 03 00 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: E2 03 00 46 28 00 90 00 E2 [10:04:37]RAPDU: 90 00 [10:04:37]wFMCommunicate OK [10:04:37]wFMCommunicate request_size=10 [10:04:37]MH_SAM_APDU [10:04:37]CAPDU: 80 0D 02 02 05 90 4F 2E 78 8D [10:04:37]Write to MH i2c: E2 0D 00 47 28 80 0D 02 02 05 00 90 4F 2E 78 8D 00 00 05 [10:04:37]Write i2c OK [10:04:37]MH_I2C_Read... [10:04:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:37]Read from MH i2c: E2 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: E2 03 00 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: E2 03 00 47 28 00 90 00 E3 [10:04:37]RAPDU: 90 00 [10:04:37]wFMCommunicate OK [10:04:37]wFMCommunicate request_size=4 [10:04:37]MH_SAM_APDU [10:04:37]CAPDU: 80 0D 03 02 [10:04:37]Write to MH i2c: E2 08 00 48 28 80 0D 03 02 00 00 00 00 EB [10:04:37]Write i2c OK [10:04:37]MH_I2C_Read... [10:04:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:37]Read from MH i2c: E2 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: E2 0B 00 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: E2 0B 00 48 28 00 BF 02 DF CC 2C 39 58 2D 90 00 42 [10:04:37]RAPDU: BF 02 DF CC 2C 39 58 2D 90 00 [10:04:37]wFMCommunicate OK [10:04:37]SAM_PROTO_SignData done [10:04:37]FM_MakeSignedData done [10:04:37]CreateOFDProtocolMessage [10:04:37]wFMCommunicate request_size=4 [10:04:37]MH_SAM_APDU [10:04:37]CAPDU: 80 11 00 00 [10:04:37]Write to MH i2c: E2 08 00 49 28 80 11 00 00 00 00 00 00 EB [10:04:37]Write i2c OK [10:04:37]MH_I2C_Read... [10:04:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:37]Read from MH i2c: E2 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: E2 17 00 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: E2 17 00 49 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 40 [10:04:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:04:37]wFMCommunicate OK [10:04:37]CreateOFDProtocolMessage done [10:04:37]OFDSenderStorePacket 201337 [10:04:37]StoreOFDPacket docnum=201337 [10:04:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 4D 96 07 01 DE 3B 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 32 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 63 00 00 00 F4 03 04 00 B7 BE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 79 12 03 00 35 04 06 00 22 90 4F 2E 78 8D BF 02 DF CC 2C 39 58 2D [10:04:37]CheckFolder [10:04:37]dirname=/storage/ofd_packets [10:04:37]CheckFolder done [10:04:37]ProducePacketName [10:04:37]name=ofd_packets/00201337 [10:04:37]NVStorageSaveData ofd_packets/00201337 [10:04:37]File name is /storage/ofd_packets/00201337 [10:04:37]Write 301 bytes [10:04:37]NVStorageSaveData done [10:04:37]OFDSenderStorePacket done [10:04:37]KKMCreateOFDPacket done [10:04:37]NVStorageSaveData kkm_last_timestamp [10:04:37]File name is /storage/kkm_last_timestamp [10:04:37]Write 4 bytes [10:04:37]NVStorageSaveData done [10:04:37]ExternCall_PrintAddStr [10:04:37]wPrintStart [10:04:37]Write to MH i2c: 01 00 00 4A 28 72 [10:04:37]Write i2c OK [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: 01 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: 01 07 00 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: 01 07 00 4A 28 00 00 00 00 00 FF 0F 87 [10:04:37]RasterBufferAndPrint [10:04:37]line Счет N : (1)449085 [10:04:37]line ИНН: 02508201610067 [10:04:37]line Контрольно-Кассовый Чек [10:04:37]line ПРОДАЖА [10:04:37]line ТРК (МРК, ГНК) : 52 [10:04:37]line Товар: 2710124130 [10:04:37]line Аи-92-К-2 [10:04:37]line 7.480 * 66.90 [10:04:37]line = 500.41 [10:04:37]line НДС 12% НСП 1% [10:04:37]line > о реализуемом товаре [10:04:37]line ОКРУГЛЕНИЕ: -0.41 [10:04:37]line ИТОГО: 500.00 [10:04:37]line Внесено: 500.00 [10:04:37]line СДАЧА: 0.00 [10:04:37]line НСП 1% : 4.43 [10:04:37]line НДС 12% : 53.14 [10:04:37]line Наличными: 500.00 [10:04:37]line Безнал.: 0.00 [10:04:37]line Место: АЗС № 171 "Партнер Нефть" [10:04:37]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:04:37]line СНО: Общий режим [10:04:37]line Чек 99 26.10.2024 10:04 [10:04:37]line Смена: 543 ФФД: 1.0 [10:04:37]line ЗНМ: 0300000109 [10:04:37]line РНМ: 0000000000091777 [10:04:37]line Версия ККМ: 001 [10:04:37]line ФМ: 0000000000871756 [10:04:37]line ФД: 201337 [10:04:37]line ФПД: 38003199080589 [10:04:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100439&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201337&fm=38003199080589&tin=02508201610067®Number=0000000000091777&sum=50000 [10:04:37]OFD Sender: Processing packet 201337 [packets to send 112, broken 111] [10:04:37]ProducePacketName [10:04:37]name=ofd_packets/00201337 [10:04:37]OFD Sender: To server: pG, [10:04:37]CommunicateWithHost lk.salyk.kg:30040 [10:04:37]ConnectInit lk.salyk.kg [10:04:37]written 0, free lines is 4095 [10:04:37]Connected sock=10 [10:04:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 4D 96 07 01 DE 3B 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 32 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 63 00 00 00 F4 03 04 00 B7 BE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 79 12 03 00 35 04 06 00 22 90 4F 2E 78 8D BF 02 DF CC 2C 39 58 2D [10:04:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 49 49 47 00 0F 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 79 12 03 00 F4 03 04 00 60 6A 1C 67 B6 04 01 00 00 D3 1E 5A 57 6A F7 A5 55 [10:04:37]CommunicateWithHost err = 0 [10:04:37]CheckOFDResponse [10:04:37]1017 (14) - 77093643461234 [10:04:37]1041 (16) - 0000000000871756 [10:04:37]1040 (4) - 201337 [10:04:37]1012 (4) - 26.10.2024 04:04 [10:04:37]1206 (1) - 0 [10:04:37]OFD Sender: Remove packet 201337 [10:04:37]ProducePacketName [10:04:37]name=ofd_packets/00201337 [10:04:37]NVStorageDeleteData [10:04:38]Write to MH i2c: 01 00 00 75 28 9D [10:04:38]Write i2c OK [10:04:38]MH_I2C_Read... [10:04:38]Read from MH i2c: 01 [10:04:38]MH_I2C_Read... [10:04:38]Read from MH i2c: 01 07 00 [10:04:38]MH_I2C_Read... [10:04:38]Read from MH i2c: 01 07 00 75 28 00 00 00 00 00 A2 0C 52 [10:04:38]RasterBufferAndPrint [10:04:38]line [10:04:38]line [10:04:38]line [10:04:38]line [10:04:38]line [10:04:38]written 0, free lines is 3240 [10:04:38]MH_Cut [10:04:38]Write to MH i2c: D1 01 00 7C 28 01 76 [10:04:38]Write i2c OK [10:04:38]MH_I2C_Read... [10:04:38]Read from MH i2c: D1 [10:04:38]MH_I2C_Read... [10:04:38]Read from MH i2c: D1 01 00 [10:04:38]MH_I2C_Read... [10:04:38]Read from MH i2c: D1 01 00 7C 28 00 75 [10:04:38]Write to MH i2c: 01 00 00 7D 28 A5 [10:04:38]Write i2c OK [10:04:38]MH_I2C_Read... [10:04:38]OFD Sender: No OFD packet to send [10:04:38]*** Cut start [10:04:38]*** Purtial cut [10:04:38]*** Stage 1: CUTSNS_PIN = 1 [10:04:39]Read from MH i2c: 01 [10:04:39]MH_I2C_Read... [10:04:39]*** Stop cut motor [10:04:39]*** Cut end [10:04:39]Read from MH i2c: 01 07 00 [10:04:39]MH_I2C_Read... [10:04:39]Read from MH i2c: 01 07 00 7D 28 00 00 00 00 00 FF 0F BA [10:04:39]process_action close_receipt done [10:04:39]requested_data is exist [10:04:39]produce_requested_data [10:04:39]requested_item fm.sn is exist - process it [10:04:39]wFMCommunicate request_size=4 [10:04:39]MH_SAM_APDU [10:04:39]CAPDU: 80 11 00 00 [10:04:39]Write to MH i2c: E2 08 00 7E 28 80 11 00 00 00 00 00 00 20 [10:04:39]Write i2c OK [10:04:39]MH_I2C_Read... [10:04:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:39]Read from MH i2c: E2 [10:04:39]MH_I2C_Read... [10:04:39]Read from MH i2c: E2 17 00 [10:04:39]MH_I2C_Read... [10:04:39]Read from MH i2c: E2 17 00 7E 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 75 [10:04:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:04:39]wFMCommunicate OK [10:04:39]requested_item fd.num is exist - process it [10:04:39]SAM_PROTO_GetFieldsCounters [10:04:39]wFMCommunicate request_size=4 [10:04:39]MH_SAM_APDU [10:04:39]CAPDU: 80 13 00 00 [10:04:39]Write to MH i2c: E2 08 00 7F 28 80 13 00 00 00 00 00 00 23 [10:04:39]Write i2c OK [10:04:39]MH_I2C_Read... [10:04:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:39]Read from MH i2c: E2 [10:04:39]MH_I2C_Read... [10:04:39]Read from MH i2c: E2 62 00 [10:04:39]MH_I2C_Read... [10:04:39]Read from MH i2c: E2 62 00 7F 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 79 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [10:04:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 79 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:04:39]wFMCommunicate OK [10:04:39]SAM_PROTO_GetFieldsCounters done [10:04:39]requested_item shift.num is exist - process it [10:04:39]requested_item shift.opened is exist - process it [10:04:39]req_shift_opened [10:04:39]FM_GetShiftState [10:04:39]SAM_PROTO_GetShiftState [10:04:39]wFMCommunicate request_size=4 [10:04:39]MH_SAM_APDU [10:04:39]CAPDU: 80 13 01 00 [10:04:39]Write to MH i2c: E2 08 00 80 28 80 13 01 00 00 00 00 00 25 [10:04:39]Write i2c OK [10:04:39]MH_I2C_Read... [10:04:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:39]Read from MH i2c: E2 [10:04:39]MH_I2C_Read... [10:04:39]Read from MH i2c: E2 0E 00 [10:04:39]MH_I2C_Read... [10:04:39]Read from MH i2c: E2 0E 00 80 28 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 34 [10:04:39]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:04:39]wFMCommunicate OK [10:04:39]SAM_PROTO_GetShiftState done [10:04:39]FM_GetShiftState done [10:04:39]req_shift_opened done [10:04:39]requested_item shift.open_date is exist - process it [10:04:39]req_shift_open_date [10:04:39]req_shift_open_date done [10:04:39]produce_requested_data done [10:04:39]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201337,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:04:39]process_action_free close_receipt [10:04:39]json_value_free [10:04:39]json_value_free done [10:04:39]process_json_proto returns [10:04:39]Send response to host [10:04:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201337,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:04:39]free response buf [10:04:39]execute_script done [10:04:39]execute_script returns [10:04:39]free content buf [10:04:39]Sock 9.Close socket [10:04:39]Sock 9.Thread stoped [10:04:43]OFD Sender: No OFD packet to send [10:04:48]OFD Sender: No OFD packet to send [10:04:53]OFD Sender: No OFD packet to send [10:04:58]OFD Sender: No OFD packet to send [10:05:00]accept exits with 7 [10:05:00]New connection [10:05:00]New thread 3067415908 created [10:05:00]Thread 3067559268 joined [10:05:00]Waiting for new connection... [10:05:00] Sock 7.Parse request [10:05:00]Sock 7.Check first char [10:05:00]Sock 7.First char is OK [10:05:00]request: POST /json_proto HTTP/1.0 [10:05:00]Method: POST [10:05:00]URL: /json_proto [10:05:00]Method is POST - this is cgi request [10:05:00]url: /json_proto [10:05:00]query_string will be loaded in cgi processing [10:05:00]execute_cgi json_proto POST (null) [10:05:00]execute_cgi path=json_proto method=POST [10:05:00]POST find Content-Length [10:05:00]Host: 172.17.63.195:8080 [10:05:00]Content-Length: 677 [10:05:00]Content-Type: application/json [10:05:00] [10:05:00]POST finish read [10:05:00]Found Content-Length = 677 [10:05:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:05:00]execute_script... [10:05: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)449087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:05:00]POST & json_proto [10:05:00]process_json_proto [10:05:00]json parsed OK: [10:05:00]protocol is kg_v1.0 [10:05:00]action value=close_receipt [10:05:00]process_action close_receipt [10:05:00]cmd_close_receipt [10:05:00]MH_GetDate [10:05:00]Write to MH i2c: F0 00 00 81 28 98 [10:05:00]Write i2c OK [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: F0 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: F0 09 00 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: F0 09 00 81 28 00 D0 BE 1C 67 68 46 19 67 E0 [10:05:00]GetLastDocTimeStamp 1729937079 [10:05:00]current date 1729937104 [10:05:00]FM_GetShiftState [10:05:00]SAM_PROTO_GetShiftState [10:05:00]wFMCommunicate request_size=4 [10:05:00]MH_SAM_APDU [10:05:00]CAPDU: 80 13 01 00 [10:05:00]Write to MH i2c: E2 08 00 82 28 80 13 01 00 00 00 00 00 27 [10:05:00]Write i2c OK [10:05:00]MH_I2C_Read... [10:05:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:00]Read from MH i2c: E2 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 0E 00 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 0E 00 82 28 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 36 [10:05:00]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:05:00]wFMCommunicate OK [10:05:00]SAM_PROTO_GetShiftState done [10:05:00]FM_GetShiftState done [10:05:00]opened in 1729900879 [10:05:00]opened+sec_in_day 1729987279 [10:05:00]quantity*price = 50041 [10:05:00]sum+1 = 50042 [10:05:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 100 26.10.2024 10:05 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201338 ФПД: 233540672918057 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100504&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201338&fm=233540672918057&tin=02508201610067®Number=0000000000091777&sum=50000 [10:05:01]StoreToDocumentArchive [10:05:01]shift 543 fd 201338 [10:05:01]save to /storage/0543/doc_00201338 [10:05:01]save last doc name /storage/0543/doc_00201338 to /storage/kkm_last_doc_name [10:05:01]save OK [10:05:01]Clear old archive folders... [10:05:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:05:01]tlvbuf is 017BD020 [10:05:01]SAM_PROTO_ClearQueue [10:05:01]wFMCommunicate request_size=4 [10:05:01]MH_SAM_APDU [10:05:01]CAPDU: 80 09 00 00 [10:05:01]Write to MH i2c: E2 08 00 8F 28 80 09 00 00 00 00 00 00 29 [10:05:01]Write i2c OK [10:05:01]MH_I2C_Read... [10:05:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:01]Read from MH i2c: E2 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 03 00 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 03 00 8F 28 00 90 00 2B [10:05:01]RAPDU: 90 00 [10:05:01]wFMCommunicate OK [10:05:01]SAM_PROTO_ClearQueue done [10:05:01]KKMCreateOFDPacket [10:05:01]OFDProtocolAddRootSTLVToBuf [10:05:01]FM_MakeSignedData [10:05:01]FM_MakeSignedData [10:05:01]SAM_PROTO_SignData [10:05:01]wFMCommunicate request_size=4 [10:05:01]MH_SAM_APDU [10:05:01]CAPDU: 80 0D 01 02 [10:05:01]Write to MH i2c: E2 08 00 90 28 80 0D 01 02 00 00 00 00 31 [10:05:01]Write i2c OK [10:05:01]MH_I2C_Read... [10:05:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:01]Read from MH i2c: E2 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 03 00 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 03 00 90 28 00 90 00 2C [10:05:01]RAPDU: 90 00 [10:05:01]wFMCommunicate OK [10:05:01]wFMCommunicate request_size=255 [10:05:01]MH_SAM_APDU [10:05: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 32 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 64 00 00 00 F4 03 04 00 D0 BE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7A 12 03 00 35 04 06 00 D4 [10:05:01]Write to MH i2c: E2 02 01 91 28 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 32 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 64 00 00 00 F4 03 04 00 D0 BE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7A 12 03 00 35 04 06 00 D4 00 00 BE [10:05:01]Write i2c OK [10:05:01]MH_I2C_Read... [10:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:01]Read from MH i2c: E2 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 03 00 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 03 00 91 28 00 90 00 2D [10:05:01]RAPDU: 90 00 [10:05:01]wFMCommunicate OK [10:05:01]wFMCommunicate request_size=10 [10:05:01]MH_SAM_APDU [10:05:01]CAPDU: 80 0D 02 02 05 67 6C D9 92 29 [10:05:01]Write to MH i2c: E2 0D 00 92 28 80 0D 02 02 05 00 67 6C D9 92 29 00 00 A5 [10:05:01]Write i2c OK [10:05:01]MH_I2C_Read... [10:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:01]Read from MH i2c: E2 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 03 00 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 03 00 92 28 00 90 00 2E [10:05:01]RAPDU: 90 00 [10:05:01]wFMCommunicate OK [10:05:01]wFMCommunicate request_size=4 [10:05:01]MH_SAM_APDU [10:05:01]CAPDU: 80 0D 03 02 [10:05:01]Write to MH i2c: E2 08 00 93 28 80 0D 03 02 00 00 00 00 36 [10:05:01]Write i2c OK [10:05:01]MH_I2C_Read... [10:05:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:01]Read from MH i2c: E2 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 0B 00 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 0B 00 93 28 00 2A 58 37 99 88 D3 10 84 90 00 78 [10:05:01]RAPDU: 2A 58 37 99 88 D3 10 84 90 00 [10:05:01]wFMCommunicate OK [10:05:01]SAM_PROTO_SignData done [10:05:01]FM_MakeSignedData done [10:05:01]CreateOFDProtocolMessage [10:05:01]wFMCommunicate request_size=4 [10:05:01]MH_SAM_APDU [10:05:01]CAPDU: 80 11 00 00 [10:05:01]Write to MH i2c: E2 08 00 94 28 80 11 00 00 00 00 00 00 36 [10:05:01]Write i2c OK [10:05:01]MH_I2C_Read... [10:05:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:01]Read from MH i2c: E2 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 17 00 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 17 00 94 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8B [10:05:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:05:01]wFMCommunicate OK [10:05:01]CreateOFDProtocolMessage done [10:05:01]OFDSenderStorePacket 201338 [10:05:01]StoreOFDPacket docnum=201338 [10:05:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 79 19 07 01 3A E8 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 32 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 64 00 00 00 F4 03 04 00 D0 BE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7A 12 03 00 35 04 06 00 D4 67 6C D9 92 29 2A 58 37 99 88 D3 10 84 [10:05:01]CheckFolder [10:05:01]dirname=/storage/ofd_packets [10:05:01]CheckFolder done [10:05:01]ProducePacketName [10:05:01]name=ofd_packets/00201338 [10:05:01]NVStorageSaveData ofd_packets/00201338 [10:05:01]File name is /storage/ofd_packets/00201338 [10:05:01]Write 301 bytes [10:05:01]NVStorageSaveData done [10:05:01]OFDSenderStorePacket done [10:05:01]KKMCreateOFDPacket done [10:05:01]NVStorageSaveData kkm_last_timestamp [10:05:01]File name is /storage/kkm_last_timestamp [10:05:01]Write 4 bytes [10:05:01]NVStorageSaveData done [10:05:01]ExternCall_PrintAddStr [10:05:01]wPrintStart [10:05:01]Write to MH i2c: 01 00 00 95 28 BD [10:05:01]Write i2c OK [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: 01 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: 01 07 00 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: 01 07 00 95 28 00 00 00 00 00 FF 0F D2 [10:05:01]RasterBufferAndPrint [10:05:01]line Счет N : (1)449087 [10:05:01]line ИНН: 02508201610067 [10:05:01]line Контрольно-Кассовый Чек [10:05:01]line ПРОДАЖА [10:05:01]line ТРК (МРК, ГНК) : 31 [10:05:01]line Товар: 2710124130 [10:05:01]line Аи-92-К-2 [10:05:01]line 7.480 * 66.90 [10:05:01]line = 500.41 [10:05:01]line НДС 12% НСП 1% [10:05:01]line > о реализуемом товаре [10:05:01]line ОКРУГЛЕНИЕ: -0.41 [10:05:01]line ИТОГО: 500.00 [10:05:01]line Внесено: 500.00 [10:05:01]line СДАЧА: 0.00 [10:05:01]line НСП 1% : 4.43 [10:05:01]line НДС 12% : 53.14 [10:05:01]line Наличными: 500.00 [10:05:01]line Безнал.: 0.00 [10:05:01]line Место: АЗС № 171 "Партнер Нефть" [10:05:01]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:05:01]line СНО: Общий режим [10:05:01]line Чек 100 26.10.2024 10:05 [10:05:01]line Смена: 543 ФФД: 1.0 [10:05:01]line ЗНМ: 0300000109 [10:05:01]line РНМ: 0000000000091777 [10:05:01]line Версия ККМ: 001 [10:05:01]line ФМ: 0000000000871756 [10:05:01]line ФД: 201338 [10:05:01]line ФПД: 233540672918057 [10:05:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100504&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201338&fm=233540672918057&tin=02508201610067®Number=0000000000091777&sum=50000 [10:05:02]OFD Sender: Processing packet 201338 [packets to send 112, broken 111] [10:05:02]ProducePacketName [10:05:02]name=ofd_packets/00201338 [10:05:02]OFD Sender: To server: pG, [10:05:02]CommunicateWithHost lk.salyk.kg:30040 [10:05:02]ConnectInit lk.salyk.kg [10:05:02]written 0, free lines is 4095 [10:05:02]Connected sock=10 [10:05:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 79 19 07 01 3A E8 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 32 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 64 00 00 00 F4 03 04 00 D0 BE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7A 12 03 00 35 04 06 00 D4 67 6C D9 92 29 2A 58 37 99 88 D3 10 84 [10:05:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 51 15 47 00 2C B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7A 12 03 00 F4 03 04 00 79 6A 1C 67 B6 04 01 00 00 69 E9 3C 4C FA 1E 2D 9A [10:05:02]CommunicateWithHost err = 0 [10:05:02]CheckOFDResponse [10:05:02]1017 (14) - 77093643461234 [10:05:02]1041 (16) - 0000000000871756 [10:05:02]1040 (4) - 201338 [10:05:02]1012 (4) - 26.10.2024 04:05 [10:05:02]1206 (1) - 0 [10:05:02]OFD Sender: Remove packet 201338 [10:05:02]ProducePacketName [10:05:02]name=ofd_packets/00201338 [10:05:02]NVStorageDeleteData [10:05:02]Write to MH i2c: 01 00 00 C0 28 E8 [10:05:02]Write i2c OK [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: 01 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: 01 07 00 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: 01 07 00 C0 28 00 00 00 00 00 9B 0C 96 [10:05:02]RasterBufferAndPrint [10:05:02]line [10:05:02]line [10:05:02]line [10:05:02]line [10:05:02]line [10:05:02]written 0, free lines is 3233 [10:05:02]MH_Cut [10:05:02]Write to MH i2c: D1 01 00 C7 28 01 C1 [10:05:02]Write i2c OK [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: D1 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: D1 01 00 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: D1 01 00 C7 28 00 C0 [10:05:02]Write to MH i2c: 01 00 00 C8 28 F0 [10:05:02]Write i2c OK [10:05:02]MH_I2C_Read... [10:05:03]OFD Sender: No OFD packet to send [10:05:03]*** Cut start [10:05:03]*** Purtial cut [10:05:03]*** Stage 1: CUTSNS_PIN = 1 [10:05:03]Read from MH i2c: 01 [10:05:03]MH_I2C_Read... [10:05:03]*** Stop cut motor [10:05:03]*** Cut end [10:05:03]Read from MH i2c: 01 07 00 [10:05:03]MH_I2C_Read... [10:05:03]Read from MH i2c: 01 07 00 C8 28 00 00 00 00 00 FF 0F 05 [10:05:03]process_action close_receipt done [10:05:03]requested_data is exist [10:05:03]produce_requested_data [10:05:03]requested_item fm.sn is exist - process it [10:05:03]wFMCommunicate request_size=4 [10:05:03]MH_SAM_APDU [10:05:03]CAPDU: 80 11 00 00 [10:05:03]Write to MH i2c: E2 08 00 C9 28 80 11 00 00 00 00 00 00 6B [10:05:03]Write i2c OK [10:05:03]MH_I2C_Read... [10:05:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:03]Read from MH i2c: E2 [10:05:03]MH_I2C_Read... [10:05:03]Read from MH i2c: E2 17 00 [10:05:03]MH_I2C_Read... [10:05:03]Read from MH i2c: E2 17 00 C9 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C0 [10:05:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:05:03]wFMCommunicate OK [10:05:03]requested_item fd.num is exist - process it [10:05:03]SAM_PROTO_GetFieldsCounters [10:05:03]wFMCommunicate request_size=4 [10:05:03]MH_SAM_APDU [10:05:03]CAPDU: 80 13 00 00 [10:05:03]Write to MH i2c: E2 08 00 CA 28 80 13 00 00 00 00 00 00 6E [10:05:03]Write i2c OK [10:05:03]MH_I2C_Read... [10:05:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:04]Read from MH i2c: E2 [10:05:04]MH_I2C_Read... [10:05:04]Read from MH i2c: E2 62 00 [10:05:04]MH_I2C_Read... [10:05:04]Read from MH i2c: E2 62 00 CA 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7A 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [10:05:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7A 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:05:04]wFMCommunicate OK [10:05:04]SAM_PROTO_GetFieldsCounters done [10:05:04]requested_item shift.num is exist - process it [10:05:04]requested_item shift.opened is exist - process it [10:05:04]req_shift_opened [10:05:04]FM_GetShiftState [10:05:04]SAM_PROTO_GetShiftState [10:05:04]wFMCommunicate request_size=4 [10:05:04]MH_SAM_APDU [10:05:04]CAPDU: 80 13 01 00 [10:05:04]Write to MH i2c: E2 08 00 CB 28 80 13 01 00 00 00 00 00 70 [10:05:04]Write i2c OK [10:05:04]MH_I2C_Read... [10:05:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:04]Read from MH i2c: E2 [10:05:04]MH_I2C_Read... [10:05:04]Read from MH i2c: E2 0E 00 [10:05:04]MH_I2C_Read... [10:05:04]Read from MH i2c: E2 0E 00 CB 28 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 7F [10:05:04]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:05:04]wFMCommunicate OK [10:05:04]SAM_PROTO_GetShiftState done [10:05:04]FM_GetShiftState done [10:05:04]req_shift_opened done [10:05:04]requested_item shift.open_date is exist - process it [10:05:04]req_shift_open_date [10:05:04]req_shift_open_date done [10:05:04]produce_requested_data done [10:05:04]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201338,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:05:04]process_action_free close_receipt [10:05:04]json_value_free [10:05:04]json_value_free done [10:05:04]process_json_proto returns [10:05:04]Send response to host [10:05:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201338,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:05:04]free response buf [10:05:04]execute_script done [10:05:04]execute_script returns [10:05:04]free content buf [10:05:04]Sock 7.Close socket [10:05:04]Sock 7.Thread stoped [10:05:08]OFD Sender: No OFD packet to send [10:05:13]OFD Sender: No OFD packet to send [10:05:16]accept exits with 9 [10:05:16]New connection [10:05:16]New thread 3067559268 created [10:05:16]Thread 3067415908 joined [10:05:16]Waiting for new connection... [10:05:16] Sock 9.Parse request [10:05:16]Sock 9.Check first char [10:05:16]Sock 9.First char is OK [10:05:16]request: POST /json_proto HTTP/1.0 [10:05:16]Method: POST [10:05:16]URL: /json_proto [10:05:16]Method is POST - this is cgi request [10:05:16]url: /json_proto [10:05:16]query_string will be loaded in cgi processing [10:05:16]execute_cgi json_proto POST (null) [10:05:16]execute_cgi path=json_proto method=POST [10:05:16]POST find Content-Length [10:05:16]Host: 172.17.63.195:8080 [10:05:16]Content-Length: 675 [10:05:16]Content-Type: application/json [10:05:16] [10:05:16]POST finish read [10:05:16]Found Content-Length = 675 [10:05:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 15.360, "sum" : 1050.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1050.00, "total" : 1050.00, "payments": [ { "type": 0, "sum" : 1050.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:16]execute_script... [10:05: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)449086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 15.360, "sum" : 1050.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1050.00, "total" : 1050.00, "payments": [ { "type": 0, "sum" : 1050.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:16]POST & json_proto [10:05:16]process_json_proto [10:05:16]json parsed OK: [10:05:16]protocol is kg_v1.0 [10:05:16]action value=close_receipt [10:05:16]process_action close_receipt [10:05:16]cmd_close_receipt [10:05:16]MH_GetDate [10:05:16]Write to MH i2c: F0 00 00 CC 28 E3 [10:05:16]Write i2c OK [10:05:16]MH_I2C_Read... [10:05:16]Read from MH i2c: F0 [10:05:16]MH_I2C_Read... [10:05:16]Read from MH i2c: F0 09 00 [10:05:16]MH_I2C_Read... [10:05:16]Read from MH i2c: F0 09 00 CC 28 00 E0 BE 1C 67 68 46 19 67 3B [10:05:16]GetLastDocTimeStamp 1729937104 [10:05:16]current date 1729937120 [10:05:16]FM_GetShiftState [10:05:16]SAM_PROTO_GetShiftState [10:05:16]wFMCommunicate request_size=4 [10:05:16]MH_SAM_APDU [10:05:16]CAPDU: 80 13 01 00 [10:05:16]Write to MH i2c: E2 08 00 CD 28 80 13 01 00 00 00 00 00 72 [10:05:16]Write i2c OK [10:05:16]MH_I2C_Read... [10:05:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:16]Read from MH i2c: E2 [10:05:16]MH_I2C_Read... [10:05:16]Read from MH i2c: E2 0E 00 [10:05:16]MH_I2C_Read... [10:05:16]Read from MH i2c: E2 0E 00 CD 28 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 81 [10:05:16]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:05:16]wFMCommunicate OK [10:05:16]SAM_PROTO_GetShiftState done [10:05:16]FM_GetShiftState done [10:05:16]opened in 1729900879 [10:05:16]opened+sec_in_day 1729987279 [10:05:16]quantity*price = 105062 [10:05:16]sum+1 = 105063 [10:05:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 1050.00 Внесено: 1050.00 СДАЧА: 0.00 НСП 1% : 9.30 НДС 12% : 111.57 Наличными: 1050.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 101 26.10.2024 10:05 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201339 ФПД: 365638024461 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100520&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201339&fm=365638024461&tin=02508201610067®Number=0000000000091777&sum=105000 [10:05:17]StoreToDocumentArchive [10:05:17]shift 543 fd 201339 [10:05:17]save to /storage/0543/doc_00201339 [10:05:17]save last doc name /storage/0543/doc_00201339 to /storage/kkm_last_doc_name [10:05:17]save OK [10:05:17]Clear old archive folders... [10:05:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:05:17]tlvbuf is 016FF3A0 [10:05:17]SAM_PROTO_ClearQueue [10:05:17]wFMCommunicate request_size=4 [10:05:17]MH_SAM_APDU [10:05:17]CAPDU: 80 09 00 00 [10:05:17]Write to MH i2c: E2 08 00 DA 28 80 09 00 00 00 00 00 00 74 [10:05:17]Write i2c OK [10:05:17]MH_I2C_Read... [10:05:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:17]Read from MH i2c: E2 [10:05:17]MH_I2C_Read... [10:05:17]Read from MH i2c: E2 03 00 [10:05:17]MH_I2C_Read... [10:05:17]Read from MH i2c: E2 03 00 DA 28 00 90 00 76 [10:05:17]RAPDU: 90 00 [10:05:17]wFMCommunicate OK [10:05:17]SAM_PROTO_ClearQueue done [10:05:17]KKMCreateOFDPacket [10:05:17]OFDProtocolAddRootSTLVToBuf [10:05:17]FM_MakeSignedData [10:05:17]FM_MakeSignedData [10:05:17]SAM_PROTO_SignData [10:05:17]wFMCommunicate request_size=4 [10:05:17]MH_SAM_APDU [10:05:17]CAPDU: 80 0D 01 02 [10:05:17]Write to MH i2c: E2 08 00 DB 28 80 0D 01 02 00 00 00 00 7C [10:05:17]Write i2c OK [10:05:17]MH_I2C_Read... [10:05:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:17]Read from MH i2c: E2 [10:05:17]MH_I2C_Read... [10:05:17]Read from MH i2c: E2 03 00 [10:05:17]MH_I2C_Read... [10:05:17]Read from MH i2c: E2 03 00 DB 28 00 90 00 77 [10:05:17]RAPDU: 90 00 [10:05:17]wFMCommunicate OK [10:05:17]wFMCommunicate request_size=255 [10:05:17]MH_SAM_APDU [10:05:17]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 00 3C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 66 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 2B 00 00 00 00 07 04 06 00 28 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 E0 BE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7B 12 03 00 35 04 06 00 [10:05:17]Write to MH i2c: E2 02 01 DC 28 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 00 3C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 66 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 2B 00 00 00 00 07 04 06 00 28 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 E0 BE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7B 12 03 00 35 04 06 00 00 00 5C [10:05:17]Write i2c OK [10:05:17]MH_I2C_Read... [10:05:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:17]Read from MH i2c: E2 [10:05:18]MH_I2C_Read... [10:05:18]Read from MH i2c: E2 03 00 [10:05:18]MH_I2C_Read... [10:05:18]Read from MH i2c: E2 03 00 DC 28 00 90 00 78 [10:05:18]RAPDU: 90 00 [10:05:18]wFMCommunicate OK [10:05:18]wFMCommunicate request_size=11 [10:05:18]MH_SAM_APDU [10:05:18]CAPDU: 80 0D 02 02 06 00 55 21 B9 7D 0D [10:05:18]Write to MH i2c: E2 0E 00 DD 28 80 0D 02 02 06 00 00 55 21 B9 7D 0D 00 00 44 [10:05:18]Write i2c OK [10:05:18]MH_I2C_Read... [10:05:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:18]Read from MH i2c: E2 [10:05:18]MH_I2C_Read... [10:05:18]Read from MH i2c: E2 03 00 [10:05:18]MH_I2C_Read... [10:05:18]Read from MH i2c: E2 03 00 DD 28 00 90 00 79 [10:05:18]RAPDU: 90 00 [10:05:18]wFMCommunicate OK [10:05:18]wFMCommunicate request_size=4 [10:05:18]MH_SAM_APDU [10:05:18]CAPDU: 80 0D 03 02 [10:05:18]Write to MH i2c: E2 08 00 DE 28 80 0D 03 02 00 00 00 00 81 [10:05:18]Write i2c OK [10:05:18]MH_I2C_Read... [10:05:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:18]Read from MH i2c: E2 [10:05:18]MH_I2C_Read... [10:05:18]Read from MH i2c: E2 0B 00 [10:05:18]MH_I2C_Read... [10:05:18]Read from MH i2c: E2 0B 00 DE 28 00 C5 AD 7C 6E 29 D9 AC 90 90 00 1C [10:05:18]RAPDU: C5 AD 7C 6E 29 D9 AC 90 90 00 [10:05:18]wFMCommunicate OK [10:05:18]SAM_PROTO_SignData done [10:05:18]FM_MakeSignedData done [10:05:18]CreateOFDProtocolMessage [10:05:18]wFMCommunicate request_size=4 [10:05:18]MH_SAM_APDU [10:05:18]CAPDU: 80 11 00 00 [10:05:18]Write to MH i2c: E2 08 00 DF 28 80 11 00 00 00 00 00 00 81 [10:05:18]Write i2c OK [10:05:18]MH_I2C_Read... [10:05:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:18]Read from MH i2c: E2 [10:05:18]MH_I2C_Read... [10:05:18]Read from MH i2c: E2 17 00 [10:05:18]MH_I2C_Read... [10:05:18]Read from MH i2c: E2 17 00 DF 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D6 [10:05:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:05:18]wFMCommunicate OK [10:05:18]CreateOFDProtocolMessage done [10:05:18]OFDSenderStorePacket 201339 [10:05:18]StoreOFDPacket docnum=201339 [10:05:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 DB 6E 08 01 85 CD 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 00 3C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 66 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 2B 00 00 00 00 07 04 06 00 28 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 E0 BE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7B 12 03 00 35 04 06 00 00 55 21 B9 7D 0D C5 AD 7C 6E 29 D9 AC 90 [10:05:18]CheckFolder [10:05:18]dirname=/storage/ofd_packets [10:05:18]CheckFolder done [10:05:18]ProducePacketName [10:05:18]name=ofd_packets/00201339 [10:05:18]NVStorageSaveData ofd_packets/00201339 [10:05:18]File name is /storage/ofd_packets/00201339 [10:05:18]Write 302 bytes [10:05:18]NVStorageSaveData done [10:05:18]OFDSenderStorePacket done [10:05:18]KKMCreateOFDPacket done [10:05:18]NVStorageSaveData kkm_last_timestamp [10:05:18]File name is /storage/kkm_last_timestamp [10:05:18]Write 4 bytes [10:05:18]NVStorageSaveData done [10:05:18]ExternCall_PrintAddStr [10:05:18]wPrintStart [10:05:18]Write to MH i2c: 01 00 00 E0 28 08 [10:05:18]Write i2c OK [10:05:18]MH_I2C_Read... [10:05:18]Read from MH i2c: 01 [10:05:18]MH_I2C_Read... [10:05:18]Read from MH i2c: 01 07 00 [10:05:18]MH_I2C_Read... [10:05:18]Read from MH i2c: 01 07 00 E0 28 00 00 00 00 00 FF 0F 1D [10:05:18]RasterBufferAndPrint [10:05:18]line Счет N : (1)449086 [10:05:18]line ИНН: 02508201610067 [10:05:18]line Контрольно-Кассовый Чек [10:05:18]line ПРОДАЖА [10:05:18]line ТРК (МРК, ГНК) : 63 [10:05:18]line Товар: 2710124130 [10:05:18]line SUPER 92-К-5 [10:05:18]line 15.360 * 68.40 [10:05:18]line = 1050.62 [10:05:18]line НДС 12% НСП 1% [10:05:18]line > о реализуемом товаре [10:05:18]line ОКРУГЛЕНИЕ: -0.62 [10:05:18]line ИТОГО: 1050.00 [10:05:18]line Внесено: 1050.00 [10:05:18]line СДАЧА: 0.00 [10:05:18]line НСП 1% : 9.30 [10:05:18]line НДС 12% : 111.57 [10:05:18]line Наличными: 1050.00 [10:05:18]line Безнал.: 0.00 [10:05:18]line Место: АЗС № 171 "Партнер Нефть" [10:05:18]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:05:18]line СНО: Общий режим [10:05:18]line Чек 101 26.10.2024 10:05 [10:05:18]line Смена: 543 ФФД: 1.0 [10:05:18]line ЗНМ: 0300000109 [10:05:18]line РНМ: 0000000000091777 [10:05:18]line Версия ККМ: 001 [10:05:18]line ФМ: 0000000000871756 [10:05:18]line ФД: 201339 [10:05:18]line ФПД: 365638024461 [10:05:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100520&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201339&fm=365638024461&tin=02508201610067®Number=0000000000091777&sum=105000 [10:05:18]OFD Sender: Processing packet 201339 [packets to send 112, broken 111] [10:05:18]ProducePacketName [10:05:18]name=ofd_packets/00201339 [10:05:18]OFD Sender: To server: pG, [10:05:18]CommunicateWithHost lk.salyk.kg:30040 [10:05:18]ConnectInit lk.salyk.kg [10:05:18]written 0, free lines is 4095 [10:05:18]Connected sock=10 [10:05:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 DB 6E 08 01 85 CD 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 00 3C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 66 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 2B 00 00 00 00 07 04 06 00 28 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 E0 BE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7B 12 03 00 35 04 06 00 00 55 21 B9 7D 0D C5 AD 7C 6E 29 D9 AC 90 [10:05:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 53 FA 47 00 99 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7B 12 03 00 F4 03 04 00 89 6A 1C 67 B6 04 01 00 00 D5 F9 E3 69 E7 12 A8 BE [10:05:18]CommunicateWithHost err = 0 [10:05:18]CheckOFDResponse [10:05:18]1017 (14) - 77093643461234 [10:05:18]1041 (16) - 0000000000871756 [10:05:18]1040 (4) - 201339 [10:05:18]1012 (4) - 26.10.2024 04:05 [10:05:18]1206 (1) - 0 [10:05:18]OFD Sender: Remove packet 201339 [10:05:18]ProducePacketName [10:05:18]name=ofd_packets/00201339 [10:05:18]NVStorageDeleteData [10:05:18]Write to MH i2c: 01 00 00 0B 29 34 [10:05:18]Write i2c OK [10:05:18]MH_I2C_Read... [10:05:18]Read from MH i2c: 01 [10:05:18]MH_I2C_Read... [10:05:18]Read from MH i2c: 01 07 00 [10:05:18]MH_I2C_Read... [10:05:18]Read from MH i2c: 01 07 00 0B 29 00 00 00 00 00 A2 0C E9 [10:05:18]RasterBufferAndPrint [10:05:18]line [10:05:18]line [10:05:18]line [10:05:18]line [10:05:18]line [10:05:18]written 0, free lines is 3241 [10:05:18]MH_Cut [10:05:18]Write to MH i2c: D1 01 00 12 29 01 0D [10:05:18]Write i2c OK [10:05:18]MH_I2C_Read... [10:05:18]Read from MH i2c: D1 [10:05:18]MH_I2C_Read... [10:05:18]Read from MH i2c: D1 01 00 [10:05:18]MH_I2C_Read... [10:05:18]Read from MH i2c: D1 01 00 12 29 00 0C [10:05:18]Write to MH i2c: 01 00 00 13 29 3C [10:05:18]Write i2c OK [10:05:18]MH_I2C_Read... [10:05:19]OFD Sender: No OFD packet to send [10:05:19]*** Cut start [10:05:19]*** Purtial cut [10:05:19]*** Stage 1: CUTSNS_PIN = 1 [10:05:20]Read from MH i2c: 01 [10:05:20]MH_I2C_Read... [10:05:20]*** Stop cut motor [10:05:20]*** Cut end [10:05:20]Read from MH i2c: 01 07 00 [10:05:20]MH_I2C_Read... [10:05:20]Read from MH i2c: 01 07 00 13 29 00 00 00 00 00 FF 0F 51 [10:05:20]process_action close_receipt done [10:05:20]requested_data is exist [10:05:20]produce_requested_data [10:05:20]requested_item fm.sn is exist - process it [10:05:20]wFMCommunicate request_size=4 [10:05:20]MH_SAM_APDU [10:05:20]CAPDU: 80 11 00 00 [10:05:20]Write to MH i2c: E2 08 00 14 29 80 11 00 00 00 00 00 00 B7 [10:05:20]Write i2c OK [10:05:20]MH_I2C_Read... [10:05:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:20]Read from MH i2c: E2 [10:05:20]MH_I2C_Read... [10:05:20]Read from MH i2c: E2 17 00 [10:05:20]MH_I2C_Read... [10:05:20]Read from MH i2c: E2 17 00 14 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0C [10:05:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:05:20]wFMCommunicate OK [10:05:20]requested_item fd.num is exist - process it [10:05:20]SAM_PROTO_GetFieldsCounters [10:05:20]wFMCommunicate request_size=4 [10:05:20]MH_SAM_APDU [10:05:20]CAPDU: 80 13 00 00 [10:05:20]Write to MH i2c: E2 08 00 15 29 80 13 00 00 00 00 00 00 BA [10:05:20]Write i2c OK [10:05:20]MH_I2C_Read... [10:05:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:20]Read from MH i2c: E2 [10:05:20]MH_I2C_Read... [10:05:20]Read from MH i2c: E2 62 00 [10:05:20]MH_I2C_Read... [10:05:20]Read from MH i2c: E2 62 00 15 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7B 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [10:05:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7B 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:05:20]wFMCommunicate OK [10:05:20]SAM_PROTO_GetFieldsCounters done [10:05:20]requested_item shift.num is exist - process it [10:05:20]requested_item shift.opened is exist - process it [10:05:20]req_shift_opened [10:05:20]FM_GetShiftState [10:05:20]SAM_PROTO_GetShiftState [10:05:20]wFMCommunicate request_size=4 [10:05:20]MH_SAM_APDU [10:05:20]CAPDU: 80 13 01 00 [10:05:20]Write to MH i2c: E2 08 00 16 29 80 13 01 00 00 00 00 00 BC [10:05:20]Write i2c OK [10:05:20]MH_I2C_Read... [10:05:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:20]Read from MH i2c: E2 [10:05:20]MH_I2C_Read... [10:05:20]Read from MH i2c: E2 0E 00 [10:05:20]MH_I2C_Read... [10:05:20]Read from MH i2c: E2 0E 00 16 29 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 CB [10:05:20]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:05:20]wFMCommunicate OK [10:05:20]SAM_PROTO_GetShiftState done [10:05:20]FM_GetShiftState done [10:05:20]req_shift_opened done [10:05:20]requested_item shift.open_date is exist - process it [10:05:20]req_shift_open_date [10:05:20]req_shift_open_date done [10:05:20]produce_requested_data done [10:05:20]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201339,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:05:20]process_action_free close_receipt [10:05:20]json_value_free [10:05:20]json_value_free done [10:05:20]process_json_proto returns [10:05:20]Send response to host [10:05:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201339,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:05:20]free response buf [10:05:20]execute_script done [10:05:20]execute_script returns [10:05:20]free content buf [10:05:20]Sock 9.Close socket [10:05:20]Sock 9.Thread stoped [10:05:24]OFD Sender: No OFD packet to send [10:05:29]OFD Sender: No OFD packet to send [10:05:32]accept exits with 7 [10:05:32]New connection [10:05:32]New thread 3067415908 created [10:05:32]Thread 3067559268 joined [10:05:32]Waiting for new connection... [10:05:32] Sock 7.Parse request [10:05:32]Sock 7.Check first char [10:05:32]Sock 7.First char is OK [10:05:32]request: POST /json_proto HTTP/1.0 [10:05:32]Method: POST [10:05:32]URL: /json_proto [10:05:32]Method is POST - this is cgi request [10:05:32]url: /json_proto [10:05:32]query_string will be loaded in cgi processing [10:05:32]execute_cgi json_proto POST (null) [10:05:32]execute_cgi path=json_proto method=POST [10:05:32]POST find Content-Length [10:05:32]Host: 172.17.63.195:8080 [10:05:32]Content-Length: 678 [10:05:32]Content-Type: application/json [10:05:32] [10:05:32]POST finish read [10:05:32]Found Content-Length = 678 [10:05:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [10:05:32]execute_script... [10:05:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [10:05:32]POST & json_proto [10:05:32]process_json_proto [10:05:32]json parsed OK: [10:05:32]protocol is kg_v1.0 [10:05:32]action value=close_receipt [10:05:32]process_action close_receipt [10:05:32]cmd_close_receipt [10:05:32]MH_GetDate [10:05:32]Write to MH i2c: F0 00 00 17 29 2F [10:05:32]Write i2c OK [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: F0 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: F0 09 00 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: F0 09 00 17 29 00 EF BE 1C 67 68 46 19 67 96 [10:05:32]GetLastDocTimeStamp 1729937120 [10:05:32]current date 1729937135 [10:05:32]FM_GetShiftState [10:05:32]SAM_PROTO_GetShiftState [10:05:32]wFMCommunicate request_size=4 [10:05:32]MH_SAM_APDU [10:05:32]CAPDU: 80 13 01 00 [10:05:32]Write to MH i2c: E2 08 00 18 29 80 13 01 00 00 00 00 00 BE [10:05:32]Write i2c OK [10:05:32]MH_I2C_Read... [10:05:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:32]Read from MH i2c: E2 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: E2 0E 00 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: E2 0E 00 18 29 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 CD [10:05:32]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:05:32]wFMCommunicate OK [10:05:32]SAM_PROTO_GetShiftState done [10:05:32]FM_GetShiftState done [10:05:32]opened in 1729900879 [10:05:32]opened+sec_in_day 1729987279 [10:05:32]quantity*price = 70044 [10:05:32]sum+1 = 70045 [10:05:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 102 26.10.2024 10:05 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201340 ФПД: 55278186195649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100535&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201340&fm=55278186195649&tin=02508201610067®Number=0000000000091777&sum=70000 [10:05:33]StoreToDocumentArchive [10:05:33]shift 543 fd 201340 [10:05:33]save to /storage/0543/doc_00201340 [10:05:33]save last doc name /storage/0543/doc_00201340 to /storage/kkm_last_doc_name [10:05:33]save OK [10:05:33]Clear old archive folders... [10:05:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:05:33]tlvbuf is 0176B0F0 [10:05:33]SAM_PROTO_ClearQueue [10:05:33]wFMCommunicate request_size=4 [10:05:33]MH_SAM_APDU [10:05:33]CAPDU: 80 09 00 00 [10:05:33]Write to MH i2c: E2 08 00 25 29 80 09 00 00 00 00 00 00 C0 [10:05:33]Write i2c OK [10:05:33]MH_I2C_Read... [10:05:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:33]Read from MH i2c: E2 [10:05:33]MH_I2C_Read... [10:05:33]Read from MH i2c: E2 03 00 [10:05:33]MH_I2C_Read... [10:05:33]Read from MH i2c: E2 03 00 25 29 00 90 00 C2 [10:05:33]RAPDU: 90 00 [10:05:33]wFMCommunicate OK [10:05:33]SAM_PROTO_ClearQueue done [10:05:33]KKMCreateOFDPacket [10:05:33]OFDProtocolAddRootSTLVToBuf [10:05:33]FM_MakeSignedData [10:05:33]FM_MakeSignedData [10:05:33]SAM_PROTO_SignData [10:05:33]wFMCommunicate request_size=4 [10:05:33]MH_SAM_APDU [10:05:33]CAPDU: 80 0D 01 02 [10:05:33]Write to MH i2c: E2 08 00 26 29 80 0D 01 02 00 00 00 00 C8 [10:05:33]Write i2c OK [10:05:33]MH_I2C_Read... [10:05:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:33]Read from MH i2c: E2 [10:05:33]MH_I2C_Read... [10:05:33]Read from MH i2c: E2 03 00 [10:05:33]MH_I2C_Read... [10:05:33]Read from MH i2c: E2 03 00 26 29 00 90 00 C3 [10:05:33]RAPDU: 90 00 [10:05:33]wFMCommunicate OK [10:05:33]wFMCommunicate request_size=255 [10:05:33]MH_SAM_APDU [10:05: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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 66 00 00 00 F4 03 04 00 EF BE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7C 12 03 00 35 04 06 00 32 [10:05:33]Write to MH i2c: E2 02 01 27 29 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 66 00 00 00 F4 03 04 00 EF BE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7C 12 03 00 35 04 06 00 32 00 00 E6 [10:05:33]Write i2c OK [10:05:33]MH_I2C_Read... [10:05:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:33]Read from MH i2c: E2 [10:05:33]MH_I2C_Read... [10:05:33]Read from MH i2c: E2 03 00 [10:05:33]MH_I2C_Read... [10:05:33]Read from MH i2c: E2 03 00 27 29 00 90 00 C4 [10:05:33]RAPDU: 90 00 [10:05:33]wFMCommunicate OK [10:05:33]wFMCommunicate request_size=10 [10:05:33]MH_SAM_APDU [10:05:33]CAPDU: 80 0D 02 02 05 46 74 A6 EA C1 [10:05:33]Write to MH i2c: E2 0D 00 28 29 80 0D 02 02 05 00 46 74 A6 EA C1 00 00 E0 [10:05:33]Write i2c OK [10:05:33]MH_I2C_Read... [10:05:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:33]Read from MH i2c: E2 [10:05:33]MH_I2C_Read... [10:05:33]Read from MH i2c: E2 03 00 [10:05:33]MH_I2C_Read... [10:05:33]Read from MH i2c: E2 03 00 28 29 00 90 00 C5 [10:05:33]RAPDU: 90 00 [10:05:33]wFMCommunicate OK [10:05:33]wFMCommunicate request_size=4 [10:05:33]MH_SAM_APDU [10:05:33]CAPDU: 80 0D 03 02 [10:05:33]Write to MH i2c: E2 08 00 29 29 80 0D 03 02 00 00 00 00 CD [10:05:33]Write i2c OK [10:05:33]MH_I2C_Read... [10:05:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:33]Read from MH i2c: E2 [10:05:33]MH_I2C_Read... [10:05:33]Read from MH i2c: E2 0B 00 [10:05:33]MH_I2C_Read... [10:05:33]Read from MH i2c: E2 0B 00 29 29 00 90 52 9A 1B 77 8F 00 52 90 00 BD [10:05:33]RAPDU: 90 52 9A 1B 77 8F 00 52 90 00 [10:05:33]wFMCommunicate OK [10:05:33]SAM_PROTO_SignData done [10:05:33]FM_MakeSignedData done [10:05:33]CreateOFDProtocolMessage [10:05:33]wFMCommunicate request_size=4 [10:05:33]MH_SAM_APDU [10:05:33]CAPDU: 80 11 00 00 [10:05:33]Write to MH i2c: E2 08 00 2A 29 80 11 00 00 00 00 00 00 CD [10:05:33]Write i2c OK [10:05:33]MH_I2C_Read... [10:05:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:33]Read from MH i2c: E2 [10:05:33]MH_I2C_Read... [10:05:33]Read from MH i2c: E2 17 00 [10:05:33]MH_I2C_Read... [10:05:33]Read from MH i2c: E2 17 00 2A 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 22 [10:05:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:05:33]wFMCommunicate OK [10:05:33]CreateOFDProtocolMessage done [10:05:33]OFDSenderStorePacket 201340 [10:05:33]StoreOFDPacket docnum=201340 [10:05:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 FA 56 07 01 E0 CC 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 66 00 00 00 F4 03 04 00 EF BE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7C 12 03 00 35 04 06 00 32 46 74 A6 EA C1 90 52 9A 1B 77 8F 00 52 [10:05:33]CheckFolder [10:05:33]dirname=/storage/ofd_packets [10:05:33]CheckFolder done [10:05:33]ProducePacketName [10:05:33]name=ofd_packets/00201340 [10:05:33]NVStorageSaveData ofd_packets/00201340 [10:05:33]File name is /storage/ofd_packets/00201340 [10:05:33]Write 301 bytes [10:05:33]NVStorageSaveData done [10:05:33]OFDSenderStorePacket done [10:05:33]KKMCreateOFDPacket done [10:05:33]NVStorageSaveData kkm_last_timestamp [10:05:33]File name is /storage/kkm_last_timestamp [10:05:33]Write 4 bytes [10:05:33]NVStorageSaveData done [10:05:33]ExternCall_PrintAddStr [10:05:33]wPrintStart [10:05:33]Write to MH i2c: 01 00 00 2B 29 54 [10:05:33]Write i2c OK [10:05:33]MH_I2C_Read... [10:05:33]Read from MH i2c: 01 [10:05:33]MH_I2C_Read... [10:05:33]Read from MH i2c: 01 07 00 [10:05:33]MH_I2C_Read... [10:05:33]Read from MH i2c: 01 07 00 2B 29 00 00 00 00 00 FF 0F 69 [10:05:33]RasterBufferAndPrint [10:05:33]line Счет N : (1)449088 [10:05:33]line ИНН: 02508201610067 [10:05:33]line Контрольно-Кассовый Чек [10:05:33]line ПРОДАЖА [10:05:33]line ТРК (МРК, ГНК) : 41 [10:05:33]line Товар: 2710124130 [10:05:33]line Аи-92-К-2 [10:05:33]line 10.470 * 66.90 [10:05:33]line = 700.44 [10:05:33]line НДС 12% НСП 1% [10:05:33]line > о реализуемом товаре [10:05:33]line ОКРУГЛЕНИЕ: -0.44 [10:05:33]line ИТОГО: 700.00 [10:05:33]line Внесено: 700.00 [10:05:33]line СДАЧА: 0.00 [10:05:33]line НСП 1% : 6.20 [10:05:33]line НДС 12% : 74.38 [10:05:33]line Наличными: 700.00 [10:05:33]line Безнал.: 0.00 [10:05:33]line Место: АЗС № 171 "Партнер Нефть" [10:05:33]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:05:33]line СНО: Общий режим [10:05:33]line Чек 102 26.10.2024 10:05 [10:05:33]line Смена: 543 ФФД: 1.0 [10:05:33]line ЗНМ: 0300000109 [10:05:33]line РНМ: 0000000000091777 [10:05:33]line Версия ККМ: 001 [10:05:33]line ФМ: 0000000000871756 [10:05:33]line ФД: 201340 [10:05:33]line ФПД: 55278186195649 [10:05:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100535&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201340&fm=55278186195649&tin=02508201610067®Number=0000000000091777&sum=70000 [10:05:34]OFD Sender: Processing packet 201340 [packets to send 112, broken 111] [10:05:34]ProducePacketName [10:05:34]name=ofd_packets/00201340 [10:05:34]OFD Sender: To server: pG, [10:05:34]CommunicateWithHost lk.salyk.kg:30040 [10:05:34]ConnectInit lk.salyk.kg [10:05:34]written 0, free lines is 4095 [10:05:34]Connected sock=10 [10:05:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 FA 56 07 01 E0 CC 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 66 00 00 00 F4 03 04 00 EF BE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7C 12 03 00 35 04 06 00 32 46 74 A6 EA C1 90 52 9A 1B 77 8F 00 52 [10:05:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C5 5A 47 00 21 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7C 12 03 00 F4 03 04 00 99 6A 1C 67 B6 04 01 00 00 9E 98 68 C6 57 06 E2 0F [10:05:34]CommunicateWithHost err = 0 [10:05:34]CheckOFDResponse [10:05:34]1017 (14) - 77093643461234 [10:05:34]1041 (16) - 0000000000871756 [10:05:34]1040 (4) - 201340 [10:05:34]1012 (4) - 26.10.2024 04:05 [10:05:34]1206 (1) - 0 [10:05:34]OFD Sender: Remove packet 201340 [10:05:34]ProducePacketName [10:05:34]name=ofd_packets/00201340 [10:05:34]NVStorageDeleteData [10:05:34]Write to MH i2c: 01 00 00 56 29 7F [10:05:34]Write i2c OK [10:05:34]MH_I2C_Read... [10:05:34]Read from MH i2c: 01 [10:05:34]MH_I2C_Read... [10:05:34]Read from MH i2c: 01 07 00 [10:05:34]MH_I2C_Read... [10:05:34]Read from MH i2c: 01 07 00 56 29 00 00 00 00 00 AD 0C 3F [10:05:34]RasterBufferAndPrint [10:05:34]line [10:05:34]line [10:05:34]line [10:05:34]line [10:05:34]line [10:05:34]written 0, free lines is 3252 [10:05:34]MH_Cut [10:05:34]Write to MH i2c: D1 01 00 5D 29 01 58 [10:05:34]Write i2c OK [10:05:34]MH_I2C_Read... [10:05:34]Read from MH i2c: D1 [10:05:34]MH_I2C_Read... [10:05:34]Read from MH i2c: D1 01 00 [10:05:34]MH_I2C_Read... [10:05:34]Read from MH i2c: D1 01 00 5D 29 00 57 [10:05:34]Write to MH i2c: 01 00 00 5E 29 87 [10:05:34]Write i2c OK [10:05:34]MH_I2C_Read... [10:05:35]OFD Sender: No OFD packet to send [10:05:35]*** Cut start [10:05:35]*** Purtial cut [10:05:35]*** Stage 1: CUTSNS_PIN = 1 [10:05:35]Read from MH i2c: 01 [10:05:35]MH_I2C_Read... [10:05:35]*** Stop cut motor [10:05:35]*** Cut end [10:05:35]Read from MH i2c: 01 07 00 [10:05:35]MH_I2C_Read... [10:05:35]Read from MH i2c: 01 07 00 5E 29 00 00 00 00 00 FF 0F 9C [10:05:35]process_action close_receipt done [10:05:35]requested_data is exist [10:05:35]produce_requested_data [10:05:35]requested_item fm.sn is exist - process it [10:05:35]wFMCommunicate request_size=4 [10:05:35]MH_SAM_APDU [10:05:35]CAPDU: 80 11 00 00 [10:05:35]Write to MH i2c: E2 08 00 5F 29 80 11 00 00 00 00 00 00 02 [10:05:35]Write i2c OK [10:05:35]MH_I2C_Read... [10:05:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:35]Read from MH i2c: E2 [10:05:35]MH_I2C_Read... [10:05:35]Read from MH i2c: E2 17 00 [10:05:35]MH_I2C_Read... [10:05:35]Read from MH i2c: E2 17 00 5F 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 57 [10:05:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:05:35]wFMCommunicate OK [10:05:35]requested_item fd.num is exist - process it [10:05:35]SAM_PROTO_GetFieldsCounters [10:05:35]wFMCommunicate request_size=4 [10:05:35]MH_SAM_APDU [10:05:35]CAPDU: 80 13 00 00 [10:05:35]Write to MH i2c: E2 08 00 60 29 80 13 00 00 00 00 00 00 05 [10:05:35]Write i2c OK [10:05:35]MH_I2C_Read... [10:05:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:36]Read from MH i2c: E2 [10:05:36]MH_I2C_Read... [10:05:36]Read from MH i2c: E2 62 00 [10:05:36]MH_I2C_Read... [10:05:36]Read from MH i2c: E2 62 00 60 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7C 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [10:05:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7C 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:05:36]wFMCommunicate OK [10:05:36]SAM_PROTO_GetFieldsCounters done [10:05:36]requested_item shift.num is exist - process it [10:05:36]requested_item shift.opened is exist - process it [10:05:36]req_shift_opened [10:05:36]FM_GetShiftState [10:05:36]SAM_PROTO_GetShiftState [10:05:36]wFMCommunicate request_size=4 [10:05:36]MH_SAM_APDU [10:05:36]CAPDU: 80 13 01 00 [10:05:36]Write to MH i2c: E2 08 00 61 29 80 13 01 00 00 00 00 00 07 [10:05:36]Write i2c OK [10:05:36]MH_I2C_Read... [10:05:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:36]Read from MH i2c: E2 [10:05:36]MH_I2C_Read... [10:05:36]Read from MH i2c: E2 0E 00 [10:05:36]MH_I2C_Read... [10:05:36]Read from MH i2c: E2 0E 00 61 29 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 16 [10:05:36]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:05:36]wFMCommunicate OK [10:05:36]SAM_PROTO_GetShiftState done [10:05:36]FM_GetShiftState done [10:05:36]req_shift_opened done [10:05:36]requested_item shift.open_date is exist - process it [10:05:36]req_shift_open_date [10:05:36]req_shift_open_date done [10:05:36]produce_requested_data done [10:05:36]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201340,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:05:36]process_action_free close_receipt [10:05:36]json_value_free [10:05:36]json_value_free done [10:05:36]process_json_proto returns [10:05:36]Send response to host [10:05:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201340,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:05:36]free response buf [10:05:36]execute_script done [10:05:36]execute_script returns [10:05:36]free content buf [10:05:36]Sock 7.Close socket [10:05:36]Sock 7.Thread stoped [10:05:40]OFD Sender: No OFD packet to send [10:05:45]OFD Sender: No OFD packet to send [10:05:50]OFD Sender: No OFD packet to send [10:05:55]OFD Sender: No OFD packet to send [10:06:00]OFD Sender: No OFD packet to send [10:06:05]OFD Sender: No OFD packet to send [10:06:10]OFD Sender: No OFD packet to send [10:06:15]OFD Sender: No OFD packet to send [10:06:20]OFD Sender: No OFD packet to send [10:06:25]OFD Sender: No OFD packet to send [10:06:30]OFD Sender: No OFD packet to send [10:06:35]OFD Sender: No OFD packet to send [10:06:40]OFD Sender: No OFD packet to send [10:06:45]OFD Sender: No OFD packet to send [10:06:50]OFD Sender: No OFD packet to send [10:06:55]OFD Sender: No OFD packet to send [10:07:00]OFD Sender: No OFD packet to send [10:07:05]OFD Sender: No OFD packet to send [10:07:10]OFD Sender: No OFD packet to send [10:07:14]accept exits with 9 [10:07:14]New connection [10:07:14]New thread 3067559268 created [10:07:14]Thread 3067415908 joined [10:07:14]Waiting for new connection... [10:07:14] Sock 9.Parse request [10:07:14]Sock 9.Check first char [10:07:14]Sock 9.First char is OK [10:07:14]request: POST /json_proto HTTP/1.0 [10:07:14]Method: POST [10:07:14]URL: /json_proto [10:07:14]Method is POST - this is cgi request [10:07:14]url: /json_proto [10:07:14]query_string will be loaded in cgi processing [10:07:14]execute_cgi json_proto POST (null) [10:07:14]execute_cgi path=json_proto method=POST [10:07:14]POST find Content-Length [10:07:14]Host: 172.17.63.195:8080 [10:07:14]Content-Length: 677 [10:07:14]Content-Type: application/json [10:07:14] [10:07:14]POST finish read [10:07:14]Found Content-Length = 677 [10:07:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:07:14]execute_script... [10:07:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:07:14]POST & json_proto [10:07:14]process_json_proto [10:07:14]json parsed OK: [10:07:14]protocol is kg_v1.0 [10:07:14]action value=close_receipt [10:07:14]process_action close_receipt [10:07:14]cmd_close_receipt [10:07:14]MH_GetDate [10:07:14]Write to MH i2c: F0 00 00 62 29 7A [10:07:14]Write i2c OK [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: F0 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: F0 09 00 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: F0 09 00 62 29 00 55 BF 1C 67 68 46 19 67 48 [10:07:14]GetLastDocTimeStamp 1729937135 [10:07:14]current date 1729937237 [10:07:14]FM_GetShiftState [10:07:14]SAM_PROTO_GetShiftState [10:07:14]wFMCommunicate request_size=4 [10:07:14]MH_SAM_APDU [10:07:14]CAPDU: 80 13 01 00 [10:07:14]Write to MH i2c: E2 08 00 63 29 80 13 01 00 00 00 00 00 09 [10:07:14]Write i2c OK [10:07:14]MH_I2C_Read... [10:07:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:14]Read from MH i2c: E2 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 0E 00 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 0E 00 63 29 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 18 [10:07:14]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:07:14]wFMCommunicate OK [10:07:14]SAM_PROTO_GetShiftState done [10:07:14]FM_GetShiftState done [10:07:14]opened in 1729900879 [10:07:14]opened+sec_in_day 1729987279 [10:07:14]quantity*price = 50041 [10:07:14]sum+1 = 50042 [10:07:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 103 26.10.2024 10:07 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201341 ФПД: 194427661684071 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100717&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201341&fm=194427661684071&tin=02508201610067®Number=0000000000091777&sum=50000 [10:07:15]StoreToDocumentArchive [10:07:15]shift 543 fd 201341 [10:07:15]save to /storage/0543/doc_00201341 [10:07:15]save last doc name /storage/0543/doc_00201341 to /storage/kkm_last_doc_name [10:07:15]save OK [10:07:15]Clear old archive folders... [10:07:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:07:15]tlvbuf is 01707070 [10:07:15]SAM_PROTO_ClearQueue [10:07:15]wFMCommunicate request_size=4 [10:07:15]MH_SAM_APDU [10:07:15]CAPDU: 80 09 00 00 [10:07:15]Write to MH i2c: E2 08 00 70 29 80 09 00 00 00 00 00 00 0B [10:07:15]Write i2c OK [10:07:15]MH_I2C_Read... [10:07:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:15]OFD Sender: No OFD packet to send [10:07:15]Read from MH i2c: E2 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: E2 03 00 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: E2 03 00 70 29 00 90 00 0D [10:07:15]RAPDU: 90 00 [10:07:15]wFMCommunicate OK [10:07:15]SAM_PROTO_ClearQueue done [10:07:15]KKMCreateOFDPacket [10:07:15]OFDProtocolAddRootSTLVToBuf [10:07:15]FM_MakeSignedData [10:07:15]FM_MakeSignedData [10:07:15]SAM_PROTO_SignData [10:07:15]wFMCommunicate request_size=4 [10:07:15]MH_SAM_APDU [10:07:15]CAPDU: 80 0D 01 02 [10:07:15]Write to MH i2c: E2 08 00 71 29 80 0D 01 02 00 00 00 00 13 [10:07:15]Write i2c OK [10:07:15]MH_I2C_Read... [10:07:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:15]Read from MH i2c: E2 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: E2 03 00 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: E2 03 00 71 29 00 90 00 0E [10:07:15]RAPDU: 90 00 [10:07:15]wFMCommunicate OK [10:07:15]wFMCommunicate request_size=255 [10:07:15]MH_SAM_APDU [10:07: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 32 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 67 00 00 00 F4 03 04 00 55 BF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7D 12 03 00 35 04 06 00 B0 [10:07:15]Write to MH i2c: E2 02 01 72 29 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 32 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 67 00 00 00 F4 03 04 00 55 BF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7D 12 03 00 35 04 06 00 B0 00 00 08 [10:07:15]Write i2c OK [10:07:15]MH_I2C_Read... [10:07:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:15]Read from MH i2c: E2 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: E2 03 00 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: E2 03 00 72 29 00 90 00 0F [10:07:15]RAPDU: 90 00 [10:07:15]wFMCommunicate OK [10:07:15]wFMCommunicate request_size=10 [10:07:15]MH_SAM_APDU [10:07:15]CAPDU: 80 0D 02 02 05 D4 B7 B5 8D 67 [10:07:15]Write to MH i2c: E2 0D 00 73 29 80 0D 02 02 05 00 D4 B7 B5 8D 67 00 00 54 [10:07:15]Write i2c OK [10:07:15]MH_I2C_Read... [10:07:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:15]Read from MH i2c: E2 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: E2 03 00 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: E2 03 00 73 29 00 90 00 10 [10:07:15]RAPDU: 90 00 [10:07:15]wFMCommunicate OK [10:07:15]wFMCommunicate request_size=4 [10:07:15]MH_SAM_APDU [10:07:15]CAPDU: 80 0D 03 02 [10:07:15]Write to MH i2c: E2 08 00 74 29 80 0D 03 02 00 00 00 00 18 [10:07:15]Write i2c OK [10:07:15]MH_I2C_Read... [10:07:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:15]Read from MH i2c: E2 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: E2 0B 00 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: E2 0B 00 74 29 00 A7 BB 09 3F BC 13 99 ED 90 00 18 [10:07:15]RAPDU: A7 BB 09 3F BC 13 99 ED 90 00 [10:07:15]wFMCommunicate OK [10:07:15]SAM_PROTO_SignData done [10:07:15]FM_MakeSignedData done [10:07:15]CreateOFDProtocolMessage [10:07:15]wFMCommunicate request_size=4 [10:07:15]MH_SAM_APDU [10:07:15]CAPDU: 80 11 00 00 [10:07:15]Write to MH i2c: E2 08 00 75 29 80 11 00 00 00 00 00 00 18 [10:07:15]Write i2c OK [10:07:15]MH_I2C_Read... [10:07:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:15]Read from MH i2c: E2 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: E2 17 00 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: E2 17 00 75 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6D [10:07:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:07:15]wFMCommunicate OK [10:07:15]CreateOFDProtocolMessage done [10:07:15]OFDSenderStorePacket 201341 [10:07:15]StoreOFDPacket docnum=201341 [10:07:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6A CC 07 01 3D D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 67 00 00 00 F4 03 04 00 55 BF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7D 12 03 00 35 04 06 00 B0 D4 B7 B5 8D 67 A7 BB 09 3F BC 13 99 ED [10:07:15]CheckFolder [10:07:15]dirname=/storage/ofd_packets [10:07:15]CheckFolder done [10:07:15]ProducePacketName [10:07:15]name=ofd_packets/00201341 [10:07:15]NVStorageSaveData ofd_packets/00201341 [10:07:15]File name is /storage/ofd_packets/00201341 [10:07:15]Write 301 bytes [10:07:15]NVStorageSaveData done [10:07:15]OFDSenderStorePacket done [10:07:15]KKMCreateOFDPacket done [10:07:15]NVStorageSaveData kkm_last_timestamp [10:07:15]File name is /storage/kkm_last_timestamp [10:07:15]Write 4 bytes [10:07:15]NVStorageSaveData done [10:07:15]ExternCall_PrintAddStr [10:07:15]wPrintStart [10:07:15]Write to MH i2c: 01 00 00 76 29 9F [10:07:15]Write i2c OK [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: 01 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: 01 07 00 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: 01 07 00 76 29 00 00 00 00 00 FF 0F B4 [10:07:15]RasterBufferAndPrint [10:07:15]line Счет N : (1)449089 [10:07:15]line ИНН: 02508201610067 [10:07:15]line Контрольно-Кассовый Чек [10:07:15]line ПРОДАЖА [10:07:15]line ТРК (МРК, ГНК) : 62 [10:07:15]line Товар: 2710124130 [10:07:15]line Аи-92-К-2 [10:07:15]line 7.480 * 66.90 [10:07:15]line = 500.41 [10:07:15]line НДС 12% НСП 1% [10:07:15]line > о реализуемом товаре [10:07:15]line ОКРУГЛЕНИЕ: -0.41 [10:07:15]line ИТОГО: 500.00 [10:07:15]line Внесено: 500.00 [10:07:15]line СДАЧА: 0.00 [10:07:15]line НСП 1% : 4.43 [10:07:15]line НДС 12% : 53.14 [10:07:15]line Наличными: 500.00 [10:07:15]line Безнал.: 0.00 [10:07:15]line Место: АЗС № 171 "Партнер Нефть" [10:07:15]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:07:15]line СНО: Общий режим [10:07:15]line Чек 103 26.10.2024 10:07 [10:07:15]line Смена: 543 ФФД: 1.0 [10:07:15]line ЗНМ: 0300000109 [10:07:15]line РНМ: 0000000000091777 [10:07:15]line Версия ККМ: 001 [10:07:15]line ФМ: 0000000000871756 [10:07:15]line ФД: 201341 [10:07:15]line ФПД: 194427661684071 [10:07:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100717&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201341&fm=194427661684071&tin=02508201610067®Number=0000000000091777&sum=50000 [10:07:16]OFD Sender: Processing packet 201341 [packets to send 112, broken 111] [10:07:16]ProducePacketName [10:07:16]name=ofd_packets/00201341 [10:07:16]OFD Sender: To server: pG, [10:07:16]CommunicateWithHost lk.salyk.kg:30040 [10:07:16]ConnectInit lk.salyk.kg [10:07:16]written 0, free lines is 4095 [10:07:16]Connected sock=10 [10:07:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6A CC 07 01 3D D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 67 00 00 00 F4 03 04 00 55 BF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7D 12 03 00 35 04 06 00 B0 D4 B7 B5 8D 67 A7 BB 09 3F BC 13 99 ED [10:07:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 FA AC 47 00 5D 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7D 12 03 00 F4 03 04 00 FF 6A 1C 67 B6 04 01 00 00 C9 7A C2 F2 85 C6 8E 08 [10:07:16]CommunicateWithHost err = 0 [10:07:16]CheckOFDResponse [10:07:16]1017 (14) - 77093643461234 [10:07:16]1041 (16) - 0000000000871756 [10:07:16]1040 (4) - 201341 [10:07:16]1012 (4) - 26.10.2024 04:07 [10:07:16]1206 (1) - 0 [10:07:16]OFD Sender: Remove packet 201341 [10:07:16]ProducePacketName [10:07:16]name=ofd_packets/00201341 [10:07:16]NVStorageDeleteData [10:07:16]Write to MH i2c: 01 00 00 A1 29 CA [10:07:16]Write i2c OK [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: 01 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: 01 07 00 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: 01 07 00 A1 29 00 00 00 00 00 A2 0C 7F [10:07:16]RasterBufferAndPrint [10:07:16]line [10:07:16]line [10:07:16]line [10:07:16]line [10:07:16]line [10:07:16]written 0, free lines is 3242 [10:07:16]MH_Cut [10:07:16]Write to MH i2c: D1 01 00 A8 29 01 A3 [10:07:16]Write i2c OK [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: D1 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: D1 01 00 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: D1 01 00 A8 29 00 A2 [10:07:16]Write to MH i2c: 01 00 00 A9 29 D2 [10:07:16]Write i2c OK [10:07:16]MH_I2C_Read... [10:07:16]OFD Sender: No OFD packet to send [10:07:17]*** Cut start [10:07:17]*** Purtial cut [10:07:17]*** Stage 1: CUTSNS_PIN = 1 [10:07:17]Read from MH i2c: 01 [10:07:17]MH_I2C_Read... [10:07:17]*** Stop cut motor [10:07:17]*** Cut end [10:07:17]Read from MH i2c: 01 07 00 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: 01 07 00 A9 29 00 00 00 00 00 FF 0F E7 [10:07:17]process_action close_receipt done [10:07:17]requested_data is exist [10:07:17]produce_requested_data [10:07:17]requested_item fm.sn is exist - process it [10:07:17]wFMCommunicate request_size=4 [10:07:17]MH_SAM_APDU [10:07:17]CAPDU: 80 11 00 00 [10:07:17]Write to MH i2c: E2 08 00 AA 29 80 11 00 00 00 00 00 00 4D [10:07:17]Write i2c OK [10:07:17]MH_I2C_Read... [10:07:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:17]Read from MH i2c: E2 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: E2 17 00 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: E2 17 00 AA 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A2 [10:07:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:07:17]wFMCommunicate OK [10:07:17]requested_item fd.num is exist - process it [10:07:17]SAM_PROTO_GetFieldsCounters [10:07:17]wFMCommunicate request_size=4 [10:07:17]MH_SAM_APDU [10:07:17]CAPDU: 80 13 00 00 [10:07:17]Write to MH i2c: E2 08 00 AB 29 80 13 00 00 00 00 00 00 50 [10:07:17]Write i2c OK [10:07:17]MH_I2C_Read... [10:07:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:17]Read from MH i2c: E2 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: E2 62 00 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: E2 62 00 AB 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7D 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [10:07:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7D 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:07:17]wFMCommunicate OK [10:07:17]SAM_PROTO_GetFieldsCounters done [10:07:17]requested_item shift.num is exist - process it [10:07:17]requested_item shift.opened is exist - process it [10:07:17]req_shift_opened [10:07:17]FM_GetShiftState [10:07:17]SAM_PROTO_GetShiftState [10:07:17]wFMCommunicate request_size=4 [10:07:17]MH_SAM_APDU [10:07:17]CAPDU: 80 13 01 00 [10:07:17]Write to MH i2c: E2 08 00 AC 29 80 13 01 00 00 00 00 00 52 [10:07:17]Write i2c OK [10:07:17]MH_I2C_Read... [10:07:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:17]Read from MH i2c: E2 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: E2 0E 00 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: E2 0E 00 AC 29 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 61 [10:07:17]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:07:17]wFMCommunicate OK [10:07:17]SAM_PROTO_GetShiftState done [10:07:17]FM_GetShiftState done [10:07:17]req_shift_opened done [10:07:17]requested_item shift.open_date is exist - process it [10:07:17]req_shift_open_date [10:07:17]req_shift_open_date done [10:07:17]produce_requested_data done [10:07:17]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201341,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:07:17]process_action_free close_receipt [10:07:17]json_value_free [10:07:17]json_value_free done [10:07:17]process_json_proto returns [10:07:17]Send response to host [10:07:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201341,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:07:17]free response buf [10:07:17]execute_script done [10:07:17]execute_script returns [10:07:17]free content buf [10:07:17]Sock 9.Close socket [10:07:17]Sock 9.Thread stoped [10:07:21]OFD Sender: No OFD packet to send [10:07:26]OFD Sender: No OFD packet to send [10:07:31]OFD Sender: No OFD packet to send [10:07:36]OFD Sender: No OFD packet to send [10:07:41]OFD Sender: No OFD packet to send [10:07:46]OFD Sender: No OFD packet to send [10:07:51]OFD Sender: No OFD packet to send [10:07:56]OFD Sender: No OFD packet to send [10:08:01]OFD Sender: No OFD packet to send [10:08:06]OFD Sender: No OFD packet to send [10:08:11]OFD Sender: No OFD packet to send [10:08:16]OFD Sender: No OFD packet to send [10:08:21]OFD Sender: No OFD packet to send [10:08:22]accept exits with 7 [10:08:22]New connection [10:08:22]New thread 3067415908 created [10:08:22]Thread 3067559268 joined [10:08:22]Waiting for new connection... [10:08:22] Sock 7.Parse request [10:08:22]Sock 7.Check first char [10:08:22]Sock 7.First char is OK [10:08:22]request: POST /json_proto HTTP/1.0 [10:08:22]Method: POST [10:08:22]URL: /json_proto [10:08:22]Method is POST - this is cgi request [10:08:22]url: /json_proto [10:08:22]query_string will be loaded in cgi processing [10:08:22]execute_cgi json_proto POST (null) [10:08:22]execute_cgi path=json_proto method=POST [10:08:22]POST find Content-Length [10:08:22]Host: 172.17.63.195:8080 [10:08:22]Content-Length: 677 [10:08:22]Content-Type: application/json [10:08:22] [10:08:22]POST finish read [10:08:22]Found Content-Length = 677 [10:08:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:08:22]execute_script... [10:08:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:08:22]POST & json_proto [10:08:22]process_json_proto [10:08:22]json parsed OK: [10:08:22]protocol is kg_v1.0 [10:08:22]action value=close_receipt [10:08:22]process_action close_receipt [10:08:22]cmd_close_receipt [10:08:22]MH_GetDate [10:08:22]Write to MH i2c: F0 00 00 AD 29 C5 [10:08:22]Write i2c OK [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: F0 [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: F0 09 00 [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: F0 09 00 AD 29 00 9A BF 1C 67 68 46 19 67 D8 [10:08:22]GetLastDocTimeStamp 1729937237 [10:08:22]current date 1729937306 [10:08:22]FM_GetShiftState [10:08:22]SAM_PROTO_GetShiftState [10:08:22]wFMCommunicate request_size=4 [10:08:22]MH_SAM_APDU [10:08:22]CAPDU: 80 13 01 00 [10:08:22]Write to MH i2c: E2 08 00 AE 29 80 13 01 00 00 00 00 00 54 [10:08:22]Write i2c OK [10:08:22]MH_I2C_Read... [10:08:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:22]Read from MH i2c: E2 [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: E2 0E 00 [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: E2 0E 00 AE 29 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 63 [10:08:22]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:08:22]wFMCommunicate OK [10:08:22]SAM_PROTO_GetShiftState done [10:08:22]FM_GetShiftState done [10:08:22]opened in 1729900879 [10:08:22]opened+sec_in_day 1729987279 [10:08:22]quantity*price = 50041 [10:08:22]sum+1 = 50042 [10:08:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 104 26.10.2024 10:08 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201342 ФПД: 173473962013133 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100826&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201342&fm=173473962013133&tin=02508201610067®Number=0000000000091777&sum=50000 [10:08:23]StoreToDocumentArchive [10:08:23]shift 543 fd 201342 [10:08:23]save to /storage/0543/doc_00201342 [10:08:23]save last doc name /storage/0543/doc_00201342 to /storage/kkm_last_doc_name [10:08:23]save OK [10:08:23]Clear old archive folders... [10:08:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:08:23]tlvbuf is 017BCE50 [10:08:23]SAM_PROTO_ClearQueue [10:08:23]wFMCommunicate request_size=4 [10:08:23]MH_SAM_APDU [10:08:23]CAPDU: 80 09 00 00 [10:08:23]Write to MH i2c: E2 08 00 BB 29 80 09 00 00 00 00 00 00 56 [10:08:23]Write i2c OK [10:08:23]MH_I2C_Read... [10:08:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:23]Read from MH i2c: E2 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: E2 03 00 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: E2 03 00 BB 29 00 90 00 58 [10:08:23]RAPDU: 90 00 [10:08:23]wFMCommunicate OK [10:08:23]SAM_PROTO_ClearQueue done [10:08:23]KKMCreateOFDPacket [10:08:23]OFDProtocolAddRootSTLVToBuf [10:08:23]FM_MakeSignedData [10:08:23]FM_MakeSignedData [10:08:23]SAM_PROTO_SignData [10:08:23]wFMCommunicate request_size=4 [10:08:23]MH_SAM_APDU [10:08:23]CAPDU: 80 0D 01 02 [10:08:23]Write to MH i2c: E2 08 00 BC 29 80 0D 01 02 00 00 00 00 5E [10:08:23]Write i2c OK [10:08:23]MH_I2C_Read... [10:08:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:23]Read from MH i2c: E2 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: E2 03 00 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: E2 03 00 BC 29 00 90 00 59 [10:08:23]RAPDU: 90 00 [10:08:23]wFMCommunicate OK [10:08:23]wFMCommunicate request_size=255 [10:08:23]MH_SAM_APDU [10:08:23]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 32 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 68 00 00 00 F4 03 04 00 9A BF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7E 12 03 00 35 04 06 00 9D [10:08:23]Write to MH i2c: E2 02 01 BD 29 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 32 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 68 00 00 00 F4 03 04 00 9A BF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7E 12 03 00 35 04 06 00 9D 00 00 87 [10:08:23]Write i2c OK [10:08:23]MH_I2C_Read... [10:08:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:24]Read from MH i2c: E2 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: E2 03 00 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: E2 03 00 BD 29 00 90 00 5A [10:08:24]RAPDU: 90 00 [10:08:24]wFMCommunicate OK [10:08:24]wFMCommunicate request_size=10 [10:08:24]MH_SAM_APDU [10:08:24]CAPDU: 80 0D 02 02 05 C6 0D E2 31 CD [10:08:24]Write to MH i2c: E2 0D 00 BE 29 80 0D 02 02 05 00 C6 0D E2 31 CD 00 00 1E [10:08:24]Write i2c OK [10:08:24]MH_I2C_Read... [10:08:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:24]Read from MH i2c: E2 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: E2 03 00 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: E2 03 00 BE 29 00 90 00 5B [10:08:24]RAPDU: 90 00 [10:08:24]wFMCommunicate OK [10:08:24]wFMCommunicate request_size=4 [10:08:24]MH_SAM_APDU [10:08:24]CAPDU: 80 0D 03 02 [10:08:24]Write to MH i2c: E2 08 00 BF 29 80 0D 03 02 00 00 00 00 63 [10:08:24]Write i2c OK [10:08:24]MH_I2C_Read... [10:08:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:24]Read from MH i2c: E2 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: E2 0B 00 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: E2 0B 00 BF 29 00 C1 21 42 C0 11 EB 9F 42 90 00 25 [10:08:24]RAPDU: C1 21 42 C0 11 EB 9F 42 90 00 [10:08:24]wFMCommunicate OK [10:08:24]SAM_PROTO_SignData done [10:08:24]FM_MakeSignedData done [10:08:24]CreateOFDProtocolMessage [10:08:24]wFMCommunicate request_size=4 [10:08:24]MH_SAM_APDU [10:08:24]CAPDU: 80 11 00 00 [10:08:24]Write to MH i2c: E2 08 00 C0 29 80 11 00 00 00 00 00 00 63 [10:08:24]Write i2c OK [10:08:24]MH_I2C_Read... [10:08:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:24]Read from MH i2c: E2 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: E2 17 00 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: E2 17 00 C0 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B8 [10:08:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:08:24]wFMCommunicate OK [10:08:24]CreateOFDProtocolMessage done [10:08:24]OFDSenderStorePacket 201342 [10:08:24]StoreOFDPacket docnum=201342 [10:08:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1E 6C 07 01 E5 1B 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 32 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 68 00 00 00 F4 03 04 00 9A BF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7E 12 03 00 35 04 06 00 9D C6 0D E2 31 CD C1 21 42 C0 11 EB 9F 42 [10:08:24]CheckFolder [10:08:24]dirname=/storage/ofd_packets [10:08:24]CheckFolder done [10:08:24]ProducePacketName [10:08:24]name=ofd_packets/00201342 [10:08:24]NVStorageSaveData ofd_packets/00201342 [10:08:24]File name is /storage/ofd_packets/00201342 [10:08:24]Write 301 bytes [10:08:24]NVStorageSaveData done [10:08:24]OFDSenderStorePacket done [10:08:24]KKMCreateOFDPacket done [10:08:24]NVStorageSaveData kkm_last_timestamp [10:08:24]File name is /storage/kkm_last_timestamp [10:08:24]Write 4 bytes [10:08:24]NVStorageSaveData done [10:08:24]ExternCall_PrintAddStr [10:08:24]wPrintStart [10:08:24]Write to MH i2c: 01 00 00 C1 29 EA [10:08:24]Write i2c OK [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: 01 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: 01 07 00 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: 01 07 00 C1 29 00 00 00 00 00 FF 0F FF [10:08:24]RasterBufferAndPrint [10:08:24]line Счет N : (1)449090 [10:08:24]line ИНН: 02508201610067 [10:08:24]line Контрольно-Кассовый Чек [10:08:24]line ПРОДАЖА [10:08:24]line ТРК (МРК, ГНК) : 41 [10:08:24]line Товар: 2710124130 [10:08:24]line Аи-92-К-2 [10:08:24]line 7.480 * 66.90 [10:08:24]line = 500.41 [10:08:24]line НДС 12% НСП 1% [10:08:24]line > о реализуемом товаре [10:08:24]line ОКРУГЛЕНИЕ: -0.41 [10:08:24]line ИТОГО: 500.00 [10:08:24]line Внесено: 500.00 [10:08:24]line СДАЧА: 0.00 [10:08:24]line НСП 1% : 4.43 [10:08:24]line НДС 12% : 53.14 [10:08:24]line Наличными: 500.00 [10:08:24]line Безнал.: 0.00 [10:08:24]line Место: АЗС № 171 "Партнер Нефть" [10:08:24]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:08:24]line СНО: Общий режим [10:08:24]line Чек 104 26.10.2024 10:08 [10:08:24]line Смена: 543 ФФД: 1.0 [10:08:24]line ЗНМ: 0300000109 [10:08:24]line РНМ: 0000000000091777 [10:08:24]line Версия ККМ: 001 [10:08:24]line ФМ: 0000000000871756 [10:08:24]line ФД: 201342 [10:08:24]line ФПД: 173473962013133 [10:08:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100826&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201342&fm=173473962013133&tin=02508201610067®Number=0000000000091777&sum=50000 [10:08:24]OFD Sender: Processing packet 201342 [packets to send 112, broken 111] [10:08:24]ProducePacketName [10:08:24]name=ofd_packets/00201342 [10:08:24]OFD Sender: To server: pG, [10:08:24]CommunicateWithHost lk.salyk.kg:30040 [10:08:24]ConnectInit lk.salyk.kg [10:08:24]written 0, free lines is 4095 [10:08:24]Connected sock=10 [10:08:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1E 6C 07 01 E5 1B 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 32 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 68 00 00 00 F4 03 04 00 9A BF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7E 12 03 00 35 04 06 00 9D C6 0D E2 31 CD C1 21 42 C0 11 EB 9F 42 [10:08:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 CB 5D 47 00 8A B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7E 12 03 00 F4 03 04 00 43 6B 1C 67 B6 04 01 00 00 A2 E3 1B AE 1E 67 44 32 [10:08:25]CommunicateWithHost err = 0 [10:08:25]CheckOFDResponse [10:08:25]1017 (14) - 77093643461234 [10:08:25]1041 (16) - 0000000000871756 [10:08:25]1040 (4) - 201342 [10:08:25]1012 (4) - 26.10.2024 04:08 [10:08:25]1206 (1) - 0 [10:08:25]OFD Sender: Remove packet 201342 [10:08:25]ProducePacketName [10:08:25]name=ofd_packets/00201342 [10:08:25]NVStorageDeleteData [10:08:25]Write to MH i2c: 01 00 00 EC 29 15 [10:08:25]Write i2c OK [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: 01 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: 01 07 00 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: 01 07 00 EC 29 00 00 00 00 00 A6 0C CE [10:08:25]RasterBufferAndPrint [10:08:25]line [10:08:25]line [10:08:25]line [10:08:25]line [10:08:25]line [10:08:25]written 0, free lines is 3244 [10:08:25]MH_Cut [10:08:25]Write to MH i2c: D1 01 00 F3 29 01 EE [10:08:25]Write i2c OK [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: D1 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: D1 01 00 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: D1 01 00 F3 29 00 ED [10:08:25]Write to MH i2c: 01 00 00 F4 29 1D [10:08:25]Write i2c OK [10:08:25]MH_I2C_Read... [10:08:25]OFD Sender: No OFD packet to send [10:08:25]*** Cut start [10:08:25]*** Purtial cut [10:08:25]*** Stage 1: CUTSNS_PIN = 1 [10:08:26]Read from MH i2c: 01 [10:08:26]MH_I2C_Read... [10:08:26]*** Stop cut motor [10:08:26]*** Cut end [10:08:26]Read from MH i2c: 01 07 00 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: 01 07 00 F4 29 00 00 00 00 00 FF 0F 32 [10:08:26]process_action close_receipt done [10:08:26]requested_data is exist [10:08:26]produce_requested_data [10:08:26]requested_item fm.sn is exist - process it [10:08:26]wFMCommunicate request_size=4 [10:08:26]MH_SAM_APDU [10:08:26]CAPDU: 80 11 00 00 [10:08:26]Write to MH i2c: E2 08 00 F5 29 80 11 00 00 00 00 00 00 98 [10:08:26]Write i2c OK [10:08:26]MH_I2C_Read... [10:08:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:26]Read from MH i2c: E2 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: E2 17 00 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: E2 17 00 F5 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 ED [10:08:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:08:26]wFMCommunicate OK [10:08:26]requested_item fd.num is exist - process it [10:08:26]SAM_PROTO_GetFieldsCounters [10:08:26]wFMCommunicate request_size=4 [10:08:26]MH_SAM_APDU [10:08:26]CAPDU: 80 13 00 00 [10:08:26]Write to MH i2c: E2 08 00 F6 29 80 13 00 00 00 00 00 00 9B [10:08:26]Write i2c OK [10:08:26]MH_I2C_Read... [10:08:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:26]Read from MH i2c: E2 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: E2 62 00 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: E2 62 00 F6 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7E 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [10:08:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7E 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:08:26]wFMCommunicate OK [10:08:26]SAM_PROTO_GetFieldsCounters done [10:08:26]requested_item shift.num is exist - process it [10:08:26]requested_item shift.opened is exist - process it [10:08:26]req_shift_opened [10:08:26]FM_GetShiftState [10:08:26]SAM_PROTO_GetShiftState [10:08:26]wFMCommunicate request_size=4 [10:08:26]MH_SAM_APDU [10:08:26]CAPDU: 80 13 01 00 [10:08:26]Write to MH i2c: E2 08 00 F7 29 80 13 01 00 00 00 00 00 9D [10:08:26]Write i2c OK [10:08:26]MH_I2C_Read... [10:08:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:26]Read from MH i2c: E2 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: E2 0E 00 [10:08:26]MH_I2C_Read... [10:08:26]Read from MH i2c: E2 0E 00 F7 29 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 AC [10:08:26]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:08:26]wFMCommunicate OK [10:08:26]SAM_PROTO_GetShiftState done [10:08:26]FM_GetShiftState done [10:08:26]req_shift_opened done [10:08:26]requested_item shift.open_date is exist - process it [10:08:26]req_shift_open_date [10:08:26]req_shift_open_date done [10:08:26]produce_requested_data done [10:08:26]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201342,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:08:26]process_action_free close_receipt [10:08:26]json_value_free [10:08:26]json_value_free done [10:08:26]process_json_proto returns [10:08:26]Send response to host [10:08:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201342,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:08:26]free response buf [10:08:26]execute_script done [10:08:26]execute_script returns [10:08:26]free content buf [10:08:26]Sock 7.Close socket [10:08:26]Sock 7.Thread stoped [10:08:30]OFD Sender: No OFD packet to send [10:08:35]OFD Sender: No OFD packet to send [10:08:40]OFD Sender: No OFD packet to send [10:08:45]OFD Sender: No OFD packet to send [10:08:50]OFD Sender: No OFD packet to send [10:08:55]OFD Sender: No OFD packet to send [10:09:00]OFD Sender: No OFD packet to send [10:09:05]OFD Sender: No OFD packet to send [10:09:10]OFD Sender: No OFD packet to send [10:09:15]OFD Sender: No OFD packet to send [10:09:20]OFD Sender: No OFD packet to send [10:09:25]OFD Sender: No OFD packet to send [10:09:30]OFD Sender: No OFD packet to send [10:09:35]OFD Sender: No OFD packet to send [10:09:40]OFD Sender: No OFD packet to send [10:09:45]OFD Sender: No OFD packet to send [10:09:50]OFD Sender: No OFD packet to send [10:09:55]OFD Sender: No OFD packet to send [10:10:00]accept exits with 9 [10:10:00]New connection [10:10:00]New thread 3067559268 created [10:10:00]Thread 3067415908 joined [10:10:00]Waiting for new connection... [10:10:00] Sock 9.Parse request [10:10:00]Sock 9.Check first char [10:10:00]Sock 9.First char is OK [10:10:00]request: POST /json_proto HTTP/1.0 [10:10:00]Method: POST [10:10:00]URL: /json_proto [10:10:00]Method is POST - this is cgi request [10:10:00]url: /json_proto [10:10:00]query_string will be loaded in cgi processing [10:10:00]execute_cgi json_proto POST (null) [10:10:00]execute_cgi path=json_proto method=POST [10:10:00]POST find Content-Length [10:10:00]Host: 172.17.63.195:8080 [10:10:00]Content-Length: 671 [10:10:00]Content-Type: application/json [10:10:00] [10:10:00]POST finish read [10:10:00]Found Content-Length = 671 [10:10:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 11.700, "sum" : 800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:00]execute_script... [10:10: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)449091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 11.700, "sum" : 800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:00]POST & json_proto [10:10:00]process_json_proto [10:10:00]json parsed OK: [10:10:00]protocol is kg_v1.0 [10:10:00]action value=close_receipt [10:10:00]process_action close_receipt [10:10:00]cmd_close_receipt [10:10:00]MH_GetDate [10:10:00]Write to MH i2c: F0 00 00 F8 29 10 [10:10:00]Write i2c OK [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: F0 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: F0 09 00 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: F0 09 00 F8 29 00 FC BF 1C 67 68 46 19 67 85 [10:10:00]GetLastDocTimeStamp 1729937306 [10:10:00]current date 1729937404 [10:10:00]FM_GetShiftState [10:10:00]SAM_PROTO_GetShiftState [10:10:00]wFMCommunicate request_size=4 [10:10:00]MH_SAM_APDU [10:10:00]CAPDU: 80 13 01 00 [10:10:00]Write to MH i2c: E2 08 00 F9 29 80 13 01 00 00 00 00 00 9F [10:10:00]Write i2c OK [10:10:00]MH_I2C_Read... [10:10:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:00]Read from MH i2c: E2 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 0E 00 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 0E 00 F9 29 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 AE [10:10:00]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:10:00]wFMCommunicate OK [10:10:00]SAM_PROTO_GetShiftState done [10:10:00]FM_GetShiftState done [10:10:00]opened in 1729900879 [10:10:00]opened+sec_in_day 1729987279 [10:10:00]quantity*price = 80028 [10:10:00]sum+1 = 80029 [10:10:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 105 26.10.2024 10:10 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201343 ФПД: 168716156773265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101004&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201343&fm=168716156773265&tin=02508201610067®Number=0000000000091777&sum=80000 [10:10:01]StoreToDocumentArchive [10:10:01]shift 543 fd 201343 [10:10:01]save to /storage/0543/doc_00201343 [10:10:01]save last doc name /storage/0543/doc_00201343 to /storage/kkm_last_doc_name [10:10:01]save OK [10:10:01]Clear old archive folders... [10:10:01]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:10:01]tlvbuf is 01713020 [10:10:01]SAM_PROTO_ClearQueue [10:10:01]wFMCommunicate request_size=4 [10:10:01]MH_SAM_APDU [10:10:01]CAPDU: 80 09 00 00 [10:10:01]Write to MH i2c: E2 08 00 06 2A 80 09 00 00 00 00 00 00 A2 [10:10:01]Write i2c OK [10:10:01]MH_I2C_Read... [10:10:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:01]Read from MH i2c: E2 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: E2 03 00 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: E2 03 00 06 2A 00 90 00 A4 [10:10:01]RAPDU: 90 00 [10:10:01]wFMCommunicate OK [10:10:01]SAM_PROTO_ClearQueue done [10:10:01]KKMCreateOFDPacket [10:10:01]OFDProtocolAddRootSTLVToBuf [10:10:01]FM_MakeSignedData [10:10:01]FM_MakeSignedData [10:10:01]SAM_PROTO_SignData [10:10:01]wFMCommunicate request_size=4 [10:10:01]MH_SAM_APDU [10:10:01]CAPDU: 80 0D 01 02 [10:10:01]Write to MH i2c: E2 08 00 07 2A 80 0D 01 02 00 00 00 00 AA [10:10:01]Write i2c OK [10:10:01]MH_I2C_Read... [10:10:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:01]Read from MH i2c: E2 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: E2 03 00 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: E2 03 00 07 2A 00 90 00 A5 [10:10:01]RAPDU: 90 00 [10:10:01]wFMCommunicate OK [10:10:01]wFMCommunicate request_size=255 [10:10:01]MH_SAM_APDU [10:10:01]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 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 FC BF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7F 12 03 00 35 04 06 00 [10:10:01]Write to MH i2c: E2 02 01 08 2A 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 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 FC BF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7F 12 03 00 35 04 06 00 00 00 C8 [10:10:01]Write i2c OK [10:10:01]MH_I2C_Read... [10:10:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:02]Read from MH i2c: E2 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: E2 03 00 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: E2 03 00 08 2A 00 90 00 A6 [10:10:02]RAPDU: 90 00 [10:10:02]wFMCommunicate OK [10:10:02]wFMCommunicate request_size=11 [10:10:02]MH_SAM_APDU [10:10:02]CAPDU: 80 0D 02 02 06 99 72 4A 97 A3 91 [10:10:02]Write to MH i2c: E2 0E 00 09 2A 80 0D 02 02 06 00 99 72 4A 97 A3 91 00 00 D9 [10:10:02]Write i2c OK [10:10:02]MH_I2C_Read... [10:10:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:02]Read from MH i2c: E2 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: E2 03 00 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: E2 03 00 09 2A 00 90 00 A7 [10:10:02]RAPDU: 90 00 [10:10:02]wFMCommunicate OK [10:10:02]wFMCommunicate request_size=4 [10:10:02]MH_SAM_APDU [10:10:02]CAPDU: 80 0D 03 02 [10:10:02]Write to MH i2c: E2 08 00 0A 2A 80 0D 03 02 00 00 00 00 AF [10:10:02]Write i2c OK [10:10:02]MH_I2C_Read... [10:10:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:02]Read from MH i2c: E2 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: E2 0B 00 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: E2 0B 00 0A 2A 00 06 5A 26 73 89 AC 9C 8C 90 00 06 [10:10:02]RAPDU: 06 5A 26 73 89 AC 9C 8C 90 00 [10:10:02]wFMCommunicate OK [10:10:02]SAM_PROTO_SignData done [10:10:02]FM_MakeSignedData done [10:10:02]CreateOFDProtocolMessage [10:10:02]wFMCommunicate request_size=4 [10:10:02]MH_SAM_APDU [10:10:02]CAPDU: 80 11 00 00 [10:10:02]Write to MH i2c: E2 08 00 0B 2A 80 11 00 00 00 00 00 00 AF [10:10:02]Write i2c OK [10:10:02]MH_I2C_Read... [10:10:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:02]Read from MH i2c: E2 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: E2 17 00 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: E2 17 00 0B 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 04 [10:10:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:10:02]wFMCommunicate OK [10:10:02]CreateOFDProtocolMessage done [10:10:02]OFDSenderStorePacket 201343 [10:10:02]StoreOFDPacket docnum=201343 [10:10:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 96 13 08 01 E4 7E 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 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 FC BF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7F 12 03 00 35 04 06 00 99 72 4A 97 A3 91 06 5A 26 73 89 AC 9C 8C [10:10:02]CheckFolder [10:10:02]dirname=/storage/ofd_packets [10:10:02]CheckFolder done [10:10:02]ProducePacketName [10:10:02]name=ofd_packets/00201343 [10:10:02]NVStorageSaveData ofd_packets/00201343 [10:10:02]File name is /storage/ofd_packets/00201343 [10:10:02]Write 302 bytes [10:10:02]NVStorageSaveData done [10:10:02]OFDSenderStorePacket done [10:10:02]KKMCreateOFDPacket done [10:10:02]NVStorageSaveData kkm_last_timestamp [10:10:02]File name is /storage/kkm_last_timestamp [10:10:02]Write 4 bytes [10:10:02]NVStorageSaveData done [10:10:02]ExternCall_PrintAddStr [10:10:02]wPrintStart [10:10:02]Write to MH i2c: 01 00 00 0C 2A 36 [10:10:02]Write i2c OK [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: 01 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: 01 07 00 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: 01 07 00 0C 2A 00 00 00 00 00 FF 0F 4B [10:10:02]RasterBufferAndPrint [10:10:02]line Счет N : (1)449091 [10:10:02]line ИНН: 02508201610067 [10:10:02]line Контрольно-Кассовый Чек [10:10:02]line ПРОДАЖА [10:10:02]line ТРК (МРК, ГНК) : 32 [10:10:02]line Товар: 2710124130 [10:10:02]line SUPER 92-К-5 [10:10:02]line 11.700 * 68.40 [10:10:02]line = 800.28 [10:10:02]line НДС 12% НСП 1% [10:10:02]line > о реализуемом товаре [10:10:02]line ОКРУГЛЕНИЕ: -0.28 [10:10:02]line ИТОГО: 800.00 [10:10:02]line Внесено: 800.00 [10:10:02]line СДАЧА: 0.00 [10:10:02]line НСП 1% : 7.08 [10:10:02]line НДС 12% : 84.98 [10:10:02]line Наличными: 800.00 [10:10:02]line Безнал.: 0.00 [10:10:02]line Место: АЗС № 171 "Партнер Нефть" [10:10:02]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:10:02]line СНО: Общий режим [10:10:02]line Чек 105 26.10.2024 10:10 [10:10:02]line Смена: 543 ФФД: 1.0 [10:10:02]line ЗНМ: 0300000109 [10:10:02]line РНМ: 0000000000091777 [10:10:02]line Версия ККМ: 001 [10:10:02]line ФМ: 0000000000871756 [10:10:02]line ФД: 201343 [10:10:02]line ФПД: 168716156773265 [10:10:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101004&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201343&fm=168716156773265&tin=02508201610067®Number=0000000000091777&sum=80000 [10:10:02]OFD Sender: Processing packet 201343 [packets to send 112, broken 111] [10:10:02]ProducePacketName [10:10:02]name=ofd_packets/00201343 [10:10:02]OFD Sender: To server: pG, [10:10:02]CommunicateWithHost lk.salyk.kg:30040 [10:10:02]ConnectInit lk.salyk.kg [10:10:02]written 0, free lines is 4095 [10:10:02]Connected sock=10 [10:10:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 96 13 08 01 E4 7E 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 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 FC BF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7F 12 03 00 35 04 06 00 99 72 4A 97 A3 91 06 5A 26 73 89 AC 9C 8C [10:10:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 3B 40 47 00 C3 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7F 12 03 00 F4 03 04 00 A5 6B 1C 67 B6 04 01 00 00 E0 42 A2 AA A4 48 C2 E3 [10:10:02]CommunicateWithHost err = 0 [10:10:02]CheckOFDResponse [10:10:02]1017 (14) - 77093643461234 [10:10:02]1041 (16) - 0000000000871756 [10:10:02]1040 (4) - 201343 [10:10:02]1012 (4) - 26.10.2024 04:10 [10:10:02]1206 (1) - 0 [10:10:02]OFD Sender: Remove packet 201343 [10:10:02]ProducePacketName [10:10:02]name=ofd_packets/00201343 [10:10:02]NVStorageDeleteData [10:10:03]Write to MH i2c: 01 00 00 37 2A 61 [10:10:03]Write i2c OK [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: 01 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: 01 07 00 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: 01 07 00 37 2A 00 00 00 00 00 96 0C 0A [10:10:03]RasterBufferAndPrint [10:10:03]line [10:10:03]line [10:10:03]line [10:10:03]line [10:10:03]line [10:10:03]written 0, free lines is 3227 [10:10:03]MH_Cut [10:10:03]Write to MH i2c: D1 01 00 3E 2A 01 3A [10:10:03]Write i2c OK [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: D1 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: D1 01 00 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: D1 01 00 3E 2A 00 39 [10:10:03]Write to MH i2c: 01 00 00 3F 2A 69 [10:10:03]Write i2c OK [10:10:03]MH_I2C_Read... [10:10:03]OFD Sender: No OFD packet to send [10:10:03]*** Cut start [10:10:03]*** Purtial cut [10:10:03]*** Stage 1: CUTSNS_PIN = 1 [10:10:04]Read from MH i2c: 01 [10:10:04]MH_I2C_Read... [10:10:04]*** Stop cut motor [10:10:04]*** Cut end [10:10:04]Read from MH i2c: 01 07 00 [10:10:04]MH_I2C_Read... [10:10:04]Read from MH i2c: 01 07 00 3F 2A 00 00 00 00 00 FF 0F 7E [10:10:04]process_action close_receipt done [10:10:04]requested_data is exist [10:10:04]produce_requested_data [10:10:04]requested_item fm.sn is exist - process it [10:10:04]wFMCommunicate request_size=4 [10:10:04]MH_SAM_APDU [10:10:04]CAPDU: 80 11 00 00 [10:10:04]Write to MH i2c: E2 08 00 40 2A 80 11 00 00 00 00 00 00 E4 [10:10:04]Write i2c OK [10:10:04]MH_I2C_Read... [10:10:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:04]Read from MH i2c: E2 [10:10:04]MH_I2C_Read... [10:10:04]Read from MH i2c: E2 17 00 [10:10:04]MH_I2C_Read... [10:10:04]Read from MH i2c: E2 17 00 40 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 39 [10:10:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:10:04]wFMCommunicate OK [10:10:04]requested_item fd.num is exist - process it [10:10:04]SAM_PROTO_GetFieldsCounters [10:10:04]wFMCommunicate request_size=4 [10:10:04]MH_SAM_APDU [10:10:04]CAPDU: 80 13 00 00 [10:10:04]Write to MH i2c: E2 08 00 41 2A 80 13 00 00 00 00 00 00 E7 [10:10:04]Write i2c OK [10:10:04]MH_I2C_Read... [10:10:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:04]Read from MH i2c: E2 [10:10:04]MH_I2C_Read... [10:10:04]Read from MH i2c: E2 62 00 [10:10:04]MH_I2C_Read... [10:10:04]Read from MH i2c: E2 62 00 41 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7F 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [10:10:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7F 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:04]wFMCommunicate OK [10:10:04]SAM_PROTO_GetFieldsCounters done [10:10:04]requested_item shift.num is exist - process it [10:10:04]requested_item shift.opened is exist - process it [10:10:04]req_shift_opened [10:10:04]FM_GetShiftState [10:10:04]SAM_PROTO_GetShiftState [10:10:04]wFMCommunicate request_size=4 [10:10:04]MH_SAM_APDU [10:10:04]CAPDU: 80 13 01 00 [10:10:04]Write to MH i2c: E2 08 00 42 2A 80 13 01 00 00 00 00 00 E9 [10:10:04]Write i2c OK [10:10:04]MH_I2C_Read... [10:10:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:04]Read from MH i2c: E2 [10:10:04]MH_I2C_Read... [10:10:04]Read from MH i2c: E2 0E 00 [10:10:04]MH_I2C_Read... [10:10:04]Read from MH i2c: E2 0E 00 42 2A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F8 [10:10:04]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:10:04]wFMCommunicate OK [10:10:04]SAM_PROTO_GetShiftState done [10:10:04]FM_GetShiftState done [10:10:04]req_shift_opened done [10:10:04]requested_item shift.open_date is exist - process it [10:10:04]req_shift_open_date [10:10:04]req_shift_open_date done [10:10:04]produce_requested_data done [10:10:04]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201343,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:10:04]process_action_free close_receipt [10:10:04]json_value_free [10:10:04]json_value_free done [10:10:04]process_json_proto returns [10:10:04]Send response to host [10:10:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201343,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:10:04]free response buf [10:10:04]execute_script done [10:10:04]execute_script returns [10:10:04]free content buf [10:10:04]Sock 9.Close socket [10:10:04]Sock 9.Thread stoped [10:10:08]OFD Sender: No OFD packet to send [10:10:13]OFD Sender: No OFD packet to send [10:10:18]OFD Sender: No OFD packet to send [10:10:23]OFD Sender: No OFD packet to send [10:10:28]OFD Sender: No OFD packet to send [10:10:33]OFD Sender: No OFD packet to send [10:10:38]OFD Sender: No OFD packet to send [10:10:43]OFD Sender: No OFD packet to send [10:10:48]OFD Sender: No OFD packet to send [10:10:53]OFD Sender: No OFD packet to send [10:10:58]OFD Sender: No OFD packet to send [10:11:03]OFD Sender: No OFD packet to send [10:11:08]OFD Sender: No OFD packet to send [10:11:13]OFD Sender: No OFD packet to send [10:11:18]OFD Sender: No OFD packet to send [10:11:23]OFD Sender: No OFD packet to send [10:11:28]OFD Sender: No OFD packet to send [10:11:33]OFD Sender: No OFD packet to send [10:11:34]accept exits with 7 [10:11:34]New connection [10:11:34]New thread 3067415908 created [10:11:34]Thread 3067559268 joined [10:11:34]Waiting for new connection... [10:11:34] Sock 7.Parse request [10:11:34]Sock 7.Check first char [10:11:34]Sock 7.First char is OK [10:11:34]request: POST /json_proto HTTP/1.0 [10:11:34]Method: POST [10:11:34]URL: /json_proto [10:11:34]Method is POST - this is cgi request [10:11:34]url: /json_proto [10:11:34]query_string will be loaded in cgi processing [10:11:34]execute_cgi json_proto POST (null) [10:11:34]execute_cgi path=json_proto method=POST [10:11:34]POST find Content-Length [10:11:34]Host: 172.17.63.195:8080 [10:11:34]Content-Length: 678 [10:11:34]Content-Type: application/json [10:11:34] [10:11:34]POST finish read [10:11:34]Found Content-Length = 678 [10:11:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:34]execute_script... [10:11: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)449092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:34]POST & json_proto [10:11:34]process_json_proto [10:11:34]json parsed OK: [10:11:34]protocol is kg_v1.0 [10:11:34]action value=close_receipt [10:11:34]process_action close_receipt [10:11:34]cmd_close_receipt [10:11:34]MH_GetDate [10:11:34]Write to MH i2c: F0 00 00 43 2A 5C [10:11:34]Write i2c OK [10:11:34]MH_I2C_Read... [10:11:34]Read from MH i2c: F0 [10:11:34]MH_I2C_Read... [10:11:34]Read from MH i2c: F0 09 00 [10:11:34]MH_I2C_Read... [10:11:34]Read from MH i2c: F0 09 00 43 2A 00 59 C0 1C 67 68 46 19 67 2F [10:11:34]GetLastDocTimeStamp 1729937404 [10:11:34]current date 1729937497 [10:11:34]FM_GetShiftState [10:11:34]SAM_PROTO_GetShiftState [10:11:34]wFMCommunicate request_size=4 [10:11:34]MH_SAM_APDU [10:11:34]CAPDU: 80 13 01 00 [10:11:34]Write to MH i2c: E2 08 00 44 2A 80 13 01 00 00 00 00 00 EB [10:11:34]Write i2c OK [10:11:34]MH_I2C_Read... [10:11:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:34]Read from MH i2c: E2 [10:11:34]MH_I2C_Read... [10:11:34]Read from MH i2c: E2 0E 00 [10:11:34]MH_I2C_Read... [10:11:34]Read from MH i2c: E2 0E 00 44 2A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 FA [10:11:34]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:11:34]wFMCommunicate OK [10:11:34]SAM_PROTO_GetShiftState done [10:11:34]FM_GetShiftState done [10:11:34]opened in 1729900879 [10:11:34]opened+sec_in_day 1729987279 [10:11:34]quantity*price = 80012 [10:11:34]sum+1 = 80013 [10:11:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 106 26.10.2024 10:11 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201344 ФПД: 243880889217722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101138&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201344&fm=243880889217722&tin=02508201610067®Number=0000000000091777&sum=80000 [10:11:35]StoreToDocumentArchive [10:11:35]shift 543 fd 201344 [10:11:35]save to /storage/0543/doc_00201344 [10:11:35]save last doc name /storage/0543/doc_00201344 to /storage/kkm_last_doc_name [10:11:35]save OK [10:11:35]Clear old archive folders... [10:11:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:11:35]tlvbuf is 017BCA40 [10:11:35]SAM_PROTO_ClearQueue [10:11:35]wFMCommunicate request_size=4 [10:11:35]MH_SAM_APDU [10:11:35]CAPDU: 80 09 00 00 [10:11:35]Write to MH i2c: E2 08 00 51 2A 80 09 00 00 00 00 00 00 ED [10:11:35]Write i2c OK [10:11:35]MH_I2C_Read... [10:11:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:35]Read from MH i2c: E2 [10:11:35]MH_I2C_Read... [10:11:35]Read from MH i2c: E2 03 00 [10:11:35]MH_I2C_Read... [10:11:35]Read from MH i2c: E2 03 00 51 2A 00 90 00 EF [10:11:35]RAPDU: 90 00 [10:11:35]wFMCommunicate OK [10:11:35]SAM_PROTO_ClearQueue done [10:11:35]KKMCreateOFDPacket [10:11:35]OFDProtocolAddRootSTLVToBuf [10:11:35]FM_MakeSignedData [10:11:35]FM_MakeSignedData [10:11:35]SAM_PROTO_SignData [10:11:35]wFMCommunicate request_size=4 [10:11:35]MH_SAM_APDU [10:11:35]CAPDU: 80 0D 01 02 [10:11:35]Write to MH i2c: E2 08 00 52 2A 80 0D 01 02 00 00 00 00 F5 [10:11:35]Write i2c OK [10:11:35]MH_I2C_Read... [10:11:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:35]Read from MH i2c: E2 [10:11:35]MH_I2C_Read... [10:11:35]Read from MH i2c: E2 03 00 [10:11:35]MH_I2C_Read... [10:11:35]Read from MH i2c: E2 03 00 52 2A 00 90 00 F0 [10:11:35]RAPDU: 90 00 [10:11:35]wFMCommunicate OK [10:11:35]wFMCommunicate request_size=255 [10:11:35]MH_SAM_APDU [10:11:35]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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 5A C0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 80 12 03 00 35 04 06 00 DD [10:11:35]Write to MH i2c: E2 02 01 53 2A 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 5A C0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 80 12 03 00 35 04 06 00 DD 00 00 0F [10:11:35]Write i2c OK [10:11:35]MH_I2C_Read... [10:11:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:35]Read from MH i2c: E2 [10:11:35]MH_I2C_Read... [10:11:35]Read from MH i2c: E2 03 00 [10:11:35]MH_I2C_Read... [10:11:35]Read from MH i2c: E2 03 00 53 2A 00 90 00 F1 [10:11:35]RAPDU: 90 00 [10:11:35]wFMCommunicate OK [10:11:35]wFMCommunicate request_size=10 [10:11:35]MH_SAM_APDU [10:11:35]CAPDU: 80 0D 02 02 05 CE F1 C4 F2 BA [10:11:35]Write to MH i2c: E2 0D 00 54 2A 80 0D 02 02 05 00 CE F1 C4 F2 BA 00 00 31 [10:11:35]Write i2c OK [10:11:35]MH_I2C_Read... [10:11:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:35]Read from MH i2c: E2 [10:11:35]MH_I2C_Read... [10:11:35]Read from MH i2c: E2 03 00 [10:11:35]MH_I2C_Read... [10:11:35]Read from MH i2c: E2 03 00 54 2A 00 90 00 F2 [10:11:35]RAPDU: 90 00 [10:11:35]wFMCommunicate OK [10:11:35]wFMCommunicate request_size=4 [10:11:35]MH_SAM_APDU [10:11:35]CAPDU: 80 0D 03 02 [10:11:35]Write to MH i2c: E2 08 00 55 2A 80 0D 03 02 00 00 00 00 FA [10:11:35]Write i2c OK [10:11:35]MH_I2C_Read... [10:11:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:35]Read from MH i2c: E2 [10:11:35]MH_I2C_Read... [10:11:35]Read from MH i2c: E2 0B 00 [10:11:35]MH_I2C_Read... [10:11:35]Read from MH i2c: E2 0B 00 55 2A 00 77 6A 3E 46 65 63 E4 C6 90 00 D2 [10:11:35]RAPDU: 77 6A 3E 46 65 63 E4 C6 90 00 [10:11:35]wFMCommunicate OK [10:11:35]SAM_PROTO_SignData done [10:11:35]FM_MakeSignedData done [10:11:35]CreateOFDProtocolMessage [10:11:35]wFMCommunicate request_size=4 [10:11:35]MH_SAM_APDU [10:11:35]CAPDU: 80 11 00 00 [10:11:35]Write to MH i2c: E2 08 00 56 2A 80 11 00 00 00 00 00 00 FA [10:11:35]Write i2c OK [10:11:35]MH_I2C_Read... [10:11:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:35]Read from MH i2c: E2 [10:11:35]MH_I2C_Read... [10:11:35]Read from MH i2c: E2 17 00 [10:11:35]MH_I2C_Read... [10:11:35]Read from MH i2c: E2 17 00 56 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4F [10:11:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:11:35]wFMCommunicate OK [10:11:35]CreateOFDProtocolMessage done [10:11:35]OFDSenderStorePacket 201344 [10:11:35]StoreOFDPacket docnum=201344 [10:11:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 59 05 07 01 C4 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 5A C0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 80 12 03 00 35 04 06 00 DD CE F1 C4 F2 BA 77 6A 3E 46 65 63 E4 C6 [10:11:35]CheckFolder [10:11:35]dirname=/storage/ofd_packets [10:11:35]CheckFolder done [10:11:35]ProducePacketName [10:11:35]name=ofd_packets/00201344 [10:11:35]NVStorageSaveData ofd_packets/00201344 [10:11:35]File name is /storage/ofd_packets/00201344 [10:11:35]Write 301 bytes [10:11:35]NVStorageSaveData done [10:11:35]OFDSenderStorePacket done [10:11:35]KKMCreateOFDPacket done [10:11:35]NVStorageSaveData kkm_last_timestamp [10:11:35]File name is /storage/kkm_last_timestamp [10:11:35]Write 4 bytes [10:11:35]NVStorageSaveData done [10:11:35]ExternCall_PrintAddStr [10:11:35]wPrintStart [10:11:35]Write to MH i2c: 01 00 00 57 2A 81 [10:11:35]Write i2c OK [10:11:35]MH_I2C_Read... [10:11:35]Read from MH i2c: 01 [10:11:35]MH_I2C_Read... [10:11:35]Read from MH i2c: 01 07 00 [10:11:35]MH_I2C_Read... [10:11:35]Read from MH i2c: 01 07 00 57 2A 00 00 00 00 00 FF 0F 96 [10:11:35]RasterBufferAndPrint [10:11:35]line Счет N : (1)449092 [10:11:35]line ИНН: 02508201610067 [10:11:35]line Контрольно-Кассовый Чек [10:11:35]line ПРОДАЖА [10:11:35]line ТРК (МРК, ГНК) : 41 [10:11:35]line Товар: 2710124130 [10:11:35]line Аи-92-К-2 [10:11:35]line 11.960 * 66.90 [10:11:35]line = 800.12 [10:11:35]line НДС 12% НСП 1% [10:11:35]line > о реализуемом товаре [10:11:35]line ОКРУГЛЕНИЕ: -0.12 [10:11:35]line ИТОГО: 800.00 [10:11:35]line Внесено: 800.00 [10:11:35]line СДАЧА: 0.00 [10:11:35]line НСП 1% : 7.08 [10:11:35]line НДС 12% : 84.97 [10:11:35]line Наличными: 800.00 [10:11:35]line Безнал.: 0.00 [10:11:35]line Место: АЗС № 171 "Партнер Нефть" [10:11:35]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:11:35]line СНО: Общий режим [10:11:35]line Чек 106 26.10.2024 10:11 [10:11:35]line Смена: 543 ФФД: 1.0 [10:11:35]line ЗНМ: 0300000109 [10:11:35]line РНМ: 0000000000091777 [10:11:35]line Версия ККМ: 001 [10:11:35]line ФМ: 0000000000871756 [10:11:35]line ФД: 201344 [10:11:35]line ФПД: 243880889217722 [10:11:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101138&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201344&fm=243880889217722&tin=02508201610067®Number=0000000000091777&sum=80000 [10:11:36]OFD Sender: Processing packet 201344 [packets to send 112, broken 111] [10:11:36]ProducePacketName [10:11:36]name=ofd_packets/00201344 [10:11:36]OFD Sender: To server: pG, [10:11:36]CommunicateWithHost lk.salyk.kg:30040 [10:11:36]ConnectInit lk.salyk.kg [10:11:36]written 0, free lines is 4095 [10:11:36]Connected sock=10 [10:11:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 59 05 07 01 C4 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 5A C0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 80 12 03 00 35 04 06 00 DD CE F1 C4 F2 BA 77 6A 3E 46 65 63 E4 C6 [10:11:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 AF 96 47 00 A8 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 80 12 03 00 F4 03 04 00 03 6C 1C 67 B6 04 01 00 00 14 B8 4A 91 39 84 AE F6 [10:11:36]CommunicateWithHost err = 0 [10:11:36]CheckOFDResponse [10:11:36]1017 (14) - 77093643461234 [10:11:36]1041 (16) - 0000000000871756 [10:11:36]1040 (4) - 201344 [10:11:36]1012 (4) - 26.10.2024 04:11 [10:11:36]1206 (1) - 0 [10:11:36]OFD Sender: Remove packet 201344 [10:11:36]ProducePacketName [10:11:36]name=ofd_packets/00201344 [10:11:36]NVStorageDeleteData [10:11:36]Write to MH i2c: 01 00 00 82 2A AC [10:11:36]Write i2c OK [10:11:36]MH_I2C_Read... [10:11:36]Read from MH i2c: 01 [10:11:36]MH_I2C_Read... [10:11:36]Read from MH i2c: 01 07 00 [10:11:36]MH_I2C_Read... [10:11:36]Read from MH i2c: 01 07 00 82 2A 00 00 00 00 00 AC 0C 6B [10:11:36]RasterBufferAndPrint [10:11:36]line [10:11:36]line [10:11:36]line [10:11:36]line [10:11:36]line [10:11:36]written 0, free lines is 3251 [10:11:36]MH_Cut [10:11:36]Write to MH i2c: D1 01 00 89 2A 01 85 [10:11:36]Write i2c OK [10:11:36]MH_I2C_Read... [10:11:36]Read from MH i2c: D1 [10:11:36]MH_I2C_Read... [10:11:36]Read from MH i2c: D1 01 00 [10:11:36]MH_I2C_Read... [10:11:36]Read from MH i2c: D1 01 00 89 2A 00 84 [10:11:36]Write to MH i2c: 01 00 00 8A 2A B4 [10:11:36]Write i2c OK [10:11:36]MH_I2C_Read... [10:11:37]OFD Sender: No OFD packet to send [10:11:37]*** Cut start [10:11:37]*** Purtial cut [10:11:37]*** CUTSNS_PIN = 0 [10:11:37]*** Stage 1: CUTSNS_PIN = 1 [10:11:39]Read from MH i2c: 01 [10:11:39]MH_I2C_Read... [10:11:39]*** Stop cut motor [10:11:39]*** Cut end [10:11:39]Read from MH i2c: 01 07 00 [10:11:39]MH_I2C_Read... [10:11:39]Read from MH i2c: 01 07 00 8A 2A 00 00 00 00 00 FF 0F C9 [10:11:39]process_action close_receipt done [10:11:39]requested_data is exist [10:11:39]produce_requested_data [10:11:39]requested_item fm.sn is exist - process it [10:11:39]wFMCommunicate request_size=4 [10:11:39]MH_SAM_APDU [10:11:39]CAPDU: 80 11 00 00 [10:11:39]Write to MH i2c: E2 08 00 8B 2A 80 11 00 00 00 00 00 00 2F [10:11:39]Write i2c OK [10:11:39]MH_I2C_Read... [10:11:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:39]Read from MH i2c: E2 [10:11:39]MH_I2C_Read... [10:11:39]Read from MH i2c: E2 17 00 [10:11:39]MH_I2C_Read... [10:11:39]Read from MH i2c: E2 17 00 8B 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 84 [10:11:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:11:39]wFMCommunicate OK [10:11:39]requested_item fd.num is exist - process it [10:11:39]SAM_PROTO_GetFieldsCounters [10:11:39]wFMCommunicate request_size=4 [10:11:39]MH_SAM_APDU [10:11:39]CAPDU: 80 13 00 00 [10:11:39]Write to MH i2c: E2 08 00 8C 2A 80 13 00 00 00 00 00 00 32 [10:11:39]Write i2c OK [10:11:39]MH_I2C_Read... [10:11:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:39]Read from MH i2c: E2 [10:11:39]MH_I2C_Read... [10:11:39]Read from MH i2c: E2 62 00 [10:11:39]MH_I2C_Read... [10:11:39]Read from MH i2c: E2 62 00 8C 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 80 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [10:11:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 80 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:11:39]wFMCommunicate OK [10:11:39]SAM_PROTO_GetFieldsCounters done [10:11:39]requested_item shift.num is exist - process it [10:11:39]requested_item shift.opened is exist - process it [10:11:39]req_shift_opened [10:11:39]FM_GetShiftState [10:11:39]SAM_PROTO_GetShiftState [10:11:39]wFMCommunicate request_size=4 [10:11:39]MH_SAM_APDU [10:11:39]CAPDU: 80 13 01 00 [10:11:39]Write to MH i2c: E2 08 00 8D 2A 80 13 01 00 00 00 00 00 34 [10:11:39]Write i2c OK [10:11:39]MH_I2C_Read... [10:11:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:39]Read from MH i2c: E2 [10:11:39]MH_I2C_Read... [10:11:39]Read from MH i2c: E2 0E 00 [10:11:39]MH_I2C_Read... [10:11:39]Read from MH i2c: E2 0E 00 8D 2A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 43 [10:11:39]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:11:39]wFMCommunicate OK [10:11:39]SAM_PROTO_GetShiftState done [10:11:39]FM_GetShiftState done [10:11:39]req_shift_opened done [10:11:39]requested_item shift.open_date is exist - process it [10:11:39]req_shift_open_date [10:11:39]req_shift_open_date done [10:11:39]produce_requested_data done [10:11:39]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201344,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:11:39]process_action_free close_receipt [10:11:39]json_value_free [10:11:39]json_value_free done [10:11:39]process_json_proto returns [10:11:39]Send response to host [10:11:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201344,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:11:39]free response buf [10:11:39]execute_script done [10:11:39]execute_script returns [10:11:39]free content buf [10:11:39]Sock 7.Close socket [10:11:39]Sock 7.Thread stoped [10:11:42]OFD Sender: No OFD packet to send [10:11:47]OFD Sender: No OFD packet to send [10:11:52]OFD Sender: No OFD packet to send [10:11:57]OFD Sender: No OFD packet to send [10:12:02]OFD Sender: No OFD packet to send [10:12:05]accept exits with 9 [10:12:05]New connection [10:12:05]New thread 3067559268 created [10:12:05]Thread 3067415908 joined [10:12:05]Waiting for new connection... [10:12:05] Sock 9.Parse request [10:12:05]Sock 9.Check first char [10:12:05]Sock 9.First char is OK [10:12:05]request: POST /json_proto HTTP/1.0 [10:12:05]Method: POST [10:12:05]URL: /json_proto [10:12:05]Method is POST - this is cgi request [10:12:05]url: /json_proto [10:12:05]query_string will be loaded in cgi processing [10:12:05]execute_cgi json_proto POST (null) [10:12:05]execute_cgi path=json_proto method=POST [10:12:05]POST find Content-Length [10:12:05]Host: 172.17.63.195:8080 [10:12:05]Content-Length: 670 [10:12:05]Content-Type: application/json [10:12:05] [10:12:05]POST finish read [10:12:05]Found Content-Length = 670 [10:12:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 2.930, "sum" : 200.41, "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" ] } } [10:12:05]execute_script... [10:12: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)449093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 2.930, "sum" : 200.41, "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" ] } } [10:12:05]POST & json_proto [10:12:05]process_json_proto [10:12:05]json parsed OK: [10:12:05]protocol is kg_v1.0 [10:12:05]action value=close_receipt [10:12:05]process_action close_receipt [10:12:05]cmd_close_receipt [10:12:05]MH_GetDate [10:12:05]Write to MH i2c: F0 00 00 8E 2A A7 [10:12:05]Write i2c OK [10:12:05]MH_I2C_Read... [10:12:05]Read from MH i2c: F0 [10:12:05]MH_I2C_Read... [10:12:05]Read from MH i2c: F0 09 00 [10:12:05]MH_I2C_Read... [10:12:05]Read from MH i2c: F0 09 00 8E 2A 00 79 C0 1C 67 68 46 19 67 9A [10:12:05]GetLastDocTimeStamp 1729937498 [10:12:05]current date 1729937529 [10:12:05]FM_GetShiftState [10:12:05]SAM_PROTO_GetShiftState [10:12:05]wFMCommunicate request_size=4 [10:12:05]MH_SAM_APDU [10:12:05]CAPDU: 80 13 01 00 [10:12:05]Write to MH i2c: E2 08 00 8F 2A 80 13 01 00 00 00 00 00 36 [10:12:05]Write i2c OK [10:12:05]MH_I2C_Read... [10:12:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:05]Read from MH i2c: E2 [10:12:05]MH_I2C_Read... [10:12:05]Read from MH i2c: E2 0E 00 [10:12:05]MH_I2C_Read... [10:12:05]Read from MH i2c: E2 0E 00 8F 2A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 45 [10:12:05]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:12:05]wFMCommunicate OK [10:12:05]SAM_PROTO_GetShiftState done [10:12:05]FM_GetShiftState done [10:12:05]opened in 1729900879 [10:12:05]opened+sec_in_day 1729987279 [10:12:05]quantity*price = 20041 [10:12:05]sum+1 = 20042 [10:12:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 107 26.10.2024 10:12 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201345 ФПД: 597263412009 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101209&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201345&fm=597263412009&tin=02508201610067®Number=0000000000091777&sum=20000 [10:12:06]StoreToDocumentArchive [10:12:06]shift 543 fd 201345 [10:12:06]save to /storage/0543/doc_00201345 [10:12:06]save last doc name /storage/0543/doc_00201345 to /storage/kkm_last_doc_name [10:12:06]save OK [10:12:06]Clear old archive folders... [10:12:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:12:06]tlvbuf is 01706A20 [10:12:06]SAM_PROTO_ClearQueue [10:12:06]wFMCommunicate request_size=4 [10:12:06]MH_SAM_APDU [10:12:06]CAPDU: 80 09 00 00 [10:12:06]Write to MH i2c: E2 08 00 9C 2A 80 09 00 00 00 00 00 00 38 [10:12:06]Write i2c OK [10:12:06]MH_I2C_Read... [10:12:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:06]Read from MH i2c: E2 [10:12:06]MH_I2C_Read... [10:12:06]Read from MH i2c: E2 03 00 [10:12:06]MH_I2C_Read... [10:12:06]Read from MH i2c: E2 03 00 9C 2A 00 90 00 3A [10:12:06]RAPDU: 90 00 [10:12:06]wFMCommunicate OK [10:12:06]SAM_PROTO_ClearQueue done [10:12:06]KKMCreateOFDPacket [10:12:06]OFDProtocolAddRootSTLVToBuf [10:12:06]FM_MakeSignedData [10:12:06]FM_MakeSignedData [10:12:06]SAM_PROTO_SignData [10:12:06]wFMCommunicate request_size=4 [10:12:06]MH_SAM_APDU [10:12:06]CAPDU: 80 0D 01 02 [10:12:06]Write to MH i2c: E2 08 00 9D 2A 80 0D 01 02 00 00 00 00 40 [10:12:06]Write i2c OK [10:12:06]MH_I2C_Read... [10:12:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:06]Read from MH i2c: E2 [10:12:06]MH_I2C_Read... [10:12:06]Read from MH i2c: E2 03 00 [10:12:06]MH_I2C_Read... [10:12:06]Read from MH i2c: E2 03 00 9D 2A 00 90 00 3B [10:12:06]RAPDU: 90 00 [10:12:06]wFMCommunicate OK [10:12:06]wFMCommunicate request_size=255 [10:12:06]MH_SAM_APDU [10:12: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 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 49 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 50 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 6B 00 00 00 F4 03 04 00 79 C0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 81 12 03 00 35 04 06 00 [10:12:06]Write to MH i2c: E2 02 01 9E 2A 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 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 49 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 50 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 6B 00 00 00 F4 03 04 00 79 C0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 81 12 03 00 35 04 06 00 00 00 98 [10:12:06]Write i2c OK [10:12:06]MH_I2C_Read... [10:12:07]OFD Sender: No OFD packet to send [10:12:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:07]Read from MH i2c: E2 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: E2 03 00 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: E2 03 00 9E 2A 00 90 00 3C [10:12:07]RAPDU: 90 00 [10:12:07]wFMCommunicate OK [10:12:07]wFMCommunicate request_size=11 [10:12:07]MH_SAM_APDU [10:12:07]CAPDU: 80 0D 02 02 06 00 8B 0F AC 6B 29 [10:12:07]Write to MH i2c: E2 0E 00 9F 2A 80 0D 02 02 06 00 00 8B 0F AC 6B 29 00 00 29 [10:12:07]Write i2c OK [10:12:07]MH_I2C_Read... [10:12:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:07]Read from MH i2c: E2 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: E2 03 00 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: E2 03 00 9F 2A 00 90 00 3D [10:12:07]RAPDU: 90 00 [10:12:07]wFMCommunicate OK [10:12:07]wFMCommunicate request_size=4 [10:12:07]MH_SAM_APDU [10:12:07]CAPDU: 80 0D 03 02 [10:12:07]Write to MH i2c: E2 08 00 A0 2A 80 0D 03 02 00 00 00 00 45 [10:12:07]Write i2c OK [10:12:07]MH_I2C_Read... [10:12:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:07]Read from MH i2c: E2 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: E2 0B 00 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: E2 0B 00 A0 2A 00 99 03 DE EC D7 EA B8 57 90 00 7C [10:12:07]RAPDU: 99 03 DE EC D7 EA B8 57 90 00 [10:12:07]wFMCommunicate OK [10:12:07]SAM_PROTO_SignData done [10:12:07]FM_MakeSignedData done [10:12:07]CreateOFDProtocolMessage [10:12:07]wFMCommunicate request_size=4 [10:12:07]MH_SAM_APDU [10:12:07]CAPDU: 80 11 00 00 [10:12:07]Write to MH i2c: E2 08 00 A1 2A 80 11 00 00 00 00 00 00 45 [10:12:07]Write i2c OK [10:12:07]MH_I2C_Read... [10:12:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:07]Read from MH i2c: E2 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: E2 17 00 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: E2 17 00 A1 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9A [10:12:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:12:07]wFMCommunicate OK [10:12:07]CreateOFDProtocolMessage done [10:12:07]OFDSenderStorePacket 201345 [10:12:07]StoreOFDPacket docnum=201345 [10:12:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 01 B1 08 01 5D 79 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 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 49 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 50 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 6B 00 00 00 F4 03 04 00 79 C0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 81 12 03 00 35 04 06 00 00 8B 0F AC 6B 29 99 03 DE EC D7 EA B8 57 [10:12:07]CheckFolder [10:12:07]dirname=/storage/ofd_packets [10:12:07]CheckFolder done [10:12:07]ProducePacketName [10:12:07]name=ofd_packets/00201345 [10:12:07]NVStorageSaveData ofd_packets/00201345 [10:12:07]File name is /storage/ofd_packets/00201345 [10:12:07]Write 302 bytes [10:12:07]NVStorageSaveData done [10:12:07]OFDSenderStorePacket done [10:12:07]KKMCreateOFDPacket done [10:12:07]NVStorageSaveData kkm_last_timestamp [10:12:07]File name is /storage/kkm_last_timestamp [10:12:07]Write 4 bytes [10:12:07]NVStorageSaveData done [10:12:07]ExternCall_PrintAddStr [10:12:07]wPrintStart [10:12:07]Write to MH i2c: 01 00 00 A2 2A CC [10:12:07]Write i2c OK [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: 01 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: 01 07 00 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: 01 07 00 A2 2A 00 00 00 00 00 FF 0F E1 [10:12:07]RasterBufferAndPrint [10:12:07]line Счет N : (1)449093 [10:12:07]line ИНН: 02508201610067 [10:12:07]line Контрольно-Кассовый Чек [10:12:07]line ПРОДАЖА [10:12:07]line ТРК (МРК, ГНК) : 63 [10:12:07]line Товар: 2710124130 [10:12:07]line SUPER 92-К-5 [10:12:07]line 2.930 * 68.40 [10:12:07]line = 200.41 [10:12:07]line НДС 12% НСП 1% [10:12:07]line > о реализуемом товаре [10:12:07]line ОКРУГЛЕНИЕ: -0.41 [10:12:07]line ИТОГО: 200.00 [10:12:07]line Внесено: 200.00 [10:12:07]line СДАЧА: 0.00 [10:12:07]line НСП 1% : 1.77 [10:12:07]line НДС 12% : 21.28 [10:12:07]line Наличными: 200.00 [10:12:07]line Безнал.: 0.00 [10:12:07]line Место: АЗС № 171 "Партнер Нефть" [10:12:07]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:12:07]line СНО: Общий режим [10:12:07]line Чек 107 26.10.2024 10:12 [10:12:07]line Смена: 543 ФФД: 1.0 [10:12:07]line ЗНМ: 0300000109 [10:12:07]line РНМ: 0000000000091777 [10:12:07]line Версия ККМ: 001 [10:12:07]line ФМ: 0000000000871756 [10:12:07]line ФД: 201345 [10:12:07]line ФПД: 597263412009 [10:12:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101209&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201345&fm=597263412009&tin=02508201610067®Number=0000000000091777&sum=20000 [10:12:07]OFD Sender: Processing packet 201345 [packets to send 112, broken 111] [10:12:07]ProducePacketName [10:12:07]name=ofd_packets/00201345 [10:12:07]OFD Sender: To server: pG, [10:12:07]CommunicateWithHost lk.salyk.kg:30040 [10:12:07]ConnectInit lk.salyk.kg [10:12:07]written 0, free lines is 4095 [10:12:07]Connected sock=10 [10:12:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 01 B1 08 01 5D 79 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 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 49 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 50 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 6B 00 00 00 F4 03 04 00 79 C0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 81 12 03 00 35 04 06 00 00 8B 0F AC 6B 29 99 03 DE EC D7 EA B8 57 [10:12:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B9 E6 47 00 8E 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 81 12 03 00 F4 03 04 00 22 6C 1C 67 B6 04 01 00 00 E7 E9 57 CC 72 19 E4 06 [10:12:08]CommunicateWithHost err = 0 [10:12:08]CheckOFDResponse [10:12:08]1017 (14) - 77093643461234 [10:12:08]1041 (16) - 0000000000871756 [10:12:08]1040 (4) - 201345 [10:12:08]1012 (4) - 26.10.2024 04:12 [10:12:08]1206 (1) - 0 [10:12:08]OFD Sender: Remove packet 201345 [10:12:08]ProducePacketName [10:12:08]name=ofd_packets/00201345 [10:12:08]NVStorageDeleteData [10:12:08]Write to MH i2c: 01 00 00 CD 2A F7 [10:12:08]Write i2c OK [10:12:08]MH_I2C_Read... [10:12:08]Read from MH i2c: 01 [10:12:08]MH_I2C_Read... [10:12:08]Read from MH i2c: 01 07 00 [10:12:08]MH_I2C_Read... [10:12:08]Read from MH i2c: 01 07 00 CD 2A 00 00 00 00 00 A0 0C AA [10:12:08]RasterBufferAndPrint [10:12:08]line [10:12:08]line [10:12:08]line [10:12:08]line [10:12:08]line [10:12:08]written 0, free lines is 3238 [10:12:08]MH_Cut [10:12:08]Write to MH i2c: D1 01 00 D4 2A 01 D0 [10:12:08]Write i2c OK [10:12:08]MH_I2C_Read... [10:12:08]Read from MH i2c: D1 [10:12:08]MH_I2C_Read... [10:12:08]Read from MH i2c: D1 01 00 [10:12:08]MH_I2C_Read... [10:12:08]Read from MH i2c: D1 01 00 D4 2A 00 CF [10:12:08]Write to MH i2c: 01 00 00 D5 2A FF [10:12:08]Write i2c OK [10:12:08]MH_I2C_Read... [10:12:08]OFD Sender: No OFD packet to send [10:12:09]*** Cut start [10:12:09]*** Purtial cut [10:12:09]*** Stage 1: CUTSNS_PIN = 1 [10:12:09]Read from MH i2c: 01 [10:12:09]MH_I2C_Read... [10:12:09]*** Stop cut motor [10:12:09]*** Cut end [10:12:09]Read from MH i2c: 01 07 00 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: 01 07 00 D5 2A 00 00 00 00 00 FF 0F 14 [10:12:09]process_action close_receipt done [10:12:09]requested_data is exist [10:12:09]produce_requested_data [10:12:09]requested_item fm.sn is exist - process it [10:12:09]wFMCommunicate request_size=4 [10:12:09]MH_SAM_APDU [10:12:09]CAPDU: 80 11 00 00 [10:12:09]Write to MH i2c: E2 08 00 D6 2A 80 11 00 00 00 00 00 00 7A [10:12:09]Write i2c OK [10:12:09]MH_I2C_Read... [10:12:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:09]Read from MH i2c: E2 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 17 00 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 17 00 D6 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CF [10:12:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:12:09]wFMCommunicate OK [10:12:09]requested_item fd.num is exist - process it [10:12:09]SAM_PROTO_GetFieldsCounters [10:12:09]wFMCommunicate request_size=4 [10:12:09]MH_SAM_APDU [10:12:09]CAPDU: 80 13 00 00 [10:12:09]Write to MH i2c: E2 08 00 D7 2A 80 13 00 00 00 00 00 00 7D [10:12:09]Write i2c OK [10:12:09]MH_I2C_Read... [10:12:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:09]Read from MH i2c: E2 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 62 00 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 62 00 D7 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 81 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [10:12:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 81 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:12:09]wFMCommunicate OK [10:12:09]SAM_PROTO_GetFieldsCounters done [10:12:09]requested_item shift.num is exist - process it [10:12:09]requested_item shift.opened is exist - process it [10:12:09]req_shift_opened [10:12:09]FM_GetShiftState [10:12:09]SAM_PROTO_GetShiftState [10:12:09]wFMCommunicate request_size=4 [10:12:09]MH_SAM_APDU [10:12:09]CAPDU: 80 13 01 00 [10:12:09]Write to MH i2c: E2 08 00 D8 2A 80 13 01 00 00 00 00 00 7F [10:12:09]Write i2c OK [10:12:09]MH_I2C_Read... [10:12:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:09]Read from MH i2c: E2 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 0E 00 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 0E 00 D8 2A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 8E [10:12:09]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:12:09]wFMCommunicate OK [10:12:09]SAM_PROTO_GetShiftState done [10:12:09]FM_GetShiftState done [10:12:09]req_shift_opened done [10:12:09]requested_item shift.open_date is exist - process it [10:12:09]req_shift_open_date [10:12:09]req_shift_open_date done [10:12:09]produce_requested_data done [10:12:09]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201345,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:12:09]process_action_free close_receipt [10:12:09]json_value_free [10:12:09]json_value_free done [10:12:09]process_json_proto returns [10:12:09]Send response to host [10:12:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201345,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:12:09]free response buf [10:12:09]execute_script done [10:12:09]execute_script returns [10:12:09]free content buf [10:12:09]Sock 9.Close socket [10:12:09]Sock 9.Thread stoped [10:12:13]OFD Sender: No OFD packet to send [10:12:18]OFD Sender: No OFD packet to send [10:12:23]OFD Sender: No OFD packet to send [10:12:28]OFD Sender: No OFD packet to send [10:12:29]accept exits with 7 [10:12:29]New connection [10:12:29]New thread 3067415908 created [10:12:29]Thread 3067559268 joined [10:12:29]Waiting for new connection... [10:12:29] Sock 7.Parse request [10:12:29]Sock 7.Check first char [10:12:29]Sock 7.First char is OK [10:12:29]request: POST /json_proto HTTP/1.0 [10:12:29]Method: POST [10:12:29]URL: /json_proto [10:12:29]Method is POST - this is cgi request [10:12:29]url: /json_proto [10:12:29]query_string will be loaded in cgi processing [10:12:29]execute_cgi json_proto POST (null) [10:12:29]execute_cgi path=json_proto method=POST [10:12:29]POST find Content-Length [10:12:29]Host: 172.17.63.195:8080 [10:12:29]Content-Length: 677 [10:12:29]Content-Type: application/json [10:12:29] [10:12:29]POST finish read [10:12:29]Found Content-Length = 677 [10:12:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:12:29]execute_script... [10:12: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)449094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:12:29]POST & json_proto [10:12:29]process_json_proto [10:12:29]json parsed OK: [10:12:29]protocol is kg_v1.0 [10:12:29]action value=close_receipt [10:12:29]process_action close_receipt [10:12:29]cmd_close_receipt [10:12:29]MH_GetDate [10:12:29]Write to MH i2c: F0 00 00 D9 2A F2 [10:12:29]Write i2c OK [10:12:29]MH_I2C_Read... [10:12:29]Read from MH i2c: F0 [10:12:29]MH_I2C_Read... [10:12:29]Read from MH i2c: F0 09 00 [10:12:29]MH_I2C_Read... [10:12:29]Read from MH i2c: F0 09 00 D9 2A 00 91 C0 1C 67 68 46 19 67 FD [10:12:29]GetLastDocTimeStamp 1729937529 [10:12:29]current date 1729937553 [10:12:29]FM_GetShiftState [10:12:29]SAM_PROTO_GetShiftState [10:12:29]wFMCommunicate request_size=4 [10:12:29]MH_SAM_APDU [10:12:29]CAPDU: 80 13 01 00 [10:12:29]Write to MH i2c: E2 08 00 DA 2A 80 13 01 00 00 00 00 00 81 [10:12:29]Write i2c OK [10:12:29]MH_I2C_Read... [10:12:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:29]Read from MH i2c: E2 [10:12:29]MH_I2C_Read... [10:12:29]Read from MH i2c: E2 0E 00 [10:12:29]MH_I2C_Read... [10:12:29]Read from MH i2c: E2 0E 00 DA 2A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 90 [10:12:29]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:12:29]wFMCommunicate OK [10:12:29]SAM_PROTO_GetShiftState done [10:12:29]FM_GetShiftState done [10:12:29]opened in 1729900879 [10:12:29]opened+sec_in_day 1729987279 [10:12:29]quantity*price = 50041 [10:12:29]sum+1 = 50042 [10:12:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 108 26.10.2024 10:12 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201346 ФПД: 125706919596710 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101233&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201346&fm=125706919596710&tin=02508201610067®Number=0000000000091777&sum=50000 [10:12:30]StoreToDocumentArchive [10:12:30]shift 543 fd 201346 [10:12:30]save to /storage/0543/doc_00201346 [10:12:30]save last doc name /storage/0543/doc_00201346 to /storage/kkm_last_doc_name [10:12:31]save OK [10:12:31]Clear old archive folders... [10:12:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:31]tlvbuf is 01765600 [10:12:31]SAM_PROTO_ClearQueue [10:12:31]wFMCommunicate request_size=4 [10:12:31]MH_SAM_APDU [10:12:31]CAPDU: 80 09 00 00 [10:12:31]Write to MH i2c: E2 08 00 E7 2A 80 09 00 00 00 00 00 00 83 [10:12:31]Write i2c OK [10:12:31]MH_I2C_Read... [10:12:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:31]Read from MH i2c: E2 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: E2 03 00 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: E2 03 00 E7 2A 00 90 00 85 [10:12:31]RAPDU: 90 00 [10:12:31]wFMCommunicate OK [10:12:31]SAM_PROTO_ClearQueue done [10:12:31]KKMCreateOFDPacket [10:12:31]OFDProtocolAddRootSTLVToBuf [10:12:31]FM_MakeSignedData [10:12:31]FM_MakeSignedData [10:12:31]SAM_PROTO_SignData [10:12:31]wFMCommunicate request_size=4 [10:12:31]MH_SAM_APDU [10:12:31]CAPDU: 80 0D 01 02 [10:12:31]Write to MH i2c: E2 08 00 E8 2A 80 0D 01 02 00 00 00 00 8B [10:12:31]Write i2c OK [10:12:31]MH_I2C_Read... [10:12:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:31]Read from MH i2c: E2 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: E2 03 00 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: E2 03 00 E8 2A 00 90 00 86 [10:12:31]RAPDU: 90 00 [10:12:31]wFMCommunicate OK [10:12:31]wFMCommunicate request_size=255 [10:12:31]MH_SAM_APDU [10:12: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 32 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 6C 00 00 00 F4 03 04 00 91 C0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 82 12 03 00 35 04 06 00 72 [10:12:31]Write to MH i2c: E2 02 01 E9 2A 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 32 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 6C 00 00 00 F4 03 04 00 91 C0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 82 12 03 00 35 04 06 00 72 00 00 89 [10:12:31]Write i2c OK [10:12:31]MH_I2C_Read... [10:12:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:31]Read from MH i2c: E2 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: E2 03 00 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: E2 03 00 E9 2A 00 90 00 87 [10:12:31]RAPDU: 90 00 [10:12:31]wFMCommunicate OK [10:12:31]wFMCommunicate request_size=10 [10:12:31]MH_SAM_APDU [10:12:31]CAPDU: 80 0D 02 02 05 54 6C 49 D2 A6 [10:12:31]Write to MH i2c: E2 0D 00 EA 2A 80 0D 02 02 05 00 54 6C 49 D2 A6 00 00 19 [10:12:31]Write i2c OK [10:12:31]MH_I2C_Read... [10:12:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:31]Read from MH i2c: E2 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: E2 03 00 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: E2 03 00 EA 2A 00 90 00 88 [10:12:31]RAPDU: 90 00 [10:12:31]wFMCommunicate OK [10:12:31]wFMCommunicate request_size=4 [10:12:31]MH_SAM_APDU [10:12:31]CAPDU: 80 0D 03 02 [10:12:31]Write to MH i2c: E2 08 00 EB 2A 80 0D 03 02 00 00 00 00 90 [10:12:31]Write i2c OK [10:12:31]MH_I2C_Read... [10:12:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:31]Read from MH i2c: E2 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: E2 0B 00 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: E2 0B 00 EB 2A 00 02 71 6F 5D 2D C8 67 41 90 00 6D [10:12:31]RAPDU: 02 71 6F 5D 2D C8 67 41 90 00 [10:12:31]wFMCommunicate OK [10:12:31]SAM_PROTO_SignData done [10:12:31]FM_MakeSignedData done [10:12:31]CreateOFDProtocolMessage [10:12:31]wFMCommunicate request_size=4 [10:12:31]MH_SAM_APDU [10:12:31]CAPDU: 80 11 00 00 [10:12:31]Write to MH i2c: E2 08 00 EC 2A 80 11 00 00 00 00 00 00 90 [10:12:31]Write i2c OK [10:12:31]MH_I2C_Read... [10:12:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:31]Read from MH i2c: E2 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: E2 17 00 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: E2 17 00 EC 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E5 [10:12:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:12:31]wFMCommunicate OK [10:12:31]CreateOFDProtocolMessage done [10:12:31]OFDSenderStorePacket 201346 [10:12:31]StoreOFDPacket docnum=201346 [10:12:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 FE 83 07 01 97 09 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 32 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 6C 00 00 00 F4 03 04 00 91 C0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 82 12 03 00 35 04 06 00 72 54 6C 49 D2 A6 02 71 6F 5D 2D C8 67 41 [10:12:31]CheckFolder [10:12:31]dirname=/storage/ofd_packets [10:12:31]CheckFolder done [10:12:31]ProducePacketName [10:12:31]name=ofd_packets/00201346 [10:12:31]NVStorageSaveData ofd_packets/00201346 [10:12:31]File name is /storage/ofd_packets/00201346 [10:12:31]Write 301 bytes [10:12:31]NVStorageSaveData done [10:12:31]OFDSenderStorePacket done [10:12:31]KKMCreateOFDPacket done [10:12:31]NVStorageSaveData kkm_last_timestamp [10:12:31]File name is /storage/kkm_last_timestamp [10:12:31]Write 4 bytes [10:12:31]NVStorageSaveData done [10:12:31]ExternCall_PrintAddStr [10:12:31]wPrintStart [10:12:31]Write to MH i2c: 01 00 00 ED 2A 17 [10:12:31]Write i2c OK [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: 01 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: 01 07 00 [10:12:31]MH_I2C_Read... [10:12:31]Read from MH i2c: 01 07 00 ED 2A 00 00 00 00 00 FF 0F 2C [10:12:31]RasterBufferAndPrint [10:12:31]line Счет N : (1)449094 [10:12:31]line ИНН: 02508201610067 [10:12:31]line Контрольно-Кассовый Чек [10:12:31]line ПРОДАЖА [10:12:31]line ТРК (МРК, ГНК) : 52 [10:12:31]line Товар: 2710124130 [10:12:31]line Аи-92-К-2 [10:12:31]line 7.480 * 66.90 [10:12:31]line = 500.41 [10:12:31]line НДС 12% НСП 1% [10:12:31]line > о реализуемом товаре [10:12:31]line ОКРУГЛЕНИЕ: -0.41 [10:12:31]line ИТОГО: 500.00 [10:12:31]line Внесено: 500.00 [10:12:31]line СДАЧА: 0.00 [10:12:31]line НСП 1% : 4.43 [10:12:31]line НДС 12% : 53.14 [10:12:31]line Наличными: 500.00 [10:12:31]line Безнал.: 0.00 [10:12:31]line Место: АЗС № 171 "Партнер Нефть" [10:12:31]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:12:31]line СНО: Общий режим [10:12:31]line Чек 108 26.10.2024 10:12 [10:12:31]line Смена: 543 ФФД: 1.0 [10:12:31]line ЗНМ: 0300000109 [10:12:31]line РНМ: 0000000000091777 [10:12:31]line Версия ККМ: 001 [10:12:31]line ФМ: 0000000000871756 [10:12:31]line ФД: 201346 [10:12:31]line ФПД: 125706919596710 [10:12:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101233&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201346&fm=125706919596710&tin=02508201610067®Number=0000000000091777&sum=50000 [10:12:31]OFD Sender: Processing packet 201346 [packets to send 112, broken 111] [10:12:31]ProducePacketName [10:12:31]name=ofd_packets/00201346 [10:12:31]OFD Sender: To server: pG, [10:12:31]CommunicateWithHost lk.salyk.kg:30040 [10:12:31]ConnectInit lk.salyk.kg [10:12:31]written 0, free lines is 4095 [10:12:31]Connected sock=10 [10:12:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 FE 83 07 01 97 09 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 32 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 6C 00 00 00 F4 03 04 00 91 C0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 82 12 03 00 35 04 06 00 72 54 6C 49 D2 A6 02 71 6F 5D 2D C8 67 41 [10:12:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 50 74 47 00 E7 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 82 12 03 00 F4 03 04 00 3B 6C 1C 67 B6 04 01 00 00 0B 1F ED FF ED 93 A8 28 [10:12:32]CommunicateWithHost err = 0 [10:12:32]CheckOFDResponse [10:12:32]1017 (14) - 77093643461234 [10:12:32]1041 (16) - 0000000000871756 [10:12:32]1040 (4) - 201346 [10:12:32]1012 (4) - 26.10.2024 04:12 [10:12:32]1206 (1) - 0 [10:12:32]OFD Sender: Remove packet 201346 [10:12:32]ProducePacketName [10:12:32]name=ofd_packets/00201346 [10:12:32]NVStorageDeleteData [10:12:32]Write to MH i2c: 01 00 00 18 2B 43 [10:12:32]Write i2c OK [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: 01 [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: 01 07 00 [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: 01 07 00 18 2B 00 00 00 00 00 94 0C EA [10:12:32]RasterBufferAndPrint [10:12:32]line [10:12:32]line [10:12:32]line [10:12:32]line [10:12:32]line [10:12:32]written 0, free lines is 3225 [10:12:32]MH_Cut [10:12:32]Write to MH i2c: D1 01 00 1F 2B 01 1C [10:12:32]Write i2c OK [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: D1 [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: D1 01 00 [10:12:32]MH_I2C_Read... [10:12:32]Read from MH i2c: D1 01 00 1F 2B 00 1B [10:12:32]Write to MH i2c: 01 00 00 20 2B 4B [10:12:32]Write i2c OK [10:12:32]MH_I2C_Read... [10:12:32]OFD Sender: No OFD packet to send [10:12:33]*** Cut start [10:12:33]*** Purtial cut [10:12:33]*** Stage 1: CUTSNS_PIN = 1 [10:12:33]Read from MH i2c: 01 [10:12:33]MH_I2C_Read... [10:12:33]*** Stop cut motor [10:12:33]*** Cut end [10:12:33]Read from MH i2c: 01 07 00 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: 01 07 00 20 2B 00 00 00 00 00 FF 0F 60 [10:12:33]process_action close_receipt done [10:12:33]requested_data is exist [10:12:33]produce_requested_data [10:12:33]requested_item fm.sn is exist - process it [10:12:33]wFMCommunicate request_size=4 [10:12:33]MH_SAM_APDU [10:12:33]CAPDU: 80 11 00 00 [10:12:33]Write to MH i2c: E2 08 00 21 2B 80 11 00 00 00 00 00 00 C6 [10:12:33]Write i2c OK [10:12:33]MH_I2C_Read... [10:12:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:33]Read from MH i2c: E2 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: E2 17 00 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: E2 17 00 21 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1B [10:12:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:12:33]wFMCommunicate OK [10:12:33]requested_item fd.num is exist - process it [10:12:33]SAM_PROTO_GetFieldsCounters [10:12:33]wFMCommunicate request_size=4 [10:12:33]MH_SAM_APDU [10:12:33]CAPDU: 80 13 00 00 [10:12:33]Write to MH i2c: E2 08 00 22 2B 80 13 00 00 00 00 00 00 C9 [10:12:33]Write i2c OK [10:12:33]MH_I2C_Read... [10:12:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:33]Read from MH i2c: E2 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: E2 62 00 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: E2 62 00 22 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 82 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [10:12:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 82 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:12:33]wFMCommunicate OK [10:12:33]SAM_PROTO_GetFieldsCounters done [10:12:33]requested_item shift.num is exist - process it [10:12:33]requested_item shift.opened is exist - process it [10:12:33]req_shift_opened [10:12:33]FM_GetShiftState [10:12:33]SAM_PROTO_GetShiftState [10:12:33]wFMCommunicate request_size=4 [10:12:33]MH_SAM_APDU [10:12:33]CAPDU: 80 13 01 00 [10:12:33]Write to MH i2c: E2 08 00 23 2B 80 13 01 00 00 00 00 00 CB [10:12:33]Write i2c OK [10:12:33]MH_I2C_Read... [10:12:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:33]Read from MH i2c: E2 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: E2 0E 00 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: E2 0E 00 23 2B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 DA [10:12:33]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:12:33]wFMCommunicate OK [10:12:33]SAM_PROTO_GetShiftState done [10:12:33]FM_GetShiftState done [10:12:33]req_shift_opened done [10:12:33]requested_item shift.open_date is exist - process it [10:12:33]req_shift_open_date [10:12:33]req_shift_open_date done [10:12:33]produce_requested_data done [10:12:33]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201346,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:12:33]process_action_free close_receipt [10:12:33]json_value_free [10:12:33]json_value_free done [10:12:33]process_json_proto returns [10:12:33]Send response to host [10:12:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201346,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:12:33]free response buf [10:12:33]execute_script done [10:12:33]execute_script returns [10:12:33]free content buf [10:12:33]Sock 7.Close socket [10:12:33]Sock 7.Thread stoped [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12:47]OFD Sender: No OFD packet to send [10:12:52]OFD Sender: No OFD packet to send [10:12:57]OFD Sender: No OFD packet to send [10:13:00]accept exits with 9 [10:13:00]New connection [10:13:00]New thread 3067559268 created [10:13:00]Thread 3067415908 joined [10:13:00]Waiting for new connection... [10:13:00] Sock 9.Parse request [10:13:00]Sock 9.Check first char [10:13:00]Sock 9.First char is OK [10:13:00]request: POST /json_proto HTTP/1.0 [10:13:00]Method: POST [10:13:00]URL: /json_proto [10:13:00]Method is POST - this is cgi request [10:13:00]url: /json_proto [10:13:00]query_string will be loaded in cgi processing [10:13:00]execute_cgi json_proto POST (null) [10:13:00]execute_cgi path=json_proto method=POST [10:13:00]POST find Content-Length [10:13:00]Host: 172.17.63.195:8080 [10:13:00]Content-Length: 677 [10:13:00]Content-Type: application/json [10:13:00] [10:13:00]POST finish read [10:13:00]Found Content-Length = 677 [10:13:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:13:00]execute_script... [10:13: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)449095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:13:00]POST & json_proto [10:13:00]process_json_proto [10:13:00]json parsed OK: [10:13:00]protocol is kg_v1.0 [10:13:00]action value=close_receipt [10:13:00]process_action close_receipt [10:13:00]cmd_close_receipt [10:13:00]MH_GetDate [10:13:00]Write to MH i2c: F0 00 00 24 2B 3E [10:13:00]Write i2c OK [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: F0 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: F0 09 00 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: F0 09 00 24 2B 00 B0 C0 1C 67 68 46 19 67 68 [10:13:00]GetLastDocTimeStamp 1729937553 [10:13:00]current date 1729937584 [10:13:00]FM_GetShiftState [10:13:00]SAM_PROTO_GetShiftState [10:13:00]wFMCommunicate request_size=4 [10:13:00]MH_SAM_APDU [10:13:00]CAPDU: 80 13 01 00 [10:13:00]Write to MH i2c: E2 08 00 25 2B 80 13 01 00 00 00 00 00 CD [10:13:00]Write i2c OK [10:13:00]MH_I2C_Read... [10:13:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:00]Read from MH i2c: E2 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 0E 00 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 0E 00 25 2B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 DC [10:13:00]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:13:00]wFMCommunicate OK [10:13:00]SAM_PROTO_GetShiftState done [10:13:00]FM_GetShiftState done [10:13:00]opened in 1729900879 [10:13:00]opened+sec_in_day 1729987279 [10:13:00]quantity*price = 20003 [10:13:00]sum+1 = 20004 [10:13:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 109 26.10.2024 10:13 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201347 ФПД: 162127397896935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101304&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201347&fm=162127397896935&tin=02508201610067®Number=0000000000091777&sum=20000 [10:13:01]StoreToDocumentArchive [10:13:01]shift 543 fd 201347 [10:13:01]save to /storage/0543/doc_00201347 [10:13:01]save last doc name /storage/0543/doc_00201347 to /storage/kkm_last_doc_name [10:13:01]save OK [10:13:01]Clear old archive folders... [10:13:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:13:01]tlvbuf is B6FE9830 [10:13:01]SAM_PROTO_ClearQueue [10:13:01]wFMCommunicate request_size=4 [10:13:01]MH_SAM_APDU [10:13:01]CAPDU: 80 09 00 00 [10:13:01]Write to MH i2c: E2 08 00 32 2B 80 09 00 00 00 00 00 00 CF [10:13:01]Write i2c OK [10:13:01]MH_I2C_Read... [10:13:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:01]Read from MH i2c: E2 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 03 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 03 00 32 2B 00 90 00 D1 [10:13:01]RAPDU: 90 00 [10:13:01]wFMCommunicate OK [10:13:01]SAM_PROTO_ClearQueue done [10:13:01]KKMCreateOFDPacket [10:13:01]OFDProtocolAddRootSTLVToBuf [10:13:01]FM_MakeSignedData [10:13:01]FM_MakeSignedData [10:13:01]SAM_PROTO_SignData [10:13:01]wFMCommunicate request_size=4 [10:13:01]MH_SAM_APDU [10:13:01]CAPDU: 80 0D 01 02 [10:13:01]Write to MH i2c: E2 08 00 33 2B 80 0D 01 02 00 00 00 00 D7 [10:13:01]Write i2c OK [10:13:01]MH_I2C_Read... [10:13:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:01]Read from MH i2c: E2 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 03 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 03 00 33 2B 00 90 00 D2 [10:13:01]RAPDU: 90 00 [10:13:01]wFMCommunicate OK [10:13:01]wFMCommunicate request_size=255 [10:13:01]MH_SAM_APDU [10:13: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 32 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 6D 00 00 00 F4 03 04 00 B0 C0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 83 12 03 00 35 04 06 00 93 [10:13:01]Write to MH i2c: E2 02 01 34 2B 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 32 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 6D 00 00 00 F4 03 04 00 B0 C0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 83 12 03 00 35 04 06 00 93 00 00 D9 [10:13:01]Write i2c OK [10:13:01]MH_I2C_Read... [10:13:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:01]Read from MH i2c: E2 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 03 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 03 00 34 2B 00 90 00 D3 [10:13:01]RAPDU: 90 00 [10:13:01]wFMCommunicate OK [10:13:01]wFMCommunicate request_size=10 [10:13:01]MH_SAM_APDU [10:13:01]CAPDU: 80 0D 02 02 05 74 39 F5 C2 E7 [10:13:01]Write to MH i2c: E2 0D 00 35 2B 80 0D 02 02 05 00 74 39 F5 C2 E7 00 00 2F [10:13:01]Write i2c OK [10:13:01]MH_I2C_Read... [10:13:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:01]Read from MH i2c: E2 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 03 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 03 00 35 2B 00 90 00 D4 [10:13:01]RAPDU: 90 00 [10:13:01]wFMCommunicate OK [10:13:01]wFMCommunicate request_size=4 [10:13:01]MH_SAM_APDU [10:13:01]CAPDU: 80 0D 03 02 [10:13:01]Write to MH i2c: E2 08 00 36 2B 80 0D 03 02 00 00 00 00 DC [10:13:01]Write i2c OK [10:13:01]MH_I2C_Read... [10:13:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:01]Read from MH i2c: E2 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 0B 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 0B 00 36 2B 00 FD 26 9A 49 2A 93 D9 D3 90 00 4C [10:13:01]RAPDU: FD 26 9A 49 2A 93 D9 D3 90 00 [10:13:01]wFMCommunicate OK [10:13:01]SAM_PROTO_SignData done [10:13:01]FM_MakeSignedData done [10:13:01]CreateOFDProtocolMessage [10:13:01]wFMCommunicate request_size=4 [10:13:01]MH_SAM_APDU [10:13:01]CAPDU: 80 11 00 00 [10:13:01]Write to MH i2c: E2 08 00 37 2B 80 11 00 00 00 00 00 00 DC [10:13:01]Write i2c OK [10:13:01]MH_I2C_Read... [10:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:01]Read from MH i2c: E2 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 17 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 17 00 37 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 31 [10:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:13:01]wFMCommunicate OK [10:13:01]CreateOFDProtocolMessage done [10:13:01]OFDSenderStorePacket 201347 [10:13:01]StoreOFDPacket docnum=201347 [10:13:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 96 A3 07 01 52 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 6D 00 00 00 F4 03 04 00 B0 C0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 83 12 03 00 35 04 06 00 93 74 39 F5 C2 E7 FD 26 9A 49 2A 93 D9 D3 [10:13:01]CheckFolder [10:13:01]dirname=/storage/ofd_packets [10:13:01]CheckFolder done [10:13:01]ProducePacketName [10:13:01]name=ofd_packets/00201347 [10:13:01]NVStorageSaveData ofd_packets/00201347 [10:13:01]File name is /storage/ofd_packets/00201347 [10:13:01]Write 301 bytes [10:13:01]NVStorageSaveData done [10:13:01]OFDSenderStorePacket done [10:13:01]KKMCreateOFDPacket done [10:13:01]NVStorageSaveData kkm_last_timestamp [10:13:01]File name is /storage/kkm_last_timestamp [10:13:01]Write 4 bytes [10:13:01]NVStorageSaveData done [10:13:01]ExternCall_PrintAddStr [10:13:01]wPrintStart [10:13:01]Write to MH i2c: 01 00 00 38 2B 63 [10:13:01]Write i2c OK [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: 01 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: 01 07 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: 01 07 00 38 2B 00 00 00 00 00 FF 0F 78 [10:13:01]RasterBufferAndPrint [10:13:01]line Счет N : (1)449095 [10:13:01]line ИНН: 02508201610067 [10:13:01]line Контрольно-Кассовый Чек [10:13:01]line ПРОДАЖА [10:13:01]line ТРК (МРК, ГНК) : 31 [10:13:01]line Товар: 2710124130 [10:13:01]line Аи-92-К-2 [10:13:01]line 2.990 * 66.90 [10:13:01]line = 200.03 [10:13:01]line НДС 12% НСП 1% [10:13:01]line > о реализуемом товаре [10:13:01]line ОКРУГЛЕНИЕ: -0.03 [10:13:01]line ИТОГО: 200.00 [10:13:01]line Внесено: 200.00 [10:13:01]line СДАЧА: 0.00 [10:13:01]line НСП 1% : 1.77 [10:13:01]line НДС 12% : 21.24 [10:13:01]line Наличными: 200.00 [10:13:01]line Безнал.: 0.00 [10:13:01]line Место: АЗС № 171 "Партнер Нефть" [10:13:01]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:13:01]line СНО: Общий режим [10:13:01]line Чек 109 26.10.2024 10:13 [10:13:01]line Смена: 543 ФФД: 1.0 [10:13:01]line ЗНМ: 0300000109 [10:13:01]line РНМ: 0000000000091777 [10:13:01]line Версия ККМ: 001 [10:13:01]line ФМ: 0000000000871756 [10:13:01]line ФД: 201347 [10:13:01]line ФПД: 162127397896935 [10:13:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101304&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201347&fm=162127397896935&tin=02508201610067®Number=0000000000091777&sum=20000 [10:13:02]OFD Sender: Processing packet 201347 [packets to send 112, broken 111] [10:13:02]ProducePacketName [10:13:02]name=ofd_packets/00201347 [10:13:02]OFD Sender: To server: pG, [10:13:02]CommunicateWithHost lk.salyk.kg:30040 [10:13:02]ConnectInit lk.salyk.kg [10:13:02]written 0, free lines is 4095 [10:13:02]Connected sock=10 [10:13:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 96 A3 07 01 52 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 6D 00 00 00 F4 03 04 00 B0 C0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 83 12 03 00 35 04 06 00 93 74 39 F5 C2 E7 FD 26 9A 49 2A 93 D9 D3 [10:13:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F1 34 47 00 B7 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 83 12 03 00 F4 03 04 00 59 6C 1C 67 B6 04 01 00 00 D3 7F 13 CF F0 9E 84 03 [10:13:02]CommunicateWithHost err = 0 [10:13:02]CheckOFDResponse [10:13:02]1017 (14) - 77093643461234 [10:13:02]1041 (16) - 0000000000871756 [10:13:02]1040 (4) - 201347 [10:13:02]1012 (4) - 26.10.2024 04:13 [10:13:02]1206 (1) - 0 [10:13:02]OFD Sender: Remove packet 201347 [10:13:02]ProducePacketName [10:13:02]name=ofd_packets/00201347 [10:13:02]NVStorageDeleteData [10:13:02]Write to MH i2c: 01 00 00 63 2B 8E [10:13:02]Write i2c OK [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: 01 [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: 01 07 00 [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: 01 07 00 63 2B 00 00 00 00 00 9B 0C 3C [10:13:02]RasterBufferAndPrint [10:13:02]line [10:13:02]line [10:13:02]line [10:13:02]line [10:13:02]line [10:13:02]written 0, free lines is 3233 [10:13:02]MH_Cut [10:13:02]Write to MH i2c: D1 01 00 6A 2B 01 67 [10:13:02]Write i2c OK [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: D1 [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: D1 01 00 [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: D1 01 00 6A 2B 00 66 [10:13:02]Write to MH i2c: 01 00 00 6B 2B 96 [10:13:02]Write i2c OK [10:13:02]MH_I2C_Read... [10:13:03]OFD Sender: No OFD packet to send [10:13:03]*** Cut start [10:13:03]*** Purtial cut [10:13:03]*** Stage 1: CUTSNS_PIN = 1 [10:13:03]Read from MH i2c: 01 [10:13:03]MH_I2C_Read... [10:13:03]*** Stop cut motor [10:13:03]*** Cut end [10:13:03]Read from MH i2c: 01 07 00 [10:13:03]MH_I2C_Read... [10:13:03]Read from MH i2c: 01 07 00 6B 2B 00 00 00 00 00 FF 0F AB [10:13:03]process_action close_receipt done [10:13:03]requested_data is exist [10:13:03]produce_requested_data [10:13:03]requested_item fm.sn is exist - process it [10:13:03]wFMCommunicate request_size=4 [10:13:03]MH_SAM_APDU [10:13:03]CAPDU: 80 11 00 00 [10:13:03]Write to MH i2c: E2 08 00 6C 2B 80 11 00 00 00 00 00 00 11 [10:13:03]Write i2c OK [10:13:03]MH_I2C_Read... [10:13:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:03]Read from MH i2c: E2 [10:13:03]MH_I2C_Read... [10:13:03]Read from MH i2c: E2 17 00 [10:13:03]MH_I2C_Read... [10:13:03]Read from MH i2c: E2 17 00 6C 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 66 [10:13:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:13:03]wFMCommunicate OK [10:13:03]requested_item fd.num is exist - process it [10:13:03]SAM_PROTO_GetFieldsCounters [10:13:03]wFMCommunicate request_size=4 [10:13:03]MH_SAM_APDU [10:13:03]CAPDU: 80 13 00 00 [10:13:03]Write to MH i2c: E2 08 00 6D 2B 80 13 00 00 00 00 00 00 14 [10:13:03]Write i2c OK [10:13:03]MH_I2C_Read... [10:13:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:04]Read from MH i2c: E2 [10:13:04]MH_I2C_Read... [10:13:04]Read from MH i2c: E2 62 00 [10:13:04]MH_I2C_Read... [10:13:04]Read from MH i2c: E2 62 00 6D 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 83 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [10:13:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 83 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:13:04]wFMCommunicate OK [10:13:04]SAM_PROTO_GetFieldsCounters done [10:13:04]requested_item shift.num is exist - process it [10:13:04]requested_item shift.opened is exist - process it [10:13:04]req_shift_opened [10:13:04]FM_GetShiftState [10:13:04]SAM_PROTO_GetShiftState [10:13:04]wFMCommunicate request_size=4 [10:13:04]MH_SAM_APDU [10:13:04]CAPDU: 80 13 01 00 [10:13:04]Write to MH i2c: E2 08 00 6E 2B 80 13 01 00 00 00 00 00 16 [10:13:04]Write i2c OK [10:13:04]MH_I2C_Read... [10:13:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:04]Read from MH i2c: E2 [10:13:04]MH_I2C_Read... [10:13:04]Read from MH i2c: E2 0E 00 [10:13:04]MH_I2C_Read... [10:13:04]Read from MH i2c: E2 0E 00 6E 2B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 25 [10:13:04]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:13:04]wFMCommunicate OK [10:13:04]SAM_PROTO_GetShiftState done [10:13:04]FM_GetShiftState done [10:13:04]req_shift_opened done [10:13:04]requested_item shift.open_date is exist - process it [10:13:04]req_shift_open_date [10:13:04]req_shift_open_date done [10:13:04]produce_requested_data done [10:13:04]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201347,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:13:04]process_action_free close_receipt [10:13:04]json_value_free [10:13:04]json_value_free done [10:13:04]process_json_proto returns [10:13:04]Send response to host [10:13:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201347,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:13:04]free response buf [10:13:04]execute_script done [10:13:04]execute_script returns [10:13:04]free content buf [10:13:04]Sock 9.Close socket [10:13:04]Sock 9.Thread stoped [10:13:08]OFD Sender: No OFD packet to send [10:13:13]OFD Sender: No OFD packet to send [10:13:14]accept exits with 7 [10:13:14]New connection [10:13:14]New thread 3067415908 created [10:13:14]Thread 3067559268 joined [10:13:14]Waiting for new connection... [10:13:14] Sock 7.Parse request [10:13:14]Sock 7.Check first char [10:13:14]Sock 7.First char is OK [10:13:14]request: POST /json_proto HTTP/1.0 [10:13:14]Method: POST [10:13:14]URL: /json_proto [10:13:14]Method is POST - this is cgi request [10:13:14]url: /json_proto [10:13:14]query_string will be loaded in cgi processing [10:13:14]execute_cgi json_proto POST (null) [10:13:14]execute_cgi path=json_proto method=POST [10:13:14]POST find Content-Length [10:13:14]Host: 172.17.63.195:8080 [10:13:14]Content-Length: 670 [10:13:14]Content-Type: application/json [10:13:14] [10:13:14]POST finish read [10:13:14]Found Content-Length = 670 [10:13:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "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" ] } } [10:13:14]execute_script... [10:13: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)449096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "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" ] } } [10:13:14]POST & json_proto [10:13:14]process_json_proto [10:13:14]json parsed OK: [10:13:14]protocol is kg_v1.0 [10:13:14]action value=close_receipt [10:13:14]process_action close_receipt [10:13:14]cmd_close_receipt [10:13:14]MH_GetDate [10:13:14]Write to MH i2c: F0 00 00 6F 2B 89 [10:13:14]Write i2c OK [10:13:14]MH_I2C_Read... [10:13:14]Read from MH i2c: F0 [10:13:14]MH_I2C_Read... [10:13:14]Read from MH i2c: F0 09 00 [10:13:14]MH_I2C_Read... [10:13:14]Read from MH i2c: F0 09 00 6F 2B 00 BE C0 1C 67 68 46 19 67 C1 [10:13:14]GetLastDocTimeStamp 1729937584 [10:13:14]current date 1729937598 [10:13:14]FM_GetShiftState [10:13:14]SAM_PROTO_GetShiftState [10:13:14]wFMCommunicate request_size=4 [10:13:14]MH_SAM_APDU [10:13:14]CAPDU: 80 13 01 00 [10:13:14]Write to MH i2c: E2 08 00 70 2B 80 13 01 00 00 00 00 00 18 [10:13:14]Write i2c OK [10:13:14]MH_I2C_Read... [10:13:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:14]Read from MH i2c: E2 [10:13:14]MH_I2C_Read... [10:13:14]Read from MH i2c: E2 0E 00 [10:13:14]MH_I2C_Read... [10:13:14]Read from MH i2c: E2 0E 00 70 2B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 27 [10:13:14]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:13:14]wFMCommunicate OK [10:13:14]SAM_PROTO_GetShiftState done [10:13:14]FM_GetShiftState done [10:13:14]opened in 1729900879 [10:13:14]opened+sec_in_day 1729987279 [10:13:14]quantity*price = 40014 [10:13:14]sum+1 = 40015 [10:13:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 110 26.10.2024 10:13 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201348 ФПД: 238977726805719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101318&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201348&fm=238977726805719&tin=02508201610067®Number=0000000000091777&sum=40000 [10:13:15]StoreToDocumentArchive [10:13:15]shift 543 fd 201348 [10:13:15]save to /storage/0543/doc_00201348 [10:13:15]save last doc name /storage/0543/doc_00201348 to /storage/kkm_last_doc_name [10:13:15]save OK [10:13:15]Clear old archive folders... [10:13:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:13:15]tlvbuf is 0174C580 [10:13:15]SAM_PROTO_ClearQueue [10:13:15]wFMCommunicate request_size=4 [10:13:15]MH_SAM_APDU [10:13:15]CAPDU: 80 09 00 00 [10:13:15]Write to MH i2c: E2 08 00 7D 2B 80 09 00 00 00 00 00 00 1A [10:13:15]Write i2c OK [10:13:15]MH_I2C_Read... [10:13:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:15]Read from MH i2c: E2 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 03 00 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 03 00 7D 2B 00 90 00 1C [10:13:15]RAPDU: 90 00 [10:13:15]wFMCommunicate OK [10:13:15]SAM_PROTO_ClearQueue done [10:13:15]KKMCreateOFDPacket [10:13:15]OFDProtocolAddRootSTLVToBuf [10:13:15]FM_MakeSignedData [10:13:15]FM_MakeSignedData [10:13:15]SAM_PROTO_SignData [10:13:15]wFMCommunicate request_size=4 [10:13:15]MH_SAM_APDU [10:13:15]CAPDU: 80 0D 01 02 [10:13:15]Write to MH i2c: E2 08 00 7E 2B 80 0D 01 02 00 00 00 00 22 [10:13:15]Write i2c OK [10:13:15]MH_I2C_Read... [10:13:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:15]Read from MH i2c: E2 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 03 00 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 03 00 7E 2B 00 90 00 1D [10:13:15]RAPDU: 90 00 [10:13:15]wFMCommunicate OK [10:13:15]wFMCommunicate request_size=255 [10:13:15]MH_SAM_APDU [10:13: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 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 6E 00 00 00 F4 03 04 00 BE C0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 84 12 03 00 35 04 06 00 [10:13:15]Write to MH i2c: E2 02 01 7F 2B 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 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 6E 00 00 00 F4 03 04 00 BE C0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 84 12 03 00 35 04 06 00 00 00 6A [10:13:15]Write i2c OK [10:13:15]MH_I2C_Read... [10:13:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:16]Read from MH i2c: E2 [10:13:16]MH_I2C_Read... [10:13:16]Read from MH i2c: E2 03 00 [10:13:16]MH_I2C_Read... [10:13:16]Read from MH i2c: E2 03 00 7F 2B 00 90 00 1E [10:13:16]RAPDU: 90 00 [10:13:16]wFMCommunicate OK [10:13:16]wFMCommunicate request_size=11 [10:13:16]MH_SAM_APDU [10:13:16]CAPDU: 80 0D 02 02 06 D9 59 56 83 F6 D7 [10:13:16]Write to MH i2c: E2 0E 00 80 2B 80 0D 02 02 06 00 D9 59 56 83 F6 D7 00 00 09 [10:13:16]Write i2c OK [10:13:16]MH_I2C_Read... [10:13:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:16]Read from MH i2c: E2 [10:13:16]MH_I2C_Read... [10:13:16]Read from MH i2c: E2 03 00 [10:13:16]MH_I2C_Read... [10:13:16]Read from MH i2c: E2 03 00 80 2B 00 90 00 1F [10:13:16]RAPDU: 90 00 [10:13:16]wFMCommunicate OK [10:13:16]wFMCommunicate request_size=4 [10:13:16]MH_SAM_APDU [10:13:16]CAPDU: 80 0D 03 02 [10:13:16]Write to MH i2c: E2 08 00 81 2B 80 0D 03 02 00 00 00 00 27 [10:13:16]Write i2c OK [10:13:16]MH_I2C_Read... [10:13:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:16]Read from MH i2c: E2 [10:13:16]MH_I2C_Read... [10:13:16]Read from MH i2c: E2 0B 00 [10:13:16]MH_I2C_Read... [10:13:16]Read from MH i2c: E2 0B 00 81 2B 00 EC ED 2D 6D 2D 45 48 8E 90 00 E3 [10:13:16]RAPDU: EC ED 2D 6D 2D 45 48 8E 90 00 [10:13:16]wFMCommunicate OK [10:13:16]SAM_PROTO_SignData done [10:13:16]FM_MakeSignedData done [10:13:16]CreateOFDProtocolMessage [10:13:16]wFMCommunicate request_size=4 [10:13:16]MH_SAM_APDU [10:13:16]CAPDU: 80 11 00 00 [10:13:16]Write to MH i2c: E2 08 00 82 2B 80 11 00 00 00 00 00 00 27 [10:13:16]Write i2c OK [10:13:16]MH_I2C_Read... [10:13:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:16]Read from MH i2c: E2 [10:13:16]MH_I2C_Read... [10:13:16]Read from MH i2c: E2 17 00 [10:13:16]MH_I2C_Read... [10:13:16]Read from MH i2c: E2 17 00 82 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7C [10:13:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:13:16]wFMCommunicate OK [10:13:16]CreateOFDProtocolMessage done [10:13:16]OFDSenderStorePacket 201348 [10:13:16]StoreOFDPacket docnum=201348 [10:13:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 75 A6 08 01 08 9F 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 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 6E 00 00 00 F4 03 04 00 BE C0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 84 12 03 00 35 04 06 00 D9 59 56 83 F6 D7 EC ED 2D 6D 2D 45 48 8E [10:13:16]CheckFolder [10:13:16]dirname=/storage/ofd_packets [10:13:16]CheckFolder done [10:13:16]ProducePacketName [10:13:16]name=ofd_packets/00201348 [10:13:16]NVStorageSaveData ofd_packets/00201348 [10:13:16]File name is /storage/ofd_packets/00201348 [10:13:16]Write 302 bytes [10:13:16]NVStorageSaveData done [10:13:16]OFDSenderStorePacket done [10:13:16]KKMCreateOFDPacket done [10:13:16]NVStorageSaveData kkm_last_timestamp [10:13:16]File name is /storage/kkm_last_timestamp [10:13:16]Write 4 bytes [10:13:16]NVStorageSaveData done [10:13:16]ExternCall_PrintAddStr [10:13:16]wPrintStart [10:13:16]Write to MH i2c: 01 00 00 83 2B AE [10:13:16]Write i2c OK [10:13:16]MH_I2C_Read... [10:13:16]Read from MH i2c: 01 [10:13:16]MH_I2C_Read... [10:13:16]Read from MH i2c: 01 07 00 [10:13:16]MH_I2C_Read... [10:13:16]Read from MH i2c: 01 07 00 83 2B 00 00 00 00 00 FF 0F C3 [10:13:16]RasterBufferAndPrint [10:13:16]line Счет N : (1)449096 [10:13:16]line ИНН: 02508201610067 [10:13:16]line Контрольно-Кассовый Чек [10:13:16]line ПРОДАЖА [10:13:16]line ТРК (МРК, ГНК) : 42 [10:13:16]line Товар: 2710124130 [10:13:16]line SUPER 92-К-5 [10:13:16]line 5.850 * 68.40 [10:13:16]line = 400.14 [10:13:16]line НДС 12% НСП 1% [10:13:16]line > о реализуемом товаре [10:13:16]line ОКРУГЛЕНИЕ: -0.14 [10:13:16]line ИТОГО: 400.00 [10:13:16]line Внесено: 400.00 [10:13:16]line СДАЧА: 0.00 [10:13:16]line НСП 1% : 3.54 [10:13:16]line НДС 12% : 42.49 [10:13:16]line Наличными: 400.00 [10:13:16]line Безнал.: 0.00 [10:13:16]line Место: АЗС № 171 "Партнер Нефть" [10:13:16]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:13:16]line СНО: Общий режим [10:13:16]line Чек 110 26.10.2024 10:13 [10:13:16]line Смена: 543 ФФД: 1.0 [10:13:16]line ЗНМ: 0300000109 [10:13:16]line РНМ: 0000000000091777 [10:13:16]line Версия ККМ: 001 [10:13:16]line ФМ: 0000000000871756 [10:13:16]line ФД: 201348 [10:13:16]line ФПД: 238977726805719 [10:13:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101318&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201348&fm=238977726805719&tin=02508201610067®Number=0000000000091777&sum=40000 [10:13:16]OFD Sender: Processing packet 201348 [packets to send 112, broken 111] [10:13:16]ProducePacketName [10:13:16]name=ofd_packets/00201348 [10:13:16]OFD Sender: To server: pG, [10:13:16]CommunicateWithHost lk.salyk.kg:30040 [10:13:16]ConnectInit lk.salyk.kg [10:13:16]written 0, free lines is 4095 [10:13:16]Connected sock=10 [10:13:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 75 A6 08 01 08 9F 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 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 6E 00 00 00 F4 03 04 00 BE C0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 84 12 03 00 35 04 06 00 D9 59 56 83 F6 D7 EC ED 2D 6D 2D 45 48 8E [10:13:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 ED 95 47 00 EA 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 84 12 03 00 F4 03 04 00 67 6C 1C 67 B6 04 01 00 00 DD 42 DA 50 E6 DE CB 5F [10:13:16]CommunicateWithHost err = 0 [10:13:16]CheckOFDResponse [10:13:16]1017 (14) - 77093643461234 [10:13:16]1041 (16) - 0000000000871756 [10:13:16]1040 (4) - 201348 [10:13:16]1012 (4) - 26.10.2024 04:13 [10:13:16]1206 (1) - 0 [10:13:16]OFD Sender: Remove packet 201348 [10:13:16]ProducePacketName [10:13:16]name=ofd_packets/00201348 [10:13:16]NVStorageDeleteData [10:13:17]Write to MH i2c: 01 00 00 AE 2B D9 [10:13:17]Write i2c OK [10:13:17]MH_I2C_Read... [10:13:17]Read from MH i2c: 01 [10:13:17]MH_I2C_Read... [10:13:17]Read from MH i2c: 01 07 00 [10:13:17]MH_I2C_Read... [10:13:17]Read from MH i2c: 01 07 00 AE 2B 00 00 00 00 00 AA 0C 96 [10:13:17]RasterBufferAndPrint [10:13:17]line [10:13:17]line [10:13:17]line [10:13:17]line [10:13:17]line [10:13:17]written 0, free lines is 3251 [10:13:17]MH_Cut [10:13:17]Write to MH i2c: D1 01 00 B5 2B 01 B2 [10:13:17]Write i2c OK [10:13:17]MH_I2C_Read... [10:13:17]Read from MH i2c: D1 [10:13:17]MH_I2C_Read... [10:13:17]Read from MH i2c: D1 01 00 [10:13:17]MH_I2C_Read... [10:13:17]Read from MH i2c: D1 01 00 B5 2B 00 B1 [10:13:17]Write to MH i2c: 01 00 00 B6 2B E1 [10:13:17]Write i2c OK [10:13:17]MH_I2C_Read... [10:13:17]OFD Sender: No OFD packet to send [10:13:17]*** Cut start [10:13:17]*** Purtial cut [10:13:17]*** Stage 1: CUTSNS_PIN = 1 [10:13:18]Read from MH i2c: 01 [10:13:18]MH_I2C_Read... [10:13:18]*** Stop cut motor [10:13:18]*** Cut end [10:13:18]Read from MH i2c: 01 07 00 [10:13:18]MH_I2C_Read... [10:13:18]Read from MH i2c: 01 07 00 B6 2B 00 00 00 00 00 FF 0F F6 [10:13:18]process_action close_receipt done [10:13:18]requested_data is exist [10:13:18]produce_requested_data [10:13:18]requested_item fm.sn is exist - process it [10:13:18]wFMCommunicate request_size=4 [10:13:18]MH_SAM_APDU [10:13:18]CAPDU: 80 11 00 00 [10:13:18]Write to MH i2c: E2 08 00 B7 2B 80 11 00 00 00 00 00 00 5C [10:13:18]Write i2c OK [10:13:18]MH_I2C_Read... [10:13:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:18]Read from MH i2c: E2 [10:13:18]MH_I2C_Read... [10:13:18]Read from MH i2c: E2 17 00 [10:13:18]MH_I2C_Read... [10:13:18]Read from MH i2c: E2 17 00 B7 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B1 [10:13:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:13:18]wFMCommunicate OK [10:13:18]requested_item fd.num is exist - process it [10:13:18]SAM_PROTO_GetFieldsCounters [10:13:18]wFMCommunicate request_size=4 [10:13:18]MH_SAM_APDU [10:13:18]CAPDU: 80 13 00 00 [10:13:18]Write to MH i2c: E2 08 00 B8 2B 80 13 00 00 00 00 00 00 5F [10:13:18]Write i2c OK [10:13:18]MH_I2C_Read... [10:13:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:18]Read from MH i2c: E2 [10:13:18]MH_I2C_Read... [10:13:18]Read from MH i2c: E2 62 00 [10:13:18]MH_I2C_Read... [10:13:18]Read from MH i2c: E2 62 00 B8 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 84 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [10:13:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 84 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:13:18]wFMCommunicate OK [10:13:18]SAM_PROTO_GetFieldsCounters done [10:13:18]requested_item shift.num is exist - process it [10:13:18]requested_item shift.opened is exist - process it [10:13:18]req_shift_opened [10:13:18]FM_GetShiftState [10:13:18]SAM_PROTO_GetShiftState [10:13:18]wFMCommunicate request_size=4 [10:13:18]MH_SAM_APDU [10:13:18]CAPDU: 80 13 01 00 [10:13:18]Write to MH i2c: E2 08 00 B9 2B 80 13 01 00 00 00 00 00 61 [10:13:18]Write i2c OK [10:13:18]MH_I2C_Read... [10:13:18]Read from MH i2c: E2 [10:13:18]MH_I2C_Read... [10:13:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:18]Read from MH i2c: E2 0E 00 [10:13:18]MH_I2C_Read... [10:13:18]Read from MH i2c: E2 0E 00 B9 2B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 70 [10:13:18]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:13:18]wFMCommunicate OK [10:13:18]SAM_PROTO_GetShiftState done [10:13:18]FM_GetShiftState done [10:13:18]req_shift_opened done [10:13:18]requested_item shift.open_date is exist - process it [10:13:18]req_shift_open_date [10:13:18]req_shift_open_date done [10:13:18]produce_requested_data done [10:13:18]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201348,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:13:18]process_action_free close_receipt [10:13:18]json_value_free [10:13:18]json_value_free done [10:13:18]process_json_proto returns [10:13:18]Send response to host [10:13:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201348,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:13:18]free response buf [10:13:18]execute_script done [10:13:18]execute_script returns [10:13:18]free content buf [10:13:18]Sock 7.Close socket [10:13:18]Sock 7.Thread stoped [10:13:22]OFD Sender: No OFD packet to send [10:13:27]OFD Sender: No OFD packet to send [10:13:32]OFD Sender: No OFD packet to send [10:13:37]OFD Sender: No OFD packet to send [10:13:42]OFD Sender: No OFD packet to send [10:13:47]OFD Sender: No OFD packet to send [10:13:52]OFD Sender: No OFD packet to send [10:13:57]OFD Sender: No OFD packet to send [10:14:02]OFD Sender: No OFD packet to send [10:14:07]OFD Sender: No OFD packet to send [10:14:12]OFD Sender: No OFD packet to send [10:14:17]OFD Sender: No OFD packet to send [10:14:22]OFD Sender: No OFD packet to send [10:14:27]OFD Sender: No OFD packet to send [10:14:32]OFD Sender: No OFD packet to send [10:14:37]OFD Sender: No OFD packet to send [10:14:42]OFD Sender: No OFD packet to send [10:14:47]OFD Sender: No OFD packet to send [10:14:52]OFD Sender: No OFD packet to send [10:14:56]accept exits with 9 [10:14:56]New connection [10:14:56]New thread 3067559268 created [10:14:56]Thread 3067415908 joined [10:14:56]Waiting for new connection... [10:14:56] Sock 9.Parse request [10:14:56]Sock 9.Check first char [10:14:56]Sock 9.First char is OK [10:14:56]request: POST /json_proto HTTP/1.0 [10:14:56]Method: POST [10:14:56]URL: /json_proto [10:14:56]Method is POST - this is cgi request [10:14:56]url: /json_proto [10:14:56]query_string will be loaded in cgi processing [10:14:56]execute_cgi json_proto POST (null) [10:14:56]execute_cgi path=json_proto method=POST [10:14:56]POST find Content-Length [10:14:56]Host: 172.17.63.195:8080 [10:14:56]Content-Length: 670 [10:14:56]Content-Type: application/json [10:14:56] [10:14:56]POST finish read [10:14:56]Found Content-Length = 670 [10:14:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 2.930, "sum" : 200.41, "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" ] } } [10:14:56]execute_script... [10:14: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)449097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 2.930, "sum" : 200.41, "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" ] } } [10:14:56]POST & json_proto [10:14:56]process_json_proto [10:14:56]json parsed OK: [10:14:56]protocol is kg_v1.0 [10:14:56]action value=close_receipt [10:14:56]process_action close_receipt [10:14:56]cmd_close_receipt [10:14:56]MH_GetDate [10:14:56]Write to MH i2c: F0 00 00 BA 2B D4 [10:14:56]Write i2c OK [10:14:56]MH_I2C_Read... [10:14:56]Read from MH i2c: F0 [10:14:56]MH_I2C_Read... [10:14:56]Read from MH i2c: F0 09 00 [10:14:56]MH_I2C_Read... [10:14:56]Read from MH i2c: F0 09 00 BA 2B 00 24 C1 1C 67 68 46 19 67 73 [10:14:56]GetLastDocTimeStamp 1729937598 [10:14:56]current date 1729937700 [10:14:56]FM_GetShiftState [10:14:56]SAM_PROTO_GetShiftState [10:14:56]wFMCommunicate request_size=4 [10:14:56]MH_SAM_APDU [10:14:56]CAPDU: 80 13 01 00 [10:14:56]Write to MH i2c: E2 08 00 BB 2B 80 13 01 00 00 00 00 00 63 [10:14:56]Write i2c OK [10:14:56]MH_I2C_Read... [10:14:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:56]Read from MH i2c: E2 [10:14:56]MH_I2C_Read... [10:14:56]Read from MH i2c: E2 0E 00 [10:14:56]MH_I2C_Read... [10:14:56]Read from MH i2c: E2 0E 00 BB 2B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 72 [10:14:56]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:14:56]wFMCommunicate OK [10:14:56]SAM_PROTO_GetShiftState done [10:14:56]FM_GetShiftState done [10:14:56]opened in 1729900879 [10:14:56]opened+sec_in_day 1729987279 [10:14:56]quantity*price = 20041 [10:14:56]sum+1 = 20042 [10:14:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 111 26.10.2024 10:15 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201349 ФПД: 277009828317165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101500&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201349&fm=277009828317165&tin=02508201610067®Number=0000000000091777&sum=20000 [10:14:57]StoreToDocumentArchive [10:14:57]shift 543 fd 201349 [10:14:57]save to /storage/0543/doc_00201349 [10:14:57]save last doc name /storage/0543/doc_00201349 to /storage/kkm_last_doc_name [10:14:57]save OK [10:14:57]Clear old archive folders... [10:14:57]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:14:57]tlvbuf is 0176B6A0 [10:14:57]SAM_PROTO_ClearQueue [10:14:57]wFMCommunicate request_size=4 [10:14:57]MH_SAM_APDU [10:14:57]CAPDU: 80 09 00 00 [10:14:57]Write to MH i2c: E2 08 00 C8 2B 80 09 00 00 00 00 00 00 65 [10:14:57]Write i2c OK [10:14:57]MH_I2C_Read... [10:14:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:57]Read from MH i2c: E2 [10:14:57]MH_I2C_Read... [10:14:57]Read from MH i2c: E2 03 00 [10:14:57]MH_I2C_Read... [10:14:57]Read from MH i2c: E2 03 00 C8 2B 00 90 00 67 [10:14:57]RAPDU: 90 00 [10:14:57]wFMCommunicate OK [10:14:57]SAM_PROTO_ClearQueue done [10:14:57]KKMCreateOFDPacket [10:14:57]OFDProtocolAddRootSTLVToBuf [10:14:57]FM_MakeSignedData [10:14:57]FM_MakeSignedData [10:14:57]SAM_PROTO_SignData [10:14:57]wFMCommunicate request_size=4 [10:14:57]MH_SAM_APDU [10:14:57]CAPDU: 80 0D 01 02 [10:14:57]Write to MH i2c: E2 08 00 C9 2B 80 0D 01 02 00 00 00 00 6D [10:14:57]Write i2c OK [10:14:57]MH_I2C_Read... [10:14:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:57]Read from MH i2c: E2 [10:14:57]MH_I2C_Read... [10:14:57]Read from MH i2c: E2 03 00 [10:14:57]MH_I2C_Read... [10:14:57]Read from MH i2c: E2 03 00 C9 2B 00 90 00 68 [10:14:57]RAPDU: 90 00 [10:14:57]wFMCommunicate OK [10:14:57]wFMCommunicate request_size=255 [10:14:57]MH_SAM_APDU [10:14: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 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 49 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 50 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 6F 00 00 00 F4 03 04 00 24 C1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 85 12 03 00 35 04 06 00 [10:14:57]Write to MH i2c: E2 02 01 CA 2B 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 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 49 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 50 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 6F 00 00 00 F4 03 04 00 24 C1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 85 12 03 00 35 04 06 00 00 00 79 [10:14:57]Write i2c OK [10:14:57]MH_I2C_Read... [10:14:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:58]Read from MH i2c: E2 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 03 00 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 03 00 CA 2B 00 90 00 69 [10:14:58]RAPDU: 90 00 [10:14:58]wFMCommunicate OK [10:14:58]wFMCommunicate request_size=11 [10:14:58]MH_SAM_APDU [10:14:58]CAPDU: 80 0D 02 02 06 FB F0 60 6A 87 ED [10:14:58]Write to MH i2c: E2 0E 00 CB 2B 80 0D 02 02 06 00 FB F0 60 6A 87 ED 00 00 A5 [10:14:58]Write i2c OK [10:14:58]MH_I2C_Read... [10:14:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:58]Read from MH i2c: E2 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 03 00 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 03 00 CB 2B 00 90 00 6A [10:14:58]RAPDU: 90 00 [10:14:58]wFMCommunicate OK [10:14:58]wFMCommunicate request_size=4 [10:14:58]MH_SAM_APDU [10:14:58]CAPDU: 80 0D 03 02 [10:14:58]Write to MH i2c: E2 08 00 CC 2B 80 0D 03 02 00 00 00 00 72 [10:14:58]Write i2c OK [10:14:58]MH_I2C_Read... [10:14:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:58]Read from MH i2c: E2 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 0B 00 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 0B 00 CC 2B 00 F2 D8 3F CA D2 E7 41 7F 90 00 BF [10:14:58]RAPDU: F2 D8 3F CA D2 E7 41 7F 90 00 [10:14:58]wFMCommunicate OK [10:14:58]SAM_PROTO_SignData done [10:14:58]FM_MakeSignedData done [10:14:58]CreateOFDProtocolMessage [10:14:58]wFMCommunicate request_size=4 [10:14:58]MH_SAM_APDU [10:14:58]CAPDU: 80 11 00 00 [10:14:58]Write to MH i2c: E2 08 00 CD 2B 80 11 00 00 00 00 00 00 72 [10:14:58]Write i2c OK [10:14:58]MH_I2C_Read... [10:14:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:58]Read from MH i2c: E2 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 17 00 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 17 00 CD 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C7 [10:14:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:14:58]wFMCommunicate OK [10:14:58]CreateOFDProtocolMessage done [10:14:58]OFDSenderStorePacket 201349 [10:14:58]StoreOFDPacket docnum=201349 [10:14:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 E7 37 08 01 89 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 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 49 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 50 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 6F 00 00 00 F4 03 04 00 24 C1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 85 12 03 00 35 04 06 00 FB F0 60 6A 87 ED F2 D8 3F CA D2 E7 41 7F [10:14:58]CheckFolder [10:14:58]dirname=/storage/ofd_packets [10:14:58]CheckFolder done [10:14:58]ProducePacketName [10:14:58]name=ofd_packets/00201349 [10:14:58]NVStorageSaveData ofd_packets/00201349 [10:14:58]File name is /storage/ofd_packets/00201349 [10:14:58]Write 302 bytes [10:14:58]NVStorageSaveData done [10:14:58]OFDSenderStorePacket done [10:14:58]KKMCreateOFDPacket done [10:14:58]NVStorageSaveData kkm_last_timestamp [10:14:58]File name is /storage/kkm_last_timestamp [10:14:58]Write 4 bytes [10:14:58]NVStorageSaveData done [10:14:58]ExternCall_PrintAddStr [10:14:58]wPrintStart [10:14:58]Write to MH i2c: 01 00 00 CE 2B F9 [10:14:58]Write i2c OK [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: 01 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: 01 07 00 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: 01 07 00 CE 2B 00 00 00 00 00 FF 0F 0E [10:14:58]RasterBufferAndPrint [10:14:58]line Счет N : (1)449097 [10:14:58]line ИНН: 02508201610067 [10:14:58]line Контрольно-Кассовый Чек [10:14:58]line ПРОДАЖА [10:14:58]line ТРК (МРК, ГНК) : 63 [10:14:58]line Товар: 2710124130 [10:14:58]line SUPER 92-К-5 [10:14:58]line 2.930 * 68.40 [10:14:58]line = 200.41 [10:14:58]line НДС 12% НСП 1% [10:14:58]line > о реализуемом товаре [10:14:58]line ОКРУГЛЕНИЕ: -0.41 [10:14:58]line ИТОГО: 200.00 [10:14:58]line Внесено: 200.00 [10:14:58]line СДАЧА: 0.00 [10:14:58]line НСП 1% : 1.77 [10:14:58]line НДС 12% : 21.28 [10:14:58]line Наличными: 200.00 [10:14:58]line Безнал.: 0.00 [10:14:58]line Место: АЗС № 171 "Партнер Нефть" [10:14:58]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:14:58]line СНО: Общий режим [10:14:58]line Чек 111 26.10.2024 10:15 [10:14:58]line Смена: 543 ФФД: 1.0 [10:14:58]line ЗНМ: 0300000109 [10:14:58]line РНМ: 0000000000091777 [10:14:58]line Версия ККМ: 001 [10:14:58]line ФМ: 0000000000871756 [10:14:58]line ФД: 201349 [10:14:58]line ФПД: 277009828317165 [10:14:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101500&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201349&fm=277009828317165&tin=02508201610067®Number=0000000000091777&sum=20000 [10:14:58]written 0, free lines is 4095 [10:14:58]OFD Sender: Processing packet 201349 [packets to send 112, broken 111] [10:14:58]ProducePacketName [10:14:58]name=ofd_packets/00201349 [10:14:58]OFD Sender: To server: pG, [10:14:58]CommunicateWithHost lk.salyk.kg:30040 [10:14:58]ConnectInit lk.salyk.kg [10:14:58]Connected sock=11 [10:14:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 E7 37 08 01 89 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 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 49 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 50 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 6F 00 00 00 F4 03 04 00 24 C1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 85 12 03 00 35 04 06 00 FB F0 60 6A 87 ED F2 D8 3F CA D2 E7 41 7F [10:14:58]Write to MH i2c: 01 00 00 F9 2B 24 [10:14:58]Write i2c OK [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: 01 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: 01 07 00 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: 01 07 00 F9 2B 00 00 00 00 00 97 0C CE [10:14:58]RasterBufferAndPrint [10:14:58]line [10:14:58]line [10:14:58]line [10:14:58]line [10:14:58]line [10:14:58]written 0, free lines is 3229 [10:14:58]MH_Cut [10:14:58]Write to MH i2c: D1 01 00 00 2C 01 FE [10:14:58]Write i2c OK [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: D1 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: D1 01 00 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: D1 01 00 00 2C 00 FD [10:14:58]Write to MH i2c: 01 00 00 01 2C 2D [10:14:58]Write i2c OK [10:14:58]MH_I2C_Read... [10:14:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B5 79 47 00 F4 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 85 12 03 00 F4 03 04 00 CD 6C 1C 67 B6 04 01 00 00 04 32 45 4C C8 5E 43 0A [10:14:58]CommunicateWithHost err = 0 [10:14:58]CheckOFDResponse [10:14:58]1017 (14) - 77093643461234 [10:14:58]1041 (16) - 0000000000871756 [10:14:58]1040 (4) - 201349 [10:14:58]1012 (4) - 26.10.2024 04:15 [10:14:58]1206 (1) - 0 [10:14:58]OFD Sender: Remove packet 201349 [10:14:58]ProducePacketName [10:14:58]name=ofd_packets/00201349 [10:14:58]NVStorageDeleteData [10:14:59]OFD Sender: No OFD packet to send [10:14:59]*** Cut start [10:14:59]*** Purtial cut [10:14:59]*** Stage 1: CUTSNS_PIN = 1 [10:14:59]Read from MH i2c: 01 [10:14:59]*** Stop cut motor [10:14:59]*** Cut end [10:14:59]MH_I2C_Read... [10:14:59]Read from MH i2c: 01 07 00 [10:14:59]MH_I2C_Read... [10:14:59]Read from MH i2c: 01 07 00 01 2C 00 00 00 00 00 FF 0F 42 [10:14:59]process_action close_receipt done [10:14:59]requested_data is exist [10:14:59]produce_requested_data [10:14:59]requested_item fm.sn is exist - process it [10:14:59]wFMCommunicate request_size=4 [10:14:59]MH_SAM_APDU [10:14:59]CAPDU: 80 11 00 00 [10:14:59]Write to MH i2c: E2 08 00 02 2C 80 11 00 00 00 00 00 00 A8 [10:14:59]Write i2c OK [10:14:59]MH_I2C_Read... [10:14:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:59]Read from MH i2c: E2 [10:14:59]MH_I2C_Read... [10:14:59]Read from MH i2c: E2 17 00 [10:14:59]MH_I2C_Read... [10:14:59]Read from MH i2c: E2 17 00 02 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FD [10:14:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:14:59]wFMCommunicate OK [10:14:59]requested_item fd.num is exist - process it [10:14:59]SAM_PROTO_GetFieldsCounters [10:14:59]wFMCommunicate request_size=4 [10:14:59]MH_SAM_APDU [10:14:59]CAPDU: 80 13 00 00 [10:14:59]Write to MH i2c: E2 08 00 03 2C 80 13 00 00 00 00 00 00 AB [10:14:59]Write i2c OK [10:14:59]MH_I2C_Read... [10:15:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:00]Read from MH i2c: E2 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 62 00 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 62 00 03 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 85 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [10:15:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 85 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:15:00]wFMCommunicate OK [10:15:00]SAM_PROTO_GetFieldsCounters done [10:15:00]requested_item shift.num is exist - process it [10:15:00]requested_item shift.opened is exist - process it [10:15:00]req_shift_opened [10:15:00]FM_GetShiftState [10:15:00]SAM_PROTO_GetShiftState [10:15:00]wFMCommunicate request_size=4 [10:15:00]MH_SAM_APDU [10:15:00]CAPDU: 80 13 01 00 [10:15:00]Write to MH i2c: E2 08 00 04 2C 80 13 01 00 00 00 00 00 AD [10:15:00]Write i2c OK [10:15:00]MH_I2C_Read... [10:15:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:00]Read from MH i2c: E2 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 0E 00 [10:15:00]MH_I2C_Read... [10:15:00]Read from MH i2c: E2 0E 00 04 2C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 BC [10:15:00]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:15:00]wFMCommunicate OK [10:15:00]SAM_PROTO_GetShiftState done [10:15:00]FM_GetShiftState done [10:15:00]req_shift_opened done [10:15:00]requested_item shift.open_date is exist - process it [10:15:00]req_shift_open_date [10:15:00]req_shift_open_date done [10:15:00]produce_requested_data done [10:15:00]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201349,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:15:00]process_action_free close_receipt [10:15:00]json_value_free [10:15:00]json_value_free done [10:15:00]process_json_proto returns [10:15:00]Send response to host [10:15:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201349,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:15:00]free response buf [10:15:00]execute_script done [10:15:00]execute_script returns [10:15:00]free content buf [10:15:00]Sock 9.Close socket [10:15:00]Sock 9.Thread stoped [10:15:04]OFD Sender: No OFD packet to send [10:15:09]OFD Sender: No OFD packet to send [10:15:14]OFD Sender: No OFD packet to send [10:15:19]OFD Sender: No OFD packet to send [10:15:24]OFD Sender: No OFD packet to send [10:15:29]OFD Sender: No OFD packet to send [10:15:34]OFD Sender: No OFD packet to send [10:15:39]OFD Sender: No OFD packet to send [10:15:44]OFD Sender: No OFD packet to send [10:15:49]OFD Sender: No OFD packet to send [10:15:54]OFD Sender: No OFD packet to send [10:15:59]OFD Sender: No OFD packet to send [10:16:04]OFD Sender: No OFD packet to send [10:16:09]OFD Sender: No OFD packet to send [10:16:14]OFD Sender: No OFD packet to send [10:16:19]OFD Sender: No OFD packet to send [10:16:24]OFD Sender: No OFD packet to send [10:16:29]OFD Sender: No OFD packet to send [10:16:34]OFD Sender: No OFD packet to send [10:16:39]OFD Sender: No OFD packet to send [10:16:44]OFD Sender: No OFD packet to send [10:16:49]OFD Sender: No OFD packet to send [10:16:54]OFD Sender: No OFD packet to send [10:16:59]OFD Sender: No OFD packet to send [10:17:04]OFD Sender: No OFD packet to send [10:17:09]OFD Sender: No OFD packet to send [10:17:14]OFD Sender: No OFD packet to send [10:17:19]OFD Sender: No OFD packet to send [10:17:24]OFD Sender: No OFD packet to send [10:17:29]OFD Sender: No OFD packet to send [10:17:34]OFD Sender: No OFD packet to send [10:17:39]OFD Sender: No OFD packet to send [10:17:44]OFD Sender: No OFD packet to send [10:17:49]OFD Sender: No OFD packet to send [10:17:54]accept exits with 7 [10:17:54]New connection [10:17:54]New thread 3067415908 created [10:17:54]Thread 3067559268 joined [10:17:54]Waiting for new connection... [10:17:54] Sock 7.Parse request [10:17:54]Sock 7.Check first char [10:17:54]Sock 7.First char is OK [10:17:54]request: POST /json_proto HTTP/1.0 [10:17:54]Method: POST [10:17:54]URL: /json_proto [10:17:54]Method is POST - this is cgi request [10:17:54]url: /json_proto [10:17:54]query_string will be loaded in cgi processing [10:17:54]execute_cgi json_proto POST (null) [10:17:54]execute_cgi path=json_proto method=POST [10:17:54]POST find Content-Length [10:17:54]Host: 172.17.63.195:8080 [10:17:54]Content-Length: 677 [10:17:54]Content-Type: application/json [10:17:54] [10:17:54]POST finish read [10:17:54]Found Content-Length = 677 [10:17:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:17:54]execute_script... [10:17: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)449098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:17:54]POST & json_proto [10:17:54]process_json_proto [10:17:54]json parsed OK: [10:17:54]protocol is kg_v1.0 [10:17:54]action value=close_receipt [10:17:54]process_action close_receipt [10:17:54]cmd_close_receipt [10:17:54]MH_GetDate [10:17:54]Write to MH i2c: F0 00 00 05 2C 20 [10:17:54]Write i2c OK [10:17:54]MH_I2C_Read... [10:17:54]Read from MH i2c: F0 [10:17:54]MH_I2C_Read... [10:17:54]Read from MH i2c: F0 09 00 [10:17:54]MH_I2C_Read... [10:17:54]Read from MH i2c: F0 09 00 05 2C 00 D5 C1 1C 67 68 46 19 67 70 [10:17:54]GetLastDocTimeStamp 1729937700 [10:17:54]current date 1729937877 [10:17:54]FM_GetShiftState [10:17:54]SAM_PROTO_GetShiftState [10:17:54]wFMCommunicate request_size=4 [10:17:54]MH_SAM_APDU [10:17:54]CAPDU: 80 13 01 00 [10:17:54]Write to MH i2c: E2 08 00 06 2C 80 13 01 00 00 00 00 00 AF [10:17:54]Write i2c OK [10:17:54]MH_I2C_Read... [10:17:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:54]Read from MH i2c: E2 [10:17:54]MH_I2C_Read... [10:17:54]Read from MH i2c: E2 0E 00 [10:17:54]MH_I2C_Read... [10:17:54]Read from MH i2c: E2 0E 00 06 2C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 BE [10:17:54]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:17:54]wFMCommunicate OK [10:17:54]SAM_PROTO_GetShiftState done [10:17:54]FM_GetShiftState done [10:17:54]opened in 1729900879 [10:17:54]opened+sec_in_day 1729987279 [10:17:54]quantity*price = 40006 [10:17:54]sum+1 = 40007 [10:17:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 112 26.10.2024 10:17 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201350 ФПД: 27538482199887 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101757&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201350&fm=27538482199887&tin=02508201610067®Number=0000000000091777&sum=40000 [10:17:55]StoreToDocumentArchive [10:17:55]shift 543 fd 201350 [10:17:55]save to /storage/0543/doc_00201350 [10:17:55]save last doc name /storage/0543/doc_00201350 to /storage/kkm_last_doc_name [10:17:55]save OK [10:17:55]Clear old archive folders... [10:17:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:17:55]tlvbuf is 01777900 [10:17:55]SAM_PROTO_ClearQueue [10:17:55]wFMCommunicate request_size=4 [10:17:55]MH_SAM_APDU [10:17:55]CAPDU: 80 09 00 00 [10:17:55]Write to MH i2c: E2 08 00 13 2C 80 09 00 00 00 00 00 00 B1 [10:17:55]Write i2c OK [10:17:55]MH_I2C_Read... [10:17:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:55]Read from MH i2c: E2 [10:17:55]MH_I2C_Read... [10:17:55]Read from MH i2c: E2 03 00 [10:17:55]MH_I2C_Read... [10:17:55]Read from MH i2c: E2 03 00 13 2C 00 90 00 B3 [10:17:55]RAPDU: 90 00 [10:17:55]wFMCommunicate OK [10:17:55]SAM_PROTO_ClearQueue done [10:17:55]KKMCreateOFDPacket [10:17:55]OFDProtocolAddRootSTLVToBuf [10:17:55]FM_MakeSignedData [10:17:55]FM_MakeSignedData [10:17:55]SAM_PROTO_SignData [10:17:55]wFMCommunicate request_size=4 [10:17:55]MH_SAM_APDU [10:17:55]CAPDU: 80 0D 01 02 [10:17:55]Write to MH i2c: E2 08 00 14 2C 80 0D 01 02 00 00 00 00 B9 [10:17:55]Write i2c OK [10:17:55]MH_I2C_Read... [10:17:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:55]Read from MH i2c: E2 [10:17:55]MH_I2C_Read... [10:17:55]Read from MH i2c: E2 03 00 [10:17:55]MH_I2C_Read... [10:17:55]Read from MH i2c: E2 03 00 14 2C 00 90 00 B4 [10:17:55]RAPDU: 90 00 [10:17:55]wFMCommunicate OK [10:17:55]wFMCommunicate request_size=255 [10:17:55]MH_SAM_APDU [10:17:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 70 00 00 00 F4 03 04 00 D5 C1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 86 12 03 00 35 04 06 00 19 [10:17:55]Write to MH i2c: E2 02 01 15 2C 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 32 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 70 00 00 00 F4 03 04 00 D5 C1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 86 12 03 00 35 04 06 00 19 00 00 7A [10:17:55]Write i2c OK [10:17:55]MH_I2C_Read... [10:17:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:55]Read from MH i2c: E2 [10:17:55]MH_I2C_Read... [10:17:55]Read from MH i2c: E2 03 00 [10:17:55]MH_I2C_Read... [10:17:55]Read from MH i2c: E2 03 00 15 2C 00 90 00 B5 [10:17:55]RAPDU: 90 00 [10:17:55]wFMCommunicate OK [10:17:55]wFMCommunicate request_size=10 [10:17:55]MH_SAM_APDU [10:17:55]CAPDU: 80 0D 02 02 05 0B CD 72 FD 4F [10:17:55]Write to MH i2c: E2 0D 00 16 2C 80 0D 02 02 05 00 0B CD 72 FD 4F 00 00 5C [10:17:55]Write i2c OK [10:17:55]MH_I2C_Read... [10:17:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:55]Read from MH i2c: E2 [10:17:55]MH_I2C_Read... [10:17:55]Read from MH i2c: E2 03 00 [10:17:55]MH_I2C_Read... [10:17:55]Read from MH i2c: E2 03 00 16 2C 00 90 00 B6 [10:17:55]RAPDU: 90 00 [10:17:55]wFMCommunicate OK [10:17:55]wFMCommunicate request_size=4 [10:17:55]MH_SAM_APDU [10:17:55]CAPDU: 80 0D 03 02 [10:17:55]Write to MH i2c: E2 08 00 17 2C 80 0D 03 02 00 00 00 00 BE [10:17:55]Write i2c OK [10:17:55]MH_I2C_Read... [10:17:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:55]Read from MH i2c: E2 [10:17:55]MH_I2C_Read... [10:17:55]Read from MH i2c: E2 0B 00 [10:17:55]MH_I2C_Read... [10:17:55]Read from MH i2c: E2 0B 00 17 2C 00 69 9C 00 25 1E 58 31 23 90 00 B3 [10:17:55]RAPDU: 69 9C 00 25 1E 58 31 23 90 00 [10:17:55]wFMCommunicate OK [10:17:55]SAM_PROTO_SignData done [10:17:55]FM_MakeSignedData done [10:17:55]CreateOFDProtocolMessage [10:17:55]wFMCommunicate request_size=4 [10:17:55]MH_SAM_APDU [10:17:55]CAPDU: 80 11 00 00 [10:17:55]Write to MH i2c: E2 08 00 18 2C 80 11 00 00 00 00 00 00 BE [10:17:55]Write i2c OK [10:17:55]MH_I2C_Read... [10:17:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:55]Read from MH i2c: E2 [10:17:55]MH_I2C_Read... [10:17:55]Read from MH i2c: E2 17 00 [10:17:55]MH_I2C_Read... [10:17:55]Read from MH i2c: E2 17 00 18 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 13 [10:17:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:17:55]wFMCommunicate OK [10:17:55]CreateOFDProtocolMessage done [10:17:55]OFDSenderStorePacket 201350 [10:17:55]StoreOFDPacket docnum=201350 [10:17:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 9B F7 07 01 89 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 70 00 00 00 F4 03 04 00 D5 C1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 86 12 03 00 35 04 06 00 19 0B CD 72 FD 4F 69 9C 00 25 1E 58 31 23 [10:17:55]CheckFolder [10:17:55]dirname=/storage/ofd_packets [10:17:55]CheckFolder done [10:17:55]ProducePacketName [10:17:55]name=ofd_packets/00201350 [10:17:55]NVStorageSaveData ofd_packets/00201350 [10:17:55]File name is /storage/ofd_packets/00201350 [10:17:55]Write 301 bytes [10:17:55]NVStorageSaveData done [10:17:55]OFDSenderStorePacket done [10:17:55]KKMCreateOFDPacket done [10:17:55]NVStorageSaveData kkm_last_timestamp [10:17:55]File name is /storage/kkm_last_timestamp [10:17:55]Write 4 bytes [10:17:55]NVStorageSaveData done [10:17:55]ExternCall_PrintAddStr [10:17:55]wPrintStart [10:17:55]Write to MH i2c: 01 00 00 19 2C 45 [10:17:55]Write i2c OK [10:17:55]MH_I2C_Read... [10:17:55]Read from MH i2c: 01 [10:17:55]MH_I2C_Read... [10:17:55]Read from MH i2c: 01 07 00 [10:17:55]MH_I2C_Read... [10:17:55]Read from MH i2c: 01 07 00 19 2C 00 00 00 00 00 FF 0F 5A [10:17:55]RasterBufferAndPrint [10:17:55]line Счет N : (1)449098 [10:17:55]line ИНН: 02508201610067 [10:17:55]line Контрольно-Кассовый Чек [10:17:55]line ПРОДАЖА [10:17:55]line ТРК (МРК, ГНК) : 41 [10:17:55]line Товар: 2710124130 [10:17:55]line Аи-92-К-2 [10:17:55]line 5.980 * 66.90 [10:17:55]line = 400.06 [10:17:55]line НДС 12% НСП 1% [10:17:55]line > о реализуемом товаре [10:17:55]line ОКРУГЛЕНИЕ: -0.06 [10:17:55]line ИТОГО: 400.00 [10:17:55]line Внесено: 400.00 [10:17:55]line СДАЧА: 0.00 [10:17:55]line НСП 1% : 3.54 [10:17:55]line НДС 12% : 42.48 [10:17:55]line Наличными: 400.00 [10:17:55]line Безнал.: 0.00 [10:17:55]line Место: АЗС № 171 "Партнер Нефть" [10:17:55]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:17:55]line СНО: Общий режим [10:17:55]line Чек 112 26.10.2024 10:17 [10:17:55]line Смена: 543 ФФД: 1.0 [10:17:55]line ЗНМ: 0300000109 [10:17:55]line РНМ: 0000000000091777 [10:17:55]line Версия ККМ: 001 [10:17:55]line ФМ: 0000000000871756 [10:17:55]line ФД: 201350 [10:17:55]line ФПД: 27538482199887 [10:17:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101757&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201350&fm=27538482199887&tin=02508201610067®Number=0000000000091777&sum=40000 [10:17:56]OFD Sender: Processing packet 201350 [packets to send 112, broken 111] [10:17:56]ProducePacketName [10:17:56]name=ofd_packets/00201350 [10:17:56]OFD Sender: To server: pG, [10:17:56]CommunicateWithHost lk.salyk.kg:30040 [10:17:56]ConnectInit lk.salyk.kg [10:17:56]written 0, free lines is 4095 [10:17:56]Connected sock=10 [10:17:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 9B F7 07 01 89 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 70 00 00 00 F4 03 04 00 D5 C1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 86 12 03 00 35 04 06 00 19 0B CD 72 FD 4F 69 9C 00 25 1E 58 31 23 [10:17:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 70 9D 47 00 D4 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 86 12 03 00 F4 03 04 00 7F 6D 1C 67 B6 04 01 00 00 0D EB 50 89 CC 42 45 E7 [10:17:56]CommunicateWithHost err = 0 [10:17:56]CheckOFDResponse [10:17:56]1017 (14) - 77093643461234 [10:17:56]1041 (16) - 0000000000871756 [10:17:56]1040 (4) - 201350 [10:17:56]1012 (4) - 26.10.2024 04:18 [10:17:56]1206 (1) - 0 [10:17:56]OFD Sender: Remove packet 201350 [10:17:56]ProducePacketName [10:17:56]name=ofd_packets/00201350 [10:17:56]NVStorageDeleteData [10:17:56]Write to MH i2c: 01 00 00 44 2C 70 [10:17:56]Write i2c OK [10:17:56]MH_I2C_Read... [10:17:56]Read from MH i2c: 01 [10:17:56]MH_I2C_Read... [10:17:56]Read from MH i2c: 01 07 00 [10:17:56]MH_I2C_Read... [10:17:56]Read from MH i2c: 01 07 00 44 2C 00 00 00 00 00 99 0C 1C [10:17:56]RasterBufferAndPrint [10:17:56]line [10:17:56]line [10:17:56]line [10:17:56]line [10:17:56]line [10:17:56]written 0, free lines is 3233 [10:17:56]MH_Cut [10:17:56]Write to MH i2c: D1 01 00 4B 2C 01 49 [10:17:56]Write i2c OK [10:17:56]MH_I2C_Read... [10:17:56]Read from MH i2c: D1 [10:17:56]MH_I2C_Read... [10:17:56]Read from MH i2c: D1 01 00 [10:17:56]MH_I2C_Read... [10:17:56]Read from MH i2c: D1 01 00 4B 2C 00 48 [10:17:56]Write to MH i2c: 01 00 00 4C 2C 78 [10:17:56]Write i2c OK [10:17:56]MH_I2C_Read... [10:17:56]OFD Sender: No OFD packet to send [10:17:57]*** Cut start [10:17:57]*** Purtial cut [10:17:57]*** CUTSNS_PIN = 0 [10:17:57]*** Stage 1: CUTSNS_PIN = 1 [10:17:59]Read from MH i2c: 01 [10:17:59]MH_I2C_Read... [10:17:59]*** Stop cut motor [10:17:59]*** Cut end [10:17:59]Read from MH i2c: 01 07 00 [10:17:59]MH_I2C_Read... [10:17:59]Read from MH i2c: 01 07 00 4C 2C 00 00 00 00 00 FF 0F 8D [10:17:59]process_action close_receipt done [10:17:59]requested_data is exist [10:17:59]produce_requested_data [10:17:59]requested_item fm.sn is exist - process it [10:17:59]wFMCommunicate request_size=4 [10:17:59]MH_SAM_APDU [10:17:59]CAPDU: 80 11 00 00 [10:17:59]Write to MH i2c: E2 08 00 4D 2C 80 11 00 00 00 00 00 00 F3 [10:17:59]Write i2c OK [10:17:59]MH_I2C_Read... [10:17:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:59]Read from MH i2c: E2 [10:17:59]MH_I2C_Read... [10:17:59]Read from MH i2c: E2 17 00 [10:17:59]MH_I2C_Read... [10:17:59]Read from MH i2c: E2 17 00 4D 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 48 [10:17:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:17:59]wFMCommunicate OK [10:17:59]requested_item fd.num is exist - process it [10:17:59]SAM_PROTO_GetFieldsCounters [10:17:59]wFMCommunicate request_size=4 [10:17:59]MH_SAM_APDU [10:17:59]CAPDU: 80 13 00 00 [10:17:59]Write to MH i2c: E2 08 00 4E 2C 80 13 00 00 00 00 00 00 F6 [10:17:59]Write i2c OK [10:17:59]MH_I2C_Read... [10:17:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:59]Read from MH i2c: E2 [10:17:59]MH_I2C_Read... [10:17:59]Read from MH i2c: E2 62 00 [10:17:59]MH_I2C_Read... [10:17:59]Read from MH i2c: E2 62 00 4E 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 86 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [10:17:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 86 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:17:59]wFMCommunicate OK [10:17:59]SAM_PROTO_GetFieldsCounters done [10:17:59]requested_item shift.num is exist - process it [10:17:59]requested_item shift.opened is exist - process it [10:17:59]req_shift_opened [10:17:59]FM_GetShiftState [10:17:59]SAM_PROTO_GetShiftState [10:17:59]wFMCommunicate request_size=4 [10:17:59]MH_SAM_APDU [10:17:59]CAPDU: 80 13 01 00 [10:17:59]Write to MH i2c: E2 08 00 4F 2C 80 13 01 00 00 00 00 00 F8 [10:17:59]Write i2c OK [10:17:59]MH_I2C_Read... [10:17:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:59]Read from MH i2c: E2 [10:17:59]MH_I2C_Read... [10:17:59]Read from MH i2c: E2 0E 00 [10:17:59]MH_I2C_Read... [10:17:59]Read from MH i2c: E2 0E 00 4F 2C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 07 [10:17:59]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:17:59]wFMCommunicate OK [10:17:59]SAM_PROTO_GetShiftState done [10:17:59]FM_GetShiftState done [10:17:59]req_shift_opened done [10:17:59]requested_item shift.open_date is exist - process it [10:17:59]req_shift_open_date [10:17:59]req_shift_open_date done [10:17:59]produce_requested_data done [10:17:59]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201350,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:17:59]process_action_free close_receipt [10:17:59]json_value_free [10:17:59]json_value_free done [10:17:59]process_json_proto returns [10:17:59]Send response to host [10:17:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201350,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:17:59]free response buf [10:17:59]execute_script done [10:17:59]execute_script returns [10:17:59]free content buf [10:17:59]Sock 7.Close socket [10:17:59]Sock 7.Thread stoped [10:18:01]OFD Sender: No OFD packet to send [10:18:06]OFD Sender: No OFD packet to send [10:18:11]OFD Sender: No OFD packet to send [10:18:15]accept exits with 9 [10:18:15]New connection [10:18:15]New thread 3067559268 created [10:18:15]Thread 3067415908 joined [10:18:15]Waiting for new connection... [10:18:15] Sock 9.Parse request [10:18:15]Sock 9.Check first char [10:18:15]Sock 9.First char is OK [10:18:15]request: POST /json_proto HTTP/1.0 [10:18:15]Method: POST [10:18:15]URL: /json_proto [10:18:15]Method is POST - this is cgi request [10:18:15]url: /json_proto [10:18:15]query_string will be loaded in cgi processing [10:18:15]execute_cgi json_proto POST (null) [10:18:15]execute_cgi path=json_proto method=POST [10:18:15]POST find Content-Length [10:18:15]Host: 172.17.63.195:8080 [10:18:15]Content-Length: 677 [10:18:15]Content-Type: application/json [10:18:15] [10:18:15]POST finish read [10:18:15]Found Content-Length = 677 [10:18:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:15]execute_script... [10:18:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:15]POST & json_proto [10:18:15]process_json_proto [10:18:15]json parsed OK: [10:18:15]protocol is kg_v1.0 [10:18:15]action value=close_receipt [10:18:15]process_action close_receipt [10:18:15]cmd_close_receipt [10:18:15]MH_GetDate [10:18:15]Write to MH i2c: F0 00 00 50 2C 6B [10:18:15]Write i2c OK [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: F0 [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: F0 09 00 [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: F0 09 00 50 2C 00 EB C1 1C 67 68 46 19 67 D1 [10:18:15]GetLastDocTimeStamp 1729937877 [10:18:15]current date 1729937899 [10:18:15]FM_GetShiftState [10:18:15]SAM_PROTO_GetShiftState [10:18:15]wFMCommunicate request_size=4 [10:18:15]MH_SAM_APDU [10:18:15]CAPDU: 80 13 01 00 [10:18:15]Write to MH i2c: E2 08 00 51 2C 80 13 01 00 00 00 00 00 FA [10:18:15]Write i2c OK [10:18:15]MH_I2C_Read... [10:18:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:15]Read from MH i2c: E2 [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: E2 0E 00 [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: E2 0E 00 51 2C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 09 [10:18:15]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:18:15]wFMCommunicate OK [10:18:15]SAM_PROTO_GetShiftState done [10:18:15]FM_GetShiftState done [10:18:15]opened in 1729900879 [10:18:15]opened+sec_in_day 1729987279 [10:18:15]quantity*price = 30038 [10:18:15]sum+1 = 30039 [10:18:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 113 26.10.2024 10:18 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201351 ФПД: 171276408029349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101819&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201351&fm=171276408029349&tin=02508201610067®Number=0000000000091777&sum=30000 [10:18:16]StoreToDocumentArchive [10:18:16]shift 543 fd 201351 [10:18:16]save to /storage/0543/doc_00201351 [10:18:16]save last doc name /storage/0543/doc_00201351 to /storage/kkm_last_doc_name [10:18:16]save OK [10:18:16]Clear old archive folders... [10:18:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:18:16]tlvbuf is B6F6ED40 [10:18:16]SAM_PROTO_ClearQueue [10:18:16]wFMCommunicate request_size=4 [10:18:16]MH_SAM_APDU [10:18:16]CAPDU: 80 09 00 00 [10:18:16]Write to MH i2c: E2 08 00 5E 2C 80 09 00 00 00 00 00 00 FC [10:18:16]Write i2c OK [10:18:16]MH_I2C_Read... [10:18:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:16]Read from MH i2c: E2 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: E2 03 00 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: E2 03 00 5E 2C 00 90 00 FE [10:18:16]RAPDU: 90 00 [10:18:16]wFMCommunicate OK [10:18:16]SAM_PROTO_ClearQueue done [10:18:16]KKMCreateOFDPacket [10:18:16]OFDProtocolAddRootSTLVToBuf [10:18:16]FM_MakeSignedData [10:18:16]FM_MakeSignedData [10:18:16]SAM_PROTO_SignData [10:18:16]wFMCommunicate request_size=4 [10:18:16]MH_SAM_APDU [10:18:16]CAPDU: 80 0D 01 02 [10:18:16]Write to MH i2c: E2 08 00 5F 2C 80 0D 01 02 00 00 00 00 04 [10:18:16]Write i2c OK [10:18:16]MH_I2C_Read... [10:18:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:16]Read from MH i2c: E2 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: E2 03 00 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: E2 03 00 5F 2C 00 90 00 FF [10:18:16]RAPDU: 90 00 [10:18:16]wFMCommunicate OK [10:18:16]wFMCommunicate request_size=255 [10:18:16]MH_SAM_APDU [10:18:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 EB C1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 87 12 03 00 35 04 06 00 9B [10:18:16]Write to MH i2c: E2 02 01 60 2C 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 EB C1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 87 12 03 00 35 04 06 00 9B 00 00 84 [10:18:16]Write i2c OK [10:18:16]MH_I2C_Read... [10:18:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:16]Read from MH i2c: E2 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: E2 03 00 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: E2 03 00 60 2C 00 90 00 00 [10:18:16]RAPDU: 90 00 [10:18:16]wFMCommunicate OK [10:18:16]wFMCommunicate request_size=10 [10:18:16]MH_SAM_APDU [10:18:16]CAPDU: 80 0D 02 02 05 C6 65 75 80 A5 [10:18:16]Write to MH i2c: E2 0D 00 61 2C 80 0D 02 02 05 00 C6 65 75 80 A5 00 00 D6 [10:18:16]Write i2c OK [10:18:16]MH_I2C_Read... [10:18:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:16]Read from MH i2c: E2 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: E2 03 00 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: E2 03 00 61 2C 00 90 00 01 [10:18:16]RAPDU: 90 00 [10:18:16]wFMCommunicate OK [10:18:16]wFMCommunicate request_size=4 [10:18:16]MH_SAM_APDU [10:18:16]CAPDU: 80 0D 03 02 [10:18:16]Write to MH i2c: E2 08 00 62 2C 80 0D 03 02 00 00 00 00 09 [10:18:16]Write i2c OK [10:18:16]MH_I2C_Read... [10:18:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:16]Read from MH i2c: E2 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: E2 0B 00 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: E2 0B 00 62 2C 00 DE 75 DD 02 76 88 B9 01 90 00 F4 [10:18:16]RAPDU: DE 75 DD 02 76 88 B9 01 90 00 [10:18:16]wFMCommunicate OK [10:18:16]SAM_PROTO_SignData done [10:18:16]FM_MakeSignedData done [10:18:16]CreateOFDProtocolMessage [10:18:16]wFMCommunicate request_size=4 [10:18:16]MH_SAM_APDU [10:18:16]CAPDU: 80 11 00 00 [10:18:16]Write to MH i2c: E2 08 00 63 2C 80 11 00 00 00 00 00 00 09 [10:18:16]Write i2c OK [10:18:16]MH_I2C_Read... [10:18:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:16]Read from MH i2c: E2 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: E2 17 00 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: E2 17 00 63 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5E [10:18:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:18:16]wFMCommunicate OK [10:18:16]CreateOFDProtocolMessage done [10:18:16]OFDSenderStorePacket 201351 [10:18:16]StoreOFDPacket docnum=201351 [10:18:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 0B 23 07 01 7A 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 EB C1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 87 12 03 00 35 04 06 00 9B C6 65 75 80 A5 DE 75 DD 02 76 88 B9 01 [10:18:16]CheckFolder [10:18:16]dirname=/storage/ofd_packets [10:18:16]CheckFolder done [10:18:16]ProducePacketName [10:18:16]name=ofd_packets/00201351 [10:18:16]NVStorageSaveData ofd_packets/00201351 [10:18:16]File name is /storage/ofd_packets/00201351 [10:18:16]Write 301 bytes [10:18:16]NVStorageSaveData done [10:18:16]OFDSenderStorePacket done [10:18:16]KKMCreateOFDPacket done [10:18:16]NVStorageSaveData kkm_last_timestamp [10:18:16]File name is /storage/kkm_last_timestamp [10:18:16]Write 4 bytes [10:18:16]NVStorageSaveData done [10:18:16]ExternCall_PrintAddStr [10:18:16]wPrintStart [10:18:16]Write to MH i2c: 01 00 00 64 2C 90 [10:18:16]Write i2c OK [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: 01 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: 01 07 00 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: 01 07 00 64 2C 00 00 00 00 00 FF 0F A5 [10:18:16]RasterBufferAndPrint [10:18:16]line Счет N : (1)449099 [10:18:16]line ИНН: 02508201610067 [10:18:16]line Контрольно-Кассовый Чек [10:18:16]line ПРОДАЖА [10:18:16]line ТРК (МРК, ГНК) : 31 [10:18:16]line Товар: 2710124130 [10:18:16]line Аи-92-К-2 [10:18:16]line 4.490 * 66.90 [10:18:16]line = 300.38 [10:18:16]line НДС 12% НСП 1% [10:18:16]line > о реализуемом товаре [10:18:16]line ОКРУГЛЕНИЕ: -0.38 [10:18:16]line ИТОГО: 300.00 [10:18:16]line Внесено: 300.00 [10:18:16]line СДАЧА: 0.00 [10:18:16]line НСП 1% : 2.66 [10:18:16]line НДС 12% : 31.90 [10:18:16]line Наличными: 300.00 [10:18:16]line Безнал.: 0.00 [10:18:16]line Место: АЗС № 171 "Партнер Нефть" [10:18:16]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:18:16]line СНО: Общий режим [10:18:16]line Чек 113 26.10.2024 10:18 [10:18:16]line Смена: 543 ФФД: 1.0 [10:18:16]line ЗНМ: 0300000109 [10:18:16]line РНМ: 0000000000091777 [10:18:16]line Версия ККМ: 001 [10:18:16]line ФМ: 0000000000871756 [10:18:16]line ФД: 201351 [10:18:16]line ФПД: 171276408029349 [10:18:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101819&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201351&fm=171276408029349&tin=02508201610067®Number=0000000000091777&sum=30000 [10:18:17]OFD Sender: Processing packet 201351 [packets to send 112, broken 111] [10:18:17]ProducePacketName [10:18:17]name=ofd_packets/00201351 [10:18:17]OFD Sender: To server: pG, [10:18:17]CommunicateWithHost lk.salyk.kg:30040 [10:18:17]ConnectInit lk.salyk.kg [10:18:17]written 0, free lines is 4095 [10:18:17]Connected sock=10 [10:18:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 0B 23 07 01 7A 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 EB C1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 87 12 03 00 35 04 06 00 9B C6 65 75 80 A5 DE 75 DD 02 76 88 B9 01 [10:18:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 82 FA 47 00 76 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 87 12 03 00 F4 03 04 00 94 6D 1C 67 B6 04 01 00 00 5C 52 5F 9E EB 72 57 FD [10:18:17]CommunicateWithHost err = 0 [10:18:17]CheckOFDResponse [10:18:17]1017 (14) - 77093643461234 [10:18:17]1041 (16) - 0000000000871756 [10:18:17]1040 (4) - 201351 [10:18:17]1012 (4) - 26.10.2024 04:18 [10:18:17]1206 (1) - 0 [10:18:17]OFD Sender: Remove packet 201351 [10:18:17]ProducePacketName [10:18:17]name=ofd_packets/00201351 [10:18:17]NVStorageDeleteData [10:18:17]Write to MH i2c: 01 00 00 8F 2C BB [10:18:17]Write i2c OK [10:18:17]MH_I2C_Read... [10:18:17]Read from MH i2c: 01 [10:18:17]MH_I2C_Read... [10:18:17]Read from MH i2c: 01 07 00 [10:18:17]MH_I2C_Read... [10:18:17]Read from MH i2c: 01 07 00 8F 2C 00 00 00 00 00 A7 0C 75 [10:18:17]RasterBufferAndPrint [10:18:17]line [10:18:17]line [10:18:17]line [10:18:17]line [10:18:17]line [10:18:17]written 0, free lines is 3244 [10:18:17]MH_Cut [10:18:17]Write to MH i2c: D1 01 00 96 2C 01 94 [10:18:17]Write i2c OK [10:18:17]MH_I2C_Read... [10:18:17]Read from MH i2c: D1 [10:18:17]MH_I2C_Read... [10:18:17]Read from MH i2c: D1 01 00 [10:18:17]MH_I2C_Read... [10:18:17]Read from MH i2c: D1 01 00 96 2C 00 93 [10:18:17]Write to MH i2c: 01 00 00 97 2C C3 [10:18:17]Write i2c OK [10:18:17]MH_I2C_Read... [10:18:18]OFD Sender: No OFD packet to send [10:18:18]*** Cut start [10:18:18]*** Purtial cut [10:18:18]*** Stage 1: CUTSNS_PIN = 1 [10:18:18]Read from MH i2c: 01 [10:18:18]MH_I2C_Read... [10:18:18]*** Stop cut motor [10:18:18]*** Cut end [10:18:18]Read from MH i2c: 01 07 00 [10:18:18]MH_I2C_Read... [10:18:18]Read from MH i2c: 01 07 00 97 2C 00 00 00 00 00 FF 0F D8 [10:18:18]process_action close_receipt done [10:18:18]requested_data is exist [10:18:18]produce_requested_data [10:18:18]requested_item fm.sn is exist - process it [10:18:18]wFMCommunicate request_size=4 [10:18:18]MH_SAM_APDU [10:18:18]CAPDU: 80 11 00 00 [10:18:18]Write to MH i2c: E2 08 00 98 2C 80 11 00 00 00 00 00 00 3E [10:18:18]Write i2c OK [10:18:18]MH_I2C_Read... [10:18:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:18]Read from MH i2c: E2 [10:18:18]MH_I2C_Read... [10:18:18]Read from MH i2c: E2 17 00 [10:18:18]MH_I2C_Read... [10:18:18]Read from MH i2c: E2 17 00 98 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 93 [10:18:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:18:18]wFMCommunicate OK [10:18:18]requested_item fd.num is exist - process it [10:18:18]SAM_PROTO_GetFieldsCounters [10:18:18]wFMCommunicate request_size=4 [10:18:18]MH_SAM_APDU [10:18:18]CAPDU: 80 13 00 00 [10:18:18]Write to MH i2c: E2 08 00 99 2C 80 13 00 00 00 00 00 00 41 [10:18:18]Write i2c OK [10:18:18]MH_I2C_Read... [10:18:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:19]Read from MH i2c: E2 [10:18:19]MH_I2C_Read... [10:18:19]Read from MH i2c: E2 62 00 [10:18:19]MH_I2C_Read... [10:18:19]Read from MH i2c: E2 62 00 99 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 87 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [10:18:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 87 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:18:19]wFMCommunicate OK [10:18:19]SAM_PROTO_GetFieldsCounters done [10:18:19]requested_item shift.num is exist - process it [10:18:19]requested_item shift.opened is exist - process it [10:18:19]req_shift_opened [10:18:19]FM_GetShiftState [10:18:19]SAM_PROTO_GetShiftState [10:18:19]wFMCommunicate request_size=4 [10:18:19]MH_SAM_APDU [10:18:19]CAPDU: 80 13 01 00 [10:18:19]Write to MH i2c: E2 08 00 9A 2C 80 13 01 00 00 00 00 00 43 [10:18:19]Write i2c OK [10:18:19]MH_I2C_Read... [10:18:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:19]Read from MH i2c: E2 [10:18:19]MH_I2C_Read... [10:18:19]Read from MH i2c: E2 0E 00 [10:18:19]MH_I2C_Read... [10:18:19]Read from MH i2c: E2 0E 00 9A 2C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 52 [10:18:19]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:18:19]wFMCommunicate OK [10:18:19]SAM_PROTO_GetShiftState done [10:18:19]FM_GetShiftState done [10:18:19]req_shift_opened done [10:18:19]requested_item shift.open_date is exist - process it [10:18:19]req_shift_open_date [10:18:19]req_shift_open_date done [10:18:19]produce_requested_data done [10:18:19]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201351,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:18:19]process_action_free close_receipt [10:18:19]json_value_free [10:18:19]json_value_free done [10:18:19]process_json_proto returns [10:18:19]Send response to host [10:18:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201351,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:18:19]free response buf [10:18:19]execute_script done [10:18:19]execute_script returns [10:18:19]free content buf [10:18:19]Sock 9.Close socket [10:18:19]Sock 9.Thread stoped [10:18:23]OFD Sender: No OFD packet to send [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:53]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:20]accept exits with 7 [10:19:20]New connection [10:19:20]New thread 3067415908 created [10:19:20]Thread 3067559268 joined [10:19:20]Waiting for new connection... [10:19:20] Sock 7.Parse request [10:19:20]Sock 7.Check first char [10:19:20]Sock 7.First char is OK [10:19:20]request: POST /json_proto HTTP/1.0 [10:19:20]Method: POST [10:19:20]URL: /json_proto [10:19:20]Method is POST - this is cgi request [10:19:20]url: /json_proto [10:19:20]query_string will be loaded in cgi processing [10:19:20]execute_cgi json_proto POST (null) [10:19:20]execute_cgi path=json_proto method=POST [10:19:20]POST find Content-Length [10:19:20]Host: 172.17.63.195:8080 [10:19:20]Content-Length: 679 [10:19:20]Content-Type: application/json [10:19:20] [10:19:20]POST finish read [10:19:20]Found Content-Length = 679 [10:19:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [10:19:20]execute_script... [10:19: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)449100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [10:19:20]POST & json_proto [10:19:20]process_json_proto [10:19:20]json parsed OK: [10:19:20]protocol is kg_v1.0 [10:19:20]action value=close_receipt [10:19:20]process_action close_receipt [10:19:20]cmd_close_receipt [10:19:20]MH_GetDate [10:19:20]Write to MH i2c: F0 00 00 9B 2C B6 [10:19:20]Write i2c OK [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: F0 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: F0 09 00 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: F0 09 00 9B 2C 00 2C C2 1C 67 68 46 19 67 5E [10:19:20]GetLastDocTimeStamp 1729937899 [10:19:20]current date 1729937964 [10:19:20]FM_GetShiftState [10:19:20]SAM_PROTO_GetShiftState [10:19:20]wFMCommunicate request_size=4 [10:19:20]MH_SAM_APDU [10:19:20]CAPDU: 80 13 01 00 [10:19:20]Write to MH i2c: E2 08 00 9C 2C 80 13 01 00 00 00 00 00 45 [10:19:20]Write i2c OK [10:19:20]MH_I2C_Read... [10:19:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:20]Read from MH i2c: E2 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: E2 0E 00 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: E2 0E 00 9C 2C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 54 [10:19:20]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:19:20]wFMCommunicate OK [10:19:20]SAM_PROTO_GetShiftState done [10:19:20]FM_GetShiftState done [10:19:20]opened in 1729900879 [10:19:20]opened+sec_in_day 1729987279 [10:19:20]quantity*price = 100050 [10:19:20]sum+1 = 100052 [10:19:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 114 26.10.2024 10:19 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201352 ФПД: 195665398564014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101924&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201352&fm=195665398564014&tin=02508201610067®Number=0000000000091777&sum=100000 [10:19:21]StoreToDocumentArchive [10:19:21]shift 543 fd 201352 [10:19:21]save to /storage/0543/doc_00201352 [10:19:21]save last doc name /storage/0543/doc_00201352 to /storage/kkm_last_doc_name [10:19:21]save OK [10:19:21]Clear old archive folders... [10:19:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:19:21]tlvbuf is 017D1D00 [10:19:21]SAM_PROTO_ClearQueue [10:19:21]wFMCommunicate request_size=4 [10:19:21]MH_SAM_APDU [10:19:21]CAPDU: 80 09 00 00 [10:19:21]Write to MH i2c: E2 08 00 A9 2C 80 09 00 00 00 00 00 00 47 [10:19:21]Write i2c OK [10:19:21]MH_I2C_Read... [10:19:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:21]Read from MH i2c: E2 [10:19:21]MH_I2C_Read... [10:19:21]Read from MH i2c: E2 03 00 [10:19:21]MH_I2C_Read... [10:19:21]Read from MH i2c: E2 03 00 A9 2C 00 90 00 49 [10:19:21]RAPDU: 90 00 [10:19:21]wFMCommunicate OK [10:19:21]SAM_PROTO_ClearQueue done [10:19:21]KKMCreateOFDPacket [10:19:21]OFDProtocolAddRootSTLVToBuf [10:19:21]FM_MakeSignedData [10:19:21]FM_MakeSignedData [10:19:21]SAM_PROTO_SignData [10:19:21]wFMCommunicate request_size=4 [10:19:21]MH_SAM_APDU [10:19:21]CAPDU: 80 0D 01 02 [10:19:21]Write to MH i2c: E2 08 00 AA 2C 80 0D 01 02 00 00 00 00 4F [10:19:21]Write i2c OK [10:19:21]MH_I2C_Read... [10:19:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:22]Read from MH i2c: E2 [10:19:22]MH_I2C_Read... [10:19:22]Read from MH i2c: E2 03 00 [10:19:22]MH_I2C_Read... [10:19:22]Read from MH i2c: E2 03 00 AA 2C 00 90 00 4A [10:19:22]RAPDU: 90 00 [10:19:22]wFMCommunicate OK [10:19:22]wFMCommunicate request_size=255 [10:19:22]MH_SAM_APDU [10:19:22]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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 72 00 00 00 F4 03 04 00 2C C2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 88 12 03 00 35 04 06 00 B1 F4 E6 93 [10:19:22]Write to MH i2c: E2 02 01 AB 2C 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 72 00 00 00 F4 03 04 00 2C C2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 88 12 03 00 35 04 06 00 B1 F4 E6 93 00 00 98 [10:19:22]Write i2c OK [10:19:22]MH_I2C_Read... [10:19:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:22]Read from MH i2c: E2 [10:19:22]MH_I2C_Read... [10:19:22]Read from MH i2c: E2 03 00 [10:19:22]MH_I2C_Read... [10:19:22]Read from MH i2c: E2 03 00 AB 2C 00 90 00 4B [10:19:22]RAPDU: 90 00 [10:19:22]wFMCommunicate OK [10:19:22]wFMCommunicate request_size=7 [10:19:22]MH_SAM_APDU [10:19:22]CAPDU: 80 0D 02 02 02 84 AE [10:19:22]Write to MH i2c: E2 0A 00 AC 2C 80 0D 02 02 02 00 84 AE 00 00 88 [10:19:22]Write i2c OK [10:19:22]MH_I2C_Read... [10:19:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:22]Read from MH i2c: E2 [10:19:22]MH_I2C_Read... [10:19:22]Read from MH i2c: E2 03 00 [10:19:22]MH_I2C_Read... [10:19:22]Read from MH i2c: E2 03 00 AC 2C 00 90 00 4C [10:19:22]RAPDU: 90 00 [10:19:22]wFMCommunicate OK [10:19:22]wFMCommunicate request_size=4 [10:19:22]MH_SAM_APDU [10:19:22]CAPDU: 80 0D 03 02 [10:19:22]Write to MH i2c: E2 08 00 AD 2C 80 0D 03 02 00 00 00 00 54 [10:19:22]Write i2c OK [10:19:22]MH_I2C_Read... [10:19:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:22]Read from MH i2c: E2 [10:19:22]MH_I2C_Read... [10:19:22]Read from MH i2c: E2 0B 00 [10:19:22]MH_I2C_Read... [10:19:22]Read from MH i2c: E2 0B 00 AD 2C 00 40 F4 07 35 92 14 B3 FB 90 00 19 [10:19:22]RAPDU: 40 F4 07 35 92 14 B3 FB 90 00 [10:19:22]wFMCommunicate OK [10:19:22]SAM_PROTO_SignData done [10:19:22]FM_MakeSignedData done [10:19:22]CreateOFDProtocolMessage [10:19:22]wFMCommunicate request_size=4 [10:19:22]MH_SAM_APDU [10:19:22]CAPDU: 80 11 00 00 [10:19:22]Write to MH i2c: E2 08 00 AE 2C 80 11 00 00 00 00 00 00 54 [10:19:22]Write i2c OK [10:19:22]MH_I2C_Read... [10:19:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:22]Read from MH i2c: E2 [10:19:22]MH_I2C_Read... [10:19:22]Read from MH i2c: E2 17 00 [10:19:22]MH_I2C_Read... [10:19:22]Read from MH i2c: E2 17 00 AE 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A9 [10:19:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:19:22]wFMCommunicate OK [10:19:22]CreateOFDProtocolMessage done [10:19:22]OFDSenderStorePacket 201352 [10:19:22]StoreOFDPacket docnum=201352 [10:19:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 74 8D 04 01 39 BA 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 72 00 00 00 F4 03 04 00 2C C2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 88 12 03 00 35 04 06 00 B1 F4 E6 93 84 AE 40 F4 07 35 92 14 B3 FB [10:19:22]CheckFolder [10:19:22]dirname=/storage/ofd_packets [10:19:22]CheckFolder done [10:19:22]ProducePacketName [10:19:22]name=ofd_packets/00201352 [10:19:22]NVStorageSaveData ofd_packets/00201352 [10:19:22]File name is /storage/ofd_packets/00201352 [10:19:22]Write 298 bytes [10:19:22]NVStorageSaveData done [10:19:22]OFDSenderStorePacket done [10:19:22]KKMCreateOFDPacket done [10:19:22]NVStorageSaveData kkm_last_timestamp [10:19:22]File name is /storage/kkm_last_timestamp [10:19:22]Write 4 bytes [10:19:22]NVStorageSaveData done [10:19:22]ExternCall_PrintAddStr [10:19:22]wPrintStart [10:19:22]Write to MH i2c: 01 00 00 AF 2C DB [10:19:22]Write i2c OK [10:19:22]MH_I2C_Read... [10:19:22]Read from MH i2c: 01 [10:19:22]MH_I2C_Read... [10:19:22]Read from MH i2c: 01 07 00 [10:19:22]MH_I2C_Read... [10:19:22]Read from MH i2c: 01 07 00 AF 2C 00 00 00 00 00 FF 0F F0 [10:19:22]RasterBufferAndPrint [10:19:22]line Счет N : (1)449100 [10:19:22]line ИНН: 02508201610067 [10:19:22]line Контрольно-Кассовый Чек [10:19:22]line ПРОДАЖА [10:19:22]line ТРК (МРК, ГНК) : 21 [10:19:22]line Товар: 2710194210 [10:19:22]line ДТ-К-2 [10:19:22]line 13.130 * 76.20 [10:19:22]line = 1000.51 [10:19:22]line НДС 12% НСП 1% [10:19:22]line > о реализуемом товаре [10:19:22]line ОКРУГЛЕНИЕ: -0.51 [10:19:22]line ИТОГО: 1000.00 [10:19:22]line Внесено: 1000.00 [10:19:22]line СДАЧА: 0.00 [10:19:22]line НСП 1% : 8.85 [10:19:22]line НДС 12% : 106.25 [10:19:22]line Наличными: 1000.00 [10:19:22]line Безнал.: 0.00 [10:19:22]line Место: АЗС № 171 "Партнер Нефть" [10:19:22]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:19:22]line СНО: Общий режим [10:19:22]line Чек 114 26.10.2024 10:19 [10:19:22]line Смена: 543 ФФД: 1.0 [10:19:22]line ЗНМ: 0300000109 [10:19:22]line РНМ: 0000000000091777 [10:19:22]line Версия ККМ: 001 [10:19:22]line ФМ: 0000000000871756 [10:19:22]line ФД: 201352 [10:19:22]line ФПД: 195665398564014 [10:19:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101924&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201352&fm=195665398564014&tin=02508201610067®Number=0000000000091777&sum=100000 [10:19:22]OFD Sender: Processing packet 201352 [packets to send 112, broken 111] [10:19:22]ProducePacketName [10:19:22]name=ofd_packets/00201352 [10:19:22]OFD Sender: To server: pG, [10:19:22]CommunicateWithHost lk.salyk.kg:30040 [10:19:22]ConnectInit lk.salyk.kg [10:19:22]written 0, free lines is 4095 [10:19:22]Connected sock=10 [10:19:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 74 8D 04 01 39 BA 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 72 00 00 00 F4 03 04 00 2C C2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 88 12 03 00 35 04 06 00 B1 F4 E6 93 84 AE 40 F4 07 35 92 14 B3 FB [10:19:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 68 64 47 00 83 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 88 12 03 00 F4 03 04 00 D6 6D 1C 67 B6 04 01 00 00 4D B8 DC FC 40 83 79 1E [10:19:23]CommunicateWithHost err = 0 [10:19:23]CheckOFDResponse [10:19:23]1017 (14) - 77093643461234 [10:19:23]1041 (16) - 0000000000871756 [10:19:23]1040 (4) - 201352 [10:19:23]1012 (4) - 26.10.2024 04:19 [10:19:23]1206 (1) - 0 [10:19:23]OFD Sender: Remove packet 201352 [10:19:23]ProducePacketName [10:19:23]name=ofd_packets/00201352 [10:19:23]NVStorageDeleteData [10:19:23]Write to MH i2c: 01 00 00 DA 2C 06 [10:19:23]Write i2c OK [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: 01 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: 01 07 00 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: 01 07 00 DA 2C 00 00 00 00 00 9D 0C B6 [10:19:23]RasterBufferAndPrint [10:19:23]line [10:19:23]line [10:19:23]line [10:19:23]line [10:19:23]line [10:19:23]written 0, free lines is 3235 [10:19:23]MH_Cut [10:19:23]Write to MH i2c: D1 01 00 E1 2C 01 DF [10:19:23]Write i2c OK [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: D1 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: D1 01 00 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: D1 01 00 E1 2C 00 DE [10:19:23]Write to MH i2c: 01 00 00 E2 2C 0E [10:19:23]Write i2c OK [10:19:23]MH_I2C_Read... [10:19:23]OFD Sender: No OFD packet to send [10:19:24]*** Cut start [10:19:24]*** Purtial cut [10:19:24]*** Stage 1: CUTSNS_PIN = 1 [10:19:24]Read from MH i2c: 01 [10:19:24]MH_I2C_Read... [10:19:24]*** Stop cut motor [10:19:24]*** Cut end [10:19:24]Read from MH i2c: 01 07 00 [10:19:24]MH_I2C_Read... [10:19:24]Read from MH i2c: 01 07 00 E2 2C 00 00 00 00 00 FF 0F 23 [10:19:24]process_action close_receipt done [10:19:24]requested_data is exist [10:19:24]produce_requested_data [10:19:24]requested_item fm.sn is exist - process it [10:19:24]wFMCommunicate request_size=4 [10:19:24]MH_SAM_APDU [10:19:24]CAPDU: 80 11 00 00 [10:19:24]Write to MH i2c: E2 08 00 E3 2C 80 11 00 00 00 00 00 00 89 [10:19:24]Write i2c OK [10:19:24]MH_I2C_Read... [10:19:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:24]Read from MH i2c: E2 [10:19:24]MH_I2C_Read... [10:19:24]Read from MH i2c: E2 17 00 [10:19:24]MH_I2C_Read... [10:19:24]Read from MH i2c: E2 17 00 E3 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DE [10:19:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:19:24]wFMCommunicate OK [10:19:24]requested_item fd.num is exist - process it [10:19:24]SAM_PROTO_GetFieldsCounters [10:19:24]wFMCommunicate request_size=4 [10:19:24]MH_SAM_APDU [10:19:24]CAPDU: 80 13 00 00 [10:19:24]Write to MH i2c: E2 08 00 E4 2C 80 13 00 00 00 00 00 00 8C [10:19:24]Write i2c OK [10:19:24]MH_I2C_Read... [10:19:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:24]Read from MH i2c: E2 [10:19:24]MH_I2C_Read... [10:19:24]Read from MH i2c: E2 62 00 [10:19:24]MH_I2C_Read... [10:19:24]Read from MH i2c: E2 62 00 E4 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 88 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [10:19:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 88 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:24]wFMCommunicate OK [10:19:24]SAM_PROTO_GetFieldsCounters done [10:19:24]requested_item shift.num is exist - process it [10:19:24]requested_item shift.opened is exist - process it [10:19:24]req_shift_opened [10:19:24]FM_GetShiftState [10:19:24]SAM_PROTO_GetShiftState [10:19:24]wFMCommunicate request_size=4 [10:19:24]MH_SAM_APDU [10:19:24]CAPDU: 80 13 01 00 [10:19:24]Write to MH i2c: E2 08 00 E5 2C 80 13 01 00 00 00 00 00 8E [10:19:24]Write i2c OK [10:19:24]MH_I2C_Read... [10:19:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:24]Read from MH i2c: E2 [10:19:24]MH_I2C_Read... [10:19:24]Read from MH i2c: E2 0E 00 [10:19:24]MH_I2C_Read... [10:19:24]Read from MH i2c: E2 0E 00 E5 2C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 9D [10:19:24]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:19:24]wFMCommunicate OK [10:19:24]SAM_PROTO_GetShiftState done [10:19:24]FM_GetShiftState done [10:19:24]req_shift_opened done [10:19:24]requested_item shift.open_date is exist - process it [10:19:24]req_shift_open_date [10:19:24]req_shift_open_date done [10:19:24]produce_requested_data done [10:19:24]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201352,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:19:24]process_action_free close_receipt [10:19:24]json_value_free [10:19:24]json_value_free done [10:19:24]process_json_proto returns [10:19:24]Send response to host [10:19:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201352,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:19:24]free response buf [10:19:24]execute_script done [10:19:24]execute_script returns [10:19:24]free content buf [10:19:24]Sock 7.Close socket [10:19:24]Sock 7.Thread stoped [10:19:28]OFD Sender: No OFD packet to send [10:19:33]OFD Sender: No OFD packet to send [10:19:38]OFD Sender: No OFD packet to send [10:19:43]OFD Sender: No OFD packet to send [10:19:48]OFD Sender: No OFD packet to send [10:19:53]OFD Sender: No OFD packet to send [10:19:58]OFD Sender: No OFD packet to send [10:20:03]OFD Sender: No OFD packet to send [10:20:08]OFD Sender: No OFD packet to send [10:20:13]OFD Sender: No OFD packet to send [10:20:18]OFD Sender: No OFD packet to send [10:20:23]OFD Sender: No OFD packet to send [10:20:27]accept exits with 9 [10:20:27]New connection [10:20:27]New thread 3067559268 created [10:20:27]Thread 3067415908 joined [10:20:27]Waiting for new connection... [10:20:27] Sock 9.Parse request [10:20:27]Sock 9.Check first char [10:20:27]Sock 9.First char is OK [10:20:27]request: POST /json_proto HTTP/1.0 [10:20:27]Method: POST [10:20:27]URL: /json_proto [10:20:27]Method is POST - this is cgi request [10:20:27]url: /json_proto [10:20:27]query_string will be loaded in cgi processing [10:20:27]execute_cgi json_proto POST (null) [10:20:27]execute_cgi path=json_proto method=POST [10:20:27]POST find Content-Length [10:20:27]Host: 172.17.63.195:8080 [10:20:27]Content-Length: 632 [10:20:27]Content-Type: application/json [10:20:27] [10:20:27]POST finish read [10:20:27]Found Content-Length = 632 [10:20:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:27]execute_script... [10:20:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:27]POST & json_proto [10:20:27]process_json_proto [10:20:27]json parsed OK: [10:20:27]protocol is kg_v1.0 [10:20:27]action value=close_receipt [10:20:27]process_action close_receipt [10:20:27]cmd_close_receipt [10:20:27]MH_GetDate [10:20:27]Write to MH i2c: F0 00 00 E6 2C 01 [10:20:27]Write i2c OK [10:20:27]MH_I2C_Read... [10:20:27]Read from MH i2c: F0 [10:20:27]MH_I2C_Read... [10:20:27]Read from MH i2c: F0 09 00 [10:20:27]MH_I2C_Read... [10:20:27]Read from MH i2c: F0 09 00 E6 2C 00 6F C2 1C 67 68 46 19 67 EC [10:20:27]GetLastDocTimeStamp 1729937964 [10:20:27]current date 1729938031 [10:20:27]FM_GetShiftState [10:20:27]SAM_PROTO_GetShiftState [10:20:27]wFMCommunicate request_size=4 [10:20:27]MH_SAM_APDU [10:20:27]CAPDU: 80 13 01 00 [10:20:27]Write to MH i2c: E2 08 00 E7 2C 80 13 01 00 00 00 00 00 90 [10:20:27]Write i2c OK [10:20:27]MH_I2C_Read... [10:20:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:27]Read from MH i2c: E2 [10:20:27]MH_I2C_Read... [10:20:27]Read from MH i2c: E2 0E 00 [10:20:27]MH_I2C_Read... [10:20:27]Read from MH i2c: E2 0E 00 E7 2C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 9F [10:20:27]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:20:27]wFMCommunicate OK [10:20:27]SAM_PROTO_GetShiftState done [10:20:27]FM_GetShiftState done [10:20:27]opened in 1729900879 [10:20:27]opened+sec_in_day 1729987279 [10:20:27]quantity*price = 50000 [10:20:27]sum+1 = 50001 [10:20:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 115 26.10.2024 10:20 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201353 ФПД: 41341521236619 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102031&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201353&fm=41341521236619&tin=02508201610067®Number=0000000000091777&sum=50000 [10:20:28]StoreToDocumentArchive [10:20:28]shift 543 fd 201353 [10:20:28]save to /storage/0543/doc_00201353 [10:20:28]save last doc name /storage/0543/doc_00201353 to /storage/kkm_last_doc_name [10:20:28]save OK [10:20:28]Clear old archive folders... [10:20:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:20:28]tlvbuf is 0179E260 [10:20:28]SAM_PROTO_ClearQueue [10:20:28]wFMCommunicate request_size=4 [10:20:28]MH_SAM_APDU [10:20:28]CAPDU: 80 09 00 00 [10:20:28]Write to MH i2c: E2 08 00 F4 2C 80 09 00 00 00 00 00 00 92 [10:20:28]Write i2c OK [10:20:28]MH_I2C_Read... [10:20:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:28]Read from MH i2c: E2 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: E2 03 00 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: E2 03 00 F4 2C 00 90 00 94 [10:20:28]RAPDU: 90 00 [10:20:28]wFMCommunicate OK [10:20:28]SAM_PROTO_ClearQueue done [10:20:28]KKMCreateOFDPacket [10:20:28]OFDProtocolAddRootSTLVToBuf [10:20:28]FM_MakeSignedData [10:20:28]FM_MakeSignedData [10:20:28]SAM_PROTO_SignData [10:20:28]wFMCommunicate request_size=4 [10:20:28]MH_SAM_APDU [10:20:28]CAPDU: 80 0D 01 02 [10:20:28]Write to MH i2c: E2 08 00 F5 2C 80 0D 01 02 00 00 00 00 9A [10:20:28]Write i2c OK [10:20:28]MH_I2C_Read... [10:20:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:28]Read from MH i2c: E2 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: E2 03 00 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: E2 03 00 F5 2C 00 90 00 95 [10:20:28]RAPDU: 90 00 [10:20:28]wFMCommunicate OK [10:20:28]wFMCommunicate request_size=255 [10:20:28]MH_SAM_APDU [10:20:28]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 6F C2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 89 12 03 00 35 04 06 00 [10:20:28]Write to MH i2c: E2 02 01 F6 2C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 6F C2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 89 12 03 00 35 04 06 00 00 00 71 [10:20:28]Write i2c OK [10:20:28]MH_I2C_Read... [10:20:28]OFD Sender: No OFD packet to send [10:20:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:28]Read from MH i2c: E2 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: E2 03 00 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: E2 03 00 F6 2C 00 90 00 96 [10:20:28]RAPDU: 90 00 [10:20:28]wFMCommunicate OK [10:20:28]wFMCommunicate request_size=11 [10:20:28]MH_SAM_APDU [10:20:28]CAPDU: 80 0D 02 02 06 25 99 92 B0 12 8B [10:20:28]Write to MH i2c: E2 0E 00 F7 2C 80 0D 02 02 06 00 25 99 92 B0 12 8B 00 00 46 [10:20:28]Write i2c OK [10:20:28]MH_I2C_Read... [10:20:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:28]Read from MH i2c: E2 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: E2 03 00 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: E2 03 00 F7 2C 00 90 00 97 [10:20:28]RAPDU: 90 00 [10:20:28]wFMCommunicate OK [10:20:28]wFMCommunicate request_size=4 [10:20:28]MH_SAM_APDU [10:20:28]CAPDU: 80 0D 03 02 [10:20:28]Write to MH i2c: E2 08 00 F8 2C 80 0D 03 02 00 00 00 00 9F [10:20:28]Write i2c OK [10:20:28]MH_I2C_Read... [10:20:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:28]Read from MH i2c: E2 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: E2 0B 00 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: E2 0B 00 F8 2C 00 8A D4 9D 1C AC 62 66 74 90 00 9F [10:20:28]RAPDU: 8A D4 9D 1C AC 62 66 74 90 00 [10:20:28]wFMCommunicate OK [10:20:28]SAM_PROTO_SignData done [10:20:28]FM_MakeSignedData done [10:20:28]CreateOFDProtocolMessage [10:20:28]wFMCommunicate request_size=4 [10:20:28]MH_SAM_APDU [10:20:28]CAPDU: 80 11 00 00 [10:20:28]Write to MH i2c: E2 08 00 F9 2C 80 11 00 00 00 00 00 00 9F [10:20:28]Write i2c OK [10:20:28]MH_I2C_Read... [10:20:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:29]Read from MH i2c: E2 [10:20:29]MH_I2C_Read... [10:20:29]Read from MH i2c: E2 17 00 [10:20:29]MH_I2C_Read... [10:20:29]Read from MH i2c: E2 17 00 F9 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F4 [10:20:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:20:29]wFMCommunicate OK [10:20:29]CreateOFDProtocolMessage done [10:20:29]OFDSenderStorePacket 201353 [10:20:29]StoreOFDPacket docnum=201353 [10:20:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 06 1C 08 01 76 7E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 6F C2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 89 12 03 00 35 04 06 00 25 99 92 B0 12 8B 8A D4 9D 1C AC 62 66 74 [10:20:29]CheckFolder [10:20:29]dirname=/storage/ofd_packets [10:20:29]CheckFolder done [10:20:29]ProducePacketName [10:20:29]name=ofd_packets/00201353 [10:20:29]NVStorageSaveData ofd_packets/00201353 [10:20:29]File name is /storage/ofd_packets/00201353 [10:20:29]Write 302 bytes [10:20:29]NVStorageSaveData done [10:20:29]OFDSenderStorePacket done [10:20:29]KKMCreateOFDPacket done [10:20:29]NVStorageSaveData kkm_last_timestamp [10:20:29]File name is /storage/kkm_last_timestamp [10:20:29]Write 4 bytes [10:20:29]NVStorageSaveData done [10:20:29]ExternCall_PrintAddStr [10:20:29]wPrintStart [10:20:29]Write to MH i2c: 01 00 00 FA 2C 26 [10:20:29]Write i2c OK [10:20:29]MH_I2C_Read... [10:20:29]Read from MH i2c: 01 [10:20:29]MH_I2C_Read... [10:20:29]Read from MH i2c: 01 07 00 [10:20:29]MH_I2C_Read... [10:20:29]Read from MH i2c: 01 07 00 FA 2C 00 00 00 00 00 FF 0F 3B [10:20:29]RasterBufferAndPrint [10:20:29]line Счет N : (1)449101 [10:20:29]line ИНН: 02508201610067 [10:20:29]line Контрольно-Кассовый Чек [10:20:29]line ПРОДАЖА [10:20:29]line ТРК (МРК, ГНК) : 42 [10:20:29]line Товар: 2710124130 [10:20:29]line SUPER 92-К-5 [10:20:29]line 7.310 * 68.40 [10:20:29]line = 500.00 [10:20:29]line НДС 12% НСП 1% [10:20:29]line > о реализуемом товаре [10:20:29]line ИТОГО: 500.00 [10:20:29]line НСП 1% : 4.42 [10:20:29]line НДС 12% : 53.10 [10:20:29]line Наличными: 500.00 [10:20:29]line Безнал.: 0.00 [10:20:29]line Место: АЗС № 171 "Партнер Нефть" [10:20:29]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:20:29]line СНО: Общий режим [10:20:29]line Чек 115 26.10.2024 10:20 [10:20:29]line Смена: 543 ФФД: 1.0 [10:20:29]line ЗНМ: 0300000109 [10:20:29]line РНМ: 0000000000091777 [10:20:29]line Версия ККМ: 001 [10:20:29]line ФМ: 0000000000871756 [10:20:29]line ФД: 201353 [10:20:29]line ФПД: 41341521236619 [10:20:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102031&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201353&fm=41341521236619&tin=02508201610067®Number=0000000000091777&sum=50000 [10:20:29]OFD Sender: Processing packet 201353 [packets to send 112, broken 111] [10:20:29]ProducePacketName [10:20:29]name=ofd_packets/00201353 [10:20:29]OFD Sender: To server: pG, [10:20:29]CommunicateWithHost lk.salyk.kg:30040 [10:20:29]ConnectInit lk.salyk.kg [10:20:29]written 0, free lines is 4095 [10:20:29]Connected sock=7 [10:20:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 06 1C 08 01 76 7E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 6F C2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 89 12 03 00 35 04 06 00 25 99 92 B0 12 8B 8A D4 9D 1C AC 62 66 74 [10:20:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 DC F2 47 00 B4 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 89 12 03 00 F4 03 04 00 18 6E 1C 67 B6 04 01 00 00 B8 31 8D 43 45 4E 90 F2 [10:20:29]CommunicateWithHost err = 0 [10:20:29]CheckOFDResponse [10:20:29]1017 (14) - 77093643461234 [10:20:29]1041 (16) - 0000000000871756 [10:20:29]1040 (4) - 201353 [10:20:29]1012 (4) - 26.10.2024 04:20 [10:20:29]1206 (1) - 0 [10:20:29]OFD Sender: Remove packet 201353 [10:20:29]ProducePacketName [10:20:29]name=ofd_packets/00201353 [10:20:29]NVStorageDeleteData [10:20:29]Write to MH i2c: 01 00 00 22 2D 4F [10:20:29]Write i2c OK [10:20:29]MH_I2C_Read... [10:20:29]Read from MH i2c: 01 [10:20:29]MH_I2C_Read... [10:20:29]Read from MH i2c: 01 07 00 [10:20:29]MH_I2C_Read... [10:20:29]Read from MH i2c: 01 07 00 22 2D 00 00 00 00 00 D5 0C 37 [10:20:29]RasterBufferAndPrint [10:20:29]line [10:20:29]line [10:20:29]line [10:20:29]line [10:20:29]line [10:20:29]written 0, free lines is 3290 [10:20:29]MH_Cut [10:20:29]Write to MH i2c: D1 01 00 29 2D 01 28 [10:20:29]Write i2c OK [10:20:29]MH_I2C_Read... [10:20:29]Read from MH i2c: D1 [10:20:29]MH_I2C_Read... [10:20:29]Read from MH i2c: D1 01 00 [10:20:29]MH_I2C_Read... [10:20:29]Read from MH i2c: D1 01 00 29 2D 00 27 [10:20:29]Write to MH i2c: 01 00 00 2A 2D 57 [10:20:29]Write i2c OK [10:20:29]MH_I2C_Read... [10:20:30]OFD Sender: No OFD packet to send [10:20:30]*** Cut start [10:20:30]*** Purtial cut [10:20:30]*** Stage 1: CUTSNS_PIN = 1 [10:20:30]Read from MH i2c: 01 [10:20:30]MH_I2C_Read... [10:20:30]*** Stop cut motor [10:20:30]*** Cut end [10:20:30]Read from MH i2c: 01 07 00 [10:20:30]MH_I2C_Read... [10:20:30]Read from MH i2c: 01 07 00 2A 2D 00 00 00 00 00 FF 0F 6C [10:20:30]process_action close_receipt done [10:20:30]requested_data is exist [10:20:30]produce_requested_data [10:20:30]requested_item fm.sn is exist - process it [10:20:30]wFMCommunicate request_size=4 [10:20:30]MH_SAM_APDU [10:20:30]CAPDU: 80 11 00 00 [10:20:30]Write to MH i2c: E2 08 00 2B 2D 80 11 00 00 00 00 00 00 D2 [10:20:30]Write i2c OK [10:20:30]MH_I2C_Read... [10:20:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:30]Read from MH i2c: E2 [10:20:30]MH_I2C_Read... [10:20:30]Read from MH i2c: E2 17 00 [10:20:30]MH_I2C_Read... [10:20:30]Read from MH i2c: E2 17 00 2B 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 27 [10:20:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:20:30]wFMCommunicate OK [10:20:30]requested_item fd.num is exist - process it [10:20:30]SAM_PROTO_GetFieldsCounters [10:20:30]wFMCommunicate request_size=4 [10:20:30]MH_SAM_APDU [10:20:30]CAPDU: 80 13 00 00 [10:20:30]Write to MH i2c: E2 08 00 2C 2D 80 13 00 00 00 00 00 00 D5 [10:20:30]Write i2c OK [10:20:30]MH_I2C_Read... [10:20:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:31]Read from MH i2c: E2 [10:20:31]MH_I2C_Read... [10:20:31]Read from MH i2c: E2 62 00 [10:20:31]MH_I2C_Read... [10:20:31]Read from MH i2c: E2 62 00 2C 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 89 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [10:20:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 89 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:20:31]wFMCommunicate OK [10:20:31]SAM_PROTO_GetFieldsCounters done [10:20:31]requested_item shift.num is exist - process it [10:20:31]requested_item shift.opened is exist - process it [10:20:31]req_shift_opened [10:20:31]FM_GetShiftState [10:20:31]SAM_PROTO_GetShiftState [10:20:31]wFMCommunicate request_size=4 [10:20:31]MH_SAM_APDU [10:20:31]CAPDU: 80 13 01 00 [10:20:31]Write to MH i2c: E2 08 00 2D 2D 80 13 01 00 00 00 00 00 D7 [10:20:31]Write i2c OK [10:20:31]MH_I2C_Read... [10:20:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:31]Read from MH i2c: E2 [10:20:31]MH_I2C_Read... [10:20:31]Read from MH i2c: E2 0E 00 [10:20:31]MH_I2C_Read... [10:20:31]Read from MH i2c: E2 0E 00 2D 2D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E6 [10:20:31]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:20:31]wFMCommunicate OK [10:20:31]SAM_PROTO_GetShiftState done [10:20:31]FM_GetShiftState done [10:20:31]req_shift_opened done [10:20:31]requested_item shift.open_date is exist - process it [10:20:31]req_shift_open_date [10:20:31]req_shift_open_date done [10:20:31]produce_requested_data done [10:20:31]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201353,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:20:31]process_action_free close_receipt [10:20:31]json_value_free [10:20:31]json_value_free done [10:20:31]process_json_proto returns [10:20:31]Send response to host [10:20:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201353,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:20:31]free response buf [10:20:31]execute_script done [10:20:31]execute_script returns [10:20:31]free content buf [10:20:31]Sock 9.Close socket [10:20:31]Sock 9.Thread stoped [10:20:35]OFD Sender: No OFD packet to send [10:20:40]OFD Sender: No OFD packet to send [10:20:45]OFD Sender: No OFD packet to send [10:20:50]OFD Sender: No OFD packet to send [10:20:55]OFD Sender: No OFD packet to send [10:21:00]OFD Sender: No OFD packet to send [10:21:05]OFD Sender: No OFD packet to send [10:21:10]OFD Sender: No OFD packet to send [10:21:15]OFD Sender: No OFD packet to send [10:21:20]OFD Sender: No OFD packet to send [10:21:25]OFD Sender: No OFD packet to send [10:21:30]OFD Sender: No OFD packet to send [10:21:35]OFD Sender: No OFD packet to send [10:21:40]OFD Sender: No OFD packet to send [10:21:45]OFD Sender: No OFD packet to send [10:21:50]OFD Sender: No OFD packet to send [10:21:55]OFD Sender: No OFD packet to send [10:22:00]OFD Sender: No OFD packet to send [10:22:05]OFD Sender: No OFD packet to send [10:22:10]OFD Sender: No OFD packet to send [10:22:15]OFD Sender: No OFD packet to send [10:22:20]OFD Sender: No OFD packet to send [10:22:25]OFD Sender: No OFD packet to send [10:22:30]OFD Sender: No OFD packet to send [10:22:35]OFD Sender: No OFD packet to send [10:22:40]OFD Sender: No OFD packet to send [10:22:45]OFD Sender: No OFD packet to send [10:22:50]OFD Sender: No OFD packet to send [10:22:55]OFD Sender: No OFD packet to send [10:23:00]OFD Sender: No OFD packet to send [10:23:05]OFD Sender: No OFD packet to send [10:23:10]OFD Sender: No OFD packet to send [10:23:15]OFD Sender: No OFD packet to send [10:23:20]OFD Sender: No OFD packet to send [10:23:25]OFD Sender: No OFD packet to send [10:23:30]OFD Sender: No OFD packet to send [10:23:35]OFD Sender: No OFD packet to send [10:23:40]OFD Sender: No OFD packet to send [10:23:45]OFD Sender: No OFD packet to send [10:23:50]OFD Sender: No OFD packet to send [10:23:55]OFD Sender: No OFD packet to send [10:24:00]OFD Sender: No OFD packet to send [10:24:05]OFD Sender: No OFD packet to send [10:24:10]OFD Sender: No OFD packet to send [10:24:15]OFD Sender: No OFD packet to send [10:24:20]OFD Sender: No OFD packet to send [10:24:25]OFD Sender: No OFD packet to send [10:24:30]OFD Sender: No OFD packet to send [10:24:35]OFD Sender: No OFD packet to send [10:24:37]accept exits with 10 [10:24:37]New connection [10:24:37]New thread 3067415908 created [10:24:37]Thread 3067559268 joined [10:24:37]Waiting for new connection... [10:24:37] Sock 10.Parse request [10:24:37]Sock 10.Check first char [10:24:37]Sock 10.First char is OK [10:24:37]request: POST /json_proto HTTP/1.0 [10:24:37]Method: POST [10:24:37]URL: /json_proto [10:24:37]Method is POST - this is cgi request [10:24:37]url: /json_proto [10:24:37]query_string will be loaded in cgi processing [10:24:37]execute_cgi json_proto POST (null) [10:24:37]execute_cgi path=json_proto method=POST [10:24:37]POST find Content-Length [10:24:37]Host: 172.17.63.195:8080 [10:24:37]Content-Length: 677 [10:24:37]Content-Type: application/json [10:24:37] [10:24:37]POST finish read [10:24:37]Found Content-Length = 677 [10:24:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:24:37]execute_script... [10:24:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:24:37]POST & json_proto [10:24:37]process_json_proto [10:24:37]json parsed OK: [10:24:37]protocol is kg_v1.0 [10:24:37]action value=close_receipt [10:24:37]process_action close_receipt [10:24:37]cmd_close_receipt [10:24:37]MH_GetDate [10:24:37]Write to MH i2c: F0 00 00 2E 2D 4A [10:24:37]Write i2c OK [10:24:37]MH_I2C_Read... [10:24:37]Read from MH i2c: F0 [10:24:37]MH_I2C_Read... [10:24:37]Read from MH i2c: F0 09 00 [10:24:37]MH_I2C_Read... [10:24:37]Read from MH i2c: F0 09 00 2E 2D 00 69 C3 1C 67 68 46 19 67 30 [10:24:37]GetLastDocTimeStamp 1729938031 [10:24:37]current date 1729938281 [10:24:37]FM_GetShiftState [10:24:37]SAM_PROTO_GetShiftState [10:24:37]wFMCommunicate request_size=4 [10:24:37]MH_SAM_APDU [10:24:37]CAPDU: 80 13 01 00 [10:24:37]Write to MH i2c: E2 08 00 2F 2D 80 13 01 00 00 00 00 00 D9 [10:24:37]Write i2c OK [10:24:37]MH_I2C_Read... [10:24:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:37]Read from MH i2c: E2 [10:24:37]MH_I2C_Read... [10:24:37]Read from MH i2c: E2 0E 00 [10:24:37]MH_I2C_Read... [10:24:37]Read from MH i2c: E2 0E 00 2F 2D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E8 [10:24:37]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:24:37]wFMCommunicate OK [10:24:37]SAM_PROTO_GetShiftState done [10:24:37]FM_GetShiftState done [10:24:37]opened in 1729900879 [10:24:37]opened+sec_in_day 1729987279 [10:24:37]quantity*price = 50041 [10:24:37]sum+1 = 50042 [10:24:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 116 26.10.2024 10:24 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201354 ФПД: 132833514215266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102441&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201354&fm=132833514215266&tin=02508201610067®Number=0000000000091777&sum=50000 [10:24:38]StoreToDocumentArchive [10:24:38]shift 543 fd 201354 [10:24:38]save to /storage/0543/doc_00201354 [10:24:38]save last doc name /storage/0543/doc_00201354 to /storage/kkm_last_doc_name [10:24:38]save OK [10:24:38]Clear old archive folders... [10:24:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:24:38]tlvbuf is 017D19D0 [10:24:38]SAM_PROTO_ClearQueue [10:24:38]wFMCommunicate request_size=4 [10:24:38]MH_SAM_APDU [10:24:38]CAPDU: 80 09 00 00 [10:24:38]Write to MH i2c: E2 08 00 3C 2D 80 09 00 00 00 00 00 00 DB [10:24:38]Write i2c OK [10:24:38]MH_I2C_Read... [10:24:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:38]Read from MH i2c: E2 [10:24:38]MH_I2C_Read... [10:24:38]Read from MH i2c: E2 03 00 [10:24:38]MH_I2C_Read... [10:24:38]Read from MH i2c: E2 03 00 3C 2D 00 90 00 DD [10:24:38]RAPDU: 90 00 [10:24:38]wFMCommunicate OK [10:24:38]SAM_PROTO_ClearQueue done [10:24:38]KKMCreateOFDPacket [10:24:38]OFDProtocolAddRootSTLVToBuf [10:24:38]FM_MakeSignedData [10:24:38]FM_MakeSignedData [10:24:38]SAM_PROTO_SignData [10:24:38]wFMCommunicate request_size=4 [10:24:38]MH_SAM_APDU [10:24:38]CAPDU: 80 0D 01 02 [10:24:38]Write to MH i2c: E2 08 00 3D 2D 80 0D 01 02 00 00 00 00 E3 [10:24:38]Write i2c OK [10:24:38]MH_I2C_Read... [10:24:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:38]Read from MH i2c: E2 [10:24:38]MH_I2C_Read... [10:24:38]Read from MH i2c: E2 03 00 [10:24:38]MH_I2C_Read... [10:24:38]Read from MH i2c: E2 03 00 3D 2D 00 90 00 DE [10:24:38]RAPDU: 90 00 [10:24:38]wFMCommunicate OK [10:24:38]wFMCommunicate request_size=255 [10:24:38]MH_SAM_APDU [10:24:38]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 32 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 74 00 00 00 F4 03 04 00 69 C3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8A 12 03 00 35 04 06 00 78 [10:24:38]Write to MH i2c: E2 02 01 3E 2D 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 32 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 74 00 00 00 F4 03 04 00 69 C3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8A 12 03 00 35 04 06 00 78 00 00 D2 [10:24:38]Write i2c OK [10:24:38]MH_I2C_Read... [10:24:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:38]Read from MH i2c: E2 [10:24:38]MH_I2C_Read... [10:24:38]Read from MH i2c: E2 03 00 [10:24:38]MH_I2C_Read... [10:24:38]Read from MH i2c: E2 03 00 3E 2D 00 90 00 DF [10:24:38]RAPDU: 90 00 [10:24:38]wFMCommunicate OK [10:24:38]wFMCommunicate request_size=10 [10:24:38]MH_SAM_APDU [10:24:38]CAPDU: 80 0D 02 02 05 CF B6 6D D7 62 [10:24:38]Write to MH i2c: E2 0D 00 3F 2D 80 0D 02 02 05 00 CF B6 6D D7 62 00 00 1B [10:24:38]Write i2c OK [10:24:38]MH_I2C_Read... [10:24:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:38]Read from MH i2c: E2 [10:24:38]MH_I2C_Read... [10:24:38]Read from MH i2c: E2 03 00 [10:24:38]MH_I2C_Read... [10:24:38]Read from MH i2c: E2 03 00 3F 2D 00 90 00 E0 [10:24:38]RAPDU: 90 00 [10:24:38]wFMCommunicate OK [10:24:38]wFMCommunicate request_size=4 [10:24:38]MH_SAM_APDU [10:24:38]CAPDU: 80 0D 03 02 [10:24:38]Write to MH i2c: E2 08 00 40 2D 80 0D 03 02 00 00 00 00 E8 [10:24:38]Write i2c OK [10:24:38]MH_I2C_Read... [10:24:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:38]Read from MH i2c: E2 [10:24:38]MH_I2C_Read... [10:24:38]Read from MH i2c: E2 0B 00 [10:24:38]MH_I2C_Read... [10:24:38]Read from MH i2c: E2 0B 00 40 2D 00 0E C8 56 BD C8 1E BE 01 90 00 77 [10:24:38]RAPDU: 0E C8 56 BD C8 1E BE 01 90 00 [10:24:38]wFMCommunicate OK [10:24:38]SAM_PROTO_SignData done [10:24:38]FM_MakeSignedData done [10:24:38]CreateOFDProtocolMessage [10:24:38]wFMCommunicate request_size=4 [10:24:38]MH_SAM_APDU [10:24:38]CAPDU: 80 11 00 00 [10:24:38]Write to MH i2c: E2 08 00 41 2D 80 11 00 00 00 00 00 00 E8 [10:24:38]Write i2c OK [10:24:38]MH_I2C_Read... [10:24:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:38]Read from MH i2c: E2 [10:24:38]MH_I2C_Read... [10:24:38]Read from MH i2c: E2 17 00 [10:24:38]MH_I2C_Read... [10:24:38]Read from MH i2c: E2 17 00 41 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3D [10:24:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:24:38]wFMCommunicate OK [10:24:38]CreateOFDProtocolMessage done [10:24:38]OFDSenderStorePacket 201354 [10:24:38]StoreOFDPacket docnum=201354 [10:24:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B1 FA 07 01 28 CA 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 32 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 74 00 00 00 F4 03 04 00 69 C3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8A 12 03 00 35 04 06 00 78 CF B6 6D D7 62 0E C8 56 BD C8 1E BE 01 [10:24:38]CheckFolder [10:24:38]dirname=/storage/ofd_packets [10:24:38]CheckFolder done [10:24:38]ProducePacketName [10:24:38]name=ofd_packets/00201354 [10:24:38]NVStorageSaveData ofd_packets/00201354 [10:24:38]File name is /storage/ofd_packets/00201354 [10:24:38]Write 301 bytes [10:24:38]NVStorageSaveData done [10:24:38]OFDSenderStorePacket done [10:24:38]KKMCreateOFDPacket done [10:24:38]NVStorageSaveData kkm_last_timestamp [10:24:38]File name is /storage/kkm_last_timestamp [10:24:38]Write 4 bytes [10:24:38]NVStorageSaveData done [10:24:38]ExternCall_PrintAddStr [10:24:38]wPrintStart [10:24:38]Write to MH i2c: 01 00 00 42 2D 6F [10:24:38]Write i2c OK [10:24:38]MH_I2C_Read... [10:24:38]Read from MH i2c: 01 [10:24:38]MH_I2C_Read... [10:24:38]Read from MH i2c: 01 07 00 [10:24:38]MH_I2C_Read... [10:24:38]Read from MH i2c: 01 07 00 42 2D 00 00 00 00 00 FF 0F 84 [10:24:38]RasterBufferAndPrint [10:24:38]line Счет N : (1)449103 [10:24:38]line ИНН: 02508201610067 [10:24:38]line Контрольно-Кассовый Чек [10:24:38]line ПРОДАЖА [10:24:38]line ТРК (МРК, ГНК) : 41 [10:24:38]line Товар: 2710124130 [10:24:38]line Аи-92-К-2 [10:24:38]line 7.480 * 66.90 [10:24:38]line = 500.41 [10:24:38]line НДС 12% НСП 1% [10:24:38]line > о реализуемом товаре [10:24:38]line ОКРУГЛЕНИЕ: -0.41 [10:24:38]line ИТОГО: 500.00 [10:24:38]line Внесено: 500.00 [10:24:38]line СДАЧА: 0.00 [10:24:38]line НСП 1% : 4.43 [10:24:38]line НДС 12% : 53.14 [10:24:38]line Наличными: 500.00 [10:24:38]line Безнал.: 0.00 [10:24:38]line Место: АЗС № 171 "Партнер Нефть" [10:24:38]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:24:38]line СНО: Общий режим [10:24:38]line Чек 116 26.10.2024 10:24 [10:24:38]line Смена: 543 ФФД: 1.0 [10:24:38]line ЗНМ: 0300000109 [10:24:38]line РНМ: 0000000000091777 [10:24:38]line Версия ККМ: 001 [10:24:38]line ФМ: 0000000000871756 [10:24:38]line ФД: 201354 [10:24:38]line ФПД: 132833514215266 [10:24:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102441&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201354&fm=132833514215266&tin=02508201610067®Number=0000000000091777&sum=50000 [10:24:39]OFD Sender: Processing packet 201354 [packets to send 112, broken 111] [10:24:39]ProducePacketName [10:24:39]name=ofd_packets/00201354 [10:24:39]OFD Sender: To server: pG, [10:24:39]CommunicateWithHost lk.salyk.kg:30040 [10:24:39]ConnectInit lk.salyk.kg [10:24:39]written 0, free lines is 4095 [10:24:39]Connected sock=9 [10:24:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B1 FA 07 01 28 CA 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 32 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 74 00 00 00 F4 03 04 00 69 C3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8A 12 03 00 35 04 06 00 78 CF B6 6D D7 62 0E C8 56 BD C8 1E BE 01 [10:24:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 40 EC 47 00 63 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8A 12 03 00 F4 03 04 00 12 6F 1C 67 B6 04 01 00 00 71 31 95 5D F2 51 FE 67 [10:24:39]CommunicateWithHost err = 0 [10:24:39]CheckOFDResponse [10:24:39]1017 (14) - 77093643461234 [10:24:39]1041 (16) - 0000000000871756 [10:24:39]1040 (4) - 201354 [10:24:39]1012 (4) - 26.10.2024 04:24 [10:24:39]1206 (1) - 0 [10:24:39]OFD Sender: Remove packet 201354 [10:24:39]ProducePacketName [10:24:39]name=ofd_packets/00201354 [10:24:39]NVStorageDeleteData [10:24:39]Write to MH i2c: 01 00 00 6D 2D 9A [10:24:39]Write i2c OK [10:24:39]MH_I2C_Read... [10:24:39]Read from MH i2c: 01 [10:24:39]MH_I2C_Read... [10:24:39]Read from MH i2c: 01 07 00 [10:24:39]MH_I2C_Read... [10:24:39]Read from MH i2c: 01 07 00 6D 2D 00 00 00 00 00 A1 0C 4E [10:24:39]RasterBufferAndPrint [10:24:39]line [10:24:39]line [10:24:39]line [10:24:39]line [10:24:39]line [10:24:39]written 0, free lines is 3239 [10:24:39]MH_Cut [10:24:39]Write to MH i2c: D1 01 00 74 2D 01 73 [10:24:39]Write i2c OK [10:24:39]MH_I2C_Read... [10:24:39]Read from MH i2c: D1 [10:24:39]MH_I2C_Read... [10:24:39]Read from MH i2c: D1 01 00 [10:24:39]MH_I2C_Read... [10:24:39]Read from MH i2c: D1 01 00 74 2D 00 72 [10:24:39]Write to MH i2c: 01 00 00 75 2D A2 [10:24:39]Write i2c OK [10:24:39]MH_I2C_Read... [10:24:40]OFD Sender: No OFD packet to send [10:24:40]*** Cut start [10:24:40]*** Purtial cut [10:24:40]*** Stage 1: CUTSNS_PIN = 1 [10:24:40]Read from MH i2c: 01 [10:24:40]MH_I2C_Read... [10:24:40]*** Stop cut motor [10:24:40]*** Cut end [10:24:40]Read from MH i2c: 01 07 00 [10:24:40]MH_I2C_Read... [10:24:40]Read from MH i2c: 01 07 00 75 2D 00 00 00 00 00 FF 0F B7 [10:24:40]process_action close_receipt done [10:24:40]requested_data is exist [10:24:40]produce_requested_data [10:24:40]requested_item fm.sn is exist - process it [10:24:40]wFMCommunicate request_size=4 [10:24:40]MH_SAM_APDU [10:24:40]CAPDU: 80 11 00 00 [10:24:40]Write to MH i2c: E2 08 00 76 2D 80 11 00 00 00 00 00 00 1D [10:24:40]Write i2c OK [10:24:40]MH_I2C_Read... [10:24:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:40]Read from MH i2c: E2 [10:24:40]MH_I2C_Read... [10:24:40]Read from MH i2c: E2 17 00 [10:24:40]MH_I2C_Read... [10:24:40]Read from MH i2c: E2 17 00 76 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 72 [10:24:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:24:40]wFMCommunicate OK [10:24:40]requested_item fd.num is exist - process it [10:24:40]SAM_PROTO_GetFieldsCounters [10:24:40]wFMCommunicate request_size=4 [10:24:40]MH_SAM_APDU [10:24:40]CAPDU: 80 13 00 00 [10:24:40]Write to MH i2c: E2 08 00 77 2D 80 13 00 00 00 00 00 00 20 [10:24:40]Write i2c OK [10:24:40]MH_I2C_Read... [10:24:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:41]Read from MH i2c: E2 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: E2 62 00 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: E2 62 00 77 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8A 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [10:24:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8A 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:24:41]wFMCommunicate OK [10:24:41]SAM_PROTO_GetFieldsCounters done [10:24:41]requested_item shift.num is exist - process it [10:24:41]requested_item shift.opened is exist - process it [10:24:41]req_shift_opened [10:24:41]FM_GetShiftState [10:24:41]SAM_PROTO_GetShiftState [10:24:41]wFMCommunicate request_size=4 [10:24:41]MH_SAM_APDU [10:24:41]CAPDU: 80 13 01 00 [10:24:41]Write to MH i2c: E2 08 00 78 2D 80 13 01 00 00 00 00 00 22 [10:24:41]Write i2c OK [10:24:41]MH_I2C_Read... [10:24:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:41]Read from MH i2c: E2 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: E2 0E 00 [10:24:41]MH_I2C_Read... [10:24:41]Read from MH i2c: E2 0E 00 78 2D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 31 [10:24:41]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:24:41]wFMCommunicate OK [10:24:41]SAM_PROTO_GetShiftState done [10:24:41]FM_GetShiftState done [10:24:41]req_shift_opened done [10:24:41]requested_item shift.open_date is exist - process it [10:24:41]req_shift_open_date [10:24:41]req_shift_open_date done [10:24:41]produce_requested_data done [10:24:41]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201354,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:24:41]process_action_free close_receipt [10:24:41]json_value_free [10:24:41]json_value_free done [10:24:41]process_json_proto returns [10:24:41]Send response to host [10:24:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201354,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:24:41]free response buf [10:24:41]execute_script done [10:24:41]execute_script returns [10:24:41]free content buf [10:24:41]Sock 10.Close socket [10:24:41]Sock 10.Thread stoped [10:24:45]OFD Sender: No OFD packet to send [10:24:50]OFD Sender: No OFD packet to send [10:24:55]OFD Sender: No OFD packet to send [10:25:00]OFD Sender: No OFD packet to send [10:25:05]OFD Sender: No OFD packet to send [10:25:10]OFD Sender: No OFD packet to send [10:25:10]accept exits with 7 [10:25:10]New connection [10:25:10]New thread 3067559268 created [10:25:10]Thread 3067415908 joined [10:25:10]Waiting for new connection... [10:25:10] Sock 7.Parse request [10:25:10]Sock 7.Check first char [10:25:10]Sock 7.First char is OK [10:25:10]request: POST /json_proto HTTP/1.0 [10:25:10]Method: POST [10:25:10]URL: /json_proto [10:25:10]Method is POST - this is cgi request [10:25:10]url: /json_proto [10:25:10]query_string will be loaded in cgi processing [10:25:10]execute_cgi json_proto POST (null) [10:25:10]execute_cgi path=json_proto method=POST [10:25:10]POST find Content-Length [10:25:10]Host: 172.17.63.195:8080 [10:25:10]Content-Length: 677 [10:25:10]Content-Type: application/json [10:25:10] [10:25:10]POST finish read [10:25:10]Found Content-Length = 677 [10:25:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:25:10]execute_script... [10:25:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:25:10]POST & json_proto [10:25:10]process_json_proto [10:25:10]json parsed OK: [10:25:10]protocol is kg_v1.0 [10:25:10]action value=close_receipt [10:25:10]process_action close_receipt [10:25:10]cmd_close_receipt [10:25:10]MH_GetDate [10:25:10]Write to MH i2c: F0 00 00 79 2D 95 [10:25:10]Write i2c OK [10:25:10]MH_I2C_Read... [10:25:10]Read from MH i2c: F0 [10:25:10]MH_I2C_Read... [10:25:10]Read from MH i2c: F0 09 00 [10:25:10]MH_I2C_Read... [10:25:10]Read from MH i2c: F0 09 00 79 2D 00 8A C3 1C 67 68 46 19 67 9C [10:25:10]GetLastDocTimeStamp 1729938281 [10:25:10]current date 1729938314 [10:25:10]FM_GetShiftState [10:25:10]SAM_PROTO_GetShiftState [10:25:10]wFMCommunicate request_size=4 [10:25:10]MH_SAM_APDU [10:25:10]CAPDU: 80 13 01 00 [10:25:10]Write to MH i2c: E2 08 00 7A 2D 80 13 01 00 00 00 00 00 24 [10:25:10]Write i2c OK [10:25:10]MH_I2C_Read... [10:25:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:10]Read from MH i2c: E2 [10:25:10]MH_I2C_Read... [10:25:10]Read from MH i2c: E2 0E 00 [10:25:10]MH_I2C_Read... [10:25:10]Read from MH i2c: E2 0E 00 7A 2D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 33 [10:25:10]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:25:10]wFMCommunicate OK [10:25:10]SAM_PROTO_GetShiftState done [10:25:10]FM_GetShiftState done [10:25:10]opened in 1729900879 [10:25:10]opened+sec_in_day 1729987279 [10:25:10]quantity*price = 25020 [10:25:10]sum+1 = 25022 [10:25:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 117 26.10.2024 10:25 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201355 ФПД: 190284950652279 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102514&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201355&fm=190284950652279&tin=02508201610067®Number=0000000000091777&sum=25000 [10:25:11]StoreToDocumentArchive [10:25:11]shift 543 fd 201355 [10:25:11]save to /storage/0543/doc_00201355 [10:25:11]save last doc name /storage/0543/doc_00201355 to /storage/kkm_last_doc_name [10:25:11]save OK [10:25:11]Clear old archive folders... [10:25:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:25:11]tlvbuf is 017D1F40 [10:25:11]SAM_PROTO_ClearQueue [10:25:11]wFMCommunicate request_size=4 [10:25:11]MH_SAM_APDU [10:25:11]CAPDU: 80 09 00 00 [10:25:11]Write to MH i2c: E2 08 00 87 2D 80 09 00 00 00 00 00 00 26 [10:25:11]Write i2c OK [10:25:11]MH_I2C_Read... [10:25:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:11]Read from MH i2c: E2 [10:25:11]MH_I2C_Read... [10:25:11]Read from MH i2c: E2 03 00 [10:25:11]MH_I2C_Read... [10:25:11]Read from MH i2c: E2 03 00 87 2D 00 90 00 28 [10:25:11]RAPDU: 90 00 [10:25:11]wFMCommunicate OK [10:25:11]SAM_PROTO_ClearQueue done [10:25:11]KKMCreateOFDPacket [10:25:11]OFDProtocolAddRootSTLVToBuf [10:25:11]FM_MakeSignedData [10:25:11]FM_MakeSignedData [10:25:11]SAM_PROTO_SignData [10:25:11]wFMCommunicate request_size=4 [10:25:11]MH_SAM_APDU [10:25:11]CAPDU: 80 0D 01 02 [10:25:11]Write to MH i2c: E2 08 00 88 2D 80 0D 01 02 00 00 00 00 2E [10:25:11]Write i2c OK [10:25:11]MH_I2C_Read... [10:25:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:11]Read from MH i2c: E2 [10:25:11]MH_I2C_Read... [10:25:11]Read from MH i2c: E2 03 00 [10:25:11]MH_I2C_Read... [10:25:11]Read from MH i2c: E2 03 00 88 2D 00 90 00 29 [10:25:11]RAPDU: 90 00 [10:25:11]wFMCommunicate OK [10:25:11]wFMCommunicate request_size=255 [10:25:11]MH_SAM_APDU [10:25:11]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 32 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 75 00 00 00 F4 03 04 00 8A C3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8B 12 03 00 35 04 06 00 AD [10:25:11]Write to MH i2c: E2 02 01 89 2D 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 32 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 75 00 00 00 F4 03 04 00 8A C3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8B 12 03 00 35 04 06 00 AD 00 00 4E [10:25:11]Write i2c OK [10:25:11]MH_I2C_Read... [10:25:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:11]Read from MH i2c: E2 [10:25:11]MH_I2C_Read... [10:25:11]Read from MH i2c: E2 03 00 [10:25:11]MH_I2C_Read... [10:25:11]Read from MH i2c: E2 03 00 89 2D 00 90 00 2A [10:25:11]RAPDU: 90 00 [10:25:11]wFMCommunicate OK [10:25:11]wFMCommunicate request_size=10 [10:25:11]MH_SAM_APDU [10:25:11]CAPDU: 80 0D 02 02 05 10 2A E3 C5 77 [10:25:11]Write to MH i2c: E2 0D 00 8A 2D 80 0D 02 02 05 00 10 2A E3 C5 77 00 00 94 [10:25:11]Write i2c OK [10:25:11]MH_I2C_Read... [10:25:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:11]Read from MH i2c: E2 [10:25:11]MH_I2C_Read... [10:25:11]Read from MH i2c: E2 03 00 [10:25:11]MH_I2C_Read... [10:25:11]Read from MH i2c: E2 03 00 8A 2D 00 90 00 2B [10:25:11]RAPDU: 90 00 [10:25:11]wFMCommunicate OK [10:25:11]wFMCommunicate request_size=4 [10:25:11]MH_SAM_APDU [10:25:11]CAPDU: 80 0D 03 02 [10:25:11]Write to MH i2c: E2 08 00 8B 2D 80 0D 03 02 00 00 00 00 33 [10:25:11]Write i2c OK [10:25:11]MH_I2C_Read... [10:25:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:12]Read from MH i2c: E2 [10:25:12]MH_I2C_Read... [10:25:12]Read from MH i2c: E2 0B 00 [10:25:12]MH_I2C_Read... [10:25:12]Read from MH i2c: E2 0B 00 8B 2D 00 EC ED E1 A8 5D 99 03 6C 90 00 FB [10:25:12]RAPDU: EC ED E1 A8 5D 99 03 6C 90 00 [10:25:12]wFMCommunicate OK [10:25:12]SAM_PROTO_SignData done [10:25:12]FM_MakeSignedData done [10:25:12]CreateOFDProtocolMessage [10:25:12]wFMCommunicate request_size=4 [10:25:12]MH_SAM_APDU [10:25:12]CAPDU: 80 11 00 00 [10:25:12]Write to MH i2c: E2 08 00 8C 2D 80 11 00 00 00 00 00 00 33 [10:25:12]Write i2c OK [10:25:12]MH_I2C_Read... [10:25:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:12]Read from MH i2c: E2 [10:25:12]MH_I2C_Read... [10:25:12]Read from MH i2c: E2 17 00 [10:25:12]MH_I2C_Read... [10:25:12]Read from MH i2c: E2 17 00 8C 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 88 [10:25:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:25:12]wFMCommunicate OK [10:25:12]CreateOFDProtocolMessage done [10:25:12]OFDSenderStorePacket 201355 [10:25:12]StoreOFDPacket docnum=201355 [10:25:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C6 AC 07 01 70 86 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 32 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 75 00 00 00 F4 03 04 00 8A C3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8B 12 03 00 35 04 06 00 AD 10 2A E3 C5 77 EC ED E1 A8 5D 99 03 6C [10:25:12]CheckFolder [10:25:12]dirname=/storage/ofd_packets [10:25:12]CheckFolder done [10:25:12]ProducePacketName [10:25:12]name=ofd_packets/00201355 [10:25:12]NVStorageSaveData ofd_packets/00201355 [10:25:12]File name is /storage/ofd_packets/00201355 [10:25:12]Write 301 bytes [10:25:12]NVStorageSaveData done [10:25:12]OFDSenderStorePacket done [10:25:12]KKMCreateOFDPacket done [10:25:12]NVStorageSaveData kkm_last_timestamp [10:25:12]File name is /storage/kkm_last_timestamp [10:25:12]Write 4 bytes [10:25:12]NVStorageSaveData done [10:25:12]ExternCall_PrintAddStr [10:25:12]wPrintStart [10:25:12]Write to MH i2c: 01 00 00 8D 2D BA [10:25:12]Write i2c OK [10:25:12]MH_I2C_Read... [10:25:12]Read from MH i2c: 01 [10:25:12]MH_I2C_Read... [10:25:12]Read from MH i2c: 01 07 00 [10:25:12]MH_I2C_Read... [10:25:12]Read from MH i2c: 01 07 00 8D 2D 00 00 00 00 00 FF 0F CF [10:25:12]RasterBufferAndPrint [10:25:12]line Счет N : (1)449104 [10:25:12]line ИНН: 02508201610067 [10:25:12]line Контрольно-Кассовый Чек [10:25:12]line ПРОДАЖА [10:25:12]line ТРК (МРК, ГНК) : 31 [10:25:12]line Товар: 2710124130 [10:25:12]line Аи-92-К-2 [10:25:12]line 3.740 * 66.90 [10:25:12]line = 250.21 [10:25:12]line НДС 12% НСП 1% [10:25:12]line > о реализуемом товаре [10:25:12]line ОКРУГЛЕНИЕ: -0.21 [10:25:12]line ИТОГО: 250.00 [10:25:12]line Внесено: 250.00 [10:25:12]line СДАЧА: 0.00 [10:25:12]line НСП 1% : 2.21 [10:25:12]line НДС 12% : 26.57 [10:25:12]line Наличными: 250.00 [10:25:12]line Безнал.: 0.00 [10:25:12]line Место: АЗС № 171 "Партнер Нефть" [10:25:12]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:25:12]line СНО: Общий режим [10:25:12]line Чек 117 26.10.2024 10:25 [10:25:12]line Смена: 543 ФФД: 1.0 [10:25:12]line ЗНМ: 0300000109 [10:25:12]line РНМ: 0000000000091777 [10:25:12]line Версия ККМ: 001 [10:25:12]line ФМ: 0000000000871756 [10:25:12]line ФД: 201355 [10:25:12]line ФПД: 190284950652279 [10:25:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102514&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201355&fm=190284950652279&tin=02508201610067®Number=0000000000091777&sum=25000 [10:25:12]OFD Sender: Processing packet 201355 [packets to send 112, broken 111] [10:25:12]ProducePacketName [10:25:12]name=ofd_packets/00201355 [10:25:12]OFD Sender: To server: pG, [10:25:12]CommunicateWithHost lk.salyk.kg:30040 [10:25:12]ConnectInit lk.salyk.kg [10:25:12]written 0, free lines is 4095 [10:25:12]Connected sock=10 [10:25:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C6 AC 07 01 70 86 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 32 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 75 00 00 00 F4 03 04 00 8A C3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8B 12 03 00 35 04 06 00 AD 10 2A E3 C5 77 EC ED E1 A8 5D 99 03 6C [10:25:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 62 A2 47 00 67 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8B 12 03 00 F4 03 04 00 33 6F 1C 67 B6 04 01 00 00 BC 8C A1 C7 49 DE B1 8C [10:25:12]CommunicateWithHost err = 0 [10:25:12]CheckOFDResponse [10:25:12]1017 (14) - 77093643461234 [10:25:12]1041 (16) - 0000000000871756 [10:25:12]1040 (4) - 201355 [10:25:12]1012 (4) - 26.10.2024 04:25 [10:25:12]1206 (1) - 0 [10:25:12]OFD Sender: Remove packet 201355 [10:25:12]ProducePacketName [10:25:12]name=ofd_packets/00201355 [10:25:12]NVStorageDeleteData [10:25:12]Write to MH i2c: 01 00 00 B8 2D E5 [10:25:12]Write i2c OK [10:25:12]MH_I2C_Read... [10:25:12]Read from MH i2c: 01 [10:25:12]MH_I2C_Read... [10:25:12]Read from MH i2c: 01 07 00 [10:25:12]MH_I2C_Read... [10:25:12]Read from MH i2c: 01 07 00 B8 2D 00 00 00 00 00 A2 0C 9A [10:25:12]RasterBufferAndPrint [10:25:12]line [10:25:12]line [10:25:12]line [10:25:12]line [10:25:12]line [10:25:12]written 0, free lines is 3242 [10:25:12]MH_Cut [10:25:12]Write to MH i2c: D1 01 00 BF 2D 01 BE [10:25:12]Write i2c OK [10:25:12]MH_I2C_Read... [10:25:12]Read from MH i2c: D1 [10:25:12]MH_I2C_Read... [10:25:12]Read from MH i2c: D1 01 00 [10:25:12]MH_I2C_Read... [10:25:12]Read from MH i2c: D1 01 00 BF 2D 00 BD [10:25:12]Write to MH i2c: 01 00 00 C0 2D ED [10:25:12]Write i2c OK [10:25:12]MH_I2C_Read... [10:25:13]OFD Sender: No OFD packet to send [10:25:13]*** Cut start [10:25:13]*** Purtial cut [10:25:13]*** Stage 1: CUTSNS_PIN = 1 [10:25:13]Read from MH i2c: 01 [10:25:13]MH_I2C_Read... [10:25:13]*** Stop cut motor [10:25:13]*** Cut end [10:25:13]Read from MH i2c: 01 07 00 [10:25:13]MH_I2C_Read... [10:25:13]Read from MH i2c: 01 07 00 C0 2D 00 00 00 00 00 FF 0F 02 [10:25:13]process_action close_receipt done [10:25:13]requested_data is exist [10:25:13]produce_requested_data [10:25:13]requested_item fm.sn is exist - process it [10:25:13]wFMCommunicate request_size=4 [10:25:13]MH_SAM_APDU [10:25:13]CAPDU: 80 11 00 00 [10:25:13]Write to MH i2c: E2 08 00 C1 2D 80 11 00 00 00 00 00 00 68 [10:25:13]Write i2c OK [10:25:13]MH_I2C_Read... [10:25:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:14]Read from MH i2c: E2 [10:25:14]MH_I2C_Read... [10:25:14]Read from MH i2c: E2 17 00 [10:25:14]MH_I2C_Read... [10:25:14]Read from MH i2c: E2 17 00 C1 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BD [10:25:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:25:14]wFMCommunicate OK [10:25:14]requested_item fd.num is exist - process it [10:25:14]SAM_PROTO_GetFieldsCounters [10:25:14]wFMCommunicate request_size=4 [10:25:14]MH_SAM_APDU [10:25:14]CAPDU: 80 13 00 00 [10:25:14]Write to MH i2c: E2 08 00 C2 2D 80 13 00 00 00 00 00 00 6B [10:25:14]Write i2c OK [10:25:14]MH_I2C_Read... [10:25:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:14]Read from MH i2c: E2 [10:25:14]MH_I2C_Read... [10:25:14]Read from MH i2c: E2 62 00 [10:25:14]MH_I2C_Read... [10:25:14]Read from MH i2c: E2 62 00 C2 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8B 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [10:25:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8B 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:25:14]wFMCommunicate OK [10:25:14]SAM_PROTO_GetFieldsCounters done [10:25:14]requested_item shift.num is exist - process it [10:25:14]requested_item shift.opened is exist - process it [10:25:14]req_shift_opened [10:25:14]FM_GetShiftState [10:25:14]SAM_PROTO_GetShiftState [10:25:14]wFMCommunicate request_size=4 [10:25:14]MH_SAM_APDU [10:25:14]CAPDU: 80 13 01 00 [10:25:14]Write to MH i2c: E2 08 00 C3 2D 80 13 01 00 00 00 00 00 6D [10:25:14]Write i2c OK [10:25:14]MH_I2C_Read... [10:25:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:14]Read from MH i2c: E2 [10:25:14]MH_I2C_Read... [10:25:14]Read from MH i2c: E2 0E 00 [10:25:14]MH_I2C_Read... [10:25:14]Read from MH i2c: E2 0E 00 C3 2D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 7C [10:25:14]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:25:14]wFMCommunicate OK [10:25:14]SAM_PROTO_GetShiftState done [10:25:14]FM_GetShiftState done [10:25:14]req_shift_opened done [10:25:14]requested_item shift.open_date is exist - process it [10:25:14]req_shift_open_date [10:25:14]req_shift_open_date done [10:25:14]produce_requested_data done [10:25:14]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201355,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:25:14]process_action_free close_receipt [10:25:14]json_value_free [10:25:14]json_value_free done [10:25:14]process_json_proto returns [10:25:14]Send response to host [10:25:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201355,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:25:14]free response buf [10:25:14]execute_script done [10:25:14]execute_script returns [10:25:14]free content buf [10:25:14]Sock 7.Close socket [10:25:14]Sock 7.Thread stoped [10:25:18]OFD Sender: No OFD packet to send [10:25:23]OFD Sender: No OFD packet to send [10:25:28]OFD Sender: No OFD packet to send [10:25:32]accept exits with 9 [10:25:32]New connection [10:25:32]New thread 3067415908 created [10:25:32]Thread 3067559268 joined [10:25:32]Waiting for new connection... [10:25:32] Sock 9.Parse request [10:25:32]Sock 9.Check first char [10:25:32]Sock 9.First char is OK [10:25:32]request: POST /json_proto HTTP/1.0 [10:25:32]Method: POST [10:25:32]URL: /json_proto [10:25:32]Method is POST - this is cgi request [10:25:32]url: /json_proto [10:25:32]query_string will be loaded in cgi processing [10:25:32]execute_cgi json_proto POST (null) [10:25:32]execute_cgi path=json_proto method=POST [10:25:32]POST find Content-Length [10:25:32]Host: 172.17.63.195:8080 [10:25:32]Content-Length: 677 [10:25:32]Content-Type: application/json [10:25:32] [10:25:32]POST finish read [10:25:32]Found Content-Length = 677 [10:25:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [10:25:32]execute_script... [10:25: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)449105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [10:25:32]POST & json_proto [10:25:32]process_json_proto [10:25:32]json parsed OK: [10:25:32]protocol is kg_v1.0 [10:25:32]action value=close_receipt [10:25:32]process_action close_receipt [10:25:32]cmd_close_receipt [10:25:32]MH_GetDate [10:25:32]Write to MH i2c: F0 00 00 C4 2D E0 [10:25:32]Write i2c OK [10:25:32]MH_I2C_Read... [10:25:32]Read from MH i2c: F0 [10:25:32]MH_I2C_Read... [10:25:32]Read from MH i2c: F0 09 00 [10:25:32]MH_I2C_Read... [10:25:32]Read from MH i2c: F0 09 00 C4 2D 00 A0 C3 1C 67 68 46 19 67 FD [10:25:32]GetLastDocTimeStamp 1729938314 [10:25:32]current date 1729938336 [10:25:32]FM_GetShiftState [10:25:32]SAM_PROTO_GetShiftState [10:25:32]wFMCommunicate request_size=4 [10:25:32]MH_SAM_APDU [10:25:32]CAPDU: 80 13 01 00 [10:25:32]Write to MH i2c: E2 08 00 C5 2D 80 13 01 00 00 00 00 00 6F [10:25:32]Write i2c OK [10:25:32]MH_I2C_Read... [10:25:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:32]Read from MH i2c: E2 [10:25:32]MH_I2C_Read... [10:25:32]Read from MH i2c: E2 0E 00 [10:25:32]MH_I2C_Read... [10:25:32]Read from MH i2c: E2 0E 00 C5 2D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 7E [10:25:32]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:25:32]wFMCommunicate OK [10:25:32]SAM_PROTO_GetShiftState done [10:25:32]FM_GetShiftState done [10:25:32]opened in 1729900879 [10:25:32]opened+sec_in_day 1729987279 [10:25:32]quantity*price = 35055 [10:25:32]sum+1 = 35057 [10:25:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 118 26.10.2024 10:25 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201356 ФПД: 85483620858257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102536&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201356&fm=85483620858257&tin=02508201610067®Number=0000000000091777&sum=35000 [10:25:33]StoreToDocumentArchive [10:25:33]shift 543 fd 201356 [10:25:33]save to /storage/0543/doc_00201356 [10:25:33]save last doc name /storage/0543/doc_00201356 to /storage/kkm_last_doc_name [10:25:33]save OK [10:25:33]Clear old archive folders... [10:25:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:25:33]tlvbuf is 017BD1C0 [10:25:33]SAM_PROTO_ClearQueue [10:25:33]wFMCommunicate request_size=4 [10:25:33]MH_SAM_APDU [10:25:33]CAPDU: 80 09 00 00 [10:25:33]Write to MH i2c: E2 08 00 D2 2D 80 09 00 00 00 00 00 00 71 [10:25:33]Write i2c OK [10:25:33]MH_I2C_Read... [10:25:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:33]Read from MH i2c: E2 [10:25:33]MH_I2C_Read... [10:25:33]Read from MH i2c: E2 03 00 [10:25:33]MH_I2C_Read... [10:25:33]Read from MH i2c: E2 03 00 D2 2D 00 90 00 73 [10:25:33]RAPDU: 90 00 [10:25:33]wFMCommunicate OK [10:25:33]SAM_PROTO_ClearQueue done [10:25:33]KKMCreateOFDPacket [10:25:33]OFDProtocolAddRootSTLVToBuf [10:25:33]FM_MakeSignedData [10:25:33]FM_MakeSignedData [10:25:33]SAM_PROTO_SignData [10:25:33]wFMCommunicate request_size=4 [10:25:33]MH_SAM_APDU [10:25:33]CAPDU: 80 0D 01 02 [10:25:33]Write to MH i2c: E2 08 00 D3 2D 80 0D 01 02 00 00 00 00 79 [10:25:33]Write i2c OK [10:25:33]MH_I2C_Read... [10:25:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:33]Read from MH i2c: E2 [10:25:33]MH_I2C_Read... [10:25:33]Read from MH i2c: E2 03 00 [10:25:33]MH_I2C_Read... [10:25:33]Read from MH i2c: E2 03 00 D3 2D 00 90 00 74 [10:25:33]RAPDU: 90 00 [10:25:33]wFMCommunicate OK [10:25:33]wFMCommunicate request_size=255 [10:25:33]MH_SAM_APDU [10:25: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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 76 00 00 00 F4 03 04 00 A0 C3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8C 12 03 00 35 04 06 00 4D [10:25:33]Write to MH i2c: E2 02 01 D4 2D 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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 76 00 00 00 F4 03 04 00 A0 C3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8C 12 03 00 35 04 06 00 4D 00 00 83 [10:25:33]Write i2c OK [10:25:33]MH_I2C_Read... [10:25:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:33]Read from MH i2c: E2 [10:25:33]MH_I2C_Read... [10:25:33]Read from MH i2c: E2 03 00 [10:25:33]MH_I2C_Read... [10:25:33]Read from MH i2c: E2 03 00 D4 2D 00 90 00 75 [10:25:33]RAPDU: 90 00 [10:25:33]wFMCommunicate OK [10:25:33]wFMCommunicate request_size=10 [10:25:33]MH_SAM_APDU [10:25:33]CAPDU: 80 0D 02 02 05 BF 34 DA F9 91 [10:25:33]Write to MH i2c: E2 0D 00 D5 2D 80 0D 02 02 05 00 BF 34 DA F9 91 00 00 DD [10:25:33]Write i2c OK [10:25:33]MH_I2C_Read... [10:25:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:33]Read from MH i2c: E2 [10:25:33]MH_I2C_Read... [10:25:33]Read from MH i2c: E2 03 00 [10:25:33]MH_I2C_Read... [10:25:33]Read from MH i2c: E2 03 00 D5 2D 00 90 00 76 [10:25:33]RAPDU: 90 00 [10:25:33]wFMCommunicate OK [10:25:33]wFMCommunicate request_size=4 [10:25:33]MH_SAM_APDU [10:25:33]CAPDU: 80 0D 03 02 [10:25:33]Write to MH i2c: E2 08 00 D6 2D 80 0D 03 02 00 00 00 00 7E [10:25:33]Write i2c OK [10:25:33]MH_I2C_Read... [10:25:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:33]Read from MH i2c: E2 [10:25:33]MH_I2C_Read... [10:25:33]Read from MH i2c: E2 0B 00 [10:25:33]MH_I2C_Read... [10:25:33]Read from MH i2c: E2 0B 00 D6 2D 00 1B E2 02 11 70 B2 8E BA 90 00 F9 [10:25:33]RAPDU: 1B E2 02 11 70 B2 8E BA 90 00 [10:25:33]wFMCommunicate OK [10:25:33]SAM_PROTO_SignData done [10:25:33]FM_MakeSignedData done [10:25:33]CreateOFDProtocolMessage [10:25:33]wFMCommunicate request_size=4 [10:25:33]MH_SAM_APDU [10:25:33]CAPDU: 80 11 00 00 [10:25:33]Write to MH i2c: E2 08 00 D7 2D 80 11 00 00 00 00 00 00 7E [10:25:33]Write i2c OK [10:25:33]MH_I2C_Read... [10:25:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:33]Read from MH i2c: E2 [10:25:33]MH_I2C_Read... [10:25:33]Read from MH i2c: E2 17 00 [10:25:33]MH_I2C_Read... [10:25:33]Read from MH i2c: E2 17 00 D7 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D3 [10:25:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:25:33]wFMCommunicate OK [10:25:33]CreateOFDProtocolMessage done [10:25:33]OFDSenderStorePacket 201356 [10:25:33]StoreOFDPacket docnum=201356 [10:25:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 24 30 07 01 CB 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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 76 00 00 00 F4 03 04 00 A0 C3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8C 12 03 00 35 04 06 00 4D BF 34 DA F9 91 1B E2 02 11 70 B2 8E BA [10:25:33]CheckFolder [10:25:33]dirname=/storage/ofd_packets [10:25:33]CheckFolder done [10:25:33]ProducePacketName [10:25:33]name=ofd_packets/00201356 [10:25:33]NVStorageSaveData ofd_packets/00201356 [10:25:33]File name is /storage/ofd_packets/00201356 [10:25:33]Write 301 bytes [10:25:33]NVStorageSaveData done [10:25:33]OFDSenderStorePacket done [10:25:33]KKMCreateOFDPacket done [10:25:33]NVStorageSaveData kkm_last_timestamp [10:25:33]File name is /storage/kkm_last_timestamp [10:25:33]Write 4 bytes [10:25:33]NVStorageSaveData done [10:25:33]ExternCall_PrintAddStr [10:25:33]wPrintStart [10:25:33]Write to MH i2c: 01 00 00 D8 2D 05 [10:25:33]Write i2c OK [10:25:33]MH_I2C_Read... [10:25:33]Read from MH i2c: 01 [10:25:33]MH_I2C_Read... [10:25:33]Read from MH i2c: 01 07 00 [10:25:33]MH_I2C_Read... [10:25:33]Read from MH i2c: 01 07 00 D8 2D 00 00 00 00 00 FF 0F 1A [10:25:33]RasterBufferAndPrint [10:25:33]line Счет N : (1)449105 [10:25:33]line ИНН: 02508201610067 [10:25:33]line Контрольно-Кассовый Чек [10:25:33]line ПРОДАЖА [10:25:33]line ТРК (МРК, ГНК) : 62 [10:25:33]line Товар: 2710124130 [10:25:33]line Аи-92-К-2 [10:25:33]line 5.240 * 66.90 [10:25:33]line = 350.56 [10:25:33]line НДС 12% НСП 1% [10:25:33]line > о реализуемом товаре [10:25:33]line ОКРУГЛЕНИЕ: -0.56 [10:25:33]line ИТОГО: 350.00 [10:25:33]line Внесено: 350.00 [10:25:33]line СДАЧА: 0.00 [10:25:33]line НСП 1% : 3.10 [10:25:33]line НДС 12% : 37.23 [10:25:33]line Наличными: 350.00 [10:25:33]line Безнал.: 0.00 [10:25:33]line Место: АЗС № 171 "Партнер Нефть" [10:25:33]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:25:33]line СНО: Общий режим [10:25:33]line Чек 118 26.10.2024 10:25 [10:25:33]line Смена: 543 ФФД: 1.0 [10:25:33]line ЗНМ: 0300000109 [10:25:33]line РНМ: 0000000000091777 [10:25:33]line Версия ККМ: 001 [10:25:33]line ФМ: 0000000000871756 [10:25:33]line ФД: 201356 [10:25:33]line ФПД: 85483620858257 [10:25:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102536&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201356&fm=85483620858257&tin=02508201610067®Number=0000000000091777&sum=35000 [10:25:34]OFD Sender: Processing packet 201356 [packets to send 112, broken 111] [10:25:34]ProducePacketName [10:25:34]name=ofd_packets/00201356 [10:25:34]OFD Sender: To server: pG, [10:25:34]CommunicateWithHost lk.salyk.kg:30040 [10:25:34]ConnectInit lk.salyk.kg [10:25:34]written 0, free lines is 4095 [10:25:34]Connected sock=10 [10:25:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 24 30 07 01 CB 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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 76 00 00 00 F4 03 04 00 A0 C3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8C 12 03 00 35 04 06 00 4D BF 34 DA F9 91 1B E2 02 11 70 B2 8E BA [10:25:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 5D 37 47 00 14 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8C 12 03 00 F4 03 04 00 49 6F 1C 67 B6 04 01 00 00 B0 DC B0 AD F0 AB 89 3E [10:25:34]CommunicateWithHost err = 0 [10:25:34]CheckOFDResponse [10:25:34]1017 (14) - 77093643461234 [10:25:34]1041 (16) - 0000000000871756 [10:25:34]1040 (4) - 201356 [10:25:34]1012 (4) - 26.10.2024 04:25 [10:25:34]1206 (1) - 0 [10:25:34]OFD Sender: Remove packet 201356 [10:25:34]ProducePacketName [10:25:34]name=ofd_packets/00201356 [10:25:34]NVStorageDeleteData [10:25:34]Write to MH i2c: 01 00 00 03 2E 31 [10:25:34]Write i2c OK [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: 01 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: 01 07 00 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: 01 07 00 03 2E 00 00 00 00 00 A9 0C ED [10:25:34]RasterBufferAndPrint [10:25:34]line [10:25:34]line [10:25:34]line [10:25:34]line [10:25:34]line [10:25:34]written 0, free lines is 3245 [10:25:34]MH_Cut [10:25:34]Write to MH i2c: D1 01 00 0A 2E 01 0A [10:25:34]Write i2c OK [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: D1 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: D1 01 00 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: D1 01 00 0A 2E 00 09 [10:25:34]Write to MH i2c: 01 00 00 0B 2E 39 [10:25:34]Write i2c OK [10:25:34]MH_I2C_Read... [10:25:35]OFD Sender: No OFD packet to send [10:25:35]*** Cut start [10:25:35]*** Purtial cut [10:25:35]*** Stage 1: CUTSNS_PIN = 1 [10:25:35]Read from MH i2c: 01 [10:25:35]MH_I2C_Read... [10:25:35]*** Stop cut motor [10:25:35]*** Cut end [10:25:35]Read from MH i2c: 01 07 00 [10:25:35]MH_I2C_Read... [10:25:35]Read from MH i2c: 01 07 00 0B 2E 00 00 00 00 00 FF 0F 4E [10:25:35]process_action close_receipt done [10:25:35]requested_data is exist [10:25:35]produce_requested_data [10:25:35]requested_item fm.sn is exist - process it [10:25:35]wFMCommunicate request_size=4 [10:25:35]MH_SAM_APDU [10:25:35]CAPDU: 80 11 00 00 [10:25:35]Write to MH i2c: E2 08 00 0C 2E 80 11 00 00 00 00 00 00 B4 [10:25:35]Write i2c OK [10:25:35]MH_I2C_Read... [10:25:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:35]Read from MH i2c: E2 [10:25:35]MH_I2C_Read... [10:25:35]Read from MH i2c: E2 17 00 [10:25:35]MH_I2C_Read... [10:25:35]Read from MH i2c: E2 17 00 0C 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 09 [10:25:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:25:35]wFMCommunicate OK [10:25:35]requested_item fd.num is exist - process it [10:25:35]SAM_PROTO_GetFieldsCounters [10:25:35]wFMCommunicate request_size=4 [10:25:35]MH_SAM_APDU [10:25:35]CAPDU: 80 13 00 00 [10:25:35]Write to MH i2c: E2 08 00 0D 2E 80 13 00 00 00 00 00 00 B7 [10:25:35]Write i2c OK [10:25:35]MH_I2C_Read... [10:25:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:36]Read from MH i2c: E2 [10:25:36]MH_I2C_Read... [10:25:36]Read from MH i2c: E2 62 00 [10:25:36]MH_I2C_Read... [10:25:36]Read from MH i2c: E2 62 00 0D 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8C 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [10:25:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8C 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:25:36]wFMCommunicate OK [10:25:36]SAM_PROTO_GetFieldsCounters done [10:25:36]requested_item shift.num is exist - process it [10:25:36]requested_item shift.opened is exist - process it [10:25:36]req_shift_opened [10:25:36]FM_GetShiftState [10:25:36]SAM_PROTO_GetShiftState [10:25:36]wFMCommunicate request_size=4 [10:25:36]MH_SAM_APDU [10:25:36]CAPDU: 80 13 01 00 [10:25:36]Write to MH i2c: E2 08 00 0E 2E 80 13 01 00 00 00 00 00 B9 [10:25:36]Write i2c OK [10:25:36]MH_I2C_Read... [10:25:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:36]Read from MH i2c: E2 [10:25:36]MH_I2C_Read... [10:25:36]Read from MH i2c: E2 0E 00 [10:25:36]MH_I2C_Read... [10:25:36]Read from MH i2c: E2 0E 00 0E 2E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C8 [10:25:36]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:25:36]wFMCommunicate OK [10:25:36]SAM_PROTO_GetShiftState done [10:25:36]FM_GetShiftState done [10:25:36]req_shift_opened done [10:25:36]requested_item shift.open_date is exist - process it [10:25:36]req_shift_open_date [10:25:36]req_shift_open_date done [10:25:36]produce_requested_data done [10:25:36]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201356,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:25:36]process_action_free close_receipt [10:25:36]json_value_free [10:25:36]json_value_free done [10:25:36]process_json_proto returns [10:25:36]Send response to host [10:25:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201356,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:25:36]free response buf [10:25:36]execute_script done [10:25:36]execute_script returns [10:25:36]free content buf [10:25:36]Sock 9.Close socket [10:25:36]Sock 9.Thread stoped [10:25:40]OFD Sender: No OFD packet to send [10:25:45]OFD Sender: No OFD packet to send [10:25:50]OFD Sender: No OFD packet to send [10:25:55]OFD Sender: No OFD packet to send [10:26:00]OFD Sender: No OFD packet to send [10:26:05]OFD Sender: No OFD packet to send [10:26:10]OFD Sender: No OFD packet to send [10:26:15]OFD Sender: No OFD packet to send [10:26:20]OFD Sender: No OFD packet to send [10:26:25]OFD Sender: No OFD packet to send [10:26:30]OFD Sender: No OFD packet to send [10:26:35]OFD Sender: No OFD packet to send [10:26:40]OFD Sender: No OFD packet to send [10:26:45]OFD Sender: No OFD packet to send [10:26:50]OFD Sender: No OFD packet to send [10:26:55]OFD Sender: No OFD packet to send [10:26:56]accept exits with 7 [10:26:56]New connection [10:26:56]New thread 3067559268 created [10:26:56]Thread 3067415908 joined [10:26:56]Waiting for new connection... [10:26:56] Sock 7.Parse request [10:26:56]Sock 7.Check first char [10:26:56]Sock 7.First char is OK [10:26:56]request: POST /json_proto HTTP/1.0 [10:26:56]Method: POST [10:26:56]URL: /json_proto [10:26:56]Method is POST - this is cgi request [10:26:56]url: /json_proto [10:26:56]query_string will be loaded in cgi processing [10:26:56]execute_cgi json_proto POST (null) [10:26:56]execute_cgi path=json_proto method=POST [10:26:56]POST find Content-Length [10:26:56]Host: 172.17.63.195:8080 [10:26:56]Content-Length: 677 [10:26:56]Content-Type: application/json [10:26:56] [10:26:56]POST finish read [10:26:56]Found Content-Length = 677 [10:26:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:56]execute_script... [10:26: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)449106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:56]POST & json_proto [10:26:56]process_json_proto [10:26:56]json parsed OK: [10:26:56]protocol is kg_v1.0 [10:26:56]action value=close_receipt [10:26:56]process_action close_receipt [10:26:56]cmd_close_receipt [10:26:56]MH_GetDate [10:26:56]Write to MH i2c: F0 00 00 0F 2E 2C [10:26:56]Write i2c OK [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: F0 [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: F0 09 00 [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: F0 09 00 0F 2E 00 F4 C3 1C 67 68 46 19 67 9D [10:26:56]GetLastDocTimeStamp 1729938336 [10:26:56]current date 1729938420 [10:26:56]FM_GetShiftState [10:26:56]SAM_PROTO_GetShiftState [10:26:56]wFMCommunicate request_size=4 [10:26:56]MH_SAM_APDU [10:26:56]CAPDU: 80 13 01 00 [10:26:56]Write to MH i2c: E2 08 00 10 2E 80 13 01 00 00 00 00 00 BB [10:26:56]Write i2c OK [10:26:56]MH_I2C_Read... [10:26:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:56]Read from MH i2c: E2 [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: E2 0E 00 [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: E2 0E 00 10 2E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 CA [10:26:56]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:26:56]wFMCommunicate OK [10:26:56]SAM_PROTO_GetShiftState done [10:26:56]FM_GetShiftState done [10:26:56]opened in 1729900879 [10:26:56]opened+sec_in_day 1729987279 [10:26:56]quantity*price = 30038 [10:26:56]sum+1 = 30039 [10:26:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 119 26.10.2024 10:27 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201357 ФПД: 211445201901141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102700&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201357&fm=211445201901141&tin=02508201610067®Number=0000000000091777&sum=30000 [10:26:57]StoreToDocumentArchive [10:26:57]shift 543 fd 201357 [10:26:57]save to /storage/0543/doc_00201357 [10:26:57]save last doc name /storage/0543/doc_00201357 to /storage/kkm_last_doc_name [10:26:57]save OK [10:26:57]Clear old archive folders... [10:26:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:26:57]tlvbuf is 017D2210 [10:26:57]SAM_PROTO_ClearQueue [10:26:57]wFMCommunicate request_size=4 [10:26:57]MH_SAM_APDU [10:26:57]CAPDU: 80 09 00 00 [10:26:57]Write to MH i2c: E2 08 00 1D 2E 80 09 00 00 00 00 00 00 BD [10:26:57]Write i2c OK [10:26:57]MH_I2C_Read... [10:26:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:57]Read from MH i2c: E2 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 03 00 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 03 00 1D 2E 00 90 00 BF [10:26:57]RAPDU: 90 00 [10:26:57]wFMCommunicate OK [10:26:57]SAM_PROTO_ClearQueue done [10:26:57]KKMCreateOFDPacket [10:26:57]OFDProtocolAddRootSTLVToBuf [10:26:57]FM_MakeSignedData [10:26:57]FM_MakeSignedData [10:26:57]SAM_PROTO_SignData [10:26:57]wFMCommunicate request_size=4 [10:26:57]MH_SAM_APDU [10:26:57]CAPDU: 80 0D 01 02 [10:26:57]Write to MH i2c: E2 08 00 1E 2E 80 0D 01 02 00 00 00 00 C5 [10:26:57]Write i2c OK [10:26:57]MH_I2C_Read... [10:26:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:57]Read from MH i2c: E2 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 03 00 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 03 00 1E 2E 00 90 00 C0 [10:26:57]RAPDU: 90 00 [10:26:57]wFMCommunicate OK [10:26:57]wFMCommunicate request_size=255 [10:26:57]MH_SAM_APDU [10:26: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 F4 C3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8D 12 03 00 35 04 06 00 C0 [10:26:57]Write to MH i2c: E2 02 01 1F 2E 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 F4 C3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8D 12 03 00 35 04 06 00 C0 00 00 81 [10:26:57]Write i2c OK [10:26:57]MH_I2C_Read... [10:26:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:57]Read from MH i2c: E2 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 03 00 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 03 00 1F 2E 00 90 00 C1 [10:26:57]RAPDU: 90 00 [10:26:57]wFMCommunicate OK [10:26:57]wFMCommunicate request_size=10 [10:26:57]MH_SAM_APDU [10:26:57]CAPDU: 80 0D 02 02 05 4E EC 26 16 55 [10:26:57]Write to MH i2c: E2 0D 00 20 2E 80 0D 02 02 05 00 4E EC 26 16 55 00 00 9D [10:26:57]Write i2c OK [10:26:57]MH_I2C_Read... [10:26:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:57]Read from MH i2c: E2 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 03 00 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 03 00 20 2E 00 90 00 C2 [10:26:57]RAPDU: 90 00 [10:26:57]wFMCommunicate OK [10:26:57]wFMCommunicate request_size=4 [10:26:57]MH_SAM_APDU [10:26:57]CAPDU: 80 0D 03 02 [10:26:57]Write to MH i2c: E2 08 00 21 2E 80 0D 03 02 00 00 00 00 CA [10:26:57]Write i2c OK [10:26:57]MH_I2C_Read... [10:26:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:57]Read from MH i2c: E2 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 0B 00 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 0B 00 21 2E 00 E8 E9 11 72 4A B0 59 37 90 00 A9 [10:26:57]RAPDU: E8 E9 11 72 4A B0 59 37 90 00 [10:26:57]wFMCommunicate OK [10:26:57]SAM_PROTO_SignData done [10:26:57]FM_MakeSignedData done [10:26:57]CreateOFDProtocolMessage [10:26:57]wFMCommunicate request_size=4 [10:26:57]MH_SAM_APDU [10:26:57]CAPDU: 80 11 00 00 [10:26:57]Write to MH i2c: E2 08 00 22 2E 80 11 00 00 00 00 00 00 CA [10:26:57]Write i2c OK [10:26:57]MH_I2C_Read... [10:26:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:57]Read from MH i2c: E2 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 17 00 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 17 00 22 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1F [10:26:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:26:57]wFMCommunicate OK [10:26:57]CreateOFDProtocolMessage done [10:26:57]OFDSenderStorePacket 201357 [10:26:57]StoreOFDPacket docnum=201357 [10:26:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 AF B4 07 01 0C 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 F4 C3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8D 12 03 00 35 04 06 00 C0 4E EC 26 16 55 E8 E9 11 72 4A B0 59 37 [10:26:57]CheckFolder [10:26:57]dirname=/storage/ofd_packets [10:26:57]CheckFolder done [10:26:57]ProducePacketName [10:26:57]name=ofd_packets/00201357 [10:26:57]NVStorageSaveData ofd_packets/00201357 [10:26:57]File name is /storage/ofd_packets/00201357 [10:26:57]Write 301 bytes [10:26:57]NVStorageSaveData done [10:26:57]OFDSenderStorePacket done [10:26:57]KKMCreateOFDPacket done [10:26:57]NVStorageSaveData kkm_last_timestamp [10:26:57]File name is /storage/kkm_last_timestamp [10:26:57]Write 4 bytes [10:26:57]NVStorageSaveData done [10:26:57]ExternCall_PrintAddStr [10:26:57]wPrintStart [10:26:57]Write to MH i2c: 01 00 00 23 2E 51 [10:26:57]Write i2c OK [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: 01 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: 01 07 00 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: 01 07 00 23 2E 00 00 00 00 00 FF 0F 66 [10:26:57]RasterBufferAndPrint [10:26:57]line Счет N : (1)449106 [10:26:57]line ИНН: 02508201610067 [10:26:57]line Контрольно-Кассовый Чек [10:26:57]line ПРОДАЖА [10:26:57]line ТРК (МРК, ГНК) : 31 [10:26:57]line Товар: 2710124130 [10:26:57]line Аи-92-К-2 [10:26:57]line 4.490 * 66.90 [10:26:57]line = 300.38 [10:26:57]line НДС 12% НСП 1% [10:26:57]line > о реализуемом товаре [10:26:57]line ОКРУГЛЕНИЕ: -0.38 [10:26:57]line ИТОГО: 300.00 [10:26:57]line Внесено: 300.00 [10:26:57]line СДАЧА: 0.00 [10:26:57]line НСП 1% : 2.66 [10:26:57]line НДС 12% : 31.90 [10:26:57]line Наличными: 300.00 [10:26:57]line Безнал.: 0.00 [10:26:57]line Место: АЗС № 171 "Партнер Нефть" [10:26:57]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:26:57]line СНО: Общий режим [10:26:57]line Чек 119 26.10.2024 10:27 [10:26:57]line Смена: 543 ФФД: 1.0 [10:26:57]line ЗНМ: 0300000109 [10:26:57]line РНМ: 0000000000091777 [10:26:57]line Версия ККМ: 001 [10:26:57]line ФМ: 0000000000871756 [10:26:57]line ФД: 201357 [10:26:57]line ФПД: 211445201901141 [10:26:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102700&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201357&fm=211445201901141&tin=02508201610067®Number=0000000000091777&sum=30000 [10:26:58]OFD Sender: Processing packet 201357 [packets to send 112, broken 111] [10:26:58]ProducePacketName [10:26:58]name=ofd_packets/00201357 [10:26:58]OFD Sender: To server: pG, [10:26:58]CommunicateWithHost lk.salyk.kg:30040 [10:26:58]ConnectInit lk.salyk.kg [10:26:58]written 0, free lines is 4095 [10:26:58]Connected sock=10 [10:26:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 AF B4 07 01 0C 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 F4 C3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8D 12 03 00 35 04 06 00 C0 4E EC 26 16 55 E8 E9 11 72 4A B0 59 37 [10:26:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 3D 29 47 00 54 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8D 12 03 00 F4 03 04 00 9D 6F 1C 67 B6 04 01 00 00 14 33 7E E8 36 67 63 95 [10:26:58]CommunicateWithHost err = 0 [10:26:58]CheckOFDResponse [10:26:58]1017 (14) - 77093643461234 [10:26:58]1041 (16) - 0000000000871756 [10:26:58]1040 (4) - 201357 [10:26:58]1012 (4) - 26.10.2024 04:27 [10:26:58]1206 (1) - 0 [10:26:58]OFD Sender: Remove packet 201357 [10:26:58]ProducePacketName [10:26:58]name=ofd_packets/00201357 [10:26:58]NVStorageDeleteData [10:26:58]Write to MH i2c: 01 00 00 4E 2E 7C [10:26:58]Write i2c OK [10:26:58]MH_I2C_Read... [10:26:58]Read from MH i2c: 01 [10:26:58]MH_I2C_Read... [10:26:58]Read from MH i2c: 01 07 00 [10:26:58]MH_I2C_Read... [10:26:58]Read from MH i2c: 01 07 00 4E 2E 00 00 00 00 00 A8 0C 37 [10:26:58]RasterBufferAndPrint [10:26:58]line [10:26:58]line [10:26:58]line [10:26:58]line [10:26:58]line [10:26:58]written 0, free lines is 3247 [10:26:58]MH_Cut [10:26:58]Write to MH i2c: D1 01 00 55 2E 01 55 [10:26:58]Write i2c OK [10:26:58]MH_I2C_Read... [10:26:58]Read from MH i2c: D1 [10:26:58]MH_I2C_Read... [10:26:58]Read from MH i2c: D1 01 00 [10:26:58]MH_I2C_Read... [10:26:58]Read from MH i2c: D1 01 00 55 2E 00 54 [10:26:58]Write to MH i2c: 01 00 00 56 2E 84 [10:26:58]Write i2c OK [10:26:58]MH_I2C_Read... [10:26:59]OFD Sender: No OFD packet to send [10:26:59]*** Cut start [10:26:59]*** Purtial cut [10:26:59]*** Stage 1: CUTSNS_PIN = 1 [10:26:59]Read from MH i2c: 01 [10:26:59]MH_I2C_Read... [10:26:59]*** Stop cut motor [10:26:59]Read from MH i2c: 01 07 00 [10:26:59]MH_I2C_Read... [10:26:59]*** Cut end [10:26:59]Read from MH i2c: 01 07 00 56 2E 00 00 00 00 00 FF 0F 99 [10:26:59]process_action close_receipt done [10:26:59]requested_data is exist [10:26:59]produce_requested_data [10:26:59]requested_item fm.sn is exist - process it [10:26:59]wFMCommunicate request_size=4 [10:26:59]MH_SAM_APDU [10:26:59]CAPDU: 80 11 00 00 [10:26:59]Write to MH i2c: E2 08 00 57 2E 80 11 00 00 00 00 00 00 FF [10:26:59]Write i2c OK [10:26:59]MH_I2C_Read... [10:26:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:59]Read from MH i2c: E2 [10:26:59]MH_I2C_Read... [10:26:59]Read from MH i2c: E2 17 00 [10:26:59]MH_I2C_Read... [10:26:59]Read from MH i2c: E2 17 00 57 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 54 [10:26:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:26:59]wFMCommunicate OK [10:26:59]requested_item fd.num is exist - process it [10:26:59]SAM_PROTO_GetFieldsCounters [10:26:59]wFMCommunicate request_size=4 [10:26:59]MH_SAM_APDU [10:26:59]CAPDU: 80 13 00 00 [10:26:59]Write to MH i2c: E2 08 00 58 2E 80 13 00 00 00 00 00 00 02 [10:26:59]Write i2c OK [10:26:59]MH_I2C_Read... [10:26:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:00]Read from MH i2c: E2 [10:27:00]MH_I2C_Read... [10:27:00]Read from MH i2c: E2 62 00 [10:27:00]MH_I2C_Read... [10:27:00]Read from MH i2c: E2 62 00 58 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8D 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [10:27:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8D 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:27:00]wFMCommunicate OK [10:27:00]SAM_PROTO_GetFieldsCounters done [10:27:00]requested_item shift.num is exist - process it [10:27:00]requested_item shift.opened is exist - process it [10:27:00]req_shift_opened [10:27:00]FM_GetShiftState [10:27:00]SAM_PROTO_GetShiftState [10:27:00]wFMCommunicate request_size=4 [10:27:00]MH_SAM_APDU [10:27:00]CAPDU: 80 13 01 00 [10:27:00]Write to MH i2c: E2 08 00 59 2E 80 13 01 00 00 00 00 00 04 [10:27:00]Write i2c OK [10:27:00]MH_I2C_Read... [10:27:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:00]Read from MH i2c: E2 [10:27:00]MH_I2C_Read... [10:27:00]Read from MH i2c: E2 0E 00 [10:27:00]MH_I2C_Read... [10:27:00]Read from MH i2c: E2 0E 00 59 2E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 13 [10:27:00]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:27:00]wFMCommunicate OK [10:27:00]SAM_PROTO_GetShiftState done [10:27:00]FM_GetShiftState done [10:27:00]req_shift_opened done [10:27:00]requested_item shift.open_date is exist - process it [10:27:00]req_shift_open_date [10:27:00]req_shift_open_date done [10:27:00]produce_requested_data done [10:27:00]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201357,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:27:00]process_action_free close_receipt [10:27:00]json_value_free [10:27:00]json_value_free done [10:27:00]process_json_proto returns [10:27:00]Send response to host [10:27:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201357,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:27:00]free response buf [10:27:00]execute_script done [10:27:00]execute_script returns [10:27:00]free content buf [10:27:00]Sock 7.Close socket [10:27:00]Sock 7.Thread stoped [10:27:04]OFD Sender: No OFD packet to send [10:27:08]accept exits with 9 [10:27:08]New connection [10:27:08]New thread 3067415908 created [10:27:08]Thread 3067559268 joined [10:27:08]Waiting for new connection... [10:27:08] Sock 9.Parse request [10:27:08]Sock 9.Check first char [10:27:08]Sock 9.First char is OK [10:27:08]request: POST /json_proto HTTP/1.0 [10:27:08]Method: POST [10:27:08]URL: /json_proto [10:27:08]Method is POST - this is cgi request [10:27:08]url: /json_proto [10:27:08]query_string will be loaded in cgi processing [10:27:08]execute_cgi json_proto POST (null) [10:27:08]execute_cgi path=json_proto method=POST [10:27:08]POST find Content-Length [10:27:08]Host: 172.17.63.195:8080 [10:27:08]Content-Length: 679 [10:27:08]Content-Type: application/json [10:27:08] [10:27:08]POST finish read [10:27:08]Found Content-Length = 679 [10:27:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [10:27:08]execute_script... [10:27:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [10:27:08]POST & json_proto [10:27:08]process_json_proto [10:27:08]json parsed OK: [10:27:08]protocol is kg_v1.0 [10:27:08]action value=close_receipt [10:27:08]process_action close_receipt [10:27:08]cmd_close_receipt [10:27:08]MH_GetDate [10:27:08]Write to MH i2c: F0 00 00 5A 2E 77 [10:27:08]Write i2c OK [10:27:08]MH_I2C_Read... [10:27:08]Read from MH i2c: F0 [10:27:08]MH_I2C_Read... [10:27:08]Read from MH i2c: F0 09 00 [10:27:08]MH_I2C_Read... [10:27:08]Read from MH i2c: F0 09 00 5A 2E 00 00 C4 1C 67 68 46 19 67 F5 [10:27:08]GetLastDocTimeStamp 1729938420 [10:27:08]current date 1729938432 [10:27:08]FM_GetShiftState [10:27:08]SAM_PROTO_GetShiftState [10:27:08]wFMCommunicate request_size=4 [10:27:08]MH_SAM_APDU [10:27:08]CAPDU: 80 13 01 00 [10:27:08]Write to MH i2c: E2 08 00 5B 2E 80 13 01 00 00 00 00 00 06 [10:27:08]Write i2c OK [10:27:08]MH_I2C_Read... [10:27:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:09]Read from MH i2c: E2 [10:27:09]MH_I2C_Read... [10:27:09]Read from MH i2c: E2 0E 00 [10:27:09]MH_I2C_Read... [10:27:09]Read from MH i2c: E2 0E 00 5B 2E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 15 [10:27:09]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:27:09]wFMCommunicate OK [10:27:09]SAM_PROTO_GetShiftState done [10:27:09]FM_GetShiftState done [10:27:09]opened in 1729900879 [10:27:09]opened+sec_in_day 1729987279 [10:27:09]quantity*price = 100050 [10:27:09]sum+1 = 100052 [10:27:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 120 26.10.2024 10:27 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201358 ФПД: 235434557742170 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102712&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201358&fm=235434557742170&tin=02508201610067®Number=0000000000091777&sum=100000 [10:27:10]StoreToDocumentArchive [10:27:10]shift 543 fd 201358 [10:27:10]save to /storage/0543/doc_00201358 [10:27:10]save last doc name /storage/0543/doc_00201358 to /storage/kkm_last_doc_name [10:27:10]save OK [10:27:10]Clear old archive folders... [10:27:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:27:10]tlvbuf is 01711210 [10:27:10]SAM_PROTO_ClearQueue [10:27:10]wFMCommunicate request_size=4 [10:27:10]MH_SAM_APDU [10:27:10]CAPDU: 80 09 00 00 [10:27:10]Write to MH i2c: E2 08 00 68 2E 80 09 00 00 00 00 00 00 08 [10:27:10]Write i2c OK [10:27:10]MH_I2C_Read... [10:27:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:10]Read from MH i2c: E2 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: E2 03 00 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: E2 03 00 68 2E 00 90 00 0A [10:27:10]RAPDU: 90 00 [10:27:10]wFMCommunicate OK [10:27:10]SAM_PROTO_ClearQueue done [10:27:10]KKMCreateOFDPacket [10:27:10]OFDProtocolAddRootSTLVToBuf [10:27:10]FM_MakeSignedData [10:27:10]FM_MakeSignedData [10:27:10]SAM_PROTO_SignData [10:27:10]wFMCommunicate request_size=4 [10:27:10]MH_SAM_APDU [10:27:10]CAPDU: 80 0D 01 02 [10:27:10]Write to MH i2c: E2 08 00 69 2E 80 0D 01 02 00 00 00 00 10 [10:27:10]Write i2c OK [10:27:10]MH_I2C_Read... [10:27:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:10]Read from MH i2c: E2 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: E2 03 00 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: E2 03 00 69 2E 00 90 00 0B [10:27:10]RAPDU: 90 00 [10:27:10]wFMCommunicate OK [10:27:10]wFMCommunicate request_size=255 [10:27:10]MH_SAM_APDU [10:27:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 78 00 00 00 F4 03 04 00 00 C4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8E 12 03 00 35 04 06 00 D6 20 61 2E [10:27:10]Write to MH i2c: E2 02 01 6A 2E 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 78 00 00 00 F4 03 04 00 00 C4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8E 12 03 00 35 04 06 00 D6 20 61 2E 00 00 A2 [10:27:10]Write i2c OK [10:27:10]MH_I2C_Read... [10:27:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:10]Read from MH i2c: E2 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: E2 03 00 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: E2 03 00 6A 2E 00 90 00 0C [10:27:10]RAPDU: 90 00 [10:27:10]wFMCommunicate OK [10:27:10]wFMCommunicate request_size=7 [10:27:10]MH_SAM_APDU [10:27:10]CAPDU: 80 0D 02 02 02 9C 5A [10:27:10]Write to MH i2c: E2 0A 00 6B 2E 80 0D 02 02 02 00 9C 5A 00 00 0D [10:27:10]Write i2c OK [10:27:10]MH_I2C_Read... [10:27:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:10]Read from MH i2c: E2 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: E2 03 00 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: E2 03 00 6B 2E 00 90 00 0D [10:27:10]RAPDU: 90 00 [10:27:10]wFMCommunicate OK [10:27:10]wFMCommunicate request_size=4 [10:27:10]MH_SAM_APDU [10:27:10]CAPDU: 80 0D 03 02 [10:27:10]Write to MH i2c: E2 08 00 6C 2E 80 0D 03 02 00 00 00 00 15 [10:27:10]Write i2c OK [10:27:10]MH_I2C_Read... [10:27:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:10]Read from MH i2c: E2 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: E2 0B 00 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: E2 0B 00 6C 2E 00 6D 38 25 5B EB 60 D6 BB 90 00 17 [10:27:10]RAPDU: 6D 38 25 5B EB 60 D6 BB 90 00 [10:27:10]wFMCommunicate OK [10:27:10]SAM_PROTO_SignData done [10:27:10]FM_MakeSignedData done [10:27:10]CreateOFDProtocolMessage [10:27:10]wFMCommunicate request_size=4 [10:27:10]MH_SAM_APDU [10:27:10]CAPDU: 80 11 00 00 [10:27:10]Write to MH i2c: E2 08 00 6D 2E 80 11 00 00 00 00 00 00 15 [10:27:10]Write i2c OK [10:27:10]MH_I2C_Read... [10:27:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:10]Read from MH i2c: E2 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: E2 17 00 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: E2 17 00 6D 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6A [10:27:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:27:10]wFMCommunicate OK [10:27:10]CreateOFDProtocolMessage done [10:27:10]OFDSenderStorePacket 201358 [10:27:10]StoreOFDPacket docnum=201358 [10:27:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 40 DF 04 01 2A 77 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 78 00 00 00 F4 03 04 00 00 C4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8E 12 03 00 35 04 06 00 D6 20 61 2E 9C 5A 6D 38 25 5B EB 60 D6 BB [10:27:10]CheckFolder [10:27:10]dirname=/storage/ofd_packets [10:27:10]CheckFolder done [10:27:10]ProducePacketName [10:27:10]name=ofd_packets/00201358 [10:27:10]NVStorageSaveData ofd_packets/00201358 [10:27:10]File name is /storage/ofd_packets/00201358 [10:27:10]Write 298 bytes [10:27:10]NVStorageSaveData done [10:27:10]OFDSenderStorePacket done [10:27:10]KKMCreateOFDPacket done [10:27:10]NVStorageSaveData kkm_last_timestamp [10:27:10]File name is /storage/kkm_last_timestamp [10:27:10]Write 4 bytes [10:27:10]NVStorageSaveData done [10:27:10]ExternCall_PrintAddStr [10:27:10]wPrintStart [10:27:10]Write to MH i2c: 01 00 00 6E 2E 9C [10:27:10]Write i2c OK [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: 01 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: 01 07 00 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: 01 07 00 6E 2E 00 00 00 00 00 FF 0F B1 [10:27:10]RasterBufferAndPrint [10:27:10]line Счет N : (1)449107 [10:27:10]line ИНН: 02508201610067 [10:27:10]line Контрольно-Кассовый Чек [10:27:10]line ПРОДАЖА [10:27:10]line ТРК (МРК, ГНК) : 11 [10:27:10]line Товар: 2710194210 [10:27:10]line ДТ-К-2 [10:27:10]line 13.130 * 76.20 [10:27:10]line = 1000.51 [10:27:10]line НДС 12% НСП 1% [10:27:10]line > о реализуемом товаре [10:27:10]line ОКРУГЛЕНИЕ: -0.51 [10:27:10]line ИТОГО: 1000.00 [10:27:10]line Внесено: 1000.00 [10:27:10]line СДАЧА: 0.00 [10:27:10]line НСП 1% : 8.85 [10:27:10]line НДС 12% : 106.25 [10:27:10]line Наличными: 1000.00 [10:27:10]line Безнал.: 0.00 [10:27:10]line Место: АЗС № 171 "Партнер Нефть" [10:27:10]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:27:10]line СНО: Общий режим [10:27:10]line Чек 120 26.10.2024 10:27 [10:27:10]line Смена: 543 ФФД: 1.0 [10:27:10]line ЗНМ: 0300000109 [10:27:10]line РНМ: 0000000000091777 [10:27:10]line Версия ККМ: 001 [10:27:10]line ФМ: 0000000000871756 [10:27:10]line ФД: 201358 [10:27:10]line ФПД: 235434557742170 [10:27:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102712&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201358&fm=235434557742170&tin=02508201610067®Number=0000000000091777&sum=100000 [10:27:11]OFD Sender: Processing packet 201358 [packets to send 112, broken 111] [10:27:11]ProducePacketName [10:27:11]name=ofd_packets/00201358 [10:27:11]OFD Sender: To server: pG, [10:27:11]CommunicateWithHost lk.salyk.kg:30040 [10:27:11]ConnectInit lk.salyk.kg [10:27:11]written 0, free lines is 4095 [10:27:11]Connected sock=10 [10:27:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 40 DF 04 01 2A 77 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 78 00 00 00 F4 03 04 00 00 C4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8E 12 03 00 35 04 06 00 D6 20 61 2E 9C 5A 6D 38 25 5B EB 60 D6 BB [10:27:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 DA 8C 47 00 BC DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8E 12 03 00 F4 03 04 00 AA 6F 1C 67 B6 04 01 00 00 1C 05 E2 D4 89 1D 68 5C [10:27:11]CommunicateWithHost err = 0 [10:27:11]CheckOFDResponse [10:27:11]1017 (14) - 77093643461234 [10:27:11]1041 (16) - 0000000000871756 [10:27:11]1040 (4) - 201358 [10:27:11]1012 (4) - 26.10.2024 04:27 [10:27:11]1206 (1) - 0 [10:27:11]OFD Sender: Remove packet 201358 [10:27:11]ProducePacketName [10:27:11]name=ofd_packets/00201358 [10:27:11]NVStorageDeleteData [10:27:11]Write to MH i2c: 01 00 00 99 2E C7 [10:27:11]Write i2c OK [10:27:11]MH_I2C_Read... [10:27:11]Read from MH i2c: 01 [10:27:11]MH_I2C_Read... [10:27:11]Read from MH i2c: 01 07 00 [10:27:11]MH_I2C_Read... [10:27:11]Read from MH i2c: 01 07 00 99 2E 00 00 00 00 00 9B 0C 75 [10:27:11]RasterBufferAndPrint [10:27:11]line [10:27:11]line [10:27:11]line [10:27:11]line [10:27:11]line [10:27:11]written 0, free lines is 3233 [10:27:11]MH_Cut [10:27:11]Write to MH i2c: D1 01 00 A0 2E 01 A0 [10:27:11]Write i2c OK [10:27:11]MH_I2C_Read... [10:27:11]Read from MH i2c: D1 [10:27:11]MH_I2C_Read... [10:27:11]Read from MH i2c: D1 01 00 [10:27:11]MH_I2C_Read... [10:27:11]Read from MH i2c: D1 01 00 A0 2E 00 9F [10:27:11]Write to MH i2c: 01 00 00 A1 2E CF [10:27:11]Write i2c OK [10:27:11]MH_I2C_Read... [10:27:11]OFD Sender: No OFD packet to send [10:27:12]*** Cut start [10:27:12]*** Purtial cut [10:27:12]*** Stage 1: CUTSNS_PIN = 1 [10:27:12]Read from MH i2c: 01 [10:27:12]MH_I2C_Read... [10:27:12]*** Stop cut motor [10:27:12]*** Cut end [10:27:12]Read from MH i2c: 01 07 00 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: 01 07 00 A1 2E 00 00 00 00 00 FF 0F E4 [10:27:12]process_action close_receipt done [10:27:12]requested_data is exist [10:27:12]produce_requested_data [10:27:12]requested_item fm.sn is exist - process it [10:27:12]wFMCommunicate request_size=4 [10:27:12]MH_SAM_APDU [10:27:12]CAPDU: 80 11 00 00 [10:27:12]Write to MH i2c: E2 08 00 A2 2E 80 11 00 00 00 00 00 00 4A [10:27:12]Write i2c OK [10:27:12]MH_I2C_Read... [10:27:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:12]Read from MH i2c: E2 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: E2 17 00 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: E2 17 00 A2 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9F [10:27:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:27:12]wFMCommunicate OK [10:27:12]requested_item fd.num is exist - process it [10:27:12]SAM_PROTO_GetFieldsCounters [10:27:12]wFMCommunicate request_size=4 [10:27:12]MH_SAM_APDU [10:27:12]CAPDU: 80 13 00 00 [10:27:12]Write to MH i2c: E2 08 00 A3 2E 80 13 00 00 00 00 00 00 4D [10:27:12]Write i2c OK [10:27:12]MH_I2C_Read... [10:27:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:12]Read from MH i2c: E2 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: E2 62 00 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: E2 62 00 A3 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8E 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [10:27:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8E 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:27:12]wFMCommunicate OK [10:27:12]SAM_PROTO_GetFieldsCounters done [10:27:12]requested_item shift.num is exist - process it [10:27:12]requested_item shift.opened is exist - process it [10:27:12]req_shift_opened [10:27:12]FM_GetShiftState [10:27:12]SAM_PROTO_GetShiftState [10:27:12]wFMCommunicate request_size=4 [10:27:12]MH_SAM_APDU [10:27:12]CAPDU: 80 13 01 00 [10:27:12]Write to MH i2c: E2 08 00 A4 2E 80 13 01 00 00 00 00 00 4F [10:27:12]Write i2c OK [10:27:12]MH_I2C_Read... [10:27:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:12]Read from MH i2c: E2 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: E2 0E 00 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: E2 0E 00 A4 2E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 5E [10:27:12]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:27:12]wFMCommunicate OK [10:27:12]SAM_PROTO_GetShiftState done [10:27:12]FM_GetShiftState done [10:27:12]req_shift_opened done [10:27:12]requested_item shift.open_date is exist - process it [10:27:12]req_shift_open_date [10:27:12]req_shift_open_date done [10:27:12]produce_requested_data done [10:27:12]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201358,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:27:12]process_action_free close_receipt [10:27:12]json_value_free [10:27:12]json_value_free done [10:27:12]process_json_proto returns [10:27:12]Send response to host [10:27:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201358,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:27:12]free response buf [10:27:12]execute_script done [10:27:12]execute_script returns [10:27:12]free content buf [10:27:12]Sock 9.Close socket [10:27:12]Sock 9.Thread stoped [10:27:13]accept exits with 7 [10:27:13]New connection [10:27:13]New thread 3067559268 created [10:27:13]Thread 3067415908 joined [10:27:13]Waiting for new connection... [10:27:13] Sock 7.Parse request [10:27:13]Sock 7.Check first char [10:27:13]Sock 7.First char is OK [10:27:13]request: POST /json_proto HTTP/1.0 [10:27:13]Method: POST [10:27:13]URL: /json_proto [10:27:13]Method is POST - this is cgi request [10:27:13]url: /json_proto [10:27:13]query_string will be loaded in cgi processing [10:27:13]execute_cgi json_proto POST (null) [10:27:13]execute_cgi path=json_proto method=POST [10:27:13]POST find Content-Length [10:27:13]Host: 172.17.63.195:8080 [10:27:13]Content-Length: 677 [10:27:13]Content-Type: application/json [10:27:13] [10:27:13]POST finish read [10:27:13]Found Content-Length = 677 [10:27:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:27:13]execute_script... [10:27: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)449108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:27:13]POST & json_proto [10:27:13]process_json_proto [10:27:13]json parsed OK: [10:27:13]protocol is kg_v1.0 [10:27:13]action value=close_receipt [10:27:13]process_action close_receipt [10:27:13]cmd_close_receipt [10:27:13]MH_GetDate [10:27:13]Write to MH i2c: F0 00 00 A5 2E C2 [10:27:13]Write i2c OK [10:27:13]MH_I2C_Read... [10:27:13]Read from MH i2c: F0 [10:27:13]MH_I2C_Read... [10:27:13]Read from MH i2c: F0 09 00 [10:27:13]MH_I2C_Read... [10:27:13]Read from MH i2c: F0 09 00 A5 2E 00 05 C4 1C 67 68 46 19 67 45 [10:27:13]GetLastDocTimeStamp 1729938432 [10:27:13]current date 1729938437 [10:27:13]FM_GetShiftState [10:27:13]SAM_PROTO_GetShiftState [10:27:13]wFMCommunicate request_size=4 [10:27:13]MH_SAM_APDU [10:27:13]CAPDU: 80 13 01 00 [10:27:13]Write to MH i2c: E2 08 00 A6 2E 80 13 01 00 00 00 00 00 51 [10:27:13]Write i2c OK [10:27:13]MH_I2C_Read... [10:27:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:13]Read from MH i2c: E2 [10:27:13]MH_I2C_Read... [10:27:13]Read from MH i2c: E2 0E 00 [10:27:13]MH_I2C_Read... [10:27:13]Read from MH i2c: E2 0E 00 A6 2E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 60 [10:27:13]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:27:13]wFMCommunicate OK [10:27:13]SAM_PROTO_GetShiftState done [10:27:13]FM_GetShiftState done [10:27:13]opened in 1729900879 [10:27:13]opened+sec_in_day 1729987279 [10:27:13]quantity*price = 50041 [10:27:13]sum+1 = 50042 [10:27:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 121 26.10.2024 10:27 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201359 ФПД: 250629379169566 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102717&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201359&fm=250629379169566&tin=02508201610067®Number=0000000000091777&sum=50000 [10:27:14]StoreToDocumentArchive [10:27:14]shift 543 fd 201359 [10:27:14]save to /storage/0543/doc_00201359 [10:27:14]save last doc name /storage/0543/doc_00201359 to /storage/kkm_last_doc_name [10:27:14]save OK [10:27:14]Clear old archive folders... [10:27:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:27:14]tlvbuf is 017EB740 [10:27:14]SAM_PROTO_ClearQueue [10:27:14]wFMCommunicate request_size=4 [10:27:14]MH_SAM_APDU [10:27:14]CAPDU: 80 09 00 00 [10:27:14]Write to MH i2c: E2 08 00 B3 2E 80 09 00 00 00 00 00 00 53 [10:27:14]Write i2c OK [10:27:14]MH_I2C_Read... [10:27:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:14]Read from MH i2c: E2 [10:27:14]MH_I2C_Read... [10:27:14]Read from MH i2c: E2 03 00 [10:27:14]MH_I2C_Read... [10:27:14]Read from MH i2c: E2 03 00 B3 2E 00 90 00 55 [10:27:14]RAPDU: 90 00 [10:27:14]wFMCommunicate OK [10:27:14]SAM_PROTO_ClearQueue done [10:27:14]KKMCreateOFDPacket [10:27:14]OFDProtocolAddRootSTLVToBuf [10:27:14]FM_MakeSignedData [10:27:14]FM_MakeSignedData [10:27:14]SAM_PROTO_SignData [10:27:14]wFMCommunicate request_size=4 [10:27:14]MH_SAM_APDU [10:27:14]CAPDU: 80 0D 01 02 [10:27:14]Write to MH i2c: E2 08 00 B4 2E 80 0D 01 02 00 00 00 00 5B [10:27:14]Write i2c OK [10:27:14]MH_I2C_Read... [10:27:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:14]Read from MH i2c: E2 [10:27:14]MH_I2C_Read... [10:27:14]Read from MH i2c: E2 03 00 [10:27:14]MH_I2C_Read... [10:27:14]Read from MH i2c: E2 03 00 B4 2E 00 90 00 56 [10:27:14]RAPDU: 90 00 [10:27:14]wFMCommunicate OK [10:27:14]wFMCommunicate request_size=255 [10:27:14]MH_SAM_APDU [10:27: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 32 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 79 00 00 00 F4 03 04 00 05 C4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8F 12 03 00 35 04 06 00 E3 [10:27:14]Write to MH i2c: E2 02 01 B5 2E 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 32 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 79 00 00 00 F4 03 04 00 05 C4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8F 12 03 00 35 04 06 00 E3 00 00 5C [10:27:14]Write i2c OK [10:27:14]MH_I2C_Read... [10:27:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:15]Read from MH i2c: E2 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 03 00 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 03 00 B5 2E 00 90 00 57 [10:27:15]RAPDU: 90 00 [10:27:15]wFMCommunicate OK [10:27:15]wFMCommunicate request_size=10 [10:27:15]MH_SAM_APDU [10:27:15]CAPDU: 80 0D 02 02 05 F2 33 1D 9D 1E [10:27:15]Write to MH i2c: E2 0D 00 B6 2E 80 0D 02 02 05 00 F2 33 1D 9D 1E 00 00 65 [10:27:15]Write i2c OK [10:27:15]MH_I2C_Read... [10:27:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:15]Read from MH i2c: E2 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 03 00 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 03 00 B6 2E 00 90 00 58 [10:27:15]RAPDU: 90 00 [10:27:15]wFMCommunicate OK [10:27:15]wFMCommunicate request_size=4 [10:27:15]MH_SAM_APDU [10:27:15]CAPDU: 80 0D 03 02 [10:27:15]Write to MH i2c: E2 08 00 B7 2E 80 0D 03 02 00 00 00 00 60 [10:27:15]Write i2c OK [10:27:15]MH_I2C_Read... [10:27:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:15]Read from MH i2c: E2 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 0B 00 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 0B 00 B7 2E 00 2F 49 76 34 F6 BB DC 72 90 00 82 [10:27:15]RAPDU: 2F 49 76 34 F6 BB DC 72 90 00 [10:27:15]wFMCommunicate OK [10:27:15]SAM_PROTO_SignData done [10:27:15]FM_MakeSignedData done [10:27:15]CreateOFDProtocolMessage [10:27:15]wFMCommunicate request_size=4 [10:27:15]MH_SAM_APDU [10:27:15]CAPDU: 80 11 00 00 [10:27:15]Write to MH i2c: E2 08 00 B8 2E 80 11 00 00 00 00 00 00 60 [10:27:15]Write i2c OK [10:27:15]MH_I2C_Read... [10:27:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:15]Read from MH i2c: E2 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 17 00 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: E2 17 00 B8 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B5 [10:27:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:27:15]wFMCommunicate OK [10:27:15]CreateOFDProtocolMessage done [10:27:15]OFDSenderStorePacket 201359 [10:27:15]StoreOFDPacket docnum=201359 [10:27:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 26 85 07 01 0B 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 32 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 79 00 00 00 F4 03 04 00 05 C4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8F 12 03 00 35 04 06 00 E3 F2 33 1D 9D 1E 2F 49 76 34 F6 BB DC 72 [10:27:15]CheckFolder [10:27:15]dirname=/storage/ofd_packets [10:27:15]CheckFolder done [10:27:15]ProducePacketName [10:27:15]name=ofd_packets/00201359 [10:27:15]NVStorageSaveData ofd_packets/00201359 [10:27:15]File name is /storage/ofd_packets/00201359 [10:27:15]Write 301 bytes [10:27:15]NVStorageSaveData done [10:27:15]OFDSenderStorePacket done [10:27:15]KKMCreateOFDPacket done [10:27:15]NVStorageSaveData kkm_last_timestamp [10:27:15]File name is /storage/kkm_last_timestamp [10:27:15]Write 4 bytes [10:27:15]NVStorageSaveData done [10:27:15]ExternCall_PrintAddStr [10:27:15]wPrintStart [10:27:15]Write to MH i2c: 01 00 00 B9 2E E7 [10:27:15]Write i2c OK [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: 01 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: 01 07 00 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: 01 07 00 B9 2E 00 00 00 00 00 FF 0F FC [10:27:15]RasterBufferAndPrint [10:27:15]line Счет N : (1)449108 [10:27:15]line ИНН: 02508201610067 [10:27:15]line Контрольно-Кассовый Чек [10:27:15]line ПРОДАЖА [10:27:15]line ТРК (МРК, ГНК) : 62 [10:27:15]line Товар: 2710124130 [10:27:15]line Аи-92-К-2 [10:27:15]line 7.480 * 66.90 [10:27:15]line = 500.41 [10:27:15]line НДС 12% НСП 1% [10:27:15]line > о реализуемом товаре [10:27:15]line ОКРУГЛЕНИЕ: -0.41 [10:27:15]line ИТОГО: 500.00 [10:27:15]line Внесено: 500.00 [10:27:15]line СДАЧА: 0.00 [10:27:15]line НСП 1% : 4.43 [10:27:15]line НДС 12% : 53.14 [10:27:15]line Наличными: 500.00 [10:27:15]line Безнал.: 0.00 [10:27:15]line Место: АЗС № 171 "Партнер Нефть" [10:27:15]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:27:15]line СНО: Общий режим [10:27:15]line Чек 121 26.10.2024 10:27 [10:27:15]line Смена: 543 ФФД: 1.0 [10:27:15]line ЗНМ: 0300000109 [10:27:15]line РНМ: 0000000000091777 [10:27:15]line Версия ККМ: 001 [10:27:15]line ФМ: 0000000000871756 [10:27:15]line ФД: 201359 [10:27:15]line ФПД: 250629379169566 [10:27:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102717&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201359&fm=250629379169566&tin=02508201610067®Number=0000000000091777&sum=50000 [10:27:15]OFD Sender: Processing packet 201359 [packets to send 112, broken 111] [10:27:15]ProducePacketName [10:27:15]name=ofd_packets/00201359 [10:27:15]OFD Sender: To server: pG, [10:27:15]CommunicateWithHost lk.salyk.kg:30040 [10:27:15]ConnectInit lk.salyk.kg [10:27:15]written 0, free lines is 4095 [10:27:15]Connected sock=11 [10:27:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 26 85 07 01 0B 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 32 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 79 00 00 00 F4 03 04 00 05 C4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8F 12 03 00 35 04 06 00 E3 F2 33 1D 9D 1E 2F 49 76 34 F6 BB DC 72 [10:27:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 CD 1C 47 00 64 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8F 12 03 00 F4 03 04 00 AE 6F 1C 67 B6 04 01 00 00 89 11 23 DC AB 87 9C 6B [10:27:15]CommunicateWithHost err = 0 [10:27:15]CheckOFDResponse [10:27:15]1017 (14) - 77093643461234 [10:27:15]1041 (16) - 0000000000871756 [10:27:15]1040 (4) - 201359 [10:27:15]1012 (4) - 26.10.2024 04:27 [10:27:15]1206 (1) - 0 [10:27:15]OFD Sender: Remove packet 201359 [10:27:15]ProducePacketName [10:27:15]name=ofd_packets/00201359 [10:27:15]NVStorageDeleteData [10:27:15]Write to MH i2c: 01 00 00 E4 2E 12 [10:27:15]Write i2c OK [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: 01 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: 01 07 00 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: 01 07 00 E4 2E 00 00 00 00 00 AB 0C D0 [10:27:15]RasterBufferAndPrint [10:27:15]line [10:27:15]line [10:27:15]line [10:27:15]line [10:27:15]line [10:27:15]written 0, free lines is 3257 [10:27:15]MH_Cut [10:27:15]Write to MH i2c: D1 01 00 EB 2E 01 EB [10:27:15]Write i2c OK [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: D1 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: D1 01 00 [10:27:15]MH_I2C_Read... [10:27:15]Read from MH i2c: D1 01 00 EB 2E 00 EA [10:27:15]Write to MH i2c: 01 00 00 EC 2E 1A [10:27:15]Write i2c OK [10:27:15]MH_I2C_Read... [10:27:16]OFD Sender: No OFD packet to send [10:27:16]*** Cut start [10:27:16]*** Purtial cut [10:27:16]*** Stage 1: CUTSNS_PIN = 1 [10:27:16]Read from MH i2c: 01 [10:27:16]MH_I2C_Read... [10:27:16]*** Stop cut motor [10:27:16]*** Cut end [10:27:16]Read from MH i2c: 01 07 00 [10:27:16]MH_I2C_Read... [10:27:16]Read from MH i2c: 01 07 00 EC 2E 00 00 00 00 00 FF 0F 2F [10:27:16]process_action close_receipt done [10:27:16]requested_data is exist [10:27:16]produce_requested_data [10:27:16]requested_item fm.sn is exist - process it [10:27:16]wFMCommunicate request_size=4 [10:27:16]MH_SAM_APDU [10:27:16]CAPDU: 80 11 00 00 [10:27:16]Write to MH i2c: E2 08 00 ED 2E 80 11 00 00 00 00 00 00 95 [10:27:16]Write i2c OK [10:27:16]MH_I2C_Read... [10:27:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:17]Read from MH i2c: E2 [10:27:17]MH_I2C_Read... [10:27:17]Read from MH i2c: E2 17 00 [10:27:17]MH_I2C_Read... [10:27:17]Read from MH i2c: E2 17 00 ED 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EA [10:27:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:27:17]wFMCommunicate OK [10:27:17]requested_item fd.num is exist - process it [10:27:17]SAM_PROTO_GetFieldsCounters [10:27:17]wFMCommunicate request_size=4 [10:27:17]MH_SAM_APDU [10:27:17]CAPDU: 80 13 00 00 [10:27:17]Write to MH i2c: E2 08 00 EE 2E 80 13 00 00 00 00 00 00 98 [10:27:17]Write i2c OK [10:27:17]MH_I2C_Read... [10:27:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:17]Read from MH i2c: E2 [10:27:17]MH_I2C_Read... [10:27:17]Read from MH i2c: E2 62 00 [10:27:17]MH_I2C_Read... [10:27:17]Read from MH i2c: E2 62 00 EE 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8F 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [10:27:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8F 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:27:17]wFMCommunicate OK [10:27:17]SAM_PROTO_GetFieldsCounters done [10:27:17]requested_item shift.num is exist - process it [10:27:17]requested_item shift.opened is exist - process it [10:27:17]req_shift_opened [10:27:17]FM_GetShiftState [10:27:17]SAM_PROTO_GetShiftState [10:27:17]wFMCommunicate request_size=4 [10:27:17]MH_SAM_APDU [10:27:17]CAPDU: 80 13 01 00 [10:27:17]Write to MH i2c: E2 08 00 EF 2E 80 13 01 00 00 00 00 00 9A [10:27:17]Write i2c OK [10:27:17]MH_I2C_Read... [10:27:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:17]Read from MH i2c: E2 [10:27:17]MH_I2C_Read... [10:27:17]Read from MH i2c: E2 0E 00 [10:27:17]MH_I2C_Read... [10:27:17]Read from MH i2c: E2 0E 00 EF 2E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 A9 [10:27:17]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:27:17]wFMCommunicate OK [10:27:17]SAM_PROTO_GetShiftState done [10:27:17]FM_GetShiftState done [10:27:17]req_shift_opened done [10:27:17]requested_item shift.open_date is exist - process it [10:27:17]req_shift_open_date [10:27:17]req_shift_open_date done [10:27:17]produce_requested_data done [10:27:17]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201359,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:27:17]process_action_free close_receipt [10:27:17]json_value_free [10:27:17]json_value_free done [10:27:17]process_json_proto returns [10:27:17]Send response to host [10:27:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201359,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:27:17]free response buf [10:27:17]execute_script done [10:27:17]execute_script returns [10:27:17]free content buf [10:27:17]Sock 7.Close socket [10:27:17]Sock 7.Thread stoped [10:27:21]OFD Sender: No OFD packet to send [10:27:26]OFD Sender: No OFD packet to send [10:27:31]OFD Sender: No OFD packet to send [10:27:36]OFD Sender: No OFD packet to send [10:27:41]OFD Sender: No OFD packet to send [10:27:46]OFD Sender: No OFD packet to send [10:27:51]OFD Sender: No OFD packet to send [10:27:56]OFD Sender: No OFD packet to send [10:28:01]OFD Sender: No OFD packet to send [10:28:06]OFD Sender: No OFD packet to send [10:28:11]OFD Sender: No OFD packet to send [10:28:16]OFD Sender: No OFD packet to send [10:28:21]OFD Sender: No OFD packet to send [10:28:26]OFD Sender: No OFD packet to send [10:28:31]OFD Sender: No OFD packet to send [10:28:36]OFD Sender: No OFD packet to send [10:28:38]accept exits with 9 [10:28:38]New connection [10:28:38]New thread 3067415908 created [10:28:38]Thread 3067559268 joined [10:28:38]Waiting for new connection... [10:28:38] Sock 9.Parse request [10:28:38]Sock 9.Check first char [10:28:38]Sock 9.First char is OK [10:28:38]request: POST /json_proto HTTP/1.0 [10:28:38]Method: POST [10:28:38]URL: /json_proto [10:28:38]Method is POST - this is cgi request [10:28:38]url: /json_proto [10:28:38]query_string will be loaded in cgi processing [10:28:38]execute_cgi json_proto POST (null) [10:28:38]execute_cgi path=json_proto method=POST [10:28:38]POST find Content-Length [10:28:38]Host: 172.17.63.195:8080 [10:28:38]Content-Length: 677 [10:28:38]Content-Type: application/json [10:28:38] [10:28:38]POST finish read [10:28:38]Found Content-Length = 677 [10:28:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:28:38]execute_script... [10:28: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)449109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:28:38]POST & json_proto [10:28:38]process_json_proto [10:28:38]json parsed OK: [10:28:38]protocol is kg_v1.0 [10:28:38]action value=close_receipt [10:28:38]process_action close_receipt [10:28:38]cmd_close_receipt [10:28:38]MH_GetDate [10:28:38]Write to MH i2c: F0 00 00 F0 2E 0D [10:28:38]Write i2c OK [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: F0 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: F0 09 00 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: F0 09 00 F0 2E 00 5A C4 1C 67 68 46 19 67 E5 [10:28:38]GetLastDocTimeStamp 1729938437 [10:28:38]current date 1729938522 [10:28:38]FM_GetShiftState [10:28:38]SAM_PROTO_GetShiftState [10:28:38]wFMCommunicate request_size=4 [10:28:38]MH_SAM_APDU [10:28:38]CAPDU: 80 13 01 00 [10:28:38]Write to MH i2c: E2 08 00 F1 2E 80 13 01 00 00 00 00 00 9C [10:28:38]Write i2c OK [10:28:38]MH_I2C_Read... [10:28:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:38]Read from MH i2c: E2 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: E2 0E 00 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: E2 0E 00 F1 2E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 AB [10:28:38]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:28:38]wFMCommunicate OK [10:28:38]SAM_PROTO_GetShiftState done [10:28:38]FM_GetShiftState done [10:28:38]opened in 1729900879 [10:28:38]opened+sec_in_day 1729987279 [10:28:38]quantity*price = 20003 [10:28:38]sum+1 = 20004 [10:28:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 122 26.10.2024 10:28 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201360 ФПД: 149337187761020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102842&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201360&fm=149337187761020&tin=02508201610067®Number=0000000000091777&sum=20000 [10:28:40]StoreToDocumentArchive [10:28:40]shift 543 fd 201360 [10:28:40]save to /storage/0543/doc_00201360 [10:28:40]save last doc name /storage/0543/doc_00201360 to /storage/kkm_last_doc_name [10:28:40]save OK [10:28:40]Clear old archive folders... [10:28:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:40]tlvbuf is 017F5D50 [10:28:40]SAM_PROTO_ClearQueue [10:28:40]wFMCommunicate request_size=4 [10:28:40]MH_SAM_APDU [10:28:40]CAPDU: 80 09 00 00 [10:28:40]Write to MH i2c: E2 08 00 FE 2E 80 09 00 00 00 00 00 00 9E [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:40]Read from MH i2c: E2 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 03 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 03 00 FE 2E 00 90 00 A0 [10:28:40]RAPDU: 90 00 [10:28:40]wFMCommunicate OK [10:28:40]SAM_PROTO_ClearQueue done [10:28:40]KKMCreateOFDPacket [10:28:40]OFDProtocolAddRootSTLVToBuf [10:28:40]FM_MakeSignedData [10:28:40]FM_MakeSignedData [10:28:40]SAM_PROTO_SignData [10:28:40]wFMCommunicate request_size=4 [10:28:40]MH_SAM_APDU [10:28:40]CAPDU: 80 0D 01 02 [10:28:40]Write to MH i2c: E2 08 00 FF 2E 80 0D 01 02 00 00 00 00 A6 [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:40]Read from MH i2c: E2 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 03 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 03 00 FF 2E 00 90 00 A1 [10:28:40]RAPDU: 90 00 [10:28:40]wFMCommunicate OK [10:28:40]wFMCommunicate request_size=255 [10:28:40]MH_SAM_APDU [10:28: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 32 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 7A 00 00 00 F4 03 04 00 5A C4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 90 12 03 00 35 04 06 00 87 [10:28:40]Write to MH i2c: E2 02 01 00 2F 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 32 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 7A 00 00 00 F4 03 04 00 5A C4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 90 12 03 00 35 04 06 00 87 00 00 65 [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:40]Read from MH i2c: E2 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 03 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 03 00 00 2F 00 90 00 A3 [10:28:40]RAPDU: 90 00 [10:28:40]wFMCommunicate OK [10:28:40]wFMCommunicate request_size=10 [10:28:40]MH_SAM_APDU [10:28:40]CAPDU: 80 0D 02 02 05 D2 46 07 3B 7C [10:28:40]Write to MH i2c: E2 0D 00 01 2F 80 0D 02 02 05 00 D2 46 07 3B 7C 00 00 8A [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:40]Read from MH i2c: E2 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 03 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 03 00 01 2F 00 90 00 A4 [10:28:40]RAPDU: 90 00 [10:28:40]wFMCommunicate OK [10:28:40]wFMCommunicate request_size=4 [10:28:40]MH_SAM_APDU [10:28:40]CAPDU: 80 0D 03 02 [10:28:40]Write to MH i2c: E2 08 00 02 2F 80 0D 03 02 00 00 00 00 AC [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:40]Read from MH i2c: E2 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 0B 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 0B 00 02 2F 00 03 3B 97 9E 2C C6 AB 96 90 00 53 [10:28:40]RAPDU: 03 3B 97 9E 2C C6 AB 96 90 00 [10:28:40]wFMCommunicate OK [10:28:40]SAM_PROTO_SignData done [10:28:40]FM_MakeSignedData done [10:28:40]CreateOFDProtocolMessage [10:28:40]wFMCommunicate request_size=4 [10:28:40]MH_SAM_APDU [10:28:40]CAPDU: 80 11 00 00 [10:28:40]Write to MH i2c: E2 08 00 03 2F 80 11 00 00 00 00 00 00 AC [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:40]Read from MH i2c: E2 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 17 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 17 00 03 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 01 [10:28:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:28:40]wFMCommunicate OK [10:28:40]CreateOFDProtocolMessage done [10:28:40]OFDSenderStorePacket 201360 [10:28:40]StoreOFDPacket docnum=201360 [10:28:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C6 66 07 01 2D 90 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 32 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 7A 00 00 00 F4 03 04 00 5A C4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 90 12 03 00 35 04 06 00 87 D2 46 07 3B 7C 03 3B 97 9E 2C C6 AB 96 [10:28:40]CheckFolder [10:28:40]dirname=/storage/ofd_packets [10:28:40]CheckFolder done [10:28:40]ProducePacketName [10:28:40]name=ofd_packets/00201360 [10:28:40]NVStorageSaveData ofd_packets/00201360 [10:28:40]File name is /storage/ofd_packets/00201360 [10:28:40]Write 301 bytes [10:28:40]NVStorageSaveData done [10:28:40]OFDSenderStorePacket done [10:28:40]KKMCreateOFDPacket done [10:28:40]NVStorageSaveData kkm_last_timestamp [10:28:40]File name is /storage/kkm_last_timestamp [10:28:40]Write 4 bytes [10:28:40]NVStorageSaveData done [10:28:40]ExternCall_PrintAddStr [10:28:40]wPrintStart [10:28:40]Write to MH i2c: 01 00 00 04 2F 33 [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: 01 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: 01 07 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: 01 07 00 04 2F 00 00 00 00 00 FF 0F 48 [10:28:40]RasterBufferAndPrint [10:28:40]line Счет N : (1)449109 [10:28:40]line ИНН: 02508201610067 [10:28:40]line Контрольно-Кассовый Чек [10:28:40]line ПРОДАЖА [10:28:40]line ТРК (МРК, ГНК) : 41 [10:28:40]line Товар: 2710124130 [10:28:40]line Аи-92-К-2 [10:28:40]line 2.990 * 66.90 [10:28:40]line = 200.03 [10:28:40]line НДС 12% НСП 1% [10:28:40]line > о реализуемом товаре [10:28:40]line ОКРУГЛЕНИЕ: -0.03 [10:28:40]line ИТОГО: 200.00 [10:28:40]line Внесено: 200.00 [10:28:40]line СДАЧА: 0.00 [10:28:40]line НСП 1% : 1.77 [10:28:40]line НДС 12% : 21.24 [10:28:40]line Наличными: 200.00 [10:28:40]line Безнал.: 0.00 [10:28:40]line Место: АЗС № 171 "Партнер Нефть" [10:28:40]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:28:40]line СНО: Общий режим [10:28:40]line Чек 122 26.10.2024 10:28 [10:28:40]line Смена: 543 ФФД: 1.0 [10:28:40]line ЗНМ: 0300000109 [10:28:40]line РНМ: 0000000000091777 [10:28:40]line Версия ККМ: 001 [10:28:40]line ФМ: 0000000000871756 [10:28:40]line ФД: 201360 [10:28:40]line ФПД: 149337187761020 [10:28:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102842&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201360&fm=149337187761020&tin=02508201610067®Number=0000000000091777&sum=20000 [10:28:40]OFD Sender: Processing packet 201360 [packets to send 112, broken 111] [10:28:40]ProducePacketName [10:28:40]name=ofd_packets/00201360 [10:28:40]OFD Sender: To server: pG, [10:28:40]CommunicateWithHost lk.salyk.kg:30040 [10:28:40]ConnectInit lk.salyk.kg [10:28:40]written 0, free lines is 4095 [10:28:40]Connected sock=10 [10:28:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C6 66 07 01 2D 90 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 32 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 7A 00 00 00 F4 03 04 00 5A C4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 90 12 03 00 35 04 06 00 87 D2 46 07 3B 7C 03 3B 97 9E 2C C6 AB 96 [10:28:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A9 FC 47 00 E8 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 90 12 03 00 F4 03 04 00 04 70 1C 67 B6 04 01 00 00 71 DE 34 42 0D 33 84 8A [10:28:41]CommunicateWithHost err = 0 [10:28:41]CheckOFDResponse [10:28:41]1017 (14) - 77093643461234 [10:28:41]1041 (16) - 0000000000871756 [10:28:41]1040 (4) - 201360 [10:28:41]1012 (4) - 26.10.2024 04:28 [10:28:41]1206 (1) - 0 [10:28:41]OFD Sender: Remove packet 201360 [10:28:41]ProducePacketName [10:28:41]name=ofd_packets/00201360 [10:28:41]NVStorageDeleteData [10:28:41]Write to MH i2c: 01 00 00 2F 2F 5E [10:28:41]Write i2c OK [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: 01 [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: 01 07 00 [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: 01 07 00 2F 2F 00 00 00 00 00 AC 0C 1D [10:28:41]RasterBufferAndPrint [10:28:41]line [10:28:41]line [10:28:41]line [10:28:41]line [10:28:41]line [10:28:41]written 0, free lines is 3249 [10:28:41]MH_Cut [10:28:41]Write to MH i2c: D1 01 00 36 2F 01 37 [10:28:41]Write i2c OK [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: D1 [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: D1 01 00 [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: D1 01 00 36 2F 00 36 [10:28:41]Write to MH i2c: 01 00 00 37 2F 66 [10:28:41]Write i2c OK [10:28:41]MH_I2C_Read... [10:28:41]OFD Sender: No OFD packet to send [10:28:42]*** Cut start [10:28:42]*** Purtial cut [10:28:42]*** Stage 1: CUTSNS_PIN = 1 [10:28:42]Read from MH i2c: 01 [10:28:42]MH_I2C_Read... [10:28:42]*** Stop cut motor [10:28:42]*** Cut end [10:28:42]Read from MH i2c: 01 07 00 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: 01 07 00 37 2F 00 00 00 00 00 FF 0F 7B [10:28:42]process_action close_receipt done [10:28:42]requested_data is exist [10:28:42]produce_requested_data [10:28:42]requested_item fm.sn is exist - process it [10:28:42]wFMCommunicate request_size=4 [10:28:42]MH_SAM_APDU [10:28:42]CAPDU: 80 11 00 00 [10:28:42]Write to MH i2c: E2 08 00 38 2F 80 11 00 00 00 00 00 00 E1 [10:28:42]Write i2c OK [10:28:42]MH_I2C_Read... [10:28:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:42]Read from MH i2c: E2 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 17 00 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 17 00 38 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 36 [10:28:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:28:42]wFMCommunicate OK [10:28:42]requested_item fd.num is exist - process it [10:28:42]SAM_PROTO_GetFieldsCounters [10:28:42]wFMCommunicate request_size=4 [10:28:42]MH_SAM_APDU [10:28:42]CAPDU: 80 13 00 00 [10:28:42]Write to MH i2c: E2 08 00 39 2F 80 13 00 00 00 00 00 00 E4 [10:28:42]Write i2c OK [10:28:42]MH_I2C_Read... [10:28:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:42]Read from MH i2c: E2 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 62 00 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 62 00 39 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 90 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [10:28:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 90 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:28:42]wFMCommunicate OK [10:28:42]SAM_PROTO_GetFieldsCounters done [10:28:42]requested_item shift.num is exist - process it [10:28:42]requested_item shift.opened is exist - process it [10:28:42]req_shift_opened [10:28:42]FM_GetShiftState [10:28:42]SAM_PROTO_GetShiftState [10:28:42]wFMCommunicate request_size=4 [10:28:42]MH_SAM_APDU [10:28:42]CAPDU: 80 13 01 00 [10:28:42]Write to MH i2c: E2 08 00 3A 2F 80 13 01 00 00 00 00 00 E6 [10:28:42]Write i2c OK [10:28:42]MH_I2C_Read... [10:28:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:42]Read from MH i2c: E2 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 0E 00 [10:28:42]MH_I2C_Read... [10:28:42]Read from MH i2c: E2 0E 00 3A 2F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F5 [10:28:42]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:28:42]wFMCommunicate OK [10:28:42]SAM_PROTO_GetShiftState done [10:28:42]FM_GetShiftState done [10:28:42]req_shift_opened done [10:28:42]requested_item shift.open_date is exist - process it [10:28:42]req_shift_open_date [10:28:42]req_shift_open_date done [10:28:42]produce_requested_data done [10:28:42]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201360,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:28:42]process_action_free close_receipt [10:28:42]json_value_free [10:28:42]json_value_free done [10:28:42]process_json_proto returns [10:28:42]Send response to host [10:28:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201360,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:28:42]free response buf [10:28:42]execute_script done [10:28:42]execute_script returns [10:28:42]free content buf [10:28:42]Sock 9.Close socket [10:28:42]Sock 9.Thread stoped [10:28:46]OFD Sender: No OFD packet to send [10:28:51]OFD Sender: No OFD packet to send [10:28:56]OFD Sender: No OFD packet to send [10:29:01]OFD Sender: No OFD packet to send [10:29:06]OFD Sender: No OFD packet to send [10:29:11]OFD Sender: No OFD packet to send [10:29:16]OFD Sender: No OFD packet to send [10:29:21]OFD Sender: No OFD packet to send [10:29:26]OFD Sender: No OFD packet to send [10:29:31]OFD Sender: No OFD packet to send [10:29:36]OFD Sender: No OFD packet to send [10:29:41]OFD Sender: No OFD packet to send [10:29:46]OFD Sender: No OFD packet to send [10:29:51]OFD Sender: No OFD packet to send [10:29:56]OFD Sender: No OFD packet to send [10:30:01]OFD Sender: No OFD packet to send [10:30:06]OFD Sender: No OFD packet to send [10:30:11]OFD Sender: No OFD packet to send [10:30:16]OFD Sender: No OFD packet to send [10:30:21]OFD Sender: No OFD packet to send [10:30:26]OFD Sender: No OFD packet to send [10:30:31]OFD Sender: No OFD packet to send [10:30:36]OFD Sender: No OFD packet to send [10:30:41]OFD Sender: No OFD packet to send [10:30:46]OFD Sender: No OFD packet to send [10:30:51]OFD Sender: No OFD packet to send [10:30:56]OFD Sender: No OFD packet to send [10:45:53]ConnectInit Can't connect to host [10:45:56]ConnectInit Can't take IP for lk.salyk.kg [10:45:56]CommunicateWithHost connect error [10:45:56]CommunicateWithHost err = -1 [10:45:56]OFD Sender: Server communicate error [10:46:01]OFD Sender: Processing packet 201361 [packets to send 123, broken 111] [10:46:01]ProducePacketName [10:46:01]name=ofd_packets/00201361 [10:46:01]OFD Sender: To server: pG, [10:46:01]CommunicateWithHost lk.salyk.kg:30040 [10:46:01]ConnectInit lk.salyk.kg [10:46:02]Connected sock=9 [10:46:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 51 91 07 01 AE FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 7B 00 00 00 F4 03 04 00 FC C4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 91 12 03 00 35 04 06 00 74 52 44 35 DE 47 7A 40 D4 8D 89 0F A5 5C [10:46:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 BB EB 47 00 64 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 91 12 03 00 F4 03 04 00 15 74 1C 67 B6 04 01 00 00 FE C3 A2 15 1F 30 C7 1B [10:46:02]CommunicateWithHost err = 0 [10:46:02]CheckOFDResponse [10:46:02]1017 (14) - 77093643461234 [10:46:02]1041 (16) - 0000000000871756 [10:46:02]1040 (4) - 201361 [10:46:02]1012 (4) - 26.10.2024 04:46 [10:46:02]1206 (1) - 0 [10:46:02]OFD Sender: Remove packet 201361 [10:46:02]ProducePacketName [10:46:02]name=ofd_packets/00201361 [10:46:02]NVStorageDeleteData [10:46:02]OFD Sender: Processing packet 201362 [packets to send 122, broken 111] [10:46:02]ProducePacketName [10:46:02]name=ofd_packets/00201362 [10:46:02]OFD Sender: To server: pG, [10:46:02]CommunicateWithHost lk.salyk.kg:30040 [10:46:02]ConnectInit lk.salyk.kg [10:46:02]Connected sock=9 [10:46:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 05 3C 07 01 D1 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 52 71 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1D F6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1D F6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 50 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1D F6 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 3B C5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 92 12 03 00 35 04 06 00 45 E2 5A 8A 7C 99 2B 44 BE 96 E7 61 CF EC [10:46:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 6F EE 47 00 3D F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 92 12 03 00 F4 03 04 00 16 74 1C 67 B6 04 01 00 00 1C 95 7D 93 3E DC D9 EE [10:46:03]CommunicateWithHost err = 0 [10:46:03]CheckOFDResponse [10:46:03]1017 (14) - 77093643461234 [10:46:03]1041 (16) - 0000000000871756 [10:46:03]1040 (4) - 201362 [10:46:03]1012 (4) - 26.10.2024 04:46 [10:46:03]1206 (1) - 0 [10:46:03]OFD Sender: Remove packet 201362 [10:46:03]ProducePacketName [10:46:03]name=ofd_packets/00201362 [10:46:03]NVStorageDeleteData [10:46:03]OFD Sender: Processing packet 201363 [packets to send 121, broken 111] [10:46:03]ProducePacketName [10:46:03]name=ofd_packets/00201363 [10:46:03]OFD Sender: To server: pG, [10:46:03]CommunicateWithHost lk.salyk.kg:30040 [10:46:03]ConnectInit lk.salyk.kg [00:00:11] *** EcrCore started. Build 196 *** [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]Malloc ok [00:00:11]/dev/ttyS4 opened [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 0B [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:11]*** [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:11]*** Waiting for read because exit forced [00:00:11]*** 10 ms more... [00:00:11]*** MH1903 init start (LINUX_LIGHT) [00:00:11]*** Serial: 3139303353513838 54000000005725CF (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 229971+1729709672=1729939643 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0xff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 03 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 0C [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30515 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 BC C8 1C 67 68 46 19 67 34 [10:47:24]Current date/time: 26.10.2024 10:47 [10:47:24]FM_Init [10:47:24]wFMConnect [10:47:24]MH_SAM_On [10:47:24]Write to MH i2c: E0 00 00 08 00 E7 [10:47:24]Write i2c OK [10:47:24]MH_I2C_Read... [10:47:24]*** iso7816_init finished! [10:47:24]*** atr: [10:47:24]*** 0F 3B D5 18 FF 81 91 FE [10:47:24]*** 1F C3 80 73 C8 21 10 0A [10:47:24]*** 00 00 00 00 00 00 00 00 [10:47:24]*** 00 00 00 00 00 00 00 00 [10:47:24]*** 00 00 00 00 00 00 00 00 [10:47:24]*** 00 00 00 00 00 00 00 00 [10:47:24]*** 00 00 00 00 00 00 00 00 [10:47:24]*** 00 00 00 00 00 00 00 00 [10:47:24]Read from MH i2c: E0 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: E0 10 00 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [10:47:24]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [10:47:24]wFMCommunicate request_size=10 [10:47:24]MH_SAM_APDU [10:47:24]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [10:47:24]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [10:47:24]Write i2c OK [10:47:24]MH_I2C_Read... [10:47:24]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [10:47:24]Read from MH i2c: E2 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: E2 03 00 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [10:47:24]RAPDU: 90 00 [10:47:24]wFMCommunicate OK [10:47:24]wFMCommunicate request_size=4 [10:47:24]MH_SAM_APDU [10:47:24]CAPDU: 80 11 00 00 [10:47:24]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [10:47:24]Write i2c OK [10:47:24]MH_I2C_Read... [10:47:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:24]Read from MH i2c: E2 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: E2 17 00 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D9 [10:47:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:47:24]wFMCommunicate OK [10:47:24]Detected FM SN is 0000000000871756 [10:47:24]Stored FM SN is 0000000000871756 [10:47:24]wFMCommunicate request_size=9 [10:47:24]MH_SAM_APDU [10:47:24]CAPDU: 80 16 00 00 04 7E FB 00 00 [10:47:24]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 7E FB 00 00 00 00 0B [10:47:24]Write i2c OK [10:47:24]MH_I2C_Read... [10:47:24]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [10:47:24]Read from MH i2c: E2 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: E2 03 00 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [10:47:24]RAPDU: 90 00 [10:47:24]wFMCommunicate OK [10:47:24]FM PIN OK [10:47:24]wFMCommunicate request_size=8 [10:47:24]MH_SAM_APDU [10:47:24]CAPDU: 80 14 04 00 03 02 00 01 [10:47:24]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [10:47:24]Write i2c OK [10:47:24]MH_I2C_Read... [10:47:24]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [10:47:24]Read from MH i2c: E2 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: E2 03 00 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [10:47:24]RAPDU: 90 00 [10:47:24]wFMCommunicate OK [10:47:24]wFMCommunicate request_size=13 [10:47:24]MH_SAM_APDU [10:47:24]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [10:47:24]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [10:47:24]Write i2c OK [10:47:24]MH_I2C_Read... [10:47:24]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [10:47:24]Read from MH i2c: E2 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: E2 03 00 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [10:47:24]RAPDU: 90 00 [10:47:24]wFMCommunicate OK [10:47:24]wFMCommunicate request_size=4 [10:47:24]MH_SAM_APDU [10:47:24]CAPDU: 80 11 00 00 [10:47:24]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [10:47:24]Write i2c OK [10:47:24]MH_I2C_Read... [10:47:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:24]Read from MH i2c: E2 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: E2 17 00 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DD [10:47:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:47:24]wFMCommunicate OK [10:47:24]DocumentArchiveInit [10:47:24]Start Httpd... [10:47:24]Httpd thread 3066928484 created [10:47:24]Write to MH i2c: 01 00 00 0F 00 0F [10:47:24]Write i2c OK [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: 01 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: 01 07 00 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [10:47:24]MH Int Process started [10:47:24]Allocated Socket 8 [10:47:24]Bind OK [10:47:24]Listen OK [10:47:24]httpd running on port 8080 [10:47:24]Waiting for new connection... [10:47:24]OFD Sender: Processing packet 201363 [packets to send 121, broken 111] [10:47:24]ProducePacketName [10:47:24]name=ofd_packets/00201363 [10:47:24]OFD Sender: To server: pG, [10:47:24]CommunicateWithHost lk.salyk.kg:30040 [10:47:24]ConnectInit lk.salyk.kg [10:47:29]ConnectInit Can't take IP for lk.salyk.kg [10:47:29]CommunicateWithHost connect error [10:47:29]CommunicateWithHost err = -1 [10:47:29]OFD Sender: Server communicate error [10:47:31]accept exits with 9 [10:47:31]New connection [10:47:31]New thread 3066641764 created [10:47:31]Waiting for new connection... [10:47:31] Sock 9.Parse request [10:47:31]Sock 9.Check first char [10:47:31]Sock 9.First char is OK [10:47:31]request: POST /json_proto HTTP/1.0 [10:47:31]Method: POST [10:47:31]URL: /json_proto [10:47:31]Method is POST - this is cgi request [10:47:31]url: /json_proto [10:47:31]query_string will be loaded in cgi processing [10:47:31]execute_cgi json_proto POST (null) [10:47:31]execute_cgi path=json_proto method=POST [10:47:31]POST find Content-Length [10:47:31]Host: 172.17.63.195:8080 [10:47:31]Content-Length: 215 [10:47:31]Content-Type: application/json [10:47:31] [10:47:31]POST finish read [10:47:31]Found Content-Length = 215 [10:47:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:31]execute_script... [10:47:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:31]POST & json_proto [10:47:31]process_json_proto [10:47:31]json parsed OK: [10:47:31]protocol is kg_v1.0 [10:47:31]action value=get_value [10:47:31]process_action get_value [10:47:31]cmd_get_value [10:47:31]process_action get_value done [10:47:31]requested_data is exist [10:47:31]produce_requested_data [10:47:31]requested_item kkm.sn is exist - process it [10:47:31]requested_item kkm.ver is exist - process it [10:47:31]requested_item fm.sn is exist - process it [10:47:31]wFMCommunicate request_size=4 [10:47:31]MH_SAM_APDU [10:47:31]CAPDU: 80 11 00 00 [10:47:31]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [10:47:31]Write i2c OK [10:47:31]MH_I2C_Read... [10:47:31]Read from MH i2c: E2 [10:47:31]MH_I2C_Read... [10:47:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:31]Read from MH i2c: E2 17 00 [10:47:31]MH_I2C_Read... [10:47:31]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DF [10:47:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:47:31]wFMCommunicate OK [10:47:31]requested_item fd.num is exist - process it [10:47:31]SAM_PROTO_GetFieldsCounters [10:47:31]wFMCommunicate request_size=4 [10:47:31]MH_SAM_APDU [10:47:31]CAPDU: 80 13 00 00 [10:47:31]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [10:47:31]Write i2c OK [10:47:31]MH_I2C_Read... [10:47:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:31]Read from MH i2c: E2 [10:47:31]MH_I2C_Read... [10:47:31]Read from MH i2c: E2 62 00 [10:47:31]MH_I2C_Read... [10:47:31]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9C 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [10:47:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9C 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:47:31]wFMCommunicate OK [10:47:31]SAM_PROTO_GetFieldsCounters done [10:47:31]requested_item shift.num is exist - process it [10:47:31]requested_item shift.opened is exist - process it [10:47:31]req_shift_opened [10:47:31]FM_GetShiftState [10:47:31]SAM_PROTO_GetShiftState [10:47:31]wFMCommunicate request_size=4 [10:47:31]MH_SAM_APDU [10:47:31]CAPDU: 80 13 01 00 [10:47:31]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [10:47:31]Write i2c OK [10:47:31]MH_I2C_Read... [10:47:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:31]Read from MH i2c: E2 [10:47:31]MH_I2C_Read... [10:47:31]Read from MH i2c: E2 0E 00 [10:47:31]MH_I2C_Read... [10:47:31]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 9E [10:47:31]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:47:31]wFMCommunicate OK [10:47:31]SAM_PROTO_GetShiftState done [10:47:31]FM_GetShiftState done [10:47:31]req_shift_opened done [10:47:31]requested_item shift.open_date is exist - process it [10:47:31]req_shift_open_date [10:47:31]req_shift_open_date done [10:47:31]produce_requested_data done [10:47:31]produce_requested_data return {"kkm.sn":"0300000109","kkm.ver":"001","fm.sn":"0000000000871756","fd.num":201372,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:47:31]process_action_free get_value [10:47:31]json_value_free [10:47:31]json_value_free done [10:47:31]process_json_proto returns [10:47:31]Send response to host [10:47:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000109","kkm.ver":"001","fm.sn":"0000000000871756","fd.num":201372,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:47:31]free response buf [10:47:31]execute_script done [10:47:31]execute_script returns [10:47:31]free content buf [10:47:31]Sock 9.Close socket [10:47:31]Sock 9.Thread stoped [10:47:31]accept exits with 6 [10:47:31]New connection [10:47:31]New thread 3066498404 created [10:47:31]Thread 3066641764 joined [10:47:31]Waiting for new connection... [10:47:31] Sock 6.Parse request [10:47:31]Sock 6.Check first char [10:47:31]Sock 6.First char is OK [10:47:31]request: POST /json_proto HTTP/1.0 [10:47:31]Method: POST [10:47:31]URL: /json_proto [10:47:31]Method is POST - this is cgi request [10:47:31]url: /json_proto [10:47:31]query_string will be loaded in cgi processing [10:47:31]execute_cgi json_proto POST (null) [10:47:31]execute_cgi path=json_proto method=POST [10:47:31]POST find Content-Length [10:47:31]Host: 172.17.63.195:8080 [10:47:31]Content-Length: 331 [10:47:31]Content-Type: application/json [10:47:31] [10:47:31]POST finish read [10:47:31]Found Content-Length = 331 [10:47:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:47:31]execute_script... [10:47:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:47:31]POST & json_proto [10:47:31]process_json_proto [10:47:31]json parsed OK: [10:47:31]protocol is kg_v1.0 [10:47:31]action value=get_value [10:47:31]process_action get_value [10:47:31]cmd_get_value [10:47:31]process_action get_value done [10:47:31]requested_data is exist [10:47:31]produce_requested_data [10:47:31]requested_item fm.sale.total is exist - process it [10:47:31]SAM_PROTO_GetFMData [10:47:31]wFMCommunicate request_size=4 [10:47:31]MH_SAM_APDU [10:47:31]CAPDU: 80 13 03 00 [10:47:31]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [10:47:31]Write i2c OK [10:47:31]MH_I2C_Read... [10:47:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:47:32]Read from MH i2c: E2 [10:47:32]MH_I2C_Read... [10:47:32]Read from MH i2c: E2 FD 00 [10:47:32]MH_I2C_Read... [10:47:32]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 5E 0E 03 00 69 04 A3 00 6F 04 04 00 39 0E 03 00 B1 04 05 00 C0 A5 38 AB 03 70 04 05 00 C4 E7 63 4C 03 72 04 04 00 FC BD D4 5E 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 01 C3 C6 63 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 82 63 50 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 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 A8 [10:47:32]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 5E 0E 03 00 69 04 A3 00 6F 04 04 00 39 0E 03 00 B1 04 05 00 C0 A5 38 AB 03 70 04 05 00 C4 E7 63 4C 03 72 04 04 00 FC BD D4 5E 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 01 C3 C6 63 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 82 63 50 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 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 [10:47:32]wFMCommunicate OK [10:47:32]wFMCommunicate request_size=4 [10:47:32]MH_SAM_APDU [10:47:32]CAPDU: 80 17 00 00 [10:47:32]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [10:47:32]Write i2c OK [10:47:32]MH_I2C_Read... [10:47:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:47:32]Read from MH i2c: E2 [10:47:32]MH_I2C_Read... [10:47:32]Read from MH i2c: E2 FD 00 [10:47:32]MH_I2C_Read... [10:47:32]Read from MH i2c: E2 FD 00 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 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 9B [10:47:32]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [10:47:32]wFMCommunicate OK [10:47:32]wFMCommunicate request_size=4 [10:47:32]MH_SAM_APDU [10:47:32]CAPDU: 80 17 00 00 [10:47:32]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [10:47:32]Write i2c OK [10:47:32]MH_I2C_Read... [10:47:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:47:32]Read from MH i2c: E2 [10:47:32]MH_I2C_Read... [10:47:32]Read from MH i2c: E2 FD 00 [10:47:32]MH_I2C_Read... [10:47:32]Read from MH i2c: E2 FD 00 15 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 03 90 00 AA [10:47:32]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [10:47:32]wFMCommunicate OK [10:47:32]wFMCommunicate request_size=4 [10:47:32]MH_SAM_APDU [10:47:32]CAPDU: 80 17 00 00 [10:47:32]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [10:47:32]Write i2c OK [10:47:32]MH_I2C_Read... [10:47:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:47:33]Read from MH i2c: E2 [10:47:33]MH_I2C_Read... [10:47:33]Read from MH i2c: E2 FD 00 [10:47:33]MH_I2C_Read... [10:47:33]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0E [10:47:33]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [10:47:33]wFMCommunicate OK [10:47:33]wFMCommunicate request_size=4 [10:47:33]MH_SAM_APDU [10:47:33]CAPDU: 80 17 00 00 [10:47:33]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [10:47:33]Write i2c OK [10:47:33]MH_I2C_Read... [10:47:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [10:47:33]Read from MH i2c: E2 [10:47:33]MH_I2C_Read... [10:47:33]Read from MH i2c: E2 E1 00 [10:47:33]MH_I2C_Read... [10:47:33]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [10:47:33]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:47:33]wFMCommunicate OK [10:47:33]SAM_PROTO_GetFMData done [10:47:33]requested_item fm.sale_refund.total is exist - process it [10:47:33]requested_item fm.buy.total is exist - process it [10:47:33]requested_item shift.sale.total is exist - process it [10:47:33]SAM_PROTO_GetShiftData [10:47:33]wFMCommunicate request_size=4 [10:47:33]MH_SAM_APDU [10:47:33]CAPDU: 80 13 02 00 [10:47:33]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [10:47:33]Write i2c OK [10:47:33]MH_I2C_Read... [10:47:33]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:47:33]Read from MH i2c: E2 [10:47:33]MH_I2C_Read... [10:47:33]Read from MH i2c: E2 FD 00 [10:47:33]MH_I2C_Read... [10:47:33]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 86 00 00 00 69 04 9C 00 6F 04 04 00 86 00 00 00 B1 04 03 00 19 9B 8F 70 04 03 00 28 B7 75 72 04 03 00 F1 E3 19 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 65 41 0F 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 71 45 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 62 [10:47:33]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 86 00 00 00 69 04 9C 00 6F 04 04 00 86 00 00 00 B1 04 03 00 19 9B 8F 70 04 03 00 28 B7 75 72 04 03 00 F1 E3 19 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 65 41 0F 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 71 45 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [10:47:33]wFMCommunicate OK [10:47:33]wFMCommunicate request_size=4 [10:47:33]MH_SAM_APDU [10:47:33]CAPDU: 80 17 00 00 [10:47:33]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [10:47:33]Write i2c OK [10:47:33]MH_I2C_Read... [10:47:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:47:33]Read from MH i2c: E2 [10:47:33]MH_I2C_Read... [10:47:33]Read from MH i2c: E2 FD 00 [10:47:33]MH_I2C_Read... [10:47:34]Read from MH i2c: E2 FD 00 19 00 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 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 90 00 B2 [10:47:34]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 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 90 00 [10:47:34]wFMCommunicate OK [10:47:34]wFMCommunicate request_size=4 [10:47:34]MH_SAM_APDU [10:47:34]CAPDU: 80 17 00 00 [10:47:34]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [10:47:34]Write i2c OK [10:47:34]MH_I2C_Read... [10:47:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:47:34]Read from MH i2c: E2 [10:47:34]MH_I2C_Read... [10:47:34]Read from MH i2c: E2 FD 00 [10:47:34]MH_I2C_Read... [10:47:34]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4E [10:47:34]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:47:34]wFMCommunicate OK [10:47:34]wFMCommunicate request_size=4 [10:47:34]MH_SAM_APDU [10:47:34]CAPDU: 80 17 00 00 [10:47:34]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [10:47:34]Write i2c OK [10:47:34]MH_I2C_Read... [10:47:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:47:34]Read from MH i2c: E2 [10:47:34]MH_I2C_Read... [10:47:34]Read from MH i2c: E2 FD 00 [10:47:34]MH_I2C_Read... [10:47:34]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 19 [10:47:34]RAPDU: 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 90 00 [10:47:34]wFMCommunicate OK [10:47:34]wFMCommunicate request_size=4 [10:47:34]MH_SAM_APDU [10:47:34]CAPDU: 80 17 00 00 [10:47:34]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [10:47:34]Write i2c OK [10:47:34]MH_I2C_Read... [10:47:34]OFD Sender: Processing packet 201363 [packets to send 121, broken 111] [10:47:34]ProducePacketName [10:47:34]name=ofd_packets/00201363 [10:47:34]OFD Sender: To server: pG, [10:47:34]CommunicateWithHost lk.salyk.kg:30040 [10:47:34]ConnectInit lk.salyk.kg [10:47:34]Connected sock=10 [10:47:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C2 13 07 01 A7 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 4B C5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 93 12 03 00 35 04 06 00 98 8C 50 A6 D6 42 9A 4A 4A F4 69 71 DD 1D [10:47:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [10:47:34]Read from MH i2c: E2 [10:47:34]MH_I2C_Read... [10:47:34]Read from MH i2c: E2 CC 00 [10:47:34]MH_I2C_Read... [10:47:34]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D [10:47:34]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [10:47:34]wFMCommunicate OK [10:47:34]SAM_PROTO_GetShiftData done [10:47:34]requested_item shift.sale.total_cash is exist - process it [10:47:34]requested_item shift.sale_refund.total is exist - process it [10:47:34]requested_item shift.sale_refund.total_cash is exist - process it [10:47:34]requested_item shift.buy.total is exist - process it [10:47:34]requested_item shift.buy.total_cash is exist - process it [10:47:34]produce_requested_data done [10:47:34]produce_requested_data return {"fm.sale.total":157575182.72,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":94113.53,"shift.sale.total_cash":77146.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} [10:47:34]process_action_free get_value [10:47:34]json_value_free [10:47:34]json_value_free done [10:47:34]process_json_proto returns [10:47:34]Send response to host [10:47:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":157575182.72,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":94113.53,"shift.sale.total_cash":77146.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}}} [10:47:34]free response buf [10:47:34]execute_script done [10:47:34]execute_script returns [10:47:34]free content buf [10:47:34]Sock 6.Close socket [10:47:34]Sock 6.Thread stoped [10:47:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 FF 5F 47 00 FC C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 93 12 03 00 F4 03 04 00 6E 74 1C 67 B6 04 01 00 00 D4 C2 38 5B 97 81 6D 2B [10:47:35]CommunicateWithHost err = 0 [10:47:35]CheckOFDResponse [10:47:35]1017 (14) - 77093643461234 [10:47:35]1041 (16) - 0000000000871756 [10:47:35]1040 (4) - 201363 [10:47:35]1012 (4) - 26.10.2024 04:47 [10:47:35]1206 (1) - 0 [10:47:35]OFD Sender: Remove packet 201363 [10:47:35]ProducePacketName [10:47:35]name=ofd_packets/00201363 [10:47:35]NVStorageDeleteData [10:47:35]accept exits with 9 [10:47:35]New connection [10:47:35]New thread 3066641764 created [10:47:35]Thread 3066498404 joined [10:47:35]Waiting for new connection... [10:47:35] Sock 9.Parse request [10:47:35]Sock 9.Check first char [10:47:35]Sock 9.First char is OK [10:47:35]request: POST /json_proto HTTP/1.0 [10:47:35]Method: POST [10:47:35]URL: /json_proto [10:47:35]Method is POST - this is cgi request [10:47:35]url: /json_proto [10:47:35]query_string will be loaded in cgi processing [10:47:35]execute_cgi json_proto POST (null) [10:47:35]execute_cgi path=json_proto method=POST [10:47:35]POST find Content-Length [10:47:35]Host: 172.17.63.195:8080 [10:47:35]Content-Length: 678 [10:47:35]Content-Type: application/json [10:47:35] [10:47:35]POST finish read [10:47:35]Found Content-Length = 678 [10:47:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:35]execute_script... [10:47: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)449122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:35]POST & json_proto [10:47:35]process_json_proto [10:47:35]json parsed OK: [10:47:35]protocol is kg_v1.0 [10:47:35]action value=close_receipt [10:47:35]process_action close_receipt [10:47:35]cmd_close_receipt [10:47:35]MH_GetDate [10:47:35]Write to MH i2c: F0 00 00 1D 00 0C [10:47:35]Write i2c OK [10:47:35]MH_I2C_Read... [10:47:35]Read from MH i2c: F0 [10:47:35]MH_I2C_Read... [10:47:35]Read from MH i2c: F0 09 00 [10:47:35]MH_I2C_Read... [10:47:35]Read from MH i2c: F0 09 00 1D 00 00 C7 C8 1C 67 68 46 19 67 55 [10:47:35]GetLastDocTimeStamp 1729939493 [10:47:35]current date 1729939655 [10:47:35]FM_GetShiftState [10:47:35]SAM_PROTO_GetShiftState [10:47:35]wFMCommunicate request_size=4 [10:47:35]MH_SAM_APDU [10:47:35]CAPDU: 80 13 01 00 [10:47:35]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [10:47:35]Write i2c OK [10:47:35]MH_I2C_Read... [10:47:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:35]Read from MH i2c: E2 [10:47:35]MH_I2C_Read... [10:47:35]Read from MH i2c: E2 0E 00 [10:47:35]MH_I2C_Read... [10:47:35]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 AA [10:47:35]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:47:35]wFMCommunicate OK [10:47:35]SAM_PROTO_GetShiftState done [10:47:35]FM_GetShiftState done [10:47:35]opened in 1729900879 [10:47:35]opened+sec_in_day 1729987279 [10:47:35]quantity*price = 80012 [10:47:35]sum+1 = 80013 [10:47:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 135 26.10.2024 10:47 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201373 ФПД: 183711229620504 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T104735&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201373&fm=183711229620504&tin=02508201610067®Number=0000000000091777&sum=80000 [10:47:36]StoreToDocumentArchive [10:47:36]shift 543 fd 201373 [10:47:36]save to /storage/0543/doc_00201373 [10:47:36]save last doc name /storage/0543/doc_00201373 to /storage/kkm_last_doc_name [10:47:36]save OK [10:47:36]Clear old archive folders... [10:47:36]Connected sock=10 [10:47:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:47:36]31 tlvbuf is 017CA8B0 [10:47:36]37 SAM_PROTO_ClearQueue [10:47:36]35 wFMCommunicate request_size=4 [10:47:36]36 MH_SAM_APDU [10:47:36]0F CAPDU: 01 80 00 09 00 00 D2 00 36 [10:47:36]07 Write to MH i2c: 01 E2 9B 08 0A 00 5A 2B 03 00 01 80 00 09 03 00 00 00 FB 00 00 00 1E 00 04 00 01 9D 00 [10:47:36]01 23 04 4D Write i2c OK [10:47:36]00 MH_I2C_Read... [10:47:36]8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 E7 C5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 95 12 03 00 35 04 06 00 DE CF 92 16 37 5D 78 D5 AD EF 05 3E F8 98 [10:47:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:37]Read from MH i2c: E2 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 03 00 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [10:47:37]RAPDU: 90 00 [10:47:37]wFMCommunicate OK [10:47:37]SAM_PROTO_ClearQueue done [10:47:37]KKMCreateOFDPacket [10:47:37]OFDProtocolAddRootSTLVToBuf [10:47:37]FM_MakeSignedData [10:47:37]FM_MakeSignedData [10:47:37]SAM_PROTO_SignData [10:47:37]wFMCommunicate request_size=4 [10:47:37]MH_SAM_APDU [10:47:37]CAPDU: 80 0D 01 02 [10:47:37]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [10:47:37]Write i2c OK [10:47:37]MH_I2C_Read... [10:47:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:37]Read from MH i2c: E2 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 03 00 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [10:47:37]RAPDU: 90 00 [10:47:37]wFMCommunicate OK [10:47:37]wFMCommunicate request_size=255 [10:47:37]MH_SAM_APDU [10:47:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 C7 C8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9D 12 03 00 35 04 06 00 A7 [10:47:37]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 Received data: 00 87 EB 95 03 F6 26 70 00 47 EF 2C 03 01 0F 00 00 30 F6 30 03 30 01 30 00 30 01 30 F7 30 03 30 06 30 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 30 00 38 39 37 04 31 06 37 00 35 00 36 00 4F 00 00 00 00 00 00 00 0F 1F 6A 04 47 02 00 00 EF 01 54 00 A5 12 04 04 00 87 00 00 00 F4 03 04 00 C7 C8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 07 30 01 30 00 30 07 30 00 30 3B 30 00 30 F9 30 03 39 0E 31 00 37 37 37 37 37 30 11 39 04 33 10 36 00 34 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9D 12 03 00 35 04 06 00 A7 00 00 38 [10:47:37]33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 95 12 03 00 F4 03 04 00 70 74 1C 67 B6 04 01 00 00 C1 C4 03 9E 87 9B A3 A4 [10:47:37]CommunicateWithHost err = 0 [10:47:37]CheckOFDResponse [10:47:37]1017 (14) - 77093643461234 [10:47:37]1041 (16) - 0000000000871756 [10:47:37]1040 (4) - 201365 [10:47:37]1012 (4) - 26.10.2024 04:47 [10:47:37]1206 (1) - 0 [10:47:37]OFD Sender: Remove packet 201365 [10:47:37]ProducePacketName [10:47:37]name=ofd_packets/00201365 [10:47:37]NVStorageDeleteData [10:47:37]Write i2c OK [10:47:37]MH_I2C_Read... [10:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:37]Read from MH i2c: E2 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 03 00 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [10:47:37]RAPDU: 90 00 [10:47:37]wFMCommunicate OK [10:47:37]wFMCommunicate request_size=10 [10:47:37]MH_SAM_APDU [10:47:37]CAPDU: 80 0D 02 02 05 15 9A 95 31 18 [10:47:37]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 15 9A 95 31 18 00 00 3F [10:47:37]Write i2c OK [10:47:37]MH_I2C_Read... [10:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:37]Read from MH i2c: E2 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 03 00 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [10:47:37]RAPDU: 90 00 [10:47:37]wFMCommunicate OK [10:47:37]wFMCommunicate request_size=4 [10:47:37]MH_SAM_APDU [10:47:37]CAPDU: 80 0D 03 02 [10:47:37]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [10:47:37]Write i2c OK [10:47:37]MH_I2C_Read... [10:47:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:37]Read from MH i2c: E2 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 0B 00 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 0B 00 2F 00 00 E5 C4 B3 AD 73 CD 39 CE 90 00 FB [10:47:37]RAPDU: E5 C4 B3 AD 73 CD 39 CE 90 00 [10:47:37]wFMCommunicate OK [10:47:37]SAM_PROTO_SignData done [10:47:37]FM_MakeSignedData done [10:47:37]CreateOFDProtocolMessage [10:47:37]wFMCommunicate request_size=4 [10:47:37]MH_SAM_APDU [10:47:37]CAPDU: 80 11 00 00 [10:47:37]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [10:47:37]Write i2c OK [10:47:37]MH_I2C_Read... [10:47:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:37]Read from MH i2c: E2 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 17 00 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FF [10:47:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:47:37]wFMCommunicate OK [10:47:37]CreateOFDProtocolMessage done [10:47:37]OFDSenderStorePacket 201373 [10:47:37]StoreOFDPacket docnum=201373 [10:47:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 79 C2 07 01 3E 9F 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 C7 C8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9D 12 03 00 35 04 06 00 A7 15 9A 95 31 18 E5 C4 B3 AD 73 CD 39 CE [10:47:37]CheckFolder [10:47:37]dirname=/storage/ofd_packets [10:47:37]CheckFolder done [10:47:37]ProducePacketName [10:47:37]name=ofd_packets/00201373 [10:47:37]NVStorageSaveData ofd_packets/00201373 [10:47:37]File name is /storage/ofd_packets/00201373 [10:47:37]Write 301 bytes [10:47:37]NVStorageSaveData done [10:47:37]OFDSenderStorePacket done [10:47:37]KKMCreateOFDPacket done [10:47:37]NVStorageSaveData kkm_last_timestamp [10:47:37]File name is /storage/kkm_last_timestamp [10:47:37]Write 4 bytes [10:47:37]NVStorageSaveData done [10:47:37]ExternCall_PrintAddStr [10:47:37]wPrintStart [10:47:37]Write to MH i2c: 01 00 00 31 00 31 [10:47:37]Write i2c OK [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: 01 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: 01 07 00 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [10:47:37]RasterBufferAndPrint [10:47:37]line Счет N : (1)449122 [10:47:37]line ИНН: 02508201610067 [10:47:37]line Контрольно-Кассовый Чек [10:47:37]line ПРОДАЖА [10:47:37]line ТРК (МРК, ГНК) : 41 [10:47:37]line Товар: 2710124130 [10:47:37]line Аи-92-К-2 [10:47:37]line 11.960 * 66.90 [10:47:37]line = 800.12 [10:47:37]line НДС 12% НСП 1% [10:47:37]line > о реализуемом товаре [10:47:37]line ОКРУГЛЕНИЕ: -0.12 [10:47:37]line ИТОГО: 800.00 [10:47:37]line Внесено: 800.00 [10:47:37]line СДАЧА: 0.00 [10:47:37]line НСП 1% : 7.08 [10:47:37]line НДС 12% : 84.97 [10:47:37]line Наличными: 800.00 [10:47:37]line Безнал.: 0.00 [10:47:37]line Место: АЗС № 171 "Партнер Нефть" [10:47:37]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:47:37]line СНО: Общий режим [10:47:37]line Чек 135 26.10.2024 10:47 [10:47:37]line Смена: 543 ФФД: 1.0 [10:47:37]line ЗНМ: 0300000109 [10:47:37]line РНМ: 0000000000091777 [10:47:37]line Версия ККМ: 001 [10:47:37]line ФМ: 0000000000871756 [10:47:37]line ФД: 201373 [10:47:37]line ФПД: 183711229620504 [10:47:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T104735&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201373&fm=183711229620504&tin=02508201610067®Number=0000000000091777&sum=80000 [10:47:37]written 0, free lines is 4095 [10:47:37]OFD Sender: Processing packet 201366 [packets to send 119, broken 111] [10:47:37]ProducePacketName [10:47:37]name=ofd_packets/00201366 [10:47:37]OFD Sender: To server: pG, [10:47:37]CommunicateWithHost lk.salyk.kg:30040 [10:47:37]ConnectInit lk.salyk.kg [10:47:37]Connected sock=10 [10:47:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 10 32 04 01 CA 68 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 2C C6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 96 12 03 00 35 04 06 00 A9 AF B6 B0 A9 CA 70 F1 21 0B D2 B1 B1 7E [10:47:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 88 5F 47 00 DB 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 96 12 03 00 F4 03 04 00 71 74 1C 67 B6 04 01 00 00 06 35 AC FA 12 E6 37 A3 [10:47:38]CommunicateWithHost err = 0 [10:47:38]CheckOFDResponse [10:47:38]1017 (14) - 77093643461234 [10:47:38]1041 (16) - 0000000000871756 [10:47:38]1040 (4) - 201366 [10:47:38]1012 (4) - 26.10.2024 04:47 [10:47:38]1206 (1) - 0 [10:47:38]OFD Sender: Remove packet 201366 [10:47:38]ProducePacketName [10:47:38]name=ofd_packets/00201366 [10:47:38]NVStorageDeleteData [10:47:38]Write to MH i2c: 01 00 00 5C 00 5C [10:47:38]Write i2c OK [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: 01 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: 01 07 00 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 AB 0C 1A [10:47:38]RasterBufferAndPrint [10:47:38]line [10:47:38]line [10:47:38]line [10:47:38]line [10:47:38]line [10:47:38]written 0, free lines is 3267 [10:47:38]MH_Cut [10:47:38]Write to MH i2c: D1 01 00 63 00 01 35 [10:47:38]Write i2c OK [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: D1 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: D1 01 00 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: D1 01 00 63 00 00 34 [10:47:38]Write to MH i2c: 01 00 00 64 00 64 [10:47:38]Write i2c OK [10:47:38]MH_I2C_Read... [10:47:38]OFD Sender: Processing packet 201367 [packets to send 118, broken 111] [10:47:38]ProducePacketName [10:47:38]name=ofd_packets/00201367 [10:47:38]OFD Sender: To server: pG, [10:47:38]CommunicateWithHost lk.salyk.kg:30040 [10:47:38]ConnectInit lk.salyk.kg [10:47:38]Connected sock=10 [10:47:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8F CE 07 01 81 87 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 32 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 81 00 00 00 F4 03 04 00 87 C6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 97 12 03 00 35 04 06 00 DC A4 7F F0 16 0F 17 0D 5E 78 52 78 19 06 [10:47:39]*** Cut start [10:47:39]*** Purtial cut [10:47:39]*** Stage 1: CUTSNS_PIN = 1 [10:47:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E3 04 47 00 C8 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 97 12 03 00 F4 03 04 00 72 74 1C 67 B6 04 01 00 00 8E B2 25 50 8E 75 38 95 [10:47:39]CommunicateWithHost err = 0 [10:47:39]CheckOFDResponse [10:47:39]1017 (14) - 77093643461234 [10:47:39]1041 (16) - 0000000000871756 [10:47:39]1040 (4) - 201367 [10:47:39]1012 (4) - 26.10.2024 04:47 [10:47:39]1206 (1) - 0 [10:47:39]OFD Sender: Remove packet 201367 [10:47:39]ProducePacketName [10:47:39]name=ofd_packets/00201367 [10:47:39]NVStorageDeleteData [10:47:39]Read from MH i2c: 01 [10:47:39]MH_I2C_Read... [10:47:39]*** Stop cut motor [10:47:39]*** Cut end [10:47:39]Read from MH i2c: 01 07 00 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [10:47:39]process_action close_receipt done [10:47:39]requested_data is exist [10:47:39]produce_requested_data [10:47:39]requested_item fm.sn is exist - process it [10:47:39]wFMCommunicate request_size=4 [10:47:39]MH_SAM_APDU [10:47:39]CAPDU: 80 11 00 00 [10:47:39]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [10:47:39]Write i2c OK [10:47:39]MH_I2C_Read... [10:47:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:39]Read from MH i2c: E2 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: E2 17 00 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 34 [10:47:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:47:39]wFMCommunicate OK [10:47:39]requested_item fd.num is exist - process it [10:47:39]SAM_PROTO_GetFieldsCounters [10:47:39]wFMCommunicate request_size=4 [10:47:39]MH_SAM_APDU [10:47:39]CAPDU: 80 13 00 00 [10:47:39]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [10:47:39]Write i2c OK [10:47:39]MH_I2C_Read... [10:47:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:39]Read from MH i2c: E2 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: E2 62 00 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9D 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [10:47:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9D 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:47:39]wFMCommunicate OK [10:47:39]SAM_PROTO_GetFieldsCounters done [10:47:39]requested_item shift.num is exist - process it [10:47:39]requested_item shift.opened is exist - process it [10:47:39]req_shift_opened [10:47:39]FM_GetShiftState [10:47:39]SAM_PROTO_GetShiftState [10:47:39]wFMCommunicate request_size=4 [10:47:39]MH_SAM_APDU [10:47:39]CAPDU: 80 13 01 00 [10:47:39]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [10:47:39]Write i2c OK [10:47:39]MH_I2C_Read... [10:47:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:39]Read from MH i2c: E2 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: E2 0E 00 [10:47:39]MH_I2C_Read... [10:47:39]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F3 [10:47:39]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:47:39]wFMCommunicate OK [10:47:39]SAM_PROTO_GetShiftState done [10:47:39]FM_GetShiftState done [10:47:39]req_shift_opened done [10:47:39]requested_item shift.open_date is exist - process it [10:47:39]req_shift_open_date [10:47:39]req_shift_open_date done [10:47:39]produce_requested_data done [10:47:39]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201373,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:47:39]process_action_free close_receipt [10:47:39]json_value_free [10:47:39]json_value_free done [10:47:39]process_json_proto returns [10:47:39]Send response to host [10:47:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201373,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:47:39]free response buf [10:47:39]execute_script done [10:47:39]execute_script returns [10:47:39]free content buf [10:47:39]Sock 9.Close socket [10:47:39]Sock 9.Thread stoped [10:47:39]OFD Sender: Processing packet 201368 [packets to send 117, broken 111] [10:47:39]ProducePacketName [10:47:39]name=ofd_packets/00201368 [10:47:39]OFD Sender: To server: pG, [10:47:39]CommunicateWithHost lk.salyk.kg:30040 [10:47:39]ConnectInit lk.salyk.kg [10:47:39]Connected sock=9 [10:47:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C7 A7 07 01 22 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 32 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 82 00 00 00 F4 03 04 00 AF C6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 98 12 03 00 35 04 06 00 C7 01 97 E2 E4 C7 EF 56 20 B1 43 1E 2F 43 [10:47:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 85 92 47 00 D1 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 98 12 03 00 F4 03 04 00 73 74 1C 67 B6 04 01 00 00 41 8D C0 51 58 99 1E 94 [10:47:40]CommunicateWithHost err = 0 [10:47:40]CheckOFDResponse [10:47:40]1017 (14) - 77093643461234 [10:47:40]1041 (16) - 0000000000871756 [10:47:40]1040 (4) - 201368 [10:47:40]1012 (4) - 26.10.2024 04:47 [10:47:40]1206 (1) - 0 [10:47:40]OFD Sender: Remove packet 201368 [10:47:40]ProducePacketName [10:47:40]name=ofd_packets/00201368 [10:47:40]NVStorageDeleteData [10:47:40]OFD Sender: Processing packet 201369 [packets to send 116, broken 111] [10:47:40]ProducePacketName [10:47:40]name=ofd_packets/00201369 [10:47:40]OFD Sender: To server: pG, [10:47:40]CommunicateWithHost lk.salyk.kg:30040 [10:47:40]ConnectInit lk.salyk.kg [10:47:40]Connected sock=9 [10:47:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E3 49 07 01 3B D8 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 32 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 83 00 00 00 F4 03 04 00 D9 C6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 99 12 03 00 35 04 06 00 B3 8F F4 44 8A FB C8 D5 F8 52 E1 E9 02 E3 [10:47:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 34 79 47 00 9D 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 99 12 03 00 F4 03 04 00 74 74 1C 67 B6 04 01 00 00 82 9C 08 BC 96 0D 9F 1E [10:47:41]CommunicateWithHost err = 0 [10:47:41]CheckOFDResponse [10:47:41]1017 (14) - 77093643461234 [10:47:41]1041 (16) - 0000000000871756 [10:47:41]1040 (4) - 201369 [10:47:41]1012 (4) - 26.10.2024 04:47 [10:47:41]1206 (1) - 0 [10:47:41]OFD Sender: Remove packet 201369 [10:47:41]ProducePacketName [10:47:41]name=ofd_packets/00201369 [10:47:41]NVStorageDeleteData [10:47:41]int [10:47:41]Write to MH i2c: 01 00 00 68 00 68 [10:47:41]*** FLAG_PRN_KEY set [10:47:41]Write i2c OK [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: 01 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: 01 07 00 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: 01 07 00 68 00 00 08 00 00 00 FF 0F 85 [10:47:41]state=0 [10:47:41]Key pressed [10:47:41]Feed [10:47:41]Write to MH i2c: D8 00 00 69 00 40 [10:47:41]Write i2c OK [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: D8 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: D8 01 00 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: D8 01 00 69 00 00 41 [10:47:41]int line is 0 - check status [10:47:41]Write to MH i2c: 01 00 00 6A 00 6A [10:47:41]Write i2c OK [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: 01 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: 01 07 00 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: 01 07 00 6A 00 00 48 00 00 00 3C 00 F5 [10:47:41]state=2 [10:47:41]Key pressed [10:47:41]int [10:47:41]Write to MH i2c: 01 00 00 6B 00 6B [10:47:41]Write i2c OK [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: 01 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: 01 07 00 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: 01 07 00 6B 00 00 48 00 00 00 3C 00 F6 [10:47:41]state=2 [10:47:41]Key pressed [10:47:41]OFD Sender: Processing packet 201370 [packets to send 115, broken 111] [10:47:41]ProducePacketName [10:47:41]name=ofd_packets/00201370 [10:47:41]OFD Sender: To server: pG, [10:47:41]CommunicateWithHost lk.salyk.kg:30040 [10:47:41]ConnectInit lk.salyk.kg [10:47:41]int [10:47:41]Write to MH i2c: 01 00 00 6C 00 6C [10:47:41]*** FLAG_PRN_KEY reset [10:47:41]Write i2c OK [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: 01 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: 01 07 00 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: 01 07 00 6C 00 00 00 00 00 00 F8 0F 7A [10:47:41]state=2 [10:47:41]Stop feed [10:47:41]Connected sock=9 [10:47:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B3 83 07 01 0E 4C 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 32 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 84 00 00 00 F4 03 04 00 26 C7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9A 12 03 00 35 04 06 00 F5 98 B2 9C 88 D6 31 56 18 EC 8A 32 FF 04 [10:47:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D0 CB 47 00 6D 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9A 12 03 00 F4 03 04 00 75 74 1C 67 B6 04 01 00 00 60 AB 83 CF 41 BA 04 CD [10:47:42]CommunicateWithHost err = 0 [10:47:42]CheckOFDResponse [10:47:42]1017 (14) - 77093643461234 [10:47:42]1041 (16) - 0000000000871756 [10:47:42]1040 (4) - 201370 [10:47:42]1012 (4) - 26.10.2024 04:47 [10:47:42]1206 (1) - 0 [10:47:42]OFD Sender: Remove packet 201370 [10:47:42]ProducePacketName [10:47:42]name=ofd_packets/00201370 [10:47:42]NVStorageDeleteData [10:47:42]OFD Sender: Processing packet 201371 [packets to send 114, broken 111] [10:47:42]ProducePacketName [10:47:42]name=ofd_packets/00201371 [10:47:42]OFD Sender: To server: pG, [10:47:42]CommunicateWithHost lk.salyk.kg:30040 [10:47:42]ConnectInit lk.salyk.kg [10:47:42]Connected sock=9 [10:47:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D1 87 07 01 C4 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 32 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 85 00 00 00 F4 03 04 00 49 C7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9B 12 03 00 35 04 06 00 7B 93 FD B0 58 42 C3 09 CD 2E 1A 78 B2 7E [10:47:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 FA C3 47 00 0F 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 38 37 31 37 35 36 10 04 04 00 9B 12 03 00 F4 03 04 00 76 74 1C 67 B6 04 01 00 00 AA 14 93 8E D1 75 83 0A [10:47:42]CommunicateWithHost err = 0 [10:47:42]CheckOFDResponse [10:47:42]1017 (14) - 77093643461234 [10:47:42]1041 (16) - 0000000000871756 [10:47:42]1040 (4) - 201371 [10:47:42]1012 (4) - 26.10.2024 04:47 [10:47:42]1206 (1) - 0 [10:47:42]OFD Sender: Remove packet 201371 [10:47:42]ProducePacketName [10:47:42]name=ofd_packets/00201371 [10:47:42]NVStorageDeleteData [10:47:43]OFD Sender: Processing packet 201372 [packets to send 113, broken 111] [10:47:43]ProducePacketName [10:47:43]name=ofd_packets/00201372 [10:47:43]OFD Sender: To server: pG, [10:47:43]CommunicateWithHost lk.salyk.kg:30040 [10:47:43]ConnectInit lk.salyk.kg [10:47:43]Connected sock=9 [10:47:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E4 F6 07 01 90 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 32 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 86 00 00 00 F4 03 04 00 25 C8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9C 12 03 00 35 04 06 00 04 A4 7A C6 50 92 15 94 D0 4A BB 7A 79 95 [10:47:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 EB 06 47 00 71 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9C 12 03 00 F4 03 04 00 77 74 1C 67 B6 04 01 00 00 18 77 F9 42 21 DE 1C 62 [10:47:43]CommunicateWithHost err = 0 [10:47:43]CheckOFDResponse [10:47:43]1017 (14) - 77093643461234 [10:47:43]1041 (16) - 0000000000871756 [10:47:43]1040 (4) - 201372 [10:47:43]1012 (4) - 26.10.2024 04:47 [10:47:43]1206 (1) - 0 [10:47:43]OFD Sender: Remove packet 201372 [10:47:43]ProducePacketName [10:47:43]name=ofd_packets/00201372 [10:47:43]NVStorageDeleteData [10:47:44]OFD Sender: Processing packet 201373 [packets to send 112, broken 111] [10:47:44]ProducePacketName [10:47:44]name=ofd_packets/00201373 [10:47:44]OFD Sender: To server: pG, [10:47:44]CommunicateWithHost lk.salyk.kg:30040 [10:47:44]ConnectInit lk.salyk.kg [10:47:44]Connected sock=9 [10:47:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 79 C2 07 01 3E 9F 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 C7 C8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9D 12 03 00 35 04 06 00 A7 15 9A 95 31 18 E5 C4 B3 AD 73 CD 39 CE [10:47:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C9 5F 47 00 C9 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9D 12 03 00 F4 03 04 00 77 74 1C 67 B6 04 01 00 00 7D 0F D2 6E 0A 39 37 92 [10:47:44]CommunicateWithHost err = 0 [10:47:44]CheckOFDResponse [10:47:44]1017 (14) - 77093643461234 [10:47:44]1041 (16) - 0000000000871756 [10:47:44]1040 (4) - 201373 [10:47:44]1012 (4) - 26.10.2024 04:47 [10:47:44]1206 (1) - 0 [10:47:44]OFD Sender: Remove packet 201373 [10:47:44]ProducePacketName [10:47:44]name=ofd_packets/00201373 [10:47:44]NVStorageDeleteData [10:47:45]OFD Sender: No OFD packet to send [10:47:45]OFD Sender: No OFD packet to send [10:47:50]OFD Sender: No OFD packet to send [10:47:55]OFD Sender: No OFD packet to send [10:48:00]OFD Sender: No OFD packet to send [10:48:05]OFD Sender: No OFD packet to send [10:48:10]OFD Sender: No OFD packet to send [10:48:13]accept exits with 6 [10:48:13]New connection [10:48:13]New thread 3066498404 created [10:48:13]Thread 3066641764 joined [10:48:13]Waiting for new connection... [10:48:13] Sock 6.Parse request [10:48:13]Sock 6.Check first char [10:48:13]Sock 6.First char is OK [10:48:13]request: POST /json_proto HTTP/1.0 [10:48:13]Method: POST [10:48:13]URL: /json_proto [10:48:13]Method is POST - this is cgi request [10:48:13]url: /json_proto [10:48:13]query_string will be loaded in cgi processing [10:48:13]execute_cgi json_proto POST (null) [10:48:13]execute_cgi path=json_proto method=POST [10:48:13]POST find Content-Length [10:48:13]Host: 172.17.63.195:8080 [10:48:13]Content-Length: 682 [10:48:13]Content-Type: application/json [10:48:13] [10:48:13]POST finish read [10:48:13]Found Content-Length = 682 [10:48:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:48:13]execute_script... [10:48: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)449123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:48:13]POST & json_proto [10:48:13]process_json_proto [10:48:13]json parsed OK: [10:48:13]protocol is kg_v1.0 [10:48:13]action value=close_receipt [10:48:13]process_action close_receipt [10:48:13]cmd_close_receipt [10:48:13]MH_GetDate [10:48:13]Write to MH i2c: F0 00 00 6D 00 5C [10:48:13]Write i2c OK [10:48:13]MH_I2C_Read... [10:48:13]Read from MH i2c: F0 [10:48:13]MH_I2C_Read... [10:48:13]Read from MH i2c: F0 09 00 [10:48:13]MH_I2C_Read... [10:48:13]Read from MH i2c: F0 09 00 6D 00 00 ED C8 1C 67 68 46 19 67 CB [10:48:13]GetLastDocTimeStamp 1729939655 [10:48:13]current date 1729939693 [10:48:13]FM_GetShiftState [10:48:13]SAM_PROTO_GetShiftState [10:48:13]wFMCommunicate request_size=4 [10:48:13]MH_SAM_APDU [10:48:13]CAPDU: 80 13 01 00 [10:48:13]Write to MH i2c: E2 08 00 6E 00 80 13 01 00 00 00 00 00 EB [10:48:13]Write i2c OK [10:48:13]MH_I2C_Read... [10:48:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:13]Read from MH i2c: E2 [10:48:13]MH_I2C_Read... [10:48:13]Read from MH i2c: E2 0E 00 [10:48:13]MH_I2C_Read... [10:48:13]Read from MH i2c: E2 0E 00 6E 00 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 FA [10:48:13]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:48:13]wFMCommunicate OK [10:48:13]SAM_PROTO_GetShiftState done [10:48:13]FM_GetShiftState done [10:48:13]opened in 1729900879 [10:48:13]opened+sec_in_day 1729987279 [10:48:13]quantity*price = 100015 [10:48:13]sum+1 = 100017 [10:48:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 136 26.10.2024 10:48 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201374 ФПД: 225574004904923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T104813&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201374&fm=225574004904923&tin=02508201610067®Number=0000000000091777&sum=100000 [10:48:14]StoreToDocumentArchive [10:48:14]shift 543 fd 201374 [10:48:14]save to /storage/0543/doc_00201374 [10:48:14]save last doc name /storage/0543/doc_00201374 to /storage/kkm_last_doc_name [10:48:14]save OK [10:48:14]Clear old archive folders... [10:48:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:48:14]tlvbuf is 0180DBC0 [10:48:14]SAM_PROTO_ClearQueue [10:48:14]wFMCommunicate request_size=4 [10:48:14]MH_SAM_APDU [10:48:14]CAPDU: 80 09 00 00 [10:48:14]Write to MH i2c: E2 08 00 7B 00 80 09 00 00 00 00 00 00 ED [10:48:14]Write i2c OK [10:48:14]MH_I2C_Read... [10:48:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:14]Read from MH i2c: E2 [10:48:14]MH_I2C_Read... [10:48:14]Read from MH i2c: E2 03 00 [10:48:14]MH_I2C_Read... [10:48:14]Read from MH i2c: E2 03 00 7B 00 00 90 00 EF [10:48:14]RAPDU: 90 00 [10:48:14]wFMCommunicate OK [10:48:14]SAM_PROTO_ClearQueue done [10:48:14]KKMCreateOFDPacket [10:48:14]OFDProtocolAddRootSTLVToBuf [10:48:14]FM_MakeSignedData [10:48:14]FM_MakeSignedData [10:48:14]SAM_PROTO_SignData [10:48:14]wFMCommunicate request_size=4 [10:48:14]MH_SAM_APDU [10:48:14]CAPDU: 80 0D 01 02 [10:48:14]Write to MH i2c: E2 08 00 7C 00 80 0D 01 02 00 00 00 00 F5 [10:48:14]Write i2c OK [10:48:14]MH_I2C_Read... [10:48:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:14]Read from MH i2c: E2 [10:48:14]MH_I2C_Read... [10:48:14]Read from MH i2c: E2 03 00 [10:48:14]MH_I2C_Read... [10:48:14]Read from MH i2c: E2 03 00 7C 00 00 90 00 F0 [10:48:14]RAPDU: 90 00 [10:48:14]wFMCommunicate OK [10:48:14]wFMCommunicate request_size=255 [10:48:14]MH_SAM_APDU [10:48: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 32 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 88 00 00 00 F4 03 04 00 ED C8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9E 12 03 00 35 04 06 00 CD [10:48:14]Write to MH i2c: E2 02 01 7D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 88 00 00 00 F4 03 04 00 ED C8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9E 12 03 00 35 04 06 00 CD 00 00 E4 [10:48:14]Write i2c OK [10:48:14]MH_I2C_Read... [10:48:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:14]Read from MH i2c: E2 [10:48:14]MH_I2C_Read... [10:48:14]Read from MH i2c: E2 03 00 [10:48:14]MH_I2C_Read... [10:48:14]Read from MH i2c: E2 03 00 7D 00 00 90 00 F1 [10:48:14]RAPDU: 90 00 [10:48:14]wFMCommunicate OK [10:48:14]wFMCommunicate request_size=10 [10:48:14]MH_SAM_APDU [10:48:14]CAPDU: 80 0D 02 02 05 28 8A 6E D3 DB [10:48:14]Write to MH i2c: E2 0D 00 7E 00 80 0D 02 02 05 00 28 8A 6E D3 DB 00 00 D0 [10:48:14]Write i2c OK [10:48:14]MH_I2C_Read... [10:48:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:14]Read from MH i2c: E2 [10:48:14]MH_I2C_Read... [10:48:14]Read from MH i2c: E2 03 00 [10:48:14]MH_I2C_Read... [10:48:14]Read from MH i2c: E2 03 00 7E 00 00 90 00 F2 [10:48:14]RAPDU: 90 00 [10:48:14]wFMCommunicate OK [10:48:14]wFMCommunicate request_size=4 [10:48:14]MH_SAM_APDU [10:48:14]CAPDU: 80 0D 03 02 [10:48:14]Write to MH i2c: E2 08 00 7F 00 80 0D 03 02 00 00 00 00 FA [10:48:14]Write i2c OK [10:48:14]MH_I2C_Read... [10:48:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:14]Read from MH i2c: E2 [10:48:14]MH_I2C_Read... [10:48:14]Read from MH i2c: E2 0B 00 [10:48:14]MH_I2C_Read... [10:48:14]Read from MH i2c: E2 0B 00 7F 00 00 21 6A A7 18 D6 6A C5 25 90 00 6F [10:48:14]RAPDU: 21 6A A7 18 D6 6A C5 25 90 00 [10:48:14]wFMCommunicate OK [10:48:14]SAM_PROTO_SignData done [10:48:14]FM_MakeSignedData done [10:48:14]CreateOFDProtocolMessage [10:48:14]wFMCommunicate request_size=4 [10:48:14]MH_SAM_APDU [10:48:14]CAPDU: 80 11 00 00 [10:48:14]Write to MH i2c: E2 08 00 80 00 80 11 00 00 00 00 00 00 FA [10:48:14]Write i2c OK [10:48:14]MH_I2C_Read... [10:48:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:14]Read from MH i2c: E2 [10:48:14]MH_I2C_Read... [10:48:14]Read from MH i2c: E2 17 00 [10:48:14]MH_I2C_Read... [10:48:14]Read from MH i2c: E2 17 00 80 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4F [10:48:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:48:14]wFMCommunicate OK [10:48:14]CreateOFDProtocolMessage done [10:48:14]OFDSenderStorePacket 201374 [10:48:14]StoreOFDPacket docnum=201374 [10:48:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 7B D2 07 01 A6 1D 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 32 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 88 00 00 00 F4 03 04 00 ED C8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9E 12 03 00 35 04 06 00 CD 28 8A 6E D3 DB 21 6A A7 18 D6 6A C5 25 [10:48:14]CheckFolder [10:48:14]dirname=/storage/ofd_packets [10:48:14]CheckFolder done [10:48:14]ProducePacketName [10:48:14]name=ofd_packets/00201374 [10:48:14]NVStorageSaveData ofd_packets/00201374 [10:48:14]File name is /storage/ofd_packets/00201374 [10:48:14]Write 301 bytes [10:48:14]NVStorageSaveData done [10:48:14]OFDSenderStorePacket done [10:48:14]KKMCreateOFDPacket done [10:48:14]NVStorageSaveData kkm_last_timestamp [10:48:14]File name is /storage/kkm_last_timestamp [10:48:14]Write 4 bytes [10:48:14]NVStorageSaveData done [10:48:14]ExternCall_PrintAddStr [10:48:14]wPrintStart [10:48:14]Write to MH i2c: 01 00 00 81 00 81 [10:48:14]Write i2c OK [10:48:14]MH_I2C_Read... [10:48:14]Read from MH i2c: 01 [10:48:14]MH_I2C_Read... [10:48:14]Read from MH i2c: 01 07 00 [10:48:14]MH_I2C_Read... [10:48:14]Read from MH i2c: 01 07 00 81 00 00 00 00 00 00 FF 0F 96 [10:48:14]RasterBufferAndPrint [10:48:14]line Счет N : (1)449123 [10:48:14]line ИНН: 02508201610067 [10:48:14]line Контрольно-Кассовый Чек [10:48:14]line ПРОДАЖА [10:48:14]line ТРК (МРК, ГНК) : 62 [10:48:14]line Товар: 2710124130 [10:48:14]line Аи-92-К-2 [10:48:14]line 14.950 * 66.90 [10:48:14]line = 1000.16 [10:48:14]line НДС 12% НСП 1% [10:48:14]line > о реализуемом товаре [10:48:14]line ОКРУГЛЕНИЕ: -0.16 [10:48:14]line ИТОГО: 1000.00 [10:48:14]line Внесено: 1000.00 [10:48:14]line СДАЧА: 0.00 [10:48:14]line НСП 1% : 8.85 [10:48:14]line НДС 12% : 106.21 [10:48:14]line Наличными: 1000.00 [10:48:14]line Безнал.: 0.00 [10:48:14]line Место: АЗС № 171 "Партнер Нефть" [10:48:14]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:48:14]line СНО: Общий режим [10:48:14]line Чек 136 26.10.2024 10:48 [10:48:14]line Смена: 543 ФФД: 1.0 [10:48:14]line ЗНМ: 0300000109 [10:48:14]line РНМ: 0000000000091777 [10:48:14]line Версия ККМ: 001 [10:48:14]line ФМ: 0000000000871756 [10:48:14]line ФД: 201374 [10:48:14]line ФПД: 225574004904923 [10:48:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T104813&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201374&fm=225574004904923&tin=02508201610067®Number=0000000000091777&sum=100000 [10:48:14]written 0, free lines is 4095 [10:48:14]OFD Sender: Processing packet 201374 [packets to send 112, broken 111] [10:48:14]ProducePacketName [10:48:14]name=ofd_packets/00201374 [10:48:14]OFD Sender: To server: pG, [10:48:14]CommunicateWithHost lk.salyk.kg:30040 [10:48:14]ConnectInit lk.salyk.kg [10:48:14]Connected sock=10 [10:48:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 7B D2 07 01 A6 1D 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 32 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 88 00 00 00 F4 03 04 00 ED C8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9E 12 03 00 35 04 06 00 CD 28 8A 6E D3 DB 21 6A A7 18 D6 6A C5 25 [10:48:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 29 B5 47 00 33 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 38 37 31 37 35 36 10 04 04 00 9E 12 03 00 F4 03 04 00 96 74 1C 67 B6 04 01 00 00 86 A4 38 EF 2A DD 61 E0 [10:48:15]CommunicateWithHost err = 0 [10:48:15]CheckOFDResponse [10:48:15]1017 (14) - 77093643461234 [10:48:15]1041 (16) - 0000000000871756 [10:48:15]1040 (4) - 201374 [10:48:15]1012 (4) - 26.10.2024 04:48 [10:48:15]1206 (1) - 0 [10:48:15]OFD Sender: Remove packet 201374 [10:48:15]ProducePacketName [10:48:15]name=ofd_packets/00201374 [10:48:15]NVStorageDeleteData [10:48:15]Write to MH i2c: 01 00 00 AC 00 AC [10:48:15]Write i2c OK [10:48:15]MH_I2C_Read... [10:48:15]Read from MH i2c: 01 [10:48:15]MH_I2C_Read... [10:48:15]Read from MH i2c: 01 07 00 [10:48:15]MH_I2C_Read... [10:48:15]Read from MH i2c: 01 07 00 AC 00 00 00 00 00 00 A4 0C 63 [10:48:15]RasterBufferAndPrint [10:48:15]line [10:48:15]line [10:48:15]line [10:48:15]line [10:48:15]line [10:48:15]written 0, free lines is 3242 [10:48:15]MH_Cut [10:48:15]Write to MH i2c: D1 01 00 B3 00 01 85 [10:48:15]Write i2c OK [10:48:15]MH_I2C_Read... [10:48:15]Read from MH i2c: D1 [10:48:15]MH_I2C_Read... [10:48:15]Read from MH i2c: D1 01 00 [10:48:15]MH_I2C_Read... [10:48:15]Read from MH i2c: D1 01 00 B3 00 00 84 [10:48:15]Write to MH i2c: 01 00 00 B4 00 B4 [10:48:15]Write i2c OK [10:48:15]MH_I2C_Read... [10:48:15]OFD Sender: No OFD packet to send [10:48:16]*** Cut start [10:48:16]*** Purtial cut [10:48:16]*** Stage 1: CUTSNS_PIN = 1 [10:48:16]Read from MH i2c: 01 [10:48:16]MH_I2C_Read... [10:48:16]*** Stop cut motor [10:48:16]*** Cut end [10:48:16]Read from MH i2c: 01 07 00 [10:48:16]MH_I2C_Read... [10:48:16]Read from MH i2c: 01 07 00 B4 00 00 00 00 00 00 FF 0F C9 [10:48:16]process_action close_receipt done [10:48:16]requested_data is exist [10:48:16]produce_requested_data [10:48:16]requested_item fm.sn is exist - process it [10:48:16]wFMCommunicate request_size=4 [10:48:16]MH_SAM_APDU [10:48:16]CAPDU: 80 11 00 00 [10:48:16]Write to MH i2c: E2 08 00 B5 00 80 11 00 00 00 00 00 00 2F [10:48:16]Write i2c OK [10:48:16]MH_I2C_Read... [10:48:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:16]Read from MH i2c: E2 [10:48:16]MH_I2C_Read... [10:48:16]Read from MH i2c: E2 17 00 [10:48:16]MH_I2C_Read... [10:48:16]Read from MH i2c: E2 17 00 B5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 84 [10:48:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:48:16]wFMCommunicate OK [10:48:16]requested_item fd.num is exist - process it [10:48:16]SAM_PROTO_GetFieldsCounters [10:48:16]wFMCommunicate request_size=4 [10:48:16]MH_SAM_APDU [10:48:16]CAPDU: 80 13 00 00 [10:48:16]Write to MH i2c: E2 08 00 B6 00 80 13 00 00 00 00 00 00 32 [10:48:16]Write i2c OK [10:48:16]MH_I2C_Read... [10:48:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:16]Read from MH i2c: E2 [10:48:16]MH_I2C_Read... [10:48:16]Read from MH i2c: E2 62 00 [10:48:16]MH_I2C_Read... [10:48:16]Read from MH i2c: E2 62 00 B6 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9E 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [10:48:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9E 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:16]wFMCommunicate OK [10:48:16]SAM_PROTO_GetFieldsCounters done [10:48:16]requested_item shift.num is exist - process it [10:48:16]requested_item shift.opened is exist - process it [10:48:16]req_shift_opened [10:48:16]FM_GetShiftState [10:48:16]SAM_PROTO_GetShiftState [10:48:16]wFMCommunicate request_size=4 [10:48:16]MH_SAM_APDU [10:48:16]CAPDU: 80 13 01 00 [10:48:16]Write to MH i2c: E2 08 00 B7 00 80 13 01 00 00 00 00 00 34 [10:48:16]Write i2c OK [10:48:16]MH_I2C_Read... [10:48:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:16]Read from MH i2c: E2 [10:48:16]MH_I2C_Read... [10:48:16]Read from MH i2c: E2 0E 00 [10:48:16]MH_I2C_Read... [10:48:16]Read from MH i2c: E2 0E 00 B7 00 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 43 [10:48:16]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:48:16]wFMCommunicate OK [10:48:16]SAM_PROTO_GetShiftState done [10:48:16]FM_GetShiftState done [10:48:16]req_shift_opened done [10:48:16]requested_item shift.open_date is exist - process it [10:48:16]req_shift_open_date [10:48:16]req_shift_open_date done [10:48:16]produce_requested_data done [10:48:16]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201374,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:48:16]process_action_free close_receipt [10:48:16]json_value_free [10:48:16]json_value_free done [10:48:16]process_json_proto returns [10:48:16]Send response to host [10:48:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201374,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:48:16]free response buf [10:48:16]execute_script done [10:48:16]execute_script returns [10:48:16]free content buf [10:48:16]Sock 6.Close socket [10:48:16]Sock 6.Thread stoped [10:48:20]OFD Sender: No OFD packet to send [10:48:25]OFD Sender: No OFD packet to send [10:48:30]OFD Sender: No OFD packet to send [10:48:35]OFD Sender: No OFD packet to send [10:48:40]OFD Sender: No OFD packet to send [10:48:45]OFD Sender: No OFD packet to send [10:48:50]OFD Sender: No OFD packet to send [10:48:55]OFD Sender: No OFD packet to send [10:49:00]OFD Sender: No OFD packet to send [10:49:05]OFD Sender: No OFD packet to send [10:49:10]OFD Sender: No OFD packet to send [10:49:15]OFD Sender: No OFD packet to send [10:49:20]OFD Sender: No OFD packet to send [10:49:25]OFD Sender: No OFD packet to send [10:49:30]OFD Sender: No OFD packet to send [10:49:35]OFD Sender: No OFD packet to send [10:49:40]OFD Sender: No OFD packet to send [10:49:45]OFD Sender: No OFD packet to send [10:49:50]OFD Sender: No OFD packet to send [10:49:55]OFD Sender: No OFD packet to send [10:50:00]OFD Sender: No OFD packet to send [10:50:05]OFD Sender: No OFD packet to send [10:50:10]OFD Sender: No OFD packet to send [10:50:14]accept exits with 9 [10:50:14]New connection [10:50:14]New thread 3066641764 created [10:50:14]Thread 3066498404 joined [10:50:14]Waiting for new connection... [10:50:14] Sock 9.Parse request [10:50:14]Sock 9.Check first char [10:50:14]Sock 9.First char is OK [10:50:14]request: POST /json_proto HTTP/1.0 [10:50:14]Method: POST [10:50:14]URL: /json_proto [10:50:14]Method is POST - this is cgi request [10:50:14]url: /json_proto [10:50:14]query_string will be loaded in cgi processing [10:50:14]execute_cgi json_proto POST (null) [10:50:14]execute_cgi path=json_proto method=POST [10:50:14]POST find Content-Length [10:50:14]Host: 172.17.63.195:8080 [10:50:14]Content-Length: 677 [10:50:14]Content-Type: application/json [10:50:14] [10:50:14]POST finish read [10:50:14]Found Content-Length = 677 [10:50:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:50:14]execute_script... [10:50: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)449125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:50:14]POST & json_proto [10:50:14]process_json_proto [10:50:14]json parsed OK: [10:50:14]protocol is kg_v1.0 [10:50:14]action value=close_receipt [10:50:14]process_action close_receipt [10:50:14]cmd_close_receipt [10:50:14]MH_GetDate [10:50:14]Write to MH i2c: F0 00 00 B8 00 A7 [10:50:14]Write i2c OK [10:50:14]MH_I2C_Read... [10:50:14]Read from MH i2c: F0 [10:50:14]MH_I2C_Read... [10:50:14]Read from MH i2c: F0 09 00 [10:50:14]MH_I2C_Read... [10:50:14]Read from MH i2c: F0 09 00 B8 00 00 66 C9 1C 67 68 46 19 67 90 [10:50:14]GetLastDocTimeStamp 1729939693 [10:50:14]current date 1729939814 [10:50:14]FM_GetShiftState [10:50:14]SAM_PROTO_GetShiftState [10:50:14]wFMCommunicate request_size=4 [10:50:14]MH_SAM_APDU [10:50:14]CAPDU: 80 13 01 00 [10:50:14]Write to MH i2c: E2 08 00 B9 00 80 13 01 00 00 00 00 00 36 [10:50:14]Write i2c OK [10:50:14]MH_I2C_Read... [10:50:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:14]Read from MH i2c: E2 [10:50:14]MH_I2C_Read... [10:50:14]Read from MH i2c: E2 0E 00 [10:50:14]MH_I2C_Read... [10:50:14]Read from MH i2c: E2 0E 00 B9 00 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 45 [10:50:14]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:50:14]wFMCommunicate OK [10:50:14]SAM_PROTO_GetShiftState done [10:50:14]FM_GetShiftState done [10:50:14]opened in 1729900879 [10:50:14]opened+sec_in_day 1729987279 [10:50:14]quantity*price = 20003 [10:50:14]sum+1 = 20004 [10:50:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 137 26.10.2024 10:50 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201375 ФПД: 112841192294109 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105015&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201375&fm=112841192294109&tin=02508201610067®Number=0000000000091777&sum=20000 [10:50:16]StoreToDocumentArchive [10:50:16]shift 543 fd 201375 [10:50:16]save to /storage/0543/doc_00201375 [10:50:16]save last doc name /storage/0543/doc_00201375 to /storage/kkm_last_doc_name [10:50:16]save OK [10:50:16]Clear old archive folders... [10:50:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:50:16]tlvbuf is 0177BAB0 [10:50:16]SAM_PROTO_ClearQueue [10:50:16]wFMCommunicate request_size=4 [10:50:16]MH_SAM_APDU [10:50:16]CAPDU: 80 09 00 00 [10:50:16]Write to MH i2c: E2 08 00 C6 00 80 09 00 00 00 00 00 00 38 [10:50:16]Write i2c OK [10:50:16]MH_I2C_Read... [10:50:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:16]Read from MH i2c: E2 [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: E2 03 00 [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: E2 03 00 C6 00 00 90 00 3A [10:50:16]RAPDU: 90 00 [10:50:16]wFMCommunicate OK [10:50:16]SAM_PROTO_ClearQueue done [10:50:16]KKMCreateOFDPacket [10:50:16]OFDProtocolAddRootSTLVToBuf [10:50:16]FM_MakeSignedData [10:50:16]FM_MakeSignedData [10:50:16]SAM_PROTO_SignData [10:50:16]wFMCommunicate request_size=4 [10:50:16]MH_SAM_APDU [10:50:16]CAPDU: 80 0D 01 02 [10:50:16]Write to MH i2c: E2 08 00 C7 00 80 0D 01 02 00 00 00 00 40 [10:50:16]Write i2c OK [10:50:16]MH_I2C_Read... [10:50:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:16]Read from MH i2c: E2 [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: E2 03 00 [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: E2 03 00 C7 00 00 90 00 3B [10:50:16]RAPDU: 90 00 [10:50:16]wFMCommunicate OK [10:50:16]wFMCommunicate request_size=255 [10:50:16]MH_SAM_APDU [10: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 89 00 00 00 F4 03 04 00 67 C9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9F 12 03 00 35 04 06 00 66 [10:50:16]Write to MH i2c: E2 02 01 C8 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 89 00 00 00 F4 03 04 00 67 C9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9F 12 03 00 35 04 06 00 66 00 00 0D [10:50:16]Write i2c OK [10:50:16]MH_I2C_Read... [10:50:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:16]Read from MH i2c: E2 [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: E2 03 00 [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: E2 03 00 C8 00 00 90 00 3C [10:50:16]RAPDU: 90 00 [10:50:16]wFMCommunicate OK [10:50:16]wFMCommunicate request_size=10 [10:50:16]MH_SAM_APDU [10:50:16]CAPDU: 80 0D 02 02 05 A0 E3 2E C6 DD [10:50:16]Write to MH i2c: E2 0D 00 C9 00 80 0D 02 02 05 00 A0 E3 2E C6 DD 00 00 A1 [10:50:16]Write i2c OK [10:50:16]MH_I2C_Read... [10:50:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:16]Read from MH i2c: E2 [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: E2 03 00 [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: E2 03 00 C9 00 00 90 00 3D [10:50:16]RAPDU: 90 00 [10:50:16]wFMCommunicate OK [10:50:16]wFMCommunicate request_size=4 [10:50:16]MH_SAM_APDU [10:50:16]CAPDU: 80 0D 03 02 [10:50:16]Write to MH i2c: E2 08 00 CA 00 80 0D 03 02 00 00 00 00 45 [10:50:16]Write i2c OK [10:50:16]MH_I2C_Read... [10:50:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:16]Read from MH i2c: E2 [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: E2 0B 00 [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: E2 0B 00 CA 00 00 49 23 85 3C DE 0C 48 DC 90 00 81 [10:50:16]RAPDU: 49 23 85 3C DE 0C 48 DC 90 00 [10:50:16]wFMCommunicate OK [10:50:16]SAM_PROTO_SignData done [10:50:16]FM_MakeSignedData done [10:50:16]CreateOFDProtocolMessage [10:50:16]wFMCommunicate request_size=4 [10:50:16]MH_SAM_APDU [10:50:16]CAPDU: 80 11 00 00 [10:50:16]Write to MH i2c: E2 08 00 CB 00 80 11 00 00 00 00 00 00 45 [10:50:16]Write i2c OK [10:50:16]MH_I2C_Read... [10:50:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:16]Read from MH i2c: E2 [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: E2 17 00 [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: E2 17 00 CB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9A [10:50:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:50:16]wFMCommunicate OK [10:50:16]CreateOFDProtocolMessage done [10:50:16]OFDSenderStorePacket 201375 [10:50:16]StoreOFDPacket docnum=201375 [10:50:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 83 B0 07 01 23 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 89 00 00 00 F4 03 04 00 67 C9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9F 12 03 00 35 04 06 00 66 A0 E3 2E C6 DD 49 23 85 3C DE 0C 48 DC [10:50:16]CheckFolder [10:50:16]dirname=/storage/ofd_packets [10:50:16]CheckFolder done [10:50:16]ProducePacketName [10:50:16]name=ofd_packets/00201375 [10:50:16]NVStorageSaveData ofd_packets/00201375 [10:50:16]File name is /storage/ofd_packets/00201375 [10:50:16]Write 301 bytes [10:50:16]NVStorageSaveData done [10:50:16]OFDSenderStorePacket done [10:50:16]KKMCreateOFDPacket done [10:50:16]NVStorageSaveData kkm_last_timestamp [10:50:16]File name is /storage/kkm_last_timestamp [10:50:16]Write 4 bytes [10:50:16]NVStorageSaveData done [10:50:16]ExternCall_PrintAddStr [10:50:16]wPrintStart [10:50:16]Write to MH i2c: 01 00 00 CC 00 CC [10:50:16]Write i2c OK [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: 01 [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: 01 07 00 [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: 01 07 00 CC 00 00 00 00 00 00 FF 0F E1 [10:50:16]RasterBufferAndPrint [10:50:16]line Счет N : (1)449125 [10:50:16]line ИНН: 02508201610067 [10:50:16]line Контрольно-Кассовый Чек [10:50:16]line ПРОДАЖА [10:50:16]line ТРК (МРК, ГНК) : 41 [10:50:16]line Товар: 2710124130 [10:50:16]line Аи-92-К-2 [10:50:16]line 2.990 * 66.90 [10:50:16]line = 200.03 [10:50:16]line НДС 12% НСП 1% [10:50:16]line > о реализуемом товаре [10:50:16]line ОКРУГЛЕНИЕ: -0.03 [10:50:16]line ИТОГО: 200.00 [10:50:16]line Внесено: 200.00 [10:50:16]line СДАЧА: 0.00 [10:50:16]line НСП 1% : 1.77 [10:50:16]line НДС 12% : 21.24 [10:50:16]line Наличными: 200.00 [10:50:16]line Безнал.: 0.00 [10:50:16]line Место: АЗС № 171 "Партнер Нефть" [10:50:16]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:50:16]line СНО: Общий режим [10:50:16]line Чек 137 26.10.2024 10:50 [10:50:16]line Смена: 543 ФФД: 1.0 [10:50:16]line ЗНМ: 0300000109 [10:50:16]line РНМ: 0000000000091777 [10:50:16]line Версия ККМ: 001 [10:50:16]line ФМ: 0000000000871756 [10:50:16]line ФД: 201375 [10:50:16]line ФПД: 112841192294109 [10:50:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105015&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201375&fm=112841192294109&tin=02508201610067®Number=0000000000091777&sum=20000 [10:50:16]OFD Sender: Processing packet 201375 [packets to send 112, broken 111] [10:50:16]ProducePacketName [10:50:16]name=ofd_packets/00201375 [10:50:16]OFD Sender: To server: pG, [10:50:16]CommunicateWithHost lk.salyk.kg:30040 [10:50:16]ConnectInit lk.salyk.kg [10:50:16]written 0, free lines is 4095 [10:50:17]Connected sock=10 [10:50:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 83 B0 07 01 23 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 89 00 00 00 F4 03 04 00 67 C9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9F 12 03 00 35 04 06 00 66 A0 E3 2E C6 DD 49 23 85 3C DE 0C 48 DC [10:50:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 80 0E 47 00 47 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9F 12 03 00 F4 03 04 00 10 75 1C 67 B6 04 01 00 00 91 15 CF 0B D7 1A 82 2F [10:50:17]CommunicateWithHost err = 0 [10:50:17]CheckOFDResponse [10:50:17]1017 (14) - 77093643461234 [10:50:17]1041 (16) - 0000000000871756 [10:50:17]1040 (4) - 201375 [10:50:17]1012 (4) - 26.10.2024 04:50 [10:50:17]1206 (1) - 0 [10:50:17]OFD Sender: Remove packet 201375 [10:50:17]ProducePacketName [10:50:17]name=ofd_packets/00201375 [10:50:17]NVStorageDeleteData [10:50:17]Write to MH i2c: 01 00 00 F7 00 F7 [10:50:17]Write i2c OK [10:50:17]MH_I2C_Read... [10:50:17]Read from MH i2c: 01 [10:50:17]MH_I2C_Read... [10:50:17]Read from MH i2c: 01 07 00 [10:50:17]MH_I2C_Read... [10:50:17]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 93 0C 9D [10:50:17]RasterBufferAndPrint [10:50:17]line [10:50:17]line [10:50:17]line [10:50:17]line [10:50:17]line [10:50:17]written 0, free lines is 3225 [10:50:17]MH_Cut [10:50:17]Write to MH i2c: D1 01 00 FE 00 01 D0 [10:50:17]Write i2c OK [10:50:17]MH_I2C_Read... [10:50:17]Read from MH i2c: D1 [10:50:17]MH_I2C_Read... [10:50:17]Read from MH i2c: D1 01 00 [10:50:17]MH_I2C_Read... [10:50:17]Read from MH i2c: D1 01 00 FE 00 00 CF [10:50:17]Write to MH i2c: 01 00 00 FF 00 FF [10:50:17]Write i2c OK [10:50:17]MH_I2C_Read... [10:50:17]OFD Sender: No OFD packet to send [10:50:18]*** Cut start [10:50:18]*** Purtial cut [10:50:18]*** Stage 1: CUTSNS_PIN = 1 [10:50:18]Read from MH i2c: 01 [10:50:18]MH_I2C_Read... [10:50:18]*** Stop cut motor [10:50:18]*** Cut end [10:50:18]Read from MH i2c: 01 07 00 [10:50:18]MH_I2C_Read... [10:50:18]Read from MH i2c: 01 07 00 FF 00 00 00 00 00 00 FF 0F 14 [10:50:18]process_action close_receipt done [10:50:18]requested_data is exist [10:50:18]produce_requested_data [10:50:18]requested_item fm.sn is exist - process it [10:50:18]wFMCommunicate request_size=4 [10:50:18]MH_SAM_APDU [10:50:18]CAPDU: 80 11 00 00 [10:50:18]Write to MH i2c: E2 08 00 00 01 80 11 00 00 00 00 00 00 7B [10:50:18]Write i2c OK [10:50:18]MH_I2C_Read... [10:50:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:18]Read from MH i2c: E2 [10:50:18]MH_I2C_Read... [10:50:18]Read from MH i2c: E2 17 00 [10:50:18]MH_I2C_Read... [10:50:18]Read from MH i2c: E2 17 00 00 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D0 [10:50:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:50:18]wFMCommunicate OK [10:50:18]requested_item fd.num is exist - process it [10:50:18]SAM_PROTO_GetFieldsCounters [10:50:18]wFMCommunicate request_size=4 [10:50:18]MH_SAM_APDU [10:50:18]CAPDU: 80 13 00 00 [10:50:18]Write to MH i2c: E2 08 00 01 01 80 13 00 00 00 00 00 00 7E [10:50:18]Write i2c OK [10:50:18]MH_I2C_Read... [10:50:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:18]Read from MH i2c: E2 [10:50:18]MH_I2C_Read... [10:50:18]Read from MH i2c: E2 62 00 [10:50:18]MH_I2C_Read... [10:50:18]Read from MH i2c: E2 62 00 01 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9F 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [10:50:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9F 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:50:18]wFMCommunicate OK [10:50:18]SAM_PROTO_GetFieldsCounters done [10:50:18]requested_item shift.num is exist - process it [10:50:18]requested_item shift.opened is exist - process it [10:50:18]req_shift_opened [10:50:18]FM_GetShiftState [10:50:18]SAM_PROTO_GetShiftState [10:50:18]wFMCommunicate request_size=4 [10:50:18]MH_SAM_APDU [10:50:18]CAPDU: 80 13 01 00 [10:50:18]Write to MH i2c: E2 08 00 02 01 80 13 01 00 00 00 00 00 80 [10:50:18]Write i2c OK [10:50:18]MH_I2C_Read... [10:50:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:18]Read from MH i2c: E2 [10:50:18]MH_I2C_Read... [10:50:18]Read from MH i2c: E2 0E 00 [10:50:18]MH_I2C_Read... [10:50:18]Read from MH i2c: E2 0E 00 02 01 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 8F [10:50:18]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:50:18]wFMCommunicate OK [10:50:18]SAM_PROTO_GetShiftState done [10:50:18]FM_GetShiftState done [10:50:18]req_shift_opened done [10:50:18]requested_item shift.open_date is exist - process it [10:50:18]req_shift_open_date [10:50:18]req_shift_open_date done [10:50:18]produce_requested_data done [10:50:18]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201375,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:50:18]process_action_free close_receipt [10:50:18]json_value_free [10:50:18]json_value_free done [10:50:18]process_json_proto returns [10:50:18]Send response to host [10:50:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201375,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:50:18]free response buf [10:50:18]execute_script done [10:50:18]execute_script returns [10:50:18]free content buf [10:50:18]Sock 9.Close socket [10:50:18]Sock 9.Thread stoped [10:50:22]OFD Sender: No OFD packet to send [10:50:23]accept exits with 7 [10:50:23]New connection [10:50:23]New thread 3066498404 created [10:50:23]Thread 3066641764 joined [10:50:23]Waiting for new connection... [10:50:23] Sock 7.Parse request [10:50:23]Sock 7.Check first char [10:50:23]Sock 7.First char is OK [10:50:23]request: POST /json_proto HTTP/1.0 [10:50:23]Method: POST [10:50:23]URL: /json_proto [10:50:23]Method is POST - this is cgi request [10:50:23]url: /json_proto [10:50:23]query_string will be loaded in cgi processing [10:50:23]execute_cgi json_proto POST (null) [10:50:23]execute_cgi path=json_proto method=POST [10:50:23]POST find Content-Length [10:50:23]Host: 172.17.63.195:8080 [10:50:23]Content-Length: 678 [10:50:23]Content-Type: application/json [10:50:23] [10:50:23]POST finish read [10:50:23]Found Content-Length = 678 [10:50:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [10:50:23]execute_script... [10:50:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [10:50:23]POST & json_proto [10:50:23]process_json_proto [10:50:23]json parsed OK: [10:50:23]protocol is kg_v1.0 [10:50:23]action value=close_receipt [10:50:23]process_action close_receipt [10:50:23]cmd_close_receipt [10:50:23]MH_GetDate [10:50:23]Write to MH i2c: F0 00 00 03 01 F3 [10:50:23]Write i2c OK [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: F0 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: F0 09 00 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: F0 09 00 03 01 00 6F C9 1C 67 68 46 19 67 E5 [10:50:23]GetLastDocTimeStamp 1729939815 [10:50:23]current date 1729939823 [10:50:23]FM_GetShiftState [10:50:23]SAM_PROTO_GetShiftState [10:50:23]wFMCommunicate request_size=4 [10:50:23]MH_SAM_APDU [10:50:23]CAPDU: 80 13 01 00 [10:50:23]Write to MH i2c: E2 08 00 04 01 80 13 01 00 00 00 00 00 82 [10:50:23]Write i2c OK [10:50:23]MH_I2C_Read... [10:50:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:23]Read from MH i2c: E2 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 0E 00 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 0E 00 04 01 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 91 [10:50:23]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:50:23]wFMCommunicate OK [10:50:23]SAM_PROTO_GetShiftState done [10:50:23]FM_GetShiftState done [10:50:23]opened in 1729900879 [10:50:23]opened+sec_in_day 1729987279 [10:50:23]quantity*price = 70044 [10:50:23]sum+1 = 70045 [10:50:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 138 26.10.2024 10:50 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201376 ФПД: 130421132452257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105023&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201376&fm=130421132452257&tin=02508201610067®Number=0000000000091777&sum=70000 [10:50:24]StoreToDocumentArchive [10:50:24]shift 543 fd 201376 [10:50:24]save to /storage/0543/doc_00201376 [10:50:24]save last doc name /storage/0543/doc_00201376 to /storage/kkm_last_doc_name [10:50:24]save OK [10:50:24]Clear old archive folders... [10:50:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:50:24]tlvbuf is 0180A370 [10:50:24]SAM_PROTO_ClearQueue [10:50:24]wFMCommunicate request_size=4 [10:50:24]MH_SAM_APDU [10:50:24]CAPDU: 80 09 00 00 [10:50:24]Write to MH i2c: E2 08 00 11 01 80 09 00 00 00 00 00 00 84 [10:50:24]Write i2c OK [10:50:24]MH_I2C_Read... [10:50:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:24]Read from MH i2c: E2 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 03 00 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 03 00 11 01 00 90 00 86 [10:50:24]RAPDU: 90 00 [10:50:24]wFMCommunicate OK [10:50:24]SAM_PROTO_ClearQueue done [10:50:24]KKMCreateOFDPacket [10:50:24]OFDProtocolAddRootSTLVToBuf [10:50:24]FM_MakeSignedData [10:50:24]FM_MakeSignedData [10:50:24]SAM_PROTO_SignData [10:50:24]wFMCommunicate request_size=4 [10:50:24]MH_SAM_APDU [10:50:24]CAPDU: 80 0D 01 02 [10:50:24]Write to MH i2c: E2 08 00 12 01 80 0D 01 02 00 00 00 00 8C [10:50:24]Write i2c OK [10:50:24]MH_I2C_Read... [10:50:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:24]Read from MH i2c: E2 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 03 00 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 03 00 12 01 00 90 00 87 [10:50:24]RAPDU: 90 00 [10:50:24]wFMCommunicate OK [10:50:24]wFMCommunicate request_size=255 [10:50:24]MH_SAM_APDU [10:50:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 8A 00 00 00 F4 03 04 00 6F C9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A0 12 03 00 35 04 06 00 76 [10:50:24]Write to MH i2c: E2 02 01 13 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 8A 00 00 00 F4 03 04 00 6F C9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A0 12 03 00 35 04 06 00 76 00 00 C1 [10:50:24]Write i2c OK [10:50:24]MH_I2C_Read... [10:50:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:24]Read from MH i2c: E2 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 03 00 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 03 00 13 01 00 90 00 88 [10:50:24]RAPDU: 90 00 [10:50:24]wFMCommunicate OK [10:50:24]wFMCommunicate request_size=10 [10:50:24]MH_SAM_APDU [10:50:24]CAPDU: 80 0D 02 02 05 9E 09 45 61 A1 [10:50:24]Write to MH i2c: E2 0D 00 14 01 80 0D 02 02 05 00 9E 09 45 61 A1 00 00 87 [10:50:24]Write i2c OK [10:50:24]MH_I2C_Read... [10:50:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:24]Read from MH i2c: E2 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 03 00 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 03 00 14 01 00 90 00 89 [10:50:24]RAPDU: 90 00 [10:50:24]wFMCommunicate OK [10:50:24]wFMCommunicate request_size=4 [10:50:24]MH_SAM_APDU [10:50:24]CAPDU: 80 0D 03 02 [10:50:24]Write to MH i2c: E2 08 00 15 01 80 0D 03 02 00 00 00 00 91 [10:50:24]Write i2c OK [10:50:24]MH_I2C_Read... [10:50:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:24]Read from MH i2c: E2 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 0B 00 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 0B 00 15 01 00 85 91 81 F2 A5 57 2E A7 90 00 EC [10:50:24]RAPDU: 85 91 81 F2 A5 57 2E A7 90 00 [10:50:24]wFMCommunicate OK [10:50:24]SAM_PROTO_SignData done [10:50:24]FM_MakeSignedData done [10:50:24]CreateOFDProtocolMessage [10:50:24]wFMCommunicate request_size=4 [10:50:24]MH_SAM_APDU [10:50:24]CAPDU: 80 11 00 00 [10:50:24]Write to MH i2c: E2 08 00 16 01 80 11 00 00 00 00 00 00 91 [10:50:24]Write i2c OK [10:50:24]MH_I2C_Read... [10:50:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:25]Read from MH i2c: E2 [10:50:25]MH_I2C_Read... [10:50:25]Read from MH i2c: E2 17 00 [10:50:25]MH_I2C_Read... [10:50:25]Read from MH i2c: E2 17 00 16 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E6 [10:50:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:50:25]wFMCommunicate OK [10:50:25]CreateOFDProtocolMessage done [10:50:25]OFDSenderStorePacket 201376 [10:50:25]StoreOFDPacket docnum=201376 [10:50:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 AC D8 07 01 6B CF 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 8A 00 00 00 F4 03 04 00 6F C9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A0 12 03 00 35 04 06 00 76 9E 09 45 61 A1 85 91 81 F2 A5 57 2E A7 [10:50:25]CheckFolder [10:50:25]dirname=/storage/ofd_packets [10:50:25]CheckFolder done [10:50:25]ProducePacketName [10:50:25]name=ofd_packets/00201376 [10:50:25]NVStorageSaveData ofd_packets/00201376 [10:50:25]File name is /storage/ofd_packets/00201376 [10:50:25]Write 301 bytes [10:50:25]NVStorageSaveData done [10:50:25]OFDSenderStorePacket done [10:50:25]KKMCreateOFDPacket done [10:50:25]NVStorageSaveData kkm_last_timestamp [10:50:25]File name is /storage/kkm_last_timestamp [10:50:25]Write 4 bytes [10:50:25]NVStorageSaveData done [10:50:25]ExternCall_PrintAddStr [10:50:25]wPrintStart [10:50:25]Write to MH i2c: 01 00 00 17 01 18 [10:50:25]Write i2c OK [10:50:25]MH_I2C_Read... [10:50:25]Read from MH i2c: 01 [10:50:25]MH_I2C_Read... [10:50:25]Read from MH i2c: 01 07 00 [10:50:25]MH_I2C_Read... [10:50:25]Read from MH i2c: 01 07 00 17 01 00 00 00 00 00 FF 0F 2D [10:50:25]RasterBufferAndPrint [10:50:25]line Счет N : (1)449124 [10:50:25]line ИНН: 02508201610067 [10:50:25]line Контрольно-Кассовый Чек [10:50:25]line ПРОДАЖА [10:50:25]line ТРК (МРК, ГНК) : 52 [10:50:25]line Товар: 2710124130 [10:50:25]line Аи-92-К-2 [10:50:25]line 10.470 * 66.90 [10:50:25]line = 700.44 [10:50:25]line НДС 12% НСП 1% [10:50:25]line > о реализуемом товаре [10:50:25]line ОКРУГЛЕНИЕ: -0.44 [10:50:25]line ИТОГО: 700.00 [10:50:25]line Внесено: 700.00 [10:50:25]line СДАЧА: 0.00 [10:50:25]line НСП 1% : 6.20 [10:50:25]line НДС 12% : 74.38 [10:50:25]line Наличными: 700.00 [10:50:25]line Безнал.: 0.00 [10:50:25]line Место: АЗС № 171 "Партнер Нефть" [10:50:25]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:50:25]line СНО: Общий режим [10:50:25]line Чек 138 26.10.2024 10:50 [10:50:25]line Смена: 543 ФФД: 1.0 [10:50:25]line ЗНМ: 0300000109 [10:50:25]line РНМ: 0000000000091777 [10:50:25]line Версия ККМ: 001 [10:50:25]line ФМ: 0000000000871756 [10:50:25]line ФД: 201376 [10:50:25]line ФПД: 130421132452257 [10:50:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105023&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201376&fm=130421132452257&tin=02508201610067®Number=0000000000091777&sum=70000 [10:50:25]OFD Sender: Processing packet 201376 [packets to send 112, broken 111] [10:50:25]ProducePacketName [10:50:25]name=ofd_packets/00201376 [10:50:25]OFD Sender: To server: pG, [10:50:25]CommunicateWithHost lk.salyk.kg:30040 [10:50:25]ConnectInit lk.salyk.kg [10:50:25]written 0, free lines is 4095 [10:50:25]Connected sock=10 [10:50:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 AC D8 07 01 6B CF 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 8A 00 00 00 F4 03 04 00 6F C9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A0 12 03 00 35 04 06 00 76 9E 09 45 61 A1 85 91 81 F2 A5 57 2E A7 [10:50:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 AE 32 47 00 CF 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A0 12 03 00 F4 03 04 00 18 75 1C 67 B6 04 01 00 00 BB 98 0B 87 BA 43 CB C8 [10:50:25]CommunicateWithHost err = 0 [10:50:25]CheckOFDResponse [10:50:25]1017 (14) - 77093643461234 [10:50:25]1041 (16) - 0000000000871756 [10:50:25]1040 (4) - 201376 [10:50:25]1012 (4) - 26.10.2024 04:50 [10:50:25]1206 (1) - 0 [10:50:25]OFD Sender: Remove packet 201376 [10:50:25]ProducePacketName [10:50:25]name=ofd_packets/00201376 [10:50:25]NVStorageDeleteData [10:50:25]Write to MH i2c: 01 00 00 42 01 43 [10:50:25]Write i2c OK [10:50:25]MH_I2C_Read... [10:50:25]Read from MH i2c: 01 [10:50:25]MH_I2C_Read... [10:50:25]Read from MH i2c: 01 07 00 [10:50:25]MH_I2C_Read... [10:50:25]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 99 0C EF [10:50:25]RasterBufferAndPrint [10:50:25]line [10:50:25]line [10:50:25]line [10:50:25]line [10:50:25]line [10:50:25]written 0, free lines is 3233 [10:50:25]MH_Cut [10:50:25]Write to MH i2c: D1 01 00 49 01 01 1C [10:50:25]Write i2c OK [10:50:25]MH_I2C_Read... [10:50:25]Read from MH i2c: D1 [10:50:25]MH_I2C_Read... [10:50:25]Read from MH i2c: D1 01 00 [10:50:25]MH_I2C_Read... [10:50:25]Read from MH i2c: D1 01 00 49 01 00 1B [10:50:25]Write to MH i2c: 01 00 00 4A 01 4B [10:50:25]Write i2c OK [10:50:25]MH_I2C_Read... [10:50:26]OFD Sender: No OFD packet to send [10:50:26]*** Cut start [10:50:26]*** Purtial cut [10:50:26]*** Stage 1: CUTSNS_PIN = 1 [10:50:26]Read from MH i2c: 01 [10:50:26]MH_I2C_Read... [10:50:26]*** Stop cut motor [10:50:26]*** Cut end [10:50:26]Read from MH i2c: 01 07 00 [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: 01 07 00 4A 01 00 00 00 00 00 FF 0F 60 [10:50:26]process_action close_receipt done [10:50:26]requested_data is exist [10:50:26]produce_requested_data [10:50:26]requested_item fm.sn is exist - process it [10:50:26]wFMCommunicate request_size=4 [10:50:26]MH_SAM_APDU [10:50:26]CAPDU: 80 11 00 00 [10:50:26]Write to MH i2c: E2 08 00 4B 01 80 11 00 00 00 00 00 00 C6 [10:50:26]Write i2c OK [10:50:26]MH_I2C_Read... [10:50:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:26]Read from MH i2c: E2 [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: E2 17 00 [10:50:26]MH_I2C_Read... [10:50:26]Read from MH i2c: E2 17 00 4B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1B [10:50:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:50:27]wFMCommunicate OK [10:50:27]requested_item fd.num is exist - process it [10:50:27]SAM_PROTO_GetFieldsCounters [10:50:27]wFMCommunicate request_size=4 [10:50:27]MH_SAM_APDU [10:50:27]CAPDU: 80 13 00 00 [10:50:27]Write to MH i2c: E2 08 00 4C 01 80 13 00 00 00 00 00 00 C9 [10:50:27]Write i2c OK [10:50:27]MH_I2C_Read... [10:50:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:27]Read from MH i2c: E2 [10:50:27]MH_I2C_Read... [10:50:27]Read from MH i2c: E2 62 00 [10:50:27]MH_I2C_Read... [10:50:27]Read from MH i2c: E2 62 00 4C 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A0 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [10:50:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A0 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:50:27]wFMCommunicate OK [10:50:27]SAM_PROTO_GetFieldsCounters done [10:50:27]requested_item shift.num is exist - process it [10:50:27]requested_item shift.opened is exist - process it [10:50:27]req_shift_opened [10:50:27]FM_GetShiftState [10:50:27]SAM_PROTO_GetShiftState [10:50:27]wFMCommunicate request_size=4 [10:50:27]MH_SAM_APDU [10:50:27]CAPDU: 80 13 01 00 [10:50:27]Write to MH i2c: E2 08 00 4D 01 80 13 01 00 00 00 00 00 CB [10:50:27]Write i2c OK [10:50:27]MH_I2C_Read... [10:50:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:27]Read from MH i2c: E2 [10:50:27]MH_I2C_Read... [10:50:27]Read from MH i2c: E2 0E 00 [10:50:27]MH_I2C_Read... [10:50:27]Read from MH i2c: E2 0E 00 4D 01 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 DA [10:50:27]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:50:27]wFMCommunicate OK [10:50:27]SAM_PROTO_GetShiftState done [10:50:27]FM_GetShiftState done [10:50:27]req_shift_opened done [10:50:27]requested_item shift.open_date is exist - process it [10:50:27]req_shift_open_date [10:50:27]req_shift_open_date done [10:50:27]produce_requested_data done [10:50:27]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201376,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:50:27]process_action_free close_receipt [10:50:27]json_value_free [10:50:27]json_value_free done [10:50:27]process_json_proto returns [10:50:27]Send response to host [10:50:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201376,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:50:27]free response buf [10:50:27]execute_script done [10:50:27]execute_script returns [10:50:27]free content buf [10:50:27]Sock 7.Close socket [10:50:27]Sock 7.Thread stoped [10:50:31]OFD Sender: No OFD packet to send [10:50:36]OFD Sender: No OFD packet to send [10:50:41]OFD Sender: No OFD packet to send [10:50:46]OFD Sender: No OFD packet to send [10:50:51]OFD Sender: No OFD packet to send [10:50:56]OFD Sender: No OFD packet to send [10:51:01]OFD Sender: No OFD packet to send [10:51:06]OFD Sender: No OFD packet to send [10:51:11]OFD Sender: No OFD packet to send [10:51:16]OFD Sender: No OFD packet to send [10:51:20]accept exits with 9 [10:51:20]New connection [10:51:20]New thread 3066641764 created [10:51:20]Thread 3066498404 joined [10:51:20]Waiting for new connection... [10:51:20] Sock 9.Parse request [10:51:20]Sock 9.Check first char [10:51:20]Sock 9.First char is OK [10:51:20]request: POST /json_proto HTTP/1.0 [10:51:20]Method: POST [10:51:20]URL: /json_proto [10:51:20]Method is POST - this is cgi request [10:51:20]url: /json_proto [10:51:20]query_string will be loaded in cgi processing [10:51:20]execute_cgi json_proto POST (null) [10:51:20]execute_cgi path=json_proto method=POST [10:51:20]POST find Content-Length [10:51:20]Host: 172.17.63.195:8080 [10:51:20]Content-Length: 682 [10:51:20]Content-Type: application/json [10:51:20] [10:51:20]POST finish read [10:51:20]Found Content-Length = 682 [10:51:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:51:20]execute_script... [10:51: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)449126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:51:20]POST & json_proto [10:51:20]process_json_proto [10:51:20]json parsed OK: [10:51:20]protocol is kg_v1.0 [10:51:20]action value=close_receipt [10:51:20]process_action close_receipt [10:51:20]cmd_close_receipt [10:51:20]MH_GetDate [10:51:20]Write to MH i2c: F0 00 00 4E 01 3E [10:51:20]Write i2c OK [10:51:20]MH_I2C_Read... [10:51:20]Read from MH i2c: F0 [10:51:20]MH_I2C_Read... [10:51:20]Read from MH i2c: F0 09 00 [10:51:20]MH_I2C_Read... [10:51:20]Read from MH i2c: F0 09 00 4E 01 00 A8 C9 1C 67 68 46 19 67 69 [10:51:20]GetLastDocTimeStamp 1729939823 [10:51:20]current date 1729939880 [10:51:20]FM_GetShiftState [10:51:20]SAM_PROTO_GetShiftState [10:51:20]wFMCommunicate request_size=4 [10:51:20]MH_SAM_APDU [10:51:20]CAPDU: 80 13 01 00 [10:51:20]Write to MH i2c: E2 08 00 4F 01 80 13 01 00 00 00 00 00 CD [10:51:20]Write i2c OK [10:51:20]MH_I2C_Read... [10:51:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:20]Read from MH i2c: E2 [10:51:20]MH_I2C_Read... [10:51:20]Read from MH i2c: E2 0E 00 [10:51:20]MH_I2C_Read... [10:51:20]Read from MH i2c: E2 0E 00 4F 01 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 DC [10:51:20]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:51:20]wFMCommunicate OK [10:51:20]SAM_PROTO_GetShiftState done [10:51:20]FM_GetShiftState done [10:51:20]opened in 1729900879 [10:51:20]opened+sec_in_day 1729987279 [10:51:20]quantity*price = 100015 [10:51:20]sum+1 = 100017 [10:51:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 139 26.10.2024 10:51 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201377 ФПД: 29074111680137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105120&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201377&fm=29074111680137&tin=02508201610067®Number=0000000000091777&sum=100000 [10:51:21]StoreToDocumentArchive [10:51:21]shift 543 fd 201377 [10:51:21]save to /storage/0543/doc_00201377 [10:51:21]save last doc name /storage/0543/doc_00201377 to /storage/kkm_last_doc_name [10:51:21]save OK [10:51:21]Clear old archive folders... [10:51:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:51:21]tlvbuf is 0181CE20 [10:51:21]SAM_PROTO_ClearQueue [10:51:21]wFMCommunicate request_size=4 [10:51:21]MH_SAM_APDU [10:51:21]CAPDU: 80 09 00 00 [10:51:21]Write to MH i2c: E2 08 00 5C 01 80 09 00 00 00 00 00 00 CF [10:51:21]Write i2c OK [10:51:21]MH_I2C_Read... [10:51:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:51:21]Read from MH i2c: E2 [10:51:21]MH_I2C_Read... [10:51:21]Read from MH i2c: E2 03 00 [10:51:21]MH_I2C_Read... [10:51:21]Read from MH i2c: E2 03 00 5C 01 00 90 00 D1 [10:51:21]RAPDU: 90 00 [10:51:21]wFMCommunicate OK [10:51:21]SAM_PROTO_ClearQueue done [10:51:21]KKMCreateOFDPacket [10:51:21]OFDProtocolAddRootSTLVToBuf [10:51:21]FM_MakeSignedData [10:51:21]FM_MakeSignedData [10:51:21]SAM_PROTO_SignData [10:51:21]wFMCommunicate request_size=4 [10:51:21]MH_SAM_APDU [10:51:21]CAPDU: 80 0D 01 02 [10:51:21]Write to MH i2c: E2 08 00 5D 01 80 0D 01 02 00 00 00 00 D7 [10:51:21]Write i2c OK [10:51:21]MH_I2C_Read... [10:51:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:51:21]Read from MH i2c: E2 [10:51:21]MH_I2C_Read... [10:51:21]Read from MH i2c: E2 03 00 [10:51:21]MH_I2C_Read... [10:51:21]Read from MH i2c: E2 03 00 5D 01 00 90 00 D2 [10:51:21]RAPDU: 90 00 [10:51:21]wFMCommunicate OK [10:51:21]wFMCommunicate request_size=255 [10:51:21]MH_SAM_APDU [10:51: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 32 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 8B 00 00 00 F4 03 04 00 A8 C9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A1 12 03 00 35 04 06 00 1A [10:51:21]Write to MH i2c: E2 02 01 5E 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 32 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 8B 00 00 00 F4 03 04 00 A8 C9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A1 12 03 00 35 04 06 00 1A 00 00 D5 [10:51:21]Write i2c OK [10:51:21]MH_I2C_Read... [10:51:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:21]Read from MH i2c: E2 [10:51:21]MH_I2C_Read... [10:51:21]Read from MH i2c: E2 03 00 [10:51:21]MH_I2C_Read... [10:51:21]Read from MH i2c: E2 03 00 5E 01 00 90 00 D3 [10:51:21]RAPDU: 90 00 [10:51:21]wFMCommunicate OK [10:51:21]wFMCommunicate request_size=10 [10:51:21]MH_SAM_APDU [10:51:21]CAPDU: 80 0D 02 02 05 71 58 19 4E 89 [10:51:21]Write to MH i2c: E2 0D 00 5F 01 80 0D 02 02 05 00 71 58 19 4E 89 00 00 9D [10:51:21]Write i2c OK [10:51:21]MH_I2C_Read... [10:51:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:21]Read from MH i2c: E2 [10:51:21]MH_I2C_Read... [10:51:21]Read from MH i2c: E2 03 00 [10:51:21]MH_I2C_Read... [10:51:21]Read from MH i2c: E2 03 00 5F 01 00 90 00 D4 [10:51:21]RAPDU: 90 00 [10:51:21]wFMCommunicate OK [10:51:21]wFMCommunicate request_size=4 [10:51:21]MH_SAM_APDU [10:51:21]CAPDU: 80 0D 03 02 [10:51:21]Write to MH i2c: E2 08 00 60 01 80 0D 03 02 00 00 00 00 DC [10:51:21]Write i2c OK [10:51:21]MH_I2C_Read... [10:51:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:51:22]Read from MH i2c: E2 [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: E2 0B 00 [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: E2 0B 00 60 01 00 51 D9 49 B3 57 79 97 C0 90 00 2A [10:51:22]RAPDU: 51 D9 49 B3 57 79 97 C0 90 00 [10:51:22]wFMCommunicate OK [10:51:22]SAM_PROTO_SignData done [10:51:22]FM_MakeSignedData done [10:51:22]CreateOFDProtocolMessage [10:51:22]wFMCommunicate request_size=4 [10:51:22]MH_SAM_APDU [10:51:22]CAPDU: 80 11 00 00 [10:51:22]Write to MH i2c: E2 08 00 61 01 80 11 00 00 00 00 00 00 DC [10:51:22]Write i2c OK [10:51:22]MH_I2C_Read... [10:51:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:22]Read from MH i2c: E2 [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: E2 17 00 [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: E2 17 00 61 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 31 [10:51:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:51:22]wFMCommunicate OK [10:51:22]CreateOFDProtocolMessage done [10:51:22]OFDSenderStorePacket 201377 [10:51:22]StoreOFDPacket docnum=201377 [10:51:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8E 69 07 01 FD F1 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 32 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 8B 00 00 00 F4 03 04 00 A8 C9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A1 12 03 00 35 04 06 00 1A 71 58 19 4E 89 51 D9 49 B3 57 79 97 C0 [10:51:22]CheckFolder [10:51:22]dirname=/storage/ofd_packets [10:51:22]CheckFolder done [10:51:22]ProducePacketName [10:51:22]name=ofd_packets/00201377 [10:51:22]NVStorageSaveData ofd_packets/00201377 [10:51:22]File name is /storage/ofd_packets/00201377 [10:51:22]Write 301 bytes [10:51:22]NVStorageSaveData done [10:51:22]OFDSenderStorePacket done [10:51:22]KKMCreateOFDPacket done [10:51:22]NVStorageSaveData kkm_last_timestamp [10:51:22]File name is /storage/kkm_last_timestamp [10:51:22]Write 4 bytes [10:51:22]NVStorageSaveData done [10:51:22]ExternCall_PrintAddStr [10:51:22]wPrintStart [10:51:22]Write to MH i2c: 01 00 00 62 01 63 [10:51:22]Write i2c OK [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: 01 [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: 01 07 00 [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: 01 07 00 62 01 00 00 00 00 00 FF 0F 78 [10:51:22]RasterBufferAndPrint [10:51:22]line Счет N : (1)449126 [10:51:22]line ИНН: 02508201610067 [10:51:22]line Контрольно-Кассовый Чек [10:51:22]line ПРОДАЖА [10:51:22]line ТРК (МРК, ГНК) : 31 [10:51:22]line Товар: 2710124130 [10:51:22]line Аи-92-К-2 [10:51:22]line 14.950 * 66.90 [10:51:22]line = 1000.16 [10:51:22]line НДС 12% НСП 1% [10:51:22]line > о реализуемом товаре [10:51:22]line ОКРУГЛЕНИЕ: -0.16 [10:51:22]line ИТОГО: 1000.00 [10:51:22]line Внесено: 1000.00 [10:51:22]line СДАЧА: 0.00 [10:51:22]line НСП 1% : 8.85 [10:51:22]line НДС 12% : 106.21 [10:51:22]line Наличными: 1000.00 [10:51:22]line Безнал.: 0.00 [10:51:22]line Место: АЗС № 171 "Партнер Нефть" [10:51:22]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:51:22]line СНО: Общий режим [10:51:22]line Чек 139 26.10.2024 10:51 [10:51:22]line Смена: 543 ФФД: 1.0 [10:51:22]line ЗНМ: 0300000109 [10:51:22]line РНМ: 0000000000091777 [10:51:22]line Версия ККМ: 001 [10:51:22]line ФМ: 0000000000871756 [10:51:22]line ФД: 201377 [10:51:22]line ФПД: 29074111680137 [10:51:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105120&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201377&fm=29074111680137&tin=02508201610067®Number=0000000000091777&sum=100000 [10:51:22]OFD Sender: Processing packet 201377 [packets to send 112, broken 111] [10:51:22]ProducePacketName [10:51:22]name=ofd_packets/00201377 [10:51:22]OFD Sender: To server: pG, [10:51:22]CommunicateWithHost lk.salyk.kg:30040 [10:51:22]ConnectInit lk.salyk.kg [10:51:22]written 0, free lines is 4095 [10:51:22]Connected sock=10 [10:51:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8E 69 07 01 FD F1 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 32 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 8B 00 00 00 F4 03 04 00 A8 C9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A1 12 03 00 35 04 06 00 1A 71 58 19 4E 89 51 D9 49 B3 57 79 97 C0 [10:51:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 1F 40 47 00 E5 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A1 12 03 00 F4 03 04 00 51 75 1C 67 B6 04 01 00 00 B3 19 9A 0B 23 64 49 72 [10:51:22]CommunicateWithHost err = 0 [10:51:22]CheckOFDResponse [10:51:22]1017 (14) - 77093643461234 [10:51:22]1041 (16) - 0000000000871756 [10:51:22]1040 (4) - 201377 [10:51:22]1012 (4) - 26.10.2024 04:51 [10:51:22]1206 (1) - 0 [10:51:22]OFD Sender: Remove packet 201377 [10:51:22]ProducePacketName [10:51:22]name=ofd_packets/00201377 [10:51:22]NVStorageDeleteData [10:51:22]Write to MH i2c: 01 00 00 8D 01 8E [10:51:22]Write i2c OK [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: 01 [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: 01 07 00 [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: 01 07 00 8D 01 00 00 00 00 00 99 0C 3A [10:51:22]RasterBufferAndPrint [10:51:22]line [10:51:22]line [10:51:22]line [10:51:22]line [10:51:22]line [10:51:22]written 0, free lines is 3229 [10:51:22]MH_Cut [10:51:22]Write to MH i2c: D1 01 00 94 01 01 67 [10:51:22]Write i2c OK [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: D1 [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: D1 01 00 [10:51:22]MH_I2C_Read... [10:51:22]Read from MH i2c: D1 01 00 94 01 00 66 [10:51:22]Write to MH i2c: 01 00 00 95 01 96 [10:51:22]Write i2c OK [10:51:22]MH_I2C_Read... [10:51:23]OFD Sender: No OFD packet to send [10:51:23]*** Cut start [10:51:23]*** Purtial cut [10:51:23]*** Stage 1: CUTSNS_PIN = 1 [10:51:23]Read from MH i2c: 01 [10:51:23]MH_I2C_Read... [10:51:24]*** Stop cut motor [10:51:24]*** Cut end [10:51:24]Read from MH i2c: 01 07 00 [10:51:24]MH_I2C_Read... [10:51:24]Read from MH i2c: 01 07 00 95 01 00 00 00 00 00 FF 0F AB [10:51:24]process_action close_receipt done [10:51:24]requested_data is exist [10:51:24]produce_requested_data [10:51:24]requested_item fm.sn is exist - process it [10:51:24]wFMCommunicate request_size=4 [10:51:24]MH_SAM_APDU [10:51:24]CAPDU: 80 11 00 00 [10:51:24]Write to MH i2c: E2 08 00 96 01 80 11 00 00 00 00 00 00 11 [10:51:24]Write i2c OK [10:51:24]MH_I2C_Read... [10:51:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:24]Read from MH i2c: E2 [10:51:24]MH_I2C_Read... [10:51:24]Read from MH i2c: E2 17 00 [10:51:24]MH_I2C_Read... [10:51:24]Read from MH i2c: E2 17 00 96 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 66 [10:51:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:51:24]wFMCommunicate OK [10:51:24]requested_item fd.num is exist - process it [10:51:24]SAM_PROTO_GetFieldsCounters [10:51:24]wFMCommunicate request_size=4 [10:51:24]MH_SAM_APDU [10:51:24]CAPDU: 80 13 00 00 [10:51:24]Write to MH i2c: E2 08 00 97 01 80 13 00 00 00 00 00 00 14 [10:51:24]Write i2c OK [10:51:24]MH_I2C_Read... [10:51:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:24]Read from MH i2c: E2 [10:51:24]MH_I2C_Read... [10:51:24]Read from MH i2c: E2 62 00 [10:51:24]MH_I2C_Read... [10:51:24]Read from MH i2c: E2 62 00 97 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A1 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [10:51:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A1 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:51:24]wFMCommunicate OK [10:51:24]SAM_PROTO_GetFieldsCounters done [10:51:24]requested_item shift.num is exist - process it [10:51:24]requested_item shift.opened is exist - process it [10:51:24]req_shift_opened [10:51:24]FM_GetShiftState [10:51:24]SAM_PROTO_GetShiftState [10:51:24]wFMCommunicate request_size=4 [10:51:24]MH_SAM_APDU [10:51:24]CAPDU: 80 13 01 00 [10:51:24]Write to MH i2c: E2 08 00 98 01 80 13 01 00 00 00 00 00 16 [10:51:24]Write i2c OK [10:51:24]MH_I2C_Read... [10:51:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:24]Read from MH i2c: E2 [10:51:24]MH_I2C_Read... [10:51:24]Read from MH i2c: E2 0E 00 [10:51:24]MH_I2C_Read... [10:51:24]Read from MH i2c: E2 0E 00 98 01 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 25 [10:51:24]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:51:24]wFMCommunicate OK [10:51:24]SAM_PROTO_GetShiftState done [10:51:24]FM_GetShiftState done [10:51:24]req_shift_opened done [10:51:24]requested_item shift.open_date is exist - process it [10:51:24]req_shift_open_date [10:51:24]req_shift_open_date done [10:51:24]produce_requested_data done [10:51:24]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201377,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:51:24]process_action_free close_receipt [10:51:24]json_value_free [10:51:24]json_value_free done [10:51:24]process_json_proto returns [10:51:24]Send response to host [10:51:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201377,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:51:24]free response buf [10:51:24]execute_script done [10:51:24]execute_script returns [10:51:24]free content buf [10:51:24]Sock 9.Close socket [10:51:24]Sock 9.Thread stoped [10:51:28]OFD Sender: No OFD packet to send [10:51:33]OFD Sender: No OFD packet to send [10:51:38]OFD Sender: No OFD packet to send [10:51:43]OFD Sender: No OFD packet to send [10:51:48]OFD Sender: No OFD packet to send [10:51:53]OFD Sender: No OFD packet to send [10:51:58]OFD Sender: No OFD packet to send [10:52:03]OFD Sender: No OFD packet to send [10:52:08]OFD Sender: No OFD packet to send [10:52:13]OFD Sender: No OFD packet to send [10:52:18]OFD Sender: No OFD packet to send [10:52:23]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:33]OFD Sender: No OFD packet to send [10:52:38]OFD Sender: No OFD packet to send [10:52:43]OFD Sender: No OFD packet to send [10:52:48]OFD Sender: No OFD packet to send [10:52:53]OFD Sender: No OFD packet to send [10:52:58]OFD Sender: No OFD packet to send [10:53:03]OFD Sender: No OFD packet to send [10:53:08]OFD Sender: No OFD packet to send [10:53:13]OFD Sender: No OFD packet to send [10:53:17]accept exits with 7 [10:53:17]New connection [10:53:17]New thread 3066498404 created [10:53:17]Thread 3066641764 joined [10:53:17]Waiting for new connection... [10:53:17] Sock 7.Parse request [10:53:17]Sock 7.Check first char [10:53:17]Sock 7.First char is OK [10:53:17]request: POST /json_proto HTTP/1.0 [10:53:17]Method: POST [10:53:17]URL: /json_proto [10:53:17]Method is POST - this is cgi request [10:53:17]url: /json_proto [10:53:17]query_string will be loaded in cgi processing [10:53:17]execute_cgi json_proto POST (null) [10:53:17]execute_cgi path=json_proto method=POST [10:53:17]POST find Content-Length [10:53:17]Host: 172.17.63.195:8080 [10:53:17]Content-Length: 682 [10:53:17]Content-Type: application/json [10:53:17] [10:53:17]POST finish read [10:53:17]Found Content-Length = 682 [10:53:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:53:17]execute_script... [10: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)449127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:53:17]POST & json_proto [10:53:17]process_json_proto [10:53:17]json parsed OK: [10:53:17]protocol is kg_v1.0 [10:53:17]action value=close_receipt [10:53:17]process_action close_receipt [10:53:17]cmd_close_receipt [10:53:17]MH_GetDate [10:53:17]Write to MH i2c: F0 00 00 99 01 89 [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: F0 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: F0 09 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: F0 09 00 99 01 00 1D CA 1C 67 68 46 19 67 2A [10:53:17]GetLastDocTimeStamp 1729939880 [10:53:17]current date 1729939997 [10:53:17]FM_GetShiftState [10:53:17]SAM_PROTO_GetShiftState [10:53:17]wFMCommunicate request_size=4 [10:53:17]MH_SAM_APDU [10:53:17]CAPDU: 80 13 01 00 [10:53:17]Write to MH i2c: E2 08 00 9A 01 80 13 01 00 00 00 00 00 18 [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:17]Read from MH i2c: E2 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 0E 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 0E 00 9A 01 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 27 [10:53:17]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:53:17]wFMCommunicate OK [10:53:17]SAM_PROTO_GetShiftState done [10:53:17]FM_GetShiftState done [10:53:17]opened in 1729900879 [10:53:17]opened+sec_in_day 1729987279 [10:53:17]quantity*price = 100015 [10:53:17]sum+1 = 100017 [10:53:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 140 26.10.2024 10:53 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201378 ФПД: 42698226310318 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105317&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201378&fm=42698226310318&tin=02508201610067®Number=0000000000091777&sum=100000 [10:53:18]StoreToDocumentArchive [10:53:18]shift 543 fd 201378 [10:53:18]save to /storage/0543/doc_00201378 [10:53:18]save last doc name /storage/0543/doc_00201378 to /storage/kkm_last_doc_name [10:53:18]save OK [10:53:18]Clear old archive folders... [10:53:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:53:18]tlvbuf is 0177FAA0 [10:53:18]SAM_PROTO_ClearQueue [10:53:18]wFMCommunicate request_size=4 [10:53:18]MH_SAM_APDU [10:53:18]CAPDU: 80 09 00 00 [10:53:18]Write to MH i2c: E2 08 00 A7 01 80 09 00 00 00 00 00 00 1A [10:53:18]Write i2c OK [10:53:18]MH_I2C_Read... [10:53:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:18]Read from MH i2c: E2 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: E2 03 00 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: E2 03 00 A7 01 00 90 00 1C [10:53:18]RAPDU: 90 00 [10:53:18]wFMCommunicate OK [10:53:18]SAM_PROTO_ClearQueue done [10:53:18]KKMCreateOFDPacket [10:53:18]OFDProtocolAddRootSTLVToBuf [10:53:18]FM_MakeSignedData [10:53:18]FM_MakeSignedData [10:53:18]SAM_PROTO_SignData [10:53:18]wFMCommunicate request_size=4 [10:53:18]MH_SAM_APDU [10:53:18]CAPDU: 80 0D 01 02 [10:53:18]Write to MH i2c: E2 08 00 A8 01 80 0D 01 02 00 00 00 00 22 [10:53:18]Write i2c OK [10:53:18]MH_I2C_Read... [10:53:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:18]Read from MH i2c: E2 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: E2 03 00 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: E2 03 00 A8 01 00 90 00 1D [10:53:18]RAPDU: 90 00 [10:53:18]wFMCommunicate OK [10:53:18]wFMCommunicate request_size=255 [10:53:18]MH_SAM_APDU [10:53: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 32 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 8C 00 00 00 F4 03 04 00 1D CA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A2 12 03 00 35 04 06 00 26 [10:53:18]Write to MH i2c: E2 02 01 A9 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 32 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 8C 00 00 00 F4 03 04 00 1D CA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A2 12 03 00 35 04 06 00 26 00 00 A4 [10:53:18]Write i2c OK [10:53:18]MH_I2C_Read... [10:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:19]Read from MH i2c: E2 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 03 00 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 03 00 A9 01 00 90 00 1E [10:53:19]RAPDU: 90 00 [10:53:19]wFMCommunicate OK [10:53:19]wFMCommunicate request_size=10 [10:53:19]MH_SAM_APDU [10:53:19]CAPDU: 80 0D 02 02 05 D5 74 9C 9C AE [10:53:19]Write to MH i2c: E2 0D 00 AA 01 80 0D 02 02 05 00 D5 74 9C 9C AE 00 00 5E [10:53:19]Write i2c OK [10:53:19]MH_I2C_Read... [10:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:19]Read from MH i2c: E2 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 03 00 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 03 00 AA 01 00 90 00 1F [10:53:19]RAPDU: 90 00 [10:53:19]wFMCommunicate OK [10:53:19]wFMCommunicate request_size=4 [10:53:19]MH_SAM_APDU [10:53:19]CAPDU: 80 0D 03 02 [10:53:19]Write to MH i2c: E2 08 00 AB 01 80 0D 03 02 00 00 00 00 27 [10:53:19]Write i2c OK [10:53:19]MH_I2C_Read... [10:53:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:19]Read from MH i2c: E2 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 0B 00 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 0B 00 AB 01 00 14 41 46 33 65 5A D3 B3 90 00 3B [10:53:19]RAPDU: 14 41 46 33 65 5A D3 B3 90 00 [10:53:19]wFMCommunicate OK [10:53:19]SAM_PROTO_SignData done [10:53:19]FM_MakeSignedData done [10:53:19]CreateOFDProtocolMessage [10:53:19]wFMCommunicate request_size=4 [10:53:19]MH_SAM_APDU [10:53:19]CAPDU: 80 11 00 00 [10:53:19]Write to MH i2c: E2 08 00 AC 01 80 11 00 00 00 00 00 00 27 [10:53:19]Write i2c OK [10:53:19]MH_I2C_Read... [10:53:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:19]Read from MH i2c: E2 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 17 00 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 17 00 AC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7C [10:53:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:53:19]wFMCommunicate OK [10:53:19]CreateOFDProtocolMessage done [10:53:19]OFDSenderStorePacket 201378 [10:53:19]StoreOFDPacket docnum=201378 [10:53:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 51 6E 07 01 A3 DF 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 32 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 8C 00 00 00 F4 03 04 00 1D CA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A2 12 03 00 35 04 06 00 26 D5 74 9C 9C AE 14 41 46 33 65 5A D3 B3 [10:53:19]CheckFolder [10:53:19]dirname=/storage/ofd_packets [10:53:19]CheckFolder done [10:53:19]ProducePacketName [10:53:19]name=ofd_packets/00201378 [10:53:19]NVStorageSaveData ofd_packets/00201378 [10:53:19]File name is /storage/ofd_packets/00201378 [10:53:19]Write 301 bytes [10:53:19]NVStorageSaveData done [10:53:19]OFDSenderStorePacket done [10:53:19]KKMCreateOFDPacket done [10:53:19]NVStorageSaveData kkm_last_timestamp [10:53:19]File name is /storage/kkm_last_timestamp [10:53:19]Write 4 bytes [10:53:19]NVStorageSaveData done [10:53:19]ExternCall_PrintAddStr [10:53:19]wPrintStart [10:53:19]Write to MH i2c: 01 00 00 AD 01 AE [10:53:19]Write i2c OK [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: 01 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: 01 07 00 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: 01 07 00 AD 01 00 00 00 00 00 FF 0F C3 [10:53:19]RasterBufferAndPrint [10:53:19]line Счет N : (1)449127 [10:53:19]line ИНН: 02508201610067 [10:53:19]line Контрольно-Кассовый Чек [10:53:19]line ПРОДАЖА [10:53:19]line ТРК (МРК, ГНК) : 41 [10:53:19]line Товар: 2710124130 [10:53:19]line Аи-92-К-2 [10:53:19]line 14.950 * 66.90 [10:53:19]line = 1000.16 [10:53:19]line НДС 12% НСП 1% [10:53:19]line > о реализуемом товаре [10:53:19]line ОКРУГЛЕНИЕ: -0.16 [10:53:19]line ИТОГО: 1000.00 [10:53:19]line Внесено: 1000.00 [10:53:19]line СДАЧА: 0.00 [10:53:19]line НСП 1% : 8.85 [10:53:19]line НДС 12% : 106.21 [10:53:19]line Наличными: 1000.00 [10:53:19]line Безнал.: 0.00 [10:53:19]line Место: АЗС № 171 "Партнер Нефть" [10:53:19]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:53:19]line СНО: Общий режим [10:53:19]line Чек 140 26.10.2024 10:53 [10:53:19]line Смена: 543 ФФД: 1.0 [10:53:19]line ЗНМ: 0300000109 [10:53:19]line РНМ: 0000000000091777 [10:53:19]line Версия ККМ: 001 [10:53:19]line ФМ: 0000000000871756 [10:53:19]line ФД: 201378 [10:53:19]line ФПД: 42698226310318 [10:53:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105317&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201378&fm=42698226310318&tin=02508201610067®Number=0000000000091777&sum=100000 [10:53:19]OFD Sender: Processing packet 201378 [packets to send 112, broken 111] [10:53:19]ProducePacketName [10:53:19]name=ofd_packets/00201378 [10:53:19]OFD Sender: To server: pG, [10:53:19]CommunicateWithHost lk.salyk.kg:30040 [10:53:19]ConnectInit lk.salyk.kg [10:53:19]written 0, free lines is 4095 [10:53:19]Connected sock=10 [10:53:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 51 6E 07 01 A3 DF 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 32 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 8C 00 00 00 F4 03 04 00 1D CA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A2 12 03 00 35 04 06 00 26 D5 74 9C 9C AE 14 41 46 33 65 5A D3 B3 [10:53:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 FB 4F 47 00 32 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A2 12 03 00 F4 03 04 00 C7 75 1C 67 B6 04 01 00 00 70 34 C9 89 3C 5C CF F8 [10:53:19]CommunicateWithHost err = 0 [10:53:19]CheckOFDResponse [10:53:19]1017 (14) - 77093643461234 [10:53:19]1041 (16) - 0000000000871756 [10:53:19]1040 (4) - 201378 [10:53:19]1012 (4) - 26.10.2024 04:53 [10:53:19]1206 (1) - 0 [10:53:19]OFD Sender: Remove packet 201378 [10:53:19]ProducePacketName [10:53:19]name=ofd_packets/00201378 [10:53:19]NVStorageDeleteData [10:53:20]Write to MH i2c: 01 00 00 D8 01 D9 [10:53:20]Write i2c OK [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: 01 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: 01 07 00 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: 01 07 00 D8 01 00 00 00 00 00 93 0C 7F [10:53:20]RasterBufferAndPrint [10:53:20]line [10:53:20]line [10:53:20]line [10:53:20]line [10:53:20]line [10:53:20]written 0, free lines is 3223 [10:53:20]MH_Cut [10:53:20]Write to MH i2c: D1 01 00 DF 01 01 B2 [10:53:20]Write i2c OK [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: D1 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: D1 01 00 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: D1 01 00 DF 01 00 B1 [10:53:20]Write to MH i2c: 01 00 00 E0 01 E1 [10:53:20]Write i2c OK [10:53:20]MH_I2C_Read... [10:53:20]OFD Sender: No OFD packet to send [10:53:20]*** Cut start [10:53:20]*** Purtial cut [10:53:20]*** Stage 1: CUTSNS_PIN = 1 [10:53:21]Read from MH i2c: 01 [10:53:21]MH_I2C_Read... [10:53:21]*** Stop cut motor [10:53:21]*** Cut end [10:53:21]Read from MH i2c: 01 07 00 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: 01 07 00 E0 01 00 00 00 00 00 FF 0F F6 [10:53:21]process_action close_receipt done [10:53:21]requested_data is exist [10:53:21]produce_requested_data [10:53:21]requested_item fm.sn is exist - process it [10:53:21]wFMCommunicate request_size=4 [10:53:21]MH_SAM_APDU [10:53:21]CAPDU: 80 11 00 00 [10:53:21]Write to MH i2c: E2 08 00 E1 01 80 11 00 00 00 00 00 00 5C [10:53:21]Write i2c OK [10:53:21]MH_I2C_Read... [10:53:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:21]Read from MH i2c: E2 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: E2 17 00 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: E2 17 00 E1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B1 [10:53:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:53:21]wFMCommunicate OK [10:53:21]requested_item fd.num is exist - process it [10:53:21]SAM_PROTO_GetFieldsCounters [10:53:21]wFMCommunicate request_size=4 [10:53:21]MH_SAM_APDU [10:53:21]CAPDU: 80 13 00 00 [10:53:21]Write to MH i2c: E2 08 00 E2 01 80 13 00 00 00 00 00 00 5F [10:53:21]Write i2c OK [10:53:21]MH_I2C_Read... [10:53:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:21]Read from MH i2c: E2 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: E2 62 00 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: E2 62 00 E2 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A2 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [10:53:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A2 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:53:21]wFMCommunicate OK [10:53:21]SAM_PROTO_GetFieldsCounters done [10:53:21]requested_item shift.num is exist - process it [10:53:21]requested_item shift.opened is exist - process it [10:53:21]req_shift_opened [10:53:21]FM_GetShiftState [10:53:21]SAM_PROTO_GetShiftState [10:53:21]wFMCommunicate request_size=4 [10:53:21]MH_SAM_APDU [10:53:21]CAPDU: 80 13 01 00 [10:53:21]Write to MH i2c: E2 08 00 E3 01 80 13 01 00 00 00 00 00 61 [10:53:21]Write i2c OK [10:53:21]MH_I2C_Read... [10:53:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:21]Read from MH i2c: E2 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: E2 0E 00 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: E2 0E 00 E3 01 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 70 [10:53:21]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:53:21]wFMCommunicate OK [10:53:21]SAM_PROTO_GetShiftState done [10:53:21]FM_GetShiftState done [10:53:21]req_shift_opened done [10:53:21]requested_item shift.open_date is exist - process it [10:53:21]req_shift_open_date [10:53:21]req_shift_open_date done [10:53:21]produce_requested_data done [10:53:21]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201378,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:53:21]process_action_free close_receipt [10:53:21]json_value_free [10:53:21]json_value_free done [10:53:21]process_json_proto returns [10:53:21]Send response to host [10:53:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201378,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:53:21]free response buf [10:53:21]execute_script done [10:53:21]execute_script returns [10:53:21]free content buf [10:53:21]Sock 7.Close socket [10:53:21]Sock 7.Thread stoped [10:53:25]OFD Sender: No OFD packet to send [10:53:30]OFD Sender: No OFD packet to send [10:53:35]OFD Sender: No OFD packet to send [10:53:40]accept exits with 9 [10:53:40]New connection [10:53:40]New thread 3066641764 created [10:53:40]Thread 3066498404 joined [10:53:40]Waiting for new connection... [10:53:40] Sock 9.Parse request [10:53:40]Sock 9.Check first char [10:53:40]Sock 9.First char is OK [10:53:40]request: POST /json_proto HTTP/1.0 [10:53:40]Method: POST [10:53:40]URL: /json_proto [10:53:40]Method is POST - this is cgi request [10:53:40]url: /json_proto [10:53:40]query_string will be loaded in cgi processing [10:53:40]execute_cgi json_proto POST (null) [10:53:40]execute_cgi path=json_proto method=POST [10:53:40]POST find Content-Length [10:53:40]Host: 172.17.63.195:8080 [10:53:40]Content-Length: 677 [10:53:40]Content-Type: application/json [10:53:40] [10:53:40]POST finish read [10:53:40]Found Content-Length = 677 [10:53:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:53:40]execute_script... [10:53:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:53:40]POST & json_proto [10:53:40]process_json_proto [10:53:40]json parsed OK: [10:53:40]protocol is kg_v1.0 [10:53:40]action value=close_receipt [10:53:40]process_action close_receipt [10:53:40]cmd_close_receipt [10:53:40]MH_GetDate [10:53:40]Write to MH i2c: F0 00 00 E4 01 D4 [10:53:40]Write i2c OK [10:53:40]MH_I2C_Read... [10:53:40]Read from MH i2c: F0 [10:53:40]MH_I2C_Read... [10:53:40]Read from MH i2c: F0 09 00 [10:53:40]MH_I2C_Read... [10:53:40]Read from MH i2c: F0 09 00 E4 01 00 34 CA 1C 67 68 46 19 67 8C [10:53:40]GetLastDocTimeStamp 1729939997 [10:53:40]current date 1729940020 [10:53:40]FM_GetShiftState [10:53:40]SAM_PROTO_GetShiftState [10:53:40]wFMCommunicate request_size=4 [10:53:40]MH_SAM_APDU [10:53:40]CAPDU: 80 13 01 00 [10:53:40]Write to MH i2c: E2 08 00 E5 01 80 13 01 00 00 00 00 00 63 [10:53:40]Write i2c OK [10:53:40]MH_I2C_Read... [10:53:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:40]Read from MH i2c: E2 [10:53:40]MH_I2C_Read... [10:53:40]Read from MH i2c: E2 0E 00 [10:53:40]MH_I2C_Read... [10:53:40]Read from MH i2c: E2 0E 00 E5 01 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 72 [10:53:40]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:53:40]wFMCommunicate OK [10:53:40]SAM_PROTO_GetShiftState done [10:53:40]FM_GetShiftState done [10:53:40]opened in 1729900879 [10:53:40]opened+sec_in_day 1729987279 [10:53:40]quantity*price = 20003 [10:53:40]sum+1 = 20004 [10:53:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 141 26.10.2024 10:53 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201379 ФПД: 225460777066069 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105340&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201379&fm=225460777066069&tin=02508201610067®Number=0000000000091777&sum=20000 [10:53:41]StoreToDocumentArchive [10:53:41]shift 543 fd 201379 [10:53:41]save to /storage/0543/doc_00201379 [10:53:41]save last doc name /storage/0543/doc_00201379 to /storage/kkm_last_doc_name [10:53:41]save OK [10:53:41]Clear old archive folders... [10:53:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:53:41]tlvbuf is 01817E60 [10:53:41]SAM_PROTO_ClearQueue [10:53:41]wFMCommunicate request_size=4 [10:53:41]MH_SAM_APDU [10:53:41]CAPDU: 80 09 00 00 [10:53:41]Write to MH i2c: E2 08 00 F2 01 80 09 00 00 00 00 00 00 65 [10:53:41]Write i2c OK [10:53:41]MH_I2C_Read... [10:53:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:41]Read from MH i2c: E2 [10:53:41]MH_I2C_Read... [10:53:41]Read from MH i2c: E2 03 00 [10:53:41]MH_I2C_Read... [10:53:41]Read from MH i2c: E2 03 00 F2 01 00 90 00 67 [10:53:41]RAPDU: 90 00 [10:53:41]wFMCommunicate OK [10:53:41]SAM_PROTO_ClearQueue done [10:53:41]KKMCreateOFDPacket [10:53:41]OFDProtocolAddRootSTLVToBuf [10:53:41]FM_MakeSignedData [10:53:41]FM_MakeSignedData [10:53:41]SAM_PROTO_SignData [10:53:41]wFMCommunicate request_size=4 [10:53:41]MH_SAM_APDU [10:53:41]CAPDU: 80 0D 01 02 [10:53:41]Write to MH i2c: E2 08 00 F3 01 80 0D 01 02 00 00 00 00 6D [10:53:41]Write i2c OK [10:53:41]MH_I2C_Read... [10:53:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:41]Read from MH i2c: E2 [10:53:41]MH_I2C_Read... [10:53:41]Read from MH i2c: E2 03 00 [10:53:41]MH_I2C_Read... [10:53:41]Read from MH i2c: E2 03 00 F3 01 00 90 00 68 [10:53:41]RAPDU: 90 00 [10:53:41]wFMCommunicate OK [10:53:41]wFMCommunicate request_size=255 [10:53:41]MH_SAM_APDU [10:53:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 8D 00 00 00 F4 03 04 00 34 CA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A3 12 03 00 35 04 06 00 CD [10:53:41]Write to MH i2c: E2 02 01 F4 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 32 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 8D 00 00 00 F4 03 04 00 34 CA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A3 12 03 00 35 04 06 00 CD 00 00 77 [10:53:41]Write i2c OK [10:53:41]MH_I2C_Read... [10:53:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:41]Read from MH i2c: E2 [10:53:41]MH_I2C_Read... [10:53:41]Read from MH i2c: E2 03 00 [10:53:41]MH_I2C_Read... [10:53:41]Read from MH i2c: E2 03 00 F4 01 00 90 00 69 [10:53:41]RAPDU: 90 00 [10:53:41]wFMCommunicate OK [10:53:41]wFMCommunicate request_size=10 [10:53:41]MH_SAM_APDU [10:53:41]CAPDU: 80 0D 02 02 05 0E 2D 87 1E 55 [10:53:41]Write to MH i2c: E2 0D 00 F5 01 80 0D 02 02 05 00 0E 2D 87 1E 55 00 00 AF [10:53:41]Write i2c OK [10:53:41]MH_I2C_Read... [10:53:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:41]Read from MH i2c: E2 [10:53:41]MH_I2C_Read... [10:53:41]Read from MH i2c: E2 03 00 [10:53:41]MH_I2C_Read... [10:53:41]Read from MH i2c: E2 03 00 F5 01 00 90 00 6A [10:53:41]RAPDU: 90 00 [10:53:41]wFMCommunicate OK [10:53:41]wFMCommunicate request_size=4 [10:53:41]MH_SAM_APDU [10:53:41]CAPDU: 80 0D 03 02 [10:53:41]Write to MH i2c: E2 08 00 F6 01 80 0D 03 02 00 00 00 00 72 [10:53:41]Write i2c OK [10:53:41]MH_I2C_Read... [10:53:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:41]Read from MH i2c: E2 [10:53:41]MH_I2C_Read... [10:53:41]Read from MH i2c: E2 0B 00 [10:53:41]MH_I2C_Read... [10:53:41]Read from MH i2c: E2 0B 00 F6 01 00 E7 0E 8D CA A8 67 F9 01 90 00 C8 [10:53:41]RAPDU: E7 0E 8D CA A8 67 F9 01 90 00 [10:53:41]wFMCommunicate OK [10:53:41]SAM_PROTO_SignData done [10:53:41]FM_MakeSignedData done [10:53:41]CreateOFDProtocolMessage [10:53:41]wFMCommunicate request_size=4 [10:53:41]MH_SAM_APDU [10:53:41]CAPDU: 80 11 00 00 [10:53:41]Write to MH i2c: E2 08 00 F7 01 80 11 00 00 00 00 00 00 72 [10:53:41]Write i2c OK [10:53:41]MH_I2C_Read... [10:53:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:41]Read from MH i2c: E2 [10:53:41]MH_I2C_Read... [10:53:41]Read from MH i2c: E2 17 00 [10:53:41]MH_I2C_Read... [10:53:41]Read from MH i2c: E2 17 00 F7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C7 [10:53:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:53:41]wFMCommunicate OK [10:53:41]CreateOFDProtocolMessage done [10:53:41]OFDSenderStorePacket 201379 [10:53:41]StoreOFDPacket docnum=201379 [10:53:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 CD BF 07 01 8C 29 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 32 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 8D 00 00 00 F4 03 04 00 34 CA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A3 12 03 00 35 04 06 00 CD 0E 2D 87 1E 55 E7 0E 8D CA A8 67 F9 01 [10:53:41]CheckFolder [10:53:41]dirname=/storage/ofd_packets [10:53:41]CheckFolder done [10:53:41]ProducePacketName [10:53:41]name=ofd_packets/00201379 [10:53:41]NVStorageSaveData ofd_packets/00201379 [10:53:41]File name is /storage/ofd_packets/00201379 [10:53:41]Write 301 bytes [10:53:41]NVStorageSaveData done [10:53:41]OFDSenderStorePacket done [10:53:41]KKMCreateOFDPacket done [10:53:41]NVStorageSaveData kkm_last_timestamp [10:53:41]File name is /storage/kkm_last_timestamp [10:53:41]Write 4 bytes [10:53:41]NVStorageSaveData done [10:53:41]ExternCall_PrintAddStr [10:53:41]wPrintStart [10:53:41]Write to MH i2c: 01 00 00 F8 01 F9 [10:53:41]Write i2c OK [10:53:41]MH_I2C_Read... [10:53:41]Read from MH i2c: 01 [10:53:41]MH_I2C_Read... [10:53:41]Read from MH i2c: 01 07 00 [10:53:41]MH_I2C_Read... [10:53:41]Read from MH i2c: 01 07 00 F8 01 00 00 00 00 00 FF 0F 0E [10:53:41]RasterBufferAndPrint [10:53:41]line Счет N : (1)449128 [10:53:41]line ИНН: 02508201610067 [10:53:41]line Контрольно-Кассовый Чек [10:53:41]line ПРОДАЖА [10:53:41]line ТРК (МРК, ГНК) : 62 [10:53:41]line Товар: 2710124130 [10:53:41]line Аи-92-К-2 [10:53:41]line 2.990 * 66.90 [10:53:41]line = 200.03 [10:53:41]line НДС 12% НСП 1% [10:53:41]line > о реализуемом товаре [10:53:41]line ОКРУГЛЕНИЕ: -0.03 [10:53:41]line ИТОГО: 200.00 [10:53:41]line Внесено: 200.00 [10:53:41]line СДАЧА: 0.00 [10:53:41]line НСП 1% : 1.77 [10:53:41]line НДС 12% : 21.24 [10:53:41]line Наличными: 200.00 [10:53:41]line Безнал.: 0.00 [10:53:41]line Место: АЗС № 171 "Партнер Нефть" [10:53:41]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:53:41]line СНО: Общий режим [10:53:41]line Чек 141 26.10.2024 10:53 [10:53:41]line Смена: 543 ФФД: 1.0 [10:53:41]line ЗНМ: 0300000109 [10:53:41]line РНМ: 0000000000091777 [10:53:41]line Версия ККМ: 001 [10:53:41]line ФМ: 0000000000871756 [10:53:41]line ФД: 201379 [10:53:41]line ФПД: 225460777066069 [10:53:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105340&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201379&fm=225460777066069&tin=02508201610067®Number=0000000000091777&sum=20000 [10:53:42]OFD Sender: Processing packet 201379 [packets to send 112, broken 111] [10:53:42]ProducePacketName [10:53:42]name=ofd_packets/00201379 [10:53:42]OFD Sender: To server: pG, [10:53:42]CommunicateWithHost lk.salyk.kg:30040 [10:53:42]ConnectInit lk.salyk.kg [10:53:42]written 0, free lines is 4095 [10:53:42]Connected sock=7 [10:53:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 CD BF 07 01 8C 29 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 32 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 8D 00 00 00 F4 03 04 00 34 CA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A3 12 03 00 35 04 06 00 CD 0E 2D 87 1E 55 E7 0E 8D CA A8 67 F9 01 [10:53:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 8D 1E 47 00 91 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A3 12 03 00 F4 03 04 00 DD 75 1C 67 B6 04 01 00 00 AF 0B FC 06 12 AB BB 5C [10:53:42]CommunicateWithHost err = 0 [10:53:42]CheckOFDResponse [10:53:42]1017 (14) - 77093643461234 [10:53:42]1041 (16) - 0000000000871756 [10:53:42]1040 (4) - 201379 [10:53:42]1012 (4) - 26.10.2024 04:53 [10:53:42]1206 (1) - 0 [10:53:42]OFD Sender: Remove packet 201379 [10:53:42]ProducePacketName [10:53:42]name=ofd_packets/00201379 [10:53:42]NVStorageDeleteData [10:53:42]Write to MH i2c: 01 00 00 23 02 25 [10:53:42]Write i2c OK [10:53:42]MH_I2C_Read... [10:53:42]Read from MH i2c: 01 [10:53:42]MH_I2C_Read... [10:53:42]Read from MH i2c: 01 07 00 [10:53:42]MH_I2C_Read... [10:53:42]Read from MH i2c: 01 07 00 23 02 00 00 00 00 00 91 0C C9 [10:53:42]RasterBufferAndPrint [10:53:42]line [10:53:42]line [10:53:42]line [10:53:42]line [10:53:42]line [10:53:42]written 0, free lines is 3223 [10:53:42]MH_Cut [10:53:42]Write to MH i2c: D1 01 00 2A 02 01 FE [10:53:42]Write i2c OK [10:53:42]MH_I2C_Read... [10:53:42]Read from MH i2c: D1 [10:53:42]MH_I2C_Read... [10:53:42]Read from MH i2c: D1 01 00 [10:53:42]MH_I2C_Read... [10:53:42]Read from MH i2c: D1 01 00 2A 02 00 FD [10:53:42]Write to MH i2c: 01 00 00 2B 02 2D [10:53:42]Write i2c OK [10:53:42]MH_I2C_Read... [10:53:42]OFD Sender: No OFD packet to send [10:53:43]*** Cut start [10:53:43]*** Purtial cut [10:53:43]*** Stage 1: CUTSNS_PIN = 1 [10:53:43]Read from MH i2c: 01 [10:53:43]MH_I2C_Read... [10:53:43]*** Stop cut motor [10:53:43]*** Cut end [10:53:43]Read from MH i2c: 01 07 00 [10:53:43]MH_I2C_Read... [10:53:43]Read from MH i2c: 01 07 00 2B 02 00 00 00 00 00 FF 0F 42 [10:53:43]process_action close_receipt done [10:53:43]requested_data is exist [10:53:43]produce_requested_data [10:53:43]requested_item fm.sn is exist - process it [10:53:43]wFMCommunicate request_size=4 [10:53:43]MH_SAM_APDU [10:53:43]CAPDU: 80 11 00 00 [10:53:43]Write to MH i2c: E2 08 00 2C 02 80 11 00 00 00 00 00 00 A8 [10:53:43]Write i2c OK [10:53:43]MH_I2C_Read... [10:53:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:43]Read from MH i2c: E2 [10:53:43]MH_I2C_Read... [10:53:43]Read from MH i2c: E2 17 00 [10:53:43]MH_I2C_Read... [10:53:43]Read from MH i2c: E2 17 00 2C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FD [10:53:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:53:43]wFMCommunicate OK [10:53:43]requested_item fd.num is exist - process it [10:53:43]SAM_PROTO_GetFieldsCounters [10:53:43]wFMCommunicate request_size=4 [10:53:43]MH_SAM_APDU [10:53:43]CAPDU: 80 13 00 00 [10:53:43]Write to MH i2c: E2 08 00 2D 02 80 13 00 00 00 00 00 00 AB [10:53:43]Write i2c OK [10:53:43]MH_I2C_Read... [10:53:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:43]Read from MH i2c: E2 [10:53:43]MH_I2C_Read... [10:53:43]Read from MH i2c: E2 62 00 [10:53:43]MH_I2C_Read... [10:53:43]Read from MH i2c: E2 62 00 2D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A3 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [10:53:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A3 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:53:43]wFMCommunicate OK [10:53:43]SAM_PROTO_GetFieldsCounters done [10:53:43]requested_item shift.num is exist - process it [10:53:43]requested_item shift.opened is exist - process it [10:53:43]req_shift_opened [10:53:43]FM_GetShiftState [10:53:43]SAM_PROTO_GetShiftState [10:53:43]wFMCommunicate request_size=4 [10:53:43]MH_SAM_APDU [10:53:43]CAPDU: 80 13 01 00 [10:53:43]Write to MH i2c: E2 08 00 2E 02 80 13 01 00 00 00 00 00 AD [10:53:43]Write i2c OK [10:53:43]MH_I2C_Read... [10:53:43]Read from MH i2c: E2 [10:53:43]MH_I2C_Read... [10:53:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:43]Read from MH i2c: E2 0E 00 [10:53:43]MH_I2C_Read... [10:53:43]Read from MH i2c: E2 0E 00 2E 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 BC [10:53:43]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:53:43]wFMCommunicate OK [10:53:43]SAM_PROTO_GetShiftState done [10:53:43]FM_GetShiftState done [10:53:43]req_shift_opened done [10:53:43]requested_item shift.open_date is exist - process it [10:53:43]req_shift_open_date [10:53:43]req_shift_open_date done [10:53:43]produce_requested_data done [10:53:43]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201379,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:53:43]process_action_free close_receipt [10:53:43]json_value_free [10:53:43]json_value_free done [10:53:43]process_json_proto returns [10:53:43]Send response to host [10:53:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201379,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:53:43]free response buf [10:53:43]execute_script done [10:53:43]execute_script returns [10:53:43]free content buf [10:53:43]Sock 9.Close socket [10:53:43]Sock 9.Thread stoped [10:53:47]OFD Sender: No OFD packet to send [10:53:52]OFD Sender: No OFD packet to send [10:53:57]OFD Sender: No OFD packet to send [10:54:01]accept exits with 10 [10:54:01]New connection [10:54:01]New thread 3066498404 created [10:54:01]Thread 3066641764 joined [10:54:01]Waiting for new connection... [10:54:01] Sock 10.Parse request [10:54:01]Sock 10.Check first char [10:54:01]Sock 10.First char is OK [10:54:01]request: POST /json_proto HTTP/1.0 [10:54:01]Method: POST [10:54:01]URL: /json_proto [10:54:01]Method is POST - this is cgi request [10:54:01]url: /json_proto [10:54:01]query_string will be loaded in cgi processing [10:54:01]execute_cgi json_proto POST (null) [10:54:01]execute_cgi path=json_proto method=POST [10:54:01]POST find Content-Length [10:54:01]Host: 172.17.63.195:8080 [10:54:01]Content-Length: 769 [10:54:01]Content-Type: application/json [10:54:01] [10:54:01]POST finish read [10:54:01]Found Content-Length = 769 [10:54:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:01]execute_script... [10:54: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)449129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:01]POST & json_proto [10:54:01]process_json_proto [10:54:01]json parsed OK: [10:54:01]protocol is kg_v1.0 [10:54:01]action value=close_receipt [10:54:01]process_action close_receipt [10:54:01]cmd_close_receipt [10:54:01]MH_GetDate [10:54:01]Write to MH i2c: F0 00 00 2F 02 20 [10:54:01]Write i2c OK [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: F0 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: F0 09 00 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: F0 09 00 2F 02 00 49 CA 1C 67 68 46 19 67 ED [10:54:01]GetLastDocTimeStamp 1729940020 [10:54:01]current date 1729940041 [10:54:01]FM_GetShiftState [10:54:01]SAM_PROTO_GetShiftState [10:54:01]wFMCommunicate request_size=4 [10:54:01]MH_SAM_APDU [10:54:01]CAPDU: 80 13 01 00 [10:54:01]Write to MH i2c: E2 08 00 30 02 80 13 01 00 00 00 00 00 AF [10:54:01]Write i2c OK [10:54:01]MH_I2C_Read... [10:54:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:01]Read from MH i2c: E2 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 0E 00 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 0E 00 30 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 BE [10:54:01]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:54:01]wFMCommunicate OK [10:54:01]SAM_PROTO_GetShiftState done [10:54:01]FM_GetShiftState done [10:54:01]opened in 1729900879 [10:54:01]opened+sec_in_day 1729987279 [10:54:01]quantity*price = 100015 [10:54:01]sum+1 = 100017 [10:54:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 142 26.10.2024 10:54 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201380 ФПД: 207907574122272 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105401&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201380&fm=207907574122272&tin=02508201610067®Number=0000000000091777&sum=100016 [10:54:02]StoreToDocumentArchive [10:54:02]shift 543 fd 201380 [10:54:02]save to /storage/0543/doc_00201380 [10:54:02]save last doc name /storage/0543/doc_00201380 to /storage/kkm_last_doc_name [10:54:02]save OK [10:54:02]Clear old archive folders... [10:54:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:54:02]tlvbuf is 0181EFA0 [10:54:02]SAM_PROTO_ClearQueue [10:54:02]wFMCommunicate request_size=4 [10:54:02]MH_SAM_APDU [10:54:02]CAPDU: 80 09 00 00 [10:54:02]Write to MH i2c: E2 08 00 3D 02 80 09 00 00 00 00 00 00 B1 [10:54:02]Write i2c OK [10:54:02]MH_I2C_Read... [10:54:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:02]Read from MH i2c: E2 [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: E2 03 00 [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: E2 03 00 3D 02 00 90 00 B3 [10:54:02]RAPDU: 90 00 [10:54:02]wFMCommunicate OK [10:54:02]SAM_PROTO_ClearQueue done [10:54:02]KKMCreateOFDPacket [10:54:02]OFDProtocolAddRootSTLVToBuf [10:54:02]FM_MakeSignedData [10:54:02]FM_MakeSignedData [10:54:02]SAM_PROTO_SignData [10:54:02]wFMCommunicate request_size=4 [10:54:02]MH_SAM_APDU [10:54:02]CAPDU: 80 0D 01 02 [10:54:02]Write to MH i2c: E2 08 00 3E 02 80 0D 01 02 00 00 00 00 B9 [10:54:02]Write i2c OK [10:54:02]MH_I2C_Read... [10:54:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:02]Read from MH i2c: E2 [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: E2 03 00 [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: E2 03 00 3E 02 00 90 00 B4 [10:54:02]RAPDU: 90 00 [10:54:02]wFMCommunicate OK [10:54:02]wFMCommunicate request_size=255 [10:54:02]MH_SAM_APDU [10:54: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 32 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 B0 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 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 49 CA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A4 12 03 00 35 04 06 00 BD [10:54:02]Write to MH i2c: E2 02 01 3F 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 32 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 B0 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 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 49 CA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A4 12 03 00 35 04 06 00 BD 00 00 22 [10:54:02]Write i2c OK [10:54:02]MH_I2C_Read... [10:54:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:02]Read from MH i2c: E2 [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: E2 03 00 [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: E2 03 00 3F 02 00 90 00 B5 [10:54:02]RAPDU: 90 00 [10:54:02]wFMCommunicate OK [10:54:02]wFMCommunicate request_size=10 [10:54:02]MH_SAM_APDU [10:54:02]CAPDU: 80 0D 02 02 05 17 41 1A 07 20 [10:54:02]Write to MH i2c: E2 0D 00 40 02 80 0D 02 02 05 00 17 41 1A 07 20 00 00 5F [10:54:02]Write i2c OK [10:54:02]MH_I2C_Read... [10:54:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:02]Read from MH i2c: E2 [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: E2 03 00 [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: E2 03 00 40 02 00 90 00 B6 [10:54:02]RAPDU: 90 00 [10:54:02]wFMCommunicate OK [10:54:02]wFMCommunicate request_size=4 [10:54:02]MH_SAM_APDU [10:54:02]CAPDU: 80 0D 03 02 [10:54:02]Write to MH i2c: E2 08 00 41 02 80 0D 03 02 00 00 00 00 BE [10:54:02]Write i2c OK [10:54:02]MH_I2C_Read... [10:54:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:02]Read from MH i2c: E2 [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: E2 0B 00 [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: E2 0B 00 41 02 00 70 8A 45 72 A7 A6 FE 81 90 00 3C [10:54:02]RAPDU: 70 8A 45 72 A7 A6 FE 81 90 00 [10:54:02]wFMCommunicate OK [10:54:02]SAM_PROTO_SignData done [10:54:02]FM_MakeSignedData done [10:54:02]CreateOFDProtocolMessage [10:54:02]wFMCommunicate request_size=4 [10:54:02]MH_SAM_APDU [10:54:02]CAPDU: 80 11 00 00 [10:54:02]Write to MH i2c: E2 08 00 42 02 80 11 00 00 00 00 00 00 BE [10:54:02]Write i2c OK [10:54:02]MH_I2C_Read... [10:54:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:02]Read from MH i2c: E2 [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: E2 17 00 [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: E2 17 00 42 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 13 [10:54:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:54:02]wFMCommunicate OK [10:54:02]CreateOFDProtocolMessage done [10:54:02]OFDSenderStorePacket 201380 [10:54:02]StoreOFDPacket docnum=201380 [10:54:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C6 CA 07 01 84 91 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 32 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 B0 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 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 49 CA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A4 12 03 00 35 04 06 00 BD 17 41 1A 07 20 70 8A 45 72 A7 A6 FE 81 [10:54:02]CheckFolder [10:54:02]dirname=/storage/ofd_packets [10:54:02]CheckFolder done [10:54:02]ProducePacketName [10:54:02]name=ofd_packets/00201380 [10:54:02]NVStorageSaveData ofd_packets/00201380 [10:54:02]File name is /storage/ofd_packets/00201380 [10:54:02]Write 301 bytes [10:54:02]NVStorageSaveData done [10:54:02]OFDSenderStorePacket done [10:54:02]KKMCreateOFDPacket done [10:54:02]NVStorageSaveData kkm_last_timestamp [10:54:02]File name is /storage/kkm_last_timestamp [10:54:02]Write 4 bytes [10:54:02]NVStorageSaveData done [10:54:02]ExternCall_PrintAddStr [10:54:02]wPrintStart [10:54:02]Write to MH i2c: 01 00 00 43 02 45 [10:54:02]Write i2c OK [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: 01 [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: 01 07 00 [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: 01 07 00 43 02 00 00 00 00 00 FF 0F 5A [10:54:02]RasterBufferAndPrint [10:54:02]line Счет N : (1)449129 [10:54:02]line ИНН: 02508201610067 [10:54:02]line Контрольно-Кассовый Чек [10:54:02]line ПРОДАЖА [10:54:02]line ТРК (МРК, ГНК) : 52 [10:54:02]line Товар: 2710124130 [10:54:02]line Аи-92-К-2 [10:54:02]line 14.950 * 66.90 [10:54:02]line = 1000.16 [10:54:02]line НДС 12% НСП 1% [10:54:02]line > о реализуемом товаре [10:54:02]line ИТОГО: 1000.16 [10:54:02]line НСП 1% : 8.85 [10:54:02]line НДС 12% : 106.21 [10:54:02]line Наличными: 0.00 [10:54:02]line Безнал.: 1000.16 [10:54:02]line Место: АЗС № 171 "Партнер Нефть" [10:54:02]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:54:02]line СНО: Общий режим [10:54:02]line Чек 142 26.10.2024 10:54 [10:54:02]line Смена: 543 ФФД: 1.0 [10:54:02]line ЗНМ: 0300000109 [10:54:02]line РНМ: 0000000000091777 [10:54:02]line Версия ККМ: 001 [10:54:02]line Платежная система: Mbank [10:54:02]line ФМ: 0000000000871756 [10:54:02]line ФД: 201380 [10:54:02]line ФПД: 207907574122272 [10:54:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105401&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201380&fm=207907574122272&tin=02508201610067®Number=0000000000091777&sum=100016 [10:54:03]written 0, free lines is 4095 [10:54:03]OFD Sender: Processing packet 201380 [packets to send 112, broken 111] [10:54:03]ProducePacketName [10:54:03]name=ofd_packets/00201380 [10:54:03]OFD Sender: To server: pG, [10:54:03]CommunicateWithHost lk.salyk.kg:30040 [10:54:03]ConnectInit lk.salyk.kg [10:54:03]Connected sock=7 [10:54:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C6 CA 07 01 84 91 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 32 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 B0 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 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 49 CA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A4 12 03 00 35 04 06 00 BD 17 41 1A 07 20 70 8A 45 72 A7 A6 FE 81 [10:54:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C0 FA 47 00 C0 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A4 12 03 00 F4 03 04 00 F2 75 1C 67 B6 04 01 00 00 E1 77 BA 89 B4 14 E1 1E [10:54:03]CommunicateWithHost err = 0 [10:54:03]CheckOFDResponse [10:54:03]1017 (14) - 77093643461234 [10:54:03]1041 (16) - 0000000000871756 [10:54:03]1040 (4) - 201380 [10:54:03]1012 (4) - 26.10.2024 04:54 [10:54:03]1206 (1) - 0 [10:54:03]OFD Sender: Remove packet 201380 [10:54:03]ProducePacketName [10:54:03]name=ofd_packets/00201380 [10:54:03]NVStorageDeleteData [10:54:03]Write to MH i2c: 01 00 00 6C 02 6E [10:54:03]Write i2c OK [10:54:03]MH_I2C_Read... [10:54:03]Read from MH i2c: 01 [10:54:03]MH_I2C_Read... [10:54:03]Read from MH i2c: 01 07 00 [10:54:03]MH_I2C_Read... [10:54:03]Read from MH i2c: 01 07 00 6C 02 00 00 00 00 00 C5 0C 46 [10:54:03]RasterBufferAndPrint [10:54:03]line [10:54:03]line [10:54:03]line [10:54:03]line [10:54:03]line [10:54:03]written 0, free lines is 3274 [10:54:03]MH_Cut [10:54:03]Write to MH i2c: D1 01 00 73 02 01 47 [10:54:03]Write i2c OK [10:54:03]MH_I2C_Read... [10:54:03]Read from MH i2c: D1 [10:54:03]MH_I2C_Read... [10:54:03]Read from MH i2c: D1 01 00 [10:54:03]MH_I2C_Read... [10:54:03]Read from MH i2c: D1 01 00 73 02 00 46 [10:54:03]Write to MH i2c: 01 00 00 74 02 76 [10:54:03]Write i2c OK [10:54:03]MH_I2C_Read... [10:54:04]OFD Sender: No OFD packet to send [10:54:04]*** Cut start [10:54:04]*** Purtial cut [10:54:04]*** Stage 1: CUTSNS_PIN = 1 [10:54:04]Read from MH i2c: 01 [10:54:04]MH_I2C_Read... [10:54:04]*** Stop cut motor [10:54:04]*** Cut end [10:54:04]Read from MH i2c: 01 07 00 [10:54:04]MH_I2C_Read... [10:54:04]Read from MH i2c: 01 07 00 74 02 00 00 00 00 00 FF 0F 8B [10:54:04]process_action close_receipt done [10:54:04]requested_data is exist [10:54:04]produce_requested_data [10:54:04]requested_item fm.sn is exist - process it [10:54:04]wFMCommunicate request_size=4 [10:54:04]MH_SAM_APDU [10:54:04]CAPDU: 80 11 00 00 [10:54:04]Write to MH i2c: E2 08 00 75 02 80 11 00 00 00 00 00 00 F1 [10:54:04]Write i2c OK [10:54:04]MH_I2C_Read... [10:54:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:04]Read from MH i2c: E2 [10:54:04]MH_I2C_Read... [10:54:04]Read from MH i2c: E2 17 00 [10:54:04]MH_I2C_Read... [10:54:04]Read from MH i2c: E2 17 00 75 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 46 [10:54:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:54:04]wFMCommunicate OK [10:54:04]requested_item fd.num is exist - process it [10:54:04]SAM_PROTO_GetFieldsCounters [10:54:04]wFMCommunicate request_size=4 [10:54:04]MH_SAM_APDU [10:54:04]CAPDU: 80 13 00 00 [10:54:04]Write to MH i2c: E2 08 00 76 02 80 13 00 00 00 00 00 00 F4 [10:54:04]Write i2c OK [10:54:04]MH_I2C_Read... [10:54:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:05]Read from MH i2c: E2 [10:54:05]MH_I2C_Read... [10:54:05]Read from MH i2c: E2 62 00 [10:54:05]MH_I2C_Read... [10:54:05]Read from MH i2c: E2 62 00 76 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A4 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [10:54:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A4 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:54:05]wFMCommunicate OK [10:54:05]SAM_PROTO_GetFieldsCounters done [10:54:05]requested_item shift.num is exist - process it [10:54:05]requested_item shift.opened is exist - process it [10:54:05]req_shift_opened [10:54:05]FM_GetShiftState [10:54:05]SAM_PROTO_GetShiftState [10:54:05]wFMCommunicate request_size=4 [10:54:05]MH_SAM_APDU [10:54:05]CAPDU: 80 13 01 00 [10:54:05]Write to MH i2c: E2 08 00 77 02 80 13 01 00 00 00 00 00 F6 [10:54:05]Write i2c OK [10:54:05]MH_I2C_Read... [10:54:05]Read from MH i2c: E2 [10:54:05]MH_I2C_Read... [10:54:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:05]Read from MH i2c: E2 0E 00 [10:54:05]MH_I2C_Read... [10:54:05]Read from MH i2c: E2 0E 00 77 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 05 [10:54:05]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:54:05]wFMCommunicate OK [10:54:05]SAM_PROTO_GetShiftState done [10:54:05]FM_GetShiftState done [10:54:05]req_shift_opened done [10:54:05]requested_item shift.open_date is exist - process it [10:54:05]req_shift_open_date [10:54:05]req_shift_open_date done [10:54:05]produce_requested_data done [10:54:05]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201380,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:54:05]process_action_free close_receipt [10:54:05]json_value_free [10:54:05]json_value_free done [10:54:05]process_json_proto returns [10:54:05]Send response to host [10:54:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201380,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:54:05]free response buf [10:54:05]execute_script done [10:54:05]execute_script returns [10:54:05]free content buf [10:54:05]Sock 10.Close socket [10:54:05]Sock 10.Thread stoped [10:54:05]accept exits with 9 [10:54:05]New connection [10:54:05]New thread 3066641764 created [10:54:05]Thread 3066498404 joined [10:54:05]Waiting for new connection... [10:54:05] Sock 9.Parse request [10:54:05]Sock 9.Check first char [10:54:05]Sock 9.First char is OK [10:54:05]request: POST /json_proto HTTP/1.0 [10:54:05]Method: POST [10:54:05]URL: /json_proto [10:54:05]Method is POST - this is cgi request [10:54:05]url: /json_proto [10:54:05]query_string will be loaded in cgi processing [10:54:05]execute_cgi json_proto POST (null) [10:54:05]execute_cgi path=json_proto method=POST [10:54:05]POST find Content-Length [10:54:05]Host: 172.17.63.195:8080 [10:54:05]Content-Length: 677 [10:54:05]Content-Type: application/json [10:54:05] [10:54:05]POST finish read [10:54:05]Found Content-Length = 677 [10:54:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:05]execute_script... [10:54:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:05]POST & json_proto [10:54:05]process_json_proto [10:54:05]json parsed OK: [10:54:05]protocol is kg_v1.0 [10:54:05]action value=close_receipt [10:54:05]process_action close_receipt [10:54:05]cmd_close_receipt [10:54:05]MH_GetDate [10:54:05]Write to MH i2c: F0 00 00 78 02 69 [10:54:05]Write i2c OK [10:54:05]MH_I2C_Read... [10:54:05]Read from MH i2c: F0 [10:54:05]MH_I2C_Read... [10:54:05]Read from MH i2c: F0 09 00 [10:54:05]MH_I2C_Read... [10:54:05]Read from MH i2c: F0 09 00 78 02 00 4D CA 1C 67 68 46 19 67 3A [10:54:05]GetLastDocTimeStamp 1729940041 [10:54:05]current date 1729940045 [10:54:05]FM_GetShiftState [10:54:05]SAM_PROTO_GetShiftState [10:54:05]wFMCommunicate request_size=4 [10:54:05]MH_SAM_APDU [10:54:05]CAPDU: 80 13 01 00 [10:54:05]Write to MH i2c: E2 08 00 79 02 80 13 01 00 00 00 00 00 F8 [10:54:05]Write i2c OK [10:54:05]MH_I2C_Read... [10:54:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:05]Read from MH i2c: E2 [10:54:05]MH_I2C_Read... [10:54:05]Read from MH i2c: E2 0E 00 [10:54:05]MH_I2C_Read... [10:54:05]Read from MH i2c: E2 0E 00 79 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 07 [10:54:05]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:54:05]wFMCommunicate OK [10:54:05]SAM_PROTO_GetShiftState done [10:54:05]FM_GetShiftState done [10:54:05]opened in 1729900879 [10:54:05]opened+sec_in_day 1729987279 [10:54:05]quantity*price = 30038 [10:54:05]sum+1 = 30039 [10:54:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 143 26.10.2024 10:54 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201381 ФПД: 135672044493373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105405&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201381&fm=135672044493373&tin=02508201610067®Number=0000000000091777&sum=30000 [10:54:06]StoreToDocumentArchive [10:54:06]shift 543 fd 201381 [10:54:06]save to /storage/0543/doc_00201381 [10:54:06]save last doc name /storage/0543/doc_00201381 to /storage/kkm_last_doc_name [10:54:06]save OK [10:54:06]Clear old archive folders... [10:54:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:54:06]tlvbuf is 01816540 [10:54:06]SAM_PROTO_ClearQueue [10:54:06]wFMCommunicate request_size=4 [10:54:06]MH_SAM_APDU [10:54:06]CAPDU: 80 09 00 00 [10:54:06]Write to MH i2c: E2 08 00 86 02 80 09 00 00 00 00 00 00 FA [10:54:06]Write i2c OK [10:54:06]MH_I2C_Read... [10:54:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:06]Read from MH i2c: E2 [10:54:06]MH_I2C_Read... [10:54:06]Read from MH i2c: E2 03 00 [10:54:06]MH_I2C_Read... [10:54:06]Read from MH i2c: E2 03 00 86 02 00 90 00 FC [10:54:06]RAPDU: 90 00 [10:54:06]wFMCommunicate OK [10:54:06]SAM_PROTO_ClearQueue done [10:54:06]KKMCreateOFDPacket [10:54:06]OFDProtocolAddRootSTLVToBuf [10:54:06]FM_MakeSignedData [10:54:06]FM_MakeSignedData [10:54:06]SAM_PROTO_SignData [10:54:06]wFMCommunicate request_size=4 [10:54:06]MH_SAM_APDU [10:54:06]CAPDU: 80 0D 01 02 [10:54:06]Write to MH i2c: E2 08 00 87 02 80 0D 01 02 00 00 00 00 02 [10:54:06]Write i2c OK [10:54:06]MH_I2C_Read... [10:54:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:07]Read from MH i2c: E2 [10:54:07]MH_I2C_Read... [10:54:07]Read from MH i2c: E2 03 00 [10:54:07]MH_I2C_Read... [10:54:07]Read from MH i2c: E2 03 00 87 02 00 90 00 FD [10:54:07]RAPDU: 90 00 [10:54:07]wFMCommunicate OK [10:54:07]wFMCommunicate request_size=255 [10:54:07]MH_SAM_APDU [10:54:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 4D CA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A5 12 03 00 35 04 06 00 7B [10:54:07]Write to MH i2c: E2 02 01 88 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 4D CA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A5 12 03 00 35 04 06 00 7B 00 00 09 [10:54:07]Write i2c OK [10:54:07]MH_I2C_Read... [10:54:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:07]Read from MH i2c: E2 [10:54:07]MH_I2C_Read... [10:54:07]Read from MH i2c: E2 03 00 [10:54:07]MH_I2C_Read... [10:54:07]Read from MH i2c: E2 03 00 88 02 00 90 00 FE [10:54:07]RAPDU: 90 00 [10:54:07]wFMCommunicate OK [10:54:07]wFMCommunicate request_size=10 [10:54:07]MH_SAM_APDU [10:54:07]CAPDU: 80 0D 02 02 05 64 9C 04 9A 3D [10:54:07]Write to MH i2c: E2 0D 00 89 02 80 0D 02 02 05 00 64 9C 04 9A 3D 00 00 EA [10:54:07]Write i2c OK [10:54:07]MH_I2C_Read... [10:54:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:07]Read from MH i2c: E2 [10:54:07]MH_I2C_Read... [10:54:07]Read from MH i2c: E2 03 00 [10:54:07]MH_I2C_Read... [10:54:07]Read from MH i2c: E2 03 00 89 02 00 90 00 FF [10:54:07]RAPDU: 90 00 [10:54:07]wFMCommunicate OK [10:54:07]wFMCommunicate request_size=4 [10:54:07]MH_SAM_APDU [10:54:07]CAPDU: 80 0D 03 02 [10:54:07]Write to MH i2c: E2 08 00 8A 02 80 0D 03 02 00 00 00 00 07 [10:54:07]Write i2c OK [10:54:07]MH_I2C_Read... [10:54:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:07]Read from MH i2c: E2 [10:54:07]MH_I2C_Read... [10:54:07]Read from MH i2c: E2 0B 00 [10:54:07]MH_I2C_Read... [10:54:07]Read from MH i2c: E2 0B 00 8A 02 00 15 0C 0F 23 38 05 4C 27 90 00 0B [10:54:07]RAPDU: 15 0C 0F 23 38 05 4C 27 90 00 [10:54:07]wFMCommunicate OK [10:54:07]SAM_PROTO_SignData done [10:54:07]FM_MakeSignedData done [10:54:07]CreateOFDProtocolMessage [10:54:07]wFMCommunicate request_size=4 [10:54:07]MH_SAM_APDU [10:54:07]CAPDU: 80 11 00 00 [10:54:07]Write to MH i2c: E2 08 00 8B 02 80 11 00 00 00 00 00 00 07 [10:54:07]Write i2c OK [10:54:07]MH_I2C_Read... [10:54:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:07]Read from MH i2c: E2 [10:54:07]MH_I2C_Read... [10:54:07]Read from MH i2c: E2 17 00 [10:54:07]MH_I2C_Read... [10:54:07]Read from MH i2c: E2 17 00 8B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5C [10:54:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:54:07]wFMCommunicate OK [10:54:07]CreateOFDProtocolMessage done [10:54:07]OFDSenderStorePacket 201381 [10:54:07]StoreOFDPacket docnum=201381 [10:54:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 87 74 07 01 8A 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 4D CA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A5 12 03 00 35 04 06 00 7B 64 9C 04 9A 3D 15 0C 0F 23 38 05 4C 27 [10:54:07]CheckFolder [10:54:07]dirname=/storage/ofd_packets [10:54:07]CheckFolder done [10:54:07]ProducePacketName [10:54:07]name=ofd_packets/00201381 [10:54:07]NVStorageSaveData ofd_packets/00201381 [10:54:07]File name is /storage/ofd_packets/00201381 [10:54:07]Write 301 bytes [10:54:07]NVStorageSaveData done [10:54:07]OFDSenderStorePacket done [10:54:07]KKMCreateOFDPacket done [10:54:07]NVStorageSaveData kkm_last_timestamp [10:54:07]File name is /storage/kkm_last_timestamp [10:54:07]Write 4 bytes [10:54:07]NVStorageSaveData done [10:54:07]ExternCall_PrintAddStr [10:54:07]wPrintStart [10:54:07]Write to MH i2c: 01 00 00 8C 02 8E [10:54:07]Write i2c OK [10:54:07]MH_I2C_Read... [10:54:07]Read from MH i2c: 01 [10:54:07]MH_I2C_Read... [10:54:07]Read from MH i2c: 01 07 00 [10:54:07]MH_I2C_Read... [10:54:07]Read from MH i2c: 01 07 00 8C 02 00 00 00 00 00 FF 0F A3 [10:54:07]RasterBufferAndPrint [10:54:07]line Счет N : (1)449130 [10:54:07]line ИНН: 02508201610067 [10:54:07]line Контрольно-Кассовый Чек [10:54:07]line ПРОДАЖА [10:54:07]line ТРК (МРК, ГНК) : 31 [10:54:07]line Товар: 2710124130 [10:54:07]line Аи-92-К-2 [10:54:07]line 4.490 * 66.90 [10:54:07]line = 300.38 [10:54:07]line НДС 12% НСП 1% [10:54:07]line > о реализуемом товаре [10:54:07]line ОКРУГЛЕНИЕ: -0.38 [10:54:07]line ИТОГО: 300.00 [10:54:07]line Внесено: 300.00 [10:54:07]line СДАЧА: 0.00 [10:54:07]line НСП 1% : 2.66 [10:54:07]line НДС 12% : 31.90 [10:54:07]line Наличными: 300.00 [10:54:07]line Безнал.: 0.00 [10:54:07]line Место: АЗС № 171 "Партнер Нефть" [10:54:07]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:54:07]line СНО: Общий режим [10:54:07]line Чек 143 26.10.2024 10:54 [10:54:07]line Смена: 543 ФФД: 1.0 [10:54:07]line ЗНМ: 0300000109 [10:54:07]line РНМ: 0000000000091777 [10:54:07]line Версия ККМ: 001 [10:54:07]line ФМ: 0000000000871756 [10:54:07]line ФД: 201381 [10:54:07]line ФПД: 135672044493373 [10:54:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105405&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201381&fm=135672044493373&tin=02508201610067®Number=0000000000091777&sum=30000 [10:54:07]OFD Sender: Processing packet 201381 [packets to send 112, broken 111] [10:54:07]ProducePacketName [10:54:07]name=ofd_packets/00201381 [10:54:07]OFD Sender: To server: pG, [10:54:07]CommunicateWithHost lk.salyk.kg:30040 [10:54:07]ConnectInit lk.salyk.kg [10:54:07]written 0, free lines is 4095 [10:54:08]Connected sock=10 [10:54:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 87 74 07 01 8A 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 4D CA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A5 12 03 00 35 04 06 00 7B 64 9C 04 9A 3D 15 0C 0F 23 38 05 4C 27 [10:54:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 32 20 47 00 45 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A5 12 03 00 F4 03 04 00 F7 75 1C 67 B6 04 01 00 00 D4 C5 BF 96 A5 DA 7F B9 [10:54:08]CommunicateWithHost err = 0 [10:54:08]CheckOFDResponse [10:54:08]1017 (14) - 77093643461234 [10:54:08]1041 (16) - 0000000000871756 [10:54:08]1040 (4) - 201381 [10:54:08]1012 (4) - 26.10.2024 04:54 [10:54:08]1206 (1) - 0 [10:54:08]OFD Sender: Remove packet 201381 [10:54:08]ProducePacketName [10:54:08]name=ofd_packets/00201381 [10:54:08]NVStorageDeleteData [10:54:08]Write to MH i2c: 01 00 00 B7 02 B9 [10:54:08]Write i2c OK [10:54:08]MH_I2C_Read... [10:54:08]Read from MH i2c: 01 [10:54:08]MH_I2C_Read... [10:54:08]Read from MH i2c: 01 07 00 [10:54:08]MH_I2C_Read... [10:54:08]Read from MH i2c: 01 07 00 B7 02 00 00 00 00 00 9B 0C 67 [10:54:08]RasterBufferAndPrint [10:54:08]line [10:54:08]line [10:54:08]line [10:54:08]line [10:54:08]line [10:54:08]written 0, free lines is 3239 [10:54:08]MH_Cut [10:54:08]Write to MH i2c: D1 01 00 BE 02 01 92 [10:54:08]Write i2c OK [10:54:08]MH_I2C_Read... [10:54:08]Read from MH i2c: D1 [10:54:08]MH_I2C_Read... [10:54:08]Read from MH i2c: D1 01 00 [10:54:08]MH_I2C_Read... [10:54:08]Read from MH i2c: D1 01 00 BE 02 00 91 [10:54:08]Write to MH i2c: 01 00 00 BF 02 C1 [10:54:08]Write i2c OK [10:54:08]MH_I2C_Read... [10:54:08]OFD Sender: No OFD packet to send [10:54:09]*** Cut start [10:54:09]*** Purtial cut [10:54:09]*** Stage 1: CUTSNS_PIN = 1 [10:54:09]Read from MH i2c: 01 [10:54:09]MH_I2C_Read... [10:54:09]*** Stop cut motor [10:54:09]*** Cut end [10:54:09]Read from MH i2c: 01 07 00 [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: 01 07 00 BF 02 00 00 00 00 00 FF 0F D6 [10:54:09]process_action close_receipt done [10:54:09]requested_data is exist [10:54:09]produce_requested_data [10:54:09]requested_item fm.sn is exist - process it [10:54:09]wFMCommunicate request_size=4 [10:54:09]MH_SAM_APDU [10:54:09]CAPDU: 80 11 00 00 [10:54:09]Write to MH i2c: E2 08 00 C0 02 80 11 00 00 00 00 00 00 3C [10:54:09]Write i2c OK [10:54:09]MH_I2C_Read... [10:54:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:09]Read from MH i2c: E2 [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: E2 17 00 [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: E2 17 00 C0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 91 [10:54:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:54:09]wFMCommunicate OK [10:54:09]requested_item fd.num is exist - process it [10:54:09]SAM_PROTO_GetFieldsCounters [10:54:09]wFMCommunicate request_size=4 [10:54:09]MH_SAM_APDU [10:54:09]CAPDU: 80 13 00 00 [10:54:09]Write to MH i2c: E2 08 00 C1 02 80 13 00 00 00 00 00 00 3F [10:54:09]Write i2c OK [10:54:09]MH_I2C_Read... [10:54:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:09]Read from MH i2c: E2 [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: E2 62 00 [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: E2 62 00 C1 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A5 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [10:54:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A5 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:54:09]wFMCommunicate OK [10:54:09]SAM_PROTO_GetFieldsCounters done [10:54:09]requested_item shift.num is exist - process it [10:54:09]requested_item shift.opened is exist - process it [10:54:09]req_shift_opened [10:54:09]FM_GetShiftState [10:54:09]SAM_PROTO_GetShiftState [10:54:09]wFMCommunicate request_size=4 [10:54:09]MH_SAM_APDU [10:54:09]CAPDU: 80 13 01 00 [10:54:09]Write to MH i2c: E2 08 00 C2 02 80 13 01 00 00 00 00 00 41 [10:54:09]Write i2c OK [10:54:09]MH_I2C_Read... [10:54:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:09]Read from MH i2c: E2 [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: E2 0E 00 [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: E2 0E 00 C2 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 50 [10:54:09]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:54:09]wFMCommunicate OK [10:54:09]SAM_PROTO_GetShiftState done [10:54:09]FM_GetShiftState done [10:54:09]req_shift_opened done [10:54:09]requested_item shift.open_date is exist - process it [10:54:09]req_shift_open_date [10:54:09]req_shift_open_date done [10:54:09]produce_requested_data done [10:54:09]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201381,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:54:09]process_action_free close_receipt [10:54:09]json_value_free [10:54:09]json_value_free done [10:54:09]process_json_proto returns [10:54:09]Send response to host [10:54:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201381,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:54:09]free response buf [10:54:09]execute_script done [10:54:09]execute_script returns [10:54:09]free content buf [10:54:09]Sock 9.Close socket [10:54:09]Sock 9.Thread stoped [10:54:13]OFD Sender: No OFD packet to send [10:54:18]OFD Sender: No OFD packet to send [10:54:23]OFD Sender: No OFD packet to send [10:54:28]OFD Sender: No OFD packet to send [10:54:33]OFD Sender: No OFD packet to send [10:54:38]OFD Sender: No OFD packet to send [10:54:43]OFD Sender: No OFD packet to send [10:54:48]OFD Sender: No OFD packet to send [10:54:53]OFD Sender: No OFD packet to send [10:54:58]OFD Sender: No OFD packet to send [10:55:03]OFD Sender: No OFD packet to send [10:55:08]OFD Sender: No OFD packet to send [10:55:09]accept exits with 7 [10:55:09]New connection [10:55:09]New thread 3066498404 created [10:55:09]Thread 3066641764 joined [10:55:09]Waiting for new connection... [10:55:09] Sock 7.Parse request [10:55:09]Sock 7.Check first char [10:55:09]Sock 7.First char is OK [10:55:09]request: POST /json_proto HTTP/1.0 [10:55:09]Method: POST [10:55:09]URL: /json_proto [10:55:09]Method is POST - this is cgi request [10:55:09]url: /json_proto [10:55:09]query_string will be loaded in cgi processing [10:55:09]execute_cgi json_proto POST (null) [10:55:09]execute_cgi path=json_proto method=POST [10:55:09]POST find Content-Length [10:55:09]Host: 172.17.63.195:8080 [10:55:09]Content-Length: 677 [10:55:09]Content-Type: application/json [10:55:09] [10:55:09]POST finish read [10:55:09]Found Content-Length = 677 [10:55:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:55:09]execute_script... [10:55:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:55:09]POST & json_proto [10:55:09]process_json_proto [10:55:09]json parsed OK: [10:55:09]protocol is kg_v1.0 [10:55:09]action value=close_receipt [10:55:09]process_action close_receipt [10:55:09]cmd_close_receipt [10:55:09]MH_GetDate [10:55:09]Write to MH i2c: F0 00 00 C3 02 B4 [10:55:09]Write i2c OK [10:55:09]MH_I2C_Read... [10:55:09]Read from MH i2c: F0 [10:55:09]MH_I2C_Read... [10:55:09]Read from MH i2c: F0 09 00 [10:55:09]MH_I2C_Read... [10:55:09]Read from MH i2c: F0 09 00 C3 02 00 8D CA 1C 67 68 46 19 67 C5 [10:55:09]GetLastDocTimeStamp 1729940045 [10:55:09]current date 1729940109 [10:55:09]FM_GetShiftState [10:55:09]SAM_PROTO_GetShiftState [10:55:09]wFMCommunicate request_size=4 [10:55:09]MH_SAM_APDU [10:55:09]CAPDU: 80 13 01 00 [10:55:09]Write to MH i2c: E2 08 00 C4 02 80 13 01 00 00 00 00 00 43 [10:55:09]Write i2c OK [10:55:09]MH_I2C_Read... [10:55:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:09]Read from MH i2c: E2 [10:55:09]MH_I2C_Read... [10:55:09]Read from MH i2c: E2 0E 00 [10:55:09]MH_I2C_Read... [10:55:09]Read from MH i2c: E2 0E 00 C4 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 52 [10:55:09]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:55:09]wFMCommunicate OK [10:55:09]SAM_PROTO_GetShiftState done [10:55:09]FM_GetShiftState done [10:55:09]opened in 1729900879 [10:55:09]opened+sec_in_day 1729987279 [10:55:09]quantity*price = 50041 [10:55:09]sum+1 = 50042 [10:55:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 144 26.10.2024 10:55 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201382 ФПД: 207467665774420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105509&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201382&fm=207467665774420&tin=02508201610067®Number=0000000000091777&sum=50000 [10:55:10]StoreToDocumentArchive [10:55:10]shift 543 fd 201382 [10:55:10]save to /storage/0543/doc_00201382 [10:55:10]save last doc name /storage/0543/doc_00201382 to /storage/kkm_last_doc_name [10:55:10]save OK [10:55:10]Clear old archive folders... [10:55:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:55:10]tlvbuf is 018178E0 [10:55:10]SAM_PROTO_ClearQueue [10:55:10]wFMCommunicate request_size=4 [10:55:10]MH_SAM_APDU [10:55:10]CAPDU: 80 09 00 00 [10:55:10]Write to MH i2c: E2 08 00 D1 02 80 09 00 00 00 00 00 00 45 [10:55:10]Write i2c OK [10:55:10]MH_I2C_Read... [10:55:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:10]Read from MH i2c: E2 [10:55:10]MH_I2C_Read... [10:55:10]Read from MH i2c: E2 03 00 [10:55:10]MH_I2C_Read... [10:55:10]Read from MH i2c: E2 03 00 D1 02 00 90 00 47 [10:55:10]RAPDU: 90 00 [10:55:10]wFMCommunicate OK [10:55:10]SAM_PROTO_ClearQueue done [10:55:10]KKMCreateOFDPacket [10:55:10]OFDProtocolAddRootSTLVToBuf [10:55:10]FM_MakeSignedData [10:55:10]FM_MakeSignedData [10:55:10]SAM_PROTO_SignData [10:55:10]wFMCommunicate request_size=4 [10:55:10]MH_SAM_APDU [10:55:10]CAPDU: 80 0D 01 02 [10:55:10]Write to MH i2c: E2 08 00 D2 02 80 0D 01 02 00 00 00 00 4D [10:55:10]Write i2c OK [10:55:10]MH_I2C_Read... [10:55:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:10]Read from MH i2c: E2 [10:55:10]MH_I2C_Read... [10:55:10]Read from MH i2c: E2 03 00 [10:55:10]MH_I2C_Read... [10:55:10]Read from MH i2c: E2 03 00 D2 02 00 90 00 48 [10:55:10]RAPDU: 90 00 [10:55:10]wFMCommunicate OK [10:55:10]wFMCommunicate request_size=255 [10:55:10]MH_SAM_APDU [10:55: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 32 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 90 00 00 00 F4 03 04 00 8D CA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A6 12 03 00 35 04 06 00 BC [10:55:10]Write to MH i2c: E2 02 01 D3 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 32 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 90 00 00 00 F4 03 04 00 8D CA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A6 12 03 00 35 04 06 00 BC 00 00 E3 [10:55:10]Write i2c OK [10:55:10]MH_I2C_Read... [10:55:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:10]Read from MH i2c: E2 [10:55:10]MH_I2C_Read... [10:55:10]Read from MH i2c: E2 03 00 [10:55:10]MH_I2C_Read... [10:55:10]Read from MH i2c: E2 03 00 D3 02 00 90 00 49 [10:55:10]RAPDU: 90 00 [10:55:10]wFMCommunicate OK [10:55:10]wFMCommunicate request_size=10 [10:55:10]MH_SAM_APDU [10:55:10]CAPDU: 80 0D 02 02 05 B0 D4 85 57 54 [10:55:10]Write to MH i2c: E2 0D 00 D4 02 80 0D 02 02 05 00 B0 D4 85 57 54 00 00 0E [10:55:10]Write i2c OK [10:55:10]MH_I2C_Read... [10:55:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:11]Read from MH i2c: E2 [10:55:11]MH_I2C_Read... [10:55:11]Read from MH i2c: E2 03 00 [10:55:11]MH_I2C_Read... [10:55:11]Read from MH i2c: E2 03 00 D4 02 00 90 00 4A [10:55:11]RAPDU: 90 00 [10:55:11]wFMCommunicate OK [10:55:11]wFMCommunicate request_size=4 [10:55:11]MH_SAM_APDU [10:55:11]CAPDU: 80 0D 03 02 [10:55:11]Write to MH i2c: E2 08 00 D5 02 80 0D 03 02 00 00 00 00 52 [10:55:11]Write i2c OK [10:55:11]MH_I2C_Read... [10:55:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:11]Read from MH i2c: E2 [10:55:11]MH_I2C_Read... [10:55:11]Read from MH i2c: E2 0B 00 [10:55:11]MH_I2C_Read... [10:55:11]Read from MH i2c: E2 0B 00 D5 02 00 BD 29 69 5F 5F 27 67 90 90 00 7E [10:55:11]RAPDU: BD 29 69 5F 5F 27 67 90 90 00 [10:55:11]wFMCommunicate OK [10:55:11]SAM_PROTO_SignData done [10:55:11]FM_MakeSignedData done [10:55:11]CreateOFDProtocolMessage [10:55:11]wFMCommunicate request_size=4 [10:55:11]MH_SAM_APDU [10:55:11]CAPDU: 80 11 00 00 [10:55:11]Write to MH i2c: E2 08 00 D6 02 80 11 00 00 00 00 00 00 52 [10:55:11]Write i2c OK [10:55:11]MH_I2C_Read... [10:55:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:11]Read from MH i2c: E2 [10:55:11]MH_I2C_Read... [10:55:11]Read from MH i2c: E2 17 00 [10:55:11]MH_I2C_Read... [10:55:11]Read from MH i2c: E2 17 00 D6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A7 [10:55:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:55:11]wFMCommunicate OK [10:55:11]CreateOFDProtocolMessage done [10:55:11]OFDSenderStorePacket 201382 [10:55:11]StoreOFDPacket docnum=201382 [10:55:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C9 D8 07 01 C6 CB 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 32 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 90 00 00 00 F4 03 04 00 8D CA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A6 12 03 00 35 04 06 00 BC B0 D4 85 57 54 BD 29 69 5F 5F 27 67 90 [10:55:11]CheckFolder [10:55:11]dirname=/storage/ofd_packets [10:55:11]CheckFolder done [10:55:11]ProducePacketName [10:55:11]name=ofd_packets/00201382 [10:55:11]NVStorageSaveData ofd_packets/00201382 [10:55:11]File name is /storage/ofd_packets/00201382 [10:55:11]Write 301 bytes [10:55:11]NVStorageSaveData done [10:55:11]OFDSenderStorePacket done [10:55:11]KKMCreateOFDPacket done [10:55:11]NVStorageSaveData kkm_last_timestamp [10:55:11]File name is /storage/kkm_last_timestamp [10:55:11]Write 4 bytes [10:55:11]NVStorageSaveData done [10:55:11]ExternCall_PrintAddStr [10:55:11]wPrintStart [10:55:11]Write to MH i2c: 01 00 00 D7 02 D9 [10:55:11]Write i2c OK [10:55:11]MH_I2C_Read... [10:55:11]Read from MH i2c: 01 [10:55:11]MH_I2C_Read... [10:55:11]Read from MH i2c: 01 07 00 [10:55:11]MH_I2C_Read... [10:55:11]Read from MH i2c: 01 07 00 D7 02 00 00 00 00 00 FF 0F EE [10:55:11]RasterBufferAndPrint [10:55:11]line Счет N : (1)449131 [10:55:11]line ИНН: 02508201610067 [10:55:11]line Контрольно-Кассовый Чек [10:55:11]line ПРОДАЖА [10:55:11]line ТРК (МРК, ГНК) : 41 [10:55:11]line Товар: 2710124130 [10:55:11]line Аи-92-К-2 [10:55:11]line 7.480 * 66.90 [10:55:11]line = 500.41 [10:55:11]line НДС 12% НСП 1% [10:55:11]line > о реализуемом товаре [10:55:11]line ОКРУГЛЕНИЕ: -0.41 [10:55:11]line ИТОГО: 500.00 [10:55:11]line Внесено: 500.00 [10:55:11]line СДАЧА: 0.00 [10:55:11]line НСП 1% : 4.43 [10:55:11]line НДС 12% : 53.14 [10:55:11]line Наличными: 500.00 [10:55:11]line Безнал.: 0.00 [10:55:11]line Место: АЗС № 171 "Партнер Нефть" [10:55:11]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:55:11]line СНО: Общий режим [10:55:11]line Чек 144 26.10.2024 10:55 [10:55:11]line Смена: 543 ФФД: 1.0 [10:55:11]line ЗНМ: 0300000109 [10:55:11]line РНМ: 0000000000091777 [10:55:11]line Версия ККМ: 001 [10:55:11]line ФМ: 0000000000871756 [10:55:11]line ФД: 201382 [10:55:11]line ФПД: 207467665774420 [10:55:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105509&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201382&fm=207467665774420&tin=02508201610067®Number=0000000000091777&sum=50000 [10:55:11]OFD Sender: Processing packet 201382 [packets to send 112, broken 111] [10:55:11]ProducePacketName [10:55:11]name=ofd_packets/00201382 [10:55:11]OFD Sender: To server: pG, [10:55:11]CommunicateWithHost lk.salyk.kg:30040 [10:55:11]ConnectInit lk.salyk.kg [10:55:11]written 0, free lines is 4095 [10:55:11]Connected sock=10 [10:55:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C9 D8 07 01 C6 CB 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 32 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 90 00 00 00 F4 03 04 00 8D CA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A6 12 03 00 35 04 06 00 BC B0 D4 85 57 54 BD 29 69 5F 5F 27 67 90 [10:55:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 85 08 47 00 43 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A6 12 03 00 F4 03 04 00 36 76 1C 67 B6 04 01 00 00 DB 97 B7 53 50 38 2F BD [10:55:11]CommunicateWithHost err = 0 [10:55:11]CheckOFDResponse [10:55:11]1017 (14) - 77093643461234 [10:55:11]1041 (16) - 0000000000871756 [10:55:11]1040 (4) - 201382 [10:55:11]1012 (4) - 26.10.2024 04:55 [10:55:11]1206 (1) - 0 [10:55:11]OFD Sender: Remove packet 201382 [10:55:11]ProducePacketName [10:55:11]name=ofd_packets/00201382 [10:55:11]NVStorageDeleteData [10:55:11]Write to MH i2c: 01 00 00 02 03 05 [10:55:11]Write i2c OK [10:55:11]MH_I2C_Read... [10:55:11]Read from MH i2c: 01 [10:55:11]MH_I2C_Read... [10:55:11]Read from MH i2c: 01 07 00 [10:55:11]MH_I2C_Read... [10:55:11]Read from MH i2c: 01 07 00 02 03 00 00 00 00 00 9B 0C B3 [10:55:11]RasterBufferAndPrint [10:55:11]line [10:55:11]line [10:55:11]line [10:55:11]line [10:55:11]line [10:55:11]written 0, free lines is 3232 [10:55:11]MH_Cut [10:55:11]Write to MH i2c: D1 01 00 09 03 01 DE [10:55:11]Write i2c OK [10:55:11]MH_I2C_Read... [10:55:11]Read from MH i2c: D1 [10:55:11]MH_I2C_Read... [10:55:11]Read from MH i2c: D1 01 00 [10:55:11]MH_I2C_Read... [10:55:11]Read from MH i2c: D1 01 00 09 03 00 DD [10:55:11]Write to MH i2c: 01 00 00 0A 03 0D [10:55:11]Write i2c OK [10:55:11]MH_I2C_Read... [10:55:12]OFD Sender: No OFD packet to send [10:55:12]*** Cut start [10:55:12]*** Purtial cut [10:55:12]*** Stage 1: CUTSNS_PIN = 1 [10:55:13]Read from MH i2c: 01 [10:55:13]MH_I2C_Read... [10:55:13]*** Stop cut motor [10:55:13]*** Cut end [10:55:13]Read from MH i2c: 01 07 00 [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: 01 07 00 0A 03 00 00 00 00 00 FF 0F 22 [10:55:13]process_action close_receipt done [10:55:13]requested_data is exist [10:55:13]produce_requested_data [10:55:13]requested_item fm.sn is exist - process it [10:55:13]wFMCommunicate request_size=4 [10:55:13]MH_SAM_APDU [10:55:13]CAPDU: 80 11 00 00 [10:55:13]Write to MH i2c: E2 08 00 0B 03 80 11 00 00 00 00 00 00 88 [10:55:13]Write i2c OK [10:55:13]MH_I2C_Read... [10:55:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:13]Read from MH i2c: E2 [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: E2 17 00 [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: E2 17 00 0B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DD [10:55:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:55:13]wFMCommunicate OK [10:55:13]requested_item fd.num is exist - process it [10:55:13]SAM_PROTO_GetFieldsCounters [10:55:13]wFMCommunicate request_size=4 [10:55:13]MH_SAM_APDU [10:55:13]CAPDU: 80 13 00 00 [10:55:13]Write to MH i2c: E2 08 00 0C 03 80 13 00 00 00 00 00 00 8B [10:55:13]Write i2c OK [10:55:13]MH_I2C_Read... [10:55:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:13]Read from MH i2c: E2 [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: E2 62 00 [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: E2 62 00 0C 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A6 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [10:55:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A6 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:55:13]wFMCommunicate OK [10:55:13]SAM_PROTO_GetFieldsCounters done [10:55:13]requested_item shift.num is exist - process it [10:55:13]requested_item shift.opened is exist - process it [10:55:13]req_shift_opened [10:55:13]FM_GetShiftState [10:55:13]SAM_PROTO_GetShiftState [10:55:13]wFMCommunicate request_size=4 [10:55:13]MH_SAM_APDU [10:55:13]CAPDU: 80 13 01 00 [10:55:13]Write to MH i2c: E2 08 00 0D 03 80 13 01 00 00 00 00 00 8D [10:55:13]Write i2c OK [10:55:13]MH_I2C_Read... [10:55:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:13]Read from MH i2c: E2 [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: E2 0E 00 [10:55:13]MH_I2C_Read... [10:55:13]Read from MH i2c: E2 0E 00 0D 03 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 9C [10:55:13]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:55:13]wFMCommunicate OK [10:55:13]SAM_PROTO_GetShiftState done [10:55:13]FM_GetShiftState done [10:55:13]req_shift_opened done [10:55:13]requested_item shift.open_date is exist - process it [10:55:13]req_shift_open_date [10:55:13]req_shift_open_date done [10:55:13]produce_requested_data done [10:55:13]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201382,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:55:13]process_action_free close_receipt [10:55:13]json_value_free [10:55:13]json_value_free done [10:55:13]process_json_proto returns [10:55:13]Send response to host [10:55:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201382,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:55:13]free response buf [10:55:13]execute_script done [10:55:13]execute_script returns [10:55:13]free content buf [10:55:13]Sock 7.Close socket [10:55:13]Sock 7.Thread stoped [10:55:17]OFD Sender: No OFD packet to send [10:55:22]OFD Sender: No OFD packet to send [10:55:27]OFD Sender: No OFD packet to send [10:55:32]OFD Sender: No OFD packet to send [10:55:37]OFD Sender: No OFD packet to send [10:55:42]OFD Sender: No OFD packet to send [10:55:47]OFD Sender: No OFD packet to send [10:55:52]OFD Sender: No OFD packet to send [10:55:57]OFD Sender: No OFD packet to send [10:56:02]OFD Sender: No OFD packet to send [10:56:03]accept exits with 9 [10:56:03]New connection [10:56:03]New thread 3066641764 created [10:56:03]Thread 3066498404 joined [10:56:03]Waiting for new connection... [10:56:03] Sock 9.Parse request [10:56:03]Sock 9.Check first char [10:56:03]Sock 9.First char is OK [10:56:03]request: POST /json_proto HTTP/1.0 [10:56:03]Method: POST [10:56:03]URL: /json_proto [10:56:03]Method is POST - this is cgi request [10:56:03]url: /json_proto [10:56:03]query_string will be loaded in cgi processing [10:56:03]execute_cgi json_proto POST (null) [10:56:03]execute_cgi path=json_proto method=POST [10:56:03]POST find Content-Length [10:56:03]Host: 172.17.63.195:8080 [10:56:03]Content-Length: 671 [10:56:03]Content-Type: application/json [10:56:03] [10:56:03]POST finish read [10:56:03]Found Content-Length = 671 [10:56:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "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" ] } } [10:56:03]execute_script... [10:56: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)449132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "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" ] } } [10:56:03]POST & json_proto [10:56:03]process_json_proto [10:56:03]json parsed OK: [10:56:03]protocol is kg_v1.0 [10:56:03]action value=close_receipt [10:56:03]process_action close_receipt [10:56:03]cmd_close_receipt [10:56:03]MH_GetDate [10:56:03]Write to MH i2c: F0 00 00 0E 03 00 [10:56:03]Write i2c OK [10:56:03]MH_I2C_Read... [10:56:03]Read from MH i2c: F0 [10:56:03]MH_I2C_Read... [10:56:03]Read from MH i2c: F0 09 00 [10:56:03]MH_I2C_Read... [10:56:03]Read from MH i2c: F0 09 00 0E 03 00 C3 CA 1C 67 68 46 19 67 47 [10:56:03]GetLastDocTimeStamp 1729940109 [10:56:03]current date 1729940163 [10:56:03]FM_GetShiftState [10:56:03]SAM_PROTO_GetShiftState [10:56:03]wFMCommunicate request_size=4 [10:56:03]MH_SAM_APDU [10:56:03]CAPDU: 80 13 01 00 [10:56:03]Write to MH i2c: E2 08 00 0F 03 80 13 01 00 00 00 00 00 8F [10:56:03]Write i2c OK [10:56:03]MH_I2C_Read... [10:56:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:03]Read from MH i2c: E2 [10:56:03]MH_I2C_Read... [10:56:03]Read from MH i2c: E2 0E 00 [10:56:03]MH_I2C_Read... [10:56:03]Read from MH i2c: E2 0E 00 0F 03 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 9E [10:56:03]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:56:03]wFMCommunicate OK [10:56:03]SAM_PROTO_GetShiftState done [10:56:03]FM_GetShiftState done [10:56:03]opened in 1729900879 [10:56:03]opened+sec_in_day 1729987279 [10:56:03]quantity*price = 70041 [10:56:03]sum+1 = 70043 [10:56:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 145 26.10.2024 10:56 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201383 ФПД: 133016502219111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105603&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201383&fm=133016502219111&tin=02508201610067®Number=0000000000091777&sum=70000 [10:56:04]StoreToDocumentArchive [10:56:04]shift 543 fd 201383 [10:56:04]save to /storage/0543/doc_00201383 [10:56:04]save last doc name /storage/0543/doc_00201383 to /storage/kkm_last_doc_name [10:56:04]save OK [10:56:04]Clear old archive folders... [10:56:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:56:04]tlvbuf is 0181CB10 [10:56:04]SAM_PROTO_ClearQueue [10:56:04]wFMCommunicate request_size=4 [10:56:04]MH_SAM_APDU [10:56:04]CAPDU: 80 09 00 00 [10:56:04]Write to MH i2c: E2 08 00 1C 03 80 09 00 00 00 00 00 00 91 [10:56:04]Write i2c OK [10:56:04]MH_I2C_Read... [10:56:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:04]Read from MH i2c: E2 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: E2 03 00 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: E2 03 00 1C 03 00 90 00 93 [10:56:04]RAPDU: 90 00 [10:56:04]wFMCommunicate OK [10:56:04]SAM_PROTO_ClearQueue done [10:56:04]KKMCreateOFDPacket [10:56:04]OFDProtocolAddRootSTLVToBuf [10:56:04]FM_MakeSignedData [10:56:04]FM_MakeSignedData [10:56:04]SAM_PROTO_SignData [10:56:04]wFMCommunicate request_size=4 [10:56:04]MH_SAM_APDU [10:56:04]CAPDU: 80 0D 01 02 [10:56:04]Write to MH i2c: E2 08 00 1D 03 80 0D 01 02 00 00 00 00 99 [10:56:04]Write i2c OK [10:56:04]MH_I2C_Read... [10:56:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:04]Read from MH i2c: E2 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: E2 03 00 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: E2 03 00 1D 03 00 90 00 94 [10:56:04]RAPDU: 90 00 [10:56:04]wFMCommunicate OK [10:56:04]wFMCommunicate request_size=255 [10:56:04]MH_SAM_APDU [10:56:04]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 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 91 00 00 00 F4 03 04 00 C3 CA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A7 12 03 00 35 04 06 00 [10:56:04]Write to MH i2c: E2 02 01 1E 03 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 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 91 00 00 00 F4 03 04 00 C3 CA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A7 12 03 00 35 04 06 00 00 00 09 [10:56:04]Write i2c OK [10:56:04]MH_I2C_Read... [10:56:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:04]Read from MH i2c: E2 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: E2 03 00 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: E2 03 00 1E 03 00 90 00 95 [10:56:04]RAPDU: 90 00 [10:56:04]wFMCommunicate OK [10:56:04]wFMCommunicate request_size=11 [10:56:04]MH_SAM_APDU [10:56:04]CAPDU: 80 0D 02 02 06 78 FA 51 5D 31 67 [10:56:04]Write to MH i2c: E2 0E 00 1F 03 80 0D 02 02 06 00 78 FA 51 5D 31 67 00 00 60 [10:56:04]Write i2c OK [10:56:04]MH_I2C_Read... [10:56:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:04]Read from MH i2c: E2 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: E2 03 00 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: E2 03 00 1F 03 00 90 00 96 [10:56:04]RAPDU: 90 00 [10:56:04]wFMCommunicate OK [10:56:04]wFMCommunicate request_size=4 [10:56:04]MH_SAM_APDU [10:56:04]CAPDU: 80 0D 03 02 [10:56:04]Write to MH i2c: E2 08 00 20 03 80 0D 03 02 00 00 00 00 9E [10:56:04]Write i2c OK [10:56:04]MH_I2C_Read... [10:56:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:04]Read from MH i2c: E2 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: E2 0B 00 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: E2 0B 00 20 03 00 42 A4 B1 2F BD E4 63 37 90 00 A0 [10:56:04]RAPDU: 42 A4 B1 2F BD E4 63 37 90 00 [10:56:04]wFMCommunicate OK [10:56:04]SAM_PROTO_SignData done [10:56:04]FM_MakeSignedData done [10:56:04]CreateOFDProtocolMessage [10:56:04]wFMCommunicate request_size=4 [10:56:04]MH_SAM_APDU [10:56:04]CAPDU: 80 11 00 00 [10:56:04]Write to MH i2c: E2 08 00 21 03 80 11 00 00 00 00 00 00 9E [10:56:04]Write i2c OK [10:56:04]MH_I2C_Read... [10:56:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:04]Read from MH i2c: E2 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: E2 17 00 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: E2 17 00 21 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F3 [10:56:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:56:04]wFMCommunicate OK [10:56:04]CreateOFDProtocolMessage done [10:56:04]OFDSenderStorePacket 201383 [10:56:04]StoreOFDPacket docnum=201383 [10:56:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 49 FA 08 01 5F 8B 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 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 91 00 00 00 F4 03 04 00 C3 CA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A7 12 03 00 35 04 06 00 78 FA 51 5D 31 67 42 A4 B1 2F BD E4 63 37 [10:56:04]CheckFolder [10:56:04]dirname=/storage/ofd_packets [10:56:04]CheckFolder done [10:56:04]ProducePacketName [10:56:04]name=ofd_packets/00201383 [10:56:04]NVStorageSaveData ofd_packets/00201383 [10:56:04]File name is /storage/ofd_packets/00201383 [10:56:04]Write 302 bytes [10:56:04]NVStorageSaveData done [10:56:04]OFDSenderStorePacket done [10:56:04]KKMCreateOFDPacket done [10:56:04]NVStorageSaveData kkm_last_timestamp [10:56:04]File name is /storage/kkm_last_timestamp [10:56:04]Write 4 bytes [10:56:04]NVStorageSaveData done [10:56:04]ExternCall_PrintAddStr [10:56:04]wPrintStart [10:56:04]Write to MH i2c: 01 00 00 22 03 25 [10:56:04]Write i2c OK [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: 01 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: 01 07 00 [10:56:04]MH_I2C_Read... [10:56:04]Read from MH i2c: 01 07 00 22 03 00 00 00 00 00 FF 0F 3A [10:56:04]RasterBufferAndPrint [10:56:04]line Счет N : (1)449132 [10:56:04]line ИНН: 02508201610067 [10:56:04]line Контрольно-Кассовый Чек [10:56:04]line ПРОДАЖА [10:56:04]line ТРК (МРК, ГНК) : 32 [10:56:04]line Товар: 2710124130 [10:56:04]line SUPER 92-К-5 [10:56:04]line 10.240 * 68.40 [10:56:04]line = 700.42 [10:56:04]line НДС 12% НСП 1% [10:56:04]line > о реализуемом товаре [10:56:04]line ОКРУГЛЕНИЕ: -0.42 [10:56:04]line ИТОГО: 700.00 [10:56:04]line Внесено: 700.00 [10:56:04]line СДАЧА: 0.00 [10:56:04]line НСП 1% : 6.20 [10:56:04]line НДС 12% : 74.38 [10:56:04]line Наличными: 700.00 [10:56:04]line Безнал.: 0.00 [10:56:04]line Место: АЗС № 171 "Партнер Нефть" [10:56:04]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:56:04]line СНО: Общий режим [10:56:04]line Чек 145 26.10.2024 10:56 [10:56:04]line Смена: 543 ФФД: 1.0 [10:56:04]line ЗНМ: 0300000109 [10:56:04]line РНМ: 0000000000091777 [10:56:04]line Версия ККМ: 001 [10:56:04]line ФМ: 0000000000871756 [10:56:04]line ФД: 201383 [10:56:04]line ФПД: 133016502219111 [10:56:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105603&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201383&fm=133016502219111&tin=02508201610067®Number=0000000000091777&sum=70000 [10:56:05]OFD Sender: Processing packet 201383 [packets to send 112, broken 111] [10:56:05]ProducePacketName [10:56:05]name=ofd_packets/00201383 [10:56:05]OFD Sender: To server: pG, [10:56:05]CommunicateWithHost lk.salyk.kg:30040 [10:56:05]ConnectInit lk.salyk.kg [10:56:05]written 0, free lines is 4095 [10:56:05]Connected sock=7 [10:56:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 49 FA 08 01 5F 8B 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 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 91 00 00 00 F4 03 04 00 C3 CA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A7 12 03 00 35 04 06 00 78 FA 51 5D 31 67 42 A4 B1 2F BD E4 63 37 [10:56:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 AD 4A 47 00 A6 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A7 12 03 00 F4 03 04 00 6C 76 1C 67 B6 04 01 00 00 69 DC 6A 7E 86 67 D0 C1 [10:56:05]CommunicateWithHost err = 0 [10:56:05]CheckOFDResponse [10:56:05]1017 (14) - 77093643461234 [10:56:05]1041 (16) - 0000000000871756 [10:56:05]1040 (4) - 201383 [10:56:05]1012 (4) - 26.10.2024 04:56 [10:56:05]1206 (1) - 0 [10:56:05]OFD Sender: Remove packet 201383 [10:56:05]ProducePacketName [10:56:05]name=ofd_packets/00201383 [10:56:05]NVStorageDeleteData [10:56:05]Write to MH i2c: 01 00 00 4D 03 50 [10:56:05]Write i2c OK [10:56:05]MH_I2C_Read... [10:56:05]Read from MH i2c: 01 [10:56:05]MH_I2C_Read... [10:56:05]Read from MH i2c: 01 07 00 [10:56:05]MH_I2C_Read... [10:56:05]Read from MH i2c: 01 07 00 4D 03 00 00 00 00 00 90 0C F3 [10:56:05]RasterBufferAndPrint [10:56:05]line [10:56:05]line [10:56:05]line [10:56:05]line [10:56:05]line [10:56:05]written 0, free lines is 3221 [10:56:05]MH_Cut [10:56:05]Write to MH i2c: D1 01 00 54 03 01 29 [10:56:05]Write i2c OK [10:56:05]MH_I2C_Read... [10:56:05]Read from MH i2c: D1 [10:56:05]MH_I2C_Read... [10:56:05]Read from MH i2c: D1 01 00 [10:56:05]MH_I2C_Read... [10:56:05]Read from MH i2c: D1 01 00 54 03 00 28 [10:56:05]Write to MH i2c: 01 00 00 55 03 58 [10:56:05]Write i2c OK [10:56:05]MH_I2C_Read... [10:56:06]OFD Sender: No OFD packet to send [10:56:06]*** Cut start [10:56:06]*** Purtial cut [10:56:06]*** Stage 1: CUTSNS_PIN = 1 [10:56:06]Read from MH i2c: 01 [10:56:06]MH_I2C_Read... [10:56:06]*** Stop cut motor [10:56:06]*** Cut end [10:56:06]Read from MH i2c: 01 07 00 [10:56:06]MH_I2C_Read... [10:56:06]Read from MH i2c: 01 07 00 55 03 00 00 00 00 00 FF 0F 6D [10:56:06]process_action close_receipt done [10:56:06]requested_data is exist [10:56:06]produce_requested_data [10:56:06]requested_item fm.sn is exist - process it [10:56:06]wFMCommunicate request_size=4 [10:56:06]MH_SAM_APDU [10:56:06]CAPDU: 80 11 00 00 [10:56:06]Write to MH i2c: E2 08 00 56 03 80 11 00 00 00 00 00 00 D3 [10:56:06]Write i2c OK [10:56:06]MH_I2C_Read... [10:56:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:06]Read from MH i2c: E2 [10:56:06]MH_I2C_Read... [10:56:06]Read from MH i2c: E2 17 00 [10:56:06]MH_I2C_Read... [10:56:06]Read from MH i2c: E2 17 00 56 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 28 [10:56:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:56:06]wFMCommunicate OK [10:56:06]requested_item fd.num is exist - process it [10:56:06]SAM_PROTO_GetFieldsCounters [10:56:06]wFMCommunicate request_size=4 [10:56:06]MH_SAM_APDU [10:56:06]CAPDU: 80 13 00 00 [10:56:06]Write to MH i2c: E2 08 00 57 03 80 13 00 00 00 00 00 00 D6 [10:56:06]Write i2c OK [10:56:06]MH_I2C_Read... [10:56:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:07]Read from MH i2c: E2 [10:56:07]MH_I2C_Read... [10:56:07]Read from MH i2c: E2 62 00 [10:56:07]MH_I2C_Read... [10:56:07]Read from MH i2c: E2 62 00 57 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A7 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [10:56:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A7 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:56:07]wFMCommunicate OK [10:56:07]SAM_PROTO_GetFieldsCounters done [10:56:07]requested_item shift.num is exist - process it [10:56:07]requested_item shift.opened is exist - process it [10:56:07]req_shift_opened [10:56:07]FM_GetShiftState [10:56:07]SAM_PROTO_GetShiftState [10:56:07]wFMCommunicate request_size=4 [10:56:07]MH_SAM_APDU [10:56:07]CAPDU: 80 13 01 00 [10:56:07]Write to MH i2c: E2 08 00 58 03 80 13 01 00 00 00 00 00 D8 [10:56:07]Write i2c OK [10:56:07]MH_I2C_Read... [10:56:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:07]Read from MH i2c: E2 [10:56:07]MH_I2C_Read... [10:56:07]Read from MH i2c: E2 0E 00 [10:56:07]MH_I2C_Read... [10:56:07]Read from MH i2c: E2 0E 00 58 03 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E7 [10:56:07]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:56:07]wFMCommunicate OK [10:56:07]SAM_PROTO_GetShiftState done [10:56:07]FM_GetShiftState done [10:56:07]req_shift_opened done [10:56:07]requested_item shift.open_date is exist - process it [10:56:07]req_shift_open_date [10:56:07]req_shift_open_date done [10:56:07]produce_requested_data done [10:56:07]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201383,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:56:07]process_action_free close_receipt [10:56:07]json_value_free [10:56:07]json_value_free done [10:56:07]process_json_proto returns [10:56:07]Send response to host [10:56:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201383,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:56:07]free response buf [10:56:07]execute_script done [10:56:07]execute_script returns [10:56:07]free content buf [10:56:07]Sock 9.Close socket [10:56:07]Sock 9.Thread stoped [10:56:11]OFD Sender: No OFD packet to send [10:56:16]OFD Sender: No OFD packet to send [10:56:21]OFD Sender: No OFD packet to send [10:56:26]OFD Sender: No OFD packet to send [10:56:31]OFD Sender: No OFD packet to send [10:56:36]OFD Sender: No OFD packet to send [10:56:41]OFD Sender: No OFD packet to send [10:56:46]OFD Sender: No OFD packet to send [10:56:51]OFD Sender: No OFD packet to send [10:56:52]accept exits with 10 [10:56:52]New connection [10:56:52]New thread 3066498404 created [10:56:52]Thread 3066641764 joined [10:56:52]Waiting for new connection... [10:56:52] Sock 10.Parse request [10:56:52]Sock 10.Check first char [10:56:52]Sock 10.First char is OK [10:56:52]request: POST /json_proto HTTP/1.0 [10:56:52]Method: POST [10:56:52]URL: /json_proto [10:56:52]Method is POST - this is cgi request [10:56:52]url: /json_proto [10:56:52]query_string will be loaded in cgi processing [10:56:52]execute_cgi json_proto POST (null) [10:56:52]execute_cgi path=json_proto method=POST [10:56:52]POST find Content-Length [10:56:52]Host: 172.17.63.195:8080 [10:56:52]Content-Length: 677 [10:56:52]Content-Type: application/json [10:56:52] [10:56:52]POST finish read [10:56:52]Found Content-Length = 677 [10:56:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:56:52]execute_script... [10:56: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)449133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:56:52]POST & json_proto [10:56:52]process_json_proto [10:56:52]json parsed OK: [10:56:52]protocol is kg_v1.0 [10:56:52]action value=close_receipt [10:56:52]process_action close_receipt [10:56:52]cmd_close_receipt [10:56:52]MH_GetDate [10:56:52]Write to MH i2c: F0 00 00 59 03 4B [10:56:52]Write i2c OK [10:56:52]MH_I2C_Read... [10:56:52]Read from MH i2c: F0 [10:56:52]MH_I2C_Read... [10:56:52]Read from MH i2c: F0 09 00 [10:56:52]MH_I2C_Read... [10:56:52]Read from MH i2c: F0 09 00 59 03 00 F4 CA 1C 67 68 46 19 67 C3 [10:56:52]GetLastDocTimeStamp 1729940163 [10:56:52]current date 1729940212 [10:56:52]FM_GetShiftState [10:56:52]SAM_PROTO_GetShiftState [10:56:52]wFMCommunicate request_size=4 [10:56:52]MH_SAM_APDU [10:56:52]CAPDU: 80 13 01 00 [10:56:52]Write to MH i2c: E2 08 00 5A 03 80 13 01 00 00 00 00 00 DA [10:56:52]Write i2c OK [10:56:52]MH_I2C_Read... [10:56:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:52]Read from MH i2c: E2 [10:56:52]MH_I2C_Read... [10:56:52]Read from MH i2c: E2 0E 00 [10:56:52]MH_I2C_Read... [10:56:52]Read from MH i2c: E2 0E 00 5A 03 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E9 [10:56:52]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:56:52]wFMCommunicate OK [10:56:52]SAM_PROTO_GetShiftState done [10:56:52]FM_GetShiftState done [10:56:52]opened in 1729900879 [10:56:52]opened+sec_in_day 1729987279 [10:56:52]quantity*price = 20003 [10:56:52]sum+1 = 20004 [10:56:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 146 26.10.2024 10:56 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201384 ФПД: 24815503446978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105652&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201384&fm=24815503446978&tin=02508201610067®Number=0000000000091777&sum=20000 [10:56:53]StoreToDocumentArchive [10:56:53]shift 543 fd 201384 [10:56:53]save to /storage/0543/doc_00201384 [10:56:53]save last doc name /storage/0543/doc_00201384 to /storage/kkm_last_doc_name [10:56:53]save OK [10:56:53]Clear old archive folders... [10:56:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:56:53]tlvbuf is 0181E510 [10:56:53]SAM_PROTO_ClearQueue [10:56:53]wFMCommunicate request_size=4 [10:56:53]MH_SAM_APDU [10:56:53]CAPDU: 80 09 00 00 [10:56:53]Write to MH i2c: E2 08 00 67 03 80 09 00 00 00 00 00 00 DC [10:56:53]Write i2c OK [10:56:53]MH_I2C_Read... [10:56:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:53]Read from MH i2c: E2 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: E2 03 00 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: E2 03 00 67 03 00 90 00 DE [10:56:53]RAPDU: 90 00 [10:56:53]wFMCommunicate OK [10:56:53]SAM_PROTO_ClearQueue done [10:56:53]KKMCreateOFDPacket [10:56:53]OFDProtocolAddRootSTLVToBuf [10:56:53]FM_MakeSignedData [10:56:53]FM_MakeSignedData [10:56:53]SAM_PROTO_SignData [10:56:53]wFMCommunicate request_size=4 [10:56:53]MH_SAM_APDU [10:56:53]CAPDU: 80 0D 01 02 [10:56:53]Write to MH i2c: E2 08 00 68 03 80 0D 01 02 00 00 00 00 E4 [10:56:53]Write i2c OK [10:56:53]MH_I2C_Read... [10:56:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:53]Read from MH i2c: E2 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: E2 03 00 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: E2 03 00 68 03 00 90 00 DF [10:56:53]RAPDU: 90 00 [10:56:53]wFMCommunicate OK [10:56:53]wFMCommunicate request_size=255 [10:56:53]MH_SAM_APDU [10:56:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 92 00 00 00 F4 03 04 00 F4 CA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A8 12 03 00 35 04 06 00 16 [10:56:53]Write to MH i2c: E2 02 01 69 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 32 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 92 00 00 00 F4 03 04 00 F4 CA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A8 12 03 00 35 04 06 00 16 00 00 01 [10:56:53]Write i2c OK [10:56:53]MH_I2C_Read... [10:56:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:54]Read from MH i2c: E2 [10:56:54]MH_I2C_Read... [10:56:54]Read from MH i2c: E2 03 00 [10:56:54]MH_I2C_Read... [10:56:54]Read from MH i2c: E2 03 00 69 03 00 90 00 E0 [10:56:54]RAPDU: 90 00 [10:56:54]wFMCommunicate OK [10:56:54]wFMCommunicate request_size=10 [10:56:54]MH_SAM_APDU [10:56:54]CAPDU: 80 0D 02 02 05 91 CF 44 93 C2 [10:56:54]Write to MH i2c: E2 0D 00 6A 03 80 0D 02 02 05 00 91 CF 44 93 C2 00 00 EA [10:56:54]Write i2c OK [10:56:54]MH_I2C_Read... [10:56:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:54]Read from MH i2c: E2 [10:56:54]MH_I2C_Read... [10:56:54]Read from MH i2c: E2 03 00 [10:56:54]MH_I2C_Read... [10:56:54]Read from MH i2c: E2 03 00 6A 03 00 90 00 E1 [10:56:54]RAPDU: 90 00 [10:56:54]wFMCommunicate OK [10:56:54]wFMCommunicate request_size=4 [10:56:54]MH_SAM_APDU [10:56:54]CAPDU: 80 0D 03 02 [10:56:54]Write to MH i2c: E2 08 00 6B 03 80 0D 03 02 00 00 00 00 E9 [10:56:54]Write i2c OK [10:56:54]MH_I2C_Read... [10:56:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:54]Read from MH i2c: E2 [10:56:54]MH_I2C_Read... [10:56:54]Read from MH i2c: E2 0B 00 [10:56:54]MH_I2C_Read... [10:56:54]Read from MH i2c: E2 0B 00 6B 03 00 A5 DC 79 35 D9 2C A4 43 90 00 05 [10:56:54]RAPDU: A5 DC 79 35 D9 2C A4 43 90 00 [10:56:54]wFMCommunicate OK [10:56:54]SAM_PROTO_SignData done [10:56:54]FM_MakeSignedData done [10:56:54]CreateOFDProtocolMessage [10:56:54]wFMCommunicate request_size=4 [10:56:54]MH_SAM_APDU [10:56:54]CAPDU: 80 11 00 00 [10:56:54]Write to MH i2c: E2 08 00 6C 03 80 11 00 00 00 00 00 00 E9 [10:56:54]Write i2c OK [10:56:54]MH_I2C_Read... [10:56:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:54]Read from MH i2c: E2 [10:56:54]MH_I2C_Read... [10:56:54]Read from MH i2c: E2 17 00 [10:56:54]MH_I2C_Read... [10:56:54]Read from MH i2c: E2 17 00 6C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3E [10:56:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:56:54]wFMCommunicate OK [10:56:54]CreateOFDProtocolMessage done [10:56:54]OFDSenderStorePacket 201384 [10:56:54]StoreOFDPacket docnum=201384 [10:56:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 BD 59 07 01 35 F4 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 32 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 92 00 00 00 F4 03 04 00 F4 CA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A8 12 03 00 35 04 06 00 16 91 CF 44 93 C2 A5 DC 79 35 D9 2C A4 43 [10:56:54]CheckFolder [10:56:54]dirname=/storage/ofd_packets [10:56:54]CheckFolder done [10:56:54]ProducePacketName [10:56:54]name=ofd_packets/00201384 [10:56:54]NVStorageSaveData ofd_packets/00201384 [10:56:54]File name is /storage/ofd_packets/00201384 [10:56:54]Write 301 bytes [10:56:54]NVStorageSaveData done [10:56:54]OFDSenderStorePacket done [10:56:54]KKMCreateOFDPacket done [10:56:54]NVStorageSaveData kkm_last_timestamp [10:56:54]File name is /storage/kkm_last_timestamp [10:56:54]Write 4 bytes [10:56:54]NVStorageSaveData done [10:56:54]ExternCall_PrintAddStr [10:56:54]wPrintStart [10:56:54]Write to MH i2c: 01 00 00 6D 03 70 [10:56:54]Write i2c OK [10:56:54]MH_I2C_Read... [10:56:54]Read from MH i2c: 01 [10:56:54]MH_I2C_Read... [10:56:54]Read from MH i2c: 01 07 00 [10:56:54]MH_I2C_Read... [10:56:54]Read from MH i2c: 01 07 00 6D 03 00 00 00 00 00 FF 0F 85 [10:56:54]RasterBufferAndPrint [10:56:54]line Счет N : (1)449133 [10:56:54]line ИНН: 02508201610067 [10:56:54]line Контрольно-Кассовый Чек [10:56:54]line ПРОДАЖА [10:56:54]line ТРК (МРК, ГНК) : 41 [10:56:54]line Товар: 2710124130 [10:56:54]line Аи-92-К-2 [10:56:54]line 2.990 * 66.90 [10:56:54]line = 200.03 [10:56:54]line НДС 12% НСП 1% [10:56:54]line > о реализуемом товаре [10:56:54]line ОКРУГЛЕНИЕ: -0.03 [10:56:54]line ИТОГО: 200.00 [10:56:54]line Внесено: 200.00 [10:56:54]line СДАЧА: 0.00 [10:56:54]line НСП 1% : 1.77 [10:56:54]line НДС 12% : 21.24 [10:56:54]line Наличными: 200.00 [10:56:54]line Безнал.: 0.00 [10:56:54]line Место: АЗС № 171 "Партнер Нефть" [10:56:54]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:56:54]line СНО: Общий режим [10:56:54]line Чек 146 26.10.2024 10:56 [10:56:54]line Смена: 543 ФФД: 1.0 [10:56:54]line ЗНМ: 0300000109 [10:56:54]line РНМ: 0000000000091777 [10:56:54]line Версия ККМ: 001 [10:56:54]line ФМ: 0000000000871756 [10:56:54]line ФД: 201384 [10:56:54]line ФПД: 24815503446978 [10:56:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105652&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201384&fm=24815503446978&tin=02508201610067®Number=0000000000091777&sum=20000 [10:56:54]OFD Sender: Processing packet 201384 [packets to send 112, broken 111] [10:56:54]ProducePacketName [10:56:54]name=ofd_packets/00201384 [10:56:54]OFD Sender: To server: pG, [10:56:54]CommunicateWithHost lk.salyk.kg:30040 [10:56:54]ConnectInit lk.salyk.kg [10:56:54]written 0, free lines is 4095 [10:56:54]Connected sock=9 [10:56:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 BD 59 07 01 35 F4 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 32 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 92 00 00 00 F4 03 04 00 F4 CA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A8 12 03 00 35 04 06 00 16 91 CF 44 93 C2 A5 DC 79 35 D9 2C A4 43 [10:56:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 BA D6 47 00 46 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A8 12 03 00 F4 03 04 00 9E 76 1C 67 B6 04 01 00 00 64 D9 19 2A 7D 48 AB 8C [10:56:54]CommunicateWithHost err = 0 [10:56:54]CheckOFDResponse [10:56:54]1017 (14) - 77093643461234 [10:56:54]1041 (16) - 0000000000871756 [10:56:54]1040 (4) - 201384 [10:56:54]1012 (4) - 26.10.2024 04:57 [10:56:54]1206 (1) - 0 [10:56:54]OFD Sender: Remove packet 201384 [10:56:54]ProducePacketName [10:56:54]name=ofd_packets/00201384 [10:56:54]NVStorageDeleteData [10:56:55]Write to MH i2c: 01 00 00 98 03 9B [10:56:55]Write i2c OK [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: 01 [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: 01 07 00 [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: 01 07 00 98 03 00 00 00 00 00 99 0C 47 [10:56:55]RasterBufferAndPrint [10:56:55]line [10:56:55]line [10:56:55]line [10:56:55]line [10:56:55]line [10:56:55]written 0, free lines is 3232 [10:56:55]MH_Cut [10:56:55]Write to MH i2c: D1 01 00 9F 03 01 74 [10:56:55]Write i2c OK [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: D1 [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: D1 01 00 [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: D1 01 00 9F 03 00 73 [10:56:55]Write to MH i2c: 01 00 00 A0 03 A3 [10:56:55]Write i2c OK [10:56:55]MH_I2C_Read... [10:56:55]OFD Sender: No OFD packet to send [10:56:55]*** Cut start [10:56:55]*** Purtial cut [10:56:55]*** Stage 1: CUTSNS_PIN = 1 [10:56:56]Read from MH i2c: 01 [10:56:56]MH_I2C_Read... [10:56:56]*** Stop cut motor [10:56:56]*** Cut end [10:56:56]Read from MH i2c: 01 07 00 [10:56:56]MH_I2C_Read... [10:56:56]Read from MH i2c: 01 07 00 A0 03 00 00 00 00 00 FF 0F B8 [10:56:56]process_action close_receipt done [10:56:56]requested_data is exist [10:56:56]produce_requested_data [10:56:56]requested_item fm.sn is exist - process it [10:56:56]wFMCommunicate request_size=4 [10:56:56]MH_SAM_APDU [10:56:56]CAPDU: 80 11 00 00 [10:56:56]Write to MH i2c: E2 08 00 A1 03 80 11 00 00 00 00 00 00 1E [10:56:56]Write i2c OK [10:56:56]MH_I2C_Read... [10:56:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:56]Read from MH i2c: E2 [10:56:56]MH_I2C_Read... [10:56:56]Read from MH i2c: E2 17 00 [10:56:56]MH_I2C_Read... [10:56:56]Read from MH i2c: E2 17 00 A1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 73 [10:56:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:56:56]wFMCommunicate OK [10:56:56]requested_item fd.num is exist - process it [10:56:56]SAM_PROTO_GetFieldsCounters [10:56:56]wFMCommunicate request_size=4 [10:56:56]MH_SAM_APDU [10:56:56]CAPDU: 80 13 00 00 [10:56:56]Write to MH i2c: E2 08 00 A2 03 80 13 00 00 00 00 00 00 21 [10:56:56]Write i2c OK [10:56:56]MH_I2C_Read... [10:56:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:56]Read from MH i2c: E2 [10:56:56]MH_I2C_Read... [10:56:56]Read from MH i2c: E2 62 00 [10:56:56]MH_I2C_Read... [10:56:56]Read from MH i2c: E2 62 00 A2 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A8 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [10:56:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A8 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:56:56]wFMCommunicate OK [10:56:56]SAM_PROTO_GetFieldsCounters done [10:56:56]requested_item shift.num is exist - process it [10:56:56]requested_item shift.opened is exist - process it [10:56:56]req_shift_opened [10:56:56]FM_GetShiftState [10:56:56]SAM_PROTO_GetShiftState [10:56:56]wFMCommunicate request_size=4 [10:56:56]MH_SAM_APDU [10:56:56]CAPDU: 80 13 01 00 [10:56:56]Write to MH i2c: E2 08 00 A3 03 80 13 01 00 00 00 00 00 23 [10:56:56]Write i2c OK [10:56:56]MH_I2C_Read... [10:56:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:56]Read from MH i2c: E2 [10:56:56]MH_I2C_Read... [10:56:56]Read from MH i2c: E2 0E 00 [10:56:56]MH_I2C_Read... [10:56:56]Read from MH i2c: E2 0E 00 A3 03 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 32 [10:56:56]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:56:56]wFMCommunicate OK [10:56:56]SAM_PROTO_GetShiftState done [10:56:56]FM_GetShiftState done [10:56:56]req_shift_opened done [10:56:56]requested_item shift.open_date is exist - process it [10:56:56]req_shift_open_date [10:56:56]req_shift_open_date done [10:56:56]produce_requested_data done [10:56:56]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201384,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:56:56]process_action_free close_receipt [10:56:56]json_value_free [10:56:56]json_value_free done [10:56:56]process_json_proto returns [10:56:56]Send response to host [10:56:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201384,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:56:56]free response buf [10:56:56]execute_script done [10:56:56]execute_script returns [10:56:56]free content buf [10:56:56]Sock 10.Close socket [10:56:56]Sock 10.Thread stoped [10:57:00]OFD Sender: No OFD packet to send [10:57:05]OFD Sender: No OFD packet to send [10:57:10]OFD Sender: No OFD packet to send [10:57:15]OFD Sender: No OFD packet to send [10:57:20]OFD Sender: No OFD packet to send [10:57:25]OFD Sender: No OFD packet to send [10:57:30]OFD Sender: No OFD packet to send [10:57:35]OFD Sender: No OFD packet to send [10:57:40]OFD Sender: No OFD packet to send [10:57:45]OFD Sender: No OFD packet to send [10:57:50]OFD Sender: No OFD packet to send [10:57:55]OFD Sender: No OFD packet to send [10:58:00]OFD Sender: No OFD packet to send [10:58:05]OFD Sender: No OFD packet to send [10:58:07]accept exits with 7 [10:58:07]New connection [10:58:07]New thread 3066641764 created [10:58:07]Thread 3066498404 joined [10:58:07]Waiting for new connection... [10:58:07] Sock 7.Parse request [10:58:07]Sock 7.Check first char [10:58:07]Sock 7.First char is OK [10:58:07]request: POST /json_proto HTTP/1.0 [10:58:07]Method: POST [10:58:07]URL: /json_proto [10:58:07]Method is POST - this is cgi request [10:58:07]url: /json_proto [10:58:07]query_string will be loaded in cgi processing [10:58:07]execute_cgi json_proto POST (null) [10:58:07]execute_cgi path=json_proto method=POST [10:58:07]POST find Content-Length [10:58:07]Host: 172.17.63.195:8080 [10:58:07]Content-Length: 677 [10:58:07]Content-Type: application/json [10:58:07] [10:58:07]POST finish read [10:58:07]Found Content-Length = 677 [10:58:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:58:07]execute_script... [10:58:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [10:58:07]POST & json_proto [10:58:07]process_json_proto [10:58:07]json parsed OK: [10:58:07]protocol is kg_v1.0 [10:58:07]action value=close_receipt [10:58:07]process_action close_receipt [10:58:07]cmd_close_receipt [10:58:07]MH_GetDate [10:58:07]Write to MH i2c: F0 00 00 A4 03 96 [10:58:07]Write i2c OK [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: F0 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: F0 09 00 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: F0 09 00 A4 03 00 40 CB 1C 67 68 46 19 67 5B [10:58:07]GetLastDocTimeStamp 1729940212 [10:58:07]current date 1729940288 [10:58:07]FM_GetShiftState [10:58:07]SAM_PROTO_GetShiftState [10:58:07]wFMCommunicate request_size=4 [10:58:07]MH_SAM_APDU [10:58:07]CAPDU: 80 13 01 00 [10:58:07]Write to MH i2c: E2 08 00 A5 03 80 13 01 00 00 00 00 00 25 [10:58:07]Write i2c OK [10:58:07]MH_I2C_Read... [10:58:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:07]Read from MH i2c: E2 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 0E 00 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 0E 00 A5 03 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 34 [10:58:07]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:58:07]wFMCommunicate OK [10:58:07]SAM_PROTO_GetShiftState done [10:58:07]FM_GetShiftState done [10:58:07]opened in 1729900879 [10:58:07]opened+sec_in_day 1729987279 [10:58:07]quantity*price = 50041 [10:58:07]sum+1 = 50042 [10:58:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 147 26.10.2024 10:58 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201385 ФПД: 120859423864149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105808&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201385&fm=120859423864149&tin=02508201610067®Number=0000000000091777&sum=50000 [10:58:09]StoreToDocumentArchive [10:58:09]shift 543 fd 201385 [10:58:09]save to /storage/0543/doc_00201385 [10:58:09]save last doc name /storage/0543/doc_00201385 to /storage/kkm_last_doc_name [10:58:09]save OK [10:58:09]Clear old archive folders... [10:58:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:58:09]tlvbuf is 01792F40 [10:58:09]SAM_PROTO_ClearQueue [10:58:09]wFMCommunicate request_size=4 [10:58:09]MH_SAM_APDU [10:58:09]CAPDU: 80 09 00 00 [10:58:09]Write to MH i2c: E2 08 00 B2 03 80 09 00 00 00 00 00 00 27 [10:58:09]Write i2c OK [10:58:09]MH_I2C_Read... [10:58:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:09]Read from MH i2c: E2 [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: E2 03 00 [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: E2 03 00 B2 03 00 90 00 29 [10:58:09]RAPDU: 90 00 [10:58:09]wFMCommunicate OK [10:58:09]SAM_PROTO_ClearQueue done [10:58:09]KKMCreateOFDPacket [10:58:09]OFDProtocolAddRootSTLVToBuf [10:58:09]FM_MakeSignedData [10:58:09]FM_MakeSignedData [10:58:09]SAM_PROTO_SignData [10:58:09]wFMCommunicate request_size=4 [10:58:09]MH_SAM_APDU [10:58:09]CAPDU: 80 0D 01 02 [10:58:09]Write to MH i2c: E2 08 00 B3 03 80 0D 01 02 00 00 00 00 2F [10:58:09]Write i2c OK [10:58:09]MH_I2C_Read... [10:58:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:09]Read from MH i2c: E2 [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: E2 03 00 [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: E2 03 00 B3 03 00 90 00 2A [10:58:09]RAPDU: 90 00 [10:58:09]wFMCommunicate OK [10:58:09]wFMCommunicate request_size=255 [10:58:09]MH_SAM_APDU [10:58:09]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 32 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 93 00 00 00 F4 03 04 00 40 CB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A9 12 03 00 35 04 06 00 6D [10:58:09]Write to MH i2c: E2 02 01 B4 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 32 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 93 00 00 00 F4 03 04 00 40 CB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A9 12 03 00 35 04 06 00 6D 00 00 30 [10:58:09]Write i2c OK [10:58:09]MH_I2C_Read... [10:58:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:09]Read from MH i2c: E2 [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: E2 03 00 [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: E2 03 00 B4 03 00 90 00 2B [10:58:09]RAPDU: 90 00 [10:58:09]wFMCommunicate OK [10:58:09]wFMCommunicate request_size=10 [10:58:09]MH_SAM_APDU [10:58:09]CAPDU: 80 0D 02 02 05 EB C7 06 F5 55 [10:58:09]Write to MH i2c: E2 0D 00 B5 03 80 0D 02 02 05 00 EB C7 06 F5 55 00 00 3E [10:58:09]Write i2c OK [10:58:09]MH_I2C_Read... [10:58:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:09]Read from MH i2c: E2 [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: E2 03 00 [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: E2 03 00 B5 03 00 90 00 2C [10:58:09]RAPDU: 90 00 [10:58:09]wFMCommunicate OK [10:58:09]wFMCommunicate request_size=4 [10:58:09]MH_SAM_APDU [10:58:09]CAPDU: 80 0D 03 02 [10:58:09]Write to MH i2c: E2 08 00 B6 03 80 0D 03 02 00 00 00 00 34 [10:58:09]Write i2c OK [10:58:09]MH_I2C_Read... [10:58:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:09]Read from MH i2c: E2 [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: E2 0B 00 [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: E2 0B 00 B6 03 00 61 FD B5 0B 40 0D 33 82 90 00 55 [10:58:09]RAPDU: 61 FD B5 0B 40 0D 33 82 90 00 [10:58:09]wFMCommunicate OK [10:58:09]SAM_PROTO_SignData done [10:58:09]FM_MakeSignedData done [10:58:09]CreateOFDProtocolMessage [10:58:09]wFMCommunicate request_size=4 [10:58:09]MH_SAM_APDU [10:58:09]CAPDU: 80 11 00 00 [10:58:09]Write to MH i2c: E2 08 00 B7 03 80 11 00 00 00 00 00 00 34 [10:58:09]Write i2c OK [10:58:09]MH_I2C_Read... [10:58:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:09]Read from MH i2c: E2 [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: E2 17 00 [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: E2 17 00 B7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 89 [10:58:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:58:09]wFMCommunicate OK [10:58:09]CreateOFDProtocolMessage done [10:58:09]OFDSenderStorePacket 201385 [10:58:09]StoreOFDPacket docnum=201385 [10:58:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A4 5E 07 01 46 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 32 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 93 00 00 00 F4 03 04 00 40 CB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A9 12 03 00 35 04 06 00 6D EB C7 06 F5 55 61 FD B5 0B 40 0D 33 82 [10:58:09]CheckFolder [10:58:09]dirname=/storage/ofd_packets [10:58:09]CheckFolder done [10:58:09]ProducePacketName [10:58:09]name=ofd_packets/00201385 [10:58:09]NVStorageSaveData ofd_packets/00201385 [10:58:09]File name is /storage/ofd_packets/00201385 [10:58:09]Write 301 bytes [10:58:09]NVStorageSaveData done [10:58:09]OFDSenderStorePacket done [10:58:09]KKMCreateOFDPacket done [10:58:09]NVStorageSaveData kkm_last_timestamp [10:58:09]File name is /storage/kkm_last_timestamp [10:58:09]Write 4 bytes [10:58:09]NVStorageSaveData done [10:58:09]ExternCall_PrintAddStr [10:58:09]wPrintStart [10:58:09]Write to MH i2c: 01 00 00 B8 03 BB [10:58:09]Write i2c OK [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: 01 [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: 01 07 00 [10:58:09]MH_I2C_Read... [10:58:09]Read from MH i2c: 01 07 00 B8 03 00 00 00 00 00 FF 0F D0 [10:58:09]RasterBufferAndPrint [10:58:09]line Счет N : (1)449134 [10:58:09]line ИНН: 02508201610067 [10:58:09]line Контрольно-Кассовый Чек [10:58:09]line ПРОДАЖА [10:58:09]line ТРК (МРК, ГНК) : 62 [10:58:09]line Товар: 2710124130 [10:58:09]line Аи-92-К-2 [10:58:09]line 7.480 * 66.90 [10:58:09]line = 500.41 [10:58:09]line НДС 12% НСП 1% [10:58:09]line > о реализуемом товаре [10:58:09]line ОКРУГЛЕНИЕ: -0.41 [10:58:09]line ИТОГО: 500.00 [10:58:09]line Внесено: 500.00 [10:58:09]line СДАЧА: 0.00 [10:58:09]line НСП 1% : 4.43 [10:58:09]line НДС 12% : 53.14 [10:58:09]line Наличными: 500.00 [10:58:09]line Безнал.: 0.00 [10:58:09]line Место: АЗС № 171 "Партнер Нефть" [10:58:09]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:58:09]line СНО: Общий режим [10:58:09]line Чек 147 26.10.2024 10:58 [10:58:09]line Смена: 543 ФФД: 1.0 [10:58:09]line ЗНМ: 0300000109 [10:58:09]line РНМ: 0000000000091777 [10:58:09]line Версия ККМ: 001 [10:58:09]line ФМ: 0000000000871756 [10:58:09]line ФД: 201385 [10:58:09]line ФПД: 120859423864149 [10:58:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105808&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201385&fm=120859423864149&tin=02508201610067®Number=0000000000091777&sum=50000 [10:58:09]OFD Sender: Processing packet 201385 [packets to send 112, broken 111] [10:58:09]ProducePacketName [10:58:09]name=ofd_packets/00201385 [10:58:09]OFD Sender: To server: pG, [10:58:09]CommunicateWithHost lk.salyk.kg:30040 [10:58:09]ConnectInit lk.salyk.kg [10:58:09]written 0, free lines is 4095 [10:58:10]Connected sock=10 [10:58:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A4 5E 07 01 46 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 32 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 93 00 00 00 F4 03 04 00 40 CB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A9 12 03 00 35 04 06 00 6D EB C7 06 F5 55 61 FD B5 0B 40 0D 33 82 [10:58:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D6 2C 47 00 66 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A9 12 03 00 F4 03 04 00 E9 76 1C 67 B6 04 01 00 00 7E 08 0A 12 0C D0 87 E5 [10:58:10]CommunicateWithHost err = 0 [10:58:10]CheckOFDResponse [10:58:10]1017 (14) - 77093643461234 [10:58:10]1041 (16) - 0000000000871756 [10:58:10]1040 (4) - 201385 [10:58:10]1012 (4) - 26.10.2024 04:58 [10:58:10]1206 (1) - 0 [10:58:10]OFD Sender: Remove packet 201385 [10:58:10]ProducePacketName [10:58:10]name=ofd_packets/00201385 [10:58:10]NVStorageDeleteData [10:58:10]Write to MH i2c: 01 00 00 E3 03 E6 [10:58:10]Write i2c OK [10:58:10]MH_I2C_Read... [10:58:10]Read from MH i2c: 01 [10:58:10]MH_I2C_Read... [10:58:10]Read from MH i2c: 01 07 00 [10:58:10]MH_I2C_Read... [10:58:10]Read from MH i2c: 01 07 00 E3 03 00 00 00 00 00 96 0C 8F [10:58:10]RasterBufferAndPrint [10:58:10]line [10:58:10]line [10:58:10]line [10:58:10]line [10:58:10]line [10:58:10]written 0, free lines is 3227 [10:58:10]MH_Cut [10:58:10]Write to MH i2c: D1 01 00 EA 03 01 BF [10:58:10]Write i2c OK [10:58:10]MH_I2C_Read... [10:58:10]Read from MH i2c: D1 [10:58:10]MH_I2C_Read... [10:58:10]Read from MH i2c: D1 01 00 [10:58:10]MH_I2C_Read... [10:58:10]Read from MH i2c: D1 01 00 EA 03 00 BE [10:58:10]Write to MH i2c: 01 00 00 EB 03 EE [10:58:10]Write i2c OK [10:58:10]MH_I2C_Read... [10:58:10]OFD Sender: No OFD packet to send [10:58:11]*** Cut start [10:58:11]*** Purtial cut [10:58:11]*** Stage 1: CUTSNS_PIN = 1 [10:58:11]Read from MH i2c: 01 [10:58:11]MH_I2C_Read... [10:58:11]*** Stop cut motor [10:58:11]*** Cut end [10:58:11]Read from MH i2c: 01 07 00 [10:58:11]MH_I2C_Read... [10:58:11]Read from MH i2c: 01 07 00 EB 03 00 00 00 00 00 FF 0F 03 [10:58:11]process_action close_receipt done [10:58:11]requested_data is exist [10:58:11]produce_requested_data [10:58:11]requested_item fm.sn is exist - process it [10:58:11]wFMCommunicate request_size=4 [10:58:11]MH_SAM_APDU [10:58:11]CAPDU: 80 11 00 00 [10:58:11]Write to MH i2c: E2 08 00 EC 03 80 11 00 00 00 00 00 00 69 [10:58:11]Write i2c OK [10:58:11]MH_I2C_Read... [10:58:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:11]Read from MH i2c: E2 [10:58:11]MH_I2C_Read... [10:58:11]Read from MH i2c: E2 17 00 [10:58:11]MH_I2C_Read... [10:58:11]Read from MH i2c: E2 17 00 EC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BE [10:58:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:58:11]wFMCommunicate OK [10:58:11]requested_item fd.num is exist - process it [10:58:11]SAM_PROTO_GetFieldsCounters [10:58:11]wFMCommunicate request_size=4 [10:58:11]MH_SAM_APDU [10:58:11]CAPDU: 80 13 00 00 [10:58:11]Write to MH i2c: E2 08 00 ED 03 80 13 00 00 00 00 00 00 6C [10:58:11]Write i2c OK [10:58:11]MH_I2C_Read... [10:58:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:11]Read from MH i2c: E2 [10:58:11]MH_I2C_Read... [10:58:11]Read from MH i2c: E2 62 00 [10:58:11]MH_I2C_Read... [10:58:11]Read from MH i2c: E2 62 00 ED 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A9 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [10:58:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A9 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:58:11]wFMCommunicate OK [10:58:11]SAM_PROTO_GetFieldsCounters done [10:58:11]requested_item shift.num is exist - process it [10:58:11]requested_item shift.opened is exist - process it [10:58:11]req_shift_opened [10:58:11]FM_GetShiftState [10:58:11]SAM_PROTO_GetShiftState [10:58:11]wFMCommunicate request_size=4 [10:58:11]MH_SAM_APDU [10:58:11]CAPDU: 80 13 01 00 [10:58:11]Write to MH i2c: E2 08 00 EE 03 80 13 01 00 00 00 00 00 6E [10:58:11]Write i2c OK [10:58:11]MH_I2C_Read... [10:58:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:11]Read from MH i2c: E2 [10:58:11]MH_I2C_Read... [10:58:11]Read from MH i2c: E2 0E 00 [10:58:11]MH_I2C_Read... [10:58:11]Read from MH i2c: E2 0E 00 EE 03 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 7D [10:58:11]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:58:11]wFMCommunicate OK [10:58:11]SAM_PROTO_GetShiftState done [10:58:11]FM_GetShiftState done [10:58:11]req_shift_opened done [10:58:11]requested_item shift.open_date is exist - process it [10:58:11]req_shift_open_date [10:58:11]req_shift_open_date done [10:58:11]produce_requested_data done [10:58:11]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201385,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:58:11]process_action_free close_receipt [10:58:11]json_value_free [10:58:11]json_value_free done [10:58:11]process_json_proto returns [10:58:11]Send response to host [10:58:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201385,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:58:11]free response buf [10:58:11]execute_script done [10:58:11]execute_script returns [10:58:11]free content buf [10:58:11]Sock 7.Close socket [10:58:11]Sock 7.Thread stoped [10:58:15]OFD Sender: No OFD packet to send [10:58:20]OFD Sender: No OFD packet to send [10:58:25]OFD Sender: No OFD packet to send [10:58:30]OFD Sender: No OFD packet to send [10:58:35]OFD Sender: No OFD packet to send [10:58:40]OFD Sender: No OFD packet to send [10:58:45]OFD Sender: No OFD packet to send [10:58:50]OFD Sender: No OFD packet to send [10:58:55]OFD Sender: No OFD packet to send [10:59:00]OFD Sender: No OFD packet to send [10:59:05]OFD Sender: No OFD packet to send [10:59:10]OFD Sender: No OFD packet to send [10:59:15]OFD Sender: No OFD packet to send [10:59:20]OFD Sender: No OFD packet to send [10:59:25]OFD Sender: No OFD packet to send [10:59:30]OFD Sender: No OFD packet to send [10:59:35]OFD Sender: No OFD packet to send [10:59:40]OFD Sender: No OFD packet to send [10:59:40]accept exits with 9 [10:59:40]New connection [10:59:40]New thread 3066498404 created [10:59:40]Thread 3066641764 joined [10:59:40]Waiting for new connection... [10:59:40] Sock 9.Parse request [10:59:40]Sock 9.Check first char [10:59:40]Sock 9.First char is OK [10:59:40]request: POST /json_proto HTTP/1.0 [10:59:40]Method: POST [10:59:40]URL: /json_proto [10:59:40]Method is POST - this is cgi request [10:59:40]url: /json_proto [10:59:40]query_string will be loaded in cgi processing [10:59:40]execute_cgi json_proto POST (null) [10:59:40]execute_cgi path=json_proto method=POST [10:59:40]POST find Content-Length [10:59:40]Host: 172.17.63.195:8080 [10:59:40]Content-Length: 678 [10:59:40]Content-Type: application/json [10:59:40] [10:59:40]POST finish read [10:59:40]Found Content-Length = 678 [10:59:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [10:59:40]execute_script... [10:59:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [10:59:40]POST & json_proto [10:59:40]process_json_proto [10:59:40]json parsed OK: [10:59:40]protocol is kg_v1.0 [10:59:40]action value=close_receipt [10:59:40]process_action close_receipt [10:59:40]cmd_close_receipt [10:59:40]MH_GetDate [10:59:40]Write to MH i2c: F0 00 00 EF 03 E1 [10:59:40]Write i2c OK [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: F0 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: F0 09 00 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: F0 09 00 EF 03 00 9D CB 1C 67 68 46 19 67 03 [10:59:40]GetLastDocTimeStamp 1729940288 [10:59:40]current date 1729940381 [10:59:40]FM_GetShiftState [10:59:40]SAM_PROTO_GetShiftState [10:59:40]wFMCommunicate request_size=4 [10:59:40]MH_SAM_APDU [10:59:40]CAPDU: 80 13 01 00 [10:59:40]Write to MH i2c: E2 08 00 F0 03 80 13 01 00 00 00 00 00 70 [10:59:40]Write i2c OK [10:59:40]MH_I2C_Read... [10:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:41]Read from MH i2c: E2 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 0E 00 [10:59:41]MH_I2C_Read... [10:59:41]Read from MH i2c: E2 0E 00 F0 03 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 7F [10:59:41]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:59:41]wFMCommunicate OK [10:59:41]SAM_PROTO_GetShiftState done [10:59:41]FM_GetShiftState done [10:59:41]opened in 1729900879 [10:59:41]opened+sec_in_day 1729987279 [10:59:41]quantity*price = 70044 [10:59:41]sum+1 = 70045 [10:59:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 148 26.10.2024 10:59 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201386 ФПД: 66371842856892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105941&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201386&fm=66371842856892&tin=02508201610067®Number=0000000000091777&sum=70000 [10:59:42]StoreToDocumentArchive [10:59:42]shift 543 fd 201386 [10:59:42]save to /storage/0543/doc_00201386 [10:59:42]save last doc name /storage/0543/doc_00201386 to /storage/kkm_last_doc_name [10:59:42]save OK [10:59:42]Clear old archive folders... [10:59:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:42]tlvbuf is 01780500 [10:59:42]SAM_PROTO_ClearQueue [10:59:42]wFMCommunicate request_size=4 [10:59:42]MH_SAM_APDU [10:59:42]CAPDU: 80 09 00 00 [10:59:42]Write to MH i2c: E2 08 00 FD 03 80 09 00 00 00 00 00 00 72 [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:42]Read from MH i2c: E2 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 03 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 03 00 FD 03 00 90 00 74 [10:59:42]RAPDU: 90 00 [10:59:42]wFMCommunicate OK [10:59:42]SAM_PROTO_ClearQueue done [10:59:42]KKMCreateOFDPacket [10:59:42]OFDProtocolAddRootSTLVToBuf [10:59:42]FM_MakeSignedData [10:59:42]FM_MakeSignedData [10:59:42]SAM_PROTO_SignData [10:59:42]wFMCommunicate request_size=4 [10:59:42]MH_SAM_APDU [10:59:42]CAPDU: 80 0D 01 02 [10:59:42]Write to MH i2c: E2 08 00 FE 03 80 0D 01 02 00 00 00 00 7A [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:42]Read from MH i2c: E2 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 03 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 03 00 FE 03 00 90 00 75 [10:59:42]RAPDU: 90 00 [10:59:42]wFMCommunicate OK [10:59:42]wFMCommunicate request_size=255 [10:59:42]MH_SAM_APDU [10:59:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 94 00 00 00 F4 03 04 00 9D CB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AA 12 03 00 35 04 06 00 3C [10:59:42]Write to MH i2c: E2 02 01 FF 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 94 00 00 00 F4 03 04 00 9D CB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AA 12 03 00 35 04 06 00 3C 00 00 B9 [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:42]Read from MH i2c: E2 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 03 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 03 00 FF 03 00 90 00 76 [10:59:42]RAPDU: 90 00 [10:59:42]wFMCommunicate OK [10:59:42]wFMCommunicate request_size=10 [10:59:42]MH_SAM_APDU [10:59:42]CAPDU: 80 0D 02 02 05 5D 66 1D D7 BC [10:59:42]Write to MH i2c: E2 0D 00 00 04 80 0D 02 02 05 00 5D 66 1D D7 BC 00 00 FB [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:42]Read from MH i2c: E2 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 03 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 03 00 00 04 00 90 00 78 [10:59:42]RAPDU: 90 00 [10:59:42]wFMCommunicate OK [10:59:42]wFMCommunicate request_size=4 [10:59:42]MH_SAM_APDU [10:59:42]CAPDU: 80 0D 03 02 [10:59:42]Write to MH i2c: E2 08 00 01 04 80 0D 03 02 00 00 00 00 80 [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:42]Read from MH i2c: E2 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 0B 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 0B 00 01 04 00 EA 80 A1 60 8D 14 8A 28 90 00 3F [10:59:42]RAPDU: EA 80 A1 60 8D 14 8A 28 90 00 [10:59:42]wFMCommunicate OK [10:59:42]SAM_PROTO_SignData done [10:59:42]FM_MakeSignedData done [10:59:42]CreateOFDProtocolMessage [10:59:42]wFMCommunicate request_size=4 [10:59:42]MH_SAM_APDU [10:59:42]CAPDU: 80 11 00 00 [10:59:42]Write to MH i2c: E2 08 00 02 04 80 11 00 00 00 00 00 00 80 [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:42]Read from MH i2c: E2 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 17 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 17 00 02 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D5 [10:59:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:59:42]wFMCommunicate OK [10:59:42]CreateOFDProtocolMessage done [10:59:42]OFDSenderStorePacket 201386 [10:59:42]StoreOFDPacket docnum=201386 [10:59:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 48 22 07 01 5B BB 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 94 00 00 00 F4 03 04 00 9D CB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AA 12 03 00 35 04 06 00 3C 5D 66 1D D7 BC EA 80 A1 60 8D 14 8A 28 [10:59:42]CheckFolder [10:59:42]dirname=/storage/ofd_packets [10:59:42]CheckFolder done [10:59:42]ProducePacketName [10:59:42]name=ofd_packets/00201386 [10:59:42]NVStorageSaveData ofd_packets/00201386 [10:59:42]File name is /storage/ofd_packets/00201386 [10:59:42]Write 301 bytes [10:59:42]NVStorageSaveData done [10:59:42]OFDSenderStorePacket done [10:59:42]KKMCreateOFDPacket done [10:59:42]NVStorageSaveData kkm_last_timestamp [10:59:42]File name is /storage/kkm_last_timestamp [10:59:42]Write 4 bytes [10:59:42]NVStorageSaveData done [10:59:42]OFD Sender: Processing packet 201386 [packets to send 112, broken 111] [10:59:42]ProducePacketName [10:59:42]name=ofd_packets/00201386 [10:59:42]OFD Sender: To server: pG, [10:59:42]CommunicateWithHost lk.salyk.kg:30040 [10:59:42]ConnectInit lk.salyk.kg [10:59:42]ExternCall_PrintAddStr [10:59:42]wPrintStart [10:59:42]Write to MH i2c: 01 00 00 03 04 07 [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: 01 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: 01 07 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: 01 07 00 03 04 00 00 00 00 00 FF 0F 1C [10:59:42]RasterBufferAndPrint [10:59:42]line Счет N : (1)449135 [10:59:42]line ИНН: 02508201610067 [10:59:42]line Контрольно-Кассовый Чек [10:59:42]line ПРОДАЖА [10:59:42]line ТРК (МРК, ГНК) : 31 [10:59:42]line Товар: 2710124130 [10:59:42]line Аи-92-К-2 [10:59:42]line 10.470 * 66.90 [10:59:42]line = 700.44 [10:59:42]line НДС 12% НСП 1% [10:59:42]line > о реализуемом товаре [10:59:42]line ОКРУГЛЕНИЕ: -0.44 [10:59:42]line ИТОГО: 700.00 [10:59:42]line Внесено: 700.00 [10:59:42]line СДАЧА: 0.00 [10:59:42]line НСП 1% : 6.20 [10:59:42]line НДС 12% : 74.38 [10:59:42]line Наличными: 700.00 [10:59:42]line Безнал.: 0.00 [10:59:42]line Место: АЗС № 171 "Партнер Нефть" [10:59:42]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [10:59:42]line СНО: Общий режим [10:59:42]line Чек 148 26.10.2024 10:59 [10:59:42]line Смена: 543 ФФД: 1.0 [10:59:42]line ЗНМ: 0300000109 [10:59:42]line РНМ: 0000000000091777 [10:59:42]line Версия ККМ: 001 [10:59:42]line ФМ: 0000000000871756 [10:59:42]line ФД: 201386 [10:59:42]line ФПД: 66371842856892 [10:59:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105941&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201386&fm=66371842856892&tin=02508201610067®Number=0000000000091777&sum=70000 [10:59:43]Connected sock=11 [10:59:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 48 22 07 01 5B BB 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 94 00 00 00 F4 03 04 00 9D CB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AA 12 03 00 35 04 06 00 3C 5D 66 1D D7 BC EA 80 A1 60 8D 14 8A 28 [10:59:43]written 0, free lines is 4095 [10:59:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 12 5C 47 00 28 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AA 12 03 00 F4 03 04 00 46 77 1C 67 B6 04 01 00 00 E5 9A 60 1F 5D CB 15 42 [10:59:43]CommunicateWithHost err = 0 [10:59:43]CheckOFDResponse [10:59:43]1017 (14) - 77093643461234 [10:59:43]1041 (16) - 0000000000871756 [10:59:43]1040 (4) - 201386 [10:59:43]1012 (4) - 26.10.2024 04:59 [10:59:43]1206 (1) - 0 [10:59:43]OFD Sender: Remove packet 201386 [10:59:43]ProducePacketName [10:59:43]name=ofd_packets/00201386 [10:59:43]NVStorageDeleteData [10:59:43]Write to MH i2c: 01 00 00 2E 04 32 [10:59:43]Write i2c OK [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: 01 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: 01 07 00 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: 01 07 00 2E 04 00 00 00 00 00 92 0C D7 [10:59:43]RasterBufferAndPrint [10:59:43]line [10:59:43]line [10:59:43]line [10:59:43]line [10:59:43]line [10:59:43]written 0, free lines is 3223 [10:59:43]MH_Cut [10:59:43]Write to MH i2c: D1 01 00 35 04 01 0B [10:59:43]Write i2c OK [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: D1 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: D1 01 00 [10:59:43]MH_I2C_Read... [10:59:43]Read from MH i2c: D1 01 00 35 04 00 0A [10:59:43]Write to MH i2c: 01 00 00 36 04 3A [10:59:43]Write i2c OK [10:59:43]MH_I2C_Read... [10:59:43]OFD Sender: No OFD packet to send [10:59:44]*** Cut start [10:59:44]*** Purtial cut [10:59:44]*** Stage 1: CUTSNS_PIN = 1 [10:59:44]Read from MH i2c: 01 [10:59:44]MH_I2C_Read... [10:59:44]*** Stop cut motor [10:59:44]*** Cut end [10:59:44]Read from MH i2c: 01 07 00 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: 01 07 00 36 04 00 00 00 00 00 FF 0F 4F [10:59:44]process_action close_receipt done [10:59:44]requested_data is exist [10:59:44]produce_requested_data [10:59:44]requested_item fm.sn is exist - process it [10:59:44]wFMCommunicate request_size=4 [10:59:44]MH_SAM_APDU [10:59:44]CAPDU: 80 11 00 00 [10:59:44]Write to MH i2c: E2 08 00 37 04 80 11 00 00 00 00 00 00 B5 [10:59:44]Write i2c OK [10:59:44]MH_I2C_Read... [10:59:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:44]Read from MH i2c: E2 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 17 00 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 17 00 37 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0A [10:59:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [10:59:44]wFMCommunicate OK [10:59:44]requested_item fd.num is exist - process it [10:59:44]SAM_PROTO_GetFieldsCounters [10:59:44]wFMCommunicate request_size=4 [10:59:44]MH_SAM_APDU [10:59:44]CAPDU: 80 13 00 00 [10:59:44]Write to MH i2c: E2 08 00 38 04 80 13 00 00 00 00 00 00 B8 [10:59:44]Write i2c OK [10:59:44]MH_I2C_Read... [10:59:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:44]Read from MH i2c: E2 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 62 00 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 62 00 38 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AA 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [10:59:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AA 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:44]wFMCommunicate OK [10:59:44]SAM_PROTO_GetFieldsCounters done [10:59:44]requested_item shift.num is exist - process it [10:59:44]requested_item shift.opened is exist - process it [10:59:44]req_shift_opened [10:59:44]FM_GetShiftState [10:59:44]SAM_PROTO_GetShiftState [10:59:44]wFMCommunicate request_size=4 [10:59:44]MH_SAM_APDU [10:59:44]CAPDU: 80 13 01 00 [10:59:44]Write to MH i2c: E2 08 00 39 04 80 13 01 00 00 00 00 00 BA [10:59:44]Write i2c OK [10:59:44]MH_I2C_Read... [10:59:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:44]Read from MH i2c: E2 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 0E 00 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 0E 00 39 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C9 [10:59:44]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [10:59:44]wFMCommunicate OK [10:59:44]SAM_PROTO_GetShiftState done [10:59:44]FM_GetShiftState done [10:59:44]req_shift_opened done [10:59:44]requested_item shift.open_date is exist - process it [10:59:44]req_shift_open_date [10:59:44]req_shift_open_date done [10:59:44]produce_requested_data done [10:59:44]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201386,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [10:59:44]process_action_free close_receipt [10:59:44]json_value_free [10:59:44]json_value_free done [10:59:44]process_json_proto returns [10:59:44]Send response to host [10:59:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201386,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [10:59:44]free response buf [10:59:44]execute_script done [10:59:44]execute_script returns [10:59:44]free content buf [10:59:44]Sock 9.Close socket [10:59:44]Sock 9.Thread stoped [10:59:48]OFD Sender: No OFD packet to send [10:59:53]OFD Sender: No OFD packet to send [10:59:58]OFD Sender: No OFD packet to send [11:00:03]OFD Sender: No OFD packet to send [11:00:08]OFD Sender: No OFD packet to send [11:00:13]OFD Sender: No OFD packet to send [11:00:18]accept exits with 7 [11:00:18]New connection [11:00:18]New thread 3066641764 created [11:00:18]Thread 3066498404 joined [11:00:18]Waiting for new connection... [11:00:18] Sock 7.Parse request [11:00:18]Sock 7.Check first char [11:00:18]Sock 7.First char is OK [11:00:18]request: POST /json_proto HTTP/1.0 [11:00:18]Method: POST [11:00:18]URL: /json_proto [11:00:18]Method is POST - this is cgi request [11:00:18]url: /json_proto [11:00:18]query_string will be loaded in cgi processing [11:00:18]execute_cgi json_proto POST (null) [11:00:18]execute_cgi path=json_proto method=POST [11:00:18]POST find Content-Length [11:00:18]Host: 172.17.63.195:8080 [11:00:18]Content-Length: 766 [11:00:18]Content-Type: application/json [11:00:18] [11:00:18]POST finish read [11:00:18]Found Content-Length = 766 [11:00:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:18]execute_script... [11:00:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:18]POST & json_proto [11:00:18]process_json_proto [11:00:18]json parsed OK: [11:00:18]protocol is kg_v1.0 [11:00:18]action value=close_receipt [11:00:18]process_action close_receipt [11:00:18]cmd_close_receipt [11:00:18]MH_GetDate [11:00:18]Write to MH i2c: F0 00 00 3A 04 2D [11:00:18]Write i2c OK [11:00:18]MH_I2C_Read... [11:00:18]Read from MH i2c: F0 [11:00:18]MH_I2C_Read... [11:00:18]Read from MH i2c: F0 09 00 [11:00:18]MH_I2C_Read... [11:00:18]Read from MH i2c: F0 09 00 3A 04 00 C2 CB 1C 67 68 46 19 67 74 [11:00:18]GetLastDocTimeStamp 1729940381 [11:00:18]current date 1729940418 [11:00:18]FM_GetShiftState [11:00:18]SAM_PROTO_GetShiftState [11:00:18]wFMCommunicate request_size=4 [11:00:18]MH_SAM_APDU [11:00:18]CAPDU: 80 13 01 00 [11:00:18]Write to MH i2c: E2 08 00 3B 04 80 13 01 00 00 00 00 00 BC [11:00:18]Write i2c OK [11:00:18]MH_I2C_Read... [11:00:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:18]Read from MH i2c: E2 [11:00:18]MH_I2C_Read... [11:00:18]Read from MH i2c: E2 0E 00 [11:00:18]MH_I2C_Read... [11:00:18]Read from MH i2c: E2 0E 00 3B 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 CB [11:00:18]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:00:18]wFMCommunicate OK [11:00:18]SAM_PROTO_GetShiftState done [11:00:18]FM_GetShiftState done [11:00:18]opened in 1729900879 [11:00:18]opened+sec_in_day 1729987279 [11:00:18]quantity*price = 50041 [11:00:18]sum+1 = 50042 [11:00:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 149 26.10.2024 11:00 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201387 ФПД: 243454780013971 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110018&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201387&fm=243454780013971&tin=02508201610067®Number=0000000000091777&sum=50041 [11:00:19]StoreToDocumentArchive [11:00:19]shift 543 fd 201387 [11:00:19]save to /storage/0543/doc_00201387 [11:00:19]save last doc name /storage/0543/doc_00201387 to /storage/kkm_last_doc_name [11:00:19]save OK [11:00:19]Clear old archive folders... [11:00:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:00:19]tlvbuf is 017924C0 [11:00:19]SAM_PROTO_ClearQueue [11:00:19]wFMCommunicate request_size=4 [11:00:19]MH_SAM_APDU [11:00:19]CAPDU: 80 09 00 00 [11:00:19]Write to MH i2c: E2 08 00 48 04 80 09 00 00 00 00 00 00 BE [11:00:19]Write i2c OK [11:00:19]MH_I2C_Read... [11:00:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:19]Read from MH i2c: E2 [11:00:19]MH_I2C_Read... [11:00:19]Read from MH i2c: E2 03 00 [11:00:19]MH_I2C_Read... [11:00:19]Read from MH i2c: E2 03 00 48 04 00 90 00 C0 [11:00:19]RAPDU: 90 00 [11:00:19]wFMCommunicate OK [11:00:19]SAM_PROTO_ClearQueue done [11:00:19]KKMCreateOFDPacket [11:00:19]OFDProtocolAddRootSTLVToBuf [11:00:19]FM_MakeSignedData [11:00:19]FM_MakeSignedData [11:00:19]SAM_PROTO_SignData [11:00:19]wFMCommunicate request_size=4 [11:00:19]MH_SAM_APDU [11:00:19]CAPDU: 80 0D 01 02 [11:00:19]Write to MH i2c: E2 08 00 49 04 80 0D 01 02 00 00 00 00 C6 [11:00:19]Write i2c OK [11:00:19]MH_I2C_Read... [11:00:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:19]Read from MH i2c: E2 [11:00:19]MH_I2C_Read... [11:00:19]Read from MH i2c: E2 03 00 [11:00:19]MH_I2C_Read... [11:00:19]Read from MH i2c: E2 03 00 49 04 00 90 00 C1 [11:00:19]RAPDU: 90 00 [11:00:19]wFMCommunicate OK [11:00:19]wFMCommunicate request_size=255 [11:00:19]MH_SAM_APDU [11:00: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 32 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 79 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 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 C2 CB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AB 12 03 00 35 04 06 00 DD [11:00:19]Write to MH i2c: E2 02 01 4A 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 32 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 79 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 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 C2 CB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AB 12 03 00 35 04 06 00 DD 00 00 0F [11:00:19]Write i2c OK [11:00:19]MH_I2C_Read... [11:00:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:20]Read from MH i2c: E2 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: E2 03 00 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: E2 03 00 4A 04 00 90 00 C2 [11:00:20]RAPDU: 90 00 [11:00:20]wFMCommunicate OK [11:00:20]wFMCommunicate request_size=10 [11:00:20]MH_SAM_APDU [11:00:20]CAPDU: 80 0D 02 02 05 6B BB AE 7D 93 [11:00:20]Write to MH i2c: E2 0D 00 4B 04 80 0D 02 02 05 00 6B BB AE 7D 93 00 00 B7 [11:00:20]Write i2c OK [11:00:20]MH_I2C_Read... [11:00:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:20]Read from MH i2c: E2 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: E2 03 00 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: E2 03 00 4B 04 00 90 00 C3 [11:00:20]RAPDU: 90 00 [11:00:20]wFMCommunicate OK [11:00:20]wFMCommunicate request_size=4 [11:00:20]MH_SAM_APDU [11:00:20]CAPDU: 80 0D 03 02 [11:00:20]Write to MH i2c: E2 08 00 4C 04 80 0D 03 02 00 00 00 00 CB [11:00:20]Write i2c OK [11:00:20]MH_I2C_Read... [11:00:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:20]Read from MH i2c: E2 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: E2 0B 00 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: E2 0B 00 4C 04 00 A5 86 5A 4F 31 1A B9 7F 90 00 23 [11:00:20]RAPDU: A5 86 5A 4F 31 1A B9 7F 90 00 [11:00:20]wFMCommunicate OK [11:00:20]SAM_PROTO_SignData done [11:00:20]FM_MakeSignedData done [11:00:20]CreateOFDProtocolMessage [11:00:20]wFMCommunicate request_size=4 [11:00:20]MH_SAM_APDU [11:00:20]CAPDU: 80 11 00 00 [11:00:20]Write to MH i2c: E2 08 00 4D 04 80 11 00 00 00 00 00 00 CB [11:00:20]Write i2c OK [11:00:20]MH_I2C_Read... [11:00:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:20]Read from MH i2c: E2 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: E2 17 00 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: E2 17 00 4D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 20 [11:00:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:00:20]wFMCommunicate OK [11:00:20]CreateOFDProtocolMessage done [11:00:20]OFDSenderStorePacket 201387 [11:00:20]StoreOFDPacket docnum=201387 [11:00:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 DC 43 07 01 90 85 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 32 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 79 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 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 C2 CB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AB 12 03 00 35 04 06 00 DD 6B BB AE 7D 93 A5 86 5A 4F 31 1A B9 7F [11:00:20]CheckFolder [11:00:20]dirname=/storage/ofd_packets [11:00:20]CheckFolder done [11:00:20]ProducePacketName [11:00:20]name=ofd_packets/00201387 [11:00:20]NVStorageSaveData ofd_packets/00201387 [11:00:20]File name is /storage/ofd_packets/00201387 [11:00:20]Write 301 bytes [11:00:20]NVStorageSaveData done [11:00:20]OFDSenderStorePacket done [11:00:20]KKMCreateOFDPacket done [11:00:20]NVStorageSaveData kkm_last_timestamp [11:00:20]File name is /storage/kkm_last_timestamp [11:00:20]Write 4 bytes [11:00:20]NVStorageSaveData done [11:00:20]ExternCall_PrintAddStr [11:00:20]wPrintStart [11:00:20]Write to MH i2c: 01 00 00 4E 04 52 [11:00:20]Write i2c OK [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: 01 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: 01 07 00 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: 01 07 00 4E 04 00 00 00 00 00 FF 0F 67 [11:00:20]RasterBufferAndPrint [11:00:20]line Счет N : (1)449136 [11:00:20]line ИНН: 02508201610067 [11:00:20]line Контрольно-Кассовый Чек [11:00:20]line ПРОДАЖА [11:00:20]line ТРК (МРК, ГНК) : 41 [11:00:20]line Товар: 2710124130 [11:00:20]line Аи-92-К-2 [11:00:20]line 7.480 * 66.90 [11:00:20]line = 500.41 [11:00:20]line НДС 12% НСП 1% [11:00:20]line > о реализуемом товаре [11:00:20]line ИТОГО: 500.41 [11:00:20]line НСП 1% : 4.43 [11:00:20]line НДС 12% : 53.14 [11:00:20]line Наличными: 0.00 [11:00:20]line Безнал.: 500.41 [11:00:20]line Место: АЗС № 171 "Партнер Нефть" [11:00:20]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:00:20]line СНО: Общий режим [11:00:20]line Чек 149 26.10.2024 11:00 [11:00:20]line Смена: 543 ФФД: 1.0 [11:00:20]line ЗНМ: 0300000109 [11:00:20]line РНМ: 0000000000091777 [11:00:20]line Версия ККМ: 001 [11:00:20]line Платежная система: Mbank [11:00:20]line ФМ: 0000000000871756 [11:00:20]line ФД: 201387 [11:00:20]line ФПД: 243454780013971 [11:00:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110018&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201387&fm=243454780013971&tin=02508201610067®Number=0000000000091777&sum=50041 [11:00:20]written 0, free lines is 4095 [11:00:20]OFD Sender: Processing packet 201387 [packets to send 112, broken 111] [11:00:20]ProducePacketName [11:00:20]name=ofd_packets/00201387 [11:00:20]OFD Sender: To server: pG, [11:00:20]CommunicateWithHost lk.salyk.kg:30040 [11:00:20]ConnectInit lk.salyk.kg [11:00:20]Connected sock=10 [11:00:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 DC 43 07 01 90 85 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 32 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 79 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 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 C2 CB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AB 12 03 00 35 04 06 00 DD 6B BB AE 7D 93 A5 86 5A 4F 31 1A B9 7F [11:00:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A2 57 47 00 B9 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AB 12 03 00 F4 03 04 00 6C 77 1C 67 B6 04 01 00 00 31 CB 13 E8 6E C8 AB DF [11:00:20]CommunicateWithHost err = 0 [11:00:20]CheckOFDResponse [11:00:20]1017 (14) - 77093643461234 [11:00:20]1041 (16) - 0000000000871756 [11:00:20]1040 (4) - 201387 [11:00:20]1012 (4) - 26.10.2024 05:00 [11:00:20]1206 (1) - 0 [11:00:20]OFD Sender: Remove packet 201387 [11:00:20]ProducePacketName [11:00:20]name=ofd_packets/00201387 [11:00:20]NVStorageDeleteData [11:00:21]Write to MH i2c: 01 00 00 77 04 7B [11:00:21]Write i2c OK [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: 01 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: 01 07 00 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: 01 07 00 77 04 00 00 00 00 00 C8 0C 56 [11:00:21]RasterBufferAndPrint [11:00:21]line [11:00:21]line [11:00:21]line [11:00:21]line [11:00:21]line [11:00:21]written 0, free lines is 3276 [11:00:21]MH_Cut [11:00:21]Write to MH i2c: D1 01 00 7E 04 01 54 [11:00:21]Write i2c OK [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: D1 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: D1 01 00 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: D1 01 00 7E 04 00 53 [11:00:21]Write to MH i2c: 01 00 00 7F 04 83 [11:00:21]Write i2c OK [11:00:21]MH_I2C_Read... [11:00:21]OFD Sender: No OFD packet to send [11:00:21]*** Cut start [11:00:21]*** Purtial cut [11:00:21]*** Stage 1: CUTSNS_PIN = 1 [11:00:22]Read from MH i2c: 01 [11:00:22]MH_I2C_Read... [11:00:22]*** Stop cut motor [11:00:22]*** Cut end [11:00:22]Read from MH i2c: 01 07 00 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: 01 07 00 7F 04 00 00 00 00 00 FF 0F 98 [11:00:22]process_action close_receipt done [11:00:22]requested_data is exist [11:00:22]produce_requested_data [11:00:22]requested_item fm.sn is exist - process it [11:00:22]wFMCommunicate request_size=4 [11:00:22]MH_SAM_APDU [11:00:22]CAPDU: 80 11 00 00 [11:00:22]Write to MH i2c: E2 08 00 80 04 80 11 00 00 00 00 00 00 FE [11:00:22]Write i2c OK [11:00:22]MH_I2C_Read... [11:00:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:22]Read from MH i2c: E2 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 17 00 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 17 00 80 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 53 [11:00:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:00:22]wFMCommunicate OK [11:00:22]requested_item fd.num is exist - process it [11:00:22]SAM_PROTO_GetFieldsCounters [11:00:22]wFMCommunicate request_size=4 [11:00:22]MH_SAM_APDU [11:00:22]CAPDU: 80 13 00 00 [11:00:22]Write to MH i2c: E2 08 00 81 04 80 13 00 00 00 00 00 00 01 [11:00:22]Write i2c OK [11:00:22]MH_I2C_Read... [11:00:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:22]Read from MH i2c: E2 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 62 00 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 62 00 81 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AB 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [11:00:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AB 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:00:22]wFMCommunicate OK [11:00:22]SAM_PROTO_GetFieldsCounters done [11:00:22]requested_item shift.num is exist - process it [11:00:22]requested_item shift.opened is exist - process it [11:00:22]req_shift_opened [11:00:22]FM_GetShiftState [11:00:22]SAM_PROTO_GetShiftState [11:00:22]wFMCommunicate request_size=4 [11:00:22]MH_SAM_APDU [11:00:22]CAPDU: 80 13 01 00 [11:00:22]Write to MH i2c: E2 08 00 82 04 80 13 01 00 00 00 00 00 03 [11:00:22]Write i2c OK [11:00:22]MH_I2C_Read... [11:00:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:22]Read from MH i2c: E2 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 0E 00 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 0E 00 82 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 12 [11:00:22]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:00:22]wFMCommunicate OK [11:00:22]SAM_PROTO_GetShiftState done [11:00:22]FM_GetShiftState done [11:00:22]req_shift_opened done [11:00:22]requested_item shift.open_date is exist - process it [11:00:22]req_shift_open_date [11:00:22]req_shift_open_date done [11:00:22]produce_requested_data done [11:00:22]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201387,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:00:22]process_action_free close_receipt [11:00:22]json_value_free [11:00:22]json_value_free done [11:00:22]process_json_proto returns [11:00:22]Send response to host [11:00:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201387,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:00:22]free response buf [11:00:22]execute_script done [11:00:22]execute_script returns [11:00:22]free content buf [11:00:22]Sock 7.Close socket [11:00:22]Sock 7.Thread stoped [11:00:26]OFD Sender: No OFD packet to send [11:00:31]OFD Sender: No OFD packet to send [11:00:36]OFD Sender: No OFD packet to send [11:00:41]OFD Sender: No OFD packet to send [11:00:46]OFD Sender: No OFD packet to send [11:00:51]OFD Sender: No OFD packet to send [11:00:56]OFD Sender: No OFD packet to send [11:01:01]OFD Sender: No OFD packet to send [11:01:06]OFD Sender: No OFD packet to send [11:01:11]OFD Sender: No OFD packet to send [11:01:16]OFD Sender: No OFD packet to send [11:01:21]OFD Sender: No OFD packet to send [11:01:26]OFD Sender: No OFD packet to send [11:01:31]OFD Sender: No OFD packet to send [11:01:36]OFD Sender: No OFD packet to send [11:01:41]OFD Sender: No OFD packet to send [11:01:46]OFD Sender: No OFD packet to send [11:01:51]OFD Sender: No OFD packet to send [11:01:56]OFD Sender: No OFD packet to send [11:02:01]OFD Sender: No OFD packet to send [11:02:06]OFD Sender: No OFD packet to send [11:02:11]OFD Sender: No OFD packet to send [11:02:16]OFD Sender: No OFD packet to send [11:02:21]OFD Sender: No OFD packet to send [11:02:26]OFD Sender: No OFD packet to send [11:02:31]OFD Sender: No OFD packet to send [11:02:36]OFD Sender: No OFD packet to send [11:02:41]OFD Sender: No OFD packet to send [11:02:46]OFD Sender: No OFD packet to send [11:02:51]OFD Sender: No OFD packet to send [11:02:56]OFD Sender: No OFD packet to send [11:03:01]OFD Sender: No OFD packet to send [11:03:06]OFD Sender: No OFD packet to send [11:03:11]OFD Sender: No OFD packet to send [11:03:16]OFD Sender: No OFD packet to send [11:03:21]OFD Sender: No OFD packet to send [11:03:26]OFD Sender: No OFD packet to send [11:03:31]OFD Sender: No OFD packet to send [11:03:36]OFD Sender: No OFD packet to send [11:03:41]OFD Sender: No OFD packet to send [11:03:46]OFD Sender: No OFD packet to send [11:03:51]OFD Sender: No OFD packet to send [11:03:56]OFD Sender: No OFD packet to send [11:04:01]OFD Sender: No OFD packet to send [11:04:06]OFD Sender: No OFD packet to send [11:04:11]OFD Sender: No OFD packet to send [11:04:16]OFD Sender: No OFD packet to send [11:04:19]accept exits with 9 [11:04:19]New connection [11:04:19]New thread 3066498404 created [11:04:19]Thread 3066641764 joined [11:04:19]Waiting for new connection... [11:04:19] Sock 9.Parse request [11:04:19]Sock 9.Check first char [11:04:19]Sock 9.First char is OK [11:04:19]request: POST /json_proto HTTP/1.0 [11:04:19]Method: POST [11:04:19]URL: /json_proto [11:04:19]Method is POST - this is cgi request [11:04:19]url: /json_proto [11:04:19]query_string will be loaded in cgi processing [11:04:19]execute_cgi json_proto POST (null) [11:04:19]execute_cgi path=json_proto method=POST [11:04:19]POST find Content-Length [11:04:19]Host: 172.17.63.195:8080 [11:04:19]Content-Length: 675 [11:04:19]Content-Type: application/json [11:04:19] [11:04:19]POST finish read [11:04:19]Found Content-Length = 675 [11:04:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:19]execute_script... [11:04: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)449138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:19]POST & json_proto [11:04:19]process_json_proto [11:04:19]json parsed OK: [11:04:19]protocol is kg_v1.0 [11:04:19]action value=close_receipt [11:04:19]process_action close_receipt [11:04:19]cmd_close_receipt [11:04:19]MH_GetDate [11:04:19]Write to MH i2c: F0 00 00 83 04 76 [11:04:19]Write i2c OK [11:04:19]MH_I2C_Read... [11:04:19]Read from MH i2c: F0 [11:04:19]MH_I2C_Read... [11:04:19]Read from MH i2c: F0 09 00 [11:04:19]MH_I2C_Read... [11:04:19]Read from MH i2c: F0 09 00 83 04 00 B3 CC 1C 67 68 46 19 67 AF [11:04:19]GetLastDocTimeStamp 1729940418 [11:04:19]current date 1729940659 [11:04:19]FM_GetShiftState [11:04:19]SAM_PROTO_GetShiftState [11:04:19]wFMCommunicate request_size=4 [11:04:19]MH_SAM_APDU [11:04:19]CAPDU: 80 13 01 00 [11:04:19]Write to MH i2c: E2 08 00 84 04 80 13 01 00 00 00 00 00 05 [11:04:19]Write i2c OK [11:04:19]MH_I2C_Read... [11:04:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:19]Read from MH i2c: E2 [11:04:19]MH_I2C_Read... [11:04:19]Read from MH i2c: E2 0E 00 [11:04:19]MH_I2C_Read... [11:04:19]Read from MH i2c: E2 0E 00 84 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 14 [11:04:19]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:04:19]wFMCommunicate OK [11:04:19]SAM_PROTO_GetShiftState done [11:04:19]FM_GetShiftState done [11:04:19]opened in 1729900879 [11:04:19]opened+sec_in_day 1729987279 [11:04:19]quantity*price = 100000 [11:04:19]sum+1 = 100002 [11:04:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 150 26.10.2024 11:04 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201388 ФПД: 249795794382511 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110419&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201388&fm=249795794382511&tin=02508201610067®Number=0000000000091777&sum=100000 [11:04:20]StoreToDocumentArchive [11:04:20]shift 543 fd 201388 [11:04:20]save to /storage/0543/doc_00201388 [11:04:20]save last doc name /storage/0543/doc_00201388 to /storage/kkm_last_doc_name [11:04:20]save OK [11:04:20]Clear old archive folders... [11:04:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:04:20]tlvbuf is 01791650 [11:04:20]SAM_PROTO_ClearQueue [11:04:20]wFMCommunicate request_size=4 [11:04:20]MH_SAM_APDU [11:04:20]CAPDU: 80 09 00 00 [11:04:20]Write to MH i2c: E2 08 00 91 04 80 09 00 00 00 00 00 00 07 [11:04:20]Write i2c OK [11:04:20]MH_I2C_Read... [11:04:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:20]Read from MH i2c: E2 [11:04:20]MH_I2C_Read... [11:04:20]Read from MH i2c: E2 03 00 [11:04:20]MH_I2C_Read... [11:04:20]Read from MH i2c: E2 03 00 91 04 00 90 00 09 [11:04:20]RAPDU: 90 00 [11:04:20]wFMCommunicate OK [11:04:20]SAM_PROTO_ClearQueue done [11:04:20]KKMCreateOFDPacket [11:04:20]OFDProtocolAddRootSTLVToBuf [11:04:20]FM_MakeSignedData [11:04:20]FM_MakeSignedData [11:04:20]SAM_PROTO_SignData [11:04:20]wFMCommunicate request_size=4 [11:04:20]MH_SAM_APDU [11:04:20]CAPDU: 80 0D 01 02 [11:04:20]Write to MH i2c: E2 08 00 92 04 80 0D 01 02 00 00 00 00 0F [11:04:20]Write i2c OK [11:04:20]MH_I2C_Read... [11:04:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:20]Read from MH i2c: E2 [11:04:20]MH_I2C_Read... [11:04:20]Read from MH i2c: E2 03 00 [11:04:20]MH_I2C_Read... [11:04:20]Read from MH i2c: E2 03 00 92 04 00 90 00 0A [11:04:20]RAPDU: 90 00 [11:04:20]wFMCommunicate OK [11:04:20]wFMCommunicate request_size=255 [11:04:20]MH_SAM_APDU [11:04:20]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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 96 00 00 00 F4 03 04 00 B3 CC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AC 12 03 00 35 04 06 00 [11:04:20]Write to MH i2c: E2 02 01 93 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 96 00 00 00 F4 03 04 00 B3 CC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AC 12 03 00 35 04 06 00 00 00 F2 [11:04:20]Write i2c OK [11:04:20]MH_I2C_Read... [11:04:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:21]Read from MH i2c: E2 [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: E2 03 00 [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: E2 03 00 93 04 00 90 00 0B [11:04:21]RAPDU: 90 00 [11:04:21]wFMCommunicate OK [11:04:21]wFMCommunicate request_size=11 [11:04:21]MH_SAM_APDU [11:04:21]CAPDU: 80 0D 02 02 06 E3 30 1D 97 2E AF [11:04:21]Write to MH i2c: E2 0E 00 94 04 80 0D 02 02 06 00 E3 30 1D 97 2E AF 00 00 C2 [11:04:21]Write i2c OK [11:04:21]MH_I2C_Read... [11:04:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:21]Read from MH i2c: E2 [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: E2 03 00 [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: E2 03 00 94 04 00 90 00 0C [11:04:21]RAPDU: 90 00 [11:04:21]wFMCommunicate OK [11:04:21]wFMCommunicate request_size=4 [11:04:21]MH_SAM_APDU [11:04:21]CAPDU: 80 0D 03 02 [11:04:21]Write to MH i2c: E2 08 00 95 04 80 0D 03 02 00 00 00 00 14 [11:04:21]Write i2c OK [11:04:21]MH_I2C_Read... [11:04:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:04:21]Read from MH i2c: E2 [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: E2 0B 00 [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: E2 0B 00 95 04 00 F6 E2 04 8C A7 75 66 17 90 00 16 [11:04:21]RAPDU: F6 E2 04 8C A7 75 66 17 90 00 [11:04:21]wFMCommunicate OK [11:04:21]SAM_PROTO_SignData done [11:04:21]FM_MakeSignedData done [11:04:21]CreateOFDProtocolMessage [11:04:21]wFMCommunicate request_size=4 [11:04:21]MH_SAM_APDU [11:04:21]CAPDU: 80 11 00 00 [11:04:21]Write to MH i2c: E2 08 00 96 04 80 11 00 00 00 00 00 00 14 [11:04:21]Write i2c OK [11:04:21]MH_I2C_Read... [11:04:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:21]Read from MH i2c: E2 [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: E2 17 00 [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: E2 17 00 96 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 69 [11:04:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:04:21]wFMCommunicate OK [11:04:21]CreateOFDProtocolMessage done [11:04:21]OFDSenderStorePacket 201388 [11:04:21]StoreOFDPacket docnum=201388 [11:04:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 1F 30 08 01 B7 B7 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 96 00 00 00 F4 03 04 00 B3 CC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AC 12 03 00 35 04 06 00 E3 30 1D 97 2E AF F6 E2 04 8C A7 75 66 17 [11:04:21]CheckFolder [11:04:21]dirname=/storage/ofd_packets [11:04:21]CheckFolder done [11:04:21]ProducePacketName [11:04:21]name=ofd_packets/00201388 [11:04:21]NVStorageSaveData ofd_packets/00201388 [11:04:21]File name is /storage/ofd_packets/00201388 [11:04:21]Write 302 bytes [11:04:21]NVStorageSaveData done [11:04:21]OFDSenderStorePacket done [11:04:21]KKMCreateOFDPacket done [11:04:21]NVStorageSaveData kkm_last_timestamp [11:04:21]File name is /storage/kkm_last_timestamp [11:04:21]Write 4 bytes [11:04:21]NVStorageSaveData done [11:04:21]ExternCall_PrintAddStr [11:04:21]wPrintStart [11:04:21]Write to MH i2c: 01 00 00 97 04 9B [11:04:21]Write i2c OK [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: 01 [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: 01 07 00 [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: 01 07 00 97 04 00 00 00 00 00 FF 0F B0 [11:04:21]RasterBufferAndPrint [11:04:21]line Счет N : (1)449138 [11:04:21]line ИНН: 02508201610067 [11:04:21]line Контрольно-Кассовый Чек [11:04:21]line ПРОДАЖА [11:04:21]line ТРК (МРК, ГНК) : 53 [11:04:21]line Товар: 2710124130 [11:04:21]line SUPER 92-К-5 [11:04:21]line 14.620 * 68.40 [11:04:21]line = 1000.01 [11:04:21]line НДС 12% НСП 1% [11:04:21]line > о реализуемом товаре [11:04:21]line ОКРУГЛЕНИЕ: -0.01 [11:04:21]line ИТОГО: 1000.00 [11:04:21]line Внесено: 1000.00 [11:04:21]line СДАЧА: 0.00 [11:04:21]line НСП 1% : 8.85 [11:04:21]line НДС 12% : 106.20 [11:04:21]line Наличными: 1000.00 [11:04:21]line Безнал.: 0.00 [11:04:21]line Место: АЗС № 171 "Партнер Нефть" [11:04:21]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:04:21]line СНО: Общий режим [11:04:21]line Чек 150 26.10.2024 11:04 [11:04:21]line Смена: 543 ФФД: 1.0 [11:04:21]line ЗНМ: 0300000109 [11:04:21]line РНМ: 0000000000091777 [11:04:21]line Версия ККМ: 001 [11:04:21]line ФМ: 0000000000871756 [11:04:21]line ФД: 201388 [11:04:21]line ФПД: 249795794382511 [11:04:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110419&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201388&fm=249795794382511&tin=02508201610067®Number=0000000000091777&sum=100000 [11:04:21]OFD Sender: Processing packet 201388 [packets to send 112, broken 111] [11:04:21]ProducePacketName [11:04:21]name=ofd_packets/00201388 [11:04:21]OFD Sender: To server: pG, [11:04:21]CommunicateWithHost lk.salyk.kg:30040 [11:04:21]ConnectInit lk.salyk.kg [11:04:21]written 0, free lines is 4095 [11:04:21]Connected sock=11 [11:04:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 1F 30 08 01 B7 B7 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 96 00 00 00 F4 03 04 00 B3 CC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AC 12 03 00 35 04 06 00 E3 30 1D 97 2E AF F6 E2 04 8C A7 75 66 17 [11:04:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 ED 27 47 00 01 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AC 12 03 00 F4 03 04 00 5D 78 1C 67 B6 04 01 00 00 69 5D D4 45 A6 F8 29 FD [11:04:21]CommunicateWithHost err = 0 [11:04:21]CheckOFDResponse [11:04:21]1017 (14) - 77093643461234 [11:04:21]1041 (16) - 0000000000871756 [11:04:21]1040 (4) - 201388 [11:04:21]1012 (4) - 26.10.2024 05:04 [11:04:21]1206 (1) - 0 [11:04:21]OFD Sender: Remove packet 201388 [11:04:21]ProducePacketName [11:04:21]name=ofd_packets/00201388 [11:04:21]NVStorageDeleteData [11:04:21]Write to MH i2c: 01 00 00 C2 04 C6 [11:04:21]Write i2c OK [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: 01 [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: 01 07 00 [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: 01 07 00 C2 04 00 00 00 00 00 90 0C 69 [11:04:21]RasterBufferAndPrint [11:04:21]line [11:04:21]line [11:04:21]line [11:04:21]line [11:04:21]line [11:04:21]written 0, free lines is 3219 [11:04:21]MH_Cut [11:04:21]Write to MH i2c: D1 01 00 C9 04 01 9F [11:04:21]Write i2c OK [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: D1 [11:04:21]MH_I2C_Read... [11:04:21]Read from MH i2c: D1 01 00 [11:04:22]MH_I2C_Read... [11:04:22]Read from MH i2c: D1 01 00 C9 04 00 9E [11:04:22]Write to MH i2c: 01 00 00 CA 04 CE [11:04:22]Write i2c OK [11:04:22]MH_I2C_Read... [11:04:22]OFD Sender: No OFD packet to send [11:04:22]*** Cut start [11:04:22]*** Purtial cut [11:04:22]*** Stage 1: CUTSNS_PIN = 1 [11:04:23]Read from MH i2c: 01 [11:04:23]MH_I2C_Read... [11:04:23]*** Stop cut motor [11:04:23]*** Cut end [11:04:23]Read from MH i2c: 01 07 00 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: 01 07 00 CA 04 00 00 00 00 00 FF 0F E3 [11:04:23]process_action close_receipt done [11:04:23]requested_data is exist [11:04:23]produce_requested_data [11:04:23]requested_item fm.sn is exist - process it [11:04:23]wFMCommunicate request_size=4 [11:04:23]MH_SAM_APDU [11:04:23]CAPDU: 80 11 00 00 [11:04:23]Write to MH i2c: E2 08 00 CB 04 80 11 00 00 00 00 00 00 49 [11:04:23]Write i2c OK [11:04:23]MH_I2C_Read... [11:04:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:23]Read from MH i2c: E2 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: E2 17 00 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: E2 17 00 CB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9E [11:04:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:04:23]wFMCommunicate OK [11:04:23]requested_item fd.num is exist - process it [11:04:23]SAM_PROTO_GetFieldsCounters [11:04:23]wFMCommunicate request_size=4 [11:04:23]MH_SAM_APDU [11:04:23]CAPDU: 80 13 00 00 [11:04:23]Write to MH i2c: E2 08 00 CC 04 80 13 00 00 00 00 00 00 4C [11:04:23]Write i2c OK [11:04:23]MH_I2C_Read... [11:04:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:23]Read from MH i2c: E2 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: E2 62 00 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: E2 62 00 CC 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AC 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [11:04:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AC 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:04:23]wFMCommunicate OK [11:04:23]SAM_PROTO_GetFieldsCounters done [11:04:23]requested_item shift.num is exist - process it [11:04:23]requested_item shift.opened is exist - process it [11:04:23]req_shift_opened [11:04:23]FM_GetShiftState [11:04:23]SAM_PROTO_GetShiftState [11:04:23]wFMCommunicate request_size=4 [11:04:23]MH_SAM_APDU [11:04:23]CAPDU: 80 13 01 00 [11:04:23]Write to MH i2c: E2 08 00 CD 04 80 13 01 00 00 00 00 00 4E [11:04:23]Write i2c OK [11:04:23]MH_I2C_Read... [11:04:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:23]Read from MH i2c: E2 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: E2 0E 00 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: E2 0E 00 CD 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 5D [11:04:23]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:04:23]wFMCommunicate OK [11:04:23]SAM_PROTO_GetShiftState done [11:04:23]FM_GetShiftState done [11:04:23]req_shift_opened done [11:04:23]requested_item shift.open_date is exist - process it [11:04:23]req_shift_open_date [11:04:23]req_shift_open_date done [11:04:23]produce_requested_data done [11:04:23]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201388,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:04:23]process_action_free close_receipt [11:04:23]json_value_free [11:04:23]json_value_free done [11:04:23]process_json_proto returns [11:04:23]Send response to host [11:04:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201388,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:04:23]free response buf [11:04:23]execute_script done [11:04:23]execute_script returns [11:04:23]free content buf [11:04:23]Sock 9.Close socket [11:04:23]Sock 9.Thread stoped [11:04:23]accept exits with 7 [11:04:23]New connection [11:04:23]New thread 3066641764 created [11:04:23]Thread 3066498404 joined [11:04:23]Waiting for new connection... [11:04:23] Sock 7.Parse request [11:04:23]Sock 7.Check first char [11:04:23]Sock 7.First char is OK [11:04:23]request: POST /json_proto HTTP/1.0 [11:04:23]Method: POST [11:04:23]URL: /json_proto [11:04:23]Method is POST - this is cgi request [11:04:23]url: /json_proto [11:04:23]query_string will be loaded in cgi processing [11:04:23]execute_cgi json_proto POST (null) [11:04:23]execute_cgi path=json_proto method=POST [11:04:23]POST find Content-Length [11:04:23]Host: 172.17.63.195:8080 [11:04:23]Content-Length: 679 [11:04:23]Content-Type: application/json [11:04:23] [11:04:23]POST finish read [11:04:23]Found Content-Length = 679 [11:04:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [11:04:23]execute_script... [11:04:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [11:04:23]POST & json_proto [11:04:23]process_json_proto [11:04:23]json parsed OK: [11:04:23]protocol is kg_v1.0 [11:04:23]action value=close_receipt [11:04:23]process_action close_receipt [11:04:23]cmd_close_receipt [11:04:23]MH_GetDate [11:04:23]Write to MH i2c: F0 00 00 CE 04 C1 [11:04:23]Write i2c OK [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: F0 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: F0 09 00 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: F0 09 00 CE 04 00 B7 CC 1C 67 68 46 19 67 FE [11:04:23]GetLastDocTimeStamp 1729940659 [11:04:23]current date 1729940663 [11:04:23]FM_GetShiftState [11:04:23]SAM_PROTO_GetShiftState [11:04:23]wFMCommunicate request_size=4 [11:04:23]MH_SAM_APDU [11:04:23]CAPDU: 80 13 01 00 [11:04:23]Write to MH i2c: E2 08 00 CF 04 80 13 01 00 00 00 00 00 50 [11:04:23]Write i2c OK [11:04:23]MH_I2C_Read... [11:04:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:23]Read from MH i2c: E2 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: E2 0E 00 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: E2 0E 00 CF 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 5F [11:04:23]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:04:23]wFMCommunicate OK [11:04:23]SAM_PROTO_GetShiftState done [11:04:23]FM_GetShiftState done [11:04:23]opened in 1729900879 [11:04:23]opened+sec_in_day 1729987279 [11:04:23]quantity*price = 200025 [11:04:23]sum+1 = 200026 [11:04:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 151 26.10.2024 11:04 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201389 ФПД: 61761390180465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110423&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201389&fm=61761390180465&tin=02508201610067®Number=0000000000091777&sum=200000 [11:04:24]StoreToDocumentArchive [11:04:24]shift 543 fd 201389 [11:04:24]save to /storage/0543/doc_00201389 [11:04:24]save last doc name /storage/0543/doc_00201389 to /storage/kkm_last_doc_name [11:04:24]save OK [11:04:24]Clear old archive folders... [11:04:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:04:24]tlvbuf is 0178B150 [11:04:24]SAM_PROTO_ClearQueue [11:04:24]wFMCommunicate request_size=4 [11:04:24]MH_SAM_APDU [11:04:24]CAPDU: 80 09 00 00 [11:04:24]Write to MH i2c: E2 08 00 DC 04 80 09 00 00 00 00 00 00 52 [11:04:24]Write i2c OK [11:04:24]MH_I2C_Read... [11:04:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:24]Read from MH i2c: E2 [11:04:24]MH_I2C_Read... [11:04:24]Read from MH i2c: E2 03 00 [11:04:24]MH_I2C_Read... [11:04:24]Read from MH i2c: E2 03 00 DC 04 00 90 00 54 [11:04:24]RAPDU: 90 00 [11:04:24]wFMCommunicate OK [11:04:24]SAM_PROTO_ClearQueue done [11:04:24]KKMCreateOFDPacket [11:04:24]OFDProtocolAddRootSTLVToBuf [11:04:24]FM_MakeSignedData [11:04:24]FM_MakeSignedData [11:04:24]SAM_PROTO_SignData [11:04:24]wFMCommunicate request_size=4 [11:04:24]MH_SAM_APDU [11:04:24]CAPDU: 80 0D 01 02 [11:04:24]Write to MH i2c: E2 08 00 DD 04 80 0D 01 02 00 00 00 00 5A [11:04:24]Write i2c OK [11:04:24]MH_I2C_Read... [11:04:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:24]Read from MH i2c: E2 [11:04:24]MH_I2C_Read... [11:04:24]Read from MH i2c: E2 03 00 [11:04:24]MH_I2C_Read... [11:04:24]Read from MH i2c: E2 03 00 DD 04 00 90 00 55 [11:04:24]RAPDU: 90 00 [11:04:24]wFMCommunicate OK [11:04:24]wFMCommunicate request_size=255 [11:04:24]MH_SAM_APDU [11:04:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 97 00 00 00 F4 03 04 00 B7 CC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AD 12 03 00 35 04 06 00 38 2B F1 B8 [11:04:25]Write to MH i2c: E2 02 01 DE 04 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 97 00 00 00 F4 03 04 00 B7 CC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AD 12 03 00 35 04 06 00 38 2B F1 B8 00 00 5E [11:04:25]Write i2c OK [11:04:25]MH_I2C_Read... [11:04:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:25]Read from MH i2c: E2 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: E2 03 00 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: E2 03 00 DE 04 00 90 00 56 [11:04:25]RAPDU: 90 00 [11:04:25]wFMCommunicate OK [11:04:25]wFMCommunicate request_size=7 [11:04:25]MH_SAM_APDU [11:04:25]CAPDU: 80 0D 02 02 02 F8 71 [11:04:25]Write to MH i2c: E2 0A 00 DF 04 80 0D 02 02 02 00 F8 71 00 00 CA [11:04:25]Write i2c OK [11:04:25]MH_I2C_Read... [11:04:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:25]Read from MH i2c: E2 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: E2 03 00 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: E2 03 00 DF 04 00 90 00 57 [11:04:25]RAPDU: 90 00 [11:04:25]wFMCommunicate OK [11:04:25]wFMCommunicate request_size=4 [11:04:25]MH_SAM_APDU [11:04:25]CAPDU: 80 0D 03 02 [11:04:25]Write to MH i2c: E2 08 00 E0 04 80 0D 03 02 00 00 00 00 5F [11:04:25]Write i2c OK [11:04:25]MH_I2C_Read... [11:04:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:04:25]Read from MH i2c: E2 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: E2 0B 00 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: E2 0B 00 E0 04 00 42 14 04 F0 8A F4 7E 3C 90 00 E2 [11:04:25]RAPDU: 42 14 04 F0 8A F4 7E 3C 90 00 [11:04:25]wFMCommunicate OK [11:04:25]SAM_PROTO_SignData done [11:04:25]FM_MakeSignedData done [11:04:25]CreateOFDProtocolMessage [11:04:25]wFMCommunicate request_size=4 [11:04:25]MH_SAM_APDU [11:04:25]CAPDU: 80 11 00 00 [11:04:25]Write to MH i2c: E2 08 00 E1 04 80 11 00 00 00 00 00 00 5F [11:04:25]Write i2c OK [11:04:25]MH_I2C_Read... [11:04:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:25]Read from MH i2c: E2 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: E2 17 00 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: E2 17 00 E1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B4 [11:04:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:04:25]wFMCommunicate OK [11:04:25]CreateOFDProtocolMessage done [11:04:25]OFDSenderStorePacket 201389 [11:04:25]StoreOFDPacket docnum=201389 [11:04:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 96 F3 04 01 07 6D 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 97 00 00 00 F4 03 04 00 B7 CC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AD 12 03 00 35 04 06 00 38 2B F1 B8 F8 71 42 14 04 F0 8A F4 7E 3C [11:04:25]CheckFolder [11:04:25]dirname=/storage/ofd_packets [11:04:25]CheckFolder done [11:04:25]ProducePacketName [11:04:25]name=ofd_packets/00201389 [11:04:25]NVStorageSaveData ofd_packets/00201389 [11:04:25]File name is /storage/ofd_packets/00201389 [11:04:25]Write 298 bytes [11:04:25]NVStorageSaveData done [11:04:25]OFDSenderStorePacket done [11:04:25]KKMCreateOFDPacket done [11:04:25]NVStorageSaveData kkm_last_timestamp [11:04:25]File name is /storage/kkm_last_timestamp [11:04:25]Write 4 bytes [11:04:25]NVStorageSaveData done [11:04:25]ExternCall_PrintAddStr [11:04:26]wPrintStart [11:04:26]Write to MH i2c: 01 00 00 E2 04 E6 [11:04:26]OFD Sender: Processing packet 201389 [packets to send 112, broken 111] [11:04:26]ProducePacketName [11:04:26]name=ofd_packets/00201389 [11:04:26]OFD Sender: To server: pG, [11:04:26]CommunicateWithHost lk.salyk.kg:30040 [11:04:26]ConnectInit lk.salyk.kg [11:04:26]Write i2c OK [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: 01 [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: 01 07 00 [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: 01 07 00 E2 04 00 00 00 00 00 FF 0F FB [11:04:26]RasterBufferAndPrint [11:04:26]line Счет N : (1)449137 [11:04:26]line ИНН: 02508201610067 [11:04:26]line Контрольно-Кассовый Чек [11:04:26]line ПРОДАЖА [11:04:26]line ТРК (МРК, ГНК) : 43 [11:04:26]line Товар: 2710194210 [11:04:26]line ДТ-К-2 [11:04:26]line 26.250 * 76.20 [11:04:26]line = 2000.25 [11:04:26]line НДС 12% НСП 1% [11:04:26]line > о реализуемом товаре [11:04:26]line ОКРУГЛЕНИЕ: -0.25 [11:04:26]line ИТОГО: 2000.00 [11:04:26]line Внесено: 2000.00 [11:04:26]line СДАЧА: 0.00 [11:04:26]line НСП 1% : 17.70 [11:04:26]line НДС 12% : 212.42 [11:04:26]line Наличными: 2000.00 [11:04:26]line Безнал.: 0.00 [11:04:26]line Место: АЗС № 171 "Партнер Нефть" [11:04:26]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:04:26]line СНО: Общий режим [11:04:26]line Чек 151 26.10.2024 11:04 [11:04:26]line Смена: 543 ФФД: 1.0 [11:04:26]line ЗНМ: 0300000109 [11:04:26]line РНМ: 0000000000091777 [11:04:26]line Версия ККМ: 001 [11:04:26]line ФМ: 0000000000871756 [11:04:26]line ФД: 201389 [11:04:26]line ФПД: 61761390180465 [11:04:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110423&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201389&fm=61761390180465&tin=02508201610067®Number=0000000000091777&sum=200000 [11:04:26]written 0, free lines is 4095 [11:04:26]Connected sock=10 [11:04:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 96 F3 04 01 07 6D 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 97 00 00 00 F4 03 04 00 B7 CC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AD 12 03 00 35 04 06 00 38 2B F1 B8 F8 71 42 14 04 F0 8A F4 7E 3C [11:04:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B9 67 47 00 BB 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AD 12 03 00 F4 03 04 00 61 78 1C 67 B6 04 01 00 00 BD 38 19 06 83 0C DD AD [11:04:26]CommunicateWithHost err = 0 [11:04:26]CheckOFDResponse [11:04:26]1017 (14) - 77093643461234 [11:04:26]1041 (16) - 0000000000871756 [11:04:26]1040 (4) - 201389 [11:04:26]1012 (4) - 26.10.2024 05:04 [11:04:26]1206 (1) - 0 [11:04:26]OFD Sender: Remove packet 201389 [11:04:26]ProducePacketName [11:04:26]name=ofd_packets/00201389 [11:04:26]NVStorageDeleteData [11:04:26]Write to MH i2c: 01 00 00 0D 05 12 [11:04:26]Write i2c OK [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: 01 [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: 01 07 00 [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: 01 07 00 0D 05 00 00 00 00 00 B6 0C DB [11:04:26]RasterBufferAndPrint [11:04:26]line [11:04:26]line [11:04:26]line [11:04:26]line [11:04:26]line [11:04:26]written 0, free lines is 3265 [11:04:26]MH_Cut [11:04:26]Write to MH i2c: D1 01 00 14 05 01 EB [11:04:26]Write i2c OK [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: D1 [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: D1 01 00 [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: D1 01 00 14 05 00 EA [11:04:26]Write to MH i2c: 01 00 00 15 05 1A [11:04:26]Write i2c OK [11:04:26]MH_I2C_Read... [11:04:26]OFD Sender: No OFD packet to send [11:04:27]*** Cut start [11:04:27]*** Purtial cut [11:04:27]*** Stage 1: CUTSNS_PIN = 1 [11:04:27]Read from MH i2c: 01 [11:04:27]MH_I2C_Read... [11:04:27]*** Stop cut motor [11:04:27]*** Cut end [11:04:27]Read from MH i2c: 01 07 00 [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: 01 07 00 15 05 00 00 00 00 00 FF 0F 2F [11:04:27]process_action close_receipt done [11:04:27]requested_data is exist [11:04:27]produce_requested_data [11:04:27]requested_item fm.sn is exist - process it [11:04:27]wFMCommunicate request_size=4 [11:04:27]MH_SAM_APDU [11:04:27]CAPDU: 80 11 00 00 [11:04:27]Write to MH i2c: E2 08 00 16 05 80 11 00 00 00 00 00 00 95 [11:04:27]Write i2c OK [11:04:27]MH_I2C_Read... [11:04:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:27]Read from MH i2c: E2 [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: E2 17 00 [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: E2 17 00 16 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EA [11:04:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:04:27]wFMCommunicate OK [11:04:27]requested_item fd.num is exist - process it [11:04:27]SAM_PROTO_GetFieldsCounters [11:04:27]wFMCommunicate request_size=4 [11:04:27]MH_SAM_APDU [11:04:27]CAPDU: 80 13 00 00 [11:04:27]Write to MH i2c: E2 08 00 17 05 80 13 00 00 00 00 00 00 98 [11:04:27]Write i2c OK [11:04:27]MH_I2C_Read... [11:04:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:27]Read from MH i2c: E2 [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: E2 62 00 [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: E2 62 00 17 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AD 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [11:04:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AD 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:04:27]wFMCommunicate OK [11:04:27]SAM_PROTO_GetFieldsCounters done [11:04:27]requested_item shift.num is exist - process it [11:04:27]requested_item shift.opened is exist - process it [11:04:27]req_shift_opened [11:04:27]FM_GetShiftState [11:04:27]SAM_PROTO_GetShiftState [11:04:27]wFMCommunicate request_size=4 [11:04:27]MH_SAM_APDU [11:04:27]CAPDU: 80 13 01 00 [11:04:27]Write to MH i2c: E2 08 00 18 05 80 13 01 00 00 00 00 00 9A [11:04:27]Write i2c OK [11:04:27]MH_I2C_Read... [11:04:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:27]Read from MH i2c: E2 [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: E2 0E 00 [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: E2 0E 00 18 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 A9 [11:04:27]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:04:27]wFMCommunicate OK [11:04:27]SAM_PROTO_GetShiftState done [11:04:27]FM_GetShiftState done [11:04:27]req_shift_opened done [11:04:27]requested_item shift.open_date is exist - process it [11:04:27]req_shift_open_date [11:04:27]req_shift_open_date done [11:04:27]produce_requested_data done [11:04:27]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201389,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:04:27]process_action_free close_receipt [11:04:27]json_value_free [11:04:27]json_value_free done [11:04:27]process_json_proto returns [11:04:27]Send response to host [11:04:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201389,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:04:27]free response buf [11:04:27]execute_script done [11:04:27]execute_script returns [11:04:27]free content buf [11:04:27]Sock 7.Close socket [11:04:27]Sock 7.Thread stoped [11:04:31]OFD Sender: No OFD packet to send [11:04:36]OFD Sender: No OFD packet to send [11:04:41]OFD Sender: No OFD packet to send [11:04:46]OFD Sender: No OFD packet to send [11:04:51]OFD Sender: No OFD packet to send [11:04:56]OFD Sender: No OFD packet to send [11:05:01]OFD Sender: No OFD packet to send [11:05:06]OFD Sender: No OFD packet to send [11:05:11]OFD Sender: No OFD packet to send [11:05:16]OFD Sender: No OFD packet to send [11:05:22]OFD Sender: No OFD packet to send [11:05:27]OFD Sender: No OFD packet to send [11:05:32]OFD Sender: No OFD packet to send [11:05:37]OFD Sender: No OFD packet to send [11:05:42]OFD Sender: No OFD packet to send [11:05:47]OFD Sender: No OFD packet to send [11:05:52]OFD Sender: No OFD packet to send [11:05:52]accept exits with 9 [11:05:52]New connection [11:05:52]New thread 3066498404 created [11:05:52]Thread 3066641764 joined [11:05:52]Waiting for new connection... [11:05:52] Sock 9.Parse request [11:05:52]Sock 9.Check first char [11:05:52]Sock 9.First char is OK [11:05:52]request: POST /json_proto HTTP/1.0 [11:05:52]Method: POST [11:05:52]URL: /json_proto [11:05:52]Method is POST - this is cgi request [11:05:52]url: /json_proto [11:05:52]query_string will be loaded in cgi processing [11:05:52]execute_cgi json_proto POST (null) [11:05:52]execute_cgi path=json_proto method=POST [11:05:52]POST find Content-Length [11:05:52]Host: 172.17.63.195:8080 [11:05:52]Content-Length: 671 [11:05:52]Content-Type: application/json [11:05:52] [11:05:52]POST finish read [11:05:52]Found Content-Length = 671 [11:05:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 0.010, "sum" : 0.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:52]execute_script... [11:05: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)449139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 0.010, "sum" : 0.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:52]POST & json_proto [11:05:52]process_json_proto [11:05:52]json parsed OK: [11:05:52]protocol is kg_v1.0 [11:05:52]action value=close_receipt [11:05:52]process_action close_receipt [11:05:52]cmd_close_receipt [11:05:52]MH_GetDate [11:05:52]Write to MH i2c: F0 00 00 19 05 0D [11:05:52]Write i2c OK [11:05:52]MH_I2C_Read... [11:05:52]Read from MH i2c: F0 [11:05:52]MH_I2C_Read... [11:05:52]Read from MH i2c: F0 09 00 [11:05:52]MH_I2C_Read... [11:05:52]Read from MH i2c: F0 09 00 19 05 00 11 CD 1C 67 68 46 19 67 A5 [11:05:52]GetLastDocTimeStamp 1729940663 [11:05:52]current date 1729940753 [11:05:52]FM_GetShiftState [11:05:52]SAM_PROTO_GetShiftState [11:05:52]wFMCommunicate request_size=4 [11:05:52]MH_SAM_APDU [11:05:52]CAPDU: 80 13 01 00 [11:05:52]Write to MH i2c: E2 08 00 1A 05 80 13 01 00 00 00 00 00 9C [11:05:52]Write i2c OK [11:05:52]MH_I2C_Read... [11:05:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:52]Read from MH i2c: E2 [11:05:52]MH_I2C_Read... [11:05:52]Read from MH i2c: E2 0E 00 [11:05:52]MH_I2C_Read... [11:05:52]Read from MH i2c: E2 0E 00 1A 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 AB [11:05:52]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:05:52]wFMCommunicate OK [11:05:52]SAM_PROTO_GetShiftState done [11:05:52]FM_GetShiftState done [11:05:52]opened in 1729900879 [11:05:52]opened+sec_in_day 1729987279 [11:05:52]quantity*price = 66 [11:05:52]sum+1 = 68 [11:05:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 0.00 Внесено: 500.00 СДАЧА: 500.00 НСП 1% : 0.01 НДС 12% : 0.07 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 152 26.10.2024 11:05 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201390 ФПД: 1449581892103 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110553&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201390&fm=1449581892103&tin=02508201610067®Number=0000000000091777&sum=0 [11:05:54]StoreToDocumentArchive [11:05:54]shift 543 fd 201390 [11:05:54]save to /storage/0543/doc_00201390 [11:05:54]save last doc name /storage/0543/doc_00201390 to /storage/kkm_last_doc_name [11:05:54]save OK [11:05:54]Clear old archive folders... [11:05:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:05:54]tlvbuf is 0180DA80 [11:05:54]SAM_PROTO_ClearQueue [11:05:54]wFMCommunicate request_size=4 [11:05:54]MH_SAM_APDU [11:05:54]CAPDU: 80 09 00 00 [11:05:54]Write to MH i2c: E2 08 00 27 05 80 09 00 00 00 00 00 00 9E [11:05:54]Write i2c OK [11:05:54]MH_I2C_Read... [11:05:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:54]Read from MH i2c: E2 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 03 00 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 03 00 27 05 00 90 00 A0 [11:05:54]RAPDU: 90 00 [11:05:54]wFMCommunicate OK [11:05:54]SAM_PROTO_ClearQueue done [11:05:54]KKMCreateOFDPacket [11:05:54]OFDProtocolAddRootSTLVToBuf [11:05:54]FM_MakeSignedData [11:05:54]FM_MakeSignedData [11:05:54]SAM_PROTO_SignData [11:05:54]wFMCommunicate request_size=4 [11:05:54]MH_SAM_APDU [11:05:54]CAPDU: 80 0D 01 02 [11:05:54]Write to MH i2c: E2 08 00 28 05 80 0D 01 02 00 00 00 00 A6 [11:05:54]Write i2c OK [11:05:54]MH_I2C_Read... [11:05:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:54]Read from MH i2c: E2 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 03 00 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 03 00 28 05 00 90 00 A1 [11:05:54]RAPDU: 90 00 [11:05:54]wFMCommunicate OK [11:05:54]wFMCommunicate request_size=255 [11:05:54]MH_SAM_APDU [11:05: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 32 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 11 CD 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AE 12 03 00 35 04 06 00 01 [11:05:54]Write to MH i2c: E2 02 01 29 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 32 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 11 CD 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AE 12 03 00 35 04 06 00 01 00 00 24 [11:05:54]Write i2c OK [11:05:54]MH_I2C_Read... [11:05:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:54]Read from MH i2c: E2 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 03 00 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 03 00 29 05 00 90 00 A2 [11:05:54]RAPDU: 90 00 [11:05:54]wFMCommunicate OK [11:05:54]wFMCommunicate request_size=10 [11:05:54]MH_SAM_APDU [11:05:54]CAPDU: 80 0D 02 02 05 51 81 D0 52 07 [11:05:54]Write to MH i2c: E2 0D 00 2A 05 80 0D 02 02 05 00 51 81 D0 52 07 00 00 AE [11:05:54]Write i2c OK [11:05:54]MH_I2C_Read... [11:05:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:54]Read from MH i2c: E2 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 03 00 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 03 00 2A 05 00 90 00 A3 [11:05:54]RAPDU: 90 00 [11:05:54]wFMCommunicate OK [11:05:54]wFMCommunicate request_size=4 [11:05:54]MH_SAM_APDU [11:05:54]CAPDU: 80 0D 03 02 [11:05:54]Write to MH i2c: E2 08 00 2B 05 80 0D 03 02 00 00 00 00 AB [11:05:54]Write i2c OK [11:05:54]MH_I2C_Read... [11:05:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:54]Read from MH i2c: E2 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 0B 00 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 0B 00 2B 05 00 74 C1 F7 FA E4 B7 06 7E 90 00 F1 [11:05:54]RAPDU: 74 C1 F7 FA E4 B7 06 7E 90 00 [11:05:54]wFMCommunicate OK [11:05:54]SAM_PROTO_SignData done [11:05:54]FM_MakeSignedData done [11:05:54]CreateOFDProtocolMessage [11:05:54]wFMCommunicate request_size=4 [11:05:54]MH_SAM_APDU [11:05:54]CAPDU: 80 11 00 00 [11:05:54]Write to MH i2c: E2 08 00 2C 05 80 11 00 00 00 00 00 00 AB [11:05:54]Write i2c OK [11:05:54]MH_I2C_Read... [11:05:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:54]Read from MH i2c: E2 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 17 00 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: E2 17 00 2C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 00 [11:05:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:05:54]wFMCommunicate OK [11:05:54]CreateOFDProtocolMessage done [11:05:54]OFDSenderStorePacket 201390 [11:05:54]StoreOFDPacket docnum=201390 [11:05:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 70 19 07 01 C7 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 32 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 11 CD 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AE 12 03 00 35 04 06 00 01 51 81 D0 52 07 74 C1 F7 FA E4 B7 06 7E [11:05:54]CheckFolder [11:05:54]dirname=/storage/ofd_packets [11:05:54]CheckFolder done [11:05:54]ProducePacketName [11:05:54]name=ofd_packets/00201390 [11:05:54]NVStorageSaveData ofd_packets/00201390 [11:05:54]File name is /storage/ofd_packets/00201390 [11:05:54]Write 301 bytes [11:05:54]NVStorageSaveData done [11:05:54]OFDSenderStorePacket done [11:05:54]KKMCreateOFDPacket done [11:05:54]NVStorageSaveData kkm_last_timestamp [11:05:54]File name is /storage/kkm_last_timestamp [11:05:54]Write 4 bytes [11:05:54]NVStorageSaveData done [11:05:54]ExternCall_PrintAddStr [11:05:54]wPrintStart [11:05:54]Write to MH i2c: 01 00 00 2D 05 32 [11:05:54]Write i2c OK [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: 01 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: 01 07 00 [11:05:54]MH_I2C_Read... [11:05:54]Read from MH i2c: 01 07 00 2D 05 00 00 00 00 00 FF 0F 47 [11:05:54]RasterBufferAndPrint [11:05:54]line Счет N : (1)449139 [11:05:54]line ИНН: 02508201610067 [11:05:54]line Контрольно-Кассовый Чек [11:05:54]line ПРОДАЖА [11:05:54]line ТРК (МРК, ГНК) : 62 [11:05:54]line Товар: 2710124130 [11:05:54]line Аи-92-К-2 [11:05:54]line 0.010 * 66.90 [11:05:54]line = 0.67 [11:05:54]line НДС 12% НСП 1% [11:05:54]line > о реализуемом товаре [11:05:54]line ОКРУГЛЕНИЕ: -0.67 [11:05:54]line ИТОГО: 0.00 [11:05:54]line Внесено: 500.00 [11:05:54]line СДАЧА: 500.00 [11:05:54]line НСП 1% : 0.01 [11:05:54]line НДС 12% : 0.07 [11:05:54]line Наличными: 0.00 [11:05:54]line Безнал.: 0.00 [11:05:54]line Место: АЗС № 171 "Партнер Нефть" [11:05:54]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:05:54]line СНО: Общий режим [11:05:54]line Чек 152 26.10.2024 11:05 [11:05:54]line Смена: 543 ФФД: 1.0 [11:05:54]line ЗНМ: 0300000109 [11:05:54]line РНМ: 0000000000091777 [11:05:54]line Версия ККМ: 001 [11:05:54]line ФМ: 0000000000871756 [11:05:54]line ФД: 201390 [11:05:54]line ФПД: 1449581892103 [11:05:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110553&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201390&fm=1449581892103&tin=02508201610067®Number=0000000000091777&sum=0 [11:05:54]written 0, free lines is 4095 [11:05:54]OFD Sender: Processing packet 201390 [packets to send 112, broken 111] [11:05:54]ProducePacketName [11:05:54]name=ofd_packets/00201390 [11:05:54]OFD Sender: To server: pG, [11:05:54]CommunicateWithHost lk.salyk.kg:30040 [11:05:54]ConnectInit lk.salyk.kg [11:05:55]Connected sock=10 [11:05:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 70 19 07 01 C7 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 32 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 11 CD 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AE 12 03 00 35 04 06 00 01 51 81 D0 52 07 74 C1 F7 FA E4 B7 06 7E [11:05:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 FE 2A 47 00 7F 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AE 12 03 00 F4 03 04 00 BA 78 1C 67 B6 04 01 00 00 5A 9C E9 EB CA F4 06 ED [11:05:55]CommunicateWithHost err = 0 [11:05:55]CheckOFDResponse [11:05:55]1017 (14) - 77093643461234 [11:05:55]1041 (16) - 0000000000871756 [11:05:55]1040 (4) - 201390 [11:05:55]1012 (4) - 26.10.2024 05:06 [11:05:55]1206 (1) - 0 [11:05:55]OFD Sender: Remove packet 201390 [11:05:55]ProducePacketName [11:05:55]name=ofd_packets/00201390 [11:05:55]NVStorageDeleteData [11:05:55]Write to MH i2c: 01 00 00 58 05 5D [11:05:55]Write i2c OK [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: 01 [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: 01 07 00 [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: 01 07 00 58 05 00 00 00 00 00 9F 0C 0F [11:05:55]RasterBufferAndPrint [11:05:55]line [11:05:55]line [11:05:55]line [11:05:55]line [11:05:55]line [11:05:55]written 0, free lines is 3237 [11:05:55]MH_Cut [11:05:55]Write to MH i2c: D1 01 00 5F 05 01 36 [11:05:55]Write i2c OK [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: D1 [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: D1 01 00 [11:05:55]MH_I2C_Read... [11:05:55]Read from MH i2c: D1 01 00 5F 05 00 35 [11:05:55]Write to MH i2c: 01 00 00 60 05 65 [11:05:55]Write i2c OK [11:05:55]MH_I2C_Read... [11:05:55]OFD Sender: No OFD packet to send [11:05:56]*** Cut start [11:05:56]*** Purtial cut [11:05:56]*** Stage 1: CUTSNS_PIN = 1 [11:05:56]Read from MH i2c: 01 [11:05:56]MH_I2C_Read... [11:05:56]*** Stop cut motor [11:05:56]*** Cut end [11:05:56]Read from MH i2c: 01 07 00 [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: 01 07 00 60 05 00 00 00 00 00 FF 0F 7A [11:05:56]process_action close_receipt done [11:05:56]requested_data is exist [11:05:56]produce_requested_data [11:05:56]requested_item fm.sn is exist - process it [11:05:56]wFMCommunicate request_size=4 [11:05:56]MH_SAM_APDU [11:05:56]CAPDU: 80 11 00 00 [11:05:56]Write to MH i2c: E2 08 00 61 05 80 11 00 00 00 00 00 00 E0 [11:05:56]Write i2c OK [11:05:56]MH_I2C_Read... [11:05:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:56]Read from MH i2c: E2 [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: E2 17 00 [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: E2 17 00 61 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 35 [11:05:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:05:56]wFMCommunicate OK [11:05:56]requested_item fd.num is exist - process it [11:05:56]SAM_PROTO_GetFieldsCounters [11:05:56]wFMCommunicate request_size=4 [11:05:56]MH_SAM_APDU [11:05:56]CAPDU: 80 13 00 00 [11:05:56]Write to MH i2c: E2 08 00 62 05 80 13 00 00 00 00 00 00 E3 [11:05:56]Write i2c OK [11:05:56]MH_I2C_Read... [11:05:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:56]Read from MH i2c: E2 [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: E2 62 00 [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: E2 62 00 62 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AE 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [11:05:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AE 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:05:56]wFMCommunicate OK [11:05:56]SAM_PROTO_GetFieldsCounters done [11:05:56]requested_item shift.num is exist - process it [11:05:56]requested_item shift.opened is exist - process it [11:05:56]req_shift_opened [11:05:56]FM_GetShiftState [11:05:56]SAM_PROTO_GetShiftState [11:05:56]wFMCommunicate request_size=4 [11:05:56]MH_SAM_APDU [11:05:56]CAPDU: 80 13 01 00 [11:05:56]Write to MH i2c: E2 08 00 63 05 80 13 01 00 00 00 00 00 E5 [11:05:56]Write i2c OK [11:05:56]MH_I2C_Read... [11:05:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:56]Read from MH i2c: E2 [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: E2 0E 00 [11:05:56]MH_I2C_Read... [11:05:56]Read from MH i2c: E2 0E 00 63 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F4 [11:05:56]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:05:56]wFMCommunicate OK [11:05:56]SAM_PROTO_GetShiftState done [11:05:56]FM_GetShiftState done [11:05:56]req_shift_opened done [11:05:56]requested_item shift.open_date is exist - process it [11:05:56]req_shift_open_date [11:05:56]req_shift_open_date done [11:05:56]produce_requested_data done [11:05:56]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201390,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:05:56]process_action_free close_receipt [11:05:56]json_value_free [11:05:56]json_value_free done [11:05:56]process_json_proto returns [11:05:56]Send response to host [11:05:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201390,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:05:56]free response buf [11:05:56]execute_script done [11:05:56]execute_script returns [11:05:56]free content buf [11:05:56]Sock 9.Close socket [11:05:56]Sock 9.Thread stoped [11:06:00]OFD Sender: No OFD packet to send [11:06:05]OFD Sender: No OFD packet to send [11:06:10]OFD Sender: No OFD packet to send [11:06:15]OFD Sender: No OFD packet to send [11:06:20]OFD Sender: No OFD packet to send [11:06:25]OFD Sender: No OFD packet to send [11:06:30]OFD Sender: No OFD packet to send [11:06:35]OFD Sender: No OFD packet to send [11:06:40]OFD Sender: No OFD packet to send [11:06:45]OFD Sender: No OFD packet to send [11:06:50]OFD Sender: No OFD packet to send [11:06:55]OFD Sender: No OFD packet to send [11:07:00]OFD Sender: No OFD packet to send [11:07:05]OFD Sender: No OFD packet to send [11:07:10]OFD Sender: No OFD packet to send [11:07:15]OFD Sender: No OFD packet to send [11:07:20]OFD Sender: No OFD packet to send [11:07:25]OFD Sender: No OFD packet to send [11:07:30]OFD Sender: No OFD packet to send [11:07:35]OFD Sender: No OFD packet to send [11:07:40]OFD Sender: No OFD packet to send [11:07:45]OFD Sender: No OFD packet to send [11:07:50]OFD Sender: No OFD packet to send [11:07:55]OFD Sender: No OFD packet to send [11:08:00]OFD Sender: No OFD packet to send [11:08:05]OFD Sender: No OFD packet to send [11:08:10]OFD Sender: No OFD packet to send [11:08:15]OFD Sender: No OFD packet to send [11:08:21]OFD Sender: No OFD packet to send [11:08:26]OFD Sender: No OFD packet to send [11:08:31]OFD Sender: No OFD packet to send [11:08:34]accept exits with 7 [11:08:34]New connection [11:08:34]New thread 3066641764 created [11:08:34]Thread 3066498404 joined [11:08:34]Waiting for new connection... [11:08:34] Sock 7.Parse request [11:08:34]Sock 7.Check first char [11:08:34]Sock 7.First char is OK [11:08:34]request: POST /json_proto HTTP/1.0 [11:08:34]Method: POST [11:08:34]URL: /json_proto [11:08:34]Method is POST - this is cgi request [11:08:34]url: /json_proto [11:08:34]query_string will be loaded in cgi processing [11:08:34]execute_cgi json_proto POST (null) [11:08:34]execute_cgi path=json_proto method=POST [11:08:34]POST find Content-Length [11:08:34]Host: 172.17.63.195:8080 [11:08:34]Content-Length: 677 [11:08:34]Content-Type: application/json [11:08:34] [11:08:34]POST finish read [11:08:34]Found Content-Length = 677 [11:08:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.460, "sum" : 499.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 499.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:34]execute_script... [11:08: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)449140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.460, "sum" : 499.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 499.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:34]POST & json_proto [11:08:34]process_json_proto [11:08:34]json parsed OK: [11:08:34]protocol is kg_v1.0 [11:08:34]action value=close_receipt [11:08:34]process_action close_receipt [11:08:34]cmd_close_receipt [11:08:34]MH_GetDate [11:08:34]Write to MH i2c: F0 00 00 64 05 58 [11:08:34]Write i2c OK [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: F0 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: F0 09 00 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: F0 09 00 64 05 00 B2 CD 1C 67 68 46 19 67 91 [11:08:34]GetLastDocTimeStamp 1729940753 [11:08:34]current date 1729940914 [11:08:34]FM_GetShiftState [11:08:34]SAM_PROTO_GetShiftState [11:08:34]wFMCommunicate request_size=4 [11:08:34]MH_SAM_APDU [11:08:34]CAPDU: 80 13 01 00 [11:08:34]Write to MH i2c: E2 08 00 65 05 80 13 01 00 00 00 00 00 E7 [11:08:34]Write i2c OK [11:08:34]MH_I2C_Read... [11:08:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:34]Read from MH i2c: E2 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 0E 00 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 0E 00 65 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F6 [11:08:34]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:08:34]wFMCommunicate OK [11:08:34]SAM_PROTO_GetShiftState done [11:08:34]FM_GetShiftState done [11:08:34]opened in 1729900879 [11:08:34]opened+sec_in_day 1729987279 [11:08:34]quantity*price = 49907 [11:08:34]sum+1 = 49908 [11:08:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 499.00 Внесено: 499.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.00 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 153 26.10.2024 11:08 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201391 ФПД: 36193343597347 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110834&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201391&fm=36193343597347&tin=02508201610067®Number=0000000000091777&sum=49900 [11:08:35]StoreToDocumentArchive [11:08:35]shift 543 fd 201391 [11:08:35]save to /storage/0543/doc_00201391 [11:08:35]save last doc name /storage/0543/doc_00201391 to /storage/kkm_last_doc_name [11:08:35]save OK [11:08:35]Clear old archive folders... [11:08:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:08:35]tlvbuf is 0180CF40 [11:08:35]SAM_PROTO_ClearQueue [11:08:35]wFMCommunicate request_size=4 [11:08:35]MH_SAM_APDU [11:08:35]CAPDU: 80 09 00 00 [11:08:35]Write to MH i2c: E2 08 00 72 05 80 09 00 00 00 00 00 00 E9 [11:08:35]Write i2c OK [11:08:35]MH_I2C_Read... [11:08:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:35]Read from MH i2c: E2 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 03 00 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 03 00 72 05 00 90 00 EB [11:08:35]RAPDU: 90 00 [11:08:35]wFMCommunicate OK [11:08:35]SAM_PROTO_ClearQueue done [11:08:35]KKMCreateOFDPacket [11:08:35]OFDProtocolAddRootSTLVToBuf [11:08:35]FM_MakeSignedData [11:08:35]FM_MakeSignedData [11:08:35]SAM_PROTO_SignData [11:08:35]wFMCommunicate request_size=4 [11:08:35]MH_SAM_APDU [11:08:35]CAPDU: 80 0D 01 02 [11:08:35]Write to MH i2c: E2 08 00 73 05 80 0D 01 02 00 00 00 00 F1 [11:08:35]Write i2c OK [11:08:35]MH_I2C_Read... [11:08:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:35]Read from MH i2c: E2 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 03 00 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 03 00 73 05 00 90 00 EC [11:08:35]RAPDU: 90 00 [11:08:35]wFMCommunicate OK [11:08:35]wFMCommunicate request_size=255 [11:08:35]MH_SAM_APDU [11:08:35]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 32 FF 03 08 00 03 24 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F3 C2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 B2 CD 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AF 12 03 00 35 04 06 00 20 [11:08:35]Write to MH i2c: E2 02 01 74 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 32 FF 03 08 00 03 24 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F3 C2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 B2 CD 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AF 12 03 00 35 04 06 00 20 00 00 B1 [11:08:35]Write i2c OK [11:08:35]MH_I2C_Read... [11:08:36]OFD Sender: No OFD packet to send [11:08:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:36]Read from MH i2c: E2 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: E2 03 00 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: E2 03 00 74 05 00 90 00 ED [11:08:36]RAPDU: 90 00 [11:08:36]wFMCommunicate OK [11:08:36]wFMCommunicate request_size=10 [11:08:36]MH_SAM_APDU [11:08:36]CAPDU: 80 0D 02 02 05 EA EB 63 6B 23 [11:08:36]Write to MH i2c: E2 0D 00 75 05 80 0D 02 02 05 00 EA EB 63 6B 23 00 00 C4 [11:08:36]Write i2c OK [11:08:36]MH_I2C_Read... [11:08:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:36]Read from MH i2c: E2 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: E2 03 00 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: E2 03 00 75 05 00 90 00 EE [11:08:36]RAPDU: 90 00 [11:08:36]wFMCommunicate OK [11:08:36]wFMCommunicate request_size=4 [11:08:36]MH_SAM_APDU [11:08:36]CAPDU: 80 0D 03 02 [11:08:36]Write to MH i2c: E2 08 00 76 05 80 0D 03 02 00 00 00 00 F6 [11:08:36]Write i2c OK [11:08:36]MH_I2C_Read... [11:08:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:36]Read from MH i2c: E2 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: E2 0B 00 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: E2 0B 00 76 05 00 B9 89 9E 66 3E 0E D3 F6 90 00 52 [11:08:36]RAPDU: B9 89 9E 66 3E 0E D3 F6 90 00 [11:08:36]wFMCommunicate OK [11:08:36]SAM_PROTO_SignData done [11:08:36]FM_MakeSignedData done [11:08:36]CreateOFDProtocolMessage [11:08:36]wFMCommunicate request_size=4 [11:08:36]MH_SAM_APDU [11:08:36]CAPDU: 80 11 00 00 [11:08:36]Write to MH i2c: E2 08 00 77 05 80 11 00 00 00 00 00 00 F6 [11:08:36]Write i2c OK [11:08:36]MH_I2C_Read... [11:08:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:36]Read from MH i2c: E2 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: E2 17 00 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: E2 17 00 77 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4B [11:08:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:08:36]wFMCommunicate OK [11:08:36]CreateOFDProtocolMessage done [11:08:36]OFDSenderStorePacket 201391 [11:08:36]StoreOFDPacket docnum=201391 [11:08:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 29 19 07 01 D5 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 24 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F3 C2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 B2 CD 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AF 12 03 00 35 04 06 00 20 EA EB 63 6B 23 B9 89 9E 66 3E 0E D3 F6 [11:08:36]CheckFolder [11:08:36]dirname=/storage/ofd_packets [11:08:36]CheckFolder done [11:08:36]ProducePacketName [11:08:36]name=ofd_packets/00201391 [11:08:36]NVStorageSaveData ofd_packets/00201391 [11:08:36]File name is /storage/ofd_packets/00201391 [11:08:36]Write 301 bytes [11:08:36]NVStorageSaveData done [11:08:36]OFDSenderStorePacket done [11:08:36]KKMCreateOFDPacket done [11:08:36]NVStorageSaveData kkm_last_timestamp [11:08:36]File name is /storage/kkm_last_timestamp [11:08:36]Write 4 bytes [11:08:36]NVStorageSaveData done [11:08:36]ExternCall_PrintAddStr [11:08:36]wPrintStart [11:08:36]Write to MH i2c: 01 00 00 78 05 7D [11:08:36]Write i2c OK [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: 01 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: 01 07 00 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: 01 07 00 78 05 00 00 00 00 00 FF 0F 92 [11:08:36]RasterBufferAndPrint [11:08:36]line Счет N : (1)449140 [11:08:36]line ИНН: 02508201610067 [11:08:36]line Контрольно-Кассовый Чек [11:08:36]line ПРОДАЖА [11:08:36]line ТРК (МРК, ГНК) : 62 [11:08:36]line Товар: 2710124130 [11:08:36]line Аи-92-К-2 [11:08:36]line 7.460 * 66.90 [11:08:36]line = 499.07 [11:08:36]line НДС 12% НСП 1% [11:08:36]line > о реализуемом товаре [11:08:36]line ОКРУГЛЕНИЕ: -0.07 [11:08:36]line ИТОГО: 499.00 [11:08:36]line Внесено: 499.00 [11:08:36]line СДАЧА: 0.00 [11:08:36]line НСП 1% : 4.42 [11:08:36]line НДС 12% : 53.00 [11:08:36]line Наличными: 499.00 [11:08:36]line Безнал.: 0.00 [11:08:36]line Место: АЗС № 171 "Партнер Нефть" [11:08:36]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:08:36]line СНО: Общий режим [11:08:36]line Чек 153 26.10.2024 11:08 [11:08:36]line Смена: 543 ФФД: 1.0 [11:08:36]line ЗНМ: 0300000109 [11:08:36]line РНМ: 0000000000091777 [11:08:36]line Версия ККМ: 001 [11:08:36]line ФМ: 0000000000871756 [11:08:36]line ФД: 201391 [11:08:36]line ФПД: 36193343597347 [11:08:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T110834&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201391&fm=36193343597347&tin=02508201610067®Number=0000000000091777&sum=49900 [11:08:36]OFD Sender: Processing packet 201391 [packets to send 112, broken 111] [11:08:36]ProducePacketName [11:08:36]name=ofd_packets/00201391 [11:08:36]OFD Sender: To server: pG, [11:08:36]CommunicateWithHost lk.salyk.kg:30040 [11:08:36]ConnectInit lk.salyk.kg [11:08:36]written 0, free lines is 4095 [11:08:36]Connected sock=10 [11:08:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 29 19 07 01 D5 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 24 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F3 C2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 B2 CD 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AF 12 03 00 35 04 06 00 20 EA EB 63 6B 23 B9 89 9E 66 3E 0E D3 F6 [11:08:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 AF D2 47 00 77 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AF 12 03 00 F4 03 04 00 5C 79 1C 67 B6 04 01 00 00 30 2B BA 34 1F C1 58 45 [11:08:36]CommunicateWithHost err = 0 [11:08:36]CheckOFDResponse [11:08:36]1017 (14) - 77093643461234 [11:08:36]1041 (16) - 0000000000871756 [11:08:36]1040 (4) - 201391 [11:08:36]1012 (4) - 26.10.2024 05:08 [11:08:36]1206 (1) - 0 [11:08:36]OFD Sender: Remove packet 201391 [11:08:36]ProducePacketName [11:08:36]name=ofd_packets/00201391 [11:08:36]NVStorageDeleteData [11:08:37]Write to MH i2c: 01 00 00 A3 05 A8 [11:08:37]Write i2c OK [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: 01 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: 01 07 00 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: 01 07 00 A3 05 00 00 00 00 00 9A 0C 55 [11:08:37]RasterBufferAndPrint [11:08:37]line [11:08:37]line [11:08:37]line [11:08:37]line [11:08:37]line [11:08:37]written 0, free lines is 3230 [11:08:37]MH_Cut [11:08:37]Write to MH i2c: D1 01 00 AA 05 01 81 [11:08:37]Write i2c OK [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: D1 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: D1 01 00 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: D1 01 00 AA 05 00 80 [11:08:37]Write to MH i2c: 01 00 00 AB 05 B0 [11:08:37]Write i2c OK [11:08:37]MH_I2C_Read... [11:08:37]OFD Sender: No OFD packet to send [11:08:38]*** Cut start [11:08:38]*** Purtial cut [11:08:38]*** Stage 1: CUTSNS_PIN = 1 [11:08:38]Read from MH i2c: 01 [11:08:38]MH_I2C_Read... [11:08:38]*** Stop cut motor [11:08:38]*** Cut end [11:08:38]Read from MH i2c: 01 07 00 [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: 01 07 00 AB 05 00 00 00 00 00 FF 0F C5 [11:08:38]process_action close_receipt done [11:08:38]requested_data is exist [11:08:38]produce_requested_data [11:08:38]requested_item fm.sn is exist - process it [11:08:38]wFMCommunicate request_size=4 [11:08:38]MH_SAM_APDU [11:08:38]CAPDU: 80 11 00 00 [11:08:38]Write to MH i2c: E2 08 00 AC 05 80 11 00 00 00 00 00 00 2B [11:08:38]Write i2c OK [11:08:38]MH_I2C_Read... [11:08:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:38]Read from MH i2c: E2 [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: E2 17 00 [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: E2 17 00 AC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 80 [11:08:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:08:38]wFMCommunicate OK [11:08:38]requested_item fd.num is exist - process it [11:08:38]SAM_PROTO_GetFieldsCounters [11:08:38]wFMCommunicate request_size=4 [11:08:38]MH_SAM_APDU [11:08:38]CAPDU: 80 13 00 00 [11:08:38]Write to MH i2c: E2 08 00 AD 05 80 13 00 00 00 00 00 00 2E [11:08:38]Write i2c OK [11:08:38]MH_I2C_Read... [11:08:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:38]Read from MH i2c: E2 [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: E2 62 00 [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: E2 62 00 AD 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AF 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [11:08:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AF 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:08:38]wFMCommunicate OK [11:08:38]SAM_PROTO_GetFieldsCounters done [11:08:38]requested_item shift.num is exist - process it [11:08:38]requested_item shift.opened is exist - process it [11:08:38]req_shift_opened [11:08:38]FM_GetShiftState [11:08:38]SAM_PROTO_GetShiftState [11:08:38]wFMCommunicate request_size=4 [11:08:38]MH_SAM_APDU [11:08:38]CAPDU: 80 13 01 00 [11:08:38]Write to MH i2c: E2 08 00 AE 05 80 13 01 00 00 00 00 00 30 [11:08:38]Write i2c OK [11:08:38]MH_I2C_Read... [11:08:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:38]Read from MH i2c: E2 [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: E2 0E 00 [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: E2 0E 00 AE 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 3F [11:08:38]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:08:38]wFMCommunicate OK [11:08:38]SAM_PROTO_GetShiftState done [11:08:38]FM_GetShiftState done [11:08:38]req_shift_opened done [11:08:38]requested_item shift.open_date is exist - process it [11:08:38]req_shift_open_date [11:08:38]req_shift_open_date done [11:08:38]produce_requested_data done [11:08:38]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201391,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:08:38]process_action_free close_receipt [11:08:38]json_value_free [11:08:38]json_value_free done [11:08:38]process_json_proto returns [11:08:38]Send response to host [11:08:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201391,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:08:38]free response buf [11:08:38]execute_script done [11:08:38]execute_script returns [11:08:38]free content buf [11:08:38]Sock 7.Close socket [11:08:38]Sock 7.Thread stoped [11:08:42]OFD Sender: No OFD packet to send [11:08:47]OFD Sender: No OFD packet to send [11:08:52]OFD Sender: No OFD packet to send [11:08:57]OFD Sender: No OFD packet to send [11:09:02]OFD Sender: No OFD packet to send [11:09:07]OFD Sender: No OFD packet to send [11:09:12]OFD Sender: No OFD packet to send [11:09:17]OFD Sender: No OFD packet to send [11:09:22]OFD Sender: No OFD packet to send [11:09:27]OFD Sender: No OFD packet to send [11:09:32]OFD Sender: No OFD packet to send [11:09:37]OFD Sender: No OFD packet to send [11:09:42]OFD Sender: No OFD packet to send [11:09:47]OFD Sender: No OFD packet to send [11:09:52]OFD Sender: No OFD packet to send [11:09:57]OFD Sender: No OFD packet to send [11:10:02]OFD Sender: No OFD packet to send [11:10:07]OFD Sender: No OFD packet to send [11:10:12]OFD Sender: No OFD packet to send [11:10:17]OFD Sender: No OFD packet to send [11:10:22]OFD Sender: No OFD packet to send [11:10:27]OFD Sender: No OFD packet to send [11:10:32]OFD Sender: No OFD packet to send [11:10:37]OFD Sender: No OFD packet to send [11:10:42]OFD Sender: No OFD packet to send [11:10:47]OFD Sender: No OFD packet to send [11:10:52]OFD Sender: No OFD packet to send [11:10:54]accept exits with 9 [11:10:54]New connection [11:10:54]New thread 3066498404 created [11:10:54]Thread 3066641764 joined [11:10:54]Waiting for new connection... [11:10:54] Sock 9.Parse request [11:10:54]Sock 9.Check first char [11:10:54]Sock 9.First char is OK [11:10:54]request: POST /json_proto HTTP/1.0 [11:10:54]Method: POST [11:10:54]URL: /json_proto [11:10:54]Method is POST - this is cgi request [11:10:54]url: /json_proto [11:10:54]query_string will be loaded in cgi processing [11:10:54]execute_cgi json_proto POST (null) [11:10:54]execute_cgi path=json_proto method=POST [11:10:54]POST find Content-Length [11:10:54]Host: 172.17.63.195:8080 [11:10:54]Content-Length: 677 [11:10:54]Content-Type: application/json [11:10:54] [11:10:54]POST finish read [11:10:54]Found Content-Length = 677 [11:10:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:10:54]execute_script... [11:10: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)449142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:10:54]POST & json_proto [11:10:54]process_json_proto [11:10:54]json parsed OK: [11:10:54]protocol is kg_v1.0 [11:10:54]action value=close_receipt [11:10:54]process_action close_receipt [11:10:54]cmd_close_receipt [11:10:54]MH_GetDate [11:10:54]Write to MH i2c: F0 00 00 AF 05 A3 [11:10:54]Write i2c OK [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: F0 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: F0 09 00 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: F0 09 00 AF 05 00 3E CE 1C 67 68 46 19 67 69 [11:10:54]GetLastDocTimeStamp 1729940914 [11:10:54]current date 1729941054 [11:10:54]FM_GetShiftState [11:10:54]SAM_PROTO_GetShiftState [11:10:54]wFMCommunicate request_size=4 [11:10:54]MH_SAM_APDU [11:10:54]CAPDU: 80 13 01 00 [11:10:54]Write to MH i2c: E2 08 00 B0 05 80 13 01 00 00 00 00 00 32 [11:10:54]Write i2c OK [11:10:54]MH_I2C_Read... [11:10:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:54]Read from MH i2c: E2 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: E2 0E 00 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: E2 0E 00 B0 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 41 [11:10:54]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:10:54]wFMCommunicate OK [11:10:54]SAM_PROTO_GetShiftState done [11:10:54]FM_GetShiftState done [11:10:54]opened in 1729900879 [11:10:54]opened+sec_in_day 1729987279 [11:10:54]quantity*price = 50041 [11:10:54]sum+1 = 50042 [11:10:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 154 26.10.2024 11:10 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201392 ФПД: 33532502027970 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T111054&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201392&fm=33532502027970&tin=02508201610067®Number=0000000000091777&sum=50000 [11:10:55]StoreToDocumentArchive [11:10:55]shift 543 fd 201392 [11:10:55]save to /storage/0543/doc_00201392 [11:10:55]save last doc name /storage/0543/doc_00201392 to /storage/kkm_last_doc_name [11:10:55]save OK [11:10:55]Clear old archive folders... [11:10:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:55]tlvbuf is 01805970 [11:10:55]SAM_PROTO_ClearQueue [11:10:55]wFMCommunicate request_size=4 [11:10:55]MH_SAM_APDU [11:10:55]CAPDU: 80 09 00 00 [11:10:55]Write to MH i2c: E2 08 00 BD 05 80 09 00 00 00 00 00 00 34 [11:10:55]Write i2c OK [11:10:55]MH_I2C_Read... [11:10:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:55]Read from MH i2c: E2 [11:10:55]MH_I2C_Read... [11:10:55]Read from MH i2c: E2 03 00 [11:10:55]MH_I2C_Read... [11:10:55]Read from MH i2c: E2 03 00 BD 05 00 90 00 36 [11:10:55]RAPDU: 90 00 [11:10:55]wFMCommunicate OK [11:10:55]SAM_PROTO_ClearQueue done [11:10:55]KKMCreateOFDPacket [11:10:55]OFDProtocolAddRootSTLVToBuf [11:10:55]FM_MakeSignedData [11:10:55]FM_MakeSignedData [11:10:55]SAM_PROTO_SignData [11:10:55]wFMCommunicate request_size=4 [11:10:55]MH_SAM_APDU [11:10:55]CAPDU: 80 0D 01 02 [11:10:55]Write to MH i2c: E2 08 00 BE 05 80 0D 01 02 00 00 00 00 3C [11:10:55]Write i2c OK [11:10:55]MH_I2C_Read... [11:10:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:55]Read from MH i2c: E2 [11:10:55]MH_I2C_Read... [11:10:55]Read from MH i2c: E2 03 00 [11:10:55]MH_I2C_Read... [11:10:55]Read from MH i2c: E2 03 00 BE 05 00 90 00 37 [11:10:55]RAPDU: 90 00 [11:10:55]wFMCommunicate OK [11:10:55]wFMCommunicate request_size=255 [11:10:55]MH_SAM_APDU [11:10:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 9A 00 00 00 F4 03 04 00 3E CE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B0 12 03 00 35 04 06 00 1E [11:10:55]Write to MH i2c: E2 02 01 BF 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 32 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 9A 00 00 00 F4 03 04 00 3E CE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B0 12 03 00 35 04 06 00 1E 00 00 FD [11:10:55]Write i2c OK [11:10:55]MH_I2C_Read... [11:10:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:55]Read from MH i2c: E2 [11:10:55]MH_I2C_Read... [11:10:55]Read from MH i2c: E2 03 00 [11:10:55]MH_I2C_Read... [11:10:55]Read from MH i2c: E2 03 00 BF 05 00 90 00 38 [11:10:55]RAPDU: 90 00 [11:10:55]wFMCommunicate OK [11:10:55]wFMCommunicate request_size=10 [11:10:55]MH_SAM_APDU [11:10:55]CAPDU: 80 0D 02 02 05 7F 64 DF 2E C2 [11:10:55]Write to MH i2c: E2 0D 00 C0 05 80 0D 02 02 05 00 7F 64 DF 2E C2 00 00 FB [11:10:55]Write i2c OK [11:10:55]MH_I2C_Read... [11:10:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:55]Read from MH i2c: E2 [11:10:55]MH_I2C_Read... [11:10:55]Read from MH i2c: E2 03 00 [11:10:55]MH_I2C_Read... [11:10:55]Read from MH i2c: E2 03 00 C0 05 00 90 00 39 [11:10:55]RAPDU: 90 00 [11:10:55]wFMCommunicate OK [11:10:55]wFMCommunicate request_size=4 [11:10:55]MH_SAM_APDU [11:10:55]CAPDU: 80 0D 03 02 [11:10:55]Write to MH i2c: E2 08 00 C1 05 80 0D 03 02 00 00 00 00 41 [11:10:55]Write i2c OK [11:10:55]MH_I2C_Read... [11:10:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:55]Read from MH i2c: E2 [11:10:55]MH_I2C_Read... [11:10:55]Read from MH i2c: E2 0B 00 [11:10:55]MH_I2C_Read... [11:10:55]Read from MH i2c: E2 0B 00 C1 05 00 CD BB 73 ED F9 DB 98 59 90 00 EF [11:10:55]RAPDU: CD BB 73 ED F9 DB 98 59 90 00 [11:10:55]wFMCommunicate OK [11:10:55]SAM_PROTO_SignData done [11:10:55]FM_MakeSignedData done [11:10:55]CreateOFDProtocolMessage [11:10:55]wFMCommunicate request_size=4 [11:10:55]MH_SAM_APDU [11:10:55]CAPDU: 80 11 00 00 [11:10:55]Write to MH i2c: E2 08 00 C2 05 80 11 00 00 00 00 00 00 41 [11:10:55]Write i2c OK [11:10:55]MH_I2C_Read... [11:10:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:55]Read from MH i2c: E2 [11:10:55]MH_I2C_Read... [11:10:55]Read from MH i2c: E2 17 00 [11:10:55]MH_I2C_Read... [11:10:55]Read from MH i2c: E2 17 00 C2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 96 [11:10:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:10:55]wFMCommunicate OK [11:10:55]CreateOFDProtocolMessage done [11:10:55]OFDSenderStorePacket 201392 [11:10:55]StoreOFDPacket docnum=201392 [11:10:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201392,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:10:58]free response buf [11:10:58]execute_script done [11:10:58]execute_script returns [11:10:58]free content buf [11:10:58]Sock 9.Close socket [11:10:58]Sock 9.Thread stoped [11:11:02]OFD Sender: No OFD packet to send [11:11:07]accept exits with 10 [11:11:07]New connection [11:11:07]New thread 3066641764 created [11:11:07]Thread 3066498404 joined [11:11:07]Waiting for new connection... [11:11:07] Sock 10.Parse request [11:11:07]Sock 10.Check first char [11:11:07]Sock 10.First char is OK [11:11:07]request: POST /json_proto HTTP/1.0 [11:11:07]Method: POST [11:11:07]URL: /json_proto [11:11:07]Method is POST - this is cgi request [11:11:07]url: /json_proto [11:11:07]query_string will be loaded in cgi processing [11:11:07]execute_cgi json_proto POST (null) [11:11:07]execute_cgi path=json_proto method=POST [11:11:07]POST find Content-Length [11:11:07]Host: 172.17.63.195:8080 [11:11:07]Content-Length: 679 [11:11:07]Content-Type: application/json [11:11:07] [11:11:07]POST finish read [11:11:07]Found Content-Length = 679 [11:11:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [11:11:07]execute_script... [11:11:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [11:11:07]POST & json_proto [11:11:07]process_json_proto [11:11:07]json parsed OK: [11:11:07]protocol is kg_v1.0 [11:11:07]action value=close_receipt [11:11:07]process_action close_receipt [11:11:07]cmd_close_receipt [11:11:07]MH_GetDate [11:11:07]Write to MH i2c: F0 00 00 FA 05 EE [11:11:07]Write i2c OK [11:11:07]MH_I2C_Read... [11:11:07]Read from MH i2c: F0 [11:11:07]MH_I2C_Read... [11:11:07]Read from MH i2c: F0 09 00 [11:11:07]MH_I2C_Read... [11:11:07]Read from MH i2c: F0 09 00 FA 05 00 4B CE 1C 67 68 46 19 67 C1 [11:11:07]GetLastDocTimeStamp 1729941054 [11:11:07]current date 1729941067 [11:11:07]FM_GetShiftState [11:11:07]SAM_PROTO_GetShiftState [11:11:07]wFMCommunicate request_size=4 [11:11:07]MH_SAM_APDU [11:11:07]CAPDU: 80 13 01 00 [11:11:07]Write to MH i2c: E2 08 00 FB 05 80 13 01 00 00 00 00 00 7D [11:11:07]Write i2c OK [11:11:07]MH_I2C_Read... [11:11:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:07]Read from MH i2c: E2 [11:11:07]MH_I2C_Read... [11:11:07]Read from MH i2c: E2 0E 00 [11:11:07]MH_I2C_Read... [11:11:07]Read from MH i2c: E2 0E 00 FB 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 8C [11:11:07]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:11:07]wFMCommunicate OK [11:11:07]SAM_PROTO_GetShiftState done [11:11:07]FM_GetShiftState done [11:11:07]opened in 1729900879 [11:11:07]opened+sec_in_day 1729987279 [11:11:07]quantity*price = 200025 [11:11:07]sum+1 = 200026 [11:11:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 155 26.10.2024 11:11 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201393 ФПД: 97243805635450 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T111107&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201393&fm=97243805635450&tin=02508201610067®Number=0000000000091777&sum=200000 [11:11:08]StoreToDocumentArchive [11:11:08]shift 543 fd 201393 [11:11:08]save to /storage/0543/doc_00201393 [11:11:08]save last doc name /storage/0543/doc_00201393 to /storage/kkm_last_doc_name [11:11:08]save OK [11:11:08]Clear old archive folders... [11:11:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:11:08]tlvbuf is 0180DA10 [11:11:08]SAM_PROTO_ClearQueue [11:11:08]wFMCommunicate request_size=4 [11:11:08]MH_SAM_APDU [11:11:08]CAPDU: 80 09 00 00 [11:11:08]Write to MH i2c: E2 08 00 08 06 80 09 00 00 00 00 00 00 80 [11:11:08]Write i2c OK [11:11:08]MH_I2C_Read... [11:11:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:08]Read from MH i2c: E2 [11:11:08]MH_I2C_Read... [11:11:08]Read from MH i2c: E2 03 00 [11:11:08]MH_I2C_Read... [11:11:08]Read from MH i2c: E2 03 00 08 06 00 90 00 82 [11:11:08]RAPDU: 90 00 [11:11:08]wFMCommunicate OK [11:11:08]SAM_PROTO_ClearQueue done [11:11:08]KKMCreateOFDPacket [11:11:08]OFDProtocolAddRootSTLVToBuf [11:11:08]FM_MakeSignedData [11:11:08]FM_MakeSignedData [11:11:08]SAM_PROTO_SignData [11:11:08]wFMCommunicate request_size=4 [11:11:08]MH_SAM_APDU [11:11:08]CAPDU: 80 0D 01 02 [11:11:08]Write to MH i2c: E2 08 00 09 06 80 0D 01 02 00 00 00 00 88 [11:11:08]Write i2c OK [11:11:08]MH_I2C_Read... [11:11:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:08]Read from MH i2c: E2 [11:11:08]MH_I2C_Read... [11:11:08]Read from MH i2c: E2 03 00 [11:11:08]MH_I2C_Read... [11:11:08]Read from MH i2c: E2 03 00 09 06 00 90 00 83 [11:11:08]RAPDU: 90 00 [11:11:08]wFMCommunicate OK [11:11:08]wFMCommunicate request_size=255 [11:11:08]MH_SAM_APDU [11:11:08]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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 9B 00 00 00 F4 03 04 00 4B CE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B1 12 03 00 35 04 06 00 58 71 56 7D [11:11:08]Write to MH i2c: E2 02 01 0A 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 9B 00 00 00 F4 03 04 00 4B CE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B1 12 03 00 35 04 06 00 58 71 56 7D 00 00 BA [11:11:08]Write i2c OK [11:11:08]MH_I2C_Read... [11:11:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:08]Read from MH i2c: E2 [11:11:08]MH_I2C_Read... [11:11:08]Read from MH i2c: E2 03 00 [11:11:08]MH_I2C_Read... [11:11:08]Read from MH i2c: E2 03 00 0A 06 00 90 00 84 [11:11:08]RAPDU: 90 00 [11:11:08]wFMCommunicate OK [11:11:08]wFMCommunicate request_size=7 [11:11:08]MH_SAM_APDU [11:11:08]CAPDU: 80 0D 02 02 02 D3 7A [11:11:08]Write to MH i2c: E2 0A 00 0B 06 80 0D 02 02 02 00 D3 7A 00 00 DC [11:11:08]Write i2c OK [11:11:08]MH_I2C_Read... [11:11:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:08]Read from MH i2c: E2 [11:11:08]MH_I2C_Read... [11:11:08]Read from MH i2c: E2 03 00 [11:11:08]MH_I2C_Read... [11:11:08]Read from MH i2c: E2 03 00 0B 06 00 90 00 85 [11:11:08]RAPDU: 90 00 [11:11:08]wFMCommunicate OK [11:11:08]wFMCommunicate request_size=4 [11:11:08]MH_SAM_APDU [11:11:08]CAPDU: 80 0D 03 02 [11:11:08]Write to MH i2c: E2 08 00 0C 06 80 0D 03 02 00 00 00 00 8D [11:11:08]Write i2c OK [11:11:08]MH_I2C_Read... [11:11:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:08]Read from MH i2c: E2 [11:11:08]MH_I2C_Read... [11:11:08]Read from MH i2c: E2 0B 00 [11:11:08]MH_I2C_Read... [11:11:08]Read from MH i2c: E2 0B 00 0C 06 00 28 A7 12 C5 53 C9 88 1A 90 00 F2 [11:11:08]RAPDU: 28 A7 12 C5 53 C9 88 1A 90 00 [11:11:08]wFMCommunicate OK [11:11:08]SAM_PROTO_SignData done [11:11:08]FM_MakeSignedData done [11:11:08]CreateOFDProtocolMessage [11:11:08]wFMCommunicate request_size=4 [11:11:08]MH_SAM_APDU [11:11:08]CAPDU: 80 11 00 00 [11:11:08]Write to MH i2c: E2 08 00 0D 06 80 11 00 00 00 00 00 00 8D [11:11:08]Write i2c OK [11:11:08]MH_I2C_Read... [11:11:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:08]Read from MH i2c: E2 [11:11:08]MH_I2C_Read... [11:11:08]Read from MH i2c: E2 17 00 [11:11:08]MH_I2C_Read... [11:11:08]Read from MH i2c: E2 17 00 0D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E2 [11:11:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:11:08]wFMCommunicate OK [11:11:08]CreateOFDProtocolMessage done [11:11:08]OFDSenderStorePacket 201393 [11:11:08]StoreOFDPacket docnum=201393 [11:11:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 E9 C8 04 01 CE 36 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 9B 00 00 00 F4 03 04 00 4B CE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B1 12 03 00 35 04 06 00 58 71 56 7D D3 7A 28 A7 12 C5 53 C9 88 1A [11:11:08]CheckFolder [11:11:08]dirname=/storage/ofd_packets [11:11:08]CheckFolder done [11:11:08]ProducePacketName [11:11:08]name=ofd_packets/00201393 [11:11:08]NVStorageSaveData ofd_packets/00201393 [11:11:08]File name is /storage/ofd_packets/00201393 [11:11:08]Write 298 bytes [11:11:08]NVStorageSaveData done [11:11:08]OFDSenderStorePacket done [11:11:08]KKMCreateOFDPacket done [11:11:08]NVStorageSaveData kkm_last_timestamp [11:11:08]File name is /storage/kkm_last_timestamp [11:11:08]Write 4 bytes [11:11:08]NVStorageSaveData done [11:11:08]ExternCall_PrintAddStr [11:11:08]wPrintStart [11:11:08]Write to MH i2c: 01 00 00 0E 06 14 [11:11:08]Write i2c OK [11:11:08]MH_I2C_Read... [11:11:08]Read from MH i2c: 01 [11:11:08]MH_I2C_Read... [11:11:08]Read from MH i2c: 01 07 00 [11:11:08]MH_I2C_Read... [11:11:08]Read from MH i2c: 01 07 00 0E 06 00 00 00 00 00 FF 0F 29 [11:11:08]RasterBufferAndPrint [11:11:08]line Счет N : (1)449141 [11:11:08]line ИНН: 02508201610067 [11:11:08]line Контрольно-Кассовый Чек [11:11:08]line ПРОДАЖА [11:11:08]line ТРК (МРК, ГНК) : 33 [11:11:08]line Товар: 2710194210 [11:11:08]line ДТ-К-2 [11:11:08]line 26.250 * 76.20 [11:11:08]line = 2000.25 [11:11:08]line НДС 12% НСП 1% [11:11:08]line > о реализуемом товаре [11:11:08]line ОКРУГЛЕНИЕ: -0.25 [11:11:08]line ИТОГО: 2000.00 [11:11:08]line Внесено: 2000.00 [11:11:08]line СДАЧА: 0.00 [11:11:08]line НСП 1% : 17.70 [11:11:08]line НДС 12% : 212.42 [11:11:08]line Наличными: 2000.00 [11:11:08]line Безнал.: 0.00 [11:11:08]line Место: АЗС № 171 "Партнер Нефть" [11:11:08]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:11:08]line СНО: Общий режим [11:11:08]line Чек 155 26.10.2024 11:11 [11:11:08]line Смена: 543 ФФД: 1.0 [11:11:08]line ЗНМ: 0300000109 [11:11:08]line РНМ: 0000000000091777 [11:11:08]line Версия ККМ: 001 [11:11:08]line ФМ: 0000000000871756 [11:11:08]line ФД: 201393 [11:11:08]line ФПД: 97243805635450 [11:11:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T111107&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201393&fm=97243805635450&tin=02508201610067®Number=0000000000091777&sum=200000 [11:11:08]written 0, free lines is 4095 [11:11:08]OFD Sender: Processing packet 201393 [packets to send 112, broken 111] [11:11:08]ProducePacketName [11:11:08]name=ofd_packets/00201393 [11:11:08]OFD Sender: To server: pG, [11:11:08]CommunicateWithHost lk.salyk.kg:30040 [11:11:08]ConnectInit lk.salyk.kg [11:11:09]Write to MH i2c: 01 00 00 39 06 3F [11:11:09]Write i2c OK [11:11:09]MH_I2C_Read... [11:11:09]Read from MH i2c: 01 [11:11:09]MH_I2C_Read... [11:11:09]Read from MH i2c: 01 07 00 [11:11:09]MH_I2C_Read... [11:11:09]Read from MH i2c: 01 07 00 39 06 00 00 00 00 00 97 0C E9 [11:11:09]RasterBufferAndPrint [11:11:09]line [11:11:09]line [11:11:09]line [11:11:09]line [11:11:09]line [11:11:09]written 0, free lines is 3232 [11:11:09]MH_Cut [11:11:09]Write to MH i2c: D1 01 00 40 06 01 18 [11:11:09]Write i2c OK [11:11:09]MH_I2C_Read... [11:11:09]Read from MH i2c: D1 [11:11:09]MH_I2C_Read... [11:11:09]Read from MH i2c: D1 01 00 [11:11:09]MH_I2C_Read... [11:11:09]Read from MH i2c: D1 01 00 40 06 00 17 [11:11:09]Write to MH i2c: 01 00 00 41 06 47 [11:11:09]Write i2c OK [11:11:09]MH_I2C_Read... [11:11:10]*** Cut start [11:11:10]*** Purtial cut [11:11:10]*** Stage 1: CUTSNS_PIN = 1 [11:11:10]Read from MH i2c: 01 [11:11:10]MH_I2C_Read... [11:11:10]*** Stop cut motor [11:11:10]*** Cut end [11:11:10]Read from MH i2c: 01 07 00 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: 01 07 00 41 06 00 00 00 00 00 FF 0F 5C [11:11:10]process_action close_receipt done [11:11:10]requested_data is exist [11:11:10]produce_requested_data [11:11:10]requested_item fm.sn is exist - process it [11:11:10]wFMCommunicate request_size=4 [11:11:10]MH_SAM_APDU [11:11:10]CAPDU: 80 11 00 00 [11:11:10]Write to MH i2c: E2 08 00 42 06 80 11 00 00 00 00 00 00 C2 [11:11:10]Write i2c OK [11:11:10]MH_I2C_Read... [11:11:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:10]Read from MH i2c: E2 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 17 00 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 17 00 42 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 17 [11:11:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:11:10]wFMCommunicate OK [11:11:10]requested_item fd.num is exist - process it [11:11:10]SAM_PROTO_GetFieldsCounters [11:11:10]wFMCommunicate request_size=4 [11:11:10]MH_SAM_APDU [11:11:10]CAPDU: 80 13 00 00 [11:11:10]Write to MH i2c: E2 08 00 43 06 80 13 00 00 00 00 00 00 C5 [11:11:10]Write i2c OK [11:11:10]MH_I2C_Read... [11:11:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:10]Read from MH i2c: E2 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 62 00 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 62 00 43 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B1 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [11:11:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B1 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:11:10]wFMCommunicate OK [11:11:10]SAM_PROTO_GetFieldsCounters done [11:11:10]requested_item shift.num is exist - process it [11:11:10]requested_item shift.opened is exist - process it [11:11:10]req_shift_opened [11:11:10]FM_GetShiftState [11:11:10]SAM_PROTO_GetShiftState [11:11:10]wFMCommunicate request_size=4 [11:11:10]MH_SAM_APDU [11:11:10]CAPDU: 80 13 01 00 [11:11:10]Write to MH i2c: E2 08 00 44 06 80 13 01 00 00 00 00 00 C7 [11:11:10]Write i2c OK [11:11:10]MH_I2C_Read... [11:11:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:10]Read from MH i2c: E2 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 0E 00 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 0E 00 44 06 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D6 [11:11:10]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:11:10]wFMCommunicate OK [11:11:10]SAM_PROTO_GetShiftState done [11:11:10]FM_GetShiftState done [11:11:10]req_shift_opened done [11:11:10]requested_item shift.open_date is exist - process it [11:11:10]req_shift_open_date [11:11:10]req_shift_open_date done [11:11:10]produce_requested_data done [11:11:10]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201393,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:11:10]process_action_free close_receipt [11:11:10]json_value_free [11:11:10]json_value_free done [11:11:10]process_json_proto returns [11:11:10]Send response to host [11:11:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201393,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:11:10]free response buf [11:11:10]execute_script done [11:11:10]execute_script returns [11:11:10]free content buf [11:11:10]Sock 10.Close socket [11:11:10]Sock 10.Thread stoped [11:11:13]ConnectInit Can't take IP for lk.salyk.kg [11:11:13]CommunicateWithHost connect error [11:11:13]CommunicateWithHost err = -1 [11:11:13]OFD Sender: Server communicate error [11:11:18]OFD Sender: Processing packet 201393 [packets to send 112, broken 111] [11:11:18]ProducePacketName [11:11:18]name=ofd_packets/00201393 [11:11:18]OFD Sender: To server: pG, [11:11:18]CommunicateWithHost lk.salyk.kg:30040 [11:11:18]ConnectInit lk.salyk.kg [11:11:23]ConnectInit Can't take IP for lk.salyk.kg [11:11:23]CommunicateWithHost connect error [11:11:23]CommunicateWithHost err = -1 [11:11:23]OFD Sender: Server communicate error [11:11:28]OFD Sender: Processing packet 201393 [packets to send 112, broken 111] [11:11:28]ProducePacketName [11:11:28]name=ofd_packets/00201393 [11:11:28]OFD Sender: To server: pG, [11:11:28]CommunicateWithHost lk.salyk.kg:30040 [11:11:28]ConnectInit lk.salyk.kg [11:11:33]ConnectInit Can't take IP for lk.salyk.kg [11:11:33]CommunicateWithHost connect error [11:11:33]CommunicateWithHost err = -1 [11:11:33]OFD Sender: Server communicate error [11:11:38]OFD Sender: Processing packet 201393 [packets to send 112, broken 111] [11:11:38]ProducePacketName [11:11:38]name=ofd_packets/00201393 [11:11:38]OFD Sender: To server: pG, [11:11:38]CommunicateWithHost lk.salyk.kg:30040 [11:11:38]ConnectInit lk.salyk.kg [11:11:43]ConnectInit Can't take IP for lk.salyk.kg [11:11:43]CommunicateWithHost connect error [11:11:43]CommunicateWithHost err = -1 [11:11:43]OFD Sender: Server communicate error [11:11:48]OFD Sender: Processing packet 201393 [packets to send 112, broken 111] [11:11:48]ProducePacketName [11:11:48]name=ofd_packets/00201393 [11:11:48]OFD Sender: To server: pG, [11:11:48]CommunicateWithHost lk.salyk.kg:30040 [11:11:48]ConnectInit lk.salyk.kg [11:11:53]ConnectInit Can't take IP for lk.salyk.kg [11:11:53]CommunicateWithHost connect error [11:11:53]CommunicateWithHost err = -1 [11:11:53]OFD Sender: Server communicate error [11:11:58]OFD Sender: Processing packet 201393 [packets to send 112, broken 111] [11:11:58]ProducePacketName [11:11:58]name=ofd_packets/00201393 [11:11:58]OFD Sender: To server: pG, [11:11:58]CommunicateWithHost lk.salyk.kg:30040 [11:11:58]ConnectInit lk.salyk.kg [11:12:03]ConnectInit Can't take IP for lk.salyk.kg [11:12:03]CommunicateWithHost connect error [11:12:03]CommunicateWithHost err = -1 [11:12:03]OFD Sender: Server communicate error [11:12:08]OFD Sender: Processing packet 201393 [packets to send 112, broken 111] [11:12:08]ProducePacketName [11:12:08]name=ofd_packets/00201393 [11:12:08]OFD Sender: To server: pG, [11:12:08]CommunicateWithHost lk.salyk.kg:30040 [11:12:08]ConnectInit lk.salyk.kg [11:12:13]ConnectInit Can't take IP for lk.salyk.kg [11:12:13]CommunicateWithHost connect error [11:12:13]CommunicateWithHost err = -1 [11:12:13]OFD Sender: Server communicate error [11:12:18]OFD Sender: Processing packet 201393 [packets to send 112, broken 111] [11:12:18]ProducePacketName [11:12:18]name=ofd_packets/00201393 [11:12:18]OFD Sender: To server: pG, [11:12:18]CommunicateWithHost lk.salyk.kg:30040 [11:12:18]ConnectInit lk.salyk.kg [11:12:22]accept exits with 7 [11:12:22]New connection [11:12:22]New thread 3066498404 created [11:12:22]Thread 3066641764 joined [11:12:22]Waiting for new connection... [11:12:22] Sock 7.Parse request [11:12:22]Sock 7.Check first char [11:12:22]Sock 7.First char is OK [11:12:22]request: POST /json_proto HTTP/1.0 [11:12:22]Method: POST [11:12:22]URL: /json_proto [11:12:22]Method is POST - this is cgi request [11:12:22]url: /json_proto [11:12:22]query_string will be loaded in cgi processing [11:12:22]execute_cgi json_proto POST (null) [11:12:22]execute_cgi path=json_proto method=POST [11:12:22]POST find Content-Length [11:12:22]Host: 172.17.63.195:8080 [11:12:22]Content-Length: 677 [11:12:22]Content-Type: application/json [11:12:22] [11:12:22]POST finish read [11:12:22]Found Content-Length = 677 [11:12:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:12:22]execute_script... [11:12:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:12:22]POST & json_proto [11:12:22]process_json_proto [11:12:22]json parsed OK: [11:12:22]protocol is kg_v1.0 [11:12:22]action value=close_receipt [11:12:22]process_action close_receipt [11:12:22]cmd_close_receipt [11:12:22]MH_GetDate [11:12:22]Write to MH i2c: F0 00 00 45 06 3A [11:12:22]Write i2c OK [11:12:22]MH_I2C_Read... [11:12:22]Read from MH i2c: F0 [11:12:22]MH_I2C_Read... [11:12:22]Read from MH i2c: F0 09 00 [11:12:22]MH_I2C_Read... [11:12:22]Read from MH i2c: F0 09 00 45 06 00 96 CE 1C 67 68 46 19 67 58 [11:12:22]GetLastDocTimeStamp 1729941067 [11:12:22]current date 1729941142 [11:12:22]FM_GetShiftState [11:12:22]SAM_PROTO_GetShiftState [11:12:22]wFMCommunicate request_size=4 [11:12:22]MH_SAM_APDU [11:12:22]CAPDU: 80 13 01 00 [11:12:22]Write to MH i2c: E2 08 00 46 06 80 13 01 00 00 00 00 00 C9 [11:12:22]Write i2c OK [11:12:22]MH_I2C_Read... [11:12:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:22]Read from MH i2c: E2 [11:12:22]MH_I2C_Read... [11:12:22]Read from MH i2c: E2 0E 00 [11:12:22]MH_I2C_Read... [11:12:22]Read from MH i2c: E2 0E 00 46 06 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D8 [11:12:22]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:12:22]wFMCommunicate OK [11:12:22]SAM_PROTO_GetShiftState done [11:12:22]FM_GetShiftState done [11:12:22]opened in 1729900879 [11:12:22]opened+sec_in_day 1729987279 [11:12:22]quantity*price = 50041 [11:12:22]sum+1 = 50042 [11:12:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 156 26.10.2024 11:12 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201394 ФПД: 96427512696161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T111222&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201394&fm=96427512696161&tin=02508201610067®Number=0000000000091777&sum=50000 [11:12:23]StoreToDocumentArchive [11:12:23]shift 543 fd 201394 [11:12:23]save to /storage/0543/doc_00201394 [11:12:23]save last doc name /storage/0543/doc_00201394 to /storage/kkm_last_doc_name [11:12:23]save OK [11:12:23]Clear old archive folders... [11:12:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:12:23]tlvbuf is 017BFE70 [11:12:23]SAM_PROTO_ClearQueue [11:12:23]wFMCommunicate request_size=4 [11:12:23]MH_SAM_APDU [11:12:23]CAPDU: 80 09 00 00 [11:12:23]Write to MH i2c: E2 08 00 53 06 80 09 00 00 00 00 00 00 CB [11:12:23]Write i2c OK [11:12:23]MH_I2C_Read... [11:12:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:23]Read from MH i2c: E2 [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: E2 03 00 [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: E2 03 00 53 06 00 90 00 CD [11:12:23]RAPDU: 90 00 [11:12:23]wFMCommunicate OK [11:12:23]SAM_PROTO_ClearQueue done [11:12:23]KKMCreateOFDPacket [11:12:23]OFDProtocolAddRootSTLVToBuf [11:12:23]FM_MakeSignedData [11:12:23]FM_MakeSignedData [11:12:23]SAM_PROTO_SignData [11:12:23]wFMCommunicate request_size=4 [11:12:23]MH_SAM_APDU [11:12:23]CAPDU: 80 0D 01 02 [11:12:23]Write to MH i2c: E2 08 00 54 06 80 0D 01 02 00 00 00 00 D3 [11:12:23]Write i2c OK [11:12:23]MH_I2C_Read... [11:12:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:23]Read from MH i2c: E2 [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: E2 03 00 [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: E2 03 00 54 06 00 90 00 CE [11:12:23]RAPDU: 90 00 [11:12:23]wFMCommunicate OK [11:12:23]wFMCommunicate request_size=255 [11:12:23]MH_SAM_APDU [11:12:23]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 32 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 9C 00 00 00 F4 03 04 00 96 CE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B2 12 03 00 35 04 06 00 57 [11:12:23]Write to MH i2c: E2 02 01 55 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 32 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 9C 00 00 00 F4 03 04 00 96 CE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B2 12 03 00 35 04 06 00 57 00 00 29 [11:12:23]Write i2c OK [11:12:23]MH_I2C_Read... [11:12:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:23]Read from MH i2c: E2 [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: E2 03 00 [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: E2 03 00 55 06 00 90 00 CF [11:12:23]RAPDU: 90 00 [11:12:23]wFMCommunicate OK [11:12:23]wFMCommunicate request_size=10 [11:12:23]MH_SAM_APDU [11:12:23]CAPDU: 80 0D 02 02 05 B3 47 A4 0D 61 [11:12:23]Write to MH i2c: E2 0D 00 56 06 80 0D 02 02 05 00 B3 47 A4 0D 61 00 00 EC [11:12:23]Write i2c OK [11:12:23]MH_I2C_Read... [11:12:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:23]Read from MH i2c: E2 [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: E2 03 00 [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: E2 03 00 56 06 00 90 00 D0 [11:12:23]RAPDU: 90 00 [11:12:23]wFMCommunicate OK [11:12:23]wFMCommunicate request_size=4 [11:12:23]MH_SAM_APDU [11:12:23]CAPDU: 80 0D 03 02 [11:12:23]Write to MH i2c: E2 08 00 57 06 80 0D 03 02 00 00 00 00 D8 [11:12:23]Write i2c OK [11:12:23]MH_I2C_Read... [11:12:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:23]Read from MH i2c: E2 [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: E2 0B 00 [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: E2 0B 00 57 06 00 4D 10 4D D3 0F 88 99 33 90 00 B9 [11:12:23]RAPDU: 4D 10 4D D3 0F 88 99 33 90 00 [11:12:23]wFMCommunicate OK [11:12:23]SAM_PROTO_SignData done [11:12:23]FM_MakeSignedData done [11:12:23]CreateOFDProtocolMessage [11:12:23]wFMCommunicate request_size=4 [11:12:23]MH_SAM_APDU [11:12:23]CAPDU: 80 11 00 00 [11:12:23]Write to MH i2c: E2 08 00 58 06 80 11 00 00 00 00 00 00 D8 [11:12:23]Write i2c OK [11:12:23]MH_I2C_Read... [11:12:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:23]Read from MH i2c: E2 [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: E2 17 00 [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: E2 17 00 58 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2D [11:12:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:12:23]wFMCommunicate OK [11:12:23]CreateOFDProtocolMessage done [11:12:23]OFDSenderStorePacket 201394 [11:12:23]StoreOFDPacket docnum=201394 [11:12:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1A FB 07 01 E8 CF 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 32 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 9C 00 00 00 F4 03 04 00 96 CE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B2 12 03 00 35 04 06 00 57 B3 47 A4 0D 61 4D 10 4D D3 0F 88 99 33 [11:12:23]CheckFolder [11:12:23]dirname=/storage/ofd_packets [11:12:23]CheckFolder done [11:12:23]ProducePacketName [11:12:23]name=ofd_packets/00201394 [11:12:23]NVStorageSaveData ofd_packets/00201394 [11:12:23]File name is /storage/ofd_packets/00201394 [11:12:23]Write 301 bytes [11:12:23]NVStorageSaveData done [11:12:23]OFDSenderStorePacket done [11:12:23]KKMCreateOFDPacket done [11:12:23]NVStorageSaveData kkm_last_timestamp [11:12:23]File name is /storage/kkm_last_timestamp [11:12:23]Write 4 bytes [11:12:23]NVStorageSaveData done [11:12:23]ExternCall_PrintAddStr [11:12:23]wPrintStart [11:12:23]Write to MH i2c: 01 00 00 59 06 5F [11:12:23]Write i2c OK [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: 01 [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: 01 07 00 [11:12:23]MH_I2C_Read... [11:12:23]Read from MH i2c: 01 07 00 59 06 00 00 00 00 00 FF 0F 74 [11:12:23]RasterBufferAndPrint [11:12:23]line Счет N : (1)449143 [11:12:23]line ИНН: 02508201610067 [11:12:23]line Контрольно-Кассовый Чек [11:12:23]line ПРОДАЖА [11:12:23]line ТРК (МРК, ГНК) : 52 [11:12:23]line Товар: 2710124130 [11:12:23]line Аи-92-К-2 [11:12:23]line 7.480 * 66.90 [11:12:23]line = 500.41 [11:12:23]line НДС 12% НСП 1% [11:12:23]line > о реализуемом товаре [11:12:23]line ОКРУГЛЕНИЕ: -0.41 [11:12:23]line ИТОГО: 500.00 [11:12:23]line Внесено: 500.00 [11:12:23]line СДАЧА: 0.00 [11:12:23]line НСП 1% : 4.43 [11:12:23]line НДС 12% : 53.14 [11:12:23]line Наличными: 500.00 [11:12:23]line Безнал.: 0.00 [11:12:23]line Место: АЗС № 171 "Партнер Нефть" [11:12:23]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:12:23]line СНО: Общий режим [11:12:23]line Чек 156 26.10.2024 11:12 [11:12:23]line Смена: 543 ФФД: 1.0 [11:12:23]line ЗНМ: 0300000109 [11:12:23]line РНМ: 0000000000091777 [11:12:23]line Версия ККМ: 001 [11:12:23]line ФМ: 0000000000871756 [11:12:23]line ФД: 201394 [11:12:23]line ФПД: 96427512696161 [11:12:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T111222&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201394&fm=96427512696161&tin=02508201610067®Number=0000000000091777&sum=50000 [11:12:23]written 0, free lines is 4095 [11:12:23]ConnectInit Can't take IP for lk.salyk.kg [11:12:23]CommunicateWithHost connect error [11:12:23]CommunicateWithHost err = -1 [11:12:23]OFD Sender: Server communicate error [11:12:24]OFD Sender: Processing packet 201393 [packets to send 113, broken 111] [11:12:24]ProducePacketName [11:12:24]name=ofd_packets/00201393 [11:12:24]OFD Sender: To server: pG, [11:12:24]CommunicateWithHost lk.salyk.kg:30040 [11:12:24]ConnectInit lk.salyk.kg [11:12:24]Write to MH i2c: 01 00 00 84 06 8A [11:12:24]Write i2c OK [11:12:24]MH_I2C_Read... [11:12:24]Read from MH i2c: 01 [11:12:24]MH_I2C_Read... [11:12:24]Read from MH i2c: 01 07 00 [11:12:24]MH_I2C_Read... [11:12:24]Read from MH i2c: 01 07 00 84 06 00 00 00 00 00 95 0C 32 [11:12:24]RasterBufferAndPrint [11:12:24]line [11:12:24]line [11:12:24]line [11:12:24]line [11:12:24]line [11:12:24]written 0, free lines is 3235 [11:12:24]MH_Cut [11:12:24]Write to MH i2c: D1 01 00 8B 06 01 63 [11:12:24]Write i2c OK [11:12:24]MH_I2C_Read... [11:12:24]Read from MH i2c: D1 [11:12:24]MH_I2C_Read... [11:12:24]Read from MH i2c: D1 01 00 [11:12:24]MH_I2C_Read... [11:12:24]Read from MH i2c: D1 01 00 8B 06 00 62 [11:12:24]Write to MH i2c: 01 00 00 8C 06 92 [11:12:24]Write i2c OK [11:12:24]MH_I2C_Read... [11:12:25]*** Cut start [11:12:25]*** Purtial cut [11:12:25]*** Stage 1: CUTSNS_PIN = 1 [11:12:25]Read from MH i2c: 01 [11:12:25]MH_I2C_Read... [11:12:25]*** Stop cut motor [11:12:25]*** Cut end [11:12:25]Read from MH i2c: 01 07 00 [11:12:25]MH_I2C_Read... [11:12:25]Read from MH i2c: 01 07 00 8C 06 00 00 00 00 00 FF 0F A7 [11:12:25]process_action close_receipt done [11:12:25]requested_data is exist [11:12:25]produce_requested_data [11:12:25]requested_item fm.sn is exist - process it [11:12:25]wFMCommunicate request_size=4 [11:12:25]MH_SAM_APDU [11:12:25]CAPDU: 80 11 00 00 [11:12:25]Write to MH i2c: E2 08 00 8D 06 80 11 00 00 00 00 00 00 0D [11:12:25]Write i2c OK [11:12:25]MH_I2C_Read... [11:12:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:25]Read from MH i2c: E2 [11:12:25]MH_I2C_Read... [11:12:25]Read from MH i2c: E2 17 00 [11:12:25]MH_I2C_Read... [11:12:25]Read from MH i2c: E2 17 00 8D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 62 [11:12:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:12:25]wFMCommunicate OK [11:12:25]requested_item fd.num is exist - process it [11:12:25]SAM_PROTO_GetFieldsCounters [11:12:25]wFMCommunicate request_size=4 [11:12:25]MH_SAM_APDU [11:12:25]CAPDU: 80 13 00 00 [11:12:25]Write to MH i2c: E2 08 00 8E 06 80 13 00 00 00 00 00 00 10 [11:12:25]Write i2c OK [11:12:25]MH_I2C_Read... [11:12:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:25]Read from MH i2c: E2 [11:12:25]MH_I2C_Read... [11:12:25]Read from MH i2c: E2 62 00 [11:12:25]MH_I2C_Read... [11:12:25]Read from MH i2c: E2 62 00 8E 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B2 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [11:12:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B2 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:25]wFMCommunicate OK [11:12:25]SAM_PROTO_GetFieldsCounters done [11:12:25]requested_item shift.num is exist - process it [11:12:25]requested_item shift.opened is exist - process it [11:12:25]req_shift_opened [11:12:25]FM_GetShiftState [11:12:25]SAM_PROTO_GetShiftState [11:12:25]wFMCommunicate request_size=4 [11:12:25]MH_SAM_APDU [11:12:25]CAPDU: 80 13 01 00 [11:12:25]Write to MH i2c: E2 08 00 8F 06 80 13 01 00 00 00 00 00 12 [11:12:25]Write i2c OK [11:12:25]MH_I2C_Read... [11:12:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:25]Read from MH i2c: E2 [11:12:25]MH_I2C_Read... [11:12:25]Read from MH i2c: E2 0E 00 [11:12:25]MH_I2C_Read... [11:12:25]Read from MH i2c: E2 0E 00 8F 06 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 21 [11:12:25]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:12:25]wFMCommunicate OK [11:12:25]SAM_PROTO_GetShiftState done [11:12:25]FM_GetShiftState done [11:12:25]req_shift_opened done [11:12:25]requested_item shift.open_date is exist - process it [11:12:25]req_shift_open_date [11:12:25]req_shift_open_date done [11:12:25]produce_requested_data done [11:12:25]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201394,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:12:25]process_action_free close_receipt [11:12:25]json_value_free [11:12:25]json_value_free done [11:12:25]process_json_proto returns [11:12:25]Send response to host [11:12:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201394,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:12:25]free response buf [11:12:25]execute_script done [11:12:25]execute_script returns [11:12:25]free content buf [11:12:25]Sock 7.Close socket [11:12:25]Sock 7.Thread stoped [11:12:29]ConnectInit Can't take IP for lk.salyk.kg [11:12:29]CommunicateWithHost connect error [11:12:29]CommunicateWithHost err = -1 [11:12:29]OFD Sender: Server communicate error [11:12:34]OFD Sender: Processing packet 201393 [packets to send 113, broken 111] [11:12:34]ProducePacketName [11:12:34]name=ofd_packets/00201393 [11:12:34]OFD Sender: To server: pG, [11:12:34]CommunicateWithHost lk.salyk.kg:30040 [11:12:34]ConnectInit lk.salyk.kg [11:12:39]ConnectInit Can't take IP for lk.salyk.kg [11:12:39]CommunicateWithHost connect error [11:12:39]CommunicateWithHost err = -1 [11:12:39]OFD Sender: Server communicate error [11:12:44]OFD Sender: Processing packet 201393 [packets to send 113, broken 111] [11:12:44]ProducePacketName [11:12:44]name=ofd_packets/00201393 [11:12:44]OFD Sender: To server: pG, [11:12:44]CommunicateWithHost lk.salyk.kg:30040 [11:12:44]ConnectInit lk.salyk.kg [11:12:49]ConnectInit Can't take IP for lk.salyk.kg [11:12:49]CommunicateWithHost connect error [11:12:49]CommunicateWithHost err = -1 [11:12:49]OFD Sender: Server communicate error [11:12:54]OFD Sender: Processing packet 201393 [packets to send 113, broken 111] [11:12:54]ProducePacketName [11:12:54]name=ofd_packets/00201393 [11:12:54]OFD Sender: To server: pG, [11:12:54]CommunicateWithHost lk.salyk.kg:30040 [11:12:54]ConnectInit lk.salyk.kg [11:12:59]ConnectInit Can't take IP for lk.salyk.kg [11:12:59]CommunicateWithHost connect error [11:12:59]CommunicateWithHost err = -1 [11:12:59]OFD Sender: Server communicate error [11:13:04]OFD Sender: Processing packet 201393 [packets to send 113, broken 111] [11:13:04]ProducePacketName [11:13:04]name=ofd_packets/00201393 [11:13:04]OFD Sender: To server: pG, [11:13:04]CommunicateWithHost lk.salyk.kg:30040 [11:13:04]ConnectInit lk.salyk.kg [11:13:09]ConnectInit Can't take IP for lk.salyk.kg [11:13:09]CommunicateWithHost connect error [11:13:09]CommunicateWithHost err = -1 [11:13:09]OFD Sender: Server communicate error [11:13:14]OFD Sender: Processing packet 201393 [packets to send 113, broken 111] [11:13:14]ProducePacketName [11:13:14]name=ofd_packets/00201393 [11:13:14]OFD Sender: To server: pG, [11:13:14]CommunicateWithHost lk.salyk.kg:30040 [11:13:14]ConnectInit lk.salyk.kg [11:13:16]Connected sock=7 [11:13:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 E9 C8 04 01 CE 36 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 9B 00 00 00 F4 03 04 00 4B CE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B1 12 03 00 35 04 06 00 58 71 56 7D D3 7A 28 A7 12 C5 53 C9 88 1A [11:13:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A1 F2 47 00 0C 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 38 37 31 37 35 36 10 04 04 00 B1 12 03 00 F4 03 04 00 74 7A 1C 67 B6 04 01 00 00 BD 84 76 D6 C3 70 52 99 [11:13:17]CommunicateWithHost err = 0 [11:13:17]CheckOFDResponse [11:13:17]1017 (14) - 77093643461234 [11:13:17]1041 (16) - 0000000000871756 [11:13:17]1040 (4) - 201393 [11:13:17]1012 (4) - 26.10.2024 05:13 [11:13:17]1206 (1) - 0 [11:13:17]OFD Sender: Remove packet 201393 [11:13:17]ProducePacketName [11:13:17]name=ofd_packets/00201393 [11:13:17]NVStorageDeleteData [11:13:17]OFD Sender: Processing packet 201394 [packets to send 112, broken 111] [11:13:17]ProducePacketName [11:13:17]name=ofd_packets/00201394 [11:13:17]OFD Sender: To server: pG, [11:13:17]CommunicateWithHost lk.salyk.kg:30040 [11:13:17]ConnectInit lk.salyk.kg [11:13:17]Connected sock=7 [11:13:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1A FB 07 01 E8 CF 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 32 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 9C 00 00 00 F4 03 04 00 96 CE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B2 12 03 00 35 04 06 00 57 B3 47 A4 0D 61 4D 10 4D D3 0F 88 99 33 [11:13:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 25 D3 47 00 92 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B2 12 03 00 F4 03 04 00 75 7A 1C 67 B6 04 01 00 00 96 E9 C9 8F ED B4 AA E3 [11:13:17]CommunicateWithHost err = 0 [11:13:17]CheckOFDResponse [11:13:17]1017 (14) - 77093643461234 [11:13:17]1041 (16) - 0000000000871756 [11:13:17]1040 (4) - 201394 [11:13:17]1012 (4) - 26.10.2024 05:13 [11:13:17]1206 (1) - 0 [11:13:17]OFD Sender: Remove packet 201394 [11:13:17]ProducePacketName [11:13:17]name=ofd_packets/00201394 [11:13:17]NVStorageDeleteData [11:13:18]OFD Sender: No OFD packet to send [11:13:19]ConnectInit Can't connect to host [11:13:23]OFD Sender: No OFD packet to send [11:13:28]OFD Sender: No OFD packet to send [11:13:33]OFD Sender: No OFD packet to send [11:13:38]OFD Sender: No OFD packet to send [11:13:43]OFD Sender: No OFD packet to send [11:13:48]OFD Sender: No OFD packet to send [11:13:53]OFD Sender: No OFD packet to send [11:13:58]OFD Sender: No OFD packet to send [11:14:03]OFD Sender: No OFD packet to send [11:14:08]OFD Sender: No OFD packet to send [11:14:13]OFD Sender: No OFD packet to send [11:14:18]OFD Sender: No OFD packet to send [11:14:23]OFD Sender: No OFD packet to send [11:14:28]OFD Sender: No OFD packet to send [11:14:33]OFD Sender: No OFD packet to send [11:14:38]OFD Sender: No OFD packet to send [11:14:43]OFD Sender: No OFD packet to send [11:14:48]OFD Sender: No OFD packet to send [11:14:53]OFD Sender: No OFD packet to send [11:14:58]OFD Sender: No OFD packet to send [11:15:03]OFD Sender: No OFD packet to send [11:15:08]OFD Sender: No OFD packet to send [11:15:13]OFD Sender: No OFD packet to send [11:15:18]OFD Sender: No OFD packet to send [11:15:23]OFD Sender: No OFD packet to send [11:15:28]OFD Sender: No OFD packet to send [11:15:33]OFD Sender: No OFD packet to send [11:15:38]OFD Sender: No OFD packet to send [11:15:43]OFD Sender: No OFD packet to send [11:15:48]OFD Sender: No OFD packet to send [11:15:53]OFD Sender: No OFD packet to send [11:15:58]OFD Sender: No OFD packet to send [11:16:03]OFD Sender: No OFD packet to send [11:16:08]OFD Sender: No OFD packet to send [11:16:13]OFD Sender: No OFD packet to send [11:16:18]OFD Sender: No OFD packet to send [11:16:23]OFD Sender: No OFD packet to send [11:16:28]OFD Sender: No OFD packet to send [11:16:33]OFD Sender: No OFD packet to send [11:16:38]OFD Sender: No OFD packet to send [11:16:43]OFD Sender: No OFD packet to send [11:16:48]OFD Sender: No OFD packet to send [11:16:53]OFD Sender: No OFD packet to send [11:16:58]OFD Sender: No OFD packet to send [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:00]accept exits with 11 [11:18:00]New connection [11:18:00]New thread 3066641764 created [11:18:00]Thread 3066498404 joined [11:18:00]Waiting for new connection... [11:18:00] Sock 11.Parse request [11:18:00]Sock 11.Check first char [11:18:00]Sock 11.First char is OK [11:18:00]request: POST /json_proto HTTP/1.0 [11:18:00]Method: POST [11:18:00]URL: /json_proto [11:18:00]Method is POST - this is cgi request [11:18:00]url: /json_proto [11:18:00]query_string will be loaded in cgi processing [11:18:00]execute_cgi json_proto POST (null) [11:18:00]execute_cgi path=json_proto method=POST [11:18:00]POST find Content-Length [11:18:00]Host: 172.17.63.195:8080 [11:18:00]Content-Length: 678 [11:18:00]Content-Type: application/json [11:18:00] [11:18:00]POST finish read [11:18:00]Found Content-Length = 678 [11:18:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:00]execute_script... [11:18: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)449144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:00]POST & json_proto [11:18:00]process_json_proto [11:18:00]json parsed OK: [11:18:00]protocol is kg_v1.0 [11:18:00]action value=close_receipt [11:18:00]process_action close_receipt [11:18:00]cmd_close_receipt [11:18:00]MH_GetDate [11:18:00]Write to MH i2c: F0 00 00 90 06 85 [11:18:00]Write i2c OK [11:18:00]MH_I2C_Read... [11:18:00]Read from MH i2c: F0 [11:18:00]MH_I2C_Read... [11:18:00]Read from MH i2c: F0 09 00 [11:18:00]MH_I2C_Read... [11:18:00]Read from MH i2c: F0 09 00 90 06 00 E8 CF 1C 67 68 46 19 67 F6 [11:18:00]GetLastDocTimeStamp 1729941142 [11:18:00]current date 1729941480 [11:18:00]FM_GetShiftState [11:18:00]SAM_PROTO_GetShiftState [11:18:00]wFMCommunicate request_size=4 [11:18:00]MH_SAM_APDU [11:18:00]CAPDU: 80 13 01 00 [11:18:00]Write to MH i2c: E2 08 00 91 06 80 13 01 00 00 00 00 00 14 [11:18:00]Write i2c OK [11:18:00]MH_I2C_Read... [11:18:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:00]Read from MH i2c: E2 [11:18:00]MH_I2C_Read... [11:18:00]Read from MH i2c: E2 0E 00 [11:18:00]MH_I2C_Read... [11:18:00]Read from MH i2c: E2 0E 00 91 06 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 23 [11:18:00]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:18:00]wFMCommunicate OK [11:18:00]SAM_PROTO_GetShiftState done [11:18:00]FM_GetShiftState done [11:18:00]opened in 1729900879 [11:18:00]opened+sec_in_day 1729987279 [11:18:00]quantity*price = 67033 [11:18:00]sum+1 = 67035 [11:18:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.19 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 157 26.10.2024 11:18 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201395 ФПД: 20760424402055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T111800&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201395&fm=20760424402055&tin=02508201610067®Number=0000000000091777&sum=67000 [11:18:01]StoreToDocumentArchive [11:18:01]shift 543 fd 201395 [11:18:01]save to /storage/0543/doc_00201395 [11:18:01]save last doc name /storage/0543/doc_00201395 to /storage/kkm_last_doc_name [11:18:01]save OK [11:18:01]Clear old archive folders... [11:18:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:18:01]tlvbuf is 01791DE0 [11:18:01]SAM_PROTO_ClearQueue [11:18:01]wFMCommunicate request_size=4 [11:18:01]MH_SAM_APDU [11:18:01]CAPDU: 80 09 00 00 [11:18:01]Write to MH i2c: E2 08 00 9E 06 80 09 00 00 00 00 00 00 16 [11:18:01]Write i2c OK [11:18:01]MH_I2C_Read... [11:18:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:01]Read from MH i2c: E2 [11:18:01]MH_I2C_Read... [11:18:01]Read from MH i2c: E2 03 00 [11:18:01]MH_I2C_Read... [11:18:01]Read from MH i2c: E2 03 00 9E 06 00 90 00 18 [11:18:01]RAPDU: 90 00 [11:18:01]wFMCommunicate OK [11:18:01]SAM_PROTO_ClearQueue done [11:18:01]KKMCreateOFDPacket [11:18:01]OFDProtocolAddRootSTLVToBuf [11:18:01]FM_MakeSignedData [11:18:01]FM_MakeSignedData [11:18:01]SAM_PROTO_SignData [11:18:01]wFMCommunicate request_size=4 [11:18:01]MH_SAM_APDU [11:18:01]CAPDU: 80 0D 01 02 [11:18:01]Write to MH i2c: E2 08 00 9F 06 80 0D 01 02 00 00 00 00 1E [11:18:01]Write i2c OK [11:18:01]MH_I2C_Read... [11:18:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:01]Read from MH i2c: E2 [11:18:01]MH_I2C_Read... [11:18:01]Read from MH i2c: E2 03 00 [11:18:01]MH_I2C_Read... [11:18:01]Read from MH i2c: E2 03 00 9F 06 00 90 00 19 [11:18:01]RAPDU: 90 00 [11:18:01]wFMCommunicate OK [11:18:01]wFMCommunicate request_size=255 [11:18:01]MH_SAM_APDU [11:18: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 32 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 E8 CF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B3 12 03 00 35 04 06 00 12 [11:18:01]Write to MH i2c: E2 02 01 A0 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 32 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 E8 CF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B3 12 03 00 35 04 06 00 12 00 00 1F [11:18:01]Write i2c OK [11:18:01]MH_I2C_Read... [11:18:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:02]Read from MH i2c: E2 [11:18:02]MH_I2C_Read... [11:18:02]Read from MH i2c: E2 03 00 [11:18:02]MH_I2C_Read... [11:18:02]Read from MH i2c: E2 03 00 A0 06 00 90 00 1A [11:18:02]RAPDU: 90 00 [11:18:02]wFMCommunicate OK [11:18:02]wFMCommunicate request_size=10 [11:18:02]MH_SAM_APDU [11:18:02]CAPDU: 80 0D 02 02 05 E1 A9 B8 CC 87 [11:18:02]Write to MH i2c: E2 0D 00 A1 06 80 0D 02 02 05 00 E1 A9 B8 CC 87 00 00 C0 [11:18:02]Write i2c OK [11:18:02]MH_I2C_Read... [11:18:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:02]Read from MH i2c: E2 [11:18:02]MH_I2C_Read... [11:18:02]Read from MH i2c: E2 03 00 [11:18:02]MH_I2C_Read... [11:18:02]Read from MH i2c: E2 03 00 A1 06 00 90 00 1B [11:18:02]RAPDU: 90 00 [11:18:02]wFMCommunicate OK [11:18:02]wFMCommunicate request_size=4 [11:18:02]MH_SAM_APDU [11:18:02]CAPDU: 80 0D 03 02 [11:18:02]Write to MH i2c: E2 08 00 A2 06 80 0D 03 02 00 00 00 00 23 [11:18:02]Write i2c OK [11:18:02]MH_I2C_Read... [11:18:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:02]Read from MH i2c: E2 [11:18:02]MH_I2C_Read... [11:18:02]Read from MH i2c: E2 0B 00 [11:18:02]MH_I2C_Read... [11:18:02]Read from MH i2c: E2 0B 00 A2 06 00 A5 57 9F B6 D2 B5 A2 5F 90 00 FD [11:18:02]RAPDU: A5 57 9F B6 D2 B5 A2 5F 90 00 [11:18:02]wFMCommunicate OK [11:18:02]SAM_PROTO_SignData done [11:18:02]FM_MakeSignedData done [11:18:02]CreateOFDProtocolMessage [11:18:02]wFMCommunicate request_size=4 [11:18:02]MH_SAM_APDU [11:18:02]CAPDU: 80 11 00 00 [11:18:02]Write to MH i2c: E2 08 00 A3 06 80 11 00 00 00 00 00 00 23 [11:18:02]Write i2c OK [11:18:02]MH_I2C_Read... [11:18:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:02]Read from MH i2c: E2 [11:18:02]MH_I2C_Read... [11:18:02]Read from MH i2c: E2 17 00 [11:18:02]MH_I2C_Read... [11:18:02]Read from MH i2c: E2 17 00 A3 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 78 [11:18:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:18:02]wFMCommunicate OK [11:18:02]CreateOFDProtocolMessage done [11:18:02]OFDSenderStorePacket 201395 [11:18:02]StoreOFDPacket docnum=201395 [11:18:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E2 59 07 01 58 2F 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 32 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 E8 CF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B3 12 03 00 35 04 06 00 12 E1 A9 B8 CC 87 A5 57 9F B6 D2 B5 A2 5F [11:18:02]CheckFolder [11:18:02]dirname=/storage/ofd_packets [11:18:02]CheckFolder done [11:18:02]ProducePacketName [11:18:02]name=ofd_packets/00201395 [11:18:02]NVStorageSaveData ofd_packets/00201395 [11:18:02]File name is /storage/ofd_packets/00201395 [11:18:02]Write 301 bytes [11:18:02]NVStorageSaveData done [11:18:02]OFDSenderStorePacket done [11:18:02]KKMCreateOFDPacket done [11:18:02]NVStorageSaveData kkm_last_timestamp [11:18:02]File name is /storage/kkm_last_timestamp [11:18:02]Write 4 bytes [11:18:02]NVStorageSaveData done [11:18:02]ExternCall_PrintAddStr [11:18:02]wPrintStart [11:18:02]Write to MH i2c: 01 00 00 A4 06 AA [11:18:02]Write i2c OK [11:18:02]MH_I2C_Read... [11:18:02]Read from MH i2c: 01 [11:18:02]MH_I2C_Read... [11:18:02]Read from MH i2c: 01 07 00 [11:18:02]MH_I2C_Read... [11:18:02]Read from MH i2c: 01 07 00 A4 06 00 00 00 00 00 FF 0F BF [11:18:02]RasterBufferAndPrint [11:18:02]line Счет N : (1)449144 [11:18:02]line ИНН: 02508201610067 [11:18:02]line Контрольно-Кассовый Чек [11:18:02]line ПРОДАЖА [11:18:02]line ТРК (МРК, ГНК) : 41 [11:18:02]line Товар: 2710124130 [11:18:02]line Аи-92-К-2 [11:18:02]line 10.020 * 66.90 [11:18:02]line = 670.34 [11:18:02]line НДС 12% НСП 1% [11:18:02]line > о реализуемом товаре [11:18:02]line ОКРУГЛЕНИЕ: -0.34 [11:18:02]line ИТОГО: 670.00 [11:18:02]line Внесено: 670.00 [11:18:02]line СДАЧА: 0.00 [11:18:02]line НСП 1% : 5.93 [11:18:02]line НДС 12% : 71.19 [11:18:02]line Наличными: 670.00 [11:18:02]line Безнал.: 0.00 [11:18:02]line Место: АЗС № 171 "Партнер Нефть" [11:18:02]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:18:02]line СНО: Общий режим [11:18:02]line Чек 157 26.10.2024 11:18 [11:18:02]line Смена: 543 ФФД: 1.0 [11:18:02]line ЗНМ: 0300000109 [11:18:02]line РНМ: 0000000000091777 [11:18:02]line Версия ККМ: 001 [11:18:02]line ФМ: 0000000000871756 [11:18:02]line ФД: 201395 [11:18:02]line ФПД: 20760424402055 [11:18:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T111800&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201395&fm=20760424402055&tin=02508201610067®Number=0000000000091777&sum=67000 [11:18:02]OFD Sender: Processing packet 201395 [packets to send 112, broken 111] [11:18:02]ProducePacketName [11:18:02]name=ofd_packets/00201395 [11:18:02]OFD Sender: To server: pG, [11:18:02]CommunicateWithHost lk.salyk.kg:30040 [11:18:02]ConnectInit lk.salyk.kg [11:18:02]written 0, free lines is 4095 [11:18:02]Connected sock=7 [11:18:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E2 59 07 01 58 2F 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 32 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 E8 CF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B3 12 03 00 35 04 06 00 12 E1 A9 B8 CC 87 A5 57 9F B6 D2 B5 A2 5F [11:18:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 9A 0C 47 00 AB 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B3 12 03 00 F4 03 04 00 92 7B 1C 67 B6 04 01 00 00 C3 2D 80 C6 0B 4E 40 75 [11:18:03]CommunicateWithHost err = 0 [11:18:03]CheckOFDResponse [11:18:03]1017 (14) - 77093643461234 [11:18:03]1041 (16) - 0000000000871756 [11:18:03]1040 (4) - 201395 [11:18:03]1012 (4) - 26.10.2024 05:18 [11:18:03]1206 (1) - 0 [11:18:03]OFD Sender: Remove packet 201395 [11:18:03]ProducePacketName [11:18:03]name=ofd_packets/00201395 [11:18:03]NVStorageDeleteData [11:18:03]Write to MH i2c: 01 00 00 CF 06 D5 [11:18:03]Write i2c OK [11:18:03]MH_I2C_Read... [11:18:03]Read from MH i2c: 01 [11:18:03]MH_I2C_Read... [11:18:03]Read from MH i2c: 01 07 00 [11:18:03]MH_I2C_Read... [11:18:03]Read from MH i2c: 01 07 00 CF 06 00 00 00 00 00 AA 0C 92 [11:18:03]RasterBufferAndPrint [11:18:03]line [11:18:03]line [11:18:03]line [11:18:03]line [11:18:03]line [11:18:03]written 0, free lines is 3247 [11:18:03]MH_Cut [11:18:03]Write to MH i2c: D1 01 00 D6 06 01 AE [11:18:03]Write i2c OK [11:18:03]MH_I2C_Read... [11:18:03]Read from MH i2c: D1 [11:18:03]MH_I2C_Read... [11:18:03]Read from MH i2c: D1 01 00 [11:18:03]MH_I2C_Read... [11:18:03]Read from MH i2c: D1 01 00 D6 06 00 AD [11:18:03]Write to MH i2c: 01 00 00 D7 06 DD [11:18:03]Write i2c OK [11:18:03]MH_I2C_Read... [11:18:03]OFD Sender: No OFD packet to send [11:18:04]*** Cut start [11:18:04]*** Purtial cut [11:18:04]*** Stage 1: CUTSNS_PIN = 1 [11:18:04]Read from MH i2c: 01 [11:18:04]MH_I2C_Read... [11:18:04]*** Stop cut motor [11:18:04]*** Cut end [11:18:04]Read from MH i2c: 01 07 00 [11:18:04]MH_I2C_Read... [11:18:04]Read from MH i2c: 01 07 00 D7 06 00 00 00 00 00 FF 0F F2 [11:18:04]process_action close_receipt done [11:18:04]requested_data is exist [11:18:04]produce_requested_data [11:18:04]requested_item fm.sn is exist - process it [11:18:04]wFMCommunicate request_size=4 [11:18:04]MH_SAM_APDU [11:18:04]CAPDU: 80 11 00 00 [11:18:04]Write to MH i2c: E2 08 00 D8 06 80 11 00 00 00 00 00 00 58 [11:18:04]Write i2c OK [11:18:04]MH_I2C_Read... [11:18:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:04]Read from MH i2c: E2 [11:18:04]MH_I2C_Read... [11:18:04]Read from MH i2c: E2 17 00 [11:18:04]MH_I2C_Read... [11:18:04]Read from MH i2c: E2 17 00 D8 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AD [11:18:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:18:04]wFMCommunicate OK [11:18:04]requested_item fd.num is exist - process it [11:18:04]SAM_PROTO_GetFieldsCounters [11:18:04]wFMCommunicate request_size=4 [11:18:04]MH_SAM_APDU [11:18:04]CAPDU: 80 13 00 00 [11:18:04]Write to MH i2c: E2 08 00 D9 06 80 13 00 00 00 00 00 00 5B [11:18:04]Write i2c OK [11:18:04]MH_I2C_Read... [11:18:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:04]Read from MH i2c: E2 [11:18:04]MH_I2C_Read... [11:18:04]Read from MH i2c: E2 62 00 [11:18:04]MH_I2C_Read... [11:18:04]Read from MH i2c: E2 62 00 D9 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B3 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [11:18:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B3 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:18:04]wFMCommunicate OK [11:18:04]SAM_PROTO_GetFieldsCounters done [11:18:04]requested_item shift.num is exist - process it [11:18:04]requested_item shift.opened is exist - process it [11:18:04]req_shift_opened [11:18:04]FM_GetShiftState [11:18:04]SAM_PROTO_GetShiftState [11:18:04]wFMCommunicate request_size=4 [11:18:04]MH_SAM_APDU [11:18:04]CAPDU: 80 13 01 00 [11:18:04]Write to MH i2c: E2 08 00 DA 06 80 13 01 00 00 00 00 00 5D [11:18:04]Write i2c OK [11:18:04]MH_I2C_Read... [11:18:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:04]Read from MH i2c: E2 [11:18:04]MH_I2C_Read... [11:18:04]Read from MH i2c: E2 0E 00 [11:18:04]MH_I2C_Read... [11:18:04]Read from MH i2c: E2 0E 00 DA 06 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 6C [11:18:04]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:18:04]wFMCommunicate OK [11:18:04]SAM_PROTO_GetShiftState done [11:18:04]FM_GetShiftState done [11:18:04]req_shift_opened done [11:18:04]requested_item shift.open_date is exist - process it [11:18:04]req_shift_open_date [11:18:04]req_shift_open_date done [11:18:04]produce_requested_data done [11:18:04]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201395,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:18:04]process_action_free close_receipt [11:18:04]json_value_free [11:18:04]json_value_free done [11:18:04]process_json_proto returns [11:18:04]Send response to host [11:18:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201395,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:18:04]free response buf [11:18:04]execute_script done [11:18:04]execute_script returns [11:18:04]free content buf [11:18:04]Sock 11.Close socket [11:18:04]Sock 11.Thread stoped [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:18]OFD Sender: No OFD packet to send [11:19:23]OFD Sender: No OFD packet to send [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:38]OFD Sender: No OFD packet to send [11:19:43]OFD Sender: No OFD packet to send [11:19:45]accept exits with 9 [11:19:45]New connection [11:19:45]New thread 3066498404 created [11:19:45]Thread 3066641764 joined [11:19:45]Waiting for new connection... [11:19:45] Sock 9.Parse request [11:19:45]Sock 9.Check first char [11:19:45]Sock 9.First char is OK [11:19:45]request: POST /json_proto HTTP/1.0 [11:19:45]Method: POST [11:19:45]URL: /json_proto [11:19:45]Method is POST - this is cgi request [11:19:45]url: /json_proto [11:19:45]query_string will be loaded in cgi processing [11:19:45]execute_cgi json_proto POST (null) [11:19:45]execute_cgi path=json_proto method=POST [11:19:45]POST find Content-Length [11:19:45]Host: 172.17.63.195:8080 [11:19:45]Content-Length: 682 [11:19:45]Content-Type: application/json [11:19:45] [11:19:45]POST finish read [11:19:45]Found Content-Length = 682 [11:19:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 25.420, "sum" : 1700.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:45]execute_script... [11:19: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)449145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 25.420, "sum" : 1700.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:45]POST & json_proto [11:19:45]process_json_proto [11:19:45]json parsed OK: [11:19:45]protocol is kg_v1.0 [11:19:45]action value=close_receipt [11:19:45]process_action close_receipt [11:19:45]cmd_close_receipt [11:19:45]MH_GetDate [11:19:45]Write to MH i2c: F0 00 00 DB 06 D0 [11:19:45]Write i2c OK [11:19:45]MH_I2C_Read... [11:19:45]Read from MH i2c: F0 [11:19:45]MH_I2C_Read... [11:19:45]Read from MH i2c: F0 09 00 [11:19:45]MH_I2C_Read... [11:19:45]Read from MH i2c: F0 09 00 DB 06 00 51 D0 1C 67 68 46 19 67 AB [11:19:45]GetLastDocTimeStamp 1729941480 [11:19:45]current date 1729941585 [11:19:45]FM_GetShiftState [11:19:45]SAM_PROTO_GetShiftState [11:19:45]wFMCommunicate request_size=4 [11:19:45]MH_SAM_APDU [11:19:45]CAPDU: 80 13 01 00 [11:19:45]Write to MH i2c: E2 08 00 DC 06 80 13 01 00 00 00 00 00 5F [11:19:45]Write i2c OK [11:19:45]MH_I2C_Read... [11:19:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:45]Read from MH i2c: E2 [11:19:45]MH_I2C_Read... [11:19:45]Read from MH i2c: E2 0E 00 [11:19:45]MH_I2C_Read... [11:19:45]Read from MH i2c: E2 0E 00 DC 06 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 6E [11:19:45]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:19:45]wFMCommunicate OK [11:19:45]SAM_PROTO_GetShiftState done [11:19:45]FM_GetShiftState done [11:19:45]opened in 1729900879 [11:19:45]opened+sec_in_day 1729987279 [11:19:45]quantity*price = 170059 [11:19:45]sum+1 = 170061 [11:19:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.05 НДС 12% : 180.59 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 158 26.10.2024 11:19 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201396 ФПД: 235031200246680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T111945&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201396&fm=235031200246680&tin=02508201610067®Number=0000000000091777&sum=170000 [11:19:46]StoreToDocumentArchive [11:19:46]shift 543 fd 201396 [11:19:46]save to /storage/0543/doc_00201396 [11:19:46]save last doc name /storage/0543/doc_00201396 to /storage/kkm_last_doc_name [11:19:46]save OK [11:19:46]Clear old archive folders... [11:19:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:46]tlvbuf is B6F0C4F0 [11:19:46]SAM_PROTO_ClearQueue [11:19:46]wFMCommunicate request_size=4 [11:19:46]MH_SAM_APDU [11:19:46]CAPDU: 80 09 00 00 [11:19:46]Write to MH i2c: E2 08 00 E9 06 80 09 00 00 00 00 00 00 61 [11:19:46]Write i2c OK [11:19:46]MH_I2C_Read... [11:19:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:46]Read from MH i2c: E2 [11:19:46]MH_I2C_Read... [11:19:46]Read from MH i2c: E2 03 00 [11:19:46]MH_I2C_Read... [11:19:46]Read from MH i2c: E2 03 00 E9 06 00 90 00 63 [11:19:46]RAPDU: 90 00 [11:19:46]wFMCommunicate OK [11:19:46]SAM_PROTO_ClearQueue done [11:19:46]KKMCreateOFDPacket [11:19:46]OFDProtocolAddRootSTLVToBuf [11:19:46]FM_MakeSignedData [11:19:46]FM_MakeSignedData [11:19:46]SAM_PROTO_SignData [11:19:46]wFMCommunicate request_size=4 [11:19:46]MH_SAM_APDU [11:19:46]CAPDU: 80 0D 01 02 [11:19:46]Write to MH i2c: E2 08 00 EA 06 80 0D 01 02 00 00 00 00 69 [11:19:46]Write i2c OK [11:19:46]MH_I2C_Read... [11:19:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:46]Read from MH i2c: E2 [11:19:46]MH_I2C_Read... [11:19:46]Read from MH i2c: E2 03 00 [11:19:46]MH_I2C_Read... [11:19:46]Read from MH i2c: E2 03 00 EA 06 00 90 00 64 [11:19:46]RAPDU: 90 00 [11:19:46]wFMCommunicate OK [11:19:46]wFMCommunicate request_size=255 [11:19:46]MH_SAM_APDU [11:19:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4C 63 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4C 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 51 D0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B4 12 03 00 35 04 06 00 D5 [11:19:46]Write to MH i2c: E2 02 01 EB 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 32 FF 03 08 00 03 4C 63 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4C 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 51 D0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B4 12 03 00 35 04 06 00 D5 00 00 55 [11:19:46]Write i2c OK [11:19:46]MH_I2C_Read... [11:19:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:47]Read from MH i2c: E2 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: E2 03 00 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: E2 03 00 EB 06 00 90 00 65 [11:19:47]RAPDU: 90 00 [11:19:47]wFMCommunicate OK [11:19:47]wFMCommunicate request_size=10 [11:19:47]MH_SAM_APDU [11:19:47]CAPDU: 80 0D 02 02 05 C2 77 33 AB 98 [11:19:47]Write to MH i2c: E2 0D 00 EC 06 80 0D 02 02 05 00 C2 77 33 AB 98 00 00 25 [11:19:47]Write i2c OK [11:19:47]MH_I2C_Read... [11:19:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:47]Read from MH i2c: E2 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: E2 03 00 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: E2 03 00 EC 06 00 90 00 66 [11:19:47]RAPDU: 90 00 [11:19:47]wFMCommunicate OK [11:19:47]wFMCommunicate request_size=4 [11:19:47]MH_SAM_APDU [11:19:47]CAPDU: 80 0D 03 02 [11:19:47]Write to MH i2c: E2 08 00 ED 06 80 0D 03 02 00 00 00 00 6E [11:19:47]Write i2c OK [11:19:47]MH_I2C_Read... [11:19:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:47]Read from MH i2c: E2 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: E2 0B 00 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: E2 0B 00 ED 06 00 01 3C D0 31 60 37 F5 CF 90 00 08 [11:19:47]RAPDU: 01 3C D0 31 60 37 F5 CF 90 00 [11:19:47]wFMCommunicate OK [11:19:47]SAM_PROTO_SignData done [11:19:47]FM_MakeSignedData done [11:19:47]CreateOFDProtocolMessage [11:19:47]wFMCommunicate request_size=4 [11:19:47]MH_SAM_APDU [11:19:47]CAPDU: 80 11 00 00 [11:19:47]Write to MH i2c: E2 08 00 EE 06 80 11 00 00 00 00 00 00 6E [11:19:47]Write i2c OK [11:19:47]MH_I2C_Read... [11:19:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:47]Read from MH i2c: E2 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: E2 17 00 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: E2 17 00 EE 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C3 [11:19:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:19:47]wFMCommunicate OK [11:19:47]CreateOFDProtocolMessage done [11:19:47]OFDSenderStorePacket 201396 [11:19:47]StoreOFDPacket docnum=201396 [11:19:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 26 76 07 01 52 A7 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 32 FF 03 08 00 03 4C 63 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4C 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 51 D0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B4 12 03 00 35 04 06 00 D5 C2 77 33 AB 98 01 3C D0 31 60 37 F5 CF [11:19:47]CheckFolder [11:19:47]dirname=/storage/ofd_packets [11:19:47]CheckFolder done [11:19:47]ProducePacketName [11:19:47]name=ofd_packets/00201396 [11:19:47]NVStorageSaveData ofd_packets/00201396 [11:19:47]File name is /storage/ofd_packets/00201396 [11:19:47]Write 301 bytes [11:19:47]NVStorageSaveData done [11:19:47]OFDSenderStorePacket done [11:19:47]KKMCreateOFDPacket done [11:19:47]NVStorageSaveData kkm_last_timestamp [11:19:47]File name is /storage/kkm_last_timestamp [11:19:47]Write 4 bytes [11:19:47]NVStorageSaveData done [11:19:47]ExternCall_PrintAddStr [11:19:47]wPrintStart [11:19:47]Write to MH i2c: 01 00 00 EF 06 F5 [11:19:47]Write i2c OK [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: 01 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: 01 07 00 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: 01 07 00 EF 06 00 00 00 00 00 FF 0F 0A [11:19:47]RasterBufferAndPrint [11:19:47]line Счет N : (1)449145 [11:19:47]line ИНН: 02508201610067 [11:19:47]line Контрольно-Кассовый Чек [11:19:47]line ПРОДАЖА [11:19:47]line ТРК (МРК, ГНК) : 62 [11:19:47]line Товар: 2710124130 [11:19:47]line Аи-92-К-2 [11:19:47]line 25.420 * 66.90 [11:19:47]line = 1700.60 [11:19:47]line НДС 12% НСП 1% [11:19:47]line > о реализуемом товаре [11:19:47]line ОКРУГЛЕНИЕ: -0.60 [11:19:47]line ИТОГО: 1700.00 [11:19:47]line Внесено: 1700.00 [11:19:47]line СДАЧА: 0.00 [11:19:47]line НСП 1% : 15.05 [11:19:47]line НДС 12% : 180.59 [11:19:47]line Наличными: 1700.00 [11:19:47]line Безнал.: 0.00 [11:19:47]line Место: АЗС № 171 "Партнер Нефть" [11:19:47]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:19:47]line СНО: Общий режим [11:19:47]line Чек 158 26.10.2024 11:19 [11:19:47]line Смена: 543 ФФД: 1.0 [11:19:47]line ЗНМ: 0300000109 [11:19:47]line РНМ: 0000000000091777 [11:19:47]line Версия ККМ: 001 [11:19:47]line ФМ: 0000000000871756 [11:19:47]line ФД: 201396 [11:19:47]line ФПД: 235031200246680 [11:19:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T111945&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201396&fm=235031200246680&tin=02508201610067®Number=0000000000091777&sum=170000 [11:19:47]OFD Sender: Processing packet 201396 [packets to send 112, broken 111] [11:19:47]ProducePacketName [11:19:47]name=ofd_packets/00201396 [11:19:47]OFD Sender: To server: pG, [11:19:47]CommunicateWithHost lk.salyk.kg:30040 [11:19:47]ConnectInit lk.salyk.kg [11:19:47]written 0, free lines is 4095 [11:19:47]Connected sock=10 [11:19:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 26 76 07 01 52 A7 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 32 FF 03 08 00 03 4C 63 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4C 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 51 D0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B4 12 03 00 35 04 06 00 D5 C2 77 33 AB 98 01 3C D0 31 60 37 F5 CF [11:19:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 6A E4 47 00 01 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B4 12 03 00 F4 03 04 00 FB 7B 1C 67 B6 04 01 00 00 40 D6 BC 3D 26 BD 56 B0 [11:19:47]CommunicateWithHost err = 0 [11:19:47]CheckOFDResponse [11:19:47]1017 (14) - 77093643461234 [11:19:47]1041 (16) - 0000000000871756 [11:19:47]1040 (4) - 201396 [11:19:47]1012 (4) - 26.10.2024 05:19 [11:19:47]1206 (1) - 0 [11:19:47]OFD Sender: Remove packet 201396 [11:19:47]ProducePacketName [11:19:47]name=ofd_packets/00201396 [11:19:47]NVStorageDeleteData [11:19:47]Write to MH i2c: 01 00 00 1A 07 21 [11:19:47]Write i2c OK [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: 01 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: 01 07 00 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: 01 07 00 1A 07 00 00 00 00 00 A3 0C D7 [11:19:47]RasterBufferAndPrint [11:19:47]line [11:19:47]line [11:19:47]line [11:19:47]line [11:19:47]line [11:19:47]written 0, free lines is 3239 [11:19:47]MH_Cut [11:19:47]Write to MH i2c: D1 01 00 21 07 01 FA [11:19:47]Write i2c OK [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: D1 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: D1 01 00 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: D1 01 00 21 07 00 F9 [11:19:47]Write to MH i2c: 01 00 00 22 07 29 [11:19:47]Write i2c OK [11:19:47]MH_I2C_Read... [11:19:48]OFD Sender: No OFD packet to send [11:19:48]*** Cut start [11:19:48]*** Purtial cut [11:19:48]*** CUTSNS_PIN = 0 [11:19:49]*** Stage 1: CUTSNS_PIN = 1 [11:19:50]Read from MH i2c: 01 [11:19:50]MH_I2C_Read... [11:19:50]*** Stop cut motor [11:19:50]*** Cut end [11:19:50]Read from MH i2c: 01 07 00 [11:19:50]MH_I2C_Read... [11:19:50]Read from MH i2c: 01 07 00 22 07 00 00 00 00 00 FF 0F 3E [11:19:50]process_action close_receipt done [11:19:50]requested_data is exist [11:19:50]produce_requested_data [11:19:50]requested_item fm.sn is exist - process it [11:19:50]wFMCommunicate request_size=4 [11:19:50]MH_SAM_APDU [11:19:50]CAPDU: 80 11 00 00 [11:19:50]Write to MH i2c: E2 08 00 23 07 80 11 00 00 00 00 00 00 A4 [11:19:50]Write i2c OK [11:19:50]MH_I2C_Read... [11:19:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:50]Read from MH i2c: E2 [11:19:50]MH_I2C_Read... [11:19:50]Read from MH i2c: E2 17 00 [11:19:50]MH_I2C_Read... [11:19:50]Read from MH i2c: E2 17 00 23 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F9 [11:19:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:19:50]wFMCommunicate OK [11:19:50]requested_item fd.num is exist - process it [11:19:50]SAM_PROTO_GetFieldsCounters [11:19:50]wFMCommunicate request_size=4 [11:19:50]MH_SAM_APDU [11:19:50]CAPDU: 80 13 00 00 [11:19:50]Write to MH i2c: E2 08 00 24 07 80 13 00 00 00 00 00 00 A7 [11:19:50]Write i2c OK [11:19:50]MH_I2C_Read... [11:19:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:51]Read from MH i2c: E2 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: E2 62 00 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: E2 62 00 24 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B4 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [11:19:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B4 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:51]wFMCommunicate OK [11:19:51]SAM_PROTO_GetFieldsCounters done [11:19:51]requested_item shift.num is exist - process it [11:19:51]requested_item shift.opened is exist - process it [11:19:51]req_shift_opened [11:19:51]FM_GetShiftState [11:19:51]SAM_PROTO_GetShiftState [11:19:51]wFMCommunicate request_size=4 [11:19:51]MH_SAM_APDU [11:19:51]CAPDU: 80 13 01 00 [11:19:51]Write to MH i2c: E2 08 00 25 07 80 13 01 00 00 00 00 00 A9 [11:19:51]Write i2c OK [11:19:51]MH_I2C_Read... [11:19:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:51]Read from MH i2c: E2 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: E2 0E 00 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: E2 0E 00 25 07 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 B8 [11:19:51]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:19:51]wFMCommunicate OK [11:19:51]SAM_PROTO_GetShiftState done [11:19:51]FM_GetShiftState done [11:19:51]req_shift_opened done [11:19:51]requested_item shift.open_date is exist - process it [11:19:51]req_shift_open_date [11:19:51]req_shift_open_date done [11:19:51]produce_requested_data done [11:19:51]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201396,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:19:51]process_action_free close_receipt [11:19:51]json_value_free [11:19:51]json_value_free done [11:19:51]process_json_proto returns [11:19:51]Send response to host [11:19:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201396,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:19:51]free response buf [11:19:51]execute_script done [11:19:51]execute_script returns [11:19:51]free content buf [11:19:51]Sock 9.Close socket [11:19:51]Sock 9.Thread stoped [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:33]OFD Sender: No OFD packet to send [11:20:38]OFD Sender: No OFD packet to send [11:20:43]OFD Sender: No OFD packet to send [11:20:48]OFD Sender: No OFD packet to send [11:20:53]OFD Sender: No OFD packet to send [11:20:57]accept exits with 7 [11:20:57]New connection [11:20:57]New thread 3066641764 created [11:20:57]Thread 3066498404 joined [11:20:57]Waiting for new connection... [11:20:57] Sock 7.Parse request [11:20:57]Sock 7.Check first char [11:20:57]Sock 7.First char is OK [11:20:57]request: POST /json_proto HTTP/1.0 [11:20:57]Method: POST [11:20:57]URL: /json_proto [11:20:57]Method is POST - this is cgi request [11:20:57]url: /json_proto [11:20:57]query_string will be loaded in cgi processing [11:20:57]execute_cgi json_proto POST (null) [11:20:57]execute_cgi path=json_proto method=POST [11:20:57]POST find Content-Length [11:20:57]Host: 172.17.63.195:8080 [11:20:57]Content-Length: 671 [11:20:57]Content-Type: application/json [11:20:57] [11:20:57]POST finish read [11:20:57]Found Content-Length = 671 [11:20:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 11.700, "sum" : 800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:57]execute_script... [11:20: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)449147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 11.700, "sum" : 800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:57]POST & json_proto [11:20:57]process_json_proto [11:20:57]json parsed OK: [11:20:57]protocol is kg_v1.0 [11:20:57]action value=close_receipt [11:20:57]process_action close_receipt [11:20:57]cmd_close_receipt [11:20:57]MH_GetDate [11:20:57]Write to MH i2c: F0 00 00 26 07 1C [11:20:57]Write i2c OK [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: F0 [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: F0 09 00 [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: F0 09 00 26 07 00 99 D0 1C 67 68 46 19 67 3F [11:20:57]GetLastDocTimeStamp 1729941585 [11:20:57]current date 1729941657 [11:20:57]FM_GetShiftState [11:20:57]SAM_PROTO_GetShiftState [11:20:57]wFMCommunicate request_size=4 [11:20:57]MH_SAM_APDU [11:20:57]CAPDU: 80 13 01 00 [11:20:57]Write to MH i2c: E2 08 00 27 07 80 13 01 00 00 00 00 00 AB [11:20:57]Write i2c OK [11:20:57]MH_I2C_Read... [11:20:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:57]Read from MH i2c: E2 [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: E2 0E 00 [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: E2 0E 00 27 07 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 BA [11:20:57]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:20:57]wFMCommunicate OK [11:20:57]SAM_PROTO_GetShiftState done [11:20:57]FM_GetShiftState done [11:20:57]opened in 1729900879 [11:20:57]opened+sec_in_day 1729987279 [11:20:57]quantity*price = 80028 [11:20:57]sum+1 = 80029 [11:20:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 159 26.10.2024 11:20 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201397 ФПД: 263082113039161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112057&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201397&fm=263082113039161&tin=02508201610067®Number=0000000000091777&sum=80000 [11:20:58]StoreToDocumentArchive [11:20:58]shift 543 fd 201397 [11:20:58]save to /storage/0543/doc_00201397 [11:20:58]save last doc name /storage/0543/doc_00201397 to /storage/kkm_last_doc_name [11:20:58]save OK [11:20:58]Clear old archive folders... [11:20:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:20:58]tlvbuf is 0180C7B0 [11:20:58]SAM_PROTO_ClearQueue [11:20:58]wFMCommunicate request_size=4 [11:20:58]MH_SAM_APDU [11:20:58]CAPDU: 80 09 00 00 [11:20:58]Write to MH i2c: E2 08 00 34 07 80 09 00 00 00 00 00 00 AD [11:20:58]Write i2c OK [11:20:58]MH_I2C_Read... [11:20:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:58]Read from MH i2c: E2 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: E2 03 00 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: E2 03 00 34 07 00 90 00 AF [11:20:58]RAPDU: 90 00 [11:20:58]wFMCommunicate OK [11:20:58]SAM_PROTO_ClearQueue done [11:20:58]KKMCreateOFDPacket [11:20:58]OFDProtocolAddRootSTLVToBuf [11:20:58]FM_MakeSignedData [11:20:58]FM_MakeSignedData [11:20:58]SAM_PROTO_SignData [11:20:58]wFMCommunicate request_size=4 [11:20:58]MH_SAM_APDU [11:20:58]CAPDU: 80 0D 01 02 [11:20:58]Write to MH i2c: E2 08 00 35 07 80 0D 01 02 00 00 00 00 B5 [11:20:58]Write i2c OK [11:20:58]MH_I2C_Read... [11:20:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:58]Read from MH i2c: E2 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: E2 03 00 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: E2 03 00 35 07 00 90 00 B0 [11:20:58]RAPDU: 90 00 [11:20:58]wFMCommunicate OK [11:20:58]wFMCommunicate request_size=255 [11:20:58]MH_SAM_APDU [11:20:58]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 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 99 D0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B5 12 03 00 35 04 06 00 [11:20:58]Write to MH i2c: E2 02 01 36 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 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 99 D0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B5 12 03 00 35 04 06 00 00 00 ED [11:20:58]Write i2c OK [11:20:58]MH_I2C_Read... [11:20:58]OFD Sender: No OFD packet to send [11:20:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:58]Read from MH i2c: E2 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: E2 03 00 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: E2 03 00 36 07 00 90 00 B1 [11:20:58]RAPDU: 90 00 [11:20:58]wFMCommunicate OK [11:20:58]wFMCommunicate request_size=11 [11:20:58]MH_SAM_APDU [11:20:58]CAPDU: 80 0D 02 02 06 EF 45 93 E4 FB 39 [11:20:58]Write to MH i2c: E2 0E 00 37 07 80 0D 02 02 06 00 EF 45 93 E4 FB 39 00 00 A3 [11:20:58]Write i2c OK [11:20:58]MH_I2C_Read... [11:20:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:58]Read from MH i2c: E2 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: E2 03 00 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: E2 03 00 37 07 00 90 00 B2 [11:20:58]RAPDU: 90 00 [11:20:58]wFMCommunicate OK [11:20:58]wFMCommunicate request_size=4 [11:20:58]MH_SAM_APDU [11:20:58]CAPDU: 80 0D 03 02 [11:20:58]Write to MH i2c: E2 08 00 38 07 80 0D 03 02 00 00 00 00 BA [11:20:58]Write i2c OK [11:20:58]MH_I2C_Read... [11:20:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:58]Read from MH i2c: E2 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: E2 0B 00 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: E2 0B 00 38 07 00 7D 1E E6 72 A9 18 F2 C3 90 00 24 [11:20:58]RAPDU: 7D 1E E6 72 A9 18 F2 C3 90 00 [11:20:58]wFMCommunicate OK [11:20:58]SAM_PROTO_SignData done [11:20:58]FM_MakeSignedData done [11:20:58]CreateOFDProtocolMessage [11:20:58]wFMCommunicate request_size=4 [11:20:58]MH_SAM_APDU [11:20:58]CAPDU: 80 11 00 00 [11:20:58]Write to MH i2c: E2 08 00 39 07 80 11 00 00 00 00 00 00 BA [11:20:58]Write i2c OK [11:20:58]MH_I2C_Read... [11:20:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:58]Read from MH i2c: E2 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: E2 17 00 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: E2 17 00 39 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0F [11:20:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:20:58]wFMCommunicate OK [11:20:58]CreateOFDProtocolMessage done [11:20:58]OFDSenderStorePacket 201397 [11:20:58]StoreOFDPacket docnum=201397 [11:20:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 29 E4 08 01 3E 97 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 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 99 D0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B5 12 03 00 35 04 06 00 EF 45 93 E4 FB 39 7D 1E E6 72 A9 18 F2 C3 [11:20:58]CheckFolder [11:20:58]dirname=/storage/ofd_packets [11:20:58]CheckFolder done [11:20:58]ProducePacketName [11:20:58]name=ofd_packets/00201397 [11:20:58]NVStorageSaveData ofd_packets/00201397 [11:20:58]File name is /storage/ofd_packets/00201397 [11:20:58]Write 302 bytes [11:20:58]NVStorageSaveData done [11:20:58]OFDSenderStorePacket done [11:20:58]KKMCreateOFDPacket done [11:20:58]NVStorageSaveData kkm_last_timestamp [11:20:58]File name is /storage/kkm_last_timestamp [11:20:58]Write 4 bytes [11:20:58]NVStorageSaveData done [11:20:58]ExternCall_PrintAddStr [11:20:58]wPrintStart [11:20:58]Write to MH i2c: 01 00 00 3A 07 41 [11:20:58]Write i2c OK [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: 01 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: 01 07 00 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: 01 07 00 3A 07 00 00 00 00 00 FF 0F 56 [11:20:58]RasterBufferAndPrint [11:20:58]line Счет N : (1)449147 [11:20:58]line ИНН: 02508201610067 [11:20:58]line Контрольно-Кассовый Чек [11:20:58]line ПРОДАЖА [11:20:58]line ТРК (МРК, ГНК) : 53 [11:20:58]line Товар: 2710124130 [11:20:58]line SUPER 92-К-5 [11:20:58]line 11.700 * 68.40 [11:20:58]line = 800.28 [11:20:58]line НДС 12% НСП 1% [11:20:58]line > о реализуемом товаре [11:20:58]line ОКРУГЛЕНИЕ: -0.28 [11:20:58]line ИТОГО: 800.00 [11:20:58]line Внесено: 800.00 [11:20:58]line СДАЧА: 0.00 [11:20:58]line НСП 1% : 7.08 [11:20:58]line НДС 12% : 84.98 [11:20:58]line Наличными: 800.00 [11:20:58]line Безнал.: 0.00 [11:20:58]line Место: АЗС № 171 "Партнер Нефть" [11:20:58]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:20:58]line СНО: Общий режим [11:20:58]line Чек 159 26.10.2024 11:20 [11:20:58]line Смена: 543 ФФД: 1.0 [11:20:58]line ЗНМ: 0300000109 [11:20:58]line РНМ: 0000000000091777 [11:20:58]line Версия ККМ: 001 [11:20:58]line ФМ: 0000000000871756 [11:20:58]line ФД: 201397 [11:20:58]line ФПД: 263082113039161 [11:20:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112057&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201397&fm=263082113039161&tin=02508201610067®Number=0000000000091777&sum=80000 [11:20:59]OFD Sender: Processing packet 201397 [packets to send 112, broken 111] [11:20:59]ProducePacketName [11:20:59]name=ofd_packets/00201397 [11:20:59]OFD Sender: To server: pG, [11:20:59]CommunicateWithHost lk.salyk.kg:30040 [11:20:59]ConnectInit lk.salyk.kg [11:20:59]written 0, free lines is 4095 [11:20:59]Connected sock=10 [11:20:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 29 E4 08 01 3E 97 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 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 99 D0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B5 12 03 00 35 04 06 00 EF 45 93 E4 FB 39 7D 1E E6 72 A9 18 F2 C3 [11:20:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 AD C8 47 00 21 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B5 12 03 00 F4 03 04 00 42 7C 1C 67 B6 04 01 00 00 93 B0 02 F2 65 DF D6 7C [11:20:59]CommunicateWithHost err = 0 [11:20:59]CheckOFDResponse [11:20:59]1017 (14) - 77093643461234 [11:20:59]1041 (16) - 0000000000871756 [11:20:59]1040 (4) - 201397 [11:20:59]1012 (4) - 26.10.2024 05:21 [11:20:59]1206 (1) - 0 [11:20:59]OFD Sender: Remove packet 201397 [11:20:59]ProducePacketName [11:20:59]name=ofd_packets/00201397 [11:20:59]NVStorageDeleteData [11:20:59]Write to MH i2c: 01 00 00 65 07 6C [11:20:59]Write i2c OK [11:20:59]MH_I2C_Read... [11:20:59]Read from MH i2c: 01 [11:20:59]MH_I2C_Read... [11:20:59]Read from MH i2c: 01 07 00 [11:20:59]MH_I2C_Read... [11:20:59]Read from MH i2c: 01 07 00 65 07 00 00 00 00 00 A8 0C 27 [11:20:59]RasterBufferAndPrint [11:20:59]line [11:20:59]line [11:20:59]line [11:20:59]line [11:20:59]line [11:20:59]written 0, free lines is 3244 [11:20:59]MH_Cut [11:20:59]Write to MH i2c: D1 01 00 6C 07 01 45 [11:20:59]Write i2c OK [11:20:59]MH_I2C_Read... [11:20:59]Read from MH i2c: D1 [11:20:59]MH_I2C_Read... [11:20:59]Read from MH i2c: D1 01 00 [11:20:59]MH_I2C_Read... [11:20:59]Read from MH i2c: D1 01 00 6C 07 00 44 [11:20:59]Write to MH i2c: 01 00 00 6D 07 74 [11:20:59]Write i2c OK [11:20:59]MH_I2C_Read... [11:20:59]OFD Sender: No OFD packet to send [11:21:00]*** Cut start [11:21:00]*** Purtial cut [11:21:00]*** Stage 1: CUTSNS_PIN = 1 [11:21:00]Read from MH i2c: 01 [11:21:00]MH_I2C_Read... [11:21:00]*** Stop cut motor [11:21:00]*** Cut end [11:21:00]Read from MH i2c: 01 07 00 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: 01 07 00 6D 07 00 00 00 00 00 FF 0F 89 [11:21:00]process_action close_receipt done [11:21:00]requested_data is exist [11:21:00]produce_requested_data [11:21:00]requested_item fm.sn is exist - process it [11:21:00]wFMCommunicate request_size=4 [11:21:00]MH_SAM_APDU [11:21:00]CAPDU: 80 11 00 00 [11:21:00]Write to MH i2c: E2 08 00 6E 07 80 11 00 00 00 00 00 00 EF [11:21:00]Write i2c OK [11:21:00]MH_I2C_Read... [11:21:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:00]Read from MH i2c: E2 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: E2 17 00 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: E2 17 00 6E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 44 [11:21:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:21:00]wFMCommunicate OK [11:21:00]requested_item fd.num is exist - process it [11:21:00]SAM_PROTO_GetFieldsCounters [11:21:00]wFMCommunicate request_size=4 [11:21:00]MH_SAM_APDU [11:21:00]CAPDU: 80 13 00 00 [11:21:00]Write to MH i2c: E2 08 00 6F 07 80 13 00 00 00 00 00 00 F2 [11:21:00]Write i2c OK [11:21:00]MH_I2C_Read... [11:21:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:00]Read from MH i2c: E2 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: E2 62 00 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: E2 62 00 6F 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B5 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [11:21:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B5 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:21:00]wFMCommunicate OK [11:21:00]SAM_PROTO_GetFieldsCounters done [11:21:00]requested_item shift.num is exist - process it [11:21:00]requested_item shift.opened is exist - process it [11:21:00]req_shift_opened [11:21:00]FM_GetShiftState [11:21:00]SAM_PROTO_GetShiftState [11:21:00]wFMCommunicate request_size=4 [11:21:00]MH_SAM_APDU [11:21:00]CAPDU: 80 13 01 00 [11:21:00]Write to MH i2c: E2 08 00 70 07 80 13 01 00 00 00 00 00 F4 [11:21:00]Write i2c OK [11:21:00]MH_I2C_Read... [11:21:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:00]Read from MH i2c: E2 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: E2 0E 00 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: E2 0E 00 70 07 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 03 [11:21:00]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:21:00]wFMCommunicate OK [11:21:00]SAM_PROTO_GetShiftState done [11:21:00]FM_GetShiftState done [11:21:00]req_shift_opened done [11:21:00]requested_item shift.open_date is exist - process it [11:21:00]req_shift_open_date [11:21:00]req_shift_open_date done [11:21:00]produce_requested_data done [11:21:00]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201397,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:21:00]process_action_free close_receipt [11:21:00]json_value_free [11:21:00]json_value_free done [11:21:00]process_json_proto returns [11:21:00]Send response to host [11:21:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201397,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:21:00]free response buf [11:21:00]execute_script done [11:21:00]execute_script returns [11:21:00]free content buf [11:21:00]Sock 7.Close socket [11:21:00]Sock 7.Thread stoped [11:21:01]accept exits with 9 [11:21:01]New connection [11:21:01]New thread 3066498404 created [11:21:01]Thread 3066641764 joined [11:21:01]Waiting for new connection... [11:21:01] Sock 9.Parse request [11:21:01]Sock 9.Check first char [11:21:01]Sock 9.First char is OK [11:21:01]request: POST /json_proto HTTP/1.0 [11:21:01]Method: POST [11:21:01]URL: /json_proto [11:21:01]Method is POST - this is cgi request [11:21:01]url: /json_proto [11:21:01]query_string will be loaded in cgi processing [11:21:01]execute_cgi json_proto POST (null) [11:21:01]execute_cgi path=json_proto method=POST [11:21:01]POST find Content-Length [11:21:01]Host: 172.17.63.195:8080 [11:21:01]Content-Length: 762 [11:21:01]Content-Type: application/json [11:21:01] [11:21:01]POST finish read [11:21:01]Found Content-Length = 762 [11:21:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.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: Mbank", "payments": [ { "type": 1, "sum" : 2000.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:01]execute_script... [11:21: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)449146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.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: Mbank", "payments": [ { "type": 1, "sum" : 2000.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:01]POST & json_proto [11:21:01]process_json_proto [11:21:01]json parsed OK: [11:21:01]protocol is kg_v1.0 [11:21:01]action value=close_receipt [11:21:01]process_action close_receipt [11:21:01]cmd_close_receipt [11:21:01]MH_GetDate [11:21:01]Write to MH i2c: F0 00 00 71 07 67 [11:21:01]Write i2c OK [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: F0 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: F0 09 00 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: F0 09 00 71 07 00 9D D0 1C 67 68 46 19 67 8E [11:21:01]GetLastDocTimeStamp 1729941657 [11:21:01]current date 1729941661 [11:21:01]FM_GetShiftState [11:21:01]SAM_PROTO_GetShiftState [11:21:01]wFMCommunicate request_size=4 [11:21:01]MH_SAM_APDU [11:21:01]CAPDU: 80 13 01 00 [11:21:01]Write to MH i2c: E2 08 00 72 07 80 13 01 00 00 00 00 00 F6 [11:21:01]Write i2c OK [11:21:01]MH_I2C_Read... [11:21:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:01]Read from MH i2c: E2 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 0E 00 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 0E 00 72 07 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 05 [11:21:01]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:21:01]wFMCommunicate OK [11:21:01]SAM_PROTO_GetShiftState done [11:21:01]FM_GetShiftState done [11:21:01]opened in 1729900879 [11:21:01]opened+sec_in_day 1729987279 [11:21:01]quantity*price = 200001 [11:21:01]sum+1 = 200003 [11:21:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.02 НСП 1% : 17.70 НДС 12% : 212.39 Наличными: 0.00 Безнал.: 2000.02 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 160 26.10.2024 11:21 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201398 ФПД: 181802491499263 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112101&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201398&fm=181802491499263&tin=02508201610067®Number=0000000000091777&sum=200002 [11:21:02]StoreToDocumentArchive [11:21:02]shift 543 fd 201398 [11:21:02]save to /storage/0543/doc_00201398 [11:21:02]save last doc name /storage/0543/doc_00201398 to /storage/kkm_last_doc_name [11:21:02]save OK [11:21:02]Clear old archive folders... [11:21:02]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:21:02]tlvbuf is 01789DC0 [11:21:02]SAM_PROTO_ClearQueue [11:21:02]wFMCommunicate request_size=4 [11:21:02]MH_SAM_APDU [11:21:02]CAPDU: 80 09 00 00 [11:21:02]Write to MH i2c: E2 08 00 7F 07 80 09 00 00 00 00 00 00 F8 [11:21:02]Write i2c OK [11:21:02]MH_I2C_Read... [11:21:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:02]Read from MH i2c: E2 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: E2 03 00 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: E2 03 00 7F 07 00 90 00 FA [11:21:02]RAPDU: 90 00 [11:21:02]wFMCommunicate OK [11:21:02]SAM_PROTO_ClearQueue done [11:21:02]KKMCreateOFDPacket [11:21:02]OFDProtocolAddRootSTLVToBuf [11:21:02]FM_MakeSignedData [11:21:02]FM_MakeSignedData [11:21:02]SAM_PROTO_SignData [11:21:02]wFMCommunicate request_size=4 [11:21:02]MH_SAM_APDU [11:21:02]CAPDU: 80 0D 01 02 [11:21:02]Write to MH i2c: E2 08 00 80 07 80 0D 01 02 00 00 00 00 00 [11:21:02]Write i2c OK [11:21:02]MH_I2C_Read... [11:21:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:02]Read from MH i2c: E2 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: E2 03 00 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: E2 03 00 80 07 00 90 00 FB [11:21:02]RAPDU: 90 00 [11:21:02]wFMCommunicate OK [11:21:02]wFMCommunicate request_size=255 [11:21:02]MH_SAM_APDU [11:21:02]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 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 9D D0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B6 12 03 00 35 04 06 00 [11:21:02]Write to MH i2c: E2 02 01 81 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 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 9D D0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B6 12 03 00 35 04 06 00 00 00 D6 [11:21:02]Write i2c OK [11:21:02]MH_I2C_Read... [11:21:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:03]Read from MH i2c: E2 [11:21:03]MH_I2C_Read... [11:21:03]Read from MH i2c: E2 03 00 [11:21:03]MH_I2C_Read... [11:21:03]Read from MH i2c: E2 03 00 81 07 00 90 00 FC [11:21:03]RAPDU: 90 00 [11:21:03]wFMCommunicate OK [11:21:03]wFMCommunicate request_size=11 [11:21:03]MH_SAM_APDU [11:21:03]CAPDU: 80 0D 02 02 06 A5 59 30 EC D2 FF [11:21:03]Write to MH i2c: E2 0E 00 82 07 80 0D 02 02 06 00 A5 59 30 EC D2 FF 00 00 FA [11:21:03]Write i2c OK [11:21:03]MH_I2C_Read... [11:21:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:03]Read from MH i2c: E2 [11:21:03]MH_I2C_Read... [11:21:03]Read from MH i2c: E2 03 00 [11:21:03]MH_I2C_Read... [11:21:03]Read from MH i2c: E2 03 00 82 07 00 90 00 FD [11:21:03]RAPDU: 90 00 [11:21:03]wFMCommunicate OK [11:21:03]wFMCommunicate request_size=4 [11:21:03]MH_SAM_APDU [11:21:03]CAPDU: 80 0D 03 02 [11:21:03]Write to MH i2c: E2 08 00 83 07 80 0D 03 02 00 00 00 00 05 [11:21:03]Write i2c OK [11:21:03]MH_I2C_Read... [11:21:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:03]Read from MH i2c: E2 [11:21:03]MH_I2C_Read... [11:21:03]Read from MH i2c: E2 0B 00 [11:21:03]MH_I2C_Read... [11:21:03]Read from MH i2c: E2 0B 00 83 07 00 D5 53 35 85 9D 5D 6B 64 90 00 B1 [11:21:03]RAPDU: D5 53 35 85 9D 5D 6B 64 90 00 [11:21:03]wFMCommunicate OK [11:21:03]SAM_PROTO_SignData done [11:21:03]FM_MakeSignedData done [11:21:03]CreateOFDProtocolMessage [11:21:03]wFMCommunicate request_size=4 [11:21:03]MH_SAM_APDU [11:21:03]CAPDU: 80 11 00 00 [11:21:03]Write to MH i2c: E2 08 00 84 07 80 11 00 00 00 00 00 00 05 [11:21:03]Write i2c OK [11:21:03]MH_I2C_Read... [11:21:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:03]Read from MH i2c: E2 [11:21:03]MH_I2C_Read... [11:21:03]Read from MH i2c: E2 17 00 [11:21:03]MH_I2C_Read... [11:21:03]Read from MH i2c: E2 17 00 84 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5A [11:21:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:21:03]wFMCommunicate OK [11:21:03]CreateOFDProtocolMessage done [11:21:03]OFDSenderStorePacket 201398 [11:21:03]StoreOFDPacket docnum=201398 [11:21:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 40 1E 08 01 26 9C 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 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 9D D0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B6 12 03 00 35 04 06 00 A5 59 30 EC D2 FF D5 53 35 85 9D 5D 6B 64 [11:21:03]CheckFolder [11:21:03]dirname=/storage/ofd_packets [11:21:03]CheckFolder done [11:21:03]ProducePacketName [11:21:03]name=ofd_packets/00201398 [11:21:03]NVStorageSaveData ofd_packets/00201398 [11:21:03]File name is /storage/ofd_packets/00201398 [11:21:03]Write 302 bytes [11:21:03]NVStorageSaveData done [11:21:03]OFDSenderStorePacket done [11:21:03]KKMCreateOFDPacket done [11:21:03]NVStorageSaveData kkm_last_timestamp [11:21:03]File name is /storage/kkm_last_timestamp [11:21:03]Write 4 bytes [11:21:03]NVStorageSaveData done [11:21:03]ExternCall_PrintAddStr [11:21:03]wPrintStart [11:21:03]Write to MH i2c: 01 00 00 85 07 8C [11:21:03]Write i2c OK [11:21:03]MH_I2C_Read... [11:21:03]Read from MH i2c: 01 [11:21:03]MH_I2C_Read... [11:21:03]Read from MH i2c: 01 07 00 [11:21:03]MH_I2C_Read... [11:21:03]Read from MH i2c: 01 07 00 85 07 00 00 00 00 00 FF 0F A1 [11:21:03]RasterBufferAndPrint [11:21:03]line Счет N : (1)449146 [11:21:03]line ИНН: 02508201610067 [11:21:03]line Контрольно-Кассовый Чек [11:21:03]line ПРОДАЖА [11:21:03]line ТРК (МРК, ГНК) : 42 [11:21:03]line Товар: 2710124130 [11:21:03]line SUPER 92-К-5 [11:21:03]line 29.240 * 68.40 [11:21:03]line = 2000.02 [11:21:03]line НДС 12% НСП 1% [11:21:03]line > о реализуемом товаре [11:21:03]line ИТОГО: 2000.02 [11:21:03]line НСП 1% : 17.70 [11:21:03]line НДС 12% : 212.39 [11:21:03]line Наличными: 0.00 [11:21:03]line Безнал.: 2000.02 [11:21:03]line Место: АЗС № 171 "Партнер Нефть" [11:21:03]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:21:03]line СНО: Общий режим [11:21:03]line Чек 160 26.10.2024 11:21 [11:21:03]line Смена: 543 ФФД: 1.0 [11:21:03]line ЗНМ: 0300000109 [11:21:03]line РНМ: 0000000000091777 [11:21:03]line Версия ККМ: 001 [11:21:03]line Платежная система: Mbank [11:21:03]line ФМ: 0000000000871756 [11:21:03]line ФД: 201398 [11:21:03]line ФПД: 181802491499263 [11:21:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112101&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201398&fm=181802491499263&tin=02508201610067®Number=0000000000091777&sum=200002 [11:21:03]written 0, free lines is 4095 [11:21:03]OFD Sender: Processing packet 201398 [packets to send 112, broken 111] [11:21:03]ProducePacketName [11:21:03]name=ofd_packets/00201398 [11:21:03]OFD Sender: To server: pG, [11:21:03]CommunicateWithHost lk.salyk.kg:30040 [11:21:03]ConnectInit lk.salyk.kg [11:21:03]Connected sock=10 [11:21:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 40 1E 08 01 26 9C 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 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 9D D0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B6 12 03 00 35 04 06 00 A5 59 30 EC D2 FF D5 53 35 85 9D 5D 6B 64 [11:21:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 23 58 47 00 1C 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B6 12 03 00 F4 03 04 00 47 7C 1C 67 B6 04 01 00 00 2F AF BE 40 F5 18 0F F2 [11:21:04]CommunicateWithHost err = 0 [11:21:04]CheckOFDResponse [11:21:04]1017 (14) - 77093643461234 [11:21:04]1041 (16) - 0000000000871756 [11:21:04]1040 (4) - 201398 [11:21:04]1012 (4) - 26.10.2024 05:21 [11:21:04]1206 (1) - 0 [11:21:04]OFD Sender: Remove packet 201398 [11:21:04]ProducePacketName [11:21:04]name=ofd_packets/00201398 [11:21:04]NVStorageDeleteData [11:21:04]Write to MH i2c: 01 00 00 AE 07 B5 [11:21:04]Write i2c OK [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: 01 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: 01 07 00 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: 01 07 00 AE 07 00 00 00 00 00 D3 0C 9B [11:21:04]RasterBufferAndPrint [11:21:04]line [11:21:04]line [11:21:04]line [11:21:04]line [11:21:04]line [11:21:04]written 0, free lines is 3297 [11:21:04]MH_Cut [11:21:04]Write to MH i2c: D1 01 00 B5 07 01 8E [11:21:04]Write i2c OK [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: D1 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: D1 01 00 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: D1 01 00 B5 07 00 8D [11:21:04]Write to MH i2c: 01 00 00 B6 07 BD [11:21:04]Write i2c OK [11:21:04]MH_I2C_Read... [11:21:04]OFD Sender: No OFD packet to send [11:21:04]*** Cut start [11:21:04]*** Purtial cut [11:21:04]*** Stage 1: CUTSNS_PIN = 1 [11:21:05]Read from MH i2c: 01 [11:21:05]MH_I2C_Read... [11:21:05]*** Stop cut motor [11:21:05]*** Cut end [11:21:05]Read from MH i2c: 01 07 00 [11:21:05]MH_I2C_Read... [11:21:05]Read from MH i2c: 01 07 00 B6 07 00 00 00 00 00 FF 0F D2 [11:21:05]process_action close_receipt done [11:21:05]requested_data is exist [11:21:05]produce_requested_data [11:21:05]requested_item fm.sn is exist - process it [11:21:05]wFMCommunicate request_size=4 [11:21:05]MH_SAM_APDU [11:21:05]CAPDU: 80 11 00 00 [11:21:05]Write to MH i2c: E2 08 00 B7 07 80 11 00 00 00 00 00 00 38 [11:21:05]Write i2c OK [11:21:05]MH_I2C_Read... [11:21:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:05]Read from MH i2c: E2 [11:21:05]MH_I2C_Read... [11:21:05]Read from MH i2c: E2 17 00 [11:21:05]MH_I2C_Read... [11:21:05]Read from MH i2c: E2 17 00 B7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8D [11:21:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:21:05]wFMCommunicate OK [11:21:05]requested_item fd.num is exist - process it [11:21:05]SAM_PROTO_GetFieldsCounters [11:21:05]wFMCommunicate request_size=4 [11:21:05]MH_SAM_APDU [11:21:05]CAPDU: 80 13 00 00 [11:21:05]Write to MH i2c: E2 08 00 B8 07 80 13 00 00 00 00 00 00 3B [11:21:05]Write i2c OK [11:21:05]MH_I2C_Read... [11:21:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:05]Read from MH i2c: E2 [11:21:05]MH_I2C_Read... [11:21:05]Read from MH i2c: E2 62 00 [11:21:05]MH_I2C_Read... [11:21:05]Read from MH i2c: E2 62 00 B8 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B6 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [11:21:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B6 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:21:05]wFMCommunicate OK [11:21:05]SAM_PROTO_GetFieldsCounters done [11:21:05]requested_item shift.num is exist - process it [11:21:05]requested_item shift.opened is exist - process it [11:21:05]req_shift_opened [11:21:05]FM_GetShiftState [11:21:05]SAM_PROTO_GetShiftState [11:21:05]wFMCommunicate request_size=4 [11:21:05]MH_SAM_APDU [11:21:05]CAPDU: 80 13 01 00 [11:21:05]Write to MH i2c: E2 08 00 B9 07 80 13 01 00 00 00 00 00 3D [11:21:05]Write i2c OK [11:21:05]MH_I2C_Read... [11:21:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:05]Read from MH i2c: E2 [11:21:05]MH_I2C_Read... [11:21:05]Read from MH i2c: E2 0E 00 [11:21:05]MH_I2C_Read... [11:21:05]Read from MH i2c: E2 0E 00 B9 07 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 4C [11:21:05]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:21:05]wFMCommunicate OK [11:21:05]SAM_PROTO_GetShiftState done [11:21:05]FM_GetShiftState done [11:21:05]req_shift_opened done [11:21:05]requested_item shift.open_date is exist - process it [11:21:05]req_shift_open_date [11:21:05]req_shift_open_date done [11:21:05]produce_requested_data done [11:21:05]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201398,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:21:05]process_action_free close_receipt [11:21:05]json_value_free [11:21:05]json_value_free done [11:21:05]process_json_proto returns [11:21:05]Send response to host [11:21:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201398,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:21:05]free response buf [11:21:05]execute_script done [11:21:05]execute_script returns [11:21:05]free content buf [11:21:05]Sock 9.Close socket [11:21:05]Sock 9.Thread stoped [11:21:09]OFD Sender: No OFD packet to send [11:21:14]OFD Sender: No OFD packet to send [11:21:19]OFD Sender: No OFD packet to send [11:21:24]OFD Sender: No OFD packet to send [11:21:29]OFD Sender: No OFD packet to send [11:21:34]OFD Sender: No OFD packet to send [11:21:39]OFD Sender: No OFD packet to send [11:21:44]OFD Sender: No OFD packet to send [11:21:49]OFD Sender: No OFD packet to send [11:21:54]OFD Sender: No OFD packet to send [11:21:59]OFD Sender: No OFD packet to send [11:22:04]OFD Sender: No OFD packet to send [11:22:09]OFD Sender: No OFD packet to send [11:22:14]OFD Sender: No OFD packet to send [11:22:19]OFD Sender: No OFD packet to send [11:22:24]OFD Sender: No OFD packet to send [11:22:29]OFD Sender: No OFD packet to send [11:22:34]OFD Sender: No OFD packet to send [11:22:39]OFD Sender: No OFD packet to send [11:22:40]accept exits with 7 [11:22:40]New connection [11:22:40]New thread 3066641764 created [11:22:40]Thread 3066498404 joined [11:22:40]Waiting for new connection... [11:22:40] Sock 7.Parse request [11:22:40]Sock 7.Check first char [11:22:40]Sock 7.First char is OK [11:22:40]request: POST /json_proto HTTP/1.0 [11:22:40]Method: POST [11:22:40]URL: /json_proto [11:22:40]Method is POST - this is cgi request [11:22:40]url: /json_proto [11:22:40]query_string will be loaded in cgi processing [11:22:40]execute_cgi json_proto POST (null) [11:22:40]execute_cgi path=json_proto method=POST [11:22:40]POST find Content-Length [11:22:40]Host: 172.17.63.195:8080 [11:22:40]Content-Length: 682 [11:22:40]Content-Type: application/json [11:22:40] [11:22:40]POST finish read [11:22:40]Found Content-Length = 682 [11:22:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:22:40]execute_script... [11:22:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:22:40]POST & json_proto [11:22:40]process_json_proto [11:22:40]json parsed OK: [11:22:40]protocol is kg_v1.0 [11:22:40]action value=close_receipt [11:22:40]process_action close_receipt [11:22:40]cmd_close_receipt [11:22:40]MH_GetDate [11:22:40]Write to MH i2c: F0 00 00 BA 07 B0 [11:22:40]Write i2c OK [11:22:40]MH_I2C_Read... [11:22:40]Read from MH i2c: F0 [11:22:40]MH_I2C_Read... [11:22:40]Read from MH i2c: F0 09 00 [11:22:40]MH_I2C_Read... [11:22:40]Read from MH i2c: F0 09 00 BA 07 00 01 D1 1C 67 68 46 19 67 3C [11:22:40]GetLastDocTimeStamp 1729941661 [11:22:40]current date 1729941761 [11:22:40]FM_GetShiftState [11:22:40]SAM_PROTO_GetShiftState [11:22:40]wFMCommunicate request_size=4 [11:22:40]MH_SAM_APDU [11:22:40]CAPDU: 80 13 01 00 [11:22:40]Write to MH i2c: E2 08 00 BB 07 80 13 01 00 00 00 00 00 3F [11:22:40]Write i2c OK [11:22:40]MH_I2C_Read... [11:22:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:40]Read from MH i2c: E2 [11:22:40]MH_I2C_Read... [11:22:40]Read from MH i2c: E2 0E 00 [11:22:40]MH_I2C_Read... [11:22:40]Read from MH i2c: E2 0E 00 BB 07 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 4E [11:22:40]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:22:40]wFMCommunicate OK [11:22:40]SAM_PROTO_GetShiftState done [11:22:40]FM_GetShiftState done [11:22:40]opened in 1729900879 [11:22:40]opened+sec_in_day 1729987279 [11:22:40]quantity*price = 100015 [11:22:40]sum+1 = 100017 [11:22:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 161 26.10.2024 11:22 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201399 ФПД: 253024165775236 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112241&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201399&fm=253024165775236&tin=02508201610067®Number=0000000000091777&sum=100000 [11:22:41]StoreToDocumentArchive [11:22:41]shift 543 fd 201399 [11:22:41]save to /storage/0543/doc_00201399 [11:22:41]save last doc name /storage/0543/doc_00201399 to /storage/kkm_last_doc_name [11:22:41]save OK [11:22:41]Clear old archive folders... [11:22:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:22:41]tlvbuf is 0181D3B0 [11:22:41]SAM_PROTO_ClearQueue [11:22:41]wFMCommunicate request_size=4 [11:22:41]MH_SAM_APDU [11:22:41]CAPDU: 80 09 00 00 [11:22:41]Write to MH i2c: E2 08 00 C8 07 80 09 00 00 00 00 00 00 41 [11:22:41]Write i2c OK [11:22:41]MH_I2C_Read... [11:22:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:42]Read from MH i2c: E2 [11:22:42]MH_I2C_Read... [11:22:42]Read from MH i2c: E2 03 00 [11:22:42]MH_I2C_Read... [11:22:42]Read from MH i2c: E2 03 00 C8 07 00 90 00 43 [11:22:42]RAPDU: 90 00 [11:22:42]wFMCommunicate OK [11:22:42]SAM_PROTO_ClearQueue done [11:22:42]KKMCreateOFDPacket [11:22:42]OFDProtocolAddRootSTLVToBuf [11:22:42]FM_MakeSignedData [11:22:42]FM_MakeSignedData [11:22:42]SAM_PROTO_SignData [11:22:42]wFMCommunicate request_size=4 [11:22:42]MH_SAM_APDU [11:22:42]CAPDU: 80 0D 01 02 [11:22:42]Write to MH i2c: E2 08 00 C9 07 80 0D 01 02 00 00 00 00 49 [11:22:42]Write i2c OK [11:22:42]MH_I2C_Read... [11:22:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:42]Read from MH i2c: E2 [11:22:42]MH_I2C_Read... [11:22:42]Read from MH i2c: E2 03 00 [11:22:42]MH_I2C_Read... [11:22:42]Read from MH i2c: E2 03 00 C9 07 00 90 00 44 [11:22:42]RAPDU: 90 00 [11:22:42]wFMCommunicate OK [11:22:42]wFMCommunicate request_size=255 [11:22:42]MH_SAM_APDU [11:22:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A1 00 00 00 F4 03 04 00 01 D1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B7 12 03 00 35 04 06 00 E6 [11:22:42]Write to MH i2c: E2 02 01 CA 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 32 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 A1 00 00 00 F4 03 04 00 01 D1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B7 12 03 00 35 04 06 00 E6 00 00 A0 [11:22:42]Write i2c OK [11:22:42]MH_I2C_Read... [11:22:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:42]Read from MH i2c: E2 [11:22:42]MH_I2C_Read... [11:22:42]Read from MH i2c: E2 03 00 [11:22:42]MH_I2C_Read... [11:22:42]Read from MH i2c: E2 03 00 CA 07 00 90 00 45 [11:22:42]RAPDU: 90 00 [11:22:42]wFMCommunicate OK [11:22:42]wFMCommunicate request_size=10 [11:22:42]MH_SAM_APDU [11:22:42]CAPDU: 80 0D 02 02 05 1F C7 85 47 84 [11:22:42]Write to MH i2c: E2 0D 00 CB 07 80 0D 02 02 05 00 1F C7 85 47 84 00 00 8C [11:22:42]Write i2c OK [11:22:42]MH_I2C_Read... [11:22:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:42]Read from MH i2c: E2 [11:22:42]MH_I2C_Read... [11:22:42]Read from MH i2c: E2 03 00 [11:22:42]MH_I2C_Read... [11:22:42]Read from MH i2c: E2 03 00 CB 07 00 90 00 46 [11:22:42]RAPDU: 90 00 [11:22:42]wFMCommunicate OK [11:22:42]wFMCommunicate request_size=4 [11:22:42]MH_SAM_APDU [11:22:42]CAPDU: 80 0D 03 02 [11:22:42]Write to MH i2c: E2 08 00 CC 07 80 0D 03 02 00 00 00 00 4E [11:22:42]Write i2c OK [11:22:42]MH_I2C_Read... [11:22:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:42]Read from MH i2c: E2 [11:22:42]MH_I2C_Read... [11:22:42]Read from MH i2c: E2 0B 00 [11:22:42]MH_I2C_Read... [11:22:42]Read from MH i2c: E2 0B 00 CC 07 00 22 26 0D 54 06 9C 26 83 90 00 43 [11:22:42]RAPDU: 22 26 0D 54 06 9C 26 83 90 00 [11:22:42]wFMCommunicate OK [11:22:42]SAM_PROTO_SignData done [11:22:42]FM_MakeSignedData done [11:22:42]CreateOFDProtocolMessage [11:22:42]wFMCommunicate request_size=4 [11:22:42]MH_SAM_APDU [11:22:42]CAPDU: 80 11 00 00 [11:22:42]Write to MH i2c: E2 08 00 CD 07 80 11 00 00 00 00 00 00 4E [11:22:42]Write i2c OK [11:22:42]MH_I2C_Read... [11:22:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:42]Read from MH i2c: E2 [11:22:42]MH_I2C_Read... [11:22:42]Read from MH i2c: E2 17 00 [11:22:42]MH_I2C_Read... [11:22:42]Read from MH i2c: E2 17 00 CD 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A3 [11:22:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:22:42]wFMCommunicate OK [11:22:42]CreateOFDProtocolMessage done [11:22:42]OFDSenderStorePacket 201399 [11:22:42]StoreOFDPacket docnum=201399 [11:22:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A5 14 07 01 70 52 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 32 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 A1 00 00 00 F4 03 04 00 01 D1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B7 12 03 00 35 04 06 00 E6 1F C7 85 47 84 22 26 0D 54 06 9C 26 83 [11:22:42]CheckFolder [11:22:42]dirname=/storage/ofd_packets [11:22:42]CheckFolder done [11:22:42]ProducePacketName [11:22:42]name=ofd_packets/00201399 [11:22:42]NVStorageSaveData ofd_packets/00201399 [11:22:42]File name is /storage/ofd_packets/00201399 [11:22:42]Write 301 bytes [11:22:42]NVStorageSaveData done [11:22:42]OFDSenderStorePacket done [11:22:42]KKMCreateOFDPacket done [11:22:42]NVStorageSaveData kkm_last_timestamp [11:22:42]File name is /storage/kkm_last_timestamp [11:22:42]Write 4 bytes [11:22:42]NVStorageSaveData done [11:22:42]ExternCall_PrintAddStr [11:22:42]wPrintStart [11:22:42]Write to MH i2c: 01 00 00 CE 07 D5 [11:22:42]Write i2c OK [11:22:42]MH_I2C_Read... [11:22:42]Read from MH i2c: 01 [11:22:42]MH_I2C_Read... [11:22:42]Read from MH i2c: 01 07 00 [11:22:42]MH_I2C_Read... [11:22:42]Read from MH i2c: 01 07 00 CE 07 00 00 00 00 00 FF 0F EA [11:22:42]RasterBufferAndPrint [11:22:42]line Счет N : (1)449148 [11:22:42]line ИНН: 02508201610067 [11:22:42]line Контрольно-Кассовый Чек [11:22:42]line ПРОДАЖА [11:22:42]line ТРК (МРК, ГНК) : 31 [11:22:42]line Товар: 2710124130 [11:22:42]line Аи-92-К-2 [11:22:42]line 14.950 * 66.90 [11:22:42]line = 1000.16 [11:22:42]line НДС 12% НСП 1% [11:22:42]line > о реализуемом товаре [11:22:42]line ОКРУГЛЕНИЕ: -0.16 [11:22:42]line ИТОГО: 1000.00 [11:22:42]line Внесено: 1000.00 [11:22:42]line СДАЧА: 0.00 [11:22:42]line НСП 1% : 8.85 [11:22:42]line НДС 12% : 106.21 [11:22:42]line Наличными: 1000.00 [11:22:42]line Безнал.: 0.00 [11:22:42]line Место: АЗС № 171 "Партнер Нефть" [11:22:42]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:22:42]line СНО: Общий режим [11:22:42]line Чек 161 26.10.2024 11:22 [11:22:42]line Смена: 543 ФФД: 1.0 [11:22:42]line ЗНМ: 0300000109 [11:22:42]line РНМ: 0000000000091777 [11:22:42]line Версия ККМ: 001 [11:22:42]line ФМ: 0000000000871756 [11:22:42]line ФД: 201399 [11:22:42]line ФПД: 253024165775236 [11:22:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112241&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201399&fm=253024165775236&tin=02508201610067®Number=0000000000091777&sum=100000 [11:22:42]OFD Sender: Processing packet 201399 [packets to send 112, broken 111] [11:22:42]ProducePacketName [11:22:42]name=ofd_packets/00201399 [11:22:42]OFD Sender: To server: pG, [11:22:42]CommunicateWithHost lk.salyk.kg:30040 [11:22:42]ConnectInit lk.salyk.kg [11:22:42]written 0, free lines is 4095 [11:22:42]Connected sock=10 [11:22:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A5 14 07 01 70 52 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 32 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 A1 00 00 00 F4 03 04 00 01 D1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B7 12 03 00 35 04 06 00 E6 1F C7 85 47 84 22 26 0D 54 06 9C 26 83 [11:22:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 52 75 47 00 50 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B7 12 03 00 F4 03 04 00 AA 7C 1C 67 B6 04 01 00 00 A3 87 94 F8 9F F3 81 E5 [11:22:43]CommunicateWithHost err = 0 [11:22:43]CheckOFDResponse [11:22:43]1017 (14) - 77093643461234 [11:22:43]1041 (16) - 0000000000871756 [11:22:43]1040 (4) - 201399 [11:22:43]1012 (4) - 26.10.2024 05:22 [11:22:43]1206 (1) - 0 [11:22:43]OFD Sender: Remove packet 201399 [11:22:43]ProducePacketName [11:22:43]name=ofd_packets/00201399 [11:22:43]NVStorageDeleteData [11:22:43]Write to MH i2c: 01 00 00 F9 07 00 [11:22:43]Write i2c OK [11:22:43]MH_I2C_Read... [11:22:43]Read from MH i2c: 01 [11:22:43]MH_I2C_Read... [11:22:43]Read from MH i2c: 01 07 00 [11:22:43]MH_I2C_Read... [11:22:43]Read from MH i2c: 01 07 00 F9 07 00 00 00 00 00 A3 0C B6 [11:22:43]RasterBufferAndPrint [11:22:43]line [11:22:43]line [11:22:43]line [11:22:43]line [11:22:43]line [11:22:43]written 0, free lines is 3239 [11:22:43]MH_Cut [11:22:43]Write to MH i2c: D1 01 00 00 08 01 DA [11:22:43]Write i2c OK [11:22:43]MH_I2C_Read... [11:22:43]Read from MH i2c: D1 [11:22:43]MH_I2C_Read... [11:22:43]Read from MH i2c: D1 01 00 [11:22:43]MH_I2C_Read... [11:22:43]Read from MH i2c: D1 01 00 00 08 00 D9 [11:22:43]Write to MH i2c: 01 00 00 01 08 09 [11:22:43]Write i2c OK [11:22:43]MH_I2C_Read... [11:22:43]OFD Sender: No OFD packet to send [11:22:44]*** Cut start [11:22:44]*** Purtial cut [11:22:44]*** Stage 1: CUTSNS_PIN = 1 [11:22:44]Read from MH i2c: 01 [11:22:44]MH_I2C_Read... [11:22:44]*** Stop cut motor [11:22:44]*** Cut end [11:22:44]Read from MH i2c: 01 07 00 [11:22:44]MH_I2C_Read... [11:22:44]Read from MH i2c: 01 07 00 01 08 00 00 00 00 00 FF 0F 1E [11:22:44]process_action close_receipt done [11:22:44]requested_data is exist [11:22:44]produce_requested_data [11:22:44]requested_item fm.sn is exist - process it [11:22:44]wFMCommunicate request_size=4 [11:22:44]MH_SAM_APDU [11:22:44]CAPDU: 80 11 00 00 [11:22:44]Write to MH i2c: E2 08 00 02 08 80 11 00 00 00 00 00 00 84 [11:22:44]Write i2c OK [11:22:44]MH_I2C_Read... [11:22:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:44]Read from MH i2c: E2 [11:22:44]MH_I2C_Read... [11:22:44]Read from MH i2c: E2 17 00 [11:22:44]MH_I2C_Read... [11:22:44]Read from MH i2c: E2 17 00 02 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D9 [11:22:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:22:44]wFMCommunicate OK [11:22:44]requested_item fd.num is exist - process it [11:22:44]SAM_PROTO_GetFieldsCounters [11:22:44]wFMCommunicate request_size=4 [11:22:44]MH_SAM_APDU [11:22:44]CAPDU: 80 13 00 00 [11:22:44]Write to MH i2c: E2 08 00 03 08 80 13 00 00 00 00 00 00 87 [11:22:44]Write i2c OK [11:22:44]MH_I2C_Read... [11:22:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:44]Read from MH i2c: E2 [11:22:44]MH_I2C_Read... [11:22:44]Read from MH i2c: E2 62 00 [11:22:44]MH_I2C_Read... [11:22:44]Read from MH i2c: E2 62 00 03 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B7 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [11:22:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B7 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:22:44]wFMCommunicate OK [11:22:44]SAM_PROTO_GetFieldsCounters done [11:22:44]requested_item shift.num is exist - process it [11:22:44]requested_item shift.opened is exist - process it [11:22:44]req_shift_opened [11:22:44]FM_GetShiftState [11:22:44]SAM_PROTO_GetShiftState [11:22:44]wFMCommunicate request_size=4 [11:22:44]MH_SAM_APDU [11:22:44]CAPDU: 80 13 01 00 [11:22:44]Write to MH i2c: E2 08 00 04 08 80 13 01 00 00 00 00 00 89 [11:22:44]Write i2c OK [11:22:44]MH_I2C_Read... [11:22:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:44]Read from MH i2c: E2 [11:22:44]MH_I2C_Read... [11:22:44]Read from MH i2c: E2 0E 00 [11:22:44]MH_I2C_Read... [11:22:44]Read from MH i2c: E2 0E 00 04 08 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 98 [11:22:44]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:22:44]wFMCommunicate OK [11:22:44]SAM_PROTO_GetShiftState done [11:22:44]FM_GetShiftState done [11:22:44]req_shift_opened done [11:22:44]requested_item shift.open_date is exist - process it [11:22:44]req_shift_open_date [11:22:44]req_shift_open_date done [11:22:44]produce_requested_data done [11:22:44]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201399,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:22:44]process_action_free close_receipt [11:22:44]json_value_free [11:22:44]json_value_free done [11:22:44]process_json_proto returns [11:22:44]Send response to host [11:22:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201399,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:22:44]free response buf [11:22:44]execute_script done [11:22:44]execute_script returns [11:22:44]free content buf [11:22:44]Sock 7.Close socket [11:22:44]Sock 7.Thread stoped [11:22:48]OFD Sender: No OFD packet to send [11:22:53]OFD Sender: No OFD packet to send [11:22:58]OFD Sender: No OFD packet to send [11:23:03]OFD Sender: No OFD packet to send [11:23:08]OFD Sender: No OFD packet to send [11:23:13]OFD Sender: No OFD packet to send [11:23:18]OFD Sender: No OFD packet to send [11:23:23]OFD Sender: No OFD packet to send [11:23:28]OFD Sender: No OFD packet to send [11:23:33]OFD Sender: No OFD packet to send [11:23:38]OFD Sender: No OFD packet to send [11:23:39]accept exits with 9 [11:23:39]New connection [11:23:39]New thread 3066498404 created [11:23:39]Thread 3066641764 joined [11:23:39]Waiting for new connection... [11:23:39] Sock 9.Parse request [11:23:39]Sock 9.Check first char [11:23:39]Sock 9.First char is OK [11:23:39]request: POST /json_proto HTTP/1.0 [11:23:39]Method: POST [11:23:39]URL: /json_proto [11:23:39]Method is POST - this is cgi request [11:23:39]url: /json_proto [11:23:39]query_string will be loaded in cgi processing [11:23:39]execute_cgi json_proto POST (null) [11:23:39]execute_cgi path=json_proto method=POST [11:23:39]POST find Content-Length [11:23:39]Host: 172.17.63.195:8080 [11:23:39]Content-Length: 764 [11:23:39]Content-Type: application/json [11:23:39] [11:23:39]POST finish read [11:23:39]Found Content-Length = 764 [11:23:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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: Mbank", "payments": [ { "type": 1, "sum" : 800.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:39]execute_script... [11:23:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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: Mbank", "payments": [ { "type": 1, "sum" : 800.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:39]POST & json_proto [11:23:39]process_json_proto [11:23:39]json parsed OK: [11:23:39]protocol is kg_v1.0 [11:23:39]action value=close_receipt [11:23:39]process_action close_receipt [11:23:39]cmd_close_receipt [11:23:39]MH_GetDate [11:23:39]Write to MH i2c: F0 00 00 05 08 FC [11:23:39]Write i2c OK [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: F0 [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: F0 09 00 [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: F0 09 00 05 08 00 3B D1 1C 67 68 46 19 67 C2 [11:23:39]GetLastDocTimeStamp 1729941761 [11:23:39]current date 1729941819 [11:23:39]FM_GetShiftState [11:23:39]SAM_PROTO_GetShiftState [11:23:39]wFMCommunicate request_size=4 [11:23:39]MH_SAM_APDU [11:23:39]CAPDU: 80 13 01 00 [11:23:39]Write to MH i2c: E2 08 00 06 08 80 13 01 00 00 00 00 00 8B [11:23:39]Write i2c OK [11:23:39]MH_I2C_Read... [11:23:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:39]Read from MH i2c: E2 [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: E2 0E 00 [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: E2 0E 00 06 08 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 9A [11:23:39]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:23:39]wFMCommunicate OK [11:23:39]SAM_PROTO_GetShiftState done [11:23:39]FM_GetShiftState done [11:23:39]opened in 1729900879 [11:23:39]opened+sec_in_day 1729987279 [11:23:39]quantity*price = 80010 [11:23:39]sum+1 = 80011 [11:23:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.10 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 0.00 Безнал.: 800.10 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 162 26.10.2024 11:23 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201400 ФПД: 57803692761553 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112339&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201400&fm=57803692761553&tin=02508201610067®Number=0000000000091777&sum=80010 [11:23:40]StoreToDocumentArchive [11:23:40]shift 543 fd 201400 [11:23:40]save to /storage/0543/doc_00201400 [11:23:40]save last doc name /storage/0543/doc_00201400 to /storage/kkm_last_doc_name [11:23:40]save OK [11:23:40]Clear old archive folders... [11:23:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:23:40]tlvbuf is B6E8E900 [11:23:40]SAM_PROTO_ClearQueue [11:23:40]wFMCommunicate request_size=4 [11:23:40]MH_SAM_APDU [11:23:40]CAPDU: 80 09 00 00 [11:23:40]Write to MH i2c: E2 08 00 13 08 80 09 00 00 00 00 00 00 8D [11:23:40]Write i2c OK [11:23:40]MH_I2C_Read... [11:23:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:40]Read from MH i2c: E2 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 03 00 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 03 00 13 08 00 90 00 8F [11:23:40]RAPDU: 90 00 [11:23:40]wFMCommunicate OK [11:23:40]SAM_PROTO_ClearQueue done [11:23:40]KKMCreateOFDPacket [11:23:40]OFDProtocolAddRootSTLVToBuf [11:23:40]FM_MakeSignedData [11:23:40]FM_MakeSignedData [11:23:40]SAM_PROTO_SignData [11:23:40]wFMCommunicate request_size=4 [11:23:40]MH_SAM_APDU [11:23:40]CAPDU: 80 0D 01 02 [11:23:40]Write to MH i2c: E2 08 00 14 08 80 0D 01 02 00 00 00 00 95 [11:23:40]Write i2c OK [11:23:40]MH_I2C_Read... [11:23:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:40]Read from MH i2c: E2 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 03 00 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 03 00 14 08 00 90 00 90 [11:23:40]RAPDU: 90 00 [11:23:40]wFMCommunicate OK [11:23:40]wFMCommunicate request_size=255 [11:23:40]MH_SAM_APDU [11:23:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 3B D1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B8 12 03 00 35 04 06 00 34 92 78 92 [11:23:40]Write to MH i2c: E2 02 01 15 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 3B D1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B8 12 03 00 35 04 06 00 34 92 78 92 00 00 55 [11:23:40]Write i2c OK [11:23:40]MH_I2C_Read... [11:23:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:41]Read from MH i2c: E2 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: E2 03 00 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: E2 03 00 15 08 00 90 00 91 [11:23:41]RAPDU: 90 00 [11:23:41]wFMCommunicate OK [11:23:41]wFMCommunicate request_size=7 [11:23:41]MH_SAM_APDU [11:23:41]CAPDU: 80 0D 02 02 02 E1 D1 [11:23:41]Write to MH i2c: E2 0A 00 16 08 80 0D 02 02 02 00 E1 D1 00 00 4E [11:23:41]Write i2c OK [11:23:41]MH_I2C_Read... [11:23:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:41]Read from MH i2c: E2 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: E2 03 00 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: E2 03 00 16 08 00 90 00 92 [11:23:41]RAPDU: 90 00 [11:23:41]wFMCommunicate OK [11:23:41]wFMCommunicate request_size=4 [11:23:41]MH_SAM_APDU [11:23:41]CAPDU: 80 0D 03 02 [11:23:41]Write to MH i2c: E2 08 00 17 08 80 0D 03 02 00 00 00 00 9A [11:23:41]Write i2c OK [11:23:41]MH_I2C_Read... [11:23:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:41]Read from MH i2c: E2 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: E2 0B 00 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: E2 0B 00 17 08 00 9A 57 1D 2B 9A DA 38 FF 90 00 7F [11:23:41]RAPDU: 9A 57 1D 2B 9A DA 38 FF 90 00 [11:23:41]wFMCommunicate OK [11:23:41]SAM_PROTO_SignData done [11:23:41]FM_MakeSignedData done [11:23:41]CreateOFDProtocolMessage [11:23:41]wFMCommunicate request_size=4 [11:23:41]MH_SAM_APDU [11:23:41]CAPDU: 80 11 00 00 [11:23:41]Write to MH i2c: E2 08 00 18 08 80 11 00 00 00 00 00 00 9A [11:23:41]Write i2c OK [11:23:41]MH_I2C_Read... [11:23:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:41]Read from MH i2c: E2 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: E2 17 00 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: E2 17 00 18 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EF [11:23:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:23:41]wFMCommunicate OK [11:23:41]CreateOFDProtocolMessage done [11:23:41]OFDSenderStorePacket 201400 [11:23:41]StoreOFDPacket docnum=201400 [11:23:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 FC 14 04 01 E4 7B 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 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 3B D1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B8 12 03 00 35 04 06 00 34 92 78 92 E1 D1 9A 57 1D 2B 9A DA 38 FF [11:23:41]CheckFolder [11:23:41]dirname=/storage/ofd_packets [11:23:41]CheckFolder done [11:23:41]ProducePacketName [11:23:41]name=ofd_packets/00201400 [11:23:41]NVStorageSaveData ofd_packets/00201400 [11:23:41]File name is /storage/ofd_packets/00201400 [11:23:41]Write 298 bytes [11:23:41]NVStorageSaveData done [11:23:41]OFDSenderStorePacket done [11:23:41]KKMCreateOFDPacket done [11:23:41]NVStorageSaveData kkm_last_timestamp [11:23:41]File name is /storage/kkm_last_timestamp [11:23:41]Write 4 bytes [11:23:41]NVStorageSaveData done [11:23:41]ExternCall_PrintAddStr [11:23:41]wPrintStart [11:23:41]Write to MH i2c: 01 00 00 19 08 21 [11:23:41]Write i2c OK [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: 01 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: 01 07 00 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: 01 07 00 19 08 00 00 00 00 00 FF 0F 36 [11:23:41]RasterBufferAndPrint [11:23:41]line Счет N : (1)449149 [11:23:41]line ИНН: 02508201610067 [11:23:41]line Контрольно-Кассовый Чек [11:23:41]line ПРОДАЖА [11:23:41]line ТРК (МРК, ГНК) : 43 [11:23:41]line Товар: 2710194210 [11:23:41]line ДТ-К-2 [11:23:41]line 10.500 * 76.20 [11:23:41]line = 800.10 [11:23:41]line НДС 12% НСП 1% [11:23:41]line > о реализуемом товаре [11:23:41]line ИТОГО: 800.10 [11:23:41]line НСП 1% : 7.08 [11:23:41]line НДС 12% : 84.97 [11:23:41]line Наличными: 0.00 [11:23:41]line Безнал.: 800.10 [11:23:41]line Место: АЗС № 171 "Партнер Нефть" [11:23:41]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:23:41]line СНО: Общий режим [11:23:41]line Чек 162 26.10.2024 11:23 [11:23:41]line Смена: 543 ФФД: 1.0 [11:23:41]line ЗНМ: 0300000109 [11:23:41]line РНМ: 0000000000091777 [11:23:41]line Версия ККМ: 001 [11:23:41]line Платежная система: Mbank [11:23:41]line ФМ: 0000000000871756 [11:23:41]line ФД: 201400 [11:23:41]line ФПД: 57803692761553 [11:23:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112339&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201400&fm=57803692761553&tin=02508201610067®Number=0000000000091777&sum=80010 [11:23:41]written 0, free lines is 4095 [11:23:41]OFD Sender: Processing packet 201400 [packets to send 112, broken 111] [11:23:41]ProducePacketName [11:23:41]name=ofd_packets/00201400 [11:23:41]OFD Sender: To server: pG, [11:23:41]CommunicateWithHost lk.salyk.kg:30040 [11:23:41]ConnectInit lk.salyk.kg [11:23:41]Connected sock=10 [11:23:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 FC 14 04 01 E4 7B 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 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 3B D1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B8 12 03 00 35 04 06 00 34 92 78 92 E1 D1 9A 57 1D 2B 9A DA 38 FF [11:23:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 89 97 47 00 39 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B8 12 03 00 F4 03 04 00 E4 7C 1C 67 B6 04 01 00 00 33 42 28 79 BC FE 01 8F [11:23:41]CommunicateWithHost err = 0 [11:23:41]CheckOFDResponse [11:23:41]1017 (14) - 77093643461234 [11:23:41]1041 (16) - 0000000000871756 [11:23:41]1040 (4) - 201400 [11:23:41]1012 (4) - 26.10.2024 05:23 [11:23:41]1206 (1) - 0 [11:23:41]OFD Sender: Remove packet 201400 [11:23:41]ProducePacketName [11:23:41]name=ofd_packets/00201400 [11:23:41]NVStorageDeleteData [11:23:41]Write to MH i2c: 01 00 00 42 08 4A [11:23:41]Write i2c OK [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: 01 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: 01 07 00 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: 01 07 00 42 08 00 00 00 00 00 C8 0C 25 [11:23:41]RasterBufferAndPrint [11:23:41]line [11:23:41]line [11:23:41]line [11:23:41]line [11:23:41]line [11:23:41]written 0, free lines is 3276 [11:23:41]MH_Cut [11:23:41]Write to MH i2c: D1 01 00 49 08 01 23 [11:23:41]Write i2c OK [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: D1 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: D1 01 00 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: D1 01 00 49 08 00 22 [11:23:41]Write to MH i2c: 01 00 00 4A 08 52 [11:23:41]Write i2c OK [11:23:41]MH_I2C_Read... [11:23:42]OFD Sender: No OFD packet to send [11:23:42]*** Cut start [11:23:42]*** Purtial cut [11:23:42]*** Stage 1: CUTSNS_PIN = 1 [11:23:42]Read from MH i2c: 01 [11:23:42]MH_I2C_Read... [11:23:42]*** Stop cut motor [11:23:42]*** Cut end [11:23:42]Read from MH i2c: 01 07 00 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: 01 07 00 4A 08 00 00 00 00 00 FF 0F 67 [11:23:42]process_action close_receipt done [11:23:42]requested_data is exist [11:23:42]produce_requested_data [11:23:42]requested_item fm.sn is exist - process it [11:23:42]wFMCommunicate request_size=4 [11:23:42]MH_SAM_APDU [11:23:42]CAPDU: 80 11 00 00 [11:23:42]Write to MH i2c: E2 08 00 4B 08 80 11 00 00 00 00 00 00 CD [11:23:42]Write i2c OK [11:23:42]MH_I2C_Read... [11:23:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:42]Read from MH i2c: E2 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 17 00 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 17 00 4B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 22 [11:23:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:23:42]wFMCommunicate OK [11:23:42]requested_item fd.num is exist - process it [11:23:42]SAM_PROTO_GetFieldsCounters [11:23:42]wFMCommunicate request_size=4 [11:23:42]MH_SAM_APDU [11:23:42]CAPDU: 80 13 00 00 [11:23:42]Write to MH i2c: E2 08 00 4C 08 80 13 00 00 00 00 00 00 D0 [11:23:42]Write i2c OK [11:23:42]MH_I2C_Read... [11:23:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:43]Read from MH i2c: E2 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: E2 62 00 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: E2 62 00 4C 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B8 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [11:23:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B8 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:43]wFMCommunicate OK [11:23:43]SAM_PROTO_GetFieldsCounters done [11:23:43]requested_item shift.num is exist - process it [11:23:43]requested_item shift.opened is exist - process it [11:23:43]req_shift_opened [11:23:43]FM_GetShiftState [11:23:43]SAM_PROTO_GetShiftState [11:23:43]wFMCommunicate request_size=4 [11:23:43]MH_SAM_APDU [11:23:43]CAPDU: 80 13 01 00 [11:23:43]Write to MH i2c: E2 08 00 4D 08 80 13 01 00 00 00 00 00 D2 [11:23:43]Write i2c OK [11:23:43]MH_I2C_Read... [11:23:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:43]Read from MH i2c: E2 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: E2 0E 00 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: E2 0E 00 4D 08 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E1 [11:23:43]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:23:43]wFMCommunicate OK [11:23:43]SAM_PROTO_GetShiftState done [11:23:43]FM_GetShiftState done [11:23:43]req_shift_opened done [11:23:43]requested_item shift.open_date is exist - process it [11:23:43]req_shift_open_date [11:23:43]req_shift_open_date done [11:23:43]produce_requested_data done [11:23:43]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201400,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:23:43]process_action_free close_receipt [11:23:43]json_value_free [11:23:43]json_value_free done [11:23:43]process_json_proto returns [11:23:43]Send response to host [11:23:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201400,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:23:43]free response buf [11:23:43]execute_script done [11:23:43]execute_script returns [11:23:43]free content buf [11:23:43]Sock 9.Close socket [11:23:43]Sock 9.Thread stoped [11:23:47]OFD Sender: No OFD packet to send [11:23:52]OFD Sender: No OFD packet to send [11:23:57]OFD Sender: No OFD packet to send [11:24:02]OFD Sender: No OFD packet to send [11:24:07]OFD Sender: No OFD packet to send [11:24:12]OFD Sender: No OFD packet to send [11:24:17]OFD Sender: No OFD packet to send [11:24:22]OFD Sender: No OFD packet to send [11:24:22]accept exits with 7 [11:24:22]New connection [11:24:22]New thread 3066641764 created [11:24:22]Thread 3066498404 joined [11:24:22]Waiting for new connection... [11:24:22] Sock 7.Parse request [11:24:22]Sock 7.Check first char [11:24:22]Sock 7.First char is OK [11:24:22]request: POST /json_proto HTTP/1.0 [11:24:22]Method: POST [11:24:22]URL: /json_proto [11:24:22]Method is POST - this is cgi request [11:24:22]url: /json_proto [11:24:22]query_string will be loaded in cgi processing [11:24:22]execute_cgi json_proto POST (null) [11:24:22]execute_cgi path=json_proto method=POST [11:24:22]POST find Content-Length [11:24:22]Host: 172.17.63.195:8080 [11:24:22]Content-Length: 678 [11:24:22]Content-Type: application/json [11:24:22] [11:24:22]POST finish read [11:24:22]Found Content-Length = 678 [11:24:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:22]execute_script... [11:24:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:22]POST & json_proto [11:24:22]process_json_proto [11:24:22]json parsed OK: [11:24:22]protocol is kg_v1.0 [11:24:22]action value=close_receipt [11:24:22]process_action close_receipt [11:24:22]cmd_close_receipt [11:24:22]MH_GetDate [11:24:22]Write to MH i2c: F0 00 00 4E 08 45 [11:24:22]Write i2c OK [11:24:22]MH_I2C_Read... [11:24:22]Read from MH i2c: F0 [11:24:22]MH_I2C_Read... [11:24:22]Read from MH i2c: F0 09 00 [11:24:22]MH_I2C_Read... [11:24:22]Read from MH i2c: F0 09 00 4E 08 00 66 D1 1C 67 68 46 19 67 36 [11:24:22]GetLastDocTimeStamp 1729941819 [11:24:22]current date 1729941862 [11:24:22]FM_GetShiftState [11:24:22]SAM_PROTO_GetShiftState [11:24:22]wFMCommunicate request_size=4 [11:24:22]MH_SAM_APDU [11:24:22]CAPDU: 80 13 01 00 [11:24:22]Write to MH i2c: E2 08 00 4F 08 80 13 01 00 00 00 00 00 D4 [11:24:22]Write i2c OK [11:24:22]MH_I2C_Read... [11:24:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:22]Read from MH i2c: E2 [11:24:22]MH_I2C_Read... [11:24:22]Read from MH i2c: E2 0E 00 [11:24:22]MH_I2C_Read... [11:24:22]Read from MH i2c: E2 0E 00 4F 08 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E3 [11:24:22]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:24:22]wFMCommunicate OK [11:24:22]SAM_PROTO_GetShiftState done [11:24:22]FM_GetShiftState done [11:24:22]opened in 1729900879 [11:24:22]opened+sec_in_day 1729987279 [11:24:22]quantity*price = 80012 [11:24:22]sum+1 = 80013 [11:24:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 163 26.10.2024 11:24 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201401 ФПД: 77624801140399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112422&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201401&fm=77624801140399&tin=02508201610067®Number=0000000000091777&sum=80000 [11:24:23]StoreToDocumentArchive [11:24:23]shift 543 fd 201401 [11:24:23]save to /storage/0543/doc_00201401 [11:24:23]save last doc name /storage/0543/doc_00201401 to /storage/kkm_last_doc_name [11:24:23]save OK [11:24:23]Clear old archive folders... [11:24:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:24:23]tlvbuf is 018095B0 [11:24:23]SAM_PROTO_ClearQueue [11:24:23]wFMCommunicate request_size=4 [11:24:23]MH_SAM_APDU [11:24:23]CAPDU: 80 09 00 00 [11:24:23]Write to MH i2c: E2 08 00 5C 08 80 09 00 00 00 00 00 00 D6 [11:24:23]Write i2c OK [11:24:23]MH_I2C_Read... [11:24:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:23]Read from MH i2c: E2 [11:24:23]MH_I2C_Read... [11:24:23]Read from MH i2c: E2 03 00 [11:24:23]MH_I2C_Read... [11:24:23]Read from MH i2c: E2 03 00 5C 08 00 90 00 D8 [11:24:23]RAPDU: 90 00 [11:24:23]wFMCommunicate OK [11:24:23]SAM_PROTO_ClearQueue done [11:24:23]KKMCreateOFDPacket [11:24:23]OFDProtocolAddRootSTLVToBuf [11:24:23]FM_MakeSignedData [11:24:23]FM_MakeSignedData [11:24:23]SAM_PROTO_SignData [11:24:23]wFMCommunicate request_size=4 [11:24:23]MH_SAM_APDU [11:24:23]CAPDU: 80 0D 01 02 [11:24:23]Write to MH i2c: E2 08 00 5D 08 80 0D 01 02 00 00 00 00 DE [11:24:23]Write i2c OK [11:24:23]MH_I2C_Read... [11:24:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:23]Read from MH i2c: E2 [11:24:23]MH_I2C_Read... [11:24:23]Read from MH i2c: E2 03 00 [11:24:23]MH_I2C_Read... [11:24:23]Read from MH i2c: E2 03 00 5D 08 00 90 00 D9 [11:24:23]RAPDU: 90 00 [11:24:23]wFMCommunicate OK [11:24:23]wFMCommunicate request_size=255 [11:24:23]MH_SAM_APDU [11:24:23]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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 66 D1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B9 12 03 00 35 04 06 00 46 [11:24:23]Write to MH i2c: E2 02 01 5E 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 66 D1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B9 12 03 00 35 04 06 00 46 00 00 F0 [11:24:23]Write i2c OK [11:24:23]MH_I2C_Read... [11:24:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:23]Read from MH i2c: E2 [11:24:23]MH_I2C_Read... [11:24:23]Read from MH i2c: E2 03 00 [11:24:23]MH_I2C_Read... [11:24:23]Read from MH i2c: E2 03 00 5E 08 00 90 00 DA [11:24:23]RAPDU: 90 00 [11:24:23]wFMCommunicate OK [11:24:23]wFMCommunicate request_size=10 [11:24:23]MH_SAM_APDU [11:24:23]CAPDU: 80 0D 02 02 05 99 6E B2 9E AF [11:24:23]Write to MH i2c: E2 0D 00 5F 08 80 0D 02 02 05 00 99 6E B2 9E AF 00 00 F1 [11:24:23]Write i2c OK [11:24:23]MH_I2C_Read... [11:24:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:23]Read from MH i2c: E2 [11:24:23]MH_I2C_Read... [11:24:23]Read from MH i2c: E2 03 00 [11:24:23]MH_I2C_Read... [11:24:23]Read from MH i2c: E2 03 00 5F 08 00 90 00 DB [11:24:23]RAPDU: 90 00 [11:24:23]wFMCommunicate OK [11:24:23]wFMCommunicate request_size=4 [11:24:23]MH_SAM_APDU [11:24:23]CAPDU: 80 0D 03 02 [11:24:23]Write to MH i2c: E2 08 00 60 08 80 0D 03 02 00 00 00 00 E3 [11:24:23]Write i2c OK [11:24:23]MH_I2C_Read... [11:24:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:23]Read from MH i2c: E2 [11:24:23]MH_I2C_Read... [11:24:23]Read from MH i2c: E2 0B 00 [11:24:23]MH_I2C_Read... [11:24:23]Read from MH i2c: E2 0B 00 60 08 00 39 6B 8F B4 B2 96 6B 7F 90 00 FD [11:24:23]RAPDU: 39 6B 8F B4 B2 96 6B 7F 90 00 [11:24:23]wFMCommunicate OK [11:24:23]SAM_PROTO_SignData done [11:24:23]FM_MakeSignedData done [11:24:23]CreateOFDProtocolMessage [11:24:23]wFMCommunicate request_size=4 [11:24:23]MH_SAM_APDU [11:24:23]CAPDU: 80 11 00 00 [11:24:23]Write to MH i2c: E2 08 00 61 08 80 11 00 00 00 00 00 00 E3 [11:24:23]Write i2c OK [11:24:23]MH_I2C_Read... [11:24:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:23]Read from MH i2c: E2 [11:24:23]MH_I2C_Read... [11:24:23]Read from MH i2c: E2 17 00 [11:24:23]MH_I2C_Read... [11:24:23]Read from MH i2c: E2 17 00 61 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 38 [11:24:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:24:23]wFMCommunicate OK [11:24:23]CreateOFDProtocolMessage done [11:24:23]OFDSenderStorePacket 201401 [11:24:23]StoreOFDPacket docnum=201401 [11:24:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 73 A8 07 01 98 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 66 D1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B9 12 03 00 35 04 06 00 46 99 6E B2 9E AF 39 6B 8F B4 B2 96 6B 7F [11:24:23]CheckFolder [11:24:23]dirname=/storage/ofd_packets [11:24:23]CheckFolder done [11:24:23]ProducePacketName [11:24:23]name=ofd_packets/00201401 [11:24:23]NVStorageSaveData ofd_packets/00201401 [11:24:23]File name is /storage/ofd_packets/00201401 [11:24:23]Write 301 bytes [11:24:23]NVStorageSaveData done [11:24:23]OFDSenderStorePacket done [11:24:23]KKMCreateOFDPacket done [11:24:23]NVStorageSaveData kkm_last_timestamp [11:24:23]File name is /storage/kkm_last_timestamp [11:24:23]Write 4 bytes [11:24:23]NVStorageSaveData done [11:24:23]ExternCall_PrintAddStr [11:24:23]wPrintStart [11:24:23]Write to MH i2c: 01 00 00 62 08 6A [11:24:23]Write i2c OK [11:24:23]MH_I2C_Read... [11:24:23]Read from MH i2c: 01 [11:24:23]MH_I2C_Read... [11:24:23]Read from MH i2c: 01 07 00 [11:24:23]MH_I2C_Read... [11:24:23]Read from MH i2c: 01 07 00 62 08 00 00 00 00 00 FF 0F 7F [11:24:23]RasterBufferAndPrint [11:24:23]line Счет N : (1)449150 [11:24:23]line ИНН: 02508201610067 [11:24:23]line Контрольно-Кассовый Чек [11:24:23]line ПРОДАЖА [11:24:23]line ТРК (МРК, ГНК) : 62 [11:24:23]line Товар: 2710124130 [11:24:23]line Аи-92-К-2 [11:24:23]line 11.960 * 66.90 [11:24:23]line = 800.12 [11:24:23]line НДС 12% НСП 1% [11:24:23]line > о реализуемом товаре [11:24:23]line ОКРУГЛЕНИЕ: -0.12 [11:24:23]line ИТОГО: 800.00 [11:24:23]line Внесено: 800.00 [11:24:23]line СДАЧА: 0.00 [11:24:23]line НСП 1% : 7.08 [11:24:23]line НДС 12% : 84.97 [11:24:23]line Наличными: 800.00 [11:24:23]line Безнал.: 0.00 [11:24:23]line Место: АЗС № 171 "Партнер Нефть" [11:24:23]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:24:23]line СНО: Общий режим [11:24:23]line Чек 163 26.10.2024 11:24 [11:24:23]line Смена: 543 ФФД: 1.0 [11:24:23]line ЗНМ: 0300000109 [11:24:23]line РНМ: 0000000000091777 [11:24:23]line Версия ККМ: 001 [11:24:23]line ФМ: 0000000000871756 [11:24:23]line ФД: 201401 [11:24:23]line ФПД: 77624801140399 [11:24:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112422&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201401&fm=77624801140399&tin=02508201610067®Number=0000000000091777&sum=80000 [11:24:24]OFD Sender: Processing packet 201401 [packets to send 112, broken 111] [11:24:24]ProducePacketName [11:24:24]name=ofd_packets/00201401 [11:24:24]OFD Sender: To server: pG, [11:24:24]CommunicateWithHost lk.salyk.kg:30040 [11:24:24]ConnectInit lk.salyk.kg [11:24:24]written 0, free lines is 4095 [11:24:24]Connected sock=9 [11:24:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 73 A8 07 01 98 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 66 D1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B9 12 03 00 35 04 06 00 46 99 6E B2 9E AF 39 6B 8F B4 B2 96 6B 7F [11:24:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 61 E9 47 00 D0 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B9 12 03 00 F4 03 04 00 0F 7D 1C 67 B6 04 01 00 00 26 01 3F EE E3 66 5D 8E [11:24:24]CommunicateWithHost err = 0 [11:24:24]CheckOFDResponse [11:24:24]1017 (14) - 77093643461234 [11:24:24]1041 (16) - 0000000000871756 [11:24:24]1040 (4) - 201401 [11:24:24]1012 (4) - 26.10.2024 05:24 [11:24:24]1206 (1) - 0 [11:24:24]OFD Sender: Remove packet 201401 [11:24:24]ProducePacketName [11:24:24]name=ofd_packets/00201401 [11:24:24]NVStorageDeleteData [11:24:24]Write to MH i2c: 01 00 00 8D 08 95 [11:24:24]Write i2c OK [11:24:24]MH_I2C_Read... [11:24:24]Read from MH i2c: 01 [11:24:24]MH_I2C_Read... [11:24:24]Read from MH i2c: 01 07 00 [11:24:24]MH_I2C_Read... [11:24:24]Read from MH i2c: 01 07 00 8D 08 00 00 00 00 00 A4 0C 4C [11:24:24]RasterBufferAndPrint [11:24:24]line [11:24:24]line [11:24:24]line [11:24:24]line [11:24:24]line [11:24:24]written 0, free lines is 3242 [11:24:24]MH_Cut [11:24:24]Write to MH i2c: D1 01 00 94 08 01 6E [11:24:24]Write i2c OK [11:24:24]MH_I2C_Read... [11:24:24]Read from MH i2c: D1 [11:24:24]MH_I2C_Read... [11:24:24]Read from MH i2c: D1 01 00 [11:24:24]MH_I2C_Read... [11:24:24]Read from MH i2c: D1 01 00 94 08 00 6D [11:24:24]Write to MH i2c: 01 00 00 95 08 9D [11:24:24]Write i2c OK [11:24:24]MH_I2C_Read... [11:24:25]OFD Sender: No OFD packet to send [11:24:25]*** Cut start [11:24:25]*** Purtial cut [11:24:25]*** Stage 1: CUTSNS_PIN = 1 [11:24:25]Read from MH i2c: 01 [11:24:25]MH_I2C_Read... [11:24:25]*** Stop cut motor [11:24:25]*** Cut end [11:24:25]Read from MH i2c: 01 07 00 [11:24:25]MH_I2C_Read... [11:24:25]Read from MH i2c: 01 07 00 95 08 00 00 00 00 00 FF 0F B2 [11:24:25]process_action close_receipt done [11:24:25]requested_data is exist [11:24:25]produce_requested_data [11:24:25]requested_item fm.sn is exist - process it [11:24:25]wFMCommunicate request_size=4 [11:24:25]MH_SAM_APDU [11:24:25]CAPDU: 80 11 00 00 [11:24:25]Write to MH i2c: E2 08 00 96 08 80 11 00 00 00 00 00 00 18 [11:24:25]Write i2c OK [11:24:25]MH_I2C_Read... [11:24:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:25]Read from MH i2c: E2 [11:24:25]MH_I2C_Read... [11:24:25]Read from MH i2c: E2 17 00 [11:24:25]MH_I2C_Read... [11:24:25]Read from MH i2c: E2 17 00 96 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6D [11:24:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:24:25]wFMCommunicate OK [11:24:25]requested_item fd.num is exist - process it [11:24:25]SAM_PROTO_GetFieldsCounters [11:24:25]wFMCommunicate request_size=4 [11:24:25]MH_SAM_APDU [11:24:25]CAPDU: 80 13 00 00 [11:24:25]Write to MH i2c: E2 08 00 97 08 80 13 00 00 00 00 00 00 1B [11:24:25]Write i2c OK [11:24:25]MH_I2C_Read... [11:24:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:26]Read from MH i2c: E2 [11:24:26]MH_I2C_Read... [11:24:26]Read from MH i2c: E2 62 00 [11:24:26]MH_I2C_Read... [11:24:26]Read from MH i2c: E2 62 00 97 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B9 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [11:24:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B9 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:24:26]wFMCommunicate OK [11:24:26]SAM_PROTO_GetFieldsCounters done [11:24:26]requested_item shift.num is exist - process it [11:24:26]requested_item shift.opened is exist - process it [11:24:26]req_shift_opened [11:24:26]FM_GetShiftState [11:24:26]SAM_PROTO_GetShiftState [11:24:26]wFMCommunicate request_size=4 [11:24:26]MH_SAM_APDU [11:24:26]CAPDU: 80 13 01 00 [11:24:26]Write to MH i2c: E2 08 00 98 08 80 13 01 00 00 00 00 00 1D [11:24:26]Write i2c OK [11:24:26]MH_I2C_Read... [11:24:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:26]Read from MH i2c: E2 [11:24:26]MH_I2C_Read... [11:24:26]Read from MH i2c: E2 0E 00 [11:24:26]MH_I2C_Read... [11:24:26]Read from MH i2c: E2 0E 00 98 08 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 2C [11:24:26]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:24:26]wFMCommunicate OK [11:24:26]SAM_PROTO_GetShiftState done [11:24:26]FM_GetShiftState done [11:24:26]req_shift_opened done [11:24:26]requested_item shift.open_date is exist - process it [11:24:26]req_shift_open_date [11:24:26]req_shift_open_date done [11:24:26]produce_requested_data done [11:24:26]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201401,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:24:26]process_action_free close_receipt [11:24:26]json_value_free [11:24:26]json_value_free done [11:24:26]process_json_proto returns [11:24:26]Send response to host [11:24:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201401,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:24:26]free response buf [11:24:26]execute_script done [11:24:26]execute_script returns [11:24:26]free content buf [11:24:26]Sock 7.Close socket [11:24:26]Sock 7.Thread stoped [11:24:30]OFD Sender: No OFD packet to send [11:24:35]OFD Sender: No OFD packet to send [11:24:40]OFD Sender: No OFD packet to send [11:24:45]OFD Sender: No OFD packet to send [11:24:50]OFD Sender: No OFD packet to send [11:24:55]OFD Sender: No OFD packet to send [11:25:00]OFD Sender: No OFD packet to send [11:25:05]OFD Sender: No OFD packet to send [11:25:10]OFD Sender: No OFD packet to send [11:25:15]OFD Sender: No OFD packet to send [11:25:20]OFD Sender: No OFD packet to send [11:25:25]OFD Sender: No OFD packet to send [11:25:30]OFD Sender: No OFD packet to send [11:25:35]OFD Sender: No OFD packet to send [11:25:40]OFD Sender: No OFD packet to send [11:25:45]OFD Sender: No OFD packet to send [11:25:50]OFD Sender: No OFD packet to send [11:25:55]OFD Sender: No OFD packet to send [11:26:00]OFD Sender: No OFD packet to send [11:26:05]OFD Sender: No OFD packet to send [11:26:09]accept exits with 10 [11:26:09]New connection [11:26:09]New thread 3066498404 created [11:26:09]Thread 3066641764 joined [11:26:09]Waiting for new connection... [11:26:09] Sock 10.Parse request [11:26:09]Sock 10.Check first char [11:26:09]Sock 10.First char is OK [11:26:09]request: POST /json_proto HTTP/1.0 [11:26:09]Method: POST [11:26:09]URL: /json_proto [11:26:09]Method is POST - this is cgi request [11:26:09]url: /json_proto [11:26:09]query_string will be loaded in cgi processing [11:26:09]execute_cgi json_proto POST (null) [11:26:09]execute_cgi path=json_proto method=POST [11:26:09]POST find Content-Length [11:26:09]Host: 172.17.63.195:8080 [11:26:09]Content-Length: 679 [11:26:09]Content-Type: application/json [11:26:09] [11:26:09]POST finish read [11:26:09]Found Content-Length = 679 [11:26:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:09]execute_script... [11:26: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)449151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:09]POST & json_proto [11:26:09]process_json_proto [11:26:09]json parsed OK: [11:26:09]protocol is kg_v1.0 [11:26:09]action value=close_receipt [11:26:09]process_action close_receipt [11:26:09]cmd_close_receipt [11:26:09]MH_GetDate [11:26:09]Write to MH i2c: F0 00 00 99 08 90 [11:26:09]Write i2c OK [11:26:09]MH_I2C_Read... [11:26:09]Read from MH i2c: F0 [11:26:09]MH_I2C_Read... [11:26:09]Read from MH i2c: F0 09 00 [11:26:09]MH_I2C_Read... [11:26:09]Read from MH i2c: F0 09 00 99 08 00 D2 D1 1C 67 68 46 19 67 ED [11:26:09]GetLastDocTimeStamp 1729941862 [11:26:09]current date 1729941970 [11:26:09]FM_GetShiftState [11:26:09]SAM_PROTO_GetShiftState [11:26:09]wFMCommunicate request_size=4 [11:26:09]MH_SAM_APDU [11:26:09]CAPDU: 80 13 01 00 [11:26:09]Write to MH i2c: E2 08 00 9A 08 80 13 01 00 00 00 00 00 1F [11:26:09]Write i2c OK [11:26:09]MH_I2C_Read... [11:26:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:09]Read from MH i2c: E2 [11:26:09]MH_I2C_Read... [11:26:09]Read from MH i2c: E2 0E 00 [11:26:09]MH_I2C_Read... [11:26:09]Read from MH i2c: E2 0E 00 9A 08 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 2E [11:26:09]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:26:09]wFMCommunicate OK [11:26:09]SAM_PROTO_GetShiftState done [11:26:09]FM_GetShiftState done [11:26:09]opened in 1729900879 [11:26:09]opened+sec_in_day 1729987279 [11:26:09]quantity*price = 250012 [11:26:09]sum+1 = 250013 [11:26:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 164 26.10.2024 11:26 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201402 ФПД: 147465240759202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112610&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201402&fm=147465240759202&tin=02508201610067®Number=0000000000091777&sum=250000 [11:26:11]StoreToDocumentArchive [11:26:11]shift 543 fd 201402 [11:26:11]save to /storage/0543/doc_00201402 [11:26:11]save last doc name /storage/0543/doc_00201402 to /storage/kkm_last_doc_name [11:26:11]Write to MH i2c: 01 00 00 A7 08 AF [11:26:11]save OK [11:26:11]Clear old archive folders... [11:26:11]Write i2c OK [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: 01 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: 01 07 00 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: 01 07 00 A7 08 00 08 00 00 00 FF 0F CC [11:26:11]state=0 [11:26:11]Key pressed [11:26:11]Feed [11:26:11]Write to MH i2c: D8 00 00 A8 08 87 [11:26:11]Write i2c OK [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: D8 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: D8 01 00 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: D8 01 00 A8 08 00 88 [11:26:11]int line is 0 - check status [11:26:11]Write to MH i2c: 01 00 00 A9 08 B1 [11:26:11]Write i2c OK [11:26:11]MH_I2C_Read... [11:26:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:26:11]tlvbuf is 01817230 [11:26:11]SAM_PROTO_ClearQueue [11:26:11]wFMCommunicate request_size=4 [11:26:11]MH_SAM_APDU [11:26:11]CAPDU: 80 09 00 00 [11:26:11]Read from MH i2c: 01 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: 01 07 00 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: 01 07 00 A9 08 00 48 00 00 00 3C 00 3C [11:26:11]state=2 [11:26:11]Write to MH i2c: Key pressed [11:26:11]E2 08 00 AA 08 80 09 00 00 00 00 00 00 24 [11:26:11]int [11:26:11]Write i2c OK [11:26:11]MH_I2C_Read... [11:26:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:11]Read from MH i2c: E2 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: E2 03 00 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: E2 03 00 AA 08 00 90 00 26 [11:26:11]Write to MH i2c: RAPDU: 01 90 00 00 00 [11:26:11]AB wFMCommunicate OK [11:26:11]08 SAM_PROTO_ClearQueue done [11:26:11]B3 KKMCreateOFDPacket [11:26:11] [11:26:11]OFDProtocolAddRootSTLVToBuf [11:26:11]FM_MakeSignedData [11:26:11]FM_MakeSignedData [11:26:11]SAM_PROTO_SignData [11:26:11]wFMCommunicate request_size=4 [11:26:11]MH_SAM_APDU [11:26:11]CAPDU: 80 0D 01 02 [11:26:11]Write i2c OK [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: 01 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: 01 07 00 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: 01 07 00 AB 08 00 48 00 00 00 3C 00 3E [11:26:11]Write to MH i2c: state=2 [11:26:11]E2 Key pressed [11:26:11]08 00 AC 08 80 0D 01 02 00 00 00 00 2D [11:26:11]Write i2c OK [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: E2 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: E2 *** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:11]03 00 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: E2 03 00 AC 08 00 90 00 28 [11:26:11]RAPDU: 90 00 [11:26:11]wFMCommunicate OK [11:26:11]wFMCommunicate request_size=255 [11:26:11]MH_SAM_APDU [11:26:11]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 32 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 int [11:26:11]01 BC 04 Write to MH i2c: 01 01 00 00 01 00 FC AD 03 08 06 B5 00 [11:26:11]90 D0 03 00 00 00 EB 03 26 00 EF 03 0F *** FLAG_PRN_KEY reset [11:26:11]00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 Write i2c OK [11:26:11]00 MH_I2C_Read... [11:26:11]B6 67 00 Read from MH i2c: 00 01 00 [11:26:11]00 MH_I2C_Read... [11:26:11]07 04 06 00 90 Read from MH i2c: D0 01 03 07 00 00 00 00 39 [11:26:11]04 MH_I2C_Read... [11:26:11]06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 Read from MH i2c: 00 01 07 00 AD 08 A4 00 00 00 00 00 00 00 F4 03 00 04 F5 00 0F D2 C0 D1 [11:26:11]1C state=2 [11:26:11]67 Stop feed [11:26:11]0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BA 12 03 00 35 04 06 00 86 1E 6D 4A [11:26:11]Write to MH i2c: E2 02 01 AE 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 D2 D1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BA 12 03 00 35 04 06 00 86 1E 6D 4A 00 00 2E [11:26:11]Write i2c OK [11:26:11]MH_I2C_Read... [11:26:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:11]Read from MH i2c: E2 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: E2 03 00 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: E2 03 00 AE 08 00 90 00 2A [11:26:11]RAPDU: 90 00 [11:26:11]wFMCommunicate OK [11:26:11]wFMCommunicate request_size=7 [11:26:11]MH_SAM_APDU [11:26:11]CAPDU: 80 0D 02 02 02 CB A2 [11:26:11]Write to MH i2c: E2 0A 00 AF 08 80 0D 02 02 02 00 CB A2 00 00 A2 [11:26:11]Write i2c OK [11:26:11]MH_I2C_Read... [11:26:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:11]Read from MH i2c: E2 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: E2 03 00 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: E2 03 00 AF 08 00 90 00 2B [11:26:11]RAPDU: 90 00 [11:26:11]wFMCommunicate OK [11:26:11]wFMCommunicate request_size=4 [11:26:11]MH_SAM_APDU [11:26:11]CAPDU: 80 0D 03 02 [11:26:11]Write to MH i2c: E2 08 00 B0 08 80 0D 03 02 00 00 00 00 33 [11:26:11]Write i2c OK [11:26:11]MH_I2C_Read... [11:26:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:11]Read from MH i2c: E2 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: E2 0B 00 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: E2 0B 00 B0 08 00 57 8E 36 25 39 C6 87 BF 90 00 B9 [11:26:11]RAPDU: 57 8E 36 25 39 C6 87 BF 90 00 [11:26:11]wFMCommunicate OK [11:26:11]SAM_PROTO_SignData done [11:26:11]FM_MakeSignedData done [11:26:11]CreateOFDProtocolMessage [11:26:11]wFMCommunicate request_size=4 [11:26:11]MH_SAM_APDU [11:26:11]CAPDU: 80 11 00 00 [11:26:11]Write to MH i2c: E2 08 00 B1 08 80 11 00 00 00 00 00 00 33 [11:26:11]Write i2c OK [11:26:11]MH_I2C_Read... [11:26:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:11]Read from MH i2c: E2 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: E2 17 00 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: E2 17 00 B1 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 88 [11:26:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:26:11]wFMCommunicate OK [11:26:11]CreateOFDProtocolMessage done [11:26:11]OFDSenderStorePacket 201402 [11:26:11]StoreOFDPacket docnum=201402 [11:26:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 2F A2 04 01 98 63 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 32 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 D2 D1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BA 12 03 00 35 04 06 00 86 1E 6D 4A CB A2 57 8E 36 25 39 C6 87 BF [11:26:11]CheckFolder [11:26:11]dirname=/storage/ofd_packets [11:26:11]CheckFolder done [11:26:11]ProducePacketName [11:26:11]name=ofd_packets/00201402 [11:26:11]NVStorageSaveData ofd_packets/00201402 [11:26:11]File name is /storage/ofd_packets/00201402 [11:26:11]Write 298 bytes [11:26:11]NVStorageSaveData done [11:26:11]OFDSenderStorePacket done [11:26:11]KKMCreateOFDPacket done [11:26:11]NVStorageSaveData kkm_last_timestamp [11:26:11]File name is /storage/kkm_last_timestamp [11:26:11]Write 4 bytes [11:26:11]NVStorageSaveData done [11:26:11]ExternCall_PrintAddStr [11:26:11]wPrintStart [11:26:11]Write to MH i2c: 01 00 00 B2 08 BA [11:26:11]Write i2c OK [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: 01 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: 01 07 00 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: 01 07 00 B2 08 00 00 00 00 00 FF 0F CF [11:26:11]RasterBufferAndPrint [11:26:11]line Счет N : (1)449151 [11:26:11]line ИНН: 02508201610067 [11:26:11]line Контрольно-Кассовый Чек [11:26:11]line ПРОДАЖА [11:26:11]line ТРК (МРК, ГНК) : 43 [11:26:11]line Товар: 2710194210 [11:26:11]line ДТ-К-2 [11:26:11]line 32.810 * 76.20 [11:26:11]line = 2500.12 [11:26:11]line НДС 12% НСП 1% [11:26:11]line > о реализуемом товаре [11:26:11]line ОКРУГЛЕНИЕ: -0.12 [11:26:11]line ИТОГО: 2500.00 [11:26:11]line Внесено: 2500.00 [11:26:11]line СДАЧА: 0.00 [11:26:11]line НСП 1% : 22.12 [11:26:11]line НДС 12% : 265.50 [11:26:11]line Наличными: 2500.00 [11:26:11]line Безнал.: 0.00 [11:26:11]line Место: АЗС № 171 "Партнер Нефть" [11:26:12]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:26:12]line СНО: Общий режим [11:26:12]line Чек 164 26.10.2024 11:26 [11:26:12]line Смена: 543 ФФД: 1.0 [11:26:12]line ЗНМ: 0300000109 [11:26:12]line РНМ: 0000000000091777 [11:26:12]line Версия ККМ: 001 [11:26:12]line ФМ: 0000000000871756 [11:26:12]line ФД: 201402 [11:26:12]line ФПД: 147465240759202 [11:26:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112610&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201402&fm=147465240759202&tin=02508201610067®Number=0000000000091777&sum=250000 [11:26:12]OFD Sender: Processing packet 201402 [packets to send 112, broken 111] [11:26:12]ProducePacketName [11:26:12]name=ofd_packets/00201402 [11:26:12]OFD Sender: To server: pG, [11:26:12]CommunicateWithHost lk.salyk.kg:30040 [11:26:12]ConnectInit lk.salyk.kg [11:26:12]written 0, free lines is 4095 [11:26:12]Connected sock=9 [11:26:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 2F A2 04 01 98 63 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 32 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 D2 D1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BA 12 03 00 35 04 06 00 86 1E 6D 4A CB A2 57 8E 36 25 39 C6 87 BF [11:26:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 BA 91 47 00 4E 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BA 12 03 00 F4 03 04 00 7B 7D 1C 67 B6 04 01 00 00 98 28 66 5E C3 C9 5F BF [11:26:12]CommunicateWithHost err = 0 [11:26:12]CheckOFDResponse [11:26:12]1017 (14) - 77093643461234 [11:26:12]1041 (16) - 0000000000871756 [11:26:12]1040 (4) - 201402 [11:26:12]1012 (4) - 26.10.2024 05:26 [11:26:12]1206 (1) - 0 [11:26:12]OFD Sender: Remove packet 201402 [11:26:12]ProducePacketName [11:26:12]name=ofd_packets/00201402 [11:26:12]NVStorageDeleteData [11:26:12]Write to MH i2c: 01 00 00 DD 08 E5 [11:26:12]Write i2c OK [11:26:12]MH_I2C_Read... [11:26:12]Read from MH i2c: 01 [11:26:12]MH_I2C_Read... [11:26:12]Read from MH i2c: 01 07 00 [11:26:12]MH_I2C_Read... [11:26:12]Read from MH i2c: 01 07 00 DD 08 00 00 00 00 00 9B 0C 93 [11:26:12]RasterBufferAndPrint [11:26:12]line [11:26:12]line [11:26:12]line [11:26:12]line [11:26:12]line [11:26:12]written 0, free lines is 3233 [11:26:12]MH_Cut [11:26:12]Write to MH i2c: D1 01 00 E4 08 01 BE [11:26:12]Write i2c OK [11:26:12]MH_I2C_Read... [11:26:12]Read from MH i2c: D1 [11:26:12]MH_I2C_Read... [11:26:12]Read from MH i2c: D1 01 00 [11:26:12]MH_I2C_Read... [11:26:12]Read from MH i2c: D1 01 00 E4 08 00 BD [11:26:12]Write to MH i2c: 01 00 00 E5 08 ED [11:26:12]Write i2c OK [11:26:12]MH_I2C_Read... [11:26:12]OFD Sender: No OFD packet to send [11:26:13]*** Cut start [11:26:13]*** Purtial cut [11:26:13]*** Stage 1: CUTSNS_PIN = 1 [11:26:13]Read from MH i2c: 01 [11:26:13]MH_I2C_Read... [11:26:13]*** Stop cut motor [11:26:13]*** Cut end [11:26:13]Read from MH i2c: 01 07 00 [11:26:13]MH_I2C_Read... [11:26:13]Read from MH i2c: 01 07 00 E5 08 00 00 00 00 00 FF 0F 02 [11:26:13]process_action close_receipt done [11:26:13]requested_data is exist [11:26:13]produce_requested_data [11:26:13]requested_item fm.sn is exist - process it [11:26:13]wFMCommunicate request_size=4 [11:26:13]MH_SAM_APDU [11:26:13]CAPDU: 80 11 00 00 [11:26:13]Write to MH i2c: E2 08 00 E6 08 80 11 00 00 00 00 00 00 68 [11:26:13]Write i2c OK [11:26:13]MH_I2C_Read... [11:26:13]Read from MH i2c: E2 [11:26:13]MH_I2C_Read... [11:26:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:13]Read from MH i2c: E2 17 00 [11:26:13]MH_I2C_Read... [11:26:13]Read from MH i2c: E2 17 00 E6 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BD [11:26:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:26:13]wFMCommunicate OK [11:26:13]requested_item fd.num is exist - process it [11:26:13]SAM_PROTO_GetFieldsCounters [11:26:13]wFMCommunicate request_size=4 [11:26:13]MH_SAM_APDU [11:26:13]CAPDU: 80 13 00 00 [11:26:13]Write to MH i2c: E2 08 00 E7 08 80 13 00 00 00 00 00 00 6B [11:26:13]Write i2c OK [11:26:13]MH_I2C_Read... [11:26:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:13]Read from MH i2c: E2 [11:26:13]MH_I2C_Read... [11:26:13]Read from MH i2c: E2 62 00 [11:26:13]MH_I2C_Read... [11:26:13]Read from MH i2c: E2 62 00 E7 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BA 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [11:26:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BA 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:26:13]wFMCommunicate OK [11:26:13]SAM_PROTO_GetFieldsCounters done [11:26:13]requested_item shift.num is exist - process it [11:26:13]requested_item shift.opened is exist - process it [11:26:13]req_shift_opened [11:26:13]FM_GetShiftState [11:26:13]SAM_PROTO_GetShiftState [11:26:13]wFMCommunicate request_size=4 [11:26:13]MH_SAM_APDU [11:26:13]CAPDU: 80 13 01 00 [11:26:13]Write to MH i2c: E2 08 00 E8 08 80 13 01 00 00 00 00 00 6D [11:26:13]Write i2c OK [11:26:13]MH_I2C_Read... [11:26:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:13]Read from MH i2c: E2 [11:26:13]MH_I2C_Read... [11:26:13]Read from MH i2c: E2 0E 00 [11:26:13]MH_I2C_Read... [11:26:13]Read from MH i2c: E2 0E 00 E8 08 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 7C [11:26:13]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:26:13]wFMCommunicate OK [11:26:13]SAM_PROTO_GetShiftState done [11:26:13]FM_GetShiftState done [11:26:13]req_shift_opened done [11:26:13]requested_item shift.open_date is exist - process it [11:26:13]req_shift_open_date [11:26:13]req_shift_open_date done [11:26:13]produce_requested_data done [11:26:13]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201402,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:26:13]process_action_free close_receipt [11:26:13]json_value_free [11:26:13]json_value_free done [11:26:13]process_json_proto returns [11:26:13]Send response to host [11:26:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201402,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:26:13]free response buf [11:26:13]execute_script done [11:26:13]execute_script returns [11:26:13]free content buf [11:26:13]Sock 10.Close socket [11:26:13]Sock 10.Thread stoped [11:26:17]OFD Sender: No OFD packet to send [11:26:22]OFD Sender: No OFD packet to send [11:26:27]OFD Sender: No OFD packet to send [11:26:32]OFD Sender: No OFD packet to send [11:26:37]OFD Sender: No OFD packet to send [11:26:42]OFD Sender: No OFD packet to send [11:26:44]accept exits with 7 [11:26:44]New connection [11:26:44]New thread 3066641764 created [11:26:44]Thread 3066498404 joined [11:26:44]Waiting for new connection... [11:26:44] Sock 7.Parse request [11:26:44]Sock 7.Check first char [11:26:44]Sock 7.First char is OK [11:26:44]request: POST /json_proto HTTP/1.0 [11:26:44]Method: POST [11:26:44]URL: /json_proto [11:26:44]Method is POST - this is cgi request [11:26:44]url: /json_proto [11:26:44]query_string will be loaded in cgi processing [11:26:44]execute_cgi json_proto POST (null) [11:26:44]execute_cgi path=json_proto method=POST [11:26:44]POST find Content-Length [11:26:44]Host: 172.17.63.195:8080 [11:26:44]Content-Length: 632 [11:26:44]Content-Type: application/json [11:26:44] [11:26:44]POST finish read [11:26:44]Found Content-Length = 632 [11:26:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:44]execute_script... [11:26:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:44]POST & json_proto [11:26:44]process_json_proto [11:26:44]json parsed OK: [11:26:44]protocol is kg_v1.0 [11:26:44]action value=close_receipt [11:26:44]process_action close_receipt [11:26:44]cmd_close_receipt [11:26:44]MH_GetDate [11:26:44]Write to MH i2c: F0 00 00 E9 08 E0 [11:26:44]Write i2c OK [11:26:44]MH_I2C_Read... [11:26:44]Read from MH i2c: F0 [11:26:44]MH_I2C_Read... [11:26:44]Read from MH i2c: F0 09 00 [11:26:44]MH_I2C_Read... [11:26:44]Read from MH i2c: F0 09 00 E9 08 00 F5 D1 1C 67 68 46 19 67 60 [11:26:44]GetLastDocTimeStamp 1729941970 [11:26:44]current date 1729942005 [11:26:44]FM_GetShiftState [11:26:44]SAM_PROTO_GetShiftState [11:26:44]wFMCommunicate request_size=4 [11:26:44]MH_SAM_APDU [11:26:44]CAPDU: 80 13 01 00 [11:26:44]Write to MH i2c: E2 08 00 EA 08 80 13 01 00 00 00 00 00 6F [11:26:44]Write i2c OK [11:26:44]MH_I2C_Read... [11:26:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:44]Read from MH i2c: E2 [11:26:44]MH_I2C_Read... [11:26:44]Read from MH i2c: E2 0E 00 [11:26:44]MH_I2C_Read... [11:26:44]Read from MH i2c: E2 0E 00 EA 08 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 7E [11:26:44]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:26:44]wFMCommunicate OK [11:26:44]SAM_PROTO_GetShiftState done [11:26:44]FM_GetShiftState done [11:26:44]opened in 1729900879 [11:26:44]opened+sec_in_day 1729987279 [11:26:44]quantity*price = 50000 [11:26:44]sum+1 = 50001 [11:26:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 165 26.10.2024 11:26 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201403 ФПД: 87104346845439 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112645&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201403&fm=87104346845439&tin=02508201610067®Number=0000000000091777&sum=50000 [11:26:45]StoreToDocumentArchive [11:26:45]shift 543 fd 201403 [11:26:45]save to /storage/0543/doc_00201403 [11:26:45]save last doc name /storage/0543/doc_00201403 to /storage/kkm_last_doc_name [11:26:45]save OK [11:26:45]Clear old archive folders... [11:26:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:26:45]tlvbuf is 017A8150 [11:26:45]SAM_PROTO_ClearQueue [11:26:45]wFMCommunicate request_size=4 [11:26:45]MH_SAM_APDU [11:26:45]CAPDU: 80 09 00 00 [11:26:45]Write to MH i2c: E2 08 00 F7 08 80 09 00 00 00 00 00 00 71 [11:26:45]Write i2c OK [11:26:45]MH_I2C_Read... [11:26:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:46]Read from MH i2c: E2 [11:26:46]MH_I2C_Read... [11:26:46]Read from MH i2c: E2 03 00 [11:26:46]MH_I2C_Read... [11:26:46]Read from MH i2c: E2 03 00 F7 08 00 90 00 73 [11:26:46]RAPDU: 90 00 [11:26:46]wFMCommunicate OK [11:26:46]SAM_PROTO_ClearQueue done [11:26:46]KKMCreateOFDPacket [11:26:46]OFDProtocolAddRootSTLVToBuf [11:26:46]FM_MakeSignedData [11:26:46]FM_MakeSignedData [11:26:46]SAM_PROTO_SignData [11:26:46]wFMCommunicate request_size=4 [11:26:46]MH_SAM_APDU [11:26:46]CAPDU: 80 0D 01 02 [11:26:46]Write to MH i2c: E2 08 00 F8 08 80 0D 01 02 00 00 00 00 79 [11:26:46]Write i2c OK [11:26:46]MH_I2C_Read... [11:26:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:46]Read from MH i2c: E2 [11:26:46]MH_I2C_Read... [11:26:46]Read from MH i2c: E2 03 00 [11:26:46]MH_I2C_Read... [11:26:46]Read from MH i2c: E2 03 00 F8 08 00 90 00 74 [11:26:46]RAPDU: 90 00 [11:26:46]wFMCommunicate OK [11:26:46]wFMCommunicate request_size=255 [11:26:46]MH_SAM_APDU [11:26: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 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 F5 D1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BB 12 03 00 35 04 06 00 [11:26:46]Write to MH i2c: E2 02 01 F9 08 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 F5 D1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BB 12 03 00 35 04 06 00 00 00 49 [11:26:46]Write i2c OK [11:26:46]MH_I2C_Read... [11:26:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:46]Read from MH i2c: E2 [11:26:46]MH_I2C_Read... [11:26:46]Read from MH i2c: E2 03 00 [11:26:46]MH_I2C_Read... [11:26:46]Read from MH i2c: E2 03 00 F9 08 00 90 00 75 [11:26:46]RAPDU: 90 00 [11:26:46]wFMCommunicate OK [11:26:46]wFMCommunicate request_size=11 [11:26:46]MH_SAM_APDU [11:26:46]CAPDU: 80 0D 02 02 06 4F 38 8F A6 F0 FF [11:26:46]Write to MH i2c: E2 0E 00 FA 08 80 0D 02 02 06 00 4F 38 8F A6 F0 FF 00 00 33 [11:26:46]Write i2c OK [11:26:46]MH_I2C_Read... [11:26:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:46]Read from MH i2c: E2 [11:26:46]MH_I2C_Read... [11:26:46]Read from MH i2c: E2 03 00 [11:26:46]MH_I2C_Read... [11:26:46]Read from MH i2c: E2 03 00 FA 08 00 90 00 76 [11:26:46]RAPDU: 90 00 [11:26:46]wFMCommunicate OK [11:26:46]wFMCommunicate request_size=4 [11:26:46]MH_SAM_APDU [11:26:46]CAPDU: 80 0D 03 02 [11:26:46]Write to MH i2c: E2 08 00 FB 08 80 0D 03 02 00 00 00 00 7E [11:26:46]Write i2c OK [11:26:46]MH_I2C_Read... [11:26:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:46]Read from MH i2c: E2 [11:26:46]MH_I2C_Read... [11:26:46]Read from MH i2c: E2 0B 00 [11:26:46]MH_I2C_Read... [11:26:46]Read from MH i2c: E2 0B 00 FB 08 00 1A E0 D3 3F E1 5A 19 D9 90 00 B8 [11:26:46]RAPDU: 1A E0 D3 3F E1 5A 19 D9 90 00 [11:26:46]wFMCommunicate OK [11:26:46]SAM_PROTO_SignData done [11:26:46]FM_MakeSignedData done [11:26:46]CreateOFDProtocolMessage [11:26:46]wFMCommunicate request_size=4 [11:26:46]MH_SAM_APDU [11:26:46]CAPDU: 80 11 00 00 [11:26:46]Write to MH i2c: E2 08 00 FC 08 80 11 00 00 00 00 00 00 7E [11:26:46]Write i2c OK [11:26:46]MH_I2C_Read... [11:26:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:46]Read from MH i2c: E2 [11:26:46]MH_I2C_Read... [11:26:46]Read from MH i2c: E2 17 00 [11:26:46]MH_I2C_Read... [11:26:46]Read from MH i2c: E2 17 00 FC 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D3 [11:26:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:26:46]wFMCommunicate OK [11:26:46]CreateOFDProtocolMessage done [11:26:46]OFDSenderStorePacket 201403 [11:26:46]StoreOFDPacket docnum=201403 [11:26:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 4A 88 08 01 77 EA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 F5 D1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BB 12 03 00 35 04 06 00 4F 38 8F A6 F0 FF 1A E0 D3 3F E1 5A 19 D9 [11:26:46]CheckFolder [11:26:46]dirname=/storage/ofd_packets [11:26:46]CheckFolder done [11:26:46]ProducePacketName [11:26:46]name=ofd_packets/00201403 [11:26:46]NVStorageSaveData ofd_packets/00201403 [11:26:46]File name is /storage/ofd_packets/00201403 [11:26:46]Write 302 bytes [11:26:46]NVStorageSaveData done [11:26:46]OFDSenderStorePacket done [11:26:46]KKMCreateOFDPacket done [11:26:46]NVStorageSaveData kkm_last_timestamp [11:26:46]File name is /storage/kkm_last_timestamp [11:26:46]Write 4 bytes [11:26:46]NVStorageSaveData done [11:26:46]ExternCall_PrintAddStr [11:26:46]wPrintStart [11:26:46]Write to MH i2c: 01 00 00 FD 08 05 [11:26:46]Write i2c OK [11:26:46]MH_I2C_Read... [11:26:46]Read from MH i2c: 01 [11:26:46]MH_I2C_Read... [11:26:46]Read from MH i2c: 01 07 00 [11:26:46]MH_I2C_Read... [11:26:46]Read from MH i2c: 01 07 00 FD 08 00 00 00 00 00 FF 0F 1A [11:26:46]RasterBufferAndPrint [11:26:46]line Счет N : (1)449153 [11:26:46]line ИНН: 02508201610067 [11:26:46]line Контрольно-Кассовый Чек [11:26:46]line ПРОДАЖА [11:26:46]line ТРК (МРК, ГНК) : 53 [11:26:46]line Товар: 2710124130 [11:26:46]line SUPER 92-К-5 [11:26:46]line 7.310 * 68.40 [11:26:46]line = 500.00 [11:26:46]line НДС 12% НСП 1% [11:26:46]line > о реализуемом товаре [11:26:46]line ИТОГО: 500.00 [11:26:46]line НСП 1% : 4.42 [11:26:46]line НДС 12% : 53.10 [11:26:46]line Наличными: 500.00 [11:26:46]line Безнал.: 0.00 [11:26:46]line Место: АЗС № 171 "Партнер Нефть" [11:26:46]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:26:46]line СНО: Общий режим [11:26:46]line Чек 165 26.10.2024 11:26 [11:26:46]line Смена: 543 ФФД: 1.0 [11:26:46]line ЗНМ: 0300000109 [11:26:46]line РНМ: 0000000000091777 [11:26:46]line Версия ККМ: 001 [11:26:46]line ФМ: 0000000000871756 [11:26:46]line ФД: 201403 [11:26:46]line ФПД: 87104346845439 [11:26:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112645&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201403&fm=87104346845439&tin=02508201610067®Number=0000000000091777&sum=50000 [11:26:46]OFD Sender: Processing packet 201403 [packets to send 112, broken 111] [11:26:46]ProducePacketName [11:26:46]name=ofd_packets/00201403 [11:26:46]OFD Sender: To server: pG, [11:26:46]CommunicateWithHost lk.salyk.kg:30040 [11:26:46]ConnectInit lk.salyk.kg [11:26:46]written 0, free lines is 4095 [11:26:46]Connected sock=10 [11:26:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 4A 88 08 01 77 EA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 F5 D1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BB 12 03 00 35 04 06 00 4F 38 8F A6 F0 FF 1A E0 D3 3F E1 5A 19 D9 [11:26:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 9E 08 47 00 0E 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BB 12 03 00 F4 03 04 00 9E 7D 1C 67 B6 04 01 00 00 1B DA 3F 8A 48 90 BB 52 [11:26:47]CommunicateWithHost err = 0 [11:26:47]CheckOFDResponse [11:26:47]1017 (14) - 77093643461234 [11:26:47]1041 (16) - 0000000000871756 [11:26:47]1040 (4) - 201403 [11:26:47]1012 (4) - 26.10.2024 05:26 [11:26:47]1206 (1) - 0 [11:26:47]OFD Sender: Remove packet 201403 [11:26:47]ProducePacketName [11:26:47]name=ofd_packets/00201403 [11:26:47]NVStorageDeleteData [11:26:47]Write to MH i2c: 01 00 00 25 09 2E [11:26:47]Write i2c OK [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: 01 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: 01 07 00 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: 01 07 00 25 09 00 00 00 00 00 D2 0C 13 [11:26:47]RasterBufferAndPrint [11:26:47]line [11:26:47]line [11:26:47]line [11:26:47]line [11:26:47]line [11:26:47]written 0, free lines is 3285 [11:26:47]MH_Cut [11:26:47]Write to MH i2c: D1 01 00 2C 09 01 07 [11:26:47]Write i2c OK [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: D1 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: D1 01 00 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: D1 01 00 2C 09 00 06 [11:26:47]Write to MH i2c: 01 00 00 2D 09 36 [11:26:47]Write i2c OK [11:26:47]MH_I2C_Read... [11:26:47]OFD Sender: No OFD packet to send [11:26:48]*** Cut start [11:26:48]*** Purtial cut [11:26:48]*** CUTSNS_PIN = 0 [11:26:48]*** Stage 1: CUTSNS_PIN = 1 [11:26:50]Read from MH i2c: 01 [11:26:50]MH_I2C_Read... [11:26:50]*** Stop cut motor [11:26:50]*** Cut end [11:26:50]Read from MH i2c: 01 07 00 [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: 01 07 00 2D 09 00 00 00 00 00 FF 0F 4B [11:26:50]process_action close_receipt done [11:26:50]requested_data is exist [11:26:50]produce_requested_data [11:26:50]requested_item fm.sn is exist - process it [11:26:50]wFMCommunicate request_size=4 [11:26:50]MH_SAM_APDU [11:26:50]CAPDU: 80 11 00 00 [11:26:50]Write to MH i2c: E2 08 00 2E 09 80 11 00 00 00 00 00 00 B1 [11:26:50]Write i2c OK [11:26:50]MH_I2C_Read... [11:26:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:50]Read from MH i2c: E2 [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: E2 17 00 [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: E2 17 00 2E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 06 [11:26:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:26:50]wFMCommunicate OK [11:26:50]requested_item fd.num is exist - process it [11:26:50]SAM_PROTO_GetFieldsCounters [11:26:50]wFMCommunicate request_size=4 [11:26:50]MH_SAM_APDU [11:26:50]CAPDU: 80 13 00 00 [11:26:50]Write to MH i2c: E2 08 00 2F 09 80 13 00 00 00 00 00 00 B4 [11:26:50]Write i2c OK [11:26:50]MH_I2C_Read... [11:26:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:50]Read from MH i2c: E2 [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: E2 62 00 [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: E2 62 00 2F 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BB 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [11:26:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BB 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:26:50]wFMCommunicate OK [11:26:50]SAM_PROTO_GetFieldsCounters done [11:26:50]requested_item shift.num is exist - process it [11:26:50]requested_item shift.opened is exist - process it [11:26:50]req_shift_opened [11:26:50]FM_GetShiftState [11:26:50]SAM_PROTO_GetShiftState [11:26:50]wFMCommunicate request_size=4 [11:26:50]MH_SAM_APDU [11:26:50]CAPDU: 80 13 01 00 [11:26:50]Write to MH i2c: E2 08 00 30 09 80 13 01 00 00 00 00 00 B6 [11:26:50]Write i2c OK [11:26:50]MH_I2C_Read... [11:26:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:50]Read from MH i2c: E2 [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: E2 0E 00 [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: E2 0E 00 30 09 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C5 [11:26:50]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:26:50]wFMCommunicate OK [11:26:50]SAM_PROTO_GetShiftState done [11:26:50]FM_GetShiftState done [11:26:50]req_shift_opened done [11:26:50]requested_item shift.open_date is exist - process it [11:26:50]req_shift_open_date [11:26:50]req_shift_open_date done [11:26:50]produce_requested_data done [11:26:50]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201403,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:26:50]process_action_free close_receipt [11:26:50]json_value_free [11:26:50]json_value_free done [11:26:50]process_json_proto returns [11:26:50]Send response to host [11:26:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201403,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:26:50]free response buf [11:26:50]execute_script done [11:26:50]execute_script returns [11:26:50]free content buf [11:26:50]Sock 7.Close socket [11:26:50]Sock 7.Thread stoped [11:26:52]OFD Sender: No OFD packet to send [11:26:57]OFD Sender: No OFD packet to send [11:27:02]OFD Sender: No OFD packet to send [11:27:07]OFD Sender: No OFD packet to send [11:27:12]OFD Sender: No OFD packet to send [11:27:17]OFD Sender: No OFD packet to send [11:27:22]accept exits with 9 [11:27:22]New connection [11:27:22]New thread 3066498404 created [11:27:22]Thread 3066641764 joined [11:27:22]Waiting for new connection... [11:27:22] Sock 9.Parse request [11:27:22]Sock 9.Check first char [11:27:22]Sock 9.First char is OK [11:27:22]request: POST /json_proto HTTP/1.0 [11:27:22]Method: POST [11:27:22]URL: /json_proto [11:27:22]Method is POST - this is cgi request [11:27:22]url: /json_proto [11:27:22]query_string will be loaded in cgi processing [11:27:22]execute_cgi json_proto POST (null) [11:27:22]execute_cgi path=json_proto method=POST [11:27:22]POST find Content-Length [11:27:22]Host: 172.17.63.195:8080 [11:27:22]Content-Length: 677 [11:27:22]Content-Type: application/json [11:27:22] [11:27:22]POST finish read [11:27:22]Found Content-Length = 677 [11:27:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:22]execute_script... [11:27:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:22]POST & json_proto [11:27:22]process_json_proto [11:27:22]json parsed OK: [11:27:22]protocol is kg_v1.0 [11:27:22]action value=close_receipt [11:27:22]process_action close_receipt [11:27:22]cmd_close_receipt [11:27:22]MH_GetDate [11:27:22]Write to MH i2c: F0 00 00 31 09 29 [11:27:22]Write i2c OK [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: F0 [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: F0 09 00 [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: F0 09 00 31 09 00 1A D2 1C 67 68 46 19 67 CF [11:27:22]GetLastDocTimeStamp 1729942005 [11:27:22]current date 1729942042 [11:27:22]FM_GetShiftState [11:27:22]SAM_PROTO_GetShiftState [11:27:22]wFMCommunicate request_size=4 [11:27:22]MH_SAM_APDU [11:27:22]CAPDU: 80 13 01 00 [11:27:22]Write to MH i2c: E2 08 00 32 09 80 13 01 00 00 00 00 00 B8 [11:27:22]Write i2c OK [11:27:22]MH_I2C_Read... [11:27:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:22]Read from MH i2c: E2 [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: E2 0E 00 [11:27:22]MH_I2C_Read... [11:27:22]Read from MH i2c: E2 0E 00 32 09 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C7 [11:27:22]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:27:22]wFMCommunicate OK [11:27:22]SAM_PROTO_GetShiftState done [11:27:22]FM_GetShiftState done [11:27:22]opened in 1729900879 [11:27:22]opened+sec_in_day 1729987279 [11:27:22]quantity*price = 30038 [11:27:22]sum+1 = 30039 [11:27:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 166 26.10.2024 11:27 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201404 ФПД: 29801022349413 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112722&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201404&fm=29801022349413&tin=02508201610067®Number=0000000000091777&sum=30000 [11:27:23]StoreToDocumentArchive [11:27:23]shift 543 fd 201404 [11:27:23]save to /storage/0543/doc_00201404 [11:27:23]save last doc name /storage/0543/doc_00201404 to /storage/kkm_last_doc_name [11:27:23]save OK [11:27:23]Clear old archive folders... [11:27:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:27:23]tlvbuf is 017A8150 [11:27:23]SAM_PROTO_ClearQueue [11:27:23]wFMCommunicate request_size=4 [11:27:23]MH_SAM_APDU [11:27:23]CAPDU: 80 09 00 00 [11:27:23]Write to MH i2c: E2 08 00 3F 09 80 09 00 00 00 00 00 00 BA [11:27:23]Write i2c OK [11:27:23]MH_I2C_Read... [11:27:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:23]Read from MH i2c: E2 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: E2 03 00 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: E2 03 00 3F 09 00 90 00 BC [11:27:23]RAPDU: 90 00 [11:27:23]wFMCommunicate OK [11:27:23]SAM_PROTO_ClearQueue done [11:27:23]KKMCreateOFDPacket [11:27:23]OFDProtocolAddRootSTLVToBuf [11:27:23]FM_MakeSignedData [11:27:23]FM_MakeSignedData [11:27:23]SAM_PROTO_SignData [11:27:23]wFMCommunicate request_size=4 [11:27:23]MH_SAM_APDU [11:27:23]CAPDU: 80 0D 01 02 [11:27:23]Write to MH i2c: E2 08 00 40 09 80 0D 01 02 00 00 00 00 C2 [11:27:23]Write i2c OK [11:27:23]MH_I2C_Read... [11:27:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:23]Read from MH i2c: E2 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: E2 03 00 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: E2 03 00 40 09 00 90 00 BD [11:27:23]RAPDU: 90 00 [11:27:23]wFMCommunicate OK [11:27:23]wFMCommunicate request_size=255 [11:27:23]MH_SAM_APDU [11:27:23]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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 1A D2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BC 12 03 00 35 04 06 00 1B [11:27:23]Write to MH i2c: E2 02 01 41 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 1A D2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BC 12 03 00 35 04 06 00 1B 00 00 6C [11:27:23]Write i2c OK [11:27:23]MH_I2C_Read... [11:27:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:23]Read from MH i2c: E2 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: E2 03 00 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: E2 03 00 41 09 00 90 00 BE [11:27:23]RAPDU: 90 00 [11:27:23]wFMCommunicate OK [11:27:23]wFMCommunicate request_size=10 [11:27:23]MH_SAM_APDU [11:27:23]CAPDU: 80 0D 02 02 05 1A 97 59 E0 65 [11:27:23]Write to MH i2c: E2 0D 00 42 09 80 0D 02 02 05 00 1A 97 59 E0 65 00 00 1E [11:27:23]Write i2c OK [11:27:23]MH_I2C_Read... [11:27:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:23]Read from MH i2c: E2 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: E2 03 00 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: E2 03 00 42 09 00 90 00 BF [11:27:23]RAPDU: 90 00 [11:27:23]wFMCommunicate OK [11:27:23]wFMCommunicate request_size=4 [11:27:23]MH_SAM_APDU [11:27:23]CAPDU: 80 0D 03 02 [11:27:23]Write to MH i2c: E2 08 00 43 09 80 0D 03 02 00 00 00 00 C7 [11:27:23]Write i2c OK [11:27:23]MH_I2C_Read... [11:27:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:23]Read from MH i2c: E2 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: E2 0B 00 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: E2 0B 00 43 09 00 8C 7D FE FD C1 70 6E 24 90 00 8F [11:27:23]RAPDU: 8C 7D FE FD C1 70 6E 24 90 00 [11:27:23]wFMCommunicate OK [11:27:23]SAM_PROTO_SignData done [11:27:23]FM_MakeSignedData done [11:27:23]CreateOFDProtocolMessage [11:27:23]wFMCommunicate request_size=4 [11:27:23]MH_SAM_APDU [11:27:23]CAPDU: 80 11 00 00 [11:27:23]Write to MH i2c: E2 08 00 44 09 80 11 00 00 00 00 00 00 C7 [11:27:23]Write i2c OK [11:27:23]MH_I2C_Read... [11:27:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:23]Read from MH i2c: E2 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: E2 17 00 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: E2 17 00 44 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1C [11:27:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:27:23]wFMCommunicate OK [11:27:23]CreateOFDProtocolMessage done [11:27:23]OFDSenderStorePacket 201404 [11:27:23]StoreOFDPacket docnum=201404 [11:27:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E8 56 07 01 14 52 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 1A D2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BC 12 03 00 35 04 06 00 1B 1A 97 59 E0 65 8C 7D FE FD C1 70 6E 24 [11:27:23]CheckFolder [11:27:23]dirname=/storage/ofd_packets [11:27:23]CheckFolder done [11:27:23]ProducePacketName [11:27:23]name=ofd_packets/00201404 [11:27:23]NVStorageSaveData ofd_packets/00201404 [11:27:23]File name is /storage/ofd_packets/00201404 [11:27:23]Write 301 bytes [11:27:23]NVStorageSaveData done [11:27:23]OFDSenderStorePacket done [11:27:23]KKMCreateOFDPacket done [11:27:23]NVStorageSaveData kkm_last_timestamp [11:27:23]File name is /storage/kkm_last_timestamp [11:27:23]Write 4 bytes [11:27:23]NVStorageSaveData done [11:27:23]ExternCall_PrintAddStr [11:27:23]wPrintStart [11:27:23]Write to MH i2c: 01 00 00 45 09 4E [11:27:23]Write i2c OK [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: 01 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: 01 07 00 [11:27:23]MH_I2C_Read... [11:27:23]Read from MH i2c: 01 07 00 45 09 00 00 00 00 00 FF 0F 63 [11:27:23]RasterBufferAndPrint [11:27:23]line Счет N : (1)449154 [11:27:23]line ИНН: 02508201610067 [11:27:23]line Контрольно-Кассовый Чек [11:27:23]line ПРОДАЖА [11:27:23]line ТРК (МРК, ГНК) : 62 [11:27:23]line Товар: 2710124130 [11:27:23]line Аи-92-К-2 [11:27:23]line 4.490 * 66.90 [11:27:23]line = 300.38 [11:27:23]line НДС 12% НСП 1% [11:27:23]line > о реализуемом товаре [11:27:23]line ОКРУГЛЕНИЕ: -0.38 [11:27:23]line ИТОГО: 300.00 [11:27:23]line Внесено: 300.00 [11:27:23]line СДАЧА: 0.00 [11:27:23]line НСП 1% : 2.66 [11:27:23]line НДС 12% : 31.90 [11:27:23]line Наличными: 300.00 [11:27:23]line Безнал.: 0.00 [11:27:23]line Место: АЗС № 171 "Партнер Нефть" [11:27:23]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:27:23]line СНО: Общий режим [11:27:23]line Чек 166 26.10.2024 11:27 [11:27:23]line Смена: 543 ФФД: 1.0 [11:27:23]line ЗНМ: 0300000109 [11:27:23]line РНМ: 0000000000091777 [11:27:23]line Версия ККМ: 001 [11:27:23]line ФМ: 0000000000871756 [11:27:23]line ФД: 201404 [11:27:23]line ФПД: 29801022349413 [11:27:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112722&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201404&fm=29801022349413&tin=02508201610067®Number=0000000000091777&sum=30000 [11:27:24]OFD Sender: Processing packet 201404 [packets to send 112, broken 111] [11:27:24]ProducePacketName [11:27:24]name=ofd_packets/00201404 [11:27:24]OFD Sender: To server: pG, [11:27:24]CommunicateWithHost lk.salyk.kg:30040 [11:27:24]ConnectInit lk.salyk.kg [11:27:24]written 0, free lines is 4095 [11:27:24]Connected sock=10 [11:27:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E8 56 07 01 14 52 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 1A D2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BC 12 03 00 35 04 06 00 1B 1A 97 59 E0 65 8C 7D FE FD C1 70 6E 24 [11:27:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 5A 0F 47 00 62 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BC 12 03 00 F4 03 04 00 C3 7D 1C 67 B6 04 01 00 00 35 DF AB B5 5C E8 90 60 [11:27:24]CommunicateWithHost err = 0 [11:27:24]CheckOFDResponse [11:27:24]1017 (14) - 77093643461234 [11:27:24]1041 (16) - 0000000000871756 [11:27:24]1040 (4) - 201404 [11:27:24]1012 (4) - 26.10.2024 05:27 [11:27:24]1206 (1) - 0 [11:27:24]OFD Sender: Remove packet 201404 [11:27:24]ProducePacketName [11:27:24]name=ofd_packets/00201404 [11:27:24]NVStorageDeleteData [11:27:24]Write to MH i2c: 01 00 00 70 09 79 [11:27:24]Write i2c OK [11:27:24]MH_I2C_Read... [11:27:24]Read from MH i2c: 01 [11:27:24]MH_I2C_Read... [11:27:24]Read from MH i2c: 01 07 00 [11:27:24]MH_I2C_Read... [11:27:24]Read from MH i2c: 01 07 00 70 09 00 00 00 00 00 99 0C 25 [11:27:24]RasterBufferAndPrint [11:27:24]line [11:27:24]line [11:27:24]line [11:27:24]line [11:27:24]line [11:27:24]written 0, free lines is 3232 [11:27:24]MH_Cut [11:27:24]Write to MH i2c: D1 01 00 77 09 01 52 [11:27:24]Write i2c OK [11:27:24]MH_I2C_Read... [11:27:24]Read from MH i2c: D1 [11:27:24]MH_I2C_Read... [11:27:24]Read from MH i2c: D1 01 00 [11:27:24]MH_I2C_Read... [11:27:24]Read from MH i2c: D1 01 00 77 09 00 51 [11:27:24]Write to MH i2c: 01 00 00 78 09 81 [11:27:24]Write i2c OK [11:27:24]MH_I2C_Read... [11:27:25]OFD Sender: No OFD packet to send [11:27:25]*** Cut start [11:27:25]*** Purtial cut [11:27:25]*** Stage 1: CUTSNS_PIN = 1 [11:27:25]Read from MH i2c: 01 [11:27:25]MH_I2C_Read... [11:27:25]*** Stop cut motor [11:27:25]*** Cut end [11:27:25]Read from MH i2c: 01 07 00 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: 01 07 00 78 09 00 00 00 00 00 FF 0F 96 [11:27:25]process_action close_receipt done [11:27:25]requested_data is exist [11:27:25]produce_requested_data [11:27:25]requested_item fm.sn is exist - process it [11:27:25]wFMCommunicate request_size=4 [11:27:25]MH_SAM_APDU [11:27:25]CAPDU: 80 11 00 00 [11:27:25]Write to MH i2c: E2 08 00 79 09 80 11 00 00 00 00 00 00 FC [11:27:25]Write i2c OK [11:27:25]MH_I2C_Read... [11:27:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:25]Read from MH i2c: E2 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: E2 17 00 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: E2 17 00 79 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 51 [11:27:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:27:25]wFMCommunicate OK [11:27:25]requested_item fd.num is exist - process it [11:27:25]SAM_PROTO_GetFieldsCounters [11:27:25]wFMCommunicate request_size=4 [11:27:25]MH_SAM_APDU [11:27:25]CAPDU: 80 13 00 00 [11:27:25]Write to MH i2c: E2 08 00 7A 09 80 13 00 00 00 00 00 00 FF [11:27:25]Write i2c OK [11:27:25]MH_I2C_Read... [11:27:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:26]Read from MH i2c: E2 [11:27:26]MH_I2C_Read... [11:27:26]Read from MH i2c: E2 62 00 [11:27:26]MH_I2C_Read... [11:27:26]Read from MH i2c: E2 62 00 7A 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BC 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [11:27:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BC 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:27:26]wFMCommunicate OK [11:27:26]SAM_PROTO_GetFieldsCounters done [11:27:26]requested_item shift.num is exist - process it [11:27:26]requested_item shift.opened is exist - process it [11:27:26]req_shift_opened [11:27:26]FM_GetShiftState [11:27:26]SAM_PROTO_GetShiftState [11:27:26]wFMCommunicate request_size=4 [11:27:26]MH_SAM_APDU [11:27:26]CAPDU: 80 13 01 00 [11:27:26]Write to MH i2c: E2 08 00 7B 09 80 13 01 00 00 00 00 00 01 [11:27:26]Write i2c OK [11:27:26]MH_I2C_Read... [11:27:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:26]Read from MH i2c: E2 [11:27:26]MH_I2C_Read... [11:27:26]Read from MH i2c: E2 0E 00 [11:27:26]MH_I2C_Read... [11:27:26]Read from MH i2c: E2 0E 00 7B 09 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 10 [11:27:26]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:27:26]wFMCommunicate OK [11:27:26]SAM_PROTO_GetShiftState done [11:27:26]FM_GetShiftState done [11:27:26]req_shift_opened done [11:27:26]requested_item shift.open_date is exist - process it [11:27:26]req_shift_open_date [11:27:26]req_shift_open_date done [11:27:26]produce_requested_data done [11:27:26]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201404,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:27:26]process_action_free close_receipt [11:27:26]json_value_free [11:27:26]json_value_free done [11:27:26]process_json_proto returns [11:27:26]Send response to host [11:27:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201404,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:27:26]free response buf [11:27:26]execute_script done [11:27:26]execute_script returns [11:27:26]free content buf [11:27:26]Sock 9.Close socket [11:27:26]Sock 9.Thread stoped [11:27:30]OFD Sender: No OFD packet to send [11:27:35]OFD Sender: No OFD packet to send [11:27:40]OFD Sender: No OFD packet to send [11:27:45]OFD Sender: No OFD packet to send [11:27:50]OFD Sender: No OFD packet to send [11:27:55]OFD Sender: No OFD packet to send [11:27:58]accept exits with 7 [11:27:58]New connection [11:27:58]New thread 3066641764 created [11:27:58]Thread 3066498404 joined [11:27:58]Waiting for new connection... [11:27:58] Sock 7.Parse request [11:27:58]Sock 7.Check first char [11:27:58]Sock 7.First char is OK [11:27:58]request: POST /json_proto HTTP/1.0 [11:27:58]Method: POST [11:27:58]URL: /json_proto [11:27:58]Method is POST - this is cgi request [11:27:58]url: /json_proto [11:27:58]query_string will be loaded in cgi processing [11:27:58]execute_cgi json_proto POST (null) [11:27:58]execute_cgi path=json_proto method=POST [11:27:58]POST find Content-Length [11:27:58]Host: 172.17.63.195:8080 [11:27:58]Content-Length: 677 [11:27:58]Content-Type: application/json [11:27:58] [11:27:58]POST finish read [11:27:58]Found Content-Length = 677 [11:27:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:58]execute_script... [11:27:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:58]POST & json_proto [11:27:58]process_json_proto [11:27:58]json parsed OK: [11:27:58]protocol is kg_v1.0 [11:27:58]action value=close_receipt [11:27:58]process_action close_receipt [11:27:58]cmd_close_receipt [11:27:58]MH_GetDate [11:27:58]Write to MH i2c: F0 00 00 7C 09 74 [11:27:58]Write i2c OK [11:27:58]MH_I2C_Read... [11:27:58]Read from MH i2c: F0 [11:27:58]MH_I2C_Read... [11:27:58]Read from MH i2c: F0 09 00 [11:27:58]MH_I2C_Read... [11:27:58]Read from MH i2c: F0 09 00 7C 09 00 3E D2 1C 67 68 46 19 67 3E [11:27:58]GetLastDocTimeStamp 1729942042 [11:27:58]current date 1729942078 [11:27:58]FM_GetShiftState [11:27:58]SAM_PROTO_GetShiftState [11:27:58]wFMCommunicate request_size=4 [11:27:58]MH_SAM_APDU [11:27:58]CAPDU: 80 13 01 00 [11:27:58]Write to MH i2c: E2 08 00 7D 09 80 13 01 00 00 00 00 00 03 [11:27:58]Write i2c OK [11:27:58]MH_I2C_Read... [11:27:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:58]Read from MH i2c: E2 [11:27:58]MH_I2C_Read... [11:27:58]Read from MH i2c: E2 0E 00 [11:27:58]MH_I2C_Read... [11:27:58]Read from MH i2c: E2 0E 00 7D 09 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 12 [11:27:58]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:27:58]wFMCommunicate OK [11:27:58]SAM_PROTO_GetShiftState done [11:27:58]FM_GetShiftState done [11:27:58]opened in 1729900879 [11:27:58]opened+sec_in_day 1729987279 [11:27:58]quantity*price = 30038 [11:27:58]sum+1 = 30039 [11:27:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 167 26.10.2024 11:27 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201405 ФПД: 177012283351373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112758&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201405&fm=177012283351373&tin=02508201610067®Number=0000000000091777&sum=30000 [11:27:59]StoreToDocumentArchive [11:27:59]shift 543 fd 201405 [11:27:59]save to /storage/0543/doc_00201405 [11:27:59]save last doc name /storage/0543/doc_00201405 to /storage/kkm_last_doc_name [11:27:59]save OK [11:27:59]Clear old archive folders... [11:27:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:27:59]tlvbuf is 01781DE0 [11:27:59]SAM_PROTO_ClearQueue [11:27:59]wFMCommunicate request_size=4 [11:27:59]MH_SAM_APDU [11:27:59]CAPDU: 80 09 00 00 [11:27:59]Write to MH i2c: E2 08 00 8A 09 80 09 00 00 00 00 00 00 05 [11:27:59]Write i2c OK [11:27:59]MH_I2C_Read... [11:27:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:59]Read from MH i2c: E2 [11:27:59]MH_I2C_Read... [11:27:59]Read from MH i2c: E2 03 00 [11:27:59]MH_I2C_Read... [11:27:59]Read from MH i2c: E2 03 00 8A 09 00 90 00 07 [11:27:59]RAPDU: 90 00 [11:27:59]wFMCommunicate OK [11:27:59]SAM_PROTO_ClearQueue done [11:27:59]KKMCreateOFDPacket [11:27:59]OFDProtocolAddRootSTLVToBuf [11:27:59]FM_MakeSignedData [11:27:59]FM_MakeSignedData [11:27:59]SAM_PROTO_SignData [11:27:59]wFMCommunicate request_size=4 [11:27:59]MH_SAM_APDU [11:27:59]CAPDU: 80 0D 01 02 [11:27:59]Write to MH i2c: E2 08 00 8B 09 80 0D 01 02 00 00 00 00 0D [11:27:59]Write i2c OK [11:27:59]MH_I2C_Read... [11:27:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:59]Read from MH i2c: E2 [11:27:59]MH_I2C_Read... [11:27:59]Read from MH i2c: E2 03 00 [11:27:59]MH_I2C_Read... [11:27:59]Read from MH i2c: E2 03 00 8B 09 00 90 00 08 [11:27:59]RAPDU: 90 00 [11:27:59]wFMCommunicate OK [11:27:59]wFMCommunicate request_size=255 [11:27:59]MH_SAM_APDU [11:27: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 3E D2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BD 12 03 00 35 04 06 00 A0 [11:27:59]Write to MH i2c: E2 02 01 8C 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 3E D2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BD 12 03 00 35 04 06 00 A0 00 00 62 [11:27:59]Write i2c OK [11:27:59]MH_I2C_Read... [11:27:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:59]Read from MH i2c: E2 [11:27:59]MH_I2C_Read... [11:27:59]Read from MH i2c: E2 03 00 [11:27:59]MH_I2C_Read... [11:27:59]Read from MH i2c: E2 03 00 8C 09 00 90 00 09 [11:27:59]RAPDU: 90 00 [11:27:59]wFMCommunicate OK [11:27:59]wFMCommunicate request_size=10 [11:27:59]MH_SAM_APDU [11:27:59]CAPDU: 80 0D 02 02 05 FD E2 45 21 4D [11:27:59]Write to MH i2c: E2 0D 00 8D 09 80 0D 02 02 05 00 FD E2 45 21 4D 00 00 AC [11:27:59]Write i2c OK [11:27:59]MH_I2C_Read... [11:27:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:59]Read from MH i2c: E2 [11:27:59]MH_I2C_Read... [11:27:59]Read from MH i2c: E2 03 00 [11:27:59]MH_I2C_Read... [11:27:59]Read from MH i2c: E2 03 00 8D 09 00 90 00 0A [11:27:59]RAPDU: 90 00 [11:27:59]wFMCommunicate OK [11:27:59]wFMCommunicate request_size=4 [11:27:59]MH_SAM_APDU [11:27:59]CAPDU: 80 0D 03 02 [11:27:59]Write to MH i2c: E2 08 00 8E 09 80 0D 03 02 00 00 00 00 12 [11:27:59]Write i2c OK [11:27:59]MH_I2C_Read... [11:27:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:59]Read from MH i2c: E2 [11:27:59]MH_I2C_Read... [11:27:59]Read from MH i2c: E2 0B 00 [11:27:59]MH_I2C_Read... [11:27:59]Read from MH i2c: E2 0B 00 8E 09 00 9E 22 26 38 E3 AB FB 6A 90 00 24 [11:27:59]RAPDU: 9E 22 26 38 E3 AB FB 6A 90 00 [11:27:59]wFMCommunicate OK [11:27:59]SAM_PROTO_SignData done [11:27:59]FM_MakeSignedData done [11:27:59]CreateOFDProtocolMessage [11:27:59]wFMCommunicate request_size=4 [11:27:59]MH_SAM_APDU [11:27:59]CAPDU: 80 11 00 00 [11:27:59]Write to MH i2c: E2 08 00 8F 09 80 11 00 00 00 00 00 00 12 [11:27:59]Write i2c OK [11:27:59]MH_I2C_Read... [11:27:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:59]Read from MH i2c: E2 [11:27:59]MH_I2C_Read... [11:27:59]Read from MH i2c: E2 17 00 [11:27:59]MH_I2C_Read... [11:27:59]Read from MH i2c: E2 17 00 8F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 67 [11:27:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:27:59]wFMCommunicate OK [11:27:59]CreateOFDProtocolMessage done [11:27:59]OFDSenderStorePacket 201405 [11:27:59]StoreOFDPacket docnum=201405 [11:27:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6B 1C 07 01 EC D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 3E D2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BD 12 03 00 35 04 06 00 A0 FD E2 45 21 4D 9E 22 26 38 E3 AB FB 6A [11:27:59]CheckFolder [11:27:59]dirname=/storage/ofd_packets [11:27:59]CheckFolder done [11:27:59]ProducePacketName [11:27:59]name=ofd_packets/00201405 [11:27:59]NVStorageSaveData ofd_packets/00201405 [11:27:59]File name is /storage/ofd_packets/00201405 [11:27:59]Write 301 bytes [11:27:59]NVStorageSaveData done [11:27:59]OFDSenderStorePacket done [11:27:59]KKMCreateOFDPacket done [11:27:59]NVStorageSaveData kkm_last_timestamp [11:28:00]File name is /storage/kkm_last_timestamp [11:28:00]Write 4 bytes [11:28:00]NVStorageSaveData done [11:28:00]ExternCall_PrintAddStr [11:28:00]wPrintStart [11:28:00]Write to MH i2c: 01 00 00 90 09 99 [11:28:00]Write i2c OK [11:28:00]MH_I2C_Read... [11:28:00]Read from MH i2c: 01 [11:28:00]MH_I2C_Read... [11:28:00]Read from MH i2c: 01 07 00 [11:28:00]MH_I2C_Read... [11:28:00]Read from MH i2c: 01 07 00 90 09 00 00 00 00 00 FF 0F AE [11:28:00]RasterBufferAndPrint [11:28:00]line Счет N : (1)449155 [11:28:00]line ИНН: 02508201610067 [11:28:00]line Контрольно-Кассовый Чек [11:28:00]line ПРОДАЖА [11:28:00]line ТРК (МРК, ГНК) : 52 [11:28:00]line Товар: 2710124130 [11:28:00]line Аи-92-К-2 [11:28:00]line 4.490 * 66.90 [11:28:00]line = 300.38 [11:28:00]line НДС 12% НСП 1% [11:28:00]line > о реализуемом товаре [11:28:00]line ОКРУГЛЕНИЕ: -0.38 [11:28:00]line ИТОГО: 300.00 [11:28:00]line Внесено: 300.00 [11:28:00]line СДАЧА: 0.00 [11:28:00]line НСП 1% : 2.66 [11:28:00]line НДС 12% : 31.90 [11:28:00]line Наличными: 300.00 [11:28:00]line Безнал.: 0.00 [11:28:00]line Место: АЗС № 171 "Партнер Нефть" [11:28:00]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:28:00]line СНО: Общий режим [11:28:00]line Чек 167 26.10.2024 11:27 [11:28:00]line Смена: 543 ФФД: 1.0 [11:28:00]line ЗНМ: 0300000109 [11:28:00]line РНМ: 0000000000091777 [11:28:00]line Версия ККМ: 001 [11:28:00]line ФМ: 0000000000871756 [11:28:00]line ФД: 201405 [11:28:00]line ФПД: 177012283351373 [11:28:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112758&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201405&fm=177012283351373&tin=02508201610067®Number=0000000000091777&sum=30000 [11:28:00]OFD Sender: Processing packet 201405 [packets to send 112, broken 111] [11:28:00]ProducePacketName [11:28:00]name=ofd_packets/00201405 [11:28:00]OFD Sender: To server: pG, [11:28:00]CommunicateWithHost lk.salyk.kg:30040 [11:28:00]ConnectInit lk.salyk.kg [11:28:00]written 0, free lines is 4095 [11:28:00]Connected sock=10 [11:28:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6B 1C 07 01 EC D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 3E D2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BD 12 03 00 35 04 06 00 A0 FD E2 45 21 4D 9E 22 26 38 E3 AB FB 6A [11:28:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 6A 56 47 00 C9 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BD 12 03 00 F4 03 04 00 E7 7D 1C 67 B6 04 01 00 00 8A 37 62 C7 04 56 55 DF [11:28:00]CommunicateWithHost err = 0 [11:28:00]CheckOFDResponse [11:28:00]1017 (14) - 77093643461234 [11:28:00]1041 (16) - 0000000000871756 [11:28:00]1040 (4) - 201405 [11:28:00]1012 (4) - 26.10.2024 05:28 [11:28:00]1206 (1) - 0 [11:28:00]OFD Sender: Remove packet 201405 [11:28:00]ProducePacketName [11:28:00]name=ofd_packets/00201405 [11:28:00]NVStorageDeleteData [11:28:00]Write to MH i2c: 01 00 00 BB 09 C4 [11:28:00]Write i2c OK [11:28:00]MH_I2C_Read... [11:28:00]Read from MH i2c: 01 [11:28:00]MH_I2C_Read... [11:28:00]Read from MH i2c: 01 07 00 [11:28:00]MH_I2C_Read... [11:28:00]Read from MH i2c: 01 07 00 BB 09 00 00 00 00 00 99 0C 70 [11:28:00]RasterBufferAndPrint [11:28:00]line [11:28:00]line [11:28:00]line [11:28:00]line [11:28:00]line [11:28:00]written 0, free lines is 3232 [11:28:00]MH_Cut [11:28:00]Write to MH i2c: D1 01 00 C2 09 01 9D [11:28:00]Write i2c OK [11:28:00]MH_I2C_Read... [11:28:00]Read from MH i2c: D1 [11:28:00]MH_I2C_Read... [11:28:00]Read from MH i2c: D1 01 00 [11:28:00]MH_I2C_Read... [11:28:00]Read from MH i2c: D1 01 00 C2 09 00 9C [11:28:00]Write to MH i2c: 01 00 00 C3 09 CC [11:28:00]Write i2c OK [11:28:00]MH_I2C_Read... [11:28:01]OFD Sender: No OFD packet to send [11:28:01]*** Cut start [11:28:01]*** Purtial cut [11:28:01]*** Stage 1: CUTSNS_PIN = 1 [11:28:01]Read from MH i2c: 01 [11:28:01]MH_I2C_Read... [11:28:01]*** Stop cut motor [11:28:01]*** Cut end [11:28:01]Read from MH i2c: 01 07 00 [11:28:01]MH_I2C_Read... [11:28:01]Read from MH i2c: 01 07 00 C3 09 00 00 00 00 00 FF 0F E1 [11:28:01]process_action close_receipt done [11:28:01]requested_data is exist [11:28:01]produce_requested_data [11:28:01]requested_item fm.sn is exist - process it [11:28:01]wFMCommunicate request_size=4 [11:28:01]MH_SAM_APDU [11:28:01]CAPDU: 80 11 00 00 [11:28:01]Write to MH i2c: E2 08 00 C4 09 80 11 00 00 00 00 00 00 47 [11:28:01]Write i2c OK [11:28:01]MH_I2C_Read... [11:28:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:01]Read from MH i2c: E2 [11:28:01]MH_I2C_Read... [11:28:01]Read from MH i2c: E2 17 00 [11:28:01]MH_I2C_Read... [11:28:01]Read from MH i2c: E2 17 00 C4 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9C [11:28:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:28:01]wFMCommunicate OK [11:28:01]requested_item fd.num is exist - process it [11:28:01]SAM_PROTO_GetFieldsCounters [11:28:01]wFMCommunicate request_size=4 [11:28:01]MH_SAM_APDU [11:28:01]CAPDU: 80 13 00 00 [11:28:01]Write to MH i2c: E2 08 00 C5 09 80 13 00 00 00 00 00 00 4A [11:28:01]Write i2c OK [11:28:01]MH_I2C_Read... [11:28:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:02]Read from MH i2c: E2 [11:28:02]MH_I2C_Read... [11:28:02]Read from MH i2c: E2 62 00 [11:28:02]MH_I2C_Read... [11:28:02]Read from MH i2c: E2 62 00 C5 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BD 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [11:28:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BD 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:02]wFMCommunicate OK [11:28:02]SAM_PROTO_GetFieldsCounters done [11:28:02]requested_item shift.num is exist - process it [11:28:02]requested_item shift.opened is exist - process it [11:28:02]req_shift_opened [11:28:02]FM_GetShiftState [11:28:02]SAM_PROTO_GetShiftState [11:28:02]wFMCommunicate request_size=4 [11:28:02]MH_SAM_APDU [11:28:02]CAPDU: 80 13 01 00 [11:28:02]Write to MH i2c: E2 08 00 C6 09 80 13 01 00 00 00 00 00 4C [11:28:02]Write i2c OK [11:28:02]MH_I2C_Read... [11:28:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:02]Read from MH i2c: E2 [11:28:02]MH_I2C_Read... [11:28:02]Read from MH i2c: E2 0E 00 [11:28:02]MH_I2C_Read... [11:28:02]Read from MH i2c: E2 0E 00 C6 09 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 5B [11:28:02]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:28:02]wFMCommunicate OK [11:28:02]SAM_PROTO_GetShiftState done [11:28:02]FM_GetShiftState done [11:28:02]req_shift_opened done [11:28:02]requested_item shift.open_date is exist - process it [11:28:02]req_shift_open_date [11:28:02]req_shift_open_date done [11:28:02]produce_requested_data done [11:28:02]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201405,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:28:02]process_action_free close_receipt [11:28:02]json_value_free [11:28:02]json_value_free done [11:28:02]process_json_proto returns [11:28:02]Send response to host [11:28:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201405,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:28:02]free response buf [11:28:02]execute_script done [11:28:02]execute_script returns [11:28:02]free content buf [11:28:02]Sock 7.Close socket [11:28:02]Sock 7.Thread stoped [11:28:02]accept exits with 9 [11:28:02]New connection [11:28:02]New thread 3066498404 created [11:28:02]Thread 3066641764 joined [11:28:02]Waiting for new connection... [11:28:02] Sock 9.Parse request [11:28:02]Sock 9.Check first char [11:28:02]Sock 9.First char is OK [11:28:02]request: POST /json_proto HTTP/1.0 [11:28:02]Method: POST [11:28:02]URL: /json_proto [11:28:02]Method is POST - this is cgi request [11:28:02]url: /json_proto [11:28:02]query_string will be loaded in cgi processing [11:28:02]execute_cgi json_proto POST (null) [11:28:02]execute_cgi path=json_proto method=POST [11:28:02]POST find Content-Length [11:28:02]Host: 172.17.63.195:8080 [11:28:02]Content-Length: 675 [11:28:02]Content-Type: application/json [11:28:02] [11:28:02]POST finish read [11:28:02]Found Content-Length = 675 [11:28:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:02]execute_script... [11:28:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:02]POST & json_proto [11:28:02]process_json_proto [11:28:02]json parsed OK: [11:28:02]protocol is kg_v1.0 [11:28:02]action value=close_receipt [11:28:02]process_action close_receipt [11:28:02]cmd_close_receipt [11:28:02]MH_GetDate [11:28:02]Write to MH i2c: F0 00 00 C7 09 BF [11:28:02]Write i2c OK [11:28:02]MH_I2C_Read... [11:28:02]Read from MH i2c: F0 [11:28:02]MH_I2C_Read... [11:28:02]Read from MH i2c: F0 09 00 [11:28:02]MH_I2C_Read... [11:28:02]Read from MH i2c: F0 09 00 C7 09 00 42 D2 1C 67 68 46 19 67 8D [11:28:02]GetLastDocTimeStamp 1729942078 [11:28:02]current date 1729942082 [11:28:02]FM_GetShiftState [11:28:02]SAM_PROTO_GetShiftState [11:28:02]wFMCommunicate request_size=4 [11:28:02]MH_SAM_APDU [11:28:02]CAPDU: 80 13 01 00 [11:28:02]Write to MH i2c: E2 08 00 C8 09 80 13 01 00 00 00 00 00 4E [11:28:02]Write i2c OK [11:28:02]MH_I2C_Read... [11:28:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:02]Read from MH i2c: E2 [11:28:02]MH_I2C_Read... [11:28:02]Read from MH i2c: E2 0E 00 [11:28:02]MH_I2C_Read... [11:28:02]Read from MH i2c: E2 0E 00 C8 09 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 5D [11:28:02]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:28:02]wFMCommunicate OK [11:28:02]SAM_PROTO_GetShiftState done [11:28:02]FM_GetShiftState done [11:28:02]opened in 1729900879 [11:28:02]opened+sec_in_day 1729987279 [11:28:02]quantity*price = 100000 [11:28:02]sum+1 = 100002 [11:28:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 168 26.10.2024 11:28 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201406 ФПД: 17187704739503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112802&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201406&fm=17187704739503&tin=02508201610067®Number=0000000000091777&sum=100000 [11:28:04]StoreToDocumentArchive [11:28:04]shift 543 fd 201406 [11:28:04]save to /storage/0543/doc_00201406 [11:28:04]save last doc name /storage/0543/doc_00201406 to /storage/kkm_last_doc_name [11:28:04]save OK [11:28:04]Clear old archive folders... [11:28:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:28:04]tlvbuf is 0178D7C0 [11:28:04]SAM_PROTO_ClearQueue [11:28:04]wFMCommunicate request_size=4 [11:28:04]MH_SAM_APDU [11:28:04]CAPDU: 80 09 00 00 [11:28:04]Write to MH i2c: E2 08 00 D5 09 80 09 00 00 00 00 00 00 50 [11:28:04]Write i2c OK [11:28:04]MH_I2C_Read... [11:28:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:04]Read from MH i2c: E2 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: E2 03 00 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: E2 03 00 D5 09 00 90 00 52 [11:28:04]RAPDU: 90 00 [11:28:04]wFMCommunicate OK [11:28:04]SAM_PROTO_ClearQueue done [11:28:04]KKMCreateOFDPacket [11:28:04]OFDProtocolAddRootSTLVToBuf [11:28:04]FM_MakeSignedData [11:28:04]FM_MakeSignedData [11:28:04]SAM_PROTO_SignData [11:28:04]wFMCommunicate request_size=4 [11:28:04]MH_SAM_APDU [11:28:04]CAPDU: 80 0D 01 02 [11:28:04]Write to MH i2c: E2 08 00 D6 09 80 0D 01 02 00 00 00 00 58 [11:28:04]Write i2c OK [11:28:04]MH_I2C_Read... [11:28:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:04]Read from MH i2c: E2 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: E2 03 00 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: E2 03 00 D6 09 00 90 00 53 [11:28:04]RAPDU: 90 00 [11:28:04]wFMCommunicate OK [11:28:04]wFMCommunicate request_size=255 [11:28:04]MH_SAM_APDU [11:28:04]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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 A8 00 00 00 F4 03 04 00 42 D2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BE 12 03 00 35 04 06 00 [11:28:04]Write to MH i2c: E2 02 01 D7 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 A8 00 00 00 F4 03 04 00 42 D2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BE 12 03 00 35 04 06 00 00 00 F4 [11:28:04]Write i2c OK [11:28:04]MH_I2C_Read... [11:28:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:04]Read from MH i2c: E2 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: E2 03 00 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: E2 03 00 D7 09 00 90 00 54 [11:28:04]RAPDU: 90 00 [11:28:04]wFMCommunicate OK [11:28:04]wFMCommunicate request_size=11 [11:28:04]MH_SAM_APDU [11:28:04]CAPDU: 80 0D 02 02 06 0F A1 D3 09 16 AF [11:28:04]Write to MH i2c: E2 0E 00 D8 09 80 0D 02 02 06 00 0F A1 D3 09 16 AF 00 00 B8 [11:28:04]Write i2c OK [11:28:04]MH_I2C_Read... [11:28:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:04]Read from MH i2c: E2 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: E2 03 00 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: E2 03 00 D8 09 00 90 00 55 [11:28:04]RAPDU: 90 00 [11:28:04]wFMCommunicate OK [11:28:04]wFMCommunicate request_size=4 [11:28:04]MH_SAM_APDU [11:28:04]CAPDU: 80 0D 03 02 [11:28:04]Write to MH i2c: E2 08 00 D9 09 80 0D 03 02 00 00 00 00 5D [11:28:04]Write i2c OK [11:28:04]MH_I2C_Read... [11:28:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:04]Read from MH i2c: E2 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: E2 0B 00 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: E2 0B 00 D9 09 00 5A B7 F1 76 2C 81 BC 88 90 00 C7 [11:28:04]RAPDU: 5A B7 F1 76 2C 81 BC 88 90 00 [11:28:04]wFMCommunicate OK [11:28:04]SAM_PROTO_SignData done [11:28:04]FM_MakeSignedData done [11:28:04]CreateOFDProtocolMessage [11:28:04]wFMCommunicate request_size=4 [11:28:04]MH_SAM_APDU [11:28:04]CAPDU: 80 11 00 00 [11:28:04]Write to MH i2c: E2 08 00 DA 09 80 11 00 00 00 00 00 00 5D [11:28:04]Write i2c OK [11:28:04]MH_I2C_Read... [11:28:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:04]Read from MH i2c: E2 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: E2 17 00 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: E2 17 00 DA 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B2 [11:28:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:28:04]wFMCommunicate OK [11:28:04]CreateOFDProtocolMessage done [11:28:04]OFDSenderStorePacket 201406 [11:28:04]StoreOFDPacket docnum=201406 [11:28:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 67 8E 08 01 25 5A 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 A8 00 00 00 F4 03 04 00 42 D2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BE 12 03 00 35 04 06 00 0F A1 D3 09 16 AF 5A B7 F1 76 2C 81 BC 88 [11:28:04]CheckFolder [11:28:04]dirname=/storage/ofd_packets [11:28:04]CheckFolder done [11:28:04]ProducePacketName [11:28:04]name=ofd_packets/00201406 [11:28:04]NVStorageSaveData ofd_packets/00201406 [11:28:04]File name is /storage/ofd_packets/00201406 [11:28:04]Write 302 bytes [11:28:04]NVStorageSaveData done [11:28:04]OFDSenderStorePacket done [11:28:04]KKMCreateOFDPacket done [11:28:04]NVStorageSaveData kkm_last_timestamp [11:28:04]File name is /storage/kkm_last_timestamp [11:28:04]Write 4 bytes [11:28:04]NVStorageSaveData done [11:28:04]ExternCall_PrintAddStr [11:28:04]wPrintStart [11:28:04]Write to MH i2c: 01 00 00 DB 09 E4 [11:28:04]Write i2c OK [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: 01 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: 01 07 00 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: 01 07 00 DB 09 00 00 00 00 00 FF 0F F9 [11:28:04]RasterBufferAndPrint [11:28:04]line Счет N : (1)449152 [11:28:04]line ИНН: 02508201610067 [11:28:04]line Контрольно-Кассовый Чек [11:28:04]line ПРОДАЖА [11:28:04]line ТРК (МРК, ГНК) : 32 [11:28:04]line Товар: 2710124130 [11:28:04]line SUPER 92-К-5 [11:28:04]line 14.620 * 68.40 [11:28:04]line = 1000.01 [11:28:04]line НДС 12% НСП 1% [11:28:04]line > о реализуемом товаре [11:28:04]line ОКРУГЛЕНИЕ: -0.01 [11:28:04]line ИТОГО: 1000.00 [11:28:04]line Внесено: 1000.00 [11:28:04]line СДАЧА: 0.00 [11:28:04]line НСП 1% : 8.85 [11:28:04]line НДС 12% : 106.20 [11:28:04]line Наличными: 1000.00 [11:28:04]line Безнал.: 0.00 [11:28:04]line Место: АЗС № 171 "Партнер Нефть" [11:28:04]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:28:04]line СНО: Общий режим [11:28:04]line Чек 168 26.10.2024 11:28 [11:28:04]line Смена: 543 ФФД: 1.0 [11:28:04]line ЗНМ: 0300000109 [11:28:04]line РНМ: 0000000000091777 [11:28:04]line Версия ККМ: 001 [11:28:04]line ФМ: 0000000000871756 [11:28:04]line ФД: 201406 [11:28:04]line ФПД: 17187704739503 [11:28:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112802&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201406&fm=17187704739503&tin=02508201610067®Number=0000000000091777&sum=100000 [11:28:04]written 0, free lines is 4095 [11:28:04]OFD Sender: Processing packet 201406 [packets to send 112, broken 111] [11:28:04]ProducePacketName [11:28:04]name=ofd_packets/00201406 [11:28:04]OFD Sender: To server: pG, [11:28:04]CommunicateWithHost lk.salyk.kg:30040 [11:28:04]ConnectInit lk.salyk.kg [11:28:04]Connected sock=10 [11:28:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 67 8E 08 01 25 5A 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 A8 00 00 00 F4 03 04 00 42 D2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BE 12 03 00 35 04 06 00 0F A1 D3 09 16 AF 5A B7 F1 76 2C 81 BC 88 [11:28:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 AA 65 47 00 4F DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BE 12 03 00 F4 03 04 00 EC 7D 1C 67 B6 04 01 00 00 EB 4B E6 29 7C 14 8D A5 [11:28:05]CommunicateWithHost err = 0 [11:28:05]CheckOFDResponse [11:28:05]1017 (14) - 77093643461234 [11:28:05]1041 (16) - 0000000000871756 [11:28:05]1040 (4) - 201406 [11:28:05]1012 (4) - 26.10.2024 05:28 [11:28:05]1206 (1) - 0 [11:28:05]OFD Sender: Remove packet 201406 [11:28:05]ProducePacketName [11:28:05]name=ofd_packets/00201406 [11:28:05]NVStorageDeleteData [11:28:05]Write to MH i2c: 01 00 00 06 0A 10 [11:28:05]Write i2c OK [11:28:05]MH_I2C_Read... [11:28:05]Read from MH i2c: 01 [11:28:05]MH_I2C_Read... [11:28:05]Read from MH i2c: 01 07 00 [11:28:05]MH_I2C_Read... [11:28:05]Read from MH i2c: 01 07 00 06 0A 00 00 00 00 00 A3 0C C6 [11:28:05]RasterBufferAndPrint [11:28:05]line [11:28:05]line [11:28:05]line [11:28:05]line [11:28:05]line [11:28:05]written 0, free lines is 3244 [11:28:05]MH_Cut [11:28:05]Write to MH i2c: D1 01 00 0D 0A 01 E9 [11:28:05]Write i2c OK [11:28:05]MH_I2C_Read... [11:28:05]Read from MH i2c: D1 [11:28:05]MH_I2C_Read... [11:28:05]Read from MH i2c: D1 01 00 [11:28:05]MH_I2C_Read... [11:28:05]Read from MH i2c: D1 01 00 0D 0A 00 E8 [11:28:05]Write to MH i2c: 01 00 00 0E 0A 18 [11:28:05]Write i2c OK [11:28:05]MH_I2C_Read... [11:28:05]OFD Sender: No OFD packet to send [11:28:05]*** Cut start [11:28:05]*** Purtial cut [11:28:05]*** Stage 1: CUTSNS_PIN = 1 [11:28:06]Read from MH i2c: 01 [11:28:06]MH_I2C_Read... [11:28:06]*** Stop cut motor [11:28:06]*** Cut end [11:28:06]Read from MH i2c: 01 07 00 [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: 01 07 00 0E 0A 00 00 00 00 00 FF 0F 2D [11:28:06]process_action close_receipt done [11:28:06]requested_data is exist [11:28:06]produce_requested_data [11:28:06]requested_item fm.sn is exist - process it [11:28:06]wFMCommunicate request_size=4 [11:28:06]MH_SAM_APDU [11:28:06]CAPDU: 80 11 00 00 [11:28:06]Write to MH i2c: E2 08 00 0F 0A 80 11 00 00 00 00 00 00 93 [11:28:06]Write i2c OK [11:28:06]MH_I2C_Read... [11:28:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:06]Read from MH i2c: E2 [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: E2 17 00 [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: E2 17 00 0F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E8 [11:28:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:28:06]wFMCommunicate OK [11:28:06]requested_item fd.num is exist - process it [11:28:06]SAM_PROTO_GetFieldsCounters [11:28:06]wFMCommunicate request_size=4 [11:28:06]MH_SAM_APDU [11:28:06]CAPDU: 80 13 00 00 [11:28:06]Write to MH i2c: E2 08 00 10 0A 80 13 00 00 00 00 00 00 96 [11:28:06]Write i2c OK [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: E2 [11:28:06]MH_I2C_Read... [11:28:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:06]Read from MH i2c: E2 62 00 [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: E2 62 00 10 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BE 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [11:28:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BE 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:06]wFMCommunicate OK [11:28:06]SAM_PROTO_GetFieldsCounters done [11:28:06]requested_item shift.num is exist - process it [11:28:06]requested_item shift.opened is exist - process it [11:28:06]req_shift_opened [11:28:06]FM_GetShiftState [11:28:06]SAM_PROTO_GetShiftState [11:28:06]wFMCommunicate request_size=4 [11:28:06]MH_SAM_APDU [11:28:06]CAPDU: 80 13 01 00 [11:28:06]Write to MH i2c: E2 08 00 11 0A 80 13 01 00 00 00 00 00 98 [11:28:06]Write i2c OK [11:28:06]MH_I2C_Read... [11:28:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:06]Read from MH i2c: E2 [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: E2 0E 00 [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: E2 0E 00 11 0A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 A7 [11:28:06]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:28:06]wFMCommunicate OK [11:28:06]SAM_PROTO_GetShiftState done [11:28:06]FM_GetShiftState done [11:28:06]req_shift_opened done [11:28:06]requested_item shift.open_date is exist - process it [11:28:06]req_shift_open_date [11:28:06]req_shift_open_date done [11:28:06]produce_requested_data done [11:28:06]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201406,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:28:06]process_action_free close_receipt [11:28:06]json_value_free [11:28:06]json_value_free done [11:28:06]process_json_proto returns [11:28:06]Send response to host [11:28:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201406,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:28:06]free response buf [11:28:06]execute_script done [11:28:06]execute_script returns [11:28:06]free content buf [11:28:06]Sock 9.Close socket [11:28:06]Sock 9.Thread stoped [11:28:07]accept exits with 7 [11:28:07]New connection [11:28:07]New thread 3066641764 created [11:28:07]Thread 3066498404 joined [11:28:07]Waiting for new connection... [11:28:07] Sock 7.Parse request [11:28:07]Sock 7.Check first char [11:28:07]Sock 7.First char is OK [11:28:07]request: POST /json_proto HTTP/1.0 [11:28:07]Method: POST [11:28:07]URL: /json_proto [11:28:07]Method is POST - this is cgi request [11:28:07]url: /json_proto [11:28:07]query_string will be loaded in cgi processing [11:28:07]execute_cgi json_proto POST (null) [11:28:07]execute_cgi path=json_proto method=POST [11:28:07]POST find Content-Length [11:28:07]Host: 172.17.63.195:8080 [11:28:07]Content-Length: 671 [11:28:07]Content-Type: application/json [11:28:07] [11:28:07]POST finish read [11:28:07]Found Content-Length = 671 [11:28:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 0.010, "sum" : 0.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:07]execute_script... [11:28:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 0.010, "sum" : 0.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:07]POST & json_proto [11:28:07]process_json_proto [11:28:07]json parsed OK: [11:28:07]protocol is kg_v1.0 [11:28:07]action value=close_receipt [11:28:07]process_action close_receipt [11:28:07]cmd_close_receipt [11:28:07]MH_GetDate [11:28:07]Write to MH i2c: F0 00 00 12 0A 0B [11:28:07]Write i2c OK [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: F0 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: F0 09 00 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: F0 09 00 12 0A 00 47 D2 1C 67 68 46 19 67 DE [11:28:07]GetLastDocTimeStamp 1729942082 [11:28:07]current date 1729942087 [11:28:07]FM_GetShiftState [11:28:07]SAM_PROTO_GetShiftState [11:28:07]wFMCommunicate request_size=4 [11:28:07]MH_SAM_APDU [11:28:07]CAPDU: 80 13 01 00 [11:28:07]Write to MH i2c: E2 08 00 13 0A 80 13 01 00 00 00 00 00 9A [11:28:07]Write i2c OK [11:28:07]MH_I2C_Read... [11:28:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:07]Read from MH i2c: E2 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: E2 0E 00 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: E2 0E 00 13 0A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 A9 [11:28:07]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:28:07]wFMCommunicate OK [11:28:07]SAM_PROTO_GetShiftState done [11:28:07]FM_GetShiftState done [11:28:07]opened in 1729900879 [11:28:07]opened+sec_in_day 1729987279 [11:28:07]quantity*price = 66 [11:28:07]sum+1 = 68 [11:28:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 0.00 Внесено: 300.00 СДАЧА: 300.00 НСП 1% : 0.01 НДС 12% : 0.07 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 169 26.10.2024 11:28 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201407 ФПД: 102685556694864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112807&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201407&fm=102685556694864&tin=02508201610067®Number=0000000000091777&sum=0 [11:28:08]StoreToDocumentArchive [11:28:08]shift 543 fd 201407 [11:28:08]save to /storage/0543/doc_00201407 [11:28:08]save last doc name /storage/0543/doc_00201407 to /storage/kkm_last_doc_name [11:28:08]save OK [11:28:08]Clear old archive folders... [11:28:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:28:08]tlvbuf is 017B7D20 [11:28:08]SAM_PROTO_ClearQueue [11:28:08]wFMCommunicate request_size=4 [11:28:08]MH_SAM_APDU [11:28:08]CAPDU: 80 09 00 00 [11:28:08]Write to MH i2c: E2 08 00 20 0A 80 09 00 00 00 00 00 00 9C [11:28:08]Write i2c OK [11:28:08]MH_I2C_Read... [11:28:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:08]Read from MH i2c: E2 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 03 00 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 03 00 20 0A 00 90 00 9E [11:28:08]RAPDU: 90 00 [11:28:08]wFMCommunicate OK [11:28:08]SAM_PROTO_ClearQueue done [11:28:08]KKMCreateOFDPacket [11:28:08]OFDProtocolAddRootSTLVToBuf [11:28:08]FM_MakeSignedData [11:28:08]FM_MakeSignedData [11:28:08]SAM_PROTO_SignData [11:28:08]wFMCommunicate request_size=4 [11:28:08]MH_SAM_APDU [11:28:08]CAPDU: 80 0D 01 02 [11:28:08]Write to MH i2c: E2 08 00 21 0A 80 0D 01 02 00 00 00 00 A4 [11:28:08]Write i2c OK [11:28:08]MH_I2C_Read... [11:28:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:08]Read from MH i2c: E2 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 03 00 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 03 00 21 0A 00 90 00 9F [11:28:08]RAPDU: 90 00 [11:28:08]wFMCommunicate OK [11:28:08]wFMCommunicate request_size=255 [11:28:08]MH_SAM_APDU [11:28:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 47 D2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BF 12 03 00 35 04 06 00 5D [11:28:08]Write to MH i2c: E2 02 01 22 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 47 D2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BF 12 03 00 35 04 06 00 5D 00 00 DB [11:28:08]Write i2c OK [11:28:08]MH_I2C_Read... [11:28:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:09]Read from MH i2c: E2 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: E2 03 00 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: E2 03 00 22 0A 00 90 00 A0 [11:28:09]RAPDU: 90 00 [11:28:09]wFMCommunicate OK [11:28:09]wFMCommunicate request_size=10 [11:28:09]MH_SAM_APDU [11:28:09]CAPDU: 80 0D 02 02 05 64 58 21 5F 50 [11:28:09]Write to MH i2c: E2 0D 00 23 0A 80 0D 02 02 05 00 64 58 21 5F 50 00 00 3D [11:28:09]Write i2c OK [11:28:09]MH_I2C_Read... [11:28:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:09]Read from MH i2c: E2 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: E2 03 00 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: E2 03 00 23 0A 00 90 00 A1 [11:28:09]RAPDU: 90 00 [11:28:09]wFMCommunicate OK [11:28:09]wFMCommunicate request_size=4 [11:28:09]MH_SAM_APDU [11:28:09]CAPDU: 80 0D 03 02 [11:28:09]Write to MH i2c: E2 08 00 24 0A 80 0D 03 02 00 00 00 00 A9 [11:28:09]Write i2c OK [11:28:09]MH_I2C_Read... [11:28:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:09]Read from MH i2c: E2 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: E2 0B 00 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: E2 0B 00 24 0A 00 9F C3 05 76 8E FD 77 78 90 00 01 [11:28:09]RAPDU: 9F C3 05 76 8E FD 77 78 90 00 [11:28:09]wFMCommunicate OK [11:28:09]SAM_PROTO_SignData done [11:28:09]FM_MakeSignedData done [11:28:09]CreateOFDProtocolMessage [11:28:09]wFMCommunicate request_size=4 [11:28:09]MH_SAM_APDU [11:28:09]CAPDU: 80 11 00 00 [11:28:09]Write to MH i2c: E2 08 00 25 0A 80 11 00 00 00 00 00 00 A9 [11:28:09]Write i2c OK [11:28:09]MH_I2C_Read... [11:28:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:09]Read from MH i2c: E2 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: E2 17 00 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: E2 17 00 25 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FE [11:28:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:28:09]wFMCommunicate OK [11:28:09]CreateOFDProtocolMessage done [11:28:09]OFDSenderStorePacket 201407 [11:28:09]StoreOFDPacket docnum=201407 [11:28:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 7D 88 07 01 8C AC 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 32 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 47 D2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BF 12 03 00 35 04 06 00 5D 64 58 21 5F 50 9F C3 05 76 8E FD 77 78 [11:28:09]CheckFolder [11:28:09]dirname=/storage/ofd_packets [11:28:09]CheckFolder done [11:28:09]ProducePacketName [11:28:09]name=ofd_packets/00201407 [11:28:09]NVStorageSaveData ofd_packets/00201407 [11:28:09]File name is /storage/ofd_packets/00201407 [11:28:09]Write 301 bytes [11:28:09]NVStorageSaveData done [11:28:09]OFDSenderStorePacket done [11:28:09]KKMCreateOFDPacket done [11:28:09]NVStorageSaveData kkm_last_timestamp [11:28:09]File name is /storage/kkm_last_timestamp [11:28:09]Write 4 bytes [11:28:09]NVStorageSaveData done [11:28:09]ExternCall_PrintAddStr [11:28:09]wPrintStart [11:28:09]Write to MH i2c: 01 00 00 26 0A 30 [11:28:09]OFD Sender: Processing packet 201407 [packets to send 112, broken 111] [11:28:09]ProducePacketName [11:28:09]name=ofd_packets/00201407 [11:28:09]OFD Sender: To server: pG, [11:28:09]CommunicateWithHost lk.salyk.kg:30040 [11:28:09]ConnectInit lk.salyk.kg [11:28:09]Write i2c OK [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: 01 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: 01 07 00 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: 01 07 00 26 0A 00 00 00 00 00 FF 0F 45 [11:28:09]RasterBufferAndPrint [11:28:09]line Счет N : (1)449156 [11:28:09]line ИНН: 02508201610067 [11:28:09]line Контрольно-Кассовый Чек [11:28:09]line ПРОДАЖА [11:28:09]line ТРК (МРК, ГНК) : 41 [11:28:09]line Товар: 2710124130 [11:28:09]line Аи-92-К-2 [11:28:09]line 0.010 * 66.90 [11:28:09]line = 0.67 [11:28:09]line НДС 12% НСП 1% [11:28:09]line > о реализуемом товаре [11:28:09]line ОКРУГЛЕНИЕ: -0.67 [11:28:09]line ИТОГО: 0.00 [11:28:09]line Внесено: 300.00 [11:28:09]line СДАЧА: 300.00 [11:28:09]line НСП 1% : 0.01 [11:28:09]line НДС 12% : 0.07 [11:28:09]line Наличными: 0.00 [11:28:09]line Безнал.: 0.00 [11:28:09]line Место: АЗС № 171 "Партнер Нефть" [11:28:09]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:28:09]line СНО: Общий режим [11:28:09]line Чек 169 26.10.2024 11:28 [11:28:09]line Смена: 543 ФФД: 1.0 [11:28:09]line ЗНМ: 0300000109 [11:28:09]line РНМ: 0000000000091777 [11:28:09]line Версия ККМ: 001 [11:28:09]line ФМ: 0000000000871756 [11:28:09]line ФД: 201407 [11:28:09]line ФПД: 102685556694864 [11:28:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112807&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201407&fm=102685556694864&tin=02508201610067®Number=0000000000091777&sum=0 [11:28:09]written 0, free lines is 4095 [11:28:09]Connected sock=10 [11:28:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 7D 88 07 01 8C AC 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 32 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 47 D2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BF 12 03 00 35 04 06 00 5D 64 58 21 5F 50 9F C3 05 76 8E FD 77 78 [11:28:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 CA 7B 47 00 0F 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BF 12 03 00 F4 03 04 00 F0 7D 1C 67 B6 04 01 00 00 B4 8C 6A 9F A8 EE 6C A5 [11:28:09]CommunicateWithHost err = 0 [11:28:09]CheckOFDResponse [11:28:09]1017 (14) - 77093643461234 [11:28:09]1041 (16) - 0000000000871756 [11:28:09]1040 (4) - 201407 [11:28:09]1012 (4) - 26.10.2024 05:28 [11:28:09]1206 (1) - 0 [11:28:09]OFD Sender: Remove packet 201407 [11:28:09]ProducePacketName [11:28:09]name=ofd_packets/00201407 [11:28:09]NVStorageDeleteData [11:28:09]Write to MH i2c: 01 00 00 51 0A 5B [11:28:09]Write i2c OK [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: 01 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: 01 07 00 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: 01 07 00 51 0A 00 00 00 00 00 B0 0C 1E [11:28:09]RasterBufferAndPrint [11:28:09]line [11:28:09]line [11:28:09]line [11:28:09]line [11:28:09]line [11:28:09]written 0, free lines is 3267 [11:28:09]MH_Cut [11:28:09]Write to MH i2c: D1 01 00 58 0A 01 34 [11:28:09]Write i2c OK [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: D1 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: D1 01 00 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: D1 01 00 58 0A 00 33 [11:28:09]Write to MH i2c: 01 00 00 59 0A 63 [11:28:09]Write i2c OK [11:28:09]MH_I2C_Read... [11:28:10]OFD Sender: No OFD packet to send [11:28:10]*** Cut start [11:28:10]*** Purtial cut [11:28:10]*** Stage 1: CUTSNS_PIN = 1 [11:28:10]Read from MH i2c: 01 [11:28:10]MH_I2C_Read... [11:28:10]*** Stop cut motor [11:28:10]*** Cut end [11:28:10]Read from MH i2c: 01 07 00 [11:28:10]MH_I2C_Read... [11:28:10]Read from MH i2c: 01 07 00 59 0A 00 00 00 00 00 FF 0F 78 [11:28:10]process_action close_receipt done [11:28:10]requested_data is exist [11:28:10]produce_requested_data [11:28:10]requested_item fm.sn is exist - process it [11:28:10]wFMCommunicate request_size=4 [11:28:10]MH_SAM_APDU [11:28:10]CAPDU: 80 11 00 00 [11:28:10]Write to MH i2c: E2 08 00 5A 0A 80 11 00 00 00 00 00 00 DE [11:28:10]Write i2c OK [11:28:10]MH_I2C_Read... [11:28:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:10]Read from MH i2c: E2 [11:28:10]MH_I2C_Read... [11:28:10]Read from MH i2c: E2 17 00 [11:28:10]MH_I2C_Read... [11:28:10]Read from MH i2c: E2 17 00 5A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 33 [11:28:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:28:10]wFMCommunicate OK [11:28:10]requested_item fd.num is exist - process it [11:28:10]SAM_PROTO_GetFieldsCounters [11:28:10]wFMCommunicate request_size=4 [11:28:10]MH_SAM_APDU [11:28:10]CAPDU: 80 13 00 00 [11:28:10]Write to MH i2c: E2 08 00 5B 0A 80 13 00 00 00 00 00 00 E1 [11:28:10]Write i2c OK [11:28:10]MH_I2C_Read... [11:28:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:11]Read from MH i2c: E2 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 62 00 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 62 00 5B 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BF 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [11:28:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BF 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:11]wFMCommunicate OK [11:28:11]SAM_PROTO_GetFieldsCounters done [11:28:11]requested_item shift.num is exist - process it [11:28:11]requested_item shift.opened is exist - process it [11:28:11]req_shift_opened [11:28:11]FM_GetShiftState [11:28:11]SAM_PROTO_GetShiftState [11:28:11]wFMCommunicate request_size=4 [11:28:11]MH_SAM_APDU [11:28:11]CAPDU: 80 13 01 00 [11:28:11]Write to MH i2c: E2 08 00 5C 0A 80 13 01 00 00 00 00 00 E3 [11:28:11]Write i2c OK [11:28:11]MH_I2C_Read... [11:28:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:11]Read from MH i2c: E2 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 0E 00 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 0E 00 5C 0A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F2 [11:28:11]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:28:11]wFMCommunicate OK [11:28:11]SAM_PROTO_GetShiftState done [11:28:11]FM_GetShiftState done [11:28:11]req_shift_opened done [11:28:11]requested_item shift.open_date is exist - process it [11:28:11]req_shift_open_date [11:28:11]req_shift_open_date done [11:28:11]produce_requested_data done [11:28:11]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201407,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:28:11]process_action_free close_receipt [11:28:11]json_value_free [11:28:11]json_value_free done [11:28:11]process_json_proto returns [11:28:11]Send response to host [11:28:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201407,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:28:11]free response buf [11:28:11]execute_script done [11:28:11]execute_script returns [11:28:11]free content buf [11:28:11]Sock 7.Close socket [11:28:11]Sock 7.Thread stoped [11:28:15]OFD Sender: No OFD packet to send [11:28:20]OFD Sender: No OFD packet to send [11:28:25]OFD Sender: No OFD packet to send [11:28:30]OFD Sender: No OFD packet to send [11:28:35]OFD Sender: No OFD packet to send [11:28:40]OFD Sender: No OFD packet to send [11:28:45]OFD Sender: No OFD packet to send [11:28:50]OFD Sender: No OFD packet to send [11:28:55]OFD Sender: No OFD packet to send [11:29:00]OFD Sender: No OFD packet to send [11:29:05]OFD Sender: No OFD packet to send [11:29:10]OFD Sender: No OFD packet to send [11:29:12]accept exits with 9 [11:29:12]New connection [11:29:12]New thread 3066498404 created [11:29:12]Thread 3066641764 joined [11:29:12]Waiting for new connection... [11:29:12] Sock 9.Parse request [11:29:12]Sock 9.Check first char [11:29:12]Sock 9.First char is OK [11:29:12]request: POST /json_proto HTTP/1.0 [11:29:12]Method: POST [11:29:12]URL: /json_proto [11:29:12]Method is POST - this is cgi request [11:29:12]url: /json_proto [11:29:12]query_string will be loaded in cgi processing [11:29:12]execute_cgi json_proto POST (null) [11:29:12]execute_cgi path=json_proto method=POST [11:29:12]POST find Content-Length [11:29:12]Host: 172.17.63.195:8080 [11:29:12]Content-Length: 677 [11:29:12]Content-Type: application/json [11:29:12] [11:29:12]POST finish read [11:29:12]Found Content-Length = 677 [11:29:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.470, "sum" : 299.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 299.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:12]execute_script... [11:29: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)449157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.470, "sum" : 299.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 299.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:12]POST & json_proto [11:29:12]process_json_proto [11:29:12]json parsed OK: [11:29:12]protocol is kg_v1.0 [11:29:12]action value=close_receipt [11:29:12]process_action close_receipt [11:29:12]cmd_close_receipt [11:29:12]MH_GetDate [11:29:12]Write to MH i2c: F0 00 00 5D 0A 56 [11:29:12]Write i2c OK [11:29:12]MH_I2C_Read... [11:29:12]Read from MH i2c: F0 [11:29:12]MH_I2C_Read... [11:29:12]Read from MH i2c: F0 09 00 [11:29:12]MH_I2C_Read... [11:29:12]Read from MH i2c: F0 09 00 5D 0A 00 88 D2 1C 67 68 46 19 67 6A [11:29:12]GetLastDocTimeStamp 1729942087 [11:29:12]current date 1729942152 [11:29:12]FM_GetShiftState [11:29:12]SAM_PROTO_GetShiftState [11:29:12]wFMCommunicate request_size=4 [11:29:12]MH_SAM_APDU [11:29:12]CAPDU: 80 13 01 00 [11:29:12]Write to MH i2c: E2 08 00 5E 0A 80 13 01 00 00 00 00 00 E5 [11:29:12]Write i2c OK [11:29:12]MH_I2C_Read... [11:29:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:12]Read from MH i2c: E2 [11:29:12]MH_I2C_Read... [11:29:12]Read from MH i2c: E2 0E 00 [11:29:12]MH_I2C_Read... [11:29:12]Read from MH i2c: E2 0E 00 5E 0A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F4 [11:29:12]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:29:12]wFMCommunicate OK [11:29:12]SAM_PROTO_GetShiftState done [11:29:12]FM_GetShiftState done [11:29:12]opened in 1729900879 [11:29:12]opened+sec_in_day 1729987279 [11:29:12]quantity*price = 29904 [11:29:12]sum+1 = 29905 [11:29:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 299.00 Внесено: 299.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.76 Наличными: 299.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 170 26.10.2024 11:29 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201408 ФПД: 131151696075064 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112912&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201408&fm=131151696075064&tin=02508201610067®Number=0000000000091777&sum=29900 [11:29:13]StoreToDocumentArchive [11:29:13]shift 543 fd 201408 [11:29:13]save to /storage/0543/doc_00201408 [11:29:13]save last doc name /storage/0543/doc_00201408 to /storage/kkm_last_doc_name [11:29:13]save OK [11:29:13]Clear old archive folders... [11:29:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:13]tlvbuf is 01781320 [11:29:13]SAM_PROTO_ClearQueue [11:29:13]wFMCommunicate request_size=4 [11:29:13]MH_SAM_APDU [11:29:13]CAPDU: 80 09 00 00 [11:29:13]Write to MH i2c: E2 08 00 6B 0A 80 09 00 00 00 00 00 00 E7 [11:29:13]Write i2c OK [11:29:13]MH_I2C_Read... [11:29:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:13]Read from MH i2c: E2 [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: E2 03 00 [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: E2 03 00 6B 0A 00 90 00 E9 [11:29:13]RAPDU: 90 00 [11:29:13]wFMCommunicate OK [11:29:13]SAM_PROTO_ClearQueue done [11:29:13]KKMCreateOFDPacket [11:29:13]OFDProtocolAddRootSTLVToBuf [11:29:13]FM_MakeSignedData [11:29:13]FM_MakeSignedData [11:29:13]SAM_PROTO_SignData [11:29:13]wFMCommunicate request_size=4 [11:29:13]MH_SAM_APDU [11:29:13]CAPDU: 80 0D 01 02 [11:29:13]Write to MH i2c: E2 08 00 6C 0A 80 0D 01 02 00 00 00 00 EF [11:29:13]Write i2c OK [11:29:13]MH_I2C_Read... [11:29:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:13]Read from MH i2c: E2 [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: E2 03 00 [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: E2 03 00 6C 0A 00 90 00 EA [11:29:13]RAPDU: 90 00 [11:29:13]wFMCommunicate OK [11:29:13]wFMCommunicate request_size=255 [11:29:13]MH_SAM_APDU [11:29: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 32 FF 03 08 00 03 76 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D0 74 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 88 D2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C0 12 03 00 35 04 06 00 77 [11:29:13]Write to MH i2c: E2 02 01 6D 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 76 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D0 74 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 88 D2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C0 12 03 00 35 04 06 00 77 00 00 F7 [11:29:13]Write i2c OK [11:29:13]MH_I2C_Read... [11:29:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:13]Read from MH i2c: E2 [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: E2 03 00 [11:29:13]MH_I2C_Read... [11:29:13]Read from MH i2c: E2 03 00 6D 0A 00 90 00 EB [11:29:13]RAPDU: 90 00 [11:29:13]wFMCommunicate OK [11:29:13]wFMCommunicate request_size=10 [11:29:13]MH_SAM_APDU [11:29:13]CAPDU: 80 0D 02 02 05 48 22 41 99 38 [11:29:13]Write to MH i2c: E2 0D 00 6E 0A 80 0D 02 02 05 00 48 22 41 99 38 00 00 78 [11:29:13]Write i2c OK [11:29:13]MH_I2C_Read... [11:29:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:14]Read from MH i2c: E2 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: E2 03 00 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: E2 03 00 6E 0A 00 90 00 EC [11:29:14]RAPDU: 90 00 [11:29:14]wFMCommunicate OK [11:29:14]wFMCommunicate request_size=4 [11:29:14]MH_SAM_APDU [11:29:14]CAPDU: 80 0D 03 02 [11:29:14]Write to MH i2c: E2 08 00 6F 0A 80 0D 03 02 00 00 00 00 F4 [11:29:14]Write i2c OK [11:29:14]MH_I2C_Read... [11:29:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:14]Read from MH i2c: E2 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: E2 0B 00 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: E2 0B 00 6F 0A 00 E8 02 75 84 D3 D9 AD 22 90 00 53 [11:29:14]RAPDU: E8 02 75 84 D3 D9 AD 22 90 00 [11:29:14]wFMCommunicate OK [11:29:14]SAM_PROTO_SignData done [11:29:14]FM_MakeSignedData done [11:29:14]CreateOFDProtocolMessage [11:29:14]wFMCommunicate request_size=4 [11:29:14]MH_SAM_APDU [11:29:14]CAPDU: 80 11 00 00 [11:29:14]Write to MH i2c: E2 08 00 70 0A 80 11 00 00 00 00 00 00 F4 [11:29:14]Write i2c OK [11:29:14]MH_I2C_Read... [11:29:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:14]Read from MH i2c: E2 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: E2 17 00 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: E2 17 00 70 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 49 [11:29:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:29:14]wFMCommunicate OK [11:29:14]CreateOFDProtocolMessage done [11:29:14]OFDSenderStorePacket 201408 [11:29:14]StoreOFDPacket docnum=201408 [11:29:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A7 13 07 01 0A 21 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 32 FF 03 08 00 03 76 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D0 74 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 88 D2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C0 12 03 00 35 04 06 00 77 48 22 41 99 38 E8 02 75 84 D3 D9 AD 22 [11:29:14]CheckFolder [11:29:14]dirname=/storage/ofd_packets [11:29:14]CheckFolder done [11:29:14]ProducePacketName [11:29:14]name=ofd_packets/00201408 [11:29:14]NVStorageSaveData ofd_packets/00201408 [11:29:14]File name is /storage/ofd_packets/00201408 [11:29:14]Write 301 bytes [11:29:14]NVStorageSaveData done [11:29:14]OFDSenderStorePacket done [11:29:14]KKMCreateOFDPacket done [11:29:14]NVStorageSaveData kkm_last_timestamp [11:29:14]File name is /storage/kkm_last_timestamp [11:29:14]Write 4 bytes [11:29:14]NVStorageSaveData done [11:29:14]ExternCall_PrintAddStr [11:29:14]wPrintStart [11:29:14]Write to MH i2c: 01 00 00 71 0A 7B [11:29:14]Write i2c OK [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: 01 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: 01 07 00 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: 01 07 00 71 0A 00 00 00 00 00 FF 0F 90 [11:29:14]RasterBufferAndPrint [11:29:14]line Счет N : (1)449157 [11:29:14]line ИНН: 02508201610067 [11:29:14]line Контрольно-Кассовый Чек [11:29:14]line ПРОДАЖА [11:29:14]line ТРК (МРК, ГНК) : 41 [11:29:14]line Товар: 2710124130 [11:29:14]line Аи-92-К-2 [11:29:14]line 4.470 * 66.90 [11:29:14]line = 299.04 [11:29:14]line НДС 12% НСП 1% [11:29:14]line > о реализуемом товаре [11:29:14]line ОКРУГЛЕНИЕ: -0.04 [11:29:14]line ИТОГО: 299.00 [11:29:14]line Внесено: 299.00 [11:29:14]line СДАЧА: 0.00 [11:29:14]line НСП 1% : 2.65 [11:29:14]line НДС 12% : 31.76 [11:29:14]line Наличными: 299.00 [11:29:14]line Безнал.: 0.00 [11:29:14]line Место: АЗС № 171 "Партнер Нефть" [11:29:14]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:29:14]line СНО: Общий режим [11:29:14]line Чек 170 26.10.2024 11:29 [11:29:14]line Смена: 543 ФФД: 1.0 [11:29:14]line ЗНМ: 0300000109 [11:29:14]line РНМ: 0000000000091777 [11:29:14]line Версия ККМ: 001 [11:29:14]line ФМ: 0000000000871756 [11:29:14]line ФД: 201408 [11:29:14]line ФПД: 131151696075064 [11:29:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112912&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201408&fm=131151696075064&tin=02508201610067®Number=0000000000091777&sum=29900 [11:29:14]written 0, free lines is 4095 [11:29:14]OFD Sender: Processing packet 201408 [packets to send 112, broken 111] [11:29:14]ProducePacketName [11:29:14]name=ofd_packets/00201408 [11:29:14]OFD Sender: To server: pG, [11:29:14]CommunicateWithHost lk.salyk.kg:30040 [11:29:14]ConnectInit lk.salyk.kg [11:29:14]Connected sock=10 [11:29:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A7 13 07 01 0A 21 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 32 FF 03 08 00 03 76 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D0 74 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 88 D2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C0 12 03 00 35 04 06 00 77 48 22 41 99 38 E8 02 75 84 D3 D9 AD 22 [11:29:14]Write to MH i2c: 01 00 00 9C 0A A6 [11:29:14]Write i2c OK [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: 01 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: 01 07 00 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: 01 07 00 9C 0A 00 00 00 00 00 A4 0C 5D [11:29:14]RasterBufferAndPrint [11:29:14]line [11:29:14]line [11:29:14]line [11:29:14]line [11:29:14]line [11:29:14]written 0, free lines is 3240 [11:29:14]MH_Cut [11:29:14]Write to MH i2c: D1 01 00 A3 0A 01 7F [11:29:14]Write i2c OK [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: D1 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: D1 01 00 [11:29:14]MH_I2C_Read... [11:29:14]Read from MH i2c: D1 01 00 A3 0A 00 7E [11:29:14]Write to MH i2c: 01 00 00 A4 0A AE [11:29:14]Write i2c OK [11:29:14]MH_I2C_Read... [11:29:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 FE 19 47 00 C4 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C0 12 03 00 F4 03 04 00 32 7E 1C 67 B6 04 01 00 00 BA 68 32 68 90 CD DF 11 [11:29:14]CommunicateWithHost err = 0 [11:29:14]CheckOFDResponse [11:29:14]1017 (14) - 77093643461234 [11:29:14]1041 (16) - 0000000000871756 [11:29:14]1040 (4) - 201408 [11:29:14]1012 (4) - 26.10.2024 05:29 [11:29:14]1206 (1) - 0 [11:29:14]OFD Sender: Remove packet 201408 [11:29:14]ProducePacketName [11:29:14]name=ofd_packets/00201408 [11:29:14]NVStorageDeleteData [11:29:15]OFD Sender: No OFD packet to send [11:29:15]*** Cut start [11:29:15]*** Purtial cut [11:29:15]*** Stage 1: CUTSNS_PIN = 1 [11:29:15]Read from MH i2c: 01 [11:29:15]MH_I2C_Read... [11:29:15]*** Stop cut motor [11:29:15]*** Cut end [11:29:15]Read from MH i2c: 01 07 00 [11:29:15]MH_I2C_Read... [11:29:15]Read from MH i2c: 01 07 00 A4 0A 00 00 00 00 00 FF 0F C3 [11:29:15]process_action close_receipt done [11:29:15]requested_data is exist [11:29:15]produce_requested_data [11:29:15]requested_item fm.sn is exist - process it [11:29:15]wFMCommunicate request_size=4 [11:29:15]MH_SAM_APDU [11:29:15]CAPDU: 80 11 00 00 [11:29:15]Write to MH i2c: E2 08 00 A5 0A 80 11 00 00 00 00 00 00 29 [11:29:15]Write i2c OK [11:29:15]MH_I2C_Read... [11:29:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:15]Read from MH i2c: E2 [11:29:15]MH_I2C_Read... [11:29:15]Read from MH i2c: E2 17 00 [11:29:15]MH_I2C_Read... [11:29:15]Read from MH i2c: E2 17 00 A5 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7E [11:29:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:29:15]wFMCommunicate OK [11:29:15]requested_item fd.num is exist - process it [11:29:15]SAM_PROTO_GetFieldsCounters [11:29:15]wFMCommunicate request_size=4 [11:29:15]MH_SAM_APDU [11:29:15]CAPDU: 80 13 00 00 [11:29:15]Write to MH i2c: E2 08 00 A6 0A 80 13 00 00 00 00 00 00 2C [11:29:15]Write i2c OK [11:29:15]MH_I2C_Read... [11:29:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:15]Read from MH i2c: E2 [11:29:15]MH_I2C_Read... [11:29:15]Read from MH i2c: E2 62 00 [11:29:15]MH_I2C_Read... [11:29:15]Read from MH i2c: E2 62 00 A6 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C0 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [11:29:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C0 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:15]wFMCommunicate OK [11:29:15]SAM_PROTO_GetFieldsCounters done [11:29:15]requested_item shift.num is exist - process it [11:29:15]requested_item shift.opened is exist - process it [11:29:15]req_shift_opened [11:29:15]FM_GetShiftState [11:29:15]SAM_PROTO_GetShiftState [11:29:15]wFMCommunicate request_size=4 [11:29:15]MH_SAM_APDU [11:29:15]CAPDU: 80 13 01 00 [11:29:15]Write to MH i2c: E2 08 00 A7 0A 80 13 01 00 00 00 00 00 2E [11:29:15]Write i2c OK [11:29:15]MH_I2C_Read... [11:29:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:15]Read from MH i2c: E2 [11:29:15]MH_I2C_Read... [11:29:15]Read from MH i2c: E2 0E 00 [11:29:15]MH_I2C_Read... [11:29:15]Read from MH i2c: E2 0E 00 A7 0A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 3D [11:29:15]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:29:15]wFMCommunicate OK [11:29:15]SAM_PROTO_GetShiftState done [11:29:15]FM_GetShiftState done [11:29:15]req_shift_opened done [11:29:15]requested_item shift.open_date is exist - process it [11:29:15]req_shift_open_date [11:29:15]req_shift_open_date done [11:29:15]produce_requested_data done [11:29:15]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201408,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:29:15]process_action_free close_receipt [11:29:15]json_value_free [11:29:15]json_value_free done [11:29:15]process_json_proto returns [11:29:15]Send response to host [11:29:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201408,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:29:15]free response buf [11:29:15]execute_script done [11:29:15]execute_script returns [11:29:15]free content buf [11:29:15]Sock 9.Close socket [11:29:15]Sock 9.Thread stoped [11:29:20]OFD Sender: No OFD packet to send [11:29:25]OFD Sender: No OFD packet to send [11:29:30]OFD Sender: No OFD packet to send [11:29:35]OFD Sender: No OFD packet to send [11:29:40]OFD Sender: No OFD packet to send [11:29:45]OFD Sender: No OFD packet to send [11:29:46]accept exits with 7 [11:29:46]New connection [11:29:46]New thread 3066641764 created [11:29:46]Thread 3066498404 joined [11:29:46]Waiting for new connection... [11:29:46] Sock 7.Parse request [11:29:46]Sock 7.Check first char [11:29:46]Sock 7.First char is OK [11:29:46]request: POST /json_proto HTTP/1.0 [11:29:46]Method: POST [11:29:46]URL: /json_proto [11:29:46]Method is POST - this is cgi request [11:29:46]url: /json_proto [11:29:46]query_string will be loaded in cgi processing [11:29:46]execute_cgi json_proto POST (null) [11:29:46]execute_cgi path=json_proto method=POST [11:29:46]POST find Content-Length [11:29:46]Host: 172.17.63.195:8080 [11:29:46]Content-Length: 677 [11:29:46]Content-Type: application/json [11:29:46] [11:29:46]POST finish read [11:29:46]Found Content-Length = 677 [11:29:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:29:46]execute_script... [11:29: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)449158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:29:46]POST & json_proto [11:29:46]process_json_proto [11:29:46]json parsed OK: [11:29:46]protocol is kg_v1.0 [11:29:46]action value=close_receipt [11:29:46]process_action close_receipt [11:29:46]cmd_close_receipt [11:29:46]MH_GetDate [11:29:46]Write to MH i2c: F0 00 00 A8 0A A1 [11:29:46]Write i2c OK [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: F0 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: F0 09 00 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: F0 09 00 A8 0A 00 AB D2 1C 67 68 46 19 67 D8 [11:29:46]GetLastDocTimeStamp 1729942152 [11:29:46]current date 1729942187 [11:29:46]FM_GetShiftState [11:29:46]SAM_PROTO_GetShiftState [11:29:46]wFMCommunicate request_size=4 [11:29:46]MH_SAM_APDU [11:29:46]CAPDU: 80 13 01 00 [11:29:46]Write to MH i2c: E2 08 00 A9 0A 80 13 01 00 00 00 00 00 30 [11:29:46]Write i2c OK [11:29:46]MH_I2C_Read... [11:29:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:46]Read from MH i2c: E2 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: E2 0E 00 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: E2 0E 00 A9 0A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 3F [11:29:46]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:29:46]wFMCommunicate OK [11:29:46]SAM_PROTO_GetShiftState done [11:29:46]FM_GetShiftState done [11:29:46]opened in 1729900879 [11:29:46]opened+sec_in_day 1729987279 [11:29:46]quantity*price = 20003 [11:29:46]sum+1 = 20004 [11:29:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 171 26.10.2024 11:29 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201409 ФПД: 88534497814299 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112947&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201409&fm=88534497814299&tin=02508201610067®Number=0000000000091777&sum=20000 [11:29:48]StoreToDocumentArchive [11:29:48]shift 543 fd 201409 [11:29:48]save to /storage/0543/doc_00201409 [11:29:48]save last doc name /storage/0543/doc_00201409 to /storage/kkm_last_doc_name [11:29:48]save OK [11:29:48]Clear old archive folders... [11:29:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:48]tlvbuf is 017811C0 [11:29:48]SAM_PROTO_ClearQueue [11:29:48]wFMCommunicate request_size=4 [11:29:48]MH_SAM_APDU [11:29:48]CAPDU: 80 09 00 00 [11:29:48]Write to MH i2c: E2 08 00 B6 0A 80 09 00 00 00 00 00 00 32 [11:29:48]Write i2c OK [11:29:48]MH_I2C_Read... [11:29:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:48]Read from MH i2c: E2 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 03 00 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 03 00 B6 0A 00 90 00 34 [11:29:48]RAPDU: 90 00 [11:29:48]wFMCommunicate OK [11:29:48]SAM_PROTO_ClearQueue done [11:29:48]KKMCreateOFDPacket [11:29:48]OFDProtocolAddRootSTLVToBuf [11:29:48]FM_MakeSignedData [11:29:48]FM_MakeSignedData [11:29:48]SAM_PROTO_SignData [11:29:48]wFMCommunicate request_size=4 [11:29:48]MH_SAM_APDU [11:29:48]CAPDU: 80 0D 01 02 [11:29:48]Write to MH i2c: E2 08 00 B7 0A 80 0D 01 02 00 00 00 00 3A [11:29:48]Write i2c OK [11:29:48]MH_I2C_Read... [11:29:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:48]Read from MH i2c: E2 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 03 00 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 03 00 B7 0A 00 90 00 35 [11:29:48]RAPDU: 90 00 [11:29:48]wFMCommunicate OK [11:29:48]wFMCommunicate request_size=255 [11:29:48]MH_SAM_APDU [11:29: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 32 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 AB 00 00 00 F4 03 04 00 AB D2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C1 12 03 00 35 04 06 00 50 [11:29:48]Write to MH i2c: E2 02 01 B8 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AB 00 00 00 F4 03 04 00 AB D2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C1 12 03 00 35 04 06 00 50 00 00 82 [11:29:48]Write i2c OK [11:29:48]MH_I2C_Read... [11:29:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:48]Read from MH i2c: E2 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 03 00 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 03 00 B8 0A 00 90 00 36 [11:29:48]RAPDU: 90 00 [11:29:48]wFMCommunicate OK [11:29:48]wFMCommunicate request_size=10 [11:29:48]MH_SAM_APDU [11:29:48]CAPDU: 80 0D 02 02 05 85 8B 4A E7 1B [11:29:48]Write to MH i2c: E2 0D 00 B9 0A 80 0D 02 02 05 00 85 8B 4A E7 1B 00 00 A3 [11:29:48]Write i2c OK [11:29:48]MH_I2C_Read... [11:29:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:48]Read from MH i2c: E2 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 03 00 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 03 00 B9 0A 00 90 00 37 [11:29:48]RAPDU: 90 00 [11:29:48]wFMCommunicate OK [11:29:48]wFMCommunicate request_size=4 [11:29:48]MH_SAM_APDU [11:29:48]CAPDU: 80 0D 03 02 [11:29:48]Write to MH i2c: E2 08 00 BA 0A 80 0D 03 02 00 00 00 00 3F [11:29:48]Write i2c OK [11:29:48]MH_I2C_Read... [11:29:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:48]Read from MH i2c: E2 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 0B 00 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 0B 00 BA 0A 00 B0 7D 0E 49 B8 EE 71 EA 90 00 C5 [11:29:48]RAPDU: B0 7D 0E 49 B8 EE 71 EA 90 00 [11:29:48]wFMCommunicate OK [11:29:48]SAM_PROTO_SignData done [11:29:48]FM_MakeSignedData done [11:29:48]CreateOFDProtocolMessage [11:29:48]wFMCommunicate request_size=4 [11:29:48]MH_SAM_APDU [11:29:48]CAPDU: 80 11 00 00 [11:29:48]Write to MH i2c: E2 08 00 BB 0A 80 11 00 00 00 00 00 00 3F [11:29:48]Write i2c OK [11:29:48]MH_I2C_Read... [11:29:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:48]Read from MH i2c: E2 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 17 00 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 17 00 BB 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 94 [11:29:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:29:48]wFMCommunicate OK [11:29:48]CreateOFDProtocolMessage done [11:29:48]OFDSenderStorePacket 201409 [11:29:48]StoreOFDPacket docnum=201409 [11:29:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 43 45 07 01 14 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 32 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 AB 00 00 00 F4 03 04 00 AB D2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C1 12 03 00 35 04 06 00 50 85 8B 4A E7 1B B0 7D 0E 49 B8 EE 71 EA [11:29:48]CheckFolder [11:29:48]dirname=/storage/ofd_packets [11:29:48]CheckFolder done [11:29:48]ProducePacketName [11:29:48]name=ofd_packets/00201409 [11:29:48]NVStorageSaveData ofd_packets/00201409 [11:29:48]File name is /storage/ofd_packets/00201409 [11:29:48]Write 301 bytes [11:29:48]NVStorageSaveData done [11:29:48]OFDSenderStorePacket done [11:29:48]KKMCreateOFDPacket done [11:29:48]NVStorageSaveData kkm_last_timestamp [11:29:48]File name is /storage/kkm_last_timestamp [11:29:48]Write 4 bytes [11:29:48]NVStorageSaveData done [11:29:48]ExternCall_PrintAddStr [11:29:48]wPrintStart [11:29:48]Write to MH i2c: 01 00 00 BC 0A C6 [11:29:48]Write i2c OK [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: 01 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: 01 07 00 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: 01 07 00 BC 0A 00 00 00 00 00 FF 0F DB [11:29:48]RasterBufferAndPrint [11:29:48]line Счет N : (1)449158 [11:29:48]line ИНН: 02508201610067 [11:29:48]line Контрольно-Кассовый Чек [11:29:48]line ПРОДАЖА [11:29:48]line ТРК (МРК, ГНК) : 62 [11:29:48]line Товар: 2710124130 [11:29:48]line Аи-92-К-2 [11:29:48]line 2.990 * 66.90 [11:29:48]line = 200.03 [11:29:48]line НДС 12% НСП 1% [11:29:48]line > о реализуемом товаре [11:29:48]line ОКРУГЛЕНИЕ: -0.03 [11:29:48]line ИТОГО: 200.00 [11:29:48]line Внесено: 200.00 [11:29:48]line СДАЧА: 0.00 [11:29:48]line НСП 1% : 1.77 [11:29:48]line НДС 12% : 21.24 [11:29:48]line Наличными: 200.00 [11:29:48]line Безнал.: 0.00 [11:29:48]line Место: АЗС № 171 "Партнер Нефть" [11:29:48]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:29:48]line СНО: Общий режим [11:29:48]line Чек 171 26.10.2024 11:29 [11:29:48]line Смена: 543 ФФД: 1.0 [11:29:48]line ЗНМ: 0300000109 [11:29:48]line РНМ: 0000000000091777 [11:29:48]line Версия ККМ: 001 [11:29:48]line ФМ: 0000000000871756 [11:29:48]line ФД: 201409 [11:29:48]line ФПД: 88534497814299 [11:29:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112947&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201409&fm=88534497814299&tin=02508201610067®Number=0000000000091777&sum=20000 [11:29:48]OFD Sender: Processing packet 201409 [packets to send 112, broken 111] [11:29:48]ProducePacketName [11:29:48]name=ofd_packets/00201409 [11:29:48]OFD Sender: To server: pG, [11:29:48]CommunicateWithHost lk.salyk.kg:30040 [11:29:48]ConnectInit lk.salyk.kg [11:29:48]written 0, free lines is 4095 [11:29:49]Connected sock=10 [11:29:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 43 45 07 01 14 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 32 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 AB 00 00 00 F4 03 04 00 AB D2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C1 12 03 00 35 04 06 00 50 85 8B 4A E7 1B B0 7D 0E 49 B8 EE 71 EA [11:29:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 51 5D 47 00 CB D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C1 12 03 00 F4 03 04 00 54 7E 1C 67 B6 04 01 00 00 6C 04 25 E0 52 19 88 F9 [11:29:49]CommunicateWithHost err = 0 [11:29:49]CheckOFDResponse [11:29:49]1017 (14) - 77093643461234 [11:29:49]1041 (16) - 0000000000871756 [11:29:49]1040 (4) - 201409 [11:29:49]1012 (4) - 26.10.2024 05:29 [11:29:49]1206 (1) - 0 [11:29:49]OFD Sender: Remove packet 201409 [11:29:49]ProducePacketName [11:29:49]name=ofd_packets/00201409 [11:29:49]NVStorageDeleteData [11:29:49]Write to MH i2c: 01 00 00 E7 0A F1 [11:29:49]Write i2c OK [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: 01 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: 01 07 00 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: 01 07 00 E7 0A 00 00 00 00 00 A0 0C A4 [11:29:49]RasterBufferAndPrint [11:29:49]line [11:29:49]line [11:29:49]line [11:29:49]line [11:29:49]line [11:29:49]written 0, free lines is 3240 [11:29:49]MH_Cut [11:29:49]Write to MH i2c: D1 01 00 EE 0A 01 CA [11:29:49]Write i2c OK [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: D1 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: D1 01 00 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: D1 01 00 EE 0A 00 C9 [11:29:49]Write to MH i2c: 01 00 00 EF 0A F9 [11:29:49]Write i2c OK [11:29:49]MH_I2C_Read... [11:29:49]OFD Sender: No OFD packet to send [11:29:50]*** Cut start [11:29:50]*** Purtial cut [11:29:50]*** Stage 1: CUTSNS_PIN = 1 [11:29:50]Read from MH i2c: 01 [11:29:50]MH_I2C_Read... [11:29:50]*** Stop cut motor [11:29:50]*** Cut end [11:29:50]Read from MH i2c: 01 07 00 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: 01 07 00 EF 0A 00 00 00 00 00 FF 0F 0E [11:29:50]process_action close_receipt done [11:29:50]requested_data is exist [11:29:50]produce_requested_data [11:29:50]requested_item fm.sn is exist - process it [11:29:50]wFMCommunicate request_size=4 [11:29:50]MH_SAM_APDU [11:29:50]CAPDU: 80 11 00 00 [11:29:50]Write to MH i2c: E2 08 00 F0 0A 80 11 00 00 00 00 00 00 74 [11:29:50]Write i2c OK [11:29:50]MH_I2C_Read... [11:29:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:50]Read from MH i2c: E2 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: E2 17 00 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: E2 17 00 F0 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C9 [11:29:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:29:50]wFMCommunicate OK [11:29:50]requested_item fd.num is exist - process it [11:29:50]SAM_PROTO_GetFieldsCounters [11:29:50]wFMCommunicate request_size=4 [11:29:50]MH_SAM_APDU [11:29:50]CAPDU: 80 13 00 00 [11:29:50]Write to MH i2c: E2 08 00 F1 0A 80 13 00 00 00 00 00 00 77 [11:29:50]Write i2c OK [11:29:50]MH_I2C_Read... [11:29:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:50]Read from MH i2c: E2 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: E2 62 00 [11:29:50]MH_I2C_Read... [11:29:50]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 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C1 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [11:29:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C1 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:50]wFMCommunicate OK [11:29:50]SAM_PROTO_GetFieldsCounters done [11:29:50]requested_item shift.num is exist - process it [11:29:50]requested_item shift.opened is exist - process it [11:29:50]req_shift_opened [11:29:50]FM_GetShiftState [11:29:50]SAM_PROTO_GetShiftState [11:29:50]wFMCommunicate request_size=4 [11:29:50]MH_SAM_APDU [11:29:50]CAPDU: 80 13 01 00 [11:29:50]Write to MH i2c: E2 08 00 F2 0A 80 13 01 00 00 00 00 00 79 [11:29:50]Write i2c OK [11:29:50]MH_I2C_Read... [11:29:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:50]Read from MH i2c: E2 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: E2 0E 00 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: E2 0E 00 F2 0A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 88 [11:29:50]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:29:50]wFMCommunicate OK [11:29:50]SAM_PROTO_GetShiftState done [11:29:50]FM_GetShiftState done [11:29:50]req_shift_opened done [11:29:50]requested_item shift.open_date is exist - process it [11:29:50]req_shift_open_date [11:29:50]req_shift_open_date done [11:29:50]produce_requested_data done [11:29:50]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201409,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:29:50]process_action_free close_receipt [11:29:50]json_value_free [11:29:50]json_value_free done [11:29:50]process_json_proto returns [11:29:50]Send response to host [11:29:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201409,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:29:50]free response buf [11:29:50]execute_script done [11:29:50]execute_script returns [11:29:50]free content buf [11:29:50]Sock 7.Close socket [11:29:50]Sock 7.Thread stoped [11:29:54]OFD Sender: No OFD packet to send [11:29:59]OFD Sender: No OFD packet to send [11:30:04]OFD Sender: No OFD packet to send [11:30:09]OFD Sender: No OFD packet to send [11:30:14]OFD Sender: No OFD packet to send [11:30:18]accept exits with 9 [11:30:18]New connection [11:30:18]New thread 3066498404 created [11:30:18]Thread 3066641764 joined [11:30:18]Waiting for new connection... [11:30:18] Sock 9.Parse request [11:30:18]Sock 9.Check first char [11:30:18]Sock 9.First char is OK [11:30:18]request: POST /json_proto HTTP/1.0 [11:30:18]Method: POST [11:30:18]URL: /json_proto [11:30:18]Method is POST - this is cgi request [11:30:18]url: /json_proto [11:30:18]query_string will be loaded in cgi processing [11:30:18]execute_cgi json_proto POST (null) [11:30:18]execute_cgi path=json_proto method=POST [11:30:18]POST find Content-Length [11:30:18]Host: 172.17.63.195:8080 [11:30:18]Content-Length: 679 [11:30:18]Content-Type: application/json [11:30:18] [11:30:18]POST finish read [11:30:18]Found Content-Length = 679 [11:30:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:18]execute_script... [11:30:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:18]POST & json_proto [11:30:18]process_json_proto [11:30:18]json parsed OK: [11:30:18]protocol is kg_v1.0 [11:30:18]action value=close_receipt [11:30:18]process_action close_receipt [11:30:18]cmd_close_receipt [11:30:18]MH_GetDate [11:30:18]Write to MH i2c: F0 00 00 F3 0A EC [11:30:18]Write i2c OK [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: F0 [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: F0 09 00 [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: F0 09 00 F3 0A 00 CA D2 1C 67 68 46 19 67 42 [11:30:18]GetLastDocTimeStamp 1729942187 [11:30:18]current date 1729942218 [11:30:18]FM_GetShiftState [11:30:18]SAM_PROTO_GetShiftState [11:30:18]wFMCommunicate request_size=4 [11:30:18]MH_SAM_APDU [11:30:18]CAPDU: 80 13 01 00 [11:30:18]Write to MH i2c: E2 08 00 F4 0A 80 13 01 00 00 00 00 00 7B [11:30:18]Write i2c OK [11:30:18]MH_I2C_Read... [11:30:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:18]Read from MH i2c: E2 [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: E2 0E 00 [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: E2 0E 00 F4 0A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 8A [11:30:18]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:30:18]wFMCommunicate OK [11:30:18]SAM_PROTO_GetShiftState done [11:30:18]FM_GetShiftState done [11:30:18]opened in 1729900879 [11:30:18]opened+sec_in_day 1729987279 [11:30:18]quantity*price = 100050 [11:30:18]sum+1 = 100052 [11:30:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 172 26.10.2024 11:30 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201410 ФПД: 63961760705825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113018&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201410&fm=63961760705825&tin=02508201610067®Number=0000000000091777&sum=100000 [11:30:19]StoreToDocumentArchive [11:30:19]shift 543 fd 201410 [11:30:19]save to /storage/0543/doc_00201410 [11:30:19]save last doc name /storage/0543/doc_00201410 to /storage/kkm_last_doc_name [11:30:19]save OK [11:30:19]Clear old archive folders... [11:30:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:30:19]tlvbuf is 01801C00 [11:30:19]SAM_PROTO_ClearQueue [11:30:19]wFMCommunicate request_size=4 [11:30:19]MH_SAM_APDU [11:30:19]CAPDU: 80 09 00 00 [11:30:19]Write to MH i2c: E2 08 00 01 0B 80 09 00 00 00 00 00 00 7E [11:30:19]Write i2c OK [11:30:19]MH_I2C_Read... [11:30:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:19]Read from MH i2c: E2 [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: E2 03 00 [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: E2 03 00 01 0B 00 90 00 80 [11:30:19]RAPDU: 90 00 [11:30:19]wFMCommunicate OK [11:30:19]SAM_PROTO_ClearQueue done [11:30:19]KKMCreateOFDPacket [11:30:19]OFDProtocolAddRootSTLVToBuf [11:30:19]FM_MakeSignedData [11:30:19]FM_MakeSignedData [11:30:19]SAM_PROTO_SignData [11:30:19]wFMCommunicate request_size=4 [11:30:19]MH_SAM_APDU [11:30:19]CAPDU: 80 0D 01 02 [11:30:19]Write to MH i2c: E2 08 00 02 0B 80 0D 01 02 00 00 00 00 86 [11:30:19]Write i2c OK [11:30:19]MH_I2C_Read... [11:30:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:19]Read from MH i2c: E2 [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: E2 03 00 [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: E2 03 00 02 0B 00 90 00 81 [11:30:19]RAPDU: 90 00 [11:30:19]wFMCommunicate OK [11:30:19]wFMCommunicate request_size=255 [11:30:19]MH_SAM_APDU [11:30:19]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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 AC 00 00 00 F4 03 04 00 CA D2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C2 12 03 00 35 04 06 00 3A 2C 42 06 [11:30:19]Write to MH i2c: E2 02 01 03 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 AC 00 00 00 F4 03 04 00 CA D2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C2 12 03 00 35 04 06 00 3A 2C 42 06 00 00 81 [11:30:19]Write i2c OK [11:30:19]MH_I2C_Read... [11:30:19]OFD Sender: No OFD packet to send [11:30:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:19]Read from MH i2c: E2 [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: E2 03 00 [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: E2 03 00 03 0B 00 90 00 82 [11:30:19]RAPDU: 90 00 [11:30:19]wFMCommunicate OK [11:30:19]wFMCommunicate request_size=7 [11:30:19]MH_SAM_APDU [11:30:19]CAPDU: 80 0D 02 02 02 AD 21 [11:30:19]Write to MH i2c: E2 0A 00 04 0B 80 0D 02 02 02 00 AD 21 00 00 5B [11:30:19]Write i2c OK [11:30:19]MH_I2C_Read... [11:30:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:19]Read from MH i2c: E2 [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: E2 03 00 [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: E2 03 00 04 0B 00 90 00 83 [11:30:19]RAPDU: 90 00 [11:30:19]wFMCommunicate OK [11:30:19]wFMCommunicate request_size=4 [11:30:19]MH_SAM_APDU [11:30:19]CAPDU: 80 0D 03 02 [11:30:19]Write to MH i2c: E2 08 00 05 0B 80 0D 03 02 00 00 00 00 8B [11:30:19]Write i2c OK [11:30:19]MH_I2C_Read... [11:30:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:19]Read from MH i2c: E2 [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: E2 0B 00 [11:30:19]MH_I2C_Read... [11:30:19]Read from MH i2c: E2 0B 00 05 0B 00 20 21 BA 8F 1F 29 67 33 90 00 F8 [11:30:19]RAPDU: 20 21 BA 8F 1F 29 67 33 90 00 [11:30:19]wFMCommunicate OK [11:30:19]SAM_PROTO_SignData done [11:30:19]FM_MakeSignedData done [11:30:19]CreateOFDProtocolMessage [11:30:19]wFMCommunicate request_size=4 [11:30:19]MH_SAM_APDU [11:30:19]CAPDU: 80 11 00 00 [11:30:19]Write to MH i2c: E2 08 00 06 0B 80 11 00 00 00 00 00 00 8B [11:30:19]Write i2c OK [11:30:19]MH_I2C_Read... [11:30:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:20]Read from MH i2c: E2 [11:30:20]MH_I2C_Read... [11:30:20]Read from MH i2c: E2 17 00 [11:30:20]MH_I2C_Read... [11:30:20]Read from MH i2c: E2 17 00 06 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E0 [11:30:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:30:20]wFMCommunicate OK [11:30:20]CreateOFDProtocolMessage done [11:30:20]OFDSenderStorePacket 201410 [11:30:20]StoreOFDPacket docnum=201410 [11:30:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 E2 B7 04 01 CE 3A 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 AC 00 00 00 F4 03 04 00 CA D2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C2 12 03 00 35 04 06 00 3A 2C 42 06 AD 21 20 21 BA 8F 1F 29 67 33 [11:30:20]CheckFolder [11:30:20]dirname=/storage/ofd_packets [11:30:20]CheckFolder done [11:30:20]ProducePacketName [11:30:20]name=ofd_packets/00201410 [11:30:20]NVStorageSaveData ofd_packets/00201410 [11:30:20]File name is /storage/ofd_packets/00201410 [11:30:20]Write 298 bytes [11:30:20]NVStorageSaveData done [11:30:20]OFDSenderStorePacket done [11:30:20]KKMCreateOFDPacket done [11:30:20]NVStorageSaveData kkm_last_timestamp [11:30:20]File name is /storage/kkm_last_timestamp [11:30:20]Write 4 bytes [11:30:20]NVStorageSaveData done [11:30:20]ExternCall_PrintAddStr [11:30:20]wPrintStart [11:30:20]Write to MH i2c: 01 00 00 07 0B 12 [11:30:20]Write i2c OK [11:30:20]MH_I2C_Read... [11:30:20]Read from MH i2c: 01 [11:30:20]MH_I2C_Read... [11:30:20]Read from MH i2c: 01 07 00 [11:30:20]MH_I2C_Read... [11:30:20]Read from MH i2c: 01 07 00 07 0B 00 00 00 00 00 FF 0F 27 [11:30:20]RasterBufferAndPrint [11:30:20]line Счет N : (1)449159 [11:30:20]line ИНН: 02508201610067 [11:30:20]line Контрольно-Кассовый Чек [11:30:20]line ПРОДАЖА [11:30:20]line ТРК (МРК, ГНК) : 33 [11:30:20]line Товар: 2710194210 [11:30:20]line ДТ-К-2 [11:30:20]line 13.130 * 76.20 [11:30:20]line = 1000.51 [11:30:20]line НДС 12% НСП 1% [11:30:20]line > о реализуемом товаре [11:30:20]line ОКРУГЛЕНИЕ: -0.51 [11:30:20]line ИТОГО: 1000.00 [11:30:20]line Внесено: 1000.00 [11:30:20]line СДАЧА: 0.00 [11:30:20]line НСП 1% : 8.85 [11:30:20]line НДС 12% : 106.25 [11:30:20]line Наличными: 1000.00 [11:30:20]line Безнал.: 0.00 [11:30:20]line Место: АЗС № 171 "Партнер Нефть" [11:30:20]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:30:20]line СНО: Общий режим [11:30:20]line Чек 172 26.10.2024 11:30 [11:30:20]line Смена: 543 ФФД: 1.0 [11:30:20]line ЗНМ: 0300000109 [11:30:20]line РНМ: 0000000000091777 [11:30:20]line Версия ККМ: 001 [11:30:20]line ФМ: 0000000000871756 [11:30:20]line ФД: 201410 [11:30:20]line ФПД: 63961760705825 [11:30:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113018&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201410&fm=63961760705825&tin=02508201610067®Number=0000000000091777&sum=100000 [11:30:20]OFD Sender: Processing packet 201410 [packets to send 112, broken 111] [11:30:20]ProducePacketName [11:30:20]name=ofd_packets/00201410 [11:30:20]OFD Sender: To server: pG, [11:30:20]CommunicateWithHost lk.salyk.kg:30040 [11:30:20]ConnectInit lk.salyk.kg [11:30:20]written 0, free lines is 4095 [11:30:20]Connected sock=10 [11:30:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 E2 B7 04 01 CE 3A 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 AC 00 00 00 F4 03 04 00 CA D2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C2 12 03 00 35 04 06 00 3A 2C 42 06 AD 21 20 21 BA 8F 1F 29 67 33 [11:30:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B7 A9 47 00 84 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C2 12 03 00 F4 03 04 00 73 7E 1C 67 B6 04 01 00 00 8D EF 83 F3 F1 14 F6 A9 [11:30:20]CommunicateWithHost err = 0 [11:30:20]CheckOFDResponse [11:30:20]1017 (14) - 77093643461234 [11:30:20]1041 (16) - 0000000000871756 [11:30:20]1040 (4) - 201410 [11:30:20]1012 (4) - 26.10.2024 05:30 [11:30:20]1206 (1) - 0 [11:30:20]OFD Sender: Remove packet 201410 [11:30:20]ProducePacketName [11:30:20]name=ofd_packets/00201410 [11:30:20]NVStorageDeleteData [11:30:20]Write to MH i2c: 01 00 00 32 0B 3D [11:30:20]Write i2c OK [11:30:20]MH_I2C_Read... [11:30:20]Read from MH i2c: 01 [11:30:20]MH_I2C_Read... [11:30:20]Read from MH i2c: 01 07 00 [11:30:20]MH_I2C_Read... [11:30:20]Read from MH i2c: 01 07 00 32 0B 00 00 00 00 00 A1 0C F1 [11:30:20]RasterBufferAndPrint [11:30:20]line [11:30:20]line [11:30:20]line [11:30:20]line [11:30:20]line [11:30:20]written 0, free lines is 3239 [11:30:20]MH_Cut [11:30:20]Write to MH i2c: D1 01 00 39 0B 01 16 [11:30:20]Write i2c OK [11:30:20]MH_I2C_Read... [11:30:20]Read from MH i2c: D1 [11:30:20]MH_I2C_Read... [11:30:20]Read from MH i2c: D1 01 00 [11:30:20]MH_I2C_Read... [11:30:20]Read from MH i2c: D1 01 00 39 0B 00 15 [11:30:20]Write to MH i2c: 01 00 00 3A 0B 45 [11:30:20]Write i2c OK [11:30:20]MH_I2C_Read... [11:30:21]OFD Sender: No OFD packet to send [11:30:21]*** Cut start [11:30:21]*** Purtial cut [11:30:21]*** Stage 1: CUTSNS_PIN = 1 [11:30:21]Read from MH i2c: 01 [11:30:21]MH_I2C_Read... [11:30:21]*** Stop cut motor [11:30:21]*** Cut end [11:30:21]Read from MH i2c: 01 07 00 [11:30:21]MH_I2C_Read... [11:30:21]Read from MH i2c: 01 07 00 3A 0B 00 00 00 00 00 FF 0F 5A [11:30:21]process_action close_receipt done [11:30:21]requested_data is exist [11:30:21]produce_requested_data [11:30:21]requested_item fm.sn is exist - process it [11:30:21]wFMCommunicate request_size=4 [11:30:21]MH_SAM_APDU [11:30:21]CAPDU: 80 11 00 00 [11:30:21]Write to MH i2c: E2 08 00 3B 0B 80 11 00 00 00 00 00 00 C0 [11:30:21]Write i2c OK [11:30:21]MH_I2C_Read... [11:30:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:21]Read from MH i2c: E2 [11:30:21]MH_I2C_Read... [11:30:21]Read from MH i2c: E2 17 00 [11:30:21]MH_I2C_Read... [11:30:22]Read from MH i2c: E2 17 00 3B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 15 [11:30:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:30:22]wFMCommunicate OK [11:30:22]requested_item fd.num is exist - process it [11:30:22]SAM_PROTO_GetFieldsCounters [11:30:22]wFMCommunicate request_size=4 [11:30:22]MH_SAM_APDU [11:30:22]CAPDU: 80 13 00 00 [11:30:22]Write to MH i2c: E2 08 00 3C 0B 80 13 00 00 00 00 00 00 C3 [11:30:22]Write i2c OK [11:30:22]MH_I2C_Read... [11:30:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:22]Read from MH i2c: E2 [11:30:22]MH_I2C_Read... [11:30:22]Read from MH i2c: E2 62 00 [11:30:22]MH_I2C_Read... [11:30:22]Read from MH i2c: E2 62 00 3C 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C2 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [11:30:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C2 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:22]wFMCommunicate OK [11:30:22]SAM_PROTO_GetFieldsCounters done [11:30:22]requested_item shift.num is exist - process it [11:30:22]requested_item shift.opened is exist - process it [11:30:22]req_shift_opened [11:30:22]FM_GetShiftState [11:30:22]SAM_PROTO_GetShiftState [11:30:22]wFMCommunicate request_size=4 [11:30:22]MH_SAM_APDU [11:30:22]CAPDU: 80 13 01 00 [11:30:22]Write to MH i2c: E2 08 00 3D 0B 80 13 01 00 00 00 00 00 C5 [11:30:22]Write i2c OK [11:30:22]MH_I2C_Read... [11:30:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:22]Read from MH i2c: E2 [11:30:22]MH_I2C_Read... [11:30:22]Read from MH i2c: E2 0E 00 [11:30:22]MH_I2C_Read... [11:30:22]Read from MH i2c: E2 0E 00 3D 0B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D4 [11:30:22]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:30:22]wFMCommunicate OK [11:30:22]SAM_PROTO_GetShiftState done [11:30:22]FM_GetShiftState done [11:30:22]req_shift_opened done [11:30:22]requested_item shift.open_date is exist - process it [11:30:22]req_shift_open_date [11:30:22]req_shift_open_date done [11:30:22]produce_requested_data done [11:30:22]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201410,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:30:22]process_action_free close_receipt [11:30:22]json_value_free [11:30:22]json_value_free done [11:30:22]process_json_proto returns [11:30:22]Send response to host [11:30:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201410,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:30:22]free response buf [11:30:22]execute_script done [11:30:22]execute_script returns [11:30:22]free content buf [11:30:22]Sock 9.Close socket [11:30:22]Sock 9.Thread stoped [11:30:26]OFD Sender: No OFD packet to send [11:30:31]OFD Sender: No OFD packet to send [11:30:36]OFD Sender: No OFD packet to send [11:30:41]OFD Sender: No OFD packet to send [11:30:43]accept exits with 7 [11:30:43]New connection [11:30:43]New thread 3066641764 created [11:30:43]Thread 3066498404 joined [11:30:43]Waiting for new connection... [11:30:43] Sock 7.Parse request [11:30:43]Sock 7.Check first char [11:30:43]Sock 7.First char is OK [11:30:43]request: POST /json_proto HTTP/1.0 [11:30:43]Method: POST [11:30:43]URL: /json_proto [11:30:43]Method is POST - this is cgi request [11:30:43]url: /json_proto [11:30:43]query_string will be loaded in cgi processing [11:30:43]execute_cgi json_proto POST (null) [11:30:43]execute_cgi path=json_proto method=POST [11:30:43]POST find Content-Length [11:30:43]Host: 172.17.63.195:8080 [11:30:43]Content-Length: 677 [11:30:43]Content-Type: application/json [11:30:43] [11:30:43]POST finish read [11:30:43]Found Content-Length = 677 [11:30:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:30:43]execute_script... [11:30: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)449160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:30:43]POST & json_proto [11:30:43]process_json_proto [11:30:43]json parsed OK: [11:30:43]protocol is kg_v1.0 [11:30:43]action value=close_receipt [11:30:43]process_action close_receipt [11:30:43]cmd_close_receipt [11:30:43]MH_GetDate [11:30:43]Write to MH i2c: F0 00 00 3E 0B 38 [11:30:43]Write i2c OK [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: F0 [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: F0 09 00 [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: F0 09 00 3E 0B 00 E3 D2 1C 67 68 46 19 67 A7 [11:30:43]GetLastDocTimeStamp 1729942218 [11:30:43]current date 1729942243 [11:30:43]FM_GetShiftState [11:30:43]SAM_PROTO_GetShiftState [11:30:43]wFMCommunicate request_size=4 [11:30:43]MH_SAM_APDU [11:30:43]CAPDU: 80 13 01 00 [11:30:43]Write to MH i2c: E2 08 00 3F 0B 80 13 01 00 00 00 00 00 C7 [11:30:43]Write i2c OK [11:30:43]MH_I2C_Read... [11:30:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:43]Read from MH i2c: E2 [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: E2 0E 00 [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: E2 0E 00 3F 0B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D6 [11:30:43]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:30:43]wFMCommunicate OK [11:30:43]SAM_PROTO_GetShiftState done [11:30:43]FM_GetShiftState done [11:30:43]opened in 1729900879 [11:30:43]opened+sec_in_day 1729987279 [11:30:43]quantity*price = 20003 [11:30:43]sum+1 = 20004 [11:30:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 173 26.10.2024 11:30 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201411 ФПД: 231347933201316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113043&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201411&fm=231347933201316&tin=02508201610067®Number=0000000000091777&sum=20000 [11:30:44]StoreToDocumentArchive [11:30:44]shift 543 fd 201411 [11:30:44]save to /storage/0543/doc_00201411 [11:30:44]save last doc name /storage/0543/doc_00201411 to /storage/kkm_last_doc_name [11:30:44]save OK [11:30:44]Clear old archive folders... [11:30:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:30:44]tlvbuf is 017A8150 [11:30:44]SAM_PROTO_ClearQueue [11:30:44]wFMCommunicate request_size=4 [11:30:44]MH_SAM_APDU [11:30:44]CAPDU: 80 09 00 00 [11:30:44]Write to MH i2c: E2 08 00 4C 0B 80 09 00 00 00 00 00 00 C9 [11:30:44]Write i2c OK [11:30:44]MH_I2C_Read... [11:30:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:44]Read from MH i2c: E2 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: E2 03 00 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: E2 03 00 4C 0B 00 90 00 CB [11:30:44]RAPDU: 90 00 [11:30:44]wFMCommunicate OK [11:30:44]SAM_PROTO_ClearQueue done [11:30:44]KKMCreateOFDPacket [11:30:44]OFDProtocolAddRootSTLVToBuf [11:30:44]FM_MakeSignedData [11:30:44]FM_MakeSignedData [11:30:44]SAM_PROTO_SignData [11:30:44]wFMCommunicate request_size=4 [11:30:44]MH_SAM_APDU [11:30:44]CAPDU: 80 0D 01 02 [11:30:44]Write to MH i2c: E2 08 00 4D 0B 80 0D 01 02 00 00 00 00 D1 [11:30:44]Write i2c OK [11:30:44]MH_I2C_Read... [11:30:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:44]Read from MH i2c: E2 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: E2 03 00 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: E2 03 00 4D 0B 00 90 00 CC [11:30:44]RAPDU: 90 00 [11:30:44]wFMCommunicate OK [11:30:44]wFMCommunicate request_size=255 [11:30:44]MH_SAM_APDU [11:30: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 32 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 AD 00 00 00 F4 03 04 00 E3 D2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C3 12 03 00 35 04 06 00 D2 [11:30:44]Write to MH i2c: E2 02 01 4E 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 32 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 AD 00 00 00 F4 03 04 00 E3 D2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C3 12 03 00 35 04 06 00 D2 00 00 D7 [11:30:44]Write i2c OK [11:30:44]MH_I2C_Read... [11:30:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:44]Read from MH i2c: E2 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: E2 03 00 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: E2 03 00 4E 0B 00 90 00 CD [11:30:44]RAPDU: 90 00 [11:30:44]wFMCommunicate OK [11:30:44]wFMCommunicate request_size=10 [11:30:44]MH_SAM_APDU [11:30:44]CAPDU: 80 0D 02 02 05 68 E3 60 C3 A4 [11:30:44]Write to MH i2c: E2 0D 00 4F 0B 80 0D 02 02 05 00 68 E3 60 C3 A4 00 00 F0 [11:30:44]Write i2c OK [11:30:44]MH_I2C_Read... [11:30:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:44]Read from MH i2c: E2 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: E2 03 00 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: E2 03 00 4F 0B 00 90 00 CE [11:30:44]RAPDU: 90 00 [11:30:44]wFMCommunicate OK [11:30:44]wFMCommunicate request_size=4 [11:30:44]MH_SAM_APDU [11:30:44]CAPDU: 80 0D 03 02 [11:30:44]Write to MH i2c: E2 08 00 50 0B 80 0D 03 02 00 00 00 00 D6 [11:30:44]Write i2c OK [11:30:44]MH_I2C_Read... [11:30:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:44]Read from MH i2c: E2 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: E2 0B 00 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: E2 0B 00 50 0B 00 9E 43 6A A5 64 54 AA 61 90 00 8A [11:30:44]RAPDU: 9E 43 6A A5 64 54 AA 61 90 00 [11:30:44]wFMCommunicate OK [11:30:44]SAM_PROTO_SignData done [11:30:44]FM_MakeSignedData done [11:30:44]CreateOFDProtocolMessage [11:30:44]wFMCommunicate request_size=4 [11:30:44]MH_SAM_APDU [11:30:44]CAPDU: 80 11 00 00 [11:30:44]Write to MH i2c: E2 08 00 51 0B 80 11 00 00 00 00 00 00 D6 [11:30:44]Write i2c OK [11:30:44]MH_I2C_Read... [11:30:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:45]Read from MH i2c: E2 [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: E2 17 00 [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: E2 17 00 51 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2B [11:30:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:30:45]wFMCommunicate OK [11:30:45]CreateOFDProtocolMessage done [11:30:45]OFDSenderStorePacket 201411 [11:30:45]StoreOFDPacket docnum=201411 [11:30:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 91 A8 07 01 7F 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 32 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 AD 00 00 00 F4 03 04 00 E3 D2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C3 12 03 00 35 04 06 00 D2 68 E3 60 C3 A4 9E 43 6A A5 64 54 AA 61 [11:30:45]CheckFolder [11:30:45]dirname=/storage/ofd_packets [11:30:45]CheckFolder done [11:30:45]ProducePacketName [11:30:45]name=ofd_packets/00201411 [11:30:45]NVStorageSaveData ofd_packets/00201411 [11:30:45]File name is /storage/ofd_packets/00201411 [11:30:45]Write 301 bytes [11:30:45]NVStorageSaveData done [11:30:45]OFDSenderStorePacket done [11:30:45]KKMCreateOFDPacket done [11:30:45]NVStorageSaveData kkm_last_timestamp [11:30:45]File name is /storage/kkm_last_timestamp [11:30:45]Write 4 bytes [11:30:45]NVStorageSaveData done [11:30:45]ExternCall_PrintAddStr [11:30:45]wPrintStart [11:30:45]Write to MH i2c: 01 00 00 52 0B 5D [11:30:45]Write i2c OK [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: 01 [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: 01 07 00 [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: 01 07 00 52 0B 00 00 00 00 00 FF 0F 72 [11:30:45]RasterBufferAndPrint [11:30:45]line Счет N : (1)449160 [11:30:45]line ИНН: 02508201610067 [11:30:45]line Контрольно-Кассовый Чек [11:30:45]line ПРОДАЖА [11:30:45]line ТРК (МРК, ГНК) : 52 [11:30:45]line Товар: 2710124130 [11:30:45]line Аи-92-К-2 [11:30:45]line 2.990 * 66.90 [11:30:45]line = 200.03 [11:30:45]line НДС 12% НСП 1% [11:30:45]line > о реализуемом товаре [11:30:45]line ОКРУГЛЕНИЕ: -0.03 [11:30:45]line ИТОГО: 200.00 [11:30:45]line Внесено: 200.00 [11:30:45]line СДАЧА: 0.00 [11:30:45]line НСП 1% : 1.77 [11:30:45]line НДС 12% : 21.24 [11:30:45]line Наличными: 200.00 [11:30:45]line Безнал.: 0.00 [11:30:45]line Место: АЗС № 171 "Партнер Нефть" [11:30:45]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:30:45]line СНО: Общий режим [11:30:45]line Чек 173 26.10.2024 11:30 [11:30:45]line Смена: 543 ФФД: 1.0 [11:30:45]line ЗНМ: 0300000109 [11:30:45]line РНМ: 0000000000091777 [11:30:45]line Версия ККМ: 001 [11:30:45]line ФМ: 0000000000871756 [11:30:45]line ФД: 201411 [11:30:45]line ФПД: 231347933201316 [11:30:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113043&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201411&fm=231347933201316&tin=02508201610067®Number=0000000000091777&sum=20000 [11:30:45]OFD Sender: Processing packet 201411 [packets to send 112, broken 111] [11:30:45]ProducePacketName [11:30:45]name=ofd_packets/00201411 [11:30:45]OFD Sender: To server: pG, [11:30:45]CommunicateWithHost lk.salyk.kg:30040 [11:30:45]ConnectInit lk.salyk.kg [11:30:45]written 0, free lines is 4095 [11:30:45]Connected sock=10 [11:30:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 91 A8 07 01 7F 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 32 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 AD 00 00 00 F4 03 04 00 E3 D2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C3 12 03 00 35 04 06 00 D2 68 E3 60 C3 A4 9E 43 6A A5 64 54 AA 61 [11:30:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 6E CB 47 00 6F FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C3 12 03 00 F4 03 04 00 8C 7E 1C 67 B6 04 01 00 00 6D 12 02 BF 4E BF BC 11 [11:30:45]CommunicateWithHost err = 0 [11:30:45]CheckOFDResponse [11:30:45]1017 (14) - 77093643461234 [11:30:45]1041 (16) - 0000000000871756 [11:30:45]1040 (4) - 201411 [11:30:45]1012 (4) - 26.10.2024 05:30 [11:30:45]1206 (1) - 0 [11:30:45]OFD Sender: Remove packet 201411 [11:30:45]ProducePacketName [11:30:45]name=ofd_packets/00201411 [11:30:45]NVStorageDeleteData [11:30:45]Write to MH i2c: 01 00 00 7D 0B 88 [11:30:45]Write i2c OK [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: 01 [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: 01 07 00 [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: 01 07 00 7D 0B 00 00 00 00 00 A0 0C 3B [11:30:45]RasterBufferAndPrint [11:30:45]line [11:30:45]line [11:30:45]line [11:30:45]line [11:30:45]line [11:30:45]written 0, free lines is 3238 [11:30:45]MH_Cut [11:30:45]Write to MH i2c: D1 01 00 84 0B 01 61 [11:30:45]Write i2c OK [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: D1 [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: D1 01 00 [11:30:45]MH_I2C_Read... [11:30:45]Read from MH i2c: D1 01 00 84 0B 00 60 [11:30:45]Write to MH i2c: 01 00 00 85 0B 90 [11:30:45]Write i2c OK [11:30:45]MH_I2C_Read... [11:30:46]OFD Sender: No OFD packet to send [11:30:46]*** Cut start [11:30:46]*** Purtial cut [11:30:46]*** Stage 1: CUTSNS_PIN = 1 [11:30:46]Read from MH i2c: 01 [11:30:46]MH_I2C_Read... [11:30:46]*** Stop cut motor [11:30:46]*** Cut end [11:30:46]Read from MH i2c: 01 07 00 [11:30:46]MH_I2C_Read... [11:30:46]Read from MH i2c: 01 07 00 85 0B 00 00 00 00 00 FF 0F A5 [11:30:46]process_action close_receipt done [11:30:46]requested_data is exist [11:30:46]produce_requested_data [11:30:46]requested_item fm.sn is exist - process it [11:30:46]wFMCommunicate request_size=4 [11:30:46]MH_SAM_APDU [11:30:46]CAPDU: 80 11 00 00 [11:30:46]Write to MH i2c: E2 08 00 86 0B 80 11 00 00 00 00 00 00 0B [11:30:46]Write i2c OK [11:30:46]MH_I2C_Read... [11:30:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:46]Read from MH i2c: E2 [11:30:46]MH_I2C_Read... [11:30:46]Read from MH i2c: E2 17 00 [11:30:46]MH_I2C_Read... [11:30:46]Read from MH i2c: E2 17 00 86 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 60 [11:30:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:30:46]wFMCommunicate OK [11:30:46]requested_item fd.num is exist - process it [11:30:46]SAM_PROTO_GetFieldsCounters [11:30:46]wFMCommunicate request_size=4 [11:30:46]MH_SAM_APDU [11:30:46]CAPDU: 80 13 00 00 [11:30:46]Write to MH i2c: E2 08 00 87 0B 80 13 00 00 00 00 00 00 0E [11:30:46]Write i2c OK [11:30:46]MH_I2C_Read... [11:30:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:47]Read from MH i2c: E2 [11:30:47]MH_I2C_Read... [11:30:47]Read from MH i2c: E2 62 00 [11:30:47]MH_I2C_Read... [11:30:47]Read from MH i2c: E2 62 00 87 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C3 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [11:30:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C3 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:47]wFMCommunicate OK [11:30:47]SAM_PROTO_GetFieldsCounters done [11:30:47]requested_item shift.num is exist - process it [11:30:47]requested_item shift.opened is exist - process it [11:30:47]req_shift_opened [11:30:47]FM_GetShiftState [11:30:47]SAM_PROTO_GetShiftState [11:30:47]wFMCommunicate request_size=4 [11:30:47]MH_SAM_APDU [11:30:47]CAPDU: 80 13 01 00 [11:30:47]Write to MH i2c: E2 08 00 88 0B 80 13 01 00 00 00 00 00 10 [11:30:47]Write i2c OK [11:30:47]MH_I2C_Read... [11:30:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:47]Read from MH i2c: E2 [11:30:47]MH_I2C_Read... [11:30:47]Read from MH i2c: E2 0E 00 [11:30:47]MH_I2C_Read... [11:30:47]Read from MH i2c: E2 0E 00 88 0B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 1F [11:30:47]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:30:47]wFMCommunicate OK [11:30:47]SAM_PROTO_GetShiftState done [11:30:47]FM_GetShiftState done [11:30:47]req_shift_opened done [11:30:47]requested_item shift.open_date is exist - process it [11:30:47]req_shift_open_date [11:30:47]req_shift_open_date done [11:30:47]produce_requested_data done [11:30:47]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201411,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:30:47]process_action_free close_receipt [11:30:47]json_value_free [11:30:47]json_value_free done [11:30:47]process_json_proto returns [11:30:47]Send response to host [11:30:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201411,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:30:47]free response buf [11:30:47]execute_script done [11:30:47]execute_script returns [11:30:47]free content buf [11:30:47]Sock 7.Close socket [11:30:47]Sock 7.Thread stoped [11:30:51]OFD Sender: No OFD packet to send [11:30:56]OFD Sender: No OFD packet to send [11:31:01]OFD Sender: No OFD packet to send [11:31:06]OFD Sender: No OFD packet to send [11:31:11]OFD Sender: No OFD packet to send [11:31:16]OFD Sender: No OFD packet to send [11:31:21]OFD Sender: No OFD packet to send [11:31:26]OFD Sender: No OFD packet to send [11:31:31]OFD Sender: No OFD packet to send [11:31:36]OFD Sender: No OFD packet to send [11:31:41]OFD Sender: No OFD packet to send [11:31:46]OFD Sender: No OFD packet to send [11:31:51]OFD Sender: No OFD packet to send [11:31:56]OFD Sender: No OFD packet to send [11:31:57]accept exits with 9 [11:31:57]New connection [11:31:57]New thread 3066498404 created [11:31:57]Thread 3066641764 joined [11:31:57]Waiting for new connection... [11:31:57] Sock 9.Parse request [11:31:57]Sock 9.Check first char [11:31:57]Sock 9.First char is OK [11:31:57]request: POST /json_proto HTTP/1.0 [11:31:57]Method: POST [11:31:57]URL: /json_proto [11:31:57]Method is POST - this is cgi request [11:31:57]url: /json_proto [11:31:57]query_string will be loaded in cgi processing [11:31:57]execute_cgi json_proto POST (null) [11:31:57]execute_cgi path=json_proto method=POST [11:31:57]POST find Content-Length [11:31:57]Host: 172.17.63.195:8080 [11:31:57]Content-Length: 769 [11:31:57]Content-Type: application/json [11:31:57] [11:31:57]POST finish read [11:31:57]Found Content-Length = 769 [11:31:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:57]execute_script... [11:31: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)449161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:57]POST & json_proto [11:31:57]process_json_proto [11:31:57]json parsed OK: [11:31:57]protocol is kg_v1.0 [11:31:57]action value=close_receipt [11:31:57]process_action close_receipt [11:31:57]cmd_close_receipt [11:31:57]MH_GetDate [11:31:57]Write to MH i2c: F0 00 00 89 0B 83 [11:31:57]Write i2c OK [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: F0 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: F0 09 00 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: F0 09 00 89 0B 00 2D D3 1C 67 68 46 19 67 3D [11:31:57]GetLastDocTimeStamp 1729942243 [11:31:57]current date 1729942317 [11:31:57]FM_GetShiftState [11:31:57]SAM_PROTO_GetShiftState [11:31:57]wFMCommunicate request_size=4 [11:31:57]MH_SAM_APDU [11:31:57]CAPDU: 80 13 01 00 [11:31:57]Write to MH i2c: E2 08 00 8A 0B 80 13 01 00 00 00 00 00 12 [11:31:57]Write i2c OK [11:31:57]MH_I2C_Read... [11:31:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:57]Read from MH i2c: E2 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: E2 0E 00 [11:31:57]MH_I2C_Read... [11:31:57]Read from MH i2c: E2 0E 00 8A 0B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 21 [11:31:57]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:31:57]wFMCommunicate OK [11:31:57]SAM_PROTO_GetShiftState done [11:31:57]FM_GetShiftState done [11:31:57]opened in 1729900879 [11:31:57]opened+sec_in_day 1729987279 [11:31:57]quantity*price = 100015 [11:31:57]sum+1 = 100017 [11:31:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 174 26.10.2024 11:31 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201412 ФПД: 41302100062561 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113158&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201412&fm=41302100062561&tin=02508201610067®Number=0000000000091777&sum=100016 [11:31:58]StoreToDocumentArchive [11:31:58]shift 543 fd 201412 [11:31:58]save to /storage/0543/doc_00201412 [11:31:58]save last doc name /storage/0543/doc_00201412 to /storage/kkm_last_doc_name [11:31:58]save OK [11:31:58]Clear old archive folders... [11:31:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:31:58]tlvbuf is 017A81A0 [11:31:58]SAM_PROTO_ClearQueue [11:31:58]wFMCommunicate request_size=4 [11:31:58]MH_SAM_APDU [11:31:58]CAPDU: 80 09 00 00 [11:31:58]Write to MH i2c: E2 08 00 97 0B 80 09 00 00 00 00 00 00 14 [11:31:58]Write i2c OK [11:31:58]MH_I2C_Read... [11:31:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:31:58]Read from MH i2c: E2 [11:31:58]MH_I2C_Read... [11:31:58]Read from MH i2c: E2 03 00 [11:31:58]MH_I2C_Read... [11:31:58]Read from MH i2c: E2 03 00 97 0B 00 90 00 16 [11:31:58]RAPDU: 90 00 [11:31:58]wFMCommunicate OK [11:31:58]SAM_PROTO_ClearQueue done [11:31:58]KKMCreateOFDPacket [11:31:58]OFDProtocolAddRootSTLVToBuf [11:31:58]FM_MakeSignedData [11:31:58]FM_MakeSignedData [11:31:58]SAM_PROTO_SignData [11:31:58]wFMCommunicate request_size=4 [11:31:58]MH_SAM_APDU [11:31:58]CAPDU: 80 0D 01 02 [11:31:58]Write to MH i2c: E2 08 00 98 0B 80 0D 01 02 00 00 00 00 1C [11:31:58]Write i2c OK [11:31:58]MH_I2C_Read... [11:31:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:31:58]Read from MH i2c: E2 [11:31:58]MH_I2C_Read... [11:31:58]Read from MH i2c: E2 03 00 [11:31:58]MH_I2C_Read... [11:31:58]Read from MH i2c: E2 03 00 98 0B 00 90 00 17 [11:31:58]RAPDU: 90 00 [11:31:58]wFMCommunicate OK [11:31:58]wFMCommunicate request_size=255 [11:31:58]MH_SAM_APDU [11:31: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 32 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 B0 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 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 2E D3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C4 12 03 00 35 04 06 00 25 [11:31:58]Write to MH i2c: E2 02 01 99 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 32 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 B0 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 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 2E D3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C4 12 03 00 35 04 06 00 25 00 00 1B [11:31:58]Write i2c OK [11:31:58]MH_I2C_Read... [11:31:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:59]Read from MH i2c: E2 [11:31:59]MH_I2C_Read... [11:31:59]Read from MH i2c: E2 03 00 [11:31:59]MH_I2C_Read... [11:31:59]Read from MH i2c: E2 03 00 99 0B 00 90 00 18 [11:31:59]RAPDU: 90 00 [11:31:59]wFMCommunicate OK [11:31:59]wFMCommunicate request_size=10 [11:31:59]MH_SAM_APDU [11:31:59]CAPDU: 80 0D 02 02 05 90 65 00 B1 61 [11:31:59]Write to MH i2c: E2 0D 00 9A 0B 80 0D 02 02 05 00 90 65 00 B1 61 00 00 30 [11:31:59]Write i2c OK [11:31:59]MH_I2C_Read... [11:31:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:59]Read from MH i2c: E2 [11:31:59]MH_I2C_Read... [11:31:59]Read from MH i2c: E2 03 00 [11:31:59]MH_I2C_Read... [11:31:59]Read from MH i2c: E2 03 00 9A 0B 00 90 00 19 [11:31:59]RAPDU: 90 00 [11:31:59]wFMCommunicate OK [11:31:59]wFMCommunicate request_size=4 [11:31:59]MH_SAM_APDU [11:31:59]CAPDU: 80 0D 03 02 [11:31:59]Write to MH i2c: E2 08 00 9B 0B 80 0D 03 02 00 00 00 00 21 [11:31:59]Write i2c OK [11:31:59]MH_I2C_Read... [11:31:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:31:59]Read from MH i2c: E2 [11:31:59]MH_I2C_Read... [11:31:59]Read from MH i2c: E2 0B 00 [11:31:59]MH_I2C_Read... [11:31:59]Read from MH i2c: E2 0B 00 9B 0B 00 9F 72 A2 FF F7 AF 99 89 90 00 9C [11:31:59]RAPDU: 9F 72 A2 FF F7 AF 99 89 90 00 [11:31:59]wFMCommunicate OK [11:31:59]SAM_PROTO_SignData done [11:31:59]FM_MakeSignedData done [11:31:59]CreateOFDProtocolMessage [11:31:59]wFMCommunicate request_size=4 [11:31:59]MH_SAM_APDU [11:31:59]CAPDU: 80 11 00 00 [11:31:59]Write to MH i2c: E2 08 00 9C 0B 80 11 00 00 00 00 00 00 21 [11:31:59]Write i2c OK [11:31:59]MH_I2C_Read... [11:31:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:59]Read from MH i2c: E2 [11:31:59]MH_I2C_Read... [11:31:59]Read from MH i2c: E2 17 00 [11:31:59]MH_I2C_Read... [11:31:59]Read from MH i2c: E2 17 00 9C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 76 [11:31:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:31:59]wFMCommunicate OK [11:31:59]CreateOFDProtocolMessage done [11:31:59]OFDSenderStorePacket 201412 [11:31:59]StoreOFDPacket docnum=201412 [11:31:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 CB 6E 07 01 9F FD 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 32 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 B0 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 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 2E D3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C4 12 03 00 35 04 06 00 25 90 65 00 B1 61 9F 72 A2 FF F7 AF 99 89 [11:31:59]CheckFolder [11:31:59]dirname=/storage/ofd_packets [11:31:59]CheckFolder done [11:31:59]ProducePacketName [11:31:59]name=ofd_packets/00201412 [11:31:59]NVStorageSaveData ofd_packets/00201412 [11:31:59]File name is /storage/ofd_packets/00201412 [11:31:59]Write 301 bytes [11:31:59]NVStorageSaveData done [11:31:59]OFDSenderStorePacket done [11:31:59]KKMCreateOFDPacket done [11:31:59]NVStorageSaveData kkm_last_timestamp [11:31:59]File name is /storage/kkm_last_timestamp [11:31:59]Write 4 bytes [11:31:59]NVStorageSaveData done [11:31:59]ExternCall_PrintAddStr [11:31:59]wPrintStart [11:31:59]Write to MH i2c: 01 00 00 9D 0B A8 [11:31:59]Write i2c OK [11:31:59]MH_I2C_Read... [11:31:59]Read from MH i2c: 01 [11:31:59]MH_I2C_Read... [11:31:59]Read from MH i2c: 01 07 00 [11:31:59]MH_I2C_Read... [11:31:59]Read from MH i2c: 01 07 00 9D 0B 00 00 00 00 00 FF 0F BD [11:31:59]RasterBufferAndPrint [11:31:59]line Счет N : (1)449161 [11:31:59]line ИНН: 02508201610067 [11:31:59]line Контрольно-Кассовый Чек [11:31:59]line ПРОДАЖА [11:31:59]line ТРК (МРК, ГНК) : 41 [11:31:59]line Товар: 2710124130 [11:31:59]line Аи-92-К-2 [11:31:59]line 14.950 * 66.90 [11:31:59]line = 1000.16 [11:31:59]line НДС 12% НСП 1% [11:31:59]line > о реализуемом товаре [11:31:59]line ИТОГО: 1000.16 [11:31:59]line НСП 1% : 8.85 [11:31:59]line НДС 12% : 106.21 [11:31:59]line Наличными: 0.00 [11:31:59]line Безнал.: 1000.16 [11:31:59]line Место: АЗС № 171 "Партнер Нефть" [11:31:59]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:31:59]line СНО: Общий режим [11:31:59]line Чек 174 26.10.2024 11:31 [11:31:59]line Смена: 543 ФФД: 1.0 [11:31:59]line ЗНМ: 0300000109 [11:31:59]line РНМ: 0000000000091777 [11:31:59]line Версия ККМ: 001 [11:31:59]line Платежная система: Mbank [11:31:59]line ФМ: 0000000000871756 [11:31:59]line ФД: 201412 [11:31:59]line ФПД: 41302100062561 [11:31:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113158&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201412&fm=41302100062561&tin=02508201610067®Number=0000000000091777&sum=100016 [11:31:59]OFD Sender: Processing packet 201412 [packets to send 112, broken 111] [11:31:59]ProducePacketName [11:31:59]name=ofd_packets/00201412 [11:31:59]OFD Sender: To server: pG, [11:31:59]CommunicateWithHost lk.salyk.kg:30040 [11:31:59]ConnectInit lk.salyk.kg [11:31:59]written 0, free lines is 4095 [11:31:59]Connected sock=10 [11:31:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 CB 6E 07 01 9F FD 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 32 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 B0 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 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 2E D3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C4 12 03 00 35 04 06 00 25 90 65 00 B1 61 9F 72 A2 FF F7 AF 99 89 [11:32:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 3A FF 47 00 45 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C4 12 03 00 F4 03 04 00 D7 7E 1C 67 B6 04 01 00 00 56 9C 7C E8 98 AB 93 D3 [11:32:00]CommunicateWithHost err = 0 [11:32:00]CheckOFDResponse [11:32:00]1017 (14) - 77093643461234 [11:32:00]1041 (16) - 0000000000871756 [11:32:00]1040 (4) - 201412 [11:32:00]1012 (4) - 26.10.2024 05:32 [11:32:00]1206 (1) - 0 [11:32:00]OFD Sender: Remove packet 201412 [11:32:00]ProducePacketName [11:32:00]name=ofd_packets/00201412 [11:32:00]NVStorageDeleteData [11:32:00]Write to MH i2c: 01 00 00 C6 0B D1 [11:32:00]Write i2c OK [11:32:00]MH_I2C_Read... [11:32:00]Read from MH i2c: 01 [11:32:00]MH_I2C_Read... [11:32:00]Read from MH i2c: 01 07 00 [11:32:00]MH_I2C_Read... [11:32:00]Read from MH i2c: 01 07 00 C6 0B 00 00 00 00 00 C8 0C AC [11:32:00]RasterBufferAndPrint [11:32:00]line [11:32:00]line [11:32:00]line [11:32:00]line [11:32:00]line [11:32:00]written 0, free lines is 3278 [11:32:00]MH_Cut [11:32:00]Write to MH i2c: D1 01 00 CD 0B 01 AA [11:32:00]Write i2c OK [11:32:00]MH_I2C_Read... [11:32:00]Read from MH i2c: D1 [11:32:00]MH_I2C_Read... [11:32:00]Read from MH i2c: D1 01 00 [11:32:00]MH_I2C_Read... [11:32:00]Read from MH i2c: D1 01 00 CD 0B 00 A9 [11:32:00]Write to MH i2c: 01 00 00 CE 0B D9 [11:32:00]Write i2c OK [11:32:00]MH_I2C_Read... [11:32:00]OFD Sender: No OFD packet to send [11:32:01]*** Cut start [11:32:01]*** Purtial cut [11:32:01]*** Stage 1: CUTSNS_PIN = 1 [11:32:01]Read from MH i2c: 01 [11:32:01]MH_I2C_Read... [11:32:01]*** Stop cut motor [11:32:01]*** Cut end [11:32:01]Read from MH i2c: 01 07 00 [11:32:01]MH_I2C_Read... [11:32:01]Read from MH i2c: 01 07 00 CE 0B 00 00 00 00 00 FF 0F EE [11:32:01]process_action close_receipt done [11:32:01]requested_data is exist [11:32:01]produce_requested_data [11:32:01]requested_item fm.sn is exist - process it [11:32:01]wFMCommunicate request_size=4 [11:32:01]MH_SAM_APDU [11:32:01]CAPDU: 80 11 00 00 [11:32:01]Write to MH i2c: E2 08 00 CF 0B 80 11 00 00 00 00 00 00 54 [11:32:01]Write i2c OK [11:32:01]MH_I2C_Read... [11:32:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:01]Read from MH i2c: E2 [11:32:01]MH_I2C_Read... [11:32:01]Read from MH i2c: E2 17 00 [11:32:01]MH_I2C_Read... [11:32:01]Read from MH i2c: E2 17 00 CF 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A9 [11:32:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:32:01]wFMCommunicate OK [11:32:01]requested_item fd.num is exist - process it [11:32:01]SAM_PROTO_GetFieldsCounters [11:32:01]wFMCommunicate request_size=4 [11:32:01]MH_SAM_APDU [11:32:01]CAPDU: 80 13 00 00 [11:32:01]Write to MH i2c: E2 08 00 D0 0B 80 13 00 00 00 00 00 00 57 [11:32:01]Write i2c OK [11:32:01]MH_I2C_Read... [11:32:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:01]Read from MH i2c: E2 [11:32:01]MH_I2C_Read... [11:32:01]Read from MH i2c: E2 62 00 [11:32:01]MH_I2C_Read... [11:32:01]Read from MH i2c: E2 62 00 D0 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C4 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [11:32:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C4 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:32:01]wFMCommunicate OK [11:32:01]SAM_PROTO_GetFieldsCounters done [11:32:01]requested_item shift.num is exist - process it [11:32:01]requested_item shift.opened is exist - process it [11:32:01]req_shift_opened [11:32:01]FM_GetShiftState [11:32:01]SAM_PROTO_GetShiftState [11:32:01]wFMCommunicate request_size=4 [11:32:01]MH_SAM_APDU [11:32:01]CAPDU: 80 13 01 00 [11:32:01]Write to MH i2c: E2 08 00 D1 0B 80 13 01 00 00 00 00 00 59 [11:32:01]Write i2c OK [11:32:01]MH_I2C_Read... [11:32:01]Read from MH i2c: E2 [11:32:01]MH_I2C_Read... [11:32:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:01]Read from MH i2c: E2 0E 00 [11:32:01]MH_I2C_Read... [11:32:01]Read from MH i2c: E2 0E 00 D1 0B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 68 [11:32:01]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:32:01]wFMCommunicate OK [11:32:01]SAM_PROTO_GetShiftState done [11:32:01]FM_GetShiftState done [11:32:01]req_shift_opened done [11:32:01]requested_item shift.open_date is exist - process it [11:32:01]req_shift_open_date [11:32:01]req_shift_open_date done [11:32:01]produce_requested_data done [11:32:01]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201412,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:32:01]process_action_free close_receipt [11:32:01]json_value_free [11:32:01]json_value_free done [11:32:01]process_json_proto returns [11:32:01]Send response to host [11:32:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201412,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:32:01]free response buf [11:32:01]execute_script done [11:32:01]execute_script returns [11:32:01]free content buf [11:32:01]Sock 9.Close socket [11:32:01]Sock 9.Thread stoped [11:32:05]OFD Sender: No OFD packet to send [11:32:10]OFD Sender: No OFD packet to send [11:32:15]OFD Sender: No OFD packet to send [11:32:20]OFD Sender: No OFD packet to send [11:32:25]OFD Sender: No OFD packet to send [11:32:26]accept exits with 7 [11:32:26]New connection [11:32:26]New thread 3066641764 created [11:32:26]Thread 3066498404 joined [11:32:26]Waiting for new connection... [11:32:26] Sock 7.Parse request [11:32:26]Sock 7.Check first char [11:32:26]Sock 7.First char is OK [11:32:26]request: POST /json_proto HTTP/1.0 [11:32:26]Method: POST [11:32:26]URL: /json_proto [11:32:26]Method is POST - this is cgi request [11:32:26]url: /json_proto [11:32:26]query_string will be loaded in cgi processing [11:32:26]execute_cgi json_proto POST (null) [11:32:26]execute_cgi path=json_proto method=POST [11:32:26]POST find Content-Length [11:32:26]Host: 172.17.63.195:8080 [11:32:26]Content-Length: 682 [11:32:26]Content-Type: application/json [11:32:26] [11:32:26]POST finish read [11:32:26]Found Content-Length = 682 [11:32:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:32:26]execute_script... [11:32: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)449162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:32:26]POST & json_proto [11:32:26]process_json_proto [11:32:26]json parsed OK: [11:32:26]protocol is kg_v1.0 [11:32:26]action value=close_receipt [11:32:26]process_action close_receipt [11:32:26]cmd_close_receipt [11:32:26]MH_GetDate [11:32:26]Write to MH i2c: F0 00 00 D2 0B CC [11:32:26]Write i2c OK [11:32:26]MH_I2C_Read... [11:32:26]Read from MH i2c: F0 [11:32:26]MH_I2C_Read... [11:32:26]Read from MH i2c: F0 09 00 [11:32:26]MH_I2C_Read... [11:32:26]Read from MH i2c: F0 09 00 D2 0B 00 4A D3 1C 67 68 46 19 67 A3 [11:32:26]GetLastDocTimeStamp 1729942318 [11:32:26]current date 1729942346 [11:32:26]FM_GetShiftState [11:32:26]SAM_PROTO_GetShiftState [11:32:26]wFMCommunicate request_size=4 [11:32:26]MH_SAM_APDU [11:32:26]CAPDU: 80 13 01 00 [11:32:26]Write to MH i2c: E2 08 00 D3 0B 80 13 01 00 00 00 00 00 5B [11:32:26]Write i2c OK [11:32:26]MH_I2C_Read... [11:32:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:26]Read from MH i2c: E2 [11:32:26]MH_I2C_Read... [11:32:26]Read from MH i2c: E2 0E 00 [11:32:26]MH_I2C_Read... [11:32:26]Read from MH i2c: E2 0E 00 D3 0B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 6A [11:32:26]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:32:26]wFMCommunicate OK [11:32:26]SAM_PROTO_GetShiftState done [11:32:26]FM_GetShiftState done [11:32:26]opened in 1729900879 [11:32:26]opened+sec_in_day 1729987279 [11:32:26]quantity*price = 100015 [11:32:26]sum+1 = 100017 [11:32:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 175 26.10.2024 11:32 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201413 ФПД: 275355212670415 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113226&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201413&fm=275355212670415&tin=02508201610067®Number=0000000000091777&sum=100000 [11:32:27]StoreToDocumentArchive [11:32:27]shift 543 fd 201413 [11:32:27]save to /storage/0543/doc_00201413 [11:32:27]save last doc name /storage/0543/doc_00201413 to /storage/kkm_last_doc_name [11:32:27]save OK [11:32:27]Clear old archive folders... [11:32:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:32:27]tlvbuf is 017FCF90 [11:32:27]SAM_PROTO_ClearQueue [11:32:27]wFMCommunicate request_size=4 [11:32:27]MH_SAM_APDU [11:32:27]CAPDU: 80 09 00 00 [11:32:27]Write to MH i2c: E2 08 00 E0 0B 80 09 00 00 00 00 00 00 5D [11:32:27]Write i2c OK [11:32:27]MH_I2C_Read... [11:32:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:32:27]Read from MH i2c: E2 [11:32:27]MH_I2C_Read... [11:32:27]Read from MH i2c: E2 03 00 [11:32:27]MH_I2C_Read... [11:32:27]Read from MH i2c: E2 03 00 E0 0B 00 90 00 5F [11:32:27]RAPDU: 90 00 [11:32:27]wFMCommunicate OK [11:32:27]SAM_PROTO_ClearQueue done [11:32:27]KKMCreateOFDPacket [11:32:27]OFDProtocolAddRootSTLVToBuf [11:32:27]FM_MakeSignedData [11:32:27]FM_MakeSignedData [11:32:27]SAM_PROTO_SignData [11:32:27]wFMCommunicate request_size=4 [11:32:27]MH_SAM_APDU [11:32:27]CAPDU: 80 0D 01 02 [11:32:27]Write to MH i2c: E2 08 00 E1 0B 80 0D 01 02 00 00 00 00 65 [11:32:27]Write i2c OK [11:32:27]MH_I2C_Read... [11:32:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:32:27]Read from MH i2c: E2 [11:32:27]MH_I2C_Read... [11:32:27]Read from MH i2c: E2 03 00 [11:32:27]MH_I2C_Read... [11:32:27]Read from MH i2c: E2 03 00 E1 0B 00 90 00 60 [11:32:27]RAPDU: 90 00 [11:32:27]wFMCommunicate OK [11:32:27]wFMCommunicate request_size=255 [11:32:27]MH_SAM_APDU [11:32: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 32 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 AF 00 00 00 F4 03 04 00 4A D3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C5 12 03 00 35 04 06 00 FA [11:32:27]Write to MH i2c: E2 02 01 E2 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 32 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 AF 00 00 00 F4 03 04 00 4A D3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C5 12 03 00 35 04 06 00 FA 00 00 37 [11:32:27]Write i2c OK [11:32:27]MH_I2C_Read... [11:32:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:28]Read from MH i2c: E2 [11:32:28]MH_I2C_Read... [11:32:28]Read from MH i2c: E2 03 00 [11:32:28]MH_I2C_Read... [11:32:28]Read from MH i2c: E2 03 00 E2 0B 00 90 00 61 [11:32:28]RAPDU: 90 00 [11:32:28]wFMCommunicate OK [11:32:28]wFMCommunicate request_size=10 [11:32:28]MH_SAM_APDU [11:32:28]CAPDU: 80 0D 02 02 05 6F 21 A3 65 CF [11:32:28]Write to MH i2c: E2 0D 00 E3 0B 80 0D 02 02 05 00 6F 21 A3 65 CF 00 00 D9 [11:32:28]Write i2c OK [11:32:28]MH_I2C_Read... [11:32:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:28]Read from MH i2c: E2 [11:32:28]MH_I2C_Read... [11:32:28]Read from MH i2c: E2 03 00 [11:32:28]MH_I2C_Read... [11:32:28]Read from MH i2c: E2 03 00 E3 0B 00 90 00 62 [11:32:28]RAPDU: 90 00 [11:32:28]wFMCommunicate OK [11:32:28]wFMCommunicate request_size=4 [11:32:28]MH_SAM_APDU [11:32:28]CAPDU: 80 0D 03 02 [11:32:28]Write to MH i2c: E2 08 00 E4 0B 80 0D 03 02 00 00 00 00 6A [11:32:28]Write i2c OK [11:32:28]MH_I2C_Read... [11:32:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:32:28]Read from MH i2c: E2 [11:32:28]MH_I2C_Read... [11:32:28]Read from MH i2c: E2 0B 00 [11:32:28]MH_I2C_Read... [11:32:28]Read from MH i2c: E2 0B 00 E4 0B 00 20 8B 05 6F 32 DE EB CB 90 00 50 [11:32:28]RAPDU: 20 8B 05 6F 32 DE EB CB 90 00 [11:32:28]wFMCommunicate OK [11:32:28]SAM_PROTO_SignData done [11:32:28]FM_MakeSignedData done [11:32:28]CreateOFDProtocolMessage [11:32:28]wFMCommunicate request_size=4 [11:32:28]MH_SAM_APDU [11:32:28]CAPDU: 80 11 00 00 [11:32:28]Write to MH i2c: E2 08 00 E5 0B 80 11 00 00 00 00 00 00 6A [11:32:28]Write i2c OK [11:32:28]MH_I2C_Read... [11:32:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:28]Read from MH i2c: E2 [11:32:28]MH_I2C_Read... [11:32:28]Read from MH i2c: E2 17 00 [11:32:28]MH_I2C_Read... [11:32:28]Read from MH i2c: E2 17 00 E5 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BF [11:32:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:32:28]wFMCommunicate OK [11:32:28]CreateOFDProtocolMessage done [11:32:28]OFDSenderStorePacket 201413 [11:32:28]StoreOFDPacket docnum=201413 [11:32:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 42 90 07 01 E7 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 32 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 AF 00 00 00 F4 03 04 00 4A D3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C5 12 03 00 35 04 06 00 FA 6F 21 A3 65 CF 20 8B 05 6F 32 DE EB CB [11:32:28]CheckFolder [11:32:28]dirname=/storage/ofd_packets [11:32:28]CheckFolder done [11:32:28]ProducePacketName [11:32:28]name=ofd_packets/00201413 [11:32:28]NVStorageSaveData ofd_packets/00201413 [11:32:28]File name is /storage/ofd_packets/00201413 [11:32:28]Write 301 bytes [11:32:28]NVStorageSaveData done [11:32:28]OFDSenderStorePacket done [11:32:28]KKMCreateOFDPacket done [11:32:28]NVStorageSaveData kkm_last_timestamp [11:32:28]File name is /storage/kkm_last_timestamp [11:32:28]Write 4 bytes [11:32:28]NVStorageSaveData done [11:32:28]ExternCall_PrintAddStr [11:32:28]wPrintStart [11:32:28]Write to MH i2c: 01 00 00 E6 0B F1 [11:32:28]Write i2c OK [11:32:28]MH_I2C_Read... [11:32:28]Read from MH i2c: 01 [11:32:28]MH_I2C_Read... [11:32:28]Read from MH i2c: 01 07 00 [11:32:28]MH_I2C_Read... [11:32:28]Read from MH i2c: 01 07 00 E6 0B 00 00 00 00 00 FF 0F 06 [11:32:28]RasterBufferAndPrint [11:32:28]line Счет N : (1)449162 [11:32:28]line ИНН: 02508201610067 [11:32:28]line Контрольно-Кассовый Чек [11:32:28]line ПРОДАЖА [11:32:28]line ТРК (МРК, ГНК) : 52 [11:32:28]line Товар: 2710124130 [11:32:28]line Аи-92-К-2 [11:32:28]line 14.950 * 66.90 [11:32:28]line = 1000.16 [11:32:28]line НДС 12% НСП 1% [11:32:28]line > о реализуемом товаре [11:32:28]line ОКРУГЛЕНИЕ: -0.16 [11:32:28]line ИТОГО: 1000.00 [11:32:28]line Внесено: 1000.00 [11:32:28]line СДАЧА: 0.00 [11:32:28]line НСП 1% : 8.85 [11:32:28]line НДС 12% : 106.21 [11:32:28]line Наличными: 1000.00 [11:32:28]line Безнал.: 0.00 [11:32:28]line Место: АЗС № 171 "Партнер Нефть" [11:32:28]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:32:28]line СНО: Общий режим [11:32:28]line Чек 175 26.10.2024 11:32 [11:32:28]line Смена: 543 ФФД: 1.0 [11:32:28]line ЗНМ: 0300000109 [11:32:28]line РНМ: 0000000000091777 [11:32:28]line Версия ККМ: 001 [11:32:28]line ФМ: 0000000000871756 [11:32:28]line ФД: 201413 [11:32:28]line ФПД: 275355212670415 [11:32:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113226&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201413&fm=275355212670415&tin=02508201610067®Number=0000000000091777&sum=100000 [11:32:28]OFD Sender: Processing packet 201413 [packets to send 112, broken 111] [11:32:28]ProducePacketName [11:32:28]name=ofd_packets/00201413 [11:32:28]OFD Sender: To server: pG, [11:32:28]CommunicateWithHost lk.salyk.kg:30040 [11:32:28]ConnectInit lk.salyk.kg [11:32:28]written 0, free lines is 4095 [11:32:28]Connected sock=10 [11:32:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 42 90 07 01 E7 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 32 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 AF 00 00 00 F4 03 04 00 4A D3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C5 12 03 00 35 04 06 00 FA 6F 21 A3 65 CF 20 8B 05 6F 32 DE EB CB [11:32:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 80 FB 47 00 E2 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C5 12 03 00 F4 03 04 00 F4 7E 1C 67 B6 04 01 00 00 71 73 D3 B6 C9 BA 03 72 [11:32:29]CommunicateWithHost err = 0 [11:32:29]CheckOFDResponse [11:32:29]1017 (14) - 77093643461234 [11:32:29]1041 (16) - 0000000000871756 [11:32:29]1040 (4) - 201413 [11:32:29]1012 (4) - 26.10.2024 05:32 [11:32:29]1206 (1) - 0 [11:32:29]OFD Sender: Remove packet 201413 [11:32:29]ProducePacketName [11:32:29]name=ofd_packets/00201413 [11:32:29]NVStorageDeleteData [11:32:29]Write to MH i2c: 01 00 00 11 0C 1D [11:32:29]Write i2c OK [11:32:29]MH_I2C_Read... [11:32:29]Read from MH i2c: 01 [11:32:29]MH_I2C_Read... [11:32:29]Read from MH i2c: 01 07 00 [11:32:29]MH_I2C_Read... [11:32:29]Read from MH i2c: 01 07 00 11 0C 00 00 00 00 00 AA 0C DA [11:32:29]RasterBufferAndPrint [11:32:29]line [11:32:29]line [11:32:29]line [11:32:29]line [11:32:29]line [11:32:29]written 0, free lines is 3247 [11:32:29]MH_Cut [11:32:29]Write to MH i2c: D1 01 00 18 0C 01 F6 [11:32:29]Write i2c OK [11:32:29]MH_I2C_Read... [11:32:29]Read from MH i2c: D1 [11:32:29]MH_I2C_Read... [11:32:29]Read from MH i2c: D1 01 00 [11:32:29]MH_I2C_Read... [11:32:29]Read from MH i2c: D1 01 00 18 0C 00 F5 [11:32:29]Write to MH i2c: 01 00 00 19 0C 25 [11:32:29]Write i2c OK [11:32:29]MH_I2C_Read... [11:32:29]OFD Sender: No OFD packet to send [11:32:30]*** Cut start [11:32:30]*** Purtial cut [11:32:30]*** CUTSNS_PIN = 0 [11:32:30]*** Stage 1: CUTSNS_PIN = 1 [11:32:32]Read from MH i2c: 01 [11:32:32]MH_I2C_Read... [11:32:32]*** Stop cut motor [11:32:32]*** Cut end [11:32:32]Read from MH i2c: 01 07 00 [11:32:32]MH_I2C_Read... [11:32:32]Read from MH i2c: 01 07 00 19 0C 00 00 00 00 00 FF 0F 3A [11:32:32]process_action close_receipt done [11:32:32]requested_data is exist [11:32:32]produce_requested_data [11:32:32]requested_item fm.sn is exist - process it [11:32:32]wFMCommunicate request_size=4 [11:32:32]MH_SAM_APDU [11:32:32]CAPDU: 80 11 00 00 [11:32:32]Write to MH i2c: E2 08 00 1A 0C 80 11 00 00 00 00 00 00 A0 [11:32:32]Write i2c OK [11:32:32]MH_I2C_Read... [11:32:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:32]Read from MH i2c: E2 [11:32:32]MH_I2C_Read... [11:32:32]Read from MH i2c: E2 17 00 [11:32:32]MH_I2C_Read... [11:32:32]Read from MH i2c: E2 17 00 1A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F5 [11:32:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:32:32]wFMCommunicate OK [11:32:32]requested_item fd.num is exist - process it [11:32:32]SAM_PROTO_GetFieldsCounters [11:32:32]wFMCommunicate request_size=4 [11:32:32]MH_SAM_APDU [11:32:32]CAPDU: 80 13 00 00 [11:32:32]Write to MH i2c: E2 08 00 1B 0C 80 13 00 00 00 00 00 00 A3 [11:32:32]Write i2c OK [11:32:32]MH_I2C_Read... [11:32:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:32]Read from MH i2c: E2 [11:32:32]MH_I2C_Read... [11:32:32]Read from MH i2c: E2 62 00 [11:32:32]MH_I2C_Read... [11:32:32]Read from MH i2c: E2 62 00 1B 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C5 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [11:32:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C5 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:32:32]wFMCommunicate OK [11:32:32]SAM_PROTO_GetFieldsCounters done [11:32:32]requested_item shift.num is exist - process it [11:32:32]requested_item shift.opened is exist - process it [11:32:32]req_shift_opened [11:32:32]FM_GetShiftState [11:32:32]SAM_PROTO_GetShiftState [11:32:32]wFMCommunicate request_size=4 [11:32:32]MH_SAM_APDU [11:32:32]CAPDU: 80 13 01 00 [11:32:32]Write to MH i2c: E2 08 00 1C 0C 80 13 01 00 00 00 00 00 A5 [11:32:32]Write i2c OK [11:32:32]MH_I2C_Read... [11:32:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:32]Read from MH i2c: E2 [11:32:32]MH_I2C_Read... [11:32:32]Read from MH i2c: E2 0E 00 [11:32:32]MH_I2C_Read... [11:32:32]Read from MH i2c: E2 0E 00 1C 0C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 B4 [11:32:32]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:32:32]wFMCommunicate OK [11:32:32]SAM_PROTO_GetShiftState done [11:32:32]FM_GetShiftState done [11:32:32]req_shift_opened done [11:32:32]requested_item shift.open_date is exist - process it [11:32:32]req_shift_open_date [11:32:32]req_shift_open_date done [11:32:32]produce_requested_data done [11:32:32]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201413,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:32:32]process_action_free close_receipt [11:32:32]json_value_free [11:32:32]json_value_free done [11:32:32]process_json_proto returns [11:32:32]Send response to host [11:32:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201413,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:32:32]free response buf [11:32:32]execute_script done [11:32:32]execute_script returns [11:32:32]free content buf [11:32:32]Sock 7.Close socket [11:32:32]Sock 7.Thread stoped [11:32:34]OFD Sender: No OFD packet to send [11:32:39]OFD Sender: No OFD packet to send [11:32:44]OFD Sender: No OFD packet to send [11:32:49]OFD Sender: No OFD packet to send [11:32:54]OFD Sender: No OFD packet to send [11:32:59]OFD Sender: No OFD packet to send [11:33:04]OFD Sender: No OFD packet to send [11:33:08]accept exits with 9 [11:33:08]New connection [11:33:08]New thread 3066498404 created [11:33:08]Thread 3066641764 joined [11:33:08]Waiting for new connection... [11:33:08] Sock 9.Parse request [11:33:08]Sock 9.Check first char [11:33:08]Sock 9.First char is OK [11:33:08]request: POST /json_proto HTTP/1.0 [11:33:08]Method: POST [11:33:08]URL: /json_proto [11:33:08]Method is POST - this is cgi request [11:33:08]url: /json_proto [11:33:08]query_string will be loaded in cgi processing [11:33:08]execute_cgi json_proto POST (null) [11:33:08]execute_cgi path=json_proto method=POST [11:33:08]POST find Content-Length [11:33:08]Host: 172.17.63.195:8080 [11:33:08]Content-Length: 984 [11:33:08]Content-Type: application/json [11:33:08] [11:33:08]POST finish read [11:33:08]Found Content-Length = 984 [11:33:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "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 171\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \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" ] } } [11:33:08]execute_script... [11:33:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "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 171\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \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" ] } } [11:33:08]POST & json_proto [11:33:08]process_json_proto [11:33:08]json parsed OK: [11:33:08]protocol is kg_v1.0 [11:33:08]action value=close_receipt [11:33:08]process_action close_receipt [11:33:08]cmd_close_receipt [11:33:08]MH_GetDate [11:33:08]Write to MH i2c: F0 00 00 1D 0C 18 [11:33:08]Write i2c OK [11:33:08]MH_I2C_Read... [11:33:08]Read from MH i2c: F0 [11:33:08]MH_I2C_Read... [11:33:08]Read from MH i2c: F0 09 00 [11:33:08]MH_I2C_Read... [11:33:08]Read from MH i2c: F0 09 00 1D 0C 00 75 D3 1C 67 68 46 19 67 1A [11:33:08]GetLastDocTimeStamp 1729942346 [11:33:08]current date 1729942389 [11:33:08]FM_GetShiftState [11:33:08]SAM_PROTO_GetShiftState [11:33:08]wFMCommunicate request_size=4 [11:33:08]MH_SAM_APDU [11:33:08]CAPDU: 80 13 01 00 [11:33:08]Write to MH i2c: E2 08 00 1E 0C 80 13 01 00 00 00 00 00 A7 [11:33:08]Write i2c OK [11:33:08]MH_I2C_Read... [11:33:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:08]Read from MH i2c: E2 [11:33:08]MH_I2C_Read... [11:33:08]Read from MH i2c: E2 0E 00 [11:33:08]MH_I2C_Read... [11:33:08]Read from MH i2c: E2 0E 00 1E 0C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 B6 [11:33:08]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:33:08]wFMCommunicate OK [11:33:08]SAM_PROTO_GetShiftState done [11:33:08]FM_GetShiftState done [11:33:08]opened in 1729900879 [11:33:08]opened+sec_in_day 1729987279 [11:33:08]quantity*price = 200006 [11:33:08]sum+1 = 200008 [11:33:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 176 26.10.2024 11:33 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Дисконтная программа АИ-92 номер 171 сэкономлено 30.35 сом ФМ: 0000000000871756 ФД: 201414 ФПД: 194947905613332 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113309&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201414&fm=194947905613332&tin=02508201610067®Number=0000000000091777&sum=200000 [11:33:10]StoreToDocumentArchive [11:33:10]shift 543 fd 201414 [11:33:10]save to /storage/0543/doc_00201414 [11:33:10]save last doc name /storage/0543/doc_00201414 to /storage/kkm_last_doc_name [11:33:10]save OK [11:33:10]Clear old archive folders... [11:33:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:33:10]tlvbuf is 017B29D0 [11:33:10]SAM_PROTO_ClearQueue [11:33:10]wFMCommunicate request_size=4 [11:33:10]MH_SAM_APDU [11:33:10]CAPDU: 80 09 00 00 [11:33:10]Write to MH i2c: E2 08 00 2B 0C 80 09 00 00 00 00 00 00 A9 [11:33:10]Write i2c OK [11:33:10]MH_I2C_Read... [11:33:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:10]Read from MH i2c: E2 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: E2 03 00 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: E2 03 00 2B 0C 00 90 00 AB [11:33:10]RAPDU: 90 00 [11:33:10]wFMCommunicate OK [11:33:10]SAM_PROTO_ClearQueue done [11:33:10]KKMCreateOFDPacket [11:33:10]OFDProtocolAddRootSTLVToBuf [11:33:10]FM_MakeSignedData [11:33:10]FM_MakeSignedData [11:33:10]SAM_PROTO_SignData [11:33:10]wFMCommunicate request_size=4 [11:33:10]MH_SAM_APDU [11:33:10]CAPDU: 80 0D 01 02 [11:33:10]Write to MH i2c: E2 08 00 2C 0C 80 0D 01 02 00 00 00 00 B1 [11:33:10]Write i2c OK [11:33:10]MH_I2C_Read... [11:33:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:10]Read from MH i2c: E2 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: E2 03 00 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: E2 03 00 2C 0C 00 90 00 AC [11:33:10]RAPDU: 90 00 [11:33:10]wFMCommunicate OK [11:33:10]wFMCommunicate request_size=255 [11:33:10]MH_SAM_APDU [11:33: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 32 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F8 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 B0 00 00 00 F4 03 04 00 75 D3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C6 12 03 00 35 04 06 00 B1 [11:33:10]Write to MH i2c: E2 02 01 2D 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 32 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F8 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 B0 00 00 00 F4 03 04 00 75 D3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C6 12 03 00 35 04 06 00 B1 00 00 F4 [11:33:10]Write i2c OK [11:33:10]MH_I2C_Read... [11:33:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:10]Read from MH i2c: E2 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: E2 03 00 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: E2 03 00 2D 0C 00 90 00 AD [11:33:10]RAPDU: 90 00 [11:33:10]wFMCommunicate OK [11:33:10]wFMCommunicate request_size=10 [11:33:10]MH_SAM_APDU [11:33:10]CAPDU: 80 0D 02 02 05 4D D8 A9 EE 14 [11:33:10]Write to MH i2c: E2 0D 00 2E 0C 80 0D 02 02 05 00 4D D8 A9 EE 14 00 00 8E [11:33:10]Write i2c OK [11:33:10]MH_I2C_Read... [11:33:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:10]Read from MH i2c: E2 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: E2 03 00 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: E2 03 00 2E 0C 00 90 00 AE [11:33:10]RAPDU: 90 00 [11:33:10]wFMCommunicate OK [11:33:10]wFMCommunicate request_size=4 [11:33:10]MH_SAM_APDU [11:33:10]CAPDU: 80 0D 03 02 [11:33:10]Write to MH i2c: E2 08 00 2F 0C 80 0D 03 02 00 00 00 00 B6 [11:33:10]Write i2c OK [11:33:10]MH_I2C_Read... [11:33:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:10]Read from MH i2c: E2 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: E2 0B 00 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: E2 0B 00 2F 0C 00 E1 9D D2 69 A9 FB BA AC 90 00 7A [11:33:10]RAPDU: E1 9D D2 69 A9 FB BA AC 90 00 [11:33:10]wFMCommunicate OK [11:33:10]SAM_PROTO_SignData done [11:33:10]FM_MakeSignedData done [11:33:10]CreateOFDProtocolMessage [11:33:10]wFMCommunicate request_size=4 [11:33:10]MH_SAM_APDU [11:33:10]CAPDU: 80 11 00 00 [11:33:10]Write to MH i2c: E2 08 00 30 0C 80 11 00 00 00 00 00 00 B6 [11:33:10]Write i2c OK [11:33:10]MH_I2C_Read... [11:33:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:10]Read from MH i2c: E2 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: E2 17 00 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: E2 17 00 30 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0B [11:33:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:33:10]wFMCommunicate OK [11:33:10]CreateOFDProtocolMessage done [11:33:10]OFDSenderStorePacket 201414 [11:33:10]StoreOFDPacket docnum=201414 [11:33:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 DB 4B 07 01 24 86 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 32 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F8 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 B0 00 00 00 F4 03 04 00 75 D3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C6 12 03 00 35 04 06 00 B1 4D D8 A9 EE 14 E1 9D D2 69 A9 FB BA AC [11:33:10]CheckFolder [11:33:10]dirname=/storage/ofd_packets [11:33:10]CheckFolder done [11:33:10]ProducePacketName [11:33:10]name=ofd_packets/00201414 [11:33:10]NVStorageSaveData ofd_packets/00201414 [11:33:10]File name is /storage/ofd_packets/00201414 [11:33:10]Write 301 bytes [11:33:10]NVStorageSaveData done [11:33:10]OFDSenderStorePacket done [11:33:10]KKMCreateOFDPacket done [11:33:10]NVStorageSaveData kkm_last_timestamp [11:33:10]File name is /storage/kkm_last_timestamp [11:33:10]Write 4 bytes [11:33:10]NVStorageSaveData done [11:33:10]ExternCall_PrintAddStr [11:33:10]wPrintStart [11:33:10]Write to MH i2c: 01 00 00 31 0C 3D [11:33:10]Write i2c OK [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: 01 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: 01 07 00 [11:33:10]MH_I2C_Read... [11:33:10]Read from MH i2c: 01 07 00 31 0C 00 00 00 00 00 FF 0F 52 [11:33:10]RasterBufferAndPrint [11:33:10]line Счет N : (1)449163 [11:33:10]line ИНН: 02508201610067 [11:33:10]line Контрольно-Кассовый Чек [11:33:10]line ПРОДАЖА [11:33:10]line ТРК (МРК, ГНК) : 31 [11:33:10]line Товар: 2710124130 [11:33:10]line Аи-92-К-2 [11:33:10]line 30.350 * 65.90 [11:33:10]line = 2000.07 [11:33:10]line НДС 12% НСП 1% [11:33:10]line > о реализуемом товаре [11:33:10]line ОКРУГЛЕНИЕ: -0.07 [11:33:10]line ИТОГО: 2000.00 [11:33:10]line Внесено: 2000.00 [11:33:10]line СДАЧА: 0.00 [11:33:10]line НСП 1% : 17.70 [11:33:10]line НДС 12% : 212.40 [11:33:10]line Наличными: 2000.00 [11:33:10]line Безнал.: 0.00 [11:33:10]line Место: АЗС № 171 "Партнер Нефть" [11:33:10]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:33:10]line СНО: Общий режим [11:33:10]line Чек 176 26.10.2024 11:33 [11:33:10]line Смена: 543 ФФД: 1.0 [11:33:10]line ЗНМ: 0300000109 [11:33:10]line РНМ: 0000000000091777 [11:33:10]line Версия ККМ: 001 [11:33:10]line [11:33:10]line Дисконтная программа [11:33:10]line АИ-92 [11:33:10]line номер 171 [11:33:10]line сэкономлено 30.35 сом [11:33:10]line ФМ: 0000000000871756 [11:33:10]line ФД: 201414 [11:33:10]line ФПД: 194947905613332 [11:33:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113309&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201414&fm=194947905613332&tin=02508201610067®Number=0000000000091777&sum=200000 [11:33:10]OFD Sender: Processing packet 201414 [packets to send 112, broken 111] [11:33:10]ProducePacketName [11:33:10]name=ofd_packets/00201414 [11:33:10]OFD Sender: To server: pG, [11:33:10]CommunicateWithHost lk.salyk.kg:30040 [11:33:10]ConnectInit lk.salyk.kg [11:33:10]written 0, free lines is 4095 [11:33:10]Connected sock=10 [11:33:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 DB 4B 07 01 24 86 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 32 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F8 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 B0 00 00 00 F4 03 04 00 75 D3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C6 12 03 00 35 04 06 00 B1 4D D8 A9 EE 14 E1 9D D2 69 A9 FB BA AC [11:33:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A9 69 47 00 95 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C6 12 03 00 F4 03 04 00 1E 7F 1C 67 B6 04 01 00 00 DB FE FE 57 F8 8C C0 4B [11:33:11]CommunicateWithHost err = 0 [11:33:11]CheckOFDResponse [11:33:11]1017 (14) - 77093643461234 [11:33:11]1041 (16) - 0000000000871756 [11:33:11]1040 (4) - 201414 [11:33:11]1012 (4) - 26.10.2024 05:33 [11:33:11]1206 (1) - 0 [11:33:11]OFD Sender: Remove packet 201414 [11:33:11]ProducePacketName [11:33:11]name=ofd_packets/00201414 [11:33:11]NVStorageDeleteData [11:33:11]Write to MH i2c: 01 00 00 61 0C 6D [11:33:11]Write i2c OK [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: 01 [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: 01 07 00 [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: 01 07 00 61 0C 00 00 00 00 00 4B 0C CB [11:33:11]RasterBufferAndPrint [11:33:11]line [11:33:11]line [11:33:11]line [11:33:11]line [11:33:11]line [11:33:11]written 0, free lines is 3153 [11:33:11]MH_Cut [11:33:11]Write to MH i2c: D1 01 00 68 0C 01 46 [11:33:11]Write i2c OK [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: D1 [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: D1 01 00 [11:33:11]MH_I2C_Read... [11:33:11]Read from MH i2c: D1 01 00 68 0C 00 45 [11:33:11]Write to MH i2c: 01 00 00 69 0C 75 [11:33:11]Write i2c OK [11:33:11]MH_I2C_Read... [11:33:11]OFD Sender: No OFD packet to send [11:33:12]*** Cut start [11:33:12]*** Purtial cut [11:33:12]*** Stage 1: CUTSNS_PIN = 1 [11:33:12]Read from MH i2c: 01 [11:33:12]MH_I2C_Read... [11:33:12]*** Stop cut motor [11:33:12]*** Cut end [11:33:12]Read from MH i2c: 01 07 00 [11:33:12]MH_I2C_Read... [11:33:12]Read from MH i2c: 01 07 00 69 0C 00 00 00 00 00 FF 0F 8A [11:33:12]process_action close_receipt done [11:33:12]requested_data is exist [11:33:12]produce_requested_data [11:33:12]requested_item fm.sn is exist - process it [11:33:12]wFMCommunicate request_size=4 [11:33:12]MH_SAM_APDU [11:33:12]CAPDU: 80 11 00 00 [11:33:12]Write to MH i2c: E2 08 00 6A 0C 80 11 00 00 00 00 00 00 F0 [11:33:12]Write i2c OK [11:33:12]MH_I2C_Read... [11:33:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:12]Read from MH i2c: E2 [11:33:12]MH_I2C_Read... [11:33:12]Read from MH i2c: E2 17 00 [11:33:12]MH_I2C_Read... [11:33:12]Read from MH i2c: E2 17 00 6A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 45 [11:33:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:33:12]wFMCommunicate OK [11:33:12]requested_item fd.num is exist - process it [11:33:12]SAM_PROTO_GetFieldsCounters [11:33:12]wFMCommunicate request_size=4 [11:33:12]MH_SAM_APDU [11:33:12]CAPDU: 80 13 00 00 [11:33:12]Write to MH i2c: E2 08 00 6B 0C 80 13 00 00 00 00 00 00 F3 [11:33:12]Write i2c OK [11:33:12]MH_I2C_Read... [11:33:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:12]Read from MH i2c: E2 [11:33:12]MH_I2C_Read... [11:33:12]Read from MH i2c: E2 62 00 [11:33:12]MH_I2C_Read... [11:33:12]Read from MH i2c: E2 62 00 6B 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C6 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [11:33:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C6 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:12]wFMCommunicate OK [11:33:12]SAM_PROTO_GetFieldsCounters done [11:33:12]requested_item shift.num is exist - process it [11:33:12]requested_item shift.opened is exist - process it [11:33:12]req_shift_opened [11:33:12]FM_GetShiftState [11:33:12]SAM_PROTO_GetShiftState [11:33:12]wFMCommunicate request_size=4 [11:33:12]MH_SAM_APDU [11:33:12]CAPDU: 80 13 01 00 [11:33:12]Write to MH i2c: E2 08 00 6C 0C 80 13 01 00 00 00 00 00 F5 [11:33:12]Write i2c OK [11:33:12]MH_I2C_Read... [11:33:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:12]Read from MH i2c: E2 [11:33:12]MH_I2C_Read... [11:33:12]Read from MH i2c: E2 0E 00 [11:33:12]MH_I2C_Read... [11:33:12]Read from MH i2c: E2 0E 00 6C 0C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 04 [11:33:12]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:33:12]wFMCommunicate OK [11:33:12]SAM_PROTO_GetShiftState done [11:33:12]FM_GetShiftState done [11:33:12]req_shift_opened done [11:33:12]requested_item shift.open_date is exist - process it [11:33:12]req_shift_open_date [11:33:12]req_shift_open_date done [11:33:12]produce_requested_data done [11:33:12]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201414,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:33:12]process_action_free close_receipt [11:33:12]json_value_free [11:33:12]json_value_free done [11:33:12]process_json_proto returns [11:33:12]Send response to host [11:33:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201414,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:33:12]free response buf [11:33:12]execute_script done [11:33:12]execute_script returns [11:33:12]free content buf [11:33:12]Sock 9.Close socket [11:33:12]Sock 9.Thread stoped [11:33:16]OFD Sender: No OFD packet to send [11:33:21]OFD Sender: No OFD packet to send [11:33:26]OFD Sender: No OFD packet to send [11:33:31]OFD Sender: No OFD packet to send [11:33:34]accept exits with 7 [11:33:34]New connection [11:33:34]New thread 3066641764 created [11:33:34]Thread 3066498404 joined [11:33:34]Waiting for new connection... [11:33:34] Sock 7.Parse request [11:33:34]Sock 7.Check first char [11:33:34]Sock 7.First char is OK [11:33:34]request: POST /json_proto HTTP/1.0 [11:33:34]Method: POST [11:33:34]URL: /json_proto [11:33:34]Method is POST - this is cgi request [11:33:34]url: /json_proto [11:33:34]query_string will be loaded in cgi processing [11:33:34]execute_cgi json_proto POST (null) [11:33:34]execute_cgi path=json_proto method=POST [11:33:34]POST find Content-Length [11:33:34]Host: 172.17.63.195:8080 [11:33:34]Content-Length: 677 [11:33:34]Content-Type: application/json [11:33:34] [11:33:34]POST finish read [11:33:34]Found Content-Length = 677 [11:33:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:34]execute_script... [11:33: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)449164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:34]POST & json_proto [11:33:34]process_json_proto [11:33:34]json parsed OK: [11:33:34]protocol is kg_v1.0 [11:33:34]action value=close_receipt [11:33:34]process_action close_receipt [11:33:34]cmd_close_receipt [11:33:34]MH_GetDate [11:33:34]Write to MH i2c: F0 00 00 6D 0C 68 [11:33:34]Write i2c OK [11:33:34]MH_I2C_Read... [11:33:34]Read from MH i2c: F0 [11:33:34]MH_I2C_Read... [11:33:34]Read from MH i2c: F0 09 00 [11:33:34]MH_I2C_Read... [11:33:34]Read from MH i2c: F0 09 00 6D 0C 00 8E D3 1C 67 68 46 19 67 83 [11:33:34]GetLastDocTimeStamp 1729942389 [11:33:34]current date 1729942414 [11:33:34]FM_GetShiftState [11:33:34]SAM_PROTO_GetShiftState [11:33:34]wFMCommunicate request_size=4 [11:33:34]MH_SAM_APDU [11:33:34]CAPDU: 80 13 01 00 [11:33:34]Write to MH i2c: E2 08 00 6E 0C 80 13 01 00 00 00 00 00 F7 [11:33:34]Write i2c OK [11:33:34]MH_I2C_Read... [11:33:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:34]Read from MH i2c: E2 [11:33:34]MH_I2C_Read... [11:33:34]Read from MH i2c: E2 0E 00 [11:33:34]MH_I2C_Read... [11:33:34]Read from MH i2c: E2 0E 00 6E 0C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 06 [11:33:34]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:33:34]wFMCommunicate OK [11:33:34]SAM_PROTO_GetShiftState done [11:33:34]FM_GetShiftState done [11:33:34]opened in 1729900879 [11:33:34]opened+sec_in_day 1729987279 [11:33:34]quantity*price = 30038 [11:33:34]sum+1 = 30039 [11:33:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 177 26.10.2024 11:33 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201415 ФПД: 224078604777340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113335&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201415&fm=224078604777340&tin=02508201610067®Number=0000000000091777&sum=30000 [11:33:35]StoreToDocumentArchive [11:33:35]shift 543 fd 201415 [11:33:35]save to /storage/0543/doc_00201415 [11:33:35]save last doc name /storage/0543/doc_00201415 to /storage/kkm_last_doc_name [11:33:35]save OK [11:33:35]Clear old archive folders... [11:33:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:33:35]tlvbuf is 017E14D0 [11:33:35]SAM_PROTO_ClearQueue [11:33:35]wFMCommunicate request_size=4 [11:33:35]MH_SAM_APDU [11:33:35]CAPDU: 80 09 00 00 [11:33:35]Write to MH i2c: E2 08 00 7B 0C 80 09 00 00 00 00 00 00 F9 [11:33:35]Write i2c OK [11:33:35]MH_I2C_Read... [11:33:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:35]Read from MH i2c: E2 [11:33:35]MH_I2C_Read... [11:33:35]Read from MH i2c: E2 03 00 [11:33:35]MH_I2C_Read... [11:33:35]Read from MH i2c: E2 03 00 7B 0C 00 90 00 FB [11:33:35]RAPDU: 90 00 [11:33:35]wFMCommunicate OK [11:33:35]SAM_PROTO_ClearQueue done [11:33:35]KKMCreateOFDPacket [11:33:35]OFDProtocolAddRootSTLVToBuf [11:33:35]FM_MakeSignedData [11:33:35]FM_MakeSignedData [11:33:35]SAM_PROTO_SignData [11:33:35]wFMCommunicate request_size=4 [11:33:35]MH_SAM_APDU [11:33:35]CAPDU: 80 0D 01 02 [11:33:35]Write to MH i2c: E2 08 00 7C 0C 80 0D 01 02 00 00 00 00 01 [11:33:35]Write i2c OK [11:33:35]MH_I2C_Read... [11:33:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:35]Read from MH i2c: E2 [11:33:35]MH_I2C_Read... [11:33:35]Read from MH i2c: E2 03 00 [11:33:35]MH_I2C_Read... [11:33:35]Read from MH i2c: E2 03 00 7C 0C 00 90 00 FC [11:33:35]RAPDU: 90 00 [11:33:35]wFMCommunicate OK [11:33:35]wFMCommunicate request_size=255 [11:33:35]MH_SAM_APDU [11:33:35]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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 8F D3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C7 12 03 00 35 04 06 00 CB [11:33:35]Write to MH i2c: E2 02 01 7D 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 8F D3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C7 12 03 00 35 04 06 00 CB 00 00 E7 [11:33:35]Write i2c OK [11:33:35]MH_I2C_Read... [11:33:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:36]Read from MH i2c: E2 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: E2 03 00 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: E2 03 00 7D 0C 00 90 00 FD [11:33:36]RAPDU: 90 00 [11:33:36]wFMCommunicate OK [11:33:36]wFMCommunicate request_size=10 [11:33:36]MH_SAM_APDU [11:33:36]CAPDU: 80 0D 02 02 05 CC 5D A3 B7 7C [11:33:36]Write to MH i2c: E2 0D 00 7E 0C 80 0D 02 02 05 00 CC 5D A3 B7 7C 00 00 0D [11:33:36]Write i2c OK [11:33:36]MH_I2C_Read... [11:33:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:36]Read from MH i2c: E2 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: E2 03 00 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: E2 03 00 7E 0C 00 90 00 FE [11:33:36]RAPDU: 90 00 [11:33:36]wFMCommunicate OK [11:33:36]wFMCommunicate request_size=4 [11:33:36]MH_SAM_APDU [11:33:36]CAPDU: 80 0D 03 02 [11:33:36]Write to MH i2c: E2 08 00 7F 0C 80 0D 03 02 00 00 00 00 06 [11:33:36]Write i2c OK [11:33:36]MH_I2C_Read... [11:33:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:36]Read from MH i2c: E2 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: E2 0B 00 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: E2 0B 00 7F 0C 00 C9 B7 0A 4C A2 E2 AF DA 90 00 EA [11:33:36]RAPDU: C9 B7 0A 4C A2 E2 AF DA 90 00 [11:33:36]wFMCommunicate OK [11:33:36]SAM_PROTO_SignData done [11:33:36]FM_MakeSignedData done [11:33:36]CreateOFDProtocolMessage [11:33:36]wFMCommunicate request_size=4 [11:33:36]MH_SAM_APDU [11:33:36]CAPDU: 80 11 00 00 [11:33:36]Write to MH i2c: E2 08 00 80 0C 80 11 00 00 00 00 00 00 06 [11:33:36]Write i2c OK [11:33:36]MH_I2C_Read... [11:33:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:36]Read from MH i2c: E2 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: E2 17 00 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: E2 17 00 80 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5B [11:33:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:33:36]wFMCommunicate OK [11:33:36]CreateOFDProtocolMessage done [11:33:36]OFDSenderStorePacket 201415 [11:33:36]StoreOFDPacket docnum=201415 [11:33:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1C D0 07 01 D4 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 8F D3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C7 12 03 00 35 04 06 00 CB CC 5D A3 B7 7C C9 B7 0A 4C A2 E2 AF DA [11:33:36]CheckFolder [11:33:36]dirname=/storage/ofd_packets [11:33:36]CheckFolder done [11:33:36]ProducePacketName [11:33:36]name=ofd_packets/00201415 [11:33:36]NVStorageSaveData ofd_packets/00201415 [11:33:36]File name is /storage/ofd_packets/00201415 [11:33:36]Write 301 bytes [11:33:36]NVStorageSaveData done [11:33:36]OFDSenderStorePacket done [11:33:36]KKMCreateOFDPacket done [11:33:36]NVStorageSaveData kkm_last_timestamp [11:33:36]File name is /storage/kkm_last_timestamp [11:33:36]Write 4 bytes [11:33:36]NVStorageSaveData done [11:33:36]ExternCall_PrintAddStr [11:33:36]wPrintStart [11:33:36]Write to MH i2c: 01 00 00 81 0C 8D [11:33:36]Write i2c OK [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: 01 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: 01 07 00 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: 01 07 00 81 0C 00 00 00 00 00 FF 0F A2 [11:33:36]RasterBufferAndPrint [11:33:36]line Счет N : (1)449164 [11:33:36]line ИНН: 02508201610067 [11:33:36]line Контрольно-Кассовый Чек [11:33:36]line ПРОДАЖА [11:33:36]line ТРК (МРК, ГНК) : 41 [11:33:36]line Товар: 2710124130 [11:33:36]line Аи-92-К-2 [11:33:36]line 4.490 * 66.90 [11:33:36]line = 300.38 [11:33:36]line НДС 12% НСП 1% [11:33:36]line > о реализуемом товаре [11:33:36]line ОКРУГЛЕНИЕ: -0.38 [11:33:36]line ИТОГО: 300.00 [11:33:36]line Внесено: 300.00 [11:33:36]line СДАЧА: 0.00 [11:33:36]line НСП 1% : 2.66 [11:33:36]line НДС 12% : 31.90 [11:33:36]line Наличными: 300.00 [11:33:36]line Безнал.: 0.00 [11:33:36]line Место: АЗС № 171 "Партнер Нефть" [11:33:36]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:33:36]line СНО: Общий режим [11:33:36]line Чек 177 26.10.2024 11:33 [11:33:36]line Смена: 543 ФФД: 1.0 [11:33:36]line ЗНМ: 0300000109 [11:33:36]line РНМ: 0000000000091777 [11:33:36]line Версия ККМ: 001 [11:33:36]line ФМ: 0000000000871756 [11:33:36]line ФД: 201415 [11:33:36]line ФПД: 224078604777340 [11:33:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113335&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201415&fm=224078604777340&tin=02508201610067®Number=0000000000091777&sum=30000 [11:33:36]OFD Sender: Processing packet 201415 [packets to send 112, broken 111] [11:33:36]ProducePacketName [11:33:36]name=ofd_packets/00201415 [11:33:36]OFD Sender: To server: pG, [11:33:36]CommunicateWithHost lk.salyk.kg:30040 [11:33:36]ConnectInit lk.salyk.kg [11:33:36]written 0, free lines is 4095 [11:33:36]Connected sock=10 [11:33:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1C D0 07 01 D4 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 8F D3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C7 12 03 00 35 04 06 00 CB CC 5D A3 B7 7C C9 B7 0A 4C A2 E2 AF DA [11:33:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 EF B3 47 00 8D FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C7 12 03 00 F4 03 04 00 38 7F 1C 67 B6 04 01 00 00 64 63 46 70 69 89 1D FB [11:33:37]CommunicateWithHost err = 0 [11:33:37]CheckOFDResponse [11:33:37]1017 (14) - 77093643461234 [11:33:37]1041 (16) - 0000000000871756 [11:33:37]1040 (4) - 201415 [11:33:37]1012 (4) - 26.10.2024 05:33 [11:33:37]1206 (1) - 0 [11:33:37]OFD Sender: Remove packet 201415 [11:33:37]ProducePacketName [11:33:37]name=ofd_packets/00201415 [11:33:37]NVStorageDeleteData [11:33:37]Write to MH i2c: 01 00 00 AC 0C B8 [11:33:37]Write i2c OK [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: 01 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: 01 07 00 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: 01 07 00 AC 0C 00 00 00 00 00 AA 0C 75 [11:33:37]RasterBufferAndPrint [11:33:37]line [11:33:37]line [11:33:37]line [11:33:37]line [11:33:37]line [11:33:37]written 0, free lines is 3249 [11:33:37]MH_Cut [11:33:37]Write to MH i2c: D1 01 00 B3 0C 01 91 [11:33:37]Write i2c OK [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: D1 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: D1 01 00 [11:33:37]MH_I2C_Read... [11:33:37]Read from MH i2c: D1 01 00 B3 0C 00 90 [11:33:37]Write to MH i2c: 01 00 00 B4 0C C0 [11:33:37]Write i2c OK [11:33:37]MH_I2C_Read... [11:33:37]OFD Sender: No OFD packet to send [11:33:38]*** Cut start [11:33:38]*** Purtial cut [11:33:38]*** Stage 1: CUTSNS_PIN = 1 [11:33:38]Read from MH i2c: 01 [11:33:38]MH_I2C_Read... [11:33:38]*** Stop cut motor [11:33:38]*** Cut end [11:33:38]Read from MH i2c: 01 07 00 [11:33:38]MH_I2C_Read... [11:33:38]Read from MH i2c: 01 07 00 B4 0C 00 00 00 00 00 FF 0F D5 [11:33:38]process_action close_receipt done [11:33:38]requested_data is exist [11:33:38]produce_requested_data [11:33:38]requested_item fm.sn is exist - process it [11:33:38]wFMCommunicate request_size=4 [11:33:38]MH_SAM_APDU [11:33:38]CAPDU: 80 11 00 00 [11:33:38]Write to MH i2c: E2 08 00 B5 0C 80 11 00 00 00 00 00 00 3B [11:33:38]Write i2c OK [11:33:38]MH_I2C_Read... [11:33:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:38]Read from MH i2c: E2 [11:33:38]MH_I2C_Read... [11:33:38]Read from MH i2c: E2 17 00 [11:33:38]MH_I2C_Read... [11:33:38]Read from MH i2c: E2 17 00 B5 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 90 [11:33:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:33:38]wFMCommunicate OK [11:33:38]requested_item fd.num is exist - process it [11:33:38]SAM_PROTO_GetFieldsCounters [11:33:38]wFMCommunicate request_size=4 [11:33:38]MH_SAM_APDU [11:33:38]CAPDU: 80 13 00 00 [11:33:38]Write to MH i2c: E2 08 00 B6 0C 80 13 00 00 00 00 00 00 3E [11:33:38]Write i2c OK [11:33:38]MH_I2C_Read... [11:33:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:38]Read from MH i2c: E2 [11:33:38]MH_I2C_Read... [11:33:38]Read from MH i2c: E2 62 00 [11:33:38]MH_I2C_Read... [11:33:38]Read from MH i2c: E2 62 00 B6 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C7 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [11:33:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C7 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:38]wFMCommunicate OK [11:33:38]SAM_PROTO_GetFieldsCounters done [11:33:38]requested_item shift.num is exist - process it [11:33:38]requested_item shift.opened is exist - process it [11:33:38]req_shift_opened [11:33:38]FM_GetShiftState [11:33:38]SAM_PROTO_GetShiftState [11:33:38]wFMCommunicate request_size=4 [11:33:38]MH_SAM_APDU [11:33:38]CAPDU: 80 13 01 00 [11:33:38]Write to MH i2c: E2 08 00 B7 0C 80 13 01 00 00 00 00 00 40 [11:33:38]Write i2c OK [11:33:38]MH_I2C_Read... [11:33:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:38]Read from MH i2c: E2 [11:33:38]MH_I2C_Read... [11:33:38]Read from MH i2c: E2 0E 00 [11:33:38]MH_I2C_Read... [11:33:38]Read from MH i2c: E2 0E 00 B7 0C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 4F [11:33:38]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:33:38]wFMCommunicate OK [11:33:38]SAM_PROTO_GetShiftState done [11:33:38]FM_GetShiftState done [11:33:38]req_shift_opened done [11:33:38]requested_item shift.open_date is exist - process it [11:33:38]req_shift_open_date [11:33:38]req_shift_open_date done [11:33:38]produce_requested_data done [11:33:38]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201415,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:33:38]process_action_free close_receipt [11:33:38]json_value_free [11:33:38]json_value_free done [11:33:38]process_json_proto returns [11:33:38]Send response to host [11:33:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201415,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:33:38]free response buf [11:33:38]execute_script done [11:33:38]execute_script returns [11:33:38]free content buf [11:33:38]Sock 7.Close socket [11:33:38]Sock 7.Thread stoped [11:33:42]OFD Sender: No OFD packet to send [11:33:47]OFD Sender: No OFD packet to send [11:33:52]OFD Sender: No OFD packet to send [11:33:57]OFD Sender: No OFD packet to send [11:34:02]OFD Sender: No OFD packet to send [11:34:07]OFD Sender: No OFD packet to send [11:34:12]OFD Sender: No OFD packet to send [11:34:17]OFD Sender: No OFD packet to send [11:34:22]OFD Sender: No OFD packet to send [11:34:27]OFD Sender: No OFD packet to send [11:34:32]OFD Sender: No OFD packet to send [11:34:37]OFD Sender: No OFD packet to send [11:34:42]OFD Sender: No OFD packet to send [11:34:47]OFD Sender: No OFD packet to send [11:34:52]OFD Sender: No OFD packet to send [11:34:57]OFD Sender: No OFD packet to send [11:35:02]OFD Sender: No OFD packet to send [11:35:07]OFD Sender: No OFD packet to send [11:35:12]OFD Sender: No OFD packet to send [11:35:17]OFD Sender: No OFD packet to send [11:35:22]OFD Sender: No OFD packet to send [11:35:26]accept exits with 9 [11:35:26]New connection [11:35:26]New thread 3066498404 created [11:35:26]Thread 3066641764 joined [11:35:26]Waiting for new connection... [11:35:26] Sock 9.Parse request [11:35:26]Sock 9.Check first char [11:35:26]Sock 9.First char is OK [11:35:26]request: POST /json_proto HTTP/1.0 [11:35:26]Method: POST [11:35:26]URL: /json_proto [11:35:26]Method is POST - this is cgi request [11:35:26]url: /json_proto [11:35:26]query_string will be loaded in cgi processing [11:35:26]execute_cgi json_proto POST (null) [11:35:26]execute_cgi path=json_proto method=POST [11:35:26]POST find Content-Length [11:35:26]Host: 172.17.63.195:8080 [11:35:26]Content-Length: 677 [11:35:26]Content-Type: application/json [11:35:26] [11:35:26]POST finish read [11:35:26]Found Content-Length = 677 [11:35:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:35:26]execute_script... [11:35: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)449165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:35:26]POST & json_proto [11:35:26]process_json_proto [11:35:26]json parsed OK: [11:35:26]protocol is kg_v1.0 [11:35:26]action value=close_receipt [11:35:26]process_action close_receipt [11:35:26]cmd_close_receipt [11:35:26]MH_GetDate [11:35:26]Write to MH i2c: F0 00 00 B8 0C B3 [11:35:26]Write i2c OK [11:35:26]MH_I2C_Read... [11:35:26]Read from MH i2c: F0 [11:35:26]MH_I2C_Read... [11:35:26]Read from MH i2c: F0 09 00 [11:35:26]MH_I2C_Read... [11:35:26]Read from MH i2c: F0 09 00 B8 0C 00 FE D3 1C 67 68 46 19 67 3E [11:35:26]GetLastDocTimeStamp 1729942415 [11:35:26]current date 1729942526 [11:35:26]FM_GetShiftState [11:35:26]SAM_PROTO_GetShiftState [11:35:26]wFMCommunicate request_size=4 [11:35:26]MH_SAM_APDU [11:35:26]CAPDU: 80 13 01 00 [11:35:26]Write to MH i2c: E2 08 00 B9 0C 80 13 01 00 00 00 00 00 42 [11:35:26]Write i2c OK [11:35:26]MH_I2C_Read... [11:35:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:26]Read from MH i2c: E2 [11:35:26]MH_I2C_Read... [11:35:26]Read from MH i2c: E2 0E 00 [11:35:26]MH_I2C_Read... [11:35:26]Read from MH i2c: E2 0E 00 B9 0C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 51 [11:35:26]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:35:26]wFMCommunicate OK [11:35:26]SAM_PROTO_GetShiftState done [11:35:26]FM_GetShiftState done [11:35:26]opened in 1729900879 [11:35:26]opened+sec_in_day 1729987279 [11:35:26]quantity*price = 20003 [11:35:26]sum+1 = 20004 [11:35:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 178 26.10.2024 11:35 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201416 ФПД: 62551071299601 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113526&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201416&fm=62551071299601&tin=02508201610067®Number=0000000000091777&sum=20000 [11:35:27]StoreToDocumentArchive [11:35:27]shift 543 fd 201416 [11:35:27]save to /storage/0543/doc_00201416 [11:35:27]save last doc name /storage/0543/doc_00201416 to /storage/kkm_last_doc_name [11:35:27]save OK [11:35:27]Clear old archive folders... [11:35:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:35:27]tlvbuf is 01808D90 [11:35:27]SAM_PROTO_ClearQueue [11:35:27]wFMCommunicate request_size=4 [11:35:27]MH_SAM_APDU [11:35:27]CAPDU: 80 09 00 00 [11:35:27]Write to MH i2c: E2 08 00 C6 0C 80 09 00 00 00 00 00 00 44 [11:35:27]Write i2c OK [11:35:27]MH_I2C_Read... [11:35:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:27]Read from MH i2c: E2 [11:35:27]MH_I2C_Read... [11:35:27]Read from MH i2c: E2 03 00 [11:35:27]MH_I2C_Read... [11:35:27]Read from MH i2c: E2 03 00 C6 0C 00 90 00 46 [11:35:27]RAPDU: 90 00 [11:35:27]wFMCommunicate OK [11:35:27]SAM_PROTO_ClearQueue done [11:35:27]KKMCreateOFDPacket [11:35:27]OFDProtocolAddRootSTLVToBuf [11:35:27]FM_MakeSignedData [11:35:27]FM_MakeSignedData [11:35:27]SAM_PROTO_SignData [11:35:27]wFMCommunicate request_size=4 [11:35:27]MH_SAM_APDU [11:35:27]CAPDU: 80 0D 01 02 [11:35:27]Write to MH i2c: E2 08 00 C7 0C 80 0D 01 02 00 00 00 00 4C [11:35:27]Write i2c OK [11:35:27]MH_I2C_Read... [11:35:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:27]Read from MH i2c: E2 [11:35:27]MH_I2C_Read... [11:35:27]Read from MH i2c: E2 03 00 [11:35:27]MH_I2C_Read... [11:35:27]Read from MH i2c: E2 03 00 C7 0C 00 90 00 47 [11:35:27]RAPDU: 90 00 [11:35:27]wFMCommunicate OK [11:35:27]wFMCommunicate request_size=255 [11:35:27]MH_SAM_APDU [11:35: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 32 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 B2 00 00 00 F4 03 04 00 FE D3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C8 12 03 00 35 04 06 00 38 [11:35:27]Write to MH i2c: E2 02 01 C8 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 32 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 B2 00 00 00 F4 03 04 00 FE D3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C8 12 03 00 35 04 06 00 38 00 00 DE [11:35:27]Write i2c OK [11:35:27]MH_I2C_Read... [11:35:27]OFD Sender: No OFD packet to send [11:35:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:27]Read from MH i2c: E2 [11:35:27]MH_I2C_Read... [11:35:27]Read from MH i2c: E2 03 00 [11:35:27]MH_I2C_Read... [11:35:27]Read from MH i2c: E2 03 00 C8 0C 00 90 00 48 [11:35:27]RAPDU: 90 00 [11:35:27]wFMCommunicate OK [11:35:27]wFMCommunicate request_size=10 [11:35:27]MH_SAM_APDU [11:35:27]CAPDU: 80 0D 02 02 05 E3 CE 62 98 11 [11:35:27]Write to MH i2c: E2 0D 00 C9 0C 80 0D 02 02 05 00 E3 CE 62 98 11 00 00 15 [11:35:27]Write i2c OK [11:35:27]MH_I2C_Read... [11:35:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:27]Read from MH i2c: E2 [11:35:27]MH_I2C_Read... [11:35:27]Read from MH i2c: E2 03 00 [11:35:27]MH_I2C_Read... [11:35:27]Read from MH i2c: E2 03 00 C9 0C 00 90 00 49 [11:35:27]RAPDU: 90 00 [11:35:27]wFMCommunicate OK [11:35:27]wFMCommunicate request_size=4 [11:35:27]MH_SAM_APDU [11:35:27]CAPDU: 80 0D 03 02 [11:35:27]Write to MH i2c: E2 08 00 CA 0C 80 0D 03 02 00 00 00 00 51 [11:35:27]Write i2c OK [11:35:27]MH_I2C_Read... [11:35:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:28]Read from MH i2c: E2 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 0B 00 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 0B 00 CA 0C 00 AE B5 60 86 CA A3 0E 64 90 00 7A [11:35:28]RAPDU: AE B5 60 86 CA A3 0E 64 90 00 [11:35:28]wFMCommunicate OK [11:35:28]SAM_PROTO_SignData done [11:35:28]FM_MakeSignedData done [11:35:28]CreateOFDProtocolMessage [11:35:28]wFMCommunicate request_size=4 [11:35:28]MH_SAM_APDU [11:35:28]CAPDU: 80 11 00 00 [11:35:28]Write to MH i2c: E2 08 00 CB 0C 80 11 00 00 00 00 00 00 51 [11:35:28]Write i2c OK [11:35:28]MH_I2C_Read... [11:35:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:28]Read from MH i2c: E2 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 17 00 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: E2 17 00 CB 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A6 [11:35:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:35:28]wFMCommunicate OK [11:35:28]CreateOFDProtocolMessage done [11:35:28]OFDSenderStorePacket 201416 [11:35:28]StoreOFDPacket docnum=201416 [11:35:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 31 04 07 01 AD 8A 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 32 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 B2 00 00 00 F4 03 04 00 FE D3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C8 12 03 00 35 04 06 00 38 E3 CE 62 98 11 AE B5 60 86 CA A3 0E 64 [11:35:28]CheckFolder [11:35:28]dirname=/storage/ofd_packets [11:35:28]CheckFolder done [11:35:28]ProducePacketName [11:35:28]name=ofd_packets/00201416 [11:35:28]NVStorageSaveData ofd_packets/00201416 [11:35:28]File name is /storage/ofd_packets/00201416 [11:35:28]Write 301 bytes [11:35:28]NVStorageSaveData done [11:35:28]OFDSenderStorePacket done [11:35:28]KKMCreateOFDPacket done [11:35:28]NVStorageSaveData kkm_last_timestamp [11:35:28]File name is /storage/kkm_last_timestamp [11:35:28]Write 4 bytes [11:35:28]NVStorageSaveData done [11:35:28]ExternCall_PrintAddStr [11:35:28]wPrintStart [11:35:28]Write to MH i2c: 01 00 00 CC 0C D8 [11:35:28]Write i2c OK [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: 01 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: 01 07 00 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: 01 07 00 CC 0C 00 00 00 00 00 FF 0F ED [11:35:28]RasterBufferAndPrint [11:35:28]line Счет N : (1)449165 [11:35:28]line ИНН: 02508201610067 [11:35:28]line Контрольно-Кассовый Чек [11:35:28]line ПРОДАЖА [11:35:28]line ТРК (МРК, ГНК) : 52 [11:35:28]line Товар: 2710124130 [11:35:28]line Аи-92-К-2 [11:35:28]line 2.990 * 66.90 [11:35:28]line = 200.03 [11:35:28]line НДС 12% НСП 1% [11:35:28]line > о реализуемом товаре [11:35:28]line ОКРУГЛЕНИЕ: -0.03 [11:35:28]line ИТОГО: 200.00 [11:35:28]line Внесено: 200.00 [11:35:28]line СДАЧА: 0.00 [11:35:28]line НСП 1% : 1.77 [11:35:28]line НДС 12% : 21.24 [11:35:28]line Наличными: 200.00 [11:35:28]line Безнал.: 0.00 [11:35:28]line Место: АЗС № 171 "Партнер Нефть" [11:35:28]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:35:28]line СНО: Общий режим [11:35:28]line Чек 178 26.10.2024 11:35 [11:35:28]line Смена: 543 ФФД: 1.0 [11:35:28]line ЗНМ: 0300000109 [11:35:28]line РНМ: 0000000000091777 [11:35:28]line Версия ККМ: 001 [11:35:28]line ФМ: 0000000000871756 [11:35:28]line ФД: 201416 [11:35:28]line ФПД: 62551071299601 [11:35:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113526&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201416&fm=62551071299601&tin=02508201610067®Number=0000000000091777&sum=20000 [11:35:28]OFD Sender: Processing packet 201416 [packets to send 112, broken 111] [11:35:28]ProducePacketName [11:35:28]name=ofd_packets/00201416 [11:35:28]OFD Sender: To server: pG, [11:35:28]CommunicateWithHost lk.salyk.kg:30040 [11:35:28]ConnectInit lk.salyk.kg [11:35:28]written 0, free lines is 4095 [11:35:28]Connected sock=10 [11:35:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 31 04 07 01 AD 8A 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 32 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 B2 00 00 00 F4 03 04 00 FE D3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C8 12 03 00 35 04 06 00 38 E3 CE 62 98 11 AE B5 60 86 CA A3 0E 64 [11:35:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 93 78 47 00 65 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C8 12 03 00 F4 03 04 00 A7 7F 1C 67 B6 04 01 00 00 DD 5C D6 11 C1 41 77 1E [11:35:28]CommunicateWithHost err = 0 [11:35:28]CheckOFDResponse [11:35:28]1017 (14) - 77093643461234 [11:35:28]1041 (16) - 0000000000871756 [11:35:28]1040 (4) - 201416 [11:35:28]1012 (4) - 26.10.2024 05:35 [11:35:28]1206 (1) - 0 [11:35:28]OFD Sender: Remove packet 201416 [11:35:28]ProducePacketName [11:35:28]name=ofd_packets/00201416 [11:35:28]NVStorageDeleteData [11:35:28]Write to MH i2c: 01 00 00 F7 0C 03 [11:35:28]Write i2c OK [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: 01 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: 01 07 00 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: 01 07 00 F7 0C 00 00 00 00 00 A8 0C BE [11:35:28]RasterBufferAndPrint [11:35:28]line [11:35:28]line [11:35:28]line [11:35:28]line [11:35:28]line [11:35:28]written 0, free lines is 3247 [11:35:28]MH_Cut [11:35:28]Write to MH i2c: D1 01 00 FE 0C 01 DC [11:35:28]Write i2c OK [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: D1 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: D1 01 00 [11:35:28]MH_I2C_Read... [11:35:28]Read from MH i2c: D1 01 00 FE 0C 00 DB [11:35:28]Write to MH i2c: 01 00 00 FF 0C 0B [11:35:28]Write i2c OK [11:35:28]MH_I2C_Read... [11:35:29]OFD Sender: No OFD packet to send [11:35:29]*** Cut start [11:35:29]*** Purtial cut [11:35:29]*** Stage 1: CUTSNS_PIN = 1 [11:35:29]Read from MH i2c: 01 [11:35:29]MH_I2C_Read... [11:35:29]*** Stop cut motor [11:35:29]*** Cut end [11:35:29]Read from MH i2c: 01 07 00 [11:35:29]MH_I2C_Read... [11:35:29]Read from MH i2c: 01 07 00 FF 0C 00 00 00 00 00 FF 0F 20 [11:35:29]process_action close_receipt done [11:35:29]requested_data is exist [11:35:29]produce_requested_data [11:35:29]requested_item fm.sn is exist - process it [11:35:29]wFMCommunicate request_size=4 [11:35:29]MH_SAM_APDU [11:35:29]CAPDU: 80 11 00 00 [11:35:29]Write to MH i2c: E2 08 00 00 0D 80 11 00 00 00 00 00 00 87 [11:35:29]Write i2c OK [11:35:29]MH_I2C_Read... [11:35:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:30]Read from MH i2c: E2 [11:35:30]MH_I2C_Read... [11:35:30]Read from MH i2c: E2 17 00 [11:35:30]MH_I2C_Read... [11:35:30]Read from MH i2c: E2 17 00 00 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DC [11:35:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:35:30]wFMCommunicate OK [11:35:30]requested_item fd.num is exist - process it [11:35:30]SAM_PROTO_GetFieldsCounters [11:35:30]wFMCommunicate request_size=4 [11:35:30]MH_SAM_APDU [11:35:30]CAPDU: 80 13 00 00 [11:35:30]Write to MH i2c: E2 08 00 01 0D 80 13 00 00 00 00 00 00 8A [11:35:30]Write i2c OK [11:35:30]MH_I2C_Read... [11:35:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:30]Read from MH i2c: E2 [11:35:30]MH_I2C_Read... [11:35:30]Read from MH i2c: E2 62 00 [11:35:30]MH_I2C_Read... [11:35:30]Read from MH i2c: E2 62 00 01 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C8 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [11:35:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C8 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:30]wFMCommunicate OK [11:35:30]SAM_PROTO_GetFieldsCounters done [11:35:30]requested_item shift.num is exist - process it [11:35:30]requested_item shift.opened is exist - process it [11:35:30]req_shift_opened [11:35:30]FM_GetShiftState [11:35:30]SAM_PROTO_GetShiftState [11:35:30]wFMCommunicate request_size=4 [11:35:30]MH_SAM_APDU [11:35:30]CAPDU: 80 13 01 00 [11:35:30]Write to MH i2c: E2 08 00 02 0D 80 13 01 00 00 00 00 00 8C [11:35:30]Write i2c OK [11:35:30]MH_I2C_Read... [11:35:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:30]Read from MH i2c: E2 [11:35:30]MH_I2C_Read... [11:35:30]Read from MH i2c: E2 0E 00 [11:35:30]MH_I2C_Read... [11:35:30]Read from MH i2c: E2 0E 00 02 0D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 9B [11:35:30]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:35:30]wFMCommunicate OK [11:35:30]SAM_PROTO_GetShiftState done [11:35:30]FM_GetShiftState done [11:35:30]req_shift_opened done [11:35:30]requested_item shift.open_date is exist - process it [11:35:30]req_shift_open_date [11:35:30]req_shift_open_date done [11:35:30]produce_requested_data done [11:35:30]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201416,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:35:30]process_action_free close_receipt [11:35:30]json_value_free [11:35:30]json_value_free done [11:35:30]process_json_proto returns [11:35:30]Send response to host [11:35:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201416,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:35:30]free response buf [11:35:30]execute_script done [11:35:30]execute_script returns [11:35:30]free content buf [11:35:30]Sock 9.Close socket [11:35:30]Sock 9.Thread stoped [11:35:34]OFD Sender: No OFD packet to send [11:35:39]OFD Sender: No OFD packet to send [11:35:44]OFD Sender: No OFD packet to send [11:35:49]OFD Sender: No OFD packet to send [11:35:54]OFD Sender: No OFD packet to send [11:35:59]OFD Sender: No OFD packet to send [11:36:04]OFD Sender: No OFD packet to send [11:36:09]OFD Sender: No OFD packet to send [11:36:14]OFD Sender: No OFD packet to send [11:36:19]OFD Sender: No OFD packet to send [11:36:24]OFD Sender: No OFD packet to send [11:36:29]OFD Sender: No OFD packet to send [11:36:34]OFD Sender: No OFD packet to send [11:36:39]OFD Sender: No OFD packet to send [11:36:44]OFD Sender: No OFD packet to send [11:36:49]OFD Sender: No OFD packet to send [11:36:54]OFD Sender: No OFD packet to send [11:36:59]OFD Sender: No OFD packet to send [11:37:04]OFD Sender: No OFD packet to send [11:37:09]OFD Sender: No OFD packet to send [11:37:14]OFD Sender: No OFD packet to send [11:37:16]accept exits with 7 [11:37:16]New connection [11:37:16]New thread 3066641764 created [11:37:16]Thread 3066498404 joined [11:37:16]Waiting for new connection... [11:37:16] Sock 7.Parse request [11:37:16]Sock 7.Check first char [11:37:16]Sock 7.First char is OK [11:37:16]request: POST /json_proto HTTP/1.0 [11:37:16]Method: POST [11:37:16]URL: /json_proto [11:37:16]Method is POST - this is cgi request [11:37:16]url: /json_proto [11:37:16]query_string will be loaded in cgi processing [11:37:16]execute_cgi json_proto POST (null) [11:37:16]execute_cgi path=json_proto method=POST [11:37:16]POST find Content-Length [11:37:16]Host: 172.17.63.195:8080 [11:37:16]Content-Length: 682 [11:37:16]Content-Type: application/json [11:37:16] [11:37:16]POST finish read [11:37:16]Found Content-Length = 682 [11:37:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:37:16]execute_script... [11:37: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)449166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:37:16]POST & json_proto [11:37:16]process_json_proto [11:37:16]json parsed OK: [11:37:16]protocol is kg_v1.0 [11:37:16]action value=close_receipt [11:37:16]process_action close_receipt [11:37:16]cmd_close_receipt [11:37:16]MH_GetDate [11:37:16]Write to MH i2c: F0 00 00 03 0D FF [11:37:16]Write i2c OK [11:37:16]MH_I2C_Read... [11:37:16]Read from MH i2c: F0 [11:37:16]MH_I2C_Read... [11:37:16]Read from MH i2c: F0 09 00 [11:37:16]MH_I2C_Read... [11:37:16]Read from MH i2c: F0 09 00 03 0D 00 6C D4 1C 67 68 46 19 67 F9 [11:37:16]GetLastDocTimeStamp 1729942526 [11:37:16]current date 1729942636 [11:37:16]FM_GetShiftState [11:37:16]SAM_PROTO_GetShiftState [11:37:16]wFMCommunicate request_size=4 [11:37:16]MH_SAM_APDU [11:37:16]CAPDU: 80 13 01 00 [11:37:16]Write to MH i2c: E2 08 00 04 0D 80 13 01 00 00 00 00 00 8E [11:37:16]Write i2c OK [11:37:16]MH_I2C_Read... [11:37:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:16]Read from MH i2c: E2 [11:37:16]MH_I2C_Read... [11:37:16]Read from MH i2c: E2 0E 00 [11:37:16]MH_I2C_Read... [11:37:16]Read from MH i2c: E2 0E 00 04 0D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 9D [11:37:16]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:37:16]wFMCommunicate OK [11:37:16]SAM_PROTO_GetShiftState done [11:37:16]FM_GetShiftState done [11:37:16]opened in 1729900879 [11:37:16]opened+sec_in_day 1729987279 [11:37:16]quantity*price = 100015 [11:37:16]sum+1 = 100017 [11:37:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 179 26.10.2024 11:37 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201417 ФПД: 141058346551070 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113716&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201417&fm=141058346551070&tin=02508201610067®Number=0000000000091777&sum=100000 [11:37:17]StoreToDocumentArchive [11:37:17]shift 543 fd 201417 [11:37:17]save to /storage/0543/doc_00201417 [11:37:17]save last doc name /storage/0543/doc_00201417 to /storage/kkm_last_doc_name [11:37:17]save OK [11:37:17]Clear old archive folders... [11:37:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:37:17]tlvbuf is B6E5C590 [11:37:17]SAM_PROTO_ClearQueue [11:37:17]wFMCommunicate request_size=4 [11:37:17]MH_SAM_APDU [11:37:17]CAPDU: 80 09 00 00 [11:37:17]Write to MH i2c: E2 08 00 11 0D 80 09 00 00 00 00 00 00 90 [11:37:17]Write i2c OK [11:37:17]MH_I2C_Read... [11:37:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:17]Read from MH i2c: E2 [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: E2 03 00 [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: E2 03 00 11 0D 00 90 00 92 [11:37:17]RAPDU: 90 00 [11:37:17]wFMCommunicate OK [11:37:17]SAM_PROTO_ClearQueue done [11:37:17]KKMCreateOFDPacket [11:37:17]OFDProtocolAddRootSTLVToBuf [11:37:17]FM_MakeSignedData [11:37:17]FM_MakeSignedData [11:37:17]SAM_PROTO_SignData [11:37:17]wFMCommunicate request_size=4 [11:37:17]MH_SAM_APDU [11:37:17]CAPDU: 80 0D 01 02 [11:37:17]Write to MH i2c: E2 08 00 12 0D 80 0D 01 02 00 00 00 00 98 [11:37:17]Write i2c OK [11:37:17]MH_I2C_Read... [11:37:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:17]Read from MH i2c: E2 [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: E2 03 00 [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: E2 03 00 12 0D 00 90 00 93 [11:37:17]RAPDU: 90 00 [11:37:17]wFMCommunicate OK [11:37:17]wFMCommunicate request_size=255 [11:37:17]MH_SAM_APDU [11:37: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 32 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 B3 00 00 00 F4 03 04 00 6C D4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C9 12 03 00 35 04 06 00 80 [11:37:17]Write to MH i2c: E2 02 01 13 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 32 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 B3 00 00 00 F4 03 04 00 6C D4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C9 12 03 00 35 04 06 00 80 00 00 1B [11:37:17]Write i2c OK [11:37:17]MH_I2C_Read... [11:37:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:17]Read from MH i2c: E2 [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: E2 03 00 [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: E2 03 00 13 0D 00 90 00 94 [11:37:17]RAPDU: 90 00 [11:37:17]wFMCommunicate OK [11:37:17]wFMCommunicate request_size=10 [11:37:17]MH_SAM_APDU [11:37:17]CAPDU: 80 0D 02 02 05 4A B4 A3 87 1E [11:37:17]Write to MH i2c: E2 0D 00 14 0D 80 0D 02 02 05 00 4A B4 A3 87 1E 00 00 EB [11:37:17]Write i2c OK [11:37:17]MH_I2C_Read... [11:37:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:17]Read from MH i2c: E2 [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: E2 03 00 [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: E2 03 00 14 0D 00 90 00 95 [11:37:17]RAPDU: 90 00 [11:37:17]wFMCommunicate OK [11:37:17]wFMCommunicate request_size=4 [11:37:17]MH_SAM_APDU [11:37:17]CAPDU: 80 0D 03 02 [11:37:17]Write to MH i2c: E2 08 00 15 0D 80 0D 03 02 00 00 00 00 9D [11:37:17]Write i2c OK [11:37:17]MH_I2C_Read... [11:37:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:17]Read from MH i2c: E2 [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: E2 0B 00 [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: E2 0B 00 15 0D 00 C4 8D 61 50 04 07 C0 5B 90 00 C6 [11:37:17]RAPDU: C4 8D 61 50 04 07 C0 5B 90 00 [11:37:17]wFMCommunicate OK [11:37:17]SAM_PROTO_SignData done [11:37:17]FM_MakeSignedData done [11:37:17]CreateOFDProtocolMessage [11:37:17]wFMCommunicate request_size=4 [11:37:17]MH_SAM_APDU [11:37:17]CAPDU: 80 11 00 00 [11:37:17]Write to MH i2c: E2 08 00 16 0D 80 11 00 00 00 00 00 00 9D [11:37:17]Write i2c OK [11:37:17]MH_I2C_Read... [11:37:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:17]Read from MH i2c: E2 [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: E2 17 00 [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: E2 17 00 16 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F2 [11:37:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:37:17]wFMCommunicate OK [11:37:17]CreateOFDProtocolMessage done [11:37:17]OFDSenderStorePacket 201417 [11:37:17]StoreOFDPacket docnum=201417 [11:37:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 CD C7 07 01 EC 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B3 00 00 00 F4 03 04 00 6C D4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C9 12 03 00 35 04 06 00 80 4A B4 A3 87 1E C4 8D 61 50 04 07 C0 5B [11:37:17]CheckFolder [11:37:17]dirname=/storage/ofd_packets [11:37:17]CheckFolder done [11:37:17]ProducePacketName [11:37:17]name=ofd_packets/00201417 [11:37:17]NVStorageSaveData ofd_packets/00201417 [11:37:17]File name is /storage/ofd_packets/00201417 [11:37:17]Write 301 bytes [11:37:17]NVStorageSaveData done [11:37:17]OFDSenderStorePacket done [11:37:17]KKMCreateOFDPacket done [11:37:17]NVStorageSaveData kkm_last_timestamp [11:37:17]File name is /storage/kkm_last_timestamp [11:37:17]Write 4 bytes [11:37:17]NVStorageSaveData done [11:37:17]ExternCall_PrintAddStr [11:37:17]wPrintStart [11:37:17]Write to MH i2c: 01 00 00 17 0D 24 [11:37:17]Write i2c OK [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: 01 [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: 01 07 00 [11:37:17]MH_I2C_Read... [11:37:17]Read from MH i2c: 01 07 00 17 0D 00 00 00 00 00 FF 0F 39 [11:37:17]RasterBufferAndPrint [11:37:17]line Счет N : (1)449166 [11:37:17]line ИНН: 02508201610067 [11:37:17]line Контрольно-Кассовый Чек [11:37:17]line ПРОДАЖА [11:37:17]line ТРК (МРК, ГНК) : 31 [11:37:17]line Товар: 2710124130 [11:37:17]line Аи-92-К-2 [11:37:17]line 14.950 * 66.90 [11:37:17]line = 1000.16 [11:37:17]line НДС 12% НСП 1% [11:37:17]line > о реализуемом товаре [11:37:17]line ОКРУГЛЕНИЕ: -0.16 [11:37:17]line ИТОГО: 1000.00 [11:37:17]line Внесено: 1000.00 [11:37:17]line СДАЧА: 0.00 [11:37:17]line НСП 1% : 8.85 [11:37:17]line НДС 12% : 106.21 [11:37:17]line Наличными: 1000.00 [11:37:17]line Безнал.: 0.00 [11:37:17]line Место: АЗС № 171 "Партнер Нефть" [11:37:17]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:37:17]line СНО: Общий режим [11:37:17]line Чек 179 26.10.2024 11:37 [11:37:17]line Смена: 543 ФФД: 1.0 [11:37:17]line ЗНМ: 0300000109 [11:37:17]line РНМ: 0000000000091777 [11:37:17]line Версия ККМ: 001 [11:37:17]line ФМ: 0000000000871756 [11:37:17]line ФД: 201417 [11:37:17]line ФПД: 141058346551070 [11:37:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113716&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201417&fm=141058346551070&tin=02508201610067®Number=0000000000091777&sum=100000 [11:37:18]OFD Sender: Processing packet 201417 [packets to send 112, broken 111] [11:37:18]ProducePacketName [11:37:18]name=ofd_packets/00201417 [11:37:18]OFD Sender: To server: pG, [11:37:18]CommunicateWithHost lk.salyk.kg:30040 [11:37:18]ConnectInit lk.salyk.kg [11:37:18]written 0, free lines is 4095 [11:37:18]Connected sock=10 [11:37:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 CD C7 07 01 EC 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B3 00 00 00 F4 03 04 00 6C D4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C9 12 03 00 35 04 06 00 80 4A B4 A3 87 1E C4 8D 61 50 04 07 C0 5B [11:37:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 44 87 47 00 B7 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C9 12 03 00 F4 03 04 00 15 80 1C 67 B6 04 01 00 00 52 98 75 62 12 7D 34 ED [11:37:18]CommunicateWithHost err = 0 [11:37:18]CheckOFDResponse [11:37:18]1017 (14) - 77093643461234 [11:37:18]1041 (16) - 0000000000871756 [11:37:18]1040 (4) - 201417 [11:37:18]1012 (4) - 26.10.2024 05:37 [11:37:18]1206 (1) - 0 [11:37:18]OFD Sender: Remove packet 201417 [11:37:18]ProducePacketName [11:37:18]name=ofd_packets/00201417 [11:37:18]NVStorageDeleteData [11:37:18]Write to MH i2c: 01 00 00 42 0D 4F [11:37:18]Write i2c OK [11:37:18]MH_I2C_Read... [11:37:18]Read from MH i2c: 01 [11:37:18]MH_I2C_Read... [11:37:18]Read from MH i2c: 01 07 00 [11:37:18]MH_I2C_Read... [11:37:18]Read from MH i2c: 01 07 00 42 0D 00 00 00 00 00 9D 0C FF [11:37:18]RasterBufferAndPrint [11:37:18]line [11:37:18]line [11:37:18]line [11:37:18]line [11:37:18]line [11:37:18]written 0, free lines is 3235 [11:37:18]MH_Cut [11:37:18]Write to MH i2c: D1 01 00 49 0D 01 28 [11:37:18]Write i2c OK [11:37:18]MH_I2C_Read... [11:37:18]Read from MH i2c: D1 [11:37:18]MH_I2C_Read... [11:37:18]Read from MH i2c: D1 01 00 [11:37:18]MH_I2C_Read... [11:37:18]Read from MH i2c: D1 01 00 49 0D 00 27 [11:37:18]Write to MH i2c: 01 00 00 4A 0D 57 [11:37:18]Write i2c OK [11:37:18]MH_I2C_Read... [11:37:19]OFD Sender: No OFD packet to send [11:37:19]*** Cut start [11:37:19]*** Purtial cut [11:37:19]*** Stage 1: CUTSNS_PIN = 1 [11:37:19]Read from MH i2c: 01 [11:37:19]MH_I2C_Read... [11:37:19]*** Stop cut motor [11:37:19]*** Cut end [11:37:19]Read from MH i2c: 01 07 00 [11:37:19]MH_I2C_Read... [11:37:19]Read from MH i2c: 01 07 00 4A 0D 00 00 00 00 00 FF 0F 6C [11:37:19]process_action close_receipt done [11:37:19]requested_data is exist [11:37:19]produce_requested_data [11:37:19]requested_item fm.sn is exist - process it [11:37:19]wFMCommunicate request_size=4 [11:37:19]MH_SAM_APDU [11:37:19]CAPDU: 80 11 00 00 [11:37:19]Write to MH i2c: E2 08 00 4B 0D 80 11 00 00 00 00 00 00 D2 [11:37:19]Write i2c OK [11:37:19]MH_I2C_Read... [11:37:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:19]Read from MH i2c: E2 [11:37:19]MH_I2C_Read... [11:37:19]Read from MH i2c: E2 17 00 [11:37:19]MH_I2C_Read... [11:37:19]Read from MH i2c: E2 17 00 4B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 27 [11:37:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:37:19]wFMCommunicate OK [11:37:19]requested_item fd.num is exist - process it [11:37:19]SAM_PROTO_GetFieldsCounters [11:37:19]wFMCommunicate request_size=4 [11:37:19]MH_SAM_APDU [11:37:19]CAPDU: 80 13 00 00 [11:37:19]Write to MH i2c: E2 08 00 4C 0D 80 13 00 00 00 00 00 00 D5 [11:37:19]Write i2c OK [11:37:19]MH_I2C_Read... [11:37:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:20]Read from MH i2c: E2 [11:37:20]MH_I2C_Read... [11:37:20]Read from MH i2c: E2 62 00 [11:37:20]MH_I2C_Read... [11:37:20]Read from MH i2c: E2 62 00 4C 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C9 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [11:37:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C9 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:37:20]wFMCommunicate OK [11:37:20]SAM_PROTO_GetFieldsCounters done [11:37:20]requested_item shift.num is exist - process it [11:37:20]requested_item shift.opened is exist - process it [11:37:20]req_shift_opened [11:37:20]FM_GetShiftState [11:37:20]SAM_PROTO_GetShiftState [11:37:20]wFMCommunicate request_size=4 [11:37:20]MH_SAM_APDU [11:37:20]CAPDU: 80 13 01 00 [11:37:20]Write to MH i2c: E2 08 00 4D 0D 80 13 01 00 00 00 00 00 D7 [11:37:20]Write i2c OK [11:37:20]MH_I2C_Read... [11:37:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:20]Read from MH i2c: E2 [11:37:20]MH_I2C_Read... [11:37:20]Read from MH i2c: E2 0E 00 [11:37:20]MH_I2C_Read... [11:37:20]Read from MH i2c: E2 0E 00 4D 0D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E6 [11:37:20]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:37:20]wFMCommunicate OK [11:37:20]SAM_PROTO_GetShiftState done [11:37:20]FM_GetShiftState done [11:37:20]req_shift_opened done [11:37:20]requested_item shift.open_date is exist - process it [11:37:20]req_shift_open_date [11:37:20]req_shift_open_date done [11:37:20]produce_requested_data done [11:37:20]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201417,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:37:20]process_action_free close_receipt [11:37:20]json_value_free [11:37:20]json_value_free done [11:37:20]process_json_proto returns [11:37:20]Send response to host [11:37:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201417,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:37:20]free response buf [11:37:20]execute_script done [11:37:20]execute_script returns [11:37:20]free content buf [11:37:20]Sock 7.Close socket [11:37:20]Sock 7.Thread stoped [11:37:24]OFD Sender: No OFD packet to send [11:37:29]OFD Sender: No OFD packet to send [11:37:34]OFD Sender: No OFD packet to send [11:37:39]OFD Sender: No OFD packet to send [11:37:44]OFD Sender: No OFD packet to send [11:37:49]OFD Sender: No OFD packet to send [11:37:54]OFD Sender: No OFD packet to send [11:37:59]OFD Sender: No OFD packet to send [11:38:04]OFD Sender: No OFD packet to send [11:38:09]OFD Sender: No OFD packet to send [11:38:14]OFD Sender: No OFD packet to send [11:38:19]OFD Sender: No OFD packet to send [11:38:24]OFD Sender: No OFD packet to send [11:38:29]OFD Sender: No OFD packet to send [11:38:34]OFD Sender: No OFD packet to send [11:38:39]OFD Sender: No OFD packet to send [11:38:44]OFD Sender: No OFD packet to send [11:38:49]OFD Sender: No OFD packet to send [11:38:54]OFD Sender: No OFD packet to send [11:38:59]OFD Sender: No OFD packet to send [11:39:04]OFD Sender: No OFD packet to send [11:39:09]OFD Sender: No OFD packet to send [11:39:14]OFD Sender: No OFD packet to send [11:39:19]OFD Sender: No OFD packet to send [11:39:24]OFD Sender: No OFD packet to send [11:39:24]accept exits with 9 [11:39:24]New connection [11:39:24]New thread 3066498404 created [11:39:24]Thread 3066641764 joined [11:39:24]Waiting for new connection... [11:39:24] Sock 9.Parse request [11:39:24]Sock 9.Check first char [11:39:24]Sock 9.First char is OK [11:39:24]request: POST /json_proto HTTP/1.0 [11:39:24]Method: POST [11:39:24]URL: /json_proto [11:39:24]Method is POST - this is cgi request [11:39:24]url: /json_proto [11:39:24]query_string will be loaded in cgi processing [11:39:24]execute_cgi json_proto POST (null) [11:39:24]execute_cgi path=json_proto method=POST [11:39:24]POST find Content-Length [11:39:24]Host: 172.17.63.195:8080 [11:39:24]Content-Length: 682 [11:39:24]Content-Type: application/json [11:39:24] [11:39:24]POST finish read [11:39:24]Found Content-Length = 682 [11:39:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [11:39:24]execute_script... [11:39: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)449168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [11:39:24]POST & json_proto [11:39:24]process_json_proto [11:39:24]json parsed OK: [11:39:24]protocol is kg_v1.0 [11:39:24]action value=close_receipt [11:39:24]process_action close_receipt [11:39:24]cmd_close_receipt [11:39:24]MH_GetDate [11:39:24]Write to MH i2c: F0 00 00 4E 0D 4A [11:39:24]Write i2c OK [11:39:24]MH_I2C_Read... [11:39:24]Read from MH i2c: F0 [11:39:24]MH_I2C_Read... [11:39:24]Read from MH i2c: F0 09 00 [11:39:24]MH_I2C_Read... [11:39:24]Read from MH i2c: F0 09 00 4E 0D 00 EC D4 1C 67 68 46 19 67 C4 [11:39:24]GetLastDocTimeStamp 1729942636 [11:39:24]current date 1729942764 [11:39:24]FM_GetShiftState [11:39:24]SAM_PROTO_GetShiftState [11:39:24]wFMCommunicate request_size=4 [11:39:24]MH_SAM_APDU [11:39:24]CAPDU: 80 13 01 00 [11:39:24]Write to MH i2c: E2 08 00 4F 0D 80 13 01 00 00 00 00 00 D9 [11:39:24]Write i2c OK [11:39:24]MH_I2C_Read... [11:39:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:24]Read from MH i2c: E2 [11:39:24]MH_I2C_Read... [11:39:24]Read from MH i2c: E2 0E 00 [11:39:24]MH_I2C_Read... [11:39:24]Read from MH i2c: E2 0E 00 4F 0D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E8 [11:39:24]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:39:24]wFMCommunicate OK [11:39:24]SAM_PROTO_GetShiftState done [11:39:24]FM_GetShiftState done [11:39:24]opened in 1729900879 [11:39:24]opened+sec_in_day 1729987279 [11:39:24]quantity*price = 150032 [11:39:24]sum+1 = 150033 [11:39:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 180 26.10.2024 11:39 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201418 ФПД: 4246599572440 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113924&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201418&fm=4246599572440&tin=02508201610067®Number=0000000000091777&sum=150000 [11:39:25]StoreToDocumentArchive [11:39:25]shift 543 fd 201418 [11:39:25]save to /storage/0543/doc_00201418 [11:39:25]save last doc name /storage/0543/doc_00201418 to /storage/kkm_last_doc_name [11:39:25]save OK [11:39:25]Clear old archive folders... [11:39:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:39:25]tlvbuf is 017FCC70 [11:39:25]SAM_PROTO_ClearQueue [11:39:25]wFMCommunicate request_size=4 [11:39:25]MH_SAM_APDU [11:39:25]CAPDU: 80 09 00 00 [11:39:25]Write to MH i2c: E2 08 00 5C 0D 80 09 00 00 00 00 00 00 DB [11:39:25]Write i2c OK [11:39:25]MH_I2C_Read... [11:39:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:25]Read from MH i2c: E2 [11:39:25]MH_I2C_Read... [11:39:25]Read from MH i2c: E2 03 00 [11:39:25]MH_I2C_Read... [11:39:25]Read from MH i2c: E2 03 00 5C 0D 00 90 00 DD [11:39:25]RAPDU: 90 00 [11:39:25]wFMCommunicate OK [11:39:25]SAM_PROTO_ClearQueue done [11:39:25]KKMCreateOFDPacket [11:39:25]OFDProtocolAddRootSTLVToBuf [11:39:25]FM_MakeSignedData [11:39:25]FM_MakeSignedData [11:39:25]SAM_PROTO_SignData [11:39:25]wFMCommunicate request_size=4 [11:39:25]MH_SAM_APDU [11:39:25]CAPDU: 80 0D 01 02 [11:39:25]Write to MH i2c: E2 08 00 5D 0D 80 0D 01 02 00 00 00 00 E3 [11:39:25]Write i2c OK [11:39:25]MH_I2C_Read... [11:39:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:25]Read from MH i2c: E2 [11:39:25]MH_I2C_Read... [11:39:25]Read from MH i2c: E2 03 00 [11:39:25]MH_I2C_Read... [11:39:25]Read from MH i2c: E2 03 00 5D 0D 00 90 00 DE [11:39:25]RAPDU: 90 00 [11:39:25]wFMCommunicate OK [11:39:25]wFMCommunicate request_size=255 [11:39:25]MH_SAM_APDU [11:39: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 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 F0 49 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 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 B4 00 00 00 F4 03 04 00 EC D4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CA 12 03 00 35 04 06 00 03 [11:39:25]Write to MH i2c: E2 02 01 5E 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 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 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 F0 49 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 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 B4 00 00 00 F4 03 04 00 EC D4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CA 12 03 00 35 04 06 00 03 00 00 D5 [11:39:25]Write i2c OK [11:39:25]MH_I2C_Read... [11:39:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:26]Read from MH i2c: E2 [11:39:26]MH_I2C_Read... [11:39:26]Read from MH i2c: E2 03 00 [11:39:26]MH_I2C_Read... [11:39:26]Read from MH i2c: E2 03 00 5E 0D 00 90 00 DF [11:39:26]RAPDU: 90 00 [11:39:26]wFMCommunicate OK [11:39:26]wFMCommunicate request_size=10 [11:39:26]MH_SAM_APDU [11:39:26]CAPDU: 80 0D 02 02 05 DC BD 0F 1B D8 [11:39:26]Write to MH i2c: E2 0D 00 5F 0D 80 0D 02 02 05 00 DC BD 0F 1B D8 00 00 8B [11:39:26]Write i2c OK [11:39:26]MH_I2C_Read... [11:39:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:26]Read from MH i2c: E2 [11:39:26]MH_I2C_Read... [11:39:26]Read from MH i2c: E2 03 00 [11:39:26]MH_I2C_Read... [11:39:26]Read from MH i2c: E2 03 00 5F 0D 00 90 00 E0 [11:39:26]RAPDU: 90 00 [11:39:26]wFMCommunicate OK [11:39:26]wFMCommunicate request_size=4 [11:39:26]MH_SAM_APDU [11:39:26]CAPDU: 80 0D 03 02 [11:39:26]Write to MH i2c: E2 08 00 60 0D 80 0D 03 02 00 00 00 00 E8 [11:39:26]Write i2c OK [11:39:26]MH_I2C_Read... [11:39:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:26]Read from MH i2c: E2 [11:39:26]MH_I2C_Read... [11:39:26]Read from MH i2c: E2 0B 00 [11:39:26]MH_I2C_Read... [11:39:26]Read from MH i2c: E2 0B 00 60 0D 00 FD 7F 04 1F FC 38 07 82 90 00 45 [11:39:26]RAPDU: FD 7F 04 1F FC 38 07 82 90 00 [11:39:26]wFMCommunicate OK [11:39:26]SAM_PROTO_SignData done [11:39:26]FM_MakeSignedData done [11:39:26]CreateOFDProtocolMessage [11:39:26]wFMCommunicate request_size=4 [11:39:26]MH_SAM_APDU [11:39:26]CAPDU: 80 11 00 00 [11:39:26]Write to MH i2c: E2 08 00 61 0D 80 11 00 00 00 00 00 00 E8 [11:39:26]Write i2c OK [11:39:26]MH_I2C_Read... [11:39:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:26]Read from MH i2c: E2 [11:39:26]MH_I2C_Read... [11:39:26]Read from MH i2c: E2 17 00 [11:39:26]MH_I2C_Read... [11:39:26]Read from MH i2c: E2 17 00 61 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3D [11:39:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:39:26]wFMCommunicate OK [11:39:26]CreateOFDProtocolMessage done [11:39:26]OFDSenderStorePacket 201418 [11:39:26]StoreOFDPacket docnum=201418 [11:39:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 EE 0A 07 01 85 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 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 F0 49 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 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 B4 00 00 00 F4 03 04 00 EC D4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CA 12 03 00 35 04 06 00 03 DC BD 0F 1B D8 FD 7F 04 1F FC 38 07 82 [11:39:26]CheckFolder [11:39:26]dirname=/storage/ofd_packets [11:39:26]CheckFolder done [11:39:26]ProducePacketName [11:39:26]name=ofd_packets/00201418 [11:39:26]NVStorageSaveData ofd_packets/00201418 [11:39:26]File name is /storage/ofd_packets/00201418 [11:39:26]Write 301 bytes [11:39:26]NVStorageSaveData done [11:39:26]OFDSenderStorePacket done [11:39:26]KKMCreateOFDPacket done [11:39:26]NVStorageSaveData kkm_last_timestamp [11:39:26]File name is /storage/kkm_last_timestamp [11:39:26]Write 4 bytes [11:39:26]NVStorageSaveData done [11:39:26]ExternCall_PrintAddStr [11:39:26]wPrintStart [11:39:26]Write to MH i2c: 01 00 00 62 0D 6F [11:39:26]Write i2c OK [11:39:26]MH_I2C_Read... [11:39:26]Read from MH i2c: 01 [11:39:26]MH_I2C_Read... [11:39:26]Read from MH i2c: 01 07 00 [11:39:26]MH_I2C_Read... [11:39:26]Read from MH i2c: 01 07 00 62 0D 00 00 00 00 00 FF 0F 84 [11:39:26]RasterBufferAndPrint [11:39:26]line Счет N : (1)449168 [11:39:26]line ИНН: 02508201610067 [11:39:26]line Контрольно-Кассовый Чек [11:39:26]line ПРОДАЖА [11:39:26]line ТРК (МРК, ГНК) : 51 [11:39:26]line Товар: 2710124500 [11:39:26]line Аи-95-К-3 [11:39:26]line 20.220 * 74.20 [11:39:26]line = 1500.32 [11:39:26]line НДС 12% НСП 1% [11:39:26]line > о реализуемом товаре [11:39:26]line ОКРУГЛЕНИЕ: -0.32 [11:39:26]line ИТОГО: 1500.00 [11:39:26]line Внесено: 1500.00 [11:39:26]line СДАЧА: 0.00 [11:39:26]line НСП 1% : 13.28 [11:39:26]line НДС 12% : 159.33 [11:39:26]line Наличными: 1500.00 [11:39:26]line Безнал.: 0.00 [11:39:26]line Место: АЗС № 171 "Партнер Нефть" [11:39:26]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:39:26]line СНО: Общий режим [11:39:26]line Чек 180 26.10.2024 11:39 [11:39:26]line Смена: 543 ФФД: 1.0 [11:39:26]line ЗНМ: 0300000109 [11:39:26]line РНМ: 0000000000091777 [11:39:26]line Версия ККМ: 001 [11:39:26]line ФМ: 0000000000871756 [11:39:26]line ФД: 201418 [11:39:26]line ФПД: 4246599572440 [11:39:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113924&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201418&fm=4246599572440&tin=02508201610067®Number=0000000000091777&sum=150000 [11:39:26]OFD Sender: Processing packet 201418 [packets to send 112, broken 111] [11:39:26]ProducePacketName [11:39:26]name=ofd_packets/00201418 [11:39:26]OFD Sender: To server: pG, [11:39:26]CommunicateWithHost lk.salyk.kg:30040 [11:39:26]ConnectInit lk.salyk.kg [11:39:26]written 0, free lines is 4095 [11:39:26]Connected sock=10 [11:39:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 EE 0A 07 01 85 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 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 F0 49 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 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 B4 00 00 00 F4 03 04 00 EC D4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CA 12 03 00 35 04 06 00 03 DC BD 0F 1B D8 FD 7F 04 1F FC 38 07 82 [11:39:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 04 BA 47 00 A4 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CA 12 03 00 F4 03 04 00 96 80 1C 67 B6 04 01 00 00 B1 94 AA 89 CF 5A F2 22 [11:39:26]CommunicateWithHost err = 0 [11:39:26]CheckOFDResponse [11:39:26]1017 (14) - 77093643461234 [11:39:26]1041 (16) - 0000000000871756 [11:39:26]1040 (4) - 201418 [11:39:26]1012 (4) - 26.10.2024 05:39 [11:39:26]1206 (1) - 0 [11:39:26]OFD Sender: Remove packet 201418 [11:39:26]ProducePacketName [11:39:26]name=ofd_packets/00201418 [11:39:26]NVStorageDeleteData [11:39:27]Write to MH i2c: 01 00 00 8D 0D 9A [11:39:27]Write i2c OK [11:39:27]MH_I2C_Read... [11:39:27]Read from MH i2c: 01 [11:39:27]MH_I2C_Read... [11:39:27]Read from MH i2c: 01 07 00 [11:39:27]MH_I2C_Read... [11:39:27]Read from MH i2c: 01 07 00 8D 0D 00 00 00 00 00 A2 0C 4F [11:39:27]RasterBufferAndPrint [11:39:27]line [11:39:27]line [11:39:27]line [11:39:27]line [11:39:27]line [11:39:27]written 0, free lines is 3240 [11:39:27]MH_Cut [11:39:27]Write to MH i2c: D1 01 00 94 0D 01 73 [11:39:27]Write i2c OK [11:39:27]MH_I2C_Read... [11:39:27]Read from MH i2c: D1 [11:39:27]MH_I2C_Read... [11:39:27]Read from MH i2c: D1 01 00 [11:39:27]MH_I2C_Read... [11:39:27]Read from MH i2c: D1 01 00 94 0D 00 72 [11:39:27]Write to MH i2c: 01 00 00 95 0D A2 [11:39:27]Write i2c OK [11:39:27]MH_I2C_Read... [11:39:27]OFD Sender: No OFD packet to send [11:39:27]*** Cut start [11:39:27]*** Purtial cut [11:39:27]*** Stage 1: CUTSNS_PIN = 1 [11:39:28]Read from MH i2c: 01 [11:39:28]MH_I2C_Read... [11:39:28]*** Stop cut motor [11:39:28]*** Cut end [11:39:28]Read from MH i2c: 01 07 00 [11:39:28]MH_I2C_Read... [11:39:28]Read from MH i2c: 01 07 00 95 0D 00 00 00 00 00 FF 0F B7 [11:39:28]process_action close_receipt done [11:39:28]requested_data is exist [11:39:28]produce_requested_data [11:39:28]requested_item fm.sn is exist - process it [11:39:28]wFMCommunicate request_size=4 [11:39:28]MH_SAM_APDU [11:39:28]CAPDU: 80 11 00 00 [11:39:28]Write to MH i2c: E2 08 00 96 0D 80 11 00 00 00 00 00 00 1D [11:39:28]Write i2c OK [11:39:28]MH_I2C_Read... [11:39:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:28]Read from MH i2c: E2 [11:39:28]MH_I2C_Read... [11:39:28]Read from MH i2c: E2 17 00 [11:39:28]MH_I2C_Read... [11:39:28]Read from MH i2c: E2 17 00 96 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 72 [11:39:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:39:28]wFMCommunicate OK [11:39:28]requested_item fd.num is exist - process it [11:39:28]SAM_PROTO_GetFieldsCounters [11:39:28]wFMCommunicate request_size=4 [11:39:28]MH_SAM_APDU [11:39:28]CAPDU: 80 13 00 00 [11:39:28]Write to MH i2c: E2 08 00 97 0D 80 13 00 00 00 00 00 00 20 [11:39:28]Write i2c OK [11:39:28]MH_I2C_Read... [11:39:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:28]Read from MH i2c: E2 [11:39:28]MH_I2C_Read... [11:39:28]Read from MH i2c: E2 62 00 [11:39:28]MH_I2C_Read... [11:39:28]Read from MH i2c: E2 62 00 97 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CA 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [11:39:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CA 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:39:28]wFMCommunicate OK [11:39:28]SAM_PROTO_GetFieldsCounters done [11:39:28]requested_item shift.num is exist - process it [11:39:28]requested_item shift.opened is exist - process it [11:39:28]req_shift_opened [11:39:28]FM_GetShiftState [11:39:28]SAM_PROTO_GetShiftState [11:39:28]wFMCommunicate request_size=4 [11:39:28]MH_SAM_APDU [11:39:28]CAPDU: 80 13 01 00 [11:39:28]Write to MH i2c: E2 08 00 98 0D 80 13 01 00 00 00 00 00 22 [11:39:28]Write i2c OK [11:39:28]MH_I2C_Read... [11:39:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:28]Read from MH i2c: E2 [11:39:28]MH_I2C_Read... [11:39:28]Read from MH i2c: E2 0E 00 [11:39:28]MH_I2C_Read... [11:39:28]Read from MH i2c: E2 0E 00 98 0D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 31 [11:39:28]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:39:28]wFMCommunicate OK [11:39:28]SAM_PROTO_GetShiftState done [11:39:28]FM_GetShiftState done [11:39:28]req_shift_opened done [11:39:28]requested_item shift.open_date is exist - process it [11:39:28]req_shift_open_date [11:39:28]req_shift_open_date done [11:39:28]produce_requested_data done [11:39:28]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201418,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:39:28]process_action_free close_receipt [11:39:28]json_value_free [11:39:28]json_value_free done [11:39:28]process_json_proto returns [11:39:28]Send response to host [11:39:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201418,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:39:28]free response buf [11:39:28]execute_script done [11:39:28]execute_script returns [11:39:28]free content buf [11:39:28]Sock 9.Close socket [11:39:28]Sock 9.Thread stoped [11:39:28]accept exits with 7 [11:39:28]New connection [11:39:28]New thread 3066641764 created [11:39:28]Thread 3066498404 joined [11:39:28]Waiting for new connection... [11:39:28] Sock 7.Parse request [11:39:28]Sock 7.Check first char [11:39:28]Sock 7.First char is OK [11:39:28]request: POST /json_proto HTTP/1.0 [11:39:28]Method: POST [11:39:28]URL: /json_proto [11:39:28]Method is POST - this is cgi request [11:39:28]url: /json_proto [11:39:28]query_string will be loaded in cgi processing [11:39:28]execute_cgi json_proto POST (null) [11:39:28]execute_cgi path=json_proto method=POST [11:39:28]POST find Content-Length [11:39:28]Host: 172.17.63.195:8080 [11:39:28]Content-Length: 682 [11:39:28]Content-Type: application/json [11:39:28] [11:39:28]POST finish read [11:39:28]Found Content-Length = 682 [11:39:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:39:28]execute_script... [11:39: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)449167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:39:28]POST & json_proto [11:39:28]process_json_proto [11:39:28]json parsed OK: [11:39:28]protocol is kg_v1.0 [11:39:28]action value=close_receipt [11:39:28]process_action close_receipt [11:39:28]cmd_close_receipt [11:39:28]MH_GetDate [11:39:28]Write to MH i2c: F0 00 00 99 0D 95 [11:39:28]Write i2c OK [11:39:28]MH_I2C_Read... [11:39:28]Read from MH i2c: F0 [11:39:28]MH_I2C_Read... [11:39:28]Read from MH i2c: F0 09 00 [11:39:28]MH_I2C_Read... [11:39:28]Read from MH i2c: F0 09 00 99 0D 00 F1 D4 1C 67 68 46 19 67 14 [11:39:28]GetLastDocTimeStamp 1729942764 [11:39:28]current date 1729942769 [11:39:28]FM_GetShiftState [11:39:28]SAM_PROTO_GetShiftState [11:39:28]wFMCommunicate request_size=4 [11:39:28]MH_SAM_APDU [11:39:28]CAPDU: 80 13 01 00 [11:39:28]Write to MH i2c: E2 08 00 9A 0D 80 13 01 00 00 00 00 00 24 [11:39:28]Write i2c OK [11:39:28]MH_I2C_Read... [11:39:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:28]Read from MH i2c: E2 [11:39:28]MH_I2C_Read... [11:39:28]Read from MH i2c: E2 0E 00 [11:39:28]MH_I2C_Read... [11:39:28]Read from MH i2c: E2 0E 00 9A 0D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 33 [11:39:28]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:39:28]wFMCommunicate OK [11:39:28]SAM_PROTO_GetShiftState done [11:39:28]FM_GetShiftState done [11:39:28]opened in 1729900879 [11:39:28]opened+sec_in_day 1729987279 [11:39:28]quantity*price = 100015 [11:39:28]sum+1 = 100017 [11:39:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 181 26.10.2024 11:39 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201419 ФПД: 166343793290458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113929&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201419&fm=166343793290458&tin=02508201610067®Number=0000000000091777&sum=100000 [11:39:30]StoreToDocumentArchive [11:39:30]shift 543 fd 201419 [11:39:30]save to /storage/0543/doc_00201419 [11:39:30]save last doc name /storage/0543/doc_00201419 to /storage/kkm_last_doc_name [11:39:30]save OK [11:39:30]Clear old archive folders... [11:39:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:39:30]tlvbuf is 017B2B60 [11:39:30]SAM_PROTO_ClearQueue [11:39:30]wFMCommunicate request_size=4 [11:39:30]MH_SAM_APDU [11:39:30]CAPDU: 80 09 00 00 [11:39:30]Write to MH i2c: E2 08 00 A7 0D 80 09 00 00 00 00 00 00 26 [11:39:30]Write i2c OK [11:39:30]MH_I2C_Read... [11:39:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:30]Read from MH i2c: E2 [11:39:30]MH_I2C_Read... [11:39:30]Read from MH i2c: E2 03 00 [11:39:30]MH_I2C_Read... [11:39:30]Read from MH i2c: E2 03 00 A7 0D 00 90 00 28 [11:39:30]RAPDU: 90 00 [11:39:30]wFMCommunicate OK [11:39:30]SAM_PROTO_ClearQueue done [11:39:30]KKMCreateOFDPacket [11:39:30]OFDProtocolAddRootSTLVToBuf [11:39:30]FM_MakeSignedData [11:39:30]FM_MakeSignedData [11:39:30]SAM_PROTO_SignData [11:39:30]wFMCommunicate request_size=4 [11:39:30]MH_SAM_APDU [11:39:30]CAPDU: 80 0D 01 02 [11:39:30]Write to MH i2c: E2 08 00 A8 0D 80 0D 01 02 00 00 00 00 2E [11:39:30]Write i2c OK [11:39:30]MH_I2C_Read... [11:39:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:30]Read from MH i2c: E2 [11:39:30]MH_I2C_Read... [11:39:30]Read from MH i2c: E2 03 00 [11:39:30]MH_I2C_Read... [11:39:30]Read from MH i2c: E2 03 00 A8 0D 00 90 00 29 [11:39:30]RAPDU: 90 00 [11:39:30]wFMCommunicate OK [11:39:30]wFMCommunicate request_size=255 [11:39:30]MH_SAM_APDU [11:39:30]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 32 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 B5 00 00 00 F4 03 04 00 F1 D4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CB 12 03 00 35 04 06 00 97 [11:39:30]Write to MH i2c: E2 02 01 A9 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 32 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 B5 00 00 00 F4 03 04 00 F1 D4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CB 12 03 00 35 04 06 00 97 00 00 51 [11:39:30]Write i2c OK [11:39:30]MH_I2C_Read... [11:39:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:30]Read from MH i2c: E2 [11:39:30]MH_I2C_Read... [11:39:30]Read from MH i2c: E2 03 00 [11:39:30]MH_I2C_Read... [11:39:30]Read from MH i2c: E2 03 00 A9 0D 00 90 00 2A [11:39:30]RAPDU: 90 00 [11:39:30]wFMCommunicate OK [11:39:30]wFMCommunicate request_size=10 [11:39:30]MH_SAM_APDU [11:39:30]CAPDU: 80 0D 02 02 05 49 EE B5 AC DA [11:39:30]Write to MH i2c: E2 0D 00 AA 0D 80 0D 02 02 05 00 49 EE B5 AC DA 00 00 AD [11:39:30]Write i2c OK [11:39:30]MH_I2C_Read... [11:39:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:30]Read from MH i2c: E2 [11:39:30]MH_I2C_Read... [11:39:30]Read from MH i2c: E2 03 00 [11:39:30]MH_I2C_Read... [11:39:30]Read from MH i2c: E2 03 00 AA 0D 00 90 00 2B [11:39:30]RAPDU: 90 00 [11:39:30]wFMCommunicate OK [11:39:30]wFMCommunicate request_size=4 [11:39:30]MH_SAM_APDU [11:39:30]CAPDU: 80 0D 03 02 [11:39:30]Write to MH i2c: E2 08 00 AB 0D 80 0D 03 02 00 00 00 00 33 [11:39:30]Write i2c OK [11:39:30]MH_I2C_Read... [11:39:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:30]Read from MH i2c: E2 [11:39:30]MH_I2C_Read... [11:39:30]Read from MH i2c: E2 0B 00 [11:39:30]MH_I2C_Read... [11:39:30]Read from MH i2c: E2 0B 00 AB 0D 00 F7 1A FF 3B 0A DC 61 FD 90 00 C3 [11:39:30]RAPDU: F7 1A FF 3B 0A DC 61 FD 90 00 [11:39:30]wFMCommunicate OK [11:39:30]SAM_PROTO_SignData done [11:39:30]FM_MakeSignedData done [11:39:30]CreateOFDProtocolMessage [11:39:30]wFMCommunicate request_size=4 [11:39:30]MH_SAM_APDU [11:39:30]CAPDU: 80 11 00 00 [11:39:30]Write to MH i2c: E2 08 00 AC 0D 80 11 00 00 00 00 00 00 33 [11:39:30]Write i2c OK [11:39:30]MH_I2C_Read... [11:39:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:30]Read from MH i2c: E2 [11:39:30]MH_I2C_Read... [11:39:30]Read from MH i2c: E2 17 00 [11:39:30]MH_I2C_Read... [11:39:30]Read from MH i2c: E2 17 00 AC 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 88 [11:39:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:39:30]wFMCommunicate OK [11:39:30]CreateOFDProtocolMessage done [11:39:30]OFDSenderStorePacket 201419 [11:39:30]StoreOFDPacket docnum=201419 [11:39:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 29 A2 07 01 9E CE 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 32 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 B5 00 00 00 F4 03 04 00 F1 D4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CB 12 03 00 35 04 06 00 97 49 EE B5 AC DA F7 1A FF 3B 0A DC 61 FD [11:39:30]CheckFolder [11:39:30]dirname=/storage/ofd_packets [11:39:30]CheckFolder done [11:39:30]ProducePacketName [11:39:30]name=ofd_packets/00201419 [11:39:30]NVStorageSaveData ofd_packets/00201419 [11:39:30]File name is /storage/ofd_packets/00201419 [11:39:30]Write 301 bytes [11:39:30]NVStorageSaveData done [11:39:30]OFDSenderStorePacket done [11:39:30]KKMCreateOFDPacket done [11:39:30]NVStorageSaveData kkm_last_timestamp [11:39:30]File name is /storage/kkm_last_timestamp [11:39:30]Write 4 bytes [11:39:30]NVStorageSaveData done [11:39:30]ExternCall_PrintAddStr [11:39:30]wPrintStart [11:39:30]Write to MH i2c: 01 00 00 AD 0D BA [11:39:30]OFD Sender: Processing packet 201419 [packets to send 112, broken 111] [11:39:30]ProducePacketName [11:39:30]name=ofd_packets/00201419 [11:39:30]OFD Sender: To server: pG, [11:39:30]CommunicateWithHost lk.salyk.kg:30040 [11:39:30]ConnectInit lk.salyk.kg [11:39:30]Write i2c OK [11:39:30]MH_I2C_Read... [11:39:30]Read from MH i2c: 01 [11:39:30]MH_I2C_Read... [11:39:30]Read from MH i2c: 01 07 00 [11:39:30]MH_I2C_Read... [11:39:30]Read from MH i2c: 01 07 00 AD 0D 00 00 00 00 00 FF 0F CF [11:39:30]RasterBufferAndPrint [11:39:30]line Счет N : (1)449167 [11:39:30]line ИНН: 02508201610067 [11:39:30]line Контрольно-Кассовый Чек [11:39:30]line ПРОДАЖА [11:39:30]line ТРК (МРК, ГНК) : 31 [11:39:30]line Товар: 2710124130 [11:39:30]line Аи-92-К-2 [11:39:30]line 14.950 * 66.90 [11:39:30]line = 1000.16 [11:39:30]line НДС 12% НСП 1% [11:39:30]line > о реализуемом товаре [11:39:30]line ОКРУГЛЕНИЕ: -0.16 [11:39:30]line ИТОГО: 1000.00 [11:39:30]line Внесено: 1000.00 [11:39:30]line СДАЧА: 0.00 [11:39:30]line НСП 1% : 8.85 [11:39:30]line НДС 12% : 106.21 [11:39:30]line Наличными: 1000.00 [11:39:30]line Безнал.: 0.00 [11:39:30]line Место: АЗС № 171 "Партнер Нефть" [11:39:30]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:39:30]line СНО: Общий режим [11:39:30]line Чек 181 26.10.2024 11:39 [11:39:30]line Смена: 543 ФФД: 1.0 [11:39:30]line ЗНМ: 0300000109 [11:39:30]line РНМ: 0000000000091777 [11:39:30]line Версия ККМ: 001 [11:39:30]line ФМ: 0000000000871756 [11:39:30]line ФД: 201419 [11:39:30]line ФПД: 166343793290458 [11:39:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113929&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201419&fm=166343793290458&tin=02508201610067®Number=0000000000091777&sum=100000 [11:39:30]written 0, free lines is 4095 [11:39:30]Connected sock=10 [11:39:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 29 A2 07 01 9E CE 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 32 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 B5 00 00 00 F4 03 04 00 F1 D4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CB 12 03 00 35 04 06 00 97 49 EE B5 AC DA F7 1A FF 3B 0A DC 61 FD [11:39:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C4 6B 47 00 18 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CB 12 03 00 F4 03 04 00 9A 80 1C 67 B6 04 01 00 00 8C 2A 92 47 F9 86 48 4D [11:39:31]CommunicateWithHost err = 0 [11:39:31]CheckOFDResponse [11:39:31]1017 (14) - 77093643461234 [11:39:31]1041 (16) - 0000000000871756 [11:39:31]1040 (4) - 201419 [11:39:31]1012 (4) - 26.10.2024 05:39 [11:39:31]1206 (1) - 0 [11:39:31]OFD Sender: Remove packet 201419 [11:39:31]ProducePacketName [11:39:31]name=ofd_packets/00201419 [11:39:31]NVStorageDeleteData [11:39:31]Write to MH i2c: 01 00 00 D8 0D E5 [11:39:31]Write i2c OK [11:39:31]MH_I2C_Read... [11:39:31]Read from MH i2c: 01 [11:39:31]MH_I2C_Read... [11:39:31]Read from MH i2c: 01 07 00 [11:39:31]MH_I2C_Read... [11:39:31]Read from MH i2c: 01 07 00 D8 0D 00 00 00 00 00 AC 0C A4 [11:39:31]RasterBufferAndPrint [11:39:31]line [11:39:31]line [11:39:31]line [11:39:31]line [11:39:31]line [11:39:31]written 0, free lines is 3258 [11:39:31]MH_Cut [11:39:31]Write to MH i2c: D1 01 00 DF 0D 01 BE [11:39:31]Write i2c OK [11:39:31]MH_I2C_Read... [11:39:31]Read from MH i2c: D1 [11:39:31]MH_I2C_Read... [11:39:31]Read from MH i2c: D1 01 00 [11:39:31]MH_I2C_Read... [11:39:31]Read from MH i2c: D1 01 00 DF 0D 00 BD [11:39:31]Write to MH i2c: 01 00 00 E0 0D ED [11:39:31]Write i2c OK [11:39:31]MH_I2C_Read... [11:39:31]OFD Sender: No OFD packet to send [11:39:32]*** Cut start [11:39:32]*** Purtial cut [11:39:32]*** Stage 1: CUTSNS_PIN = 1 [11:39:32]Read from MH i2c: 01 [11:39:32]MH_I2C_Read... [11:39:32]*** Stop cut motor [11:39:32]*** Cut end [11:39:32]Read from MH i2c: 01 07 00 [11:39:32]MH_I2C_Read... [11:39:32]Read from MH i2c: 01 07 00 E0 0D 00 00 00 00 00 FF 0F 02 [11:39:32]process_action close_receipt done [11:39:32]requested_data is exist [11:39:32]produce_requested_data [11:39:32]requested_item fm.sn is exist - process it [11:39:32]wFMCommunicate request_size=4 [11:39:32]MH_SAM_APDU [11:39:32]CAPDU: 80 11 00 00 [11:39:32]Write to MH i2c: E2 08 00 E1 0D 80 11 00 00 00 00 00 00 68 [11:39:32]Write i2c OK [11:39:32]MH_I2C_Read... [11:39:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:32]Read from MH i2c: E2 [11:39:32]MH_I2C_Read... [11:39:32]Read from MH i2c: E2 17 00 [11:39:32]MH_I2C_Read... [11:39:32]Read from MH i2c: E2 17 00 E1 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BD [11:39:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:39:32]wFMCommunicate OK [11:39:32]requested_item fd.num is exist - process it [11:39:32]SAM_PROTO_GetFieldsCounters [11:39:32]wFMCommunicate request_size=4 [11:39:32]MH_SAM_APDU [11:39:32]CAPDU: 80 13 00 00 [11:39:32]Write to MH i2c: E2 08 00 E2 0D 80 13 00 00 00 00 00 00 6B [11:39:32]Write i2c OK [11:39:32]MH_I2C_Read... [11:39:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:32]Read from MH i2c: E2 [11:39:32]MH_I2C_Read... [11:39:32]Read from MH i2c: E2 62 00 [11:39:32]MH_I2C_Read... [11:39:32]Read from MH i2c: E2 62 00 E2 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CB 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [11:39:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CB 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:39:32]wFMCommunicate OK [11:39:32]SAM_PROTO_GetFieldsCounters done [11:39:32]requested_item shift.num is exist - process it [11:39:32]requested_item shift.opened is exist - process it [11:39:32]req_shift_opened [11:39:32]FM_GetShiftState [11:39:32]SAM_PROTO_GetShiftState [11:39:32]wFMCommunicate request_size=4 [11:39:32]MH_SAM_APDU [11:39:32]CAPDU: 80 13 01 00 [11:39:32]Write to MH i2c: E2 08 00 E3 0D 80 13 01 00 00 00 00 00 6D [11:39:32]Write i2c OK [11:39:32]MH_I2C_Read... [11:39:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:32]Read from MH i2c: E2 [11:39:32]MH_I2C_Read... [11:39:32]Read from MH i2c: E2 0E 00 [11:39:32]MH_I2C_Read... [11:39:32]Read from MH i2c: E2 0E 00 E3 0D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 7C [11:39:32]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:39:32]wFMCommunicate OK [11:39:32]SAM_PROTO_GetShiftState done [11:39:32]FM_GetShiftState done [11:39:32]req_shift_opened done [11:39:32]requested_item shift.open_date is exist - process it [11:39:32]req_shift_open_date [11:39:32]req_shift_open_date done [11:39:32]produce_requested_data done [11:39:32]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201419,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:39:32]process_action_free close_receipt [11:39:32]json_value_free [11:39:32]json_value_free done [11:39:32]process_json_proto returns [11:39:32]Send response to host [11:39:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201419,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:39:32]free response buf [11:39:32]execute_script done [11:39:32]execute_script returns [11:39:32]free content buf [11:39:32]Sock 7.Close socket [11:39:32]Sock 7.Thread stoped [11:39:36]OFD Sender: No OFD packet to send [11:39:41]OFD Sender: No OFD packet to send [11:39:46]OFD Sender: No OFD packet to send [11:39:51]OFD Sender: No OFD packet to send [11:39:56]OFD Sender: No OFD packet to send [11:40:01]OFD Sender: No OFD packet to send [11:40:06]OFD Sender: No OFD packet to send [11:40:11]OFD Sender: No OFD packet to send [11:40:16]OFD Sender: No OFD packet to send [11:40:21]OFD Sender: No OFD packet to send [11:40:26]OFD Sender: No OFD packet to send [11:40:31]OFD Sender: No OFD packet to send [11:40:36]OFD Sender: No OFD packet to send [11:40:41]OFD Sender: No OFD packet to send [11:40:46]OFD Sender: No OFD packet to send [11:40:51]OFD Sender: No OFD packet to send [11:40:56]OFD Sender: No OFD packet to send [11:41:01]OFD Sender: No OFD packet to send [11:41:06]OFD Sender: No OFD packet to send [11:41:11]OFD Sender: No OFD packet to send [11:41:16]OFD Sender: No OFD packet to send [11:41:21]OFD Sender: No OFD packet to send [11:41:26]OFD Sender: No OFD packet to send [11:41:31]OFD Sender: No OFD packet to send [11:41:36]OFD Sender: No OFD packet to send [11:41:41]OFD Sender: No OFD packet to send [11:41:46]OFD Sender: No OFD packet to send [11:41:51]OFD Sender: No OFD packet to send [11:41:56]OFD Sender: No OFD packet to send [11:42:01]accept exits with 9 [11:42:01]New connection [11:42:01]New thread 3066498404 created [11:42:01]Thread 3066641764 joined [11:42:01]Waiting for new connection... [11:42:01] Sock 9.Parse request [11:42:01]Sock 9.Check first char [11:42:01]Sock 9.First char is OK [11:42:01]request: POST /json_proto HTTP/1.0 [11:42:01]Method: POST [11:42:01]URL: /json_proto [11:42:01]Method is POST - this is cgi request [11:42:01]url: /json_proto [11:42:01]query_string will be loaded in cgi processing [11:42:01]execute_cgi json_proto POST (null) [11:42:01]execute_cgi path=json_proto method=POST [11:42:01]POST find Content-Length [11:42:01]Host: 172.17.63.195:8080 [11:42:01]Content-Length: 678 [11:42:01]Content-Type: application/json [11:42:01] [11:42:01]POST finish read [11:42:01]Found Content-Length = 678 [11:42:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:01]execute_script... [11:42: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)449169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:01]POST & json_proto [11:42:01]process_json_proto [11:42:01]json parsed OK: [11:42:01]protocol is kg_v1.0 [11:42:01]action value=close_receipt [11:42:01]process_action close_receipt [11:42:01]cmd_close_receipt [11:42:01]MH_GetDate [11:42:01]Write to MH i2c: F0 00 00 E4 0D E0 [11:42:01]Write i2c OK [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: F0 [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: F0 09 00 [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: F0 09 00 E4 0D 00 89 D5 1C 67 68 46 19 67 F8 [11:42:01]GetLastDocTimeStamp 1729942769 [11:42:01]current date 1729942921 [11:42:01]FM_GetShiftState [11:42:01]SAM_PROTO_GetShiftState [11:42:01]wFMCommunicate request_size=4 [11:42:01]MH_SAM_APDU [11:42:01]CAPDU: 80 13 01 00 [11:42:01]Write to MH i2c: E2 08 00 E5 0D 80 13 01 00 00 00 00 00 6F [11:42:01]Write i2c OK [11:42:01]MH_I2C_Read... [11:42:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:01]Read from MH i2c: E2 [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: E2 0E 00 [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: E2 0E 00 E5 0D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 7E [11:42:01]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:42:01]wFMCommunicate OK [11:42:01]SAM_PROTO_GetShiftState done [11:42:01]FM_GetShiftState done [11:42:01]opened in 1729900879 [11:42:01]opened+sec_in_day 1729987279 [11:42:01]quantity*price = 80012 [11:42:01]sum+1 = 80013 [11:42:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 182 26.10.2024 11:42 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201420 ФПД: 15362522013656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T114201&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201420&fm=15362522013656&tin=02508201610067®Number=0000000000091777&sum=80000 [11:42:02]StoreToDocumentArchive [11:42:02]shift 543 fd 201420 [11:42:02]save to /storage/0543/doc_00201420 [11:42:02]save last doc name /storage/0543/doc_00201420 to /storage/kkm_last_doc_name [11:42:02]save OK [11:42:02]Clear old archive folders... [11:42:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:02]tlvbuf is 017A2010 [11:42:02]SAM_PROTO_ClearQueue [11:42:02]wFMCommunicate request_size=4 [11:42:02]MH_SAM_APDU [11:42:02]CAPDU: 80 09 00 00 [11:42:02]Write to MH i2c: E2 08 00 F2 0D 80 09 00 00 00 00 00 00 71 [11:42:02]Write i2c OK [11:42:02]MH_I2C_Read... [11:42:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:02]Read from MH i2c: E2 [11:42:02]MH_I2C_Read... [11:42:02]Read from MH i2c: E2 03 00 [11:42:02]MH_I2C_Read... [11:42:02]Read from MH i2c: E2 03 00 F2 0D 00 90 00 73 [11:42:02]RAPDU: 90 00 [11:42:02]wFMCommunicate OK [11:42:02]SAM_PROTO_ClearQueue done [11:42:02]KKMCreateOFDPacket [11:42:02]OFDProtocolAddRootSTLVToBuf [11:42:02]FM_MakeSignedData [11:42:02]FM_MakeSignedData [11:42:02]SAM_PROTO_SignData [11:42:02]wFMCommunicate request_size=4 [11:42:02]MH_SAM_APDU [11:42:02]CAPDU: 80 0D 01 02 [11:42:02]Write to MH i2c: E2 08 00 F3 0D 80 0D 01 02 00 00 00 00 79 [11:42:02]Write i2c OK [11:42:02]MH_I2C_Read... [11:42:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:02]Read from MH i2c: E2 [11:42:02]MH_I2C_Read... [11:42:02]Read from MH i2c: E2 03 00 [11:42:02]MH_I2C_Read... [11:42:02]Read from MH i2c: E2 03 00 F3 0D 00 90 00 74 [11:42:02]RAPDU: 90 00 [11:42:02]wFMCommunicate OK [11:42:02]wFMCommunicate request_size=255 [11:42:02]MH_SAM_APDU [11:42: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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 89 D5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CC 12 03 00 35 04 06 00 0D [11:42:02]Write to MH i2c: E2 02 01 F4 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 89 D5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CC 12 03 00 35 04 06 00 0D 00 00 9F [11:42:02]Write i2c OK [11:42:02]MH_I2C_Read... [11:42:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:02]Read from MH i2c: E2 [11:42:02]MH_I2C_Read... [11:42:02]Read from MH i2c: E2 03 00 [11:42:02]MH_I2C_Read... [11:42:02]Read from MH i2c: E2 03 00 F4 0D 00 90 00 75 [11:42:02]RAPDU: 90 00 [11:42:02]wFMCommunicate OK [11:42:02]wFMCommunicate request_size=10 [11:42:02]MH_SAM_APDU [11:42:02]CAPDU: 80 0D 02 02 05 F8 DD AA DF D8 [11:42:02]Write to MH i2c: E2 0D 00 F5 0D 80 0D 02 02 05 00 F8 DD AA DF D8 00 00 BC [11:42:02]Write i2c OK [11:42:02]MH_I2C_Read... [11:42:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:02]Read from MH i2c: E2 [11:42:02]MH_I2C_Read... [11:42:02]Read from MH i2c: E2 03 00 [11:42:02]MH_I2C_Read... [11:42:02]Read from MH i2c: E2 03 00 F5 0D 00 90 00 76 [11:42:02]RAPDU: 90 00 [11:42:02]wFMCommunicate OK [11:42:02]wFMCommunicate request_size=4 [11:42:02]MH_SAM_APDU [11:42:02]CAPDU: 80 0D 03 02 [11:42:02]Write to MH i2c: E2 08 00 F6 0D 80 0D 03 02 00 00 00 00 7E [11:42:02]Write i2c OK [11:42:02]MH_I2C_Read... [11:42:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:02]Read from MH i2c: E2 [11:42:02]MH_I2C_Read... [11:42:02]Read from MH i2c: E2 0B 00 [11:42:02]MH_I2C_Read... [11:42:02]Read from MH i2c: E2 0B 00 F6 0D 00 CF 99 9A 6F 9E 98 4E 6E 90 00 E2 [11:42:02]RAPDU: CF 99 9A 6F 9E 98 4E 6E 90 00 [11:42:02]wFMCommunicate OK [11:42:02]SAM_PROTO_SignData done [11:42:02]FM_MakeSignedData done [11:42:02]CreateOFDProtocolMessage [11:42:02]wFMCommunicate request_size=4 [11:42:02]MH_SAM_APDU [11:42:02]CAPDU: 80 11 00 00 [11:42:02]Write to MH i2c: E2 08 00 F7 0D 80 11 00 00 00 00 00 00 7E [11:42:02]Write i2c OK [11:42:02]MH_I2C_Read... [11:42:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:02]Read from MH i2c: E2 [11:42:02]MH_I2C_Read... [11:42:02]Read from MH i2c: E2 17 00 [11:42:02]MH_I2C_Read... [11:42:02]Read from MH i2c: E2 17 00 F7 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D3 [11:42:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:42:02]wFMCommunicate OK [11:42:02]CreateOFDProtocolMessage done [11:42:02]OFDSenderStorePacket 201420 [11:42:02]StoreOFDPacket docnum=201420 [11:42:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E6 BC 07 01 DA 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 89 D5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CC 12 03 00 35 04 06 00 0D F8 DD AA DF D8 CF 99 9A 6F 9E 98 4E 6E [11:42:02]CheckFolder [11:42:02]dirname=/storage/ofd_packets [11:42:02]CheckFolder done [11:42:02]ProducePacketName [11:42:02]name=ofd_packets/00201420 [11:42:02]NVStorageSaveData ofd_packets/00201420 [11:42:02]File name is /storage/ofd_packets/00201420 [11:42:02]Write 301 bytes [11:42:02]NVStorageSaveData done [11:42:02]OFDSenderStorePacket done [11:42:02]KKMCreateOFDPacket done [11:42:02]NVStorageSaveData kkm_last_timestamp [11:42:02]File name is /storage/kkm_last_timestamp [11:42:02]Write 4 bytes [11:42:02]NVStorageSaveData done [11:42:02]ExternCall_PrintAddStr [11:42:02]wPrintStart [11:42:02]Write to MH i2c: 01 00 00 F8 0D 05 [11:42:02]Write i2c OK [11:42:02]MH_I2C_Read... [11:42:02]Read from MH i2c: 01 [11:42:02]MH_I2C_Read... [11:42:02]Read from MH i2c: 01 07 00 [11:42:02]MH_I2C_Read... [11:42:02]Read from MH i2c: 01 07 00 F8 0D 00 00 00 00 00 FF 0F 1A [11:42:02]RasterBufferAndPrint [11:42:02]line Счет N : (1)449169 [11:42:02]line ИНН: 02508201610067 [11:42:02]line Контрольно-Кассовый Чек [11:42:02]line ПРОДАЖА [11:42:02]line ТРК (МРК, ГНК) : 41 [11:42:02]line Товар: 2710124130 [11:42:02]line Аи-92-К-2 [11:42:02]line 11.960 * 66.90 [11:42:02]line = 800.12 [11:42:02]line НДС 12% НСП 1% [11:42:02]line > о реализуемом товаре [11:42:02]line ОКРУГЛЕНИЕ: -0.12 [11:42:02]line ИТОГО: 800.00 [11:42:02]line Внесено: 800.00 [11:42:02]line СДАЧА: 0.00 [11:42:02]line НСП 1% : 7.08 [11:42:02]line НДС 12% : 84.97 [11:42:02]line Наличными: 800.00 [11:42:02]line Безнал.: 0.00 [11:42:02]line Место: АЗС № 171 "Партнер Нефть" [11:42:02]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:42:02]line СНО: Общий режим [11:42:02]line Чек 182 26.10.2024 11:42 [11:42:02]line Смена: 543 ФФД: 1.0 [11:42:02]line ЗНМ: 0300000109 [11:42:02]line РНМ: 0000000000091777 [11:42:02]line Версия ККМ: 001 [11:42:02]line ФМ: 0000000000871756 [11:42:02]line ФД: 201420 [11:42:02]line ФПД: 15362522013656 [11:42:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T114201&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201420&fm=15362522013656&tin=02508201610067®Number=0000000000091777&sum=80000 [11:42:03]OFD Sender: Processing packet 201420 [packets to send 112, broken 111] [11:42:03]ProducePacketName [11:42:03]name=ofd_packets/00201420 [11:42:03]OFD Sender: To server: pG, [11:42:03]CommunicateWithHost lk.salyk.kg:30040 [11:42:03]ConnectInit lk.salyk.kg [11:42:03]written 0, free lines is 4095 [11:42:03]Connected sock=10 [11:42:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E6 BC 07 01 DA 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 89 D5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CC 12 03 00 35 04 06 00 0D F8 DD AA DF D8 CF 99 9A 6F 9E 98 4E 6E [11:42:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 23 92 47 00 3A CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CC 12 03 00 F4 03 04 00 32 81 1C 67 B6 04 01 00 00 72 69 B8 BB 1A 15 28 A2 [11:42:03]CommunicateWithHost err = 0 [11:42:03]CheckOFDResponse [11:42:03]1017 (14) - 77093643461234 [11:42:03]1041 (16) - 0000000000871756 [11:42:03]1040 (4) - 201420 [11:42:03]1012 (4) - 26.10.2024 05:42 [11:42:03]1206 (1) - 0 [11:42:03]OFD Sender: Remove packet 201420 [11:42:03]ProducePacketName [11:42:03]name=ofd_packets/00201420 [11:42:03]NVStorageDeleteData [11:42:03]Write to MH i2c: 01 00 00 23 0E 31 [11:42:03]Write i2c OK [11:42:03]MH_I2C_Read... [11:42:03]Read from MH i2c: 01 [11:42:03]MH_I2C_Read... [11:42:03]Read from MH i2c: 01 07 00 [11:42:03]MH_I2C_Read... [11:42:03]Read from MH i2c: 01 07 00 23 0E 00 00 00 00 00 9D 0C E1 [11:42:03]RasterBufferAndPrint [11:42:03]line [11:42:03]line [11:42:03]line [11:42:03]line [11:42:03]line [11:42:03]written 0, free lines is 3235 [11:42:03]MH_Cut [11:42:03]Write to MH i2c: D1 01 00 2A 0E 01 0A [11:42:03]Write i2c OK [11:42:03]MH_I2C_Read... [11:42:03]Read from MH i2c: D1 [11:42:03]MH_I2C_Read... [11:42:03]Read from MH i2c: D1 01 00 [11:42:03]MH_I2C_Read... [11:42:03]Read from MH i2c: D1 01 00 2A 0E 00 09 [11:42:03]Write to MH i2c: 01 00 00 2B 0E 39 [11:42:03]Write i2c OK [11:42:03]MH_I2C_Read... [11:42:04]OFD Sender: No OFD packet to send [11:42:04]*** Cut start [11:42:04]*** Purtial cut [11:42:04]*** Stage 1: CUTSNS_PIN = 1 [11:42:04]Read from MH i2c: 01 [11:42:04]MH_I2C_Read... [11:42:04]*** Stop cut motor [11:42:04]*** Cut end [11:42:04]Read from MH i2c: 01 07 00 [11:42:04]MH_I2C_Read... [11:42:04]Read from MH i2c: 01 07 00 2B 0E 00 00 00 00 00 FF 0F 4E [11:42:04]process_action close_receipt done [11:42:04]requested_data is exist [11:42:04]produce_requested_data [11:42:04]requested_item fm.sn is exist - process it [11:42:04]wFMCommunicate request_size=4 [11:42:04]MH_SAM_APDU [11:42:04]CAPDU: 80 11 00 00 [11:42:04]Write to MH i2c: E2 08 00 2C 0E 80 11 00 00 00 00 00 00 B4 [11:42:04]Write i2c OK [11:42:04]MH_I2C_Read... [11:42:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:04]Read from MH i2c: E2 [11:42:04]MH_I2C_Read... [11:42:04]Read from MH i2c: E2 17 00 [11:42:04]MH_I2C_Read... [11:42:04]Read from MH i2c: E2 17 00 2C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 09 [11:42:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:42:04]wFMCommunicate OK [11:42:04]requested_item fd.num is exist - process it [11:42:04]SAM_PROTO_GetFieldsCounters [11:42:04]wFMCommunicate request_size=4 [11:42:04]MH_SAM_APDU [11:42:04]CAPDU: 80 13 00 00 [11:42:04]Write to MH i2c: E2 08 00 2D 0E 80 13 00 00 00 00 00 00 B7 [11:42:04]Write i2c OK [11:42:04]MH_I2C_Read... [11:42:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:04]Read from MH i2c: E2 [11:42:04]MH_I2C_Read... [11:42:04]Read from MH i2c: E2 62 00 [11:42:04]MH_I2C_Read... [11:42:04]Read from MH i2c: E2 62 00 2D 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CC 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [11:42:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CC 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:42:04]wFMCommunicate OK [11:42:04]SAM_PROTO_GetFieldsCounters done [11:42:04]requested_item shift.num is exist - process it [11:42:04]requested_item shift.opened is exist - process it [11:42:04]req_shift_opened [11:42:04]FM_GetShiftState [11:42:04]SAM_PROTO_GetShiftState [11:42:04]wFMCommunicate request_size=4 [11:42:04]MH_SAM_APDU [11:42:04]CAPDU: 80 13 01 00 [11:42:04]Write to MH i2c: E2 08 00 2E 0E 80 13 01 00 00 00 00 00 B9 [11:42:04]Write i2c OK [11:42:04]MH_I2C_Read... [11:42:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:05]Read from MH i2c: E2 [11:42:05]MH_I2C_Read... [11:42:05]Read from MH i2c: E2 0E 00 [11:42:05]MH_I2C_Read... [11:42:05]Read from MH i2c: E2 0E 00 2E 0E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C8 [11:42:05]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:42:05]wFMCommunicate OK [11:42:05]SAM_PROTO_GetShiftState done [11:42:05]FM_GetShiftState done [11:42:05]req_shift_opened done [11:42:05]requested_item shift.open_date is exist - process it [11:42:05]req_shift_open_date [11:42:05]req_shift_open_date done [11:42:05]produce_requested_data done [11:42:05]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201420,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:42:05]process_action_free close_receipt [11:42:05]json_value_free [11:42:05]json_value_free done [11:42:05]process_json_proto returns [11:42:05]Send response to host [11:42:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201420,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:42:05]free response buf [11:42:05]execute_script done [11:42:05]execute_script returns [11:42:05]free content buf [11:42:05]Sock 9.Close socket [11:42:05]Sock 9.Thread stoped [11:42:09]OFD Sender: No OFD packet to send [11:42:14]OFD Sender: No OFD packet to send [11:42:19]OFD Sender: No OFD packet to send [11:42:19]accept exits with 7 [11:42:19]New connection [11:42:19]New thread 3066641764 created [11:42:19]Thread 3066498404 joined [11:42:19]Waiting for new connection... [11:42:19] Sock 7.Parse request [11:42:19]Sock 7.Check first char [11:42:19]Sock 7.First char is OK [11:42:19]request: POST /json_proto HTTP/1.0 [11:42:19]Method: POST [11:42:19]URL: /json_proto [11:42:19]Method is POST - this is cgi request [11:42:19]url: /json_proto [11:42:19]query_string will be loaded in cgi processing [11:42:19]execute_cgi json_proto POST (null) [11:42:19]execute_cgi path=json_proto method=POST [11:42:19]POST find Content-Length [11:42:19]Host: 172.17.63.195:8080 [11:42:19]Content-Length: 678 [11:42:19]Content-Type: application/json [11:42:19] [11:42:19]POST finish read [11:42:19]Found Content-Length = 678 [11:42:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [11:42:19]execute_script... [11:42: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)449170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [11:42:19]POST & json_proto [11:42:19]process_json_proto [11:42:19]json parsed OK: [11:42:19]protocol is kg_v1.0 [11:42:19]action value=close_receipt [11:42:19]process_action close_receipt [11:42:19]cmd_close_receipt [11:42:19]MH_GetDate [11:42:19]Write to MH i2c: F0 00 00 2F 0E 2C [11:42:19]Write i2c OK [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: F0 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: F0 09 00 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: F0 09 00 2F 0E 00 9B D5 1C 67 68 46 19 67 56 [11:42:19]GetLastDocTimeStamp 1729942921 [11:42:19]current date 1729942939 [11:42:19]FM_GetShiftState [11:42:19]SAM_PROTO_GetShiftState [11:42:19]wFMCommunicate request_size=4 [11:42:19]MH_SAM_APDU [11:42:19]CAPDU: 80 13 01 00 [11:42:19]Write to MH i2c: E2 08 00 30 0E 80 13 01 00 00 00 00 00 BB [11:42:19]Write i2c OK [11:42:19]MH_I2C_Read... [11:42:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:19]Read from MH i2c: E2 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 0E 00 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 0E 00 30 0E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 CA [11:42:19]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:42:19]wFMCommunicate OK [11:42:19]SAM_PROTO_GetShiftState done [11:42:19]FM_GetShiftState done [11:42:19]opened in 1729900879 [11:42:19]opened+sec_in_day 1729987279 [11:42:19]quantity*price = 70044 [11:42:19]sum+1 = 70045 [11:42:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 183 26.10.2024 11:42 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201421 ФПД: 4959192276799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T114219&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201421&fm=4959192276799&tin=02508201610067®Number=0000000000091777&sum=70000 [11:42:20]StoreToDocumentArchive [11:42:20]shift 543 fd 201421 [11:42:20]save to /storage/0543/doc_00201421 [11:42:20]save last doc name /storage/0543/doc_00201421 to /storage/kkm_last_doc_name [11:42:20]save OK [11:42:20]Clear old archive folders... [11:42:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:20]tlvbuf is 017E13C0 [11:42:20]SAM_PROTO_ClearQueue [11:42:20]wFMCommunicate request_size=4 [11:42:20]MH_SAM_APDU [11:42:20]CAPDU: 80 09 00 00 [11:42:20]Write to MH i2c: E2 08 00 3D 0E 80 09 00 00 00 00 00 00 BD [11:42:20]Write i2c OK [11:42:20]MH_I2C_Read... [11:42:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:20]Read from MH i2c: E2 [11:42:20]MH_I2C_Read... [11:42:20]Read from MH i2c: E2 03 00 [11:42:20]MH_I2C_Read... [11:42:20]Read from MH i2c: E2 03 00 3D 0E 00 90 00 BF [11:42:20]RAPDU: 90 00 [11:42:20]wFMCommunicate OK [11:42:20]SAM_PROTO_ClearQueue done [11:42:20]KKMCreateOFDPacket [11:42:20]OFDProtocolAddRootSTLVToBuf [11:42:20]FM_MakeSignedData [11:42:20]FM_MakeSignedData [11:42:20]SAM_PROTO_SignData [11:42:20]wFMCommunicate request_size=4 [11:42:20]MH_SAM_APDU [11:42:20]CAPDU: 80 0D 01 02 [11:42:20]Write to MH i2c: E2 08 00 3E 0E 80 0D 01 02 00 00 00 00 C5 [11:42:20]Write i2c OK [11:42:20]MH_I2C_Read... [11:42:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:20]Read from MH i2c: E2 [11:42:20]MH_I2C_Read... [11:42:20]Read from MH i2c: E2 03 00 [11:42:20]MH_I2C_Read... [11:42:20]Read from MH i2c: E2 03 00 3E 0E 00 90 00 C0 [11:42:20]RAPDU: 90 00 [11:42:20]wFMCommunicate OK [11:42:20]wFMCommunicate request_size=255 [11:42:20]MH_SAM_APDU [11:42:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 B7 00 00 00 F4 03 04 00 9B D5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CD 12 03 00 35 04 06 00 04 [11:42:20]Write to MH i2c: E2 02 01 3F 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 B7 00 00 00 F4 03 04 00 9B D5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CD 12 03 00 35 04 06 00 04 00 00 1A [11:42:20]Write i2c OK [11:42:20]MH_I2C_Read... [11:42:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:20]Read from MH i2c: E2 [11:42:20]MH_I2C_Read... [11:42:20]Read from MH i2c: E2 03 00 [11:42:20]MH_I2C_Read... [11:42:20]Read from MH i2c: E2 03 00 3F 0E 00 90 00 C1 [11:42:20]RAPDU: 90 00 [11:42:20]wFMCommunicate OK [11:42:20]wFMCommunicate request_size=10 [11:42:20]MH_SAM_APDU [11:42:20]CAPDU: 80 0D 02 02 05 82 A6 E4 DF 3F [11:42:20]Write to MH i2c: E2 0D 00 40 0E 80 0D 02 02 05 00 82 A6 E4 DF 3F 00 00 FC [11:42:20]Write i2c OK [11:42:20]MH_I2C_Read... [11:42:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:20]Read from MH i2c: E2 [11:42:20]MH_I2C_Read... [11:42:20]Read from MH i2c: E2 03 00 [11:42:20]MH_I2C_Read... [11:42:20]Read from MH i2c: E2 03 00 40 0E 00 90 00 C2 [11:42:20]RAPDU: 90 00 [11:42:20]wFMCommunicate OK [11:42:20]wFMCommunicate request_size=4 [11:42:20]MH_SAM_APDU [11:42:20]CAPDU: 80 0D 03 02 [11:42:20]Write to MH i2c: E2 08 00 41 0E 80 0D 03 02 00 00 00 00 CA [11:42:20]Write i2c OK [11:42:20]MH_I2C_Read... [11:42:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:21]Read from MH i2c: E2 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: E2 0B 00 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: E2 0B 00 41 0E 00 72 37 F6 66 76 3F 7C 69 90 00 6A [11:42:21]RAPDU: 72 37 F6 66 76 3F 7C 69 90 00 [11:42:21]wFMCommunicate OK [11:42:21]SAM_PROTO_SignData done [11:42:21]FM_MakeSignedData done [11:42:21]CreateOFDProtocolMessage [11:42:21]wFMCommunicate request_size=4 [11:42:21]MH_SAM_APDU [11:42:21]CAPDU: 80 11 00 00 [11:42:21]Write to MH i2c: E2 08 00 42 0E 80 11 00 00 00 00 00 00 CA [11:42:21]Write i2c OK [11:42:21]MH_I2C_Read... [11:42:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:21]Read from MH i2c: E2 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: E2 17 00 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: E2 17 00 42 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1F [11:42:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:42:21]wFMCommunicate OK [11:42:21]CreateOFDProtocolMessage done [11:42:21]OFDSenderStorePacket 201421 [11:42:21]StoreOFDPacket docnum=201421 [11:42:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 97 9B 07 01 6C C3 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 B7 00 00 00 F4 03 04 00 9B D5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CD 12 03 00 35 04 06 00 04 82 A6 E4 DF 3F 72 37 F6 66 76 3F 7C 69 [11:42:21]CheckFolder [11:42:21]dirname=/storage/ofd_packets [11:42:21]CheckFolder done [11:42:21]ProducePacketName [11:42:21]name=ofd_packets/00201421 [11:42:21]NVStorageSaveData ofd_packets/00201421 [11:42:21]File name is /storage/ofd_packets/00201421 [11:42:21]Write 301 bytes [11:42:21]NVStorageSaveData done [11:42:21]OFDSenderStorePacket done [11:42:21]KKMCreateOFDPacket done [11:42:21]NVStorageSaveData kkm_last_timestamp [11:42:21]File name is /storage/kkm_last_timestamp [11:42:21]Write 4 bytes [11:42:21]OFD Sender: Processing packet 201421 [packets to send 112, broken 111] [11:42:21]ProducePacketName [11:42:21]name=ofd_packets/00201421 [11:42:21]OFD Sender: To server: pG, [11:42:21]CommunicateWithHost lk.salyk.kg:30040 [11:42:21]ConnectInit lk.salyk.kg [11:42:21]NVStorageSaveData done [11:42:21]ExternCall_PrintAddStr [11:42:21]wPrintStart [11:42:21]Write to MH i2c: 01 00 00 43 0E 51 [11:42:21]Write i2c OK [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: 01 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: 01 07 00 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: 01 07 00 43 0E 00 00 00 00 00 FF 0F 66 [11:42:21]RasterBufferAndPrint [11:42:21]line Счет N : (1)449170 [11:42:21]line ИНН: 02508201610067 [11:42:21]line Контрольно-Кассовый Чек [11:42:21]line ПРОДАЖА [11:42:21]line ТРК (МРК, ГНК) : 31 [11:42:21]line Товар: 2710124130 [11:42:21]line Аи-92-К-2 [11:42:21]line 10.470 * 66.90 [11:42:21]line = 700.44 [11:42:21]line НДС 12% НСП 1% [11:42:21]line > о реализуемом товаре [11:42:21]line ОКРУГЛЕНИЕ: -0.44 [11:42:21]line ИТОГО: 700.00 [11:42:21]line Внесено: 700.00 [11:42:21]line СДАЧА: 0.00 [11:42:21]line НСП 1% : 6.20 [11:42:21]line НДС 12% : 74.38 [11:42:21]line Наличными: 700.00 [11:42:21]line Безнал.: 0.00 [11:42:21]line Место: АЗС № 171 "Партнер Нефть" [11:42:21]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:42:21]line СНО: Общий режим [11:42:21]line Чек 183 26.10.2024 11:42 [11:42:21]line Смена: 543 ФФД: 1.0 [11:42:21]line ЗНМ: 0300000109 [11:42:21]line РНМ: 0000000000091777 [11:42:21]line Версия ККМ: 001 [11:42:21]line ФМ: 0000000000871756 [11:42:21]line ФД: 201421 [11:42:21]line ФПД: 4959192276799 [11:42:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T114219&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201421&fm=4959192276799&tin=02508201610067®Number=0000000000091777&sum=70000 [11:42:21]Connected sock=10 [11:42:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 97 9B 07 01 6C C3 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 B7 00 00 00 F4 03 04 00 9B D5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CD 12 03 00 35 04 06 00 04 82 A6 E4 DF 3F 72 37 F6 66 76 3F 7C 69 [11:42:21]written 0, free lines is 4095 [11:42:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 8B 99 47 00 27 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CD 12 03 00 F4 03 04 00 44 81 1C 67 B6 04 01 00 00 72 EC 49 62 4D 1D FC 8A [11:42:21]CommunicateWithHost err = 0 [11:42:21]CheckOFDResponse [11:42:21]1017 (14) - 77093643461234 [11:42:21]1041 (16) - 0000000000871756 [11:42:21]1040 (4) - 201421 [11:42:21]1012 (4) - 26.10.2024 05:42 [11:42:21]1206 (1) - 0 [11:42:21]OFD Sender: Remove packet 201421 [11:42:21]ProducePacketName [11:42:21]name=ofd_packets/00201421 [11:42:21]NVStorageDeleteData [11:42:21]Write to MH i2c: 01 00 00 6E 0E 7C [11:42:21]Write i2c OK [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: 01 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: 01 07 00 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: 01 07 00 6E 0E 00 00 00 00 00 96 0C 25 [11:42:21]RasterBufferAndPrint [11:42:21]line [11:42:21]line [11:42:21]line [11:42:21]line [11:42:21]line [11:42:21]written 0, free lines is 3228 [11:42:21]MH_Cut [11:42:21]Write to MH i2c: D1 01 00 75 0E 01 55 [11:42:21]Write i2c OK [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: D1 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: D1 01 00 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: D1 01 00 75 0E 00 54 [11:42:21]Write to MH i2c: 01 00 00 76 0E 84 [11:42:21]Write i2c OK [11:42:21]MH_I2C_Read... [11:42:22]OFD Sender: No OFD packet to send [11:42:22]*** Cut start [11:42:22]*** Purtial cut [11:42:22]*** Stage 1: CUTSNS_PIN = 1 [11:42:23]Read from MH i2c: 01 [11:42:23]MH_I2C_Read... [11:42:23]*** Stop cut motor [11:42:23]*** Cut end [11:42:23]Read from MH i2c: 01 07 00 [11:42:23]MH_I2C_Read... [11:42:23]Read from MH i2c: 01 07 00 76 0E 00 00 00 00 00 FF 0F 99 [11:42:23]process_action close_receipt done [11:42:23]requested_data is exist [11:42:23]produce_requested_data [11:42:23]requested_item fm.sn is exist - process it [11:42:23]wFMCommunicate request_size=4 [11:42:23]MH_SAM_APDU [11:42:23]CAPDU: 80 11 00 00 [11:42:23]Write to MH i2c: E2 08 00 77 0E 80 11 00 00 00 00 00 00 FF [11:42:23]Write i2c OK [11:42:23]MH_I2C_Read... [11:42:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:23]Read from MH i2c: E2 [11:42:23]MH_I2C_Read... [11:42:23]Read from MH i2c: E2 17 00 [11:42:23]MH_I2C_Read... [11:42:23]Read from MH i2c: E2 17 00 77 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 54 [11:42:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:42:23]wFMCommunicate OK [11:42:23]requested_item fd.num is exist - process it [11:42:23]SAM_PROTO_GetFieldsCounters [11:42:23]wFMCommunicate request_size=4 [11:42:23]MH_SAM_APDU [11:42:23]CAPDU: 80 13 00 00 [11:42:23]Write to MH i2c: E2 08 00 78 0E 80 13 00 00 00 00 00 00 02 [11:42:23]Write i2c OK [11:42:23]MH_I2C_Read... [11:42:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:23]Read from MH i2c: E2 [11:42:23]MH_I2C_Read... [11:42:23]Read from MH i2c: E2 62 00 [11:42:23]MH_I2C_Read... [11:42:23]Read from MH i2c: E2 62 00 78 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CD 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [11:42:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CD 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:42:23]wFMCommunicate OK [11:42:23]SAM_PROTO_GetFieldsCounters done [11:42:23]requested_item shift.num is exist - process it [11:42:23]requested_item shift.opened is exist - process it [11:42:23]req_shift_opened [11:42:23]FM_GetShiftState [11:42:23]SAM_PROTO_GetShiftState [11:42:23]wFMCommunicate request_size=4 [11:42:23]MH_SAM_APDU [11:42:23]CAPDU: 80 13 01 00 [11:42:23]Write to MH i2c: E2 08 00 79 0E 80 13 01 00 00 00 00 00 04 [11:42:23]Write i2c OK [11:42:23]MH_I2C_Read... [11:42:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:23]Read from MH i2c: E2 [11:42:23]MH_I2C_Read... [11:42:23]Read from MH i2c: E2 0E 00 [11:42:23]MH_I2C_Read... [11:42:23]Read from MH i2c: E2 0E 00 79 0E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 13 [11:42:23]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:42:23]wFMCommunicate OK [11:42:23]SAM_PROTO_GetShiftState done [11:42:23]FM_GetShiftState done [11:42:23]req_shift_opened done [11:42:23]requested_item shift.open_date is exist - process it [11:42:23]req_shift_open_date [11:42:23]req_shift_open_date done [11:42:23]produce_requested_data done [11:42:23]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201421,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:42:23]process_action_free close_receipt [11:42:23]json_value_free [11:42:23]json_value_free done [11:42:23]process_json_proto returns [11:42:23]Send response to host [11:42:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201421,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:42:23]free response buf [11:42:23]execute_script done [11:42:23]execute_script returns [11:42:23]free content buf [11:42:23]Sock 7.Close socket [11:42:23]Sock 7.Thread stoped [11:42:27]OFD Sender: No OFD packet to send [11:42:32]OFD Sender: No OFD packet to send [11:42:37]OFD Sender: No OFD packet to send [11:42:42]OFD Sender: No OFD packet to send [11:42:47]OFD Sender: No OFD packet to send [11:42:52]OFD Sender: No OFD packet to send [11:42:57]OFD Sender: No OFD packet to send [11:43:02]OFD Sender: No OFD packet to send [11:43:07]OFD Sender: No OFD packet to send [11:43:12]OFD Sender: No OFD packet to send [11:43:17]OFD Sender: No OFD packet to send [11:43:22]OFD Sender: No OFD packet to send [11:43:27]OFD Sender: No OFD packet to send [11:43:32]OFD Sender: No OFD packet to send [11:43:35]accept exits with 9 [11:43:35]New connection [11:43:35]New thread 3066498404 created [11:43:35]Thread 3066641764 joined [11:43:35]Waiting for new connection... [11:43:35] Sock 9.Parse request [11:43:35]Sock 9.Check first char [11:43:35]Sock 9.First char is OK [11:43:35]request: POST /json_proto HTTP/1.0 [11:43:35]Method: POST [11:43:35]URL: /json_proto [11:43:35]Method is POST - this is cgi request [11:43:35]url: /json_proto [11:43:35]query_string will be loaded in cgi processing [11:43:35]execute_cgi json_proto POST (null) [11:43:35]execute_cgi path=json_proto method=POST [11:43:35]POST find Content-Length [11:43:35]Host: 172.17.63.195:8080 [11:43:35]Content-Length: 671 [11:43:35]Content-Type: application/json [11:43:35] [11:43:35]POST finish read [11:43:35]Found Content-Length = 671 [11:43:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 11.700, "sum" : 800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:35]execute_script... [11:43: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)449172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 11.700, "sum" : 800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:35]POST & json_proto [11:43:35]process_json_proto [11:43:35]json parsed OK: [11:43:35]protocol is kg_v1.0 [11:43:35]action value=close_receipt [11:43:35]process_action close_receipt [11:43:35]cmd_close_receipt [11:43:35]MH_GetDate [11:43:35]Write to MH i2c: F0 00 00 7A 0E 77 [11:43:35]Write i2c OK [11:43:35]MH_I2C_Read... [11:43:35]Read from MH i2c: F0 [11:43:35]MH_I2C_Read... [11:43:35]Read from MH i2c: F0 09 00 [11:43:35]MH_I2C_Read... [11:43:35]Read from MH i2c: F0 09 00 7A 0E 00 E7 D5 1C 67 68 46 19 67 ED [11:43:35]GetLastDocTimeStamp 1729942939 [11:43:35]current date 1729943015 [11:43:35]FM_GetShiftState [11:43:35]SAM_PROTO_GetShiftState [11:43:35]wFMCommunicate request_size=4 [11:43:35]MH_SAM_APDU [11:43:35]CAPDU: 80 13 01 00 [11:43:35]Write to MH i2c: E2 08 00 7B 0E 80 13 01 00 00 00 00 00 06 [11:43:35]Write i2c OK [11:43:35]MH_I2C_Read... [11:43:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:35]Read from MH i2c: E2 [11:43:35]MH_I2C_Read... [11:43:35]Read from MH i2c: E2 0E 00 [11:43:35]MH_I2C_Read... [11:43:35]Read from MH i2c: E2 0E 00 7B 0E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 15 [11:43:35]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:43:35]wFMCommunicate OK [11:43:35]SAM_PROTO_GetShiftState done [11:43:35]FM_GetShiftState done [11:43:35]opened in 1729900879 [11:43:35]opened+sec_in_day 1729987279 [11:43:35]quantity*price = 80028 [11:43:35]sum+1 = 80029 [11:43:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 184 26.10.2024 11:43 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201422 ФПД: 53804089831322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T114335&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201422&fm=53804089831322&tin=02508201610067®Number=0000000000091777&sum=80000 [11:43:36]StoreToDocumentArchive [11:43:36]shift 543 fd 201422 [11:43:36]save to /storage/0543/doc_00201422 [11:43:36]save last doc name /storage/0543/doc_00201422 to /storage/kkm_last_doc_name [11:43:36]save OK [11:43:36]Clear old archive folders... [11:43:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:43:36]tlvbuf is 01802040 [11:43:36]SAM_PROTO_ClearQueue [11:43:36]wFMCommunicate request_size=4 [11:43:36]MH_SAM_APDU [11:43:36]CAPDU: 80 09 00 00 [11:43:36]Write to MH i2c: E2 08 00 88 0E 80 09 00 00 00 00 00 00 08 [11:43:36]Write i2c OK [11:43:36]MH_I2C_Read... [11:43:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:36]Read from MH i2c: E2 [11:43:36]MH_I2C_Read... [11:43:36]Read from MH i2c: E2 03 00 [11:43:36]MH_I2C_Read... [11:43:36]Read from MH i2c: E2 03 00 88 0E 00 90 00 0A [11:43:36]RAPDU: 90 00 [11:43:36]wFMCommunicate OK [11:43:36]SAM_PROTO_ClearQueue done [11:43:36]KKMCreateOFDPacket [11:43:36]OFDProtocolAddRootSTLVToBuf [11:43:36]FM_MakeSignedData [11:43:36]FM_MakeSignedData [11:43:36]SAM_PROTO_SignData [11:43:36]wFMCommunicate request_size=4 [11:43:36]MH_SAM_APDU [11:43:36]CAPDU: 80 0D 01 02 [11:43:36]Write to MH i2c: E2 08 00 89 0E 80 0D 01 02 00 00 00 00 10 [11:43:36]Write i2c OK [11:43:36]MH_I2C_Read... [11:43:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:36]Read from MH i2c: E2 [11:43:36]MH_I2C_Read... [11:43:36]Read from MH i2c: E2 03 00 [11:43:36]MH_I2C_Read... [11:43:36]Read from MH i2c: E2 03 00 89 0E 00 90 00 0B [11:43:36]RAPDU: 90 00 [11:43:36]wFMCommunicate OK [11:43:36]wFMCommunicate request_size=255 [11:43:36]MH_SAM_APDU [11:43:36]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 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 E7 D5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CE 12 03 00 35 04 06 00 [11:43:36]Write to MH i2c: E2 02 01 8A 0E 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 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 E7 D5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CE 12 03 00 35 04 06 00 00 00 CD [11:43:36]Write i2c OK [11:43:36]MH_I2C_Read... [11:43:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:36]Read from MH i2c: E2 [11:43:36]MH_I2C_Read... [11:43:36]Read from MH i2c: E2 03 00 [11:43:36]MH_I2C_Read... [11:43:36]Read from MH i2c: E2 03 00 8A 0E 00 90 00 0C [11:43:36]RAPDU: 90 00 [11:43:36]wFMCommunicate OK [11:43:36]wFMCommunicate request_size=11 [11:43:36]MH_SAM_APDU [11:43:36]CAPDU: 80 0D 02 02 06 30 EF 3D A9 6F 9A [11:43:36]Write to MH i2c: E2 0E 00 8B 0E 80 0D 02 02 06 00 30 EF 3D A9 6F 9A 00 00 2D [11:43:36]Write i2c OK [11:43:36]MH_I2C_Read... [11:43:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:36]Read from MH i2c: E2 [11:43:36]MH_I2C_Read... [11:43:36]Read from MH i2c: E2 03 00 [11:43:36]MH_I2C_Read... [11:43:36]Read from MH i2c: E2 03 00 8B 0E 00 90 00 0D [11:43:36]RAPDU: 90 00 [11:43:36]wFMCommunicate OK [11:43:36]wFMCommunicate request_size=4 [11:43:36]MH_SAM_APDU [11:43:36]CAPDU: 80 0D 03 02 [11:43:36]Write to MH i2c: E2 08 00 8C 0E 80 0D 03 02 00 00 00 00 15 [11:43:36]Write i2c OK [11:43:36]MH_I2C_Read... [11:43:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:36]Read from MH i2c: E2 [11:43:36]MH_I2C_Read... [11:43:36]Read from MH i2c: E2 0B 00 [11:43:36]MH_I2C_Read... [11:43:36]Read from MH i2c: E2 0B 00 8C 0E 00 8B 4B 8C 6A 9F 06 94 C6 90 00 E1 [11:43:36]RAPDU: 8B 4B 8C 6A 9F 06 94 C6 90 00 [11:43:36]wFMCommunicate OK [11:43:36]SAM_PROTO_SignData done [11:43:36]FM_MakeSignedData done [11:43:36]CreateOFDProtocolMessage [11:43:36]wFMCommunicate request_size=4 [11:43:36]MH_SAM_APDU [11:43:36]CAPDU: 80 11 00 00 [11:43:36]Write to MH i2c: E2 08 00 8D 0E 80 11 00 00 00 00 00 00 15 [11:43:36]Write i2c OK [11:43:36]MH_I2C_Read... [11:43:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:36]Read from MH i2c: E2 [11:43:36]MH_I2C_Read... [11:43:36]Read from MH i2c: E2 17 00 [11:43:36]MH_I2C_Read... [11:43:36]Read from MH i2c: E2 17 00 8D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6A [11:43:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:43:36]wFMCommunicate OK [11:43:36]CreateOFDProtocolMessage done [11:43:36]OFDSenderStorePacket 201422 [11:43:36]StoreOFDPacket docnum=201422 [11:43:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 14 F7 08 01 2E 83 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 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 E7 D5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CE 12 03 00 35 04 06 00 30 EF 3D A9 6F 9A 8B 4B 8C 6A 9F 06 94 C6 [11:43:36]CheckFolder [11:43:36]dirname=/storage/ofd_packets [11:43:36]CheckFolder done [11:43:36]ProducePacketName [11:43:36]name=ofd_packets/00201422 [11:43:36]NVStorageSaveData ofd_packets/00201422 [11:43:36]File name is /storage/ofd_packets/00201422 [11:43:36]Write 302 bytes [11:43:36]NVStorageSaveData done [11:43:36]OFDSenderStorePacket done [11:43:36]KKMCreateOFDPacket done [11:43:36]NVStorageSaveData kkm_last_timestamp [11:43:36]File name is /storage/kkm_last_timestamp [11:43:36]Write 4 bytes [11:43:36]NVStorageSaveData done [11:43:36]ExternCall_PrintAddStr [11:43:36]wPrintStart [11:43:36]Write to MH i2c: 01 00 00 8E 0E 9C [11:43:36]Write i2c OK [11:43:36]MH_I2C_Read... [11:43:36]Read from MH i2c: 01 [11:43:36]MH_I2C_Read... [11:43:36]Read from MH i2c: 01 07 00 [11:43:36]MH_I2C_Read... [11:43:36]Read from MH i2c: 01 07 00 8E 0E 00 00 00 00 00 FF 0F B1 [11:43:36]RasterBufferAndPrint [11:43:36]line Счет N : (1)449172 [11:43:36]line ИНН: 02508201610067 [11:43:36]line Контрольно-Кассовый Чек [11:43:36]line ПРОДАЖА [11:43:36]line ТРК (МРК, ГНК) : 53 [11:43:36]line Товар: 2710124130 [11:43:36]line SUPER 92-К-5 [11:43:36]line 11.700 * 68.40 [11:43:36]line = 800.28 [11:43:36]line НДС 12% НСП 1% [11:43:36]line > о реализуемом товаре [11:43:36]line ОКРУГЛЕНИЕ: -0.28 [11:43:36]line ИТОГО: 800.00 [11:43:36]line Внесено: 800.00 [11:43:36]line СДАЧА: 0.00 [11:43:36]line НСП 1% : 7.08 [11:43:36]line НДС 12% : 84.98 [11:43:36]line Наличными: 800.00 [11:43:36]line Безнал.: 0.00 [11:43:36]line Место: АЗС № 171 "Партнер Нефть" [11:43:36]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:43:36]line СНО: Общий режим [11:43:36]line Чек 184 26.10.2024 11:43 [11:43:36]line Смена: 543 ФФД: 1.0 [11:43:36]line ЗНМ: 0300000109 [11:43:36]line РНМ: 0000000000091777 [11:43:36]line Версия ККМ: 001 [11:43:36]line ФМ: 0000000000871756 [11:43:36]line ФД: 201422 [11:43:36]line ФПД: 53804089831322 [11:43:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T114335&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201422&fm=53804089831322&tin=02508201610067®Number=0000000000091777&sum=80000 [11:43:37]OFD Sender: Processing packet 201422 [packets to send 112, broken 111] [11:43:37]ProducePacketName [11:43:37]name=ofd_packets/00201422 [11:43:37]OFD Sender: To server: pG, [11:43:37]CommunicateWithHost lk.salyk.kg:30040 [11:43:37]ConnectInit lk.salyk.kg [11:43:37]written 0, free lines is 4095 [11:43:37]Connected sock=10 [11:43:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 14 F7 08 01 2E 83 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 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 E7 D5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CE 12 03 00 35 04 06 00 30 EF 3D A9 6F 9A 8B 4B 8C 6A 9F 06 94 C6 [11:43:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 74 F9 47 00 8A DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CE 12 03 00 F4 03 04 00 90 81 1C 67 B6 04 01 00 00 7E DE 75 02 AB 01 D4 20 [11:43:37]CommunicateWithHost err = 0 [11:43:37]CheckOFDResponse [11:43:37]1017 (14) - 77093643461234 [11:43:37]1041 (16) - 0000000000871756 [11:43:37]1040 (4) - 201422 [11:43:37]1012 (4) - 26.10.2024 05:43 [11:43:37]1206 (1) - 0 [11:43:37]OFD Sender: Remove packet 201422 [11:43:37]ProducePacketName [11:43:37]name=ofd_packets/00201422 [11:43:37]NVStorageDeleteData [11:43:37]Write to MH i2c: 01 00 00 B9 0E C7 [11:43:37]Write i2c OK [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: 01 [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: 01 07 00 [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: 01 07 00 B9 0E 00 00 00 00 00 AA 0C 84 [11:43:37]RasterBufferAndPrint [11:43:37]line [11:43:37]line [11:43:37]line [11:43:37]line [11:43:37]line [11:43:37]written 0, free lines is 3247 [11:43:37]MH_Cut [11:43:37]Write to MH i2c: D1 01 00 C0 0E 01 A0 [11:43:37]Write i2c OK [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: D1 [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: D1 01 00 [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: D1 01 00 C0 0E 00 9F [11:43:37]Write to MH i2c: 01 00 00 C1 0E CF [11:43:37]Write i2c OK [11:43:37]MH_I2C_Read... [11:43:38]OFD Sender: No OFD packet to send [11:43:38]*** Cut start [11:43:38]*** Purtial cut [11:43:38]*** Stage 1: CUTSNS_PIN = 1 [11:43:38]Read from MH i2c: 01 [11:43:38]MH_I2C_Read... [11:43:38]*** Stop cut motor [11:43:38]*** Cut end [11:43:38]Read from MH i2c: 01 07 00 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: 01 07 00 C1 0E 00 00 00 00 00 FF 0F E4 [11:43:38]process_action close_receipt done [11:43:38]requested_data is exist [11:43:38]produce_requested_data [11:43:38]requested_item fm.sn is exist - process it [11:43:38]wFMCommunicate request_size=4 [11:43:38]MH_SAM_APDU [11:43:38]CAPDU: 80 11 00 00 [11:43:38]Write to MH i2c: E2 08 00 C2 0E 80 11 00 00 00 00 00 00 4A [11:43:38]Write i2c OK [11:43:38]MH_I2C_Read... [11:43:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:38]Read from MH i2c: E2 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: E2 17 00 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: E2 17 00 C2 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9F [11:43:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:43:38]wFMCommunicate OK [11:43:38]requested_item fd.num is exist - process it [11:43:38]SAM_PROTO_GetFieldsCounters [11:43:38]wFMCommunicate request_size=4 [11:43:38]MH_SAM_APDU [11:43:38]CAPDU: 80 13 00 00 [11:43:38]Write to MH i2c: E2 08 00 C3 0E 80 13 00 00 00 00 00 00 4D [11:43:38]Write i2c OK [11:43:38]MH_I2C_Read... [11:43:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:39]Read from MH i2c: E2 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: E2 62 00 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: E2 62 00 C3 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CE 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [11:43:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CE 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:39]wFMCommunicate OK [11:43:39]SAM_PROTO_GetFieldsCounters done [11:43:39]requested_item shift.num is exist - process it [11:43:39]requested_item shift.opened is exist - process it [11:43:39]req_shift_opened [11:43:39]FM_GetShiftState [11:43:39]SAM_PROTO_GetShiftState [11:43:39]wFMCommunicate request_size=4 [11:43:39]MH_SAM_APDU [11:43:39]CAPDU: 80 13 01 00 [11:43:39]Write to MH i2c: E2 08 00 C4 0E 80 13 01 00 00 00 00 00 4F [11:43:39]Write i2c OK [11:43:39]MH_I2C_Read... [11:43:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:39]Read from MH i2c: E2 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: E2 0E 00 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: E2 0E 00 C4 0E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 5E [11:43:39]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:43:39]wFMCommunicate OK [11:43:39]SAM_PROTO_GetShiftState done [11:43:39]FM_GetShiftState done [11:43:39]req_shift_opened done [11:43:39]requested_item shift.open_date is exist - process it [11:43:39]req_shift_open_date [11:43:39]req_shift_open_date done [11:43:39]produce_requested_data done [11:43:39]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201422,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:43:39]process_action_free close_receipt [11:43:39]json_value_free [11:43:39]json_value_free done [11:43:39]process_json_proto returns [11:43:39]Send response to host [00:00:11] *** EcrCore started. Build 196 *** [00:00:11]/dev/ttyS4 opened [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]Malloc ok [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 0B [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:11]*** [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:11]*** Waiting for read because exit forced [00:00:11]*** 10 ms more... [00:00:11]*** MH1903 init start (LINUX_LIGHT) [00:00:11]*** Serial: 3139303353513838 54000000005725CF (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 233410+1729709672=1729943082 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0xff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 03 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 0C [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30515 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 2B D6 1C 67 68 46 19 67 B1 [11:44:43]Current date/time: 26.10.2024 11:44 [11:44:43]FM_Init [11:44:43]wFMConnect [11:44:43]MH_SAM_On [11:44:43]Write to MH i2c: E0 00 00 08 00 E7 [11:44:43]Write i2c OK [11:44:43]MH_I2C_Read... [11:44:43]*** iso7816_init finished! [11:44:43]*** atr: [11:44:43]*** 0F 3B D5 18 FF 81 91 FE [11:44:43]*** 1F C3 80 73 C8 21 10 0A [11:44:43]*** 00 00 00 00 00 00 00 00 [11:44:43]*** 00 00 00 00 00 00 00 00 [11:44:43]*** 00 00 00 00 00 00 00 00 [11:44:43]*** 00 00 00 00 00 00 00 00 [11:44:43]*** 00 00 00 00 00 00 00 00 [11:44:43]*** 00 00 00 00 00 00 00 00 [11:44:43]Read from MH i2c: E0 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E0 10 00 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [11:44:43]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [11:44:43]wFMCommunicate request_size=10 [11:44:43]MH_SAM_APDU [11:44:43]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [11:44:43]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [11:44:43]Write i2c OK [11:44:43]MH_I2C_Read... [11:44:43]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [11:44:43]Read from MH i2c: E2 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 03 00 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [11:44:43]RAPDU: 90 00 [11:44:43]wFMCommunicate OK [11:44:43]wFMCommunicate request_size=4 [11:44:43]MH_SAM_APDU [11:44:43]CAPDU: 80 11 00 00 [11:44:43]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [11:44:43]Write i2c OK [11:44:43]MH_I2C_Read... [11:44:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:43]Read from MH i2c: E2 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 17 00 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D9 [11:44:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:44:43]wFMCommunicate OK [11:44:43]Detected FM SN is 0000000000871756 [11:44:43]Stored FM SN is 0000000000871756 [11:44:43]wFMCommunicate request_size=9 [11:44:43]MH_SAM_APDU [11:44:43]CAPDU: 80 16 00 00 04 7E FB 00 00 [11:44:43]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 7E FB 00 00 00 00 0B [11:44:43]Write i2c OK [11:44:43]MH_I2C_Read... [11:44:43]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [11:44:43]Read from MH i2c: E2 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 03 00 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [11:44:43]RAPDU: 90 00 [11:44:43]wFMCommunicate OK [11:44:43]FM PIN OK [11:44:43]wFMCommunicate request_size=8 [11:44:43]MH_SAM_APDU [11:44:43]CAPDU: 80 14 04 00 03 02 00 01 [11:44:43]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [11:44:43]Write i2c OK [11:44:43]MH_I2C_Read... [11:44:43]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [11:44:43]Read from MH i2c: E2 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 03 00 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [11:44:43]RAPDU: 90 00 [11:44:43]wFMCommunicate OK [11:44:43]wFMCommunicate request_size=13 [11:44:43]MH_SAM_APDU [11:44:43]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [11:44:43]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [11:44:43]Write i2c OK [11:44:43]MH_I2C_Read... [11:44:43]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [11:44:43]Read from MH i2c: E2 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 03 00 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [11:44:43]RAPDU: 90 00 [11:44:43]wFMCommunicate OK [11:44:43]wFMCommunicate request_size=4 [11:44:43]MH_SAM_APDU [11:44:43]CAPDU: 80 11 00 00 [11:44:43]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [11:44:43]Write i2c OK [11:44:43]MH_I2C_Read... [11:44:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:43]Read from MH i2c: E2 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 17 00 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DD [11:44:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:44:43]wFMCommunicate OK [11:44:43]DocumentArchiveInit [11:44:43]Start Httpd... [11:44:43]Httpd thread 3067120996 created [11:44:43]Write to MH i2c: 01 00 00 0F 00 0F [11:44:43]Write i2c OK [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: 01 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: 01 07 00 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [11:44:43]MH Int Process started [11:44:43]Allocated Socket 7 [11:44:43]Bind OK [11:44:43]Listen OK [11:44:43]httpd running on port 8080 [11:44:43]Waiting for new connection... [11:44:43]OFD Sender: Processing packet 201423 [packets to send 112, broken 111] [11:44:43]ProducePacketName [11:44:43]name=ofd_packets/00201423 [11:44:43]OFD Sender: To server: pG, [11:44:43]CommunicateWithHost lk.salyk.kg:30040 [11:44:43]ConnectInit lk.salyk.kg [11:44:48]ConnectInit Can't take IP for lk.salyk.kg [11:44:48]CommunicateWithHost connect error [11:44:48]CommunicateWithHost err = -1 [11:44:48]OFD Sender: Server communicate error [11:44:50]accept exits with 8 [11:44:50]New connection [11:44:50]New thread 3066834276 created [11:44:50]Waiting for new connection... [11:44:50] Sock 8.Parse request [11:44:50]Sock 8.Check first char [11:44:50]Sock 8.First char is OK [11:44:50]request: POST /json_proto HTTP/1.0 [11:44:50]Method: POST [11:44:50]URL: /json_proto [11:44:50]Method is POST - this is cgi request [11:44:50]url: /json_proto [11:44:50]query_string will be loaded in cgi processing [11:44:50]execute_cgi json_proto POST (null) [11:44:50]execute_cgi path=json_proto method=POST [11:44:50]POST find Content-Length [11:44:50]Host: 172.17.63.195:8080 [11:44:50]Content-Length: 215 [11:44:50]Content-Type: application/json [11:44:50] [11:44:50]POST finish read [11:44:50]Found Content-Length = 215 [11:44:50]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" ] } } [11:44:50]execute_script... [11:44:50]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" ] } } [11:44:50]POST & json_proto [11:44:50]process_json_proto [11:44:50]json parsed OK: [11:44:50]protocol is kg_v1.0 [11:44:50]action value=get_value [11:44:50]process_action get_value [11:44:50]cmd_get_value [11:44:50]process_action get_value done [11:44:50]requested_data is exist [11:44:50]produce_requested_data [11:44:50]requested_item kkm.sn is exist - process it [11:44:50]requested_item kkm.ver is exist - process it [11:44:50]requested_item fm.sn is exist - process it [11:44:50]wFMCommunicate request_size=4 [11:44:50]MH_SAM_APDU [11:44:50]CAPDU: 80 11 00 00 [11:44:50]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [11:44:50]Write i2c OK [11:44:50]MH_I2C_Read... [11:44:50]Read from MH i2c: E2 [11:44:50]MH_I2C_Read... [11:44:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:50]Read from MH i2c: E2 17 00 [11:44:50]MH_I2C_Read... [11:44:50]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DF [11:44:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:44:50]wFMCommunicate OK [11:44:50]requested_item fd.num is exist - process it [11:44:50]SAM_PROTO_GetFieldsCounters [11:44:50]wFMCommunicate request_size=4 [11:44:50]MH_SAM_APDU [11:44:50]CAPDU: 80 13 00 00 [11:44:50]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [11:44:50]Write i2c OK [11:44:50]MH_I2C_Read... [11:44:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:51]Read from MH i2c: E2 [11:44:51]MH_I2C_Read... [11:44:51]Read from MH i2c: E2 62 00 [11:44:51]MH_I2C_Read... [11:44:51]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CF 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [11:44:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CF 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:44:51]wFMCommunicate OK [11:44:51]SAM_PROTO_GetFieldsCounters done [11:44:51]requested_item shift.num is exist - process it [11:44:51]requested_item shift.opened is exist - process it [11:44:51]req_shift_opened [11:44:51]FM_GetShiftState [11:44:51]SAM_PROTO_GetShiftState [11:44:51]wFMCommunicate request_size=4 [11:44:51]MH_SAM_APDU [11:44:51]CAPDU: 80 13 01 00 [11:44:51]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [11:44:51]Write i2c OK [11:44:51]MH_I2C_Read... [11:44:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:51]Read from MH i2c: E2 [11:44:51]MH_I2C_Read... [11:44:51]Read from MH i2c: E2 0E 00 [11:44:51]MH_I2C_Read... [11:44:51]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 9E [11:44:51]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:44:51]wFMCommunicate OK [11:44:51]SAM_PROTO_GetShiftState done [11:44:51]FM_GetShiftState done [11:44:51]req_shift_opened done [11:44:51]requested_item shift.open_date is exist - process it [11:44:51]req_shift_open_date [11:44:51]req_shift_open_date done [11:44:51]produce_requested_data done [11:44:51]produce_requested_data return {"kkm.sn":"0300000109","kkm.ver":"001","fm.sn":"0000000000871756","fd.num":201423,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:44:51]process_action_free get_value [11:44:51]json_value_free [11:44:51]json_value_free done [11:44:51]process_json_proto returns [11:44:51]Send response to host [11:44:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000109","kkm.ver":"001","fm.sn":"0000000000871756","fd.num":201423,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:44:51]free response buf [11:44:51]execute_script done [11:44:51]execute_script returns [11:44:51]free content buf [11:44:51]Sock 8.Close socket [11:44:51]Sock 8.Thread stoped [11:44:51]accept exits with 9 [11:44:51]New connection [11:44:51]New thread 3066690916 created [11:44:51]Thread 3066834276 joined [11:44:51]Waiting for new connection... [11:44:51] Sock 9.Parse request [11:44:51]Sock 9.Check first char [11:44:51]Sock 9.First char is OK [11:44:51]request: POST /json_proto HTTP/1.0 [11:44:51]Method: POST [11:44:51]URL: /json_proto [11:44:51]Method is POST - this is cgi request [11:44:51]url: /json_proto [11:44:51]query_string will be loaded in cgi processing [11:44:51]execute_cgi json_proto POST (null) [11:44:51]execute_cgi path=json_proto method=POST [11:44:51]POST find Content-Length [11:44:51]Host: 172.17.63.195:8080 [11:44:51]Content-Length: 331 [11:44:51]Content-Type: application/json [11:44:51] [11:44:51]POST finish read [11:44:51]Found Content-Length = 331 [11:44:51]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" ] } } [11:44:51]execute_script... [11:44:51]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" ] } } [11:44:51]POST & json_proto [11:44:51]process_json_proto [11:44:51]json parsed OK: [11:44:51]protocol is kg_v1.0 [11:44:51]action value=get_value [11:44:51]process_action get_value [11:44:51]cmd_get_value [11:44:51]process_action get_value done [11:44:51]requested_data is exist [11:44:51]produce_requested_data [11:44:51]requested_item fm.sale.total is exist - process it [11:44:51]SAM_PROTO_GetFMData [11:44:51]wFMCommunicate request_size=4 [11:44:51]MH_SAM_APDU [11:44:51]CAPDU: 80 13 03 00 [11:44:51]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [11:44:51]Write i2c OK [11:44:51]MH_I2C_Read... [11:44:51]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:44:51]Read from MH i2c: E2 [11:44:51]MH_I2C_Read... [11:44:51]Read from MH i2c: E2 FD 00 [11:44:51]MH_I2C_Read... [11:44:51]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 91 0E 03 00 69 04 A3 00 6F 04 04 00 6C 0E 03 00 B1 04 05 00 55 77 77 AB 03 70 04 05 00 B4 A2 9A 4C 03 72 04 04 00 A1 D4 DC 5E 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 3E 6F CD 63 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 DD F1 50 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 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 33 [11:44:51]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 91 0E 03 00 69 04 A3 00 6F 04 04 00 6C 0E 03 00 B1 04 05 00 55 77 77 AB 03 70 04 05 00 B4 A2 9A 4C 03 72 04 04 00 A1 D4 DC 5E 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 3E 6F CD 63 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 DD F1 50 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 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 [11:44:51]wFMCommunicate OK [11:44:51]wFMCommunicate request_size=4 [11:44:51]MH_SAM_APDU [11:44:51]CAPDU: 80 17 00 00 [11:44:51]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [11:44:51]Write i2c OK [11:44:51]MH_I2C_Read... [11:44:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:44:52]Read from MH i2c: E2 [11:44:52]MH_I2C_Read... [11:44:52]Read from MH i2c: E2 FD 00 [11:44:52]MH_I2C_Read... [11:44:52]Read from MH i2c: E2 FD 00 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 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 9B [11:44:52]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [11:44:52]wFMCommunicate OK [11:44:52]wFMCommunicate request_size=4 [11:44:52]MH_SAM_APDU [11:44:52]CAPDU: 80 17 00 00 [11:44:52]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [11:44:52]Write i2c OK [11:44:52]MH_I2C_Read... [11:44:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:44:52]Read from MH i2c: E2 [11:44:52]MH_I2C_Read... [11:44:52]Read from MH i2c: E2 FD 00 [11:44:52]MH_I2C_Read... [11:44:52]Read from MH i2c: E2 FD 00 15 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 03 90 00 AA [11:44:52]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [11:44:52]wFMCommunicate OK [11:44:52]wFMCommunicate request_size=4 [11:44:52]MH_SAM_APDU [11:44:52]CAPDU: 80 17 00 00 [11:44:52]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [11:44:52]Write i2c OK [11:44:52]MH_I2C_Read... [11:44:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:44:52]Read from MH i2c: E2 [11:44:52]MH_I2C_Read... [11:44:52]Read from MH i2c: E2 FD 00 [11:44:52]MH_I2C_Read... [11:44:52]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0E [11:44:52]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [11:44:52]wFMCommunicate OK [11:44:52]wFMCommunicate request_size=4 [11:44:52]MH_SAM_APDU [11:44:52]CAPDU: 80 17 00 00 [11:44:52]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [11:44:52]Write i2c OK [11:44:52]MH_I2C_Read... [11:44:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [11:44:52]Read from MH i2c: E2 [11:44:52]MH_I2C_Read... [11:44:52]Read from MH i2c: E2 E1 00 [11:44:52]MH_I2C_Read... [11:44:52]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [11:44:52]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:44:52]wFMCommunicate OK [11:44:52]SAM_PROTO_GetFMData done [11:44:52]requested_item fm.sale_refund.total is exist - process it [11:44:52]requested_item fm.buy.total is exist - process it [11:44:52]requested_item shift.sale.total is exist - process it [11:44:52]SAM_PROTO_GetShiftData [11:44:52]wFMCommunicate request_size=4 [11:44:52]MH_SAM_APDU [11:44:52]CAPDU: 80 13 02 00 [11:44:52]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [11:44:52]Write i2c OK [11:44:52]MH_I2C_Read... [11:44:53]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:44:53]Read from MH i2c: E2 [11:44:53]MH_I2C_Read... [11:44:53]Read from MH i2c: E2 FD 00 [11:44:53]MH_I2C_Read... [11:44:53]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 B9 00 00 00 69 04 9C 00 6F 04 04 00 B9 00 00 00 B1 04 03 00 AE 6C CE 70 04 03 00 18 72 AC 72 04 03 00 96 FA 21 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 A2 ED 15 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 CC D3 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 EB [11:44:53]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 B9 00 00 00 69 04 9C 00 6F 04 04 00 B9 00 00 00 B1 04 03 00 AE 6C CE 70 04 03 00 18 72 AC 72 04 03 00 96 FA 21 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 A2 ED 15 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 CC D3 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [11:44:53]wFMCommunicate OK [11:44:53]wFMCommunicate request_size=4 [11:44:53]MH_SAM_APDU [11:44:53]CAPDU: 80 17 00 00 [11:44:53]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [11:44:53]Write i2c OK [11:44:53]MH_I2C_Read... [11:44:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:44:53]OFD Sender: Processing packet 201423 [packets to send 112, broken 111] [11:44:53]ProducePacketName [11:44:53]name=ofd_packets/00201423 [11:44:53]OFD Sender: To server: pG, [11:44:53]CommunicateWithHost lk.salyk.kg:30040 [11:44:53]ConnectInit lk.salyk.kg [11:44:53]Read from MH i2c: E2 [11:44:53]MH_I2C_Read... [11:44:53]Read from MH i2c: E2 FD 00 [11:44:53]MH_I2C_Read... [11:44:53]Read from MH i2c: E2 FD 00 19 00 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 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 90 00 B2 [11:44:53]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 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 90 00 [11:44:53]wFMCommunicate OK [11:44:53]wFMCommunicate request_size=4 [11:44:53]MH_SAM_APDU [11:44:53]CAPDU: 80 17 00 00 [11:44:53]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [11:44:53]Write i2c OK [11:44:53]MH_I2C_Read... [11:44:53]Connected sock=10 [11:44:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1E 1E 07 01 6A CB 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 32 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 B9 00 00 00 F4 03 04 00 F3 D5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CF 12 03 00 35 04 06 00 C4 F6 D0 34 EE E8 7B AF A6 CD D8 72 A2 73 [11:44:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:44:53]Read from MH i2c: E2 [11:44:53]MH_I2C_Read... [11:44:53]Read from MH i2c: E2 FD 00 [11:44:53]MH_I2C_Read... [11:44:53]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4E [11:44:53]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:44:53]wFMCommunicate OK [11:44:53]wFMCommunicate request_size=4 [11:44:53]MH_SAM_APDU [11:44:53]CAPDU: 80 17 00 00 [11:44:53]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [11:44:53]Write i2c OK [11:44:53]MH_I2C_Read... [11:44:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 20 86 47 00 D6 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CF 12 03 00 F4 03 04 00 DD 81 1C 67 B6 04 01 00 00 39 DA 4E 37 D4 56 06 49 [11:44:54]CommunicateWithHost err = 0 [11:44:54]CheckOFDResponse [11:44:54]1017 (14) - 77093643461234 [11:44:54]1041 (16) - 0000000000871756 [11:44:54]1040 (4) - 201423 [11:44:54]1012 (4) - 26.10.2024 05:45 [11:44:54]1206 (1) - 0 [11:44:54]OFD Sender: Remove packet 201423 [11:44:54]ProducePacketName [11:44:54]name=ofd_packets/00201423 [11:44:54]NVStorageDeleteData [11:44:54]Read from MH i2c: E2 [11:44:54]MH_I2C_Read... [11:44:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:44:54]Read from MH i2c: E2 FD 00 [11:44:54]MH_I2C_Read... [11:44:54]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 19 [11:44:54]RAPDU: 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 90 00 [11:44:54]wFMCommunicate OK [11:44:54]wFMCommunicate request_size=4 [11:44:54]MH_SAM_APDU [11:44:54]CAPDU: 80 17 00 00 [11:44:54]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [11:44:54]Write i2c OK [11:44:54]MH_I2C_Read... [11:44:54]Read from MH i2c: E2 [11:44:54]MH_I2C_Read... [11:44:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [11:44:54]OFD Sender: No OFD packet to send [11:44:54]Read from MH i2c: E2 CC 00 [11:44:54]MH_I2C_Read... [11:44:54]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D [11:44:54]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:44:54]wFMCommunicate OK [11:44:54]SAM_PROTO_GetShiftData done [11:44:54]requested_item shift.sale.total_cash is exist - process it [11:44:54]requested_item shift.sale_refund.total is exist - process it [11:44:54]requested_item shift.sale_refund.total_cash is exist - process it [11:44:54]requested_item shift.buy.total is exist - process it [11:44:54]requested_item shift.buy.total_cash is exist - process it [11:44:54]produce_requested_data done [11:44:54]produce_requested_data return {"fm.sale.total":157616351.57,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":135282.38,"shift.sale.total_cash":113014.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} [11:44:54]process_action_free get_value [11:44:54]json_value_free [11:44:54]json_value_free done [11:44:54]process_json_proto returns [11:44:54]Send response to host [11:44:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":157616351.57,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":135282.38,"shift.sale.total_cash":113014.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}}} [11:44:54]free response buf [11:44:54]execute_script done [11:44:54]execute_script returns [11:44:54]free content buf [11:44:54]Sock 9.Close socket [11:44:54]Sock 9.Thread stoped [11:44:54]accept exits with 8 [11:44:54]New connection [11:44:54]New thread 3066834276 created [11:44:54]Thread 3066690916 joined [11:44:54]Waiting for new connection... [11:44:54] Sock 8.Parse request [11:44:54]Sock 8.Check first char [11:44:54]Sock 8.First char is OK [11:44:54]request: POST /json_proto HTTP/1.0 [11:44:54]Method: POST [11:44:54]URL: /json_proto [11:44:54]Method is POST - this is cgi request [11:44:54]url: /json_proto [11:44:54]query_string will be loaded in cgi processing [11:44:54]execute_cgi json_proto POST (null) [11:44:54]execute_cgi path=json_proto method=POST [11:44:54]POST find Content-Length [11:44:54]Host: 172.17.63.195:8080 [11:44:54]Content-Length: 144 [11:44:54]Content-Type: application/json [11:44:54] [11:44:54]POST finish read [11:44:54]Found Content-Length = 144 [11:44:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [11:44:54]execute_script... [11:44:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [11:44:54]POST & json_proto [11:44:54]process_json_proto [11:44:54]json parsed OK: [11:44:54]protocol is kg_v1.0 [11:44:54]action value=print_doc [11:44:54]process_action print_doc [11:44:54]ExternCall_PrintAddStr [11:44:54]wPrintStart [11:44:54]Write to MH i2c: 01 00 00 1D 00 1D [11:44:54]Write i2c OK [11:44:54]MH_I2C_Read... [11:44:54]Read from MH i2c: 01 [11:44:54]MH_I2C_Read... [11:44:54]Read from MH i2c: 01 07 00 [11:44:54]MH_I2C_Read... [11:44:54]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [11:44:54]RasterBufferAndPrint [11:44:54]line Счет N : (1)449171 [11:44:54]line ИНН: 02508201610067 [11:44:54]line Контрольно-Кассовый Чек [11:44:54]line ПРОДАЖА [11:44:54]line ТРК (МРК, ГНК) : 41 [11:44:54]line Товар: 2710124130 [11:44:54]line Аи-92-К-2 [11:44:54]line 14.950 * 66.90 [11:44:54]line = 1000.16 [11:44:54]line НДС 12% НСП 1% [11:44:54]line > о реализуемом товаре [11:44:54]line ОКРУГЛЕНИЕ: -0.16 [11:44:54]line ИТОГО: 1000.00 [11:44:54]line Внесено: 1000.00 [11:44:54]line СДАЧА: 0.00 [11:44:54]line НСП 1% : 8.85 [11:44:54]line НДС 12% : 106.21 [11:44:54]line Наличными: 1000.00 [11:44:54]line Безнал.: 0.00 [11:44:54]line Место: АЗС № 171 "Партнер Нефть" [11:44:54]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:44:54]line СНО: Общий режим [11:44:54]line Чек 185 26.10.2024 11:43 [11:44:54]line Смена: 543 ФФД: 1.0 [11:44:54]line ЗНМ: 0300000109 [11:44:54]line РНМ: 0000000000091777 [11:44:54]line Версия ККМ: 001 [11:44:54]line ФМ: 0000000000871756 [11:44:54]line ФД: 201423 [11:44:54]line ФПД: 216564334128872 [11:44:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T114347&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201423&fm=216564334128872&tin=02508201610067®Number=0000000000091777&sum=100000 [11:44:54]written 0, free lines is 4095 [11:44:55]Write to MH i2c: 01 00 00 48 00 48 [11:44:55]Write i2c OK [11:44:55]MH_I2C_Read... [11:44:55]Read from MH i2c: 01 [11:44:55]MH_I2C_Read... [11:44:55]Read from MH i2c: 01 07 00 [11:44:55]MH_I2C_Read... [11:44:55]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 9D 0C F8 [11:44:55]RasterBufferAndPrint [11:44:55]line [11:44:55]line [11:44:55]line [11:44:55]line [11:44:55]line [11:44:55]written 0, free lines is 3242 [11:44:55]MH_Cut [11:44:55]Write to MH i2c: D1 01 00 4F 00 01 21 [11:44:55]Write i2c OK [11:44:55]MH_I2C_Read... [11:44:55]Read from MH i2c: D1 [11:44:55]MH_I2C_Read... [11:44:55]Read from MH i2c: D1 01 00 [11:44:55]MH_I2C_Read... [11:44:55]Read from MH i2c: D1 01 00 4F 00 00 20 [11:44:55]Write to MH i2c: 01 00 00 50 00 50 [11:44:55]Write i2c OK [11:44:55]MH_I2C_Read... [11:44:56]*** Cut start [11:44:56]*** Purtial cut [11:44:56]*** Stage 1: CUTSNS_PIN = 1 [11:44:56]Read from MH i2c: 01 [11:44:56]MH_I2C_Read... [11:44:56]*** Stop cut motor [11:44:56]*** Cut end [11:44:56]Read from MH i2c: 01 07 00 [11:44:56]MH_I2C_Read... [11:44:56]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [11:44:56]process_action print_doc done [11:44:56]requested_data is exist [11:44:56]produce_requested_data [11:44:56]produce_requested_data return (null) [11:44:56]process_action_free print_doc [11:44:56]json_value_free [11:44:56]json_value_free done [11:44:56]process_json_proto returns [11:44:56]Send response to host [11:44:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [11:44:56]free response buf [11:44:56]execute_script done [11:44:56]execute_script returns [11:44:56]free content buf [11:44:56]Sock 8.Close socket [11:44:56]Sock 8.Thread stoped [11:44:56]accept exits with 9 [11:44:56]New connection [11:44:56]New thread 3066690916 created [11:44:56]Thread 3066834276 joined [11:44:56]Waiting for new connection... [11:44:56] Sock 9.Parse request [11:44:56]Sock 9.Check first char [11:44:56]Sock 9.First char is OK [11:44:56]request: POST /json_proto HTTP/1.0 [11:44:56]Method: POST [11:44:56]URL: /json_proto [11:44:56]Method is POST - this is cgi request [11:44:56]url: /json_proto [11:44:56]query_string will be loaded in cgi processing [11:44:56]execute_cgi json_proto POST (null) [11:44:56]execute_cgi path=json_proto method=POST [11:44:56]POST find Content-Length [11:44:56]Host: 172.17.63.195:8080 [11:44:56]Content-Length: 677 [11:44:56]Content-Type: application/json [11:44:56] [11:44:56]POST finish read [11:44:56]Found Content-Length = 677 [11:44:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:44:56]execute_script... [11:44: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)449173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:44:56]POST & json_proto [11:44:56]process_json_proto [11:44:56]json parsed OK: [11:44:56]protocol is kg_v1.0 [11:44:56]action value=close_receipt [11:44:56]process_action close_receipt [11:44:56]cmd_close_receipt [11:44:56]MH_GetDate [11:44:56]Write to MH i2c: F0 00 00 51 00 40 [11:44:56]Write i2c OK [11:44:56]MH_I2C_Read... [11:44:56]Read from MH i2c: F0 [11:44:56]MH_I2C_Read... [11:44:56]Read from MH i2c: F0 09 00 [11:44:56]MH_I2C_Read... [11:44:56]Read from MH i2c: F0 09 00 51 00 00 38 D6 1C 67 68 46 19 67 08 [11:44:56]GetLastDocTimeStamp 1729943027 [11:44:56]current date 1729943096 [11:44:56]FM_GetShiftState [11:44:56]SAM_PROTO_GetShiftState [11:44:56]wFMCommunicate request_size=4 [11:44:56]MH_SAM_APDU [11:44:56]CAPDU: 80 13 01 00 [11:44:56]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [11:44:56]Write i2c OK [11:44:56]MH_I2C_Read... [11:44:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:56]Read from MH i2c: E2 [11:44:56]MH_I2C_Read... [11:44:56]Read from MH i2c: E2 0E 00 [11:44:56]MH_I2C_Read... [11:44:56]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 DE [11:44:56]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:44:56]wFMCommunicate OK [11:44:56]SAM_PROTO_GetShiftState done [11:44:56]FM_GetShiftState done [11:44:56]opened in 1729900879 [11:44:56]opened+sec_in_day 1729987279 [11:44:56]quantity*price = 50041 [11:44:56]sum+1 = 50042 [11:44:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 186 26.10.2024 11:44 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201424 ФПД: 217608366189831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T114457&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201424&fm=217608366189831&tin=02508201610067®Number=0000000000091777&sum=50000 [11:44:57]StoreToDocumentArchive [11:44:57]shift 543 fd 201424 [11:44:57]save to /storage/0543/doc_00201424 [11:44:57]save last doc name /storage/0543/doc_00201424 to /storage/kkm_last_doc_name [11:44:57]save OK [11:44:57]Clear old archive folders... [11:44:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:44:57]tlvbuf is 01EFEF80 [11:44:57]SAM_PROTO_ClearQueue [11:44:57]wFMCommunicate request_size=4 [11:44:57]MH_SAM_APDU [11:44:57]CAPDU: 80 09 00 00 [11:44:57]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [11:44:57]Write i2c OK [11:44:57]MH_I2C_Read... [11:44:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:57]Read from MH i2c: E2 [11:44:57]MH_I2C_Read... [11:44:57]Read from MH i2c: E2 03 00 [11:44:57]MH_I2C_Read... [11:44:57]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [11:44:57]RAPDU: 90 00 [11:44:57]wFMCommunicate OK [11:44:57]SAM_PROTO_ClearQueue done [11:44:57]KKMCreateOFDPacket [11:44:57]OFDProtocolAddRootSTLVToBuf [11:44:57]FM_MakeSignedData [11:44:57]FM_MakeSignedData [11:44:57]SAM_PROTO_SignData [11:44:57]wFMCommunicate request_size=4 [11:44:57]MH_SAM_APDU [11:44:57]CAPDU: 80 0D 01 02 [11:44:57]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [11:44:57]Write i2c OK [11:44:57]MH_I2C_Read... [11:44:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:57]Read from MH i2c: E2 [11:44:57]MH_I2C_Read... [11:44:57]Read from MH i2c: E2 03 00 [11:44:57]MH_I2C_Read... [11:44:57]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [11:44:57]RAPDU: 90 00 [11:44:57]wFMCommunicate OK [11:44:57]wFMCommunicate request_size=255 [11:44:57]MH_SAM_APDU [11:44: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 32 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 BA 00 00 00 F4 03 04 00 39 D6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D0 12 03 00 35 04 06 00 C5 [11:44:57]Write to MH i2c: E2 02 01 61 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 BA 00 00 00 F4 03 04 00 39 D6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D0 12 03 00 35 04 06 00 C5 00 00 84 [11:44:57]Write i2c OK [11:44:57]MH_I2C_Read... [11:44:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:58]Read from MH i2c: E2 [11:44:58]MH_I2C_Read... [11:44:58]Read from MH i2c: E2 03 00 [11:44:58]MH_I2C_Read... [11:44:58]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [11:44:58]RAPDU: 90 00 [11:44:58]wFMCommunicate OK [11:44:58]wFMCommunicate request_size=10 [11:44:58]MH_SAM_APDU [11:44:58]CAPDU: 80 0D 02 02 05 E9 E5 5D ED 07 [11:44:58]Write to MH i2c: E2 0D 00 62 00 80 0D 02 02 05 00 E9 E5 5D ED 07 00 00 05 [11:44:58]Write i2c OK [11:44:58]MH_I2C_Read... [11:44:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:58]Read from MH i2c: E2 [11:44:58]MH_I2C_Read... [11:44:58]Read from MH i2c: E2 03 00 [11:44:58]MH_I2C_Read... [11:44:58]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [11:44:58]RAPDU: 90 00 [11:44:58]wFMCommunicate OK [11:44:58]wFMCommunicate request_size=4 [11:44:58]MH_SAM_APDU [11:44:58]CAPDU: 80 0D 03 02 [11:44:58]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [11:44:58]Write i2c OK [11:44:58]MH_I2C_Read... [11:44:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:58]Read from MH i2c: E2 [11:44:58]MH_I2C_Read... [11:44:58]Read from MH i2c: E2 0B 00 [11:44:58]MH_I2C_Read... [11:44:58]Read from MH i2c: E2 0B 00 63 00 00 43 C3 45 90 07 5A 64 EC 90 00 6B [11:44:58]RAPDU: 43 C3 45 90 07 5A 64 EC 90 00 [11:44:58]wFMCommunicate OK [11:44:58]SAM_PROTO_SignData done [11:44:58]FM_MakeSignedData done [11:44:58]CreateOFDProtocolMessage [11:44:58]wFMCommunicate request_size=4 [11:44:58]MH_SAM_APDU [11:44:58]CAPDU: 80 11 00 00 [11:44:58]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [11:44:58]Write i2c OK [11:44:58]MH_I2C_Read... [11:44:58]Read from MH i2c: E2 [11:44:58]MH_I2C_Read... [11:44:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:58]Read from MH i2c: E2 17 00 [11:44:58]MH_I2C_Read... [11:44:58]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 33 [11:44:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:44:58]wFMCommunicate OK [11:44:58]CreateOFDProtocolMessage done [11:44:58]OFDSenderStorePacket 201424 [11:44:58]StoreOFDPacket docnum=201424 [11:44:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 AE 54 07 01 AF 8D 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 32 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 BA 00 00 00 F4 03 04 00 39 D6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D0 12 03 00 35 04 06 00 C5 E9 E5 5D ED 07 43 C3 45 90 07 5A 64 EC [11:44:58]CheckFolder [11:44:58]dirname=/storage/ofd_packets [11:44:58]CheckFolder done [11:44:58]ProducePacketName [11:44:58]name=ofd_packets/00201424 [11:44:58]NVStorageSaveData ofd_packets/00201424 [11:44:58]File name is /storage/ofd_packets/00201424 [11:44:58]Write 301 bytes [11:44:58]NVStorageSaveData done [11:44:58]OFDSenderStorePacket done [11:44:58]KKMCreateOFDPacket done [11:44:58]NVStorageSaveData kkm_last_timestamp [11:44:58]File name is /storage/kkm_last_timestamp [11:44:58]Write 4 bytes [11:44:58]NVStorageSaveData done [11:44:58]ExternCall_PrintAddStr [11:44:58]wPrintStart [11:44:58]Write to MH i2c: 01 00 00 65 00 65 [11:44:58]Write i2c OK [11:44:58]MH_I2C_Read... [11:44:58]Read from MH i2c: 01 [11:44:58]MH_I2C_Read... [11:44:58]Read from MH i2c: 01 07 00 [11:44:58]MH_I2C_Read... [11:44:58]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [11:44:58]RasterBufferAndPrint [11:44:58]line Счет N : (1)449173 [11:44:58]line ИНН: 02508201610067 [11:44:58]line Контрольно-Кассовый Чек [11:44:58]line ПРОДАЖА [11:44:58]line ТРК (МРК, ГНК) : 62 [11:44:58]line Товар: 2710124130 [11:44:58]line Аи-92-К-2 [11:44:58]line 7.480 * 66.90 [11:44:58]line = 500.41 [11:44:58]line НДС 12% НСП 1% [11:44:58]line > о реализуемом товаре [11:44:58]line ОКРУГЛЕНИЕ: -0.41 [11:44:58]line ИТОГО: 500.00 [11:44:58]line Внесено: 500.00 [11:44:58]line СДАЧА: 0.00 [11:44:58]line НСП 1% : 4.43 [11:44:58]line НДС 12% : 53.14 [11:44:58]line Наличными: 500.00 [11:44:58]line Безнал.: 0.00 [11:44:58]line Место: АЗС № 171 "Партнер Нефть" [11:44:58]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:44:58]line СНО: Общий режим [11:44:58]line Чек 186 26.10.2024 11:44 [11:44:58]line Смена: 543 ФФД: 1.0 [11:44:58]line ЗНМ: 0300000109 [11:44:58]line РНМ: 0000000000091777 [11:44:58]line Версия ККМ: 001 [11:44:58]line ФМ: 0000000000871756 [11:44:58]line ФД: 201424 [11:44:58]line ФПД: 217608366189831 [11:44:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T114457&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201424&fm=217608366189831&tin=02508201610067®Number=0000000000091777&sum=50000 [11:44:58]written 0, free lines is 4095 [11:44:58]OFD Sender: Processing packet 201424 [packets to send 112, broken 111] [11:44:58]ProducePacketName [11:44:58]name=ofd_packets/00201424 [11:44:58]OFD Sender: To server: pG, [11:44:58]CommunicateWithHost lk.salyk.kg:30040 [11:44:58]ConnectInit lk.salyk.kg [11:44:58]Connected sock=11 [11:44:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 AE 54 07 01 AF 8D 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 32 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 BA 00 00 00 F4 03 04 00 39 D6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D0 12 03 00 35 04 06 00 C5 E9 E5 5D ED 07 43 C3 45 90 07 5A 64 EC [11:44:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 0F B4 47 00 81 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D0 12 03 00 F4 03 04 00 E2 81 1C 67 B6 04 01 00 00 59 37 55 27 EA A4 D9 90 [11:44:59]CommunicateWithHost err = 0 [11:44:59]CheckOFDResponse [11:44:59]1017 (14) - 77093643461234 [11:44:59]1041 (16) - 0000000000871756 [11:44:59]1040 (4) - 201424 [11:44:59]1012 (4) - 26.10.2024 05:45 [11:44:59]1206 (1) - 0 [11:44:59]OFD Sender: Remove packet 201424 [11:44:59]ProducePacketName [11:44:59]name=ofd_packets/00201424 [11:44:59]NVStorageDeleteData [11:44:59]Write to MH i2c: 01 00 00 90 00 90 [11:44:59]Write i2c OK [11:44:59]MH_I2C_Read... [11:44:59]Read from MH i2c: 01 [11:44:59]MH_I2C_Read... [11:44:59]Read from MH i2c: 01 07 00 [11:44:59]MH_I2C_Read... [11:44:59]Read from MH i2c: 01 07 00 90 00 00 00 00 00 00 FA 0C 9D [11:44:59]RasterBufferAndPrint [11:44:59]line [11:44:59]line [11:44:59]line [11:44:59]line [11:44:59]line [11:44:59]written 0, free lines is 3339 [11:44:59]MH_Cut [11:44:59]Write to MH i2c: D1 01 00 97 00 01 69 [11:44:59]Write i2c OK [11:44:59]MH_I2C_Read... [11:44:59]Read from MH i2c: D1 [11:44:59]MH_I2C_Read... [11:44:59]Read from MH i2c: D1 01 00 [11:44:59]MH_I2C_Read... [11:44:59]Read from MH i2c: D1 01 00 97 00 00 68 [11:44:59]Write to MH i2c: 01 00 00 98 00 98 [11:44:59]Write i2c OK [11:44:59]MH_I2C_Read... [11:44:59]OFD Sender: No OFD packet to send [11:45:00]*** Cut start [11:45:00]*** Purtial cut [11:45:00]*** Stage 1: CUTSNS_PIN = 1 [11:45:00]Read from MH i2c: 01 [11:45:00]MH_I2C_Read... [11:45:00]*** Stop cut motor [11:45:00]*** Cut end [11:45:00]Read from MH i2c: 01 07 00 [11:45:00]MH_I2C_Read... [11:45:00]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 FF 0F AD [11:45:00]process_action close_receipt done [11:45:00]requested_data is exist [11:45:00]produce_requested_data [11:45:00]requested_item fm.sn is exist - process it [11:45:00]wFMCommunicate request_size=4 [11:45:00]MH_SAM_APDU [11:45:00]CAPDU: 80 11 00 00 [11:45:00]Write to MH i2c: E2 08 00 99 00 80 11 00 00 00 00 00 00 13 [11:45:00]Write i2c OK [11:45:00]MH_I2C_Read... [11:45:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:00]Read from MH i2c: E2 [11:45:00]MH_I2C_Read... [11:45:00]Read from MH i2c: E2 17 00 [11:45:00]MH_I2C_Read... [11:45:00]Read from MH i2c: E2 17 00 99 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 68 [11:45:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:45:00]wFMCommunicate OK [11:45:00]requested_item fd.num is exist - process it [11:45:00]SAM_PROTO_GetFieldsCounters [11:45:00]wFMCommunicate request_size=4 [11:45:00]MH_SAM_APDU [11:45:00]CAPDU: 80 13 00 00 [11:45:00]Write to MH i2c: E2 08 00 9A 00 80 13 00 00 00 00 00 00 16 [11:45:00]Write i2c OK [11:45:00]MH_I2C_Read... [11:45:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:00]Read from MH i2c: E2 [11:45:00]MH_I2C_Read... [11:45:00]Read from MH i2c: E2 62 00 [11:45:00]MH_I2C_Read... [11:45:00]Read from MH i2c: E2 62 00 9A 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D0 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [11:45:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D0 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:45:00]wFMCommunicate OK [11:45:00]SAM_PROTO_GetFieldsCounters done [11:45:00]requested_item shift.num is exist - process it [11:45:00]requested_item shift.opened is exist - process it [11:45:00]req_shift_opened [11:45:00]FM_GetShiftState [11:45:00]SAM_PROTO_GetShiftState [11:45:00]wFMCommunicate request_size=4 [11:45:00]MH_SAM_APDU [11:45:00]CAPDU: 80 13 01 00 [11:45:00]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [11:45:00]Write i2c OK [11:45:00]MH_I2C_Read... [11:45:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:00]Read from MH i2c: E2 [11:45:00]MH_I2C_Read... [11:45:00]Read from MH i2c: E2 0E 00 [11:45:00]MH_I2C_Read... [11:45:00]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 27 [11:45:00]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:45:00]wFMCommunicate OK [11:45:00]SAM_PROTO_GetShiftState done [11:45:00]FM_GetShiftState done [11:45:00]req_shift_opened done [11:45:00]requested_item shift.open_date is exist - process it [11:45:00]req_shift_open_date [11:45:00]req_shift_open_date done [11:45:00]produce_requested_data done [11:45:00]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201424,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:45:00]process_action_free close_receipt [11:45:00]json_value_free [11:45:00]json_value_free done [11:45:00]process_json_proto returns [11:45:00]Send response to host [11:45:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201424,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:45:00]free response buf [11:45:00]execute_script done [11:45:00]execute_script returns [11:45:00]free content buf [11:45:00]Sock 9.Close socket [11:45:00]Sock 9.Thread stoped [11:45:04]OFD Sender: No OFD packet to send [11:45:09]OFD Sender: No OFD packet to send [11:45:14]OFD Sender: No OFD packet to send [11:45:19]OFD Sender: No OFD packet to send [11:45:24]OFD Sender: No OFD packet to send [11:45:29]OFD Sender: No OFD packet to send [11:45:34]OFD Sender: No OFD packet to send [11:45:39]OFD Sender: No OFD packet to send [11:45:44]OFD Sender: No OFD packet to send [11:45:49]OFD Sender: No OFD packet to send [11:45:54]OFD Sender: No OFD packet to send [11:45:59]OFD Sender: No OFD packet to send [11:46:01]accept exits with 8 [11:46:01]New connection [11:46:01]New thread 3066834276 created [11:46:01]Thread 3066690916 joined [11:46:01]Waiting for new connection... [11:46:01] Sock 8.Parse request [11:46:01]Sock 8.Check first char [11:46:01]Sock 8.First char is OK [11:46:01]request: POST /json_proto HTTP/1.0 [11:46:01]Method: POST [11:46:01]URL: /json_proto [11:46:01]Method is POST - this is cgi request [11:46:01]url: /json_proto [11:46:01]query_string will be loaded in cgi processing [11:46:01]execute_cgi json_proto POST (null) [11:46:01]execute_cgi path=json_proto method=POST [11:46:01]POST find Content-Length [11:46:01]Host: 172.17.63.195:8080 [11:46:01]Content-Length: 682 [11:46:01]Content-Type: application/json [11:46:01] [11:46:01]POST finish read [11:46:01]Found Content-Length = 682 [11:46:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [11:46:01]execute_script... [11:46: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)449174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [11:46:01]POST & json_proto [11:46:01]process_json_proto [11:46:01]json parsed OK: [11:46:01]protocol is kg_v1.0 [11:46:01]action value=close_receipt [11:46:01]process_action close_receipt [11:46:01]cmd_close_receipt [11:46:01]MH_GetDate [11:46:01]Write to MH i2c: F0 00 00 9C 00 8B [11:46:01]Write i2c OK [11:46:01]MH_I2C_Read... [11:46:01]Read from MH i2c: F0 [11:46:01]MH_I2C_Read... [11:46:01]Read from MH i2c: F0 09 00 [11:46:01]MH_I2C_Read... [11:46:01]Read from MH i2c: F0 09 00 9C 00 00 7A D6 1C 67 68 46 19 67 95 [11:46:01]GetLastDocTimeStamp 1729943097 [11:46:01]current date 1729943162 [11:46:01]FM_GetShiftState [11:46:01]SAM_PROTO_GetShiftState [11:46:01]wFMCommunicate request_size=4 [11:46:01]MH_SAM_APDU [11:46:01]CAPDU: 80 13 01 00 [11:46:01]Write to MH i2c: E2 08 00 9D 00 80 13 01 00 00 00 00 00 1A [11:46:01]Write i2c OK [11:46:01]MH_I2C_Read... [11:46:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:01]Read from MH i2c: E2 [11:46:01]MH_I2C_Read... [11:46:01]Read from MH i2c: E2 0E 00 [11:46:01]MH_I2C_Read... [11:46:01]Read from MH i2c: E2 0E 00 9D 00 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 29 [11:46:01]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:46:01]wFMCommunicate OK [11:46:01]SAM_PROTO_GetShiftState done [11:46:01]FM_GetShiftState done [11:46:01]opened in 1729900879 [11:46:01]opened+sec_in_day 1729987279 [11:46:01]quantity*price = 200043 [11:46:01]sum+1 = 200044 [11:46:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 187 26.10.2024 11:46 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201425 ФПД: 5454324384663 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T114602&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201425&fm=5454324384663&tin=02508201610067®Number=0000000000091777&sum=200000 [11:46:02]StoreToDocumentArchive [11:46:02]shift 543 fd 201425 [11:46:02]save to /storage/0543/doc_00201425 [11:46:02]save last doc name /storage/0543/doc_00201425 to /storage/kkm_last_doc_name [11:46:02]save OK [11:46:02]Clear old archive folders... [11:46:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:46:02]tlvbuf is 01F43BB0 [11:46:02]SAM_PROTO_ClearQueue [11:46:02]wFMCommunicate request_size=4 [11:46:02]MH_SAM_APDU [11:46:02]CAPDU: 80 09 00 00 [11:46:02]Write to MH i2c: E2 08 00 AA 00 80 09 00 00 00 00 00 00 1C [11:46:02]Write i2c OK [11:46:02]MH_I2C_Read... [11:46:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:03]Read from MH i2c: E2 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: E2 03 00 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [11:46:03]RAPDU: 90 00 [11:46:03]wFMCommunicate OK [11:46:03]SAM_PROTO_ClearQueue done [11:46:03]KKMCreateOFDPacket [11:46:03]OFDProtocolAddRootSTLVToBuf [11:46:03]FM_MakeSignedData [11:46:03]FM_MakeSignedData [11:46:03]SAM_PROTO_SignData [11:46:03]wFMCommunicate request_size=4 [11:46:03]MH_SAM_APDU [11:46:03]CAPDU: 80 0D 01 02 [11:46:03]Write to MH i2c: E2 08 00 AB 00 80 0D 01 02 00 00 00 00 24 [11:46:03]Write i2c OK [11:46:03]MH_I2C_Read... [11:46:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:03]Read from MH i2c: E2 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: E2 03 00 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [11:46:03]RAPDU: 90 00 [11:46:03]wFMCommunicate OK [11:46:03]wFMCommunicate request_size=255 [11:46:03]MH_SAM_APDU [11:46:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 BB 00 00 00 F4 03 04 00 7A D6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D1 12 03 00 35 04 06 00 04 [11:46:03]Write to MH i2c: E2 02 01 AC 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 BB 00 00 00 F4 03 04 00 7A D6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D1 12 03 00 35 04 06 00 04 00 00 FA [11:46:03]Write i2c OK [11:46:03]MH_I2C_Read... [11:46:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:03]Read from MH i2c: E2 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: E2 03 00 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [11:46:03]RAPDU: 90 00 [11:46:03]wFMCommunicate OK [11:46:03]wFMCommunicate request_size=10 [11:46:03]MH_SAM_APDU [11:46:03]CAPDU: 80 0D 02 02 05 F5 EF 11 43 97 [11:46:03]Write to MH i2c: E2 0D 00 AD 00 80 0D 02 02 05 00 F5 EF 11 43 97 00 00 00 [11:46:03]Write i2c OK [11:46:03]MH_I2C_Read... [11:46:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:03]Read from MH i2c: E2 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: E2 03 00 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [11:46:03]RAPDU: 90 00 [11:46:03]wFMCommunicate OK [11:46:03]wFMCommunicate request_size=4 [11:46:03]MH_SAM_APDU [11:46:03]CAPDU: 80 0D 03 02 [11:46:03]Write to MH i2c: E2 08 00 AE 00 80 0D 03 02 00 00 00 00 29 [11:46:03]Write i2c OK [11:46:03]MH_I2C_Read... [11:46:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:03]Read from MH i2c: E2 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: E2 0B 00 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: E2 0B 00 AE 00 00 28 E4 52 19 2F 77 EC 3A 90 00 6D [11:46:03]RAPDU: 28 E4 52 19 2F 77 EC 3A 90 00 [11:46:03]wFMCommunicate OK [11:46:03]SAM_PROTO_SignData done [11:46:03]FM_MakeSignedData done [11:46:03]CreateOFDProtocolMessage [11:46:03]wFMCommunicate request_size=4 [11:46:03]MH_SAM_APDU [11:46:03]CAPDU: 80 11 00 00 [11:46:03]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [11:46:03]Write i2c OK [11:46:03]MH_I2C_Read... [11:46:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:03]Read from MH i2c: E2 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: E2 17 00 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7E [11:46:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:46:03]wFMCommunicate OK [11:46:03]CreateOFDProtocolMessage done [11:46:03]OFDSenderStorePacket 201425 [11:46:03]StoreOFDPacket docnum=201425 [11:46:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 37 86 07 01 1A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 BB 00 00 00 F4 03 04 00 7A D6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D1 12 03 00 35 04 06 00 04 F5 EF 11 43 97 28 E4 52 19 2F 77 EC 3A [11:46:03]CheckFolder [11:46:03]dirname=/storage/ofd_packets [11:46:03]CheckFolder done [11:46:03]ProducePacketName [11:46:03]name=ofd_packets/00201425 [11:46:03]NVStorageSaveData ofd_packets/00201425 [11:46:03]File name is /storage/ofd_packets/00201425 [11:46:03]Write 301 bytes [11:46:03]NVStorageSaveData done [11:46:03]OFDSenderStorePacket done [11:46:03]KKMCreateOFDPacket done [11:46:03]NVStorageSaveData kkm_last_timestamp [11:46:03]File name is /storage/kkm_last_timestamp [11:46:03]Write 4 bytes [11:46:03]NVStorageSaveData done [11:46:03]ExternCall_PrintAddStr [11:46:03]wPrintStart [11:46:03]Write to MH i2c: 01 00 00 B0 00 B0 [11:46:03]Write i2c OK [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: 01 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: 01 07 00 [11:46:03]MH_I2C_Read... [11:46:03]Read from MH i2c: 01 07 00 B0 00 00 00 00 00 00 FF 0F C5 [11:46:03]RasterBufferAndPrint [11:46:03]line Счет N : (1)449174 [11:46:03]line ИНН: 02508201610067 [11:46:03]line Контрольно-Кассовый Чек [11:46:03]line ПРОДАЖА [11:46:03]line ТРК (МРК, ГНК) : 51 [11:46:03]line Товар: 2710124500 [11:46:03]line Аи-95-К-3 [11:46:03]line 26.960 * 74.20 [11:46:03]line = 2000.43 [11:46:03]line НДС 12% НСП 1% [11:46:03]line > о реализуемом товаре [11:46:03]line ОКРУГЛЕНИЕ: -0.43 [11:46:03]line ИТОГО: 2000.00 [11:46:03]line Внесено: 2000.00 [11:46:03]line СДАЧА: 0.00 [11:46:03]line НСП 1% : 17.70 [11:46:03]line НДС 12% : 212.43 [11:46:03]line Наличными: 2000.00 [11:46:03]line Безнал.: 0.00 [11:46:03]line Место: АЗС № 171 "Партнер Нефть" [11:46:03]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:46:03]line СНО: Общий режим [11:46:03]line Чек 187 26.10.2024 11:46 [11:46:03]line Смена: 543 ФФД: 1.0 [11:46:03]line ЗНМ: 0300000109 [11:46:03]line РНМ: 0000000000091777 [11:46:03]line Версия ККМ: 001 [11:46:03]line ФМ: 0000000000871756 [11:46:03]line ФД: 201425 [11:46:03]line ФПД: 5454324384663 [11:46:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T114602&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201425&fm=5454324384663&tin=02508201610067®Number=0000000000091777&sum=200000 [11:46:03]OFD Sender: Processing packet 201425 [packets to send 112, broken 111] [11:46:03]ProducePacketName [11:46:03]name=ofd_packets/00201425 [11:46:03]OFD Sender: To server: pG, [11:46:03]CommunicateWithHost lk.salyk.kg:30040 [11:46:03]ConnectInit lk.salyk.kg [11:46:03]written 0, free lines is 4095 [11:46:03]Connected sock=10 [11:46:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 37 86 07 01 1A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 BB 00 00 00 F4 03 04 00 7A D6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D1 12 03 00 35 04 06 00 04 F5 EF 11 43 97 28 E4 52 19 2F 77 EC 3A [11:46:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 65 30 47 00 EF 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D1 12 03 00 F4 03 04 00 23 82 1C 67 B6 04 01 00 00 37 E3 F7 77 76 74 DC BC [11:46:04]CommunicateWithHost err = 0 [11:46:04]CheckOFDResponse [11:46:04]1017 (14) - 77093643461234 [11:46:04]1041 (16) - 0000000000871756 [11:46:04]1040 (4) - 201425 [11:46:04]1012 (4) - 26.10.2024 05:46 [11:46:04]1206 (1) - 0 [11:46:04]OFD Sender: Remove packet 201425 [11:46:04]ProducePacketName [11:46:04]name=ofd_packets/00201425 [11:46:04]NVStorageDeleteData [11:46:04]Write to MH i2c: 01 00 00 DB 00 DB [11:46:04]Write i2c OK [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: 01 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: 01 07 00 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: 01 07 00 DB 00 00 00 00 00 00 93 0C 81 [11:46:04]RasterBufferAndPrint [11:46:04]line [11:46:04]line [11:46:04]line [11:46:04]line [11:46:04]line [11:46:04]written 0, free lines is 3223 [11:46:04]MH_Cut [11:46:04]Write to MH i2c: D1 01 00 E2 00 01 B4 [11:46:04]Write i2c OK [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: D1 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: D1 01 00 [11:46:04]MH_I2C_Read... [11:46:04]Read from MH i2c: D1 01 00 E2 00 00 B3 [11:46:04]Write to MH i2c: 01 00 00 E3 00 E3 [11:46:04]Write i2c OK [11:46:04]MH_I2C_Read... [11:46:04]OFD Sender: No OFD packet to send [11:46:05]*** Cut start [11:46:05]*** Purtial cut [11:46:05]*** Stage 1: CUTSNS_PIN = 1 [11:46:05]Read from MH i2c: 01 [11:46:05]MH_I2C_Read... [11:46:05]*** Stop cut motor [11:46:05]*** Cut end [11:46:05]Read from MH i2c: 01 07 00 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: 01 07 00 E3 00 00 00 00 00 00 FF 0F F8 [11:46:05]process_action close_receipt done [11:46:05]requested_data is exist [11:46:05]produce_requested_data [11:46:05]requested_item fm.sn is exist - process it [11:46:05]wFMCommunicate request_size=4 [11:46:05]MH_SAM_APDU [11:46:05]CAPDU: 80 11 00 00 [11:46:05]Write to MH i2c: E2 08 00 E4 00 80 11 00 00 00 00 00 00 5E [11:46:05]Write i2c OK [11:46:05]MH_I2C_Read... [11:46:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:05]Read from MH i2c: E2 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: E2 17 00 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: E2 17 00 E4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B3 [11:46:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:46:05]wFMCommunicate OK [11:46:05]requested_item fd.num is exist - process it [11:46:05]SAM_PROTO_GetFieldsCounters [11:46:05]wFMCommunicate request_size=4 [11:46:05]MH_SAM_APDU [11:46:05]CAPDU: 80 13 00 00 [11:46:05]Write to MH i2c: E2 08 00 E5 00 80 13 00 00 00 00 00 00 61 [11:46:05]Write i2c OK [11:46:05]MH_I2C_Read... [11:46:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:05]Read from MH i2c: E2 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: E2 62 00 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: E2 62 00 E5 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D1 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [11:46:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D1 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:05]wFMCommunicate OK [11:46:05]SAM_PROTO_GetFieldsCounters done [11:46:05]requested_item shift.num is exist - process it [11:46:05]requested_item shift.opened is exist - process it [11:46:05]req_shift_opened [11:46:05]FM_GetShiftState [11:46:05]SAM_PROTO_GetShiftState [11:46:05]wFMCommunicate request_size=4 [11:46:05]MH_SAM_APDU [11:46:05]CAPDU: 80 13 01 00 [11:46:05]Write to MH i2c: E2 08 00 E6 00 80 13 01 00 00 00 00 00 63 [11:46:05]Write i2c OK [11:46:05]MH_I2C_Read... [11:46:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:05]Read from MH i2c: E2 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: E2 0E 00 [11:46:05]MH_I2C_Read... [11:46:05]Read from MH i2c: E2 0E 00 E6 00 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 72 [11:46:05]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:46:05]wFMCommunicate OK [11:46:05]SAM_PROTO_GetShiftState done [11:46:05]FM_GetShiftState done [11:46:05]req_shift_opened done [11:46:05]requested_item shift.open_date is exist - process it [11:46:05]req_shift_open_date [11:46:05]req_shift_open_date done [11:46:05]produce_requested_data done [11:46:05]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201425,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:46:05]process_action_free close_receipt [11:46:05]json_value_free [11:46:05]json_value_free done [11:46:05]process_json_proto returns [11:46:05]Send response to host [11:46:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201425,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:46:05]free response buf [11:46:05]execute_script done [11:46:05]execute_script returns [11:46:05]free content buf [11:46:05]Sock 8.Close socket [11:46:05]Sock 8.Thread stoped [11:46:09]OFD Sender: No OFD packet to send [11:46:14]OFD Sender: No OFD packet to send [11:46:19]OFD Sender: No OFD packet to send [11:46:24]OFD Sender: No OFD packet to send [11:46:29]OFD Sender: No OFD packet to send [11:46:34]OFD Sender: No OFD packet to send [11:46:39]OFD Sender: No OFD packet to send [11:46:44]OFD Sender: No OFD packet to send [11:46:49]OFD Sender: No OFD packet to send [11:46:54]OFD Sender: No OFD packet to send [11:46:59]OFD Sender: No OFD packet to send [11:47:04]OFD Sender: No OFD packet to send [11:47:09]OFD Sender: No OFD packet to send [11:47:14]OFD Sender: No OFD packet to send [11:47:19]OFD Sender: No OFD packet to send [11:47:24]OFD Sender: No OFD packet to send [11:47:29]OFD Sender: No OFD packet to send [11:47:34]OFD Sender: No OFD packet to send [11:47:39]OFD Sender: No OFD packet to send [11:47:44]OFD Sender: No OFD packet to send [11:47:49]OFD Sender: No OFD packet to send [11:47:54]OFD Sender: No OFD packet to send [11:47:59]OFD Sender: No OFD packet to send [11:48:04]OFD Sender: No OFD packet to send [11:48:09]OFD Sender: No OFD packet to send [11:48:14]OFD Sender: No OFD packet to send [11:48:19]OFD Sender: No OFD packet to send [11:48:24]OFD Sender: No OFD packet to send [11:48:29]OFD Sender: No OFD packet to send [11:48:34]OFD Sender: No OFD packet to send [11:48:39]OFD Sender: No OFD packet to send [11:48:44]OFD Sender: No OFD packet to send [11:48:49]OFD Sender: No OFD packet to send [11:48:54]OFD Sender: No OFD packet to send [11:48:59]OFD Sender: No OFD packet to send [11:49:02]accept exits with 9 [11:49:02]New connection [11:49:02]New thread 3066690916 created [11:49:02]Thread 3066834276 joined [11:49:02]Waiting for new connection... [11:49:02] Sock 9.Parse request [11:49:02]Sock 9.Check first char [11:49:02]Sock 9.First char is OK [11:49:02]request: POST /json_proto HTTP/1.0 [11:49:02]Method: POST [11:49:02]URL: /json_proto [11:49:02]Method is POST - this is cgi request [11:49:02]url: /json_proto [11:49:02]query_string will be loaded in cgi processing [11:49:02]execute_cgi json_proto POST (null) [11:49:02]execute_cgi path=json_proto method=POST [11:49:02]POST find Content-Length [11:49:02]Host: 172.17.63.195:8080 [11:49:02]Content-Length: 671 [11:49:02]Content-Type: application/json [11:49:02] [11:49:02]POST finish read [11:49:02]Found Content-Length = 671 [11:49:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 11.700, "sum" : 800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:02]execute_script... [11:49: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)449175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 11.700, "sum" : 800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:02]POST & json_proto [11:49:02]process_json_proto [11:49:02]json parsed OK: [11:49:02]protocol is kg_v1.0 [11:49:02]action value=close_receipt [11:49:02]process_action close_receipt [11:49:02]cmd_close_receipt [11:49:02]MH_GetDate [11:49:02]Write to MH i2c: F0 00 00 E7 00 D6 [11:49:02]Write i2c OK [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: F0 [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: F0 09 00 [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: F0 09 00 E7 00 00 2F D7 1C 67 68 46 19 67 96 [11:49:02]GetLastDocTimeStamp 1729943162 [11:49:02]current date 1729943343 [11:49:02]FM_GetShiftState [11:49:02]SAM_PROTO_GetShiftState [11:49:02]wFMCommunicate request_size=4 [11:49:02]MH_SAM_APDU [11:49:02]CAPDU: 80 13 01 00 [11:49:02]Write to MH i2c: E2 08 00 E8 00 80 13 01 00 00 00 00 00 65 [11:49:02]Write i2c OK [11:49:02]MH_I2C_Read... [11:49:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:02]Read from MH i2c: E2 [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: E2 0E 00 [11:49:02]MH_I2C_Read... [11:49:02]Read from MH i2c: E2 0E 00 E8 00 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 74 [11:49:02]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:49:02]wFMCommunicate OK [11:49:02]SAM_PROTO_GetShiftState done [11:49:02]FM_GetShiftState done [11:49:02]opened in 1729900879 [11:49:02]opened+sec_in_day 1729987279 [11:49:02]quantity*price = 80028 [11:49:02]sum+1 = 80029 [11:49:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 188 26.10.2024 11:49 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201426 ФПД: 158357929522442 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T114903&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201426&fm=158357929522442&tin=02508201610067®Number=0000000000091777&sum=80000 [11:49:03]StoreToDocumentArchive [11:49:03]shift 543 fd 201426 [11:49:03]save to /storage/0543/doc_00201426 [11:49:03]save last doc name /storage/0543/doc_00201426 to /storage/kkm_last_doc_name [11:49:03]save OK [11:49:03]Clear old archive folders... [11:49:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:49:03]tlvbuf is 01EFE550 [11:49:03]SAM_PROTO_ClearQueue [11:49:03]wFMCommunicate request_size=4 [11:49:03]MH_SAM_APDU [11:49:03]CAPDU: 80 09 00 00 [11:49:03]Write to MH i2c: E2 08 00 F5 00 80 09 00 00 00 00 00 00 67 [11:49:03]Write i2c OK [11:49:03]MH_I2C_Read... [11:49:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:04]Read from MH i2c: E2 [11:49:04]MH_I2C_Read... [11:49:04]Read from MH i2c: E2 03 00 [11:49:04]MH_I2C_Read... [11:49:04]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [11:49:04]RAPDU: 90 00 [11:49:04]wFMCommunicate OK [11:49:04]SAM_PROTO_ClearQueue done [11:49:04]KKMCreateOFDPacket [11:49:04]OFDProtocolAddRootSTLVToBuf [11:49:04]FM_MakeSignedData [11:49:04]FM_MakeSignedData [11:49:04]SAM_PROTO_SignData [11:49:04]wFMCommunicate request_size=4 [11:49:04]MH_SAM_APDU [11:49:04]CAPDU: 80 0D 01 02 [11:49:04]Write to MH i2c: E2 08 00 F6 00 80 0D 01 02 00 00 00 00 6F [11:49:04]Write i2c OK [11:49:04]MH_I2C_Read... [11:49:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:04]Read from MH i2c: E2 [11:49:04]MH_I2C_Read... [11:49:04]Read from MH i2c: E2 03 00 [11:49:04]MH_I2C_Read... [11:49:04]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [11:49:04]RAPDU: 90 00 [11:49:04]wFMCommunicate OK [11:49:04]wFMCommunicate request_size=255 [11:49:04]MH_SAM_APDU [11:49:04]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 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 2F D7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D2 12 03 00 35 04 06 00 [11:49:04]Write to MH i2c: E2 02 01 F7 00 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 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 2F D7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D2 12 03 00 35 04 06 00 00 00 7E [11:49:04]Write i2c OK [11:49:04]MH_I2C_Read... [11:49:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:04]Read from MH i2c: E2 [11:49:04]MH_I2C_Read... [11:49:04]Read from MH i2c: E2 03 00 [11:49:04]MH_I2C_Read... [11:49:04]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [11:49:04]RAPDU: 90 00 [11:49:04]wFMCommunicate OK [11:49:04]wFMCommunicate request_size=11 [11:49:04]MH_SAM_APDU [11:49:04]CAPDU: 80 0D 02 02 06 90 06 94 22 F5 0A [11:49:04]Write to MH i2c: E2 0E 00 F8 00 80 0D 02 02 06 00 90 06 94 22 F5 0A 00 00 C9 [11:49:04]Write i2c OK [11:49:04]MH_I2C_Read... [11:49:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:04]Read from MH i2c: E2 [11:49:04]MH_I2C_Read... [11:49:04]Read from MH i2c: E2 03 00 [11:49:04]MH_I2C_Read... [11:49:04]Read from MH i2c: E2 03 00 F8 00 00 90 00 6C [11:49:04]RAPDU: 90 00 [11:49:04]wFMCommunicate OK [11:49:04]wFMCommunicate request_size=4 [11:49:04]MH_SAM_APDU [11:49:04]CAPDU: 80 0D 03 02 [11:49:04]Write to MH i2c: E2 08 00 F9 00 80 0D 03 02 00 00 00 00 74 [11:49:04]Write i2c OK [11:49:04]MH_I2C_Read... [11:49:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:04]Read from MH i2c: E2 [11:49:04]MH_I2C_Read... [11:49:04]Read from MH i2c: E2 0B 00 [11:49:04]MH_I2C_Read... [11:49:04]Read from MH i2c: E2 0B 00 F9 00 00 51 88 3A B5 5E C8 CA 7C 90 00 A9 [11:49:04]RAPDU: 51 88 3A B5 5E C8 CA 7C 90 00 [11:49:04]wFMCommunicate OK [11:49:04]SAM_PROTO_SignData done [11:49:04]FM_MakeSignedData done [11:49:04]CreateOFDProtocolMessage [11:49:04]wFMCommunicate request_size=4 [11:49:04]MH_SAM_APDU [11:49:04]CAPDU: 80 11 00 00 [11:49:04]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [11:49:04]Write i2c OK [11:49:04]MH_I2C_Read... [11:49:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:04]Read from MH i2c: E2 [11:49:04]MH_I2C_Read... [11:49:04]Read from MH i2c: E2 17 00 [11:49:04]MH_I2C_Read... [11:49:04]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C9 [11:49:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:49:04]wFMCommunicate OK [11:49:04]CreateOFDProtocolMessage done [11:49:04]OFDSenderStorePacket 201426 [11:49:04]StoreOFDPacket docnum=201426 [11:49:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 22 07 08 01 AD A9 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 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 2F D7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D2 12 03 00 35 04 06 00 90 06 94 22 F5 0A 51 88 3A B5 5E C8 CA 7C [11:49:04]CheckFolder [11:49:04]dirname=/storage/ofd_packets [11:49:04]CheckFolder done [11:49:04]ProducePacketName [11:49:04]name=ofd_packets/00201426 [11:49:04]NVStorageSaveData ofd_packets/00201426 [11:49:04]File name is /storage/ofd_packets/00201426 [11:49:04]Write 302 bytes [11:49:04]NVStorageSaveData done [11:49:04]OFDSenderStorePacket done [11:49:04]KKMCreateOFDPacket done [11:49:04]NVStorageSaveData kkm_last_timestamp [11:49:04]File name is /storage/kkm_last_timestamp [11:49:04]Write 4 bytes [11:49:04]NVStorageSaveData done [11:49:04]OFD Sender: Processing packet 201426 [packets to send 112, broken 111] [11:49:04]ProducePacketName [11:49:04]name=ofd_packets/00201426 [11:49:04]OFD Sender: To server: pG, [11:49:04]CommunicateWithHost lk.salyk.kg:30040 [11:49:04]ConnectInit lk.salyk.kg [11:49:04]ExternCall_PrintAddStr [11:49:04]wPrintStart [11:49:04]Write to MH i2c: 01 00 00 FB 00 FB [11:49:04]Write i2c OK [11:49:04]MH_I2C_Read... [11:49:04]Read from MH i2c: 01 [11:49:04]MH_I2C_Read... [11:49:04]Read from MH i2c: 01 07 00 [11:49:04]MH_I2C_Read... [11:49:04]Read from MH i2c: 01 07 00 FB 00 00 00 00 00 00 FF 0F 10 [11:49:04]RasterBufferAndPrint [11:49:04]line Счет N : (1)449175 [11:49:04]line ИНН: 02508201610067 [11:49:04]line Контрольно-Кассовый Чек [11:49:04]line ПРОДАЖА [11:49:04]line ТРК (МРК, ГНК) : 32 [11:49:04]line Товар: 2710124130 [11:49:04]line SUPER 92-К-5 [11:49:04]line 11.700 * 68.40 [11:49:04]line = 800.28 [11:49:04]line НДС 12% НСП 1% [11:49:04]line > о реализуемом товаре [11:49:04]line ОКРУГЛЕНИЕ: -0.28 [11:49:04]line ИТОГО: 800.00 [11:49:04]line Внесено: 800.00 [11:49:04]line СДАЧА: 0.00 [11:49:04]line НСП 1% : 7.08 [11:49:04]line НДС 12% : 84.98 [11:49:04]line Наличными: 800.00 [11:49:04]line Безнал.: 0.00 [11:49:04]line Место: АЗС № 171 "Партнер Нефть" [11:49:04]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:49:04]line СНО: Общий режим [11:49:04]line Чек 188 26.10.2024 11:49 [11:49:04]line Смена: 543 ФФД: 1.0 [11:49:04]line ЗНМ: 0300000109 [11:49:04]line РНМ: 0000000000091777 [11:49:04]line Версия ККМ: 001 [11:49:04]line ФМ: 0000000000871756 [11:49:04]line ФД: 201426 [11:49:04]line ФПД: 158357929522442 [11:49:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T114903&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201426&fm=158357929522442&tin=02508201610067®Number=0000000000091777&sum=80000 [11:49:04]Connected sock=11 [11:49:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 22 07 08 01 AD A9 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 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 written 0, free lines is 4095 [11:49:04]00 2F D7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D2 12 03 00 35 04 06 00 90 06 94 22 F5 0A 51 88 3A B5 5E C8 CA 7C [11:49:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 BC 75 47 00 D4 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D2 12 03 00 F4 03 04 00 D8 82 1C 67 B6 04 01 00 00 68 E1 19 84 11 B4 5E 01 [11:49:05]CommunicateWithHost err = 0 [11:49:05]CheckOFDResponse [11:49:05]1017 (14) - 77093643461234 [11:49:05]1041 (16) - 0000000000871756 [11:49:05]1040 (4) - 201426 [11:49:05]1012 (4) - 26.10.2024 05:49 [11:49:05]1206 (1) - 0 [11:49:05]OFD Sender: Remove packet 201426 [11:49:05]ProducePacketName [11:49:05]name=ofd_packets/00201426 [11:49:05]NVStorageDeleteData [11:49:05]Write to MH i2c: 01 00 00 26 01 27 [11:49:05]Write i2c OK [11:49:05]MH_I2C_Read... [11:49:05]Read from MH i2c: 01 [11:49:05]MH_I2C_Read... [11:49:05]Read from MH i2c: 01 07 00 [11:49:05]MH_I2C_Read... [11:49:05]Read from MH i2c: 01 07 00 26 01 00 00 00 00 00 97 0C D1 [11:49:05]RasterBufferAndPrint [11:49:05]line [11:49:05]line [11:49:05]line [11:49:05]line [11:49:05]line [11:49:05]written 0, free lines is 3227 [11:49:05]MH_Cut [11:49:05]Write to MH i2c: D1 01 00 2D 01 01 00 [11:49:05]Write i2c OK [11:49:05]MH_I2C_Read... [11:49:05]Read from MH i2c: D1 [11:49:05]MH_I2C_Read... [11:49:05]Read from MH i2c: D1 01 00 [11:49:05]MH_I2C_Read... [11:49:05]Read from MH i2c: D1 01 00 2D 01 00 FF [11:49:05]Write to MH i2c: 01 00 00 2E 01 2F [11:49:05]Write i2c OK [11:49:05]MH_I2C_Read... [11:49:05]OFD Sender: No OFD packet to send [11:49:06]*** Cut start [11:49:06]*** Purtial cut [11:49:06]*** Stage 1: CUTSNS_PIN = 1 [11:49:06]Read from MH i2c: 01 [11:49:06]MH_I2C_Read... [11:49:06]*** Stop cut motor [11:49:06]*** Cut end [11:49:06]Read from MH i2c: 01 07 00 [11:49:06]MH_I2C_Read... [11:49:06]Read from MH i2c: 01 07 00 2E 01 00 00 00 00 00 FF 0F 44 [11:49:06]process_action close_receipt done [11:49:06]requested_data is exist [11:49:06]produce_requested_data [11:49:06]requested_item fm.sn is exist - process it [11:49:06]wFMCommunicate request_size=4 [11:49:06]MH_SAM_APDU [11:49:06]CAPDU: 80 11 00 00 [11:49:06]Write to MH i2c: E2 08 00 2F 01 80 11 00 00 00 00 00 00 AA [11:49:06]Write i2c OK [11:49:06]MH_I2C_Read... [11:49:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:06]Read from MH i2c: E2 [11:49:06]MH_I2C_Read... [11:49:06]Read from MH i2c: E2 17 00 [11:49:06]MH_I2C_Read... [11:49:06]Read from MH i2c: E2 17 00 2F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FF [11:49:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:49:06]wFMCommunicate OK [11:49:06]requested_item fd.num is exist - process it [11:49:06]SAM_PROTO_GetFieldsCounters [11:49:06]wFMCommunicate request_size=4 [11:49:06]MH_SAM_APDU [11:49:06]CAPDU: 80 13 00 00 [11:49:06]Write to MH i2c: E2 08 00 30 01 80 13 00 00 00 00 00 00 AD [11:49:06]Write i2c OK [11:49:06]MH_I2C_Read... [11:49:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:06]Read from MH i2c: E2 [11:49:06]MH_I2C_Read... [11:49:06]Read from MH i2c: E2 62 00 [11:49:06]MH_I2C_Read... [11:49:06]Read from MH i2c: E2 62 00 30 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D2 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [11:49:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D2 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:06]wFMCommunicate OK [11:49:06]SAM_PROTO_GetFieldsCounters done [11:49:06]requested_item shift.num is exist - process it [11:49:06]requested_item shift.opened is exist - process it [11:49:06]req_shift_opened [11:49:06]FM_GetShiftState [11:49:06]SAM_PROTO_GetShiftState [11:49:06]wFMCommunicate request_size=4 [11:49:06]MH_SAM_APDU [11:49:06]CAPDU: 80 13 01 00 [11:49:06]Write to MH i2c: E2 08 00 31 01 80 13 01 00 00 00 00 00 AF [11:49:06]Write i2c OK [11:49:06]MH_I2C_Read... [11:49:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:06]Read from MH i2c: E2 [11:49:06]MH_I2C_Read... [11:49:06]Read from MH i2c: E2 0E 00 [11:49:06]MH_I2C_Read... [11:49:06]Read from MH i2c: E2 0E 00 31 01 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 BE [11:49:06]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:49:06]wFMCommunicate OK [11:49:06]SAM_PROTO_GetShiftState done [11:49:06]FM_GetShiftState done [11:49:06]req_shift_opened done [11:49:06]requested_item shift.open_date is exist - process it [11:49:06]req_shift_open_date [11:49:06]req_shift_open_date done [11:49:06]produce_requested_data done [11:49:06]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201426,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:49:06]process_action_free close_receipt [11:49:06]json_value_free [11:49:06]json_value_free done [11:49:06]process_json_proto returns [11:49:06]Send response to host [11:49:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201426,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:49:06]free response buf [11:49:06]execute_script done [11:49:06]execute_script returns [11:49:06]free content buf [11:49:06]Sock 9.Close socket [11:49:06]Sock 9.Thread stoped [11:49:10]OFD Sender: No OFD packet to send [11:49:15]OFD Sender: No OFD packet to send [11:49:20]OFD Sender: No OFD packet to send [11:49:25]OFD Sender: No OFD packet to send [11:49:30]OFD Sender: No OFD packet to send [11:49:35]OFD Sender: No OFD packet to send [11:49:40]OFD Sender: No OFD packet to send [11:49:45]OFD Sender: No OFD packet to send [11:49:50]OFD Sender: No OFD packet to send [11:49:55]OFD Sender: No OFD packet to send [11:50:00]OFD Sender: No OFD packet to send [11:50:05]OFD Sender: No OFD packet to send [11:50:10]OFD Sender: No OFD packet to send [11:50:15]OFD Sender: No OFD packet to send [11:50:20]OFD Sender: No OFD packet to send [11:50:21]accept exits with 10 [11:50:21]New connection [11:50:21]New thread 3066834276 created [11:50:21]Thread 3066690916 joined [11:50:21]Waiting for new connection... [11:50:21] Sock 10.Parse request [11:50:21]Sock 10.Check first char [11:50:21]Sock 10.First char is OK [11:50:21]request: POST /json_proto HTTP/1.0 [11:50:21]Method: POST [11:50:21]URL: /json_proto [11:50:21]Method is POST - this is cgi request [11:50:21]url: /json_proto [11:50:21]query_string will be loaded in cgi processing [11:50:21]execute_cgi json_proto POST (null) [11:50:21]execute_cgi path=json_proto method=POST [11:50:21]POST find Content-Length [11:50:21]Host: 172.17.63.195:8080 [11:50:21]Content-Length: 675 [11:50:21]Content-Type: application/json [11:50:21] [11:50:21]POST finish read [11:50:21]Found Content-Length = 675 [11:50:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:21]execute_script... [11:50: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)449176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:21]POST & json_proto [11:50:21]process_json_proto [11:50:21]json parsed OK: [11:50:21]protocol is kg_v1.0 [11:50:21]action value=close_receipt [11:50:21]process_action close_receipt [11:50:21]cmd_close_receipt [11:50:21]MH_GetDate [11:50:21]Write to MH i2c: F0 00 00 32 01 22 [11:50:21]Write i2c OK [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: F0 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: F0 09 00 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: F0 09 00 32 01 00 7E D7 1C 67 68 46 19 67 31 [11:50:21]GetLastDocTimeStamp 1729943343 [11:50:21]current date 1729943422 [11:50:21]FM_GetShiftState [11:50:21]SAM_PROTO_GetShiftState [11:50:21]wFMCommunicate request_size=4 [11:50:21]MH_SAM_APDU [11:50:21]CAPDU: 80 13 01 00 [11:50:21]Write to MH i2c: E2 08 00 33 01 80 13 01 00 00 00 00 00 B1 [11:50:21]Write i2c OK [11:50:21]MH_I2C_Read... [11:50:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:21]Read from MH i2c: E2 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: E2 0E 00 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: E2 0E 00 33 01 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C0 [11:50:21]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:50:21]wFMCommunicate OK [11:50:21]SAM_PROTO_GetShiftState done [11:50:21]FM_GetShiftState done [11:50:21]opened in 1729900879 [11:50:21]opened+sec_in_day 1729987279 [11:50:21]quantity*price = 100000 [11:50:21]sum+1 = 100002 [11:50:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 189 26.10.2024 11:50 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201427 ФПД: 270918604451952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115022&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201427&fm=270918604451952&tin=02508201610067®Number=0000000000091777&sum=100000 [11:50:22]StoreToDocumentArchive [11:50:22]shift 543 fd 201427 [11:50:22]save to /storage/0543/doc_00201427 [11:50:22]save last doc name /storage/0543/doc_00201427 to /storage/kkm_last_doc_name [11:50:22]save OK [11:50:22]Clear old archive folders... [11:50:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:50:22]tlvbuf is 01F485B0 [11:50:22]SAM_PROTO_ClearQueue [11:50:22]wFMCommunicate request_size=4 [11:50:22]MH_SAM_APDU [11:50:22]CAPDU: 80 09 00 00 [11:50:22]Write to MH i2c: E2 08 00 40 01 80 09 00 00 00 00 00 00 B3 [11:50:22]Write i2c OK [11:50:22]MH_I2C_Read... [11:50:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:22]Read from MH i2c: E2 [11:50:22]MH_I2C_Read... [11:50:22]Read from MH i2c: E2 03 00 [11:50:22]MH_I2C_Read... [11:50:22]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [11:50:22]RAPDU: 90 00 [11:50:22]wFMCommunicate OK [11:50:22]SAM_PROTO_ClearQueue done [11:50:22]KKMCreateOFDPacket [11:50:22]OFDProtocolAddRootSTLVToBuf [11:50:22]FM_MakeSignedData [11:50:22]FM_MakeSignedData [11:50:22]SAM_PROTO_SignData [11:50:22]wFMCommunicate request_size=4 [11:50:22]MH_SAM_APDU [11:50:22]CAPDU: 80 0D 01 02 [11:50:22]Write to MH i2c: E2 08 00 41 01 80 0D 01 02 00 00 00 00 BB [11:50:22]Write i2c OK [11:50:22]MH_I2C_Read... [11:50:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:22]Read from MH i2c: E2 [11:50:22]MH_I2C_Read... [11:50:22]Read from MH i2c: E2 03 00 [11:50:22]MH_I2C_Read... [11:50:22]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [11:50:22]RAPDU: 90 00 [11:50:22]wFMCommunicate OK [11:50:22]wFMCommunicate request_size=255 [11:50:22]MH_SAM_APDU [11:50:22]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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 BD 00 00 00 F4 03 04 00 7E D7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D3 12 03 00 35 04 06 00 [11:50:22]Write to MH i2c: E2 02 01 42 01 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 BD 00 00 00 F4 03 04 00 7E D7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D3 12 03 00 35 04 06 00 00 00 C2 [11:50:22]Write i2c OK [11:50:22]MH_I2C_Read... [11:50:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:23]Read from MH i2c: E2 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 03 00 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [11:50:23]RAPDU: 90 00 [11:50:23]wFMCommunicate OK [11:50:23]wFMCommunicate request_size=11 [11:50:23]MH_SAM_APDU [11:50:23]CAPDU: 80 0D 02 02 06 F6 66 27 2E 70 70 [11:50:23]Write to MH i2c: E2 0E 00 43 01 80 0D 02 02 06 00 F6 66 27 2E 70 70 00 00 5B [11:50:23]Write i2c OK [11:50:23]MH_I2C_Read... [11:50:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:23]Read from MH i2c: E2 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 03 00 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 03 00 43 01 00 90 00 B8 [11:50:23]RAPDU: 90 00 [11:50:23]wFMCommunicate OK [11:50:23]wFMCommunicate request_size=4 [11:50:23]MH_SAM_APDU [11:50:23]CAPDU: 80 0D 03 02 [11:50:23]Write to MH i2c: E2 08 00 44 01 80 0D 03 02 00 00 00 00 C0 [11:50:23]Write i2c OK [11:50:23]MH_I2C_Read... [11:50:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:23]Read from MH i2c: E2 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 0B 00 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 0B 00 44 01 00 5C 88 5B 24 E1 85 C6 7C 90 00 CC [11:50:23]RAPDU: 5C 88 5B 24 E1 85 C6 7C 90 00 [11:50:23]wFMCommunicate OK [11:50:23]SAM_PROTO_SignData done [11:50:23]FM_MakeSignedData done [11:50:23]CreateOFDProtocolMessage [11:50:23]wFMCommunicate request_size=4 [11:50:23]MH_SAM_APDU [11:50:23]CAPDU: 80 11 00 00 [11:50:23]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [11:50:23]Write i2c OK [11:50:23]MH_I2C_Read... [11:50:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:23]Read from MH i2c: E2 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 17 00 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 15 [11:50:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:50:23]wFMCommunicate OK [11:50:23]CreateOFDProtocolMessage done [11:50:23]OFDSenderStorePacket 201427 [11:50:23]StoreOFDPacket docnum=201427 [11:50:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 22 85 08 01 1D 83 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 BD 00 00 00 F4 03 04 00 7E D7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D3 12 03 00 35 04 06 00 F6 66 27 2E 70 70 5C 88 5B 24 E1 85 C6 7C [11:50:23]CheckFolder [11:50:23]dirname=/storage/ofd_packets [11:50:23]CheckFolder done [11:50:23]ProducePacketName [11:50:23]name=ofd_packets/00201427 [11:50:23]NVStorageSaveData ofd_packets/00201427 [11:50:23]File name is /storage/ofd_packets/00201427 [11:50:23]Write 302 bytes [11:50:23]NVStorageSaveData done [11:50:23]OFDSenderStorePacket done [11:50:23]KKMCreateOFDPacket done [11:50:23]NVStorageSaveData kkm_last_timestamp [11:50:23]File name is /storage/kkm_last_timestamp [11:50:23]Write 4 bytes [11:50:23]NVStorageSaveData done [11:50:23]ExternCall_PrintAddStr [11:50:23]wPrintStart [11:50:23]Write to MH i2c: 01 00 00 46 01 47 [11:50:23]Write i2c OK [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: 01 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: 01 07 00 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: 01 07 00 46 01 00 00 00 00 00 FF 0F 5C [11:50:23]RasterBufferAndPrint [11:50:23]line Счет N : (1)449176 [11:50:23]line ИНН: 02508201610067 [11:50:23]line Контрольно-Кассовый Чек [11:50:23]line ПРОДАЖА [11:50:23]line ТРК (МРК, ГНК) : 42 [11:50:23]line Товар: 2710124130 [11:50:23]line SUPER 92-К-5 [11:50:23]line 14.620 * 68.40 [11:50:23]line = 1000.01 [11:50:23]line НДС 12% НСП 1% [11:50:23]line > о реализуемом товаре [11:50:23]line ОКРУГЛЕНИЕ: -0.01 [11:50:23]line ИТОГО: 1000.00 [11:50:23]line Внесено: 1000.00 [11:50:23]line СДАЧА: 0.00 [11:50:23]line НСП 1% : 8.85 [11:50:23]line НДС 12% : 106.20 [11:50:23]line Наличными: 1000.00 [11:50:23]line Безнал.: 0.00 [11:50:23]line Место: АЗС № 171 "Партнер Нефть" [11:50:23]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:50:23]line СНО: Общий режим [11:50:23]line Чек 189 26.10.2024 11:50 [11:50:23]line Смена: 543 ФФД: 1.0 [11:50:23]line ЗНМ: 0300000109 [11:50:23]line РНМ: 0000000000091777 [11:50:23]line Версия ККМ: 001 [11:50:23]line ФМ: 0000000000871756 [11:50:23]line ФД: 201427 [11:50:23]line ФПД: 270918604451952 [11:50:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115022&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201427&fm=270918604451952&tin=02508201610067®Number=0000000000091777&sum=100000 [11:50:23]OFD Sender: Processing packet 201427 [packets to send 112, broken 111] [11:50:23]ProducePacketName [11:50:23]name=ofd_packets/00201427 [11:50:23]OFD Sender: To server: pG, [11:50:23]CommunicateWithHost lk.salyk.kg:30040 [11:50:23]ConnectInit lk.salyk.kg [11:50:23]written 0, free lines is 4095 [11:50:23]Connected sock=9 [11:50:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 22 85 08 01 1D 83 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 BD 00 00 00 F4 03 04 00 7E D7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D3 12 03 00 35 04 06 00 F6 66 27 2E 70 70 5C 88 5B 24 E1 85 C6 7C [11:50:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F6 03 47 00 2E AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D3 12 03 00 F4 03 04 00 27 83 1C 67 B6 04 01 00 00 82 1C FF E9 15 0C E0 1E [11:50:23]CommunicateWithHost err = 0 [11:50:23]CheckOFDResponse [11:50:23]1017 (14) - 77093643461234 [11:50:23]1041 (16) - 0000000000871756 [11:50:23]1040 (4) - 201427 [11:50:23]1012 (4) - 26.10.2024 05:50 [11:50:23]1206 (1) - 0 [11:50:23]OFD Sender: Remove packet 201427 [11:50:23]ProducePacketName [11:50:23]name=ofd_packets/00201427 [11:50:23]NVStorageDeleteData [11:50:24]Write to MH i2c: 01 00 00 71 01 72 [11:50:24]Write i2c OK [11:50:24]MH_I2C_Read... [11:50:24]Read from MH i2c: 01 [11:50:24]MH_I2C_Read... [11:50:24]Read from MH i2c: 01 07 00 [11:50:24]MH_I2C_Read... [11:50:24]Read from MH i2c: 01 07 00 71 01 00 00 00 00 00 A0 0C 25 [11:50:24]RasterBufferAndPrint [11:50:24]line [11:50:24]line [11:50:24]line [11:50:24]line [11:50:24]line [11:50:24]written 0, free lines is 3236 [11:50:24]MH_Cut [11:50:24]Write to MH i2c: D1 01 00 78 01 01 4B [11:50:24]Write i2c OK [11:50:24]MH_I2C_Read... [11:50:24]Read from MH i2c: D1 [11:50:24]MH_I2C_Read... [11:50:24]Read from MH i2c: D1 01 00 [11:50:24]MH_I2C_Read... [11:50:24]Read from MH i2c: D1 01 00 78 01 00 4A [11:50:24]Write to MH i2c: 01 00 00 79 01 7A [11:50:24]Write i2c OK [11:50:24]MH_I2C_Read... [11:50:24]OFD Sender: No OFD packet to send [11:50:24]*** Cut start [11:50:24]*** Purtial cut [11:50:24]*** Stage 1: CUTSNS_PIN = 1 [11:50:25]Read from MH i2c: 01 [11:50:25]MH_I2C_Read... [11:50:25]*** Stop cut motor [11:50:25]*** Cut end [11:50:25]Read from MH i2c: 01 07 00 [11:50:25]MH_I2C_Read... [11:50:25]Read from MH i2c: 01 07 00 79 01 00 00 00 00 00 FF 0F 8F [11:50:25]process_action close_receipt done [11:50:25]requested_data is exist [11:50:25]produce_requested_data [11:50:25]requested_item fm.sn is exist - process it [11:50:25]wFMCommunicate request_size=4 [11:50:25]MH_SAM_APDU [11:50:25]CAPDU: 80 11 00 00 [11:50:25]Write to MH i2c: E2 08 00 7A 01 80 11 00 00 00 00 00 00 F5 [11:50:25]Write i2c OK [11:50:25]MH_I2C_Read... [11:50:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:25]Read from MH i2c: E2 [11:50:25]MH_I2C_Read... [11:50:25]Read from MH i2c: E2 17 00 [11:50:25]MH_I2C_Read... [11:50:25]Read from MH i2c: E2 17 00 7A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4A [11:50:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:50:25]wFMCommunicate OK [11:50:25]requested_item fd.num is exist - process it [11:50:25]SAM_PROTO_GetFieldsCounters [11:50:25]wFMCommunicate request_size=4 [11:50:25]MH_SAM_APDU [11:50:25]CAPDU: 80 13 00 00 [11:50:25]Write to MH i2c: E2 08 00 7B 01 80 13 00 00 00 00 00 00 F8 [11:50:25]Write i2c OK [11:50:25]MH_I2C_Read... [11:50:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:25]Read from MH i2c: E2 [11:50:25]MH_I2C_Read... [11:50:25]Read from MH i2c: E2 62 00 [11:50:25]MH_I2C_Read... [11:50:25]Read from MH i2c: E2 62 00 7B 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D3 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [11:50:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D3 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:50:25]wFMCommunicate OK [11:50:25]SAM_PROTO_GetFieldsCounters done [11:50:25]requested_item shift.num is exist - process it [11:50:25]requested_item shift.opened is exist - process it [11:50:25]req_shift_opened [11:50:25]FM_GetShiftState [11:50:25]SAM_PROTO_GetShiftState [11:50:25]wFMCommunicate request_size=4 [11:50:25]MH_SAM_APDU [11:50:25]CAPDU: 80 13 01 00 [11:50:25]Write to MH i2c: E2 08 00 7C 01 80 13 01 00 00 00 00 00 FA [11:50:25]Write i2c OK [11:50:25]MH_I2C_Read... [11:50:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:25]Read from MH i2c: E2 [11:50:25]MH_I2C_Read... [11:50:25]Read from MH i2c: E2 0E 00 [11:50:25]MH_I2C_Read... [11:50:25]Read from MH i2c: E2 0E 00 7C 01 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 09 [11:50:25]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:50:25]wFMCommunicate OK [11:50:25]SAM_PROTO_GetShiftState done [11:50:25]FM_GetShiftState done [11:50:25]req_shift_opened done [11:50:25]requested_item shift.open_date is exist - process it [11:50:25]req_shift_open_date [11:50:25]req_shift_open_date done [11:50:25]produce_requested_data done [11:50:25]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201427,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:50:25]process_action_free close_receipt [11:50:25]json_value_free [11:50:25]json_value_free done [11:50:25]process_json_proto returns [11:50:25]Send response to host [11:50:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201427,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:50:25]free response buf [11:50:25]execute_script done [11:50:25]execute_script returns [11:50:25]free content buf [11:50:25]Sock 10.Close socket [11:50:25]Sock 10.Thread stoped [11:50:29]OFD Sender: No OFD packet to send [11:50:34]OFD Sender: No OFD packet to send [11:50:39]OFD Sender: No OFD packet to send [11:50:44]OFD Sender: No OFD packet to send [11:50:49]OFD Sender: No OFD packet to send [11:50:54]OFD Sender: No OFD packet to send [11:50:59]OFD Sender: No OFD packet to send [11:51:04]OFD Sender: No OFD packet to send [11:51:09]OFD Sender: No OFD packet to send [11:51:14]OFD Sender: No OFD packet to send [11:51:19]OFD Sender: No OFD packet to send [11:51:24]OFD Sender: No OFD packet to send [11:51:29]OFD Sender: No OFD packet to send [11:51:34]OFD Sender: No OFD packet to send [11:51:39]OFD Sender: No OFD packet to send [11:51:44]OFD Sender: No OFD packet to send [11:51:47]accept exits with 8 [11:51:47]New connection [11:51:47]New thread 3066690916 created [11:51:47]Thread 3066834276 joined [11:51:47]Waiting for new connection... [11:51:47] Sock 8.Parse request [11:51:47]Sock 8.Check first char [11:51:47]Sock 8.First char is OK [11:51:47]request: POST /json_proto HTTP/1.0 [11:51:47]Method: POST [11:51:47]URL: /json_proto [11:51:47]Method is POST - this is cgi request [11:51:47]url: /json_proto [11:51:47]query_string will be loaded in cgi processing [11:51:47]execute_cgi json_proto POST (null) [11:51:47]execute_cgi path=json_proto method=POST [11:51:47]POST find Content-Length [11:51:47]Host: 172.17.63.195:8080 [11:51:47]Content-Length: 677 [11:51:47]Content-Type: application/json [11:51:47] [11:51:47]POST finish read [11:51:47]Found Content-Length = 677 [11:51:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:51:47]execute_script... [11:51: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)449178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:51:47]POST & json_proto [11:51:47]process_json_proto [11:51:47]json parsed OK: [11:51:47]protocol is kg_v1.0 [11:51:47]action value=close_receipt [11:51:47]process_action close_receipt [11:51:47]cmd_close_receipt [11:51:47]MH_GetDate [11:51:47]Write to MH i2c: F0 00 00 7D 01 6D [11:51:47]Write i2c OK [11:51:47]MH_I2C_Read... [11:51:47]Read from MH i2c: F0 [11:51:47]MH_I2C_Read... [11:51:47]Read from MH i2c: F0 09 00 [11:51:47]MH_I2C_Read... [11:51:47]Read from MH i2c: F0 09 00 7D 01 00 D4 D7 1C 67 68 46 19 67 D2 [11:51:47]GetLastDocTimeStamp 1729943422 [11:51:47]current date 1729943508 [11:51:47]FM_GetShiftState [11:51:47]SAM_PROTO_GetShiftState [11:51:47]wFMCommunicate request_size=4 [11:51:47]MH_SAM_APDU [11:51:47]CAPDU: 80 13 01 00 [11:51:47]Write to MH i2c: E2 08 00 7E 01 80 13 01 00 00 00 00 00 FC [11:51:47]Write i2c OK [11:51:47]MH_I2C_Read... [11:51:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:47]Read from MH i2c: E2 [11:51:47]MH_I2C_Read... [11:51:47]Read from MH i2c: E2 0E 00 [11:51:47]MH_I2C_Read... [11:51:47]Read from MH i2c: E2 0E 00 7E 01 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 0B [11:51:47]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:51:47]wFMCommunicate OK [11:51:47]SAM_PROTO_GetShiftState done [11:51:47]FM_GetShiftState done [11:51:47]opened in 1729900879 [11:51:47]opened+sec_in_day 1729987279 [11:51:47]quantity*price = 50041 [11:51:47]sum+1 = 50042 [11:51:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 190 26.10.2024 11:51 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201428 ФПД: 49294627254831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115148&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201428&fm=49294627254831&tin=02508201610067®Number=0000000000091777&sum=50000 [11:51:48]StoreToDocumentArchive [11:51:48]shift 543 fd 201428 [11:51:48]save to /storage/0543/doc_00201428 [11:51:48]save last doc name /storage/0543/doc_00201428 to /storage/kkm_last_doc_name [11:51:48]save OK [11:51:48]Clear old archive folders... [11:51:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:51:48]tlvbuf is 01EFF880 [11:51:48]SAM_PROTO_ClearQueue [11:51:48]wFMCommunicate request_size=4 [11:51:48]MH_SAM_APDU [11:51:48]CAPDU: 80 09 00 00 [11:51:48]Write to MH i2c: E2 08 00 8B 01 80 09 00 00 00 00 00 00 FE [11:51:48]Write i2c OK [11:51:48]MH_I2C_Read... [11:51:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:48]Read from MH i2c: E2 [11:51:48]MH_I2C_Read... [11:51:48]Read from MH i2c: E2 03 00 [11:51:48]MH_I2C_Read... [11:51:48]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [11:51:48]RAPDU: 90 00 [11:51:48]wFMCommunicate OK [11:51:48]SAM_PROTO_ClearQueue done [11:51:48]KKMCreateOFDPacket [11:51:48]OFDProtocolAddRootSTLVToBuf [11:51:48]FM_MakeSignedData [11:51:48]FM_MakeSignedData [11:51:48]SAM_PROTO_SignData [11:51:48]wFMCommunicate request_size=4 [11:51:48]MH_SAM_APDU [11:51:48]CAPDU: 80 0D 01 02 [11:51:48]Write to MH i2c: E2 08 00 8C 01 80 0D 01 02 00 00 00 00 06 [11:51:48]Write i2c OK [11:51:48]MH_I2C_Read... [11:51:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:48]Read from MH i2c: E2 [11:51:48]MH_I2C_Read... [11:51:48]Read from MH i2c: E2 03 00 [11:51:48]MH_I2C_Read... [11:51:48]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [11:51:48]RAPDU: 90 00 [11:51:48]wFMCommunicate OK [11:51:48]wFMCommunicate request_size=255 [11:51:48]MH_SAM_APDU [11:51: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 32 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 BE 00 00 00 F4 03 04 00 D4 D7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D4 12 03 00 35 04 06 00 2C [11:51:48]Write to MH i2c: E2 02 01 8D 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 32 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 BE 00 00 00 F4 03 04 00 D4 D7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D4 12 03 00 35 04 06 00 2C 00 00 BC [11:51:48]Write i2c OK [11:51:48]MH_I2C_Read... [11:51:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:49]Read from MH i2c: E2 [11:51:49]MH_I2C_Read... [11:51:49]Read from MH i2c: E2 03 00 [11:51:49]MH_I2C_Read... [11:51:49]Read from MH i2c: E2 03 00 8D 01 00 90 00 02 [11:51:49]RAPDU: 90 00 [11:51:49]wFMCommunicate OK [11:51:49]wFMCommunicate request_size=10 [11:51:49]MH_SAM_APDU [11:51:49]CAPDU: 80 0D 02 02 05 D5 4C BF 32 2F [11:51:49]Write to MH i2c: E2 0D 00 8E 01 80 0D 02 02 05 00 D5 4C BF 32 2F 00 00 54 [11:51:49]Write i2c OK [11:51:49]MH_I2C_Read... [11:51:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:49]Read from MH i2c: E2 [11:51:49]MH_I2C_Read... [11:51:49]Read from MH i2c: E2 03 00 [11:51:49]MH_I2C_Read... [11:51:49]Read from MH i2c: E2 03 00 8E 01 00 90 00 03 [11:51:49]RAPDU: 90 00 [11:51:49]wFMCommunicate OK [11:51:49]wFMCommunicate request_size=4 [11:51:49]MH_SAM_APDU [11:51:49]CAPDU: 80 0D 03 02 [11:51:49]Write to MH i2c: E2 08 00 8F 01 80 0D 03 02 00 00 00 00 0B [11:51:49]Write i2c OK [11:51:49]MH_I2C_Read... [11:51:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:49]Read from MH i2c: E2 [11:51:49]MH_I2C_Read... [11:51:49]Read from MH i2c: E2 0B 00 [11:51:49]MH_I2C_Read... [11:51:49]Read from MH i2c: E2 0B 00 8F 01 00 8A B9 E7 D1 B0 84 9B CC 90 00 A2 [11:51:49]RAPDU: 8A B9 E7 D1 B0 84 9B CC 90 00 [11:51:49]wFMCommunicate OK [11:51:49]SAM_PROTO_SignData done [11:51:49]FM_MakeSignedData done [11:51:49]CreateOFDProtocolMessage [11:51:49]wFMCommunicate request_size=4 [11:51:49]MH_SAM_APDU [11:51:49]CAPDU: 80 11 00 00 [11:51:49]Write to MH i2c: E2 08 00 90 01 80 11 00 00 00 00 00 00 0B [11:51:49]Write i2c OK [11:51:49]MH_I2C_Read... [11:51:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:49]Read from MH i2c: E2 [11:51:49]MH_I2C_Read... [11:51:49]Read from MH i2c: E2 17 00 [11:51:49]MH_I2C_Read... [11:51:49]Read from MH i2c: E2 17 00 90 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 60 [11:51:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:51:49]wFMCommunicate OK [11:51:49]CreateOFDProtocolMessage done [11:51:49]OFDSenderStorePacket 201428 [11:51:49]StoreOFDPacket docnum=201428 [11:51:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 0D 61 07 01 7F 62 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 32 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 BE 00 00 00 F4 03 04 00 D4 D7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D4 12 03 00 35 04 06 00 2C D5 4C BF 32 2F 8A B9 E7 D1 B0 84 9B CC [11:51:49]CheckFolder [11:51:49]dirname=/storage/ofd_packets [11:51:49]CheckFolder done [11:51:49]ProducePacketName [11:51:49]name=ofd_packets/00201428 [11:51:49]NVStorageSaveData ofd_packets/00201428 [11:51:49]File name is /storage/ofd_packets/00201428 [11:51:49]Write 301 bytes [11:51:49]NVStorageSaveData done [11:51:49]OFDSenderStorePacket done [11:51:49]KKMCreateOFDPacket done [11:51:49]NVStorageSaveData kkm_last_timestamp [11:51:49]File name is /storage/kkm_last_timestamp [11:51:49]Write 4 bytes [11:51:49]NVStorageSaveData done [11:51:49]ExternCall_PrintAddStr [11:51:49]wPrintStart [11:51:49]Write to MH i2c: 01 00 00 91 01 92 [11:51:49]Write i2c OK [11:51:49]MH_I2C_Read... [11:51:49]Read from MH i2c: 01 [11:51:49]MH_I2C_Read... [11:51:49]Read from MH i2c: 01 07 00 [11:51:49]MH_I2C_Read... [11:51:49]Read from MH i2c: 01 07 00 91 01 00 00 00 00 00 FF 0F A7 [11:51:49]RasterBufferAndPrint [11:51:49]line Счет N : (1)449178 [11:51:49]line ИНН: 02508201610067 [11:51:49]line Контрольно-Кассовый Чек [11:51:49]line ПРОДАЖА [11:51:49]line ТРК (МРК, ГНК) : 31 [11:51:49]line Товар: 2710124130 [11:51:49]line Аи-92-К-2 [11:51:49]line 7.480 * 66.90 [11:51:49]line = 500.41 [11:51:49]line НДС 12% НСП 1% [11:51:49]line > о реализуемом товаре [11:51:49]line ОКРУГЛЕНИЕ: -0.41 [11:51:49]line ИТОГО: 500.00 [11:51:49]line Внесено: 500.00 [11:51:49]line СДАЧА: 0.00 [11:51:49]line НСП 1% : 4.43 [11:51:49]line НДС 12% : 53.14 [11:51:49]line Наличными: 500.00 [11:51:49]line Безнал.: 0.00 [11:51:49]line Место: АЗС № 171 "Партнер Нефть" [11:51:49]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:51:49]line СНО: Общий режим [11:51:49]line Чек 190 26.10.2024 11:51 [11:51:49]line Смена: 543 ФФД: 1.0 [11:51:49]line ЗНМ: 0300000109 [11:51:49]line РНМ: 0000000000091777 [11:51:49]line Версия ККМ: 001 [11:51:49]line ФМ: 0000000000871756 [11:51:49]line ФД: 201428 [11:51:49]line ФПД: 49294627254831 [11:51:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115148&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201428&fm=49294627254831&tin=02508201610067®Number=0000000000091777&sum=50000 [11:51:49]OFD Sender: Processing packet 201428 [packets to send 112, broken 111] [11:51:49]ProducePacketName [11:51:49]name=ofd_packets/00201428 [11:51:49]OFD Sender: To server: pG, [11:51:49]CommunicateWithHost lk.salyk.kg:30040 [11:51:49]ConnectInit lk.salyk.kg [11:51:49]written 0, free lines is 4095 [11:51:49]Connected sock=10 [11:51:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 0D 61 07 01 7F 62 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 32 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 BE 00 00 00 F4 03 04 00 D4 D7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D4 12 03 00 35 04 06 00 2C D5 4C BF 32 2F 8A B9 E7 D1 B0 84 9B CC [11:51:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E2 11 47 00 B0 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D4 12 03 00 F4 03 04 00 7D 83 1C 67 B6 04 01 00 00 A4 F5 86 0D E0 B6 27 99 [11:51:50]CommunicateWithHost err = 0 [11:51:50]CheckOFDResponse [11:51:50]1017 (14) - 77093643461234 [11:51:50]1041 (16) - 0000000000871756 [11:51:50]1040 (4) - 201428 [11:51:50]1012 (4) - 26.10.2024 05:51 [11:51:50]1206 (1) - 0 [11:51:50]OFD Sender: Remove packet 201428 [11:51:50]ProducePacketName [11:51:50]name=ofd_packets/00201428 [11:51:50]NVStorageDeleteData [11:51:50]Write to MH i2c: 01 00 00 BC 01 BD [11:51:50]Write i2c OK [11:51:50]MH_I2C_Read... [11:51:50]Read from MH i2c: 01 [11:51:50]MH_I2C_Read... [11:51:50]Read from MH i2c: 01 07 00 [11:51:50]MH_I2C_Read... [11:51:50]Read from MH i2c: 01 07 00 BC 01 00 00 00 00 00 90 0C 60 [11:51:50]RasterBufferAndPrint [11:51:50]line [11:51:50]line [11:51:50]line [11:51:50]line [11:51:50]line [11:51:50]written 0, free lines is 3220 [11:51:50]MH_Cut [11:51:50]Write to MH i2c: D1 01 00 C3 01 01 96 [11:51:50]Write i2c OK [11:51:50]MH_I2C_Read... [11:51:50]Read from MH i2c: D1 [11:51:50]MH_I2C_Read... [11:51:50]Read from MH i2c: D1 01 00 [11:51:50]MH_I2C_Read... [11:51:50]Read from MH i2c: D1 01 00 C3 01 00 95 [11:51:50]Write to MH i2c: 01 00 00 C4 01 C5 [11:51:50]Write i2c OK [11:51:50]MH_I2C_Read... [11:51:50]OFD Sender: No OFD packet to send [11:51:51]*** Cut start [11:51:51]*** Purtial cut [11:51:51]*** Stage 1: CUTSNS_PIN = 1 [11:51:51]Read from MH i2c: 01 [11:51:51]MH_I2C_Read... [11:51:51]*** Stop cut motor [11:51:51]*** Cut end [11:51:51]Read from MH i2c: 01 07 00 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: 01 07 00 C4 01 00 00 00 00 00 FF 0F DA [11:51:51]process_action close_receipt done [11:51:51]requested_data is exist [11:51:51]produce_requested_data [11:51:51]requested_item fm.sn is exist - process it [11:51:51]wFMCommunicate request_size=4 [11:51:51]MH_SAM_APDU [11:51:51]CAPDU: 80 11 00 00 [11:51:51]Write to MH i2c: E2 08 00 C5 01 80 11 00 00 00 00 00 00 40 [11:51:51]Write i2c OK [11:51:51]MH_I2C_Read... [11:51:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:51]Read from MH i2c: E2 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: E2 17 00 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: E2 17 00 C5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 95 [11:51:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:51:51]wFMCommunicate OK [11:51:51]requested_item fd.num is exist - process it [11:51:51]SAM_PROTO_GetFieldsCounters [11:51:51]wFMCommunicate request_size=4 [11:51:51]MH_SAM_APDU [11:51:51]CAPDU: 80 13 00 00 [11:51:51]Write to MH i2c: E2 08 00 C6 01 80 13 00 00 00 00 00 00 43 [11:51:51]Write i2c OK [11:51:51]MH_I2C_Read... [11:51:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:51]Read from MH i2c: E2 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: E2 62 00 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: E2 62 00 C6 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D4 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [11:51:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D4 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:51:51]wFMCommunicate OK [11:51:51]SAM_PROTO_GetFieldsCounters done [11:51:51]requested_item shift.num is exist - process it [11:51:51]requested_item shift.opened is exist - process it [11:51:51]req_shift_opened [11:51:51]FM_GetShiftState [11:51:51]SAM_PROTO_GetShiftState [11:51:51]wFMCommunicate request_size=4 [11:51:51]MH_SAM_APDU [11:51:51]CAPDU: 80 13 01 00 [11:51:51]Write to MH i2c: E2 08 00 C7 01 80 13 01 00 00 00 00 00 45 [11:51:51]Write i2c OK [11:51:51]MH_I2C_Read... [11:51:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:51]Read from MH i2c: E2 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: E2 0E 00 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: E2 0E 00 C7 01 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 54 [11:51:51]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:51:51]wFMCommunicate OK [11:51:51]SAM_PROTO_GetShiftState done [11:51:51]FM_GetShiftState done [11:51:51]req_shift_opened done [11:51:51]requested_item shift.open_date is exist - process it [11:51:51]req_shift_open_date [11:51:51]req_shift_open_date done [11:51:51]produce_requested_data done [11:51:51]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201428,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:51:51]process_action_free close_receipt [11:51:51]json_value_free [11:51:51]json_value_free done [11:51:51]process_json_proto returns [11:51:51]Send response to host [11:51:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201428,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:51:51]free response buf [11:51:51]execute_script done [11:51:51]execute_script returns [11:51:51]free content buf [11:51:51]Sock 8.Close socket [11:51:51]Sock 8.Thread stoped [11:51:55]OFD Sender: No OFD packet to send [11:52:00]OFD Sender: No OFD packet to send [11:52:01]accept exits with 9 [11:52:01]New connection [11:52:01]New thread 3066834276 created [11:52:01]Thread 3066690916 joined [11:52:01]Waiting for new connection... [11:52:01] Sock 9.Parse request [11:52:01]Sock 9.Check first char [11:52:01]Sock 9.First char is OK [11:52:01]request: POST /json_proto HTTP/1.0 [11:52:01]Method: POST [11:52:01]URL: /json_proto [11:52:01]Method is POST - this is cgi request [11:52:01]url: /json_proto [11:52:01]query_string will be loaded in cgi processing [11:52:01]execute_cgi json_proto POST (null) [11:52:01]execute_cgi path=json_proto method=POST [11:52:01]POST find Content-Length [11:52:01]Host: 172.17.63.195:8080 [11:52:01]Content-Length: 632 [11:52:01]Content-Type: application/json [11:52:01] [11:52:01]POST finish read [11:52:01]Found Content-Length = 632 [11:52:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:01]execute_script... [11:52: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)449177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:01]POST & json_proto [11:52:01]process_json_proto [11:52:01]json parsed OK: [11:52:01]protocol is kg_v1.0 [11:52:01]action value=close_receipt [11:52:01]process_action close_receipt [11:52:01]cmd_close_receipt [11:52:01]MH_GetDate [11:52:01]Write to MH i2c: F0 00 00 C8 01 B8 [11:52:01]Write i2c OK [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: F0 [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: F0 09 00 [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: F0 09 00 C8 01 00 E2 D7 1C 67 68 46 19 67 2B [11:52:01]GetLastDocTimeStamp 1729943508 [11:52:01]current date 1729943522 [11:52:01]FM_GetShiftState [11:52:01]SAM_PROTO_GetShiftState [11:52:01]wFMCommunicate request_size=4 [11:52:01]MH_SAM_APDU [11:52:01]CAPDU: 80 13 01 00 [11:52:01]Write to MH i2c: E2 08 00 C9 01 80 13 01 00 00 00 00 00 47 [11:52:01]Write i2c OK [11:52:01]MH_I2C_Read... [11:52:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:01]Read from MH i2c: E2 [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: E2 0E 00 [11:52:01]MH_I2C_Read... [11:52:01]Read from MH i2c: E2 0E 00 C9 01 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 56 [11:52:01]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:52:01]wFMCommunicate OK [11:52:01]SAM_PROTO_GetShiftState done [11:52:01]FM_GetShiftState done [11:52:01]opened in 1729900879 [11:52:01]opened+sec_in_day 1729987279 [11:52:01]quantity*price = 50000 [11:52:01]sum+1 = 50001 [11:52:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 191 26.10.2024 11:52 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201429 ФПД: 278535756717826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115202&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201429&fm=278535756717826&tin=02508201610067®Number=0000000000091777&sum=50000 [11:52:02]StoreToDocumentArchive [11:52:02]shift 543 fd 201429 [11:52:02]save to /storage/0543/doc_00201429 [11:52:02]save last doc name /storage/0543/doc_00201429 to /storage/kkm_last_doc_name [11:52:02]save OK [11:52:02]Clear old archive folders... [11:52:02]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:52:02]tlvbuf is 01F5C810 [11:52:02]SAM_PROTO_ClearQueue [11:52:02]wFMCommunicate request_size=4 [11:52:02]MH_SAM_APDU [11:52:02]CAPDU: 80 09 00 00 [11:52:02]Write to MH i2c: E2 08 00 D6 01 80 09 00 00 00 00 00 00 49 [11:52:02]Write i2c OK [11:52:02]MH_I2C_Read... [11:52:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:02]Read from MH i2c: E2 [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: E2 03 00 [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [11:52:02]RAPDU: 90 00 [11:52:02]wFMCommunicate OK [11:52:02]SAM_PROTO_ClearQueue done [11:52:02]KKMCreateOFDPacket [11:52:02]OFDProtocolAddRootSTLVToBuf [11:52:02]FM_MakeSignedData [11:52:02]FM_MakeSignedData [11:52:02]SAM_PROTO_SignData [11:52:02]wFMCommunicate request_size=4 [11:52:02]MH_SAM_APDU [11:52:02]CAPDU: 80 0D 01 02 [11:52:02]Write to MH i2c: E2 08 00 D7 01 80 0D 01 02 00 00 00 00 51 [11:52:02]Write i2c OK [11:52:02]MH_I2C_Read... [11:52:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:02]Read from MH i2c: E2 [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: E2 03 00 [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: E2 03 00 D7 01 00 90 00 4C [11:52:02]RAPDU: 90 00 [11:52:02]wFMCommunicate OK [11:52:02]wFMCommunicate request_size=255 [11:52:02]MH_SAM_APDU [11:52:02]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 E2 D7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D5 12 03 00 35 04 06 00 [11:52:02]Write to MH i2c: E2 02 01 D8 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 E2 D7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D5 12 03 00 35 04 06 00 00 00 48 [11:52:02]Write i2c OK [11:52:02]MH_I2C_Read... [11:52:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:03]Read from MH i2c: E2 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: E2 03 00 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: E2 03 00 D8 01 00 90 00 4D [11:52:03]RAPDU: 90 00 [11:52:03]wFMCommunicate OK [11:52:03]wFMCommunicate request_size=11 [11:52:03]MH_SAM_APDU [11:52:03]CAPDU: 80 0D 02 02 06 FD 53 A8 D6 1F 02 [11:52:03]Write to MH i2c: E2 0E 00 D9 01 80 0D 02 02 06 00 FD 53 A8 D6 1F 02 00 00 4F [11:52:03]Write i2c OK [11:52:03]MH_I2C_Read... [11:52:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:03]Read from MH i2c: E2 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: E2 03 00 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: E2 03 00 D9 01 00 90 00 4E [11:52:03]RAPDU: 90 00 [11:52:03]wFMCommunicate OK [11:52:03]wFMCommunicate request_size=4 [11:52:03]MH_SAM_APDU [11:52:03]CAPDU: 80 0D 03 02 [11:52:03]Write to MH i2c: E2 08 00 DA 01 80 0D 03 02 00 00 00 00 56 [11:52:03]Write i2c OK [11:52:03]MH_I2C_Read... [11:52:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:03]Read from MH i2c: E2 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: E2 0B 00 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: E2 0B 00 DA 01 00 DF A7 92 F4 10 BA FB 37 90 00 5F [11:52:03]RAPDU: DF A7 92 F4 10 BA FB 37 90 00 [11:52:03]wFMCommunicate OK [11:52:03]SAM_PROTO_SignData done [11:52:03]FM_MakeSignedData done [11:52:03]CreateOFDProtocolMessage [11:52:03]wFMCommunicate request_size=4 [11:52:03]MH_SAM_APDU [11:52:03]CAPDU: 80 11 00 00 [11:52:03]Write to MH i2c: E2 08 00 DB 01 80 11 00 00 00 00 00 00 56 [11:52:03]Write i2c OK [11:52:03]MH_I2C_Read... [11:52:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:03]Read from MH i2c: E2 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: E2 17 00 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: E2 17 00 DB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AB [11:52:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:52:03]wFMCommunicate OK [11:52:03]CreateOFDProtocolMessage done [11:52:03]OFDSenderStorePacket 201429 [11:52:03]StoreOFDPacket docnum=201429 [11:52:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 2C 35 08 01 BF E3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 E2 D7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D5 12 03 00 35 04 06 00 FD 53 A8 D6 1F 02 DF A7 92 F4 10 BA FB 37 [11:52:03]CheckFolder [11:52:03]dirname=/storage/ofd_packets [11:52:03]CheckFolder done [11:52:03]ProducePacketName [11:52:03]name=ofd_packets/00201429 [11:52:03]NVStorageSaveData ofd_packets/00201429 [11:52:03]File name is /storage/ofd_packets/00201429 [11:52:03]Write 302 bytes [11:52:03]NVStorageSaveData done [11:52:03]OFDSenderStorePacket done [11:52:03]KKMCreateOFDPacket done [11:52:03]NVStorageSaveData kkm_last_timestamp [11:52:03]File name is /storage/kkm_last_timestamp [11:52:03]Write 4 bytes [11:52:03]NVStorageSaveData done [11:52:03]ExternCall_PrintAddStr [11:52:03]wPrintStart [11:52:03]Write to MH i2c: 01 00 00 DC 01 DD [11:52:03]Write i2c OK [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: 01 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: 01 07 00 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: 01 07 00 DC 01 00 00 00 00 00 FF 0F F2 [11:52:03]RasterBufferAndPrint [11:52:03]line Счет N : (1)449177 [11:52:03]line ИНН: 02508201610067 [11:52:03]line Контрольно-Кассовый Чек [11:52:03]line ПРОДАЖА [11:52:03]line ТРК (МРК, ГНК) : 53 [11:52:03]line Товар: 2710124130 [11:52:03]line SUPER 92-К-5 [11:52:03]line 7.310 * 68.40 [11:52:03]line = 500.00 [11:52:03]line НДС 12% НСП 1% [11:52:03]line > о реализуемом товаре [11:52:03]line ИТОГО: 500.00 [11:52:03]line НСП 1% : 4.42 [11:52:03]line НДС 12% : 53.10 [11:52:03]line Наличными: 500.00 [11:52:03]line Безнал.: 0.00 [11:52:03]line Место: АЗС № 171 "Партнер Нефть" [11:52:03]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:52:03]line СНО: Общий режим [11:52:03]line Чек 191 26.10.2024 11:52 [11:52:03]line Смена: 543 ФФД: 1.0 [11:52:03]line ЗНМ: 0300000109 [11:52:03]line РНМ: 0000000000091777 [11:52:03]line Версия ККМ: 001 [11:52:03]line ФМ: 0000000000871756 [11:52:03]line ФД: 201429 [11:52:03]line ФПД: 278535756717826 [11:52:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115202&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201429&fm=278535756717826&tin=02508201610067®Number=0000000000091777&sum=50000 [11:52:03]written 0, free lines is 4095 [11:52:03]OFD Sender: Processing packet 201429 [packets to send 112, broken 111] [11:52:03]ProducePacketName [11:52:03]name=ofd_packets/00201429 [11:52:03]OFD Sender: To server: pG, [11:52:03]CommunicateWithHost lk.salyk.kg:30040 [11:52:03]ConnectInit lk.salyk.kg [11:52:03]Connected sock=10 [11:52:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 2C 35 08 01 BF E3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 E2 D7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D5 12 03 00 35 04 06 00 FD 53 A8 D6 1F 02 DF A7 92 F4 10 BA FB 37 [11:52:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 68 9D 47 00 7B 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D5 12 03 00 F4 03 04 00 8A 83 1C 67 B6 04 01 00 00 2E 97 E9 BB C2 02 B3 59 [11:52:03]CommunicateWithHost err = 0 [11:52:03]CheckOFDResponse [11:52:03]1017 (14) - 77093643461234 [11:52:03]1041 (16) - 0000000000871756 [11:52:03]1040 (4) - 201429 [11:52:03]1012 (4) - 26.10.2024 05:52 [11:52:03]1206 (1) - 0 [11:52:03]OFD Sender: Remove packet 201429 [11:52:03]ProducePacketName [11:52:03]name=ofd_packets/00201429 [11:52:03]NVStorageDeleteData [11:52:03]Write to MH i2c: 01 00 00 04 02 06 [11:52:03]Write i2c OK [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: 01 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: 01 07 00 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: 01 07 00 04 02 00 00 00 00 00 D2 0C EB [11:52:03]RasterBufferAndPrint [11:52:03]line [11:52:03]line [11:52:03]line [11:52:03]line [11:52:03]line [11:52:03]written 0, free lines is 3285 [11:52:03]MH_Cut [11:52:03]Write to MH i2c: D1 01 00 0B 02 01 DF [11:52:03]Write i2c OK [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: D1 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: D1 01 00 [11:52:03]MH_I2C_Read... [11:52:03]Read from MH i2c: D1 01 00 0B 02 00 DE [11:52:03]Write to MH i2c: 01 00 00 0C 02 0E [11:52:03]Write i2c OK [11:52:03]MH_I2C_Read... [11:52:04]OFD Sender: No OFD packet to send [11:52:04]*** Cut start [11:52:04]*** Purtial cut [11:52:04]*** Stage 1: CUTSNS_PIN = 1 [11:52:04]Read from MH i2c: 01 [11:52:04]MH_I2C_Read... [11:52:04]*** Stop cut motor [11:52:04]*** Cut end [11:52:04]Read from MH i2c: 01 07 00 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: 01 07 00 0C 02 00 00 00 00 00 FF 0F 23 [11:52:04]process_action close_receipt done [11:52:04]requested_data is exist [11:52:04]produce_requested_data [11:52:04]requested_item fm.sn is exist - process it [11:52:04]wFMCommunicate request_size=4 [11:52:04]MH_SAM_APDU [11:52:04]CAPDU: 80 11 00 00 [11:52:04]Write to MH i2c: E2 08 00 0D 02 80 11 00 00 00 00 00 00 89 [11:52:04]Write i2c OK [11:52:04]MH_I2C_Read... [11:52:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:04]Read from MH i2c: E2 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: E2 17 00 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: E2 17 00 0D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DE [11:52:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:52:04]wFMCommunicate OK [11:52:04]requested_item fd.num is exist - process it [11:52:04]SAM_PROTO_GetFieldsCounters [11:52:04]wFMCommunicate request_size=4 [11:52:04]MH_SAM_APDU [11:52:04]CAPDU: 80 13 00 00 [11:52:04]Write to MH i2c: E2 08 00 0E 02 80 13 00 00 00 00 00 00 8C [11:52:04]Write i2c OK [11:52:04]MH_I2C_Read... [11:52:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:04]Read from MH i2c: E2 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: E2 62 00 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: E2 62 00 0E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D5 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [11:52:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D5 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:52:04]wFMCommunicate OK [11:52:04]SAM_PROTO_GetFieldsCounters done [11:52:04]requested_item shift.num is exist - process it [11:52:04]requested_item shift.opened is exist - process it [11:52:04]req_shift_opened [11:52:04]FM_GetShiftState [11:52:04]SAM_PROTO_GetShiftState [11:52:04]wFMCommunicate request_size=4 [11:52:04]MH_SAM_APDU [11:52:04]CAPDU: 80 13 01 00 [11:52:04]Write to MH i2c: E2 08 00 0F 02 80 13 01 00 00 00 00 00 8E [11:52:04]Write i2c OK [11:52:04]MH_I2C_Read... [11:52:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:04]Read from MH i2c: E2 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: E2 0E 00 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: E2 0E 00 0F 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 9D [11:52:04]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:52:04]wFMCommunicate OK [11:52:04]SAM_PROTO_GetShiftState done [11:52:04]FM_GetShiftState done [11:52:04]req_shift_opened done [11:52:04]requested_item shift.open_date is exist - process it [11:52:04]req_shift_open_date [11:52:04]req_shift_open_date done [11:52:04]produce_requested_data done [11:52:04]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201429,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:52:04]process_action_free close_receipt [11:52:04]json_value_free [11:52:04]json_value_free done [11:52:04]process_json_proto returns [11:52:04]Send response to host [11:52:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201429,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:52:04]free response buf [11:52:04]execute_script done [11:52:04]execute_script returns [11:52:04]free content buf [11:52:04]Sock 9.Close socket [11:52:04]Sock 9.Thread stoped [11:52:09]OFD Sender: No OFD packet to send [11:52:14]OFD Sender: No OFD packet to send [11:52:19]OFD Sender: No OFD packet to send [11:52:24]OFD Sender: No OFD packet to send [11:52:29]OFD Sender: No OFD packet to send [11:52:34]OFD Sender: No OFD packet to send [11:52:39]OFD Sender: No OFD packet to send [11:52:44]OFD Sender: No OFD packet to send [11:52:49]OFD Sender: No OFD packet to send [11:52:54]OFD Sender: No OFD packet to send [11:52:59]OFD Sender: No OFD packet to send [11:53:04]OFD Sender: No OFD packet to send [11:53:09]OFD Sender: No OFD packet to send [11:53:14]OFD Sender: No OFD packet to send [11:53:19]OFD Sender: No OFD packet to send [11:53:24]OFD Sender: No OFD packet to send [11:53:29]OFD Sender: No OFD packet to send [11:53:34]OFD Sender: No OFD packet to send [11:53:39]OFD Sender: No OFD packet to send [11:53:44]OFD Sender: No OFD packet to send [11:53:49]OFD Sender: No OFD packet to send [11:53:54]OFD Sender: No OFD packet to send [11:53:59]OFD Sender: No OFD packet to send [11:54:04]OFD Sender: No OFD packet to send [11:54:09]OFD Sender: No OFD packet to send [11:54:14]OFD Sender: No OFD packet to send [11:54:19]accept exits with 8 [11:54:19]New connection [11:54:19]New thread 3066690916 created [11:54:19]Thread 3066834276 joined [11:54:19]Waiting for new connection... [11:54:19] Sock 8.Parse request [11:54:19]Sock 8.Check first char [11:54:19]Sock 8.First char is OK [11:54:19]request: POST /json_proto HTTP/1.0 [11:54:19]Method: POST [11:54:19]URL: /json_proto [11:54:19]Method is POST - this is cgi request [11:54:19]url: /json_proto [11:54:19]query_string will be loaded in cgi processing [11:54:19]execute_cgi json_proto POST (null) [11:54:19]execute_cgi path=json_proto method=POST [11:54:19]POST find Content-Length [11:54:19]Host: 172.17.63.195:8080 [11:54:19]Content-Length: 677 [11:54:19]Content-Type: application/json [11:54:19] [11:54:19]POST finish read [11:54:19]Found Content-Length = 677 [11:54:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:54:19]execute_script... [11:54: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)449180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:54:19]POST & json_proto [11:54:19]process_json_proto [11:54:19]json parsed OK: [11:54:19]protocol is kg_v1.0 [11:54:19]action value=close_receipt [11:54:19]process_action close_receipt [11:54:19]cmd_close_receipt [11:54:19]MH_GetDate [11:54:19]Write to MH i2c: F0 00 00 10 02 01 [11:54:19]Write i2c OK [11:54:19]MH_I2C_Read... [11:54:19]Read from MH i2c: F0 [11:54:19]MH_I2C_Read... [11:54:19]Read from MH i2c: F0 09 00 [11:54:19]MH_I2C_Read... [11:54:19]Read from MH i2c: F0 09 00 10 02 00 6B D8 1C 67 68 46 19 67 FE [11:54:19]GetLastDocTimeStamp 1729943522 [11:54:19]current date 1729943659 [11:54:19]FM_GetShiftState [11:54:19]SAM_PROTO_GetShiftState [11:54:19]wFMCommunicate request_size=4 [11:54:19]MH_SAM_APDU [11:54:19]CAPDU: 80 13 01 00 [11:54:19]Write to MH i2c: E2 08 00 11 02 80 13 01 00 00 00 00 00 90 [11:54:19]Write i2c OK [11:54:19]MH_I2C_Read... [11:54:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:19]Read from MH i2c: E2 [11:54:19]MH_I2C_Read... [11:54:19]Read from MH i2c: E2 0E 00 [11:54:19]MH_I2C_Read... [11:54:19]Read from MH i2c: E2 0E 00 11 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 9F [11:54:19]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:54:19]wFMCommunicate OK [11:54:19]SAM_PROTO_GetShiftState done [11:54:19]FM_GetShiftState done [11:54:19]opened in 1729900879 [11:54:19]opened+sec_in_day 1729987279 [11:54:19]quantity*price = 20003 [11:54:19]sum+1 = 20004 [11:54:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 192 26.10.2024 11:54 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201430 ФПД: 210620727627669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115419&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201430&fm=210620727627669&tin=02508201610067®Number=0000000000091777&sum=20000 [11:54:20]StoreToDocumentArchive [11:54:20]shift 543 fd 201430 [11:54:20]save to /storage/0543/doc_00201430 [11:54:20]save last doc name /storage/0543/doc_00201430 to /storage/kkm_last_doc_name [11:54:20]save OK [11:54:20]Clear old archive folders... [11:54:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:54:20]tlvbuf is 01F011B0 [11:54:20]SAM_PROTO_ClearQueue [11:54:20]wFMCommunicate request_size=4 [11:54:20]MH_SAM_APDU [11:54:20]CAPDU: 80 09 00 00 [11:54:20]Write to MH i2c: E2 08 00 1E 02 80 09 00 00 00 00 00 00 92 [11:54:20]Write i2c OK [11:54:20]MH_I2C_Read... [11:54:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:20]Read from MH i2c: E2 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 03 00 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 03 00 1E 02 00 90 00 94 [11:54:20]RAPDU: 90 00 [11:54:20]wFMCommunicate OK [11:54:20]SAM_PROTO_ClearQueue done [11:54:20]KKMCreateOFDPacket [11:54:20]OFDProtocolAddRootSTLVToBuf [11:54:20]FM_MakeSignedData [11:54:20]FM_MakeSignedData [11:54:20]SAM_PROTO_SignData [11:54:20]wFMCommunicate request_size=4 [11:54:20]MH_SAM_APDU [11:54:20]CAPDU: 80 0D 01 02 [11:54:20]Write to MH i2c: E2 08 00 1F 02 80 0D 01 02 00 00 00 00 9A [11:54:20]Write i2c OK [11:54:20]MH_I2C_Read... [11:54:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:20]Read from MH i2c: E2 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 03 00 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 03 00 1F 02 00 90 00 95 [11:54:20]RAPDU: 90 00 [11:54:20]wFMCommunicate OK [11:54:20]wFMCommunicate request_size=255 [11:54:20]MH_SAM_APDU [11:54:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C0 00 00 00 F4 03 04 00 6B D8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D6 12 03 00 35 04 06 00 BF [11:54:20]Write to MH i2c: E2 02 01 20 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 32 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 C0 00 00 00 F4 03 04 00 6B D8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D6 12 03 00 35 04 06 00 BF 00 00 41 [11:54:20]Write i2c OK [11:54:20]MH_I2C_Read... [11:54:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:20]Read from MH i2c: E2 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 03 00 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 03 00 20 02 00 90 00 96 [11:54:20]RAPDU: 90 00 [11:54:20]wFMCommunicate OK [11:54:20]wFMCommunicate request_size=10 [11:54:20]MH_SAM_APDU [11:54:20]CAPDU: 80 0D 02 02 05 8E F5 A7 0F 95 [11:54:20]Write to MH i2c: E2 0D 00 21 02 80 0D 02 02 05 00 8E F5 A7 0F 95 00 00 75 [11:54:20]Write i2c OK [11:54:20]MH_I2C_Read... [11:54:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:20]Read from MH i2c: E2 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 03 00 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 03 00 21 02 00 90 00 97 [11:54:20]RAPDU: 90 00 [11:54:20]wFMCommunicate OK [11:54:20]wFMCommunicate request_size=4 [11:54:20]MH_SAM_APDU [11:54:20]CAPDU: 80 0D 03 02 [11:54:20]Write to MH i2c: E2 08 00 22 02 80 0D 03 02 00 00 00 00 9F [11:54:20]Write i2c OK [11:54:20]MH_I2C_Read... [11:54:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:20]Read from MH i2c: E2 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 0B 00 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 0B 00 22 02 00 E5 99 B9 14 09 7B D8 29 90 00 70 [11:54:20]RAPDU: E5 99 B9 14 09 7B D8 29 90 00 [11:54:20]wFMCommunicate OK [11:54:20]SAM_PROTO_SignData done [11:54:20]FM_MakeSignedData done [11:54:20]CreateOFDProtocolMessage [11:54:20]wFMCommunicate request_size=4 [11:54:20]MH_SAM_APDU [11:54:20]CAPDU: 80 11 00 00 [11:54:20]Write to MH i2c: E2 08 00 23 02 80 11 00 00 00 00 00 00 9F [11:54:20]Write i2c OK [11:54:20]MH_I2C_Read... [11:54:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:20]Read from MH i2c: E2 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 17 00 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 17 00 23 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F4 [11:54:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:54:20]wFMCommunicate OK [11:54:20]CreateOFDProtocolMessage done [11:54:20]OFDSenderStorePacket 201430 [11:54:20]StoreOFDPacket docnum=201430 [11:54:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D9 89 07 01 CE A4 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 32 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 C0 00 00 00 F4 03 04 00 6B D8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D6 12 03 00 35 04 06 00 BF 8E F5 A7 0F 95 E5 99 B9 14 09 7B D8 29 [11:54:20]CheckFolder [11:54:20]dirname=/storage/ofd_packets [11:54:20]CheckFolder done [11:54:20]ProducePacketName [11:54:20]name=ofd_packets/00201430 [11:54:20]NVStorageSaveData ofd_packets/00201430 [11:54:20]File name is /storage/ofd_packets/00201430 [11:54:20]Write 301 bytes [11:54:20]NVStorageSaveData done [11:54:20]OFDSenderStorePacket done [11:54:20]KKMCreateOFDPacket done [11:54:20]NVStorageSaveData kkm_last_timestamp [11:54:20]File name is /storage/kkm_last_timestamp [11:54:20]Write 4 bytes [11:54:20]NVStorageSaveData done [11:54:20]ExternCall_PrintAddStr [11:54:20]wPrintStart [11:54:20]Write to MH i2c: 01 00 00 24 02 26 [11:54:20]Write i2c OK [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: 01 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: 01 07 00 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: 01 07 00 24 02 00 00 00 00 00 FF 0F 3B [11:54:20]RasterBufferAndPrint [11:54:20]line Счет N : (1)449180 [11:54:20]line ИНН: 02508201610067 [11:54:20]line Контрольно-Кассовый Чек [11:54:20]line ПРОДАЖА [11:54:20]line ТРК (МРК, ГНК) : 62 [11:54:20]line Товар: 2710124130 [11:54:20]line Аи-92-К-2 [11:54:20]line 2.990 * 66.90 [11:54:20]line = 200.03 [11:54:20]line НДС 12% НСП 1% [11:54:20]line > о реализуемом товаре [11:54:20]line ОКРУГЛЕНИЕ: -0.03 [11:54:20]line ИТОГО: 200.00 [11:54:20]line Внесено: 200.00 [11:54:20]line СДАЧА: 0.00 [11:54:20]line НСП 1% : 1.77 [11:54:20]line НДС 12% : 21.24 [11:54:20]line Наличными: 200.00 [11:54:20]line Безнал.: 0.00 [11:54:20]line Место: АЗС № 171 "Партнер Нефть" [11:54:20]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:54:20]line СНО: Общий режим [11:54:20]line Чек 192 26.10.2024 11:54 [11:54:20]line Смена: 543 ФФД: 1.0 [11:54:20]line ЗНМ: 0300000109 [11:54:20]line РНМ: 0000000000091777 [11:54:20]line Версия ККМ: 001 [11:54:20]line ФМ: 0000000000871756 [11:54:20]line ФД: 201430 [11:54:20]line ФПД: 210620727627669 [11:54:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115419&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201430&fm=210620727627669&tin=02508201610067®Number=0000000000091777&sum=20000 [11:54:21]OFD Sender: Processing packet 201430 [packets to send 112, broken 111] [11:54:21]ProducePacketName [11:54:21]name=ofd_packets/00201430 [11:54:21]OFD Sender: To server: pG, [11:54:21]CommunicateWithHost lk.salyk.kg:30040 [11:54:21]ConnectInit lk.salyk.kg [11:54:21]written 0, free lines is 4095 [11:54:21]Connected sock=11 [11:54:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D9 89 07 01 CE A4 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 32 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 C0 00 00 00 F4 03 04 00 6B D8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D6 12 03 00 35 04 06 00 BF 8E F5 A7 0F 95 E5 99 B9 14 09 7B D8 29 [11:54:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 07 E9 47 00 06 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D6 12 03 00 F4 03 04 00 14 84 1C 67 B6 04 01 00 00 92 72 B8 B5 7B 35 08 CD [11:54:21]CommunicateWithHost err = 0 [11:54:21]CheckOFDResponse [11:54:21]1017 (14) - 77093643461234 [11:54:21]1041 (16) - 0000000000871756 [11:54:21]1040 (4) - 201430 [11:54:21]1012 (4) - 26.10.2024 05:54 [11:54:21]1206 (1) - 0 [11:54:21]OFD Sender: Remove packet 201430 [11:54:21]ProducePacketName [11:54:21]name=ofd_packets/00201430 [11:54:21]NVStorageDeleteData [11:54:21]Write to MH i2c: 01 00 00 4F 02 51 [11:54:21]Write i2c OK [11:54:21]MH_I2C_Read... [11:54:21]Read from MH i2c: 01 [11:54:21]MH_I2C_Read... [11:54:21]Read from MH i2c: 01 07 00 [11:54:21]MH_I2C_Read... [11:54:21]Read from MH i2c: 01 07 00 4F 02 00 00 00 00 00 9B 0C FF [11:54:21]RasterBufferAndPrint [11:54:21]line [11:54:21]line [11:54:21]line [11:54:21]line [11:54:21]line [11:54:21]written 0, free lines is 3232 [11:54:21]MH_Cut [11:54:21]Write to MH i2c: D1 01 00 56 02 01 2A [11:54:21]Write i2c OK [11:54:21]MH_I2C_Read... [11:54:21]Read from MH i2c: D1 [11:54:21]MH_I2C_Read... [11:54:21]Read from MH i2c: D1 01 00 [11:54:21]MH_I2C_Read... [11:54:21]Read from MH i2c: D1 01 00 56 02 00 29 [11:54:21]Write to MH i2c: 01 00 00 57 02 59 [11:54:21]Write i2c OK [11:54:21]MH_I2C_Read... [11:54:21]OFD Sender: No OFD packet to send [11:54:22]*** Cut start [11:54:22]*** Purtial cut [11:54:22]*** Stage 1: CUTSNS_PIN = 1 [11:54:22]Read from MH i2c: 01 [11:54:22]MH_I2C_Read... [11:54:22]*** Stop cut motor [11:54:22]*** Cut end [11:54:22]Read from MH i2c: 01 07 00 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: 01 07 00 57 02 00 00 00 00 00 FF 0F 6E [11:54:22]process_action close_receipt done [11:54:22]requested_data is exist [11:54:22]produce_requested_data [11:54:22]requested_item fm.sn is exist - process it [11:54:22]wFMCommunicate request_size=4 [11:54:22]MH_SAM_APDU [11:54:22]CAPDU: 80 11 00 00 [11:54:22]Write to MH i2c: E2 08 00 58 02 80 11 00 00 00 00 00 00 D4 [11:54:22]Write i2c OK [11:54:22]MH_I2C_Read... [11:54:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:22]Read from MH i2c: E2 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: E2 17 00 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: E2 17 00 58 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 29 [11:54:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:54:22]wFMCommunicate OK [11:54:22]requested_item fd.num is exist - process it [11:54:22]SAM_PROTO_GetFieldsCounters [11:54:22]wFMCommunicate request_size=4 [11:54:22]MH_SAM_APDU [11:54:22]CAPDU: 80 13 00 00 [11:54:22]Write to MH i2c: E2 08 00 59 02 80 13 00 00 00 00 00 00 D7 [11:54:22]Write i2c OK [11:54:22]MH_I2C_Read... [11:54:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:22]Read from MH i2c: E2 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: E2 62 00 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: E2 62 00 59 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D6 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [11:54:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D6 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:54:22]wFMCommunicate OK [11:54:22]SAM_PROTO_GetFieldsCounters done [11:54:22]requested_item shift.num is exist - process it [11:54:22]requested_item shift.opened is exist - process it [11:54:22]req_shift_opened [11:54:22]FM_GetShiftState [11:54:22]SAM_PROTO_GetShiftState [11:54:22]wFMCommunicate request_size=4 [11:54:22]MH_SAM_APDU [11:54:22]CAPDU: 80 13 01 00 [11:54:22]Write to MH i2c: E2 08 00 5A 02 80 13 01 00 00 00 00 00 D9 [11:54:22]Write i2c OK [11:54:22]MH_I2C_Read... [11:54:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:22]Read from MH i2c: E2 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: E2 0E 00 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: E2 0E 00 5A 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E8 [11:54:22]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:54:22]wFMCommunicate OK [11:54:22]SAM_PROTO_GetShiftState done [11:54:22]FM_GetShiftState done [11:54:22]req_shift_opened done [11:54:22]requested_item shift.open_date is exist - process it [11:54:22]req_shift_open_date [11:54:22]req_shift_open_date done [11:54:22]produce_requested_data done [11:54:22]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201430,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:54:22]process_action_free close_receipt [11:54:22]json_value_free [11:54:22]json_value_free done [11:54:22]process_json_proto returns [11:54:22]Send response to host [11:54:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201430,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:54:22]free response buf [11:54:22]execute_script done [11:54:22]execute_script returns [11:54:22]free content buf [11:54:22]Sock 8.Close socket [11:54:22]Sock 8.Thread stoped [11:54:26]OFD Sender: No OFD packet to send [11:54:31]OFD Sender: No OFD packet to send [11:54:36]OFD Sender: No OFD packet to send [11:54:41]OFD Sender: No OFD packet to send [11:54:42]accept exits with 9 [11:54:42]New connection [11:54:42]New thread 3066834276 created [11:54:42]Thread 3066690916 joined [11:54:42]Waiting for new connection... [11:54:42] Sock 9.Parse request [11:54:42]Sock 9.Check first char [11:54:42]Sock 9.First char is OK [11:54:42]request: POST /json_proto HTTP/1.0 [11:54:42]Method: POST [11:54:42]URL: /json_proto [11:54:42]Method is POST - this is cgi request [11:54:42]url: /json_proto [11:54:42]query_string will be loaded in cgi processing [11:54:42]execute_cgi json_proto POST (null) [11:54:42]execute_cgi path=json_proto method=POST [11:54:42]POST find Content-Length [11:54:42]Host: 172.17.63.195:8080 [11:54:42]Content-Length: 677 [11:54:42]Content-Type: application/json [11:54:42] [11:54:42]POST finish read [11:54:42]Found Content-Length = 677 [11:54:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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" ] } } [11:54:42]execute_script... [11:54: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)449179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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" ] } } [11:54:42]POST & json_proto [11:54:42]process_json_proto [11:54:42]json parsed OK: [11:54:42]protocol is kg_v1.0 [11:54:42]action value=close_receipt [11:54:42]process_action close_receipt [11:54:42]cmd_close_receipt [11:54:42]MH_GetDate [11:54:42]Write to MH i2c: F0 00 00 5B 02 4C [11:54:42]Write i2c OK [11:54:42]MH_I2C_Read... [11:54:42]Read from MH i2c: F0 [11:54:42]MH_I2C_Read... [11:54:42]Read from MH i2c: F0 09 00 [11:54:42]MH_I2C_Read... [11:54:42]Read from MH i2c: F0 09 00 5B 02 00 83 D8 1C 67 68 46 19 67 61 [11:54:42]GetLastDocTimeStamp 1729943659 [11:54:42]current date 1729943683 [11:54:42]FM_GetShiftState [11:54:42]SAM_PROTO_GetShiftState [11:54:42]wFMCommunicate request_size=4 [11:54:42]MH_SAM_APDU [11:54:42]CAPDU: 80 13 01 00 [11:54:42]Write to MH i2c: E2 08 00 5C 02 80 13 01 00 00 00 00 00 DB [11:54:42]Write i2c OK [11:54:42]MH_I2C_Read... [11:54:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:42]Read from MH i2c: E2 [11:54:42]MH_I2C_Read... [11:54:42]Read from MH i2c: E2 0E 00 [11:54:42]MH_I2C_Read... [11:54:42]Read from MH i2c: E2 0E 00 5C 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 EA [11:54:42]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:54:42]wFMCommunicate OK [11:54:42]SAM_PROTO_GetShiftState done [11:54:42]FM_GetShiftState done [11:54:42]opened in 1729900879 [11:54:42]opened+sec_in_day 1729987279 [11:54:42]quantity*price = 50010 [11:54:42]sum+1 = 50012 [11:54:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 193 26.10.2024 11:54 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201431 ФПД: 154411749025147 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115443&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201431&fm=154411749025147&tin=02508201610067®Number=0000000000091777&sum=50000 [11:54:44]StoreToDocumentArchive [11:54:44]shift 543 fd 201431 [11:54:44]save to /storage/0543/doc_00201431 [11:54:44]save last doc name /storage/0543/doc_00201431 to /storage/kkm_last_doc_name [11:54:44]save OK [11:54:44]Clear old archive folders... [11:54:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:54:44]tlvbuf is 01F00250 [11:54:44]SAM_PROTO_ClearQueue [11:54:44]wFMCommunicate request_size=4 [11:54:44]MH_SAM_APDU [11:54:44]CAPDU: 80 09 00 00 [11:54:44]Write to MH i2c: E2 08 00 69 02 80 09 00 00 00 00 00 00 DD [11:54:44]Write i2c OK [11:54:44]MH_I2C_Read... [11:54:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:44]Read from MH i2c: E2 [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: E2 03 00 [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: E2 03 00 69 02 00 90 00 DF [11:54:44]RAPDU: 90 00 [11:54:44]wFMCommunicate OK [11:54:44]SAM_PROTO_ClearQueue done [11:54:44]KKMCreateOFDPacket [11:54:44]OFDProtocolAddRootSTLVToBuf [11:54:44]FM_MakeSignedData [11:54:44]FM_MakeSignedData [11:54:44]SAM_PROTO_SignData [11:54:44]wFMCommunicate request_size=4 [11:54:44]MH_SAM_APDU [11:54:44]CAPDU: 80 0D 01 02 [11:54:44]Write to MH i2c: E2 08 00 6A 02 80 0D 01 02 00 00 00 00 E5 [11:54:44]Write i2c OK [11:54:44]MH_I2C_Read... [11:54:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:44]Read from MH i2c: E2 [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: E2 03 00 [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: E2 03 00 6A 02 00 90 00 E0 [11:54:44]RAPDU: 90 00 [11:54:44]wFMCommunicate OK [11:54:44]wFMCommunicate request_size=255 [11:54:44]MH_SAM_APDU [11:54: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 C1 00 00 00 F4 03 04 00 83 D8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D7 12 03 00 35 04 06 00 8C [11:54:44]Write to MH i2c: E2 02 01 6B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 C1 00 00 00 F4 03 04 00 83 D8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D7 12 03 00 35 04 06 00 8C 00 00 8A [11:54:44]Write i2c OK [11:54:44]MH_I2C_Read... [11:54:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:44]Read from MH i2c: E2 [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: E2 03 00 [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: E2 03 00 6B 02 00 90 00 E1 [11:54:44]RAPDU: 90 00 [11:54:44]wFMCommunicate OK [11:54:44]wFMCommunicate request_size=10 [11:54:44]MH_SAM_APDU [11:54:44]CAPDU: 80 0D 02 02 05 6F C9 73 25 7B [11:54:44]Write to MH i2c: E2 0D 00 6C 02 80 0D 02 02 05 00 6F C9 73 25 7B 00 00 3D [11:54:44]Write i2c OK [11:54:44]MH_I2C_Read... [11:54:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:44]Read from MH i2c: E2 [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: E2 03 00 [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: E2 03 00 6C 02 00 90 00 E2 [11:54:44]RAPDU: 90 00 [11:54:44]wFMCommunicate OK [11:54:44]wFMCommunicate request_size=4 [11:54:44]MH_SAM_APDU [11:54:44]CAPDU: 80 0D 03 02 [11:54:44]Write to MH i2c: E2 08 00 6D 02 80 0D 03 02 00 00 00 00 EA [11:54:44]Write i2c OK [11:54:44]MH_I2C_Read... [11:54:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:44]Read from MH i2c: E2 [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: E2 0B 00 [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: E2 0B 00 6D 02 00 6A 1F 45 E1 CA 2B 35 D1 90 00 95 [11:54:44]RAPDU: 6A 1F 45 E1 CA 2B 35 D1 90 00 [11:54:44]wFMCommunicate OK [11:54:44]SAM_PROTO_SignData done [11:54:44]FM_MakeSignedData done [11:54:44]CreateOFDProtocolMessage [11:54:44]wFMCommunicate request_size=4 [11:54:44]MH_SAM_APDU [11:54:44]CAPDU: 80 11 00 00 [11:54:44]Write to MH i2c: E2 08 00 6E 02 80 11 00 00 00 00 00 00 EA [11:54:44]Write i2c OK [11:54:44]MH_I2C_Read... [11:54:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:44]Read from MH i2c: E2 [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: E2 17 00 [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: E2 17 00 6E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3F [11:54:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:54:44]wFMCommunicate OK [11:54:44]CreateOFDProtocolMessage done [11:54:44]OFDSenderStorePacket 201431 [11:54:44]StoreOFDPacket docnum=201431 [11:54:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 2B 4B 07 01 B0 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 C1 00 00 00 F4 03 04 00 83 D8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D7 12 03 00 35 04 06 00 8C 6F C9 73 25 7B 6A 1F 45 E1 CA 2B 35 D1 [11:54:44]CheckFolder [11:54:44]dirname=/storage/ofd_packets [11:54:44]CheckFolder done [11:54:44]ProducePacketName [11:54:44]name=ofd_packets/00201431 [11:54:44]NVStorageSaveData ofd_packets/00201431 [11:54:44]File name is /storage/ofd_packets/00201431 [11:54:44]Write 301 bytes [11:54:44]NVStorageSaveData done [11:54:44]OFDSenderStorePacket done [11:54:44]KKMCreateOFDPacket done [11:54:44]NVStorageSaveData kkm_last_timestamp [11:54:44]File name is /storage/kkm_last_timestamp [11:54:44]Write 4 bytes [11:54:44]NVStorageSaveData done [11:54:44]ExternCall_PrintAddStr [11:54:44]wPrintStart [11:54:44]Write to MH i2c: 01 00 00 6F 02 71 [11:54:44]Write i2c OK [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: 01 [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: 01 07 00 [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: 01 07 00 6F 02 00 00 00 00 00 FF 0F 86 [11:54:44]RasterBufferAndPrint [11:54:44]line Счет N : (1)449179 [11:54:44]line ИНН: 02508201610067 [11:54:44]line Контрольно-Кассовый Чек [11:54:44]line ПРОДАЖА [11:54:44]line ТРК (МРК, ГНК) : 51 [11:54:44]line Товар: 2710124500 [11:54:44]line Аи-95-К-3 [11:54:44]line 6.740 * 74.20 [11:54:44]line = 500.11 [11:54:44]line НДС 12% НСП 1% [11:54:44]line > о реализуемом товаре [11:54:44]line ОКРУГЛЕНИЕ: -0.11 [11:54:44]line ИТОГО: 500.00 [11:54:44]line Внесено: 500.00 [11:54:44]line СДАЧА: 0.00 [11:54:44]line НСП 1% : 4.43 [11:54:44]line НДС 12% : 53.11 [11:54:44]line Наличными: 500.00 [11:54:44]line Безнал.: 0.00 [11:54:44]line Место: АЗС № 171 "Партнер Нефть" [11:54:44]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:54:44]line СНО: Общий режим [11:54:44]line Чек 193 26.10.2024 11:54 [11:54:44]line Смена: 543 ФФД: 1.0 [11:54:44]line ЗНМ: 0300000109 [11:54:44]line РНМ: 0000000000091777 [11:54:44]line Версия ККМ: 001 [11:54:44]line ФМ: 0000000000871756 [11:54:44]line ФД: 201431 [11:54:44]line ФПД: 154411749025147 [11:54:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115443&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201431&fm=154411749025147&tin=02508201610067®Number=0000000000091777&sum=50000 [11:54:44]OFD Sender: Processing packet 201431 [packets to send 112, broken 111] [11:54:44]ProducePacketName [11:54:44]name=ofd_packets/00201431 [11:54:44]OFD Sender: To server: pG, [11:54:44]CommunicateWithHost lk.salyk.kg:30040 [11:54:44]ConnectInit lk.salyk.kg [11:54:44]written 0, free lines is 4095 [11:54:45]Connected sock=10 [11:54:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 2B 4B 07 01 B0 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 C1 00 00 00 F4 03 04 00 83 D8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D7 12 03 00 35 04 06 00 8C 6F C9 73 25 7B 6A 1F 45 E1 CA 2B 35 D1 [11:54:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 97 BA 47 00 DE 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 38 37 31 37 35 36 10 04 04 00 D7 12 03 00 F4 03 04 00 2C 84 1C 67 B6 04 01 00 00 4C 30 EA E8 EA 46 F5 F8 [11:54:45]CommunicateWithHost err = 0 [11:54:45]CheckOFDResponse [11:54:45]1017 (14) - 77093643461234 [11:54:45]1041 (16) - 0000000000871756 [11:54:45]1040 (4) - 201431 [11:54:45]1012 (4) - 26.10.2024 05:54 [11:54:45]1206 (1) - 0 [11:54:45]OFD Sender: Remove packet 201431 [11:54:45]ProducePacketName [11:54:45]name=ofd_packets/00201431 [11:54:45]NVStorageDeleteData [11:54:45]Write to MH i2c: 01 00 00 9A 02 9C [11:54:45]Write i2c OK [11:54:45]MH_I2C_Read... [11:54:45]Read from MH i2c: 01 [11:54:45]MH_I2C_Read... [11:54:45]Read from MH i2c: 01 07 00 [11:54:45]MH_I2C_Read... [11:54:45]Read from MH i2c: 01 07 00 9A 02 00 00 00 00 00 92 0C 41 [11:54:45]RasterBufferAndPrint [11:54:45]line [11:54:45]line [11:54:45]line [11:54:45]line [11:54:45]line [11:54:45]written 0, free lines is 3223 [11:54:45]MH_Cut [11:54:45]Write to MH i2c: D1 01 00 A1 02 01 75 [11:54:45]Write i2c OK [11:54:45]MH_I2C_Read... [11:54:45]Read from MH i2c: D1 [11:54:45]MH_I2C_Read... [11:54:45]Read from MH i2c: D1 01 00 [11:54:45]MH_I2C_Read... [11:54:45]Read from MH i2c: D1 01 00 A1 02 00 74 [11:54:45]Write to MH i2c: 01 00 00 A2 02 A4 [11:54:45]Write i2c OK [11:54:45]MH_I2C_Read... [11:54:45]OFD Sender: No OFD packet to send [11:54:46]*** Cut start [11:54:46]*** Purtial cut [11:54:46]*** Stage 1: CUTSNS_PIN = 1 [11:54:46]Read from MH i2c: 01 [11:54:46]MH_I2C_Read... [11:54:46]*** Stop cut motor [11:54:46]*** Cut end [11:54:46]Read from MH i2c: 01 07 00 [11:54:46]MH_I2C_Read... [11:54:46]Read from MH i2c: 01 07 00 A2 02 00 00 00 00 00 FF 0F B9 [11:54:46]process_action close_receipt done [11:54:46]requested_data is exist [11:54:46]produce_requested_data [11:54:46]requested_item fm.sn is exist - process it [11:54:46]wFMCommunicate request_size=4 [11:54:46]MH_SAM_APDU [11:54:46]CAPDU: 80 11 00 00 [11:54:46]Write to MH i2c: E2 08 00 A3 02 80 11 00 00 00 00 00 00 1F [11:54:46]Write i2c OK [11:54:46]MH_I2C_Read... [11:54:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:46]Read from MH i2c: E2 [11:54:46]MH_I2C_Read... [11:54:46]Read from MH i2c: E2 17 00 [11:54:46]MH_I2C_Read... [11:54:46]Read from MH i2c: E2 17 00 A3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 74 [11:54:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:54:46]wFMCommunicate OK [11:54:46]requested_item fd.num is exist - process it [11:54:46]SAM_PROTO_GetFieldsCounters [11:54:46]wFMCommunicate request_size=4 [11:54:46]MH_SAM_APDU [11:54:46]CAPDU: 80 13 00 00 [11:54:46]Write to MH i2c: E2 08 00 A4 02 80 13 00 00 00 00 00 00 22 [11:54:46]Write i2c OK [11:54:46]MH_I2C_Read... [11:54:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:46]Read from MH i2c: E2 [11:54:46]MH_I2C_Read... [11:54:46]Read from MH i2c: E2 62 00 [11:54:46]MH_I2C_Read... [11:54:46]Read from MH i2c: E2 62 00 A4 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D7 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [11:54:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D7 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:54:46]wFMCommunicate OK [11:54:46]SAM_PROTO_GetFieldsCounters done [11:54:46]requested_item shift.num is exist - process it [11:54:46]requested_item shift.opened is exist - process it [11:54:46]req_shift_opened [11:54:46]FM_GetShiftState [11:54:46]SAM_PROTO_GetShiftState [11:54:46]wFMCommunicate request_size=4 [11:54:46]MH_SAM_APDU [11:54:46]CAPDU: 80 13 01 00 [11:54:46]Write to MH i2c: E2 08 00 A5 02 80 13 01 00 00 00 00 00 24 [11:54:46]Write i2c OK [11:54:46]MH_I2C_Read... [11:54:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:46]Read from MH i2c: E2 [11:54:46]MH_I2C_Read... [11:54:46]Read from MH i2c: E2 0E 00 [11:54:46]MH_I2C_Read... [11:54:46]Read from MH i2c: E2 0E 00 A5 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 33 [11:54:46]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:54:46]wFMCommunicate OK [11:54:46]SAM_PROTO_GetShiftState done [11:54:46]FM_GetShiftState done [11:54:46]req_shift_opened done [11:54:46]requested_item shift.open_date is exist - process it [11:54:46]req_shift_open_date [11:54:46]req_shift_open_date done [11:54:46]produce_requested_data done [11:54:46]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201431,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:54:46]process_action_free close_receipt [11:54:46]json_value_free [11:54:46]json_value_free done [11:54:46]process_json_proto returns [11:54:46]Send response to host [11:54:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201431,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:54:46]free response buf [11:54:46]execute_script done [11:54:46]execute_script returns [11:54:46]free content buf [11:54:46]Sock 9.Close socket [11:54:46]Sock 9.Thread stoped [11:54:47]accept exits with 8 [11:54:47]New connection [11:54:47]New thread 3066690916 created [11:54:47]Thread 3066834276 joined [11:54:47]Waiting for new connection... [11:54:47] Sock 8.Parse request [11:54:47]Sock 8.Check first char [11:54:47]Sock 8.First char is OK [11:54:47]request: POST /json_proto HTTP/1.0 [11:54:47]Method: POST [11:54:47]URL: /json_proto [11:54:47]Method is POST - this is cgi request [11:54:47]url: /json_proto [11:54:47]query_string will be loaded in cgi processing [11:54:47]execute_cgi json_proto POST (null) [11:54:47]execute_cgi path=json_proto method=POST [11:54:47]POST find Content-Length [11:54:47]Host: 172.17.63.195:8080 [11:54:47]Content-Length: 677 [11:54:47]Content-Type: application/json [11:54:47] [11:54:47]POST finish read [11:54:47]Found Content-Length = 677 [11:54:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:54:47]execute_script... [11:54: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)449181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:54:47]POST & json_proto [11:54:47]process_json_proto [11:54:47]json parsed OK: [11:54:47]protocol is kg_v1.0 [11:54:47]action value=close_receipt [11:54:47]process_action close_receipt [11:54:47]cmd_close_receipt [11:54:47]MH_GetDate [11:54:47]Write to MH i2c: F0 00 00 A6 02 97 [11:54:47]Write i2c OK [11:54:47]MH_I2C_Read... [11:54:47]Read from MH i2c: F0 [11:54:47]MH_I2C_Read... [11:54:47]Read from MH i2c: F0 09 00 [11:54:47]MH_I2C_Read... [11:54:47]Read from MH i2c: F0 09 00 A6 02 00 87 D8 1C 67 68 46 19 67 B0 [11:54:47]GetLastDocTimeStamp 1729943683 [11:54:47]current date 1729943687 [11:54:47]FM_GetShiftState [11:54:47]SAM_PROTO_GetShiftState [11:54:47]wFMCommunicate request_size=4 [11:54:47]MH_SAM_APDU [11:54:47]CAPDU: 80 13 01 00 [11:54:47]Write to MH i2c: E2 08 00 A7 02 80 13 01 00 00 00 00 00 26 [11:54:47]Write i2c OK [11:54:47]MH_I2C_Read... [11:54:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:47]Read from MH i2c: E2 [11:54:47]MH_I2C_Read... [11:54:47]Read from MH i2c: E2 0E 00 [11:54:47]MH_I2C_Read... [11:54:47]Read from MH i2c: E2 0E 00 A7 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 35 [11:54:47]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:54:47]wFMCommunicate OK [11:54:47]SAM_PROTO_GetShiftState done [11:54:47]FM_GetShiftState done [11:54:47]opened in 1729900879 [11:54:47]opened+sec_in_day 1729987279 [11:54:47]quantity*price = 50041 [11:54:47]sum+1 = 50042 [11:54:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 194 26.10.2024 11:54 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201432 ФПД: 49678031328117 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115447&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201432&fm=49678031328117&tin=02508201610067®Number=0000000000091777&sum=50000 [11:54:48]StoreToDocumentArchive [11:54:48]shift 543 fd 201432 [11:54:48]save to /storage/0543/doc_00201432 [11:54:48]save last doc name /storage/0543/doc_00201432 to /storage/kkm_last_doc_name [11:54:48]save OK [11:54:48]Clear old archive folders... [11:54:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:54:48]tlvbuf is 01F04C20 [11:54:48]SAM_PROTO_ClearQueue [11:54:48]wFMCommunicate request_size=4 [11:54:48]MH_SAM_APDU [11:54:48]CAPDU: 80 09 00 00 [11:54:48]Write to MH i2c: E2 08 00 B4 02 80 09 00 00 00 00 00 00 28 [11:54:48]Write i2c OK [11:54:48]MH_I2C_Read... [11:54:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:48]Read from MH i2c: E2 [11:54:48]MH_I2C_Read... [11:54:48]Read from MH i2c: E2 03 00 [11:54:48]MH_I2C_Read... [11:54:48]Read from MH i2c: E2 03 00 B4 02 00 90 00 2A [11:54:48]RAPDU: 90 00 [11:54:48]wFMCommunicate OK [11:54:48]SAM_PROTO_ClearQueue done [11:54:48]KKMCreateOFDPacket [11:54:48]OFDProtocolAddRootSTLVToBuf [11:54:48]FM_MakeSignedData [11:54:48]FM_MakeSignedData [11:54:48]SAM_PROTO_SignData [11:54:48]wFMCommunicate request_size=4 [11:54:48]MH_SAM_APDU [11:54:48]CAPDU: 80 0D 01 02 [11:54:48]Write to MH i2c: E2 08 00 B5 02 80 0D 01 02 00 00 00 00 30 [11:54:48]Write i2c OK [11:54:48]MH_I2C_Read... [11:54:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:48]Read from MH i2c: E2 [11:54:48]MH_I2C_Read... [11:54:48]Read from MH i2c: E2 03 00 [11:54:48]MH_I2C_Read... [11:54:48]Read from MH i2c: E2 03 00 B5 02 00 90 00 2B [11:54:48]RAPDU: 90 00 [11:54:48]wFMCommunicate OK [11:54:48]wFMCommunicate request_size=255 [11:54:48]MH_SAM_APDU [11:54: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 32 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 C2 00 00 00 F4 03 04 00 87 D8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D8 12 03 00 35 04 06 00 2D [11:54:48]Write to MH i2c: E2 02 01 B6 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 32 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 C2 00 00 00 F4 03 04 00 87 D8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D8 12 03 00 35 04 06 00 2D 00 00 A3 [11:54:48]Write i2c OK [11:54:48]MH_I2C_Read... [11:54:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:48]Read from MH i2c: E2 [11:54:48]MH_I2C_Read... [11:54:48]Read from MH i2c: E2 03 00 [11:54:48]MH_I2C_Read... [11:54:48]Read from MH i2c: E2 03 00 B6 02 00 90 00 2C [11:54:48]RAPDU: 90 00 [11:54:48]wFMCommunicate OK [11:54:48]wFMCommunicate request_size=10 [11:54:48]MH_SAM_APDU [11:54:48]CAPDU: 80 0D 02 02 05 2E 91 69 13 75 [11:54:48]Write to MH i2c: E2 0D 00 B7 02 80 0D 02 02 05 00 2E 91 69 13 75 00 00 ED [11:54:49]Write i2c OK [11:54:49]MH_I2C_Read... [11:54:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:49]Read from MH i2c: E2 [11:54:49]MH_I2C_Read... [11:54:49]Read from MH i2c: E2 03 00 [11:54:49]MH_I2C_Read... [11:54:49]Read from MH i2c: E2 03 00 B7 02 00 90 00 2D [11:54:49]RAPDU: 90 00 [11:54:49]wFMCommunicate OK [11:54:49]wFMCommunicate request_size=4 [11:54:49]MH_SAM_APDU [11:54:49]CAPDU: 80 0D 03 02 [11:54:49]Write to MH i2c: E2 08 00 B8 02 80 0D 03 02 00 00 00 00 35 [11:54:49]Write i2c OK [11:54:49]MH_I2C_Read... [11:54:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:49]Read from MH i2c: E2 [11:54:49]MH_I2C_Read... [11:54:49]Read from MH i2c: E2 0B 00 [11:54:49]MH_I2C_Read... [11:54:49]Read from MH i2c: E2 0B 00 B8 02 00 A4 11 A7 36 F5 1D 8B 0D 90 00 72 [11:54:49]RAPDU: A4 11 A7 36 F5 1D 8B 0D 90 00 [11:54:49]wFMCommunicate OK [11:54:49]SAM_PROTO_SignData done [11:54:49]FM_MakeSignedData done [11:54:49]CreateOFDProtocolMessage [11:54:49]wFMCommunicate request_size=4 [11:54:49]MH_SAM_APDU [11:54:49]CAPDU: 80 11 00 00 [11:54:49]Write to MH i2c: E2 08 00 B9 02 80 11 00 00 00 00 00 00 35 [11:54:49]Write i2c OK [11:54:49]MH_I2C_Read... [11:54:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:49]Read from MH i2c: E2 [11:54:49]MH_I2C_Read... [11:54:49]Read from MH i2c: E2 17 00 [11:54:49]MH_I2C_Read... [11:54:49]Read from MH i2c: E2 17 00 B9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8A [11:54:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:54:49]wFMCommunicate OK [11:54:49]CreateOFDProtocolMessage done [11:54:49]OFDSenderStorePacket 201432 [11:54:49]StoreOFDPacket docnum=201432 [11:54:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 18 2D 07 01 FE 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 32 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 C2 00 00 00 F4 03 04 00 87 D8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D8 12 03 00 35 04 06 00 2D 2E 91 69 13 75 A4 11 A7 36 F5 1D 8B 0D [11:54:49]CheckFolder [11:54:49]dirname=/storage/ofd_packets [11:54:49]CheckFolder done [11:54:49]ProducePacketName [11:54:49]name=ofd_packets/00201432 [11:54:49]NVStorageSaveData ofd_packets/00201432 [11:54:49]File name is /storage/ofd_packets/00201432 [11:54:49]Write 301 bytes [11:54:49]NVStorageSaveData done [11:54:49]OFDSenderStorePacket done [11:54:49]KKMCreateOFDPacket done [11:54:49]NVStorageSaveData kkm_last_timestamp [11:54:49]File name is /storage/kkm_last_timestamp [11:54:49]Write 4 bytes [11:54:49]NVStorageSaveData done [11:54:49]ExternCall_PrintAddStr [11:54:49]wPrintStart [11:54:49]Write to MH i2c: 01 00 00 BA 02 BC [11:54:49]Write i2c OK [11:54:49]MH_I2C_Read... [11:54:49]Read from MH i2c: 01 [11:54:49]MH_I2C_Read... [11:54:49]Read from MH i2c: 01 07 00 [11:54:49]MH_I2C_Read... [11:54:49]OFD Sender: Processing packet 201432 [packets to send 112, broken 111] [11:54:49]ProducePacketName [11:54:49]name=ofd_packets/00201432 [11:54:49]OFD Sender: To server: pG, [11:54:49]CommunicateWithHost lk.salyk.kg:30040 [11:54:49]ConnectInit lk.salyk.kg [11:54:49]Read from MH i2c: 01 07 00 BA 02 00 00 00 00 00 FF 0F D1 [11:54:49]RasterBufferAndPrint [11:54:49]line Счет N : (1)449181 [11:54:49]line ИНН: 02508201610067 [11:54:49]line Контрольно-Кассовый Чек [11:54:49]line ПРОДАЖА [11:54:49]line ТРК (МРК, ГНК) : 31 [11:54:49]line Товар: 2710124130 [11:54:49]line Аи-92-К-2 [11:54:49]line 7.480 * 66.90 [11:54:49]line = 500.41 [11:54:49]line НДС 12% НСП 1% [11:54:49]line > о реализуемом товаре [11:54:49]line ОКРУГЛЕНИЕ: -0.41 [11:54:49]line ИТОГО: 500.00 [11:54:49]line Внесено: 500.00 [11:54:49]line СДАЧА: 0.00 [11:54:49]line НСП 1% : 4.43 [11:54:49]line НДС 12% : 53.14 [11:54:49]line Наличными: 500.00 [11:54:49]line Безнал.: 0.00 [11:54:49]line Место: АЗС № 171 "Партнер Нефть" [11:54:49]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:54:49]line СНО: Общий режим [11:54:49]line Чек 194 26.10.2024 11:54 [11:54:49]line Смена: 543 ФФД: 1.0 [11:54:49]line ЗНМ: 0300000109 [11:54:49]line РНМ: 0000000000091777 [11:54:49]line Версия ККМ: 001 [11:54:49]line ФМ: 0000000000871756 [11:54:49]line ФД: 201432 [11:54:49]line ФПД: 49678031328117 [11:54:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115447&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201432&fm=49678031328117&tin=02508201610067®Number=0000000000091777&sum=50000 [11:54:49]Connected sock=10 [11:54:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 18 2D 07 01 FE 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 32 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 C2 00 00 00 F4 03 04 00 87 D8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D8 12 03 00 35 04 06 00 2D 2E 91 69 13 75 A4 11 A7 36 F5 1D 8B 0D [11:54:49]written 0, free lines is 4095 [11:54:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 35 81 47 00 30 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D8 12 03 00 F4 03 04 00 31 84 1C 67 B6 04 01 00 00 4E 37 0B C7 D1 2D AC 10 [11:54:49]CommunicateWithHost err = 0 [11:54:49]CheckOFDResponse [11:54:49]1017 (14) - 77093643461234 [11:54:49]1041 (16) - 0000000000871756 [11:54:49]1040 (4) - 201432 [11:54:49]1012 (4) - 26.10.2024 05:54 [11:54:49]1206 (1) - 0 [11:54:49]OFD Sender: Remove packet 201432 [11:54:49]ProducePacketName [11:54:49]name=ofd_packets/00201432 [11:54:49]NVStorageDeleteData [11:54:50]Write to MH i2c: 01 00 00 E5 02 E7 [11:54:50]Write i2c OK [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: 01 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: 01 07 00 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: 01 07 00 E5 02 00 00 00 00 00 99 0C 93 [11:54:50]RasterBufferAndPrint [11:54:50]line [11:54:50]line [11:54:50]line [11:54:50]line [11:54:50]line [11:54:50]written 0, free lines is 3237 [11:54:50]MH_Cut [11:54:50]Write to MH i2c: D1 01 00 EC 02 01 C0 [11:54:50]Write i2c OK [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: D1 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: D1 01 00 [11:54:50]MH_I2C_Read... [11:54:50]Read from MH i2c: D1 01 00 EC 02 00 BF [11:54:50]Write to MH i2c: 01 00 00 ED 02 EF [11:54:50]Write i2c OK [11:54:50]MH_I2C_Read... [11:54:50]OFD Sender: No OFD packet to send [11:54:51]*** Cut start [11:54:51]*** Purtial cut [11:54:51]*** Stage 1: CUTSNS_PIN = 1 [11:54:51]Read from MH i2c: 01 [11:54:51]MH_I2C_Read... [11:54:51]*** Stop cut motor [11:54:51]*** Cut end [11:54:51]Read from MH i2c: 01 07 00 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: 01 07 00 ED 02 00 00 00 00 00 FF 0F 04 [11:54:51]process_action close_receipt done [11:54:51]requested_data is exist [11:54:51]produce_requested_data [11:54:51]requested_item fm.sn is exist - process it [11:54:51]wFMCommunicate request_size=4 [11:54:51]MH_SAM_APDU [11:54:51]CAPDU: 80 11 00 00 [11:54:51]Write to MH i2c: E2 08 00 EE 02 80 11 00 00 00 00 00 00 6A [11:54:51]Write i2c OK [11:54:51]MH_I2C_Read... [11:54:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:51]Read from MH i2c: E2 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: E2 17 00 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: E2 17 00 EE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BF [11:54:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:54:51]wFMCommunicate OK [11:54:51]requested_item fd.num is exist - process it [11:54:51]SAM_PROTO_GetFieldsCounters [11:54:51]wFMCommunicate request_size=4 [11:54:51]MH_SAM_APDU [11:54:51]CAPDU: 80 13 00 00 [11:54:51]Write to MH i2c: E2 08 00 EF 02 80 13 00 00 00 00 00 00 6D [11:54:51]Write i2c OK [11:54:51]MH_I2C_Read... [11:54:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:51]Read from MH i2c: E2 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: E2 62 00 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: E2 62 00 EF 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D8 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [11:54:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D8 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:54:51]wFMCommunicate OK [11:54:51]SAM_PROTO_GetFieldsCounters done [11:54:51]requested_item shift.num is exist - process it [11:54:51]requested_item shift.opened is exist - process it [11:54:51]req_shift_opened [11:54:51]FM_GetShiftState [11:54:51]SAM_PROTO_GetShiftState [11:54:51]wFMCommunicate request_size=4 [11:54:51]MH_SAM_APDU [11:54:51]CAPDU: 80 13 01 00 [11:54:51]Write to MH i2c: E2 08 00 F0 02 80 13 01 00 00 00 00 00 6F [11:54:51]Write i2c OK [11:54:51]MH_I2C_Read... [11:54:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:51]Read from MH i2c: E2 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: E2 0E 00 [11:54:51]MH_I2C_Read... [11:54:51]Read from MH i2c: E2 0E 00 F0 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 7E [11:54:51]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:54:51]wFMCommunicate OK [11:54:51]SAM_PROTO_GetShiftState done [11:54:51]FM_GetShiftState done [11:54:51]req_shift_opened done [11:54:51]requested_item shift.open_date is exist - process it [11:54:51]req_shift_open_date [11:54:51]req_shift_open_date done [11:54:51]produce_requested_data done [11:54:51]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201432,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:54:51]process_action_free close_receipt [11:54:51]json_value_free [11:54:51]json_value_free done [11:54:51]process_json_proto returns [11:54:51]Send response to host [11:54:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201432,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:54:51]free response buf [11:54:51]execute_script done [11:54:51]execute_script returns [11:54:51]free content buf [11:54:51]Sock 8.Close socket [11:54:51]Sock 8.Thread stoped [11:54:55]OFD Sender: No OFD packet to send [11:55:00]OFD Sender: No OFD packet to send [11:55:05]OFD Sender: No OFD packet to send [11:55:10]OFD Sender: No OFD packet to send [11:55:15]OFD Sender: No OFD packet to send [11:55:20]OFD Sender: No OFD packet to send [11:55:25]OFD Sender: No OFD packet to send [11:55:30]OFD Sender: No OFD packet to send [11:55:35]OFD Sender: No OFD packet to send [11:55:40]OFD Sender: No OFD packet to send [11:55:45]OFD Sender: No OFD packet to send [11:55:50]OFD Sender: No OFD packet to send [11:55:55]OFD Sender: No OFD packet to send [11:56:00]OFD Sender: No OFD packet to send [11:56:05]OFD Sender: No OFD packet to send [11:56:10]OFD Sender: No OFD packet to send [11:56:15]OFD Sender: No OFD packet to send [11:56:20]OFD Sender: No OFD packet to send [11:56:25]OFD Sender: No OFD packet to send [11:56:30]OFD Sender: No OFD packet to send [11:56:35]OFD Sender: No OFD packet to send [11:56:40]OFD Sender: No OFD packet to send [11:56:45]OFD Sender: No OFD packet to send [11:56:50]OFD Sender: No OFD packet to send [11:56:53]accept exits with 9 [11:56:53]New connection [11:56:53]New thread 3066834276 created [11:56:53]Thread 3066690916 joined [11:56:53]Waiting for new connection... [11:56:53] Sock 9.Parse request [11:56:53]Sock 9.Check first char [11:56:53]Sock 9.First char is OK [11:56:53]request: POST /json_proto HTTP/1.0 [11:56:53]Method: POST [11:56:53]URL: /json_proto [11:56:53]Method is POST - this is cgi request [11:56:53]url: /json_proto [11:56:53]query_string will be loaded in cgi processing [11:56:53]execute_cgi json_proto POST (null) [11:56:53]execute_cgi path=json_proto method=POST [11:56:53]POST find Content-Length [11:56:53]Host: 172.17.63.195:8080 [11:56:53]Content-Length: 678 [11:56:53]Content-Type: application/json [11:56:53] [11:56:53]POST finish read [11:56:53]Found Content-Length = 678 [11:56:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.220, "sum" : 750.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:53]execute_script... [11:56:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.220, "sum" : 750.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:53]POST & json_proto [11:56:53]process_json_proto [11:56:53]json parsed OK: [11:56:53]protocol is kg_v1.0 [11:56:53]action value=close_receipt [11:56:53]process_action close_receipt [11:56:53]cmd_close_receipt [11:56:53]MH_GetDate [11:56:53]Write to MH i2c: F0 00 00 F1 02 E2 [11:56:53]Write i2c OK [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: F0 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: F0 09 00 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: F0 09 00 F1 02 00 05 D9 1C 67 68 46 19 67 7A [11:56:53]GetLastDocTimeStamp 1729943687 [11:56:53]current date 1729943813 [11:56:53]FM_GetShiftState [11:56:53]SAM_PROTO_GetShiftState [11:56:53]wFMCommunicate request_size=4 [11:56:53]MH_SAM_APDU [11:56:53]CAPDU: 80 13 01 00 [11:56:53]Write to MH i2c: E2 08 00 F2 02 80 13 01 00 00 00 00 00 71 [11:56:53]Write i2c OK [11:56:53]MH_I2C_Read... [11:56:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:53]Read from MH i2c: E2 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: E2 0E 00 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: E2 0E 00 F2 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 80 [11:56:53]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:56:53]wFMCommunicate OK [11:56:53]SAM_PROTO_GetShiftState done [11:56:53]FM_GetShiftState done [11:56:53]opened in 1729900879 [11:56:53]opened+sec_in_day 1729987279 [11:56:53]quantity*price = 75061 [11:56:53]sum+1 = 75063 [11:56:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.71 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 195 26.10.2024 11:56 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201433 ФПД: 67080003248466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115653&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201433&fm=67080003248466&tin=02508201610067®Number=0000000000091777&sum=75000 [11:56:54]StoreToDocumentArchive [11:56:54]shift 543 fd 201433 [11:56:54]save to /storage/0543/doc_00201433 [11:56:54]save last doc name /storage/0543/doc_00201433 to /storage/kkm_last_doc_name [11:56:54]save OK [11:56:54]Clear old archive folders... [11:56:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:56:54]tlvbuf is 01EFF6C0 [11:56:54]SAM_PROTO_ClearQueue [11:56:54]wFMCommunicate request_size=4 [11:56:54]MH_SAM_APDU [11:56:54]CAPDU: 80 09 00 00 [11:56:54]Write to MH i2c: E2 08 00 FF 02 80 09 00 00 00 00 00 00 73 [11:56:54]Write i2c OK [11:56:54]MH_I2C_Read... [11:56:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:56:54]Read from MH i2c: E2 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: E2 03 00 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: E2 03 00 FF 02 00 90 00 75 [11:56:54]RAPDU: 90 00 [11:56:54]wFMCommunicate OK [11:56:54]SAM_PROTO_ClearQueue done [11:56:54]KKMCreateOFDPacket [11:56:54]OFDProtocolAddRootSTLVToBuf [11:56:54]FM_MakeSignedData [11:56:54]FM_MakeSignedData [11:56:54]SAM_PROTO_SignData [11:56:54]wFMCommunicate request_size=4 [11:56:54]MH_SAM_APDU [11:56:54]CAPDU: 80 0D 01 02 [11:56:54]Write to MH i2c: E2 08 00 00 03 80 0D 01 02 00 00 00 00 7C [11:56:54]Write i2c OK [11:56:54]MH_I2C_Read... [11:56:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:56:54]Read from MH i2c: E2 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: E2 03 00 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: E2 03 00 00 03 00 90 00 77 [11:56:54]RAPDU: 90 00 [11:56:54]wFMCommunicate OK [11:56:54]wFMCommunicate request_size=255 [11:56:54]MH_SAM_APDU [11:56: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 32 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 05 D9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D9 12 03 00 35 04 06 00 3D [11:56:54]Write to MH i2c: E2 02 01 01 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 32 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 05 D9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D9 12 03 00 35 04 06 00 3D 00 00 A8 [11:56:54]Write i2c OK [11:56:54]MH_I2C_Read... [11:56:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:54]Read from MH i2c: E2 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: E2 03 00 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: E2 03 00 01 03 00 90 00 78 [11:56:54]RAPDU: 90 00 [11:56:54]wFMCommunicate OK [11:56:54]wFMCommunicate request_size=10 [11:56:54]MH_SAM_APDU [11:56:54]CAPDU: 80 0D 02 02 05 02 47 C3 E1 52 [11:56:54]Write to MH i2c: E2 0D 00 02 03 80 0D 02 02 05 00 02 47 C3 E1 52 00 00 C8 [11:56:54]Write i2c OK [11:56:54]MH_I2C_Read... [11:56:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:54]Read from MH i2c: E2 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: E2 03 00 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: E2 03 00 02 03 00 90 00 79 [11:56:54]RAPDU: 90 00 [11:56:54]wFMCommunicate OK [11:56:54]wFMCommunicate request_size=4 [11:56:54]MH_SAM_APDU [11:56:54]CAPDU: 80 0D 03 02 [11:56:54]Write to MH i2c: E2 08 00 03 03 80 0D 03 02 00 00 00 00 81 [11:56:54]Write i2c OK [11:56:54]MH_I2C_Read... [11:56:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:56:54]Read from MH i2c: E2 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: E2 0B 00 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: E2 0B 00 03 03 00 17 18 88 A0 AF EA EE A3 90 00 03 [11:56:54]RAPDU: 17 18 88 A0 AF EA EE A3 90 00 [11:56:54]wFMCommunicate OK [11:56:54]SAM_PROTO_SignData done [11:56:54]FM_MakeSignedData done [11:56:54]CreateOFDProtocolMessage [11:56:54]wFMCommunicate request_size=4 [11:56:54]MH_SAM_APDU [11:56:54]CAPDU: 80 11 00 00 [11:56:54]Write to MH i2c: E2 08 00 04 03 80 11 00 00 00 00 00 00 81 [11:56:54]Write i2c OK [11:56:54]MH_I2C_Read... [11:56:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:54]Read from MH i2c: E2 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: E2 17 00 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: E2 17 00 04 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D6 [11:56:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:56:54]wFMCommunicate OK [11:56:54]CreateOFDProtocolMessage done [11:56:54]OFDSenderStorePacket 201433 [11:56:54]StoreOFDPacket docnum=201433 [11:56:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 9C D7 07 01 60 39 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 32 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 05 D9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D9 12 03 00 35 04 06 00 3D 02 47 C3 E1 52 17 18 88 A0 AF EA EE A3 [11:56:54]CheckFolder [11:56:54]dirname=/storage/ofd_packets [11:56:54]CheckFolder done [11:56:54]ProducePacketName [11:56:54]name=ofd_packets/00201433 [11:56:54]NVStorageSaveData ofd_packets/00201433 [11:56:54]File name is /storage/ofd_packets/00201433 [11:56:54]Write 301 bytes [11:56:54]NVStorageSaveData done [11:56:54]OFDSenderStorePacket done [11:56:54]KKMCreateOFDPacket done [11:56:54]NVStorageSaveData kkm_last_timestamp [11:56:54]File name is /storage/kkm_last_timestamp [11:56:54]Write 4 bytes [11:56:54]NVStorageSaveData done [11:56:54]ExternCall_PrintAddStr [11:56:54]wPrintStart [11:56:54]Write to MH i2c: 01 00 00 05 03 08 [11:56:54]Write i2c OK [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: 01 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: 01 07 00 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: 01 07 00 05 03 00 00 00 00 00 FF 0F 1D [11:56:54]RasterBufferAndPrint [11:56:54]line Счет N : (1)449182 [11:56:54]line ИНН: 02508201610067 [11:56:54]line Контрольно-Кассовый Чек [11:56:54]line ПРОДАЖА [11:56:54]line ТРК (МРК, ГНК) : 41 [11:56:54]line Товар: 2710124130 [11:56:54]line Аи-92-К-2 [11:56:54]line 11.220 * 66.90 [11:56:54]line = 750.62 [11:56:54]line НДС 12% НСП 1% [11:56:54]line > о реализуемом товаре [11:56:54]line ОКРУГЛЕНИЕ: -0.62 [11:56:54]line ИТОГО: 750.00 [11:56:54]line Внесено: 750.00 [11:56:54]line СДАЧА: 0.00 [11:56:54]line НСП 1% : 6.64 [11:56:54]line НДС 12% : 79.71 [11:56:54]line Наличными: 750.00 [11:56:54]line Безнал.: 0.00 [11:56:54]line Место: АЗС № 171 "Партнер Нефть" [11:56:54]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:56:54]line СНО: Общий режим [11:56:54]line Чек 195 26.10.2024 11:56 [11:56:54]line Смена: 543 ФФД: 1.0 [11:56:54]line ЗНМ: 0300000109 [11:56:54]line РНМ: 0000000000091777 [11:56:54]line Версия ККМ: 001 [11:56:54]line ФМ: 0000000000871756 [11:56:54]line ФД: 201433 [11:56:54]line ФПД: 67080003248466 [11:56:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115653&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201433&fm=67080003248466&tin=02508201610067®Number=0000000000091777&sum=75000 [11:56:55]OFD Sender: Processing packet 201433 [packets to send 112, broken 111] [11:56:55]ProducePacketName [11:56:55]name=ofd_packets/00201433 [11:56:55]OFD Sender: To server: pG, [11:56:55]CommunicateWithHost lk.salyk.kg:30040 [11:56:55]ConnectInit lk.salyk.kg [11:56:55]written 0, free lines is 4095 [11:56:55]Connected sock=10 [11:56:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 9C D7 07 01 60 39 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 32 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 05 D9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D9 12 03 00 35 04 06 00 3D 02 47 C3 E1 52 17 18 88 A0 AF EA EE A3 [11:56:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D7 C0 47 00 C5 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D9 12 03 00 F4 03 04 00 AE 84 1C 67 B6 04 01 00 00 DB 7D 7A 7D 33 F0 25 AF [11:56:55]CommunicateWithHost err = 0 [11:56:55]CheckOFDResponse [11:56:55]1017 (14) - 77093643461234 [11:56:55]1041 (16) - 0000000000871756 [11:56:55]1040 (4) - 201433 [11:56:55]1012 (4) - 26.10.2024 05:57 [11:56:55]1206 (1) - 0 [11:56:55]OFD Sender: Remove packet 201433 [11:56:55]ProducePacketName [11:56:55]name=ofd_packets/00201433 [11:56:55]NVStorageDeleteData [11:56:55]Write to MH i2c: 01 00 00 30 03 33 [11:56:55]Write i2c OK [11:56:55]MH_I2C_Read... [11:56:55]Read from MH i2c: 01 [11:56:55]MH_I2C_Read... [11:56:55]Read from MH i2c: 01 07 00 [11:56:55]MH_I2C_Read... [11:56:55]Read from MH i2c: 01 07 00 30 03 00 00 00 00 00 92 0C D8 [11:56:55]RasterBufferAndPrint [11:56:55]line [11:56:55]line [11:56:55]line [11:56:55]line [11:56:55]line [11:56:55]written 0, free lines is 3223 [11:56:55]MH_Cut [11:56:55]Write to MH i2c: D1 01 00 37 03 01 0C [11:56:55]Write i2c OK [11:56:55]MH_I2C_Read... [11:56:55]Read from MH i2c: D1 [11:56:55]MH_I2C_Read... [11:56:55]Read from MH i2c: D1 01 00 [11:56:55]MH_I2C_Read... [11:56:55]Read from MH i2c: D1 01 00 37 03 00 0B [11:56:55]Write to MH i2c: 01 00 00 38 03 3B [11:56:55]Write i2c OK [11:56:55]MH_I2C_Read... [11:56:56]OFD Sender: No OFD packet to send [11:56:56]*** Cut start [11:56:56]*** Purtial cut [11:56:56]*** Stage 1: CUTSNS_PIN = 1 [11:56:56]Read from MH i2c: 01 [11:56:56]MH_I2C_Read... [11:56:56]*** Stop cut motor [11:56:56]*** Cut end [11:56:56]Read from MH i2c: 01 07 00 [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: 01 07 00 38 03 00 00 00 00 00 FF 0F 50 [11:56:56]process_action close_receipt done [11:56:56]requested_data is exist [11:56:56]produce_requested_data [11:56:56]requested_item fm.sn is exist - process it [11:56:56]wFMCommunicate request_size=4 [11:56:56]MH_SAM_APDU [11:56:56]CAPDU: 80 11 00 00 [11:56:56]Write to MH i2c: E2 08 00 39 03 80 11 00 00 00 00 00 00 B6 [11:56:56]Write i2c OK [11:56:56]MH_I2C_Read... [11:56:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:56]Read from MH i2c: E2 [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: E2 17 00 [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: E2 17 00 39 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0B [11:56:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:56:56]wFMCommunicate OK [11:56:56]requested_item fd.num is exist - process it [11:56:56]SAM_PROTO_GetFieldsCounters [11:56:56]wFMCommunicate request_size=4 [11:56:56]MH_SAM_APDU [11:56:56]CAPDU: 80 13 00 00 [11:56:56]Write to MH i2c: E2 08 00 3A 03 80 13 00 00 00 00 00 00 B9 [11:56:56]Write i2c OK [11:56:56]MH_I2C_Read... [11:56:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:56]Read from MH i2c: E2 [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: E2 62 00 [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: E2 62 00 3A 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D9 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [11:56:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D9 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:56:56]wFMCommunicate OK [11:56:56]SAM_PROTO_GetFieldsCounters done [11:56:56]requested_item shift.num is exist - process it [11:56:56]requested_item shift.opened is exist - process it [11:56:56]req_shift_opened [11:56:56]FM_GetShiftState [11:56:56]SAM_PROTO_GetShiftState [11:56:56]wFMCommunicate request_size=4 [11:56:56]MH_SAM_APDU [11:56:56]CAPDU: 80 13 01 00 [11:56:56]Write to MH i2c: E2 08 00 3B 03 80 13 01 00 00 00 00 00 BB [11:56:56]Write i2c OK [11:56:56]MH_I2C_Read... [11:56:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:57]Read from MH i2c: E2 [11:56:57]MH_I2C_Read... [11:56:57]Read from MH i2c: E2 0E 00 [11:56:57]MH_I2C_Read... [11:56:57]Read from MH i2c: E2 0E 00 3B 03 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 CA [11:56:57]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:56:57]wFMCommunicate OK [11:56:57]SAM_PROTO_GetShiftState done [11:56:57]FM_GetShiftState done [11:56:57]req_shift_opened done [11:56:57]requested_item shift.open_date is exist - process it [11:56:57]req_shift_open_date [11:56:57]req_shift_open_date done [11:56:57]produce_requested_data done [11:56:57]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201433,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:56:57]process_action_free close_receipt [11:56:57]json_value_free [11:56:57]json_value_free done [11:56:57]process_json_proto returns [11:56:57]Send response to host [11:56:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201433,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:56:57]free response buf [11:56:57]execute_script done [11:56:57]execute_script returns [11:56:57]free content buf [11:56:57]Sock 9.Close socket [11:56:57]Sock 9.Thread stoped [11:57:01]OFD Sender: No OFD packet to send [11:57:06]OFD Sender: No OFD packet to send [11:57:11]OFD Sender: No OFD packet to send [11:57:16]OFD Sender: No OFD packet to send [11:57:21]OFD Sender: No OFD packet to send [11:57:26]OFD Sender: No OFD packet to send [11:57:31]OFD Sender: No OFD packet to send [11:57:36]OFD Sender: No OFD packet to send [11:57:41]OFD Sender: No OFD packet to send [11:57:46]OFD Sender: No OFD packet to send [11:57:51]OFD Sender: No OFD packet to send [11:57:56]OFD Sender: No OFD packet to send [11:58:01]OFD Sender: No OFD packet to send [11:58:06]OFD Sender: No OFD packet to send [11:58:11]OFD Sender: No OFD packet to send [11:58:16]OFD Sender: No OFD packet to send [11:58:21]OFD Sender: No OFD packet to send [11:58:26]OFD Sender: No OFD packet to send [11:58:31]OFD Sender: No OFD packet to send [11:58:36]OFD Sender: No OFD packet to send [11:58:41]OFD Sender: No OFD packet to send [11:58:46]OFD Sender: No OFD packet to send [11:58:51]OFD Sender: No OFD packet to send [11:58:56]OFD Sender: No OFD packet to send [11:59:01]OFD Sender: No OFD packet to send [11:59:06]OFD Sender: No OFD packet to send [11:59:11]OFD Sender: No OFD packet to send [11:59:16]OFD Sender: No OFD packet to send [11:59:21]OFD Sender: No OFD packet to send [11:59:22]accept exits with 8 [11:59:22]New connection [11:59:22]New thread 3066690916 created [11:59:22]Thread 3066834276 joined [11:59:22]Waiting for new connection... [11:59:22] Sock 8.Parse request [11:59:22]Sock 8.Check first char [11:59:22]Sock 8.First char is OK [11:59:22]request: POST /json_proto HTTP/1.0 [11:59:22]Method: POST [11:59:22]URL: /json_proto [11:59:22]Method is POST - this is cgi request [11:59:22]url: /json_proto [11:59:22]query_string will be loaded in cgi processing [11:59:22]execute_cgi json_proto POST (null) [11:59:22]execute_cgi path=json_proto method=POST [11:59:22]POST find Content-Length [11:59:22]Host: 172.17.63.195:8080 [11:59:22]Content-Length: 682 [11:59:22]Content-Type: application/json [11:59:22] [11:59:22]POST finish read [11:59:22]Found Content-Length = 682 [11:59:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:59:22]execute_script... [11:59:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [11:59:22]POST & json_proto [11:59:22]process_json_proto [11:59:22]json parsed OK: [11:59:22]protocol is kg_v1.0 [11:59:22]action value=close_receipt [11:59:22]process_action close_receipt [11:59:22]cmd_close_receipt [11:59:22]MH_GetDate [11:59:22]Write to MH i2c: F0 00 00 3C 03 2E [11:59:22]Write i2c OK [11:59:22]MH_I2C_Read... [11:59:22]Read from MH i2c: F0 [11:59:22]MH_I2C_Read... [11:59:22]Read from MH i2c: F0 09 00 [11:59:22]MH_I2C_Read... [11:59:22]Read from MH i2c: F0 09 00 3C 03 00 9B D9 1C 67 68 46 19 67 5C [11:59:22]GetLastDocTimeStamp 1729943813 [11:59:22]current date 1729943963 [11:59:22]FM_GetShiftState [11:59:22]SAM_PROTO_GetShiftState [11:59:22]wFMCommunicate request_size=4 [11:59:22]MH_SAM_APDU [11:59:22]CAPDU: 80 13 01 00 [11:59:22]Write to MH i2c: E2 08 00 3D 03 80 13 01 00 00 00 00 00 BD [11:59:22]Write i2c OK [11:59:22]MH_I2C_Read... [11:59:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:22]Read from MH i2c: E2 [11:59:22]MH_I2C_Read... [11:59:22]Read from MH i2c: E2 0E 00 [11:59:22]MH_I2C_Read... [11:59:22]Read from MH i2c: E2 0E 00 3D 03 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 CC [11:59:22]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:59:22]wFMCommunicate OK [11:59:22]SAM_PROTO_GetShiftState done [11:59:22]FM_GetShiftState done [11:59:22]opened in 1729900879 [11:59:22]opened+sec_in_day 1729987279 [11:59:22]quantity*price = 100015 [11:59:22]sum+1 = 100017 [11:59:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 196 26.10.2024 11:59 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201434 ФПД: 210083342358618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115923&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201434&fm=210083342358618&tin=02508201610067®Number=0000000000091777&sum=100000 [11:59:23]StoreToDocumentArchive [11:59:23]shift 543 fd 201434 [11:59:23]save to /storage/0543/doc_00201434 [11:59:23]save last doc name /storage/0543/doc_00201434 to /storage/kkm_last_doc_name [11:59:23]save OK [11:59:23]Clear old archive folders... [11:59:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:59:23]tlvbuf is 01F04090 [11:59:23]SAM_PROTO_ClearQueue [11:59:23]wFMCommunicate request_size=4 [11:59:23]MH_SAM_APDU [11:59:23]CAPDU: 80 09 00 00 [11:59:23]Write to MH i2c: E2 08 00 4A 03 80 09 00 00 00 00 00 00 BF [11:59:23]Write i2c OK [11:59:23]MH_I2C_Read... [11:59:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:23]Read from MH i2c: E2 [11:59:23]MH_I2C_Read... [11:59:23]Read from MH i2c: E2 03 00 [11:59:23]MH_I2C_Read... [11:59:23]Read from MH i2c: E2 03 00 4A 03 00 90 00 C1 [11:59:23]RAPDU: 90 00 [11:59:23]wFMCommunicate OK [11:59:23]SAM_PROTO_ClearQueue done [11:59:23]KKMCreateOFDPacket [11:59:23]OFDProtocolAddRootSTLVToBuf [11:59:23]FM_MakeSignedData [11:59:23]FM_MakeSignedData [11:59:23]SAM_PROTO_SignData [11:59:23]wFMCommunicate request_size=4 [11:59:23]MH_SAM_APDU [11:59:23]CAPDU: 80 0D 01 02 [11:59:23]Write to MH i2c: E2 08 00 4B 03 80 0D 01 02 00 00 00 00 C7 [11:59:23]Write i2c OK [11:59:23]MH_I2C_Read... [11:59:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:23]Read from MH i2c: E2 [11:59:23]MH_I2C_Read... [11:59:23]Read from MH i2c: E2 03 00 [11:59:23]MH_I2C_Read... [11:59:23]Read from MH i2c: E2 03 00 4B 03 00 90 00 C2 [11:59:23]RAPDU: 90 00 [11:59:23]wFMCommunicate OK [11:59:23]wFMCommunicate request_size=255 [11:59:23]MH_SAM_APDU [11:59:23]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 32 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 C4 00 00 00 F4 03 04 00 9B D9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DA 12 03 00 35 04 06 00 BF [11:59:23]Write to MH i2c: E2 02 01 4C 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 32 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 C4 00 00 00 F4 03 04 00 9B D9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DA 12 03 00 35 04 06 00 BF 00 00 DF [11:59:23]Write i2c OK [11:59:23]MH_I2C_Read... [11:59:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:24]Read from MH i2c: E2 [11:59:24]MH_I2C_Read... [11:59:24]Read from MH i2c: E2 03 00 [11:59:24]MH_I2C_Read... [11:59:24]Read from MH i2c: E2 03 00 4C 03 00 90 00 C3 [11:59:24]RAPDU: 90 00 [11:59:24]wFMCommunicate OK [11:59:24]wFMCommunicate request_size=10 [11:59:24]MH_SAM_APDU [11:59:24]CAPDU: 80 0D 02 02 05 11 D6 FE 98 5A [11:59:24]Write to MH i2c: E2 0D 00 4D 03 80 0D 02 02 05 00 11 D6 FE 98 5A 00 00 AB [11:59:24]Write i2c OK [11:59:24]MH_I2C_Read... [11:59:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:24]Read from MH i2c: E2 [11:59:24]MH_I2C_Read... [11:59:24]Read from MH i2c: E2 03 00 [11:59:24]MH_I2C_Read... [11:59:24]Read from MH i2c: E2 03 00 4D 03 00 90 00 C4 [11:59:24]RAPDU: 90 00 [11:59:24]wFMCommunicate OK [11:59:24]wFMCommunicate request_size=4 [11:59:24]MH_SAM_APDU [11:59:24]CAPDU: 80 0D 03 02 [11:59:24]Write to MH i2c: E2 08 00 4E 03 80 0D 03 02 00 00 00 00 CC [11:59:24]Write i2c OK [11:59:24]MH_I2C_Read... [11:59:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:24]Read from MH i2c: E2 [11:59:24]MH_I2C_Read... [11:59:24]Read from MH i2c: E2 0B 00 [11:59:24]MH_I2C_Read... [11:59:24]Read from MH i2c: E2 0B 00 4E 03 00 85 FB D9 80 15 48 2B 05 90 00 33 [11:59:24]RAPDU: 85 FB D9 80 15 48 2B 05 90 00 [11:59:24]wFMCommunicate OK [11:59:24]SAM_PROTO_SignData done [11:59:24]FM_MakeSignedData done [11:59:24]CreateOFDProtocolMessage [11:59:24]wFMCommunicate request_size=4 [11:59:24]MH_SAM_APDU [11:59:24]CAPDU: 80 11 00 00 [11:59:24]Write to MH i2c: E2 08 00 4F 03 80 11 00 00 00 00 00 00 CC [11:59:24]Write i2c OK [11:59:24]MH_I2C_Read... [11:59:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:24]Read from MH i2c: E2 [11:59:24]MH_I2C_Read... [11:59:24]Read from MH i2c: E2 17 00 [11:59:24]MH_I2C_Read... [11:59:24]Read from MH i2c: E2 17 00 4F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 21 [11:59:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:59:24]wFMCommunicate OK [11:59:24]CreateOFDProtocolMessage done [11:59:24]OFDSenderStorePacket 201434 [11:59:24]StoreOFDPacket docnum=201434 [11:59:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 71 F0 07 01 12 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 32 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 C4 00 00 00 F4 03 04 00 9B D9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DA 12 03 00 35 04 06 00 BF 11 D6 FE 98 5A 85 FB D9 80 15 48 2B 05 [11:59:24]CheckFolder [11:59:24]dirname=/storage/ofd_packets [11:59:24]CheckFolder done [11:59:24]ProducePacketName [11:59:24]name=ofd_packets/00201434 [11:59:24]NVStorageSaveData ofd_packets/00201434 [11:59:24]File name is /storage/ofd_packets/00201434 [11:59:24]Write 301 bytes [11:59:24]NVStorageSaveData done [11:59:24]OFDSenderStorePacket done [11:59:24]KKMCreateOFDPacket done [11:59:24]NVStorageSaveData kkm_last_timestamp [11:59:24]File name is /storage/kkm_last_timestamp [11:59:24]Write 4 bytes [11:59:24]NVStorageSaveData done [11:59:24]ExternCall_PrintAddStr [11:59:24]wPrintStart [11:59:24]Write to MH i2c: 01 00 00 50 03 53 [11:59:24]Write i2c OK [11:59:24]MH_I2C_Read... [11:59:24]Read from MH i2c: 01 [11:59:24]MH_I2C_Read... [11:59:24]Read from MH i2c: 01 07 00 [11:59:24]MH_I2C_Read... [11:59:24]Read from MH i2c: 01 07 00 50 03 00 00 00 00 00 FF 0F 68 [11:59:24]RasterBufferAndPrint [11:59:24]line Счет N : (1)449183 [11:59:24]line ИНН: 02508201610067 [11:59:24]line Контрольно-Кассовый Чек [11:59:24]line ПРОДАЖА [11:59:24]line ТРК (МРК, ГНК) : 52 [11:59:24]line Товар: 2710124130 [11:59:24]line Аи-92-К-2 [11:59:24]line 14.950 * 66.90 [11:59:24]line = 1000.16 [11:59:24]line НДС 12% НСП 1% [11:59:24]line > о реализуемом товаре [11:59:24]line ОКРУГЛЕНИЕ: -0.16 [11:59:24]line ИТОГО: 1000.00 [11:59:24]line Внесено: 1000.00 [11:59:24]line СДАЧА: 0.00 [11:59:24]line НСП 1% : 8.85 [11:59:24]line НДС 12% : 106.21 [11:59:24]line Наличными: 1000.00 [11:59:24]line Безнал.: 0.00 [11:59:24]line Место: АЗС № 171 "Партнер Нефть" [11:59:24]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:59:24]line СНО: Общий режим [11:59:24]line Чек 196 26.10.2024 11:59 [11:59:24]line Смена: 543 ФФД: 1.0 [11:59:24]line ЗНМ: 0300000109 [11:59:24]line РНМ: 0000000000091777 [11:59:24]line Версия ККМ: 001 [11:59:24]line ФМ: 0000000000871756 [11:59:24]line ФД: 201434 [11:59:24]line ФПД: 210083342358618 [11:59:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115923&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201434&fm=210083342358618&tin=02508201610067®Number=0000000000091777&sum=100000 [11:59:24]OFD Sender: Processing packet 201434 [packets to send 112, broken 111] [11:59:24]ProducePacketName [11:59:24]name=ofd_packets/00201434 [11:59:24]OFD Sender: To server: pG, [11:59:24]CommunicateWithHost lk.salyk.kg:30040 [11:59:24]ConnectInit lk.salyk.kg [11:59:24]written 0, free lines is 4095 [11:59:24]Connected sock=10 [11:59:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 71 F0 07 01 12 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 32 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 C4 00 00 00 F4 03 04 00 9B D9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DA 12 03 00 35 04 06 00 BF 11 D6 FE 98 5A 85 FB D9 80 15 48 2B 05 [11:59:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E4 77 47 00 EB 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DA 12 03 00 F4 03 04 00 44 85 1C 67 B6 04 01 00 00 BB 2C E3 89 BD 54 34 85 [11:59:24]CommunicateWithHost err = 0 [11:59:24]CheckOFDResponse [11:59:24]1017 (14) - 77093643461234 [11:59:24]1041 (16) - 0000000000871756 [11:59:24]1040 (4) - 201434 [11:59:24]1012 (4) - 26.10.2024 05:59 [11:59:24]1206 (1) - 0 [11:59:24]OFD Sender: Remove packet 201434 [11:59:24]ProducePacketName [11:59:24]name=ofd_packets/00201434 [11:59:24]NVStorageDeleteData [11:59:25]Write to MH i2c: 01 00 00 7B 03 7E [11:59:25]Write i2c OK [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: 01 [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: 01 07 00 [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: 01 07 00 7B 03 00 00 00 00 00 96 0C 27 [11:59:25]RasterBufferAndPrint [11:59:25]line [11:59:25]line [11:59:25]line [11:59:25]line [11:59:25]line [11:59:25]written 0, free lines is 3226 [11:59:25]MH_Cut [11:59:25]Write to MH i2c: D1 01 00 82 03 01 57 [11:59:25]Write i2c OK [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: D1 [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: D1 01 00 [11:59:25]MH_I2C_Read... [11:59:25]Read from MH i2c: D1 01 00 82 03 00 56 [11:59:25]Write to MH i2c: 01 00 00 83 03 86 [11:59:25]Write i2c OK [11:59:25]MH_I2C_Read... [11:59:25]OFD Sender: No OFD packet to send [11:59:26]*** Cut start [11:59:26]*** Purtial cut [11:59:26]*** Stage 1: CUTSNS_PIN = 1 [11:59:26]Read from MH i2c: 01 [11:59:26]MH_I2C_Read... [11:59:26]*** Stop cut motor [11:59:26]*** Cut end [11:59:26]Read from MH i2c: 01 07 00 [11:59:26]MH_I2C_Read... [11:59:26]Read from MH i2c: 01 07 00 83 03 00 00 00 00 00 FF 0F 9B [11:59:26]process_action close_receipt done [11:59:26]requested_data is exist [11:59:26]produce_requested_data [11:59:26]requested_item fm.sn is exist - process it [11:59:26]wFMCommunicate request_size=4 [11:59:26]MH_SAM_APDU [11:59:26]CAPDU: 80 11 00 00 [11:59:26]Write to MH i2c: E2 08 00 84 03 80 11 00 00 00 00 00 00 01 [11:59:26]Write i2c OK [11:59:26]MH_I2C_Read... [11:59:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:26]Read from MH i2c: E2 [11:59:26]MH_I2C_Read... [11:59:26]Read from MH i2c: E2 17 00 [11:59:26]MH_I2C_Read... [11:59:26]Read from MH i2c: E2 17 00 84 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 56 [11:59:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:59:26]wFMCommunicate OK [11:59:26]requested_item fd.num is exist - process it [11:59:26]SAM_PROTO_GetFieldsCounters [11:59:26]wFMCommunicate request_size=4 [11:59:26]MH_SAM_APDU [11:59:26]CAPDU: 80 13 00 00 [11:59:26]Write to MH i2c: E2 08 00 85 03 80 13 00 00 00 00 00 00 04 [11:59:26]Write i2c OK [11:59:26]MH_I2C_Read... [11:59:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:26]Read from MH i2c: E2 [11:59:26]MH_I2C_Read... [11:59:26]Read from MH i2c: E2 62 00 [11:59:26]MH_I2C_Read... [11:59:26]Read from MH i2c: E2 62 00 85 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DA 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [11:59:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DA 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:59:26]wFMCommunicate OK [11:59:26]SAM_PROTO_GetFieldsCounters done [11:59:26]requested_item shift.num is exist - process it [11:59:26]requested_item shift.opened is exist - process it [11:59:26]req_shift_opened [11:59:26]FM_GetShiftState [11:59:26]SAM_PROTO_GetShiftState [11:59:26]wFMCommunicate request_size=4 [11:59:26]MH_SAM_APDU [11:59:26]CAPDU: 80 13 01 00 [11:59:26]Write to MH i2c: E2 08 00 86 03 80 13 01 00 00 00 00 00 06 [11:59:26]Write i2c OK [11:59:26]MH_I2C_Read... [11:59:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:26]Read from MH i2c: E2 [11:59:26]MH_I2C_Read... [11:59:26]Read from MH i2c: E2 0E 00 [11:59:26]MH_I2C_Read... [11:59:26]Read from MH i2c: E2 0E 00 86 03 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 15 [11:59:26]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:59:26]wFMCommunicate OK [11:59:26]SAM_PROTO_GetShiftState done [11:59:26]FM_GetShiftState done [11:59:26]req_shift_opened done [11:59:26]requested_item shift.open_date is exist - process it [11:59:26]req_shift_open_date [11:59:26]req_shift_open_date done [11:59:26]produce_requested_data done [11:59:26]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201434,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:59:26]process_action_free close_receipt [11:59:26]json_value_free [11:59:26]json_value_free done [11:59:26]process_json_proto returns [11:59:26]Send response to host [11:59:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201434,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:59:26]free response buf [11:59:26]execute_script done [11:59:26]execute_script returns [11:59:26]free content buf [11:59:26]Sock 8.Close socket [11:59:26]Sock 8.Thread stoped [11:59:30]OFD Sender: No OFD packet to send [11:59:35]OFD Sender: No OFD packet to send [11:59:40]OFD Sender: No OFD packet to send [11:59:45]OFD Sender: No OFD packet to send [11:59:50]accept exits with 9 [11:59:50]New connection [11:59:50]New thread 3066834276 created [11:59:50]Thread 3066690916 joined [11:59:50]Waiting for new connection... [11:59:50] Sock 9.Parse request [11:59:50]Sock 9.Check first char [11:59:50]Sock 9.First char is OK [11:59:50]request: POST /json_proto HTTP/1.0 [11:59:50]Method: POST [11:59:50]URL: /json_proto [11:59:50]Method is POST - this is cgi request [11:59:50]url: /json_proto [11:59:50]query_string will be loaded in cgi processing [11:59:50]execute_cgi json_proto POST (null) [11:59:50]execute_cgi path=json_proto method=POST [11:59:50]POST find Content-Length [11:59:50]Host: 172.17.63.195:8080 [11:59:50]Content-Length: 677 [11:59:50]Content-Type: application/json [11:59:50] [11:59:50]POST finish read [11:59:50]Found Content-Length = 677 [11:59:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:50]execute_script... [11:59: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)449184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:50]POST & json_proto [11:59:50]process_json_proto [11:59:50]json parsed OK: [11:59:50]protocol is kg_v1.0 [11:59:50]action value=close_receipt [11:59:50]process_action close_receipt [11:59:50]cmd_close_receipt [11:59:50]MH_GetDate [11:59:50]Write to MH i2c: F0 00 00 87 03 79 [11:59:50]Write i2c OK [11:59:50]MH_I2C_Read... [11:59:50]Read from MH i2c: F0 [11:59:50]MH_I2C_Read... [11:59:50]Read from MH i2c: F0 09 00 [11:59:50]MH_I2C_Read... [11:59:50]Read from MH i2c: F0 09 00 87 03 00 B6 D9 1C 67 68 46 19 67 C2 [11:59:50]GetLastDocTimeStamp 1729943963 [11:59:50]current date 1729943990 [11:59:50]FM_GetShiftState [11:59:50]SAM_PROTO_GetShiftState [11:59:50]wFMCommunicate request_size=4 [11:59:50]MH_SAM_APDU [11:59:50]CAPDU: 80 13 01 00 [11:59:50]Write to MH i2c: E2 08 00 88 03 80 13 01 00 00 00 00 00 08 [11:59:50]Write i2c OK [11:59:50]MH_I2C_Read... [11:59:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:50]Read from MH i2c: E2 [11:59:50]MH_I2C_Read... [11:59:50]Read from MH i2c: E2 0E 00 [11:59:50]MH_I2C_Read... [11:59:50]Read from MH i2c: E2 0E 00 88 03 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 17 [11:59:50]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:59:50]wFMCommunicate OK [11:59:50]SAM_PROTO_GetShiftState done [11:59:50]FM_GetShiftState done [11:59:50]opened in 1729900879 [11:59:50]opened+sec_in_day 1729987279 [11:59:50]quantity*price = 30038 [11:59:50]sum+1 = 30039 [11:59:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 197 26.10.2024 11:59 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201435 ФПД: 26653519077147 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115950&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201435&fm=26653519077147&tin=02508201610067®Number=0000000000091777&sum=30000 [11:59:51]StoreToDocumentArchive [11:59:51]shift 543 fd 201435 [11:59:51]save to /storage/0543/doc_00201435 [11:59:51]save last doc name /storage/0543/doc_00201435 to /storage/kkm_last_doc_name [11:59:51]save OK [11:59:51]Clear old archive folders... [11:59:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:59:51]tlvbuf is 01F7CA70 [11:59:51]SAM_PROTO_ClearQueue [11:59:51]wFMCommunicate request_size=4 [11:59:51]MH_SAM_APDU [11:59:51]CAPDU: 80 09 00 00 [11:59:51]Write to MH i2c: E2 08 00 95 03 80 09 00 00 00 00 00 00 0A [11:59:51]Write i2c OK [11:59:51]MH_I2C_Read... [11:59:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:51]Read from MH i2c: E2 [11:59:51]MH_I2C_Read... [11:59:51]Read from MH i2c: E2 03 00 [11:59:51]MH_I2C_Read... [11:59:51]Read from MH i2c: E2 03 00 95 03 00 90 00 0C [11:59:51]RAPDU: 90 00 [11:59:51]wFMCommunicate OK [11:59:51]SAM_PROTO_ClearQueue done [11:59:51]KKMCreateOFDPacket [11:59:51]OFDProtocolAddRootSTLVToBuf [11:59:51]FM_MakeSignedData [11:59:51]FM_MakeSignedData [11:59:51]SAM_PROTO_SignData [11:59:51]wFMCommunicate request_size=4 [11:59:51]MH_SAM_APDU [11:59:51]CAPDU: 80 0D 01 02 [11:59:51]Write to MH i2c: E2 08 00 96 03 80 0D 01 02 00 00 00 00 12 [11:59:51]Write i2c OK [11:59:51]MH_I2C_Read... [11:59:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:51]Read from MH i2c: E2 [11:59:51]MH_I2C_Read... [11:59:51]Read from MH i2c: E2 03 00 [11:59:51]MH_I2C_Read... [11:59:51]Read from MH i2c: E2 03 00 96 03 00 90 00 0D [11:59:51]RAPDU: 90 00 [11:59:51]wFMCommunicate OK [11:59:51]wFMCommunicate request_size=255 [11:59:51]MH_SAM_APDU [11:59: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 B6 D9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DB 12 03 00 35 04 06 00 18 [11:59:51]Write to MH i2c: E2 02 01 97 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 B6 D9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DB 12 03 00 35 04 06 00 18 00 00 9A [11:59:51]Write i2c OK [11:59:51]MH_I2C_Read... [11:59:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:51]Read from MH i2c: E2 [11:59:51]MH_I2C_Read... [11:59:51]Read from MH i2c: E2 03 00 [11:59:51]MH_I2C_Read... [11:59:51]Read from MH i2c: E2 03 00 97 03 00 90 00 0E [11:59:51]RAPDU: 90 00 [11:59:51]wFMCommunicate OK [11:59:51]wFMCommunicate request_size=10 [11:59:51]MH_SAM_APDU [11:59:51]CAPDU: 80 0D 02 02 05 3D C1 89 5F 1B [11:59:51]Write to MH i2c: E2 0D 00 98 03 80 0D 02 02 05 00 3D C1 89 5F 1B 00 00 20 [11:59:51]Write i2c OK [11:59:51]MH_I2C_Read... [11:59:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:51]Read from MH i2c: E2 [11:59:51]MH_I2C_Read... [11:59:51]Read from MH i2c: E2 03 00 [11:59:51]MH_I2C_Read... [11:59:51]Read from MH i2c: E2 03 00 98 03 00 90 00 0F [11:59:51]RAPDU: 90 00 [11:59:51]wFMCommunicate OK [11:59:51]wFMCommunicate request_size=4 [11:59:51]MH_SAM_APDU [11:59:51]CAPDU: 80 0D 03 02 [11:59:51]Write to MH i2c: E2 08 00 99 03 80 0D 03 02 00 00 00 00 17 [11:59:51]Write i2c OK [11:59:51]MH_I2C_Read... [11:59:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:52]Read from MH i2c: E2 [11:59:52]MH_I2C_Read... [11:59:52]Read from MH i2c: E2 0B 00 [11:59:52]MH_I2C_Read... [11:59:52]Read from MH i2c: E2 0B 00 99 03 00 65 4C 83 8E 2F 46 AF EE 90 00 EC [11:59:52]RAPDU: 65 4C 83 8E 2F 46 AF EE 90 00 [11:59:52]wFMCommunicate OK [11:59:52]SAM_PROTO_SignData done [11:59:52]FM_MakeSignedData done [11:59:52]CreateOFDProtocolMessage [11:59:52]wFMCommunicate request_size=4 [11:59:52]MH_SAM_APDU [11:59:52]CAPDU: 80 11 00 00 [11:59:52]Write to MH i2c: E2 08 00 9A 03 80 11 00 00 00 00 00 00 17 [11:59:52]Write i2c OK [11:59:52]MH_I2C_Read... [11:59:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:52]Read from MH i2c: E2 [11:59:52]MH_I2C_Read... [11:59:52]Read from MH i2c: E2 17 00 [11:59:52]MH_I2C_Read... [11:59:52]Read from MH i2c: E2 17 00 9A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6C [11:59:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:59:52]wFMCommunicate OK [11:59:52]CreateOFDProtocolMessage done [11:59:52]OFDSenderStorePacket 201435 [11:59:52]StoreOFDPacket docnum=201435 [11:59:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 84 1E 07 01 56 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 B6 D9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DB 12 03 00 35 04 06 00 18 3D C1 89 5F 1B 65 4C 83 8E 2F 46 AF EE [11:59:52]CheckFolder [11:59:52]dirname=/storage/ofd_packets [11:59:52]CheckFolder done [11:59:52]ProducePacketName [11:59:52]name=ofd_packets/00201435 [11:59:52]NVStorageSaveData ofd_packets/00201435 [11:59:52]File name is /storage/ofd_packets/00201435 [11:59:52]Write 301 bytes [11:59:52]NVStorageSaveData done [11:59:52]OFDSenderStorePacket done [11:59:52]KKMCreateOFDPacket done [11:59:52]NVStorageSaveData kkm_last_timestamp [11:59:52]File name is /storage/kkm_last_timestamp [11:59:52]Write 4 bytes [11:59:52]NVStorageSaveData done [11:59:52]ExternCall_PrintAddStr [11:59:52]wPrintStart [11:59:52]Write to MH i2c: 01 00 00 9B 03 9E [11:59:52]Write i2c OK [11:59:52]MH_I2C_Read... [11:59:52]Read from MH i2c: 01 [11:59:52]MH_I2C_Read... [11:59:52]Read from MH i2c: 01 07 00 [11:59:52]MH_I2C_Read... [11:59:52]Read from MH i2c: 01 07 00 9B 03 00 00 00 00 00 FF 0F B3 [11:59:52]RasterBufferAndPrint [11:59:52]line Счет N : (1)449184 [11:59:52]line ИНН: 02508201610067 [11:59:52]line Контрольно-Кассовый Чек [11:59:52]line ПРОДАЖА [11:59:52]line ТРК (МРК, ГНК) : 31 [11:59:52]line Товар: 2710124130 [11:59:52]line Аи-92-К-2 [11:59:52]line 4.490 * 66.90 [11:59:52]line = 300.38 [11:59:52]line НДС 12% НСП 1% [11:59:52]line > о реализуемом товаре [11:59:52]line ОКРУГЛЕНИЕ: -0.38 [11:59:52]line ИТОГО: 300.00 [11:59:52]line Внесено: 300.00 [11:59:52]line СДАЧА: 0.00 [11:59:52]line НСП 1% : 2.66 [11:59:52]line НДС 12% : 31.90 [11:59:52]line Наличными: 300.00 [11:59:52]line Безнал.: 0.00 [11:59:52]line Место: АЗС № 171 "Партнер Нефть" [11:59:52]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [11:59:52]line СНО: Общий режим [11:59:52]line Чек 197 26.10.2024 11:59 [11:59:52]line Смена: 543 ФФД: 1.0 [11:59:52]line ЗНМ: 0300000109 [11:59:52]line РНМ: 0000000000091777 [11:59:52]line Версия ККМ: 001 [11:59:52]line ФМ: 0000000000871756 [11:59:52]line ФД: 201435 [11:59:52]line ФПД: 26653519077147 [11:59:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115950&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201435&fm=26653519077147&tin=02508201610067®Number=0000000000091777&sum=30000 [11:59:52]OFD Sender: Processing packet 201435 [packets to send 112, broken 111] [11:59:52]ProducePacketName [11:59:52]name=ofd_packets/00201435 [11:59:52]OFD Sender: To server: pG, [11:59:52]CommunicateWithHost lk.salyk.kg:30040 [11:59:52]ConnectInit lk.salyk.kg [11:59:52]written 0, free lines is 4095 [11:59:52]Connected sock=10 [11:59:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 84 1E 07 01 56 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 B6 D9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DB 12 03 00 35 04 06 00 18 3D C1 89 5F 1B 65 4C 83 8E 2F 46 AF EE [11:59:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 0D 6B 47 00 3D 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DB 12 03 00 F4 03 04 00 60 85 1C 67 B6 04 01 00 00 37 BA 92 7B BB 1D 9B 5D [11:59:52]CommunicateWithHost err = 0 [11:59:52]CheckOFDResponse [11:59:52]1017 (14) - 77093643461234 [11:59:52]1041 (16) - 0000000000871756 [11:59:52]1040 (4) - 201435 [11:59:52]1012 (4) - 26.10.2024 06:00 [11:59:52]1206 (1) - 0 [11:59:52]OFD Sender: Remove packet 201435 [11:59:52]ProducePacketName [11:59:52]name=ofd_packets/00201435 [11:59:52]NVStorageDeleteData [11:59:52]Write to MH i2c: 01 00 00 C6 03 C9 [11:59:52]Write i2c OK [11:59:52]MH_I2C_Read... [11:59:52]Read from MH i2c: 01 [11:59:52]MH_I2C_Read... [11:59:52]Read from MH i2c: 01 07 00 [11:59:52]MH_I2C_Read... [11:59:52]Read from MH i2c: 01 07 00 C6 03 00 00 00 00 00 92 0C 6E [11:59:52]RasterBufferAndPrint [11:59:52]line [11:59:52]line [11:59:52]line [11:59:52]line [11:59:52]line [11:59:52]written 0, free lines is 3223 [11:59:52]MH_Cut [11:59:52]Write to MH i2c: D1 01 00 CD 03 01 A2 [11:59:52]Write i2c OK [11:59:52]MH_I2C_Read... [11:59:52]Read from MH i2c: D1 [11:59:52]MH_I2C_Read... [11:59:52]Read from MH i2c: D1 01 00 [11:59:52]MH_I2C_Read... [11:59:52]Read from MH i2c: D1 01 00 CD 03 00 A1 [11:59:52]Write to MH i2c: 01 00 00 CE 03 D1 [11:59:52]Write i2c OK [11:59:52]MH_I2C_Read... [11:59:53]OFD Sender: No OFD packet to send [11:59:53]*** Cut start [11:59:53]*** Purtial cut [11:59:53]*** Stage 1: CUTSNS_PIN = 1 [11:59:53]Read from MH i2c: 01 [11:59:53]MH_I2C_Read... [11:59:53]*** Stop cut motor [11:59:53]*** Cut end [11:59:53]Read from MH i2c: 01 07 00 [11:59:53]MH_I2C_Read... [11:59:53]Read from MH i2c: 01 07 00 CE 03 00 00 00 00 00 FF 0F E6 [11:59:53]process_action close_receipt done [11:59:53]requested_data is exist [11:59:53]produce_requested_data [11:59:53]requested_item fm.sn is exist - process it [11:59:53]wFMCommunicate request_size=4 [11:59:53]MH_SAM_APDU [11:59:53]CAPDU: 80 11 00 00 [11:59:53]Write to MH i2c: E2 08 00 CF 03 80 11 00 00 00 00 00 00 4C [11:59:53]Write i2c OK [11:59:53]MH_I2C_Read... [11:59:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:54]Read from MH i2c: E2 [11:59:54]MH_I2C_Read... [11:59:54]Read from MH i2c: E2 17 00 [11:59:54]MH_I2C_Read... [11:59:54]Read from MH i2c: E2 17 00 CF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A1 [11:59:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [11:59:54]wFMCommunicate OK [11:59:54]requested_item fd.num is exist - process it [11:59:54]SAM_PROTO_GetFieldsCounters [11:59:54]wFMCommunicate request_size=4 [11:59:54]MH_SAM_APDU [11:59:54]CAPDU: 80 13 00 00 [11:59:54]Write to MH i2c: E2 08 00 D0 03 80 13 00 00 00 00 00 00 4F [11:59:54]Write i2c OK [11:59:54]MH_I2C_Read... [11:59:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:54]Read from MH i2c: E2 [11:59:54]MH_I2C_Read... [11:59:54]Read from MH i2c: E2 62 00 [11:59:54]MH_I2C_Read... [11:59:54]Read from MH i2c: E2 62 00 D0 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DB 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [11:59:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DB 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:59:54]wFMCommunicate OK [11:59:54]SAM_PROTO_GetFieldsCounters done [11:59:54]requested_item shift.num is exist - process it [11:59:54]requested_item shift.opened is exist - process it [11:59:54]req_shift_opened [11:59:54]FM_GetShiftState [11:59:54]SAM_PROTO_GetShiftState [11:59:54]wFMCommunicate request_size=4 [11:59:54]MH_SAM_APDU [11:59:54]CAPDU: 80 13 01 00 [11:59:54]Write to MH i2c: E2 08 00 D1 03 80 13 01 00 00 00 00 00 51 [11:59:54]Write i2c OK [11:59:54]MH_I2C_Read... [11:59:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:54]Read from MH i2c: E2 [11:59:54]MH_I2C_Read... [11:59:54]Read from MH i2c: E2 0E 00 [11:59:54]MH_I2C_Read... [11:59:54]Read from MH i2c: E2 0E 00 D1 03 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 60 [11:59:54]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [11:59:54]wFMCommunicate OK [11:59:54]SAM_PROTO_GetShiftState done [11:59:54]FM_GetShiftState done [11:59:54]req_shift_opened done [11:59:54]requested_item shift.open_date is exist - process it [11:59:54]req_shift_open_date [11:59:54]req_shift_open_date done [11:59:54]produce_requested_data done [11:59:54]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201435,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [11:59:54]process_action_free close_receipt [11:59:54]json_value_free [11:59:54]json_value_free done [11:59:54]process_json_proto returns [11:59:54]Send response to host [11:59:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201435,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [11:59:54]free response buf [11:59:54]execute_script done [11:59:54]execute_script returns [11:59:54]free content buf [11:59:54]Sock 9.Close socket [11:59:54]Sock 9.Thread stoped [11:59:58]OFD Sender: No OFD packet to send [12:00:03]OFD Sender: No OFD packet to send [12:00:08]OFD Sender: No OFD packet to send [12:00:13]OFD Sender: No OFD packet to send [12:00:18]OFD Sender: No OFD packet to send [12:00:23]OFD Sender: No OFD packet to send [12:00:28]OFD Sender: No OFD packet to send [12:00:33]OFD Sender: No OFD packet to send [12:00:38]OFD Sender: No OFD packet to send [12:00:43]OFD Sender: No OFD packet to send [12:00:48]OFD Sender: No OFD packet to send [12:00:53]OFD Sender: No OFD packet to send [12:00:58]OFD Sender: No OFD packet to send [12:01:03]OFD Sender: No OFD packet to send [12:01:08]OFD Sender: No OFD packet to send [12:01:13]OFD Sender: No OFD packet to send [12:01:18]OFD Sender: No OFD packet to send [12:01:23]OFD Sender: No OFD packet to send [12:01:28]OFD Sender: No OFD packet to send [12:01:32]accept exits with 8 [12:01:32]New connection [12:01:32]New thread 3066690916 created [12:01:32]Thread 3066834276 joined [12:01:32]Waiting for new connection... [12:01:32] Sock 8.Parse request [12:01:32]Sock 8.Check first char [12:01:32]Sock 8.First char is OK [12:01:32]request: POST /json_proto HTTP/1.0 [12:01:32]Method: POST [12:01:32]URL: /json_proto [12:01:32]Method is POST - this is cgi request [12:01:32]url: /json_proto [12:01:32]query_string will be loaded in cgi processing [12:01:32]execute_cgi json_proto POST (null) [12:01:32]execute_cgi path=json_proto method=POST [12:01:32]POST find Content-Length [12:01:32]Host: 172.17.63.195:8080 [12:01:32]Content-Length: 675 [12:01:32]Content-Type: application/json [12:01:32] [12:01:32]POST finish read [12:01:32]Found Content-Length = 675 [12:01:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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" ] } } [12:01:32]execute_script... [12: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)449185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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" ] } } [12:01:32]POST & json_proto [12:01:32]process_json_proto [12:01:32]json parsed OK: [12:01:32]protocol is kg_v1.0 [12:01:32]action value=close_receipt [12:01:32]process_action close_receipt [12:01:32]cmd_close_receipt [12:01:32]MH_GetDate [12:01:32]Write to MH i2c: F0 00 00 D2 03 C4 [12:01:32]Write i2c OK [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: F0 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: F0 09 00 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: F0 09 00 D2 03 00 1D DA 1C 67 68 46 19 67 75 [12:01:32]GetLastDocTimeStamp 1729943990 [12:01:32]current date 1729944093 [12:01:32]FM_GetShiftState [12:01:32]SAM_PROTO_GetShiftState [12:01:32]wFMCommunicate request_size=4 [12:01:32]MH_SAM_APDU [12:01:32]CAPDU: 80 13 01 00 [12:01:32]Write to MH i2c: E2 08 00 D3 03 80 13 01 00 00 00 00 00 53 [12:01:32]Write i2c OK [12:01:32]MH_I2C_Read... [12:01:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:32]Read from MH i2c: E2 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: E2 0E 00 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: E2 0E 00 D3 03 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 62 [12:01:32]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:01:32]wFMCommunicate OK [12:01:32]SAM_PROTO_GetShiftState done [12:01:32]FM_GetShiftState done [12:01:32]opened in 1729900879 [12:01:32]opened+sec_in_day 1729987279 [12:01:32]quantity*price = 100000 [12:01:32]sum+1 = 100002 [12:01:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 198 26.10.2024 12:01 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201436 ФПД: 210312754434844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120133&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201436&fm=210312754434844&tin=02508201610067®Number=0000000000091777&sum=100000 [12:01:33]StoreToDocumentArchive [12:01:33]shift 543 fd 201436 [12:01:33]save to /storage/0543/doc_00201436 [12:01:33]save last doc name /storage/0543/doc_00201436 to /storage/kkm_last_doc_name [12:01:33]save OK [12:01:33]Clear old archive folders... [12:01:33]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:01:33]tlvbuf is 01F00490 [12:01:33]SAM_PROTO_ClearQueue [12:01:33]wFMCommunicate request_size=4 [12:01:33]MH_SAM_APDU [12:01:33]CAPDU: 80 09 00 00 [12:01:33]Write to MH i2c: E2 08 00 E0 03 80 09 00 00 00 00 00 00 55 [12:01:34]Write i2c OK [12:01:34]MH_I2C_Read... [12:01:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:34]Read from MH i2c: E2 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 03 00 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 03 00 E0 03 00 90 00 57 [12:01:34]RAPDU: 90 00 [12:01:34]wFMCommunicate OK [12:01:34]SAM_PROTO_ClearQueue done [12:01:34]KKMCreateOFDPacket [12:01:34]OFDProtocolAddRootSTLVToBuf [12:01:34]FM_MakeSignedData [12:01:34]FM_MakeSignedData [12:01:34]SAM_PROTO_SignData [12:01:34]wFMCommunicate request_size=4 [12:01:34]MH_SAM_APDU [12:01:34]CAPDU: 80 0D 01 02 [12:01:34]Write to MH i2c: E2 08 00 E1 03 80 0D 01 02 00 00 00 00 5D [12:01:34]Write i2c OK [12:01:34]MH_I2C_Read... [12:01:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:34]Read from MH i2c: E2 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 03 00 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 03 00 E1 03 00 90 00 58 [12:01:34]RAPDU: 90 00 [12:01:34]wFMCommunicate OK [12:01:34]wFMCommunicate request_size=255 [12:01:34]MH_SAM_APDU [12:01:34]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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 C6 00 00 00 F4 03 04 00 1D DA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DC 12 03 00 35 04 06 00 [12:01:34]Write to MH i2c: E2 02 01 E2 03 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 C6 00 00 00 F4 03 04 00 1D DA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DC 12 03 00 35 04 06 00 00 00 18 [12:01:34]Write i2c OK [12:01:34]MH_I2C_Read... [12:01:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:34]Read from MH i2c: E2 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 03 00 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 03 00 E2 03 00 90 00 59 [12:01:34]RAPDU: 90 00 [12:01:34]wFMCommunicate OK [12:01:34]wFMCommunicate request_size=11 [12:01:34]MH_SAM_APDU [12:01:34]CAPDU: 80 0D 02 02 06 BF 47 41 05 13 1C [12:01:34]Write to MH i2c: E2 0E 00 E3 03 80 0D 02 02 06 00 BF 47 41 05 13 1C 00 00 E7 [12:01:34]Write i2c OK [12:01:34]MH_I2C_Read... [12:01:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:34]Read from MH i2c: E2 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 03 00 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 03 00 E3 03 00 90 00 5A [12:01:34]RAPDU: 90 00 [12:01:34]wFMCommunicate OK [12:01:34]wFMCommunicate request_size=4 [12:01:34]MH_SAM_APDU [12:01:34]CAPDU: 80 0D 03 02 [12:01:34]Write to MH i2c: E2 08 00 E4 03 80 0D 03 02 00 00 00 00 62 [12:01:34]Write i2c OK [12:01:34]MH_I2C_Read... [12:01:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:34]Read from MH i2c: E2 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 0B 00 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 0B 00 E4 03 00 E6 92 49 63 82 9C D4 33 90 00 AC [12:01:34]RAPDU: E6 92 49 63 82 9C D4 33 90 00 [12:01:34]wFMCommunicate OK [12:01:34]SAM_PROTO_SignData done [12:01:34]FM_MakeSignedData done [12:01:34]CreateOFDProtocolMessage [12:01:34]wFMCommunicate request_size=4 [12:01:34]MH_SAM_APDU [12:01:34]CAPDU: 80 11 00 00 [12:01:34]Write to MH i2c: E2 08 00 E5 03 80 11 00 00 00 00 00 00 62 [12:01:34]Write i2c OK [12:01:34]MH_I2C_Read... [12:01:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:34]Read from MH i2c: E2 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 17 00 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 17 00 E5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B7 [12:01:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:01:34]wFMCommunicate OK [12:01:34]CreateOFDProtocolMessage done [12:01:34]OFDSenderStorePacket 201436 [12:01:34]StoreOFDPacket docnum=201436 [12:01:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 F0 E0 08 01 04 A6 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 C6 00 00 00 F4 03 04 00 1D DA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DC 12 03 00 35 04 06 00 BF 47 41 05 13 1C E6 92 49 63 82 9C D4 33 [12:01:34]CheckFolder [12:01:34]dirname=/storage/ofd_packets [12:01:34]CheckFolder done [12:01:34]ProducePacketName [12:01:34]name=ofd_packets/00201436 [12:01:34]NVStorageSaveData ofd_packets/00201436 [12:01:34]File name is /storage/ofd_packets/00201436 [12:01:34]Write 302 bytes [12:01:34]NVStorageSaveData done [12:01:34]OFDSenderStorePacket done [12:01:34]KKMCreateOFDPacket done [12:01:34]NVStorageSaveData kkm_last_timestamp [12:01:34]File name is /storage/kkm_last_timestamp [12:01:34]Write 4 bytes [12:01:34]NVStorageSaveData done [12:01:34]ExternCall_PrintAddStr [12:01:34]wPrintStart [12:01:34]Write to MH i2c: 01 00 00 E6 03 E9 [12:01:34]Write i2c OK [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: 01 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: 01 07 00 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: 01 07 00 E6 03 00 00 00 00 00 FF 0F FE [12:01:34]RasterBufferAndPrint [12:01:34]line Счет N : (1)449185 [12:01:34]line ИНН: 02508201610067 [12:01:34]line Контрольно-Кассовый Чек [12:01:34]line ПРОДАЖА [12:01:34]line ТРК (МРК, ГНК) : 42 [12:01:34]line Товар: 2710124130 [12:01:34]line SUPER 92-К-5 [12:01:34]line 14.620 * 68.40 [12:01:34]line = 1000.01 [12:01:34]line НДС 12% НСП 1% [12:01:34]line > о реализуемом товаре [12:01:34]line ОКРУГЛЕНИЕ: -0.01 [12:01:34]line ИТОГО: 1000.00 [12:01:34]line Внесено: 1000.00 [12:01:34]line СДАЧА: 0.00 [12:01:34]line НСП 1% : 8.85 [12:01:34]line НДС 12% : 106.20 [12:01:34]line Наличными: 1000.00 [12:01:34]line Безнал.: 0.00 [12:01:34]line Место: АЗС № 171 "Партнер Нефть" [12:01:34]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:01:34]line СНО: Общий режим [12:01:34]line Чек 198 26.10.2024 12:01 [12:01:34]line Смена: 543 ФФД: 1.0 [12:01:34]line ЗНМ: 0300000109 [12:01:34]line РНМ: 0000000000091777 [12:01:34]line Версия ККМ: 001 [12:01:34]line ФМ: 0000000000871756 [12:01:34]line ФД: 201436 [12:01:34]line ФПД: 210312754434844 [12:01:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120133&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201436&fm=210312754434844&tin=02508201610067®Number=0000000000091777&sum=100000 [12:01:34]OFD Sender: Processing packet 201436 [packets to send 112, broken 111] [12:01:34]ProducePacketName [12:01:34]name=ofd_packets/00201436 [12:01:34]OFD Sender: To server: pG, [12:01:34]CommunicateWithHost lk.salyk.kg:30040 [12:01:34]ConnectInit lk.salyk.kg [12:01:34]written 0, free lines is 4095 [12:01:34]Connected sock=10 [12:01:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 F0 E0 08 01 04 A6 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 C6 00 00 00 F4 03 04 00 1D DA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DC 12 03 00 35 04 06 00 BF 47 41 05 13 1C E6 92 49 63 82 9C D4 33 [12:01:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 CA A9 47 00 1F 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DC 12 03 00 F4 03 04 00 C6 85 1C 67 B6 04 01 00 00 77 A5 97 DC B8 EA 8A 79 [12:01:35]CommunicateWithHost err = 0 [12:01:35]CheckOFDResponse [12:01:35]1017 (14) - 77093643461234 [12:01:35]1041 (16) - 0000000000871756 [12:01:35]1040 (4) - 201436 [12:01:35]1012 (4) - 26.10.2024 06:01 [12:01:35]1206 (1) - 0 [12:01:35]OFD Sender: Remove packet 201436 [12:01:35]ProducePacketName [12:01:35]name=ofd_packets/00201436 [12:01:35]NVStorageDeleteData [12:01:35]Write to MH i2c: 01 00 00 11 04 15 [12:01:35]Write i2c OK [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: 01 [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: 01 07 00 [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: 01 07 00 11 04 00 00 00 00 00 94 0C BC [12:01:35]RasterBufferAndPrint [12:01:35]line [12:01:35]line [12:01:35]line [12:01:35]line [12:01:35]line [12:01:35]written 0, free lines is 3225 [12:01:35]MH_Cut [12:01:35]Write to MH i2c: D1 01 00 18 04 01 EE [12:01:35]Write i2c OK [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: D1 [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: D1 01 00 [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: D1 01 00 18 04 00 ED [12:01:35]Write to MH i2c: 01 00 00 19 04 1D [12:01:35]Write i2c OK [12:01:35]MH_I2C_Read... [12:01:35]OFD Sender: No OFD packet to send [12:01:36]*** Cut start [12:01:36]*** Purtial cut [12:01:36]*** Stage 1: CUTSNS_PIN = 1 [12:01:36]Read from MH i2c: 01 [12:01:36]MH_I2C_Read... [12:01:36]*** Stop cut motor [12:01:36]*** Cut end [12:01:36]Read from MH i2c: 01 07 00 [12:01:36]MH_I2C_Read... [12:01:36]Read from MH i2c: 01 07 00 19 04 00 00 00 00 00 FF 0F 32 [12:01:36]process_action close_receipt done [12:01:36]requested_data is exist [12:01:36]produce_requested_data [12:01:36]requested_item fm.sn is exist - process it [12:01:36]wFMCommunicate request_size=4 [12:01:36]MH_SAM_APDU [12:01:36]CAPDU: 80 11 00 00 [12:01:36]Write to MH i2c: E2 08 00 1A 04 80 11 00 00 00 00 00 00 98 [12:01:36]Write i2c OK [12:01:36]MH_I2C_Read... [12:01:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:36]Read from MH i2c: E2 [12:01:36]MH_I2C_Read... [12:01:36]Read from MH i2c: E2 17 00 [12:01:36]MH_I2C_Read... [12:01:36]Read from MH i2c: E2 17 00 1A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 ED [12:01:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:01:36]wFMCommunicate OK [12:01:36]requested_item fd.num is exist - process it [12:01:36]SAM_PROTO_GetFieldsCounters [12:01:36]wFMCommunicate request_size=4 [12:01:36]MH_SAM_APDU [12:01:36]CAPDU: 80 13 00 00 [12:01:36]Write to MH i2c: E2 08 00 1B 04 80 13 00 00 00 00 00 00 9B [12:01:36]Write i2c OK [12:01:36]MH_I2C_Read... [12:01:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:36]Read from MH i2c: E2 [12:01:36]MH_I2C_Read... [12:01:36]Read from MH i2c: E2 62 00 [12:01:36]MH_I2C_Read... [12:01:36]Read from MH i2c: E2 62 00 1B 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DC 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [12:01:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DC 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:01:36]wFMCommunicate OK [12:01:36]SAM_PROTO_GetFieldsCounters done [12:01:36]requested_item shift.num is exist - process it [12:01:36]requested_item shift.opened is exist - process it [12:01:36]req_shift_opened [12:01:36]FM_GetShiftState [12:01:36]SAM_PROTO_GetShiftState [12:01:36]wFMCommunicate request_size=4 [12:01:36]MH_SAM_APDU [12:01:36]CAPDU: 80 13 01 00 [12:01:36]Write to MH i2c: E2 08 00 1C 04 80 13 01 00 00 00 00 00 9D [12:01:36]Write i2c OK [12:01:36]MH_I2C_Read... [12:01:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:36]Read from MH i2c: E2 [12:01:36]MH_I2C_Read... [12:01:36]Read from MH i2c: E2 0E 00 [12:01:36]MH_I2C_Read... [12:01:36]Read from MH i2c: E2 0E 00 1C 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 AC [12:01:36]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:01:36]wFMCommunicate OK [12:01:36]SAM_PROTO_GetShiftState done [12:01:36]FM_GetShiftState done [12:01:36]req_shift_opened done [12:01:36]requested_item shift.open_date is exist - process it [12:01:36]req_shift_open_date [12:01:36]req_shift_open_date done [12:01:36]produce_requested_data done [12:01:36]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201436,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:01:36]process_action_free close_receipt [12:01:36]json_value_free [12:01:36]json_value_free done [12:01:36]process_json_proto returns [12:01:36]Send response to host [12:01:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201436,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:01:36]free response buf [12:01:36]execute_script done [12:01:36]execute_script returns [12:01:36]free content buf [12:01:36]Sock 8.Close socket [12:01:36]Sock 8.Thread stoped [12:01:40]OFD Sender: No OFD packet to send [12:01:45]OFD Sender: No OFD packet to send [12:01:50]OFD Sender: No OFD packet to send [12:01:55]OFD Sender: No OFD packet to send [12:02:00]OFD Sender: No OFD packet to send [12:02:05]OFD Sender: No OFD packet to send [12:02:10]OFD Sender: No OFD packet to send [12:02:15]OFD Sender: No OFD packet to send [12:02:20]OFD Sender: No OFD packet to send [12:02:25]OFD Sender: No OFD packet to send [12:02:30]OFD Sender: No OFD packet to send [12:02:35]OFD Sender: No OFD packet to send [12:02:40]OFD Sender: No OFD packet to send [12:02:45]OFD Sender: No OFD packet to send [12:02:50]OFD Sender: No OFD packet to send [12:02:55]OFD Sender: No OFD packet to send [12:03:00]OFD Sender: No OFD packet to send [12:03:05]OFD Sender: No OFD packet to send [12:03:10]OFD Sender: No OFD packet to send [12:03:15]OFD Sender: No OFD packet to send [12:03:20]OFD Sender: No OFD packet to send [12:03:24]accept exits with 9 [12:03:24]New connection [12:03:24]New thread 3066834276 created [12:03:24]Thread 3066690916 joined [12:03:24]Waiting for new connection... [12:03:24] Sock 9.Parse request [12:03:24]Sock 9.Check first char [12:03:24]Sock 9.First char is OK [12:03:24]request: POST /json_proto HTTP/1.0 [12:03:24]Method: POST [12:03:24]URL: /json_proto [12:03:24]Method is POST - this is cgi request [12:03:24]url: /json_proto [12:03:24]query_string will be loaded in cgi processing [12:03:24]execute_cgi json_proto POST (null) [12:03:24]execute_cgi path=json_proto method=POST [12:03:24]POST find Content-Length [12:03:24]Host: 172.17.63.195:8080 [12:03:24]Content-Length: 677 [12:03:24]Content-Type: application/json [12:03:24] [12:03:24]POST finish read [12:03:24]Found Content-Length = 677 [12:03:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:03:24]execute_script... [12:03: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)449186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:03:24]POST & json_proto [12:03:24]process_json_proto [12:03:24]json parsed OK: [12:03:24]protocol is kg_v1.0 [12:03:24]action value=close_receipt [12:03:24]process_action close_receipt [12:03:24]cmd_close_receipt [12:03:24]MH_GetDate [12:03:24]Write to MH i2c: F0 00 00 1D 04 10 [12:03:24]Write i2c OK [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: F0 [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: F0 09 00 [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: F0 09 00 1D 04 00 8C DA 1C 67 68 46 19 67 30 [12:03:24]GetLastDocTimeStamp 1729944093 [12:03:24]current date 1729944204 [12:03:24]FM_GetShiftState [12:03:24]SAM_PROTO_GetShiftState [12:03:24]wFMCommunicate request_size=4 [12:03:24]MH_SAM_APDU [12:03:24]CAPDU: 80 13 01 00 [12:03:24]Write to MH i2c: E2 08 00 1E 04 80 13 01 00 00 00 00 00 9F [12:03:24]Write i2c OK [12:03:24]MH_I2C_Read... [12:03:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:24]Read from MH i2c: E2 [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: E2 0E 00 [12:03:24]MH_I2C_Read... [12:03:24]Read from MH i2c: E2 0E 00 1E 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 AE [12:03:24]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:03:24]wFMCommunicate OK [12:03:24]SAM_PROTO_GetShiftState done [12:03:24]FM_GetShiftState done [12:03:24]opened in 1729900879 [12:03:24]opened+sec_in_day 1729987279 [12:03:24]quantity*price = 50041 [12:03:24]sum+1 = 50042 [12:03:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 199 26.10.2024 12:03 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201437 ФПД: 230253990937962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120324&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201437&fm=230253990937962&tin=02508201610067®Number=0000000000091777&sum=50000 [12:03:25]StoreToDocumentArchive [12:03:25]shift 543 fd 201437 [12:03:25]save to /storage/0543/doc_00201437 [12:03:25]save last doc name /storage/0543/doc_00201437 to /storage/kkm_last_doc_name [12:03:25]save OK [12:03:25]Clear old archive folders... [12:03:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:03:25]tlvbuf is 01F00140 [12:03:25]SAM_PROTO_ClearQueue [12:03:25]wFMCommunicate request_size=4 [12:03:25]MH_SAM_APDU [12:03:25]CAPDU: 80 09 00 00 [12:03:25]Write to MH i2c: E2 08 00 2B 04 80 09 00 00 00 00 00 00 A1 [12:03:25]Write i2c OK [12:03:25]MH_I2C_Read... [12:03:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:25]Read from MH i2c: E2 [12:03:25]MH_I2C_Read... [12:03:25]Read from MH i2c: E2 03 00 [12:03:25]MH_I2C_Read... [12:03:25]Read from MH i2c: E2 03 00 2B 04 00 90 00 A3 [12:03:25]RAPDU: 90 00 [12:03:25]wFMCommunicate OK [12:03:25]SAM_PROTO_ClearQueue done [12:03:25]KKMCreateOFDPacket [12:03:25]OFDProtocolAddRootSTLVToBuf [12:03:25]FM_MakeSignedData [12:03:25]FM_MakeSignedData [12:03:25]SAM_PROTO_SignData [12:03:25]wFMCommunicate request_size=4 [12:03:25]MH_SAM_APDU [12:03:25]CAPDU: 80 0D 01 02 [12:03:25]Write to MH i2c: E2 08 00 2C 04 80 0D 01 02 00 00 00 00 A9 [12:03:25]Write i2c OK [12:03:25]MH_I2C_Read... [12:03:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:25]Read from MH i2c: E2 [12:03:25]MH_I2C_Read... [12:03:25]Read from MH i2c: E2 03 00 [12:03:25]MH_I2C_Read... [12:03:25]Read from MH i2c: E2 03 00 2C 04 00 90 00 A4 [12:03:25]RAPDU: 90 00 [12:03:25]wFMCommunicate OK [12:03:25]wFMCommunicate request_size=255 [12:03:25]MH_SAM_APDU [12:03: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 32 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 C7 00 00 00 F4 03 04 00 8C DA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DD 12 03 00 35 04 06 00 D1 [12:03:25]Write to MH i2c: E2 02 01 2D 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 32 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 C7 00 00 00 F4 03 04 00 8C DA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DD 12 03 00 35 04 06 00 D1 00 00 D1 [12:03:25]Write i2c OK [12:03:25]MH_I2C_Read... [12:03:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:25]Read from MH i2c: E2 [12:03:25]MH_I2C_Read... [12:03:25]Read from MH i2c: E2 03 00 [12:03:25]MH_I2C_Read... [12:03:25]Read from MH i2c: E2 03 00 2D 04 00 90 00 A5 [12:03:25]RAPDU: 90 00 [12:03:25]wFMCommunicate OK [12:03:25]wFMCommunicate request_size=10 [12:03:25]MH_SAM_APDU [12:03:25]CAPDU: 80 0D 02 02 05 6A 2F 56 85 6A [12:03:25]Write to MH i2c: E2 0D 00 2E 04 80 0D 02 02 05 00 6A 2F 56 85 6A 00 00 94 [12:03:25]Write i2c OK [12:03:25]MH_I2C_Read... [12:03:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:25]Read from MH i2c: E2 [12:03:25]MH_I2C_Read... [12:03:25]Read from MH i2c: E2 03 00 [12:03:25]MH_I2C_Read... [12:03:25]Read from MH i2c: E2 03 00 2E 04 00 90 00 A6 [12:03:25]RAPDU: 90 00 [12:03:25]wFMCommunicate OK [12:03:25]wFMCommunicate request_size=4 [12:03:25]MH_SAM_APDU [12:03:25]CAPDU: 80 0D 03 02 [12:03:25]Write to MH i2c: E2 08 00 2F 04 80 0D 03 02 00 00 00 00 AE [12:03:25]Write i2c OK [12:03:25]MH_I2C_Read... [12:03:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:25]Read from MH i2c: E2 [12:03:25]MH_I2C_Read... [12:03:25]Read from MH i2c: E2 0B 00 [12:03:25]MH_I2C_Read... [12:03:25]Read from MH i2c: E2 0B 00 2F 04 00 A8 48 9A 54 77 B3 32 73 90 00 5C [12:03:25]RAPDU: A8 48 9A 54 77 B3 32 73 90 00 [12:03:25]wFMCommunicate OK [12:03:25]SAM_PROTO_SignData done [12:03:25]FM_MakeSignedData done [12:03:25]CreateOFDProtocolMessage [12:03:25]wFMCommunicate request_size=4 [12:03:25]MH_SAM_APDU [12:03:25]CAPDU: 80 11 00 00 [12:03:25]Write to MH i2c: E2 08 00 30 04 80 11 00 00 00 00 00 00 AE [12:03:25]Write i2c OK [12:03:25]MH_I2C_Read... [12:03:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:25]Read from MH i2c: E2 [12:03:25]MH_I2C_Read... [12:03:25]Read from MH i2c: E2 17 00 [12:03:25]MH_I2C_Read... [12:03:25]Read from MH i2c: E2 17 00 30 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 03 [12:03:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:03:25]wFMCommunicate OK [12:03:25]CreateOFDProtocolMessage done [12:03:25]OFDSenderStorePacket 201437 [12:03:25]StoreOFDPacket docnum=201437 [12:03:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 EA 70 07 01 45 D5 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 32 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 C7 00 00 00 F4 03 04 00 8C DA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DD 12 03 00 35 04 06 00 D1 6A 2F 56 85 6A A8 48 9A 54 77 B3 32 73 [12:03:25]CheckFolder [12:03:25]dirname=/storage/ofd_packets [12:03:25]CheckFolder done [12:03:25]ProducePacketName [12:03:25]name=ofd_packets/00201437 [12:03:25]NVStorageSaveData ofd_packets/00201437 [12:03:25]File name is /storage/ofd_packets/00201437 [12:03:25]Write 301 bytes [12:03:25]NVStorageSaveData done [12:03:25]OFDSenderStorePacket done [12:03:25]KKMCreateOFDPacket done [12:03:25]NVStorageSaveData kkm_last_timestamp [12:03:25]File name is /storage/kkm_last_timestamp [12:03:25]Write 4 bytes [12:03:25]NVStorageSaveData done [12:03:25]ExternCall_PrintAddStr [12:03:25]wPrintStart [12:03:25]Write to MH i2c: 01 00 00 31 04 35 [12:03:25]Write i2c OK [12:03:25]MH_I2C_Read... [12:03:25]Read from MH i2c: 01 [12:03:25]MH_I2C_Read... [12:03:25]Read from MH i2c: 01 07 00 [12:03:25]MH_I2C_Read... [12:03:25]Read from MH i2c: 01 07 00 31 04 00 00 00 00 00 FF 0F 4A [12:03:25]RasterBufferAndPrint [12:03:25]line Счет N : (1)449186 [12:03:25]line ИНН: 02508201610067 [12:03:25]line Контрольно-Кассовый Чек [12:03:25]line ПРОДАЖА [12:03:25]line ТРК (МРК, ГНК) : 52 [12:03:25]line Товар: 2710124130 [12:03:25]line Аи-92-К-2 [12:03:25]line 7.480 * 66.90 [12:03:25]line = 500.41 [12:03:25]line НДС 12% НСП 1% [12:03:25]line > о реализуемом товаре [12:03:25]line ОКРУГЛЕНИЕ: -0.41 [12:03:25]line ИТОГО: 500.00 [12:03:25]line Внесено: 500.00 [12:03:25]line СДАЧА: 0.00 [12:03:25]line НСП 1% : 4.43 [12:03:25]line НДС 12% : 53.14 [12:03:25]line Наличными: 500.00 [12:03:25]line Безнал.: 0.00 [12:03:25]line Место: АЗС № 171 "Партнер Нефть" [12:03:25]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:03:25]line СНО: Общий режим [12:03:25]line Чек 199 26.10.2024 12:03 [12:03:25]line Смена: 543 ФФД: 1.0 [12:03:25]line ЗНМ: 0300000109 [12:03:25]line РНМ: 0000000000091777 [12:03:25]line Версия ККМ: 001 [12:03:25]line ФМ: 0000000000871756 [12:03:25]line ФД: 201437 [12:03:25]line ФПД: 230253990937962 [12:03:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120324&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201437&fm=230253990937962&tin=02508201610067®Number=0000000000091777&sum=50000 [12:03:26]OFD Sender: Processing packet 201437 [packets to send 112, broken 111] [12:03:26]ProducePacketName [12:03:26]name=ofd_packets/00201437 [12:03:26]OFD Sender: To server: pG, [12:03:26]CommunicateWithHost lk.salyk.kg:30040 [12:03:26]ConnectInit lk.salyk.kg [12:03:26]written 0, free lines is 4095 [12:03:26]Connected sock=10 [12:03:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 EA 70 07 01 45 D5 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 32 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 C7 00 00 00 F4 03 04 00 8C DA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DD 12 03 00 35 04 06 00 D1 6A 2F 56 85 6A A8 48 9A 54 77 B3 32 73 [12:03:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E2 AC 47 00 D1 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DD 12 03 00 F4 03 04 00 35 86 1C 67 B6 04 01 00 00 83 E9 EF 61 89 40 54 D8 [12:03:26]CommunicateWithHost err = 0 [12:03:26]CheckOFDResponse [12:03:26]1017 (14) - 77093643461234 [12:03:26]1041 (16) - 0000000000871756 [12:03:26]1040 (4) - 201437 [12:03:26]1012 (4) - 26.10.2024 06:03 [12:03:26]1206 (1) - 0 [12:03:26]OFD Sender: Remove packet 201437 [12:03:26]ProducePacketName [12:03:26]name=ofd_packets/00201437 [12:03:26]NVStorageDeleteData [12:03:26]Write to MH i2c: 01 00 00 5C 04 60 [12:03:26]Write i2c OK [12:03:26]MH_I2C_Read... [12:03:26]Read from MH i2c: 01 [12:03:26]MH_I2C_Read... [12:03:26]Read from MH i2c: 01 07 00 [12:03:26]MH_I2C_Read... [12:03:26]Read from MH i2c: 01 07 00 5C 04 00 00 00 00 00 95 0C 08 [12:03:26]RasterBufferAndPrint [12:03:26]line [12:03:26]line [12:03:26]line [12:03:26]line [12:03:26]line [12:03:26]written 0, free lines is 3225 [12:03:26]MH_Cut [12:03:26]Write to MH i2c: D1 01 00 63 04 01 39 [12:03:26]Write i2c OK [12:03:26]MH_I2C_Read... [12:03:26]Read from MH i2c: D1 [12:03:26]MH_I2C_Read... [12:03:26]Read from MH i2c: D1 01 00 [12:03:26]MH_I2C_Read... [12:03:26]Read from MH i2c: D1 01 00 63 04 00 38 [12:03:26]Write to MH i2c: 01 00 00 64 04 68 [12:03:26]Write i2c OK [12:03:26]MH_I2C_Read... [12:03:26]OFD Sender: No OFD packet to send [12:03:27]*** Cut start [12:03:27]*** Purtial cut [12:03:27]*** Stage 1: CUTSNS_PIN = 1 [12:03:27]Read from MH i2c: 01 [12:03:27]MH_I2C_Read... [12:03:27]*** Stop cut motor [12:03:27]*** Cut end [12:03:27]Read from MH i2c: 01 07 00 [12:03:27]MH_I2C_Read... [12:03:27]Read from MH i2c: 01 07 00 64 04 00 00 00 00 00 FF 0F 7D [12:03:27]process_action close_receipt done [12:03:27]requested_data is exist [12:03:27]produce_requested_data [12:03:27]requested_item fm.sn is exist - process it [12:03:27]wFMCommunicate request_size=4 [12:03:27]MH_SAM_APDU [12:03:27]CAPDU: 80 11 00 00 [12:03:27]Write to MH i2c: E2 08 00 65 04 80 11 00 00 00 00 00 00 E3 [12:03:27]Write i2c OK [12:03:27]MH_I2C_Read... [12:03:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:27]Read from MH i2c: E2 [12:03:27]MH_I2C_Read... [12:03:27]Read from MH i2c: E2 17 00 [12:03:27]MH_I2C_Read... [12:03:27]Read from MH i2c: E2 17 00 65 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 38 [12:03:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:03:27]wFMCommunicate OK [12:03:27]requested_item fd.num is exist - process it [12:03:27]SAM_PROTO_GetFieldsCounters [12:03:27]wFMCommunicate request_size=4 [12:03:27]MH_SAM_APDU [12:03:27]CAPDU: 80 13 00 00 [12:03:27]Write to MH i2c: E2 08 00 66 04 80 13 00 00 00 00 00 00 E6 [12:03:27]Write i2c OK [12:03:27]MH_I2C_Read... [12:03:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:27]Read from MH i2c: E2 [12:03:27]MH_I2C_Read... [12:03:27]Read from MH i2c: E2 62 00 [12:03:27]MH_I2C_Read... [12:03:27]Read from MH i2c: E2 62 00 66 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DD 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [12:03:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DD 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:03:27]wFMCommunicate OK [12:03:27]SAM_PROTO_GetFieldsCounters done [12:03:27]requested_item shift.num is exist - process it [12:03:27]requested_item shift.opened is exist - process it [12:03:27]req_shift_opened [12:03:27]FM_GetShiftState [12:03:27]SAM_PROTO_GetShiftState [12:03:27]wFMCommunicate request_size=4 [12:03:27]MH_SAM_APDU [12:03:27]CAPDU: 80 13 01 00 [12:03:27]Write to MH i2c: E2 08 00 67 04 80 13 01 00 00 00 00 00 E8 [12:03:27]Write i2c OK [12:03:27]MH_I2C_Read... [12:03:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:27]Read from MH i2c: E2 [12:03:27]MH_I2C_Read... [12:03:27]Read from MH i2c: E2 0E 00 [12:03:27]MH_I2C_Read... [12:03:27]Read from MH i2c: E2 0E 00 67 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F7 [12:03:28]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:03:28]wFMCommunicate OK [12:03:28]SAM_PROTO_GetShiftState done [12:03:28]FM_GetShiftState done [12:03:28]req_shift_opened done [12:03:28]requested_item shift.open_date is exist - process it [12:03:28]req_shift_open_date [12:03:28]req_shift_open_date done [12:03:28]produce_requested_data done [12:03:28]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201437,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:03:28]process_action_free close_receipt [12:03:28]json_value_free [12:03:28]json_value_free done [12:03:28]process_json_proto returns [12:03:28]Send response to host [12:03:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201437,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:03:28]free response buf [12:03:28]execute_script done [12:03:28]execute_script returns [12:03:28]free content buf [12:03:28]Sock 9.Close socket [12:03:28]Sock 9.Thread stoped [12:03:32]OFD Sender: No OFD packet to send [12:03:37]OFD Sender: No OFD packet to send [12:03:42]OFD Sender: No OFD packet to send [12:03:47]OFD Sender: No OFD packet to send [12:03:52]OFD Sender: No OFD packet to send [12:03:57]OFD Sender: No OFD packet to send [12:04:02]OFD Sender: No OFD packet to send [12:04:07]OFD Sender: No OFD packet to send [12:04:12]OFD Sender: No OFD packet to send [12:04:17]OFD Sender: No OFD packet to send [12:04:22]OFD Sender: No OFD packet to send [12:04:27]OFD Sender: No OFD packet to send [12:04:32]OFD Sender: No OFD packet to send [12:04:37]OFD Sender: No OFD packet to send [12:04:42]OFD Sender: No OFD packet to send [12:04:46]accept exits with 8 [12:04:46]New connection [12:04:46]New thread 3066690916 created [12:04:46]Thread 3066834276 joined [12:04:46]Waiting for new connection... [12:04:46] Sock 8.Parse request [12:04:46]Sock 8.Check first char [12:04:46]Sock 8.First char is OK [12:04:46]request: POST /json_proto HTTP/1.0 [12:04:46]Method: POST [12:04:46]URL: /json_proto [12:04:46]Method is POST - this is cgi request [12:04:46]url: /json_proto [12:04:46]query_string will be loaded in cgi processing [12:04:46]execute_cgi json_proto POST (null) [12:04:46]execute_cgi path=json_proto method=POST [12:04:46]POST find Content-Length [12:04:46]Host: 172.17.63.195:8080 [12:04:46]Content-Length: 677 [12:04:46]Content-Type: application/json [12:04:46] [12:04:46]POST finish read [12:04:46]Found Content-Length = 677 [12:04:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:04:46]execute_script... [12:04: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)449187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:04:46]POST & json_proto [12:04:46]process_json_proto [12:04:46]json parsed OK: [12:04:46]protocol is kg_v1.0 [12:04:46]action value=close_receipt [12:04:46]process_action close_receipt [12:04:46]cmd_close_receipt [12:04:46]MH_GetDate [12:04:46]Write to MH i2c: F0 00 00 68 04 5B [12:04:46]Write i2c OK [12:04:46]MH_I2C_Read... [12:04:46]Read from MH i2c: F0 [12:04:46]MH_I2C_Read... [12:04:46]Read from MH i2c: F0 09 00 [12:04:46]MH_I2C_Read... [12:04:46]Read from MH i2c: F0 09 00 68 04 00 DF DA 1C 67 68 46 19 67 CE [12:04:46]GetLastDocTimeStamp 1729944204 [12:04:46]current date 1729944287 [12:04:46]FM_GetShiftState [12:04:46]SAM_PROTO_GetShiftState [12:04:46]wFMCommunicate request_size=4 [12:04:46]MH_SAM_APDU [12:04:46]CAPDU: 80 13 01 00 [12:04:46]Write to MH i2c: E2 08 00 69 04 80 13 01 00 00 00 00 00 EA [12:04:46]Write i2c OK [12:04:46]MH_I2C_Read... [12:04:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:46]Read from MH i2c: E2 [12:04:46]MH_I2C_Read... [12:04:46]Read from MH i2c: E2 0E 00 [12:04:46]MH_I2C_Read... [12:04:46]Read from MH i2c: E2 0E 00 69 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F9 [12:04:46]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:04:46]wFMCommunicate OK [12:04:46]SAM_PROTO_GetShiftState done [12:04:46]FM_GetShiftState done [12:04:46]opened in 1729900879 [12:04:46]opened+sec_in_day 1729987279 [12:04:46]quantity*price = 20003 [12:04:46]sum+1 = 20004 [12:04:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 200 26.10.2024 12:04 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201438 ФПД: 53843994402632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120447&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201438&fm=53843994402632&tin=02508201610067®Number=0000000000091777&sum=20000 [12:04:48]StoreToDocumentArchive [12:04:48]shift 543 fd 201438 [12:04:48]save to /storage/0543/doc_00201438 [12:04:48]save last doc name /storage/0543/doc_00201438 to /storage/kkm_last_doc_name [12:04:48]save OK [12:04:48]Clear old archive folders... [12:04:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:04:48]tlvbuf is 01EFFD00 [12:04:48]SAM_PROTO_ClearQueue [12:04:48]wFMCommunicate request_size=4 [12:04:48]MH_SAM_APDU [12:04:48]CAPDU: 80 09 00 00 [12:04:48]Write to MH i2c: E2 08 00 76 04 80 09 00 00 00 00 00 00 EC [12:04:48]Write i2c OK [12:04:48]MH_I2C_Read... [12:04:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:48]Read from MH i2c: E2 [12:04:48]MH_I2C_Read... [12:04:48]Read from MH i2c: E2 03 00 [12:04:48]MH_I2C_Read... [12:04:48]Read from MH i2c: E2 03 00 76 04 00 90 00 EE [12:04:48]RAPDU: 90 00 [12:04:48]wFMCommunicate OK [12:04:48]SAM_PROTO_ClearQueue done [12:04:48]KKMCreateOFDPacket [12:04:48]OFDProtocolAddRootSTLVToBuf [12:04:48]FM_MakeSignedData [12:04:48]FM_MakeSignedData [12:04:48]SAM_PROTO_SignData [12:04:48]wFMCommunicate request_size=4 [12:04:48]MH_SAM_APDU [12:04:48]CAPDU: 80 0D 01 02 [12:04:48]Write to MH i2c: E2 08 00 77 04 80 0D 01 02 00 00 00 00 F4 [12:04:48]Write i2c OK [12:04:48]MH_I2C_Read... [12:04:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:48]Read from MH i2c: E2 [12:04:48]MH_I2C_Read... [12:04:48]Read from MH i2c: E2 03 00 [12:04:48]MH_I2C_Read... [12:04:48]Read from MH i2c: E2 03 00 77 04 00 90 00 EF [12:04:48]RAPDU: 90 00 [12:04:48]wFMCommunicate OK [12:04:48]wFMCommunicate request_size=255 [12:04:48]MH_SAM_APDU [12:04: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 32 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 C8 00 00 00 F4 03 04 00 DF DA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DE 12 03 00 35 04 06 00 30 [12:04:48]Write to MH i2c: E2 02 01 78 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 32 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 C8 00 00 00 F4 03 04 00 DF DA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DE 12 03 00 35 04 06 00 30 00 00 92 [12:04:48]Write i2c OK [12:04:48]MH_I2C_Read... [12:04:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:48]Read from MH i2c: E2 [12:04:48]MH_I2C_Read... [12:04:48]Read from MH i2c: E2 03 00 [12:04:48]MH_I2C_Read... [12:04:48]Read from MH i2c: E2 03 00 78 04 00 90 00 F0 [12:04:48]RAPDU: 90 00 [12:04:48]wFMCommunicate OK [12:04:48]wFMCommunicate request_size=10 [12:04:48]MH_SAM_APDU [12:04:48]CAPDU: 80 0D 02 02 05 F8 88 28 DF 48 [12:04:48]Write to MH i2c: E2 0D 00 79 04 80 0D 02 02 05 00 F8 88 28 DF 48 00 00 D0 [12:04:48]Write i2c OK [12:04:48]MH_I2C_Read... [12:04:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:48]Read from MH i2c: E2 [12:04:48]MH_I2C_Read... [12:04:48]Read from MH i2c: E2 03 00 [12:04:48]MH_I2C_Read... [12:04:48]Read from MH i2c: E2 03 00 79 04 00 90 00 F1 [12:04:48]RAPDU: 90 00 [12:04:48]wFMCommunicate OK [12:04:48]wFMCommunicate request_size=4 [12:04:48]MH_SAM_APDU [12:04:48]CAPDU: 80 0D 03 02 [12:04:48]Write to MH i2c: E2 08 00 7A 04 80 0D 03 02 00 00 00 00 F9 [12:04:48]Write i2c OK [12:04:48]MH_I2C_Read... [12:04:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:48]Read from MH i2c: E2 [12:04:48]MH_I2C_Read... [12:04:48]Read from MH i2c: E2 0B 00 [12:04:48]MH_I2C_Read... [12:04:48]Read from MH i2c: E2 0B 00 7A 04 00 D0 20 F3 8D 63 5B 88 FA 90 00 AA [12:04:48]RAPDU: D0 20 F3 8D 63 5B 88 FA 90 00 [12:04:48]wFMCommunicate OK [12:04:48]SAM_PROTO_SignData done [12:04:48]FM_MakeSignedData done [12:04:48]CreateOFDProtocolMessage [12:04:48]wFMCommunicate request_size=4 [12:04:48]MH_SAM_APDU [12:04:48]CAPDU: 80 11 00 00 [12:04:48]Write to MH i2c: E2 08 00 7B 04 80 11 00 00 00 00 00 00 F9 [12:04:48]Write i2c OK [12:04:48]MH_I2C_Read... [12:04:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:48]Read from MH i2c: E2 [12:04:48]MH_I2C_Read... [12:04:48]Read from MH i2c: E2 17 00 [12:04:48]MH_I2C_Read... [12:04:48]Read from MH i2c: E2 17 00 7B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4E [12:04:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:04:48]wFMCommunicate OK [12:04:48]CreateOFDProtocolMessage done [12:04:48]OFDSenderStorePacket 201438 [12:04:48]StoreOFDPacket docnum=201438 [12:04:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 43 4A 07 01 D9 47 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 32 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 C8 00 00 00 F4 03 04 00 DF DA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DE 12 03 00 35 04 06 00 30 F8 88 28 DF 48 D0 20 F3 8D 63 5B 88 FA [12:04:48]CheckFolder [12:04:48]dirname=/storage/ofd_packets [12:04:48]CheckFolder done [12:04:48]ProducePacketName [12:04:48]name=ofd_packets/00201438 [12:04:48]NVStorageSaveData ofd_packets/00201438 [12:04:48]File name is /storage/ofd_packets/00201438 [12:04:48]Write 301 bytes [12:04:48]NVStorageSaveData done [12:04:48]OFDSenderStorePacket done [12:04:48]KKMCreateOFDPacket done [12:04:48]NVStorageSaveData kkm_last_timestamp [12:04:48]File name is /storage/kkm_last_timestamp [12:04:48]Write 4 bytes [12:04:48]NVStorageSaveData done [12:04:48]ExternCall_PrintAddStr [12:04:48]wPrintStart [12:04:48]Write to MH i2c: 01 00 00 7C 04 80 [12:04:48]Write i2c OK [12:04:48]MH_I2C_Read... [12:04:48]Read from MH i2c: 01 [12:04:48]MH_I2C_Read... [12:04:48]Read from MH i2c: 01 07 00 [12:04:48]MH_I2C_Read... [12:04:48]Read from MH i2c: 01 07 00 7C 04 00 00 00 00 00 FF 0F 95 [12:04:48]RasterBufferAndPrint [12:04:48]line Счет N : (1)449187 [12:04:48]line ИНН: 02508201610067 [12:04:48]line Контрольно-Кассовый Чек [12:04:48]line ПРОДАЖА [12:04:48]line ТРК (МРК, ГНК) : 41 [12:04:48]line Товар: 2710124130 [12:04:48]line Аи-92-К-2 [12:04:48]line 2.990 * 66.90 [12:04:48]line = 200.03 [12:04:48]line НДС 12% НСП 1% [12:04:48]line > о реализуемом товаре [12:04:48]line ОКРУГЛЕНИЕ: -0.03 [12:04:48]line ИТОГО: 200.00 [12:04:48]line Внесено: 200.00 [12:04:48]line СДАЧА: 0.00 [12:04:48]line НСП 1% : 1.77 [12:04:48]line НДС 12% : 21.24 [12:04:48]line Наличными: 200.00 [12:04:48]line Безнал.: 0.00 [12:04:48]line Место: АЗС № 171 "Партнер Нефть" [12:04:48]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:04:48]line СНО: Общий режим [12:04:48]line Чек 200 26.10.2024 12:04 [12:04:48]line Смена: 543 ФФД: 1.0 [12:04:48]line ЗНМ: 0300000109 [12:04:48]line РНМ: 0000000000091777 [12:04:48]line Версия ККМ: 001 [12:04:48]line ФМ: 0000000000871756 [12:04:48]line ФД: 201438 [12:04:48]line ФПД: 53843994402632 [12:04:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120447&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201438&fm=53843994402632&tin=02508201610067®Number=0000000000091777&sum=20000 [12:04:48]OFD Sender: Processing packet 201438 [packets to send 112, broken 111] [12:04:48]ProducePacketName [12:04:48]name=ofd_packets/00201438 [12:04:48]OFD Sender: To server: pG, [12:04:48]CommunicateWithHost lk.salyk.kg:30040 [12:04:48]ConnectInit lk.salyk.kg [12:04:48]written 0, free lines is 4095 [12:04:49]Connected sock=9 [12:04:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 43 4A 07 01 D9 47 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 32 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 C8 00 00 00 F4 03 04 00 DF DA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DE 12 03 00 35 04 06 00 30 F8 88 28 DF 48 D0 20 F3 8D 63 5B 88 FA [12:04:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 6D 3D 47 00 9A C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DE 12 03 00 F4 03 04 00 88 86 1C 67 B6 04 01 00 00 F2 D6 E8 CC 16 0D 52 D1 [12:04:49]CommunicateWithHost err = 0 [12:04:49]CheckOFDResponse [12:04:49]1017 (14) - 77093643461234 [12:04:49]1041 (16) - 0000000000871756 [12:04:49]1040 (4) - 201438 [12:04:49]1012 (4) - 26.10.2024 06:04 [12:04:49]1206 (1) - 0 [12:04:49]OFD Sender: Remove packet 201438 [12:04:49]ProducePacketName [12:04:49]name=ofd_packets/00201438 [12:04:49]NVStorageDeleteData [12:04:49]Write to MH i2c: 01 00 00 A7 04 AB [12:04:49]Write i2c OK [12:04:49]MH_I2C_Read... [12:04:49]Read from MH i2c: 01 [12:04:49]MH_I2C_Read... [12:04:49]Read from MH i2c: 01 07 00 [12:04:49]MH_I2C_Read... [12:04:49]Read from MH i2c: 01 07 00 A7 04 00 00 00 00 00 A4 0C 62 [12:04:49]RasterBufferAndPrint [12:04:49]line [12:04:49]line [12:04:49]line [12:04:49]line [12:04:49]line [12:04:49]written 0, free lines is 3241 [12:04:49]MH_Cut [12:04:49]Write to MH i2c: D1 01 00 AE 04 01 84 [12:04:49]Write i2c OK [12:04:49]MH_I2C_Read... [12:04:49]Read from MH i2c: D1 [12:04:49]MH_I2C_Read... [12:04:49]Read from MH i2c: D1 01 00 [12:04:49]MH_I2C_Read... [12:04:49]Read from MH i2c: D1 01 00 AE 04 00 83 [12:04:49]Write to MH i2c: 01 00 00 AF 04 B3 [12:04:49]Write i2c OK [12:04:49]MH_I2C_Read... [12:04:49]OFD Sender: No OFD packet to send [12:04:50]*** Cut start [12:04:50]*** Purtial cut [12:04:50]*** Stage 1: CUTSNS_PIN = 1 [12:04:50]Read from MH i2c: 01 [12:04:50]MH_I2C_Read... [12:04:50]*** Stop cut motor [12:04:50]*** Cut end [12:04:50]Read from MH i2c: 01 07 00 [12:04:50]MH_I2C_Read... [12:04:50]Read from MH i2c: 01 07 00 AF 04 00 00 00 00 00 FF 0F C8 [12:04:50]process_action close_receipt done [12:04:50]requested_data is exist [12:04:50]produce_requested_data [12:04:50]requested_item fm.sn is exist - process it [12:04:50]wFMCommunicate request_size=4 [12:04:50]MH_SAM_APDU [12:04:50]CAPDU: 80 11 00 00 [12:04:50]Write to MH i2c: E2 08 00 B0 04 80 11 00 00 00 00 00 00 2E [12:04:50]Write i2c OK [12:04:50]MH_I2C_Read... [12:04:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:50]Read from MH i2c: E2 [12:04:50]MH_I2C_Read... [12:04:50]Read from MH i2c: E2 17 00 [12:04:50]MH_I2C_Read... [12:04:50]Read from MH i2c: E2 17 00 B0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 83 [12:04:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:04:50]wFMCommunicate OK [12:04:50]requested_item fd.num is exist - process it [12:04:50]SAM_PROTO_GetFieldsCounters [12:04:50]wFMCommunicate request_size=4 [12:04:50]MH_SAM_APDU [12:04:50]CAPDU: 80 13 00 00 [12:04:50]Write to MH i2c: E2 08 00 B1 04 80 13 00 00 00 00 00 00 31 [12:04:50]Write i2c OK [12:04:50]MH_I2C_Read... [12:04:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:50]Read from MH i2c: E2 [12:04:50]MH_I2C_Read... [12:04:50]Read from MH i2c: E2 62 00 [12:04:50]MH_I2C_Read... [12:04:50]Read from MH i2c: E2 62 00 B1 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DE 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [12:04:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DE 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:04:50]wFMCommunicate OK [12:04:50]SAM_PROTO_GetFieldsCounters done [12:04:50]requested_item shift.num is exist - process it [12:04:50]requested_item shift.opened is exist - process it [12:04:50]req_shift_opened [12:04:50]FM_GetShiftState [12:04:50]SAM_PROTO_GetShiftState [12:04:50]wFMCommunicate request_size=4 [12:04:50]MH_SAM_APDU [12:04:50]CAPDU: 80 13 01 00 [12:04:50]Write to MH i2c: E2 08 00 B2 04 80 13 01 00 00 00 00 00 33 [12:04:50]Write i2c OK [12:04:50]MH_I2C_Read... [12:04:50]Read from MH i2c: E2 [12:04:50]MH_I2C_Read... [12:04:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:50]Read from MH i2c: E2 0E 00 [12:04:50]MH_I2C_Read... [12:04:50]Read from MH i2c: E2 0E 00 B2 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 42 [12:04:50]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:04:50]wFMCommunicate OK [12:04:50]SAM_PROTO_GetShiftState done [12:04:50]FM_GetShiftState done [12:04:50]req_shift_opened done [12:04:50]requested_item shift.open_date is exist - process it [12:04:50]req_shift_open_date [12:04:50]req_shift_open_date done [12:04:50]produce_requested_data done [12:04:50]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201438,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:04:50]process_action_free close_receipt [12:04:50]json_value_free [12:04:50]json_value_free done [12:04:50]process_json_proto returns [12:04:50]Send response to host [12:04:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201438,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:04:50]free response buf [12:04:50]execute_script done [12:04:50]execute_script returns [12:04:50]free content buf [12:04:50]Sock 8.Close socket [12:04:50]Sock 8.Thread stoped [12:04:53]accept exits with 10 [12:04:53]New connection [12:04:53]New thread 3066834276 created [12:04:53]Thread 3066690916 joined [12:04:53]Waiting for new connection... [12:04:53] Sock 10.Parse request [12:04:53]Sock 10.Check first char [12:04:53]Sock 10.First char is OK [12:04:53]request: POST /json_proto HTTP/1.0 [12:04:53]Method: POST [12:04:53]URL: /json_proto [12:04:53]Method is POST - this is cgi request [12:04:53]url: /json_proto [12:04:53]query_string will be loaded in cgi processing [12:04:53]execute_cgi json_proto POST (null) [12:04:53]execute_cgi path=json_proto method=POST [12:04:53]POST find Content-Length [12:04:53]Host: 172.17.63.195:8080 [12:04:53]Content-Length: 677 [12:04:53]Content-Type: application/json [12:04:53] [12:04:53]POST finish read [12:04:53]Found Content-Length = 677 [12:04:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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" ] } } [12:04:53]execute_script... [12:04:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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" ] } } [12:04:53]POST & json_proto [12:04:53]process_json_proto [12:04:53]json parsed OK: [12:04:53]protocol is kg_v1.0 [12:04:53]action value=close_receipt [12:04:53]process_action close_receipt [12:04:53]cmd_close_receipt [12:04:53]MH_GetDate [12:04:53]Write to MH i2c: F0 00 00 B3 04 A6 [12:04:53]Write i2c OK [12:04:53]MH_I2C_Read... [12:04:53]Read from MH i2c: F0 [12:04:53]MH_I2C_Read... [12:04:53]Read from MH i2c: F0 09 00 [12:04:53]MH_I2C_Read... [12:04:53]Read from MH i2c: F0 09 00 B3 04 00 E6 DA 1C 67 68 46 19 67 20 [12:04:53]GetLastDocTimeStamp 1729944287 [12:04:53]current date 1729944294 [12:04:53]FM_GetShiftState [12:04:53]SAM_PROTO_GetShiftState [12:04:53]wFMCommunicate request_size=4 [12:04:53]MH_SAM_APDU [12:04:53]CAPDU: 80 13 01 00 [12:04:53]Write to MH i2c: E2 08 00 B4 04 80 13 01 00 00 00 00 00 35 [12:04:53]Write i2c OK [12:04:53]MH_I2C_Read... [12:04:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:53]Read from MH i2c: E2 [12:04:53]MH_I2C_Read... [12:04:53]Read from MH i2c: E2 0E 00 [12:04:53]MH_I2C_Read... [12:04:53]Read from MH i2c: E2 0E 00 B4 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 44 [12:04:53]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:04:53]wFMCommunicate OK [12:04:53]SAM_PROTO_GetShiftState done [12:04:53]FM_GetShiftState done [12:04:53]opened in 1729900879 [12:04:53]opened+sec_in_day 1729987279 [12:04:53]quantity*price = 60009 [12:04:53]sum+1 = 60010 [12:04:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 201 26.10.2024 12:04 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201439 ФПД: 83436465865664 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120454&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201439&fm=83436465865664&tin=02508201610067®Number=0000000000091777&sum=60000 [12:04:54]StoreToDocumentArchive [12:04:54]shift 543 fd 201439 [12:04:54]save to /storage/0543/doc_00201439 [12:04:54]save last doc name /storage/0543/doc_00201439 to /storage/kkm_last_doc_name [12:04:54]save OK [12:04:54]Clear old archive folders... [12:04:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:04:54]tlvbuf is 01F6BE50 [12:04:54]SAM_PROTO_ClearQueue [12:04:54]wFMCommunicate request_size=4 [12:04:54]MH_SAM_APDU [12:04:54]CAPDU: 80 09 00 00 [12:04:54]Write to MH i2c: E2 08 00 C1 04 80 09 00 00 00 00 00 00 37 [12:04:54]Write i2c OK [12:04:54]MH_I2C_Read... [12:04:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:54]Read from MH i2c: E2 [12:04:54]MH_I2C_Read... [12:04:54]Read from MH i2c: E2 03 00 [12:04:54]MH_I2C_Read... [12:04:54]Read from MH i2c: E2 03 00 C1 04 00 90 00 39 [12:04:54]RAPDU: 90 00 [12:04:54]wFMCommunicate OK [12:04:54]SAM_PROTO_ClearQueue done [12:04:54]KKMCreateOFDPacket [12:04:54]OFDProtocolAddRootSTLVToBuf [12:04:54]FM_MakeSignedData [12:04:54]FM_MakeSignedData [12:04:54]SAM_PROTO_SignData [12:04:54]wFMCommunicate request_size=4 [12:04:54]MH_SAM_APDU [12:04:54]CAPDU: 80 0D 01 02 [12:04:54]Write to MH i2c: E2 08 00 C2 04 80 0D 01 02 00 00 00 00 3F [12:04:54]Write i2c OK [12:04:54]MH_I2C_Read... [12:04:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:54]Read from MH i2c: E2 [12:04:54]MH_I2C_Read... [12:04:54]Read from MH i2c: E2 03 00 [12:04:54]MH_I2C_Read... [12:04:54]Read from MH i2c: E2 03 00 C2 04 00 90 00 3A [12:04:54]RAPDU: 90 00 [12:04:54]wFMCommunicate OK [12:04:54]wFMCommunicate request_size=255 [12:04:54]MH_SAM_APDU [12:04: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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 C9 00 00 00 F4 03 04 00 E6 DA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DF 12 03 00 35 04 06 00 4B [12:04:54]Write to MH i2c: E2 02 01 C3 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 C9 00 00 00 F4 03 04 00 E6 DA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DF 12 03 00 35 04 06 00 4B 00 00 1C [12:04:54]Write i2c OK [12:04:54]MH_I2C_Read... [12:04:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:55]Read from MH i2c: E2 [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: E2 03 00 [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: E2 03 00 C3 04 00 90 00 3B [12:04:55]RAPDU: 90 00 [12:04:55]wFMCommunicate OK [12:04:55]wFMCommunicate request_size=10 [12:04:55]MH_SAM_APDU [12:04:55]CAPDU: 80 0D 02 02 05 E2 90 E8 C3 C0 [12:04:55]Write to MH i2c: E2 0D 00 C4 04 80 0D 02 02 05 00 E2 90 E8 C3 C0 00 00 29 [12:04:55]Write i2c OK [12:04:55]MH_I2C_Read... [12:04:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:55]Read from MH i2c: E2 [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: E2 03 00 [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: E2 03 00 C4 04 00 90 00 3C [12:04:55]RAPDU: 90 00 [12:04:55]wFMCommunicate OK [12:04:55]wFMCommunicate request_size=4 [12:04:55]MH_SAM_APDU [12:04:55]CAPDU: 80 0D 03 02 [12:04:55]Write to MH i2c: E2 08 00 C5 04 80 0D 03 02 00 00 00 00 44 [12:04:55]Write i2c OK [12:04:55]MH_I2C_Read... [12:04:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:55]Read from MH i2c: E2 [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: E2 0B 00 [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: E2 0B 00 C5 04 00 CC C0 EF 01 02 73 46 3D 90 00 B9 [12:04:55]RAPDU: CC C0 EF 01 02 73 46 3D 90 00 [12:04:55]wFMCommunicate OK [12:04:55]SAM_PROTO_SignData done [12:04:55]FM_MakeSignedData done [12:04:55]CreateOFDProtocolMessage [12:04:55]wFMCommunicate request_size=4 [12:04:55]MH_SAM_APDU [12:04:55]CAPDU: 80 11 00 00 [12:04:55]Write to MH i2c: E2 08 00 C6 04 80 11 00 00 00 00 00 00 44 [12:04:55]Write i2c OK [12:04:55]MH_I2C_Read... [12:04:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:55]Read from MH i2c: E2 [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: E2 17 00 [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: E2 17 00 C6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 99 [12:04:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:04:55]wFMCommunicate OK [12:04:55]CreateOFDProtocolMessage done [12:04:55]OFDSenderStorePacket 201439 [12:04:55]StoreOFDPacket docnum=201439 [12:04:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 27 78 07 01 22 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 C9 00 00 00 F4 03 04 00 E6 DA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DF 12 03 00 35 04 06 00 4B E2 90 E8 C3 C0 CC C0 EF 01 02 73 46 3D [12:04:55]CheckFolder [12:04:55]dirname=/storage/ofd_packets [12:04:55]CheckFolder done [12:04:55]ProducePacketName [12:04:55]name=ofd_packets/00201439 [12:04:55]NVStorageSaveData ofd_packets/00201439 [12:04:55]File name is /storage/ofd_packets/00201439 [12:04:55]Write 301 bytes [12:04:55]NVStorageSaveData done [12:04:55]OFDSenderStorePacket done [12:04:55]KKMCreateOFDPacket done [12:04:55]NVStorageSaveData kkm_last_timestamp [12:04:55]File name is /storage/kkm_last_timestamp [12:04:55]Write 4 bytes [12:04:55]NVStorageSaveData done [12:04:55]ExternCall_PrintAddStr [12:04:55]wPrintStart [12:04:55]Write to MH i2c: 01 00 00 C7 04 CB [12:04:55]Write i2c OK [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: 01 [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: 01 07 00 [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: 01 07 00 C7 04 00 00 00 00 00 FF 0F E0 [12:04:55]RasterBufferAndPrint [12:04:55]line Счет N : (1)449188 [12:04:55]line ИНН: 02508201610067 [12:04:55]line Контрольно-Кассовый Чек [12:04:55]line ПРОДАЖА [12:04:55]line ТРК (МРК, ГНК) : 31 [12:04:55]line Товар: 2710124130 [12:04:55]line Аи-92-К-2 [12:04:55]line 8.970 * 66.90 [12:04:55]line = 600.09 [12:04:55]line НДС 12% НСП 1% [12:04:55]line > о реализуемом товаре [12:04:55]line ОКРУГЛЕНИЕ: -0.09 [12:04:55]line ИТОГО: 600.00 [12:04:55]line Внесено: 600.00 [12:04:55]line СДАЧА: 0.00 [12:04:55]line НСП 1% : 5.31 [12:04:55]line НДС 12% : 63.73 [12:04:55]line Наличными: 600.00 [12:04:55]line Безнал.: 0.00 [12:04:55]line Место: АЗС № 171 "Партнер Нефть" [12:04:55]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:04:55]line СНО: Общий режим [12:04:55]line Чек 201 26.10.2024 12:04 [12:04:55]line Смена: 543 ФФД: 1.0 [12:04:55]line ЗНМ: 0300000109 [12:04:55]line РНМ: 0000000000091777 [12:04:55]line Версия ККМ: 001 [12:04:55]line ФМ: 0000000000871756 [12:04:55]line ФД: 201439 [12:04:55]line ФПД: 83436465865664 [12:04:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120454&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201439&fm=83436465865664&tin=02508201610067®Number=0000000000091777&sum=60000 [12:04:55]OFD Sender: Processing packet 201439 [packets to send 112, broken 111] [12:04:55]ProducePacketName [12:04:55]name=ofd_packets/00201439 [12:04:55]OFD Sender: To server: pG, [12:04:55]CommunicateWithHost lk.salyk.kg:30040 [12:04:55]ConnectInit lk.salyk.kg [12:04:55]written 0, free lines is 4095 [12:04:55]Connected sock=9 [12:04:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 27 78 07 01 22 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 C9 00 00 00 F4 03 04 00 E6 DA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DF 12 03 00 35 04 06 00 4B E2 90 E8 C3 C0 CC C0 EF 01 02 73 46 3D [12:04:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 0F C0 47 00 32 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DF 12 03 00 F4 03 04 00 8F 86 1C 67 B6 04 01 00 00 F4 54 3E A4 E0 93 8D A4 [12:04:55]CommunicateWithHost err = 0 [12:04:55]CheckOFDResponse [12:04:55]1017 (14) - 77093643461234 [12:04:55]1041 (16) - 0000000000871756 [12:04:55]1040 (4) - 201439 [12:04:55]1012 (4) - 26.10.2024 06:05 [12:04:55]1206 (1) - 0 [12:04:55]OFD Sender: Remove packet 201439 [12:04:55]ProducePacketName [12:04:55]name=ofd_packets/00201439 [12:04:55]NVStorageDeleteData [12:04:55]Write to MH i2c: 01 00 00 F2 04 F6 [12:04:55]Write i2c OK [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: 01 [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: 01 07 00 [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: 01 07 00 F2 04 00 00 00 00 00 B1 0C BA [12:04:55]RasterBufferAndPrint [12:04:55]line [12:04:55]line [12:04:55]line [12:04:55]line [12:04:55]line [12:04:55]written 0, free lines is 3264 [12:04:55]MH_Cut [12:04:55]Write to MH i2c: D1 01 00 F9 04 01 CF [12:04:55]Write i2c OK [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: D1 [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: D1 01 00 [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: D1 01 00 F9 04 00 CE [12:04:55]Write to MH i2c: 01 00 00 FA 04 FE [12:04:55]Write i2c OK [12:04:55]MH_I2C_Read... [12:04:56]OFD Sender: No OFD packet to send [12:04:56]*** Cut start [12:04:56]*** Purtial cut [12:04:56]*** Stage 1: CUTSNS_PIN = 1 [12:04:56]Read from MH i2c: 01 [12:04:56]MH_I2C_Read... [12:04:56]*** Stop cut motor [12:04:56]*** Cut end [12:04:56]Read from MH i2c: 01 07 00 [12:04:56]MH_I2C_Read... [12:04:56]Read from MH i2c: 01 07 00 FA 04 00 00 00 00 00 FF 0F 13 [12:04:56]process_action close_receipt done [12:04:56]requested_data is exist [12:04:56]produce_requested_data [12:04:56]requested_item fm.sn is exist - process it [12:04:56]wFMCommunicate request_size=4 [12:04:56]MH_SAM_APDU [12:04:56]CAPDU: 80 11 00 00 [12:04:56]Write to MH i2c: E2 08 00 FB 04 80 11 00 00 00 00 00 00 79 [12:04:56]Write i2c OK [12:04:56]MH_I2C_Read... [12:04:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:56]Read from MH i2c: E2 [12:04:56]MH_I2C_Read... [12:04:56]Read from MH i2c: E2 17 00 [12:04:56]MH_I2C_Read... [12:04:56]Read from MH i2c: E2 17 00 FB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CE [12:04:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:04:56]wFMCommunicate OK [12:04:56]requested_item fd.num is exist - process it [12:04:56]SAM_PROTO_GetFieldsCounters [12:04:56]wFMCommunicate request_size=4 [12:04:56]MH_SAM_APDU [12:04:56]CAPDU: 80 13 00 00 [12:04:56]Write to MH i2c: E2 08 00 FC 04 80 13 00 00 00 00 00 00 7C [12:04:56]Write i2c OK [12:04:56]MH_I2C_Read... [12:04:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:57]Read from MH i2c: E2 [12:04:57]MH_I2C_Read... [12:04:57]Read from MH i2c: E2 62 00 [12:04:57]MH_I2C_Read... [12:04:57]Read from MH i2c: E2 62 00 FC 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DF 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [12:04:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DF 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:04:57]wFMCommunicate OK [12:04:57]SAM_PROTO_GetFieldsCounters done [12:04:57]requested_item shift.num is exist - process it [12:04:57]requested_item shift.opened is exist - process it [12:04:57]req_shift_opened [12:04:57]FM_GetShiftState [12:04:57]SAM_PROTO_GetShiftState [12:04:57]wFMCommunicate request_size=4 [12:04:57]MH_SAM_APDU [12:04:57]CAPDU: 80 13 01 00 [12:04:57]Write to MH i2c: E2 08 00 FD 04 80 13 01 00 00 00 00 00 7E [12:04:57]Write i2c OK [12:04:57]MH_I2C_Read... [12:04:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:57]Read from MH i2c: E2 [12:04:57]MH_I2C_Read... [12:04:57]Read from MH i2c: E2 0E 00 [12:04:57]MH_I2C_Read... [12:04:57]Read from MH i2c: E2 0E 00 FD 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 8D [12:04:57]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:04:57]wFMCommunicate OK [12:04:57]SAM_PROTO_GetShiftState done [12:04:57]FM_GetShiftState done [12:04:57]req_shift_opened done [12:04:57]requested_item shift.open_date is exist - process it [12:04:57]req_shift_open_date [12:04:57]req_shift_open_date done [12:04:57]produce_requested_data done [12:04:57]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201439,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:04:57]process_action_free close_receipt [12:04:57]json_value_free [12:04:57]json_value_free done [12:04:57]process_json_proto returns [12:04:57]Send response to host [12:04:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201439,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:04:57]free response buf [12:04:57]execute_script done [12:04:57]execute_script returns [12:04:57]free content buf [12:04:57]Sock 10.Close socket [12:04:57]Sock 10.Thread stoped [12:05:01]OFD Sender: No OFD packet to send [12:05:06]OFD Sender: No OFD packet to send [12:05:11]OFD Sender: No OFD packet to send [12:05:16]OFD Sender: No OFD packet to send [12:05:21]OFD Sender: No OFD packet to send [12:05:26]OFD Sender: No OFD packet to send [12:05:31]OFD Sender: No OFD packet to send [12:05:36]OFD Sender: No OFD packet to send [12:05:41]OFD Sender: No OFD packet to send [12:05:46]OFD Sender: No OFD packet to send [12:05:51]OFD Sender: No OFD packet to send [12:05:56]OFD Sender: No OFD packet to send [12:06:01]OFD Sender: No OFD packet to send [12:06:06]OFD Sender: No OFD packet to send [12:06:11]OFD Sender: No OFD packet to send [12:06:16]OFD Sender: No OFD packet to send [12:06:21]OFD Sender: No OFD packet to send [12:06:26]OFD Sender: No OFD packet to send [12:06:31]OFD Sender: No OFD packet to send [12:06:36]OFD Sender: No OFD packet to send [12:06:41]OFD Sender: No OFD packet to send [12:06:46]OFD Sender: No OFD packet to send [12:06:51]OFD Sender: No OFD packet to send [12:06:56]OFD Sender: No OFD packet to send [12:07:01]OFD Sender: No OFD packet to send [12:07:06]OFD Sender: No OFD packet to send [12:07:11]OFD Sender: No OFD packet to send [12:07:16]OFD Sender: No OFD packet to send [12:07:21]OFD Sender: No OFD packet to send [12:07:26]OFD Sender: No OFD packet to send [12:07:31]OFD Sender: No OFD packet to send [12:07:31]accept exits with 8 [12:07:31]New connection [12:07:31]New thread 3066690916 created [12:07:31]Thread 3066834276 joined [12:07:31]Waiting for new connection... [12:07:31] Sock 8.Parse request [12:07:31]Sock 8.Check first char [12:07:31]Sock 8.First char is OK [12:07:31]request: POST /json_proto HTTP/1.0 [12:07:31]Method: POST [12:07:31]URL: /json_proto [12:07:31]Method is POST - this is cgi request [12:07:31]url: /json_proto [12:07:31]query_string will be loaded in cgi processing [12:07:31]execute_cgi json_proto POST (null) [12:07:31]execute_cgi path=json_proto method=POST [12:07:31]POST find Content-Length [12:07:31]Host: 172.17.63.195:8080 [12:07:31]Content-Length: 677 [12:07:31]Content-Type: application/json [12:07:31] [12:07:31]POST finish read [12:07:31]Found Content-Length = 677 [12:07:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:07:31]execute_script... [12:07: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)449189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:07:31]POST & json_proto [12:07:31]process_json_proto [12:07:31]json parsed OK: [12:07:31]protocol is kg_v1.0 [12:07:31]action value=close_receipt [12:07:31]process_action close_receipt [12:07:31]cmd_close_receipt [12:07:31]MH_GetDate [12:07:31]Write to MH i2c: F0 00 00 FE 04 F1 [12:07:31]Write i2c OK [12:07:31]MH_I2C_Read... [12:07:31]Read from MH i2c: F0 [12:07:31]MH_I2C_Read... [12:07:31]Read from MH i2c: F0 09 00 [12:07:31]MH_I2C_Read... [12:07:31]Read from MH i2c: F0 09 00 FE 04 00 84 DB 1C 67 68 46 19 67 0A [12:07:31]GetLastDocTimeStamp 1729944294 [12:07:31]current date 1729944452 [12:07:31]FM_GetShiftState [12:07:31]SAM_PROTO_GetShiftState [12:07:31]wFMCommunicate request_size=4 [12:07:31]MH_SAM_APDU [12:07:31]CAPDU: 80 13 01 00 [12:07:31]Write to MH i2c: E2 08 00 FF 04 80 13 01 00 00 00 00 00 80 [12:07:31]Write i2c OK [12:07:31]MH_I2C_Read... [12:07:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:31]Read from MH i2c: E2 [12:07:31]MH_I2C_Read... [12:07:31]Read from MH i2c: E2 0E 00 [12:07:31]MH_I2C_Read... [12:07:31]Read from MH i2c: E2 0E 00 FF 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 8F [12:07:31]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:07:31]wFMCommunicate OK [12:07:31]SAM_PROTO_GetShiftState done [12:07:31]FM_GetShiftState done [12:07:31]opened in 1729900879 [12:07:31]opened+sec_in_day 1729987279 [12:07:31]quantity*price = 50041 [12:07:31]sum+1 = 50042 [12:07:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 202 26.10.2024 12:07 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201440 ФПД: 121498710420733 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120732&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201440&fm=121498710420733&tin=02508201610067®Number=0000000000091777&sum=50000 [12:07:32]StoreToDocumentArchive [12:07:32]shift 543 fd 201440 [12:07:32]save to /storage/0543/doc_00201440 [12:07:32]save last doc name /storage/0543/doc_00201440 to /storage/kkm_last_doc_name [12:07:32]save OK [12:07:32]Clear old archive folders... [12:07:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:07:32]tlvbuf is 01F43F30 [12:07:32]SAM_PROTO_ClearQueue [12:07:32]wFMCommunicate request_size=4 [12:07:32]MH_SAM_APDU [12:07:32]CAPDU: 80 09 00 00 [12:07:32]Write to MH i2c: E2 08 00 0C 05 80 09 00 00 00 00 00 00 83 [12:07:32]Write i2c OK [12:07:32]MH_I2C_Read... [12:07:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:32]Read from MH i2c: E2 [12:07:32]MH_I2C_Read... [12:07:32]Read from MH i2c: E2 03 00 [12:07:32]MH_I2C_Read... [12:07:32]Read from MH i2c: E2 03 00 0C 05 00 90 00 85 [12:07:32]RAPDU: 90 00 [12:07:32]wFMCommunicate OK [12:07:32]SAM_PROTO_ClearQueue done [12:07:32]KKMCreateOFDPacket [12:07:32]OFDProtocolAddRootSTLVToBuf [12:07:32]FM_MakeSignedData [12:07:32]FM_MakeSignedData [12:07:32]SAM_PROTO_SignData [12:07:32]wFMCommunicate request_size=4 [12:07:32]MH_SAM_APDU [12:07:32]CAPDU: 80 0D 01 02 [12:07:32]Write to MH i2c: E2 08 00 0D 05 80 0D 01 02 00 00 00 00 8B [12:07:32]Write i2c OK [12:07:32]MH_I2C_Read... [12:07:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:32]Read from MH i2c: E2 [12:07:32]MH_I2C_Read... [12:07:32]Read from MH i2c: E2 03 00 [12:07:32]MH_I2C_Read... [12:07:32]Read from MH i2c: E2 03 00 0D 05 00 90 00 86 [12:07:32]RAPDU: 90 00 [12:07:32]wFMCommunicate OK [12:07:32]wFMCommunicate request_size=255 [12:07:32]MH_SAM_APDU [12:07:32]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 32 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 CA 00 00 00 F4 03 04 00 84 DB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E0 12 03 00 35 04 06 00 6E [12:07:32]Write to MH i2c: E2 02 01 0E 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 32 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 CA 00 00 00 F4 03 04 00 84 DB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E0 12 03 00 35 04 06 00 6E 00 00 4F [12:07:32]Write i2c OK [12:07:32]MH_I2C_Read... [12:07:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:33]Read from MH i2c: E2 [12:07:33]MH_I2C_Read... [12:07:33]Read from MH i2c: E2 03 00 [12:07:33]MH_I2C_Read... [12:07:33]Read from MH i2c: E2 03 00 0E 05 00 90 00 87 [12:07:33]RAPDU: 90 00 [12:07:33]wFMCommunicate OK [12:07:33]wFMCommunicate request_size=10 [12:07:33]MH_SAM_APDU [12:07:33]CAPDU: 80 0D 02 02 05 80 9F 79 AC FD [12:07:33]Write to MH i2c: E2 0D 00 0F 05 80 0D 02 02 05 00 80 9F 79 AC FD 00 00 D9 [12:07:33]Write i2c OK [12:07:33]MH_I2C_Read... [12:07:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:33]Read from MH i2c: E2 [12:07:33]MH_I2C_Read... [12:07:33]Read from MH i2c: E2 03 00 [12:07:33]MH_I2C_Read... [12:07:33]Read from MH i2c: E2 03 00 0F 05 00 90 00 88 [12:07:33]RAPDU: 90 00 [12:07:33]wFMCommunicate OK [12:07:33]wFMCommunicate request_size=4 [12:07:33]MH_SAM_APDU [12:07:33]CAPDU: 80 0D 03 02 [12:07:33]Write to MH i2c: E2 08 00 10 05 80 0D 03 02 00 00 00 00 90 [12:07:33]Write i2c OK [12:07:33]MH_I2C_Read... [12:07:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:33]Read from MH i2c: E2 [12:07:33]MH_I2C_Read... [12:07:33]Read from MH i2c: E2 0B 00 [12:07:33]MH_I2C_Read... [12:07:33]Read from MH i2c: E2 0B 00 10 05 00 D2 8A 84 9F 0A 66 12 25 90 00 B7 [12:07:33]RAPDU: D2 8A 84 9F 0A 66 12 25 90 00 [12:07:33]wFMCommunicate OK [12:07:33]SAM_PROTO_SignData done [12:07:33]FM_MakeSignedData done [12:07:33]CreateOFDProtocolMessage [12:07:33]wFMCommunicate request_size=4 [12:07:33]MH_SAM_APDU [12:07:33]CAPDU: 80 11 00 00 [12:07:33]Write to MH i2c: E2 08 00 11 05 80 11 00 00 00 00 00 00 90 [12:07:33]Write i2c OK [12:07:33]MH_I2C_Read... [12:07:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:33]Read from MH i2c: E2 [12:07:33]MH_I2C_Read... [12:07:33]Read from MH i2c: E2 17 00 [12:07:33]MH_I2C_Read... [12:07:33]Read from MH i2c: E2 17 00 11 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E5 [12:07:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:07:33]wFMCommunicate OK [12:07:33]CreateOFDProtocolMessage done [12:07:33]OFDSenderStorePacket 201440 [12:07:33]StoreOFDPacket docnum=201440 [12:07:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B5 2A 07 01 FA FD 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 32 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 CA 00 00 00 F4 03 04 00 84 DB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E0 12 03 00 35 04 06 00 6E 80 9F 79 AC FD D2 8A 84 9F 0A 66 12 25 [12:07:33]CheckFolder [12:07:33]dirname=/storage/ofd_packets [12:07:33]CheckFolder done [12:07:33]ProducePacketName [12:07:33]name=ofd_packets/00201440 [12:07:33]NVStorageSaveData ofd_packets/00201440 [12:07:33]File name is /storage/ofd_packets/00201440 [12:07:33]Write 301 bytes [12:07:33]NVStorageSaveData done [12:07:33]OFDSenderStorePacket done [12:07:33]KKMCreateOFDPacket done [12:07:33]NVStorageSaveData kkm_last_timestamp [12:07:33]File name is /storage/kkm_last_timestamp [12:07:33]Write 4 bytes [12:07:33]NVStorageSaveData done [12:07:33]ExternCall_PrintAddStr [12:07:33]wPrintStart [12:07:33]Write to MH i2c: 01 00 00 12 05 17 [12:07:33]Write i2c OK [12:07:33]MH_I2C_Read... [12:07:33]Read from MH i2c: 01 [12:07:33]MH_I2C_Read... [12:07:33]Read from MH i2c: 01 07 00 [12:07:33]MH_I2C_Read... [12:07:33]Read from MH i2c: 01 07 00 12 05 00 00 00 00 00 FF 0F 2C [12:07:33]RasterBufferAndPrint [12:07:33]line Счет N : (1)449189 [12:07:33]line ИНН: 02508201610067 [12:07:33]line Контрольно-Кассовый Чек [12:07:33]line ПРОДАЖА [12:07:33]line ТРК (МРК, ГНК) : 41 [12:07:33]line Товар: 2710124130 [12:07:33]line Аи-92-К-2 [12:07:33]line 7.480 * 66.90 [12:07:33]line = 500.41 [12:07:33]line НДС 12% НСП 1% [12:07:33]line > о реализуемом товаре [12:07:33]line ОКРУГЛЕНИЕ: -0.41 [12:07:33]line ИТОГО: 500.00 [12:07:33]line Внесено: 500.00 [12:07:33]line СДАЧА: 0.00 [12:07:33]line НСП 1% : 4.43 [12:07:33]line НДС 12% : 53.14 [12:07:33]line Наличными: 500.00 [12:07:33]line Безнал.: 0.00 [12:07:33]line Место: АЗС № 171 "Партнер Нефть" [12:07:33]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:07:33]line СНО: Общий режим [12:07:33]line Чек 202 26.10.2024 12:07 [12:07:33]line Смена: 543 ФФД: 1.0 [12:07:33]line ЗНМ: 0300000109 [12:07:33]line РНМ: 0000000000091777 [12:07:33]line Версия ККМ: 001 [12:07:33]line ФМ: 0000000000871756 [12:07:33]line ФД: 201440 [12:07:33]line ФПД: 121498710420733 [12:07:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120732&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201440&fm=121498710420733&tin=02508201610067®Number=0000000000091777&sum=50000 [12:07:33]OFD Sender: Processing packet 201440 [packets to send 112, broken 111] [12:07:33]ProducePacketName [12:07:33]name=ofd_packets/00201440 [12:07:33]OFD Sender: To server: pG, [12:07:33]CommunicateWithHost lk.salyk.kg:30040 [12:07:33]ConnectInit lk.salyk.kg [12:07:33]written 0, free lines is 4095 [12:07:33]Connected sock=10 [12:07:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B5 2A 07 01 FA FD 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 32 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 CA 00 00 00 F4 03 04 00 84 DB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E0 12 03 00 35 04 06 00 6E 80 9F 79 AC FD D2 8A 84 9F 0A 66 12 25 [12:07:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 57 34 47 00 39 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E0 12 03 00 F4 03 04 00 2D 87 1C 67 B6 04 01 00 00 27 CB 74 B4 8D 5B 0B ED [12:07:34]CommunicateWithHost err = 0 [12:07:34]CheckOFDResponse [12:07:34]1017 (14) - 77093643461234 [12:07:34]1041 (16) - 0000000000871756 [12:07:34]1040 (4) - 201440 [12:07:34]1012 (4) - 26.10.2024 06:07 [12:07:34]1206 (1) - 0 [12:07:34]OFD Sender: Remove packet 201440 [12:07:34]ProducePacketName [12:07:34]name=ofd_packets/00201440 [12:07:34]NVStorageDeleteData [12:07:34]Write to MH i2c: 01 00 00 3D 05 42 [12:07:34]Write i2c OK [12:07:34]MH_I2C_Read... [12:07:34]Read from MH i2c: 01 [12:07:34]MH_I2C_Read... [12:07:34]Read from MH i2c: 01 07 00 [12:07:34]MH_I2C_Read... [12:07:34]Read from MH i2c: 01 07 00 3D 05 00 00 00 00 00 A1 0C F6 [12:07:34]RasterBufferAndPrint [12:07:34]line [12:07:34]line [12:07:34]line [12:07:34]line [12:07:34]line [12:07:34]written 0, free lines is 3237 [12:07:34]MH_Cut [12:07:34]Write to MH i2c: D1 01 00 44 05 01 1B [12:07:34]Write i2c OK [12:07:34]MH_I2C_Read... [12:07:34]Read from MH i2c: D1 [12:07:34]MH_I2C_Read... [12:07:34]Read from MH i2c: D1 01 00 [12:07:34]MH_I2C_Read... [12:07:34]Read from MH i2c: D1 01 00 44 05 00 1A [12:07:34]Write to MH i2c: 01 00 00 45 05 4A [12:07:34]Write i2c OK [12:07:34]MH_I2C_Read... [12:07:34]OFD Sender: No OFD packet to send [12:07:35]*** Cut start [12:07:35]*** Purtial cut [12:07:35]*** Stage 1: CUTSNS_PIN = 1 [12:07:35]Read from MH i2c: 01 [12:07:35]MH_I2C_Read... [12:07:35]*** Stop cut motor [12:07:35]*** Cut end [12:07:35]Read from MH i2c: 01 07 00 [12:07:35]MH_I2C_Read... [12:07:35]Read from MH i2c: 01 07 00 45 05 00 00 00 00 00 FF 0F 5F [12:07:35]process_action close_receipt done [12:07:35]requested_data is exist [12:07:35]produce_requested_data [12:07:35]requested_item fm.sn is exist - process it [12:07:35]wFMCommunicate request_size=4 [12:07:35]MH_SAM_APDU [12:07:35]CAPDU: 80 11 00 00 [12:07:35]Write to MH i2c: E2 08 00 46 05 80 11 00 00 00 00 00 00 C5 [12:07:35]Write i2c OK [12:07:35]MH_I2C_Read... [12:07:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:35]Read from MH i2c: E2 [12:07:35]MH_I2C_Read... [12:07:35]Read from MH i2c: E2 17 00 [12:07:35]MH_I2C_Read... [12:07:35]Read from MH i2c: E2 17 00 46 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1A [12:07:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:07:35]wFMCommunicate OK [12:07:35]requested_item fd.num is exist - process it [12:07:35]SAM_PROTO_GetFieldsCounters [12:07:35]wFMCommunicate request_size=4 [12:07:35]MH_SAM_APDU [12:07:35]CAPDU: 80 13 00 00 [12:07:35]Write to MH i2c: E2 08 00 47 05 80 13 00 00 00 00 00 00 C8 [12:07:35]Write i2c OK [12:07:35]MH_I2C_Read... [12:07:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:35]Read from MH i2c: E2 [12:07:35]MH_I2C_Read... [12:07:35]Read from MH i2c: E2 62 00 [12:07:35]MH_I2C_Read... [12:07:35]Read from MH i2c: E2 62 00 47 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E0 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [12:07:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E0 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:07:35]wFMCommunicate OK [12:07:35]SAM_PROTO_GetFieldsCounters done [12:07:35]requested_item shift.num is exist - process it [12:07:35]requested_item shift.opened is exist - process it [12:07:35]req_shift_opened [12:07:35]FM_GetShiftState [12:07:35]SAM_PROTO_GetShiftState [12:07:35]wFMCommunicate request_size=4 [12:07:35]MH_SAM_APDU [12:07:35]CAPDU: 80 13 01 00 [12:07:35]Write to MH i2c: E2 08 00 48 05 80 13 01 00 00 00 00 00 CA [12:07:35]Write i2c OK [12:07:35]MH_I2C_Read... [12:07:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:35]Read from MH i2c: E2 [12:07:35]MH_I2C_Read... [12:07:35]Read from MH i2c: E2 0E 00 [12:07:35]MH_I2C_Read... [12:07:35]Read from MH i2c: E2 0E 00 48 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D9 [12:07:35]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:07:35]wFMCommunicate OK [12:07:35]SAM_PROTO_GetShiftState done [12:07:35]FM_GetShiftState done [12:07:35]req_shift_opened done [12:07:35]requested_item shift.open_date is exist - process it [12:07:35]req_shift_open_date [12:07:35]req_shift_open_date done [12:07:35]produce_requested_data done [12:07:35]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201440,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:07:35]process_action_free close_receipt [12:07:35]json_value_free [12:07:35]json_value_free done [12:07:35]process_json_proto returns [12:07:35]Send response to host [12:07:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201440,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:07:35]free response buf [12:07:35]execute_script done [12:07:35]execute_script returns [12:07:35]free content buf [12:07:35]Sock 8.Close socket [12:07:35]Sock 8.Thread stoped [12:07:39]OFD Sender: No OFD packet to send [12:07:44]OFD Sender: No OFD packet to send [12:07:49]OFD Sender: No OFD packet to send [12:07:54]accept exits with 9 [12:07:54]New connection [12:07:54]New thread 3066834276 created [12:07:54]Thread 3066690916 joined [12:07:54]Waiting for new connection... [12:07:54] Sock 9.Parse request [12:07:54]Sock 9.Check first char [12:07:54]Sock 9.First char is OK [12:07:54]request: POST /json_proto HTTP/1.0 [12:07:54]Method: POST [12:07:54]URL: /json_proto [12:07:54]Method is POST - this is cgi request [12:07:54]url: /json_proto [12:07:54]query_string will be loaded in cgi processing [12:07:54]execute_cgi json_proto POST (null) [12:07:54]execute_cgi path=json_proto method=POST [12:07:54]POST find Content-Length [12:07:54]Host: 172.17.63.195:8080 [12:07:54]Content-Length: 677 [12:07:54]Content-Type: application/json [12:07:54] [12:07:54]POST finish read [12:07:54]Found Content-Length = 677 [12:07:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:07:54]execute_script... [12:07: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)449190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:07:54]POST & json_proto [12:07:54]process_json_proto [12:07:54]json parsed OK: [12:07:54]protocol is kg_v1.0 [12:07:54]action value=close_receipt [12:07:54]process_action close_receipt [12:07:54]cmd_close_receipt [12:07:54]MH_GetDate [12:07:54]Write to MH i2c: F0 00 00 49 05 3D [12:07:54]Write i2c OK [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: F0 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: F0 09 00 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: F0 09 00 49 05 00 9A DB 1C 67 68 46 19 67 6C [12:07:54]GetLastDocTimeStamp 1729944452 [12:07:54]current date 1729944474 [12:07:54]FM_GetShiftState [12:07:54]SAM_PROTO_GetShiftState [12:07:54]wFMCommunicate request_size=4 [12:07:54]MH_SAM_APDU [12:07:54]CAPDU: 80 13 01 00 [12:07:54]Write to MH i2c: E2 08 00 4A 05 80 13 01 00 00 00 00 00 CC [12:07:54]Write i2c OK [12:07:54]MH_I2C_Read... [12:07:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:54]Read from MH i2c: E2 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: E2 0E 00 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: E2 0E 00 4A 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 DB [12:07:54]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:07:54]wFMCommunicate OK [12:07:54]SAM_PROTO_GetShiftState done [12:07:54]FM_GetShiftState done [12:07:54]opened in 1729900879 [12:07:54]opened+sec_in_day 1729987279 [12:07:54]quantity*price = 20003 [12:07:54]sum+1 = 20004 [12:07:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 203 26.10.2024 12:07 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201441 ФПД: 35676243987049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120754&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201441&fm=35676243987049&tin=02508201610067®Number=0000000000091777&sum=20000 [12:07:55]StoreToDocumentArchive [12:07:55]shift 543 fd 201441 [12:07:55]save to /storage/0543/doc_00201441 [12:07:55]save last doc name /storage/0543/doc_00201441 to /storage/kkm_last_doc_name [12:07:55]save OK [12:07:55]Clear old archive folders... [12:07:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:07:55]tlvbuf is 01F56450 [12:07:55]SAM_PROTO_ClearQueue [12:07:55]wFMCommunicate request_size=4 [12:07:55]MH_SAM_APDU [12:07:55]CAPDU: 80 09 00 00 [12:07:55]Write to MH i2c: E2 08 00 57 05 80 09 00 00 00 00 00 00 CE [12:07:55]Write i2c OK [12:07:55]MH_I2C_Read... [12:07:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:55]Read from MH i2c: E2 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: E2 03 00 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: E2 03 00 57 05 00 90 00 D0 [12:07:55]RAPDU: 90 00 [12:07:55]wFMCommunicate OK [12:07:55]SAM_PROTO_ClearQueue done [12:07:55]KKMCreateOFDPacket [12:07:55]OFDProtocolAddRootSTLVToBuf [12:07:55]FM_MakeSignedData [12:07:55]FM_MakeSignedData [12:07:55]SAM_PROTO_SignData [12:07:55]wFMCommunicate request_size=4 [12:07:55]MH_SAM_APDU [12:07:55]CAPDU: 80 0D 01 02 [12:07:55]Write to MH i2c: E2 08 00 58 05 80 0D 01 02 00 00 00 00 D6 [12:07:55]Write i2c OK [12:07:55]MH_I2C_Read... [12:07:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:55]Read from MH i2c: E2 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: E2 03 00 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: E2 03 00 58 05 00 90 00 D1 [12:07:55]RAPDU: 90 00 [12:07:55]wFMCommunicate OK [12:07:55]wFMCommunicate request_size=255 [12:07:55]MH_SAM_APDU [12:07:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 CB 00 00 00 F4 03 04 00 9A DB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E1 12 03 00 35 04 06 00 20 [12:07:55]Write to MH i2c: E2 02 01 59 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 32 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 CB 00 00 00 F4 03 04 00 9A DB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E1 12 03 00 35 04 06 00 20 00 00 26 [12:07:55]Write i2c OK [12:07:55]MH_I2C_Read... [12:07:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:55]Read from MH i2c: E2 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: E2 03 00 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: E2 03 00 59 05 00 90 00 D2 [12:07:55]RAPDU: 90 00 [12:07:55]wFMCommunicate OK [12:07:55]wFMCommunicate request_size=10 [12:07:55]MH_SAM_APDU [12:07:55]CAPDU: 80 0D 02 02 05 72 85 D9 8A 69 [12:07:55]Write to MH i2c: E2 0D 00 5A 05 80 0D 02 02 05 00 72 85 D9 8A 69 00 00 A6 [12:07:55]Write i2c OK [12:07:55]MH_I2C_Read... [12:07:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:55]Read from MH i2c: E2 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: E2 03 00 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: E2 03 00 5A 05 00 90 00 D3 [12:07:55]RAPDU: 90 00 [12:07:55]wFMCommunicate OK [12:07:55]wFMCommunicate request_size=4 [12:07:55]MH_SAM_APDU [12:07:55]CAPDU: 80 0D 03 02 [12:07:55]Write to MH i2c: E2 08 00 5B 05 80 0D 03 02 00 00 00 00 DB [12:07:55]Write i2c OK [12:07:55]MH_I2C_Read... [12:07:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:56]Read from MH i2c: E2 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: E2 0B 00 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: E2 0B 00 5B 05 00 9C 67 F1 6A D4 4E 1A 3C 90 00 B2 [12:07:56]RAPDU: 9C 67 F1 6A D4 4E 1A 3C 90 00 [12:07:56]wFMCommunicate OK [12:07:56]SAM_PROTO_SignData done [12:07:56]FM_MakeSignedData done [12:07:56]CreateOFDProtocolMessage [12:07:56]wFMCommunicate request_size=4 [12:07:56]MH_SAM_APDU [12:07:56]CAPDU: 80 11 00 00 [12:07:56]Write to MH i2c: E2 08 00 5C 05 80 11 00 00 00 00 00 00 DB [12:07:56]Write i2c OK [12:07:56]MH_I2C_Read... [12:07:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:56]Read from MH i2c: E2 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: E2 17 00 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: E2 17 00 5C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 30 [12:07:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:07:56]wFMCommunicate OK [12:07:56]CreateOFDProtocolMessage done [12:07:56]OFDSenderStorePacket 201441 [12:07:56]StoreOFDPacket docnum=201441 [12:07:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1C 9E 07 01 FA F8 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 32 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 CB 00 00 00 F4 03 04 00 9A DB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E1 12 03 00 35 04 06 00 20 72 85 D9 8A 69 9C 67 F1 6A D4 4E 1A 3C [12:07:56]CheckFolder [12:07:56]dirname=/storage/ofd_packets [12:07:56]CheckFolder done [12:07:56]ProducePacketName [12:07:56]name=ofd_packets/00201441 [12:07:56]NVStorageSaveData ofd_packets/00201441 [12:07:56]File name is /storage/ofd_packets/00201441 [12:07:56]Write 301 bytes [12:07:56]NVStorageSaveData done [12:07:56]OFDSenderStorePacket done [12:07:56]KKMCreateOFDPacket done [12:07:56]NVStorageSaveData kkm_last_timestamp [12:07:56]File name is /storage/kkm_last_timestamp [12:07:56]Write 4 bytes [12:07:56]NVStorageSaveData done [12:07:56]ExternCall_PrintAddStr [12:07:56]wPrintStart [12:07:56]Write to MH i2c: 01 00 00 5D 05 62 [12:07:56]Write i2c OK [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: 01 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: 01 07 00 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: 01 07 00 5D 05 00 00 00 00 00 FF 0F 77 [12:07:56]RasterBufferAndPrint [12:07:56]line Счет N : (1)449190 [12:07:56]line ИНН: 02508201610067 [12:07:56]line Контрольно-Кассовый Чек [12:07:56]line ПРОДАЖА [12:07:56]line ТРК (МРК, ГНК) : 62 [12:07:56]line Товар: 2710124130 [12:07:56]line Аи-92-К-2 [12:07:56]line 2.990 * 66.90 [12:07:56]line = 200.03 [12:07:56]line НДС 12% НСП 1% [12:07:56]line > о реализуемом товаре [12:07:56]line ОКРУГЛЕНИЕ: -0.03 [12:07:56]line ИТОГО: 200.00 [12:07:56]line Внесено: 200.00 [12:07:56]line СДАЧА: 0.00 [12:07:56]line НСП 1% : 1.77 [12:07:56]line НДС 12% : 21.24 [12:07:56]line Наличными: 200.00 [12:07:56]line Безнал.: 0.00 [12:07:56]line Место: АЗС № 171 "Партнер Нефть" [12:07:56]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:07:56]line СНО: Общий режим [12:07:56]line Чек 203 26.10.2024 12:07 [12:07:56]line Смена: 543 ФФД: 1.0 [12:07:56]line ЗНМ: 0300000109 [12:07:56]line РНМ: 0000000000091777 [12:07:56]line Версия ККМ: 001 [12:07:56]line ФМ: 0000000000871756 [12:07:56]line ФД: 201441 [12:07:56]line ФПД: 35676243987049 [12:07:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120754&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201441&fm=35676243987049&tin=02508201610067®Number=0000000000091777&sum=20000 [12:07:56]OFD Sender: Processing packet 201441 [packets to send 112, broken 111] [12:07:56]ProducePacketName [12:07:56]name=ofd_packets/00201441 [12:07:56]OFD Sender: To server: pG, [12:07:56]CommunicateWithHost lk.salyk.kg:30040 [12:07:56]ConnectInit lk.salyk.kg [12:07:56]written 0, free lines is 4095 [12:07:56]Connected sock=10 [12:07:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1C 9E 07 01 FA F8 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 32 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 CB 00 00 00 F4 03 04 00 9A DB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E1 12 03 00 35 04 06 00 20 72 85 D9 8A 69 9C 67 F1 6A D4 4E 1A 3C [12:07:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 05 11 47 00 0F 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E1 12 03 00 F4 03 04 00 44 87 1C 67 B6 04 01 00 00 7A 38 93 84 EC 96 55 08 [12:07:56]CommunicateWithHost err = 0 [12:07:56]CheckOFDResponse [12:07:56]1017 (14) - 77093643461234 [12:07:56]1041 (16) - 0000000000871756 [12:07:56]1040 (4) - 201441 [12:07:56]1012 (4) - 26.10.2024 06:08 [12:07:56]1206 (1) - 0 [12:07:56]OFD Sender: Remove packet 201441 [12:07:56]ProducePacketName [12:07:56]name=ofd_packets/00201441 [12:07:56]NVStorageDeleteData [12:07:56]Write to MH i2c: 01 00 00 88 05 8D [12:07:56]Write i2c OK [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: 01 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: 01 07 00 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: 01 07 00 88 05 00 00 00 00 00 A3 0C 43 [12:07:56]RasterBufferAndPrint [12:07:56]line [12:07:56]line [12:07:56]line [12:07:56]line [12:07:56]line [12:07:56]written 0, free lines is 3241 [12:07:56]MH_Cut [12:07:56]Write to MH i2c: D1 01 00 8F 05 01 66 [12:07:56]Write i2c OK [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: D1 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: D1 01 00 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: D1 01 00 8F 05 00 65 [12:07:56]Write to MH i2c: 01 00 00 90 05 95 [12:07:56]Write i2c OK [12:07:56]MH_I2C_Read... [12:07:57]OFD Sender: No OFD packet to send [12:07:57]*** Cut start [12:07:57]*** Purtial cut [12:07:57]*** Stage 1: CUTSNS_PIN = 1 [12:07:57]Read from MH i2c: 01 [12:07:57]MH_I2C_Read... [12:07:57]*** Stop cut motor [12:07:57]*** Cut end [12:07:57]Read from MH i2c: 01 07 00 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: 01 07 00 90 05 00 00 00 00 00 FF 0F AA [12:07:57]process_action close_receipt done [12:07:57]requested_data is exist [12:07:57]produce_requested_data [12:07:57]requested_item fm.sn is exist - process it [12:07:57]wFMCommunicate request_size=4 [12:07:57]MH_SAM_APDU [12:07:57]CAPDU: 80 11 00 00 [12:07:57]Write to MH i2c: E2 08 00 91 05 80 11 00 00 00 00 00 00 10 [12:07:57]Write i2c OK [12:07:57]MH_I2C_Read... [12:07:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:58]Read from MH i2c: E2 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 17 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 17 00 91 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 65 [12:07:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:07:58]wFMCommunicate OK [12:07:58]requested_item fd.num is exist - process it [12:07:58]SAM_PROTO_GetFieldsCounters [12:07:58]wFMCommunicate request_size=4 [12:07:58]MH_SAM_APDU [12:07:58]CAPDU: 80 13 00 00 [12:07:58]Write to MH i2c: E2 08 00 92 05 80 13 00 00 00 00 00 00 13 [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:58]Read from MH i2c: E2 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 62 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 62 00 92 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E1 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [12:07:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E1 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:07:58]wFMCommunicate OK [12:07:58]SAM_PROTO_GetFieldsCounters done [12:07:58]requested_item shift.num is exist - process it [12:07:58]requested_item shift.opened is exist - process it [12:07:58]req_shift_opened [12:07:58]FM_GetShiftState [12:07:58]SAM_PROTO_GetShiftState [12:07:58]wFMCommunicate request_size=4 [12:07:58]MH_SAM_APDU [12:07:58]CAPDU: 80 13 01 00 [12:07:58]Write to MH i2c: E2 08 00 93 05 80 13 01 00 00 00 00 00 15 [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:58]Read from MH i2c: E2 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 0E 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 0E 00 93 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 24 [12:07:58]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:07:58]wFMCommunicate OK [12:07:58]SAM_PROTO_GetShiftState done [12:07:58]FM_GetShiftState done [12:07:58]req_shift_opened done [12:07:58]requested_item shift.open_date is exist - process it [12:07:58]req_shift_open_date [12:07:58]req_shift_open_date done [12:07:58]produce_requested_data done [12:07:58]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201441,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:07:58]process_action_free close_receipt [12:07:58]json_value_free [12:07:58]json_value_free done [12:07:58]process_json_proto returns [12:07:58]Send response to host [12:07:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201441,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:07:58]free response buf [12:07:58]execute_script done [12:07:58]execute_script returns [12:07:58]free content buf [12:07:58]Sock 9.Close socket [12:07:58]Sock 9.Thread stoped [12:08:02]OFD Sender: No OFD packet to send [12:08:07]OFD Sender: No OFD packet to send [12:08:12]OFD Sender: No OFD packet to send [12:08:17]OFD Sender: No OFD packet to send [12:08:22]OFD Sender: No OFD packet to send [12:08:27]OFD Sender: No OFD packet to send [12:08:32]OFD Sender: No OFD packet to send [12:08:37]OFD Sender: No OFD packet to send [12:08:42]OFD Sender: No OFD packet to send [12:08:47]OFD Sender: No OFD packet to send [12:08:51]accept exits with 8 [12:08:51]New connection [12:08:51]New thread 3066690916 created [12:08:51]Thread 3066834276 joined [12:08:51]Waiting for new connection... [12:08:51] Sock 8.Parse request [12:08:51]Sock 8.Check first char [12:08:51]Sock 8.First char is OK [12:08:51]request: POST /json_proto HTTP/1.0 [12:08:51]Method: POST [12:08:51]URL: /json_proto [12:08:51]Method is POST - this is cgi request [12:08:51]url: /json_proto [12:08:51]query_string will be loaded in cgi processing [12:08:51]execute_cgi json_proto POST (null) [12:08:51]execute_cgi path=json_proto method=POST [12:08:51]POST find Content-Length [12:08:51]Host: 172.17.63.195:8080 [12:08:51]Content-Length: 677 [12:08:51]Content-Type: application/json [12:08:51] [12:08:51]POST finish read [12:08:51]Found Content-Length = 677 [12:08:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.640, "sum" : 310.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:51]execute_script... [12:08: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)449191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.640, "sum" : 310.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:51]POST & json_proto [12:08:51]process_json_proto [12:08:51]json parsed OK: [12:08:51]protocol is kg_v1.0 [12:08:51]action value=close_receipt [12:08:51]process_action close_receipt [12:08:51]cmd_close_receipt [12:08:51]MH_GetDate [12:08:51]Write to MH i2c: F0 00 00 94 05 88 [12:08:51]Write i2c OK [12:08:51]MH_I2C_Read... [12:08:51]Read from MH i2c: F0 [12:08:51]MH_I2C_Read... [12:08:51]Read from MH i2c: F0 09 00 [12:08:51]MH_I2C_Read... [12:08:51]Read from MH i2c: F0 09 00 94 05 00 D3 DB 1C 67 68 46 19 67 F0 [12:08:51]GetLastDocTimeStamp 1729944474 [12:08:51]current date 1729944531 [12:08:51]FM_GetShiftState [12:08:51]SAM_PROTO_GetShiftState [12:08:51]wFMCommunicate request_size=4 [12:08:51]MH_SAM_APDU [12:08:51]CAPDU: 80 13 01 00 [12:08:51]Write to MH i2c: E2 08 00 95 05 80 13 01 00 00 00 00 00 17 [12:08:51]Write i2c OK [12:08:51]MH_I2C_Read... [12:08:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:51]Read from MH i2c: E2 [12:08:51]MH_I2C_Read... [12:08:51]Read from MH i2c: E2 0E 00 [12:08:51]MH_I2C_Read... [12:08:51]Read from MH i2c: E2 0E 00 95 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 26 [12:08:51]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:08:51]wFMCommunicate OK [12:08:51]SAM_PROTO_GetShiftState done [12:08:51]FM_GetShiftState done [12:08:51]opened in 1729900879 [12:08:51]opened+sec_in_day 1729987279 [12:08:51]quantity*price = 31041 [12:08:51]sum+1 = 31043 [12:08:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 310.00 Внесено: 310.00 СДАЧА: 0.00 НСП 1% : 2.75 НДС 12% : 32.96 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 204 26.10.2024 12:08 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201442 ФПД: 80819940371218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120851&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201442&fm=80819940371218&tin=02508201610067®Number=0000000000091777&sum=31000 [12:08:52]StoreToDocumentArchive [12:08:52]shift 543 fd 201442 [12:08:52]save to /storage/0543/doc_00201442 [12:08:52]save last doc name /storage/0543/doc_00201442 to /storage/kkm_last_doc_name [12:08:52]save OK [12:08:52]Clear old archive folders... [12:08:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:08:52]tlvbuf is 01F5CFD0 [12:08:52]SAM_PROTO_ClearQueue [12:08:52]wFMCommunicate request_size=4 [12:08:52]MH_SAM_APDU [12:08:52]CAPDU: 80 09 00 00 [12:08:52]Write to MH i2c: E2 08 00 A2 05 80 09 00 00 00 00 00 00 19 [12:08:52]Write i2c OK [12:08:52]MH_I2C_Read... [12:08:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:08:52]Read from MH i2c: E2 [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: E2 03 00 [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: E2 03 00 A2 05 00 90 00 1B [12:08:52]RAPDU: 90 00 [12:08:52]wFMCommunicate OK [12:08:52]SAM_PROTO_ClearQueue done [12:08:52]KKMCreateOFDPacket [12:08:52]OFDProtocolAddRootSTLVToBuf [12:08:52]FM_MakeSignedData [12:08:52]FM_MakeSignedData [12:08:52]SAM_PROTO_SignData [12:08:52]wFMCommunicate request_size=4 [12:08:52]MH_SAM_APDU [12:08:52]CAPDU: 80 0D 01 02 [12:08:52]Write to MH i2c: E2 08 00 A3 05 80 0D 01 02 00 00 00 00 21 [12:08:52]Write i2c OK [12:08:52]MH_I2C_Read... [12:08:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:08:52]Read from MH i2c: E2 [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: E2 03 00 [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: E2 03 00 A3 05 00 90 00 1C [12:08:52]RAPDU: 90 00 [12:08:52]wFMCommunicate OK [12:08:52]wFMCommunicate request_size=255 [12:08:52]MH_SAM_APDU [12:08: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 32 FF 03 08 00 03 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 D3 DB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E2 12 03 00 35 04 06 00 49 [12:08:52]Write to MH i2c: E2 02 01 A4 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 32 FF 03 08 00 03 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 D3 DB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E2 12 03 00 35 04 06 00 49 00 00 D9 [12:08:52]Write i2c OK [12:08:52]MH_I2C_Read... [12:08:52]OFD Sender: No OFD packet to send [12:08:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:52]Read from MH i2c: E2 [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: E2 03 00 [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: E2 03 00 A4 05 00 90 00 1D [12:08:52]RAPDU: 90 00 [12:08:52]wFMCommunicate OK [12:08:52]wFMCommunicate request_size=10 [12:08:52]MH_SAM_APDU [12:08:52]CAPDU: 80 0D 02 02 05 81 5B D6 2B 12 [12:08:52]Write to MH i2c: E2 0D 00 A5 05 80 0D 02 02 05 00 81 5B D6 2B 12 00 00 1D [12:08:52]Write i2c OK [12:08:52]MH_I2C_Read... [12:08:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:52]Read from MH i2c: E2 [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: E2 03 00 [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: E2 03 00 A5 05 00 90 00 1E [12:08:52]RAPDU: 90 00 [12:08:52]wFMCommunicate OK [12:08:52]wFMCommunicate request_size=4 [12:08:52]MH_SAM_APDU [12:08:52]CAPDU: 80 0D 03 02 [12:08:52]Write to MH i2c: E2 08 00 A6 05 80 0D 03 02 00 00 00 00 26 [12:08:52]Write i2c OK [12:08:52]MH_I2C_Read... [12:08:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:08:52]Read from MH i2c: E2 [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: E2 0B 00 [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: E2 0B 00 A6 05 00 35 FA 1A BA 54 D0 C9 6E 90 00 85 [12:08:52]RAPDU: 35 FA 1A BA 54 D0 C9 6E 90 00 [12:08:52]wFMCommunicate OK [12:08:52]SAM_PROTO_SignData done [12:08:52]FM_MakeSignedData done [12:08:52]CreateOFDProtocolMessage [12:08:52]wFMCommunicate request_size=4 [12:08:52]MH_SAM_APDU [12:08:52]CAPDU: 80 11 00 00 [12:08:52]Write to MH i2c: E2 08 00 A7 05 80 11 00 00 00 00 00 00 26 [12:08:52]Write i2c OK [12:08:52]MH_I2C_Read... [12:08:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:52]Read from MH i2c: E2 [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: E2 17 00 [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: E2 17 00 A7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7B [12:08:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:08:52]wFMCommunicate OK [12:08:52]CreateOFDProtocolMessage done [12:08:52]OFDSenderStorePacket 201442 [12:08:52]StoreOFDPacket docnum=201442 [12:08:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 34 31 07 01 79 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 D3 DB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E2 12 03 00 35 04 06 00 49 81 5B D6 2B 12 35 FA 1A BA 54 D0 C9 6E [12:08:52]CheckFolder [12:08:52]dirname=/storage/ofd_packets [12:08:52]CheckFolder done [12:08:52]ProducePacketName [12:08:52]name=ofd_packets/00201442 [12:08:52]NVStorageSaveData ofd_packets/00201442 [12:08:52]File name is /storage/ofd_packets/00201442 [12:08:52]Write 301 bytes [12:08:52]NVStorageSaveData done [12:08:52]OFDSenderStorePacket done [12:08:52]KKMCreateOFDPacket done [12:08:52]NVStorageSaveData kkm_last_timestamp [12:08:52]File name is /storage/kkm_last_timestamp [12:08:52]Write 4 bytes [12:08:52]NVStorageSaveData done [12:08:52]ExternCall_PrintAddStr [12:08:52]wPrintStart [12:08:52]Write to MH i2c: 01 00 00 A8 05 AD [12:08:52]Write i2c OK [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: 01 [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: 01 07 00 [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: 01 07 00 A8 05 00 00 00 00 00 FF 0F C2 [12:08:52]RasterBufferAndPrint [12:08:52]line Счет N : (1)449191 [12:08:52]line ИНН: 02508201610067 [12:08:52]line Контрольно-Кассовый Чек [12:08:52]line ПРОДАЖА [12:08:52]line ТРК (МРК, ГНК) : 52 [12:08:52]line Товар: 2710124130 [12:08:52]line Аи-92-К-2 [12:08:52]line 4.640 * 66.90 [12:08:52]line = 310.42 [12:08:52]line НДС 12% НСП 1% [12:08:52]line > о реализуемом товаре [12:08:52]line ОКРУГЛЕНИЕ: -0.42 [12:08:52]line ИТОГО: 310.00 [12:08:52]line Внесено: 310.00 [12:08:52]line СДАЧА: 0.00 [12:08:52]line НСП 1% : 2.75 [12:08:52]line НДС 12% : 32.96 [12:08:52]line Наличными: 310.00 [12:08:52]line Безнал.: 0.00 [12:08:52]line Место: АЗС № 171 "Партнер Нефть" [12:08:52]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:08:52]line СНО: Общий режим [12:08:52]line Чек 204 26.10.2024 12:08 [12:08:52]line Смена: 543 ФФД: 1.0 [12:08:52]line ЗНМ: 0300000109 [12:08:52]line РНМ: 0000000000091777 [12:08:52]line Версия ККМ: 001 [12:08:52]line ФМ: 0000000000871756 [12:08:52]line ФД: 201442 [12:08:52]line ФПД: 80819940371218 [12:08:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120851&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201442&fm=80819940371218&tin=02508201610067®Number=0000000000091777&sum=31000 [12:08:53]OFD Sender: Processing packet 201442 [packets to send 112, broken 111] [12:08:53]ProducePacketName [12:08:53]name=ofd_packets/00201442 [12:08:53]OFD Sender: To server: pG, [12:08:53]CommunicateWithHost lk.salyk.kg:30040 [12:08:53]ConnectInit lk.salyk.kg [12:08:53]written 0, free lines is 4095 [12:08:53]Connected sock=9 [12:08:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 34 31 07 01 79 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 D3 DB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E2 12 03 00 35 04 06 00 49 81 5B D6 2B 12 35 FA 1A BA 54 D0 C9 6E [12:08:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 9A 53 47 00 F0 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E2 12 03 00 F4 03 04 00 7C 87 1C 67 B6 04 01 00 00 29 F8 CF EB 18 C5 C3 23 [12:08:53]CommunicateWithHost err = 0 [12:08:53]CheckOFDResponse [12:08:53]1017 (14) - 77093643461234 [12:08:53]1041 (16) - 0000000000871756 [12:08:53]1040 (4) - 201442 [12:08:53]1012 (4) - 26.10.2024 06:09 [12:08:53]1206 (1) - 0 [12:08:53]OFD Sender: Remove packet 201442 [12:08:53]ProducePacketName [12:08:53]name=ofd_packets/00201442 [12:08:53]NVStorageDeleteData [12:08:53]Write to MH i2c: 01 00 00 D3 05 D8 [12:08:53]Write i2c OK [12:08:53]MH_I2C_Read... [12:08:53]Read from MH i2c: 01 [12:08:53]MH_I2C_Read... [12:08:53]Read from MH i2c: 01 07 00 [12:08:53]MH_I2C_Read... [12:08:53]Read from MH i2c: 01 07 00 D3 05 00 00 00 00 00 A3 0C 8E [12:08:53]RasterBufferAndPrint [12:08:53]line [12:08:53]line [12:08:53]line [12:08:53]line [12:08:53]line [12:08:53]written 0, free lines is 3240 [12:08:53]MH_Cut [12:08:53]Write to MH i2c: D1 01 00 DA 05 01 B1 [12:08:53]Write i2c OK [12:08:53]MH_I2C_Read... [12:08:53]Read from MH i2c: D1 [12:08:53]MH_I2C_Read... [12:08:53]Read from MH i2c: D1 01 00 [12:08:53]MH_I2C_Read... [12:08:53]Read from MH i2c: D1 01 00 DA 05 00 B0 [12:08:53]Write to MH i2c: 01 00 00 DB 05 E0 [12:08:53]Write i2c OK [12:08:53]MH_I2C_Read... [12:08:53]OFD Sender: No OFD packet to send [12:08:54]*** Cut start [12:08:54]*** Purtial cut [12:08:54]*** Stage 1: CUTSNS_PIN = 1 [12:08:54]Read from MH i2c: 01 [12:08:54]MH_I2C_Read... [12:08:54]*** Stop cut motor [12:08:54]*** Cut end [12:08:54]Read from MH i2c: 01 07 00 [12:08:54]MH_I2C_Read... [12:08:54]Read from MH i2c: 01 07 00 DB 05 00 00 00 00 00 FF 0F F5 [12:08:54]process_action close_receipt done [12:08:54]requested_data is exist [12:08:54]produce_requested_data [12:08:54]requested_item fm.sn is exist - process it [12:08:54]wFMCommunicate request_size=4 [12:08:54]MH_SAM_APDU [12:08:54]CAPDU: 80 11 00 00 [12:08:54]Write to MH i2c: E2 08 00 DC 05 80 11 00 00 00 00 00 00 5B [12:08:54]Write i2c OK [12:08:54]MH_I2C_Read... [12:08:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:54]Read from MH i2c: E2 [12:08:54]MH_I2C_Read... [12:08:54]Read from MH i2c: E2 17 00 [12:08:54]MH_I2C_Read... [12:08:54]Read from MH i2c: E2 17 00 DC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B0 [12:08:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:08:54]wFMCommunicate OK [12:08:54]requested_item fd.num is exist - process it [12:08:54]SAM_PROTO_GetFieldsCounters [12:08:54]wFMCommunicate request_size=4 [12:08:54]MH_SAM_APDU [12:08:54]CAPDU: 80 13 00 00 [12:08:54]Write to MH i2c: E2 08 00 DD 05 80 13 00 00 00 00 00 00 5E [12:08:54]Write i2c OK [12:08:54]MH_I2C_Read... [12:08:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:54]Read from MH i2c: E2 [12:08:54]MH_I2C_Read... [12:08:54]Read from MH i2c: E2 62 00 [12:08:54]MH_I2C_Read... [12:08:54]Read from MH i2c: E2 62 00 DD 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E2 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [12:08:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E2 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:08:54]wFMCommunicate OK [12:08:54]SAM_PROTO_GetFieldsCounters done [12:08:54]requested_item shift.num is exist - process it [12:08:54]requested_item shift.opened is exist - process it [12:08:54]req_shift_opened [12:08:54]FM_GetShiftState [12:08:54]SAM_PROTO_GetShiftState [12:08:54]wFMCommunicate request_size=4 [12:08:54]MH_SAM_APDU [12:08:54]CAPDU: 80 13 01 00 [12:08:54]Write to MH i2c: E2 08 00 DE 05 80 13 01 00 00 00 00 00 60 [12:08:54]Write i2c OK [12:08:54]MH_I2C_Read... [12:08:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:54]Read from MH i2c: E2 [12:08:54]MH_I2C_Read... [12:08:54]Read from MH i2c: E2 0E 00 [12:08:54]MH_I2C_Read... [12:08:54]Read from MH i2c: E2 0E 00 DE 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 6F [12:08:54]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:08:54]wFMCommunicate OK [12:08:54]SAM_PROTO_GetShiftState done [12:08:54]FM_GetShiftState done [12:08:54]req_shift_opened done [12:08:54]requested_item shift.open_date is exist - process it [12:08:54]req_shift_open_date [12:08:54]req_shift_open_date done [12:08:54]produce_requested_data done [12:08:54]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201442,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:08:54]process_action_free close_receipt [12:08:54]json_value_free [12:08:54]json_value_free done [12:08:54]process_json_proto returns [12:08:54]Send response to host [12:08:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201442,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:08:54]free response buf [12:08:54]execute_script done [12:08:54]execute_script returns [12:08:54]free content buf [12:08:54]Sock 8.Close socket [12:08:54]Sock 8.Thread stoped [12:08:58]OFD Sender: No OFD packet to send [12:09:03]OFD Sender: No OFD packet to send [12:09:08]OFD Sender: No OFD packet to send [12:09:13]OFD Sender: No OFD packet to send [12:09:18]OFD Sender: No OFD packet to send [12:09:19]accept exits with 10 [12:09:19]New connection [12:09:19]New thread 3066834276 created [12:09:19]Thread 3066690916 joined [12:09:19]Waiting for new connection... [12:09:19] Sock 10.Parse request [12:09:19]Sock 10.Check first char [12:09:19]Sock 10.First char is OK [12:09:19]request: POST /json_proto HTTP/1.0 [12:09:19]Method: POST [12:09:19]URL: /json_proto [12:09:19]Method is POST - this is cgi request [12:09:19]url: /json_proto [12:09:19]query_string will be loaded in cgi processing [12:09:19]execute_cgi json_proto POST (null) [12:09:19]execute_cgi path=json_proto method=POST [12:09:19]POST find Content-Length [12:09:19]Host: 172.17.63.195:8080 [12:09:19]Content-Length: 677 [12:09:19]Content-Type: application/json [12:09:19] [12:09:19]POST finish read [12:09:19]Found Content-Length = 677 [12:09:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:09:19]execute_script... [12:09: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)449192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:09:19]POST & json_proto [12:09:19]process_json_proto [12:09:19]json parsed OK: [12:09:19]protocol is kg_v1.0 [12:09:19]action value=close_receipt [12:09:19]process_action close_receipt [12:09:19]cmd_close_receipt [12:09:19]MH_GetDate [12:09:19]Write to MH i2c: F0 00 00 DF 05 D3 [12:09:19]Write i2c OK [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: F0 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: F0 09 00 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: F0 09 00 DF 05 00 F0 DB 1C 67 68 46 19 67 58 [12:09:19]GetLastDocTimeStamp 1729944531 [12:09:19]current date 1729944560 [12:09:19]FM_GetShiftState [12:09:19]SAM_PROTO_GetShiftState [12:09:19]wFMCommunicate request_size=4 [12:09:19]MH_SAM_APDU [12:09:19]CAPDU: 80 13 01 00 [12:09:19]Write to MH i2c: E2 08 00 E0 05 80 13 01 00 00 00 00 00 62 [12:09:19]Write i2c OK [12:09:19]MH_I2C_Read... [12:09:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:19]Read from MH i2c: E2 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: E2 0E 00 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: E2 0E 00 E0 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 71 [12:09:19]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:09:19]wFMCommunicate OK [12:09:19]SAM_PROTO_GetShiftState done [12:09:19]FM_GetShiftState done [12:09:19]opened in 1729900879 [12:09:19]opened+sec_in_day 1729987279 [12:09:19]quantity*price = 25020 [12:09:19]sum+1 = 25022 [12:09:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 205 26.10.2024 12:09 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201443 ФПД: 116234535851004 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120920&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201443&fm=116234535851004&tin=02508201610067®Number=0000000000091777&sum=25000 [12:09:20]StoreToDocumentArchive [12:09:20]shift 543 fd 201443 [12:09:20]save to /storage/0543/doc_00201443 [12:09:20]save last doc name /storage/0543/doc_00201443 to /storage/kkm_last_doc_name [12:09:20]save OK [12:09:20]Clear old archive folders... [12:09:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:09:20]tlvbuf is 01F49360 [12:09:20]SAM_PROTO_ClearQueue [12:09:20]wFMCommunicate request_size=4 [12:09:20]MH_SAM_APDU [12:09:20]CAPDU: 80 09 00 00 [12:09:20]Write to MH i2c: E2 08 00 ED 05 80 09 00 00 00 00 00 00 64 [12:09:20]Write i2c OK [12:09:20]MH_I2C_Read... [12:09:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:21]Read from MH i2c: E2 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: E2 03 00 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: E2 03 00 ED 05 00 90 00 66 [12:09:21]RAPDU: 90 00 [12:09:21]wFMCommunicate OK [12:09:21]SAM_PROTO_ClearQueue done [12:09:21]KKMCreateOFDPacket [12:09:21]OFDProtocolAddRootSTLVToBuf [12:09:21]FM_MakeSignedData [12:09:21]FM_MakeSignedData [12:09:21]SAM_PROTO_SignData [12:09:21]wFMCommunicate request_size=4 [12:09:21]MH_SAM_APDU [12:09:21]CAPDU: 80 0D 01 02 [12:09:21]Write to MH i2c: E2 08 00 EE 05 80 0D 01 02 00 00 00 00 6C [12:09:21]Write i2c OK [12:09:21]MH_I2C_Read... [12:09:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:21]Read from MH i2c: E2 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: E2 03 00 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: E2 03 00 EE 05 00 90 00 67 [12:09:21]RAPDU: 90 00 [12:09:21]wFMCommunicate OK [12:09:21]wFMCommunicate request_size=255 [12:09:21]MH_SAM_APDU [12:09: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 32 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 CD 00 00 00 F4 03 04 00 F0 DB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E3 12 03 00 35 04 06 00 69 [12:09:21]Write to MH i2c: E2 02 01 EF 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 32 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 CD 00 00 00 F4 03 04 00 F0 DB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E3 12 03 00 35 04 06 00 69 00 00 76 [12:09:21]Write i2c OK [12:09:21]MH_I2C_Read... [12:09:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:21]Read from MH i2c: E2 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: E2 03 00 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: E2 03 00 EF 05 00 90 00 68 [12:09:21]RAPDU: 90 00 [12:09:21]wFMCommunicate OK [12:09:21]wFMCommunicate request_size=10 [12:09:21]MH_SAM_APDU [12:09:21]CAPDU: 80 0D 02 02 05 B6 F6 38 53 FC [12:09:21]Write to MH i2c: E2 0D 00 F0 05 80 0D 02 02 05 00 B6 F6 38 53 FC 00 00 AC [12:09:21]Write i2c OK [12:09:21]MH_I2C_Read... [12:09:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:21]Read from MH i2c: E2 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: E2 03 00 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: E2 03 00 F0 05 00 90 00 69 [12:09:21]RAPDU: 90 00 [12:09:21]wFMCommunicate OK [12:09:21]wFMCommunicate request_size=4 [12:09:21]MH_SAM_APDU [12:09:21]CAPDU: 80 0D 03 02 [12:09:21]Write to MH i2c: E2 08 00 F1 05 80 0D 03 02 00 00 00 00 71 [12:09:21]Write i2c OK [12:09:21]MH_I2C_Read... [12:09:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:21]Read from MH i2c: E2 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: E2 0B 00 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: E2 0B 00 F1 05 00 14 8E 37 88 AA 7C FA A4 90 00 97 [12:09:21]RAPDU: 14 8E 37 88 AA 7C FA A4 90 00 [12:09:21]wFMCommunicate OK [12:09:21]SAM_PROTO_SignData done [12:09:21]FM_MakeSignedData done [12:09:21]CreateOFDProtocolMessage [12:09:21]wFMCommunicate request_size=4 [12:09:21]MH_SAM_APDU [12:09:21]CAPDU: 80 11 00 00 [12:09:21]Write to MH i2c: E2 08 00 F2 05 80 11 00 00 00 00 00 00 71 [12:09:21]Write i2c OK [12:09:21]MH_I2C_Read... [12:09:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:21]Read from MH i2c: E2 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: E2 17 00 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: E2 17 00 F2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C6 [12:09:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:09:21]wFMCommunicate OK [12:09:21]CreateOFDProtocolMessage done [12:09:21]OFDSenderStorePacket 201443 [12:09:21]StoreOFDPacket docnum=201443 [12:09:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E2 99 07 01 6D 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 CD 00 00 00 F4 03 04 00 F0 DB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E3 12 03 00 35 04 06 00 69 B6 F6 38 53 FC 14 8E 37 88 AA 7C FA A4 [12:09:21]CheckFolder [12:09:21]dirname=/storage/ofd_packets [12:09:21]CheckFolder done [12:09:21]ProducePacketName [12:09:21]name=ofd_packets/00201443 [12:09:21]NVStorageSaveData ofd_packets/00201443 [12:09:21]File name is /storage/ofd_packets/00201443 [12:09:21]Write 301 bytes [12:09:21]NVStorageSaveData done [12:09:21]OFDSenderStorePacket done [12:09:21]KKMCreateOFDPacket done [12:09:21]NVStorageSaveData kkm_last_timestamp [12:09:21]File name is /storage/kkm_last_timestamp [12:09:21]Write 4 bytes [12:09:21]NVStorageSaveData done [12:09:21]ExternCall_PrintAddStr [12:09:21]wPrintStart [12:09:21]Write to MH i2c: 01 00 00 F3 05 F8 [12:09:21]Write i2c OK [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: 01 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: 01 07 00 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: 01 07 00 F3 05 00 00 00 00 00 FF 0F 0D [12:09:21]RasterBufferAndPrint [12:09:21]line Счет N : (1)449192 [12:09:21]line ИНН: 02508201610067 [12:09:21]line Контрольно-Кассовый Чек [12:09:21]line ПРОДАЖА [12:09:21]line ТРК (МРК, ГНК) : 62 [12:09:21]line Товар: 2710124130 [12:09:21]line Аи-92-К-2 [12:09:21]line 3.740 * 66.90 [12:09:21]line = 250.21 [12:09:21]line НДС 12% НСП 1% [12:09:21]line > о реализуемом товаре [12:09:21]line ОКРУГЛЕНИЕ: -0.21 [12:09:21]line ИТОГО: 250.00 [12:09:21]line Внесено: 250.00 [12:09:21]line СДАЧА: 0.00 [12:09:21]line НСП 1% : 2.21 [12:09:21]line НДС 12% : 26.57 [12:09:21]line Наличными: 250.00 [12:09:21]line Безнал.: 0.00 [12:09:21]line Место: АЗС № 171 "Партнер Нефть" [12:09:21]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:09:21]line СНО: Общий режим [12:09:21]line Чек 205 26.10.2024 12:09 [12:09:21]line Смена: 543 ФФД: 1.0 [12:09:21]line ЗНМ: 0300000109 [12:09:21]line РНМ: 0000000000091777 [12:09:21]line Версия ККМ: 001 [12:09:21]line ФМ: 0000000000871756 [12:09:21]line ФД: 201443 [12:09:21]line ФПД: 116234535851004 [12:09:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120920&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201443&fm=116234535851004&tin=02508201610067®Number=0000000000091777&sum=25000 [12:09:21]OFD Sender: Processing packet 201443 [packets to send 112, broken 111] [12:09:21]ProducePacketName [12:09:21]name=ofd_packets/00201443 [12:09:21]OFD Sender: To server: pG, [12:09:21]CommunicateWithHost lk.salyk.kg:30040 [12:09:21]ConnectInit lk.salyk.kg [12:09:21]written 0, free lines is 4095 [12:09:21]Connected sock=9 [12:09:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E2 99 07 01 6D 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 CD 00 00 00 F4 03 04 00 F0 DB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E3 12 03 00 35 04 06 00 69 B6 F6 38 53 FC 14 8E 37 88 AA 7C FA A4 [12:09:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C0 48 47 00 08 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E3 12 03 00 F4 03 04 00 99 87 1C 67 B6 04 01 00 00 10 3F E5 AF 7E F0 93 6E [12:09:22]CommunicateWithHost err = 0 [12:09:22]CheckOFDResponse [12:09:22]1017 (14) - 77093643461234 [12:09:22]1041 (16) - 0000000000871756 [12:09:22]1040 (4) - 201443 [12:09:22]1012 (4) - 26.10.2024 06:09 [12:09:22]1206 (1) - 0 [12:09:22]OFD Sender: Remove packet 201443 [12:09:22]ProducePacketName [12:09:22]name=ofd_packets/00201443 [12:09:22]NVStorageDeleteData [12:09:22]Write to MH i2c: 01 00 00 1E 06 24 [12:09:22]Write i2c OK [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: 01 [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: 01 07 00 [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: 01 07 00 1E 06 00 00 00 00 00 A3 0C DA [12:09:22]RasterBufferAndPrint [12:09:22]line [12:09:22]line [12:09:22]line [12:09:22]line [12:09:22]line [12:09:22]written 0, free lines is 3241 [12:09:22]MH_Cut [12:09:22]Write to MH i2c: D1 01 00 25 06 01 FD [12:09:22]Write i2c OK [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: D1 [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: D1 01 00 [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: D1 01 00 25 06 00 FC [12:09:22]Write to MH i2c: 01 00 00 26 06 2C [12:09:22]Write i2c OK [12:09:22]MH_I2C_Read... [12:09:22]OFD Sender: No OFD packet to send [12:09:23]*** Cut start [12:09:23]*** Purtial cut [12:09:23]*** Stage 1: CUTSNS_PIN = 1 [12:09:23]Read from MH i2c: 01 [12:09:23]MH_I2C_Read... [12:09:23]*** Stop cut motor [12:09:23]*** Cut end [12:09:23]Read from MH i2c: 01 07 00 [12:09:23]MH_I2C_Read... [12:09:23]Read from MH i2c: 01 07 00 26 06 00 00 00 00 00 FF 0F 41 [12:09:23]process_action close_receipt done [12:09:23]requested_data is exist [12:09:23]produce_requested_data [12:09:23]requested_item fm.sn is exist - process it [12:09:23]wFMCommunicate request_size=4 [12:09:23]MH_SAM_APDU [12:09:23]CAPDU: 80 11 00 00 [12:09:23]Write to MH i2c: E2 08 00 27 06 80 11 00 00 00 00 00 00 A7 [12:09:23]Write i2c OK [12:09:23]MH_I2C_Read... [12:09:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:23]Read from MH i2c: E2 [12:09:23]MH_I2C_Read... [12:09:23]Read from MH i2c: E2 17 00 [12:09:23]MH_I2C_Read... [12:09:23]Read from MH i2c: E2 17 00 27 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FC [12:09:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:09:23]wFMCommunicate OK [12:09:23]requested_item fd.num is exist - process it [12:09:23]SAM_PROTO_GetFieldsCounters [12:09:23]wFMCommunicate request_size=4 [12:09:23]MH_SAM_APDU [12:09:23]CAPDU: 80 13 00 00 [12:09:23]Write to MH i2c: E2 08 00 28 06 80 13 00 00 00 00 00 00 AA [12:09:23]Write i2c OK [12:09:23]MH_I2C_Read... [12:09:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:23]Read from MH i2c: E2 [12:09:23]MH_I2C_Read... [12:09:23]Read from MH i2c: E2 62 00 [12:09:23]MH_I2C_Read... [12:09:23]Read from MH i2c: E2 62 00 28 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E3 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [12:09:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E3 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:09:23]wFMCommunicate OK [12:09:23]SAM_PROTO_GetFieldsCounters done [12:09:23]requested_item shift.num is exist - process it [12:09:23]requested_item shift.opened is exist - process it [12:09:23]req_shift_opened [12:09:23]FM_GetShiftState [12:09:23]SAM_PROTO_GetShiftState [12:09:23]wFMCommunicate request_size=4 [12:09:23]MH_SAM_APDU [12:09:23]CAPDU: 80 13 01 00 [12:09:23]Write to MH i2c: E2 08 00 29 06 80 13 01 00 00 00 00 00 AC [12:09:23]Write i2c OK [12:09:23]MH_I2C_Read... [12:09:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:23]Read from MH i2c: E2 [12:09:23]MH_I2C_Read... [12:09:23]Read from MH i2c: E2 0E 00 [12:09:23]MH_I2C_Read... [12:09:23]Read from MH i2c: E2 0E 00 29 06 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 BB [12:09:23]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:09:23]wFMCommunicate OK [12:09:23]SAM_PROTO_GetShiftState done [12:09:23]FM_GetShiftState done [12:09:23]req_shift_opened done [12:09:23]requested_item shift.open_date is exist - process it [12:09:23]req_shift_open_date [12:09:23]req_shift_open_date done [12:09:23]produce_requested_data done [12:09:23]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201443,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:09:23]process_action_free close_receipt [12:09:23]json_value_free [12:09:23]json_value_free done [12:09:23]process_json_proto returns [12:09:23]Send response to host [12:09:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201443,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:09:23]free response buf [12:09:23]execute_script done [12:09:23]execute_script returns [12:09:23]free content buf [12:09:23]Sock 10.Close socket [12:09:23]Sock 10.Thread stoped [12:09:27]OFD Sender: No OFD packet to send [12:09:32]OFD Sender: No OFD packet to send [12:09:37]OFD Sender: No OFD packet to send [12:09:42]OFD Sender: No OFD packet to send [12:09:47]OFD Sender: No OFD packet to send [12:09:52]OFD Sender: No OFD packet to send [12:09:57]OFD Sender: No OFD packet to send [12:10:02]OFD Sender: No OFD packet to send [12:10:07]OFD Sender: No OFD packet to send [12:10:12]OFD Sender: No OFD packet to send [12:10:17]OFD Sender: No OFD packet to send [12:10:22]OFD Sender: No OFD packet to send [12:10:27]OFD Sender: No OFD packet to send [12:10:32]OFD Sender: No OFD packet to send [12:10:37]OFD Sender: No OFD packet to send [12:10:42]OFD Sender: No OFD packet to send [12:10:47]OFD Sender: No OFD packet to send [12:10:52]OFD Sender: No OFD packet to send [12:10:57]OFD Sender: No OFD packet to send [12:11:02]OFD Sender: No OFD packet to send [12:11:07]OFD Sender: No OFD packet to send [12:11:12]OFD Sender: No OFD packet to send [12:11:17]OFD Sender: No OFD packet to send [12:11:22]OFD Sender: No OFD packet to send [12:11:27]OFD Sender: No OFD packet to send [12:11:32]OFD Sender: No OFD packet to send [12:11:37]OFD Sender: No OFD packet to send [12:11:42]OFD Sender: No OFD packet to send [12:11:44]accept exits with 8 [12:11:44]New connection [12:11:44]New thread 3066690916 created [12:11:44]Thread 3066834276 joined [12:11:44]Waiting for new connection... [12:11:44] Sock 8.Parse request [12:11:44]Sock 8.Check first char [12:11:44]Sock 8.First char is OK [12:11:44]request: POST /json_proto HTTP/1.0 [12:11:44]Method: POST [12:11:44]URL: /json_proto [12:11:44]Method is POST - this is cgi request [12:11:44]url: /json_proto [12:11:44]query_string will be loaded in cgi processing [12:11:44]execute_cgi json_proto POST (null) [12:11:44]execute_cgi path=json_proto method=POST [12:11:44]POST find Content-Length [12:11:44]Host: 172.17.63.195:8080 [12:11:44]Content-Length: 677 [12:11:44]Content-Type: application/json [12:11:44] [12:11:44]POST finish read [12:11:44]Found Content-Length = 677 [12:11:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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" ] } } [12:11:44]execute_script... [12:11:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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" ] } } [12:11:44]POST & json_proto [12:11:44]process_json_proto [12:11:44]json parsed OK: [12:11:44]protocol is kg_v1.0 [12:11:44]action value=close_receipt [12:11:44]process_action close_receipt [12:11:44]cmd_close_receipt [12:11:44]MH_GetDate [12:11:44]Write to MH i2c: F0 00 00 2A 06 1F [12:11:44]Write i2c OK [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: F0 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: F0 09 00 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: F0 09 00 2A 06 00 81 DC 1C 67 68 46 19 67 36 [12:11:44]GetLastDocTimeStamp 1729944560 [12:11:44]current date 1729944705 [12:11:44]FM_GetShiftState [12:11:44]SAM_PROTO_GetShiftState [12:11:44]wFMCommunicate request_size=4 [12:11:44]MH_SAM_APDU [12:11:44]CAPDU: 80 13 01 00 [12:11:44]Write to MH i2c: E2 08 00 2B 06 80 13 01 00 00 00 00 00 AE [12:11:44]Write i2c OK [12:11:44]MH_I2C_Read... [12:11:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:44]Read from MH i2c: E2 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: E2 0E 00 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: E2 0E 00 2B 06 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 BD [12:11:44]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:11:44]wFMCommunicate OK [12:11:44]SAM_PROTO_GetShiftState done [12:11:44]FM_GetShiftState done [12:11:44]opened in 1729900879 [12:11:44]opened+sec_in_day 1729987279 [12:11:44]quantity*price = 50010 [12:11:44]sum+1 = 50012 [12:11:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 206 26.10.2024 12:11 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201444 ФПД: 68869216871167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121145&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201444&fm=68869216871167&tin=02508201610067®Number=0000000000091777&sum=50000 [12:11:45]StoreToDocumentArchive [12:11:45]shift 543 fd 201444 [12:11:45]save to /storage/0543/doc_00201444 [12:11:45]save last doc name /storage/0543/doc_00201444 to /storage/kkm_last_doc_name [12:11:45]save OK [12:11:45]Clear old archive folders... [12:11:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:11:45]tlvbuf is 01F54AE0 [12:11:45]SAM_PROTO_ClearQueue [12:11:45]wFMCommunicate request_size=4 [12:11:45]MH_SAM_APDU [12:11:45]CAPDU: 80 09 00 00 [12:11:45]Write to MH i2c: E2 08 00 38 06 80 09 00 00 00 00 00 00 B0 [12:11:45]Write i2c OK [12:11:45]MH_I2C_Read... [12:11:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:45]Read from MH i2c: E2 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: E2 03 00 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: E2 03 00 38 06 00 90 00 B2 [12:11:45]RAPDU: 90 00 [12:11:45]wFMCommunicate OK [12:11:45]SAM_PROTO_ClearQueue done [12:11:45]KKMCreateOFDPacket [12:11:45]OFDProtocolAddRootSTLVToBuf [12:11:45]FM_MakeSignedData [12:11:45]FM_MakeSignedData [12:11:45]SAM_PROTO_SignData [12:11:45]wFMCommunicate request_size=4 [12:11:45]MH_SAM_APDU [12:11:45]CAPDU: 80 0D 01 02 [12:11:45]Write to MH i2c: E2 08 00 39 06 80 0D 01 02 00 00 00 00 B8 [12:11:45]Write i2c OK [12:11:45]MH_I2C_Read... [12:11:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:45]Read from MH i2c: E2 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: E2 03 00 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: E2 03 00 39 06 00 90 00 B3 [12:11:45]RAPDU: 90 00 [12:11:45]wFMCommunicate OK [12:11:45]wFMCommunicate request_size=255 [12:11:45]MH_SAM_APDU [12:11: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 CE 00 00 00 F4 03 04 00 81 DC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E4 12 03 00 35 04 06 00 3E [12:11:45]Write to MH i2c: E2 02 01 3A 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 CE 00 00 00 F4 03 04 00 81 DC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E4 12 03 00 35 04 06 00 3E 00 00 2B [12:11:45]Write i2c OK [12:11:45]MH_I2C_Read... [12:11:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:46]Read from MH i2c: E2 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 03 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 03 00 3A 06 00 90 00 B4 [12:11:46]RAPDU: 90 00 [12:11:46]wFMCommunicate OK [12:11:46]wFMCommunicate request_size=10 [12:11:46]MH_SAM_APDU [12:11:46]CAPDU: 80 0D 02 02 05 A2 DD 35 22 FF [12:11:46]Write to MH i2c: E2 0D 00 3B 06 80 0D 02 02 05 00 A2 DD 35 22 FF 00 00 9A [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:46]Read from MH i2c: E2 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 03 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 03 00 3B 06 00 90 00 B5 [12:11:46]RAPDU: 90 00 [12:11:46]wFMCommunicate OK [12:11:46]wFMCommunicate request_size=4 [12:11:46]MH_SAM_APDU [12:11:46]CAPDU: 80 0D 03 02 [12:11:46]Write to MH i2c: E2 08 00 3C 06 80 0D 03 02 00 00 00 00 BD [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:46]Read from MH i2c: E2 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 0B 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 0B 00 3C 06 00 D4 B5 13 FF C1 71 34 E4 90 00 A3 [12:11:46]RAPDU: D4 B5 13 FF C1 71 34 E4 90 00 [12:11:46]wFMCommunicate OK [12:11:46]SAM_PROTO_SignData done [12:11:46]FM_MakeSignedData done [12:11:46]CreateOFDProtocolMessage [12:11:46]wFMCommunicate request_size=4 [12:11:46]MH_SAM_APDU [12:11:46]CAPDU: 80 11 00 00 [12:11:46]Write to MH i2c: E2 08 00 3D 06 80 11 00 00 00 00 00 00 BD [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:46]Read from MH i2c: E2 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 17 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 17 00 3D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 12 [12:11:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:11:46]wFMCommunicate OK [12:11:46]CreateOFDProtocolMessage done [12:11:46]OFDSenderStorePacket 201444 [12:11:46]StoreOFDPacket docnum=201444 [12:11:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 BD 4B 07 01 F5 A3 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 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 CE 00 00 00 F4 03 04 00 81 DC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E4 12 03 00 35 04 06 00 3E A2 DD 35 22 FF D4 B5 13 FF C1 71 34 E4 [12:11:46]CheckFolder [12:11:46]dirname=/storage/ofd_packets [12:11:46]CheckFolder done [12:11:46]ProducePacketName [12:11:46]name=ofd_packets/00201444 [12:11:46]NVStorageSaveData ofd_packets/00201444 [12:11:46]File name is /storage/ofd_packets/00201444 [12:11:46]Write 301 bytes [12:11:46]NVStorageSaveData done [12:11:46]OFDSenderStorePacket done [12:11:46]KKMCreateOFDPacket done [12:11:46]NVStorageSaveData kkm_last_timestamp [12:11:46]File name is /storage/kkm_last_timestamp [12:11:46]Write 4 bytes [12:11:46]NVStorageSaveData done [12:11:46]ExternCall_PrintAddStr [12:11:46]wPrintStart [12:11:46]Write to MH i2c: 01 00 00 3E 06 44 [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: 01 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: 01 07 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: 01 07 00 3E 06 00 00 00 00 00 FF 0F 59 [12:11:46]RasterBufferAndPrint [12:11:46]line Счет N : (1)449193 [12:11:46]line ИНН: 02508201610067 [12:11:46]line Контрольно-Кассовый Чек [12:11:46]line ПРОДАЖА [12:11:46]line ТРК (МРК, ГНК) : 51 [12:11:46]line Товар: 2710124500 [12:11:46]line Аи-95-К-3 [12:11:46]line 6.740 * 74.20 [12:11:46]line = 500.11 [12:11:46]line НДС 12% НСП 1% [12:11:46]line > о реализуемом товаре [12:11:46]line ОКРУГЛЕНИЕ: -0.11 [12:11:46]line ИТОГО: 500.00 [12:11:46]line Внесено: 500.00 [12:11:46]line СДАЧА: 0.00 [12:11:46]line НСП 1% : 4.43 [12:11:46]line НДС 12% : 53.11 [12:11:46]line Наличными: 500.00 [12:11:46]line Безнал.: 0.00 [12:11:46]line Место: АЗС № 171 "Партнер Нефть" [12:11:46]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:11:46]line СНО: Общий режим [12:11:46]line Чек 206 26.10.2024 12:11 [12:11:46]line Смена: 543 ФФД: 1.0 [12:11:46]line ЗНМ: 0300000109 [12:11:46]line РНМ: 0000000000091777 [12:11:46]line Версия ККМ: 001 [12:11:46]line ФМ: 0000000000871756 [12:11:46]line ФД: 201444 [12:11:46]line ФПД: 68869216871167 [12:11:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121145&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201444&fm=68869216871167&tin=02508201610067®Number=0000000000091777&sum=50000 [12:11:46]OFD Sender: Processing packet 201444 [packets to send 112, broken 111] [12:11:46]ProducePacketName [12:11:46]name=ofd_packets/00201444 [12:11:46]OFD Sender: To server: pG, [12:11:46]CommunicateWithHost lk.salyk.kg:30040 [12:11:46]ConnectInit lk.salyk.kg [12:11:46]written 0, free lines is 4095 [12:11:46]Connected sock=10 [12:11:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 BD 4B 07 01 F5 A3 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 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 CE 00 00 00 F4 03 04 00 81 DC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E4 12 03 00 35 04 06 00 3E A2 DD 35 22 FF D4 B5 13 FF C1 71 34 E4 [12:11:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D3 75 47 00 39 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 38 37 31 37 35 36 10 04 04 00 E4 12 03 00 F4 03 04 00 2A 88 1C 67 B6 04 01 00 00 CA F6 07 EE F3 2B 45 19 [12:11:46]CommunicateWithHost err = 0 [12:11:46]CheckOFDResponse [12:11:46]1017 (14) - 77093643461234 [12:11:46]1041 (16) - 0000000000871756 [12:11:46]1040 (4) - 201444 [12:11:46]1012 (4) - 26.10.2024 06:11 [12:11:46]1206 (1) - 0 [12:11:46]OFD Sender: Remove packet 201444 [12:11:46]ProducePacketName [12:11:46]name=ofd_packets/00201444 [12:11:46]NVStorageDeleteData [12:11:46]Write to MH i2c: 01 00 00 69 06 6F [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: 01 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: 01 07 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: 01 07 00 69 06 00 00 00 00 00 9B 0C 1D [12:11:46]RasterBufferAndPrint [12:11:46]line [12:11:46]line [12:11:46]line [12:11:46]line [12:11:46]line [12:11:46]written 0, free lines is 3233 [12:11:46]MH_Cut [12:11:46]Write to MH i2c: D1 01 00 70 06 01 48 [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: D1 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: D1 01 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: D1 01 00 70 06 00 47 [12:11:46]Write to MH i2c: 01 00 00 71 06 77 [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:47]OFD Sender: No OFD packet to send [12:11:47]*** Cut start [12:11:47]*** Purtial cut [12:11:47]*** Stage 1: CUTSNS_PIN = 1 [12:11:48]Read from MH i2c: 01 [12:11:48]MH_I2C_Read... [12:11:48]*** Stop cut motor [12:11:48]*** Cut end [12:11:48]Read from MH i2c: 01 07 00 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: 01 07 00 71 06 00 00 00 00 00 FF 0F 8C [12:11:48]process_action close_receipt done [12:11:48]requested_data is exist [12:11:48]produce_requested_data [12:11:48]requested_item fm.sn is exist - process it [12:11:48]wFMCommunicate request_size=4 [12:11:48]MH_SAM_APDU [12:11:48]CAPDU: 80 11 00 00 [12:11:48]Write to MH i2c: E2 08 00 72 06 80 11 00 00 00 00 00 00 F2 [12:11:48]Write i2c OK [12:11:48]MH_I2C_Read... [12:11:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:48]Read from MH i2c: E2 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 17 00 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 17 00 72 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 47 [12:11:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:11:48]wFMCommunicate OK [12:11:48]requested_item fd.num is exist - process it [12:11:48]SAM_PROTO_GetFieldsCounters [12:11:48]wFMCommunicate request_size=4 [12:11:48]MH_SAM_APDU [12:11:48]CAPDU: 80 13 00 00 [12:11:48]Write to MH i2c: E2 08 00 73 06 80 13 00 00 00 00 00 00 F5 [12:11:48]Write i2c OK [12:11:48]MH_I2C_Read... [12:11:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:48]Read from MH i2c: E2 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 62 00 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 62 00 73 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E4 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [12:11:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E4 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:48]wFMCommunicate OK [12:11:48]SAM_PROTO_GetFieldsCounters done [12:11:48]requested_item shift.num is exist - process it [12:11:48]requested_item shift.opened is exist - process it [12:11:48]req_shift_opened [12:11:48]FM_GetShiftState [12:11:48]SAM_PROTO_GetShiftState [12:11:48]wFMCommunicate request_size=4 [12:11:48]MH_SAM_APDU [12:11:48]CAPDU: 80 13 01 00 [12:11:48]Write to MH i2c: E2 08 00 74 06 80 13 01 00 00 00 00 00 F7 [12:11:48]Write i2c OK [12:11:48]MH_I2C_Read... [12:11:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:48]Read from MH i2c: E2 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 0E 00 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 0E 00 74 06 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 06 [12:11:48]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:11:48]wFMCommunicate OK [12:11:48]SAM_PROTO_GetShiftState done [12:11:48]FM_GetShiftState done [12:11:48]req_shift_opened done [12:11:48]requested_item shift.open_date is exist - process it [12:11:48]req_shift_open_date [12:11:48]req_shift_open_date done [12:11:48]produce_requested_data done [12:11:48]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201444,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:11:48]process_action_free close_receipt [12:11:48]json_value_free [12:11:48]json_value_free done [12:11:48]process_json_proto returns [12:11:48]Send response to host [12:15:19]MH_I2C_Read... [12:15:19]Read from MH i2c: E2 03 00 [12:15:19]MH_I2C_Read... [12:15:19]Read from MH i2c: E2 03 00 CF 06 00 90 00 49 [12:15:19]RAPDU: 90 00 [12:15:19]wFMCommunicate OK [12:15:19]wFMCommunicate request_size=255 [12:15:19]MH_SAM_APDU [12:15: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 57 DD 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E6 12 03 00 35 04 06 00 A8 [12:15:19]Write to MH i2c: E2 02 01 D0 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 57 DD 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E6 12 03 00 35 04 06 00 A8 00 00 21 [12:15:19]Write i2c OK [12:15:19]MH_I2C_Read... [12:15:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:20]Read from MH i2c: E2 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 03 00 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 03 00 D0 06 00 90 00 4A [12:15:20]RAPDU: 90 00 [12:15:20]wFMCommunicate OK [12:15:20]wFMCommunicate request_size=10 [12:15:20]MH_SAM_APDU [12:15:20]CAPDU: 80 0D 02 02 05 68 4C A7 46 65 [12:15:20]Write to MH i2c: E2 0D 00 D1 06 80 0D 02 02 05 00 68 4C A7 46 65 00 00 61 [12:15:20]Write i2c OK [12:15:20]MH_I2C_Read... [12:15:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:20]Read from MH i2c: E2 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 03 00 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 03 00 D1 06 00 90 00 4B [12:15:20]RAPDU: 90 00 [12:15:20]wFMCommunicate OK [12:15:20]wFMCommunicate request_size=4 [12:15:20]MH_SAM_APDU [12:15:20]CAPDU: 80 0D 03 02 [12:15:20]Write to MH i2c: E2 08 00 D2 06 80 0D 03 02 00 00 00 00 53 [12:15:20]Write i2c OK [12:15:20]MH_I2C_Read... [12:15:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:20]Read from MH i2c: E2 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 0B 00 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 0B 00 D2 06 00 7F 74 6E D6 1B 39 33 83 90 00 95 [12:15:20]RAPDU: 7F 74 6E D6 1B 39 33 83 90 00 [12:15:20]wFMCommunicate OK [12:15:20]SAM_PROTO_SignData done [12:15:20]FM_MakeSignedData done [12:15:20]CreateOFDProtocolMessage [12:15:20]wFMCommunicate request_size=4 [12:15:20]MH_SAM_APDU [12:15:20]CAPDU: 80 11 00 00 [12:15:20]Write to MH i2c: E2 08 00 D3 06 80 11 00 00 00 00 00 00 53 [12:15:20]Write i2c OK [12:15:20]MH_I2C_Read... [12:15:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:20]Read from MH i2c: E2 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 17 00 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 17 00 D3 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A8 [12:15:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:15:20]wFMCommunicate OK [12:15:20]CreateOFDProtocolMessage done [12:15:20]OFDSenderStorePacket 201446 [12:15:20]StoreOFDPacket docnum=201446 [12:15:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 DE BD 07 01 DB 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 57 DD 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E6 12 03 00 35 04 06 00 A8 68 4C A7 46 65 7F 74 6E D6 1B 39 33 83 [12:15:20]CheckFolder [12:15:20]dirname=/storage/ofd_packets [12:15:20]CheckFolder done [12:15:20]ProducePacketName [12:15:20]name=ofd_packets/00201446 [12:15:20]NVStorageSaveData ofd_packets/00201446 [12:15:20]File name is /storage/ofd_packets/00201446 [12:15:20]Write 301 bytes [12:15:20]NVStorageSaveData done [12:15:20]OFDSenderStorePacket done [12:15:20]KKMCreateOFDPacket done [12:15:20]NVStorageSaveData kkm_last_timestamp [12:15:20]File name is /storage/kkm_last_timestamp [12:15:20]Write 4 bytes [12:15:20]NVStorageSaveData done [12:15:20]ExternCall_PrintAddStr [12:15:20]wPrintStart [12:15:20]Write to MH i2c: 01 00 00 D4 06 DA [12:15:20]Write i2c OK [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: 01 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: 01 07 00 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: 01 07 00 D4 06 00 00 00 00 00 FF 0F EF [12:15:20]RasterBufferAndPrint [12:15:20]line Счет N : (1)449195 [12:15:20]line ИНН: 02508201610067 [12:15:20]line Контрольно-Кассовый Чек [12:15:20]line ПРОДАЖА [12:15:20]line ТРК (МРК, ГНК) : 62 [12:15:20]line Товар: 2710124130 [12:15:20]line Аи-92-К-2 [12:15:20]line 4.490 * 66.90 [12:15:20]line = 300.38 [12:15:20]line НДС 12% НСП 1% [12:15:20]line > о реализуемом товаре [12:15:20]line ОКРУГЛЕНИЕ: -0.38 [12:15:20]line ИТОГО: 300.00 [12:15:20]line Внесено: 300.00 [12:15:20]line СДАЧА: 0.00 [12:15:20]line НСП 1% : 2.66 [12:15:20]line НДС 12% : 31.90 [12:15:20]line Наличными: 300.00 [12:15:20]line Безнал.: 0.00 [12:15:20]line Место: АЗС № 171 "Партнер Нефть" [12:15:20]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:15:20]line СНО: Общий режим [12:15:20]line Чек 208 26.10.2024 12:15 [12:15:20]line Смена: 543 ФФД: 1.0 [12:15:20]line ЗНМ: 0300000109 [12:15:20]line РНМ: 0000000000091777 [12:15:20]line Версия ККМ: 001 [12:15:20]line ФМ: 0000000000871756 [12:15:20]line ФД: 201446 [12:15:20]line ФПД: 185165916096101 [12:15:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121519&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201446&fm=185165916096101&tin=02508201610067®Number=0000000000091777&sum=30000 [12:15:20]OFD Sender: Processing packet 201445 [packets to send 113, broken 111] [12:15:20]ProducePacketName [12:15:20]name=ofd_packets/00201445 [12:15:20]OFD Sender: To server: pG, [12:15:20]CommunicateWithHost lk.salyk.kg:30040 [12:15:20]ConnectInit lk.salyk.kg [12:15:20]written 0, free lines is 4095 [12:15:21]Write to MH i2c: 01 00 00 FF 06 05 [12:15:21]Write i2c OK [12:15:21]MH_I2C_Read... [12:15:21]Read from MH i2c: 01 [12:15:21]MH_I2C_Read... [12:15:21]Read from MH i2c: 01 07 00 [12:15:21]MH_I2C_Read... [12:15:21]Read from MH i2c: 01 07 00 FF 06 00 00 00 00 00 9D 0C B5 [12:15:21]RasterBufferAndPrint [12:15:21]line [12:15:21]line [12:15:21]line [12:15:21]line [12:15:21]line [12:15:21]written 0, free lines is 3234 [12:15:21]MH_Cut [12:15:21]Write to MH i2c: D1 01 00 06 07 01 DF [12:15:21]Write i2c OK [12:15:21]MH_I2C_Read... [12:15:21]Read from MH i2c: D1 [12:15:21]MH_I2C_Read... [12:15:21]Read from MH i2c: D1 01 00 [12:15:21]MH_I2C_Read... [12:15:21]Read from MH i2c: D1 01 00 06 07 00 DE [12:15:21]Write to MH i2c: 01 00 00 07 07 0E [12:15:21]Write i2c OK [12:15:21]MH_I2C_Read... [12:15:22]*** Cut start [12:15:22]*** Purtial cut [12:15:22]*** Stage 1: CUTSNS_PIN = 1 [12:15:22]Read from MH i2c: 01 [12:15:22]MH_I2C_Read... [12:15:22]*** Stop cut motor [12:15:22]*** Cut end [12:15:22]Read from MH i2c: 01 07 00 [12:15:22]MH_I2C_Read... [12:15:22]Read from MH i2c: 01 07 00 07 07 00 00 00 00 00 FF 0F 23 [12:15:22]process_action close_receipt done [12:15:22]requested_data is exist [12:15:22]produce_requested_data [12:15:22]requested_item fm.sn is exist - process it [12:15:22]wFMCommunicate request_size=4 [12:15:22]MH_SAM_APDU [12:15:22]CAPDU: 80 11 00 00 [12:15:22]Write to MH i2c: E2 08 00 08 07 80 11 00 00 00 00 00 00 89 [12:15:22]Write i2c OK [12:15:22]MH_I2C_Read... [12:15:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:22]Read from MH i2c: E2 [12:15:22]MH_I2C_Read... [12:15:22]Read from MH i2c: E2 17 00 [12:15:22]MH_I2C_Read... [12:15:22]Read from MH i2c: E2 17 00 08 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DE [12:15:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:15:22]wFMCommunicate OK [12:15:22]requested_item fd.num is exist - process it [12:15:22]SAM_PROTO_GetFieldsCounters [12:15:22]wFMCommunicate request_size=4 [12:15:22]MH_SAM_APDU [12:15:22]CAPDU: 80 13 00 00 [12:15:22]Write to MH i2c: E2 08 00 09 07 80 13 00 00 00 00 00 00 8C [12:15:22]Write i2c OK [12:15:22]MH_I2C_Read... [12:15:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:22]Read from MH i2c: E2 [12:15:22]MH_I2C_Read... [12:15:22]Read from MH i2c: E2 62 00 [12:15:22]MH_I2C_Read... [12:15:22]Read from MH i2c: E2 62 00 09 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E6 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [12:15:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E6 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:15:22]wFMCommunicate OK [12:15:22]SAM_PROTO_GetFieldsCounters done [12:15:22]requested_item shift.num is exist - process it [12:15:22]requested_item shift.opened is exist - process it [12:15:22]req_shift_opened [12:15:22]FM_GetShiftState [12:15:22]SAM_PROTO_GetShiftState [12:15:22]wFMCommunicate request_size=4 [12:15:22]MH_SAM_APDU [12:15:22]CAPDU: 80 13 01 00 [12:15:22]Write to MH i2c: E2 08 00 0A 07 80 13 01 00 00 00 00 00 8E [12:15:22]Write i2c OK [12:15:22]MH_I2C_Read... [12:15:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:22]Read from MH i2c: E2 [12:15:22]MH_I2C_Read... [12:15:22]Read from MH i2c: E2 0E 00 [12:15:22]MH_I2C_Read... [12:15:22]Read from MH i2c: E2 0E 00 0A 07 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 9D [12:15:22]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:15:22]wFMCommunicate OK [12:15:22]SAM_PROTO_GetShiftState done [12:15:22]FM_GetShiftState done [12:15:22]req_shift_opened done [12:15:22]requested_item shift.open_date is exist - process it [12:15:22]req_shift_open_date [12:15:22]req_shift_open_date done [12:15:22]produce_requested_data done [12:15:22]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201446,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:15:22]process_action_free close_receipt [12:15:22]json_value_free [12:15:22]json_value_free done [12:15:22]process_json_proto returns [12:15:22]Send response to host [12:15:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201446,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:15:22]free response buf [12:15:22]execute_script done [12:15:22]execute_script returns [12:15:22]free content buf [12:15:22]Sock 10.Close socket [12:15:22]Sock 10.Thread stoped [12:15:24]ConnectInit Can't connect to host [12:15:25]ConnectInit Can't take IP for lk.salyk.kg [12:15:25]CommunicateWithHost connect error [12:15:25]CommunicateWithHost err = -1 [12:15:25]OFD Sender: Server communicate error [12:15:30]OFD Sender: Processing packet 201445 [packets to send 113, broken 111] [12:15:30]ProducePacketName [12:15:30]name=ofd_packets/00201445 [12:15:30]OFD Sender: To server: pG, [12:15:30]CommunicateWithHost lk.salyk.kg:30040 [12:15:30]ConnectInit lk.salyk.kg [12:15:30]Connected sock=9 [12:15:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 23 0B 07 01 13 07 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 32 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 CF 00 00 00 F4 03 04 00 12 DD 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E5 12 03 00 35 04 06 00 E8 15 7E 81 D6 F3 DA 1B CF F2 BB C7 E3 AF [12:15:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 32 C1 47 00 CD 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E5 12 03 00 F4 03 04 00 0A 89 1C 67 B6 04 01 00 00 27 25 C5 22 F6 56 15 69 [12:15:31]CommunicateWithHost err = 0 [12:15:31]CheckOFDResponse [12:15:31]1017 (14) - 77093643461234 [12:15:31]1041 (16) - 0000000000871756 [12:15:31]1040 (4) - 201445 [12:15:31]1012 (4) - 26.10.2024 06:15 [12:15:31]1206 (1) - 0 [12:15:31]OFD Sender: Remove packet 201445 [12:15:31]ProducePacketName [12:15:31]name=ofd_packets/00201445 [12:15:31]NVStorageDeleteData [12:15:31]OFD Sender: Processing packet 201446 [packets to send 112, broken 111] [12:15:31]ProducePacketName [12:15:31]name=ofd_packets/00201446 [12:15:31]OFD Sender: To server: pG, [12:15:31]CommunicateWithHost lk.salyk.kg:30040 [12:15:31]ConnectInit lk.salyk.kg [12:15:31]Connected sock=9 [12:15:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 DE BD 07 01 DB 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 57 DD 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E6 12 03 00 35 04 06 00 A8 68 4C A7 46 65 7F 74 6E D6 1B 39 33 83 [12:15:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 6C A5 47 00 CC 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E6 12 03 00 F4 03 04 00 0B 89 1C 67 B6 04 01 00 00 9D 32 60 83 CB 14 DF 69 [12:15:31]CommunicateWithHost err = 0 [12:15:31]CheckOFDResponse [12:15:31]1017 (14) - 77093643461234 [12:15:31]1041 (16) - 0000000000871756 [12:15:31]1040 (4) - 201446 [12:15:31]1012 (4) - 26.10.2024 06:15 [12:15:31]1206 (1) - 0 [12:15:31]OFD Sender: Remove packet 201446 [12:15:31]ProducePacketName [12:15:31]name=ofd_packets/00201446 [12:15:31]NVStorageDeleteData [12:15:32]OFD Sender: No OFD packet to send [12:15:37]OFD Sender: No OFD packet to send [12:15:42]OFD Sender: No OFD packet to send [12:15:47]OFD Sender: No OFD packet to send [12:15:49]accept exits with 8 [12:15:49]New connection [12:15:49]New thread 3066834276 created [12:15:49]Thread 3066690916 joined [12:15:49]Waiting for new connection... [12:15:49] Sock 8.Parse request [12:15:49]Sock 8.Check first char [12:15:49]Sock 8.First char is OK [12:15:49]request: POST /json_proto HTTP/1.0 [12:15:49]Method: POST [12:15:49]URL: /json_proto [12:15:49]Method is POST - this is cgi request [12:15:49]url: /json_proto [12:15:49]query_string will be loaded in cgi processing [12:15:49]execute_cgi json_proto POST (null) [12:15:49]execute_cgi path=json_proto method=POST [12:15:49]POST find Content-Length [12:15:49]Host: 172.17.63.195:8080 [12:15:49]Content-Length: 677 [12:15:49]Content-Type: application/json [12:15:49] [12:15:49]POST finish read [12:15:49]Found Content-Length = 677 [12:15:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:15:49]execute_script... [12:15:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:15:49]POST & json_proto [12:15:49]process_json_proto [12:15:49]json parsed OK: [12:15:49]protocol is kg_v1.0 [12:15:49]action value=close_receipt [12:15:49]process_action close_receipt [12:15:49]cmd_close_receipt [12:15:49]MH_GetDate [12:15:49]Write to MH i2c: F0 00 00 0B 07 01 [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: F0 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: F0 09 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: F0 09 00 0B 07 00 75 DD 1C 67 68 46 19 67 0D [12:15:49]GetLastDocTimeStamp 1729944919 [12:15:49]current date 1729944949 [12:15:49]FM_GetShiftState [12:15:49]SAM_PROTO_GetShiftState [12:15:49]wFMCommunicate request_size=4 [12:15:49]MH_SAM_APDU [12:15:49]CAPDU: 80 13 01 00 [12:15:49]Write to MH i2c: E2 08 00 0C 07 80 13 01 00 00 00 00 00 90 [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:49]Read from MH i2c: E2 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 0E 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 0E 00 0C 07 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 9F [12:15:49]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:15:49]wFMCommunicate OK [12:15:49]SAM_PROTO_GetShiftState done [12:15:49]FM_GetShiftState done [12:15:49]opened in 1729900879 [12:15:49]opened+sec_in_day 1729987279 [12:15:49]quantity*price = 50041 [12:15:49]sum+1 = 50042 [12:15:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 209 26.10.2024 12:15 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201447 ФПД: 45113337531653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121549&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201447&fm=45113337531653&tin=02508201610067®Number=0000000000091777&sum=50000 [12:15:50]StoreToDocumentArchive [12:15:50]shift 543 fd 201447 [12:15:50]save to /storage/0543/doc_00201447 [12:15:50]save last doc name /storage/0543/doc_00201447 to /storage/kkm_last_doc_name [12:15:50]save OK [12:15:50]Clear old archive folders... [12:15:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:15:50]tlvbuf is 01F059A0 [12:15:50]SAM_PROTO_ClearQueue [12:15:50]wFMCommunicate request_size=4 [12:15:50]MH_SAM_APDU [12:15:50]CAPDU: 80 09 00 00 [12:15:50]Write to MH i2c: E2 08 00 19 07 80 09 00 00 00 00 00 00 92 [12:15:50]Write i2c OK [12:15:50]MH_I2C_Read... [12:15:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:50]Read from MH i2c: E2 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: E2 03 00 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: E2 03 00 19 07 00 90 00 94 [12:15:50]RAPDU: 90 00 [12:15:50]wFMCommunicate OK [12:15:50]SAM_PROTO_ClearQueue done [12:15:50]KKMCreateOFDPacket [12:15:50]OFDProtocolAddRootSTLVToBuf [12:15:50]FM_MakeSignedData [12:15:50]FM_MakeSignedData [12:15:50]SAM_PROTO_SignData [12:15:50]wFMCommunicate request_size=4 [12:15:50]MH_SAM_APDU [12:15:50]CAPDU: 80 0D 01 02 [12:15:50]Write to MH i2c: E2 08 00 1A 07 80 0D 01 02 00 00 00 00 9A [12:15:50]Write i2c OK [12:15:50]MH_I2C_Read... [12:15:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:50]Read from MH i2c: E2 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: E2 03 00 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: E2 03 00 1A 07 00 90 00 95 [12:15:50]RAPDU: 90 00 [12:15:50]wFMCommunicate OK [12:15:50]wFMCommunicate request_size=255 [12:15:50]MH_SAM_APDU [12:15: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 32 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 D1 00 00 00 F4 03 04 00 75 DD 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E7 12 03 00 35 04 06 00 29 [12:15:50]Write to MH i2c: E2 02 01 1B 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 32 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 D1 00 00 00 F4 03 04 00 75 DD 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E7 12 03 00 35 04 06 00 29 00 00 1A [12:15:50]Write i2c OK [12:15:50]MH_I2C_Read... [12:15:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:50]Read from MH i2c: E2 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: E2 03 00 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: E2 03 00 1B 07 00 90 00 96 [12:15:50]RAPDU: 90 00 [12:15:50]wFMCommunicate OK [12:15:50]wFMCommunicate request_size=10 [12:15:50]MH_SAM_APDU [12:15:50]CAPDU: 80 0D 02 02 05 07 C4 75 4D 05 [12:15:50]Write to MH i2c: E2 0D 00 1C 07 80 0D 02 02 05 00 07 C4 75 4D 05 00 00 39 [12:15:50]Write i2c OK [12:15:50]MH_I2C_Read... [12:15:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:50]Read from MH i2c: E2 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: E2 03 00 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: E2 03 00 1C 07 00 90 00 97 [12:15:50]RAPDU: 90 00 [12:15:50]wFMCommunicate OK [12:15:50]wFMCommunicate request_size=4 [12:15:50]MH_SAM_APDU [12:15:50]CAPDU: 80 0D 03 02 [12:15:50]Write to MH i2c: E2 08 00 1D 07 80 0D 03 02 00 00 00 00 9F [12:15:50]Write i2c OK [12:15:50]MH_I2C_Read... [12:15:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:50]Read from MH i2c: E2 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: E2 0B 00 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: E2 0B 00 1D 07 00 E5 B4 5C A5 5F A4 92 9D 90 00 6C [12:15:50]RAPDU: E5 B4 5C A5 5F A4 92 9D 90 00 [12:15:50]wFMCommunicate OK [12:15:50]SAM_PROTO_SignData done [12:15:50]FM_MakeSignedData done [12:15:50]CreateOFDProtocolMessage [12:15:50]wFMCommunicate request_size=4 [12:15:50]MH_SAM_APDU [12:15:50]CAPDU: 80 11 00 00 [12:15:50]Write to MH i2c: E2 08 00 1E 07 80 11 00 00 00 00 00 00 9F [12:15:50]Write i2c OK [12:15:50]MH_I2C_Read... [12:15:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:50]Read from MH i2c: E2 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: E2 17 00 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: E2 17 00 1E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F4 [12:15:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:15:50]wFMCommunicate OK [12:15:50]CreateOFDProtocolMessage done [12:15:50]OFDSenderStorePacket 201447 [12:15:50]StoreOFDPacket docnum=201447 [12:15:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 2B 6A 07 01 1C 59 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 32 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 D1 00 00 00 F4 03 04 00 75 DD 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E7 12 03 00 35 04 06 00 29 07 C4 75 4D 05 E5 B4 5C A5 5F A4 92 9D [12:15:50]CheckFolder [12:15:50]dirname=/storage/ofd_packets [12:15:50]CheckFolder done [12:15:50]ProducePacketName [12:15:50]name=ofd_packets/00201447 [12:15:50]NVStorageSaveData ofd_packets/00201447 [12:15:50]File name is /storage/ofd_packets/00201447 [12:15:50]Write 301 bytes [12:15:50]NVStorageSaveData done [12:15:50]OFDSenderStorePacket done [12:15:50]KKMCreateOFDPacket done [12:15:50]NVStorageSaveData kkm_last_timestamp [12:15:50]File name is /storage/kkm_last_timestamp [12:15:50]Write 4 bytes [12:15:50]NVStorageSaveData done [12:15:50]ExternCall_PrintAddStr [12:15:50]wPrintStart [12:15:50]Write to MH i2c: 01 00 00 1F 07 26 [12:15:50]Write i2c OK [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: 01 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: 01 07 00 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: 01 07 00 1F 07 00 00 00 00 00 FF 0F 3B [12:15:50]RasterBufferAndPrint [12:15:50]line Счет N : (1)449196 [12:15:50]line ИНН: 02508201610067 [12:15:50]line Контрольно-Кассовый Чек [12:15:50]line ПРОДАЖА [12:15:50]line ТРК (МРК, ГНК) : 41 [12:15:50]line Товар: 2710124130 [12:15:50]line Аи-92-К-2 [12:15:50]line 7.480 * 66.90 [12:15:50]line = 500.41 [12:15:50]line НДС 12% НСП 1% [12:15:50]line > о реализуемом товаре [12:15:50]line ОКРУГЛЕНИЕ: -0.41 [12:15:50]line ИТОГО: 500.00 [12:15:50]line Внесено: 500.00 [12:15:50]line СДАЧА: 0.00 [12:15:50]line НСП 1% : 4.43 [12:15:50]line НДС 12% : 53.14 [12:15:50]line Наличными: 500.00 [12:15:50]line Безнал.: 0.00 [12:15:50]line Место: АЗС № 171 "Партнер Нефть" [12:15:50]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:15:50]line СНО: Общий режим [12:15:50]line Чек 209 26.10.2024 12:15 [12:15:50]line Смена: 543 ФФД: 1.0 [12:15:50]line ЗНМ: 0300000109 [12:15:50]line РНМ: 0000000000091777 [12:15:50]line Версия ККМ: 001 [12:15:50]line ФМ: 0000000000871756 [12:15:50]line ФД: 201447 [12:15:50]line ФПД: 45113337531653 [12:15:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121549&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201447&fm=45113337531653&tin=02508201610067®Number=0000000000091777&sum=50000 [12:15:51]OFD Sender: Processing packet 201447 [packets to send 112, broken 111] [12:15:51]ProducePacketName [12:15:51]name=ofd_packets/00201447 [12:15:51]OFD Sender: To server: pG, [12:15:51]CommunicateWithHost lk.salyk.kg:30040 [12:15:51]ConnectInit lk.salyk.kg [12:15:51]written 0, free lines is 4095 [12:15:51]Connected sock=10 [12:15:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 2B 6A 07 01 1C 59 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 32 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 D1 00 00 00 F4 03 04 00 75 DD 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E7 12 03 00 35 04 06 00 29 07 C4 75 4D 05 E5 B4 5C A5 5F A4 92 9D [12:15:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 1D 8B 47 00 11 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E7 12 03 00 F4 03 04 00 1F 89 1C 67 B6 04 01 00 00 E6 00 A0 B3 E0 3D D6 A8 [12:15:51]CommunicateWithHost err = 0 [12:15:51]CheckOFDResponse [12:15:51]1017 (14) - 77093643461234 [12:15:51]1041 (16) - 0000000000871756 [12:15:51]1040 (4) - 201447 [12:15:51]1012 (4) - 26.10.2024 06:15 [12:15:51]1206 (1) - 0 [12:15:51]OFD Sender: Remove packet 201447 [12:15:51]ProducePacketName [12:15:51]name=ofd_packets/00201447 [12:15:51]NVStorageDeleteData [12:15:51]Write to MH i2c: 01 00 00 4A 07 51 [12:15:51]Write i2c OK [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: 01 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: 01 07 00 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: 01 07 00 4A 07 00 00 00 00 00 A2 0C 06 [12:15:51]RasterBufferAndPrint [12:15:51]line [12:15:51]line [12:15:51]line [12:15:51]line [12:15:51]line [12:15:51]written 0, free lines is 3238 [12:15:51]MH_Cut [12:15:51]Write to MH i2c: D1 01 00 51 07 01 2A [12:15:51]Write i2c OK [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: D1 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: D1 01 00 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: D1 01 00 51 07 00 29 [12:15:51]Write to MH i2c: 01 00 00 52 07 59 [12:15:51]Write i2c OK [12:15:51]MH_I2C_Read... [12:15:52]OFD Sender: No OFD packet to send [12:15:52]*** Cut start [12:15:52]*** Purtial cut [12:15:52]*** Stage 1: CUTSNS_PIN = 1 [12:15:52]Read from MH i2c: 01 [12:15:52]MH_I2C_Read... [12:15:52]*** Stop cut motor [12:15:52]*** Cut end [12:15:52]Read from MH i2c: 01 07 00 [12:15:52]MH_I2C_Read... [12:15:52]Read from MH i2c: 01 07 00 52 07 00 00 00 00 00 FF 0F 6E [12:15:52]process_action close_receipt done [12:15:52]requested_data is exist [12:15:52]produce_requested_data [12:15:52]requested_item fm.sn is exist - process it [12:15:52]wFMCommunicate request_size=4 [12:15:52]MH_SAM_APDU [12:15:52]CAPDU: 80 11 00 00 [12:15:52]Write to MH i2c: E2 08 00 53 07 80 11 00 00 00 00 00 00 D4 [12:15:52]Write i2c OK [12:15:52]MH_I2C_Read... [12:15:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:52]Read from MH i2c: E2 [12:15:52]MH_I2C_Read... [12:15:52]Read from MH i2c: E2 17 00 [12:15:52]MH_I2C_Read... [12:15:52]Read from MH i2c: E2 17 00 53 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 29 [12:15:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:15:52]wFMCommunicate OK [12:15:52]requested_item fd.num is exist - process it [12:15:52]SAM_PROTO_GetFieldsCounters [12:15:52]wFMCommunicate request_size=4 [12:15:52]MH_SAM_APDU [12:15:52]CAPDU: 80 13 00 00 [12:15:52]Write to MH i2c: E2 08 00 54 07 80 13 00 00 00 00 00 00 D7 [12:15:52]Write i2c OK [12:15:52]MH_I2C_Read... [12:15:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:53]Read from MH i2c: E2 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: E2 62 00 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: E2 62 00 54 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E7 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [12:15:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E7 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:15:53]wFMCommunicate OK [12:15:53]SAM_PROTO_GetFieldsCounters done [12:15:53]requested_item shift.num is exist - process it [12:15:53]requested_item shift.opened is exist - process it [12:15:53]req_shift_opened [12:15:53]FM_GetShiftState [12:15:53]SAM_PROTO_GetShiftState [12:15:53]wFMCommunicate request_size=4 [12:15:53]MH_SAM_APDU [12:15:53]CAPDU: 80 13 01 00 [12:15:53]Write to MH i2c: E2 08 00 55 07 80 13 01 00 00 00 00 00 D9 [12:15:53]Write i2c OK [12:15:53]MH_I2C_Read... [12:15:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:53]Read from MH i2c: E2 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: E2 0E 00 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: E2 0E 00 55 07 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E8 [12:15:53]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:15:53]wFMCommunicate OK [12:15:53]SAM_PROTO_GetShiftState done [12:15:53]FM_GetShiftState done [12:15:53]req_shift_opened done [12:15:53]requested_item shift.open_date is exist - process it [12:15:53]req_shift_open_date [12:15:53]req_shift_open_date done [12:15:53]produce_requested_data done [12:15:53]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201447,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:15:53]process_action_free close_receipt [12:15:53]json_value_free [12:15:53]json_value_free done [12:15:53]process_json_proto returns [12:15:53]Send response to host [12:15:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201447,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:15:53]free response buf [12:15:53]execute_script done [12:15:53]execute_script returns [12:15:53]free content buf [12:15:53]Sock 8.Close socket [12:15:53]Sock 8.Thread stoped [12:15:57]OFD Sender: No OFD packet to send [12:16:02]OFD Sender: No OFD packet to send [12:16:07]OFD Sender: No OFD packet to send [12:16:12]OFD Sender: No OFD packet to send [12:16:17]OFD Sender: No OFD packet to send [12:16:22]OFD Sender: No OFD packet to send [12:16:27]OFD Sender: No OFD packet to send [12:16:32]OFD Sender: No OFD packet to send [12:16:37]OFD Sender: No OFD packet to send [12:16:42]OFD Sender: No OFD packet to send [12:16:47]OFD Sender: No OFD packet to send [12:16:52]OFD Sender: No OFD packet to send [12:16:57]OFD Sender: No OFD packet to send [12:17:02]OFD Sender: No OFD packet to send [12:17:07]OFD Sender: No OFD packet to send [12:17:12]OFD Sender: No OFD packet to send [12:17:17]OFD Sender: No OFD packet to send [12:17:22]OFD Sender: No OFD packet to send [12:17:27]OFD Sender: No OFD packet to send [12:17:32]OFD Sender: No OFD packet to send [12:17:37]OFD Sender: No OFD packet to send [12:17:42]OFD Sender: No OFD packet to send [12:17:47]OFD Sender: No OFD packet to send [12:17:52]OFD Sender: No OFD packet to send [12:17:57]OFD Sender: No OFD packet to send [12:18:02]OFD Sender: No OFD packet to send [12:18:07]OFD Sender: No OFD packet to send [12:18:12]OFD Sender: No OFD packet to send [12:18:17]OFD Sender: No OFD packet to send [12:18:22]OFD Sender: No OFD packet to send [12:18:27]OFD Sender: No OFD packet to send [12:18:32]OFD Sender: No OFD packet to send [12:18:37]OFD Sender: No OFD packet to send [12:18:42]OFD Sender: No OFD packet to send [12:18:47]OFD Sender: No OFD packet to send [12:18:52]OFD Sender: No OFD packet to send [12:18:57]OFD Sender: No OFD packet to send [12:19:02]OFD Sender: No OFD packet to send [12:19:07]OFD Sender: No OFD packet to send [12:19:12]accept exits with 9 [12:19:12]New connection [12:19:12]New thread 3066690916 created [12:19:12]Thread 3066834276 joined [12:19:12]Waiting for new connection... [12:19:12] Sock 9.Parse request [12:19:12]Sock 9.Check first char [12:19:12]Sock 9.First char is OK [12:19:12]request: POST /json_proto HTTP/1.0 [12:19:12]Method: POST [12:19:12]URL: /json_proto [12:19:12]Method is POST - this is cgi request [12:19:12]url: /json_proto [12:19:12]query_string will be loaded in cgi processing [12:19:12]execute_cgi json_proto POST (null) [12:19:12]execute_cgi path=json_proto method=POST [12:19:12]POST find Content-Length [12:19:12]Host: 172.17.63.195:8080 [12:19:12]Content-Length: 677 [12:19:12]Content-Type: application/json [12:19:12] [12:19:12]POST finish read [12:19:12]Found Content-Length = 677 [12:19:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:19:12]execute_script... [12:19: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)449197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:19:12]POST & json_proto [12:19:12]process_json_proto [12:19:12]json parsed OK: [12:19:12]protocol is kg_v1.0 [12:19:12]action value=close_receipt [12:19:12]process_action close_receipt [12:19:12]cmd_close_receipt [12:19:12]MH_GetDate [12:19:12]Write to MH i2c: F0 00 00 56 07 4C [12:19:12]Write i2c OK [12:19:12]MH_I2C_Read... [12:19:12]Read from MH i2c: F0 [12:19:12]MH_I2C_Read... [12:19:12]Read from MH i2c: F0 09 00 [12:19:12]MH_I2C_Read... [12:19:12]Read from MH i2c: F0 09 00 56 07 00 40 DE 1C 67 68 46 19 67 24 [12:19:12]GetLastDocTimeStamp 1729944949 [12:19:12]current date 1729945152 [12:19:12]FM_GetShiftState [12:19:12]SAM_PROTO_GetShiftState [12:19:12]wFMCommunicate request_size=4 [12:19:12]MH_SAM_APDU [12:19:12]CAPDU: 80 13 01 00 [12:19:12]Write to MH i2c: E2 08 00 57 07 80 13 01 00 00 00 00 00 DB [12:19:12]Write i2c OK [12:19:12]MH_I2C_Read... [12:19:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:12]Read from MH i2c: E2 [12:19:12]MH_I2C_Read... [12:19:12]Read from MH i2c: E2 0E 00 [12:19:12]MH_I2C_Read... [12:19:12]Read from MH i2c: E2 0E 00 57 07 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 EA [12:19:12]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:19:12]wFMCommunicate OK [12:19:12]SAM_PROTO_GetShiftState done [12:19:12]FM_GetShiftState done [12:19:12]opened in 1729900879 [12:19:12]opened+sec_in_day 1729987279 [12:19:12]quantity*price = 40006 [12:19:12]sum+1 = 40007 [12:19: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 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 210 26.10.2024 12:19 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201448 ФПД: 159301033480198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121913&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201448&fm=159301033480198&tin=02508201610067®Number=0000000000091777&sum=40000 [12:19:13]StoreToDocumentArchive [12:19:13]shift 543 fd 201448 [12:19:13]save to /storage/0543/doc_00201448 [12:19:13]save last doc name /storage/0543/doc_00201448 to /storage/kkm_last_doc_name [12:19:13]save OK [12:19:13]Clear old archive folders... [12:19:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:19:13]tlvbuf is B6F38700 [12:19:13]SAM_PROTO_ClearQueue [12:19:13]wFMCommunicate request_size=4 [12:19:13]MH_SAM_APDU [12:19:13]CAPDU: 80 09 00 00 [12:19:13]Write to MH i2c: E2 08 00 64 07 80 09 00 00 00 00 00 00 DD [12:19:13]Write i2c OK [12:19:13]MH_I2C_Read... [12:19:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:13]Read from MH i2c: E2 [12:19:13]MH_I2C_Read... [12:19:13]Read from MH i2c: E2 03 00 [12:19:13]MH_I2C_Read... [12:19:13]Read from MH i2c: E2 03 00 64 07 00 90 00 DF [12:19:13]RAPDU: 90 00 [12:19:13]wFMCommunicate OK [12:19:13]SAM_PROTO_ClearQueue done [12:19:13]KKMCreateOFDPacket [12:19:13]OFDProtocolAddRootSTLVToBuf [12:19:13]FM_MakeSignedData [12:19:13]FM_MakeSignedData [12:19:13]SAM_PROTO_SignData [12:19:13]wFMCommunicate request_size=4 [12:19:13]MH_SAM_APDU [12:19:13]CAPDU: 80 0D 01 02 [12:19:13]Write to MH i2c: E2 08 00 65 07 80 0D 01 02 00 00 00 00 E5 [12:19:13]Write i2c OK [12:19:13]MH_I2C_Read... [12:19:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:13]Read from MH i2c: E2 [12:19:13]MH_I2C_Read... [12:19:13]Read from MH i2c: E2 03 00 [12:19:13]MH_I2C_Read... [12:19:13]Read from MH i2c: E2 03 00 65 07 00 90 00 E0 [12:19:13]RAPDU: 90 00 [12:19:13]wFMCommunicate OK [12:19:13]wFMCommunicate request_size=255 [12:19:13]MH_SAM_APDU [12:19: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 32 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 D2 00 00 00 F4 03 04 00 41 DE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E8 12 03 00 35 04 06 00 90 [12:19:13]Write to MH i2c: E2 02 01 66 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 32 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 D2 00 00 00 F4 03 04 00 41 DE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E8 12 03 00 35 04 06 00 90 00 00 6A [12:19:13]Write i2c OK [12:19:13]MH_I2C_Read... [12:19:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:13]Read from MH i2c: E2 [12:19:13]MH_I2C_Read... [12:19:13]Read from MH i2c: E2 03 00 [12:19:13]MH_I2C_Read... [12:19:13]Read from MH i2c: E2 03 00 66 07 00 90 00 E1 [12:19:13]RAPDU: 90 00 [12:19:13]wFMCommunicate OK [12:19:13]wFMCommunicate request_size=10 [12:19:13]MH_SAM_APDU [12:19:13]CAPDU: 80 0D 02 02 05 E2 29 83 50 06 [12:19:13]Write to MH i2c: E2 0D 00 67 07 80 0D 02 02 05 00 E2 29 83 50 06 00 00 D6 [12:19:13]Write i2c OK [12:19:13]MH_I2C_Read... [12:19:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:13]Read from MH i2c: E2 [12:19:13]MH_I2C_Read... [12:19:13]Read from MH i2c: E2 03 00 [12:19:13]MH_I2C_Read... [12:19:13]Read from MH i2c: E2 03 00 67 07 00 90 00 E2 [12:19:13]RAPDU: 90 00 [12:19:13]wFMCommunicate OK [12:19:13]wFMCommunicate request_size=4 [12:19:13]MH_SAM_APDU [12:19:13]CAPDU: 80 0D 03 02 [12:19:13]Write to MH i2c: E2 08 00 68 07 80 0D 03 02 00 00 00 00 EA [12:19:13]Write i2c OK [12:19:13]MH_I2C_Read... [12:19:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:14]Read from MH i2c: E2 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: E2 0B 00 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: E2 0B 00 68 07 00 78 34 B2 DB 21 C5 D1 FF 90 00 DA [12:19:14]RAPDU: 78 34 B2 DB 21 C5 D1 FF 90 00 [12:19:14]wFMCommunicate OK [12:19:14]SAM_PROTO_SignData done [12:19:14]FM_MakeSignedData done [12:19:14]CreateOFDProtocolMessage [12:19:14]wFMCommunicate request_size=4 [12:19:14]MH_SAM_APDU [12:19:14]CAPDU: 80 11 00 00 [12:19:14]Write to MH i2c: E2 08 00 69 07 80 11 00 00 00 00 00 00 EA [12:19:14]Write i2c OK [12:19:14]MH_I2C_Read... [12:19:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:14]Read from MH i2c: E2 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: E2 17 00 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: E2 17 00 69 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3F [12:19:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:19:14]wFMCommunicate OK [12:19:14]CreateOFDProtocolMessage done [12:19:14]OFDSenderStorePacket 201448 [12:19:14]StoreOFDPacket docnum=201448 [12:19:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 87 93 07 01 A8 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D2 00 00 00 F4 03 04 00 41 DE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E8 12 03 00 35 04 06 00 90 E2 29 83 50 06 78 34 B2 DB 21 C5 D1 FF [12:19:14]CheckFolder [12:19:14]dirname=/storage/ofd_packets [12:19:14]CheckFolder done [12:19:14]ProducePacketName [12:19:14]name=ofd_packets/00201448 [12:19:14]NVStorageSaveData ofd_packets/00201448 [12:19:14]File name is /storage/ofd_packets/00201448 [12:19:14]Write 301 bytes [12:19:14]NVStorageSaveData done [12:19:14]OFDSenderStorePacket done [12:19:14]KKMCreateOFDPacket done [12:19:14]NVStorageSaveData kkm_last_timestamp [12:19:14]File name is /storage/kkm_last_timestamp [12:19:14]Write 4 bytes [12:19:14]NVStorageSaveData done [12:19:14]ExternCall_PrintAddStr [12:19:14]wPrintStart [12:19:14]Write to MH i2c: 01 00 00 6A 07 71 [12:19:14]Write i2c OK [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: 01 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: 01 07 00 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: 01 07 00 6A 07 00 00 00 00 00 FF 0F 86 [12:19:14]RasterBufferAndPrint [12:19:14]line Счет N : (1)449197 [12:19:14]line ИНН: 02508201610067 [12:19:14]line Контрольно-Кассовый Чек [12:19:14]line ПРОДАЖА [12:19:14]line ТРК (МРК, ГНК) : 41 [12:19:14]line Товар: 2710124130 [12:19:14]line Аи-92-К-2 [12:19:14]line 5.980 * 66.90 [12:19:14]line = 400.06 [12:19:14]line НДС 12% НСП 1% [12:19:14]line > о реализуемом товаре [12:19:14]line ОКРУГЛЕНИЕ: -0.06 [12:19:14]line ИТОГО: 400.00 [12:19:14]line Внесено: 400.00 [12:19:14]line СДАЧА: 0.00 [12:19:14]line НСП 1% : 3.54 [12:19:14]line НДС 12% : 42.48 [12:19:14]line Наличными: 400.00 [12:19:14]line Безнал.: 0.00 [12:19:14]line Место: АЗС № 171 "Партнер Нефть" [12:19:14]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:19:14]line СНО: Общий режим [12:19:14]line Чек 210 26.10.2024 12:19 [12:19:14]line Смена: 543 ФФД: 1.0 [12:19:14]line ЗНМ: 0300000109 [12:19:14]line РНМ: 0000000000091777 [12:19:14]line Версия ККМ: 001 [12:19:14]line ФМ: 0000000000871756 [12:19:14]line ФД: 201448 [12:19:14]line ФПД: 159301033480198 [12:19:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121913&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201448&fm=159301033480198&tin=02508201610067®Number=0000000000091777&sum=40000 [12:19:14]OFD Sender: Processing packet 201448 [packets to send 112, broken 111] [12:19:14]ProducePacketName [12:19:14]name=ofd_packets/00201448 [12:19:14]OFD Sender: To server: pG, [12:19:14]CommunicateWithHost lk.salyk.kg:30040 [12:19:14]ConnectInit lk.salyk.kg [12:19:14]written 0, free lines is 4095 [12:19:14]Connected sock=10 [12:19:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 87 93 07 01 A8 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D2 00 00 00 F4 03 04 00 41 DE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E8 12 03 00 35 04 06 00 90 E2 29 83 50 06 78 34 B2 DB 21 C5 D1 FF [12:19:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 AC 14 47 00 8B 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E8 12 03 00 F4 03 04 00 EA 89 1C 67 B6 04 01 00 00 95 17 CB 6C 35 B7 6A 80 [12:19:14]CommunicateWithHost err = 0 [12:19:14]CheckOFDResponse [12:19:14]1017 (14) - 77093643461234 [12:19:14]1041 (16) - 0000000000871756 [12:19:14]1040 (4) - 201448 [12:19:14]1012 (4) - 26.10.2024 06:19 [12:19:14]1206 (1) - 0 [12:19:14]OFD Sender: Remove packet 201448 [12:19:14]ProducePacketName [12:19:14]name=ofd_packets/00201448 [12:19:14]NVStorageDeleteData [12:19:14]Write to MH i2c: 01 00 00 95 07 9C [12:19:14]Write i2c OK [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: 01 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: 01 07 00 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: 01 07 00 95 07 00 00 00 00 00 A8 0C 57 [12:19:14]RasterBufferAndPrint [12:19:14]line [12:19:14]line [12:19:14]line [12:19:14]line [12:19:14]line [12:19:14]written 0, free lines is 3244 [12:19:14]MH_Cut [12:19:14]Write to MH i2c: D1 01 00 9C 07 01 75 [12:19:14]Write i2c OK [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: D1 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: D1 01 00 [12:19:14]MH_I2C_Read... [12:19:14]Read from MH i2c: D1 01 00 9C 07 00 74 [12:19:14]Write to MH i2c: 01 00 00 9D 07 A4 [12:19:14]Write i2c OK [12:19:14]MH_I2C_Read... [12:19:15]OFD Sender: No OFD packet to send [12:19:15]*** Cut start [12:19:15]*** Purtial cut [12:19:15]*** Stage 1: CUTSNS_PIN = 1 [12:19:15]Read from MH i2c: 01 [12:19:15]MH_I2C_Read... [12:19:15]*** Stop cut motor [12:19:15]*** Cut end [12:19:15]Read from MH i2c: 01 07 00 [12:19:15]MH_I2C_Read... [12:19:15]Read from MH i2c: 01 07 00 9D 07 00 00 00 00 00 FF 0F B9 [12:19:15]process_action close_receipt done [12:19:15]requested_data is exist [12:19:15]produce_requested_data [12:19:15]requested_item fm.sn is exist - process it [12:19:15]wFMCommunicate request_size=4 [12:19:15]MH_SAM_APDU [12:19:15]CAPDU: 80 11 00 00 [12:19:15]Write to MH i2c: E2 08 00 9E 07 80 11 00 00 00 00 00 00 1F [12:19:15]Write i2c OK [12:19:15]MH_I2C_Read... [12:19:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:16]Read from MH i2c: E2 [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: E2 17 00 [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: E2 17 00 9E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 74 [12:19:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:19:16]wFMCommunicate OK [12:19:16]requested_item fd.num is exist - process it [12:19:16]SAM_PROTO_GetFieldsCounters [12:19:16]wFMCommunicate request_size=4 [12:19:16]MH_SAM_APDU [12:19:16]CAPDU: 80 13 00 00 [12:19:16]Write to MH i2c: E2 08 00 9F 07 80 13 00 00 00 00 00 00 22 [12:19:16]Write i2c OK [12:19:16]MH_I2C_Read... [12:19:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:16]Read from MH i2c: E2 [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: E2 62 00 [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: E2 62 00 9F 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E8 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [12:19:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E8 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:16]wFMCommunicate OK [12:19:16]SAM_PROTO_GetFieldsCounters done [12:19:16]requested_item shift.num is exist - process it [12:19:16]requested_item shift.opened is exist - process it [12:19:16]req_shift_opened [12:19:16]FM_GetShiftState [12:19:16]SAM_PROTO_GetShiftState [12:19:16]wFMCommunicate request_size=4 [12:19:16]MH_SAM_APDU [12:19:16]CAPDU: 80 13 01 00 [12:19:16]Write to MH i2c: E2 08 00 A0 07 80 13 01 00 00 00 00 00 24 [12:19:16]Write i2c OK [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: E2 [12:19:16]MH_I2C_Read... [12:19:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:16]Read from MH i2c: E2 0E 00 [12:19:16]MH_I2C_Read... [12:19:16]Read from MH i2c: E2 0E 00 A0 07 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 33 [12:19:16]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:19:16]wFMCommunicate OK [12:19:16]SAM_PROTO_GetShiftState done [12:19:16]FM_GetShiftState done [12:19:16]req_shift_opened done [12:19:16]requested_item shift.open_date is exist - process it [12:19:16]req_shift_open_date [12:19:16]req_shift_open_date done [12:19:16]produce_requested_data done [12:19:16]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201448,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:19:16]process_action_free close_receipt [12:19:16]json_value_free [12:19:16]json_value_free done [12:19:16]process_json_proto returns [12:19:16]Send response to host [12:19:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201448,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:19:16]free response buf [12:19:16]execute_script done [12:19:16]execute_script returns [12:19:16]free content buf [12:19:16]Sock 9.Close socket [12:19:16]Sock 9.Thread stoped [12:19:20]OFD Sender: No OFD packet to send [12:19:25]OFD Sender: No OFD packet to send [12:19:30]OFD Sender: No OFD packet to send [12:19:35]OFD Sender: No OFD packet to send [12:19:40]OFD Sender: No OFD packet to send [12:19:45]OFD Sender: No OFD packet to send [12:19:45]accept exits with 8 [12:19:45]New connection [12:19:45]New thread 3066834276 created [12:19:45]Thread 3066690916 joined [12:19:45]Waiting for new connection... [12:19:45] Sock 8.Parse request [12:19:45]Sock 8.Check first char [12:19:45]Sock 8.First char is OK [12:19:45]request: POST /json_proto HTTP/1.0 [12:19:45]Method: POST [12:19:45]URL: /json_proto [12:19:45]Method is POST - this is cgi request [12:19:45]url: /json_proto [12:19:45]query_string will be loaded in cgi processing [12:19:45]execute_cgi json_proto POST (null) [12:19:45]execute_cgi path=json_proto method=POST [12:19:45]POST find Content-Length [12:19:45]Host: 172.17.63.195:8080 [12:19:45]Content-Length: 677 [12:19:45]Content-Type: application/json [12:19:45] [12:19:45]POST finish read [12:19:45]Found Content-Length = 677 [12:19:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:19:45]execute_script... [12:19: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)449198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:19:45]POST & json_proto [12:19:45]process_json_proto [12:19:45]json parsed OK: [12:19:45]protocol is kg_v1.0 [12:19:45]action value=close_receipt [12:19:45]process_action close_receipt [12:19:45]cmd_close_receipt [12:19:45]MH_GetDate [12:19:45]Write to MH i2c: F0 00 00 A1 07 97 [12:19:45]Write i2c OK [12:19:45]MH_I2C_Read... [12:19:45]Read from MH i2c: F0 [12:19:45]MH_I2C_Read... [12:19:45]Read from MH i2c: F0 09 00 [12:19:45]MH_I2C_Read... [12:19:45]Read from MH i2c: F0 09 00 A1 07 00 62 DE 1C 67 68 46 19 67 91 [12:19:45]GetLastDocTimeStamp 1729945153 [12:19:45]current date 1729945186 [12:19:45]FM_GetShiftState [12:19:45]SAM_PROTO_GetShiftState [12:19:45]wFMCommunicate request_size=4 [12:19:45]MH_SAM_APDU [12:19:45]CAPDU: 80 13 01 00 [12:19:45]Write to MH i2c: E2 08 00 A2 07 80 13 01 00 00 00 00 00 26 [12:19:45]Write i2c OK [12:19:45]MH_I2C_Read... [12:19:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:45]Read from MH i2c: E2 [12:19:45]MH_I2C_Read... [12:19:45]Read from MH i2c: E2 0E 00 [12:19:45]MH_I2C_Read... [12:19:45]Read from MH i2c: E2 0E 00 A2 07 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 35 [12:19:45]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:19:45]wFMCommunicate OK [12:19:45]SAM_PROTO_GetShiftState done [12:19:45]FM_GetShiftState done [12:19:45]opened in 1729900879 [12:19:45]opened+sec_in_day 1729987279 [12:19:45]quantity*price = 50041 [12:19:45]sum+1 = 50042 [12:19:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 211 26.10.2024 12:19 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201449 ФПД: 61436293555576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121946&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201449&fm=61436293555576&tin=02508201610067®Number=0000000000091777&sum=50000 [12:19:46]StoreToDocumentArchive [12:19:46]shift 543 fd 201449 [12:19:46]save to /storage/0543/doc_00201449 [12:19:46]save last doc name /storage/0543/doc_00201449 to /storage/kkm_last_doc_name [12:19:46]save OK [12:19:46]Clear old archive folders... [12:19:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:19:46]tlvbuf is 01F006D0 [12:19:46]SAM_PROTO_ClearQueue [12:19:46]wFMCommunicate request_size=4 [12:19:46]MH_SAM_APDU [12:19:46]CAPDU: 80 09 00 00 [12:19:46]Write to MH i2c: E2 08 00 AF 07 80 09 00 00 00 00 00 00 28 [12:19:46]Write i2c OK [12:19:46]MH_I2C_Read... [12:19:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:46]Read from MH i2c: E2 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 03 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 03 00 AF 07 00 90 00 2A [12:19:46]RAPDU: 90 00 [12:19:46]wFMCommunicate OK [12:19:46]SAM_PROTO_ClearQueue done [12:19:46]KKMCreateOFDPacket [12:19:46]OFDProtocolAddRootSTLVToBuf [12:19:46]FM_MakeSignedData [12:19:46]FM_MakeSignedData [12:19:46]SAM_PROTO_SignData [12:19:46]wFMCommunicate request_size=4 [12:19:46]MH_SAM_APDU [12:19:46]CAPDU: 80 0D 01 02 [12:19:46]Write to MH i2c: E2 08 00 B0 07 80 0D 01 02 00 00 00 00 30 [12:19:46]Write i2c OK [12:19:46]MH_I2C_Read... [12:19:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:46]Read from MH i2c: E2 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 03 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 03 00 B0 07 00 90 00 2B [12:19:46]RAPDU: 90 00 [12:19:46]wFMCommunicate OK [12:19:46]wFMCommunicate request_size=255 [12:19:46]MH_SAM_APDU [12:19:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 D3 00 00 00 F4 03 04 00 62 DE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E9 12 03 00 35 04 06 00 37 [12:19:46]Write to MH i2c: E2 02 01 B1 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 32 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 D3 00 00 00 F4 03 04 00 62 DE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E9 12 03 00 35 04 06 00 37 00 00 B0 [12:19:46]Write i2c OK [12:19:46]MH_I2C_Read... [12:19:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:47]Read from MH i2c: E2 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: E2 03 00 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: E2 03 00 B1 07 00 90 00 2C [12:19:47]RAPDU: 90 00 [12:19:47]wFMCommunicate OK [12:19:47]wFMCommunicate request_size=10 [12:19:47]MH_SAM_APDU [12:19:47]CAPDU: 80 0D 02 02 05 E0 40 74 25 78 [12:19:47]Write to MH i2c: E2 0D 00 B2 07 80 0D 02 02 05 00 E0 40 74 25 78 00 00 6E [12:19:47]Write i2c OK [12:19:47]MH_I2C_Read... [12:19:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:47]Read from MH i2c: E2 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: E2 03 00 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: E2 03 00 B2 07 00 90 00 2D [12:19:47]RAPDU: 90 00 [12:19:47]wFMCommunicate OK [12:19:47]wFMCommunicate request_size=4 [12:19:47]MH_SAM_APDU [12:19:47]CAPDU: 80 0D 03 02 [12:19:47]Write to MH i2c: E2 08 00 B3 07 80 0D 03 02 00 00 00 00 35 [12:19:47]Write i2c OK [12:19:47]MH_I2C_Read... [12:19:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:47]Read from MH i2c: E2 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: E2 0B 00 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: E2 0B 00 B3 07 00 18 7E BA ED 6B 15 F8 51 90 00 3C [12:19:47]RAPDU: 18 7E BA ED 6B 15 F8 51 90 00 [12:19:47]wFMCommunicate OK [12:19:47]SAM_PROTO_SignData done [12:19:47]FM_MakeSignedData done [12:19:47]CreateOFDProtocolMessage [12:19:47]wFMCommunicate request_size=4 [12:19:47]MH_SAM_APDU [12:19:47]CAPDU: 80 11 00 00 [12:19:47]Write to MH i2c: E2 08 00 B4 07 80 11 00 00 00 00 00 00 35 [12:19:47]Write i2c OK [12:19:47]MH_I2C_Read... [12:19:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:47]Read from MH i2c: E2 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: E2 17 00 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: E2 17 00 B4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8A [12:19:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:19:47]wFMCommunicate OK [12:19:47]CreateOFDProtocolMessage done [12:19:47]OFDSenderStorePacket 201449 [12:19:47]StoreOFDPacket docnum=201449 [12:19:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 99 7D 07 01 71 9F 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 32 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 D3 00 00 00 F4 03 04 00 62 DE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E9 12 03 00 35 04 06 00 37 E0 40 74 25 78 18 7E BA ED 6B 15 F8 51 [12:19:47]CheckFolder [12:19:47]dirname=/storage/ofd_packets [12:19:47]CheckFolder done [12:19:47]ProducePacketName [12:19:47]name=ofd_packets/00201449 [12:19:47]NVStorageSaveData ofd_packets/00201449 [12:19:47]File name is /storage/ofd_packets/00201449 [12:19:47]Write 301 bytes [12:19:47]NVStorageSaveData done [12:19:47]OFDSenderStorePacket done [12:19:47]KKMCreateOFDPacket done [12:19:47]NVStorageSaveData kkm_last_timestamp [12:19:47]File name is /storage/kkm_last_timestamp [12:19:47]Write 4 bytes [12:19:47]NVStorageSaveData done [12:19:47]ExternCall_PrintAddStr [12:19:47]wPrintStart [12:19:47]Write to MH i2c: 01 00 00 B5 07 BC [12:19:47]Write i2c OK [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: 01 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: 01 07 00 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: 01 07 00 B5 07 00 00 00 00 00 FF 0F D1 [12:19:47]RasterBufferAndPrint [12:19:47]line Счет N : (1)449198 [12:19:47]line ИНН: 02508201610067 [12:19:47]line Контрольно-Кассовый Чек [12:19:47]line ПРОДАЖА [12:19:47]line ТРК (МРК, ГНК) : 31 [12:19:47]line Товар: 2710124130 [12:19:47]line Аи-92-К-2 [12:19:47]line 7.480 * 66.90 [12:19:47]line = 500.41 [12:19:47]line НДС 12% НСП 1% [12:19:47]line > о реализуемом товаре [12:19:47]line ОКРУГЛЕНИЕ: -0.41 [12:19:47]line ИТОГО: 500.00 [12:19:47]line Внесено: 500.00 [12:19:47]line СДАЧА: 0.00 [12:19:47]line НСП 1% : 4.43 [12:19:47]line НДС 12% : 53.14 [12:19:47]line Наличными: 500.00 [12:19:47]line Безнал.: 0.00 [12:19:47]line Место: АЗС № 171 "Партнер Нефть" [12:19:47]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:19:47]line СНО: Общий режим [12:19:47]line Чек 211 26.10.2024 12:19 [12:19:47]line Смена: 543 ФФД: 1.0 [12:19:47]line ЗНМ: 0300000109 [12:19:47]line РНМ: 0000000000091777 [12:19:47]line Версия ККМ: 001 [12:19:47]line ФМ: 0000000000871756 [12:19:47]line ФД: 201449 [12:19:47]line ФПД: 61436293555576 [12:19:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121946&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201449&fm=61436293555576&tin=02508201610067®Number=0000000000091777&sum=50000 [12:19:47]OFD Sender: Processing packet 201449 [packets to send 112, broken 111] [12:19:47]ProducePacketName [12:19:47]name=ofd_packets/00201449 [12:19:47]OFD Sender: To server: pG, [12:19:47]CommunicateWithHost lk.salyk.kg:30040 [12:19:47]ConnectInit lk.salyk.kg [12:19:47]written 0, free lines is 4095 [12:19:47]Connected sock=10 [12:19:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 99 7D 07 01 71 9F 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 32 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 D3 00 00 00 F4 03 04 00 62 DE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E9 12 03 00 35 04 06 00 37 E0 40 74 25 78 18 7E BA ED 6B 15 F8 51 [12:19:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 9A D1 47 00 77 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E9 12 03 00 F4 03 04 00 0B 8A 1C 67 B6 04 01 00 00 AF 9B 2F C5 6D 56 92 21 [12:19:47]CommunicateWithHost err = 0 [12:19:47]CheckOFDResponse [12:19:47]1017 (14) - 77093643461234 [12:19:47]1041 (16) - 0000000000871756 [12:19:47]1040 (4) - 201449 [12:19:47]1012 (4) - 26.10.2024 06:19 [12:19:47]1206 (1) - 0 [12:19:47]OFD Sender: Remove packet 201449 [12:19:47]ProducePacketName [12:19:47]name=ofd_packets/00201449 [12:19:47]NVStorageDeleteData [12:19:48]Write to MH i2c: 01 00 00 E0 07 E7 [12:19:48]Write i2c OK [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: 01 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: 01 07 00 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: 01 07 00 E0 07 00 00 00 00 00 9D 0C 97 [12:19:48]RasterBufferAndPrint [12:19:48]line [12:19:48]line [12:19:48]line [12:19:48]line [12:19:48]line [12:19:48]written 0, free lines is 3235 [12:19:48]MH_Cut [12:19:48]Write to MH i2c: D1 01 00 E7 07 01 C0 [12:19:48]Write i2c OK [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: D1 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: D1 01 00 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: D1 01 00 E7 07 00 BF [12:19:48]Write to MH i2c: 01 00 00 E8 07 EF [12:19:48]Write i2c OK [12:19:48]MH_I2C_Read... [12:19:48]OFD Sender: No OFD packet to send [12:19:48]*** Cut start [12:19:48]*** Purtial cut [12:19:48]*** Stage 1: CUTSNS_PIN = 1 [12:19:49]Read from MH i2c: 01 [12:19:49]MH_I2C_Read... [12:19:49]*** Stop cut motor [12:19:49]*** Cut end [12:19:49]Read from MH i2c: 01 07 00 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: 01 07 00 E8 07 00 00 00 00 00 FF 0F 04 [12:19:49]process_action close_receipt done [12:19:49]requested_data is exist [12:19:49]produce_requested_data [12:19:49]requested_item fm.sn is exist - process it [12:19:49]wFMCommunicate request_size=4 [12:19:49]MH_SAM_APDU [12:19:49]CAPDU: 80 11 00 00 [12:19:49]Write to MH i2c: E2 08 00 E9 07 80 11 00 00 00 00 00 00 6A [12:19:49]Write i2c OK [12:19:49]MH_I2C_Read... [12:19:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:49]Read from MH i2c: E2 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: E2 17 00 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: E2 17 00 E9 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BF [12:19:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:19:49]wFMCommunicate OK [12:19:49]requested_item fd.num is exist - process it [12:19:49]SAM_PROTO_GetFieldsCounters [12:19:49]wFMCommunicate request_size=4 [12:19:49]MH_SAM_APDU [12:19:49]CAPDU: 80 13 00 00 [12:19:49]Write to MH i2c: E2 08 00 EA 07 80 13 00 00 00 00 00 00 6D [12:19:49]Write i2c OK [12:19:49]MH_I2C_Read... [12:19:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:49]Read from MH i2c: E2 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: E2 62 00 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: E2 62 00 EA 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E9 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [12:19:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E9 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:49]wFMCommunicate OK [12:19:49]SAM_PROTO_GetFieldsCounters done [12:19:49]requested_item shift.num is exist - process it [12:19:49]requested_item shift.opened is exist - process it [12:19:49]req_shift_opened [12:19:49]FM_GetShiftState [12:19:49]SAM_PROTO_GetShiftState [12:19:49]wFMCommunicate request_size=4 [12:19:49]MH_SAM_APDU [12:19:49]CAPDU: 80 13 01 00 [12:19:49]Write to MH i2c: E2 08 00 EB 07 80 13 01 00 00 00 00 00 6F [12:19:49]Write i2c OK [12:19:49]MH_I2C_Read... [12:19:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:49]Read from MH i2c: E2 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: E2 0E 00 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: E2 0E 00 EB 07 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 7E [12:19:49]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:19:49]wFMCommunicate OK [12:19:49]SAM_PROTO_GetShiftState done [12:19:49]FM_GetShiftState done [12:19:49]req_shift_opened done [12:19:49]requested_item shift.open_date is exist - process it [12:19:49]req_shift_open_date [12:19:49]req_shift_open_date done [12:19:49]produce_requested_data done [12:19:49]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201449,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:19:49]process_action_free close_receipt [12:19:49]json_value_free [12:19:49]json_value_free done [12:19:49]process_json_proto returns [12:19:49]Send response to host [12:19:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201449,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:19:49]free response buf [12:19:49]execute_script done [12:19:49]execute_script returns [12:19:49]free content buf [12:19:49]Sock 8.Close socket [12:19:49]Sock 8.Thread stoped [12:19:53]accept exits with 9 [12:19:53]New connection [12:19:53]New thread 3066690916 created [12:19:53]Thread 3066834276 joined [12:19:53]Waiting for new connection... [12:19:53] Sock 9.Parse request [12:19:53]Sock 9.Check first char [12:19:53]Sock 9.First char is OK [12:19:53]request: POST /json_proto HTTP/1.0 [12:19:53]Method: POST [12:19:53]URL: /json_proto [12:19:53]Method is POST - this is cgi request [12:19:53]url: /json_proto [12:19:53]query_string will be loaded in cgi processing [12:19:53]execute_cgi json_proto POST (null) [12:19:53]execute_cgi path=json_proto method=POST [12:19:53]POST find Content-Length [12:19:53]Host: 172.17.63.195:8080 [12:19:53]Content-Length: 678 [12:19:53]Content-Type: application/json [12:19:53] [12:19:53]POST finish read [12:19:53]Found Content-Length = 678 [12:19:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:53]execute_script... [12:19:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:53]POST & json_proto [12:19:53]process_json_proto [12:19:53]json parsed OK: [12:19:53]protocol is kg_v1.0 [12:19:53]action value=close_receipt [12:19:53]process_action close_receipt [12:19:53]cmd_close_receipt [12:19:53]MH_GetDate [12:19:53]Write to MH i2c: F0 00 00 EC 07 E2 [12:19:53]Write i2c OK [12:19:53]MH_I2C_Read... [12:19:53]Read from MH i2c: F0 [12:19:53]MH_I2C_Read... [12:19:53]Read from MH i2c: F0 09 00 [12:19:53]MH_I2C_Read... [12:19:53]Read from MH i2c: F0 09 00 EC 07 00 69 DE 1C 67 68 46 19 67 E3 [12:19:53]GetLastDocTimeStamp 1729945186 [12:19:53]current date 1729945193 [12:19:53]FM_GetShiftState [12:19:53]SAM_PROTO_GetShiftState [12:19:53]wFMCommunicate request_size=4 [12:19:53]MH_SAM_APDU [12:19:53]CAPDU: 80 13 01 00 [12:19:53]Write to MH i2c: E2 08 00 ED 07 80 13 01 00 00 00 00 00 71 [12:19:53]Write i2c OK [12:19:53]MH_I2C_Read... [12:19:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:53]Read from MH i2c: E2 [12:19:53]MH_I2C_Read... [12:19:53]Read from MH i2c: E2 0E 00 [12:19:53]MH_I2C_Read... [12:19:53]Read from MH i2c: E2 0E 00 ED 07 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 80 [12:19:53]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:19:53]wFMCommunicate OK [12:19:53]SAM_PROTO_GetShiftState done [12:19:53]FM_GetShiftState done [12:19:53]opened in 1729900879 [12:19:53]opened+sec_in_day 1729987279 [12:19:53]quantity*price = 80061 [12:19:53]sum+1 = 80063 [12:19:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 212 26.10.2024 12:19 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201450 ФПД: 255952650692176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121953&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201450&fm=255952650692176&tin=02508201610067®Number=0000000000091777&sum=80000 [12:19:54]StoreToDocumentArchive [12:19:54]shift 543 fd 201450 [12:19:54]save to /storage/0543/doc_00201450 [12:19:54]save last doc name /storage/0543/doc_00201450 to /storage/kkm_last_doc_name [12:19:54]save OK [12:19:54]Clear old archive folders... [12:19:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:19:54]tlvbuf is 01F500B0 [12:19:54]SAM_PROTO_ClearQueue [12:19:54]wFMCommunicate request_size=4 [12:19:54]MH_SAM_APDU [12:19:54]CAPDU: 80 09 00 00 [12:19:54]Write to MH i2c: E2 08 00 FA 07 80 09 00 00 00 00 00 00 73 [12:19:54]Write i2c OK [12:19:54]MH_I2C_Read... [12:19:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:54]Read from MH i2c: E2 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: E2 03 00 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: E2 03 00 FA 07 00 90 00 75 [12:19:54]RAPDU: 90 00 [12:19:54]wFMCommunicate OK [12:19:54]SAM_PROTO_ClearQueue done [12:19:54]KKMCreateOFDPacket [12:19:54]OFDProtocolAddRootSTLVToBuf [12:19:54]FM_MakeSignedData [12:19:54]FM_MakeSignedData [12:19:54]SAM_PROTO_SignData [12:19:54]wFMCommunicate request_size=4 [12:19:54]MH_SAM_APDU [12:19:54]CAPDU: 80 0D 01 02 [12:19:54]Write to MH i2c: E2 08 00 FB 07 80 0D 01 02 00 00 00 00 7B [12:19:54]Write i2c OK [12:19:54]MH_I2C_Read... [12:19:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:54]Read from MH i2c: E2 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: E2 03 00 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: E2 03 00 FB 07 00 90 00 76 [12:19:54]RAPDU: 90 00 [12:19:54]wFMCommunicate OK [12:19:54]wFMCommunicate request_size=255 [12:19:54]MH_SAM_APDU [12:19: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 69 DE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EA 12 03 00 35 04 06 00 E8 [12:19:54]Write to MH i2c: E2 02 01 FC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 69 DE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EA 12 03 00 35 04 06 00 E8 00 00 23 [12:19:54]Write i2c OK [12:19:54]MH_I2C_Read... [12:19:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:54]Read from MH i2c: E2 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: E2 03 00 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: E2 03 00 FC 07 00 90 00 77 [12:19:54]RAPDU: 90 00 [12:19:54]wFMCommunicate OK [12:19:54]wFMCommunicate request_size=10 [12:19:54]MH_SAM_APDU [12:19:54]CAPDU: 80 0D 02 02 05 C9 9E D2 E6 50 [12:19:54]Write to MH i2c: E2 0D 00 FD 07 80 0D 02 02 05 00 C9 9E D2 E6 50 00 00 F7 [12:19:54]Write i2c OK [12:19:54]MH_I2C_Read... [12:19:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:54]Read from MH i2c: E2 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: E2 03 00 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: E2 03 00 FD 07 00 90 00 78 [12:19:54]RAPDU: 90 00 [12:19:54]wFMCommunicate OK [12:19:54]wFMCommunicate request_size=4 [12:19:54]MH_SAM_APDU [12:19:54]CAPDU: 80 0D 03 02 [12:19:54]Write to MH i2c: E2 08 00 FE 07 80 0D 03 02 00 00 00 00 80 [12:19:54]Write i2c OK [12:19:54]MH_I2C_Read... [12:19:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:54]Read from MH i2c: E2 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: E2 0B 00 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: E2 0B 00 FE 07 00 89 09 93 0C 57 02 16 A5 90 00 C6 [12:19:54]RAPDU: 89 09 93 0C 57 02 16 A5 90 00 [12:19:54]wFMCommunicate OK [12:19:54]SAM_PROTO_SignData done [12:19:54]FM_MakeSignedData done [12:19:54]CreateOFDProtocolMessage [12:19:54]wFMCommunicate request_size=4 [12:19:54]MH_SAM_APDU [12:19:54]CAPDU: 80 11 00 00 [12:19:54]Write to MH i2c: E2 08 00 FF 07 80 11 00 00 00 00 00 00 80 [12:19:54]Write i2c OK [12:19:54]MH_I2C_Read... [12:19:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:54]Read from MH i2c: E2 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: E2 17 00 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: E2 17 00 FF 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D5 [12:19:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:19:54]wFMCommunicate OK [12:19:54]CreateOFDProtocolMessage done [12:19:54]OFDSenderStorePacket 201450 [12:19:54]StoreOFDPacket docnum=201450 [12:19:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 52 6E 07 01 DF 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 69 DE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EA 12 03 00 35 04 06 00 E8 C9 9E D2 E6 50 89 09 93 0C 57 02 16 A5 [12:19:54]CheckFolder [12:19:54]dirname=/storage/ofd_packets [12:19:54]CheckFolder done [12:19:54]ProducePacketName [12:19:54]name=ofd_packets/00201450 [12:19:54]NVStorageSaveData ofd_packets/00201450 [12:19:54]File name is /storage/ofd_packets/00201450 [12:19:54]Write 301 bytes [12:19:54]NVStorageSaveData done [12:19:54]OFDSenderStorePacket done [12:19:54]KKMCreateOFDPacket done [12:19:54]NVStorageSaveData kkm_last_timestamp [12:19:54]File name is /storage/kkm_last_timestamp [12:19:54]Write 4 bytes [12:19:54]NVStorageSaveData done [12:19:54]ExternCall_PrintAddStr [12:19:54]wPrintStart [12:19:54]Write to MH i2c: 01 00 00 00 08 08 [12:19:54]Write i2c OK [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: 01 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: 01 07 00 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: 01 07 00 00 08 00 00 00 00 00 FF 0F 1D [12:19:54]RasterBufferAndPrint [12:19:54]line Счет N : (1)449199 [12:19:54]line ИНН: 02508201610067 [12:19:54]line Контрольно-Кассовый Чек [12:19:54]line ПРОДАЖА [12:19:54]line ТРК (МРК, ГНК) : 51 [12:19:54]line Товар: 2710124500 [12:19:54]line Аи-95-К-3 [12:19:54]line 10.790 * 74.20 [12:19:54]line = 800.62 [12:19:54]line НДС 12% НСП 1% [12:19:54]line > о реализуемом товаре [12:19:54]line ОКРУГЛЕНИЕ: -0.62 [12:19:54]line ИТОГО: 800.00 [12:19:54]line Внесено: 800.00 [12:19:54]line СДАЧА: 0.00 [12:19:54]line НСП 1% : 7.08 [12:19:54]line НДС 12% : 85.02 [12:19:54]line Наличными: 800.00 [12:19:54]line Безнал.: 0.00 [12:19:54]line Место: АЗС № 171 "Партнер Нефть" [12:19:54]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:19:54]line СНО: Общий режим [12:19:54]line Чек 212 26.10.2024 12:19 [12:19:54]line Смена: 543 ФФД: 1.0 [12:19:54]line ЗНМ: 0300000109 [12:19:54]line РНМ: 0000000000091777 [12:19:54]line Версия ККМ: 001 [12:19:54]line ФМ: 0000000000871756 [12:19:54]line ФД: 201450 [12:19:54]line ФПД: 255952650692176 [12:19:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121953&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201450&fm=255952650692176&tin=02508201610067®Number=0000000000091777&sum=80000 [12:19:54]OFD Sender: Processing packet 201450 [packets to send 112, broken 111] [12:19:54]ProducePacketName [12:19:54]name=ofd_packets/00201450 [12:19:54]OFD Sender: To server: pG, [12:19:54]CommunicateWithHost lk.salyk.kg:30040 [12:19:54]ConnectInit lk.salyk.kg [12:19:54]written 0, free lines is 4095 [12:19:54]Connected sock=10 [12:19:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 52 6E 07 01 DF 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 69 DE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EA 12 03 00 35 04 06 00 E8 C9 9E D2 E6 50 89 09 93 0C 57 02 16 A5 [12:19:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 1B 78 47 00 71 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EA 12 03 00 F4 03 04 00 12 8A 1C 67 B6 04 01 00 00 69 90 A0 D3 39 23 97 62 [12:19:55]CommunicateWithHost err = 0 [12:19:55]CheckOFDResponse [12:19:55]1017 (14) - 77093643461234 [12:19:55]1041 (16) - 0000000000871756 [12:19:55]1040 (4) - 201450 [12:19:55]1012 (4) - 26.10.2024 06:20 [12:19:55]1206 (1) - 0 [12:19:55]OFD Sender: Remove packet 201450 [12:19:55]ProducePacketName [12:19:55]name=ofd_packets/00201450 [12:19:55]NVStorageDeleteData [12:19:55]Write to MH i2c: 01 00 00 2B 08 33 [12:19:55]Write i2c OK [12:19:55]MH_I2C_Read... [12:19:55]Read from MH i2c: 01 [12:19:55]MH_I2C_Read... [12:19:55]Read from MH i2c: 01 07 00 [12:19:55]MH_I2C_Read... [12:19:55]Read from MH i2c: 01 07 00 2B 08 00 00 00 00 00 B5 0C FB [12:19:55]RasterBufferAndPrint [12:19:55]line [12:19:55]line [12:19:55]line [12:19:55]line [12:19:55]line [12:19:55]written 0, free lines is 3264 [12:19:55]MH_Cut [12:19:55]Write to MH i2c: D1 01 00 32 08 01 0C [12:19:55]Write i2c OK [12:19:55]MH_I2C_Read... [12:19:55]Read from MH i2c: D1 [12:19:55]MH_I2C_Read... [12:19:55]Read from MH i2c: D1 01 00 [12:19:55]MH_I2C_Read... [12:19:55]Read from MH i2c: D1 01 00 32 08 00 0B [12:19:55]Write to MH i2c: 01 00 00 33 08 3B [12:19:55]Write i2c OK [12:19:55]MH_I2C_Read... [12:19:55]OFD Sender: No OFD packet to send [12:19:56]*** Cut start [12:19:56]*** Purtial cut [12:19:56]*** Stage 1: CUTSNS_PIN = 1 [12:19:56]Read from MH i2c: 01 [12:19:56]MH_I2C_Read... [12:19:56]*** Stop cut motor [12:19:56]*** Cut end [12:19:56]Read from MH i2c: 01 07 00 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: 01 07 00 33 08 00 00 00 00 00 FF 0F 50 [12:19:56]process_action close_receipt done [12:19:56]requested_data is exist [12:19:56]produce_requested_data [12:19:56]requested_item fm.sn is exist - process it [12:19:56]wFMCommunicate request_size=4 [12:19:56]MH_SAM_APDU [12:19:56]CAPDU: 80 11 00 00 [12:19:56]Write to MH i2c: E2 08 00 34 08 80 11 00 00 00 00 00 00 B6 [12:19:56]Write i2c OK [12:19:56]MH_I2C_Read... [12:19:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:56]Read from MH i2c: E2 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: E2 17 00 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: E2 17 00 34 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0B [12:19:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:19:56]wFMCommunicate OK [12:19:56]requested_item fd.num is exist - process it [12:19:56]SAM_PROTO_GetFieldsCounters [12:19:56]wFMCommunicate request_size=4 [12:19:56]MH_SAM_APDU [12:19:56]CAPDU: 80 13 00 00 [12:19:56]Write to MH i2c: E2 08 00 35 08 80 13 00 00 00 00 00 00 B9 [12:19:56]Write i2c OK [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: E2 [12:19:56]MH_I2C_Read... [12:19:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:56]Read from MH i2c: E2 62 00 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: E2 62 00 35 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EA 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [12:19:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EA 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:56]wFMCommunicate OK [12:19:56]SAM_PROTO_GetFieldsCounters done [12:19:56]requested_item shift.num is exist - process it [12:19:56]requested_item shift.opened is exist - process it [12:19:56]req_shift_opened [12:19:56]FM_GetShiftState [12:19:56]SAM_PROTO_GetShiftState [12:19:56]wFMCommunicate request_size=4 [12:19:56]MH_SAM_APDU [12:19:56]CAPDU: 80 13 01 00 [12:19:56]Write to MH i2c: E2 08 00 36 08 80 13 01 00 00 00 00 00 BB [12:19:56]Write i2c OK [12:19:56]MH_I2C_Read... [12:19:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:56]Read from MH i2c: E2 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: E2 0E 00 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: E2 0E 00 36 08 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 CA [12:19:56]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:19:56]wFMCommunicate OK [12:19:56]SAM_PROTO_GetShiftState done [12:19:56]FM_GetShiftState done [12:19:56]req_shift_opened done [12:19:56]requested_item shift.open_date is exist - process it [12:19:56]req_shift_open_date [12:19:56]req_shift_open_date done [12:19:56]produce_requested_data done [12:19:56]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201450,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:19:56]process_action_free close_receipt [12:19:56]json_value_free [12:19:56]json_value_free done [12:19:56]process_json_proto returns [12:19:56]Send response to host [12:19:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201450,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:19:56]free response buf [12:19:56]execute_script done [12:19:56]execute_script returns [12:19:56]free content buf [12:19:56]Sock 9.Close socket [12:19:56]Sock 9.Thread stoped [12:20:00]OFD Sender: No OFD packet to send [12:20:05]OFD Sender: No OFD packet to send [12:20:10]OFD Sender: No OFD packet to send [12:20:15]OFD Sender: No OFD packet to send [12:20:20]OFD Sender: No OFD packet to send [12:20:25]OFD Sender: No OFD packet to send [12:20:30]OFD Sender: No OFD packet to send [12:20:35]OFD Sender: No OFD packet to send [12:20:40]OFD Sender: No OFD packet to send [12:20:45]OFD Sender: No OFD packet to send [12:20:50]OFD Sender: No OFD packet to send [12:20:55]OFD Sender: No OFD packet to send [12:21:00]OFD Sender: No OFD packet to send [12:21:05]OFD Sender: No OFD packet to send [12:21:10]OFD Sender: No OFD packet to send [12:21:15]OFD Sender: No OFD packet to send [12:21:20]OFD Sender: No OFD packet to send [12:21:25]OFD Sender: No OFD packet to send [12:21:30]OFD Sender: No OFD packet to send [12:21:35]OFD Sender: No OFD packet to send [12:21:40]OFD Sender: No OFD packet to send [12:21:45]OFD Sender: No OFD packet to send [12:21:50]OFD Sender: No OFD packet to send [12:21:55]OFD Sender: No OFD packet to send [12:22:00]OFD Sender: No OFD packet to send [12:22:05]OFD Sender: No OFD packet to send [12:22:10]OFD Sender: No OFD packet to send [12:22:15]OFD Sender: No OFD packet to send [12:22:20]OFD Sender: No OFD packet to send [12:22:25]OFD Sender: No OFD packet to send [12:22:30]OFD Sender: No OFD packet to send [12:22:35]OFD Sender: No OFD packet to send [12:22:40]OFD Sender: No OFD packet to send [12:22:45]OFD Sender: No OFD packet to send [12:22:50]OFD Sender: No OFD packet to send [12:22:55]OFD Sender: No OFD packet to send [12:23:00]OFD Sender: No OFD packet to send [12:23:05]OFD Sender: No OFD packet to send [12:23:10]OFD Sender: No OFD packet to send [12:23:15]OFD Sender: No OFD packet to send [12:23:16]accept exits with 8 [12:23:16]New connection [12:23:16]New thread 3066834276 created [12:23:16]Thread 3066690916 joined [12:23:16]Waiting for new connection... [12:23:16] Sock 8.Parse request [12:23:16]Sock 8.Check first char [12:23:16]Sock 8.First char is OK [12:23:16]request: POST /json_proto HTTP/1.0 [12:23:16]Method: POST [12:23:16]URL: /json_proto [12:23:16]Method is POST - this is cgi request [12:23:16]url: /json_proto [12:23:16]query_string will be loaded in cgi processing [12:23:16]execute_cgi json_proto POST (null) [12:23:16]execute_cgi path=json_proto method=POST [12:23:16]POST find Content-Length [12:23:16]Host: 172.17.63.195:8080 [12:23:16]Content-Length: 677 [12:23:16]Content-Type: application/json [12:23:16] [12:23:16]POST finish read [12:23:16]Found Content-Length = 677 [12:23:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:23:16]execute_script... [12:23: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)449200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:23:16]POST & json_proto [12:23:16]process_json_proto [12:23:16]json parsed OK: [12:23:16]protocol is kg_v1.0 [12:23:16]action value=close_receipt [12:23:16]process_action close_receipt [12:23:16]cmd_close_receipt [12:23:16]MH_GetDate [12:23:16]Write to MH i2c: F0 00 00 37 08 2E [12:23:16]Write i2c OK [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: F0 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: F0 09 00 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: F0 09 00 37 08 00 34 DF 1C 67 68 46 19 67 FB [12:23:16]GetLastDocTimeStamp 1729945193 [12:23:16]current date 1729945396 [12:23:16]FM_GetShiftState [12:23:16]SAM_PROTO_GetShiftState [12:23:16]wFMCommunicate request_size=4 [12:23:16]MH_SAM_APDU [12:23:16]CAPDU: 80 13 01 00 [12:23:16]Write to MH i2c: E2 08 00 38 08 80 13 01 00 00 00 00 00 BD [12:23:16]Write i2c OK [12:23:16]MH_I2C_Read... [12:23:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:16]Read from MH i2c: E2 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: E2 0E 00 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: E2 0E 00 38 08 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 CC [12:23:16]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:23:16]wFMCommunicate OK [12:23:16]SAM_PROTO_GetShiftState done [12:23:16]FM_GetShiftState done [12:23:16]opened in 1729900879 [12:23:16]opened+sec_in_day 1729987279 [12:23:16]quantity*price = 20003 [12:23:16]sum+1 = 20004 [12:23:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 213 26.10.2024 12:23 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201451 ФПД: 128731462154301 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T122316&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201451&fm=128731462154301&tin=02508201610067®Number=0000000000091777&sum=20000 [12:23:17]StoreToDocumentArchive [12:23:17]shift 543 fd 201451 [12:23:17]save to /storage/0543/doc_00201451 [12:23:17]save last doc name /storage/0543/doc_00201451 to /storage/kkm_last_doc_name [12:23:17]save OK [12:23:17]Clear old archive folders... [12:23:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:23:17]tlvbuf is 01F54870 [12:23:17]SAM_PROTO_ClearQueue [12:23:17]wFMCommunicate request_size=4 [12:23:17]MH_SAM_APDU [12:23:17]CAPDU: 80 09 00 00 [12:23:17]Write to MH i2c: E2 08 00 45 08 80 09 00 00 00 00 00 00 BF [12:23:17]Write i2c OK [12:23:17]MH_I2C_Read... [12:23:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:17]Read from MH i2c: E2 [12:23:17]MH_I2C_Read... [12:23:17]Read from MH i2c: E2 03 00 [12:23:17]MH_I2C_Read... [12:23:17]Read from MH i2c: E2 03 00 45 08 00 90 00 C1 [12:23:17]RAPDU: 90 00 [12:23:17]wFMCommunicate OK [12:23:17]SAM_PROTO_ClearQueue done [12:23:17]KKMCreateOFDPacket [12:23:17]OFDProtocolAddRootSTLVToBuf [12:23:17]FM_MakeSignedData [12:23:17]FM_MakeSignedData [12:23:17]SAM_PROTO_SignData [12:23:17]wFMCommunicate request_size=4 [12:23:17]MH_SAM_APDU [12:23:17]CAPDU: 80 0D 01 02 [12:23:17]Write to MH i2c: E2 08 00 46 08 80 0D 01 02 00 00 00 00 C7 [12:23:17]Write i2c OK [12:23:17]MH_I2C_Read... [12:23:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:17]Read from MH i2c: E2 [12:23:17]MH_I2C_Read... [12:23:17]Read from MH i2c: E2 03 00 [12:23:17]MH_I2C_Read... [12:23:17]Read from MH i2c: E2 03 00 46 08 00 90 00 C2 [12:23:17]RAPDU: 90 00 [12:23:17]wFMCommunicate OK [12:23:17]wFMCommunicate request_size=255 [12:23:17]MH_SAM_APDU [12:23: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 32 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 D5 00 00 00 F4 03 04 00 34 DF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EB 12 03 00 35 04 06 00 75 [12:23:17]Write to MH i2c: E2 02 01 47 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 32 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 D5 00 00 00 F4 03 04 00 34 DF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EB 12 03 00 35 04 06 00 75 00 00 1E [12:23:17]Write i2c OK [12:23:17]MH_I2C_Read... [12:23:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:17]Read from MH i2c: E2 [12:23:17]MH_I2C_Read... [12:23:17]Read from MH i2c: E2 03 00 [12:23:17]MH_I2C_Read... [12:23:17]Read from MH i2c: E2 03 00 47 08 00 90 00 C3 [12:23:17]RAPDU: 90 00 [12:23:17]wFMCommunicate OK [12:23:17]wFMCommunicate request_size=10 [12:23:17]MH_SAM_APDU [12:23:17]CAPDU: 80 0D 02 02 05 14 A1 12 B8 3D [12:23:17]Write to MH i2c: E2 0D 00 48 08 80 0D 02 02 05 00 14 A1 12 B8 3D 00 00 90 [12:23:17]Write i2c OK [12:23:17]MH_I2C_Read... [12:23:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:17]Read from MH i2c: E2 [12:23:17]MH_I2C_Read... [12:23:17]Read from MH i2c: E2 03 00 [12:23:17]MH_I2C_Read... [12:23:17]Read from MH i2c: E2 03 00 48 08 00 90 00 C4 [12:23:17]RAPDU: 90 00 [12:23:17]wFMCommunicate OK [12:23:17]wFMCommunicate request_size=4 [12:23:17]MH_SAM_APDU [12:23:17]CAPDU: 80 0D 03 02 [12:23:17]Write to MH i2c: E2 08 00 49 08 80 0D 03 02 00 00 00 00 CC [12:23:17]Write i2c OK [12:23:17]MH_I2C_Read... [12:23:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:17]Read from MH i2c: E2 [12:23:17]MH_I2C_Read... [12:23:17]Read from MH i2c: E2 0B 00 [12:23:17]MH_I2C_Read... [12:23:17]Read from MH i2c: E2 0B 00 49 08 00 8E 4B 4F B5 D3 C2 1B 2D 90 00 87 [12:23:17]RAPDU: 8E 4B 4F B5 D3 C2 1B 2D 90 00 [12:23:17]wFMCommunicate OK [12:23:17]SAM_PROTO_SignData done [12:23:17]FM_MakeSignedData done [12:23:17]CreateOFDProtocolMessage [12:23:17]wFMCommunicate request_size=4 [12:23:17]MH_SAM_APDU [12:23:17]CAPDU: 80 11 00 00 [12:23:17]Write to MH i2c: E2 08 00 4A 08 80 11 00 00 00 00 00 00 CC [12:23:17]Write i2c OK [12:23:17]MH_I2C_Read... [12:23:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:17]Read from MH i2c: E2 [12:23:17]MH_I2C_Read... [12:23:17]Read from MH i2c: E2 17 00 [12:23:17]MH_I2C_Read... [12:23:17]Read from MH i2c: E2 17 00 4A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 21 [12:23:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:23:17]wFMCommunicate OK [12:23:17]CreateOFDProtocolMessage done [12:23:17]OFDSenderStorePacket 201451 [12:23:17]StoreOFDPacket docnum=201451 [12:23:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 BC FE 07 01 49 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 32 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 D5 00 00 00 F4 03 04 00 34 DF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EB 12 03 00 35 04 06 00 75 14 A1 12 B8 3D 8E 4B 4F B5 D3 C2 1B 2D [12:23:17]CheckFolder [12:23:17]dirname=/storage/ofd_packets [12:23:17]CheckFolder done [12:23:17]ProducePacketName [12:23:17]name=ofd_packets/00201451 [12:23:17]NVStorageSaveData ofd_packets/00201451 [12:23:17]File name is /storage/ofd_packets/00201451 [12:23:17]Write 301 bytes [12:23:17]NVStorageSaveData done [12:23:17]OFDSenderStorePacket done [12:23:17]KKMCreateOFDPacket done [12:23:17]NVStorageSaveData kkm_last_timestamp [12:23:17]File name is /storage/kkm_last_timestamp [12:23:17]Write 4 bytes [12:23:17]NVStorageSaveData done [12:23:17]ExternCall_PrintAddStr [12:23:17]wPrintStart [12:23:17]Write to MH i2c: 01 00 00 4B 08 53 [12:23:17]Write i2c OK [12:23:17]MH_I2C_Read... [12:23:17]Read from MH i2c: 01 [12:23:17]MH_I2C_Read... [12:23:17]Read from MH i2c: 01 07 00 [12:23:17]MH_I2C_Read... [12:23:17]Read from MH i2c: 01 07 00 4B 08 00 00 00 00 00 FF 0F 68 [12:23:17]RasterBufferAndPrint [12:23:17]line Счет N : (1)449200 [12:23:17]line ИНН: 02508201610067 [12:23:17]line Контрольно-Кассовый Чек [12:23:17]line ПРОДАЖА [12:23:17]line ТРК (МРК, ГНК) : 52 [12:23:17]line Товар: 2710124130 [12:23:17]line Аи-92-К-2 [12:23:17]line 2.990 * 66.90 [12:23:17]line = 200.03 [12:23:17]line НДС 12% НСП 1% [12:23:17]line > о реализуемом товаре [12:23:17]line ОКРУГЛЕНИЕ: -0.03 [12:23:17]line ИТОГО: 200.00 [12:23:17]line Внесено: 200.00 [12:23:17]line СДАЧА: 0.00 [12:23:17]line НСП 1% : 1.77 [12:23:17]line НДС 12% : 21.24 [12:23:17]line Наличными: 200.00 [12:23:17]line Безнал.: 0.00 [12:23:17]line Место: АЗС № 171 "Партнер Нефть" [12:23:17]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:23:17]line СНО: Общий режим [12:23:17]line Чек 213 26.10.2024 12:23 [12:23:17]line Смена: 543 ФФД: 1.0 [12:23:17]line ЗНМ: 0300000109 [12:23:17]line РНМ: 0000000000091777 [12:23:17]line Версия ККМ: 001 [12:23:17]line ФМ: 0000000000871756 [12:23:17]line ФД: 201451 [12:23:17]line ФПД: 128731462154301 [12:23:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T122316&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201451&fm=128731462154301&tin=02508201610067®Number=0000000000091777&sum=20000 [12:23:18]OFD Sender: Processing packet 201451 [packets to send 112, broken 111] [12:23:18]ProducePacketName [12:23:18]name=ofd_packets/00201451 [12:23:18]OFD Sender: To server: pG, [12:23:18]CommunicateWithHost lk.salyk.kg:30040 [12:23:18]ConnectInit lk.salyk.kg [12:23:18]written 0, free lines is 4095 [12:23:18]Connected sock=10 [12:23:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 BC FE 07 01 49 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 32 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 D5 00 00 00 F4 03 04 00 34 DF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EB 12 03 00 35 04 06 00 75 14 A1 12 B8 3D 8E 4B 4F B5 D3 C2 1B 2D [12:23:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C1 7A 47 00 83 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EB 12 03 00 F4 03 04 00 DD 8A 1C 67 B6 04 01 00 00 DA 05 4E E5 83 B4 7E 9D [12:23:18]CommunicateWithHost err = 0 [12:23:18]CheckOFDResponse [12:23:18]1017 (14) - 77093643461234 [12:23:18]1041 (16) - 0000000000871756 [12:23:18]1040 (4) - 201451 [12:23:18]1012 (4) - 26.10.2024 06:23 [12:23:18]1206 (1) - 0 [12:23:18]OFD Sender: Remove packet 201451 [12:23:18]ProducePacketName [12:23:18]name=ofd_packets/00201451 [12:23:18]NVStorageDeleteData [12:23:18]Write to MH i2c: 01 00 00 76 08 7E [12:23:18]Write i2c OK [12:23:18]MH_I2C_Read... [12:23:18]Read from MH i2c: 01 [12:23:18]MH_I2C_Read... [12:23:18]Read from MH i2c: 01 07 00 [12:23:18]MH_I2C_Read... [12:23:18]Read from MH i2c: 01 07 00 76 08 00 00 00 00 00 9D 0C 2E [12:23:18]RasterBufferAndPrint [12:23:18]line [12:23:18]line [12:23:18]line [12:23:18]line [12:23:18]line [12:23:18]written 0, free lines is 3235 [12:23:18]MH_Cut [12:23:18]Write to MH i2c: D1 01 00 7D 08 01 57 [12:23:18]Write i2c OK [12:23:18]MH_I2C_Read... [12:23:18]Read from MH i2c: D1 [12:23:18]MH_I2C_Read... [12:23:18]Read from MH i2c: D1 01 00 [12:23:18]MH_I2C_Read... [12:23:18]Read from MH i2c: D1 01 00 7D 08 00 56 [12:23:18]Write to MH i2c: 01 00 00 7E 08 86 [12:23:18]Write i2c OK [12:23:18]MH_I2C_Read... [12:23:19]OFD Sender: No OFD packet to send [12:23:19]*** Cut start [12:23:19]*** Purtial cut [12:23:19]*** Stage 1: CUTSNS_PIN = 1 [12:23:19]Read from MH i2c: 01 [12:23:19]MH_I2C_Read... [12:23:19]*** Stop cut motor [12:23:19]*** Cut end [12:23:19]Read from MH i2c: 01 07 00 [12:23:19]MH_I2C_Read... [12:23:19]Read from MH i2c: 01 07 00 7E 08 00 00 00 00 00 FF 0F 9B [12:23:19]process_action close_receipt done [12:23:19]requested_data is exist [12:23:19]produce_requested_data [12:23:19]requested_item fm.sn is exist - process it [12:23:19]wFMCommunicate request_size=4 [12:23:19]MH_SAM_APDU [12:23:19]CAPDU: 80 11 00 00 [12:23:19]Write to MH i2c: E2 08 00 7F 08 80 11 00 00 00 00 00 00 01 [12:23:19]Write i2c OK [12:23:19]MH_I2C_Read... [12:23:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:19]Read from MH i2c: E2 [12:23:19]MH_I2C_Read... [12:23:19]Read from MH i2c: E2 17 00 [12:23:19]MH_I2C_Read... [12:23:19]Read from MH i2c: E2 17 00 7F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 56 [12:23:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:23:19]wFMCommunicate OK [12:23:19]requested_item fd.num is exist - process it [12:23:19]SAM_PROTO_GetFieldsCounters [12:23:19]wFMCommunicate request_size=4 [12:23:19]MH_SAM_APDU [12:23:19]CAPDU: 80 13 00 00 [12:23:19]Write to MH i2c: E2 08 00 80 08 80 13 00 00 00 00 00 00 04 [12:23:19]Write i2c OK [12:23:19]MH_I2C_Read... [12:23:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:19]Read from MH i2c: E2 [12:23:19]MH_I2C_Read... [12:23:19]Read from MH i2c: E2 62 00 [12:23:19]MH_I2C_Read... [12:23:19]Read from MH i2c: E2 62 00 80 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EB 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [12:23:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EB 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:23:19]wFMCommunicate OK [12:23:19]SAM_PROTO_GetFieldsCounters done [12:23:19]requested_item shift.num is exist - process it [12:23:19]requested_item shift.opened is exist - process it [12:23:19]req_shift_opened [12:23:19]FM_GetShiftState [12:23:19]SAM_PROTO_GetShiftState [12:23:19]wFMCommunicate request_size=4 [12:23:19]MH_SAM_APDU [12:23:19]CAPDU: 80 13 01 00 [12:23:19]Write to MH i2c: E2 08 00 81 08 80 13 01 00 00 00 00 00 06 [12:23:19]Write i2c OK [12:23:19]MH_I2C_Read... [12:23:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:20]Read from MH i2c: E2 [12:23:20]MH_I2C_Read... [12:23:20]Read from MH i2c: E2 0E 00 [12:23:20]MH_I2C_Read... [12:23:20]Read from MH i2c: E2 0E 00 81 08 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 15 [12:23:20]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:23:20]wFMCommunicate OK [12:23:20]SAM_PROTO_GetShiftState done [12:23:20]FM_GetShiftState done [12:23:20]req_shift_opened done [12:23:20]requested_item shift.open_date is exist - process it [12:23:20]req_shift_open_date [12:23:20]req_shift_open_date done [12:23:20]produce_requested_data done [12:23:20]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201451,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:23:20]process_action_free close_receipt [12:23:20]json_value_free [12:23:20]json_value_free done [12:23:20]process_json_proto returns [12:23:20]Send response to host [12:23:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201451,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:23:20]free response buf [12:23:20]execute_script done [12:23:20]execute_script returns [12:23:20]free content buf [12:23:20]Sock 8.Close socket [12:23:20]Sock 8.Thread stoped [12:23:24]OFD Sender: No OFD packet to send [12:23:29]OFD Sender: No OFD packet to send [12:23:34]OFD Sender: No OFD packet to send [12:23:39]OFD Sender: No OFD packet to send [12:23:44]OFD Sender: No OFD packet to send [12:23:49]OFD Sender: No OFD packet to send [12:23:54]OFD Sender: No OFD packet to send [12:23:59]OFD Sender: No OFD packet to send [12:23:59]accept exits with 9 [12:23:59]New connection [12:23:59]New thread 3066690916 created [12:23:59]Thread 3066834276 joined [12:23:59]Waiting for new connection... [12:23:59] Sock 9.Parse request [12:23:59]Sock 9.Check first char [12:23:59]Sock 9.First char is OK [12:23:59]request: POST /json_proto HTTP/1.0 [12:23:59]Method: POST [12:23:59]URL: /json_proto [12:23:59]Method is POST - this is cgi request [12:23:59]url: /json_proto [12:23:59]query_string will be loaded in cgi processing [12:23:59]execute_cgi json_proto POST (null) [12:23:59]execute_cgi path=json_proto method=POST [12:23:59]POST find Content-Length [12:23:59]Host: 172.17.63.195:8080 [12:23:59]Content-Length: 679 [12:23:59]Content-Type: application/json [12:23:59] [12:23:59]POST finish read [12:23:59]Found Content-Length = 679 [12:23:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [12:23:59]execute_script... [12:23:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [12:23:59]POST & json_proto [12:23:59]process_json_proto [12:23:59]json parsed OK: [12:23:59]protocol is kg_v1.0 [12:23:59]action value=close_receipt [12:23:59]process_action close_receipt [12:23:59]cmd_close_receipt [12:23:59]MH_GetDate [12:23:59]Write to MH i2c: F0 00 00 82 08 79 [12:23:59]Write i2c OK [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: F0 [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: F0 09 00 [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: F0 09 00 82 08 00 5F DF 1C 67 68 46 19 67 71 [12:23:59]GetLastDocTimeStamp 1729945396 [12:23:59]current date 1729945439 [12:23:59]FM_GetShiftState [12:23:59]SAM_PROTO_GetShiftState [12:23:59]wFMCommunicate request_size=4 [12:23:59]MH_SAM_APDU [12:23:59]CAPDU: 80 13 01 00 [12:23:59]Write to MH i2c: E2 08 00 83 08 80 13 01 00 00 00 00 00 08 [12:23:59]Write i2c OK [12:23:59]MH_I2C_Read... [12:23:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:59]Read from MH i2c: E2 [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: E2 0E 00 [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: E2 0E 00 83 08 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 17 [12:23:59]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:23:59]wFMCommunicate OK [12:23:59]SAM_PROTO_GetShiftState done [12:23:59]FM_GetShiftState done [12:23:59]opened in 1729900879 [12:23:59]opened+sec_in_day 1729987279 [12:23:59]quantity*price = 150037 [12:23:59]sum+1 = 150039 [12:23:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 214 26.10.2024 12:23 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201452 ФПД: 35488682375271 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T122359&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201452&fm=35488682375271&tin=02508201610067®Number=0000000000091777&sum=150000 [12:24:00]StoreToDocumentArchive [12:24:00]shift 543 fd 201452 [12:24:00]save to /storage/0543/doc_00201452 [12:24:00]save last doc name /storage/0543/doc_00201452 to /storage/kkm_last_doc_name [12:24:00]save OK [12:24:00]Clear old archive folders... [12:24:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:24:00]tlvbuf is 01F703A0 [12:24:00]SAM_PROTO_ClearQueue [12:24:00]wFMCommunicate request_size=4 [12:24:00]MH_SAM_APDU [12:24:00]CAPDU: 80 09 00 00 [12:24:00]Write to MH i2c: E2 08 00 90 08 80 09 00 00 00 00 00 00 0A [12:24:00]Write i2c OK [12:24:00]MH_I2C_Read... [12:24:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:00]Read from MH i2c: E2 [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: E2 03 00 [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: E2 03 00 90 08 00 90 00 0C [12:24:00]RAPDU: 90 00 [12:24:00]wFMCommunicate OK [12:24:00]SAM_PROTO_ClearQueue done [12:24:00]KKMCreateOFDPacket [12:24:00]OFDProtocolAddRootSTLVToBuf [12:24:00]FM_MakeSignedData [12:24:00]FM_MakeSignedData [12:24:00]SAM_PROTO_SignData [12:24:00]wFMCommunicate request_size=4 [12:24:00]MH_SAM_APDU [12:24:00]CAPDU: 80 0D 01 02 [12:24:00]Write to MH i2c: E2 08 00 91 08 80 0D 01 02 00 00 00 00 12 [12:24:00]Write i2c OK [12:24:00]MH_I2C_Read... [12:24:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:00]Read from MH i2c: E2 [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: E2 03 00 [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: E2 03 00 91 08 00 90 00 0D [12:24:00]RAPDU: 90 00 [12:24:00]wFMCommunicate OK [12:24:00]wFMCommunicate request_size=255 [12:24:00]MH_SAM_APDU [12:24:00]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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 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 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 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 D6 00 00 00 F4 03 04 00 5F DF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EC 12 03 00 35 04 06 00 20 46 DA 4E [12:24:00]Write to MH i2c: E2 02 01 92 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 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 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 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 D6 00 00 00 F4 03 04 00 5F DF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EC 12 03 00 35 04 06 00 20 46 DA 4E 00 00 5A [12:24:00]Write i2c OK [12:24:00]MH_I2C_Read... [12:24:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:00]Read from MH i2c: E2 [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: E2 03 00 [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: E2 03 00 92 08 00 90 00 0E [12:24:00]RAPDU: 90 00 [12:24:00]wFMCommunicate OK [12:24:00]wFMCommunicate request_size=7 [12:24:00]MH_SAM_APDU [12:24:00]CAPDU: 80 0D 02 02 02 78 67 [12:24:00]Write to MH i2c: E2 0A 00 93 08 80 0D 02 02 02 00 78 67 00 00 F8 [12:24:00]Write i2c OK [12:24:00]MH_I2C_Read... [12:24:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:00]Read from MH i2c: E2 [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: E2 03 00 [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: E2 03 00 93 08 00 90 00 0F [12:24:00]RAPDU: 90 00 [12:24:00]wFMCommunicate OK [12:24:00]wFMCommunicate request_size=4 [12:24:00]MH_SAM_APDU [12:24:00]CAPDU: 80 0D 03 02 [12:24:00]Write to MH i2c: E2 08 00 94 08 80 0D 03 02 00 00 00 00 17 [12:24:00]Write i2c OK [12:24:00]MH_I2C_Read... [12:24:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:00]Read from MH i2c: E2 [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: E2 0B 00 [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: E2 0B 00 94 08 00 7E 0D 67 08 4F 5F 66 3D 90 00 63 [12:24:00]RAPDU: 7E 0D 67 08 4F 5F 66 3D 90 00 [12:24:00]wFMCommunicate OK [12:24:00]SAM_PROTO_SignData done [12:24:00]FM_MakeSignedData done [12:24:00]CreateOFDProtocolMessage [12:24:00]wFMCommunicate request_size=4 [12:24:00]MH_SAM_APDU [12:24:00]CAPDU: 80 11 00 00 [12:24:00]Write to MH i2c: E2 08 00 95 08 80 11 00 00 00 00 00 00 17 [12:24:00]Write i2c OK [12:24:00]MH_I2C_Read... [12:24:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:00]Read from MH i2c: E2 [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: E2 17 00 [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: E2 17 00 95 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6C [12:24:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:24:00]wFMCommunicate OK [12:24:00]CreateOFDProtocolMessage done [12:24:00]OFDSenderStorePacket 201452 [12:24:00]StoreOFDPacket docnum=201452 [12:24:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 93 BB 04 01 45 44 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 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 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 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 D6 00 00 00 F4 03 04 00 5F DF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EC 12 03 00 35 04 06 00 20 46 DA 4E 78 67 7E 0D 67 08 4F 5F 66 3D [12:24:00]CheckFolder [12:24:00]dirname=/storage/ofd_packets [12:24:00]CheckFolder done [12:24:00]ProducePacketName [12:24:00]name=ofd_packets/00201452 [12:24:00]NVStorageSaveData ofd_packets/00201452 [12:24:00]File name is /storage/ofd_packets/00201452 [12:24:00]Write 298 bytes [12:24:00]NVStorageSaveData done [12:24:00]OFDSenderStorePacket done [12:24:00]KKMCreateOFDPacket done [12:24:00]NVStorageSaveData kkm_last_timestamp [12:24:00]File name is /storage/kkm_last_timestamp [12:24:00]Write 4 bytes [12:24:00]NVStorageSaveData done [12:24:00]ExternCall_PrintAddStr [12:24:00]wPrintStart [12:24:00]Write to MH i2c: 01 00 00 96 08 9E [12:24:00]Write i2c OK [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: 01 [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: 01 07 00 [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: 01 07 00 96 08 00 00 00 00 00 FF 0F B3 [12:24:00]RasterBufferAndPrint [12:24:00]line Счет N : (1)449201 [12:24:00]line ИНН: 02508201610067 [12:24:00]line Контрольно-Кассовый Чек [12:24:00]line ПРОДАЖА [12:24:00]line ТРК (МРК, ГНК) : 21 [12:24:00]line Товар: 2710194210 [12:24:00]line ДТ-К-2 [12:24:00]line 19.690 * 76.20 [12:24:00]line = 1500.38 [12:24:00]line НДС 12% НСП 1% [12:24:00]line > о реализуемом товаре [12:24:00]line ОКРУГЛЕНИЕ: -0.38 [12:24:00]line ИТОГО: 1500.00 [12:24:00]line Внесено: 1500.00 [12:24:00]line СДАЧА: 0.00 [12:24:00]line НСП 1% : 13.28 [12:24:00]line НДС 12% : 159.33 [12:24:00]line Наличными: 1500.00 [12:24:00]line Безнал.: 0.00 [12:24:00]line Место: АЗС № 171 "Партнер Нефть" [12:24:00]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:24:00]line СНО: Общий режим [12:24:00]line Чек 214 26.10.2024 12:23 [12:24:00]line Смена: 543 ФФД: 1.0 [12:24:00]line ЗНМ: 0300000109 [12:24:00]line РНМ: 0000000000091777 [12:24:00]line Версия ККМ: 001 [12:24:00]line ФМ: 0000000000871756 [12:24:00]line ФД: 201452 [12:24:00]line ФПД: 35488682375271 [12:24:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T122359&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201452&fm=35488682375271&tin=02508201610067®Number=0000000000091777&sum=150000 [12:24:01]written 0, free lines is 4095 [12:24:01]OFD Sender: Processing packet 201452 [packets to send 112, broken 111] [12:24:01]ProducePacketName [12:24:01]name=ofd_packets/00201452 [12:24:01]OFD Sender: To server: pG, [12:24:01]CommunicateWithHost lk.salyk.kg:30040 [12:24:01]ConnectInit lk.salyk.kg [12:24:01]Connected sock=10 [12:24:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 93 BB 04 01 45 44 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 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 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 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 D6 00 00 00 F4 03 04 00 5F DF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EC 12 03 00 35 04 06 00 20 46 DA 4E 78 67 7E 0D 67 08 4F 5F 66 3D [12:24:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 41 60 47 00 3B 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EC 12 03 00 F4 03 04 00 08 8B 1C 67 B6 04 01 00 00 13 2B 11 5A 68 19 6C 3E [12:24:01]CommunicateWithHost err = 0 [12:24:01]CheckOFDResponse [12:24:01]1017 (14) - 77093643461234 [12:24:01]1041 (16) - 0000000000871756 [12:24:01]1040 (4) - 201452 [12:24:01]1012 (4) - 26.10.2024 06:24 [12:24:01]1206 (1) - 0 [12:24:01]OFD Sender: Remove packet 201452 [12:24:01]ProducePacketName [12:24:01]name=ofd_packets/00201452 [12:24:01]NVStorageDeleteData [12:24:01]Write to MH i2c: 01 00 00 C1 08 C9 [12:24:01]Write i2c OK [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: 01 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: 01 07 00 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: 01 07 00 C1 08 00 00 00 00 00 A0 0C 7C [12:24:01]RasterBufferAndPrint [12:24:01]line [12:24:01]line [12:24:01]line [12:24:01]line [12:24:01]line [12:24:01]written 0, free lines is 3238 [12:24:01]MH_Cut [12:24:01]Write to MH i2c: D1 01 00 C8 08 01 A2 [12:24:01]Write i2c OK [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: D1 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: D1 01 00 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: D1 01 00 C8 08 00 A1 [12:24:01]Write to MH i2c: 01 00 00 C9 08 D1 [12:24:01]Write i2c OK [12:24:01]MH_I2C_Read... [12:24:02]OFD Sender: No OFD packet to send [12:24:02]*** Cut start [12:24:02]*** Purtial cut [12:24:02]*** Stage 1: CUTSNS_PIN = 1 [12:24:02]Read from MH i2c: 01 [12:24:02]MH_I2C_Read... [12:24:02]*** Stop cut motor [12:24:02]*** Cut end [12:24:02]Read from MH i2c: 01 07 00 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: 01 07 00 C9 08 00 00 00 00 00 FF 0F E6 [12:24:02]process_action close_receipt done [12:24:02]requested_data is exist [12:24:02]produce_requested_data [12:24:02]requested_item fm.sn is exist - process it [12:24:02]wFMCommunicate request_size=4 [12:24:02]MH_SAM_APDU [12:24:02]CAPDU: 80 11 00 00 [12:24:02]Write to MH i2c: E2 08 00 CA 08 80 11 00 00 00 00 00 00 4C [12:24:02]Write i2c OK [12:24:02]MH_I2C_Read... [12:24:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:02]Read from MH i2c: E2 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 17 00 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 17 00 CA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A1 [12:24:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:24:02]wFMCommunicate OK [12:24:02]requested_item fd.num is exist - process it [12:24:02]SAM_PROTO_GetFieldsCounters [12:24:02]wFMCommunicate request_size=4 [12:24:02]MH_SAM_APDU [12:24:02]CAPDU: 80 13 00 00 [12:24:02]Write to MH i2c: E2 08 00 CB 08 80 13 00 00 00 00 00 00 4F [12:24:02]Write i2c OK [12:24:02]MH_I2C_Read... [12:24:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:03]Read from MH i2c: E2 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 62 00 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 62 00 CB 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EC 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [12:24:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EC 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:03]wFMCommunicate OK [12:24:03]SAM_PROTO_GetFieldsCounters done [12:24:03]requested_item shift.num is exist - process it [12:24:03]requested_item shift.opened is exist - process it [12:24:03]req_shift_opened [12:24:03]FM_GetShiftState [12:24:03]SAM_PROTO_GetShiftState [12:24:03]wFMCommunicate request_size=4 [12:24:03]MH_SAM_APDU [12:24:03]CAPDU: 80 13 01 00 [12:24:03]Write to MH i2c: E2 08 00 CC 08 80 13 01 00 00 00 00 00 51 [12:24:03]Write i2c OK [12:24:03]MH_I2C_Read... [12:24:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:03]Read from MH i2c: E2 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 0E 00 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 0E 00 CC 08 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 60 [12:24:03]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:24:03]wFMCommunicate OK [12:24:03]SAM_PROTO_GetShiftState done [12:24:03]FM_GetShiftState done [12:24:03]req_shift_opened done [12:24:03]requested_item shift.open_date is exist - process it [12:24:03]req_shift_open_date [12:24:03]req_shift_open_date done [12:24:03]produce_requested_data done [12:24:03]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201452,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:24:03]process_action_free close_receipt [12:24:03]json_value_free [12:24:03]json_value_free done [12:24:03]process_json_proto returns [12:24:03]Send response to host [12:24:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201452,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:24:03]free response buf [12:24:03]execute_script done [12:24:03]execute_script returns [12:24:03]free content buf [12:24:03]Sock 9.Close socket [12:24:03]Sock 9.Thread stoped [12:24:07]OFD Sender: No OFD packet to send [12:24:12]OFD Sender: No OFD packet to send [12:24:17]OFD Sender: No OFD packet to send [12:24:22]OFD Sender: No OFD packet to send [12:24:27]OFD Sender: No OFD packet to send [12:24:32]OFD Sender: No OFD packet to send [12:24:37]OFD Sender: No OFD packet to send [12:24:42]OFD Sender: No OFD packet to send [12:24:47]OFD Sender: No OFD packet to send [12:24:52]OFD Sender: No OFD packet to send [12:24:57]OFD Sender: No OFD packet to send [12:25:02]OFD Sender: No OFD packet to send [12:25:07]OFD Sender: No OFD packet to send [12:25:12]OFD Sender: No OFD packet to send [12:25:17]OFD Sender: No OFD packet to send [12:25:22]OFD Sender: No OFD packet to send [12:25:27]OFD Sender: No OFD packet to send [12:25:32]OFD Sender: No OFD packet to send [12:25:37]OFD Sender: No OFD packet to send [12:25:42]OFD Sender: No OFD packet to send [12:25:43]accept exits with 8 [12:25:43]New connection [12:25:43]New thread 3066834276 created [12:25:43]Thread 3066690916 joined [12:25:43]Waiting for new connection... [12:25:43] Sock 8.Parse request [12:25:43]Sock 8.Check first char [12:25:43]Sock 8.First char is OK [12:25:43]request: POST /json_proto HTTP/1.0 [12:25:43]Method: POST [12:25:43]URL: /json_proto [12:25:43]Method is POST - this is cgi request [12:25:43]url: /json_proto [12:25:43]query_string will be loaded in cgi processing [12:25:43]execute_cgi json_proto POST (null) [12:25:43]execute_cgi path=json_proto method=POST [12:25:43]POST find Content-Length [12:25:43]Host: 172.17.63.195:8080 [12:25:43]Content-Length: 677 [12:25:43]Content-Type: application/json [12:25:43] [12:25:43]POST finish read [12:25:43]Found Content-Length = 677 [12:25:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:25:43]execute_script... [12:25: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)449202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:25:43]POST & json_proto [12:25:43]process_json_proto [12:25:43]json parsed OK: [12:25:43]protocol is kg_v1.0 [12:25:43]action value=close_receipt [12:25:43]process_action close_receipt [12:25:43]cmd_close_receipt [12:25:43]MH_GetDate [12:25:43]Write to MH i2c: F0 00 00 CD 08 C4 [12:25:43]Write i2c OK [12:25:43]MH_I2C_Read... [12:25:43]Read from MH i2c: F0 [12:25:43]MH_I2C_Read... [12:25:43]Read from MH i2c: F0 09 00 [12:25:43]MH_I2C_Read... [12:25:43]Read from MH i2c: F0 09 00 CD 08 00 C8 DF 1C 67 68 46 19 67 25 [12:25:43]GetLastDocTimeStamp 1729945439 [12:25:43]current date 1729945544 [12:25:43]FM_GetShiftState [12:25:43]SAM_PROTO_GetShiftState [12:25:43]wFMCommunicate request_size=4 [12:25:43]MH_SAM_APDU [12:25:43]CAPDU: 80 13 01 00 [12:25:43]Write to MH i2c: E2 08 00 CE 08 80 13 01 00 00 00 00 00 53 [12:25:43]Write i2c OK [12:25:43]MH_I2C_Read... [12:25:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:43]Read from MH i2c: E2 [12:25:43]MH_I2C_Read... [12:25:43]Read from MH i2c: E2 0E 00 [12:25:43]MH_I2C_Read... [12:25:43]Read from MH i2c: E2 0E 00 CE 08 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 62 [12:25:43]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:25:43]wFMCommunicate OK [12:25:43]SAM_PROTO_GetShiftState done [12:25:43]FM_GetShiftState done [12:25:43]opened in 1729900879 [12:25:43]opened+sec_in_day 1729987279 [12:25:43]quantity*price = 20003 [12:25:43]sum+1 = 20004 [12:25:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 215 26.10.2024 12:25 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201453 ФПД: 276232383525060 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T122544&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201453&fm=276232383525060&tin=02508201610067®Number=0000000000091777&sum=20000 [12:25:44]StoreToDocumentArchive [12:25:44]shift 543 fd 201453 [12:25:44]save to /storage/0543/doc_00201453 [12:25:44]save last doc name /storage/0543/doc_00201453 to /storage/kkm_last_doc_name [12:25:44]save OK [12:25:44]Clear old archive folders... [12:25:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:25:44]tlvbuf is 01EE5B00 [12:25:44]SAM_PROTO_ClearQueue [12:25:44]wFMCommunicate request_size=4 [12:25:44]MH_SAM_APDU [12:25:44]CAPDU: 80 09 00 00 [12:25:44]Write to MH i2c: E2 08 00 DB 08 80 09 00 00 00 00 00 00 55 [12:25:44]Write i2c OK [12:25:44]MH_I2C_Read... [12:25:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:44]Read from MH i2c: E2 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: E2 03 00 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: E2 03 00 DB 08 00 90 00 57 [12:25:44]RAPDU: 90 00 [12:25:44]wFMCommunicate OK [12:25:44]SAM_PROTO_ClearQueue done [12:25:44]KKMCreateOFDPacket [12:25:44]OFDProtocolAddRootSTLVToBuf [12:25:44]FM_MakeSignedData [12:25:44]FM_MakeSignedData [12:25:44]SAM_PROTO_SignData [12:25:44]wFMCommunicate request_size=4 [12:25:44]MH_SAM_APDU [12:25:44]CAPDU: 80 0D 01 02 [12:25:44]Write to MH i2c: E2 08 00 DC 08 80 0D 01 02 00 00 00 00 5D [12:25:44]Write i2c OK [12:25:44]MH_I2C_Read... [12:25:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:45]Read from MH i2c: E2 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: E2 03 00 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: E2 03 00 DC 08 00 90 00 58 [12:25:45]RAPDU: 90 00 [12:25:45]wFMCommunicate OK [12:25:45]wFMCommunicate request_size=255 [12:25:45]MH_SAM_APDU [12:25: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 32 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 D7 00 00 00 F4 03 04 00 C8 DF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 ED 12 03 00 35 04 06 00 FB [12:25:45]Write to MH i2c: E2 02 01 DD 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 32 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 D7 00 00 00 F4 03 04 00 C8 DF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 ED 12 03 00 35 04 06 00 FB 00 00 D2 [12:25:45]Write i2c OK [12:25:45]MH_I2C_Read... [12:25:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:45]Read from MH i2c: E2 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: E2 03 00 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: E2 03 00 DD 08 00 90 00 59 [12:25:45]RAPDU: 90 00 [12:25:45]wFMCommunicate OK [12:25:45]wFMCommunicate request_size=10 [12:25:45]MH_SAM_APDU [12:25:45]CAPDU: 80 0D 02 02 05 3B 5D 18 70 C4 [12:25:45]Write to MH i2c: E2 0D 00 DE 08 80 0D 02 02 05 00 3B 5D 18 70 C4 00 00 4E [12:25:45]Write i2c OK [12:25:45]MH_I2C_Read... [12:25:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:45]Read from MH i2c: E2 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: E2 03 00 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: E2 03 00 DE 08 00 90 00 5A [12:25:45]RAPDU: 90 00 [12:25:45]wFMCommunicate OK [12:25:45]wFMCommunicate request_size=4 [12:25:45]MH_SAM_APDU [12:25:45]CAPDU: 80 0D 03 02 [12:25:45]Write to MH i2c: E2 08 00 DF 08 80 0D 03 02 00 00 00 00 62 [12:25:45]Write i2c OK [12:25:45]MH_I2C_Read... [12:25:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:45]Read from MH i2c: E2 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: E2 0B 00 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: E2 0B 00 DF 08 00 75 97 3D 22 17 03 80 BB 90 00 23 [12:25:45]RAPDU: 75 97 3D 22 17 03 80 BB 90 00 [12:25:45]wFMCommunicate OK [12:25:45]SAM_PROTO_SignData done [12:25:45]FM_MakeSignedData done [12:25:45]CreateOFDProtocolMessage [12:25:45]wFMCommunicate request_size=4 [12:25:45]MH_SAM_APDU [12:25:45]CAPDU: 80 11 00 00 [12:25:45]Write to MH i2c: E2 08 00 E0 08 80 11 00 00 00 00 00 00 62 [12:25:45]Write i2c OK [12:25:45]MH_I2C_Read... [12:25:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:45]Read from MH i2c: E2 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: E2 17 00 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: E2 17 00 E0 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B7 [12:25:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:25:45]wFMCommunicate OK [12:25:45]CreateOFDProtocolMessage done [12:25:45]OFDSenderStorePacket 201453 [12:25:45]StoreOFDPacket docnum=201453 [12:25:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 66 ED 07 01 6F 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 32 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 D7 00 00 00 F4 03 04 00 C8 DF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 ED 12 03 00 35 04 06 00 FB 3B 5D 18 70 C4 75 97 3D 22 17 03 80 BB [12:25:45]CheckFolder [12:25:45]dirname=/storage/ofd_packets [12:25:45]CheckFolder done [12:25:45]ProducePacketName [12:25:45]name=ofd_packets/00201453 [12:25:45]NVStorageSaveData ofd_packets/00201453 [12:25:45]File name is /storage/ofd_packets/00201453 [12:25:45]Write 301 bytes [12:25:45]NVStorageSaveData done [12:25:45]OFDSenderStorePacket done [12:25:45]KKMCreateOFDPacket done [12:25:45]NVStorageSaveData kkm_last_timestamp [12:25:45]File name is /storage/kkm_last_timestamp [12:25:45]Write 4 bytes [12:25:45]NVStorageSaveData done [12:25:45]ExternCall_PrintAddStr [12:25:45]wPrintStart [12:25:45]Write to MH i2c: 01 00 00 E1 08 E9 [12:25:45]Write i2c OK [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: 01 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: 01 07 00 [12:25:45]MH_I2C_Read... [12:25:45]Read from MH i2c: 01 07 00 E1 08 00 00 00 00 00 FF 0F FE [12:25:45]RasterBufferAndPrint [12:25:45]line Счет N : (1)449202 [12:25:45]line ИНН: 02508201610067 [12:25:45]line Контрольно-Кассовый Чек [12:25:45]line ПРОДАЖА [12:25:45]line ТРК (МРК, ГНК) : 41 [12:25:45]line Товар: 2710124130 [12:25:45]line Аи-92-К-2 [12:25:45]line 2.990 * 66.90 [12:25:45]line = 200.03 [12:25:45]line НДС 12% НСП 1% [12:25:45]line > о реализуемом товаре [12:25:45]line ОКРУГЛЕНИЕ: -0.03 [12:25:45]line ИТОГО: 200.00 [12:25:45]line Внесено: 200.00 [12:25:45]line СДАЧА: 0.00 [12:25:45]line НСП 1% : 1.77 [12:25:45]line НДС 12% : 21.24 [12:25:45]line Наличными: 200.00 [12:25:45]line Безнал.: 0.00 [12:25:45]line Место: АЗС № 171 "Партнер Нефть" [12:25:45]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:25:45]line СНО: Общий режим [12:25:45]line Чек 215 26.10.2024 12:25 [12:25:45]line Смена: 543 ФФД: 1.0 [12:25:45]line ЗНМ: 0300000109 [12:25:45]line РНМ: 0000000000091777 [12:25:45]line Версия ККМ: 001 [12:25:45]line ФМ: 0000000000871756 [12:25:45]line ФД: 201453 [12:25:45]line ФПД: 276232383525060 [12:25:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T122544&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201453&fm=276232383525060&tin=02508201610067®Number=0000000000091777&sum=20000 [12:25:45]OFD Sender: Processing packet 201453 [packets to send 112, broken 111] [12:25:45]ProducePacketName [12:25:45]name=ofd_packets/00201453 [12:25:45]OFD Sender: To server: pG, [12:25:45]CommunicateWithHost lk.salyk.kg:30040 [12:25:45]ConnectInit lk.salyk.kg [12:25:45]written 0, free lines is 4095 [12:25:45]Connected sock=10 [12:25:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 66 ED 07 01 6F 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 32 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 D7 00 00 00 F4 03 04 00 C8 DF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 ED 12 03 00 35 04 06 00 FB 3B 5D 18 70 C4 75 97 3D 22 17 03 80 BB [12:25:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 4E 90 47 00 D2 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 ED 12 03 00 F4 03 04 00 71 8B 1C 67 B6 04 01 00 00 97 D4 01 33 74 04 6A 2F [12:25:46]CommunicateWithHost err = 0 [12:25:46]CheckOFDResponse [12:25:46]1017 (14) - 77093643461234 [12:25:46]1041 (16) - 0000000000871756 [12:25:46]1040 (4) - 201453 [12:25:46]1012 (4) - 26.10.2024 06:25 [12:25:46]1206 (1) - 0 [12:25:46]OFD Sender: Remove packet 201453 [12:25:46]ProducePacketName [12:25:46]name=ofd_packets/00201453 [12:25:46]NVStorageDeleteData [12:25:46]Write to MH i2c: 01 00 00 0C 09 15 [12:25:46]Write i2c OK [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: 01 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: 01 07 00 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: 01 07 00 0C 09 00 00 00 00 00 A2 0C CA [12:25:46]RasterBufferAndPrint [12:25:46]line [12:25:46]line [12:25:46]line [12:25:46]line [12:25:46]line [12:25:46]written 0, free lines is 3240 [12:25:46]MH_Cut [12:25:46]Write to MH i2c: D1 01 00 13 09 01 EE [12:25:46]Write i2c OK [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: D1 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: D1 01 00 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: D1 01 00 13 09 00 ED [12:25:46]Write to MH i2c: 01 00 00 14 09 1D [12:25:46]Write i2c OK [12:25:46]MH_I2C_Read... [12:25:46]OFD Sender: No OFD packet to send [12:25:47]*** Cut start [12:25:47]*** Purtial cut [12:25:47]*** Stage 1: CUTSNS_PIN = 1 [12:25:47]Read from MH i2c: 01 [12:25:47]MH_I2C_Read... [12:25:47]*** Stop cut motor [12:25:47]*** Cut end [12:25:47]Read from MH i2c: 01 07 00 [12:25:47]MH_I2C_Read... [12:25:47]Read from MH i2c: 01 07 00 14 09 00 00 00 00 00 FF 0F 32 [12:25:47]process_action close_receipt done [12:25:47]requested_data is exist [12:25:47]produce_requested_data [12:25:47]requested_item fm.sn is exist - process it [12:25:47]wFMCommunicate request_size=4 [12:25:47]MH_SAM_APDU [12:25:47]CAPDU: 80 11 00 00 [12:25:47]Write to MH i2c: E2 08 00 15 09 80 11 00 00 00 00 00 00 98 [12:25:47]Write i2c OK [12:25:47]MH_I2C_Read... [12:25:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:47]Read from MH i2c: E2 [12:25:47]MH_I2C_Read... [12:25:47]Read from MH i2c: E2 17 00 [12:25:47]MH_I2C_Read... [12:25:47]Read from MH i2c: E2 17 00 15 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 ED [12:25:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:25:47]wFMCommunicate OK [12:25:47]requested_item fd.num is exist - process it [12:25:47]SAM_PROTO_GetFieldsCounters [12:25:47]wFMCommunicate request_size=4 [12:25:47]MH_SAM_APDU [12:25:47]CAPDU: 80 13 00 00 [12:25:47]Write to MH i2c: E2 08 00 16 09 80 13 00 00 00 00 00 00 9B [12:25:47]Write i2c OK [12:25:47]MH_I2C_Read... [12:25:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:47]Read from MH i2c: E2 [12:25:47]MH_I2C_Read... [12:25:47]Read from MH i2c: E2 62 00 [12:25:47]MH_I2C_Read... [12:25:47]Read from MH i2c: E2 62 00 16 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 ED 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [12:25:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 ED 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:25:47]wFMCommunicate OK [12:25:47]SAM_PROTO_GetFieldsCounters done [12:25:47]requested_item shift.num is exist - process it [12:25:47]requested_item shift.opened is exist - process it [12:25:47]req_shift_opened [12:25:47]FM_GetShiftState [12:25:47]SAM_PROTO_GetShiftState [12:25:47]wFMCommunicate request_size=4 [12:25:47]MH_SAM_APDU [12:25:47]CAPDU: 80 13 01 00 [12:25:47]Write to MH i2c: E2 08 00 17 09 80 13 01 00 00 00 00 00 9D [12:25:47]Write i2c OK [12:25:47]MH_I2C_Read... [12:25:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:47]Read from MH i2c: E2 [12:25:47]MH_I2C_Read... [12:25:47]Read from MH i2c: E2 0E 00 [12:25:47]MH_I2C_Read... [12:25:47]Read from MH i2c: E2 0E 00 17 09 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 AC [12:25:47]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:25:47]wFMCommunicate OK [12:25:47]SAM_PROTO_GetShiftState done [12:25:47]FM_GetShiftState done [12:25:47]req_shift_opened done [12:25:47]requested_item shift.open_date is exist - process it [12:25:47]req_shift_open_date [12:25:47]req_shift_open_date done [12:25:47]produce_requested_data done [12:25:47]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201453,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:25:47]process_action_free close_receipt [12:25:47]json_value_free [12:25:47]json_value_free done [12:25:47]process_json_proto returns [12:25:47]Send response to host [12:25:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201453,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:25:47]free response buf [12:25:47]execute_script done [12:25:47]execute_script returns [12:25:47]free content buf [12:25:47]Sock 8.Close socket [12:25:47]Sock 8.Thread stoped [12:25:51]OFD Sender: No OFD packet to send [12:25:56]OFD Sender: No OFD packet to send [12:26:01]OFD Sender: No OFD packet to send [12:26:02]accept exits with 9 [12:26:02]New connection [12:26:02]New thread 3066690916 created [12:26:02]Thread 3066834276 joined [12:26:02]Waiting for new connection... [12:26:02] Sock 9.Parse request [12:26:02]Sock 9.Check first char [12:26:02]Sock 9.First char is OK [12:26:02]request: POST /json_proto HTTP/1.0 [12:26:02]Method: POST [12:26:02]URL: /json_proto [12:26:02]Method is POST - this is cgi request [12:26:02]url: /json_proto [12:26:02]query_string will be loaded in cgi processing [12:26:02]execute_cgi json_proto POST (null) [12:26:02]execute_cgi path=json_proto method=POST [12:26:02]POST find Content-Length [12:26:02]Host: 172.17.63.195:8080 [12:26:02]Content-Length: 677 [12:26:02]Content-Type: application/json [12:26:02] [12:26:02]POST finish read [12:26:02]Found Content-Length = 677 [12:26:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:26:02]execute_script... [12:26: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)449203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:26:02]POST & json_proto [12:26:02]process_json_proto [12:26:02]json parsed OK: [12:26:02]protocol is kg_v1.0 [12:26:02]action value=close_receipt [12:26:02]process_action close_receipt [12:26:02]cmd_close_receipt [12:26:02]MH_GetDate [12:26:02]Write to MH i2c: F0 00 00 18 09 10 [12:26:02]Write i2c OK [12:26:02]MH_I2C_Read... [12:26:02]Read from MH i2c: F0 [12:26:02]MH_I2C_Read... [12:26:02]Read from MH i2c: F0 09 00 [12:26:02]MH_I2C_Read... [12:26:02]Read from MH i2c: F0 09 00 18 09 00 DA DF 1C 67 68 46 19 67 83 [12:26:02]GetLastDocTimeStamp 1729945544 [12:26:02]current date 1729945562 [12:26:02]FM_GetShiftState [12:26:02]SAM_PROTO_GetShiftState [12:26:02]wFMCommunicate request_size=4 [12:26:02]MH_SAM_APDU [12:26:02]CAPDU: 80 13 01 00 [12:26:02]Write to MH i2c: E2 08 00 19 09 80 13 01 00 00 00 00 00 9F [12:26:02]Write i2c OK [12:26:02]MH_I2C_Read... [12:26:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:02]Read from MH i2c: E2 [12:26:02]MH_I2C_Read... [12:26:02]Read from MH i2c: E2 0E 00 [12:26:02]MH_I2C_Read... [12:26:02]Read from MH i2c: E2 0E 00 19 09 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 AE [12:26:02]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:26:02]wFMCommunicate OK [12:26:02]SAM_PROTO_GetShiftState done [12:26:02]FM_GetShiftState done [12:26:02]opened in 1729900879 [12:26:02]opened+sec_in_day 1729987279 [12:26:02]quantity*price = 20003 [12:26:02]sum+1 = 20004 [12:26:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 216 26.10.2024 12:26 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201454 ФПД: 86350190366257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T122602&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201454&fm=86350190366257&tin=02508201610067®Number=0000000000091777&sum=20000 [12:26:03]StoreToDocumentArchive [12:26:03]shift 543 fd 201454 [12:26:03]save to /storage/0543/doc_00201454 [12:26:03]save last doc name /storage/0543/doc_00201454 to /storage/kkm_last_doc_name [12:26:03]save OK [12:26:03]Clear old archive folders... [12:26:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:26:03]tlvbuf is 01F03F80 [12:26:03]SAM_PROTO_ClearQueue [12:26:03]wFMCommunicate request_size=4 [12:26:03]MH_SAM_APDU [12:26:03]CAPDU: 80 09 00 00 [12:26:03]Write to MH i2c: E2 08 00 26 09 80 09 00 00 00 00 00 00 A1 [12:26:03]Write i2c OK [12:26:03]MH_I2C_Read... [12:26:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:03]Read from MH i2c: E2 [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: E2 03 00 [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: E2 03 00 26 09 00 90 00 A3 [12:26:03]RAPDU: 90 00 [12:26:03]wFMCommunicate OK [12:26:03]SAM_PROTO_ClearQueue done [12:26:03]KKMCreateOFDPacket [12:26:03]OFDProtocolAddRootSTLVToBuf [12:26:03]FM_MakeSignedData [12:26:03]FM_MakeSignedData [12:26:03]SAM_PROTO_SignData [12:26:03]wFMCommunicate request_size=4 [12:26:03]MH_SAM_APDU [12:26:03]CAPDU: 80 0D 01 02 [12:26:03]Write to MH i2c: E2 08 00 27 09 80 0D 01 02 00 00 00 00 A9 [12:26:03]Write i2c OK [12:26:03]MH_I2C_Read... [12:26:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:03]Read from MH i2c: E2 [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: E2 03 00 [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: E2 03 00 27 09 00 90 00 A4 [12:26:03]RAPDU: 90 00 [12:26:03]wFMCommunicate OK [12:26:03]wFMCommunicate request_size=255 [12:26:03]MH_SAM_APDU [12:26: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 32 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 D8 00 00 00 F4 03 04 00 DA DF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EE 12 03 00 35 04 06 00 4E [12:26:03]Write to MH i2c: E2 02 01 28 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 32 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 D8 00 00 00 F4 03 04 00 DA DF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EE 12 03 00 35 04 06 00 4E 00 00 85 [12:26:03]Write i2c OK [12:26:03]MH_I2C_Read... [12:26:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:03]Read from MH i2c: E2 [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: E2 03 00 [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: E2 03 00 28 09 00 90 00 A5 [12:26:03]RAPDU: 90 00 [12:26:03]wFMCommunicate OK [12:26:03]wFMCommunicate request_size=10 [12:26:03]MH_SAM_APDU [12:26:03]CAPDU: 80 0D 02 02 05 88 F8 6C 4E 31 [12:26:03]Write to MH i2c: E2 0D 00 29 09 80 0D 02 02 05 00 88 F8 6C 4E 31 00 00 21 [12:26:03]Write i2c OK [12:26:03]MH_I2C_Read... [12:26:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:03]Read from MH i2c: E2 [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: E2 03 00 [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: E2 03 00 29 09 00 90 00 A6 [12:26:03]RAPDU: 90 00 [12:26:03]wFMCommunicate OK [12:26:03]wFMCommunicate request_size=4 [12:26:03]MH_SAM_APDU [12:26:03]CAPDU: 80 0D 03 02 [12:26:03]Write to MH i2c: E2 08 00 2A 09 80 0D 03 02 00 00 00 00 AE [12:26:03]Write i2c OK [12:26:03]MH_I2C_Read... [12:26:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:03]Read from MH i2c: E2 [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: E2 0B 00 [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: E2 0B 00 2A 09 00 58 2F 13 5C B6 90 1C 45 90 00 4C [12:26:03]RAPDU: 58 2F 13 5C B6 90 1C 45 90 00 [12:26:03]wFMCommunicate OK [12:26:03]SAM_PROTO_SignData done [12:26:03]FM_MakeSignedData done [12:26:03]CreateOFDProtocolMessage [12:26:03]wFMCommunicate request_size=4 [12:26:03]MH_SAM_APDU [12:26:03]CAPDU: 80 11 00 00 [12:26:03]Write to MH i2c: E2 08 00 2B 09 80 11 00 00 00 00 00 00 AE [12:26:03]Write i2c OK [12:26:03]MH_I2C_Read... [12:26:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:03]Read from MH i2c: E2 [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: E2 17 00 [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: E2 17 00 2B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 03 [12:26:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:26:03]wFMCommunicate OK [12:26:03]CreateOFDProtocolMessage done [12:26:03]OFDSenderStorePacket 201454 [12:26:03]StoreOFDPacket docnum=201454 [12:26:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 81 8E 07 01 5D 6F 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 32 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 D8 00 00 00 F4 03 04 00 DA DF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EE 12 03 00 35 04 06 00 4E 88 F8 6C 4E 31 58 2F 13 5C B6 90 1C 45 [12:26:03]CheckFolder [12:26:03]dirname=/storage/ofd_packets [12:26:03]CheckFolder done [12:26:03]ProducePacketName [12:26:03]name=ofd_packets/00201454 [12:26:03]NVStorageSaveData ofd_packets/00201454 [12:26:03]File name is /storage/ofd_packets/00201454 [12:26:03]Write 301 bytes [12:26:03]NVStorageSaveData done [12:26:03]OFDSenderStorePacket done [12:26:03]KKMCreateOFDPacket done [12:26:03]NVStorageSaveData kkm_last_timestamp [12:26:03]File name is /storage/kkm_last_timestamp [12:26:03]Write 4 bytes [12:26:03]NVStorageSaveData done [12:26:03]ExternCall_PrintAddStr [12:26:03]wPrintStart [12:26:03]Write to MH i2c: 01 00 00 2C 09 35 [12:26:03]Write i2c OK [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: 01 [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: 01 07 00 [12:26:03]MH_I2C_Read... [12:26:03]Read from MH i2c: 01 07 00 2C 09 00 00 00 00 00 FF 0F 4A [12:26:03]RasterBufferAndPrint [12:26:03]line Счет N : (1)449203 [12:26:03]line ИНН: 02508201610067 [12:26:03]line Контрольно-Кассовый Чек [12:26:03]line ПРОДАЖА [12:26:03]line ТРК (МРК, ГНК) : 31 [12:26:03]line Товар: 2710124130 [12:26:03]line Аи-92-К-2 [12:26:03]line 2.990 * 66.90 [12:26:03]line = 200.03 [12:26:03]line НДС 12% НСП 1% [12:26:03]line > о реализуемом товаре [12:26:03]line ОКРУГЛЕНИЕ: -0.03 [12:26:03]line ИТОГО: 200.00 [12:26:03]line Внесено: 200.00 [12:26:03]line СДАЧА: 0.00 [12:26:03]line НСП 1% : 1.77 [12:26:03]line НДС 12% : 21.24 [12:26:03]line Наличными: 200.00 [12:26:03]line Безнал.: 0.00 [12:26:03]line Место: АЗС № 171 "Партнер Нефть" [12:26:03]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:26:03]line СНО: Общий режим [12:26:03]line Чек 216 26.10.2024 12:26 [12:26:03]line Смена: 543 ФФД: 1.0 [12:26:03]line ЗНМ: 0300000109 [12:26:03]line РНМ: 0000000000091777 [12:26:03]line Версия ККМ: 001 [12:26:03]line ФМ: 0000000000871756 [12:26:03]line ФД: 201454 [12:26:03]line ФПД: 86350190366257 [12:26:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T122602&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201454&fm=86350190366257&tin=02508201610067®Number=0000000000091777&sum=20000 [12:26:04]OFD Sender: Processing packet 201454 [packets to send 112, broken 111] [12:26:04]ProducePacketName [12:26:04]name=ofd_packets/00201454 [12:26:04]OFD Sender: To server: pG, [12:26:04]CommunicateWithHost lk.salyk.kg:30040 [12:26:04]ConnectInit lk.salyk.kg [12:26:04]written 0, free lines is 4095 [12:26:04]Connected sock=10 [12:26:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 81 8E 07 01 5D 6F 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 32 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 D8 00 00 00 F4 03 04 00 DA DF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EE 12 03 00 35 04 06 00 4E 88 F8 6C 4E 31 58 2F 13 5C B6 90 1C 45 [12:26:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 21 CC 47 00 B3 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EE 12 03 00 F4 03 04 00 83 8B 1C 67 B6 04 01 00 00 26 75 19 B4 9C 82 A1 26 [12:26:04]CommunicateWithHost err = 0 [12:26:04]CheckOFDResponse [12:26:04]1017 (14) - 77093643461234 [12:26:04]1041 (16) - 0000000000871756 [12:26:04]1040 (4) - 201454 [12:26:04]1012 (4) - 26.10.2024 06:26 [12:26:04]1206 (1) - 0 [12:26:04]OFD Sender: Remove packet 201454 [12:26:04]ProducePacketName [12:26:04]name=ofd_packets/00201454 [12:26:04]NVStorageDeleteData [12:26:04]Write to MH i2c: 01 00 00 57 09 60 [12:26:04]Write i2c OK [12:26:04]MH_I2C_Read... [12:26:04]Read from MH i2c: 01 [12:26:04]MH_I2C_Read... [12:26:04]Read from MH i2c: 01 07 00 [12:26:04]MH_I2C_Read... [12:26:04]Read from MH i2c: 01 07 00 57 09 00 00 00 00 00 A3 0C 16 [12:26:04]RasterBufferAndPrint [12:26:04]line [12:26:04]line [12:26:04]line [12:26:04]line [12:26:04]line [12:26:04]written 0, free lines is 3241 [12:26:04]MH_Cut [12:26:04]Write to MH i2c: D1 01 00 5E 09 01 39 [12:26:04]Write i2c OK [12:26:04]MH_I2C_Read... [12:26:04]Read from MH i2c: D1 [12:26:04]MH_I2C_Read... [12:26:04]Read from MH i2c: D1 01 00 [12:26:04]MH_I2C_Read... [12:26:04]Read from MH i2c: D1 01 00 5E 09 00 38 [12:26:04]Write to MH i2c: 01 00 00 5F 09 68 [12:26:04]Write i2c OK [12:26:04]MH_I2C_Read... [12:26:04]OFD Sender: No OFD packet to send [12:26:05]*** Cut start [12:26:05]*** Purtial cut [12:26:05]*** Stage 1: CUTSNS_PIN = 1 [12:26:05]Read from MH i2c: 01 [12:26:05]MH_I2C_Read... [12:26:05]*** Stop cut motor [12:26:05]*** Cut end [12:26:05]Read from MH i2c: 01 07 00 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: 01 07 00 5F 09 00 00 00 00 00 FF 0F 7D [12:26:05]process_action close_receipt done [12:26:05]requested_data is exist [12:26:05]produce_requested_data [12:26:05]requested_item fm.sn is exist - process it [12:26:05]wFMCommunicate request_size=4 [12:26:05]MH_SAM_APDU [12:26:05]CAPDU: 80 11 00 00 [12:26:05]Write to MH i2c: E2 08 00 60 09 80 11 00 00 00 00 00 00 E3 [12:26:05]Write i2c OK [12:26:05]MH_I2C_Read... [12:26:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:05]Read from MH i2c: E2 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 17 00 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 17 00 60 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 38 [12:26:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:26:05]wFMCommunicate OK [12:26:05]requested_item fd.num is exist - process it [12:26:05]SAM_PROTO_GetFieldsCounters [12:26:05]wFMCommunicate request_size=4 [12:26:05]MH_SAM_APDU [12:26:05]CAPDU: 80 13 00 00 [12:26:05]Write to MH i2c: E2 08 00 61 09 80 13 00 00 00 00 00 00 E6 [12:26:05]Write i2c OK [12:26:05]MH_I2C_Read... [12:26:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:05]Read from MH i2c: E2 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 62 00 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 62 00 61 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EE 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [12:26:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EE 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:26:05]wFMCommunicate OK [12:26:05]SAM_PROTO_GetFieldsCounters done [12:26:05]requested_item shift.num is exist - process it [12:26:05]requested_item shift.opened is exist - process it [12:26:05]req_shift_opened [12:26:05]FM_GetShiftState [12:26:05]SAM_PROTO_GetShiftState [12:26:05]wFMCommunicate request_size=4 [12:26:05]MH_SAM_APDU [12:26:05]CAPDU: 80 13 01 00 [12:26:05]Write to MH i2c: E2 08 00 62 09 80 13 01 00 00 00 00 00 E8 [12:26:05]Write i2c OK [12:26:05]MH_I2C_Read... [12:26:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:05]Read from MH i2c: E2 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 0E 00 [12:26:05]MH_I2C_Read... [12:26:05]Read from MH i2c: E2 0E 00 62 09 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F7 [12:26:05]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:26:05]wFMCommunicate OK [12:26:05]SAM_PROTO_GetShiftState done [12:26:05]FM_GetShiftState done [12:26:05]req_shift_opened done [12:26:05]requested_item shift.open_date is exist - process it [12:26:05]req_shift_open_date [12:26:05]req_shift_open_date done [12:26:05]produce_requested_data done [12:26:05]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201454,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:26:05]process_action_free close_receipt [12:26:05]json_value_free [12:26:05]json_value_free done [12:26:05]process_json_proto returns [12:26:05]Send response to host [12:26:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201454,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:26:05]free response buf [12:26:05]execute_script done [12:26:05]execute_script returns [12:26:05]free content buf [12:26:05]Sock 9.Close socket [12:26:05]Sock 9.Thread stoped [12:26:09]OFD Sender: No OFD packet to send [12:26:14]OFD Sender: No OFD packet to send [12:26:19]OFD Sender: No OFD packet to send [12:26:24]OFD Sender: No OFD packet to send [12:26:29]OFD Sender: No OFD packet to send [12:26:34]OFD Sender: No OFD packet to send [12:26:39]OFD Sender: No OFD packet to send [12:26:44]OFD Sender: No OFD packet to send [12:26:49]OFD Sender: No OFD packet to send [12:26:54]OFD Sender: No OFD packet to send [12:26:59]accept exits with 8 [12:26:59]New connection [12:26:59]New thread 3066834276 created [12:26:59]Thread 3066690916 joined [12:26:59]Waiting for new connection... [12:26:59] Sock 8.Parse request [12:26:59]Sock 8.Check first char [12:26:59]Sock 8.First char is OK [12:26:59]request: POST /json_proto HTTP/1.0 [12:26:59]Method: POST [12:26:59]URL: /json_proto [12:26:59]Method is POST - this is cgi request [12:26:59]url: /json_proto [12:26:59]query_string will be loaded in cgi processing [12:26:59]execute_cgi json_proto POST (null) [12:26:59]execute_cgi path=json_proto method=POST [12:26:59]POST find Content-Length [12:26:59]Host: 172.17.63.195:8080 [12:26:59]Content-Length: 677 [12:26:59]Content-Type: application/json [12:26:59] [12:26:59]POST finish read [12:26:59]Found Content-Length = 677 [12:26:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:59]execute_script... [12:26:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:59]POST & json_proto [12:26:59]process_json_proto [12:26:59]json parsed OK: [12:26:59]protocol is kg_v1.0 [12:26:59]action value=close_receipt [12:26:59]process_action close_receipt [12:26:59]cmd_close_receipt [12:26:59]MH_GetDate [12:26:59]Write to MH i2c: F0 00 00 63 09 5B [12:26:59]Write i2c OK [12:26:59]MH_I2C_Read... [12:26:59]Read from MH i2c: F0 [12:26:59]MH_I2C_Read... [12:26:59]Read from MH i2c: F0 09 00 [12:26:59]MH_I2C_Read... [12:26:59]Read from MH i2c: F0 09 00 63 09 00 14 E0 1C 67 68 46 19 67 09 [12:26:59]GetLastDocTimeStamp 1729945562 [12:26:59]current date 1729945620 [12:26:59]FM_GetShiftState [12:26:59]SAM_PROTO_GetShiftState [12:26:59]wFMCommunicate request_size=4 [12:26:59]MH_SAM_APDU [12:26:59]CAPDU: 80 13 01 00 [12:26:59]Write to MH i2c: E2 08 00 64 09 80 13 01 00 00 00 00 00 EA [12:26:59]Write i2c OK [12:26:59]MH_I2C_Read... [12:26:59]OFD Sender: No OFD packet to send [12:27:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:00]Read from MH i2c: E2 [12:27:00]MH_I2C_Read... [12:27:00]Read from MH i2c: E2 0E 00 [12:27:00]MH_I2C_Read... [12:27:00]Read from MH i2c: E2 0E 00 64 09 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F9 [12:27:00]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:27:00]wFMCommunicate OK [12:27:00]SAM_PROTO_GetShiftState done [12:27:00]FM_GetShiftState done [12:27:00]opened in 1729900879 [12:27:00]opened+sec_in_day 1729987279 [12:27:00]quantity*price = 30038 [12:27:00]sum+1 = 30039 [12:27:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 217 26.10.2024 12:27 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201455 ФПД: 211657292685219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T122700&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201455&fm=211657292685219&tin=02508201610067®Number=0000000000091777&sum=30000 [12:27:01]StoreToDocumentArchive [12:27:01]shift 543 fd 201455 [12:27:01]save to /storage/0543/doc_00201455 [12:27:01]save last doc name /storage/0543/doc_00201455 to /storage/kkm_last_doc_name [12:27:01]save OK [12:27:01]Clear old archive folders... [12:27:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:27:01]tlvbuf is 01F7D590 [12:27:01]SAM_PROTO_ClearQueue [12:27:01]wFMCommunicate request_size=4 [12:27:01]MH_SAM_APDU [12:27:01]CAPDU: 80 09 00 00 [12:27:01]Write to MH i2c: E2 08 00 71 09 80 09 00 00 00 00 00 00 EC [12:27:01]Write i2c OK [12:27:01]MH_I2C_Read... [12:27:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:01]Read from MH i2c: E2 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: E2 03 00 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: E2 03 00 71 09 00 90 00 EE [12:27:01]RAPDU: 90 00 [12:27:01]wFMCommunicate OK [12:27:01]SAM_PROTO_ClearQueue done [12:27:01]KKMCreateOFDPacket [12:27:01]OFDProtocolAddRootSTLVToBuf [12:27:01]FM_MakeSignedData [12:27:01]FM_MakeSignedData [12:27:01]SAM_PROTO_SignData [12:27:01]wFMCommunicate request_size=4 [12:27:01]MH_SAM_APDU [12:27:01]CAPDU: 80 0D 01 02 [12:27:01]Write to MH i2c: E2 08 00 72 09 80 0D 01 02 00 00 00 00 F4 [12:27:01]Write i2c OK [12:27:01]MH_I2C_Read... [12:27:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:01]Read from MH i2c: E2 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: E2 03 00 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: E2 03 00 72 09 00 90 00 EF [12:27:01]RAPDU: 90 00 [12:27:01]wFMCommunicate OK [12:27:01]wFMCommunicate request_size=255 [12:27:01]MH_SAM_APDU [12:27: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 14 E0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EF 12 03 00 35 04 06 00 C0 [12:27:01]Write to MH i2c: E2 02 01 73 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 14 E0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EF 12 03 00 35 04 06 00 C0 00 00 B1 [12:27:01]Write i2c OK [12:27:01]MH_I2C_Read... [12:27:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:01]Read from MH i2c: E2 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: E2 03 00 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: E2 03 00 73 09 00 90 00 F0 [12:27:01]RAPDU: 90 00 [12:27:01]wFMCommunicate OK [12:27:01]wFMCommunicate request_size=10 [12:27:01]MH_SAM_APDU [12:27:01]CAPDU: 80 0D 02 02 05 80 4D BE 9F A3 [12:27:01]Write to MH i2c: E2 0D 00 74 09 80 0D 02 02 05 00 80 4D BE 9F A3 00 00 CE [12:27:01]Write i2c OK [12:27:01]MH_I2C_Read... [12:27:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:01]Read from MH i2c: E2 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: E2 03 00 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: E2 03 00 74 09 00 90 00 F1 [12:27:01]RAPDU: 90 00 [12:27:01]wFMCommunicate OK [12:27:01]wFMCommunicate request_size=4 [12:27:01]MH_SAM_APDU [12:27:01]CAPDU: 80 0D 03 02 [12:27:01]Write to MH i2c: E2 08 00 75 09 80 0D 03 02 00 00 00 00 F9 [12:27:01]Write i2c OK [12:27:01]MH_I2C_Read... [12:27:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:01]Read from MH i2c: E2 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: E2 0B 00 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: E2 0B 00 75 09 00 14 6F 6C 01 EB 03 D4 4A 90 00 F6 [12:27:01]RAPDU: 14 6F 6C 01 EB 03 D4 4A 90 00 [12:27:01]wFMCommunicate OK [12:27:01]SAM_PROTO_SignData done [12:27:01]FM_MakeSignedData done [12:27:01]CreateOFDProtocolMessage [12:27:01]wFMCommunicate request_size=4 [12:27:01]MH_SAM_APDU [12:27:01]CAPDU: 80 11 00 00 [12:27:01]Write to MH i2c: E2 08 00 76 09 80 11 00 00 00 00 00 00 F9 [12:27:01]Write i2c OK [12:27:01]MH_I2C_Read... [12:27:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:01]Read from MH i2c: E2 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: E2 17 00 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: E2 17 00 76 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4E [12:27:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:27:01]wFMCommunicate OK [12:27:01]CreateOFDProtocolMessage done [12:27:01]OFDSenderStorePacket 201455 [12:27:01]StoreOFDPacket docnum=201455 [12:27:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 21 C9 07 01 7E 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 14 E0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EF 12 03 00 35 04 06 00 C0 80 4D BE 9F A3 14 6F 6C 01 EB 03 D4 4A [12:27:01]CheckFolder [12:27:01]dirname=/storage/ofd_packets [12:27:01]CheckFolder done [12:27:01]ProducePacketName [12:27:01]name=ofd_packets/00201455 [12:27:01]NVStorageSaveData ofd_packets/00201455 [12:27:01]File name is /storage/ofd_packets/00201455 [12:27:01]Write 301 bytes [12:27:01]NVStorageSaveData done [12:27:01]OFDSenderStorePacket done [12:27:01]KKMCreateOFDPacket done [12:27:01]NVStorageSaveData kkm_last_timestamp [12:27:01]File name is /storage/kkm_last_timestamp [12:27:01]Write 4 bytes [12:27:01]NVStorageSaveData done [12:27:01]ExternCall_PrintAddStr [12:27:01]wPrintStart [12:27:01]Write to MH i2c: 01 00 00 77 09 80 [12:27:01]Write i2c OK [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: 01 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: 01 07 00 [12:27:01]MH_I2C_Read... [12:27:01]Read from MH i2c: 01 07 00 77 09 00 00 00 00 00 FF 0F 95 [12:27:01]RasterBufferAndPrint [12:27:01]line Счет N : (1)449204 [12:27:01]line ИНН: 02508201610067 [12:27:01]line Контрольно-Кассовый Чек [12:27:01]line ПРОДАЖА [12:27:01]line ТРК (МРК, ГНК) : 52 [12:27:01]line Товар: 2710124130 [12:27:01]line Аи-92-К-2 [12:27:01]line 4.490 * 66.90 [12:27:01]line = 300.38 [12:27:01]line НДС 12% НСП 1% [12:27:01]line > о реализуемом товаре [12:27:01]line ОКРУГЛЕНИЕ: -0.38 [12:27:01]line ИТОГО: 300.00 [12:27:01]line Внесено: 300.00 [12:27:01]line СДАЧА: 0.00 [12:27:01]line НСП 1% : 2.66 [12:27:01]line НДС 12% : 31.90 [12:27:01]line Наличными: 300.00 [12:27:01]line Безнал.: 0.00 [12:27:01]line Место: АЗС № 171 "Партнер Нефть" [12:27:01]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:27:01]line СНО: Общий режим [12:27:01]line Чек 217 26.10.2024 12:27 [12:27:01]line Смена: 543 ФФД: 1.0 [12:27:01]line ЗНМ: 0300000109 [12:27:01]line РНМ: 0000000000091777 [12:27:01]line Версия ККМ: 001 [12:27:01]line ФМ: 0000000000871756 [12:27:01]line ФД: 201455 [12:27:01]line ФПД: 211657292685219 [12:27:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T122700&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201455&fm=211657292685219&tin=02508201610067®Number=0000000000091777&sum=30000 [12:27:02]OFD Sender: Processing packet 201455 [packets to send 112, broken 111] [12:27:02]ProducePacketName [12:27:02]name=ofd_packets/00201455 [12:27:02]OFD Sender: To server: pG, [12:27:02]CommunicateWithHost lk.salyk.kg:30040 [12:27:02]ConnectInit lk.salyk.kg [12:27:02]written 0, free lines is 4095 [12:27:02]Connected sock=10 [12:27:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 21 C9 07 01 7E 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 14 E0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EF 12 03 00 35 04 06 00 C0 80 4D BE 9F A3 14 6F 6C 01 EB 03 D4 4A [12:27:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D9 5D 47 00 DF 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EF 12 03 00 F4 03 04 00 BD 8B 1C 67 B6 04 01 00 00 94 8A DD 83 39 D7 D4 CF [12:27:02]CommunicateWithHost err = 0 [12:27:02]CheckOFDResponse [12:27:02]1017 (14) - 77093643461234 [12:27:02]1041 (16) - 0000000000871756 [12:27:02]1040 (4) - 201455 [12:27:02]1012 (4) - 26.10.2024 06:27 [12:27:02]1206 (1) - 0 [12:27:02]OFD Sender: Remove packet 201455 [12:27:02]ProducePacketName [12:27:02]name=ofd_packets/00201455 [12:27:02]NVStorageDeleteData [12:27:02]Write to MH i2c: 01 00 00 A2 09 AB [12:27:02]Write i2c OK [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: 01 [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: 01 07 00 [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: 01 07 00 A2 09 00 00 00 00 00 A7 0C 65 [12:27:02]RasterBufferAndPrint [12:27:02]line [12:27:02]line [12:27:02]line [12:27:02]line [12:27:02]line [12:27:02]written 0, free lines is 3244 [12:27:02]MH_Cut [12:27:02]Write to MH i2c: D1 01 00 A9 09 01 84 [12:27:02]Write i2c OK [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: D1 [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: D1 01 00 [12:27:02]MH_I2C_Read... [12:27:02]Read from MH i2c: D1 01 00 A9 09 00 83 [12:27:02]Write to MH i2c: 01 00 00 AA 09 B3 [12:27:02]Write i2c OK [12:27:02]MH_I2C_Read... [12:27:02]OFD Sender: No OFD packet to send [12:27:03]*** Cut start [12:27:03]*** Purtial cut [12:27:03]*** Stage 1: CUTSNS_PIN = 1 [12:27:03]Read from MH i2c: 01 [12:27:03]MH_I2C_Read... [12:27:03]Read from MH i2c: 01 07 00 [12:27:03]MH_I2C_Read... [12:27:03]*** Stop cut motor [12:27:03]*** Cut end [12:27:03]Read from MH i2c: 01 07 00 AA 09 00 00 00 00 00 FF 0F C8 [12:27:03]process_action close_receipt done [12:27:03]requested_data is exist [12:27:03]produce_requested_data [12:27:03]requested_item fm.sn is exist - process it [12:27:03]wFMCommunicate request_size=4 [12:27:03]MH_SAM_APDU [12:27:03]CAPDU: 80 11 00 00 [12:27:03]Write to MH i2c: E2 08 00 AB 09 80 11 00 00 00 00 00 00 2E [12:27:03]Write i2c OK [12:27:03]MH_I2C_Read... [12:27:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:03]Read from MH i2c: E2 [12:27:03]MH_I2C_Read... [12:27:03]Read from MH i2c: E2 17 00 [12:27:03]MH_I2C_Read... [12:27:03]Read from MH i2c: E2 17 00 AB 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 83 [12:27:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:27:03]wFMCommunicate OK [12:27:03]requested_item fd.num is exist - process it [12:27:03]SAM_PROTO_GetFieldsCounters [12:27:03]wFMCommunicate request_size=4 [12:27:03]MH_SAM_APDU [12:27:03]CAPDU: 80 13 00 00 [12:27:03]Write to MH i2c: E2 08 00 AC 09 80 13 00 00 00 00 00 00 31 [12:27:03]Write i2c OK [12:27:03]MH_I2C_Read... [12:27:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:03]Read from MH i2c: E2 [12:27:03]MH_I2C_Read... [12:27:03]Read from MH i2c: E2 62 00 [12:27:03]MH_I2C_Read... [12:27:03]Read from MH i2c: E2 62 00 AC 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EF 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [12:27:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EF 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:27:03]wFMCommunicate OK [12:27:03]SAM_PROTO_GetFieldsCounters done [12:27:03]requested_item shift.num is exist - process it [12:27:03]requested_item shift.opened is exist - process it [12:27:03]req_shift_opened [12:27:03]FM_GetShiftState [12:27:03]SAM_PROTO_GetShiftState [12:27:03]wFMCommunicate request_size=4 [12:27:03]MH_SAM_APDU [12:27:03]CAPDU: 80 13 01 00 [12:27:03]Write to MH i2c: E2 08 00 AD 09 80 13 01 00 00 00 00 00 33 [12:27:03]Write i2c OK [12:27:03]MH_I2C_Read... [12:27:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:03]Read from MH i2c: E2 [12:27:03]MH_I2C_Read... [12:27:03]Read from MH i2c: E2 0E 00 [12:27:03]MH_I2C_Read... [12:27:03]Read from MH i2c: E2 0E 00 AD 09 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 42 [12:27:03]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:27:03]wFMCommunicate OK [12:27:03]SAM_PROTO_GetShiftState done [12:27:03]FM_GetShiftState done [12:27:03]req_shift_opened done [12:27:03]requested_item shift.open_date is exist - process it [12:27:03]req_shift_open_date [12:27:03]req_shift_open_date done [12:27:03]produce_requested_data done [12:27:03]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201455,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:27:03]process_action_free close_receipt [12:27:03]json_value_free [12:27:03]json_value_free done [12:27:03]process_json_proto returns [12:27:03]Send response to host [12:27:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201455,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:27:03]free response buf [12:27:03]execute_script done [12:27:03]execute_script returns [12:27:03]free content buf [12:27:03]Sock 8.Close socket [12:27:03]Sock 8.Thread stoped [12:27:07]OFD Sender: No OFD packet to send [12:27:12]OFD Sender: No OFD packet to send [12:27:17]OFD Sender: No OFD packet to send [12:27:22]OFD Sender: No OFD packet to send [12:27:27]OFD Sender: No OFD packet to send [12:27:32]OFD Sender: No OFD packet to send [12:27:37]OFD Sender: No OFD packet to send [12:27:42]OFD Sender: No OFD packet to send [12:27:47]OFD Sender: No OFD packet to send [12:27:52]OFD Sender: No OFD packet to send [12:27:57]OFD Sender: No OFD packet to send [12:27:59]accept exits with 9 [12:27:59]New connection [12:27:59]New thread 3066690916 created [12:27:59]Thread 3066834276 joined [12:27:59]Waiting for new connection... [12:27:59] Sock 9.Parse request [12:27:59]Sock 9.Check first char [12:27:59]Sock 9.First char is OK [12:27:59]request: POST /json_proto HTTP/1.0 [12:27:59]Method: POST [12:27:59]URL: /json_proto [12:27:59]Method is POST - this is cgi request [12:27:59]url: /json_proto [12:27:59]query_string will be loaded in cgi processing [12:27:59]execute_cgi json_proto POST (null) [12:27:59]execute_cgi path=json_proto method=POST [12:27:59]POST find Content-Length [12:27:59]Host: 172.17.63.195:8080 [12:27:59]Content-Length: 677 [12:27:59]Content-Type: application/json [12:27:59] [12:27:59]POST finish read [12:27:59]Found Content-Length = 677 [12:27:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:27:59]execute_script... [12:27:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:27:59]POST & json_proto [12:27:59]process_json_proto [12:27:59]json parsed OK: [12:27:59]protocol is kg_v1.0 [12:27:59]action value=close_receipt [12:27:59]process_action close_receipt [12:27:59]cmd_close_receipt [12:27:59]MH_GetDate [12:27:59]Write to MH i2c: F0 00 00 AE 09 A6 [12:27:59]Write i2c OK [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: F0 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: F0 09 00 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: F0 09 00 AE 09 00 4F E0 1C 67 68 46 19 67 8F [12:27:59]GetLastDocTimeStamp 1729945620 [12:27:59]current date 1729945679 [12:27:59]FM_GetShiftState [12:27:59]SAM_PROTO_GetShiftState [12:27:59]wFMCommunicate request_size=4 [12:27:59]MH_SAM_APDU [12:27:59]CAPDU: 80 13 01 00 [12:27:59]Write to MH i2c: E2 08 00 AF 09 80 13 01 00 00 00 00 00 35 [12:27:59]Write i2c OK [12:27:59]MH_I2C_Read... [12:27:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:59]Read from MH i2c: E2 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: E2 0E 00 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: E2 0E 00 AF 09 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 44 [12:27:59]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:27:59]wFMCommunicate OK [12:27:59]SAM_PROTO_GetShiftState done [12:27:59]FM_GetShiftState done [12:27:59]opened in 1729900879 [12:27:59]opened+sec_in_day 1729987279 [12:27:59]quantity*price = 20003 [12:27:59]sum+1 = 20004 [12:27:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 218 26.10.2024 12:27 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201456 ФПД: 193826595821469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T122759&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201456&fm=193826595821469&tin=02508201610067®Number=0000000000091777&sum=20000 [12:28:00]StoreToDocumentArchive [12:28:00]shift 543 fd 201456 [12:28:00]save to /storage/0543/doc_00201456 [12:28:00]save last doc name /storage/0543/doc_00201456 to /storage/kkm_last_doc_name [12:28:00]save OK [12:28:00]Clear old archive folders... [12:28:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:28:00]tlvbuf is 01F3D0F0 [12:28:00]SAM_PROTO_ClearQueue [12:28:00]wFMCommunicate request_size=4 [12:28:00]MH_SAM_APDU [12:28:00]CAPDU: 80 09 00 00 [12:28:00]Write to MH i2c: E2 08 00 BC 09 80 09 00 00 00 00 00 00 37 [12:28:00]Write i2c OK [12:28:00]MH_I2C_Read... [12:28:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:00]Read from MH i2c: E2 [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: E2 03 00 [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: E2 03 00 BC 09 00 90 00 39 [12:28:00]RAPDU: 90 00 [12:28:00]wFMCommunicate OK [12:28:00]SAM_PROTO_ClearQueue done [12:28:00]KKMCreateOFDPacket [12:28:00]OFDProtocolAddRootSTLVToBuf [12:28:00]FM_MakeSignedData [12:28:00]FM_MakeSignedData [12:28:00]SAM_PROTO_SignData [12:28:00]wFMCommunicate request_size=4 [12:28:00]MH_SAM_APDU [12:28:00]CAPDU: 80 0D 01 02 [12:28:00]Write to MH i2c: E2 08 00 BD 09 80 0D 01 02 00 00 00 00 3F [12:28:00]Write i2c OK [12:28:00]MH_I2C_Read... [12:28:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:00]Read from MH i2c: E2 [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: E2 03 00 [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: E2 03 00 BD 09 00 90 00 3A [12:28:00]RAPDU: 90 00 [12:28:00]wFMCommunicate OK [12:28:00]wFMCommunicate request_size=255 [12:28:00]MH_SAM_APDU [12:28:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 DA 00 00 00 F4 03 04 00 4F E0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F0 12 03 00 35 04 06 00 B0 [12:28:00]Write to MH i2c: E2 02 01 BE 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 32 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 DA 00 00 00 F4 03 04 00 4F E0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F0 12 03 00 35 04 06 00 B0 00 00 F7 [12:28:00]Write i2c OK [12:28:00]MH_I2C_Read... [12:28:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:00]Read from MH i2c: E2 [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: E2 03 00 [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: E2 03 00 BE 09 00 90 00 3B [12:28:00]RAPDU: 90 00 [12:28:00]wFMCommunicate OK [12:28:00]wFMCommunicate request_size=10 [12:28:00]MH_SAM_APDU [12:28:00]CAPDU: 80 0D 02 02 05 48 C5 64 57 9D [12:28:00]Write to MH i2c: E2 0D 00 BF 09 80 0D 02 02 05 00 48 C5 64 57 9D 00 00 B1 [12:28:00]Write i2c OK [12:28:00]MH_I2C_Read... [12:28:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:00]Read from MH i2c: E2 [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: E2 03 00 [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: E2 03 00 BF 09 00 90 00 3C [12:28:00]RAPDU: 90 00 [12:28:00]wFMCommunicate OK [12:28:00]wFMCommunicate request_size=4 [12:28:00]MH_SAM_APDU [12:28:00]CAPDU: 80 0D 03 02 [12:28:00]Write to MH i2c: E2 08 00 C0 09 80 0D 03 02 00 00 00 00 44 [12:28:00]Write i2c OK [12:28:00]MH_I2C_Read... [12:28:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:00]Read from MH i2c: E2 [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: E2 0B 00 [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: E2 0B 00 C0 09 00 B5 6B 9A 4A 4E 1C BC BC 90 00 2B [12:28:00]RAPDU: B5 6B 9A 4A 4E 1C BC BC 90 00 [12:28:00]wFMCommunicate OK [12:28:00]SAM_PROTO_SignData done [12:28:00]FM_MakeSignedData done [12:28:00]CreateOFDProtocolMessage [12:28:00]wFMCommunicate request_size=4 [12:28:00]MH_SAM_APDU [12:28:00]CAPDU: 80 11 00 00 [12:28:00]Write to MH i2c: E2 08 00 C1 09 80 11 00 00 00 00 00 00 44 [12:28:00]Write i2c OK [12:28:00]MH_I2C_Read... [12:28:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:00]Read from MH i2c: E2 [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: E2 17 00 [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: E2 17 00 C1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 99 [12:28:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:28:00]wFMCommunicate OK [12:28:00]CreateOFDProtocolMessage done [12:28:00]OFDSenderStorePacket 201456 [12:28:00]StoreOFDPacket docnum=201456 [12:28:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 44 84 07 01 64 23 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 32 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 DA 00 00 00 F4 03 04 00 4F E0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F0 12 03 00 35 04 06 00 B0 48 C5 64 57 9D B5 6B 9A 4A 4E 1C BC BC [12:28:00]CheckFolder [12:28:00]dirname=/storage/ofd_packets [12:28:00]CheckFolder done [12:28:00]ProducePacketName [12:28:00]name=ofd_packets/00201456 [12:28:00]NVStorageSaveData ofd_packets/00201456 [12:28:00]File name is /storage/ofd_packets/00201456 [12:28:00]Write 301 bytes [12:28:00]NVStorageSaveData done [12:28:00]OFDSenderStorePacket done [12:28:00]KKMCreateOFDPacket done [12:28:00]NVStorageSaveData kkm_last_timestamp [12:28:00]File name is /storage/kkm_last_timestamp [12:28:00]Write 4 bytes [12:28:00]NVStorageSaveData done [12:28:00]ExternCall_PrintAddStr [12:28:00]wPrintStart [12:28:00]Write to MH i2c: 01 00 00 C2 09 CB [12:28:00]Write i2c OK [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: 01 [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: 01 07 00 [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: 01 07 00 C2 09 00 00 00 00 00 FF 0F E0 [12:28:00]RasterBufferAndPrint [12:28:00]line Счет N : (1)449205 [12:28:00]line ИНН: 02508201610067 [12:28:00]line Контрольно-Кассовый Чек [12:28:00]line ПРОДАЖА [12:28:00]line ТРК (МРК, ГНК) : 41 [12:28:00]line Товар: 2710124130 [12:28:00]line Аи-92-К-2 [12:28:00]line 2.990 * 66.90 [12:28:00]line = 200.03 [12:28:00]line НДС 12% НСП 1% [12:28:00]line > о реализуемом товаре [12:28:00]line ОКРУГЛЕНИЕ: -0.03 [12:28:00]line ИТОГО: 200.00 [12:28:00]line Внесено: 200.00 [12:28:00]line СДАЧА: 0.00 [12:28:00]line НСП 1% : 1.77 [12:28:00]line НДС 12% : 21.24 [12:28:00]line Наличными: 200.00 [12:28:00]line Безнал.: 0.00 [12:28:00]line Место: АЗС № 171 "Партнер Нефть" [12:28:00]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:28:00]line СНО: Общий режим [12:28:00]line Чек 218 26.10.2024 12:27 [12:28:00]line Смена: 543 ФФД: 1.0 [12:28:00]line ЗНМ: 0300000109 [12:28:00]line РНМ: 0000000000091777 [12:28:00]line Версия ККМ: 001 [12:28:00]line ФМ: 0000000000871756 [12:28:00]line ФД: 201456 [12:28:00]line ФПД: 193826595821469 [12:28:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T122759&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201456&fm=193826595821469&tin=02508201610067®Number=0000000000091777&sum=20000 [12:28:01]OFD Sender: Processing packet 201456 [packets to send 112, broken 111] [12:28:01]ProducePacketName [12:28:01]name=ofd_packets/00201456 [12:28:01]OFD Sender: To server: pG, [12:28:01]CommunicateWithHost lk.salyk.kg:30040 [12:28:01]ConnectInit lk.salyk.kg [12:28:01]written 0, free lines is 4095 [12:28:01]Connected sock=10 [12:28:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 44 84 07 01 64 23 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 32 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 DA 00 00 00 F4 03 04 00 4F E0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F0 12 03 00 35 04 06 00 B0 48 C5 64 57 9D B5 6B 9A 4A 4E 1C BC BC [12:28:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 0A C9 47 00 BC C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F0 12 03 00 F4 03 04 00 F9 8B 1C 67 B6 04 01 00 00 62 27 4E 3C EE 1E EC 9A [12:28:01]CommunicateWithHost err = 0 [12:28:01]CheckOFDResponse [12:28:01]1017 (14) - 77093643461234 [12:28:01]1041 (16) - 0000000000871756 [12:28:01]1040 (4) - 201456 [12:28:01]1012 (4) - 26.10.2024 06:28 [12:28:01]1206 (1) - 0 [12:28:01]OFD Sender: Remove packet 201456 [12:28:01]ProducePacketName [12:28:01]name=ofd_packets/00201456 [12:28:01]NVStorageDeleteData [12:28:01]Write to MH i2c: 01 00 00 ED 09 F6 [12:28:01]Write i2c OK [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: 01 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: 01 07 00 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: 01 07 00 ED 09 00 00 00 00 00 AA 0C B3 [12:28:01]RasterBufferAndPrint [12:28:01]line [12:28:01]line [12:28:01]line [12:28:01]line [12:28:01]line [12:28:01]written 0, free lines is 3249 [12:28:01]MH_Cut [12:28:01]Write to MH i2c: D1 01 00 F4 09 01 CF [12:28:01]Write i2c OK [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: D1 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: D1 01 00 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: D1 01 00 F4 09 00 CE [12:28:01]Write to MH i2c: 01 00 00 F5 09 FE [12:28:01]Write i2c OK [12:28:01]MH_I2C_Read... [12:28:02]OFD Sender: No OFD packet to send [12:28:02]*** Cut start [12:28:02]*** Purtial cut [12:28:02]*** Stage 1: CUTSNS_PIN = 1 [12:28:02]Read from MH i2c: 01 [12:28:02]MH_I2C_Read... [12:28:02]*** Stop cut motor [12:28:02]*** Cut end [12:28:02]Read from MH i2c: 01 07 00 [12:28:02]MH_I2C_Read... [12:28:02]Read from MH i2c: 01 07 00 F5 09 00 00 00 00 00 FF 0F 13 [12:28:02]process_action close_receipt done [12:28:02]requested_data is exist [12:28:02]produce_requested_data [12:28:02]requested_item fm.sn is exist - process it [12:28:02]wFMCommunicate request_size=4 [12:28:02]MH_SAM_APDU [12:28:02]CAPDU: 80 11 00 00 [12:28:02]Write to MH i2c: E2 08 00 F6 09 80 11 00 00 00 00 00 00 79 [12:28:02]Write i2c OK [12:28:02]MH_I2C_Read... [12:28:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:02]Read from MH i2c: E2 [12:28:02]MH_I2C_Read... [12:28:02]Read from MH i2c: E2 17 00 [12:28:02]MH_I2C_Read... [12:28:02]Read from MH i2c: E2 17 00 F6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CE [12:28:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:28:02]wFMCommunicate OK [12:28:02]requested_item fd.num is exist - process it [12:28:02]SAM_PROTO_GetFieldsCounters [12:28:02]wFMCommunicate request_size=4 [12:28:02]MH_SAM_APDU [12:28:02]CAPDU: 80 13 00 00 [12:28:02]Write to MH i2c: E2 08 00 F7 09 80 13 00 00 00 00 00 00 7C [12:28:02]Write i2c OK [12:28:02]MH_I2C_Read... [12:28:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:03]Read from MH i2c: E2 [12:28:03]MH_I2C_Read... [12:28:03]Read from MH i2c: E2 62 00 [12:28:03]MH_I2C_Read... [12:28:03]Read from MH i2c: E2 62 00 F7 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F0 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [12:28:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F0 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:28:03]wFMCommunicate OK [12:28:03]SAM_PROTO_GetFieldsCounters done [12:28:03]requested_item shift.num is exist - process it [12:28:03]requested_item shift.opened is exist - process it [12:28:03]req_shift_opened [12:28:03]FM_GetShiftState [12:28:03]SAM_PROTO_GetShiftState [12:28:03]wFMCommunicate request_size=4 [12:28:03]MH_SAM_APDU [12:28:03]CAPDU: 80 13 01 00 [12:28:03]Write to MH i2c: E2 08 00 F8 09 80 13 01 00 00 00 00 00 7E [12:28:03]Write i2c OK [12:28:03]MH_I2C_Read... [12:28:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:03]Read from MH i2c: E2 [12:28:03]MH_I2C_Read... [12:28:03]Read from MH i2c: E2 0E 00 [12:28:03]MH_I2C_Read... [12:28:03]Read from MH i2c: E2 0E 00 F8 09 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 8D [12:28:03]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:28:03]wFMCommunicate OK [12:28:03]SAM_PROTO_GetShiftState done [12:28:03]FM_GetShiftState done [12:28:03]req_shift_opened done [12:28:03]requested_item shift.open_date is exist - process it [12:28:03]req_shift_open_date [12:28:03]req_shift_open_date done [12:28:03]produce_requested_data done [12:28:03]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201456,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:28:03]process_action_free close_receipt [12:28:03]json_value_free [12:28:03]json_value_free done [12:28:03]process_json_proto returns [12:28:03]Send response to host [12:28:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201456,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:28:03]free response buf [12:28:03]execute_script done [12:28:03]execute_script returns [12:28:03]free content buf [12:28:03]Sock 9.Close socket [12:28:03]Sock 9.Thread stoped [12:28:07]OFD Sender: No OFD packet to send [12:28:12]OFD Sender: No OFD packet to send [12:28:17]OFD Sender: No OFD packet to send [12:28:22]OFD Sender: No OFD packet to send [12:28:27]OFD Sender: No OFD packet to send [12:28:32]OFD Sender: No OFD packet to send [12:28:37]OFD Sender: No OFD packet to send [12:28:42]OFD Sender: No OFD packet to send [12:28:47]OFD Sender: No OFD packet to send [12:28:52]OFD Sender: No OFD packet to send [12:28:57]OFD Sender: No OFD packet to send [12:29:02]OFD Sender: No OFD packet to send [12:29:07]OFD Sender: No OFD packet to send [12:29:11]accept exits with 8 [12:29:11]New connection [12:29:11]New thread 3066834276 created [12:29:11]Thread 3066690916 joined [12:29:11]Waiting for new connection... [12:29:11] Sock 8.Parse request [12:29:11]Sock 8.Check first char [12:29:11]Sock 8.First char is OK [12:29:11]request: POST /json_proto HTTP/1.0 [12:29:11]Method: POST [12:29:11]URL: /json_proto [12:29:11]Method is POST - this is cgi request [12:29:11]url: /json_proto [12:29:11]query_string will be loaded in cgi processing [12:29:11]execute_cgi json_proto POST (null) [12:29:11]execute_cgi path=json_proto method=POST [12:29:11]POST find Content-Length [12:29:11]Host: 172.17.63.195:8080 [12:29:11]Content-Length: 678 [12:29:11]Content-Type: application/json [12:29:11] [12:29:11]POST finish read [12:29:11]Found Content-Length = 678 [12:29:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:11]execute_script... [12:29: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)449206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:11]POST & json_proto [12:29:11]process_json_proto [12:29:11]json parsed OK: [12:29:11]protocol is kg_v1.0 [12:29:11]action value=close_receipt [12:29:11]process_action close_receipt [12:29:11]cmd_close_receipt [12:29:11]MH_GetDate [12:29:11]Write to MH i2c: F0 00 00 F9 09 F1 [12:29:11]Write i2c OK [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: F0 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: F0 09 00 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: F0 09 00 F9 09 00 98 E0 1C 67 68 46 19 67 23 [12:29:11]GetLastDocTimeStamp 1729945679 [12:29:11]current date 1729945752 [12:29:11]FM_GetShiftState [12:29:11]SAM_PROTO_GetShiftState [12:29:11]wFMCommunicate request_size=4 [12:29:11]MH_SAM_APDU [12:29:11]CAPDU: 80 13 01 00 [12:29:11]Write to MH i2c: E2 08 00 FA 09 80 13 01 00 00 00 00 00 80 [12:29:11]Write i2c OK [12:29:11]MH_I2C_Read... [12:29:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:11]Read from MH i2c: E2 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 0E 00 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 0E 00 FA 09 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 8F [12:29:11]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:29:11]wFMCommunicate OK [12:29:11]SAM_PROTO_GetShiftState done [12:29:11]FM_GetShiftState done [12:29:11]opened in 1729900879 [12:29:11]opened+sec_in_day 1729987279 [12:29:11]quantity*price = 80012 [12:29:11]sum+1 = 80013 [12:29:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 219 26.10.2024 12:29 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201457 ФПД: 164468628793402 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T122912&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201457&fm=164468628793402&tin=02508201610067®Number=0000000000091777&sum=80000 [12:29:13]StoreToDocumentArchive [12:29:13]shift 543 fd 201457 [12:29:13]save to /storage/0543/doc_00201457 [12:29:13]save last doc name /storage/0543/doc_00201457 to /storage/kkm_last_doc_name [12:29:13]save OK [12:29:13]Clear old archive folders... [12:29:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:29:13]tlvbuf is 01F4F740 [12:29:13]SAM_PROTO_ClearQueue [12:29:13]wFMCommunicate request_size=4 [12:29:13]MH_SAM_APDU [12:29:13]CAPDU: 80 09 00 00 [12:29:13]Write to MH i2c: E2 08 00 07 0A 80 09 00 00 00 00 00 00 83 [12:29:13]Write i2c OK [12:29:13]MH_I2C_Read... [12:29:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:13]Read from MH i2c: E2 [12:29:13]MH_I2C_Read... [12:29:13]Read from MH i2c: E2 03 00 [12:29:13]MH_I2C_Read... [12:29:13]Read from MH i2c: E2 03 00 07 0A 00 90 00 85 [12:29:13]RAPDU: 90 00 [12:29:13]wFMCommunicate OK [12:29:13]SAM_PROTO_ClearQueue done [12:29:13]KKMCreateOFDPacket [12:29:13]OFDProtocolAddRootSTLVToBuf [12:29:13]FM_MakeSignedData [12:29:13]FM_MakeSignedData [12:29:13]SAM_PROTO_SignData [12:29:13]wFMCommunicate request_size=4 [12:29:13]MH_SAM_APDU [12:29:13]CAPDU: 80 0D 01 02 [12:29:13]Write to MH i2c: E2 08 00 08 0A 80 0D 01 02 00 00 00 00 8B [12:29:13]Write i2c OK [12:29:13]MH_I2C_Read... [12:29:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:13]Read from MH i2c: E2 [12:29:13]MH_I2C_Read... [12:29:13]Read from MH i2c: E2 03 00 [12:29:13]MH_I2C_Read... [12:29:13]Read from MH i2c: E2 03 00 08 0A 00 90 00 86 [12:29:13]RAPDU: 90 00 [12:29:13]wFMCommunicate OK [12:29:13]wFMCommunicate request_size=255 [12:29:13]MH_SAM_APDU [12:29: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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 98 E0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F1 12 03 00 35 04 06 00 95 [12:29:13]Write to MH i2c: E2 02 01 09 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 98 E0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F1 12 03 00 35 04 06 00 95 00 00 9D [12:29:13]Write i2c OK [12:29:13]MH_I2C_Read... [12:29:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:13]Read from MH i2c: E2 [12:29:13]MH_I2C_Read... [12:29:13]Read from MH i2c: E2 03 00 [12:29:13]MH_I2C_Read... [12:29:13]Read from MH i2c: E2 03 00 09 0A 00 90 00 87 [12:29:13]RAPDU: 90 00 [12:29:13]wFMCommunicate OK [12:29:13]wFMCommunicate request_size=10 [12:29:13]MH_SAM_APDU [12:29:13]CAPDU: 80 0D 02 02 05 95 56 32 28 3A [12:29:13]Write to MH i2c: E2 0D 00 0A 0A 80 0D 02 02 05 00 95 56 32 28 3A 00 00 17 [12:29:13]Write i2c OK [12:29:13]MH_I2C_Read... [12:29:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:13]Read from MH i2c: E2 [12:29:13]MH_I2C_Read... [12:29:13]Read from MH i2c: E2 03 00 [12:29:13]MH_I2C_Read... [12:29:13]Read from MH i2c: E2 03 00 0A 0A 00 90 00 88 [12:29:13]RAPDU: 90 00 [12:29:13]wFMCommunicate OK [12:29:13]wFMCommunicate request_size=4 [12:29:13]MH_SAM_APDU [12:29:13]CAPDU: 80 0D 03 02 [12:29:13]Write to MH i2c: E2 08 00 0B 0A 80 0D 03 02 00 00 00 00 90 [12:29:13]Write i2c OK [12:29:13]MH_I2C_Read... [12:29:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:13]Read from MH i2c: E2 [12:29:13]MH_I2C_Read... [12:29:13]Read from MH i2c: E2 0B 00 [12:29:13]MH_I2C_Read... [12:29:13]Read from MH i2c: E2 0B 00 0B 0A 00 87 FD 84 DE B3 56 48 46 90 00 0E [12:29:13]RAPDU: 87 FD 84 DE B3 56 48 46 90 00 [12:29:13]wFMCommunicate OK [12:29:13]SAM_PROTO_SignData done [12:29:13]FM_MakeSignedData done [12:29:13]CreateOFDProtocolMessage [12:29:13]wFMCommunicate request_size=4 [12:29:13]MH_SAM_APDU [12:29:13]CAPDU: 80 11 00 00 [12:29:13]Write to MH i2c: E2 08 00 0C 0A 80 11 00 00 00 00 00 00 90 [12:29:13]Write i2c OK [12:29:13]MH_I2C_Read... [12:29:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:13]Read from MH i2c: E2 [12:29:13]MH_I2C_Read... [12:29:13]Read from MH i2c: E2 17 00 [12:29:13]MH_I2C_Read... [12:29:13]Read from MH i2c: E2 17 00 0C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E5 [12:29:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:29:13]wFMCommunicate OK [12:29:13]CreateOFDProtocolMessage done [12:29:13]OFDSenderStorePacket 201457 [12:29:13]StoreOFDPacket docnum=201457 [12:29:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 DA 3B 07 01 08 F6 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 98 E0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F1 12 03 00 35 04 06 00 95 95 56 32 28 3A 87 FD 84 DE B3 56 48 46 [12:29:13]CheckFolder [12:29:13]dirname=/storage/ofd_packets [12:29:13]CheckFolder done [12:29:13]ProducePacketName [12:29:13]name=ofd_packets/00201457 [12:29:13]NVStorageSaveData ofd_packets/00201457 [12:29:13]File name is /storage/ofd_packets/00201457 [12:29:13]Write 301 bytes [12:29:13]NVStorageSaveData done [12:29:13]OFDSenderStorePacket done [12:29:13]KKMCreateOFDPacket done [12:29:13]NVStorageSaveData kkm_last_timestamp [12:29:13]File name is /storage/kkm_last_timestamp [12:29:13]Write 4 bytes [12:29:13]NVStorageSaveData done [12:29:13]ExternCall_PrintAddStr [12:29:13]wPrintStart [12:29:13]Write to MH i2c: 01 00 00 0D 0A 17 [12:29:13]Write i2c OK [12:29:13]MH_I2C_Read... [12:29:13]Read from MH i2c: 01 [12:29:13]MH_I2C_Read... [12:29:13]Read from MH i2c: 01 07 00 [12:29:13]MH_I2C_Read... [12:29:13]Read from MH i2c: 01 07 00 0D 0A 00 00 00 00 00 FF 0F 2C [12:29:13]RasterBufferAndPrint [12:29:13]line Счет N : (1)449206 [12:29:13]line ИНН: 02508201610067 [12:29:13]line Контрольно-Кассовый Чек [12:29:13]line ПРОДАЖА [12:29:13]line ТРК (МРК, ГНК) : 62 [12:29:13]line Товар: 2710124130 [12:29:13]line Аи-92-К-2 [12:29:13]line 11.960 * 66.90 [12:29:13]line = 800.12 [12:29:13]line НДС 12% НСП 1% [12:29:13]line > о реализуемом товаре [12:29:13]line ОКРУГЛЕНИЕ: -0.12 [12:29:13]line ИТОГО: 800.00 [12:29:13]line Внесено: 800.00 [12:29:13]line СДАЧА: 0.00 [12:29:13]line НСП 1% : 7.08 [12:29:13]line НДС 12% : 84.97 [12:29:13]line Наличными: 800.00 [12:29:13]line Безнал.: 0.00 [12:29:13]line Место: АЗС № 171 "Партнер Нефть" [12:29:13]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:29:13]line СНО: Общий режим [12:29:13]line Чек 219 26.10.2024 12:29 [12:29:13]line Смена: 543 ФФД: 1.0 [12:29:13]line ЗНМ: 0300000109 [12:29:13]line РНМ: 0000000000091777 [12:29:13]line Версия ККМ: 001 [12:29:13]line ФМ: 0000000000871756 [12:29:13]line ФД: 201457 [12:29:13]line ФПД: 164468628793402 [12:29:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T122912&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201457&fm=164468628793402&tin=02508201610067®Number=0000000000091777&sum=80000 [12:29:13]OFD Sender: Processing packet 201457 [packets to send 112, broken 111] [12:29:13]ProducePacketName [12:29:13]name=ofd_packets/00201457 [12:29:13]OFD Sender: To server: pG, [12:29:13]CommunicateWithHost lk.salyk.kg:30040 [12:29:13]ConnectInit lk.salyk.kg [12:29:13]written 0, free lines is 4095 [12:29:13]Connected sock=10 [12:29:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 DA 3B 07 01 08 F6 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 98 E0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F1 12 03 00 35 04 06 00 95 95 56 32 28 3A 87 FD 84 DE B3 56 48 46 [12:29:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A8 F1 47 00 C3 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F1 12 03 00 F4 03 04 00 41 8C 1C 67 B6 04 01 00 00 47 C2 E0 CF 32 E4 5C 4A [12:29:14]CommunicateWithHost err = 0 [12:29:14]CheckOFDResponse [12:29:14]1017 (14) - 77093643461234 [12:29:14]1041 (16) - 0000000000871756 [12:29:14]1040 (4) - 201457 [12:29:14]1012 (4) - 26.10.2024 06:29 [12:29:14]1206 (1) - 0 [12:29:14]OFD Sender: Remove packet 201457 [12:29:14]ProducePacketName [12:29:14]name=ofd_packets/00201457 [12:29:14]NVStorageDeleteData [12:29:14]Write to MH i2c: 01 00 00 38 0A 42 [12:29:14]Write i2c OK [12:29:14]MH_I2C_Read... [12:29:14]Read from MH i2c: 01 [12:29:14]MH_I2C_Read... [12:29:14]Read from MH i2c: 01 07 00 [12:29:14]MH_I2C_Read... [12:29:14]Read from MH i2c: 01 07 00 38 0A 00 00 00 00 00 A8 0C FD [12:29:14]RasterBufferAndPrint [12:29:14]line [12:29:14]line [12:29:14]line [12:29:14]line [12:29:14]line [12:29:14]written 0, free lines is 3246 [12:29:14]MH_Cut [12:29:14]Write to MH i2c: D1 01 00 3F 0A 01 1B [12:29:14]Write i2c OK [12:29:14]MH_I2C_Read... [12:29:14]Read from MH i2c: D1 [12:29:14]MH_I2C_Read... [12:29:14]Read from MH i2c: D1 01 00 [12:29:14]MH_I2C_Read... [12:29:14]Read from MH i2c: D1 01 00 3F 0A 00 1A [12:29:14]Write to MH i2c: 01 00 00 40 0A 4A [12:29:14]Write i2c OK [12:29:14]MH_I2C_Read... [12:29:14]OFD Sender: No OFD packet to send [12:29:15]*** Cut start [12:29:15]*** Purtial cut [12:29:15]*** Stage 1: CUTSNS_PIN = 1 [12:29:15]Read from MH i2c: 01 [12:29:15]MH_I2C_Read... [12:29:15]*** Stop cut motor [12:29:15]*** Cut end [12:29:15]Read from MH i2c: 01 07 00 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: 01 07 00 40 0A 00 00 00 00 00 FF 0F 5F [12:29:15]process_action close_receipt done [12:29:15]requested_data is exist [12:29:15]produce_requested_data [12:29:15]requested_item fm.sn is exist - process it [12:29:15]wFMCommunicate request_size=4 [12:29:15]MH_SAM_APDU [12:29:15]CAPDU: 80 11 00 00 [12:29:15]Write to MH i2c: E2 08 00 41 0A 80 11 00 00 00 00 00 00 C5 [12:29:15]Write i2c OK [12:29:15]MH_I2C_Read... [12:29:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:15]Read from MH i2c: E2 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: E2 17 00 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: E2 17 00 41 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1A [12:29:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:29:15]wFMCommunicate OK [12:29:15]requested_item fd.num is exist - process it [12:29:15]SAM_PROTO_GetFieldsCounters [12:29:15]wFMCommunicate request_size=4 [12:29:15]MH_SAM_APDU [12:29:15]CAPDU: 80 13 00 00 [12:29:15]Write to MH i2c: E2 08 00 42 0A 80 13 00 00 00 00 00 00 C8 [12:29:15]Write i2c OK [12:29:15]MH_I2C_Read... [12:29:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:15]Read from MH i2c: E2 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: E2 62 00 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: E2 62 00 42 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F1 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [12:29:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F1 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:15]wFMCommunicate OK [12:29:15]SAM_PROTO_GetFieldsCounters done [12:29:15]requested_item shift.num is exist - process it [12:29:15]requested_item shift.opened is exist - process it [12:29:15]req_shift_opened [12:29:15]FM_GetShiftState [12:29:15]SAM_PROTO_GetShiftState [12:29:15]wFMCommunicate request_size=4 [12:29:15]MH_SAM_APDU [12:29:15]CAPDU: 80 13 01 00 [12:29:15]Write to MH i2c: E2 08 00 43 0A 80 13 01 00 00 00 00 00 CA [12:29:15]Write i2c OK [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: E2 [12:29:15]MH_I2C_Read... [12:29:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:15]Read from MH i2c: E2 0E 00 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: E2 0E 00 43 0A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D9 [12:29:15]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:29:15]wFMCommunicate OK [12:29:15]SAM_PROTO_GetShiftState done [12:29:15]FM_GetShiftState done [12:29:15]req_shift_opened done [12:29:15]requested_item shift.open_date is exist - process it [12:29:15]req_shift_open_date [12:29:15]req_shift_open_date done [12:29:15]produce_requested_data done [12:29:15]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201457,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:29:15]process_action_free close_receipt [12:29:15]json_value_free [12:29:15]json_value_free done [12:29:15]process_json_proto returns [12:29:15]Send response to host [12:29:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201457,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:29:15]free response buf [12:29:15]execute_script done [12:29:15]execute_script returns [12:29:15]free content buf [12:29:15]Sock 8.Close socket [12:29:15]Sock 8.Thread stoped [12:29:19]OFD Sender: No OFD packet to send [12:29:24]OFD Sender: No OFD packet to send [12:29:29]OFD Sender: No OFD packet to send [12:29:34]OFD Sender: No OFD packet to send [12:29:39]OFD Sender: No OFD packet to send [12:29:41]accept exits with 9 [12:29:41]New connection [12:29:41]New thread 3066690916 created [12:29:41]Thread 3066834276 joined [12:29:41]Waiting for new connection... [12:29:41] Sock 9.Parse request [12:29:41]Sock 9.Check first char [12:29:41]Sock 9.First char is OK [12:29:41]request: POST /json_proto HTTP/1.0 [12:29:41]Method: POST [12:29:41]URL: /json_proto [12:29:41]Method is POST - this is cgi request [12:29:41]url: /json_proto [12:29:41]query_string will be loaded in cgi processing [12:29:41]execute_cgi json_proto POST (null) [12:29:41]execute_cgi path=json_proto method=POST [12:29:41]POST find Content-Length [12:29:41]Host: 172.17.63.195:8080 [12:29:41]Content-Length: 677 [12:29:41]Content-Type: application/json [12:29:41] [12:29:41]POST finish read [12:29:41]Found Content-Length = 677 [12:29:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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" ] } } [12:29:41]execute_script... [12:29: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)449207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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" ] } } [12:29:41]POST & json_proto [12:29:41]process_json_proto [12:29:41]json parsed OK: [12:29:41]protocol is kg_v1.0 [12:29:41]action value=close_receipt [12:29:41]process_action close_receipt [12:29:41]cmd_close_receipt [12:29:41]MH_GetDate [12:29:41]Write to MH i2c: F0 00 00 44 0A 3D [12:29:41]Write i2c OK [12:29:41]MH_I2C_Read... [12:29:41]Read from MH i2c: F0 [12:29:41]MH_I2C_Read... [12:29:41]Read from MH i2c: F0 09 00 [12:29:41]MH_I2C_Read... [12:29:41]Read from MH i2c: F0 09 00 44 0A 00 B6 E0 1C 67 68 46 19 67 8D [12:29:41]GetLastDocTimeStamp 1729945752 [12:29:41]current date 1729945782 [12:29:41]FM_GetShiftState [12:29:41]SAM_PROTO_GetShiftState [12:29:41]wFMCommunicate request_size=4 [12:29:41]MH_SAM_APDU [12:29:41]CAPDU: 80 13 01 00 [12:29:41]Write to MH i2c: E2 08 00 45 0A 80 13 01 00 00 00 00 00 CC [12:29:41]Write i2c OK [12:29:41]MH_I2C_Read... [12:29:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:41]Read from MH i2c: E2 [12:29:41]MH_I2C_Read... [12:29:41]Read from MH i2c: E2 0E 00 [12:29:41]MH_I2C_Read... [12:29:41]Read from MH i2c: E2 0E 00 45 0A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 DB [12:29:41]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:29:41]wFMCommunicate OK [12:29:41]SAM_PROTO_GetShiftState done [12:29:41]FM_GetShiftState done [12:29:41]opened in 1729900879 [12:29:41]opened+sec_in_day 1729987279 [12:29:41]quantity*price = 50010 [12:29:41]sum+1 = 50012 [12:29:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 220 26.10.2024 12:29 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201458 ФПД: 54999069475369 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T122942&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201458&fm=54999069475369&tin=02508201610067®Number=0000000000091777&sum=50000 [12:29:42]StoreToDocumentArchive [12:29:42]shift 543 fd 201458 [12:29:42]save to /storage/0543/doc_00201458 [12:29:42]save last doc name /storage/0543/doc_00201458 to /storage/kkm_last_doc_name [12:29:42]save OK [12:29:42]Clear old archive folders... [12:29:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:29:42]tlvbuf is 01F7CD80 [12:29:42]SAM_PROTO_ClearQueue [12:29:42]wFMCommunicate request_size=4 [12:29:42]MH_SAM_APDU [12:29:42]CAPDU: 80 09 00 00 [12:29:42]Write to MH i2c: E2 08 00 52 0A 80 09 00 00 00 00 00 00 CE [12:29:42]Write i2c OK [12:29:42]MH_I2C_Read... [12:29:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:42]Read from MH i2c: E2 [12:29:42]MH_I2C_Read... [12:29:42]Read from MH i2c: E2 03 00 [12:29:42]MH_I2C_Read... [12:29:42]Read from MH i2c: E2 03 00 52 0A 00 90 00 D0 [12:29:42]RAPDU: 90 00 [12:29:42]wFMCommunicate OK [12:29:42]SAM_PROTO_ClearQueue done [12:29:42]KKMCreateOFDPacket [12:29:42]OFDProtocolAddRootSTLVToBuf [12:29:42]FM_MakeSignedData [12:29:42]FM_MakeSignedData [12:29:42]SAM_PROTO_SignData [12:29:42]wFMCommunicate request_size=4 [12:29:42]MH_SAM_APDU [12:29:42]CAPDU: 80 0D 01 02 [12:29:42]Write to MH i2c: E2 08 00 53 0A 80 0D 01 02 00 00 00 00 D6 [12:29:42]Write i2c OK [12:29:42]MH_I2C_Read... [12:29:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:42]Read from MH i2c: E2 [12:29:42]MH_I2C_Read... [12:29:42]Read from MH i2c: E2 03 00 [12:29:42]MH_I2C_Read... [12:29:42]Read from MH i2c: E2 03 00 53 0A 00 90 00 D1 [12:29:42]RAPDU: 90 00 [12:29:42]wFMCommunicate OK [12:29:42]wFMCommunicate request_size=255 [12:29:42]MH_SAM_APDU [12:29:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 DC 00 00 00 F4 03 04 00 B6 E0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F2 12 03 00 35 04 06 00 32 [12:29:42]Write to MH i2c: E2 02 01 54 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 DC 00 00 00 F4 03 04 00 B6 E0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F2 12 03 00 35 04 06 00 32 00 00 92 [12:29:42]Write i2c OK [12:29:42]MH_I2C_Read... [12:29:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:42]Read from MH i2c: E2 [12:29:42]MH_I2C_Read... [12:29:42]Read from MH i2c: E2 03 00 [12:29:42]MH_I2C_Read... [12:29:42]Read from MH i2c: E2 03 00 54 0A 00 90 00 D2 [12:29:42]RAPDU: 90 00 [12:29:42]wFMCommunicate OK [12:29:42]wFMCommunicate request_size=10 [12:29:42]MH_SAM_APDU [12:29:42]CAPDU: 80 0D 02 02 05 05 77 FF C2 29 [12:29:42]Write to MH i2c: E2 0D 00 55 0A 80 0D 02 02 05 00 05 77 FF C2 29 00 00 49 [12:29:42]Write i2c OK [12:29:42]MH_I2C_Read... [12:29:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:42]Read from MH i2c: E2 [12:29:42]MH_I2C_Read... [12:29:42]Read from MH i2c: E2 03 00 [12:29:42]MH_I2C_Read... [12:29:42]Read from MH i2c: E2 03 00 55 0A 00 90 00 D3 [12:29:42]RAPDU: 90 00 [12:29:42]wFMCommunicate OK [12:29:42]wFMCommunicate request_size=4 [12:29:42]MH_SAM_APDU [12:29:42]CAPDU: 80 0D 03 02 [12:29:42]Write to MH i2c: E2 08 00 56 0A 80 0D 03 02 00 00 00 00 DB [12:29:42]Write i2c OK [12:29:42]MH_I2C_Read... [12:29:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:42]Read from MH i2c: E2 [12:29:42]MH_I2C_Read... [12:29:42]Read from MH i2c: E2 0B 00 [12:29:42]MH_I2C_Read... [12:29:42]Read from MH i2c: E2 0B 00 56 0A 00 EF B0 9F AF 10 54 F9 CB 90 00 F1 [12:29:42]RAPDU: EF B0 9F AF 10 54 F9 CB 90 00 [12:29:42]wFMCommunicate OK [12:29:42]SAM_PROTO_SignData done [12:29:42]FM_MakeSignedData done [12:29:42]CreateOFDProtocolMessage [12:29:42]wFMCommunicate request_size=4 [12:29:42]MH_SAM_APDU [12:29:42]CAPDU: 80 11 00 00 [12:29:42]Write to MH i2c: E2 08 00 57 0A 80 11 00 00 00 00 00 00 DB [12:29:42]Write i2c OK [12:29:42]MH_I2C_Read... [12:29:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:43]Read from MH i2c: E2 [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: E2 17 00 [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: E2 17 00 57 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 30 [12:29:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:29:43]wFMCommunicate OK [12:29:43]CreateOFDProtocolMessage done [12:29:43]OFDSenderStorePacket 201458 [12:29:43]StoreOFDPacket docnum=201458 [12:29:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 46 6B 07 01 76 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 DC 00 00 00 F4 03 04 00 B6 E0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F2 12 03 00 35 04 06 00 32 05 77 FF C2 29 EF B0 9F AF 10 54 F9 CB [12:29:43]CheckFolder [12:29:43]dirname=/storage/ofd_packets [12:29:43]CheckFolder done [12:29:43]ProducePacketName [12:29:43]name=ofd_packets/00201458 [12:29:43]NVStorageSaveData ofd_packets/00201458 [12:29:43]File name is /storage/ofd_packets/00201458 [12:29:43]Write 301 bytes [12:29:43]NVStorageSaveData done [12:29:43]OFDSenderStorePacket done [12:29:43]KKMCreateOFDPacket done [12:29:43]NVStorageSaveData kkm_last_timestamp [12:29:43]File name is /storage/kkm_last_timestamp [12:29:43]Write 4 bytes [12:29:43]NVStorageSaveData done [12:29:43]ExternCall_PrintAddStr [12:29:43]wPrintStart [12:29:43]Write to MH i2c: 01 00 00 58 0A 62 [12:29:43]Write i2c OK [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: 01 [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: 01 07 00 [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: 01 07 00 58 0A 00 00 00 00 00 FF 0F 77 [12:29:43]RasterBufferAndPrint [12:29:43]line Счет N : (1)449207 [12:29:43]line ИНН: 02508201610067 [12:29:43]line Контрольно-Кассовый Чек [12:29:43]line ПРОДАЖА [12:29:43]line ТРК (МРК, ГНК) : 51 [12:29:43]line Товар: 2710124500 [12:29:43]line Аи-95-К-3 [12:29:43]line 6.740 * 74.20 [12:29:43]line = 500.11 [12:29:43]line НДС 12% НСП 1% [12:29:43]line > о реализуемом товаре [12:29:43]line ОКРУГЛЕНИЕ: -0.11 [12:29:43]line ИТОГО: 500.00 [12:29:43]line Внесено: 500.00 [12:29:43]line СДАЧА: 0.00 [12:29:43]line НСП 1% : 4.43 [12:29:43]line НДС 12% : 53.11 [12:29:43]line Наличными: 500.00 [12:29:43]line Безнал.: 0.00 [12:29:43]line Место: АЗС № 171 "Партнер Нефть" [12:29:43]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:29:43]line СНО: Общий режим [12:29:43]line Чек 220 26.10.2024 12:29 [12:29:43]line Смена: 543 ФФД: 1.0 [12:29:43]line ЗНМ: 0300000109 [12:29:43]line РНМ: 0000000000091777 [12:29:43]line Версия ККМ: 001 [12:29:43]line ФМ: 0000000000871756 [12:29:43]line ФД: 201458 [12:29:43]line ФПД: 54999069475369 [12:29:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T122942&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201458&fm=54999069475369&tin=02508201610067®Number=0000000000091777&sum=50000 [12:29:43]OFD Sender: Processing packet 201458 [packets to send 112, broken 111] [12:29:43]ProducePacketName [12:29:43]name=ofd_packets/00201458 [12:29:43]OFD Sender: To server: pG, [12:29:43]CommunicateWithHost lk.salyk.kg:30040 [12:29:43]ConnectInit lk.salyk.kg [12:29:43]written 0, free lines is 4095 [12:29:43]Connected sock=10 [12:29:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 46 6B 07 01 76 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 DC 00 00 00 F4 03 04 00 B6 E0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F2 12 03 00 35 04 06 00 32 05 77 FF C2 29 EF B0 9F AF 10 54 F9 CB [12:29:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 2B 56 47 00 BE 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F2 12 03 00 F4 03 04 00 5F 8C 1C 67 B6 04 01 00 00 6F 42 5A BF 0B B5 DC C5 [12:29:43]CommunicateWithHost err = 0 [12:29:43]CheckOFDResponse [12:29:43]1017 (14) - 77093643461234 [12:29:43]1041 (16) - 0000000000871756 [12:29:43]1040 (4) - 201458 [12:29:43]1012 (4) - 26.10.2024 06:29 [12:29:43]1206 (1) - 0 [12:29:43]OFD Sender: Remove packet 201458 [12:29:43]ProducePacketName [12:29:43]name=ofd_packets/00201458 [12:29:43]NVStorageDeleteData [12:29:43]Write to MH i2c: 01 00 00 83 0A 8D [12:29:43]Write i2c OK [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: 01 [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: 01 07 00 [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: 01 07 00 83 0A 00 00 00 00 00 94 0C 34 [12:29:43]RasterBufferAndPrint [12:29:43]line [12:29:43]line [12:29:43]line [12:29:43]line [12:29:43]line [12:29:43]written 0, free lines is 3225 [12:29:43]MH_Cut [12:29:43]Write to MH i2c: D1 01 00 8A 0A 01 66 [12:29:43]Write i2c OK [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: D1 [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: D1 01 00 [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: D1 01 00 8A 0A 00 65 [12:29:43]Write to MH i2c: 01 00 00 8B 0A 95 [12:29:43]Write i2c OK [12:29:43]MH_I2C_Read... [12:29:44]OFD Sender: No OFD packet to send [12:29:44]*** Cut start [12:29:44]*** Purtial cut [12:29:44]*** Stage 1: CUTSNS_PIN = 1 [12:29:44]Read from MH i2c: 01 [12:29:44]MH_I2C_Read... [12:29:44]*** Stop cut motor [12:29:44]*** Cut end [12:29:44]Read from MH i2c: 01 07 00 [12:29:44]MH_I2C_Read... [12:29:44]Read from MH i2c: 01 07 00 8B 0A 00 00 00 00 00 FF 0F AA [12:29:44]process_action close_receipt done [12:29:44]requested_data is exist [12:29:44]produce_requested_data [12:29:44]requested_item fm.sn is exist - process it [12:29:44]wFMCommunicate request_size=4 [12:29:44]MH_SAM_APDU [12:29:44]CAPDU: 80 11 00 00 [12:29:44]Write to MH i2c: E2 08 00 8C 0A 80 11 00 00 00 00 00 00 10 [12:29:44]Write i2c OK [12:29:44]MH_I2C_Read... [12:29:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:45]Read from MH i2c: E2 [12:29:45]MH_I2C_Read... [12:29:45]Read from MH i2c: E2 17 00 [12:29:45]MH_I2C_Read... [12:29:45]Read from MH i2c: E2 17 00 8C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 65 [12:29:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:29:45]wFMCommunicate OK [12:29:45]requested_item fd.num is exist - process it [12:29:45]SAM_PROTO_GetFieldsCounters [12:29:45]wFMCommunicate request_size=4 [12:29:45]MH_SAM_APDU [12:29:45]CAPDU: 80 13 00 00 [12:29:45]Write to MH i2c: E2 08 00 8D 0A 80 13 00 00 00 00 00 00 13 [12:29:45]Write i2c OK [12:29:45]MH_I2C_Read... [12:29:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:45]Read from MH i2c: E2 [12:29:45]MH_I2C_Read... [12:29:45]Read from MH i2c: E2 62 00 [12:29:45]MH_I2C_Read... [12:29:45]Read from MH i2c: E2 62 00 8D 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F2 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [12:29:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F2 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:45]wFMCommunicate OK [12:29:45]SAM_PROTO_GetFieldsCounters done [12:29:45]requested_item shift.num is exist - process it [12:29:45]requested_item shift.opened is exist - process it [12:29:45]req_shift_opened [12:29:45]FM_GetShiftState [12:29:45]SAM_PROTO_GetShiftState [12:29:45]wFMCommunicate request_size=4 [12:29:45]MH_SAM_APDU [12:29:45]CAPDU: 80 13 01 00 [12:29:45]Write to MH i2c: E2 08 00 8E 0A 80 13 01 00 00 00 00 00 15 [12:29:45]Write i2c OK [12:29:45]MH_I2C_Read... [12:29:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:45]Read from MH i2c: E2 [12:29:45]MH_I2C_Read... [12:29:45]Read from MH i2c: E2 0E 00 [12:29:45]MH_I2C_Read... [12:29:45]Read from MH i2c: E2 0E 00 8E 0A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 24 [12:29:45]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:29:45]wFMCommunicate OK [12:29:45]SAM_PROTO_GetShiftState done [12:29:45]FM_GetShiftState done [12:29:45]req_shift_opened done [12:29:45]requested_item shift.open_date is exist - process it [12:29:45]req_shift_open_date [12:29:45]req_shift_open_date done [12:29:45]produce_requested_data done [12:29:45]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201458,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:29:45]process_action_free close_receipt [12:29:45]json_value_free [12:29:45]json_value_free done [12:29:45]process_json_proto returns [12:29:45]Send response to host [12:29:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201458,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:29:45]free response buf [12:29:45]execute_script done [12:29:45]execute_script returns [12:29:45]free content buf [12:29:45]Sock 9.Close socket [12:29:45]Sock 9.Thread stoped [12:29:49]OFD Sender: No OFD packet to send [12:29:54]OFD Sender: No OFD packet to send [12:29:59]OFD Sender: No OFD packet to send [12:30:04]OFD Sender: No OFD packet to send [12:30:09]OFD Sender: No OFD packet to send [12:30:14]OFD Sender: No OFD packet to send [12:30:19]OFD Sender: No OFD packet to send [12:30:24]OFD Sender: No OFD packet to send [12:30:29]OFD Sender: No OFD packet to send [12:30:34]OFD Sender: No OFD packet to send [12:30:39]OFD Sender: No OFD packet to send [12:30:44]OFD Sender: No OFD packet to send [12:30:49]OFD Sender: No OFD packet to send [12:30:54]OFD Sender: No OFD packet to send [12:30:59]OFD Sender: No OFD packet to send [12:31:04]OFD Sender: No OFD packet to send [12:31:09]OFD Sender: No OFD packet to send [12:31:14]OFD Sender: No OFD packet to send [12:31:19]OFD Sender: No OFD packet to send [12:31:24]OFD Sender: No OFD packet to send [12:31:25]accept exits with 8 [12:31:25]New connection [12:31:25]New thread 3066834276 created [12:31:25]Thread 3066690916 joined [12:31:25]Waiting for new connection... [12:31:25] Sock 8.Parse request [12:31:25]Sock 8.Check first char [12:31:25]Sock 8.First char is OK [12:31:25]request: POST /json_proto HTTP/1.0 [12:31:25]Method: POST [12:31:25]URL: /json_proto [12:31:25]Method is POST - this is cgi request [12:31:25]url: /json_proto [12:31:25]query_string will be loaded in cgi processing [12:31:25]execute_cgi json_proto POST (null) [12:31:25]execute_cgi path=json_proto method=POST [12:31:25]POST find Content-Length [12:31:25]Host: 172.17.63.195:8080 [12:31:25]Content-Length: 677 [12:31:25]Content-Type: application/json [12:31:25] [12:31:25]POST finish read [12:31:25]Found Content-Length = 677 [12:31:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:31:25]execute_script... [12:31: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)449208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:31:25]POST & json_proto [12:31:25]process_json_proto [12:31:25]json parsed OK: [12:31:25]protocol is kg_v1.0 [12:31:25]action value=close_receipt [12:31:25]process_action close_receipt [12:31:25]cmd_close_receipt [12:31:25]MH_GetDate [12:31:25]Write to MH i2c: F0 00 00 8F 0A 88 [12:31:25]Write i2c OK [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: F0 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: F0 09 00 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: F0 09 00 8F 0A 00 1E E1 1C 67 68 46 19 67 41 [12:31:25]GetLastDocTimeStamp 1729945782 [12:31:25]current date 1729945886 [12:31:25]FM_GetShiftState [12:31:25]SAM_PROTO_GetShiftState [12:31:25]wFMCommunicate request_size=4 [12:31:25]MH_SAM_APDU [12:31:25]CAPDU: 80 13 01 00 [12:31:25]Write to MH i2c: E2 08 00 90 0A 80 13 01 00 00 00 00 00 17 [12:31:25]Write i2c OK [12:31:25]MH_I2C_Read... [12:31:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:25]Read from MH i2c: E2 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: E2 0E 00 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: E2 0E 00 90 0A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 26 [12:31:25]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:31:25]wFMCommunicate OK [12:31:25]SAM_PROTO_GetShiftState done [12:31:25]FM_GetShiftState done [12:31:25]opened in 1729900879 [12:31:25]opened+sec_in_day 1729987279 [12:31:25]quantity*price = 40006 [12:31:25]sum+1 = 40007 [12:31:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 221 26.10.2024 12:31 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201459 ФПД: 263207738798298 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T123126&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201459&fm=263207738798298&tin=02508201610067®Number=0000000000091777&sum=40000 [12:31:26]StoreToDocumentArchive [12:31:26]shift 543 fd 201459 [12:31:26]save to /storage/0543/doc_00201459 [12:31:26]save last doc name /storage/0543/doc_00201459 to /storage/kkm_last_doc_name [12:31:26]save OK [12:31:26]Clear old archive folders... [12:31:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:31:26]tlvbuf is 01F5BE00 [12:31:26]SAM_PROTO_ClearQueue [12:31:26]wFMCommunicate request_size=4 [12:31:26]MH_SAM_APDU [12:31:26]CAPDU: 80 09 00 00 [12:31:26]Write to MH i2c: E2 08 00 9D 0A 80 09 00 00 00 00 00 00 19 [12:31:26]Write i2c OK [12:31:26]MH_I2C_Read... [12:31:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:26]Read from MH i2c: E2 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: E2 03 00 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: E2 03 00 9D 0A 00 90 00 1B [12:31:26]RAPDU: 90 00 [12:31:26]wFMCommunicate OK [12:31:26]SAM_PROTO_ClearQueue done [12:31:26]KKMCreateOFDPacket [12:31:26]OFDProtocolAddRootSTLVToBuf [12:31:26]FM_MakeSignedData [12:31:26]FM_MakeSignedData [12:31:26]SAM_PROTO_SignData [12:31:26]wFMCommunicate request_size=4 [12:31:26]MH_SAM_APDU [12:31:26]CAPDU: 80 0D 01 02 [12:31:26]Write to MH i2c: E2 08 00 9E 0A 80 0D 01 02 00 00 00 00 21 [12:31:26]Write i2c OK [12:31:26]MH_I2C_Read... [12:31:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:26]Read from MH i2c: E2 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: E2 03 00 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: E2 03 00 9E 0A 00 90 00 1C [12:31:26]RAPDU: 90 00 [12:31:26]wFMCommunicate OK [12:31:26]wFMCommunicate request_size=255 [12:31:26]MH_SAM_APDU [12:31:26]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 32 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 DD 00 00 00 F4 03 04 00 1E E1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F3 12 03 00 35 04 06 00 EF [12:31:26]Write to MH i2c: E2 02 01 9F 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 DD 00 00 00 F4 03 04 00 1E E1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F3 12 03 00 35 04 06 00 EF 00 00 FB [12:31:26]Write i2c OK [12:31:26]MH_I2C_Read... [12:31:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:26]Read from MH i2c: E2 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: E2 03 00 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: E2 03 00 9F 0A 00 90 00 1D [12:31:26]RAPDU: 90 00 [12:31:26]wFMCommunicate OK [12:31:26]wFMCommunicate request_size=10 [12:31:26]MH_SAM_APDU [12:31:26]CAPDU: 80 0D 02 02 05 62 D3 C5 F0 DA [12:31:26]Write to MH i2c: E2 0D 00 A0 0A 80 0D 02 02 05 00 62 D3 C5 F0 DA 00 00 F2 [12:31:26]Write i2c OK [12:31:26]MH_I2C_Read... [12:31:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:26]Read from MH i2c: E2 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: E2 03 00 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: E2 03 00 A0 0A 00 90 00 1E [12:31:26]RAPDU: 90 00 [12:31:26]wFMCommunicate OK [12:31:26]wFMCommunicate request_size=4 [12:31:26]MH_SAM_APDU [12:31:26]CAPDU: 80 0D 03 02 [12:31:26]Write to MH i2c: E2 08 00 A1 0A 80 0D 03 02 00 00 00 00 26 [12:31:26]Write i2c OK [12:31:26]MH_I2C_Read... [12:31:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:27]Read from MH i2c: E2 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: E2 0B 00 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: E2 0B 00 A1 0A 00 FA 85 54 76 67 1D DE 1C 90 00 EE [12:31:27]RAPDU: FA 85 54 76 67 1D DE 1C 90 00 [12:31:27]wFMCommunicate OK [12:31:27]SAM_PROTO_SignData done [12:31:27]FM_MakeSignedData done [12:31:27]CreateOFDProtocolMessage [12:31:27]wFMCommunicate request_size=4 [12:31:27]MH_SAM_APDU [12:31:27]CAPDU: 80 11 00 00 [12:31:27]Write to MH i2c: E2 08 00 A2 0A 80 11 00 00 00 00 00 00 26 [12:31:27]Write i2c OK [12:31:27]MH_I2C_Read... [12:31:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:27]Read from MH i2c: E2 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: E2 17 00 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: E2 17 00 A2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7B [12:31:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:31:27]wFMCommunicate OK [12:31:27]CreateOFDProtocolMessage done [12:31:27]OFDSenderStorePacket 201459 [12:31:27]StoreOFDPacket docnum=201459 [12:31:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 79 67 07 01 66 1D 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 32 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 DD 00 00 00 F4 03 04 00 1E E1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F3 12 03 00 35 04 06 00 EF 62 D3 C5 F0 DA FA 85 54 76 67 1D DE 1C [12:31:27]CheckFolder [12:31:27]dirname=/storage/ofd_packets [12:31:27]CheckFolder done [12:31:27]ProducePacketName [12:31:27]name=ofd_packets/00201459 [12:31:27]NVStorageSaveData ofd_packets/00201459 [12:31:27]File name is /storage/ofd_packets/00201459 [12:31:27]Write 301 bytes [12:31:27]NVStorageSaveData done [12:31:27]OFDSenderStorePacket done [12:31:27]KKMCreateOFDPacket done [12:31:27]NVStorageSaveData kkm_last_timestamp [12:31:27]File name is /storage/kkm_last_timestamp [12:31:27]Write 4 bytes [12:31:27]NVStorageSaveData done [12:31:27]ExternCall_PrintAddStr [12:31:27]wPrintStart [12:31:27]Write to MH i2c: 01 00 00 A3 0A AD [12:31:27]Write i2c OK [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: 01 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: 01 07 00 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: 01 07 00 A3 0A 00 00 00 00 00 FF 0F C2 [12:31:27]RasterBufferAndPrint [12:31:27]line Счет N : (1)449208 [12:31:27]line ИНН: 02508201610067 [12:31:27]line Контрольно-Кассовый Чек [12:31:27]line ПРОДАЖА [12:31:27]line ТРК (МРК, ГНК) : 41 [12:31:27]line Товар: 2710124130 [12:31:27]line Аи-92-К-2 [12:31:27]line 5.980 * 66.90 [12:31:27]line = 400.06 [12:31:27]line НДС 12% НСП 1% [12:31:27]line > о реализуемом товаре [12:31:27]line ОКРУГЛЕНИЕ: -0.06 [12:31:27]line ИТОГО: 400.00 [12:31:27]line Внесено: 400.00 [12:31:27]line СДАЧА: 0.00 [12:31:27]line НСП 1% : 3.54 [12:31:27]line НДС 12% : 42.48 [12:31:27]line Наличными: 400.00 [12:31:27]line Безнал.: 0.00 [12:31:27]line Место: АЗС № 171 "Партнер Нефть" [12:31:27]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:31:27]line СНО: Общий режим [12:31:27]line Чек 221 26.10.2024 12:31 [12:31:27]line Смена: 543 ФФД: 1.0 [12:31:27]line ЗНМ: 0300000109 [12:31:27]line РНМ: 0000000000091777 [12:31:27]line Версия ККМ: 001 [12:31:27]line ФМ: 0000000000871756 [12:31:27]line ФД: 201459 [12:31:27]line ФПД: 263207738798298 [12:31:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T123126&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201459&fm=263207738798298&tin=02508201610067®Number=0000000000091777&sum=40000 [12:31:27]OFD Sender: Processing packet 201459 [packets to send 112, broken 111] [12:31:27]ProducePacketName [12:31:27]name=ofd_packets/00201459 [12:31:27]OFD Sender: To server: pG, [12:31:27]CommunicateWithHost lk.salyk.kg:30040 [12:31:27]ConnectInit lk.salyk.kg [12:31:27]written 0, free lines is 4095 [12:31:27]Connected sock=10 [12:31:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 79 67 07 01 66 1D 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 32 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 DD 00 00 00 F4 03 04 00 1E E1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F3 12 03 00 35 04 06 00 EF 62 D3 C5 F0 DA FA 85 54 76 67 1D DE 1C [12:31:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 CE AD 47 00 BA 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F3 12 03 00 F4 03 04 00 C7 8C 1C 67 B6 04 01 00 00 56 98 0D D3 2A BE C6 AE [12:31:27]CommunicateWithHost err = 0 [12:31:27]CheckOFDResponse [12:31:27]1017 (14) - 77093643461234 [12:31:27]1041 (16) - 0000000000871756 [12:31:27]1040 (4) - 201459 [12:31:27]1012 (4) - 26.10.2024 06:31 [12:31:27]1206 (1) - 0 [12:31:27]OFD Sender: Remove packet 201459 [12:31:27]ProducePacketName [12:31:27]name=ofd_packets/00201459 [12:31:27]NVStorageDeleteData [12:31:27]Write to MH i2c: 01 00 00 CE 0A D8 [12:31:27]Write i2c OK [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: 01 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: 01 07 00 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: 01 07 00 CE 0A 00 00 00 00 00 AA 0C 95 [12:31:27]RasterBufferAndPrint [12:31:27]line [12:31:27]line [12:31:27]line [12:31:27]line [12:31:27]line [12:31:27]written 0, free lines is 3247 [12:31:27]MH_Cut [12:31:27]Write to MH i2c: D1 01 00 D5 0A 01 B1 [12:31:27]Write i2c OK [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: D1 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: D1 01 00 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: D1 01 00 D5 0A 00 B0 [12:31:27]Write to MH i2c: 01 00 00 D6 0A E0 [12:31:27]Write i2c OK [12:31:27]MH_I2C_Read... [12:31:28]OFD Sender: No OFD packet to send [12:31:28]*** Cut start [12:31:28]*** Purtial cut [12:31:28]*** Stage 1: CUTSNS_PIN = 1 [12:31:29]Read from MH i2c: 01 [12:31:29]MH_I2C_Read... [12:31:29]*** Stop cut motor [12:31:29]*** Cut end [12:31:29]Read from MH i2c: 01 07 00 [12:31:29]MH_I2C_Read... [12:31:29]Read from MH i2c: 01 07 00 D6 0A 00 00 00 00 00 FF 0F F5 [12:31:29]process_action close_receipt done [12:31:29]requested_data is exist [12:31:29]produce_requested_data [12:31:29]requested_item fm.sn is exist - process it [12:31:29]wFMCommunicate request_size=4 [12:31:29]MH_SAM_APDU [12:31:29]CAPDU: 80 11 00 00 [12:31:29]Write to MH i2c: E2 08 00 D7 0A 80 11 00 00 00 00 00 00 5B [12:31:29]Write i2c OK [12:31:29]MH_I2C_Read... [12:31:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:29]Read from MH i2c: E2 [12:31:29]MH_I2C_Read... [12:31:29]Read from MH i2c: E2 17 00 [12:31:29]MH_I2C_Read... [12:31:29]Read from MH i2c: E2 17 00 D7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B0 [12:31:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:31:29]wFMCommunicate OK [12:31:29]requested_item fd.num is exist - process it [12:31:29]SAM_PROTO_GetFieldsCounters [12:31:29]wFMCommunicate request_size=4 [12:31:29]MH_SAM_APDU [12:31:29]CAPDU: 80 13 00 00 [12:31:29]Write to MH i2c: E2 08 00 D8 0A 80 13 00 00 00 00 00 00 5E [12:31:29]Write i2c OK [12:31:29]MH_I2C_Read... [12:31:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:29]Read from MH i2c: E2 [12:31:29]MH_I2C_Read... [12:31:29]Read from MH i2c: E2 62 00 [12:31:29]MH_I2C_Read... [12:31:29]Read from MH i2c: E2 62 00 D8 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F3 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [12:31:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F3 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:31:29]wFMCommunicate OK [12:31:29]SAM_PROTO_GetFieldsCounters done [12:31:29]requested_item shift.num is exist - process it [12:31:29]requested_item shift.opened is exist - process it [12:31:29]req_shift_opened [12:31:29]FM_GetShiftState [12:31:29]SAM_PROTO_GetShiftState [12:31:29]wFMCommunicate request_size=4 [12:31:29]MH_SAM_APDU [12:31:29]CAPDU: 80 13 01 00 [12:31:29]Write to MH i2c: E2 08 00 D9 0A 80 13 01 00 00 00 00 00 60 [12:31:29]Write i2c OK [12:31:29]MH_I2C_Read... [12:31:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:29]Read from MH i2c: E2 [12:31:29]MH_I2C_Read... [12:31:29]Read from MH i2c: E2 0E 00 [12:31:29]MH_I2C_Read... [12:31:29]Read from MH i2c: E2 0E 00 D9 0A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 6F [12:31:29]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:31:29]wFMCommunicate OK [12:31:29]SAM_PROTO_GetShiftState done [12:31:29]FM_GetShiftState done [12:31:29]req_shift_opened done [12:31:29]requested_item shift.open_date is exist - process it [12:31:29]req_shift_open_date [12:31:29]req_shift_open_date done [12:31:29]produce_requested_data done [12:31:29]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201459,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:31:29]process_action_free close_receipt [12:31:29]json_value_free [12:31:29]json_value_free done [12:31:29]process_json_proto returns [12:31:29]Send response to host [12:31:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201459,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:31:29]free response buf [12:31:29]execute_script done [12:31:29]execute_script returns [12:31:29]free content buf [12:31:29]Sock 8.Close socket [12:31:29]Sock 8.Thread stoped [12:31:33]OFD Sender: No OFD packet to send [12:31:38]OFD Sender: No OFD packet to send [12:31:43]OFD Sender: No OFD packet to send [12:31:48]OFD Sender: No OFD packet to send [12:31:53]OFD Sender: No OFD packet to send [12:31:58]OFD Sender: No OFD packet to send [12:32:03]OFD Sender: No OFD packet to send [12:32:08]OFD Sender: No OFD packet to send [12:32:13]OFD Sender: No OFD packet to send [12:32:18]OFD Sender: No OFD packet to send [12:32:23]OFD Sender: No OFD packet to send [12:32:28]OFD Sender: No OFD packet to send [12:32:33]OFD Sender: No OFD packet to send [12:32:38]OFD Sender: No OFD packet to send [12:32:43]OFD Sender: No OFD packet to send [12:32:48]OFD Sender: No OFD packet to send [12:32:53]OFD Sender: No OFD packet to send [12:32:58]OFD Sender: No OFD packet to send [12:33:03]OFD Sender: No OFD packet to send [12:33:08]OFD Sender: No OFD packet to send [12:33:13]OFD Sender: No OFD packet to send [12:33:15]accept exits with 9 [12:33:15]New connection [12:33:15]New thread 3066690916 created [12:33:15]Thread 3066834276 joined [12:33:15]Waiting for new connection... [12:33:15] Sock 9.Parse request [12:33:15]Sock 9.Check first char [12:33:15]Sock 9.First char is OK [12:33:15]request: POST /json_proto HTTP/1.0 [12:33:15]Method: POST [12:33:15]URL: /json_proto [12:33:15]Method is POST - this is cgi request [12:33:15]url: /json_proto [12:33:15]query_string will be loaded in cgi processing [12:33:15]execute_cgi json_proto POST (null) [12:33:15]execute_cgi path=json_proto method=POST [12:33:15]POST find Content-Length [12:33:15]Host: 172.17.63.195:8080 [12:33:15]Content-Length: 674 [12:33:15]Content-Type: application/json [12:33:15] [12:33:15]POST finish read [12:33:15]Found Content-Length = 674 [12:33:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [12:33:15]execute_script... [12:33: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)449210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [12:33:15]POST & json_proto [12:33:15]process_json_proto [12:33:15]json parsed OK: [12:33:15]protocol is kg_v1.0 [12:33:15]action value=close_receipt [12:33:15]process_action close_receipt [12:33:15]cmd_close_receipt [12:33:15]MH_GetDate [12:33:15]Write to MH i2c: F0 00 00 DA 0A D3 [12:33:15]Write i2c OK [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: F0 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: F0 09 00 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: F0 09 00 DA 0A 00 8C E1 1C 67 68 46 19 67 FA [12:33:15]GetLastDocTimeStamp 1729945886 [12:33:15]current date 1729945996 [12:33:15]FM_GetShiftState [12:33:15]SAM_PROTO_GetShiftState [12:33:15]wFMCommunicate request_size=4 [12:33:15]MH_SAM_APDU [12:33:15]CAPDU: 80 13 01 00 [12:33:15]Write to MH i2c: E2 08 00 DB 0A 80 13 01 00 00 00 00 00 62 [12:33:15]Write i2c OK [12:33:15]MH_I2C_Read... [12:33:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:15]Read from MH i2c: E2 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: E2 0E 00 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: E2 0E 00 DB 0A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 71 [12:33:15]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:33:15]wFMCommunicate OK [12:33:15]SAM_PROTO_GetShiftState done [12:33:15]FM_GetShiftState done [12:33:15]opened in 1729900879 [12:33:15]opened+sec_in_day 1729987279 [12:33:15]quantity*price = 50063 [12:33:15]sum+1 = 50064 [12:33:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 222 26.10.2024 12:33 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201460 ФПД: 27629238545895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T123316&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201460&fm=27629238545895&tin=02508201610067®Number=0000000000091777&sum=50000 [12:33:16]StoreToDocumentArchive [12:33:16]shift 543 fd 201460 [12:33:16]save to /storage/0543/doc_00201460 [12:33:16]save last doc name /storage/0543/doc_00201460 to /storage/kkm_last_doc_name [12:33:16]save OK [12:33:16]Clear old archive folders... [12:33:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:33:16]tlvbuf is 01F2ED00 [12:33:16]SAM_PROTO_ClearQueue [12:33:16]wFMCommunicate request_size=4 [12:33:16]MH_SAM_APDU [12:33:16]CAPDU: 80 09 00 00 [12:33:16]Write to MH i2c: E2 08 00 E8 0A 80 09 00 00 00 00 00 00 64 [12:33:16]Write i2c OK [12:33:16]MH_I2C_Read... [12:33:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:16]Read from MH i2c: E2 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: E2 03 00 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: E2 03 00 E8 0A 00 90 00 66 [12:33:16]RAPDU: 90 00 [12:33:16]wFMCommunicate OK [12:33:16]SAM_PROTO_ClearQueue done [12:33:16]KKMCreateOFDPacket [12:33:16]OFDProtocolAddRootSTLVToBuf [12:33:16]FM_MakeSignedData [12:33:16]FM_MakeSignedData [12:33:16]SAM_PROTO_SignData [12:33:16]wFMCommunicate request_size=4 [12:33:16]MH_SAM_APDU [12:33:16]CAPDU: 80 0D 01 02 [12:33:16]Write to MH i2c: E2 08 00 E9 0A 80 0D 01 02 00 00 00 00 6C [12:33:16]Write i2c OK [12:33:16]MH_I2C_Read... [12:33:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:16]Read from MH i2c: E2 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: E2 03 00 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: E2 03 00 E9 0A 00 90 00 67 [12:33:16]RAPDU: 90 00 [12:33:16]wFMCommunicate OK [12:33:16]wFMCommunicate request_size=255 [12:33:16]MH_SAM_APDU [12:33:16]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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 DE 00 00 00 F4 03 04 00 8C E1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F4 12 03 00 35 04 06 00 19 20 EE F2 [12:33:16]Write to MH i2c: E2 02 01 EA 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 DE 00 00 00 F4 03 04 00 8C E1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F4 12 03 00 35 04 06 00 19 20 EE F2 00 00 8F [12:33:16]Write i2c OK [12:33:16]MH_I2C_Read... [12:33:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:16]Read from MH i2c: E2 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: E2 03 00 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: E2 03 00 EA 0A 00 90 00 68 [12:33:16]RAPDU: 90 00 [12:33:16]wFMCommunicate OK [12:33:16]wFMCommunicate request_size=7 [12:33:16]MH_SAM_APDU [12:33:16]CAPDU: 80 0D 02 02 02 ED E7 [12:33:16]Write to MH i2c: E2 0A 00 EB 0A 80 0D 02 02 02 00 ED E7 00 00 47 [12:33:16]Write i2c OK [12:33:16]MH_I2C_Read... [12:33:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:16]Read from MH i2c: E2 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: E2 03 00 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: E2 03 00 EB 0A 00 90 00 69 [12:33:16]RAPDU: 90 00 [12:33:16]wFMCommunicate OK [12:33:16]wFMCommunicate request_size=4 [12:33:16]MH_SAM_APDU [12:33:16]CAPDU: 80 0D 03 02 [12:33:16]Write to MH i2c: E2 08 00 EC 0A 80 0D 03 02 00 00 00 00 71 [12:33:17]Write i2c OK [12:33:17]MH_I2C_Read... [12:33:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:17]Read from MH i2c: E2 [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: E2 0B 00 [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: E2 0B 00 EC 0A 00 5F 74 70 49 27 0D F2 D0 90 00 F4 [12:33:17]RAPDU: 5F 74 70 49 27 0D F2 D0 90 00 [12:33:17]wFMCommunicate OK [12:33:17]SAM_PROTO_SignData done [12:33:17]FM_MakeSignedData done [12:33:17]CreateOFDProtocolMessage [12:33:17]wFMCommunicate request_size=4 [12:33:17]MH_SAM_APDU [12:33:17]CAPDU: 80 11 00 00 [12:33:17]Write to MH i2c: E2 08 00 ED 0A 80 11 00 00 00 00 00 00 71 [12:33:17]Write i2c OK [12:33:17]MH_I2C_Read... [12:33:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:17]Read from MH i2c: E2 [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: E2 17 00 [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: E2 17 00 ED 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C6 [12:33:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:33:17]wFMCommunicate OK [12:33:17]CreateOFDProtocolMessage done [12:33:17]OFDSenderStorePacket 201460 [12:33:17]StoreOFDPacket docnum=201460 [12:33:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 71 C3 04 01 42 00 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 DE 00 00 00 F4 03 04 00 8C E1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F4 12 03 00 35 04 06 00 19 20 EE F2 ED E7 5F 74 70 49 27 0D F2 D0 [12:33:17]CheckFolder [12:33:17]dirname=/storage/ofd_packets [12:33:17]CheckFolder done [12:33:17]ProducePacketName [12:33:17]name=ofd_packets/00201460 [12:33:17]NVStorageSaveData ofd_packets/00201460 [12:33:17]File name is /storage/ofd_packets/00201460 [12:33:17]Write 298 bytes [12:33:17]NVStorageSaveData done [12:33:17]OFDSenderStorePacket done [12:33:17]KKMCreateOFDPacket done [12:33:17]NVStorageSaveData kkm_last_timestamp [12:33:17]File name is /storage/kkm_last_timestamp [12:33:17]Write 4 bytes [12:33:17]NVStorageSaveData done [12:33:17]ExternCall_PrintAddStr [12:33:17]wPrintStart [12:33:17]Write to MH i2c: 01 00 00 EE 0A F8 [12:33:17]Write i2c OK [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: 01 [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: 01 07 00 [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: 01 07 00 EE 0A 00 00 00 00 00 FF 0F 0D [12:33:17]RasterBufferAndPrint [12:33:17]line Счет N : (1)449210 [12:33:17]line ИНН: 02508201610067 [12:33:17]line Контрольно-Кассовый Чек [12:33:17]line ПРОДАЖА [12:33:17]line ТРК (МРК, ГНК) : 33 [12:33:17]line Товар: 2710194210 [12:33:17]line ДТ-К-2 [12:33:17]line 6.570 * 76.20 [12:33:17]line = 500.63 [12:33:17]line НДС 12% НСП 1% [12:33:17]line > о реализуемом товаре [12:33:17]line ОКРУГЛЕНИЕ: -0.63 [12:33:17]line ИТОГО: 500.00 [12:33:17]line Внесено: 500.00 [12:33:17]line СДАЧА: 0.00 [12:33:17]line НСП 1% : 4.43 [12:33:17]line НДС 12% : 53.16 [12:33:17]line Наличными: 500.00 [12:33:17]line Безнал.: 0.00 [12:33:17]line Место: АЗС № 171 "Партнер Нефть" [12:33:17]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:33:17]line СНО: Общий режим [12:33:17]line Чек 222 26.10.2024 12:33 [12:33:17]line Смена: 543 ФФД: 1.0 [12:33:17]line ЗНМ: 0300000109 [12:33:17]line РНМ: 0000000000091777 [12:33:17]line Версия ККМ: 001 [12:33:17]line ФМ: 0000000000871756 [12:33:17]line ФД: 201460 [12:33:17]line ФПД: 27629238545895 [12:33:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T123316&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201460&fm=27629238545895&tin=02508201610067®Number=0000000000091777&sum=50000 [12:33:17]OFD Sender: Processing packet 201460 [packets to send 112, broken 111] [12:33:17]ProducePacketName [12:33:17]name=ofd_packets/00201460 [12:33:17]OFD Sender: To server: pG, [12:33:17]CommunicateWithHost lk.salyk.kg:30040 [12:33:17]ConnectInit lk.salyk.kg [12:33:17]written 0, free lines is 4095 [12:33:17]Connected sock=10 [12:33:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 71 C3 04 01 42 00 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 DE 00 00 00 F4 03 04 00 8C E1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F4 12 03 00 35 04 06 00 19 20 EE F2 ED E7 5F 74 70 49 27 0D F2 D0 [12:33:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E6 80 47 00 0D 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F4 12 03 00 F4 03 04 00 35 8D 1C 67 B6 04 01 00 00 46 95 8E 7A 54 03 1B 6B [12:33:17]CommunicateWithHost err = 0 [12:33:17]CheckOFDResponse [12:33:17]1017 (14) - 77093643461234 [12:33:17]1041 (16) - 0000000000871756 [12:33:17]1040 (4) - 201460 [12:33:17]1012 (4) - 26.10.2024 06:33 [12:33:17]1206 (1) - 0 [12:33:17]OFD Sender: Remove packet 201460 [12:33:17]ProducePacketName [12:33:17]name=ofd_packets/00201460 [12:33:17]NVStorageDeleteData [12:33:17]Write to MH i2c: 01 00 00 19 0B 24 [12:33:17]Write i2c OK [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: 01 [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: 01 07 00 [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: 01 07 00 19 0B 00 00 00 00 00 9B 0C D2 [12:33:17]RasterBufferAndPrint [12:33:17]line [12:33:17]line [12:33:17]line [12:33:17]line [12:33:17]line [12:33:17]written 0, free lines is 3234 [12:33:17]MH_Cut [12:33:17]Write to MH i2c: D1 01 00 20 0B 01 FD [12:33:17]Write i2c OK [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: D1 [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: D1 01 00 [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: D1 01 00 20 0B 00 FC [12:33:17]Write to MH i2c: 01 00 00 21 0B 2C [12:33:17]Write i2c OK [12:33:17]MH_I2C_Read... [12:33:18]OFD Sender: No OFD packet to send [12:33:18]*** Cut start [12:33:18]*** Purtial cut [12:33:18]*** Stage 1: CUTSNS_PIN = 1 [12:33:19]Read from MH i2c: 01 [12:33:19]MH_I2C_Read... [12:33:19]*** Stop cut motor [12:33:19]*** Cut end [12:33:19]Read from MH i2c: 01 07 00 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: 01 07 00 21 0B 00 00 00 00 00 FF 0F 41 [12:33:19]process_action close_receipt done [12:33:19]requested_data is exist [12:33:19]produce_requested_data [12:33:19]requested_item fm.sn is exist - process it [12:33:19]wFMCommunicate request_size=4 [12:33:19]MH_SAM_APDU [12:33:19]CAPDU: 80 11 00 00 [12:33:19]Write to MH i2c: E2 08 00 22 0B 80 11 00 00 00 00 00 00 A7 [12:33:19]Write i2c OK [12:33:19]MH_I2C_Read... [12:33:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:19]Read from MH i2c: E2 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: E2 17 00 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: E2 17 00 22 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FC [12:33:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:33:19]wFMCommunicate OK [12:33:19]requested_item fd.num is exist - process it [12:33:19]SAM_PROTO_GetFieldsCounters [12:33:19]wFMCommunicate request_size=4 [12:33:19]MH_SAM_APDU [12:33:19]CAPDU: 80 13 00 00 [12:33:19]Write to MH i2c: E2 08 00 23 0B 80 13 00 00 00 00 00 00 AA [12:33:19]Write i2c OK [12:33:19]MH_I2C_Read... [12:33:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:19]Read from MH i2c: E2 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: E2 62 00 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: E2 62 00 23 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F4 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [12:33:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F4 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:33:19]wFMCommunicate OK [12:33:19]SAM_PROTO_GetFieldsCounters done [12:33:19]requested_item shift.num is exist - process it [12:33:19]requested_item shift.opened is exist - process it [12:33:19]req_shift_opened [12:33:19]FM_GetShiftState [12:33:19]SAM_PROTO_GetShiftState [12:33:19]wFMCommunicate request_size=4 [12:33:19]MH_SAM_APDU [12:33:19]CAPDU: 80 13 01 00 [12:33:19]Write to MH i2c: E2 08 00 24 0B 80 13 01 00 00 00 00 00 AC [12:33:19]Write i2c OK [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: E2 [12:33:19]MH_I2C_Read... [12:33:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:19]Read from MH i2c: E2 0E 00 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: E2 0E 00 24 0B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 BB [12:33:19]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:33:19]wFMCommunicate OK [12:33:19]SAM_PROTO_GetShiftState done [12:33:19]FM_GetShiftState done [12:33:19]req_shift_opened done [12:33:19]requested_item shift.open_date is exist - process it [12:33:19]req_shift_open_date [12:33:19]req_shift_open_date done [12:33:19]produce_requested_data done [12:33:19]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201460,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:33:19]process_action_free close_receipt [12:33:19]json_value_free [12:33:19]json_value_free done [12:33:19]process_json_proto returns [12:33:19]Send response to host [12:33:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201460,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:33:19]free response buf [12:33:19]execute_script done [12:33:19]execute_script returns [12:33:19]free content buf [12:33:19]Sock 9.Close socket [12:33:19]Sock 9.Thread stoped [12:33:23]OFD Sender: No OFD packet to send [12:33:28]OFD Sender: No OFD packet to send [12:33:33]OFD Sender: No OFD packet to send [12:33:38]OFD Sender: No OFD packet to send [12:33:43]OFD Sender: No OFD packet to send [12:33:48]OFD Sender: No OFD packet to send [12:33:53]OFD Sender: No OFD packet to send [12:33:58]OFD Sender: No OFD packet to send [12:34:03]OFD Sender: No OFD packet to send [12:34:08]OFD Sender: No OFD packet to send [12:34:13]OFD Sender: No OFD packet to send [12:34:18]OFD Sender: No OFD packet to send [12:34:23]OFD Sender: No OFD packet to send [12:34:28]OFD Sender: No OFD packet to send [12:34:33]OFD Sender: No OFD packet to send [12:34:38]OFD Sender: No OFD packet to send [12:34:43]OFD Sender: No OFD packet to send [12:34:48]OFD Sender: No OFD packet to send [12:34:53]OFD Sender: No OFD packet to send [12:34:58]OFD Sender: No OFD packet to send [12:35:03]OFD Sender: No OFD packet to send [12:35:08]OFD Sender: No OFD packet to send [12:35:13]OFD Sender: No OFD packet to send [12:35:18]OFD Sender: No OFD packet to send [12:35:23]OFD Sender: No OFD packet to send [12:35:28]OFD Sender: No OFD packet to send [12:35:33]OFD Sender: No OFD packet to send [12:35:38]OFD Sender: No OFD packet to send [12:35:43]OFD Sender: No OFD packet to send [12:35:48]OFD Sender: No OFD packet to send [12:35:53]OFD Sender: No OFD packet to send [12:35:58]OFD Sender: No OFD packet to send [12:36:03]OFD Sender: No OFD packet to send [12:36:08]OFD Sender: No OFD packet to send [12:36:13]OFD Sender: No OFD packet to send [12:36:18]OFD Sender: No OFD packet to send [12:36:23]OFD Sender: No OFD packet to send [12:36:25]accept exits with 8 [12:36:25]New connection [12:36:25]New thread 3066834276 created [12:36:25]Thread 3066690916 joined [12:36:25]Waiting for new connection... [12:36:25] Sock 8.Parse request [12:36:25]Sock 8.Check first char [12:36:25]Sock 8.First char is OK [12:36:25]request: POST /json_proto HTTP/1.0 [12:36:25]Method: POST [12:36:25]URL: /json_proto [12:36:25]Method is POST - this is cgi request [12:36:25]url: /json_proto [12:36:25]query_string will be loaded in cgi processing [12:36:25]execute_cgi json_proto POST (null) [12:36:25]execute_cgi path=json_proto method=POST [12:36:25]POST find Content-Length [12:36:25]Host: 172.17.63.195:8080 [12:36:25]Content-Length: 682 [12:36:25]Content-Type: application/json [12:36:25] [12:36:25]POST finish read [12:36:25]Found Content-Length = 682 [12:36:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [12:36:25]execute_script... [12:36: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)449211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [12:36:25]POST & json_proto [12:36:25]process_json_proto [12:36:25]json parsed OK: [12:36:25]protocol is kg_v1.0 [12:36:25]action value=close_receipt [12:36:25]process_action close_receipt [12:36:25]cmd_close_receipt [12:36:25]MH_GetDate [12:36:25]Write to MH i2c: F0 00 00 25 0B 1F [12:36:25]Write i2c OK [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: F0 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: F0 09 00 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: F0 09 00 25 0B 00 49 E2 1C 67 68 46 19 67 04 [12:36:25]GetLastDocTimeStamp 1729945996 [12:36:25]current date 1729946185 [12:36:25]FM_GetShiftState [12:36:25]SAM_PROTO_GetShiftState [12:36:25]wFMCommunicate request_size=4 [12:36:25]MH_SAM_APDU [12:36:25]CAPDU: 80 13 01 00 [12:36:25]Write to MH i2c: E2 08 00 26 0B 80 13 01 00 00 00 00 00 AE [12:36:25]Write i2c OK [12:36:25]MH_I2C_Read... [12:36:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:25]Read from MH i2c: E2 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 0E 00 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 0E 00 26 0B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 BD [12:36:25]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:36:25]wFMCommunicate OK [12:36:25]SAM_PROTO_GetShiftState done [12:36:25]FM_GetShiftState done [12:36:25]opened in 1729900879 [12:36:25]opened+sec_in_day 1729987279 [12:36:25]quantity*price = 200043 [12:36:25]sum+1 = 200044 [12:36:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 223 26.10.2024 12:36 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201461 ФПД: 202242943871083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T123625&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201461&fm=202242943871083&tin=02508201610067®Number=0000000000091777&sum=200000 [12:36:26]StoreToDocumentArchive [12:36:26]shift 543 fd 201461 [12:36:26]save to /storage/0543/doc_00201461 [12:36:26]save last doc name /storage/0543/doc_00201461 to /storage/kkm_last_doc_name [12:36:26]save OK [12:36:26]Clear old archive folders... [12:36:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:36:26]tlvbuf is 01F7CA50 [12:36:26]SAM_PROTO_ClearQueue [12:36:26]wFMCommunicate request_size=4 [12:36:26]MH_SAM_APDU [12:36:26]CAPDU: 80 09 00 00 [12:36:26]Write to MH i2c: E2 08 00 33 0B 80 09 00 00 00 00 00 00 B0 [12:36:26]Write i2c OK [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 [12:36:26]MH_I2C_Read... [12:36:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:26]Read from MH i2c: E2 03 00 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 03 00 33 0B 00 90 00 B2 [12:36:26]RAPDU: 90 00 [12:36:26]wFMCommunicate OK [12:36:26]SAM_PROTO_ClearQueue done [12:36:26]KKMCreateOFDPacket [12:36:26]OFDProtocolAddRootSTLVToBuf [12:36:26]FM_MakeSignedData [12:36:26]FM_MakeSignedData [12:36:26]SAM_PROTO_SignData [12:36:26]wFMCommunicate request_size=4 [12:36:26]MH_SAM_APDU [12:36:26]CAPDU: 80 0D 01 02 [12:36:26]Write to MH i2c: E2 08 00 34 0B 80 0D 01 02 00 00 00 00 B8 [12:36:26]Write i2c OK [12:36:26]MH_I2C_Read... [12:36:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:26]Read from MH i2c: E2 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 03 00 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 03 00 34 0B 00 90 00 B3 [12:36:26]RAPDU: 90 00 [12:36:26]wFMCommunicate OK [12:36:26]wFMCommunicate request_size=255 [12:36:26]MH_SAM_APDU [12:36:26]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 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 DF 00 00 00 F4 03 04 00 49 E2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F5 12 03 00 35 04 06 00 B7 [12:36:26]Write to MH i2c: E2 02 01 35 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 DF 00 00 00 F4 03 04 00 49 E2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F5 12 03 00 35 04 06 00 B7 00 00 64 [12:36:26]Write i2c OK [12:36:26]MH_I2C_Read... [12:36:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:26]Read from MH i2c: E2 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 03 00 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 03 00 35 0B 00 90 00 B4 [12:36:26]RAPDU: 90 00 [12:36:26]wFMCommunicate OK [12:36:26]wFMCommunicate request_size=10 [12:36:26]MH_SAM_APDU [12:36:26]CAPDU: 80 0D 02 02 05 F0 5A D3 E8 6B [12:36:26]Write to MH i2c: E2 0D 00 36 0B 80 0D 02 02 05 00 F0 5A D3 E8 6B 00 00 35 [12:36:26]Write i2c OK [12:36:26]MH_I2C_Read... [12:36:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:26]Read from MH i2c: E2 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 03 00 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 03 00 36 0B 00 90 00 B5 [12:36:26]RAPDU: 90 00 [12:36:26]wFMCommunicate OK [12:36:26]wFMCommunicate request_size=4 [12:36:26]MH_SAM_APDU [12:36:26]CAPDU: 80 0D 03 02 [12:36:26]Write to MH i2c: E2 08 00 37 0B 80 0D 03 02 00 00 00 00 BD [12:36:26]Write i2c OK [12:36:26]MH_I2C_Read... [12:36:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:26]Read from MH i2c: E2 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 0B 00 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 0B 00 37 0B 00 8E BA A6 68 1E 1A 1B A7 90 00 0E [12:36:26]RAPDU: 8E BA A6 68 1E 1A 1B A7 90 00 [12:36:26]wFMCommunicate OK [12:36:26]SAM_PROTO_SignData done [12:36:26]FM_MakeSignedData done [12:36:26]CreateOFDProtocolMessage [12:36:26]wFMCommunicate request_size=4 [12:36:26]MH_SAM_APDU [12:36:26]CAPDU: 80 11 00 00 [12:36:26]Write to MH i2c: E2 08 00 38 0B 80 11 00 00 00 00 00 00 BD [12:36:26]Write i2c OK [12:36:26]MH_I2C_Read... [12:36:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:26]Read from MH i2c: E2 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 17 00 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 17 00 38 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 12 [12:36:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:36:26]wFMCommunicate OK [12:36:26]CreateOFDProtocolMessage done [12:36:26]OFDSenderStorePacket 201461 [12:36:26]StoreOFDPacket docnum=201461 [12:36:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 DB 35 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 DF 00 00 00 F4 03 04 00 49 E2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F5 12 03 00 35 04 06 00 B7 F0 5A D3 E8 6B 8E BA A6 68 1E 1A 1B A7 [12:36:26]CheckFolder [12:36:26]dirname=/storage/ofd_packets [12:36:26]CheckFolder done [12:36:26]ProducePacketName [12:36:26]name=ofd_packets/00201461 [12:36:26]NVStorageSaveData ofd_packets/00201461 [12:36:26]File name is /storage/ofd_packets/00201461 [12:36:26]Write 301 bytes [12:36:26]NVStorageSaveData done [12:36:26]OFDSenderStorePacket done [12:36:26]KKMCreateOFDPacket done [12:36:26]NVStorageSaveData kkm_last_timestamp [12:36:26]File name is /storage/kkm_last_timestamp [12:36:26]Write 4 bytes [12:36:26]NVStorageSaveData done [12:36:26]ExternCall_PrintAddStr [12:36:26]wPrintStart [12:36:26]Write to MH i2c: 01 00 00 39 0B 44 [12:36:26]Write i2c OK [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: 01 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: 01 07 00 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: 01 07 00 39 0B 00 00 00 00 00 FF 0F 59 [12:36:26]RasterBufferAndPrint [12:36:26]line Счет N : (1)449211 [12:36:26]line ИНН: 02508201610067 [12:36:26]line Контрольно-Кассовый Чек [12:36:26]line ПРОДАЖА [12:36:26]line ТРК (МРК, ГНК) : 51 [12:36:26]line Товар: 2710124500 [12:36:26]line Аи-95-К-3 [12:36:26]line 26.960 * 74.20 [12:36:26]line = 2000.43 [12:36:26]line НДС 12% НСП 1% [12:36:26]line > о реализуемом товаре [12:36:26]line ОКРУГЛЕНИЕ: -0.43 [12:36:26]line ИТОГО: 2000.00 [12:36:26]line Внесено: 2000.00 [12:36:26]line СДАЧА: 0.00 [12:36:26]line НСП 1% : 17.70 [12:36:26]line НДС 12% : 212.43 [12:36:26]line Наличными: 2000.00 [12:36:26]line Безнал.: 0.00 [12:36:26]line Место: АЗС № 171 "Партнер Нефть" [12:36:26]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:36:26]line СНО: Общий режим [12:36:26]line Чек 223 26.10.2024 12:36 [12:36:26]line Смена: 543 ФФД: 1.0 [12:36:26]line ЗНМ: 0300000109 [12:36:26]line РНМ: 0000000000091777 [12:36:26]line Версия ККМ: 001 [12:36:26]line ФМ: 0000000000871756 [12:36:27]line ФД: 201461 [12:36:27]line ФПД: 202242943871083 [12:36:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T123625&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201461&fm=202242943871083&tin=02508201610067®Number=0000000000091777&sum=200000 [12:36:27]OFD Sender: Processing packet 201461 [packets to send 112, broken 111] [12:36:27]ProducePacketName [12:36:27]name=ofd_packets/00201461 [12:36:27]OFD Sender: To server: pG, [12:36:27]CommunicateWithHost lk.salyk.kg:30040 [12:36:27]ConnectInit lk.salyk.kg [12:36:27]written 0, free lines is 4095 [12:36:27]Connected sock=10 [12:36:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 DB 35 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 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 DF 00 00 00 F4 03 04 00 49 E2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F5 12 03 00 35 04 06 00 B7 F0 5A D3 E8 6B 8E BA A6 68 1E 1A 1B A7 [12:36:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 95 A3 47 00 19 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F5 12 03 00 F4 03 04 00 F2 8D 1C 67 B6 04 01 00 00 12 6E AD E4 43 6A 69 FF [12:36:27]CommunicateWithHost err = 0 [12:36:27]CheckOFDResponse [12:36:27]1017 (14) - 77093643461234 [12:36:27]1041 (16) - 0000000000871756 [12:36:27]1040 (4) - 201461 [12:36:27]1012 (4) - 26.10.2024 06:36 [12:36:27]1206 (1) - 0 [12:36:27]OFD Sender: Remove packet 201461 [12:36:27]ProducePacketName [12:36:27]name=ofd_packets/00201461 [12:36:27]NVStorageDeleteData [12:36:27]Write to MH i2c: 01 00 00 64 0B 6F [12:36:27]Write i2c OK [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: 01 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: 01 07 00 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: 01 07 00 64 0B 00 00 00 00 00 A2 0C 24 [12:36:27]RasterBufferAndPrint [12:36:27]line [12:36:27]line [12:36:27]line [12:36:27]line [12:36:27]line [12:36:27]written 0, free lines is 3240 [12:36:27]MH_Cut [12:36:27]Write to MH i2c: D1 01 00 6B 0B 01 48 [12:36:27]Write i2c OK [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: D1 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: D1 01 00 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: D1 01 00 6B 0B 00 47 [12:36:27]Write to MH i2c: 01 00 00 6C 0B 77 [12:36:27]Write i2c OK [12:36:27]MH_I2C_Read... [12:36:27]OFD Sender: No OFD packet to send [12:36:28]*** Cut start [12:36:28]*** Purtial cut [12:36:28]*** Stage 1: CUTSNS_PIN = 1 [12:36:28]Read from MH i2c: 01 [12:36:28]MH_I2C_Read... [12:36:28]*** Stop cut motor [12:36:28]*** Cut end [12:36:28]Read from MH i2c: 01 07 00 [12:36:28]MH_I2C_Read... [12:36:28]Read from MH i2c: 01 07 00 6C 0B 00 00 00 00 00 FF 0F 8C [12:36:28]process_action close_receipt done [12:36:28]requested_data is exist [12:36:28]produce_requested_data [12:36:28]requested_item fm.sn is exist - process it [12:36:28]wFMCommunicate request_size=4 [12:36:28]MH_SAM_APDU [12:36:28]CAPDU: 80 11 00 00 [12:36:28]Write to MH i2c: E2 08 00 6D 0B 80 11 00 00 00 00 00 00 F2 [12:36:28]Write i2c OK [12:36:28]MH_I2C_Read... [12:36:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:28]Read from MH i2c: E2 [12:36:28]MH_I2C_Read... [12:36:28]Read from MH i2c: E2 17 00 [12:36:28]MH_I2C_Read... [12:36:28]Read from MH i2c: E2 17 00 6D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 47 [12:36:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:36:28]wFMCommunicate OK [12:36:28]requested_item fd.num is exist - process it [12:36:28]SAM_PROTO_GetFieldsCounters [12:36:28]wFMCommunicate request_size=4 [12:36:28]MH_SAM_APDU [12:36:28]CAPDU: 80 13 00 00 [12:36:28]Write to MH i2c: E2 08 00 6E 0B 80 13 00 00 00 00 00 00 F5 [12:36:28]Write i2c OK [12:36:28]MH_I2C_Read... [12:36:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:28]Read from MH i2c: E2 [12:36:28]MH_I2C_Read... [12:36:28]Read from MH i2c: E2 62 00 [12:36:28]MH_I2C_Read... [12:36:28]Read from MH i2c: E2 62 00 6E 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F5 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [12:36:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F5 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:36:28]wFMCommunicate OK [12:36:28]SAM_PROTO_GetFieldsCounters done [12:36:28]requested_item shift.num is exist - process it [12:36:28]requested_item shift.opened is exist - process it [12:36:28]req_shift_opened [12:36:28]FM_GetShiftState [12:36:28]SAM_PROTO_GetShiftState [12:36:28]wFMCommunicate request_size=4 [12:36:28]MH_SAM_APDU [12:36:28]CAPDU: 80 13 01 00 [12:36:28]Write to MH i2c: E2 08 00 6F 0B 80 13 01 00 00 00 00 00 F7 [12:36:28]Write i2c OK [12:36:28]MH_I2C_Read... [12:36:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:28]Read from MH i2c: E2 [12:36:28]MH_I2C_Read... [12:36:28]Read from MH i2c: E2 0E 00 [12:36:28]MH_I2C_Read... [12:36:28]Read from MH i2c: E2 0E 00 6F 0B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 06 [12:36:28]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:36:28]wFMCommunicate OK [12:36:28]SAM_PROTO_GetShiftState done [12:36:28]FM_GetShiftState done [12:36:28]req_shift_opened done [12:36:28]requested_item shift.open_date is exist - process it [12:36:28]req_shift_open_date [12:36:28]req_shift_open_date done [12:36:28]produce_requested_data done [12:36:28]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201461,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:36:28]process_action_free close_receipt [12:36:28]json_value_free [12:36:28]json_value_free done [12:36:28]process_json_proto returns [12:36:28]Send response to host [12:36:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201461,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:36:28]free response buf [12:36:28]execute_script done [12:36:28]execute_script returns [12:36:28]free content buf [12:36:28]Sock 8.Close socket [12:36:28]Sock 8.Thread stoped [12:36:32]OFD Sender: No OFD packet to send [12:36:37]OFD Sender: No OFD packet to send [12:36:42]OFD Sender: No OFD packet to send [12:36:47]OFD Sender: No OFD packet to send [12:36:52]OFD Sender: No OFD packet to send [12:36:57]OFD Sender: No OFD packet to send [12:37:02]OFD Sender: No OFD packet to send [12:37:07]OFD Sender: No OFD packet to send [12:37:12]OFD Sender: No OFD packet to send [12:37:17]OFD Sender: No OFD packet to send [12:37:22]OFD Sender: No OFD packet to send [12:37:27]OFD Sender: No OFD packet to send [12:37:32]OFD Sender: No OFD packet to send [12:37:37]OFD Sender: No OFD packet to send [12:37:42]OFD Sender: No OFD packet to send [12:37:47]OFD Sender: No OFD packet to send [12:37:52]OFD Sender: No OFD packet to send [12:37:57]OFD Sender: No OFD packet to send [12:38:02]OFD Sender: No OFD packet to send [12:38:07]OFD Sender: No OFD packet to send [12:38:12]OFD Sender: No OFD packet to send [12:38:17]OFD Sender: No OFD packet to send [12:38:22]OFD Sender: No OFD packet to send [12:38:27]OFD Sender: No OFD packet to send [12:38:33]OFD Sender: No OFD packet to send [12:38:38]OFD Sender: No OFD packet to send [12:38:43]OFD Sender: No OFD packet to send [12:38:48]OFD Sender: No OFD packet to send [12:38:53]OFD Sender: No OFD packet to send [12:38:58]OFD Sender: No OFD packet to send [12:39:03]OFD Sender: No OFD packet to send [12:39:08]OFD Sender: No OFD packet to send [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:39:58]accept exits with 9 [12:39:58]New connection [12:39:58]New thread 3066690916 created [12:39:58]Thread 3066834276 joined [12:39:58]Waiting for new connection... [12:39:58] Sock 9.Parse request [12:39:58]Sock 9.Check first char [12:39:58]Sock 9.First char is OK [12:39:58]request: POST /json_proto HTTP/1.0 [12:39:58]Method: POST [12:39:58]URL: /json_proto [12:39:58]Method is POST - this is cgi request [12:39:58]url: /json_proto [12:39:58]query_string will be loaded in cgi processing [12:39:58]execute_cgi json_proto POST (null) [12:39:58]execute_cgi path=json_proto method=POST [12:39:58]POST find Content-Length [12:39:58]Host: 172.17.63.195:8080 [12:39:58]Content-Length: 677 [12:39:58]Content-Type: application/json [12:39:58] [12:39:58]POST finish read [12:39:58]Found Content-Length = 677 [12:39:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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" ] } } [12:39:58]execute_script... [12:39:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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" ] } } [12:39:58]POST & json_proto [12:39:58]process_json_proto [12:39:58]json parsed OK: [12:39:58]protocol is kg_v1.0 [12:39:58]action value=close_receipt [12:39:58]process_action close_receipt [12:39:58]cmd_close_receipt [12:39:58]MH_GetDate [12:39:58]Write to MH i2c: F0 00 00 70 0B 6A [12:39:58]Write i2c OK [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: F0 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: F0 09 00 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: F0 09 00 70 0B 00 1F E3 1C 67 68 46 19 67 26 [12:39:58]GetLastDocTimeStamp 1729946185 [12:39:58]current date 1729946399 [12:39:58]FM_GetShiftState [12:39:58]SAM_PROTO_GetShiftState [12:39:58]wFMCommunicate request_size=4 [12:39:58]MH_SAM_APDU [12:39:58]CAPDU: 80 13 01 00 [12:39:58]Write to MH i2c: E2 08 00 71 0B 80 13 01 00 00 00 00 00 F9 [12:39:58]Write i2c OK [12:39:58]MH_I2C_Read... [12:39:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:59]Read from MH i2c: E2 [12:39:59]MH_I2C_Read... [12:39:59]Read from MH i2c: E2 0E 00 [12:39:59]MH_I2C_Read... [12:39:59]Read from MH i2c: E2 0E 00 71 0B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 08 [12:39:59]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:39:59]wFMCommunicate OK [12:39:59]SAM_PROTO_GetShiftState done [12:39:59]FM_GetShiftState done [12:39:59]opened in 1729900879 [12:39:59]opened+sec_in_day 1729987279 [12:39:59]quantity*price = 50010 [12:39:59]sum+1 = 50012 [12:39:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 224 26.10.2024 12:39 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201462 ФПД: 107182457940331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T123959&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201462&fm=107182457940331&tin=02508201610067®Number=0000000000091777&sum=50000 [12:40:00]StoreToDocumentArchive [12:40:00]shift 543 fd 201462 [12:40:00]save to /storage/0543/doc_00201462 [12:40:00]save last doc name /storage/0543/doc_00201462 to /storage/kkm_last_doc_name [12:40:00]save OK [12:40:00]Clear old archive folders... [12:40:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:40:00]tlvbuf is 01F2EEB0 [12:40:00]SAM_PROTO_ClearQueue [12:40:00]wFMCommunicate request_size=4 [12:40:00]MH_SAM_APDU [12:40:00]CAPDU: 80 09 00 00 [12:40:00]Write to MH i2c: E2 08 00 7E 0B 80 09 00 00 00 00 00 00 FB [12:40:00]Write i2c OK [12:40:00]MH_I2C_Read... [12:40:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:00]Read from MH i2c: E2 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: E2 03 00 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: E2 03 00 7E 0B 00 90 00 FD [12:40:00]RAPDU: 90 00 [12:40:00]wFMCommunicate OK [12:40:00]SAM_PROTO_ClearQueue done [12:40:00]KKMCreateOFDPacket [12:40:00]OFDProtocolAddRootSTLVToBuf [12:40:00]FM_MakeSignedData [12:40:00]FM_MakeSignedData [12:40:00]SAM_PROTO_SignData [12:40:00]wFMCommunicate request_size=4 [12:40:00]MH_SAM_APDU [12:40:00]CAPDU: 80 0D 01 02 [12:40:00]Write to MH i2c: E2 08 00 7F 0B 80 0D 01 02 00 00 00 00 03 [12:40:00]Write i2c OK [12:40:00]MH_I2C_Read... [12:40:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:00]Read from MH i2c: E2 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: E2 03 00 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: E2 03 00 7F 0B 00 90 00 FE [12:40:00]RAPDU: 90 00 [12:40:00]wFMCommunicate OK [12:40:00]wFMCommunicate request_size=255 [12:40:00]MH_SAM_APDU [12:40:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 E0 00 00 00 F4 03 04 00 1F E3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F6 12 03 00 35 04 06 00 61 [12:40:00]Write to MH i2c: E2 02 01 80 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 E0 00 00 00 F4 03 04 00 1F E3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F6 12 03 00 35 04 06 00 61 00 00 62 [12:40:00]Write i2c OK [12:40:00]MH_I2C_Read... [12:40:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:00]Read from MH i2c: E2 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: E2 03 00 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: E2 03 00 80 0B 00 90 00 FF [12:40:00]RAPDU: 90 00 [12:40:00]wFMCommunicate OK [12:40:00]wFMCommunicate request_size=10 [12:40:00]MH_SAM_APDU [12:40:00]CAPDU: 80 0D 02 02 05 7B 5C 54 E9 6B [12:40:00]Write to MH i2c: E2 0D 00 81 0B 80 0D 02 02 05 00 7B 5C 54 E9 6B 00 00 8F [12:40:00]Write i2c OK [12:40:00]MH_I2C_Read... [12:40:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:00]Read from MH i2c: E2 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: E2 03 00 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: E2 03 00 81 0B 00 90 00 00 [12:40:00]RAPDU: 90 00 [12:40:00]wFMCommunicate OK [12:40:00]wFMCommunicate request_size=4 [12:40:00]MH_SAM_APDU [12:40:00]CAPDU: 80 0D 03 02 [12:40:00]Write to MH i2c: E2 08 00 82 0B 80 0D 03 02 00 00 00 00 08 [12:40:00]Write i2c OK [12:40:00]MH_I2C_Read... [12:40:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:00]Read from MH i2c: E2 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: E2 0B 00 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: E2 0B 00 82 0B 00 44 C0 58 05 39 2A 80 E0 90 00 2D [12:40:00]RAPDU: 44 C0 58 05 39 2A 80 E0 90 00 [12:40:00]wFMCommunicate OK [12:40:00]SAM_PROTO_SignData done [12:40:00]FM_MakeSignedData done [12:40:00]CreateOFDProtocolMessage [12:40:00]wFMCommunicate request_size=4 [12:40:00]MH_SAM_APDU [12:40:00]CAPDU: 80 11 00 00 [12:40:00]Write to MH i2c: E2 08 00 83 0B 80 11 00 00 00 00 00 00 08 [12:40:00]Write i2c OK [12:40:00]MH_I2C_Read... [12:40:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:00]Read from MH i2c: E2 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: E2 17 00 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: E2 17 00 83 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5D [12:40:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:40:00]wFMCommunicate OK [12:40:00]CreateOFDProtocolMessage done [12:40:00]OFDSenderStorePacket 201462 [12:40:00]StoreOFDPacket docnum=201462 [12:40:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 51 46 07 01 FE FC 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 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 E0 00 00 00 F4 03 04 00 1F E3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F6 12 03 00 35 04 06 00 61 7B 5C 54 E9 6B 44 C0 58 05 39 2A 80 E0 [12:40:00]CheckFolder [12:40:00]dirname=/storage/ofd_packets [12:40:00]CheckFolder done [12:40:00]ProducePacketName [12:40:00]name=ofd_packets/00201462 [12:40:00]NVStorageSaveData ofd_packets/00201462 [12:40:00]File name is /storage/ofd_packets/00201462 [12:40:00]Write 301 bytes [12:40:00]NVStorageSaveData done [12:40:00]OFDSenderStorePacket done [12:40:00]KKMCreateOFDPacket done [12:40:00]NVStorageSaveData kkm_last_timestamp [12:40:00]File name is /storage/kkm_last_timestamp [12:40:00]Write 4 bytes [12:40:00]NVStorageSaveData done [12:40:00]ExternCall_PrintAddStr [12:40:00]wPrintStart [12:40:00]Write to MH i2c: 01 00 00 84 0B 8F [12:40:00]Write i2c OK [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: 01 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: 01 07 00 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: 01 07 00 84 0B 00 00 00 00 00 FF 0F A4 [12:40:00]RasterBufferAndPrint [12:40:00]line Счет N : (1)449212 [12:40:00]line ИНН: 02508201610067 [12:40:00]line Контрольно-Кассовый Чек [12:40:00]line ПРОДАЖА [12:40:00]line ТРК (МРК, ГНК) : 61 [12:40:00]line Товар: 2710124500 [12:40:00]line Аи-95-К-3 [12:40:00]line 6.740 * 74.20 [12:40:00]line = 500.11 [12:40:00]line НДС 12% НСП 1% [12:40:00]line > о реализуемом товаре [12:40:00]line ОКРУГЛЕНИЕ: -0.11 [12:40:00]line ИТОГО: 500.00 [12:40:00]line Внесено: 500.00 [12:40:00]line СДАЧА: 0.00 [12:40:00]line НСП 1% : 4.43 [12:40:00]line НДС 12% : 53.11 [12:40:00]line Наличными: 500.00 [12:40:00]line Безнал.: 0.00 [12:40:00]line Место: АЗС № 171 "Партнер Нефть" [12:40:00]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:40:00]line СНО: Общий режим [12:40:00]line Чек 224 26.10.2024 12:39 [12:40:00]line Смена: 543 ФФД: 1.0 [12:40:00]line ЗНМ: 0300000109 [12:40:00]line РНМ: 0000000000091777 [12:40:00]line Версия ККМ: 001 [12:40:00]line ФМ: 0000000000871756 [12:40:00]line ФД: 201462 [12:40:00]line ФПД: 107182457940331 [12:40:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T123959&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201462&fm=107182457940331&tin=02508201610067®Number=0000000000091777&sum=50000 [12:40:01]OFD Sender: Processing packet 201462 [packets to send 112, broken 111] [12:40:01]ProducePacketName [12:40:01]name=ofd_packets/00201462 [12:40:01]OFD Sender: To server: pG, [12:40:01]CommunicateWithHost lk.salyk.kg:30040 [12:40:01]ConnectInit lk.salyk.kg [12:40:01]written 0, free lines is 4095 [12:40:01]Connected sock=10 [12:40:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 51 46 07 01 FE FC 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 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 E0 00 00 00 F4 03 04 00 1F E3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F6 12 03 00 35 04 06 00 61 7B 5C 54 E9 6B 44 C0 58 05 39 2A 80 E0 [12:40:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 68 58 47 00 B2 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F6 12 03 00 F4 03 04 00 C8 8E 1C 67 B6 04 01 00 00 22 41 78 4C 84 FC 58 53 [12:40:01]CommunicateWithHost err = 0 [12:40:01]CheckOFDResponse [12:40:01]1017 (14) - 77093643461234 [12:40:01]1041 (16) - 0000000000871756 [12:40:01]1040 (4) - 201462 [12:40:01]1012 (4) - 26.10.2024 06:40 [12:40:01]1206 (1) - 0 [12:40:01]OFD Sender: Remove packet 201462 [12:40:01]ProducePacketName [12:40:01]name=ofd_packets/00201462 [12:40:01]NVStorageDeleteData [12:40:01]Write to MH i2c: 01 00 00 AF 0B BA [12:40:01]Write i2c OK [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: 01 [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: 01 07 00 [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: 01 07 00 AF 0B 00 00 00 00 00 A3 0C 70 [12:40:01]RasterBufferAndPrint [12:40:01]line [12:40:01]line [12:40:01]line [12:40:01]line [12:40:01]line [12:40:01]written 0, free lines is 3242 [12:40:01]MH_Cut [12:40:01]Write to MH i2c: D1 01 00 B6 0B 01 93 [12:40:01]Write i2c OK [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: D1 [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: D1 01 00 [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: D1 01 00 B6 0B 00 92 [12:40:01]Write to MH i2c: 01 00 00 B7 0B C2 [12:40:01]Write i2c OK [12:40:01]MH_I2C_Read... [12:40:01]OFD Sender: No OFD packet to send [12:40:02]*** Cut start [12:40:02]*** Purtial cut [12:40:02]*** Stage 1: CUTSNS_PIN = 1 [12:40:02]Read from MH i2c: 01 [12:40:02]MH_I2C_Read... [12:40:02]*** Stop cut motor [12:40:02]*** Cut end [12:40:02]Read from MH i2c: 01 07 00 [12:40:02]MH_I2C_Read... [12:40:02]Read from MH i2c: 01 07 00 B7 0B 00 00 00 00 00 FF 0F D7 [12:40:02]process_action close_receipt done [12:40:02]requested_data is exist [12:40:02]produce_requested_data [12:40:02]requested_item fm.sn is exist - process it [12:40:02]wFMCommunicate request_size=4 [12:40:02]MH_SAM_APDU [12:40:02]CAPDU: 80 11 00 00 [12:40:02]Write to MH i2c: E2 08 00 B8 0B 80 11 00 00 00 00 00 00 3D [12:40:02]Write i2c OK [12:40:02]MH_I2C_Read... [12:40:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:02]Read from MH i2c: E2 [12:40:02]MH_I2C_Read... [12:40:02]Read from MH i2c: E2 17 00 [12:40:02]MH_I2C_Read... [12:40:02]Read from MH i2c: E2 17 00 B8 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 92 [12:40:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:40:02]wFMCommunicate OK [12:40:02]requested_item fd.num is exist - process it [12:40:02]SAM_PROTO_GetFieldsCounters [12:40:02]wFMCommunicate request_size=4 [12:40:02]MH_SAM_APDU [12:40:02]CAPDU: 80 13 00 00 [12:40:02]Write to MH i2c: E2 08 00 B9 0B 80 13 00 00 00 00 00 00 40 [12:40:02]Write i2c OK [12:40:02]MH_I2C_Read... [12:40:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:02]Read from MH i2c: E2 [12:40:02]MH_I2C_Read... [12:40:02]Read from MH i2c: E2 62 00 [12:40:02]MH_I2C_Read... [12:40:02]Read from MH i2c: E2 62 00 B9 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F6 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [12:40:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F6 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:40:02]wFMCommunicate OK [12:40:02]SAM_PROTO_GetFieldsCounters done [12:40:02]requested_item shift.num is exist - process it [12:40:02]requested_item shift.opened is exist - process it [12:40:02]req_shift_opened [12:40:02]FM_GetShiftState [12:40:02]SAM_PROTO_GetShiftState [12:40:02]wFMCommunicate request_size=4 [12:40:02]MH_SAM_APDU [12:40:02]CAPDU: 80 13 01 00 [12:40:02]Write to MH i2c: E2 08 00 BA 0B 80 13 01 00 00 00 00 00 42 [12:40:02]Write i2c OK [12:40:02]MH_I2C_Read... [12:40:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:02]Read from MH i2c: E2 [12:40:02]MH_I2C_Read... [12:40:02]Read from MH i2c: E2 0E 00 [12:40:02]MH_I2C_Read... [12:40:02]Read from MH i2c: E2 0E 00 BA 0B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 51 [12:40:02]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:40:02]wFMCommunicate OK [12:40:02]SAM_PROTO_GetShiftState done [12:40:02]FM_GetShiftState done [12:40:02]req_shift_opened done [12:40:02]requested_item shift.open_date is exist - process it [12:40:02]req_shift_open_date [12:40:02]req_shift_open_date done [12:40:02]produce_requested_data done [12:40:02]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201462,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:40:02]process_action_free close_receipt [12:40:02]json_value_free [12:40:02]json_value_free done [12:40:02]process_json_proto returns [12:40:02]Send response to host [12:40:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201462,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:40:02]free response buf [12:40:02]execute_script done [12:40:02]execute_script returns [12:40:02]free content buf [12:40:02]Sock 9.Close socket [12:40:02]Sock 9.Thread stoped [12:40:06]OFD Sender: No OFD packet to send [12:40:11]OFD Sender: No OFD packet to send [12:40:16]OFD Sender: No OFD packet to send [12:40:21]OFD Sender: No OFD packet to send [12:40:26]OFD Sender: No OFD packet to send [12:40:31]OFD Sender: No OFD packet to send [12:40:36]OFD Sender: No OFD packet to send [12:40:41]OFD Sender: No OFD packet to send [12:40:46]OFD Sender: No OFD packet to send [12:40:51]OFD Sender: No OFD packet to send [12:40:56]OFD Sender: No OFD packet to send [12:40:58]accept exits with 8 [12:40:58]New connection [12:40:58]New thread 3066834276 created [12:40:58]Thread 3066690916 joined [12:40:58]Waiting for new connection... [12:40:58] Sock 8.Parse request [12:40:58]Sock 8.Check first char [12:40:58]Sock 8.First char is OK [12:40:58]request: POST /json_proto HTTP/1.0 [12:40:58]Method: POST [12:40:58]URL: /json_proto [12:40:58]Method is POST - this is cgi request [12:40:58]url: /json_proto [12:40:58]query_string will be loaded in cgi processing [12:40:58]execute_cgi json_proto POST (null) [12:40:58]execute_cgi path=json_proto method=POST [12:40:58]POST find Content-Length [12:40:58]Host: 172.17.63.195:8080 [12:40:58]Content-Length: 769 [12:40:58]Content-Type: application/json [12:40:58] [12:40:58]POST finish read [12:40:58]Found Content-Length = 769 [12:40:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:58]execute_script... [12:40:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:58]POST & json_proto [12:40:58]process_json_proto [12:40:58]json parsed OK: [12:40:58]protocol is kg_v1.0 [12:40:58]action value=close_receipt [12:40:58]process_action close_receipt [12:40:58]cmd_close_receipt [12:40:58]MH_GetDate [12:40:58]Write to MH i2c: F0 00 00 BB 0B B5 [12:40:58]Write i2c OK [12:40:58]MH_I2C_Read... [12:40:58]Read from MH i2c: F0 [12:40:58]MH_I2C_Read... [12:40:58]Read from MH i2c: F0 09 00 [12:40:58]MH_I2C_Read... [12:40:58]Read from MH i2c: F0 09 00 BB 0B 00 5B E3 1C 67 68 46 19 67 AD [12:40:58]GetLastDocTimeStamp 1729946399 [12:40:58]current date 1729946459 [12:40:58]FM_GetShiftState [12:40:58]SAM_PROTO_GetShiftState [12:40:58]wFMCommunicate request_size=4 [12:40:58]MH_SAM_APDU [12:40:58]CAPDU: 80 13 01 00 [12:40:58]Write to MH i2c: E2 08 00 BC 0B 80 13 01 00 00 00 00 00 44 [12:40:58]Write i2c OK [12:40:58]MH_I2C_Read... [12:40:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:58]Read from MH i2c: E2 [12:40:58]MH_I2C_Read... [12:40:58]Read from MH i2c: E2 0E 00 [12:40:58]MH_I2C_Read... [12:40:58]Read from MH i2c: E2 0E 00 BC 0B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 53 [12:40:58]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:40:58]wFMCommunicate OK [12:40:58]SAM_PROTO_GetShiftState done [12:40:58]FM_GetShiftState done [12:40:58]opened in 1729900879 [12:40:58]opened+sec_in_day 1729987279 [12:40:58]quantity*price = 100015 [12:40:58]sum+1 = 100017 [12:40:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 225 26.10.2024 12:40 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201463 ФПД: 184428173900252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T124059&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201463&fm=184428173900252&tin=02508201610067®Number=0000000000091777&sum=100016 [12:40:59]StoreToDocumentArchive [12:40:59]shift 543 fd 201463 [12:40:59]save to /storage/0543/doc_00201463 [12:40:59]save last doc name /storage/0543/doc_00201463 to /storage/kkm_last_doc_name [12:40:59]save OK [12:40:59]Clear old archive folders... [12:40:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:40:59]tlvbuf is 01F70810 [12:40:59]SAM_PROTO_ClearQueue [12:40:59]wFMCommunicate request_size=4 [12:40:59]MH_SAM_APDU [12:40:59]CAPDU: 80 09 00 00 [12:40:59]Write to MH i2c: E2 08 00 C9 0B 80 09 00 00 00 00 00 00 46 [12:40:59]Write i2c OK [12:40:59]MH_I2C_Read... [12:40:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:59]Read from MH i2c: E2 [12:40:59]MH_I2C_Read... [12:40:59]Read from MH i2c: E2 03 00 [12:40:59]MH_I2C_Read... [12:40:59]Read from MH i2c: E2 03 00 C9 0B 00 90 00 48 [12:40:59]RAPDU: 90 00 [12:40:59]wFMCommunicate OK [12:40:59]SAM_PROTO_ClearQueue done [12:40:59]KKMCreateOFDPacket [12:40:59]OFDProtocolAddRootSTLVToBuf [12:40:59]FM_MakeSignedData [12:40:59]FM_MakeSignedData [12:40:59]SAM_PROTO_SignData [12:40:59]wFMCommunicate request_size=4 [12:40:59]MH_SAM_APDU [12:40:59]CAPDU: 80 0D 01 02 [12:40:59]Write to MH i2c: E2 08 00 CA 0B 80 0D 01 02 00 00 00 00 4E [12:40:59]Write i2c OK [12:40:59]MH_I2C_Read... [12:40:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:59]Read from MH i2c: E2 [12:40:59]MH_I2C_Read... [12:40:59]Read from MH i2c: E2 03 00 [12:40:59]MH_I2C_Read... [12:40:59]Read from MH i2c: E2 03 00 CA 0B 00 90 00 49 [12:40:59]RAPDU: 90 00 [12:40:59]wFMCommunicate OK [12:40:59]wFMCommunicate request_size=255 [12:40:59]MH_SAM_APDU [12:40: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 32 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 B0 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 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 5B E3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F7 12 03 00 35 04 06 00 A7 [12:40:59]Write to MH i2c: E2 02 01 CB 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 32 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 B0 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 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 5B E3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F7 12 03 00 35 04 06 00 A7 00 00 72 [12:40:59]Write i2c OK [12:40:59]MH_I2C_Read... [12:41:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:00]Read from MH i2c: E2 [12:41:00]MH_I2C_Read... [12:41:00]Read from MH i2c: E2 03 00 [12:41:00]MH_I2C_Read... [12:41:00]Read from MH i2c: E2 03 00 CB 0B 00 90 00 4A [12:41:00]RAPDU: 90 00 [12:41:00]wFMCommunicate OK [12:41:00]wFMCommunicate request_size=10 [12:41:00]MH_SAM_APDU [12:41:00]CAPDU: 80 0D 02 02 05 BC 87 CA B9 DC [12:41:00]Write to MH i2c: E2 0D 00 CC 0B 80 0D 02 02 05 00 BC 87 CA B9 DC 00 00 FD [12:41:00]Write i2c OK [12:41:00]MH_I2C_Read... [12:41:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:00]Read from MH i2c: E2 [12:41:00]MH_I2C_Read... [12:41:00]Read from MH i2c: E2 03 00 [12:41:00]MH_I2C_Read... [12:41:00]Read from MH i2c: E2 03 00 CC 0B 00 90 00 4B [12:41:00]RAPDU: 90 00 [12:41:00]wFMCommunicate OK [12:41:00]wFMCommunicate request_size=4 [12:41:00]MH_SAM_APDU [12:41:00]CAPDU: 80 0D 03 02 [12:41:00]Write to MH i2c: E2 08 00 CD 0B 80 0D 03 02 00 00 00 00 53 [12:41:00]Write i2c OK [12:41:00]MH_I2C_Read... [12:41:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:41:00]Read from MH i2c: E2 [12:41:00]MH_I2C_Read... [12:41:00]Read from MH i2c: E2 0B 00 [12:41:00]MH_I2C_Read... [12:41:00]Read from MH i2c: E2 0B 00 CD 0B 00 35 8A 1E 35 BC 81 95 54 90 00 8C [12:41:00]RAPDU: 35 8A 1E 35 BC 81 95 54 90 00 [12:41:00]wFMCommunicate OK [12:41:00]SAM_PROTO_SignData done [12:41:00]FM_MakeSignedData done [12:41:00]CreateOFDProtocolMessage [12:41:00]wFMCommunicate request_size=4 [12:41:00]MH_SAM_APDU [12:41:00]CAPDU: 80 11 00 00 [12:41:00]Write to MH i2c: E2 08 00 CE 0B 80 11 00 00 00 00 00 00 53 [12:41:00]Write i2c OK [12:41:00]MH_I2C_Read... [12:41:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:00]Read from MH i2c: E2 [12:41:00]MH_I2C_Read... [12:41:00]Read from MH i2c: E2 17 00 [12:41:00]MH_I2C_Read... [12:41:00]Read from MH i2c: E2 17 00 CE 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A8 [12:41:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:41:00]wFMCommunicate OK [12:41:00]CreateOFDProtocolMessage done [12:41:00]OFDSenderStorePacket 201463 [12:41:00]StoreOFDPacket docnum=201463 [12:41:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 25 25 07 01 0D F6 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 32 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 B0 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 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 5B E3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F7 12 03 00 35 04 06 00 A7 BC 87 CA B9 DC 35 8A 1E 35 BC 81 95 54 [12:41:00]CheckFolder [12:41:00]dirname=/storage/ofd_packets [12:41:00]CheckFolder done [12:41:00]ProducePacketName [12:41:00]name=ofd_packets/00201463 [12:41:00]NVStorageSaveData ofd_packets/00201463 [12:41:00]File name is /storage/ofd_packets/00201463 [12:41:00]Write 301 bytes [12:41:00]NVStorageSaveData done [12:41:00]OFDSenderStorePacket done [12:41:00]KKMCreateOFDPacket done [12:41:00]NVStorageSaveData kkm_last_timestamp [12:41:00]File name is /storage/kkm_last_timestamp [12:41:00]Write 4 bytes [12:41:00]NVStorageSaveData done [12:41:00]ExternCall_PrintAddStr [12:41:00]wPrintStart [12:41:00]Write to MH i2c: 01 00 00 CF 0B DA [12:41:00]Write i2c OK [12:41:00]MH_I2C_Read... [12:41:00]Read from MH i2c: 01 [12:41:00]MH_I2C_Read... [12:41:00]Read from MH i2c: 01 07 00 [12:41:00]MH_I2C_Read... [12:41:00]Read from MH i2c: 01 07 00 CF 0B 00 00 00 00 00 FF 0F EF [12:41:00]RasterBufferAndPrint [12:41:00]line Счет N : (1)449213 [12:41:00]line ИНН: 02508201610067 [12:41:00]line Контрольно-Кассовый Чек [12:41:00]line ПРОДАЖА [12:41:00]line ТРК (МРК, ГНК) : 52 [12:41:00]line Товар: 2710124130 [12:41:00]line Аи-92-К-2 [12:41:00]line 14.950 * 66.90 [12:41:00]line = 1000.16 [12:41:00]line НДС 12% НСП 1% [12:41:00]line > о реализуемом товаре [12:41:00]line ИТОГО: 1000.16 [12:41:00]line НСП 1% : 8.85 [12:41:00]line НДС 12% : 106.21 [12:41:00]line Наличными: 0.00 [12:41:00]line Безнал.: 1000.16 [12:41:00]line Место: АЗС № 171 "Партнер Нефть" [12:41:00]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:41:00]line СНО: Общий режим [12:41:00]line Чек 225 26.10.2024 12:40 [12:41:00]line Смена: 543 ФФД: 1.0 [12:41:00]line ЗНМ: 0300000109 [12:41:00]line РНМ: 0000000000091777 [12:41:00]line Версия ККМ: 001 [12:41:00]line Платежная система: Mbank [12:41:00]line ФМ: 0000000000871756 [12:41:00]line ФД: 201463 [12:41:00]line ФПД: 184428173900252 [12:41:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T124059&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201463&fm=184428173900252&tin=02508201610067®Number=0000000000091777&sum=100016 [12:41:00]written 0, free lines is 4095 [12:41:00]OFD Sender: Processing packet 201463 [packets to send 112, broken 111] [12:41:00]ProducePacketName [12:41:00]name=ofd_packets/00201463 [12:41:00]OFD Sender: To server: pG, [12:41:00]CommunicateWithHost lk.salyk.kg:30040 [12:41:00]ConnectInit lk.salyk.kg [12:41:00]Connected sock=10 [12:41:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 25 25 07 01 0D F6 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 32 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 B0 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 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 5B E3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F7 12 03 00 35 04 06 00 A7 BC 87 CA B9 DC 35 8A 1E 35 BC 81 95 54 [12:41:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F8 EA 47 00 E2 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F7 12 03 00 F4 03 04 00 04 8F 1C 67 B6 04 01 00 00 07 06 CE 71 E0 25 F6 75 [12:41:01]CommunicateWithHost err = 0 [12:41:01]CheckOFDResponse [12:41:01]1017 (14) - 77093643461234 [12:41:01]1041 (16) - 0000000000871756 [12:41:01]1040 (4) - 201463 [12:41:01]1012 (4) - 26.10.2024 06:41 [12:41:01]1206 (1) - 0 [12:41:01]OFD Sender: Remove packet 201463 [12:41:01]ProducePacketName [12:41:01]name=ofd_packets/00201463 [12:41:01]NVStorageDeleteData [12:41:01]Write to MH i2c: 01 00 00 F8 0B 03 [12:41:01]Write i2c OK [12:41:01]MH_I2C_Read... [12:41:01]Read from MH i2c: 01 [12:41:01]MH_I2C_Read... [12:41:01]Read from MH i2c: 01 07 00 [12:41:01]MH_I2C_Read... [12:41:01]Read from MH i2c: 01 07 00 F8 0B 00 00 00 00 00 C8 0C DE [12:41:01]RasterBufferAndPrint [12:41:01]line [12:41:01]line [12:41:01]line [12:41:01]line [12:41:01]line [12:41:01]written 0, free lines is 3278 [12:41:01]MH_Cut [12:41:01]Write to MH i2c: D1 01 00 FF 0B 01 DC [12:41:01]Write i2c OK [12:41:01]MH_I2C_Read... [12:41:01]Read from MH i2c: D1 [12:41:01]MH_I2C_Read... [12:41:01]Read from MH i2c: D1 01 00 [12:41:01]MH_I2C_Read... [12:41:01]Read from MH i2c: D1 01 00 FF 0B 00 DB [12:41:01]Write to MH i2c: 01 00 00 00 0C 0C [12:41:01]Write i2c OK [12:41:01]MH_I2C_Read... [12:41:01]OFD Sender: No OFD packet to send [12:41:01]*** Cut start [12:41:01]*** Purtial cut [12:41:01]*** Stage 1: CUTSNS_PIN = 1 [12:41:02]Read from MH i2c: 01 [12:41:02]MH_I2C_Read... [12:41:02]*** Stop cut motor [12:41:02]*** Cut end [12:41:02]Read from MH i2c: 01 07 00 [12:41:02]MH_I2C_Read... [12:41:02]Read from MH i2c: 01 07 00 00 0C 00 00 00 00 00 FF 0F 21 [12:41:02]process_action close_receipt done [12:41:02]requested_data is exist [12:41:02]produce_requested_data [12:41:02]requested_item fm.sn is exist - process it [12:41:02]wFMCommunicate request_size=4 [12:41:02]MH_SAM_APDU [12:41:02]CAPDU: 80 11 00 00 [12:41:02]Write to MH i2c: E2 08 00 01 0C 80 11 00 00 00 00 00 00 87 [12:41:02]Write i2c OK [12:41:02]MH_I2C_Read... [12:41:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:02]Read from MH i2c: E2 [12:41:02]MH_I2C_Read... [12:41:02]Read from MH i2c: E2 17 00 [12:41:02]MH_I2C_Read... [12:41:02]Read from MH i2c: E2 17 00 01 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DC [12:41:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:41:02]wFMCommunicate OK [12:41:02]requested_item fd.num is exist - process it [12:41:02]SAM_PROTO_GetFieldsCounters [12:41:02]wFMCommunicate request_size=4 [12:41:02]MH_SAM_APDU [12:41:02]CAPDU: 80 13 00 00 [12:41:02]Write to MH i2c: E2 08 00 02 0C 80 13 00 00 00 00 00 00 8A [12:41:02]Write i2c OK [12:41:02]MH_I2C_Read... [12:41:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:02]Read from MH i2c: E2 [12:41:02]MH_I2C_Read... [12:41:02]Read from MH i2c: E2 62 00 [12:41:02]MH_I2C_Read... [12:41:02]Read from MH i2c: E2 62 00 02 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F7 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [12:41:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F7 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:41:02]wFMCommunicate OK [12:41:02]SAM_PROTO_GetFieldsCounters done [12:41:02]requested_item shift.num is exist - process it [12:41:02]requested_item shift.opened is exist - process it [12:41:02]req_shift_opened [12:41:02]FM_GetShiftState [12:41:02]SAM_PROTO_GetShiftState [12:41:02]wFMCommunicate request_size=4 [12:41:02]MH_SAM_APDU [12:41:02]CAPDU: 80 13 01 00 [12:41:02]Write to MH i2c: E2 08 00 03 0C 80 13 01 00 00 00 00 00 8C [12:41:02]Write i2c OK [12:41:02]MH_I2C_Read... [12:41:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:02]Read from MH i2c: E2 [12:41:02]MH_I2C_Read... [12:41:02]Read from MH i2c: E2 0E 00 [12:41:02]MH_I2C_Read... [12:41:02]Read from MH i2c: E2 0E 00 03 0C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 9B [12:41:02]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:41:02]wFMCommunicate OK [12:41:02]SAM_PROTO_GetShiftState done [12:41:02]FM_GetShiftState done [12:41:02]req_shift_opened done [12:41:02]requested_item shift.open_date is exist - process it [12:41:02]req_shift_open_date [12:41:02]req_shift_open_date done [12:41:02]produce_requested_data done [12:41:02]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201463,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:41:02]process_action_free close_receipt [12:41:02]json_value_free [12:41:02]json_value_free done [12:41:02]process_json_proto returns [12:41:02]Send response to host [12:41:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201463,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:41:02]free response buf [12:41:02]execute_script done [12:41:02]execute_script returns [12:41:02]free content buf [12:41:02]Sock 8.Close socket [12:41:02]Sock 8.Thread stoped [12:41:06]OFD Sender: No OFD packet to send [12:41:11]OFD Sender: No OFD packet to send [12:41:16]OFD Sender: No OFD packet to send [12:41:21]OFD Sender: No OFD packet to send [12:41:26]OFD Sender: No OFD packet to send [12:41:31]OFD Sender: No OFD packet to send [12:41:36]OFD Sender: No OFD packet to send [12:41:41]OFD Sender: No OFD packet to send [12:41:46]OFD Sender: No OFD packet to send [12:41:51]OFD Sender: No OFD packet to send [12:41:56]OFD Sender: No OFD packet to send [12:42:01]OFD Sender: No OFD packet to send [12:42:06]OFD Sender: No OFD packet to send [12:42:11]OFD Sender: No OFD packet to send [12:42:16]OFD Sender: No OFD packet to send [12:42:21]OFD Sender: No OFD packet to send [12:42:26]OFD Sender: No OFD packet to send [12:42:31]OFD Sender: No OFD packet to send [12:42:36]OFD Sender: No OFD packet to send [12:42:41]OFD Sender: No OFD packet to send [12:42:46]OFD Sender: No OFD packet to send [12:42:51]OFD Sender: No OFD packet to send [12:42:56]OFD Sender: No OFD packet to send [12:43:01]OFD Sender: No OFD packet to send [12:43:06]OFD Sender: No OFD packet to send [12:43:11]OFD Sender: No OFD packet to send [12:43:16]OFD Sender: No OFD packet to send [12:43:21]OFD Sender: No OFD packet to send [12:43:26]OFD Sender: No OFD packet to send [12:43:31]OFD Sender: No OFD packet to send [12:43:36]OFD Sender: No OFD packet to send [12:43:41]OFD Sender: No OFD packet to send [12:43:46]OFD Sender: No OFD packet to send [12:43:51]OFD Sender: No OFD packet to send [12:43:56]OFD Sender: No OFD packet to send [12:44:01]OFD Sender: No OFD packet to send [12:44:06]OFD Sender: No OFD packet to send [12:44:11]OFD Sender: No OFD packet to send [12:44:16]OFD Sender: No OFD packet to send [12:44:21]OFD Sender: No OFD packet to send [12:44:26]OFD Sender: No OFD packet to send [12:44:31]OFD Sender: No OFD packet to send [12:44:36]OFD Sender: No OFD packet to send [12:44:41]OFD Sender: No OFD packet to send [12:44:46]OFD Sender: No OFD packet to send [12:44:51]OFD Sender: No OFD packet to send [12:44:56]OFD Sender: No OFD packet to send [12:45:01]OFD Sender: No OFD packet to send [12:45:06]OFD Sender: No OFD packet to send [12:45:11]OFD Sender: No OFD packet to send [12:45:16]OFD Sender: No OFD packet to send [12:45:21]OFD Sender: No OFD packet to send [12:45:26]accept exits with 9 [12:45:26]New connection [12:45:26]New thread 3066690916 created [12:45:26]Thread 3066834276 joined [12:45:26]Waiting for new connection... [12:45:26] Sock 9.Parse request [12:45:26]Sock 9.Check first char [12:45:26]Sock 9.First char is OK [12:45:26]request: POST /json_proto HTTP/1.0 [12:45:26]Method: POST [12:45:26]URL: /json_proto [12:45:26]Method is POST - this is cgi request [12:45:26]url: /json_proto [12:45:26]query_string will be loaded in cgi processing [12:45:26]execute_cgi json_proto POST (null) [12:45:26]execute_cgi path=json_proto method=POST [12:45:26]POST find Content-Length [12:45:26]Host: 172.17.63.195:8080 [12:45:26]Content-Length: 677 [12:45:26]Content-Type: application/json [12:45:26] [12:45:26]POST finish read [12:45:26]Found Content-Length = 677 [12:45:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 6.580, "sum" : 440.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 440.00, "total" : 440.00, "payments": [ { "type": 0, "sum" : 440.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:26]execute_script... [12:45: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)449215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 6.580, "sum" : 440.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 440.00, "total" : 440.00, "payments": [ { "type": 0, "sum" : 440.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:26]POST & json_proto [12:45:26]process_json_proto [12:45:26]json parsed OK: [12:45:26]protocol is kg_v1.0 [12:45:26]action value=close_receipt [12:45:26]process_action close_receipt [12:45:26]cmd_close_receipt [12:45:26]MH_GetDate [12:45:26]Write to MH i2c: F0 00 00 04 0C FF [12:45:26]Write i2c OK [12:45:26]MH_I2C_Read... [12:45:26]Read from MH i2c: F0 [12:45:26]MH_I2C_Read... [12:45:26]Read from MH i2c: F0 09 00 [12:45:26]MH_I2C_Read... [12:45:26]Read from MH i2c: F0 09 00 04 0C 00 67 E4 1C 67 68 46 19 67 04 [12:45:26]GetLastDocTimeStamp 1729946459 [12:45:26]current date 1729946727 [12:45:26]FM_GetShiftState [12:45:26]SAM_PROTO_GetShiftState [12:45:26]wFMCommunicate request_size=4 [12:45:26]MH_SAM_APDU [12:45:26]CAPDU: 80 13 01 00 [12:45:26]Write to MH i2c: E2 08 00 05 0C 80 13 01 00 00 00 00 00 8E [12:45:26]Write i2c OK [12:45:26]MH_I2C_Read... [12:45:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:26]Read from MH i2c: E2 [12:45:26]MH_I2C_Read... [12:45:26]Read from MH i2c: E2 0E 00 [12:45:26]MH_I2C_Read... [12:45:26]Read from MH i2c: E2 0E 00 05 0C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 9D [12:45:26]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:45:26]wFMCommunicate OK [12:45:26]SAM_PROTO_GetShiftState done [12:45:26]FM_GetShiftState done [12:45:26]opened in 1729900879 [12:45:26]opened+sec_in_day 1729987279 [12:45:26]quantity*price = 44020 [12:45:26]sum+1 = 44021 [12:45:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 440.00 Внесено: 440.00 СДАЧА: 0.00 НСП 1% : 3.90 НДС 12% : 46.75 Наличными: 440.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 226 26.10.2024 12:45 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201464 ФПД: 37616993522300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T124527&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201464&fm=37616993522300&tin=02508201610067®Number=0000000000091777&sum=44000 [12:45:27]StoreToDocumentArchive [12:45:27]shift 543 fd 201464 [12:45:27]save to /storage/0543/doc_00201464 [12:45:27]save last doc name /storage/0543/doc_00201464 to /storage/kkm_last_doc_name [12:45:27]save OK [12:45:27]Clear old archive folders... [12:45:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:45:27]tlvbuf is B6E8B2C0 [12:45:27]SAM_PROTO_ClearQueue [12:45:27]wFMCommunicate request_size=4 [12:45:27]MH_SAM_APDU [12:45:27]CAPDU: 80 09 00 00 [12:45:27]Write to MH i2c: E2 08 00 12 0C 80 09 00 00 00 00 00 00 90 [12:45:27]Write i2c OK [12:45:27]MH_I2C_Read... [12:45:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:27]Read from MH i2c: E2 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 03 00 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 03 00 12 0C 00 90 00 92 [12:45:27]RAPDU: 90 00 [12:45:27]wFMCommunicate OK [12:45:27]SAM_PROTO_ClearQueue done [12:45:27]KKMCreateOFDPacket [12:45:27]OFDProtocolAddRootSTLVToBuf [12:45:27]FM_MakeSignedData [12:45:27]FM_MakeSignedData [12:45:27]SAM_PROTO_SignData [12:45:27]wFMCommunicate request_size=4 [12:45:27]MH_SAM_APDU [12:45:27]CAPDU: 80 0D 01 02 [12:45:27]Write to MH i2c: E2 08 00 13 0C 80 0D 01 02 00 00 00 00 98 [12:45:27]Write i2c OK [12:45:27]MH_I2C_Read... [12:45:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:27]Read from MH i2c: E2 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 03 00 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 03 00 13 0C 00 90 00 93 [12:45:27]RAPDU: 90 00 [12:45:27]wFMCommunicate OK [12:45:27]wFMCommunicate request_size=255 [12:45:27]MH_SAM_APDU [12:45: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 32 FF 03 08 00 03 B4 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F4 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 67 E4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F8 12 03 00 35 04 06 00 22 [12:45:27]Write to MH i2c: E2 02 01 14 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 32 FF 03 08 00 03 B4 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F4 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 67 E4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F8 12 03 00 35 04 06 00 22 00 00 41 [12:45:27]Write i2c OK [12:45:27]MH_I2C_Read... [12:45:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:27]Read from MH i2c: E2 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 03 00 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 03 00 14 0C 00 90 00 94 [12:45:27]RAPDU: 90 00 [12:45:27]wFMCommunicate OK [12:45:27]wFMCommunicate request_size=10 [12:45:27]MH_SAM_APDU [12:45:27]CAPDU: 80 0D 02 02 05 36 63 89 52 7C [12:45:27]Write to MH i2c: E2 0D 00 15 0C 80 0D 02 02 05 00 36 63 89 52 7C 00 00 95 [12:45:27]Write i2c OK [12:45:27]MH_I2C_Read... [12:45:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:27]Read from MH i2c: E2 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 03 00 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 03 00 15 0C 00 90 00 95 [12:45:27]RAPDU: 90 00 [12:45:27]wFMCommunicate OK [12:45:27]wFMCommunicate request_size=4 [12:45:27]MH_SAM_APDU [12:45:27]CAPDU: 80 0D 03 02 [12:45:27]Write to MH i2c: E2 08 00 16 0C 80 0D 03 02 00 00 00 00 9D [12:45:27]Write i2c OK [12:45:27]MH_I2C_Read... [12:45:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:27]Read from MH i2c: E2 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 0B 00 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 0B 00 16 0C 00 C2 8A 76 6B 4B 1F 63 1B 90 00 B3 [12:45:27]RAPDU: C2 8A 76 6B 4B 1F 63 1B 90 00 [12:45:27]wFMCommunicate OK [12:45:27]SAM_PROTO_SignData done [12:45:27]FM_MakeSignedData done [12:45:27]CreateOFDProtocolMessage [12:45:27]wFMCommunicate request_size=4 [12:45:27]MH_SAM_APDU [12:45:27]CAPDU: 80 11 00 00 [12:45:27]Write to MH i2c: E2 08 00 17 0C 80 11 00 00 00 00 00 00 9D [12:45:27]Write i2c OK [12:45:27]MH_I2C_Read... [12:45:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:28]Read from MH i2c: E2 [12:45:28]MH_I2C_Read... [12:45:28]Read from MH i2c: E2 17 00 [12:45:28]MH_I2C_Read... [12:45:28]Read from MH i2c: E2 17 00 17 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F2 [12:45:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:45:28]wFMCommunicate OK [12:45:28]CreateOFDProtocolMessage done [12:45:28]OFDSenderStorePacket 201464 [12:45:28]StoreOFDPacket docnum=201464 [12:45:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A1 C4 07 01 25 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B4 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F4 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 67 E4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F8 12 03 00 35 04 06 00 22 36 63 89 52 7C C2 8A 76 6B 4B 1F 63 1B [12:45:28]CheckFolder [12:45:28]dirname=/storage/ofd_packets [12:45:28]CheckFolder done [12:45:28]ProducePacketName [12:45:28]name=ofd_packets/00201464 [12:45:28]NVStorageSaveData ofd_packets/00201464 [12:45:28]File name is /storage/ofd_packets/00201464 [12:45:28]Write 301 bytes [12:45:28]NVStorageSaveData done [12:45:28]OFDSenderStorePacket done [12:45:28]KKMCreateOFDPacket done [12:45:28]NVStorageSaveData kkm_last_timestamp [12:45:28]File name is /storage/kkm_last_timestamp [12:45:28]Write 4 bytes [12:45:28]NVStorageSaveData done [12:45:28]ExternCall_PrintAddStr [12:45:28]wPrintStart [12:45:28]Write to MH i2c: 01 00 00 18 0C 24 [12:45:28]Write i2c OK [12:45:28]MH_I2C_Read... [12:45:28]Read from MH i2c: 01 [12:45:28]MH_I2C_Read... [12:45:28]Read from MH i2c: 01 07 00 [12:45:28]MH_I2C_Read... [12:45:28]Read from MH i2c: 01 07 00 18 0C 00 00 00 00 00 FF 0F 39 [12:45:28]RasterBufferAndPrint [12:45:28]line Счет N : (1)449215 [12:45:28]line ИНН: 02508201610067 [12:45:28]line Контрольно-Кассовый Чек [12:45:28]line ПРОДАЖА [12:45:28]line ТРК (МРК, ГНК) : 52 [12:45:28]line Товар: 2710124130 [12:45:28]line Аи-92-К-2 [12:45:28]line 6.580 * 66.90 [12:45:28]line = 440.20 [12:45:28]line НДС 12% НСП 1% [12:45:28]line > о реализуемом товаре [12:45:28]line ОКРУГЛЕНИЕ: -0.20 [12:45:28]line ИТОГО: 440.00 [12:45:28]line Внесено: 440.00 [12:45:28]line СДАЧА: 0.00 [12:45:28]line НСП 1% : 3.90 [12:45:28]line НДС 12% : 46.75 [12:45:28]line Наличными: 440.00 [12:45:28]line Безнал.: 0.00 [12:45:28]line Место: АЗС № 171 "Партнер Нефть" [12:45:28]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:45:28]line СНО: Общий режим [12:45:28]line Чек 226 26.10.2024 12:45 [12:45:28]line Смена: 543 ФФД: 1.0 [12:45:28]line ЗНМ: 0300000109 [12:45:28]line РНМ: 0000000000091777 [12:45:28]line Версия ККМ: 001 [12:45:28]line ФМ: 0000000000871756 [12:45:28]line ФД: 201464 [12:45:28]line ФПД: 37616993522300 [12:45:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T124527&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201464&fm=37616993522300&tin=02508201610067®Number=0000000000091777&sum=44000 [12:45:28]OFD Sender: Processing packet 201464 [packets to send 112, broken 111] [12:45:28]ProducePacketName [12:45:28]name=ofd_packets/00201464 [12:45:28]OFD Sender: To server: pG, [12:45:28]CommunicateWithHost lk.salyk.kg:30040 [12:45:28]ConnectInit lk.salyk.kg [12:45:28]written 0, free lines is 4095 [12:45:28]Connected sock=10 [12:45:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A1 C4 07 01 25 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B4 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F4 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 67 E4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F8 12 03 00 35 04 06 00 22 36 63 89 52 7C C2 8A 76 6B 4B 1F 63 1B [12:45:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 CF CC 47 00 14 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F8 12 03 00 F4 03 04 00 10 90 1C 67 B6 04 01 00 00 73 01 1C 65 B4 83 B7 9D [12:45:28]CommunicateWithHost err = 0 [12:45:28]CheckOFDResponse [12:45:28]1017 (14) - 77093643461234 [12:45:28]1041 (16) - 0000000000871756 [12:45:28]1040 (4) - 201464 [12:45:28]1012 (4) - 26.10.2024 06:45 [12:45:28]1206 (1) - 0 [12:45:28]OFD Sender: Remove packet 201464 [12:45:28]ProducePacketName [12:45:28]name=ofd_packets/00201464 [12:45:28]NVStorageDeleteData [12:45:28]Write to MH i2c: 01 00 00 43 0C 4F [12:45:28]Write i2c OK [12:45:28]MH_I2C_Read... [12:45:28]Read from MH i2c: 01 [12:45:28]MH_I2C_Read... [12:45:28]Read from MH i2c: 01 07 00 [12:45:28]MH_I2C_Read... [12:45:28]Read from MH i2c: 01 07 00 43 0C 00 00 00 00 00 99 0C FB [12:45:28]RasterBufferAndPrint [12:45:28]line [12:45:28]line [12:45:28]line [12:45:28]line [12:45:28]line [12:45:28]written 0, free lines is 3229 [12:45:28]MH_Cut [12:45:28]Write to MH i2c: D1 01 00 4A 0C 01 28 [12:45:28]Write i2c OK [12:45:28]MH_I2C_Read... [12:45:28]Read from MH i2c: D1 [12:45:28]MH_I2C_Read... [12:45:28]Read from MH i2c: D1 01 00 [12:45:28]MH_I2C_Read... [12:45:28]Read from MH i2c: D1 01 00 4A 0C 00 27 [12:45:28]Write to MH i2c: 01 00 00 4B 0C 57 [12:45:28]Write i2c OK [12:45:28]MH_I2C_Read... [12:45:29]OFD Sender: No OFD packet to send [12:45:29]*** Cut start [12:45:29]*** Purtial cut [12:45:29]*** Stage 1: CUTSNS_PIN = 1 [12:45:29]Read from MH i2c: 01 [12:45:29]MH_I2C_Read... [12:45:29]*** Stop cut motor [12:45:29]*** Cut end [12:45:29]Read from MH i2c: 01 07 00 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: 01 07 00 4B 0C 00 00 00 00 00 FF 0F 6C [12:45:29]process_action close_receipt done [12:45:29]requested_data is exist [12:45:29]produce_requested_data [12:45:29]requested_item fm.sn is exist - process it [12:45:29]wFMCommunicate request_size=4 [12:45:29]MH_SAM_APDU [12:45:29]CAPDU: 80 11 00 00 [12:45:29]Write to MH i2c: E2 08 00 4C 0C 80 11 00 00 00 00 00 00 D2 [12:45:29]Write i2c OK [12:45:29]MH_I2C_Read... [12:45:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:30]Read from MH i2c: E2 [12:45:30]MH_I2C_Read... [12:45:30]Read from MH i2c: E2 17 00 [12:45:30]MH_I2C_Read... [12:45:30]Read from MH i2c: E2 17 00 4C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 27 [12:45:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:45:30]wFMCommunicate OK [12:45:30]requested_item fd.num is exist - process it [12:45:30]SAM_PROTO_GetFieldsCounters [12:45:30]wFMCommunicate request_size=4 [12:45:30]MH_SAM_APDU [12:45:30]CAPDU: 80 13 00 00 [12:45:30]Write to MH i2c: E2 08 00 4D 0C 80 13 00 00 00 00 00 00 D5 [12:45:30]Write i2c OK [12:45:30]MH_I2C_Read... [12:45:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:30]Read from MH i2c: E2 [12:45:30]MH_I2C_Read... [12:45:30]Read from MH i2c: E2 62 00 [12:45:30]MH_I2C_Read... [12:45:30]Read from MH i2c: E2 62 00 4D 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F8 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [12:45:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F8 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:45:30]wFMCommunicate OK [12:45:30]SAM_PROTO_GetFieldsCounters done [12:45:30]requested_item shift.num is exist - process it [12:45:30]requested_item shift.opened is exist - process it [12:45:30]req_shift_opened [12:45:30]FM_GetShiftState [12:45:30]SAM_PROTO_GetShiftState [12:45:30]wFMCommunicate request_size=4 [12:45:30]MH_SAM_APDU [12:45:30]CAPDU: 80 13 01 00 [12:45:30]Write to MH i2c: E2 08 00 4E 0C 80 13 01 00 00 00 00 00 D7 [12:45:30]Write i2c OK [12:45:30]MH_I2C_Read... [12:45:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:30]Read from MH i2c: E2 [12:45:30]MH_I2C_Read... [12:45:30]Read from MH i2c: E2 0E 00 [12:45:30]MH_I2C_Read... [12:45:30]Read from MH i2c: E2 0E 00 4E 0C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E6 [12:45:30]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:45:30]wFMCommunicate OK [12:45:30]SAM_PROTO_GetShiftState done [12:45:30]FM_GetShiftState done [12:45:30]req_shift_opened done [12:45:30]requested_item shift.open_date is exist - process it [12:45:30]req_shift_open_date [12:45:30]req_shift_open_date done [12:45:30]produce_requested_data done [12:45:30]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201464,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:45:30]process_action_free close_receipt [12:45:30]json_value_free [12:45:30]json_value_free done [12:45:30]process_json_proto returns [12:45:30]Send response to host [12:45:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201464,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:45:30]free response buf [12:45:30]execute_script done [12:45:30]execute_script returns [12:45:30]free content buf [12:45:30]Sock 9.Close socket [12:45:30]Sock 9.Thread stoped [12:45:30]accept exits with 8 [12:45:30]New connection [12:45:30]New thread 3066834276 created [12:45:30]Thread 3066690916 joined [12:45:30]Waiting for new connection... [12:45:30] Sock 8.Parse request [12:45:30]Sock 8.Check first char [12:45:30]Sock 8.First char is OK [12:45:30]request: POST /json_proto HTTP/1.0 [12:45:30]Method: POST [12:45:30]URL: /json_proto [12:45:30]Method is POST - this is cgi request [12:45:30]url: /json_proto [12:45:30]query_string will be loaded in cgi processing [12:45:30]execute_cgi json_proto POST (null) [12:45:30]execute_cgi path=json_proto method=POST [12:45:30]POST find Content-Length [12:45:30]Host: 172.17.63.195:8080 [12:45:30]Content-Length: 682 [12:45:30]Content-Type: application/json [12:45:30] [12:45:30]POST finish read [12:45:30]Found Content-Length = 682 [12:45:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 28.410, "sum" : 1900.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1900.00, "total" : 1900.00, "payments": [ { "type": 0, "sum" : 1900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:30]execute_script... [12:45: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)449214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 28.410, "sum" : 1900.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1900.00, "total" : 1900.00, "payments": [ { "type": 0, "sum" : 1900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:30]POST & json_proto [12:45:30]process_json_proto [12:45:30]json parsed OK: [12:45:30]protocol is kg_v1.0 [12:45:30]action value=close_receipt [12:45:30]process_action close_receipt [12:45:30]cmd_close_receipt [12:45:30]MH_GetDate [12:45:30]Write to MH i2c: F0 00 00 4F 0C 4A [12:45:30]Write i2c OK [12:45:30]MH_I2C_Read... [12:45:30]Read from MH i2c: F0 [12:45:30]MH_I2C_Read... [12:45:30]Read from MH i2c: F0 09 00 [12:45:30]MH_I2C_Read... [12:45:30]Read from MH i2c: F0 09 00 4F 0C 00 6B E4 1C 67 68 46 19 67 53 [12:45:30]GetLastDocTimeStamp 1729946727 [12:45:30]current date 1729946731 [12:45:30]FM_GetShiftState [12:45:30]SAM_PROTO_GetShiftState [12:45:30]wFMCommunicate request_size=4 [12:45:30]MH_SAM_APDU [12:45:30]CAPDU: 80 13 01 00 [12:45:30]Write to MH i2c: E2 08 00 50 0C 80 13 01 00 00 00 00 00 D9 [12:45:30]Write i2c OK [12:45:30]MH_I2C_Read... [12:45:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:30]Read from MH i2c: E2 [12:45:30]MH_I2C_Read... [12:45:30]Read from MH i2c: E2 0E 00 [12:45:30]MH_I2C_Read... [12:45:30]Read from MH i2c: E2 0E 00 50 0C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E8 [12:45:30]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:45:30]wFMCommunicate OK [12:45:30]SAM_PROTO_GetShiftState done [12:45:30]FM_GetShiftState done [12:45:30]opened in 1729900879 [12:45:30]opened+sec_in_day 1729987279 [12:45:30]quantity*price = 190062 [12:45:30]sum+1 = 190064 [12:45:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 1900.00 Внесено: 1900.00 СДАЧА: 0.00 НСП 1% : 16.82 НДС 12% : 201.84 Наличными: 1900.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 227 26.10.2024 12:45 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201465 ФПД: 279416531297420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T124531&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201465&fm=279416531297420&tin=02508201610067®Number=0000000000091777&sum=190000 [12:45:32]StoreToDocumentArchive [12:45:32]shift 543 fd 201465 [12:45:32]save to /storage/0543/doc_00201465 [12:45:32]save last doc name /storage/0543/doc_00201465 to /storage/kkm_last_doc_name [12:45:32]save OK [12:45:32]Clear old archive folders... [12:45:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:45:32]tlvbuf is 01F0CF90 [12:45:32]SAM_PROTO_ClearQueue [12:45:32]wFMCommunicate request_size=4 [12:45:32]MH_SAM_APDU [12:45:32]CAPDU: 80 09 00 00 [12:45:32]Write to MH i2c: E2 08 00 5D 0C 80 09 00 00 00 00 00 00 DB [12:45:32]Write i2c OK [12:45:32]MH_I2C_Read... [12:45:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:32]Read from MH i2c: E2 [12:45:32]MH_I2C_Read... [12:45:32]Read from MH i2c: E2 03 00 [12:45:32]MH_I2C_Read... [12:45:32]Read from MH i2c: E2 03 00 5D 0C 00 90 00 DD [12:45:32]RAPDU: 90 00 [12:45:32]wFMCommunicate OK [12:45:32]SAM_PROTO_ClearQueue done [12:45:32]KKMCreateOFDPacket [12:45:32]OFDProtocolAddRootSTLVToBuf [12:45:32]FM_MakeSignedData [12:45:32]FM_MakeSignedData [12:45:32]SAM_PROTO_SignData [12:45:32]wFMCommunicate request_size=4 [12:45:32]MH_SAM_APDU [12:45:32]CAPDU: 80 0D 01 02 [12:45:32]Write to MH i2c: E2 08 00 5E 0C 80 0D 01 02 00 00 00 00 E3 [12:45:32]Write i2c OK [12:45:32]MH_I2C_Read... [12:45:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:32]Read from MH i2c: E2 [12:45:32]MH_I2C_Read... [12:45:32]Read from MH i2c: E2 03 00 [12:45:32]MH_I2C_Read... [12:45:32]Read from MH i2c: E2 03 00 5E 0C 00 90 00 DE [12:45:32]RAPDU: 90 00 [12:45:32]wFMCommunicate OK [12:45:32]wFMCommunicate request_size=255 [12:45:32]MH_SAM_APDU [12:45:32]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 32 FF 03 08 00 03 FA 6E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6F E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 6B E4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F9 12 03 00 35 04 06 00 FE [12:45:32]Write to MH i2c: E2 02 01 5F 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 32 FF 03 08 00 03 FA 6E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6F E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 6B E4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F9 12 03 00 35 04 06 00 FE 00 00 BD [12:45:32]Write i2c OK [12:45:32]MH_I2C_Read... [12:45:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:32]Read from MH i2c: E2 [12:45:32]MH_I2C_Read... [12:45:32]Read from MH i2c: E2 03 00 [12:45:32]MH_I2C_Read... [12:45:32]Read from MH i2c: E2 03 00 5F 0C 00 90 00 DF [12:45:32]RAPDU: 90 00 [12:45:32]wFMCommunicate OK [12:45:32]wFMCommunicate request_size=10 [12:45:32]MH_SAM_APDU [12:45:32]CAPDU: 80 0D 02 02 05 20 BB 17 A4 8C [12:45:32]Write to MH i2c: E2 0D 00 60 0C 80 0D 02 02 05 00 20 BB 17 A4 8C 00 00 12 [12:45:32]Write i2c OK [12:45:32]MH_I2C_Read... [12:45:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:32]Read from MH i2c: E2 [12:45:32]MH_I2C_Read... [12:45:32]Read from MH i2c: E2 03 00 [12:45:32]MH_I2C_Read... [12:45:32]Read from MH i2c: E2 03 00 60 0C 00 90 00 E0 [12:45:32]RAPDU: 90 00 [12:45:32]wFMCommunicate OK [12:45:32]wFMCommunicate request_size=4 [12:45:32]MH_SAM_APDU [12:45:32]CAPDU: 80 0D 03 02 [12:45:32]Write to MH i2c: E2 08 00 61 0C 80 0D 03 02 00 00 00 00 E8 [12:45:32]Write i2c OK [12:45:32]MH_I2C_Read... [12:45:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:32]Read from MH i2c: E2 [12:45:32]MH_I2C_Read... [12:45:32]Read from MH i2c: E2 0B 00 [12:45:32]MH_I2C_Read... [12:45:32]Read from MH i2c: E2 0B 00 61 0C 00 D6 49 88 6D 3D A4 32 42 90 00 52 [12:45:32]RAPDU: D6 49 88 6D 3D A4 32 42 90 00 [12:45:32]wFMCommunicate OK [12:45:32]SAM_PROTO_SignData done [12:45:32]FM_MakeSignedData done [12:45:32]CreateOFDProtocolMessage [12:45:32]wFMCommunicate request_size=4 [12:45:32]MH_SAM_APDU [12:45:32]CAPDU: 80 11 00 00 [12:45:32]Write to MH i2c: E2 08 00 62 0C 80 11 00 00 00 00 00 00 E8 [12:45:32]Write i2c OK [12:45:32]MH_I2C_Read... [12:45:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:32]Read from MH i2c: E2 [12:45:32]MH_I2C_Read... [12:45:32]Read from MH i2c: E2 17 00 [12:45:32]MH_I2C_Read... [12:45:32]Read from MH i2c: E2 17 00 62 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3D [12:45:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:45:32]wFMCommunicate OK [12:45:32]CreateOFDProtocolMessage done [12:45:32]OFDSenderStorePacket 201465 [12:45:32]StoreOFDPacket docnum=201465 [12:45:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 19 DF 07 01 9D 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 32 FF 03 08 00 03 FA 6E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6F E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 6B E4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F9 12 03 00 35 04 06 00 FE 20 BB 17 A4 8C D6 49 88 6D 3D A4 32 42 [12:45:32]CheckFolder [12:45:32]dirname=/storage/ofd_packets [12:45:32]CheckFolder done [12:45:32]ProducePacketName [12:45:32]name=ofd_packets/00201465 [12:45:32]NVStorageSaveData ofd_packets/00201465 [12:45:32]File name is /storage/ofd_packets/00201465 [12:45:32]Write 301 bytes [12:45:32]NVStorageSaveData done [12:45:32]OFDSenderStorePacket done [12:45:32]KKMCreateOFDPacket done [12:45:32]NVStorageSaveData kkm_last_timestamp [12:45:32]File name is /storage/kkm_last_timestamp [12:45:32]Write 4 bytes [12:45:32]NVStorageSaveData done [12:45:32]ExternCall_PrintAddStr [12:45:32]wPrintStart [12:45:32]Write to MH i2c: 01 00 00 63 0C 6F [12:45:32]Write i2c OK [12:45:32]MH_I2C_Read... [12:45:32]Read from MH i2c: 01 [12:45:32]MH_I2C_Read... [12:45:32]Read from MH i2c: 01 07 00 [12:45:32]MH_I2C_Read... [12:45:32]Read from MH i2c: 01 07 00 63 0C 00 00 00 00 00 FF 0F 84 [12:45:32]RasterBufferAndPrint [12:45:32]line Счет N : (1)449214 [12:45:32]line ИНН: 02508201610067 [12:45:32]line Контрольно-Кассовый Чек [12:45:32]line ПРОДАЖА [12:45:32]line ТРК (МРК, ГНК) : 62 [12:45:32]line Товар: 2710124130 [12:45:32]line Аи-92-К-2 [12:45:32]line 28.410 * 66.90 [12:45:32]line = 1900.63 [12:45:32]line НДС 12% НСП 1% [12:45:32]line > о реализуемом товаре [12:45:32]line ОКРУГЛЕНИЕ: -0.63 [12:45:32]line ИТОГО: 1900.00 [12:45:32]line Внесено: 1900.00 [12:45:32]line СДАЧА: 0.00 [12:45:32]line НСП 1% : 16.82 [12:45:32]line НДС 12% : 201.84 [12:45:32]line Наличными: 1900.00 [12:45:32]line Безнал.: 0.00 [12:45:32]line Место: АЗС № 171 "Партнер Нефть" [12:45:32]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:45:32]line СНО: Общий режим [12:45:32]line Чек 227 26.10.2024 12:45 [12:45:32]line Смена: 543 ФФД: 1.0 [12:45:32]line ЗНМ: 0300000109 [12:45:32]line РНМ: 0000000000091777 [12:45:32]line Версия ККМ: 001 [12:45:32]line ФМ: 0000000000871756 [12:45:32]line ФД: 201465 [12:45:32]line ФПД: 279416531297420 [12:45:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T124531&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201465&fm=279416531297420&tin=02508201610067®Number=0000000000091777&sum=190000 [12:45:32]OFD Sender: Processing packet 201465 [packets to send 112, broken 111] [12:45:32]ProducePacketName [12:45:32]name=ofd_packets/00201465 [12:45:32]OFD Sender: To server: pG, [12:45:32]CommunicateWithHost lk.salyk.kg:30040 [12:45:32]ConnectInit lk.salyk.kg [12:45:32]written 0, free lines is 4095 [12:45:32]Connected sock=10 [12:45:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 19 DF 07 01 9D 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 32 FF 03 08 00 03 FA 6E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6F E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 6B E4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F9 12 03 00 35 04 06 00 FE 20 BB 17 A4 8C D6 49 88 6D 3D A4 32 42 [12:45:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A7 C7 47 00 51 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F9 12 03 00 F4 03 04 00 14 90 1C 67 B6 04 01 00 00 4A E1 C7 7B 2F FC 85 DC [12:45:33]CommunicateWithHost err = 0 [12:45:33]CheckOFDResponse [12:45:33]1017 (14) - 77093643461234 [12:45:33]1041 (16) - 0000000000871756 [12:45:33]1040 (4) - 201465 [12:45:33]1012 (4) - 26.10.2024 06:45 [12:45:33]1206 (1) - 0 [12:45:33]OFD Sender: Remove packet 201465 [12:45:33]ProducePacketName [12:45:33]name=ofd_packets/00201465 [12:45:33]NVStorageDeleteData [12:45:33]Write to MH i2c: 01 00 00 8E 0C 9A [12:45:33]Write i2c OK [12:45:33]MH_I2C_Read... [12:45:33]Read from MH i2c: 01 [12:45:33]MH_I2C_Read... [12:45:33]Read from MH i2c: 01 07 00 [12:45:33]MH_I2C_Read... [12:45:33]Read from MH i2c: 01 07 00 8E 0C 00 00 00 00 00 99 0C 46 [12:45:33]RasterBufferAndPrint [12:45:33]line [12:45:33]line [12:45:33]line [12:45:33]line [12:45:33]line [12:45:33]written 0, free lines is 3233 [12:45:33]MH_Cut [12:45:33]Write to MH i2c: D1 01 00 95 0C 01 73 [12:45:33]Write i2c OK [12:45:33]MH_I2C_Read... [12:45:33]Read from MH i2c: D1 [12:45:33]MH_I2C_Read... [12:45:33]Read from MH i2c: D1 01 00 [12:45:33]MH_I2C_Read... [12:45:33]Read from MH i2c: D1 01 00 95 0C 00 72 [12:45:33]Write to MH i2c: 01 00 00 96 0C A2 [12:45:33]Write i2c OK [12:45:33]MH_I2C_Read... [12:45:33]OFD Sender: No OFD packet to send [12:45:34]*** Cut start [12:45:34]*** Purtial cut [12:45:34]*** Stage 1: CUTSNS_PIN = 1 [12:45:34]Read from MH i2c: 01 [12:45:34]MH_I2C_Read... [12:45:34]*** Stop cut motor [12:45:34]*** Cut end [12:45:34]Read from MH i2c: 01 07 00 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: 01 07 00 96 0C 00 00 00 00 00 FF 0F B7 [12:45:34]process_action close_receipt done [12:45:34]requested_data is exist [12:45:34]produce_requested_data [12:45:34]requested_item fm.sn is exist - process it [12:45:34]wFMCommunicate request_size=4 [12:45:34]MH_SAM_APDU [12:45:34]CAPDU: 80 11 00 00 [12:45:34]Write to MH i2c: E2 08 00 97 0C 80 11 00 00 00 00 00 00 1D [12:45:34]Write i2c OK [12:45:34]MH_I2C_Read... [12:45:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:34]Read from MH i2c: E2 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 17 00 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 17 00 97 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 72 [12:45:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:45:34]wFMCommunicate OK [12:45:34]requested_item fd.num is exist - process it [12:45:34]SAM_PROTO_GetFieldsCounters [12:45:34]wFMCommunicate request_size=4 [12:45:34]MH_SAM_APDU [12:45:34]CAPDU: 80 13 00 00 [12:45:34]Write to MH i2c: E2 08 00 98 0C 80 13 00 00 00 00 00 00 20 [12:45:34]Write i2c OK [12:45:34]MH_I2C_Read... [12:45:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:34]Read from MH i2c: E2 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 62 00 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 62 00 98 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F9 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [12:45:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F9 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:45:34]wFMCommunicate OK [12:45:34]SAM_PROTO_GetFieldsCounters done [12:45:34]requested_item shift.num is exist - process it [12:45:34]requested_item shift.opened is exist - process it [12:45:34]req_shift_opened [12:45:34]FM_GetShiftState [12:45:34]SAM_PROTO_GetShiftState [12:45:34]wFMCommunicate request_size=4 [12:45:34]MH_SAM_APDU [12:45:34]CAPDU: 80 13 01 00 [12:45:34]Write to MH i2c: E2 08 00 99 0C 80 13 01 00 00 00 00 00 22 [12:45:34]Write i2c OK [12:45:34]MH_I2C_Read... [12:45:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:34]Read from MH i2c: E2 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 0E 00 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 0E 00 99 0C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 31 [12:45:34]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:45:34]wFMCommunicate OK [12:45:34]SAM_PROTO_GetShiftState done [12:45:34]FM_GetShiftState done [12:45:34]req_shift_opened done [12:45:34]requested_item shift.open_date is exist - process it [12:45:34]req_shift_open_date [12:45:34]req_shift_open_date done [12:45:34]produce_requested_data done [12:45:34]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201465,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:45:34]process_action_free close_receipt [12:45:34]json_value_free [12:45:34]json_value_free done [12:45:34]process_json_proto returns [12:45:34]Send response to host [12:45:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201465,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:45:34]free response buf [12:45:34]execute_script done [12:45:34]execute_script returns [12:45:34]free content buf [12:45:34]Sock 8.Close socket [12:45:34]Sock 8.Thread stoped [12:45:38]OFD Sender: No OFD packet to send [12:45:43]OFD Sender: No OFD packet to send [12:45:48]OFD Sender: No OFD packet to send [12:45:53]OFD Sender: No OFD packet to send [12:45:58]OFD Sender: No OFD packet to send [12:46:03]OFD Sender: No OFD packet to send [12:46:08]OFD Sender: No OFD packet to send [12:46:13]OFD Sender: No OFD packet to send [12:46:18]OFD Sender: No OFD packet to send [12:46:23]OFD Sender: No OFD packet to send [12:46:28]OFD Sender: No OFD packet to send [12:46:33]OFD Sender: No OFD packet to send [12:46:38]OFD Sender: No OFD packet to send [12:46:43]OFD Sender: No OFD packet to send [12:46:48]OFD Sender: No OFD packet to send [12:46:53]OFD Sender: No OFD packet to send [12:46:58]OFD Sender: No OFD packet to send [12:47:03]OFD Sender: No OFD packet to send [12:47:08]OFD Sender: No OFD packet to send [12:47:13]OFD Sender: No OFD packet to send [12:47:18]OFD Sender: No OFD packet to send [12:47:23]OFD Sender: No OFD packet to send [12:47:28]OFD Sender: No OFD packet to send [12:47:33]OFD Sender: No OFD packet to send [12:47:38]OFD Sender: No OFD packet to send [12:47:43]OFD Sender: No OFD packet to send [12:47:48]OFD Sender: No OFD packet to send [12:47:53]OFD Sender: No OFD packet to send [12:47:58]OFD Sender: No OFD packet to send [12:48:03]OFD Sender: No OFD packet to send [12:48:08]OFD Sender: No OFD packet to send [12:48:13]OFD Sender: No OFD packet to send [12:48:18]OFD Sender: No OFD packet to send [12:48:23]OFD Sender: No OFD packet to send [12:48:24]accept exits with 9 [12:48:24]New connection [12:48:24]New thread 3066690916 created [12:48:24]Thread 3066834276 joined [12:48:24]Waiting for new connection... [12:48:24] Sock 9.Parse request [12:48:24]Sock 9.Check first char [12:48:24]Sock 9.First char is OK [12:48:24]request: POST /json_proto HTTP/1.0 [12:48:24]Method: POST [12:48:24]URL: /json_proto [12:48:24]Method is POST - this is cgi request [12:48:24]url: /json_proto [12:48:24]query_string will be loaded in cgi processing [12:48:24]execute_cgi json_proto POST (null) [12:48:24]execute_cgi path=json_proto method=POST [12:48:24]POST find Content-Length [12:48:24]Host: 172.17.63.195:8080 [12:48:24]Content-Length: 674 [12:48:24]Content-Type: application/json [12:48:24] [12:48:24]POST finish read [12:48:24]Found Content-Length = 674 [12:48:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "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" ] } } [12:48:24]execute_script... [12:48: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)449216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "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" ] } } [12:48:24]POST & json_proto [12:48:24]process_json_proto [12:48:24]json parsed OK: [12:48:24]protocol is kg_v1.0 [12:48:24]action value=close_receipt [12:48:24]process_action close_receipt [12:48:24]cmd_close_receipt [12:48:24]MH_GetDate [12:48:24]Write to MH i2c: F0 00 00 9A 0C 95 [12:48:24]Write i2c OK [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: F0 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: F0 09 00 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: F0 09 00 9A 0C 00 19 E5 1C 67 68 46 19 67 4D [12:48:24]GetLastDocTimeStamp 1729946731 [12:48:24]current date 1729946905 [12:48:24]FM_GetShiftState [12:48:24]SAM_PROTO_GetShiftState [12:48:24]wFMCommunicate request_size=4 [12:48:24]MH_SAM_APDU [12:48:24]CAPDU: 80 13 01 00 [12:48:24]Write to MH i2c: E2 08 00 9B 0C 80 13 01 00 00 00 00 00 24 [12:48:24]Write i2c OK [12:48:24]MH_I2C_Read... [12:48:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:24]Read from MH i2c: E2 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 0E 00 [12:48:24]MH_I2C_Read... [12:48:24]Read from MH i2c: E2 0E 00 9B 0C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 33 [12:48:24]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:48:24]wFMCommunicate OK [12:48:24]SAM_PROTO_GetShiftState done [12:48:24]FM_GetShiftState done [12:48:24]opened in 1729900879 [12:48:24]opened+sec_in_day 1729987279 [12:48:24]quantity*price = 40005 [12:48:24]sum+1 = 40006 [12:48:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 228 26.10.2024 12:48 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201466 ФПД: 179399390914689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T124825&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201466&fm=179399390914689&tin=02508201610067®Number=0000000000091777&sum=40000 [12:48:25]StoreToDocumentArchive [12:48:25]shift 543 fd 201466 [12:48:25]save to /storage/0543/doc_00201466 [12:48:25]save last doc name /storage/0543/doc_00201466 to /storage/kkm_last_doc_name [12:48:25]save OK [12:48:25]Clear old archive folders... [12:48:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:48:25]tlvbuf is 01F30070 [12:48:25]SAM_PROTO_ClearQueue [12:48:25]wFMCommunicate request_size=4 [12:48:25]MH_SAM_APDU [12:48:25]CAPDU: 80 09 00 00 [12:48:25]Write to MH i2c: E2 08 00 A8 0C 80 09 00 00 00 00 00 00 26 [12:48:25]Write i2c OK [12:48:25]MH_I2C_Read... [12:48:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:25]Read from MH i2c: E2 [12:48:25]MH_I2C_Read... [12:48:25]Read from MH i2c: E2 03 00 [12:48:25]MH_I2C_Read... [12:48:25]Read from MH i2c: E2 03 00 A8 0C 00 90 00 28 [12:48:25]RAPDU: 90 00 [12:48:25]wFMCommunicate OK [12:48:25]SAM_PROTO_ClearQueue done [12:48:25]KKMCreateOFDPacket [12:48:25]OFDProtocolAddRootSTLVToBuf [12:48:25]FM_MakeSignedData [12:48:25]FM_MakeSignedData [12:48:25]SAM_PROTO_SignData [12:48:25]wFMCommunicate request_size=4 [12:48:25]MH_SAM_APDU [12:48:25]CAPDU: 80 0D 01 02 [12:48:25]Write to MH i2c: E2 08 00 A9 0C 80 0D 01 02 00 00 00 00 2E [12:48:25]Write i2c OK [12:48:25]MH_I2C_Read... [12:48:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:25]Read from MH i2c: E2 [12:48:25]MH_I2C_Read... [12:48:25]Read from MH i2c: E2 03 00 [12:48:25]MH_I2C_Read... [12:48:25]Read from MH i2c: E2 03 00 A9 0C 00 90 00 29 [12:48:25]RAPDU: 90 00 [12:48:25]wFMCommunicate OK [12:48:25]wFMCommunicate request_size=255 [12:48:25]MH_SAM_APDU [12:48:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 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 E4 00 00 00 F4 03 04 00 19 E5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FA 12 03 00 35 04 06 00 A3 29 AC F7 [12:48:25]Write to MH i2c: E2 02 01 AA 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 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 E4 00 00 00 F4 03 04 00 19 E5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FA 12 03 00 35 04 06 00 A3 29 AC F7 00 00 AF [12:48:25]Write i2c OK [12:48:25]MH_I2C_Read... [12:48:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:26]Read from MH i2c: E2 [12:48:26]MH_I2C_Read... [12:48:26]Read from MH i2c: E2 03 00 [12:48:26]MH_I2C_Read... [12:48:26]Read from MH i2c: E2 03 00 AA 0C 00 90 00 2A [12:48:26]RAPDU: 90 00 [12:48:26]wFMCommunicate OK [12:48:26]wFMCommunicate request_size=7 [12:48:26]MH_SAM_APDU [12:48:26]CAPDU: 80 0D 02 02 02 E8 81 [12:48:26]Write to MH i2c: E2 0A 00 AB 0C 80 0D 02 02 02 00 E8 81 00 00 9E [12:48:26]Write i2c OK [12:48:26]MH_I2C_Read... [12:48:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:26]Read from MH i2c: E2 [12:48:26]MH_I2C_Read... [12:48:26]Read from MH i2c: E2 03 00 [12:48:26]MH_I2C_Read... [12:48:26]Read from MH i2c: E2 03 00 AB 0C 00 90 00 2B [12:48:26]RAPDU: 90 00 [12:48:26]wFMCommunicate OK [12:48:26]wFMCommunicate request_size=4 [12:48:26]MH_SAM_APDU [12:48:26]CAPDU: 80 0D 03 02 [12:48:26]Write to MH i2c: E2 08 00 AC 0C 80 0D 03 02 00 00 00 00 33 [12:48:26]Write i2c OK [12:48:26]MH_I2C_Read... [12:48:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:26]Read from MH i2c: E2 [12:48:26]MH_I2C_Read... [12:48:26]Read from MH i2c: E2 0B 00 [12:48:26]MH_I2C_Read... [12:48:26]Read from MH i2c: E2 0B 00 AC 0C 00 96 49 0D 59 ED 9E FA 2B 90 00 29 [12:48:26]RAPDU: 96 49 0D 59 ED 9E FA 2B 90 00 [12:48:26]wFMCommunicate OK [12:48:26]SAM_PROTO_SignData done [12:48:26]FM_MakeSignedData done [12:48:26]CreateOFDProtocolMessage [12:48:26]wFMCommunicate request_size=4 [12:48:26]MH_SAM_APDU [12:48:26]CAPDU: 80 11 00 00 [12:48:26]Write to MH i2c: E2 08 00 AD 0C 80 11 00 00 00 00 00 00 33 [12:48:26]Write i2c OK [12:48:26]MH_I2C_Read... [12:48:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:26]Read from MH i2c: E2 [12:48:26]MH_I2C_Read... [12:48:26]Read from MH i2c: E2 17 00 [12:48:26]MH_I2C_Read... [12:48:26]Read from MH i2c: E2 17 00 AD 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 88 [12:48:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:48:26]wFMCommunicate OK [12:48:26]CreateOFDProtocolMessage done [12:48:26]OFDSenderStorePacket 201466 [12:48:26]StoreOFDPacket docnum=201466 [12:48:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 72 35 04 01 C4 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 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 E4 00 00 00 F4 03 04 00 19 E5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FA 12 03 00 35 04 06 00 A3 29 AC F7 E8 81 96 49 0D 59 ED 9E FA 2B [12:48:26]CheckFolder [12:48:26]dirname=/storage/ofd_packets [12:48:26]CheckFolder done [12:48:26]ProducePacketName [12:48:26]name=ofd_packets/00201466 [12:48:26]NVStorageSaveData ofd_packets/00201466 [12:48:26]File name is /storage/ofd_packets/00201466 [12:48:26]Write 298 bytes [12:48:26]NVStorageSaveData done [12:48:26]OFDSenderStorePacket done [12:48:26]KKMCreateOFDPacket done [12:48:26]NVStorageSaveData kkm_last_timestamp [12:48:26]File name is /storage/kkm_last_timestamp [12:48:26]Write 4 bytes [12:48:26]NVStorageSaveData done [12:48:26]ExternCall_PrintAddStr [12:48:26]wPrintStart [12:48:26]Write to MH i2c: 01 00 00 AE 0C BA [12:48:26]Write i2c OK [12:48:26]MH_I2C_Read... [12:48:26]Read from MH i2c: 01 [12:48:26]MH_I2C_Read... [12:48:26]Read from MH i2c: 01 07 00 [12:48:26]MH_I2C_Read... [12:48:26]Read from MH i2c: 01 07 00 AE 0C 00 00 00 00 00 FF 0F CF [12:48:26]RasterBufferAndPrint [12:48:26]line Счет N : (1)449216 [12:48:26]line ИНН: 02508201610067 [12:48:26]line Контрольно-Кассовый Чек [12:48:26]line ПРОДАЖА [12:48:26]line ТРК (МРК, ГНК) : 21 [12:48:26]line Товар: 2710194210 [12:48:26]line ДТ-К-2 [12:48:26]line 5.250 * 76.20 [12:48:26]line = 400.05 [12:48:26]line НДС 12% НСП 1% [12:48:26]line > о реализуемом товаре [12:48:26]line ОКРУГЛЕНИЕ: -0.05 [12:48:26]line ИТОГО: 400.00 [12:48:26]line Внесено: 400.00 [12:48:26]line СДАЧА: 0.00 [12:48:26]line НСП 1% : 3.54 [12:48:26]line НДС 12% : 42.48 [12:48:26]line Наличными: 400.00 [12:48:26]line Безнал.: 0.00 [12:48:26]line Место: АЗС № 171 "Партнер Нефть" [12:48:26]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:48:26]line СНО: Общий режим [12:48:26]line Чек 228 26.10.2024 12:48 [12:48:26]line Смена: 543 ФФД: 1.0 [12:48:26]line ЗНМ: 0300000109 [12:48:26]line РНМ: 0000000000091777 [12:48:26]line Версия ККМ: 001 [12:48:26]line ФМ: 0000000000871756 [12:48:26]line ФД: 201466 [12:48:26]line ФПД: 179399390914689 [12:48:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T124825&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201466&fm=179399390914689&tin=02508201610067®Number=0000000000091777&sum=40000 [12:48:26]OFD Sender: Processing packet 201466 [packets to send 112, broken 111] [12:48:26]ProducePacketName [12:48:26]name=ofd_packets/00201466 [12:48:26]OFD Sender: To server: pG, [12:48:26]CommunicateWithHost lk.salyk.kg:30040 [12:48:26]ConnectInit lk.salyk.kg [12:48:26]written 0, free lines is 4095 [12:48:26]Connected sock=10 [12:48:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 72 35 04 01 C4 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 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 E4 00 00 00 F4 03 04 00 19 E5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FA 12 03 00 35 04 06 00 A3 29 AC F7 E8 81 96 49 0D 59 ED 9E FA 2B [12:48:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 9A 5F 47 00 AD AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FA 12 03 00 F4 03 04 00 C2 90 1C 67 B6 04 01 00 00 DD 34 4D 1B 71 F6 ED 81 [12:48:26]CommunicateWithHost err = 0 [12:48:26]CheckOFDResponse [12:48:26]1017 (14) - 77093643461234 [12:48:26]1041 (16) - 0000000000871756 [12:48:26]1040 (4) - 201466 [12:48:26]1012 (4) - 26.10.2024 06:48 [12:48:26]1206 (1) - 0 [12:48:26]OFD Sender: Remove packet 201466 [12:48:26]ProducePacketName [12:48:26]name=ofd_packets/00201466 [12:48:26]NVStorageDeleteData [12:48:27]Write to MH i2c: 01 00 00 D9 0C E5 [12:48:27]Write i2c OK [12:48:27]MH_I2C_Read... [12:48:27]Read from MH i2c: 01 [12:48:27]MH_I2C_Read... [12:48:27]Read from MH i2c: 01 07 00 [12:48:27]MH_I2C_Read... [12:48:27]Read from MH i2c: 01 07 00 D9 0C 00 00 00 00 00 8D 0C 85 [12:48:27]RasterBufferAndPrint [12:48:27]line [12:48:27]line [12:48:27]line [12:48:27]line [12:48:27]line [12:48:27]written 0, free lines is 3218 [12:48:27]MH_Cut [12:48:27]Write to MH i2c: D1 01 00 E0 0C 01 BE [12:48:27]Write i2c OK [12:48:27]MH_I2C_Read... [12:48:27]Read from MH i2c: D1 [12:48:27]MH_I2C_Read... [12:48:27]Read from MH i2c: D1 01 00 [12:48:27]MH_I2C_Read... [12:48:27]Read from MH i2c: D1 01 00 E0 0C 00 BD [12:48:27]Write to MH i2c: 01 00 00 E1 0C ED [12:48:27]Write i2c OK [12:48:27]MH_I2C_Read... [12:48:27]OFD Sender: No OFD packet to send [12:48:27]*** Cut start [12:48:27]*** Purtial cut [12:48:27]*** Stage 1: CUTSNS_PIN = 1 [12:48:28]Read from MH i2c: 01 [12:48:28]MH_I2C_Read... [12:48:28]*** Stop cut motor [12:48:28]*** Cut end [12:48:28]Read from MH i2c: 01 07 00 [12:48:28]MH_I2C_Read... [12:48:28]Read from MH i2c: 01 07 00 E1 0C 00 00 00 00 00 FF 0F 02 [12:48:28]process_action close_receipt done [12:48:28]requested_data is exist [12:48:28]produce_requested_data [12:48:28]requested_item fm.sn is exist - process it [12:48:28]wFMCommunicate request_size=4 [12:48:28]MH_SAM_APDU [12:48:28]CAPDU: 80 11 00 00 [12:48:28]Write to MH i2c: E2 08 00 E2 0C 80 11 00 00 00 00 00 00 68 [12:48:28]Write i2c OK [12:48:28]MH_I2C_Read... [12:48:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:28]Read from MH i2c: E2 [12:48:28]MH_I2C_Read... [12:48:28]Read from MH i2c: E2 17 00 [12:48:28]MH_I2C_Read... [12:48:28]Read from MH i2c: E2 17 00 E2 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BD [12:48:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:48:28]wFMCommunicate OK [12:48:28]requested_item fd.num is exist - process it [12:48:28]SAM_PROTO_GetFieldsCounters [12:48:28]wFMCommunicate request_size=4 [12:48:28]MH_SAM_APDU [12:48:28]CAPDU: 80 13 00 00 [12:48:28]Write to MH i2c: E2 08 00 E3 0C 80 13 00 00 00 00 00 00 6B [12:48:28]Write i2c OK [12:48:28]MH_I2C_Read... [12:48:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:28]Read from MH i2c: E2 [12:48:28]MH_I2C_Read... [12:48:28]Read from MH i2c: E2 62 00 [12:48:28]MH_I2C_Read... [12:48:28]Read from MH i2c: E2 62 00 E3 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FA 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [12:48:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FA 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:48:28]wFMCommunicate OK [12:48:28]SAM_PROTO_GetFieldsCounters done [12:48:28]requested_item shift.num is exist - process it [12:48:28]requested_item shift.opened is exist - process it [12:48:28]req_shift_opened [12:48:28]FM_GetShiftState [12:48:28]SAM_PROTO_GetShiftState [12:48:28]wFMCommunicate request_size=4 [12:48:28]MH_SAM_APDU [12:48:28]CAPDU: 80 13 01 00 [12:48:28]Write to MH i2c: E2 08 00 E4 0C 80 13 01 00 00 00 00 00 6D [12:48:28]Write i2c OK [12:48:28]MH_I2C_Read... [12:48:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:28]Read from MH i2c: E2 [12:48:28]MH_I2C_Read... [12:48:28]Read from MH i2c: E2 0E 00 [12:48:28]MH_I2C_Read... [12:48:28]Read from MH i2c: E2 0E 00 E4 0C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 7C [12:48:28]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:48:28]wFMCommunicate OK [12:48:28]SAM_PROTO_GetShiftState done [12:48:28]FM_GetShiftState done [12:48:28]req_shift_opened done [12:48:28]requested_item shift.open_date is exist - process it [12:48:28]req_shift_open_date [12:48:28]req_shift_open_date done [12:48:28]produce_requested_data done [12:48:28]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201466,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:48:28]process_action_free close_receipt [12:48:28]json_value_free [12:48:28]json_value_free done [12:48:28]process_json_proto returns [12:48:28]Send response to host [12:48:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201466,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:48:28]free response buf [12:48:28]execute_script done [12:48:28]execute_script returns [12:48:28]free content buf [12:48:28]Sock 9.Close socket [12:48:28]Sock 9.Thread stoped [12:48:32]OFD Sender: No OFD packet to send [12:48:37]OFD Sender: No OFD packet to send [12:48:42]OFD Sender: No OFD packet to send [12:48:47]OFD Sender: No OFD packet to send [12:48:52]OFD Sender: No OFD packet to send [12:48:57]OFD Sender: No OFD packet to send [12:49:02]OFD Sender: No OFD packet to send [12:49:07]OFD Sender: No OFD packet to send [12:49:12]OFD Sender: No OFD packet to send [12:49:13]accept exits with 8 [12:49:13]New connection [12:49:13]New thread 3066834276 created [12:49:13]Thread 3066690916 joined [12:49:13]Waiting for new connection... [12:49:13] Sock 8.Parse request [12:49:13]Sock 8.Check first char [12:49:13]Sock 8.First char is OK [12:49:13]request: POST /json_proto HTTP/1.0 [12:49:13]Method: POST [12:49:13]URL: /json_proto [12:49:13]Method is POST - this is cgi request [12:49:13]url: /json_proto [12:49:13]query_string will be loaded in cgi processing [12:49:13]execute_cgi json_proto POST (null) [12:49:13]execute_cgi path=json_proto method=POST [12:49:13]POST find Content-Length [12:49:13]Host: 172.17.63.195:8080 [12:49:13]Content-Length: 678 [12:49:13]Content-Type: application/json [12:49:13] [12:49:13]POST finish read [12:49:13]Found Content-Length = 678 [12:49:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.540, "sum" : 705.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 705.00, "total" : 705.00, "payments": [ { "type": 0, "sum" : 705.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:13]execute_script... [12:49: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)449217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.540, "sum" : 705.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 705.00, "total" : 705.00, "payments": [ { "type": 0, "sum" : 705.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:13]POST & json_proto [12:49:13]process_json_proto [12:49:13]json parsed OK: [12:49:13]protocol is kg_v1.0 [12:49:13]action value=close_receipt [12:49:13]process_action close_receipt [12:49:13]cmd_close_receipt [12:49:13]MH_GetDate [12:49:13]Write to MH i2c: F0 00 00 E5 0C E0 [12:49:13]Write i2c OK [12:49:13]MH_I2C_Read... [12:49:13]Read from MH i2c: F0 [12:49:13]MH_I2C_Read... [12:49:13]Read from MH i2c: F0 09 00 [12:49:13]MH_I2C_Read... [12:49:13]Read from MH i2c: F0 09 00 E5 0C 00 4A E5 1C 67 68 46 19 67 C9 [12:49:13]GetLastDocTimeStamp 1729946905 [12:49:13]current date 1729946954 [12:49:13]FM_GetShiftState [12:49:13]SAM_PROTO_GetShiftState [12:49:13]wFMCommunicate request_size=4 [12:49:13]MH_SAM_APDU [12:49:13]CAPDU: 80 13 01 00 [12:49:13]Write to MH i2c: E2 08 00 E6 0C 80 13 01 00 00 00 00 00 6F [12:49:13]Write i2c OK [12:49:13]MH_I2C_Read... [12:49:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:13]Read from MH i2c: E2 [12:49:13]MH_I2C_Read... [12:49:13]Read from MH i2c: E2 0E 00 [12:49:13]MH_I2C_Read... [12:49:13]Read from MH i2c: E2 0E 00 E6 0C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 7E [12:49:13]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:49:13]wFMCommunicate OK [12:49:13]SAM_PROTO_GetShiftState done [12:49:13]FM_GetShiftState done [12:49:13]opened in 1729900879 [12:49:13]opened+sec_in_day 1729987279 [12:49:13]quantity*price = 70512 [12:49:13]sum+1 = 70514 [12:49:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 705.00 Внесено: 705.00 СДАЧА: 0.00 НСП 1% : 6.24 НДС 12% : 74.88 Наличными: 705.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 229 26.10.2024 12:49 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201467 ФПД: 270304300558489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T124914&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201467&fm=270304300558489&tin=02508201610067®Number=0000000000091777&sum=70500 [12:49:14]StoreToDocumentArchive [12:49:14]shift 543 fd 201467 [12:49:14]save to /storage/0543/doc_00201467 [12:49:14]save last doc name /storage/0543/doc_00201467 to /storage/kkm_last_doc_name [12:49:14]save OK [12:49:14]Clear old archive folders... [12:49:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:49:14]tlvbuf is 01F4F800 [12:49:14]SAM_PROTO_ClearQueue [12:49:14]wFMCommunicate request_size=4 [12:49:14]MH_SAM_APDU [12:49:14]CAPDU: 80 09 00 00 [12:49:14]Write to MH i2c: E2 08 00 F3 0C 80 09 00 00 00 00 00 00 71 [12:49:14]Write i2c OK [12:49:14]MH_I2C_Read... [12:49:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:14]Read from MH i2c: E2 [12:49:14]MH_I2C_Read... [12:49:14]Read from MH i2c: E2 03 00 [12:49:14]MH_I2C_Read... [12:49:14]Read from MH i2c: E2 03 00 F3 0C 00 90 00 73 [12:49:14]RAPDU: 90 00 [12:49:14]wFMCommunicate OK [12:49:14]SAM_PROTO_ClearQueue done [12:49:14]KKMCreateOFDPacket [12:49:14]OFDProtocolAddRootSTLVToBuf [12:49:14]FM_MakeSignedData [12:49:14]FM_MakeSignedData [12:49:14]SAM_PROTO_SignData [12:49:14]wFMCommunicate request_size=4 [12:49:14]MH_SAM_APDU [12:49:14]CAPDU: 80 0D 01 02 [12:49:14]Write to MH i2c: E2 08 00 F4 0C 80 0D 01 02 00 00 00 00 79 [12:49:14]Write i2c OK [12:49:14]MH_I2C_Read... [12:49:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:14]Read from MH i2c: E2 [12:49:14]MH_I2C_Read... [12:49:14]Read from MH i2c: E2 03 00 [12:49:14]MH_I2C_Read... [12:49:14]Read from MH i2c: E2 03 00 F4 0C 00 90 00 74 [12:49:14]RAPDU: 90 00 [12:49:14]wFMCommunicate OK [12:49:14]wFMCommunicate request_size=255 [12:49:14]MH_SAM_APDU [12:49: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 32 FF 03 08 00 03 2C 29 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 13 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 13 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 1D 00 00 00 00 07 04 06 00 64 13 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 4A E5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FB 12 03 00 35 04 06 00 F5 [12:49:14]Write to MH i2c: E2 02 01 F5 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 32 FF 03 08 00 03 2C 29 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 13 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 13 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 1D 00 00 00 00 07 04 06 00 64 13 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 4A E5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FB 12 03 00 35 04 06 00 F5 00 00 1A [12:49:14]Write i2c OK [12:49:14]MH_I2C_Read... [12:49:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:15]Read from MH i2c: E2 [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: E2 03 00 [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: E2 03 00 F5 0C 00 90 00 75 [12:49:15]RAPDU: 90 00 [12:49:15]wFMCommunicate OK [12:49:15]wFMCommunicate request_size=10 [12:49:15]MH_SAM_APDU [12:49:15]CAPDU: 80 0D 02 02 05 D7 1F D0 E8 99 [12:49:15]Write to MH i2c: E2 0D 00 F6 0C 80 0D 02 02 05 00 D7 1F D0 E8 99 00 00 CD [12:49:15]Write i2c OK [12:49:15]MH_I2C_Read... [12:49:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:15]Read from MH i2c: E2 [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: E2 03 00 [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: E2 03 00 F6 0C 00 90 00 76 [12:49:15]RAPDU: 90 00 [12:49:15]wFMCommunicate OK [12:49:15]wFMCommunicate request_size=4 [12:49:15]MH_SAM_APDU [12:49:15]CAPDU: 80 0D 03 02 [12:49:15]Write to MH i2c: E2 08 00 F7 0C 80 0D 03 02 00 00 00 00 7E [12:49:15]Write i2c OK [12:49:15]MH_I2C_Read... [12:49:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:15]Read from MH i2c: E2 [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: E2 0B 00 [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: E2 0B 00 F7 0C 00 E4 A0 6F 20 81 C4 F8 89 90 00 58 [12:49:15]RAPDU: E4 A0 6F 20 81 C4 F8 89 90 00 [12:49:15]wFMCommunicate OK [12:49:15]SAM_PROTO_SignData done [12:49:15]FM_MakeSignedData done [12:49:15]CreateOFDProtocolMessage [12:49:15]wFMCommunicate request_size=4 [12:49:15]MH_SAM_APDU [12:49:15]CAPDU: 80 11 00 00 [12:49:15]Write to MH i2c: E2 08 00 F8 0C 80 11 00 00 00 00 00 00 7E [12:49:15]Write i2c OK [12:49:15]MH_I2C_Read... [12:49:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:15]Read from MH i2c: E2 [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: E2 17 00 [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: E2 17 00 F8 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D3 [12:49:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:49:15]wFMCommunicate OK [12:49:15]CreateOFDProtocolMessage done [12:49:15]OFDSenderStorePacket 201467 [12:49:15]StoreOFDPacket docnum=201467 [12:49:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A9 7B 07 01 8B 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 32 FF 03 08 00 03 2C 29 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 13 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 13 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 1D 00 00 00 00 07 04 06 00 64 13 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 4A E5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FB 12 03 00 35 04 06 00 F5 D7 1F D0 E8 99 E4 A0 6F 20 81 C4 F8 89 [12:49:15]CheckFolder [12:49:15]dirname=/storage/ofd_packets [12:49:15]CheckFolder done [12:49:15]ProducePacketName [12:49:15]name=ofd_packets/00201467 [12:49:15]NVStorageSaveData ofd_packets/00201467 [12:49:15]File name is /storage/ofd_packets/00201467 [12:49:15]Write 301 bytes [12:49:15]NVStorageSaveData done [12:49:15]OFDSenderStorePacket done [12:49:15]KKMCreateOFDPacket done [12:49:15]NVStorageSaveData kkm_last_timestamp [12:49:15]File name is /storage/kkm_last_timestamp [12:49:15]Write 4 bytes [12:49:15]NVStorageSaveData done [12:49:15]ExternCall_PrintAddStr [12:49:15]wPrintStart [12:49:15]Write to MH i2c: 01 00 00 F9 0C 05 [12:49:15]Write i2c OK [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: 01 [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: 01 07 00 [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: 01 07 00 F9 0C 00 00 00 00 00 FF 0F 1A [12:49:15]RasterBufferAndPrint [12:49:15]line Счет N : (1)449217 [12:49:15]line ИНН: 02508201610067 [12:49:15]line Контрольно-Кассовый Чек [12:49:15]line ПРОДАЖА [12:49:15]line ТРК (МРК, ГНК) : 41 [12:49:15]line Товар: 2710124130 [12:49:15]line Аи-92-К-2 [12:49:15]line 10.540 * 66.90 [12:49:15]line = 705.13 [12:49:15]line НДС 12% НСП 1% [12:49:15]line > о реализуемом товаре [12:49:15]line ОКРУГЛЕНИЕ: -0.13 [12:49:15]line ИТОГО: 705.00 [12:49:15]line Внесено: 705.00 [12:49:15]line СДАЧА: 0.00 [12:49:15]line НСП 1% : 6.24 [12:49:15]line НДС 12% : 74.88 [12:49:15]line Наличными: 705.00 [12:49:15]line Безнал.: 0.00 [12:49:15]line Место: АЗС № 171 "Партнер Нефть" [12:49:15]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:49:15]line СНО: Общий режим [12:49:15]line Чек 229 26.10.2024 12:49 [12:49:15]line Смена: 543 ФФД: 1.0 [12:49:15]line ЗНМ: 0300000109 [12:49:15]line РНМ: 0000000000091777 [12:49:15]line Версия ККМ: 001 [12:49:15]line ФМ: 0000000000871756 [12:49:15]line ФД: 201467 [12:49:15]line ФПД: 270304300558489 [12:49:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T124914&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201467&fm=270304300558489&tin=02508201610067®Number=0000000000091777&sum=70500 [12:49:15]written 0, free lines is 4095 [12:49:15]OFD Sender: Processing packet 201467 [packets to send 112, broken 111] [12:49:15]ProducePacketName [12:49:15]name=ofd_packets/00201467 [12:49:15]OFD Sender: To server: pG, [12:49:15]CommunicateWithHost lk.salyk.kg:30040 [12:49:15]ConnectInit lk.salyk.kg [12:49:15]Connected sock=10 [12:49:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A9 7B 07 01 8B 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 32 FF 03 08 00 03 2C 29 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 13 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 13 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 1D 00 00 00 00 07 04 06 00 64 13 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 4A E5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FB 12 03 00 35 04 06 00 F5 D7 1F D0 E8 99 E4 A0 6F 20 81 C4 F8 89 [12:49:15]Write to MH i2c: 01 00 00 24 0D 31 [12:49:15]Write i2c OK [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: 01 [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: 01 07 00 [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: 01 07 00 24 0D 00 00 00 00 00 A1 0C E5 [12:49:15]RasterBufferAndPrint [12:49:15]line [12:49:15]line [12:49:15]line [12:49:15]line [12:49:15]line [12:49:15]written 0, free lines is 3237 [12:49:15]MH_Cut [12:49:15]Write to MH i2c: D1 01 00 2B 0D 01 0A [12:49:15]Write i2c OK [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: D1 [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: D1 01 00 [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: D1 01 00 2B 0D 00 09 [12:49:15]Write to MH i2c: 01 00 00 2C 0D 39 [12:49:15]Write i2c OK [12:49:15]MH_I2C_Read... [12:49:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 78 22 47 00 2F D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FB 12 03 00 F4 03 04 00 F3 90 1C 67 B6 04 01 00 00 43 46 7E CF 13 7A B6 15 [12:49:15]CommunicateWithHost err = 0 [12:49:15]CheckOFDResponse [12:49:15]1017 (14) - 77093643461234 [12:49:15]1041 (16) - 0000000000871756 [12:49:15]1040 (4) - 201467 [12:49:15]1012 (4) - 26.10.2024 06:49 [12:49:15]1206 (1) - 0 [12:49:15]OFD Sender: Remove packet 201467 [12:49:15]ProducePacketName [12:49:15]name=ofd_packets/00201467 [12:49:15]NVStorageDeleteData [12:49:16]OFD Sender: No OFD packet to send [12:49:16]*** Cut start [12:49:16]*** Purtial cut [12:49:16]*** Stage 1: CUTSNS_PIN = 1 [12:49:16]Read from MH i2c: 01 [12:49:16]MH_I2C_Read... [12:49:16]*** Stop cut motor [12:49:16]*** Cut end [12:49:16]Read from MH i2c: 01 07 00 [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: 01 07 00 2C 0D 00 00 00 00 00 FF 0F 4E [12:49:16]process_action close_receipt done [12:49:16]requested_data is exist [12:49:16]produce_requested_data [12:49:16]requested_item fm.sn is exist - process it [12:49:16]wFMCommunicate request_size=4 [12:49:16]MH_SAM_APDU [12:49:16]CAPDU: 80 11 00 00 [12:49:16]Write to MH i2c: E2 08 00 2D 0D 80 11 00 00 00 00 00 00 B4 [12:49:16]Write i2c OK [12:49:16]MH_I2C_Read... [12:49:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:16]Read from MH i2c: E2 [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: E2 17 00 [12:49:16]MH_I2C_Read... [12:49:16]Read from MH i2c: E2 17 00 2D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 09 [12:49:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:49:16]wFMCommunicate OK [12:49:16]requested_item fd.num is exist - process it [12:49:16]SAM_PROTO_GetFieldsCounters [12:49:16]wFMCommunicate request_size=4 [12:49:16]MH_SAM_APDU [12:49:16]CAPDU: 80 13 00 00 [12:49:16]Write to MH i2c: E2 08 00 2E 0D 80 13 00 00 00 00 00 00 B7 [12:49:16]Write i2c OK [12:49:16]MH_I2C_Read... [12:49:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:17]Read from MH i2c: E2 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: E2 62 00 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: E2 62 00 2E 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FB 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [12:49:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FB 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:17]wFMCommunicate OK [12:49:17]SAM_PROTO_GetFieldsCounters done [12:49:17]requested_item shift.num is exist - process it [12:49:17]requested_item shift.opened is exist - process it [12:49:17]req_shift_opened [12:49:17]FM_GetShiftState [12:49:17]SAM_PROTO_GetShiftState [12:49:17]wFMCommunicate request_size=4 [12:49:17]MH_SAM_APDU [12:49:17]CAPDU: 80 13 01 00 [12:49:17]Write to MH i2c: E2 08 00 2F 0D 80 13 01 00 00 00 00 00 B9 [12:49:17]Write i2c OK [12:49:17]MH_I2C_Read... [12:49:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:17]Read from MH i2c: E2 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: E2 0E 00 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: E2 0E 00 2F 0D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C8 [12:49:17]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:49:17]wFMCommunicate OK [12:49:17]SAM_PROTO_GetShiftState done [12:49:17]FM_GetShiftState done [12:49:17]req_shift_opened done [12:49:17]requested_item shift.open_date is exist - process it [12:49:17]req_shift_open_date [12:49:17]req_shift_open_date done [12:49:17]produce_requested_data done [12:49:17]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201467,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:49:17]process_action_free close_receipt [12:49:17]json_value_free [12:49:17]json_value_free done [12:49:17]process_json_proto returns [12:49:17]Send response to host [12:49:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201467,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:49:17]free response buf [12:49:17]execute_script done [12:49:17]execute_script returns [12:49:17]free content buf [12:49:17]Sock 8.Close socket [12:49:17]Sock 8.Thread stoped [12:49:21]OFD Sender: No OFD packet to send [12:49:26]OFD Sender: No OFD packet to send [12:49:31]OFD Sender: No OFD packet to send [12:49:36]OFD Sender: No OFD packet to send [12:49:41]OFD Sender: No OFD packet to send [12:49:46]OFD Sender: No OFD packet to send [12:49:51]OFD Sender: No OFD packet to send [12:49:56]OFD Sender: No OFD packet to send [12:50:01]OFD Sender: No OFD packet to send [12:50:06]OFD Sender: No OFD packet to send [12:50:11]OFD Sender: No OFD packet to send [12:50:16]OFD Sender: No OFD packet to send [12:50:21]OFD Sender: No OFD packet to send [12:50:26]OFD Sender: No OFD packet to send [12:50:31]OFD Sender: No OFD packet to send [12:50:36]OFD Sender: No OFD packet to send [12:50:41]OFD Sender: No OFD packet to send [12:50:43]accept exits with 9 [12:50:43]New connection [12:50:43]New thread 3066690916 created [12:50:43]Thread 3066834276 joined [12:50:43]Waiting for new connection... [12:50:43] Sock 9.Parse request [12:50:43]Sock 9.Check first char [12:50:43]Sock 9.First char is OK [12:50:43]request: POST /json_proto HTTP/1.0 [12:50:43]Method: POST [12:50:43]URL: /json_proto [12:50:43]Method is POST - this is cgi request [12:50:43]url: /json_proto [12:50:43]query_string will be loaded in cgi processing [12:50:43]execute_cgi json_proto POST (null) [12:50:43]execute_cgi path=json_proto method=POST [12:50:43]POST find Content-Length [12:50:43]Host: 172.17.63.195:8080 [12:50:43]Content-Length: 679 [12:50:43]Content-Type: application/json [12:50:43] [12:50:43]POST finish read [12:50:43]Found Content-Length = 679 [12:50:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 65.620, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:43]execute_script... [12: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)449218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 65.620, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:43]POST & json_proto [12:50:43]process_json_proto [12:50:43]json parsed OK: [12:50:43]protocol is kg_v1.0 [12:50:43]action value=close_receipt [12:50:43]process_action close_receipt [12:50:43]cmd_close_receipt [12:50:43]MH_GetDate [12:50:43]Write to MH i2c: F0 00 00 30 0D 2C [12:50:43]Write i2c OK [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: F0 [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: F0 09 00 [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: F0 09 00 30 0D 00 A3 E5 1C 67 68 46 19 67 6E [12:50:43]GetLastDocTimeStamp 1729946954 [12:50:43]current date 1729947043 [12:50:43]FM_GetShiftState [12:50:43]SAM_PROTO_GetShiftState [12:50:43]wFMCommunicate request_size=4 [12:50:43]MH_SAM_APDU [12:50:43]CAPDU: 80 13 01 00 [12:50:43]Write to MH i2c: E2 08 00 31 0D 80 13 01 00 00 00 00 00 BB [12:50:43]Write i2c OK [12:50:43]MH_I2C_Read... [12:50:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:43]Read from MH i2c: E2 [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: E2 0E 00 [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: E2 0E 00 31 0D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 CA [12:50:43]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:50:43]wFMCommunicate OK [12:50:43]SAM_PROTO_GetShiftState done [12:50:43]FM_GetShiftState done [12:50:43]opened in 1729900879 [12:50:43]opened+sec_in_day 1729987279 [12:50:43]quantity*price = 500024 [12:50:43]sum+1 = 500025 [12:50:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 230 26.10.2024 12:50 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201468 ФПД: 79397429802679 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125043&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201468&fm=79397429802679&tin=02508201610067®Number=0000000000091777&sum=500000 [12:50:44]StoreToDocumentArchive [12:50:44]shift 543 fd 201468 [12:50:44]save to /storage/0543/doc_00201468 [12:50:44]save last doc name /storage/0543/doc_00201468 to /storage/kkm_last_doc_name [12:50:44]save OK [12:50:44]Clear old archive folders... [12:50:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:50:44]tlvbuf is 01EE6A80 [12:50:44]SAM_PROTO_ClearQueue [12:50:44]wFMCommunicate request_size=4 [12:50:44]MH_SAM_APDU [12:50:44]CAPDU: 80 09 00 00 [12:50:44]Write to MH i2c: E2 08 00 3E 0D 80 09 00 00 00 00 00 00 BD [12:50:44]Write i2c OK [12:50:44]MH_I2C_Read... [12:50:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:44]Read from MH i2c: E2 [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: E2 03 00 [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: E2 03 00 3E 0D 00 90 00 BF [12:50:44]RAPDU: 90 00 [12:50:44]wFMCommunicate OK [12:50:44]SAM_PROTO_ClearQueue done [12:50:44]KKMCreateOFDPacket [12:50:44]OFDProtocolAddRootSTLVToBuf [12:50:44]FM_MakeSignedData [12:50:44]FM_MakeSignedData [12:50:44]SAM_PROTO_SignData [12:50:44]wFMCommunicate request_size=4 [12:50:44]MH_SAM_APDU [12:50:44]CAPDU: 80 0D 01 02 [12:50:44]Write to MH i2c: E2 08 00 3F 0D 80 0D 01 02 00 00 00 00 C5 [12:50:44]Write i2c OK [12:50:44]MH_I2C_Read... [12:50:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:44]Read from MH i2c: E2 [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: E2 03 00 [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: E2 03 00 3F 0D 00 90 00 C0 [12:50:44]RAPDU: 90 00 [12:50:44]wFMCommunicate OK [12:50:44]wFMCommunicate request_size=255 [12:50:44]MH_SAM_APDU [12: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 32 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 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 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 A3 E5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FC 12 03 00 35 04 06 00 48 36 27 99 [12:50:44]Write to MH i2c: E2 02 01 40 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 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 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 A3 E5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FC 12 03 00 35 04 06 00 48 36 27 99 00 00 C3 [12:50:44]Write i2c OK [12:50:44]MH_I2C_Read... [12:50:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:44]Read from MH i2c: E2 [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: E2 03 00 [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: E2 03 00 40 0D 00 90 00 C1 [12:50:44]RAPDU: 90 00 [12:50:44]wFMCommunicate OK [12:50:44]wFMCommunicate request_size=7 [12:50:44]MH_SAM_APDU [12:50:44]CAPDU: 80 0D 02 02 02 76 B7 [12:50:44]Write to MH i2c: E2 0A 00 41 0D 80 0D 02 02 02 00 76 B7 00 00 F9 [12:50:44]Write i2c OK [12:50:44]MH_I2C_Read... [12:50:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:44]Read from MH i2c: E2 [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: E2 03 00 [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: E2 03 00 41 0D 00 90 00 C2 [12:50:44]RAPDU: 90 00 [12:50:44]wFMCommunicate OK [12:50:44]wFMCommunicate request_size=4 [12:50:44]MH_SAM_APDU [12:50:44]CAPDU: 80 0D 03 02 [12:50:44]Write to MH i2c: E2 08 00 42 0D 80 0D 03 02 00 00 00 00 CA [12:50:44]Write i2c OK [12:50:44]MH_I2C_Read... [12:50:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:44]Read from MH i2c: E2 [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: E2 0B 00 [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: E2 0B 00 42 0D 00 16 56 F7 12 AE B7 23 C8 90 00 90 [12:50:44]RAPDU: 16 56 F7 12 AE B7 23 C8 90 00 [12:50:44]wFMCommunicate OK [12:50:44]SAM_PROTO_SignData done [12:50:44]FM_MakeSignedData done [12:50:44]CreateOFDProtocolMessage [12:50:44]wFMCommunicate request_size=4 [12:50:44]MH_SAM_APDU [12:50:44]CAPDU: 80 11 00 00 [12:50:44]Write to MH i2c: E2 08 00 43 0D 80 11 00 00 00 00 00 00 CA [12:50:44]Write i2c OK [12:50:44]MH_I2C_Read... [12:50:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:44]Read from MH i2c: E2 [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: E2 17 00 [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: E2 17 00 43 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1F [12:50:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:50:44]wFMCommunicate OK [12:50:44]CreateOFDProtocolMessage done [12:50:44]OFDSenderStorePacket 201468 [12:50:44]StoreOFDPacket docnum=201468 [12:50:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 8D 60 04 01 E6 40 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 32 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 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 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 A3 E5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FC 12 03 00 35 04 06 00 48 36 27 99 76 B7 16 56 F7 12 AE B7 23 C8 [12:50:44]CheckFolder [12:50:44]dirname=/storage/ofd_packets [12:50:44]CheckFolder done [12:50:44]ProducePacketName [12:50:44]name=ofd_packets/00201468 [12:50:44]NVStorageSaveData ofd_packets/00201468 [12:50:44]File name is /storage/ofd_packets/00201468 [12:50:44]Write 298 bytes [12:50:44]NVStorageSaveData done [12:50:44]OFDSenderStorePacket done [12:50:44]KKMCreateOFDPacket done [12:50:44]NVStorageSaveData kkm_last_timestamp [12:50:44]File name is /storage/kkm_last_timestamp [12:50:44]Write 4 bytes [12:50:44]NVStorageSaveData done [12:50:44]ExternCall_PrintAddStr [12:50:44]wPrintStart [12:50:44]Write to MH i2c: 01 00 00 44 0D 51 [12:50:44]Write i2c OK [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: 01 [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: 01 07 00 [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: 01 07 00 44 0D 00 00 00 00 00 FF 0F 66 [12:50:44]RasterBufferAndPrint [12:50:44]line Счет N : (1)449218 [12:50:44]line ИНН: 02508201610067 [12:50:44]line Контрольно-Кассовый Чек [12:50:44]line ПРОДАЖА [12:50:44]line ТРК (МРК, ГНК) : 11 [12:50:44]line Товар: 2710194210 [12:50:44]line ДТ-К-2 [12:50:44]line 65.620 * 76.20 [12:50:44]line = 5000.24 [12:50:44]line НДС 12% НСП 1% [12:50:44]line > о реализуемом товаре [12:50:44]line ОКРУГЛЕНИЕ: -0.24 [12:50:44]line ИТОГО: 5000.00 [12:50:44]line Внесено: 5000.00 [12:50:44]line СДАЧА: 0.00 [12:50:44]line НСП 1% : 44.25 [12:50:44]line НДС 12% : 531.00 [12:50:44]line Наличными: 5000.00 [12:50:44]line Безнал.: 0.00 [12:50:44]line Место: АЗС № 171 "Партнер Нефть" [12:50:44]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:50:44]line СНО: Общий режим [12:50:44]line Чек 230 26.10.2024 12:50 [12:50:44]line Смена: 543 ФФД: 1.0 [12:50:44]line ЗНМ: 0300000109 [12:50:44]line РНМ: 0000000000091777 [12:50:44]line Версия ККМ: 001 [12:50:44]line ФМ: 0000000000871756 [12:50:44]line ФД: 201468 [12:50:44]line ФПД: 79397429802679 [12:50:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125043&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201468&fm=79397429802679&tin=02508201610067®Number=0000000000091777&sum=500000 [12:50:45]OFD Sender: Processing packet 201468 [packets to send 112, broken 111] [12:50:45]ProducePacketName [12:50:45]name=ofd_packets/00201468 [12:50:45]OFD Sender: To server: pG, [12:50:45]CommunicateWithHost lk.salyk.kg:30040 [12:50:45]ConnectInit lk.salyk.kg [12:50:45]written 0, free lines is 4095 [12:50:45]Connected sock=11 [12:50:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 8D 60 04 01 E6 40 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 32 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 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 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 A3 E5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FC 12 03 00 35 04 06 00 48 36 27 99 76 B7 16 56 F7 12 AE B7 23 C8 [12:50:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 9E 54 47 00 C4 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FC 12 03 00 F4 03 04 00 4C 91 1C 67 B6 04 01 00 00 5E 81 25 1B 0B 83 69 E0 [12:50:45]CommunicateWithHost err = 0 [12:50:45]CheckOFDResponse [12:50:45]1017 (14) - 77093643461234 [12:50:45]1041 (16) - 0000000000871756 [12:50:45]1040 (4) - 201468 [12:50:45]1012 (4) - 26.10.2024 06:50 [12:50:45]1206 (1) - 0 [12:50:45]OFD Sender: Remove packet 201468 [12:50:45]ProducePacketName [12:50:45]name=ofd_packets/00201468 [12:50:45]NVStorageDeleteData [12:50:45]Write to MH i2c: 01 00 00 6F 0D 7C [12:50:45]Write i2c OK [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: 01 [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: 01 07 00 [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: 01 07 00 6F 0D 00 00 00 00 00 A0 0C 2F [12:50:45]RasterBufferAndPrint [12:50:45]line [12:50:45]line [12:50:45]line [12:50:45]line [12:50:45]line [12:50:45]written 0, free lines is 3237 [12:50:45]MH_Cut [12:50:45]Write to MH i2c: D1 01 00 76 0D 01 55 [12:50:45]Write i2c OK [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: D1 [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: D1 01 00 [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: D1 01 00 76 0D 00 54 [12:50:45]Write to MH i2c: 01 00 00 77 0D 84 [12:50:45]Write i2c OK [12:50:45]MH_I2C_Read... [12:50:45]OFD Sender: No OFD packet to send [12:50:46]*** Cut start [12:50:46]*** Purtial cut [12:50:46]*** CUTSNS_PIN = 0 [12:50:46]*** Stage 1: CUTSNS_PIN = 1 [12:50:48]Read from MH i2c: 01 [12:50:48]MH_I2C_Read... [12:50:48]*** Stop cut motor [12:50:48]*** Cut end [12:50:48]Read from MH i2c: 01 07 00 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: 01 07 00 77 0D 00 00 00 00 00 FF 0F 99 [12:50:48]process_action close_receipt done [12:50:48]requested_data is exist [12:50:48]produce_requested_data [12:50:48]requested_item fm.sn is exist - process it [12:50:48]wFMCommunicate request_size=4 [12:50:48]MH_SAM_APDU [12:50:48]CAPDU: 80 11 00 00 [12:50:48]Write to MH i2c: E2 08 00 78 0D 80 11 00 00 00 00 00 00 FF [12:50:48]Write i2c OK [12:50:48]MH_I2C_Read... [12:50:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:48]Read from MH i2c: E2 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: E2 17 00 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: E2 17 00 78 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 54 [12:50:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:50:48]wFMCommunicate OK [12:50:48]requested_item fd.num is exist - process it [12:50:48]SAM_PROTO_GetFieldsCounters [12:50:48]wFMCommunicate request_size=4 [12:50:48]MH_SAM_APDU [12:50:48]CAPDU: 80 13 00 00 [12:50:48]Write to MH i2c: E2 08 00 79 0D 80 13 00 00 00 00 00 00 02 [12:50:48]Write i2c OK [12:50:48]MH_I2C_Read... [12:50:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:48]Read from MH i2c: E2 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: E2 62 00 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: E2 62 00 79 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FC 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [12:50:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FC 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:50:48]wFMCommunicate OK [12:50:48]SAM_PROTO_GetFieldsCounters done [12:50:48]requested_item shift.num is exist - process it [12:50:48]requested_item shift.opened is exist - process it [12:50:48]req_shift_opened [12:50:48]FM_GetShiftState [12:50:48]SAM_PROTO_GetShiftState [12:50:48]wFMCommunicate request_size=4 [12:50:48]MH_SAM_APDU [12:50:48]CAPDU: 80 13 01 00 [12:50:48]Write to MH i2c: E2 08 00 7A 0D 80 13 01 00 00 00 00 00 04 [12:50:48]Write i2c OK [12:50:48]MH_I2C_Read... [12:50:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:48]Read from MH i2c: E2 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: E2 0E 00 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: E2 0E 00 7A 0D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 13 [12:50:48]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:50:48]wFMCommunicate OK [12:50:48]SAM_PROTO_GetShiftState done [12:50:48]FM_GetShiftState done [12:50:48]req_shift_opened done [12:50:48]requested_item shift.open_date is exist - process it [12:50:48]req_shift_open_date [12:50:48]req_shift_open_date done [12:50:48]produce_requested_data done [12:50:48]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201468,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:50:48]process_action_free close_receipt [12:50:48]json_value_free [12:50:48]json_value_free done [12:50:48]process_json_proto returns [12:50:48]Send response to host [12:50:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201468,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:50:48]free response buf [12:50:48]execute_script done [12:50:48]execute_script returns [12:50:48]free content buf [12:50:48]Sock 9.Close socket [12:50:48]Sock 9.Thread stoped [12:50:49]accept exits with 8 [12:50:49]New connection [12:50:49]New thread 3066834276 created [12:50:49]Thread 3066690916 joined [12:50:49]Waiting for new connection... [12:50:49] Sock 8.Parse request [12:50:49]Sock 8.Check first char [12:50:49]Sock 8.First char is OK [12:50:49]request: POST /json_proto HTTP/1.0 [12:50:49]Method: POST [12:50:49]URL: /json_proto [12:50:49]Method is POST - this is cgi request [12:50:49]url: /json_proto [12:50:49]query_string will be loaded in cgi processing [12:50:49]execute_cgi json_proto POST (null) [12:50:49]execute_cgi path=json_proto method=POST [12:50:49]POST find Content-Length [12:50:49]Host: 172.17.63.195:8080 [12:50:49]Content-Length: 674 [12:50:49]Content-Type: application/json [12:50:49] [12:50:49]POST finish read [12:50:49]Found Content-Length = 674 [12:50:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 2.630, "sum" : 200.41, "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" ] } } [12:50:49]execute_script... [12:50: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)449219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 2.630, "sum" : 200.41, "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" ] } } [12:50:49]POST & json_proto [12:50:49]process_json_proto [12:50:49]json parsed OK: [12:50:49]protocol is kg_v1.0 [12:50:49]action value=close_receipt [12:50:49]process_action close_receipt [12:50:49]cmd_close_receipt [12:50:49]MH_GetDate [12:50:49]Write to MH i2c: F0 00 00 7B 0D 77 [12:50:49]Write i2c OK [12:50:49]MH_I2C_Read... [12:50:49]Read from MH i2c: F0 [12:50:49]MH_I2C_Read... [12:50:49]Read from MH i2c: F0 09 00 [12:50:49]MH_I2C_Read... [12:50:49]Read from MH i2c: F0 09 00 7B 0D 00 AA E5 1C 67 68 46 19 67 C0 [12:50:49]GetLastDocTimeStamp 1729947043 [12:50:49]current date 1729947050 [12:50:49]FM_GetShiftState [12:50:49]SAM_PROTO_GetShiftState [12:50:49]wFMCommunicate request_size=4 [12:50:49]MH_SAM_APDU [12:50:49]CAPDU: 80 13 01 00 [12:50:49]Write to MH i2c: E2 08 00 7C 0D 80 13 01 00 00 00 00 00 06 [12:50:49]Write i2c OK [12:50:49]MH_I2C_Read... [12:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:49]Read from MH i2c: E2 [12:50:49]MH_I2C_Read... [12:50:49]Read from MH i2c: E2 0E 00 [12:50:49]MH_I2C_Read... [12:50:49]Read from MH i2c: E2 0E 00 7C 0D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 15 [12:50:49]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:50:49]wFMCommunicate OK [12:50:49]SAM_PROTO_GetShiftState done [12:50:49]FM_GetShiftState done [12:50:49]opened in 1729900879 [12:50:49]opened+sec_in_day 1729987279 [12:50:49]quantity*price = 20040 [12:50:49]sum+1 = 20042 [12:50:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 231 26.10.2024 12:50 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201469 ФПД: 232061712611225 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125050&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201469&fm=232061712611225&tin=02508201610067®Number=0000000000091777&sum=20000 [12:50:50]StoreToDocumentArchive [12:50:50]shift 543 fd 201469 [12:50:50]save to /storage/0543/doc_00201469 [12:50:50]save last doc name /storage/0543/doc_00201469 to /storage/kkm_last_doc_name [12:50:50]save OK [12:50:50]Clear old archive folders... [12:50:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:50:50]tlvbuf is 01F87010 [12:50:50]SAM_PROTO_ClearQueue [12:50:50]wFMCommunicate request_size=4 [12:50:50]MH_SAM_APDU [12:50:50]CAPDU: 80 09 00 00 [12:50:50]Write to MH i2c: E2 08 00 89 0D 80 09 00 00 00 00 00 00 08 [12:50:50]Write i2c OK [12:50:50]MH_I2C_Read... [12:50:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:50]Read from MH i2c: E2 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 03 00 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 03 00 89 0D 00 90 00 0A [12:50:50]RAPDU: 90 00 [12:50:50]wFMCommunicate OK [12:50:50]SAM_PROTO_ClearQueue done [12:50:50]KKMCreateOFDPacket [12:50:50]OFDProtocolAddRootSTLVToBuf [12:50:50]FM_MakeSignedData [12:50:50]FM_MakeSignedData [12:50:50]SAM_PROTO_SignData [12:50:50]wFMCommunicate request_size=4 [12:50:50]MH_SAM_APDU [12:50:50]CAPDU: 80 0D 01 02 [12:50:50]Write to MH i2c: E2 08 00 8A 0D 80 0D 01 02 00 00 00 00 10 [12:50:50]Write i2c OK [12:50:50]MH_I2C_Read... [12:50:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:50]Read from MH i2c: E2 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 03 00 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 03 00 8A 0D 00 90 00 0B [12:50:50]RAPDU: 90 00 [12:50:50]wFMCommunicate OK [12:50:50]wFMCommunicate request_size=255 [12:50:50]MH_SAM_APDU [12:50:50]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 32 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 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 50 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 E7 00 00 00 F4 03 04 00 AA E5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FD 12 03 00 35 04 06 00 D3 0F 13 F2 [12:50:50]Write to MH i2c: E2 02 01 8B 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 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 50 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 E7 00 00 00 F4 03 04 00 AA E5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FD 12 03 00 35 04 06 00 D3 0F 13 F2 00 00 32 [12:50:50]Write i2c OK [12:50:50]MH_I2C_Read... [12:50:51]Read from MH i2c: E2 [12:50:51]MH_I2C_Read... [12:50:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:51]OFD Sender: No OFD packet to send [12:50:51]Read from MH i2c: E2 03 00 [12:50:51]MH_I2C_Read... [12:50:51]Read from MH i2c: E2 03 00 8B 0D 00 90 00 0C [12:50:51]RAPDU: 90 00 [12:50:51]wFMCommunicate OK [12:50:51]wFMCommunicate request_size=7 [12:50:51]MH_SAM_APDU [12:50:51]CAPDU: 80 0D 02 02 02 37 99 [12:50:51]Write to MH i2c: E2 0A 00 8C 0D 80 0D 02 02 02 00 37 99 00 00 E7 [12:50:51]Write i2c OK [12:50:51]MH_I2C_Read... [12:50:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:51]Read from MH i2c: E2 [12:50:51]MH_I2C_Read... [12:50:51]Read from MH i2c: E2 03 00 [12:50:51]MH_I2C_Read... [12:50:51]Read from MH i2c: E2 03 00 8C 0D 00 90 00 0D [12:50:51]RAPDU: 90 00 [12:50:51]wFMCommunicate OK [12:50:51]wFMCommunicate request_size=4 [12:50:51]MH_SAM_APDU [12:50:51]CAPDU: 80 0D 03 02 [12:50:51]Write to MH i2c: E2 08 00 8D 0D 80 0D 03 02 00 00 00 00 15 [12:50:51]Write i2c OK [12:50:51]MH_I2C_Read... [12:50:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:51]Read from MH i2c: E2 [12:50:51]MH_I2C_Read... [12:50:51]Read from MH i2c: E2 0B 00 [12:50:51]MH_I2C_Read... [12:50:51]Read from MH i2c: E2 0B 00 8D 0D 00 B8 3A F0 AC 8C 3C 71 91 90 00 6E [12:50:51]RAPDU: B8 3A F0 AC 8C 3C 71 91 90 00 [12:50:51]wFMCommunicate OK [12:50:51]SAM_PROTO_SignData done [12:50:51]FM_MakeSignedData done [12:50:51]CreateOFDProtocolMessage [12:50:51]wFMCommunicate request_size=4 [12:50:51]MH_SAM_APDU [12:50:51]CAPDU: 80 11 00 00 [12:50:51]Write to MH i2c: E2 08 00 8E 0D 80 11 00 00 00 00 00 00 15 [12:50:51]Write i2c OK [12:50:51]MH_I2C_Read... [12:50:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:51]Read from MH i2c: E2 [12:50:51]MH_I2C_Read... [12:50:51]Read from MH i2c: E2 17 00 [12:50:51]MH_I2C_Read... [12:50:51]Read from MH i2c: E2 17 00 8E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6A [12:50:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:50:51]wFMCommunicate OK [12:50:51]CreateOFDProtocolMessage done [12:50:51]OFDSenderStorePacket 201469 [12:50:51]StoreOFDPacket docnum=201469 [12:50:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 51 B6 04 01 5A 54 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 32 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 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 50 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 E7 00 00 00 F4 03 04 00 AA E5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FD 12 03 00 35 04 06 00 D3 0F 13 F2 37 99 B8 3A F0 AC 8C 3C 71 91 [12:50:51]CheckFolder [12:50:51]dirname=/storage/ofd_packets [12:50:51]CheckFolder done [12:50:51]ProducePacketName [12:50:51]name=ofd_packets/00201469 [12:50:51]NVStorageSaveData ofd_packets/00201469 [12:50:51]File name is /storage/ofd_packets/00201469 [12:50:51]Write 298 bytes [12:50:51]NVStorageSaveData done [12:50:51]OFDSenderStorePacket done [12:50:51]KKMCreateOFDPacket done [12:50:51]NVStorageSaveData kkm_last_timestamp [12:50:51]File name is /storage/kkm_last_timestamp [12:50:51]Write 4 bytes [12:50:51]NVStorageSaveData done [12:50:51]ExternCall_PrintAddStr [12:50:51]wPrintStart [12:50:51]Write to MH i2c: 01 00 00 8F 0D 9C [12:50:51]OFD Sender: Processing packet 201469 [packets to send 112, broken 111] [12:50:51]ProducePacketName [12:50:51]name=ofd_packets/00201469 [12:50:51]Write i2c OK [12:50:51]MH_I2C_Read... [12:50:51]Read from MH i2c: 01 [12:50:51]MH_I2C_Read... [12:50:51]Read from MH i2c: 01 07 00 [12:50:51]MH_I2C_Read... [12:50:51]OFD Sender: To server: pG, [12:50:51]CommunicateWithHost lk.salyk.kg:30040 [12:50:51]ConnectInit lk.salyk.kg [12:50:51]Read from MH i2c: 01 07 00 8F 0D 00 00 00 00 00 FF 0F B1 [12:50:51]RasterBufferAndPrint [12:50:51]line Счет N : (1)449219 [12:50:51]line ИНН: 02508201610067 [12:50:51]line Контрольно-Кассовый Чек [12:50:51]line ПРОДАЖА [12:50:51]line ТРК (МРК, ГНК) : 43 [12:50:51]line Товар: 2710194210 [12:50:51]line ДТ-К-2 [12:50:51]line 2.630 * 76.20 [12:50:51]line = 200.41 [12:50:51]line НДС 12% НСП 1% [12:50:51]line > о реализуемом товаре [12:50:51]line ОКРУГЛЕНИЕ: -0.41 [12:50:51]line ИТОГО: 200.00 [12:50:51]line Внесено: 200.00 [12:50:51]line СДАЧА: 0.00 [12:50:51]line НСП 1% : 1.77 [12:50:51]line НДС 12% : 21.28 [12:50:51]line Наличными: 200.00 [12:50:51]line Безнал.: 0.00 [12:50:51]line Место: АЗС № 171 "Партнер Нефть" [12:50:51]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:50:51]line СНО: Общий режим [12:50:51]line Чек 231 26.10.2024 12:50 [12:50:51]line Смена: 543 ФФД: 1.0 [12:50:51]line ЗНМ: 0300000109 [12:50:51]line РНМ: 0000000000091777 [12:50:51]line Версия ККМ: 001 [12:50:51]line ФМ: 0000000000871756 [12:50:51]line ФД: 201469 [12:50:51]line ФПД: 232061712611225 [12:50:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125050&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201469&fm=232061712611225&tin=02508201610067®Number=0000000000091777&sum=20000 [12:50:51]written 0, free lines is 4095 [12:50:51]Connected sock=10 [12:50:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 51 B6 04 01 5A 54 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 32 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 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 50 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 E7 00 00 00 F4 03 04 00 AA E5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FD 12 03 00 35 04 06 00 D3 0F 13 F2 37 99 B8 3A F0 AC 8C 3C 71 91 [12:50:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 3C BD 47 00 19 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FD 12 03 00 F4 03 04 00 53 91 1C 67 B6 04 01 00 00 07 30 8B CD 4A 16 EE CE [12:50:51]CommunicateWithHost err = 0 [12:50:51]CheckOFDResponse [12:50:51]1017 (14) - 77093643461234 [12:50:51]1041 (16) - 0000000000871756 [12:50:51]1040 (4) - 201469 [12:50:51]1012 (4) - 26.10.2024 06:50 [12:50:51]1206 (1) - 0 [12:50:51]OFD Sender: Remove packet 201469 [12:50:51]ProducePacketName [12:50:51]name=ofd_packets/00201469 [12:50:51]NVStorageDeleteData [12:50:52]Write to MH i2c: 01 00 00 BA 0D C7 [12:50:52]Write i2c OK [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: 01 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: 01 07 00 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: 01 07 00 BA 0D 00 00 00 00 00 AA 0C 84 [12:50:52]RasterBufferAndPrint [12:50:52]line [12:50:52]line [12:50:52]line [12:50:52]line [12:50:52]line [12:50:52]written 0, free lines is 3249 [12:50:52]MH_Cut [12:50:52]Write to MH i2c: D1 01 00 C1 0D 01 A0 [12:50:52]Write i2c OK [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: D1 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: D1 01 00 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: D1 01 00 C1 0D 00 9F [12:50:52]Write to MH i2c: 01 00 00 C2 0D CF [12:50:52]Write i2c OK [12:50:52]MH_I2C_Read... [12:50:52]OFD Sender: No OFD packet to send [12:50:53]*** Cut start [12:50:53]*** Purtial cut [12:50:53]*** Stage 1: CUTSNS_PIN = 1 [12:50:53]Read from MH i2c: 01 [12:50:53]MH_I2C_Read... [12:50:53]*** Stop cut motor [12:50:53]*** Cut end [12:50:53]Read from MH i2c: 01 07 00 [12:50:53]MH_I2C_Read... [12:50:53]Read from MH i2c: 01 07 00 C2 0D 00 00 00 00 00 FF 0F E4 [12:50:53]process_action close_receipt done [12:50:53]requested_data is exist [12:50:53]produce_requested_data [12:50:53]requested_item fm.sn is exist - process it [12:50:53]wFMCommunicate request_size=4 [12:50:53]MH_SAM_APDU [12:50:53]CAPDU: 80 11 00 00 [12:50:53]Write to MH i2c: E2 08 00 C3 0D 80 11 00 00 00 00 00 00 4A [12:50:53]Write i2c OK [12:50:53]MH_I2C_Read... [12:50:53]Read from MH i2c: E2 [12:50:53]MH_I2C_Read... [12:50:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:53]Read from MH i2c: E2 17 00 [12:50:53]MH_I2C_Read... [12:50:53]Read from MH i2c: E2 17 00 C3 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9F [12:50:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:50:53]wFMCommunicate OK [12:50:53]requested_item fd.num is exist - process it [12:50:53]SAM_PROTO_GetFieldsCounters [12:50:53]wFMCommunicate request_size=4 [12:50:53]MH_SAM_APDU [12:50:53]CAPDU: 80 13 00 00 [12:50:53]Write to MH i2c: E2 08 00 C4 0D 80 13 00 00 00 00 00 00 4D [12:50:53]Write i2c OK [12:50:53]MH_I2C_Read... [12:50:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:53]Read from MH i2c: E2 [12:50:53]MH_I2C_Read... [12:50:53]Read from MH i2c: E2 62 00 [12:50:53]MH_I2C_Read... [12:50:53]Read from MH i2c: E2 62 00 C4 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FD 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [12:50:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FD 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:50:53]wFMCommunicate OK [12:50:53]SAM_PROTO_GetFieldsCounters done [12:50:53]requested_item shift.num is exist - process it [12:50:53]requested_item shift.opened is exist - process it [12:50:53]req_shift_opened [12:50:53]FM_GetShiftState [12:50:53]SAM_PROTO_GetShiftState [12:50:53]wFMCommunicate request_size=4 [12:50:53]MH_SAM_APDU [12:50:53]CAPDU: 80 13 01 00 [12:50:53]Write to MH i2c: E2 08 00 C5 0D 80 13 01 00 00 00 00 00 4F [12:50:53]Write i2c OK [12:50:53]MH_I2C_Read... [12:50:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:53]Read from MH i2c: E2 [12:50:53]MH_I2C_Read... [12:50:53]Read from MH i2c: E2 0E 00 [12:50:53]MH_I2C_Read... [12:50:53]Read from MH i2c: E2 0E 00 C5 0D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 5E [12:50:53]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:50:53]wFMCommunicate OK [12:50:53]SAM_PROTO_GetShiftState done [12:50:53]FM_GetShiftState done [12:50:53]req_shift_opened done [12:50:53]requested_item shift.open_date is exist - process it [12:50:53]req_shift_open_date [12:50:53]req_shift_open_date done [12:50:53]produce_requested_data done [12:50:53]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201469,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:50:53]process_action_free close_receipt [12:50:53]json_value_free [12:50:53]json_value_free done [12:50:53]process_json_proto returns [12:50:53]Send response to host [12:50:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201469,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:50:53]free response buf [12:50:53]execute_script done [12:50:53]execute_script returns [12:50:53]free content buf [12:50:53]Sock 8.Close socket [12:50:53]Sock 8.Thread stoped [12:50:57]OFD Sender: No OFD packet to send [12:51:02]OFD Sender: No OFD packet to send [12:51:07]OFD Sender: No OFD packet to send [12:51:12]OFD Sender: No OFD packet to send [12:51:17]OFD Sender: No OFD packet to send [12:51:22]OFD Sender: No OFD packet to send [12:51:27]OFD Sender: No OFD packet to send [12:51:32]OFD Sender: No OFD packet to send [12:51:37]OFD Sender: No OFD packet to send [12:51:42]OFD Sender: No OFD packet to send [12:51:47]OFD Sender: No OFD packet to send [12:51:52]OFD Sender: No OFD packet to send [12:51:57]OFD Sender: No OFD packet to send [12:52:02]OFD Sender: No OFD packet to send [12:52:07]OFD Sender: No OFD packet to send [12:52:12]OFD Sender: No OFD packet to send [12:52:17]OFD Sender: No OFD packet to send [12:52:22]OFD Sender: No OFD packet to send [12:52:27]OFD Sender: No OFD packet to send [12:52:32]OFD Sender: No OFD packet to send [12:52:37]OFD Sender: No OFD packet to send [12:52:42]OFD Sender: No OFD packet to send [12:52:47]OFD Sender: No OFD packet to send [12:52:52]OFD Sender: No OFD packet to send [12:52:57]OFD Sender: No OFD packet to send [12:53:02]OFD Sender: No OFD packet to send [12:53:03]accept exits with 9 [12:53:03]New connection [12:53:03]New thread 3066690916 created [12:53:03]Thread 3066834276 joined [12:53:03]Waiting for new connection... [12:53:03] Sock 9.Parse request [12:53:03]Sock 9.Check first char [12:53:03]Sock 9.First char is OK [12:53:03]request: POST /json_proto HTTP/1.0 [12:53:03]Method: POST [12:53:03]URL: /json_proto [12:53:03]Method is POST - this is cgi request [12:53:03]url: /json_proto [12:53:03]query_string will be loaded in cgi processing [12:53:03]execute_cgi json_proto POST (null) [12:53:03]execute_cgi path=json_proto method=POST [12:53:03]POST find Content-Length [12:53:03]Host: 172.17.63.195:8080 [12:53:03]Content-Length: 677 [12:53:03]Content-Type: application/json [12:53:03] [12:53:03]POST finish read [12:53:03]Found Content-Length = 677 [12:53:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:53:03]execute_script... [12:53: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)449220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:53:03]POST & json_proto [12:53:03]process_json_proto [12:53:03]json parsed OK: [12:53:03]protocol is kg_v1.0 [12:53:03]action value=close_receipt [12:53:03]process_action close_receipt [12:53:03]cmd_close_receipt [12:53:03]MH_GetDate [12:53:03]Write to MH i2c: F0 00 00 C6 0D C2 [12:53:03]Write i2c OK [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: F0 [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: F0 09 00 [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: F0 09 00 C6 0D 00 2F E6 1C 67 68 46 19 67 91 [12:53:03]GetLastDocTimeStamp 1729947050 [12:53:03]current date 1729947183 [12:53:03]FM_GetShiftState [12:53:03]SAM_PROTO_GetShiftState [12:53:03]wFMCommunicate request_size=4 [12:53:03]MH_SAM_APDU [12:53:03]CAPDU: 80 13 01 00 [12:53:03]Write to MH i2c: E2 08 00 C7 0D 80 13 01 00 00 00 00 00 51 [12:53:03]Write i2c OK [12:53:03]MH_I2C_Read... [12:53:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:03]Read from MH i2c: E2 [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: E2 0E 00 [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: E2 0E 00 C7 0D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 60 [12:53:03]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:53:03]wFMCommunicate OK [12:53:03]SAM_PROTO_GetShiftState done [12:53:03]FM_GetShiftState done [12:53:03]opened in 1729900879 [12:53:03]opened+sec_in_day 1729987279 [12:53:03]quantity*price = 50041 [12:53:03]sum+1 = 50042 [12:53:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 232 26.10.2024 12:53 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201470 ФПД: 108256569519598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125303&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201470&fm=108256569519598&tin=02508201610067®Number=0000000000091777&sum=50000 [12:53:04]StoreToDocumentArchive [12:53:04]shift 543 fd 201470 [12:53:04]save to /storage/0543/doc_00201470 [12:53:04]save last doc name /storage/0543/doc_00201470 to /storage/kkm_last_doc_name [12:53:04]save OK [12:53:04]Clear old archive folders... [12:53:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:53:04]tlvbuf is 01F5BB60 [12:53:04]SAM_PROTO_ClearQueue [12:53:04]wFMCommunicate request_size=4 [12:53:04]MH_SAM_APDU [12:53:04]CAPDU: 80 09 00 00 [12:53:04]Write to MH i2c: E2 08 00 D4 0D 80 09 00 00 00 00 00 00 53 [12:53:04]Write i2c OK [12:53:04]MH_I2C_Read... [12:53:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:04]Read from MH i2c: E2 [12:53:04]MH_I2C_Read... [12:53:04]Read from MH i2c: E2 03 00 [12:53:04]MH_I2C_Read... [12:53:04]Read from MH i2c: E2 03 00 D4 0D 00 90 00 55 [12:53:04]RAPDU: 90 00 [12:53:04]wFMCommunicate OK [12:53:04]SAM_PROTO_ClearQueue done [12:53:04]KKMCreateOFDPacket [12:53:04]OFDProtocolAddRootSTLVToBuf [12:53:04]FM_MakeSignedData [12:53:04]FM_MakeSignedData [12:53:04]SAM_PROTO_SignData [12:53:04]wFMCommunicate request_size=4 [12:53:04]MH_SAM_APDU [12:53:04]CAPDU: 80 0D 01 02 [12:53:04]Write to MH i2c: E2 08 00 D5 0D 80 0D 01 02 00 00 00 00 5B [12:53:04]Write i2c OK [12:53:04]MH_I2C_Read... [12:53:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:04]Read from MH i2c: E2 [12:53:04]MH_I2C_Read... [12:53:04]Read from MH i2c: E2 03 00 [12:53:04]MH_I2C_Read... [12:53:04]Read from MH i2c: E2 03 00 D5 0D 00 90 00 56 [12:53:04]RAPDU: 90 00 [12:53:04]wFMCommunicate OK [12:53:04]wFMCommunicate request_size=255 [12:53:04]MH_SAM_APDU [12:53: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 32 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 E8 00 00 00 F4 03 04 00 2F E6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FE 12 03 00 35 04 06 00 62 [12:53:04]Write to MH i2c: E2 02 01 D6 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 32 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 E8 00 00 00 F4 03 04 00 2F E6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FE 12 03 00 35 04 06 00 62 00 00 05 [12:53:04]Write i2c OK [12:53:04]MH_I2C_Read... [12:53:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:04]Read from MH i2c: E2 [12:53:04]MH_I2C_Read... [12:53:04]Read from MH i2c: E2 03 00 [12:53:04]MH_I2C_Read... [12:53:04]Read from MH i2c: E2 03 00 D6 0D 00 90 00 57 [12:53:04]RAPDU: 90 00 [12:53:04]wFMCommunicate OK [12:53:04]wFMCommunicate request_size=10 [12:53:04]MH_SAM_APDU [12:53:04]CAPDU: 80 0D 02 02 05 75 72 5E ED EE [12:53:04]Write to MH i2c: E2 0D 00 D7 0D 80 0D 02 02 05 00 75 72 5E ED EE 00 00 88 [12:53:04]Write i2c OK [12:53:04]MH_I2C_Read... [12:53:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:04]Read from MH i2c: E2 [12:53:04]MH_I2C_Read... [12:53:04]Read from MH i2c: E2 03 00 [12:53:04]MH_I2C_Read... [12:53:04]Read from MH i2c: E2 03 00 D7 0D 00 90 00 58 [12:53:04]RAPDU: 90 00 [12:53:04]wFMCommunicate OK [12:53:04]wFMCommunicate request_size=4 [12:53:04]MH_SAM_APDU [12:53:04]CAPDU: 80 0D 03 02 [12:53:04]Write to MH i2c: E2 08 00 D8 0D 80 0D 03 02 00 00 00 00 60 [12:53:04]Write i2c OK [12:53:04]MH_I2C_Read... [12:53:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:04]Read from MH i2c: E2 [12:53:04]MH_I2C_Read... [12:53:04]Read from MH i2c: E2 0B 00 [12:53:04]MH_I2C_Read... [12:53:04]Read from MH i2c: E2 0B 00 D8 0D 00 7E 5E 2A 5A 6B 7C 00 88 90 00 30 [12:53:04]RAPDU: 7E 5E 2A 5A 6B 7C 00 88 90 00 [12:53:04]wFMCommunicate OK [12:53:04]SAM_PROTO_SignData done [12:53:04]FM_MakeSignedData done [12:53:04]CreateOFDProtocolMessage [12:53:04]wFMCommunicate request_size=4 [12:53:04]MH_SAM_APDU [12:53:04]CAPDU: 80 11 00 00 [12:53:04]Write to MH i2c: E2 08 00 D9 0D 80 11 00 00 00 00 00 00 60 [12:53:04]Write i2c OK [12:53:04]MH_I2C_Read... [12:53:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:04]Read from MH i2c: E2 [12:53:04]MH_I2C_Read... [12:53:04]Read from MH i2c: E2 17 00 [12:53:04]MH_I2C_Read... [12:53:04]Read from MH i2c: E2 17 00 D9 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B5 [12:53:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:53:04]wFMCommunicate OK [12:53:04]CreateOFDProtocolMessage done [12:53:04]OFDSenderStorePacket 201470 [12:53:04]StoreOFDPacket docnum=201470 [12:53:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 94 DC 07 01 48 55 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 32 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 E8 00 00 00 F4 03 04 00 2F E6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FE 12 03 00 35 04 06 00 62 75 72 5E ED EE 7E 5E 2A 5A 6B 7C 00 88 [12:53:04]CheckFolder [12:53:04]dirname=/storage/ofd_packets [12:53:04]CheckFolder done [12:53:04]ProducePacketName [12:53:04]name=ofd_packets/00201470 [12:53:04]NVStorageSaveData ofd_packets/00201470 [12:53:04]File name is /storage/ofd_packets/00201470 [12:53:04]Write 301 bytes [12:53:04]NVStorageSaveData done [12:53:04]OFDSenderStorePacket done [12:53:04]KKMCreateOFDPacket done [12:53:04]NVStorageSaveData kkm_last_timestamp [12:53:04]File name is /storage/kkm_last_timestamp [12:53:04]Write 4 bytes [12:53:04]NVStorageSaveData done [12:53:04]ExternCall_PrintAddStr [12:53:04]wPrintStart [12:53:04]Write to MH i2c: 01 00 00 DA 0D E7 [12:53:04]Write i2c OK [12:53:04]MH_I2C_Read... [12:53:04]Read from MH i2c: 01 [12:53:04]MH_I2C_Read... [12:53:04]Read from MH i2c: 01 07 00 [12:53:04]MH_I2C_Read... [12:53:04]Read from MH i2c: 01 07 00 DA 0D 00 00 00 00 00 FF 0F FC [12:53:04]RasterBufferAndPrint [12:53:04]line Счет N : (1)449220 [12:53:04]line ИНН: 02508201610067 [12:53:04]line Контрольно-Кассовый Чек [12:53:04]line ПРОДАЖА [12:53:04]line ТРК (МРК, ГНК) : 41 [12:53:04]line Товар: 2710124130 [12:53:04]line Аи-92-К-2 [12:53:04]line 7.480 * 66.90 [12:53:04]line = 500.41 [12:53:04]line НДС 12% НСП 1% [12:53:04]line > о реализуемом товаре [12:53:04]line ОКРУГЛЕНИЕ: -0.41 [12:53:04]line ИТОГО: 500.00 [12:53:04]line Внесено: 500.00 [12:53:04]line СДАЧА: 0.00 [12:53:04]line НСП 1% : 4.43 [12:53:04]line НДС 12% : 53.14 [12:53:04]line Наличными: 500.00 [12:53:04]line Безнал.: 0.00 [12:53:04]line Место: АЗС № 171 "Партнер Нефть" [12:53:04]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:53:04]line СНО: Общий режим [12:53:04]line Чек 232 26.10.2024 12:53 [12:53:04]line Смена: 543 ФФД: 1.0 [12:53:04]line ЗНМ: 0300000109 [12:53:04]line РНМ: 0000000000091777 [12:53:04]line Версия ККМ: 001 [12:53:04]line ФМ: 0000000000871756 [12:53:04]line ФД: 201470 [12:53:04]line ФПД: 108256569519598 [12:53:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125303&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201470&fm=108256569519598&tin=02508201610067®Number=0000000000091777&sum=50000 [12:53:05]OFD Sender: Processing packet 201470 [packets to send 112, broken 111] [12:53:05]ProducePacketName [12:53:05]name=ofd_packets/00201470 [12:53:05]OFD Sender: To server: pG, [12:53:05]CommunicateWithHost lk.salyk.kg:30040 [12:53:05]ConnectInit lk.salyk.kg [12:53:05]written 0, free lines is 4095 [12:53:05]Connected sock=10 [12:53:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 94 DC 07 01 48 55 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 32 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 E8 00 00 00 F4 03 04 00 2F E6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FE 12 03 00 35 04 06 00 62 75 72 5E ED EE 7E 5E 2A 5A 6B 7C 00 88 [12:53:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 91 75 47 00 EA 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FE 12 03 00 F4 03 04 00 D8 91 1C 67 B6 04 01 00 00 85 25 EB 13 4C 8C AC 50 [12:53:05]CommunicateWithHost err = 0 [12:53:05]CheckOFDResponse [12:53:05]1017 (14) - 77093643461234 [12:53:05]1041 (16) - 0000000000871756 [12:53:05]1040 (4) - 201470 [12:53:05]1012 (4) - 26.10.2024 06:53 [12:53:05]1206 (1) - 0 [12:53:05]OFD Sender: Remove packet 201470 [12:53:05]ProducePacketName [12:53:05]name=ofd_packets/00201470 [12:53:05]NVStorageDeleteData [12:53:05]Write to MH i2c: 01 00 00 05 0E 13 [12:53:05]Write i2c OK [12:53:05]MH_I2C_Read... [12:53:05]Read from MH i2c: 01 [12:53:05]MH_I2C_Read... [12:53:05]Read from MH i2c: 01 07 00 [12:53:05]MH_I2C_Read... [12:53:05]Read from MH i2c: 01 07 00 05 0E 00 00 00 00 00 AA 0C D0 [12:53:05]RasterBufferAndPrint [12:53:05]line [12:53:05]line [12:53:05]line [12:53:05]line [12:53:05]line [12:53:05]written 0, free lines is 3247 [12:53:05]MH_Cut [12:53:05]Write to MH i2c: D1 01 00 0C 0E 01 EC [12:53:05]Write i2c OK [12:53:05]MH_I2C_Read... [12:53:05]Read from MH i2c: D1 [12:53:05]MH_I2C_Read... [12:53:05]Read from MH i2c: D1 01 00 [12:53:05]MH_I2C_Read... [12:53:05]Read from MH i2c: D1 01 00 0C 0E 00 EB [12:53:05]Write to MH i2c: 01 00 00 0D 0E 1B [12:53:05]Write i2c OK [12:53:05]MH_I2C_Read... [12:53:05]OFD Sender: No OFD packet to send [12:53:06]*** Cut start [12:53:06]*** Purtial cut [12:53:06]*** CUTSNS_PIN = 0 [12:53:06]*** Stage 1: CUTSNS_PIN = 1 [12:53:08]Read from MH i2c: 01 [12:53:08]MH_I2C_Read... [12:53:08]*** Stop cut motor [12:53:08]*** Cut end [12:53:08]Read from MH i2c: 01 07 00 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: 01 07 00 0D 0E 00 00 00 00 00 FF 0F 30 [12:53:08]process_action close_receipt done [12:53:08]requested_data is exist [12:53:08]produce_requested_data [12:53:08]requested_item fm.sn is exist - process it [12:53:08]wFMCommunicate request_size=4 [12:53:08]MH_SAM_APDU [12:53:08]CAPDU: 80 11 00 00 [12:53:08]Write to MH i2c: E2 08 00 0E 0E 80 11 00 00 00 00 00 00 96 [12:53:08]Write i2c OK [12:53:08]MH_I2C_Read... [12:53:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:08]Read from MH i2c: E2 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 17 00 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 17 00 0E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EB [12:53:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:53:08]wFMCommunicate OK [12:53:08]requested_item fd.num is exist - process it [12:53:08]SAM_PROTO_GetFieldsCounters [12:53:08]wFMCommunicate request_size=4 [12:53:08]MH_SAM_APDU [12:53:08]CAPDU: 80 13 00 00 [12:53:08]Write to MH i2c: E2 08 00 0F 0E 80 13 00 00 00 00 00 00 99 [12:53:08]Write i2c OK [12:53:08]MH_I2C_Read... [12:53:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:08]Read from MH i2c: E2 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 62 00 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 62 00 0F 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FE 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [12:53:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FE 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:08]wFMCommunicate OK [12:53:08]SAM_PROTO_GetFieldsCounters done [12:53:08]requested_item shift.num is exist - process it [12:53:08]requested_item shift.opened is exist - process it [12:53:08]req_shift_opened [12:53:08]FM_GetShiftState [12:53:08]SAM_PROTO_GetShiftState [12:53:08]wFMCommunicate request_size=4 [12:53:08]MH_SAM_APDU [12:53:08]CAPDU: 80 13 01 00 [12:53:08]Write to MH i2c: E2 08 00 10 0E 80 13 01 00 00 00 00 00 9B [12:53:08]Write i2c OK [12:53:08]MH_I2C_Read... [12:53:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:08]Read from MH i2c: E2 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 0E 00 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 0E 00 10 0E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 AA [12:53:08]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:53:08]wFMCommunicate OK [12:53:08]SAM_PROTO_GetShiftState done [12:53:08]FM_GetShiftState done [12:53:08]req_shift_opened done [12:53:08]requested_item shift.open_date is exist - process it [12:53:08]req_shift_open_date [12:53:08]req_shift_open_date done [12:53:08]produce_requested_data done [12:53:08]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201470,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:53:08]process_action_free close_receipt [12:53:08]json_value_free [12:53:08]json_value_free done [12:53:08]process_json_proto returns [12:53:08]Send response to host [12:53:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201470,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:53:08]free response buf [12:53:08]execute_script done [12:53:08]execute_script returns [12:53:08]free content buf [12:53:08]Sock 9.Close socket [12:53:08]Sock 9.Thread stoped [12:53:10]OFD Sender: No OFD packet to send [12:53:11]accept exits with 8 [12:53:11]New connection [12:53:11]New thread 3066834276 created [12:53:11]Thread 3066690916 joined [12:53:11]Waiting for new connection... [12:53:11] Sock 8.Parse request [12:53:11]Sock 8.Check first char [12:53:11]Sock 8.First char is OK [12:53:11]request: POST /json_proto HTTP/1.0 [12:53:11]Method: POST [12:53:11]URL: /json_proto [12:53:11]Method is POST - this is cgi request [12:53:11]url: /json_proto [12:53:11]query_string will be loaded in cgi processing [12:53:11]execute_cgi json_proto POST (null) [12:53:11]execute_cgi path=json_proto method=POST [12:53:11]POST find Content-Length [12:53:11]Host: 172.17.63.195:8080 [12:53:11]Content-Length: 677 [12:53:11]Content-Type: application/json [12:53:11] [12:53:11]POST finish read [12:53:11]Found Content-Length = 677 [12:53:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [12:53:11]execute_script... [12:53: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)449221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [12:53:11]POST & json_proto [12:53:11]process_json_proto [12:53:11]json parsed OK: [12:53:11]protocol is kg_v1.0 [12:53:11]action value=close_receipt [12:53:11]process_action close_receipt [12:53:11]cmd_close_receipt [12:53:11]MH_GetDate [12:53:11]Write to MH i2c: F0 00 00 11 0E 0E [12:53:11]Write i2c OK [12:53:11]MH_I2C_Read... [12:53:11]Read from MH i2c: F0 [12:53:11]MH_I2C_Read... [12:53:11]Read from MH i2c: F0 09 00 [12:53:11]MH_I2C_Read... [12:53:11]Read from MH i2c: F0 09 00 11 0E 00 38 E6 1C 67 68 46 19 67 E6 [12:53:11]GetLastDocTimeStamp 1729947183 [12:53:11]current date 1729947192 [12:53:11]FM_GetShiftState [12:53:11]SAM_PROTO_GetShiftState [12:53:11]wFMCommunicate request_size=4 [12:53:11]MH_SAM_APDU [12:53:11]CAPDU: 80 13 01 00 [12:53:11]Write to MH i2c: E2 08 00 12 0E 80 13 01 00 00 00 00 00 9D [12:53:11]Write i2c OK [12:53:11]MH_I2C_Read... [12:53:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:11]Read from MH i2c: E2 [12:53:11]MH_I2C_Read... [12:53:11]Read from MH i2c: E2 0E 00 [12:53:11]MH_I2C_Read... [12:53:11]Read from MH i2c: E2 0E 00 12 0E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 AC [12:53:11]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:53:11]wFMCommunicate OK [12:53:11]SAM_PROTO_GetShiftState done [12:53:11]FM_GetShiftState done [12:53:11]opened in 1729900879 [12:53:11]opened+sec_in_day 1729987279 [12:53:11]quantity*price = 35055 [12:53:11]sum+1 = 35057 [12:53:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 233 26.10.2024 12:53 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201471 ФПД: 73922930972849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125312&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201471&fm=73922930972849&tin=02508201610067®Number=0000000000091777&sum=35000 [12:53:12]StoreToDocumentArchive [12:53:12]shift 543 fd 201471 [12:53:12]save to /storage/0543/doc_00201471 [12:53:12]save last doc name /storage/0543/doc_00201471 to /storage/kkm_last_doc_name [12:53:12]save OK [12:53:12]Clear old archive folders... [12:53:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:53:12]tlvbuf is 01EE6AD0 [12:53:12]SAM_PROTO_ClearQueue [12:53:12]wFMCommunicate request_size=4 [12:53:12]MH_SAM_APDU [12:53:12]CAPDU: 80 09 00 00 [12:53:12]Write to MH i2c: E2 08 00 1F 0E 80 09 00 00 00 00 00 00 9F [12:53:12]Write i2c OK [12:53:12]MH_I2C_Read... [12:53:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:12]Read from MH i2c: E2 [12:53:12]MH_I2C_Read... [12:53:12]Read from MH i2c: E2 03 00 [12:53:12]MH_I2C_Read... [12:53:12]Read from MH i2c: E2 03 00 1F 0E 00 90 00 A1 [12:53:12]RAPDU: 90 00 [12:53:12]wFMCommunicate OK [12:53:12]SAM_PROTO_ClearQueue done [12:53:12]KKMCreateOFDPacket [12:53:12]OFDProtocolAddRootSTLVToBuf [12:53:12]FM_MakeSignedData [12:53:12]FM_MakeSignedData [12:53:12]SAM_PROTO_SignData [12:53:12]wFMCommunicate request_size=4 [12:53:12]MH_SAM_APDU [12:53:12]CAPDU: 80 0D 01 02 [12:53:12]Write to MH i2c: E2 08 00 20 0E 80 0D 01 02 00 00 00 00 A7 [12:53:12]Write i2c OK [12:53:12]MH_I2C_Read... [12:53:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:12]Read from MH i2c: E2 [12:53:12]MH_I2C_Read... [12:53:12]Read from MH i2c: E2 03 00 [12:53:12]MH_I2C_Read... [12:53:12]Read from MH i2c: E2 03 00 20 0E 00 90 00 A2 [12:53:12]RAPDU: 90 00 [12:53:12]wFMCommunicate OK [12:53:12]wFMCommunicate request_size=255 [12:53:12]MH_SAM_APDU [12:53:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 E9 00 00 00 F4 03 04 00 38 E6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FF 12 03 00 35 04 06 00 43 [12:53:12]Write to MH i2c: E2 02 01 21 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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 E9 00 00 00 F4 03 04 00 38 E6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FF 12 03 00 35 04 06 00 43 00 00 48 [12:53:12]Write i2c OK [12:53:12]MH_I2C_Read... [12:53:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:13]Read from MH i2c: E2 [12:53:13]MH_I2C_Read... [12:53:13]Read from MH i2c: E2 03 00 [12:53:13]MH_I2C_Read... [12:53:13]Read from MH i2c: E2 03 00 21 0E 00 90 00 A3 [12:53:13]RAPDU: 90 00 [12:53:13]wFMCommunicate OK [12:53:13]wFMCommunicate request_size=10 [12:53:13]MH_SAM_APDU [12:53:13]CAPDU: 80 0D 02 02 05 3B 86 0A 98 B1 [12:53:13]Write to MH i2c: E2 0D 00 22 0E 80 0D 02 02 05 00 3B 86 0A 98 B1 00 00 C8 [12:53:13]Write i2c OK [12:53:13]MH_I2C_Read... [12:53:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:13]Read from MH i2c: E2 [12:53:13]MH_I2C_Read... [12:53:13]Read from MH i2c: E2 03 00 [12:53:13]MH_I2C_Read... [12:53:13]Read from MH i2c: E2 03 00 22 0E 00 90 00 A4 [12:53:13]RAPDU: 90 00 [12:53:13]wFMCommunicate OK [12:53:13]wFMCommunicate request_size=4 [12:53:13]MH_SAM_APDU [12:53:13]CAPDU: 80 0D 03 02 [12:53:13]Write to MH i2c: E2 08 00 23 0E 80 0D 03 02 00 00 00 00 AC [12:53:13]Write i2c OK [12:53:13]MH_I2C_Read... [12:53:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:13]Read from MH i2c: E2 [12:53:13]MH_I2C_Read... [12:53:13]Read from MH i2c: E2 0B 00 [12:53:13]MH_I2C_Read... [12:53:13]Read from MH i2c: E2 0B 00 23 0E 00 E8 B9 5F DB 95 5D F3 58 90 00 C5 [12:53:13]RAPDU: E8 B9 5F DB 95 5D F3 58 90 00 [12:53:13]wFMCommunicate OK [12:53:13]SAM_PROTO_SignData done [12:53:13]FM_MakeSignedData done [12:53:13]CreateOFDProtocolMessage [12:53:13]wFMCommunicate request_size=4 [12:53:13]MH_SAM_APDU [12:53:13]CAPDU: 80 11 00 00 [12:53:13]Write to MH i2c: E2 08 00 24 0E 80 11 00 00 00 00 00 00 AC [12:53:13]Write i2c OK [12:53:13]MH_I2C_Read... [12:53:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:13]Read from MH i2c: E2 [12:53:13]MH_I2C_Read... [12:53:13]Read from MH i2c: E2 17 00 [12:53:13]MH_I2C_Read... [12:53:13]Read from MH i2c: E2 17 00 24 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 01 [12:53:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:53:13]wFMCommunicate OK [12:53:13]CreateOFDProtocolMessage done [12:53:13]OFDSenderStorePacket 201471 [12:53:13]StoreOFDPacket docnum=201471 [12:53:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 48 DE 07 01 48 FC 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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 E9 00 00 00 F4 03 04 00 38 E6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FF 12 03 00 35 04 06 00 43 3B 86 0A 98 B1 E8 B9 5F DB 95 5D F3 58 [12:53:13]CheckFolder [12:53:13]dirname=/storage/ofd_packets [12:53:13]CheckFolder done [12:53:13]ProducePacketName [12:53:13]name=ofd_packets/00201471 [12:53:13]NVStorageSaveData ofd_packets/00201471 [12:53:13]File name is /storage/ofd_packets/00201471 [12:53:13]Write 301 bytes [12:53:13]NVStorageSaveData done [12:53:13]OFDSenderStorePacket done [12:53:13]KKMCreateOFDPacket done [12:53:13]NVStorageSaveData kkm_last_timestamp [12:53:13]File name is /storage/kkm_last_timestamp [12:53:13]Write 4 bytes [12:53:13]NVStorageSaveData done [12:53:13]ExternCall_PrintAddStr [12:53:13]wPrintStart [12:53:13]Write to MH i2c: 01 00 00 25 0E 33 [12:53:13]Write i2c OK [12:53:13]MH_I2C_Read... [12:53:13]Read from MH i2c: 01 [12:53:13]MH_I2C_Read... [12:53:13]Read from MH i2c: 01 07 00 [12:53:13]MH_I2C_Read... [12:53:13]Read from MH i2c: 01 07 00 25 0E 00 00 00 00 00 FF 0F 48 [12:53:13]RasterBufferAndPrint [12:53:13]line Счет N : (1)449221 [12:53:13]line ИНН: 02508201610067 [12:53:13]line Контрольно-Кассовый Чек [12:53:13]line ПРОДАЖА [12:53:13]line ТРК (МРК, ГНК) : 52 [12:53:13]line Товар: 2710124130 [12:53:13]line Аи-92-К-2 [12:53:13]line 5.240 * 66.90 [12:53:13]line = 350.56 [12:53:13]line НДС 12% НСП 1% [12:53:13]line > о реализуемом товаре [12:53:13]line ОКРУГЛЕНИЕ: -0.56 [12:53:13]line ИТОГО: 350.00 [12:53:13]line Внесено: 350.00 [12:53:13]line СДАЧА: 0.00 [12:53:13]line НСП 1% : 3.10 [12:53:13]line НДС 12% : 37.23 [12:53:13]line Наличными: 350.00 [12:53:13]line Безнал.: 0.00 [12:53:13]line Место: АЗС № 171 "Партнер Нефть" [12:53:13]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:53:13]line СНО: Общий режим [12:53:13]line Чек 233 26.10.2024 12:53 [12:53:13]line Смена: 543 ФФД: 1.0 [12:53:13]line ЗНМ: 0300000109 [12:53:13]line РНМ: 0000000000091777 [12:53:13]line Версия ККМ: 001 [12:53:13]line ФМ: 0000000000871756 [12:53:13]line ФД: 201471 [12:53:13]line ФПД: 73922930972849 [12:53:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125312&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201471&fm=73922930972849&tin=02508201610067®Number=0000000000091777&sum=35000 [12:53:13]written 0, free lines is 4095 [12:53:13]OFD Sender: Processing packet 201471 [packets to send 112, broken 111] [12:53:13]ProducePacketName [12:53:13]name=ofd_packets/00201471 [12:53:13]OFD Sender: To server: pG, [12:53:13]CommunicateWithHost lk.salyk.kg:30040 [12:53:13]ConnectInit lk.salyk.kg [12:53:13]Connected sock=10 [12:53:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 48 DE 07 01 48 FC 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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 E9 00 00 00 F4 03 04 00 38 E6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FF 12 03 00 35 04 06 00 43 3B 86 0A 98 B1 E8 B9 5F DB 95 5D F3 58 [12:53:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 CF 2D 47 00 9C 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 FF 12 03 00 F4 03 04 00 E1 91 1C 67 B6 04 01 00 00 A5 E5 4F B5 E9 F9 11 6F [12:53:13]CommunicateWithHost err = 0 [12:53:13]CheckOFDResponse [12:53:13]1017 (14) - 77093643461234 [12:53:13]1041 (16) - 0000000000871756 [12:53:13]1040 (4) - 201471 [12:53:13]1012 (4) - 26.10.2024 06:53 [12:53:13]1206 (1) - 0 [12:53:13]OFD Sender: Remove packet 201471 [12:53:13]ProducePacketName [12:53:13]name=ofd_packets/00201471 [12:53:13]NVStorageDeleteData [12:53:13]Write to MH i2c: 01 00 00 50 0E 5E [12:53:13]Write i2c OK [12:53:13]MH_I2C_Read... [12:53:13]Read from MH i2c: 01 [12:53:13]MH_I2C_Read... [12:53:13]Read from MH i2c: 01 07 00 [12:53:13]MH_I2C_Read... [12:53:13]Read from MH i2c: 01 07 00 50 0E 00 00 00 00 00 AB 0C 1C [12:53:13]RasterBufferAndPrint [12:53:13]line [12:53:13]line [12:53:13]line [12:53:13]line [12:53:13]line [12:53:13]written 0, free lines is 3250 [12:53:13]MH_Cut [12:53:13]Write to MH i2c: D1 01 00 57 0E 01 37 [12:53:13]Write i2c OK [12:53:13]MH_I2C_Read... [12:53:13]Read from MH i2c: D1 [12:53:13]MH_I2C_Read... [12:53:13]Read from MH i2c: D1 01 00 [12:53:13]MH_I2C_Read... [12:53:13]Read from MH i2c: D1 01 00 57 0E 00 36 [12:53:13]Write to MH i2c: 01 00 00 58 0E 66 [12:53:13]Write i2c OK [12:53:13]MH_I2C_Read... [12:53:14]OFD Sender: No OFD packet to send [12:53:14]*** Cut start [12:53:14]*** Purtial cut [12:53:14]*** Stage 1: CUTSNS_PIN = 1 [12:53:14]Read from MH i2c: 01 [12:53:14]MH_I2C_Read... [12:53:14]*** Stop cut motor [12:53:14]*** Cut end [12:53:14]Read from MH i2c: 01 07 00 [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: 01 07 00 58 0E 00 00 00 00 00 FF 0F 7B [12:53:14]process_action close_receipt done [12:53:14]requested_data is exist [12:53:14]produce_requested_data [12:53:14]requested_item fm.sn is exist - process it [12:53:14]wFMCommunicate request_size=4 [12:53:14]MH_SAM_APDU [12:53:14]CAPDU: 80 11 00 00 [12:53:14]Write to MH i2c: E2 08 00 59 0E 80 11 00 00 00 00 00 00 E1 [12:53:14]Write i2c OK [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: E2 [12:53:14]MH_I2C_Read... [12:53:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:14]Read from MH i2c: E2 17 00 [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: E2 17 00 59 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 36 [12:53:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:53:14]wFMCommunicate OK [12:53:14]requested_item fd.num is exist - process it [12:53:14]SAM_PROTO_GetFieldsCounters [12:53:14]wFMCommunicate request_size=4 [12:53:14]MH_SAM_APDU [12:53:14]CAPDU: 80 13 00 00 [12:53:14]Write to MH i2c: E2 08 00 5A 0E 80 13 00 00 00 00 00 00 E4 [12:53:14]Write i2c OK [12:53:14]MH_I2C_Read... [12:53:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:15]Read from MH i2c: E2 [12:53:15]MH_I2C_Read... [12:53:15]Read from MH i2c: E2 62 00 [12:53:15]MH_I2C_Read... [12:53:15]Read from MH i2c: E2 62 00 5A 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FF 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [12:53:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 FF 12 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:15]wFMCommunicate OK [12:53:15]SAM_PROTO_GetFieldsCounters done [12:53:15]requested_item shift.num is exist - process it [12:53:15]requested_item shift.opened is exist - process it [12:53:15]req_shift_opened [12:53:15]FM_GetShiftState [12:53:15]SAM_PROTO_GetShiftState [12:53:15]wFMCommunicate request_size=4 [12:53:15]MH_SAM_APDU [12:53:15]CAPDU: 80 13 01 00 [12:53:15]Write to MH i2c: E2 08 00 5B 0E 80 13 01 00 00 00 00 00 E6 [12:53:15]Write i2c OK [12:53:15]MH_I2C_Read... [12:53:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:15]Read from MH i2c: E2 [12:53:15]MH_I2C_Read... [12:53:15]Read from MH i2c: E2 0E 00 [12:53:15]MH_I2C_Read... [12:53:15]Read from MH i2c: E2 0E 00 5B 0E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F5 [12:53:15]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:53:15]wFMCommunicate OK [12:53:15]SAM_PROTO_GetShiftState done [12:53:15]FM_GetShiftState done [12:53:15]req_shift_opened done [12:53:15]requested_item shift.open_date is exist - process it [12:53:15]req_shift_open_date [12:53:15]req_shift_open_date done [12:53:15]produce_requested_data done [12:53:15]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201471,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:53:15]process_action_free close_receipt [12:53:15]json_value_free [12:53:15]json_value_free done [12:53:15]process_json_proto returns [12:53:15]Send response to host [12:53:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201471,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:53:15]free response buf [12:53:15]execute_script done [12:53:15]execute_script returns [12:53:15]free content buf [12:53:15]Sock 8.Close socket [12:53:15]Sock 8.Thread stoped [12:53:19]OFD Sender: No OFD packet to send [12:53:24]OFD Sender: No OFD packet to send [12:53:29]OFD Sender: No OFD packet to send [12:53:34]OFD Sender: No OFD packet to send [12:53:39]OFD Sender: No OFD packet to send [12:53:44]OFD Sender: No OFD packet to send [12:53:49]OFD Sender: No OFD packet to send [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:14]OFD Sender: No OFD packet to send [12:54:19]OFD Sender: No OFD packet to send [12:54:23]accept exits with 9 [12:54:23]New connection [12:54:23]New thread 3066690916 created [12:54:23]Thread 3066834276 joined [12:54:23]Waiting for new connection... [12:54:23] Sock 9.Parse request [12:54:23]Sock 9.Check first char [12:54:23]Sock 9.First char is OK [12:54:23]request: POST /json_proto HTTP/1.0 [12:54:23]Method: POST [12:54:23]URL: /json_proto [12:54:23]Method is POST - this is cgi request [12:54:23]url: /json_proto [12:54:23]query_string will be loaded in cgi processing [12:54:23]execute_cgi json_proto POST (null) [12:54:23]execute_cgi path=json_proto method=POST [12:54:23]POST find Content-Length [12:54:23]Host: 172.17.63.195:8080 [12:54:23]Content-Length: 682 [12:54:23]Content-Type: application/json [12:54:23] [12:54:23]POST finish read [12:54:23]Found Content-Length = 682 [12:54:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:54:23]execute_script... [12:54:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:54:23]POST & json_proto [12:54:23]process_json_proto [12:54:23]json parsed OK: [12:54:23]protocol is kg_v1.0 [12:54:23]action value=close_receipt [12:54:23]process_action close_receipt [12:54:23]cmd_close_receipt [12:54:23]MH_GetDate [12:54:23]Write to MH i2c: F0 00 00 5C 0E 59 [12:54:23]Write i2c OK [12:54:23]MH_I2C_Read... [12:54:23]Read from MH i2c: F0 [12:54:23]MH_I2C_Read... [12:54:23]Read from MH i2c: F0 09 00 [12:54:23]MH_I2C_Read... [12:54:23]Read from MH i2c: F0 09 00 5C 0E 00 7F E6 1C 67 68 46 19 67 78 [12:54:23]GetLastDocTimeStamp 1729947192 [12:54:23]current date 1729947263 [12:54:23]FM_GetShiftState [12:54:23]SAM_PROTO_GetShiftState [12:54:23]wFMCommunicate request_size=4 [12:54:23]MH_SAM_APDU [12:54:23]CAPDU: 80 13 01 00 [12:54:23]Write to MH i2c: E2 08 00 5D 0E 80 13 01 00 00 00 00 00 E8 [12:54:23]Write i2c OK [12:54:23]MH_I2C_Read... [12:54:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:23]Read from MH i2c: E2 [12:54:23]MH_I2C_Read... [12:54:23]Read from MH i2c: E2 0E 00 [12:54:23]MH_I2C_Read... [12:54:23]Read from MH i2c: E2 0E 00 5D 0E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F7 [12:54:23]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:54:23]wFMCommunicate OK [12:54:23]SAM_PROTO_GetShiftState done [12:54:23]FM_GetShiftState done [12:54:23]opened in 1729900879 [12:54:23]opened+sec_in_day 1729987279 [12:54:23]quantity*price = 100015 [12:54:23]sum+1 = 100017 [12:54:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 234 26.10.2024 12:54 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201472 ФПД: 150251877171927 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125423&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201472&fm=150251877171927&tin=02508201610067®Number=0000000000091777&sum=100000 [12:54:24]StoreToDocumentArchive [12:54:24]shift 543 fd 201472 [12:54:24]save to /storage/0543/doc_00201472 [12:54:24]save last doc name /storage/0543/doc_00201472 to /storage/kkm_last_doc_name [12:54:24]save OK [12:54:24]Clear old archive folders... [12:54:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:54:24]tlvbuf is 01EE5990 [12:54:24]SAM_PROTO_ClearQueue [12:54:24]wFMCommunicate request_size=4 [12:54:24]MH_SAM_APDU [12:54:24]CAPDU: 80 09 00 00 [12:54:24]Write to MH i2c: E2 08 00 6A 0E 80 09 00 00 00 00 00 00 EA [12:54:24]Write i2c OK [12:54:24]MH_I2C_Read... [12:54:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:24]OFD Sender: No OFD packet to send [12:54:24]Read from MH i2c: E2 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 03 00 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 03 00 6A 0E 00 90 00 EC [12:54:24]RAPDU: 90 00 [12:54:24]wFMCommunicate OK [12:54:24]SAM_PROTO_ClearQueue done [12:54:24]KKMCreateOFDPacket [12:54:24]OFDProtocolAddRootSTLVToBuf [12:54:24]FM_MakeSignedData [12:54:24]FM_MakeSignedData [12:54:24]SAM_PROTO_SignData [12:54:24]wFMCommunicate request_size=4 [12:54:24]MH_SAM_APDU [12:54:24]CAPDU: 80 0D 01 02 [12:54:24]Write to MH i2c: E2 08 00 6B 0E 80 0D 01 02 00 00 00 00 F2 [12:54:24]Write i2c OK [12:54:24]MH_I2C_Read... [12:54:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:24]Read from MH i2c: E2 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 03 00 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 03 00 6B 0E 00 90 00 ED [12:54:24]RAPDU: 90 00 [12:54:24]wFMCommunicate OK [12:54:24]wFMCommunicate request_size=255 [12:54:24]MH_SAM_APDU [12:54:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 EA 00 00 00 F4 03 04 00 7F E6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 00 13 03 00 35 04 06 00 88 [12:54:24]Write to MH i2c: E2 02 01 6C 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 32 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 EA 00 00 00 F4 03 04 00 7F E6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 00 13 03 00 35 04 06 00 88 00 00 11 [12:54:24]Write i2c OK [12:54:24]MH_I2C_Read... [12:54:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:24]Read from MH i2c: E2 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 03 00 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 03 00 6C 0E 00 90 00 EE [12:54:24]RAPDU: 90 00 [12:54:24]wFMCommunicate OK [12:54:24]wFMCommunicate request_size=10 [12:54:24]MH_SAM_APDU [12:54:24]CAPDU: 80 0D 02 02 05 A7 3D C4 02 D7 [12:54:24]Write to MH i2c: E2 0D 00 6D 0E 80 0D 02 02 05 00 A7 3D C4 02 D7 00 00 80 [12:54:24]Write i2c OK [12:54:24]MH_I2C_Read... [12:54:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:24]Read from MH i2c: E2 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 03 00 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 03 00 6D 0E 00 90 00 EF [12:54:24]RAPDU: 90 00 [12:54:24]wFMCommunicate OK [12:54:24]wFMCommunicate request_size=4 [12:54:24]MH_SAM_APDU [12:54:24]CAPDU: 80 0D 03 02 [12:54:24]Write to MH i2c: E2 08 00 6E 0E 80 0D 03 02 00 00 00 00 F7 [12:54:24]Write i2c OK [12:54:24]MH_I2C_Read... [12:54:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:24]Read from MH i2c: E2 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 0B 00 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 0B 00 6E 0E 00 86 B1 4B DC 80 DF 4D FD 90 00 FF [12:54:24]RAPDU: 86 B1 4B DC 80 DF 4D FD 90 00 [12:54:24]wFMCommunicate OK [12:54:24]SAM_PROTO_SignData done [12:54:24]FM_MakeSignedData done [12:54:24]CreateOFDProtocolMessage [12:54:24]wFMCommunicate request_size=4 [12:54:24]MH_SAM_APDU [12:54:24]CAPDU: 80 11 00 00 [12:54:24]Write to MH i2c: E2 08 00 6F 0E 80 11 00 00 00 00 00 00 F7 [12:54:24]Write i2c OK [12:54:24]MH_I2C_Read... [12:54:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:24]Read from MH i2c: E2 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 17 00 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 17 00 6F 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4C [12:54:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:54:24]wFMCommunicate OK [12:54:24]CreateOFDProtocolMessage done [12:54:24]OFDSenderStorePacket 201472 [12:54:24]StoreOFDPacket docnum=201472 [12:54:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 DB 56 07 01 AE C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 EA 00 00 00 F4 03 04 00 7F E6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 00 13 03 00 35 04 06 00 88 A7 3D C4 02 D7 86 B1 4B DC 80 DF 4D FD [12:54:24]CheckFolder [12:54:24]dirname=/storage/ofd_packets [12:54:24]CheckFolder done [12:54:24]ProducePacketName [12:54:24]name=ofd_packets/00201472 [12:54:24]NVStorageSaveData ofd_packets/00201472 [12:54:24]File name is /storage/ofd_packets/00201472 [12:54:24]Write 301 bytes [12:54:24]NVStorageSaveData done [12:54:24]OFDSenderStorePacket done [12:54:24]KKMCreateOFDPacket done [12:54:24]NVStorageSaveData kkm_last_timestamp [12:54:24]File name is /storage/kkm_last_timestamp [12:54:24]Write 4 bytes [12:54:24]NVStorageSaveData done [12:54:24]ExternCall_PrintAddStr [12:54:24]wPrintStart [12:54:24]Write to MH i2c: 01 00 00 70 0E 7E [12:54:24]Write i2c OK [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: 01 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: 01 07 00 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: 01 07 00 70 0E 00 00 00 00 00 FF 0F 93 [12:54:24]RasterBufferAndPrint [12:54:24]line Счет N : (1)449222 [12:54:24]line ИНН: 02508201610067 [12:54:24]line Контрольно-Кассовый Чек [12:54:24]line ПРОДАЖА [12:54:24]line ТРК (МРК, ГНК) : 31 [12:54:24]line Товар: 2710124130 [12:54:24]line Аи-92-К-2 [12:54:24]line 14.950 * 66.90 [12:54:24]line = 1000.16 [12:54:24]line НДС 12% НСП 1% [12:54:24]line > о реализуемом товаре [12:54:24]line ОКРУГЛЕНИЕ: -0.16 [12:54:24]line ИТОГО: 1000.00 [12:54:24]line Внесено: 1000.00 [12:54:24]line СДАЧА: 0.00 [12:54:24]line НСП 1% : 8.85 [12:54:24]line НДС 12% : 106.21 [12:54:24]line Наличными: 1000.00 [12:54:24]line Безнал.: 0.00 [12:54:24]line Место: АЗС № 171 "Партнер Нефть" [12:54:24]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:54:24]line СНО: Общий режим [12:54:24]line Чек 234 26.10.2024 12:54 [12:54:24]line Смена: 543 ФФД: 1.0 [12:54:24]line ЗНМ: 0300000109 [12:54:24]line РНМ: 0000000000091777 [12:54:24]line Версия ККМ: 001 [12:54:24]line ФМ: 0000000000871756 [12:54:24]line ФД: 201472 [12:54:24]line ФПД: 150251877171927 [12:54:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125423&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201472&fm=150251877171927&tin=02508201610067®Number=0000000000091777&sum=100000 [12:54:25]OFD Sender: Processing packet 201472 [packets to send 112, broken 111] [12:54:25]ProducePacketName [12:54:25]name=ofd_packets/00201472 [12:54:25]OFD Sender: To server: pG, [12:54:25]CommunicateWithHost lk.salyk.kg:30040 [12:54:25]ConnectInit lk.salyk.kg [12:54:25]written 0, free lines is 4095 [12:54:25]Connected sock=10 [12:54:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 DB 56 07 01 AE C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 EA 00 00 00 F4 03 04 00 7F E6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 00 13 03 00 35 04 06 00 88 A7 3D C4 02 D7 86 B1 4B DC 80 DF 4D FD [12:54:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B6 97 47 00 37 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 00 13 03 00 F4 03 04 00 28 92 1C 67 B6 04 01 00 00 8F FE AC D8 73 2A F6 4E [12:54:25]CommunicateWithHost err = 0 [12:54:25]CheckOFDResponse [12:54:25]1017 (14) - 77093643461234 [12:54:25]1041 (16) - 0000000000871756 [12:54:25]1040 (4) - 201472 [12:54:25]1012 (4) - 26.10.2024 06:54 [12:54:25]1206 (1) - 0 [12:54:25]OFD Sender: Remove packet 201472 [12:54:25]ProducePacketName [12:54:25]name=ofd_packets/00201472 [12:54:25]NVStorageDeleteData [12:54:25]Write to MH i2c: 01 00 00 9B 0E A9 [12:54:25]Write i2c OK [12:54:25]MH_I2C_Read... [12:54:25]Read from MH i2c: 01 [12:54:25]MH_I2C_Read... [12:54:25]Read from MH i2c: 01 07 00 [12:54:25]MH_I2C_Read... [12:54:25]Read from MH i2c: 01 07 00 9B 0E 00 00 00 00 00 AA 0C 66 [12:54:25]RasterBufferAndPrint [12:54:25]line [12:54:25]line [12:54:25]line [12:54:25]line [12:54:25]line [12:54:25]written 0, free lines is 3246 [12:54:25]MH_Cut [12:54:25]Write to MH i2c: D1 01 00 A2 0E 01 82 [12:54:25]Write i2c OK [12:54:25]MH_I2C_Read... [12:54:25]Read from MH i2c: D1 [12:54:25]MH_I2C_Read... [12:54:25]Read from MH i2c: D1 01 00 [12:54:25]MH_I2C_Read... [12:54:25]Read from MH i2c: D1 01 00 A2 0E 00 81 [12:54:25]Write to MH i2c: 01 00 00 A3 0E B1 [12:54:25]Write i2c OK [12:54:25]MH_I2C_Read... [12:54:25]OFD Sender: No OFD packet to send [12:54:26]*** Cut start [12:54:26]*** Purtial cut [12:54:26]*** Stage 1: CUTSNS_PIN = 1 [12:54:26]Read from MH i2c: 01 [12:54:26]MH_I2C_Read... [12:54:26]*** Stop cut motor [12:54:26]*** Cut end [12:54:26]Read from MH i2c: 01 07 00 [12:54:26]MH_I2C_Read... [12:54:26]Read from MH i2c: 01 07 00 A3 0E 00 00 00 00 00 FF 0F C6 [12:54:26]process_action close_receipt done [12:54:26]requested_data is exist [12:54:26]produce_requested_data [12:54:26]requested_item fm.sn is exist - process it [12:54:26]wFMCommunicate request_size=4 [12:54:26]MH_SAM_APDU [12:54:26]CAPDU: 80 11 00 00 [12:54:26]Write to MH i2c: E2 08 00 A4 0E 80 11 00 00 00 00 00 00 2C [12:54:26]Write i2c OK [12:54:26]MH_I2C_Read... [12:54:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:26]Read from MH i2c: E2 [12:54:26]MH_I2C_Read... [12:54:26]Read from MH i2c: E2 17 00 [12:54:26]MH_I2C_Read... [12:54:26]Read from MH i2c: E2 17 00 A4 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 81 [12:54:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:54:26]wFMCommunicate OK [12:54:26]requested_item fd.num is exist - process it [12:54:26]SAM_PROTO_GetFieldsCounters [12:54:26]wFMCommunicate request_size=4 [12:54:26]MH_SAM_APDU [12:54:26]CAPDU: 80 13 00 00 [12:54:26]Write to MH i2c: E2 08 00 A5 0E 80 13 00 00 00 00 00 00 2F [12:54:26]Write i2c OK [12:54:26]MH_I2C_Read... [12:54:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:26]Read from MH i2c: E2 [12:54:26]MH_I2C_Read... [12:54:26]Read from MH i2c: E2 62 00 [12:54:26]MH_I2C_Read... [12:54:26]Read from MH i2c: E2 62 00 A5 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 00 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [12:54:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 00 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:54:26]wFMCommunicate OK [12:54:26]SAM_PROTO_GetFieldsCounters done [12:54:26]requested_item shift.num is exist - process it [12:54:26]requested_item shift.opened is exist - process it [12:54:26]req_shift_opened [12:54:26]FM_GetShiftState [12:54:26]SAM_PROTO_GetShiftState [12:54:26]wFMCommunicate request_size=4 [12:54:26]MH_SAM_APDU [12:54:26]CAPDU: 80 13 01 00 [12:54:26]Write to MH i2c: E2 08 00 A6 0E 80 13 01 00 00 00 00 00 31 [12:54:26]Write i2c OK [12:54:26]MH_I2C_Read... [12:54:26]Read from MH i2c: E2 [12:54:26]MH_I2C_Read... [12:54:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:26]Read from MH i2c: E2 0E 00 [12:54:26]MH_I2C_Read... [12:54:26]Read from MH i2c: E2 0E 00 A6 0E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 40 [12:54:26]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:54:26]wFMCommunicate OK [12:54:26]SAM_PROTO_GetShiftState done [12:54:26]FM_GetShiftState done [12:54:26]req_shift_opened done [12:54:26]requested_item shift.open_date is exist - process it [12:54:26]req_shift_open_date [12:54:26]req_shift_open_date done [12:54:26]produce_requested_data done [12:54:26]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201472,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:54:26]process_action_free close_receipt [12:54:26]json_value_free [12:54:26]json_value_free done [12:54:26]process_json_proto returns [12:54:26]Send response to host [12:54:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201472,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:54:26]free response buf [12:54:26]execute_script done [12:54:26]execute_script returns [12:54:26]free content buf [12:54:26]Sock 9.Close socket [12:54:26]Sock 9.Thread stoped [12:54:30]OFD Sender: No OFD packet to send [12:54:35]OFD Sender: No OFD packet to send [12:54:40]OFD Sender: No OFD packet to send [12:54:45]OFD Sender: No OFD packet to send [12:54:50]OFD Sender: No OFD packet to send [12:54:55]OFD Sender: No OFD packet to send [12:55:00]OFD Sender: No OFD packet to send [12:55:05]OFD Sender: No OFD packet to send [12:55:10]OFD Sender: No OFD packet to send [12:55:15]OFD Sender: No OFD packet to send [12:55:21]OFD Sender: No OFD packet to send [12:55:26]OFD Sender: No OFD packet to send [12:55:31]OFD Sender: No OFD packet to send [12:55:36]OFD Sender: No OFD packet to send [12:55:41]OFD Sender: No OFD packet to send [12:55:46]OFD Sender: No OFD packet to send [12:55:51]OFD Sender: No OFD packet to send [12:55:56]OFD Sender: No OFD packet to send [12:56:01]OFD Sender: No OFD packet to send [12:56:06]OFD Sender: No OFD packet to send [12:56:11]OFD Sender: No OFD packet to send [12:56:16]OFD Sender: No OFD packet to send [12:56:21]OFD Sender: No OFD packet to send [12:56:26]OFD Sender: No OFD packet to send [12:56:31]OFD Sender: No OFD packet to send [12:56:36]OFD Sender: No OFD packet to send [12:56:41]OFD Sender: No OFD packet to send [12:56:46]OFD Sender: No OFD packet to send [12:56:51]OFD Sender: No OFD packet to send [12:56:56]OFD Sender: No OFD packet to send [12:57:01]OFD Sender: No OFD packet to send [12:57:06]OFD Sender: No OFD packet to send [12:57:11]OFD Sender: No OFD packet to send [12:57:16]OFD Sender: No OFD packet to send [12:57:21]OFD Sender: No OFD packet to send [12:57:22]accept exits with 8 [12:57:22]New connection [12:57:22]New thread 3066834276 created [12:57:22]Thread 3066690916 joined [12:57:22]Waiting for new connection... [12:57:22] Sock 8.Parse request [12:57:22]Sock 8.Check first char [12:57:22]Sock 8.First char is OK [12:57:22]request: POST /json_proto HTTP/1.0 [12:57:22]Method: POST [12:57:22]URL: /json_proto [12:57:22]Method is POST - this is cgi request [12:57:22]url: /json_proto [12:57:22]query_string will be loaded in cgi processing [12:57:22]execute_cgi json_proto POST (null) [12:57:22]execute_cgi path=json_proto method=POST [12:57:22]POST find Content-Length [12:57:22]Host: 172.17.63.195:8080 [12:57:22]Content-Length: 674 [12:57:22]Content-Type: application/json [12:57:22] [12:57:22]POST finish read [12:57:22]Found Content-Length = 674 [12:57:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [12:57:22]execute_script... [12:57:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [12:57:22]POST & json_proto [12:57:22]process_json_proto [12:57:22]json parsed OK: [12:57:22]protocol is kg_v1.0 [12:57:22]action value=close_receipt [12:57:22]process_action close_receipt [12:57:22]cmd_close_receipt [12:57:22]MH_GetDate [12:57:22]Write to MH i2c: F0 00 00 A7 0E A4 [12:57:22]Write i2c OK [12:57:22]MH_I2C_Read... [12:57:22]Read from MH i2c: F0 [12:57:22]MH_I2C_Read... [12:57:22]Read from MH i2c: F0 09 00 [12:57:22]MH_I2C_Read... [12:57:22]Read from MH i2c: F0 09 00 A7 0E 00 33 E7 1C 67 68 46 19 67 78 [12:57:22]GetLastDocTimeStamp 1729947263 [12:57:22]current date 1729947443 [12:57:22]FM_GetShiftState [12:57:22]SAM_PROTO_GetShiftState [12:57:22]wFMCommunicate request_size=4 [12:57:22]MH_SAM_APDU [12:57:22]CAPDU: 80 13 01 00 [12:57:22]Write to MH i2c: E2 08 00 A8 0E 80 13 01 00 00 00 00 00 33 [12:57:22]Write i2c OK [12:57:22]MH_I2C_Read... [12:57:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:23]Read from MH i2c: E2 [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: E2 0E 00 [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: E2 0E 00 A8 0E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 42 [12:57:23]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:57:23]wFMCommunicate OK [12:57:23]SAM_PROTO_GetShiftState done [12:57:23]FM_GetShiftState done [12:57:23]opened in 1729900879 [12:57:23]opened+sec_in_day 1729987279 [12:57:23]quantity*price = 50063 [12:57:23]sum+1 = 50064 [12:57:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 235 26.10.2024 12:57 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201473 ФПД: 26411088752237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125723&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201473&fm=26411088752237&tin=02508201610067®Number=0000000000091777&sum=50000 [12:57:24]StoreToDocumentArchive [12:57:24]shift 543 fd 201473 [12:57:24]save to /storage/0543/doc_00201473 [12:57:24]save last doc name /storage/0543/doc_00201473 to /storage/kkm_last_doc_name [12:57:24]save OK [12:57:24]Clear old archive folders... [12:57:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:57:24]tlvbuf is 01F44EE0 [12:57:24]SAM_PROTO_ClearQueue [12:57:24]wFMCommunicate request_size=4 [12:57:24]MH_SAM_APDU [12:57:24]CAPDU: 80 09 00 00 [12:57:24]Write to MH i2c: E2 08 00 B5 0E 80 09 00 00 00 00 00 00 35 [12:57:24]Write i2c OK [12:57:24]MH_I2C_Read... [12:57:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:24]Read from MH i2c: E2 [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: E2 03 00 [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: E2 03 00 B5 0E 00 90 00 37 [12:57:24]RAPDU: 90 00 [12:57:24]wFMCommunicate OK [12:57:24]SAM_PROTO_ClearQueue done [12:57:24]KKMCreateOFDPacket [12:57:24]OFDProtocolAddRootSTLVToBuf [12:57:24]FM_MakeSignedData [12:57:24]FM_MakeSignedData [12:57:24]SAM_PROTO_SignData [12:57:24]wFMCommunicate request_size=4 [12:57:24]MH_SAM_APDU [12:57:24]CAPDU: 80 0D 01 02 [12:57:24]Write to MH i2c: E2 08 00 B6 0E 80 0D 01 02 00 00 00 00 3D [12:57:24]Write i2c OK [12:57:24]MH_I2C_Read... [12:57:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:24]Read from MH i2c: E2 [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: E2 03 00 [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: E2 03 00 B6 0E 00 90 00 38 [12:57:24]RAPDU: 90 00 [12:57:24]wFMCommunicate OK [12:57:24]wFMCommunicate request_size=255 [12:57:24]MH_SAM_APDU [12:57:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 EB 00 00 00 F4 03 04 00 33 E7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 01 13 03 00 35 04 06 00 18 05 4F 90 [12:57:24]Write to MH i2c: E2 02 01 B7 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 EB 00 00 00 F4 03 04 00 33 E7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 01 13 03 00 35 04 06 00 18 05 4F 90 00 00 0B [12:57:24]Write i2c OK [12:57:24]MH_I2C_Read... [12:57:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:24]Read from MH i2c: E2 [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: E2 03 00 [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: E2 03 00 B7 0E 00 90 00 39 [12:57:24]RAPDU: 90 00 [12:57:24]wFMCommunicate OK [12:57:24]wFMCommunicate request_size=7 [12:57:24]MH_SAM_APDU [12:57:24]CAPDU: 80 0D 02 02 02 2E 6D [12:57:24]Write to MH i2c: E2 0A 00 B8 0E 80 0D 02 02 02 00 2E 6D 00 00 DF [12:57:24]Write i2c OK [12:57:24]MH_I2C_Read... [12:57:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:24]Read from MH i2c: E2 [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: E2 03 00 [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: E2 03 00 B8 0E 00 90 00 3A [12:57:24]RAPDU: 90 00 [12:57:24]wFMCommunicate OK [12:57:24]wFMCommunicate request_size=4 [12:57:24]MH_SAM_APDU [12:57:24]CAPDU: 80 0D 03 02 [12:57:24]Write to MH i2c: E2 08 00 B9 0E 80 0D 03 02 00 00 00 00 42 [12:57:24]Write i2c OK [12:57:24]MH_I2C_Read... [12:57:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:24]Read from MH i2c: E2 [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: E2 0B 00 [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: E2 0B 00 B9 0E 00 6A 55 10 74 84 2A A3 D2 90 00 A9 [12:57:24]RAPDU: 6A 55 10 74 84 2A A3 D2 90 00 [12:57:24]wFMCommunicate OK [12:57:24]SAM_PROTO_SignData done [12:57:24]FM_MakeSignedData done [12:57:24]CreateOFDProtocolMessage [12:57:24]wFMCommunicate request_size=4 [12:57:24]MH_SAM_APDU [12:57:24]CAPDU: 80 11 00 00 [12:57:24]Write to MH i2c: E2 08 00 BA 0E 80 11 00 00 00 00 00 00 42 [12:57:24]Write i2c OK [12:57:24]MH_I2C_Read... [12:57:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:24]Read from MH i2c: E2 [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: E2 17 00 [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: E2 17 00 BA 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 97 [12:57:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:57:24]wFMCommunicate OK [12:57:24]CreateOFDProtocolMessage done [12:57:24]OFDSenderStorePacket 201473 [12:57:24]StoreOFDPacket docnum=201473 [12:57:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 9A DD 04 01 82 BE 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 EB 00 00 00 F4 03 04 00 33 E7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 01 13 03 00 35 04 06 00 18 05 4F 90 2E 6D 6A 55 10 74 84 2A A3 D2 [12:57:24]CheckFolder [12:57:24]dirname=/storage/ofd_packets [12:57:24]CheckFolder done [12:57:24]ProducePacketName [12:57:24]name=ofd_packets/00201473 [12:57:24]NVStorageSaveData ofd_packets/00201473 [12:57:24]File name is /storage/ofd_packets/00201473 [12:57:24]Write 298 bytes [12:57:24]NVStorageSaveData done [12:57:24]OFDSenderStorePacket done [12:57:24]KKMCreateOFDPacket done [12:57:24]NVStorageSaveData kkm_last_timestamp [12:57:24]File name is /storage/kkm_last_timestamp [12:57:24]Write 4 bytes [12:57:24]NVStorageSaveData done [12:57:24]ExternCall_PrintAddStr [12:57:24]wPrintStart [12:57:24]Write to MH i2c: 01 00 00 BB 0E C9 [12:57:24]Write i2c OK [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: 01 [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: 01 07 00 [12:57:24]MH_I2C_Read... [12:57:24]Read from MH i2c: 01 07 00 BB 0E 00 00 00 00 00 FF 0F DE [12:57:24]RasterBufferAndPrint [12:57:24]line Счет N : (1)449224 [12:57:24]line ИНН: 02508201610067 [12:57:24]line Контрольно-Кассовый Чек [12:57:24]line ПРОДАЖА [12:57:24]line ТРК (МРК, ГНК) : 33 [12:57:24]line Товар: 2710194210 [12:57:24]line ДТ-К-2 [12:57:24]line 6.570 * 76.20 [12:57:24]line = 500.63 [12:57:24]line НДС 12% НСП 1% [12:57:24]line > о реализуемом товаре [12:57:24]line ОКРУГЛЕНИЕ: -0.63 [12:57:24]line ИТОГО: 500.00 [12:57:24]line Внесено: 500.00 [12:57:24]line СДАЧА: 0.00 [12:57:24]line НСП 1% : 4.43 [12:57:24]line НДС 12% : 53.16 [12:57:24]line Наличными: 500.00 [12:57:24]line Безнал.: 0.00 [12:57:24]line Место: АЗС № 171 "Партнер Нефть" [12:57:24]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:57:24]line СНО: Общий режим [12:57:24]line Чек 235 26.10.2024 12:57 [12:57:24]line Смена: 543 ФФД: 1.0 [12:57:24]line ЗНМ: 0300000109 [12:57:24]line РНМ: 0000000000091777 [12:57:24]line Версия ККМ: 001 [12:57:24]line ФМ: 0000000000871756 [12:57:24]line ФД: 201473 [12:57:24]line ФПД: 26411088752237 [12:57:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125723&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201473&fm=26411088752237&tin=02508201610067®Number=0000000000091777&sum=50000 [12:57:24]OFD Sender: Processing packet 201473 [packets to send 112, broken 111] [12:57:24]ProducePacketName [12:57:24]name=ofd_packets/00201473 [12:57:24]OFD Sender: To server: pG, [12:57:24]CommunicateWithHost lk.salyk.kg:30040 [12:57:24]ConnectInit lk.salyk.kg [12:57:25]written 0, free lines is 4095 [12:57:25]Connected sock=10 [12:57:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 9A DD 04 01 82 BE 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 EB 00 00 00 F4 03 04 00 33 E7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 01 13 03 00 35 04 06 00 18 05 4F 90 2E 6D 6A 55 10 74 84 2A A3 D2 [12:57:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 34 75 47 00 86 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 01 13 03 00 F4 03 04 00 DC 92 1C 67 B6 04 01 00 00 D0 5C 64 98 F9 0F B9 69 [12:57:25]CommunicateWithHost err = 0 [12:57:25]CheckOFDResponse [12:57:25]1017 (14) - 77093643461234 [12:57:25]1041 (16) - 0000000000871756 [12:57:25]1040 (4) - 201473 [12:57:25]1012 (4) - 26.10.2024 06:57 [12:57:25]1206 (1) - 0 [12:57:25]OFD Sender: Remove packet 201473 [12:57:25]ProducePacketName [12:57:25]name=ofd_packets/00201473 [12:57:25]NVStorageDeleteData [12:57:25]Write to MH i2c: 01 00 00 E6 0E F4 [12:57:25]Write i2c OK [12:57:25]MH_I2C_Read... [12:57:25]Read from MH i2c: 01 [12:57:25]MH_I2C_Read... [12:57:25]Read from MH i2c: 01 07 00 [12:57:25]MH_I2C_Read... [12:57:25]Read from MH i2c: 01 07 00 E6 0E 00 00 00 00 00 95 0C 9C [12:57:25]RasterBufferAndPrint [12:57:25]line [12:57:25]line [12:57:25]line [12:57:25]line [12:57:25]line [12:57:25]written 0, free lines is 3227 [12:57:25]MH_Cut [12:57:25]Write to MH i2c: D1 01 00 ED 0E 01 CD [12:57:25]Write i2c OK [12:57:25]MH_I2C_Read... [12:57:25]Read from MH i2c: D1 [12:57:25]MH_I2C_Read... [12:57:25]Read from MH i2c: D1 01 00 [12:57:25]MH_I2C_Read... [12:57:25]Read from MH i2c: D1 01 00 ED 0E 00 CC [12:57:25]Write to MH i2c: 01 00 00 EE 0E FC [12:57:25]Write i2c OK [12:57:25]MH_I2C_Read... [12:57:25]OFD Sender: No OFD packet to send [12:57:26]*** Cut start [12:57:26]*** Purtial cut [12:57:26]*** Stage 1: CUTSNS_PIN = 1 [12:57:26]Read from MH i2c: 01 [12:57:26]MH_I2C_Read... [12:57:26]*** Stop cut motor [12:57:26]*** Cut end [12:57:26]Read from MH i2c: 01 07 00 [12:57:26]MH_I2C_Read... [12:57:26]Read from MH i2c: 01 07 00 EE 0E 00 00 00 00 00 FF 0F 11 [12:57:26]process_action close_receipt done [12:57:26]requested_data is exist [12:57:26]produce_requested_data [12:57:26]requested_item fm.sn is exist - process it [12:57:26]wFMCommunicate request_size=4 [12:57:26]MH_SAM_APDU [12:57:26]CAPDU: 80 11 00 00 [12:57:26]Write to MH i2c: E2 08 00 EF 0E 80 11 00 00 00 00 00 00 77 [12:57:26]Write i2c OK [12:57:26]MH_I2C_Read... [12:57:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:26]Read from MH i2c: E2 [12:57:26]MH_I2C_Read... [12:57:26]Read from MH i2c: E2 17 00 [12:57:26]MH_I2C_Read... [12:57:26]Read from MH i2c: E2 17 00 EF 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CC [12:57:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:57:26]wFMCommunicate OK [12:57:26]requested_item fd.num is exist - process it [12:57:26]SAM_PROTO_GetFieldsCounters [12:57:26]wFMCommunicate request_size=4 [12:57:26]MH_SAM_APDU [12:57:26]CAPDU: 80 13 00 00 [12:57:26]Write to MH i2c: E2 08 00 F0 0E 80 13 00 00 00 00 00 00 7A [12:57:26]Write i2c OK [12:57:26]MH_I2C_Read... [12:57:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:26]Read from MH i2c: E2 [12:57:26]MH_I2C_Read... [12:57:26]Read from MH i2c: E2 62 00 [12:57:26]MH_I2C_Read... [12:57:26]Read from MH i2c: E2 62 00 F0 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 01 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [12:57:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 01 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:57:26]wFMCommunicate OK [12:57:26]SAM_PROTO_GetFieldsCounters done [12:57:26]requested_item shift.num is exist - process it [12:57:26]requested_item shift.opened is exist - process it [12:57:26]req_shift_opened [12:57:26]FM_GetShiftState [12:57:26]SAM_PROTO_GetShiftState [12:57:26]wFMCommunicate request_size=4 [12:57:26]MH_SAM_APDU [12:57:26]CAPDU: 80 13 01 00 [12:57:26]Write to MH i2c: E2 08 00 F1 0E 80 13 01 00 00 00 00 00 7C [12:57:26]Write i2c OK [12:57:26]MH_I2C_Read... [12:57:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:26]Read from MH i2c: E2 [12:57:26]MH_I2C_Read... [12:57:26]Read from MH i2c: E2 0E 00 [12:57:26]MH_I2C_Read... [12:57:26]Read from MH i2c: E2 0E 00 F1 0E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 8B [12:57:26]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:57:26]wFMCommunicate OK [12:57:26]SAM_PROTO_GetShiftState done [12:57:26]FM_GetShiftState done [12:57:26]req_shift_opened done [12:57:26]requested_item shift.open_date is exist - process it [12:57:26]req_shift_open_date [12:57:26]req_shift_open_date done [12:57:26]produce_requested_data done [12:57:26]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201473,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:57:26]process_action_free close_receipt [12:57:26]json_value_free [12:57:26]json_value_free done [12:57:26]process_json_proto returns [12:57:26]Send response to host [12:57:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201473,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:57:26]free response buf [12:57:26]execute_script done [12:57:26]execute_script returns [12:57:26]free content buf [12:57:26]Sock 8.Close socket [12:57:26]Sock 8.Thread stoped [12:57:27]accept exits with 9 [12:57:27]New connection [12:57:27]New thread 3066690916 created [12:57:27]Thread 3066834276 joined [12:57:27]Waiting for new connection... [12:57:27] Sock 9.Parse request [12:57:27]Sock 9.Check first char [12:57:27]Sock 9.First char is OK [12:57:27]request: POST /json_proto HTTP/1.0 [12:57:27]Method: POST [12:57:27]URL: /json_proto [12:57:27]Method is POST - this is cgi request [12:57:27]url: /json_proto [12:57:27]query_string will be loaded in cgi processing [12:57:27]execute_cgi json_proto POST (null) [12:57:27]execute_cgi path=json_proto method=POST [12:57:27]POST find Content-Length [12:57:27]Host: 172.17.63.195:8080 [12:57:27]Content-Length: 677 [12:57:27]Content-Type: application/json [12:57:27] [12:57:27]POST finish read [12:57:27]Found Content-Length = 677 [12:57:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:27]execute_script... [12:57:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:27]POST & json_proto [12:57:27]process_json_proto [12:57:27]json parsed OK: [12:57:27]protocol is kg_v1.0 [12:57:27]action value=close_receipt [12:57:27]process_action close_receipt [12:57:27]cmd_close_receipt [12:57:27]MH_GetDate [12:57:27]Write to MH i2c: F0 00 00 F2 0E EF [12:57:27]Write i2c OK [12:57:27]MH_I2C_Read... [12:57:27]Read from MH i2c: F0 [12:57:27]MH_I2C_Read... [12:57:27]Read from MH i2c: F0 09 00 [12:57:27]MH_I2C_Read... [12:57:27]Read from MH i2c: F0 09 00 F2 0E 00 37 E7 1C 67 68 46 19 67 C7 [12:57:27]GetLastDocTimeStamp 1729947443 [12:57:27]current date 1729947447 [12:57:27]FM_GetShiftState [12:57:27]SAM_PROTO_GetShiftState [12:57:27]wFMCommunicate request_size=4 [12:57:27]MH_SAM_APDU [12:57:27]CAPDU: 80 13 01 00 [12:57:27]Write to MH i2c: E2 08 00 F3 0E 80 13 01 00 00 00 00 00 7E [12:57:27]Write i2c OK [12:57:27]MH_I2C_Read... [12:57:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:27]Read from MH i2c: E2 [12:57:27]MH_I2C_Read... [12:57:27]Read from MH i2c: E2 0E 00 [12:57:27]MH_I2C_Read... [12:57:27]Read from MH i2c: E2 0E 00 F3 0E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 8D [12:57:27]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:57:27]wFMCommunicate OK [12:57:27]SAM_PROTO_GetShiftState done [12:57:27]FM_GetShiftState done [12:57:27]opened in 1729900879 [12:57:27]opened+sec_in_day 1729987279 [12:57:27]quantity*price = 30038 [12:57:27]sum+1 = 30039 [12:57:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 236 26.10.2024 12:57 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201474 ФПД: 52391975218383 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125728&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201474&fm=52391975218383&tin=02508201610067®Number=0000000000091777&sum=30000 [12:57:28]StoreToDocumentArchive [12:57:28]shift 543 fd 201474 [12:57:28]save to /storage/0543/doc_00201474 [12:57:28]save last doc name /storage/0543/doc_00201474 to /storage/kkm_last_doc_name [12:57:28]save OK [12:57:28]Clear old archive folders... [12:57:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:57:28]tlvbuf is 01F62170 [12:57:28]SAM_PROTO_ClearQueue [12:57:28]wFMCommunicate request_size=4 [12:57:28]MH_SAM_APDU [12:57:28]CAPDU: 80 09 00 00 [12:57:28]Write to MH i2c: E2 08 00 00 0F 80 09 00 00 00 00 00 00 81 [12:57:28]Write i2c OK [12:57:28]MH_I2C_Read... [12:57:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:28]Read from MH i2c: E2 [12:57:28]MH_I2C_Read... [12:57:28]Read from MH i2c: E2 03 00 [12:57:28]MH_I2C_Read... [12:57:28]Read from MH i2c: E2 03 00 00 0F 00 90 00 83 [12:57:28]RAPDU: 90 00 [12:57:28]wFMCommunicate OK [12:57:28]SAM_PROTO_ClearQueue done [12:57:28]KKMCreateOFDPacket [12:57:28]OFDProtocolAddRootSTLVToBuf [12:57:28]FM_MakeSignedData [12:57:28]FM_MakeSignedData [12:57:28]SAM_PROTO_SignData [12:57:28]wFMCommunicate request_size=4 [12:57:28]MH_SAM_APDU [12:57:28]CAPDU: 80 0D 01 02 [12:57:28]Write to MH i2c: E2 08 00 01 0F 80 0D 01 02 00 00 00 00 89 [12:57:28]Write i2c OK [12:57:28]MH_I2C_Read... [12:57:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:28]Read from MH i2c: E2 [12:57:28]MH_I2C_Read... [12:57:28]Read from MH i2c: E2 03 00 [12:57:28]MH_I2C_Read... [12:57:28]Read from MH i2c: E2 03 00 01 0F 00 90 00 84 [12:57:28]RAPDU: 90 00 [12:57:28]wFMCommunicate OK [12:57:28]wFMCommunicate request_size=255 [12:57:28]MH_SAM_APDU [12:57:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 38 E7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 02 13 03 00 35 04 06 00 2F [12:57:28]Write to MH i2c: E2 02 01 02 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 38 E7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 02 13 03 00 35 04 06 00 2F 00 00 07 [12:57:28]Write i2c OK [12:57:28]MH_I2C_Read... [12:57:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:29]Read from MH i2c: E2 [12:57:29]MH_I2C_Read... [12:57:29]Read from MH i2c: E2 03 00 [12:57:29]MH_I2C_Read... [12:57:29]Read from MH i2c: E2 03 00 02 0F 00 90 00 85 [12:57:29]RAPDU: 90 00 [12:57:29]wFMCommunicate OK [12:57:29]wFMCommunicate request_size=10 [12:57:29]MH_SAM_APDU [12:57:29]CAPDU: 80 0D 02 02 05 A6 75 12 6C CF [12:57:29]Write to MH i2c: E2 0D 00 03 0F 80 0D 02 02 05 00 A6 75 12 6C CF 00 00 FE [12:57:29]Write i2c OK [12:57:29]MH_I2C_Read... [12:57:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:29]Read from MH i2c: E2 [12:57:29]MH_I2C_Read... [12:57:29]Read from MH i2c: E2 03 00 [12:57:29]MH_I2C_Read... [12:57:29]Read from MH i2c: E2 03 00 03 0F 00 90 00 86 [12:57:29]RAPDU: 90 00 [12:57:29]wFMCommunicate OK [12:57:29]wFMCommunicate request_size=4 [12:57:29]MH_SAM_APDU [12:57:29]CAPDU: 80 0D 03 02 [12:57:29]Write to MH i2c: E2 08 00 04 0F 80 0D 03 02 00 00 00 00 8E [12:57:29]Write i2c OK [12:57:29]MH_I2C_Read... [12:57:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:29]Read from MH i2c: E2 [12:57:29]MH_I2C_Read... [12:57:29]Read from MH i2c: E2 0B 00 [12:57:29]MH_I2C_Read... [12:57:29]Read from MH i2c: E2 0B 00 04 0F 00 A6 52 92 F6 70 17 97 C0 90 00 ED [12:57:29]RAPDU: A6 52 92 F6 70 17 97 C0 90 00 [12:57:29]wFMCommunicate OK [12:57:29]SAM_PROTO_SignData done [12:57:29]FM_MakeSignedData done [12:57:29]CreateOFDProtocolMessage [12:57:29]wFMCommunicate request_size=4 [12:57:29]MH_SAM_APDU [12:57:29]CAPDU: 80 11 00 00 [12:57:29]Write to MH i2c: E2 08 00 05 0F 80 11 00 00 00 00 00 00 8E [12:57:29]Write i2c OK [12:57:29]MH_I2C_Read... [12:57:29]Read from MH i2c: E2 [12:57:29]MH_I2C_Read... [12:57:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:29]Read from MH i2c: E2 17 00 [12:57:29]MH_I2C_Read... [12:57:29]Read from MH i2c: E2 17 00 05 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E3 [12:57:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:57:29]wFMCommunicate OK [12:57:29]CreateOFDProtocolMessage done [12:57:29]OFDSenderStorePacket 201474 [12:57:29]StoreOFDPacket docnum=201474 [12:57:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 81 06 07 01 7A 68 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 38 E7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 02 13 03 00 35 04 06 00 2F A6 75 12 6C CF A6 52 92 F6 70 17 97 C0 [12:57:29]CheckFolder [12:57:29]dirname=/storage/ofd_packets [12:57:29]CheckFolder done [12:57:29]ProducePacketName [12:57:29]name=ofd_packets/00201474 [12:57:29]NVStorageSaveData ofd_packets/00201474 [12:57:29]File name is /storage/ofd_packets/00201474 [12:57:29]Write 301 bytes [12:57:29]NVStorageSaveData done [12:57:29]OFDSenderStorePacket done [12:57:29]KKMCreateOFDPacket done [12:57:29]NVStorageSaveData kkm_last_timestamp [12:57:29]File name is /storage/kkm_last_timestamp [12:57:29]Write 4 bytes [12:57:29]NVStorageSaveData done [12:57:29]ExternCall_PrintAddStr [12:57:29]wPrintStart [12:57:29]Write to MH i2c: 01 00 00 06 0F 15 [12:57:29]Write i2c OK [12:57:29]MH_I2C_Read... [12:57:29]Read from MH i2c: 01 [12:57:29]MH_I2C_Read... [12:57:29]Read from MH i2c: 01 07 00 [12:57:29]MH_I2C_Read... [12:57:29]Read from MH i2c: 01 07 00 06 0F 00 00 00 00 00 FF 0F 2A [12:57:29]RasterBufferAndPrint [12:57:29]line Счет N : (1)449223 [12:57:29]line ИНН: 02508201610067 [12:57:29]line Контрольно-Кассовый Чек [12:57:29]line ПРОДАЖА [12:57:29]line ТРК (МРК, ГНК) : 62 [12:57:29]line Товар: 2710124130 [12:57:29]line Аи-92-К-2 [12:57:29]line 4.490 * 66.90 [12:57:29]line = 300.38 [12:57:29]line НДС 12% НСП 1% [12:57:29]line > о реализуемом товаре [12:57:29]line ОКРУГЛЕНИЕ: -0.38 [12:57:29]line ИТОГО: 300.00 [12:57:29]line Внесено: 300.00 [12:57:29]line СДАЧА: 0.00 [12:57:29]line НСП 1% : 2.66 [12:57:29]line НДС 12% : 31.90 [12:57:29]line Наличными: 300.00 [12:57:29]line Безнал.: 0.00 [12:57:29]line Место: АЗС № 171 "Партнер Нефть" [12:57:29]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:57:29]line СНО: Общий режим [12:57:29]line Чек 236 26.10.2024 12:57 [12:57:29]line Смена: 543 ФФД: 1.0 [12:57:29]line ЗНМ: 0300000109 [12:57:29]line РНМ: 0000000000091777 [12:57:29]line Версия ККМ: 001 [12:57:29]line ФМ: 0000000000871756 [12:57:29]line ФД: 201474 [12:57:29]line ФПД: 52391975218383 [12:57:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125728&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201474&fm=52391975218383&tin=02508201610067®Number=0000000000091777&sum=30000 [12:57:29]OFD Sender: Processing packet 201474 [packets to send 112, broken 111] [12:57:29]ProducePacketName [12:57:29]name=ofd_packets/00201474 [12:57:29]OFD Sender: To server: pG, [12:57:29]CommunicateWithHost lk.salyk.kg:30040 [12:57:29]ConnectInit lk.salyk.kg [12:57:29]written 0, free lines is 4095 [12:57:29]Connected sock=10 [12:57:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 81 06 07 01 7A 68 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 38 E7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 02 13 03 00 35 04 06 00 2F A6 75 12 6C CF A6 52 92 F6 70 17 97 C0 [12:57:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A8 37 47 00 FE 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 02 13 03 00 F4 03 04 00 E1 92 1C 67 B6 04 01 00 00 D6 AA 5F 38 99 6B 8D 8E [12:57:29]CommunicateWithHost err = 0 [12:57:29]CheckOFDResponse [12:57:29]1017 (14) - 77093643461234 [12:57:29]1041 (16) - 0000000000871756 [12:57:29]1040 (4) - 201474 [12:57:29]1012 (4) - 26.10.2024 06:57 [12:57:29]1206 (1) - 0 [12:57:29]OFD Sender: Remove packet 201474 [12:57:29]ProducePacketName [12:57:29]name=ofd_packets/00201474 [12:57:29]NVStorageDeleteData [12:57:30]Write to MH i2c: 01 00 00 31 0F 40 [12:57:30]Write i2c OK [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: 01 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: 01 07 00 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: 01 07 00 31 0F 00 00 00 00 00 AA 0C FD [12:57:30]RasterBufferAndPrint [12:57:30]line [12:57:30]line [12:57:30]line [12:57:30]line [12:57:30]line [12:57:30]written 0, free lines is 3254 [12:57:30]MH_Cut [12:57:30]Write to MH i2c: D1 01 00 38 0F 01 19 [12:57:30]Write i2c OK [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: D1 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: D1 01 00 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: D1 01 00 38 0F 00 18 [12:57:30]Write to MH i2c: 01 00 00 39 0F 48 [12:57:30]Write i2c OK [12:57:30]MH_I2C_Read... [12:57:30]OFD Sender: No OFD packet to send [12:57:30]*** Cut start [12:57:30]*** Purtial cut [12:57:30]*** Stage 1: CUTSNS_PIN = 1 [12:57:31]Read from MH i2c: 01 [12:57:31]MH_I2C_Read... [12:57:31]*** Stop cut motor [12:57:31]*** Cut end [12:57:31]Read from MH i2c: 01 07 00 [12:57:31]MH_I2C_Read... [12:57:31]Read from MH i2c: 01 07 00 39 0F 00 00 00 00 00 FF 0F 5D [12:57:31]process_action close_receipt done [12:57:31]requested_data is exist [12:57:31]produce_requested_data [12:57:31]requested_item fm.sn is exist - process it [12:57:31]wFMCommunicate request_size=4 [12:57:31]MH_SAM_APDU [12:57:31]CAPDU: 80 11 00 00 [12:57:31]Write to MH i2c: E2 08 00 3A 0F 80 11 00 00 00 00 00 00 C3 [12:57:31]Write i2c OK [12:57:31]MH_I2C_Read... [12:57:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:31]Read from MH i2c: E2 [12:57:31]MH_I2C_Read... [12:57:31]Read from MH i2c: E2 17 00 [12:57:31]MH_I2C_Read... [12:57:31]Read from MH i2c: E2 17 00 3A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 18 [12:57:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:57:31]wFMCommunicate OK [12:57:31]requested_item fd.num is exist - process it [12:57:31]SAM_PROTO_GetFieldsCounters [12:57:31]wFMCommunicate request_size=4 [12:57:31]MH_SAM_APDU [12:57:31]CAPDU: 80 13 00 00 [12:57:31]Write to MH i2c: E2 08 00 3B 0F 80 13 00 00 00 00 00 00 C6 [12:57:31]Write i2c OK [12:57:31]MH_I2C_Read... [12:57:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:31]Read from MH i2c: E2 [12:57:31]MH_I2C_Read... [12:57:31]Read from MH i2c: E2 62 00 [12:57:31]MH_I2C_Read... [12:57:31]Read from MH i2c: E2 62 00 3B 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 02 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [12:57:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 02 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:57:31]wFMCommunicate OK [12:57:31]SAM_PROTO_GetFieldsCounters done [12:57:31]requested_item shift.num is exist - process it [12:57:31]requested_item shift.opened is exist - process it [12:57:31]req_shift_opened [12:57:31]FM_GetShiftState [12:57:31]SAM_PROTO_GetShiftState [12:57:31]wFMCommunicate request_size=4 [12:57:31]MH_SAM_APDU [12:57:31]CAPDU: 80 13 01 00 [12:57:31]Write to MH i2c: E2 08 00 3C 0F 80 13 01 00 00 00 00 00 C8 [12:57:31]Write i2c OK [12:57:31]MH_I2C_Read... [12:57:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:31]Read from MH i2c: E2 [12:57:31]MH_I2C_Read... [12:57:31]Read from MH i2c: E2 0E 00 [12:57:31]MH_I2C_Read... [12:57:31]Read from MH i2c: E2 0E 00 3C 0F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D7 [12:57:31]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:57:31]wFMCommunicate OK [12:57:31]SAM_PROTO_GetShiftState done [12:57:31]FM_GetShiftState done [12:57:31]req_shift_opened done [12:57:31]requested_item shift.open_date is exist - process it [12:57:31]req_shift_open_date [12:57:31]req_shift_open_date done [12:57:31]produce_requested_data done [12:57:31]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201474,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:57:31]process_action_free close_receipt [12:57:31]json_value_free [12:57:31]json_value_free done [12:57:31]process_json_proto returns [12:57:31]Send response to host [12:57:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201474,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:57:31]free response buf [12:57:31]execute_script done [12:57:31]execute_script returns [12:57:31]free content buf [12:57:31]Sock 9.Close socket [12:57:31]Sock 9.Thread stoped [12:57:35]OFD Sender: No OFD packet to send [12:57:40]OFD Sender: No OFD packet to send [12:57:45]OFD Sender: No OFD packet to send [12:57:50]OFD Sender: No OFD packet to send [12:57:53]accept exits with 8 [12:57:53]New connection [12:57:53]New thread 3066834276 created [12:57:53]Thread 3066690916 joined [12:57:53]Waiting for new connection... [12:57:53] Sock 8.Parse request [12:57:53]Sock 8.Check first char [12:57:53]Sock 8.First char is OK [12:57:53]request: POST /json_proto HTTP/1.0 [12:57:53]Method: POST [12:57:53]URL: /json_proto [12:57:53]Method is POST - this is cgi request [12:57:53]url: /json_proto [12:57:53]query_string will be loaded in cgi processing [12:57:53]execute_cgi json_proto POST (null) [12:57:53]execute_cgi path=json_proto method=POST [12:57:53]POST find Content-Length [12:57:53]Host: 172.17.63.195:8080 [12:57:53]Content-Length: 677 [12:57:53]Content-Type: application/json [12:57:53] [12:57:53]POST finish read [12:57:53]Found Content-Length = 677 [12:57:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:53]execute_script... [12:57:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:53]POST & json_proto [12:57:53]process_json_proto [12:57:53]json parsed OK: [12:57:53]protocol is kg_v1.0 [12:57:53]action value=close_receipt [12:57:53]process_action close_receipt [12:57:53]cmd_close_receipt [12:57:53]MH_GetDate [12:57:53]Write to MH i2c: F0 00 00 3D 0F 3B [12:57:53]Write i2c OK [12:57:53]MH_I2C_Read... [12:57:53]Read from MH i2c: F0 [12:57:53]MH_I2C_Read... [12:57:53]Read from MH i2c: F0 09 00 [12:57:53]MH_I2C_Read... [12:57:53]Read from MH i2c: F0 09 00 3D 0F 00 52 E7 1C 67 68 46 19 67 2E [12:57:53]GetLastDocTimeStamp 1729947448 [12:57:53]current date 1729947474 [12:57:53]FM_GetShiftState [12:57:53]SAM_PROTO_GetShiftState [12:57:53]wFMCommunicate request_size=4 [12:57:53]MH_SAM_APDU [12:57:53]CAPDU: 80 13 01 00 [12:57:53]Write to MH i2c: E2 08 00 3E 0F 80 13 01 00 00 00 00 00 CA [12:57:53]Write i2c OK [12:57:53]MH_I2C_Read... [12:57:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:53]Read from MH i2c: E2 [12:57:53]MH_I2C_Read... [12:57:53]Read from MH i2c: E2 0E 00 [12:57:53]MH_I2C_Read... [12:57:53]Read from MH i2c: E2 0E 00 3E 0F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D9 [12:57:53]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:57:53]wFMCommunicate OK [12:57:53]SAM_PROTO_GetShiftState done [12:57:53]FM_GetShiftState done [12:57:53]opened in 1729900879 [12:57:53]opened+sec_in_day 1729987279 [12:57:53]quantity*price = 30038 [12:57:53]sum+1 = 30039 [12:57:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 237 26.10.2024 12:57 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201475 ФПД: 124762599927412 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125754&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201475&fm=124762599927412&tin=02508201610067®Number=0000000000091777&sum=30000 [12:57:54]StoreToDocumentArchive [12:57:54]shift 543 fd 201475 [12:57:54]save to /storage/0543/doc_00201475 [12:57:54]save last doc name /storage/0543/doc_00201475 to /storage/kkm_last_doc_name [12:57:54]save OK [12:57:54]Clear old archive folders... [12:57:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:57:54]tlvbuf is 01F49610 [12:57:54]SAM_PROTO_ClearQueue [12:57:54]wFMCommunicate request_size=4 [12:57:54]MH_SAM_APDU [12:57:54]CAPDU: 80 09 00 00 [12:57:54]Write to MH i2c: E2 08 00 4B 0F 80 09 00 00 00 00 00 00 CC [12:57:54]Write i2c OK [12:57:54]MH_I2C_Read... [12:57:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:54]Read from MH i2c: E2 [12:57:54]MH_I2C_Read... [12:57:54]Read from MH i2c: E2 03 00 [12:57:54]MH_I2C_Read... [12:57:54]Read from MH i2c: E2 03 00 4B 0F 00 90 00 CE [12:57:54]RAPDU: 90 00 [12:57:54]wFMCommunicate OK [12:57:54]SAM_PROTO_ClearQueue done [12:57:54]KKMCreateOFDPacket [12:57:54]OFDProtocolAddRootSTLVToBuf [12:57:54]FM_MakeSignedData [12:57:54]FM_MakeSignedData [12:57:54]SAM_PROTO_SignData [12:57:54]wFMCommunicate request_size=4 [12:57:54]MH_SAM_APDU [12:57:54]CAPDU: 80 0D 01 02 [12:57:54]Write to MH i2c: E2 08 00 4C 0F 80 0D 01 02 00 00 00 00 D4 [12:57:54]Write i2c OK [12:57:54]MH_I2C_Read... [12:57:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:54]Read from MH i2c: E2 [12:57:54]MH_I2C_Read... [12:57:54]Read from MH i2c: E2 03 00 [12:57:54]MH_I2C_Read... [12:57:54]Read from MH i2c: E2 03 00 4C 0F 00 90 00 CF [12:57:54]RAPDU: 90 00 [12:57:54]wFMCommunicate OK [12:57:54]wFMCommunicate request_size=255 [12:57:54]MH_SAM_APDU [12:57: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 52 E7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 03 13 03 00 35 04 06 00 71 [12:57:54]Write to MH i2c: E2 02 01 4D 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 52 E7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 03 13 03 00 35 04 06 00 71 00 00 B0 [12:57:54]Write i2c OK [12:57:54]MH_I2C_Read... [12:57:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:54]Read from MH i2c: E2 [12:57:54]MH_I2C_Read... [12:57:54]Read from MH i2c: E2 03 00 [12:57:54]MH_I2C_Read... [12:57:54]Read from MH i2c: E2 03 00 4D 0F 00 90 00 D0 [12:57:54]RAPDU: 90 00 [12:57:54]wFMCommunicate OK [12:57:54]wFMCommunicate request_size=10 [12:57:54]MH_SAM_APDU [12:57:54]CAPDU: 80 0D 02 02 05 78 8E 73 2E 74 [12:57:54]Write to MH i2c: E2 0D 00 4E 0F 80 0D 02 02 05 00 78 8E 73 2E 74 00 00 FC [12:57:54]Write i2c OK [12:57:54]MH_I2C_Read... [12:57:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:55]Read from MH i2c: E2 [12:57:55]MH_I2C_Read... [12:57:55]Read from MH i2c: E2 03 00 [12:57:55]MH_I2C_Read... [12:57:55]Read from MH i2c: E2 03 00 4E 0F 00 90 00 D1 [12:57:55]RAPDU: 90 00 [12:57:55]wFMCommunicate OK [12:57:55]wFMCommunicate request_size=4 [12:57:55]MH_SAM_APDU [12:57:55]CAPDU: 80 0D 03 02 [12:57:55]Write to MH i2c: E2 08 00 4F 0F 80 0D 03 02 00 00 00 00 D9 [12:57:55]Write i2c OK [12:57:55]MH_I2C_Read... [12:57:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:55]Read from MH i2c: E2 [12:57:55]MH_I2C_Read... [12:57:55]Read from MH i2c: E2 0B 00 [12:57:55]MH_I2C_Read... [12:57:55]Read from MH i2c: E2 0B 00 4F 0F 00 20 FF 02 E1 E9 74 34 95 90 00 02 [12:57:55]RAPDU: 20 FF 02 E1 E9 74 34 95 90 00 [12:57:55]wFMCommunicate OK [12:57:55]SAM_PROTO_SignData done [12:57:55]FM_MakeSignedData done [12:57:55]CreateOFDProtocolMessage [12:57:55]wFMCommunicate request_size=4 [12:57:55]MH_SAM_APDU [12:57:55]CAPDU: 80 11 00 00 [12:57:55]Write to MH i2c: E2 08 00 50 0F 80 11 00 00 00 00 00 00 D9 [12:57:55]Write i2c OK [12:57:55]MH_I2C_Read... [12:57:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:55]Read from MH i2c: E2 [12:57:55]MH_I2C_Read... [12:57:55]Read from MH i2c: E2 17 00 [12:57:55]MH_I2C_Read... [12:57:55]Read from MH i2c: E2 17 00 50 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2E [12:57:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:57:55]wFMCommunicate OK [12:57:55]CreateOFDProtocolMessage done [12:57:55]OFDSenderStorePacket 201475 [12:57:55]StoreOFDPacket docnum=201475 [12:57:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 2A 19 07 01 A9 1F 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 52 E7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 03 13 03 00 35 04 06 00 71 78 8E 73 2E 74 20 FF 02 E1 E9 74 34 95 [12:57:55]CheckFolder [12:57:55]dirname=/storage/ofd_packets [12:57:55]CheckFolder done [12:57:55]ProducePacketName [12:57:55]name=ofd_packets/00201475 [12:57:55]NVStorageSaveData ofd_packets/00201475 [12:57:55]File name is /storage/ofd_packets/00201475 [12:57:55]Write 301 bytes [12:57:55]NVStorageSaveData done [12:57:55]OFDSenderStorePacket done [12:57:55]KKMCreateOFDPacket done [12:57:55]NVStorageSaveData kkm_last_timestamp [12:57:55]File name is /storage/kkm_last_timestamp [12:57:55]Write 4 bytes [12:57:55]NVStorageSaveData done [12:57:55]ExternCall_PrintAddStr [12:57:55]wPrintStart [12:57:55]Write to MH i2c: 01 00 00 51 0F 60 [12:57:55]Write i2c OK [12:57:55]MH_I2C_Read... [12:57:55]Read from MH i2c: 01 [12:57:55]MH_I2C_Read... [12:57:55]Read from MH i2c: 01 07 00 [12:57:55]MH_I2C_Read... [12:57:55]Read from MH i2c: 01 07 00 51 0F 00 00 00 00 00 FF 0F 75 [12:57:55]RasterBufferAndPrint [12:57:55]line Счет N : (1)449225 [12:57:55]line ИНН: 02508201610067 [12:57:55]line Контрольно-Кассовый Чек [12:57:55]line ПРОДАЖА [12:57:55]line ТРК (МРК, ГНК) : 62 [12:57:55]line Товар: 2710124130 [12:57:55]line Аи-92-К-2 [12:57:55]line 4.490 * 66.90 [12:57:55]line = 300.38 [12:57:55]line НДС 12% НСП 1% [12:57:55]line > о реализуемом товаре [12:57:55]line ОКРУГЛЕНИЕ: -0.38 [12:57:55]line ИТОГО: 300.00 [12:57:55]line Внесено: 300.00 [12:57:55]line СДАЧА: 0.00 [12:57:55]line НСП 1% : 2.66 [12:57:55]line НДС 12% : 31.90 [12:57:55]line Наличными: 300.00 [12:57:55]line Безнал.: 0.00 [12:57:55]line Место: АЗС № 171 "Партнер Нефть" [12:57:55]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [12:57:55]line СНО: Общий режим [12:57:55]line Чек 237 26.10.2024 12:57 [12:57:55]line Смена: 543 ФФД: 1.0 [12:57:55]line ЗНМ: 0300000109 [12:57:55]line РНМ: 0000000000091777 [12:57:55]line Версия ККМ: 001 [12:57:55]line ФМ: 0000000000871756 [12:57:55]line ФД: 201475 [12:57:55]line ФПД: 124762599927412 [12:57:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125754&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201475&fm=124762599927412&tin=02508201610067®Number=0000000000091777&sum=30000 [12:57:55]written 0, free lines is 4095 [12:57:55]OFD Sender: Processing packet 201475 [packets to send 112, broken 111] [12:57:55]ProducePacketName [12:57:55]name=ofd_packets/00201475 [12:57:55]OFD Sender: To server: pG, [12:57:55]CommunicateWithHost lk.salyk.kg:30040 [12:57:55]ConnectInit lk.salyk.kg [12:57:55]Connected sock=11 [12:57:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 2A 19 07 01 A9 1F 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 52 E7 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 03 13 03 00 35 04 06 00 71 78 8E 73 2E 74 20 FF 02 E1 E9 74 34 95 [12:57:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 79 54 47 00 58 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 03 13 03 00 F4 03 04 00 FB 92 1C 67 B6 04 01 00 00 24 FF 17 B4 E8 A8 0C 7B [12:57:55]CommunicateWithHost err = 0 [12:57:55]CheckOFDResponse [12:57:55]1017 (14) - 77093643461234 [12:57:55]1041 (16) - 0000000000871756 [12:57:55]1040 (4) - 201475 [12:57:55]1012 (4) - 26.10.2024 06:58 [12:57:55]1206 (1) - 0 [12:57:55]OFD Sender: Remove packet 201475 [12:57:55]ProducePacketName [12:57:55]name=ofd_packets/00201475 [12:57:55]NVStorageDeleteData [12:57:55]Write to MH i2c: 01 00 00 7C 0F 8B [12:57:55]Write i2c OK [12:57:55]MH_I2C_Read... [12:57:55]Read from MH i2c: 01 [12:57:55]MH_I2C_Read... [12:57:55]Read from MH i2c: 01 07 00 [12:57:55]MH_I2C_Read... [12:57:55]Read from MH i2c: 01 07 00 7C 0F 00 00 00 00 00 AA 0C 48 [12:57:55]RasterBufferAndPrint [12:57:55]line [12:57:55]line [12:57:55]line [12:57:55]line [12:57:55]line [12:57:55]written 0, free lines is 3249 [12:57:55]MH_Cut [12:57:55]Write to MH i2c: D1 01 00 83 0F 01 64 [12:57:55]Write i2c OK [12:57:55]MH_I2C_Read... [12:57:55]Read from MH i2c: D1 [12:57:55]MH_I2C_Read... [12:57:55]Read from MH i2c: D1 01 00 [12:57:55]MH_I2C_Read... [12:57:55]Read from MH i2c: D1 01 00 83 0F 00 63 [12:57:55]Write to MH i2c: 01 00 00 84 0F 93 [12:57:55]Write i2c OK [12:57:55]MH_I2C_Read... [12:57:55]OFD Sender: No OFD packet to send [12:57:56]*** Cut start [12:57:56]*** Purtial cut [12:57:56]*** Stage 1: CUTSNS_PIN = 1 [12:57:56]Read from MH i2c: 01 [12:57:56]MH_I2C_Read... [12:57:56]*** Stop cut motor [12:57:56]*** Cut end [12:57:56]Read from MH i2c: 01 07 00 [12:57:56]MH_I2C_Read... [12:57:56]Read from MH i2c: 01 07 00 84 0F 00 00 00 00 00 FF 0F A8 [12:57:56]process_action close_receipt done [12:57:56]requested_data is exist [12:57:56]produce_requested_data [12:57:56]requested_item fm.sn is exist - process it [12:57:56]wFMCommunicate request_size=4 [12:57:56]MH_SAM_APDU [12:57:56]CAPDU: 80 11 00 00 [12:57:56]Write to MH i2c: E2 08 00 85 0F 80 11 00 00 00 00 00 00 0E [12:57:56]Write i2c OK [12:57:56]MH_I2C_Read... [12:57:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:56]Read from MH i2c: E2 [12:57:56]MH_I2C_Read... [12:57:56]Read from MH i2c: E2 17 00 [12:57:56]MH_I2C_Read... [12:57:56]Read from MH i2c: E2 17 00 85 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 63 [12:57:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [12:57:56]wFMCommunicate OK [12:57:56]requested_item fd.num is exist - process it [12:57:56]SAM_PROTO_GetFieldsCounters [12:57:56]wFMCommunicate request_size=4 [12:57:56]MH_SAM_APDU [12:57:56]CAPDU: 80 13 00 00 [12:57:56]Write to MH i2c: E2 08 00 86 0F 80 13 00 00 00 00 00 00 11 [12:57:56]Write i2c OK [12:57:56]MH_I2C_Read... [12:57:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:56]Read from MH i2c: E2 [12:57:56]MH_I2C_Read... [12:57:56]Read from MH i2c: E2 62 00 [12:57:56]MH_I2C_Read... [12:57:56]Read from MH i2c: E2 62 00 86 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 03 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [12:57:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 03 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:57:56]wFMCommunicate OK [12:57:56]SAM_PROTO_GetFieldsCounters done [12:57:56]requested_item shift.num is exist - process it [12:57:56]requested_item shift.opened is exist - process it [12:57:56]req_shift_opened [12:57:56]FM_GetShiftState [12:57:56]SAM_PROTO_GetShiftState [12:57:56]wFMCommunicate request_size=4 [12:57:56]MH_SAM_APDU [12:57:56]CAPDU: 80 13 01 00 [12:57:56]Write to MH i2c: E2 08 00 87 0F 80 13 01 00 00 00 00 00 13 [12:57:56]Write i2c OK [12:57:56]MH_I2C_Read... [12:57:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:56]Read from MH i2c: E2 [12:57:56]MH_I2C_Read... [12:57:56]Read from MH i2c: E2 0E 00 [12:57:56]MH_I2C_Read... [12:57:56]Read from MH i2c: E2 0E 00 87 0F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 22 [12:57:56]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [12:57:56]wFMCommunicate OK [12:57:56]SAM_PROTO_GetShiftState done [12:57:56]FM_GetShiftState done [12:57:56]req_shift_opened done [12:57:56]requested_item shift.open_date is exist - process it [12:57:56]req_shift_open_date [12:57:56]req_shift_open_date done [12:57:56]produce_requested_data done [12:57:56]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201475,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [12:57:56]process_action_free close_receipt [12:57:56]json_value_free [12:57:56]json_value_free done [12:57:56]process_json_proto returns [12:57:56]Send response to host [12:57:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201475,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [12:57:56]free response buf [12:57:56]execute_script done [12:57:56]execute_script returns [12:57:56]free content buf [12:57:56]Sock 8.Close socket [12:57:56]Sock 8.Thread stoped [12:58:00]OFD Sender: No OFD packet to send [12:58:05]OFD Sender: No OFD packet to send [12:58:11]OFD Sender: No OFD packet to send [12:58:16]OFD Sender: No OFD packet to send [12:58:21]OFD Sender: No OFD packet to send [12:58:26]OFD Sender: No OFD packet to send [12:58:31]OFD Sender: No OFD packet to send [12:58:36]OFD Sender: No OFD packet to send [12:58:41]OFD Sender: No OFD packet to send [12:58:46]OFD Sender: No OFD packet to send [12:58:51]OFD Sender: No OFD packet to send [12:58:56]OFD Sender: No OFD packet to send [12:59:01]OFD Sender: No OFD packet to send [12:59:06]OFD Sender: No OFD packet to send [12:59:11]OFD Sender: No OFD packet to send [12:59:16]OFD Sender: No OFD packet to send [12:59:21]OFD Sender: No OFD packet to send [12:59:26]OFD Sender: No OFD packet to send [12:59:31]OFD Sender: No OFD packet to send [12:59:36]OFD Sender: No OFD packet to send [12:59:41]OFD Sender: No OFD packet to send [12:59:46]OFD Sender: No OFD packet to send [12:59:51]OFD Sender: No OFD packet to send [12:59:56]OFD Sender: No OFD packet to send [13:00:01]OFD Sender: No OFD packet to send [13:00:06]OFD Sender: No OFD packet to send [13:00:11]OFD Sender: No OFD packet to send [13:00:16]OFD Sender: No OFD packet to send [13:00:21]OFD Sender: No OFD packet to send [13:00:26]OFD Sender: No OFD packet to send [13:00:31]OFD Sender: No OFD packet to send [13:00:36]OFD Sender: No OFD packet to send [13:00:41]OFD Sender: No OFD packet to send [13:00:46]OFD Sender: No OFD packet to send [13:00:47]accept exits with 9 [13:00:47]New connection [13:00:47]New thread 3066690916 created [13:00:47]Thread 3066834276 joined [13:00:47]Waiting for new connection... [13:00:47] Sock 9.Parse request [13:00:47]Sock 9.Check first char [13:00:47]Sock 9.First char is OK [13:00:47]request: POST /json_proto HTTP/1.0 [13:00:47]Method: POST [13:00:47]URL: /json_proto [13:00:47]Method is POST - this is cgi request [13:00:47]url: /json_proto [13:00:47]query_string will be loaded in cgi processing [13:00:47]execute_cgi json_proto POST (null) [13:00:47]execute_cgi path=json_proto method=POST [13:00:47]POST find Content-Length [13:00:47]Host: 172.17.63.195:8080 [13:00:47]Content-Length: 677 [13:00:47]Content-Type: application/json [13:00:47] [13:00:47]POST finish read [13:00:47]Found Content-Length = 677 [13:00:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:00:47]execute_script... [13:00: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)449226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:00:47]POST & json_proto [13:00:47]process_json_proto [13:00:47]json parsed OK: [13:00:47]protocol is kg_v1.0 [13:00:47]action value=close_receipt [13:00:47]process_action close_receipt [13:00:47]cmd_close_receipt [13:00:47]MH_GetDate [13:00:47]Write to MH i2c: F0 00 00 88 0F 86 [13:00:47]Write i2c OK [13:00:47]MH_I2C_Read... [13:00:47]Read from MH i2c: F0 [13:00:47]MH_I2C_Read... [13:00:47]Read from MH i2c: F0 09 00 [13:00:47]MH_I2C_Read... [13:00:47]Read from MH i2c: F0 09 00 88 0F 00 00 E8 1C 67 68 46 19 67 28 [13:00:47]GetLastDocTimeStamp 1729947474 [13:00:47]current date 1729947648 [13:00:47]FM_GetShiftState [13:00:47]SAM_PROTO_GetShiftState [13:00:47]wFMCommunicate request_size=4 [13:00:47]MH_SAM_APDU [13:00:47]CAPDU: 80 13 01 00 [13:00:47]Write to MH i2c: E2 08 00 89 0F 80 13 01 00 00 00 00 00 15 [13:00:47]Write i2c OK [13:00:47]MH_I2C_Read... [13:00:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:47]Read from MH i2c: E2 [13:00:47]MH_I2C_Read... [13:00:47]Read from MH i2c: E2 0E 00 [13:00:47]MH_I2C_Read... [13:00:47]Read from MH i2c: E2 0E 00 89 0F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 24 [13:00:47]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:00:47]wFMCommunicate OK [13:00:47]SAM_PROTO_GetShiftState done [13:00:47]FM_GetShiftState done [13:00:47]opened in 1729900879 [13:00:47]opened+sec_in_day 1729987279 [13:00:47]quantity*price = 20003 [13:00:47]sum+1 = 20004 [13:00:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 238 26.10.2024 13:00 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201476 ФПД: 206209070998398 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130048&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201476&fm=206209070998398&tin=02508201610067®Number=0000000000091777&sum=20000 [13:00:48]StoreToDocumentArchive [13:00:48]shift 543 fd 201476 [13:00:48]save to /storage/0543/doc_00201476 [13:00:48]save last doc name /storage/0543/doc_00201476 to /storage/kkm_last_doc_name [13:00:48]save OK [13:00:48]Clear old archive folders... [13:00:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:00:48]tlvbuf is 01F2FF80 [13:00:48]SAM_PROTO_ClearQueue [13:00:48]wFMCommunicate request_size=4 [13:00:48]MH_SAM_APDU [13:00:48]CAPDU: 80 09 00 00 [13:00:48]Write to MH i2c: E2 08 00 96 0F 80 09 00 00 00 00 00 00 17 [13:00:48]Write i2c OK [13:00:48]MH_I2C_Read... [13:00:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:48]Read from MH i2c: E2 [13:00:48]MH_I2C_Read... [13:00:48]Read from MH i2c: E2 03 00 [13:00:48]MH_I2C_Read... [13:00:48]Read from MH i2c: E2 03 00 96 0F 00 90 00 19 [13:00:48]RAPDU: 90 00 [13:00:48]wFMCommunicate OK [13:00:48]SAM_PROTO_ClearQueue done [13:00:48]KKMCreateOFDPacket [13:00:48]OFDProtocolAddRootSTLVToBuf [13:00:48]FM_MakeSignedData [13:00:48]FM_MakeSignedData [13:00:48]SAM_PROTO_SignData [13:00:48]wFMCommunicate request_size=4 [13:00:48]MH_SAM_APDU [13:00:48]CAPDU: 80 0D 01 02 [13:00:48]Write to MH i2c: E2 08 00 97 0F 80 0D 01 02 00 00 00 00 1F [13:00:48]Write i2c OK [13:00:48]MH_I2C_Read... [13:00:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:48]Read from MH i2c: E2 [13:00:48]MH_I2C_Read... [13:00:48]Read from MH i2c: E2 03 00 [13:00:48]MH_I2C_Read... [13:00:48]Read from MH i2c: E2 03 00 97 0F 00 90 00 1A [13:00:48]RAPDU: 90 00 [13:00:48]wFMCommunicate OK [13:00:48]wFMCommunicate request_size=255 [13:00:48]MH_SAM_APDU [13:00: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 32 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 EE 00 00 00 F4 03 04 00 00 E8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 04 13 03 00 35 04 06 00 BB [13:00:48]Write to MH i2c: E2 02 01 98 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 32 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 EE 00 00 00 F4 03 04 00 00 E8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 04 13 03 00 35 04 06 00 BB 00 00 C4 [13:00:48]Write i2c OK [13:00:48]MH_I2C_Read... [13:00:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:49]Read from MH i2c: E2 [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: E2 03 00 [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: E2 03 00 98 0F 00 90 00 1B [13:00:49]RAPDU: 90 00 [13:00:49]wFMCommunicate OK [13:00:49]wFMCommunicate request_size=10 [13:00:49]MH_SAM_APDU [13:00:49]CAPDU: 80 0D 02 02 05 8B CA 6D 23 7E [13:00:49]Write to MH i2c: E2 0D 00 99 0F 80 0D 02 02 05 00 8B CA 6D 23 7E 00 00 8F [13:00:49]Write i2c OK [13:00:49]MH_I2C_Read... [13:00:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:49]Read from MH i2c: E2 [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: E2 03 00 [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: E2 03 00 99 0F 00 90 00 1C [13:00:49]RAPDU: 90 00 [13:00:49]wFMCommunicate OK [13:00:49]wFMCommunicate request_size=4 [13:00:49]MH_SAM_APDU [13:00:49]CAPDU: 80 0D 03 02 [13:00:49]Write to MH i2c: E2 08 00 9A 0F 80 0D 03 02 00 00 00 00 24 [13:00:49]Write i2c OK [13:00:49]MH_I2C_Read... [13:00:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:49]Read from MH i2c: E2 [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: E2 0B 00 [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: E2 0B 00 9A 0F 00 3D B5 77 F6 62 8C 05 DD 90 00 54 [13:00:49]RAPDU: 3D B5 77 F6 62 8C 05 DD 90 00 [13:00:49]wFMCommunicate OK [13:00:49]SAM_PROTO_SignData done [13:00:49]FM_MakeSignedData done [13:00:49]CreateOFDProtocolMessage [13:00:49]wFMCommunicate request_size=4 [13:00:49]MH_SAM_APDU [13:00:49]CAPDU: 80 11 00 00 [13:00:49]Write to MH i2c: E2 08 00 9B 0F 80 11 00 00 00 00 00 00 24 [13:00:49]Write i2c OK [13:00:49]MH_I2C_Read... [13:00:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:49]Read from MH i2c: E2 [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: E2 17 00 [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: E2 17 00 9B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 79 [13:00:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:00:49]wFMCommunicate OK [13:00:49]CreateOFDProtocolMessage done [13:00:49]OFDSenderStorePacket 201476 [13:00:49]StoreOFDPacket docnum=201476 [13:00:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C1 31 07 01 EE 92 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 32 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 EE 00 00 00 F4 03 04 00 00 E8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 04 13 03 00 35 04 06 00 BB 8B CA 6D 23 7E 3D B5 77 F6 62 8C 05 DD [13:00:49]CheckFolder [13:00:49]dirname=/storage/ofd_packets [13:00:49]CheckFolder done [13:00:49]ProducePacketName [13:00:49]name=ofd_packets/00201476 [13:00:49]NVStorageSaveData ofd_packets/00201476 [13:00:49]File name is /storage/ofd_packets/00201476 [13:00:49]Write 301 bytes [13:00:49]NVStorageSaveData done [13:00:49]OFDSenderStorePacket done [13:00:49]KKMCreateOFDPacket done [13:00:49]NVStorageSaveData kkm_last_timestamp [13:00:49]File name is /storage/kkm_last_timestamp [13:00:49]Write 4 bytes [13:00:49]NVStorageSaveData done [13:00:49]ExternCall_PrintAddStr [13:00:49]wPrintStart [13:00:49]Write to MH i2c: 01 00 00 9C 0F AB [13:00:49]Write i2c OK [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: 01 [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: 01 07 00 [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: 01 07 00 9C 0F 00 00 00 00 00 FF 0F C0 [13:00:49]RasterBufferAndPrint [13:00:49]line Счет N : (1)449226 [13:00:49]line ИНН: 02508201610067 [13:00:49]line Контрольно-Кассовый Чек [13:00:49]line ПРОДАЖА [13:00:49]line ТРК (МРК, ГНК) : 52 [13:00:49]line Товар: 2710124130 [13:00:49]line Аи-92-К-2 [13:00:49]line 2.990 * 66.90 [13:00:49]line = 200.03 [13:00:49]line НДС 12% НСП 1% [13:00:49]line > о реализуемом товаре [13:00:49]line ОКРУГЛЕНИЕ: -0.03 [13:00:49]line ИТОГО: 200.00 [13:00:49]line Внесено: 200.00 [13:00:49]line СДАЧА: 0.00 [13:00:49]line НСП 1% : 1.77 [13:00:49]line НДС 12% : 21.24 [13:00:49]line Наличными: 200.00 [13:00:49]line Безнал.: 0.00 [13:00:49]line Место: АЗС № 171 "Партнер Нефть" [13:00:49]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:00:49]line СНО: Общий режим [13:00:49]line Чек 238 26.10.2024 13:00 [13:00:49]line Смена: 543 ФФД: 1.0 [13:00:49]line ЗНМ: 0300000109 [13:00:49]line РНМ: 0000000000091777 [13:00:49]line Версия ККМ: 001 [13:00:49]line ФМ: 0000000000871756 [13:00:49]line ФД: 201476 [13:00:49]line ФПД: 206209070998398 [13:00:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130048&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201476&fm=206209070998398&tin=02508201610067®Number=0000000000091777&sum=20000 [13:00:49]OFD Sender: Processing packet 201476 [packets to send 112, broken 111] [13:00:49]ProducePacketName [13:00:49]name=ofd_packets/00201476 [13:00:49]OFD Sender: To server: pG, [13:00:49]CommunicateWithHost lk.salyk.kg:30040 [13:00:49]ConnectInit lk.salyk.kg [13:00:49]written 0, free lines is 4095 [13:00:49]Connected sock=10 [13:00:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C1 31 07 01 EE 92 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 32 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 EE 00 00 00 F4 03 04 00 00 E8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 04 13 03 00 35 04 06 00 BB 8B CA 6D 23 7E 3D B5 77 F6 62 8C 05 DD [13:00:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A8 43 47 00 6E B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 04 13 03 00 F4 03 04 00 A9 93 1C 67 B6 04 01 00 00 C3 BA FB 27 06 C4 66 BB [13:00:49]CommunicateWithHost err = 0 [13:00:49]CheckOFDResponse [13:00:49]1017 (14) - 77093643461234 [13:00:49]1041 (16) - 0000000000871756 [13:00:49]1040 (4) - 201476 [13:00:49]1012 (4) - 26.10.2024 07:00 [13:00:49]1206 (1) - 0 [13:00:49]OFD Sender: Remove packet 201476 [13:00:49]ProducePacketName [13:00:49]name=ofd_packets/00201476 [13:00:49]NVStorageDeleteData [13:00:50]Write to MH i2c: 01 00 00 C7 0F D6 [13:00:50]Write i2c OK [13:00:50]MH_I2C_Read... [13:00:50]Read from MH i2c: 01 [13:00:50]MH_I2C_Read... [13:00:50]Read from MH i2c: 01 07 00 [13:00:50]MH_I2C_Read... [13:00:50]Read from MH i2c: 01 07 00 C7 0F 00 00 00 00 00 A3 0C 8C [13:00:50]RasterBufferAndPrint [13:00:50]line [13:00:50]line [13:00:50]line [13:00:50]line [13:00:50]line [13:00:50]written 0, free lines is 3241 [13:00:50]MH_Cut [13:00:50]Write to MH i2c: D1 01 00 CE 0F 01 AF [13:00:50]Write i2c OK [13:00:50]MH_I2C_Read... [13:00:50]Read from MH i2c: D1 [13:00:50]MH_I2C_Read... [13:00:50]Read from MH i2c: D1 01 00 [13:00:50]MH_I2C_Read... [13:00:50]Read from MH i2c: D1 01 00 CE 0F 00 AE [13:00:50]Write to MH i2c: 01 00 00 CF 0F DE [13:00:50]Write i2c OK [13:00:50]MH_I2C_Read... [13:00:50]OFD Sender: No OFD packet to send [13:00:50]*** Cut start [13:00:50]*** Purtial cut [13:00:50]*** Stage 1: CUTSNS_PIN = 1 [13:00:51]Read from MH i2c: 01 [13:00:51]MH_I2C_Read... [13:00:51]*** Stop cut motor [13:00:51]*** Cut end [13:00:51]Read from MH i2c: 01 07 00 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: 01 07 00 CF 0F 00 00 00 00 00 FF 0F F3 [13:00:51]process_action close_receipt done [13:00:51]requested_data is exist [13:00:51]produce_requested_data [13:00:51]requested_item fm.sn is exist - process it [13:00:51]wFMCommunicate request_size=4 [13:00:51]MH_SAM_APDU [13:00:51]CAPDU: 80 11 00 00 [13:00:51]Write to MH i2c: E2 08 00 D0 0F 80 11 00 00 00 00 00 00 59 [13:00:51]Write i2c OK [13:00:51]MH_I2C_Read... [13:00:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:51]Read from MH i2c: E2 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: E2 17 00 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: E2 17 00 D0 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AE [13:00:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:00:51]wFMCommunicate OK [13:00:51]requested_item fd.num is exist - process it [13:00:51]SAM_PROTO_GetFieldsCounters [13:00:51]wFMCommunicate request_size=4 [13:00:51]MH_SAM_APDU [13:00:51]CAPDU: 80 13 00 00 [13:00:51]Write to MH i2c: E2 08 00 D1 0F 80 13 00 00 00 00 00 00 5C [13:00:51]Write i2c OK [13:00:51]MH_I2C_Read... [13:00:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:51]Read from MH i2c: E2 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: E2 62 00 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: E2 62 00 D1 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 04 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [13:00:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 04 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:00:51]wFMCommunicate OK [13:00:51]SAM_PROTO_GetFieldsCounters done [13:00:51]requested_item shift.num is exist - process it [13:00:51]requested_item shift.opened is exist - process it [13:00:51]req_shift_opened [13:00:51]FM_GetShiftState [13:00:51]SAM_PROTO_GetShiftState [13:00:51]wFMCommunicate request_size=4 [13:00:51]MH_SAM_APDU [13:00:51]CAPDU: 80 13 01 00 [13:00:51]Write to MH i2c: E2 08 00 D2 0F 80 13 01 00 00 00 00 00 5E [13:00:51]Write i2c OK [13:00:51]MH_I2C_Read... [13:00:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:51]Read from MH i2c: E2 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: E2 0E 00 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: E2 0E 00 D2 0F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 6D [13:00:51]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:00:51]wFMCommunicate OK [13:00:51]SAM_PROTO_GetShiftState done [13:00:51]FM_GetShiftState done [13:00:51]req_shift_opened done [13:00:51]requested_item shift.open_date is exist - process it [13:00:51]req_shift_open_date [13:00:51]req_shift_open_date done [13:00:51]produce_requested_data done [13:00:51]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201476,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:00:51]process_action_free close_receipt [13:00:51]json_value_free [13:00:51]json_value_free done [13:00:51]process_json_proto returns [13:00:51]Send response to host [13:00:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201476,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:00:51]free response buf [13:00:51]execute_script done [13:00:51]execute_script returns [13:00:51]free content buf [13:00:51]Sock 9.Close socket [13:00:51]Sock 9.Thread stoped [13:00:55]OFD Sender: No OFD packet to send [13:01:00]OFD Sender: No OFD packet to send [13:01:05]OFD Sender: No OFD packet to send [13:01:10]OFD Sender: No OFD packet to send [13:01:15]OFD Sender: No OFD packet to send [13:01:20]OFD Sender: No OFD packet to send [13:01:25]OFD Sender: No OFD packet to send [13:01:30]OFD Sender: No OFD packet to send [13:01:35]OFD Sender: No OFD packet to send [13:01:40]OFD Sender: No OFD packet to send [13:01:45]OFD Sender: No OFD packet to send [13:01:50]OFD Sender: No OFD packet to send [13:01:55]OFD Sender: No OFD packet to send [13:02:00]OFD Sender: No OFD packet to send [13:02:05]OFD Sender: No OFD packet to send [13:02:10]OFD Sender: No OFD packet to send [13:02:15]OFD Sender: No OFD packet to send [13:02:20]OFD Sender: No OFD packet to send [13:02:25]OFD Sender: No OFD packet to send [13:02:30]OFD Sender: No OFD packet to send [13:02:35]OFD Sender: No OFD packet to send [13:02:40]OFD Sender: No OFD packet to send [13:02:45]OFD Sender: No OFD packet to send [13:02:50]OFD Sender: No OFD packet to send [13:02:55]OFD Sender: No OFD packet to send [13:02:58]accept exits with 8 [13:02:58]New connection [13:02:58]New thread 3066834276 created [13:02:58]Thread 3066690916 joined [13:02:58]Waiting for new connection... [13:02:58] Sock 8.Parse request [13:02:58]Sock 8.Check first char [13:02:58]Sock 8.First char is OK [13:02:58]request: POST /json_proto HTTP/1.0 [13:02:58]Method: POST [13:02:58]URL: /json_proto [13:02:58]Method is POST - this is cgi request [13:02:58]url: /json_proto [13:02:58]query_string will be loaded in cgi processing [13:02:58]execute_cgi json_proto POST (null) [13:02:58]execute_cgi path=json_proto method=POST [13:02:58]POST find Content-Length [13:02:58]Host: 172.17.63.195:8080 [13:02:58]Content-Length: 677 [13:02:58]Content-Type: application/json [13:02:58] [13:02:58]POST finish read [13:02:58]Found Content-Length = 677 [13:02:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:02:58]execute_script... [13:02:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:02:58]POST & json_proto [13:02:58]process_json_proto [13:02:58]json parsed OK: [13:02:58]protocol is kg_v1.0 [13:02:58]action value=close_receipt [13:02:58]process_action close_receipt [13:02:58]cmd_close_receipt [13:02:58]MH_GetDate [13:02:58]Write to MH i2c: F0 00 00 D3 0F D1 [13:02:58]Write i2c OK [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: F0 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: F0 09 00 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: F0 09 00 D3 0F 00 82 E8 1C 67 68 46 19 67 F5 [13:02:58]GetLastDocTimeStamp 1729947648 [13:02:58]current date 1729947778 [13:02:58]FM_GetShiftState [13:02:58]SAM_PROTO_GetShiftState [13:02:58]wFMCommunicate request_size=4 [13:02:58]MH_SAM_APDU [13:02:58]CAPDU: 80 13 01 00 [13:02:58]Write to MH i2c: E2 08 00 D4 0F 80 13 01 00 00 00 00 00 60 [13:02:58]Write i2c OK [13:02:58]MH_I2C_Read... [13:02:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:58]Read from MH i2c: E2 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: E2 0E 00 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: E2 0E 00 D4 0F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 6F [13:02:58]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:02:58]wFMCommunicate OK [13:02:58]SAM_PROTO_GetShiftState done [13:02:58]FM_GetShiftState done [13:02:58]opened in 1729900879 [13:02:58]opened+sec_in_day 1729987279 [13:02:58]quantity*price = 50041 [13:02:58]sum+1 = 50042 [13:02:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 239 26.10.2024 13:02 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201477 ФПД: 196655921322514 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130258&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201477&fm=196655921322514&tin=02508201610067®Number=0000000000091777&sum=50000 [13:02:59]StoreToDocumentArchive [13:02:59]shift 543 fd 201477 [13:02:59]save to /storage/0543/doc_00201477 [13:02:59]save last doc name /storage/0543/doc_00201477 to /storage/kkm_last_doc_name [13:02:59]save OK [13:02:59]Clear old archive folders... [13:02:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:02:59]tlvbuf is 01F3C810 [13:02:59]SAM_PROTO_ClearQueue [13:02:59]wFMCommunicate request_size=4 [13:02:59]MH_SAM_APDU [13:02:59]CAPDU: 80 09 00 00 [13:02:59]Write to MH i2c: E2 08 00 E1 0F 80 09 00 00 00 00 00 00 62 [13:02:59]Write i2c OK [13:02:59]MH_I2C_Read... [13:02:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:59]Read from MH i2c: E2 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 03 00 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 03 00 E1 0F 00 90 00 64 [13:02:59]RAPDU: 90 00 [13:02:59]wFMCommunicate OK [13:02:59]SAM_PROTO_ClearQueue done [13:02:59]KKMCreateOFDPacket [13:02:59]OFDProtocolAddRootSTLVToBuf [13:02:59]FM_MakeSignedData [13:02:59]FM_MakeSignedData [13:02:59]SAM_PROTO_SignData [13:02:59]wFMCommunicate request_size=4 [13:02:59]MH_SAM_APDU [13:02:59]CAPDU: 80 0D 01 02 [13:02:59]Write to MH i2c: E2 08 00 E2 0F 80 0D 01 02 00 00 00 00 6A [13:02:59]Write i2c OK [13:02:59]MH_I2C_Read... [13:02:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:59]Read from MH i2c: E2 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 03 00 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 03 00 E2 0F 00 90 00 65 [13:02:59]RAPDU: 90 00 [13:02:59]wFMCommunicate OK [13:02:59]wFMCommunicate request_size=255 [13:02:59]MH_SAM_APDU [13:02: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 32 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 EF 00 00 00 F4 03 04 00 82 E8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 05 13 03 00 35 04 06 00 B2 [13:02:59]Write to MH i2c: E2 02 01 E3 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 32 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 EF 00 00 00 F4 03 04 00 82 E8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 05 13 03 00 35 04 06 00 B2 00 00 C8 [13:02:59]Write i2c OK [13:02:59]MH_I2C_Read... [13:02:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:59]Read from MH i2c: E2 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 03 00 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 03 00 E3 0F 00 90 00 66 [13:02:59]RAPDU: 90 00 [13:02:59]wFMCommunicate OK [13:02:59]wFMCommunicate request_size=10 [13:02:59]MH_SAM_APDU [13:02:59]CAPDU: 80 0D 02 02 05 DB 86 55 5A 12 [13:02:59]Write to MH i2c: E2 0D 00 E4 0F 80 0D 02 02 05 00 DB 86 55 5A 12 00 00 99 [13:02:59]Write i2c OK [13:02:59]MH_I2C_Read... [13:02:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:59]Read from MH i2c: E2 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 03 00 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 03 00 E4 0F 00 90 00 67 [13:02:59]RAPDU: 90 00 [13:02:59]wFMCommunicate OK [13:02:59]wFMCommunicate request_size=4 [13:02:59]MH_SAM_APDU [13:02:59]CAPDU: 80 0D 03 02 [13:02:59]Write to MH i2c: E2 08 00 E5 0F 80 0D 03 02 00 00 00 00 6F [13:02:59]Write i2c OK [13:02:59]MH_I2C_Read... [13:02:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:59]Read from MH i2c: E2 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 0B 00 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 0B 00 E5 0F 00 18 65 82 D1 18 74 BF F1 90 00 7C [13:02:59]RAPDU: 18 65 82 D1 18 74 BF F1 90 00 [13:02:59]wFMCommunicate OK [13:02:59]SAM_PROTO_SignData done [13:02:59]FM_MakeSignedData done [13:02:59]CreateOFDProtocolMessage [13:02:59]wFMCommunicate request_size=4 [13:02:59]MH_SAM_APDU [13:02:59]CAPDU: 80 11 00 00 [13:02:59]Write to MH i2c: E2 08 00 E6 0F 80 11 00 00 00 00 00 00 6F [13:02:59]Write i2c OK [13:02:59]MH_I2C_Read... [13:02:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:59]Read from MH i2c: E2 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 17 00 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 17 00 E6 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C4 [13:02:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:02:59]wFMCommunicate OK [13:02:59]CreateOFDProtocolMessage done [13:02:59]OFDSenderStorePacket 201477 [13:02:59]StoreOFDPacket docnum=201477 [13:02:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F8 61 07 01 E8 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 EF 00 00 00 F4 03 04 00 82 E8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 05 13 03 00 35 04 06 00 B2 DB 86 55 5A 12 18 65 82 D1 18 74 BF F1 [13:02:59]CheckFolder [13:02:59]dirname=/storage/ofd_packets [13:02:59]CheckFolder done [13:02:59]ProducePacketName [13:02:59]name=ofd_packets/00201477 [13:02:59]NVStorageSaveData ofd_packets/00201477 [13:02:59]File name is /storage/ofd_packets/00201477 [13:02:59]Write 301 bytes [13:02:59]NVStorageSaveData done [13:02:59]OFDSenderStorePacket done [13:02:59]KKMCreateOFDPacket done [13:02:59]NVStorageSaveData kkm_last_timestamp [13:02:59]File name is /storage/kkm_last_timestamp [13:02:59]Write 4 bytes [13:02:59]NVStorageSaveData done [13:02:59]ExternCall_PrintAddStr [13:02:59]wPrintStart [13:02:59]Write to MH i2c: 01 00 00 E7 0F F6 [13:02:59]Write i2c OK [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: 01 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: 01 07 00 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: 01 07 00 E7 0F 00 00 00 00 00 FF 0F 0B [13:02:59]RasterBufferAndPrint [13:02:59]line Счет N : (1)449227 [13:02:59]line ИНН: 02508201610067 [13:02:59]line Контрольно-Кассовый Чек [13:02:59]line ПРОДАЖА [13:02:59]line ТРК (МРК, ГНК) : 31 [13:02:59]line Товар: 2710124130 [13:02:59]line Аи-92-К-2 [13:02:59]line 7.480 * 66.90 [13:02:59]line = 500.41 [13:02:59]line НДС 12% НСП 1% [13:02:59]line > о реализуемом товаре [13:02:59]line ОКРУГЛЕНИЕ: -0.41 [13:02:59]line ИТОГО: 500.00 [13:02:59]line Внесено: 500.00 [13:02:59]line СДАЧА: 0.00 [13:02:59]line НСП 1% : 4.43 [13:02:59]line НДС 12% : 53.14 [13:02:59]line Наличными: 500.00 [13:02:59]line Безнал.: 0.00 [13:02:59]line Место: АЗС № 171 "Партнер Нефть" [13:02:59]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:02:59]line СНО: Общий режим [13:02:59]line Чек 239 26.10.2024 13:02 [13:02:59]line Смена: 543 ФФД: 1.0 [13:02:59]line ЗНМ: 0300000109 [13:02:59]line РНМ: 0000000000091777 [13:02:59]line Версия ККМ: 001 [13:02:59]line ФМ: 0000000000871756 [13:02:59]line ФД: 201477 [13:02:59]line ФПД: 196655921322514 [13:02:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130258&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201477&fm=196655921322514&tin=02508201610067®Number=0000000000091777&sum=50000 [13:03:00]OFD Sender: Processing packet 201477 [packets to send 112, broken 111] [13:03:00]ProducePacketName [13:03:00]name=ofd_packets/00201477 [13:03:00]OFD Sender: To server: pG, [13:03:00]CommunicateWithHost lk.salyk.kg:30040 [13:03:00]ConnectInit lk.salyk.kg [13:03:00]written 0, free lines is 4095 [13:03:00]Connected sock=10 [13:03:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F8 61 07 01 E8 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 EF 00 00 00 F4 03 04 00 82 E8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 05 13 03 00 35 04 06 00 B2 DB 86 55 5A 12 18 65 82 D1 18 74 BF F1 [13:03:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 98 02 47 00 D0 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 05 13 03 00 F4 03 04 00 2B 94 1C 67 B6 04 01 00 00 86 82 38 D7 AE AF 25 BA [13:03:00]CommunicateWithHost err = 0 [13:03:00]CheckOFDResponse [13:03:00]1017 (14) - 77093643461234 [13:03:00]1041 (16) - 0000000000871756 [13:03:00]1040 (4) - 201477 [13:03:00]1012 (4) - 26.10.2024 07:03 [13:03:00]1206 (1) - 0 [13:03:00]OFD Sender: Remove packet 201477 [13:03:00]ProducePacketName [13:03:00]name=ofd_packets/00201477 [13:03:00]NVStorageDeleteData [13:03:00]Write to MH i2c: 01 00 00 12 10 22 [13:03:00]Write i2c OK [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: 01 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: 01 07 00 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: 01 07 00 12 10 00 00 00 00 00 AC 0C E1 [13:03:00]RasterBufferAndPrint [13:03:00]line [13:03:00]line [13:03:00]line [13:03:00]line [13:03:00]line [13:03:00]written 0, free lines is 3252 [13:03:00]MH_Cut [13:03:00]Write to MH i2c: D1 01 00 19 10 01 FB [13:03:00]Write i2c OK [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: D1 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: D1 01 00 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: D1 01 00 19 10 00 FA [13:03:00]Write to MH i2c: 01 00 00 1A 10 2A [13:03:00]Write i2c OK [13:03:00]MH_I2C_Read... [13:03:01]OFD Sender: No OFD packet to send [13:03:01]*** Cut start [13:03:01]*** Purtial cut [13:03:01]*** Stage 1: CUTSNS_PIN = 1 [13:03:01]Read from MH i2c: 01 [13:03:01]MH_I2C_Read... [13:03:01]*** Stop cut motor [13:03:01]*** Cut end [13:03:01]Read from MH i2c: 01 07 00 [13:03:01]MH_I2C_Read... [13:03:01]Read from MH i2c: 01 07 00 1A 10 00 00 00 00 00 FF 0F 3F [13:03:01]process_action close_receipt done [13:03:01]requested_data is exist [13:03:01]produce_requested_data [13:03:01]requested_item fm.sn is exist - process it [13:03:01]wFMCommunicate request_size=4 [13:03:01]MH_SAM_APDU [13:03:01]CAPDU: 80 11 00 00 [13:03:01]Write to MH i2c: E2 08 00 1B 10 80 11 00 00 00 00 00 00 A5 [13:03:01]Write i2c OK [13:03:01]MH_I2C_Read... [13:03:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:01]Read from MH i2c: E2 [13:03:01]MH_I2C_Read... [13:03:01]Read from MH i2c: E2 17 00 [13:03:01]MH_I2C_Read... [13:03:01]Read from MH i2c: E2 17 00 1B 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FA [13:03:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:03:01]wFMCommunicate OK [13:03:01]requested_item fd.num is exist - process it [13:03:01]SAM_PROTO_GetFieldsCounters [13:03:01]wFMCommunicate request_size=4 [13:03:01]MH_SAM_APDU [13:03:01]CAPDU: 80 13 00 00 [13:03:01]Write to MH i2c: E2 08 00 1C 10 80 13 00 00 00 00 00 00 A8 [13:03:01]Write i2c OK [13:03:01]MH_I2C_Read... [13:03:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:01]Read from MH i2c: E2 [13:03:01]MH_I2C_Read... [13:03:01]Read from MH i2c: E2 62 00 [13:03:01]MH_I2C_Read... [13:03:01]Read from MH i2c: E2 62 00 1C 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 05 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [13:03:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 05 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:03:01]wFMCommunicate OK [13:03:01]SAM_PROTO_GetFieldsCounters done [13:03:01]requested_item shift.num is exist - process it [13:03:01]requested_item shift.opened is exist - process it [13:03:01]req_shift_opened [13:03:01]FM_GetShiftState [13:03:01]SAM_PROTO_GetShiftState [13:03:01]wFMCommunicate request_size=4 [13:03:01]MH_SAM_APDU [13:03:01]CAPDU: 80 13 01 00 [13:03:01]Write to MH i2c: E2 08 00 1D 10 80 13 01 00 00 00 00 00 AA [13:03:01]Write i2c OK [13:03:01]MH_I2C_Read... [13:03:01]Read from MH i2c: E2 [13:03:01]MH_I2C_Read... [13:03:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:01]Read from MH i2c: E2 0E 00 [13:03:01]MH_I2C_Read... [13:03:01]Read from MH i2c: E2 0E 00 1D 10 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 B9 [13:03:01]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:03:01]wFMCommunicate OK [13:03:01]SAM_PROTO_GetShiftState done [13:03:01]FM_GetShiftState done [13:03:01]req_shift_opened done [13:03:01]requested_item shift.open_date is exist - process it [13:03:01]req_shift_open_date [13:03:01]req_shift_open_date done [13:03:01]produce_requested_data done [13:03:01]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201477,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:03:01]process_action_free close_receipt [13:03:01]json_value_free [13:03:01]json_value_free done [13:03:01]process_json_proto returns [13:03:02]Send response to host [13:03:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201477,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:03:02]free response buf [13:03:02]execute_script done [13:03:02]execute_script returns [13:03:02]free content buf [13:03:02]Sock 8.Close socket [13:03:02]Sock 8.Thread stoped [13:03:06]OFD Sender: No OFD packet to send [13:03:11]OFD Sender: No OFD packet to send [13:03:12]accept exits with 9 [13:03:12]New connection [13:03:12]New thread 3066690916 created [13:03:12]Thread 3066834276 joined [13:03:12]Waiting for new connection... [13:03:12] Sock 9.Parse request [13:03:12]Sock 9.Check first char [13:03:12]Sock 9.First char is OK [13:03:12]request: POST /json_proto HTTP/1.0 [13:03:12]Method: POST [13:03:12]URL: /json_proto [13:03:12]Method is POST - this is cgi request [13:03:12]url: /json_proto [13:03:12]query_string will be loaded in cgi processing [13:03:12]execute_cgi json_proto POST (null) [13:03:12]execute_cgi path=json_proto method=POST [13:03:12]POST find Content-Length [13:03:12]Host: 172.17.63.195:8080 [13:03:12]Content-Length: 677 [13:03:12]Content-Type: application/json [13:03:12] [13:03:12]POST finish read [13:03:12]Found Content-Length = 677 [13:03:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:12]execute_script... [13:03:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:12]POST & json_proto [13:03:12]process_json_proto [13:03:12]json parsed OK: [13:03:12]protocol is kg_v1.0 [13:03:12]action value=close_receipt [13:03:12]process_action close_receipt [13:03:12]cmd_close_receipt [13:03:12]MH_GetDate [13:03:12]Write to MH i2c: F0 00 00 1E 10 1D [13:03:12]Write i2c OK [13:03:12]MH_I2C_Read... [13:03:12]Read from MH i2c: F0 [13:03:12]MH_I2C_Read... [13:03:12]Read from MH i2c: F0 09 00 [13:03:12]MH_I2C_Read... [13:03:12]Read from MH i2c: F0 09 00 1E 10 00 90 E8 1C 67 68 46 19 67 4F [13:03:12]GetLastDocTimeStamp 1729947778 [13:03:12]current date 1729947792 [13:03:12]FM_GetShiftState [13:03:12]SAM_PROTO_GetShiftState [13:03:12]wFMCommunicate request_size=4 [13:03:12]MH_SAM_APDU [13:03:12]CAPDU: 80 13 01 00 [13:03:12]Write to MH i2c: E2 08 00 1F 10 80 13 01 00 00 00 00 00 AC [13:03:12]Write i2c OK [13:03:12]MH_I2C_Read... [13:03:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:12]Read from MH i2c: E2 [13:03:12]MH_I2C_Read... [13:03:12]Read from MH i2c: E2 0E 00 [13:03:12]MH_I2C_Read... [13:03:12]Read from MH i2c: E2 0E 00 1F 10 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 BB [13:03:12]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:03:12]wFMCommunicate OK [13:03:12]SAM_PROTO_GetShiftState done [13:03:12]FM_GetShiftState done [13:03:12]opened in 1729900879 [13:03:12]opened+sec_in_day 1729987279 [13:03:12]quantity*price = 30038 [13:03:12]sum+1 = 30039 [13:03:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 240 26.10.2024 13:03 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201478 ФПД: 225647124123929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130313&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201478&fm=225647124123929&tin=02508201610067®Number=0000000000091777&sum=30000 [13:03:13]StoreToDocumentArchive [13:03:13]shift 543 fd 201478 [13:03:13]save to /storage/0543/doc_00201478 [13:03:13]save last doc name /storage/0543/doc_00201478 to /storage/kkm_last_doc_name [13:03:13]save OK [13:03:13]Clear old archive folders... [13:03:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:03:13]tlvbuf is 01F37BF0 [13:03:13]SAM_PROTO_ClearQueue [13:03:13]wFMCommunicate request_size=4 [13:03:13]MH_SAM_APDU [13:03:13]CAPDU: 80 09 00 00 [13:03:13]Write to MH i2c: E2 08 00 2C 10 80 09 00 00 00 00 00 00 AE [13:03:13]Write i2c OK [13:03:13]MH_I2C_Read... [13:03:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:13]Read from MH i2c: E2 [13:03:13]MH_I2C_Read... [13:03:13]Read from MH i2c: E2 03 00 [13:03:13]MH_I2C_Read... [13:03:13]Read from MH i2c: E2 03 00 2C 10 00 90 00 B0 [13:03:13]RAPDU: 90 00 [13:03:13]wFMCommunicate OK [13:03:13]SAM_PROTO_ClearQueue done [13:03:13]KKMCreateOFDPacket [13:03:13]OFDProtocolAddRootSTLVToBuf [13:03:13]FM_MakeSignedData [13:03:13]FM_MakeSignedData [13:03:13]SAM_PROTO_SignData [13:03:13]wFMCommunicate request_size=4 [13:03:13]MH_SAM_APDU [13:03:13]CAPDU: 80 0D 01 02 [13:03:13]Write to MH i2c: E2 08 00 2D 10 80 0D 01 02 00 00 00 00 B6 [13:03:13]Write i2c OK [13:03:13]MH_I2C_Read... [13:03:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:13]Read from MH i2c: E2 [13:03:13]MH_I2C_Read... [13:03:13]Read from MH i2c: E2 03 00 [13:03:13]MH_I2C_Read... [13:03:13]Read from MH i2c: E2 03 00 2D 10 00 90 00 B1 [13:03:13]RAPDU: 90 00 [13:03:13]wFMCommunicate OK [13:03:13]wFMCommunicate request_size=255 [13:03:13]MH_SAM_APDU [13:03: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 91 E8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 06 13 03 00 35 04 06 00 CD [13:03:13]Write to MH i2c: E2 02 01 2E 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 91 E8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 06 13 03 00 35 04 06 00 CD 00 00 34 [13:03:13]Write i2c OK [13:03:13]MH_I2C_Read... [13:03:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:13]Read from MH i2c: E2 [13:03:13]MH_I2C_Read... [13:03:13]Read from MH i2c: E2 03 00 [13:03:13]MH_I2C_Read... [13:03:13]Read from MH i2c: E2 03 00 2E 10 00 90 00 B2 [13:03:13]RAPDU: 90 00 [13:03:13]wFMCommunicate OK [13:03:13]wFMCommunicate request_size=10 [13:03:13]MH_SAM_APDU [13:03:13]CAPDU: 80 0D 02 02 05 39 90 AD 91 19 [13:03:13]Write to MH i2c: E2 0D 00 2F 10 80 0D 02 02 05 00 39 90 AD 91 19 00 00 E3 [13:03:13]Write i2c OK [13:03:13]MH_I2C_Read... [13:03:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:13]Read from MH i2c: E2 [13:03:13]MH_I2C_Read... [13:03:13]Read from MH i2c: E2 03 00 [13:03:13]MH_I2C_Read... [13:03:13]Read from MH i2c: E2 03 00 2F 10 00 90 00 B3 [13:03:13]RAPDU: 90 00 [13:03:13]wFMCommunicate OK [13:03:13]wFMCommunicate request_size=4 [13:03:13]MH_SAM_APDU [13:03:13]CAPDU: 80 0D 03 02 [13:03:13]Write to MH i2c: E2 08 00 30 10 80 0D 03 02 00 00 00 00 BB [13:03:13]Write i2c OK [13:03:13]MH_I2C_Read... [13:03:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:13]Read from MH i2c: E2 [13:03:13]MH_I2C_Read... [13:03:13]Read from MH i2c: E2 0B 00 [13:03:13]MH_I2C_Read... [13:03:13]Read from MH i2c: E2 0B 00 30 10 00 C1 CA 96 60 62 CC 55 A9 90 00 69 [13:03:13]RAPDU: C1 CA 96 60 62 CC 55 A9 90 00 [13:03:13]wFMCommunicate OK [13:03:13]SAM_PROTO_SignData done [13:03:13]FM_MakeSignedData done [13:03:13]CreateOFDProtocolMessage [13:03:13]wFMCommunicate request_size=4 [13:03:13]MH_SAM_APDU [13:03:13]CAPDU: 80 11 00 00 [13:03:13]Write to MH i2c: E2 08 00 31 10 80 11 00 00 00 00 00 00 BB [13:03:13]Write i2c OK [13:03:13]MH_I2C_Read... [13:03:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:13]Read from MH i2c: E2 [13:03:13]MH_I2C_Read... [13:03:13]Read from MH i2c: E2 17 00 [13:03:13]MH_I2C_Read... [13:03:13]Read from MH i2c: E2 17 00 31 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 10 [13:03:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:03:13]wFMCommunicate OK [13:03:13]CreateOFDProtocolMessage done [13:03:13]OFDSenderStorePacket 201478 [13:03:13]StoreOFDPacket docnum=201478 [13:03:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 57 31 07 01 AB C8 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 91 E8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 06 13 03 00 35 04 06 00 CD 39 90 AD 91 19 C1 CA 96 60 62 CC 55 A9 [13:03:13]CheckFolder [13:03:13]dirname=/storage/ofd_packets [13:03:13]CheckFolder done [13:03:13]ProducePacketName [13:03:13]name=ofd_packets/00201478 [13:03:13]NVStorageSaveData ofd_packets/00201478 [13:03:13]File name is /storage/ofd_packets/00201478 [13:03:13]Write 301 bytes [13:03:13]NVStorageSaveData done [13:03:13]OFDSenderStorePacket done [13:03:13]KKMCreateOFDPacket done [13:03:13]NVStorageSaveData kkm_last_timestamp [13:03:13]File name is /storage/kkm_last_timestamp [13:03:13]Write 4 bytes [13:03:13]NVStorageSaveData done [13:03:13]ExternCall_PrintAddStr [13:03:13]wPrintStart [13:03:13]Write to MH i2c: 01 00 00 32 10 42 [13:03:13]Write i2c OK [13:03:13]MH_I2C_Read... [13:03:13]Read from MH i2c: 01 [13:03:13]MH_I2C_Read... [13:03:13]Read from MH i2c: 01 07 00 [13:03:13]MH_I2C_Read... [13:03:13]Read from MH i2c: 01 07 00 32 10 00 00 00 00 00 FF 0F 57 [13:03:13]RasterBufferAndPrint [13:03:13]line Счет N : (1)449228 [13:03:13]line ИНН: 02508201610067 [13:03:13]line Контрольно-Кассовый Чек [13:03:13]line ПРОДАЖА [13:03:13]line ТРК (МРК, ГНК) : 41 [13:03:13]line Товар: 2710124130 [13:03:13]line Аи-92-К-2 [13:03:13]line 4.490 * 66.90 [13:03:13]line = 300.38 [13:03:13]line НДС 12% НСП 1% [13:03:13]line > о реализуемом товаре [13:03:13]line ОКРУГЛЕНИЕ: -0.38 [13:03:13]line ИТОГО: 300.00 [13:03:13]line Внесено: 300.00 [13:03:13]line СДАЧА: 0.00 [13:03:13]line НСП 1% : 2.66 [13:03:13]line НДС 12% : 31.90 [13:03:13]line Наличными: 300.00 [13:03:13]line Безнал.: 0.00 [13:03:13]line Место: АЗС № 171 "Партнер Нефть" [13:03:13]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:03:13]line СНО: Общий режим [13:03:13]line Чек 240 26.10.2024 13:03 [13:03:13]line Смена: 543 ФФД: 1.0 [13:03:13]line ЗНМ: 0300000109 [13:03:13]line РНМ: 0000000000091777 [13:03:13]line Версия ККМ: 001 [13:03:13]line ФМ: 0000000000871756 [13:03:13]line ФД: 201478 [13:03:13]line ФПД: 225647124123929 [13:03:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130313&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201478&fm=225647124123929&tin=02508201610067®Number=0000000000091777&sum=30000 [13:03:14]OFD Sender: Processing packet 201478 [packets to send 112, broken 111] [13:03:14]ProducePacketName [13:03:14]name=ofd_packets/00201478 [13:03:14]OFD Sender: To server: pG, [13:03:14]CommunicateWithHost lk.salyk.kg:30040 [13:03:14]ConnectInit lk.salyk.kg [13:03:14]written 0, free lines is 4095 [13:03:14]Connected sock=10 [13:03:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 57 31 07 01 AB C8 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 91 E8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 06 13 03 00 35 04 06 00 CD 39 90 AD 91 19 C1 CA 96 60 62 CC 55 A9 [13:03:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 25 2A 47 00 2C 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 06 13 03 00 F4 03 04 00 3A 94 1C 67 B6 04 01 00 00 23 7D 62 F8 FA BC 84 3A [13:03:14]CommunicateWithHost err = 0 [13:03:14]CheckOFDResponse [13:03:14]1017 (14) - 77093643461234 [13:03:14]1041 (16) - 0000000000871756 [13:03:14]1040 (4) - 201478 [13:03:14]1012 (4) - 26.10.2024 07:03 [13:03:14]1206 (1) - 0 [13:03:14]OFD Sender: Remove packet 201478 [13:03:14]ProducePacketName [13:03:14]name=ofd_packets/00201478 [13:03:14]NVStorageDeleteData [13:03:14]Write to MH i2c: 01 00 00 5D 10 6D [13:03:14]Write i2c OK [13:03:14]MH_I2C_Read... [13:03:14]Read from MH i2c: 01 [13:03:14]MH_I2C_Read... [13:03:14]Read from MH i2c: 01 07 00 [13:03:14]MH_I2C_Read... [13:03:14]Read from MH i2c: 01 07 00 5D 10 00 00 00 00 00 AC 0C 2C [13:03:14]RasterBufferAndPrint [13:03:14]line [13:03:14]line [13:03:14]line [13:03:14]line [13:03:14]line [13:03:14]written 0, free lines is 3251 [13:03:14]MH_Cut [13:03:14]Write to MH i2c: D1 01 00 64 10 01 46 [13:03:14]Write i2c OK [13:03:14]MH_I2C_Read... [13:03:14]Read from MH i2c: D1 [13:03:14]MH_I2C_Read... [13:03:14]Read from MH i2c: D1 01 00 [13:03:14]MH_I2C_Read... [13:03:14]Read from MH i2c: D1 01 00 64 10 00 45 [13:03:14]Write to MH i2c: 01 00 00 65 10 75 [13:03:14]Write i2c OK [13:03:14]MH_I2C_Read... [13:03:15]OFD Sender: No OFD packet to send [13:03:15]*** Cut start [13:03:15]*** Purtial cut [13:03:15]*** Stage 1: CUTSNS_PIN = 1 [13:03:15]Read from MH i2c: 01 [13:03:15]MH_I2C_Read... [13:03:15]*** Stop cut motor [13:03:15]*** Cut end [13:03:15]Read from MH i2c: 01 07 00 [13:03:15]MH_I2C_Read... [13:03:15]Read from MH i2c: 01 07 00 65 10 00 00 00 00 00 FF 0F 8A [13:03:15]process_action close_receipt done [13:03:15]requested_data is exist [13:03:15]produce_requested_data [13:03:15]requested_item fm.sn is exist - process it [13:03:15]wFMCommunicate request_size=4 [13:03:15]MH_SAM_APDU [13:03:15]CAPDU: 80 11 00 00 [13:03:15]Write to MH i2c: E2 08 00 66 10 80 11 00 00 00 00 00 00 F0 [13:03:15]Write i2c OK [13:03:15]MH_I2C_Read... [13:03:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:15]Read from MH i2c: E2 [13:03:15]MH_I2C_Read... [13:03:15]Read from MH i2c: E2 17 00 [13:03:15]MH_I2C_Read... [13:03:15]Read from MH i2c: E2 17 00 66 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 45 [13:03:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:03:15]wFMCommunicate OK [13:03:15]requested_item fd.num is exist - process it [13:03:15]SAM_PROTO_GetFieldsCounters [13:03:15]wFMCommunicate request_size=4 [13:03:15]MH_SAM_APDU [13:03:15]CAPDU: 80 13 00 00 [13:03:15]Write to MH i2c: E2 08 00 67 10 80 13 00 00 00 00 00 00 F3 [13:03:15]Write i2c OK [13:03:15]MH_I2C_Read... [13:03:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:15]Read from MH i2c: E2 [13:03:15]MH_I2C_Read... [13:03:15]Read from MH i2c: E2 62 00 [13:03:15]MH_I2C_Read... [13:03:15]Read from MH i2c: E2 62 00 67 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 06 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [13:03:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 06 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:03:15]wFMCommunicate OK [13:03:15]SAM_PROTO_GetFieldsCounters done [13:03:15]requested_item shift.num is exist - process it [13:03:15]requested_item shift.opened is exist - process it [13:03:15]req_shift_opened [13:03:15]FM_GetShiftState [13:03:15]SAM_PROTO_GetShiftState [13:03:15]wFMCommunicate request_size=4 [13:03:15]MH_SAM_APDU [13:03:15]CAPDU: 80 13 01 00 [13:03:15]Write to MH i2c: E2 08 00 68 10 80 13 01 00 00 00 00 00 F5 [13:03:15]Write i2c OK [13:03:15]MH_I2C_Read... [13:03:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:16]Read from MH i2c: E2 [13:03:16]MH_I2C_Read... [13:03:16]Read from MH i2c: E2 0E 00 [13:03:16]MH_I2C_Read... [13:03:16]Read from MH i2c: E2 0E 00 68 10 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 04 [13:03:16]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:03:16]wFMCommunicate OK [13:03:16]SAM_PROTO_GetShiftState done [13:03:16]FM_GetShiftState done [13:03:16]req_shift_opened done [13:03:16]requested_item shift.open_date is exist - process it [13:03:16]req_shift_open_date [13:03:16]req_shift_open_date done [13:03:16]produce_requested_data done [13:03:16]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201478,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:03:16]process_action_free close_receipt [13:03:16]json_value_free [13:03:16]json_value_free done [13:03:16]process_json_proto returns [13:03:16]Send response to host [13:03:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201478,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:03:16]free response buf [13:03:16]execute_script done [13:03:16]execute_script returns [13:03:16]free content buf [13:03:16]Sock 9.Close socket [13:03:16]Sock 9.Thread stoped [13:03:20]OFD Sender: No OFD packet to send [13:03:25]OFD Sender: No OFD packet to send [13:03:30]OFD Sender: No OFD packet to send [13:03:35]OFD Sender: No OFD packet to send [13:03:40]OFD Sender: No OFD packet to send [13:03:45]OFD Sender: No OFD packet to send [13:03:50]OFD Sender: No OFD packet to send [13:03:55]OFD Sender: No OFD packet to send [13:04:00]OFD Sender: No OFD packet to send [13:04:05]OFD Sender: No OFD packet to send [13:04:10]OFD Sender: No OFD packet to send [13:04:15]OFD Sender: No OFD packet to send [13:04:20]OFD Sender: No OFD packet to send [13:04:25]OFD Sender: No OFD packet to send [13:04:30]OFD Sender: No OFD packet to send [13:04:35]OFD Sender: No OFD packet to send [13:04:40]OFD Sender: No OFD packet to send [13:04:45]OFD Sender: No OFD packet to send [13:04:50]OFD Sender: No OFD packet to send [13:04:55]OFD Sender: No OFD packet to send [13:05:00]OFD Sender: No OFD packet to send [13:05:05]OFD Sender: No OFD packet to send [13:05:10]OFD Sender: No OFD packet to send [13:05:15]OFD Sender: No OFD packet to send [13:05:20]OFD Sender: No OFD packet to send [13:05:24]accept exits with 8 [13:05:24]New connection [13:05:24]New thread 3066834276 created [13:05:24]Thread 3066690916 joined [13:05:24]Waiting for new connection... [13:05:24] Sock 8.Parse request [13:05:24]Sock 8.Check first char [13:05:24]Sock 8.First char is OK [13:05:24]request: POST /json_proto HTTP/1.0 [13:05:24]Method: POST [13:05:24]URL: /json_proto [13:05:24]Method is POST - this is cgi request [13:05:24]url: /json_proto [13:05:24]query_string will be loaded in cgi processing [13:05:24]execute_cgi json_proto POST (null) [13:05:24]execute_cgi path=json_proto method=POST [13:05:24]POST find Content-Length [13:05:24]Host: 172.17.63.195:8080 [13:05:24]Content-Length: 677 [13:05:24]Content-Type: application/json [13:05:24] [13:05:24]POST finish read [13:05:24]Found Content-Length = 677 [13:05:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:05:24]execute_script... [13:05: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)449229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:05:24]POST & json_proto [13:05:24]process_json_proto [13:05:24]json parsed OK: [13:05:24]protocol is kg_v1.0 [13:05:24]action value=close_receipt [13:05:24]process_action close_receipt [13:05:24]cmd_close_receipt [13:05:24]MH_GetDate [13:05:24]Write to MH i2c: F0 00 00 69 10 68 [13:05:24]Write i2c OK [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: F0 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: F0 09 00 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: F0 09 00 69 10 00 15 E9 1C 67 68 46 19 67 20 [13:05:24]GetLastDocTimeStamp 1729947793 [13:05:24]current date 1729947925 [13:05:24]FM_GetShiftState [13:05:24]SAM_PROTO_GetShiftState [13:05:24]wFMCommunicate request_size=4 [13:05:24]MH_SAM_APDU [13:05:24]CAPDU: 80 13 01 00 [13:05:24]Write to MH i2c: E2 08 00 6A 10 80 13 01 00 00 00 00 00 F7 [13:05:24]Write i2c OK [13:05:24]MH_I2C_Read... [13:05:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:24]Read from MH i2c: E2 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: E2 0E 00 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: E2 0E 00 6A 10 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 06 [13:05:24]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:05:24]wFMCommunicate OK [13:05:24]SAM_PROTO_GetShiftState done [13:05:24]FM_GetShiftState done [13:05:24]opened in 1729900879 [13:05:24]opened+sec_in_day 1729987279 [13:05:24]quantity*price = 50041 [13:05:24]sum+1 = 50042 [13:05:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 241 26.10.2024 13:05 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201479 ФПД: 28275445283564 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130525&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201479&fm=28275445283564&tin=02508201610067®Number=0000000000091777&sum=50000 [13:05:25]StoreToDocumentArchive [13:05:25]shift 543 fd 201479 [13:05:25]save to /storage/0543/doc_00201479 [13:05:25]save last doc name /storage/0543/doc_00201479 to /storage/kkm_last_doc_name [13:05:25]save OK [13:05:25]Clear old archive folders... [13:05:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:05:25]tlvbuf is 01F49C80 [13:05:25]SAM_PROTO_ClearQueue [13:05:25]wFMCommunicate request_size=4 [13:05:25]MH_SAM_APDU [13:05:25]CAPDU: 80 09 00 00 [13:05:25]Write to MH i2c: E2 08 00 77 10 80 09 00 00 00 00 00 00 F9 [13:05:25]Write i2c OK [13:05:25]MH_I2C_Read... [13:05:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:25]Read from MH i2c: E2 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 03 00 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 03 00 77 10 00 90 00 FB [13:05:25]RAPDU: 90 00 [13:05:25]wFMCommunicate OK [13:05:25]SAM_PROTO_ClearQueue done [13:05:25]KKMCreateOFDPacket [13:05:25]OFDProtocolAddRootSTLVToBuf [13:05:25]FM_MakeSignedData [13:05:25]FM_MakeSignedData [13:05:25]SAM_PROTO_SignData [13:05:25]wFMCommunicate request_size=4 [13:05:25]MH_SAM_APDU [13:05:25]CAPDU: 80 0D 01 02 [13:05:25]Write to MH i2c: E2 08 00 78 10 80 0D 01 02 00 00 00 00 01 [13:05:25]Write i2c OK [13:05:25]MH_I2C_Read... [13:05:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:25]Read from MH i2c: E2 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 03 00 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 03 00 78 10 00 90 00 FC [13:05:25]RAPDU: 90 00 [13:05:25]wFMCommunicate OK [13:05:25]wFMCommunicate request_size=255 [13:05:25]MH_SAM_APDU [13:05: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 32 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 F1 00 00 00 F4 03 04 00 15 E9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 07 13 03 00 35 04 06 00 19 [13:05:25]Write to MH i2c: E2 02 01 79 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 32 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 F1 00 00 00 F4 03 04 00 15 E9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 07 13 03 00 35 04 06 00 19 00 00 5E [13:05:25]Write i2c OK [13:05:25]MH_I2C_Read... [13:05:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:25]Read from MH i2c: E2 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 03 00 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 03 00 79 10 00 90 00 FD [13:05:25]RAPDU: 90 00 [13:05:25]wFMCommunicate OK [13:05:25]wFMCommunicate request_size=10 [13:05:25]MH_SAM_APDU [13:05:25]CAPDU: 80 0D 02 02 05 B7 63 DF 3A EC [13:05:25]Write to MH i2c: E2 0D 00 7A 10 80 0D 02 02 05 00 B7 63 DF 3A EC 00 00 2D [13:05:25]Write i2c OK [13:05:25]MH_I2C_Read... [13:05:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:25]Read from MH i2c: E2 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 03 00 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 03 00 7A 10 00 90 00 FE [13:05:25]RAPDU: 90 00 [13:05:25]wFMCommunicate OK [13:05:25]wFMCommunicate request_size=4 [13:05:25]MH_SAM_APDU [13:05:25]CAPDU: 80 0D 03 02 [13:05:25]Write to MH i2c: E2 08 00 7B 10 80 0D 03 02 00 00 00 00 06 [13:05:25]Write i2c OK [13:05:25]MH_I2C_Read... [13:05:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:25]Read from MH i2c: E2 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 0B 00 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 0B 00 7B 10 00 50 AC 9F 8E 01 90 2C EA 90 00 D7 [13:05:25]RAPDU: 50 AC 9F 8E 01 90 2C EA 90 00 [13:05:25]wFMCommunicate OK [13:05:25]SAM_PROTO_SignData done [13:05:25]FM_MakeSignedData done [13:05:25]CreateOFDProtocolMessage [13:05:25]wFMCommunicate request_size=4 [13:05:25]MH_SAM_APDU [13:05:25]CAPDU: 80 11 00 00 [13:05:25]Write to MH i2c: E2 08 00 7C 10 80 11 00 00 00 00 00 00 06 [13:05:25]Write i2c OK [13:05:25]MH_I2C_Read... [13:05:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:25]Read from MH i2c: E2 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 17 00 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 17 00 7C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5B [13:05:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:05:25]wFMCommunicate OK [13:05:25]CreateOFDProtocolMessage done [13:05:25]OFDSenderStorePacket 201479 [13:05:25]StoreOFDPacket docnum=201479 [13:05:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 66 BB 07 01 E9 DE 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 32 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 F1 00 00 00 F4 03 04 00 15 E9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 07 13 03 00 35 04 06 00 19 B7 63 DF 3A EC 50 AC 9F 8E 01 90 2C EA [13:05:25]CheckFolder [13:05:25]dirname=/storage/ofd_packets [13:05:25]CheckFolder done [13:05:25]ProducePacketName [13:05:25]name=ofd_packets/00201479 [13:05:25]NVStorageSaveData ofd_packets/00201479 [13:05:25]File name is /storage/ofd_packets/00201479 [13:05:25]Write 301 bytes [13:05:25]NVStorageSaveData done [13:05:25]OFDSenderStorePacket done [13:05:25]KKMCreateOFDPacket done [13:05:25]NVStorageSaveData kkm_last_timestamp [13:05:25]File name is /storage/kkm_last_timestamp [13:05:25]Write 4 bytes [13:05:25]NVStorageSaveData done [13:05:25]ExternCall_PrintAddStr [13:05:25]wPrintStart [13:05:25]Write to MH i2c: 01 00 00 7D 10 8D [13:05:25]Write i2c OK [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: 01 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: 01 07 00 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: 01 07 00 7D 10 00 00 00 00 00 FF 0F A2 [13:05:25]RasterBufferAndPrint [13:05:25]line Счет N : (1)449229 [13:05:25]line ИНН: 02508201610067 [13:05:25]line Контрольно-Кассовый Чек [13:05:25]line ПРОДАЖА [13:05:25]line ТРК (МРК, ГНК) : 52 [13:05:25]line Товар: 2710124130 [13:05:25]line Аи-92-К-2 [13:05:25]line 7.480 * 66.90 [13:05:25]line = 500.41 [13:05:25]line НДС 12% НСП 1% [13:05:25]line > о реализуемом товаре [13:05:25]line ОКРУГЛЕНИЕ: -0.41 [13:05:25]line ИТОГО: 500.00 [13:05:25]line Внесено: 500.00 [13:05:25]line СДАЧА: 0.00 [13:05:25]line НСП 1% : 4.43 [13:05:25]line НДС 12% : 53.14 [13:05:25]line Наличными: 500.00 [13:05:25]line Безнал.: 0.00 [13:05:25]line Место: АЗС № 171 "Партнер Нефть" [13:05:25]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:05:25]line СНО: Общий режим [13:05:25]line Чек 241 26.10.2024 13:05 [13:05:25]line Смена: 543 ФФД: 1.0 [13:05:25]line ЗНМ: 0300000109 [13:05:25]line РНМ: 0000000000091777 [13:05:25]line Версия ККМ: 001 [13:05:25]line ФМ: 0000000000871756 [13:05:25]line ФД: 201479 [13:05:25]line ФПД: 28275445283564 [13:05:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130525&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201479&fm=28275445283564&tin=02508201610067®Number=0000000000091777&sum=50000 [13:05:25]written 0, free lines is 4095 [13:05:26]OFD Sender: Processing packet 201479 [packets to send 112, broken 111] [13:05:26]ProducePacketName [13:05:26]name=ofd_packets/00201479 [13:05:26]OFD Sender: To server: pG, [13:05:26]CommunicateWithHost lk.salyk.kg:30040 [13:05:26]ConnectInit lk.salyk.kg [13:05:26]Connected sock=11 [13:05:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 66 BB 07 01 E9 DE 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 32 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 F1 00 00 00 F4 03 04 00 15 E9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 07 13 03 00 35 04 06 00 19 B7 63 DF 3A EC 50 AC 9F 8E 01 90 2C EA [13:05:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 8D AC 47 00 7A 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 07 13 03 00 F4 03 04 00 BD 94 1C 67 B6 04 01 00 00 C0 8C DB C2 F6 26 94 B4 [13:05:26]CommunicateWithHost err = 0 [13:05:26]CheckOFDResponse [13:05:26]1017 (14) - 77093643461234 [13:05:26]1041 (16) - 0000000000871756 [13:05:26]1040 (4) - 201479 [13:05:26]1012 (4) - 26.10.2024 07:05 [13:05:26]1206 (1) - 0 [13:05:26]OFD Sender: Remove packet 201479 [13:05:26]ProducePacketName [13:05:26]name=ofd_packets/00201479 [13:05:26]NVStorageDeleteData [13:05:26]Write to MH i2c: 01 00 00 A8 10 B8 [13:05:26]Write i2c OK [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: 01 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: 01 07 00 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: 01 07 00 A8 10 00 00 00 00 00 9D 0C 68 [13:05:26]RasterBufferAndPrint [13:05:26]line [13:05:26]line [13:05:26]line [13:05:26]line [13:05:26]line [13:05:26]written 0, free lines is 3233 [13:05:26]MH_Cut [13:05:26]Write to MH i2c: D1 01 00 AF 10 01 91 [13:05:26]Write i2c OK [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: D1 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: D1 01 00 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: D1 01 00 AF 10 00 90 [13:05:26]Write to MH i2c: 01 00 00 B0 10 C0 [13:05:26]Write i2c OK [13:05:26]MH_I2C_Read... [13:05:26]OFD Sender: No OFD packet to send [13:05:27]*** Cut start [13:05:27]*** Purtial cut [13:05:27]*** Stage 1: CUTSNS_PIN = 1 [13:05:27]Read from MH i2c: 01 [13:05:27]MH_I2C_Read... [13:05:27]*** Stop cut motor [13:05:27]*** Cut end [13:05:27]Read from MH i2c: 01 07 00 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: 01 07 00 B0 10 00 00 00 00 00 FF 0F D5 [13:05:27]process_action close_receipt done [13:05:27]requested_data is exist [13:05:27]produce_requested_data [13:05:27]requested_item fm.sn is exist - process it [13:05:27]wFMCommunicate request_size=4 [13:05:27]MH_SAM_APDU [13:05:27]CAPDU: 80 11 00 00 [13:05:27]Write to MH i2c: E2 08 00 B1 10 80 11 00 00 00 00 00 00 3B [13:05:27]Write i2c OK [13:05:27]MH_I2C_Read... [13:05:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:27]Read from MH i2c: E2 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: E2 17 00 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: E2 17 00 B1 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 90 [13:05:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:05:27]wFMCommunicate OK [13:05:27]requested_item fd.num is exist - process it [13:05:27]SAM_PROTO_GetFieldsCounters [13:05:27]wFMCommunicate request_size=4 [13:05:27]MH_SAM_APDU [13:05:27]CAPDU: 80 13 00 00 [13:05:27]Write to MH i2c: E2 08 00 B2 10 80 13 00 00 00 00 00 00 3E [13:05:27]Write i2c OK [13:05:27]MH_I2C_Read... [13:05:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:27]Read from MH i2c: E2 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: E2 62 00 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: E2 62 00 B2 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 07 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [13:05:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 07 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:05:27]wFMCommunicate OK [13:05:27]SAM_PROTO_GetFieldsCounters done [13:05:27]requested_item shift.num is exist - process it [13:05:27]requested_item shift.opened is exist - process it [13:05:27]req_shift_opened [13:05:27]FM_GetShiftState [13:05:27]SAM_PROTO_GetShiftState [13:05:27]wFMCommunicate request_size=4 [13:05:27]MH_SAM_APDU [13:05:27]CAPDU: 80 13 01 00 [13:05:27]Write to MH i2c: E2 08 00 B3 10 80 13 01 00 00 00 00 00 40 [13:05:27]Write i2c OK [13:05:27]MH_I2C_Read... [13:05:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:27]Read from MH i2c: E2 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: E2 0E 00 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: E2 0E 00 B3 10 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 4F [13:05:27]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:05:27]wFMCommunicate OK [13:05:27]SAM_PROTO_GetShiftState done [13:05:27]FM_GetShiftState done [13:05:27]req_shift_opened done [13:05:27]requested_item shift.open_date is exist - process it [13:05:27]req_shift_open_date [13:05:27]req_shift_open_date done [13:05:27]produce_requested_data done [13:05:27]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201479,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:05:27]process_action_free close_receipt [13:05:27]json_value_free [13:05:27]json_value_free done [13:05:27]process_json_proto returns [13:05:27]Send response to host [13:05:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201479,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:05:27]free response buf [13:05:27]execute_script done [13:05:27]execute_script returns [13:05:27]free content buf [13:05:27]Sock 8.Close socket [13:05:27]Sock 8.Thread stoped [13:05:31]OFD Sender: No OFD packet to send [13:05:36]OFD Sender: No OFD packet to send [13:05:41]OFD Sender: No OFD packet to send [13:05:46]OFD Sender: No OFD packet to send [13:05:51]OFD Sender: No OFD packet to send [13:05:56]OFD Sender: No OFD packet to send [13:06:01]OFD Sender: No OFD packet to send [13:06:06]OFD Sender: No OFD packet to send [13:06:11]OFD Sender: No OFD packet to send [13:06:16]OFD Sender: No OFD packet to send [13:06:20]accept exits with 9 [13:06:20]New connection [13:06:20]New thread 3066690916 created [13:06:20]Thread 3066834276 joined [13:06:20]Waiting for new connection... [13:06:20] Sock 9.Parse request [13:06:20]Sock 9.Check first char [13:06:20]Sock 9.First char is OK [13:06:20]request: POST /json_proto HTTP/1.0 [13:06:20]Method: POST [13:06:20]URL: /json_proto [13:06:20]Method is POST - this is cgi request [13:06:20]url: /json_proto [13:06:20]query_string will be loaded in cgi processing [13:06:20]execute_cgi json_proto POST (null) [13:06:20]execute_cgi path=json_proto method=POST [13:06:20]POST find Content-Length [13:06:20]Host: 172.17.63.195:8080 [13:06:20]Content-Length: 678 [13:06:20]Content-Type: application/json [13:06:20] [13:06:20]POST finish read [13:06:20]Found Content-Length = 678 [13:06:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:20]execute_script... [13:06: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)449230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:20]POST & json_proto [13:06:20]process_json_proto [13:06:20]json parsed OK: [13:06:20]protocol is kg_v1.0 [13:06:20]action value=close_receipt [13:06:20]process_action close_receipt [13:06:20]cmd_close_receipt [13:06:20]MH_GetDate [13:06:20]Write to MH i2c: F0 00 00 B4 10 B3 [13:06:20]Write i2c OK [13:06:20]MH_I2C_Read... [13:06:20]Read from MH i2c: F0 [13:06:20]MH_I2C_Read... [13:06:20]Read from MH i2c: F0 09 00 [13:06:20]MH_I2C_Read... [13:06:20]Read from MH i2c: F0 09 00 B4 10 00 4D E9 1C 67 68 46 19 67 A3 [13:06:20]GetLastDocTimeStamp 1729947925 [13:06:20]current date 1729947981 [13:06:20]FM_GetShiftState [13:06:20]SAM_PROTO_GetShiftState [13:06:20]wFMCommunicate request_size=4 [13:06:20]MH_SAM_APDU [13:06:20]CAPDU: 80 13 01 00 [13:06:20]Write to MH i2c: E2 08 00 B5 10 80 13 01 00 00 00 00 00 42 [13:06:20]Write i2c OK [13:06:20]MH_I2C_Read... [13:06:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:20]Read from MH i2c: E2 [13:06:20]MH_I2C_Read... [13:06:20]Read from MH i2c: E2 0E 00 [13:06:20]MH_I2C_Read... [13:06:20]Read from MH i2c: E2 0E 00 B5 10 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 51 [13:06:20]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:06:20]wFMCommunicate OK [13:06:20]SAM_PROTO_GetShiftState done [13:06:20]FM_GetShiftState done [13:06:20]opened in 1729900879 [13:06:20]opened+sec_in_day 1729987279 [13:06:20]quantity*price = 80012 [13:06:20]sum+1 = 80013 [13:06:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 242 26.10.2024 13:06 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201480 ФПД: 2114507119650 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130621&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201480&fm=2114507119650&tin=02508201610067®Number=0000000000091777&sum=80000 [13:06:21]StoreToDocumentArchive [13:06:21]shift 543 fd 201480 [13:06:21]save to /storage/0543/doc_00201480 [13:06:21]save last doc name /storage/0543/doc_00201480 to /storage/kkm_last_doc_name [13:06:21]save OK [13:06:21]Clear old archive folders... [13:06:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:06:21]tlvbuf is 01F507C0 [13:06:21]SAM_PROTO_ClearQueue [13:06:21]wFMCommunicate request_size=4 [13:06:21]MH_SAM_APDU [13:06:21]CAPDU: 80 09 00 00 [13:06:21]Write to MH i2c: E2 08 00 C2 10 80 09 00 00 00 00 00 00 44 [13:06:21]Write i2c OK [13:06:21]MH_I2C_Read... [13:06:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:21]Read from MH i2c: E2 [13:06:21]MH_I2C_Read... [13:06:21]Read from MH i2c: E2 03 00 [13:06:21]MH_I2C_Read... [13:06:21]Read from MH i2c: E2 03 00 C2 10 00 90 00 46 [13:06:21]RAPDU: 90 00 [13:06:21]wFMCommunicate OK [13:06:21]SAM_PROTO_ClearQueue done [13:06:21]KKMCreateOFDPacket [13:06:21]OFDProtocolAddRootSTLVToBuf [13:06:21]FM_MakeSignedData [13:06:21]FM_MakeSignedData [13:06:21]SAM_PROTO_SignData [13:06:21]wFMCommunicate request_size=4 [13:06:21]MH_SAM_APDU [13:06:21]CAPDU: 80 0D 01 02 [13:06:21]Write to MH i2c: E2 08 00 C3 10 80 0D 01 02 00 00 00 00 4C [13:06:21]Write i2c OK [13:06:21]MH_I2C_Read... [13:06:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:21]Read from MH i2c: E2 [13:06:21]MH_I2C_Read... [13:06:22]Read from MH i2c: E2 03 00 [13:06:22]MH_I2C_Read... [13:06:22]Read from MH i2c: E2 03 00 C3 10 00 90 00 47 [13:06:22]RAPDU: 90 00 [13:06:22]wFMCommunicate OK [13:06:22]wFMCommunicate request_size=255 [13:06:22]MH_SAM_APDU [13:06: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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 4D E9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 08 13 03 00 35 04 06 00 01 [13:06:22]Write to MH i2c: E2 02 01 C4 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 4D E9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 08 13 03 00 35 04 06 00 01 00 00 B7 [13:06:22]Write i2c OK [13:06:22]MH_I2C_Read... [13:06:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:22]Read from MH i2c: E2 [13:06:22]MH_I2C_Read... [13:06:22]Read from MH i2c: E2 03 00 [13:06:22]MH_I2C_Read... [13:06:22]Read from MH i2c: E2 03 00 C4 10 00 90 00 48 [13:06:22]RAPDU: 90 00 [13:06:22]wFMCommunicate OK [13:06:22]wFMCommunicate request_size=10 [13:06:22]MH_SAM_APDU [13:06:22]CAPDU: 80 0D 02 02 05 EC 52 72 1C 22 [13:06:22]Write to MH i2c: E2 0D 00 C5 10 80 0D 02 02 05 00 EC 52 72 1C 22 00 00 47 [13:06:22]Write i2c OK [13:06:22]MH_I2C_Read... [13:06:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:22]Read from MH i2c: E2 [13:06:22]MH_I2C_Read... [13:06:22]Read from MH i2c: E2 03 00 [13:06:22]MH_I2C_Read... [13:06:22]Read from MH i2c: E2 03 00 C5 10 00 90 00 49 [13:06:22]RAPDU: 90 00 [13:06:22]wFMCommunicate OK [13:06:22]wFMCommunicate request_size=4 [13:06:22]MH_SAM_APDU [13:06:22]CAPDU: 80 0D 03 02 [13:06:22]Write to MH i2c: E2 08 00 C6 10 80 0D 03 02 00 00 00 00 51 [13:06:22]Write i2c OK [13:06:22]MH_I2C_Read... [13:06:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:22]Read from MH i2c: E2 [13:06:22]MH_I2C_Read... [13:06:22]Read from MH i2c: E2 0B 00 [13:06:22]MH_I2C_Read... [13:06:22]Read from MH i2c: E2 0B 00 C6 10 00 D2 FA 0F 3E D7 79 CE 2F 90 00 B8 [13:06:22]RAPDU: D2 FA 0F 3E D7 79 CE 2F 90 00 [13:06:22]wFMCommunicate OK [13:06:22]SAM_PROTO_SignData done [13:06:22]FM_MakeSignedData done [13:06:22]CreateOFDProtocolMessage [13:06:22]wFMCommunicate request_size=4 [13:06:22]MH_SAM_APDU [13:06:22]CAPDU: 80 11 00 00 [13:06:22]Write to MH i2c: E2 08 00 C7 10 80 11 00 00 00 00 00 00 51 [13:06:22]Write i2c OK [13:06:22]MH_I2C_Read... [13:06:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:22]Read from MH i2c: E2 [13:06:22]MH_I2C_Read... [13:06:22]Read from MH i2c: E2 17 00 [13:06:22]MH_I2C_Read... [13:06:22]Read from MH i2c: E2 17 00 C7 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A6 [13:06:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:06:22]wFMCommunicate OK [13:06:22]CreateOFDProtocolMessage done [13:06:22]OFDSenderStorePacket 201480 [13:06:22]StoreOFDPacket docnum=201480 [13:06:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6A 22 07 01 EE C0 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 4D E9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 08 13 03 00 35 04 06 00 01 EC 52 72 1C 22 D2 FA 0F 3E D7 79 CE 2F [13:06:22]CheckFolder [13:06:22]dirname=/storage/ofd_packets [13:06:22]CheckFolder done [13:06:22]ProducePacketName [13:06:22]name=ofd_packets/00201480 [13:06:22]NVStorageSaveData ofd_packets/00201480 [13:06:22]File name is /storage/ofd_packets/00201480 [13:06:22]Write 301 bytes [13:06:22]NVStorageSaveData done [13:06:22]OFDSenderStorePacket done [13:06:22]KKMCreateOFDPacket done [13:06:22]NVStorageSaveData kkm_last_timestamp [13:06:22]File name is /storage/kkm_last_timestamp [13:06:22]Write 4 bytes [13:06:22]NVStorageSaveData done [13:06:22]ExternCall_PrintAddStr [13:06:22]wPrintStart [13:06:22]Write to MH i2c: 01 00 00 C8 10 D8 [13:06:22]Write i2c OK [13:06:22]MH_I2C_Read... [13:06:22]Read from MH i2c: 01 [13:06:22]MH_I2C_Read... [13:06:22]Read from MH i2c: 01 07 00 [13:06:22]MH_I2C_Read... [13:06:22]Read from MH i2c: 01 07 00 C8 10 00 00 00 00 00 FF 0F ED [13:06:22]RasterBufferAndPrint [13:06:22]line Счет N : (1)449230 [13:06:22]line ИНН: 02508201610067 [13:06:22]line Контрольно-Кассовый Чек [13:06:22]line ПРОДАЖА [13:06:22]line ТРК (МРК, ГНК) : 41 [13:06:22]line Товар: 2710124130 [13:06:22]line Аи-92-К-2 [13:06:22]line 11.960 * 66.90 [13:06:22]line = 800.12 [13:06:22]line НДС 12% НСП 1% [13:06:22]line > о реализуемом товаре [13:06:22]line ОКРУГЛЕНИЕ: -0.12 [13:06:22]line ИТОГО: 800.00 [13:06:22]line Внесено: 800.00 [13:06:22]line СДАЧА: 0.00 [13:06:22]line НСП 1% : 7.08 [13:06:22]line НДС 12% : 84.97 [13:06:22]line Наличными: 800.00 [13:06:22]line Безнал.: 0.00 [13:06:22]line Место: АЗС № 171 "Партнер Нефть" [13:06:22]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:06:22]line СНО: Общий режим [13:06:22]line Чек 242 26.10.2024 13:06 [13:06:22]line Смена: 543 ФФД: 1.0 [13:06:22]line ЗНМ: 0300000109 [13:06:22]line РНМ: 0000000000091777 [13:06:22]line Версия ККМ: 001 [13:06:22]line ФМ: 0000000000871756 [13:06:22]line ФД: 201480 [13:06:22]line ФПД: 2114507119650 [13:06:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130621&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201480&fm=2114507119650&tin=02508201610067®Number=0000000000091777&sum=80000 [13:06:22]OFD Sender: Processing packet 201480 [packets to send 112, broken 111] [13:06:22]ProducePacketName [13:06:22]name=ofd_packets/00201480 [13:06:22]OFD Sender: To server: pG, [13:06:22]CommunicateWithHost lk.salyk.kg:30040 [13:06:22]ConnectInit lk.salyk.kg [13:06:22]written 0, free lines is 4095 [13:06:22]Connected sock=10 [13:06:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6A 22 07 01 EE C0 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 4D E9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 08 13 03 00 35 04 06 00 01 EC 52 72 1C 22 D2 FA 0F 3E D7 79 CE 2F [13:06:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 FF 7B 47 00 D8 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 08 13 03 00 F4 03 04 00 F6 94 1C 67 B6 04 01 00 00 04 C4 63 22 89 18 71 07 [13:06:23]CommunicateWithHost err = 0 [13:06:23]CheckOFDResponse [13:06:23]1017 (14) - 77093643461234 [13:06:23]1041 (16) - 0000000000871756 [13:06:23]1040 (4) - 201480 [13:06:23]1012 (4) - 26.10.2024 07:06 [13:06:23]1206 (1) - 0 [13:06:23]OFD Sender: Remove packet 201480 [13:06:23]ProducePacketName [13:06:23]name=ofd_packets/00201480 [13:06:23]NVStorageDeleteData [13:06:23]Write to MH i2c: 01 00 00 F3 10 03 [13:06:23]Write i2c OK [13:06:23]MH_I2C_Read... [13:06:23]Read from MH i2c: 01 [13:06:23]MH_I2C_Read... [13:06:23]Read from MH i2c: 01 07 00 [13:06:23]MH_I2C_Read... [13:06:23]Read from MH i2c: 01 07 00 F3 10 00 00 00 00 00 A4 0C BA [13:06:23]RasterBufferAndPrint [13:06:23]line [13:06:23]line [13:06:23]line [13:06:23]line [13:06:23]line [13:06:23]written 0, free lines is 3242 [13:06:23]MH_Cut [13:06:23]Write to MH i2c: D1 01 00 FA 10 01 DC [13:06:23]Write i2c OK [13:06:23]MH_I2C_Read... [13:06:23]Read from MH i2c: D1 [13:06:23]MH_I2C_Read... [13:06:23]Read from MH i2c: D1 01 00 [13:06:23]MH_I2C_Read... [13:06:23]Read from MH i2c: D1 01 00 FA 10 00 DB [13:06:23]Write to MH i2c: 01 00 00 FB 10 0B [13:06:23]Write i2c OK [13:06:23]MH_I2C_Read... [13:06:23]OFD Sender: No OFD packet to send [13:06:24]*** Cut start [13:06:24]*** Purtial cut [13:06:24]*** Stage 1: CUTSNS_PIN = 1 [13:06:24]*** Stop cut motor [13:06:24]*** Cut end [13:06:24]Read from MH i2c: 01 [13:06:24]MH_I2C_Read... [13:06:24]Read from MH i2c: 01 07 00 [13:06:24]MH_I2C_Read... [13:06:24]Read from MH i2c: 01 07 00 FB 10 00 00 00 00 00 FF 0F 20 [13:06:24]process_action close_receipt done [13:06:24]requested_data is exist [13:06:24]produce_requested_data [13:06:24]requested_item fm.sn is exist - process it [13:06:24]wFMCommunicate request_size=4 [13:06:24]MH_SAM_APDU [13:06:24]CAPDU: 80 11 00 00 [13:06:24]Write to MH i2c: E2 08 00 FC 10 80 11 00 00 00 00 00 00 86 [13:06:24]Write i2c OK [13:06:24]MH_I2C_Read... [13:06:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:24]Read from MH i2c: E2 [13:06:24]MH_I2C_Read... [13:06:24]Read from MH i2c: E2 17 00 [13:06:24]MH_I2C_Read... [13:06:24]Read from MH i2c: E2 17 00 FC 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DB [13:06:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:06:24]wFMCommunicate OK [13:06:24]requested_item fd.num is exist - process it [13:06:24]SAM_PROTO_GetFieldsCounters [13:06:24]wFMCommunicate request_size=4 [13:06:24]MH_SAM_APDU [13:06:24]CAPDU: 80 13 00 00 [13:06:24]Write to MH i2c: E2 08 00 FD 10 80 13 00 00 00 00 00 00 89 [13:06:24]Write i2c OK [13:06:24]MH_I2C_Read... [13:06:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:24]Read from MH i2c: E2 [13:06:24]MH_I2C_Read... [13:06:24]Read from MH i2c: E2 62 00 [13:06:24]MH_I2C_Read... [13:06:24]Read from MH i2c: E2 62 00 FD 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 08 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [13:06:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 08 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:06:24]wFMCommunicate OK [13:06:24]SAM_PROTO_GetFieldsCounters done [13:06:24]requested_item shift.num is exist - process it [13:06:24]requested_item shift.opened is exist - process it [13:06:24]req_shift_opened [13:06:24]FM_GetShiftState [13:06:24]SAM_PROTO_GetShiftState [13:06:24]wFMCommunicate request_size=4 [13:06:24]MH_SAM_APDU [13:06:24]CAPDU: 80 13 01 00 [13:06:24]Write to MH i2c: E2 08 00 FE 10 80 13 01 00 00 00 00 00 8B [13:06:24]Write i2c OK [13:06:24]MH_I2C_Read... [13:06:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:24]Read from MH i2c: E2 [13:06:24]MH_I2C_Read... [13:06:24]Read from MH i2c: E2 0E 00 [13:06:24]MH_I2C_Read... [13:06:24]Read from MH i2c: E2 0E 00 FE 10 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 9A [13:06:24]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:06:24]wFMCommunicate OK [13:06:24]SAM_PROTO_GetShiftState done [13:06:24]FM_GetShiftState done [13:06:24]req_shift_opened done [13:06:24]requested_item shift.open_date is exist - process it [13:06:24]req_shift_open_date [13:06:24]req_shift_open_date done [13:06:24]produce_requested_data done [13:06:24]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201480,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:06:24]process_action_free close_receipt [13:06:24]json_value_free [13:06:24]json_value_free done [13:06:24]process_json_proto returns [13:06:24]Send response to host [13:06:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201480,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:06:24]free response buf [13:06:24]execute_script done [13:06:24]execute_script returns [13:06:24]free content buf [13:06:24]Sock 9.Close socket [13:06:24]Sock 9.Thread stoped [13:06:28]OFD Sender: No OFD packet to send [13:06:33]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:42]accept exits with 8 [13:07:42]New connection [13:07:42]New thread 3066834276 created [13:07:42]Thread 3066690916 joined [13:07:42]Waiting for new connection... [13:07:42] Sock 8.Parse request [13:07:42]Sock 8.Check first char [13:07:42]Sock 8.First char is OK [13:07:42]request: POST /json_proto HTTP/1.0 [13:07:42]Method: POST [13:07:42]URL: /json_proto [13:07:42]Method is POST - this is cgi request [13:07:42]url: /json_proto [13:07:42]query_string will be loaded in cgi processing [13:07:42]execute_cgi json_proto POST (null) [13:07:42]execute_cgi path=json_proto method=POST [13:07:42]POST find Content-Length [13:07:42]Host: 172.17.63.195:8080 [13:07:42]Content-Length: 677 [13:07:42]Content-Type: application/json [13:07:42] [13:07:42]POST finish read [13:07:42]Found Content-Length = 677 [13:07:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:07:42]execute_script... [13:07: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)449231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:07:42]POST & json_proto [13:07:42]process_json_proto [13:07:42]json parsed OK: [13:07:42]protocol is kg_v1.0 [13:07:42]action value=close_receipt [13:07:42]process_action close_receipt [13:07:42]cmd_close_receipt [13:07:42]MH_GetDate [13:07:42]Write to MH i2c: F0 00 00 FF 10 FE [13:07:42]Write i2c OK [13:07:42]MH_I2C_Read... [13:07:42]Read from MH i2c: F0 [13:07:42]MH_I2C_Read... [13:07:42]Read from MH i2c: F0 09 00 [13:07:42]MH_I2C_Read... [13:07:42]Read from MH i2c: F0 09 00 FF 10 00 9F E9 1C 67 68 46 19 67 40 [13:07:42]GetLastDocTimeStamp 1729947981 [13:07:42]current date 1729948063 [13:07:42]FM_GetShiftState [13:07:42]SAM_PROTO_GetShiftState [13:07:42]wFMCommunicate request_size=4 [13:07:42]MH_SAM_APDU [13:07:42]CAPDU: 80 13 01 00 [13:07:42]Write to MH i2c: E2 08 00 00 11 80 13 01 00 00 00 00 00 8E [13:07:42]Write i2c OK [13:07:42]MH_I2C_Read... [13:07:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:42]Read from MH i2c: E2 [13:07:42]MH_I2C_Read... [13:07:42]Read from MH i2c: E2 0E 00 [13:07:42]MH_I2C_Read... [13:07:42]Read from MH i2c: E2 0E 00 00 11 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 9D [13:07:42]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:07:42]wFMCommunicate OK [13:07:42]SAM_PROTO_GetShiftState done [13:07:42]FM_GetShiftState done [13:07:42]opened in 1729900879 [13:07:42]opened+sec_in_day 1729987279 [13:07:42]quantity*price = 40006 [13:07:42]sum+1 = 40007 [13:07:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 243 26.10.2024 13:07 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201481 ФПД: 246221625735028 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130743&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201481&fm=246221625735028&tin=02508201610067®Number=0000000000091777&sum=40000 [13:07:43]StoreToDocumentArchive [13:07:43]shift 543 fd 201481 [13:07:43]save to /storage/0543/doc_00201481 [13:07:43]save last doc name /storage/0543/doc_00201481 to /storage/kkm_last_doc_name [13:07:43]save OK [13:07:43]Clear old archive folders... [13:07:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:07:43]tlvbuf is 01F06440 [13:07:43]SAM_PROTO_ClearQueue [13:07:43]wFMCommunicate request_size=4 [13:07:43]MH_SAM_APDU [13:07:43]CAPDU: 80 09 00 00 [13:07:43]Write to MH i2c: E2 08 00 0D 11 80 09 00 00 00 00 00 00 90 [13:07:43]Write i2c OK [13:07:43]MH_I2C_Read... [13:07:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:43]Read from MH i2c: E2 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 03 00 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 03 00 0D 11 00 90 00 92 [13:07:43]RAPDU: 90 00 [13:07:43]wFMCommunicate OK [13:07:43]SAM_PROTO_ClearQueue done [13:07:43]KKMCreateOFDPacket [13:07:43]OFDProtocolAddRootSTLVToBuf [13:07:43]FM_MakeSignedData [13:07:43]FM_MakeSignedData [13:07:43]SAM_PROTO_SignData [13:07:43]wFMCommunicate request_size=4 [13:07:43]MH_SAM_APDU [13:07:43]CAPDU: 80 0D 01 02 [13:07:43]Write to MH i2c: E2 08 00 0E 11 80 0D 01 02 00 00 00 00 98 [13:07:43]Write i2c OK [13:07:43]MH_I2C_Read... [13:07:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:43]Read from MH i2c: E2 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 03 00 [13:07:43]MH_I2C_Read... [13:07:43]Read from MH i2c: E2 03 00 0E 11 00 90 00 93 [13:07:43]RAPDU: 90 00 [13:07:43]wFMCommunicate OK [13:07:43]wFMCommunicate request_size=255 [13:07:43]MH_SAM_APDU [13:07:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 F3 00 00 00 F4 03 04 00 9F E9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 09 13 03 00 35 04 06 00 DF [13:07:43]Write to MH i2c: E2 02 01 0F 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 32 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 F3 00 00 00 F4 03 04 00 9F E9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 09 13 03 00 35 04 06 00 DF 00 00 18 [13:07:43]Write i2c OK [13:07:43]MH_I2C_Read... [13:07:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:44]Read from MH i2c: E2 [13:07:44]MH_I2C_Read... [13:07:44]Read from MH i2c: E2 03 00 [13:07:44]MH_I2C_Read... [13:07:44]Read from MH i2c: E2 03 00 0F 11 00 90 00 94 [13:07:44]RAPDU: 90 00 [13:07:44]wFMCommunicate OK [13:07:44]wFMCommunicate request_size=10 [13:07:44]MH_SAM_APDU [13:07:44]CAPDU: 80 0D 02 02 05 EF F0 89 B7 74 [13:07:44]Write to MH i2c: E2 0D 00 10 11 80 0D 02 02 05 00 EF F0 89 B7 74 00 00 38 [13:07:44]Write i2c OK [13:07:44]MH_I2C_Read... [13:07:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:44]Read from MH i2c: E2 [13:07:44]MH_I2C_Read... [13:07:44]Read from MH i2c: E2 03 00 [13:07:44]MH_I2C_Read... [13:07:44]Read from MH i2c: E2 03 00 10 11 00 90 00 95 [13:07:44]RAPDU: 90 00 [13:07:44]wFMCommunicate OK [13:07:44]wFMCommunicate request_size=4 [13:07:44]MH_SAM_APDU [13:07:44]CAPDU: 80 0D 03 02 [13:07:44]Write to MH i2c: E2 08 00 11 11 80 0D 03 02 00 00 00 00 9D [13:07:44]Write i2c OK [13:07:44]MH_I2C_Read... [13:07:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:44]Read from MH i2c: E2 [13:07:44]MH_I2C_Read... [13:07:44]Read from MH i2c: E2 0B 00 [13:07:44]MH_I2C_Read... [13:07:44]Read from MH i2c: E2 0B 00 11 11 00 79 3F A1 B6 6A C1 C9 87 90 00 28 [13:07:44]RAPDU: 79 3F A1 B6 6A C1 C9 87 90 00 [13:07:44]wFMCommunicate OK [13:07:44]SAM_PROTO_SignData done [13:07:44]FM_MakeSignedData done [13:07:44]CreateOFDProtocolMessage [13:07:44]wFMCommunicate request_size=4 [13:07:44]MH_SAM_APDU [13:07:44]CAPDU: 80 11 00 00 [13:07:44]Write to MH i2c: E2 08 00 12 11 80 11 00 00 00 00 00 00 9D [13:07:44]Write i2c OK [13:07:44]MH_I2C_Read... [13:07:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:44]Read from MH i2c: E2 [13:07:44]MH_I2C_Read... [13:07:44]Read from MH i2c: E2 17 00 [13:07:44]MH_I2C_Read... [13:07:44]Read from MH i2c: E2 17 00 12 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F2 [13:07:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:07:44]wFMCommunicate OK [13:07:44]CreateOFDProtocolMessage done [13:07:44]OFDSenderStorePacket 201481 [13:07:44]StoreOFDPacket docnum=201481 [13:07:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8D 90 07 01 B0 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 F3 00 00 00 F4 03 04 00 9F E9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 09 13 03 00 35 04 06 00 DF EF F0 89 B7 74 79 3F A1 B6 6A C1 C9 87 [13:07:44]CheckFolder [13:07:44]dirname=/storage/ofd_packets [13:07:44]CheckFolder done [13:07:44]ProducePacketName [13:07:44]name=ofd_packets/00201481 [13:07:44]NVStorageSaveData ofd_packets/00201481 [13:07:44]File name is /storage/ofd_packets/00201481 [13:07:44]Write 301 bytes [13:07:44]NVStorageSaveData done [13:07:44]OFDSenderStorePacket done [13:07:44]KKMCreateOFDPacket done [13:07:44]NVStorageSaveData kkm_last_timestamp [13:07:44]File name is /storage/kkm_last_timestamp [13:07:44]Write 4 bytes [13:07:44]NVStorageSaveData done [13:07:44]ExternCall_PrintAddStr [13:07:44]wPrintStart [13:07:44]Write to MH i2c: 01 00 00 13 11 24 [13:07:44]Write i2c OK [13:07:44]MH_I2C_Read... [13:07:44]Read from MH i2c: 01 [13:07:44]MH_I2C_Read... [13:07:44]Read from MH i2c: 01 07 00 [13:07:44]MH_I2C_Read... [13:07:44]Read from MH i2c: 01 07 00 13 11 00 00 00 00 00 FF 0F 39 [13:07:44]RasterBufferAndPrint [13:07:44]line Счет N : (1)449231 [13:07:44]line ИНН: 02508201610067 [13:07:44]line Контрольно-Кассовый Чек [13:07:44]line ПРОДАЖА [13:07:44]line ТРК (МРК, ГНК) : 52 [13:07:44]line Товар: 2710124130 [13:07:44]line Аи-92-К-2 [13:07:44]line 5.980 * 66.90 [13:07:44]line = 400.06 [13:07:44]line НДС 12% НСП 1% [13:07:44]line > о реализуемом товаре [13:07:44]line ОКРУГЛЕНИЕ: -0.06 [13:07:44]line ИТОГО: 400.00 [13:07:44]line Внесено: 400.00 [13:07:44]line СДАЧА: 0.00 [13:07:44]line НСП 1% : 3.54 [13:07:44]line НДС 12% : 42.48 [13:07:44]line Наличными: 400.00 [13:07:44]line Безнал.: 0.00 [13:07:44]line Место: АЗС № 171 "Партнер Нефть" [13:07:44]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:07:44]line СНО: Общий режим [13:07:44]line Чек 243 26.10.2024 13:07 [13:07:44]line Смена: 543 ФФД: 1.0 [13:07:44]line ЗНМ: 0300000109 [13:07:44]line РНМ: 0000000000091777 [13:07:44]line Версия ККМ: 001 [13:07:44]line ФМ: 0000000000871756 [13:07:44]line ФД: 201481 [13:07:44]line ФПД: 246221625735028 [13:07:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130743&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201481&fm=246221625735028&tin=02508201610067®Number=0000000000091777&sum=40000 [13:07:44]OFD Sender: Processing packet 201481 [packets to send 112, broken 111] [13:07:44]ProducePacketName [13:07:44]name=ofd_packets/00201481 [13:07:44]OFD Sender: To server: pG, [13:07:44]CommunicateWithHost lk.salyk.kg:30040 [13:07:44]ConnectInit lk.salyk.kg [13:07:44]written 0, free lines is 4095 [13:07:44]Connected sock=10 [13:07:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8D 90 07 01 B0 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 F3 00 00 00 F4 03 04 00 9F E9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 09 13 03 00 35 04 06 00 DF EF F0 89 B7 74 79 3F A1 B6 6A C1 C9 87 [13:07:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 EE 47 47 00 18 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 09 13 03 00 F4 03 04 00 48 95 1C 67 B6 04 01 00 00 4C 57 40 2F 30 16 20 76 [13:07:44]CommunicateWithHost err = 0 [13:07:44]CheckOFDResponse [13:07:44]1017 (14) - 77093643461234 [13:07:44]1041 (16) - 0000000000871756 [13:07:44]1040 (4) - 201481 [13:07:44]1012 (4) - 26.10.2024 07:07 [13:07:44]1206 (1) - 0 [13:07:44]OFD Sender: Remove packet 201481 [13:07:44]ProducePacketName [13:07:44]name=ofd_packets/00201481 [13:07:44]NVStorageDeleteData [13:07:45]Write to MH i2c: 01 00 00 3E 11 4F [13:07:45]Write i2c OK [13:07:45]MH_I2C_Read... [13:07:45]Read from MH i2c: 01 [13:07:45]MH_I2C_Read... [13:07:45]Read from MH i2c: 01 07 00 [13:07:45]MH_I2C_Read... [13:07:45]Read from MH i2c: 01 07 00 3E 11 00 00 00 00 00 A0 0C 02 [13:07:45]RasterBufferAndPrint [13:07:45]line [13:07:45]line [13:07:45]line [13:07:45]line [13:07:45]line [13:07:45]written 0, free lines is 3236 [13:07:45]MH_Cut [13:07:45]Write to MH i2c: D1 01 00 45 11 01 28 [13:07:45]Write i2c OK [13:07:45]MH_I2C_Read... [13:07:45]Read from MH i2c: D1 [13:07:45]MH_I2C_Read... [13:07:45]Read from MH i2c: D1 01 00 [13:07:45]MH_I2C_Read... [13:07:45]Read from MH i2c: D1 01 00 45 11 00 27 [13:07:45]Write to MH i2c: 01 00 00 46 11 57 [13:07:45]Write i2c OK [13:07:45]MH_I2C_Read... [13:07:45]OFD Sender: No OFD packet to send [13:07:46]*** Cut start [13:07:46]*** Purtial cut [13:07:46]*** Stage 1: CUTSNS_PIN = 1 [13:07:46]Read from MH i2c: 01 [13:07:46]MH_I2C_Read... [13:07:46]*** Stop cut motor [13:07:46]*** Cut end [13:07:46]Read from MH i2c: 01 07 00 [13:07:46]MH_I2C_Read... [13:07:46]Read from MH i2c: 01 07 00 46 11 00 00 00 00 00 FF 0F 6C [13:07:46]process_action close_receipt done [13:07:46]requested_data is exist [13:07:46]produce_requested_data [13:07:46]requested_item fm.sn is exist - process it [13:07:46]wFMCommunicate request_size=4 [13:07:46]MH_SAM_APDU [13:07:46]CAPDU: 80 11 00 00 [13:07:46]Write to MH i2c: E2 08 00 47 11 80 11 00 00 00 00 00 00 D2 [13:07:46]Write i2c OK [13:07:46]MH_I2C_Read... [13:07:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:46]Read from MH i2c: E2 [13:07:46]MH_I2C_Read... [13:07:46]Read from MH i2c: E2 17 00 [13:07:46]MH_I2C_Read... [13:07:46]Read from MH i2c: E2 17 00 47 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 27 [13:07:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:07:46]wFMCommunicate OK [13:07:46]requested_item fd.num is exist - process it [13:07:46]SAM_PROTO_GetFieldsCounters [13:07:46]wFMCommunicate request_size=4 [13:07:46]MH_SAM_APDU [13:07:46]CAPDU: 80 13 00 00 [13:07:46]Write to MH i2c: E2 08 00 48 11 80 13 00 00 00 00 00 00 D5 [13:07:46]Write i2c OK [13:07:46]MH_I2C_Read... [13:07:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:46]Read from MH i2c: E2 [13:07:46]MH_I2C_Read... [13:07:46]Read from MH i2c: E2 62 00 [13:07:46]MH_I2C_Read... [13:07:46]Read from MH i2c: E2 62 00 48 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 09 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [13:07:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 09 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:07:46]wFMCommunicate OK [13:07:46]SAM_PROTO_GetFieldsCounters done [13:07:46]requested_item shift.num is exist - process it [13:07:46]requested_item shift.opened is exist - process it [13:07:46]req_shift_opened [13:07:46]FM_GetShiftState [13:07:46]SAM_PROTO_GetShiftState [13:07:46]wFMCommunicate request_size=4 [13:07:46]MH_SAM_APDU [13:07:46]CAPDU: 80 13 01 00 [13:07:46]Write to MH i2c: E2 08 00 49 11 80 13 01 00 00 00 00 00 D7 [13:07:46]Write i2c OK [13:07:46]MH_I2C_Read... [13:07:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:46]Read from MH i2c: E2 [13:07:46]MH_I2C_Read... [13:07:46]Read from MH i2c: E2 0E 00 [13:07:46]MH_I2C_Read... [13:07:46]Read from MH i2c: E2 0E 00 49 11 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E6 [13:07:46]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:07:46]wFMCommunicate OK [13:07:46]SAM_PROTO_GetShiftState done [13:07:46]FM_GetShiftState done [13:07:46]req_shift_opened done [13:07:46]requested_item shift.open_date is exist - process it [13:07:46]req_shift_open_date [13:07:46]req_shift_open_date done [13:07:46]produce_requested_data done [13:07:46]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201481,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:07:46]process_action_free close_receipt [13:07:46]json_value_free [13:07:46]json_value_free done [13:07:46]process_json_proto returns [13:07:46]Send response to host [13:07:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201481,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:07:46]free response buf [13:07:46]execute_script done [13:07:46]execute_script returns [13:07:46]free content buf [13:07:46]Sock 8.Close socket [13:07:46]Sock 8.Thread stoped [13:07:50]OFD Sender: No OFD packet to send [13:07:55]OFD Sender: No OFD packet to send [13:08:00]OFD Sender: No OFD packet to send [13:08:05]OFD Sender: No OFD packet to send [13:08:10]OFD Sender: No OFD packet to send [13:08:15]OFD Sender: No OFD packet to send [13:08:20]OFD Sender: No OFD packet to send [13:08:25]OFD Sender: No OFD packet to send [13:08:30]OFD Sender: No OFD packet to send [13:08:35]OFD Sender: No OFD packet to send [13:08:40]OFD Sender: No OFD packet to send [13:08:45]OFD Sender: No OFD packet to send [13:08:50]OFD Sender: No OFD packet to send [13:08:55]OFD Sender: No OFD packet to send [13:09:00]OFD Sender: No OFD packet to send [13:09:05]OFD Sender: No OFD packet to send [13:09:10]OFD Sender: No OFD packet to send [13:09:15]OFD Sender: No OFD packet to send [13:09:20]OFD Sender: No OFD packet to send [13:09:25]OFD Sender: No OFD packet to send [13:09:30]OFD Sender: No OFD packet to send [13:09:35]OFD Sender: No OFD packet to send [13:09:40]OFD Sender: No OFD packet to send [13:09:45]OFD Sender: No OFD packet to send [13:09:50]OFD Sender: No OFD packet to send [13:09:55]OFD Sender: No OFD packet to send [13:10:00]OFD Sender: No OFD packet to send [13:10:05]OFD Sender: No OFD packet to send [13:10:10]OFD Sender: No OFD packet to send [13:10:15]OFD Sender: No OFD packet to send [13:10:20]OFD Sender: No OFD packet to send [13:10:25]OFD Sender: No OFD packet to send [13:10:30]OFD Sender: No OFD packet to send [13:10:35]OFD Sender: No OFD packet to send [13:10:40]OFD Sender: No OFD packet to send [13:10:45]OFD Sender: No OFD packet to send [13:10:50]OFD Sender: No OFD packet to send [13:10:55]OFD Sender: No OFD packet to send [13:11:00]OFD Sender: No OFD packet to send [13:11:05]OFD Sender: No OFD packet to send [13:11:10]OFD Sender: No OFD packet to send [13:11:15]OFD Sender: No OFD packet to send [13:11:20]OFD Sender: No OFD packet to send [13:11:25]OFD Sender: No OFD packet to send [13:11:30]OFD Sender: No OFD packet to send [13:11:35]OFD Sender: No OFD packet to send [13:11:40]OFD Sender: No OFD packet to send [13:11:45]OFD Sender: No OFD packet to send [13:11:50]OFD Sender: No OFD packet to send [13:11:55]OFD Sender: No OFD packet to send [13:12:00]OFD Sender: No OFD packet to send [13:12:05]OFD Sender: No OFD packet to send [13:12:10]OFD Sender: No OFD packet to send [13:12:15]OFD Sender: No OFD packet to send [13:12:20]OFD Sender: No OFD packet to send [13:12:25]OFD Sender: No OFD packet to send [13:12:30]OFD Sender: No OFD packet to send [13:12:35]OFD Sender: No OFD packet to send [13:12:40]OFD Sender: No OFD packet to send [13:12:45]OFD Sender: No OFD packet to send [13:12:50]OFD Sender: No OFD packet to send [13:12:55]OFD Sender: No OFD packet to send [13:13:00]OFD Sender: No OFD packet to send [13:13:05]OFD Sender: No OFD packet to send [13:13:10]OFD Sender: No OFD packet to send [13:13:15]OFD Sender: No OFD packet to send [13:13:20]OFD Sender: No OFD packet to send [13:13:25]OFD Sender: No OFD packet to send [13:13:30]OFD Sender: No OFD packet to send [13:13:35]OFD Sender: No OFD packet to send [13:13:40]OFD Sender: No OFD packet to send [13:13:45]OFD Sender: No OFD packet to send [13:13:50]OFD Sender: No OFD packet to send [13:13:55]OFD Sender: No OFD packet to send [13:14:00]OFD Sender: No OFD packet to send [13:14:05]OFD Sender: No OFD packet to send [13:14:10]OFD Sender: No OFD packet to send [13:14:15]OFD Sender: No OFD packet to send [13:14:20]OFD Sender: No OFD packet to send [13:14:25]OFD Sender: No OFD packet to send [13:14:30]OFD Sender: No OFD packet to send [13:14:35]OFD Sender: No OFD packet to send [13:14:40]OFD Sender: No OFD packet to send [13:14:45]OFD Sender: No OFD packet to send [13:14:50]OFD Sender: No OFD packet to send [13:14:55]OFD Sender: No OFD packet to send [13:15:00]OFD Sender: No OFD packet to send [13:15:05]OFD Sender: No OFD packet to send [13:15:11]OFD Sender: No OFD packet to send [13:15:16]OFD Sender: No OFD packet to send [13:15:21]OFD Sender: No OFD packet to send [13:15:26]OFD Sender: No OFD packet to send [13:15:31]OFD Sender: No OFD packet to send [13:15:36]OFD Sender: No OFD packet to send [13:15:41]OFD Sender: No OFD packet to send [13:15:46]OFD Sender: No OFD packet to send [13:15:51]OFD Sender: No OFD packet to send [13:15:56]OFD Sender: No OFD packet to send [13:16:01]OFD Sender: No OFD packet to send [13:16:02]accept exits with 9 [13:16:02]New connection [13:16:02]New thread 3066690916 created [13:16:02]Thread 3066834276 joined [13:16:02]Waiting for new connection... [13:16:02] Sock 9.Parse request [13:16:02]Sock 9.Check first char [13:16:02]Sock 9.First char is OK [13:16:02]request: POST /json_proto HTTP/1.0 [13:16:02]Method: POST [13:16:02]URL: /json_proto [13:16:02]Method is POST - this is cgi request [13:16:02]url: /json_proto [13:16:02]query_string will be loaded in cgi processing [13:16:02]execute_cgi json_proto POST (null) [13:16:02]execute_cgi path=json_proto method=POST [13:16:02]POST find Content-Length [13:16:02]Host: 172.17.63.195:8080 [13:16:02]Content-Length: 682 [13:16:02]Content-Type: application/json [13:16:02] [13:16:02]POST finish read [13:16:02]Found Content-Length = 682 [13:16:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:02]execute_script... [13:16: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)449232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:02]POST & json_proto [13:16:02]process_json_proto [13:16:02]json parsed OK: [13:16:02]protocol is kg_v1.0 [13:16:02]action value=close_receipt [13:16:02]process_action close_receipt [13:16:02]cmd_close_receipt [13:16:02]MH_GetDate [13:16:02]Write to MH i2c: F0 00 00 4A 11 4A [13:16:02]Write i2c OK [13:16:02]MH_I2C_Read... [13:16:02]Read from MH i2c: F0 [13:16:02]MH_I2C_Read... [13:16:02]Read from MH i2c: F0 09 00 [13:16:02]MH_I2C_Read... [13:16:02]Read from MH i2c: F0 09 00 4A 11 00 93 EB 1C 67 68 46 19 67 82 [13:16:02]GetLastDocTimeStamp 1729948063 [13:16:02]current date 1729948563 [13:16:02]FM_GetShiftState [13:16:02]SAM_PROTO_GetShiftState [13:16:02]wFMCommunicate request_size=4 [13:16:02]MH_SAM_APDU [13:16:02]CAPDU: 80 13 01 00 [13:16:02]Write to MH i2c: E2 08 00 4B 11 80 13 01 00 00 00 00 00 D9 [13:16:02]Write i2c OK [13:16:02]MH_I2C_Read... [13:16:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:02]Read from MH i2c: E2 [13:16:02]MH_I2C_Read... [13:16:02]Read from MH i2c: E2 0E 00 [13:16:02]MH_I2C_Read... [13:16:02]Read from MH i2c: E2 0E 00 4B 11 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E8 [13:16:02]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:16:02]wFMCommunicate OK [13:16:02]SAM_PROTO_GetShiftState done [13:16:02]FM_GetShiftState done [13:16:02]opened in 1729900879 [13:16:02]opened+sec_in_day 1729987279 [13:16:02]quantity*price = 120055 [13:16:02]sum+1 = 120057 [13:16:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 244 26.10.2024 13:16 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201482 ФПД: 83104784254548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T131603&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201482&fm=83104784254548&tin=02508201610067®Number=0000000000091777&sum=120000 [13:16:03]StoreToDocumentArchive [13:16:03]shift 543 fd 201482 [13:16:03]save to /storage/0543/doc_00201482 [13:16:03]save last doc name /storage/0543/doc_00201482 to /storage/kkm_last_doc_name [13:16:03]save OK [13:16:03]Clear old archive folders... [13:16:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:16:03]tlvbuf is 01F359E0 [13:16:03]SAM_PROTO_ClearQueue [13:16:03]wFMCommunicate request_size=4 [13:16:03]MH_SAM_APDU [13:16:03]CAPDU: 80 09 00 00 [13:16:03]Write to MH i2c: E2 08 00 58 11 80 09 00 00 00 00 00 00 DB [13:16:03]Write i2c OK [13:16:03]MH_I2C_Read... [13:16:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:16:03]Read from MH i2c: E2 [13:16:03]MH_I2C_Read... [13:16:03]Read from MH i2c: E2 03 00 [13:16:03]MH_I2C_Read... [13:16:03]Read from MH i2c: E2 03 00 58 11 00 90 00 DD [13:16:03]RAPDU: 90 00 [13:16:03]wFMCommunicate OK [13:16:03]SAM_PROTO_ClearQueue done [13:16:03]KKMCreateOFDPacket [13:16:03]OFDProtocolAddRootSTLVToBuf [13:16:03]FM_MakeSignedData [13:16:03]FM_MakeSignedData [13:16:03]SAM_PROTO_SignData [13:16:03]wFMCommunicate request_size=4 [13:16:03]MH_SAM_APDU [13:16:03]CAPDU: 80 0D 01 02 [13:16:03]Write to MH i2c: E2 08 00 59 11 80 0D 01 02 00 00 00 00 E3 [13:16:03]Write i2c OK [13:16:03]MH_I2C_Read... [13:16:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:16:03]Read from MH i2c: E2 [13:16:03]MH_I2C_Read... [13:16:03]Read from MH i2c: E2 03 00 [13:16:03]MH_I2C_Read... [13:16:03]Read from MH i2c: E2 03 00 59 11 00 90 00 DE [13:16:03]RAPDU: 90 00 [13:16:03]wFMCommunicate OK [13:16:03]wFMCommunicate request_size=255 [13:16:03]MH_SAM_APDU [13:16:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 93 EB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0A 13 03 00 35 04 06 00 4B [13:16:03]Write to MH i2c: E2 02 01 5A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 93 EB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0A 13 03 00 35 04 06 00 4B 00 00 22 [13:16:03]Write i2c OK [13:16:03]MH_I2C_Read... [13:16:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:03]Read from MH i2c: E2 [13:16:03]MH_I2C_Read... [13:16:03]Read from MH i2c: E2 03 00 [13:16:03]MH_I2C_Read... [13:16:03]Read from MH i2c: E2 03 00 5A 11 00 90 00 DF [13:16:03]RAPDU: 90 00 [13:16:03]wFMCommunicate OK [13:16:03]wFMCommunicate request_size=10 [13:16:03]MH_SAM_APDU [13:16:03]CAPDU: 80 0D 02 02 05 95 57 25 06 54 [13:16:03]Write to MH i2c: E2 0D 00 5B 11 80 0D 02 02 05 00 95 57 25 06 54 00 00 5B [13:16:03]Write i2c OK [13:16:03]MH_I2C_Read... [13:16:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:03]Read from MH i2c: E2 [13:16:03]MH_I2C_Read... [13:16:03]Read from MH i2c: E2 03 00 [13:16:03]MH_I2C_Read... [13:16:03]Read from MH i2c: E2 03 00 5B 11 00 90 00 E0 [13:16:03]RAPDU: 90 00 [13:16:03]wFMCommunicate OK [13:16:03]wFMCommunicate request_size=4 [13:16:03]MH_SAM_APDU [13:16:03]CAPDU: 80 0D 03 02 [13:16:03]Write to MH i2c: E2 08 00 5C 11 80 0D 03 02 00 00 00 00 E8 [13:16:03]Write i2c OK [13:16:03]MH_I2C_Read... [13:16:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:16:03]Read from MH i2c: E2 [13:16:03]MH_I2C_Read... [13:16:03]Read from MH i2c: E2 0B 00 [13:16:03]MH_I2C_Read... [13:16:03]Read from MH i2c: E2 0B 00 5C 11 00 28 6F 63 92 5C 12 CB 34 90 00 E2 [13:16:03]RAPDU: 28 6F 63 92 5C 12 CB 34 90 00 [13:16:03]wFMCommunicate OK [13:16:03]SAM_PROTO_SignData done [13:16:03]FM_MakeSignedData done [13:16:03]CreateOFDProtocolMessage [13:16:03]wFMCommunicate request_size=4 [13:16:03]MH_SAM_APDU [13:16:03]CAPDU: 80 11 00 00 [13:16:03]Write to MH i2c: E2 08 00 5D 11 80 11 00 00 00 00 00 00 E8 [13:16:03]Write i2c OK [13:16:03]MH_I2C_Read... [13:16:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:03]Read from MH i2c: E2 [13:16:03]MH_I2C_Read... [13:16:03]Read from MH i2c: E2 17 00 [13:16:03]MH_I2C_Read... [13:16:03]Read from MH i2c: E2 17 00 5D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3D [13:16:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:16:03]wFMCommunicate OK [13:16:03]CreateOFDProtocolMessage done [13:16:03]OFDSenderStorePacket 201482 [13:16:03]StoreOFDPacket docnum=201482 [13:16:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 0E 16 07 01 29 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 93 EB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0A 13 03 00 35 04 06 00 4B 95 57 25 06 54 28 6F 63 92 5C 12 CB 34 [13:16:03]CheckFolder [13:16:03]dirname=/storage/ofd_packets [13:16:03]CheckFolder done [13:16:03]ProducePacketName [13:16:03]name=ofd_packets/00201482 [13:16:03]NVStorageSaveData ofd_packets/00201482 [13:16:03]File name is /storage/ofd_packets/00201482 [13:16:03]Write 301 bytes [13:16:03]NVStorageSaveData done [13:16:03]OFDSenderStorePacket done [13:16:03]KKMCreateOFDPacket done [13:16:03]NVStorageSaveData kkm_last_timestamp [13:16:03]File name is /storage/kkm_last_timestamp [13:16:03]Write 4 bytes [13:16:03]NVStorageSaveData done [13:16:03]ExternCall_PrintAddStr [13:16:03]wPrintStart [13:16:03]Write to MH i2c: 01 00 00 5E 11 6F [13:16:03]Write i2c OK [13:16:03]MH_I2C_Read... [13:16:03]Read from MH i2c: 01 [13:16:03]MH_I2C_Read... [13:16:03]Read from MH i2c: 01 07 00 [13:16:03]MH_I2C_Read... [13:16:03]Read from MH i2c: 01 07 00 5E 11 00 00 00 00 00 FF 0F 84 [13:16:03]RasterBufferAndPrint [13:16:03]line Счет N : (1)449232 [13:16:03]line ИНН: 02508201610067 [13:16:03]line Контрольно-Кассовый Чек [13:16:03]line ПРОДАЖА [13:16:03]line ТРК (МРК, ГНК) : 51 [13:16:03]line Товар: 2710124500 [13:16:03]line Аи-95-К-3 [13:16:03]line 16.180 * 74.20 [13:16:03]line = 1200.56 [13:16:03]line НДС 12% НСП 1% [13:16:03]line > о реализуемом товаре [13:16:03]line ОКРУГЛЕНИЕ: -0.56 [13:16:03]line ИТОГО: 1200.00 [13:16:03]line Внесено: 1200.00 [13:16:03]line СДАЧА: 0.00 [13:16:03]line НСП 1% : 10.62 [13:16:03]line НДС 12% : 127.49 [13:16:03]line Наличными: 1200.00 [13:16:03]line Безнал.: 0.00 [13:16:03]line Место: АЗС № 171 "Партнер Нефть" [13:16:03]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:16:03]line СНО: Общий режим [13:16:03]line Чек 244 26.10.2024 13:16 [13:16:03]line Смена: 543 ФФД: 1.0 [13:16:03]line ЗНМ: 0300000109 [13:16:03]line РНМ: 0000000000091777 [13:16:03]line Версия ККМ: 001 [13:16:03]line ФМ: 0000000000871756 [13:16:03]line ФД: 201482 [13:16:03]line ФПД: 83104784254548 [13:16:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T131603&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201482&fm=83104784254548&tin=02508201610067®Number=0000000000091777&sum=120000 [13:16:04]OFD Sender: Processing packet 201482 [packets to send 112, broken 111] [13:16:04]ProducePacketName [13:16:04]name=ofd_packets/00201482 [13:16:04]OFD Sender: To server: pG, [13:16:04]CommunicateWithHost lk.salyk.kg:30040 [13:16:04]ConnectInit lk.salyk.kg [13:16:04]written 0, free lines is 4095 [13:16:04]Connected sock=10 [13:16:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 0E 16 07 01 29 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 93 EB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0A 13 03 00 35 04 06 00 4B 95 57 25 06 54 28 6F 63 92 5C 12 CB 34 [13:16:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F1 DA 47 00 D0 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0A 13 03 00 F4 03 04 00 3C 97 1C 67 B6 04 01 00 00 D5 DB 4C BA 79 A2 0B 92 [13:16:04]CommunicateWithHost err = 0 [13:16:04]CheckOFDResponse [13:16:04]1017 (14) - 77093643461234 [13:16:04]1041 (16) - 0000000000871756 [13:16:04]1040 (4) - 201482 [13:16:04]1012 (4) - 26.10.2024 07:16 [13:16:04]1206 (1) - 0 [13:16:04]OFD Sender: Remove packet 201482 [13:16:04]ProducePacketName [13:16:04]name=ofd_packets/00201482 [13:16:04]NVStorageDeleteData [13:16:04]Write to MH i2c: 01 00 00 89 11 9A [13:16:04]Write i2c OK [13:16:04]MH_I2C_Read... [13:16:04]Read from MH i2c: 01 [13:16:04]MH_I2C_Read... [13:16:04]Read from MH i2c: 01 07 00 [13:16:04]MH_I2C_Read... [13:16:04]Read from MH i2c: 01 07 00 89 11 00 00 00 00 00 9D 0C 4A [13:16:04]RasterBufferAndPrint [13:16:04]line [13:16:04]line [13:16:04]line [13:16:04]line [13:16:04]line [13:16:04]written 0, free lines is 3235 [13:16:04]MH_Cut [13:16:04]Write to MH i2c: D1 01 00 90 11 01 73 [13:16:04]Write i2c OK [13:16:04]MH_I2C_Read... [13:16:04]Read from MH i2c: D1 [13:16:04]MH_I2C_Read... [13:16:04]Read from MH i2c: D1 01 00 [13:16:04]MH_I2C_Read... [13:16:04]Read from MH i2c: D1 01 00 90 11 00 72 [13:16:04]Write to MH i2c: 01 00 00 91 11 A2 [13:16:04]Write i2c OK [13:16:04]MH_I2C_Read... [13:16:05]OFD Sender: No OFD packet to send [13:16:05]*** Cut start [13:16:05]*** Purtial cut [13:16:05]*** Stage 1: CUTSNS_PIN = 1 [13:16:05]Read from MH i2c: 01 [13:16:05]MH_I2C_Read... [13:16:05]*** Stop cut motor [13:16:05]*** Cut end [13:16:05]Read from MH i2c: 01 07 00 [13:16:05]MH_I2C_Read... [13:16:05]Read from MH i2c: 01 07 00 91 11 00 00 00 00 00 FF 0F B7 [13:16:05]process_action close_receipt done [13:16:05]requested_data is exist [13:16:05]produce_requested_data [13:16:05]requested_item fm.sn is exist - process it [13:16:05]wFMCommunicate request_size=4 [13:16:05]MH_SAM_APDU [13:16:05]CAPDU: 80 11 00 00 [13:16:05]Write to MH i2c: E2 08 00 92 11 80 11 00 00 00 00 00 00 1D [13:16:05]Write i2c OK [13:16:05]MH_I2C_Read... [13:16:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:05]Read from MH i2c: E2 [13:16:05]MH_I2C_Read... [13:16:05]Read from MH i2c: E2 17 00 [13:16:05]MH_I2C_Read... [13:16:05]Read from MH i2c: E2 17 00 92 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 72 [13:16:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:16:05]wFMCommunicate OK [13:16:05]requested_item fd.num is exist - process it [13:16:05]SAM_PROTO_GetFieldsCounters [13:16:05]wFMCommunicate request_size=4 [13:16:05]MH_SAM_APDU [13:16:05]CAPDU: 80 13 00 00 [13:16:05]Write to MH i2c: E2 08 00 93 11 80 13 00 00 00 00 00 00 20 [13:16:05]Write i2c OK [13:16:05]MH_I2C_Read... [13:16:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:05]Read from MH i2c: E2 [13:16:05]MH_I2C_Read... [13:16:05]Read from MH i2c: E2 62 00 [13:16:05]MH_I2C_Read... [13:16:05]Read from MH i2c: E2 62 00 93 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0A 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [13:16:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0A 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:16:05]wFMCommunicate OK [13:16:05]SAM_PROTO_GetFieldsCounters done [13:16:05]requested_item shift.num is exist - process it [13:16:05]requested_item shift.opened is exist - process it [13:16:05]req_shift_opened [13:16:05]FM_GetShiftState [13:16:05]SAM_PROTO_GetShiftState [13:16:05]wFMCommunicate request_size=4 [13:16:05]MH_SAM_APDU [13:16:05]CAPDU: 80 13 01 00 [13:16:05]Write to MH i2c: E2 08 00 94 11 80 13 01 00 00 00 00 00 22 [13:16:05]Write i2c OK [13:16:05]MH_I2C_Read... [13:16:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:06]Read from MH i2c: E2 [13:16:06]MH_I2C_Read... [13:16:06]Read from MH i2c: E2 0E 00 [13:16:06]MH_I2C_Read... [13:16:06]Read from MH i2c: E2 0E 00 94 11 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 31 [13:16:06]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:16:06]wFMCommunicate OK [13:16:06]SAM_PROTO_GetShiftState done [13:16:06]FM_GetShiftState done [13:16:06]req_shift_opened done [13:16:06]requested_item shift.open_date is exist - process it [13:16:06]req_shift_open_date [13:16:06]req_shift_open_date done [13:16:06]produce_requested_data done [13:16:06]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201482,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:16:06]process_action_free close_receipt [13:16:06]json_value_free [13:16:06]json_value_free done [13:16:06]process_json_proto returns [13:16:06]Send response to host [13:16:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201482,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:16:06]free response buf [13:16:06]execute_script done [13:16:06]execute_script returns [13:16:06]free content buf [13:16:06]Sock 9.Close socket [13:16:06]Sock 9.Thread stoped [13:16:10]OFD Sender: No OFD packet to send [13:16:15]OFD Sender: No OFD packet to send [13:16:20]OFD Sender: No OFD packet to send [13:16:25]OFD Sender: No OFD packet to send [13:16:30]OFD Sender: No OFD packet to send [13:16:35]OFD Sender: No OFD packet to send [13:16:35]accept exits with 8 [13:16:35]New connection [13:16:35]New thread 3066834276 created [13:16:35]Thread 3066690916 joined [13:16:35]Waiting for new connection... [13:16:35] Sock 8.Parse request [13:16:35]Sock 8.Check first char [13:16:35]Sock 8.First char is OK [13:16:35]request: POST /json_proto HTTP/1.0 [13:16:35]Method: POST [13:16:35]URL: /json_proto [13:16:35]Method is POST - this is cgi request [13:16:35]url: /json_proto [13:16:35]query_string will be loaded in cgi processing [13:16:35]execute_cgi json_proto POST (null) [13:16:35]execute_cgi path=json_proto method=POST [13:16:35]POST find Content-Length [13:16:35]Host: 172.17.63.195:8080 [13:16:35]Content-Length: 677 [13:16:35]Content-Type: application/json [13:16:35] [13:16:35]POST finish read [13:16:35]Found Content-Length = 677 [13:16:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [13:16:35]execute_script... [13:16: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)449233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [13:16:35]POST & json_proto [13:16:35]process_json_proto [13:16:35]json parsed OK: [13:16:35]protocol is kg_v1.0 [13:16:35]action value=close_receipt [13:16:35]process_action close_receipt [13:16:35]cmd_close_receipt [13:16:35]MH_GetDate [13:16:35]Write to MH i2c: F0 00 00 95 11 95 [13:16:35]Write i2c OK [13:16:35]MH_I2C_Read... [13:16:35]Read from MH i2c: F0 [13:16:35]MH_I2C_Read... [13:16:35]Read from MH i2c: F0 09 00 [13:16:35]MH_I2C_Read... [13:16:35]Read from MH i2c: F0 09 00 95 11 00 B4 EB 1C 67 68 46 19 67 EE [13:16:35]GetLastDocTimeStamp 1729948563 [13:16:35]current date 1729948596 [13:16:35]FM_GetShiftState [13:16:35]SAM_PROTO_GetShiftState [13:16:35]wFMCommunicate request_size=4 [13:16:35]MH_SAM_APDU [13:16:35]CAPDU: 80 13 01 00 [13:16:35]Write to MH i2c: E2 08 00 96 11 80 13 01 00 00 00 00 00 24 [13:16:35]Write i2c OK [13:16:35]MH_I2C_Read... [13:16:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:35]Read from MH i2c: E2 [13:16:35]MH_I2C_Read... [13:16:35]Read from MH i2c: E2 0E 00 [13:16:35]MH_I2C_Read... [13:16:35]Read from MH i2c: E2 0E 00 96 11 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 33 [13:16:35]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:16:35]wFMCommunicate OK [13:16:35]SAM_PROTO_GetShiftState done [13:16:35]FM_GetShiftState done [13:16:35]opened in 1729900879 [13:16:35]opened+sec_in_day 1729987279 [13:16:35]quantity*price = 35055 [13:16:35]sum+1 = 35057 [13:16:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 245 26.10.2024 13:16 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201483 ФПД: 167988444983813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T131636&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201483&fm=167988444983813&tin=02508201610067®Number=0000000000091777&sum=35000 [13:16:37]StoreToDocumentArchive [13:16:37]shift 543 fd 201483 [13:16:37]save to /storage/0543/doc_00201483 [13:16:37]save last doc name /storage/0543/doc_00201483 to /storage/kkm_last_doc_name [13:16:37]save OK [13:16:37]Clear old archive folders... [13:16:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:16:37]tlvbuf is 01F49840 [13:16:37]SAM_PROTO_ClearQueue [13:16:37]wFMCommunicate request_size=4 [13:16:37]MH_SAM_APDU [13:16:37]CAPDU: 80 09 00 00 [13:16:37]Write to MH i2c: E2 08 00 A3 11 80 09 00 00 00 00 00 00 26 [13:16:37]Write i2c OK [13:16:37]MH_I2C_Read... [13:16:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:16:37]Read from MH i2c: E2 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: E2 03 00 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: E2 03 00 A3 11 00 90 00 28 [13:16:37]RAPDU: 90 00 [13:16:37]wFMCommunicate OK [13:16:37]SAM_PROTO_ClearQueue done [13:16:37]KKMCreateOFDPacket [13:16:37]OFDProtocolAddRootSTLVToBuf [13:16:37]FM_MakeSignedData [13:16:37]FM_MakeSignedData [13:16:37]SAM_PROTO_SignData [13:16:37]wFMCommunicate request_size=4 [13:16:37]MH_SAM_APDU [13:16:37]CAPDU: 80 0D 01 02 [13:16:37]Write to MH i2c: E2 08 00 A4 11 80 0D 01 02 00 00 00 00 2E [13:16:37]Write i2c OK [13:16:37]MH_I2C_Read... [13:16:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:16:37]Read from MH i2c: E2 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: E2 03 00 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: E2 03 00 A4 11 00 90 00 29 [13:16:37]RAPDU: 90 00 [13:16:37]wFMCommunicate OK [13:16:37]wFMCommunicate request_size=255 [13:16:37]MH_SAM_APDU [13:16:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 F5 00 00 00 F4 03 04 00 B4 EB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0B 13 03 00 35 04 06 00 98 [13:16:37]Write to MH i2c: E2 02 01 A5 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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 F5 00 00 00 F4 03 04 00 B4 EB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0B 13 03 00 35 04 06 00 98 00 00 BE [13:16:37]Write i2c OK [13:16:37]MH_I2C_Read... [13:16:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:37]Read from MH i2c: E2 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: E2 03 00 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: E2 03 00 A5 11 00 90 00 2A [13:16:37]RAPDU: 90 00 [13:16:37]wFMCommunicate OK [13:16:37]wFMCommunicate request_size=10 [13:16:37]MH_SAM_APDU [13:16:37]CAPDU: 80 0D 02 02 05 C8 DB 96 F2 05 [13:16:37]Write to MH i2c: E2 0D 00 A6 11 80 0D 02 02 05 00 C8 DB 96 F2 05 00 00 6B [13:16:37]Write i2c OK [13:16:37]MH_I2C_Read... [13:16:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:37]Read from MH i2c: E2 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: E2 03 00 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: E2 03 00 A6 11 00 90 00 2B [13:16:37]RAPDU: 90 00 [13:16:37]wFMCommunicate OK [13:16:37]wFMCommunicate request_size=4 [13:16:37]MH_SAM_APDU [13:16:37]CAPDU: 80 0D 03 02 [13:16:37]Write to MH i2c: E2 08 00 A7 11 80 0D 03 02 00 00 00 00 33 [13:16:37]Write i2c OK [13:16:37]MH_I2C_Read... [13:16:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:16:37]Read from MH i2c: E2 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: E2 0B 00 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: E2 0B 00 A7 11 00 F9 5C 0D 8A 43 6A 90 87 90 00 E4 [13:16:37]RAPDU: F9 5C 0D 8A 43 6A 90 87 90 00 [13:16:37]wFMCommunicate OK [13:16:37]SAM_PROTO_SignData done [13:16:37]FM_MakeSignedData done [13:16:37]CreateOFDProtocolMessage [13:16:37]wFMCommunicate request_size=4 [13:16:37]MH_SAM_APDU [13:16:37]CAPDU: 80 11 00 00 [13:16:37]Write to MH i2c: E2 08 00 A8 11 80 11 00 00 00 00 00 00 33 [13:16:37]Write i2c OK [13:16:37]MH_I2C_Read... [13:16:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:37]Read from MH i2c: E2 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: E2 17 00 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: E2 17 00 A8 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 88 [13:16:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:16:37]wFMCommunicate OK [13:16:37]CreateOFDProtocolMessage done [13:16:37]OFDSenderStorePacket 201483 [13:16:37]StoreOFDPacket docnum=201483 [13:16:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 EF 9D 07 01 8B 90 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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 F5 00 00 00 F4 03 04 00 B4 EB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0B 13 03 00 35 04 06 00 98 C8 DB 96 F2 05 F9 5C 0D 8A 43 6A 90 87 [13:16:37]CheckFolder [13:16:37]dirname=/storage/ofd_packets [13:16:37]CheckFolder done [13:16:37]ProducePacketName [13:16:37]name=ofd_packets/00201483 [13:16:37]NVStorageSaveData ofd_packets/00201483 [13:16:37]File name is /storage/ofd_packets/00201483 [13:16:37]Write 301 bytes [13:16:37]NVStorageSaveData done [13:16:37]OFDSenderStorePacket done [13:16:37]KKMCreateOFDPacket done [13:16:37]NVStorageSaveData kkm_last_timestamp [13:16:37]File name is /storage/kkm_last_timestamp [13:16:37]Write 4 bytes [13:16:37]NVStorageSaveData done [13:16:37]ExternCall_PrintAddStr [13:16:37]wPrintStart [13:16:37]Write to MH i2c: 01 00 00 A9 11 BA [13:16:37]Write i2c OK [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: 01 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: 01 07 00 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: 01 07 00 A9 11 00 00 00 00 00 FF 0F CF [13:16:37]RasterBufferAndPrint [13:16:37]line Счет N : (1)449233 [13:16:37]line ИНН: 02508201610067 [13:16:37]line Контрольно-Кассовый Чек [13:16:37]line ПРОДАЖА [13:16:37]line ТРК (МРК, ГНК) : 31 [13:16:37]line Товар: 2710124130 [13:16:37]line Аи-92-К-2 [13:16:37]line 5.240 * 66.90 [13:16:37]line = 350.56 [13:16:37]line НДС 12% НСП 1% [13:16:37]line > о реализуемом товаре [13:16:37]line ОКРУГЛЕНИЕ: -0.56 [13:16:37]line ИТОГО: 350.00 [13:16:37]line Внесено: 350.00 [13:16:37]line СДАЧА: 0.00 [13:16:37]line НСП 1% : 3.10 [13:16:37]line НДС 12% : 37.23 [13:16:37]line Наличными: 350.00 [13:16:37]line Безнал.: 0.00 [13:16:37]line Место: АЗС № 171 "Партнер Нефть" [13:16:37]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:16:37]line СНО: Общий режим [13:16:37]line Чек 245 26.10.2024 13:16 [13:16:37]line Смена: 543 ФФД: 1.0 [13:16:37]line ЗНМ: 0300000109 [13:16:37]line РНМ: 0000000000091777 [13:16:37]line Версия ККМ: 001 [13:16:37]line ФМ: 0000000000871756 [13:16:37]line ФД: 201483 [13:16:37]line ФПД: 167988444983813 [13:16:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T131636&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201483&fm=167988444983813&tin=02508201610067®Number=0000000000091777&sum=35000 [13:16:38]OFD Sender: Processing packet 201483 [packets to send 112, broken 111] [13:16:38]ProducePacketName [13:16:38]name=ofd_packets/00201483 [13:16:38]OFD Sender: To server: pG, [13:16:38]CommunicateWithHost lk.salyk.kg:30040 [13:16:38]ConnectInit lk.salyk.kg [13:16:38]written 0, free lines is 4095 [13:16:38]Connected sock=10 [13:16:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 EF 9D 07 01 8B 90 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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 F5 00 00 00 F4 03 04 00 B4 EB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0B 13 03 00 35 04 06 00 98 C8 DB 96 F2 05 F9 5C 0D 8A 43 6A 90 87 [13:16:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 2C 75 47 00 0A 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 38 37 31 37 35 36 10 04 04 00 0B 13 03 00 F4 03 04 00 5D 97 1C 67 B6 04 01 00 00 39 3A 66 4A B2 D5 28 52 [13:16:38]CommunicateWithHost err = 0 [13:16:38]CheckOFDResponse [13:16:38]1017 (14) - 77093643461234 [13:16:38]1041 (16) - 0000000000871756 [13:16:38]1040 (4) - 201483 [13:16:38]1012 (4) - 26.10.2024 07:16 [13:16:38]1206 (1) - 0 [13:16:38]OFD Sender: Remove packet 201483 [13:16:38]ProducePacketName [13:16:38]name=ofd_packets/00201483 [13:16:38]NVStorageDeleteData [13:16:38]Write to MH i2c: 01 00 00 D4 11 E5 [13:16:38]Write i2c OK [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: 01 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: 01 07 00 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: 01 07 00 D4 11 00 00 00 00 00 A3 0C 9B [13:16:38]RasterBufferAndPrint [13:16:38]line [13:16:38]line [13:16:38]line [13:16:38]line [13:16:38]line [13:16:38]written 0, free lines is 3241 [13:16:38]MH_Cut [13:16:38]Write to MH i2c: D1 01 00 DB 11 01 BE [13:16:38]Write i2c OK [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: D1 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: D1 01 00 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: D1 01 00 DB 11 00 BD [13:16:38]Write to MH i2c: 01 00 00 DC 11 ED [13:16:38]Write i2c OK [13:16:38]MH_I2C_Read... [13:16:38]OFD Sender: No OFD packet to send [13:16:39]*** Cut start [13:16:39]*** Purtial cut [13:16:39]*** Stage 1: CUTSNS_PIN = 1 [13:16:39]Read from MH i2c: 01 [13:16:39]MH_I2C_Read... [13:16:39]*** Stop cut motor [13:16:39]*** Cut end [13:16:39]Read from MH i2c: 01 07 00 [13:16:39]MH_I2C_Read... [13:16:39]Read from MH i2c: 01 07 00 DC 11 00 00 00 00 00 FF 0F 02 [13:16:39]process_action close_receipt done [13:16:39]requested_data is exist [13:16:39]produce_requested_data [13:16:39]requested_item fm.sn is exist - process it [13:16:39]wFMCommunicate request_size=4 [13:16:39]MH_SAM_APDU [13:16:39]CAPDU: 80 11 00 00 [13:16:39]Write to MH i2c: E2 08 00 DD 11 80 11 00 00 00 00 00 00 68 [13:16:39]Write i2c OK [13:16:39]MH_I2C_Read... [13:16:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:39]Read from MH i2c: E2 [13:16:39]MH_I2C_Read... [13:16:39]Read from MH i2c: E2 17 00 [13:16:39]MH_I2C_Read... [13:16:39]Read from MH i2c: E2 17 00 DD 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BD [13:16:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:16:39]wFMCommunicate OK [13:16:39]requested_item fd.num is exist - process it [13:16:39]SAM_PROTO_GetFieldsCounters [13:16:39]wFMCommunicate request_size=4 [13:16:39]MH_SAM_APDU [13:16:39]CAPDU: 80 13 00 00 [13:16:39]Write to MH i2c: E2 08 00 DE 11 80 13 00 00 00 00 00 00 6B [13:16:39]Write i2c OK [13:16:39]MH_I2C_Read... [13:16:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:39]Read from MH i2c: E2 [13:16:39]MH_I2C_Read... [13:16:39]Read from MH i2c: E2 62 00 [13:16:39]MH_I2C_Read... [13:16:39]Read from MH i2c: E2 62 00 DE 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0B 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [13:16:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0B 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:16:39]wFMCommunicate OK [13:16:39]SAM_PROTO_GetFieldsCounters done [13:16:39]requested_item shift.num is exist - process it [13:16:39]requested_item shift.opened is exist - process it [13:16:39]req_shift_opened [13:16:39]FM_GetShiftState [13:16:39]SAM_PROTO_GetShiftState [13:16:39]wFMCommunicate request_size=4 [13:16:39]MH_SAM_APDU [13:16:39]CAPDU: 80 13 01 00 [13:16:39]Write to MH i2c: E2 08 00 DF 11 80 13 01 00 00 00 00 00 6D [13:16:39]Write i2c OK [13:16:39]MH_I2C_Read... [13:16:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:39]Read from MH i2c: E2 [13:16:39]MH_I2C_Read... [13:16:39]Read from MH i2c: E2 0E 00 [13:16:39]MH_I2C_Read... [13:16:39]Read from MH i2c: E2 0E 00 DF 11 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 7C [13:16:39]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:16:39]wFMCommunicate OK [13:16:39]SAM_PROTO_GetShiftState done [13:16:39]FM_GetShiftState done [13:16:39]req_shift_opened done [13:16:39]requested_item shift.open_date is exist - process it [13:16:39]req_shift_open_date [13:16:39]req_shift_open_date done [13:16:39]produce_requested_data done [13:16:39]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201483,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:16:39]process_action_free close_receipt [13:16:39]json_value_free [13:16:39]json_value_free done [13:16:39]process_json_proto returns [13:16:39]Send response to host [13:16:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201483,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:16:39]free response buf [13:16:39]execute_script done [13:16:39]execute_script returns [13:16:39]free content buf [13:16:39]Sock 8.Close socket [13:16:39]Sock 8.Thread stoped [13:16:43]OFD Sender: No OFD packet to send [13:16:48]OFD Sender: No OFD packet to send [13:16:53]OFD Sender: No OFD packet to send [13:16:58]OFD Sender: No OFD packet to send [13:17:03]OFD Sender: No OFD packet to send [13:17:08]OFD Sender: No OFD packet to send [13:17:13]OFD Sender: No OFD packet to send [13:17:18]OFD Sender: No OFD packet to send [13:17:23]OFD Sender: No OFD packet to send [13:17:28]OFD Sender: No OFD packet to send [13:17:33]OFD Sender: No OFD packet to send [13:17:38]OFD Sender: No OFD packet to send [13:17:43]OFD Sender: No OFD packet to send [13:17:48]accept exits with 9 [13:17:48]New connection [13:17:48]New thread 3066690916 created [13:17:48]Thread 3066834276 joined [13:17:48]Waiting for new connection... [13:17:48] Sock 9.Parse request [13:17:48]Sock 9.Check first char [13:17:48]Sock 9.First char is OK [13:17:48]request: POST /json_proto HTTP/1.0 [13:17:48]Method: POST [13:17:48]URL: /json_proto [13:17:48]Method is POST - this is cgi request [13:17:48]url: /json_proto [13:17:48]query_string will be loaded in cgi processing [13:17:48]execute_cgi json_proto POST (null) [13:17:48]execute_cgi path=json_proto method=POST [13:17:48]POST find Content-Length [13:17:48]Host: 172.17.63.195:8080 [13:17:48]Content-Length: 677 [13:17:48]Content-Type: application/json [13:17:48] [13:17:48]POST finish read [13:17:48]Found Content-Length = 677 [13:17:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:17:48]execute_script... [13:17:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:17:48]POST & json_proto [13:17:48]process_json_proto [13:17:48]json parsed OK: [13:17:48]protocol is kg_v1.0 [13:17:48]action value=close_receipt [13:17:48]process_action close_receipt [13:17:48]cmd_close_receipt [13:17:48]MH_GetDate [13:17:48]Write to MH i2c: F0 00 00 E0 11 E0 [13:17:48]Write i2c OK [13:17:48]MH_I2C_Read... [13:17:48]Read from MH i2c: F0 [13:17:48]MH_I2C_Read... [13:17:48]Read from MH i2c: F0 09 00 [13:17:48]MH_I2C_Read... [13:17:48]Read from MH i2c: F0 09 00 E0 11 00 FD EB 1C 67 68 46 19 67 82 [13:17:48]GetLastDocTimeStamp 1729948596 [13:17:48]current date 1729948669 [13:17:48]FM_GetShiftState [13:17:48]SAM_PROTO_GetShiftState [13:17:48]wFMCommunicate request_size=4 [13:17:48]MH_SAM_APDU [13:17:48]CAPDU: 80 13 01 00 [13:17:48]Write to MH i2c: E2 08 00 E1 11 80 13 01 00 00 00 00 00 6F [13:17:48]Write i2c OK [13:17:48]MH_I2C_Read... [13:17:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:48]Read from MH i2c: E2 [13:17:48]MH_I2C_Read... [13:17:48]Read from MH i2c: E2 0E 00 [13:17:48]MH_I2C_Read... [13:17:48]Read from MH i2c: E2 0E 00 E1 11 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 7E [13:17:48]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:17:48]wFMCommunicate OK [13:17:48]SAM_PROTO_GetShiftState done [13:17:48]FM_GetShiftState done [13:17:48]opened in 1729900879 [13:17:48]opened+sec_in_day 1729987279 [13:17:48]quantity*price = 20003 [13:17:48]sum+1 = 20004 [13:17:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 246 26.10.2024 13:17 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201484 ФПД: 273506275156021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T131749&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201484&fm=273506275156021&tin=02508201610067®Number=0000000000091777&sum=20000 [13:17:49]StoreToDocumentArchive [13:17:49]shift 543 fd 201484 [13:17:49]save to /storage/0543/doc_00201484 [13:17:49]save last doc name /storage/0543/doc_00201484 to /storage/kkm_last_doc_name [13:17:49]save OK [13:17:49]Clear old archive folders... [13:17:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:17:49]tlvbuf is 01F81680 [13:17:49]SAM_PROTO_ClearQueue [13:17:49]wFMCommunicate request_size=4 [13:17:49]MH_SAM_APDU [13:17:49]CAPDU: 80 09 00 00 [13:17:49]Write to MH i2c: E2 08 00 EE 11 80 09 00 00 00 00 00 00 71 [13:17:49]Write i2c OK [13:17:49]MH_I2C_Read... [13:17:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:50]Read from MH i2c: E2 [13:17:50]MH_I2C_Read... [13:17:50]Read from MH i2c: E2 03 00 [13:17:50]MH_I2C_Read... [13:17:50]Read from MH i2c: E2 03 00 EE 11 00 90 00 73 [13:17:50]RAPDU: 90 00 [13:17:50]wFMCommunicate OK [13:17:50]SAM_PROTO_ClearQueue done [13:17:50]KKMCreateOFDPacket [13:17:50]OFDProtocolAddRootSTLVToBuf [13:17:50]FM_MakeSignedData [13:17:50]FM_MakeSignedData [13:17:50]SAM_PROTO_SignData [13:17:50]wFMCommunicate request_size=4 [13:17:50]MH_SAM_APDU [13:17:50]CAPDU: 80 0D 01 02 [13:17:50]Write to MH i2c: E2 08 00 EF 11 80 0D 01 02 00 00 00 00 79 [13:17:50]Write i2c OK [13:17:50]MH_I2C_Read... [13:17:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:50]Read from MH i2c: E2 [13:17:50]MH_I2C_Read... [13:17:50]Read from MH i2c: E2 03 00 [13:17:50]MH_I2C_Read... [13:17:50]Read from MH i2c: E2 03 00 EF 11 00 90 00 74 [13:17:50]RAPDU: 90 00 [13:17:50]wFMCommunicate OK [13:17:50]wFMCommunicate request_size=255 [13:17:50]MH_SAM_APDU [13:17: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 32 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 F6 00 00 00 F4 03 04 00 FD EB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0C 13 03 00 35 04 06 00 F8 [13:17:50]Write to MH i2c: E2 02 01 F0 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 32 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 F6 00 00 00 F4 03 04 00 FD EB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0C 13 03 00 35 04 06 00 F8 00 00 6B [13:17:50]Write i2c OK [13:17:50]MH_I2C_Read... [13:17:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:50]Read from MH i2c: E2 [13:17:50]MH_I2C_Read... [13:17:50]Read from MH i2c: E2 03 00 [13:17:50]MH_I2C_Read... [13:17:50]Read from MH i2c: E2 03 00 F0 11 00 90 00 75 [13:17:50]RAPDU: 90 00 [13:17:50]wFMCommunicate OK [13:17:50]wFMCommunicate request_size=10 [13:17:50]MH_SAM_APDU [13:17:50]CAPDU: 80 0D 02 02 05 C0 A4 5F E0 35 [13:17:50]Write to MH i2c: E2 0D 00 F1 11 80 0D 02 02 05 00 C0 A4 5F E0 35 00 00 5E [13:17:50]Write i2c OK [13:17:50]MH_I2C_Read... [13:17:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:50]Read from MH i2c: E2 [13:17:50]MH_I2C_Read... [13:17:50]Read from MH i2c: E2 03 00 [13:17:50]MH_I2C_Read... [13:17:50]Read from MH i2c: E2 03 00 F1 11 00 90 00 76 [13:17:50]RAPDU: 90 00 [13:17:50]wFMCommunicate OK [13:17:50]wFMCommunicate request_size=4 [13:17:50]MH_SAM_APDU [13:17:50]CAPDU: 80 0D 03 02 [13:17:50]Write to MH i2c: E2 08 00 F2 11 80 0D 03 02 00 00 00 00 7E [13:17:50]Write i2c OK [13:17:50]MH_I2C_Read... [13:17:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:50]Read from MH i2c: E2 [13:17:50]MH_I2C_Read... [13:17:50]Read from MH i2c: E2 0B 00 [13:17:50]MH_I2C_Read... [13:17:50]Read from MH i2c: E2 0B 00 F2 11 00 D4 6E 38 81 55 E7 E7 B8 90 00 55 [13:17:50]RAPDU: D4 6E 38 81 55 E7 E7 B8 90 00 [13:17:50]wFMCommunicate OK [13:17:50]SAM_PROTO_SignData done [13:17:50]FM_MakeSignedData done [13:17:50]CreateOFDProtocolMessage [13:17:50]wFMCommunicate request_size=4 [13:17:50]MH_SAM_APDU [13:17:50]CAPDU: 80 11 00 00 [13:17:50]Write to MH i2c: E2 08 00 F3 11 80 11 00 00 00 00 00 00 7E [13:17:50]Write i2c OK [13:17:50]MH_I2C_Read... [13:17:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:50]Read from MH i2c: E2 [13:17:50]MH_I2C_Read... [13:17:50]Read from MH i2c: E2 17 00 [13:17:50]MH_I2C_Read... [13:17:50]Read from MH i2c: E2 17 00 F3 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D3 [13:17:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:17:50]wFMCommunicate OK [13:17:50]CreateOFDProtocolMessage done [13:17:50]OFDSenderStorePacket 201484 [13:17:50]StoreOFDPacket docnum=201484 [13:17:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 AC 4D 07 01 41 D8 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 32 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 F6 00 00 00 F4 03 04 00 FD EB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0C 13 03 00 35 04 06 00 F8 C0 A4 5F E0 35 D4 6E 38 81 55 E7 E7 B8 [13:17:50]CheckFolder [13:17:50]dirname=/storage/ofd_packets [13:17:50]CheckFolder done [13:17:50]ProducePacketName [13:17:50]name=ofd_packets/00201484 [13:17:50]NVStorageSaveData ofd_packets/00201484 [13:17:50]File name is /storage/ofd_packets/00201484 [13:17:50]Write 301 bytes [13:17:50]NVStorageSaveData done [13:17:50]OFDSenderStorePacket done [13:17:50]KKMCreateOFDPacket done [13:17:50]NVStorageSaveData kkm_last_timestamp [13:17:50]File name is /storage/kkm_last_timestamp [13:17:50]Write 4 bytes [13:17:50]NVStorageSaveData done [13:17:50]ExternCall_PrintAddStr [13:17:50]wPrintStart [13:17:50]Write to MH i2c: 01 00 00 F4 11 05 [13:17:50]Write i2c OK [13:17:50]MH_I2C_Read... [13:17:50]Read from MH i2c: 01 [13:17:50]MH_I2C_Read... [13:17:50]Read from MH i2c: 01 07 00 [13:17:50]MH_I2C_Read... [13:17:50]Read from MH i2c: 01 07 00 F4 11 00 00 00 00 00 FF 0F 1A [13:17:50]RasterBufferAndPrint [13:17:50]line Счет N : (1)449234 [13:17:50]line ИНН: 02508201610067 [13:17:50]line Контрольно-Кассовый Чек [13:17:50]line ПРОДАЖА [13:17:50]line ТРК (МРК, ГНК) : 41 [13:17:50]line Товар: 2710124130 [13:17:50]line Аи-92-К-2 [13:17:50]line 2.990 * 66.90 [13:17:50]line = 200.03 [13:17:50]line НДС 12% НСП 1% [13:17:50]line > о реализуемом товаре [13:17:50]line ОКРУГЛЕНИЕ: -0.03 [13:17:50]line ИТОГО: 200.00 [13:17:50]line Внесено: 200.00 [13:17:50]line СДАЧА: 0.00 [13:17:50]line НСП 1% : 1.77 [13:17:50]line НДС 12% : 21.24 [13:17:50]line Наличными: 200.00 [13:17:50]line Безнал.: 0.00 [13:17:50]line Место: АЗС № 171 "Партнер Нефть" [13:17:50]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:17:50]line СНО: Общий режим [13:17:50]line Чек 246 26.10.2024 13:17 [13:17:50]line Смена: 543 ФФД: 1.0 [13:17:50]line ЗНМ: 0300000109 [13:17:50]line РНМ: 0000000000091777 [13:17:50]line Версия ККМ: 001 [13:17:50]line ФМ: 0000000000871756 [13:17:50]line ФД: 201484 [13:17:50]line ФПД: 273506275156021 [13:17:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T131749&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201484&fm=273506275156021&tin=02508201610067®Number=0000000000091777&sum=20000 [13:17:50]OFD Sender: Processing packet 201484 [packets to send 112, broken 111] [13:17:50]ProducePacketName [13:17:50]name=ofd_packets/00201484 [13:17:50]OFD Sender: To server: pG, [13:17:50]CommunicateWithHost lk.salyk.kg:30040 [13:17:50]ConnectInit lk.salyk.kg [13:17:50]written 0, free lines is 4095 [13:17:50]Connected sock=10 [13:17:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 AC 4D 07 01 41 D8 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 32 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 F6 00 00 00 F4 03 04 00 FD EB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0C 13 03 00 35 04 06 00 F8 C0 A4 5F E0 35 D4 6E 38 81 55 E7 E7 B8 [13:17:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 13 02 47 00 26 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0C 13 03 00 F4 03 04 00 A6 97 1C 67 B6 04 01 00 00 D4 89 95 A9 A8 53 2F 25 [13:17:51]CommunicateWithHost err = 0 [13:17:51]CheckOFDResponse [13:17:51]1017 (14) - 77093643461234 [13:17:51]1041 (16) - 0000000000871756 [13:17:51]1040 (4) - 201484 [13:17:51]1012 (4) - 26.10.2024 07:17 [13:17:51]1206 (1) - 0 [13:17:51]OFD Sender: Remove packet 201484 [13:17:51]ProducePacketName [13:17:51]name=ofd_packets/00201484 [13:17:51]NVStorageDeleteData [13:17:51]Write to MH i2c: 01 00 00 1F 12 31 [13:17:51]Write i2c OK [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: 01 [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: 01 07 00 [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: 01 07 00 1F 12 00 00 00 00 00 9B 0C DF [13:17:51]RasterBufferAndPrint [13:17:51]line [13:17:51]line [13:17:51]line [13:17:51]line [13:17:51]line [13:17:51]written 0, free lines is 3233 [13:17:51]MH_Cut [13:17:51]Write to MH i2c: D1 01 00 26 12 01 0A [13:17:51]Write i2c OK [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: D1 [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: D1 01 00 [13:17:51]MH_I2C_Read... [13:17:51]Read from MH i2c: D1 01 00 26 12 00 09 [13:17:51]Write to MH i2c: 01 00 00 27 12 39 [13:17:51]Write i2c OK [13:17:51]MH_I2C_Read... [13:17:51]OFD Sender: No OFD packet to send [13:17:52]*** Cut start [13:17:52]*** Purtial cut [13:17:52]*** Stage 1: CUTSNS_PIN = 1 [13:17:52]Read from MH i2c: 01 [13:17:52]MH_I2C_Read... [13:17:52]*** Stop cut motor [13:17:52]*** Cut end [13:17:52]Read from MH i2c: 01 07 00 [13:17:52]MH_I2C_Read... [13:17:52]Read from MH i2c: 01 07 00 27 12 00 00 00 00 00 FF 0F 4E [13:17:52]process_action close_receipt done [13:17:52]requested_data is exist [13:17:52]produce_requested_data [13:17:52]requested_item fm.sn is exist - process it [13:17:52]wFMCommunicate request_size=4 [13:17:52]MH_SAM_APDU [13:17:52]CAPDU: 80 11 00 00 [13:17:52]Write to MH i2c: E2 08 00 28 12 80 11 00 00 00 00 00 00 B4 [13:17:52]Write i2c OK [13:17:52]MH_I2C_Read... [13:17:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:52]Read from MH i2c: E2 [13:17:52]MH_I2C_Read... [13:17:52]Read from MH i2c: E2 17 00 [13:17:52]MH_I2C_Read... [13:17:52]Read from MH i2c: E2 17 00 28 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 09 [13:17:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:17:52]wFMCommunicate OK [13:17:52]requested_item fd.num is exist - process it [13:17:52]SAM_PROTO_GetFieldsCounters [13:17:52]wFMCommunicate request_size=4 [13:17:52]MH_SAM_APDU [13:17:52]CAPDU: 80 13 00 00 [13:17:52]Write to MH i2c: E2 08 00 29 12 80 13 00 00 00 00 00 00 B7 [13:17:52]Write i2c OK [13:17:52]MH_I2C_Read... [13:17:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:52]Read from MH i2c: E2 [13:17:52]MH_I2C_Read... [13:17:52]Read from MH i2c: E2 62 00 [13:17:52]MH_I2C_Read... [13:17:52]Read from MH i2c: E2 62 00 29 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0C 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [13:17:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0C 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:17:52]wFMCommunicate OK [13:17:52]SAM_PROTO_GetFieldsCounters done [13:17:52]requested_item shift.num is exist - process it [13:17:52]requested_item shift.opened is exist - process it [13:17:52]req_shift_opened [13:17:52]FM_GetShiftState [13:17:52]SAM_PROTO_GetShiftState [13:17:52]wFMCommunicate request_size=4 [13:17:52]MH_SAM_APDU [13:17:52]CAPDU: 80 13 01 00 [13:17:52]Write to MH i2c: E2 08 00 2A 12 80 13 01 00 00 00 00 00 B9 [13:17:52]Write i2c OK [13:17:52]MH_I2C_Read... [13:17:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:52]Read from MH i2c: E2 [13:17:52]MH_I2C_Read... [13:17:52]Read from MH i2c: E2 0E 00 [13:17:52]MH_I2C_Read... [13:17:52]Read from MH i2c: E2 0E 00 2A 12 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C8 [13:17:52]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:17:52]wFMCommunicate OK [13:17:52]SAM_PROTO_GetShiftState done [13:17:52]FM_GetShiftState done [13:17:52]req_shift_opened done [13:17:52]requested_item shift.open_date is exist - process it [13:17:52]req_shift_open_date [13:17:52]req_shift_open_date done [13:17:52]produce_requested_data done [13:17:52]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201484,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:17:52]process_action_free close_receipt [13:17:52]json_value_free [13:17:52]json_value_free done [13:17:52]process_json_proto returns [13:17:52]Send response to host [13:17:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201484,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:17:52]free response buf [13:17:52]execute_script done [13:17:52]execute_script returns [13:17:52]free content buf [13:17:52]Sock 9.Close socket [13:17:52]Sock 9.Thread stoped [13:17:56]OFD Sender: No OFD packet to send [13:18:01]OFD Sender: No OFD packet to send [13:18:06]OFD Sender: No OFD packet to send [13:18:11]OFD Sender: No OFD packet to send [13:18:12]accept exits with 8 [13:18:12]New connection [13:18:12]New thread 3066834276 created [13:18:12]Thread 3066690916 joined [13:18:12]Waiting for new connection... [13:18:12] Sock 8.Parse request [13:18:12]Sock 8.Check first char [13:18:12]Sock 8.First char is OK [13:18:12]request: POST /json_proto HTTP/1.0 [13:18:12]Method: POST [13:18:12]URL: /json_proto [13:18:12]Method is POST - this is cgi request [13:18:12]url: /json_proto [13:18:12]query_string will be loaded in cgi processing [13:18:12]execute_cgi json_proto POST (null) [13:18:12]execute_cgi path=json_proto method=POST [13:18:12]POST find Content-Length [13:18:12]Host: 172.17.63.195:8080 [13:18:12]Content-Length: 677 [13:18:12]Content-Type: application/json [13:18:12] [13:18:12]POST finish read [13:18:12]Found Content-Length = 677 [13:18:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:18:12]execute_script... [13:18: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)449235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:18:12]POST & json_proto [13:18:12]process_json_proto [13:18:12]json parsed OK: [13:18:12]protocol is kg_v1.0 [13:18:12]action value=close_receipt [13:18:12]process_action close_receipt [13:18:12]cmd_close_receipt [13:18:12]MH_GetDate [13:18:12]Write to MH i2c: F0 00 00 2B 12 2C [13:18:12]Write i2c OK [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: F0 [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: F0 09 00 [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: F0 09 00 2B 12 00 14 EC 1C 67 68 46 19 67 E6 [13:18:12]GetLastDocTimeStamp 1729948669 [13:18:12]current date 1729948692 [13:18:12]FM_GetShiftState [13:18:12]SAM_PROTO_GetShiftState [13:18:12]wFMCommunicate request_size=4 [13:18:12]MH_SAM_APDU [13:18:12]CAPDU: 80 13 01 00 [13:18:12]Write to MH i2c: E2 08 00 2C 12 80 13 01 00 00 00 00 00 BB [13:18:12]Write i2c OK [13:18:12]MH_I2C_Read... [13:18:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:12]Read from MH i2c: E2 [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: E2 0E 00 [13:18:12]MH_I2C_Read... [13:18:12]Read from MH i2c: E2 0E 00 2C 12 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 CA [13:18:12]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:18:12]wFMCommunicate OK [13:18:12]SAM_PROTO_GetShiftState done [13:18:12]FM_GetShiftState done [13:18:12]opened in 1729900879 [13:18:12]opened+sec_in_day 1729987279 [13:18:12]quantity*price = 50041 [13:18:12]sum+1 = 50042 [13:18:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 247 26.10.2024 13:18 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201485 ФПД: 57875386087821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T131813&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201485&fm=57875386087821&tin=02508201610067®Number=0000000000091777&sum=50000 [13:18:13]StoreToDocumentArchive [13:18:13]shift 543 fd 201485 [13:18:13]save to /storage/0543/doc_00201485 [13:18:13]save last doc name /storage/0543/doc_00201485 to /storage/kkm_last_doc_name [13:18:13]save OK [13:18:13]Clear old archive folders... [13:18:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:18:13]tlvbuf is B6E8B500 [13:18:13]SAM_PROTO_ClearQueue [13:18:13]wFMCommunicate request_size=4 [13:18:13]MH_SAM_APDU [13:18:13]CAPDU: 80 09 00 00 [13:18:13]Write to MH i2c: E2 08 00 39 12 80 09 00 00 00 00 00 00 BD [13:18:13]Write i2c OK [13:18:13]MH_I2C_Read... [13:18:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:13]Read from MH i2c: E2 [13:18:13]MH_I2C_Read... [13:18:13]Read from MH i2c: E2 03 00 [13:18:13]MH_I2C_Read... [13:18:13]Read from MH i2c: E2 03 00 39 12 00 90 00 BF [13:18:13]RAPDU: 90 00 [13:18:13]wFMCommunicate OK [13:18:13]SAM_PROTO_ClearQueue done [13:18:13]KKMCreateOFDPacket [13:18:13]OFDProtocolAddRootSTLVToBuf [13:18:13]FM_MakeSignedData [13:18:13]FM_MakeSignedData [13:18:13]SAM_PROTO_SignData [13:18:13]wFMCommunicate request_size=4 [13:18:13]MH_SAM_APDU [13:18:13]CAPDU: 80 0D 01 02 [13:18:13]Write to MH i2c: E2 08 00 3A 12 80 0D 01 02 00 00 00 00 C5 [13:18:13]Write i2c OK [13:18:13]MH_I2C_Read... [13:18:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:13]Read from MH i2c: E2 [13:18:13]MH_I2C_Read... [13:18:13]Read from MH i2c: E2 03 00 [13:18:13]MH_I2C_Read... [13:18:13]Read from MH i2c: E2 03 00 3A 12 00 90 00 C0 [13:18:13]RAPDU: 90 00 [13:18:13]wFMCommunicate OK [13:18:13]wFMCommunicate request_size=255 [13:18:13]MH_SAM_APDU [13:18: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 32 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 F7 00 00 00 F4 03 04 00 15 EC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0D 13 03 00 35 04 06 00 34 [13:18:13]Write to MH i2c: E2 02 01 3B 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 32 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 F7 00 00 00 F4 03 04 00 15 EC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0D 13 03 00 35 04 06 00 34 00 00 4C [13:18:13]Write i2c OK [13:18:13]MH_I2C_Read... [13:18:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:13]Read from MH i2c: E2 [13:18:13]MH_I2C_Read... [13:18:13]Read from MH i2c: E2 03 00 [13:18:13]MH_I2C_Read... [13:18:13]Read from MH i2c: E2 03 00 3B 12 00 90 00 C1 [13:18:13]RAPDU: 90 00 [13:18:13]wFMCommunicate OK [13:18:13]wFMCommunicate request_size=10 [13:18:13]MH_SAM_APDU [13:18:13]CAPDU: 80 0D 02 02 05 A3 29 D4 39 8D [13:18:13]Write to MH i2c: E2 0D 00 3C 12 80 0D 02 02 05 00 A3 29 D4 39 8D 00 00 38 [13:18:13]Write i2c OK [13:18:13]MH_I2C_Read... [13:18:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:13]Read from MH i2c: E2 [13:18:13]MH_I2C_Read... [13:18:13]Read from MH i2c: E2 03 00 [13:18:13]MH_I2C_Read... [13:18:13]Read from MH i2c: E2 03 00 3C 12 00 90 00 C2 [13:18:13]RAPDU: 90 00 [13:18:13]wFMCommunicate OK [13:18:13]wFMCommunicate request_size=4 [13:18:13]MH_SAM_APDU [13:18:13]CAPDU: 80 0D 03 02 [13:18:13]Write to MH i2c: E2 08 00 3D 12 80 0D 03 02 00 00 00 00 CA [13:18:13]Write i2c OK [13:18:13]MH_I2C_Read... [13:18:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:13]Read from MH i2c: E2 [13:18:13]MH_I2C_Read... [13:18:13]Read from MH i2c: E2 0B 00 [13:18:13]MH_I2C_Read... [13:18:13]Read from MH i2c: E2 0B 00 3D 12 00 1E B2 9D 2B F7 D4 52 55 90 00 D5 [13:18:13]RAPDU: 1E B2 9D 2B F7 D4 52 55 90 00 [13:18:13]wFMCommunicate OK [13:18:13]SAM_PROTO_SignData done [13:18:13]FM_MakeSignedData done [13:18:13]CreateOFDProtocolMessage [13:18:13]wFMCommunicate request_size=4 [13:18:13]MH_SAM_APDU [13:18:13]CAPDU: 80 11 00 00 [13:18:13]Write to MH i2c: E2 08 00 3E 12 80 11 00 00 00 00 00 00 CA [13:18:13]Write i2c OK [13:18:13]MH_I2C_Read... [13:18:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:13]Read from MH i2c: E2 [13:18:13]MH_I2C_Read... [13:18:13]Read from MH i2c: E2 17 00 [13:18:13]MH_I2C_Read... [13:18:13]Read from MH i2c: E2 17 00 3E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1F [13:18:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:18:13]wFMCommunicate OK [13:18:13]CreateOFDProtocolMessage done [13:18:13]OFDSenderStorePacket 201485 [13:18:13]StoreOFDPacket docnum=201485 [13:18:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C9 3C 07 01 FA 3A 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 32 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 F7 00 00 00 F4 03 04 00 15 EC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0D 13 03 00 35 04 06 00 34 A3 29 D4 39 8D 1E B2 9D 2B F7 D4 52 55 [13:18:13]CheckFolder [13:18:13]dirname=/storage/ofd_packets [13:18:13]CheckFolder done [13:18:13]ProducePacketName [13:18:13]name=ofd_packets/00201485 [13:18:13]NVStorageSaveData ofd_packets/00201485 [13:18:13]File name is /storage/ofd_packets/00201485 [13:18:13]Write 301 bytes [13:18:13]NVStorageSaveData done [13:18:13]OFDSenderStorePacket done [13:18:13]KKMCreateOFDPacket done [13:18:13]NVStorageSaveData kkm_last_timestamp [13:18:13]File name is /storage/kkm_last_timestamp [13:18:13]Write 4 bytes [13:18:13]NVStorageSaveData done [13:18:13]ExternCall_PrintAddStr [13:18:13]wPrintStart [13:18:13]Write to MH i2c: 01 00 00 3F 12 51 [13:18:13]Write i2c OK [13:18:13]MH_I2C_Read... [13:18:13]Read from MH i2c: 01 [13:18:13]MH_I2C_Read... [13:18:13]Read from MH i2c: 01 07 00 [13:18:13]MH_I2C_Read... [13:18:13]Read from MH i2c: 01 07 00 3F 12 00 00 00 00 00 FF 0F 66 [13:18:13]RasterBufferAndPrint [13:18:13]line Счет N : (1)449235 [13:18:13]line ИНН: 02508201610067 [13:18:13]line Контрольно-Кассовый Чек [13:18:13]line ПРОДАЖА [13:18:13]line ТРК (МРК, ГНК) : 52 [13:18:13]line Товар: 2710124130 [13:18:13]line Аи-92-К-2 [13:18:13]line 7.480 * 66.90 [13:18:13]line = 500.41 [13:18:13]line НДС 12% НСП 1% [13:18:13]line > о реализуемом товаре [13:18:13]line ОКРУГЛЕНИЕ: -0.41 [13:18:13]line ИТОГО: 500.00 [13:18:13]line Внесено: 500.00 [13:18:13]line СДАЧА: 0.00 [13:18:13]line НСП 1% : 4.43 [13:18:13]line НДС 12% : 53.14 [13:18:13]line Наличными: 500.00 [13:18:13]line Безнал.: 0.00 [13:18:13]line Место: АЗС № 171 "Партнер Нефть" [13:18:13]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:18:13]line СНО: Общий режим [13:18:13]line Чек 247 26.10.2024 13:18 [13:18:13]line Смена: 543 ФФД: 1.0 [13:18:13]line ЗНМ: 0300000109 [13:18:13]line РНМ: 0000000000091777 [13:18:13]line Версия ККМ: 001 [13:18:13]line ФМ: 0000000000871756 [13:18:13]line ФД: 201485 [13:18:13]line ФПД: 57875386087821 [13:18:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T131813&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201485&fm=57875386087821&tin=02508201610067®Number=0000000000091777&sum=50000 [13:18:14]OFD Sender: Processing packet 201485 [packets to send 112, broken 111] [13:18:14]ProducePacketName [13:18:14]name=ofd_packets/00201485 [13:18:14]OFD Sender: To server: pG, [13:18:14]CommunicateWithHost lk.salyk.kg:30040 [13:18:14]ConnectInit lk.salyk.kg [13:18:14]written 0, free lines is 4095 [13:18:14]Connected sock=10 [13:18:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C9 3C 07 01 FA 3A 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 32 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 F7 00 00 00 F4 03 04 00 15 EC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0D 13 03 00 35 04 06 00 34 A3 29 D4 39 8D 1E B2 9D 2B F7 D4 52 55 [13:18:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 89 BC 47 00 D1 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0D 13 03 00 F4 03 04 00 BE 97 1C 67 B6 04 01 00 00 3C 7D 6D 57 AD 00 59 84 [13:18:14]CommunicateWithHost err = 0 [13:18:14]CheckOFDResponse [13:18:14]1017 (14) - 77093643461234 [13:18:14]1041 (16) - 0000000000871756 [13:18:14]1040 (4) - 201485 [13:18:14]1012 (4) - 26.10.2024 07:18 [13:18:14]1206 (1) - 0 [13:18:14]OFD Sender: Remove packet 201485 [13:18:14]ProducePacketName [13:18:14]name=ofd_packets/00201485 [13:18:14]NVStorageDeleteData [13:18:14]Write to MH i2c: 01 00 00 6A 12 7C [13:18:14]Write i2c OK [13:18:14]MH_I2C_Read... [13:18:14]Read from MH i2c: 01 [13:18:14]MH_I2C_Read... [13:18:14]Read from MH i2c: 01 07 00 [13:18:14]MH_I2C_Read... [13:18:14]Read from MH i2c: 01 07 00 6A 12 00 00 00 00 00 B6 0C 45 [13:18:14]RasterBufferAndPrint [13:18:14]line [13:18:14]line [13:18:14]line [13:18:14]line [13:18:14]line [13:18:14]written 0, free lines is 3263 [13:18:14]MH_Cut [13:18:14]Write to MH i2c: D1 01 00 71 12 01 55 [13:18:14]Write i2c OK [13:18:14]MH_I2C_Read... [13:18:14]Read from MH i2c: D1 [13:18:14]MH_I2C_Read... [13:18:14]Read from MH i2c: D1 01 00 [13:18:14]MH_I2C_Read... [13:18:14]Read from MH i2c: D1 01 00 71 12 00 54 [13:18:14]Write to MH i2c: 01 00 00 72 12 84 [13:18:14]Write i2c OK [13:18:14]MH_I2C_Read... [13:18:15]OFD Sender: No OFD packet to send [13:18:15]*** Cut start [13:18:15]*** Purtial cut [13:18:15]*** Stage 1: CUTSNS_PIN = 1 [13:18:15]Read from MH i2c: 01 [13:18:15]MH_I2C_Read... [13:18:15]*** Stop cut motor [13:18:15]*** Cut end [13:18:15]Read from MH i2c: 01 07 00 [13:18:15]MH_I2C_Read... [13:18:15]Read from MH i2c: 01 07 00 72 12 00 00 00 00 00 FF 0F 99 [13:18:15]process_action close_receipt done [13:18:15]requested_data is exist [13:18:15]produce_requested_data [13:18:15]requested_item fm.sn is exist - process it [13:18:15]wFMCommunicate request_size=4 [13:18:15]MH_SAM_APDU [13:18:15]CAPDU: 80 11 00 00 [13:18:15]Write to MH i2c: E2 08 00 73 12 80 11 00 00 00 00 00 00 FF [13:18:15]Write i2c OK [13:18:15]MH_I2C_Read... [13:18:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:15]Read from MH i2c: E2 [13:18:15]MH_I2C_Read... [13:18:15]Read from MH i2c: E2 17 00 [13:18:15]MH_I2C_Read... [13:18:15]Read from MH i2c: E2 17 00 73 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 54 [13:18:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:18:15]wFMCommunicate OK [13:18:15]requested_item fd.num is exist - process it [13:18:15]SAM_PROTO_GetFieldsCounters [13:18:15]wFMCommunicate request_size=4 [13:18:15]MH_SAM_APDU [13:18:15]CAPDU: 80 13 00 00 [13:18:15]Write to MH i2c: E2 08 00 74 12 80 13 00 00 00 00 00 00 02 [13:18:15]Write i2c OK [13:18:15]MH_I2C_Read... [13:18:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:15]Read from MH i2c: E2 [13:18:15]MH_I2C_Read... [13:18:15]Read from MH i2c: E2 62 00 [13:18:15]MH_I2C_Read... [13:18:15]Read from MH i2c: E2 62 00 74 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0D 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [13:18:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0D 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:18:15]wFMCommunicate OK [13:18:15]SAM_PROTO_GetFieldsCounters done [13:18:15]requested_item shift.num is exist - process it [13:18:15]requested_item shift.opened is exist - process it [13:18:15]req_shift_opened [13:18:15]FM_GetShiftState [13:18:15]SAM_PROTO_GetShiftState [13:18:15]wFMCommunicate request_size=4 [13:18:15]MH_SAM_APDU [13:18:15]CAPDU: 80 13 01 00 [13:18:15]Write to MH i2c: E2 08 00 75 12 80 13 01 00 00 00 00 00 04 [13:18:15]Write i2c OK [13:18:15]MH_I2C_Read... [13:18:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:16]Read from MH i2c: E2 [13:18:16]MH_I2C_Read... [13:18:16]Read from MH i2c: E2 0E 00 [13:18:16]MH_I2C_Read... [13:18:16]Read from MH i2c: E2 0E 00 75 12 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 13 [13:18:16]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:18:16]wFMCommunicate OK [13:18:16]SAM_PROTO_GetShiftState done [13:18:16]FM_GetShiftState done [13:18:16]req_shift_opened done [13:18:16]requested_item shift.open_date is exist - process it [13:18:16]req_shift_open_date [13:18:16]req_shift_open_date done [13:18:16]produce_requested_data done [13:18:16]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201485,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:18:16]process_action_free close_receipt [13:18:16]json_value_free [13:18:16]json_value_free done [13:18:16]process_json_proto returns [13:18:16]Send response to host [13:18:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201485,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:18:16]free response buf [13:18:16]execute_script done [13:18:16]execute_script returns [13:18:16]free content buf [13:18:16]Sock 8.Close socket [13:18:16]Sock 8.Thread stoped [13:18:20]OFD Sender: No OFD packet to send [13:18:25]OFD Sender: No OFD packet to send [13:18:30]OFD Sender: No OFD packet to send [13:18:35]OFD Sender: No OFD packet to send [13:18:40]OFD Sender: No OFD packet to send [13:18:45]OFD Sender: No OFD packet to send [13:18:50]OFD Sender: No OFD packet to send [13:18:55]OFD Sender: No OFD packet to send [13:19:00]OFD Sender: No OFD packet to send [13:19:03]accept exits with 9 [13:19:03]New connection [13:19:03]New thread 3066690916 created [13:19:03]Thread 3066834276 joined [13:19:03]Waiting for new connection... [13:19:03] Sock 9.Parse request [13:19:03]Sock 9.Check first char [13:19:03]Sock 9.First char is OK [13:19:03]request: POST /json_proto HTTP/1.0 [13:19:03]Method: POST [13:19:03]URL: /json_proto [13:19:03]Method is POST - this is cgi request [13:19:03]url: /json_proto [13:19:03]query_string will be loaded in cgi processing [13:19:03]execute_cgi json_proto POST (null) [13:19:03]execute_cgi path=json_proto method=POST [13:19:03]POST find Content-Length [13:19:03]Host: 172.17.63.195:8080 [13:19:03]Content-Length: 682 [13:19:03]Content-Type: application/json [13:19:03] [13:19:03]POST finish read [13:19:03]Found Content-Length = 682 [13:19:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:19:03]execute_script... [13:19: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)449236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:19:03]POST & json_proto [13:19:03]process_json_proto [13:19:03]json parsed OK: [13:19:03]protocol is kg_v1.0 [13:19:03]action value=close_receipt [13:19:03]process_action close_receipt [13:19:03]cmd_close_receipt [13:19:03]MH_GetDate [13:19:03]Write to MH i2c: F0 00 00 76 12 77 [13:19:03]Write i2c OK [13:19:03]MH_I2C_Read... [13:19:03]Read from MH i2c: F0 [13:19:03]MH_I2C_Read... [13:19:03]Read from MH i2c: F0 09 00 [13:19:03]MH_I2C_Read... [13:19:03]Read from MH i2c: F0 09 00 76 12 00 48 EC 1C 67 68 46 19 67 65 [13:19:03]GetLastDocTimeStamp 1729948693 [13:19:03]current date 1729948744 [13:19:03]FM_GetShiftState [13:19:03]SAM_PROTO_GetShiftState [13:19:03]wFMCommunicate request_size=4 [13:19:03]MH_SAM_APDU [13:19:03]CAPDU: 80 13 01 00 [13:19:03]Write to MH i2c: E2 08 00 77 12 80 13 01 00 00 00 00 00 06 [13:19:03]Write i2c OK [13:19:03]MH_I2C_Read... [13:19:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:03]Read from MH i2c: E2 [13:19:03]MH_I2C_Read... [13:19:03]Read from MH i2c: E2 0E 00 [13:19:03]MH_I2C_Read... [13:19:03]Read from MH i2c: E2 0E 00 77 12 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 15 [13:19:03]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:19:03]wFMCommunicate OK [13:19:03]SAM_PROTO_GetShiftState done [13:19:03]FM_GetShiftState done [13:19:03]opened in 1729900879 [13:19:03]opened+sec_in_day 1729987279 [13:19:03]quantity*price = 100015 [13:19:03]sum+1 = 100017 [13:19:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 248 26.10.2024 13:19 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201486 ФПД: 64906469402900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T131904&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201486&fm=64906469402900&tin=02508201610067®Number=0000000000091777&sum=100000 [13:19:04]StoreToDocumentArchive [13:19:04]shift 543 fd 201486 [13:19:04]save to /storage/0543/doc_00201486 [13:19:04]save last doc name /storage/0543/doc_00201486 to /storage/kkm_last_doc_name [13:19:04]save OK [13:19:04]Clear old archive folders... [13:19:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:19:04]tlvbuf is B6EA4240 [13:19:04]SAM_PROTO_ClearQueue [13:19:04]wFMCommunicate request_size=4 [13:19:04]MH_SAM_APDU [13:19:04]CAPDU: 80 09 00 00 [13:19:04]Write to MH i2c: E2 08 00 84 12 80 09 00 00 00 00 00 00 08 [13:19:04]Write i2c OK [13:19:04]MH_I2C_Read... [13:19:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:04]Read from MH i2c: E2 [13:19:04]MH_I2C_Read... [13:19:04]Read from MH i2c: E2 03 00 [13:19:04]MH_I2C_Read... [13:19:04]Read from MH i2c: E2 03 00 84 12 00 90 00 0A [13:19:04]RAPDU: 90 00 [13:19:04]wFMCommunicate OK [13:19:04]SAM_PROTO_ClearQueue done [13:19:04]KKMCreateOFDPacket [13:19:04]OFDProtocolAddRootSTLVToBuf [13:19:04]FM_MakeSignedData [13:19:04]FM_MakeSignedData [13:19:04]SAM_PROTO_SignData [13:19:04]wFMCommunicate request_size=4 [13:19:04]MH_SAM_APDU [13:19:04]CAPDU: 80 0D 01 02 [13:19:04]Write to MH i2c: E2 08 00 85 12 80 0D 01 02 00 00 00 00 10 [13:19:04]Write i2c OK [13:19:04]MH_I2C_Read... [13:19:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:04]Read from MH i2c: E2 [13:19:04]MH_I2C_Read... [13:19:04]Read from MH i2c: E2 03 00 [13:19:04]MH_I2C_Read... [13:19:04]Read from MH i2c: E2 03 00 85 12 00 90 00 0B [13:19:04]RAPDU: 90 00 [13:19:04]wFMCommunicate OK [13:19:04]wFMCommunicate request_size=255 [13:19:04]MH_SAM_APDU [13:19: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 32 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 F8 00 00 00 F4 03 04 00 48 EC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0E 13 03 00 35 04 06 00 3B [13:19:04]Write to MH i2c: E2 02 01 86 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 32 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 F8 00 00 00 F4 03 04 00 48 EC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0E 13 03 00 35 04 06 00 3B 00 00 CD [13:19:04]Write i2c OK [13:19:04]MH_I2C_Read... [13:19:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:04]Read from MH i2c: E2 [13:19:04]MH_I2C_Read... [13:19:04]Read from MH i2c: E2 03 00 [13:19:04]MH_I2C_Read... [13:19:04]Read from MH i2c: E2 03 00 86 12 00 90 00 0C [13:19:04]RAPDU: 90 00 [13:19:04]wFMCommunicate OK [13:19:04]wFMCommunicate request_size=10 [13:19:04]MH_SAM_APDU [13:19:04]CAPDU: 80 0D 02 02 05 08 37 0D 69 14 [13:19:04]Write to MH i2c: E2 0D 00 87 12 80 0D 02 02 05 00 08 37 0D 69 14 00 00 E6 [13:19:04]Write i2c OK [13:19:04]MH_I2C_Read... [13:19:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:04]Read from MH i2c: E2 [13:19:04]MH_I2C_Read... [13:19:04]Read from MH i2c: E2 03 00 [13:19:04]MH_I2C_Read... [13:19:04]Read from MH i2c: E2 03 00 87 12 00 90 00 0D [13:19:04]RAPDU: 90 00 [13:19:04]wFMCommunicate OK [13:19:04]wFMCommunicate request_size=4 [13:19:04]MH_SAM_APDU [13:19:04]CAPDU: 80 0D 03 02 [13:19:04]Write to MH i2c: E2 08 00 88 12 80 0D 03 02 00 00 00 00 15 [13:19:04]Write i2c OK [13:19:04]MH_I2C_Read... [13:19:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:04]Read from MH i2c: E2 [13:19:04]MH_I2C_Read... [13:19:04]Read from MH i2c: E2 0B 00 [13:19:04]MH_I2C_Read... [13:19:04]Read from MH i2c: E2 0B 00 88 12 00 09 CF 62 17 00 0D AC 59 90 00 79 [13:19:04]RAPDU: 09 CF 62 17 00 0D AC 59 90 00 [13:19:04]wFMCommunicate OK [13:19:04]SAM_PROTO_SignData done [13:19:04]FM_MakeSignedData done [13:19:04]CreateOFDProtocolMessage [13:19:04]wFMCommunicate request_size=4 [13:19:04]MH_SAM_APDU [13:19:04]CAPDU: 80 11 00 00 [13:19:04]Write to MH i2c: E2 08 00 89 12 80 11 00 00 00 00 00 00 15 [13:19:04]Write i2c OK [13:19:04]MH_I2C_Read... [13:19:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:04]Read from MH i2c: E2 [13:19:04]MH_I2C_Read... [13:19:04]Read from MH i2c: E2 17 00 [13:19:04]MH_I2C_Read... [13:19:04]Read from MH i2c: E2 17 00 89 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6A [13:19:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:19:04]wFMCommunicate OK [13:19:04]CreateOFDProtocolMessage done [13:19:04]OFDSenderStorePacket 201486 [13:19:04]StoreOFDPacket docnum=201486 [13:19:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 9B FD 07 01 66 F8 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 32 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 F8 00 00 00 F4 03 04 00 48 EC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0E 13 03 00 35 04 06 00 3B 08 37 0D 69 14 09 CF 62 17 00 0D AC 59 [13:19:04]CheckFolder [13:19:04]dirname=/storage/ofd_packets [13:19:04]CheckFolder done [13:19:04]ProducePacketName [13:19:04]name=ofd_packets/00201486 [13:19:04]NVStorageSaveData ofd_packets/00201486 [13:19:04]File name is /storage/ofd_packets/00201486 [13:19:04]Write 301 bytes [13:19:04]NVStorageSaveData done [13:19:04]OFDSenderStorePacket done [13:19:04]KKMCreateOFDPacket done [13:19:04]NVStorageSaveData kkm_last_timestamp [13:19:04]File name is /storage/kkm_last_timestamp [13:19:04]Write 4 bytes [13:19:04]NVStorageSaveData done [13:19:04]ExternCall_PrintAddStr [13:19:04]wPrintStart [13:19:04]Write to MH i2c: 01 00 00 8A 12 9C [13:19:04]Write i2c OK [13:19:04]MH_I2C_Read... [13:19:04]Read from MH i2c: 01 [13:19:04]MH_I2C_Read... [13:19:04]Read from MH i2c: 01 07 00 [13:19:04]MH_I2C_Read... [13:19:04]Read from MH i2c: 01 07 00 8A 12 00 00 00 00 00 FF 0F B1 [13:19:04]RasterBufferAndPrint [13:19:04]line Счет N : (1)449236 [13:19:04]line ИНН: 02508201610067 [13:19:04]line Контрольно-Кассовый Чек [13:19:04]line ПРОДАЖА [13:19:04]line ТРК (МРК, ГНК) : 31 [13:19:04]line Товар: 2710124130 [13:19:04]line Аи-92-К-2 [13:19:04]line 14.950 * 66.90 [13:19:04]line = 1000.16 [13:19:04]line НДС 12% НСП 1% [13:19:04]line > о реализуемом товаре [13:19:04]line ОКРУГЛЕНИЕ: -0.16 [13:19:04]line ИТОГО: 1000.00 [13:19:04]line Внесено: 1000.00 [13:19:04]line СДАЧА: 0.00 [13:19:04]line НСП 1% : 8.85 [13:19:04]line НДС 12% : 106.21 [13:19:04]line Наличными: 1000.00 [13:19:04]line Безнал.: 0.00 [13:19:04]line Место: АЗС № 171 "Партнер Нефть" [13:19:04]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:19:04]line СНО: Общий режим [13:19:04]line Чек 248 26.10.2024 13:19 [13:19:04]line Смена: 543 ФФД: 1.0 [13:19:04]line ЗНМ: 0300000109 [13:19:04]line РНМ: 0000000000091777 [13:19:04]line Версия ККМ: 001 [13:19:04]line ФМ: 0000000000871756 [13:19:04]line ФД: 201486 [13:19:04]line ФПД: 64906469402900 [13:19:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T131904&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201486&fm=64906469402900&tin=02508201610067®Number=0000000000091777&sum=100000 [13:19:05]OFD Sender: Processing packet 201486 [packets to send 112, broken 111] [13:19:05]ProducePacketName [13:19:05]name=ofd_packets/00201486 [13:19:05]OFD Sender: To server: pG, [13:19:05]CommunicateWithHost lk.salyk.kg:30040 [13:19:05]ConnectInit lk.salyk.kg [13:19:05]written 0, free lines is 4095 [13:19:05]Connected sock=10 [13:19:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 9B FD 07 01 66 F8 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 32 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 F8 00 00 00 F4 03 04 00 48 EC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0E 13 03 00 35 04 06 00 3B 08 37 0D 69 14 09 CF 62 17 00 0D AC 59 [13:19:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 43 6D 47 00 D1 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0E 13 03 00 F4 03 04 00 F1 97 1C 67 B6 04 01 00 00 D6 99 89 8C CE 8F C3 A1 [13:19:05]CommunicateWithHost err = 0 [13:19:05]CheckOFDResponse [13:19:05]1017 (14) - 77093643461234 [13:19:05]1041 (16) - 0000000000871756 [13:19:05]1040 (4) - 201486 [13:19:05]1012 (4) - 26.10.2024 07:19 [13:19:05]1206 (1) - 0 [13:19:05]OFD Sender: Remove packet 201486 [13:19:05]ProducePacketName [13:19:05]name=ofd_packets/00201486 [13:19:05]NVStorageDeleteData [13:19:05]Write to MH i2c: 01 00 00 B5 12 C7 [13:19:05]Write i2c OK [13:19:05]MH_I2C_Read... [13:19:05]Read from MH i2c: 01 [13:19:05]MH_I2C_Read... [13:19:05]Read from MH i2c: 01 07 00 [13:19:05]MH_I2C_Read... [13:19:05]Read from MH i2c: 01 07 00 B5 12 00 00 00 00 00 AA 0C 84 [13:19:05]RasterBufferAndPrint [13:19:05]line [13:19:05]line [13:19:05]line [13:19:05]line [13:19:05]line [13:19:05]written 0, free lines is 3249 [13:19:05]MH_Cut [13:19:05]Write to MH i2c: D1 01 00 BC 12 01 A0 [13:19:05]Write i2c OK [13:19:05]MH_I2C_Read... [13:19:05]Read from MH i2c: D1 [13:19:05]MH_I2C_Read... [13:19:05]Read from MH i2c: D1 01 00 [13:19:05]MH_I2C_Read... [13:19:05]Read from MH i2c: D1 01 00 BC 12 00 9F [13:19:05]Write to MH i2c: 01 00 00 BD 12 CF [13:19:05]Write i2c OK [13:19:05]MH_I2C_Read... [13:19:06]OFD Sender: No OFD packet to send [13:19:06]*** Cut start [13:19:06]*** Purtial cut [13:19:06]*** Stage 1: CUTSNS_PIN = 1 [13:19:06]Read from MH i2c: 01 [13:19:06]MH_I2C_Read... [13:19:06]*** Stop cut motor [13:19:06]*** Cut end [13:19:06]Read from MH i2c: 01 07 00 [13:19:06]MH_I2C_Read... [13:19:06]Read from MH i2c: 01 07 00 BD 12 00 00 00 00 00 FF 0F E4 [13:19:06]process_action close_receipt done [13:19:06]requested_data is exist [13:19:06]produce_requested_data [13:19:06]requested_item fm.sn is exist - process it [13:19:06]wFMCommunicate request_size=4 [13:19:06]MH_SAM_APDU [13:19:06]CAPDU: 80 11 00 00 [13:19:06]Write to MH i2c: E2 08 00 BE 12 80 11 00 00 00 00 00 00 4A [13:19:06]Write i2c OK [13:19:06]MH_I2C_Read... [13:19:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:06]Read from MH i2c: E2 [13:19:06]MH_I2C_Read... [13:19:06]Read from MH i2c: E2 17 00 [13:19:06]MH_I2C_Read... [13:19:06]Read from MH i2c: E2 17 00 BE 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9F [13:19:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:19:06]wFMCommunicate OK [13:19:06]requested_item fd.num is exist - process it [13:19:06]SAM_PROTO_GetFieldsCounters [13:19:06]wFMCommunicate request_size=4 [13:19:06]MH_SAM_APDU [13:19:06]CAPDU: 80 13 00 00 [13:19:06]Write to MH i2c: E2 08 00 BF 12 80 13 00 00 00 00 00 00 4D [13:19:06]Write i2c OK [13:19:06]MH_I2C_Read... [13:19:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:06]Read from MH i2c: E2 [13:19:06]MH_I2C_Read... [13:19:06]Read from MH i2c: E2 62 00 [13:19:06]MH_I2C_Read... [13:19:06]Read from MH i2c: E2 62 00 BF 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0E 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [13:19:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0E 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:19:06]wFMCommunicate OK [13:19:06]SAM_PROTO_GetFieldsCounters done [13:19:06]requested_item shift.num is exist - process it [13:19:06]requested_item shift.opened is exist - process it [13:19:06]req_shift_opened [13:19:06]FM_GetShiftState [13:19:06]SAM_PROTO_GetShiftState [13:19:06]wFMCommunicate request_size=4 [13:19:06]MH_SAM_APDU [13:19:06]CAPDU: 80 13 01 00 [13:19:06]Write to MH i2c: E2 08 00 C0 12 80 13 01 00 00 00 00 00 4F [13:19:06]Write i2c OK [13:19:06]MH_I2C_Read... [13:19:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:07]Read from MH i2c: E2 [13:19:07]MH_I2C_Read... [13:19:07]Read from MH i2c: E2 0E 00 [13:19:07]MH_I2C_Read... [13:19:07]Read from MH i2c: E2 0E 00 C0 12 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 5E [13:19:07]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:19:07]wFMCommunicate OK [13:19:07]SAM_PROTO_GetShiftState done [13:19:07]FM_GetShiftState done [13:19:07]req_shift_opened done [13:19:07]requested_item shift.open_date is exist - process it [13:19:07]req_shift_open_date [13:19:07]req_shift_open_date done [13:19:07]produce_requested_data done [13:19:07]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201486,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:19:07]process_action_free close_receipt [13:19:07]json_value_free [13:19:07]json_value_free done [13:19:07]process_json_proto returns [13:19:07]Send response to host [13:19:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201486,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:19:07]free response buf [13:19:07]execute_script done [13:19:07]execute_script returns [13:19:07]free content buf [13:19:07]Sock 9.Close socket [13:19:07]Sock 9.Thread stoped [13:19:11]OFD Sender: No OFD packet to send [13:19:16]OFD Sender: No OFD packet to send [13:19:21]OFD Sender: No OFD packet to send [13:19:26]OFD Sender: No OFD packet to send [13:19:31]OFD Sender: No OFD packet to send [13:19:36]OFD Sender: No OFD packet to send [13:19:41]OFD Sender: No OFD packet to send [13:19:46]OFD Sender: No OFD packet to send [13:19:51]OFD Sender: No OFD packet to send [13:19:56]OFD Sender: No OFD packet to send [13:20:01]OFD Sender: No OFD packet to send [13:20:06]OFD Sender: No OFD packet to send [13:20:11]OFD Sender: No OFD packet to send [13:20:16]OFD Sender: No OFD packet to send [13:20:21]OFD Sender: No OFD packet to send [13:20:26]OFD Sender: No OFD packet to send [13:20:31]OFD Sender: No OFD packet to send [13:20:36]OFD Sender: No OFD packet to send [13:20:40]accept exits with 8 [13:20:40]New connection [13:20:40]New thread 3066834276 created [13:20:40]Thread 3066690916 joined [13:20:40]Waiting for new connection... [13:20:40] Sock 8.Parse request [13:20:40]Sock 8.Check first char [13:20:40]Sock 8.First char is OK [13:20:40]request: POST /json_proto HTTP/1.0 [13:20:40]Method: POST [13:20:40]URL: /json_proto [13:20:40]Method is POST - this is cgi request [13:20:40]url: /json_proto [13:20:40]query_string will be loaded in cgi processing [13:20:40]execute_cgi json_proto POST (null) [13:20:40]execute_cgi path=json_proto method=POST [13:20:40]POST find Content-Length [13:20:40]Host: 172.17.63.195:8080 [13:20:40]Content-Length: 674 [13:20:40]Content-Type: application/json [13:20:40] [13:20:40]POST finish read [13:20:40]Found Content-Length = 674 [13:20:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 5.230, "sum" : 398.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 398.00, "payments": [ { "type": 0, "sum" : 398.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:40]execute_script... [13:20:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 5.230, "sum" : 398.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 398.00, "payments": [ { "type": 0, "sum" : 398.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:40]POST & json_proto [13:20:40]process_json_proto [13:20:40]json parsed OK: [13:20:40]protocol is kg_v1.0 [13:20:40]action value=close_receipt [13:20:40]process_action close_receipt [13:20:40]cmd_close_receipt [13:20:40]MH_GetDate [13:20:40]Write to MH i2c: F0 00 00 C1 12 C2 [13:20:40]Write i2c OK [13:20:40]MH_I2C_Read... [13:20:40]Read from MH i2c: F0 [13:20:40]MH_I2C_Read... [13:20:40]Read from MH i2c: F0 09 00 [13:20:40]MH_I2C_Read... [13:20:40]Read from MH i2c: F0 09 00 C1 12 00 A9 EC 1C 67 68 46 19 67 11 [13:20:40]GetLastDocTimeStamp 1729948744 [13:20:40]current date 1729948841 [13:20:40]FM_GetShiftState [13:20:40]SAM_PROTO_GetShiftState [13:20:40]wFMCommunicate request_size=4 [13:20:40]MH_SAM_APDU [13:20:40]CAPDU: 80 13 01 00 [13:20:40]Write to MH i2c: E2 08 00 C2 12 80 13 01 00 00 00 00 00 51 [13:20:40]Write i2c OK [13:20:40]MH_I2C_Read... [13:20:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:40]Read from MH i2c: E2 [13:20:40]MH_I2C_Read... [13:20:40]Read from MH i2c: E2 0E 00 [13:20:40]MH_I2C_Read... [13:20:40]Read from MH i2c: E2 0E 00 C2 12 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 60 [13:20:40]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:20:40]wFMCommunicate OK [13:20:40]SAM_PROTO_GetShiftState done [13:20:40]FM_GetShiftState done [13:20:40]opened in 1729900879 [13:20:40]opened+sec_in_day 1729987279 [13:20:40]quantity*price = 39852 [13:20:40]sum+1 = 39854 [13:20:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 398.00 Внесено: 400.00 СДАЧА: 2.00 НСП 1% : 3.53 НДС 12% : 42.32 Наличными: 398.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 249 26.10.2024 13:20 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201487 ФПД: 45363503875317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T132041&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201487&fm=45363503875317&tin=02508201610067®Number=0000000000091777&sum=39800 [13:20:41]StoreToDocumentArchive [13:20:41]shift 543 fd 201487 [13:20:41]save to /storage/0543/doc_00201487 [13:20:41]save last doc name /storage/0543/doc_00201487 to /storage/kkm_last_doc_name [13:20:41]save OK [13:20:41]Clear old archive folders... [13:20:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:20:41]tlvbuf is B6EA43E0 [13:20:41]SAM_PROTO_ClearQueue [13:20:41]wFMCommunicate request_size=4 [13:20:41]MH_SAM_APDU [13:20:41]CAPDU: 80 09 00 00 [13:20:41]Write to MH i2c: E2 08 00 CF 12 80 09 00 00 00 00 00 00 53 [13:20:41]Write i2c OK [13:20:41]MH_I2C_Read... [13:20:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:42]Read from MH i2c: E2 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: E2 03 00 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: E2 03 00 CF 12 00 90 00 55 [13:20:42]RAPDU: 90 00 [13:20:42]wFMCommunicate OK [13:20:42]SAM_PROTO_ClearQueue done [13:20:42]KKMCreateOFDPacket [13:20:42]OFDProtocolAddRootSTLVToBuf [13:20:42]FM_MakeSignedData [13:20:42]FM_MakeSignedData [13:20:42]SAM_PROTO_SignData [13:20:42]wFMCommunicate request_size=4 [13:20:42]MH_SAM_APDU [13:20:42]CAPDU: 80 0D 01 02 [13:20:42]Write to MH i2c: E2 08 00 D0 12 80 0D 01 02 00 00 00 00 5B [13:20:42]Write i2c OK [13:20:42]MH_I2C_Read... [13:20:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:42]Read from MH i2c: E2 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: E2 03 00 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: E2 03 00 D0 12 00 90 00 56 [13:20:42]RAPDU: 90 00 [13:20:42]wFMCommunicate OK [13:20:42]wFMCommunicate request_size=255 [13:20:42]MH_SAM_APDU [13:20:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 6E 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 AD 9B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 10 00 00 00 00 07 04 06 00 78 9B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 A9 EC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0F 13 03 00 35 04 06 00 29 42 03 88 [13:20:42]Write to MH i2c: E2 02 01 D1 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 6E 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 AD 9B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 10 00 00 00 00 07 04 06 00 78 9B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 A9 EC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0F 13 03 00 35 04 06 00 29 42 03 88 00 00 D5 [13:20:42]Write i2c OK [13:20:42]MH_I2C_Read... [13:20:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:42]Read from MH i2c: E2 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: E2 03 00 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: E2 03 00 D1 12 00 90 00 57 [13:20:42]RAPDU: 90 00 [13:20:42]wFMCommunicate OK [13:20:42]wFMCommunicate request_size=7 [13:20:42]MH_SAM_APDU [13:20:42]CAPDU: 80 0D 02 02 02 C4 F5 [13:20:42]Write to MH i2c: E2 0A 00 D2 12 80 0D 02 02 02 00 C4 F5 00 00 1B [13:20:42]Write i2c OK [13:20:42]MH_I2C_Read... [13:20:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:42]Read from MH i2c: E2 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: E2 03 00 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: E2 03 00 D2 12 00 90 00 58 [13:20:42]RAPDU: 90 00 [13:20:42]wFMCommunicate OK [13:20:42]wFMCommunicate request_size=4 [13:20:42]MH_SAM_APDU [13:20:42]CAPDU: 80 0D 03 02 [13:20:42]Write to MH i2c: E2 08 00 D3 12 80 0D 03 02 00 00 00 00 60 [13:20:42]Write i2c OK [13:20:42]MH_I2C_Read... [13:20:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:42]Read from MH i2c: E2 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: E2 0B 00 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: E2 0B 00 D3 12 00 C4 51 F6 6C 09 99 7E 29 90 00 21 [13:20:42]RAPDU: C4 51 F6 6C 09 99 7E 29 90 00 [13:20:42]wFMCommunicate OK [13:20:42]SAM_PROTO_SignData done [13:20:42]FM_MakeSignedData done [13:20:42]CreateOFDProtocolMessage [13:20:42]wFMCommunicate request_size=4 [13:20:42]MH_SAM_APDU [13:20:42]CAPDU: 80 11 00 00 [13:20:42]Write to MH i2c: E2 08 00 D4 12 80 11 00 00 00 00 00 00 60 [13:20:42]Write i2c OK [13:20:42]MH_I2C_Read... [13:20:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:42]Read from MH i2c: E2 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: E2 17 00 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: E2 17 00 D4 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B5 [13:20:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:20:42]wFMCommunicate OK [13:20:42]CreateOFDProtocolMessage done [13:20:42]OFDSenderStorePacket 201487 [13:20:42]StoreOFDPacket docnum=201487 [13:20:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 70 94 04 01 83 6C 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 32 FF 03 08 00 03 6E 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 AD 9B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 10 00 00 00 00 07 04 06 00 78 9B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 A9 EC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0F 13 03 00 35 04 06 00 29 42 03 88 C4 F5 C4 51 F6 6C 09 99 7E 29 [13:20:42]CheckFolder [13:20:42]dirname=/storage/ofd_packets [13:20:42]CheckFolder done [13:20:42]ProducePacketName [13:20:42]name=ofd_packets/00201487 [13:20:42]NVStorageSaveData ofd_packets/00201487 [13:20:42]File name is /storage/ofd_packets/00201487 [13:20:42]Write 298 bytes [13:20:42]NVStorageSaveData done [13:20:42]OFDSenderStorePacket done [13:20:42]KKMCreateOFDPacket done [13:20:42]NVStorageSaveData kkm_last_timestamp [13:20:42]File name is /storage/kkm_last_timestamp [13:20:42]Write 4 bytes [13:20:42]NVStorageSaveData done [13:20:42]ExternCall_PrintAddStr [13:20:42]wPrintStart [13:20:42]Write to MH i2c: 01 00 00 D5 12 E7 [13:20:42]Write i2c OK [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: 01 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: 01 07 00 [13:20:42]MH_I2C_Read... [13:20:42]Read from MH i2c: 01 07 00 D5 12 00 00 00 00 00 FF 0F FC [13:20:42]RasterBufferAndPrint [13:20:42]line Счет N : (1)449237 [13:20:42]line ИНН: 02508201610067 [13:20:42]line Контрольно-Кассовый Чек [13:20:42]line ПРОДАЖА [13:20:42]line ТРК (МРК, ГНК) : 33 [13:20:42]line Товар: 2710194210 [13:20:42]line ДТ-К-2 [13:20:42]line 5.230 * 76.20 [13:20:42]line = 398.53 [13:20:42]line НДС 12% НСП 1% [13:20:42]line > о реализуемом товаре [13:20:42]line ОКРУГЛЕНИЕ: -0.53 [13:20:42]line ИТОГО: 398.00 [13:20:42]line Внесено: 400.00 [13:20:42]line СДАЧА: 2.00 [13:20:42]line НСП 1% : 3.53 [13:20:42]line НДС 12% : 42.32 [13:20:42]line Наличными: 398.00 [13:20:42]line Безнал.: 0.00 [13:20:42]line Место: АЗС № 171 "Партнер Нефть" [13:20:42]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:20:42]line СНО: Общий режим [13:20:42]line Чек 249 26.10.2024 13:20 [13:20:42]line Смена: 543 ФФД: 1.0 [13:20:42]line ЗНМ: 0300000109 [13:20:42]line РНМ: 0000000000091777 [13:20:42]line Версия ККМ: 001 [13:20:42]line ФМ: 0000000000871756 [13:20:42]line ФД: 201487 [13:20:42]line ФПД: 45363503875317 [13:20:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T132041&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201487&fm=45363503875317&tin=02508201610067®Number=0000000000091777&sum=39800 [13:20:42]OFD Sender: Processing packet 201487 [packets to send 112, broken 111] [13:20:42]ProducePacketName [13:20:42]name=ofd_packets/00201487 [13:20:42]OFD Sender: To server: pG, [13:20:42]CommunicateWithHost lk.salyk.kg:30040 [13:20:42]ConnectInit lk.salyk.kg [13:20:42]written 0, free lines is 4095 [13:20:42]Connected sock=10 [13:20:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 70 94 04 01 83 6C 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 32 FF 03 08 00 03 6E 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 AD 9B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 10 00 00 00 00 07 04 06 00 78 9B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 A9 EC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0F 13 03 00 35 04 06 00 29 42 03 88 C4 F5 C4 51 F6 6C 09 99 7E 29 [13:20:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 53 03 47 00 27 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 0F 13 03 00 F4 03 04 00 52 98 1C 67 B6 04 01 00 00 7F CA D3 5E 19 52 B1 C1 [13:20:43]CommunicateWithHost err = 0 [13:20:43]CheckOFDResponse [13:20:43]1017 (14) - 77093643461234 [13:20:43]1041 (16) - 0000000000871756 [13:20:43]1040 (4) - 201487 [13:20:43]1012 (4) - 26.10.2024 07:20 [13:20:43]1206 (1) - 0 [13:20:43]OFD Sender: Remove packet 201487 [13:20:43]ProducePacketName [13:20:43]name=ofd_packets/00201487 [13:20:43]NVStorageDeleteData [13:20:43]Write to MH i2c: 01 00 00 00 13 13 [13:20:43]Write i2c OK [13:20:43]MH_I2C_Read... [13:20:43]Read from MH i2c: 01 [13:20:43]MH_I2C_Read... [13:20:43]Read from MH i2c: 01 07 00 [13:20:43]MH_I2C_Read... [13:20:43]Read from MH i2c: 01 07 00 00 13 00 00 00 00 00 99 0C BF [13:20:43]RasterBufferAndPrint [13:20:43]line [13:20:43]line [13:20:43]line [13:20:43]line [13:20:43]line [13:20:43]written 0, free lines is 3231 [13:20:43]MH_Cut [13:20:43]Write to MH i2c: D1 01 00 07 13 01 EC [13:20:43]Write i2c OK [13:20:43]MH_I2C_Read... [13:20:43]Read from MH i2c: D1 [13:20:43]MH_I2C_Read... [13:20:43]Read from MH i2c: D1 01 00 [13:20:43]MH_I2C_Read... [13:20:43]Read from MH i2c: D1 01 00 07 13 00 EB [13:20:43]Write to MH i2c: 01 00 00 08 13 1B [13:20:43]Write i2c OK [13:20:43]MH_I2C_Read... [13:20:43]OFD Sender: No OFD packet to send [13:20:44]*** Cut start [13:20:44]*** Purtial cut [13:20:44]*** Stage 1: CUTSNS_PIN = 1 [13:20:44]Read from MH i2c: 01 [13:20:44]MH_I2C_Read... [13:20:44]*** Stop cut motor [13:20:44]*** Cut end [13:20:44]Read from MH i2c: 01 07 00 [13:20:44]MH_I2C_Read... [13:20:44]Read from MH i2c: 01 07 00 08 13 00 00 00 00 00 FF 0F 30 [13:20:44]process_action close_receipt done [13:20:44]requested_data is exist [13:20:44]produce_requested_data [13:20:44]requested_item fm.sn is exist - process it [13:20:44]wFMCommunicate request_size=4 [13:20:44]MH_SAM_APDU [13:20:44]CAPDU: 80 11 00 00 [13:20:44]Write to MH i2c: E2 08 00 09 13 80 11 00 00 00 00 00 00 96 [13:20:44]Write i2c OK [13:20:44]MH_I2C_Read... [13:20:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:44]Read from MH i2c: E2 [13:20:44]MH_I2C_Read... [13:20:44]Read from MH i2c: E2 17 00 [13:20:44]MH_I2C_Read... [13:20:44]Read from MH i2c: E2 17 00 09 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EB [13:20:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:20:44]wFMCommunicate OK [13:20:44]requested_item fd.num is exist - process it [13:20:44]SAM_PROTO_GetFieldsCounters [13:20:44]wFMCommunicate request_size=4 [13:20:44]MH_SAM_APDU [13:20:44]CAPDU: 80 13 00 00 [13:20:44]Write to MH i2c: E2 08 00 0A 13 80 13 00 00 00 00 00 00 99 [13:20:44]Write i2c OK [13:20:44]MH_I2C_Read... [13:20:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:44]Read from MH i2c: E2 [13:20:44]MH_I2C_Read... [13:20:44]Read from MH i2c: E2 62 00 [13:20:44]MH_I2C_Read... [13:20:44]Read from MH i2c: E2 62 00 0A 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0F 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [13:20:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 0F 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:20:44]wFMCommunicate OK [13:20:44]SAM_PROTO_GetFieldsCounters done [13:20:44]requested_item shift.num is exist - process it [13:20:44]requested_item shift.opened is exist - process it [13:20:44]req_shift_opened [13:20:44]FM_GetShiftState [13:20:44]SAM_PROTO_GetShiftState [13:20:44]wFMCommunicate request_size=4 [13:20:44]MH_SAM_APDU [13:20:44]CAPDU: 80 13 01 00 [13:20:44]Write to MH i2c: E2 08 00 0B 13 80 13 01 00 00 00 00 00 9B [13:20:44]Write i2c OK [13:20:44]MH_I2C_Read... [13:20:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:44]Read from MH i2c: E2 [13:20:44]MH_I2C_Read... [13:20:44]Read from MH i2c: E2 0E 00 [13:20:44]MH_I2C_Read... [13:20:44]Read from MH i2c: E2 0E 00 0B 13 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 AA [13:20:44]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:20:44]wFMCommunicate OK [13:20:44]SAM_PROTO_GetShiftState done [13:20:44]FM_GetShiftState done [13:20:44]req_shift_opened done [13:20:44]requested_item shift.open_date is exist - process it [13:20:44]req_shift_open_date [13:20:44]req_shift_open_date done [13:20:44]produce_requested_data done [13:20:44]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201487,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:20:44]process_action_free close_receipt [13:20:44]json_value_free [13:20:44]json_value_free done [13:20:44]process_json_proto returns [13:20:44]Send response to host [13:20:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201487,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:20:44]free response buf [13:20:44]execute_script done [13:20:44]execute_script returns [13:20:44]free content buf [13:20:44]Sock 8.Close socket [13:20:44]Sock 8.Thread stoped [13:20:48]OFD Sender: No OFD packet to send [13:20:53]OFD Sender: No OFD packet to send [13:20:58]OFD Sender: No OFD packet to send [13:21:03]OFD Sender: No OFD packet to send [13:21:08]OFD Sender: No OFD packet to send [13:21:13]OFD Sender: No OFD packet to send [13:21:18]OFD Sender: No OFD packet to send [13:21:23]OFD Sender: No OFD packet to send [13:21:28]OFD Sender: No OFD packet to send [13:21:33]OFD Sender: No OFD packet to send [13:21:38]OFD Sender: No OFD packet to send [13:21:43]OFD Sender: No OFD packet to send [13:21:48]OFD Sender: No OFD packet to send [13:21:53]OFD Sender: No OFD packet to send [13:21:58]OFD Sender: No OFD packet to send [13:22:03]OFD Sender: No OFD packet to send [13:22:08]OFD Sender: No OFD packet to send [13:22:13]OFD Sender: No OFD packet to send [13:22:18]OFD Sender: No OFD packet to send [13:22:18]accept exits with 9 [13:22:18]New connection [13:22:18]New thread 3066690916 created [13:22:18]Thread 3066834276 joined [13:22:18]Waiting for new connection... [13:22:18] Sock 9.Parse request [13:22:18]Sock 9.Check first char [13:22:18]Sock 9.First char is OK [13:22:18]request: POST /json_proto HTTP/1.0 [13:22:18]Method: POST [13:22:18]URL: /json_proto [13:22:18]Method is POST - this is cgi request [13:22:18]url: /json_proto [13:22:18]query_string will be loaded in cgi processing [13:22:18]execute_cgi json_proto POST (null) [13:22:18]execute_cgi path=json_proto method=POST [13:22:18]POST find Content-Length [13:22:18]Host: 172.17.63.195:8080 [13:22:18]Content-Length: 677 [13:22:18]Content-Type: application/json [13:22:18] [13:22:18]POST finish read [13:22:18]Found Content-Length = 677 [13:22:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:22:18]execute_script... [13:22:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:22:18]POST & json_proto [13:22:18]process_json_proto [13:22:18]json parsed OK: [13:22:18]protocol is kg_v1.0 [13:22:18]action value=close_receipt [13:22:18]process_action close_receipt [13:22:18]cmd_close_receipt [13:22:18]MH_GetDate [13:22:18]Write to MH i2c: F0 00 00 0C 13 0E [13:22:18]Write i2c OK [13:22:18]MH_I2C_Read... [13:22:18]Read from MH i2c: F0 [13:22:18]MH_I2C_Read... [13:22:18]Read from MH i2c: F0 09 00 [13:22:18]MH_I2C_Read... [13:22:18]Read from MH i2c: F0 09 00 0C 13 00 0B ED 1C 67 68 46 19 67 C0 [13:22:18]GetLastDocTimeStamp 1729948841 [13:22:18]current date 1729948939 [13:22:18]FM_GetShiftState [13:22:18]SAM_PROTO_GetShiftState [13:22:18]wFMCommunicate request_size=4 [13:22:18]MH_SAM_APDU [13:22:18]CAPDU: 80 13 01 00 [13:22:18]Write to MH i2c: E2 08 00 0D 13 80 13 01 00 00 00 00 00 9D [13:22:18]Write i2c OK [13:22:18]MH_I2C_Read... [13:22:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:18]Read from MH i2c: E2 [13:22:18]MH_I2C_Read... [13:22:18]Read from MH i2c: E2 0E 00 [13:22:18]MH_I2C_Read... [13:22:18]Read from MH i2c: E2 0E 00 0D 13 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 AC [13:22:18]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:22:18]wFMCommunicate OK [13:22:18]SAM_PROTO_GetShiftState done [13:22:18]FM_GetShiftState done [13:22:18]opened in 1729900879 [13:22:18]opened+sec_in_day 1729987279 [13:22:18]quantity*price = 40006 [13:22:18]sum+1 = 40007 [13:22:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 250 26.10.2024 13:22 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201488 ФПД: 146510760086867 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T132219&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201488&fm=146510760086867&tin=02508201610067®Number=0000000000091777&sum=40000 [13:22:20]StoreToDocumentArchive [13:22:20]shift 543 fd 201488 [13:22:20]save to /storage/0543/doc_00201488 [13:22:20]save last doc name /storage/0543/doc_00201488 to /storage/kkm_last_doc_name [13:22:20]save OK [13:22:20]Clear old archive folders... [13:22:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:22:20]tlvbuf is 01F81400 [13:22:20]SAM_PROTO_ClearQueue [13:22:20]wFMCommunicate request_size=4 [13:22:20]MH_SAM_APDU [13:22:20]CAPDU: 80 09 00 00 [13:22:20]Write to MH i2c: E2 08 00 1A 13 80 09 00 00 00 00 00 00 9F [13:22:20]Write i2c OK [13:22:20]MH_I2C_Read... [13:22:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:20]Read from MH i2c: E2 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: E2 03 00 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: E2 03 00 1A 13 00 90 00 A1 [13:22:20]RAPDU: 90 00 [13:22:20]wFMCommunicate OK [13:22:20]SAM_PROTO_ClearQueue done [13:22:20]KKMCreateOFDPacket [13:22:20]OFDProtocolAddRootSTLVToBuf [13:22:20]FM_MakeSignedData [13:22:20]FM_MakeSignedData [13:22:20]SAM_PROTO_SignData [13:22:20]wFMCommunicate request_size=4 [13:22:20]MH_SAM_APDU [13:22:20]CAPDU: 80 0D 01 02 [13:22:20]Write to MH i2c: E2 08 00 1B 13 80 0D 01 02 00 00 00 00 A7 [13:22:20]Write i2c OK [13:22:20]MH_I2C_Read... [13:22:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:20]Read from MH i2c: E2 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: E2 03 00 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: E2 03 00 1B 13 00 90 00 A2 [13:22:20]RAPDU: 90 00 [13:22:20]wFMCommunicate OK [13:22:20]wFMCommunicate request_size=255 [13:22:20]MH_SAM_APDU [13:22:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 FA 00 00 00 F4 03 04 00 0B ED 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 10 13 03 00 35 04 06 00 85 [13:22:20]Write to MH i2c: E2 02 01 1C 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 FA 00 00 00 F4 03 04 00 0B ED 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 10 13 03 00 35 04 06 00 85 00 00 4B [13:22:20]Write i2c OK [13:22:20]MH_I2C_Read... [13:22:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:20]Read from MH i2c: E2 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: E2 03 00 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: E2 03 00 1C 13 00 90 00 A3 [13:22:20]RAPDU: 90 00 [13:22:20]wFMCommunicate OK [13:22:20]wFMCommunicate request_size=10 [13:22:20]MH_SAM_APDU [13:22:20]CAPDU: 80 0D 02 02 05 40 31 CF 8D 53 [13:22:20]Write to MH i2c: E2 0D 00 1D 13 80 0D 02 02 05 00 40 31 CF 8D 53 00 00 D4 [13:22:20]Write i2c OK [13:22:20]MH_I2C_Read... [13:22:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:20]Read from MH i2c: E2 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: E2 03 00 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: E2 03 00 1D 13 00 90 00 A4 [13:22:20]RAPDU: 90 00 [13:22:20]wFMCommunicate OK [13:22:20]wFMCommunicate request_size=4 [13:22:20]MH_SAM_APDU [13:22:20]CAPDU: 80 0D 03 02 [13:22:20]Write to MH i2c: E2 08 00 1E 13 80 0D 03 02 00 00 00 00 AC [13:22:20]Write i2c OK [13:22:20]MH_I2C_Read... [13:22:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:20]Read from MH i2c: E2 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: E2 0B 00 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: E2 0B 00 1E 13 00 8F 48 32 35 77 96 1F FE 90 00 15 [13:22:20]RAPDU: 8F 48 32 35 77 96 1F FE 90 00 [13:22:20]wFMCommunicate OK [13:22:20]SAM_PROTO_SignData done [13:22:20]FM_MakeSignedData done [13:22:20]CreateOFDProtocolMessage [13:22:20]wFMCommunicate request_size=4 [13:22:20]MH_SAM_APDU [13:22:20]CAPDU: 80 11 00 00 [13:22:20]Write to MH i2c: E2 08 00 1F 13 80 11 00 00 00 00 00 00 AC [13:22:20]Write i2c OK [13:22:20]MH_I2C_Read... [13:22:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:20]Read from MH i2c: E2 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: E2 17 00 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: E2 17 00 1F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 01 [13:22:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:22:20]wFMCommunicate OK [13:22:20]CreateOFDProtocolMessage done [13:22:20]OFDSenderStorePacket 201488 [13:22:20]StoreOFDPacket docnum=201488 [13:22:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B5 B9 07 01 EC 2E 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 32 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 FA 00 00 00 F4 03 04 00 0B ED 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 10 13 03 00 35 04 06 00 85 40 31 CF 8D 53 8F 48 32 35 77 96 1F FE [13:22:20]CheckFolder [13:22:20]dirname=/storage/ofd_packets [13:22:20]CheckFolder done [13:22:20]ProducePacketName [13:22:20]name=ofd_packets/00201488 [13:22:20]NVStorageSaveData ofd_packets/00201488 [13:22:20]File name is /storage/ofd_packets/00201488 [13:22:20]Write 301 bytes [13:22:20]NVStorageSaveData done [13:22:20]OFDSenderStorePacket done [13:22:20]KKMCreateOFDPacket done [13:22:20]NVStorageSaveData kkm_last_timestamp [13:22:20]File name is /storage/kkm_last_timestamp [13:22:20]Write 4 bytes [13:22:20]NVStorageSaveData done [13:22:20]ExternCall_PrintAddStr [13:22:20]wPrintStart [13:22:20]Write to MH i2c: 01 00 00 20 13 33 [13:22:20]Write i2c OK [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: 01 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: 01 07 00 [13:22:20]MH_I2C_Read... [13:22:20]Read from MH i2c: 01 07 00 20 13 00 00 00 00 00 FF 0F 48 [13:22:20]RasterBufferAndPrint [13:22:20]line Счет N : (1)449239 [13:22:20]line ИНН: 02508201610067 [13:22:20]line Контрольно-Кассовый Чек [13:22:20]line ПРОДАЖА [13:22:20]line ТРК (МРК, ГНК) : 62 [13:22:20]line Товар: 2710124130 [13:22:20]line Аи-92-К-2 [13:22:20]line 5.980 * 66.90 [13:22:20]line = 400.06 [13:22:20]line НДС 12% НСП 1% [13:22:20]line > о реализуемом товаре [13:22:20]line ОКРУГЛЕНИЕ: -0.06 [13:22:20]line ИТОГО: 400.00 [13:22:20]line Внесено: 400.00 [13:22:20]line СДАЧА: 0.00 [13:22:20]line НСП 1% : 3.54 [13:22:20]line НДС 12% : 42.48 [13:22:20]line Наличными: 400.00 [13:22:20]line Безнал.: 0.00 [13:22:20]line Место: АЗС № 171 "Партнер Нефть" [13:22:20]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:22:20]line СНО: Общий режим [13:22:20]line Чек 250 26.10.2024 13:22 [13:22:20]line Смена: 543 ФФД: 1.0 [13:22:20]line ЗНМ: 0300000109 [13:22:20]line РНМ: 0000000000091777 [13:22:20]line Версия ККМ: 001 [13:22:20]line ФМ: 0000000000871756 [13:22:20]line ФД: 201488 [13:22:20]line ФПД: 146510760086867 [13:22:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T132219&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201488&fm=146510760086867&tin=02508201610067®Number=0000000000091777&sum=40000 [13:22:20]OFD Sender: Processing packet 201488 [packets to send 112, broken 111] [13:22:20]ProducePacketName [13:22:20]name=ofd_packets/00201488 [13:22:20]OFD Sender: To server: pG, [13:22:20]CommunicateWithHost lk.salyk.kg:30040 [13:22:20]ConnectInit lk.salyk.kg [13:22:20]written 0, free lines is 4095 [13:22:21]Connected sock=8 [13:22:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B5 B9 07 01 EC 2E 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 32 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 FA 00 00 00 F4 03 04 00 0B ED 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 10 13 03 00 35 04 06 00 85 40 31 CF 8D 53 8F 48 32 35 77 96 1F FE [13:22:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 0F 09 47 00 A6 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 10 13 03 00 F4 03 04 00 B4 98 1C 67 B6 04 01 00 00 D5 38 BE 65 82 65 51 CA [13:22:21]CommunicateWithHost err = 0 [13:22:21]CheckOFDResponse [13:22:21]1017 (14) - 77093643461234 [13:22:21]1041 (16) - 0000000000871756 [13:22:21]1040 (4) - 201488 [13:22:21]1012 (4) - 26.10.2024 07:22 [13:22:21]1206 (1) - 0 [13:22:21]OFD Sender: Remove packet 201488 [13:22:21]ProducePacketName [13:22:21]name=ofd_packets/00201488 [13:22:21]NVStorageDeleteData [13:22:21]Write to MH i2c: 01 00 00 4B 13 5E [13:22:21]Write i2c OK [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: 01 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: 01 07 00 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: 01 07 00 4B 13 00 00 00 00 00 9D 0C 0E [13:22:21]RasterBufferAndPrint [13:22:21]line [13:22:21]line [13:22:21]line [13:22:21]line [13:22:21]line [13:22:21]written 0, free lines is 3235 [13:22:21]MH_Cut [13:22:21]Write to MH i2c: D1 01 00 52 13 01 37 [13:22:21]Write i2c OK [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: D1 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: D1 01 00 [13:22:21]MH_I2C_Read... [13:22:21]Read from MH i2c: D1 01 00 52 13 00 36 [13:22:21]Write to MH i2c: 01 00 00 53 13 66 [13:22:21]Write i2c OK [13:22:21]MH_I2C_Read... [13:22:21]OFD Sender: No OFD packet to send [13:22:22]*** Cut start [13:22:22]*** Purtial cut [13:22:22]*** Stage 1: CUTSNS_PIN = 1 [13:22:22]Read from MH i2c: 01 [13:22:22]MH_I2C_Read... [13:22:22]*** Stop cut motor [13:22:22]*** Cut end [13:22:22]Read from MH i2c: 01 07 00 [13:22:22]MH_I2C_Read... [13:22:22]Read from MH i2c: 01 07 00 53 13 00 00 00 00 00 FF 0F 7B [13:22:22]process_action close_receipt done [13:22:22]requested_data is exist [13:22:22]produce_requested_data [13:22:22]requested_item fm.sn is exist - process it [13:22:22]wFMCommunicate request_size=4 [13:22:22]MH_SAM_APDU [13:22:22]CAPDU: 80 11 00 00 [13:22:22]Write to MH i2c: E2 08 00 54 13 80 11 00 00 00 00 00 00 E1 [13:22:22]Write i2c OK [13:22:22]MH_I2C_Read... [13:22:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:22]Read from MH i2c: E2 [13:22:22]MH_I2C_Read... [13:22:22]Read from MH i2c: E2 17 00 [13:22:22]MH_I2C_Read... [13:22:22]Read from MH i2c: E2 17 00 54 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 36 [13:22:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:22:22]wFMCommunicate OK [13:22:22]requested_item fd.num is exist - process it [13:22:22]SAM_PROTO_GetFieldsCounters [13:22:22]wFMCommunicate request_size=4 [13:22:22]MH_SAM_APDU [13:22:22]CAPDU: 80 13 00 00 [13:22:22]Write to MH i2c: E2 08 00 55 13 80 13 00 00 00 00 00 00 E4 [13:22:22]Write i2c OK [13:22:22]MH_I2C_Read... [13:22:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:22]Read from MH i2c: E2 [13:22:22]MH_I2C_Read... [13:22:22]Read from MH i2c: E2 62 00 [13:22:22]MH_I2C_Read... [13:22:22]Read from MH i2c: E2 62 00 55 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 10 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [13:22:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 10 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:22:22]wFMCommunicate OK [13:22:22]SAM_PROTO_GetFieldsCounters done [13:22:22]requested_item shift.num is exist - process it [13:22:22]requested_item shift.opened is exist - process it [13:22:22]req_shift_opened [13:22:22]FM_GetShiftState [13:22:22]SAM_PROTO_GetShiftState [13:22:22]wFMCommunicate request_size=4 [13:22:22]MH_SAM_APDU [13:22:22]CAPDU: 80 13 01 00 [13:22:22]Write to MH i2c: E2 08 00 56 13 80 13 01 00 00 00 00 00 E6 [13:22:22]Write i2c OK [13:22:22]MH_I2C_Read... [13:22:22]Read from MH i2c: E2 [13:22:22]MH_I2C_Read... [13:22:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:22]Read from MH i2c: E2 0E 00 [13:22:22]MH_I2C_Read... [13:22:22]Read from MH i2c: E2 0E 00 56 13 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F5 [13:22:22]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:22:22]wFMCommunicate OK [13:22:22]SAM_PROTO_GetShiftState done [13:22:22]FM_GetShiftState done [13:22:22]req_shift_opened done [13:22:22]requested_item shift.open_date is exist - process it [13:22:22]req_shift_open_date [13:22:22]req_shift_open_date done [13:22:22]produce_requested_data done [13:22:22]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201488,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:22:22]process_action_free close_receipt [13:22:22]json_value_free [13:22:22]json_value_free done [13:22:22]process_json_proto returns [13:22:22]Send response to host [13:22:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201488,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:22:22]free response buf [13:22:22]execute_script done [13:22:22]execute_script returns [13:22:22]free content buf [13:22:22]Sock 9.Close socket [13:22:22]Sock 9.Thread stoped [13:22:26]OFD Sender: No OFD packet to send [13:22:31]OFD Sender: No OFD packet to send [13:22:36]OFD Sender: No OFD packet to send [13:22:40]accept exits with 10 [13:22:40]New connection [13:22:40]New thread 3066834276 created [13:22:40]Thread 3066690916 joined [13:22:40]Waiting for new connection... [13:22:40] Sock 10.Parse request [13:22:40]Sock 10.Check first char [13:22:40]Sock 10.First char is OK [13:22:40]request: POST /json_proto HTTP/1.0 [13:22:40]Method: POST [13:22:40]URL: /json_proto [13:22:40]Method is POST - this is cgi request [13:22:40]url: /json_proto [13:22:40]query_string will be loaded in cgi processing [13:22:40]execute_cgi json_proto POST (null) [13:22:40]execute_cgi path=json_proto method=POST [13:22:40]POST find Content-Length [13:22:40]Host: 172.17.63.195:8080 [13:22:40]Content-Length: 677 [13:22:40]Content-Type: application/json [13:22:40] [13:22:40]POST finish read [13:22:40]Found Content-Length = 677 [13:22:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:40]execute_script... [13:22:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:40]POST & json_proto [13:22:40]process_json_proto [13:22:40]json parsed OK: [13:22:40]protocol is kg_v1.0 [13:22:40]action value=close_receipt [13:22:40]process_action close_receipt [13:22:40]cmd_close_receipt [13:22:40]MH_GetDate [13:22:40]Write to MH i2c: F0 00 00 57 13 59 [13:22:40]Write i2c OK [13:22:40]MH_I2C_Read... [13:22:40]Read from MH i2c: F0 [13:22:40]MH_I2C_Read... [13:22:40]Read from MH i2c: F0 09 00 [13:22:40]MH_I2C_Read... [13:22:40]Read from MH i2c: F0 09 00 57 13 00 21 ED 1C 67 68 46 19 67 21 [13:22:40]GetLastDocTimeStamp 1729948939 [13:22:40]current date 1729948961 [13:22:40]FM_GetShiftState [13:22:40]SAM_PROTO_GetShiftState [13:22:40]wFMCommunicate request_size=4 [13:22:40]MH_SAM_APDU [13:22:40]CAPDU: 80 13 01 00 [13:22:40]Write to MH i2c: E2 08 00 58 13 80 13 01 00 00 00 00 00 E8 [13:22:40]Write i2c OK [13:22:40]MH_I2C_Read... [13:22:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:40]Read from MH i2c: E2 [13:22:40]MH_I2C_Read... [13:22:40]Read from MH i2c: E2 0E 00 [13:22:40]MH_I2C_Read... [13:22:40]Read from MH i2c: E2 0E 00 58 13 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F7 [13:22:40]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:22:40]wFMCommunicate OK [13:22:40]SAM_PROTO_GetShiftState done [13:22:40]FM_GetShiftState done [13:22:40]opened in 1729900879 [13:22:40]opened+sec_in_day 1729987279 [13:22:40]quantity*price = 30038 [13:22:40]sum+1 = 30039 [13:22:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 251 26.10.2024 13:22 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201489 ФПД: 23622369209836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T132241&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201489&fm=23622369209836&tin=02508201610067®Number=0000000000091777&sum=30000 [13:22:41]StoreToDocumentArchive [13:22:41]shift 543 fd 201489 [13:22:41]save to /storage/0543/doc_00201489 [13:22:41]save last doc name /storage/0543/doc_00201489 to /storage/kkm_last_doc_name [13:22:41]save OK [13:22:41]Clear old archive folders... [13:22:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:22:41]tlvbuf is 01F81580 [13:22:41]SAM_PROTO_ClearQueue [13:22:41]wFMCommunicate request_size=4 [13:22:41]MH_SAM_APDU [13:22:41]CAPDU: 80 09 00 00 [13:22:41]Write to MH i2c: E2 08 00 65 13 80 09 00 00 00 00 00 00 EA [13:22:41]Write i2c OK [13:22:41]MH_I2C_Read... [13:22:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:41]Read from MH i2c: E2 [13:22:41]MH_I2C_Read... [13:22:41]Read from MH i2c: E2 03 00 [13:22:41]MH_I2C_Read... [13:22:41]Read from MH i2c: E2 03 00 65 13 00 90 00 EC [13:22:41]RAPDU: 90 00 [13:22:41]wFMCommunicate OK [13:22:41]SAM_PROTO_ClearQueue done [13:22:41]KKMCreateOFDPacket [13:22:41]OFDProtocolAddRootSTLVToBuf [13:22:41]FM_MakeSignedData [13:22:41]FM_MakeSignedData [13:22:41]SAM_PROTO_SignData [13:22:41]wFMCommunicate request_size=4 [13:22:41]MH_SAM_APDU [13:22:41]CAPDU: 80 0D 01 02 [13:22:41]Write to MH i2c: E2 08 00 66 13 80 0D 01 02 00 00 00 00 F2 [13:22:41]Write i2c OK [13:22:41]MH_I2C_Read... [13:22:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:41]Read from MH i2c: E2 [13:22:41]MH_I2C_Read... [13:22:41]Read from MH i2c: E2 03 00 [13:22:41]MH_I2C_Read... [13:22:41]Read from MH i2c: E2 03 00 66 13 00 90 00 ED [13:22:41]RAPDU: 90 00 [13:22:41]wFMCommunicate OK [13:22:41]wFMCommunicate request_size=255 [13:22:41]MH_SAM_APDU [13:22:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 21 ED 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 11 13 03 00 35 04 06 00 15 [13:22:41]Write to MH i2c: E2 02 01 67 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 21 ED 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 11 13 03 00 35 04 06 00 15 00 00 63 [13:22:41]Write i2c OK [13:22:41]MH_I2C_Read... [13:22:41]OFD Sender: No OFD packet to send [13:22:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:42]Read from MH i2c: E2 [13:22:42]MH_I2C_Read... [13:22:42]Read from MH i2c: E2 03 00 [13:22:42]MH_I2C_Read... [13:22:42]Read from MH i2c: E2 03 00 67 13 00 90 00 EE [13:22:42]RAPDU: 90 00 [13:22:42]wFMCommunicate OK [13:22:42]wFMCommunicate request_size=10 [13:22:42]MH_SAM_APDU [13:22:42]CAPDU: 80 0D 02 02 05 7C 02 EC ED EC [13:22:42]Write to MH i2c: E2 0D 00 68 13 80 0D 02 02 05 00 7C 02 EC ED EC 00 00 42 [13:22:42]Write i2c OK [13:22:42]MH_I2C_Read... [13:22:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:42]Read from MH i2c: E2 [13:22:42]MH_I2C_Read... [13:22:42]Read from MH i2c: E2 03 00 [13:22:42]MH_I2C_Read... [13:22:42]Read from MH i2c: E2 03 00 68 13 00 90 00 EF [13:22:42]RAPDU: 90 00 [13:22:42]wFMCommunicate OK [13:22:42]wFMCommunicate request_size=4 [13:22:42]MH_SAM_APDU [13:22:42]CAPDU: 80 0D 03 02 [13:22:42]Write to MH i2c: E2 08 00 69 13 80 0D 03 02 00 00 00 00 F7 [13:22:42]Write i2c OK [13:22:42]MH_I2C_Read... [13:22:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:42]Read from MH i2c: E2 [13:22:42]MH_I2C_Read... [13:22:42]Read from MH i2c: E2 0B 00 [13:22:42]MH_I2C_Read... [13:22:42]Read from MH i2c: E2 0B 00 69 13 00 93 55 08 48 51 5E 1C 56 90 00 51 [13:22:42]RAPDU: 93 55 08 48 51 5E 1C 56 90 00 [13:22:42]wFMCommunicate OK [13:22:42]SAM_PROTO_SignData done [13:22:42]FM_MakeSignedData done [13:22:42]CreateOFDProtocolMessage [13:22:42]wFMCommunicate request_size=4 [13:22:42]MH_SAM_APDU [13:22:42]CAPDU: 80 11 00 00 [13:22:42]Write to MH i2c: E2 08 00 6A 13 80 11 00 00 00 00 00 00 F7 [13:22:42]Write i2c OK [13:22:42]MH_I2C_Read... [13:22:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:42]Read from MH i2c: E2 [13:22:42]MH_I2C_Read... [13:22:42]Read from MH i2c: E2 17 00 [13:22:42]MH_I2C_Read... [13:22:42]Read from MH i2c: E2 17 00 6A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4C [13:22:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:22:42]wFMCommunicate OK [13:22:42]CreateOFDProtocolMessage done [13:22:42]OFDSenderStorePacket 201489 [13:22:42]StoreOFDPacket docnum=201489 [13:22:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 72 3C 07 01 88 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 21 ED 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 11 13 03 00 35 04 06 00 15 7C 02 EC ED EC 93 55 08 48 51 5E 1C 56 [13:22:42]CheckFolder [13:22:42]dirname=/storage/ofd_packets [13:22:42]CheckFolder done [13:22:42]ProducePacketName [13:22:42]name=ofd_packets/00201489 [13:22:42]NVStorageSaveData ofd_packets/00201489 [13:22:42]File name is /storage/ofd_packets/00201489 [13:22:42]Write 301 bytes [13:22:42]NVStorageSaveData done [13:22:42]OFDSenderStorePacket done [13:22:42]KKMCreateOFDPacket done [13:22:42]NVStorageSaveData kkm_last_timestamp [13:22:42]File name is /storage/kkm_last_timestamp [13:22:42]Write 4 bytes [13:22:42]NVStorageSaveData done [13:22:42]ExternCall_PrintAddStr [13:22:42]wPrintStart [13:22:42]Write to MH i2c: 01 00 00 6B 13 7E [13:22:42]Write i2c OK [13:22:42]MH_I2C_Read... [13:22:42]Read from MH i2c: 01 [13:22:42]MH_I2C_Read... [13:22:42]Read from MH i2c: 01 07 00 [13:22:42]MH_I2C_Read... [13:22:42]Read from MH i2c: 01 07 00 6B 13 00 00 00 00 00 FF 0F 93 [13:22:42]RasterBufferAndPrint [13:22:42]line Счет N : (1)449238 [13:22:42]line ИНН: 02508201610067 [13:22:42]line Контрольно-Кассовый Чек [13:22:42]line ПРОДАЖА [13:22:42]line ТРК (МРК, ГНК) : 41 [13:22:42]line Товар: 2710124130 [13:22:42]line Аи-92-К-2 [13:22:42]line 4.490 * 66.90 [13:22:42]line = 300.38 [13:22:42]line НДС 12% НСП 1% [13:22:42]line > о реализуемом товаре [13:22:42]line ОКРУГЛЕНИЕ: -0.38 [13:22:42]line ИТОГО: 300.00 [13:22:42]line Внесено: 300.00 [13:22:42]line СДАЧА: 0.00 [13:22:42]line НСП 1% : 2.66 [13:22:42]line НДС 12% : 31.90 [13:22:42]line Наличными: 300.00 [13:22:42]line Безнал.: 0.00 [13:22:42]line Место: АЗС № 171 "Партнер Нефть" [13:22:42]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:22:42]line СНО: Общий режим [13:22:42]line Чек 251 26.10.2024 13:22 [13:22:42]line Смена: 543 ФФД: 1.0 [13:22:42]line ЗНМ: 0300000109 [13:22:42]line РНМ: 0000000000091777 [13:22:42]line Версия ККМ: 001 [13:22:42]line ФМ: 0000000000871756 [13:22:42]line ФД: 201489 [13:22:42]line ФПД: 23622369209836 [13:22:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T132241&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201489&fm=23622369209836&tin=02508201610067®Number=0000000000091777&sum=30000 [13:22:42]written 0, free lines is 4095 [13:22:42]OFD Sender: Processing packet 201489 [packets to send 112, broken 111] [13:22:42]ProducePacketName [13:22:42]name=ofd_packets/00201489 [13:22:42]OFD Sender: To server: pG, [13:22:42]CommunicateWithHost lk.salyk.kg:30040 [13:22:42]ConnectInit lk.salyk.kg [13:22:42]Connected sock=9 [13:22:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 72 3C 07 01 88 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 21 ED 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 11 13 03 00 35 04 06 00 15 7C 02 EC ED EC 93 55 08 48 51 5E 1C 56 [13:22:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 77 B2 47 00 7B 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 11 13 03 00 F4 03 04 00 CA 98 1C 67 B6 04 01 00 00 E4 5B 30 38 40 FA B7 B3 [13:22:42]CommunicateWithHost err = 0 [13:22:42]CheckOFDResponse [13:22:42]1017 (14) - 77093643461234 [13:22:42]1041 (16) - 0000000000871756 [13:22:42]1040 (4) - 201489 [13:22:42]1012 (4) - 26.10.2024 07:22 [13:22:42]1206 (1) - 0 [13:22:42]OFD Sender: Remove packet 201489 [13:22:42]ProducePacketName [13:22:42]name=ofd_packets/00201489 [13:22:42]NVStorageDeleteData [13:22:42]Write to MH i2c: 01 00 00 96 13 A9 [13:22:42]Write i2c OK [13:22:42]MH_I2C_Read... [13:22:42]Read from MH i2c: 01 [13:22:42]MH_I2C_Read... [13:22:42]Read from MH i2c: 01 07 00 [13:22:42]MH_I2C_Read... [13:22:42]Read from MH i2c: 01 07 00 96 13 00 00 00 00 00 AA 0C 66 [13:22:42]RasterBufferAndPrint [13:22:42]line [13:22:42]line [13:22:42]line [13:22:42]line [13:22:42]line [13:22:42]written 0, free lines is 3247 [13:22:42]MH_Cut [13:22:42]Write to MH i2c: D1 01 00 9D 13 01 82 [13:22:42]Write i2c OK [13:22:42]MH_I2C_Read... [13:22:42]Read from MH i2c: D1 [13:22:42]MH_I2C_Read... [13:22:42]Read from MH i2c: D1 01 00 [13:22:42]MH_I2C_Read... [13:22:42]Read from MH i2c: D1 01 00 9D 13 00 81 [13:22:42]Write to MH i2c: 01 00 00 9E 13 B1 [13:22:42]Write i2c OK [13:22:42]MH_I2C_Read... [13:22:43]OFD Sender: No OFD packet to send [13:22:43]*** Cut start [13:22:43]*** Purtial cut [13:22:43]*** Stage 1: CUTSNS_PIN = 1 [13:22:43]Read from MH i2c: 01 [13:22:43]MH_I2C_Read... [13:22:43]*** Stop cut motor [13:22:43]*** Cut end [13:22:43]Read from MH i2c: 01 07 00 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: 01 07 00 9E 13 00 00 00 00 00 FF 0F C6 [13:22:43]process_action close_receipt done [13:22:43]requested_data is exist [13:22:43]produce_requested_data [13:22:43]requested_item fm.sn is exist - process it [13:22:43]wFMCommunicate request_size=4 [13:22:43]MH_SAM_APDU [13:22:43]CAPDU: 80 11 00 00 [13:22:43]Write to MH i2c: E2 08 00 9F 13 80 11 00 00 00 00 00 00 2C [13:22:43]Write i2c OK [13:22:43]MH_I2C_Read... [13:22:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:43]Read from MH i2c: E2 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 17 00 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 17 00 9F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 81 [13:22:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:22:43]wFMCommunicate OK [13:22:43]requested_item fd.num is exist - process it [13:22:43]SAM_PROTO_GetFieldsCounters [13:22:43]wFMCommunicate request_size=4 [13:22:43]MH_SAM_APDU [13:22:43]CAPDU: 80 13 00 00 [13:22:43]Write to MH i2c: E2 08 00 A0 13 80 13 00 00 00 00 00 00 2F [13:22:43]Write i2c OK [13:22:43]MH_I2C_Read... [13:22:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:43]Read from MH i2c: E2 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 62 00 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 62 00 A0 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 11 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [13:22:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 11 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:22:43]wFMCommunicate OK [13:22:43]SAM_PROTO_GetFieldsCounters done [13:22:43]requested_item shift.num is exist - process it [13:22:43]requested_item shift.opened is exist - process it [13:22:43]req_shift_opened [13:22:43]FM_GetShiftState [13:22:43]SAM_PROTO_GetShiftState [13:22:43]wFMCommunicate request_size=4 [13:22:43]MH_SAM_APDU [13:22:43]CAPDU: 80 13 01 00 [13:22:43]Write to MH i2c: E2 08 00 A1 13 80 13 01 00 00 00 00 00 31 [13:22:43]Write i2c OK [13:22:43]MH_I2C_Read... [13:22:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:44]Read from MH i2c: E2 [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: E2 0E 00 [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: E2 0E 00 A1 13 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 40 [13:22:44]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:22:44]wFMCommunicate OK [13:22:44]SAM_PROTO_GetShiftState done [13:22:44]FM_GetShiftState done [13:22:44]req_shift_opened done [13:22:44]requested_item shift.open_date is exist - process it [13:22:44]req_shift_open_date [13:22:44]req_shift_open_date done [13:22:44]produce_requested_data done [13:22:44]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201489,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:22:44]process_action_free close_receipt [13:22:44]json_value_free [13:22:44]json_value_free done [13:22:44]process_json_proto returns [13:22:44]Send response to host [13:22:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201489,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:22:44]free response buf [13:22:44]execute_script done [13:22:44]execute_script returns [13:22:44]free content buf [13:22:44]Sock 10.Close socket [13:22:44]Sock 10.Thread stoped [13:22:48]OFD Sender: No OFD packet to send [13:22:53]OFD Sender: No OFD packet to send [13:22:58]OFD Sender: No OFD packet to send [13:23:03]OFD Sender: No OFD packet to send [13:23:08]OFD Sender: No OFD packet to send [13:23:13]OFD Sender: No OFD packet to send [13:23:18]OFD Sender: No OFD packet to send [13:23:20]accept exits with 8 [13:23:20]New connection [13:23:20]New thread 3066690916 created [13:23:20]Thread 3066834276 joined [13:23:20]Waiting for new connection... [13:23:20] Sock 8.Parse request [13:23:20]Sock 8.Check first char [13:23:20]Sock 8.First char is OK [13:23:20]request: POST /json_proto HTTP/1.0 [13:23:20]Method: POST [13:23:20]URL: /json_proto [13:23:20]Method is POST - this is cgi request [13:23:20]url: /json_proto [13:23:20]query_string will be loaded in cgi processing [13:23:20]execute_cgi json_proto POST (null) [13:23:20]execute_cgi path=json_proto method=POST [13:23:20]POST find Content-Length [13:23:20]Host: 172.17.63.195:8080 [13:23:20]Content-Length: 677 [13:23:20]Content-Type: application/json [13:23:20] [13:23:20]POST finish read [13:23:20]Found Content-Length = 677 [13:23:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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" ] } } [13:23:20]execute_script... [13:23: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)449240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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" ] } } [13:23:20]POST & json_proto [13:23:20]process_json_proto [13:23:20]json parsed OK: [13:23:20]protocol is kg_v1.0 [13:23:20]action value=close_receipt [13:23:20]process_action close_receipt [13:23:20]cmd_close_receipt [13:23:20]MH_GetDate [13:23:20]Write to MH i2c: F0 00 00 A2 13 A4 [13:23:20]Write i2c OK [13:23:20]MH_I2C_Read... [13:23:20]Read from MH i2c: F0 [13:23:20]MH_I2C_Read... [13:23:20]Read from MH i2c: F0 09 00 [13:23:20]MH_I2C_Read... [13:23:20]Read from MH i2c: F0 09 00 A2 13 00 49 ED 1C 67 68 46 19 67 94 [13:23:20]GetLastDocTimeStamp 1729948961 [13:23:20]current date 1729949001 [13:23:20]FM_GetShiftState [13:23:20]SAM_PROTO_GetShiftState [13:23:20]wFMCommunicate request_size=4 [13:23:20]MH_SAM_APDU [13:23:20]CAPDU: 80 13 01 00 [13:23:20]Write to MH i2c: E2 08 00 A3 13 80 13 01 00 00 00 00 00 33 [13:23:20]Write i2c OK [13:23:20]MH_I2C_Read... [13:23:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:21]Read from MH i2c: E2 [13:23:21]MH_I2C_Read... [13:23:21]Read from MH i2c: E2 0E 00 [13:23:21]MH_I2C_Read... [13:23:21]Read from MH i2c: E2 0E 00 A3 13 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 42 [13:23:21]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:23:21]wFMCommunicate OK [13:23:21]SAM_PROTO_GetShiftState done [13:23:21]FM_GetShiftState done [13:23:21]opened in 1729900879 [13:23:21]opened+sec_in_day 1729987279 [13:23:21]quantity*price = 50010 [13:23:21]sum+1 = 50012 [13:23:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 252 26.10.2024 13:23 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201490 ФПД: 55492742725260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T132321&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201490&fm=55492742725260&tin=02508201610067®Number=0000000000091777&sum=50000 [13:23:22]StoreToDocumentArchive [13:23:22]shift 543 fd 201490 [13:23:22]save to /storage/0543/doc_00201490 [13:23:22]save last doc name /storage/0543/doc_00201490 to /storage/kkm_last_doc_name [13:23:22]save OK [13:23:22]Clear old archive folders... [13:23:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:23:22]tlvbuf is 01F81A50 [13:23:22]SAM_PROTO_ClearQueue [13:23:22]wFMCommunicate request_size=4 [13:23:22]MH_SAM_APDU [13:23:22]CAPDU: 80 09 00 00 [13:23:22]Write to MH i2c: E2 08 00 B0 13 80 09 00 00 00 00 00 00 35 [13:23:22]Write i2c OK [13:23:22]MH_I2C_Read... [13:23:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:22]Read from MH i2c: E2 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: E2 03 00 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: E2 03 00 B0 13 00 90 00 37 [13:23:22]RAPDU: 90 00 [13:23:22]wFMCommunicate OK [13:23:22]SAM_PROTO_ClearQueue done [13:23:22]KKMCreateOFDPacket [13:23:22]OFDProtocolAddRootSTLVToBuf [13:23:22]FM_MakeSignedData [13:23:22]FM_MakeSignedData [13:23:22]SAM_PROTO_SignData [13:23:22]wFMCommunicate request_size=4 [13:23:22]MH_SAM_APDU [13:23:22]CAPDU: 80 0D 01 02 [13:23:22]Write to MH i2c: E2 08 00 B1 13 80 0D 01 02 00 00 00 00 3D [13:23:22]Write i2c OK [13:23:22]MH_I2C_Read... [13:23:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:22]Read from MH i2c: E2 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: E2 03 00 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: E2 03 00 B1 13 00 90 00 38 [13:23:22]RAPDU: 90 00 [13:23:22]wFMCommunicate OK [13:23:22]wFMCommunicate request_size=255 [13:23:22]MH_SAM_APDU [13:23: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 FC 00 00 00 F4 03 04 00 49 ED 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 12 13 03 00 35 04 06 00 32 [13:23:22]Write to MH i2c: E2 02 01 B2 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 FC 00 00 00 F4 03 04 00 49 ED 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 12 13 03 00 35 04 06 00 32 00 00 DA [13:23:22]Write i2c OK [13:23:22]MH_I2C_Read... [13:23:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:22]Read from MH i2c: E2 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: E2 03 00 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: E2 03 00 B2 13 00 90 00 39 [13:23:22]RAPDU: 90 00 [13:23:22]wFMCommunicate OK [13:23:22]wFMCommunicate request_size=10 [13:23:22]MH_SAM_APDU [13:23:22]CAPDU: 80 0D 02 02 05 78 69 37 BE 8C [13:23:22]Write to MH i2c: E2 0D 00 B3 13 80 0D 02 02 05 00 78 69 37 BE 8C 00 00 AC [13:23:22]Write i2c OK [13:23:22]MH_I2C_Read... [13:23:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:22]Read from MH i2c: E2 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: E2 03 00 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: E2 03 00 B3 13 00 90 00 3A [13:23:22]RAPDU: 90 00 [13:23:22]wFMCommunicate OK [13:23:22]wFMCommunicate request_size=4 [13:23:22]MH_SAM_APDU [13:23:22]CAPDU: 80 0D 03 02 [13:23:22]Write to MH i2c: E2 08 00 B4 13 80 0D 03 02 00 00 00 00 42 [13:23:22]Write i2c OK [13:23:22]MH_I2C_Read... [13:23:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:22]Read from MH i2c: E2 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: E2 0B 00 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: E2 0B 00 B4 13 00 38 96 D9 CB CC 43 AE EA 90 00 5C [13:23:22]RAPDU: 38 96 D9 CB CC 43 AE EA 90 00 [13:23:22]wFMCommunicate OK [13:23:22]SAM_PROTO_SignData done [13:23:22]FM_MakeSignedData done [13:23:22]CreateOFDProtocolMessage [13:23:22]wFMCommunicate request_size=4 [13:23:22]MH_SAM_APDU [13:23:22]CAPDU: 80 11 00 00 [13:23:22]Write to MH i2c: E2 08 00 B5 13 80 11 00 00 00 00 00 00 42 [13:23:22]Write i2c OK [13:23:22]MH_I2C_Read... [13:23:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:22]Read from MH i2c: E2 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: E2 17 00 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: E2 17 00 B5 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 97 [13:23:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:23:22]wFMCommunicate OK [13:23:22]CreateOFDProtocolMessage done [13:23:22]OFDSenderStorePacket 201490 [13:23:22]StoreOFDPacket docnum=201490 [13:23:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 25 2A 07 01 47 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 FC 00 00 00 F4 03 04 00 49 ED 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 12 13 03 00 35 04 06 00 32 78 69 37 BE 8C 38 96 D9 CB CC 43 AE EA [13:23:22]CheckFolder [13:23:22]dirname=/storage/ofd_packets [13:23:22]CheckFolder done [13:23:22]ProducePacketName [13:23:22]name=ofd_packets/00201490 [13:23:22]NVStorageSaveData ofd_packets/00201490 [13:23:22]File name is /storage/ofd_packets/00201490 [13:23:22]Write 301 bytes [13:23:22]NVStorageSaveData done [13:23:22]OFDSenderStorePacket done [13:23:22]KKMCreateOFDPacket done [13:23:22]NVStorageSaveData kkm_last_timestamp [13:23:22]File name is /storage/kkm_last_timestamp [13:23:22]Write 4 bytes [13:23:22]NVStorageSaveData done [13:23:22]ExternCall_PrintAddStr [13:23:22]wPrintStart [13:23:22]Write to MH i2c: 01 00 00 B6 13 C9 [13:23:22]Write i2c OK [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: 01 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: 01 07 00 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: 01 07 00 B6 13 00 00 00 00 00 FF 0F DE [13:23:22]RasterBufferAndPrint [13:23:22]line Счет N : (1)449240 [13:23:22]line ИНН: 02508201610067 [13:23:22]line Контрольно-Кассовый Чек [13:23:22]line ПРОДАЖА [13:23:22]line ТРК (МРК, ГНК) : 51 [13:23:22]line Товар: 2710124500 [13:23:22]line Аи-95-К-3 [13:23:22]line 6.740 * 74.20 [13:23:22]line = 500.11 [13:23:22]line НДС 12% НСП 1% [13:23:22]line > о реализуемом товаре [13:23:22]line ОКРУГЛЕНИЕ: -0.11 [13:23:22]line ИТОГО: 500.00 [13:23:22]line Внесено: 500.00 [13:23:22]line СДАЧА: 0.00 [13:23:22]line НСП 1% : 4.43 [13:23:22]line НДС 12% : 53.11 [13:23:22]line Наличными: 500.00 [13:23:22]line Безнал.: 0.00 [13:23:22]line Место: АЗС № 171 "Партнер Нефть" [13:23:22]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:23:22]line СНО: Общий режим [13:23:22]line Чек 252 26.10.2024 13:23 [13:23:22]line Смена: 543 ФФД: 1.0 [13:23:22]line ЗНМ: 0300000109 [13:23:22]line РНМ: 0000000000091777 [13:23:22]line Версия ККМ: 001 [13:23:22]line ФМ: 0000000000871756 [13:23:22]line ФД: 201490 [13:23:22]line ФПД: 55492742725260 [13:23:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T132321&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201490&fm=55492742725260&tin=02508201610067®Number=0000000000091777&sum=50000 [13:23:23]OFD Sender: Processing packet 201490 [packets to send 112, broken 111] [13:23:23]ProducePacketName [13:23:23]name=ofd_packets/00201490 [13:23:23]OFD Sender: To server: pG, [13:23:23]CommunicateWithHost lk.salyk.kg:30040 [13:23:23]ConnectInit lk.salyk.kg [13:23:23]written 0, free lines is 4095 [13:23:23]Connected sock=10 [13:23:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 25 2A 07 01 47 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 FC 00 00 00 F4 03 04 00 49 ED 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 12 13 03 00 35 04 06 00 32 78 69 37 BE 8C 38 96 D9 CB CC 43 AE EA [13:23:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 5F 93 47 00 B2 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 12 13 03 00 F4 03 04 00 F2 98 1C 67 B6 04 01 00 00 B1 40 6B 4D F3 74 5C E7 [13:23:23]CommunicateWithHost err = 0 [13:23:23]CheckOFDResponse [13:23:23]1017 (14) - 77093643461234 [13:23:23]1041 (16) - 0000000000871756 [13:23:23]1040 (4) - 201490 [13:23:23]1012 (4) - 26.10.2024 07:23 [13:23:23]1206 (1) - 0 [13:23:23]OFD Sender: Remove packet 201490 [13:23:23]ProducePacketName [13:23:23]name=ofd_packets/00201490 [13:23:23]NVStorageDeleteData [13:23:23]Write to MH i2c: 01 00 00 E1 13 F4 [13:23:23]Write i2c OK [13:23:23]MH_I2C_Read... [13:23:23]Read from MH i2c: 01 [13:23:23]MH_I2C_Read... [13:23:23]Read from MH i2c: 01 07 00 [13:23:23]MH_I2C_Read... [13:23:23]Read from MH i2c: 01 07 00 E1 13 00 00 00 00 00 99 0C A0 [13:23:23]RasterBufferAndPrint [13:23:23]line [13:23:23]line [13:23:23]line [13:23:23]line [13:23:23]line [13:23:23]written 0, free lines is 3229 [13:23:23]MH_Cut [13:23:23]Write to MH i2c: D1 01 00 E8 13 01 CD [13:23:23]Write i2c OK [13:23:23]MH_I2C_Read... [13:23:23]Read from MH i2c: D1 [13:23:23]MH_I2C_Read... [13:23:23]Read from MH i2c: D1 01 00 [13:23:23]MH_I2C_Read... [13:23:23]Read from MH i2c: D1 01 00 E8 13 00 CC [13:23:23]Write to MH i2c: 01 00 00 E9 13 FC [13:23:23]Write i2c OK [13:23:23]MH_I2C_Read... [13:23:23]OFD Sender: No OFD packet to send [13:23:24]*** Cut start [13:23:24]*** Purtial cut [13:23:24]*** Stage 1: CUTSNS_PIN = 1 [13:23:24]Read from MH i2c: 01 [13:23:24]MH_I2C_Read... [13:23:24]*** Stop cut motor [13:23:24]*** Cut end [13:23:24]Read from MH i2c: 01 07 00 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: 01 07 00 E9 13 00 00 00 00 00 FF 0F 11 [13:23:24]process_action close_receipt done [13:23:24]requested_data is exist [13:23:24]produce_requested_data [13:23:24]requested_item fm.sn is exist - process it [13:23:24]wFMCommunicate request_size=4 [13:23:24]MH_SAM_APDU [13:23:24]CAPDU: 80 11 00 00 [13:23:24]Write to MH i2c: E2 08 00 EA 13 80 11 00 00 00 00 00 00 77 [13:23:24]Write i2c OK [13:23:24]MH_I2C_Read... [13:23:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:24]Read from MH i2c: E2 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 17 00 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 17 00 EA 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CC [13:23:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:23:24]wFMCommunicate OK [13:23:24]requested_item fd.num is exist - process it [13:23:24]SAM_PROTO_GetFieldsCounters [13:23:24]wFMCommunicate request_size=4 [13:23:24]MH_SAM_APDU [13:23:24]CAPDU: 80 13 00 00 [13:23:24]Write to MH i2c: E2 08 00 EB 13 80 13 00 00 00 00 00 00 7A [13:23:24]Write i2c OK [13:23:24]MH_I2C_Read... [13:23:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:24]Read from MH i2c: E2 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 62 00 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 62 00 EB 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 12 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [13:23:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 12 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:23:24]wFMCommunicate OK [13:23:24]SAM_PROTO_GetFieldsCounters done [13:23:24]requested_item shift.num is exist - process it [13:23:24]requested_item shift.opened is exist - process it [13:23:24]req_shift_opened [13:23:24]FM_GetShiftState [13:23:24]SAM_PROTO_GetShiftState [13:23:24]wFMCommunicate request_size=4 [13:23:24]MH_SAM_APDU [13:23:24]CAPDU: 80 13 01 00 [13:23:24]Write to MH i2c: E2 08 00 EC 13 80 13 01 00 00 00 00 00 7C [13:23:24]Write i2c OK [13:23:24]MH_I2C_Read... [13:23:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:24]Read from MH i2c: E2 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 0E 00 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 0E 00 EC 13 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 8B [13:23:24]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:23:24]wFMCommunicate OK [13:23:24]SAM_PROTO_GetShiftState done [13:23:24]FM_GetShiftState done [13:23:24]req_shift_opened done [13:23:24]requested_item shift.open_date is exist - process it [13:23:24]req_shift_open_date [13:23:24]req_shift_open_date done [13:23:24]produce_requested_data done [13:23:24]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201490,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:23:24]process_action_free close_receipt [13:23:24]json_value_free [13:23:24]json_value_free done [13:23:24]process_json_proto returns [13:23:24]Send response to host [13:23:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201490,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:23:24]free response buf [13:23:24]execute_script done [13:23:24]execute_script returns [13:23:24]free content buf [13:23:24]Sock 8.Close socket [13:23:24]Sock 8.Thread stoped [13:23:28]OFD Sender: No OFD packet to send [13:23:33]OFD Sender: No OFD packet to send [13:23:38]OFD Sender: No OFD packet to send [13:23:43]OFD Sender: No OFD packet to send [13:23:48]OFD Sender: No OFD packet to send [13:23:53]OFD Sender: No OFD packet to send [13:23:58]OFD Sender: No OFD packet to send [13:24:03]OFD Sender: No OFD packet to send [13:24:08]OFD Sender: No OFD packet to send [13:24:13]OFD Sender: No OFD packet to send [13:24:18]OFD Sender: No OFD packet to send [13:24:23]OFD Sender: No OFD packet to send [13:24:28]OFD Sender: No OFD packet to send [13:24:33]OFD Sender: No OFD packet to send [13:24:38]OFD Sender: No OFD packet to send [13:24:43]OFD Sender: No OFD packet to send [13:24:48]OFD Sender: No OFD packet to send [13:24:53]OFD Sender: No OFD packet to send [13:24:58]OFD Sender: No OFD packet to send [13:25:03]OFD Sender: No OFD packet to send [13:25:08]OFD Sender: No OFD packet to send [13:25:14]OFD Sender: No OFD packet to send [13:25:17]accept exits with 9 [13:25:17]New connection [13:25:17]New thread 3066834276 created [13:25:17]Thread 3066690916 joined [13:25:17]Waiting for new connection... [13:25:17] Sock 9.Parse request [13:25:17]Sock 9.Check first char [13:25:17]Sock 9.First char is OK [13:25:17]request: POST /json_proto HTTP/1.0 [13:25:17]Method: POST [13:25:17]URL: /json_proto [13:25:17]Method is POST - this is cgi request [13:25:17]url: /json_proto [13:25:17]query_string will be loaded in cgi processing [13:25:17]execute_cgi json_proto POST (null) [13:25:17]execute_cgi path=json_proto method=POST [13:25:17]POST find Content-Length [13:25:17]Host: 172.17.63.195:8080 [13:25:17]Content-Length: 677 [13:25:17]Content-Type: application/json [13:25:17] [13:25:17]POST finish read [13:25:17]Found Content-Length = 677 [13:25:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:25:17]execute_script... [13: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)449242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:25:17]POST & json_proto [13:25:17]process_json_proto [13:25:17]json parsed OK: [13:25:17]protocol is kg_v1.0 [13:25:17]action value=close_receipt [13:25:17]process_action close_receipt [13:25:17]cmd_close_receipt [13:25:17]MH_GetDate [13:25:17]Write to MH i2c: F0 00 00 ED 13 EF [13:25:17]Write i2c OK [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: F0 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: F0 09 00 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: F0 09 00 ED 13 00 BE ED 1C 67 68 46 19 67 54 [13:25:17]GetLastDocTimeStamp 1729949001 [13:25:17]current date 1729949118 [13:25:17]FM_GetShiftState [13:25:17]SAM_PROTO_GetShiftState [13:25:17]wFMCommunicate request_size=4 [13:25:17]MH_SAM_APDU [13:25:17]CAPDU: 80 13 01 00 [13:25:17]Write to MH i2c: E2 08 00 EE 13 80 13 01 00 00 00 00 00 7E [13:25:17]Write i2c OK [13:25:17]MH_I2C_Read... [13:25:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:17]Read from MH i2c: E2 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: E2 0E 00 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: E2 0E 00 EE 13 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 8D [13:25:17]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:25:17]wFMCommunicate OK [13:25:17]SAM_PROTO_GetShiftState done [13:25:17]FM_GetShiftState done [13:25:17]opened in 1729900879 [13:25:17]opened+sec_in_day 1729987279 [13:25:17]quantity*price = 20003 [13:25:17]sum+1 = 20004 [13:25:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 253 26.10.2024 13:25 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201491 ФПД: 153849296701044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T132518&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201491&fm=153849296701044&tin=02508201610067®Number=0000000000091777&sum=20000 [13:25:18]StoreToDocumentArchive [13:25:18]shift 543 fd 201491 [13:25:18]save to /storage/0543/doc_00201491 [13:25:18]save last doc name /storage/0543/doc_00201491 to /storage/kkm_last_doc_name [13:25:18]save OK [13:25:18]Clear old archive folders... [13:25:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:25:18]tlvbuf is 01F81670 [13:25:18]SAM_PROTO_ClearQueue [13:25:18]wFMCommunicate request_size=4 [13:25:18]MH_SAM_APDU [13:25:18]CAPDU: 80 09 00 00 [13:25:18]Write to MH i2c: E2 08 00 FB 13 80 09 00 00 00 00 00 00 80 [13:25:18]Write i2c OK [13:25:18]MH_I2C_Read... [13:25:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:18]Read from MH i2c: E2 [13:25:18]MH_I2C_Read... [13:25:18]Read from MH i2c: E2 03 00 [13:25:18]MH_I2C_Read... [13:25:18]Read from MH i2c: E2 03 00 FB 13 00 90 00 82 [13:25:18]RAPDU: 90 00 [13:25:18]wFMCommunicate OK [13:25:18]SAM_PROTO_ClearQueue done [13:25:18]KKMCreateOFDPacket [13:25:18]OFDProtocolAddRootSTLVToBuf [13:25:18]FM_MakeSignedData [13:25:18]FM_MakeSignedData [13:25:18]SAM_PROTO_SignData [13:25:18]wFMCommunicate request_size=4 [13:25:18]MH_SAM_APDU [13:25:18]CAPDU: 80 0D 01 02 [13:25:18]Write to MH i2c: E2 08 00 FC 13 80 0D 01 02 00 00 00 00 88 [13:25:18]Write i2c OK [13:25:18]MH_I2C_Read... [13:25:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:18]Read from MH i2c: E2 [13:25:18]MH_I2C_Read... [13:25:18]Read from MH i2c: E2 03 00 [13:25:18]MH_I2C_Read... [13:25:18]Read from MH i2c: E2 03 00 FC 13 00 90 00 83 [13:25:18]RAPDU: 90 00 [13:25:18]wFMCommunicate OK [13:25:18]wFMCommunicate request_size=255 [13:25:18]MH_SAM_APDU [13: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 32 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 FD 00 00 00 F4 03 04 00 BE ED 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 13 13 03 00 35 04 06 00 8B [13:25:18]Write to MH i2c: E2 02 01 FD 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 FD 00 00 00 F4 03 04 00 BE ED 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 13 13 03 00 35 04 06 00 8B 00 00 DE [13:25:18]Write i2c OK [13:25:18]MH_I2C_Read... [13:25:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:18]Read from MH i2c: E2 [13:25:18]MH_I2C_Read... [13:25:18]Read from MH i2c: E2 03 00 [13:25:18]MH_I2C_Read... [13:25:18]Read from MH i2c: E2 03 00 FD 13 00 90 00 84 [13:25:18]RAPDU: 90 00 [13:25:18]wFMCommunicate OK [13:25:18]wFMCommunicate request_size=10 [13:25:18]MH_SAM_APDU [13:25:18]CAPDU: 80 0D 02 02 05 EC D4 AD C6 74 [13:25:18]Write to MH i2c: E2 0D 00 FE 13 80 0D 02 02 05 00 EC D4 AD C6 74 00 00 3C [13:25:18]Write i2c OK [13:25:18]MH_I2C_Read... [13:25:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:18]Read from MH i2c: E2 [13:25:18]MH_I2C_Read... [13:25:18]Read from MH i2c: E2 03 00 [13:25:18]MH_I2C_Read... [13:25:18]Read from MH i2c: E2 03 00 FE 13 00 90 00 85 [13:25:18]RAPDU: 90 00 [13:25:18]wFMCommunicate OK [13:25:18]wFMCommunicate request_size=4 [13:25:18]MH_SAM_APDU [13:25:18]CAPDU: 80 0D 03 02 [13:25:18]Write to MH i2c: E2 08 00 FF 13 80 0D 03 02 00 00 00 00 8D [13:25:18]Write i2c OK [13:25:18]MH_I2C_Read... [13:25:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:18]Read from MH i2c: E2 [13:25:18]MH_I2C_Read... [13:25:18]Read from MH i2c: E2 0B 00 [13:25:18]MH_I2C_Read... [13:25:18]Read from MH i2c: E2 0B 00 FF 13 00 36 0F 60 DC 54 E5 23 27 90 00 92 [13:25:18]RAPDU: 36 0F 60 DC 54 E5 23 27 90 00 [13:25:18]wFMCommunicate OK [13:25:18]SAM_PROTO_SignData done [13:25:18]FM_MakeSignedData done [13:25:18]CreateOFDProtocolMessage [13:25:18]wFMCommunicate request_size=4 [13:25:18]MH_SAM_APDU [13:25:18]CAPDU: 80 11 00 00 [13:25:18]Write to MH i2c: E2 08 00 00 14 80 11 00 00 00 00 00 00 8E [13:25:18]Write i2c OK [13:25:18]MH_I2C_Read... [13:25:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:18]Read from MH i2c: E2 [13:25:18]MH_I2C_Read... [13:25:18]Read from MH i2c: E2 17 00 [13:25:18]MH_I2C_Read... [13:25:18]Read from MH i2c: E2 17 00 00 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E3 [13:25:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:25:18]wFMCommunicate OK [13:25:18]CreateOFDProtocolMessage done [13:25:18]OFDSenderStorePacket 201491 [13:25:18]StoreOFDPacket docnum=201491 [13:25:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 AF F3 07 01 D3 FB 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 32 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 FD 00 00 00 F4 03 04 00 BE ED 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 13 13 03 00 35 04 06 00 8B EC D4 AD C6 74 36 0F 60 DC 54 E5 23 27 [13:25:18]CheckFolder [13:25:18]dirname=/storage/ofd_packets [13:25:18]CheckFolder done [13:25:18]ProducePacketName [13:25:18]name=ofd_packets/00201491 [13:25:18]NVStorageSaveData ofd_packets/00201491 [13:25:18]File name is /storage/ofd_packets/00201491 [13:25:18]Write 301 bytes [13:25:18]NVStorageSaveData done [13:25:18]OFDSenderStorePacket done [13:25:18]KKMCreateOFDPacket done [13:25:18]NVStorageSaveData kkm_last_timestamp [13:25:18]File name is /storage/kkm_last_timestamp [13:25:18]Write 4 bytes [13:25:18]NVStorageSaveData done [13:25:18]ExternCall_PrintAddStr [13:25:18]wPrintStart [13:25:18]Write to MH i2c: 01 00 00 01 14 15 [13:25:18]Write i2c OK [13:25:18]MH_I2C_Read... [13:25:18]Read from MH i2c: 01 [13:25:18]MH_I2C_Read... [13:25:18]Read from MH i2c: 01 07 00 [13:25:18]MH_I2C_Read... [13:25:18]Read from MH i2c: 01 07 00 01 14 00 00 00 00 00 FF 0F 2A [13:25:18]RasterBufferAndPrint [13:25:18]line Счет N : (1)449242 [13:25:18]line ИНН: 02508201610067 [13:25:18]line Контрольно-Кассовый Чек [13:25:18]line ПРОДАЖА [13:25:18]line ТРК (МРК, ГНК) : 31 [13:25:18]line Товар: 2710124130 [13:25:18]line Аи-92-К-2 [13:25:18]line 2.990 * 66.90 [13:25:18]line = 200.03 [13:25:18]line НДС 12% НСП 1% [13:25:18]line > о реализуемом товаре [13:25:18]line ОКРУГЛЕНИЕ: -0.03 [13:25:18]line ИТОГО: 200.00 [13:25:18]line Внесено: 200.00 [13:25:18]line СДАЧА: 0.00 [13:25:18]line НСП 1% : 1.77 [13:25:18]line НДС 12% : 21.24 [13:25:18]line Наличными: 200.00 [13:25:18]line Безнал.: 0.00 [13:25:18]line Место: АЗС № 171 "Партнер Нефть" [13:25:18]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:25:18]line СНО: Общий режим [13:25:18]line Чек 253 26.10.2024 13:25 [13:25:18]line Смена: 543 ФФД: 1.0 [13:25:18]line ЗНМ: 0300000109 [13:25:18]line РНМ: 0000000000091777 [13:25:18]line Версия ККМ: 001 [13:25:18]line ФМ: 0000000000871756 [13:25:18]line ФД: 201491 [13:25:18]line ФПД: 153849296701044 [13:25:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T132518&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201491&fm=153849296701044&tin=02508201610067®Number=0000000000091777&sum=20000 [13:25:19]OFD Sender: Processing packet 201491 [packets to send 112, broken 111] [13:25:19]ProducePacketName [13:25:19]name=ofd_packets/00201491 [13:25:19]OFD Sender: To server: pG, [13:25:19]CommunicateWithHost lk.salyk.kg:30040 [13:25:19]ConnectInit lk.salyk.kg [13:25:19]written 0, free lines is 4095 [13:25:19]Connected sock=11 [13:25:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 AF F3 07 01 D3 FB 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 32 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 FD 00 00 00 F4 03 04 00 BE ED 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 13 13 03 00 35 04 06 00 8B EC D4 AD C6 74 36 0F 60 DC 54 E5 23 27 [13:25:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 24 27 47 00 24 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 13 13 03 00 F4 03 04 00 67 99 1C 67 B6 04 01 00 00 26 F0 10 62 6C 9F F9 3F [13:25:19]CommunicateWithHost err = 0 [13:25:19]CheckOFDResponse [13:25:19]1017 (14) - 77093643461234 [13:25:19]1041 (16) - 0000000000871756 [13:25:19]1040 (4) - 201491 [13:25:19]1012 (4) - 26.10.2024 07:25 [13:25:19]1206 (1) - 0 [13:25:19]OFD Sender: Remove packet 201491 [13:25:19]ProducePacketName [13:25:19]name=ofd_packets/00201491 [13:25:19]NVStorageDeleteData [13:25:19]Write to MH i2c: 01 00 00 2C 14 40 [13:25:19]Write i2c OK [13:25:19]MH_I2C_Read... [13:25:19]Read from MH i2c: 01 [13:25:19]MH_I2C_Read... [13:25:19]Read from MH i2c: 01 07 00 [13:25:19]MH_I2C_Read... [13:25:19]Read from MH i2c: 01 07 00 2C 14 00 00 00 00 00 93 0C E6 [13:25:19]RasterBufferAndPrint [13:25:19]line [13:25:19]line [13:25:19]line [13:25:19]line [13:25:19]line [13:25:19]written 0, free lines is 3223 [13:25:19]MH_Cut [13:25:19]Write to MH i2c: D1 01 00 33 14 01 19 [13:25:19]Write i2c OK [13:25:19]MH_I2C_Read... [13:25:19]Read from MH i2c: D1 [13:25:19]MH_I2C_Read... [13:25:19]Read from MH i2c: D1 01 00 [13:25:19]MH_I2C_Read... [13:25:19]Read from MH i2c: D1 01 00 33 14 00 18 [13:25:19]Write to MH i2c: 01 00 00 34 14 48 [13:25:19]Write i2c OK [13:25:19]MH_I2C_Read... [13:25:20]OFD Sender: No OFD packet to send [13:25:20]*** Cut start [13:25:20]*** Purtial cut [13:25:20]*** Stage 1: CUTSNS_PIN = 1 [13:25:20]Read from MH i2c: 01 [13:25:20]MH_I2C_Read... [13:25:20]*** Stop cut motor [13:25:20]*** Cut end [13:25:20]Read from MH i2c: 01 07 00 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: 01 07 00 34 14 00 00 00 00 00 FF 0F 5D [13:25:20]process_action close_receipt done [13:25:20]requested_data is exist [13:25:20]produce_requested_data [13:25:20]requested_item fm.sn is exist - process it [13:25:20]wFMCommunicate request_size=4 [13:25:20]MH_SAM_APDU [13:25:20]CAPDU: 80 11 00 00 [13:25:20]Write to MH i2c: E2 08 00 35 14 80 11 00 00 00 00 00 00 C3 [13:25:20]Write i2c OK [13:25:20]MH_I2C_Read... [13:25:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:20]Read from MH i2c: E2 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: E2 17 00 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: E2 17 00 35 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 18 [13:25:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:25:20]wFMCommunicate OK [13:25:20]requested_item fd.num is exist - process it [13:25:20]SAM_PROTO_GetFieldsCounters [13:25:20]wFMCommunicate request_size=4 [13:25:20]MH_SAM_APDU [13:25:20]CAPDU: 80 13 00 00 [13:25:20]Write to MH i2c: E2 08 00 36 14 80 13 00 00 00 00 00 00 C6 [13:25:20]Write i2c OK [13:25:20]MH_I2C_Read... [13:25:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:20]Read from MH i2c: E2 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: E2 62 00 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: E2 62 00 36 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 13 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [13:25:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 13 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:25:20]wFMCommunicate OK [13:25:20]SAM_PROTO_GetFieldsCounters done [13:25:20]requested_item shift.num is exist - process it [13:25:20]requested_item shift.opened is exist - process it [13:25:20]req_shift_opened [13:25:20]FM_GetShiftState [13:25:20]SAM_PROTO_GetShiftState [13:25:20]wFMCommunicate request_size=4 [13:25:20]MH_SAM_APDU [13:25:20]CAPDU: 80 13 01 00 [13:25:20]Write to MH i2c: E2 08 00 37 14 80 13 01 00 00 00 00 00 C8 [13:25:20]Write i2c OK [13:25:20]MH_I2C_Read... [13:25:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:21]Read from MH i2c: E2 [13:25:21]MH_I2C_Read... [13:25:21]Read from MH i2c: E2 0E 00 [13:25:21]MH_I2C_Read... [13:25:21]Read from MH i2c: E2 0E 00 37 14 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D7 [13:25:21]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:25:21]wFMCommunicate OK [13:25:21]SAM_PROTO_GetShiftState done [13:25:21]FM_GetShiftState done [13:25:21]req_shift_opened done [13:25:21]requested_item shift.open_date is exist - process it [13:25:21]req_shift_open_date [13:25:21]req_shift_open_date done [13:25:21]produce_requested_data done [13:25:21]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201491,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:25:21]process_action_free close_receipt [13:25:21]json_value_free [13:25:21]json_value_free done [13:25:21]process_json_proto returns [13:25:21]Send response to host [13:25:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201491,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:25:21]free response buf [13:25:21]execute_script done [13:25:21]execute_script returns [13:25:21]free content buf [13:25:21]Sock 9.Close socket [13:25:21]Sock 9.Thread stoped [13:25:25]OFD Sender: No OFD packet to send [13:25:30]OFD Sender: No OFD packet to send [13:25:34]accept exits with 8 [13:25:34]New connection [13:25:34]New thread 3066690916 created [13:25:34]Thread 3066834276 joined [13:25:34]Waiting for new connection... [13:25:34] Sock 8.Parse request [13:25:34]Sock 8.Check first char [13:25:34]Sock 8.First char is OK [13:25:34]request: POST /json_proto HTTP/1.0 [13:25:34]Method: POST [13:25:34]URL: /json_proto [13:25:34]Method is POST - this is cgi request [13:25:34]url: /json_proto [13:25:34]query_string will be loaded in cgi processing [13:25:34]execute_cgi json_proto POST (null) [13:25:34]execute_cgi path=json_proto method=POST [13:25:34]POST find Content-Length [13:25:34]Host: 172.17.63.195:8080 [13:25:34]Content-Length: 678 [13:25:34]Content-Type: application/json [13:25:34] [13:25:34]POST finish read [13:25:34]Found Content-Length = 678 [13:25:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [13:25:34]execute_script... [13:25: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)449241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [13:25:34]POST & json_proto [13:25:34]process_json_proto [13:25:34]json parsed OK: [13:25:34]protocol is kg_v1.0 [13:25:34]action value=close_receipt [13:25:34]process_action close_receipt [13:25:34]cmd_close_receipt [13:25:34]MH_GetDate [13:25:34]Write to MH i2c: F0 00 00 38 14 3B [13:25:34]Write i2c OK [13:25:34]MH_I2C_Read... [13:25:34]Read from MH i2c: F0 [13:25:34]MH_I2C_Read... [13:25:34]Read from MH i2c: F0 09 00 [13:25:34]MH_I2C_Read... [13:25:34]Read from MH i2c: F0 09 00 38 14 00 CF ED 1C 67 68 46 19 67 B1 [13:25:34]GetLastDocTimeStamp 1729949118 [13:25:34]current date 1729949135 [13:25:34]FM_GetShiftState [13:25:34]SAM_PROTO_GetShiftState [13:25:34]wFMCommunicate request_size=4 [13:25:34]MH_SAM_APDU [13:25:34]CAPDU: 80 13 01 00 [13:25:34]Write to MH i2c: E2 08 00 39 14 80 13 01 00 00 00 00 00 CA [13:25:34]Write i2c OK [13:25:34]MH_I2C_Read... [13:25:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:34]Read from MH i2c: E2 [13:25:34]MH_I2C_Read... [13:25:34]Read from MH i2c: E2 0E 00 [13:25:34]MH_I2C_Read... [13:25:34]Read from MH i2c: E2 0E 00 39 14 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D9 [13:25:34]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:25:34]wFMCommunicate OK [13:25:34]SAM_PROTO_GetShiftState done [13:25:34]FM_GetShiftState done [13:25:34]opened in 1729900879 [13:25:34]opened+sec_in_day 1729987279 [13:25:34]quantity*price = 70044 [13:25:34]sum+1 = 70045 [13:25:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 254 26.10.2024 13:25 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201492 ФПД: 19021330296886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T132535&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201492&fm=19021330296886&tin=02508201610067®Number=0000000000091777&sum=70000 [13:25:35]StoreToDocumentArchive [13:25:35]shift 543 fd 201492 [13:25:35]save to /storage/0543/doc_00201492 [13:25:35]save last doc name /storage/0543/doc_00201492 to /storage/kkm_last_doc_name [13:25:35]save OK [13:25:35]Clear old archive folders... [13:25:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:25:35]tlvbuf is 01F05EC0 [13:25:35]SAM_PROTO_ClearQueue [13:25:35]wFMCommunicate request_size=4 [13:25:35]MH_SAM_APDU [13:25:35]CAPDU: 80 09 00 00 [13:25:35]Write to MH i2c: E2 08 00 46 14 80 09 00 00 00 00 00 00 CC [13:25:35]Write i2c OK [13:25:35]MH_I2C_Read... [13:25:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:35]Read from MH i2c: E2 [13:25:35]MH_I2C_Read... [13:25:35]Read from MH i2c: E2 03 00 [13:25:35]MH_I2C_Read... [13:25:35]Read from MH i2c: E2 03 00 46 14 00 90 00 CE [13:25:35]RAPDU: 90 00 [13:25:35]wFMCommunicate OK [13:25:35]SAM_PROTO_ClearQueue done [13:25:35]KKMCreateOFDPacket [13:25:35]OFDProtocolAddRootSTLVToBuf [13:25:35]FM_MakeSignedData [13:25:35]FM_MakeSignedData [13:25:35]SAM_PROTO_SignData [13:25:35]wFMCommunicate request_size=4 [13:25:35]MH_SAM_APDU [13:25:35]CAPDU: 80 0D 01 02 [13:25:35]Write to MH i2c: E2 08 00 47 14 80 0D 01 02 00 00 00 00 D4 [13:25:35]Write i2c OK [13:25:35]MH_I2C_Read... [13:25:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:35]Read from MH i2c: E2 [13:25:35]MH_I2C_Read... [13:25:35]Read from MH i2c: E2 03 00 [13:25:35]MH_I2C_Read... [13:25:35]Read from MH i2c: E2 03 00 47 14 00 90 00 CF [13:25:35]RAPDU: 90 00 [13:25:35]wFMCommunicate OK [13:25:35]wFMCommunicate request_size=255 [13:25:35]MH_SAM_APDU [13:25:35]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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 FE 00 00 00 F4 03 04 00 CF ED 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 14 13 03 00 35 04 06 00 11 [13:25:35]Write to MH i2c: E2 02 01 48 14 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 FE 00 00 00 F4 03 04 00 CF ED 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 14 13 03 00 35 04 06 00 11 00 00 11 [13:25:35]Write i2c OK [13:25:35]MH_I2C_Read... [13:25:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:35]Read from MH i2c: E2 [13:25:35]MH_I2C_Read... [13:25:35]Read from MH i2c: E2 03 00 [13:25:35]MH_I2C_Read... [13:25:35]Read from MH i2c: E2 03 00 48 14 00 90 00 D0 [13:25:35]RAPDU: 90 00 [13:25:35]wFMCommunicate OK [13:25:35]wFMCommunicate request_size=10 [13:25:35]MH_SAM_APDU [13:25:35]CAPDU: 80 0D 02 02 05 4C BF A2 B0 36 [13:25:35]Write to MH i2c: E2 0D 00 49 14 80 0D 02 02 05 00 4C BF A2 B0 36 00 00 74 [13:25:35]Write i2c OK [13:25:35]MH_I2C_Read... [13:25:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:35]Read from MH i2c: E2 [13:25:35]MH_I2C_Read... [13:25:35]Read from MH i2c: E2 03 00 [13:25:35]MH_I2C_Read... [13:25:35]Read from MH i2c: E2 03 00 49 14 00 90 00 D1 [13:25:35]RAPDU: 90 00 [13:25:35]wFMCommunicate OK [13:25:35]wFMCommunicate request_size=4 [13:25:35]MH_SAM_APDU [13:25:35]CAPDU: 80 0D 03 02 [13:25:35]Write to MH i2c: E2 08 00 4A 14 80 0D 03 02 00 00 00 00 D9 [13:25:35]Write i2c OK [13:25:35]MH_I2C_Read... [13:25:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:35]Read from MH i2c: E2 [13:25:35]MH_I2C_Read... [13:25:35]Read from MH i2c: E2 0B 00 [13:25:35]MH_I2C_Read... [13:25:35]Read from MH i2c: E2 0B 00 4A 14 00 99 02 B1 82 9B 22 80 32 90 00 17 [13:25:35]RAPDU: 99 02 B1 82 9B 22 80 32 90 00 [13:25:35]wFMCommunicate OK [13:25:35]SAM_PROTO_SignData done [13:25:35]FM_MakeSignedData done [13:25:35]CreateOFDProtocolMessage [13:25:35]wFMCommunicate request_size=4 [13:25:35]MH_SAM_APDU [13:25:35]CAPDU: 80 11 00 00 [13:25:35]Write to MH i2c: E2 08 00 4B 14 80 11 00 00 00 00 00 00 D9 [13:25:35]Write i2c OK [13:25:35]MH_I2C_Read... [13:25:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:35]Read from MH i2c: E2 [13:25:35]MH_I2C_Read... [13:25:35]Read from MH i2c: E2 17 00 [13:25:35]MH_I2C_Read... [13:25:35]Read from MH i2c: E2 17 00 4B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2E [13:25:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:25:35]wFMCommunicate OK [13:25:35]CreateOFDProtocolMessage done [13:25:35]OFDSenderStorePacket 201492 [13:25:35]StoreOFDPacket docnum=201492 [13:25:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 35 B8 07 01 E3 1F 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 FE 00 00 00 F4 03 04 00 CF ED 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 14 13 03 00 35 04 06 00 11 4C BF A2 B0 36 99 02 B1 82 9B 22 80 32 [13:25:35]CheckFolder [13:25:35]dirname=/storage/ofd_packets [13:25:35]CheckFolder done [13:25:35]ProducePacketName [13:25:35]name=ofd_packets/00201492 [13:25:35]NVStorageSaveData ofd_packets/00201492 [13:25:35]File name is /storage/ofd_packets/00201492 [13:25:35]Write 301 bytes [13:25:35]NVStorageSaveData done [13:25:35]OFDSenderStorePacket done [13:25:35]KKMCreateOFDPacket done [13:25:35]NVStorageSaveData kkm_last_timestamp [13:25:35]File name is /storage/kkm_last_timestamp [13:25:35]Write 4 bytes [13:25:35]NVStorageSaveData done [13:25:35]ExternCall_PrintAddStr [13:25:35]wPrintStart [13:25:35]Write to MH i2c: 01 00 00 4C 14 60 [13:25:35]Write i2c OK [13:25:35]MH_I2C_Read... [13:25:35]Read from MH i2c: 01 [13:25:35]MH_I2C_Read... [13:25:35]Read from MH i2c: 01 07 00 [13:25:35]MH_I2C_Read... [13:25:35]Read from MH i2c: 01 07 00 4C 14 00 00 00 00 00 FF 0F 75 [13:25:35]RasterBufferAndPrint [13:25:35]line Счет N : (1)449241 [13:25:35]line ИНН: 02508201610067 [13:25:35]line Контрольно-Кассовый Чек [13:25:35]line ПРОДАЖА [13:25:35]line ТРК (МРК, ГНК) : 41 [13:25:35]line Товар: 2710124130 [13:25:35]line Аи-92-К-2 [13:25:35]line 10.470 * 66.90 [13:25:35]line = 700.44 [13:25:35]line НДС 12% НСП 1% [13:25:35]line > о реализуемом товаре [13:25:35]line ОКРУГЛЕНИЕ: -0.44 [13:25:35]line ИТОГО: 700.00 [13:25:35]line Внесено: 700.00 [13:25:35]line СДАЧА: 0.00 [13:25:35]line НСП 1% : 6.20 [13:25:35]line НДС 12% : 74.38 [13:25:35]line Наличными: 700.00 [13:25:35]line Безнал.: 0.00 [13:25:35]line Место: АЗС № 171 "Партнер Нефть" [13:25:35]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:25:35]line СНО: Общий режим [13:25:35]line Чек 254 26.10.2024 13:25 [13:25:35]line Смена: 543 ФФД: 1.0 [13:25:35]line ЗНМ: 0300000109 [13:25:35]line РНМ: 0000000000091777 [13:25:35]line Версия ККМ: 001 [13:25:35]line ФМ: 0000000000871756 [13:25:35]line ФД: 201492 [13:25:35]line ФПД: 19021330296886 [13:25:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T132535&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201492&fm=19021330296886&tin=02508201610067®Number=0000000000091777&sum=70000 [13:25:36]OFD Sender: Processing packet 201492 [packets to send 112, broken 111] [13:25:36]ProducePacketName [13:25:36]name=ofd_packets/00201492 [13:25:36]OFD Sender: To server: pG, [13:25:36]CommunicateWithHost lk.salyk.kg:30040 [13:25:36]ConnectInit lk.salyk.kg [13:25:36]written 0, free lines is 4095 [13:25:36]Connected sock=10 [13:25:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 35 B8 07 01 E3 1F 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 FE 00 00 00 F4 03 04 00 CF ED 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 14 13 03 00 35 04 06 00 11 4C BF A2 B0 36 99 02 B1 82 9B 22 80 32 [13:25:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A0 D7 47 00 18 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 14 13 03 00 F4 03 04 00 78 99 1C 67 B6 04 01 00 00 53 CE 74 60 AF C5 97 6B [13:25:36]CommunicateWithHost err = 0 [13:25:36]CheckOFDResponse [13:25:36]1017 (14) - 77093643461234 [13:25:36]1041 (16) - 0000000000871756 [13:25:36]1040 (4) - 201492 [13:25:36]1012 (4) - 26.10.2024 07:25 [13:25:36]1206 (1) - 0 [13:25:36]OFD Sender: Remove packet 201492 [13:25:36]ProducePacketName [13:25:36]name=ofd_packets/00201492 [13:25:36]NVStorageDeleteData [13:25:36]Write to MH i2c: 01 00 00 77 14 8B [13:25:36]Write i2c OK [13:25:36]MH_I2C_Read... [13:25:36]Read from MH i2c: 01 [13:25:36]MH_I2C_Read... [13:25:36]Read from MH i2c: 01 07 00 [13:25:36]MH_I2C_Read... [13:25:36]Read from MH i2c: 01 07 00 77 14 00 00 00 00 00 A2 0C 40 [13:25:36]RasterBufferAndPrint [13:25:36]line [13:25:36]line [13:25:36]line [13:25:36]line [13:25:36]line [13:25:36]written 0, free lines is 3239 [13:25:36]MH_Cut [13:25:36]Write to MH i2c: D1 01 00 7E 14 01 64 [13:25:36]Write i2c OK [13:25:36]MH_I2C_Read... [13:25:36]Read from MH i2c: D1 [13:25:36]MH_I2C_Read... [13:25:36]Read from MH i2c: D1 01 00 [13:25:36]MH_I2C_Read... [13:25:36]Read from MH i2c: D1 01 00 7E 14 00 63 [13:25:36]Write to MH i2c: 01 00 00 7F 14 93 [13:25:36]Write i2c OK [13:25:36]MH_I2C_Read... [13:25:37]OFD Sender: No OFD packet to send [13:25:37]*** Cut start [13:25:37]*** Purtial cut [13:25:37]*** Stage 1: CUTSNS_PIN = 1 [13:25:37]Read from MH i2c: 01 [13:25:37]MH_I2C_Read... [13:25:37]*** Stop cut motor [13:25:37]*** Cut end [13:25:37]Read from MH i2c: 01 07 00 [13:25:37]MH_I2C_Read... [13:25:37]Read from MH i2c: 01 07 00 7F 14 00 00 00 00 00 FF 0F A8 [13:25:37]process_action close_receipt done [13:25:37]requested_data is exist [13:25:37]produce_requested_data [13:25:37]requested_item fm.sn is exist - process it [13:25:37]wFMCommunicate request_size=4 [13:25:37]MH_SAM_APDU [13:25:37]CAPDU: 80 11 00 00 [13:25:37]Write to MH i2c: E2 08 00 80 14 80 11 00 00 00 00 00 00 0E [13:25:37]Write i2c OK [13:25:37]MH_I2C_Read... [13:25:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:37]Read from MH i2c: E2 [13:25:37]MH_I2C_Read... [13:25:37]Read from MH i2c: E2 17 00 [13:25:37]MH_I2C_Read... [13:25:37]Read from MH i2c: E2 17 00 80 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 63 [13:25:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:25:37]wFMCommunicate OK [13:25:37]requested_item fd.num is exist - process it [13:25:37]SAM_PROTO_GetFieldsCounters [13:25:37]wFMCommunicate request_size=4 [13:25:37]MH_SAM_APDU [13:25:37]CAPDU: 80 13 00 00 [13:25:37]Write to MH i2c: E2 08 00 81 14 80 13 00 00 00 00 00 00 11 [13:25:37]Write i2c OK [13:25:37]MH_I2C_Read... [13:25:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:37]Read from MH i2c: E2 [13:25:37]MH_I2C_Read... [13:25:37]Read from MH i2c: E2 62 00 [13:25:37]MH_I2C_Read... [13:25:37]Read from MH i2c: E2 62 00 81 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 14 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [13:25:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 14 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:25:37]wFMCommunicate OK [13:25:37]SAM_PROTO_GetFieldsCounters done [13:25:37]requested_item shift.num is exist - process it [13:25:37]requested_item shift.opened is exist - process it [13:25:37]req_shift_opened [13:25:37]FM_GetShiftState [13:25:37]SAM_PROTO_GetShiftState [13:25:37]wFMCommunicate request_size=4 [13:25:37]MH_SAM_APDU [13:25:37]CAPDU: 80 13 01 00 [13:25:37]Write to MH i2c: E2 08 00 82 14 80 13 01 00 00 00 00 00 13 [13:25:37]Write i2c OK [13:25:37]MH_I2C_Read... [13:25:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:37]Read from MH i2c: E2 [13:25:37]MH_I2C_Read... [13:25:37]Read from MH i2c: E2 0E 00 [13:25:37]MH_I2C_Read... [13:25:38]Read from MH i2c: E2 0E 00 82 14 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 22 [13:25:38]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:25:38]wFMCommunicate OK [13:25:38]SAM_PROTO_GetShiftState done [13:25:38]FM_GetShiftState done [13:25:38]req_shift_opened done [13:25:38]requested_item shift.open_date is exist - process it [13:25:38]req_shift_open_date [13:25:38]req_shift_open_date done [13:25:38]produce_requested_data done [13:25:38]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201492,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:25:38]process_action_free close_receipt [13:25:38]json_value_free [13:25:38]json_value_free done [13:25:38]process_json_proto returns [13:25:38]Send response to host [13:25:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201492,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:25:38]free response buf [13:25:38]execute_script done [13:25:38]execute_script returns [13:25:38]free content buf [13:25:38]Sock 8.Close socket [13:25:38]Sock 8.Thread stoped [13:25:42]OFD Sender: No OFD packet to send [13:25:44]accept exits with 9 [13:25:44]New connection [13:25:44]New thread 3066834276 created [13:25:44]Thread 3066690916 joined [13:25:44]Waiting for new connection... [13:25:44] Sock 9.Parse request [13:25:44]Sock 9.Check first char [13:25:44]Sock 9.First char is OK [13:25:44]request: POST /json_proto HTTP/1.0 [13:25:44]Method: POST [13:25:44]URL: /json_proto [13:25:44]Method is POST - this is cgi request [13:25:44]url: /json_proto [13:25:44]query_string will be loaded in cgi processing [13:25:44]execute_cgi json_proto POST (null) [13:25:44]execute_cgi path=json_proto method=POST [13:25:44]POST find Content-Length [13:25:44]Host: 172.17.63.195:8080 [13:25:44]Content-Length: 679 [13:25:44]Content-Type: application/json [13:25:44] [13:25:44]POST finish read [13:25:44]Found Content-Length = 679 [13:25:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [13:25:44]execute_script... [13:25:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [13:25:44]POST & json_proto [13:25:44]process_json_proto [13:25:44]json parsed OK: [13:25:44]protocol is kg_v1.0 [13:25:44]action value=close_receipt [13:25:44]process_action close_receipt [13:25:44]cmd_close_receipt [13:25:44]MH_GetDate [13:25:44]Write to MH i2c: F0 00 00 83 14 86 [13:25:44]Write i2c OK [13:25:44]MH_I2C_Read... [13:25:44]Read from MH i2c: F0 [13:25:44]MH_I2C_Read... [13:25:44]Read from MH i2c: F0 09 00 [13:25:44]MH_I2C_Read... [13:25:44]Read from MH i2c: F0 09 00 83 14 00 D9 ED 1C 67 68 46 19 67 06 [13:25:44]GetLastDocTimeStamp 1729949135 [13:25:44]current date 1729949145 [13:25:44]FM_GetShiftState [13:25:44]SAM_PROTO_GetShiftState [13:25:44]wFMCommunicate request_size=4 [13:25:44]MH_SAM_APDU [13:25:44]CAPDU: 80 13 01 00 [13:25:44]Write to MH i2c: E2 08 00 84 14 80 13 01 00 00 00 00 00 15 [13:25:44]Write i2c OK [13:25:44]MH_I2C_Read... [13:25:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:44]Read from MH i2c: E2 [13:25:44]MH_I2C_Read... [13:25:44]Read from MH i2c: E2 0E 00 [13:25:44]MH_I2C_Read... [13:25:44]Read from MH i2c: E2 0E 00 84 14 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 24 [13:25:44]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:25:44]wFMCommunicate OK [13:25:44]SAM_PROTO_GetShiftState done [13:25:44]FM_GetShiftState done [13:25:44]opened in 1729900879 [13:25:44]opened+sec_in_day 1729987279 [13:25:44]quantity*price = 200025 [13:25:44]sum+1 = 200026 [13:25:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 255 26.10.2024 13:25 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201493 ФПД: 232551657844546 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T132545&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201493&fm=232551657844546&tin=02508201610067®Number=0000000000091777&sum=200000 [13:25:45]StoreToDocumentArchive [13:25:45]shift 543 fd 201493 [13:25:45]save to /storage/0543/doc_00201493 [13:25:45]save last doc name /storage/0543/doc_00201493 to /storage/kkm_last_doc_name [13:25:45]save OK [13:25:45]Clear old archive folders... [13:25:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:25:45]tlvbuf is 01F4F600 [13:25:45]SAM_PROTO_ClearQueue [13:25:45]wFMCommunicate request_size=4 [13:25:45]MH_SAM_APDU [13:25:45]CAPDU: 80 09 00 00 [13:25:45]Write to MH i2c: E2 08 00 91 14 80 09 00 00 00 00 00 00 17 [13:25:45]Write i2c OK [13:25:45]MH_I2C_Read... [13:25:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:45]Read from MH i2c: E2 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 03 00 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 03 00 91 14 00 90 00 19 [13:25:45]RAPDU: 90 00 [13:25:45]wFMCommunicate OK [13:25:45]SAM_PROTO_ClearQueue done [13:25:45]KKMCreateOFDPacket [13:25:45]OFDProtocolAddRootSTLVToBuf [13:25:45]FM_MakeSignedData [13:25:45]FM_MakeSignedData [13:25:45]SAM_PROTO_SignData [13:25:45]wFMCommunicate request_size=4 [13:25:45]MH_SAM_APDU [13:25:45]CAPDU: 80 0D 01 02 [13:25:45]Write to MH i2c: E2 08 00 92 14 80 0D 01 02 00 00 00 00 1F [13:25:45]Write i2c OK [13:25:45]MH_I2C_Read... [13:25:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:45]Read from MH i2c: E2 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 03 00 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 03 00 92 14 00 90 00 1A [13:25:45]RAPDU: 90 00 [13:25:45]wFMCommunicate OK [13:25:45]wFMCommunicate request_size=255 [13:25:45]MH_SAM_APDU [13:25:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 FF 00 00 00 F4 03 04 00 D9 ED 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 15 13 03 00 35 04 06 00 D3 81 26 F5 [13:25:45]Write to MH i2c: E2 02 01 93 14 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 FF 00 00 00 F4 03 04 00 D9 ED 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 15 13 03 00 35 04 06 00 D3 81 26 F5 00 00 9A [13:25:45]Write i2c OK [13:25:45]MH_I2C_Read... [13:25:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:45]Read from MH i2c: E2 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 03 00 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 03 00 93 14 00 90 00 1B [13:25:45]RAPDU: 90 00 [13:25:45]wFMCommunicate OK [13:25:45]wFMCommunicate request_size=7 [13:25:45]MH_SAM_APDU [13:25:45]CAPDU: 80 0D 02 02 02 2F 42 [13:25:45]Write to MH i2c: E2 0A 00 94 14 80 0D 02 02 02 00 2F 42 00 00 97 [13:25:45]Write i2c OK [13:25:45]MH_I2C_Read... [13:25:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:45]Read from MH i2c: E2 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 03 00 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 03 00 94 14 00 90 00 1C [13:25:45]RAPDU: 90 00 [13:25:45]wFMCommunicate OK [13:25:45]wFMCommunicate request_size=4 [13:25:45]MH_SAM_APDU [13:25:45]CAPDU: 80 0D 03 02 [13:25:45]Write to MH i2c: E2 08 00 95 14 80 0D 03 02 00 00 00 00 24 [13:25:45]Write i2c OK [13:25:45]MH_I2C_Read... [13:25:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:46]Read from MH i2c: E2 [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: E2 0B 00 [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: E2 0B 00 95 14 00 25 5F 2B DC C9 D9 D8 64 90 00 8E [13:25:46]RAPDU: 25 5F 2B DC C9 D9 D8 64 90 00 [13:25:46]wFMCommunicate OK [13:25:46]SAM_PROTO_SignData done [13:25:46]FM_MakeSignedData done [13:25:46]CreateOFDProtocolMessage [13:25:46]wFMCommunicate request_size=4 [13:25:46]MH_SAM_APDU [13:25:46]CAPDU: 80 11 00 00 [13:25:46]Write to MH i2c: E2 08 00 96 14 80 11 00 00 00 00 00 00 24 [13:25:46]Write i2c OK [13:25:46]MH_I2C_Read... [13:25:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:46]Read from MH i2c: E2 [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: E2 17 00 [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: E2 17 00 96 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 79 [13:25:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:25:46]wFMCommunicate OK [13:25:46]CreateOFDProtocolMessage done [13:25:46]OFDSenderStorePacket 201493 [13:25:46]StoreOFDPacket docnum=201493 [13:25:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 4F 10 04 01 37 A8 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 FF 00 00 00 F4 03 04 00 D9 ED 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 15 13 03 00 35 04 06 00 D3 81 26 F5 2F 42 25 5F 2B DC C9 D9 D8 64 [13:25:46]CheckFolder [13:25:46]dirname=/storage/ofd_packets [13:25:46]CheckFolder done [13:25:46]ProducePacketName [13:25:46]name=ofd_packets/00201493 [13:25:46]NVStorageSaveData ofd_packets/00201493 [13:25:46]File name is /storage/ofd_packets/00201493 [13:25:46]Write 298 bytes [13:25:46]NVStorageSaveData done [13:25:46]OFDSenderStorePacket done [13:25:46]KKMCreateOFDPacket done [13:25:46]NVStorageSaveData kkm_last_timestamp [13:25:46]File name is /storage/kkm_last_timestamp [13:25:46]Write 4 bytes [13:25:46]NVStorageSaveData done [13:25:46]ExternCall_PrintAddStr [13:25:46]wPrintStart [13:25:46]Write to MH i2c: 01 00 00 97 14 AB [13:25:46]Write i2c OK [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: 01 [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: 01 07 00 [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: 01 07 00 97 14 00 00 00 00 00 FF 0F C0 [13:25:46]RasterBufferAndPrint [13:25:46]line Счет N : (1)449243 [13:25:46]line ИНН: 02508201610067 [13:25:46]line Контрольно-Кассовый Чек [13:25:46]line ПРОДАЖА [13:25:46]line ТРК (МРК, ГНК) : 21 [13:25:46]line Товар: 2710194210 [13:25:46]line ДТ-К-2 [13:25:46]line 26.250 * 76.20 [13:25:46]line = 2000.25 [13:25:46]line НДС 12% НСП 1% [13:25:46]line > о реализуемом товаре [13:25:46]line ОКРУГЛЕНИЕ: -0.25 [13:25:46]line ИТОГО: 2000.00 [13:25:46]line Внесено: 2000.00 [13:25:46]line СДАЧА: 0.00 [13:25:46]line НСП 1% : 17.70 [13:25:46]line НДС 12% : 212.42 [13:25:46]line Наличными: 2000.00 [13:25:46]line Безнал.: 0.00 [13:25:46]line Место: АЗС № 171 "Партнер Нефть" [13:25:46]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:25:46]line СНО: Общий режим [13:25:46]line Чек 255 26.10.2024 13:25 [13:25:46]line Смена: 543 ФФД: 1.0 [13:25:46]line ЗНМ: 0300000109 [13:25:46]line РНМ: 0000000000091777 [13:25:46]line Версия ККМ: 001 [13:25:46]line ФМ: 0000000000871756 [13:25:46]line ФД: 201493 [13:25:46]line ФПД: 232551657844546 [13:25:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T132545&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201493&fm=232551657844546&tin=02508201610067®Number=0000000000091777&sum=200000 [13:25:46]written 0, free lines is 4095 [13:25:46]OFD Sender: Processing packet 201493 [packets to send 112, broken 111] [13:25:46]ProducePacketName [13:25:46]name=ofd_packets/00201493 [13:25:46]OFD Sender: To server: pG, [13:25:46]CommunicateWithHost lk.salyk.kg:30040 [13:25:46]ConnectInit lk.salyk.kg [13:25:46]Connected sock=10 [13:25:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 4F 10 04 01 37 A8 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 FF 00 00 00 F4 03 04 00 D9 ED 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 15 13 03 00 35 04 06 00 D3 81 26 F5 2F 42 25 5F 2B DC C9 D9 D8 64 [13:25:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 03 D1 47 00 D4 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 15 13 03 00 F4 03 04 00 82 99 1C 67 B6 04 01 00 00 43 6D 2B 10 34 24 84 07 [13:25:46]CommunicateWithHost err = 0 [13:25:46]CheckOFDResponse [13:25:46]1017 (14) - 77093643461234 [13:25:46]1041 (16) - 0000000000871756 [13:25:46]1040 (4) - 201493 [13:25:46]1012 (4) - 26.10.2024 07:25 [13:25:46]1206 (1) - 0 [13:25:46]OFD Sender: Remove packet 201493 [13:25:46]ProducePacketName [13:25:46]name=ofd_packets/00201493 [13:25:46]NVStorageDeleteData [13:25:46]Write to MH i2c: 01 00 00 C2 14 D6 [13:25:46]Write i2c OK [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: 01 [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: 01 07 00 [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: 01 07 00 C2 14 00 00 00 00 00 A8 0C 91 [13:25:46]RasterBufferAndPrint [13:25:46]line [13:25:46]line [13:25:46]line [13:25:46]line [13:25:46]line [13:25:46]written 0, free lines is 3244 [13:25:46]MH_Cut [13:25:46]Write to MH i2c: D1 01 00 C9 14 01 AF [13:25:46]Write i2c OK [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: D1 [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: D1 01 00 [13:25:46]MH_I2C_Read... [13:25:46]Read from MH i2c: D1 01 00 C9 14 00 AE [13:25:46]Write to MH i2c: 01 00 00 CA 14 DE [13:25:46]Write i2c OK [13:25:46]MH_I2C_Read... [13:25:47]OFD Sender: No OFD packet to send [13:25:47]*** Cut start [13:25:47]*** Purtial cut [13:25:47]*** Stage 1: CUTSNS_PIN = 1 [13:25:47]Read from MH i2c: 01 [13:25:47]MH_I2C_Read... [13:25:47]*** Stop cut motor [13:25:47]*** Cut end [13:25:47]Read from MH i2c: 01 07 00 [13:25:47]MH_I2C_Read... [13:25:47]Read from MH i2c: 01 07 00 CA 14 00 00 00 00 00 FF 0F F3 [13:25:47]process_action close_receipt done [13:25:47]requested_data is exist [13:25:47]produce_requested_data [13:25:47]requested_item fm.sn is exist - process it [13:25:47]wFMCommunicate request_size=4 [13:25:47]MH_SAM_APDU [13:25:47]CAPDU: 80 11 00 00 [13:25:47]Write to MH i2c: E2 08 00 CB 14 80 11 00 00 00 00 00 00 59 [13:25:47]Write i2c OK [13:25:47]MH_I2C_Read... [13:25:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:47]Read from MH i2c: E2 [13:25:47]MH_I2C_Read... [13:25:47]Read from MH i2c: E2 17 00 [13:25:47]MH_I2C_Read... [13:25:47]Read from MH i2c: E2 17 00 CB 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AE [13:25:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:25:47]wFMCommunicate OK [13:25:47]requested_item fd.num is exist - process it [13:25:47]SAM_PROTO_GetFieldsCounters [13:25:47]wFMCommunicate request_size=4 [13:25:47]MH_SAM_APDU [13:25:47]CAPDU: 80 13 00 00 [13:25:47]Write to MH i2c: E2 08 00 CC 14 80 13 00 00 00 00 00 00 5C [13:25:47]Write i2c OK [13:25:47]MH_I2C_Read... [13:25:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:47]Read from MH i2c: E2 [13:25:47]MH_I2C_Read... [13:25:47]Read from MH i2c: E2 62 00 [13:25:47]MH_I2C_Read... [13:25:47]Read from MH i2c: E2 62 00 CC 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 15 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 CF [13:25:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 15 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:25:47]wFMCommunicate OK [13:25:47]SAM_PROTO_GetFieldsCounters done [13:25:47]requested_item shift.num is exist - process it [13:25:47]requested_item shift.opened is exist - process it [13:25:47]req_shift_opened [13:25:47]FM_GetShiftState [13:25:47]SAM_PROTO_GetShiftState [13:25:47]wFMCommunicate request_size=4 [13:25:47]MH_SAM_APDU [13:25:47]CAPDU: 80 13 01 00 [13:25:47]Write to MH i2c: E2 08 00 CD 14 80 13 01 00 00 00 00 00 5E [13:25:47]Write i2c OK [13:25:47]MH_I2C_Read... [13:25:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:47]Read from MH i2c: E2 [13:25:47]MH_I2C_Read... [13:25:47]Read from MH i2c: E2 0E 00 [13:25:47]MH_I2C_Read... [13:25:47]Read from MH i2c: E2 0E 00 CD 14 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 6D [13:25:47]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:25:47]wFMCommunicate OK [13:25:47]SAM_PROTO_GetShiftState done [13:25:47]FM_GetShiftState done [13:25:47]req_shift_opened done [13:25:47]requested_item shift.open_date is exist - process it [13:25:47]req_shift_open_date [13:25:47]req_shift_open_date done [13:25:47]produce_requested_data done [13:25:47]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201493,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:25:47]process_action_free close_receipt [13:25:47]json_value_free [13:25:47]json_value_free done [13:25:47]process_json_proto returns [13:25:47]Send response to host [13:25:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201493,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:25:47]free response buf [13:25:47]execute_script done [13:25:47]execute_script returns [13:25:47]free content buf [13:25:47]Sock 9.Close socket [13:25:47]Sock 9.Thread stoped [13:25:52]OFD Sender: No OFD packet to send [13:25:57]OFD Sender: No OFD packet to send [13:26:02]OFD Sender: No OFD packet to send [13:26:07]OFD Sender: No OFD packet to send [13:26:12]OFD Sender: No OFD packet to send [13:26:17]OFD Sender: No OFD packet to send [13:26:22]OFD Sender: No OFD packet to send [13:26:27]OFD Sender: No OFD packet to send [13:26:32]OFD Sender: No OFD packet to send [13:26:37]OFD Sender: No OFD packet to send [13:26:42]OFD Sender: No OFD packet to send [13:26:47]OFD Sender: No OFD packet to send [13:26:52]OFD Sender: No OFD packet to send [13:26:57]OFD Sender: No OFD packet to send [13:27:02]OFD Sender: No OFD packet to send [13:27:07]OFD Sender: No OFD packet to send [13:27:12]OFD Sender: No OFD packet to send [13:27:17]OFD Sender: No OFD packet to send [13:27:22]OFD Sender: No OFD packet to send [13:27:27]OFD Sender: No OFD packet to send [13:27:31]accept exits with 8 [13:27:31]New connection [13:27:31]New thread 3066690916 created [13:27:31]Thread 3066834276 joined [13:27:31]Waiting for new connection... [13:27:31] Sock 8.Parse request [13:27:31]Sock 8.Check first char [13:27:31]Sock 8.First char is OK [13:27:31]request: POST /json_proto HTTP/1.0 [13:27:31]Method: POST [13:27:31]URL: /json_proto [13:27:31]Method is POST - this is cgi request [13:27:31]url: /json_proto [13:27:31]query_string will be loaded in cgi processing [13:27:31]execute_cgi json_proto POST (null) [13:27:31]execute_cgi path=json_proto method=POST [13:27:31]POST find Content-Length [13:27:31]Host: 172.17.63.195:8080 [13:27:31]Content-Length: 677 [13:27:31]Content-Type: application/json [13:27:31] [13:27:31]POST finish read [13:27:31]Found Content-Length = 677 [13:27:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:27:31]execute_script... [13:27: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)449244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:27:31]POST & json_proto [13:27:31]process_json_proto [13:27:31]json parsed OK: [13:27:31]protocol is kg_v1.0 [13:27:31]action value=close_receipt [13:27:31]process_action close_receipt [13:27:31]cmd_close_receipt [13:27:31]MH_GetDate [13:27:31]Write to MH i2c: F0 00 00 CE 14 D1 [13:27:31]Write i2c OK [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: F0 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: F0 09 00 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: F0 09 00 CE 14 00 44 EE 1C 67 68 46 19 67 BD [13:27:31]GetLastDocTimeStamp 1729949145 [13:27:31]current date 1729949252 [13:27:31]FM_GetShiftState [13:27:31]SAM_PROTO_GetShiftState [13:27:31]wFMCommunicate request_size=4 [13:27:31]MH_SAM_APDU [13:27:31]CAPDU: 80 13 01 00 [13:27:31]Write to MH i2c: E2 08 00 CF 14 80 13 01 00 00 00 00 00 60 [13:27:31]Write i2c OK [13:27:31]MH_I2C_Read... [13:27:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:31]Read from MH i2c: E2 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: E2 0E 00 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: E2 0E 00 CF 14 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 6F [13:27:31]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:27:31]wFMCommunicate OK [13:27:31]SAM_PROTO_GetShiftState done [13:27:31]FM_GetShiftState done [13:27:31]opened in 1729900879 [13:27:31]opened+sec_in_day 1729987279 [13:27:31]quantity*price = 50041 [13:27:31]sum+1 = 50042 [13:27:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 256 26.10.2024 13:27 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201494 ФПД: 176464901434181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T132732&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201494&fm=176464901434181&tin=02508201610067®Number=0000000000091777&sum=50000 [13:27:33]StoreToDocumentArchive [13:27:33]shift 543 fd 201494 [13:27:33]save to /storage/0543/doc_00201494 [13:27:33]save last doc name /storage/0543/doc_00201494 to /storage/kkm_last_doc_name [13:27:33]save OK [13:27:33]Clear old archive folders... [13:27:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:27:33]tlvbuf is 01F44DD0 [13:27:33]SAM_PROTO_ClearQueue [13:27:33]wFMCommunicate request_size=4 [13:27:33]MH_SAM_APDU [13:27:33]CAPDU: 80 09 00 00 [13:27:33]Write to MH i2c: E2 08 00 DC 14 80 09 00 00 00 00 00 00 62 [13:27:33]Write i2c OK [13:27:33]MH_I2C_Read... [13:27:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:33]Read from MH i2c: E2 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 03 00 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 03 00 DC 14 00 90 00 64 [13:27:33]RAPDU: 90 00 [13:27:33]wFMCommunicate OK [13:27:33]SAM_PROTO_ClearQueue done [13:27:33]KKMCreateOFDPacket [13:27:33]OFDProtocolAddRootSTLVToBuf [13:27:33]FM_MakeSignedData [13:27:33]FM_MakeSignedData [13:27:33]SAM_PROTO_SignData [13:27:33]wFMCommunicate request_size=4 [13:27:33]MH_SAM_APDU [13:27:33]CAPDU: 80 0D 01 02 [13:27:33]Write to MH i2c: E2 08 00 DD 14 80 0D 01 02 00 00 00 00 6A [13:27:33]Write i2c OK [13:27:33]MH_I2C_Read... [13:27:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:33]Read from MH i2c: E2 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 03 00 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 03 00 DD 14 00 90 00 65 [13:27:33]RAPDU: 90 00 [13:27:33]wFMCommunicate OK [13:27:33]wFMCommunicate request_size=255 [13:27:33]MH_SAM_APDU [13:27: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 32 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 00 01 00 00 F4 03 04 00 44 EE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 16 13 03 00 35 04 06 00 A0 [13:27:33]Write to MH i2c: E2 02 01 DE 14 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 32 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 00 01 00 00 F4 03 04 00 44 EE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 16 13 03 00 35 04 06 00 A0 00 00 A1 [13:27:33]Write i2c OK [13:27:33]MH_I2C_Read... [13:27:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:33]Read from MH i2c: E2 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 03 00 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 03 00 DE 14 00 90 00 66 [13:27:33]RAPDU: 90 00 [13:27:33]wFMCommunicate OK [13:27:33]wFMCommunicate request_size=10 [13:27:33]MH_SAM_APDU [13:27:33]CAPDU: 80 0D 02 02 05 7E 6F C3 EB 45 [13:27:33]Write to MH i2c: E2 0D 00 DF 14 80 0D 02 02 05 00 7E 6F C3 EB 45 00 00 57 [13:27:33]Write i2c OK [13:27:33]MH_I2C_Read... [13:27:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:33]Read from MH i2c: E2 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 03 00 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 03 00 DF 14 00 90 00 67 [13:27:33]RAPDU: 90 00 [13:27:33]wFMCommunicate OK [13:27:33]wFMCommunicate request_size=4 [13:27:33]MH_SAM_APDU [13:27:33]CAPDU: 80 0D 03 02 [13:27:33]Write to MH i2c: E2 08 00 E0 14 80 0D 03 02 00 00 00 00 6F [13:27:33]Write i2c OK [13:27:33]MH_I2C_Read... [13:27:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:33]Read from MH i2c: E2 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 0B 00 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 0B 00 E0 14 00 59 4B 1C B6 1E 71 28 FC 90 00 99 [13:27:33]RAPDU: 59 4B 1C B6 1E 71 28 FC 90 00 [13:27:33]wFMCommunicate OK [13:27:33]SAM_PROTO_SignData done [13:27:33]FM_MakeSignedData done [13:27:33]CreateOFDProtocolMessage [13:27:33]wFMCommunicate request_size=4 [13:27:33]MH_SAM_APDU [13:27:33]CAPDU: 80 11 00 00 [13:27:33]Write to MH i2c: E2 08 00 E1 14 80 11 00 00 00 00 00 00 6F [13:27:33]Write i2c OK [13:27:33]MH_I2C_Read... [13:27:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:33]Read from MH i2c: E2 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 17 00 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: E2 17 00 E1 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C4 [13:27:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:27:33]wFMCommunicate OK [13:27:33]CreateOFDProtocolMessage done [13:27:33]OFDSenderStorePacket 201494 [13:27:33]StoreOFDPacket docnum=201494 [13:27:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B0 DC 07 01 05 6C 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 32 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 00 01 00 00 F4 03 04 00 44 EE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 16 13 03 00 35 04 06 00 A0 7E 6F C3 EB 45 59 4B 1C B6 1E 71 28 FC [13:27:33]CheckFolder [13:27:33]dirname=/storage/ofd_packets [13:27:33]CheckFolder done [13:27:33]ProducePacketName [13:27:33]name=ofd_packets/00201494 [13:27:33]NVStorageSaveData ofd_packets/00201494 [13:27:33]File name is /storage/ofd_packets/00201494 [13:27:33]Write 301 bytes [13:27:33]NVStorageSaveData done [13:27:33]OFDSenderStorePacket done [13:27:33]KKMCreateOFDPacket done [13:27:33]NVStorageSaveData kkm_last_timestamp [13:27:33]File name is /storage/kkm_last_timestamp [13:27:33]Write 4 bytes [13:27:33]NVStorageSaveData done [13:27:33]ExternCall_PrintAddStr [13:27:33]wPrintStart [13:27:33]Write to MH i2c: 01 00 00 E2 14 F6 [13:27:33]Write i2c OK [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: 01 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: 01 07 00 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: 01 07 00 E2 14 00 00 00 00 00 FF 0F 0B [13:27:33]RasterBufferAndPrint [13:27:33]line Счет N : (1)449244 [13:27:33]line ИНН: 02508201610067 [13:27:33]line Контрольно-Кассовый Чек [13:27:33]line ПРОДАЖА [13:27:33]line ТРК (МРК, ГНК) : 41 [13:27:33]line Товар: 2710124130 [13:27:33]line Аи-92-К-2 [13:27:33]line 7.480 * 66.90 [13:27:33]line = 500.41 [13:27:33]line НДС 12% НСП 1% [13:27:33]line > о реализуемом товаре [13:27:33]line ОКРУГЛЕНИЕ: -0.41 [13:27:33]line ИТОГО: 500.00 [13:27:33]line Внесено: 500.00 [13:27:33]line СДАЧА: 0.00 [13:27:33]line НСП 1% : 4.43 [13:27:33]line НДС 12% : 53.14 [13:27:33]line Наличными: 500.00 [13:27:33]line Безнал.: 0.00 [13:27:33]line Место: АЗС № 171 "Партнер Нефть" [13:27:33]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:27:33]line СНО: Общий режим [13:27:33]line Чек 256 26.10.2024 13:27 [13:27:33]line Смена: 543 ФФД: 1.0 [13:27:33]line ЗНМ: 0300000109 [13:27:33]line РНМ: 0000000000091777 [13:27:33]line Версия ККМ: 001 [13:27:33]line ФМ: 0000000000871756 [13:27:33]line ФД: 201494 [13:27:33]line ФПД: 176464901434181 [13:27:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T132732&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201494&fm=176464901434181&tin=02508201610067®Number=0000000000091777&sum=50000 [13:27:33]OFD Sender: Processing packet 201494 [packets to send 112, broken 111] [13:27:33]ProducePacketName [13:27:33]name=ofd_packets/00201494 [13:27:33]OFD Sender: To server: pG, [13:27:33]CommunicateWithHost lk.salyk.kg:30040 [13:27:33]ConnectInit lk.salyk.kg [13:27:33]written 0, free lines is 4095 [13:27:34]Connected sock=9 [13:27:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B0 DC 07 01 05 6C 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 32 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 00 01 00 00 F4 03 04 00 44 EE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 16 13 03 00 35 04 06 00 A0 7E 6F C3 EB 45 59 4B 1C B6 1E 71 28 FC [13:27:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 1A 49 47 00 0E 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 16 13 03 00 F4 03 04 00 ED 99 1C 67 B6 04 01 00 00 A6 C2 77 2F E9 A1 08 CE [13:27:34]CommunicateWithHost err = 0 [13:27:34]CheckOFDResponse [13:27:34]1017 (14) - 77093643461234 [13:27:34]1041 (16) - 0000000000871756 [13:27:34]1040 (4) - 201494 [13:27:34]1012 (4) - 26.10.2024 07:27 [13:27:34]1206 (1) - 0 [13:27:34]OFD Sender: Remove packet 201494 [13:27:34]ProducePacketName [13:27:34]name=ofd_packets/00201494 [13:27:34]NVStorageDeleteData [13:27:34]Write to MH i2c: 01 00 00 0D 15 22 [13:27:34]Write i2c OK [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: 01 [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: 01 07 00 [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: 01 07 00 0D 15 00 00 00 00 00 A1 0C D6 [13:27:34]RasterBufferAndPrint [13:27:34]line [13:27:34]line [13:27:34]line [13:27:34]line [13:27:34]line [13:27:34]written 0, free lines is 3237 [13:27:34]MH_Cut [13:27:34]Write to MH i2c: D1 01 00 14 15 01 FB [13:27:34]Write i2c OK [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: D1 [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: D1 01 00 [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: D1 01 00 14 15 00 FA [13:27:34]Write to MH i2c: 01 00 00 15 15 2A [13:27:34]Write i2c OK [13:27:34]MH_I2C_Read... [13:27:34]OFD Sender: No OFD packet to send [13:27:35]*** Cut start [13:27:35]*** Purtial cut [13:27:35]*** Stage 1: CUTSNS_PIN = 1 [13:27:35]Read from MH i2c: 01 [13:27:35]MH_I2C_Read... [13:27:35]*** Stop cut motor [13:27:35]*** Cut end [13:27:35]Read from MH i2c: 01 07 00 [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: 01 07 00 15 15 00 00 00 00 00 FF 0F 3F [13:27:35]process_action close_receipt done [13:27:35]requested_data is exist [13:27:35]produce_requested_data [13:27:35]requested_item fm.sn is exist - process it [13:27:35]wFMCommunicate request_size=4 [13:27:35]MH_SAM_APDU [13:27:35]CAPDU: 80 11 00 00 [13:27:35]Write to MH i2c: E2 08 00 16 15 80 11 00 00 00 00 00 00 A5 [13:27:35]Write i2c OK [13:27:35]MH_I2C_Read... [13:27:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:35]Read from MH i2c: E2 [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: E2 17 00 [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: E2 17 00 16 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FA [13:27:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:27:35]wFMCommunicate OK [13:27:35]requested_item fd.num is exist - process it [13:27:35]SAM_PROTO_GetFieldsCounters [13:27:35]wFMCommunicate request_size=4 [13:27:35]MH_SAM_APDU [13:27:35]CAPDU: 80 13 00 00 [13:27:35]Write to MH i2c: E2 08 00 17 15 80 13 00 00 00 00 00 00 A8 [13:27:35]Write i2c OK [13:27:35]MH_I2C_Read... [13:27:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:35]Read from MH i2c: E2 [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: E2 62 00 [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: E2 62 00 17 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 16 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 21 [13:27:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 16 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:27:35]wFMCommunicate OK [13:27:35]SAM_PROTO_GetFieldsCounters done [13:27:35]requested_item shift.num is exist - process it [13:27:35]requested_item shift.opened is exist - process it [13:27:35]req_shift_opened [13:27:35]FM_GetShiftState [13:27:35]SAM_PROTO_GetShiftState [13:27:35]wFMCommunicate request_size=4 [13:27:35]MH_SAM_APDU [13:27:35]CAPDU: 80 13 01 00 [13:27:35]Write to MH i2c: E2 08 00 18 15 80 13 01 00 00 00 00 00 AA [13:27:35]Write i2c OK [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: E2 [13:27:35]MH_I2C_Read... [13:27:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:35]Read from MH i2c: E2 0E 00 [13:27:35]MH_I2C_Read... [13:27:35]Read from MH i2c: E2 0E 00 18 15 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 B9 [13:27:35]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:27:35]wFMCommunicate OK [13:27:35]SAM_PROTO_GetShiftState done [13:27:35]FM_GetShiftState done [13:27:35]req_shift_opened done [13:27:35]requested_item shift.open_date is exist - process it [13:27:35]req_shift_open_date [13:27:35]req_shift_open_date done [13:27:35]produce_requested_data done [13:27:35]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201494,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:27:35]process_action_free close_receipt [13:27:35]json_value_free [13:27:35]json_value_free done [13:27:35]process_json_proto returns [13:27:35]Send response to host [13:27:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201494,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:27:35]free response buf [13:27:35]execute_script done [13:27:35]execute_script returns [13:27:35]free content buf [13:27:35]Sock 8.Close socket [13:27:35]Sock 8.Thread stoped [13:27:39]OFD Sender: No OFD packet to send [13:27:44]OFD Sender: No OFD packet to send [13:27:49]OFD Sender: No OFD packet to send [13:27:54]OFD Sender: No OFD packet to send [13:27:59]OFD Sender: No OFD packet to send [13:28:04]OFD Sender: No OFD packet to send [13:28:09]OFD Sender: No OFD packet to send [13:28:14]OFD Sender: No OFD packet to send [13:28:19]OFD Sender: No OFD packet to send [13:28:24]OFD Sender: No OFD packet to send [13:28:29]OFD Sender: No OFD packet to send [13:28:34]OFD Sender: No OFD packet to send [13:28:39]OFD Sender: No OFD packet to send [13:28:44]OFD Sender: No OFD packet to send [13:28:49]OFD Sender: No OFD packet to send [13:28:54]OFD Sender: No OFD packet to send [13:28:59]OFD Sender: No OFD packet to send [13:29:04]OFD Sender: No OFD packet to send [13:29:09]OFD Sender: No OFD packet to send [13:29:14]OFD Sender: No OFD packet to send [13:29:19]OFD Sender: No OFD packet to send [13:29:24]OFD Sender: No OFD packet to send [13:29:29]OFD Sender: No OFD packet to send [13:29:34]OFD Sender: No OFD packet to send [13:29:39]OFD Sender: No OFD packet to send [13:29:44]OFD Sender: No OFD packet to send [13:29:49]OFD Sender: No OFD packet to send [13:29:54]OFD Sender: No OFD packet to send [13:29:59]OFD Sender: No OFD packet to send [13:30:04]OFD Sender: No OFD packet to send [13:30:10]OFD Sender: No OFD packet to send [13:30:15]OFD Sender: No OFD packet to send [13:30:20]OFD Sender: No OFD packet to send [13:30:25]OFD Sender: No OFD packet to send [13:30:30]OFD Sender: No OFD packet to send [13:30:35]OFD Sender: No OFD packet to send [13:30:40]OFD Sender: No OFD packet to send [13:30:45]OFD Sender: No OFD packet to send [13:30:50]OFD Sender: No OFD packet to send [13:30:55]OFD Sender: No OFD packet to send [13:31:00]OFD Sender: No OFD packet to send [13:31:05]OFD Sender: No OFD packet to send [13:31:10]OFD Sender: No OFD packet to send [13:31:15]OFD Sender: No OFD packet to send [13:31:20]OFD Sender: No OFD packet to send [13:31:25]OFD Sender: No OFD packet to send [13:31:30]OFD Sender: No OFD packet to send [13:31:35]OFD Sender: No OFD packet to send [13:31:40]OFD Sender: No OFD packet to send [13:31:45]OFD Sender: No OFD packet to send [13:31:50]OFD Sender: No OFD packet to send [13:31:55]OFD Sender: No OFD packet to send [13:32:00]OFD Sender: No OFD packet to send [13:32:05]OFD Sender: No OFD packet to send [13:32:08]accept exits with 10 [13:32:08]New connection [13:32:08]New thread 3066834276 created [13:32:08]Thread 3066690916 joined [13:32:08]Waiting for new connection... [13:32:08] Sock 10.Parse request [13:32:08]Sock 10.Check first char [13:32:08]Sock 10.First char is OK [13:32:08]request: POST /json_proto HTTP/1.0 [13:32:08]Method: POST [13:32:08]URL: /json_proto [13:32:08]Method is POST - this is cgi request [13:32:08]url: /json_proto [13:32:08]query_string will be loaded in cgi processing [13:32:08]execute_cgi json_proto POST (null) [13:32:08]execute_cgi path=json_proto method=POST [13:32:08]POST find Content-Length [13:32:08]Host: 172.17.63.195:8080 [13:32:08]Content-Length: 677 [13:32:08]Content-Type: application/json [13:32:08] [13:32:08]POST finish read [13:32:08]Found Content-Length = 677 [13:32:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:32:08]execute_script... [13:32:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:32:08]POST & json_proto [13:32:08]process_json_proto [13:32:08]json parsed OK: [13:32:08]protocol is kg_v1.0 [13:32:08]action value=close_receipt [13:32:08]process_action close_receipt [13:32:08]cmd_close_receipt [13:32:08]MH_GetDate [13:32:08]Write to MH i2c: F0 00 00 19 15 1D [13:32:08]Write i2c OK [13:32:08]MH_I2C_Read... [13:32:08]Read from MH i2c: F0 [13:32:08]MH_I2C_Read... [13:32:08]Read from MH i2c: F0 09 00 [13:32:08]MH_I2C_Read... [13:32:08]Read from MH i2c: F0 09 00 19 15 00 58 EF 1C 67 68 46 19 67 1E [13:32:08]GetLastDocTimeStamp 1729949252 [13:32:08]current date 1729949528 [13:32:08]FM_GetShiftState [13:32:08]SAM_PROTO_GetShiftState [13:32:08]wFMCommunicate request_size=4 [13:32:08]MH_SAM_APDU [13:32:08]CAPDU: 80 13 01 00 [13:32:08]Write to MH i2c: E2 08 00 1A 15 80 13 01 00 00 00 00 00 AC [13:32:08]Write i2c OK [13:32:08]MH_I2C_Read... [13:32:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:08]Read from MH i2c: E2 [13:32:08]MH_I2C_Read... [13:32:08]Read from MH i2c: E2 0E 00 [13:32:08]MH_I2C_Read... [13:32:08]Read from MH i2c: E2 0E 00 1A 15 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 BB [13:32:08]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:32:08]wFMCommunicate OK [13:32:08]SAM_PROTO_GetShiftState done [13:32:08]FM_GetShiftState done [13:32:08]opened in 1729900879 [13:32:08]opened+sec_in_day 1729987279 [13:32:08]quantity*price = 50041 [13:32:08]sum+1 = 50042 [13:32:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 257 26.10.2024 13:32 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201495 ФПД: 201323295879920 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133209&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201495&fm=201323295879920&tin=02508201610067®Number=0000000000091777&sum=50000 [13:32:09]StoreToDocumentArchive [13:32:09]shift 543 fd 201495 [13:32:09]save to /storage/0543/doc_00201495 [13:32:09]save last doc name /storage/0543/doc_00201495 to /storage/kkm_last_doc_name [13:32:09]save OK [13:32:09]Clear old archive folders... [13:32:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:32:09]tlvbuf is 01F58B10 [13:32:09]SAM_PROTO_ClearQueue [13:32:09]wFMCommunicate request_size=4 [13:32:09]MH_SAM_APDU [13:32:09]CAPDU: 80 09 00 00 [13:32:09]Write to MH i2c: E2 08 00 27 15 80 09 00 00 00 00 00 00 AE [13:32:09]Write i2c OK [13:32:09]MH_I2C_Read... [13:32:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:09]Read from MH i2c: E2 [13:32:09]MH_I2C_Read... [13:32:09]Read from MH i2c: E2 03 00 [13:32:09]MH_I2C_Read... [13:32:09]Read from MH i2c: E2 03 00 27 15 00 90 00 B0 [13:32:09]RAPDU: 90 00 [13:32:09]wFMCommunicate OK [13:32:09]SAM_PROTO_ClearQueue done [13:32:09]KKMCreateOFDPacket [13:32:09]OFDProtocolAddRootSTLVToBuf [13:32:09]FM_MakeSignedData [13:32:09]FM_MakeSignedData [13:32:09]SAM_PROTO_SignData [13:32:09]wFMCommunicate request_size=4 [13:32:09]MH_SAM_APDU [13:32:09]CAPDU: 80 0D 01 02 [13:32:09]Write to MH i2c: E2 08 00 28 15 80 0D 01 02 00 00 00 00 B6 [13:32:09]Write i2c OK [13:32:09]MH_I2C_Read... [13:32:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:09]Read from MH i2c: E2 [13:32:09]MH_I2C_Read... [13:32:09]Read from MH i2c: E2 03 00 [13:32:09]MH_I2C_Read... [13:32:09]Read from MH i2c: E2 03 00 28 15 00 90 00 B1 [13:32:09]RAPDU: 90 00 [13:32:09]wFMCommunicate OK [13:32:09]wFMCommunicate request_size=255 [13:32:09]MH_SAM_APDU [13:32:09]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 32 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 01 01 00 00 F4 03 04 00 59 EF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 17 13 03 00 35 04 06 00 B7 [13:32:09]Write to MH i2c: E2 02 01 29 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 32 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 01 01 00 00 F4 03 04 00 59 EF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 17 13 03 00 35 04 06 00 B7 00 00 1C [13:32:09]Write i2c OK [13:32:09]MH_I2C_Read... [13:32:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:09]Read from MH i2c: E2 [13:32:09]MH_I2C_Read... [13:32:09]Read from MH i2c: E2 03 00 [13:32:09]MH_I2C_Read... [13:32:09]Read from MH i2c: E2 03 00 29 15 00 90 00 B2 [13:32:09]RAPDU: 90 00 [13:32:09]wFMCommunicate OK [13:32:09]wFMCommunicate request_size=10 [13:32:09]MH_SAM_APDU [13:32:09]CAPDU: 80 0D 02 02 05 1A 3B 89 32 F0 [13:32:09]Write to MH i2c: E2 0D 00 2A 15 80 0D 02 02 05 00 1A 3B 89 32 F0 00 00 C3 [13:32:09]Write i2c OK [13:32:09]MH_I2C_Read... [13:32:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:09]Read from MH i2c: E2 [13:32:09]MH_I2C_Read... [13:32:09]Read from MH i2c: E2 03 00 [13:32:09]MH_I2C_Read... [13:32:09]Read from MH i2c: E2 03 00 2A 15 00 90 00 B3 [13:32:09]RAPDU: 90 00 [13:32:09]wFMCommunicate OK [13:32:09]wFMCommunicate request_size=4 [13:32:09]MH_SAM_APDU [13:32:09]CAPDU: 80 0D 03 02 [13:32:09]Write to MH i2c: E2 08 00 2B 15 80 0D 03 02 00 00 00 00 BB [13:32:09]Write i2c OK [13:32:09]MH_I2C_Read... [13:32:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:09]Read from MH i2c: E2 [13:32:09]MH_I2C_Read... [13:32:09]Read from MH i2c: E2 0B 00 [13:32:09]MH_I2C_Read... [13:32:09]Read from MH i2c: E2 0B 00 2B 15 00 2B 96 37 E0 6B 3B 99 2A 90 00 FD [13:32:09]RAPDU: 2B 96 37 E0 6B 3B 99 2A 90 00 [13:32:09]wFMCommunicate OK [13:32:09]SAM_PROTO_SignData done [13:32:09]FM_MakeSignedData done [13:32:09]CreateOFDProtocolMessage [13:32:09]wFMCommunicate request_size=4 [13:32:09]MH_SAM_APDU [13:32:09]CAPDU: 80 11 00 00 [13:32:09]Write to MH i2c: E2 08 00 2C 15 80 11 00 00 00 00 00 00 BB [13:32:09]Write i2c OK [13:32:09]MH_I2C_Read... [13:32:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:09]Read from MH i2c: E2 [13:32:09]MH_I2C_Read... [13:32:09]Read from MH i2c: E2 17 00 [13:32:09]MH_I2C_Read... [13:32:09]Read from MH i2c: E2 17 00 2C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 10 [13:32:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:32:09]wFMCommunicate OK [13:32:09]CreateOFDProtocolMessage done [13:32:09]OFDSenderStorePacket 201495 [13:32:09]StoreOFDPacket docnum=201495 [13:32:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 9C FC 07 01 23 78 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 32 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 01 01 00 00 F4 03 04 00 59 EF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 17 13 03 00 35 04 06 00 B7 1A 3B 89 32 F0 2B 96 37 E0 6B 3B 99 2A [13:32:09]CheckFolder [13:32:09]dirname=/storage/ofd_packets [13:32:09]CheckFolder done [13:32:09]ProducePacketName [13:32:09]name=ofd_packets/00201495 [13:32:09]NVStorageSaveData ofd_packets/00201495 [13:32:09]File name is /storage/ofd_packets/00201495 [13:32:09]Write 301 bytes [13:32:09]NVStorageSaveData done [13:32:09]OFDSenderStorePacket done [13:32:09]KKMCreateOFDPacket done [13:32:09]NVStorageSaveData kkm_last_timestamp [13:32:09]File name is /storage/kkm_last_timestamp [13:32:09]Write 4 bytes [13:32:09]NVStorageSaveData done [13:32:09]ExternCall_PrintAddStr [13:32:09]wPrintStart [13:32:09]Write to MH i2c: 01 00 00 2D 15 42 [13:32:09]Write i2c OK [13:32:09]MH_I2C_Read... [13:32:09]Read from MH i2c: 01 [13:32:09]MH_I2C_Read... [13:32:09]Read from MH i2c: 01 07 00 [13:32:09]MH_I2C_Read... [13:32:09]Read from MH i2c: 01 07 00 2D 15 00 00 00 00 00 FF 0F 57 [13:32:09]RasterBufferAndPrint [13:32:09]line Счет N : (1)449245 [13:32:09]line ИНН: 02508201610067 [13:32:09]line Контрольно-Кассовый Чек [13:32:09]line ПРОДАЖА [13:32:09]line ТРК (МРК, ГНК) : 52 [13:32:09]line Товар: 2710124130 [13:32:09]line Аи-92-К-2 [13:32:09]line 7.480 * 66.90 [13:32:09]line = 500.41 [13:32:09]line НДС 12% НСП 1% [13:32:09]line > о реализуемом товаре [13:32:09]line ОКРУГЛЕНИЕ: -0.41 [13:32:09]line ИТОГО: 500.00 [13:32:09]line Внесено: 500.00 [13:32:09]line СДАЧА: 0.00 [13:32:09]line НСП 1% : 4.43 [13:32:09]line НДС 12% : 53.14 [13:32:09]line Наличными: 500.00 [13:32:09]line Безнал.: 0.00 [13:32:09]line Место: АЗС № 171 "Партнер Нефть" [13:32:09]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:32:09]line СНО: Общий режим [13:32:09]line Чек 257 26.10.2024 13:32 [13:32:09]line Смена: 543 ФФД: 1.0 [13:32:09]line ЗНМ: 0300000109 [13:32:09]line РНМ: 0000000000091777 [13:32:09]line Версия ККМ: 001 [13:32:09]line ФМ: 0000000000871756 [13:32:09]line ФД: 201495 [13:32:09]line ФПД: 201323295879920 [13:32:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133209&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201495&fm=201323295879920&tin=02508201610067®Number=0000000000091777&sum=50000 [13:32:10]OFD Sender: Processing packet 201495 [packets to send 112, broken 111] [13:32:10]ProducePacketName [13:32:10]name=ofd_packets/00201495 [13:32:10]OFD Sender: To server: pG, [13:32:10]CommunicateWithHost lk.salyk.kg:30040 [13:32:10]ConnectInit lk.salyk.kg [13:32:10]written 0, free lines is 4095 [13:32:10]Connected sock=9 [13:32:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 9C FC 07 01 23 78 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 32 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 01 01 00 00 F4 03 04 00 59 EF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 17 13 03 00 35 04 06 00 B7 1A 3B 89 32 F0 2B 96 37 E0 6B 3B 99 2A [13:32:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 0A 7B 47 00 11 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 17 13 03 00 F4 03 04 00 01 9B 1C 67 B6 04 01 00 00 2A 93 64 2D 48 68 97 88 [13:32:10]CommunicateWithHost err = 0 [13:32:10]CheckOFDResponse [13:32:10]1017 (14) - 77093643461234 [13:32:10]1041 (16) - 0000000000871756 [13:32:10]1040 (4) - 201495 [13:32:10]1012 (4) - 26.10.2024 07:32 [13:32:10]1206 (1) - 0 [13:32:10]OFD Sender: Remove packet 201495 [13:32:10]ProducePacketName [13:32:10]name=ofd_packets/00201495 [13:32:10]NVStorageDeleteData [13:32:10]Write to MH i2c: 01 00 00 58 15 6D [13:32:10]Write i2c OK [13:32:10]MH_I2C_Read... [13:32:10]Read from MH i2c: 01 [13:32:10]MH_I2C_Read... [13:32:10]Read from MH i2c: 01 07 00 [13:32:10]MH_I2C_Read... [13:32:10]Read from MH i2c: 01 07 00 58 15 00 00 00 00 00 9F 0C 1F [13:32:10]RasterBufferAndPrint [13:32:10]line [13:32:10]line [13:32:10]line [13:32:10]line [13:32:10]line [13:32:10]written 0, free lines is 3237 [13:32:10]MH_Cut [13:32:10]Write to MH i2c: D1 01 00 5F 15 01 46 [13:32:10]Write i2c OK [13:32:10]MH_I2C_Read... [13:32:10]Read from MH i2c: D1 [13:32:10]MH_I2C_Read... [13:32:10]Read from MH i2c: D1 01 00 [13:32:10]MH_I2C_Read... [13:32:10]Read from MH i2c: D1 01 00 5F 15 00 45 [13:32:10]Write to MH i2c: 01 00 00 60 15 75 [13:32:10]Write i2c OK [13:32:10]MH_I2C_Read... [13:32:10]OFD Sender: No OFD packet to send [13:32:11]*** Cut start [13:32:11]*** Purtial cut [13:32:11]*** Stage 1: CUTSNS_PIN = 1 [13:32:11]Read from MH i2c: 01 [13:32:11]MH_I2C_Read... [13:32:11]*** Stop cut motor [13:32:11]*** Cut end [13:32:11]Read from MH i2c: 01 07 00 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: 01 07 00 60 15 00 00 00 00 00 FF 0F 8A [13:32:11]process_action close_receipt done [13:32:11]requested_data is exist [13:32:11]produce_requested_data [13:32:11]requested_item fm.sn is exist - process it [13:32:11]wFMCommunicate request_size=4 [13:32:11]MH_SAM_APDU [13:32:11]CAPDU: 80 11 00 00 [13:32:11]Write to MH i2c: E2 08 00 61 15 80 11 00 00 00 00 00 00 F0 [13:32:11]Write i2c OK [13:32:11]MH_I2C_Read... [13:32:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:11]Read from MH i2c: E2 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: E2 17 00 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: E2 17 00 61 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 45 [13:32:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:32:11]wFMCommunicate OK [13:32:11]requested_item fd.num is exist - process it [13:32:11]SAM_PROTO_GetFieldsCounters [13:32:11]wFMCommunicate request_size=4 [13:32:11]MH_SAM_APDU [13:32:11]CAPDU: 80 13 00 00 [13:32:11]Write to MH i2c: E2 08 00 62 15 80 13 00 00 00 00 00 00 F3 [13:32:11]Write i2c OK [13:32:11]MH_I2C_Read... [13:32:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:11]Read from MH i2c: E2 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: E2 62 00 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: E2 62 00 62 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 17 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 70 [13:32:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 17 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:32:11]wFMCommunicate OK [13:32:11]SAM_PROTO_GetFieldsCounters done [13:32:11]requested_item shift.num is exist - process it [13:32:11]requested_item shift.opened is exist - process it [13:32:11]req_shift_opened [13:32:11]FM_GetShiftState [13:32:11]SAM_PROTO_GetShiftState [13:32:11]wFMCommunicate request_size=4 [13:32:11]MH_SAM_APDU [13:32:11]CAPDU: 80 13 01 00 [13:32:11]Write to MH i2c: E2 08 00 63 15 80 13 01 00 00 00 00 00 F5 [13:32:11]Write i2c OK [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: E2 [13:32:11]MH_I2C_Read... [13:32:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:11]Read from MH i2c: E2 0E 00 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: E2 0E 00 63 15 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 04 [13:32:11]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:32:11]wFMCommunicate OK [13:32:11]SAM_PROTO_GetShiftState done [13:32:11]FM_GetShiftState done [13:32:11]req_shift_opened done [13:32:11]requested_item shift.open_date is exist - process it [13:32:11]req_shift_open_date [13:32:11]req_shift_open_date done [13:32:11]produce_requested_data done [13:32:11]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201495,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:32:11]process_action_free close_receipt [13:32:11]json_value_free [13:32:11]json_value_free done [13:32:11]process_json_proto returns [13:32:11]Send response to host [13:32:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201495,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:32:11]free response buf [13:32:11]execute_script done [13:32:11]execute_script returns [13:32:11]free content buf [13:32:11]Sock 10.Close socket [13:32:11]Sock 10.Thread stoped [13:32:15]OFD Sender: No OFD packet to send [13:32:20]OFD Sender: No OFD packet to send [13:32:25]OFD Sender: No OFD packet to send [13:32:30]OFD Sender: No OFD packet to send [13:32:35]OFD Sender: No OFD packet to send [13:32:40]OFD Sender: No OFD packet to send [13:32:45]OFD Sender: No OFD packet to send [13:32:50]OFD Sender: No OFD packet to send [13:32:55]OFD Sender: No OFD packet to send [13:32:56]accept exits with 8 [13:32:56]New connection [13:32:56]New thread 3066690916 created [13:32:56]Thread 3066834276 joined [13:32:56]Waiting for new connection... [13:32:56] Sock 8.Parse request [13:32:56]Sock 8.Check first char [13:32:56]Sock 8.First char is OK [13:32:56]request: POST /json_proto HTTP/1.0 [13:32:56]Method: POST [13:32:56]URL: /json_proto [13:32:56]Method is POST - this is cgi request [13:32:56]url: /json_proto [13:32:56]query_string will be loaded in cgi processing [13:32:56]execute_cgi json_proto POST (null) [13:32:56]execute_cgi path=json_proto method=POST [13:32:56]POST find Content-Length [13:32:56]Host: 172.17.63.195:8080 [13:32:56]Content-Length: 632 [13:32:56]Content-Type: application/json [13:32:56] [13:32:56]POST finish read [13:32:56]Found Content-Length = 632 [13:32:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:56]execute_script... [13:32: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)449246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:56]POST & json_proto [13:32:56]process_json_proto [13:32:56]json parsed OK: [13:32:56]protocol is kg_v1.0 [13:32:56]action value=close_receipt [13:32:56]process_action close_receipt [13:32:56]cmd_close_receipt [13:32:56]MH_GetDate [13:32:56]Write to MH i2c: F0 00 00 64 15 68 [13:32:56]Write i2c OK [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: F0 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: F0 09 00 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: F0 09 00 64 15 00 89 EF 1C 67 68 46 19 67 9A [13:32:56]GetLastDocTimeStamp 1729949529 [13:32:56]current date 1729949577 [13:32:56]FM_GetShiftState [13:32:56]SAM_PROTO_GetShiftState [13:32:56]wFMCommunicate request_size=4 [13:32:56]MH_SAM_APDU [13:32:56]CAPDU: 80 13 01 00 [13:32:56]Write to MH i2c: E2 08 00 65 15 80 13 01 00 00 00 00 00 F7 [13:32:56]Write i2c OK [13:32:56]MH_I2C_Read... [13:32:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:56]Read from MH i2c: E2 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 0E 00 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 0E 00 65 15 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 06 [13:32:56]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:32:56]wFMCommunicate OK [13:32:56]SAM_PROTO_GetShiftState done [13:32:56]FM_GetShiftState done [13:32:56]opened in 1729900879 [13:32:56]opened+sec_in_day 1729987279 [13:32:56]quantity*price = 50000 [13:32:56]sum+1 = 50001 [13:32:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 258 26.10.2024 13:32 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201496 ФПД: 88139042264581 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133257&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201496&fm=88139042264581&tin=02508201610067®Number=0000000000091777&sum=50000 [13:32:57]StoreToDocumentArchive [13:32:57]shift 543 fd 201496 [13:32:57]save to /storage/0543/doc_00201496 [13:32:57]save last doc name /storage/0543/doc_00201496 to /storage/kkm_last_doc_name [13:32:57]save OK [13:32:57]Clear old archive folders... [13:32:57]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:32:57]tlvbuf is 01F58480 [13:32:57]SAM_PROTO_ClearQueue [13:32:57]wFMCommunicate request_size=4 [13:32:57]MH_SAM_APDU [13:32:57]CAPDU: 80 09 00 00 [13:32:57]Write to MH i2c: E2 08 00 72 15 80 09 00 00 00 00 00 00 F9 [13:32:57]Write i2c OK [13:32:57]MH_I2C_Read... [13:32:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:57]Read from MH i2c: E2 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: E2 03 00 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: E2 03 00 72 15 00 90 00 FB [13:32:57]RAPDU: 90 00 [13:32:57]wFMCommunicate OK [13:32:57]SAM_PROTO_ClearQueue done [13:32:57]KKMCreateOFDPacket [13:32:57]OFDProtocolAddRootSTLVToBuf [13:32:57]FM_MakeSignedData [13:32:57]FM_MakeSignedData [13:32:57]SAM_PROTO_SignData [13:32:57]wFMCommunicate request_size=4 [13:32:57]MH_SAM_APDU [13:32:57]CAPDU: 80 0D 01 02 [13:32:57]Write to MH i2c: E2 08 00 73 15 80 0D 01 02 00 00 00 00 01 [13:32:57]Write i2c OK [13:32:57]MH_I2C_Read... [13:32:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:57]Read from MH i2c: E2 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: E2 03 00 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: E2 03 00 73 15 00 90 00 FC [13:32:57]RAPDU: 90 00 [13:32:57]wFMCommunicate OK [13:32:57]wFMCommunicate request_size=255 [13:32:57]MH_SAM_APDU [13:32: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 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 89 EF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 18 13 03 00 35 04 06 00 [13:32:57]Write to MH i2c: E2 02 01 74 15 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 89 EF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 18 13 03 00 35 04 06 00 00 00 3F [13:32:57]Write i2c OK [13:32:57]MH_I2C_Read... [13:32:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:57]Read from MH i2c: E2 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: E2 03 00 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: E2 03 00 74 15 00 90 00 FD [13:32:57]RAPDU: 90 00 [13:32:57]wFMCommunicate OK [13:32:57]wFMCommunicate request_size=11 [13:32:57]MH_SAM_APDU [13:32:57]CAPDU: 80 0D 02 02 06 50 29 78 4E 16 05 [13:32:57]Write to MH i2c: E2 0E 00 75 15 80 0D 02 02 06 00 50 29 78 4E 16 05 00 00 6A [13:32:57]Write i2c OK [13:32:57]MH_I2C_Read... [13:32:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:57]Read from MH i2c: E2 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: E2 03 00 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: E2 03 00 75 15 00 90 00 FE [13:32:57]RAPDU: 90 00 [13:32:57]wFMCommunicate OK [13:32:57]wFMCommunicate request_size=4 [13:32:57]MH_SAM_APDU [13:32:57]CAPDU: 80 0D 03 02 [13:32:57]Write to MH i2c: E2 08 00 76 15 80 0D 03 02 00 00 00 00 06 [13:32:57]Write i2c OK [13:32:57]MH_I2C_Read... [13:32:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:57]Read from MH i2c: E2 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: E2 0B 00 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: E2 0B 00 76 15 00 63 AB 7F 6A BA DF 65 C5 90 00 C1 [13:32:57]RAPDU: 63 AB 7F 6A BA DF 65 C5 90 00 [13:32:57]wFMCommunicate OK [13:32:57]SAM_PROTO_SignData done [13:32:57]FM_MakeSignedData done [13:32:57]CreateOFDProtocolMessage [13:32:57]wFMCommunicate request_size=4 [13:32:57]MH_SAM_APDU [13:32:57]CAPDU: 80 11 00 00 [13:32:57]Write to MH i2c: E2 08 00 77 15 80 11 00 00 00 00 00 00 06 [13:32:57]Write i2c OK [13:32:57]MH_I2C_Read... [13:32:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:58]Read from MH i2c: E2 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 17 00 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 17 00 77 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5B [13:32:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:32:58]wFMCommunicate OK [13:32:58]CreateOFDProtocolMessage done [13:32:58]OFDSenderStorePacket 201496 [13:32:58]StoreOFDPacket docnum=201496 [13:32:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 FB EB 08 01 05 69 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 89 EF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 18 13 03 00 35 04 06 00 50 29 78 4E 16 05 63 AB 7F 6A BA DF 65 C5 [13:32:58]CheckFolder [13:32:58]dirname=/storage/ofd_packets [13:32:58]CheckFolder done [13:32:58]ProducePacketName [13:32:58]name=ofd_packets/00201496 [13:32:58]NVStorageSaveData ofd_packets/00201496 [13:32:58]File name is /storage/ofd_packets/00201496 [13:32:58]Write 302 bytes [13:32:58]NVStorageSaveData done [13:32:58]OFDSenderStorePacket done [13:32:58]KKMCreateOFDPacket done [13:32:58]NVStorageSaveData kkm_last_timestamp [13:32:58]File name is /storage/kkm_last_timestamp [13:32:58]Write 4 bytes [13:32:58]NVStorageSaveData done [13:32:58]ExternCall_PrintAddStr [13:32:58]wPrintStart [13:32:58]Write to MH i2c: 01 00 00 78 15 8D [13:32:58]OFD Sender: Processing packet 201496 [packets to send 112, broken 111] [13:32:58]ProducePacketName [13:32:58]name=ofd_packets/00201496 [13:32:58]OFD Sender: To server: pG, [13:32:58]CommunicateWithHost lk.salyk.kg:30040 [13:32:58]ConnectInit lk.salyk.kg [13:32:58]Write i2c OK [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: 01 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: 01 07 00 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: 01 07 00 78 15 00 00 00 00 00 FF 0F A2 [13:32:58]RasterBufferAndPrint [13:32:58]line Счет N : (1)449246 [13:32:58]line ИНН: 02508201610067 [13:32:58]line Контрольно-Кассовый Чек [13:32:58]line ПРОДАЖА [13:32:58]line ТРК (МРК, ГНК) : 32 [13:32:58]line Товар: 2710124130 [13:32:58]line SUPER 92-К-5 [13:32:58]line 7.310 * 68.40 [13:32:58]line = 500.00 [13:32:58]line НДС 12% НСП 1% [13:32:58]line > о реализуемом товаре [13:32:58]line ИТОГО: 500.00 [13:32:58]line НСП 1% : 4.42 [13:32:58]line НДС 12% : 53.10 [13:32:58]line Наличными: 500.00 [13:32:58]line Безнал.: 0.00 [13:32:58]line Место: АЗС № 171 "Партнер Нефть" [13:32:58]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:32:58]line СНО: Общий режим [13:32:58]line Чек 258 26.10.2024 13:32 [13:32:58]line Смена: 543 ФФД: 1.0 [13:32:58]line ЗНМ: 0300000109 [13:32:58]line РНМ: 0000000000091777 [13:32:58]line Версия ККМ: 001 [13:32:58]line ФМ: 0000000000871756 [13:32:58]line ФД: 201496 [13:32:58]line ФПД: 88139042264581 [13:32:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133257&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201496&fm=88139042264581&tin=02508201610067®Number=0000000000091777&sum=50000 [13:32:58]Connected sock=10 [13:32:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 FB EB 08 01 05 69 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 89 EF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 18 13 03 00 35 04 06 00 50 29 78 4E 16 05 63 AB 7F 6A BA DF 65 C5 [13:32:58]written 0, free lines is 4095 [13:32:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D1 F9 47 00 A0 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 18 13 03 00 F4 03 04 00 32 9B 1C 67 B6 04 01 00 00 B4 6E DF F0 84 9A 6A 8A [13:32:58]CommunicateWithHost err = 0 [13:32:58]CheckOFDResponse [13:32:58]1017 (14) - 77093643461234 [13:32:58]1041 (16) - 0000000000871756 [13:32:58]1040 (4) - 201496 [13:32:58]1012 (4) - 26.10.2024 07:33 [13:32:58]1206 (1) - 0 [13:32:58]OFD Sender: Remove packet 201496 [13:32:58]ProducePacketName [13:32:58]name=ofd_packets/00201496 [13:32:58]NVStorageDeleteData [13:32:58]Write to MH i2c: 01 00 00 A0 15 B5 [13:32:58]Write i2c OK [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: 01 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: 01 07 00 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: 01 07 00 A0 15 00 00 00 00 00 D6 0C 9E [13:32:58]RasterBufferAndPrint [13:32:58]line [13:32:58]line [13:32:58]line [13:32:58]line [13:32:58]line [13:32:58]written 0, free lines is 3290 [13:32:58]MH_Cut [13:32:58]Write to MH i2c: D1 01 00 A7 15 01 8E [13:32:58]Write i2c OK [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: D1 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: D1 01 00 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: D1 01 00 A7 15 00 8D [13:32:58]Write to MH i2c: 01 00 00 A8 15 BD [13:32:58]Write i2c OK [13:32:58]MH_I2C_Read... [13:32:59]OFD Sender: No OFD packet to send [13:32:59]*** Cut start [13:32:59]*** Purtial cut [13:32:59]*** Stage 1: CUTSNS_PIN = 1 [13:32:59]Read from MH i2c: 01 [13:32:59]MH_I2C_Read... [13:32:59]*** Stop cut motor [13:32:59]*** Cut end [13:32:59]Read from MH i2c: 01 07 00 [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: 01 07 00 A8 15 00 00 00 00 00 FF 0F D2 [13:32:59]process_action close_receipt done [13:32:59]requested_data is exist [13:32:59]produce_requested_data [13:32:59]requested_item fm.sn is exist - process it [13:32:59]wFMCommunicate request_size=4 [13:32:59]MH_SAM_APDU [13:32:59]CAPDU: 80 11 00 00 [13:32:59]Write to MH i2c: E2 08 00 A9 15 80 11 00 00 00 00 00 00 38 [13:32:59]Write i2c OK [13:32:59]MH_I2C_Read... [13:32:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:59]Read from MH i2c: E2 [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: E2 17 00 [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: E2 17 00 A9 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8D [13:32:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:33:00]wFMCommunicate OK [13:33:00]requested_item fd.num is exist - process it [13:33:00]SAM_PROTO_GetFieldsCounters [13:33:00]wFMCommunicate request_size=4 [13:33:00]MH_SAM_APDU [13:33:00]CAPDU: 80 13 00 00 [13:33:00]Write to MH i2c: E2 08 00 AA 15 80 13 00 00 00 00 00 00 3B [13:33:00]Write i2c OK [13:33:00]MH_I2C_Read... [13:33:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:00]Read from MH i2c: E2 [13:33:00]MH_I2C_Read... [13:33:00]Read from MH i2c: E2 62 00 [13:33:00]MH_I2C_Read... [13:33:00]Read from MH i2c: E2 62 00 AA 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 18 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 BC [13:33:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 18 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:33:00]wFMCommunicate OK [13:33:00]SAM_PROTO_GetFieldsCounters done [13:33:00]requested_item shift.num is exist - process it [13:33:00]requested_item shift.opened is exist - process it [13:33:00]req_shift_opened [13:33:00]FM_GetShiftState [13:33:00]SAM_PROTO_GetShiftState [13:33:00]wFMCommunicate request_size=4 [13:33:00]MH_SAM_APDU [13:33:00]CAPDU: 80 13 01 00 [13:33:00]Write to MH i2c: E2 08 00 AB 15 80 13 01 00 00 00 00 00 3D [13:33:00]Write i2c OK [13:33:00]MH_I2C_Read... [13:33:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:00]Read from MH i2c: E2 [13:33:00]MH_I2C_Read... [13:33:00]Read from MH i2c: E2 0E 00 [13:33:00]MH_I2C_Read... [13:33:00]Read from MH i2c: E2 0E 00 AB 15 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 4C [13:33:00]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:33:00]wFMCommunicate OK [13:33:00]SAM_PROTO_GetShiftState done [13:33:00]FM_GetShiftState done [13:33:00]req_shift_opened done [13:33:00]requested_item shift.open_date is exist - process it [13:33:00]req_shift_open_date [13:33:00]req_shift_open_date done [13:33:00]produce_requested_data done [13:33:00]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201496,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:33:00]process_action_free close_receipt [13:33:00]json_value_free [13:33:00]json_value_free done [13:33:00]process_json_proto returns [13:33:00]Send response to host [13:33:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201496,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:33:00]free response buf [13:33:00]execute_script done [13:33:00]execute_script returns [13:33:00]free content buf [13:33:00]Sock 8.Close socket [13:33:00]Sock 8.Thread stoped [13:33:04]OFD Sender: No OFD packet to send [13:33:09]OFD Sender: No OFD packet to send [13:33:14]OFD Sender: No OFD packet to send [13:33:19]OFD Sender: No OFD packet to send [13:33:24]OFD Sender: No OFD packet to send [13:33:29]OFD Sender: No OFD packet to send [13:33:34]OFD Sender: No OFD packet to send [13:33:39]OFD Sender: No OFD packet to send [13:33:44]OFD Sender: No OFD packet to send [13:33:49]OFD Sender: No OFD packet to send [13:33:54]OFD Sender: No OFD packet to send [13:33:59]OFD Sender: No OFD packet to send [13:34:04]OFD Sender: No OFD packet to send [13:34:09]OFD Sender: No OFD packet to send [13:34:14]OFD Sender: No OFD packet to send [13:34:19]OFD Sender: No OFD packet to send [13:34:24]OFD Sender: No OFD packet to send [13:34:26]accept exits with 9 [13:34:26]New connection [13:34:26]New thread 3066834276 created [13:34:26]Thread 3066690916 joined [13:34:26]Waiting for new connection... [13:34:26] Sock 9.Parse request [13:34:26]Sock 9.Check first char [13:34:26]Sock 9.First char is OK [13:34:26]request: POST /json_proto HTTP/1.0 [13:34:26]Method: POST [13:34:26]URL: /json_proto [13:34:26]Method is POST - this is cgi request [13:34:26]url: /json_proto [13:34:26]query_string will be loaded in cgi processing [13:34:26]execute_cgi json_proto POST (null) [13:34:26]execute_cgi path=json_proto method=POST [13:34:26]POST find Content-Length [13:34:26]Host: 172.17.63.195:8080 [13:34:26]Content-Length: 632 [13:34:26]Content-Type: application/json [13:34:26] [13:34:26]POST finish read [13:34:26]Found Content-Length = 632 [13:34:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:26]execute_script... [13:34:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:26]POST & json_proto [13:34:26]process_json_proto [13:34:26]json parsed OK: [13:34:26]protocol is kg_v1.0 [13:34:26]action value=close_receipt [13:34:26]process_action close_receipt [13:34:26]cmd_close_receipt [13:34:26]MH_GetDate [13:34:26]Write to MH i2c: F0 00 00 AC 15 B0 [13:34:26]Write i2c OK [13:34:26]MH_I2C_Read... [13:34:26]Read from MH i2c: F0 [13:34:26]MH_I2C_Read... [13:34:26]Read from MH i2c: F0 09 00 [13:34:26]MH_I2C_Read... [13:34:26]Read from MH i2c: F0 09 00 AC 15 00 E3 EF 1C 67 68 46 19 67 3C [13:34:26]GetLastDocTimeStamp 1729949577 [13:34:26]current date 1729949667 [13:34:26]FM_GetShiftState [13:34:26]SAM_PROTO_GetShiftState [13:34:26]wFMCommunicate request_size=4 [13:34:26]MH_SAM_APDU [13:34:26]CAPDU: 80 13 01 00 [13:34:26]Write to MH i2c: E2 08 00 AD 15 80 13 01 00 00 00 00 00 3F [13:34:26]Write i2c OK [13:34:26]MH_I2C_Read... [13:34:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:26]Read from MH i2c: E2 [13:34:26]MH_I2C_Read... [13:34:26]Read from MH i2c: E2 0E 00 [13:34:26]MH_I2C_Read... [13:34:26]Read from MH i2c: E2 0E 00 AD 15 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 4E [13:34:26]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:34:26]wFMCommunicate OK [13:34:26]SAM_PROTO_GetShiftState done [13:34:26]FM_GetShiftState done [13:34:26]opened in 1729900879 [13:34:26]opened+sec_in_day 1729987279 [13:34:26]quantity*price = 50000 [13:34:26]sum+1 = 50001 [13:34:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 259 26.10.2024 13:34 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201497 ФПД: 113498714710687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133427&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201497&fm=113498714710687&tin=02508201610067®Number=0000000000091777&sum=50000 [13:34:27]StoreToDocumentArchive [13:34:27]shift 543 fd 201497 [13:34:27]save to /storage/0543/doc_00201497 [13:34:27]save last doc name /storage/0543/doc_00201497 to /storage/kkm_last_doc_name [13:34:27]save OK [13:34:27]Clear old archive folders... [13:34:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:34:27]tlvbuf is B6E8B2C0 [13:34:27]SAM_PROTO_ClearQueue [13:34:27]wFMCommunicate request_size=4 [13:34:27]MH_SAM_APDU [13:34:27]CAPDU: 80 09 00 00 [13:34:27]Write to MH i2c: E2 08 00 BA 15 80 09 00 00 00 00 00 00 41 [13:34:27]Write i2c OK [13:34:27]MH_I2C_Read... [13:34:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:34:27]Read from MH i2c: E2 [13:34:27]MH_I2C_Read... [13:34:27]Read from MH i2c: E2 03 00 [13:34:27]MH_I2C_Read... [13:34:27]Read from MH i2c: E2 03 00 BA 15 00 90 00 43 [13:34:27]RAPDU: 90 00 [13:34:27]wFMCommunicate OK [13:34:27]SAM_PROTO_ClearQueue done [13:34:27]KKMCreateOFDPacket [13:34:27]OFDProtocolAddRootSTLVToBuf [13:34:27]FM_MakeSignedData [13:34:27]FM_MakeSignedData [13:34:27]SAM_PROTO_SignData [13:34:27]wFMCommunicate request_size=4 [13:34:27]MH_SAM_APDU [13:34:27]CAPDU: 80 0D 01 02 [13:34:27]Write to MH i2c: E2 08 00 BB 15 80 0D 01 02 00 00 00 00 49 [13:34:27]Write i2c OK [13:34:27]MH_I2C_Read... [13:34:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:34:27]Read from MH i2c: E2 [13:34:27]MH_I2C_Read... [13:34:27]Read from MH i2c: E2 03 00 [13:34:27]MH_I2C_Read... [13:34:27]Read from MH i2c: E2 03 00 BB 15 00 90 00 44 [13:34:27]RAPDU: 90 00 [13:34:27]wFMCommunicate OK [13:34:27]wFMCommunicate request_size=255 [13:34:27]MH_SAM_APDU [13:34:27]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 E3 EF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 19 13 03 00 35 04 06 00 [13:34:27]Write to MH i2c: E2 02 01 BC 15 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 E3 EF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 19 13 03 00 35 04 06 00 00 00 E3 [13:34:27]Write i2c OK [13:34:27]MH_I2C_Read... [13:34:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:28]Read from MH i2c: E2 [13:34:28]MH_I2C_Read... [13:34:28]Read from MH i2c: E2 03 00 [13:34:28]MH_I2C_Read... [13:34:28]Read from MH i2c: E2 03 00 BC 15 00 90 00 45 [13:34:28]RAPDU: 90 00 [13:34:28]wFMCommunicate OK [13:34:28]wFMCommunicate request_size=11 [13:34:28]MH_SAM_APDU [13:34:28]CAPDU: 80 0D 02 02 06 67 39 FA 92 A2 9F [13:34:28]Write to MH i2c: E2 0E 00 BD 15 80 0D 02 02 06 00 67 39 FA 92 A2 9F 00 00 C5 [13:34:28]Write i2c OK [13:34:28]MH_I2C_Read... [13:34:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:28]Read from MH i2c: E2 [13:34:28]MH_I2C_Read... [13:34:28]Read from MH i2c: E2 03 00 [13:34:28]MH_I2C_Read... [13:34:28]Read from MH i2c: E2 03 00 BD 15 00 90 00 46 [13:34:28]RAPDU: 90 00 [13:34:28]wFMCommunicate OK [13:34:28]wFMCommunicate request_size=4 [13:34:28]MH_SAM_APDU [13:34:28]CAPDU: 80 0D 03 02 [13:34:28]Write to MH i2c: E2 08 00 BE 15 80 0D 03 02 00 00 00 00 4E [13:34:28]Write i2c OK [13:34:28]MH_I2C_Read... [13:34:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:34:28]Read from MH i2c: E2 [13:34:28]MH_I2C_Read... [13:34:28]Read from MH i2c: E2 0B 00 [13:34:28]MH_I2C_Read... [13:34:28]Read from MH i2c: E2 0B 00 BE 15 00 FC B5 40 E5 76 4E 77 C2 90 00 22 [13:34:28]RAPDU: FC B5 40 E5 76 4E 77 C2 90 00 [13:34:28]wFMCommunicate OK [13:34:28]SAM_PROTO_SignData done [13:34:28]FM_MakeSignedData done [13:34:28]CreateOFDProtocolMessage [13:34:28]wFMCommunicate request_size=4 [13:34:28]MH_SAM_APDU [13:34:28]CAPDU: 80 11 00 00 [13:34:28]Write to MH i2c: E2 08 00 BF 15 80 11 00 00 00 00 00 00 4E [13:34:28]Write i2c OK [13:34:28]MH_I2C_Read... [13:34:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:28]Read from MH i2c: E2 [13:34:28]MH_I2C_Read... [13:34:28]Read from MH i2c: E2 17 00 [13:34:28]MH_I2C_Read... [13:34:28]Read from MH i2c: E2 17 00 BF 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A3 [13:34:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:34:28]wFMCommunicate OK [13:34:28]CreateOFDProtocolMessage done [13:34:28]OFDSenderStorePacket 201497 [13:34:28]StoreOFDPacket docnum=201497 [13:34:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 43 90 08 01 38 CB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 E3 EF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 19 13 03 00 35 04 06 00 67 39 FA 92 A2 9F FC B5 40 E5 76 4E 77 C2 [13:34:28]CheckFolder [13:34:28]dirname=/storage/ofd_packets [13:34:28]CheckFolder done [13:34:28]ProducePacketName [13:34:28]name=ofd_packets/00201497 [13:34:28]NVStorageSaveData ofd_packets/00201497 [13:34:28]File name is /storage/ofd_packets/00201497 [13:34:28]Write 302 bytes [13:34:28]NVStorageSaveData done [13:34:28]OFDSenderStorePacket done [13:34:28]KKMCreateOFDPacket done [13:34:28]NVStorageSaveData kkm_last_timestamp [13:34:28]File name is /storage/kkm_last_timestamp [13:34:28]Write 4 bytes [13:34:28]NVStorageSaveData done [13:34:28]OFD Sender: Processing packet 201497 [packets to send 112, broken 111] [13:34:28]ProducePacketName [13:34:28]name=ofd_packets/00201497 [13:34:28]OFD Sender: To server: pG, [13:34:28]CommunicateWithHost lk.salyk.kg:30040 [13:34:28]ConnectInit lk.salyk.kg [13:34:28]ExternCall_PrintAddStr [13:34:28]wPrintStart [13:34:28]Write to MH i2c: 01 00 00 C0 15 D5 [13:34:28]Write i2c OK [13:34:28]MH_I2C_Read... [13:34:28]Read from MH i2c: 01 [13:34:28]MH_I2C_Read... [13:34:28]Read from MH i2c: 01 07 00 [13:34:28]MH_I2C_Read... [13:34:28]Read from MH i2c: 01 07 00 C0 15 00 00 00 00 00 FF 0F EA [13:34:28]RasterBufferAndPrint [13:34:28]line Счет N : (1)449247 [13:34:28]line ИНН: 02508201610067 [13:34:28]line Контрольно-Кассовый Чек [13:34:28]line ПРОДАЖА [13:34:28]line ТРК (МРК, ГНК) : 53 [13:34:28]line Товар: 2710124130 [13:34:28]line SUPER 92-К-5 [13:34:28]line 7.310 * 68.40 [13:34:28]line = 500.00 [13:34:28]line НДС 12% НСП 1% [13:34:28]line > о реализуемом товаре [13:34:28]line ИТОГО: 500.00 [13:34:28]line НСП 1% : 4.42 [13:34:28]line НДС 12% : 53.10 [13:34:28]line Наличными: 500.00 [13:34:28]line Безнал.: 0.00 [13:34:28]line Место: АЗС № 171 "Партнер Нефть" [13:34:28]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:34:28]line СНО: Общий режим [13:34:28]line Чек 259 26.10.2024 13:34 [13:34:28]line Смена: 543 ФФД: 1.0 [13:34:28]line ЗНМ: 0300000109 [13:34:28]line РНМ: 0000000000091777 [13:34:28]line Версия ККМ: 001 [13:34:28]line ФМ: 0000000000871756 [13:34:28]line ФД: 201497 [13:34:28]line ФПД: 113498714710687 [13:34:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133427&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201497&fm=113498714710687&tin=02508201610067®Number=0000000000091777&sum=50000 [13:34:28]Connected sock=11 [13:34:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 43 90 08 01 38 CB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 E3 EF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 19 13 03 00 35 04 06 00 67 39 FA 92 A2 9F FC B5 40 E5 76 4E 77 C2 [13:34:28]written 0, free lines is 4095 [13:34:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 92 5D 47 00 52 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 19 13 03 00 F4 03 04 00 8C 9B 1C 67 B6 04 01 00 00 07 B4 FE 58 20 E6 51 D6 [13:34:28]CommunicateWithHost err = 0 [13:34:28]CheckOFDResponse [13:34:28]1017 (14) - 77093643461234 [13:34:28]1041 (16) - 0000000000871756 [13:34:28]1040 (4) - 201497 [13:34:28]1012 (4) - 26.10.2024 07:34 [13:34:28]1206 (1) - 0 [13:34:28]OFD Sender: Remove packet 201497 [13:34:28]ProducePacketName [13:34:28]name=ofd_packets/00201497 [13:34:28]NVStorageDeleteData [13:34:29]Write to MH i2c: 01 00 00 E8 15 FD [13:34:29]Write i2c OK [13:34:29]MH_I2C_Read... [13:34:29]Read from MH i2c: 01 [13:34:29]MH_I2C_Read... [13:34:29]Read from MH i2c: 01 07 00 [13:34:29]MH_I2C_Read... [13:34:29]Read from MH i2c: 01 07 00 E8 15 00 00 00 00 00 D6 0C E6 [13:34:29]RasterBufferAndPrint [13:34:29]line [13:34:29]line [13:34:29]line [13:34:29]line [13:34:29]line [13:34:29]written 0, free lines is 3290 [13:34:29]MH_Cut [13:34:29]Write to MH i2c: D1 01 00 EF 15 01 D6 [13:34:29]Write i2c OK [13:34:29]MH_I2C_Read... [13:34:29]Read from MH i2c: D1 [13:34:29]MH_I2C_Read... [13:34:29]Read from MH i2c: D1 01 00 [13:34:29]MH_I2C_Read... [13:34:29]Read from MH i2c: D1 01 00 EF 15 00 D5 [13:34:29]Write to MH i2c: 01 00 00 F0 15 05 [13:34:29]Write i2c OK [13:34:29]MH_I2C_Read... [13:34:29]OFD Sender: No OFD packet to send [13:34:29]*** Cut start [13:34:29]*** Purtial cut [13:34:29]*** Stage 1: CUTSNS_PIN = 1 [13:34:30]Read from MH i2c: 01 [13:34:30]MH_I2C_Read... [13:34:30]*** Stop cut motor [13:34:30]*** Cut end [13:34:30]Read from MH i2c: 01 07 00 [13:34:30]MH_I2C_Read... [13:34:30]Read from MH i2c: 01 07 00 F0 15 00 00 00 00 00 FF 0F 1A [13:34:30]process_action close_receipt done [13:34:30]requested_data is exist [13:34:30]produce_requested_data [13:34:30]requested_item fm.sn is exist - process it [13:34:30]wFMCommunicate request_size=4 [13:34:30]MH_SAM_APDU [13:34:30]CAPDU: 80 11 00 00 [13:34:30]Write to MH i2c: E2 08 00 F1 15 80 11 00 00 00 00 00 00 80 [13:34:30]Write i2c OK [13:34:30]MH_I2C_Read... [13:34:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:30]Read from MH i2c: E2 [13:34:30]MH_I2C_Read... [13:34:30]Read from MH i2c: E2 17 00 [13:34:30]MH_I2C_Read... [13:34:30]Read from MH i2c: E2 17 00 F1 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D5 [13:34:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:34:30]wFMCommunicate OK [13:34:30]requested_item fd.num is exist - process it [13:34:30]SAM_PROTO_GetFieldsCounters [13:34:30]wFMCommunicate request_size=4 [13:34:30]MH_SAM_APDU [13:34:30]CAPDU: 80 13 00 00 [13:34:30]Write to MH i2c: E2 08 00 F2 15 80 13 00 00 00 00 00 00 83 [13:34:30]Write i2c OK [13:34:30]MH_I2C_Read... [13:34:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:30]Read from MH i2c: E2 [13:34:30]MH_I2C_Read... [13:34:30]Read from MH i2c: E2 62 00 [13:34:30]MH_I2C_Read... [13:34:30]Read from MH i2c: E2 62 00 F2 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 19 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 08 [13:34:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 19 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:34:30]wFMCommunicate OK [13:34:30]SAM_PROTO_GetFieldsCounters done [13:34:30]requested_item shift.num is exist - process it [13:34:30]requested_item shift.opened is exist - process it [13:34:30]req_shift_opened [13:34:30]FM_GetShiftState [13:34:30]SAM_PROTO_GetShiftState [13:34:30]wFMCommunicate request_size=4 [13:34:30]MH_SAM_APDU [13:34:30]CAPDU: 80 13 01 00 [13:34:30]Write to MH i2c: E2 08 00 F3 15 80 13 01 00 00 00 00 00 85 [13:34:30]Write i2c OK [13:34:30]MH_I2C_Read... [13:34:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:30]Read from MH i2c: E2 [13:34:30]MH_I2C_Read... [13:34:30]Read from MH i2c: E2 0E 00 [13:34:30]MH_I2C_Read... [13:34:30]Read from MH i2c: E2 0E 00 F3 15 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 94 [13:34:30]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:34:30]wFMCommunicate OK [13:34:30]SAM_PROTO_GetShiftState done [13:34:30]FM_GetShiftState done [13:34:30]req_shift_opened done [13:34:30]requested_item shift.open_date is exist - process it [13:34:30]req_shift_open_date [13:34:30]req_shift_open_date done [13:34:30]produce_requested_data done [13:34:30]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201497,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:34:30]process_action_free close_receipt [13:34:30]json_value_free [13:34:30]json_value_free done [13:34:30]process_json_proto returns [13:34:30]Send response to host [13:34:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201497,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:34:30]free response buf [13:34:30]execute_script done [13:34:30]execute_script returns [13:34:30]free content buf [13:34:30]Sock 9.Close socket [13:34:30]Sock 9.Thread stoped [13:34:34]OFD Sender: No OFD packet to send [13:34:39]OFD Sender: No OFD packet to send [13:34:44]OFD Sender: No OFD packet to send [13:34:49]OFD Sender: No OFD packet to send [13:34:54]OFD Sender: No OFD packet to send [13:34:59]OFD Sender: No OFD packet to send [13:35:04]OFD Sender: No OFD packet to send [13:35:09]OFD Sender: No OFD packet to send [13:35:14]OFD Sender: No OFD packet to send [13:35:19]OFD Sender: No OFD packet to send [13:35:24]OFD Sender: No OFD packet to send [13:35:29]OFD Sender: No OFD packet to send [13:35:34]OFD Sender: No OFD packet to send [13:35:39]OFD Sender: No OFD packet to send [13:35:44]OFD Sender: No OFD packet to send [13:35:49]OFD Sender: No OFD packet to send [13:35:54]OFD Sender: No OFD packet to send [13:35:59]OFD Sender: No OFD packet to send [13:36:04]OFD Sender: No OFD packet to send [13:36:09]OFD Sender: No OFD packet to send [13:36:10]accept exits with 8 [13:36:10]New connection [13:36:10]New thread 3066690916 created [13:36:10]Thread 3066834276 joined [13:36:10]Waiting for new connection... [13:36:10] Sock 8.Parse request [13:36:10]Sock 8.Check first char [13:36:10]Sock 8.First char is OK [13:36:10]request: POST /json_proto HTTP/1.0 [13:36:10]Method: POST [13:36:10]URL: /json_proto [13:36:10]Method is POST - this is cgi request [13:36:10]url: /json_proto [13:36:10]query_string will be loaded in cgi processing [13:36:10]execute_cgi json_proto POST (null) [13:36:10]execute_cgi path=json_proto method=POST [13:36:10]POST find Content-Length [13:36:10]Host: 172.17.63.195:8080 [13:36:10]Content-Length: 679 [13:36:10]Content-Type: application/json [13:36:10] [13:36:10]POST finish read [13:36:10]Found Content-Length = 679 [13:36:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [13:36:10]execute_script... [13:36:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [13:36:10]POST & json_proto [13:36:10]process_json_proto [13:36:10]json parsed OK: [13:36:10]protocol is kg_v1.0 [13:36:10]action value=close_receipt [13:36:10]process_action close_receipt [13:36:10]cmd_close_receipt [13:36:10]MH_GetDate [13:36:10]Write to MH i2c: F0 00 00 F4 15 F8 [13:36:10]Write i2c OK [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: F0 [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: F0 09 00 [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: F0 09 00 F4 15 00 4B F0 1C 67 68 46 19 67 ED [13:36:10]GetLastDocTimeStamp 1729949667 [13:36:10]current date 1729949771 [13:36:10]FM_GetShiftState [13:36:10]SAM_PROTO_GetShiftState [13:36:10]wFMCommunicate request_size=4 [13:36:10]MH_SAM_APDU [13:36:10]CAPDU: 80 13 01 00 [13:36:10]Write to MH i2c: E2 08 00 F5 15 80 13 01 00 00 00 00 00 87 [13:36:10]Write i2c OK [13:36:10]MH_I2C_Read... [13:36:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:10]Read from MH i2c: E2 [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: E2 0E 00 [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: E2 0E 00 F5 15 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 96 [13:36:10]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:36:10]wFMCommunicate OK [13:36:10]SAM_PROTO_GetShiftState done [13:36:10]FM_GetShiftState done [13:36:10]opened in 1729900879 [13:36:10]opened+sec_in_day 1729987279 [13:36:10]quantity*price = 200025 [13:36:10]sum+1 = 200026 [13:36:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 260 26.10.2024 13:36 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201498 ФПД: 128435695828780 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133611&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201498&fm=128435695828780&tin=02508201610067®Number=0000000000091777&sum=200000 [13:36:11]StoreToDocumentArchive [13:36:11]shift 543 fd 201498 [13:36:11]save to /storage/0543/doc_00201498 [13:36:11]save last doc name /storage/0543/doc_00201498 to /storage/kkm_last_doc_name [13:36:11]save OK [13:36:11]Clear old archive folders... [13:36:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:36:11]tlvbuf is 01F588D0 [13:36:11]SAM_PROTO_ClearQueue [13:36:11]wFMCommunicate request_size=4 [13:36:11]MH_SAM_APDU [13:36:11]CAPDU: 80 09 00 00 [13:36:11]Write to MH i2c: E2 08 00 02 16 80 09 00 00 00 00 00 00 8A [13:36:11]Write i2c OK [13:36:11]MH_I2C_Read... [13:36:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:36:11]Read from MH i2c: E2 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 03 00 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 03 00 02 16 00 90 00 8C [13:36:11]RAPDU: 90 00 [13:36:11]wFMCommunicate OK [13:36:11]SAM_PROTO_ClearQueue done [13:36:11]KKMCreateOFDPacket [13:36:11]OFDProtocolAddRootSTLVToBuf [13:36:11]FM_MakeSignedData [13:36:11]FM_MakeSignedData [13:36:11]SAM_PROTO_SignData [13:36:11]wFMCommunicate request_size=4 [13:36:11]MH_SAM_APDU [13:36:11]CAPDU: 80 0D 01 02 [13:36:11]Write to MH i2c: E2 08 00 03 16 80 0D 01 02 00 00 00 00 92 [13:36:11]Write i2c OK [13:36:11]MH_I2C_Read... [13:36:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:36:12]Read from MH i2c: E2 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: E2 03 00 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: E2 03 00 03 16 00 90 00 8D [13:36:12]RAPDU: 90 00 [13:36:12]wFMCommunicate OK [13:36:12]wFMCommunicate request_size=255 [13:36:12]MH_SAM_APDU [13:36:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 04 01 00 00 F4 03 04 00 4B F0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1A 13 03 00 35 04 06 00 74 CF C4 06 [13:36:12]Write to MH i2c: E2 02 01 04 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 04 01 00 00 F4 03 04 00 4B F0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1A 13 03 00 35 04 06 00 74 CF C4 06 00 00 2B [13:36:12]Write i2c OK [13:36:12]MH_I2C_Read... [13:36:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:12]Read from MH i2c: E2 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: E2 03 00 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: E2 03 00 04 16 00 90 00 8E [13:36:12]RAPDU: 90 00 [13:36:12]wFMCommunicate OK [13:36:12]wFMCommunicate request_size=7 [13:36:12]MH_SAM_APDU [13:36:12]CAPDU: 80 0D 02 02 02 BF 2C [13:36:12]Write to MH i2c: E2 0A 00 05 16 80 0D 02 02 02 00 BF 2C 00 00 84 [13:36:12]Write i2c OK [13:36:12]MH_I2C_Read... [13:36:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:12]Read from MH i2c: E2 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: E2 03 00 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: E2 03 00 05 16 00 90 00 8F [13:36:12]RAPDU: 90 00 [13:36:12]wFMCommunicate OK [13:36:12]wFMCommunicate request_size=4 [13:36:12]MH_SAM_APDU [13:36:12]CAPDU: 80 0D 03 02 [13:36:12]Write to MH i2c: E2 08 00 06 16 80 0D 03 02 00 00 00 00 97 [13:36:12]Write i2c OK [13:36:12]MH_I2C_Read... [13:36:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:36:12]Read from MH i2c: E2 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: E2 0B 00 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: E2 0B 00 06 16 00 F8 DC 25 4A FB 10 1E BF 90 00 C3 [13:36:12]RAPDU: F8 DC 25 4A FB 10 1E BF 90 00 [13:36:12]wFMCommunicate OK [13:36:12]SAM_PROTO_SignData done [13:36:12]FM_MakeSignedData done [13:36:12]CreateOFDProtocolMessage [13:36:12]wFMCommunicate request_size=4 [13:36:12]MH_SAM_APDU [13:36:12]CAPDU: 80 11 00 00 [13:36:12]Write to MH i2c: E2 08 00 07 16 80 11 00 00 00 00 00 00 97 [13:36:12]Write i2c OK [13:36:12]MH_I2C_Read... [13:36:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:12]Read from MH i2c: E2 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: E2 17 00 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: E2 17 00 07 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EC [13:36:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:36:12]wFMCommunicate OK [13:36:12]CreateOFDProtocolMessage done [13:36:12]OFDSenderStorePacket 201498 [13:36:12]StoreOFDPacket docnum=201498 [13:36:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 17 35 04 01 3F EB 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 04 01 00 00 F4 03 04 00 4B F0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1A 13 03 00 35 04 06 00 74 CF C4 06 BF 2C F8 DC 25 4A FB 10 1E BF [13:36:12]CheckFolder [13:36:12]dirname=/storage/ofd_packets [13:36:12]CheckFolder done [13:36:12]ProducePacketName [13:36:12]name=ofd_packets/00201498 [13:36:12]NVStorageSaveData ofd_packets/00201498 [13:36:12]File name is /storage/ofd_packets/00201498 [13:36:12]Write 298 bytes [13:36:12]NVStorageSaveData done [13:36:12]OFDSenderStorePacket done [13:36:12]KKMCreateOFDPacket done [13:36:12]NVStorageSaveData kkm_last_timestamp [13:36:12]File name is /storage/kkm_last_timestamp [13:36:12]Write 4 bytes [13:36:12]NVStorageSaveData done [13:36:12]ExternCall_PrintAddStr [13:36:12]wPrintStart [13:36:12]Write to MH i2c: 01 00 00 08 16 1E [13:36:12]Write i2c OK [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: 01 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: 01 07 00 [13:36:12]MH_I2C_Read... [13:36:12]Read from MH i2c: 01 07 00 08 16 00 00 00 00 00 FF 0F 33 [13:36:12]RasterBufferAndPrint [13:36:12]line Счет N : (1)449248 [13:36:12]line ИНН: 02508201610067 [13:36:12]line Контрольно-Кассовый Чек [13:36:12]line ПРОДАЖА [13:36:12]line ТРК (МРК, ГНК) : 33 [13:36:12]line Товар: 2710194210 [13:36:12]line ДТ-К-2 [13:36:12]line 26.250 * 76.20 [13:36:12]line = 2000.25 [13:36:12]line НДС 12% НСП 1% [13:36:12]line > о реализуемом товаре [13:36:12]line ОКРУГЛЕНИЕ: -0.25 [13:36:12]line ИТОГО: 2000.00 [13:36:12]line Внесено: 2000.00 [13:36:12]line СДАЧА: 0.00 [13:36:12]line НСП 1% : 17.70 [13:36:12]line НДС 12% : 212.42 [13:36:12]line Наличными: 2000.00 [13:36:12]line Безнал.: 0.00 [13:36:12]line Место: АЗС № 171 "Партнер Нефть" [13:36:12]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:36:12]line СНО: Общий режим [13:36:12]line Чек 260 26.10.2024 13:36 [13:36:12]line Смена: 543 ФФД: 1.0 [13:36:12]line ЗНМ: 0300000109 [13:36:12]line РНМ: 0000000000091777 [13:36:12]line Версия ККМ: 001 [13:36:12]line ФМ: 0000000000871756 [13:36:12]line ФД: 201498 [13:36:12]line ФПД: 128435695828780 [13:36:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133611&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201498&fm=128435695828780&tin=02508201610067®Number=0000000000091777&sum=200000 [13:36:12]OFD Sender: Processing packet 201498 [packets to send 112, broken 111] [13:36:12]ProducePacketName [13:36:12]name=ofd_packets/00201498 [13:36:12]OFD Sender: To server: pG, [13:36:12]CommunicateWithHost lk.salyk.kg:30040 [13:36:12]ConnectInit lk.salyk.kg [13:36:12]written 0, free lines is 4095 [13:36:12]Connected sock=10 [13:36:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 17 35 04 01 3F EB 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 04 01 00 00 F4 03 04 00 4B F0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1A 13 03 00 35 04 06 00 74 CF C4 06 BF 2C F8 DC 25 4A FB 10 1E BF [13:36:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 68 34 47 00 37 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1A 13 03 00 F4 03 04 00 F4 9B 1C 67 B6 04 01 00 00 E7 92 1F 9F B1 C9 C9 36 [13:36:13]CommunicateWithHost err = 0 [13:36:13]CheckOFDResponse [13:36:13]1017 (14) - 77093643461234 [13:36:13]1041 (16) - 0000000000871756 [13:36:13]1040 (4) - 201498 [13:36:13]1012 (4) - 26.10.2024 07:36 [13:36:13]1206 (1) - 0 [13:36:13]OFD Sender: Remove packet 201498 [13:36:13]ProducePacketName [13:36:13]name=ofd_packets/00201498 [13:36:13]NVStorageDeleteData [13:36:13]Write to MH i2c: 01 00 00 33 16 49 [13:36:13]Write i2c OK [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: 01 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: 01 07 00 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: 01 07 00 33 16 00 00 00 00 00 9F 0C FB [13:36:13]RasterBufferAndPrint [13:36:13]line [13:36:13]line [13:36:13]line [13:36:13]line [13:36:13]line [13:36:13]written 0, free lines is 3235 [13:36:13]MH_Cut [13:36:13]Write to MH i2c: D1 01 00 3A 16 01 22 [13:36:13]Write i2c OK [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: D1 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: D1 01 00 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: D1 01 00 3A 16 00 21 [13:36:13]Write to MH i2c: 01 00 00 3B 16 51 [13:36:13]Write i2c OK [13:36:13]MH_I2C_Read... [13:36:13]OFD Sender: No OFD packet to send [13:36:14]*** Cut start [13:36:14]*** Purtial cut [13:36:14]*** Stage 1: CUTSNS_PIN = 1 [13:36:14]Read from MH i2c: 01 [13:36:14]MH_I2C_Read... [13:36:14]*** Stop cut motor [13:36:14]*** Cut end [13:36:14]Read from MH i2c: 01 07 00 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: 01 07 00 3B 16 00 00 00 00 00 FF 0F 66 [13:36:14]process_action close_receipt done [13:36:14]requested_data is exist [13:36:14]produce_requested_data [13:36:14]requested_item fm.sn is exist - process it [13:36:14]wFMCommunicate request_size=4 [13:36:14]MH_SAM_APDU [13:36:14]CAPDU: 80 11 00 00 [13:36:14]Write to MH i2c: E2 08 00 3C 16 80 11 00 00 00 00 00 00 CC [13:36:14]Write i2c OK [13:36:14]MH_I2C_Read... [13:36:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:14]Read from MH i2c: E2 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: E2 17 00 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: E2 17 00 3C 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 21 [13:36:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:36:14]wFMCommunicate OK [13:36:14]requested_item fd.num is exist - process it [13:36:14]SAM_PROTO_GetFieldsCounters [13:36:14]wFMCommunicate request_size=4 [13:36:14]MH_SAM_APDU [13:36:14]CAPDU: 80 13 00 00 [13:36:14]Write to MH i2c: E2 08 00 3D 16 80 13 00 00 00 00 00 00 CF [13:36:14]Write i2c OK [13:36:14]MH_I2C_Read... [13:36:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:14]Read from MH i2c: E2 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: E2 62 00 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: E2 62 00 3D 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1A 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 58 [13:36:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1A 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:36:14]wFMCommunicate OK [13:36:14]SAM_PROTO_GetFieldsCounters done [13:36:14]requested_item shift.num is exist - process it [13:36:14]requested_item shift.opened is exist - process it [13:36:14]req_shift_opened [13:36:14]FM_GetShiftState [13:36:14]SAM_PROTO_GetShiftState [13:36:14]wFMCommunicate request_size=4 [13:36:14]MH_SAM_APDU [13:36:14]CAPDU: 80 13 01 00 [13:36:14]Write to MH i2c: E2 08 00 3E 16 80 13 01 00 00 00 00 00 D1 [13:36:14]Write i2c OK [13:36:14]MH_I2C_Read... [13:36:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:14]Read from MH i2c: E2 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: E2 0E 00 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: E2 0E 00 3E 16 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E0 [13:36:14]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:36:14]wFMCommunicate OK [13:36:14]SAM_PROTO_GetShiftState done [13:36:14]FM_GetShiftState done [13:36:14]req_shift_opened done [13:36:14]requested_item shift.open_date is exist - process it [13:36:14]req_shift_open_date [13:36:14]req_shift_open_date done [13:36:14]produce_requested_data done [13:36:14]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201498,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:36:14]process_action_free close_receipt [13:36:14]json_value_free [13:36:14]json_value_free done [13:36:14]process_json_proto returns [13:36:14]Send response to host [13:36:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201498,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:36:14]free response buf [13:36:14]execute_script done [13:36:14]execute_script returns [13:36:14]free content buf [13:36:14]Sock 8.Close socket [13:36:14]Sock 8.Thread stoped [13:36:18]OFD Sender: No OFD packet to send [13:36:23]OFD Sender: No OFD packet to send [13:36:28]OFD Sender: No OFD packet to send [13:36:33]OFD Sender: No OFD packet to send [13:36:38]OFD Sender: No OFD packet to send [13:36:43]OFD Sender: No OFD packet to send [13:36:48]OFD Sender: No OFD packet to send [13:36:53]OFD Sender: No OFD packet to send [13:36:58]OFD Sender: No OFD packet to send [13:37:03]OFD Sender: No OFD packet to send [13:37:08]OFD Sender: No OFD packet to send [13:37:13]OFD Sender: No OFD packet to send [13:37:18]OFD Sender: No OFD packet to send [13:37:23]OFD Sender: No OFD packet to send [13:37:28]accept exits with 9 [13:37:28]New connection [13:37:28]New thread 3066834276 created [13:37:28]Thread 3066690916 joined [13:37:28]Waiting for new connection... [13:37:28] Sock 9.Parse request [13:37:28]Sock 9.Check first char [13:37:28]Sock 9.First char is OK [13:37:28]request: POST /json_proto HTTP/1.0 [13:37:28]Method: POST [13:37:28]URL: /json_proto [13:37:28]Method is POST - this is cgi request [13:37:28]url: /json_proto [13:37:28]query_string will be loaded in cgi processing [13:37:28]execute_cgi json_proto POST (null) [13:37:28]execute_cgi path=json_proto method=POST [13:37:28]POST find Content-Length [13:37:28]Host: 172.17.63.195:8080 [13:37:28]Content-Length: 677 [13:37:28]Content-Type: application/json [13:37:28] [13:37:28]POST finish read [13:37:28]Found Content-Length = 677 [13:37:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:37:28]execute_script... [13:37: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)449249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:37:28]POST & json_proto [13:37:28]process_json_proto [13:37:28]json parsed OK: [13:37:28]protocol is kg_v1.0 [13:37:28]action value=close_receipt [13:37:28]process_action close_receipt [13:37:28]cmd_close_receipt [13:37:28]MH_GetDate [13:37:28]Write to MH i2c: F0 00 00 3F 16 44 [13:37:28]Write i2c OK [13:37:28]MH_I2C_Read... [13:37:28]Read from MH i2c: F0 [13:37:28]MH_I2C_Read... [13:37:28]Read from MH i2c: F0 09 00 [13:37:28]MH_I2C_Read... [13:37:28]Read from MH i2c: F0 09 00 3F 16 00 99 F0 1C 67 68 46 19 67 87 [13:37:28]GetLastDocTimeStamp 1729949771 [13:37:28]current date 1729949849 [13:37:28]FM_GetShiftState [13:37:28]SAM_PROTO_GetShiftState [13:37:28]wFMCommunicate request_size=4 [13:37:28]MH_SAM_APDU [13:37:28]CAPDU: 80 13 01 00 [13:37:28]Write to MH i2c: E2 08 00 40 16 80 13 01 00 00 00 00 00 D3 [13:37:28]Write i2c OK [13:37:28]MH_I2C_Read... [13:37:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:28]Read from MH i2c: E2 [13:37:28]MH_I2C_Read... [13:37:28]Read from MH i2c: E2 0E 00 [13:37:28]MH_I2C_Read... [13:37:28]Read from MH i2c: E2 0E 00 40 16 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E2 [13:37:28]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:37:28]wFMCommunicate OK [13:37:28]SAM_PROTO_GetShiftState done [13:37:28]FM_GetShiftState done [13:37:28]opened in 1729900879 [13:37:28]opened+sec_in_day 1729987279 [13:37:28]quantity*price = 50041 [13:37:28]sum+1 = 50042 [13:37:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 261 26.10.2024 13:37 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201499 ФПД: 31991799138981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133729&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201499&fm=31991799138981&tin=02508201610067®Number=0000000000091777&sum=50000 [13:37:29]StoreToDocumentArchive [13:37:29]shift 543 fd 201499 [13:37:29]save to /storage/0543/doc_00201499 [13:37:29]save last doc name /storage/0543/doc_00201499 to /storage/kkm_last_doc_name [13:37:29]save OK [13:37:29]Clear old archive folders... [13:37:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:37:29]tlvbuf is 01F8B1A0 [13:37:29]SAM_PROTO_ClearQueue [13:37:29]wFMCommunicate request_size=4 [13:37:29]MH_SAM_APDU [13:37:29]CAPDU: 80 09 00 00 [13:37:29]Write to MH i2c: E2 08 00 4D 16 80 09 00 00 00 00 00 00 D5 [13:37:29]Write i2c OK [13:37:29]MH_I2C_Read... [13:37:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:29]Read from MH i2c: E2 [13:37:29]MH_I2C_Read... [13:37:29]Read from MH i2c: E2 03 00 [13:37:29]MH_I2C_Read... [13:37:29]Read from MH i2c: E2 03 00 4D 16 00 90 00 D7 [13:37:29]RAPDU: 90 00 [13:37:29]wFMCommunicate OK [13:37:29]SAM_PROTO_ClearQueue done [13:37:29]KKMCreateOFDPacket [13:37:29]OFDProtocolAddRootSTLVToBuf [13:37:29]FM_MakeSignedData [13:37:29]FM_MakeSignedData [13:37:29]SAM_PROTO_SignData [13:37:29]wFMCommunicate request_size=4 [13:37:29]MH_SAM_APDU [13:37:29]CAPDU: 80 0D 01 02 [13:37:29]Write to MH i2c: E2 08 00 4E 16 80 0D 01 02 00 00 00 00 DD [13:37:29]Write i2c OK [13:37:29]MH_I2C_Read... [13:37:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:29]Read from MH i2c: E2 [13:37:29]MH_I2C_Read... [13:37:29]Read from MH i2c: E2 03 00 [13:37:29]MH_I2C_Read... [13:37:29]Read from MH i2c: E2 03 00 4E 16 00 90 00 D8 [13:37:29]RAPDU: 90 00 [13:37:29]wFMCommunicate OK [13:37:29]wFMCommunicate request_size=255 [13:37:29]MH_SAM_APDU [13:37: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 32 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 01 00 00 F4 03 04 00 99 F0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1B 13 03 00 35 04 06 00 1D [13:37:29]Write to MH i2c: E2 02 01 4F 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 32 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 01 00 00 F4 03 04 00 99 F0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1B 13 03 00 35 04 06 00 1D 00 00 F2 [13:37:29]Write i2c OK [13:37:29]MH_I2C_Read... [13:37:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:29]Read from MH i2c: E2 [13:37:29]MH_I2C_Read... [13:37:29]Read from MH i2c: E2 03 00 [13:37:29]MH_I2C_Read... [13:37:29]Read from MH i2c: E2 03 00 4F 16 00 90 00 D9 [13:37:29]RAPDU: 90 00 [13:37:29]wFMCommunicate OK [13:37:29]wFMCommunicate request_size=10 [13:37:29]MH_SAM_APDU [13:37:29]CAPDU: 80 0D 02 02 05 18 AB D2 CA A5 [13:37:29]Write to MH i2c: E2 0D 00 50 16 80 0D 02 02 05 00 18 AB D2 CA A5 00 00 EE [13:37:29]Write i2c OK [13:37:29]MH_I2C_Read... [13:37:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:29]Read from MH i2c: E2 [13:37:29]MH_I2C_Read... [13:37:29]Read from MH i2c: E2 03 00 [13:37:29]MH_I2C_Read... [13:37:29]Read from MH i2c: E2 03 00 50 16 00 90 00 DA [13:37:29]RAPDU: 90 00 [13:37:29]wFMCommunicate OK [13:37:29]wFMCommunicate request_size=4 [13:37:29]MH_SAM_APDU [13:37:29]CAPDU: 80 0D 03 02 [13:37:29]Write to MH i2c: E2 08 00 51 16 80 0D 03 02 00 00 00 00 E2 [13:37:29]Write i2c OK [13:37:29]MH_I2C_Read... [13:37:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:29]Read from MH i2c: E2 [13:37:29]MH_I2C_Read... [13:37:29]Read from MH i2c: E2 0B 00 [13:37:29]MH_I2C_Read... [13:37:29]Read from MH i2c: E2 0B 00 51 16 00 9F D7 A4 6B 8D B0 65 1C 90 00 26 [13:37:29]RAPDU: 9F D7 A4 6B 8D B0 65 1C 90 00 [13:37:29]wFMCommunicate OK [13:37:29]SAM_PROTO_SignData done [13:37:29]FM_MakeSignedData done [13:37:29]CreateOFDProtocolMessage [13:37:29]wFMCommunicate request_size=4 [13:37:29]MH_SAM_APDU [13:37:29]CAPDU: 80 11 00 00 [13:37:29]Write to MH i2c: E2 08 00 52 16 80 11 00 00 00 00 00 00 E2 [13:37:29]Write i2c OK [13:37:29]MH_I2C_Read... [13:37:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:29]Read from MH i2c: E2 [13:37:29]MH_I2C_Read... [13:37:29]Read from MH i2c: E2 17 00 [13:37:29]MH_I2C_Read... [13:37:29]Read from MH i2c: E2 17 00 52 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 37 [13:37:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:37:29]wFMCommunicate OK [13:37:29]CreateOFDProtocolMessage done [13:37:29]OFDSenderStorePacket 201499 [13:37:29]StoreOFDPacket docnum=201499 [13:37:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 48 D1 07 01 85 BB 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 32 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 01 00 00 F4 03 04 00 99 F0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1B 13 03 00 35 04 06 00 1D 18 AB D2 CA A5 9F D7 A4 6B 8D B0 65 1C [13:37:29]CheckFolder [13:37:29]dirname=/storage/ofd_packets [13:37:29]CheckFolder done [13:37:29]ProducePacketName [13:37:29]name=ofd_packets/00201499 [13:37:29]NVStorageSaveData ofd_packets/00201499 [13:37:29]File name is /storage/ofd_packets/00201499 [13:37:29]Write 301 bytes [13:37:29]NVStorageSaveData done [13:37:29]OFDSenderStorePacket done [13:37:29]KKMCreateOFDPacket done [13:37:29]NVStorageSaveData kkm_last_timestamp [13:37:29]File name is /storage/kkm_last_timestamp [13:37:29]Write 4 bytes [13:37:29]NVStorageSaveData done [13:37:29]ExternCall_PrintAddStr [13:37:29]wPrintStart [13:37:29]Write to MH i2c: 01 00 00 53 16 69 [13:37:29]Write i2c OK [13:37:29]MH_I2C_Read... [13:37:29]Read from MH i2c: 01 [13:37:29]MH_I2C_Read... [13:37:29]Read from MH i2c: 01 07 00 [13:37:29]MH_I2C_Read... [13:37:29]Read from MH i2c: 01 07 00 53 16 00 00 00 00 00 FF 0F 7E [13:37:29]RasterBufferAndPrint [13:37:29]line Счет N : (1)449249 [13:37:29]line ИНН: 02508201610067 [13:37:29]line Контрольно-Кассовый Чек [13:37:29]line ПРОДАЖА [13:37:29]line ТРК (МРК, ГНК) : 62 [13:37:29]line Товар: 2710124130 [13:37:29]line Аи-92-К-2 [13:37:29]line 7.480 * 66.90 [13:37:29]line = 500.41 [13:37:29]line НДС 12% НСП 1% [13:37:29]line > о реализуемом товаре [13:37:29]line ОКРУГЛЕНИЕ: -0.41 [13:37:29]line ИТОГО: 500.00 [13:37:29]line Внесено: 500.00 [13:37:29]line СДАЧА: 0.00 [13:37:29]line НСП 1% : 4.43 [13:37:29]line НДС 12% : 53.14 [13:37:29]line Наличными: 500.00 [13:37:29]line Безнал.: 0.00 [13:37:29]line Место: АЗС № 171 "Партнер Нефть" [13:37:29]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:37:29]line СНО: Общий режим [13:37:29]line Чек 261 26.10.2024 13:37 [13:37:29]line Смена: 543 ФФД: 1.0 [13:37:29]line ЗНМ: 0300000109 [13:37:29]line РНМ: 0000000000091777 [13:37:29]line Версия ККМ: 001 [13:37:29]line ФМ: 0000000000871756 [13:37:29]line ФД: 201499 [13:37:29]line ФПД: 31991799138981 [13:37:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133729&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201499&fm=31991799138981&tin=02508201610067®Number=0000000000091777&sum=50000 [13:37:30]OFD Sender: Processing packet 201499 [packets to send 112, broken 111] [13:37:30]ProducePacketName [13:37:30]name=ofd_packets/00201499 [13:37:30]OFD Sender: To server: pG, [13:37:30]CommunicateWithHost lk.salyk.kg:30040 [13:37:30]ConnectInit lk.salyk.kg [13:37:30]written 0, free lines is 4095 [13:37:30]Connected sock=10 [13:37:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 48 D1 07 01 85 BB 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 32 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 01 00 00 F4 03 04 00 99 F0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1B 13 03 00 35 04 06 00 1D 18 AB D2 CA A5 9F D7 A4 6B 8D B0 65 1C [13:37:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 AB FD 47 00 7C E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1B 13 03 00 F4 03 04 00 42 9C 1C 67 B6 04 01 00 00 84 EA BB AF 07 2A E9 7C [13:37:30]CommunicateWithHost err = 0 [13:37:30]CheckOFDResponse [13:37:30]1017 (14) - 77093643461234 [13:37:30]1041 (16) - 0000000000871756 [13:37:30]1040 (4) - 201499 [13:37:30]1012 (4) - 26.10.2024 07:37 [13:37:30]1206 (1) - 0 [13:37:30]OFD Sender: Remove packet 201499 [13:37:30]ProducePacketName [13:37:30]name=ofd_packets/00201499 [13:37:30]NVStorageDeleteData [13:37:30]Write to MH i2c: 01 00 00 7E 16 94 [13:37:30]Write i2c OK [13:37:30]MH_I2C_Read... [13:37:30]Read from MH i2c: 01 [13:37:30]MH_I2C_Read... [13:37:30]Read from MH i2c: 01 07 00 [13:37:30]MH_I2C_Read... [13:37:30]Read from MH i2c: 01 07 00 7E 16 00 00 00 00 00 9B 0C 42 [13:37:30]RasterBufferAndPrint [13:37:30]line [13:37:30]line [13:37:30]line [13:37:30]line [13:37:30]line [13:37:30]written 0, free lines is 3233 [13:37:30]MH_Cut [13:37:30]Write to MH i2c: D1 01 00 85 16 01 6D [13:37:30]Write i2c OK [13:37:30]MH_I2C_Read... [13:37:30]Read from MH i2c: D1 [13:37:30]MH_I2C_Read... [13:37:30]Read from MH i2c: D1 01 00 [13:37:30]MH_I2C_Read... [13:37:30]Read from MH i2c: D1 01 00 85 16 00 6C [13:37:30]Write to MH i2c: 01 00 00 86 16 9C [13:37:30]Write i2c OK [13:37:30]MH_I2C_Read... [13:37:31]OFD Sender: No OFD packet to send [13:37:31]*** Cut start [13:37:31]*** Purtial cut [13:37:31]*** Stage 1: CUTSNS_PIN = 1 [13:37:31]Read from MH i2c: 01 [13:37:31]MH_I2C_Read... [13:37:31]*** Stop cut motor [13:37:31]*** Cut end [13:37:31]Read from MH i2c: 01 07 00 [13:37:31]MH_I2C_Read... [13:37:31]Read from MH i2c: 01 07 00 86 16 00 00 00 00 00 FF 0F B1 [13:37:31]process_action close_receipt done [13:37:31]requested_data is exist [13:37:31]produce_requested_data [13:37:31]requested_item fm.sn is exist - process it [13:37:31]wFMCommunicate request_size=4 [13:37:31]MH_SAM_APDU [13:37:31]CAPDU: 80 11 00 00 [13:37:31]Write to MH i2c: E2 08 00 87 16 80 11 00 00 00 00 00 00 17 [13:37:31]Write i2c OK [13:37:31]MH_I2C_Read... [13:37:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:31]Read from MH i2c: E2 [13:37:31]MH_I2C_Read... [13:37:31]Read from MH i2c: E2 17 00 [13:37:31]MH_I2C_Read... [13:37:31]Read from MH i2c: E2 17 00 87 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6C [13:37:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:37:31]wFMCommunicate OK [13:37:31]requested_item fd.num is exist - process it [13:37:31]SAM_PROTO_GetFieldsCounters [13:37:31]wFMCommunicate request_size=4 [13:37:31]MH_SAM_APDU [13:37:31]CAPDU: 80 13 00 00 [13:37:31]Write to MH i2c: E2 08 00 88 16 80 13 00 00 00 00 00 00 1A [13:37:31]Write i2c OK [13:37:31]MH_I2C_Read... [13:37:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:32]Read from MH i2c: E2 [13:37:32]MH_I2C_Read... [13:37:32]Read from MH i2c: E2 62 00 [13:37:32]MH_I2C_Read... [13:37:32]Read from MH i2c: E2 62 00 88 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1B 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 A7 [13:37:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1B 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:37:32]wFMCommunicate OK [13:37:32]SAM_PROTO_GetFieldsCounters done [13:37:32]requested_item shift.num is exist - process it [13:37:32]requested_item shift.opened is exist - process it [13:37:32]req_shift_opened [13:37:32]FM_GetShiftState [13:37:32]SAM_PROTO_GetShiftState [13:37:32]wFMCommunicate request_size=4 [13:37:32]MH_SAM_APDU [13:37:32]CAPDU: 80 13 01 00 [13:37:32]Write to MH i2c: E2 08 00 89 16 80 13 01 00 00 00 00 00 1C [13:37:32]Write i2c OK [13:37:32]MH_I2C_Read... [13:37:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:32]Read from MH i2c: E2 [13:37:32]MH_I2C_Read... [13:37:32]Read from MH i2c: E2 0E 00 [13:37:32]MH_I2C_Read... [13:37:32]Read from MH i2c: E2 0E 00 89 16 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 2B [13:37:32]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:37:32]wFMCommunicate OK [13:37:32]SAM_PROTO_GetShiftState done [13:37:32]FM_GetShiftState done [13:37:32]req_shift_opened done [13:37:32]requested_item shift.open_date is exist - process it [13:37:32]req_shift_open_date [13:37:32]req_shift_open_date done [13:37:32]produce_requested_data done [13:37:32]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201499,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:37:32]process_action_free close_receipt [13:37:32]json_value_free [13:37:32]json_value_free done [13:37:32]process_json_proto returns [13:37:32]Send response to host [13:37:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201499,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:37:32]free response buf [13:37:32]execute_script done [13:37:32]execute_script returns [13:37:32]free content buf [13:37:32]Sock 9.Close socket [13:37:32]Sock 9.Thread stoped [13:37:36]OFD Sender: No OFD packet to send [13:37:41]OFD Sender: No OFD packet to send [13:37:46]OFD Sender: No OFD packet to send [13:37:51]OFD Sender: No OFD packet to send [13:37:56]OFD Sender: No OFD packet to send [13:38:01]OFD Sender: No OFD packet to send [13:38:06]OFD Sender: No OFD packet to send [13:38:11]OFD Sender: No OFD packet to send [13:38:16]OFD Sender: No OFD packet to send [13:38:19]accept exits with 8 [13:38:19]New connection [13:38:19]New thread 3066690916 created [13:38:19]Thread 3066834276 joined [13:38:19]Waiting for new connection... [13:38:19] Sock 8.Parse request [13:38:19]Sock 8.Check first char [13:38:19]Sock 8.First char is OK [13:38:19]request: POST /json_proto HTTP/1.0 [13:38:19]Method: POST [13:38:19]URL: /json_proto [13:38:19]Method is POST - this is cgi request [13:38:19]url: /json_proto [13:38:19]query_string will be loaded in cgi processing [13:38:19]execute_cgi json_proto POST (null) [13:38:19]execute_cgi path=json_proto method=POST [13:38:19]POST find Content-Length [13:38:19]Host: 172.17.63.195:8080 [13:38:19]Content-Length: 674 [13:38:19]Content-Type: application/json [13:38:19] [13:38:19]POST finish read [13:38:19]Found Content-Length = 674 [13:38:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [13:38:19]execute_script... [13:38: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)449250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [13:38:19]POST & json_proto [13:38:19]process_json_proto [13:38:19]json parsed OK: [13:38:19]protocol is kg_v1.0 [13:38:19]action value=close_receipt [13:38:19]process_action close_receipt [13:38:19]cmd_close_receipt [13:38:19]MH_GetDate [13:38:19]Write to MH i2c: F0 00 00 8A 16 8F [13:38:19]Write i2c OK [13:38:19]MH_I2C_Read... [13:38:19]Read from MH i2c: F0 [13:38:19]MH_I2C_Read... [13:38:19]Read from MH i2c: F0 09 00 [13:38:19]MH_I2C_Read... [13:38:19]Read from MH i2c: F0 09 00 8A 16 00 CC F0 1C 67 68 46 19 67 05 [13:38:19]GetLastDocTimeStamp 1729949849 [13:38:19]current date 1729949900 [13:38:19]FM_GetShiftState [13:38:19]SAM_PROTO_GetShiftState [13:38:19]wFMCommunicate request_size=4 [13:38:19]MH_SAM_APDU [13:38:19]CAPDU: 80 13 01 00 [13:38:19]Write to MH i2c: E2 08 00 8B 16 80 13 01 00 00 00 00 00 1E [13:38:19]Write i2c OK [13:38:19]MH_I2C_Read... [13:38:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:19]Read from MH i2c: E2 [13:38:19]MH_I2C_Read... [13:38:19]Read from MH i2c: E2 0E 00 [13:38:19]MH_I2C_Read... [13:38:19]Read from MH i2c: E2 0E 00 8B 16 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 2D [13:38:19]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:38:19]wFMCommunicate OK [13:38:19]SAM_PROTO_GetShiftState done [13:38:19]FM_GetShiftState done [13:38:19]opened in 1729900879 [13:38:19]opened+sec_in_day 1729987279 [13:38:19]quantity*price = 50063 [13:38:19]sum+1 = 50064 [13:38:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 262 26.10.2024 13:38 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201500 ФПД: 226998678975716 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133820&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201500&fm=226998678975716&tin=02508201610067®Number=0000000000091777&sum=50000 [13:38:20]StoreToDocumentArchive [13:38:20]shift 543 fd 201500 [13:38:20]save to /storage/0543/doc_00201500 [13:38:20]save last doc name /storage/0543/doc_00201500 to /storage/kkm_last_doc_name [13:38:20]save OK [13:38:20]Clear old archive folders... [13:38:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:38:20]tlvbuf is B6EA43D0 [13:38:20]SAM_PROTO_ClearQueue [13:38:20]wFMCommunicate request_size=4 [13:38:20]MH_SAM_APDU [13:38:20]CAPDU: 80 09 00 00 [13:38:20]Write to MH i2c: E2 08 00 98 16 80 09 00 00 00 00 00 00 20 [13:38:20]Write i2c OK [13:38:20]MH_I2C_Read... [13:38:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:20]Read from MH i2c: E2 [13:38:20]MH_I2C_Read... [13:38:20]Read from MH i2c: E2 03 00 [13:38:20]MH_I2C_Read... [13:38:20]Read from MH i2c: E2 03 00 98 16 00 90 00 22 [13:38:20]RAPDU: 90 00 [13:38:20]wFMCommunicate OK [13:38:20]SAM_PROTO_ClearQueue done [13:38:20]KKMCreateOFDPacket [13:38:20]OFDProtocolAddRootSTLVToBuf [13:38:20]FM_MakeSignedData [13:38:20]FM_MakeSignedData [13:38:20]SAM_PROTO_SignData [13:38:20]wFMCommunicate request_size=4 [13:38:20]MH_SAM_APDU [13:38:20]CAPDU: 80 0D 01 02 [13:38:20]Write to MH i2c: E2 08 00 99 16 80 0D 01 02 00 00 00 00 28 [13:38:20]Write i2c OK [13:38:20]MH_I2C_Read... [13:38:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:20]Read from MH i2c: E2 [13:38:20]MH_I2C_Read... [13:38:20]Read from MH i2c: E2 03 00 [13:38:20]MH_I2C_Read... [13:38:20]Read from MH i2c: E2 03 00 99 16 00 90 00 23 [13:38:20]RAPDU: 90 00 [13:38:20]wFMCommunicate OK [13:38:20]wFMCommunicate request_size=255 [13:38:20]MH_SAM_APDU [13:38:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 06 01 00 00 F4 03 04 00 CC F0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1C 13 03 00 35 04 06 00 CE 74 3F 9F [13:38:20]Write to MH i2c: E2 02 01 9A 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 06 01 00 00 F4 03 04 00 CC F0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1C 13 03 00 35 04 06 00 CE 74 3F 9F 00 00 F3 [13:38:20]Write i2c OK [13:38:20]MH_I2C_Read... [13:38:21]OFD Sender: No OFD packet to send [13:38:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:21]Read from MH i2c: E2 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: E2 03 00 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: E2 03 00 9A 16 00 90 00 24 [13:38:21]RAPDU: 90 00 [13:38:21]wFMCommunicate OK [13:38:21]wFMCommunicate request_size=7 [13:38:21]MH_SAM_APDU [13:38:21]CAPDU: 80 0D 02 02 02 F4 E4 [13:38:21]Write to MH i2c: E2 0A 00 9B 16 80 0D 02 02 02 00 F4 E4 00 00 07 [13:38:21]Write i2c OK [13:38:21]MH_I2C_Read... [13:38:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:21]Read from MH i2c: E2 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: E2 03 00 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: E2 03 00 9B 16 00 90 00 25 [13:38:21]RAPDU: 90 00 [13:38:21]wFMCommunicate OK [13:38:21]wFMCommunicate request_size=4 [13:38:21]MH_SAM_APDU [13:38:21]CAPDU: 80 0D 03 02 [13:38:21]Write to MH i2c: E2 08 00 9C 16 80 0D 03 02 00 00 00 00 2D [13:38:21]Write i2c OK [13:38:21]MH_I2C_Read... [13:38:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:21]Read from MH i2c: E2 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: E2 0B 00 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: E2 0B 00 9C 16 00 94 00 8C D3 89 64 F4 F7 90 00 F9 [13:38:21]RAPDU: 94 00 8C D3 89 64 F4 F7 90 00 [13:38:21]wFMCommunicate OK [13:38:21]SAM_PROTO_SignData done [13:38:21]FM_MakeSignedData done [13:38:21]CreateOFDProtocolMessage [13:38:21]wFMCommunicate request_size=4 [13:38:21]MH_SAM_APDU [13:38:21]CAPDU: 80 11 00 00 [13:38:21]Write to MH i2c: E2 08 00 9D 16 80 11 00 00 00 00 00 00 2D [13:38:21]Write i2c OK [13:38:21]MH_I2C_Read... [13:38:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:21]Read from MH i2c: E2 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: E2 17 00 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: E2 17 00 9D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 82 [13:38:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:38:21]wFMCommunicate OK [13:38:21]CreateOFDProtocolMessage done [13:38:21]OFDSenderStorePacket 201500 [13:38:21]StoreOFDPacket docnum=201500 [13:38:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 04 D5 04 01 0D 86 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 06 01 00 00 F4 03 04 00 CC F0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1C 13 03 00 35 04 06 00 CE 74 3F 9F F4 E4 94 00 8C D3 89 64 F4 F7 [13:38:21]CheckFolder [13:38:21]dirname=/storage/ofd_packets [13:38:21]CheckFolder done [13:38:21]ProducePacketName [13:38:21]name=ofd_packets/00201500 [13:38:21]NVStorageSaveData ofd_packets/00201500 [13:38:21]File name is /storage/ofd_packets/00201500 [13:38:21]Write 298 bytes [13:38:21]NVStorageSaveData done [13:38:21]OFDSenderStorePacket done [13:38:21]KKMCreateOFDPacket done [13:38:21]NVStorageSaveData kkm_last_timestamp [13:38:21]File name is /storage/kkm_last_timestamp [13:38:21]Write 4 bytes [13:38:21]NVStorageSaveData done [13:38:21]ExternCall_PrintAddStr [13:38:21]wPrintStart [13:38:21]Write to MH i2c: 01 00 00 9E 16 B4 [13:38:21]Write i2c OK [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: 01 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: 01 07 00 [13:38:21]MH_I2C_Read... [13:38:21]Read from MH i2c: 01 07 00 9E 16 00 00 00 00 00 FF 0F C9 [13:38:21]RasterBufferAndPrint [13:38:21]line Счет N : (1)449250 [13:38:21]line ИНН: 02508201610067 [13:38:21]line Контрольно-Кассовый Чек [13:38:21]line ПРОДАЖА [13:38:21]line ТРК (МРК, ГНК) : 43 [13:38:21]line Товар: 2710194210 [13:38:21]line ДТ-К-2 [13:38:21]line 6.570 * 76.20 [13:38:21]line = 500.63 [13:38:21]line НДС 12% НСП 1% [13:38:21]line > о реализуемом товаре [13:38:21]line ОКРУГЛЕНИЕ: -0.63 [13:38:21]line ИТОГО: 500.00 [13:38:21]line Внесено: 500.00 [13:38:21]line СДАЧА: 0.00 [13:38:21]line НСП 1% : 4.43 [13:38:21]line НДС 12% : 53.16 [13:38:21]line Наличными: 500.00 [13:38:21]line Безнал.: 0.00 [13:38:21]line Место: АЗС № 171 "Партнер Нефть" [13:38:21]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:38:21]line СНО: Общий режим [13:38:21]line Чек 262 26.10.2024 13:38 [13:38:21]line Смена: 543 ФФД: 1.0 [13:38:21]line ЗНМ: 0300000109 [13:38:21]line РНМ: 0000000000091777 [13:38:21]line Версия ККМ: 001 [13:38:21]line ФМ: 0000000000871756 [13:38:21]line ФД: 201500 [13:38:21]line ФПД: 226998678975716 [13:38:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133820&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201500&fm=226998678975716&tin=02508201610067®Number=0000000000091777&sum=50000 [13:38:21]OFD Sender: Processing packet 201500 [packets to send 112, broken 111] [13:38:21]ProducePacketName [13:38:21]name=ofd_packets/00201500 [13:38:21]OFD Sender: To server: pG, [13:38:21]CommunicateWithHost lk.salyk.kg:30040 [13:38:21]ConnectInit lk.salyk.kg [13:38:21]written 0, free lines is 4095 [13:38:21]Connected sock=10 [13:38:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 04 D5 04 01 0D 86 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 06 01 00 00 F4 03 04 00 CC F0 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1C 13 03 00 35 04 06 00 CE 74 3F 9F F4 E4 94 00 8C D3 89 64 F4 F7 [13:38:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F3 2D 47 00 36 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1C 13 03 00 F4 03 04 00 75 9C 1C 67 B6 04 01 00 00 F9 FB 88 65 FB 99 EA 1B [13:38:22]CommunicateWithHost err = 0 [13:38:22]CheckOFDResponse [13:38:22]1017 (14) - 77093643461234 [13:38:22]1041 (16) - 0000000000871756 [13:38:22]1040 (4) - 201500 [13:38:22]1012 (4) - 26.10.2024 07:38 [13:38:22]1206 (1) - 0 [13:38:22]OFD Sender: Remove packet 201500 [13:38:22]ProducePacketName [13:38:22]name=ofd_packets/00201500 [13:38:22]NVStorageDeleteData [13:38:22]Write to MH i2c: 01 00 00 C9 16 DF [13:38:22]Write i2c OK [13:38:22]MH_I2C_Read... [13:38:22]Read from MH i2c: 01 [13:38:22]MH_I2C_Read... [13:38:22]Read from MH i2c: 01 07 00 [13:38:22]MH_I2C_Read... [13:38:22]Read from MH i2c: 01 07 00 C9 16 00 00 00 00 00 AE 0C A0 [13:38:22]RasterBufferAndPrint [13:38:22]line [13:38:22]line [13:38:22]line [13:38:22]line [13:38:22]line [13:38:22]written 0, free lines is 3253 [13:38:22]MH_Cut [13:38:22]Write to MH i2c: D1 01 00 D0 16 01 B8 [13:38:22]Write i2c OK [13:38:22]MH_I2C_Read... [13:38:22]Read from MH i2c: D1 [13:38:22]MH_I2C_Read... [13:38:22]Read from MH i2c: D1 01 00 [13:38:22]MH_I2C_Read... [13:38:22]Read from MH i2c: D1 01 00 D0 16 00 B7 [13:38:22]Write to MH i2c: 01 00 00 D1 16 E7 [13:38:22]Write i2c OK [13:38:22]MH_I2C_Read... [13:38:22]OFD Sender: No OFD packet to send [13:38:23]*** Cut start [13:38:23]*** Purtial cut [13:38:23]*** Stage 1: CUTSNS_PIN = 1 [13:38:23]Read from MH i2c: 01 [13:38:23]MH_I2C_Read... [13:38:23]*** Stop cut motor [13:38:23]*** Cut end [13:38:23]Read from MH i2c: 01 07 00 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: 01 07 00 D1 16 00 00 00 00 00 FF 0F FC [13:38:23]process_action close_receipt done [13:38:23]requested_data is exist [13:38:23]produce_requested_data [13:38:23]requested_item fm.sn is exist - process it [13:38:23]wFMCommunicate request_size=4 [13:38:23]MH_SAM_APDU [13:38:23]CAPDU: 80 11 00 00 [13:38:23]Write to MH i2c: E2 08 00 D2 16 80 11 00 00 00 00 00 00 62 [13:38:23]Write i2c OK [13:38:23]MH_I2C_Read... [13:38:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:23]Read from MH i2c: E2 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: E2 17 00 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: E2 17 00 D2 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B7 [13:38:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:38:23]wFMCommunicate OK [13:38:23]requested_item fd.num is exist - process it [13:38:23]SAM_PROTO_GetFieldsCounters [13:38:23]wFMCommunicate request_size=4 [13:38:23]MH_SAM_APDU [13:38:23]CAPDU: 80 13 00 00 [13:38:23]Write to MH i2c: E2 08 00 D3 16 80 13 00 00 00 00 00 00 65 [13:38:23]Write i2c OK [13:38:23]MH_I2C_Read... [13:38:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:23]Read from MH i2c: E2 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: E2 62 00 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: E2 62 00 D3 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1C 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 F6 [13:38:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1C 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:38:23]wFMCommunicate OK [13:38:23]SAM_PROTO_GetFieldsCounters done [13:38:23]requested_item shift.num is exist - process it [13:38:23]requested_item shift.opened is exist - process it [13:38:23]req_shift_opened [13:38:23]FM_GetShiftState [13:38:23]SAM_PROTO_GetShiftState [13:38:23]wFMCommunicate request_size=4 [13:38:23]MH_SAM_APDU [13:38:23]CAPDU: 80 13 01 00 [13:38:23]Write to MH i2c: E2 08 00 D4 16 80 13 01 00 00 00 00 00 67 [13:38:23]Write i2c OK [13:38:23]MH_I2C_Read... [13:38:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:23]Read from MH i2c: E2 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: E2 0E 00 [13:38:23]MH_I2C_Read... [13:38:23]Read from MH i2c: E2 0E 00 D4 16 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 76 [13:38:23]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:38:23]wFMCommunicate OK [13:38:23]SAM_PROTO_GetShiftState done [13:38:23]FM_GetShiftState done [13:38:23]req_shift_opened done [13:38:23]requested_item shift.open_date is exist - process it [13:38:23]req_shift_open_date [13:38:23]req_shift_open_date done [13:38:23]produce_requested_data done [13:38:23]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201500,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:38:23]process_action_free close_receipt [13:38:23]json_value_free [13:38:23]json_value_free done [13:38:23]process_json_proto returns [13:38:23]Send response to host [13:38:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201500,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:38:23]free response buf [13:38:23]execute_script done [13:38:23]execute_script returns [13:38:23]free content buf [13:38:23]Sock 8.Close socket [13:38:23]Sock 8.Thread stoped [13:38:27]OFD Sender: No OFD packet to send [13:38:32]OFD Sender: No OFD packet to send [13:38:37]OFD Sender: No OFD packet to send [13:38:42]OFD Sender: No OFD packet to send [13:38:47]OFD Sender: No OFD packet to send [13:38:52]OFD Sender: No OFD packet to send [13:38:57]OFD Sender: No OFD packet to send [13:39:02]OFD Sender: No OFD packet to send [13:39:07]OFD Sender: No OFD packet to send [13:39:12]OFD Sender: No OFD packet to send [13:39:17]OFD Sender: No OFD packet to send [13:39:22]OFD Sender: No OFD packet to send [13:39:27]OFD Sender: No OFD packet to send [13:39:31]accept exits with 9 [13:39:31]New connection [13:39:31]New thread 3066834276 created [13:39:31]Thread 3066690916 joined [13:39:31]Waiting for new connection... [13:39:31] Sock 9.Parse request [13:39:31]Sock 9.Check first char [13:39:31]Sock 9.First char is OK [13:39:31]request: POST /json_proto HTTP/1.0 [13:39:31]Method: POST [13:39:31]URL: /json_proto [13:39:31]Method is POST - this is cgi request [13:39:31]url: /json_proto [13:39:31]query_string will be loaded in cgi processing [13:39:31]execute_cgi json_proto POST (null) [13:39:31]execute_cgi path=json_proto method=POST [13:39:31]POST find Content-Length [13:39:31]Host: 172.17.63.195:8080 [13:39:31]Content-Length: 682 [13:39:31]Content-Type: application/json [13:39:31] [13:39:31]POST finish read [13:39:31]Found Content-Length = 682 [13:39:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:39:31]execute_script... [13:39: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)449251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:39:31]POST & json_proto [13:39:31]process_json_proto [13:39:31]json parsed OK: [13:39:31]protocol is kg_v1.0 [13:39:31]action value=close_receipt [13:39:31]process_action close_receipt [13:39:31]cmd_close_receipt [13:39:31]MH_GetDate [13:39:31]Write to MH i2c: F0 00 00 D5 16 DA [13:39:31]Write i2c OK [13:39:31]MH_I2C_Read... [13:39:31]Read from MH i2c: F0 [13:39:31]MH_I2C_Read... [13:39:31]Read from MH i2c: F0 09 00 [13:39:31]MH_I2C_Read... [13:39:31]Read from MH i2c: F0 09 00 D5 16 00 14 F1 1C 67 68 46 19 67 99 [13:39:31]GetLastDocTimeStamp 1729949900 [13:39:31]current date 1729949972 [13:39:31]FM_GetShiftState [13:39:31]SAM_PROTO_GetShiftState [13:39:31]wFMCommunicate request_size=4 [13:39:31]MH_SAM_APDU [13:39:31]CAPDU: 80 13 01 00 [13:39:31]Write to MH i2c: E2 08 00 D6 16 80 13 01 00 00 00 00 00 69 [13:39:31]Write i2c OK [13:39:31]MH_I2C_Read... [13:39:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:31]Read from MH i2c: E2 [13:39:31]MH_I2C_Read... [13:39:31]Read from MH i2c: E2 0E 00 [13:39:31]MH_I2C_Read... [13:39:31]Read from MH i2c: E2 0E 00 D6 16 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 78 [13:39:31]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:39:31]wFMCommunicate OK [13:39:31]SAM_PROTO_GetShiftState done [13:39:31]FM_GetShiftState done [13:39:31]opened in 1729900879 [13:39:31]opened+sec_in_day 1729987279 [13:39:31]quantity*price = 100015 [13:39:31]sum+1 = 100017 [13:39:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 263 26.10.2024 13:39 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201501 ФПД: 176479138445075 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133932&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201501&fm=176479138445075&tin=02508201610067®Number=0000000000091777&sum=100000 [13:39:33]StoreToDocumentArchive [13:39:33]shift 543 fd 201501 [13:39:33]save to /storage/0543/doc_00201501 [13:39:33]save last doc name /storage/0543/doc_00201501 to /storage/kkm_last_doc_name [13:39:33]save OK [13:39:33]Clear old archive folders... [13:39:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:39:33]tlvbuf is 01F8AA70 [13:39:33]SAM_PROTO_ClearQueue [13:39:33]wFMCommunicate request_size=4 [13:39:33]MH_SAM_APDU [13:39:33]CAPDU: 80 09 00 00 [13:39:33]Write to MH i2c: E2 08 00 E3 16 80 09 00 00 00 00 00 00 6B [13:39:33]Write i2c OK [13:39:33]MH_I2C_Read... [13:39:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:39:33]Read from MH i2c: E2 [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: E2 03 00 [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: E2 03 00 E3 16 00 90 00 6D [13:39:33]RAPDU: 90 00 [13:39:33]wFMCommunicate OK [13:39:33]SAM_PROTO_ClearQueue done [13:39:33]KKMCreateOFDPacket [13:39:33]OFDProtocolAddRootSTLVToBuf [13:39:33]FM_MakeSignedData [13:39:33]FM_MakeSignedData [13:39:33]SAM_PROTO_SignData [13:39:33]wFMCommunicate request_size=4 [13:39:33]MH_SAM_APDU [13:39:33]CAPDU: 80 0D 01 02 [13:39:33]Write to MH i2c: E2 08 00 E4 16 80 0D 01 02 00 00 00 00 73 [13:39:33]Write i2c OK [13:39:33]MH_I2C_Read... [13:39:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:39:33]Read from MH i2c: E2 [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: E2 03 00 [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: E2 03 00 E4 16 00 90 00 6E [13:39:33]RAPDU: 90 00 [13:39:33]wFMCommunicate OK [13:39:33]wFMCommunicate request_size=255 [13:39:33]MH_SAM_APDU [13:39: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 32 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 07 01 00 00 F4 03 04 00 14 F1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1D 13 03 00 35 04 06 00 A0 [13:39:33]Write to MH i2c: E2 02 01 E5 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 32 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 07 01 00 00 F4 03 04 00 14 F1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1D 13 03 00 35 04 06 00 A0 00 00 85 [13:39:33]Write i2c OK [13:39:33]MH_I2C_Read... [13:39:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:33]Read from MH i2c: E2 [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: E2 03 00 [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: E2 03 00 E5 16 00 90 00 6F [13:39:33]RAPDU: 90 00 [13:39:33]wFMCommunicate OK [13:39:33]wFMCommunicate request_size=10 [13:39:33]MH_SAM_APDU [13:39:33]CAPDU: 80 0D 02 02 05 81 C0 5B 77 13 [13:39:33]Write to MH i2c: E2 0D 00 E6 16 80 0D 02 02 05 00 81 C0 5B 77 13 00 00 A6 [13:39:33]Write i2c OK [13:39:33]MH_I2C_Read... [13:39:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:33]Read from MH i2c: E2 [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: E2 03 00 [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: E2 03 00 E6 16 00 90 00 70 [13:39:33]RAPDU: 90 00 [13:39:33]wFMCommunicate OK [13:39:33]wFMCommunicate request_size=4 [13:39:33]MH_SAM_APDU [13:39:33]CAPDU: 80 0D 03 02 [13:39:33]Write to MH i2c: E2 08 00 E7 16 80 0D 03 02 00 00 00 00 78 [13:39:33]Write i2c OK [13:39:33]MH_I2C_Read... [13:39:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:39:33]Read from MH i2c: E2 [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: E2 0B 00 [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: E2 0B 00 E7 16 00 83 D1 09 86 4A 6B B6 69 90 00 30 [13:39:33]RAPDU: 83 D1 09 86 4A 6B B6 69 90 00 [13:39:33]wFMCommunicate OK [13:39:33]SAM_PROTO_SignData done [13:39:33]FM_MakeSignedData done [13:39:33]CreateOFDProtocolMessage [13:39:33]wFMCommunicate request_size=4 [13:39:33]MH_SAM_APDU [13:39:33]CAPDU: 80 11 00 00 [13:39:33]Write to MH i2c: E2 08 00 E8 16 80 11 00 00 00 00 00 00 78 [13:39:33]Write i2c OK [13:39:33]MH_I2C_Read... [13:39:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:33]Read from MH i2c: E2 [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: E2 17 00 [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: E2 17 00 E8 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CD [13:39:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:39:33]wFMCommunicate OK [13:39:33]CreateOFDProtocolMessage done [13:39:33]OFDSenderStorePacket 201501 [13:39:33]StoreOFDPacket docnum=201501 [13:39:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E0 25 07 01 5C 0F 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 32 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 07 01 00 00 F4 03 04 00 14 F1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1D 13 03 00 35 04 06 00 A0 81 C0 5B 77 13 83 D1 09 86 4A 6B B6 69 [13:39:33]CheckFolder [13:39:33]dirname=/storage/ofd_packets [13:39:33]CheckFolder done [13:39:33]ProducePacketName [13:39:33]name=ofd_packets/00201501 [13:39:33]NVStorageSaveData ofd_packets/00201501 [13:39:33]File name is /storage/ofd_packets/00201501 [13:39:33]Write 301 bytes [13:39:33]NVStorageSaveData done [13:39:33]OFDSenderStorePacket done [13:39:33]KKMCreateOFDPacket done [13:39:33]NVStorageSaveData kkm_last_timestamp [13:39:33]File name is /storage/kkm_last_timestamp [13:39:33]Write 4 bytes [13:39:33]NVStorageSaveData done [13:39:33]ExternCall_PrintAddStr [13:39:33]wPrintStart [13:39:33]Write to MH i2c: 01 00 00 E9 16 FF [13:39:33]Write i2c OK [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: 01 [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: 01 07 00 [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: 01 07 00 E9 16 00 00 00 00 00 FF 0F 14 [13:39:33]RasterBufferAndPrint [13:39:33]line Счет N : (1)449251 [13:39:33]line ИНН: 02508201610067 [13:39:33]line Контрольно-Кассовый Чек [13:39:33]line ПРОДАЖА [13:39:33]line ТРК (МРК, ГНК) : 62 [13:39:33]line Товар: 2710124130 [13:39:33]line Аи-92-К-2 [13:39:33]line 14.950 * 66.90 [13:39:33]line = 1000.16 [13:39:33]line НДС 12% НСП 1% [13:39:33]line > о реализуемом товаре [13:39:33]line ОКРУГЛЕНИЕ: -0.16 [13:39:33]line ИТОГО: 1000.00 [13:39:33]line Внесено: 1000.00 [13:39:33]line СДАЧА: 0.00 [13:39:33]line НСП 1% : 8.85 [13:39:33]line НДС 12% : 106.21 [13:39:33]line Наличными: 1000.00 [13:39:33]line Безнал.: 0.00 [13:39:33]line Место: АЗС № 171 "Партнер Нефть" [13:39:33]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:39:33]line СНО: Общий режим [13:39:33]line Чек 263 26.10.2024 13:39 [13:39:33]line Смена: 543 ФФД: 1.0 [13:39:33]line ЗНМ: 0300000109 [13:39:33]line РНМ: 0000000000091777 [13:39:33]line Версия ККМ: 001 [13:39:33]line ФМ: 0000000000871756 [13:39:33]line ФД: 201501 [13:39:33]line ФПД: 176479138445075 [13:39:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133932&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201501&fm=176479138445075&tin=02508201610067®Number=0000000000091777&sum=100000 [13:39:33]OFD Sender: Processing packet 201501 [packets to send 112, broken 111] [13:39:33]ProducePacketName [13:39:33]name=ofd_packets/00201501 [13:39:33]OFD Sender: To server: pG, [13:39:33]CommunicateWithHost lk.salyk.kg:30040 [13:39:33]ConnectInit lk.salyk.kg [13:39:33]written 0, free lines is 4095 [13:39:34]Connected sock=10 [13:39:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E0 25 07 01 5C 0F 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 32 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 07 01 00 00 F4 03 04 00 14 F1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1D 13 03 00 35 04 06 00 A0 81 C0 5B 77 13 83 D1 09 86 4A 6B B6 69 [13:39:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 CD AE 47 00 8F A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1D 13 03 00 F4 03 04 00 BD 9C 1C 67 B6 04 01 00 00 BF D9 B1 4E F7 09 CD 5F [13:39:34]CommunicateWithHost err = 0 [13:39:34]CheckOFDResponse [13:39:34]1017 (14) - 77093643461234 [13:39:34]1041 (16) - 0000000000871756 [13:39:34]1040 (4) - 201501 [13:39:34]1012 (4) - 26.10.2024 07:39 [13:39:34]1206 (1) - 0 [13:39:34]OFD Sender: Remove packet 201501 [13:39:34]ProducePacketName [13:39:34]name=ofd_packets/00201501 [13:39:34]NVStorageDeleteData [13:39:34]Write to MH i2c: 01 00 00 14 17 2B [13:39:34]Write i2c OK [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: 01 [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: 01 07 00 [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: 01 07 00 14 17 00 00 00 00 00 9B 0C D9 [13:39:34]RasterBufferAndPrint [13:39:34]line [13:39:34]line [13:39:34]line [13:39:34]line [13:39:34]line [13:39:34]written 0, free lines is 3233 [13:39:34]MH_Cut [13:39:34]Write to MH i2c: D1 01 00 1B 17 01 04 [13:39:34]Write i2c OK [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: D1 [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: D1 01 00 [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: D1 01 00 1B 17 00 03 [13:39:34]Write to MH i2c: 01 00 00 1C 17 33 [13:39:34]Write i2c OK [13:39:34]MH_I2C_Read... [13:39:34]OFD Sender: No OFD packet to send [13:39:35]*** Cut start [13:39:35]*** Purtial cut [13:39:35]*** Stage 1: CUTSNS_PIN = 1 [13:39:35]Read from MH i2c: 01 [13:39:35]MH_I2C_Read... [13:39:35]*** Stop cut motor [13:39:35]*** Cut end [13:39:35]Read from MH i2c: 01 07 00 [13:39:35]MH_I2C_Read... [13:39:35]Read from MH i2c: 01 07 00 1C 17 00 00 00 00 00 FF 0F 48 [13:39:35]process_action close_receipt done [13:39:35]requested_data is exist [13:39:35]produce_requested_data [13:39:35]requested_item fm.sn is exist - process it [13:39:35]wFMCommunicate request_size=4 [13:39:35]MH_SAM_APDU [13:39:35]CAPDU: 80 11 00 00 [13:39:35]Write to MH i2c: E2 08 00 1D 17 80 11 00 00 00 00 00 00 AE [13:39:35]Write i2c OK [13:39:35]MH_I2C_Read... [13:39:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:35]Read from MH i2c: E2 [13:39:35]MH_I2C_Read... [13:39:35]Read from MH i2c: E2 17 00 [13:39:35]MH_I2C_Read... [13:39:35]Read from MH i2c: E2 17 00 1D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 03 [13:39:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:39:35]wFMCommunicate OK [13:39:35]requested_item fd.num is exist - process it [13:39:35]SAM_PROTO_GetFieldsCounters [13:39:35]wFMCommunicate request_size=4 [13:39:35]MH_SAM_APDU [13:39:35]CAPDU: 80 13 00 00 [13:39:35]Write to MH i2c: E2 08 00 1E 17 80 13 00 00 00 00 00 00 B1 [13:39:35]Write i2c OK [13:39:35]MH_I2C_Read... [13:39:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:39:35]Read from MH i2c: E2 [13:39:35]MH_I2C_Read... [13:39:35]Read from MH i2c: E2 62 00 [13:39:35]MH_I2C_Read... [13:39:35]Read from MH i2c: E2 62 00 1E 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1D 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 46 [13:39:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1D 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:39:35]wFMCommunicate OK [13:39:35]SAM_PROTO_GetFieldsCounters done [13:39:35]requested_item shift.num is exist - process it [13:39:35]requested_item shift.opened is exist - process it [13:39:35]req_shift_opened [13:39:35]FM_GetShiftState [13:39:35]SAM_PROTO_GetShiftState [13:39:35]wFMCommunicate request_size=4 [13:39:35]MH_SAM_APDU [13:39:35]CAPDU: 80 13 01 00 [13:39:35]Write to MH i2c: E2 08 00 1F 17 80 13 01 00 00 00 00 00 B3 [13:39:35]Write i2c OK [13:39:35]MH_I2C_Read... [13:39:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:35]Read from MH i2c: E2 [13:39:35]MH_I2C_Read... [13:39:35]Read from MH i2c: E2 0E 00 [13:39:35]MH_I2C_Read... [13:39:35]Read from MH i2c: E2 0E 00 1F 17 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C2 [13:39:35]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:39:35]wFMCommunicate OK [13:39:35]SAM_PROTO_GetShiftState done [13:39:35]FM_GetShiftState done [13:39:35]req_shift_opened done [13:39:35]requested_item shift.open_date is exist - process it [13:39:35]req_shift_open_date [13:39:35]req_shift_open_date done [13:39:35]produce_requested_data done [13:39:35]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201501,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:39:35]process_action_free close_receipt [13:39:35]json_value_free [13:39:35]json_value_free done [13:39:35]process_json_proto returns [13:39:35]Send response to host [13:39:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201501,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:39:35]free response buf [13:39:35]execute_script done [13:39:35]execute_script returns [13:39:35]free content buf [13:39:35]Sock 9.Close socket [13:39:35]Sock 9.Thread stoped [13:39:39]OFD Sender: No OFD packet to send [13:39:44]OFD Sender: No OFD packet to send [13:39:49]OFD Sender: No OFD packet to send [13:39:54]OFD Sender: No OFD packet to send [13:39:59]OFD Sender: No OFD packet to send [13:40:04]OFD Sender: No OFD packet to send [13:40:09]OFD Sender: No OFD packet to send [13:40:14]OFD Sender: No OFD packet to send [13:40:19]OFD Sender: No OFD packet to send [13:40:20]accept exits with 8 [13:40:20]New connection [13:40:20]New thread 3066690916 created [13:40:20]Thread 3066834276 joined [13:40:20]Waiting for new connection... [13:40:20] Sock 8.Parse request [13:40:20]Sock 8.Check first char [13:40:20]Sock 8.First char is OK [13:40:20]request: POST /json_proto HTTP/1.0 [13:40:20]Method: POST [13:40:20]URL: /json_proto [13:40:20]Method is POST - this is cgi request [13:40:20]url: /json_proto [13:40:20]query_string will be loaded in cgi processing [13:40:20]execute_cgi json_proto POST (null) [13:40:20]execute_cgi path=json_proto method=POST [13:40:20]POST find Content-Length [13:40:20]Host: 172.17.63.195:8080 [13:40:20]Content-Length: 682 [13:40:20]Content-Type: application/json [13:40:20] [13:40:20]POST finish read [13:40:20]Found Content-Length = 682 [13:40:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:40:20]execute_script... [13:40: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)449252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:40:20]POST & json_proto [13:40:20]process_json_proto [13:40:20]json parsed OK: [13:40:20]protocol is kg_v1.0 [13:40:20]action value=close_receipt [13:40:20]process_action close_receipt [13:40:20]cmd_close_receipt [13:40:20]MH_GetDate [13:40:20]Write to MH i2c: F0 00 00 20 17 26 [13:40:20]Write i2c OK [13:40:20]MH_I2C_Read... [13:40:20]Read from MH i2c: F0 [13:40:20]MH_I2C_Read... [13:40:20]Read from MH i2c: F0 09 00 [13:40:20]MH_I2C_Read... [13:40:20]Read from MH i2c: F0 09 00 20 17 00 45 F1 1C 67 68 46 19 67 16 [13:40:20]GetLastDocTimeStamp 1729949972 [13:40:20]current date 1729950021 [13:40:20]FM_GetShiftState [13:40:20]SAM_PROTO_GetShiftState [13:40:20]wFMCommunicate request_size=4 [13:40:20]MH_SAM_APDU [13:40:20]CAPDU: 80 13 01 00 [13:40:20]Write to MH i2c: E2 08 00 21 17 80 13 01 00 00 00 00 00 B5 [13:40:20]Write i2c OK [13:40:20]MH_I2C_Read... [13:40:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:20]Read from MH i2c: E2 [13:40:20]MH_I2C_Read... [13:40:20]Read from MH i2c: E2 0E 00 [13:40:20]MH_I2C_Read... [13:40:20]Read from MH i2c: E2 0E 00 21 17 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C4 [13:40:20]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:40:20]wFMCommunicate OK [13:40:20]SAM_PROTO_GetShiftState done [13:40:20]FM_GetShiftState done [13:40:20]opened in 1729900879 [13:40:20]opened+sec_in_day 1729987279 [13:40:20]quantity*price = 100015 [13:40:20]sum+1 = 100017 [13:40:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 264 26.10.2024 13:40 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201502 ФПД: 132336823798797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134021&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201502&fm=132336823798797&tin=02508201610067®Number=0000000000091777&sum=100000 [13:40:21]StoreToDocumentArchive [13:40:21]shift 543 fd 201502 [13:40:21]save to /storage/0543/doc_00201502 [13:40:21]save last doc name /storage/0543/doc_00201502 to /storage/kkm_last_doc_name [13:40:21]save OK [13:40:21]Clear old archive folders... [13:40:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:40:21]tlvbuf is 01F73830 [13:40:21]SAM_PROTO_ClearQueue [13:40:21]wFMCommunicate request_size=4 [13:40:21]MH_SAM_APDU [13:40:21]CAPDU: 80 09 00 00 [13:40:21]Write to MH i2c: E2 08 00 2E 17 80 09 00 00 00 00 00 00 B7 [13:40:21]Write i2c OK [13:40:21]MH_I2C_Read... [13:40:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:21]Read from MH i2c: E2 [13:40:21]MH_I2C_Read... [13:40:21]Read from MH i2c: E2 03 00 [13:40:21]MH_I2C_Read... [13:40:21]Read from MH i2c: E2 03 00 2E 17 00 90 00 B9 [13:40:21]RAPDU: 90 00 [13:40:21]wFMCommunicate OK [13:40:21]SAM_PROTO_ClearQueue done [13:40:21]KKMCreateOFDPacket [13:40:21]OFDProtocolAddRootSTLVToBuf [13:40:21]FM_MakeSignedData [13:40:21]FM_MakeSignedData [13:40:21]SAM_PROTO_SignData [13:40:21]wFMCommunicate request_size=4 [13:40:21]MH_SAM_APDU [13:40:21]CAPDU: 80 0D 01 02 [13:40:21]Write to MH i2c: E2 08 00 2F 17 80 0D 01 02 00 00 00 00 BF [13:40:21]Write i2c OK [13:40:21]MH_I2C_Read... [13:40:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:21]Read from MH i2c: E2 [13:40:21]MH_I2C_Read... [13:40:21]Read from MH i2c: E2 03 00 [13:40:21]MH_I2C_Read... [13:40:21]Read from MH i2c: E2 03 00 2F 17 00 90 00 BA [13:40:21]RAPDU: 90 00 [13:40:21]wFMCommunicate OK [13:40:21]wFMCommunicate request_size=255 [13:40:21]MH_SAM_APDU [13:40: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 32 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 08 01 00 00 F4 03 04 00 45 F1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1E 13 03 00 35 04 06 00 78 [13:40:21]Write to MH i2c: E2 02 01 30 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 32 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 08 01 00 00 F4 03 04 00 45 F1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1E 13 03 00 35 04 06 00 78 00 00 DC [13:40:21]Write i2c OK [13:40:21]MH_I2C_Read... [13:40:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:22]Read from MH i2c: E2 [13:40:22]MH_I2C_Read... [13:40:22]Read from MH i2c: E2 03 00 [13:40:22]MH_I2C_Read... [13:40:22]Read from MH i2c: E2 03 00 30 17 00 90 00 BB [13:40:22]RAPDU: 90 00 [13:40:22]wFMCommunicate OK [13:40:22]wFMCommunicate request_size=10 [13:40:22]MH_SAM_APDU [13:40:22]CAPDU: 80 0D 02 02 05 5C 11 5F 8C 0D [13:40:22]Write to MH i2c: E2 0D 00 31 17 80 0D 02 02 05 00 5C 11 5F 8C 0D 00 00 31 [13:40:22]Write i2c OK [13:40:22]MH_I2C_Read... [13:40:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:22]Read from MH i2c: E2 [13:40:22]MH_I2C_Read... [13:40:22]Read from MH i2c: E2 03 00 [13:40:22]MH_I2C_Read... [13:40:22]Read from MH i2c: E2 03 00 31 17 00 90 00 BC [13:40:22]RAPDU: 90 00 [13:40:22]wFMCommunicate OK [13:40:22]wFMCommunicate request_size=4 [13:40:22]MH_SAM_APDU [13:40:22]CAPDU: 80 0D 03 02 [13:40:22]Write to MH i2c: E2 08 00 32 17 80 0D 03 02 00 00 00 00 C4 [13:40:22]Write i2c OK [13:40:22]MH_I2C_Read... [13:40:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:40:22]Read from MH i2c: E2 [13:40:22]MH_I2C_Read... [13:40:22]Read from MH i2c: E2 0B 00 [13:40:22]MH_I2C_Read... [13:40:22]Read from MH i2c: E2 0B 00 32 17 00 A1 C1 94 DF 59 95 82 59 90 00 63 [13:40:22]RAPDU: A1 C1 94 DF 59 95 82 59 90 00 [13:40:22]wFMCommunicate OK [13:40:22]SAM_PROTO_SignData done [13:40:22]FM_MakeSignedData done [13:40:22]CreateOFDProtocolMessage [13:40:22]wFMCommunicate request_size=4 [13:40:22]MH_SAM_APDU [13:40:22]CAPDU: 80 11 00 00 [13:40:22]Write to MH i2c: E2 08 00 33 17 80 11 00 00 00 00 00 00 C4 [13:40:22]Write i2c OK [13:40:22]MH_I2C_Read... [13:40:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:22]Read from MH i2c: E2 [13:40:22]MH_I2C_Read... [13:40:22]Read from MH i2c: E2 17 00 [13:40:22]MH_I2C_Read... [13:40:22]Read from MH i2c: E2 17 00 33 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 19 [13:40:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:40:22]wFMCommunicate OK [13:40:22]CreateOFDProtocolMessage done [13:40:22]OFDSenderStorePacket 201502 [13:40:22]StoreOFDPacket docnum=201502 [13:40:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 39 AF 07 01 78 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 08 01 00 00 F4 03 04 00 45 F1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1E 13 03 00 35 04 06 00 78 5C 11 5F 8C 0D A1 C1 94 DF 59 95 82 59 [13:40:22]CheckFolder [13:40:22]dirname=/storage/ofd_packets [13:40:22]CheckFolder done [13:40:22]ProducePacketName [13:40:22]name=ofd_packets/00201502 [13:40:22]NVStorageSaveData ofd_packets/00201502 [13:40:22]File name is /storage/ofd_packets/00201502 [13:40:22]Write 301 bytes [13:40:22]NVStorageSaveData done [13:40:22]OFDSenderStorePacket done [13:40:22]KKMCreateOFDPacket done [13:40:22]NVStorageSaveData kkm_last_timestamp [13:40:22]File name is /storage/kkm_last_timestamp [13:40:22]Write 4 bytes [13:40:22]NVStorageSaveData done [13:40:22]ExternCall_PrintAddStr [13:40:22]wPrintStart [13:40:22]Write to MH i2c: 01 00 00 34 17 4B [13:40:22]Write i2c OK [13:40:22]MH_I2C_Read... [13:40:22]Read from MH i2c: 01 [13:40:22]MH_I2C_Read... [13:40:22]Read from MH i2c: 01 07 00 [13:40:22]MH_I2C_Read... [13:40:22]Read from MH i2c: 01 07 00 34 17 00 00 00 00 00 FF 0F 60 [13:40:22]RasterBufferAndPrint [13:40:22]line Счет N : (1)449252 [13:40:22]line ИНН: 02508201610067 [13:40:22]line Контрольно-Кассовый Чек [13:40:22]line ПРОДАЖА [13:40:22]line ТРК (МРК, ГНК) : 31 [13:40:22]line Товар: 2710124130 [13:40:22]line Аи-92-К-2 [13:40:22]line 14.950 * 66.90 [13:40:22]line = 1000.16 [13:40:22]line НДС 12% НСП 1% [13:40:22]line > о реализуемом товаре [13:40:22]line ОКРУГЛЕНИЕ: -0.16 [13:40:22]line ИТОГО: 1000.00 [13:40:22]line Внесено: 1000.00 [13:40:22]line СДАЧА: 0.00 [13:40:22]line НСП 1% : 8.85 [13:40:22]line НДС 12% : 106.21 [13:40:22]line Наличными: 1000.00 [13:40:22]line Безнал.: 0.00 [13:40:22]line Место: АЗС № 171 "Партнер Нефть" [13:40:22]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:40:22]line СНО: Общий режим [13:40:22]line Чек 264 26.10.2024 13:40 [13:40:22]line Смена: 543 ФФД: 1.0 [13:40:22]line ЗНМ: 0300000109 [13:40:22]line РНМ: 0000000000091777 [13:40:22]line Версия ККМ: 001 [13:40:22]line ФМ: 0000000000871756 [13:40:22]line ФД: 201502 [13:40:22]line ФПД: 132336823798797 [13:40:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134021&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201502&fm=132336823798797&tin=02508201610067®Number=0000000000091777&sum=100000 [13:40:22]OFD Sender: Processing packet 201502 [packets to send 112, broken 111] [13:40:22]ProducePacketName [13:40:22]name=ofd_packets/00201502 [13:40:22]OFD Sender: To server: pG, [13:40:22]CommunicateWithHost lk.salyk.kg:30040 [13:40:22]ConnectInit lk.salyk.kg [13:40:22]written 0, free lines is 4095 [13:40:22]Connected sock=10 [13:40:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 39 AF 07 01 78 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 08 01 00 00 F4 03 04 00 45 F1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1E 13 03 00 35 04 06 00 78 5C 11 5F 8C 0D A1 C1 94 DF 59 95 82 59 [13:40:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 5F 09 47 00 45 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1E 13 03 00 F4 03 04 00 EE 9C 1C 67 B6 04 01 00 00 A6 5E 32 44 D4 6A 0A 4F [13:40:22]CommunicateWithHost err = 0 [13:40:22]CheckOFDResponse [13:40:22]1017 (14) - 77093643461234 [13:40:23]1041 (16) - 0000000000871756 [13:40:23]1040 (4) - 201502 [13:40:23]1012 (4) - 26.10.2024 07:40 [13:40:23]1206 (1) - 0 [13:40:23]OFD Sender: Remove packet 201502 [13:40:23]ProducePacketName [13:40:23]name=ofd_packets/00201502 [13:40:23]NVStorageDeleteData [13:40:23]Write to MH i2c: 01 00 00 5F 17 76 [13:40:23]Write i2c OK [13:40:23]MH_I2C_Read... [13:40:23]Read from MH i2c: 01 [13:40:23]MH_I2C_Read... [13:40:23]Read from MH i2c: 01 07 00 [13:40:23]MH_I2C_Read... [13:40:23]Read from MH i2c: 01 07 00 5F 17 00 00 00 00 00 A0 0C 29 [13:40:23]RasterBufferAndPrint [13:40:23]line [13:40:23]line [13:40:23]line [13:40:23]line [13:40:23]line [13:40:23]written 0, free lines is 3236 [13:40:23]MH_Cut [13:40:23]Write to MH i2c: D1 01 00 66 17 01 4F [13:40:23]Write i2c OK [13:40:23]MH_I2C_Read... [13:40:23]Read from MH i2c: D1 [13:40:23]MH_I2C_Read... [13:40:23]Read from MH i2c: D1 01 00 [13:40:23]MH_I2C_Read... [13:40:23]Read from MH i2c: D1 01 00 66 17 00 4E [13:40:23]Write to MH i2c: 01 00 00 67 17 7E [13:40:23]Write i2c OK [13:40:23]MH_I2C_Read... [13:40:23]OFD Sender: No OFD packet to send [13:40:24]*** Cut start [13:40:24]*** Purtial cut [13:40:24]*** Stage 1: CUTSNS_PIN = 1 [13:40:24]Read from MH i2c: 01 [13:40:24]MH_I2C_Read... [13:40:24]*** Stop cut motor [13:40:24]*** Cut end [13:40:24]Read from MH i2c: 01 07 00 [13:40:24]MH_I2C_Read... [13:40:24]Read from MH i2c: 01 07 00 67 17 00 00 00 00 00 FF 0F 93 [13:40:24]process_action close_receipt done [13:40:24]requested_data is exist [13:40:24]produce_requested_data [13:40:24]requested_item fm.sn is exist - process it [13:40:24]wFMCommunicate request_size=4 [13:40:24]MH_SAM_APDU [13:40:24]CAPDU: 80 11 00 00 [13:40:24]Write to MH i2c: E2 08 00 68 17 80 11 00 00 00 00 00 00 F9 [13:40:24]Write i2c OK [13:40:24]MH_I2C_Read... [13:40:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:24]Read from MH i2c: E2 [13:40:24]MH_I2C_Read... [13:40:24]Read from MH i2c: E2 17 00 [13:40:24]MH_I2C_Read... [13:40:24]Read from MH i2c: E2 17 00 68 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4E [13:40:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:40:24]wFMCommunicate OK [13:40:24]requested_item fd.num is exist - process it [13:40:24]SAM_PROTO_GetFieldsCounters [13:40:24]wFMCommunicate request_size=4 [13:40:24]MH_SAM_APDU [13:40:24]CAPDU: 80 13 00 00 [13:40:24]Write to MH i2c: E2 08 00 69 17 80 13 00 00 00 00 00 00 FC [13:40:24]Write i2c OK [13:40:24]MH_I2C_Read... [13:40:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:24]Read from MH i2c: E2 [13:40:24]MH_I2C_Read... [13:40:24]Read from MH i2c: E2 62 00 [13:40:24]MH_I2C_Read... [13:40:24]Read from MH i2c: E2 62 00 69 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1E 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 95 [13:40:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1E 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:40:24]wFMCommunicate OK [13:40:24]SAM_PROTO_GetFieldsCounters done [13:40:24]requested_item shift.num is exist - process it [13:40:24]requested_item shift.opened is exist - process it [13:40:24]req_shift_opened [13:40:24]FM_GetShiftState [13:40:24]SAM_PROTO_GetShiftState [13:40:24]wFMCommunicate request_size=4 [13:40:24]MH_SAM_APDU [13:40:24]CAPDU: 80 13 01 00 [13:40:24]Write to MH i2c: E2 08 00 6A 17 80 13 01 00 00 00 00 00 FE [13:40:24]Write i2c OK [13:40:24]MH_I2C_Read... [13:40:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:24]Read from MH i2c: E2 [13:40:24]MH_I2C_Read... [13:40:24]Read from MH i2c: E2 0E 00 [13:40:24]MH_I2C_Read... [13:40:24]Read from MH i2c: E2 0E 00 6A 17 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 0D [13:40:24]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:40:24]wFMCommunicate OK [13:40:24]SAM_PROTO_GetShiftState done [13:40:24]FM_GetShiftState done [13:40:24]req_shift_opened done [13:40:24]requested_item shift.open_date is exist - process it [13:40:24]req_shift_open_date [13:40:24]req_shift_open_date done [13:40:24]produce_requested_data done [13:40:24]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201502,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:40:24]process_action_free close_receipt [13:40:24]json_value_free [13:40:24]json_value_free done [13:40:24]process_json_proto returns [13:40:24]Send response to host [13:40:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201502,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:40:24]free response buf [13:40:24]execute_script done [13:40:24]execute_script returns [13:40:24]free content buf [13:40:24]Sock 8.Close socket [13:40:24]Sock 8.Thread stoped [13:40:28]OFD Sender: No OFD packet to send [13:40:33]OFD Sender: No OFD packet to send [13:40:38]OFD Sender: No OFD packet to send [13:40:43]OFD Sender: No OFD packet to send [13:40:48]OFD Sender: No OFD packet to send [13:40:53]OFD Sender: No OFD packet to send [13:40:58]OFD Sender: No OFD packet to send [13:41:03]OFD Sender: No OFD packet to send [13:41:08]OFD Sender: No OFD packet to send [13:41:13]OFD Sender: No OFD packet to send [13:41:18]OFD Sender: No OFD packet to send [13:41:23]OFD Sender: No OFD packet to send [13:41:28]OFD Sender: No OFD packet to send [13:41:33]OFD Sender: No OFD packet to send [13:41:38]OFD Sender: No OFD packet to send [13:41:43]OFD Sender: No OFD packet to send [13:41:48]OFD Sender: No OFD packet to send [13:41:53]OFD Sender: No OFD packet to send [13:41:58]OFD Sender: No OFD packet to send [13:42:03]OFD Sender: No OFD packet to send [13:42:08]OFD Sender: No OFD packet to send [13:42:13]OFD Sender: No OFD packet to send [13:42:18]OFD Sender: No OFD packet to send [13:42:23]OFD Sender: No OFD packet to send [13:42:28]OFD Sender: No OFD packet to send [13:42:33]OFD Sender: No OFD packet to send [13:42:38]OFD Sender: No OFD packet to send [13:42:43]OFD Sender: No OFD packet to send [13:42:44]accept exits with 9 [13:42:44]New connection [13:42:44]New thread 3066834276 created [13:42:44]Thread 3066690916 joined [13:42:44]Waiting for new connection... [13:42:44] Sock 9.Parse request [13:42:44]Sock 9.Check first char [13:42:44]Sock 9.First char is OK [13:42:44]request: POST /json_proto HTTP/1.0 [13:42:44]Method: POST [13:42:44]URL: /json_proto [13:42:44]Method is POST - this is cgi request [13:42:44]url: /json_proto [13:42:44]query_string will be loaded in cgi processing [13:42:44]execute_cgi json_proto POST (null) [13:42:44]execute_cgi path=json_proto method=POST [13:42:44]POST find Content-Length [13:42:44]Host: 172.17.63.195:8080 [13:42:44]Content-Length: 816 [13:42:44]Content-Type: application/json [13:42:44] [13:42:44]POST finish read [13:42:44]Found Content-Length = 816 [13:42:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:44]execute_script... [13:42:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:44]POST & json_proto [13:42:44]process_json_proto [13:42:44]json parsed OK: [13:42:44]protocol is kg_v1.0 [13:42:44]action value=close_receipt [13:42:44]process_action close_receipt [13:42:44]cmd_close_receipt [13:42:44]MH_GetDate [13:42:44]Write to MH i2c: F0 00 00 6B 17 71 [13:42:44]Write i2c OK [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: F0 [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: F0 09 00 [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: F0 09 00 6B 17 00 D5 F1 1C 67 68 46 19 67 F1 [13:42:44]GetLastDocTimeStamp 1729950021 [13:42:44]current date 1729950165 [13:42:44]FM_GetShiftState [13:42:44]SAM_PROTO_GetShiftState [13:42:44]wFMCommunicate request_size=4 [13:42:44]MH_SAM_APDU [13:42:44]CAPDU: 80 13 01 00 [13:42:44]Write to MH i2c: E2 08 00 6C 17 80 13 01 00 00 00 00 00 00 [13:42:44]Write i2c OK [13:42:44]MH_I2C_Read... [13:42:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:44]Read from MH i2c: E2 [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: E2 0E 00 [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: E2 0E 00 6C 17 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 0F [13:42:44]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:42:44]wFMCommunicate OK [13:42:44]SAM_PROTO_GetShiftState done [13:42:44]FM_GetShiftState done [13:42:44]opened in 1729900879 [13:42:44]opened+sec_in_day 1729987279 [13:42:44]quantity*price = 50041 [13:42:44]sum+1 = 50042 [13:42:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 265 26.10.2024 13:42 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871756 ФД: 201503 ФПД: 192967134975261 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134245&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201503&fm=192967134975261&tin=02508201610067®Number=0000000000091777&sum=50041 [13:42:45]StoreToDocumentArchive [13:42:45]shift 543 fd 201503 [13:42:45]save to /storage/0543/doc_00201503 [13:42:45]save last doc name /storage/0543/doc_00201503 to /storage/kkm_last_doc_name [13:42:45]save OK [13:42:45]Clear old archive folders... [13:42:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:42:45]tlvbuf is 01F734C0 [13:42:45]SAM_PROTO_ClearQueue [13:42:45]wFMCommunicate request_size=4 [13:42:45]MH_SAM_APDU [13:42:45]CAPDU: 80 09 00 00 [13:42:45]Write to MH i2c: E2 08 00 79 17 80 09 00 00 00 00 00 00 02 [13:42:45]Write i2c OK [13:42:45]MH_I2C_Read... [13:42:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:42:45]Read from MH i2c: E2 [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: E2 03 00 [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: E2 03 00 79 17 00 90 00 04 [13:42:45]RAPDU: 90 00 [13:42:45]wFMCommunicate OK [13:42:45]SAM_PROTO_ClearQueue done [13:42:45]KKMCreateOFDPacket [13:42:45]OFDProtocolAddRootSTLVToBuf [13:42:45]FM_MakeSignedData [13:42:45]FM_MakeSignedData [13:42:45]SAM_PROTO_SignData [13:42:45]wFMCommunicate request_size=4 [13:42:45]MH_SAM_APDU [13:42:45]CAPDU: 80 0D 01 02 [13:42:45]Write to MH i2c: E2 08 00 7A 17 80 0D 01 02 00 00 00 00 0A [13:42:45]Write i2c OK [13:42:45]MH_I2C_Read... [13:42:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:42:45]Read from MH i2c: E2 [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: E2 03 00 [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: E2 03 00 7A 17 00 90 00 05 [13:42:45]RAPDU: 90 00 [13:42:45]wFMCommunicate OK [13:42:45]wFMCommunicate request_size=255 [13:42:45]MH_SAM_APDU [13:42: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 32 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 79 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 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 D5 F1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1F 13 03 00 35 04 06 00 AF [13:42:45]Write to MH i2c: E2 02 01 7B 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 32 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 79 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 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 D5 F1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1F 13 03 00 35 04 06 00 AF 00 00 48 [13:42:45]Write i2c OK [13:42:45]MH_I2C_Read... [13:42:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:45]Read from MH i2c: E2 [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: E2 03 00 [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: E2 03 00 7B 17 00 90 00 06 [13:42:45]RAPDU: 90 00 [13:42:45]wFMCommunicate OK [13:42:45]wFMCommunicate request_size=10 [13:42:45]MH_SAM_APDU [13:42:45]CAPDU: 80 0D 02 02 05 80 A9 88 95 1D [13:42:45]Write to MH i2c: E2 0D 00 7C 17 80 0D 02 02 05 00 80 A9 88 95 1D 00 00 7A [13:42:45]Write i2c OK [13:42:45]MH_I2C_Read... [13:42:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:45]Read from MH i2c: E2 [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: E2 03 00 [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: E2 03 00 7C 17 00 90 00 07 [13:42:45]RAPDU: 90 00 [13:42:45]wFMCommunicate OK [13:42:45]wFMCommunicate request_size=4 [13:42:45]MH_SAM_APDU [13:42:45]CAPDU: 80 0D 03 02 [13:42:45]Write to MH i2c: E2 08 00 7D 17 80 0D 03 02 00 00 00 00 0F [13:42:45]Write i2c OK [13:42:45]MH_I2C_Read... [13:42:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:42:45]Read from MH i2c: E2 [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: E2 0B 00 [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: E2 0B 00 7D 17 00 AC F6 70 A9 FD 32 BE 0A 90 00 C2 [13:42:45]RAPDU: AC F6 70 A9 FD 32 BE 0A 90 00 [13:42:45]wFMCommunicate OK [13:42:45]SAM_PROTO_SignData done [13:42:45]FM_MakeSignedData done [13:42:45]CreateOFDProtocolMessage [13:42:45]wFMCommunicate request_size=4 [13:42:45]MH_SAM_APDU [13:42:45]CAPDU: 80 11 00 00 [13:42:45]Write to MH i2c: E2 08 00 7E 17 80 11 00 00 00 00 00 00 0F [13:42:45]Write i2c OK [13:42:45]MH_I2C_Read... [13:42:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:45]Read from MH i2c: E2 [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: E2 17 00 [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: E2 17 00 7E 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 64 [13:42:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:42:45]wFMCommunicate OK [13:42:45]CreateOFDProtocolMessage done [13:42:45]OFDSenderStorePacket 201503 [13:42:45]StoreOFDPacket docnum=201503 [13:42:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 39 2D 07 01 37 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 32 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 79 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 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 D5 F1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1F 13 03 00 35 04 06 00 AF 80 A9 88 95 1D AC F6 70 A9 FD 32 BE 0A [13:42:45]CheckFolder [13:42:45]dirname=/storage/ofd_packets [13:42:45]CheckFolder done [13:42:45]ProducePacketName [13:42:45]name=ofd_packets/00201503 [13:42:45]NVStorageSaveData ofd_packets/00201503 [13:42:45]File name is /storage/ofd_packets/00201503 [13:42:45]Write 301 bytes [13:42:45]NVStorageSaveData done [13:42:45]OFDSenderStorePacket done [13:42:45]KKMCreateOFDPacket done [13:42:45]NVStorageSaveData kkm_last_timestamp [13:42:45]File name is /storage/kkm_last_timestamp [13:42:45]Write 4 bytes [13:42:45]NVStorageSaveData done [13:42:45]ExternCall_PrintAddStr [13:42:45]wPrintStart [13:42:45]Write to MH i2c: 01 00 00 7F 17 96 [13:42:45]Write i2c OK [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: 01 [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: 01 07 00 [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: 01 07 00 7F 17 00 00 00 00 00 FF 0F AB [13:42:45]RasterBufferAndPrint [13:42:45]line Счет N : (1)449254 [13:42:45]line ИНН: 02508201610067 [13:42:45]line Контрольно-Кассовый Чек [13:42:45]line ПРОДАЖА [13:42:45]line ТРК (МРК, ГНК) : 41 [13:42:45]line Товар: 2710124130 [13:42:45]line Аи-92-К-2 [13:42:45]line 7.480 * 66.90 [13:42:45]line = 500.41 [13:42:45]line НДС 12% НСП 1% [13:42:45]line > о реализуемом товаре [13:42:45]line ИТОГО: 500.41 [13:42:45]line НСП 1% : 4.43 [13:42:45]line НДС 12% : 53.14 [13:42:45]line Наличными: 0.00 [13:42:45]line Безнал.: 500.41 [13:42:45]line Место: АЗС № 171 "Партнер Нефть" [13:42:45]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:42:45]line СНО: Общий режим [13:42:45]line Чек 265 26.10.2024 13:42 [13:42:45]line Смена: 543 ФФД: 1.0 [13:42:45]line ЗНМ: 0300000109 [13:42:45]line РНМ: 0000000000091777 [13:42:45]line Версия ККМ: 001 [13:42:45]line Платежная система: Бакай Банк [13:42:45]line ФМ: 0000000000871756 [13:42:45]line ФД: 201503 [13:42:45]line ФПД: 192967134975261 [13:42:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134245&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201503&fm=192967134975261&tin=02508201610067®Number=0000000000091777&sum=50041 [13:42:46]written 0, free lines is 4095 [13:42:46]OFD Sender: Processing packet 201503 [packets to send 112, broken 111] [13:42:46]ProducePacketName [13:42:46]name=ofd_packets/00201503 [13:42:46]OFD Sender: To server: pG, [13:42:46]CommunicateWithHost lk.salyk.kg:30040 [13:42:46]ConnectInit lk.salyk.kg [13:42:46]Connected sock=10 [13:42:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 39 2D 07 01 37 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 32 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 79 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 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 D5 F1 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1F 13 03 00 35 04 06 00 AF 80 A9 88 95 1D AC F6 70 A9 FD 32 BE 0A [13:42:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D8 44 47 00 BC E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 1F 13 03 00 F4 03 04 00 7E 9D 1C 67 B6 04 01 00 00 1E 9E 43 76 D0 52 68 9C [13:42:46]CommunicateWithHost err = 0 [13:42:46]CheckOFDResponse [13:42:46]1017 (14) - 77093643461234 [13:42:46]1041 (16) - 0000000000871756 [13:42:46]1040 (4) - 201503 [13:42:46]1012 (4) - 26.10.2024 07:42 [13:42:46]1206 (1) - 0 [13:42:46]OFD Sender: Remove packet 201503 [13:42:46]ProducePacketName [13:42:46]name=ofd_packets/00201503 [13:42:46]NVStorageDeleteData [13:42:46]Write to MH i2c: 01 00 00 A9 17 C0 [13:42:46]Write i2c OK [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: 01 [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: 01 07 00 [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: 01 07 00 A9 17 00 00 00 00 00 A7 0C 7A [13:42:46]RasterBufferAndPrint [13:42:46]line [13:42:46]line [13:42:46]line [13:42:46]line [13:42:46]line [13:42:46]written 0, free lines is 3244 [13:42:46]MH_Cut [13:42:46]Write to MH i2c: D1 01 00 B0 17 01 99 [13:42:46]Write i2c OK [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: D1 [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: D1 01 00 [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: D1 01 00 B0 17 00 98 [13:42:46]Write to MH i2c: 01 00 00 B1 17 C8 [13:42:46]Write i2c OK [13:42:46]MH_I2C_Read... [13:42:47]OFD Sender: No OFD packet to send [13:42:47]*** Cut start [13:42:47]*** Purtial cut [13:42:47]*** Stage 1: CUTSNS_PIN = 1 [13:42:47]Read from MH i2c: 01 [13:42:47]MH_I2C_Read... [13:42:47]*** Stop cut motor [13:42:47]*** Cut end [13:42:47]Read from MH i2c: 01 07 00 [13:42:47]MH_I2C_Read... [13:42:47]Read from MH i2c: 01 07 00 B1 17 00 00 00 00 00 FF 0F DD [13:42:47]process_action close_receipt done [13:42:47]requested_data is exist [13:42:47]produce_requested_data [13:42:47]requested_item fm.sn is exist - process it [13:42:47]wFMCommunicate request_size=4 [13:42:47]MH_SAM_APDU [13:42:47]CAPDU: 80 11 00 00 [13:42:47]Write to MH i2c: E2 08 00 B2 17 80 11 00 00 00 00 00 00 43 [13:42:47]Write i2c OK [13:42:47]MH_I2C_Read... [13:42:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:47]Read from MH i2c: E2 [13:42:47]MH_I2C_Read... [13:42:47]Read from MH i2c: E2 17 00 [13:42:47]MH_I2C_Read... [13:42:47]Read from MH i2c: E2 17 00 B2 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 98 [13:42:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:42:47]wFMCommunicate OK [13:42:47]requested_item fd.num is exist - process it [13:42:47]SAM_PROTO_GetFieldsCounters [13:42:47]wFMCommunicate request_size=4 [13:42:47]MH_SAM_APDU [13:42:47]CAPDU: 80 13 00 00 [13:42:47]Write to MH i2c: E2 08 00 B3 17 80 13 00 00 00 00 00 00 46 [13:42:47]Write i2c OK [13:42:47]MH_I2C_Read... [13:42:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:42:48]Read from MH i2c: E2 [13:42:48]MH_I2C_Read... [13:42:48]Read from MH i2c: E2 62 00 [13:42:48]MH_I2C_Read... [13:42:48]Read from MH i2c: E2 62 00 B3 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1F 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 E3 [13:42:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 1F 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:42:48]wFMCommunicate OK [13:42:48]SAM_PROTO_GetFieldsCounters done [13:42:48]requested_item shift.num is exist - process it [13:42:48]requested_item shift.opened is exist - process it [13:42:48]req_shift_opened [13:42:48]FM_GetShiftState [13:42:48]SAM_PROTO_GetShiftState [13:42:48]wFMCommunicate request_size=4 [13:42:48]MH_SAM_APDU [13:42:48]CAPDU: 80 13 01 00 [13:42:48]Write to MH i2c: E2 08 00 B4 17 80 13 01 00 00 00 00 00 48 [13:42:48]Write i2c OK [13:42:48]MH_I2C_Read... [13:42:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:48]Read from MH i2c: E2 [13:42:48]MH_I2C_Read... [13:42:48]Read from MH i2c: E2 0E 00 [13:42:48]MH_I2C_Read... [13:42:48]Read from MH i2c: E2 0E 00 B4 17 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 57 [13:42:48]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:42:48]wFMCommunicate OK [13:42:48]SAM_PROTO_GetShiftState done [13:42:48]FM_GetShiftState done [13:42:48]req_shift_opened done [13:42:48]requested_item shift.open_date is exist - process it [13:42:48]req_shift_open_date [13:42:48]req_shift_open_date done [13:42:48]produce_requested_data done [13:42:48]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201503,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:42:48]process_action_free close_receipt [13:42:48]json_value_free [13:42:48]json_value_free done [13:42:48]process_json_proto returns [13:42:48]Send response to host [13:42:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201503,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:42:48]free response buf [13:42:48]execute_script done [13:42:48]execute_script returns [13:42:48]free content buf [13:42:48]Sock 9.Close socket [13:42:48]Sock 9.Thread stoped [13:42:52]OFD Sender: No OFD packet to send [13:42:57]OFD Sender: No OFD packet to send [13:43:02]OFD Sender: No OFD packet to send [13:43:07]OFD Sender: No OFD packet to send [13:43:08]int [13:43:08]Write to MH i2c: 01 00 00 B5 17 CC [13:43:08]*** FLAG_PRN_PAP1 set [13:43:08]Write i2c OK [13:43:08]MH_I2C_Read... [13:43:08]Read from MH i2c: 01 [13:43:08]MH_I2C_Read... [13:43:08]Read from MH i2c: 01 07 00 [13:43:08]MH_I2C_Read... [13:43:08]Read from MH i2c: 01 07 00 B5 17 00 01 00 00 00 FF 0F E2 [13:43:08]state=0 [13:43:08]No paper [13:43:08]int [13:43:08]Write to MH i2c: 01 00 00 B6 17 CD [13:43:08]*** FLAG_PRN_PAP2 set [13:43:08]Write i2c OK [13:43:08]MH_I2C_Read... [13:43:08]Read from MH i2c: 01 [13:43:08]MH_I2C_Read... [13:43:08]Read from MH i2c: 01 07 00 [13:43:08]MH_I2C_Read... [13:43:08]Read from MH i2c: 01 07 00 B6 17 00 03 00 00 00 FF 0F E5 [13:43:08]state=0 [13:43:08]No paper [13:43:08]Cover opened [13:43:11]int [13:43:11]Write to MH i2c: 01 00 00 B7 17 CE [13:43:11]Write i2c OK [13:43:11]MH_I2C_Read... [13:43:11]Read from MH i2c: 01 [13:43:11]MH_I2C_Read... [13:43:11]Read from MH i2c: 01 07 00 [13:43:11]MH_I2C_Read... [13:43:11]*** FLAG_PRN_PAP2 reset [13:43:11]*** FLAG_PRN_PAP1 reset [13:43:11]Read from MH i2c: 01 07 00 B7 17 00 00 00 00 00 FF 0F E3 [13:43:11]state=3 [13:43:11]Cover closed [13:43:12]OFD Sender: No OFD packet to send [13:43:17]OFD Sender: No OFD packet to send [13:43:22]OFD Sender: No OFD packet to send [13:43:27]OFD Sender: No OFD packet to send [13:43:32]OFD Sender: No OFD packet to send [13:43:37]OFD Sender: No OFD packet to send [13:43:42]OFD Sender: No OFD packet to send [13:43:43]accept exits with 8 [13:43:43]New connection [13:43:43]New thread 3066690916 created [13:43:43]Thread 3066834276 joined [13:43:43]Waiting for new connection... [13:43:43] Sock 8.Parse request [13:43:43]Sock 8.Check first char [13:43:43]Sock 8.First char is OK [13:43:43]request: POST /json_proto HTTP/1.0 [13:43:43]Method: POST [13:43:43]URL: /json_proto [13:43:43]Method is POST - this is cgi request [13:43:43]url: /json_proto [13:43:43]query_string will be loaded in cgi processing [13:43:43]execute_cgi json_proto POST (null) [13:43:43]execute_cgi path=json_proto method=POST [13:43:43]POST find Content-Length [13:43:43]Host: 172.17.63.195:8080 [13:43:43]Content-Length: 678 [13:43:43]Content-Type: application/json [13:43:43] [13:43:43]POST finish read [13:43:43]Found Content-Length = 678 [13:43:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:43]execute_script... [13:43: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)449255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:43]POST & json_proto [13:43:43]process_json_proto [13:43:43]json parsed OK: [13:43:43]protocol is kg_v1.0 [13:43:43]action value=close_receipt [13:43:43]process_action close_receipt [13:43:43]cmd_close_receipt [13:43:43]MH_GetDate [13:43:43]Write to MH i2c: F0 00 00 B8 17 BE [13:43:43]Write i2c OK [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: F0 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: F0 09 00 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: F0 09 00 B8 17 00 10 F2 1C 67 68 46 19 67 7A [13:43:43]GetLastDocTimeStamp 1729950165 [13:43:43]current date 1729950224 [13:43:43]FM_GetShiftState [13:43:43]SAM_PROTO_GetShiftState [13:43:43]wFMCommunicate request_size=4 [13:43:43]MH_SAM_APDU [13:43:43]CAPDU: 80 13 01 00 [13:43:43]Write to MH i2c: E2 08 00 B9 17 80 13 01 00 00 00 00 00 4D [13:43:43]Write i2c OK [13:43:43]MH_I2C_Read... [13:43:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:43]Read from MH i2c: E2 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: E2 0E 00 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: E2 0E 00 B9 17 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 5C [13:43:43]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:43:43]wFMCommunicate OK [13:43:43]SAM_PROTO_GetShiftState done [13:43:43]FM_GetShiftState done [13:43:43]opened in 1729900879 [13:43:43]opened+sec_in_day 1729987279 [13:43:43]quantity*price = 90047 [13:43:43]sum+1 = 90048 [13:43:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 266 26.10.2024 13:43 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201504 ФПД: 25428919211590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134344&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201504&fm=25428919211590&tin=02508201610067®Number=0000000000091777&sum=90000 [13:43:45]StoreToDocumentArchive [13:43:45]shift 543 fd 201504 [13:43:45]save to /storage/0543/doc_00201504 [13:43:45]save last doc name /storage/0543/doc_00201504 to /storage/kkm_last_doc_name [13:43:45]save OK [13:43:45]Clear old archive folders... [13:43:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:43:45]tlvbuf is B6E8BD10 [13:43:45]SAM_PROTO_ClearQueue [13:43:45]wFMCommunicate request_size=4 [13:43:45]MH_SAM_APDU [13:43:45]CAPDU: 80 09 00 00 [13:43:45]Write to MH i2c: E2 08 00 C6 17 80 09 00 00 00 00 00 00 4F [13:43:45]Write i2c OK [13:43:45]MH_I2C_Read... [13:43:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:45]Read from MH i2c: E2 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 03 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 03 00 C6 17 00 90 00 51 [13:43:45]RAPDU: 90 00 [13:43:45]wFMCommunicate OK [13:43:45]SAM_PROTO_ClearQueue done [13:43:45]KKMCreateOFDPacket [13:43:45]OFDProtocolAddRootSTLVToBuf [13:43:45]FM_MakeSignedData [13:43:45]FM_MakeSignedData [13:43:45]SAM_PROTO_SignData [13:43:45]wFMCommunicate request_size=4 [13:43:45]MH_SAM_APDU [13:43:45]CAPDU: 80 0D 01 02 [13:43:45]Write to MH i2c: E2 08 00 C7 17 80 0D 01 02 00 00 00 00 57 [13:43:45]Write i2c OK [13:43:45]MH_I2C_Read... [13:43:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:45]Read from MH i2c: E2 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 03 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 03 00 C7 17 00 90 00 52 [13:43:45]RAPDU: 90 00 [13:43:45]wFMCommunicate OK [13:43:45]wFMCommunicate request_size=255 [13:43:45]MH_SAM_APDU [13:43: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 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 10 F2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 20 13 03 00 35 04 06 00 17 [13:43:45]Write to MH i2c: E2 02 01 C8 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 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 10 F2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 20 13 03 00 35 04 06 00 17 00 00 06 [13:43:45]Write i2c OK [13:43:45]MH_I2C_Read... [13:43:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:45]Read from MH i2c: E2 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 03 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 03 00 C8 17 00 90 00 53 [13:43:45]RAPDU: 90 00 [13:43:45]wFMCommunicate OK [13:43:45]wFMCommunicate request_size=10 [13:43:45]MH_SAM_APDU [13:43:45]CAPDU: 80 0D 02 02 05 20 A1 B2 56 46 [13:43:45]Write to MH i2c: E2 0D 00 C9 17 80 0D 02 02 05 00 20 A1 B2 56 46 00 00 73 [13:43:45]Write i2c OK [13:43:45]MH_I2C_Read... [13:43:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:45]Read from MH i2c: E2 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 03 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 03 00 C9 17 00 90 00 54 [13:43:45]RAPDU: 90 00 [13:43:45]wFMCommunicate OK [13:43:45]wFMCommunicate request_size=4 [13:43:45]MH_SAM_APDU [13:43:45]CAPDU: 80 0D 03 02 [13:43:45]Write to MH i2c: E2 08 00 CA 17 80 0D 03 02 00 00 00 00 5C [13:43:45]Write i2c OK [13:43:45]MH_I2C_Read... [13:43:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:45]Read from MH i2c: E2 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 0B 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 0B 00 CA 17 00 3C 3E F9 D3 0E 17 38 CC 90 00 CC [13:43:45]RAPDU: 3C 3E F9 D3 0E 17 38 CC 90 00 [13:43:45]wFMCommunicate OK [13:43:45]SAM_PROTO_SignData done [13:43:45]FM_MakeSignedData done [13:43:45]CreateOFDProtocolMessage [13:43:45]wFMCommunicate request_size=4 [13:43:45]MH_SAM_APDU [13:43:45]CAPDU: 80 11 00 00 [13:43:45]Write to MH i2c: E2 08 00 CB 17 80 11 00 00 00 00 00 00 5C [13:43:45]Write i2c OK [13:43:45]MH_I2C_Read... [13:43:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:45]Read from MH i2c: E2 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 17 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 17 00 CB 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B1 [13:43:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:43:45]wFMCommunicate OK [13:43:45]CreateOFDProtocolMessage done [13:43:45]OFDSenderStorePacket 201504 [13:43:45]StoreOFDPacket docnum=201504 [13:43:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 3B 5D 07 01 E0 21 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 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 10 F2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 20 13 03 00 35 04 06 00 17 20 A1 B2 56 46 3C 3E F9 D3 0E 17 38 CC [13:43:45]CheckFolder [13:43:45]dirname=/storage/ofd_packets [13:43:45]CheckFolder done [13:43:45]ProducePacketName [13:43:45]name=ofd_packets/00201504 [13:43:45]NVStorageSaveData ofd_packets/00201504 [13:43:45]File name is /storage/ofd_packets/00201504 [13:43:45]Write 301 bytes [13:43:45]NVStorageSaveData done [13:43:45]OFDSenderStorePacket done [13:43:45]KKMCreateOFDPacket done [13:43:45]NVStorageSaveData kkm_last_timestamp [13:43:45]File name is /storage/kkm_last_timestamp [13:43:45]Write 4 bytes [13:43:45]NVStorageSaveData done [13:43:45]ExternCall_PrintAddStr [13:43:45]wPrintStart [13:43:45]Write to MH i2c: 01 00 00 CC 17 E3 [13:43:45]Write i2c OK [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: 01 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: 01 07 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: 01 07 00 CC 17 00 00 00 00 00 FF 0F F8 [13:43:45]RasterBufferAndPrint [13:43:45]line Счет N : (1)449255 [13:43:45]line ИНН: 02508201610067 [13:43:45]line Контрольно-Кассовый Чек [13:43:45]line ПРОДАЖА [13:43:45]line ТРК (МРК, ГНК) : 31 [13:43:45]line Товар: 2710124130 [13:43:45]line Аи-92-К-2 [13:43:45]line 13.460 * 66.90 [13:43:45]line = 900.47 [13:43:45]line НДС 12% НСП 1% [13:43:45]line > о реализуемом товаре [13:43:45]line ОКРУГЛЕНИЕ: -0.47 [13:43:45]line ИТОГО: 900.00 [13:43:45]line Внесено: 900.00 [13:43:45]line СДАЧА: 0.00 [13:43:45]line НСП 1% : 7.97 [13:43:45]line НДС 12% : 95.62 [13:43:45]line Наличными: 900.00 [13:43:45]line Безнал.: 0.00 [13:43:45]line Место: АЗС № 171 "Партнер Нефть" [13:43:45]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:43:45]line СНО: Общий режим [13:43:45]line Чек 266 26.10.2024 13:43 [13:43:45]line Смена: 543 ФФД: 1.0 [13:43:45]line ЗНМ: 0300000109 [13:43:45]line РНМ: 0000000000091777 [13:43:45]line Версия ККМ: 001 [13:43:45]line ФМ: 0000000000871756 [13:43:45]line ФД: 201504 [13:43:45]line ФПД: 25428919211590 [13:43:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134344&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201504&fm=25428919211590&tin=02508201610067®Number=0000000000091777&sum=90000 [13:43:45]OFD Sender: Processing packet 201504 [packets to send 112, broken 111] [13:43:45]ProducePacketName [13:43:45]name=ofd_packets/00201504 [13:43:45]OFD Sender: To server: pG, [13:43:45]CommunicateWithHost lk.salyk.kg:30040 [13:43:45]ConnectInit lk.salyk.kg [13:43:45]written 0, free lines is 4095 [13:43:46]Connected sock=10 [13:43:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 3B 5D 07 01 E0 21 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 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 10 F2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 20 13 03 00 35 04 06 00 17 20 A1 B2 56 46 3C 3E F9 D3 0E 17 38 CC [13:43:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 DB 00 47 00 E4 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 20 13 03 00 F4 03 04 00 B9 9D 1C 67 B6 04 01 00 00 1D F5 D1 3E 20 4D F4 BF [13:43:46]CommunicateWithHost err = 0 [13:43:46]CheckOFDResponse [13:43:46]1017 (14) - 77093643461234 [13:43:46]1041 (16) - 0000000000871756 [13:43:46]1040 (4) - 201504 [13:43:46]1012 (4) - 26.10.2024 07:43 [13:43:46]1206 (1) - 0 [13:43:46]OFD Sender: Remove packet 201504 [13:43:46]ProducePacketName [13:43:46]name=ofd_packets/00201504 [13:43:46]NVStorageDeleteData [13:43:46]Write to MH i2c: 01 00 00 F7 17 0E [13:43:46]Write i2c OK [13:43:46]MH_I2C_Read... [13:43:46]Read from MH i2c: 01 [13:43:46]MH_I2C_Read... [13:43:46]Read from MH i2c: 01 07 00 [13:43:46]MH_I2C_Read... [13:43:46]Read from MH i2c: 01 07 00 F7 17 00 00 00 00 00 8F 0C B0 [13:43:46]RasterBufferAndPrint [13:43:46]line [13:43:46]line [13:43:46]line [13:43:46]line [13:43:46]line [13:43:46]written 0, free lines is 3220 [13:43:46]MH_Cut [13:43:46]Write to MH i2c: D1 01 00 FE 17 01 E7 [13:43:46]Write i2c OK [13:43:46]MH_I2C_Read... [13:43:46]Read from MH i2c: D1 [13:43:46]MH_I2C_Read... [13:43:46]Read from MH i2c: D1 01 00 [13:43:46]MH_I2C_Read... [13:43:46]Read from MH i2c: D1 01 00 FE 17 00 E6 [13:43:46]Write to MH i2c: 01 00 00 FF 17 16 [13:43:46]Write i2c OK [13:43:46]MH_I2C_Read... [13:43:46]OFD Sender: No OFD packet to send [13:43:47]*** Cut start [13:43:47]*** Purtial cut [13:43:47]*** Stage 1: CUTSNS_PIN = 1 [13:43:47]Read from MH i2c: 01 [13:43:47]MH_I2C_Read... [13:43:47]*** Stop cut motor [13:43:47]*** Cut end [13:43:47]Read from MH i2c: 01 07 00 [13:43:47]MH_I2C_Read... [13:43:47]Read from MH i2c: 01 07 00 FF 17 00 00 00 00 00 FF 0F 2B [13:43:47]process_action close_receipt done [13:43:47]requested_data is exist [13:43:47]produce_requested_data [13:43:47]requested_item fm.sn is exist - process it [13:43:47]wFMCommunicate request_size=4 [13:43:47]MH_SAM_APDU [13:43:47]CAPDU: 80 11 00 00 [13:43:47]Write to MH i2c: E2 08 00 00 18 80 11 00 00 00 00 00 00 92 [13:43:47]Write i2c OK [13:43:47]MH_I2C_Read... [13:43:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:47]Read from MH i2c: E2 [13:43:47]MH_I2C_Read... [13:43:47]Read from MH i2c: E2 17 00 [13:43:47]MH_I2C_Read... [13:43:47]Read from MH i2c: E2 17 00 00 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E7 [13:43:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:43:47]wFMCommunicate OK [13:43:47]requested_item fd.num is exist - process it [13:43:47]SAM_PROTO_GetFieldsCounters [13:43:47]wFMCommunicate request_size=4 [13:43:47]MH_SAM_APDU [13:43:47]CAPDU: 80 13 00 00 [13:43:47]Write to MH i2c: E2 08 00 01 18 80 13 00 00 00 00 00 00 95 [13:43:47]Write i2c OK [13:43:47]MH_I2C_Read... [13:43:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:47]Read from MH i2c: E2 [13:43:47]MH_I2C_Read... [13:43:47]Read from MH i2c: E2 62 00 [13:43:47]MH_I2C_Read... [13:43:47]Read from MH i2c: E2 62 00 01 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 20 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 36 [13:43:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 20 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:43:47]wFMCommunicate OK [13:43:47]SAM_PROTO_GetFieldsCounters done [13:43:47]requested_item shift.num is exist - process it [13:43:47]requested_item shift.opened is exist - process it [13:43:47]req_shift_opened [13:43:47]FM_GetShiftState [13:43:47]SAM_PROTO_GetShiftState [13:43:47]wFMCommunicate request_size=4 [13:43:47]MH_SAM_APDU [13:43:47]CAPDU: 80 13 01 00 [13:43:47]Write to MH i2c: E2 08 00 02 18 80 13 01 00 00 00 00 00 97 [13:43:47]Write i2c OK [13:43:47]MH_I2C_Read... [13:43:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:47]Read from MH i2c: E2 [13:43:47]MH_I2C_Read... [13:43:47]Read from MH i2c: E2 0E 00 [13:43:47]MH_I2C_Read... [13:43:47]Read from MH i2c: E2 0E 00 02 18 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 A6 [13:43:47]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:43:47]wFMCommunicate OK [13:43:47]SAM_PROTO_GetShiftState done [13:43:47]FM_GetShiftState done [13:43:47]req_shift_opened done [13:43:47]requested_item shift.open_date is exist - process it [13:43:47]req_shift_open_date [13:43:47]req_shift_open_date done [13:43:47]produce_requested_data done [13:43:47]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201504,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:43:47]process_action_free close_receipt [13:43:47]json_value_free [13:43:47]json_value_free done [13:43:47]process_json_proto returns [13:43:47]Send response to host [13:43:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201504,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:43:47]free response buf [13:43:47]execute_script done [13:43:47]execute_script returns [13:43:47]free content buf [13:43:47]Sock 8.Close socket [13:43:47]Sock 8.Thread stoped [13:43:48]int [13:43:48]Write to MH i2c: 01 00 00 03 18 1B [13:43:48]*** FLAG_PRN_PAP1 set [13:43:48]Write i2c OK [13:43:48]MH_I2C_Read... [13:43:48]Read from MH i2c: 01 [13:43:48]MH_I2C_Read... [13:43:48]Read from MH i2c: 01 07 00 [13:43:48]MH_I2C_Read... [13:43:48]Read from MH i2c: 01 07 00 03 18 00 01 00 00 00 FF 0F 31 [13:43:48]state=0 [13:43:48]No paper [13:43:48]int [13:43:48]Write to MH i2c: 01 00 00 04 18 1C [13:43:48]*** FLAG_PRN_PAP2 set [13:43:48]Write i2c OK [13:43:48]MH_I2C_Read... [13:43:48]Read from MH i2c: 01 [13:43:48]MH_I2C_Read... [13:43:48]Read from MH i2c: 01 07 00 [13:43:48]MH_I2C_Read... [13:43:48]Read from MH i2c: 01 07 00 04 18 00 03 00 00 00 FF 0F 34 [13:43:48]state=0 [13:43:48]No paper [13:43:48]Cover opened [13:43:51]OFD Sender: No OFD packet to send [13:43:53]Write to MH i2c: 01 00 00 05 18 1D [13:43:53]Write i2c OK [13:43:53]MH_I2C_Read... [13:43:53]Read from MH i2c: 01 [13:43:53]MH_I2C_Read... [13:43:53]Read from MH i2c: 01 07 00 [13:43:53]MH_I2C_Read... [13:43:53]Read from MH i2c: 01 07 00 05 18 00 03 00 00 00 FF 0F 35 [13:43:53]state=3 [13:43:53]No paper [13:43:53]Cover opened [13:43:56]OFD Sender: No OFD packet to send [13:43:58]Write to MH i2c: 01 00 00 06 18 1E [13:43:58]Write i2c OK [13:43:58]MH_I2C_Read... [13:43:58]Read from MH i2c: 01 [13:43:58]MH_I2C_Read... [13:43:58]Read from MH i2c: 01 07 00 [13:43:58]MH_I2C_Read... [13:43:58]Read from MH i2c: 01 07 00 06 18 00 03 00 00 00 FF 0F 36 [13:43:58]state=3 [13:43:58]No paper [13:43:58]Cover opened [13:44:01]OFD Sender: No OFD packet to send [13:44:03]Write to MH i2c: 01 00 00 07 18 1F [13:44:03]Write i2c OK [13:44:03]MH_I2C_Read... [13:44:03]Read from MH i2c: 01 [13:44:03]MH_I2C_Read... [13:44:03]Read from MH i2c: 01 07 00 [13:44:03]MH_I2C_Read... [13:44:03]Read from MH i2c: 01 07 00 07 18 00 03 00 00 00 FF 0F 37 [13:44:03]state=3 [13:44:03]No paper [13:44:03]Cover opened [13:44:06]OFD Sender: No OFD packet to send [13:44:08]Write to MH i2c: 01 00 00 08 18 20 [13:44:08]Write i2c OK [13:44:08]MH_I2C_Read... [13:44:08]Read from MH i2c: 01 [13:44:08]MH_I2C_Read... [13:44:08]Read from MH i2c: 01 07 00 [13:44:08]MH_I2C_Read... [13:44:08]Read from MH i2c: 01 07 00 08 18 00 03 00 00 00 FF 0F 38 [13:44:08]state=3 [13:44:08]No paper [13:44:08]Cover opened [13:44:11]OFD Sender: No OFD packet to send [13:44:13]Write to MH i2c: 01 00 00 09 18 21 [13:44:13]Write i2c OK [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: 01 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: 01 07 00 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: 01 07 00 09 18 00 03 00 00 00 FF 0F 39 [13:44:13]state=3 [13:44:13]No paper [13:44:13]Cover opened [13:44:16]OFD Sender: No OFD packet to send [13:44:18]Write to MH i2c: 01 00 00 0A 18 22 [13:44:18]Write i2c OK [13:44:18]MH_I2C_Read... [13:44:18]Read from MH i2c: 01 [13:44:18]MH_I2C_Read... [13:44:18]Read from MH i2c: 01 07 00 [13:44:18]MH_I2C_Read... [13:44:18]Read from MH i2c: 01 07 00 0A 18 00 03 00 00 00 FF 0F 3A [13:44:18]state=3 [13:44:18]No paper [13:44:18]Cover opened [13:44:21]OFD Sender: No OFD packet to send [13:44:23]Write to MH i2c: 01 00 00 0B 18 23 [13:44:23]Write i2c OK [13:44:23]MH_I2C_Read... [13:44:23]Read from MH i2c: 01 [13:44:23]MH_I2C_Read... [13:44:23]Read from MH i2c: 01 07 00 [13:44:23]MH_I2C_Read... [13:44:23]Read from MH i2c: 01 07 00 0B 18 00 03 00 00 00 FF 0F 3B [13:44:23]state=3 [13:44:23]No paper [13:44:23]Cover opened [13:44:26]OFD Sender: No OFD packet to send [13:44:28]Write to MH i2c: 01 00 00 0C 18 24 [13:44:28]Write i2c OK [13:44:28]MH_I2C_Read... [13:44:28]Read from MH i2c: 01 [13:44:28]MH_I2C_Read... [13:44:28]Read from MH i2c: 01 07 00 [13:44:28]MH_I2C_Read... [13:44:28]Read from MH i2c: 01 07 00 0C 18 00 03 00 00 00 FF 0F 3C [13:44:28]state=3 [13:44:28]No paper [13:44:28]Cover opened [13:44:31]OFD Sender: No OFD packet to send [13:44:33]Write to MH i2c: 01 00 00 0D 18 25 [13:44:33]Write i2c OK [13:44:33]MH_I2C_Read... [13:44:33]Read from MH i2c: 01 [13:44:33]MH_I2C_Read... [13:44:33]Read from MH i2c: 01 07 00 [13:44:33]MH_I2C_Read... [13:44:33]Read from MH i2c: 01 07 00 0D 18 00 03 00 00 00 FF 0F 3D [13:44:33]state=3 [13:44:33]No paper [13:44:33]Cover opened [13:44:36]OFD Sender: No OFD packet to send [13:44:38]Write to MH i2c: 01 00 00 0E 18 26 [13:44:38]Write i2c OK [13:44:38]MH_I2C_Read... [13:44:38]Read from MH i2c: 01 [13:44:38]MH_I2C_Read... [13:44:38]Read from MH i2c: 01 07 00 [13:44:38]MH_I2C_Read... [13:44:38]Read from MH i2c: 01 07 00 0E 18 00 03 00 00 00 FF 0F 3E [13:44:38]state=3 [13:44:38]No paper [13:44:38]Cover opened [13:44:40]int [13:44:40]Write to MH i2c: 01 00 00 0F 18 27 [13:44:40]Write i2c OK [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: 01 [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: 01 07 00 [13:44:40]MH_I2C_Read... [13:44:40]*** FLAG_PRN_PAP2 reset [13:44:40]*** FLAG_PRN_PAP1 reset [13:44:40]Read from MH i2c: 01 07 00 0F 18 00 00 00 00 00 FF 0F 3C [13:44:40]state=3 [13:44:40]Cover closed [13:44:40]int [13:44:40]Write to MH i2c: 01 00 00 10 18 28 [13:44:40]*** FLAG_PRN_KEY set [13:44:40]Write i2c OK [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: 01 [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: 01 07 00 [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: 01 07 00 10 18 00 08 00 00 00 FF 0F 45 [13:44:40]state=0 [13:44:40]Key pressed [13:44:40]Feed [13:44:40]Write to MH i2c: D8 00 00 11 18 00 [13:44:40]Write i2c OK [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: D8 [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: D8 01 00 [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: D8 01 00 11 18 00 01 [13:44:40]int [13:44:40]Write to MH i2c: 01 00 00 12 18 2A [13:44:40]Write i2c OK [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: 01 [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: 01 07 00 [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: 01 07 00 12 18 00 48 00 00 00 3C 00 B5 [13:44:40]state=2 [13:44:40]Key pressed [13:44:41]int [13:44:41]Write to MH i2c: 01 00 00 13 18 2B [13:44:41]*** FLAG_PRN_KEY reset [13:44:41]Write i2c OK [13:44:41]MH_I2C_Read... [13:44:41]Read from MH i2c: 01 [13:44:41]MH_I2C_Read... [13:44:41]Read from MH i2c: 01 07 00 [13:44:41]MH_I2C_Read... [13:44:41]Read from MH i2c: 01 07 00 13 18 00 00 00 00 00 F6 0F 37 [13:44:41]state=2 [13:44:41]Stop feed [13:44:41]OFD Sender: No OFD packet to send [13:44:46]OFD Sender: No OFD packet to send [13:44:51]OFD Sender: No OFD packet to send [13:44:56]OFD Sender: No OFD packet to send [13:45:01]OFD Sender: No OFD packet to send [13:45:06]OFD Sender: No OFD packet to send [13:45:11]OFD Sender: No OFD packet to send [13:45:16]OFD Sender: No OFD packet to send [13:45:21]OFD Sender: No OFD packet to send [13:45:26]OFD Sender: No OFD packet to send [13:45:31]OFD Sender: No OFD packet to send [13:45:36]OFD Sender: No OFD packet to send [13:45:37]accept exits with 9 [13:45:37]New connection [13:45:37]New thread 3066834276 created [13:45:37]Thread 3066690916 joined [13:45:37]Waiting for new connection... [13:45:37] Sock 9.Parse request [13:45:37]Sock 9.Check first char [13:45:37]Sock 9.First char is OK [13:45:37]request: POST /json_proto HTTP/1.0 [13:45:37]Method: POST [13:45:37]URL: /json_proto [13:45:37]Method is POST - this is cgi request [13:45:37]url: /json_proto [13:45:37]query_string will be loaded in cgi processing [13:45:37]execute_cgi json_proto POST (null) [13:45:37]execute_cgi path=json_proto method=POST [13:45:37]POST find Content-Length [13:45:37]Host: 172.17.63.195:8080 [13:45:37]Content-Length: 677 [13:45:37]Content-Type: application/json [13:45:37] [13:45:37]POST finish read [13:45:37]Found Content-Length = 677 [13:45:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:45:37]execute_script... [13:45:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:45:37]POST & json_proto [13:45:37]process_json_proto [13:45:37]json parsed OK: [13:45:37]protocol is kg_v1.0 [13:45:37]action value=close_receipt [13:45:37]process_action close_receipt [13:45:37]cmd_close_receipt [13:45:37]MH_GetDate [13:45:37]Write to MH i2c: F0 00 00 14 18 1B [13:45:37]Write i2c OK [13:45:37]MH_I2C_Read... [13:45:37]Read from MH i2c: F0 [13:45:37]MH_I2C_Read... [13:45:37]Read from MH i2c: F0 09 00 [13:45:37]MH_I2C_Read... [13:45:37]Read from MH i2c: F0 09 00 14 18 00 82 F2 1C 67 68 46 19 67 49 [13:45:37]GetLastDocTimeStamp 1729950224 [13:45:37]current date 1729950338 [13:45:37]FM_GetShiftState [13:45:37]SAM_PROTO_GetShiftState [13:45:37]wFMCommunicate request_size=4 [13:45:37]MH_SAM_APDU [13:45:37]CAPDU: 80 13 01 00 [13:45:37]Write to MH i2c: E2 08 00 15 18 80 13 01 00 00 00 00 00 AA [13:45:37]Write i2c OK [13:45:37]MH_I2C_Read... [13:45:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:37]Read from MH i2c: E2 [13:45:37]MH_I2C_Read... [13:45:37]Read from MH i2c: E2 0E 00 [13:45:37]MH_I2C_Read... [13:45:37]Read from MH i2c: E2 0E 00 15 18 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 B9 [13:45:37]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:45:37]wFMCommunicate OK [13:45:37]SAM_PROTO_GetShiftState done [13:45:37]FM_GetShiftState done [13:45:37]opened in 1729900879 [13:45:37]opened+sec_in_day 1729987279 [13:45:37]quantity*price = 20003 [13:45:37]sum+1 = 20004 [13:45:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 267 26.10.2024 13:45 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201505 ФПД: 232345374930755 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134538&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201505&fm=232345374930755&tin=02508201610067®Number=0000000000091777&sum=20000 [13:45:38]StoreToDocumentArchive [13:45:38]shift 543 fd 201505 [13:45:38]save to /storage/0543/doc_00201505 [13:45:38]save last doc name /storage/0543/doc_00201505 to /storage/kkm_last_doc_name [13:45:38]save OK [13:45:38]Clear old archive folders... [13:45:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:45:38]tlvbuf is 01F58DB0 [13:45:38]SAM_PROTO_ClearQueue [13:45:38]wFMCommunicate request_size=4 [13:45:38]MH_SAM_APDU [13:45:38]CAPDU: 80 09 00 00 [13:45:38]Write to MH i2c: E2 08 00 22 18 80 09 00 00 00 00 00 00 AC [13:45:38]Write i2c OK [13:45:38]MH_I2C_Read... [13:45:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:38]Read from MH i2c: E2 [13:45:38]MH_I2C_Read... [13:45:38]Read from MH i2c: E2 03 00 [13:45:38]MH_I2C_Read... [13:45:38]Read from MH i2c: E2 03 00 22 18 00 90 00 AE [13:45:38]RAPDU: 90 00 [13:45:38]wFMCommunicate OK [13:45:38]SAM_PROTO_ClearQueue done [13:45:38]KKMCreateOFDPacket [13:45:38]OFDProtocolAddRootSTLVToBuf [13:45:38]FM_MakeSignedData [13:45:38]FM_MakeSignedData [13:45:38]SAM_PROTO_SignData [13:45:38]wFMCommunicate request_size=4 [13:45:38]MH_SAM_APDU [13:45:38]CAPDU: 80 0D 01 02 [13:45:38]Write to MH i2c: E2 08 00 23 18 80 0D 01 02 00 00 00 00 B4 [13:45:38]Write i2c OK [13:45:38]MH_I2C_Read... [13:45:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:38]Read from MH i2c: E2 [13:45:38]MH_I2C_Read... [13:45:38]Read from MH i2c: E2 03 00 [13:45:38]MH_I2C_Read... [13:45:38]Read from MH i2c: E2 03 00 23 18 00 90 00 AF [13:45:38]RAPDU: 90 00 [13:45:38]wFMCommunicate OK [13:45:38]wFMCommunicate request_size=255 [13:45:38]MH_SAM_APDU [13:45:38]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 32 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 0B 01 00 00 F4 03 04 00 82 F2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 21 13 03 00 35 04 06 00 D3 [13:45:38]Write to MH i2c: E2 02 01 24 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0B 01 00 00 F4 03 04 00 82 F2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 21 13 03 00 35 04 06 00 D3 00 00 38 [13:45:38]Write i2c OK [13:45:38]MH_I2C_Read... [13:45:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:38]Read from MH i2c: E2 [13:45:38]MH_I2C_Read... [13:45:38]Read from MH i2c: E2 03 00 [13:45:38]MH_I2C_Read... [13:45:38]Read from MH i2c: E2 03 00 24 18 00 90 00 B0 [13:45:38]RAPDU: 90 00 [13:45:38]wFMCommunicate OK [13:45:38]wFMCommunicate request_size=10 [13:45:38]MH_SAM_APDU [13:45:38]CAPDU: 80 0D 02 02 05 51 1F 89 B7 43 [13:45:38]Write to MH i2c: E2 0D 00 25 18 80 0D 02 02 05 00 51 1F 89 B7 43 00 00 B4 [13:45:38]Write i2c OK [13:45:38]MH_I2C_Read... [13:45:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:38]Read from MH i2c: E2 [13:45:38]MH_I2C_Read... [13:45:38]Read from MH i2c: E2 03 00 [13:45:38]MH_I2C_Read... [13:45:38]Read from MH i2c: E2 03 00 25 18 00 90 00 B1 [13:45:38]RAPDU: 90 00 [13:45:38]wFMCommunicate OK [13:45:38]wFMCommunicate request_size=4 [13:45:38]MH_SAM_APDU [13:45:38]CAPDU: 80 0D 03 02 [13:45:38]Write to MH i2c: E2 08 00 26 18 80 0D 03 02 00 00 00 00 B9 [13:45:38]Write i2c OK [13:45:38]MH_I2C_Read... [13:45:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:38]Read from MH i2c: E2 [13:45:38]MH_I2C_Read... [13:45:38]Read from MH i2c: E2 0B 00 [13:45:38]MH_I2C_Read... [13:45:38]Read from MH i2c: E2 0B 00 26 18 00 07 31 15 A5 18 3C 44 DC 90 00 20 [13:45:38]RAPDU: 07 31 15 A5 18 3C 44 DC 90 00 [13:45:38]wFMCommunicate OK [13:45:38]SAM_PROTO_SignData done [13:45:38]FM_MakeSignedData done [13:45:38]CreateOFDProtocolMessage [13:45:38]wFMCommunicate request_size=4 [13:45:38]MH_SAM_APDU [13:45:38]CAPDU: 80 11 00 00 [13:45:38]Write to MH i2c: E2 08 00 27 18 80 11 00 00 00 00 00 00 B9 [13:45:38]Write i2c OK [13:45:38]MH_I2C_Read... [13:45:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:38]Read from MH i2c: E2 [13:45:38]MH_I2C_Read... [13:45:38]Read from MH i2c: E2 17 00 [13:45:38]MH_I2C_Read... [13:45:38]Read from MH i2c: E2 17 00 27 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0E [13:45:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:45:38]wFMCommunicate OK [13:45:38]CreateOFDProtocolMessage done [13:45:38]OFDSenderStorePacket 201505 [13:45:38]StoreOFDPacket docnum=201505 [13:45:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 06 B7 07 01 94 C8 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 32 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 0B 01 00 00 F4 03 04 00 82 F2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 21 13 03 00 35 04 06 00 D3 51 1F 89 B7 43 07 31 15 A5 18 3C 44 DC [13:45:38]CheckFolder [13:45:38]dirname=/storage/ofd_packets [13:45:38]CheckFolder done [13:45:38]ProducePacketName [13:45:38]name=ofd_packets/00201505 [13:45:38]NVStorageSaveData ofd_packets/00201505 [13:45:38]File name is /storage/ofd_packets/00201505 [13:45:38]Write 301 bytes [13:45:38]NVStorageSaveData done [13:45:38]OFDSenderStorePacket done [13:45:38]KKMCreateOFDPacket done [13:45:38]NVStorageSaveData kkm_last_timestamp [13:45:38]File name is /storage/kkm_last_timestamp [13:45:38]Write 4 bytes [13:45:38]NVStorageSaveData done [13:45:38]ExternCall_PrintAddStr [13:45:38]wPrintStart [13:45:38]Write to MH i2c: 01 00 00 28 18 40 [13:45:38]Write i2c OK [13:45:38]MH_I2C_Read... [13:45:38]Read from MH i2c: 01 [13:45:38]MH_I2C_Read... [13:45:38]Read from MH i2c: 01 07 00 [13:45:38]MH_I2C_Read... [13:45:38]Read from MH i2c: 01 07 00 28 18 00 00 00 00 00 FF 0F 55 [13:45:38]RasterBufferAndPrint [13:45:38]line Счет N : (1)449257 [13:45:38]line ИНН: 02508201610067 [13:45:38]line Контрольно-Кассовый Чек [13:45:38]line ПРОДАЖА [13:45:38]line ТРК (МРК, ГНК) : 62 [13:45:38]line Товар: 2710124130 [13:45:38]line Аи-92-К-2 [13:45:38]line 2.990 * 66.90 [13:45:38]line = 200.03 [13:45:38]line НДС 12% НСП 1% [13:45:38]line > о реализуемом товаре [13:45:38]line ОКРУГЛЕНИЕ: -0.03 [13:45:38]line ИТОГО: 200.00 [13:45:38]line Внесено: 200.00 [13:45:38]line СДАЧА: 0.00 [13:45:38]line НСП 1% : 1.77 [13:45:38]line НДС 12% : 21.24 [13:45:38]line Наличными: 200.00 [13:45:38]line Безнал.: 0.00 [13:45:38]line Место: АЗС № 171 "Партнер Нефть" [13:45:38]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:45:38]line СНО: Общий режим [13:45:38]line Чек 267 26.10.2024 13:45 [13:45:38]line Смена: 543 ФФД: 1.0 [13:45:38]line ЗНМ: 0300000109 [13:45:38]line РНМ: 0000000000091777 [13:45:38]line Версия ККМ: 001 [13:45:38]line ФМ: 0000000000871756 [13:45:38]line ФД: 201505 [13:45:38]line ФПД: 232345374930755 [13:45:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134538&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201505&fm=232345374930755&tin=02508201610067®Number=0000000000091777&sum=20000 [13:45:39]OFD Sender: Processing packet 201505 [packets to send 112, broken 111] [13:45:39]ProducePacketName [13:45:39]name=ofd_packets/00201505 [13:45:39]OFD Sender: To server: pG, [13:45:39]CommunicateWithHost lk.salyk.kg:30040 [13:45:39]ConnectInit lk.salyk.kg [13:45:39]written 0, free lines is 4095 [13:45:39]Connected sock=10 [13:45:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 06 B7 07 01 94 C8 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 32 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 0B 01 00 00 F4 03 04 00 82 F2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 21 13 03 00 35 04 06 00 D3 51 1F 89 B7 43 07 31 15 A5 18 3C 44 DC [13:45:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 21 FF 47 00 2B 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 21 13 03 00 F4 03 04 00 2B 9E 1C 67 B6 04 01 00 00 F5 CE 59 AE F6 6E 8B A7 [13:45:39]CommunicateWithHost err = 0 [13:45:39]CheckOFDResponse [13:45:39]1017 (14) - 77093643461234 [13:45:39]1041 (16) - 0000000000871756 [13:45:39]1040 (4) - 201505 [13:45:39]1012 (4) - 26.10.2024 07:45 [13:45:39]1206 (1) - 0 [13:45:39]OFD Sender: Remove packet 201505 [13:45:39]ProducePacketName [13:45:39]name=ofd_packets/00201505 [13:45:39]NVStorageDeleteData [13:45:39]Write to MH i2c: 01 00 00 53 18 6B [13:45:39]Write i2c OK [13:45:39]MH_I2C_Read... [13:45:39]Read from MH i2c: 01 [13:45:39]MH_I2C_Read... [13:45:39]Read from MH i2c: 01 07 00 [13:45:39]MH_I2C_Read... [13:45:39]Read from MH i2c: 01 07 00 53 18 00 00 00 00 00 92 0C 10 [13:45:39]RasterBufferAndPrint [13:45:39]line [13:45:39]line [13:45:39]line [13:45:39]line [13:45:39]line [13:45:39]written 0, free lines is 3223 [13:45:39]MH_Cut [13:45:39]Write to MH i2c: D1 01 00 5A 18 01 44 [13:45:39]Write i2c OK [13:45:39]MH_I2C_Read... [13:45:39]Read from MH i2c: D1 [13:45:39]MH_I2C_Read... [13:45:39]Read from MH i2c: D1 01 00 [13:45:39]MH_I2C_Read... [13:45:39]Read from MH i2c: D1 01 00 5A 18 00 43 [13:45:39]Write to MH i2c: 01 00 00 5B 18 73 [13:45:39]Write i2c OK [13:45:39]MH_I2C_Read... [13:45:39]OFD Sender: No OFD packet to send [13:45:40]*** Cut start [13:45:40]*** Purtial cut [13:45:40]*** Stage 1: CUTSNS_PIN = 1 [13:45:40]Read from MH i2c: 01 [13:45:40]MH_I2C_Read... [13:45:40]*** Stop cut motor [13:45:40]*** Cut end [13:45:40]Read from MH i2c: 01 07 00 [13:45:40]MH_I2C_Read... [13:45:40]Read from MH i2c: 01 07 00 5B 18 00 00 00 00 00 FF 0F 88 [13:45:40]process_action close_receipt done [13:45:40]requested_data is exist [13:45:40]produce_requested_data [13:45:40]requested_item fm.sn is exist - process it [13:45:40]wFMCommunicate request_size=4 [13:45:40]MH_SAM_APDU [13:45:40]CAPDU: 80 11 00 00 [13:45:40]Write to MH i2c: E2 08 00 5C 18 80 11 00 00 00 00 00 00 EE [13:45:40]Write i2c OK [13:45:40]MH_I2C_Read... [13:45:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:40]Read from MH i2c: E2 [13:45:40]MH_I2C_Read... [13:45:40]Read from MH i2c: E2 17 00 [13:45:40]MH_I2C_Read... [13:45:40]Read from MH i2c: E2 17 00 5C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 43 [13:45:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:45:40]wFMCommunicate OK [13:45:40]requested_item fd.num is exist - process it [13:45:40]SAM_PROTO_GetFieldsCounters [13:45:40]wFMCommunicate request_size=4 [13:45:40]MH_SAM_APDU [13:45:40]CAPDU: 80 13 00 00 [13:45:40]Write to MH i2c: E2 08 00 5D 18 80 13 00 00 00 00 00 00 F1 [13:45:40]Write i2c OK [13:45:40]MH_I2C_Read... [13:45:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:40]Read from MH i2c: E2 [13:45:40]MH_I2C_Read... [13:45:40]Read from MH i2c: E2 62 00 [13:45:40]MH_I2C_Read... [13:45:40]Read from MH i2c: E2 62 00 5D 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 21 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 96 [13:45:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 21 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:45:40]wFMCommunicate OK [13:45:40]SAM_PROTO_GetFieldsCounters done [13:45:40]requested_item shift.num is exist - process it [13:45:40]requested_item shift.opened is exist - process it [13:45:40]req_shift_opened [13:45:40]FM_GetShiftState [13:45:40]SAM_PROTO_GetShiftState [13:45:40]wFMCommunicate request_size=4 [13:45:40]MH_SAM_APDU [13:45:40]CAPDU: 80 13 01 00 [13:45:40]Write to MH i2c: E2 08 00 5E 18 80 13 01 00 00 00 00 00 F3 [13:45:40]Write i2c OK [13:45:40]MH_I2C_Read... [13:45:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:40]Read from MH i2c: E2 [13:45:40]MH_I2C_Read... [13:45:40]Read from MH i2c: E2 0E 00 [13:45:40]MH_I2C_Read... [13:45:40]Read from MH i2c: E2 0E 00 5E 18 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 02 [13:45:40]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:45:40]wFMCommunicate OK [13:45:40]SAM_PROTO_GetShiftState done [13:45:40]FM_GetShiftState done [13:45:40]req_shift_opened done [13:45:40]requested_item shift.open_date is exist - process it [13:45:40]req_shift_open_date [13:45:40]req_shift_open_date done [13:45:40]produce_requested_data done [13:45:40]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201505,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:45:40]process_action_free close_receipt [13:45:40]json_value_free [13:45:40]json_value_free done [13:45:40]process_json_proto returns [13:45:40]Send response to host [13:45:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201505,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:45:40]free response buf [13:45:40]execute_script done [13:45:40]execute_script returns [13:45:40]free content buf [13:45:40]Sock 9.Close socket [13:45:40]Sock 9.Thread stoped [13:45:44]accept exits with 8 [13:45:44]New connection [13:45:44]New thread 3066690916 created [13:45:44]Thread 3066834276 joined [13:45:44]Waiting for new connection... [13:45:44] Sock 8.Parse request [13:45:44]Sock 8.Check first char [13:45:44]Sock 8.First char is OK [13:45:44]request: POST /json_proto HTTP/1.0 [13:45:44]Method: POST [13:45:44]URL: /json_proto [13:45:44]Method is POST - this is cgi request [13:45:44]url: /json_proto [13:45:44]query_string will be loaded in cgi processing [13:45:44]execute_cgi json_proto POST (null) [13:45:44]execute_cgi path=json_proto method=POST [13:45:44]POST find Content-Length [13:45:44]Host: 172.17.63.195:8080 [13:45:44]Content-Length: 812 [13:45:44]Content-Type: application/json [13:45:44] [13:45:44]POST finish read [13:45:44]Found Content-Length = 812 [13:45:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:44]execute_script... [13:45:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:44]POST & json_proto [13:45:44]process_json_proto [13:45:44]json parsed OK: [13:45:44]protocol is kg_v1.0 [13:45:44]action value=close_receipt [13:45:44]process_action close_receipt [13:45:44]cmd_close_receipt [13:45:44]MH_GetDate [13:45:44]Write to MH i2c: F0 00 00 5F 18 66 [13:45:44]Write i2c OK [13:45:44]MH_I2C_Read... [13:45:44]Read from MH i2c: F0 [13:45:44]MH_I2C_Read... [13:45:44]Read from MH i2c: F0 09 00 [13:45:44]MH_I2C_Read... [13:45:44]Read from MH i2c: F0 09 00 5F 18 00 89 F2 1C 67 68 46 19 67 9B [13:45:44]GetLastDocTimeStamp 1729950338 [13:45:44]current date 1729950345 [13:45:44]FM_GetShiftState [13:45:44]SAM_PROTO_GetShiftState [13:45:44]wFMCommunicate request_size=4 [13:45:44]MH_SAM_APDU [13:45:44]CAPDU: 80 13 01 00 [13:45:44]Write to MH i2c: E2 08 00 60 18 80 13 01 00 00 00 00 00 F5 [13:45:44]Write i2c OK [13:45:44]MH_I2C_Read... [13:45:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:44]Read from MH i2c: E2 [13:45:44]MH_I2C_Read... [13:45:44]Read from MH i2c: E2 0E 00 [13:45:44]MH_I2C_Read... [13:45:44]Read from MH i2c: E2 0E 00 60 18 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 04 [13:45:44]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:45:44]wFMCommunicate OK [13:45:44]SAM_PROTO_GetShiftState done [13:45:44]FM_GetShiftState done [13:45:44]opened in 1729900879 [13:45:44]opened+sec_in_day 1729987279 [13:45:44]quantity*price = 100000 [13:45:44]sum+1 = 100002 [13:45:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.01 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.01 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 268 26.10.2024 13:45 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871756 ФД: 201506 ФПД: 156602131477951 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134545&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201506&fm=156602131477951&tin=02508201610067®Number=0000000000091777&sum=100001 [13:45:45]StoreToDocumentArchive [13:45:45]shift 543 fd 201506 [13:45:45]save to /storage/0543/doc_00201506 [13:45:45]save last doc name /storage/0543/doc_00201506 to /storage/kkm_last_doc_name [13:45:45]save OK [13:45:45]Clear old archive folders... [13:45:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:45:45]tlvbuf is B6E8B990 [13:45:45]SAM_PROTO_ClearQueue [13:45:45]wFMCommunicate request_size=4 [13:45:45]MH_SAM_APDU [13:45:45]CAPDU: 80 09 00 00 [13:45:45]Write to MH i2c: E2 08 00 6D 18 80 09 00 00 00 00 00 00 F7 [13:45:45]Write i2c OK [13:45:45]MH_I2C_Read... [13:45:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:45]Read from MH i2c: E2 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: E2 03 00 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: E2 03 00 6D 18 00 90 00 F9 [13:45:45]RAPDU: 90 00 [13:45:45]wFMCommunicate OK [13:45:45]SAM_PROTO_ClearQueue done [13:45:45]KKMCreateOFDPacket [13:45:45]OFDProtocolAddRootSTLVToBuf [13:45:45]FM_MakeSignedData [13:45:45]FM_MakeSignedData [13:45:45]SAM_PROTO_SignData [13:45:45]wFMCommunicate request_size=4 [13:45:45]MH_SAM_APDU [13:45:45]CAPDU: 80 0D 01 02 [13:45:45]Write to MH i2c: E2 08 00 6E 18 80 0D 01 02 00 00 00 00 FF [13:45:45]Write i2c OK [13:45:45]MH_I2C_Read... [13:45:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:45]Read from MH i2c: E2 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: E2 03 00 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: E2 03 00 6E 18 00 90 00 FA [13:45:45]RAPDU: 90 00 [13:45:45]wFMCommunicate OK [13:45:45]wFMCommunicate request_size=255 [13:45:45]MH_SAM_APDU [13:45:45]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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 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 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 89 F2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 22 13 03 00 35 04 06 00 [13:45:45]Write to MH i2c: E2 02 01 6F 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 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 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 89 F2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 22 13 03 00 35 04 06 00 00 00 CE [13:45:45]Write i2c OK [13:45:45]MH_I2C_Read... [13:45:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:45]Read from MH i2c: E2 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: E2 03 00 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: E2 03 00 6F 18 00 90 00 FB [13:45:45]RAPDU: 90 00 [13:45:45]wFMCommunicate OK [13:45:45]wFMCommunicate request_size=11 [13:45:45]MH_SAM_APDU [13:45:45]CAPDU: 80 0D 02 02 06 8E 6D C6 6A F5 BF [13:45:45]Write to MH i2c: E2 0E 00 70 18 80 0D 02 02 06 00 8E 6D C6 6A F5 BF 00 00 ED [13:45:45]Write i2c OK [13:45:45]MH_I2C_Read... [13:45:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:45]Read from MH i2c: E2 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: E2 03 00 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: E2 03 00 70 18 00 90 00 FC [13:45:45]RAPDU: 90 00 [13:45:45]wFMCommunicate OK [13:45:45]wFMCommunicate request_size=4 [13:45:45]MH_SAM_APDU [13:45:45]CAPDU: 80 0D 03 02 [13:45:45]Write to MH i2c: E2 08 00 71 18 80 0D 03 02 00 00 00 00 04 [13:45:45]Write i2c OK [13:45:45]MH_I2C_Read... [13:45:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:45]Read from MH i2c: E2 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: E2 0B 00 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: E2 0B 00 71 18 00 35 89 E7 B8 E0 5B AD 5F 90 00 A9 [13:45:45]RAPDU: 35 89 E7 B8 E0 5B AD 5F 90 00 [13:45:45]wFMCommunicate OK [13:45:45]SAM_PROTO_SignData done [13:45:45]FM_MakeSignedData done [13:45:45]CreateOFDProtocolMessage [13:45:45]wFMCommunicate request_size=4 [13:45:45]MH_SAM_APDU [13:45:45]CAPDU: 80 11 00 00 [13:45:45]Write to MH i2c: E2 08 00 72 18 80 11 00 00 00 00 00 00 04 [13:45:45]Write i2c OK [13:45:45]MH_I2C_Read... [13:45:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:45]Read from MH i2c: E2 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: E2 17 00 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: E2 17 00 72 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 59 [13:45:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:45:45]wFMCommunicate OK [13:45:45]CreateOFDProtocolMessage done [13:45:45]OFDSenderStorePacket 201506 [13:45:45]StoreOFDPacket docnum=201506 [13:45:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 27 23 08 01 CB ED 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 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 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 89 F2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 22 13 03 00 35 04 06 00 8E 6D C6 6A F5 BF 35 89 E7 B8 E0 5B AD 5F [13:45:45]CheckFolder [13:45:45]dirname=/storage/ofd_packets [13:45:45]CheckFolder done [13:45:45]ProducePacketName [13:45:45]name=ofd_packets/00201506 [13:45:45]NVStorageSaveData ofd_packets/00201506 [13:45:45]File name is /storage/ofd_packets/00201506 [13:45:45]Write 302 bytes [13:45:45]NVStorageSaveData done [13:45:45]OFDSenderStorePacket done [13:45:45]KKMCreateOFDPacket done [13:45:45]NVStorageSaveData kkm_last_timestamp [13:45:45]File name is /storage/kkm_last_timestamp [13:45:45]Write 4 bytes [13:45:45]NVStorageSaveData done [13:45:45]ExternCall_PrintAddStr [13:45:45]wPrintStart [13:45:45]Write to MH i2c: 01 00 00 73 18 8B [13:45:45]Write i2c OK [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: 01 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: 01 07 00 [13:45:45]MH_I2C_Read... [13:45:45]Read from MH i2c: 01 07 00 73 18 00 00 00 00 00 FF 0F A0 [13:45:45]RasterBufferAndPrint [13:45:45]line Счет N : (1)449256 [13:45:45]line ИНН: 02508201610067 [13:45:45]line Контрольно-Кассовый Чек [13:45:45]line ПРОДАЖА [13:45:45]line ТРК (МРК, ГНК) : 42 [13:45:45]line Товар: 2710124130 [13:45:45]line SUPER 92-К-5 [13:45:45]line 14.620 * 68.40 [13:45:45]line = 1000.01 [13:45:45]line НДС 12% НСП 1% [13:45:45]line > о реализуемом товаре [13:45:45]line ИТОГО: 1000.01 [13:45:45]line НСП 1% : 8.85 [13:45:45]line НДС 12% : 106.20 [13:45:45]line Наличными: 0.00 [13:45:45]line Безнал.: 1000.01 [13:45:45]line Место: АЗС № 171 "Партнер Нефть" [13:45:45]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:45:45]line СНО: Общий режим [13:45:45]line Чек 268 26.10.2024 13:45 [13:45:45]line Смена: 543 ФФД: 1.0 [13:45:45]line ЗНМ: 0300000109 [13:45:45]line РНМ: 0000000000091777 [13:45:45]line Версия ККМ: 001 [13:45:45]line Платежная система: Бакай Банк [13:45:45]line ФМ: 0000000000871756 [13:45:45]line ФД: 201506 [13:45:45]line ФПД: 156602131477951 [13:45:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134545&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201506&fm=156602131477951&tin=02508201610067®Number=0000000000091777&sum=100001 [13:45:45]OFD Sender: Processing packet 201506 [packets to send 112, broken 111] [13:45:45]ProducePacketName [13:45:45]name=ofd_packets/00201506 [13:45:45]OFD Sender: To server: pG, [13:45:45]CommunicateWithHost lk.salyk.kg:30040 [13:45:45]ConnectInit lk.salyk.kg [13:45:46]written 0, free lines is 4095 [13:45:46]Connected sock=10 [13:45:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 27 23 08 01 CB ED 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 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 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 89 F2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 22 13 03 00 35 04 06 00 8E 6D C6 6A F5 BF 35 89 E7 B8 E0 5B AD 5F [13:45:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 0D 34 47 00 20 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 22 13 03 00 F4 03 04 00 31 9E 1C 67 B6 04 01 00 00 B6 C6 10 CD F6 F0 2C 6C [13:45:46]CommunicateWithHost err = 0 [13:45:46]CheckOFDResponse [13:45:46]1017 (14) - 77093643461234 [13:45:46]1041 (16) - 0000000000871756 [13:45:46]1040 (4) - 201506 [13:45:46]1012 (4) - 26.10.2024 07:45 [13:45:46]1206 (1) - 0 [13:45:46]OFD Sender: Remove packet 201506 [13:45:46]ProducePacketName [13:45:46]name=ofd_packets/00201506 [13:45:46]NVStorageDeleteData [13:45:46]Write to MH i2c: 01 00 00 9D 18 B5 [13:45:46]Write i2c OK [13:45:46]MH_I2C_Read... [13:45:46]Read from MH i2c: 01 [13:45:46]MH_I2C_Read... [13:45:46]Read from MH i2c: 01 07 00 [13:45:46]MH_I2C_Read... [13:45:46]Read from MH i2c: 01 07 00 9D 18 00 00 00 00 00 A8 0C 70 [13:45:46]RasterBufferAndPrint [13:45:46]line [13:45:46]line [13:45:46]line [13:45:46]line [13:45:46]line [13:45:46]written 0, free lines is 3248 [13:45:46]MH_Cut [13:45:46]Write to MH i2c: D1 01 00 A4 18 01 8E [13:45:46]Write i2c OK [13:45:46]MH_I2C_Read... [13:45:46]Read from MH i2c: D1 [13:45:46]MH_I2C_Read... [13:45:46]Read from MH i2c: D1 01 00 [13:45:46]MH_I2C_Read... [13:45:46]Read from MH i2c: D1 01 00 A4 18 00 8D [13:45:46]Write to MH i2c: 01 00 00 A5 18 BD [13:45:46]Write i2c OK [13:45:46]MH_I2C_Read... [13:45:46]OFD Sender: No OFD packet to send [13:45:47]*** Cut start [13:45:47]*** Purtial cut [13:45:47]*** CUTSNS_PIN = 0 [13:45:47]*** Stage 1: CUTSNS_PIN = 1 [13:45:49]Read from MH i2c: 01 [13:45:49]MH_I2C_Read... [13:45:49]*** Stop cut motor [13:45:49]*** Cut end [13:45:49]Read from MH i2c: 01 07 00 [13:45:49]MH_I2C_Read... [13:45:49]Read from MH i2c: 01 07 00 A5 18 00 00 00 00 00 FF 0F D2 [13:45:49]process_action close_receipt done [13:45:49]requested_data is exist [13:45:49]produce_requested_data [13:45:49]requested_item fm.sn is exist - process it [13:45:49]wFMCommunicate request_size=4 [13:45:49]MH_SAM_APDU [13:45:49]CAPDU: 80 11 00 00 [13:45:49]Write to MH i2c: E2 08 00 A6 18 80 11 00 00 00 00 00 00 38 [13:45:49]Write i2c OK [13:45:49]MH_I2C_Read... [13:45:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:49]Read from MH i2c: E2 [13:45:49]MH_I2C_Read... [13:45:49]Read from MH i2c: E2 17 00 [13:45:49]MH_I2C_Read... [13:45:49]Read from MH i2c: E2 17 00 A6 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8D [13:45:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:45:49]wFMCommunicate OK [13:45:49]requested_item fd.num is exist - process it [13:45:49]SAM_PROTO_GetFieldsCounters [13:45:49]wFMCommunicate request_size=4 [13:45:49]MH_SAM_APDU [13:45:49]CAPDU: 80 13 00 00 [13:45:49]Write to MH i2c: E2 08 00 A7 18 80 13 00 00 00 00 00 00 3B [13:45:49]Write i2c OK [13:45:49]MH_I2C_Read... [13:45:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:49]Read from MH i2c: E2 [13:45:49]MH_I2C_Read... [13:45:49]Read from MH i2c: E2 62 00 [13:45:49]MH_I2C_Read... [13:45:49]Read from MH i2c: E2 62 00 A7 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 22 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 E4 [13:45:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 22 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:45:49]wFMCommunicate OK [13:45:49]SAM_PROTO_GetFieldsCounters done [13:45:49]requested_item shift.num is exist - process it [13:45:49]requested_item shift.opened is exist - process it [13:45:49]req_shift_opened [13:45:49]FM_GetShiftState [13:45:49]SAM_PROTO_GetShiftState [13:45:49]wFMCommunicate request_size=4 [13:45:49]MH_SAM_APDU [13:45:49]CAPDU: 80 13 01 00 [13:45:49]Write to MH i2c: E2 08 00 A8 18 80 13 01 00 00 00 00 00 3D [13:45:49]Write i2c OK [13:45:49]MH_I2C_Read... [13:45:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:49]Read from MH i2c: E2 [13:45:49]MH_I2C_Read... [13:45:49]Read from MH i2c: E2 0E 00 [13:45:49]MH_I2C_Read... [13:45:49]Read from MH i2c: E2 0E 00 A8 18 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 4C [13:45:49]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:45:49]wFMCommunicate OK [13:45:49]SAM_PROTO_GetShiftState done [13:45:49]FM_GetShiftState done [13:45:49]req_shift_opened done [13:45:49]requested_item shift.open_date is exist - process it [13:45:49]req_shift_open_date [13:45:49]req_shift_open_date done [13:45:49]produce_requested_data done [13:45:49]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201506,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:45:49]process_action_free close_receipt [13:45:49]json_value_free [13:45:49]json_value_free done [13:45:49]process_json_proto returns [13:45:49]Send response to host [13:45:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201506,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:45:49]free response buf [13:45:49]execute_script done [13:45:49]execute_script returns [13:45:49]free content buf [13:45:49]Sock 8.Close socket [13:45:49]Sock 8.Thread stoped [13:45:51]OFD Sender: No OFD packet to send [13:45:56]OFD Sender: No OFD packet to send [13:46:01]OFD Sender: No OFD packet to send [13:46:06]OFD Sender: No OFD packet to send [13:46:11]OFD Sender: No OFD packet to send [13:46:16]OFD Sender: No OFD packet to send [13:46:21]OFD Sender: No OFD packet to send [13:46:26]OFD Sender: No OFD packet to send [13:46:31]OFD Sender: No OFD packet to send [13:46:36]OFD Sender: No OFD packet to send [13:46:41]OFD Sender: No OFD packet to send [13:46:46]OFD Sender: No OFD packet to send [13:46:51]OFD Sender: No OFD packet to send [13:46:56]OFD Sender: No OFD packet to send [13:47:01]OFD Sender: No OFD packet to send [13:47:03]accept exits with 9 [13:47:03]New connection [13:47:03]New thread 3066834276 created [13:47:03]Thread 3066690916 joined [13:47:03]Waiting for new connection... [13:47:03] Sock 9.Parse request [13:47:03]Sock 9.Check first char [13:47:03]Sock 9.First char is OK [13:47:03]request: POST /json_proto HTTP/1.0 [13:47:03]Method: POST [13:47:03]URL: /json_proto [13:47:03]Method is POST - this is cgi request [13:47:03]url: /json_proto [13:47:03]query_string will be loaded in cgi processing [13:47:03]execute_cgi json_proto POST (null) [13:47:03]execute_cgi path=json_proto method=POST [13:47:03]POST find Content-Length [13:47:03]Host: 172.17.63.195:8080 [13:47:03]Content-Length: 677 [13:47:03]Content-Type: application/json [13:47:03] [13:47:03]POST finish read [13:47:03]Found Content-Length = 677 [13:47:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:47:03]execute_script... [13:47: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)449258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:47:03]POST & json_proto [13:47:03]process_json_proto [13:47:03]json parsed OK: [13:47:03]protocol is kg_v1.0 [13:47:03]action value=close_receipt [13:47:03]process_action close_receipt [13:47:03]cmd_close_receipt [13:47:03]MH_GetDate [13:47:03]Write to MH i2c: F0 00 00 A9 18 B0 [13:47:03]Write i2c OK [13:47:03]MH_I2C_Read... [13:47:03]Read from MH i2c: F0 [13:47:03]MH_I2C_Read... [13:47:03]Read from MH i2c: F0 09 00 [13:47:03]MH_I2C_Read... [13:47:03]Read from MH i2c: F0 09 00 A9 18 00 D8 F2 1C 67 68 46 19 67 34 [13:47:03]GetLastDocTimeStamp 1729950345 [13:47:03]current date 1729950424 [13:47:03]FM_GetShiftState [13:47:03]SAM_PROTO_GetShiftState [13:47:03]wFMCommunicate request_size=4 [13:47:03]MH_SAM_APDU [13:47:03]CAPDU: 80 13 01 00 [13:47:03]Write to MH i2c: E2 08 00 AA 18 80 13 01 00 00 00 00 00 3F [13:47:03]Write i2c OK [13:47:03]MH_I2C_Read... [13:47:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:04]Read from MH i2c: E2 [13:47:04]MH_I2C_Read... [13:47:04]Read from MH i2c: E2 0E 00 [13:47:04]MH_I2C_Read... [13:47:04]Read from MH i2c: E2 0E 00 AA 18 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 4E [13:47:04]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:47:04]wFMCommunicate OK [13:47:04]SAM_PROTO_GetShiftState done [13:47:04]FM_GetShiftState done [13:47:04]opened in 1729900879 [13:47:04]opened+sec_in_day 1729987279 [13:47:04]quantity*price = 29034 [13:47:04]sum+1 = 29036 [13:47:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 290.00 Внесено: 290.00 СДАЧА: 0.00 НСП 1% : 2.57 НДС 12% : 30.83 Наличными: 290.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 269 26.10.2024 13:47 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201507 ФПД: 50409858113587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134705&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201507&fm=50409858113587&tin=02508201610067®Number=0000000000091777&sum=29000 [13:47:05]StoreToDocumentArchive [13:47:05]shift 543 fd 201507 [13:47:05]save to /storage/0543/doc_00201507 [13:47:05]save last doc name /storage/0543/doc_00201507 to /storage/kkm_last_doc_name [13:47:05]save OK [13:47:05]Clear old archive folders... [13:47:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:47:05]tlvbuf is B6F3BBD0 [13:47:05]SAM_PROTO_ClearQueue [13:47:05]wFMCommunicate request_size=4 [13:47:05]MH_SAM_APDU [13:47:05]CAPDU: 80 09 00 00 [13:47:05]Write to MH i2c: E2 08 00 B7 18 80 09 00 00 00 00 00 00 41 [13:47:05]Write i2c OK [13:47:05]MH_I2C_Read... [13:47:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:47:05]Read from MH i2c: E2 [13:47:05]MH_I2C_Read... [13:47:05]Read from MH i2c: E2 03 00 [13:47:05]MH_I2C_Read... [13:47:05]Read from MH i2c: E2 03 00 B7 18 00 90 00 43 [13:47:05]RAPDU: 90 00 [13:47:05]wFMCommunicate OK [13:47:05]SAM_PROTO_ClearQueue done [13:47:05]KKMCreateOFDPacket [13:47:05]OFDProtocolAddRootSTLVToBuf [13:47:05]FM_MakeSignedData [13:47:05]FM_MakeSignedData [13:47:05]SAM_PROTO_SignData [13:47:05]wFMCommunicate request_size=4 [13:47:05]MH_SAM_APDU [13:47:05]CAPDU: 80 0D 01 02 [13:47:05]Write to MH i2c: E2 08 00 B8 18 80 0D 01 02 00 00 00 00 49 [13:47:05]Write i2c OK [13:47:05]MH_I2C_Read... [13:47:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:47:05]Read from MH i2c: E2 [13:47:05]MH_I2C_Read... [13:47:05]Read from MH i2c: E2 03 00 [13:47:05]MH_I2C_Read... [13:47:05]Read from MH i2c: E2 03 00 B8 18 00 90 00 44 [13:47:05]RAPDU: 90 00 [13:47:05]wFMCommunicate OK [13:47:05]wFMCommunicate request_size=255 [13:47:05]MH_SAM_APDU [13:47: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 32 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 0D 01 00 00 F4 03 04 00 D9 F2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 23 13 03 00 35 04 06 00 2D [13:47:05]Write to MH i2c: E2 02 01 B9 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0D 01 00 00 F4 03 04 00 D9 F2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 23 13 03 00 35 04 06 00 2D 00 00 E2 [13:47:05]Write i2c OK [13:47:05]MH_I2C_Read... [13:47:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:05]Read from MH i2c: E2 [13:47:05]MH_I2C_Read... [13:47:05]Read from MH i2c: E2 03 00 [13:47:05]MH_I2C_Read... [13:47:05]Read from MH i2c: E2 03 00 B9 18 00 90 00 45 [13:47:05]RAPDU: 90 00 [13:47:05]wFMCommunicate OK [13:47:05]wFMCommunicate request_size=10 [13:47:05]MH_SAM_APDU [13:47:05]CAPDU: 80 0D 02 02 05 D8 F5 AF A0 33 [13:47:05]Write to MH i2c: E2 0D 00 BA 18 80 0D 02 02 05 00 D8 F5 AF A0 33 00 00 A5 [13:47:05]Write i2c OK [13:47:05]MH_I2C_Read... [13:47:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:05]Read from MH i2c: E2 [13:47:05]MH_I2C_Read... [13:47:05]Read from MH i2c: E2 03 00 [13:47:05]MH_I2C_Read... [13:47:05]Read from MH i2c: E2 03 00 BA 18 00 90 00 46 [13:47:05]RAPDU: 90 00 [13:47:05]wFMCommunicate OK [13:47:05]wFMCommunicate request_size=4 [13:47:05]MH_SAM_APDU [13:47:05]CAPDU: 80 0D 03 02 [13:47:05]Write to MH i2c: E2 08 00 BB 18 80 0D 03 02 00 00 00 00 4E [13:47:05]Write i2c OK [13:47:05]MH_I2C_Read... [13:47:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:47:05]Read from MH i2c: E2 [13:47:05]MH_I2C_Read... [13:47:05]Read from MH i2c: E2 0B 00 [13:47:05]MH_I2C_Read... [13:47:05]Read from MH i2c: E2 0B 00 BB 18 00 F4 CE 37 E6 3F 75 2D 88 90 00 97 [13:47:05]RAPDU: F4 CE 37 E6 3F 75 2D 88 90 00 [13:47:05]wFMCommunicate OK [13:47:05]SAM_PROTO_SignData done [13:47:05]FM_MakeSignedData done [13:47:05]CreateOFDProtocolMessage [13:47:05]wFMCommunicate request_size=4 [13:47:05]MH_SAM_APDU [13:47:05]CAPDU: 80 11 00 00 [13:47:05]Write to MH i2c: E2 08 00 BC 18 80 11 00 00 00 00 00 00 4E [13:47:05]Write i2c OK [13:47:05]MH_I2C_Read... [13:47:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:05]Read from MH i2c: E2 [13:47:05]MH_I2C_Read... [13:47:05]Read from MH i2c: E2 17 00 [13:47:05]MH_I2C_Read... [13:47:05]Read from MH i2c: E2 17 00 BC 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A3 [13:47:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:47:05]wFMCommunicate OK [13:47:05]CreateOFDProtocolMessage done [13:47:05]OFDSenderStorePacket 201507 [13:47:05]StoreOFDPacket docnum=201507 [13:47:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 36 BE 07 01 24 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 32 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 0D 01 00 00 F4 03 04 00 D9 F2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 23 13 03 00 35 04 06 00 2D D8 F5 AF A0 33 F4 CE 37 E6 3F 75 2D 88 [13:47:05]CheckFolder [13:47:05]dirname=/storage/ofd_packets [13:47:05]CheckFolder done [13:47:05]ProducePacketName [13:47:05]name=ofd_packets/00201507 [13:47:05]NVStorageSaveData ofd_packets/00201507 [13:47:05]File name is /storage/ofd_packets/00201507 [13:47:05]Write 301 bytes [13:47:05]NVStorageSaveData done [13:47:05]OFDSenderStorePacket done [13:47:05]KKMCreateOFDPacket done [13:47:05]NVStorageSaveData kkm_last_timestamp [13:47:05]File name is /storage/kkm_last_timestamp [13:47:05]Write 4 bytes [13:47:05]NVStorageSaveData done [13:47:05]ExternCall_PrintAddStr [13:47:05]wPrintStart [13:47:05]Write to MH i2c: 01 00 00 BD 18 D5 [13:47:05]Write i2c OK [13:47:05]MH_I2C_Read... [13:47:05]Read from MH i2c: 01 [13:47:05]MH_I2C_Read... [13:47:05]Read from MH i2c: 01 07 00 [13:47:05]MH_I2C_Read... [13:47:05]Read from MH i2c: 01 07 00 BD 18 00 00 00 00 00 FF 0F EA [13:47:05]RasterBufferAndPrint [13:47:05]line Счет N : (1)449258 [13:47:05]line ИНН: 02508201610067 [13:47:05]line Контрольно-Кассовый Чек [13:47:05]line ПРОДАЖА [13:47:05]line ТРК (МРК, ГНК) : 31 [13:47:05]line Товар: 2710124130 [13:47:05]line Аи-92-К-2 [13:47:05]line 4.340 * 66.90 [13:47:05]line = 290.35 [13:47:05]line НДС 12% НСП 1% [13:47:05]line > о реализуемом товаре [13:47:05]line ОКРУГЛЕНИЕ: -0.35 [13:47:05]line ИТОГО: 290.00 [13:47:05]line Внесено: 290.00 [13:47:05]line СДАЧА: 0.00 [13:47:05]line НСП 1% : 2.57 [13:47:05]line НДС 12% : 30.83 [13:47:05]line Наличными: 290.00 [13:47:05]line Безнал.: 0.00 [13:47:05]line Место: АЗС № 171 "Партнер Нефть" [13:47:05]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:47:05]line СНО: Общий режим [13:47:05]line Чек 269 26.10.2024 13:47 [13:47:05]line Смена: 543 ФФД: 1.0 [13:47:05]line ЗНМ: 0300000109 [13:47:05]line РНМ: 0000000000091777 [13:47:05]line Версия ККМ: 001 [13:47:05]line ФМ: 0000000000871756 [13:47:05]line ФД: 201507 [13:47:05]line ФПД: 50409858113587 [13:47:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134705&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201507&fm=50409858113587&tin=02508201610067®Number=0000000000091777&sum=29000 [13:47:06]OFD Sender: Processing packet 201507 [packets to send 112, broken 111] [13:47:06]ProducePacketName [13:47:06]name=ofd_packets/00201507 [13:47:06]OFD Sender: To server: pG, [13:47:06]CommunicateWithHost lk.salyk.kg:30040 [13:47:06]ConnectInit lk.salyk.kg [13:47:06]written 0, free lines is 4095 [13:47:06]Connected sock=10 [13:47:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 36 BE 07 01 24 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 32 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 0D 01 00 00 F4 03 04 00 D9 F2 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 23 13 03 00 35 04 06 00 2D D8 F5 AF A0 33 F4 CE 37 E6 3F 75 2D 88 [13:47:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 6B 08 47 00 E4 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 23 13 03 00 F4 03 04 00 81 9E 1C 67 B6 04 01 00 00 40 07 53 50 10 D2 4F 2D [13:47:06]CommunicateWithHost err = 0 [13:47:06]CheckOFDResponse [13:47:06]1017 (14) - 77093643461234 [13:47:06]1041 (16) - 0000000000871756 [13:47:06]1040 (4) - 201507 [13:47:06]1012 (4) - 26.10.2024 07:47 [13:47:06]1206 (1) - 0 [13:47:06]OFD Sender: Remove packet 201507 [13:47:06]ProducePacketName [13:47:06]name=ofd_packets/00201507 [13:47:06]NVStorageDeleteData [13:47:06]Write to MH i2c: 01 00 00 E8 18 00 [13:47:06]Write i2c OK [13:47:06]MH_I2C_Read... [13:47:06]Read from MH i2c: 01 [13:47:06]MH_I2C_Read... [13:47:06]Read from MH i2c: 01 07 00 [13:47:06]MH_I2C_Read... [13:47:06]Read from MH i2c: 01 07 00 E8 18 00 00 00 00 00 99 0C AC [13:47:06]RasterBufferAndPrint [13:47:06]line [13:47:06]line [13:47:06]line [13:47:06]line [13:47:06]line [13:47:06]written 0, free lines is 3229 [13:47:06]MH_Cut [13:47:06]Write to MH i2c: D1 01 00 EF 18 01 D9 [13:47:06]Write i2c OK [13:47:06]MH_I2C_Read... [13:47:06]Read from MH i2c: D1 [13:47:06]MH_I2C_Read... [13:47:06]Read from MH i2c: D1 01 00 [13:47:06]MH_I2C_Read... [13:47:06]Read from MH i2c: D1 01 00 EF 18 00 D8 [13:47:06]Write to MH i2c: 01 00 00 F0 18 08 [13:47:06]Write i2c OK [13:47:06]MH_I2C_Read... [13:47:06]OFD Sender: No OFD packet to send [13:47:07]*** Cut start [13:47:07]*** Purtial cut [13:47:07]*** Stage 1: CUTSNS_PIN = 1 [13:47:07]Read from MH i2c: 01 [13:47:07]MH_I2C_Read... [13:47:07]*** Stop cut motor [13:47:07]*** Cut end [13:47:07]Read from MH i2c: 01 07 00 [13:47:07]MH_I2C_Read... [13:47:07]Read from MH i2c: 01 07 00 F0 18 00 00 00 00 00 FF 0F 1D [13:47:07]process_action close_receipt done [13:47:07]requested_data is exist [13:47:07]produce_requested_data [13:47:07]requested_item fm.sn is exist - process it [13:47:07]wFMCommunicate request_size=4 [13:47:07]MH_SAM_APDU [13:47:07]CAPDU: 80 11 00 00 [13:47:07]Write to MH i2c: E2 08 00 F1 18 80 11 00 00 00 00 00 00 83 [13:47:07]Write i2c OK [13:47:07]MH_I2C_Read... [13:47:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:07]Read from MH i2c: E2 [13:47:07]MH_I2C_Read... [13:47:07]Read from MH i2c: E2 17 00 [13:47:07]MH_I2C_Read... [13:47:07]Read from MH i2c: E2 17 00 F1 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D8 [13:47:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:47:07]wFMCommunicate OK [13:47:07]requested_item fd.num is exist - process it [13:47:07]SAM_PROTO_GetFieldsCounters [13:47:07]wFMCommunicate request_size=4 [13:47:07]MH_SAM_APDU [13:47:07]CAPDU: 80 13 00 00 [13:47:07]Write to MH i2c: E2 08 00 F2 18 80 13 00 00 00 00 00 00 86 [13:47:07]Write i2c OK [13:47:07]MH_I2C_Read... [13:47:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:47:07]Read from MH i2c: E2 [13:47:07]MH_I2C_Read... [13:47:07]Read from MH i2c: E2 62 00 [13:47:07]MH_I2C_Read... [13:47:07]Read from MH i2c: E2 62 00 F2 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 23 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 33 [13:47:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 23 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:47:07]wFMCommunicate OK [13:47:07]SAM_PROTO_GetFieldsCounters done [13:47:07]requested_item shift.num is exist - process it [13:47:07]requested_item shift.opened is exist - process it [13:47:07]req_shift_opened [13:47:07]FM_GetShiftState [13:47:07]SAM_PROTO_GetShiftState [13:47:07]wFMCommunicate request_size=4 [13:47:07]MH_SAM_APDU [13:47:07]CAPDU: 80 13 01 00 [13:47:07]Write to MH i2c: E2 08 00 F3 18 80 13 01 00 00 00 00 00 88 [13:47:07]Write i2c OK [13:47:07]MH_I2C_Read... [13:47:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:07]Read from MH i2c: E2 [13:47:07]MH_I2C_Read... [13:47:07]Read from MH i2c: E2 0E 00 [13:47:07]MH_I2C_Read... [13:47:07]Read from MH i2c: E2 0E 00 F3 18 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 97 [13:47:07]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:47:07]wFMCommunicate OK [13:47:07]SAM_PROTO_GetShiftState done [13:47:07]FM_GetShiftState done [13:47:07]req_shift_opened done [13:47:07]requested_item shift.open_date is exist - process it [13:47:07]req_shift_open_date [13:47:07]req_shift_open_date done [13:47:07]produce_requested_data done [13:47:07]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201507,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:47:07]process_action_free close_receipt [13:47:07]json_value_free [13:47:07]json_value_free done [13:47:07]process_json_proto returns [13:47:07]Send response to host [13:47:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201507,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:47:07]free response buf [13:47:07]execute_script done [13:47:07]execute_script returns [13:47:07]free content buf [13:47:07]Sock 9.Close socket [13:47:07]Sock 9.Thread stoped [13:47:11]OFD Sender: No OFD packet to send [13:47:16]OFD Sender: No OFD packet to send [13:47:21]OFD Sender: No OFD packet to send [13:47:26]OFD Sender: No OFD packet to send [13:47:31]OFD Sender: No OFD packet to send [13:47:36]OFD Sender: No OFD packet to send [13:47:41]OFD Sender: No OFD packet to send [13:47:46]OFD Sender: No OFD packet to send [13:47:51]OFD Sender: No OFD packet to send [13:47:56]OFD Sender: No OFD packet to send [13:48:01]OFD Sender: No OFD packet to send [13:48:06]OFD Sender: No OFD packet to send [13:48:11]OFD Sender: No OFD packet to send [13:48:16]accept exits with 8 [13:48:16]New connection [13:48:16]New thread 3066690916 created [13:48:16]Thread 3066834276 joined [13:48:16]Waiting for new connection... [13:48:16] Sock 8.Parse request [13:48:16]Sock 8.Check first char [13:48:16]Sock 8.First char is OK [13:48:16]request: POST /json_proto HTTP/1.0 [13:48:16]Method: POST [13:48:16]URL: /json_proto [13:48:16]Method is POST - this is cgi request [13:48:16]url: /json_proto [13:48:16]query_string will be loaded in cgi processing [13:48:16]execute_cgi json_proto POST (null) [13:48:16]execute_cgi path=json_proto method=POST [13:48:16]POST find Content-Length [13:48:16]Host: 172.17.63.195:8080 [13:48:16]Content-Length: 677 [13:48:16]Content-Type: application/json [13:48:16] [13:48:16]POST finish read [13:48:16]Found Content-Length = 677 [13:48:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [13:48:16]execute_script... [13:48: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)449259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [13:48:16]POST & json_proto [13:48:16]process_json_proto [13:48:16]json parsed OK: [13:48:16]protocol is kg_v1.0 [13:48:16]action value=close_receipt [13:48:16]process_action close_receipt [13:48:16]cmd_close_receipt [13:48:16]MH_GetDate [13:48:16]Write to MH i2c: F0 00 00 F4 18 FB [13:48:16]Write i2c OK [13:48:16]MH_I2C_Read... [13:48:16]Read from MH i2c: F0 [13:48:16]MH_I2C_Read... [13:48:16]Read from MH i2c: F0 09 00 [13:48:16]MH_I2C_Read... [13:48:16]Read from MH i2c: F0 09 00 F4 18 00 21 F3 1C 67 68 46 19 67 C9 [13:48:16]GetLastDocTimeStamp 1729950425 [13:48:16]current date 1729950497 [13:48:16]FM_GetShiftState [13:48:16]SAM_PROTO_GetShiftState [13:48:16]wFMCommunicate request_size=4 [13:48:16]MH_SAM_APDU [13:48:16]CAPDU: 80 13 01 00 [13:48:16]Write to MH i2c: E2 08 00 F5 18 80 13 01 00 00 00 00 00 8A [13:48:16]Write i2c OK [13:48:16]MH_I2C_Read... [13:48:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:16]Read from MH i2c: E2 [13:48:16]MH_I2C_Read... [13:48:16]Read from MH i2c: E2 0E 00 [13:48:16]MH_I2C_Read... [13:48:16]Read from MH i2c: E2 0E 00 F5 18 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 99 [13:48:16]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:48:16]wFMCommunicate OK [13:48:16]SAM_PROTO_GetShiftState done [13:48:16]FM_GetShiftState done [13:48:16]opened in 1729900879 [13:48:16]opened+sec_in_day 1729987279 [13:48:16]quantity*price = 35055 [13:48:16]sum+1 = 35057 [13:48:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 270 26.10.2024 13:48 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201508 ФПД: 30127320647211 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134817&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201508&fm=30127320647211&tin=02508201610067®Number=0000000000091777&sum=35000 [13:48:17]StoreToDocumentArchive [13:48:17]shift 543 fd 201508 [13:48:17]save to /storage/0543/doc_00201508 [13:48:17]save last doc name /storage/0543/doc_00201508 to /storage/kkm_last_doc_name [13:48:17]save OK [13:48:17]Clear old archive folders... [13:48:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:48:17]tlvbuf is B6E8B220 [13:48:17]SAM_PROTO_ClearQueue [13:48:17]wFMCommunicate request_size=4 [13:48:17]MH_SAM_APDU [13:48:17]CAPDU: 80 09 00 00 [13:48:17]Write to MH i2c: E2 08 00 02 19 80 09 00 00 00 00 00 00 8D [13:48:17]Write i2c OK [13:48:17]MH_I2C_Read... [13:48:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:48:17]Read from MH i2c: E2 [13:48:17]MH_I2C_Read... [13:48:17]Read from MH i2c: E2 03 00 [13:48:17]MH_I2C_Read... [13:48:17]Read from MH i2c: E2 03 00 02 19 00 90 00 8F [13:48:17]RAPDU: 90 00 [13:48:17]wFMCommunicate OK [13:48:17]SAM_PROTO_ClearQueue done [13:48:17]KKMCreateOFDPacket [13:48:17]OFDProtocolAddRootSTLVToBuf [13:48:17]FM_MakeSignedData [13:48:17]FM_MakeSignedData [13:48:17]SAM_PROTO_SignData [13:48:17]wFMCommunicate request_size=4 [13:48:17]MH_SAM_APDU [13:48:17]CAPDU: 80 0D 01 02 [13:48:17]Write to MH i2c: E2 08 00 03 19 80 0D 01 02 00 00 00 00 95 [13:48:17]Write i2c OK [13:48:17]MH_I2C_Read... [13:48:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:48:17]Read from MH i2c: E2 [13:48:17]MH_I2C_Read... [13:48:17]Read from MH i2c: E2 03 00 [13:48:17]MH_I2C_Read... [13:48:17]Read from MH i2c: E2 03 00 03 19 00 90 00 90 [13:48:17]RAPDU: 90 00 [13:48:17]wFMCommunicate OK [13:48:17]wFMCommunicate request_size=255 [13:48:17]MH_SAM_APDU [13:48: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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 0E 01 00 00 F4 03 04 00 21 F3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 24 13 03 00 35 04 06 00 1B [13:48:17]Write to MH i2c: E2 02 01 04 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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 0E 01 00 00 F4 03 04 00 21 F3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 24 13 03 00 35 04 06 00 1B 00 00 50 [13:48:17]Write i2c OK [13:48:17]MH_I2C_Read... [13:48:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:18]Read from MH i2c: E2 [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: E2 03 00 [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: E2 03 00 04 19 00 90 00 91 [13:48:18]RAPDU: 90 00 [13:48:18]wFMCommunicate OK [13:48:18]wFMCommunicate request_size=10 [13:48:18]MH_SAM_APDU [13:48:18]CAPDU: 80 0D 02 02 05 66 90 3E C6 2B [13:48:18]Write to MH i2c: E2 0D 00 05 19 80 0D 02 02 05 00 66 90 3E C6 2B 00 00 C7 [13:48:18]Write i2c OK [13:48:18]MH_I2C_Read... [13:48:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:18]Read from MH i2c: E2 [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: E2 03 00 [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: E2 03 00 05 19 00 90 00 92 [13:48:18]RAPDU: 90 00 [13:48:18]wFMCommunicate OK [13:48:18]wFMCommunicate request_size=4 [13:48:18]MH_SAM_APDU [13:48:18]CAPDU: 80 0D 03 02 [13:48:18]Write to MH i2c: E2 08 00 06 19 80 0D 03 02 00 00 00 00 9A [13:48:18]Write i2c OK [13:48:18]MH_I2C_Read... [13:48:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:48:18]Read from MH i2c: E2 [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: E2 0B 00 [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: E2 0B 00 06 19 00 ED 29 E5 F8 97 65 AC FD 90 00 33 [13:48:18]RAPDU: ED 29 E5 F8 97 65 AC FD 90 00 [13:48:18]wFMCommunicate OK [13:48:18]SAM_PROTO_SignData done [13:48:18]FM_MakeSignedData done [13:48:18]CreateOFDProtocolMessage [13:48:18]wFMCommunicate request_size=4 [13:48:18]MH_SAM_APDU [13:48:18]CAPDU: 80 11 00 00 [13:48:18]Write to MH i2c: E2 08 00 07 19 80 11 00 00 00 00 00 00 9A [13:48:18]Write i2c OK [13:48:18]MH_I2C_Read... [13:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:18]Read from MH i2c: E2 [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: E2 17 00 [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: E2 17 00 07 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EF [13:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:48:18]wFMCommunicate OK [13:48:18]CreateOFDProtocolMessage done [13:48:18]OFDSenderStorePacket 201508 [13:48:18]StoreOFDPacket docnum=201508 [13:48:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8D 0C 07 01 6B 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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 0E 01 00 00 F4 03 04 00 21 F3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 24 13 03 00 35 04 06 00 1B 66 90 3E C6 2B ED 29 E5 F8 97 65 AC FD [13:48:18]CheckFolder [13:48:18]dirname=/storage/ofd_packets [13:48:18]CheckFolder done [13:48:18]ProducePacketName [13:48:18]name=ofd_packets/00201508 [13:48:18]NVStorageSaveData ofd_packets/00201508 [13:48:18]File name is /storage/ofd_packets/00201508 [13:48:18]Write 301 bytes [13:48:18]NVStorageSaveData done [13:48:18]OFDSenderStorePacket done [13:48:18]KKMCreateOFDPacket done [13:48:18]NVStorageSaveData kkm_last_timestamp [13:48:18]File name is /storage/kkm_last_timestamp [13:48:18]Write 4 bytes [13:48:18]NVStorageSaveData done [13:48:18]ExternCall_PrintAddStr [13:48:18]wPrintStart [13:48:18]Write to MH i2c: 01 00 00 08 19 21 [13:48:18]Write i2c OK [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: 01 [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: 01 07 00 [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: 01 07 00 08 19 00 00 00 00 00 FF 0F 36 [13:48:18]RasterBufferAndPrint [13:48:18]line Счет N : (1)449259 [13:48:18]line ИНН: 02508201610067 [13:48:18]line Контрольно-Кассовый Чек [13:48:18]line ПРОДАЖА [13:48:18]line ТРК (МРК, ГНК) : 52 [13:48:18]line Товар: 2710124130 [13:48:18]line Аи-92-К-2 [13:48:18]line 5.240 * 66.90 [13:48:18]line = 350.56 [13:48:18]line НДС 12% НСП 1% [13:48:18]line > о реализуемом товаре [13:48:18]line ОКРУГЛЕНИЕ: -0.56 [13:48:18]line ИТОГО: 350.00 [13:48:18]line Внесено: 350.00 [13:48:18]line СДАЧА: 0.00 [13:48:18]line НСП 1% : 3.10 [13:48:18]line НДС 12% : 37.23 [13:48:18]line Наличными: 350.00 [13:48:18]line Безнал.: 0.00 [13:48:18]line Место: АЗС № 171 "Партнер Нефть" [13:48:18]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:48:18]line СНО: Общий режим [13:48:18]line Чек 270 26.10.2024 13:48 [13:48:18]line Смена: 543 ФФД: 1.0 [13:48:18]line ЗНМ: 0300000109 [13:48:18]line РНМ: 0000000000091777 [13:48:18]line Версия ККМ: 001 [13:48:18]line ФМ: 0000000000871756 [13:48:18]line ФД: 201508 [13:48:18]line ФПД: 30127320647211 [13:48:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134817&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201508&fm=30127320647211&tin=02508201610067®Number=0000000000091777&sum=35000 [13:48:18]OFD Sender: Processing packet 201508 [packets to send 112, broken 111] [13:48:18]ProducePacketName [13:48:18]name=ofd_packets/00201508 [13:48:18]OFD Sender: To server: pG, [13:48:18]CommunicateWithHost lk.salyk.kg:30040 [13:48:18]ConnectInit lk.salyk.kg [13:48:18]written 0, free lines is 4095 [13:48:18]Connected sock=11 [13:48:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8D 0C 07 01 6B 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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 0E 01 00 00 F4 03 04 00 21 F3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 24 13 03 00 35 04 06 00 1B 66 90 3E C6 2B ED 29 E5 F8 97 65 AC FD [13:48:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 2E 99 47 00 0D 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 24 13 03 00 F4 03 04 00 CA 9E 1C 67 B6 04 01 00 00 B2 63 7F CC 37 78 34 3A [13:48:19]CommunicateWithHost err = 0 [13:48:19]CheckOFDResponse [13:48:19]1017 (14) - 77093643461234 [13:48:19]1041 (16) - 0000000000871756 [13:48:19]1040 (4) - 201508 [13:48:19]1012 (4) - 26.10.2024 07:48 [13:48:19]1206 (1) - 0 [13:48:19]OFD Sender: Remove packet 201508 [13:48:19]ProducePacketName [13:48:19]name=ofd_packets/00201508 [13:48:19]NVStorageDeleteData [13:48:19]Write to MH i2c: 01 00 00 33 19 4C [13:48:19]Write i2c OK [13:48:19]MH_I2C_Read... [13:48:19]Read from MH i2c: 01 [13:48:19]MH_I2C_Read... [13:48:19]Read from MH i2c: 01 07 00 [13:48:19]MH_I2C_Read... [13:48:19]Read from MH i2c: 01 07 00 33 19 00 00 00 00 00 8F 0C EE [13:48:19]RasterBufferAndPrint [13:48:19]line [13:48:19]line [13:48:19]line [13:48:19]line [13:48:19]line [13:48:19]written 0, free lines is 3219 [13:48:19]MH_Cut [13:48:19]Write to MH i2c: D1 01 00 3A 19 01 25 [13:48:19]Write i2c OK [13:48:19]MH_I2C_Read... [13:48:19]Read from MH i2c: D1 [13:48:19]MH_I2C_Read... [13:48:19]Read from MH i2c: D1 01 00 [13:48:19]MH_I2C_Read... [13:48:19]Read from MH i2c: D1 01 00 3A 19 00 24 [13:48:19]Write to MH i2c: 01 00 00 3B 19 54 [13:48:19]Write i2c OK [13:48:19]MH_I2C_Read... [13:48:19]OFD Sender: No OFD packet to send [13:48:20]*** Cut start [13:48:20]*** Purtial cut [13:48:20]*** Stage 1: CUTSNS_PIN = 1 [13:48:20]Read from MH i2c: 01 [13:48:20]MH_I2C_Read... [13:48:20]*** Stop cut motor [13:48:20]*** Cut end [13:48:20]Read from MH i2c: 01 07 00 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: 01 07 00 3B 19 00 00 00 00 00 FF 0F 69 [13:48:20]process_action close_receipt done [13:48:20]requested_data is exist [13:48:20]produce_requested_data [13:48:20]requested_item fm.sn is exist - process it [13:48:20]wFMCommunicate request_size=4 [13:48:20]MH_SAM_APDU [13:48:20]CAPDU: 80 11 00 00 [13:48:20]Write to MH i2c: E2 08 00 3C 19 80 11 00 00 00 00 00 00 CF [13:48:20]Write i2c OK [13:48:20]MH_I2C_Read... [13:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:20]Read from MH i2c: E2 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: E2 17 00 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: E2 17 00 3C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 24 [13:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:48:20]wFMCommunicate OK [13:48:20]requested_item fd.num is exist - process it [13:48:20]SAM_PROTO_GetFieldsCounters [13:48:20]wFMCommunicate request_size=4 [13:48:20]MH_SAM_APDU [13:48:20]CAPDU: 80 13 00 00 [13:48:20]Write to MH i2c: E2 08 00 3D 19 80 13 00 00 00 00 00 00 D2 [13:48:20]Write i2c OK [13:48:20]MH_I2C_Read... [13:48:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:48:20]Read from MH i2c: E2 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: E2 62 00 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: E2 62 00 3D 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 24 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 83 [13:48:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 24 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:48:20]wFMCommunicate OK [13:48:20]SAM_PROTO_GetFieldsCounters done [13:48:20]requested_item shift.num is exist - process it [13:48:20]requested_item shift.opened is exist - process it [13:48:20]req_shift_opened [13:48:20]FM_GetShiftState [13:48:20]SAM_PROTO_GetShiftState [13:48:20]wFMCommunicate request_size=4 [13:48:20]MH_SAM_APDU [13:48:20]CAPDU: 80 13 01 00 [13:48:20]Write to MH i2c: E2 08 00 3E 19 80 13 01 00 00 00 00 00 D4 [13:48:20]Write i2c OK [13:48:20]MH_I2C_Read... [13:48:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:20]Read from MH i2c: E2 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: E2 0E 00 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: E2 0E 00 3E 19 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E3 [13:48:20]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:48:20]wFMCommunicate OK [13:48:20]SAM_PROTO_GetShiftState done [13:48:20]FM_GetShiftState done [13:48:20]req_shift_opened done [13:48:20]requested_item shift.open_date is exist - process it [13:48:20]req_shift_open_date [13:48:20]req_shift_open_date done [13:48:20]produce_requested_data done [13:48:20]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201508,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:48:20]process_action_free close_receipt [13:48:20]json_value_free [13:48:20]json_value_free done [13:48:20]process_json_proto returns [13:48:20]Send response to host [13:48:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201508,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:48:20]free response buf [13:48:20]execute_script done [13:48:20]execute_script returns [13:48:20]free content buf [13:48:20]Sock 8.Close socket [13:48:20]Sock 8.Thread stoped [13:48:24]OFD Sender: No OFD packet to send [13:48:29]OFD Sender: No OFD packet to send [13:48:34]OFD Sender: No OFD packet to send [13:48:39]OFD Sender: No OFD packet to send [13:48:44]OFD Sender: No OFD packet to send [13:48:49]OFD Sender: No OFD packet to send [13:48:54]OFD Sender: No OFD packet to send [13:48:59]OFD Sender: No OFD packet to send [13:49:04]OFD Sender: No OFD packet to send [13:49:09]OFD Sender: No OFD packet to send [13:49:14]OFD Sender: No OFD packet to send [13:49:19]OFD Sender: No OFD packet to send [13:49:24]OFD Sender: No OFD packet to send [13:49:29]OFD Sender: No OFD packet to send [13:49:34]OFD Sender: No OFD packet to send [13:49:39]OFD Sender: No OFD packet to send [13:49:44]OFD Sender: No OFD packet to send [13:49:49]OFD Sender: No OFD packet to send [13:49:54]OFD Sender: No OFD packet to send [13:49:59]OFD Sender: No OFD packet to send [13:50:04]OFD Sender: No OFD packet to send [13:50:09]OFD Sender: No OFD packet to send [13:50:14]OFD Sender: No OFD packet to send [13:50:19]OFD Sender: No OFD packet to send [13:50:24]OFD Sender: No OFD packet to send [13:50:29]OFD Sender: No OFD packet to send [13:50:34]OFD Sender: No OFD packet to send [13:50:39]OFD Sender: No OFD packet to send [13:50:41]accept exits with 9 [13:50:41]New connection [13:50:41]New thread 3066834276 created [13:50:41]Thread 3066690916 joined [13:50:41]Waiting for new connection... [13:50:41] Sock 9.Parse request [13:50:41]Sock 9.Check first char [13:50:41]Sock 9.First char is OK [13:50:41]request: POST /json_proto HTTP/1.0 [13:50:41]Method: POST [13:50:41]URL: /json_proto [13:50:41]Method is POST - this is cgi request [13:50:41]url: /json_proto [13:50:41]query_string will be loaded in cgi processing [13:50:41]execute_cgi json_proto POST (null) [13:50:41]execute_cgi path=json_proto method=POST [13:50:41]POST find Content-Length [13:50:41]Host: 172.17.63.195:8080 [13:50:41]Content-Length: 677 [13:50:41]Content-Type: application/json [13:50:41] [13:50:41]POST finish read [13:50:41]Found Content-Length = 677 [13:50:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:50:41]execute_script... [13: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)449260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:50:41]POST & json_proto [13:50:41]process_json_proto [13:50:41]json parsed OK: [13:50:41]protocol is kg_v1.0 [13:50:41]action value=close_receipt [13:50:41]process_action close_receipt [13:50:41]cmd_close_receipt [13:50:41]MH_GetDate [13:50:41]Write to MH i2c: F0 00 00 3F 19 47 [13:50:41]Write i2c OK [13:50:41]MH_I2C_Read... [13:50:41]Read from MH i2c: F0 [13:50:41]MH_I2C_Read... [13:50:41]Read from MH i2c: F0 09 00 [13:50:41]MH_I2C_Read... [13:50:41]Read from MH i2c: F0 09 00 3F 19 00 B2 F3 1C 67 68 46 19 67 A6 [13:50:41]GetLastDocTimeStamp 1729950497 [13:50:41]current date 1729950642 [13:50:41]FM_GetShiftState [13:50:41]SAM_PROTO_GetShiftState [13:50:41]wFMCommunicate request_size=4 [13:50:41]MH_SAM_APDU [13:50:41]CAPDU: 80 13 01 00 [13:50:41]Write to MH i2c: E2 08 00 40 19 80 13 01 00 00 00 00 00 D6 [13:50:41]Write i2c OK [13:50:41]MH_I2C_Read... [13:50:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:41]Read from MH i2c: E2 [13:50:41]MH_I2C_Read... [13:50:41]Read from MH i2c: E2 0E 00 [13:50:41]MH_I2C_Read... [13:50:41]Read from MH i2c: E2 0E 00 40 19 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E5 [13:50:41]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:50:41]wFMCommunicate OK [13:50:41]SAM_PROTO_GetShiftState done [13:50:41]FM_GetShiftState done [13:50:41]opened in 1729900879 [13:50:41]opened+sec_in_day 1729987279 [13:50:41]quantity*price = 50041 [13:50:41]sum+1 = 50042 [13:50:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 271 26.10.2024 13:50 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201509 ФПД: 225992477665247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T135042&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201509&fm=225992477665247&tin=02508201610067®Number=0000000000091777&sum=50000 [13:50:42]StoreToDocumentArchive [13:50:42]shift 543 fd 201509 [13:50:42]save to /storage/0543/doc_00201509 [13:50:42]save last doc name /storage/0543/doc_00201509 to /storage/kkm_last_doc_name [13:50:42]save OK [13:50:42]Clear old archive folders... [13:50:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:50:42]tlvbuf is 01F58BA0 [13:50:42]SAM_PROTO_ClearQueue [13:50:42]wFMCommunicate request_size=4 [13:50:42]MH_SAM_APDU [13:50:42]CAPDU: 80 09 00 00 [13:50:42]Write to MH i2c: E2 08 00 4D 19 80 09 00 00 00 00 00 00 D8 [13:50:42]Write i2c OK [13:50:42]MH_I2C_Read... [13:50:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:50:42]Read from MH i2c: E2 [13:50:42]MH_I2C_Read... [13:50:42]Read from MH i2c: E2 03 00 [13:50:42]MH_I2C_Read... [13:50:42]Read from MH i2c: E2 03 00 4D 19 00 90 00 DA [13:50:42]RAPDU: 90 00 [13:50:42]wFMCommunicate OK [13:50:42]SAM_PROTO_ClearQueue done [13:50:42]KKMCreateOFDPacket [13:50:42]OFDProtocolAddRootSTLVToBuf [13:50:42]FM_MakeSignedData [13:50:42]FM_MakeSignedData [13:50:42]SAM_PROTO_SignData [13:50:42]wFMCommunicate request_size=4 [13:50:42]MH_SAM_APDU [13:50:42]CAPDU: 80 0D 01 02 [13:50:42]Write to MH i2c: E2 08 00 4E 19 80 0D 01 02 00 00 00 00 E0 [13:50:42]Write i2c OK [13:50:42]MH_I2C_Read... [13:50:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:50:42]Read from MH i2c: E2 [13:50:42]MH_I2C_Read... [13:50:42]Read from MH i2c: E2 03 00 [13:50:42]MH_I2C_Read... [13:50:42]Read from MH i2c: E2 03 00 4E 19 00 90 00 DB [13:50:42]RAPDU: 90 00 [13:50:42]wFMCommunicate OK [13:50:42]wFMCommunicate request_size=255 [13:50:42]MH_SAM_APDU [13:50:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0F 01 00 00 F4 03 04 00 B2 F3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 25 13 03 00 35 04 06 00 CD [13:50:42]Write to MH i2c: E2 02 01 4F 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 32 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 0F 01 00 00 F4 03 04 00 B2 F3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 25 13 03 00 35 04 06 00 CD 00 00 D5 [13:50:42]Write i2c OK [13:50:42]MH_I2C_Read... [13:50:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:43]Read from MH i2c: E2 [13:50:43]MH_I2C_Read... [13:50:43]Read from MH i2c: E2 03 00 [13:50:43]MH_I2C_Read... [13:50:43]Read from MH i2c: E2 03 00 4F 19 00 90 00 DC [13:50:43]RAPDU: 90 00 [13:50:43]wFMCommunicate OK [13:50:43]wFMCommunicate request_size=10 [13:50:43]MH_SAM_APDU [13:50:43]CAPDU: 80 0D 02 02 05 89 F9 5A 67 DF [13:50:43]Write to MH i2c: E2 0D 00 50 19 80 0D 02 02 05 00 89 F9 5A 67 DF 00 00 0F [13:50:43]Write i2c OK [13:50:43]MH_I2C_Read... [13:50:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:43]Read from MH i2c: E2 [13:50:43]MH_I2C_Read... [13:50:43]Read from MH i2c: E2 03 00 [13:50:43]MH_I2C_Read... [13:50:43]Read from MH i2c: E2 03 00 50 19 00 90 00 DD [13:50:43]RAPDU: 90 00 [13:50:43]wFMCommunicate OK [13:50:43]wFMCommunicate request_size=4 [13:50:43]MH_SAM_APDU [13:50:43]CAPDU: 80 0D 03 02 [13:50:43]Write to MH i2c: E2 08 00 51 19 80 0D 03 02 00 00 00 00 E5 [13:50:43]Write i2c OK [13:50:43]MH_I2C_Read... [13:50:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:50:43]Read from MH i2c: E2 [13:50:43]MH_I2C_Read... [13:50:43]Read from MH i2c: E2 0B 00 [13:50:43]MH_I2C_Read... [13:50:43]Read from MH i2c: E2 0B 00 51 19 00 DA 22 97 81 31 22 A0 25 90 00 12 [13:50:43]RAPDU: DA 22 97 81 31 22 A0 25 90 00 [13:50:43]wFMCommunicate OK [13:50:43]SAM_PROTO_SignData done [13:50:43]FM_MakeSignedData done [13:50:43]CreateOFDProtocolMessage [13:50:43]wFMCommunicate request_size=4 [13:50:43]MH_SAM_APDU [13:50:43]CAPDU: 80 11 00 00 [13:50:43]Write to MH i2c: E2 08 00 52 19 80 11 00 00 00 00 00 00 E5 [13:50:43]Write i2c OK [13:50:43]MH_I2C_Read... [13:50:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:43]Read from MH i2c: E2 [13:50:43]MH_I2C_Read... [13:50:43]Read from MH i2c: E2 17 00 [13:50:43]MH_I2C_Read... [13:50:43]Read from MH i2c: E2 17 00 52 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3A [13:50:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:50:43]wFMCommunicate OK [13:50:43]CreateOFDProtocolMessage done [13:50:43]OFDSenderStorePacket 201509 [13:50:43]StoreOFDPacket docnum=201509 [13:50:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 04 02 07 01 D3 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0F 01 00 00 F4 03 04 00 B2 F3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 25 13 03 00 35 04 06 00 CD 89 F9 5A 67 DF DA 22 97 81 31 22 A0 25 [13:50:43]CheckFolder [13:50:43]dirname=/storage/ofd_packets [13:50:43]CheckFolder done [13:50:43]ProducePacketName [13:50:43]name=ofd_packets/00201509 [13:50:43]NVStorageSaveData ofd_packets/00201509 [13:50:43]File name is /storage/ofd_packets/00201509 [13:50:43]Write 301 bytes [13:50:43]NVStorageSaveData done [13:50:43]OFDSenderStorePacket done [13:50:43]KKMCreateOFDPacket done [13:50:43]NVStorageSaveData kkm_last_timestamp [13:50:43]File name is /storage/kkm_last_timestamp [13:50:43]Write 4 bytes [13:50:43]NVStorageSaveData done [13:50:43]ExternCall_PrintAddStr [13:50:43]wPrintStart [13:50:43]Write to MH i2c: 01 00 00 53 19 6C [13:50:43]Write i2c OK [13:50:43]MH_I2C_Read... [13:50:43]Read from MH i2c: 01 [13:50:43]MH_I2C_Read... [13:50:43]Read from MH i2c: 01 07 00 [13:50:43]MH_I2C_Read... [13:50:43]Read from MH i2c: 01 07 00 53 19 00 00 00 00 00 FF 0F 81 [13:50:43]RasterBufferAndPrint [13:50:43]line Счет N : (1)449260 [13:50:43]line ИНН: 02508201610067 [13:50:43]line Контрольно-Кассовый Чек [13:50:43]line ПРОДАЖА [13:50:43]line ТРК (МРК, ГНК) : 31 [13:50:43]line Товар: 2710124130 [13:50:43]line Аи-92-К-2 [13:50:43]line 7.480 * 66.90 [13:50:43]line = 500.41 [13:50:43]line НДС 12% НСП 1% [13:50:43]line > о реализуемом товаре [13:50:43]line ОКРУГЛЕНИЕ: -0.41 [13:50:43]line ИТОГО: 500.00 [13:50:43]line Внесено: 500.00 [13:50:43]line СДАЧА: 0.00 [13:50:43]line НСП 1% : 4.43 [13:50:43]line НДС 12% : 53.14 [13:50:43]line Наличными: 500.00 [13:50:43]line Безнал.: 0.00 [13:50:43]line Место: АЗС № 171 "Партнер Нефть" [13:50:43]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:50:43]line СНО: Общий режим [13:50:43]line Чек 271 26.10.2024 13:50 [13:50:43]line Смена: 543 ФФД: 1.0 [13:50:43]line ЗНМ: 0300000109 [13:50:43]line РНМ: 0000000000091777 [13:50:43]line Версия ККМ: 001 [13:50:43]line ФМ: 0000000000871756 [13:50:43]line ФД: 201509 [13:50:43]line ФПД: 225992477665247 [13:50:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T135042&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201509&fm=225992477665247&tin=02508201610067®Number=0000000000091777&sum=50000 [13:50:43]OFD Sender: Processing packet 201509 [packets to send 112, broken 111] [13:50:43]ProducePacketName [13:50:43]name=ofd_packets/00201509 [13:50:43]OFD Sender: To server: pG, [13:50:43]CommunicateWithHost lk.salyk.kg:30040 [13:50:43]ConnectInit lk.salyk.kg [13:50:43]written 0, free lines is 4095 [13:50:43]Connected sock=10 [13:50:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 04 02 07 01 D3 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 0F 01 00 00 F4 03 04 00 B2 F3 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 25 13 03 00 35 04 06 00 CD 89 F9 5A 67 DF DA 22 97 81 31 22 A0 25 [13:50:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D6 04 47 00 7A CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 25 13 03 00 F4 03 04 00 5B 9F 1C 67 B6 04 01 00 00 5D B6 D8 53 FE A6 2F B9 [13:50:43]CommunicateWithHost err = 0 [13:50:43]CheckOFDResponse [13:50:43]1017 (14) - 77093643461234 [13:50:43]1041 (16) - 0000000000871756 [13:50:43]1040 (4) - 201509 [13:50:43]1012 (4) - 26.10.2024 07:50 [13:50:43]1206 (1) - 0 [13:50:43]OFD Sender: Remove packet 201509 [13:50:43]ProducePacketName [13:50:43]name=ofd_packets/00201509 [13:50:43]NVStorageDeleteData [13:50:44]Write to MH i2c: 01 00 00 7E 19 97 [13:50:44]Write i2c OK [13:50:44]MH_I2C_Read... [13:50:44]Read from MH i2c: 01 [13:50:44]MH_I2C_Read... [13:50:44]Read from MH i2c: 01 07 00 [13:50:44]MH_I2C_Read... [13:50:44]Read from MH i2c: 01 07 00 7E 19 00 00 00 00 00 8F 0C 39 [13:50:44]RasterBufferAndPrint [13:50:44]line [13:50:44]line [13:50:44]line [13:50:44]line [13:50:44]line [13:50:44]written 0, free lines is 3219 [13:50:44]MH_Cut [13:50:44]Write to MH i2c: D1 01 00 85 19 01 70 [13:50:44]Write i2c OK [13:50:44]MH_I2C_Read... [13:50:44]Read from MH i2c: D1 [13:50:44]MH_I2C_Read... [13:50:44]Read from MH i2c: D1 01 00 [13:50:44]MH_I2C_Read... [13:50:44]Read from MH i2c: D1 01 00 85 19 00 6F [13:50:44]Write to MH i2c: 01 00 00 86 19 9F [13:50:44]Write i2c OK [13:50:44]MH_I2C_Read... [13:50:44]OFD Sender: No OFD packet to send [13:50:44]*** Cut start [13:50:44]*** Purtial cut [13:50:44]*** Stage 1: CUTSNS_PIN = 1 [13:50:45]Read from MH i2c: 01 [13:50:45]MH_I2C_Read... [13:50:45]*** Stop cut motor [13:50:45]*** Cut end [13:50:45]Read from MH i2c: 01 07 00 [13:50:45]MH_I2C_Read... [13:50:45]Read from MH i2c: 01 07 00 86 19 00 00 00 00 00 FF 0F B4 [13:50:45]process_action close_receipt done [13:50:45]requested_data is exist [13:50:45]produce_requested_data [13:50:45]requested_item fm.sn is exist - process it [13:50:45]wFMCommunicate request_size=4 [13:50:45]MH_SAM_APDU [13:50:45]CAPDU: 80 11 00 00 [13:50:45]Write to MH i2c: E2 08 00 87 19 80 11 00 00 00 00 00 00 1A [13:50:45]Write i2c OK [13:50:45]MH_I2C_Read... [13:50:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:45]Read from MH i2c: E2 [13:50:45]MH_I2C_Read... [13:50:45]Read from MH i2c: E2 17 00 [13:50:45]MH_I2C_Read... [13:50:45]Read from MH i2c: E2 17 00 87 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6F [13:50:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:50:45]wFMCommunicate OK [13:50:45]requested_item fd.num is exist - process it [13:50:45]SAM_PROTO_GetFieldsCounters [13:50:45]wFMCommunicate request_size=4 [13:50:45]MH_SAM_APDU [13:50:45]CAPDU: 80 13 00 00 [13:50:45]Write to MH i2c: E2 08 00 88 19 80 13 00 00 00 00 00 00 1D [13:50:45]Write i2c OK [13:50:45]MH_I2C_Read... [13:50:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:50:45]Read from MH i2c: E2 [13:50:45]MH_I2C_Read... [13:50:45]Read from MH i2c: E2 62 00 [13:50:45]MH_I2C_Read... [13:50:45]Read from MH i2c: E2 62 00 88 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 25 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 D2 [13:50:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 25 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:50:45]wFMCommunicate OK [13:50:45]SAM_PROTO_GetFieldsCounters done [13:50:45]requested_item shift.num is exist - process it [13:50:45]requested_item shift.opened is exist - process it [13:50:45]req_shift_opened [13:50:45]FM_GetShiftState [13:50:45]SAM_PROTO_GetShiftState [13:50:45]wFMCommunicate request_size=4 [13:50:45]MH_SAM_APDU [13:50:45]CAPDU: 80 13 01 00 [13:50:45]Write to MH i2c: E2 08 00 89 19 80 13 01 00 00 00 00 00 1F [13:50:45]Write i2c OK [13:50:45]MH_I2C_Read... [13:50:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:45]Read from MH i2c: E2 [13:50:45]MH_I2C_Read... [13:50:45]Read from MH i2c: E2 0E 00 [13:50:45]MH_I2C_Read... [13:50:45]Read from MH i2c: E2 0E 00 89 19 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 2E [13:50:45]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:50:45]wFMCommunicate OK [13:50:45]SAM_PROTO_GetShiftState done [13:50:45]FM_GetShiftState done [13:50:45]req_shift_opened done [13:50:45]requested_item shift.open_date is exist - process it [13:50:45]req_shift_open_date [13:50:45]req_shift_open_date done [13:50:45]produce_requested_data done [13:50:45]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201509,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:50:45]process_action_free close_receipt [13:50:45]json_value_free [13:50:45]json_value_free done [13:50:45]process_json_proto returns [13:50:45]Send response to host [13:50:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201509,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:50:45]free response buf [13:50:45]execute_script done [13:50:45]execute_script returns [13:50:45]free content buf [13:50:45]Sock 9.Close socket [13:50:45]Sock 9.Thread stoped [13:50:49]OFD Sender: No OFD packet to send [13:50:54]OFD Sender: No OFD packet to send [13:50:59]OFD Sender: No OFD packet to send [13:51:04]OFD Sender: No OFD packet to send [13:51:09]OFD Sender: No OFD packet to send [13:51:14]OFD Sender: No OFD packet to send [13:51:19]OFD Sender: No OFD packet to send [13:51:24]OFD Sender: No OFD packet to send [13:51:29]OFD Sender: No OFD packet to send [13:51:34]OFD Sender: No OFD packet to send [13:51:39]OFD Sender: No OFD packet to send [13:51:44]OFD Sender: No OFD packet to send [13:51:49]OFD Sender: No OFD packet to send [13:51:54]OFD Sender: No OFD packet to send [13:51:59]OFD Sender: No OFD packet to send [13:52:04]OFD Sender: No OFD packet to send [13:52:09]OFD Sender: No OFD packet to send [13:52:14]OFD Sender: No OFD packet to send [13:52:19]OFD Sender: No OFD packet to send [13:52:24]OFD Sender: No OFD packet to send [13:52:29]OFD Sender: No OFD packet to send [13:52:34]OFD Sender: No OFD packet to send [13:52:39]OFD Sender: No OFD packet to send [13:52:44]OFD Sender: No OFD packet to send [13:52:49]OFD Sender: No OFD packet to send [13:52:54]OFD Sender: No OFD packet to send [13:52:59]OFD Sender: No OFD packet to send [13:53:02]accept exits with 8 [13:53:02]New connection [13:53:02]New thread 3066690916 created [13:53:02]Thread 3066834276 joined [13:53:02]Waiting for new connection... [13:53:02] Sock 8.Parse request [13:53:02]Sock 8.Check first char [13:53:02]Sock 8.First char is OK [13:53:02]request: POST /json_proto HTTP/1.0 [13:53:02]Method: POST [13:53:02]URL: /json_proto [13:53:02]Method is POST - this is cgi request [13:53:02]url: /json_proto [13:53:02]query_string will be loaded in cgi processing [13:53:02]execute_cgi json_proto POST (null) [13:53:02]execute_cgi path=json_proto method=POST [13:53:02]POST find Content-Length [13:53:02]Host: 172.17.63.195:8080 [13:53:02]Content-Length: 678 [13:53:02]Content-Type: application/json [13:53:02] [13:53:02]POST finish read [13:53:02]Found Content-Length = 678 [13:53:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [13:53:02]execute_script... [13: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)449261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [13:53:02]POST & json_proto [13:53:02]process_json_proto [13:53:02]json parsed OK: [13:53:02]protocol is kg_v1.0 [13:53:02]action value=close_receipt [13:53:02]process_action close_receipt [13:53:02]cmd_close_receipt [13:53:02]MH_GetDate [13:53:02]Write to MH i2c: F0 00 00 8A 19 92 [13:53:02]Write i2c OK [13:53:02]MH_I2C_Read... [13:53:02]Read from MH i2c: F0 [13:53:02]MH_I2C_Read... [13:53:02]Read from MH i2c: F0 09 00 [13:53:02]MH_I2C_Read... [13:53:02]Read from MH i2c: F0 09 00 8A 19 00 3F F4 1C 67 68 46 19 67 7F [13:53:02]GetLastDocTimeStamp 1729950642 [13:53:02]current date 1729950783 [13:53:02]FM_GetShiftState [13:53:02]SAM_PROTO_GetShiftState [13:53:02]wFMCommunicate request_size=4 [13:53:02]MH_SAM_APDU [13:53:02]CAPDU: 80 13 01 00 [13:53:02]Write to MH i2c: E2 08 00 8B 19 80 13 01 00 00 00 00 00 21 [13:53:02]Write i2c OK [13:53:02]MH_I2C_Read... [13:53:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:02]Read from MH i2c: E2 [13:53:02]MH_I2C_Read... [13:53:02]Read from MH i2c: E2 0E 00 [13:53:02]MH_I2C_Read... [13:53:02]Read from MH i2c: E2 0E 00 8B 19 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 30 [13:53:02]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:53:02]wFMCommunicate OK [13:53:02]SAM_PROTO_GetShiftState done [13:53:02]FM_GetShiftState done [13:53:02]opened in 1729900879 [13:53:02]opened+sec_in_day 1729987279 [13:53:02]quantity*price = 70044 [13:53:02]sum+1 = 70045 [13:53:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 272 26.10.2024 13:53 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201510 ФПД: 104520293044300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T135303&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201510&fm=104520293044300&tin=02508201610067®Number=0000000000091777&sum=70000 [13:53:03]StoreToDocumentArchive [13:53:03]shift 543 fd 201510 [13:53:03]save to /storage/0543/doc_00201510 [13:53:03]save last doc name /storage/0543/doc_00201510 to /storage/kkm_last_doc_name [13:53:03]save OK [13:53:03]Clear old archive folders... [13:53:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:53:03]tlvbuf is B6E8BC10 [13:53:03]SAM_PROTO_ClearQueue [13:53:03]wFMCommunicate request_size=4 [13:53:03]MH_SAM_APDU [13:53:03]CAPDU: 80 09 00 00 [13:53:03]Write to MH i2c: E2 08 00 98 19 80 09 00 00 00 00 00 00 23 [13:53:03]Write i2c OK [13:53:03]MH_I2C_Read... [13:53:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:03]Read from MH i2c: E2 [13:53:03]MH_I2C_Read... [13:53:03]Read from MH i2c: E2 03 00 [13:53:03]MH_I2C_Read... [13:53:03]Read from MH i2c: E2 03 00 98 19 00 90 00 25 [13:53:03]RAPDU: 90 00 [13:53:03]wFMCommunicate OK [13:53:03]SAM_PROTO_ClearQueue done [13:53:03]KKMCreateOFDPacket [13:53:03]OFDProtocolAddRootSTLVToBuf [13:53:03]FM_MakeSignedData [13:53:03]FM_MakeSignedData [13:53:03]SAM_PROTO_SignData [13:53:03]wFMCommunicate request_size=4 [13:53:03]MH_SAM_APDU [13:53:03]CAPDU: 80 0D 01 02 [13:53:03]Write to MH i2c: E2 08 00 99 19 80 0D 01 02 00 00 00 00 2B [13:53:03]Write i2c OK [13:53:03]MH_I2C_Read... [13:53:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:03]Read from MH i2c: E2 [13:53:03]MH_I2C_Read... [13:53:03]Read from MH i2c: E2 03 00 [13:53:03]MH_I2C_Read... [13:53:03]Read from MH i2c: E2 03 00 99 19 00 90 00 26 [13:53:03]RAPDU: 90 00 [13:53:03]wFMCommunicate OK [13:53:03]wFMCommunicate request_size=255 [13:53:03]MH_SAM_APDU [13: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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 10 01 00 00 F4 03 04 00 3F F4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 26 13 03 00 35 04 06 00 5F [13:53:03]Write to MH i2c: E2 02 01 9A 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 10 01 00 00 F4 03 04 00 3F F4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 26 13 03 00 35 04 06 00 5F 00 00 52 [13:53:03]Write i2c OK [13:53:03]MH_I2C_Read... [13:53:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:03]Read from MH i2c: E2 [13:53:03]MH_I2C_Read... [13:53:03]Read from MH i2c: E2 03 00 [13:53:03]MH_I2C_Read... [13:53:03]Read from MH i2c: E2 03 00 9A 19 00 90 00 27 [13:53:03]RAPDU: 90 00 [13:53:03]wFMCommunicate OK [13:53:03]wFMCommunicate request_size=10 [13:53:03]MH_SAM_APDU [13:53:03]CAPDU: 80 0D 02 02 05 0F 86 F0 50 4C [13:53:03]Write to MH i2c: E2 0D 00 9B 19 80 0D 02 02 05 00 0F 86 F0 50 4C 00 00 59 [13:53:03]Write i2c OK [13:53:03]MH_I2C_Read... [13:53:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:04]Read from MH i2c: E2 [13:53:04]MH_I2C_Read... [13:53:04]Read from MH i2c: E2 03 00 [13:53:04]MH_I2C_Read... [13:53:04]Read from MH i2c: E2 03 00 9B 19 00 90 00 28 [13:53:04]RAPDU: 90 00 [13:53:04]wFMCommunicate OK [13:53:04]wFMCommunicate request_size=4 [13:53:04]MH_SAM_APDU [13:53:04]CAPDU: 80 0D 03 02 [13:53:04]Write to MH i2c: E2 08 00 9C 19 80 0D 03 02 00 00 00 00 30 [13:53:04]Write i2c OK [13:53:04]MH_I2C_Read... [13:53:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:04]Read from MH i2c: E2 [13:53:04]MH_I2C_Read... [13:53:04]Read from MH i2c: E2 0B 00 [13:53:04]MH_I2C_Read... [13:53:04]Read from MH i2c: E2 0B 00 9C 19 00 71 DE 1E 38 E2 C7 F0 82 90 00 F1 [13:53:04]RAPDU: 71 DE 1E 38 E2 C7 F0 82 90 00 [13:53:04]wFMCommunicate OK [13:53:04]SAM_PROTO_SignData done [13:53:04]FM_MakeSignedData done [13:53:04]CreateOFDProtocolMessage [13:53:04]wFMCommunicate request_size=4 [13:53:04]MH_SAM_APDU [13:53:04]CAPDU: 80 11 00 00 [13:53:04]Write to MH i2c: E2 08 00 9D 19 80 11 00 00 00 00 00 00 30 [13:53:04]Write i2c OK [13:53:04]MH_I2C_Read... [13:53:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:04]Read from MH i2c: E2 [13:53:04]MH_I2C_Read... [13:53:04]Read from MH i2c: E2 17 00 [13:53:04]MH_I2C_Read... [13:53:04]Read from MH i2c: E2 17 00 9D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 85 [13:53:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:53:04]wFMCommunicate OK [13:53:04]CreateOFDProtocolMessage done [13:53:04]OFDSenderStorePacket 201510 [13:53:04]StoreOFDPacket docnum=201510 [13:53:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 97 B3 07 01 B6 B4 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 10 01 00 00 F4 03 04 00 3F F4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 26 13 03 00 35 04 06 00 5F 0F 86 F0 50 4C 71 DE 1E 38 E2 C7 F0 82 [13:53:04]CheckFolder [13:53:04]dirname=/storage/ofd_packets [13:53:04]CheckFolder done [13:53:04]ProducePacketName [13:53:04]name=ofd_packets/00201510 [13:53:04]NVStorageSaveData ofd_packets/00201510 [13:53:04]File name is /storage/ofd_packets/00201510 [13:53:04]Write 301 bytes [13:53:04]NVStorageSaveData done [13:53:04]OFDSenderStorePacket done [13:53:04]KKMCreateOFDPacket done [13:53:04]NVStorageSaveData kkm_last_timestamp [13:53:04]File name is /storage/kkm_last_timestamp [13:53:04]Write 4 bytes [13:53:04]NVStorageSaveData done [13:53:04]ExternCall_PrintAddStr [13:53:04]wPrintStart [13:53:04]Write to MH i2c: 01 00 00 9E 19 B7 [13:53:04]Write i2c OK [13:53:04]MH_I2C_Read... [13:53:04]Read from MH i2c: 01 [13:53:04]MH_I2C_Read... [13:53:04]Read from MH i2c: 01 07 00 [13:53:04]MH_I2C_Read... [13:53:04]Read from MH i2c: 01 07 00 9E 19 00 00 00 00 00 FF 0F CC [13:53:04]RasterBufferAndPrint [13:53:04]line Счет N : (1)449261 [13:53:04]line ИНН: 02508201610067 [13:53:04]line Контрольно-Кассовый Чек [13:53:04]line ПРОДАЖА [13:53:04]line ТРК (МРК, ГНК) : 41 [13:53:04]line Товар: 2710124130 [13:53:04]line Аи-92-К-2 [13:53:04]line 10.470 * 66.90 [13:53:04]line = 700.44 [13:53:04]line НДС 12% НСП 1% [13:53:04]line > о реализуемом товаре [13:53:04]line ОКРУГЛЕНИЕ: -0.44 [13:53:04]line ИТОГО: 700.00 [13:53:04]line Внесено: 700.00 [13:53:04]line СДАЧА: 0.00 [13:53:04]line НСП 1% : 6.20 [13:53:04]line НДС 12% : 74.38 [13:53:04]line Наличными: 700.00 [13:53:04]line Безнал.: 0.00 [13:53:04]line Место: АЗС № 171 "Партнер Нефть" [13:53:04]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:53:04]line СНО: Общий режим [13:53:04]line Чек 272 26.10.2024 13:53 [13:53:04]line Смена: 543 ФФД: 1.0 [13:53:04]line ЗНМ: 0300000109 [13:53:04]line РНМ: 0000000000091777 [13:53:04]line Версия ККМ: 001 [13:53:04]line ФМ: 0000000000871756 [13:53:04]line ФД: 201510 [13:53:04]line ФПД: 104520293044300 [13:53:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T135303&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201510&fm=104520293044300&tin=02508201610067®Number=0000000000091777&sum=70000 [13:53:04]OFD Sender: Processing packet 201510 [packets to send 112, broken 111] [13:53:04]ProducePacketName [13:53:04]name=ofd_packets/00201510 [13:53:04]OFD Sender: To server: pG, [13:53:04]CommunicateWithHost lk.salyk.kg:30040 [13:53:04]ConnectInit lk.salyk.kg [13:53:04]written 0, free lines is 4095 [13:53:04]Connected sock=10 [13:53:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 97 B3 07 01 B6 B4 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 10 01 00 00 F4 03 04 00 3F F4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 26 13 03 00 35 04 06 00 5F 0F 86 F0 50 4C 71 DE 1E 38 E2 C7 F0 82 [13:53:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 44 2E 47 00 D8 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 26 13 03 00 F4 03 04 00 E8 9F 1C 67 B6 04 01 00 00 01 8A 47 A4 F3 59 EC 30 [13:53:04]CommunicateWithHost err = 0 [13:53:04]CheckOFDResponse [13:53:04]1017 (14) - 77093643461234 [13:53:04]1041 (16) - 0000000000871756 [13:53:04]1040 (4) - 201510 [13:53:04]1012 (4) - 26.10.2024 07:53 [13:53:04]1206 (1) - 0 [13:53:04]OFD Sender: Remove packet 201510 [13:53:04]ProducePacketName [13:53:04]name=ofd_packets/00201510 [13:53:04]NVStorageDeleteData [13:53:04]Write to MH i2c: 01 00 00 C9 19 E2 [13:53:04]Write i2c OK [13:53:04]MH_I2C_Read... [13:53:04]Read from MH i2c: 01 [13:53:04]MH_I2C_Read... [13:53:04]Read from MH i2c: 01 07 00 [13:53:04]MH_I2C_Read... [13:53:04]Read from MH i2c: 01 07 00 C9 19 00 00 00 00 00 93 0C 88 [13:53:04]RasterBufferAndPrint [13:53:04]line [13:53:04]line [13:53:04]line [13:53:04]line [13:53:04]line [13:53:04]written 0, free lines is 3225 [13:53:04]MH_Cut [13:53:04]Write to MH i2c: D1 01 00 D0 19 01 BB [13:53:04]Write i2c OK [13:53:04]MH_I2C_Read... [13:53:04]Read from MH i2c: D1 [13:53:04]MH_I2C_Read... [13:53:04]Read from MH i2c: D1 01 00 [13:53:04]MH_I2C_Read... [13:53:04]Read from MH i2c: D1 01 00 D0 19 00 BA [13:53:04]Write to MH i2c: 01 00 00 D1 19 EA [13:53:04]Write i2c OK [13:53:04]MH_I2C_Read... [13:53:05]OFD Sender: No OFD packet to send [13:53:05]*** Cut start [13:53:05]*** Purtial cut [13:53:05]*** Stage 1: CUTSNS_PIN = 1 [13:53:06]Read from MH i2c: 01 [13:53:06]MH_I2C_Read... [13:53:06]*** Stop cut motor [13:53:06]*** Cut end [13:53:06]Read from MH i2c: 01 07 00 [13:53:06]MH_I2C_Read... [13:53:06]Read from MH i2c: 01 07 00 D1 19 00 00 00 00 00 FF 0F FF [13:53:06]process_action close_receipt done [13:53:06]requested_data is exist [13:53:06]produce_requested_data [13:53:06]requested_item fm.sn is exist - process it [13:53:06]wFMCommunicate request_size=4 [13:53:06]MH_SAM_APDU [13:53:06]CAPDU: 80 11 00 00 [13:53:06]Write to MH i2c: E2 08 00 D2 19 80 11 00 00 00 00 00 00 65 [13:53:06]Write i2c OK [13:53:06]MH_I2C_Read... [13:53:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:06]Read from MH i2c: E2 [13:53:06]MH_I2C_Read... [13:53:06]Read from MH i2c: E2 17 00 [13:53:06]MH_I2C_Read... [13:53:06]Read from MH i2c: E2 17 00 D2 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BA [13:53:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:53:06]wFMCommunicate OK [13:53:06]requested_item fd.num is exist - process it [13:53:06]SAM_PROTO_GetFieldsCounters [13:53:06]wFMCommunicate request_size=4 [13:53:06]MH_SAM_APDU [13:53:06]CAPDU: 80 13 00 00 [13:53:06]Write to MH i2c: E2 08 00 D3 19 80 13 00 00 00 00 00 00 68 [13:53:06]Write i2c OK [13:53:06]MH_I2C_Read... [13:53:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:06]Read from MH i2c: E2 [13:53:06]MH_I2C_Read... [13:53:06]Read from MH i2c: E2 62 00 [13:53:06]MH_I2C_Read... [13:53:06]Read from MH i2c: E2 62 00 D3 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 26 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 21 [13:53:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 26 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:53:06]wFMCommunicate OK [13:53:06]SAM_PROTO_GetFieldsCounters done [13:53:06]requested_item shift.num is exist - process it [13:53:06]requested_item shift.opened is exist - process it [13:53:06]req_shift_opened [13:53:06]FM_GetShiftState [13:53:06]SAM_PROTO_GetShiftState [13:53:06]wFMCommunicate request_size=4 [13:53:06]MH_SAM_APDU [13:53:06]CAPDU: 80 13 01 00 [13:53:06]Write to MH i2c: E2 08 00 D4 19 80 13 01 00 00 00 00 00 6A [13:53:06]Write i2c OK [13:53:06]MH_I2C_Read... [13:53:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:06]Read from MH i2c: E2 [13:53:06]MH_I2C_Read... [13:53:06]Read from MH i2c: E2 0E 00 [13:53:06]MH_I2C_Read... [13:53:06]Read from MH i2c: E2 0E 00 D4 19 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 79 [13:53:06]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:53:06]wFMCommunicate OK [13:53:06]SAM_PROTO_GetShiftState done [13:53:06]FM_GetShiftState done [13:53:06]req_shift_opened done [13:53:06]requested_item shift.open_date is exist - process it [13:53:06]req_shift_open_date [13:53:06]req_shift_open_date done [13:53:06]produce_requested_data done [13:53:06]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201510,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:53:06]process_action_free close_receipt [13:53:06]json_value_free [13:53:06]json_value_free done [13:53:06]process_json_proto returns [13:53:06]Send response to host [13:53:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201510,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:53:06]free response buf [13:53:06]execute_script done [13:53:06]execute_script returns [13:53:06]free content buf [13:53:06]Sock 8.Close socket [13:53:06]Sock 8.Thread stoped [13:53:10]OFD Sender: No OFD packet to send [13:53:15]OFD Sender: No OFD packet to send [13:53:20]OFD Sender: No OFD packet to send [13:53:25]OFD Sender: No OFD packet to send [13:53:30]OFD Sender: No OFD packet to send [13:53:35]OFD Sender: No OFD packet to send [13:53:40]OFD Sender: No OFD packet to send [13:53:45]OFD Sender: No OFD packet to send [13:53:50]OFD Sender: No OFD packet to send [13:53:55]OFD Sender: No OFD packet to send [13:54:00]OFD Sender: No OFD packet to send [13:54:05]OFD Sender: No OFD packet to send [13:54:10]OFD Sender: No OFD packet to send [13:54:15]OFD Sender: No OFD packet to send [13:54:20]OFD Sender: No OFD packet to send [13:54:25]OFD Sender: No OFD packet to send [13:54:30]OFD Sender: No OFD packet to send [13:54:35]OFD Sender: No OFD packet to send [13:54:40]OFD Sender: No OFD packet to send [13:54:45]OFD Sender: No OFD packet to send [13:54:50]OFD Sender: No OFD packet to send [13:54:55]OFD Sender: No OFD packet to send [13:55:00]OFD Sender: No OFD packet to send [13:55:05]OFD Sender: No OFD packet to send [13:55:10]OFD Sender: No OFD packet to send [13:55:15]OFD Sender: No OFD packet to send [13:55:20]OFD Sender: No OFD packet to send [13:55:21]accept exits with 9 [13:55:21]New connection [13:55:21]New thread 3066834276 created [13:55:21]Thread 3066690916 joined [13:55:21]Waiting for new connection... [13:55:21] Sock 9.Parse request [13:55:21]Sock 9.Check first char [13:55:21]Sock 9.First char is OK [13:55:21]request: POST /json_proto HTTP/1.0 [13:55:21]Method: POST [13:55:21]URL: /json_proto [13:55:21]Method is POST - this is cgi request [13:55:21]url: /json_proto [13:55:21]query_string will be loaded in cgi processing [13:55:21]execute_cgi json_proto POST (null) [13:55:21]execute_cgi path=json_proto method=POST [13:55:21]POST find Content-Length [13:55:21]Host: 172.17.63.195:8080 [13:55:21]Content-Length: 679 [13:55:21]Content-Type: application/json [13:55:21] [13:55:21]POST finish read [13:55:21]Found Content-Length = 679 [13:55:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [13:55:21]execute_script... [13:55: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)449262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [13:55:21]POST & json_proto [13:55:21]process_json_proto [13:55:21]json parsed OK: [13:55:21]protocol is kg_v1.0 [13:55:21]action value=close_receipt [13:55:21]process_action close_receipt [13:55:21]cmd_close_receipt [13:55:21]MH_GetDate [13:55:21]Write to MH i2c: F0 00 00 D5 19 DD [13:55:21]Write i2c OK [13:55:21]MH_I2C_Read... [13:55:21]Read from MH i2c: F0 [13:55:21]MH_I2C_Read... [13:55:21]Read from MH i2c: F0 09 00 [13:55:21]MH_I2C_Read... [13:55:21]Read from MH i2c: F0 09 00 D5 19 00 CA F4 1C 67 68 46 19 67 55 [13:55:21]GetLastDocTimeStamp 1729950783 [13:55:21]current date 1729950922 [13:55:21]FM_GetShiftState [13:55:21]SAM_PROTO_GetShiftState [13:55:21]wFMCommunicate request_size=4 [13:55:21]MH_SAM_APDU [13:55:21]CAPDU: 80 13 01 00 [13:55:21]Write to MH i2c: E2 08 00 D6 19 80 13 01 00 00 00 00 00 6C [13:55:21]Write i2c OK [13:55:21]MH_I2C_Read... [13:55:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:21]Read from MH i2c: E2 [13:55:21]MH_I2C_Read... [13:55:21]Read from MH i2c: E2 0E 00 [13:55:21]MH_I2C_Read... [13:55:21]Read from MH i2c: E2 0E 00 D6 19 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 7B [13:55:21]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:55:21]wFMCommunicate OK [13:55:21]SAM_PROTO_GetShiftState done [13:55:21]FM_GetShiftState done [13:55:21]opened in 1729900879 [13:55:21]opened+sec_in_day 1729987279 [13:55:21]quantity*price = 150037 [13:55:21]sum+1 = 150039 [13:55:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 273 26.10.2024 13:55 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201511 ФПД: 241491479918668 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T135522&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201511&fm=241491479918668&tin=02508201610067®Number=0000000000091777&sum=150000 [13:55:22]StoreToDocumentArchive [13:55:22]shift 543 fd 201511 [13:55:22]save to /storage/0543/doc_00201511 [13:55:22]save last doc name /storage/0543/doc_00201511 to /storage/kkm_last_doc_name [13:55:22]save OK [13:55:22]Clear old archive folders... [13:55:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:55:22]tlvbuf is 01F58B50 [13:55:22]SAM_PROTO_ClearQueue [13:55:22]wFMCommunicate request_size=4 [13:55:22]MH_SAM_APDU [13:55:22]CAPDU: 80 09 00 00 [13:55:22]Write to MH i2c: E2 08 00 E3 19 80 09 00 00 00 00 00 00 6E [13:55:22]Write i2c OK [13:55:22]MH_I2C_Read... [13:55:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:22]Read from MH i2c: E2 [13:55:22]MH_I2C_Read... [13:55:22]Read from MH i2c: E2 03 00 [13:55:22]MH_I2C_Read... [13:55:22]Read from MH i2c: E2 03 00 E3 19 00 90 00 70 [13:55:22]RAPDU: 90 00 [13:55:22]wFMCommunicate OK [13:55:22]SAM_PROTO_ClearQueue done [13:55:22]KKMCreateOFDPacket [13:55:22]OFDProtocolAddRootSTLVToBuf [13:55:22]FM_MakeSignedData [13:55:22]FM_MakeSignedData [13:55:22]SAM_PROTO_SignData [13:55:22]wFMCommunicate request_size=4 [13:55:22]MH_SAM_APDU [13:55:22]CAPDU: 80 0D 01 02 [13:55:22]Write to MH i2c: E2 08 00 E4 19 80 0D 01 02 00 00 00 00 76 [13:55:22]Write i2c OK [13:55:22]MH_I2C_Read... [13:55:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:22]Read from MH i2c: E2 [13:55:22]MH_I2C_Read... [13:55:22]Read from MH i2c: E2 03 00 [13:55:22]MH_I2C_Read... [13:55:22]Read from MH i2c: E2 03 00 E4 19 00 90 00 71 [13:55:22]RAPDU: 90 00 [13:55:22]wFMCommunicate OK [13:55:22]wFMCommunicate request_size=255 [13:55:22]MH_SAM_APDU [13:55:22]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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 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 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 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 11 01 00 00 F4 03 04 00 CA F4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 27 13 03 00 35 04 06 00 DB A2 9D E0 [13:55:22]Write to MH i2c: E2 02 01 E5 19 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 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 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 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 11 01 00 00 F4 03 04 00 CA F4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 27 13 03 00 35 04 06 00 DB A2 9D E0 00 00 22 [13:55:22]Write i2c OK [13:55:22]MH_I2C_Read... [13:55:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:22]Read from MH i2c: E2 [13:55:22]MH_I2C_Read... [13:55:22]Read from MH i2c: E2 03 00 [13:55:22]MH_I2C_Read... [13:55:22]Read from MH i2c: E2 03 00 E5 19 00 90 00 72 [13:55:22]RAPDU: 90 00 [13:55:22]wFMCommunicate OK [13:55:22]wFMCommunicate request_size=7 [13:55:22]MH_SAM_APDU [13:55:22]CAPDU: 80 0D 02 02 02 78 4C [13:55:22]Write to MH i2c: E2 0A 00 E6 19 80 0D 02 02 02 00 78 4C 00 00 41 [13:55:22]Write i2c OK [13:55:22]MH_I2C_Read... [13:55:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:22]Read from MH i2c: E2 [13:55:22]MH_I2C_Read... [13:55:22]Read from MH i2c: E2 03 00 [13:55:22]MH_I2C_Read... [13:55:22]Read from MH i2c: E2 03 00 E6 19 00 90 00 73 [13:55:22]RAPDU: 90 00 [13:55:22]wFMCommunicate OK [13:55:22]wFMCommunicate request_size=4 [13:55:22]MH_SAM_APDU [13:55:22]CAPDU: 80 0D 03 02 [13:55:22]Write to MH i2c: E2 08 00 E7 19 80 0D 03 02 00 00 00 00 7B [13:55:22]Write i2c OK [13:55:22]MH_I2C_Read... [13:55:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:22]Read from MH i2c: E2 [13:55:22]MH_I2C_Read... [13:55:22]Read from MH i2c: E2 0B 00 [13:55:22]MH_I2C_Read... [13:55:22]Read from MH i2c: E2 0B 00 E7 19 00 C5 1E 98 FE 0A 1B AB 04 90 00 C9 [13:55:22]RAPDU: C5 1E 98 FE 0A 1B AB 04 90 00 [13:55:22]wFMCommunicate OK [13:55:22]SAM_PROTO_SignData done [13:55:22]FM_MakeSignedData done [13:55:22]CreateOFDProtocolMessage [13:55:22]wFMCommunicate request_size=4 [13:55:22]MH_SAM_APDU [13:55:22]CAPDU: 80 11 00 00 [13:55:22]Write to MH i2c: E2 08 00 E8 19 80 11 00 00 00 00 00 00 7B [13:55:22]Write i2c OK [13:55:22]MH_I2C_Read... [13:55:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:22]Read from MH i2c: E2 [13:55:22]MH_I2C_Read... [13:55:22]Read from MH i2c: E2 17 00 [13:55:22]MH_I2C_Read... [13:55:22]Read from MH i2c: E2 17 00 E8 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D0 [13:55:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:55:22]wFMCommunicate OK [13:55:22]CreateOFDProtocolMessage done [13:55:22]OFDSenderStorePacket 201511 [13:55:22]StoreOFDPacket docnum=201511 [13:55:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 E4 F0 04 01 62 34 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 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 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 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 11 01 00 00 F4 03 04 00 CA F4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 27 13 03 00 35 04 06 00 DB A2 9D E0 78 4C C5 1E 98 FE 0A 1B AB 04 [13:55:22]CheckFolder [13:55:22]dirname=/storage/ofd_packets [13:55:22]CheckFolder done [13:55:22]ProducePacketName [13:55:22]name=ofd_packets/00201511 [13:55:22]NVStorageSaveData ofd_packets/00201511 [13:55:22]File name is /storage/ofd_packets/00201511 [13:55:22]Write 298 bytes [13:55:22]NVStorageSaveData done [13:55:22]OFDSenderStorePacket done [13:55:22]KKMCreateOFDPacket done [13:55:22]NVStorageSaveData kkm_last_timestamp [13:55:22]File name is /storage/kkm_last_timestamp [13:55:22]Write 4 bytes [13:55:22]NVStorageSaveData done [13:55:22]ExternCall_PrintAddStr [13:55:22]wPrintStart [13:55:22]Write to MH i2c: 01 00 00 E9 19 02 [13:55:22]Write i2c OK [13:55:22]MH_I2C_Read... [13:55:22]Read from MH i2c: 01 [13:55:22]MH_I2C_Read... [13:55:22]Read from MH i2c: 01 07 00 [13:55:22]MH_I2C_Read... [13:55:22]Read from MH i2c: 01 07 00 E9 19 00 00 00 00 00 FF 0F 17 [13:55:22]RasterBufferAndPrint [13:55:22]line Счет N : (1)449262 [13:55:22]line ИНН: 02508201610067 [13:55:22]line Контрольно-Кассовый Чек [13:55:22]line ПРОДАЖА [13:55:22]line ТРК (МРК, ГНК) : 43 [13:55:22]line Товар: 2710194210 [13:55:22]line ДТ-К-2 [13:55:22]line 19.690 * 76.20 [13:55:22]line = 1500.38 [13:55:22]line НДС 12% НСП 1% [13:55:22]line > о реализуемом товаре [13:55:22]line ОКРУГЛЕНИЕ: -0.38 [13:55:22]line ИТОГО: 1500.00 [13:55:22]line Внесено: 1500.00 [13:55:22]line СДАЧА: 0.00 [13:55:22]line НСП 1% : 13.28 [13:55:22]line НДС 12% : 159.33 [13:55:22]line Наличными: 1500.00 [13:55:22]line Безнал.: 0.00 [13:55:22]line Место: АЗС № 171 "Партнер Нефть" [13:55:22]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:55:22]line СНО: Общий режим [13:55:22]line Чек 273 26.10.2024 13:55 [13:55:22]line Смена: 543 ФФД: 1.0 [13:55:22]line ЗНМ: 0300000109 [13:55:22]line РНМ: 0000000000091777 [13:55:22]line Версия ККМ: 001 [13:55:22]line ФМ: 0000000000871756 [13:55:22]line ФД: 201511 [13:55:22]line ФПД: 241491479918668 [13:55:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T135522&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201511&fm=241491479918668&tin=02508201610067®Number=0000000000091777&sum=150000 [13:55:23]OFD Sender: Processing packet 201511 [packets to send 112, broken 111] [13:55:23]ProducePacketName [13:55:23]name=ofd_packets/00201511 [13:55:23]OFD Sender: To server: pG, [13:55:23]CommunicateWithHost lk.salyk.kg:30040 [13:55:23]ConnectInit lk.salyk.kg [13:55:23]written 0, free lines is 4095 [13:55:23]Connected sock=11 [13:55:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 E4 F0 04 01 62 34 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 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 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 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 11 01 00 00 F4 03 04 00 CA F4 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 27 13 03 00 35 04 06 00 DB A2 9D E0 78 4C C5 1E 98 FE 0A 1B AB 04 [13:55:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 2E F9 47 00 93 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 27 13 03 00 F4 03 04 00 72 A0 1C 67 B6 04 01 00 00 7D 40 27 A2 28 22 3F B2 [13:55:23]CommunicateWithHost err = 0 [13:55:23]CheckOFDResponse [13:55:23]1017 (14) - 77093643461234 [13:55:23]1041 (16) - 0000000000871756 [13:55:23]1040 (4) - 201511 [13:55:23]1012 (4) - 26.10.2024 07:55 [13:55:23]1206 (1) - 0 [13:55:23]OFD Sender: Remove packet 201511 [13:55:23]ProducePacketName [13:55:23]name=ofd_packets/00201511 [13:55:23]NVStorageDeleteData [13:55:23]Write to MH i2c: 01 00 00 14 1A 2E [13:55:23]Write i2c OK [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: 01 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: 01 07 00 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: 01 07 00 14 1A 00 00 00 00 00 96 0C D7 [13:55:23]RasterBufferAndPrint [13:55:23]line [13:55:23]line [13:55:23]line [13:55:23]line [13:55:23]line [13:55:23]written 0, free lines is 3227 [13:55:23]MH_Cut [13:55:23]Write to MH i2c: D1 01 00 1B 1A 01 07 [13:55:23]Write i2c OK [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: D1 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: D1 01 00 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: D1 01 00 1B 1A 00 06 [13:55:23]Write to MH i2c: 01 00 00 1C 1A 36 [13:55:23]Write i2c OK [13:55:23]MH_I2C_Read... [13:55:23]OFD Sender: No OFD packet to send [13:55:24]*** Cut start [13:55:24]*** Purtial cut [13:55:24]*** Stage 1: CUTSNS_PIN = 1 [13:55:24]Read from MH i2c: 01 [13:55:24]MH_I2C_Read... [13:55:24]*** Stop cut motor [13:55:24]*** Cut end [13:55:24]Read from MH i2c: 01 07 00 [13:55:24]MH_I2C_Read... [13:55:24]Read from MH i2c: 01 07 00 1C 1A 00 00 00 00 00 FF 0F 4B [13:55:24]process_action close_receipt done [13:55:24]requested_data is exist [13:55:24]produce_requested_data [13:55:24]requested_item fm.sn is exist - process it [13:55:24]wFMCommunicate request_size=4 [13:55:24]MH_SAM_APDU [13:55:24]CAPDU: 80 11 00 00 [13:55:24]Write to MH i2c: E2 08 00 1D 1A 80 11 00 00 00 00 00 00 B1 [13:55:24]Write i2c OK [13:55:24]MH_I2C_Read... [13:55:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:24]Read from MH i2c: E2 [13:55:24]MH_I2C_Read... [13:55:24]Read from MH i2c: E2 17 00 [13:55:24]MH_I2C_Read... [13:55:24]Read from MH i2c: E2 17 00 1D 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 06 [13:55:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:55:24]wFMCommunicate OK [13:55:24]requested_item fd.num is exist - process it [13:55:24]SAM_PROTO_GetFieldsCounters [13:55:24]wFMCommunicate request_size=4 [13:55:24]MH_SAM_APDU [13:55:24]CAPDU: 80 13 00 00 [13:55:24]Write to MH i2c: E2 08 00 1E 1A 80 13 00 00 00 00 00 00 B4 [13:55:24]Write i2c OK [13:55:24]MH_I2C_Read... [13:55:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:24]Read from MH i2c: E2 [13:55:24]MH_I2C_Read... [13:55:24]Read from MH i2c: E2 62 00 [13:55:24]MH_I2C_Read... [13:55:24]Read from MH i2c: E2 62 00 1E 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 27 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 71 [13:55:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 27 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:55:24]wFMCommunicate OK [13:55:24]SAM_PROTO_GetFieldsCounters done [13:55:24]requested_item shift.num is exist - process it [13:55:24]requested_item shift.opened is exist - process it [13:55:24]req_shift_opened [13:55:24]FM_GetShiftState [13:55:24]SAM_PROTO_GetShiftState [13:55:24]wFMCommunicate request_size=4 [13:55:24]MH_SAM_APDU [13:55:24]CAPDU: 80 13 01 00 [13:55:24]Write to MH i2c: E2 08 00 1F 1A 80 13 01 00 00 00 00 00 B6 [13:55:24]Write i2c OK [13:55:24]MH_I2C_Read... [13:55:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:24]Read from MH i2c: E2 [13:55:24]MH_I2C_Read... [13:55:24]Read from MH i2c: E2 0E 00 [13:55:24]MH_I2C_Read... [13:55:24]Read from MH i2c: E2 0E 00 1F 1A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C5 [13:55:24]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:55:24]wFMCommunicate OK [13:55:24]SAM_PROTO_GetShiftState done [13:55:24]FM_GetShiftState done [13:55:24]req_shift_opened done [13:55:24]requested_item shift.open_date is exist - process it [13:55:24]req_shift_open_date [13:55:24]req_shift_open_date done [13:55:24]produce_requested_data done [13:55:24]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201511,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:55:24]process_action_free close_receipt [13:55:24]json_value_free [13:55:24]json_value_free done [13:55:24]process_json_proto returns [13:55:24]Send response to host [13:55:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201511,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:55:24]free response buf [13:55:24]execute_script done [13:55:24]execute_script returns [13:55:24]free content buf [13:55:24]Sock 9.Close socket [13:55:24]Sock 9.Thread stoped [13:55:28]OFD Sender: No OFD packet to send [13:55:33]OFD Sender: No OFD packet to send [13:55:38]OFD Sender: No OFD packet to send [13:55:43]OFD Sender: No OFD packet to send [13:55:48]OFD Sender: No OFD packet to send [13:55:53]OFD Sender: No OFD packet to send [13:55:58]OFD Sender: No OFD packet to send [13:56:03]OFD Sender: No OFD packet to send [13:56:08]OFD Sender: No OFD packet to send [13:56:13]OFD Sender: No OFD packet to send [13:56:18]OFD Sender: No OFD packet to send [13:56:23]OFD Sender: No OFD packet to send [13:56:28]OFD Sender: No OFD packet to send [13:56:33]OFD Sender: No OFD packet to send [13:56:38]OFD Sender: No OFD packet to send [13:56:43]OFD Sender: No OFD packet to send [13:56:48]OFD Sender: No OFD packet to send [13:56:53]OFD Sender: No OFD packet to send [13:56:58]OFD Sender: No OFD packet to send [13:57:03]OFD Sender: No OFD packet to send [13:57:08]OFD Sender: No OFD packet to send [13:57:13]OFD Sender: No OFD packet to send [13:57:14]accept exits with 8 [13:57:14]New connection [13:57:14]New thread 3066690916 created [13:57:14]Thread 3066834276 joined [13:57:14]Waiting for new connection... [13:57:14] Sock 8.Parse request [13:57:14]Sock 8.Check first char [13:57:14]Sock 8.First char is OK [13:57:14]request: POST /json_proto HTTP/1.0 [13:57:14]Method: POST [13:57:14]URL: /json_proto [13:57:14]Method is POST - this is cgi request [13:57:14]url: /json_proto [13:57:14]query_string will be loaded in cgi processing [13:57:14]execute_cgi json_proto POST (null) [13:57:14]execute_cgi path=json_proto method=POST [13:57:14]POST find Content-Length [13:57:14]Host: 172.17.63.195:8080 [13:57:14]Content-Length: 677 [13:57:14]Content-Type: application/json [13:57:14] [13:57:14]POST finish read [13:57:14]Found Content-Length = 677 [13:57:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:57:14]execute_script... [13:57: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)449263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [13:57:14]POST & json_proto [13:57:14]process_json_proto [13:57:14]json parsed OK: [13:57:14]protocol is kg_v1.0 [13:57:14]action value=close_receipt [13:57:14]process_action close_receipt [13:57:14]cmd_close_receipt [13:57:14]MH_GetDate [13:57:14]Write to MH i2c: F0 00 00 20 1A 29 [13:57:14]Write i2c OK [13:57:14]MH_I2C_Read... [13:57:14]Read from MH i2c: F0 [13:57:14]MH_I2C_Read... [13:57:14]Read from MH i2c: F0 09 00 [13:57:14]MH_I2C_Read... [13:57:14]Read from MH i2c: F0 09 00 20 1A 00 3B F5 1C 67 68 46 19 67 13 [13:57:14]GetLastDocTimeStamp 1729950922 [13:57:14]current date 1729951035 [13:57:14]FM_GetShiftState [13:57:14]SAM_PROTO_GetShiftState [13:57:14]wFMCommunicate request_size=4 [13:57:14]MH_SAM_APDU [13:57:14]CAPDU: 80 13 01 00 [13:57:14]Write to MH i2c: E2 08 00 21 1A 80 13 01 00 00 00 00 00 B8 [13:57:14]Write i2c OK [13:57:14]MH_I2C_Read... [13:57:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:14]Read from MH i2c: E2 [13:57:14]MH_I2C_Read... [13:57:14]Read from MH i2c: E2 0E 00 [13:57:14]MH_I2C_Read... [13:57:14]Read from MH i2c: E2 0E 00 21 1A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C7 [13:57:14]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:57:14]wFMCommunicate OK [13:57:14]SAM_PROTO_GetShiftState done [13:57:14]FM_GetShiftState done [13:57:14]opened in 1729900879 [13:57:14]opened+sec_in_day 1729987279 [13:57:14]quantity*price = 40006 [13:57:14]sum+1 = 40007 [13:57:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 274 26.10.2024 13:57 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201512 ФПД: 265020875957414 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T135715&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201512&fm=265020875957414&tin=02508201610067®Number=0000000000091777&sum=40000 [13:57:15]StoreToDocumentArchive [13:57:15]shift 543 fd 201512 [13:57:15]save to /storage/0543/doc_00201512 [13:57:15]save last doc name /storage/0543/doc_00201512 to /storage/kkm_last_doc_name [13:57:15]save OK [13:57:15]Clear old archive folders... [13:57:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:57:15]tlvbuf is B6EA43D0 [13:57:15]SAM_PROTO_ClearQueue [13:57:15]wFMCommunicate request_size=4 [13:57:15]MH_SAM_APDU [13:57:15]CAPDU: 80 09 00 00 [13:57:15]Write to MH i2c: E2 08 00 2E 1A 80 09 00 00 00 00 00 00 BA [13:57:15]Write i2c OK [13:57:15]MH_I2C_Read... [13:57:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:57:15]Read from MH i2c: E2 [13:57:15]MH_I2C_Read... [13:57:15]Read from MH i2c: E2 03 00 [13:57:15]MH_I2C_Read... [13:57:15]Read from MH i2c: E2 03 00 2E 1A 00 90 00 BC [13:57:15]RAPDU: 90 00 [13:57:15]wFMCommunicate OK [13:57:15]SAM_PROTO_ClearQueue done [13:57:15]KKMCreateOFDPacket [13:57:15]OFDProtocolAddRootSTLVToBuf [13:57:15]FM_MakeSignedData [13:57:15]FM_MakeSignedData [13:57:15]SAM_PROTO_SignData [13:57:15]wFMCommunicate request_size=4 [13:57:15]MH_SAM_APDU [13:57:15]CAPDU: 80 0D 01 02 [13:57:15]Write to MH i2c: E2 08 00 2F 1A 80 0D 01 02 00 00 00 00 C2 [13:57:15]Write i2c OK [13:57:15]MH_I2C_Read... [13:57:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:57:15]Read from MH i2c: E2 [13:57:15]MH_I2C_Read... [13:57:15]Read from MH i2c: E2 03 00 [13:57:15]MH_I2C_Read... [13:57:15]Read from MH i2c: E2 03 00 2F 1A 00 90 00 BD [13:57:15]RAPDU: 90 00 [13:57:15]wFMCommunicate OK [13:57:15]wFMCommunicate request_size=255 [13:57:15]MH_SAM_APDU [13:57: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 32 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 12 01 00 00 F4 03 04 00 3B F5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 28 13 03 00 35 04 06 00 F1 [13:57:15]Write to MH i2c: E2 02 01 30 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 32 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 12 01 00 00 F4 03 04 00 3B F5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 28 13 03 00 35 04 06 00 F1 00 00 3B [13:57:15]Write i2c OK [13:57:15]MH_I2C_Read... [13:57:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:15]Read from MH i2c: E2 [13:57:15]MH_I2C_Read... [13:57:15]Read from MH i2c: E2 03 00 [13:57:15]MH_I2C_Read... [13:57:15]Read from MH i2c: E2 03 00 30 1A 00 90 00 BE [13:57:15]RAPDU: 90 00 [13:57:15]wFMCommunicate OK [13:57:15]wFMCommunicate request_size=10 [13:57:15]MH_SAM_APDU [13:57:15]CAPDU: 80 0D 02 02 05 08 FB 2B 64 A6 [13:57:15]Write to MH i2c: E2 0D 00 31 1A 80 0D 02 02 05 00 08 FB 2B 64 A6 00 00 07 [13:57:15]Write i2c OK [13:57:15]MH_I2C_Read... [13:57:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:16]Read from MH i2c: E2 [13:57:16]MH_I2C_Read... [13:57:16]Read from MH i2c: E2 03 00 [13:57:16]MH_I2C_Read... [13:57:16]Read from MH i2c: E2 03 00 31 1A 00 90 00 BF [13:57:16]RAPDU: 90 00 [13:57:16]wFMCommunicate OK [13:57:16]wFMCommunicate request_size=4 [13:57:16]MH_SAM_APDU [13:57:16]CAPDU: 80 0D 03 02 [13:57:16]Write to MH i2c: E2 08 00 32 1A 80 0D 03 02 00 00 00 00 C7 [13:57:16]Write i2c OK [13:57:16]MH_I2C_Read... [13:57:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:57:16]Read from MH i2c: E2 [13:57:16]MH_I2C_Read... [13:57:16]Read from MH i2c: E2 0B 00 [13:57:16]MH_I2C_Read... [13:57:16]Read from MH i2c: E2 0B 00 32 1A 00 F6 3C D8 61 43 09 44 15 90 00 D8 [13:57:16]RAPDU: F6 3C D8 61 43 09 44 15 90 00 [13:57:16]wFMCommunicate OK [13:57:16]SAM_PROTO_SignData done [13:57:16]FM_MakeSignedData done [13:57:16]CreateOFDProtocolMessage [13:57:16]wFMCommunicate request_size=4 [13:57:16]MH_SAM_APDU [13:57:16]CAPDU: 80 11 00 00 [13:57:16]Write to MH i2c: E2 08 00 33 1A 80 11 00 00 00 00 00 00 C7 [13:57:16]Write i2c OK [13:57:16]MH_I2C_Read... [13:57:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:16]Read from MH i2c: E2 [13:57:16]MH_I2C_Read... [13:57:16]Read from MH i2c: E2 17 00 [13:57:16]MH_I2C_Read... [13:57:16]Read from MH i2c: E2 17 00 33 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1C [13:57:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:57:16]wFMCommunicate OK [13:57:16]CreateOFDProtocolMessage done [13:57:16]OFDSenderStorePacket 201512 [13:57:16]StoreOFDPacket docnum=201512 [13:57:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A1 73 07 01 3A 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 32 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 12 01 00 00 F4 03 04 00 3B F5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 28 13 03 00 35 04 06 00 F1 08 FB 2B 64 A6 F6 3C D8 61 43 09 44 15 [13:57:16]CheckFolder [13:57:16]dirname=/storage/ofd_packets [13:57:16]CheckFolder done [13:57:16]ProducePacketName [13:57:16]name=ofd_packets/00201512 [13:57:16]NVStorageSaveData ofd_packets/00201512 [13:57:16]File name is /storage/ofd_packets/00201512 [13:57:16]Write 301 bytes [13:57:16]NVStorageSaveData done [13:57:16]OFDSenderStorePacket done [13:57:16]KKMCreateOFDPacket done [13:57:16]NVStorageSaveData kkm_last_timestamp [13:57:16]File name is /storage/kkm_last_timestamp [13:57:16]Write 4 bytes [13:57:16]NVStorageSaveData done [13:57:16]ExternCall_PrintAddStr [13:57:16]wPrintStart [13:57:16]Write to MH i2c: 01 00 00 34 1A 4E [13:57:16]Write i2c OK [13:57:16]MH_I2C_Read... [13:57:16]Read from MH i2c: 01 [13:57:16]MH_I2C_Read... [13:57:16]Read from MH i2c: 01 07 00 [13:57:16]MH_I2C_Read... [13:57:16]Read from MH i2c: 01 07 00 34 1A 00 00 00 00 00 FF 0F 63 [13:57:16]RasterBufferAndPrint [13:57:16]line Счет N : (1)449263 [13:57:16]line ИНН: 02508201610067 [13:57:16]line Контрольно-Кассовый Чек [13:57:16]line ПРОДАЖА [13:57:16]line ТРК (МРК, ГНК) : 62 [13:57:16]line Товар: 2710124130 [13:57:16]line Аи-92-К-2 [13:57:16]line 5.980 * 66.90 [13:57:16]line = 400.06 [13:57:16]line НДС 12% НСП 1% [13:57:16]line > о реализуемом товаре [13:57:16]line ОКРУГЛЕНИЕ: -0.06 [13:57:16]line ИТОГО: 400.00 [13:57:16]line Внесено: 400.00 [13:57:16]line СДАЧА: 0.00 [13:57:16]line НСП 1% : 3.54 [13:57:16]line НДС 12% : 42.48 [13:57:16]line Наличными: 400.00 [13:57:16]line Безнал.: 0.00 [13:57:16]line Место: АЗС № 171 "Партнер Нефть" [13:57:16]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:57:16]line СНО: Общий режим [13:57:16]line Чек 274 26.10.2024 13:57 [13:57:16]line Смена: 543 ФФД: 1.0 [13:57:16]line ЗНМ: 0300000109 [13:57:16]line РНМ: 0000000000091777 [13:57:16]line Версия ККМ: 001 [13:57:16]line ФМ: 0000000000871756 [13:57:16]line ФД: 201512 [13:57:16]line ФПД: 265020875957414 [13:57:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T135715&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201512&fm=265020875957414&tin=02508201610067®Number=0000000000091777&sum=40000 [13:57:16]OFD Sender: Processing packet 201512 [packets to send 112, broken 111] [13:57:16]ProducePacketName [13:57:16]name=ofd_packets/00201512 [13:57:16]OFD Sender: To server: pG, [13:57:16]CommunicateWithHost lk.salyk.kg:30040 [13:57:16]ConnectInit lk.salyk.kg [13:57:16]written 0, free lines is 4095 [13:57:16]Connected sock=9 [13:57:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A1 73 07 01 3A 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 32 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 12 01 00 00 F4 03 04 00 3B F5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 28 13 03 00 35 04 06 00 F1 08 FB 2B 64 A6 F6 3C D8 61 43 09 44 15 [13:57:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 0D 86 47 00 8D 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 28 13 03 00 F4 03 04 00 E4 A0 1C 67 B6 04 01 00 00 A6 78 8B 79 D3 B3 C1 AE [13:57:16]CommunicateWithHost err = 0 [13:57:16]CheckOFDResponse [13:57:16]1017 (14) - 77093643461234 [13:57:16]1041 (16) - 0000000000871756 [13:57:16]1040 (4) - 201512 [13:57:16]1012 (4) - 26.10.2024 07:57 [13:57:16]1206 (1) - 0 [13:57:16]OFD Sender: Remove packet 201512 [13:57:16]ProducePacketName [13:57:16]name=ofd_packets/00201512 [13:57:16]NVStorageDeleteData [13:57:16]Write to MH i2c: 01 00 00 5F 1A 79 [13:57:16]Write i2c OK [13:57:16]MH_I2C_Read... [13:57:16]Read from MH i2c: 01 [13:57:16]MH_I2C_Read... [13:57:16]Read from MH i2c: 01 07 00 [13:57:16]MH_I2C_Read... [13:57:16]Read from MH i2c: 01 07 00 5F 1A 00 00 00 00 00 91 0C 1D [13:57:16]RasterBufferAndPrint [13:57:16]line [13:57:16]line [13:57:16]line [13:57:16]line [13:57:16]line [13:57:16]written 0, free lines is 3223 [13:57:16]MH_Cut [13:57:16]Write to MH i2c: D1 01 00 66 1A 01 52 [13:57:16]Write i2c OK [13:57:16]MH_I2C_Read... [13:57:16]Read from MH i2c: D1 [13:57:16]MH_I2C_Read... [13:57:16]Read from MH i2c: D1 01 00 [13:57:16]MH_I2C_Read... [13:57:16]Read from MH i2c: D1 01 00 66 1A 00 51 [13:57:16]Write to MH i2c: 01 00 00 67 1A 81 [13:57:16]Write i2c OK [13:57:16]MH_I2C_Read... [13:57:17]OFD Sender: No OFD packet to send [13:57:17]*** Cut start [13:57:17]*** Purtial cut [13:57:17]*** Stage 1: CUTSNS_PIN = 1 [13:57:18]Read from MH i2c: 01 [13:57:18]MH_I2C_Read... [13:57:18]*** Stop cut motor [13:57:18]*** Cut end [13:57:18]Read from MH i2c: 01 07 00 [13:57:18]MH_I2C_Read... [13:57:18]Read from MH i2c: 01 07 00 67 1A 00 00 00 00 00 FF 0F 96 [13:57:18]process_action close_receipt done [13:57:18]requested_data is exist [13:57:18]produce_requested_data [13:57:18]requested_item fm.sn is exist - process it [13:57:18]wFMCommunicate request_size=4 [13:57:18]MH_SAM_APDU [13:57:18]CAPDU: 80 11 00 00 [13:57:18]Write to MH i2c: E2 08 00 68 1A 80 11 00 00 00 00 00 00 FC [13:57:18]Write i2c OK [13:57:18]MH_I2C_Read... [13:57:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:18]Read from MH i2c: E2 [13:57:18]MH_I2C_Read... [13:57:18]Read from MH i2c: E2 17 00 [13:57:18]MH_I2C_Read... [13:57:18]Read from MH i2c: E2 17 00 68 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 51 [13:57:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:57:18]wFMCommunicate OK [13:57:18]requested_item fd.num is exist - process it [13:57:18]SAM_PROTO_GetFieldsCounters [13:57:18]wFMCommunicate request_size=4 [13:57:18]MH_SAM_APDU [13:57:18]CAPDU: 80 13 00 00 [13:57:18]Write to MH i2c: E2 08 00 69 1A 80 13 00 00 00 00 00 00 FF [13:57:18]Write i2c OK [13:57:18]MH_I2C_Read... [13:57:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:18]Read from MH i2c: E2 [13:57:18]MH_I2C_Read... [13:57:18]Read from MH i2c: E2 62 00 [13:57:18]MH_I2C_Read... [13:57:18]Read from MH i2c: E2 62 00 69 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 28 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 C0 [13:57:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 28 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:57:18]wFMCommunicate OK [13:57:18]SAM_PROTO_GetFieldsCounters done [13:57:18]requested_item shift.num is exist - process it [13:57:18]requested_item shift.opened is exist - process it [13:57:18]req_shift_opened [13:57:18]FM_GetShiftState [13:57:18]SAM_PROTO_GetShiftState [13:57:18]wFMCommunicate request_size=4 [13:57:18]MH_SAM_APDU [13:57:18]CAPDU: 80 13 01 00 [13:57:18]Write to MH i2c: E2 08 00 6A 1A 80 13 01 00 00 00 00 00 01 [13:57:18]Write i2c OK [13:57:18]MH_I2C_Read... [13:57:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:18]Read from MH i2c: E2 [13:57:18]MH_I2C_Read... [13:57:18]Read from MH i2c: E2 0E 00 [13:57:18]MH_I2C_Read... [13:57:18]Read from MH i2c: E2 0E 00 6A 1A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 10 [13:57:18]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:57:18]wFMCommunicate OK [13:57:18]SAM_PROTO_GetShiftState done [13:57:18]FM_GetShiftState done [13:57:18]req_shift_opened done [13:57:18]requested_item shift.open_date is exist - process it [13:57:18]req_shift_open_date [13:57:18]req_shift_open_date done [13:57:18]produce_requested_data done [13:57:18]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201512,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:57:18]process_action_free close_receipt [13:57:18]json_value_free [13:57:18]json_value_free done [13:57:18]process_json_proto returns [13:57:18]Send response to host [13:57:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201512,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:57:18]free response buf [13:57:18]execute_script done [13:57:18]execute_script returns [13:57:18]free content buf [13:57:18]Sock 8.Close socket [13:57:18]Sock 8.Thread stoped [13:57:22]OFD Sender: No OFD packet to send [13:57:27]OFD Sender: No OFD packet to send [13:57:32]OFD Sender: No OFD packet to send [13:57:37]OFD Sender: No OFD packet to send [13:57:42]OFD Sender: No OFD packet to send [13:57:47]OFD Sender: No OFD packet to send [13:57:52]OFD Sender: No OFD packet to send [13:57:57]OFD Sender: No OFD packet to send [13:58:02]OFD Sender: No OFD packet to send [13:58:07]OFD Sender: No OFD packet to send [13:58:12]OFD Sender: No OFD packet to send [13:58:17]OFD Sender: No OFD packet to send [13:58:22]OFD Sender: No OFD packet to send [13:58:27]OFD Sender: No OFD packet to send [13:58:32]OFD Sender: No OFD packet to send [13:58:37]OFD Sender: No OFD packet to send [13:58:42]OFD Sender: No OFD packet to send [13:58:46]accept exits with 10 [13:58:46]New connection [13:58:46]New thread 3066834276 created [13:58:46]Thread 3066690916 joined [13:58:46]Waiting for new connection... [13:58:46] Sock 10.Parse request [13:58:46]Sock 10.Check first char [13:58:46]Sock 10.First char is OK [13:58:46]request: POST /json_proto HTTP/1.0 [13:58:46]Method: POST [13:58:46]URL: /json_proto [13:58:46]Method is POST - this is cgi request [13:58:46]url: /json_proto [13:58:46]query_string will be loaded in cgi processing [13:58:46]execute_cgi json_proto POST (null) [13:58:46]execute_cgi path=json_proto method=POST [13:58:46]POST find Content-Length [13:58:46]Host: 172.17.63.195:8080 [13:58:46]Content-Length: 678 [13:58:46]Content-Type: application/json [13:58:46] [13:58:46]POST finish read [13:58:46]Found Content-Length = 678 [13:58:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [13:58:46]execute_script... [13:58: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)449264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [13:58:46]POST & json_proto [13:58:46]process_json_proto [13:58:46]json parsed OK: [13:58:46]protocol is kg_v1.0 [13:58:46]action value=close_receipt [13:58:46]process_action close_receipt [13:58:46]cmd_close_receipt [13:58:46]MH_GetDate [13:58:46]Write to MH i2c: F0 00 00 6B 1A 74 [13:58:46]Write i2c OK [13:58:46]MH_I2C_Read... [13:58:46]Read from MH i2c: F0 [13:58:46]MH_I2C_Read... [13:58:46]Read from MH i2c: F0 09 00 [13:58:46]MH_I2C_Read... [13:58:46]Read from MH i2c: F0 09 00 6B 1A 00 97 F5 1C 67 68 46 19 67 BA [13:58:46]GetLastDocTimeStamp 1729951035 [13:58:46]current date 1729951127 [13:58:46]FM_GetShiftState [13:58:46]SAM_PROTO_GetShiftState [13:58:46]wFMCommunicate request_size=4 [13:58:46]MH_SAM_APDU [13:58:46]CAPDU: 80 13 01 00 [13:58:46]Write to MH i2c: E2 08 00 6C 1A 80 13 01 00 00 00 00 00 03 [13:58:46]Write i2c OK [13:58:46]MH_I2C_Read... [13:58:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:46]Read from MH i2c: E2 [13:58:46]MH_I2C_Read... [13:58:46]Read from MH i2c: E2 0E 00 [13:58:46]MH_I2C_Read... [13:58:46]Read from MH i2c: E2 0E 00 6C 1A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 12 [13:58:46]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:58:46]wFMCommunicate OK [13:58:46]SAM_PROTO_GetShiftState done [13:58:46]FM_GetShiftState done [13:58:46]opened in 1729900879 [13:58:46]opened+sec_in_day 1729987279 [13:58:46]quantity*price = 70044 [13:58:46]sum+1 = 70045 [13:58:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 275 26.10.2024 13:58 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201513 ФПД: 213172253603246 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T135847&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201513&fm=213172253603246&tin=02508201610067®Number=0000000000091777&sum=70000 [13:58:47]StoreToDocumentArchive [13:58:47]shift 543 fd 201513 [13:58:47]save to /storage/0543/doc_00201513 [13:58:47]save last doc name /storage/0543/doc_00201513 to /storage/kkm_last_doc_name [13:58:47]save OK [13:58:47]Clear old archive folders... [13:58:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:58:47]tlvbuf is 01F44EF0 [13:58:47]SAM_PROTO_ClearQueue [13:58:47]wFMCommunicate request_size=4 [13:58:47]MH_SAM_APDU [13:58:47]CAPDU: 80 09 00 00 [13:58:47]Write to MH i2c: E2 08 00 79 1A 80 09 00 00 00 00 00 00 05 [13:58:47]Write i2c OK [13:58:47]MH_I2C_Read... [13:58:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:47]Read from MH i2c: E2 [13:58:47]MH_I2C_Read... [13:58:47]Read from MH i2c: E2 03 00 [13:58:47]MH_I2C_Read... [13:58:47]Read from MH i2c: E2 03 00 79 1A 00 90 00 07 [13:58:47]RAPDU: 90 00 [13:58:47]wFMCommunicate OK [13:58:47]SAM_PROTO_ClearQueue done [13:58:47]KKMCreateOFDPacket [13:58:47]OFDProtocolAddRootSTLVToBuf [13:58:47]FM_MakeSignedData [13:58:47]FM_MakeSignedData [13:58:47]SAM_PROTO_SignData [13:58:47]wFMCommunicate request_size=4 [13:58:47]MH_SAM_APDU [13:58:47]CAPDU: 80 0D 01 02 [13:58:47]Write to MH i2c: E2 08 00 7A 1A 80 0D 01 02 00 00 00 00 0D [13:58:47]Write i2c OK [13:58:47]MH_I2C_Read... [13:58:47]OFD Sender: No OFD packet to send [13:58:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:47]Read from MH i2c: E2 [13:58:47]MH_I2C_Read... [13:58:47]Read from MH i2c: E2 03 00 [13:58:47]MH_I2C_Read... [13:58:47]Read from MH i2c: E2 03 00 7A 1A 00 90 00 08 [13:58:47]RAPDU: 90 00 [13:58:47]wFMCommunicate OK [13:58:47]wFMCommunicate request_size=255 [13:58:47]MH_SAM_APDU [13:58: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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 13 01 00 00 F4 03 04 00 97 F5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 29 13 03 00 35 04 06 00 C1 [13:58:47]Write to MH i2c: E2 02 01 7B 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 13 01 00 00 F4 03 04 00 97 F5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 29 13 03 00 35 04 06 00 C1 00 00 F5 [13:58:47]Write i2c OK [13:58:47]MH_I2C_Read... [13:58:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:47]Read from MH i2c: E2 [13:58:47]MH_I2C_Read... [13:58:47]Read from MH i2c: E2 03 00 [13:58:47]MH_I2C_Read... [13:58:47]Read from MH i2c: E2 03 00 7B 1A 00 90 00 09 [13:58:47]RAPDU: 90 00 [13:58:47]wFMCommunicate OK [13:58:47]wFMCommunicate request_size=10 [13:58:47]MH_SAM_APDU [13:58:47]CAPDU: 80 0D 02 02 05 E1 08 73 B5 AE [13:58:47]Write to MH i2c: E2 0D 00 7C 1A 80 0D 02 02 05 00 E1 08 73 B5 AE 00 00 D9 [13:58:47]Write i2c OK [13:58:47]MH_I2C_Read... [13:58:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:47]Read from MH i2c: E2 [13:58:47]MH_I2C_Read... [13:58:47]Read from MH i2c: E2 03 00 [13:58:47]MH_I2C_Read... [13:58:47]Read from MH i2c: E2 03 00 7C 1A 00 90 00 0A [13:58:47]RAPDU: 90 00 [13:58:47]wFMCommunicate OK [13:58:47]wFMCommunicate request_size=4 [13:58:47]MH_SAM_APDU [13:58:47]CAPDU: 80 0D 03 02 [13:58:47]Write to MH i2c: E2 08 00 7D 1A 80 0D 03 02 00 00 00 00 12 [13:58:47]Write i2c OK [13:58:47]MH_I2C_Read... [13:58:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:47]Read from MH i2c: E2 [13:58:47]MH_I2C_Read... [13:58:47]Read from MH i2c: E2 0B 00 [13:58:47]MH_I2C_Read... [13:58:47]Read from MH i2c: E2 0B 00 7D 1A 00 09 7C F2 6F FD AD 84 4F 90 00 76 [13:58:47]RAPDU: 09 7C F2 6F FD AD 84 4F 90 00 [13:58:47]wFMCommunicate OK [13:58:47]SAM_PROTO_SignData done [13:58:47]FM_MakeSignedData done [13:58:47]CreateOFDProtocolMessage [13:58:47]wFMCommunicate request_size=4 [13:58:47]MH_SAM_APDU [13:58:47]CAPDU: 80 11 00 00 [13:58:47]Write to MH i2c: E2 08 00 7E 1A 80 11 00 00 00 00 00 00 12 [13:58:47]Write i2c OK [13:58:47]MH_I2C_Read... [13:58:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:47]Read from MH i2c: E2 [13:58:47]MH_I2C_Read... [13:58:47]Read from MH i2c: E2 17 00 [13:58:47]MH_I2C_Read... [13:58:47]Read from MH i2c: E2 17 00 7E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 67 [13:58:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:58:47]wFMCommunicate OK [13:58:47]CreateOFDProtocolMessage done [13:58:47]OFDSenderStorePacket 201513 [13:58:47]StoreOFDPacket docnum=201513 [13:58:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 68 5D 07 01 F4 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 13 01 00 00 F4 03 04 00 97 F5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 29 13 03 00 35 04 06 00 C1 E1 08 73 B5 AE 09 7C F2 6F FD AD 84 4F [13:58:47]CheckFolder [13:58:47]dirname=/storage/ofd_packets [13:58:47]CheckFolder done [13:58:47]ProducePacketName [13:58:47]name=ofd_packets/00201513 [13:58:47]NVStorageSaveData ofd_packets/00201513 [13:58:47]File name is /storage/ofd_packets/00201513 [13:58:47]Write 301 bytes [13:58:47]NVStorageSaveData done [13:58:47]OFDSenderStorePacket done [13:58:47]KKMCreateOFDPacket done [13:58:47]NVStorageSaveData kkm_last_timestamp [13:58:47]File name is /storage/kkm_last_timestamp [13:58:47]Write 4 bytes [13:58:47]NVStorageSaveData done [13:58:47]ExternCall_PrintAddStr [13:58:47]wPrintStart [13:58:47]Write to MH i2c: 01 00 00 7F 1A 99 [13:58:47]Write i2c OK [13:58:47]MH_I2C_Read... [13:58:47]Read from MH i2c: 01 [13:58:47]MH_I2C_Read... [13:58:47]Read from MH i2c: 01 07 00 [13:58:47]MH_I2C_Read... [13:58:47]Read from MH i2c: 01 07 00 7F 1A 00 00 00 00 00 FF 0F AE [13:58:47]RasterBufferAndPrint [13:58:47]line Счет N : (1)449264 [13:58:47]line ИНН: 02508201610067 [13:58:47]line Контрольно-Кассовый Чек [13:58:47]line ПРОДАЖА [13:58:47]line ТРК (МРК, ГНК) : 52 [13:58:47]line Товар: 2710124130 [13:58:47]line Аи-92-К-2 [13:58:47]line 10.470 * 66.90 [13:58:47]line = 700.44 [13:58:47]line НДС 12% НСП 1% [13:58:47]line > о реализуемом товаре [13:58:47]line ОКРУГЛЕНИЕ: -0.44 [13:58:47]line ИТОГО: 700.00 [13:58:47]line Внесено: 700.00 [13:58:47]line СДАЧА: 0.00 [13:58:47]line НСП 1% : 6.20 [13:58:47]line НДС 12% : 74.38 [13:58:47]line Наличными: 700.00 [13:58:47]line Безнал.: 0.00 [13:58:47]line Место: АЗС № 171 "Партнер Нефть" [13:58:47]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [13:58:47]line СНО: Общий режим [13:58:47]line Чек 275 26.10.2024 13:58 [13:58:47]line Смена: 543 ФФД: 1.0 [13:58:47]line ЗНМ: 0300000109 [13:58:47]line РНМ: 0000000000091777 [13:58:47]line Версия ККМ: 001 [13:58:47]line ФМ: 0000000000871756 [13:58:47]line ФД: 201513 [13:58:47]line ФПД: 213172253603246 [13:58:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T135847&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201513&fm=213172253603246&tin=02508201610067®Number=0000000000091777&sum=70000 [13:58:48]OFD Sender: Processing packet 201513 [packets to send 112, broken 111] [13:58:48]ProducePacketName [13:58:48]name=ofd_packets/00201513 [13:58:48]OFD Sender: To server: pG, [13:58:48]CommunicateWithHost lk.salyk.kg:30040 [13:58:48]ConnectInit lk.salyk.kg [13:58:48]written 0, free lines is 4095 [13:58:48]Connected sock=9 [13:58:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 68 5D 07 01 F4 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 13 01 00 00 F4 03 04 00 97 F5 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 29 13 03 00 35 04 06 00 C1 E1 08 73 B5 AE 09 7C F2 6F FD AD 84 4F [13:58:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 37 C4 47 00 1E 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 29 13 03 00 F4 03 04 00 40 A1 1C 67 B6 04 01 00 00 EC A0 26 C3 FC 40 54 2F [13:58:48]CommunicateWithHost err = 0 [13:58:48]CheckOFDResponse [13:58:48]1017 (14) - 77093643461234 [13:58:48]1041 (16) - 0000000000871756 [13:58:48]1040 (4) - 201513 [13:58:48]1012 (4) - 26.10.2024 07:58 [13:58:48]1206 (1) - 0 [13:58:48]OFD Sender: Remove packet 201513 [13:58:48]ProducePacketName [13:58:48]name=ofd_packets/00201513 [13:58:48]NVStorageDeleteData [13:58:48]Write to MH i2c: 01 00 00 AA 1A C4 [13:58:48]Write i2c OK [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: 01 [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: 01 07 00 [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: 01 07 00 AA 1A 00 00 00 00 00 8D 0C 64 [13:58:48]RasterBufferAndPrint [13:58:48]line [13:58:48]line [13:58:48]line [13:58:48]line [13:58:48]line [13:58:48]written 0, free lines is 3218 [13:58:48]MH_Cut [13:58:48]Write to MH i2c: D1 01 00 B1 1A 01 9D [13:58:48]Write i2c OK [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: D1 [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: D1 01 00 [13:58:48]MH_I2C_Read... [13:58:48]Read from MH i2c: D1 01 00 B1 1A 00 9C [13:58:48]Write to MH i2c: 01 00 00 B2 1A CC [13:58:48]Write i2c OK [13:58:48]MH_I2C_Read... [13:58:49]OFD Sender: No OFD packet to send [13:58:49]*** Cut start [13:58:49]*** Purtial cut [13:58:49]*** CUTSNS_PIN = 0 [13:58:49]*** Stage 1: CUTSNS_PIN = 1 [13:58:51]Read from MH i2c: 01 [13:58:51]MH_I2C_Read... [13:58:51]*** Stop cut motor [13:58:51]*** Cut end [13:58:51]Read from MH i2c: 01 07 00 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: 01 07 00 B2 1A 00 00 00 00 00 FF 0F E1 [13:58:51]process_action close_receipt done [13:58:51]requested_data is exist [13:58:51]produce_requested_data [13:58:51]requested_item fm.sn is exist - process it [13:58:51]wFMCommunicate request_size=4 [13:58:51]MH_SAM_APDU [13:58:51]CAPDU: 80 11 00 00 [13:58:51]Write to MH i2c: E2 08 00 B3 1A 80 11 00 00 00 00 00 00 47 [13:58:51]Write i2c OK [13:58:51]MH_I2C_Read... [13:58:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:51]Read from MH i2c: E2 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 17 00 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 17 00 B3 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9C [13:58:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [13:58:51]wFMCommunicate OK [13:58:51]requested_item fd.num is exist - process it [13:58:51]SAM_PROTO_GetFieldsCounters [13:58:51]wFMCommunicate request_size=4 [13:58:51]MH_SAM_APDU [13:58:51]CAPDU: 80 13 00 00 [13:58:51]Write to MH i2c: E2 08 00 B4 1A 80 13 00 00 00 00 00 00 4A [13:58:51]Write i2c OK [13:58:51]MH_I2C_Read... [13:58:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:51]Read from MH i2c: E2 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 62 00 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 62 00 B4 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 29 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 0F [13:58:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 29 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:58:51]wFMCommunicate OK [13:58:51]SAM_PROTO_GetFieldsCounters done [13:58:51]requested_item shift.num is exist - process it [13:58:51]requested_item shift.opened is exist - process it [13:58:51]req_shift_opened [13:58:51]FM_GetShiftState [13:58:51]SAM_PROTO_GetShiftState [13:58:51]wFMCommunicate request_size=4 [13:58:51]MH_SAM_APDU [13:58:51]CAPDU: 80 13 01 00 [13:58:51]Write to MH i2c: E2 08 00 B5 1A 80 13 01 00 00 00 00 00 4C [13:58:51]Write i2c OK [13:58:51]MH_I2C_Read... [13:58:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:51]Read from MH i2c: E2 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 0E 00 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 0E 00 B5 1A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 5B [13:58:51]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [13:58:51]wFMCommunicate OK [13:58:51]SAM_PROTO_GetShiftState done [13:58:51]FM_GetShiftState done [13:58:51]req_shift_opened done [13:58:51]requested_item shift.open_date is exist - process it [13:58:51]req_shift_open_date [13:58:51]req_shift_open_date done [13:58:51]produce_requested_data done [13:58:51]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201513,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [13:58:51]process_action_free close_receipt [13:58:51]json_value_free [13:58:51]json_value_free done [13:58:51]process_json_proto returns [13:58:51]Send response to host [13:58:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201513,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [13:58:51]free response buf [13:58:51]execute_script done [13:58:51]execute_script returns [13:58:51]free content buf [13:58:51]Sock 10.Close socket [13:58:51]Sock 10.Thread stoped [13:58:54]OFD Sender: No OFD packet to send [13:58:59]OFD Sender: No OFD packet to send [13:59:04]OFD Sender: No OFD packet to send [13:59:09]OFD Sender: No OFD packet to send [13:59:14]OFD Sender: No OFD packet to send [13:59:19]OFD Sender: No OFD packet to send [13:59:24]OFD Sender: No OFD packet to send [13:59:29]OFD Sender: No OFD packet to send [13:59:34]OFD Sender: No OFD packet to send [13:59:39]OFD Sender: No OFD packet to send [13:59:44]OFD Sender: No OFD packet to send [13:59:49]OFD Sender: No OFD packet to send [13:59:54]OFD Sender: No OFD packet to send [13:59:59]OFD Sender: No OFD packet to send [14:00:04]OFD Sender: No OFD packet to send [14:00:09]OFD Sender: No OFD packet to send [14:00:14]OFD Sender: No OFD packet to send [14:00:19]OFD Sender: No OFD packet to send [14:00:24]OFD Sender: No OFD packet to send [14:00:29]OFD Sender: No OFD packet to send [14:00:34]OFD Sender: No OFD packet to send [14:00:39]OFD Sender: No OFD packet to send [14:00:44]OFD Sender: No OFD packet to send [14:00:49]OFD Sender: No OFD packet to send [14:00:54]OFD Sender: No OFD packet to send [14:00:56]accept exits with 8 [14:00:56]New connection [14:00:56]New thread 3066690916 created [14:00:56]Thread 3066834276 joined [14:00:56]Waiting for new connection... [14:00:56] Sock 8.Parse request [14:00:56]Sock 8.Check first char [14:00:56]Sock 8.First char is OK [14:00:56]request: POST /json_proto HTTP/1.0 [14:00:56]Method: POST [14:00:56]URL: /json_proto [14:00:56]Method is POST - this is cgi request [14:00:56]url: /json_proto [14:00:56]query_string will be loaded in cgi processing [14:00:56]execute_cgi json_proto POST (null) [14:00:56]execute_cgi path=json_proto method=POST [14:00:56]POST find Content-Length [14:00:56]Host: 172.17.63.195:8080 [14:00:56]Content-Length: 800 [14:00:56]Content-Type: application/json [14:00:56] [14:00:56]POST finish read [14:00:56]Found Content-Length = 800 [14:00:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.550, "sum" : 505.10, "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" : 505.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:56]execute_script... [14:00: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)449265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.550, "sum" : 505.10, "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" : 505.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:56]POST & json_proto [14:00:56]process_json_proto [14:00:56]json parsed OK: [14:00:56]protocol is kg_v1.0 [14:00:56]action value=close_receipt [14:00:56]process_action close_receipt [14:00:56]cmd_close_receipt [14:00:56]MH_GetDate [14:00:56]Write to MH i2c: F0 00 00 B6 1A BF [14:00:56]Write i2c OK [14:00:56]MH_I2C_Read... [14:00:56]Read from MH i2c: F0 [14:00:56]MH_I2C_Read... [14:00:56]Read from MH i2c: F0 09 00 [14:00:56]MH_I2C_Read... [14:00:56]Read from MH i2c: F0 09 00 B6 1A 00 19 F6 1C 67 68 46 19 67 88 [14:00:56]GetLastDocTimeStamp 1729951127 [14:00:56]current date 1729951257 [14:00:56]FM_GetShiftState [14:00:56]SAM_PROTO_GetShiftState [14:00:56]wFMCommunicate request_size=4 [14:00:56]MH_SAM_APDU [14:00:56]CAPDU: 80 13 01 00 [14:00:56]Write to MH i2c: E2 08 00 B7 1A 80 13 01 00 00 00 00 00 4E [14:00:56]Write i2c OK [14:00:56]MH_I2C_Read... [14:00:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:56]Read from MH i2c: E2 [14:00:56]MH_I2C_Read... [14:00:56]Read from MH i2c: E2 0E 00 [14:00:56]MH_I2C_Read... [14:00:56]Read from MH i2c: E2 0E 00 B7 1A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 5D [14:00:56]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:00:56]wFMCommunicate OK [14:00:56]SAM_PROTO_GetShiftState done [14:00:56]FM_GetShiftState done [14:00:56]opened in 1729900879 [14:00:56]opened+sec_in_day 1729987279 [14:00:56]quantity*price = 50509 [14:00:56]sum+1 = 50511 [14:00:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 505.10 НСП 1% : 4.47 НДС 12% : 53.64 Наличными: 0.00 Безнал.: 505.10 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 276 26.10.2024 14:00 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871756 ФД: 201514 ФПД: 189801572557252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T140057&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201514&fm=189801572557252&tin=02508201610067®Number=0000000000091777&sum=50510 [14:00:57]StoreToDocumentArchive [14:00:57]shift 543 fd 201514 [14:00:57]save to /storage/0543/doc_00201514 [14:00:57]save last doc name /storage/0543/doc_00201514 to /storage/kkm_last_doc_name [14:00:57]save OK [14:00:57]Clear old archive folders... [14:00:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:00:57]tlvbuf is B6E8BAD0 [14:00:57]SAM_PROTO_ClearQueue [14:00:57]wFMCommunicate request_size=4 [14:00:57]MH_SAM_APDU [14:00:57]CAPDU: 80 09 00 00 [14:00:57]Write to MH i2c: E2 08 00 C4 1A 80 09 00 00 00 00 00 00 50 [14:00:57]Write i2c OK [14:00:57]MH_I2C_Read... [14:00:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:57]Read from MH i2c: E2 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: E2 03 00 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: E2 03 00 C4 1A 00 90 00 52 [14:00:57]RAPDU: 90 00 [14:00:57]wFMCommunicate OK [14:00:57]SAM_PROTO_ClearQueue done [14:00:57]KKMCreateOFDPacket [14:00:57]OFDProtocolAddRootSTLVToBuf [14:00:57]FM_MakeSignedData [14:00:57]FM_MakeSignedData [14:00:57]SAM_PROTO_SignData [14:00:57]wFMCommunicate request_size=4 [14:00:57]MH_SAM_APDU [14:00:57]CAPDU: 80 0D 01 02 [14:00:57]Write to MH i2c: E2 08 00 C5 1A 80 0D 01 02 00 00 00 00 58 [14:00:57]Write i2c OK [14:00:57]MH_I2C_Read... [14:00:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:57]Read from MH i2c: E2 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: E2 03 00 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: E2 03 00 C5 1A 00 90 00 53 [14:00:57]RAPDU: 90 00 [14:00:57]wFMCommunicate OK [14:00:57]wFMCommunicate request_size=255 [14:00:57]MH_SAM_APDU [14:00: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 32 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4E C5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4E C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4E C5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 19 F6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2A 13 03 00 35 04 06 00 AC [14:00:57]Write to MH i2c: E2 02 01 C6 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 32 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4E C5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4E C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4E C5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 19 F6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2A 13 03 00 35 04 06 00 AC 00 00 F3 [14:00:57]Write i2c OK [14:00:57]MH_I2C_Read... [14:00:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:57]Read from MH i2c: E2 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: E2 03 00 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: E2 03 00 C6 1A 00 90 00 54 [14:00:57]RAPDU: 90 00 [14:00:57]wFMCommunicate OK [14:00:57]wFMCommunicate request_size=10 [14:00:57]MH_SAM_APDU [14:00:57]CAPDU: 80 0D 02 02 05 9F 9F 4F 61 C4 [14:00:57]Write to MH i2c: E2 0D 00 C7 1A 80 0D 02 02 05 00 9F 9F 4F 61 C4 00 00 17 [14:00:57]Write i2c OK [14:00:57]MH_I2C_Read... [14:00:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:57]Read from MH i2c: E2 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: E2 03 00 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: E2 03 00 C7 1A 00 90 00 55 [14:00:57]RAPDU: 90 00 [14:00:57]wFMCommunicate OK [14:00:57]wFMCommunicate request_size=4 [14:00:57]MH_SAM_APDU [14:00:57]CAPDU: 80 0D 03 02 [14:00:57]Write to MH i2c: E2 08 00 C8 1A 80 0D 03 02 00 00 00 00 5D [14:00:57]Write i2c OK [14:00:57]MH_I2C_Read... [14:00:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:57]Read from MH i2c: E2 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: E2 0B 00 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: E2 0B 00 C8 1A 00 47 18 CC C7 6E 24 C8 B9 90 00 63 [14:00:57]RAPDU: 47 18 CC C7 6E 24 C8 B9 90 00 [14:00:57]wFMCommunicate OK [14:00:57]SAM_PROTO_SignData done [14:00:57]FM_MakeSignedData done [14:00:57]CreateOFDProtocolMessage [14:00:57]wFMCommunicate request_size=4 [14:00:57]MH_SAM_APDU [14:00:57]CAPDU: 80 11 00 00 [14:00:57]Write to MH i2c: E2 08 00 C9 1A 80 11 00 00 00 00 00 00 5D [14:00:57]Write i2c OK [14:00:57]MH_I2C_Read... [14:00:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:57]Read from MH i2c: E2 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: E2 17 00 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: E2 17 00 C9 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B2 [14:00:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:00:57]wFMCommunicate OK [14:00:57]CreateOFDProtocolMessage done [14:00:57]OFDSenderStorePacket 201514 [14:00:57]StoreOFDPacket docnum=201514 [14:00:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 2A 07 07 01 BA 6D 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 32 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4E C5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4E C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4E C5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 19 F6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2A 13 03 00 35 04 06 00 AC 9F 9F 4F 61 C4 47 18 CC C7 6E 24 C8 B9 [14:00:57]CheckFolder [14:00:57]dirname=/storage/ofd_packets [14:00:57]CheckFolder done [14:00:57]ProducePacketName [14:00:57]name=ofd_packets/00201514 [14:00:57]NVStorageSaveData ofd_packets/00201514 [14:00:57]File name is /storage/ofd_packets/00201514 [14:00:57]Write 301 bytes [14:00:57]NVStorageSaveData done [14:00:57]OFDSenderStorePacket done [14:00:57]KKMCreateOFDPacket done [14:00:57]NVStorageSaveData kkm_last_timestamp [14:00:57]File name is /storage/kkm_last_timestamp [14:00:57]Write 4 bytes [14:00:57]NVStorageSaveData done [14:00:57]ExternCall_PrintAddStr [14:00:57]wPrintStart [14:00:57]Write to MH i2c: 01 00 00 CA 1A E4 [14:00:57]Write i2c OK [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: 01 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: 01 07 00 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: 01 07 00 CA 1A 00 00 00 00 00 FF 0F F9 [14:00:57]RasterBufferAndPrint [14:00:57]line Счет N : (1)449265 [14:00:57]line ИНН: 02508201610067 [14:00:57]line Контрольно-Кассовый Чек [14:00:57]line ПРОДАЖА [14:00:57]line ТРК (МРК, ГНК) : 41 [14:00:57]line Товар: 2710124130 [14:00:57]line Аи-92-К-2 [14:00:57]line 7.550 * 66.90 [14:00:57]line = 505.10 [14:00:57]line НДС 12% НСП 1% [14:00:57]line > о реализуемом товаре [14:00:57]line ИТОГО: 505.10 [14:00:57]line НСП 1% : 4.47 [14:00:57]line НДС 12% : 53.64 [14:00:57]line Наличными: 0.00 [14:00:57]line Безнал.: 505.10 [14:00:57]line Место: АЗС № 171 "Партнер Нефть" [14:00:57]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:00:57]line СНО: Общий режим [14:00:57]line Чек 276 26.10.2024 14:00 [14:00:57]line Смена: 543 ФФД: 1.0 [14:00:57]line ЗНМ: 0300000109 [14:00:57]line РНМ: 0000000000091777 [14:00:57]line Версия ККМ: 001 [14:00:57]line Платежная система: O! деньги [14:00:57]line ФМ: 0000000000871756 [14:00:57]line ФД: 201514 [14:00:57]line ФПД: 189801572557252 [14:00:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T140057&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201514&fm=189801572557252&tin=02508201610067®Number=0000000000091777&sum=50510 [14:00:58]written 0, free lines is 4095 [14:00:58]OFD Sender: Processing packet 201514 [packets to send 112, broken 111] [14:00:58]ProducePacketName [14:00:58]name=ofd_packets/00201514 [14:00:58]OFD Sender: To server: pG, [14:00:58]CommunicateWithHost lk.salyk.kg:30040 [14:00:58]ConnectInit lk.salyk.kg [14:00:58]Connected sock=10 [14:00:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 2A 07 07 01 BA 6D 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 32 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4E C5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4E C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4E C5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 19 F6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2A 13 03 00 35 04 06 00 AC 9F 9F 4F 61 C4 47 18 CC C7 6E 24 C8 B9 [14:00:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F4 94 47 00 33 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2A 13 03 00 F4 03 04 00 C2 A1 1C 67 B6 04 01 00 00 3E 85 DE 79 1D 68 9C 08 [14:00:58]CommunicateWithHost err = 0 [14:00:58]CheckOFDResponse [14:00:58]1017 (14) - 77093643461234 [14:00:58]1041 (16) - 0000000000871756 [14:00:58]1040 (4) - 201514 [14:00:58]1012 (4) - 26.10.2024 08:01 [14:00:58]1206 (1) - 0 [14:00:58]OFD Sender: Remove packet 201514 [14:00:58]ProducePacketName [14:00:58]name=ofd_packets/00201514 [14:00:58]NVStorageDeleteData [14:00:58]Write to MH i2c: 01 00 00 F4 1A 0E [14:00:58]Write i2c OK [14:00:58]MH_I2C_Read... [14:00:58]Read from MH i2c: 01 [14:00:58]MH_I2C_Read... [14:00:58]Read from MH i2c: 01 07 00 [14:00:58]MH_I2C_Read... [14:00:58]Read from MH i2c: 01 07 00 F4 1A 00 00 00 00 00 A4 0C C5 [14:00:58]RasterBufferAndPrint [14:00:58]line [14:00:58]line [14:00:58]line [14:00:58]line [14:00:58]line [14:00:58]written 0, free lines is 3241 [14:00:58]MH_Cut [14:00:58]Write to MH i2c: D1 01 00 FB 1A 01 E7 [14:00:58]Write i2c OK [14:00:58]MH_I2C_Read... [14:00:58]Read from MH i2c: D1 [14:00:58]MH_I2C_Read... [14:00:58]Read from MH i2c: D1 01 00 [14:00:58]MH_I2C_Read... [14:00:58]Read from MH i2c: D1 01 00 FB 1A 00 E6 [14:00:58]Write to MH i2c: 01 00 00 FC 1A 16 [14:00:58]Write i2c OK [14:00:58]MH_I2C_Read... [14:00:59]OFD Sender: No OFD packet to send [14:00:59]*** Cut start [14:00:59]*** Purtial cut [14:00:59]*** Stage 1: CUTSNS_PIN = 1 [14:00:59]Read from MH i2c: 01 [14:00:59]MH_I2C_Read... [14:00:59]*** Stop cut motor [14:00:59]*** Cut end [14:00:59]Read from MH i2c: 01 07 00 [14:00:59]MH_I2C_Read... [14:00:59]Read from MH i2c: 01 07 00 FC 1A 00 00 00 00 00 FF 0F 2B [14:00:59]process_action close_receipt done [14:00:59]requested_data is exist [14:00:59]produce_requested_data [14:00:59]requested_item fm.sn is exist - process it [14:00:59]wFMCommunicate request_size=4 [14:00:59]MH_SAM_APDU [14:00:59]CAPDU: 80 11 00 00 [14:00:59]Write to MH i2c: E2 08 00 FD 1A 80 11 00 00 00 00 00 00 91 [14:00:59]Write i2c OK [14:00:59]MH_I2C_Read... [14:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:59]Read from MH i2c: E2 [14:00:59]MH_I2C_Read... [14:00:59]Read from MH i2c: E2 17 00 [14:00:59]MH_I2C_Read... [14:00:59]Read from MH i2c: E2 17 00 FD 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E6 [14:00:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:00:59]wFMCommunicate OK [14:00:59]requested_item fd.num is exist - process it [14:00:59]SAM_PROTO_GetFieldsCounters [14:00:59]wFMCommunicate request_size=4 [14:00:59]MH_SAM_APDU [14:00:59]CAPDU: 80 13 00 00 [14:00:59]Write to MH i2c: E2 08 00 FE 1A 80 13 00 00 00 00 00 00 94 [14:00:59]Write i2c OK [14:00:59]MH_I2C_Read... [14:00:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:59]Read from MH i2c: E2 [14:00:59]MH_I2C_Read... [14:00:59]Read from MH i2c: E2 62 00 [14:00:59]MH_I2C_Read... [14:00:59]Read from MH i2c: E2 62 00 FE 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2A 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 5D [14:00:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2A 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:00:59]wFMCommunicate OK [14:00:59]SAM_PROTO_GetFieldsCounters done [14:00:59]requested_item shift.num is exist - process it [14:00:59]requested_item shift.opened is exist - process it [14:00:59]req_shift_opened [14:00:59]FM_GetShiftState [14:00:59]SAM_PROTO_GetShiftState [14:00:59]wFMCommunicate request_size=4 [14:00:59]MH_SAM_APDU [14:00:59]CAPDU: 80 13 01 00 [14:00:59]Write to MH i2c: E2 08 00 FF 1A 80 13 01 00 00 00 00 00 96 [14:00:59]Write i2c OK [14:00:59]MH_I2C_Read... [14:00:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:59]Read from MH i2c: E2 [14:00:59]MH_I2C_Read... [14:00:59]Read from MH i2c: E2 0E 00 [14:00:59]MH_I2C_Read... [14:00:59]Read from MH i2c: E2 0E 00 FF 1A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 A5 [14:00:59]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:00:59]wFMCommunicate OK [14:00:59]SAM_PROTO_GetShiftState done [14:00:59]FM_GetShiftState done [14:00:59]req_shift_opened done [14:00:59]requested_item shift.open_date is exist - process it [14:00:59]req_shift_open_date [14:00:59]req_shift_open_date done [14:00:59]produce_requested_data done [14:00:59]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201514,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:00:59]process_action_free close_receipt [14:00:59]json_value_free [14:00:59]json_value_free done [14:00:59]process_json_proto returns [14:00:59]Send response to host [14:00:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201514,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:00:59]free response buf [14:00:59]execute_script done [14:00:59]execute_script returns [14:00:59]free content buf [14:00:59]Sock 8.Close socket [14:00:59]Sock 8.Thread stoped [14:01:04]OFD Sender: No OFD packet to send [14:01:09]OFD Sender: No OFD packet to send [14:01:14]OFD Sender: No OFD packet to send [14:01:19]OFD Sender: No OFD packet to send [14:01:24]OFD Sender: No OFD packet to send [14:01:28]accept exits with 9 [14:01:28]New connection [14:01:28]New thread 3066834276 created [14:01:28]Thread 3066690916 joined [14:01:28]Waiting for new connection... [14:01:28] Sock 9.Parse request [14:01:28]Sock 9.Check first char [14:01:28]Sock 9.First char is OK [14:01:28]request: POST /json_proto HTTP/1.0 [14:01:28]Method: POST [14:01:28]URL: /json_proto [14:01:28]Method is POST - this is cgi request [14:01:28]url: /json_proto [14:01:28]query_string will be loaded in cgi processing [14:01:28]execute_cgi json_proto POST (null) [14:01:28]execute_cgi path=json_proto method=POST [14:01:28]POST find Content-Length [14:01:28]Host: 172.17.63.195:8080 [14:01:28]Content-Length: 677 [14:01:28]Content-Type: application/json [14:01:28] [14:01:28]POST finish read [14:01:28]Found Content-Length = 677 [14:01:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [14:01:28]execute_script... [14:01: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)449266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [14:01:28]POST & json_proto [14:01:28]process_json_proto [14:01:28]json parsed OK: [14:01:28]protocol is kg_v1.0 [14:01:28]action value=close_receipt [14:01:28]process_action close_receipt [14:01:28]cmd_close_receipt [14:01:28]MH_GetDate [14:01:28]Write to MH i2c: F0 00 00 00 1B 0A [14:01:28]Write i2c OK [14:01:28]MH_I2C_Read... [14:01:28]Read from MH i2c: F0 [14:01:28]MH_I2C_Read... [14:01:28]Read from MH i2c: F0 09 00 [14:01:28]MH_I2C_Read... [14:01:28]Read from MH i2c: F0 09 00 00 1B 00 39 F6 1C 67 68 46 19 67 F3 [14:01:28]GetLastDocTimeStamp 1729951257 [14:01:28]current date 1729951289 [14:01:28]FM_GetShiftState [14:01:28]SAM_PROTO_GetShiftState [14:01:28]wFMCommunicate request_size=4 [14:01:28]MH_SAM_APDU [14:01:28]CAPDU: 80 13 01 00 [14:01:28]Write to MH i2c: E2 08 00 01 1B 80 13 01 00 00 00 00 00 99 [14:01:28]Write i2c OK [14:01:28]MH_I2C_Read... [14:01:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:28]Read from MH i2c: E2 [14:01:28]MH_I2C_Read... [14:01:28]Read from MH i2c: E2 0E 00 [14:01:28]MH_I2C_Read... [14:01:28]Read from MH i2c: E2 0E 00 01 1B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 A8 [14:01:28]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:01:28]wFMCommunicate OK [14:01:28]SAM_PROTO_GetShiftState done [14:01:28]FM_GetShiftState done [14:01:28]opened in 1729900879 [14:01:28]opened+sec_in_day 1729987279 [14:01:28]quantity*price = 35055 [14:01:28]sum+1 = 35057 [14:01:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 277 26.10.2024 14:01 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201515 ФПД: 84873711084569 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T140129&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201515&fm=84873711084569&tin=02508201610067®Number=0000000000091777&sum=35000 [14:01:29]StoreToDocumentArchive [14:01:29]shift 543 fd 201515 [14:01:29]save to /storage/0543/doc_00201515 [14:01:29]save last doc name /storage/0543/doc_00201515 to /storage/kkm_last_doc_name [14:01:29]save OK [14:01:29]Clear old archive folders... [14:01:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:01:29]tlvbuf is 01F5E510 [14:01:29]SAM_PROTO_ClearQueue [14:01:29]wFMCommunicate request_size=4 [14:01:29]MH_SAM_APDU [14:01:29]CAPDU: 80 09 00 00 [14:01:29]Write to MH i2c: E2 08 00 0E 1B 80 09 00 00 00 00 00 00 9B [14:01:29]Write i2c OK [14:01:29]MH_I2C_Read... [14:01:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:01:29]Read from MH i2c: E2 [14:01:29]MH_I2C_Read... [14:01:29]Read from MH i2c: E2 03 00 [14:01:29]MH_I2C_Read... [14:01:29]Read from MH i2c: E2 03 00 0E 1B 00 90 00 9D [14:01:29]RAPDU: 90 00 [14:01:29]wFMCommunicate OK [14:01:29]SAM_PROTO_ClearQueue done [14:01:29]KKMCreateOFDPacket [14:01:29]OFDProtocolAddRootSTLVToBuf [14:01:29]FM_MakeSignedData [14:01:29]FM_MakeSignedData [14:01:29]SAM_PROTO_SignData [14:01:29]wFMCommunicate request_size=4 [14:01:29]MH_SAM_APDU [14:01:29]CAPDU: 80 0D 01 02 [14:01:29]Write to MH i2c: E2 08 00 0F 1B 80 0D 01 02 00 00 00 00 A3 [14:01:29]Write i2c OK [14:01:29]MH_I2C_Read... [14:01:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:01:29]Read from MH i2c: E2 [14:01:29]MH_I2C_Read... [14:01:29]Read from MH i2c: E2 03 00 [14:01:29]MH_I2C_Read... [14:01:29]Read from MH i2c: E2 03 00 0F 1B 00 90 00 9E [14:01:29]RAPDU: 90 00 [14:01:29]wFMCommunicate OK [14:01:29]wFMCommunicate request_size=255 [14:01:29]MH_SAM_APDU [14:01: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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 15 01 00 00 F4 03 04 00 39 F6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2B 13 03 00 35 04 06 00 4D [14:01:29]Write to MH i2c: E2 02 01 10 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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 15 01 00 00 F4 03 04 00 39 F6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2B 13 03 00 35 04 06 00 4D 00 00 B9 [14:01:29]Write i2c OK [14:01:29]MH_I2C_Read... [14:01:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:29]Read from MH i2c: E2 [14:01:29]MH_I2C_Read... [14:01:29]Read from MH i2c: E2 03 00 [14:01:29]MH_I2C_Read... [14:01:29]Read from MH i2c: E2 03 00 10 1B 00 90 00 9F [14:01:29]RAPDU: 90 00 [14:01:29]wFMCommunicate OK [14:01:29]wFMCommunicate request_size=10 [14:01:29]MH_SAM_APDU [14:01:29]CAPDU: 80 0D 02 02 05 31 33 66 64 19 [14:01:29]Write to MH i2c: E2 0D 00 11 1B 80 0D 02 02 05 00 31 33 66 64 19 00 00 F7 [14:01:29]Write i2c OK [14:01:29]MH_I2C_Read... [14:01:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:29]Read from MH i2c: E2 [14:01:29]MH_I2C_Read... [14:01:29]Read from MH i2c: E2 03 00 [14:01:29]MH_I2C_Read... [14:01:29]Read from MH i2c: E2 03 00 11 1B 00 90 00 A0 [14:01:29]RAPDU: 90 00 [14:01:29]wFMCommunicate OK [14:01:29]wFMCommunicate request_size=4 [14:01:29]MH_SAM_APDU [14:01:29]CAPDU: 80 0D 03 02 [14:01:29]Write to MH i2c: E2 08 00 12 1B 80 0D 03 02 00 00 00 00 A8 [14:01:29]Write i2c OK [14:01:29]MH_I2C_Read... [14:01:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:01:29]Read from MH i2c: E2 [14:01:29]MH_I2C_Read... [14:01:29]Read from MH i2c: E2 0B 00 [14:01:29]MH_I2C_Read... [14:01:29]Read from MH i2c: E2 0B 00 12 1B 00 C6 4F 7B BE 5E 64 F8 C4 90 00 75 [14:01:29]RAPDU: C6 4F 7B BE 5E 64 F8 C4 90 00 [14:01:29]wFMCommunicate OK [14:01:29]SAM_PROTO_SignData done [14:01:29]FM_MakeSignedData done [14:01:29]CreateOFDProtocolMessage [14:01:29]wFMCommunicate request_size=4 [14:01:29]MH_SAM_APDU [14:01:29]CAPDU: 80 11 00 00 [14:01:29]Write to MH i2c: E2 08 00 13 1B 80 11 00 00 00 00 00 00 A8 [14:01:29]Write i2c OK [14:01:29]MH_I2C_Read... [14:01:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:29]Read from MH i2c: E2 [14:01:29]MH_I2C_Read... [14:01:29]Read from MH i2c: E2 17 00 [14:01:29]MH_I2C_Read... [14:01:29]Read from MH i2c: E2 17 00 13 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FD [14:01:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:01:29]wFMCommunicate OK [14:01:29]CreateOFDProtocolMessage done [14:01:29]OFDSenderStorePacket 201515 [14:01:29]StoreOFDPacket docnum=201515 [14:01:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B1 BD 07 01 70 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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 15 01 00 00 F4 03 04 00 39 F6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2B 13 03 00 35 04 06 00 4D 31 33 66 64 19 C6 4F 7B BE 5E 64 F8 C4 [14:01:29]CheckFolder [14:01:29]dirname=/storage/ofd_packets [14:01:29]CheckFolder done [14:01:29]ProducePacketName [14:01:29]name=ofd_packets/00201515 [14:01:29]NVStorageSaveData ofd_packets/00201515 [14:01:29]File name is /storage/ofd_packets/00201515 [14:01:29]Write 301 bytes [14:01:29]NVStorageSaveData done [14:01:29]OFDSenderStorePacket done [14:01:29]KKMCreateOFDPacket done [14:01:29]NVStorageSaveData kkm_last_timestamp [14:01:29]File name is /storage/kkm_last_timestamp [14:01:29]Write 4 bytes [14:01:29]NVStorageSaveData done [14:01:29]ExternCall_PrintAddStr [14:01:29]wPrintStart [14:01:29]Write to MH i2c: 01 00 00 14 1B 2F [14:01:29]Write i2c OK [14:01:29]MH_I2C_Read... [14:01:29]Read from MH i2c: 01 [14:01:29]MH_I2C_Read... [14:01:29]Read from MH i2c: 01 07 00 [14:01:29]MH_I2C_Read... [14:01:29]Read from MH i2c: 01 07 00 14 1B 00 00 00 00 00 FF 0F 44 [14:01:29]RasterBufferAndPrint [14:01:29]line Счет N : (1)449266 [14:01:29]line ИНН: 02508201610067 [14:01:29]line Контрольно-Кассовый Чек [14:01:29]line ПРОДАЖА [14:01:29]line ТРК (МРК, ГНК) : 52 [14:01:29]line Товар: 2710124130 [14:01:29]line Аи-92-К-2 [14:01:29]line 5.240 * 66.90 [14:01:29]line = 350.56 [14:01:29]line НДС 12% НСП 1% [14:01:29]line > о реализуемом товаре [14:01:29]line ОКРУГЛЕНИЕ: -0.56 [14:01:29]line ИТОГО: 350.00 [14:01:29]line Внесено: 350.00 [14:01:29]line СДАЧА: 0.00 [14:01:29]line НСП 1% : 3.10 [14:01:29]line НДС 12% : 37.23 [14:01:29]line Наличными: 350.00 [14:01:29]line Безнал.: 0.00 [14:01:29]line Место: АЗС № 171 "Партнер Нефть" [14:01:29]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:01:29]line СНО: Общий режим [14:01:29]line Чек 277 26.10.2024 14:01 [14:01:29]line Смена: 543 ФФД: 1.0 [14:01:29]line ЗНМ: 0300000109 [14:01:29]line РНМ: 0000000000091777 [14:01:29]line Версия ККМ: 001 [14:01:29]line ФМ: 0000000000871756 [14:01:29]line ФД: 201515 [14:01:29]line ФПД: 84873711084569 [14:01:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T140129&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201515&fm=84873711084569&tin=02508201610067®Number=0000000000091777&sum=35000 [14:01:30]OFD Sender: Processing packet 201515 [packets to send 112, broken 111] [14:01:30]ProducePacketName [14:01:30]name=ofd_packets/00201515 [14:01:30]OFD Sender: To server: pG, [14:01:30]CommunicateWithHost lk.salyk.kg:30040 [14:01:30]ConnectInit lk.salyk.kg [14:01:30]written 0, free lines is 4095 [14:01:30]Connected sock=10 [14:01:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B1 BD 07 01 70 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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 15 01 00 00 F4 03 04 00 39 F6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2B 13 03 00 35 04 06 00 4D 31 33 66 64 19 C6 4F 7B BE 5E 64 F8 C4 [14:01:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 BF 3E 47 00 63 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2B 13 03 00 F4 03 04 00 E2 A1 1C 67 B6 04 01 00 00 B2 BF 34 0A 65 19 59 1B [14:01:30]CommunicateWithHost err = 0 [14:01:30]CheckOFDResponse [14:01:30]1017 (14) - 77093643461234 [14:01:30]1041 (16) - 0000000000871756 [14:01:30]1040 (4) - 201515 [14:01:30]1012 (4) - 26.10.2024 08:01 [14:01:30]1206 (1) - 0 [14:01:30]OFD Sender: Remove packet 201515 [14:01:30]ProducePacketName [14:01:30]name=ofd_packets/00201515 [14:01:30]NVStorageDeleteData [14:01:30]Write to MH i2c: 01 00 00 3F 1B 5A [14:01:30]Write i2c OK [14:01:30]MH_I2C_Read... [14:01:30]Read from MH i2c: 01 [14:01:30]MH_I2C_Read... [14:01:30]Read from MH i2c: 01 07 00 [14:01:30]MH_I2C_Read... [14:01:30]Read from MH i2c: 01 07 00 3F 1B 00 00 00 00 00 97 0C 04 [14:01:30]RasterBufferAndPrint [14:01:30]line [14:01:30]line [14:01:30]line [14:01:30]line [14:01:30]line [14:01:30]written 0, free lines is 3227 [14:01:30]MH_Cut [14:01:30]Write to MH i2c: D1 01 00 46 1B 01 33 [14:01:30]Write i2c OK [14:01:30]MH_I2C_Read... [14:01:30]Read from MH i2c: D1 [14:01:30]MH_I2C_Read... [14:01:30]Read from MH i2c: D1 01 00 [14:01:30]MH_I2C_Read... [14:01:30]Read from MH i2c: D1 01 00 46 1B 00 32 [14:01:30]Write to MH i2c: 01 00 00 47 1B 62 [14:01:30]Write i2c OK [14:01:30]MH_I2C_Read... [14:01:31]OFD Sender: No OFD packet to send [14:01:31]*** Cut start [14:01:31]*** Purtial cut [14:01:31]*** Stage 1: CUTSNS_PIN = 1 [14:01:31]Read from MH i2c: 01 [14:01:31]MH_I2C_Read... [14:01:31]*** Stop cut motor [14:01:31]*** Cut end [14:01:31]Read from MH i2c: 01 07 00 [14:01:31]MH_I2C_Read... [14:01:31]Read from MH i2c: 01 07 00 47 1B 00 00 00 00 00 FF 0F 77 [14:01:31]process_action close_receipt done [14:01:31]requested_data is exist [14:01:31]produce_requested_data [14:01:31]requested_item fm.sn is exist - process it [14:01:31]wFMCommunicate request_size=4 [14:01:31]MH_SAM_APDU [14:01:31]CAPDU: 80 11 00 00 [14:01:31]Write to MH i2c: E2 08 00 48 1B 80 11 00 00 00 00 00 00 DD [14:01:31]Write i2c OK [14:01:31]MH_I2C_Read... [14:01:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:31]Read from MH i2c: E2 [14:01:31]MH_I2C_Read... [14:01:31]Read from MH i2c: E2 17 00 [14:01:31]MH_I2C_Read... [14:01:31]Read from MH i2c: E2 17 00 48 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 32 [14:01:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:01:31]wFMCommunicate OK [14:01:31]requested_item fd.num is exist - process it [14:01:31]SAM_PROTO_GetFieldsCounters [14:01:31]wFMCommunicate request_size=4 [14:01:31]MH_SAM_APDU [14:01:31]CAPDU: 80 13 00 00 [14:01:31]Write to MH i2c: E2 08 00 49 1B 80 13 00 00 00 00 00 00 E0 [14:01:31]Write i2c OK [14:01:31]MH_I2C_Read... [14:01:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:01:31]Read from MH i2c: E2 [14:01:31]MH_I2C_Read... [14:01:31]Read from MH i2c: E2 62 00 [14:01:31]MH_I2C_Read... [14:01:31]Read from MH i2c: E2 62 00 49 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2B 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 AD [14:01:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2B 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:01:31]wFMCommunicate OK [14:01:31]SAM_PROTO_GetFieldsCounters done [14:01:31]requested_item shift.num is exist - process it [14:01:31]requested_item shift.opened is exist - process it [14:01:31]req_shift_opened [14:01:31]FM_GetShiftState [14:01:31]SAM_PROTO_GetShiftState [14:01:31]wFMCommunicate request_size=4 [14:01:31]MH_SAM_APDU [14:01:31]CAPDU: 80 13 01 00 [14:01:31]Write to MH i2c: E2 08 00 4A 1B 80 13 01 00 00 00 00 00 E2 [14:01:31]Write i2c OK [14:01:31]MH_I2C_Read... [14:01:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:31]Read from MH i2c: E2 [14:01:31]MH_I2C_Read... [14:01:31]Read from MH i2c: E2 0E 00 [14:01:31]MH_I2C_Read... [14:01:31]Read from MH i2c: E2 0E 00 4A 1B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F1 [14:01:31]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:01:31]wFMCommunicate OK [14:01:31]SAM_PROTO_GetShiftState done [14:01:31]FM_GetShiftState done [14:01:31]req_shift_opened done [14:01:31]requested_item shift.open_date is exist - process it [14:01:31]req_shift_open_date [14:01:31]req_shift_open_date done [14:01:31]produce_requested_data done [14:01:31]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201515,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:01:31]process_action_free close_receipt [14:01:31]json_value_free [14:01:31]json_value_free done [14:01:31]process_json_proto returns [14:01:31]Send response to host [14:01:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201515,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:01:31]free response buf [14:01:31]execute_script done [14:01:31]execute_script returns [14:01:31]free content buf [14:01:31]Sock 9.Close socket [14:01:31]Sock 9.Thread stoped [14:01:36]OFD Sender: No OFD packet to send [14:01:41]OFD Sender: No OFD packet to send [14:01:46]OFD Sender: No OFD packet to send [14:01:51]OFD Sender: No OFD packet to send [14:01:56]OFD Sender: No OFD packet to send [14:02:01]OFD Sender: No OFD packet to send [14:02:06]OFD Sender: No OFD packet to send [14:02:11]OFD Sender: No OFD packet to send [14:02:16]OFD Sender: No OFD packet to send [14:02:21]OFD Sender: No OFD packet to send [14:02:26]OFD Sender: No OFD packet to send [14:02:31]OFD Sender: No OFD packet to send [14:02:36]OFD Sender: No OFD packet to send [14:02:41]OFD Sender: No OFD packet to send [14:02:46]OFD Sender: No OFD packet to send [14:02:51]OFD Sender: No OFD packet to send [14:02:56]OFD Sender: No OFD packet to send [14:03:01]OFD Sender: No OFD packet to send [14:03:05]accept exits with 8 [14:03:05]New connection [14:03:05]New thread 3066690916 created [14:03:05]Thread 3066834276 joined [14:03:05]Waiting for new connection... [14:03:05] Sock 8.Parse request [14:03:05]Sock 8.Check first char [14:03:05]Sock 8.First char is OK [14:03:05]request: POST /json_proto HTTP/1.0 [14:03:05]Method: POST [14:03:05]URL: /json_proto [14:03:05]Method is POST - this is cgi request [14:03:05]url: /json_proto [14:03:05]query_string will be loaded in cgi processing [14:03:05]execute_cgi json_proto POST (null) [14:03:05]execute_cgi path=json_proto method=POST [14:03:05]POST find Content-Length [14:03:05]Host: 172.17.63.195:8080 [14:03:05]Content-Length: 682 [14:03:05]Content-Type: application/json [14:03:05] [14:03:05]POST finish read [14:03:05]Found Content-Length = 682 [14:03:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [14:03:05]execute_script... [14:03: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)449267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [14:03:05]POST & json_proto [14:03:05]process_json_proto [14:03:05]json parsed OK: [14:03:05]protocol is kg_v1.0 [14:03:05]action value=close_receipt [14:03:05]process_action close_receipt [14:03:05]cmd_close_receipt [14:03:05]MH_GetDate [14:03:05]Write to MH i2c: F0 00 00 4B 1B 55 [14:03:05]Write i2c OK [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: F0 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: F0 09 00 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: F0 09 00 4B 1B 00 9A F6 1C 67 68 46 19 67 9F [14:03:05]GetLastDocTimeStamp 1729951289 [14:03:05]current date 1729951386 [14:03:05]FM_GetShiftState [14:03:05]SAM_PROTO_GetShiftState [14:03:05]wFMCommunicate request_size=4 [14:03:05]MH_SAM_APDU [14:03:05]CAPDU: 80 13 01 00 [14:03:05]Write to MH i2c: E2 08 00 4C 1B 80 13 01 00 00 00 00 00 E4 [14:03:05]Write i2c OK [14:03:05]MH_I2C_Read... [14:03:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:05]Read from MH i2c: E2 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: E2 0E 00 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: E2 0E 00 4C 1B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F3 [14:03:05]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:03:05]wFMCommunicate OK [14:03:05]SAM_PROTO_GetShiftState done [14:03:05]FM_GetShiftState done [14:03:05]opened in 1729900879 [14:03:05]opened+sec_in_day 1729987279 [14:03:05]quantity*price = 100015 [14:03:05]sum+1 = 100017 [14:03:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 278 26.10.2024 14:03 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201516 ФПД: 211155661117154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T140306&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201516&fm=211155661117154&tin=02508201610067®Number=0000000000091777&sum=100000 [14:03:06]StoreToDocumentArchive [14:03:06]shift 543 fd 201516 [14:03:06]save to /storage/0543/doc_00201516 [14:03:06]save last doc name /storage/0543/doc_00201516 to /storage/kkm_last_doc_name [14:03:06]save OK [14:03:06]Clear old archive folders... [14:03:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:03:06]tlvbuf is 01F8AA70 [14:03:06]SAM_PROTO_ClearQueue [14:03:06]wFMCommunicate request_size=4 [14:03:06]MH_SAM_APDU [14:03:06]CAPDU: 80 09 00 00 [14:03:06]Write to MH i2c: E2 08 00 59 1B 80 09 00 00 00 00 00 00 E6 [14:03:06]Write i2c OK [14:03:06]MH_I2C_Read... [14:03:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:03:06]Read from MH i2c: E2 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 03 00 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 03 00 59 1B 00 90 00 E8 [14:03:06]RAPDU: 90 00 [14:03:06]wFMCommunicate OK [14:03:06]SAM_PROTO_ClearQueue done [14:03:06]KKMCreateOFDPacket [14:03:06]OFDProtocolAddRootSTLVToBuf [14:03:06]FM_MakeSignedData [14:03:06]FM_MakeSignedData [14:03:06]SAM_PROTO_SignData [14:03:06]wFMCommunicate request_size=4 [14:03:06]MH_SAM_APDU [14:03:06]CAPDU: 80 0D 01 02 [14:03:06]Write to MH i2c: E2 08 00 5A 1B 80 0D 01 02 00 00 00 00 EE [14:03:06]Write i2c OK [14:03:06]MH_I2C_Read... [14:03:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:03:06]Read from MH i2c: E2 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 03 00 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 03 00 5A 1B 00 90 00 E9 [14:03:06]RAPDU: 90 00 [14:03:06]wFMCommunicate OK [14:03:06]wFMCommunicate request_size=255 [14:03:06]MH_SAM_APDU [14:03: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 32 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 16 01 00 00 F4 03 04 00 9A F6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2C 13 03 00 35 04 06 00 C0 [14:03:06]Write to MH i2c: E2 02 01 5B 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 32 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 16 01 00 00 F4 03 04 00 9A F6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2C 13 03 00 35 04 06 00 C0 00 00 C9 [14:03:06]Write i2c OK [14:03:06]MH_I2C_Read... [14:03:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:06]Read from MH i2c: E2 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 03 00 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 03 00 5B 1B 00 90 00 EA [14:03:06]RAPDU: 90 00 [14:03:06]wFMCommunicate OK [14:03:06]wFMCommunicate request_size=10 [14:03:06]MH_SAM_APDU [14:03:06]CAPDU: 80 0D 02 02 05 0B 82 2C 56 E2 [14:03:06]Write to MH i2c: E2 0D 00 5C 1B 80 0D 02 02 05 00 0B 82 2C 56 E2 00 00 EC [14:03:06]Write i2c OK [14:03:06]MH_I2C_Read... [14:03:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:06]Read from MH i2c: E2 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 03 00 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 03 00 5C 1B 00 90 00 EB [14:03:06]RAPDU: 90 00 [14:03:06]wFMCommunicate OK [14:03:06]wFMCommunicate request_size=4 [14:03:06]MH_SAM_APDU [14:03:06]CAPDU: 80 0D 03 02 [14:03:06]Write to MH i2c: E2 08 00 5D 1B 80 0D 03 02 00 00 00 00 F3 [14:03:06]Write i2c OK [14:03:06]MH_I2C_Read... [14:03:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:03:06]Read from MH i2c: E2 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 0B 00 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 0B 00 5D 1B 00 F1 15 43 92 7E 0C 6A B5 90 00 78 [14:03:06]RAPDU: F1 15 43 92 7E 0C 6A B5 90 00 [14:03:06]wFMCommunicate OK [14:03:06]SAM_PROTO_SignData done [14:03:06]FM_MakeSignedData done [14:03:06]CreateOFDProtocolMessage [14:03:06]wFMCommunicate request_size=4 [14:03:06]MH_SAM_APDU [14:03:06]CAPDU: 80 11 00 00 [14:03:06]Write to MH i2c: E2 08 00 5E 1B 80 11 00 00 00 00 00 00 F3 [14:03:06]Write i2c OK [14:03:06]MH_I2C_Read... [14:03:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:06]Read from MH i2c: E2 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 17 00 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 17 00 5E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 48 [14:03:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:03:06]wFMCommunicate OK [14:03:06]CreateOFDProtocolMessage done [14:03:06]OFDSenderStorePacket 201516 [14:03:06]StoreOFDPacket docnum=201516 [14:03:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 12 1D 07 01 8A 85 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 32 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 16 01 00 00 F4 03 04 00 9A F6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2C 13 03 00 35 04 06 00 C0 0B 82 2C 56 E2 F1 15 43 92 7E 0C 6A B5 [14:03:06]CheckFolder [14:03:06]dirname=/storage/ofd_packets [14:03:06]CheckFolder done [14:03:06]ProducePacketName [14:03:06]name=ofd_packets/00201516 [14:03:06]NVStorageSaveData ofd_packets/00201516 [14:03:06]File name is /storage/ofd_packets/00201516 [14:03:06]Write 301 bytes [14:03:06]NVStorageSaveData done [14:03:06]OFDSenderStorePacket done [14:03:06]KKMCreateOFDPacket done [14:03:06]NVStorageSaveData kkm_last_timestamp [14:03:06]File name is /storage/kkm_last_timestamp [14:03:06]Write 4 bytes [14:03:06]NVStorageSaveData done [14:03:06]ExternCall_PrintAddStr [14:03:06]wPrintStart [14:03:06]Write to MH i2c: 01 00 00 5F 1B 7A [14:03:06]Write i2c OK [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: 01 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: 01 07 00 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: 01 07 00 5F 1B 00 00 00 00 00 FF 0F 8F [14:03:06]RasterBufferAndPrint [14:03:06]line Счет N : (1)449267 [14:03:06]line ИНН: 02508201610067 [14:03:06]line Контрольно-Кассовый Чек [14:03:06]line ПРОДАЖА [14:03:06]line ТРК (МРК, ГНК) : 52 [14:03:06]line Товар: 2710124130 [14:03:06]line Аи-92-К-2 [14:03:06]line 14.950 * 66.90 [14:03:06]line = 1000.16 [14:03:06]line НДС 12% НСП 1% [14:03:06]line > о реализуемом товаре [14:03:06]line ОКРУГЛЕНИЕ: -0.16 [14:03:06]line ИТОГО: 1000.00 [14:03:06]line Внесено: 1000.00 [14:03:06]line СДАЧА: 0.00 [14:03:06]line НСП 1% : 8.85 [14:03:06]line НДС 12% : 106.21 [14:03:06]line Наличными: 1000.00 [14:03:06]line Безнал.: 0.00 [14:03:06]line Место: АЗС № 171 "Партнер Нефть" [14:03:06]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:03:06]line СНО: Общий режим [14:03:06]line Чек 278 26.10.2024 14:03 [14:03:06]line Смена: 543 ФФД: 1.0 [14:03:06]line ЗНМ: 0300000109 [14:03:06]line РНМ: 0000000000091777 [14:03:06]line Версия ККМ: 001 [14:03:06]line ФМ: 0000000000871756 [14:03:06]line ФД: 201516 [14:03:06]line ФПД: 211155661117154 [14:03:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T140306&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201516&fm=211155661117154&tin=02508201610067®Number=0000000000091777&sum=100000 [14:03:07]OFD Sender: Processing packet 201516 [packets to send 112, broken 111] [14:03:07]ProducePacketName [14:03:07]name=ofd_packets/00201516 [14:03:07]OFD Sender: To server: pG, [14:03:07]CommunicateWithHost lk.salyk.kg:30040 [14:03:07]ConnectInit lk.salyk.kg [14:03:07]written 0, free lines is 4095 [14:03:07]Connected sock=10 [14:03:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 12 1D 07 01 8A 85 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 32 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 16 01 00 00 F4 03 04 00 9A F6 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2C 13 03 00 35 04 06 00 C0 0B 82 2C 56 E2 F1 15 43 92 7E 0C 6A B5 [14:03:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 3D D3 47 00 3D A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2C 13 03 00 F4 03 04 00 43 A2 1C 67 B6 04 01 00 00 68 45 39 6C AF AE F6 D4 [14:03:07]CommunicateWithHost err = 0 [14:03:07]CheckOFDResponse [14:03:07]1017 (14) - 77093643461234 [14:03:07]1041 (16) - 0000000000871756 [14:03:07]1040 (4) - 201516 [14:03:07]1012 (4) - 26.10.2024 08:03 [14:03:07]1206 (1) - 0 [14:03:07]OFD Sender: Remove packet 201516 [14:03:07]ProducePacketName [14:03:07]name=ofd_packets/00201516 [14:03:07]NVStorageDeleteData [14:03:07]Write to MH i2c: 01 00 00 8A 1B A5 [14:03:07]Write i2c OK [14:03:07]MH_I2C_Read... [14:03:07]Read from MH i2c: 01 [14:03:07]MH_I2C_Read... [14:03:07]Read from MH i2c: 01 07 00 [14:03:07]MH_I2C_Read... [14:03:07]Read from MH i2c: 01 07 00 8A 1B 00 00 00 00 00 8C 0C 44 [14:03:07]RasterBufferAndPrint [14:03:07]line [14:03:07]line [14:03:07]line [14:03:07]line [14:03:07]line [14:03:07]written 0, free lines is 3216 [14:03:07]MH_Cut [14:03:07]Write to MH i2c: D1 01 00 91 1B 01 7E [14:03:07]Write i2c OK [14:03:07]MH_I2C_Read... [14:03:07]Read from MH i2c: D1 [14:03:07]MH_I2C_Read... [14:03:07]Read from MH i2c: D1 01 00 [14:03:07]MH_I2C_Read... [14:03:07]Read from MH i2c: D1 01 00 91 1B 00 7D [14:03:07]Write to MH i2c: 01 00 00 92 1B AD [14:03:07]Write i2c OK [14:03:07]MH_I2C_Read... [14:03:08]OFD Sender: No OFD packet to send [14:03:08]*** Cut start [14:03:08]*** Purtial cut [14:03:08]*** Stage 1: CUTSNS_PIN = 1 [14:03:08]Read from MH i2c: 01 [14:03:08]MH_I2C_Read... [14:03:08]*** Stop cut motor [14:03:08]*** Cut end [14:03:08]Read from MH i2c: 01 07 00 [14:03:08]MH_I2C_Read... [14:03:08]Read from MH i2c: 01 07 00 92 1B 00 00 00 00 00 FF 0F C2 [14:03:08]process_action close_receipt done [14:03:08]requested_data is exist [14:03:08]produce_requested_data [14:03:08]requested_item fm.sn is exist - process it [14:03:08]wFMCommunicate request_size=4 [14:03:08]MH_SAM_APDU [14:03:08]CAPDU: 80 11 00 00 [14:03:08]Write to MH i2c: E2 08 00 93 1B 80 11 00 00 00 00 00 00 28 [14:03:08]Write i2c OK [14:03:08]MH_I2C_Read... [14:03:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:08]Read from MH i2c: E2 [14:03:08]MH_I2C_Read... [14:03:08]Read from MH i2c: E2 17 00 [14:03:08]MH_I2C_Read... [14:03:08]Read from MH i2c: E2 17 00 93 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7D [14:03:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:03:08]wFMCommunicate OK [14:03:08]requested_item fd.num is exist - process it [14:03:08]SAM_PROTO_GetFieldsCounters [14:03:08]wFMCommunicate request_size=4 [14:03:08]MH_SAM_APDU [14:03:08]CAPDU: 80 13 00 00 [14:03:08]Write to MH i2c: E2 08 00 94 1B 80 13 00 00 00 00 00 00 2B [14:03:08]Write i2c OK [14:03:08]MH_I2C_Read... [14:03:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:03:09]Read from MH i2c: E2 [14:03:09]MH_I2C_Read... [14:03:09]Read from MH i2c: E2 62 00 [14:03:09]MH_I2C_Read... [14:03:09]Read from MH i2c: E2 62 00 94 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2C 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 FC [14:03:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2C 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:03:09]wFMCommunicate OK [14:03:09]SAM_PROTO_GetFieldsCounters done [14:03:09]requested_item shift.num is exist - process it [14:03:09]requested_item shift.opened is exist - process it [14:03:09]req_shift_opened [14:03:09]FM_GetShiftState [14:03:09]SAM_PROTO_GetShiftState [14:03:09]wFMCommunicate request_size=4 [14:03:09]MH_SAM_APDU [14:03:09]CAPDU: 80 13 01 00 [14:03:09]Write to MH i2c: E2 08 00 95 1B 80 13 01 00 00 00 00 00 2D [14:03:09]Write i2c OK [14:03:09]MH_I2C_Read... [14:03:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:09]Read from MH i2c: E2 [14:03:09]MH_I2C_Read... [14:03:09]Read from MH i2c: E2 0E 00 [14:03:09]MH_I2C_Read... [14:03:09]Read from MH i2c: E2 0E 00 95 1B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 3C [14:03:09]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:03:09]wFMCommunicate OK [14:03:09]SAM_PROTO_GetShiftState done [14:03:09]FM_GetShiftState done [14:03:09]req_shift_opened done [14:03:09]requested_item shift.open_date is exist - process it [14:03:09]req_shift_open_date [14:03:09]req_shift_open_date done [14:03:09]produce_requested_data done [14:03:09]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201516,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:03:09]process_action_free close_receipt [14:03:09]json_value_free [14:03:09]json_value_free done [14:03:09]process_json_proto returns [14:03:09]Send response to host [14:03:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201516,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:03:09]free response buf [14:03:09]execute_script done [14:03:09]execute_script returns [14:03:09]free content buf [14:03:09]Sock 8.Close socket [14:03:09]Sock 8.Thread stoped [14:03:13]OFD Sender: No OFD packet to send [14:03:18]OFD Sender: No OFD packet to send [14:03:23]OFD Sender: No OFD packet to send [14:03:28]OFD Sender: No OFD packet to send [14:03:33]OFD Sender: No OFD packet to send [14:03:38]OFD Sender: No OFD packet to send [14:03:43]OFD Sender: No OFD packet to send [14:03:48]OFD Sender: No OFD packet to send [14:03:53]OFD Sender: No OFD packet to send [14:03:58]OFD Sender: No OFD packet to send [14:04:03]OFD Sender: No OFD packet to send [14:04:08]OFD Sender: No OFD packet to send [14:04:13]OFD Sender: No OFD packet to send [14:04:18]OFD Sender: No OFD packet to send [14:04:23]OFD Sender: No OFD packet to send [14:04:28]OFD Sender: No OFD packet to send [14:04:33]OFD Sender: No OFD packet to send [14:04:38]OFD Sender: No OFD packet to send [14:04:43]OFD Sender: No OFD packet to send [14:04:48]OFD Sender: No OFD packet to send [14:04:53]OFD Sender: No OFD packet to send [14:04:58]OFD Sender: No OFD packet to send [14:05:03]OFD Sender: No OFD packet to send [14:05:08]OFD Sender: No OFD packet to send [14:05:13]OFD Sender: No OFD packet to send [14:05:18]OFD Sender: No OFD packet to send [14:05:23]OFD Sender: No OFD packet to send [14:05:28]OFD Sender: No OFD packet to send [14:05:33]OFD Sender: No OFD packet to send [14:05:38]OFD Sender: No OFD packet to send [14:05:43]OFD Sender: No OFD packet to send [14:05:48]OFD Sender: No OFD packet to send [14:05:53]OFD Sender: No OFD packet to send [14:05:58]OFD Sender: No OFD packet to send [14:06:03]OFD Sender: No OFD packet to send [14:06:08]OFD Sender: No OFD packet to send [14:06:13]OFD Sender: No OFD packet to send [14:06:18]OFD Sender: No OFD packet to send [14:06:23]OFD Sender: No OFD packet to send [14:06:28]OFD Sender: No OFD packet to send [14:06:33]OFD Sender: No OFD packet to send [14:06:38]OFD Sender: No OFD packet to send [14:06:43]OFD Sender: No OFD packet to send [14:06:48]OFD Sender: No OFD packet to send [14:06:53]OFD Sender: No OFD packet to send [14:06:58]OFD Sender: No OFD packet to send [14:07:03]OFD Sender: No OFD packet to send [14:07:08]OFD Sender: No OFD packet to send [14:07:13]OFD Sender: No OFD packet to send [14:07:18]OFD Sender: No OFD packet to send [14:07:23]OFD Sender: No OFD packet to send [14:07:28]OFD Sender: No OFD packet to send [14:07:33]OFD Sender: No OFD packet to send [14:07:38]OFD Sender: No OFD packet to send [14:07:43]OFD Sender: No OFD packet to send [14:07:48]OFD Sender: No OFD packet to send [14:07:53]OFD Sender: No OFD packet to send [14:07:58]OFD Sender: No OFD packet to send [14:08:03]OFD Sender: No OFD packet to send [14:08:08]OFD Sender: No OFD packet to send [14:08:13]OFD Sender: No OFD packet to send [14:08:18]OFD Sender: No OFD packet to send [14:08:23]OFD Sender: No OFD packet to send [14:08:28]OFD Sender: No OFD packet to send [14:08:33]OFD Sender: No OFD packet to send [14:08:38]OFD Sender: No OFD packet to send [14:08:43]OFD Sender: No OFD packet to send [14:08:48]OFD Sender: No OFD packet to send [14:08:53]OFD Sender: No OFD packet to send [14:08:58]OFD Sender: No OFD packet to send [14:09:03]OFD Sender: No OFD packet to send [14:09:08]OFD Sender: No OFD packet to send [14:09:13]OFD Sender: No OFD packet to send [14:09:18]OFD Sender: No OFD packet to send [14:09:23]OFD Sender: No OFD packet to send [14:09:28]OFD Sender: No OFD packet to send [14:09:33]OFD Sender: No OFD packet to send [14:09:38]OFD Sender: No OFD packet to send [14:09:43]OFD Sender: No OFD packet to send [14:09:48]OFD Sender: No OFD packet to send [14:09:53]OFD Sender: No OFD packet to send [14:09:58]OFD Sender: No OFD packet to send [14:10:03]OFD Sender: No OFD packet to send [14:10:08]OFD Sender: No OFD packet to send [14:10:13]OFD Sender: No OFD packet to send [14:10:18]OFD Sender: No OFD packet to send [14:10:23]OFD Sender: No OFD packet to send [14:10:28]OFD Sender: No OFD packet to send [14:10:33]OFD Sender: No OFD packet to send [14:10:38]OFD Sender: No OFD packet to send [14:10:43]OFD Sender: No OFD packet to send [14:10:48]OFD Sender: No OFD packet to send [14:10:53]OFD Sender: No OFD packet to send [14:10:58]OFD Sender: No OFD packet to send [14:11:03]OFD Sender: No OFD packet to send [14:11:08]OFD Sender: No OFD packet to send [14:11:13]OFD Sender: No OFD packet to send [14:11:18]OFD Sender: No OFD packet to send [14:11:23]OFD Sender: No OFD packet to send [14:11:28]OFD Sender: No OFD packet to send [14:11:33]OFD Sender: No OFD packet to send [14:11:38]OFD Sender: No OFD packet to send [14:11:43]accept exits with 9 [14:11:43]New connection [14:11:43]New thread 3066834276 created [14:11:43]Thread 3066690916 joined [14:11:43]Waiting for new connection... [14:11:43] Sock 9.Parse request [14:11:43]Sock 9.Check first char [14:11:43]Sock 9.First char is OK [14:11:43]request: POST /json_proto HTTP/1.0 [14:11:43]Method: POST [14:11:43]URL: /json_proto [14:11:43]Method is POST - this is cgi request [14:11:43]url: /json_proto [14:11:43]query_string will be loaded in cgi processing [14:11:43]execute_cgi json_proto POST (null) [14:11:43]execute_cgi path=json_proto method=POST [14:11:43]POST find Content-Length [14:11:43]Host: 172.17.63.195:8080 [14:11:43]Content-Length: 679 [14:11:43]Content-Type: application/json [14:11:43] [14:11:43]POST finish read [14:11:43]Found Content-Length = 679 [14:11:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [14:11:43]execute_script... [14:11: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)449268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [14:11:43]POST & json_proto [14:11:43]process_json_proto [14:11:43]json parsed OK: [14:11:43]protocol is kg_v1.0 [14:11:43]action value=close_receipt [14:11:43]process_action close_receipt [14:11:43]cmd_close_receipt [14:11:43]MH_GetDate [14:11:43]Write to MH i2c: F0 00 00 96 1B A0 [14:11:43]Write i2c OK [14:11:43]MH_I2C_Read... [14:11:43]Read from MH i2c: F0 [14:11:43]MH_I2C_Read... [14:11:43]Read from MH i2c: F0 09 00 [14:11:43]MH_I2C_Read... [14:11:43]Read from MH i2c: F0 09 00 96 1B 00 A0 F8 1C 67 68 46 19 67 F2 [14:11:43]GetLastDocTimeStamp 1729951386 [14:11:43]current date 1729951904 [14:11:43]FM_GetShiftState [14:11:43]SAM_PROTO_GetShiftState [14:11:43]wFMCommunicate request_size=4 [14:11:43]MH_SAM_APDU [14:11:43]CAPDU: 80 13 01 00 [14:11:43]Write to MH i2c: E2 08 00 97 1B 80 13 01 00 00 00 00 00 2F [14:11:43]Write i2c OK [14:11:43]MH_I2C_Read... [14:11:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:43]Read from MH i2c: E2 [14:11:43]MH_I2C_Read... [14:11:43]Read from MH i2c: E2 0E 00 [14:11:43]MH_I2C_Read... [14:11:43]Read from MH i2c: E2 0E 00 97 1B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 3E [14:11:43]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:11:43]wFMCommunicate OK [14:11:43]SAM_PROTO_GetShiftState done [14:11:43]FM_GetShiftState done [14:11:43]opened in 1729900879 [14:11:43]opened+sec_in_day 1729987279 [14:11:43]quantity*price = 150037 [14:11:43]sum+1 = 150039 [14:11:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 279 26.10.2024 14:11 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201517 ФПД: 168801750755690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T141144&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201517&fm=168801750755690&tin=02508201610067®Number=0000000000091777&sum=150000 [14:11:44]StoreToDocumentArchive [14:11:44]shift 543 fd 201517 [14:11:44]save to /storage/0543/doc_00201517 [14:11:44]save last doc name /storage/0543/doc_00201517 to /storage/kkm_last_doc_name [14:11:44]save OK [14:11:44]Clear old archive folders... [14:11:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:11:44]tlvbuf is 01F73D60 [14:11:44]SAM_PROTO_ClearQueue [14:11:44]wFMCommunicate request_size=4 [14:11:44]MH_SAM_APDU [14:11:44]CAPDU: 80 09 00 00 [14:11:44]Write to MH i2c: E2 08 00 A4 1B 80 09 00 00 00 00 00 00 31 [14:11:44]Write i2c OK [14:11:44]MH_I2C_Read... [14:11:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:44]Read from MH i2c: E2 [14:11:44]MH_I2C_Read... [14:11:44]Read from MH i2c: E2 03 00 [14:11:44]MH_I2C_Read... [14:11:44]Read from MH i2c: E2 03 00 A4 1B 00 90 00 33 [14:11:44]RAPDU: 90 00 [14:11:44]wFMCommunicate OK [14:11:44]SAM_PROTO_ClearQueue done [14:11:44]KKMCreateOFDPacket [14:11:44]OFDProtocolAddRootSTLVToBuf [14:11:44]FM_MakeSignedData [14:11:44]FM_MakeSignedData [14:11:44]SAM_PROTO_SignData [14:11:44]wFMCommunicate request_size=4 [14:11:44]MH_SAM_APDU [14:11:44]CAPDU: 80 0D 01 02 [14:11:44]Write to MH i2c: E2 08 00 A5 1B 80 0D 01 02 00 00 00 00 39 [14:11:44]Write i2c OK [14:11:44]MH_I2C_Read... [14:11:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:44]Read from MH i2c: E2 [14:11:44]MH_I2C_Read... [14:11:44]Read from MH i2c: E2 03 00 [14:11:44]MH_I2C_Read... [14:11:44]Read from MH i2c: E2 03 00 A5 1B 00 90 00 34 [14:11:44]RAPDU: 90 00 [14:11:44]wFMCommunicate OK [14:11:44]wFMCommunicate request_size=255 [14:11:44]MH_SAM_APDU [14:11: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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 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 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 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 17 01 00 00 F4 03 04 00 A0 F8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2D 13 03 00 35 04 06 00 99 86 38 64 [14:11:44]Write to MH i2c: E2 02 01 A6 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 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 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 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 17 01 00 00 F4 03 04 00 A0 F8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2D 13 03 00 35 04 06 00 99 86 38 64 00 00 8C [14:11:44]Write i2c OK [14:11:44]MH_I2C_Read... [14:11:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:45]Read from MH i2c: E2 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: E2 03 00 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: E2 03 00 A6 1B 00 90 00 35 [14:11:45]RAPDU: 90 00 [14:11:45]wFMCommunicate OK [14:11:45]wFMCommunicate request_size=7 [14:11:45]MH_SAM_APDU [14:11:45]CAPDU: 80 0D 02 02 02 29 6A [14:11:45]Write to MH i2c: E2 0A 00 A7 1B 80 0D 02 02 02 00 29 6A 00 00 D3 [14:11:45]Write i2c OK [14:11:45]MH_I2C_Read... [14:11:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:45]Read from MH i2c: E2 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: E2 03 00 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: E2 03 00 A7 1B 00 90 00 36 [14:11:45]RAPDU: 90 00 [14:11:45]wFMCommunicate OK [14:11:45]wFMCommunicate request_size=4 [14:11:45]MH_SAM_APDU [14:11:45]CAPDU: 80 0D 03 02 [14:11:45]Write to MH i2c: E2 08 00 A8 1B 80 0D 03 02 00 00 00 00 3E [14:11:45]Write i2c OK [14:11:45]MH_I2C_Read... [14:11:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:45]Read from MH i2c: E2 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: E2 0B 00 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: E2 0B 00 A8 1B 00 B8 3F 44 0A 3C E8 E7 76 90 00 05 [14:11:45]RAPDU: B8 3F 44 0A 3C E8 E7 76 90 00 [14:11:45]wFMCommunicate OK [14:11:45]SAM_PROTO_SignData done [14:11:45]FM_MakeSignedData done [14:11:45]CreateOFDProtocolMessage [14:11:45]wFMCommunicate request_size=4 [14:11:45]MH_SAM_APDU [14:11:45]CAPDU: 80 11 00 00 [14:11:45]Write to MH i2c: E2 08 00 A9 1B 80 11 00 00 00 00 00 00 3E [14:11:45]Write i2c OK [14:11:45]MH_I2C_Read... [14:11:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:45]Read from MH i2c: E2 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: E2 17 00 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: E2 17 00 A9 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 93 [14:11:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:11:45]wFMCommunicate OK [14:11:45]CreateOFDProtocolMessage done [14:11:45]OFDSenderStorePacket 201517 [14:11:45]StoreOFDPacket docnum=201517 [14:11:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 A2 89 04 01 D4 2A 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 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 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 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 17 01 00 00 F4 03 04 00 A0 F8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2D 13 03 00 35 04 06 00 99 86 38 64 29 6A B8 3F 44 0A 3C E8 E7 76 [14:11:45]CheckFolder [14:11:45]dirname=/storage/ofd_packets [14:11:45]CheckFolder done [14:11:45]ProducePacketName [14:11:45]name=ofd_packets/00201517 [14:11:45]NVStorageSaveData ofd_packets/00201517 [14:11:45]File name is /storage/ofd_packets/00201517 [14:11:45]Write 298 bytes [14:11:45]NVStorageSaveData done [14:11:45]OFDSenderStorePacket done [14:11:45]KKMCreateOFDPacket done [14:11:45]NVStorageSaveData kkm_last_timestamp [14:11:45]File name is /storage/kkm_last_timestamp [14:11:45]Write 4 bytes [14:11:45]NVStorageSaveData done [14:11:45]ExternCall_PrintAddStr [14:11:45]wPrintStart [14:11:45]Write to MH i2c: 01 00 00 AA 1B C5 [14:11:45]Write i2c OK [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: 01 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: 01 07 00 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: 01 07 00 AA 1B 00 00 00 00 00 FF 0F DA [14:11:45]RasterBufferAndPrint [14:11:45]line Счет N : (1)449268 [14:11:45]line ИНН: 02508201610067 [14:11:45]line Контрольно-Кассовый Чек [14:11:45]line ПРОДАЖА [14:11:45]line ТРК (МРК, ГНК) : 43 [14:11:45]line Товар: 2710194210 [14:11:45]line ДТ-К-2 [14:11:45]line 19.690 * 76.20 [14:11:45]line = 1500.38 [14:11:45]line НДС 12% НСП 1% [14:11:45]line > о реализуемом товаре [14:11:45]line ОКРУГЛЕНИЕ: -0.38 [14:11:45]line ИТОГО: 1500.00 [14:11:45]line Внесено: 1500.00 [14:11:45]line СДАЧА: 0.00 [14:11:45]line НСП 1% : 13.28 [14:11:45]line НДС 12% : 159.33 [14:11:45]line Наличными: 1500.00 [14:11:45]line Безнал.: 0.00 [14:11:45]line Место: АЗС № 171 "Партнер Нефть" [14:11:45]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:11:45]line СНО: Общий режим [14:11:45]line Чек 279 26.10.2024 14:11 [14:11:45]line Смена: 543 ФФД: 1.0 [14:11:45]line ЗНМ: 0300000109 [14:11:45]line РНМ: 0000000000091777 [14:11:45]line Версия ККМ: 001 [14:11:45]line ФМ: 0000000000871756 [14:11:45]line ФД: 201517 [14:11:45]line ФПД: 168801750755690 [14:11:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T141144&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201517&fm=168801750755690&tin=02508201610067®Number=0000000000091777&sum=150000 [14:11:45]OFD Sender: Processing packet 201517 [packets to send 112, broken 111] [14:11:45]ProducePacketName [14:11:45]name=ofd_packets/00201517 [14:11:45]OFD Sender: To server: pG, [14:11:45]CommunicateWithHost lk.salyk.kg:30040 [14:11:45]ConnectInit lk.salyk.kg [14:11:45]written 0, free lines is 4095 [14:11:45]Connected sock=10 [14:11:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 A2 89 04 01 D4 2A 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 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 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 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 17 01 00 00 F4 03 04 00 A0 F8 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2D 13 03 00 35 04 06 00 99 86 38 64 29 6A B8 3F 44 0A 3C E8 E7 76 [14:11:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 3B 9E 47 00 EB 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 38 37 31 37 35 36 10 04 04 00 2D 13 03 00 F4 03 04 00 49 A4 1C 67 B6 04 01 00 00 25 4C 36 52 E4 2F B9 9B [14:11:45]CommunicateWithHost err = 0 [14:11:45]CheckOFDResponse [14:11:45]1017 (14) - 77093643461234 [14:11:45]1041 (16) - 0000000000871756 [14:11:45]1040 (4) - 201517 [14:11:45]1012 (4) - 26.10.2024 08:11 [14:11:45]1206 (1) - 0 [14:11:45]OFD Sender: Remove packet 201517 [14:11:45]ProducePacketName [14:11:45]name=ofd_packets/00201517 [14:11:45]NVStorageDeleteData [14:11:45]Write to MH i2c: 01 00 00 D5 1B F0 [14:11:45]Write i2c OK [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: 01 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: 01 07 00 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: 01 07 00 D5 1B 00 00 00 00 00 97 0C 9A [14:11:45]RasterBufferAndPrint [14:11:45]line [14:11:45]line [14:11:45]line [14:11:45]line [14:11:45]line [14:11:45]written 0, free lines is 3227 [14:11:45]MH_Cut [14:11:45]Write to MH i2c: D1 01 00 DC 1B 01 C9 [14:11:45]Write i2c OK [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: D1 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: D1 01 00 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: D1 01 00 DC 1B 00 C8 [14:11:45]Write to MH i2c: 01 00 00 DD 1B F8 [14:11:45]Write i2c OK [14:11:45]MH_I2C_Read... [14:11:46]OFD Sender: No OFD packet to send [14:11:46]*** Cut start [14:11:46]*** Purtial cut [14:11:46]*** Stage 1: CUTSNS_PIN = 1 [14:11:47]Read from MH i2c: 01 [14:11:47]MH_I2C_Read... [14:11:47]*** Stop cut motor [14:11:47]*** Cut end [14:11:47]Read from MH i2c: 01 07 00 [14:11:47]MH_I2C_Read... [14:11:47]Read from MH i2c: 01 07 00 DD 1B 00 00 00 00 00 FF 0F 0D [14:11:47]process_action close_receipt done [14:11:47]requested_data is exist [14:11:47]produce_requested_data [14:11:47]requested_item fm.sn is exist - process it [14:11:47]wFMCommunicate request_size=4 [14:11:47]MH_SAM_APDU [14:11:47]CAPDU: 80 11 00 00 [14:11:47]Write to MH i2c: E2 08 00 DE 1B 80 11 00 00 00 00 00 00 73 [14:11:47]Write i2c OK [14:11:47]MH_I2C_Read... [14:11:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:47]Read from MH i2c: E2 [14:11:47]MH_I2C_Read... [14:11:47]Read from MH i2c: E2 17 00 [14:11:47]MH_I2C_Read... [14:11:47]Read from MH i2c: E2 17 00 DE 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C8 [14:11:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:11:47]wFMCommunicate OK [14:11:47]requested_item fd.num is exist - process it [14:11:47]SAM_PROTO_GetFieldsCounters [14:11:47]wFMCommunicate request_size=4 [14:11:47]MH_SAM_APDU [14:11:47]CAPDU: 80 13 00 00 [14:11:47]Write to MH i2c: E2 08 00 DF 1B 80 13 00 00 00 00 00 00 76 [14:11:47]Write i2c OK [14:11:47]MH_I2C_Read... [14:11:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:47]Read from MH i2c: E2 [14:11:47]MH_I2C_Read... [14:11:47]Read from MH i2c: E2 62 00 [14:11:47]MH_I2C_Read... [14:11:47]Read from MH i2c: E2 62 00 DF 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2D 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 4B [14:11:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2D 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:11:47]wFMCommunicate OK [14:11:47]SAM_PROTO_GetFieldsCounters done [14:11:47]requested_item shift.num is exist - process it [14:11:47]requested_item shift.opened is exist - process it [14:11:47]req_shift_opened [14:11:47]FM_GetShiftState [14:11:47]SAM_PROTO_GetShiftState [14:11:47]wFMCommunicate request_size=4 [14:11:47]MH_SAM_APDU [14:11:47]CAPDU: 80 13 01 00 [14:11:47]Write to MH i2c: E2 08 00 E0 1B 80 13 01 00 00 00 00 00 78 [14:11:47]Write i2c OK [14:11:47]MH_I2C_Read... [14:11:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:47]Read from MH i2c: E2 [14:11:47]MH_I2C_Read... [14:11:47]Read from MH i2c: E2 0E 00 [14:11:47]MH_I2C_Read... [14:11:47]Read from MH i2c: E2 0E 00 E0 1B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 87 [14:11:47]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:11:47]wFMCommunicate OK [14:11:47]SAM_PROTO_GetShiftState done [14:11:47]FM_GetShiftState done [14:11:47]req_shift_opened done [14:11:47]requested_item shift.open_date is exist - process it [14:11:47]req_shift_open_date [14:11:47]req_shift_open_date done [14:11:47]produce_requested_data done [14:11:47]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201517,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:11:47]process_action_free close_receipt [14:11:47]json_value_free [14:11:47]json_value_free done [14:11:47]process_json_proto returns [14:11:47]Send response to host [14:11:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201517,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:11:47]free response buf [14:11:47]execute_script done [14:11:47]execute_script returns [14:11:47]free content buf [14:11:47]Sock 9.Close socket [14:11:47]Sock 9.Thread stoped [14:11:49]int [14:11:49]Write to MH i2c: 01 00 00 E1 1B FC [14:11:49]*** FLAG_PRN_KEY set [14:11:49]Write i2c OK [14:11:49]MH_I2C_Read... [14:11:49]Read from MH i2c: 01 [14:11:49]MH_I2C_Read... [14:11:49]Read from MH i2c: 01 07 00 [14:11:49]MH_I2C_Read... [14:11:49]Read from MH i2c: 01 07 00 E1 1B 00 08 00 00 00 FF 0F 19 [14:11:49]state=0 [14:11:49]Key pressed [14:11:49]Feed [14:11:49]Write to MH i2c: D8 00 00 E2 1B D4 [14:11:49]Write i2c OK [14:11:49]MH_I2C_Read... [14:11:49]Read from MH i2c: D8 [14:11:49]MH_I2C_Read... [14:11:49]Read from MH i2c: D8 01 00 [14:11:49]MH_I2C_Read... [14:11:49]Read from MH i2c: D8 01 00 E2 1B 00 D5 [14:11:49]int [14:11:49]Write to MH i2c: 01 00 00 E3 1B FE [14:11:49]Write i2c OK [14:11:49]MH_I2C_Read... [14:11:49]Read from MH i2c: 01 [14:11:49]MH_I2C_Read... [14:11:49]Read from MH i2c: 01 07 00 [14:11:49]MH_I2C_Read... [14:11:49]Read from MH i2c: 01 07 00 E3 1B 00 48 00 00 00 3C 00 89 [14:11:49]state=2 [14:11:49]Key pressed [14:11:49]int [14:11:49]Write to MH i2c: 01 00 00 E4 1B FF [14:11:49]*** FLAG_PRN_KEY reset [14:11:49]Write i2c OK [14:11:49]MH_I2C_Read... [14:11:49]Read from MH i2c: 01 [14:11:49]MH_I2C_Read... [14:11:49]Read from MH i2c: 01 07 00 [14:11:49]MH_I2C_Read... [14:11:49]Read from MH i2c: 01 07 00 E4 1B 00 00 00 00 00 F9 0F 0E [14:11:49]state=2 [14:11:49]Stop feed [14:11:51]OFD Sender: No OFD packet to send [14:11:56]OFD Sender: No OFD packet to send [14:12:01]OFD Sender: No OFD packet to send [14:12:06]OFD Sender: No OFD packet to send [14:12:11]OFD Sender: No OFD packet to send [14:12:16]OFD Sender: No OFD packet to send [14:12:21]OFD Sender: No OFD packet to send [14:12:26]OFD Sender: No OFD packet to send [14:12:31]OFD Sender: No OFD packet to send [14:12:36]OFD Sender: No OFD packet to send [14:12:41]OFD Sender: No OFD packet to send [14:12:46]OFD Sender: No OFD packet to send [14:12:51]OFD Sender: No OFD packet to send [14:12:56]OFD Sender: No OFD packet to send [14:13:01]OFD Sender: No OFD packet to send [14:13:06]OFD Sender: No OFD packet to send [14:13:11]OFD Sender: No OFD packet to send [14:13:16]OFD Sender: No OFD packet to send [14:13:21]OFD Sender: No OFD packet to send [14:13:26]OFD Sender: No OFD packet to send [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:41]OFD Sender: No OFD packet to send [14:13:46]OFD Sender: No OFD packet to send [14:13:51]OFD Sender: No OFD packet to send [14:13:56]OFD Sender: No OFD packet to send [14:14:01]OFD Sender: No OFD packet to send [14:14:06]OFD Sender: No OFD packet to send [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:18]accept exits with 8 [14:14:18]New connection [14:14:18]New thread 3066690916 created [14:14:18]Thread 3066834276 joined [14:14:18]Waiting for new connection... [14:14:18] Sock 8.Parse request [14:14:18]Sock 8.Check first char [14:14:18]Sock 8.First char is OK [14:14:18]request: POST /json_proto HTTP/1.0 [14:14:18]Method: POST [14:14:18]URL: /json_proto [14:14:18]Method is POST - this is cgi request [14:14:18]url: /json_proto [14:14:18]query_string will be loaded in cgi processing [14:14:18]execute_cgi json_proto POST (null) [14:14:18]execute_cgi path=json_proto method=POST [14:14:18]POST find Content-Length [14:14:18]Host: 172.17.63.195:8080 [14:14:18]Content-Length: 677 [14:14:18]Content-Type: application/json [14:14:18] [14:14:18]POST finish read [14:14:18]Found Content-Length = 677 [14:14:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [14:14:18]execute_script... [14:14:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [14:14:18]POST & json_proto [14:14:18]process_json_proto [14:14:18]json parsed OK: [14:14:18]protocol is kg_v1.0 [14:14:18]action value=close_receipt [14:14:18]process_action close_receipt [14:14:18]cmd_close_receipt [14:14:18]MH_GetDate [14:14:18]Write to MH i2c: F0 00 00 E5 1B EF [14:14:18]Write i2c OK [14:14:18]MH_I2C_Read... [14:14:18]Read from MH i2c: F0 [14:14:18]MH_I2C_Read... [14:14:18]Read from MH i2c: F0 09 00 [14:14:18]MH_I2C_Read... [14:14:18]Read from MH i2c: F0 09 00 E5 1B 00 3B F9 1C 67 68 46 19 67 DD [14:14:18]GetLastDocTimeStamp 1729951904 [14:14:18]current date 1729952059 [14:14:18]FM_GetShiftState [14:14:18]SAM_PROTO_GetShiftState [14:14:18]wFMCommunicate request_size=4 [14:14:18]MH_SAM_APDU [14:14:18]CAPDU: 80 13 01 00 [14:14:18]Write to MH i2c: E2 08 00 E6 1B 80 13 01 00 00 00 00 00 7E [14:14:18]Write i2c OK [14:14:18]MH_I2C_Read... [14:14:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:18]Read from MH i2c: E2 [14:14:18]MH_I2C_Read... [14:14:18]Read from MH i2c: E2 0E 00 [14:14:18]MH_I2C_Read... [14:14:18]Read from MH i2c: E2 0E 00 E6 1B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 8D [14:14:18]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:14:18]wFMCommunicate OK [14:14:18]SAM_PROTO_GetShiftState done [14:14:18]FM_GetShiftState done [14:14:18]opened in 1729900879 [14:14:18]opened+sec_in_day 1729987279 [14:14:18]quantity*price = 50041 [14:14:18]sum+1 = 50042 [14:14:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 280 26.10.2024 14:14 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201518 ФПД: 43064810494641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T141419&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201518&fm=43064810494641&tin=02508201610067®Number=0000000000091777&sum=50000 [14:14:19]StoreToDocumentArchive [14:14:19]shift 543 fd 201518 [14:14:19]save to /storage/0543/doc_00201518 [14:14:19]save last doc name /storage/0543/doc_00201518 to /storage/kkm_last_doc_name [14:14:19]save OK [14:14:19]Clear old archive folders... [14:14:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:14:19]tlvbuf is B6EA4420 [14:14:19]SAM_PROTO_ClearQueue [14:14:19]wFMCommunicate request_size=4 [14:14:19]MH_SAM_APDU [14:14:19]CAPDU: 80 09 00 00 [14:14:19]Write to MH i2c: E2 08 00 F3 1B 80 09 00 00 00 00 00 00 80 [14:14:19]Write i2c OK [14:14:19]MH_I2C_Read... [14:14:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:14:19]Read from MH i2c: E2 [14:14:19]MH_I2C_Read... [14:14:19]Read from MH i2c: E2 03 00 [14:14:19]MH_I2C_Read... [14:14:19]Read from MH i2c: E2 03 00 F3 1B 00 90 00 82 [14:14:19]RAPDU: 90 00 [14:14:19]wFMCommunicate OK [14:14:19]SAM_PROTO_ClearQueue done [14:14:19]KKMCreateOFDPacket [14:14:19]OFDProtocolAddRootSTLVToBuf [14:14:19]FM_MakeSignedData [14:14:19]FM_MakeSignedData [14:14:19]SAM_PROTO_SignData [14:14:19]wFMCommunicate request_size=4 [14:14:19]MH_SAM_APDU [14:14:19]CAPDU: 80 0D 01 02 [14:14:19]Write to MH i2c: E2 08 00 F4 1B 80 0D 01 02 00 00 00 00 88 [14:14:19]Write i2c OK [14:14:19]MH_I2C_Read... [14:14:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:14:19]Read from MH i2c: E2 [14:14:19]MH_I2C_Read... [14:14:19]Read from MH i2c: E2 03 00 [14:14:19]MH_I2C_Read... [14:14:19]Read from MH i2c: E2 03 00 F4 1B 00 90 00 83 [14:14:19]RAPDU: 90 00 [14:14:19]wFMCommunicate OK [14:14:19]wFMCommunicate request_size=255 [14:14:19]MH_SAM_APDU [14:14: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 32 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 18 01 00 00 F4 03 04 00 3B F9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2E 13 03 00 35 04 06 00 27 [14:14:19]Write to MH i2c: E2 02 01 F5 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 32 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 18 01 00 00 F4 03 04 00 3B F9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2E 13 03 00 35 04 06 00 27 00 00 78 [14:14:19]Write i2c OK [14:14:19]MH_I2C_Read... [14:14:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:20]Read from MH i2c: E2 [14:14:20]MH_I2C_Read... [14:14:20]Read from MH i2c: E2 03 00 [14:14:20]MH_I2C_Read... [14:14:20]Read from MH i2c: E2 03 00 F5 1B 00 90 00 84 [14:14:20]RAPDU: 90 00 [14:14:20]wFMCommunicate OK [14:14:20]wFMCommunicate request_size=10 [14:14:20]MH_SAM_APDU [14:14:20]CAPDU: 80 0D 02 02 05 2A CE BB 5A B1 [14:14:20]Write to MH i2c: E2 0D 00 F6 1B 80 0D 02 02 05 00 2A CE BB 5A B1 00 00 53 [14:14:20]Write i2c OK [14:14:20]MH_I2C_Read... [14:14:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:20]Read from MH i2c: E2 [14:14:20]MH_I2C_Read... [14:14:20]Read from MH i2c: E2 03 00 [14:14:20]MH_I2C_Read... [14:14:20]Read from MH i2c: E2 03 00 F6 1B 00 90 00 85 [14:14:20]RAPDU: 90 00 [14:14:20]wFMCommunicate OK [14:14:20]wFMCommunicate request_size=4 [14:14:20]MH_SAM_APDU [14:14:20]CAPDU: 80 0D 03 02 [14:14:20]Write to MH i2c: E2 08 00 F7 1B 80 0D 03 02 00 00 00 00 8D [14:14:20]Write i2c OK [14:14:20]MH_I2C_Read... [14:14:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:14:20]Read from MH i2c: E2 [14:14:20]MH_I2C_Read... [14:14:20]Read from MH i2c: E2 0B 00 [14:14:20]MH_I2C_Read... [14:14:20]Read from MH i2c: E2 0B 00 F7 1B 00 01 1B 36 A2 F1 5A CE 21 90 00 BC [14:14:20]RAPDU: 01 1B 36 A2 F1 5A CE 21 90 00 [14:14:20]wFMCommunicate OK [14:14:20]SAM_PROTO_SignData done [14:14:20]FM_MakeSignedData done [14:14:20]CreateOFDProtocolMessage [14:14:20]wFMCommunicate request_size=4 [14:14:20]MH_SAM_APDU [14:14:20]CAPDU: 80 11 00 00 [14:14:20]Write to MH i2c: E2 08 00 F8 1B 80 11 00 00 00 00 00 00 8D [14:14:20]Write i2c OK [14:14:20]MH_I2C_Read... [14:14:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:20]Read from MH i2c: E2 [14:14:20]MH_I2C_Read... [14:14:20]Read from MH i2c: E2 17 00 [14:14:20]MH_I2C_Read... [14:14:20]Read from MH i2c: E2 17 00 F8 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E2 [14:14:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:14:20]wFMCommunicate OK [14:14:20]CreateOFDProtocolMessage done [14:14:20]OFDSenderStorePacket 201518 [14:14:20]StoreOFDPacket docnum=201518 [14:14:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C6 B4 07 01 D8 64 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 32 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 18 01 00 00 F4 03 04 00 3B F9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2E 13 03 00 35 04 06 00 27 2A CE BB 5A B1 01 1B 36 A2 F1 5A CE 21 [14:14:20]CheckFolder [14:14:20]dirname=/storage/ofd_packets [14:14:20]CheckFolder done [14:14:20]ProducePacketName [14:14:20]name=ofd_packets/00201518 [14:14:20]NVStorageSaveData ofd_packets/00201518 [14:14:20]File name is /storage/ofd_packets/00201518 [14:14:20]Write 301 bytes [14:14:20]NVStorageSaveData done [14:14:20]OFDSenderStorePacket done [14:14:20]KKMCreateOFDPacket done [14:14:20]NVStorageSaveData kkm_last_timestamp [14:14:20]File name is /storage/kkm_last_timestamp [14:14:20]Write 4 bytes [14:14:20]NVStorageSaveData done [14:14:20]ExternCall_PrintAddStr [14:14:20]wPrintStart [14:14:20]Write to MH i2c: 01 00 00 F9 1B 14 [14:14:20]Write i2c OK [14:14:20]MH_I2C_Read... [14:14:20]Read from MH i2c: 01 [14:14:20]MH_I2C_Read... [14:14:20]Read from MH i2c: 01 07 00 [14:14:20]MH_I2C_Read... [14:14:20]Read from MH i2c: 01 07 00 F9 1B 00 00 00 00 00 FF 0F 29 [14:14:20]RasterBufferAndPrint [14:14:20]line Счет N : (1)449269 [14:14:20]line ИНН: 02508201610067 [14:14:20]line Контрольно-Кассовый Чек [14:14:20]line ПРОДАЖА [14:14:20]line ТРК (МРК, ГНК) : 52 [14:14:20]line Товар: 2710124130 [14:14:20]line Аи-92-К-2 [14:14:20]line 7.480 * 66.90 [14:14:20]line = 500.41 [14:14:20]line НДС 12% НСП 1% [14:14:20]line > о реализуемом товаре [14:14:20]line ОКРУГЛЕНИЕ: -0.41 [14:14:20]line ИТОГО: 500.00 [14:14:20]line Внесено: 500.00 [14:14:20]line СДАЧА: 0.00 [14:14:20]line НСП 1% : 4.43 [14:14:20]line НДС 12% : 53.14 [14:14:20]line Наличными: 500.00 [14:14:20]line Безнал.: 0.00 [14:14:20]line Место: АЗС № 171 "Партнер Нефть" [14:14:20]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:14:20]line СНО: Общий режим [14:14:20]line Чек 280 26.10.2024 14:14 [14:14:20]line Смена: 543 ФФД: 1.0 [14:14:20]line ЗНМ: 0300000109 [14:14:20]line РНМ: 0000000000091777 [14:14:20]line Версия ККМ: 001 [14:14:20]line ФМ: 0000000000871756 [14:14:20]line ФД: 201518 [14:14:20]line ФПД: 43064810494641 [14:14:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T141419&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201518&fm=43064810494641&tin=02508201610067®Number=0000000000091777&sum=50000 [14:14:20]OFD Sender: Processing packet 201518 [packets to send 112, broken 111] [14:14:20]ProducePacketName [14:14:20]name=ofd_packets/00201518 [14:14:20]OFD Sender: To server: pG, [14:14:20]CommunicateWithHost lk.salyk.kg:30040 [14:14:20]ConnectInit lk.salyk.kg [14:14:20]written 0, free lines is 4095 [14:14:20]Connected sock=10 [14:14:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C6 B4 07 01 D8 64 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 32 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 18 01 00 00 F4 03 04 00 3B F9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2E 13 03 00 35 04 06 00 27 2A CE BB 5A B1 01 1B 36 A2 F1 5A CE 21 [14:14:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 0C 05 47 00 5F A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2E 13 03 00 F4 03 04 00 E4 A4 1C 67 B6 04 01 00 00 C1 76 A2 01 52 C1 DC F0 [14:14:20]CommunicateWithHost err = 0 [14:14:20]CheckOFDResponse [14:14:20]1017 (14) - 77093643461234 [14:14:20]1041 (16) - 0000000000871756 [14:14:20]1040 (4) - 201518 [14:14:20]1012 (4) - 26.10.2024 08:14 [14:14:20]1206 (1) - 0 [14:14:20]OFD Sender: Remove packet 201518 [14:14:20]ProducePacketName [14:14:20]name=ofd_packets/00201518 [14:14:20]NVStorageDeleteData [14:14:20]Write to MH i2c: 01 00 00 24 1C 40 [14:14:20]Write i2c OK [14:14:20]MH_I2C_Read... [14:14:20]Read from MH i2c: 01 [14:14:20]MH_I2C_Read... [14:14:20]Read from MH i2c: 01 07 00 [14:14:20]MH_I2C_Read... [14:14:20]Read from MH i2c: 01 07 00 24 1C 00 00 00 00 00 91 0C E4 [14:14:20]RasterBufferAndPrint [14:14:20]line [14:14:20]line [14:14:20]line [14:14:20]line [14:14:20]line [14:14:20]written 0, free lines is 3222 [14:14:20]MH_Cut [14:14:20]Write to MH i2c: D1 01 00 2B 1C 01 19 [14:14:20]Write i2c OK [14:14:20]MH_I2C_Read... [14:14:20]Read from MH i2c: D1 [14:14:20]MH_I2C_Read... [14:14:20]Read from MH i2c: D1 01 00 [14:14:20]MH_I2C_Read... [14:14:20]Read from MH i2c: D1 01 00 2B 1C 00 18 [14:14:20]Write to MH i2c: 01 00 00 2C 1C 48 [14:14:20]Write i2c OK [14:14:20]MH_I2C_Read... [14:14:21]OFD Sender: No OFD packet to send [14:14:21]*** Cut start [14:14:21]*** Purtial cut [14:14:21]*** Stage 1: CUTSNS_PIN = 1 [14:14:22]Read from MH i2c: 01 [14:14:22]MH_I2C_Read... [14:14:22]*** Stop cut motor [14:14:22]*** Cut end [14:14:22]Read from MH i2c: 01 07 00 [14:14:22]MH_I2C_Read... [14:14:22]Read from MH i2c: 01 07 00 2C 1C 00 00 00 00 00 FF 0F 5D [14:14:22]process_action close_receipt done [14:14:22]requested_data is exist [14:14:22]produce_requested_data [14:14:22]requested_item fm.sn is exist - process it [14:14:22]wFMCommunicate request_size=4 [14:14:22]MH_SAM_APDU [14:14:22]CAPDU: 80 11 00 00 [14:14:22]Write to MH i2c: E2 08 00 2D 1C 80 11 00 00 00 00 00 00 C3 [14:14:22]Write i2c OK [14:14:22]MH_I2C_Read... [14:14:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:22]Read from MH i2c: E2 [14:14:22]MH_I2C_Read... [14:14:22]Read from MH i2c: E2 17 00 [14:14:22]MH_I2C_Read... [14:14:22]Read from MH i2c: E2 17 00 2D 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 18 [14:14:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:14:22]wFMCommunicate OK [14:14:22]requested_item fd.num is exist - process it [14:14:22]SAM_PROTO_GetFieldsCounters [14:14:22]wFMCommunicate request_size=4 [14:14:22]MH_SAM_APDU [14:14:22]CAPDU: 80 13 00 00 [14:14:22]Write to MH i2c: E2 08 00 2E 1C 80 13 00 00 00 00 00 00 C6 [14:14:22]Write i2c OK [14:14:22]MH_I2C_Read... [14:14:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:14:22]Read from MH i2c: E2 [14:14:22]MH_I2C_Read... [14:14:22]Read from MH i2c: E2 62 00 [14:14:22]MH_I2C_Read... [14:14:22]Read from MH i2c: E2 62 00 2E 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2E 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 9F [14:14:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2E 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:14:22]wFMCommunicate OK [14:14:22]SAM_PROTO_GetFieldsCounters done [14:14:22]requested_item shift.num is exist - process it [14:14:22]requested_item shift.opened is exist - process it [14:14:22]req_shift_opened [14:14:22]FM_GetShiftState [14:14:22]SAM_PROTO_GetShiftState [14:14:22]wFMCommunicate request_size=4 [14:14:22]MH_SAM_APDU [14:14:22]CAPDU: 80 13 01 00 [14:14:22]Write to MH i2c: E2 08 00 2F 1C 80 13 01 00 00 00 00 00 C8 [14:14:22]Write i2c OK [14:14:22]MH_I2C_Read... [14:14:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:22]Read from MH i2c: E2 [14:14:22]MH_I2C_Read... [14:14:22]Read from MH i2c: E2 0E 00 [14:14:22]MH_I2C_Read... [14:14:22]Read from MH i2c: E2 0E 00 2F 1C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D7 [14:14:22]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:14:22]wFMCommunicate OK [14:14:22]SAM_PROTO_GetShiftState done [14:14:22]FM_GetShiftState done [14:14:22]req_shift_opened done [14:14:22]requested_item shift.open_date is exist - process it [14:14:22]req_shift_open_date [14:14:22]req_shift_open_date done [14:14:22]produce_requested_data done [14:14:22]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201518,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:14:22]process_action_free close_receipt [14:14:22]json_value_free [14:14:22]json_value_free done [14:14:22]process_json_proto returns [14:14:22]Send response to host [14:14:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201518,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:14:22]free response buf [14:14:22]execute_script done [14:14:22]execute_script returns [14:14:22]free content buf [14:14:22]Sock 8.Close socket [14:14:22]Sock 8.Thread stoped [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14:36]OFD Sender: No OFD packet to send [14:14:41]OFD Sender: No OFD packet to send [14:14:46]OFD Sender: No OFD packet to send [14:14:51]OFD Sender: No OFD packet to send [14:14:56]OFD Sender: No OFD packet to send [14:15:01]OFD Sender: No OFD packet to send [14:15:06]OFD Sender: No OFD packet to send [14:15:11]OFD Sender: No OFD packet to send [14:15:16]OFD Sender: No OFD packet to send [14:15:21]OFD Sender: No OFD packet to send [14:15:26]OFD Sender: No OFD packet to send [14:15:30]accept exits with 9 [14:15:30]New connection [14:15:30]New thread 3066834276 created [14:15:30]Thread 3066690916 joined [14:15:30]Waiting for new connection... [14:15:30] Sock 9.Parse request [14:15:30]Sock 9.Check first char [14:15:30]Sock 9.First char is OK [14:15:30]request: POST /json_proto HTTP/1.0 [14:15:30]Method: POST [14:15:30]URL: /json_proto [14:15:30]Method is POST - this is cgi request [14:15:30]url: /json_proto [14:15:30]query_string will be loaded in cgi processing [14:15:30]execute_cgi json_proto POST (null) [14:15:30]execute_cgi path=json_proto method=POST [14:15:30]POST find Content-Length [14:15:30]Host: 172.17.63.195:8080 [14:15:30]Content-Length: 682 [14:15:30]Content-Type: application/json [14:15:30] [14:15:30]POST finish read [14:15:30]Found Content-Length = 682 [14:15:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [14:15:30]execute_script... [14:15: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)449270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [14:15:30]POST & json_proto [14:15:30]process_json_proto [14:15:30]json parsed OK: [14:15:30]protocol is kg_v1.0 [14:15:30]action value=close_receipt [14:15:30]process_action close_receipt [14:15:30]cmd_close_receipt [14:15:30]MH_GetDate [14:15:30]Write to MH i2c: F0 00 00 30 1C 3B [14:15:30]Write i2c OK [14:15:30]MH_I2C_Read... [14:15:30]Read from MH i2c: F0 [14:15:30]MH_I2C_Read... [14:15:30]Read from MH i2c: F0 09 00 [14:15:30]MH_I2C_Read... [14:15:30]Read from MH i2c: F0 09 00 30 1C 00 83 F9 1C 67 68 46 19 67 71 [14:15:30]GetLastDocTimeStamp 1729952059 [14:15:30]current date 1729952131 [14:15:30]FM_GetShiftState [14:15:30]SAM_PROTO_GetShiftState [14:15:30]wFMCommunicate request_size=4 [14:15:30]MH_SAM_APDU [14:15:30]CAPDU: 80 13 01 00 [14:15:30]Write to MH i2c: E2 08 00 31 1C 80 13 01 00 00 00 00 00 CA [14:15:30]Write i2c OK [14:15:30]MH_I2C_Read... [14:15:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:30]Read from MH i2c: E2 [14:15:30]MH_I2C_Read... [14:15:30]Read from MH i2c: E2 0E 00 [14:15:30]MH_I2C_Read... [14:15:30]Read from MH i2c: E2 0E 00 31 1C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D9 [14:15:30]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:15:30]wFMCommunicate OK [14:15:30]SAM_PROTO_GetShiftState done [14:15:30]FM_GetShiftState done [14:15:30]opened in 1729900879 [14:15:30]opened+sec_in_day 1729987279 [14:15:30]quantity*price = 100015 [14:15:30]sum+1 = 100017 [14:15:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 281 26.10.2024 14:15 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201519 ФПД: 18669787517219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T141531&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201519&fm=18669787517219&tin=02508201610067®Number=0000000000091777&sum=100000 [14:15:31]StoreToDocumentArchive [14:15:31]shift 543 fd 201519 [14:15:31]save to /storage/0543/doc_00201519 [14:15:31]save last doc name /storage/0543/doc_00201519 to /storage/kkm_last_doc_name [14:15:31]save OK [14:15:31]Clear old archive folders... [14:15:31]OFD Sender: No OFD packet to send [14:15:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:15:31]tlvbuf is 01F8A990 [14:15:31]SAM_PROTO_ClearQueue [14:15:31]wFMCommunicate request_size=4 [14:15:31]MH_SAM_APDU [14:15:31]CAPDU: 80 09 00 00 [14:15:31]Write to MH i2c: E2 08 00 3E 1C 80 09 00 00 00 00 00 00 CC [14:15:31]Write i2c OK [14:15:31]MH_I2C_Read... [14:15:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:15:31]Read from MH i2c: E2 [14:15:31]MH_I2C_Read... [14:15:31]Read from MH i2c: E2 03 00 [14:15:31]MH_I2C_Read... [14:15:31]Read from MH i2c: E2 03 00 3E 1C 00 90 00 CE [14:15:31]RAPDU: 90 00 [14:15:31]wFMCommunicate OK [14:15:31]SAM_PROTO_ClearQueue done [14:15:31]KKMCreateOFDPacket [14:15:31]OFDProtocolAddRootSTLVToBuf [14:15:31]FM_MakeSignedData [14:15:31]FM_MakeSignedData [14:15:31]SAM_PROTO_SignData [14:15:31]wFMCommunicate request_size=4 [14:15:31]MH_SAM_APDU [14:15:31]CAPDU: 80 0D 01 02 [14:15:31]Write to MH i2c: E2 08 00 3F 1C 80 0D 01 02 00 00 00 00 D4 [14:15:31]Write i2c OK [14:15:31]MH_I2C_Read... [14:15:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:15:31]Read from MH i2c: E2 [14:15:31]MH_I2C_Read... [14:15:31]Read from MH i2c: E2 03 00 [14:15:31]MH_I2C_Read... [14:15:31]Read from MH i2c: E2 03 00 3F 1C 00 90 00 CF [14:15:31]RAPDU: 90 00 [14:15:31]wFMCommunicate OK [14:15:31]wFMCommunicate request_size=255 [14:15:31]MH_SAM_APDU [14:15: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 32 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 19 01 00 00 F4 03 04 00 83 F9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2F 13 03 00 35 04 06 00 10 [14:15:31]Write to MH i2c: E2 02 01 40 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 32 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 19 01 00 00 F4 03 04 00 83 F9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2F 13 03 00 35 04 06 00 10 00 00 F1 [14:15:31]Write i2c OK [14:15:31]MH_I2C_Read... [14:15:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:31]Read from MH i2c: E2 [14:15:31]MH_I2C_Read... [14:15:31]Read from MH i2c: E2 03 00 [14:15:31]MH_I2C_Read... [14:15:31]Read from MH i2c: E2 03 00 40 1C 00 90 00 D0 [14:15:31]RAPDU: 90 00 [14:15:31]wFMCommunicate OK [14:15:31]wFMCommunicate request_size=10 [14:15:31]MH_SAM_APDU [14:15:31]CAPDU: 80 0D 02 02 05 FA E6 0D 91 23 [14:15:31]Write to MH i2c: E2 0D 00 41 1C 80 0D 02 02 05 00 FA E6 0D 91 23 00 00 82 [14:15:31]Write i2c OK [14:15:31]MH_I2C_Read... [14:15:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:31]Read from MH i2c: E2 [14:15:31]MH_I2C_Read... [14:15:31]Read from MH i2c: E2 03 00 [14:15:31]MH_I2C_Read... [14:15:31]Read from MH i2c: E2 03 00 41 1C 00 90 00 D1 [14:15:31]RAPDU: 90 00 [14:15:31]wFMCommunicate OK [14:15:31]wFMCommunicate request_size=4 [14:15:31]MH_SAM_APDU [14:15:31]CAPDU: 80 0D 03 02 [14:15:31]Write to MH i2c: E2 08 00 42 1C 80 0D 03 02 00 00 00 00 D9 [14:15:31]Write i2c OK [14:15:31]MH_I2C_Read... [14:15:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:15:31]Read from MH i2c: E2 [14:15:31]MH_I2C_Read... [14:15:31]Read from MH i2c: E2 0B 00 [14:15:31]MH_I2C_Read... [14:15:31]Read from MH i2c: E2 0B 00 42 1C 00 65 26 BD E4 ED 34 7D 65 90 00 09 [14:15:31]RAPDU: 65 26 BD E4 ED 34 7D 65 90 00 [14:15:31]wFMCommunicate OK [14:15:31]SAM_PROTO_SignData done [14:15:31]FM_MakeSignedData done [14:15:31]CreateOFDProtocolMessage [14:15:31]wFMCommunicate request_size=4 [14:15:31]MH_SAM_APDU [14:15:31]CAPDU: 80 11 00 00 [14:15:31]Write to MH i2c: E2 08 00 43 1C 80 11 00 00 00 00 00 00 D9 [14:15:31]Write i2c OK [14:15:31]MH_I2C_Read... [14:15:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:31]Read from MH i2c: E2 [14:15:31]MH_I2C_Read... [14:15:31]Read from MH i2c: E2 17 00 [14:15:31]MH_I2C_Read... [14:15:31]Read from MH i2c: E2 17 00 43 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2E [14:15:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:15:31]wFMCommunicate OK [14:15:31]CreateOFDProtocolMessage done [14:15:31]OFDSenderStorePacket 201519 [14:15:31]StoreOFDPacket docnum=201519 [14:15:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E7 99 07 01 6E BB 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 32 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 19 01 00 00 F4 03 04 00 83 F9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2F 13 03 00 35 04 06 00 10 FA E6 0D 91 23 65 26 BD E4 ED 34 7D 65 [14:15:31]CheckFolder [14:15:31]dirname=/storage/ofd_packets [14:15:31]CheckFolder done [14:15:31]ProducePacketName [14:15:31]name=ofd_packets/00201519 [14:15:31]NVStorageSaveData ofd_packets/00201519 [14:15:31]File name is /storage/ofd_packets/00201519 [14:15:31]Write 301 bytes [14:15:31]NVStorageSaveData done [14:15:31]OFDSenderStorePacket done [14:15:31]KKMCreateOFDPacket done [14:15:31]NVStorageSaveData kkm_last_timestamp [14:15:31]File name is /storage/kkm_last_timestamp [14:15:31]Write 4 bytes [14:15:31]NVStorageSaveData done [14:15:31]ExternCall_PrintAddStr [14:15:31]wPrintStart [14:15:31]Write to MH i2c: 01 00 00 44 1C 60 [14:15:31]Write i2c OK [14:15:31]MH_I2C_Read... [14:15:31]Read from MH i2c: 01 [14:15:31]MH_I2C_Read... [14:15:31]Read from MH i2c: 01 07 00 [14:15:31]MH_I2C_Read... [14:15:31]Read from MH i2c: 01 07 00 44 1C 00 00 00 00 00 FF 0F 75 [14:15:31]RasterBufferAndPrint [14:15:31]line Счет N : (1)449270 [14:15:31]line ИНН: 02508201610067 [14:15:31]line Контрольно-Кассовый Чек [14:15:31]line ПРОДАЖА [14:15:31]line ТРК (МРК, ГНК) : 31 [14:15:31]line Товар: 2710124130 [14:15:31]line Аи-92-К-2 [14:15:31]line 14.950 * 66.90 [14:15:31]line = 1000.16 [14:15:31]line НДС 12% НСП 1% [14:15:31]line > о реализуемом товаре [14:15:31]line ОКРУГЛЕНИЕ: -0.16 [14:15:31]line ИТОГО: 1000.00 [14:15:31]line Внесено: 1000.00 [14:15:31]line СДАЧА: 0.00 [14:15:31]line НСП 1% : 8.85 [14:15:31]line НДС 12% : 106.21 [14:15:31]line Наличными: 1000.00 [14:15:31]line Безнал.: 0.00 [14:15:31]line Место: АЗС № 171 "Партнер Нефть" [14:15:31]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:15:31]line СНО: Общий режим [14:15:31]line Чек 281 26.10.2024 14:15 [14:15:31]line Смена: 543 ФФД: 1.0 [14:15:31]line ЗНМ: 0300000109 [14:15:31]line РНМ: 0000000000091777 [14:15:31]line Версия ККМ: 001 [14:15:31]line ФМ: 0000000000871756 [14:15:31]line ФД: 201519 [14:15:31]line ФПД: 18669787517219 [14:15:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T141531&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201519&fm=18669787517219&tin=02508201610067®Number=0000000000091777&sum=100000 [14:15:32]OFD Sender: Processing packet 201519 [packets to send 112, broken 111] [14:15:32]ProducePacketName [14:15:32]name=ofd_packets/00201519 [14:15:32]OFD Sender: To server: pG, [14:15:32]CommunicateWithHost lk.salyk.kg:30040 [14:15:32]ConnectInit lk.salyk.kg [14:15:32]written 0, free lines is 4095 [14:15:32]Write to MH i2c: 01 00 00 6F 1C 8B [14:15:32]Write i2c OK [14:15:32]MH_I2C_Read... [14:15:32]Read from MH i2c: 01 [14:15:32]MH_I2C_Read... [14:15:32]Read from MH i2c: 01 07 00 [14:15:32]MH_I2C_Read... [14:15:32]Read from MH i2c: 01 07 00 6F 1C 00 00 00 00 00 8A 0C 28 [14:15:32]RasterBufferAndPrint [14:15:32]line [14:15:32]line [14:15:32]line [14:15:32]line [14:15:32]line [14:15:32]written 0, free lines is 3213 [14:15:32]MH_Cut [14:15:32]Write to MH i2c: D1 01 00 76 1C 01 64 [14:15:32]Write i2c OK [14:15:32]MH_I2C_Read... [14:15:32]Read from MH i2c: D1 [14:15:32]MH_I2C_Read... [14:15:32]Read from MH i2c: D1 01 00 [14:15:32]MH_I2C_Read... [14:15:32]Read from MH i2c: D1 01 00 76 1C 00 63 [14:15:32]Write to MH i2c: 01 00 00 77 1C 93 [14:15:32]Write i2c OK [14:15:32]MH_I2C_Read... [14:15:33]*** Cut start [14:15:33]*** Purtial cut [14:15:33]*** Stage 1: CUTSNS_PIN = 1 [14:15:33]Read from MH i2c: 01 [14:15:33]MH_I2C_Read... [14:15:33]*** Stop cut motor [14:15:33]*** Cut end [14:15:33]Read from MH i2c: 01 07 00 [14:15:33]MH_I2C_Read... [14:15:33]Read from MH i2c: 01 07 00 77 1C 00 00 00 00 00 FF 0F A8 [14:15:33]process_action close_receipt done [14:15:33]requested_data is exist [14:15:33]produce_requested_data [14:15:33]requested_item fm.sn is exist - process it [14:15:33]wFMCommunicate request_size=4 [14:15:33]MH_SAM_APDU [14:15:33]CAPDU: 80 11 00 00 [14:15:33]Write to MH i2c: E2 08 00 78 1C 80 11 00 00 00 00 00 00 0E [14:15:33]Write i2c OK [14:15:33]MH_I2C_Read... [14:15:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:33]Read from MH i2c: E2 [14:15:33]MH_I2C_Read... [14:15:33]Read from MH i2c: E2 17 00 [14:15:33]MH_I2C_Read... [14:15:33]Read from MH i2c: E2 17 00 78 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 63 [14:15:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:15:33]wFMCommunicate OK [14:15:33]requested_item fd.num is exist - process it [14:15:33]SAM_PROTO_GetFieldsCounters [14:15:33]wFMCommunicate request_size=4 [14:15:33]MH_SAM_APDU [14:15:33]CAPDU: 80 13 00 00 [14:15:33]Write to MH i2c: E2 08 00 79 1C 80 13 00 00 00 00 00 00 11 [14:15:33]Write i2c OK [14:15:33]MH_I2C_Read... [14:15:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:15:34]Read from MH i2c: E2 [14:15:34]MH_I2C_Read... [14:15:34]Read from MH i2c: E2 62 00 [14:15:34]MH_I2C_Read... [14:15:34]Read from MH i2c: E2 62 00 79 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2F 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 EE [14:15:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 2F 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:15:34]wFMCommunicate OK [14:15:34]SAM_PROTO_GetFieldsCounters done [14:15:34]requested_item shift.num is exist - process it [14:15:34]requested_item shift.opened is exist - process it [14:15:34]req_shift_opened [14:15:34]FM_GetShiftState [14:15:34]SAM_PROTO_GetShiftState [14:15:34]wFMCommunicate request_size=4 [14:15:34]MH_SAM_APDU [14:15:34]CAPDU: 80 13 01 00 [14:15:34]Write to MH i2c: E2 08 00 7A 1C 80 13 01 00 00 00 00 00 13 [14:15:34]Write i2c OK [14:15:34]MH_I2C_Read... [14:15:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:34]Read from MH i2c: E2 [14:15:34]MH_I2C_Read... [14:15:34]Read from MH i2c: E2 0E 00 [14:15:34]MH_I2C_Read... [14:15:34]Read from MH i2c: E2 0E 00 7A 1C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 22 [14:15:34]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:15:34]wFMCommunicate OK [14:15:34]SAM_PROTO_GetShiftState done [14:15:34]FM_GetShiftState done [14:15:34]req_shift_opened done [14:15:34]requested_item shift.open_date is exist - process it [14:15:34]req_shift_open_date [14:15:34]req_shift_open_date done [14:15:34]produce_requested_data done [14:15:34]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201519,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:15:34]process_action_free close_receipt [14:15:34]json_value_free [14:15:34]json_value_free done [14:15:34]process_json_proto returns [14:15:34]Send response to host [14:15:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201519,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:15:34]free response buf [14:15:34]execute_script done [14:15:34]execute_script returns [14:15:34]free content buf [14:15:34]Sock 9.Close socket [14:15:34]Sock 9.Thread stoped [14:16:50]accept exits with 8 [14:16:50]New connection [14:16:50]New thread 3066690916 created [14:16:50]Thread 3066834276 joined [14:16:50]Waiting for new connection... [14:16:50] Sock 8.Parse request [14:16:50]Sock 8.Check first char [14:16:50]Sock 8.First char is OK [14:16:50]request: POST /json_proto HTTP/1.0 [14:16:50]Method: POST [14:16:50]URL: /json_proto [14:16:50]Method is POST - this is cgi request [14:16:50]url: /json_proto [14:16:50]query_string will be loaded in cgi processing [14:16:50]execute_cgi json_proto POST (null) [14:16:50]execute_cgi path=json_proto method=POST [14:16:50]POST find Content-Length [14:16:50]Host: 172.17.63.195:8080 [14:16:50]Content-Length: 677 [14:16:50]Content-Type: application/json [14:16:50] [14:16:50]POST finish read [14:16:50]Found Content-Length = 677 [14:16:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "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" ] } } [14:16:50]execute_script... [14:16: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)449271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "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" ] } } [14:16:50]POST & json_proto [14:16:50]process_json_proto [14:16:50]json parsed OK: [14:16:50]protocol is kg_v1.0 [14:16:50]action value=close_receipt [14:16:50]process_action close_receipt [14:16:50]cmd_close_receipt [14:16:50]MH_GetDate [14:16:50]Write to MH i2c: F0 00 00 7B 1C 86 [14:16:50]Write i2c OK [14:16:50]MH_I2C_Read... [14:16:50]Read from MH i2c: F0 [14:16:50]MH_I2C_Read... [14:16:50]Read from MH i2c: F0 09 00 [14:16:50]MH_I2C_Read... [14:16:50]Read from MH i2c: F0 09 00 7B 1C 00 D4 F9 1C 67 68 46 19 67 0D [14:16:50]GetLastDocTimeStamp 1729952131 [14:16:50]current date 1729952212 [14:16:50]FM_GetShiftState [14:16:50]SAM_PROTO_GetShiftState [14:16:50]wFMCommunicate request_size=4 [14:16:50]MH_SAM_APDU [14:16:50]CAPDU: 80 13 01 00 [14:16:50]Write to MH i2c: E2 08 00 7C 1C 80 13 01 00 00 00 00 00 15 [14:16:50]Write i2c OK [14:16:50]MH_I2C_Read... [14:16:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:50]Read from MH i2c: E2 [14:16:50]MH_I2C_Read... [14:16:50]Read from MH i2c: E2 0E 00 [14:16:50]MH_I2C_Read... [14:16:50]Read from MH i2c: E2 0E 00 7C 1C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 24 [14:16:50]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:16:50]wFMCommunicate OK [14:16:50]SAM_PROTO_GetShiftState done [14:16:50]FM_GetShiftState done [14:16:50]opened in 1729900879 [14:16:50]opened+sec_in_day 1729987279 [14:16:50]quantity*price = 40068 [14:16:50]sum+1 = 40069 [14:16:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 282 26.10.2024 14:16 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201520 ФПД: 30191793850266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T141652&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201520&fm=30191793850266&tin=02508201610067®Number=0000000000091777&sum=40000 [14:16:52]StoreToDocumentArchive [14:16:52]shift 543 fd 201520 [14:16:52]save to /storage/0543/doc_00201520 [14:16:52]save last doc name /storage/0543/doc_00201520 to /storage/kkm_last_doc_name [14:16:52]save OK [14:16:52]Clear old archive folders... [14:16:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:16:52]tlvbuf is 01F58280 [14:16:52]SAM_PROTO_ClearQueue [14:16:52]wFMCommunicate request_size=4 [14:16:52]MH_SAM_APDU [14:16:52]CAPDU: 80 09 00 00 [14:16:52]Write to MH i2c: E2 08 00 89 1C 80 09 00 00 00 00 00 00 17 [14:16:52]Write i2c OK [14:16:52]MH_I2C_Read... [14:16:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:52]Read from MH i2c: E2 [14:16:52]MH_I2C_Read... [14:16:52]Read from MH i2c: E2 03 00 [14:16:52]MH_I2C_Read... [14:16:52]Read from MH i2c: E2 03 00 89 1C 00 90 00 19 [14:16:52]RAPDU: 90 00 [14:16:52]wFMCommunicate OK [14:16:52]SAM_PROTO_ClearQueue done [14:16:52]KKMCreateOFDPacket [14:16:52]OFDProtocolAddRootSTLVToBuf [14:16:52]FM_MakeSignedData [14:16:52]FM_MakeSignedData [14:16:52]SAM_PROTO_SignData [14:16:52]wFMCommunicate request_size=4 [14:16:52]MH_SAM_APDU [14:16:52]CAPDU: 80 0D 01 02 [14:16:52]Write to MH i2c: E2 08 00 8A 1C 80 0D 01 02 00 00 00 00 1F [14:16:52]Write i2c OK [14:16:52]MH_I2C_Read... [14:16:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:52]Read from MH i2c: E2 [14:16:52]MH_I2C_Read... [14:16:52]Read from MH i2c: E2 03 00 [14:16:52]MH_I2C_Read... [14:16:52]Read from MH i2c: E2 03 00 8A 1C 00 90 00 1A [14:16:52]RAPDU: 90 00 [14:16:52]wFMCommunicate OK [14:16:52]wFMCommunicate request_size=255 [14:16:52]MH_SAM_APDU [14:16: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 1A 01 00 00 F4 03 04 00 D4 F9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 30 13 03 00 35 04 06 00 1B [14:16:52]Write to MH i2c: E2 02 01 8B 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 1A 01 00 00 F4 03 04 00 D4 F9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 30 13 03 00 35 04 06 00 1B 00 00 50 [14:16:52]Write i2c OK [14:16:52]MH_I2C_Read... [14:16:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:52]Read from MH i2c: E2 [14:16:52]MH_I2C_Read... [14:16:52]Read from MH i2c: E2 03 00 [14:16:52]MH_I2C_Read... [14:16:52]Read from MH i2c: E2 03 00 8B 1C 00 90 00 1B [14:16:52]RAPDU: 90 00 [14:16:52]wFMCommunicate OK [14:16:52]wFMCommunicate request_size=10 [14:16:52]MH_SAM_APDU [14:16:52]CAPDU: 80 0D 02 02 05 75 93 25 C7 9A [14:16:52]Write to MH i2c: E2 0D 00 8C 1C 80 0D 02 02 05 00 75 93 25 C7 9A 00 00 BA [14:16:52]Write i2c OK [14:16:52]MH_I2C_Read... [14:16:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:52]Read from MH i2c: E2 [14:16:52]MH_I2C_Read... [14:16:52]Read from MH i2c: E2 03 00 [14:16:52]MH_I2C_Read... [14:16:52]Read from MH i2c: E2 03 00 8C 1C 00 90 00 1C [14:16:52]RAPDU: 90 00 [14:16:52]wFMCommunicate OK [14:16:52]wFMCommunicate request_size=4 [14:16:52]MH_SAM_APDU [14:16:52]CAPDU: 80 0D 03 02 [14:16:52]Write to MH i2c: E2 08 00 8D 1C 80 0D 03 02 00 00 00 00 24 [14:16:52]Write i2c OK [14:16:52]MH_I2C_Read... [14:16:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:52]Read from MH i2c: E2 [14:16:52]MH_I2C_Read... [14:16:52]Read from MH i2c: E2 0B 00 [14:16:52]MH_I2C_Read... [14:16:52]Read from MH i2c: E2 0B 00 8D 1C 00 7A 42 39 11 4E 4E D5 04 90 00 A0 [14:16:52]RAPDU: 7A 42 39 11 4E 4E D5 04 90 00 [14:16:52]wFMCommunicate OK [14:16:52]SAM_PROTO_SignData done [14:16:52]FM_MakeSignedData done [14:16:52]CreateOFDProtocolMessage [14:16:52]wFMCommunicate request_size=4 [14:16:52]MH_SAM_APDU [14:16:52]CAPDU: 80 11 00 00 [14:16:52]Write to MH i2c: E2 08 00 8E 1C 80 11 00 00 00 00 00 00 24 [14:16:52]Write i2c OK [14:16:52]MH_I2C_Read... [14:16:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:52]Read from MH i2c: E2 [14:16:52]MH_I2C_Read... [14:16:52]Read from MH i2c: E2 17 00 [14:16:52]MH_I2C_Read... [14:16:52]Read from MH i2c: E2 17 00 8E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 79 [14:16:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:16:52]wFMCommunicate OK [14:16:52]CreateOFDProtocolMessage done [14:16:52]OFDSenderStorePacket 201520 [14:16:52]StoreOFDPacket docnum=201520 [14:16:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A7 31 07 01 B8 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 1A 01 00 00 F4 03 04 00 D4 F9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 30 13 03 00 35 04 06 00 1B 75 93 25 C7 9A 7A 42 39 11 4E 4E D5 04 [14:16:52]CheckFolder [14:16:52]dirname=/storage/ofd_packets [14:16:52]CheckFolder done [14:16:52]ProducePacketName [14:16:52]name=ofd_packets/00201520 [14:16:52]NVStorageSaveData ofd_packets/00201520 [14:16:52]File name is /storage/ofd_packets/00201520 [14:16:52]Write 301 bytes [14:16:52]NVStorageSaveData done [14:16:52]OFDSenderStorePacket done [14:16:52]KKMCreateOFDPacket done [14:16:52]NVStorageSaveData kkm_last_timestamp [14:16:52]File name is /storage/kkm_last_timestamp [14:16:52]Write 4 bytes [14:16:52]NVStorageSaveData done [14:16:52]ExternCall_PrintAddStr [14:16:52]wPrintStart [14:16:52]Write to MH i2c: 01 00 00 8F 1C AB [14:16:52]Write i2c OK [14:16:52]MH_I2C_Read... [14:16:52]Read from MH i2c: 01 [14:16:52]MH_I2C_Read... [14:16:52]Read from MH i2c: 01 07 00 [14:16:52]MH_I2C_Read... [14:16:52]Read from MH i2c: 01 07 00 8F 1C 00 00 00 00 00 FF 0F C0 [14:16:52]RasterBufferAndPrint [14:16:52]line Счет N : (1)449271 [14:16:52]line ИНН: 02508201610067 [14:16:52]line Контрольно-Кассовый Чек [14:16:52]line ПРОДАЖА [14:16:52]line ТРК (МРК, ГНК) : 61 [14:16:52]line Товар: 2710124500 [14:16:52]line Аи-95-К-3 [14:16:52]line 5.400 * 74.20 [14:16:52]line = 400.68 [14:16:52]line НДС 12% НСП 1% [14:16:52]line > о реализуемом товаре [14:16:52]line ОКРУГЛЕНИЕ: -0.68 [14:16:52]line ИТОГО: 400.00 [14:16:52]line Внесено: 400.00 [14:16:52]line СДАЧА: 0.00 [14:16:52]line НСП 1% : 3.55 [14:16:52]line НДС 12% : 42.55 [14:16:52]line Наличными: 400.00 [14:16:52]line Безнал.: 0.00 [14:16:52]line Место: АЗС № 171 "Партнер Нефть" [14:16:52]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:16:52]line СНО: Общий режим [14:16:52]line Чек 282 26.10.2024 14:16 [14:16:52]line Смена: 543 ФФД: 1.0 [14:16:52]line ЗНМ: 0300000109 [14:16:52]line РНМ: 0000000000091777 [14:16:52]line Версия ККМ: 001 [14:16:52]line ФМ: 0000000000871756 [14:16:52]line ФД: 201520 [14:16:52]line ФПД: 30191793850266 [14:16:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T141652&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201520&fm=30191793850266&tin=02508201610067®Number=0000000000091777&sum=40000 [14:16:52]written 0, free lines is 4095 [14:16:53]Write to MH i2c: 01 00 00 BA 1C D6 [14:16:53]Write i2c OK [14:16:53]MH_I2C_Read... [14:16:53]Read from MH i2c: 01 [14:16:53]MH_I2C_Read... [14:16:53]Read from MH i2c: 01 07 00 [14:16:53]MH_I2C_Read... [14:16:53]Read from MH i2c: 01 07 00 BA 1C 00 00 00 00 00 90 0C 79 [14:16:53]RasterBufferAndPrint [14:16:53]line [14:16:53]line [14:16:53]line [14:16:53]line [14:16:53]line [14:16:53]written 0, free lines is 3220 [14:16:53]MH_Cut [14:16:53]Write to MH i2c: D1 01 00 C1 1C 01 AF [14:16:53]Write i2c OK [14:16:53]MH_I2C_Read... [14:16:53]Read from MH i2c: D1 [14:16:53]MH_I2C_Read... [14:16:53]Read from MH i2c: D1 01 00 [14:16:53]MH_I2C_Read... [14:16:53]Read from MH i2c: D1 01 00 C1 1C 00 AE [14:16:53]Write to MH i2c: 01 00 00 C2 1C DE [14:16:53]Write i2c OK [14:16:53]MH_I2C_Read... [14:16:54]*** Cut start [14:16:54]*** Purtial cut [14:16:54]*** Stage 1: CUTSNS_PIN = 1 [14:16:54]Read from MH i2c: 01 [14:16:54]MH_I2C_Read... [14:16:54]*** Stop cut motor [14:16:54]*** Cut end [14:16:54]Read from MH i2c: 01 07 00 [14:16:54]MH_I2C_Read... [14:16:54]Read from MH i2c: 01 07 00 C2 1C 00 00 00 00 00 FF 0F F3 [14:16:54]process_action close_receipt done [14:16:54]requested_data is exist [14:16:54]produce_requested_data [14:16:54]requested_item fm.sn is exist - process it [14:16:54]wFMCommunicate request_size=4 [14:16:54]MH_SAM_APDU [14:16:54]CAPDU: 80 11 00 00 [14:16:54]Write to MH i2c: E2 08 00 C3 1C 80 11 00 00 00 00 00 00 59 [14:16:54]Write i2c OK [14:16:54]MH_I2C_Read... [14:16:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:54]Read from MH i2c: E2 [14:16:54]MH_I2C_Read... [14:16:54]Read from MH i2c: E2 17 00 [14:16:54]MH_I2C_Read... [14:16:54]Read from MH i2c: E2 17 00 C3 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AE [14:16:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:16:54]wFMCommunicate OK [14:16:54]requested_item fd.num is exist - process it [14:16:54]SAM_PROTO_GetFieldsCounters [14:16:54]wFMCommunicate request_size=4 [14:16:54]MH_SAM_APDU [14:16:54]CAPDU: 80 13 00 00 [14:16:54]Write to MH i2c: E2 08 00 C4 1C 80 13 00 00 00 00 00 00 5C [14:16:54]Write i2c OK [14:16:54]MH_I2C_Read... [14:16:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:54]Read from MH i2c: E2 [14:16:54]MH_I2C_Read... [14:16:54]Read from MH i2c: E2 62 00 [14:16:54]MH_I2C_Read... [14:16:54]Read from MH i2c: E2 62 00 C4 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 30 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 3D [14:16:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 30 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:16:54]wFMCommunicate OK [14:16:54]SAM_PROTO_GetFieldsCounters done [14:16:54]requested_item shift.num is exist - process it [14:16:54]requested_item shift.opened is exist - process it [14:16:54]req_shift_opened [14:16:54]FM_GetShiftState [14:16:54]SAM_PROTO_GetShiftState [14:16:54]wFMCommunicate request_size=4 [14:16:54]MH_SAM_APDU [14:16:54]CAPDU: 80 13 01 00 [14:16:54]Write to MH i2c: E2 08 00 C5 1C 80 13 01 00 00 00 00 00 5E [14:16:54]Write i2c OK [14:16:54]MH_I2C_Read... [14:16:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:54]Read from MH i2c: E2 [14:16:54]MH_I2C_Read... [14:16:54]Read from MH i2c: E2 0E 00 [14:16:54]MH_I2C_Read... [14:16:54]Read from MH i2c: E2 0E 00 C5 1C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 6D [14:16:54]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:16:54]wFMCommunicate OK [14:16:54]SAM_PROTO_GetShiftState done [14:16:54]FM_GetShiftState done [14:16:54]req_shift_opened done [14:16:54]requested_item shift.open_date is exist - process it [14:16:54]req_shift_open_date [14:16:54]req_shift_open_date done [14:16:54]produce_requested_data done [14:16:54]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201520,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:16:54]process_action_free close_receipt [14:16:54]json_value_free [14:16:54]json_value_free done [14:16:54]process_json_proto returns [14:16:54]Send response to host [14:16:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201520,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:16:54]free response buf [14:16:54]execute_script done [14:16:54]execute_script returns [14:16:54]free content buf [14:16:54]Sock 8.Close socket [14:16:54]Sock 8.Thread stoped [14:17:42]ConnectInit Can't connect to host [14:17:42]CommunicateWithHost connect error [14:17:42]CommunicateWithHost err = -1 [14:17:42]OFD Sender: Server communicate error [14:17:42]OFD Sender: Processing packet 201519 [packets to send 113, broken 111] [14:17:42]ProducePacketName [14:17:42]name=ofd_packets/00201519 [14:17:42]OFD Sender: To server: pG, [14:17:42]CommunicateWithHost lk.salyk.kg:30040 [14:17:42]ConnectInit lk.salyk.kg [14:17:42]Connected sock=8 [14:17:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E7 99 07 01 6E BB 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 32 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 19 01 00 00 F4 03 04 00 83 F9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2F 13 03 00 35 04 06 00 10 FA E6 0D 91 23 65 26 BD E4 ED 34 7D 65 [14:17:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A7 02 47 00 DE 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 2F 13 03 00 F4 03 04 00 AE A5 1C 67 B6 04 01 00 00 33 D0 0C 2E 6B 53 A4 E0 [14:17:42]CommunicateWithHost err = 0 [14:17:42]CheckOFDResponse [14:17:42]1017 (14) - 77093643461234 [14:17:42]1041 (16) - 0000000000871756 [14:17:42]1040 (4) - 201519 [14:17:42]1012 (4) - 26.10.2024 08:17 [14:17:42]1206 (1) - 0 [14:17:42]OFD Sender: Remove packet 201519 [14:17:42]ProducePacketName [14:17:42]name=ofd_packets/00201519 [14:17:42]NVStorageDeleteData [14:17:43]OFD Sender: Processing packet 201520 [packets to send 112, broken 111] [14:17:43]ProducePacketName [14:17:43]name=ofd_packets/00201520 [14:17:43]OFD Sender: To server: pG, [14:17:43]CommunicateWithHost lk.salyk.kg:30040 [14:17:43]ConnectInit lk.salyk.kg [14:17:43]Connected sock=8 [14:17:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A7 31 07 01 B8 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 1A 01 00 00 F4 03 04 00 D4 F9 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 30 13 03 00 35 04 06 00 1B 75 93 25 C7 9A 7A 42 39 11 4E 4E D5 04 [14:17:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 31 C1 47 00 69 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 30 13 03 00 F4 03 04 00 AF A5 1C 67 B6 04 01 00 00 5A FD 3F EE 14 4D DD FE [14:17:43]CommunicateWithHost err = 0 [14:17:43]CheckOFDResponse [14:17:43]1017 (14) - 77093643461234 [14:17:43]1041 (16) - 0000000000871756 [14:17:43]1040 (4) - 201520 [14:17:43]1012 (4) - 26.10.2024 08:17 [14:17:43]1206 (1) - 0 [14:17:43]OFD Sender: Remove packet 201520 [14:17:43]ProducePacketName [14:17:43]name=ofd_packets/00201520 [14:17:43]NVStorageDeleteData [14:17:44]OFD Sender: No OFD packet to send [14:17:49]OFD Sender: No OFD packet to send [14:17:54]OFD Sender: No OFD packet to send [14:17:59]OFD Sender: No OFD packet to send [14:18:04]OFD Sender: No OFD packet to send [14:18:09]OFD Sender: No OFD packet to send [14:18:14]OFD Sender: No OFD packet to send [14:18:19]OFD Sender: No OFD packet to send [14:18:24]OFD Sender: No OFD packet to send [14:18:29]OFD Sender: No OFD packet to send [14:18:34]OFD Sender: No OFD packet to send [14:18:39]OFD Sender: No OFD packet to send [14:18:41]accept exits with 9 [14:18:41]New connection [14:18:41]New thread 3066834276 created [14:18:41]Thread 3066690916 joined [14:18:41]Waiting for new connection... [14:18:41] Sock 9.Parse request [14:18:41]Sock 9.Check first char [14:18:41]Sock 9.First char is OK [14:18:41]request: POST /json_proto HTTP/1.0 [14:18:41]Method: POST [14:18:41]URL: /json_proto [14:18:41]Method is POST - this is cgi request [14:18:41]url: /json_proto [14:18:41]query_string will be loaded in cgi processing [14:18:41]execute_cgi json_proto POST (null) [14:18:41]execute_cgi path=json_proto method=POST [14:18:41]POST find Content-Length [14:18:41]Host: 172.17.63.195:8080 [14:18:41]Content-Length: 679 [14:18:41]Content-Type: application/json [14:18:41] [14:18:41]POST finish read [14:18:41]Found Content-Length = 679 [14:18:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:41]execute_script... [14:18:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:41]POST & json_proto [14:18:41]process_json_proto [14:18:41]json parsed OK: [14:18:41]protocol is kg_v1.0 [14:18:41]action value=close_receipt [14:18:41]process_action close_receipt [14:18:41]cmd_close_receipt [14:18:41]MH_GetDate [14:18:41]Write to MH i2c: F0 00 00 C6 1C D1 [14:18:41]Write i2c OK [14:18:41]MH_I2C_Read... [14:18:41]Read from MH i2c: F0 [14:18:41]MH_I2C_Read... [14:18:41]Read from MH i2c: F0 09 00 [14:18:41]MH_I2C_Read... [14:18:41]Read from MH i2c: F0 09 00 C6 1C 00 42 FA 1C 67 68 46 19 67 C7 [14:18:41]GetLastDocTimeStamp 1729952212 [14:18:41]current date 1729952322 [14:18:41]FM_GetShiftState [14:18:41]SAM_PROTO_GetShiftState [14:18:41]wFMCommunicate request_size=4 [14:18:41]MH_SAM_APDU [14:18:41]CAPDU: 80 13 01 00 [14:18:41]Write to MH i2c: E2 08 00 C7 1C 80 13 01 00 00 00 00 00 60 [14:18:41]Write i2c OK [14:18:41]MH_I2C_Read... [14:18:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:41]Read from MH i2c: E2 [14:18:41]MH_I2C_Read... [14:18:41]Read from MH i2c: E2 0E 00 [14:18:41]MH_I2C_Read... [14:18:41]Read from MH i2c: E2 0E 00 C7 1C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 6F [14:18:41]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:18:41]wFMCommunicate OK [14:18:41]SAM_PROTO_GetShiftState done [14:18:41]FM_GetShiftState done [14:18:41]opened in 1729900879 [14:18:41]opened+sec_in_day 1729987279 [14:18:41]quantity*price = 120015 [14:18:41]sum+1 = 120016 [14:18:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 283 26.10.2024 14:18 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201521 ФПД: 29878202761915 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T141842&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201521&fm=29878202761915&tin=02508201610067®Number=0000000000091777&sum=120000 [14:18:42]StoreToDocumentArchive [14:18:42]shift 543 fd 201521 [14:18:42]save to /storage/0543/doc_00201521 [14:18:42]save last doc name /storage/0543/doc_00201521 to /storage/kkm_last_doc_name [14:18:42]save OK [14:18:42]Clear old archive folders... [14:18:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:18:42]tlvbuf is 01F38230 [14:18:42]SAM_PROTO_ClearQueue [14:18:42]wFMCommunicate request_size=4 [14:18:42]MH_SAM_APDU [14:18:42]CAPDU: 80 09 00 00 [14:18:42]Write to MH i2c: E2 08 00 D4 1C 80 09 00 00 00 00 00 00 62 [14:18:42]Write i2c OK [14:18:42]MH_I2C_Read... [14:18:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:42]Read from MH i2c: E2 [14:18:42]MH_I2C_Read... [14:18:42]Read from MH i2c: E2 03 00 [14:18:42]MH_I2C_Read... [14:18:42]Read from MH i2c: E2 03 00 D4 1C 00 90 00 64 [14:18:42]RAPDU: 90 00 [14:18:42]wFMCommunicate OK [14:18:42]SAM_PROTO_ClearQueue done [14:18:42]KKMCreateOFDPacket [14:18:42]OFDProtocolAddRootSTLVToBuf [14:18:42]FM_MakeSignedData [14:18:42]FM_MakeSignedData [14:18:42]SAM_PROTO_SignData [14:18:42]wFMCommunicate request_size=4 [14:18:42]MH_SAM_APDU [14:18:42]CAPDU: 80 0D 01 02 [14:18:42]Write to MH i2c: E2 08 00 D5 1C 80 0D 01 02 00 00 00 00 6A [14:18:42]Write i2c OK [14:18:42]MH_I2C_Read... [14:18:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:42]Read from MH i2c: E2 [14:18:42]MH_I2C_Read... [14:18:42]Read from MH i2c: E2 03 00 [14:18:42]MH_I2C_Read... [14:18:42]Read from MH i2c: E2 03 00 D5 1C 00 90 00 65 [14:18:42]RAPDU: 90 00 [14:18:42]wFMCommunicate OK [14:18:42]wFMCommunicate request_size=255 [14:18:42]MH_SAM_APDU [14:18:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 42 FA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 31 13 03 00 35 04 06 00 1B 2C 8F A9 [14:18:42]Write to MH i2c: E2 02 01 D6 1C 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 32 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 42 FA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 31 13 03 00 35 04 06 00 1B 2C 8F A9 00 00 24 [14:18:42]Write i2c OK [14:18:42]MH_I2C_Read... [14:18:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:42]Read from MH i2c: E2 [14:18:42]MH_I2C_Read... [14:18:42]Read from MH i2c: E2 03 00 [14:18:42]MH_I2C_Read... [14:18:42]Read from MH i2c: E2 03 00 D6 1C 00 90 00 66 [14:18:42]RAPDU: 90 00 [14:18:42]wFMCommunicate OK [14:18:42]wFMCommunicate request_size=7 [14:18:42]MH_SAM_APDU [14:18:42]CAPDU: 80 0D 02 02 02 82 BB [14:18:42]Write to MH i2c: E2 0A 00 D7 1C 80 0D 02 02 02 00 82 BB 00 00 AE [14:18:42]Write i2c OK [14:18:42]MH_I2C_Read... [14:18:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:42]Read from MH i2c: E2 [14:18:42]MH_I2C_Read... [14:18:42]Read from MH i2c: E2 03 00 [14:18:42]MH_I2C_Read... [14:18:42]Read from MH i2c: E2 03 00 D7 1C 00 90 00 67 [14:18:42]RAPDU: 90 00 [14:18:42]wFMCommunicate OK [14:18:42]wFMCommunicate request_size=4 [14:18:42]MH_SAM_APDU [14:18:42]CAPDU: 80 0D 03 02 [14:18:42]Write to MH i2c: E2 08 00 D8 1C 80 0D 03 02 00 00 00 00 6F [14:18:42]Write i2c OK [14:18:42]MH_I2C_Read... [14:18:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:42]Read from MH i2c: E2 [14:18:42]MH_I2C_Read... [14:18:42]Read from MH i2c: E2 0B 00 [14:18:42]MH_I2C_Read... [14:18:42]Read from MH i2c: E2 0B 00 D8 1C 00 0D 64 1A C3 9A 99 A5 8A 90 00 20 [14:18:42]RAPDU: 0D 64 1A C3 9A 99 A5 8A 90 00 [14:18:42]wFMCommunicate OK [14:18:42]SAM_PROTO_SignData done [14:18:42]FM_MakeSignedData done [14:18:42]CreateOFDProtocolMessage [14:18:42]wFMCommunicate request_size=4 [14:18:42]MH_SAM_APDU [14:18:42]CAPDU: 80 11 00 00 [14:18:42]Write to MH i2c: E2 08 00 D9 1C 80 11 00 00 00 00 00 00 6F [14:18:42]Write i2c OK [14:18:42]MH_I2C_Read... [14:18:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:43]Read from MH i2c: E2 [14:18:43]MH_I2C_Read... [14:18:43]Read from MH i2c: E2 17 00 [14:18:43]MH_I2C_Read... [14:18:43]Read from MH i2c: E2 17 00 D9 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C4 [14:18:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:18:43]wFMCommunicate OK [14:18:43]CreateOFDProtocolMessage done [14:18:43]OFDSenderStorePacket 201521 [14:18:43]StoreOFDPacket docnum=201521 [14:18:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 44 C5 04 01 AD CA 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 32 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 42 FA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 31 13 03 00 35 04 06 00 1B 2C 8F A9 82 BB 0D 64 1A C3 9A 99 A5 8A [14:18:43]CheckFolder [14:18:43]dirname=/storage/ofd_packets [14:18:43]CheckFolder done [14:18:43]ProducePacketName [14:18:43]name=ofd_packets/00201521 [14:18:43]NVStorageSaveData ofd_packets/00201521 [14:18:43]File name is /storage/ofd_packets/00201521 [14:18:43]Write 298 bytes [14:18:43]NVStorageSaveData done [14:18:43]OFDSenderStorePacket done [14:18:43]KKMCreateOFDPacket done [14:18:43]NVStorageSaveData kkm_last_timestamp [14:18:43]File name is /storage/kkm_last_timestamp [14:18:43]Write 4 bytes [14:18:43]NVStorageSaveData done [14:18:43]ExternCall_PrintAddStr [14:18:43]wPrintStart [14:18:43]Write to MH i2c: 01 00 00 DA 1C F6 [14:18:43]Write i2c OK [14:18:43]MH_I2C_Read... [14:18:43]Read from MH i2c: 01 [14:18:43]MH_I2C_Read... [14:18:43]Read from MH i2c: 01 07 00 [14:18:43]MH_I2C_Read... [14:18:43]Read from MH i2c: 01 07 00 DA 1C 00 00 00 00 00 FF 0F 0B [14:18:43]RasterBufferAndPrint [14:18:43]line Счет N : (1)449272 [14:18:43]line ИНН: 02508201610067 [14:18:43]line Контрольно-Кассовый Чек [14:18:43]line ПРОДАЖА [14:18:43]line ТРК (МРК, ГНК) : 43 [14:18:43]line Товар: 2710194210 [14:18:43]line ДТ-К-2 [14:18:43]line 15.750 * 76.20 [14:18:43]line = 1200.15 [14:18:43]line НДС 12% НСП 1% [14:18:43]line > о реализуемом товаре [14:18:43]line ОКРУГЛЕНИЕ: -0.15 [14:18:43]line ИТОГО: 1200.00 [14:18:43]line Внесено: 1200.00 [14:18:43]line СДАЧА: 0.00 [14:18:43]line НСП 1% : 10.62 [14:18:43]line НДС 12% : 127.45 [14:18:43]line Наличными: 1200.00 [14:18:43]line Безнал.: 0.00 [14:18:43]line Место: АЗС № 171 "Партнер Нефть" [14:18:43]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:18:43]line СНО: Общий режим [14:18:43]line Чек 283 26.10.2024 14:18 [14:18:43]line Смена: 543 ФФД: 1.0 [14:18:43]line ЗНМ: 0300000109 [14:18:43]line РНМ: 0000000000091777 [14:18:43]line Версия ККМ: 001 [14:18:43]line ФМ: 0000000000871756 [14:18:43]line ФД: 201521 [14:18:43]line ФПД: 29878202761915 [14:18:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T141842&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201521&fm=29878202761915&tin=02508201610067®Number=0000000000091777&sum=120000 [14:18:43]OFD Sender: Processing packet 201521 [packets to send 112, broken 111] [14:18:43]ProducePacketName [14:18:43]name=ofd_packets/00201521 [14:18:43]OFD Sender: To server: pG, [14:18:43]CommunicateWithHost lk.salyk.kg:30040 [14:18:43]ConnectInit lk.salyk.kg [14:18:43]written 0, free lines is 4095 [14:18:43]Connected sock=10 [14:18:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 44 C5 04 01 AD CA 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 32 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 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 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 42 FA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 31 13 03 00 35 04 06 00 1B 2C 8F A9 82 BB 0D 64 1A C3 9A 99 A5 8A [14:18:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F8 DA 47 00 C8 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 31 13 03 00 F4 03 04 00 EB A5 1C 67 B6 04 01 00 00 2F C8 5B F1 91 5B 62 AD [14:18:43]CommunicateWithHost err = 0 [14:18:43]CheckOFDResponse [14:18:43]1017 (14) - 77093643461234 [14:18:43]1041 (16) - 0000000000871756 [14:18:43]1040 (4) - 201521 [14:18:43]1012 (4) - 26.10.2024 08:18 [14:18:43]1206 (1) - 0 [14:18:43]OFD Sender: Remove packet 201521 [14:18:43]ProducePacketName [14:18:43]name=ofd_packets/00201521 [14:18:43]NVStorageDeleteData [14:18:43]Write to MH i2c: 01 00 00 05 1D 22 [14:18:43]Write i2c OK [14:18:43]MH_I2C_Read... [14:18:43]Read from MH i2c: 01 [14:18:43]MH_I2C_Read... [14:18:43]Read from MH i2c: 01 07 00 [14:18:43]MH_I2C_Read... [14:18:43]Read from MH i2c: 01 07 00 05 1D 00 00 00 00 00 91 0C C6 [14:18:43]RasterBufferAndPrint [14:18:43]line [14:18:43]line [14:18:43]line [14:18:43]line [14:18:43]line [14:18:43]written 0, free lines is 3221 [14:18:43]MH_Cut [14:18:43]Write to MH i2c: D1 01 00 0C 1D 01 FB [14:18:43]Write i2c OK [14:18:43]MH_I2C_Read... [14:18:43]Read from MH i2c: D1 [14:18:43]MH_I2C_Read... [14:18:43]Read from MH i2c: D1 01 00 [14:18:43]MH_I2C_Read... [14:18:43]Read from MH i2c: D1 01 00 0C 1D 00 FA [14:18:43]Write to MH i2c: 01 00 00 0D 1D 2A [14:18:43]Write i2c OK [14:18:43]MH_I2C_Read... [14:18:44]OFD Sender: No OFD packet to send [14:18:44]*** Cut start [14:18:44]*** Purtial cut [14:18:44]*** CUTSNS_PIN = 0 [14:18:44]*** Stage 1: CUTSNS_PIN = 1 [14:18:46]Read from MH i2c: 01 [14:18:46]MH_I2C_Read... [14:18:46]*** Stop cut motor [14:18:46]*** Cut end [14:18:46]Read from MH i2c: 01 07 00 [14:18:46]MH_I2C_Read... [14:18:46]Read from MH i2c: 01 07 00 0D 1D 00 00 00 00 00 FF 0F 3F [14:18:46]process_action close_receipt done [14:18:46]requested_data is exist [14:18:46]produce_requested_data [14:18:46]requested_item fm.sn is exist - process it [14:18:46]wFMCommunicate request_size=4 [14:18:46]MH_SAM_APDU [14:18:46]CAPDU: 80 11 00 00 [14:18:46]Write to MH i2c: E2 08 00 0E 1D 80 11 00 00 00 00 00 00 A5 [14:18:46]Write i2c OK [14:18:46]MH_I2C_Read... [14:18:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:46]Read from MH i2c: E2 [14:18:46]MH_I2C_Read... [14:18:46]Read from MH i2c: E2 17 00 [14:18:46]MH_I2C_Read... [14:18:46]Read from MH i2c: E2 17 00 0E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FA [14:18:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:18:46]wFMCommunicate OK [14:18:46]requested_item fd.num is exist - process it [14:18:46]SAM_PROTO_GetFieldsCounters [14:18:46]wFMCommunicate request_size=4 [14:18:46]MH_SAM_APDU [14:18:46]CAPDU: 80 13 00 00 [14:18:46]Write to MH i2c: E2 08 00 0F 1D 80 13 00 00 00 00 00 00 A8 [14:18:46]Write i2c OK [14:18:46]MH_I2C_Read... [14:18:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:46]Read from MH i2c: E2 [14:18:46]MH_I2C_Read... [14:18:46]Read from MH i2c: E2 62 00 [14:18:46]MH_I2C_Read... [14:18:46]Read from MH i2c: E2 62 00 0F 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 31 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 8D [14:18:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 31 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:18:46]wFMCommunicate OK [14:18:46]SAM_PROTO_GetFieldsCounters done [14:18:46]requested_item shift.num is exist - process it [14:18:46]requested_item shift.opened is exist - process it [14:18:46]req_shift_opened [14:18:46]FM_GetShiftState [14:18:46]SAM_PROTO_GetShiftState [14:18:46]wFMCommunicate request_size=4 [14:18:46]MH_SAM_APDU [14:18:46]CAPDU: 80 13 01 00 [14:18:46]Write to MH i2c: E2 08 00 10 1D 80 13 01 00 00 00 00 00 AA [14:18:46]Write i2c OK [14:18:46]MH_I2C_Read... [14:18:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:47]Read from MH i2c: E2 [14:18:47]MH_I2C_Read... [14:18:47]Read from MH i2c: E2 0E 00 [14:18:47]MH_I2C_Read... [14:18:47]Read from MH i2c: E2 0E 00 10 1D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 B9 [14:18:47]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:18:47]wFMCommunicate OK [14:18:47]SAM_PROTO_GetShiftState done [14:18:47]FM_GetShiftState done [14:18:47]req_shift_opened done [14:18:47]requested_item shift.open_date is exist - process it [14:18:47]req_shift_open_date [14:18:47]req_shift_open_date done [14:18:47]produce_requested_data done [14:18:47]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201521,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:18:47]process_action_free close_receipt [14:18:47]json_value_free [14:18:47]json_value_free done [14:18:47]process_json_proto returns [14:18:47]Send response to host [14:18:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201521,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:18:47]free response buf [14:18:47]execute_script done [14:18:47]execute_script returns [14:18:47]free content buf [14:18:47]Sock 9.Close socket [14:18:47]Sock 9.Thread stoped [14:18:49]OFD Sender: No OFD packet to send [14:18:54]OFD Sender: No OFD packet to send [14:18:57]accept exits with 8 [14:18:57]New connection [14:18:57]New thread 3066690916 created [14:18:57]Thread 3066834276 joined [14:18:57]Waiting for new connection... [14:18:57] Sock 8.Parse request [14:18:57]Sock 8.Check first char [14:18:57]Sock 8.First char is OK [14:18:57]request: POST /json_proto HTTP/1.0 [14:18:57]Method: POST [14:18:57]URL: /json_proto [14:18:57]Method is POST - this is cgi request [14:18:57]url: /json_proto [14:18:57]query_string will be loaded in cgi processing [14:18:57]execute_cgi json_proto POST (null) [14:18:57]execute_cgi path=json_proto method=POST [14:18:57]POST find Content-Length [14:18:57]Host: 172.17.63.195:8080 [14:18:57]Content-Length: 674 [14:18:57]Content-Type: application/json [14:18:57] [14:18:57]POST finish read [14:18:57]Found Content-Length = 674 [14:18:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [14:18:57]execute_script... [14:18:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [14:18:57]POST & json_proto [14:18:57]process_json_proto [14:18:57]json parsed OK: [14:18:57]protocol is kg_v1.0 [14:18:57]action value=close_receipt [14:18:57]process_action close_receipt [14:18:57]cmd_close_receipt [14:18:57]MH_GetDate [14:18:57]Write to MH i2c: F0 00 00 11 1D 1D [14:18:57]Write i2c OK [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: F0 [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: F0 09 00 [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: F0 09 00 11 1D 00 52 FA 1C 67 68 46 19 67 23 [14:18:57]GetLastDocTimeStamp 1729952322 [14:18:57]current date 1729952338 [14:18:57]FM_GetShiftState [14:18:57]SAM_PROTO_GetShiftState [14:18:57]wFMCommunicate request_size=4 [14:18:57]MH_SAM_APDU [14:18:57]CAPDU: 80 13 01 00 [14:18:57]Write to MH i2c: E2 08 00 12 1D 80 13 01 00 00 00 00 00 AC [14:18:57]Write i2c OK [14:18:57]MH_I2C_Read... [14:18:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:57]Read from MH i2c: E2 [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: E2 0E 00 [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: E2 0E 00 12 1D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 BB [14:18:57]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:18:57]wFMCommunicate OK [14:18:57]SAM_PROTO_GetShiftState done [14:18:57]FM_GetShiftState done [14:18:57]opened in 1729900879 [14:18:57]opened+sec_in_day 1729987279 [14:18:57]quantity*price = 50063 [14:18:57]sum+1 = 50064 [14:18:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 284 26.10.2024 14:18 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201522 ФПД: 89432774652118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T141858&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201522&fm=89432774652118&tin=02508201610067®Number=0000000000091777&sum=50000 [14:18:58]StoreToDocumentArchive [14:18:58]shift 543 fd 201522 [14:18:58]save to /storage/0543/doc_00201522 [14:18:58]save last doc name /storage/0543/doc_00201522 to /storage/kkm_last_doc_name [14:18:58]save OK [14:18:58]Clear old archive folders... [14:18:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:18:58]tlvbuf is 01F45A00 [14:18:58]SAM_PROTO_ClearQueue [14:18:58]wFMCommunicate request_size=4 [14:18:58]MH_SAM_APDU [14:18:58]CAPDU: 80 09 00 00 [14:18:58]Write to MH i2c: E2 08 00 1F 1D 80 09 00 00 00 00 00 00 AE [14:18:58]Write i2c OK [14:18:58]MH_I2C_Read... [14:18:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:58]Read from MH i2c: E2 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: E2 03 00 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: E2 03 00 1F 1D 00 90 00 B0 [14:18:58]RAPDU: 90 00 [14:18:58]wFMCommunicate OK [14:18:58]SAM_PROTO_ClearQueue done [14:18:58]KKMCreateOFDPacket [14:18:58]OFDProtocolAddRootSTLVToBuf [14:18:58]FM_MakeSignedData [14:18:58]FM_MakeSignedData [14:18:58]SAM_PROTO_SignData [14:18:58]wFMCommunicate request_size=4 [14:18:58]MH_SAM_APDU [14:18:58]CAPDU: 80 0D 01 02 [14:18:58]Write to MH i2c: E2 08 00 20 1D 80 0D 01 02 00 00 00 00 B6 [14:18:58]Write i2c OK [14:18:58]MH_I2C_Read... [14:18:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:58]Read from MH i2c: E2 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: E2 03 00 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: E2 03 00 20 1D 00 90 00 B1 [14:18:58]RAPDU: 90 00 [14:18:58]wFMCommunicate OK [14:18:58]wFMCommunicate request_size=255 [14:18:58]MH_SAM_APDU [14:18:58]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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 1C 01 00 00 F4 03 04 00 52 FA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 32 13 03 00 35 04 06 00 51 56 B0 C3 [14:18:58]Write to MH i2c: E2 02 01 21 1D 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 1C 01 00 00 F4 03 04 00 52 FA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 32 13 03 00 35 04 06 00 51 56 B0 C3 00 00 37 [14:18:58]Write i2c OK [14:18:58]MH_I2C_Read... [14:18:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:58]Read from MH i2c: E2 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: E2 03 00 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: E2 03 00 21 1D 00 90 00 B2 [14:18:58]RAPDU: 90 00 [14:18:58]wFMCommunicate OK [14:18:58]wFMCommunicate request_size=7 [14:18:58]MH_SAM_APDU [14:18:58]CAPDU: 80 0D 02 02 02 B0 D6 [14:18:58]Write to MH i2c: E2 0A 00 22 1D 80 0D 02 02 02 00 B0 D6 00 00 43 [14:18:58]Write i2c OK [14:18:58]MH_I2C_Read... [14:18:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:58]Read from MH i2c: E2 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: E2 03 00 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: E2 03 00 22 1D 00 90 00 B3 [14:18:58]RAPDU: 90 00 [14:18:58]wFMCommunicate OK [14:18:58]wFMCommunicate request_size=4 [14:18:58]MH_SAM_APDU [14:18:58]CAPDU: 80 0D 03 02 [14:18:58]Write to MH i2c: E2 08 00 23 1D 80 0D 03 02 00 00 00 00 BB [14:18:58]Write i2c OK [14:18:58]MH_I2C_Read... [14:18:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:58]Read from MH i2c: E2 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: E2 0B 00 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: E2 0B 00 23 1D 00 74 87 78 6A DD 44 44 9E 90 00 9C [14:18:58]RAPDU: 74 87 78 6A DD 44 44 9E 90 00 [14:18:58]wFMCommunicate OK [14:18:58]SAM_PROTO_SignData done [14:18:58]FM_MakeSignedData done [14:18:58]CreateOFDProtocolMessage [14:18:58]wFMCommunicate request_size=4 [14:18:58]MH_SAM_APDU [14:18:58]CAPDU: 80 11 00 00 [14:18:58]Write to MH i2c: E2 08 00 24 1D 80 11 00 00 00 00 00 00 BB [14:18:58]Write i2c OK [14:18:58]MH_I2C_Read... [14:18:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:58]Read from MH i2c: E2 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: E2 17 00 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: E2 17 00 24 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 10 [14:18:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:18:58]wFMCommunicate OK [14:18:58]CreateOFDProtocolMessage done [14:18:58]OFDSenderStorePacket 201522 [14:18:58]StoreOFDPacket docnum=201522 [14:18:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 5A A6 04 01 8E 33 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 1C 01 00 00 F4 03 04 00 52 FA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 32 13 03 00 35 04 06 00 51 56 B0 C3 B0 D6 74 87 78 6A DD 44 44 9E [14:18:58]CheckFolder [14:18:58]dirname=/storage/ofd_packets [14:18:58]CheckFolder done [14:18:58]ProducePacketName [14:18:58]name=ofd_packets/00201522 [14:18:58]NVStorageSaveData ofd_packets/00201522 [14:18:58]File name is /storage/ofd_packets/00201522 [14:18:58]Write 298 bytes [14:18:58]NVStorageSaveData done [14:18:58]OFDSenderStorePacket done [14:18:58]KKMCreateOFDPacket done [14:18:58]NVStorageSaveData kkm_last_timestamp [14:18:58]File name is /storage/kkm_last_timestamp [14:18:58]Write 4 bytes [14:18:58]NVStorageSaveData done [14:18:58]ExternCall_PrintAddStr [14:18:58]wPrintStart [14:18:58]Write to MH i2c: 01 00 00 25 1D 42 [14:18:58]Write i2c OK [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: 01 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: 01 07 00 [14:18:58]MH_I2C_Read... [14:18:58]Read from MH i2c: 01 07 00 25 1D 00 00 00 00 00 FF 0F 57 [14:18:58]RasterBufferAndPrint [14:18:58]line Счет N : (1)449273 [14:18:58]line ИНН: 02508201610067 [14:18:58]line Контрольно-Кассовый Чек [14:18:58]line ПРОДАЖА [14:18:58]line ТРК (МРК, ГНК) : 21 [14:18:58]line Товар: 2710194210 [14:18:58]line ДТ-К-2 [14:18:58]line 6.570 * 76.20 [14:18:58]line = 500.63 [14:18:58]line НДС 12% НСП 1% [14:18:58]line > о реализуемом товаре [14:18:58]line ОКРУГЛЕНИЕ: -0.63 [14:18:58]line ИТОГО: 500.00 [14:18:58]line Внесено: 500.00 [14:18:58]line СДАЧА: 0.00 [14:18:58]line НСП 1% : 4.43 [14:18:58]line НДС 12% : 53.16 [14:18:58]line Наличными: 500.00 [14:18:58]line Безнал.: 0.00 [14:18:58]line Место: АЗС № 171 "Партнер Нефть" [14:18:58]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:18:58]line СНО: Общий режим [14:18:58]line Чек 284 26.10.2024 14:18 [14:18:58]line Смена: 543 ФФД: 1.0 [14:18:58]line ЗНМ: 0300000109 [14:18:58]line РНМ: 0000000000091777 [14:18:58]line Версия ККМ: 001 [14:18:58]line ФМ: 0000000000871756 [14:18:58]line ФД: 201522 [14:18:58]line ФПД: 89432774652118 [14:18:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T141858&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201522&fm=89432774652118&tin=02508201610067®Number=0000000000091777&sum=50000 [14:18:59]OFD Sender: Processing packet 201522 [packets to send 112, broken 111] [14:18:59]ProducePacketName [14:18:59]name=ofd_packets/00201522 [14:18:59]OFD Sender: To server: pG, [14:18:59]CommunicateWithHost lk.salyk.kg:30040 [14:18:59]ConnectInit lk.salyk.kg [14:18:59]written 0, free lines is 4095 [14:18:59]Connected sock=10 [14:18:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 5A A6 04 01 8E 33 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 1C 01 00 00 F4 03 04 00 52 FA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 32 13 03 00 35 04 06 00 51 56 B0 C3 B0 D6 74 87 78 6A DD 44 44 9E [14:18:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 77 50 47 00 24 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 32 13 03 00 F4 03 04 00 FB A5 1C 67 B6 04 01 00 00 EB 9B C6 22 59 B4 6C EE [14:18:59]CommunicateWithHost err = 0 [14:18:59]CheckOFDResponse [14:18:59]1017 (14) - 77093643461234 [14:18:59]1041 (16) - 0000000000871756 [14:18:59]1040 (4) - 201522 [14:18:59]1012 (4) - 26.10.2024 08:19 [14:18:59]1206 (1) - 0 [14:18:59]OFD Sender: Remove packet 201522 [14:18:59]ProducePacketName [14:18:59]name=ofd_packets/00201522 [14:18:59]NVStorageDeleteData [14:18:59]Write to MH i2c: 01 00 00 50 1D 6D [14:18:59]Write i2c OK [14:18:59]MH_I2C_Read... [14:18:59]Read from MH i2c: 01 [14:18:59]MH_I2C_Read... [14:18:59]Read from MH i2c: 01 07 00 [14:18:59]MH_I2C_Read... [14:18:59]Read from MH i2c: 01 07 00 50 1D 00 00 00 00 00 92 0C 12 [14:18:59]RasterBufferAndPrint [14:18:59]line [14:18:59]line [14:18:59]line [14:18:59]line [14:18:59]line [14:18:59]written 0, free lines is 3222 [14:18:59]MH_Cut [14:18:59]Write to MH i2c: D1 01 00 57 1D 01 46 [14:18:59]Write i2c OK [14:18:59]MH_I2C_Read... [14:18:59]Read from MH i2c: D1 [14:18:59]MH_I2C_Read... [14:18:59]Read from MH i2c: D1 01 00 [14:18:59]MH_I2C_Read... [14:18:59]Read from MH i2c: D1 01 00 57 1D 00 45 [14:18:59]Write to MH i2c: 01 00 00 58 1D 75 [14:18:59]Write i2c OK [14:18:59]MH_I2C_Read... [14:18:59]OFD Sender: No OFD packet to send [14:19:00]*** Cut start [14:19:00]*** Purtial cut [14:19:00]*** Stage 1: CUTSNS_PIN = 1 [14:19:00]Read from MH i2c: 01 [14:19:00]MH_I2C_Read... [14:19:00]*** Stop cut motor [14:19:00]*** Cut end [14:19:00]Read from MH i2c: 01 07 00 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: 01 07 00 58 1D 00 00 00 00 00 FF 0F 8A [14:19:00]process_action close_receipt done [14:19:00]requested_data is exist [14:19:00]produce_requested_data [14:19:00]requested_item fm.sn is exist - process it [14:19:00]wFMCommunicate request_size=4 [14:19:00]MH_SAM_APDU [14:19:00]CAPDU: 80 11 00 00 [14:19:00]Write to MH i2c: E2 08 00 59 1D 80 11 00 00 00 00 00 00 F0 [14:19:00]Write i2c OK [14:19:00]MH_I2C_Read... [14:19:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:00]Read from MH i2c: E2 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: E2 17 00 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: E2 17 00 59 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 45 [14:19:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:19:00]wFMCommunicate OK [14:19:00]requested_item fd.num is exist - process it [14:19:00]SAM_PROTO_GetFieldsCounters [14:19:00]wFMCommunicate request_size=4 [14:19:00]MH_SAM_APDU [14:19:00]CAPDU: 80 13 00 00 [14:19:00]Write to MH i2c: E2 08 00 5A 1D 80 13 00 00 00 00 00 00 F3 [14:19:00]Write i2c OK [14:19:00]MH_I2C_Read... [14:19:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:00]Read from MH i2c: E2 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: E2 62 00 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: E2 62 00 5A 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 32 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 DC [14:19:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 32 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:19:00]wFMCommunicate OK [14:19:00]SAM_PROTO_GetFieldsCounters done [14:19:00]requested_item shift.num is exist - process it [14:19:00]requested_item shift.opened is exist - process it [14:19:00]req_shift_opened [14:19:00]FM_GetShiftState [14:19:00]SAM_PROTO_GetShiftState [14:19:00]wFMCommunicate request_size=4 [14:19:00]MH_SAM_APDU [14:19:00]CAPDU: 80 13 01 00 [14:19:00]Write to MH i2c: E2 08 00 5B 1D 80 13 01 00 00 00 00 00 F5 [14:19:00]Write i2c OK [14:19:00]MH_I2C_Read... [14:19:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:00]Read from MH i2c: E2 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: E2 0E 00 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: E2 0E 00 5B 1D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 04 [14:19:00]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:19:00]wFMCommunicate OK [14:19:00]SAM_PROTO_GetShiftState done [14:19:00]FM_GetShiftState done [14:19:00]req_shift_opened done [14:19:00]requested_item shift.open_date is exist - process it [14:19:00]req_shift_open_date [14:19:00]req_shift_open_date done [14:19:00]produce_requested_data done [14:19:00]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201522,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:19:00]process_action_free close_receipt [14:19:00]json_value_free [14:19:00]json_value_free done [14:19:00]process_json_proto returns [14:19:00]Send response to host [14:19:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201522,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:19:00]free response buf [14:19:00]execute_script done [14:19:00]execute_script returns [14:19:00]free content buf [14:19:00]Sock 8.Close socket [14:19:00]Sock 8.Thread stoped [14:19:04]OFD Sender: No OFD packet to send [14:19:09]OFD Sender: No OFD packet to send [14:19:14]OFD Sender: No OFD packet to send [14:19:19]OFD Sender: No OFD packet to send [14:19:24]OFD Sender: No OFD packet to send [14:19:29]OFD Sender: No OFD packet to send [14:19:34]OFD Sender: No OFD packet to send [14:19:40]OFD Sender: No OFD packet to send [14:19:45]OFD Sender: No OFD packet to send [14:19:50]OFD Sender: No OFD packet to send [14:19:55]OFD Sender: No OFD packet to send [14:20:00]OFD Sender: No OFD packet to send [14:20:01]accept exits with 9 [14:20:01]New connection [14:20:01]New thread 3066834276 created [14:20:01]Thread 3066690916 joined [14:20:01]Waiting for new connection... [14:20:01] Sock 9.Parse request [14:20:01]Sock 9.Check first char [14:20:01]Sock 9.First char is OK [14:20:01]request: POST /json_proto HTTP/1.0 [14:20:01]Method: POST [14:20:01]URL: /json_proto [14:20:01]Method is POST - this is cgi request [14:20:01]url: /json_proto [14:20:01]query_string will be loaded in cgi processing [14:20:01]execute_cgi json_proto POST (null) [14:20:01]execute_cgi path=json_proto method=POST [14:20:01]POST find Content-Length [14:20:01]Host: 172.17.63.195:8080 [14:20:01]Content-Length: 677 [14:20:01]Content-Type: application/json [14:20:01] [14:20:01]POST finish read [14:20:01]Found Content-Length = 677 [14:20:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [14:20:01]execute_script... [14: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)449275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [14:20:01]POST & json_proto [14:20:01]process_json_proto [14:20:01]json parsed OK: [14:20:01]protocol is kg_v1.0 [14:20:01]action value=close_receipt [14:20:01]process_action close_receipt [14:20:01]cmd_close_receipt [14:20:01]MH_GetDate [14:20:01]Write to MH i2c: F0 00 00 5C 1D 68 [14:20:01]Write i2c OK [14:20:01]MH_I2C_Read... [14:20:01]Read from MH i2c: F0 [14:20:01]MH_I2C_Read... [14:20:01]Read from MH i2c: F0 09 00 [14:20:01]MH_I2C_Read... [14:20:01]Read from MH i2c: F0 09 00 5C 1D 00 92 FA 1C 67 68 46 19 67 AE [14:20:01]GetLastDocTimeStamp 1729952338 [14:20:01]current date 1729952402 [14:20:01]FM_GetShiftState [14:20:01]SAM_PROTO_GetShiftState [14:20:01]wFMCommunicate request_size=4 [14:20:01]MH_SAM_APDU [14:20:01]CAPDU: 80 13 01 00 [14:20:01]Write to MH i2c: E2 08 00 5D 1D 80 13 01 00 00 00 00 00 F7 [14:20:01]Write i2c OK [14:20:01]MH_I2C_Read... [14:20:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:01]Read from MH i2c: E2 [14:20:01]MH_I2C_Read... [14:20:01]Read from MH i2c: E2 0E 00 [14:20:01]MH_I2C_Read... [14:20:01]Read from MH i2c: E2 0E 00 5D 1D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 06 [14:20:01]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:20:01]wFMCommunicate OK [14:20:01]SAM_PROTO_GetShiftState done [14:20:01]FM_GetShiftState done [14:20:01]opened in 1729900879 [14:20:01]opened+sec_in_day 1729987279 [14:20:01]quantity*price = 40006 [14:20:01]sum+1 = 40007 [14:20:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 285 26.10.2024 14:20 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201523 ФПД: 274721506953151 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142002&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201523&fm=274721506953151&tin=02508201610067®Number=0000000000091777&sum=40000 [14:20:02]StoreToDocumentArchive [14:20:02]shift 543 fd 201523 [14:20:02]save to /storage/0543/doc_00201523 [14:20:02]save last doc name /storage/0543/doc_00201523 to /storage/kkm_last_doc_name [14:20:02]save OK [14:20:02]Clear old archive folders... [14:20:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:20:02]tlvbuf is 01FD9A00 [14:20:02]SAM_PROTO_ClearQueue [14:20:02]wFMCommunicate request_size=4 [14:20:02]MH_SAM_APDU [14:20:02]CAPDU: 80 09 00 00 [14:20:02]Write to MH i2c: E2 08 00 6A 1D 80 09 00 00 00 00 00 00 F9 [14:20:02]Write i2c OK [14:20:02]MH_I2C_Read... [14:20:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:20:02]Read from MH i2c: E2 [14:20:02]MH_I2C_Read... [14:20:02]Read from MH i2c: E2 03 00 [14:20:02]MH_I2C_Read... [14:20:02]Read from MH i2c: E2 03 00 6A 1D 00 90 00 FB [14:20:02]RAPDU: 90 00 [14:20:02]wFMCommunicate OK [14:20:02]SAM_PROTO_ClearQueue done [14:20:02]KKMCreateOFDPacket [14:20:02]OFDProtocolAddRootSTLVToBuf [14:20:02]FM_MakeSignedData [14:20:02]FM_MakeSignedData [14:20:02]SAM_PROTO_SignData [14:20:02]wFMCommunicate request_size=4 [14:20:02]MH_SAM_APDU [14:20:02]CAPDU: 80 0D 01 02 [14:20:02]Write to MH i2c: E2 08 00 6B 1D 80 0D 01 02 00 00 00 00 01 [14:20:02]Write i2c OK [14:20:02]MH_I2C_Read... [14:20:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:20:02]Read from MH i2c: E2 [14:20:02]MH_I2C_Read... [14:20:02]Read from MH i2c: E2 03 00 [14:20:02]MH_I2C_Read... [14:20:02]Read from MH i2c: E2 03 00 6B 1D 00 90 00 FC [14:20:02]RAPDU: 90 00 [14:20:02]wFMCommunicate OK [14:20:02]wFMCommunicate request_size=255 [14:20:02]MH_SAM_APDU [14: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 32 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 1D 01 00 00 F4 03 04 00 92 FA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 33 13 03 00 35 04 06 00 F9 [14:20:02]Write to MH i2c: E2 02 01 6C 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 32 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 1D 01 00 00 F4 03 04 00 92 FA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 33 13 03 00 35 04 06 00 F9 00 00 F4 [14:20:02]Write i2c OK [14:20:02]MH_I2C_Read... [14:20:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:02]Read from MH i2c: E2 [14:20:02]MH_I2C_Read... [14:20:02]Read from MH i2c: E2 03 00 [14:20:02]MH_I2C_Read... [14:20:02]Read from MH i2c: E2 03 00 6C 1D 00 90 00 FD [14:20:02]RAPDU: 90 00 [14:20:02]wFMCommunicate OK [14:20:02]wFMCommunicate request_size=10 [14:20:02]MH_SAM_APDU [14:20:02]CAPDU: 80 0D 02 02 05 DB 95 D5 87 BF [14:20:02]Write to MH i2c: E2 0D 00 6D 1D 80 0D 02 02 05 00 DB 95 D5 87 BF 00 00 99 [14:20:02]Write i2c OK [14:20:02]MH_I2C_Read... [14:20:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:02]Read from MH i2c: E2 [14:20:02]MH_I2C_Read... [14:20:02]Read from MH i2c: E2 03 00 [14:20:02]MH_I2C_Read... [14:20:02]Read from MH i2c: E2 03 00 6D 1D 00 90 00 FE [14:20:02]RAPDU: 90 00 [14:20:02]wFMCommunicate OK [14:20:02]wFMCommunicate request_size=4 [14:20:02]MH_SAM_APDU [14:20:02]CAPDU: 80 0D 03 02 [14:20:02]Write to MH i2c: E2 08 00 6E 1D 80 0D 03 02 00 00 00 00 06 [14:20:02]Write i2c OK [14:20:02]MH_I2C_Read... [14:20:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:20:02]Read from MH i2c: E2 [14:20:02]MH_I2C_Read... [14:20:02]Read from MH i2c: E2 0B 00 [14:20:02]MH_I2C_Read... [14:20:02]Read from MH i2c: E2 0B 00 6E 1D 00 3E 7C 8A 35 43 C3 CC AC 90 00 FE [14:20:02]RAPDU: 3E 7C 8A 35 43 C3 CC AC 90 00 [14:20:02]wFMCommunicate OK [14:20:02]SAM_PROTO_SignData done [14:20:02]FM_MakeSignedData done [14:20:02]CreateOFDProtocolMessage [14:20:02]wFMCommunicate request_size=4 [14:20:02]MH_SAM_APDU [14:20:02]CAPDU: 80 11 00 00 [14:20:02]Write to MH i2c: E2 08 00 6F 1D 80 11 00 00 00 00 00 00 06 [14:20:02]Write i2c OK [14:20:02]MH_I2C_Read... [14:20:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:02]Read from MH i2c: E2 [14:20:02]MH_I2C_Read... [14:20:02]Read from MH i2c: E2 17 00 [14:20:02]MH_I2C_Read... [14:20:02]Read from MH i2c: E2 17 00 6F 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5B [14:20:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:20:02]wFMCommunicate OK [14:20:02]CreateOFDProtocolMessage done [14:20:02]OFDSenderStorePacket 201523 [14:20:02]StoreOFDPacket docnum=201523 [14:20:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B6 10 07 01 9C FC 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 32 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 1D 01 00 00 F4 03 04 00 92 FA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 33 13 03 00 35 04 06 00 F9 DB 95 D5 87 BF 3E 7C 8A 35 43 C3 CC AC [14:20:02]CheckFolder [14:20:02]dirname=/storage/ofd_packets [14:20:02]CheckFolder done [14:20:02]ProducePacketName [14:20:02]name=ofd_packets/00201523 [14:20:02]NVStorageSaveData ofd_packets/00201523 [14:20:02]File name is /storage/ofd_packets/00201523 [14:20:02]Write 301 bytes [14:20:02]NVStorageSaveData done [14:20:02]OFDSenderStorePacket done [14:20:02]KKMCreateOFDPacket done [14:20:02]NVStorageSaveData kkm_last_timestamp [14:20:02]File name is /storage/kkm_last_timestamp [14:20:02]Write 4 bytes [14:20:02]NVStorageSaveData done [14:20:02]ExternCall_PrintAddStr [14:20:02]wPrintStart [14:20:02]Write to MH i2c: 01 00 00 70 1D 8D [14:20:02]Write i2c OK [14:20:02]MH_I2C_Read... [14:20:02]Read from MH i2c: 01 [14:20:02]MH_I2C_Read... [14:20:02]Read from MH i2c: 01 07 00 [14:20:02]MH_I2C_Read... [14:20:02]Read from MH i2c: 01 07 00 70 1D 00 00 00 00 00 FF 0F A2 [14:20:02]RasterBufferAndPrint [14:20:02]line Счет N : (1)449275 [14:20:02]line ИНН: 02508201610067 [14:20:02]line Контрольно-Кассовый Чек [14:20:02]line ПРОДАЖА [14:20:02]line ТРК (МРК, ГНК) : 31 [14:20:02]line Товар: 2710124130 [14:20:02]line Аи-92-К-2 [14:20:02]line 5.980 * 66.90 [14:20:02]line = 400.06 [14:20:02]line НДС 12% НСП 1% [14:20:02]line > о реализуемом товаре [14:20:02]line ОКРУГЛЕНИЕ: -0.06 [14:20:02]line ИТОГО: 400.00 [14:20:02]line Внесено: 400.00 [14:20:02]line СДАЧА: 0.00 [14:20:02]line НСП 1% : 3.54 [14:20:02]line НДС 12% : 42.48 [14:20:02]line Наличными: 400.00 [14:20:02]line Безнал.: 0.00 [14:20:02]line Место: АЗС № 171 "Партнер Нефть" [14:20:02]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:20:02]line СНО: Общий режим [14:20:02]line Чек 285 26.10.2024 14:20 [14:20:02]line Смена: 543 ФФД: 1.0 [14:20:02]line ЗНМ: 0300000109 [14:20:02]line РНМ: 0000000000091777 [14:20:02]line Версия ККМ: 001 [14:20:02]line ФМ: 0000000000871756 [14:20:02]line ФД: 201523 [14:20:02]line ФПД: 274721506953151 [14:20:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142002&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201523&fm=274721506953151&tin=02508201610067®Number=0000000000091777&sum=40000 [14:20:03]OFD Sender: Processing packet 201523 [packets to send 112, broken 111] [14:20:03]ProducePacketName [14:20:03]name=ofd_packets/00201523 [14:20:03]OFD Sender: To server: pG, [14:20:03]CommunicateWithHost lk.salyk.kg:30040 [14:20:03]ConnectInit lk.salyk.kg [14:20:03]written 0, free lines is 4095 [14:20:03]Connected sock=10 [14:20:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B6 10 07 01 9C FC 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 32 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 1D 01 00 00 F4 03 04 00 92 FA 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 33 13 03 00 35 04 06 00 F9 DB 95 D5 87 BF 3E 7C 8A 35 43 C3 CC AC [14:20:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 37 EF 47 00 93 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 33 13 03 00 F4 03 04 00 3B A6 1C 67 B6 04 01 00 00 AD 0B B8 18 62 7A 21 51 [14:20:03]CommunicateWithHost err = 0 [14:20:03]CheckOFDResponse [14:20:03]1017 (14) - 77093643461234 [14:20:03]1041 (16) - 0000000000871756 [14:20:03]1040 (4) - 201523 [14:20:03]1012 (4) - 26.10.2024 08:20 [14:20:03]1206 (1) - 0 [14:20:03]OFD Sender: Remove packet 201523 [14:20:03]ProducePacketName [14:20:03]name=ofd_packets/00201523 [14:20:03]NVStorageDeleteData [14:20:03]Write to MH i2c: 01 00 00 9B 1D B8 [14:20:03]Write i2c OK [14:20:03]MH_I2C_Read... [14:20:03]Read from MH i2c: 01 [14:20:03]MH_I2C_Read... [14:20:03]Read from MH i2c: 01 07 00 [14:20:03]MH_I2C_Read... [14:20:03]Read from MH i2c: 01 07 00 9B 1D 00 00 00 00 00 95 0C 60 [14:20:03]RasterBufferAndPrint [14:20:03]line [14:20:03]line [14:20:03]line [14:20:03]line [14:20:03]line [14:20:03]written 0, free lines is 3225 [14:20:03]MH_Cut [14:20:03]Write to MH i2c: D1 01 00 A2 1D 01 91 [14:20:03]Write i2c OK [14:20:03]MH_I2C_Read... [14:20:03]Read from MH i2c: D1 [14:20:03]MH_I2C_Read... [14:20:03]Read from MH i2c: D1 01 00 [14:20:03]MH_I2C_Read... [14:20:03]Read from MH i2c: D1 01 00 A2 1D 00 90 [14:20:03]Write to MH i2c: 01 00 00 A3 1D C0 [14:20:03]Write i2c OK [14:20:03]MH_I2C_Read... [14:20:04]OFD Sender: No OFD packet to send [14:20:04]*** Cut start [14:20:04]*** Purtial cut [14:20:04]*** Stage 1: CUTSNS_PIN = 1 [14:20:04]Read from MH i2c: 01 [14:20:04]MH_I2C_Read... [14:20:04]*** Stop cut motor [14:20:04]*** Cut end [14:20:04]Read from MH i2c: 01 07 00 [14:20:04]MH_I2C_Read... [14:20:04]Read from MH i2c: 01 07 00 A3 1D 00 00 00 00 00 FF 0F D5 [14:20:04]process_action close_receipt done [14:20:04]requested_data is exist [14:20:04]produce_requested_data [14:20:04]requested_item fm.sn is exist - process it [14:20:04]wFMCommunicate request_size=4 [14:20:04]MH_SAM_APDU [14:20:04]CAPDU: 80 11 00 00 [14:20:04]Write to MH i2c: E2 08 00 A4 1D 80 11 00 00 00 00 00 00 3B [14:20:04]Write i2c OK [14:20:04]MH_I2C_Read... [14:20:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:04]Read from MH i2c: E2 [14:20:04]MH_I2C_Read... [14:20:04]Read from MH i2c: E2 17 00 [14:20:04]MH_I2C_Read... [14:20:04]Read from MH i2c: E2 17 00 A4 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 90 [14:20:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:20:04]wFMCommunicate OK [14:20:04]requested_item fd.num is exist - process it [14:20:04]SAM_PROTO_GetFieldsCounters [14:20:04]wFMCommunicate request_size=4 [14:20:04]MH_SAM_APDU [14:20:04]CAPDU: 80 13 00 00 [14:20:04]Write to MH i2c: E2 08 00 A5 1D 80 13 00 00 00 00 00 00 3E [14:20:04]Write i2c OK [14:20:04]MH_I2C_Read... [14:20:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:20:04]Read from MH i2c: E2 [14:20:04]MH_I2C_Read... [14:20:04]Read from MH i2c: E2 62 00 [14:20:04]MH_I2C_Read... [14:20:04]Read from MH i2c: E2 62 00 A5 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 33 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 2B [14:20:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 33 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:20:04]wFMCommunicate OK [14:20:04]SAM_PROTO_GetFieldsCounters done [14:20:04]requested_item shift.num is exist - process it [14:20:04]requested_item shift.opened is exist - process it [14:20:04]req_shift_opened [14:20:04]FM_GetShiftState [14:20:04]SAM_PROTO_GetShiftState [14:20:04]wFMCommunicate request_size=4 [14:20:04]MH_SAM_APDU [14:20:04]CAPDU: 80 13 01 00 [14:20:04]Write to MH i2c: E2 08 00 A6 1D 80 13 01 00 00 00 00 00 40 [14:20:04]Write i2c OK [14:20:04]MH_I2C_Read... [14:20:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:05]Read from MH i2c: E2 [14:20:05]MH_I2C_Read... [14:20:05]Read from MH i2c: E2 0E 00 [14:20:05]MH_I2C_Read... [14:20:05]Read from MH i2c: E2 0E 00 A6 1D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 4F [14:20:05]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:20:05]wFMCommunicate OK [14:20:05]SAM_PROTO_GetShiftState done [14:20:05]FM_GetShiftState done [14:20:05]req_shift_opened done [14:20:05]requested_item shift.open_date is exist - process it [14:20:05]req_shift_open_date [14:20:05]req_shift_open_date done [14:20:05]produce_requested_data done [14:20:05]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201523,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:20:05]process_action_free close_receipt [14:20:05]json_value_free [14:20:05]json_value_free done [14:20:05]process_json_proto returns [14:20:05]Send response to host [14:20:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201523,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:20:05]free response buf [14:20:05]execute_script done [14:20:05]execute_script returns [14:20:05]free content buf [14:20:05]Sock 9.Close socket [14:20:05]Sock 9.Thread stoped [14:20:09]OFD Sender: No OFD packet to send [14:20:14]OFD Sender: No OFD packet to send [14:20:19]OFD Sender: No OFD packet to send [14:20:24]OFD Sender: No OFD packet to send [14:20:29]OFD Sender: No OFD packet to send [14:20:34]OFD Sender: No OFD packet to send [14:20:39]OFD Sender: No OFD packet to send [14:20:44]OFD Sender: No OFD packet to send [14:20:49]OFD Sender: No OFD packet to send [14:20:54]OFD Sender: No OFD packet to send [14:20:59]OFD Sender: No OFD packet to send [14:21:04]OFD Sender: No OFD packet to send [14:21:09]OFD Sender: No OFD packet to send [14:21:14]OFD Sender: No OFD packet to send [14:21:19]OFD Sender: No OFD packet to send [14:21:24]OFD Sender: No OFD packet to send [14:21:29]OFD Sender: No OFD packet to send [14:21:34]OFD Sender: No OFD packet to send [14:21:39]OFD Sender: No OFD packet to send [14:21:44]OFD Sender: No OFD packet to send [14:21:49]OFD Sender: No OFD packet to send [14:21:54]OFD Sender: No OFD packet to send [14:21:59]OFD Sender: No OFD packet to send [14:22:04]OFD Sender: No OFD packet to send [14:22:09]OFD Sender: No OFD packet to send [14:22:14]OFD Sender: No OFD packet to send [14:22:14]accept exits with 8 [14:22:14]New connection [14:22:14]New thread 3066690916 created [14:22:14]Thread 3066834276 joined [14:22:14]Waiting for new connection... [14:22:14] Sock 8.Parse request [14:22:14]Sock 8.Check first char [14:22:14]Sock 8.First char is OK [14:22:14]request: POST /json_proto HTTP/1.0 [14:22:14]Method: POST [14:22:14]URL: /json_proto [14:22:14]Method is POST - this is cgi request [14:22:14]url: /json_proto [14:22:14]query_string will be loaded in cgi processing [14:22:14]execute_cgi json_proto POST (null) [14:22:14]execute_cgi path=json_proto method=POST [14:22:14]POST find Content-Length [14:22:14]Host: 172.17.63.195:8080 [14:22:14]Content-Length: 677 [14:22:14]Content-Type: application/json [14:22:14] [14:22:14]POST finish read [14:22:14]Found Content-Length = 677 [14:22:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [14:22:14]execute_script... [14:22: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)449274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [14:22:14]POST & json_proto [14:22:14]process_json_proto [14:22:14]json parsed OK: [14:22:14]protocol is kg_v1.0 [14:22:14]action value=close_receipt [14:22:14]process_action close_receipt [14:22:14]cmd_close_receipt [14:22:14]MH_GetDate [14:22:14]Write to MH i2c: F0 00 00 A7 1D B3 [14:22:14]Write i2c OK [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: F0 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: F0 09 00 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: F0 09 00 A7 1D 00 18 FB 1C 67 68 46 19 67 80 [14:22:14]GetLastDocTimeStamp 1729952402 [14:22:14]current date 1729952536 [14:22:14]FM_GetShiftState [14:22:14]SAM_PROTO_GetShiftState [14:22:14]wFMCommunicate request_size=4 [14:22:14]MH_SAM_APDU [14:22:14]CAPDU: 80 13 01 00 [14:22:14]Write to MH i2c: E2 08 00 A8 1D 80 13 01 00 00 00 00 00 42 [14:22:14]Write i2c OK [14:22:14]MH_I2C_Read... [14:22:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:14]Read from MH i2c: E2 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 0E 00 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 0E 00 A8 1D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 51 [14:22:14]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:22:14]wFMCommunicate OK [14:22:14]SAM_PROTO_GetShiftState done [14:22:14]FM_GetShiftState done [14:22:14]opened in 1729900879 [14:22:14]opened+sec_in_day 1729987279 [14:22:14]quantity*price = 40006 [14:22:14]sum+1 = 40007 [14:22:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 286 26.10.2024 14:22 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201524 ФПД: 82687396874443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142216&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201524&fm=82687396874443&tin=02508201610067®Number=0000000000091777&sum=40000 [14:22:16]StoreToDocumentArchive [14:22:16]shift 543 fd 201524 [14:22:16]save to /storage/0543/doc_00201524 [14:22:16]save last doc name /storage/0543/doc_00201524 to /storage/kkm_last_doc_name [14:22:16]save OK [14:22:16]Clear old archive folders... [14:22:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:22:16]tlvbuf is 01F44F30 [14:22:16]SAM_PROTO_ClearQueue [14:22:16]wFMCommunicate request_size=4 [14:22:16]MH_SAM_APDU [14:22:16]CAPDU: 80 09 00 00 [14:22:16]Write to MH i2c: E2 08 00 B5 1D 80 09 00 00 00 00 00 00 44 [14:22:16]Write i2c OK [14:22:16]MH_I2C_Read... [14:22:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:16]Read from MH i2c: E2 [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: E2 03 00 [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: E2 03 00 B5 1D 00 90 00 46 [14:22:16]RAPDU: 90 00 [14:22:16]wFMCommunicate OK [14:22:16]SAM_PROTO_ClearQueue done [14:22:16]KKMCreateOFDPacket [14:22:16]OFDProtocolAddRootSTLVToBuf [14:22:16]FM_MakeSignedData [14:22:16]FM_MakeSignedData [14:22:16]SAM_PROTO_SignData [14:22:16]wFMCommunicate request_size=4 [14:22:16]MH_SAM_APDU [14:22:16]CAPDU: 80 0D 01 02 [14:22:16]Write to MH i2c: E2 08 00 B6 1D 80 0D 01 02 00 00 00 00 4C [14:22:16]Write i2c OK [14:22:16]MH_I2C_Read... [14:22:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:16]Read from MH i2c: E2 [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: E2 03 00 [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: E2 03 00 B6 1D 00 90 00 47 [14:22:16]RAPDU: 90 00 [14:22:16]wFMCommunicate OK [14:22:16]wFMCommunicate request_size=255 [14:22:16]MH_SAM_APDU [14:22:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 1E 01 00 00 F4 03 04 00 18 FB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 34 13 03 00 35 04 06 00 4B [14:22:16]Write to MH i2c: E2 02 01 B7 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 32 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 1E 01 00 00 F4 03 04 00 18 FB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 34 13 03 00 35 04 06 00 4B 00 00 1A [14:22:16]Write i2c OK [14:22:16]MH_I2C_Read... [14:22:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:16]Read from MH i2c: E2 [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: E2 03 00 [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: E2 03 00 B7 1D 00 90 00 48 [14:22:16]RAPDU: 90 00 [14:22:16]wFMCommunicate OK [14:22:16]wFMCommunicate request_size=10 [14:22:16]MH_SAM_APDU [14:22:16]CAPDU: 80 0D 02 02 05 34 28 EB 08 CB [14:22:16]Write to MH i2c: E2 0D 00 B8 1D 80 0D 02 02 05 00 34 28 EB 08 CB 00 00 73 [14:22:16]Write i2c OK [14:22:16]MH_I2C_Read... [14:22:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:16]Read from MH i2c: E2 [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: E2 03 00 [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: E2 03 00 B8 1D 00 90 00 49 [14:22:16]RAPDU: 90 00 [14:22:16]wFMCommunicate OK [14:22:16]wFMCommunicate request_size=4 [14:22:16]MH_SAM_APDU [14:22:16]CAPDU: 80 0D 03 02 [14:22:16]Write to MH i2c: E2 08 00 B9 1D 80 0D 03 02 00 00 00 00 51 [14:22:16]Write i2c OK [14:22:16]MH_I2C_Read... [14:22:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:16]Read from MH i2c: E2 [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: E2 0B 00 [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: E2 0B 00 B9 1D 00 15 F5 06 33 C1 CA FD 85 90 00 A2 [14:22:16]RAPDU: 15 F5 06 33 C1 CA FD 85 90 00 [14:22:16]wFMCommunicate OK [14:22:16]SAM_PROTO_SignData done [14:22:16]FM_MakeSignedData done [14:22:16]CreateOFDProtocolMessage [14:22:16]wFMCommunicate request_size=4 [14:22:16]MH_SAM_APDU [14:22:16]CAPDU: 80 11 00 00 [14:22:16]Write to MH i2c: E2 08 00 BA 1D 80 11 00 00 00 00 00 00 51 [14:22:16]Write i2c OK [14:22:16]MH_I2C_Read... [14:22:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:16]Read from MH i2c: E2 [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: E2 17 00 [14:22:16]MH_I2C_Read... [14:22: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 38 37 31 37 35 36 90 00 A6 [14:22:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:22:16]wFMCommunicate OK [14:22:16]CreateOFDProtocolMessage done [14:22:16]OFDSenderStorePacket 201524 [14:22:16]StoreOFDPacket docnum=201524 [14:22:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 21 D7 07 01 EA 57 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 32 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 1E 01 00 00 F4 03 04 00 18 FB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 34 13 03 00 35 04 06 00 4B 34 28 EB 08 CB 15 F5 06 33 C1 CA FD 85 [14:22:16]CheckFolder [14:22:16]dirname=/storage/ofd_packets [14:22:16]CheckFolder done [14:22:16]ProducePacketName [14:22:16]name=ofd_packets/00201524 [14:22:16]NVStorageSaveData ofd_packets/00201524 [14:22:16]File name is /storage/ofd_packets/00201524 [14:22:16]Write 301 bytes [14:22:16]NVStorageSaveData done [14:22:16]OFDSenderStorePacket done [14:22:16]KKMCreateOFDPacket done [14:22:16]NVStorageSaveData kkm_last_timestamp [14:22:16]File name is /storage/kkm_last_timestamp [14:22:16]Write 4 bytes [14:22:16]NVStorageSaveData done [14:22:16]ExternCall_PrintAddStr [14:22:16]wPrintStart [14:22:16]Write to MH i2c: 01 00 00 BB 1D D8 [14:22:16]Write i2c OK [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: 01 [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: 01 07 00 [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: 01 07 00 BB 1D 00 00 00 00 00 FF 0F ED [14:22:16]RasterBufferAndPrint [14:22:16]line Счет N : (1)449274 [14:22:16]line ИНН: 02508201610067 [14:22:16]line Контрольно-Кассовый Чек [14:22:16]line ПРОДАЖА [14:22:16]line ТРК (МРК, ГНК) : 62 [14:22:16]line Товар: 2710124130 [14:22:16]line Аи-92-К-2 [14:22:16]line 5.980 * 66.90 [14:22:16]line = 400.06 [14:22:16]line НДС 12% НСП 1% [14:22:16]line > о реализуемом товаре [14:22:16]line ОКРУГЛЕНИЕ: -0.06 [14:22:16]line ИТОГО: 400.00 [14:22:16]line Внесено: 400.00 [14:22:16]line СДАЧА: 0.00 [14:22:16]line НСП 1% : 3.54 [14:22:16]line НДС 12% : 42.48 [14:22:16]line Наличными: 400.00 [14:22:16]line Безнал.: 0.00 [14:22:16]line Место: АЗС № 171 "Партнер Нефть" [14:22:16]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:22:16]line СНО: Общий режим [14:22:16]line Чек 286 26.10.2024 14:22 [14:22:16]line Смена: 543 ФФД: 1.0 [14:22:16]line ЗНМ: 0300000109 [14:22:16]line РНМ: 0000000000091777 [14:22:16]line Версия ККМ: 001 [14:22:16]line ФМ: 0000000000871756 [14:22:16]line ФД: 201524 [14:22:16]line ФПД: 82687396874443 [14:22:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142216&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201524&fm=82687396874443&tin=02508201610067®Number=0000000000091777&sum=40000 [14:22:16]OFD Sender: Processing packet 201524 [packets to send 112, broken 111] [14:22:16]ProducePacketName [14:22:16]name=ofd_packets/00201524 [14:22:16]OFD Sender: To server: pG, [14:22:16]CommunicateWithHost lk.salyk.kg:30040 [14:22:16]ConnectInit lk.salyk.kg [14:22:16]written 0, free lines is 4095 [14:22:17]Connected sock=10 [14:22:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 21 D7 07 01 EA 57 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 32 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 1E 01 00 00 F4 03 04 00 18 FB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 34 13 03 00 35 04 06 00 4B 34 28 EB 08 CB 15 F5 06 33 C1 CA FD 85 [14:22:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 78 90 47 00 C4 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 34 13 03 00 F4 03 04 00 C0 A6 1C 67 B6 04 01 00 00 46 F8 5C 6C 41 5C AD 65 [14:22:17]CommunicateWithHost err = 0 [14:22:17]CheckOFDResponse [14:22:17]1017 (14) - 77093643461234 [14:22:17]1041 (16) - 0000000000871756 [14:22:17]1040 (4) - 201524 [14:22:17]1012 (4) - 26.10.2024 08:22 [14:22:17]1206 (1) - 0 [14:22:17]OFD Sender: Remove packet 201524 [14:22:17]ProducePacketName [14:22:17]name=ofd_packets/00201524 [14:22:17]NVStorageDeleteData [14:22:17]Write to MH i2c: 01 00 00 E6 1D 03 [14:22:17]Write i2c OK [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: 01 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: 01 07 00 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: 01 07 00 E6 1D 00 00 00 00 00 8F 0C A5 [14:22:17]RasterBufferAndPrint [14:22:17]line [14:22:17]line [14:22:17]line [14:22:17]line [14:22:17]line [14:22:17]written 0, free lines is 3220 [14:22:17]MH_Cut [14:22:17]Write to MH i2c: D1 01 00 ED 1D 01 DC [14:22:17]Write i2c OK [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: D1 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: D1 01 00 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: D1 01 00 ED 1D 00 DB [14:22:17]Write to MH i2c: 01 00 00 EE 1D 0B [14:22:17]Write i2c OK [14:22:17]MH_I2C_Read... [14:22:17]OFD Sender: No OFD packet to send [14:22:18]*** Cut start [14:22:18]*** Purtial cut [14:22:18]*** Stage 1: CUTSNS_PIN = 1 [14:22:18]Read from MH i2c: 01 [14:22:18]MH_I2C_Read... [14:22:18]*** Stop cut motor [14:22:18]*** Cut end [14:22:18]Read from MH i2c: 01 07 00 [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: 01 07 00 EE 1D 00 00 00 00 00 FF 0F 20 [14:22:18]process_action close_receipt done [14:22:18]requested_data is exist [14:22:18]produce_requested_data [14:22:18]requested_item fm.sn is exist - process it [14:22:18]wFMCommunicate request_size=4 [14:22:18]MH_SAM_APDU [14:22:18]CAPDU: 80 11 00 00 [14:22:18]Write to MH i2c: E2 08 00 EF 1D 80 11 00 00 00 00 00 00 86 [14:22:18]Write i2c OK [14:22:18]MH_I2C_Read... [14:22:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:18]Read from MH i2c: E2 [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: E2 17 00 [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: E2 17 00 EF 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DB [14:22:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:22:18]wFMCommunicate OK [14:22:18]requested_item fd.num is exist - process it [14:22:18]SAM_PROTO_GetFieldsCounters [14:22:18]wFMCommunicate request_size=4 [14:22:18]MH_SAM_APDU [14:22:18]CAPDU: 80 13 00 00 [14:22:18]Write to MH i2c: E2 08 00 F0 1D 80 13 00 00 00 00 00 00 89 [14:22:18]Write i2c OK [14:22:18]MH_I2C_Read... [14:22:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:18]Read from MH i2c: E2 [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: E2 62 00 [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: E2 62 00 F0 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 34 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 7A [14:22:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 34 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:22:18]wFMCommunicate OK [14:22:18]SAM_PROTO_GetFieldsCounters done [14:22:18]requested_item shift.num is exist - process it [14:22:18]requested_item shift.opened is exist - process it [14:22:18]req_shift_opened [14:22:18]FM_GetShiftState [14:22:18]SAM_PROTO_GetShiftState [14:22:18]wFMCommunicate request_size=4 [14:22:18]MH_SAM_APDU [14:22:18]CAPDU: 80 13 01 00 [14:22:18]Write to MH i2c: E2 08 00 F1 1D 80 13 01 00 00 00 00 00 8B [14:22:18]Write i2c OK [14:22:18]MH_I2C_Read... [14:22:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:18]Read from MH i2c: E2 [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: E2 0E 00 [14:22:18]MH_I2C_Read... [14:22:18]Read from MH i2c: E2 0E 00 F1 1D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 9A [14:22:18]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:22:18]wFMCommunicate OK [14:22:18]SAM_PROTO_GetShiftState done [14:22:18]FM_GetShiftState done [14:22:18]req_shift_opened done [14:22:18]requested_item shift.open_date is exist - process it [14:22:18]req_shift_open_date [14:22:18]req_shift_open_date done [14:22:18]produce_requested_data done [14:22:18]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201524,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:22:18]process_action_free close_receipt [14:22:18]json_value_free [14:22:18]json_value_free done [14:22:18]process_json_proto returns [14:22:18]Send response to host [14:22:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201524,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:22:18]free response buf [14:22:18]execute_script done [14:22:18]execute_script returns [14:22:18]free content buf [14:22:18]Sock 8.Close socket [14:22:18]Sock 8.Thread stoped [14:22:22]OFD Sender: No OFD packet to send [14:22:26]accept exits with 9 [14:22:26]New connection [14:22:26]New thread 3066834276 created [14:22:26]Thread 3066690916 joined [14:22:26]Waiting for new connection... [14:22:26] Sock 9.Parse request [14:22:26]Sock 9.Check first char [14:22:26]Sock 9.First char is OK [14:22:26]request: POST /json_proto HTTP/1.0 [14:22:26]Method: POST [14:22:26]URL: /json_proto [14:22:26]Method is POST - this is cgi request [14:22:26]url: /json_proto [14:22:26]query_string will be loaded in cgi processing [14:22:26]execute_cgi json_proto POST (null) [14:22:26]execute_cgi path=json_proto method=POST [14:22:26]POST find Content-Length [14:22:26]Host: 172.17.63.195:8080 [14:22:26]Content-Length: 679 [14:22:26]Content-Type: application/json [14:22:26] [14:22:26]POST finish read [14:22:26]Found Content-Length = 679 [14:22:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:26]execute_script... [14:22:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:26]POST & json_proto [14:22:26]process_json_proto [14:22:26]json parsed OK: [14:22:26]protocol is kg_v1.0 [14:22:26]action value=close_receipt [14:22:26]process_action close_receipt [14:22:26]cmd_close_receipt [14:22:26]MH_GetDate [14:22:26]Write to MH i2c: F0 00 00 F2 1D FE [14:22:26]Write i2c OK [14:22:26]MH_I2C_Read... [14:22:26]Read from MH i2c: F0 [14:22:26]MH_I2C_Read... [14:22:26]Read from MH i2c: F0 09 00 [14:22:26]MH_I2C_Read... [14:22:26]Read from MH i2c: F0 09 00 F2 1D 00 23 FB 1C 67 68 46 19 67 D6 [14:22:26]GetLastDocTimeStamp 1729952536 [14:22:26]current date 1729952547 [14:22:26]FM_GetShiftState [14:22:26]SAM_PROTO_GetShiftState [14:22:26]wFMCommunicate request_size=4 [14:22:26]MH_SAM_APDU [14:22:26]CAPDU: 80 13 01 00 [14:22:26]Write to MH i2c: E2 08 00 F3 1D 80 13 01 00 00 00 00 00 8D [14:22:26]Write i2c OK [14:22:26]MH_I2C_Read... [14:22:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:26]Read from MH i2c: E2 [14:22:26]MH_I2C_Read... [14:22:26]Read from MH i2c: E2 0E 00 [14:22:26]MH_I2C_Read... [14:22:26]Read from MH i2c: E2 0E 00 F3 1D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 9C [14:22:26]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:22:26]wFMCommunicate OK [14:22:26]SAM_PROTO_GetShiftState done [14:22:26]FM_GetShiftState done [14:22:26]opened in 1729900879 [14:22:26]opened+sec_in_day 1729987279 [14:22:26]quantity*price = 160020 [14:22:26]sum+1 = 160021 [14:22:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.93 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 287 26.10.2024 14:22 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201525 ФПД: 30043079621491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142227&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201525&fm=30043079621491&tin=02508201610067®Number=0000000000091777&sum=160000 [14:22:27]StoreToDocumentArchive [14:22:27]shift 543 fd 201525 [14:22:27]save to /storage/0543/doc_00201525 [14:22:27]save last doc name /storage/0543/doc_00201525 to /storage/kkm_last_doc_name [14:22:27]save OK [14:22:27]Clear old archive folders... [14:22:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:22:27]tlvbuf is 01FD9C60 [14:22:27]SAM_PROTO_ClearQueue [14:22:27]wFMCommunicate request_size=4 [14:22:27]MH_SAM_APDU [14:22:27]CAPDU: 80 09 00 00 [14:22:27]Write to MH i2c: E2 08 00 00 1E 80 09 00 00 00 00 00 00 90 [14:22:27]Write i2c OK [14:22:27]MH_I2C_Read... [14:22:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:27]Read from MH i2c: E2 [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: E2 03 00 [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: E2 03 00 00 1E 00 90 00 92 [14:22:27]RAPDU: 90 00 [14:22:27]wFMCommunicate OK [14:22:27]SAM_PROTO_ClearQueue done [14:22:27]KKMCreateOFDPacket [14:22:27]OFDProtocolAddRootSTLVToBuf [14:22:27]FM_MakeSignedData [14:22:27]FM_MakeSignedData [14:22:27]SAM_PROTO_SignData [14:22:27]wFMCommunicate request_size=4 [14:22:27]MH_SAM_APDU [14:22:27]CAPDU: 80 0D 01 02 [14:22:27]Write to MH i2c: E2 08 00 01 1E 80 0D 01 02 00 00 00 00 98 [14:22:27]Write i2c OK [14:22:27]MH_I2C_Read... [14:22:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:27]Read from MH i2c: E2 [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: E2 03 00 [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: E2 03 00 01 1E 00 90 00 93 [14:22:27]RAPDU: 90 00 [14:22:27]wFMCommunicate OK [14:22:27]wFMCommunicate request_size=255 [14:22:27]MH_SAM_APDU [14:22:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 23 FB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 35 13 03 00 35 04 06 00 1B 52 F3 16 [14:22:27]Write to MH i2c: E2 02 01 02 1E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 23 FB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 35 13 03 00 35 04 06 00 1B 52 F3 16 00 00 75 [14:22:27]Write i2c OK [14:22:27]MH_I2C_Read... [14:22:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:27]Read from MH i2c: E2 [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: E2 03 00 [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: E2 03 00 02 1E 00 90 00 94 [14:22:27]RAPDU: 90 00 [14:22:27]wFMCommunicate OK [14:22:27]wFMCommunicate request_size=7 [14:22:27]MH_SAM_APDU [14:22:27]CAPDU: 80 0D 02 02 02 BB 73 [14:22:27]Write to MH i2c: E2 0A 00 03 1E 80 0D 02 02 02 00 BB 73 00 00 CD [14:22:27]Write i2c OK [14:22:27]MH_I2C_Read... [14:22:27]OFD Sender: No OFD packet to send [14:22:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:27]Read from MH i2c: E2 [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: E2 03 00 [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: E2 03 00 03 1E 00 90 00 95 [14:22:27]RAPDU: 90 00 [14:22:27]wFMCommunicate OK [14:22:27]wFMCommunicate request_size=4 [14:22:27]MH_SAM_APDU [14:22:27]CAPDU: 80 0D 03 02 [14:22:27]Write to MH i2c: E2 08 00 04 1E 80 0D 03 02 00 00 00 00 9D [14:22:27]Write i2c OK [14:22:27]MH_I2C_Read... [14:22:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:27]Read from MH i2c: E2 [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: E2 0B 00 [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: E2 0B 00 04 1E 00 BE C0 46 28 52 85 A8 E2 90 00 EB [14:22:27]RAPDU: BE C0 46 28 52 85 A8 E2 90 00 [14:22:27]wFMCommunicate OK [14:22:27]SAM_PROTO_SignData done [14:22:27]FM_MakeSignedData done [14:22:27]CreateOFDProtocolMessage [14:22:27]wFMCommunicate request_size=4 [14:22:27]MH_SAM_APDU [14:22:27]CAPDU: 80 11 00 00 [14:22:27]Write to MH i2c: E2 08 00 05 1E 80 11 00 00 00 00 00 00 9D [14:22:27]Write i2c OK [14:22:27]MH_I2C_Read... [14:22:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:27]Read from MH i2c: E2 [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: E2 17 00 [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: E2 17 00 05 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F2 [14:22:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:22:27]wFMCommunicate OK [14:22:27]CreateOFDProtocolMessage done [14:22:27]OFDSenderStorePacket 201525 [14:22:27]StoreOFDPacket docnum=201525 [14:22:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 64 76 04 01 C6 F0 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 32 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 23 FB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 35 13 03 00 35 04 06 00 1B 52 F3 16 BB 73 BE C0 46 28 52 85 A8 E2 [14:22:27]CheckFolder [14:22:27]dirname=/storage/ofd_packets [14:22:27]CheckFolder done [14:22:27]ProducePacketName [14:22:27]name=ofd_packets/00201525 [14:22:27]NVStorageSaveData ofd_packets/00201525 [14:22:27]File name is /storage/ofd_packets/00201525 [14:22:27]Write 298 bytes [14:22:27]NVStorageSaveData done [14:22:27]OFDSenderStorePacket done [14:22:27]KKMCreateOFDPacket done [14:22:27]NVStorageSaveData kkm_last_timestamp [14:22:27]File name is /storage/kkm_last_timestamp [14:22:27]Write 4 bytes [14:22:27]NVStorageSaveData done [14:22:27]ExternCall_PrintAddStr [14:22:27]wPrintStart [14:22:27]Write to MH i2c: 01 00 00 06 1E 24 [14:22:27]Write i2c OK [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: 01 [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: 01 07 00 [14:22:27]MH_I2C_Read... [14:22:27]Read from MH i2c: 01 07 00 06 1E 00 00 00 00 00 FF 0F 39 [14:22:27]RasterBufferAndPrint [14:22:27]line Счет N : (1)449276 [14:22:27]line ИНН: 02508201610067 [14:22:27]line Контрольно-Кассовый Чек [14:22:27]line ПРОДАЖА [14:22:27]line ТРК (МРК, ГНК) : 11 [14:22:27]line Товар: 2710194210 [14:22:27]line ДТ-К-2 [14:22:27]line 21.000 * 76.20 [14:22:27]line = 1600.20 [14:22:27]line НДС 12% НСП 1% [14:22:27]line > о реализуемом товаре [14:22:27]line ОКРУГЛЕНИЕ: -0.20 [14:22:27]line ИТОГО: 1600.00 [14:22:27]line Внесено: 1600.00 [14:22:27]line СДАЧА: 0.00 [14:22:27]line НСП 1% : 14.16 [14:22:27]line НДС 12% : 169.93 [14:22:27]line Наличными: 1600.00 [14:22:27]line Безнал.: 0.00 [14:22:27]line Место: АЗС № 171 "Партнер Нефть" [14:22:27]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:22:27]line СНО: Общий режим [14:22:27]line Чек 287 26.10.2024 14:22 [14:22:27]line Смена: 543 ФФД: 1.0 [14:22:27]line ЗНМ: 0300000109 [14:22:27]line РНМ: 0000000000091777 [14:22:27]line Версия ККМ: 001 [14:22:27]line ФМ: 0000000000871756 [14:22:27]line ФД: 201525 [14:22:27]line ФПД: 30043079621491 [14:22:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142227&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201525&fm=30043079621491&tin=02508201610067®Number=0000000000091777&sum=160000 [14:22:27]written 0, free lines is 4095 [14:22:28]OFD Sender: Processing packet 201525 [packets to send 112, broken 111] [14:22:28]ProducePacketName [14:22:28]name=ofd_packets/00201525 [14:22:28]OFD Sender: To server: pG, [14:22:28]CommunicateWithHost lk.salyk.kg:30040 [14:22:28]ConnectInit lk.salyk.kg [14:22:28]Connected sock=10 [14:22:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 64 76 04 01 C6 F0 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 32 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 23 FB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 35 13 03 00 35 04 06 00 1B 52 F3 16 BB 73 BE C0 46 28 52 85 A8 E2 [14:22:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E2 3A 47 00 58 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 35 13 03 00 F4 03 04 00 CB A6 1C 67 B6 04 01 00 00 6E 54 72 4D FD 7A 89 64 [14:22:28]CommunicateWithHost err = 0 [14:22:28]CheckOFDResponse [14:22:28]1017 (14) - 77093643461234 [14:22:28]1041 (16) - 0000000000871756 [14:22:28]1040 (4) - 201525 [14:22:28]1012 (4) - 26.10.2024 08:22 [14:22:28]1206 (1) - 0 [14:22:28]OFD Sender: Remove packet 201525 [14:22:28]ProducePacketName [14:22:28]name=ofd_packets/00201525 [14:22:28]NVStorageDeleteData [14:22:28]Write to MH i2c: 01 00 00 31 1E 4F [14:22:28]Write i2c OK [14:22:28]MH_I2C_Read... [14:22:28]Read from MH i2c: 01 [14:22:28]MH_I2C_Read... [14:22:28]Read from MH i2c: 01 07 00 [14:22:28]MH_I2C_Read... [14:22:28]Read from MH i2c: 01 07 00 31 1E 00 00 00 00 00 97 0C F9 [14:22:28]RasterBufferAndPrint [14:22:28]line [14:22:28]line [14:22:28]line [14:22:28]line [14:22:28]line [14:22:28]written 0, free lines is 3232 [14:22:28]MH_Cut [14:22:28]Write to MH i2c: D1 01 00 38 1E 01 28 [14:22:28]Write i2c OK [14:22:28]MH_I2C_Read... [14:22:28]Read from MH i2c: D1 [14:22:28]MH_I2C_Read... [14:22:28]Read from MH i2c: D1 01 00 [14:22:28]MH_I2C_Read... [14:22:28]Read from MH i2c: D1 01 00 38 1E 00 27 [14:22:28]Write to MH i2c: 01 00 00 39 1E 57 [14:22:28]Write i2c OK [14:22:28]MH_I2C_Read... [14:22:28]OFD Sender: No OFD packet to send [14:22:29]*** Cut start [14:22:29]*** Purtial cut [14:22:29]*** Stage 1: CUTSNS_PIN = 1 [14:22:29]Read from MH i2c: 01 [14:22:29]MH_I2C_Read... [14:22:29]*** Stop cut motor [14:22:29]*** Cut end [14:22:29]Read from MH i2c: 01 07 00 [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: 01 07 00 39 1E 00 00 00 00 00 FF 0F 6C [14:22:29]process_action close_receipt done [14:22:29]requested_data is exist [14:22:29]produce_requested_data [14:22:29]requested_item fm.sn is exist - process it [14:22:29]wFMCommunicate request_size=4 [14:22:29]MH_SAM_APDU [14:22:29]CAPDU: 80 11 00 00 [14:22:29]Write to MH i2c: E2 08 00 3A 1E 80 11 00 00 00 00 00 00 D2 [14:22:29]Write i2c OK [14:22:29]MH_I2C_Read... [14:22:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:29]Read from MH i2c: E2 [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: E2 17 00 [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: E2 17 00 3A 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 27 [14:22:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:22:29]wFMCommunicate OK [14:22:29]requested_item fd.num is exist - process it [14:22:29]SAM_PROTO_GetFieldsCounters [14:22:29]wFMCommunicate request_size=4 [14:22:29]MH_SAM_APDU [14:22:29]CAPDU: 80 13 00 00 [14:22:29]Write to MH i2c: E2 08 00 3B 1E 80 13 00 00 00 00 00 00 D5 [14:22:29]Write i2c OK [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: E2 [14:22:29]MH_I2C_Read... [14:22:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:29]Read from MH i2c: E2 62 00 [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: E2 62 00 3B 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 35 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 CA [14:22:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 35 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:22:29]wFMCommunicate OK [14:22:29]SAM_PROTO_GetFieldsCounters done [14:22:29]requested_item shift.num is exist - process it [14:22:29]requested_item shift.opened is exist - process it [14:22:29]req_shift_opened [14:22:29]FM_GetShiftState [14:22:29]SAM_PROTO_GetShiftState [14:22:29]wFMCommunicate request_size=4 [14:22:29]MH_SAM_APDU [14:22:29]CAPDU: 80 13 01 00 [14:22:29]Write to MH i2c: E2 08 00 3C 1E 80 13 01 00 00 00 00 00 D7 [14:22:29]Write i2c OK [14:22:29]MH_I2C_Read... [14:22:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:29]Read from MH i2c: E2 [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: E2 0E 00 [14:22:29]MH_I2C_Read... [14:22:29]Read from MH i2c: E2 0E 00 3C 1E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E6 [14:22:29]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:22:29]wFMCommunicate OK [14:22:29]SAM_PROTO_GetShiftState done [14:22:29]FM_GetShiftState done [14:22:29]req_shift_opened done [14:22:29]requested_item shift.open_date is exist - process it [14:22:29]req_shift_open_date [14:22:29]req_shift_open_date done [14:22:29]produce_requested_data done [14:22:29]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201525,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:22:29]process_action_free close_receipt [14:22:29]json_value_free [14:22:29]json_value_free done [14:22:29]process_json_proto returns [14:22:29]Send response to host [14:22:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201525,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:22:29]free response buf [14:22:29]execute_script done [14:22:29]execute_script returns [14:22:29]free content buf [14:22:29]Sock 9.Close socket [14:22:29]Sock 9.Thread stoped [14:22:33]OFD Sender: No OFD packet to send [14:22:38]OFD Sender: No OFD packet to send [14:22:43]OFD Sender: No OFD packet to send [14:22:45]accept exits with 8 [14:22:45]New connection [14:22:45]New thread 3066690916 created [14:22:45]Thread 3066834276 joined [14:22:45]Waiting for new connection... [14:22:45] Sock 8.Parse request [14:22:45]Sock 8.Check first char [14:22:45]Sock 8.First char is OK [14:22:45]request: POST /json_proto HTTP/1.0 [14:22:45]Method: POST [14:22:45]URL: /json_proto [14:22:45]Method is POST - this is cgi request [14:22:45]url: /json_proto [14:22:45]query_string will be loaded in cgi processing [14:22:45]execute_cgi json_proto POST (null) [14:22:45]execute_cgi path=json_proto method=POST [14:22:45]POST find Content-Length [14:22:45]Host: 172.17.63.195:8080 [14:22:45]Content-Length: 677 [14:22:45]Content-Type: application/json [14:22:45] [14:22:45]POST finish read [14:22:45]Found Content-Length = 677 [14:22:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [14:22:45]execute_script... [14:22: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)449277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [14:22:45]POST & json_proto [14:22:45]process_json_proto [14:22:45]json parsed OK: [14:22:45]protocol is kg_v1.0 [14:22:45]action value=close_receipt [14:22:45]process_action close_receipt [14:22:45]cmd_close_receipt [14:22:45]MH_GetDate [14:22:45]Write to MH i2c: F0 00 00 3D 1E 4A [14:22:45]Write i2c OK [14:22:45]MH_I2C_Read... [14:22:45]Read from MH i2c: F0 [14:22:45]MH_I2C_Read... [14:22:45]Read from MH i2c: F0 09 00 [14:22:45]MH_I2C_Read... [14:22:45]Read from MH i2c: F0 09 00 3D 1E 00 36 FB 1C 67 68 46 19 67 35 [14:22:45]GetLastDocTimeStamp 1729952547 [14:22:45]current date 1729952566 [14:22:45]FM_GetShiftState [14:22:45]SAM_PROTO_GetShiftState [14:22:45]wFMCommunicate request_size=4 [14:22:45]MH_SAM_APDU [14:22:45]CAPDU: 80 13 01 00 [14:22:45]Write to MH i2c: E2 08 00 3E 1E 80 13 01 00 00 00 00 00 D9 [14:22:45]Write i2c OK [14:22:45]MH_I2C_Read... [14:22:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:45]Read from MH i2c: E2 [14:22:45]MH_I2C_Read... [14:22:45]Read from MH i2c: E2 0E 00 [14:22:45]MH_I2C_Read... [14:22:45]Read from MH i2c: E2 0E 00 3E 1E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E8 [14:22:45]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:22:45]wFMCommunicate OK [14:22:45]SAM_PROTO_GetShiftState done [14:22:45]FM_GetShiftState done [14:22:45]opened in 1729900879 [14:22:45]opened+sec_in_day 1729987279 [14:22:45]quantity*price = 50041 [14:22:45]sum+1 = 50042 [14:22:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 288 26.10.2024 14:22 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201526 ФПД: 73785032444790 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142246&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201526&fm=73785032444790&tin=02508201610067®Number=0000000000091777&sum=50000 [14:22:46]StoreToDocumentArchive [14:22:46]shift 543 fd 201526 [14:22:46]save to /storage/0543/doc_00201526 [14:22:46]save last doc name /storage/0543/doc_00201526 to /storage/kkm_last_doc_name [14:22:46]save OK [14:22:46]Clear old archive folders... [14:22:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:22:46]tlvbuf is 01F66030 [14:22:46]SAM_PROTO_ClearQueue [14:22:46]wFMCommunicate request_size=4 [14:22:46]MH_SAM_APDU [14:22:46]CAPDU: 80 09 00 00 [14:22:46]Write to MH i2c: E2 08 00 4B 1E 80 09 00 00 00 00 00 00 DB [14:22:46]Write i2c OK [14:22:46]MH_I2C_Read... [14:22:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:46]Read from MH i2c: E2 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 03 00 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 03 00 4B 1E 00 90 00 DD [14:22:46]RAPDU: 90 00 [14:22:46]wFMCommunicate OK [14:22:46]SAM_PROTO_ClearQueue done [14:22:46]KKMCreateOFDPacket [14:22:46]OFDProtocolAddRootSTLVToBuf [14:22:46]FM_MakeSignedData [14:22:46]FM_MakeSignedData [14:22:46]SAM_PROTO_SignData [14:22:46]wFMCommunicate request_size=4 [14:22:46]MH_SAM_APDU [14:22:46]CAPDU: 80 0D 01 02 [14:22:46]Write to MH i2c: E2 08 00 4C 1E 80 0D 01 02 00 00 00 00 E3 [14:22:46]Write i2c OK [14:22:46]MH_I2C_Read... [14:22:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:46]Read from MH i2c: E2 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 03 00 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 03 00 4C 1E 00 90 00 DE [14:22:46]RAPDU: 90 00 [14:22:46]wFMCommunicate OK [14:22:46]wFMCommunicate request_size=255 [14:22:46]MH_SAM_APDU [14:22:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 20 01 00 00 F4 03 04 00 36 FB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 36 13 03 00 35 04 06 00 43 [14:22:46]Write to MH i2c: E2 02 01 4D 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 32 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 20 01 00 00 F4 03 04 00 36 FB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 36 13 03 00 35 04 06 00 43 00 00 FC [14:22:46]Write i2c OK [14:22:46]MH_I2C_Read... [14:22:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:46]Read from MH i2c: E2 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 03 00 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 03 00 4D 1E 00 90 00 DF [14:22:46]RAPDU: 90 00 [14:22:46]wFMCommunicate OK [14:22:46]wFMCommunicate request_size=10 [14:22:46]MH_SAM_APDU [14:22:46]CAPDU: 80 0D 02 02 05 1B 6A A6 0B 76 [14:22:46]Write to MH i2c: E2 0D 00 4E 1E 80 0D 02 02 05 00 1B 6A A6 0B 76 00 00 9C [14:22:46]Write i2c OK [14:22:46]MH_I2C_Read... [14:22:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:46]Read from MH i2c: E2 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 03 00 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 03 00 4E 1E 00 90 00 E0 [14:22:46]RAPDU: 90 00 [14:22:46]wFMCommunicate OK [14:22:46]wFMCommunicate request_size=4 [14:22:46]MH_SAM_APDU [14:22:46]CAPDU: 80 0D 03 02 [14:22:46]Write to MH i2c: E2 08 00 4F 1E 80 0D 03 02 00 00 00 00 E8 [14:22:46]Write i2c OK [14:22:46]MH_I2C_Read... [14:22:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:46]Read from MH i2c: E2 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 0B 00 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 0B 00 4F 1E 00 D9 FF 40 EB 9E 2A A0 27 90 00 7B [14:22:46]RAPDU: D9 FF 40 EB 9E 2A A0 27 90 00 [14:22:46]wFMCommunicate OK [14:22:46]SAM_PROTO_SignData done [14:22:46]FM_MakeSignedData done [14:22:46]CreateOFDProtocolMessage [14:22:46]wFMCommunicate request_size=4 [14:22:46]MH_SAM_APDU [14:22:46]CAPDU: 80 11 00 00 [14:22:46]Write to MH i2c: E2 08 00 50 1E 80 11 00 00 00 00 00 00 E8 [14:22:46]Write i2c OK [14:22:46]MH_I2C_Read... [14:22:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:46]Read from MH i2c: E2 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 17 00 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 17 00 50 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3D [14:22:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:22:46]wFMCommunicate OK [14:22:46]CreateOFDProtocolMessage done [14:22:46]OFDSenderStorePacket 201526 [14:22:46]StoreOFDPacket docnum=201526 [14:22:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D9 6E 07 01 6B 63 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 32 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 20 01 00 00 F4 03 04 00 36 FB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 36 13 03 00 35 04 06 00 43 1B 6A A6 0B 76 D9 FF 40 EB 9E 2A A0 27 [14:22:46]CheckFolder [14:22:46]dirname=/storage/ofd_packets [14:22:46]CheckFolder done [14:22:46]ProducePacketName [14:22:46]name=ofd_packets/00201526 [14:22:46]NVStorageSaveData ofd_packets/00201526 [14:22:46]File name is /storage/ofd_packets/00201526 [14:22:46]Write 301 bytes [14:22:46]NVStorageSaveData done [14:22:46]OFDSenderStorePacket done [14:22:46]KKMCreateOFDPacket done [14:22:46]NVStorageSaveData kkm_last_timestamp [14:22:46]File name is /storage/kkm_last_timestamp [14:22:46]Write 4 bytes [14:22:46]NVStorageSaveData done [14:22:46]ExternCall_PrintAddStr [14:22:46]wPrintStart [14:22:46]Write to MH i2c: 01 00 00 51 1E 6F [14:22:46]Write i2c OK [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: 01 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: 01 07 00 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: 01 07 00 51 1E 00 00 00 00 00 FF 0F 84 [14:22:46]RasterBufferAndPrint [14:22:46]line Счет N : (1)449277 [14:22:46]line ИНН: 02508201610067 [14:22:46]line Контрольно-Кассовый Чек [14:22:46]line ПРОДАЖА [14:22:46]line ТРК (МРК, ГНК) : 52 [14:22:46]line Товар: 2710124130 [14:22:46]line Аи-92-К-2 [14:22:46]line 7.480 * 66.90 [14:22:46]line = 500.41 [14:22:46]line НДС 12% НСП 1% [14:22:46]line > о реализуемом товаре [14:22:46]line ОКРУГЛЕНИЕ: -0.41 [14:22:46]line ИТОГО: 500.00 [14:22:46]line Внесено: 500.00 [14:22:46]line СДАЧА: 0.00 [14:22:46]line НСП 1% : 4.43 [14:22:46]line НДС 12% : 53.14 [14:22:46]line Наличными: 500.00 [14:22:46]line Безнал.: 0.00 [14:22:46]line Место: АЗС № 171 "Партнер Нефть" [14:22:46]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:22:46]line СНО: Общий режим [14:22:46]line Чек 288 26.10.2024 14:22 [14:22:46]line Смена: 543 ФФД: 1.0 [14:22:46]line ЗНМ: 0300000109 [14:22:46]line РНМ: 0000000000091777 [14:22:46]line Версия ККМ: 001 [14:22:46]line ФМ: 0000000000871756 [14:22:46]line ФД: 201526 [14:22:46]line ФПД: 73785032444790 [14:22:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142246&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201526&fm=73785032444790&tin=02508201610067®Number=0000000000091777&sum=50000 [14:22:47]OFD Sender: Processing packet 201526 [packets to send 112, broken 111] [14:22:47]ProducePacketName [14:22:47]name=ofd_packets/00201526 [14:22:47]OFD Sender: To server: pG, [14:22:47]CommunicateWithHost lk.salyk.kg:30040 [14:22:47]ConnectInit lk.salyk.kg [14:22:47]written 0, free lines is 4095 [14:22:47]Connected sock=10 [14:22:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D9 6E 07 01 6B 63 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 32 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 20 01 00 00 F4 03 04 00 36 FB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 36 13 03 00 35 04 06 00 43 1B 6A A6 0B 76 D9 FF 40 EB 9E 2A A0 27 [14:22:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 18 28 47 00 42 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 36 13 03 00 F4 03 04 00 DF A6 1C 67 B6 04 01 00 00 BC 47 D3 D8 E7 3F 2F 6D [14:22:47]CommunicateWithHost err = 0 [14:22:47]CheckOFDResponse [14:22:47]1017 (14) - 77093643461234 [14:22:47]1041 (16) - 0000000000871756 [14:22:47]1040 (4) - 201526 [14:22:47]1012 (4) - 26.10.2024 08:22 [14:22:47]1206 (1) - 0 [14:22:47]OFD Sender: Remove packet 201526 [14:22:47]ProducePacketName [14:22:47]name=ofd_packets/00201526 [14:22:47]NVStorageDeleteData [14:22:47]Write to MH i2c: 01 00 00 7C 1E 9A [14:22:47]Write i2c OK [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: 01 [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: 01 07 00 [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: 01 07 00 7C 1E 00 00 00 00 00 8F 0C 3C [14:22:47]RasterBufferAndPrint [14:22:47]line [14:22:47]line [14:22:47]line [14:22:47]line [14:22:47]line [14:22:47]written 0, free lines is 3219 [14:22:47]MH_Cut [14:22:47]Write to MH i2c: D1 01 00 83 1E 01 73 [14:22:47]Write i2c OK [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: D1 [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: D1 01 00 [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: D1 01 00 83 1E 00 72 [14:22:47]Write to MH i2c: 01 00 00 84 1E A2 [14:22:47]Write i2c OK [14:22:47]MH_I2C_Read... [14:22:48]OFD Sender: No OFD packet to send [14:22:48]*** Cut start [14:22:48]*** Purtial cut [14:22:48]*** Stage 1: CUTSNS_PIN = 1 [14:22:48]Read from MH i2c: 01 [14:22:48]MH_I2C_Read... [14:22:48]*** Stop cut motor [14:22:48]*** Cut end [14:22:48]Read from MH i2c: 01 07 00 [14:22:48]MH_I2C_Read... [14:22:48]Read from MH i2c: 01 07 00 84 1E 00 00 00 00 00 FF 0F B7 [14:22:48]process_action close_receipt done [14:22:48]requested_data is exist [14:22:48]produce_requested_data [14:22:48]requested_item fm.sn is exist - process it [14:22:48]wFMCommunicate request_size=4 [14:22:48]MH_SAM_APDU [14:22:48]CAPDU: 80 11 00 00 [14:22:48]Write to MH i2c: E2 08 00 85 1E 80 11 00 00 00 00 00 00 1D [14:22:48]Write i2c OK [14:22:48]MH_I2C_Read... [14:22:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:48]Read from MH i2c: E2 [14:22:48]MH_I2C_Read... [14:22:48]Read from MH i2c: E2 17 00 [14:22:48]MH_I2C_Read... [14:22:48]Read from MH i2c: E2 17 00 85 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 72 [14:22:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:22:48]wFMCommunicate OK [14:22:48]requested_item fd.num is exist - process it [14:22:48]SAM_PROTO_GetFieldsCounters [14:22:48]wFMCommunicate request_size=4 [14:22:48]MH_SAM_APDU [14:22:48]CAPDU: 80 13 00 00 [14:22:48]Write to MH i2c: E2 08 00 86 1E 80 13 00 00 00 00 00 00 20 [14:22:48]Write i2c OK [14:22:48]MH_I2C_Read... [14:22:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:48]Read from MH i2c: E2 [14:22:48]MH_I2C_Read... [14:22:48]Read from MH i2c: E2 62 00 [14:22:48]MH_I2C_Read... [14:22:48]Read from MH i2c: E2 62 00 86 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 36 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 19 [14:22:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 36 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:22:48]wFMCommunicate OK [14:22:48]SAM_PROTO_GetFieldsCounters done [14:22:48]requested_item shift.num is exist - process it [14:22:48]requested_item shift.opened is exist - process it [14:22:48]req_shift_opened [14:22:48]FM_GetShiftState [14:22:48]SAM_PROTO_GetShiftState [14:22:48]wFMCommunicate request_size=4 [14:22:48]MH_SAM_APDU [14:22:48]CAPDU: 80 13 01 00 [14:22:48]Write to MH i2c: E2 08 00 87 1E 80 13 01 00 00 00 00 00 22 [14:22:48]Write i2c OK [14:22:48]MH_I2C_Read... [14:22:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:49]Read from MH i2c: E2 [14:22:49]MH_I2C_Read... [14:22:49]Read from MH i2c: E2 0E 00 [14:22:49]MH_I2C_Read... [14:22:49]Read from MH i2c: E2 0E 00 87 1E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 31 [14:22:49]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:22:49]wFMCommunicate OK [14:22:49]SAM_PROTO_GetShiftState done [14:22:49]FM_GetShiftState done [14:22:49]req_shift_opened done [14:22:49]requested_item shift.open_date is exist - process it [14:22:49]req_shift_open_date [14:22:49]req_shift_open_date done [14:22:49]produce_requested_data done [14:22:49]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201526,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:22:49]process_action_free close_receipt [14:22:49]json_value_free [14:22:49]json_value_free done [14:22:49]process_json_proto returns [14:22:49]Send response to host [14:22:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201526,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:22:49]free response buf [14:22:49]execute_script done [14:22:49]execute_script returns [14:22:49]free content buf [14:22:49]Sock 8.Close socket [14:22:49]Sock 8.Thread stoped [14:22:53]OFD Sender: No OFD packet to send [14:22:57]accept exits with 9 [14:22:57]New connection [14:22:57]New thread 3066834276 created [14:22:57]Thread 3066690916 joined [14:22:57]Waiting for new connection... [14:22:57] Sock 9.Parse request [14:22:57]Sock 9.Check first char [14:22:57]Sock 9.First char is OK [14:22:57]request: POST /json_proto HTTP/1.0 [14:22:57]Method: POST [14:22:57]URL: /json_proto [14:22:57]Method is POST - this is cgi request [14:22:57]url: /json_proto [14:22:57]query_string will be loaded in cgi processing [14:22:57]execute_cgi json_proto POST (null) [14:22:57]execute_cgi path=json_proto method=POST [14:22:57]POST find Content-Length [14:22:57]Host: 172.17.63.195:8080 [14:22:57]Content-Length: 677 [14:22:57]Content-Type: application/json [14:22:57] [14:22:57]POST finish read [14:22:57]Found Content-Length = 677 [14:22:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 6.550, "sum" : 438.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 440.00, "total" : 438.00, "payments": [ { "type": 0, "sum" : 438.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:57]execute_script... [14:22: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)449278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 6.550, "sum" : 438.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 440.00, "total" : 438.00, "payments": [ { "type": 0, "sum" : 438.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:57]POST & json_proto [14:22:57]process_json_proto [14:22:57]json parsed OK: [14:22:57]protocol is kg_v1.0 [14:22:57]action value=close_receipt [14:22:57]process_action close_receipt [14:22:57]cmd_close_receipt [14:22:57]MH_GetDate [14:22:57]Write to MH i2c: F0 00 00 88 1E 95 [14:22:57]Write i2c OK [14:22:57]MH_I2C_Read... [14:22:57]Read from MH i2c: F0 [14:22:57]MH_I2C_Read... [14:22:57]Read from MH i2c: F0 09 00 [14:22:57]MH_I2C_Read... [14:22:57]Read from MH i2c: F0 09 00 88 1E 00 42 FB 1C 67 68 46 19 67 8C [14:22:57]GetLastDocTimeStamp 1729952566 [14:22:57]current date 1729952578 [14:22:57]FM_GetShiftState [14:22:57]SAM_PROTO_GetShiftState [14:22:57]wFMCommunicate request_size=4 [14:22:57]MH_SAM_APDU [14:22:57]CAPDU: 80 13 01 00 [14:22:57]Write to MH i2c: E2 08 00 89 1E 80 13 01 00 00 00 00 00 24 [14:22:57]Write i2c OK [14:22:57]MH_I2C_Read... [14:22:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:57]Read from MH i2c: E2 [14:22:57]MH_I2C_Read... [14:22:57]Read from MH i2c: E2 0E 00 [14:22:57]MH_I2C_Read... [14:22:57]Read from MH i2c: E2 0E 00 89 1E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 33 [14:22:57]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:22:57]wFMCommunicate OK [14:22:57]SAM_PROTO_GetShiftState done [14:22:57]FM_GetShiftState done [14:22:57]opened in 1729900879 [14:22:57]opened+sec_in_day 1729987279 [14:22:57]quantity*price = 43819 [14:22:57]sum+1 = 43821 [14:22:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 438.00 Внесено: 440.00 СДАЧА: 2.00 НСП 1% : 3.88 НДС 12% : 46.53 Наличными: 438.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 289 26.10.2024 14:22 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201527 ФПД: 186019945192592 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142258&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201527&fm=186019945192592&tin=02508201610067®Number=0000000000091777&sum=43800 [14:22:58]StoreToDocumentArchive [14:22:58]shift 543 fd 201527 [14:22:58]save to /storage/0543/doc_00201527 [14:22:58]save last doc name /storage/0543/doc_00201527 to /storage/kkm_last_doc_name [14:22:58]save OK [14:22:58]Clear old archive folders... [14:22:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:22:58]tlvbuf is 01F0E200 [14:22:58]SAM_PROTO_ClearQueue [14:22:58]wFMCommunicate request_size=4 [14:22:58]MH_SAM_APDU [14:22:58]CAPDU: 80 09 00 00 [14:22:58]Write to MH i2c: E2 08 00 96 1E 80 09 00 00 00 00 00 00 26 [14:22:58]Write i2c OK [14:22:58]MH_I2C_Read... [14:22:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:58]Read from MH i2c: E2 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: E2 03 00 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: E2 03 00 96 1E 00 90 00 28 [14:22:58]RAPDU: 90 00 [14:22:58]wFMCommunicate OK [14:22:58]SAM_PROTO_ClearQueue done [14:22:58]KKMCreateOFDPacket [14:22:58]OFDProtocolAddRootSTLVToBuf [14:22:58]FM_MakeSignedData [14:22:58]FM_MakeSignedData [14:22:58]SAM_PROTO_SignData [14:22:58]wFMCommunicate request_size=4 [14:22:58]MH_SAM_APDU [14:22:58]CAPDU: 80 0D 01 02 [14:22:58]Write to MH i2c: E2 08 00 97 1E 80 0D 01 02 00 00 00 00 2E [14:22:58]Write i2c OK [14:22:58]MH_I2C_Read... [14:22:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:58]Read from MH i2c: E2 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: E2 03 00 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: E2 03 00 97 1E 00 90 00 29 [14:22:58]RAPDU: 90 00 [14:22:58]wFMCommunicate OK [14:22:58]wFMCommunicate request_size=255 [14:22:58]MH_SAM_APDU [14:22: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 32 FF 03 08 00 03 96 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2C AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 12 00 00 00 00 07 04 06 00 18 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 42 FB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 37 13 03 00 35 04 06 00 A9 [14:22:58]Write to MH i2c: E2 02 01 98 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 32 FF 03 08 00 03 96 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2C AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 12 00 00 00 00 07 04 06 00 18 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 42 FB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 37 13 03 00 35 04 06 00 A9 00 00 42 [14:22:58]Write i2c OK [14:22:58]MH_I2C_Read... [14:22:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:58]Read from MH i2c: E2 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: E2 03 00 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: E2 03 00 98 1E 00 90 00 2A [14:22:58]RAPDU: 90 00 [14:22:58]wFMCommunicate OK [14:22:58]wFMCommunicate request_size=10 [14:22:58]MH_SAM_APDU [14:22:58]CAPDU: 80 0D 02 02 05 2F 24 C1 1C 90 [14:22:58]Write to MH i2c: E2 0D 00 99 1E 80 0D 02 02 05 00 2F 24 C1 1C 90 00 00 FB [14:22:58]Write i2c OK [14:22:58]MH_I2C_Read... [14:22:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:58]Read from MH i2c: E2 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: E2 03 00 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: E2 03 00 99 1E 00 90 00 2B [14:22:58]RAPDU: 90 00 [14:22:58]wFMCommunicate OK [14:22:58]wFMCommunicate request_size=4 [14:22:58]MH_SAM_APDU [14:22:58]CAPDU: 80 0D 03 02 [14:22:58]Write to MH i2c: E2 08 00 9A 1E 80 0D 03 02 00 00 00 00 33 [14:22:58]Write i2c OK [14:22:58]MH_I2C_Read... [14:22:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:58]Read from MH i2c: E2 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: E2 0B 00 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: E2 0B 00 9A 1E 00 D3 A1 EB 79 99 1F 59 AE 90 00 CB [14:22:58]RAPDU: D3 A1 EB 79 99 1F 59 AE 90 00 [14:22:58]wFMCommunicate OK [14:22:58]SAM_PROTO_SignData done [14:22:58]FM_MakeSignedData done [14:22:58]CreateOFDProtocolMessage [14:22:58]wFMCommunicate request_size=4 [14:22:58]MH_SAM_APDU [14:22:58]CAPDU: 80 11 00 00 [14:22:58]Write to MH i2c: E2 08 00 9B 1E 80 11 00 00 00 00 00 00 33 [14:22:58]Write i2c OK [14:22:58]MH_I2C_Read... [14:22:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:59]Read from MH i2c: E2 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: E2 17 00 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: E2 17 00 9B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 88 [14:22:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:22:59]wFMCommunicate OK [14:22:59]CreateOFDProtocolMessage done [14:22:59]OFDSenderStorePacket 201527 [14:22:59]StoreOFDPacket docnum=201527 [14:22:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 65 71 07 01 C8 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 96 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2C AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 12 00 00 00 00 07 04 06 00 18 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 42 FB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 37 13 03 00 35 04 06 00 A9 2F 24 C1 1C 90 D3 A1 EB 79 99 1F 59 AE [14:22:59]CheckFolder [14:22:59]dirname=/storage/ofd_packets [14:22:59]CheckFolder done [14:22:59]ProducePacketName [14:22:59]name=ofd_packets/00201527 [14:22:59]NVStorageSaveData ofd_packets/00201527 [14:22:59]File name is /storage/ofd_packets/00201527 [14:22:59]Write 301 bytes [14:22:59]NVStorageSaveData done [14:22:59]OFDSenderStorePacket done [14:22:59]KKMCreateOFDPacket done [14:22:59]NVStorageSaveData kkm_last_timestamp [14:22:59]File name is /storage/kkm_last_timestamp [14:22:59]Write 4 bytes [14:22:59]NVStorageSaveData done [14:22:59]ExternCall_PrintAddStr [14:22:59]wPrintStart [14:22:59]Write to MH i2c: 01 00 00 9C 1E BA [14:22:59]Write i2c OK [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: 01 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: 01 07 00 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: 01 07 00 9C 1E 00 00 00 00 00 FF 0F CF [14:22:59]RasterBufferAndPrint [14:22:59]line Счет N : (1)449278 [14:22:59]line ИНН: 02508201610067 [14:22:59]line Контрольно-Кассовый Чек [14:22:59]line ПРОДАЖА [14:22:59]line ТРК (МРК, ГНК) : 41 [14:22:59]line Товар: 2710124130 [14:22:59]line Аи-92-К-2 [14:22:59]line 6.550 * 66.90 [14:22:59]line = 438.20 [14:22:59]line НДС 12% НСП 1% [14:22:59]line > о реализуемом товаре [14:22:59]line ОКРУГЛЕНИЕ: -0.20 [14:22:59]line ИТОГО: 438.00 [14:22:59]line Внесено: 440.00 [14:22:59]line СДАЧА: 2.00 [14:22:59]line НСП 1% : 3.88 [14:22:59]line НДС 12% : 46.53 [14:22:59]line Наличными: 438.00 [14:22:59]line Безнал.: 0.00 [14:22:59]line Место: АЗС № 171 "Партнер Нефть" [14:22:59]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:22:59]line СНО: Общий режим [14:22:59]line Чек 289 26.10.2024 14:22 [14:22:59]line Смена: 543 ФФД: 1.0 [14:22:59]line ЗНМ: 0300000109 [14:22:59]line РНМ: 0000000000091777 [14:22:59]line Версия ККМ: 001 [14:22:59]line ФМ: 0000000000871756 [14:22:59]line ФД: 201527 [14:22:59]line ФПД: 186019945192592 [14:22:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142258&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201527&fm=186019945192592&tin=02508201610067®Number=0000000000091777&sum=43800 [14:22:59]written 0, free lines is 4095 [14:22:59]OFD Sender: Processing packet 201527 [packets to send 112, broken 111] [14:22:59]ProducePacketName [14:22:59]name=ofd_packets/00201527 [14:22:59]OFD Sender: To server: pG, [14:22:59]CommunicateWithHost lk.salyk.kg:30040 [14:22:59]ConnectInit lk.salyk.kg [14:22:59]Connected sock=10 [14:22:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 65 71 07 01 C8 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 96 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2C AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 12 00 00 00 00 07 04 06 00 18 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 42 FB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 37 13 03 00 35 04 06 00 A9 2F 24 C1 1C 90 D3 A1 EB 79 99 1F 59 AE [14:22:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 4B C9 47 00 CB B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 37 13 03 00 F4 03 04 00 EA A6 1C 67 B6 04 01 00 00 18 02 FE 19 02 61 7F 49 [14:22:59]CommunicateWithHost err = 0 [14:22:59]CheckOFDResponse [14:22:59]1017 (14) - 77093643461234 [14:22:59]1041 (16) - 0000000000871756 [14:22:59]1040 (4) - 201527 [14:22:59]1012 (4) - 26.10.2024 08:23 [14:22:59]1206 (1) - 0 [14:22:59]OFD Sender: Remove packet 201527 [14:22:59]ProducePacketName [14:22:59]name=ofd_packets/00201527 [14:22:59]NVStorageDeleteData [14:22:59]Write to MH i2c: 01 00 00 C7 1E E5 [14:22:59]Write i2c OK [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: 01 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: 01 07 00 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: 01 07 00 C7 1E 00 00 00 00 00 9D 0C 95 [14:22:59]RasterBufferAndPrint [14:22:59]line [14:22:59]line [14:22:59]line [14:22:59]line [14:22:59]line [14:22:59]written 0, free lines is 3237 [14:22:59]MH_Cut [14:22:59]Write to MH i2c: D1 01 00 CE 1E 01 BE [14:22:59]Write i2c OK [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: D1 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: D1 01 00 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: D1 01 00 CE 1E 00 BD [14:22:59]Write to MH i2c: 01 00 00 CF 1E ED [14:22:59]Write i2c OK [14:22:59]MH_I2C_Read... [14:22:59]OFD Sender: No OFD packet to send [14:23:00]*** Cut start [14:23:00]*** Purtial cut [14:23:00]*** Stage 1: CUTSNS_PIN = 1 [14:23:00]Read from MH i2c: 01 [14:23:00]MH_I2C_Read... [14:23:00]*** Stop cut motor [14:23:00]*** Cut end [14:23:00]Read from MH i2c: 01 07 00 [14:23:00]MH_I2C_Read... [14:23:00]Read from MH i2c: 01 07 00 CF 1E 00 00 00 00 00 FF 0F 02 [14:23:00]process_action close_receipt done [14:23:00]requested_data is exist [14:23:00]produce_requested_data [14:23:00]requested_item fm.sn is exist - process it [14:23:00]wFMCommunicate request_size=4 [14:23:00]MH_SAM_APDU [14:23:00]CAPDU: 80 11 00 00 [14:23:00]Write to MH i2c: E2 08 00 D0 1E 80 11 00 00 00 00 00 00 68 [14:23:00]Write i2c OK [14:23:00]MH_I2C_Read... [14:23:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:00]Read from MH i2c: E2 [14:23:00]MH_I2C_Read... [14:23:00]Read from MH i2c: E2 17 00 [14:23:00]MH_I2C_Read... [14:23:00]Read from MH i2c: E2 17 00 D0 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BD [14:23:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:23:00]wFMCommunicate OK [14:23:00]requested_item fd.num is exist - process it [14:23:00]SAM_PROTO_GetFieldsCounters [14:23:00]wFMCommunicate request_size=4 [14:23:00]MH_SAM_APDU [14:23:00]CAPDU: 80 13 00 00 [14:23:00]Write to MH i2c: E2 08 00 D1 1E 80 13 00 00 00 00 00 00 6B [14:23:00]Write i2c OK [14:23:00]MH_I2C_Read... [14:23:00]Read from MH i2c: E2 [14:23:00]MH_I2C_Read... [14:23:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:00]Read from MH i2c: E2 62 00 [14:23:00]MH_I2C_Read... [14:23:00]Read from MH i2c: E2 62 00 D1 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 37 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 68 [14:23:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 37 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:23:00]wFMCommunicate OK [14:23:00]SAM_PROTO_GetFieldsCounters done [14:23:00]requested_item shift.num is exist - process it [14:23:00]requested_item shift.opened is exist - process it [14:23:00]req_shift_opened [14:23:00]FM_GetShiftState [14:23:00]SAM_PROTO_GetShiftState [14:23:00]wFMCommunicate request_size=4 [14:23:00]MH_SAM_APDU [14:23:00]CAPDU: 80 13 01 00 [14:23:00]Write to MH i2c: E2 08 00 D2 1E 80 13 01 00 00 00 00 00 6D [14:23:00]Write i2c OK [14:23:00]MH_I2C_Read... [14:23:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:00]Read from MH i2c: E2 [14:23:00]MH_I2C_Read... [14:23:00]Read from MH i2c: E2 0E 00 [14:23:00]MH_I2C_Read... [14:23:00]Read from MH i2c: E2 0E 00 D2 1E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 7C [14:23:00]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:23:00]wFMCommunicate OK [14:23:00]SAM_PROTO_GetShiftState done [14:23:00]FM_GetShiftState done [14:23:00]req_shift_opened done [14:23:00]requested_item shift.open_date is exist - process it [14:23:00]req_shift_open_date [14:23:00]req_shift_open_date done [14:23:00]produce_requested_data done [14:23:00]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201527,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:23:00]process_action_free close_receipt [14:23:00]json_value_free [14:23:00]json_value_free done [14:23:00]process_json_proto returns [14:23:00]Send response to host [14:23:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201527,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:23:00]free response buf [14:23:00]execute_script done [14:23:00]execute_script returns [14:23:00]free content buf [14:23:00]Sock 9.Close socket [14:23:00]Sock 9.Thread stoped [14:23:04]OFD Sender: No OFD packet to send [14:23:09]accept exits with 8 [14:23:09]New connection [14:23:09]New thread 3066690916 created [14:23:09]Thread 3066834276 joined [14:23:09]Waiting for new connection... [14:23:09] Sock 8.Parse request [14:23:09]Sock 8.Check first char [14:23:09]Sock 8.First char is OK [14:23:09]request: POST /json_proto HTTP/1.0 [14:23:09]Method: POST [14:23:09]URL: /json_proto [14:23:09]Method is POST - this is cgi request [14:23:09]url: /json_proto [14:23:09]query_string will be loaded in cgi processing [14:23:09]execute_cgi json_proto POST (null) [14:23:09]execute_cgi path=json_proto method=POST [14:23:09]POST find Content-Length [14:23:09]Host: 172.17.63.195:8080 [14:23:09]Content-Length: 677 [14:23:09]Content-Type: application/json [14:23:09] [14:23:09]POST finish read [14:23:09]Found Content-Length = 677 [14:23:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:09]execute_script... [14:23: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)449279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:09]POST & json_proto [14:23:09]process_json_proto [14:23:09]json parsed OK: [14:23:09]protocol is kg_v1.0 [14:23:09]action value=close_receipt [14:23:09]process_action close_receipt [14:23:09]cmd_close_receipt [14:23:09]MH_GetDate [14:23:09]Write to MH i2c: F0 00 00 D3 1E E0 [14:23:09]Write i2c OK [14:23:09]MH_I2C_Read... [14:23:09]Read from MH i2c: F0 [14:23:09]MH_I2C_Read... [14:23:09]Read from MH i2c: F0 09 00 [14:23:09]MH_I2C_Read... [14:23:09]Read from MH i2c: F0 09 00 D3 1E 00 4E FB 1C 67 68 46 19 67 E3 [14:23:09]GetLastDocTimeStamp 1729952578 [14:23:09]current date 1729952590 [14:23:09]FM_GetShiftState [14:23:09]SAM_PROTO_GetShiftState [14:23:09]wFMCommunicate request_size=4 [14:23:09]MH_SAM_APDU [14:23:09]CAPDU: 80 13 01 00 [14:23:09]Write to MH i2c: E2 08 00 D4 1E 80 13 01 00 00 00 00 00 6F [14:23:09]Write i2c OK [14:23:09]MH_I2C_Read... [14:23:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:09]Read from MH i2c: E2 [14:23:09]MH_I2C_Read... [14:23:09]Read from MH i2c: E2 0E 00 [14:23:09]MH_I2C_Read... [14:23:09]Read from MH i2c: E2 0E 00 D4 1E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 7E [14:23:09]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:23:09]wFMCommunicate OK [14:23:09]SAM_PROTO_GetShiftState done [14:23:09]FM_GetShiftState done [14:23:09]opened in 1729900879 [14:23:09]opened+sec_in_day 1729987279 [14:23:09]quantity*price = 30038 [14:23:09]sum+1 = 30039 [14:23:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 290 26.10.2024 14:23 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201528 ФПД: 115498270445802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142310&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201528&fm=115498270445802&tin=02508201610067®Number=0000000000091777&sum=30000 [14:23:10]StoreToDocumentArchive [14:23:10]shift 543 fd 201528 [14:23:10]save to /storage/0543/doc_00201528 [14:23:10]save last doc name /storage/0543/doc_00201528 to /storage/kkm_last_doc_name [14:23:10]save OK [14:23:10]Clear old archive folders... [14:23:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:23:10]tlvbuf is 01F4F5B0 [14:23:10]SAM_PROTO_ClearQueue [14:23:10]wFMCommunicate request_size=4 [14:23:10]MH_SAM_APDU [14:23:10]CAPDU: 80 09 00 00 [14:23:10]Write to MH i2c: E2 08 00 E1 1E 80 09 00 00 00 00 00 00 71 [14:23:10]Write i2c OK [14:23:10]MH_I2C_Read... [14:23:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:10]Read from MH i2c: E2 [14:23:10]MH_I2C_Read... [14:23:10]Read from MH i2c: E2 03 00 [14:23:11]MH_I2C_Read... [14:23:11]Read from MH i2c: E2 03 00 E1 1E 00 90 00 73 [14:23:11]RAPDU: 90 00 [14:23:11]wFMCommunicate OK [14:23:11]SAM_PROTO_ClearQueue done [14:23:11]KKMCreateOFDPacket [14:23:11]OFDProtocolAddRootSTLVToBuf [14:23:11]FM_MakeSignedData [14:23:11]FM_MakeSignedData [14:23:11]SAM_PROTO_SignData [14:23:11]wFMCommunicate request_size=4 [14:23:11]MH_SAM_APDU [14:23:11]CAPDU: 80 0D 01 02 [14:23:11]Write to MH i2c: E2 08 00 E2 1E 80 0D 01 02 00 00 00 00 79 [14:23:11]Write i2c OK [14:23:11]MH_I2C_Read... [14:23:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:11]Read from MH i2c: E2 [14:23:11]MH_I2C_Read... [14:23:11]Read from MH i2c: E2 03 00 [14:23:11]MH_I2C_Read... [14:23:11]Read from MH i2c: E2 03 00 E2 1E 00 90 00 74 [14:23:11]RAPDU: 90 00 [14:23:11]wFMCommunicate OK [14:23:11]wFMCommunicate request_size=255 [14:23:11]MH_SAM_APDU [14:23:11]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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 4E FB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 38 13 03 00 35 04 06 00 69 [14:23:11]Write to MH i2c: E2 02 01 E3 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 4E FB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 38 13 03 00 35 04 06 00 69 00 00 C8 [14:23:11]Write i2c OK [14:23:11]MH_I2C_Read... [14:23:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:11]Read from MH i2c: E2 [14:23:11]MH_I2C_Read... [14:23:11]Read from MH i2c: E2 03 00 [14:23:11]MH_I2C_Read... [14:23:11]Read from MH i2c: E2 03 00 E3 1E 00 90 00 75 [14:23:11]RAPDU: 90 00 [14:23:11]wFMCommunicate OK [14:23:11]wFMCommunicate request_size=10 [14:23:11]MH_SAM_APDU [14:23:11]CAPDU: 80 0D 02 02 05 0B 89 61 D0 EA [14:23:11]Write to MH i2c: E2 0D 00 E4 1E 80 0D 02 02 05 00 0B 89 61 D0 EA 00 00 35 [14:23:11]Write i2c OK [14:23:11]MH_I2C_Read... [14:23:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:11]Read from MH i2c: E2 [14:23:11]MH_I2C_Read... [14:23:11]Read from MH i2c: E2 03 00 [14:23:11]MH_I2C_Read... [14:23:11]Read from MH i2c: E2 03 00 E4 1E 00 90 00 76 [14:23:11]RAPDU: 90 00 [14:23:11]wFMCommunicate OK [14:23:11]wFMCommunicate request_size=4 [14:23:11]MH_SAM_APDU [14:23:11]CAPDU: 80 0D 03 02 [14:23:11]Write to MH i2c: E2 08 00 E5 1E 80 0D 03 02 00 00 00 00 7E [14:23:11]Write i2c OK [14:23:11]MH_I2C_Read... [14:23:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:11]Read from MH i2c: E2 [14:23:11]MH_I2C_Read... [14:23:11]Read from MH i2c: E2 0B 00 [14:23:11]MH_I2C_Read... [14:23:11]Read from MH i2c: E2 0B 00 E5 1E 00 59 DB 5B 50 C8 6B 55 1A 90 00 00 [14:23:11]RAPDU: 59 DB 5B 50 C8 6B 55 1A 90 00 [14:23:11]wFMCommunicate OK [14:23:11]SAM_PROTO_SignData done [14:23:11]FM_MakeSignedData done [14:23:11]CreateOFDProtocolMessage [14:23:11]wFMCommunicate request_size=4 [14:23:11]MH_SAM_APDU [14:23:11]CAPDU: 80 11 00 00 [14:23:11]Write to MH i2c: E2 08 00 E6 1E 80 11 00 00 00 00 00 00 7E [14:23:11]Write i2c OK [14:23:11]MH_I2C_Read... [14:23:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:11]Read from MH i2c: E2 [14:23:11]MH_I2C_Read... [14:23:11]Read from MH i2c: E2 17 00 [14:23:11]MH_I2C_Read... [14:23:11]Read from MH i2c: E2 17 00 E6 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D3 [14:23:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:23:11]wFMCommunicate OK [14:23:11]CreateOFDProtocolMessage done [14:23:11]OFDSenderStorePacket 201528 [14:23:11]StoreOFDPacket docnum=201528 [14:23:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A2 C8 07 01 8A 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 4E FB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 38 13 03 00 35 04 06 00 69 0B 89 61 D0 EA 59 DB 5B 50 C8 6B 55 1A [14:23:11]CheckFolder [14:23:11]dirname=/storage/ofd_packets [14:23:11]CheckFolder done [14:23:11]ProducePacketName [14:23:11]name=ofd_packets/00201528 [14:23:11]NVStorageSaveData ofd_packets/00201528 [14:23:11]File name is /storage/ofd_packets/00201528 [14:23:11]Write 301 bytes [14:23:11]NVStorageSaveData done [14:23:11]OFDSenderStorePacket done [14:23:11]KKMCreateOFDPacket done [14:23:11]NVStorageSaveData kkm_last_timestamp [14:23:11]File name is /storage/kkm_last_timestamp [14:23:11]Write 4 bytes [14:23:11]NVStorageSaveData done [14:23:11]ExternCall_PrintAddStr [14:23:11]wPrintStart [14:23:11]Write to MH i2c: 01 00 00 E7 1E 05 [14:23:11]Write i2c OK [14:23:11]MH_I2C_Read... [14:23:11]Read from MH i2c: 01 [14:23:11]MH_I2C_Read... [14:23:11]Read from MH i2c: 01 07 00 [14:23:11]MH_I2C_Read... [14:23:11]Read from MH i2c: 01 07 00 E7 1E 00 00 00 00 00 FF 0F 1A [14:23:11]RasterBufferAndPrint [14:23:11]line Счет N : (1)449279 [14:23:11]line ИНН: 02508201610067 [14:23:11]line Контрольно-Кассовый Чек [14:23:11]line ПРОДАЖА [14:23:11]line ТРК (МРК, ГНК) : 31 [14:23:11]line Товар: 2710124130 [14:23:11]line Аи-92-К-2 [14:23:11]line 4.490 * 66.90 [14:23:11]line = 300.38 [14:23:11]line НДС 12% НСП 1% [14:23:11]line > о реализуемом товаре [14:23:11]line ОКРУГЛЕНИЕ: -0.38 [14:23:11]line ИТОГО: 300.00 [14:23:11]line Внесено: 300.00 [14:23:11]line СДАЧА: 0.00 [14:23:11]line НСП 1% : 2.66 [14:23:11]line НДС 12% : 31.90 [14:23:11]line Наличными: 300.00 [14:23:11]line Безнал.: 0.00 [14:23:11]line Место: АЗС № 171 "Партнер Нефть" [14:23:11]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:23:11]line СНО: Общий режим [14:23:11]line Чек 290 26.10.2024 14:23 [14:23:11]line Смена: 543 ФФД: 1.0 [14:23:11]line ЗНМ: 0300000109 [14:23:11]line РНМ: 0000000000091777 [14:23:11]line Версия ККМ: 001 [14:23:11]line ФМ: 0000000000871756 [14:23:11]line ФД: 201528 [14:23:11]line ФПД: 115498270445802 [14:23:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142310&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201528&fm=115498270445802&tin=02508201610067®Number=0000000000091777&sum=30000 [14:23:11]written 0, free lines is 4095 [14:23:11]OFD Sender: Processing packet 201528 [packets to send 112, broken 111] [14:23:11]ProducePacketName [14:23:11]name=ofd_packets/00201528 [14:23:11]OFD Sender: To server: pG, [14:23:11]CommunicateWithHost lk.salyk.kg:30040 [14:23:11]ConnectInit lk.salyk.kg [14:23:11]Connected sock=10 [14:23:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A2 C8 07 01 8A 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 4E FB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 38 13 03 00 35 04 06 00 69 0B 89 61 D0 EA 59 DB 5B 50 C8 6B 55 1A [14:23:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B8 21 47 00 C5 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 38 13 03 00 F4 03 04 00 F7 A6 1C 67 B6 04 01 00 00 DA EA 80 02 1C E9 74 80 [14:23:11]CommunicateWithHost err = 0 [14:23:11]CheckOFDResponse [14:23:11]1017 (14) - 77093643461234 [14:23:11]1041 (16) - 0000000000871756 [14:23:11]1040 (4) - 201528 [14:23:11]1012 (4) - 26.10.2024 08:23 [14:23:11]1206 (1) - 0 [14:23:11]OFD Sender: Remove packet 201528 [14:23:11]ProducePacketName [14:23:11]name=ofd_packets/00201528 [14:23:11]NVStorageDeleteData [14:23:11]Write to MH i2c: 01 00 00 12 1F 31 [14:23:12]Write i2c OK [14:23:12]MH_I2C_Read... [14:23:12]Read from MH i2c: 01 [14:23:12]MH_I2C_Read... [14:23:12]Read from MH i2c: 01 07 00 [14:23:12]MH_I2C_Read... [14:23:12]Read from MH i2c: 01 07 00 12 1F 00 00 00 00 00 99 0C DD [14:23:12]RasterBufferAndPrint [14:23:12]line [14:23:12]line [14:23:12]line [14:23:12]line [14:23:12]line [14:23:12]written 0, free lines is 3237 [14:23:12]MH_Cut [14:23:12]Write to MH i2c: D1 01 00 19 1F 01 0A [14:23:12]Write i2c OK [14:23:12]MH_I2C_Read... [14:23:12]Read from MH i2c: D1 [14:23:12]MH_I2C_Read... [14:23:12]Read from MH i2c: D1 01 00 [14:23:12]MH_I2C_Read... [14:23:12]Read from MH i2c: D1 01 00 19 1F 00 09 [14:23:12]Write to MH i2c: 01 00 00 1A 1F 39 [14:23:12]Write i2c OK [14:23:12]MH_I2C_Read... [14:23:12]OFD Sender: No OFD packet to send [14:23:12]*** Cut start [14:23:12]*** Purtial cut [14:23:12]*** Stage 1: CUTSNS_PIN = 1 [14:23:13]Read from MH i2c: 01 [14:23:13]MH_I2C_Read... [14:23:13]*** Stop cut motor [14:23:13]*** Cut end [14:23:13]Read from MH i2c: 01 07 00 [14:23:13]MH_I2C_Read... [14:23:13]Read from MH i2c: 01 07 00 1A 1F 00 00 00 00 00 FF 0F 4E [14:23:13]process_action close_receipt done [14:23:13]requested_data is exist [14:23:13]produce_requested_data [14:23:13]requested_item fm.sn is exist - process it [14:23:13]wFMCommunicate request_size=4 [14:23:13]MH_SAM_APDU [14:23:13]CAPDU: 80 11 00 00 [14:23:13]Write to MH i2c: E2 08 00 1B 1F 80 11 00 00 00 00 00 00 B4 [14:23:13]Write i2c OK [14:23:13]MH_I2C_Read... [14:23:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:13]Read from MH i2c: E2 [14:23:13]MH_I2C_Read... [14:23:13]Read from MH i2c: E2 17 00 [14:23:13]MH_I2C_Read... [14:23:13]Read from MH i2c: E2 17 00 1B 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 09 [14:23:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:23:13]wFMCommunicate OK [14:23:13]requested_item fd.num is exist - process it [14:23:13]SAM_PROTO_GetFieldsCounters [14:23:13]wFMCommunicate request_size=4 [14:23:13]MH_SAM_APDU [14:23:13]CAPDU: 80 13 00 00 [14:23:13]Write to MH i2c: E2 08 00 1C 1F 80 13 00 00 00 00 00 00 B7 [14:23:13]Write i2c OK [14:23:13]MH_I2C_Read... [14:23:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:13]Read from MH i2c: E2 [14:23:13]MH_I2C_Read... [14:23:13]Read from MH i2c: E2 62 00 [14:23:13]MH_I2C_Read... [14:23:13]Read from MH i2c: E2 62 00 1C 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 38 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 B8 [14:23:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 38 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:23:13]wFMCommunicate OK [14:23:13]SAM_PROTO_GetFieldsCounters done [14:23:13]requested_item shift.num is exist - process it [14:23:13]requested_item shift.opened is exist - process it [14:23:13]req_shift_opened [14:23:13]FM_GetShiftState [14:23:13]SAM_PROTO_GetShiftState [14:23:13]wFMCommunicate request_size=4 [14:23:13]MH_SAM_APDU [14:23:13]CAPDU: 80 13 01 00 [14:23:13]Write to MH i2c: E2 08 00 1D 1F 80 13 01 00 00 00 00 00 B9 [14:23:13]Write i2c OK [14:23:13]MH_I2C_Read... [14:23:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:13]Read from MH i2c: E2 [14:23:13]MH_I2C_Read... [14:23:13]Read from MH i2c: E2 0E 00 [14:23:13]MH_I2C_Read... [14:23:13]Read from MH i2c: E2 0E 00 1D 1F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C8 [14:23:13]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:23:13]wFMCommunicate OK [14:23:13]SAM_PROTO_GetShiftState done [14:23:13]FM_GetShiftState done [14:23:13]req_shift_opened done [14:23:13]requested_item shift.open_date is exist - process it [14:23:13]req_shift_open_date [14:23:13]req_shift_open_date done [14:23:13]produce_requested_data done [14:23:13]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201528,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:23:13]process_action_free close_receipt [14:23:13]json_value_free [14:23:13]json_value_free done [14:23:13]process_json_proto returns [14:23:13]Send response to host [14:23:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201528,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:23:13]free response buf [14:23:13]execute_script done [14:23:13]execute_script returns [14:23:13]free content buf [14:23:13]Sock 8.Close socket [14:23:13]Sock 8.Thread stoped [14:23:17]OFD Sender: No OFD packet to send [14:23:22]OFD Sender: No OFD packet to send [14:23:27]OFD Sender: No OFD packet to send [14:23:32]OFD Sender: No OFD packet to send [14:23:37]OFD Sender: No OFD packet to send [14:23:42]OFD Sender: No OFD packet to send [14:23:47]OFD Sender: No OFD packet to send [14:23:52]OFD Sender: No OFD packet to send [14:23:57]OFD Sender: No OFD packet to send [14:24:02]OFD Sender: No OFD packet to send [14:24:07]OFD Sender: No OFD packet to send [14:24:12]OFD Sender: No OFD packet to send [14:24:17]OFD Sender: No OFD packet to send [14:24:22]OFD Sender: No OFD packet to send [14:24:27]OFD Sender: No OFD packet to send [14:24:32]OFD Sender: No OFD packet to send [14:24:35]accept exits with 9 [14:24:35]New connection [14:24:35]New thread 3066834276 created [14:24:35]Thread 3066690916 joined [14:24:35]Waiting for new connection... [14:24:35] Sock 9.Parse request [14:24:35]Sock 9.Check first char [14:24:35]Sock 9.First char is OK [14:24:35]request: POST /json_proto HTTP/1.0 [14:24:35]Method: POST [14:24:35]URL: /json_proto [14:24:35]Method is POST - this is cgi request [14:24:35]url: /json_proto [14:24:35]query_string will be loaded in cgi processing [14:24:35]execute_cgi json_proto POST (null) [14:24:35]execute_cgi path=json_proto method=POST [14:24:35]POST find Content-Length [14:24:35]Host: 172.17.63.195:8080 [14:24:35]Content-Length: 677 [14:24:35]Content-Type: application/json [14:24:35] [14:24:35]POST finish read [14:24:35]Found Content-Length = 677 [14:24:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [14:24:35]execute_script... [14:24: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)449280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [14:24:35]POST & json_proto [14:24:35]process_json_proto [14:24:35]json parsed OK: [14:24:35]protocol is kg_v1.0 [14:24:35]action value=close_receipt [14:24:35]process_action close_receipt [14:24:35]cmd_close_receipt [14:24:35]MH_GetDate [14:24:35]Write to MH i2c: F0 00 00 1E 1F 2C [14:24:35]Write i2c OK [14:24:35]MH_I2C_Read... [14:24:35]Read from MH i2c: F0 [14:24:35]MH_I2C_Read... [14:24:35]Read from MH i2c: F0 09 00 [14:24:35]MH_I2C_Read... [14:24:35]Read from MH i2c: F0 09 00 1E 1F 00 A4 FB 1C 67 68 46 19 67 85 [14:24:35]GetLastDocTimeStamp 1729952590 [14:24:35]current date 1729952676 [14:24:35]FM_GetShiftState [14:24:35]SAM_PROTO_GetShiftState [14:24:35]wFMCommunicate request_size=4 [14:24:35]MH_SAM_APDU [14:24:35]CAPDU: 80 13 01 00 [14:24:35]Write to MH i2c: E2 08 00 1F 1F 80 13 01 00 00 00 00 00 BB [14:24:35]Write i2c OK [14:24:35]MH_I2C_Read... [14:24:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:35]Read from MH i2c: E2 [14:24:35]MH_I2C_Read... [14:24:35]Read from MH i2c: E2 0E 00 [14:24:35]MH_I2C_Read... [14:24:35]Read from MH i2c: E2 0E 00 1F 1F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 CA [14:24:35]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:24:35]wFMCommunicate OK [14:24:35]SAM_PROTO_GetShiftState done [14:24:35]FM_GetShiftState done [14:24:35]opened in 1729900879 [14:24:35]opened+sec_in_day 1729987279 [14:24:35]quantity*price = 40006 [14:24:35]sum+1 = 40007 [14:24:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 291 26.10.2024 14:24 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201529 ФПД: 132997871846667 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142436&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201529&fm=132997871846667&tin=02508201610067®Number=0000000000091777&sum=40000 [14:24:36]StoreToDocumentArchive [14:24:36]shift 543 fd 201529 [14:24:36]save to /storage/0543/doc_00201529 [14:24:36]save last doc name /storage/0543/doc_00201529 to /storage/kkm_last_doc_name [14:24:36]save OK [14:24:36]Clear old archive folders... [14:24:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:24:36]tlvbuf is B6F38210 [14:24:36]SAM_PROTO_ClearQueue [14:24:36]wFMCommunicate request_size=4 [14:24:36]MH_SAM_APDU [14:24:36]CAPDU: 80 09 00 00 [14:24:36]Write to MH i2c: E2 08 00 2C 1F 80 09 00 00 00 00 00 00 BD [14:24:36]Write i2c OK [14:24:36]MH_I2C_Read... [14:24:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:36]Read from MH i2c: E2 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: E2 03 00 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: E2 03 00 2C 1F 00 90 00 BF [14:24:36]RAPDU: 90 00 [14:24:36]wFMCommunicate OK [14:24:36]SAM_PROTO_ClearQueue done [14:24:36]KKMCreateOFDPacket [14:24:36]OFDProtocolAddRootSTLVToBuf [14:24:36]FM_MakeSignedData [14:24:36]FM_MakeSignedData [14:24:36]SAM_PROTO_SignData [14:24:36]wFMCommunicate request_size=4 [14:24:36]MH_SAM_APDU [14:24:36]CAPDU: 80 0D 01 02 [14:24:36]Write to MH i2c: E2 08 00 2D 1F 80 0D 01 02 00 00 00 00 C5 [14:24:36]Write i2c OK [14:24:36]MH_I2C_Read... [14:24:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:36]Read from MH i2c: E2 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: E2 03 00 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: E2 03 00 2D 1F 00 90 00 C0 [14:24:36]RAPDU: 90 00 [14:24:36]wFMCommunicate OK [14:24:36]wFMCommunicate request_size=255 [14:24:36]MH_SAM_APDU [14:24: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 32 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 23 01 00 00 F4 03 04 00 A4 FB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 39 13 03 00 35 04 06 00 78 [14:24:36]Write to MH i2c: E2 02 01 2E 1F 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 32 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 23 01 00 00 F4 03 04 00 A4 FB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 39 13 03 00 35 04 06 00 78 00 00 56 [14:24:36]Write i2c OK [14:24:36]MH_I2C_Read... [14:24:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:36]Read from MH i2c: E2 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: E2 03 00 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: E2 03 00 2E 1F 00 90 00 C1 [14:24:36]RAPDU: 90 00 [14:24:36]wFMCommunicate OK [14:24:36]wFMCommunicate request_size=10 [14:24:36]MH_SAM_APDU [14:24:36]CAPDU: 80 0D 02 02 05 F5 FA E8 45 0B [14:24:36]Write to MH i2c: E2 0D 00 2F 1F 80 0D 02 02 05 00 F5 FA E8 45 0B 00 00 F9 [14:24:36]Write i2c OK [14:24:36]MH_I2C_Read... [14:24:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:36]Read from MH i2c: E2 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: E2 03 00 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: E2 03 00 2F 1F 00 90 00 C2 [14:24:36]RAPDU: 90 00 [14:24:36]wFMCommunicate OK [14:24:36]wFMCommunicate request_size=4 [14:24:36]MH_SAM_APDU [14:24:36]CAPDU: 80 0D 03 02 [14:24:36]Write to MH i2c: E2 08 00 30 1F 80 0D 03 02 00 00 00 00 CA [14:24:36]Write i2c OK [14:24:36]MH_I2C_Read... [14:24:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:36]Read from MH i2c: E2 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: E2 0B 00 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: E2 0B 00 30 1F 00 D4 70 F3 5F CA B0 FE 4E 90 00 27 [14:24:36]RAPDU: D4 70 F3 5F CA B0 FE 4E 90 00 [14:24:36]wFMCommunicate OK [14:24:36]SAM_PROTO_SignData done [14:24:36]FM_MakeSignedData done [14:24:36]CreateOFDProtocolMessage [14:24:36]wFMCommunicate request_size=4 [14:24:36]MH_SAM_APDU [14:24:36]CAPDU: 80 11 00 00 [14:24:36]Write to MH i2c: E2 08 00 31 1F 80 11 00 00 00 00 00 00 CA [14:24:36]Write i2c OK [14:24:36]MH_I2C_Read... [14:24:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:36]Read from MH i2c: E2 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: E2 17 00 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: E2 17 00 31 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1F [14:24:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:24:36]wFMCommunicate OK [14:24:36]CreateOFDProtocolMessage done [14:24:36]OFDSenderStorePacket 201529 [14:24:36]StoreOFDPacket docnum=201529 [14:24:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A6 E1 07 01 69 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 23 01 00 00 F4 03 04 00 A4 FB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 39 13 03 00 35 04 06 00 78 F5 FA E8 45 0B D4 70 F3 5F CA B0 FE 4E [14:24:36]CheckFolder [14:24:36]dirname=/storage/ofd_packets [14:24:36]CheckFolder done [14:24:36]ProducePacketName [14:24:36]name=ofd_packets/00201529 [14:24:36]NVStorageSaveData ofd_packets/00201529 [14:24:36]File name is /storage/ofd_packets/00201529 [14:24:36]Write 301 bytes [14:24:36]NVStorageSaveData done [14:24:36]OFDSenderStorePacket done [14:24:36]KKMCreateOFDPacket done [14:24:36]NVStorageSaveData kkm_last_timestamp [14:24:36]File name is /storage/kkm_last_timestamp [14:24:36]Write 4 bytes [14:24:36]NVStorageSaveData done [14:24:36]ExternCall_PrintAddStr [14:24:36]wPrintStart [14:24:36]Write to MH i2c: 01 00 00 32 1F 51 [14:24:36]Write i2c OK [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: 01 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: 01 07 00 [14:24:36]MH_I2C_Read... [14:24:36]Read from MH i2c: 01 07 00 32 1F 00 00 00 00 00 FF 0F 66 [14:24:36]RasterBufferAndPrint [14:24:36]line Счет N : (1)449280 [14:24:36]line ИНН: 02508201610067 [14:24:36]line Контрольно-Кассовый Чек [14:24:36]line ПРОДАЖА [14:24:36]line ТРК (МРК, ГНК) : 31 [14:24:36]line Товар: 2710124130 [14:24:36]line Аи-92-К-2 [14:24:36]line 5.980 * 66.90 [14:24:36]line = 400.06 [14:24:36]line НДС 12% НСП 1% [14:24:36]line > о реализуемом товаре [14:24:36]line ОКРУГЛЕНИЕ: -0.06 [14:24:36]line ИТОГО: 400.00 [14:24:36]line Внесено: 400.00 [14:24:36]line СДАЧА: 0.00 [14:24:36]line НСП 1% : 3.54 [14:24:36]line НДС 12% : 42.48 [14:24:36]line Наличными: 400.00 [14:24:36]line Безнал.: 0.00 [14:24:36]line Место: АЗС № 171 "Партнер Нефть" [14:24:36]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:24:36]line СНО: Общий режим [14:24:36]line Чек 291 26.10.2024 14:24 [14:24:36]line Смена: 543 ФФД: 1.0 [14:24:36]line ЗНМ: 0300000109 [14:24:36]line РНМ: 0000000000091777 [14:24:36]line Версия ККМ: 001 [14:24:36]line ФМ: 0000000000871756 [14:24:36]line ФД: 201529 [14:24:36]line ФПД: 132997871846667 [14:24:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142436&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201529&fm=132997871846667&tin=02508201610067®Number=0000000000091777&sum=40000 [14:24:37]OFD Sender: Processing packet 201529 [packets to send 112, broken 111] [14:24:37]ProducePacketName [14:24:37]name=ofd_packets/00201529 [14:24:37]OFD Sender: To server: pG, [14:24:37]CommunicateWithHost lk.salyk.kg:30040 [14:24:37]ConnectInit lk.salyk.kg [14:24:37]written 0, free lines is 4095 [14:24:37]Connected sock=10 [14:24:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A6 E1 07 01 69 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 23 01 00 00 F4 03 04 00 A4 FB 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 39 13 03 00 35 04 06 00 78 F5 FA E8 45 0B D4 70 F3 5F CA B0 FE 4E [14:24:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 AC 17 47 00 1A 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 39 13 03 00 F4 03 04 00 4D A7 1C 67 B6 04 01 00 00 1F 75 5E 8B 19 1B AA 7F [14:24:37]CommunicateWithHost err = 0 [14:24:37]CheckOFDResponse [14:24:37]1017 (14) - 77093643461234 [14:24:37]1041 (16) - 0000000000871756 [14:24:37]1040 (4) - 201529 [14:24:37]1012 (4) - 26.10.2024 08:24 [14:24:37]1206 (1) - 0 [14:24:37]OFD Sender: Remove packet 201529 [14:24:37]ProducePacketName [14:24:37]name=ofd_packets/00201529 [14:24:37]NVStorageDeleteData [14:24:37]Write to MH i2c: 01 00 00 5D 1F 7C [14:24:37]Write i2c OK [14:24:37]MH_I2C_Read... [14:24:37]Read from MH i2c: 01 [14:24:37]MH_I2C_Read... [14:24:37]Read from MH i2c: 01 07 00 [14:24:37]MH_I2C_Read... [14:24:37]Read from MH i2c: 01 07 00 5D 1F 00 00 00 00 00 92 0C 21 [14:24:37]RasterBufferAndPrint [14:24:37]line [14:24:37]line [14:24:37]line [14:24:37]line [14:24:37]line [14:24:37]written 0, free lines is 3223 [14:24:37]MH_Cut [14:24:37]Write to MH i2c: D1 01 00 64 1F 01 55 [14:24:37]Write i2c OK [14:24:37]MH_I2C_Read... [14:24:37]Read from MH i2c: D1 [14:24:37]MH_I2C_Read... [14:24:37]Read from MH i2c: D1 01 00 [14:24:37]MH_I2C_Read... [14:24:37]Read from MH i2c: D1 01 00 64 1F 00 54 [14:24:37]Write to MH i2c: 01 00 00 65 1F 84 [14:24:37]Write i2c OK [14:24:37]MH_I2C_Read... [14:24:38]OFD Sender: No OFD packet to send [14:24:38]*** Cut start [14:24:38]*** Purtial cut [14:24:38]*** Stage 1: CUTSNS_PIN = 1 [14:24:38]Read from MH i2c: 01 [14:24:38]MH_I2C_Read... [14:24:38]*** Stop cut motor [14:24:38]*** Cut end [14:24:38]Read from MH i2c: 01 07 00 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: 01 07 00 65 1F 00 00 00 00 00 FF 0F 99 [14:24:38]process_action close_receipt done [14:24:38]requested_data is exist [14:24:38]produce_requested_data [14:24:38]requested_item fm.sn is exist - process it [14:24:38]wFMCommunicate request_size=4 [14:24:38]MH_SAM_APDU [14:24:38]CAPDU: 80 11 00 00 [14:24:38]Write to MH i2c: E2 08 00 66 1F 80 11 00 00 00 00 00 00 FF [14:24:38]Write i2c OK [14:24:38]MH_I2C_Read... [14:24:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:38]Read from MH i2c: E2 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 17 00 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 17 00 66 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 54 [14:24:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:24:38]wFMCommunicate OK [14:24:38]requested_item fd.num is exist - process it [14:24:38]SAM_PROTO_GetFieldsCounters [14:24:38]wFMCommunicate request_size=4 [14:24:38]MH_SAM_APDU [14:24:38]CAPDU: 80 13 00 00 [14:24:38]Write to MH i2c: E2 08 00 67 1F 80 13 00 00 00 00 00 00 02 [14:24:38]Write i2c OK [14:24:38]MH_I2C_Read... [14:24:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:38]Read from MH i2c: E2 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 62 00 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 62 00 67 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 39 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 07 [14:24:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 39 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:24:38]wFMCommunicate OK [14:24:38]SAM_PROTO_GetFieldsCounters done [14:24:38]requested_item shift.num is exist - process it [14:24:38]requested_item shift.opened is exist - process it [14:24:38]req_shift_opened [14:24:38]FM_GetShiftState [14:24:38]SAM_PROTO_GetShiftState [14:24:38]wFMCommunicate request_size=4 [14:24:38]MH_SAM_APDU [14:24:38]CAPDU: 80 13 01 00 [14:24:38]Write to MH i2c: E2 08 00 68 1F 80 13 01 00 00 00 00 00 04 [14:24:38]Write i2c OK [14:24:38]MH_I2C_Read... [14:24:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:38]Read from MH i2c: E2 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 0E 00 [14:24:38]MH_I2C_Read... [14:24:38]Read from MH i2c: E2 0E 00 68 1F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 13 [14:24:39]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:24:39]wFMCommunicate OK [14:24:39]SAM_PROTO_GetShiftState done [14:24:39]FM_GetShiftState done [14:24:39]req_shift_opened done [14:24:39]requested_item shift.open_date is exist - process it [14:24:39]req_shift_open_date [14:24:39]req_shift_open_date done [14:24:39]produce_requested_data done [14:24:39]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201529,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:24:39]process_action_free close_receipt [14:24:39]json_value_free [14:24:39]json_value_free done [14:24:39]process_json_proto returns [14:24:39]Send response to host [14:24:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201529,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:24:39]free response buf [14:24:39]execute_script done [14:24:39]execute_script returns [14:24:39]free content buf [14:24:39]Sock 9.Close socket [14:24:39]Sock 9.Thread stoped [14:24:43]OFD Sender: No OFD packet to send [14:24:48]OFD Sender: No OFD packet to send [14:24:53]OFD Sender: No OFD packet to send [14:24:58]OFD Sender: No OFD packet to send [14:25:03]OFD Sender: No OFD packet to send [14:25:08]OFD Sender: No OFD packet to send [14:25:13]OFD Sender: No OFD packet to send [14:25:18]OFD Sender: No OFD packet to send [14:25:23]OFD Sender: No OFD packet to send [14:25:28]OFD Sender: No OFD packet to send [14:25:33]OFD Sender: No OFD packet to send [14:25:38]OFD Sender: No OFD packet to send [14:25:43]OFD Sender: No OFD packet to send [14:25:48]OFD Sender: No OFD packet to send [14:25:53]OFD Sender: No OFD packet to send [14:25:58]OFD Sender: No OFD packet to send [14:26:03]OFD Sender: No OFD packet to send [14:26:08]OFD Sender: No OFD packet to send [14:26:10]accept exits with 8 [14:26:10]New connection [14:26:10]New thread 3066690916 created [14:26:10]Thread 3066834276 joined [14:26:10]Waiting for new connection... [14:26:10] Sock 8.Parse request [14:26:10]Sock 8.Check first char [14:26:10]Sock 8.First char is OK [14:26:10]request: POST /json_proto HTTP/1.0 [14:26:10]Method: POST [14:26:10]URL: /json_proto [14:26:10]Method is POST - this is cgi request [14:26:10]url: /json_proto [14:26:10]query_string will be loaded in cgi processing [14:26:10]execute_cgi json_proto POST (null) [14:26:10]execute_cgi path=json_proto method=POST [14:26:10]POST find Content-Length [14:26:10]Host: 172.17.63.195:8080 [14:26:10]Content-Length: 682 [14:26:10]Content-Type: application/json [14:26:10] [14:26:10]POST finish read [14:26:10]Found Content-Length = 682 [14:26:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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" ] } } [14:26:10]execute_script... [14:26:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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" ] } } [14:26:10]POST & json_proto [14:26:10]process_json_proto [14:26:10]json parsed OK: [14:26:10]protocol is kg_v1.0 [14:26:10]action value=close_receipt [14:26:10]process_action close_receipt [14:26:10]cmd_close_receipt [14:26:10]MH_GetDate [14:26:10]Write to MH i2c: F0 00 00 69 1F 77 [14:26:10]Write i2c OK [14:26:10]MH_I2C_Read... [14:26:10]Read from MH i2c: F0 [14:26:10]MH_I2C_Read... [14:26:10]Read from MH i2c: F0 09 00 [14:26:10]MH_I2C_Read... [14:26:10]Read from MH i2c: F0 09 00 69 1F 00 03 FC 1C 67 68 46 19 67 30 [14:26:10]GetLastDocTimeStamp 1729952676 [14:26:10]current date 1729952771 [14:26:10]FM_GetShiftState [14:26:10]SAM_PROTO_GetShiftState [14:26:10]wFMCommunicate request_size=4 [14:26:10]MH_SAM_APDU [14:26:10]CAPDU: 80 13 01 00 [14:26:10]Write to MH i2c: E2 08 00 6A 1F 80 13 01 00 00 00 00 00 06 [14:26:10]Write i2c OK [14:26:10]MH_I2C_Read... [14:26:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:10]Read from MH i2c: E2 [14:26:10]MH_I2C_Read... [14:26:10]Read from MH i2c: E2 0E 00 [14:26:10]MH_I2C_Read... [14:26:10]Read from MH i2c: E2 0E 00 6A 1F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 15 [14:26:10]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:26:10]wFMCommunicate OK [14:26:10]SAM_PROTO_GetShiftState done [14:26:10]FM_GetShiftState done [14:26:10]opened in 1729900879 [14:26:10]opened+sec_in_day 1729987279 [14:26:10]quantity*price = 100021 [14:26:10]sum+1 = 100023 [14:26:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 292 26.10.2024 14:26 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201530 ФПД: 198603325237313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142611&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201530&fm=198603325237313&tin=02508201610067®Number=0000000000091777&sum=100000 [14:26:11]StoreToDocumentArchive [14:26:11]shift 543 fd 201530 [14:26:11]save to /storage/0543/doc_00201530 [14:26:11]save last doc name /storage/0543/doc_00201530 to /storage/kkm_last_doc_name [14:26:11]save OK [14:26:11]Clear old archive folders... [14:26:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:26:11]tlvbuf is 01FAC090 [14:26:11]SAM_PROTO_ClearQueue [14:26:11]wFMCommunicate request_size=4 [14:26:11]MH_SAM_APDU [14:26:11]CAPDU: 80 09 00 00 [14:26:11]Write to MH i2c: E2 08 00 77 1F 80 09 00 00 00 00 00 00 08 [14:26:11]Write i2c OK [14:26:11]MH_I2C_Read... [14:26:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:11]Read from MH i2c: E2 [14:26:11]MH_I2C_Read... [14:26:11]Read from MH i2c: E2 03 00 [14:26:11]MH_I2C_Read... [14:26:11]Read from MH i2c: E2 03 00 77 1F 00 90 00 0A [14:26:11]RAPDU: 90 00 [14:26:11]wFMCommunicate OK [14:26:11]SAM_PROTO_ClearQueue done [14:26:11]KKMCreateOFDPacket [14:26:11]OFDProtocolAddRootSTLVToBuf [14:26:11]FM_MakeSignedData [14:26:11]FM_MakeSignedData [14:26:11]SAM_PROTO_SignData [14:26:11]wFMCommunicate request_size=4 [14:26:11]MH_SAM_APDU [14:26:11]CAPDU: 80 0D 01 02 [14:26:11]Write to MH i2c: E2 08 00 78 1F 80 0D 01 02 00 00 00 00 10 [14:26:11]Write i2c OK [14:26:11]MH_I2C_Read... [14:26:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:11]Read from MH i2c: E2 [14:26:11]MH_I2C_Read... [14:26:11]Read from MH i2c: E2 03 00 [14:26:11]MH_I2C_Read... [14:26:11]Read from MH i2c: E2 03 00 78 1F 00 90 00 0B [14:26:11]RAPDU: 90 00 [14:26:11]wFMCommunicate OK [14:26:11]wFMCommunicate request_size=255 [14:26:11]MH_SAM_APDU [14:26:11]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 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 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 7E 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 24 01 00 00 F4 03 04 00 03 FC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3A 13 03 00 35 04 06 00 B4 [14:26:11]Write to MH i2c: E2 02 01 79 1F 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 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 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 7E 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 24 01 00 00 F4 03 04 00 03 FC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3A 13 03 00 35 04 06 00 B4 00 00 8E [14:26:11]Write i2c OK [14:26:11]MH_I2C_Read... [14:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:12]Read from MH i2c: E2 [14:26:12]MH_I2C_Read... [14:26:12]Read from MH i2c: E2 03 00 [14:26:12]MH_I2C_Read... [14:26:12]Read from MH i2c: E2 03 00 79 1F 00 90 00 0C [14:26:12]RAPDU: 90 00 [14:26:12]wFMCommunicate OK [14:26:12]wFMCommunicate request_size=10 [14:26:12]MH_SAM_APDU [14:26:12]CAPDU: 80 0D 02 02 05 A0 F0 A6 E8 41 [14:26:12]Write to MH i2c: E2 0D 00 7A 1F 80 0D 02 02 05 00 A0 F0 A6 E8 41 00 00 7C [14:26:12]Write i2c OK [14:26:12]MH_I2C_Read... [14:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:12]Read from MH i2c: E2 [14:26:12]MH_I2C_Read... [14:26:12]Read from MH i2c: E2 03 00 [14:26:12]MH_I2C_Read... [14:26:12]Read from MH i2c: E2 03 00 7A 1F 00 90 00 0D [14:26:12]RAPDU: 90 00 [14:26:12]wFMCommunicate OK [14:26:12]wFMCommunicate request_size=4 [14:26:12]MH_SAM_APDU [14:26:12]CAPDU: 80 0D 03 02 [14:26:12]Write to MH i2c: E2 08 00 7B 1F 80 0D 03 02 00 00 00 00 15 [14:26:12]Write i2c OK [14:26:12]MH_I2C_Read... [14:26:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:12]Read from MH i2c: E2 [14:26:12]MH_I2C_Read... [14:26:12]Read from MH i2c: E2 0B 00 [14:26:12]MH_I2C_Read... [14:26:12]Read from MH i2c: E2 0B 00 7B 1F 00 0F B7 B2 4D 25 BE 86 5E 90 00 A2 [14:26:12]RAPDU: 0F B7 B2 4D 25 BE 86 5E 90 00 [14:26:12]wFMCommunicate OK [14:26:12]SAM_PROTO_SignData done [14:26:12]FM_MakeSignedData done [14:26:12]CreateOFDProtocolMessage [14:26:12]wFMCommunicate request_size=4 [14:26:12]MH_SAM_APDU [14:26:12]CAPDU: 80 11 00 00 [14:26:12]Write to MH i2c: E2 08 00 7C 1F 80 11 00 00 00 00 00 00 15 [14:26:12]Write i2c OK [14:26:12]MH_I2C_Read... [14:26:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:12]Read from MH i2c: E2 [14:26:12]MH_I2C_Read... [14:26:12]Read from MH i2c: E2 17 00 [14:26:12]MH_I2C_Read... [14:26:12]Read from MH i2c: E2 17 00 7C 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6A [14:26:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:26:12]wFMCommunicate OK [14:26:12]CreateOFDProtocolMessage done [14:26:12]OFDSenderStorePacket 201530 [14:26:12]StoreOFDPacket docnum=201530 [14:26:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 3D 85 07 01 85 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 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 7E 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 24 01 00 00 F4 03 04 00 03 FC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3A 13 03 00 35 04 06 00 B4 A0 F0 A6 E8 41 0F B7 B2 4D 25 BE 86 5E [14:26:12]CheckFolder [14:26:12]dirname=/storage/ofd_packets [14:26:12]CheckFolder done [14:26:12]ProducePacketName [14:26:12]name=ofd_packets/00201530 [14:26:12]NVStorageSaveData ofd_packets/00201530 [14:26:12]File name is /storage/ofd_packets/00201530 [14:26:12]Write 301 bytes [14:26:12]NVStorageSaveData done [14:26:12]OFDSenderStorePacket done [14:26:12]KKMCreateOFDPacket done [14:26:12]NVStorageSaveData kkm_last_timestamp [14:26:12]File name is /storage/kkm_last_timestamp [14:26:12]Write 4 bytes [14:26:12]NVStorageSaveData done [14:26:12]ExternCall_PrintAddStr [14:26:12]wPrintStart [14:26:12]Write to MH i2c: 01 00 00 7D 1F 9C [14:26:12]Write i2c OK [14:26:12]MH_I2C_Read... [14:26:12]Read from MH i2c: 01 [14:26:12]MH_I2C_Read... [14:26:12]Read from MH i2c: 01 07 00 [14:26:12]MH_I2C_Read... [14:26:12]Read from MH i2c: 01 07 00 7D 1F 00 00 00 00 00 FF 0F B1 [14:26:12]RasterBufferAndPrint [14:26:12]line Счет N : (1)449281 [14:26:12]line ИНН: 02508201610067 [14:26:12]line Контрольно-Кассовый Чек [14:26:12]line ПРОДАЖА [14:26:12]line ТРК (МРК, ГНК) : 61 [14:26:12]line Товар: 2710124500 [14:26:12]line Аи-95-К-3 [14:26:12]line 13.480 * 74.20 [14:26:12]line = 1000.22 [14:26:12]line НДС 12% НСП 1% [14:26:12]line > о реализуемом товаре [14:26:12]line ОКРУГЛЕНИЕ: -0.22 [14:26:12]line ИТОГО: 1000.00 [14:26:12]line Внесено: 1000.00 [14:26:12]line СДАЧА: 0.00 [14:26:12]line НСП 1% : 8.85 [14:26:12]line НДС 12% : 106.22 [14:26:12]line Наличными: 1000.00 [14:26:12]line Безнал.: 0.00 [14:26:12]line Место: АЗС № 171 "Партнер Нефть" [14:26:12]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:26:12]line СНО: Общий режим [14:26:12]line Чек 292 26.10.2024 14:26 [14:26:12]line Смена: 543 ФФД: 1.0 [14:26:12]line ЗНМ: 0300000109 [14:26:12]line РНМ: 0000000000091777 [14:26:12]line Версия ККМ: 001 [14:26:12]line ФМ: 0000000000871756 [14:26:12]line ФД: 201530 [14:26:12]line ФПД: 198603325237313 [14:26:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142611&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201530&fm=198603325237313&tin=02508201610067®Number=0000000000091777&sum=100000 [14:26:12]OFD Sender: Processing packet 201530 [packets to send 112, broken 111] [14:26:12]ProducePacketName [14:26:12]name=ofd_packets/00201530 [14:26:12]OFD Sender: To server: pG, [14:26:12]CommunicateWithHost lk.salyk.kg:30040 [14:26:12]ConnectInit lk.salyk.kg [14:26:12]written 0, free lines is 4095 [14:26:12]Connected sock=10 [14:26:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 3D 85 07 01 85 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 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 7E 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 24 01 00 00 F4 03 04 00 03 FC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3A 13 03 00 35 04 06 00 B4 A0 F0 A6 E8 41 0F B7 B2 4D 25 BE 86 5E [14:26:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 31 10 47 00 8D F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3A 13 03 00 F4 03 04 00 AC A7 1C 67 B6 04 01 00 00 FE 88 99 1E 22 7F 28 2E [14:26:12]CommunicateWithHost err = 0 [14:26:12]CheckOFDResponse [14:26:12]1017 (14) - 77093643461234 [14:26:12]1041 (16) - 0000000000871756 [14:26:12]1040 (4) - 201530 [14:26:12]1012 (4) - 26.10.2024 08:26 [14:26:12]1206 (1) - 0 [14:26:12]OFD Sender: Remove packet 201530 [14:26:12]ProducePacketName [14:26:12]name=ofd_packets/00201530 [14:26:12]NVStorageDeleteData [14:26:12]Write to MH i2c: 01 00 00 A8 1F C7 [14:26:12]Write i2c OK [14:26:12]MH_I2C_Read... [14:26:12]Read from MH i2c: 01 [14:26:12]MH_I2C_Read... [14:26:12]Read from MH i2c: 01 07 00 [14:26:12]MH_I2C_Read... [14:26:12]Read from MH i2c: 01 07 00 A8 1F 00 00 00 00 00 A1 0C 7B [14:26:12]RasterBufferAndPrint [14:26:12]line [14:26:12]line [14:26:12]line [14:26:12]line [14:26:12]line [14:26:12]written 0, free lines is 3238 [14:26:13]MH_Cut [14:26:13]Write to MH i2c: D1 01 00 AF 1F 01 A0 [14:26:13]Write i2c OK [14:26:13]MH_I2C_Read... [14:26:13]Read from MH i2c: D1 [14:26:13]MH_I2C_Read... [14:26:13]Read from MH i2c: D1 01 00 [14:26:13]MH_I2C_Read... [14:26:13]Read from MH i2c: D1 01 00 AF 1F 00 9F [14:26:13]Write to MH i2c: 01 00 00 B0 1F CF [14:26:13]Write i2c OK [14:26:13]MH_I2C_Read... [14:26:13]OFD Sender: No OFD packet to send [14:26:13]*** Cut start [14:26:13]*** Purtial cut [14:26:13]*** Stage 1: CUTSNS_PIN = 1 [14:26:14]Read from MH i2c: 01 [14:26:14]MH_I2C_Read... [14:26:14]*** Stop cut motor [14:26:14]Read from MH i2c: 01 07 00 [14:26:14]MH_I2C_Read... [14:26:14]*** Cut end [14:26:14]Read from MH i2c: 01 07 00 B0 1F 00 00 00 00 00 FF 0F E4 [14:26:14]process_action close_receipt done [14:26:14]requested_data is exist [14:26:14]produce_requested_data [14:26:14]requested_item fm.sn is exist - process it [14:26:14]wFMCommunicate request_size=4 [14:26:14]MH_SAM_APDU [14:26:14]CAPDU: 80 11 00 00 [14:26:14]Write to MH i2c: E2 08 00 B1 1F 80 11 00 00 00 00 00 00 4A [14:26:14]Write i2c OK [14:26:14]MH_I2C_Read... [14:26:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:14]Read from MH i2c: E2 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 17 00 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 17 00 B1 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9F [14:26:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:26:14]wFMCommunicate OK [14:26:14]requested_item fd.num is exist - process it [14:26:14]SAM_PROTO_GetFieldsCounters [14:26:14]wFMCommunicate request_size=4 [14:26:14]MH_SAM_APDU [14:26:14]CAPDU: 80 13 00 00 [14:26:14]Write to MH i2c: E2 08 00 B2 1F 80 13 00 00 00 00 00 00 4D [14:26:14]Write i2c OK [14:26:14]MH_I2C_Read... [14:26:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:14]Read from MH i2c: E2 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 62 00 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 62 00 B2 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3A 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 56 [14:26:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3A 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:26:14]wFMCommunicate OK [14:26:14]SAM_PROTO_GetFieldsCounters done [14:26:14]requested_item shift.num is exist - process it [14:26:14]requested_item shift.opened is exist - process it [14:26:14]req_shift_opened [14:26:14]FM_GetShiftState [14:26:14]SAM_PROTO_GetShiftState [14:26:14]wFMCommunicate request_size=4 [14:26:14]MH_SAM_APDU [14:26:14]CAPDU: 80 13 01 00 [14:26:14]Write to MH i2c: E2 08 00 B3 1F 80 13 01 00 00 00 00 00 4F [14:26:14]Write i2c OK [14:26:14]MH_I2C_Read... [14:26:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:14]Read from MH i2c: E2 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 0E 00 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 0E 00 B3 1F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 5E [14:26:14]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:26:14]wFMCommunicate OK [14:26:14]SAM_PROTO_GetShiftState done [14:26:14]FM_GetShiftState done [14:26:14]req_shift_opened done [14:26:14]requested_item shift.open_date is exist - process it [14:26:14]req_shift_open_date [14:26:14]req_shift_open_date done [14:26:14]produce_requested_data done [14:26:14]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201530,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:26:14]process_action_free close_receipt [14:26:14]json_value_free [14:26:14]json_value_free done [14:26:14]process_json_proto returns [14:26:14]Send response to host [14:26:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201530,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:26:14]free response buf [14:26:14]execute_script done [14:26:14]execute_script returns [14:26:14]free content buf [14:26:14]Sock 8.Close socket [14:26:14]Sock 8.Thread stoped [14:26:17]accept exits with 9 [14:26:17]New connection [14:26:17]New thread 3066834276 created [14:26:17]Thread 3066690916 joined [14:26:17]Waiting for new connection... [14:26:17] Sock 9.Parse request [14:26:17]Sock 9.Check first char [14:26:17]Sock 9.First char is OK [14:26:17]request: POST /json_proto HTTP/1.0 [14:26:17]Method: POST [14:26:17]URL: /json_proto [14:26:17]Method is POST - this is cgi request [14:26:17]url: /json_proto [14:26:17]query_string will be loaded in cgi processing [14:26:17]execute_cgi json_proto POST (null) [14:26:17]execute_cgi path=json_proto method=POST [14:26:17]POST find Content-Length [14:26:17]Host: 172.17.63.195:8080 [14:26:17]Content-Length: 632 [14:26:17]Content-Type: application/json [14:26:17] [14:26:17]POST finish read [14:26:17]Found Content-Length = 632 [14:26:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:17]execute_script... [14:26: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)449283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:17]POST & json_proto [14:26:17]process_json_proto [14:26:17]json parsed OK: [14:26:17]protocol is kg_v1.0 [14:26:17]action value=close_receipt [14:26:17]process_action close_receipt [14:26:17]cmd_close_receipt [14:26:17]MH_GetDate [14:26:17]Write to MH i2c: F0 00 00 B4 1F C2 [14:26:17]Write i2c OK [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: F0 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: F0 09 00 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: F0 09 00 B4 1F 00 0A FC 1C 67 68 46 19 67 82 [14:26:17]GetLastDocTimeStamp 1729952771 [14:26:17]current date 1729952778 [14:26:17]FM_GetShiftState [14:26:17]SAM_PROTO_GetShiftState [14:26:17]wFMCommunicate request_size=4 [14:26:17]MH_SAM_APDU [14:26:17]CAPDU: 80 13 01 00 [14:26:17]Write to MH i2c: E2 08 00 B5 1F 80 13 01 00 00 00 00 00 51 [14:26:17]Write i2c OK [14:26:17]MH_I2C_Read... [14:26:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:17]Read from MH i2c: E2 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: E2 0E 00 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: E2 0E 00 B5 1F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 60 [14:26:17]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:26:17]wFMCommunicate OK [14:26:17]SAM_PROTO_GetShiftState done [14:26:17]FM_GetShiftState done [14:26:17]opened in 1729900879 [14:26:17]opened+sec_in_day 1729987279 [14:26:17]quantity*price = 50000 [14:26:17]sum+1 = 50001 [14:26:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 293 26.10.2024 14:26 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201531 ФПД: 55438144626735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142619&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201531&fm=55438144626735&tin=02508201610067®Number=0000000000091777&sum=50000 [14:26:19]StoreToDocumentArchive [14:26:19]shift 543 fd 201531 [14:26:19]save to /storage/0543/doc_00201531 [14:26:19]save last doc name /storage/0543/doc_00201531 to /storage/kkm_last_doc_name [14:26:19]save OK [14:26:19]Clear old archive folders... [14:26:19]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:26:19]tlvbuf is 01F58470 [14:26:19]SAM_PROTO_ClearQueue [14:26:19]wFMCommunicate request_size=4 [14:26:19]MH_SAM_APDU [14:26:19]CAPDU: 80 09 00 00 [14:26:19]Write to MH i2c: E2 08 00 C2 1F 80 09 00 00 00 00 00 00 53 [14:26:19]Write i2c OK [14:26:19]MH_I2C_Read... [14:26:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:19]Read from MH i2c: E2 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 03 00 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 03 00 C2 1F 00 90 00 55 [14:26:19]RAPDU: 90 00 [14:26:19]wFMCommunicate OK [14:26:19]SAM_PROTO_ClearQueue done [14:26:19]KKMCreateOFDPacket [14:26:19]OFDProtocolAddRootSTLVToBuf [14:26:19]FM_MakeSignedData [14:26:19]FM_MakeSignedData [14:26:19]SAM_PROTO_SignData [14:26:19]wFMCommunicate request_size=4 [14:26:19]MH_SAM_APDU [14:26:19]CAPDU: 80 0D 01 02 [14:26:19]Write to MH i2c: E2 08 00 C3 1F 80 0D 01 02 00 00 00 00 5B [14:26:19]Write i2c OK [14:26:19]MH_I2C_Read... [14:26:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:19]Read from MH i2c: E2 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 03 00 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 03 00 C3 1F 00 90 00 56 [14:26:19]RAPDU: 90 00 [14:26:19]wFMCommunicate OK [14:26:19]wFMCommunicate request_size=255 [14:26:19]MH_SAM_APDU [14:26:19]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 0B FC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3B 13 03 00 35 04 06 00 [14:26:19]Write to MH i2c: E2 02 01 C4 1F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 0B FC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3B 13 03 00 35 04 06 00 00 00 6E [14:26:19]Write i2c OK [14:26:19]MH_I2C_Read... [14:26:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:19]Read from MH i2c: E2 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 03 00 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 03 00 C4 1F 00 90 00 57 [14:26:19]RAPDU: 90 00 [14:26:19]wFMCommunicate OK [14:26:19]wFMCommunicate request_size=11 [14:26:19]MH_SAM_APDU [14:26:19]CAPDU: 80 0D 02 02 06 32 6B B2 EA E0 2F [14:26:19]Write to MH i2c: E2 0E 00 C5 1F 80 0D 02 02 06 00 32 6B B2 EA E0 2F 00 00 B2 [14:26:19]Write i2c OK [14:26:19]MH_I2C_Read... [14:26:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:19]Read from MH i2c: E2 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 03 00 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 03 00 C5 1F 00 90 00 58 [14:26:19]RAPDU: 90 00 [14:26:19]wFMCommunicate OK [14:26:19]wFMCommunicate request_size=4 [14:26:19]MH_SAM_APDU [14:26:19]CAPDU: 80 0D 03 02 [14:26:19]Write to MH i2c: E2 08 00 C6 1F 80 0D 03 02 00 00 00 00 60 [14:26:19]Write i2c OK [14:26:19]MH_I2C_Read... [14:26:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:19]Read from MH i2c: E2 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 0B 00 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 0B 00 C6 1F 00 21 A9 3D 86 AE 69 59 8B 90 00 E9 [14:26:19]RAPDU: 21 A9 3D 86 AE 69 59 8B 90 00 [14:26:19]wFMCommunicate OK [14:26:19]SAM_PROTO_SignData done [14:26:19]FM_MakeSignedData done [14:26:19]CreateOFDProtocolMessage [14:26:19]wFMCommunicate request_size=4 [14:26:19]MH_SAM_APDU [14:26:19]CAPDU: 80 11 00 00 [14:26:19]Write to MH i2c: E2 08 00 C7 1F 80 11 00 00 00 00 00 00 60 [14:26:19]Write i2c OK [14:26:19]MH_I2C_Read... [14:26:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:19]Read from MH i2c: E2 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 17 00 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 17 00 C7 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B5 [14:26:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:26:19]wFMCommunicate OK [14:26:19]CreateOFDProtocolMessage done [14:26:19]OFDSenderStorePacket 201531 [14:26:19]StoreOFDPacket docnum=201531 [14:26:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 C2 B2 08 01 65 72 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 0B FC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3B 13 03 00 35 04 06 00 32 6B B2 EA E0 2F 21 A9 3D 86 AE 69 59 8B [14:26:19]CheckFolder [14:26:19]dirname=/storage/ofd_packets [14:26:19]CheckFolder done [14:26:19]ProducePacketName [14:26:19]name=ofd_packets/00201531 [14:26:19]NVStorageSaveData ofd_packets/00201531 [14:26:19]File name is /storage/ofd_packets/00201531 [14:26:19]Write 302 bytes [14:26:19]NVStorageSaveData done [14:26:19]OFDSenderStorePacket done [14:26:19]KKMCreateOFDPacket done [14:26:19]NVStorageSaveData kkm_last_timestamp [14:26:19]File name is /storage/kkm_last_timestamp [14:26:19]Write 4 bytes [14:26:19]NVStorageSaveData done [14:26:19]ExternCall_PrintAddStr [14:26:19]wPrintStart [14:26:19]Write to MH i2c: 01 00 00 C8 1F E7 [14:26:19]Write i2c OK [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: 01 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: 01 07 00 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: 01 07 00 C8 1F 00 00 00 00 00 FF 0F FC [14:26:19]RasterBufferAndPrint [14:26:19]line Счет N : (1)449283 [14:26:19]line ИНН: 02508201610067 [14:26:19]line Контрольно-Кассовый Чек [14:26:19]line ПРОДАЖА [14:26:19]line ТРК (МРК, ГНК) : 42 [14:26:19]line Товар: 2710124130 [14:26:19]line SUPER 92-К-5 [14:26:19]line 7.310 * 68.40 [14:26:19]line = 500.00 [14:26:19]line НДС 12% НСП 1% [14:26:19]line > о реализуемом товаре [14:26:19]line ИТОГО: 500.00 [14:26:19]line НСП 1% : 4.42 [14:26:19]line НДС 12% : 53.10 [14:26:19]line Наличными: 500.00 [14:26:19]line Безнал.: 0.00 [14:26:19]line Место: АЗС № 171 "Партнер Нефть" [14:26:19]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:26:19]line СНО: Общий режим [14:26:19]line Чек 293 26.10.2024 14:26 [14:26:19]line Смена: 543 ФФД: 1.0 [14:26:19]line ЗНМ: 0300000109 [14:26:19]line РНМ: 0000000000091777 [14:26:19]line Версия ККМ: 001 [14:26:19]line ФМ: 0000000000871756 [14:26:19]line ФД: 201531 [14:26:19]line ФПД: 55438144626735 [14:26:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142619&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201531&fm=55438144626735&tin=02508201610067®Number=0000000000091777&sum=50000 [14:26:19]written 0, free lines is 4095 [14:26:19]OFD Sender: Processing packet 201531 [packets to send 112, broken 111] [14:26:19]ProducePacketName [14:26:19]name=ofd_packets/00201531 [14:26:19]OFD Sender: To server: pG, [14:26:19]CommunicateWithHost lk.salyk.kg:30040 [14:26:19]ConnectInit lk.salyk.kg [14:26:19]Connected sock=10 [14:26:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 C2 B2 08 01 65 72 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 0B FC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3B 13 03 00 35 04 06 00 32 6B B2 EA E0 2F 21 A9 3D 86 AE 69 59 8B [14:26:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 6B B9 47 00 9E C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3B 13 03 00 F4 03 04 00 B3 A7 1C 67 B6 04 01 00 00 87 F2 3A 4C 0C 7F 20 1B [14:26:19]CommunicateWithHost err = 0 [14:26:19]CheckOFDResponse [14:26:19]1017 (14) - 77093643461234 [14:26:19]1041 (16) - 0000000000871756 [14:26:19]1040 (4) - 201531 [14:26:19]1012 (4) - 26.10.2024 08:26 [14:26:19]1206 (1) - 0 [14:26:19]OFD Sender: Remove packet 201531 [14:26:19]ProducePacketName [14:26:19]name=ofd_packets/00201531 [14:26:19]NVStorageDeleteData [14:26:20]Write to MH i2c: 01 00 00 F0 1F 0F [14:26:20]Write i2c OK [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: 01 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: 01 07 00 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: 01 07 00 F0 1F 00 00 00 00 00 D5 0C F7 [14:26:20]RasterBufferAndPrint [14:26:20]line [14:26:20]line [14:26:20]line [14:26:20]line [14:26:20]line [14:26:20]written 0, free lines is 3292 [14:26:20]MH_Cut [14:26:20]Write to MH i2c: D1 01 00 F7 1F 01 E8 [14:26:20]Write i2c OK [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: D1 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: D1 01 00 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: D1 01 00 F7 1F 00 E7 [14:26:20]Write to MH i2c: 01 00 00 F8 1F 17 [14:26:20]Write i2c OK [14:26:20]MH_I2C_Read... [14:26:20]OFD Sender: No OFD packet to send [14:26:20]*** Cut start [14:26:20]*** Purtial cut [14:26:20]*** Stage 1: CUTSNS_PIN = 1 [14:26:21]Read from MH i2c: 01 [14:26:21]MH_I2C_Read... [14:26:21]*** Stop cut motor [14:26:21]*** Cut end [14:26:21]Read from MH i2c: 01 07 00 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: 01 07 00 F8 1F 00 00 00 00 00 FF 0F 2C [14:26:21]process_action close_receipt done [14:26:21]requested_data is exist [14:26:21]produce_requested_data [14:26:21]requested_item fm.sn is exist - process it [14:26:21]wFMCommunicate request_size=4 [14:26:21]MH_SAM_APDU [14:26:21]CAPDU: 80 11 00 00 [14:26:21]Write to MH i2c: E2 08 00 F9 1F 80 11 00 00 00 00 00 00 92 [14:26:21]Write i2c OK [14:26:21]MH_I2C_Read... [14:26:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:21]Read from MH i2c: E2 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: E2 17 00 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: E2 17 00 F9 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E7 [14:26:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:26:21]wFMCommunicate OK [14:26:21]requested_item fd.num is exist - process it [14:26:21]SAM_PROTO_GetFieldsCounters [14:26:21]wFMCommunicate request_size=4 [14:26:21]MH_SAM_APDU [14:26:21]CAPDU: 80 13 00 00 [14:26:21]Write to MH i2c: E2 08 00 FA 1F 80 13 00 00 00 00 00 00 95 [14:26:21]Write i2c OK [14:26:21]MH_I2C_Read... [14:26:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:21]Read from MH i2c: E2 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: E2 62 00 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: E2 62 00 FA 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3B 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 A2 [14:26:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3B 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:26:21]wFMCommunicate OK [14:26:21]SAM_PROTO_GetFieldsCounters done [14:26:21]requested_item shift.num is exist - process it [14:26:21]requested_item shift.opened is exist - process it [14:26:21]req_shift_opened [14:26:21]FM_GetShiftState [14:26:21]SAM_PROTO_GetShiftState [14:26:21]wFMCommunicate request_size=4 [14:26:21]MH_SAM_APDU [14:26:21]CAPDU: 80 13 01 00 [14:26:21]Write to MH i2c: E2 08 00 FB 1F 80 13 01 00 00 00 00 00 97 [14:26:21]Write i2c OK [14:26:21]MH_I2C_Read... [14:26:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:21]Read from MH i2c: E2 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: E2 0E 00 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: E2 0E 00 FB 1F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 A6 [14:26:21]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:26:21]wFMCommunicate OK [14:26:21]SAM_PROTO_GetShiftState done [14:26:21]FM_GetShiftState done [14:26:21]req_shift_opened done [14:26:21]requested_item shift.open_date is exist - process it [14:26:21]req_shift_open_date [14:26:21]req_shift_open_date done [14:26:21]produce_requested_data done [14:26:21]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201531,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:26:21]process_action_free close_receipt [14:26:21]json_value_free [14:26:21]json_value_free done [14:26:21]process_json_proto returns [14:26:21]Send response to host [14:26:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201531,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:26:21]free response buf [14:26:21]execute_script done [14:26:21]execute_script returns [14:26:21]free content buf [14:26:21]Sock 9.Close socket [14:26:21]Sock 9.Thread stoped [14:26:25]OFD Sender: No OFD packet to send [14:26:30]OFD Sender: No OFD packet to send [14:26:35]OFD Sender: No OFD packet to send [14:26:40]OFD Sender: No OFD packet to send [14:26:45]OFD Sender: No OFD packet to send [14:26:50]OFD Sender: No OFD packet to send [14:26:55]OFD Sender: No OFD packet to send [14:27:00]OFD Sender: No OFD packet to send [14:27:05]OFD Sender: No OFD packet to send [14:27:10]OFD Sender: No OFD packet to send [14:27:15]OFD Sender: No OFD packet to send [14:27:20]OFD Sender: No OFD packet to send [14:27:25]OFD Sender: No OFD packet to send [14:27:30]accept exits with 8 [14:27:30]New connection [14:27:30]New thread 3066690916 created [14:27:30]Thread 3066834276 joined [14:27:30]Waiting for new connection... [14:27:30] Sock 8.Parse request [14:27:30]Sock 8.Check first char [14:27:30]Sock 8.First char is OK [14:27:30]request: POST /json_proto HTTP/1.0 [14:27:30]Method: POST [14:27:30]URL: /json_proto [14:27:30]Method is POST - this is cgi request [14:27:30]url: /json_proto [14:27:30]query_string will be loaded in cgi processing [14:27:30]execute_cgi json_proto POST (null) [14:27:30]execute_cgi path=json_proto method=POST [14:27:30]POST find Content-Length [14:27:30]Host: 172.17.63.195:8080 [14:27:30]Content-Length: 769 [14:27:30]Content-Type: application/json [14:27:30] [14:27:30]POST finish read [14:27:30]Found Content-Length = 769 [14:27:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:30]execute_script... [14:27: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)449285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:30]POST & json_proto [14:27:30]process_json_proto [14:27:30]json parsed OK: [14:27:30]protocol is kg_v1.0 [14:27:30]action value=close_receipt [14:27:30]process_action close_receipt [14:27:30]cmd_close_receipt [14:27:30]MH_GetDate [14:27:30]Write to MH i2c: F0 00 00 FC 1F 0A [14:27:30]Write i2c OK [14:27:30]MH_I2C_Read... [14:27:30]Read from MH i2c: F0 [14:27:30]MH_I2C_Read... [14:27:30]Read from MH i2c: F0 09 00 [14:27:30]MH_I2C_Read... [14:27:30]Read from MH i2c: F0 09 00 FC 1F 00 53 FC 1C 67 68 46 19 67 13 [14:27:30]GetLastDocTimeStamp 1729952779 [14:27:30]current date 1729952851 [14:27:30]FM_GetShiftState [14:27:30]SAM_PROTO_GetShiftState [14:27:30]wFMCommunicate request_size=4 [14:27:30]MH_SAM_APDU [14:27:30]CAPDU: 80 13 01 00 [14:27:30]Write to MH i2c: E2 08 00 FD 1F 80 13 01 00 00 00 00 00 99 [14:27:30]Write i2c OK [14:27:30]MH_I2C_Read... [14:27:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:30]Read from MH i2c: E2 [14:27:30]MH_I2C_Read... [14:27:30]Read from MH i2c: E2 0E 00 [14:27:30]MH_I2C_Read... [14:27:30]Read from MH i2c: E2 0E 00 FD 1F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 A8 [14:27:30]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:27:30]wFMCommunicate OK [14:27:30]SAM_PROTO_GetShiftState done [14:27:30]FM_GetShiftState done [14:27:30]opened in 1729900879 [14:27:30]opened+sec_in_day 1729987279 [14:27:30]quantity*price = 100015 [14:27:30]sum+1 = 100017 [14:27:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 294 26.10.2024 14:27 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201532 ФПД: 249265481541635 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142731&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201532&fm=249265481541635&tin=02508201610067®Number=0000000000091777&sum=100016 [14:27:31]StoreToDocumentArchive [14:27:31]shift 543 fd 201532 [14:27:31]save to /storage/0543/doc_00201532 [14:27:31]save last doc name /storage/0543/doc_00201532 to /storage/kkm_last_doc_name [14:27:31]save OK [14:27:31]Clear old archive folders... [14:27:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:27:31]tlvbuf is 01FF46F0 [14:27:31]SAM_PROTO_ClearQueue [14:27:31]wFMCommunicate request_size=4 [14:27:31]MH_SAM_APDU [14:27:31]CAPDU: 80 09 00 00 [14:27:31]Write to MH i2c: E2 08 00 0A 20 80 09 00 00 00 00 00 00 9C [14:27:31]Write i2c OK [14:27:31]MH_I2C_Read... [14:27:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:31]Read from MH i2c: E2 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 03 00 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 03 00 0A 20 00 90 00 9E [14:27:31]RAPDU: 90 00 [14:27:31]wFMCommunicate OK [14:27:31]SAM_PROTO_ClearQueue done [14:27:31]KKMCreateOFDPacket [14:27:31]OFDProtocolAddRootSTLVToBuf [14:27:31]FM_MakeSignedData [14:27:31]FM_MakeSignedData [14:27:31]SAM_PROTO_SignData [14:27:31]wFMCommunicate request_size=4 [14:27:31]MH_SAM_APDU [14:27:31]CAPDU: 80 0D 01 02 [14:27:31]Write to MH i2c: E2 08 00 0B 20 80 0D 01 02 00 00 00 00 A4 [14:27:31]Write i2c OK [14:27:31]MH_I2C_Read... [14:27:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:31]Read from MH i2c: E2 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 03 00 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 03 00 0B 20 00 90 00 9F [14:27:31]RAPDU: 90 00 [14:27:31]wFMCommunicate OK [14:27:31]wFMCommunicate request_size=255 [14:27:31]MH_SAM_APDU [14:27: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 32 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 B0 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 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 53 FC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3C 13 03 00 35 04 06 00 E2 [14:27:31]Write to MH i2c: E2 02 01 0C 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B0 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 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 53 FC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3C 13 03 00 35 04 06 00 E2 00 00 A0 [14:27:31]Write i2c OK [14:27:31]MH_I2C_Read... [14:27:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:31]Read from MH i2c: E2 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 03 00 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 03 00 0C 20 00 90 00 A0 [14:27:31]RAPDU: 90 00 [14:27:31]wFMCommunicate OK [14:27:31]wFMCommunicate request_size=10 [14:27:31]MH_SAM_APDU [14:27:31]CAPDU: 80 0D 02 02 05 B4 A4 7B 68 03 [14:27:31]Write to MH i2c: E2 0D 00 0D 20 80 0D 02 02 05 00 B4 A4 7B 68 03 00 00 EF [14:27:31]Write i2c OK [14:27:31]MH_I2C_Read... [14:27:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:31]Read from MH i2c: E2 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 03 00 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 03 00 0D 20 00 90 00 A1 [14:27:31]RAPDU: 90 00 [14:27:31]wFMCommunicate OK [14:27:31]wFMCommunicate request_size=4 [14:27:31]MH_SAM_APDU [14:27:31]CAPDU: 80 0D 03 02 [14:27:31]Write to MH i2c: E2 08 00 0E 20 80 0D 03 02 00 00 00 00 A9 [14:27:31]Write i2c OK [14:27:31]MH_I2C_Read... [14:27:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:31]Read from MH i2c: E2 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 0B 00 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 0B 00 0E 20 00 96 16 82 1D 96 83 7A A0 90 00 28 [14:27:31]RAPDU: 96 16 82 1D 96 83 7A A0 90 00 [14:27:31]wFMCommunicate OK [14:27:31]SAM_PROTO_SignData done [14:27:31]FM_MakeSignedData done [14:27:31]CreateOFDProtocolMessage [14:27:31]wFMCommunicate request_size=4 [14:27:31]MH_SAM_APDU [14:27:31]CAPDU: 80 11 00 00 [14:27:31]Write to MH i2c: E2 08 00 0F 20 80 11 00 00 00 00 00 00 A9 [14:27:31]Write i2c OK [14:27:31]MH_I2C_Read... [14:27:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:31]Read from MH i2c: E2 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 17 00 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 17 00 0F 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FE [14:27:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:27:31]wFMCommunicate OK [14:27:31]CreateOFDProtocolMessage done [14:27:31]OFDSenderStorePacket 201532 [14:27:31]StoreOFDPacket docnum=201532 [14:27:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 56 30 07 01 16 0A 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 32 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 B0 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 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 53 FC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3C 13 03 00 35 04 06 00 E2 B4 A4 7B 68 03 96 16 82 1D 96 83 7A A0 [14:27:31]CheckFolder [14:27:31]dirname=/storage/ofd_packets [14:27:31]CheckFolder done [14:27:31]ProducePacketName [14:27:31]name=ofd_packets/00201532 [14:27:31]NVStorageSaveData ofd_packets/00201532 [14:27:31]File name is /storage/ofd_packets/00201532 [14:27:31]Write 301 bytes [14:27:31]NVStorageSaveData done [14:27:31]OFDSenderStorePacket done [14:27:31]KKMCreateOFDPacket done [14:27:31]NVStorageSaveData kkm_last_timestamp [14:27:31]File name is /storage/kkm_last_timestamp [14:27:31]Write 4 bytes [14:27:31]NVStorageSaveData done [14:27:31]ExternCall_PrintAddStr [14:27:31]wPrintStart [14:27:31]Write to MH i2c: 01 00 00 10 20 30 [14:27:31]Write i2c OK [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: 01 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: 01 07 00 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: 01 07 00 10 20 00 00 00 00 00 FF 0F 45 [14:27:31]RasterBufferAndPrint [14:27:31]line Счет N : (1)449285 [14:27:31]line ИНН: 02508201610067 [14:27:31]line Контрольно-Кассовый Чек [14:27:31]line ПРОДАЖА [14:27:31]line ТРК (МРК, ГНК) : 62 [14:27:31]line Товар: 2710124130 [14:27:31]line Аи-92-К-2 [14:27:31]line 14.950 * 66.90 [14:27:31]line = 1000.16 [14:27:31]line НДС 12% НСП 1% [14:27:31]line > о реализуемом товаре [14:27:31]line ИТОГО: 1000.16 [14:27:31]line НСП 1% : 8.85 [14:27:31]line НДС 12% : 106.21 [14:27:31]line Наличными: 0.00 [14:27:31]line Безнал.: 1000.16 [14:27:31]line Место: АЗС № 171 "Партнер Нефть" [14:27:31]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:27:31]line СНО: Общий режим [14:27:31]line Чек 294 26.10.2024 14:27 [14:27:31]line Смена: 543 ФФД: 1.0 [14:27:31]line ЗНМ: 0300000109 [14:27:31]line РНМ: 0000000000091777 [14:27:31]line Версия ККМ: 001 [14:27:31]line Платежная система: Mbank [14:27:31]line ФМ: 0000000000871756 [14:27:31]line ФД: 201532 [14:27:31]line ФПД: 249265481541635 [14:27:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142731&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201532&fm=249265481541635&tin=02508201610067®Number=0000000000091777&sum=100016 [14:27:32]written 0, free lines is 4095 [14:27:32]OFD Sender: Processing packet 201532 [packets to send 112, broken 111] [14:27:32]ProducePacketName [14:27:32]name=ofd_packets/00201532 [14:27:32]OFD Sender: To server: pG, [14:27:32]CommunicateWithHost lk.salyk.kg:30040 [14:27:32]ConnectInit lk.salyk.kg [14:27:32]Connected sock=10 [14:27:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 56 30 07 01 16 0A 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 32 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 B0 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 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 53 FC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3C 13 03 00 35 04 06 00 E2 B4 A4 7B 68 03 96 16 82 1D 96 83 7A A0 [14:27:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 AF DD 47 00 DE CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3C 13 03 00 F4 03 04 00 FC A7 1C 67 B6 04 01 00 00 E5 94 8C 9B 46 C3 A9 B5 [14:27:32]CommunicateWithHost err = 0 [14:27:32]CheckOFDResponse [14:27:32]1017 (14) - 77093643461234 [14:27:32]1041 (16) - 0000000000871756 [14:27:32]1040 (4) - 201532 [14:27:32]1012 (4) - 26.10.2024 08:27 [14:27:32]1206 (1) - 0 [14:27:32]OFD Sender: Remove packet 201532 [14:27:32]ProducePacketName [14:27:32]name=ofd_packets/00201532 [14:27:32]NVStorageDeleteData [14:27:32]Write to MH i2c: 01 00 00 39 20 59 [14:27:32]Write i2c OK [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: 01 [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: 01 07 00 [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: 01 07 00 39 20 00 00 00 00 00 C8 0C 34 [14:27:32]RasterBufferAndPrint [14:27:32]line [14:27:32]line [14:27:32]line [14:27:32]line [14:27:32]line [14:27:32]written 0, free lines is 3276 [14:27:32]MH_Cut [14:27:32]Write to MH i2c: D1 01 00 40 20 01 32 [14:27:32]Write i2c OK [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: D1 [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: D1 01 00 [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: D1 01 00 40 20 00 31 [14:27:32]Write to MH i2c: 01 00 00 41 20 61 [14:27:32]Write i2c OK [14:27:32]MH_I2C_Read... [14:27:33]OFD Sender: No OFD packet to send [14:27:33]*** Cut start [14:27:33]*** Purtial cut [14:27:33]*** Stage 1: CUTSNS_PIN = 1 [14:27:33]Read from MH i2c: 01 [14:27:33]MH_I2C_Read... [14:27:33]*** Stop cut motor [14:27:33]*** Cut end [14:27:33]Read from MH i2c: 01 07 00 [14:27:33]MH_I2C_Read... [14:27:33]Read from MH i2c: 01 07 00 41 20 00 00 00 00 00 FF 0F 76 [14:27:33]process_action close_receipt done [14:27:33]requested_data is exist [14:27:33]produce_requested_data [14:27:33]requested_item fm.sn is exist - process it [14:27:33]wFMCommunicate request_size=4 [14:27:33]MH_SAM_APDU [14:27:33]CAPDU: 80 11 00 00 [14:27:33]Write to MH i2c: E2 08 00 42 20 80 11 00 00 00 00 00 00 DC [14:27:33]Write i2c OK [14:27:33]MH_I2C_Read... [14:27:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:33]Read from MH i2c: E2 [14:27:33]MH_I2C_Read... [14:27:33]Read from MH i2c: E2 17 00 [14:27:33]MH_I2C_Read... [14:27:33]Read from MH i2c: E2 17 00 42 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 31 [14:27:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:27:33]wFMCommunicate OK [14:27:33]requested_item fd.num is exist - process it [14:27:33]SAM_PROTO_GetFieldsCounters [14:27:33]wFMCommunicate request_size=4 [14:27:33]MH_SAM_APDU [14:27:33]CAPDU: 80 13 00 00 [14:27:33]Write to MH i2c: E2 08 00 43 20 80 13 00 00 00 00 00 00 DF [14:27:33]Write i2c OK [14:27:33]MH_I2C_Read... [14:27:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:34]Read from MH i2c: E2 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 62 00 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 62 00 43 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3C 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 F0 [14:27:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3C 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:27:34]wFMCommunicate OK [14:27:34]SAM_PROTO_GetFieldsCounters done [14:27:34]requested_item shift.num is exist - process it [14:27:34]requested_item shift.opened is exist - process it [14:27:34]req_shift_opened [14:27:34]FM_GetShiftState [14:27:34]SAM_PROTO_GetShiftState [14:27:34]wFMCommunicate request_size=4 [14:27:34]MH_SAM_APDU [14:27:34]CAPDU: 80 13 01 00 [14:27:34]Write to MH i2c: E2 08 00 44 20 80 13 01 00 00 00 00 00 E1 [14:27:34]Write i2c OK [14:27:34]MH_I2C_Read... [14:27:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:34]Read from MH i2c: E2 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 0E 00 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 0E 00 44 20 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F0 [14:27:34]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:27:34]wFMCommunicate OK [14:27:34]SAM_PROTO_GetShiftState done [14:27:34]FM_GetShiftState done [14:27:34]req_shift_opened done [14:27:34]requested_item shift.open_date is exist - process it [14:27:34]req_shift_open_date [14:27:34]req_shift_open_date done [14:27:34]produce_requested_data done [14:27:34]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201532,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:27:34]process_action_free close_receipt [14:27:34]json_value_free [14:27:34]json_value_free done [14:27:34]process_json_proto returns [14:27:34]Send response to host [14:27:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201532,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:27:34]free response buf [14:27:34]execute_script done [14:27:34]execute_script returns [14:27:34]free content buf [14:27:34]Sock 8.Close socket [14:27:34]Sock 8.Thread stoped [14:27:38]OFD Sender: No OFD packet to send [14:27:43]OFD Sender: No OFD packet to send [14:27:48]OFD Sender: No OFD packet to send [14:27:53]OFD Sender: No OFD packet to send [14:27:58]OFD Sender: No OFD packet to send [14:28:03]OFD Sender: No OFD packet to send [14:28:08]OFD Sender: No OFD packet to send [14:28:13]OFD Sender: No OFD packet to send [14:28:13]accept exits with 9 [14:28:13]New connection [14:28:13]New thread 3066834276 created [14:28:13]Thread 3066690916 joined [14:28:13]Waiting for new connection... [14:28:13] Sock 9.Parse request [14:28:13]Sock 9.Check first char [14:28:13]Sock 9.First char is OK [14:28:13]request: POST /json_proto HTTP/1.0 [14:28:13]Method: POST [14:28:13]URL: /json_proto [14:28:13]Method is POST - this is cgi request [14:28:13]url: /json_proto [14:28:13]query_string will be loaded in cgi processing [14:28:13]execute_cgi json_proto POST (null) [14:28:13]execute_cgi path=json_proto method=POST [14:28:13]POST find Content-Length [14:28:13]Host: 172.17.63.195:8080 [14:28:13]Content-Length: 678 [14:28:13]Content-Type: application/json [14:28:13] [14:28:13]POST finish read [14:28:13]Found Content-Length = 678 [14:28:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [14:28:13]execute_script... [14:28:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [14:28:13]POST & json_proto [14:28:13]process_json_proto [14:28:13]json parsed OK: [14:28:13]protocol is kg_v1.0 [14:28:13]action value=close_receipt [14:28:13]process_action close_receipt [14:28:13]cmd_close_receipt [14:28:13]MH_GetDate [14:28:13]Write to MH i2c: F0 00 00 45 20 54 [14:28:13]Write i2c OK [14:28:13]MH_I2C_Read... [14:28:13]Read from MH i2c: F0 [14:28:13]MH_I2C_Read... [14:28:13]Read from MH i2c: F0 09 00 [14:28:13]MH_I2C_Read... [14:28:13]Read from MH i2c: F0 09 00 45 20 00 7E FC 1C 67 68 46 19 67 88 [14:28:13]GetLastDocTimeStamp 1729952851 [14:28:13]current date 1729952894 [14:28:13]FM_GetShiftState [14:28:13]SAM_PROTO_GetShiftState [14:28:13]wFMCommunicate request_size=4 [14:28:13]MH_SAM_APDU [14:28:13]CAPDU: 80 13 01 00 [14:28:13]Write to MH i2c: E2 08 00 46 20 80 13 01 00 00 00 00 00 E3 [14:28:13]Write i2c OK [14:28:13]MH_I2C_Read... [14:28:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:13]Read from MH i2c: E2 [14:28:13]MH_I2C_Read... [14:28:13]Read from MH i2c: E2 0E 00 [14:28:13]MH_I2C_Read... [14:28:13]Read from MH i2c: E2 0E 00 46 20 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F2 [14:28:13]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:28:13]wFMCommunicate OK [14:28:13]SAM_PROTO_GetShiftState done [14:28:13]FM_GetShiftState done [14:28:13]opened in 1729900879 [14:28:13]opened+sec_in_day 1729987279 [14:28:13]quantity*price = 70044 [14:28:13]sum+1 = 70045 [14:28:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 295 26.10.2024 14:28 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201533 ФПД: 64798218170041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142814&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201533&fm=64798218170041&tin=02508201610067®Number=0000000000091777&sum=70000 [14:28:14]StoreToDocumentArchive [14:28:14]shift 543 fd 201533 [14:28:14]save to /storage/0543/doc_00201533 [14:28:14]save last doc name /storage/0543/doc_00201533 to /storage/kkm_last_doc_name [14:28:14]save OK [14:28:14]Clear old archive folders... [14:28:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:28:14]tlvbuf is 01F021D0 [14:28:14]SAM_PROTO_ClearQueue [14:28:14]wFMCommunicate request_size=4 [14:28:14]MH_SAM_APDU [14:28:14]CAPDU: 80 09 00 00 [14:28:14]Write to MH i2c: E2 08 00 53 20 80 09 00 00 00 00 00 00 E5 [14:28:14]Write i2c OK [14:28:14]MH_I2C_Read... [14:28:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:28:14]Read from MH i2c: E2 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 03 00 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 03 00 53 20 00 90 00 E7 [14:28:14]RAPDU: 90 00 [14:28:14]wFMCommunicate OK [14:28:14]SAM_PROTO_ClearQueue done [14:28:14]KKMCreateOFDPacket [14:28:14]OFDProtocolAddRootSTLVToBuf [14:28:14]FM_MakeSignedData [14:28:14]FM_MakeSignedData [14:28:14]SAM_PROTO_SignData [14:28:14]wFMCommunicate request_size=4 [14:28:14]MH_SAM_APDU [14:28:14]CAPDU: 80 0D 01 02 [14:28:14]Write to MH i2c: E2 08 00 54 20 80 0D 01 02 00 00 00 00 ED [14:28:14]Write i2c OK [14:28:14]MH_I2C_Read... [14:28:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:28:14]Read from MH i2c: E2 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 03 00 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 03 00 54 20 00 90 00 E8 [14:28:14]RAPDU: 90 00 [14:28:14]wFMCommunicate OK [14:28:14]wFMCommunicate request_size=255 [14:28:14]MH_SAM_APDU [14:28:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 27 01 00 00 F4 03 04 00 7E FC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3D 13 03 00 35 04 06 00 3A [14:28:14]Write to MH i2c: E2 02 01 55 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 27 01 00 00 F4 03 04 00 7E FC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3D 13 03 00 35 04 06 00 3A 00 00 64 [14:28:14]Write i2c OK [14:28:14]MH_I2C_Read... [14:28:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:14]Read from MH i2c: E2 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 03 00 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 03 00 55 20 00 90 00 E9 [14:28:14]RAPDU: 90 00 [14:28:14]wFMCommunicate OK [14:28:14]wFMCommunicate request_size=10 [14:28:14]MH_SAM_APDU [14:28:14]CAPDU: 80 0D 02 02 05 EF 02 C6 AE B9 [14:28:14]Write to MH i2c: E2 0D 00 56 20 80 0D 02 02 05 00 EF 02 C6 AE B9 00 00 18 [14:28:14]Write i2c OK [14:28:14]MH_I2C_Read... [14:28:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:14]Read from MH i2c: E2 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 03 00 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 03 00 56 20 00 90 00 EA [14:28:14]RAPDU: 90 00 [14:28:14]wFMCommunicate OK [14:28:14]wFMCommunicate request_size=4 [14:28:14]MH_SAM_APDU [14:28:14]CAPDU: 80 0D 03 02 [14:28:14]Write to MH i2c: E2 08 00 57 20 80 0D 03 02 00 00 00 00 F2 [14:28:14]Write i2c OK [14:28:14]MH_I2C_Read... [14:28:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:28:14]Read from MH i2c: E2 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 0B 00 [14:28:14]MH_I2C_Read... [14:28:14]Read from MH i2c: E2 0B 00 57 20 00 93 4C C0 D8 AA B6 70 C2 90 00 FC [14:28:14]RAPDU: 93 4C C0 D8 AA B6 70 C2 90 00 [14:28:14]wFMCommunicate OK [14:28:14]SAM_PROTO_SignData done [14:28:14]FM_MakeSignedData done [14:28:14]CreateOFDProtocolMessage [14:28:14]wFMCommunicate request_size=4 [14:28:14]MH_SAM_APDU [14:28:14]CAPDU: 80 11 00 00 [14:28:14]Write to MH i2c: E2 08 00 58 20 80 11 00 00 00 00 00 00 F2 [14:28:14]Write i2c OK [14:28:14]MH_I2C_Read... [14:28:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:15]Read from MH i2c: E2 [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: E2 17 00 [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: E2 17 00 58 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 47 [14:28:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:28:15]wFMCommunicate OK [14:28:15]CreateOFDProtocolMessage done [14:28:15]OFDSenderStorePacket 201533 [14:28:15]StoreOFDPacket docnum=201533 [14:28:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 AE 49 07 01 25 C9 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 27 01 00 00 F4 03 04 00 7E FC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3D 13 03 00 35 04 06 00 3A EF 02 C6 AE B9 93 4C C0 D8 AA B6 70 C2 [14:28:15]CheckFolder [14:28:15]dirname=/storage/ofd_packets [14:28:15]CheckFolder done [14:28:15]ProducePacketName [14:28:15]name=ofd_packets/00201533 [14:28:15]NVStorageSaveData ofd_packets/00201533 [14:28:15]File name is /storage/ofd_packets/00201533 [14:28:15]Write 301 bytes [14:28:15]NVStorageSaveData done [14:28:15]OFDSenderStorePacket done [14:28:15]KKMCreateOFDPacket done [14:28:15]NVStorageSaveData kkm_last_timestamp [14:28:15]File name is /storage/kkm_last_timestamp [14:28:15]Write 4 bytes [14:28:15]NVStorageSaveData done [14:28:15]ExternCall_PrintAddStr [14:28:15]wPrintStart [14:28:15]Write to MH i2c: 01 00 00 59 20 79 [14:28:15]Write i2c OK [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: 01 [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: 01 07 00 [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: 01 07 00 59 20 00 00 00 00 00 FF 0F 8E [14:28:15]RasterBufferAndPrint [14:28:15]line Счет N : (1)449284 [14:28:15]line ИНН: 02508201610067 [14:28:15]line Контрольно-Кассовый Чек [14:28:15]line ПРОДАЖА [14:28:15]line ТРК (МРК, ГНК) : 31 [14:28:15]line Товар: 2710124130 [14:28:15]line Аи-92-К-2 [14:28:15]line 10.470 * 66.90 [14:28:15]line = 700.44 [14:28:15]line НДС 12% НСП 1% [14:28:15]line > о реализуемом товаре [14:28:15]line ОКРУГЛЕНИЕ: -0.44 [14:28:15]line ИТОГО: 700.00 [14:28:15]line Внесено: 700.00 [14:28:15]line СДАЧА: 0.00 [14:28:15]line НСП 1% : 6.20 [14:28:15]line НДС 12% : 74.38 [14:28:15]line Наличными: 700.00 [14:28:15]line Безнал.: 0.00 [14:28:15]line Место: АЗС № 171 "Партнер Нефть" [14:28:15]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:28:15]line СНО: Общий режим [14:28:15]line Чек 295 26.10.2024 14:28 [14:28:15]line Смена: 543 ФФД: 1.0 [14:28:15]line ЗНМ: 0300000109 [14:28:15]line РНМ: 0000000000091777 [14:28:15]line Версия ККМ: 001 [14:28:15]line ФМ: 0000000000871756 [14:28:15]line ФД: 201533 [14:28:15]line ФПД: 64798218170041 [14:28:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142814&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201533&fm=64798218170041&tin=02508201610067®Number=0000000000091777&sum=70000 [14:28:15]OFD Sender: Processing packet 201533 [packets to send 112, broken 111] [14:28:15]ProducePacketName [14:28:15]name=ofd_packets/00201533 [14:28:15]OFD Sender: To server: pG, [14:28:15]CommunicateWithHost lk.salyk.kg:30040 [14:28:15]ConnectInit lk.salyk.kg [14:28:15]written 0, free lines is 4095 [14:28:15]Connected sock=10 [14:28:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 AE 49 07 01 25 C9 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 27 01 00 00 F4 03 04 00 7E FC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3D 13 03 00 35 04 06 00 3A EF 02 C6 AE B9 93 4C C0 D8 AA B6 70 C2 [14:28:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 6C 0C 47 00 80 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 38 37 31 37 35 36 10 04 04 00 3D 13 03 00 F4 03 04 00 27 A8 1C 67 B6 04 01 00 00 7C D2 BE F6 A9 58 D9 5A [14:28:15]CommunicateWithHost err = 0 [14:28:15]CheckOFDResponse [14:28:15]1017 (14) - 77093643461234 [14:28:15]1041 (16) - 0000000000871756 [14:28:15]1040 (4) - 201533 [14:28:15]1012 (4) - 26.10.2024 08:28 [14:28:15]1206 (1) - 0 [14:28:15]OFD Sender: Remove packet 201533 [14:28:15]ProducePacketName [14:28:15]name=ofd_packets/00201533 [14:28:15]NVStorageDeleteData [14:28:15]Write to MH i2c: 01 00 00 84 20 A4 [14:28:15]Write i2c OK [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: 01 [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: 01 07 00 [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: 01 07 00 84 20 00 00 00 00 00 9D 0C 54 [14:28:15]RasterBufferAndPrint [14:28:15]line [14:28:15]line [14:28:15]line [14:28:15]line [14:28:15]line [14:28:15]written 0, free lines is 3235 [14:28:15]MH_Cut [14:28:15]Write to MH i2c: D1 01 00 8B 20 01 7D [14:28:15]Write i2c OK [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: D1 [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: D1 01 00 [14:28:15]MH_I2C_Read... [14:28:15]Read from MH i2c: D1 01 00 8B 20 00 7C [14:28:15]Write to MH i2c: 01 00 00 8C 20 AC [14:28:15]Write i2c OK [14:28:15]MH_I2C_Read... [14:28:16]OFD Sender: No OFD packet to send [14:28:16]*** Cut start [14:28:16]*** Purtial cut [14:28:16]*** CUTSNS_PIN = 0 [14:28:16]*** Stage 1: CUTSNS_PIN = 1 [14:28:18]Read from MH i2c: 01 [14:28:18]MH_I2C_Read... [14:28:18]*** Stop cut motor [14:28:18]*** Cut end [14:28:18]Read from MH i2c: 01 07 00 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: 01 07 00 8C 20 00 00 00 00 00 FF 0F C1 [14:28:18]process_action close_receipt done [14:28:18]requested_data is exist [14:28:18]produce_requested_data [14:28:18]requested_item fm.sn is exist - process it [14:28:18]wFMCommunicate request_size=4 [14:28:18]MH_SAM_APDU [14:28:18]CAPDU: 80 11 00 00 [14:28:18]Write to MH i2c: E2 08 00 8D 20 80 11 00 00 00 00 00 00 27 [14:28:18]Write i2c OK [14:28:18]MH_I2C_Read... [14:28:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:18]Read from MH i2c: E2 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: E2 17 00 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: E2 17 00 8D 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7C [14:28:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:28:18]wFMCommunicate OK [14:28:18]requested_item fd.num is exist - process it [14:28:18]SAM_PROTO_GetFieldsCounters [14:28:18]wFMCommunicate request_size=4 [14:28:18]MH_SAM_APDU [14:28:18]CAPDU: 80 13 00 00 [14:28:18]Write to MH i2c: E2 08 00 8E 20 80 13 00 00 00 00 00 00 2A [14:28:18]Write i2c OK [14:28:18]MH_I2C_Read... [14:28:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:28:18]Read from MH i2c: E2 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: E2 62 00 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: E2 62 00 8E 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3D 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 3F [14:28:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3D 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:28:18]wFMCommunicate OK [14:28:18]SAM_PROTO_GetFieldsCounters done [14:28:18]requested_item shift.num is exist - process it [14:28:18]requested_item shift.opened is exist - process it [14:28:18]req_shift_opened [14:28:18]FM_GetShiftState [14:28:18]SAM_PROTO_GetShiftState [14:28:18]wFMCommunicate request_size=4 [14:28:18]MH_SAM_APDU [14:28:18]CAPDU: 80 13 01 00 [14:28:18]Write to MH i2c: E2 08 00 8F 20 80 13 01 00 00 00 00 00 2C [14:28:18]Write i2c OK [14:28:18]MH_I2C_Read... [14:28:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:18]Read from MH i2c: E2 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: E2 0E 00 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: E2 0E 00 8F 20 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 3B [14:28:18]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:28:18]wFMCommunicate OK [14:28:18]SAM_PROTO_GetShiftState done [14:28:18]FM_GetShiftState done [14:28:18]req_shift_opened done [14:28:18]requested_item shift.open_date is exist - process it [14:28:18]req_shift_open_date [14:28:18]req_shift_open_date done [14:28:18]produce_requested_data done [14:28:18]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201533,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:28:18]process_action_free close_receipt [14:28:18]json_value_free [14:28:18]json_value_free done [14:28:18]process_json_proto returns [14:28:18]Send response to host [14:28:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201533,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:28:18]free response buf [14:28:18]execute_script done [14:28:18]execute_script returns [14:28:18]free content buf [14:28:18]Sock 9.Close socket [14:28:18]Sock 9.Thread stoped [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:36]OFD Sender: No OFD packet to send [14:29:37]accept exits with 8 [14:29:37]New connection [14:29:37]New thread 3066690916 created [14:29:37]Thread 3066834276 joined [14:29:37]Waiting for new connection... [14:29:37] Sock 8.Parse request [14:29:37]Sock 8.Check first char [14:29:37]Sock 8.First char is OK [14:29:37]request: POST /json_proto HTTP/1.0 [14:29:37]Method: POST [14:29:37]URL: /json_proto [14:29:37]Method is POST - this is cgi request [14:29:37]url: /json_proto [14:29:37]query_string will be loaded in cgi processing [14:29:37]execute_cgi json_proto POST (null) [14:29:37]execute_cgi path=json_proto method=POST [14:29:37]POST find Content-Length [14:29:37]Host: 172.17.63.195:8080 [14:29:37]Content-Length: 677 [14:29:37]Content-Type: application/json [14:29:37] [14:29:37]POST finish read [14:29:37]Found Content-Length = 677 [14:29:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [14:29:37]execute_script... [14:29:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [14:29:37]POST & json_proto [14:29:37]process_json_proto [14:29:37]json parsed OK: [14:29:37]protocol is kg_v1.0 [14:29:37]action value=close_receipt [14:29:37]process_action close_receipt [14:29:37]cmd_close_receipt [14:29:37]MH_GetDate [14:29:37]Write to MH i2c: F0 00 00 90 20 9F [14:29:37]Write i2c OK [14:29:37]MH_I2C_Read... [14:29:37]Read from MH i2c: F0 [14:29:37]MH_I2C_Read... [14:29:37]Read from MH i2c: F0 09 00 [14:29:37]MH_I2C_Read... [14:29:37]Read from MH i2c: F0 09 00 90 20 00 D3 FC 1C 67 68 46 19 67 28 [14:29:37]GetLastDocTimeStamp 1729952894 [14:29:37]current date 1729952979 [14:29:37]FM_GetShiftState [14:29:37]SAM_PROTO_GetShiftState [14:29:37]wFMCommunicate request_size=4 [14:29:37]MH_SAM_APDU [14:29:37]CAPDU: 80 13 01 00 [14:29:37]Write to MH i2c: E2 08 00 91 20 80 13 01 00 00 00 00 00 2E [14:29:37]Write i2c OK [14:29:37]MH_I2C_Read... [14:29:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:37]Read from MH i2c: E2 [14:29:37]MH_I2C_Read... [14:29:37]Read from MH i2c: E2 0E 00 [14:29:37]MH_I2C_Read... [14:29:37]Read from MH i2c: E2 0E 00 91 20 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 3D [14:29:37]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:29:37]wFMCommunicate OK [14:29:37]SAM_PROTO_GetShiftState done [14:29:37]FM_GetShiftState done [14:29:37]opened in 1729900879 [14:29:37]opened+sec_in_day 1729987279 [14:29:37]quantity*price = 50041 [14:29:37]sum+1 = 50042 [14:29:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 296 26.10.2024 14:29 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201534 ФПД: 27327994128352 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142939&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201534&fm=27327994128352&tin=02508201610067®Number=0000000000091777&sum=50000 [14:29:39]StoreToDocumentArchive [14:29:39]shift 543 fd 201534 [14:29:39]save to /storage/0543/doc_00201534 [14:29:39]save last doc name /storage/0543/doc_00201534 to /storage/kkm_last_doc_name [14:29:39]save OK [14:29:39]Clear old archive folders... [14:29:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:29:39]tlvbuf is 01F08910 [14:29:39]SAM_PROTO_ClearQueue [14:29:39]wFMCommunicate request_size=4 [14:29:39]MH_SAM_APDU [14:29:39]CAPDU: 80 09 00 00 [14:29:39]Write to MH i2c: E2 08 00 9E 20 80 09 00 00 00 00 00 00 30 [14:29:39]Write i2c OK [14:29:39]MH_I2C_Read... [14:29:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:29:39]Read from MH i2c: E2 [14:29:39]MH_I2C_Read... [14:29:39]Read from MH i2c: E2 03 00 [14:29:39]MH_I2C_Read... [14:29:39]Read from MH i2c: E2 03 00 9E 20 00 90 00 32 [14:29:39]RAPDU: 90 00 [14:29:39]wFMCommunicate OK [14:29:39]SAM_PROTO_ClearQueue done [14:29:39]KKMCreateOFDPacket [14:29:39]OFDProtocolAddRootSTLVToBuf [14:29:39]FM_MakeSignedData [14:29:39]FM_MakeSignedData [14:29:39]SAM_PROTO_SignData [14:29:39]wFMCommunicate request_size=4 [14:29:39]MH_SAM_APDU [14:29:39]CAPDU: 80 0D 01 02 [14:29:39]Write to MH i2c: E2 08 00 9F 20 80 0D 01 02 00 00 00 00 38 [14:29:39]Write i2c OK [14:29:39]MH_I2C_Read... [14:29:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:29:39]Read from MH i2c: E2 [14:29:39]MH_I2C_Read... [14:29:39]Read from MH i2c: E2 03 00 [14:29:39]MH_I2C_Read... [14:29:39]Read from MH i2c: E2 03 00 9F 20 00 90 00 33 [14:29:39]RAPDU: 90 00 [14:29:39]wFMCommunicate OK [14:29:39]wFMCommunicate request_size=255 [14:29:39]MH_SAM_APDU [14:29:39]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 32 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 28 01 00 00 F4 03 04 00 D3 FC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3E 13 03 00 35 04 06 00 18 [14:29:39]Write to MH i2c: E2 02 01 A0 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 28 01 00 00 F4 03 04 00 D3 FC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3E 13 03 00 35 04 06 00 18 00 00 D4 [14:29:39]Write i2c OK [14:29:39]MH_I2C_Read... [14:29:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:39]Read from MH i2c: E2 [14:29:39]MH_I2C_Read... [14:29:39]Read from MH i2c: E2 03 00 [14:29:39]MH_I2C_Read... [14:29:39]Read from MH i2c: E2 03 00 A0 20 00 90 00 34 [14:29:39]RAPDU: 90 00 [14:29:39]wFMCommunicate OK [14:29:39]wFMCommunicate request_size=10 [14:29:39]MH_SAM_APDU [14:29:39]CAPDU: 80 0D 02 02 05 DA CB 61 E7 E0 [14:29:39]Write to MH i2c: E2 0D 00 A1 20 80 0D 02 02 05 00 DA CB 61 E7 E0 00 00 12 [14:29:39]Write i2c OK [14:29:39]MH_I2C_Read... [14:29:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:39]Read from MH i2c: E2 [14:29:39]MH_I2C_Read... [14:29:39]Read from MH i2c: E2 03 00 [14:29:39]MH_I2C_Read... [14:29:39]Read from MH i2c: E2 03 00 A1 20 00 90 00 35 [14:29:39]RAPDU: 90 00 [14:29:39]wFMCommunicate OK [14:29:39]wFMCommunicate request_size=4 [14:29:39]MH_SAM_APDU [14:29:39]CAPDU: 80 0D 03 02 [14:29:39]Write to MH i2c: E2 08 00 A2 20 80 0D 03 02 00 00 00 00 3D [14:29:39]Write i2c OK [14:29:39]MH_I2C_Read... [14:29:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:29:39]Read from MH i2c: E2 [14:29:39]MH_I2C_Read... [14:29:39]Read from MH i2c: E2 0B 00 [14:29:39]MH_I2C_Read... [14:29:39]Read from MH i2c: E2 0B 00 A2 20 00 BE 79 B0 B8 F7 F2 61 F8 90 00 1F [14:29:39]RAPDU: BE 79 B0 B8 F7 F2 61 F8 90 00 [14:29:39]wFMCommunicate OK [14:29:39]SAM_PROTO_SignData done [14:29:39]FM_MakeSignedData done [14:29:39]CreateOFDProtocolMessage [14:29:39]wFMCommunicate request_size=4 [14:29:39]MH_SAM_APDU [14:29:39]CAPDU: 80 11 00 00 [14:29:39]Write to MH i2c: E2 08 00 A3 20 80 11 00 00 00 00 00 00 3D [14:29:39]Write i2c OK [14:29:39]MH_I2C_Read... [14:29:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:39]Read from MH i2c: E2 [14:29:39]MH_I2C_Read... [14:29:39]Read from MH i2c: E2 17 00 [14:29:39]MH_I2C_Read... [14:29:39]Read from MH i2c: E2 17 00 A3 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 92 [14:29:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:29:39]wFMCommunicate OK [14:29:39]CreateOFDProtocolMessage done [14:29:39]OFDSenderStorePacket 201534 [14:29:39]StoreOFDPacket docnum=201534 [14:29:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 42 11 07 01 B6 76 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 32 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 28 01 00 00 F4 03 04 00 D3 FC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3E 13 03 00 35 04 06 00 18 DA CB 61 E7 E0 BE 79 B0 B8 F7 F2 61 F8 [14:29:39]CheckFolder [14:29:39]dirname=/storage/ofd_packets [14:29:39]CheckFolder done [14:29:39]ProducePacketName [14:29:39]name=ofd_packets/00201534 [14:29:39]NVStorageSaveData ofd_packets/00201534 [14:29:39]File name is /storage/ofd_packets/00201534 [14:29:39]Write 301 bytes [14:29:39]NVStorageSaveData done [14:29:39]OFDSenderStorePacket done [14:29:39]KKMCreateOFDPacket done [14:29:39]NVStorageSaveData kkm_last_timestamp [14:29:39]File name is /storage/kkm_last_timestamp [14:29:39]Write 4 bytes [14:29:39]NVStorageSaveData done [14:29:39]ExternCall_PrintAddStr [14:29:39]wPrintStart [14:29:39]Write to MH i2c: 01 00 00 A4 20 C4 [14:29:39]Write i2c OK [14:29:39]MH_I2C_Read... [14:29:39]Read from MH i2c: 01 [14:29:39]MH_I2C_Read... [14:29:39]Read from MH i2c: 01 07 00 [14:29:39]MH_I2C_Read... [14:29:39]Read from MH i2c: 01 07 00 A4 20 00 00 00 00 00 FF 0F D9 [14:29:39]RasterBufferAndPrint [14:29:39]line Счет N : (1)449286 [14:29:39]line ИНН: 02508201610067 [14:29:39]line Контрольно-Кассовый Чек [14:29:39]line ПРОДАЖА [14:29:39]line ТРК (МРК, ГНК) : 41 [14:29:39]line Товар: 2710124130 [14:29:39]line Аи-92-К-2 [14:29:39]line 7.480 * 66.90 [14:29:39]line = 500.41 [14:29:39]line НДС 12% НСП 1% [14:29:39]line > о реализуемом товаре [14:29:39]line ОКРУГЛЕНИЕ: -0.41 [14:29:39]line ИТОГО: 500.00 [14:29:39]line Внесено: 500.00 [14:29:39]line СДАЧА: 0.00 [14:29:39]line НСП 1% : 4.43 [14:29:39]line НДС 12% : 53.14 [14:29:39]line Наличными: 500.00 [14:29:39]line Безнал.: 0.00 [14:29:39]line Место: АЗС № 171 "Партнер Нефть" [14:29:39]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:29:39]line СНО: Общий режим [14:29:39]line Чек 296 26.10.2024 14:29 [14:29:39]line Смена: 543 ФФД: 1.0 [14:29:39]line ЗНМ: 0300000109 [14:29:39]line РНМ: 0000000000091777 [14:29:39]line Версия ККМ: 001 [14:29:39]line ФМ: 0000000000871756 [14:29:39]line ФД: 201534 [14:29:39]line ФПД: 27327994128352 [14:29:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142939&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201534&fm=27327994128352&tin=02508201610067®Number=0000000000091777&sum=50000 [14:29:39]OFD Sender: Processing packet 201534 [packets to send 112, broken 111] [14:29:39]ProducePacketName [14:29:39]name=ofd_packets/00201534 [14:29:39]OFD Sender: To server: pG, [14:29:39]CommunicateWithHost lk.salyk.kg:30040 [14:29:39]ConnectInit lk.salyk.kg [14:29:39]written 0, free lines is 4095 [14:29:40]Connected sock=11 [14:29:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 42 11 07 01 B6 76 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 32 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 28 01 00 00 F4 03 04 00 D3 FC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3E 13 03 00 35 04 06 00 18 DA CB 61 E7 E0 BE 79 B0 B8 F7 F2 61 F8 [14:29:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A1 F1 47 00 DB 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3E 13 03 00 F4 03 04 00 7B A8 1C 67 B6 04 01 00 00 45 06 24 73 1C 79 EB E2 [14:29:40]CommunicateWithHost err = 0 [14:29:40]CheckOFDResponse [14:29:40]1017 (14) - 77093643461234 [14:29:40]1041 (16) - 0000000000871756 [14:29:40]1040 (4) - 201534 [14:29:40]1012 (4) - 26.10.2024 08:29 [14:29:40]1206 (1) - 0 [14:29:40]OFD Sender: Remove packet 201534 [14:29:40]ProducePacketName [14:29:40]name=ofd_packets/00201534 [14:29:40]NVStorageDeleteData [14:29:40]Write to MH i2c: 01 00 00 CF 20 EF [14:29:40]Write i2c OK [14:29:40]MH_I2C_Read... [14:29:40]Read from MH i2c: 01 [14:29:40]MH_I2C_Read... [14:29:40]Read from MH i2c: 01 07 00 [14:29:40]MH_I2C_Read... [14:29:40]Read from MH i2c: 01 07 00 CF 20 00 00 00 00 00 A2 0C A4 [14:29:40]RasterBufferAndPrint [14:29:40]line [14:29:40]line [14:29:40]line [14:29:40]line [14:29:40]line [14:29:40]written 0, free lines is 3238 [14:29:40]MH_Cut [14:29:40]Write to MH i2c: D1 01 00 D6 20 01 C8 [14:29:40]Write i2c OK [14:29:40]MH_I2C_Read... [14:29:40]Read from MH i2c: D1 [14:29:40]MH_I2C_Read... [14:29:40]Read from MH i2c: D1 01 00 [14:29:40]MH_I2C_Read... [14:29:40]Read from MH i2c: D1 01 00 D6 20 00 C7 [14:29:40]Write to MH i2c: 01 00 00 D7 20 F7 [14:29:40]Write i2c OK [14:29:40]MH_I2C_Read... [14:29:40]OFD Sender: No OFD packet to send [14:29:41]*** Cut start [14:29:41]*** Purtial cut [14:29:41]*** Stage 1: CUTSNS_PIN = 1 [14:29:41]Read from MH i2c: 01 [14:29:41]MH_I2C_Read... [14:29:41]*** Stop cut motor [14:29:41]*** Cut end [14:29:41]Read from MH i2c: 01 07 00 [14:29:41]MH_I2C_Read... [14:29:41]Read from MH i2c: 01 07 00 D7 20 00 00 00 00 00 FF 0F 0C [14:29:41]process_action close_receipt done [14:29:41]requested_data is exist [14:29:41]produce_requested_data [14:29:41]requested_item fm.sn is exist - process it [14:29:41]wFMCommunicate request_size=4 [14:29:41]MH_SAM_APDU [14:29:41]CAPDU: 80 11 00 00 [14:29:41]Write to MH i2c: E2 08 00 D8 20 80 11 00 00 00 00 00 00 72 [14:29:41]Write i2c OK [14:29:41]MH_I2C_Read... [14:29:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:41]Read from MH i2c: E2 [14:29:41]MH_I2C_Read... [14:29:41]Read from MH i2c: E2 17 00 [14:29:41]MH_I2C_Read... [14:29:41]Read from MH i2c: E2 17 00 D8 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C7 [14:29:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:29:41]wFMCommunicate OK [14:29:41]requested_item fd.num is exist - process it [14:29:41]SAM_PROTO_GetFieldsCounters [14:29:41]wFMCommunicate request_size=4 [14:29:41]MH_SAM_APDU [14:29:41]CAPDU: 80 13 00 00 [14:29:41]Write to MH i2c: E2 08 00 D9 20 80 13 00 00 00 00 00 00 75 [14:29:41]Write i2c OK [14:29:41]MH_I2C_Read... [14:29:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:29:41]Read from MH i2c: E2 [14:29:41]MH_I2C_Read... [14:29:41]Read from MH i2c: E2 62 00 [14:29:41]MH_I2C_Read... [14:29:41]Read from MH i2c: E2 62 00 D9 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3E 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 8E [14:29:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3E 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:29:41]wFMCommunicate OK [14:29:41]SAM_PROTO_GetFieldsCounters done [14:29:41]requested_item shift.num is exist - process it [14:29:41]requested_item shift.opened is exist - process it [14:29:41]req_shift_opened [14:29:41]FM_GetShiftState [14:29:41]SAM_PROTO_GetShiftState [14:29:41]wFMCommunicate request_size=4 [14:29:41]MH_SAM_APDU [14:29:41]CAPDU: 80 13 01 00 [14:29:41]Write to MH i2c: E2 08 00 DA 20 80 13 01 00 00 00 00 00 77 [14:29:41]Write i2c OK [14:29:41]MH_I2C_Read... [14:29:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:41]Read from MH i2c: E2 [14:29:41]MH_I2C_Read... [14:29:41]Read from MH i2c: E2 0E 00 [14:29:41]MH_I2C_Read... [14:29:41]Read from MH i2c: E2 0E 00 DA 20 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 86 [14:29:41]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:29:41]wFMCommunicate OK [14:29:41]SAM_PROTO_GetShiftState done [14:29:41]FM_GetShiftState done [14:29:41]req_shift_opened done [14:29:41]requested_item shift.open_date is exist - process it [14:29:41]req_shift_open_date [14:29:41]req_shift_open_date done [14:29:41]produce_requested_data done [14:29:41]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201534,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:29:41]process_action_free close_receipt [14:29:41]json_value_free [14:29:41]json_value_free done [14:29:41]process_json_proto returns [14:29:41]Send response to host [14:29:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201534,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:29:41]free response buf [14:29:41]execute_script done [14:29:41]execute_script returns [14:29:41]free content buf [14:29:41]Sock 8.Close socket [14:29:41]Sock 8.Thread stoped [14:29:45]OFD Sender: No OFD packet to send [14:29:50]OFD Sender: No OFD packet to send [14:29:55]OFD Sender: No OFD packet to send [14:30:00]OFD Sender: No OFD packet to send [14:30:05]OFD Sender: No OFD packet to send [14:30:07]accept exits with 9 [14:30:07]New connection [14:30:07]New thread 3066834276 created [14:30:07]Thread 3066690916 joined [14:30:07]Waiting for new connection... [14:30:07] Sock 9.Parse request [14:30:07]Sock 9.Check first char [14:30:07]Sock 9.First char is OK [14:30:07]request: POST /json_proto HTTP/1.0 [14:30:07]Method: POST [14:30:07]URL: /json_proto [14:30:07]Method is POST - this is cgi request [14:30:07]url: /json_proto [14:30:07]query_string will be loaded in cgi processing [14:30:07]execute_cgi json_proto POST (null) [14:30:07]execute_cgi path=json_proto method=POST [14:30:07]POST find Content-Length [14:30:07]Host: 172.17.63.195:8080 [14:30:07]Content-Length: 682 [14:30:07]Content-Type: application/json [14:30:07] [14:30:07]POST finish read [14:30:07]Found Content-Length = 682 [14:30:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [14:30:07]execute_script... [14:30:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [14:30:07]POST & json_proto [14:30:07]process_json_proto [14:30:07]json parsed OK: [14:30:07]protocol is kg_v1.0 [14:30:07]action value=close_receipt [14:30:07]process_action close_receipt [14:30:07]cmd_close_receipt [14:30:07]MH_GetDate [14:30:07]Write to MH i2c: F0 00 00 DB 20 EA [14:30:07]Write i2c OK [14:30:07]MH_I2C_Read... [14:30:07]Read from MH i2c: F0 [14:30:07]MH_I2C_Read... [14:30:07]Read from MH i2c: F0 09 00 [14:30:07]MH_I2C_Read... [14:30:07]Read from MH i2c: F0 09 00 DB 20 00 F0 FC 1C 67 68 46 19 67 90 [14:30:07]GetLastDocTimeStamp 1729952979 [14:30:07]current date 1729953008 [14:30:07]FM_GetShiftState [14:30:07]SAM_PROTO_GetShiftState [14:30:07]wFMCommunicate request_size=4 [14:30:07]MH_SAM_APDU [14:30:07]CAPDU: 80 13 01 00 [14:30:07]Write to MH i2c: E2 08 00 DC 20 80 13 01 00 00 00 00 00 79 [14:30:07]Write i2c OK [14:30:07]MH_I2C_Read... [14:30:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:07]Read from MH i2c: E2 [14:30:07]MH_I2C_Read... [14:30:07]Read from MH i2c: E2 0E 00 [14:30:07]MH_I2C_Read... [14:30:07]Read from MH i2c: E2 0E 00 DC 20 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 88 [14:30:07]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:30:07]wFMCommunicate OK [14:30:07]SAM_PROTO_GetShiftState done [14:30:07]FM_GetShiftState done [14:30:07]opened in 1729900879 [14:30:07]opened+sec_in_day 1729987279 [14:30:07]quantity*price = 100015 [14:30:07]sum+1 = 100017 [14:30:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 297 26.10.2024 14:30 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201535 ФПД: 255799522056748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143008&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201535&fm=255799522056748&tin=02508201610067®Number=0000000000091777&sum=100000 [14:30:08]StoreToDocumentArchive [14:30:08]shift 543 fd 201535 [14:30:08]save to /storage/0543/doc_00201535 [14:30:08]save last doc name /storage/0543/doc_00201535 to /storage/kkm_last_doc_name [14:30:08]save OK [14:30:08]Clear old archive folders... [14:30:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:30:08]tlvbuf is 01FD9CD0 [14:30:08]SAM_PROTO_ClearQueue [14:30:08]wFMCommunicate request_size=4 [14:30:08]MH_SAM_APDU [14:30:08]CAPDU: 80 09 00 00 [14:30:08]Write to MH i2c: E2 08 00 E9 20 80 09 00 00 00 00 00 00 7B [14:30:08]Write i2c OK [14:30:08]MH_I2C_Read... [14:30:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:08]Read from MH i2c: E2 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: E2 03 00 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: E2 03 00 E9 20 00 90 00 7D [14:30:08]RAPDU: 90 00 [14:30:08]wFMCommunicate OK [14:30:08]SAM_PROTO_ClearQueue done [14:30:08]KKMCreateOFDPacket [14:30:08]OFDProtocolAddRootSTLVToBuf [14:30:08]FM_MakeSignedData [14:30:08]FM_MakeSignedData [14:30:08]SAM_PROTO_SignData [14:30:08]wFMCommunicate request_size=4 [14:30:08]MH_SAM_APDU [14:30:08]CAPDU: 80 0D 01 02 [14:30:08]Write to MH i2c: E2 08 00 EA 20 80 0D 01 02 00 00 00 00 83 [14:30:08]Write i2c OK [14:30:08]MH_I2C_Read... [14:30:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:08]Read from MH i2c: E2 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: E2 03 00 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: E2 03 00 EA 20 00 90 00 7E [14:30:08]RAPDU: 90 00 [14:30:08]wFMCommunicate OK [14:30:08]wFMCommunicate request_size=255 [14:30:08]MH_SAM_APDU [14:30:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 29 01 00 00 F4 03 04 00 F0 FC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3F 13 03 00 35 04 06 00 E8 [14:30:08]Write to MH i2c: E2 02 01 EB 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 29 01 00 00 F4 03 04 00 F0 FC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3F 13 03 00 35 04 06 00 E8 00 00 08 [14:30:08]Write i2c OK [14:30:08]MH_I2C_Read... [14:30:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:08]Read from MH i2c: E2 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: E2 03 00 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: E2 03 00 EB 20 00 90 00 7F [14:30:08]RAPDU: 90 00 [14:30:08]wFMCommunicate OK [14:30:08]wFMCommunicate request_size=10 [14:30:08]MH_SAM_APDU [14:30:08]CAPDU: 80 0D 02 02 05 A5 F7 A5 5A 2C [14:30:08]Write to MH i2c: E2 0D 00 EC 20 80 0D 02 02 05 00 A5 F7 A5 5A 2C 00 00 57 [14:30:08]Write i2c OK [14:30:08]MH_I2C_Read... [14:30:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:08]Read from MH i2c: E2 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: E2 03 00 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: E2 03 00 EC 20 00 90 00 80 [14:30:08]RAPDU: 90 00 [14:30:08]wFMCommunicate OK [14:30:08]wFMCommunicate request_size=4 [14:30:08]MH_SAM_APDU [14:30:08]CAPDU: 80 0D 03 02 [14:30:08]Write to MH i2c: E2 08 00 ED 20 80 0D 03 02 00 00 00 00 88 [14:30:08]Write i2c OK [14:30:08]MH_I2C_Read... [14:30:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:08]Read from MH i2c: E2 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: E2 0B 00 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: E2 0B 00 ED 20 00 7B 34 67 07 B4 33 B5 02 90 00 44 [14:30:08]RAPDU: 7B 34 67 07 B4 33 B5 02 90 00 [14:30:08]wFMCommunicate OK [14:30:08]SAM_PROTO_SignData done [14:30:08]FM_MakeSignedData done [14:30:08]CreateOFDProtocolMessage [14:30:08]wFMCommunicate request_size=4 [14:30:08]MH_SAM_APDU [14:30:08]CAPDU: 80 11 00 00 [14:30:08]Write to MH i2c: E2 08 00 EE 20 80 11 00 00 00 00 00 00 88 [14:30:08]Write i2c OK [14:30:08]MH_I2C_Read... [14:30:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:08]Read from MH i2c: E2 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: E2 17 00 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: E2 17 00 EE 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DD [14:30:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:30:08]wFMCommunicate OK [14:30:08]CreateOFDProtocolMessage done [14:30:08]OFDSenderStorePacket 201535 [14:30:08]StoreOFDPacket docnum=201535 [14:30:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A9 D2 07 01 87 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 29 01 00 00 F4 03 04 00 F0 FC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3F 13 03 00 35 04 06 00 E8 A5 F7 A5 5A 2C 7B 34 67 07 B4 33 B5 02 [14:30:08]CheckFolder [14:30:08]dirname=/storage/ofd_packets [14:30:08]CheckFolder done [14:30:08]ProducePacketName [14:30:08]name=ofd_packets/00201535 [14:30:08]NVStorageSaveData ofd_packets/00201535 [14:30:08]File name is /storage/ofd_packets/00201535 [14:30:08]Write 301 bytes [14:30:08]NVStorageSaveData done [14:30:08]OFDSenderStorePacket done [14:30:08]KKMCreateOFDPacket done [14:30:08]NVStorageSaveData kkm_last_timestamp [14:30:08]File name is /storage/kkm_last_timestamp [14:30:08]Write 4 bytes [14:30:08]NVStorageSaveData done [14:30:08]ExternCall_PrintAddStr [14:30:08]wPrintStart [14:30:08]Write to MH i2c: 01 00 00 EF 20 0F [14:30:08]Write i2c OK [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: 01 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: 01 07 00 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: 01 07 00 EF 20 00 00 00 00 00 FF 0F 24 [14:30:08]RasterBufferAndPrint [14:30:08]line Счет N : (1)449287 [14:30:08]line ИНН: 02508201610067 [14:30:08]line Контрольно-Кассовый Чек [14:30:08]line ПРОДАЖА [14:30:08]line ТРК (МРК, ГНК) : 52 [14:30:08]line Товар: 2710124130 [14:30:08]line Аи-92-К-2 [14:30:08]line 14.950 * 66.90 [14:30:08]line = 1000.16 [14:30:08]line НДС 12% НСП 1% [14:30:08]line > о реализуемом товаре [14:30:08]line ОКРУГЛЕНИЕ: -0.16 [14:30:08]line ИТОГО: 1000.00 [14:30:08]line Внесено: 1000.00 [14:30:08]line СДАЧА: 0.00 [14:30:08]line НСП 1% : 8.85 [14:30:08]line НДС 12% : 106.21 [14:30:08]line Наличными: 1000.00 [14:30:08]line Безнал.: 0.00 [14:30:08]line Место: АЗС № 171 "Партнер Нефть" [14:30:08]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:30:08]line СНО: Общий режим [14:30:08]line Чек 297 26.10.2024 14:30 [14:30:08]line Смена: 543 ФФД: 1.0 [14:30:08]line ЗНМ: 0300000109 [14:30:08]line РНМ: 0000000000091777 [14:30:08]line Версия ККМ: 001 [14:30:08]line ФМ: 0000000000871756 [14:30:08]line ФД: 201535 [14:30:08]line ФПД: 255799522056748 [14:30:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143008&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201535&fm=255799522056748&tin=02508201610067®Number=0000000000091777&sum=100000 [14:30:09]OFD Sender: Processing packet 201535 [packets to send 112, broken 111] [14:30:09]ProducePacketName [14:30:09]name=ofd_packets/00201535 [14:30:09]OFD Sender: To server: pG, [14:30:09]CommunicateWithHost lk.salyk.kg:30040 [14:30:09]ConnectInit lk.salyk.kg [14:30:09]written 0, free lines is 4095 [14:30:09]Connected sock=10 [14:30:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A9 D2 07 01 87 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 29 01 00 00 F4 03 04 00 F0 FC 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3F 13 03 00 35 04 06 00 E8 A5 F7 A5 5A 2C 7B 34 67 07 B4 33 B5 02 [14:30:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C6 09 47 00 E6 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 3F 13 03 00 F4 03 04 00 99 A8 1C 67 B6 04 01 00 00 15 D5 14 BC DD 85 90 A0 [14:30:09]CommunicateWithHost err = 0 [14:30:09]CheckOFDResponse [14:30:09]1017 (14) - 77093643461234 [14:30:09]1041 (16) - 0000000000871756 [14:30:09]1040 (4) - 201535 [14:30:09]1012 (4) - 26.10.2024 08:30 [14:30:09]1206 (1) - 0 [14:30:09]OFD Sender: Remove packet 201535 [14:30:09]ProducePacketName [14:30:09]name=ofd_packets/00201535 [14:30:09]NVStorageDeleteData [14:30:09]Write to MH i2c: 01 00 00 1A 21 3B [14:30:09]Write i2c OK [14:30:09]MH_I2C_Read... [14:30:09]Read from MH i2c: 01 [14:30:09]MH_I2C_Read... [14:30:09]Read from MH i2c: 01 07 00 [14:30:09]MH_I2C_Read... [14:30:09]Read from MH i2c: 01 07 00 1A 21 00 00 00 00 00 9B 0C E9 [14:30:09]RasterBufferAndPrint [14:30:09]line [14:30:09]line [14:30:09]line [14:30:09]line [14:30:09]line [14:30:09]written 0, free lines is 3233 [14:30:09]MH_Cut [14:30:09]Write to MH i2c: D1 01 00 21 21 01 14 [14:30:09]Write i2c OK [14:30:09]MH_I2C_Read... [14:30:09]Read from MH i2c: D1 [14:30:09]MH_I2C_Read... [14:30:09]Read from MH i2c: D1 01 00 [14:30:09]MH_I2C_Read... [14:30:09]Read from MH i2c: D1 01 00 21 21 00 13 [14:30:09]Write to MH i2c: 01 00 00 22 21 43 [14:30:09]Write i2c OK [14:30:09]MH_I2C_Read... [14:30:10]OFD Sender: No OFD packet to send [14:30:10]*** Cut start [14:30:10]*** Purtial cut [14:30:10]*** Stage 1: CUTSNS_PIN = 1 [14:30:10]Read from MH i2c: 01 [14:30:10]MH_I2C_Read... [14:30:10]*** Stop cut motor [14:30:10]*** Cut end [14:30:10]Read from MH i2c: 01 07 00 [14:30:10]MH_I2C_Read... [14:30:10]Read from MH i2c: 01 07 00 22 21 00 00 00 00 00 FF 0F 58 [14:30:10]process_action close_receipt done [14:30:10]requested_data is exist [14:30:10]produce_requested_data [14:30:10]requested_item fm.sn is exist - process it [14:30:10]wFMCommunicate request_size=4 [14:30:10]MH_SAM_APDU [14:30:10]CAPDU: 80 11 00 00 [14:30:10]Write to MH i2c: E2 08 00 23 21 80 11 00 00 00 00 00 00 BE [14:30:10]Write i2c OK [14:30:10]MH_I2C_Read... [14:30:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:10]Read from MH i2c: E2 [14:30:10]MH_I2C_Read... [14:30:10]Read from MH i2c: E2 17 00 [14:30:10]MH_I2C_Read... [14:30:10]Read from MH i2c: E2 17 00 23 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 13 [14:30:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:30:10]wFMCommunicate OK [14:30:10]requested_item fd.num is exist - process it [14:30:10]SAM_PROTO_GetFieldsCounters [14:30:10]wFMCommunicate request_size=4 [14:30:10]MH_SAM_APDU [14:30:10]CAPDU: 80 13 00 00 [14:30:10]Write to MH i2c: E2 08 00 24 21 80 13 00 00 00 00 00 00 C1 [14:30:10]Write i2c OK [14:30:10]MH_I2C_Read... [14:30:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:10]Read from MH i2c: E2 [14:30:10]MH_I2C_Read... [14:30:10]Read from MH i2c: E2 62 00 [14:30:10]MH_I2C_Read... [14:30:10]Read from MH i2c: E2 62 00 24 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3F 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 DE [14:30:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 3F 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:30:10]wFMCommunicate OK [14:30:10]SAM_PROTO_GetFieldsCounters done [14:30:10]requested_item shift.num is exist - process it [14:30:10]requested_item shift.opened is exist - process it [14:30:10]req_shift_opened [14:30:10]FM_GetShiftState [14:30:10]SAM_PROTO_GetShiftState [14:30:10]wFMCommunicate request_size=4 [14:30:10]MH_SAM_APDU [14:30:10]CAPDU: 80 13 01 00 [14:30:10]Write to MH i2c: E2 08 00 25 21 80 13 01 00 00 00 00 00 C3 [14:30:10]Write i2c OK [14:30:10]MH_I2C_Read... [14:30:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:11]Read from MH i2c: E2 [14:30:11]MH_I2C_Read... [14:30:11]Read from MH i2c: E2 0E 00 [14:30:11]MH_I2C_Read... [14:30:11]Read from MH i2c: E2 0E 00 25 21 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D2 [14:30:11]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:30:11]wFMCommunicate OK [14:30:11]SAM_PROTO_GetShiftState done [14:30:11]FM_GetShiftState done [14:30:11]req_shift_opened done [14:30:11]requested_item shift.open_date is exist - process it [14:30:11]req_shift_open_date [14:30:11]req_shift_open_date done [14:30:11]produce_requested_data done [14:30:11]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201535,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:30:11]process_action_free close_receipt [14:30:11]json_value_free [14:30:11]json_value_free done [14:30:11]process_json_proto returns [14:30:11]Send response to host [14:30:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201535,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:30:11]free response buf [14:30:11]execute_script done [14:30:11]execute_script returns [14:30:11]free content buf [14:30:11]Sock 9.Close socket [14:30:11]Sock 9.Thread stoped [14:30:15]OFD Sender: No OFD packet to send [14:30:20]OFD Sender: No OFD packet to send [14:30:25]OFD Sender: No OFD packet to send [14:30:30]OFD Sender: No OFD packet to send [14:30:35]OFD Sender: No OFD packet to send [14:30:40]OFD Sender: No OFD packet to send [14:30:43]accept exits with 8 [14:30:43]New connection [14:30:43]New thread 3066690916 created [14:30:43]Thread 3066834276 joined [14:30:43]Waiting for new connection... [14:30:43] Sock 8.Parse request [14:30:43]Sock 8.Check first char [14:30:43]Sock 8.First char is OK [14:30:43]request: POST /json_proto HTTP/1.0 [14:30:43]Method: POST [14:30:43]URL: /json_proto [14:30:43]Method is POST - this is cgi request [14:30:43]url: /json_proto [14:30:43]query_string will be loaded in cgi processing [14:30:43]execute_cgi json_proto POST (null) [14:30:43]execute_cgi path=json_proto method=POST [14:30:43]POST find Content-Length [14:30:43]Host: 172.17.63.195:8080 [14:30:43]Content-Length: 677 [14:30:43]Content-Type: application/json [14:30:43] [14:30:43]POST finish read [14:30:43]Found Content-Length = 677 [14:30:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [14:30:43]execute_script... [14:30: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)449288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [14:30:43]POST & json_proto [14:30:43]process_json_proto [14:30:43]json parsed OK: [14:30:43]protocol is kg_v1.0 [14:30:43]action value=close_receipt [14:30:43]process_action close_receipt [14:30:43]cmd_close_receipt [14:30:43]MH_GetDate [14:30:43]Write to MH i2c: F0 00 00 26 21 36 [14:30:43]Write i2c OK [14:30:43]MH_I2C_Read... [14:30:43]Read from MH i2c: F0 [14:30:43]MH_I2C_Read... [14:30:43]Read from MH i2c: F0 09 00 [14:30:43]MH_I2C_Read... [14:30:43]Read from MH i2c: F0 09 00 26 21 00 14 FD 1C 67 68 46 19 67 01 [14:30:43]GetLastDocTimeStamp 1729953008 [14:30:43]current date 1729953044 [14:30:43]FM_GetShiftState [14:30:43]SAM_PROTO_GetShiftState [14:30:43]wFMCommunicate request_size=4 [14:30:43]MH_SAM_APDU [14:30:43]CAPDU: 80 13 01 00 [14:30:43]Write to MH i2c: E2 08 00 27 21 80 13 01 00 00 00 00 00 C5 [14:30:43]Write i2c OK [14:30:43]MH_I2C_Read... [14:30:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:43]Read from MH i2c: E2 [14:30:43]MH_I2C_Read... [14:30:43]Read from MH i2c: E2 0E 00 [14:30:43]MH_I2C_Read... [14:30:43]Read from MH i2c: E2 0E 00 27 21 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D4 [14:30:43]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:30:43]wFMCommunicate OK [14:30:43]SAM_PROTO_GetShiftState done [14:30:43]FM_GetShiftState done [14:30:43]opened in 1729900879 [14:30:43]opened+sec_in_day 1729987279 [14:30:43]quantity*price = 50041 [14:30:43]sum+1 = 50042 [14:30:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 298 26.10.2024 14:30 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201536 ФПД: 68110114640248 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143044&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201536&fm=68110114640248&tin=02508201610067®Number=0000000000091777&sum=50000 [14:30:44]StoreToDocumentArchive [14:30:44]shift 543 fd 201536 [14:30:44]save to /storage/0543/doc_00201536 [14:30:44]save last doc name /storage/0543/doc_00201536 to /storage/kkm_last_doc_name [14:30:44]save OK [14:30:44]Clear old archive folders... [14:30:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:30:44]tlvbuf is 01F58AC0 [14:30:44]SAM_PROTO_ClearQueue [14:30:44]wFMCommunicate request_size=4 [14:30:44]MH_SAM_APDU [14:30:44]CAPDU: 80 09 00 00 [14:30:44]Write to MH i2c: E2 08 00 34 21 80 09 00 00 00 00 00 00 C7 [14:30:44]Write i2c OK [14:30:44]MH_I2C_Read... [14:30:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:44]Read from MH i2c: E2 [14:30:44]MH_I2C_Read... [14:30:44]Read from MH i2c: E2 03 00 [14:30:44]MH_I2C_Read... [14:30:44]Read from MH i2c: E2 03 00 34 21 00 90 00 C9 [14:30:44]RAPDU: 90 00 [14:30:44]wFMCommunicate OK [14:30:44]SAM_PROTO_ClearQueue done [14:30:44]KKMCreateOFDPacket [14:30:44]OFDProtocolAddRootSTLVToBuf [14:30:44]FM_MakeSignedData [14:30:44]FM_MakeSignedData [14:30:44]SAM_PROTO_SignData [14:30:44]wFMCommunicate request_size=4 [14:30:44]MH_SAM_APDU [14:30:44]CAPDU: 80 0D 01 02 [14:30:44]Write to MH i2c: E2 08 00 35 21 80 0D 01 02 00 00 00 00 CF [14:30:44]Write i2c OK [14:30:44]MH_I2C_Read... [14:30:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:44]Read from MH i2c: E2 [14:30:44]MH_I2C_Read... [14:30:44]Read from MH i2c: E2 03 00 [14:30:44]MH_I2C_Read... [14:30:44]Read from MH i2c: E2 03 00 35 21 00 90 00 CA [14:30:44]RAPDU: 90 00 [14:30:44]wFMCommunicate OK [14:30:44]wFMCommunicate request_size=255 [14:30:44]MH_SAM_APDU [14:30: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 32 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 2A 01 00 00 F4 03 04 00 14 FD 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 40 13 03 00 35 04 06 00 3D [14:30:44]Write to MH i2c: E2 02 01 36 21 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 32 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 2A 01 00 00 F4 03 04 00 14 FD 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 40 13 03 00 35 04 06 00 3D 00 00 D6 [14:30:44]Write i2c OK [14:30:44]MH_I2C_Read... [14:30:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:44]Read from MH i2c: E2 [14:30:44]MH_I2C_Read... [14:30:44]Read from MH i2c: E2 03 00 [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: E2 03 00 36 21 00 90 00 CB [14:30:45]RAPDU: 90 00 [14:30:45]wFMCommunicate OK [14:30:45]wFMCommunicate request_size=10 [14:30:45]MH_SAM_APDU [14:30:45]CAPDU: 80 0D 02 02 05 F2 1F 30 51 78 [14:30:45]Write to MH i2c: E2 0D 00 37 21 80 0D 02 02 05 00 F2 1F 30 51 78 00 00 E6 [14:30:45]Write i2c OK [14:30:45]MH_I2C_Read... [14:30:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:45]Read from MH i2c: E2 [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: E2 03 00 [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: E2 03 00 37 21 00 90 00 CC [14:30:45]RAPDU: 90 00 [14:30:45]wFMCommunicate OK [14:30:45]wFMCommunicate request_size=4 [14:30:45]MH_SAM_APDU [14:30:45]CAPDU: 80 0D 03 02 [14:30:45]Write to MH i2c: E2 08 00 38 21 80 0D 03 02 00 00 00 00 D4 [14:30:45]Write i2c OK [14:30:45]MH_I2C_Read... [14:30:45]OFD Sender: No OFD packet to send [14:30:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:45]Read from MH i2c: E2 [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: E2 0B 00 [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: E2 0B 00 38 21 00 A1 04 27 E5 F5 93 DB 7D 90 00 66 [14:30:45]RAPDU: A1 04 27 E5 F5 93 DB 7D 90 00 [14:30:45]wFMCommunicate OK [14:30:45]SAM_PROTO_SignData done [14:30:45]FM_MakeSignedData done [14:30:45]CreateOFDProtocolMessage [14:30:45]wFMCommunicate request_size=4 [14:30:45]MH_SAM_APDU [14:30:45]CAPDU: 80 11 00 00 [14:30:45]Write to MH i2c: E2 08 00 39 21 80 11 00 00 00 00 00 00 D4 [14:30:45]Write i2c OK [14:30:45]MH_I2C_Read... [14:30:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:45]Read from MH i2c: E2 [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: E2 17 00 [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: E2 17 00 39 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 29 [14:30:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:30:45]wFMCommunicate OK [14:30:45]CreateOFDProtocolMessage done [14:30:45]OFDSenderStorePacket 201536 [14:30:45]StoreOFDPacket docnum=201536 [14:30:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 3A 18 07 01 1B 36 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 32 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 2A 01 00 00 F4 03 04 00 14 FD 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 40 13 03 00 35 04 06 00 3D F2 1F 30 51 78 A1 04 27 E5 F5 93 DB 7D [14:30:45]CheckFolder [14:30:45]dirname=/storage/ofd_packets [14:30:45]CheckFolder done [14:30:45]ProducePacketName [14:30:45]name=ofd_packets/00201536 [14:30:45]NVStorageSaveData ofd_packets/00201536 [14:30:45]File name is /storage/ofd_packets/00201536 [14:30:45]Write 301 bytes [14:30:45]NVStorageSaveData done [14:30:45]OFDSenderStorePacket done [14:30:45]KKMCreateOFDPacket done [14:30:45]NVStorageSaveData kkm_last_timestamp [14:30:45]File name is /storage/kkm_last_timestamp [14:30:45]Write 4 bytes [14:30:45]NVStorageSaveData done [14:30:45]ExternCall_PrintAddStr [14:30:45]wPrintStart [14:30:45]Write to MH i2c: 01 00 00 3A 21 5B [14:30:45]Write i2c OK [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: 01 [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: 01 07 00 [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: 01 07 00 3A 21 00 00 00 00 00 FF 0F 70 [14:30:45]RasterBufferAndPrint [14:30:45]line Счет N : (1)449288 [14:30:45]line ИНН: 02508201610067 [14:30:45]line Контрольно-Кассовый Чек [14:30:45]line ПРОДАЖА [14:30:45]line ТРК (МРК, ГНК) : 31 [14:30:45]line Товар: 2710124130 [14:30:45]line Аи-92-К-2 [14:30:45]line 7.480 * 66.90 [14:30:45]line = 500.41 [14:30:45]line НДС 12% НСП 1% [14:30:45]line > о реализуемом товаре [14:30:45]line ОКРУГЛЕНИЕ: -0.41 [14:30:45]line ИТОГО: 500.00 [14:30:45]line Внесено: 500.00 [14:30:45]line СДАЧА: 0.00 [14:30:45]line НСП 1% : 4.43 [14:30:45]line НДС 12% : 53.14 [14:30:45]line Наличными: 500.00 [14:30:45]line Безнал.: 0.00 [14:30:45]line Место: АЗС № 171 "Партнер Нефть" [14:30:45]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:30:45]line СНО: Общий режим [14:30:45]line Чек 298 26.10.2024 14:30 [14:30:45]line Смена: 543 ФФД: 1.0 [14:30:45]line ЗНМ: 0300000109 [14:30:45]line РНМ: 0000000000091777 [14:30:45]line Версия ККМ: 001 [14:30:45]line ФМ: 0000000000871756 [14:30:45]line ФД: 201536 [14:30:45]line ФПД: 68110114640248 [14:30:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143044&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201536&fm=68110114640248&tin=02508201610067®Number=0000000000091777&sum=50000 [14:30:45]OFD Sender: Processing packet 201536 [packets to send 112, broken 111] [14:30:45]ProducePacketName [14:30:45]name=ofd_packets/00201536 [14:30:45]OFD Sender: To server: pG, [14:30:45]CommunicateWithHost lk.salyk.kg:30040 [14:30:45]ConnectInit lk.salyk.kg [14:30:45]written 0, free lines is 4095 [14:30:45]Connected sock=9 [14:30:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 3A 18 07 01 1B 36 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 32 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 2A 01 00 00 F4 03 04 00 14 FD 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 40 13 03 00 35 04 06 00 3D F2 1F 30 51 78 A1 04 27 E5 F5 93 DB 7D [14:30:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E9 58 47 00 F8 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 40 13 03 00 F4 03 04 00 BD A8 1C 67 B6 04 01 00 00 CD 97 2E 05 14 1F A5 1B [14:30:45]CommunicateWithHost err = 0 [14:30:45]CheckOFDResponse [14:30:45]1017 (14) - 77093643461234 [14:30:45]1041 (16) - 0000000000871756 [14:30:45]1040 (4) - 201536 [14:30:45]1012 (4) - 26.10.2024 08:30 [14:30:45]1206 (1) - 0 [14:30:45]OFD Sender: Remove packet 201536 [14:30:45]ProducePacketName [14:30:45]name=ofd_packets/00201536 [14:30:45]NVStorageDeleteData [14:30:45]Write to MH i2c: 01 00 00 65 21 86 [14:30:45]Write i2c OK [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: 01 [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: 01 07 00 [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: 01 07 00 65 21 00 00 00 00 00 9D 0C 36 [14:30:45]RasterBufferAndPrint [14:30:45]line [14:30:45]line [14:30:45]line [14:30:45]line [14:30:45]line [14:30:45]written 0, free lines is 3235 [14:30:45]MH_Cut [14:30:45]Write to MH i2c: D1 01 00 6C 21 01 5F [14:30:45]Write i2c OK [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: D1 [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: D1 01 00 [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: D1 01 00 6C 21 00 5E [14:30:45]Write to MH i2c: 01 00 00 6D 21 8E [14:30:45]Write i2c OK [14:30:45]MH_I2C_Read... [14:30:46]OFD Sender: No OFD packet to send [14:30:46]*** Cut start [14:30:46]*** Purtial cut [14:30:46]*** Stage 1: CUTSNS_PIN = 1 [14:30:46]Read from MH i2c: 01 [14:30:46]MH_I2C_Read... [14:30:46]*** Stop cut motor [14:30:46]*** Cut end [14:30:46]Read from MH i2c: 01 07 00 [14:30:46]MH_I2C_Read... [14:30:46]Read from MH i2c: 01 07 00 6D 21 00 00 00 00 00 FF 0F A3 [14:30:46]process_action close_receipt done [14:30:46]requested_data is exist [14:30:46]produce_requested_data [14:30:46]requested_item fm.sn is exist - process it [14:30:46]wFMCommunicate request_size=4 [14:30:46]MH_SAM_APDU [14:30:46]CAPDU: 80 11 00 00 [14:30:46]Write to MH i2c: E2 08 00 6E 21 80 11 00 00 00 00 00 00 09 [14:30:46]Write i2c OK [14:30:46]MH_I2C_Read... [14:30:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:46]Read from MH i2c: E2 [14:30:46]MH_I2C_Read... [14:30:46]Read from MH i2c: E2 17 00 [14:30:46]MH_I2C_Read... [14:30:46]Read from MH i2c: E2 17 00 6E 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5E [14:30:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:30:46]wFMCommunicate OK [14:30:46]requested_item fd.num is exist - process it [14:30:46]SAM_PROTO_GetFieldsCounters [14:30:46]wFMCommunicate request_size=4 [14:30:46]MH_SAM_APDU [14:30:46]CAPDU: 80 13 00 00 [14:30:46]Write to MH i2c: E2 08 00 6F 21 80 13 00 00 00 00 00 00 0C [14:30:46]Write i2c OK [14:30:46]MH_I2C_Read... [14:30:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:46]Read from MH i2c: E2 [14:30:46]MH_I2C_Read... [14:30:46]Read from MH i2c: E2 62 00 [14:30:46]MH_I2C_Read... [14:30:46]Read from MH i2c: E2 62 00 6F 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 40 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 2D [14:30:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 40 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:30:46]wFMCommunicate OK [14:30:46]SAM_PROTO_GetFieldsCounters done [14:30:46]requested_item shift.num is exist - process it [14:30:46]requested_item shift.opened is exist - process it [14:30:46]req_shift_opened [14:30:46]FM_GetShiftState [14:30:46]SAM_PROTO_GetShiftState [14:30:46]wFMCommunicate request_size=4 [14:30:46]MH_SAM_APDU [14:30:46]CAPDU: 80 13 01 00 [14:30:46]Write to MH i2c: E2 08 00 70 21 80 13 01 00 00 00 00 00 0E [14:30:46]Write i2c OK [14:30:46]MH_I2C_Read... [14:30:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:47]Read from MH i2c: E2 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: E2 0E 00 [14:30:47]MH_I2C_Read... [14:30:47]Read from MH i2c: E2 0E 00 70 21 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 1D [14:30:47]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:30:47]wFMCommunicate OK [14:30:47]SAM_PROTO_GetShiftState done [14:30:47]FM_GetShiftState done [14:30:47]req_shift_opened done [14:30:47]requested_item shift.open_date is exist - process it [14:30:47]req_shift_open_date [14:30:47]req_shift_open_date done [14:30:47]produce_requested_data done [14:30:47]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201536,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:30:47]process_action_free close_receipt [14:30:47]json_value_free [14:30:47]json_value_free done [14:30:47]process_json_proto returns [14:30:47]Send response to host [14:30:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201536,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:30:47]free response buf [14:30:47]execute_script done [14:30:47]execute_script returns [14:30:47]free content buf [14:30:47]Sock 8.Close socket [14:30:47]Sock 8.Thread stoped [14:30:51]OFD Sender: No OFD packet to send [14:30:56]OFD Sender: No OFD packet to send [14:31:01]OFD Sender: No OFD packet to send [14:31:06]OFD Sender: No OFD packet to send [14:31:11]OFD Sender: No OFD packet to send [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:26]OFD Sender: No OFD packet to send [14:31:31]OFD Sender: No OFD packet to send [14:31:36]OFD Sender: No OFD packet to send [14:31:36]accept exits with 10 [14:31:36]New connection [14:31:36]New thread 3066834276 created [14:31:36]Thread 3066690916 joined [14:31:36]Waiting for new connection... [14:31:36] Sock 10.Parse request [14:31:36]Sock 10.Check first char [14:31:36]Sock 10.First char is OK [14:31:36]request: POST /json_proto HTTP/1.0 [14:31:36]Method: POST [14:31:36]URL: /json_proto [14:31:36]Method is POST - this is cgi request [14:31:36]url: /json_proto [14:31:36]query_string will be loaded in cgi processing [14:31:36]execute_cgi json_proto POST (null) [14:31:36]execute_cgi path=json_proto method=POST [14:31:36]POST find Content-Length [14:31:36]Host: 172.17.63.195:8080 [14:31:36]Content-Length: 674 [14:31:36]Content-Type: application/json [14:31:36] [14:31:36]POST finish read [14:31:36]Found Content-Length = 674 [14:31:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [14:31:36]execute_script... [14:31: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)449289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [14:31:36]POST & json_proto [14:31:36]process_json_proto [14:31:36]json parsed OK: [14:31:36]protocol is kg_v1.0 [14:31:36]action value=close_receipt [14:31:36]process_action close_receipt [14:31:36]cmd_close_receipt [14:31:36]MH_GetDate [14:31:36]Write to MH i2c: F0 00 00 71 21 81 [14:31:36]Write i2c OK [14:31:36]MH_I2C_Read... [14:31:36]Read from MH i2c: F0 [14:31:36]MH_I2C_Read... [14:31:36]Read from MH i2c: F0 09 00 [14:31:36]MH_I2C_Read... [14:31:36]Read from MH i2c: F0 09 00 71 21 00 49 FD 1C 67 68 46 19 67 81 [14:31:36]GetLastDocTimeStamp 1729953044 [14:31:36]current date 1729953097 [14:31:36]FM_GetShiftState [14:31:36]SAM_PROTO_GetShiftState [14:31:36]wFMCommunicate request_size=4 [14:31:36]MH_SAM_APDU [14:31:36]CAPDU: 80 13 01 00 [14:31:36]Write to MH i2c: E2 08 00 72 21 80 13 01 00 00 00 00 00 10 [14:31:36]Write i2c OK [14:31:36]MH_I2C_Read... [14:31:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:36]Read from MH i2c: E2 [14:31:36]MH_I2C_Read... [14:31:36]Read from MH i2c: E2 0E 00 [14:31:36]MH_I2C_Read... [14:31:36]Read from MH i2c: E2 0E 00 72 21 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 1F [14:31:36]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:31:36]wFMCommunicate OK [14:31:36]SAM_PROTO_GetShiftState done [14:31:36]FM_GetShiftState done [14:31:36]opened in 1729900879 [14:31:36]opened+sec_in_day 1729987279 [14:31:36]quantity*price = 50063 [14:31:36]sum+1 = 50064 [14:31:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 299 26.10.2024 14:31 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201537 ФПД: 28764524043618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143137&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201537&fm=28764524043618&tin=02508201610067®Number=0000000000091777&sum=50000 [14:31:37]StoreToDocumentArchive [14:31:37]shift 543 fd 201537 [14:31:37]save to /storage/0543/doc_00201537 [14:31:37]save last doc name /storage/0543/doc_00201537 to /storage/kkm_last_doc_name [14:31:37]save OK [14:31:37]Clear old archive folders... [14:31:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:31:37]tlvbuf is 01F9C620 [14:31:37]SAM_PROTO_ClearQueue [14:31:37]wFMCommunicate request_size=4 [14:31:37]MH_SAM_APDU [14:31:37]CAPDU: 80 09 00 00 [14:31:37]Write to MH i2c: E2 08 00 7F 21 80 09 00 00 00 00 00 00 12 [14:31:37]Write i2c OK [14:31:37]MH_I2C_Read... [14:31:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:37]Read from MH i2c: E2 [14:31:37]MH_I2C_Read... [14:31:37]Read from MH i2c: E2 03 00 [14:31:37]MH_I2C_Read... [14:31:37]Read from MH i2c: E2 03 00 7F 21 00 90 00 14 [14:31:37]RAPDU: 90 00 [14:31:37]wFMCommunicate OK [14:31:37]SAM_PROTO_ClearQueue done [14:31:37]KKMCreateOFDPacket [14:31:37]OFDProtocolAddRootSTLVToBuf [14:31:37]FM_MakeSignedData [14:31:37]FM_MakeSignedData [14:31:37]SAM_PROTO_SignData [14:31:37]wFMCommunicate request_size=4 [14:31:37]MH_SAM_APDU [14:31:37]CAPDU: 80 0D 01 02 [14:31:37]Write to MH i2c: E2 08 00 80 21 80 0D 01 02 00 00 00 00 1A [14:31:37]Write i2c OK [14:31:37]MH_I2C_Read... [14:31:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:37]Read from MH i2c: E2 [14:31:37]MH_I2C_Read... [14:31:37]Read from MH i2c: E2 03 00 [14:31:37]MH_I2C_Read... [14:31:37]Read from MH i2c: E2 03 00 80 21 00 90 00 15 [14:31:37]RAPDU: 90 00 [14:31:37]wFMCommunicate OK [14:31:37]wFMCommunicate request_size=255 [14:31:37]MH_SAM_APDU [14:31:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 2B 01 00 00 F4 03 04 00 49 FD 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 41 13 03 00 35 04 06 00 1A 29 43 3C [14:31:37]Write to MH i2c: E2 02 01 81 21 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 2B 01 00 00 F4 03 04 00 49 FD 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 41 13 03 00 35 04 06 00 1A 29 43 3C 00 00 5B [14:31:37]Write i2c OK [14:31:37]MH_I2C_Read... [14:31:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:37]Read from MH i2c: E2 [14:31:37]MH_I2C_Read... [14:31:37]Read from MH i2c: E2 03 00 [14:31:37]MH_I2C_Read... [14:31:37]Read from MH i2c: E2 03 00 81 21 00 90 00 16 [14:31:37]RAPDU: 90 00 [14:31:37]wFMCommunicate OK [14:31:37]wFMCommunicate request_size=7 [14:31:37]MH_SAM_APDU [14:31:37]CAPDU: 80 0D 02 02 02 DD 62 [14:31:37]Write to MH i2c: E2 0A 00 82 21 80 0D 02 02 02 00 DD 62 00 00 60 [14:31:37]Write i2c OK [14:31:37]MH_I2C_Read... [14:31:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:37]Read from MH i2c: E2 [14:31:37]MH_I2C_Read... [14:31:37]Read from MH i2c: E2 03 00 [14:31:37]MH_I2C_Read... [14:31:37]Read from MH i2c: E2 03 00 82 21 00 90 00 17 [14:31:37]RAPDU: 90 00 [14:31:37]wFMCommunicate OK [14:31:37]wFMCommunicate request_size=4 [14:31:37]MH_SAM_APDU [14:31:37]CAPDU: 80 0D 03 02 [14:31:37]Write to MH i2c: E2 08 00 83 21 80 0D 03 02 00 00 00 00 1F [14:31:37]Write i2c OK [14:31:37]MH_I2C_Read... [14:31:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:37]Read from MH i2c: E2 [14:31:37]MH_I2C_Read... [14:31:37]Read from MH i2c: E2 0B 00 [14:31:37]MH_I2C_Read... [14:31:37]Read from MH i2c: E2 0B 00 83 21 00 1C EE 53 4B CC A6 25 D1 90 00 30 [14:31:37]RAPDU: 1C EE 53 4B CC A6 25 D1 90 00 [14:31:37]wFMCommunicate OK [14:31:37]SAM_PROTO_SignData done [14:31:37]FM_MakeSignedData done [14:31:37]CreateOFDProtocolMessage [14:31:37]wFMCommunicate request_size=4 [14:31:37]MH_SAM_APDU [14:31:37]CAPDU: 80 11 00 00 [14:31:37]Write to MH i2c: E2 08 00 84 21 80 11 00 00 00 00 00 00 1F [14:31:37]Write i2c OK [14:31:37]MH_I2C_Read... [14:31:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:37]Read from MH i2c: E2 [14:31:37]MH_I2C_Read... [14:31:37]Read from MH i2c: E2 17 00 [14:31:37]MH_I2C_Read... [14:31:37]Read from MH i2c: E2 17 00 84 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 74 [14:31:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:31:37]wFMCommunicate OK [14:31:37]CreateOFDProtocolMessage done [14:31:37]OFDSenderStorePacket 201537 [14:31:37]StoreOFDPacket docnum=201537 [14:31:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 5D 31 04 01 BD 4D 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 2B 01 00 00 F4 03 04 00 49 FD 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 41 13 03 00 35 04 06 00 1A 29 43 3C DD 62 1C EE 53 4B CC A6 25 D1 [14:31:37]CheckFolder [14:31:37]dirname=/storage/ofd_packets [14:31:37]CheckFolder done [14:31:37]ProducePacketName [14:31:37]name=ofd_packets/00201537 [14:31:37]NVStorageSaveData ofd_packets/00201537 [14:31:37]File name is /storage/ofd_packets/00201537 [14:31:37]Write 298 bytes [14:31:37]NVStorageSaveData done [14:31:37]OFDSenderStorePacket done [14:31:37]KKMCreateOFDPacket done [14:31:37]NVStorageSaveData kkm_last_timestamp [14:31:37]File name is /storage/kkm_last_timestamp [14:31:37]Write 4 bytes [14:31:37]NVStorageSaveData done [14:31:37]ExternCall_PrintAddStr [14:31:37]wPrintStart [14:31:37]Write to MH i2c: 01 00 00 85 21 A6 [14:31:37]Write i2c OK [14:31:37]MH_I2C_Read... [14:31:37]Read from MH i2c: 01 [14:31:37]MH_I2C_Read... [14:31:37]Read from MH i2c: 01 07 00 [14:31:37]MH_I2C_Read... [14:31:37]Read from MH i2c: 01 07 00 85 21 00 00 00 00 00 FF 0F BB [14:31:37]RasterBufferAndPrint [14:31:37]line Счет N : (1)449289 [14:31:37]line ИНН: 02508201610067 [14:31:37]line Контрольно-Кассовый Чек [14:31:37]line ПРОДАЖА [14:31:37]line ТРК (МРК, ГНК) : 43 [14:31:37]line Товар: 2710194210 [14:31:37]line ДТ-К-2 [14:31:37]line 6.570 * 76.20 [14:31:37]line = 500.63 [14:31:37]line НДС 12% НСП 1% [14:31:37]line > о реализуемом товаре [14:31:37]line ОКРУГЛЕНИЕ: -0.63 [14:31:37]line ИТОГО: 500.00 [14:31:37]line Внесено: 500.00 [14:31:37]line СДАЧА: 0.00 [14:31:37]line НСП 1% : 4.43 [14:31:37]line НДС 12% : 53.16 [14:31:37]line Наличными: 500.00 [14:31:37]line Безнал.: 0.00 [14:31:37]line Место: АЗС № 171 "Партнер Нефть" [14:31:37]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:31:37]line СНО: Общий режим [14:31:37]line Чек 299 26.10.2024 14:31 [14:31:37]line Смена: 543 ФФД: 1.0 [14:31:37]line ЗНМ: 0300000109 [14:31:37]line РНМ: 0000000000091777 [14:31:37]line Версия ККМ: 001 [14:31:37]line ФМ: 0000000000871756 [14:31:37]line ФД: 201537 [14:31:37]line ФПД: 28764524043618 [14:31:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143137&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201537&fm=28764524043618&tin=02508201610067®Number=0000000000091777&sum=50000 [14:31:38]OFD Sender: Processing packet 201537 [packets to send 112, broken 111] [14:31:38]ProducePacketName [14:31:38]name=ofd_packets/00201537 [14:31:38]OFD Sender: To server: pG, [14:31:38]CommunicateWithHost lk.salyk.kg:30040 [14:31:38]ConnectInit lk.salyk.kg [14:31:38]written 0, free lines is 4095 [14:31:38]Connected sock=9 [14:31:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 5D 31 04 01 BD 4D 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 2B 01 00 00 F4 03 04 00 49 FD 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 41 13 03 00 35 04 06 00 1A 29 43 3C DD 62 1C EE 53 4B CC A6 25 D1 [14:31:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 74 A9 47 00 3E 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 41 13 03 00 F4 03 04 00 F2 A8 1C 67 B6 04 01 00 00 F0 D8 32 C6 49 FB C8 19 [14:31:38]CommunicateWithHost err = 0 [14:31:38]CheckOFDResponse [14:31:38]1017 (14) - 77093643461234 [14:31:38]1041 (16) - 0000000000871756 [14:31:38]1040 (4) - 201537 [14:31:38]1012 (4) - 26.10.2024 08:31 [14:31:38]1206 (1) - 0 [14:31:38]OFD Sender: Remove packet 201537 [14:31:38]ProducePacketName [14:31:38]name=ofd_packets/00201537 [14:31:38]NVStorageDeleteData [14:31:38]Write to MH i2c: 01 00 00 B0 21 D1 [14:31:38]Write i2c OK [14:31:38]MH_I2C_Read... [14:31:38]Read from MH i2c: 01 [14:31:38]MH_I2C_Read... [14:31:38]Read from MH i2c: 01 07 00 [14:31:38]MH_I2C_Read... [14:31:38]Read from MH i2c: 01 07 00 B0 21 00 00 00 00 00 A2 0C 86 [14:31:38]RasterBufferAndPrint [14:31:38]line [14:31:38]line [14:31:38]line [14:31:38]line [14:31:38]line [14:31:38]written 0, free lines is 3240 [14:31:38]MH_Cut [14:31:38]Write to MH i2c: D1 01 00 B7 21 01 AA [14:31:38]Write i2c OK [14:31:38]MH_I2C_Read... [14:31:38]Read from MH i2c: D1 [14:31:38]MH_I2C_Read... [14:31:38]Read from MH i2c: D1 01 00 [14:31:38]MH_I2C_Read... [14:31:38]Read from MH i2c: D1 01 00 B7 21 00 A9 [14:31:38]Write to MH i2c: 01 00 00 B8 21 D9 [14:31:38]Write i2c OK [14:31:38]MH_I2C_Read... [14:31:39]OFD Sender: No OFD packet to send [14:31:39]*** Cut start [14:31:39]*** Purtial cut [14:31:39]*** Stage 1: CUTSNS_PIN = 1 [14:31:39]Read from MH i2c: 01 [14:31:39]MH_I2C_Read... [14:31:39]*** Stop cut motor [14:31:39]*** Cut end [14:31:39]Read from MH i2c: 01 07 00 [14:31:39]MH_I2C_Read... [14:31:39]Read from MH i2c: 01 07 00 B8 21 00 00 00 00 00 FF 0F EE [14:31:39]process_action close_receipt done [14:31:39]requested_data is exist [14:31:39]produce_requested_data [14:31:39]requested_item fm.sn is exist - process it [14:31:39]wFMCommunicate request_size=4 [14:31:39]MH_SAM_APDU [14:31:39]CAPDU: 80 11 00 00 [14:31:39]Write to MH i2c: E2 08 00 B9 21 80 11 00 00 00 00 00 00 54 [14:31:39]Write i2c OK [14:31:39]MH_I2C_Read... [14:31:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:39]Read from MH i2c: E2 [14:31:39]MH_I2C_Read... [14:31:39]Read from MH i2c: E2 17 00 [14:31:39]MH_I2C_Read... [14:31:39]Read from MH i2c: E2 17 00 B9 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A9 [14:31:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:31:39]wFMCommunicate OK [14:31:39]requested_item fd.num is exist - process it [14:31:39]SAM_PROTO_GetFieldsCounters [14:31:39]wFMCommunicate request_size=4 [14:31:39]MH_SAM_APDU [14:31:39]CAPDU: 80 13 00 00 [14:31:39]Write to MH i2c: E2 08 00 BA 21 80 13 00 00 00 00 00 00 57 [14:31:39]Write i2c OK [14:31:39]MH_I2C_Read... [14:31:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:39]Read from MH i2c: E2 [14:31:39]MH_I2C_Read... [14:31:39]Read from MH i2c: E2 62 00 [14:31:39]MH_I2C_Read... [14:31:39]Read from MH i2c: E2 62 00 BA 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 41 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 7C [14:31:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 41 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:31:39]wFMCommunicate OK [14:31:39]SAM_PROTO_GetFieldsCounters done [14:31:39]requested_item shift.num is exist - process it [14:31:39]requested_item shift.opened is exist - process it [14:31:39]req_shift_opened [14:31:39]FM_GetShiftState [14:31:39]SAM_PROTO_GetShiftState [14:31:39]wFMCommunicate request_size=4 [14:31:39]MH_SAM_APDU [14:31:39]CAPDU: 80 13 01 00 [14:31:39]Write to MH i2c: E2 08 00 BB 21 80 13 01 00 00 00 00 00 59 [14:31:39]Write i2c OK [14:31:39]MH_I2C_Read... [14:31:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:40]Read from MH i2c: E2 [14:31:40]MH_I2C_Read... [14:31:40]Read from MH i2c: E2 0E 00 [14:31:40]MH_I2C_Read... [14:31:40]Read from MH i2c: E2 0E 00 BB 21 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 68 [14:31:40]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:31:40]wFMCommunicate OK [14:31:40]SAM_PROTO_GetShiftState done [14:31:40]FM_GetShiftState done [14:31:40]req_shift_opened done [14:31:40]requested_item shift.open_date is exist - process it [14:31:40]req_shift_open_date [14:31:40]req_shift_open_date done [14:31:40]produce_requested_data done [14:31:40]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201537,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:31:40]process_action_free close_receipt [14:31:40]json_value_free [14:31:40]json_value_free done [14:31:40]process_json_proto returns [14:31:40]Send response to host [14:31:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201537,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:31:40]free response buf [14:31:40]execute_script done [14:31:40]execute_script returns [14:31:40]free content buf [14:31:40]Sock 10.Close socket [14:31:40]Sock 10.Thread stoped [14:31:44]OFD Sender: No OFD packet to send [14:31:49]OFD Sender: No OFD packet to send [14:31:54]OFD Sender: No OFD packet to send [14:31:59]OFD Sender: No OFD packet to send [14:32:04]OFD Sender: No OFD packet to send [14:32:09]OFD Sender: No OFD packet to send [14:32:14]OFD Sender: No OFD packet to send [14:32:19]OFD Sender: No OFD packet to send [14:32:24]OFD Sender: No OFD packet to send [14:32:29]OFD Sender: No OFD packet to send [14:32:34]OFD Sender: No OFD packet to send [14:32:39]OFD Sender: No OFD packet to send [14:32:44]OFD Sender: No OFD packet to send [14:32:49]OFD Sender: No OFD packet to send [14:32:54]OFD Sender: No OFD packet to send [14:32:59]OFD Sender: No OFD packet to send [14:33:04]OFD Sender: No OFD packet to send [14:33:09]OFD Sender: No OFD packet to send [14:33:14]OFD Sender: No OFD packet to send [14:33:19]OFD Sender: No OFD packet to send [14:33:24]OFD Sender: No OFD packet to send [14:33:29]OFD Sender: No OFD packet to send [14:33:34]OFD Sender: No OFD packet to send [14:33:39]OFD Sender: No OFD packet to send [14:33:44]OFD Sender: No OFD packet to send [14:33:49]OFD Sender: No OFD packet to send [14:33:54]OFD Sender: No OFD packet to send [14:33:59]OFD Sender: No OFD packet to send [14:34:04]OFD Sender: No OFD packet to send [14:34:09]OFD Sender: No OFD packet to send [14:34:14]OFD Sender: No OFD packet to send [14:34:19]OFD Sender: No OFD packet to send [14:34:24]OFD Sender: No OFD packet to send [14:34:29]OFD Sender: No OFD packet to send [14:34:34]OFD Sender: No OFD packet to send [14:34:39]OFD Sender: No OFD packet to send [14:34:44]OFD Sender: No OFD packet to send [14:34:49]OFD Sender: No OFD packet to send [14:34:54]OFD Sender: No OFD packet to send [14:34:59]OFD Sender: No OFD packet to send [14:35:04]OFD Sender: No OFD packet to send [14:35:09]OFD Sender: No OFD packet to send [14:35:14]OFD Sender: No OFD packet to send [14:35:19]OFD Sender: No OFD packet to send [14:35:24]OFD Sender: No OFD packet to send [14:35:29]OFD Sender: No OFD packet to send [14:35:34]OFD Sender: No OFD packet to send [14:35:39]OFD Sender: No OFD packet to send [14:35:40]accept exits with 8 [14:35:40]New connection [14:35:40]New thread 3066690916 created [14:35:40] Sock 8.Parse request [14:35:40]Thread 3066834276 joined [14:35:40]Sock 8.Check first char [14:35:40]Waiting for new connection... [14:35:40]Sock 8.First char is OK [14:35:40]request: POST /json_proto HTTP/1.0 [14:35:40]Method: POST [14:35:40]URL: /json_proto [14:35:40]Method is POST - this is cgi request [14:35:40]url: /json_proto [14:35:40]query_string will be loaded in cgi processing [14:35:40]execute_cgi json_proto POST (null) [14:35:40]execute_cgi path=json_proto method=POST [14:35:40]POST find Content-Length [14:35:40]Host: 172.17.63.195:8080 [14:35:40]Content-Length: 679 [14:35:40]Content-Type: application/json [14:35:40] [14:35:40]POST finish read [14:35:40]Found Content-Length = 679 [14:35:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [14:35:40]execute_script... [14:35:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [14:35:40]POST & json_proto [14:35:40]process_json_proto [14:35:40]json parsed OK: [14:35:40]protocol is kg_v1.0 [14:35:40]action value=close_receipt [14:35:40]process_action close_receipt [14:35:40]cmd_close_receipt [14:35:40]MH_GetDate [14:35:40]Write to MH i2c: F0 00 00 BC 21 CC [14:35:40]Write i2c OK [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: F0 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: F0 09 00 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: F0 09 00 BC 21 00 3D FE 1C 67 68 46 19 67 C1 [14:35:40]GetLastDocTimeStamp 1729953097 [14:35:40]current date 1729953341 [14:35:40]FM_GetShiftState [14:35:40]SAM_PROTO_GetShiftState [14:35:40]wFMCommunicate request_size=4 [14:35:40]MH_SAM_APDU [14:35:40]CAPDU: 80 13 01 00 [14:35:40]Write to MH i2c: E2 08 00 BD 21 80 13 01 00 00 00 00 00 5B [14:35:40]Write i2c OK [14:35:40]MH_I2C_Read... [14:35:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:40]Read from MH i2c: E2 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 0E 00 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 0E 00 BD 21 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 6A [14:35:40]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:35:40]wFMCommunicate OK [14:35:40]SAM_PROTO_GetShiftState done [14:35:40]FM_GetShiftState done [14:35:40]opened in 1729900879 [14:35:40]opened+sec_in_day 1729987279 [14:35:40]quantity*price = 200025 [14:35:40]sum+1 = 200026 [14:35:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 300 26.10.2024 14:35 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201538 ФПД: 124944383493543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143541&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201538&fm=124944383493543&tin=02508201610067®Number=0000000000091777&sum=200000 [14:35:41]StoreToDocumentArchive [14:35:41]shift 543 fd 201538 [14:35:41]save to /storage/0543/doc_00201538 [14:35:41]save last doc name /storage/0543/doc_00201538 to /storage/kkm_last_doc_name [14:35:41]save OK [14:35:41]Clear old archive folders... [14:35:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:35:41]tlvbuf is 01F9CE40 [14:35:41]SAM_PROTO_ClearQueue [14:35:41]wFMCommunicate request_size=4 [14:35:41]MH_SAM_APDU [14:35:41]CAPDU: 80 09 00 00 [14:35:41]Write to MH i2c: E2 08 00 CA 21 80 09 00 00 00 00 00 00 5D [14:35:41]Write i2c OK [14:35:41]MH_I2C_Read... [14:35:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:41]Read from MH i2c: E2 [14:35:41]MH_I2C_Read... [14:35:41]Read from MH i2c: E2 03 00 [14:35:41]MH_I2C_Read... [14:35:41]Read from MH i2c: E2 03 00 CA 21 00 90 00 5F [14:35:41]RAPDU: 90 00 [14:35:41]wFMCommunicate OK [14:35:41]SAM_PROTO_ClearQueue done [14:35:41]KKMCreateOFDPacket [14:35:41]OFDProtocolAddRootSTLVToBuf [14:35:41]FM_MakeSignedData [14:35:41]FM_MakeSignedData [14:35:41]SAM_PROTO_SignData [14:35:41]wFMCommunicate request_size=4 [14:35:41]MH_SAM_APDU [14:35:41]CAPDU: 80 0D 01 02 [14:35:41]Write to MH i2c: E2 08 00 CB 21 80 0D 01 02 00 00 00 00 65 [14:35:41]Write i2c OK [14:35:41]MH_I2C_Read... [14:35:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:41]Read from MH i2c: E2 [14:35:41]MH_I2C_Read... [14:35:41]Read from MH i2c: E2 03 00 [14:35:41]MH_I2C_Read... [14:35:41]Read from MH i2c: E2 03 00 CB 21 00 90 00 60 [14:35:41]RAPDU: 90 00 [14:35:41]wFMCommunicate OK [14:35:41]wFMCommunicate request_size=255 [14:35:41]MH_SAM_APDU [14:35:41]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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 2C 01 00 00 F4 03 04 00 3D FE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 42 13 03 00 35 04 06 00 71 A2 E1 98 [14:35:41]Write to MH i2c: E2 02 01 CC 21 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 2C 01 00 00 F4 03 04 00 3D FE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 42 13 03 00 35 04 06 00 71 A2 E1 98 00 00 CD [14:35:41]Write i2c OK [14:35:41]MH_I2C_Read... [14:35:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:42]Read from MH i2c: E2 [14:35:42]MH_I2C_Read... [14:35:42]Read from MH i2c: E2 03 00 [14:35:42]MH_I2C_Read... [14:35:42]Read from MH i2c: E2 03 00 CC 21 00 90 00 61 [14:35:42]RAPDU: 90 00 [14:35:42]wFMCommunicate OK [14:35:42]wFMCommunicate request_size=7 [14:35:42]MH_SAM_APDU [14:35:42]CAPDU: 80 0D 02 02 02 45 A7 [14:35:42]Write to MH i2c: E2 0A 00 CD 21 80 0D 02 02 02 00 45 A7 00 00 58 [14:35:42]Write i2c OK [14:35:42]MH_I2C_Read... [14:35:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:42]Read from MH i2c: E2 [14:35:42]MH_I2C_Read... [14:35:42]Read from MH i2c: E2 03 00 [14:35:42]MH_I2C_Read... [14:35:42]Read from MH i2c: E2 03 00 CD 21 00 90 00 62 [14:35:42]RAPDU: 90 00 [14:35:42]wFMCommunicate OK [14:35:42]wFMCommunicate request_size=4 [14:35:42]MH_SAM_APDU [14:35:42]CAPDU: 80 0D 03 02 [14:35:42]Write to MH i2c: E2 08 00 CE 21 80 0D 03 02 00 00 00 00 6A [14:35:42]Write i2c OK [14:35:42]MH_I2C_Read... [14:35:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:42]Read from MH i2c: E2 [14:35:42]MH_I2C_Read... [14:35:42]Read from MH i2c: E2 0B 00 [14:35:42]MH_I2C_Read... [14:35:42]Read from MH i2c: E2 0B 00 CE 21 00 97 BD 34 7D 6A E2 4A 5E 90 00 64 [14:35:42]RAPDU: 97 BD 34 7D 6A E2 4A 5E 90 00 [14:35:42]wFMCommunicate OK [14:35:42]SAM_PROTO_SignData done [14:35:42]FM_MakeSignedData done [14:35:42]CreateOFDProtocolMessage [14:35:42]wFMCommunicate request_size=4 [14:35:42]MH_SAM_APDU [14:35:42]CAPDU: 80 11 00 00 [14:35:42]Write to MH i2c: E2 08 00 CF 21 80 11 00 00 00 00 00 00 6A [14:35:42]Write i2c OK [14:35:42]MH_I2C_Read... [14:35:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:42]Read from MH i2c: E2 [14:35:42]MH_I2C_Read... [14:35:42]Read from MH i2c: E2 17 00 [14:35:42]MH_I2C_Read... [14:35:42]Read from MH i2c: E2 17 00 CF 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BF [14:35:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:35:42]wFMCommunicate OK [14:35:42]CreateOFDProtocolMessage done [14:35:42]OFDSenderStorePacket 201538 [14:35:42]StoreOFDPacket docnum=201538 [14:35:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 DF 97 04 01 FC C2 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 2C 01 00 00 F4 03 04 00 3D FE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 42 13 03 00 35 04 06 00 71 A2 E1 98 45 A7 97 BD 34 7D 6A E2 4A 5E [14:35:42]CheckFolder [14:35:42]dirname=/storage/ofd_packets [14:35:42]CheckFolder done [14:35:42]ProducePacketName [14:35:42]name=ofd_packets/00201538 [14:35:42]NVStorageSaveData ofd_packets/00201538 [14:35:42]File name is /storage/ofd_packets/00201538 [14:35:42]Write 298 bytes [14:35:42]NVStorageSaveData done [14:35:42]OFDSenderStorePacket done [14:35:42]KKMCreateOFDPacket done [14:35:42]NVStorageSaveData kkm_last_timestamp [14:35:42]File name is /storage/kkm_last_timestamp [14:35:42]Write 4 bytes [14:35:42]NVStorageSaveData done [14:35:42]ExternCall_PrintAddStr [14:35:42]wPrintStart [14:35:42]Write to MH i2c: 01 00 00 D0 21 F1 [14:35:42]Write i2c OK [14:35:42]MH_I2C_Read... [14:35:42]Read from MH i2c: 01 [14:35:42]MH_I2C_Read... [14:35:42]Read from MH i2c: 01 07 00 [14:35:42]MH_I2C_Read... [14:35:42]Read from MH i2c: 01 07 00 D0 21 00 00 00 00 00 FF 0F 06 [14:35:42]RasterBufferAndPrint [14:35:42]line Счет N : (1)449290 [14:35:42]line ИНН: 02508201610067 [14:35:42]line Контрольно-Кассовый Чек [14:35:42]line ПРОДАЖА [14:35:42]line ТРК (МРК, ГНК) : 43 [14:35:42]line Товар: 2710194210 [14:35:42]line ДТ-К-2 [14:35:42]line 26.250 * 76.20 [14:35:42]line = 2000.25 [14:35:42]line НДС 12% НСП 1% [14:35:42]line > о реализуемом товаре [14:35:42]line ОКРУГЛЕНИЕ: -0.25 [14:35:42]line ИТОГО: 2000.00 [14:35:42]line Внесено: 2000.00 [14:35:42]line СДАЧА: 0.00 [14:35:42]line НСП 1% : 17.70 [14:35:42]line НДС 12% : 212.42 [14:35:42]line Наличными: 2000.00 [14:35:42]line Безнал.: 0.00 [14:35:42]line Место: АЗС № 171 "Партнер Нефть" [14:35:42]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:35:42]line СНО: Общий режим [14:35:42]line Чек 300 26.10.2024 14:35 [14:35:42]line Смена: 543 ФФД: 1.0 [14:35:42]line ЗНМ: 0300000109 [14:35:42]line РНМ: 0000000000091777 [14:35:42]line Версия ККМ: 001 [14:35:42]line ФМ: 0000000000871756 [14:35:42]line ФД: 201538 [14:35:42]line ФПД: 124944383493543 [14:35:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143541&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201538&fm=124944383493543&tin=02508201610067®Number=0000000000091777&sum=200000 [14:35:42]written 0, free lines is 4095 [14:35:42]OFD Sender: Processing packet 201538 [packets to send 112, broken 111] [14:35:42]ProducePacketName [14:35:42]name=ofd_packets/00201538 [14:35:42]OFD Sender: To server: pG, [14:35:42]CommunicateWithHost lk.salyk.kg:30040 [14:35:42]ConnectInit lk.salyk.kg [14:35:42]Connected sock=9 [14:35:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 DF 97 04 01 FC C2 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 2C 01 00 00 F4 03 04 00 3D FE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 42 13 03 00 35 04 06 00 71 A2 E1 98 45 A7 97 BD 34 7D 6A E2 4A 5E [14:35:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 58 52 47 00 3C 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 42 13 03 00 F4 03 04 00 E6 A9 1C 67 B6 04 01 00 00 4D 57 31 BA 52 DF 12 F2 [14:35:42]CommunicateWithHost err = 0 [14:35:42]CheckOFDResponse [14:35:42]1017 (14) - 77093643461234 [14:35:42]1041 (16) - 0000000000871756 [14:35:42]1040 (4) - 201538 [14:35:42]1012 (4) - 26.10.2024 08:35 [14:35:42]1206 (1) - 0 [14:35:42]OFD Sender: Remove packet 201538 [14:35:42]ProducePacketName [14:35:42]name=ofd_packets/00201538 [14:35:42]NVStorageDeleteData [14:35:42]Write to MH i2c: 01 00 00 FB 21 1C [14:35:42]Write i2c OK [14:35:42]MH_I2C_Read... [14:35:42]Read from MH i2c: 01 [14:35:42]MH_I2C_Read... [14:35:42]Read from MH i2c: 01 07 00 [14:35:42]MH_I2C_Read... [14:35:42]Read from MH i2c: 01 07 00 FB 21 00 00 00 00 00 A2 0C D1 [14:35:42]RasterBufferAndPrint [14:35:42]line [14:35:42]line [14:35:42]line [14:35:42]line [14:35:42]line [14:35:42]written 0, free lines is 3240 [14:35:42]MH_Cut [14:35:42]Write to MH i2c: D1 01 00 02 22 01 F6 [14:35:42]Write i2c OK [14:35:42]MH_I2C_Read... [14:35:42]Read from MH i2c: D1 [14:35:42]MH_I2C_Read... [14:35:42]Read from MH i2c: D1 01 00 [14:35:42]MH_I2C_Read... [14:35:42]Read from MH i2c: D1 01 00 02 22 00 F5 [14:35:42]Write to MH i2c: 01 00 00 03 22 25 [14:35:42]Write i2c OK [14:35:42]MH_I2C_Read... [14:35:43]OFD Sender: No OFD packet to send [14:35:43]*** Cut start [14:35:43]*** Purtial cut [14:35:43]*** CUTSNS_PIN = 0 [14:35:43]*** Stage 1: CUTSNS_PIN = 1 [14:35:45]Read from MH i2c: 01 [14:35:45]MH_I2C_Read... [14:35:45]*** Stop cut motor [14:35:45]*** Cut end [14:35:45]Read from MH i2c: 01 07 00 [14:35:45]MH_I2C_Read... [14:35:45]Read from MH i2c: 01 07 00 03 22 00 00 00 00 00 FF 0F 3A [14:35:45]process_action close_receipt done [14:35:45]requested_data is exist [14:35:45]produce_requested_data [14:35:45]requested_item fm.sn is exist - process it [14:35:45]wFMCommunicate request_size=4 [14:35:45]MH_SAM_APDU [14:35:45]CAPDU: 80 11 00 00 [14:35:45]Write to MH i2c: E2 08 00 04 22 80 11 00 00 00 00 00 00 A0 [14:35:45]Write i2c OK [14:35:45]MH_I2C_Read... [14:35:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:45]Read from MH i2c: E2 [14:35:45]MH_I2C_Read... [14:35:45]Read from MH i2c: E2 17 00 [14:35:45]MH_I2C_Read... [14:35:45]Read from MH i2c: E2 17 00 04 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F5 [14:35:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:35:45]wFMCommunicate OK [14:35:45]requested_item fd.num is exist - process it [14:35:45]SAM_PROTO_GetFieldsCounters [14:35:45]wFMCommunicate request_size=4 [14:35:45]MH_SAM_APDU [14:35:45]CAPDU: 80 13 00 00 [14:35:45]Write to MH i2c: E2 08 00 05 22 80 13 00 00 00 00 00 00 A3 [14:35:45]Write i2c OK [14:35:45]MH_I2C_Read... [14:35:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:45]Read from MH i2c: E2 [14:35:45]MH_I2C_Read... [14:35:45]Read from MH i2c: E2 62 00 [14:35:45]MH_I2C_Read... [14:35:45]Read from MH i2c: E2 62 00 05 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 42 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 CC [14:35:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 42 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:35:45]wFMCommunicate OK [14:35:45]SAM_PROTO_GetFieldsCounters done [14:35:45]requested_item shift.num is exist - process it [14:35:45]requested_item shift.opened is exist - process it [14:35:45]req_shift_opened [14:35:45]FM_GetShiftState [14:35:45]SAM_PROTO_GetShiftState [14:35:45]wFMCommunicate request_size=4 [14:35:45]MH_SAM_APDU [14:35:45]CAPDU: 80 13 01 00 [14:35:45]Write to MH i2c: E2 08 00 06 22 80 13 01 00 00 00 00 00 A5 [14:35:45]Write i2c OK [14:35:45]MH_I2C_Read... [14:35:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:45]Read from MH i2c: E2 [14:35:45]MH_I2C_Read... [14:35:45]Read from MH i2c: E2 0E 00 [14:35:45]MH_I2C_Read... [14:35:45]Read from MH i2c: E2 0E 00 06 22 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 B4 [14:35:45]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:35:45]wFMCommunicate OK [14:35:45]SAM_PROTO_GetShiftState done [14:35:45]FM_GetShiftState done [14:35:45]req_shift_opened done [14:35:45]requested_item shift.open_date is exist - process it [14:35:45]req_shift_open_date [14:35:45]req_shift_open_date done [14:35:45]produce_requested_data done [14:35:45]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201538,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:35:45]process_action_free close_receipt [14:35:45]json_value_free [14:35:45]json_value_free done [14:35:45]process_json_proto returns [14:35:45]Send response to host [14:35:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201538,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:35:45]free response buf [14:35:45]execute_script done [14:35:45]execute_script returns [14:35:45]free content buf [14:35:45]Sock 8.Close socket [14:35:45]Sock 8.Thread stoped [14:35:48]OFD Sender: No OFD packet to send [14:35:50]accept exits with 10 [14:35:50]New connection [14:35:50]New thread 3066834276 created [14:35:50]Thread 3066690916 joined [14:35:50]Waiting for new connection... [14:35:50] Sock 10.Parse request [14:35:50]Sock 10.Check first char [14:35:50]Sock 10.First char is OK [14:35:50]request: POST /json_proto HTTP/1.0 [14:35:50]Method: POST [14:35:50]URL: /json_proto [14:35:50]Method is POST - this is cgi request [14:35:50]url: /json_proto [14:35:50]query_string will be loaded in cgi processing [14:35:50]execute_cgi json_proto POST (null) [14:35:50]execute_cgi path=json_proto method=POST [14:35:50]POST find Content-Length [14:35:50]Host: 172.17.63.195:8080 [14:35:50]Content-Length: 677 [14:35:50]Content-Type: application/json [14:35:50] [14:35:50]POST finish read [14:35:50]Found Content-Length = 677 [14:35:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [14:35:50]execute_script... [14:35: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)449293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [14:35:50]POST & json_proto [14:35:50]process_json_proto [14:35:50]json parsed OK: [14:35:50]protocol is kg_v1.0 [14:35:50]action value=close_receipt [14:35:50]process_action close_receipt [14:35:50]cmd_close_receipt [14:35:50]MH_GetDate [14:35:50]Write to MH i2c: F0 00 00 07 22 18 [14:35:50]Write i2c OK [14:35:50]MH_I2C_Read... [14:35:50]Read from MH i2c: F0 [14:35:50]MH_I2C_Read... [14:35:50]Read from MH i2c: F0 09 00 [14:35:50]MH_I2C_Read... [14:35:50]Read from MH i2c: F0 09 00 07 22 00 48 FE 1C 67 68 46 19 67 18 [14:35:50]GetLastDocTimeStamp 1729953341 [14:35:50]current date 1729953352 [14:35:50]FM_GetShiftState [14:35:50]SAM_PROTO_GetShiftState [14:35:50]wFMCommunicate request_size=4 [14:35:50]MH_SAM_APDU [14:35:50]CAPDU: 80 13 01 00 [14:35:50]Write to MH i2c: E2 08 00 08 22 80 13 01 00 00 00 00 00 A7 [14:35:50]Write i2c OK [14:35:50]MH_I2C_Read... [14:35:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:50]Read from MH i2c: E2 [14:35:50]MH_I2C_Read... [14:35:50]Read from MH i2c: E2 0E 00 [14:35:50]MH_I2C_Read... [14:35:50]Read from MH i2c: E2 0E 00 08 22 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 B6 [14:35:50]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:35:50]wFMCommunicate OK [14:35:50]SAM_PROTO_GetShiftState done [14:35:50]FM_GetShiftState done [14:35:50]opened in 1729900879 [14:35:50]opened+sec_in_day 1729987279 [14:35:50]quantity*price = 50041 [14:35:50]sum+1 = 50042 [14:35:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 301 26.10.2024 14:35 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201539 ФПД: 44736863669125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143552&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201539&fm=44736863669125&tin=02508201610067®Number=0000000000091777&sum=50000 [14:35:52]StoreToDocumentArchive [14:35:52]shift 543 fd 201539 [14:35:52]save to /storage/0543/doc_00201539 [14:35:52]save last doc name /storage/0543/doc_00201539 to /storage/kkm_last_doc_name [14:35:52]save OK [14:35:52]Clear old archive folders... [14:35:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:35:52]tlvbuf is 01F8A780 [14:35:52]SAM_PROTO_ClearQueue [14:35:52]wFMCommunicate request_size=4 [14:35:52]MH_SAM_APDU [14:35:52]CAPDU: 80 09 00 00 [14:35:52]Write to MH i2c: E2 08 00 15 22 80 09 00 00 00 00 00 00 A9 [14:35:52]Write i2c OK [14:35:52]MH_I2C_Read... [14:35:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:52]Read from MH i2c: E2 [14:35:52]MH_I2C_Read... [14:35:52]Read from MH i2c: E2 03 00 [14:35:52]MH_I2C_Read... [14:35:52]Read from MH i2c: E2 03 00 15 22 00 90 00 AB [14:35:52]RAPDU: 90 00 [14:35:52]wFMCommunicate OK [14:35:52]SAM_PROTO_ClearQueue done [14:35:52]KKMCreateOFDPacket [14:35:52]OFDProtocolAddRootSTLVToBuf [14:35:52]FM_MakeSignedData [14:35:52]FM_MakeSignedData [14:35:52]SAM_PROTO_SignData [14:35:52]wFMCommunicate request_size=4 [14:35:52]MH_SAM_APDU [14:35:52]CAPDU: 80 0D 01 02 [14:35:52]Write to MH i2c: E2 08 00 16 22 80 0D 01 02 00 00 00 00 B1 [14:35:52]Write i2c OK [14:35:52]MH_I2C_Read... [14:35:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:52]Read from MH i2c: E2 [14:35:52]MH_I2C_Read... [14:35:52]Read from MH i2c: E2 03 00 [14:35:52]MH_I2C_Read... [14:35:52]Read from MH i2c: E2 03 00 16 22 00 90 00 AC [14:35:52]RAPDU: 90 00 [14:35:52]wFMCommunicate OK [14:35:52]wFMCommunicate request_size=255 [14:35:52]MH_SAM_APDU [14:35: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 32 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 2D 01 00 00 F4 03 04 00 48 FE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 43 13 03 00 35 04 06 00 28 [14:35:52]Write to MH i2c: E2 02 01 17 22 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 32 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 2D 01 00 00 F4 03 04 00 48 FE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 43 13 03 00 35 04 06 00 28 00 00 DE [14:35:52]Write i2c OK [14:35:52]MH_I2C_Read... [14:35:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:52]Read from MH i2c: E2 [14:35:52]MH_I2C_Read... [14:35:52]Read from MH i2c: E2 03 00 [14:35:52]MH_I2C_Read... [14:35:52]Read from MH i2c: E2 03 00 17 22 00 90 00 AD [14:35:52]RAPDU: 90 00 [14:35:52]wFMCommunicate OK [14:35:52]wFMCommunicate request_size=10 [14:35:52]MH_SAM_APDU [14:35:52]CAPDU: 80 0D 02 02 05 B0 1C DE 0B 85 [14:35:52]Write to MH i2c: E2 0D 00 18 22 80 0D 02 02 05 00 B0 1C DE 0B 85 00 00 F8 [14:35:52]Write i2c OK [14:35:52]MH_I2C_Read... [14:35:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:52]Read from MH i2c: E2 [14:35:52]MH_I2C_Read... [14:35:52]Read from MH i2c: E2 03 00 [14:35:52]MH_I2C_Read... [14:35:52]Read from MH i2c: E2 03 00 18 22 00 90 00 AE [14:35:52]RAPDU: 90 00 [14:35:52]wFMCommunicate OK [14:35:52]wFMCommunicate request_size=4 [14:35:52]MH_SAM_APDU [14:35:52]CAPDU: 80 0D 03 02 [14:35:52]Write to MH i2c: E2 08 00 19 22 80 0D 03 02 00 00 00 00 B6 [14:35:52]Write i2c OK [14:35:52]MH_I2C_Read... [14:35:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:52]Read from MH i2c: E2 [14:35:52]MH_I2C_Read... [14:35:52]Read from MH i2c: E2 0B 00 [14:35:52]MH_I2C_Read... [14:35:52]Read from MH i2c: E2 0B 00 19 22 00 8D A5 3E FA 82 82 37 82 90 00 DE [14:35:52]RAPDU: 8D A5 3E FA 82 82 37 82 90 00 [14:35:52]wFMCommunicate OK [14:35:52]SAM_PROTO_SignData done [14:35:52]FM_MakeSignedData done [14:35:52]CreateOFDProtocolMessage [14:35:52]wFMCommunicate request_size=4 [14:35:52]MH_SAM_APDU [14:35:52]CAPDU: 80 11 00 00 [14:35:52]Write to MH i2c: E2 08 00 1A 22 80 11 00 00 00 00 00 00 B6 [14:35:52]Write i2c OK [14:35:52]MH_I2C_Read... [14:35:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:52]Read from MH i2c: E2 [14:35:52]MH_I2C_Read... [14:35:52]Read from MH i2c: E2 17 00 [14:35:52]MH_I2C_Read... [14:35:52]Read from MH i2c: E2 17 00 1A 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0B [14:35:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:35:52]wFMCommunicate OK [14:35:52]CreateOFDProtocolMessage done [14:35:52]OFDSenderStorePacket 201539 [14:35:52]StoreOFDPacket docnum=201539 [14:35:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F2 D6 07 01 76 91 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 32 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 2D 01 00 00 F4 03 04 00 48 FE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 43 13 03 00 35 04 06 00 28 B0 1C DE 0B 85 8D A5 3E FA 82 82 37 82 [14:35:52]CheckFolder [14:35:52]dirname=/storage/ofd_packets [14:35:52]CheckFolder done [14:35:52]ProducePacketName [14:35:52]name=ofd_packets/00201539 [14:35:52]NVStorageSaveData ofd_packets/00201539 [14:35:52]File name is /storage/ofd_packets/00201539 [14:35:52]Write 301 bytes [14:35:52]NVStorageSaveData done [14:35:52]OFDSenderStorePacket done [14:35:52]KKMCreateOFDPacket done [14:35:52]NVStorageSaveData kkm_last_timestamp [14:35:52]File name is /storage/kkm_last_timestamp [14:35:52]Write 4 bytes [14:35:52]NVStorageSaveData done [14:35:52]ExternCall_PrintAddStr [14:35:52]wPrintStart [14:35:52]Write to MH i2c: 01 00 00 1B 22 3D [14:35:52]Write i2c OK [14:35:52]MH_I2C_Read... [14:35:52]Read from MH i2c: 01 [14:35:52]MH_I2C_Read... [14:35:52]Read from MH i2c: 01 07 00 [14:35:52]MH_I2C_Read... [14:35:52]Read from MH i2c: 01 07 00 1B 22 00 00 00 00 00 FF 0F 52 [14:35:52]RasterBufferAndPrint [14:35:52]line Счет N : (1)449293 [14:35:52]line ИНН: 02508201610067 [14:35:52]line Контрольно-Кассовый Чек [14:35:52]line ПРОДАЖА [14:35:52]line ТРК (МРК, ГНК) : 62 [14:35:52]line Товар: 2710124130 [14:35:52]line Аи-92-К-2 [14:35:52]line 7.480 * 66.90 [14:35:52]line = 500.41 [14:35:52]line НДС 12% НСП 1% [14:35:52]line > о реализуемом товаре [14:35:52]line ОКРУГЛЕНИЕ: -0.41 [14:35:52]line ИТОГО: 500.00 [14:35:52]line Внесено: 500.00 [14:35:52]line СДАЧА: 0.00 [14:35:52]line НСП 1% : 4.43 [14:35:52]line НДС 12% : 53.14 [14:35:52]line Наличными: 500.00 [14:35:52]line Безнал.: 0.00 [14:35:52]line Место: АЗС № 171 "Партнер Нефть" [14:35:52]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:35:52]line СНО: Общий режим [14:35:52]line Чек 301 26.10.2024 14:35 [14:35:52]line Смена: 543 ФФД: 1.0 [14:35:52]line ЗНМ: 0300000109 [14:35:52]OFD Sender: Processing packet 201539 [packets to send 112, broken 111] [14:35:52]ProducePacketName [14:35:52]name=ofd_packets/00201539 [14:35:52]OFD Sender: To server: pG, [14:35:52]CommunicateWithHost lk.salyk.kg:30040 [14:35:52]ConnectInit lk.salyk.kg [14:35:52]line РНМ: 0000000000091777 [14:35:52]line Версия ККМ: 001 [14:35:52]line ФМ: 0000000000871756 [14:35:52]line ФД: 201539 [14:35:52]line ФПД: 44736863669125 [14:35:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143552&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201539&fm=44736863669125&tin=02508201610067®Number=0000000000091777&sum=50000 [14:35:52]written 0, free lines is 4095 [14:35:52]Connected sock=9 [14:35:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F2 D6 07 01 76 91 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 32 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 2D 01 00 00 F4 03 04 00 48 FE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 43 13 03 00 35 04 06 00 28 B0 1C DE 0B 85 8D A5 3E FA 82 82 37 82 [14:35:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 CA 5F 47 00 6D 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 43 13 03 00 F4 03 04 00 F0 A9 1C 67 B6 04 01 00 00 DB D6 56 F6 3E 49 09 5C [14:35:52]CommunicateWithHost err = 0 [14:35:52]CheckOFDResponse [14:35:52]1017 (14) - 77093643461234 [14:35:52]1041 (16) - 0000000000871756 [14:35:52]1040 (4) - 201539 [14:35:52]1012 (4) - 26.10.2024 08:36 [14:35:52]1206 (1) - 0 [14:35:52]OFD Sender: Remove packet 201539 [14:35:52]ProducePacketName [14:35:52]name=ofd_packets/00201539 [14:35:52]NVStorageDeleteData [14:35:53]Write to MH i2c: 01 00 00 46 22 68 [14:35:53]Write i2c OK [14:35:53]MH_I2C_Read... [14:35:53]Read from MH i2c: 01 [14:35:53]MH_I2C_Read... [14:35:53]Read from MH i2c: 01 07 00 [14:35:53]MH_I2C_Read... [14:35:53]Read from MH i2c: 01 07 00 46 22 00 00 00 00 00 BB 0C 36 [14:35:53]RasterBufferAndPrint [14:35:53]line [14:35:53]line [14:35:53]line [14:35:53]line [14:35:53]line [14:35:53]written 0, free lines is 3271 [14:35:53]MH_Cut [14:35:53]Write to MH i2c: D1 01 00 4D 22 01 41 [14:35:53]Write i2c OK [14:35:53]MH_I2C_Read... [14:35:53]Read from MH i2c: D1 [14:35:53]MH_I2C_Read... [14:35:53]Read from MH i2c: D1 01 00 [14:35:53]MH_I2C_Read... [14:35:53]Read from MH i2c: D1 01 00 4D 22 00 40 [14:35:53]Write to MH i2c: 01 00 00 4E 22 70 [14:35:53]Write i2c OK [14:35:53]MH_I2C_Read... [14:35:53]OFD Sender: No OFD packet to send [14:35:53]*** Cut start [14:35:53]*** Purtial cut [14:35:53]*** Stage 1: CUTSNS_PIN = 1 [14:35:54]Read from MH i2c: 01 [14:35:54]MH_I2C_Read... [14:35:54]*** Stop cut motor [14:35:54]*** Cut end [14:35:54]Read from MH i2c: 01 07 00 [14:35:54]MH_I2C_Read... [14:35:54]Read from MH i2c: 01 07 00 4E 22 00 00 00 00 00 FF 0F 85 [14:35:54]process_action close_receipt done [14:35:54]requested_data is exist [14:35:54]produce_requested_data [14:35:54]requested_item fm.sn is exist - process it [14:35:54]wFMCommunicate request_size=4 [14:35:54]MH_SAM_APDU [14:35:54]CAPDU: 80 11 00 00 [14:35:54]Write to MH i2c: E2 08 00 4F 22 80 11 00 00 00 00 00 00 EB [14:35:54]Write i2c OK [14:35:54]MH_I2C_Read... [14:35:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:54]Read from MH i2c: E2 [14:35:54]MH_I2C_Read... [14:35:54]Read from MH i2c: E2 17 00 [14:35:54]MH_I2C_Read... [14:35:54]Read from MH i2c: E2 17 00 4F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 40 [14:35:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:35:54]wFMCommunicate OK [14:35:54]requested_item fd.num is exist - process it [14:35:54]SAM_PROTO_GetFieldsCounters [14:35:54]wFMCommunicate request_size=4 [14:35:54]MH_SAM_APDU [14:35:54]CAPDU: 80 13 00 00 [14:35:54]Write to MH i2c: E2 08 00 50 22 80 13 00 00 00 00 00 00 EE [14:35:54]Write i2c OK [14:35:54]MH_I2C_Read... [14:35:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:54]Read from MH i2c: E2 [14:35:54]MH_I2C_Read... [14:35:54]Read from MH i2c: E2 62 00 [14:35:54]MH_I2C_Read... [14:35:54]Read from MH i2c: E2 62 00 50 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 43 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 1B [14:35:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 43 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:35:54]wFMCommunicate OK [14:35:54]SAM_PROTO_GetFieldsCounters done [14:35:54]requested_item shift.num is exist - process it [14:35:54]requested_item shift.opened is exist - process it [14:35:54]req_shift_opened [14:35:54]FM_GetShiftState [14:35:54]SAM_PROTO_GetShiftState [14:35:54]wFMCommunicate request_size=4 [14:35:54]MH_SAM_APDU [14:35:54]CAPDU: 80 13 01 00 [14:35:54]Write to MH i2c: E2 08 00 51 22 80 13 01 00 00 00 00 00 F0 [14:35:54]Write i2c OK [14:35:54]MH_I2C_Read... [14:35:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:54]Read from MH i2c: E2 [14:35:54]MH_I2C_Read... [14:35:54]Read from MH i2c: E2 0E 00 [14:35:54]MH_I2C_Read... [14:35:54]Read from MH i2c: E2 0E 00 51 22 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 FF [14:35:54]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:35:54]wFMCommunicate OK [14:35:54]SAM_PROTO_GetShiftState done [14:35:54]FM_GetShiftState done [14:35:54]req_shift_opened done [14:35:54]requested_item shift.open_date is exist - process it [14:35:54]req_shift_open_date [14:35:54]req_shift_open_date done [14:35:54]produce_requested_data done [14:35:54]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201539,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:35:54]process_action_free close_receipt [14:35:54]json_value_free [14:35:54]json_value_free done [14:35:54]process_json_proto returns [14:35:54]Send response to host [14:35:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201539,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:35:54]free response buf [14:35:54]execute_script done [14:35:54]execute_script returns [14:35:54]free content buf [14:35:54]Sock 10.Close socket [14:35:54]Sock 10.Thread stoped [14:35:58]OFD Sender: No OFD packet to send [14:35:59]accept exits with 8 [14:35:59]New connection [14:35:59]New thread 3066690916 created [14:35:59]Thread 3066834276 joined [14:35:59]Waiting for new connection... [14:35:59] Sock 8.Parse request [14:35:59]Sock 8.Check first char [14:35:59]Sock 8.First char is OK [14:35:59]request: POST /json_proto HTTP/1.0 [14:35:59]Method: POST [14:35:59]URL: /json_proto [14:35:59]Method is POST - this is cgi request [14:35:59]url: /json_proto [14:35:59]query_string will be loaded in cgi processing [14:35:59]execute_cgi json_proto POST (null) [14:35:59]execute_cgi path=json_proto method=POST [14:35:59]POST find Content-Length [14:35:59]Host: 172.17.63.195:8080 [14:35:59]Content-Length: 679 [14:35:59]Content-Type: application/json [14:35:59] [14:35:59]POST finish read [14:35:59]Found Content-Length = 679 [14:35:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [14:35:59]execute_script... [14:35:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [14:35:59]POST & json_proto [14:35:59]process_json_proto [14:35:59]json parsed OK: [14:35:59]protocol is kg_v1.0 [14:35:59]action value=close_receipt [14:35:59]process_action close_receipt [14:35:59]cmd_close_receipt [14:35:59]MH_GetDate [14:35:59]Write to MH i2c: F0 00 00 52 22 63 [14:35:59]Write i2c OK [14:35:59]MH_I2C_Read... [14:35:59]Read from MH i2c: F0 [14:35:59]MH_I2C_Read... [14:35:59]Read from MH i2c: F0 09 00 [14:35:59]MH_I2C_Read... [14:35:59]Read from MH i2c: F0 09 00 52 22 00 50 FE 1C 67 68 46 19 67 6B [14:35:59]GetLastDocTimeStamp 1729953352 [14:35:59]current date 1729953360 [14:35:59]FM_GetShiftState [14:35:59]SAM_PROTO_GetShiftState [14:35:59]wFMCommunicate request_size=4 [14:35:59]MH_SAM_APDU [14:35:59]CAPDU: 80 13 01 00 [14:35:59]Write to MH i2c: E2 08 00 53 22 80 13 01 00 00 00 00 00 F2 [14:35:59]Write i2c OK [14:35:59]MH_I2C_Read... [14:35:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:59]Read from MH i2c: E2 [14:35:59]MH_I2C_Read... [14:35:59]Read from MH i2c: E2 0E 00 [14:35:59]MH_I2C_Read... [14:35:59]Read from MH i2c: E2 0E 00 53 22 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 01 [14:35:59]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:35:59]wFMCommunicate OK [14:35:59]SAM_PROTO_GetShiftState done [14:35:59]FM_GetShiftState done [14:35:59]opened in 1729900879 [14:35:59]opened+sec_in_day 1729987279 [14:35:59]quantity*price = 200025 [14:35:59]sum+1 = 200026 [14:35:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 302 26.10.2024 14:36 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201540 ФПД: 164865602146703 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143600&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201540&fm=164865602146703&tin=02508201610067®Number=0000000000091777&sum=200000 [14:36:00]StoreToDocumentArchive [14:36:00]shift 543 fd 201540 [14:36:00]save to /storage/0543/doc_00201540 [14:36:00]save last doc name /storage/0543/doc_00201540 to /storage/kkm_last_doc_name [14:36:00]save OK [14:36:00]Clear old archive folders... [14:36:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:36:00]tlvbuf is 01FCA5B0 [14:36:00]SAM_PROTO_ClearQueue [14:36:00]wFMCommunicate request_size=4 [14:36:00]MH_SAM_APDU [14:36:00]CAPDU: 80 09 00 00 [14:36:00]Write to MH i2c: E2 08 00 60 22 80 09 00 00 00 00 00 00 F4 [14:36:00]Write i2c OK [14:36:00]MH_I2C_Read... [14:36:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:00]Read from MH i2c: E2 [14:36:00]MH_I2C_Read... [14:36:00]Read from MH i2c: E2 03 00 [14:36:00]MH_I2C_Read... [14:36:00]Read from MH i2c: E2 03 00 60 22 00 90 00 F6 [14:36:00]RAPDU: 90 00 [14:36:00]wFMCommunicate OK [14:36:00]SAM_PROTO_ClearQueue done [14:36:00]KKMCreateOFDPacket [14:36:00]OFDProtocolAddRootSTLVToBuf [14:36:00]FM_MakeSignedData [14:36:00]FM_MakeSignedData [14:36:00]SAM_PROTO_SignData [14:36:00]wFMCommunicate request_size=4 [14:36:00]MH_SAM_APDU [14:36:00]CAPDU: 80 0D 01 02 [14:36:00]Write to MH i2c: E2 08 00 61 22 80 0D 01 02 00 00 00 00 FC [14:36:00]Write i2c OK [14:36:00]MH_I2C_Read... [14:36:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:00]Read from MH i2c: E2 [14:36:00]MH_I2C_Read... [14:36:00]Read from MH i2c: E2 03 00 [14:36:00]MH_I2C_Read... [14:36:00]Read from MH i2c: E2 03 00 61 22 00 90 00 F7 [14:36:00]RAPDU: 90 00 [14:36:00]wFMCommunicate OK [14:36:00]wFMCommunicate request_size=255 [14:36:00]MH_SAM_APDU [14:36:00]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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 2E 01 00 00 F4 03 04 00 50 FE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 44 13 03 00 35 04 06 00 95 F1 C3 A6 [14:36:00]Write to MH i2c: E2 02 01 62 22 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 2E 01 00 00 F4 03 04 00 50 FE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 44 13 03 00 35 04 06 00 95 F1 C3 A6 00 00 DE [14:36:00]Write i2c OK [14:36:00]MH_I2C_Read... [14:36:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:00]Read from MH i2c: E2 [14:36:00]MH_I2C_Read... [14:36:00]Read from MH i2c: E2 03 00 [14:36:00]MH_I2C_Read... [14:36:00]Read from MH i2c: E2 03 00 62 22 00 90 00 F8 [14:36:00]RAPDU: 90 00 [14:36:00]wFMCommunicate OK [14:36:00]wFMCommunicate request_size=7 [14:36:00]MH_SAM_APDU [14:36:00]CAPDU: 80 0D 02 02 02 D1 8F [14:36:00]Write to MH i2c: E2 0A 00 63 22 80 0D 02 02 02 00 D1 8F 00 00 63 [14:36:00]Write i2c OK [14:36:00]MH_I2C_Read... [14:36:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:01]Read from MH i2c: E2 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: E2 03 00 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: E2 03 00 63 22 00 90 00 F9 [14:36:01]RAPDU: 90 00 [14:36:01]wFMCommunicate OK [14:36:01]wFMCommunicate request_size=4 [14:36:01]MH_SAM_APDU [14:36:01]CAPDU: 80 0D 03 02 [14:36:01]Write to MH i2c: E2 08 00 64 22 80 0D 03 02 00 00 00 00 01 [14:36:01]Write i2c OK [14:36:01]MH_I2C_Read... [14:36:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:01]Read from MH i2c: E2 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: E2 0B 00 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: E2 0B 00 64 22 00 A7 77 F4 65 72 03 C7 0F 90 00 C4 [14:36:01]RAPDU: A7 77 F4 65 72 03 C7 0F 90 00 [14:36:01]wFMCommunicate OK [14:36:01]SAM_PROTO_SignData done [14:36:01]FM_MakeSignedData done [14:36:01]CreateOFDProtocolMessage [14:36:01]wFMCommunicate request_size=4 [14:36:01]MH_SAM_APDU [14:36:01]CAPDU: 80 11 00 00 [14:36:01]Write to MH i2c: E2 08 00 65 22 80 11 00 00 00 00 00 00 01 [14:36:01]Write i2c OK [14:36:01]MH_I2C_Read... [14:36:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:01]Read from MH i2c: E2 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: E2 17 00 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: E2 17 00 65 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 56 [14:36:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:36:01]wFMCommunicate OK [14:36:01]CreateOFDProtocolMessage done [14:36:01]OFDSenderStorePacket 201540 [14:36:01]StoreOFDPacket docnum=201540 [14:36:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 DA E5 04 01 64 F2 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 2E 01 00 00 F4 03 04 00 50 FE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 44 13 03 00 35 04 06 00 95 F1 C3 A6 D1 8F A7 77 F4 65 72 03 C7 0F [14:36:01]CheckFolder [14:36:01]dirname=/storage/ofd_packets [14:36:01]CheckFolder done [14:36:01]ProducePacketName [14:36:01]name=ofd_packets/00201540 [14:36:01]NVStorageSaveData ofd_packets/00201540 [14:36:01]File name is /storage/ofd_packets/00201540 [14:36:01]Write 298 bytes [14:36:01]NVStorageSaveData done [14:36:01]OFDSenderStorePacket done [14:36:01]KKMCreateOFDPacket done [14:36:01]NVStorageSaveData kkm_last_timestamp [14:36:01]File name is /storage/kkm_last_timestamp [14:36:01]Write 4 bytes [14:36:01]NVStorageSaveData done [14:36:01]ExternCall_PrintAddStr [14:36:01]wPrintStart [14:36:01]Write to MH i2c: 01 00 00 66 22 88 [14:36:01]Write i2c OK [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: 01 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: 01 07 00 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: 01 07 00 66 22 00 00 00 00 00 FF 0F 9D [14:36:01]RasterBufferAndPrint [14:36:01]line Счет N : (1)449292 [14:36:01]line ИНН: 02508201610067 [14:36:01]line Контрольно-Кассовый Чек [14:36:01]line ПРОДАЖА [14:36:01]line ТРК (МРК, ГНК) : 21 [14:36:01]line Товар: 2710194210 [14:36:01]line ДТ-К-2 [14:36:01]line 26.250 * 76.20 [14:36:01]line = 2000.25 [14:36:01]line НДС 12% НСП 1% [14:36:01]line > о реализуемом товаре [14:36:01]line ОКРУГЛЕНИЕ: -0.25 [14:36:01]line ИТОГО: 2000.00 [14:36:01]line Внесено: 2000.00 [14:36:01]line СДАЧА: 0.00 [14:36:01]line НСП 1% : 17.70 [14:36:01]line НДС 12% : 212.42 [14:36:01]line Наличными: 2000.00 [14:36:01]line Безнал.: 0.00 [14:36:01]line Место: АЗС № 171 "Партнер Нефть" [14:36:01]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:36:01]line СНО: Общий режим [14:36:01]line Чек 302 26.10.2024 14:36 [14:36:01]line Смена: 543 ФФД: 1.0 [14:36:01]line ЗНМ: 0300000109 [14:36:01]line РНМ: 0000000000091777 [14:36:01]line Версия ККМ: 001 [14:36:01]line ФМ: 0000000000871756 [14:36:01]line ФД: 201540 [14:36:01]line ФПД: 164865602146703 [14:36:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143600&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201540&fm=164865602146703&tin=02508201610067®Number=0000000000091777&sum=200000 [14:36:01]written 0, free lines is 4095 [14:36:01]OFD Sender: Processing packet 201540 [packets to send 112, broken 111] [14:36:01]ProducePacketName [14:36:01]name=ofd_packets/00201540 [14:36:01]OFD Sender: To server: pG, [14:36:01]CommunicateWithHost lk.salyk.kg:30040 [14:36:01]ConnectInit lk.salyk.kg [14:36:01]Connected sock=10 [14:36:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 DA E5 04 01 64 F2 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 2E 01 00 00 F4 03 04 00 50 FE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 44 13 03 00 35 04 06 00 95 F1 C3 A6 D1 8F A7 77 F4 65 72 03 C7 0F [14:36:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 AD C8 47 00 44 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 44 13 03 00 F4 03 04 00 F9 A9 1C 67 B6 04 01 00 00 8D EB 97 22 01 54 15 F7 [14:36:01]CommunicateWithHost err = 0 [14:36:01]CheckOFDResponse [14:36:01]1017 (14) - 77093643461234 [14:36:01]1041 (16) - 0000000000871756 [14:36:01]1040 (4) - 201540 [14:36:01]1012 (4) - 26.10.2024 08:36 [14:36:01]1206 (1) - 0 [14:36:01]OFD Sender: Remove packet 201540 [14:36:01]ProducePacketName [14:36:01]name=ofd_packets/00201540 [14:36:01]NVStorageDeleteData [14:36:01]Write to MH i2c: 01 00 00 91 22 B3 [14:36:01]Write i2c OK [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: 01 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: 01 07 00 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: 01 07 00 91 22 00 00 00 00 00 E9 0C AF [14:36:01]RasterBufferAndPrint [14:36:01]line [14:36:01]line [14:36:01]line [14:36:01]line [14:36:01]line [14:36:01]written 0, free lines is 3319 [14:36:01]MH_Cut [14:36:01]Write to MH i2c: D1 01 00 98 22 01 8C [14:36:01]Write i2c OK [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: D1 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: D1 01 00 [14:36:01]MH_I2C_Read... [14:36:01]Read from MH i2c: D1 01 00 98 22 00 8B [14:36:01]Write to MH i2c: 01 00 00 99 22 BB [14:36:01]Write i2c OK [14:36:01]MH_I2C_Read... [14:36:02]OFD Sender: No OFD packet to send [14:36:02]*** Cut start [14:36:02]*** Purtial cut [14:36:02]*** Stage 1: CUTSNS_PIN = 1 [14:36:02]Read from MH i2c: 01 [14:36:02]MH_I2C_Read... [14:36:02]*** Stop cut motor [14:36:02]*** Cut end [14:36:02]Read from MH i2c: 01 07 00 [14:36:02]MH_I2C_Read... [14:36:02]Read from MH i2c: 01 07 00 99 22 00 00 00 00 00 FF 0F D0 [14:36:02]process_action close_receipt done [14:36:02]requested_data is exist [14:36:02]produce_requested_data [14:36:02]requested_item fm.sn is exist - process it [14:36:02]wFMCommunicate request_size=4 [14:36:02]MH_SAM_APDU [14:36:02]CAPDU: 80 11 00 00 [14:36:02]Write to MH i2c: E2 08 00 9A 22 80 11 00 00 00 00 00 00 36 [14:36:02]Write i2c OK [14:36:02]MH_I2C_Read... [14:36:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:02]Read from MH i2c: E2 [14:36:02]MH_I2C_Read... [14:36:02]Read from MH i2c: E2 17 00 [14:36:02]MH_I2C_Read... [14:36:02]Read from MH i2c: E2 17 00 9A 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8B [14:36:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:36:02]wFMCommunicate OK [14:36:02]requested_item fd.num is exist - process it [14:36:02]SAM_PROTO_GetFieldsCounters [14:36:02]wFMCommunicate request_size=4 [14:36:02]MH_SAM_APDU [14:36:02]CAPDU: 80 13 00 00 [14:36:02]Write to MH i2c: E2 08 00 9B 22 80 13 00 00 00 00 00 00 39 [14:36:02]Write i2c OK [14:36:02]MH_I2C_Read... [14:36:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:02]Read from MH i2c: E2 [14:36:02]MH_I2C_Read... [14:36:02]Read from MH i2c: E2 62 00 [14:36:02]MH_I2C_Read... [14:36:02]Read from MH i2c: E2 62 00 9B 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 44 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 6A [14:36:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 44 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:36:03]wFMCommunicate OK [14:36:03]SAM_PROTO_GetFieldsCounters done [14:36:03]requested_item shift.num is exist - process it [14:36:03]requested_item shift.opened is exist - process it [14:36:03]req_shift_opened [14:36:03]FM_GetShiftState [14:36:03]SAM_PROTO_GetShiftState [14:36:03]wFMCommunicate request_size=4 [14:36:03]MH_SAM_APDU [14:36:03]CAPDU: 80 13 01 00 [14:36:03]Write to MH i2c: E2 08 00 9C 22 80 13 01 00 00 00 00 00 3B [14:36:03]Write i2c OK [14:36:03]MH_I2C_Read... [14:36:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:03]Read from MH i2c: E2 [14:36:03]MH_I2C_Read... [14:36:03]Read from MH i2c: E2 0E 00 [14:36:03]MH_I2C_Read... [14:36:03]Read from MH i2c: E2 0E 00 9C 22 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 4A [14:36:03]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:36:03]wFMCommunicate OK [14:36:03]SAM_PROTO_GetShiftState done [14:36:03]FM_GetShiftState done [14:36:03]req_shift_opened done [14:36:03]requested_item shift.open_date is exist - process it [14:36:03]req_shift_open_date [14:36:03]req_shift_open_date done [14:36:03]produce_requested_data done [14:36:03]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201540,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:36:03]process_action_free close_receipt [14:36:03]json_value_free [14:36:03]json_value_free done [14:36:03]process_json_proto returns [14:36:03]Send response to host [14:36:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201540,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:36:03]free response buf [14:36:03]execute_script done [14:36:03]execute_script returns [14:36:03]free content buf [14:36:03]Sock 8.Close socket [14:36:03]Sock 8.Thread stoped [14:36:07]OFD Sender: No OFD packet to send [14:36:12]OFD Sender: No OFD packet to send [14:36:17]OFD Sender: No OFD packet to send [14:36:22]OFD Sender: No OFD packet to send [14:36:27]OFD Sender: No OFD packet to send [14:36:32]OFD Sender: No OFD packet to send [14:36:37]OFD Sender: No OFD packet to send [14:36:42]OFD Sender: No OFD packet to send [14:36:43]accept exits with 9 [14:36:43]New connection [14:36:43]New thread 3066834276 created [14:36:43]Thread 3066690916 joined [14:36:43]Waiting for new connection... [14:36:43] Sock 9.Parse request [14:36:43]Sock 9.Check first char [14:36:43]Sock 9.First char is OK [14:36:43]request: POST /json_proto HTTP/1.0 [14:36:43]Method: POST [14:36:43]URL: /json_proto [14:36:43]Method is POST - this is cgi request [14:36:43]url: /json_proto [14:36:43]query_string will be loaded in cgi processing [14:36:43]execute_cgi json_proto POST (null) [14:36:43]execute_cgi path=json_proto method=POST [14:36:43]POST find Content-Length [14:36:43]Host: 172.17.63.195:8080 [14:36:43]Content-Length: 679 [14:36:43]Content-Type: application/json [14:36:43] [14:36:43]POST finish read [14:36:43]Found Content-Length = 679 [14:36:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [14:36:43]execute_script... [14:36: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)449291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [14:36:43]POST & json_proto [14:36:43]process_json_proto [14:36:43]json parsed OK: [14:36:43]protocol is kg_v1.0 [14:36:43]action value=close_receipt [14:36:43]process_action close_receipt [14:36:43]cmd_close_receipt [14:36:43]MH_GetDate [14:36:43]Write to MH i2c: F0 00 00 9D 22 AE [14:36:43]Write i2c OK [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: F0 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: F0 09 00 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: F0 09 00 9D 22 00 7C FE 1C 67 68 46 19 67 E2 [14:36:43]GetLastDocTimeStamp 1729953360 [14:36:43]current date 1729953404 [14:36:43]FM_GetShiftState [14:36:43]SAM_PROTO_GetShiftState [14:36:43]wFMCommunicate request_size=4 [14:36:43]MH_SAM_APDU [14:36:43]CAPDU: 80 13 01 00 [14:36:43]Write to MH i2c: E2 08 00 9E 22 80 13 01 00 00 00 00 00 3D [14:36:43]Write i2c OK [14:36:43]MH_I2C_Read... [14:36:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:43]Read from MH i2c: E2 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 0E 00 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 0E 00 9E 22 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 4C [14:36:43]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:36:43]wFMCommunicate OK [14:36:43]SAM_PROTO_GetShiftState done [14:36:43]FM_GetShiftState done [14:36:43]opened in 1729900879 [14:36:43]opened+sec_in_day 1729987279 [14:36:43]quantity*price = 200025 [14:36:43]sum+1 = 200026 [14:36:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 303 26.10.2024 14:36 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201541 ФПД: 60577399488869 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143644&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201541&fm=60577399488869&tin=02508201610067®Number=0000000000091777&sum=200000 [14:36:44]StoreToDocumentArchive [14:36:44]shift 543 fd 201541 [14:36:44]save to /storage/0543/doc_00201541 [14:36:44]save last doc name /storage/0543/doc_00201541 to /storage/kkm_last_doc_name [14:36:44]save OK [14:36:44]Clear old archive folders... [14:36:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:36:44]tlvbuf is 01F0A800 [14:36:44]SAM_PROTO_ClearQueue [14:36:44]wFMCommunicate request_size=4 [14:36:44]MH_SAM_APDU [14:36:44]CAPDU: 80 09 00 00 [14:36:44]Write to MH i2c: E2 08 00 AB 22 80 09 00 00 00 00 00 00 3F [14:36:44]Write i2c OK [14:36:44]MH_I2C_Read... [14:36:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:44]Read from MH i2c: E2 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: E2 03 00 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: E2 03 00 AB 22 00 90 00 41 [14:36:44]RAPDU: 90 00 [14:36:44]wFMCommunicate OK [14:36:44]SAM_PROTO_ClearQueue done [14:36:44]KKMCreateOFDPacket [14:36:44]OFDProtocolAddRootSTLVToBuf [14:36:44]FM_MakeSignedData [14:36:44]FM_MakeSignedData [14:36:44]SAM_PROTO_SignData [14:36:44]wFMCommunicate request_size=4 [14:36:44]MH_SAM_APDU [14:36:44]CAPDU: 80 0D 01 02 [14:36:44]Write to MH i2c: E2 08 00 AC 22 80 0D 01 02 00 00 00 00 47 [14:36:44]Write i2c OK [14:36:44]MH_I2C_Read... [14:36:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:44]Read from MH i2c: E2 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: E2 03 00 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: E2 03 00 AC 22 00 90 00 42 [14:36:44]RAPDU: 90 00 [14:36:44]wFMCommunicate OK [14:36:44]wFMCommunicate request_size=255 [14:36:44]MH_SAM_APDU [14:36: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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 2F 01 00 00 F4 03 04 00 7C FE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 45 13 03 00 35 04 06 00 37 18 46 60 [14:36:44]Write to MH i2c: E2 02 01 AD 22 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 2F 01 00 00 F4 03 04 00 7C FE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 45 13 03 00 35 04 06 00 37 18 46 60 00 00 5D [14:36:44]Write i2c OK [14:36:44]MH_I2C_Read... [14:36:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:44]Read from MH i2c: E2 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: E2 03 00 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: E2 03 00 AD 22 00 90 00 43 [14:36:44]RAPDU: 90 00 [14:36:44]wFMCommunicate OK [14:36:44]wFMCommunicate request_size=7 [14:36:44]MH_SAM_APDU [14:36:44]CAPDU: 80 0D 02 02 02 C1 65 [14:36:44]Write to MH i2c: E2 0A 00 AE 22 80 0D 02 02 02 00 C1 65 00 00 74 [14:36:44]Write i2c OK [14:36:44]MH_I2C_Read... [14:36:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:44]Read from MH i2c: E2 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: E2 03 00 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: E2 03 00 AE 22 00 90 00 44 [14:36:44]RAPDU: 90 00 [14:36:44]wFMCommunicate OK [14:36:44]wFMCommunicate request_size=4 [14:36:44]MH_SAM_APDU [14:36:44]CAPDU: 80 0D 03 02 [14:36:44]Write to MH i2c: E2 08 00 AF 22 80 0D 03 02 00 00 00 00 4C [14:36:44]Write i2c OK [14:36:44]MH_I2C_Read... [14:36:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:44]Read from MH i2c: E2 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: E2 0B 00 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: E2 0B 00 AF 22 00 D7 D9 87 71 77 98 46 2B 90 00 75 [14:36:44]RAPDU: D7 D9 87 71 77 98 46 2B 90 00 [14:36:44]wFMCommunicate OK [14:36:44]SAM_PROTO_SignData done [14:36:44]FM_MakeSignedData done [14:36:44]CreateOFDProtocolMessage [14:36:44]wFMCommunicate request_size=4 [14:36:44]MH_SAM_APDU [14:36:44]CAPDU: 80 11 00 00 [14:36:44]Write to MH i2c: E2 08 00 B0 22 80 11 00 00 00 00 00 00 4C [14:36:44]Write i2c OK [14:36:44]MH_I2C_Read... [14:36:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:44]Read from MH i2c: E2 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: E2 17 00 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: E2 17 00 B0 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A1 [14:36:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:36:44]wFMCommunicate OK [14:36:44]CreateOFDProtocolMessage done [14:36:44]OFDSenderStorePacket 201541 [14:36:44]StoreOFDPacket docnum=201541 [14:36:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 4B B1 04 01 8B 09 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 2F 01 00 00 F4 03 04 00 7C FE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 45 13 03 00 35 04 06 00 37 18 46 60 C1 65 D7 D9 87 71 77 98 46 2B [14:36:44]CheckFolder [14:36:44]dirname=/storage/ofd_packets [14:36:44]CheckFolder done [14:36:44]ProducePacketName [14:36:44]name=ofd_packets/00201541 [14:36:44]NVStorageSaveData ofd_packets/00201541 [14:36:44]File name is /storage/ofd_packets/00201541 [14:36:44]Write 298 bytes [14:36:44]NVStorageSaveData done [14:36:44]OFDSenderStorePacket done [14:36:44]KKMCreateOFDPacket done [14:36:44]NVStorageSaveData kkm_last_timestamp [14:36:44]File name is /storage/kkm_last_timestamp [14:36:44]Write 4 bytes [14:36:44]NVStorageSaveData done [14:36:44]ExternCall_PrintAddStr [14:36:44]wPrintStart [14:36:44]Write to MH i2c: 01 00 00 B1 22 D3 [14:36:44]Write i2c OK [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: 01 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: 01 07 00 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: 01 07 00 B1 22 00 00 00 00 00 FF 0F E8 [14:36:44]RasterBufferAndPrint [14:36:44]line Счет N : (1)449291 [14:36:44]line ИНН: 02508201610067 [14:36:44]line Контрольно-Кассовый Чек [14:36:44]line ПРОДАЖА [14:36:44]line ТРК (МРК, ГНК) : 33 [14:36:44]line Товар: 2710194210 [14:36:44]line ДТ-К-2 [14:36:44]line 26.250 * 76.20 [14:36:44]line = 2000.25 [14:36:44]line НДС 12% НСП 1% [14:36:44]line > о реализуемом товаре [14:36:44]line ОКРУГЛЕНИЕ: -0.25 [14:36:44]line ИТОГО: 2000.00 [14:36:44]line Внесено: 2000.00 [14:36:44]line СДАЧА: 0.00 [14:36:44]line НСП 1% : 17.70 [14:36:44]line НДС 12% : 212.42 [14:36:44]line Наличными: 2000.00 [14:36:44]line Безнал.: 0.00 [14:36:44]line Место: АЗС № 171 "Партнер Нефть" [14:36:44]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:36:44]line СНО: Общий режим [14:36:44]line Чек 303 26.10.2024 14:36 [14:36:44]line Смена: 543 ФФД: 1.0 [14:36:44]line ЗНМ: 0300000109 [14:36:44]line РНМ: 0000000000091777 [14:36:44]line Версия ККМ: 001 [14:36:44]line ФМ: 0000000000871756 [14:36:44]line ФД: 201541 [14:36:44]line ФПД: 60577399488869 [14:36:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143644&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201541&fm=60577399488869&tin=02508201610067®Number=0000000000091777&sum=200000 [14:36:45]OFD Sender: Processing packet 201541 [packets to send 112, broken 111] [14:36:45]ProducePacketName [14:36:45]name=ofd_packets/00201541 [14:36:45]OFD Sender: To server: pG, [14:36:45]CommunicateWithHost lk.salyk.kg:30040 [14:36:45]ConnectInit lk.salyk.kg [14:36:45]written 0, free lines is 4095 [14:36:45]Connected sock=10 [14:36:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 4B B1 04 01 8B 09 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 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 2F 01 00 00 F4 03 04 00 7C FE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 45 13 03 00 35 04 06 00 37 18 46 60 C1 65 D7 D9 87 71 77 98 46 2B [14:36:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 1C 20 47 00 BA 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 45 13 03 00 F4 03 04 00 25 AA 1C 67 B6 04 01 00 00 92 84 FC 11 12 EA 93 9B [14:36:45]CommunicateWithHost err = 0 [14:36:45]CheckOFDResponse [14:36:45]1017 (14) - 77093643461234 [14:36:45]1041 (16) - 0000000000871756 [14:36:45]1040 (4) - 201541 [14:36:45]1012 (4) - 26.10.2024 08:36 [14:36:45]1206 (1) - 0 [14:36:45]OFD Sender: Remove packet 201541 [14:36:45]ProducePacketName [14:36:45]name=ofd_packets/00201541 [14:36:45]NVStorageDeleteData [14:36:45]Write to MH i2c: 01 00 00 DC 22 FE [14:36:45]Write i2c OK [14:36:45]MH_I2C_Read... [14:36:45]Read from MH i2c: 01 [14:36:45]MH_I2C_Read... [14:36:45]Read from MH i2c: 01 07 00 [14:36:45]MH_I2C_Read... [14:36:45]Read from MH i2c: 01 07 00 DC 22 00 00 00 00 00 A5 0C B6 [14:36:45]RasterBufferAndPrint [14:36:45]line [14:36:45]line [14:36:45]line [14:36:45]line [14:36:45]line [14:36:45]written 0, free lines is 3243 [14:36:45]MH_Cut [14:36:45]Write to MH i2c: D1 01 00 E3 22 01 D7 [14:36:45]Write i2c OK [14:36:45]MH_I2C_Read... [14:36:45]Read from MH i2c: D1 [14:36:45]MH_I2C_Read... [14:36:45]Read from MH i2c: D1 01 00 [14:36:45]MH_I2C_Read... [14:36:45]Read from MH i2c: D1 01 00 E3 22 00 D6 [14:36:45]Write to MH i2c: 01 00 00 E4 22 06 [14:36:45]Write i2c OK [14:36:45]MH_I2C_Read... [14:36:45]OFD Sender: No OFD packet to send [14:36:46]*** Cut start [14:36:46]*** Purtial cut [14:36:46]*** Stage 1: CUTSNS_PIN = 1 [14:36:46]Read from MH i2c: 01 [14:36:46]MH_I2C_Read... [14:36:46]*** Stop cut motor [14:36:46]*** Cut end [14:36:46]Read from MH i2c: 01 07 00 [14:36:46]MH_I2C_Read... [14:36:46]Read from MH i2c: 01 07 00 E4 22 00 00 00 00 00 FF 0F 1B [14:36:46]process_action close_receipt done [14:36:46]requested_data is exist [14:36:46]produce_requested_data [14:36:46]requested_item fm.sn is exist - process it [14:36:46]wFMCommunicate request_size=4 [14:36:46]MH_SAM_APDU [14:36:46]CAPDU: 80 11 00 00 [14:36:46]Write to MH i2c: E2 08 00 E5 22 80 11 00 00 00 00 00 00 81 [14:36:46]Write i2c OK [14:36:46]MH_I2C_Read... [14:36:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:46]Read from MH i2c: E2 [14:36:46]MH_I2C_Read... [14:36:46]Read from MH i2c: E2 17 00 [14:36:46]MH_I2C_Read... [14:36:46]Read from MH i2c: E2 17 00 E5 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D6 [14:36:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:36:46]wFMCommunicate OK [14:36:46]requested_item fd.num is exist - process it [14:36:46]SAM_PROTO_GetFieldsCounters [14:36:46]wFMCommunicate request_size=4 [14:36:46]MH_SAM_APDU [14:36:46]CAPDU: 80 13 00 00 [14:36:46]Write to MH i2c: E2 08 00 E6 22 80 13 00 00 00 00 00 00 84 [14:36:46]Write i2c OK [14:36:46]MH_I2C_Read... [14:36:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:46]Read from MH i2c: E2 [14:36:46]MH_I2C_Read... [14:36:46]Read from MH i2c: E2 62 00 [14:36:46]MH_I2C_Read... [14:36:46]Read from MH i2c: E2 62 00 E6 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 45 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 B9 [14:36:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 45 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:36:46]wFMCommunicate OK [14:36:46]SAM_PROTO_GetFieldsCounters done [14:36:46]requested_item shift.num is exist - process it [14:36:46]requested_item shift.opened is exist - process it [14:36:46]req_shift_opened [14:36:46]FM_GetShiftState [14:36:46]SAM_PROTO_GetShiftState [14:36:46]wFMCommunicate request_size=4 [14:36:46]MH_SAM_APDU [14:36:46]CAPDU: 80 13 01 00 [14:36:46]Write to MH i2c: E2 08 00 E7 22 80 13 01 00 00 00 00 00 86 [14:36:46]Write i2c OK [14:36:46]MH_I2C_Read... [14:36:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:46]Read from MH i2c: E2 [14:36:46]MH_I2C_Read... [14:36:46]Read from MH i2c: E2 0E 00 [14:36:46]MH_I2C_Read... [14:36:46]Read from MH i2c: E2 0E 00 E7 22 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 95 [14:36:46]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:36:46]wFMCommunicate OK [14:36:46]SAM_PROTO_GetShiftState done [14:36:46]FM_GetShiftState done [14:36:46]req_shift_opened done [14:36:46]requested_item shift.open_date is exist - process it [14:36:46]req_shift_open_date [14:36:46]req_shift_open_date done [14:36:46]produce_requested_data done [14:36:46]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201541,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:36:46]process_action_free close_receipt [14:36:46]json_value_free [14:36:46]json_value_free done [14:36:46]process_json_proto returns [14:36:46]Send response to host [14:36:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201541,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:36:46]free response buf [14:36:46]execute_script done [14:36:46]execute_script returns [14:36:46]free content buf [14:36:46]Sock 9.Close socket [14:36:46]Sock 9.Thread stoped [14:36:50]OFD Sender: No OFD packet to send [14:36:55]OFD Sender: No OFD packet to send [14:37:00]OFD Sender: No OFD packet to send [14:37:05]OFD Sender: No OFD packet to send [14:37:10]OFD Sender: No OFD packet to send [14:37:16]OFD Sender: No OFD packet to send [14:37:21]OFD Sender: No OFD packet to send [14:37:26]OFD Sender: No OFD packet to send [14:37:31]OFD Sender: No OFD packet to send [14:37:36]OFD Sender: No OFD packet to send [14:37:41]OFD Sender: No OFD packet to send [14:37:46]OFD Sender: No OFD packet to send [14:37:51]OFD Sender: No OFD packet to send [14:37:56]OFD Sender: No OFD packet to send [14:38:01]OFD Sender: No OFD packet to send [14:38:06]OFD Sender: No OFD packet to send [14:38:11]OFD Sender: No OFD packet to send [14:38:16]OFD Sender: No OFD packet to send [14:38:17]accept exits with 8 [14:38:17]New connection [14:38:17]New thread 3066690916 created [14:38:17]Thread 3066834276 joined [14:38:17]Waiting for new connection... [14:38:17] Sock 8.Parse request [14:38:17]Sock 8.Check first char [14:38:17]Sock 8.First char is OK [14:38:17]request: POST /json_proto HTTP/1.0 [14:38:17]Method: POST [14:38:17]URL: /json_proto [14:38:17]Method is POST - this is cgi request [14:38:17]url: /json_proto [14:38:17]query_string will be loaded in cgi processing [14:38:17]execute_cgi json_proto POST (null) [14:38:17]execute_cgi path=json_proto method=POST [14:38:17]POST find Content-Length [14:38:17]Host: 172.17.63.195:8080 [14:38:17]Content-Length: 674 [14:38:17]Content-Type: application/json [14:38:17] [14:38:17]POST finish read [14:38:17]Found Content-Length = 674 [14:38:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 9.720, "sum" : 740.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:17]execute_script... [14:38: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)449294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 9.720, "sum" : 740.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:17]POST & json_proto [14:38:17]process_json_proto [14:38:17]json parsed OK: [14:38:17]protocol is kg_v1.0 [14:38:17]action value=close_receipt [14:38:17]process_action close_receipt [14:38:17]cmd_close_receipt [14:38:17]MH_GetDate [14:38:17]Write to MH i2c: F0 00 00 E8 22 F9 [14:38:17]Write i2c OK [14:38:17]MH_I2C_Read... [14:38:17]Read from MH i2c: F0 [14:38:17]MH_I2C_Read... [14:38:17]Read from MH i2c: F0 09 00 [14:38:17]MH_I2C_Read... [14:38:17]Read from MH i2c: F0 09 00 E8 22 00 DA FE 1C 67 68 46 19 67 8B [14:38:17]GetLastDocTimeStamp 1729953404 [14:38:17]current date 1729953498 [14:38:17]FM_GetShiftState [14:38:17]SAM_PROTO_GetShiftState [14:38:17]wFMCommunicate request_size=4 [14:38:17]MH_SAM_APDU [14:38:17]CAPDU: 80 13 01 00 [14:38:17]Write to MH i2c: E2 08 00 E9 22 80 13 01 00 00 00 00 00 88 [14:38:17]Write i2c OK [14:38:17]MH_I2C_Read... [14:38:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:17]Read from MH i2c: E2 [14:38:17]MH_I2C_Read... [14:38:17]Read from MH i2c: E2 0E 00 [14:38:17]MH_I2C_Read... [14:38:17]Read from MH i2c: E2 0E 00 E9 22 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 97 [14:38:17]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:38:17]wFMCommunicate OK [14:38:17]SAM_PROTO_GetShiftState done [14:38:17]FM_GetShiftState done [14:38:17]opened in 1729900879 [14:38:17]opened+sec_in_day 1729987279 [14:38:17]quantity*price = 74066 [14:38:17]sum+1 = 74067 [14:38:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 740.00 Внесено: 740.00 СДАЧА: 0.00 НСП 1% : 6.55 НДС 12% : 78.65 Наличными: 740.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 304 26.10.2024 14:38 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201542 ФПД: 244091546655069 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143818&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201542&fm=244091546655069&tin=02508201610067®Number=0000000000091777&sum=74000 [14:38:18]StoreToDocumentArchive [14:38:18]shift 543 fd 201542 [14:38:18]save to /storage/0543/doc_00201542 [14:38:18]save last doc name /storage/0543/doc_00201542 to /storage/kkm_last_doc_name [14:38:18]save OK [14:38:18]Clear old archive folders... [14:38:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:38:18]tlvbuf is 01F715A0 [14:38:18]SAM_PROTO_ClearQueue [14:38:18]wFMCommunicate request_size=4 [14:38:18]MH_SAM_APDU [14:38:18]CAPDU: 80 09 00 00 [14:38:18]Write to MH i2c: E2 08 00 F6 22 80 09 00 00 00 00 00 00 8A [14:38:18]Write i2c OK [14:38:18]MH_I2C_Read... [14:38:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:18]Read from MH i2c: E2 [14:38:18]MH_I2C_Read... [14:38:18]Read from MH i2c: E2 03 00 [14:38:18]MH_I2C_Read... [14:38:18]Read from MH i2c: E2 03 00 F6 22 00 90 00 8C [14:38:18]RAPDU: 90 00 [14:38:18]wFMCommunicate OK [14:38:18]SAM_PROTO_ClearQueue done [14:38:18]KKMCreateOFDPacket [14:38:18]OFDProtocolAddRootSTLVToBuf [14:38:18]FM_MakeSignedData [14:38:18]FM_MakeSignedData [14:38:18]SAM_PROTO_SignData [14:38:18]wFMCommunicate request_size=4 [14:38:18]MH_SAM_APDU [14:38:18]CAPDU: 80 0D 01 02 [14:38:18]Write to MH i2c: E2 08 00 F7 22 80 0D 01 02 00 00 00 00 92 [14:38:18]Write i2c OK [14:38:18]MH_I2C_Read... [14:38:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:18]Read from MH i2c: E2 [14:38:18]MH_I2C_Read... [14:38:18]Read from MH i2c: E2 03 00 [14:38:18]MH_I2C_Read... [14:38:18]Read from MH i2c: E2 03 00 F7 22 00 90 00 8D [14:38:18]RAPDU: 90 00 [14:38:18]wFMCommunicate OK [14:38:18]wFMCommunicate request_size=255 [14:38:18]MH_SAM_APDU [14:38:18]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 32 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 52 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 DA FE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 46 13 03 00 35 04 06 00 DD FF FD EE [14:38:18]Write to MH i2c: E2 02 01 F8 22 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 32 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 52 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 DA FE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 46 13 03 00 35 04 06 00 DD FF FD EE 00 00 02 [14:38:18]Write i2c OK [14:38:18]MH_I2C_Read... [14:38:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:18]Read from MH i2c: E2 [14:38:18]MH_I2C_Read... [14:38:18]Read from MH i2c: E2 03 00 [14:38:18]MH_I2C_Read... [14:38:18]Read from MH i2c: E2 03 00 F8 22 00 90 00 8E [14:38:18]RAPDU: 90 00 [14:38:18]wFMCommunicate OK [14:38:18]wFMCommunicate request_size=7 [14:38:18]MH_SAM_APDU [14:38:18]CAPDU: 80 0D 02 02 02 59 5D [14:38:18]Write to MH i2c: E2 0A 00 F9 22 80 0D 02 02 02 00 59 5D 00 00 4F [14:38:18]Write i2c OK [14:38:18]MH_I2C_Read... [14:38:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:18]Read from MH i2c: E2 [14:38:18]MH_I2C_Read... [14:38:18]Read from MH i2c: E2 03 00 [14:38:18]MH_I2C_Read... [14:38:18]Read from MH i2c: E2 03 00 F9 22 00 90 00 8F [14:38:18]RAPDU: 90 00 [14:38:18]wFMCommunicate OK [14:38:18]wFMCommunicate request_size=4 [14:38:18]MH_SAM_APDU [14:38:18]CAPDU: 80 0D 03 02 [14:38:18]Write to MH i2c: E2 08 00 FA 22 80 0D 03 02 00 00 00 00 97 [14:38:18]Write i2c OK [14:38:18]MH_I2C_Read... [14:38:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:19]Read from MH i2c: E2 [14:38:19]MH_I2C_Read... [14:38:19]Read from MH i2c: E2 0B 00 [14:38:19]MH_I2C_Read... [14:38:19]Read from MH i2c: E2 0B 00 FA 22 00 87 F5 58 A4 66 2A CA C7 90 00 31 [14:38:19]RAPDU: 87 F5 58 A4 66 2A CA C7 90 00 [14:38:19]wFMCommunicate OK [14:38:19]SAM_PROTO_SignData done [14:38:19]FM_MakeSignedData done [14:38:19]CreateOFDProtocolMessage [14:38:19]wFMCommunicate request_size=4 [14:38:19]MH_SAM_APDU [14:38:19]CAPDU: 80 11 00 00 [14:38:19]Write to MH i2c: E2 08 00 FB 22 80 11 00 00 00 00 00 00 97 [14:38:19]Write i2c OK [14:38:19]MH_I2C_Read... [14:38:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:19]Read from MH i2c: E2 [14:38:19]MH_I2C_Read... [14:38:19]Read from MH i2c: E2 17 00 [14:38:19]MH_I2C_Read... [14:38:19]Read from MH i2c: E2 17 00 FB 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EC [14:38:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:38:19]wFMCommunicate OK [14:38:19]CreateOFDProtocolMessage done [14:38:19]OFDSenderStorePacket 201542 [14:38:19]StoreOFDPacket docnum=201542 [14:38:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 52 AE 04 01 6F D7 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 32 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 52 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 DA FE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 46 13 03 00 35 04 06 00 DD FF FD EE 59 5D 87 F5 58 A4 66 2A CA C7 [14:38:19]CheckFolder [14:38:19]dirname=/storage/ofd_packets [14:38:19]CheckFolder done [14:38:19]ProducePacketName [14:38:19]name=ofd_packets/00201542 [14:38:19]NVStorageSaveData ofd_packets/00201542 [14:38:19]File name is /storage/ofd_packets/00201542 [14:38:19]Write 298 bytes [14:38:19]NVStorageSaveData done [14:38:19]OFDSenderStorePacket done [14:38:19]KKMCreateOFDPacket done [14:38:19]NVStorageSaveData kkm_last_timestamp [14:38:19]File name is /storage/kkm_last_timestamp [14:38:19]Write 4 bytes [14:38:19]NVStorageSaveData done [14:38:19]ExternCall_PrintAddStr [14:38:19]wPrintStart [14:38:19]Write to MH i2c: 01 00 00 FC 22 1E [14:38:19]Write i2c OK [14:38:19]MH_I2C_Read... [14:38:19]Read from MH i2c: 01 [14:38:19]MH_I2C_Read... [14:38:19]Read from MH i2c: 01 07 00 [14:38:19]MH_I2C_Read... [14:38:19]Read from MH i2c: 01 07 00 FC 22 00 00 00 00 00 FF 0F 33 [14:38:19]RasterBufferAndPrint [14:38:19]line Счет N : (1)449294 [14:38:19]line ИНН: 02508201610067 [14:38:19]line Контрольно-Кассовый Чек [14:38:19]line ПРОДАЖА [14:38:19]line ТРК (МРК, ГНК) : 21 [14:38:19]line Товар: 2710194210 [14:38:19]line ДТ-К-2 [14:38:19]line 9.720 * 76.20 [14:38:19]line = 740.66 [14:38:19]line НДС 12% НСП 1% [14:38:19]line > о реализуемом товаре [14:38:19]line ОКРУГЛЕНИЕ: -0.66 [14:38:19]line ИТОГО: 740.00 [14:38:19]line Внесено: 740.00 [14:38:19]line СДАЧА: 0.00 [14:38:19]line НСП 1% : 6.55 [14:38:19]line НДС 12% : 78.65 [14:38:19]line Наличными: 740.00 [14:38:19]line Безнал.: 0.00 [14:38:19]line Место: АЗС № 171 "Партнер Нефть" [14:38:19]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:38:19]line СНО: Общий режим [14:38:19]line Чек 304 26.10.2024 14:38 [14:38:19]line Смена: 543 ФФД: 1.0 [14:38:19]line ЗНМ: 0300000109 [14:38:19]line РНМ: 0000000000091777 [14:38:19]line Версия ККМ: 001 [14:38:19]line ФМ: 0000000000871756 [14:38:19]line ФД: 201542 [14:38:19]line ФПД: 244091546655069 [14:38:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143818&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201542&fm=244091546655069&tin=02508201610067®Number=0000000000091777&sum=74000 [14:38:19]OFD Sender: Processing packet 201542 [packets to send 112, broken 111] [14:38:19]ProducePacketName [14:38:19]name=ofd_packets/00201542 [14:38:19]OFD Sender: To server: pG, [14:38:19]CommunicateWithHost lk.salyk.kg:30040 [14:38:19]ConnectInit lk.salyk.kg [14:38:19]written 0, free lines is 4095 [14:38:19]Connected sock=11 [14:38:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 52 AE 04 01 6F D7 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 32 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 52 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 DA FE 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 46 13 03 00 35 04 06 00 DD FF FD EE 59 5D 87 F5 58 A4 66 2A CA C7 [14:38:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 DE A3 47 00 94 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 46 13 03 00 F4 03 04 00 83 AA 1C 67 B6 04 01 00 00 B0 B4 64 88 1B 23 43 65 [14:38:19]CommunicateWithHost err = 0 [14:38:19]CheckOFDResponse [14:38:19]1017 (14) - 77093643461234 [14:38:19]1041 (16) - 0000000000871756 [14:38:19]1040 (4) - 201542 [14:38:19]1012 (4) - 26.10.2024 08:38 [14:38:19]1206 (1) - 0 [14:38:19]OFD Sender: Remove packet 201542 [14:38:19]ProducePacketName [14:38:19]name=ofd_packets/00201542 [14:38:19]NVStorageDeleteData [14:38:19]Write to MH i2c: 01 00 00 27 23 4A [14:38:19]Write i2c OK [14:38:19]MH_I2C_Read... [14:38:19]Read from MH i2c: 01 [14:38:19]MH_I2C_Read... [14:38:19]Read from MH i2c: 01 07 00 [14:38:19]MH_I2C_Read... [14:38:19]Read from MH i2c: 01 07 00 27 23 00 00 00 00 00 9A 0C F7 [14:38:19]RasterBufferAndPrint [14:38:19]line [14:38:19]line [14:38:19]line [14:38:19]line [14:38:19]line [14:38:19]written 0, free lines is 3230 [14:38:19]MH_Cut [14:38:19]Write to MH i2c: D1 01 00 2E 23 01 23 [14:38:19]Write i2c OK [14:38:19]MH_I2C_Read... [14:38:19]Read from MH i2c: D1 [14:38:19]MH_I2C_Read... [14:38:19]Read from MH i2c: D1 01 00 [14:38:19]MH_I2C_Read... [14:38:19]Read from MH i2c: D1 01 00 2E 23 00 22 [14:38:19]Write to MH i2c: 01 00 00 2F 23 52 [14:38:19]Write i2c OK [14:38:19]MH_I2C_Read... [14:38:20]OFD Sender: No OFD packet to send [14:38:20]*** Cut start [14:38:20]*** Purtial cut [14:38:20]*** CUTSNS_PIN = 0 [14:38:20]*** Stage 1: CUTSNS_PIN = 1 [14:38:22]Read from MH i2c: 01 [14:38:22]MH_I2C_Read... [14:38:22]*** Stop cut motor [14:38:22]*** Cut end [14:38:22]Read from MH i2c: 01 07 00 [14:38:22]MH_I2C_Read... [14:38:22]Read from MH i2c: 01 07 00 2F 23 00 00 00 00 00 FF 0F 67 [14:38:22]process_action close_receipt done [14:38:22]requested_data is exist [14:38:22]produce_requested_data [14:38:22]requested_item fm.sn is exist - process it [14:38:22]wFMCommunicate request_size=4 [14:38:22]MH_SAM_APDU [14:38:22]CAPDU: 80 11 00 00 [14:38:22]Write to MH i2c: E2 08 00 30 23 80 11 00 00 00 00 00 00 CD [14:38:22]Write i2c OK [14:38:22]MH_I2C_Read... [14:38:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:22]Read from MH i2c: E2 [14:38:22]MH_I2C_Read... [14:38:22]Read from MH i2c: E2 17 00 [14:38:22]MH_I2C_Read... [14:38:22]Read from MH i2c: E2 17 00 30 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 22 [14:38:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:38:22]wFMCommunicate OK [14:38:22]requested_item fd.num is exist - process it [14:38:22]SAM_PROTO_GetFieldsCounters [14:38:22]wFMCommunicate request_size=4 [14:38:22]MH_SAM_APDU [14:38:22]CAPDU: 80 13 00 00 [14:38:22]Write to MH i2c: E2 08 00 31 23 80 13 00 00 00 00 00 00 D0 [14:38:22]Write i2c OK [14:38:22]MH_I2C_Read... [14:38:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:22]Read from MH i2c: E2 [14:38:22]MH_I2C_Read... [14:38:22]Read from MH i2c: E2 62 00 [14:38:22]MH_I2C_Read... [14:38:22]Read from MH i2c: E2 62 00 31 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 46 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 09 [14:38:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 46 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:38:23]wFMCommunicate OK [14:38:23]SAM_PROTO_GetFieldsCounters done [14:38:23]requested_item shift.num is exist - process it [14:38:23]requested_item shift.opened is exist - process it [14:38:23]req_shift_opened [14:38:23]FM_GetShiftState [14:38:23]SAM_PROTO_GetShiftState [14:38:23]wFMCommunicate request_size=4 [14:38:23]MH_SAM_APDU [14:38:23]CAPDU: 80 13 01 00 [14:38:23]Write to MH i2c: E2 08 00 32 23 80 13 01 00 00 00 00 00 D2 [14:38:23]Write i2c OK [14:38:23]MH_I2C_Read... [14:38:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:23]Read from MH i2c: E2 [14:38:23]MH_I2C_Read... [14:38:23]Read from MH i2c: E2 0E 00 [14:38:23]MH_I2C_Read... [14:38:23]Read from MH i2c: E2 0E 00 32 23 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E1 [14:38:23]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:38:23]wFMCommunicate OK [14:38:23]SAM_PROTO_GetShiftState done [14:38:23]FM_GetShiftState done [14:38:23]req_shift_opened done [14:38:23]requested_item shift.open_date is exist - process it [14:38:23]req_shift_open_date [14:38:23]req_shift_open_date done [14:38:23]produce_requested_data done [14:38:23]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201542,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:38:23]process_action_free close_receipt [14:38:23]json_value_free [14:38:23]json_value_free done [14:38:23]process_json_proto returns [14:38:23]Send response to host [14:38:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201542,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:38:23]free response buf [14:38:23]execute_script done [14:38:23]execute_script returns [14:38:23]free content buf [14:38:23]Sock 8.Close socket [14:38:23]Sock 8.Thread stoped [14:38:25]OFD Sender: No OFD packet to send [14:38:30]OFD Sender: No OFD packet to send [14:38:35]OFD Sender: No OFD packet to send [14:38:40]OFD Sender: No OFD packet to send [14:38:45]OFD Sender: No OFD packet to send [14:38:50]OFD Sender: No OFD packet to send [14:38:55]OFD Sender: No OFD packet to send [14:39:00]OFD Sender: No OFD packet to send [14:39:05]OFD Sender: No OFD packet to send [14:39:10]OFD Sender: No OFD packet to send [14:39:15]OFD Sender: No OFD packet to send [14:39:20]OFD Sender: No OFD packet to send [14:39:25]OFD Sender: No OFD packet to send [14:39:30]OFD Sender: No OFD packet to send [14:39:35]OFD Sender: No OFD packet to send [14:39:40]OFD Sender: No OFD packet to send [14:39:45]OFD Sender: No OFD packet to send [14:39:50]OFD Sender: No OFD packet to send [14:39:55]OFD Sender: No OFD packet to send [14:40:00]OFD Sender: No OFD packet to send [14:40:05]OFD Sender: No OFD packet to send [14:40:10]OFD Sender: No OFD packet to send [14:40:15]OFD Sender: No OFD packet to send [14:40:20]OFD Sender: No OFD packet to send [14:40:25]OFD Sender: No OFD packet to send [14:40:28]accept exits with 9 [14:40:28]New connection [14:40:28]New thread 3066834276 created [14:40:28]Thread 3066690916 joined [14:40:28]Waiting for new connection... [14:40:28] Sock 9.Parse request [14:40:28]Sock 9.Check first char [14:40:28]Sock 9.First char is OK [14:40:28]request: POST /json_proto HTTP/1.0 [14:40:28]Method: POST [14:40:28]URL: /json_proto [14:40:28]Method is POST - this is cgi request [14:40:28]url: /json_proto [14:40:28]query_string will be loaded in cgi processing [14:40:28]execute_cgi json_proto POST (null) [14:40:28]execute_cgi path=json_proto method=POST [14:40:28]POST find Content-Length [14:40:28]Host: 172.17.63.195:8080 [14:40:28]Content-Length: 762 [14:40:28]Content-Type: application/json [14:40:28] [14:40:28]POST finish read [14:40:28]Found Content-Length = 762 [14:40:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:28]execute_script... [14:40: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)449296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:28]POST & json_proto [14:40:28]process_json_proto [14:40:28]json parsed OK: [14:40:28]protocol is kg_v1.0 [14:40:28]action value=close_receipt [14:40:28]process_action close_receipt [14:40:28]cmd_close_receipt [14:40:28]MH_GetDate [14:40:28]Write to MH i2c: F0 00 00 33 23 45 [14:40:28]Write i2c OK [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: F0 [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: F0 09 00 [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: F0 09 00 33 23 00 5D FF 1C 67 68 46 19 67 5B [14:40:28]GetLastDocTimeStamp 1729953498 [14:40:28]current date 1729953629 [14:40:28]FM_GetShiftState [14:40:28]SAM_PROTO_GetShiftState [14:40:28]wFMCommunicate request_size=4 [14:40:28]MH_SAM_APDU [14:40:28]CAPDU: 80 13 01 00 [14:40:28]Write to MH i2c: E2 08 00 34 23 80 13 01 00 00 00 00 00 D4 [14:40:28]Write i2c OK [14:40:28]MH_I2C_Read... [14:40:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:28]Read from MH i2c: E2 [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: E2 0E 00 [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: E2 0E 00 34 23 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E3 [14:40:28]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:40:28]wFMCommunicate OK [14:40:28]SAM_PROTO_GetShiftState done [14:40:28]FM_GetShiftState done [14:40:28]opened in 1729900879 [14:40:28]opened+sec_in_day 1729987279 [14:40:28]quantity*price = 100000 [14:40:28]sum+1 = 100002 [14:40:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.01 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.01 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 305 26.10.2024 14:40 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201543 ФПД: 273838693676997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144029&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201543&fm=273838693676997&tin=02508201610067®Number=0000000000091777&sum=100001 [14:40:29]StoreToDocumentArchive [14:40:29]shift 543 fd 201543 [14:40:29]save to /storage/0543/doc_00201543 [14:40:29]save last doc name /storage/0543/doc_00201543 to /storage/kkm_last_doc_name [14:40:29]save OK [14:40:29]Clear old archive folders... [14:40:29]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:40:29]tlvbuf is 01F35B70 [14:40:29]SAM_PROTO_ClearQueue [14:40:29]wFMCommunicate request_size=4 [14:40:29]MH_SAM_APDU [14:40:29]CAPDU: 80 09 00 00 [14:40:29]Write to MH i2c: E2 08 00 41 23 80 09 00 00 00 00 00 00 D6 [14:40:29]Write i2c OK [14:40:29]MH_I2C_Read... [14:40:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:29]Read from MH i2c: E2 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: E2 03 00 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: E2 03 00 41 23 00 90 00 D8 [14:40:29]RAPDU: 90 00 [14:40:29]wFMCommunicate OK [14:40:29]SAM_PROTO_ClearQueue done [14:40:29]KKMCreateOFDPacket [14:40:29]OFDProtocolAddRootSTLVToBuf [14:40:29]FM_MakeSignedData [14:40:29]FM_MakeSignedData [14:40:29]SAM_PROTO_SignData [14:40:29]wFMCommunicate request_size=4 [14:40:29]MH_SAM_APDU [14:40:29]CAPDU: 80 0D 01 02 [14:40:29]Write to MH i2c: E2 08 00 42 23 80 0D 01 02 00 00 00 00 DE [14:40:29]Write i2c OK [14:40:29]MH_I2C_Read... [14:40:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:29]Read from MH i2c: E2 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: E2 03 00 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: E2 03 00 42 23 00 90 00 D9 [14:40:29]RAPDU: 90 00 [14:40:29]wFMCommunicate OK [14:40:29]wFMCommunicate request_size=255 [14:40:29]MH_SAM_APDU [14:40:29]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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 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 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 5D FF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 47 13 03 00 35 04 06 00 [14:40:29]Write to MH i2c: E2 02 01 43 23 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 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 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 5D FF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 47 13 03 00 35 04 06 00 00 00 D8 [14:40:29]Write i2c OK [14:40:29]MH_I2C_Read... [14:40:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:29]Read from MH i2c: E2 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: E2 03 00 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: E2 03 00 43 23 00 90 00 DA [14:40:29]RAPDU: 90 00 [14:40:29]wFMCommunicate OK [14:40:29]wFMCommunicate request_size=11 [14:40:29]MH_SAM_APDU [14:40:29]CAPDU: 80 0D 02 02 06 F9 0E 0A 0F F7 C5 [14:40:29]Write to MH i2c: E2 0E 00 44 23 80 0D 02 02 06 00 F9 0E 0A 0F F7 C5 00 00 C9 [14:40:29]Write i2c OK [14:40:29]MH_I2C_Read... [14:40:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:30]Read from MH i2c: E2 [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: E2 03 00 [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: E2 03 00 44 23 00 90 00 DB [14:40:30]RAPDU: 90 00 [14:40:30]wFMCommunicate OK [14:40:30]wFMCommunicate request_size=4 [14:40:30]MH_SAM_APDU [14:40:30]CAPDU: 80 0D 03 02 [14:40:30]Write to MH i2c: E2 08 00 45 23 80 0D 03 02 00 00 00 00 E3 [14:40:30]Write i2c OK [14:40:30]MH_I2C_Read... [14:40:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:30]Read from MH i2c: E2 [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: E2 0B 00 [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: E2 0B 00 45 23 00 50 24 DF 6D E4 F8 31 64 90 00 15 [14:40:30]RAPDU: 50 24 DF 6D E4 F8 31 64 90 00 [14:40:30]wFMCommunicate OK [14:40:30]SAM_PROTO_SignData done [14:40:30]FM_MakeSignedData done [14:40:30]CreateOFDProtocolMessage [14:40:30]wFMCommunicate request_size=4 [14:40:30]MH_SAM_APDU [14:40:30]CAPDU: 80 11 00 00 [14:40:30]Write to MH i2c: E2 08 00 46 23 80 11 00 00 00 00 00 00 E3 [14:40:30]Write i2c OK [14:40:30]MH_I2C_Read... [14:40:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:30]Read from MH i2c: E2 [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: E2 17 00 [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: E2 17 00 46 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 38 [14:40:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:40:30]wFMCommunicate OK [14:40:30]CreateOFDProtocolMessage done [14:40:30]OFDSenderStorePacket 201543 [14:40:30]StoreOFDPacket docnum=201543 [14:40:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 C6 8C 08 01 B8 E4 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 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 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 5D FF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 47 13 03 00 35 04 06 00 F9 0E 0A 0F F7 C5 50 24 DF 6D E4 F8 31 64 [14:40:30]CheckFolder [14:40:30]dirname=/storage/ofd_packets [14:40:30]CheckFolder done [14:40:30]ProducePacketName [14:40:30]name=ofd_packets/00201543 [14:40:30]NVStorageSaveData ofd_packets/00201543 [14:40:30]File name is /storage/ofd_packets/00201543 [14:40:30]Write 302 bytes [14:40:30]NVStorageSaveData done [14:40:30]OFDSenderStorePacket done [14:40:30]KKMCreateOFDPacket done [14:40:30]NVStorageSaveData kkm_last_timestamp [14:40:30]File name is /storage/kkm_last_timestamp [14:40:30]Write 4 bytes [14:40:30]NVStorageSaveData done [14:40:30]ExternCall_PrintAddStr [14:40:30]wPrintStart [14:40:30]Write to MH i2c: 01 00 00 47 23 6A [14:40:30]Write i2c OK [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: 01 [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: 01 07 00 [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: 01 07 00 47 23 00 00 00 00 00 FF 0F 7F [14:40:30]RasterBufferAndPrint [14:40:30]line Счет N : (1)449296 [14:40:30]line ИНН: 02508201610067 [14:40:30]line Контрольно-Кассовый Чек [14:40:30]line ПРОДАЖА [14:40:30]line ТРК (МРК, ГНК) : 53 [14:40:30]line Товар: 2710124130 [14:40:30]line SUPER 92-К-5 [14:40:30]line 14.620 * 68.40 [14:40:30]line = 1000.01 [14:40:30]line НДС 12% НСП 1% [14:40:30]line > о реализуемом товаре [14:40:30]line ИТОГО: 1000.01 [14:40:30]line НСП 1% : 8.85 [14:40:30]line НДС 12% : 106.20 [14:40:30]line Наличными: 0.00 [14:40:30]line Безнал.: 1000.01 [14:40:30]line Место: АЗС № 171 "Партнер Нефть" [14:40:30]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:40:30]line СНО: Общий режим [14:40:30]line Чек 305 26.10.2024 14:40 [14:40:30]line Смена: 543 ФФД: 1.0 [14:40:30]line ЗНМ: 0300000109 [14:40:30]line РНМ: 0000000000091777 [14:40:30]line Версия ККМ: 001 [14:40:30]line Платежная система: Mbank [14:40:30]line ФМ: 0000000000871756 [14:40:30]line ФД: 201543 [14:40:30]line ФПД: 273838693676997 [14:40:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144029&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201543&fm=273838693676997&tin=02508201610067®Number=0000000000091777&sum=100001 [14:40:30]written 0, free lines is 4095 [14:40:30]OFD Sender: Processing packet 201543 [packets to send 112, broken 111] [14:40:30]ProducePacketName [14:40:30]name=ofd_packets/00201543 [14:40:30]OFD Sender: To server: pG, [14:40:30]CommunicateWithHost lk.salyk.kg:30040 [14:40:30]ConnectInit lk.salyk.kg [14:40:30]Connected sock=10 [14:40:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 C6 8C 08 01 B8 E4 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 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 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 5D FF 1C 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 47 13 03 00 35 04 06 00 F9 0E 0A 0F F7 C5 50 24 DF 6D E4 F8 31 64 [14:40:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 5E DA 47 00 65 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 47 13 03 00 F4 03 04 00 06 AB 1C 67 B6 04 01 00 00 FE F0 75 3E 24 5A 45 C0 [14:40:30]CommunicateWithHost err = 0 [14:40:30]CheckOFDResponse [14:40:30]1017 (14) - 77093643461234 [14:40:30]1041 (16) - 0000000000871756 [14:40:30]1040 (4) - 201543 [14:40:30]1012 (4) - 26.10.2024 08:40 [14:40:30]1206 (1) - 0 [14:40:30]OFD Sender: Remove packet 201543 [14:40:30]ProducePacketName [14:40:30]name=ofd_packets/00201543 [14:40:30]NVStorageDeleteData [14:40:30]Write to MH i2c: 01 00 00 70 23 93 [14:40:30]Write i2c OK [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: 01 [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: 01 07 00 [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: 01 07 00 70 23 00 00 00 00 00 C8 0C 6E [14:40:30]RasterBufferAndPrint [14:40:30]line [14:40:30]line [14:40:30]line [14:40:30]line [14:40:30]line [14:40:30]written 0, free lines is 3278 [14:40:30]MH_Cut [14:40:30]Write to MH i2c: D1 01 00 77 23 01 6C [14:40:30]Write i2c OK [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: D1 [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: D1 01 00 [14:40:30]MH_I2C_Read... [14:40:30]Read from MH i2c: D1 01 00 77 23 00 6B [14:40:30]Write to MH i2c: 01 00 00 78 23 9B [14:40:30]Write i2c OK [14:40:30]MH_I2C_Read... [14:40:31]OFD Sender: No OFD packet to send [14:40:31]*** Cut start [14:40:31]*** Purtial cut [14:40:31]*** Stage 1: CUTSNS_PIN = 1 [14:40:32]Read from MH i2c: 01 [14:40:32]MH_I2C_Read... [14:40:32]*** Stop cut motor [14:40:32]*** Cut end [14:40:32]Read from MH i2c: 01 07 00 [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: 01 07 00 78 23 00 00 00 00 00 FF 0F B0 [14:40:32]process_action close_receipt done [14:40:32]requested_data is exist [14:40:32]produce_requested_data [14:40:32]requested_item fm.sn is exist - process it [14:40:32]wFMCommunicate request_size=4 [14:40:32]MH_SAM_APDU [14:40:32]CAPDU: 80 11 00 00 [14:40:32]Write to MH i2c: E2 08 00 79 23 80 11 00 00 00 00 00 00 16 [14:40:32]Write i2c OK [14:40:32]MH_I2C_Read... [14:40:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:32]Read from MH i2c: E2 [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: E2 17 00 [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: E2 17 00 79 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6B [14:40:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:40:32]wFMCommunicate OK [14:40:32]requested_item fd.num is exist - process it [14:40:32]SAM_PROTO_GetFieldsCounters [14:40:32]wFMCommunicate request_size=4 [14:40:32]MH_SAM_APDU [14:40:32]CAPDU: 80 13 00 00 [14:40:32]Write to MH i2c: E2 08 00 7A 23 80 13 00 00 00 00 00 00 19 [14:40:32]Write i2c OK [14:40:32]MH_I2C_Read... [14:40:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:32]Read from MH i2c: E2 [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: E2 62 00 [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: E2 62 00 7A 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 47 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 56 [14:40:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 47 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:40:32]wFMCommunicate OK [14:40:32]SAM_PROTO_GetFieldsCounters done [14:40:32]requested_item shift.num is exist - process it [14:40:32]requested_item shift.opened is exist - process it [14:40:32]req_shift_opened [14:40:32]FM_GetShiftState [14:40:32]SAM_PROTO_GetShiftState [14:40:32]wFMCommunicate request_size=4 [14:40:32]MH_SAM_APDU [14:40:32]CAPDU: 80 13 01 00 [14:40:32]Write to MH i2c: E2 08 00 7B 23 80 13 01 00 00 00 00 00 1B [14:40:32]Write i2c OK [14:40:32]MH_I2C_Read... [14:40:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:32]Read from MH i2c: E2 [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: E2 0E 00 [14:40:32]MH_I2C_Read... [14:40:32]Read from MH i2c: E2 0E 00 7B 23 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 2A [14:40:32]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:40:32]wFMCommunicate OK [14:40:32]SAM_PROTO_GetShiftState done [14:40:32]FM_GetShiftState done [14:40:32]req_shift_opened done [14:40:32]requested_item shift.open_date is exist - process it [14:40:32]req_shift_open_date [14:40:32]req_shift_open_date done [14:40:32]produce_requested_data done [14:40:32]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201543,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:40:32]process_action_free close_receipt [14:40:32]json_value_free [14:40:32]json_value_free done [14:40:32]process_json_proto returns [14:40:32]Send response to host [14:40:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201543,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:40:32]free response buf [14:40:32]execute_script done [14:40:32]execute_script returns [14:40:32]free content buf [14:40:32]Sock 9.Close socket [14:40:32]Sock 9.Thread stoped [14:40:36]OFD Sender: No OFD packet to send [14:40:41]OFD Sender: No OFD packet to send [14:40:46]OFD Sender: No OFD packet to send [14:40:51]OFD Sender: No OFD packet to send [14:40:56]OFD Sender: No OFD packet to send [14:41:01]OFD Sender: No OFD packet to send [14:41:06]OFD Sender: No OFD packet to send [14:41:11]OFD Sender: No OFD packet to send [14:41:16]OFD Sender: No OFD packet to send [14:41:21]OFD Sender: No OFD packet to send [14:41:26]OFD Sender: No OFD packet to send [14:41:31]OFD Sender: No OFD packet to send [14:41:36]OFD Sender: No OFD packet to send [14:41:41]OFD Sender: No OFD packet to send [14:41:46]OFD Sender: No OFD packet to send [14:41:51]OFD Sender: No OFD packet to send [14:41:56]OFD Sender: No OFD packet to send [14:42:01]OFD Sender: No OFD packet to send [14:42:06]OFD Sender: No OFD packet to send [14:42:11]OFD Sender: No OFD packet to send [14:42:16]OFD Sender: No OFD packet to send [14:42:21]OFD Sender: No OFD packet to send [14:42:26]OFD Sender: No OFD packet to send [14:42:31]OFD Sender: No OFD packet to send [14:42:36]OFD Sender: No OFD packet to send [14:42:41]OFD Sender: No OFD packet to send [14:42:46]OFD Sender: No OFD packet to send [14:42:51]OFD Sender: No OFD packet to send [14:42:56]OFD Sender: No OFD packet to send [14:43:01]OFD Sender: No OFD packet to send [14:43:06]OFD Sender: No OFD packet to send [14:43:11]OFD Sender: No OFD packet to send [14:43:16]OFD Sender: No OFD packet to send [14:43:21]OFD Sender: No OFD packet to send [14:43:26]OFD Sender: No OFD packet to send [14:43:31]OFD Sender: No OFD packet to send [14:43:36]OFD Sender: No OFD packet to send [14:43:41]OFD Sender: No OFD packet to send [14:43:46]OFD Sender: No OFD packet to send [14:43:51]OFD Sender: No OFD packet to send [14:43:56]OFD Sender: No OFD packet to send [14:44:01]OFD Sender: No OFD packet to send [14:44:04]accept exits with 8 [14:44:04]New connection [14:44:04]New thread 3066690916 created [14:44:04]Thread 3066834276 joined [14:44:04]Waiting for new connection... [14:44:04] Sock 8.Parse request [14:44:04]Sock 8.Check first char [14:44:04]Sock 8.First char is OK [14:44:04]request: POST /json_proto HTTP/1.0 [14:44:04]Method: POST [14:44:04]URL: /json_proto [14:44:04]Method is POST - this is cgi request [14:44:04]url: /json_proto [14:44:04]query_string will be loaded in cgi processing [14:44:04]execute_cgi json_proto POST (null) [14:44:04]execute_cgi path=json_proto method=POST [14:44:04]POST find Content-Length [14:44:04]Host: 172.17.63.195:8080 [14:44:04]Content-Length: 679 [14:44:04]Content-Type: application/json [14:44:04] [14:44:04]POST finish read [14:44:04]Found Content-Length = 679 [14:44:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [14:44:04]execute_script... [14:44: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)449297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [14:44:04]POST & json_proto [14:44:04]process_json_proto [14:44:04]json parsed OK: [14:44:04]protocol is kg_v1.0 [14:44:04]action value=close_receipt [14:44:04]process_action close_receipt [14:44:04]cmd_close_receipt [14:44:04]MH_GetDate [14:44:04]Write to MH i2c: F0 00 00 7C 23 8E [14:44:04]Write i2c OK [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: F0 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: F0 09 00 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: F0 09 00 7C 23 00 35 00 1D 67 68 46 19 67 7E [14:44:04]GetLastDocTimeStamp 1729953629 [14:44:04]current date 1729953845 [14:44:04]FM_GetShiftState [14:44:04]SAM_PROTO_GetShiftState [14:44:04]wFMCommunicate request_size=4 [14:44:04]MH_SAM_APDU [14:44:04]CAPDU: 80 13 01 00 [14:44:04]Write to MH i2c: E2 08 00 7D 23 80 13 01 00 00 00 00 00 1D [14:44:04]Write i2c OK [14:44:04]MH_I2C_Read... [14:44:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:04]Read from MH i2c: E2 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: E2 0E 00 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: E2 0E 00 7D 23 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 2C [14:44:04]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:44:04]wFMCommunicate OK [14:44:04]SAM_PROTO_GetShiftState done [14:44:04]FM_GetShiftState done [14:44:04]opened in 1729900879 [14:44:04]opened+sec_in_day 1729987279 [14:44:04]quantity*price = 100050 [14:44:04]sum+1 = 100052 [14:44:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 306 26.10.2024 14:44 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201544 ФПД: 204547799382494 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144405&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201544&fm=204547799382494&tin=02508201610067®Number=0000000000091777&sum=100000 [14:44:05]StoreToDocumentArchive [14:44:05]shift 543 fd 201544 [14:44:05]save to /storage/0543/doc_00201544 [14:44:05]save last doc name /storage/0543/doc_00201544 to /storage/kkm_last_doc_name [14:44:05]save OK [14:44:05]Clear old archive folders... [14:44:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:44:05]tlvbuf is 01F42AD0 [14:44:05]SAM_PROTO_ClearQueue [14:44:05]wFMCommunicate request_size=4 [14:44:05]MH_SAM_APDU [14:44:05]CAPDU: 80 09 00 00 [14:44:05]Write to MH i2c: E2 08 00 8A 23 80 09 00 00 00 00 00 00 1F [14:44:05]Write i2c OK [14:44:05]MH_I2C_Read... [14:44:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:44:05]Read from MH i2c: E2 [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: E2 03 00 [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: E2 03 00 8A 23 00 90 00 21 [14:44:05]RAPDU: 90 00 [14:44:05]wFMCommunicate OK [14:44:05]SAM_PROTO_ClearQueue done [14:44:05]KKMCreateOFDPacket [14:44:05]OFDProtocolAddRootSTLVToBuf [14:44:05]FM_MakeSignedData [14:44:05]FM_MakeSignedData [14:44:05]SAM_PROTO_SignData [14:44:05]wFMCommunicate request_size=4 [14:44:05]MH_SAM_APDU [14:44:05]CAPDU: 80 0D 01 02 [14:44:05]Write to MH i2c: E2 08 00 8B 23 80 0D 01 02 00 00 00 00 27 [14:44:05]Write i2c OK [14:44:05]MH_I2C_Read... [14:44:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:44:05]Read from MH i2c: E2 [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: E2 03 00 [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: E2 03 00 8B 23 00 90 00 22 [14:44:05]RAPDU: 90 00 [14:44:05]wFMCommunicate OK [14:44:05]wFMCommunicate request_size=255 [14:44:05]MH_SAM_APDU [14:44: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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 32 01 00 00 F4 03 04 00 35 00 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 48 13 03 00 35 04 06 00 BA 08 FE EB [14:44:05]Write to MH i2c: E2 02 01 8C 23 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 32 01 00 00 F4 03 04 00 35 00 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 48 13 03 00 35 04 06 00 BA 08 FE EB 00 00 C7 [14:44:05]Write i2c OK [14:44:05]MH_I2C_Read... [14:44:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:06]Read from MH i2c: E2 [14:44:06]MH_I2C_Read... [14:44:06]Read from MH i2c: E2 03 00 [14:44:06]MH_I2C_Read... [14:44:06]Read from MH i2c: E2 03 00 8C 23 00 90 00 23 [14:44:06]RAPDU: 90 00 [14:44:06]wFMCommunicate OK [14:44:06]wFMCommunicate request_size=7 [14:44:06]MH_SAM_APDU [14:44:06]CAPDU: 80 0D 02 02 02 F9 DE [14:44:06]Write to MH i2c: E2 0A 00 8D 23 80 0D 02 02 02 00 F9 DE 00 00 05 [14:44:06]Write i2c OK [14:44:06]MH_I2C_Read... [14:44:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:06]Read from MH i2c: E2 [14:44:06]MH_I2C_Read... [14:44:06]Read from MH i2c: E2 03 00 [14:44:06]MH_I2C_Read... [14:44:06]Read from MH i2c: E2 03 00 8D 23 00 90 00 24 [14:44:06]RAPDU: 90 00 [14:44:06]wFMCommunicate OK [14:44:06]wFMCommunicate request_size=4 [14:44:06]MH_SAM_APDU [14:44:06]CAPDU: 80 0D 03 02 [14:44:06]Write to MH i2c: E2 08 00 8E 23 80 0D 03 02 00 00 00 00 2C [14:44:06]Write i2c OK [14:44:06]MH_I2C_Read... [14:44:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:06]Read from MH i2c: E2 [14:44:06]MH_I2C_Read... [14:44:06]Read from MH i2c: E2 0B 00 [14:44:06]MH_I2C_Read... [14:44:06]Read from MH i2c: E2 0B 00 8E 23 00 B7 C8 CE C1 6A 5B 4F C5 90 00 14 [14:44:06]RAPDU: B7 C8 CE C1 6A 5B 4F C5 90 00 [14:44:06]wFMCommunicate OK [14:44:06]SAM_PROTO_SignData done [14:44:06]FM_MakeSignedData done [14:44:06]CreateOFDProtocolMessage [14:44:06]wFMCommunicate request_size=4 [14:44:06]MH_SAM_APDU [14:44:06]CAPDU: 80 11 00 00 [14:44:06]Write to MH i2c: E2 08 00 8F 23 80 11 00 00 00 00 00 00 2C [14:44:06]Write i2c OK [14:44:06]MH_I2C_Read... [14:44:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:06]Read from MH i2c: E2 [14:44:06]MH_I2C_Read... [14:44:06]Read from MH i2c: E2 17 00 [14:44:06]MH_I2C_Read... [14:44:06]Read from MH i2c: E2 17 00 8F 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 81 [14:44:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:44:06]wFMCommunicate OK [14:44:06]CreateOFDProtocolMessage done [14:44:06]OFDSenderStorePacket 201544 [14:44:06]StoreOFDPacket docnum=201544 [14:44:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 8B F5 04 01 DF EF 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 32 01 00 00 F4 03 04 00 35 00 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 48 13 03 00 35 04 06 00 BA 08 FE EB F9 DE B7 C8 CE C1 6A 5B 4F C5 [14:44:06]CheckFolder [14:44:06]dirname=/storage/ofd_packets [14:44:06]CheckFolder done [14:44:06]ProducePacketName [14:44:06]name=ofd_packets/00201544 [14:44:06]NVStorageSaveData ofd_packets/00201544 [14:44:06]File name is /storage/ofd_packets/00201544 [14:44:06]Write 298 bytes [14:44:06]NVStorageSaveData done [14:44:06]OFDSenderStorePacket done [14:44:06]KKMCreateOFDPacket done [14:44:06]NVStorageSaveData kkm_last_timestamp [14:44:06]File name is /storage/kkm_last_timestamp [14:44:06]Write 4 bytes [14:44:06]NVStorageSaveData done [14:44:06]ExternCall_PrintAddStr [14:44:06]wPrintStart [14:44:06]Write to MH i2c: 01 00 00 90 23 B3 [14:44:06]Write i2c OK [14:44:06]MH_I2C_Read... [14:44:06]Read from MH i2c: 01 [14:44:06]MH_I2C_Read... [14:44:06]Read from MH i2c: 01 07 00 [14:44:06]MH_I2C_Read... [14:44:06]Read from MH i2c: 01 07 00 90 23 00 00 00 00 00 FF 0F C8 [14:44:06]RasterBufferAndPrint [14:44:06]line Счет N : (1)449297 [14:44:06]line ИНН: 02508201610067 [14:44:06]line Контрольно-Кассовый Чек [14:44:06]line ПРОДАЖА [14:44:06]line ТРК (МРК, ГНК) : 33 [14:44:06]line Товар: 2710194210 [14:44:06]line ДТ-К-2 [14:44:06]line 13.130 * 76.20 [14:44:06]line = 1000.51 [14:44:06]line НДС 12% НСП 1% [14:44:06]line > о реализуемом товаре [14:44:06]line ОКРУГЛЕНИЕ: -0.51 [14:44:06]line ИТОГО: 1000.00 [14:44:06]line Внесено: 1000.00 [14:44:06]line СДАЧА: 0.00 [14:44:06]line НСП 1% : 8.85 [14:44:06]line НДС 12% : 106.25 [14:44:06]line Наличными: 1000.00 [14:44:06]line Безнал.: 0.00 [14:44:06]line Место: АЗС № 171 "Партнер Нефть" [14:44:06]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:44:06]line СНО: Общий режим [14:44:06]line Чек 306 26.10.2024 14:44 [14:44:06]line Смена: 543 ФФД: 1.0 [14:44:06]line ЗНМ: 0300000109 [14:44:06]line РНМ: 0000000000091777 [14:44:06]line Версия ККМ: 001 [14:44:06]line ФМ: 0000000000871756 [14:44:06]line ФД: 201544 [14:44:06]line ФПД: 204547799382494 [14:44:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144405&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201544&fm=204547799382494&tin=02508201610067®Number=0000000000091777&sum=100000 [14:44:06]OFD Sender: Processing packet 201544 [packets to send 112, broken 111] [14:44:06]ProducePacketName [14:44:06]name=ofd_packets/00201544 [14:44:06]OFD Sender: To server: pG, [14:44:06]CommunicateWithHost lk.salyk.kg:30040 [14:44:06]ConnectInit lk.salyk.kg [14:44:06]written 0, free lines is 4095 [14:44:06]Connected sock=10 [14:44:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 8B F5 04 01 DF EF 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 32 01 00 00 F4 03 04 00 35 00 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 48 13 03 00 35 04 06 00 BA 08 FE EB F9 DE B7 C8 CE C1 6A 5B 4F C5 [14:44:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 43 BC 47 00 73 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 48 13 03 00 F4 03 04 00 DE AB 1C 67 B6 04 01 00 00 E3 15 A0 9B C9 C2 BE FA [14:44:06]CommunicateWithHost err = 0 [14:44:06]CheckOFDResponse [14:44:06]1017 (14) - 77093643461234 [14:44:06]1041 (16) - 0000000000871756 [14:44:06]1040 (4) - 201544 [14:44:06]1012 (4) - 26.10.2024 08:44 [14:44:06]1206 (1) - 0 [14:44:06]OFD Sender: Remove packet 201544 [14:44:06]ProducePacketName [14:44:06]name=ofd_packets/00201544 [14:44:06]NVStorageDeleteData [14:44:06]Write to MH i2c: 01 00 00 BB 23 DE [14:44:07]Write i2c OK [14:44:07]MH_I2C_Read... [14:44:07]Read from MH i2c: 01 [14:44:07]MH_I2C_Read... [14:44:07]Read from MH i2c: 01 07 00 [14:44:07]MH_I2C_Read... [14:44:07]Read from MH i2c: 01 07 00 BB 23 00 00 00 00 00 A4 0C 95 [14:44:07]RasterBufferAndPrint [14:44:07]line [14:44:07]line [14:44:07]line [14:44:07]line [14:44:07]line [14:44:07]written 0, free lines is 3242 [14:44:07]MH_Cut [14:44:07]Write to MH i2c: D1 01 00 C2 23 01 B7 [14:44:07]Write i2c OK [14:44:07]MH_I2C_Read... [14:44:07]Read from MH i2c: D1 [14:44:07]MH_I2C_Read... [14:44:07]Read from MH i2c: D1 01 00 [14:44:07]MH_I2C_Read... [14:44:07]Read from MH i2c: D1 01 00 C2 23 00 B6 [14:44:07]Write to MH i2c: 01 00 00 C3 23 E6 [14:44:07]Write i2c OK [14:44:07]MH_I2C_Read... [14:44:07]OFD Sender: No OFD packet to send [14:44:07]*** Cut start [14:44:07]*** Purtial cut [14:44:07]*** CUTSNS_PIN = 0 [14:44:08]*** Stage 1: CUTSNS_PIN = 1 [14:44:09]Read from MH i2c: 01 [14:44:09]MH_I2C_Read... [14:44:09]*** Stop cut motor [14:44:09]*** Cut end [14:44:09]Read from MH i2c: 01 07 00 [14:44:09]MH_I2C_Read... [14:44:09]Read from MH i2c: 01 07 00 C3 23 00 00 00 00 00 FF 0F FB [14:44:09]process_action close_receipt done [14:44:09]requested_data is exist [14:44:09]produce_requested_data [14:44:09]requested_item fm.sn is exist - process it [14:44:09]wFMCommunicate request_size=4 [14:44:09]MH_SAM_APDU [14:44:09]CAPDU: 80 11 00 00 [14:44:09]Write to MH i2c: E2 08 00 C4 23 80 11 00 00 00 00 00 00 61 [14:44:09]Write i2c OK [14:44:09]MH_I2C_Read... [14:44:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:09]Read from MH i2c: E2 [14:44:09]MH_I2C_Read... [14:44:09]Read from MH i2c: E2 17 00 [14:44:09]MH_I2C_Read... [14:44:09]Read from MH i2c: E2 17 00 C4 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B6 [14:44:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:44:09]wFMCommunicate OK [14:44:09]requested_item fd.num is exist - process it [14:44:09]SAM_PROTO_GetFieldsCounters [14:44:09]wFMCommunicate request_size=4 [14:44:09]MH_SAM_APDU [14:44:09]CAPDU: 80 13 00 00 [14:44:09]Write to MH i2c: E2 08 00 C5 23 80 13 00 00 00 00 00 00 64 [14:44:09]Write i2c OK [14:44:09]MH_I2C_Read... [14:44:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:44:10]Read from MH i2c: E2 [14:44:10]MH_I2C_Read... [14:44:10]Read from MH i2c: E2 62 00 [14:44:10]MH_I2C_Read... [14:44:10]Read from MH i2c: E2 62 00 C5 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 48 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 A5 [14:44:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 48 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:44:10]wFMCommunicate OK [14:44:10]SAM_PROTO_GetFieldsCounters done [14:44:10]requested_item shift.num is exist - process it [14:44:10]requested_item shift.opened is exist - process it [14:44:10]req_shift_opened [14:44:10]FM_GetShiftState [14:44:10]SAM_PROTO_GetShiftState [14:44:10]wFMCommunicate request_size=4 [14:44:10]MH_SAM_APDU [14:44:10]CAPDU: 80 13 01 00 [14:44:10]Write to MH i2c: E2 08 00 C6 23 80 13 01 00 00 00 00 00 66 [14:44:10]Write i2c OK [14:44:10]MH_I2C_Read... [14:44:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:10]Read from MH i2c: E2 [14:44:10]MH_I2C_Read... [14:44:10]Read from MH i2c: E2 0E 00 [14:44:10]MH_I2C_Read... [14:44:10]Read from MH i2c: E2 0E 00 C6 23 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 75 [14:44:10]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:44:10]wFMCommunicate OK [14:44:10]SAM_PROTO_GetShiftState done [14:44:10]FM_GetShiftState done [14:44:10]req_shift_opened done [14:44:10]requested_item shift.open_date is exist - process it [14:44:10]req_shift_open_date [14:44:10]req_shift_open_date done [14:44:10]produce_requested_data done [14:44:10]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201544,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:44:10]process_action_free close_receipt [14:44:10]json_value_free [14:44:10]json_value_free done [14:44:10]process_json_proto returns [14:44:10]Send response to host [14:44:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201544,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:44:10]free response buf [14:44:10]execute_script done [14:44:10]execute_script returns [14:44:10]free content buf [14:44:10]Sock 8.Close socket [14:44:10]Sock 8.Thread stoped [14:44:12]OFD Sender: No OFD packet to send [14:44:17]OFD Sender: No OFD packet to send [14:44:22]OFD Sender: No OFD packet to send [14:44:27]OFD Sender: No OFD packet to send [14:44:32]OFD Sender: No OFD packet to send [14:44:37]OFD Sender: No OFD packet to send [14:44:41]accept exits with 9 [14:44:41]New connection [14:44:41]New thread 3066834276 created [14:44:41]Thread 3066690916 joined [14:44:41]Waiting for new connection... [14:44:41] Sock 9.Parse request [14:44:41]Sock 9.Check first char [14:44:41]Sock 9.First char is OK [14:44:41]request: POST /json_proto HTTP/1.0 [14:44:41]Method: POST [14:44:41]URL: /json_proto [14:44:41]Method is POST - this is cgi request [14:44:41]url: /json_proto [14:44:41]query_string will be loaded in cgi processing [14:44:41]execute_cgi json_proto POST (null) [14:44:41]execute_cgi path=json_proto method=POST [14:44:41]POST find Content-Length [14:44:41]Host: 172.17.63.195:8080 [14:44:41]Content-Length: 677 [14:44:41]Content-Type: application/json [14:44:41] [14:44:41]POST finish read [14:44:41]Found Content-Length = 677 [14:44:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.630, "sum" : 510.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 510.00, "total" : 510.00, "payments": [ { "type": 0, "sum" : 510.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:41]execute_script... [14:44:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.630, "sum" : 510.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 510.00, "total" : 510.00, "payments": [ { "type": 0, "sum" : 510.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:41]POST & json_proto [14:44:41]process_json_proto [14:44:41]json parsed OK: [14:44:41]protocol is kg_v1.0 [14:44:41]action value=close_receipt [14:44:41]process_action close_receipt [14:44:41]cmd_close_receipt [14:44:41]MH_GetDate [14:44:41]Write to MH i2c: F0 00 00 C7 23 D9 [14:44:41]Write i2c OK [14:44:41]MH_I2C_Read... [14:44:41]Read from MH i2c: F0 [14:44:41]MH_I2C_Read... [14:44:41]Read from MH i2c: F0 09 00 [14:44:41]MH_I2C_Read... [14:44:41]Read from MH i2c: F0 09 00 C7 23 00 5A 00 1D 67 68 46 19 67 EE [14:44:41]GetLastDocTimeStamp 1729953845 [14:44:41]current date 1729953882 [14:44:41]FM_GetShiftState [14:44:41]SAM_PROTO_GetShiftState [14:44:41]wFMCommunicate request_size=4 [14:44:41]MH_SAM_APDU [14:44:41]CAPDU: 80 13 01 00 [14:44:41]Write to MH i2c: E2 08 00 C8 23 80 13 01 00 00 00 00 00 68 [14:44:41]Write i2c OK [14:44:41]MH_I2C_Read... [14:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:41]Read from MH i2c: E2 [14:44:41]MH_I2C_Read... [14:44:41]Read from MH i2c: E2 0E 00 [14:44:41]MH_I2C_Read... [14:44:41]Read from MH i2c: E2 0E 00 C8 23 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 77 [14:44:41]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:44:41]wFMCommunicate OK [14:44:41]SAM_PROTO_GetShiftState done [14:44:41]FM_GetShiftState done [14:44:41]opened in 1729900879 [14:44:41]opened+sec_in_day 1729987279 [14:44:41]quantity*price = 51044 [14:44:41]sum+1 = 51046 [14:44:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 510.00 Внесено: 510.00 СДАЧА: 0.00 НСП 1% : 4.52 НДС 12% : 54.21 Наличными: 510.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 307 26.10.2024 14:44 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201545 ФПД: 199646405495690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144442&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201545&fm=199646405495690&tin=02508201610067®Number=0000000000091777&sum=51000 [14:44:42]StoreToDocumentArchive [14:44:42]shift 543 fd 201545 [14:44:42]save to /storage/0543/doc_00201545 [14:44:42]save last doc name /storage/0543/doc_00201545 to /storage/kkm_last_doc_name [14:44:42]save OK [14:44:42]Clear old archive folders... [14:44:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:44:42]tlvbuf is 01F9C4B0 [14:44:42]SAM_PROTO_ClearQueue [14:44:42]wFMCommunicate request_size=4 [14:44:42]MH_SAM_APDU [14:44:42]CAPDU: 80 09 00 00 [14:44:42]Write to MH i2c: E2 08 00 D5 23 80 09 00 00 00 00 00 00 6A [14:44:42]Write i2c OK [14:44:42]MH_I2C_Read... [14:44:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:44:42]OFD Sender: No OFD packet to send [14:44:42]Read from MH i2c: E2 [14:44:42]MH_I2C_Read... [14:44:42]Read from MH i2c: E2 03 00 [14:44:42]MH_I2C_Read... [14:44:42]Read from MH i2c: E2 03 00 D5 23 00 90 00 6C [14:44:42]RAPDU: 90 00 [14:44:42]wFMCommunicate OK [14:44:42]SAM_PROTO_ClearQueue done [14:44:42]KKMCreateOFDPacket [14:44:42]OFDProtocolAddRootSTLVToBuf [14:44:42]FM_MakeSignedData [14:44:42]FM_MakeSignedData [14:44:42]SAM_PROTO_SignData [14:44:42]wFMCommunicate request_size=4 [14:44:42]MH_SAM_APDU [14:44:42]CAPDU: 80 0D 01 02 [14:44:42]Write to MH i2c: E2 08 00 D6 23 80 0D 01 02 00 00 00 00 72 [14:44:42]Write i2c OK [14:44:42]MH_I2C_Read... [14:44:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:44:42]Read from MH i2c: E2 [14:44:42]MH_I2C_Read... [14:44:42]Read from MH i2c: E2 03 00 [14:44:42]MH_I2C_Read... [14:44:42]Read from MH i2c: E2 03 00 D6 23 00 90 00 6D [14:44:42]RAPDU: 90 00 [14:44:42]wFMCommunicate OK [14:44:42]wFMCommunicate request_size=255 [14:44:42]MH_SAM_APDU [14:44:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CE 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 65 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 5A 00 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 49 13 03 00 35 04 06 00 B5 [14:44:42]Write to MH i2c: E2 02 01 D7 23 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 32 FF 03 08 00 03 CE 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 65 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 5A 00 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 49 13 03 00 35 04 06 00 B5 00 00 20 [14:44:42]Write i2c OK [14:44:42]MH_I2C_Read... [14:44:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:42]Read from MH i2c: E2 [14:44:42]MH_I2C_Read... [14:44:42]Read from MH i2c: E2 03 00 [14:44:42]MH_I2C_Read... [14:44:42]Read from MH i2c: E2 03 00 D7 23 00 90 00 6E [14:44:42]RAPDU: 90 00 [14:44:42]wFMCommunicate OK [14:44:42]wFMCommunicate request_size=10 [14:44:42]MH_SAM_APDU [14:44:42]CAPDU: 80 0D 02 02 05 93 CD 14 8B 8A [14:44:42]Write to MH i2c: E2 0D 00 D8 23 80 0D 02 02 05 00 93 CD 14 8B 8A 00 00 08 [14:44:42]Write i2c OK [14:44:42]MH_I2C_Read... [14:44:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:42]Read from MH i2c: E2 [14:44:42]MH_I2C_Read... [14:44:42]Read from MH i2c: E2 03 00 [14:44:42]MH_I2C_Read... [14:44:42]Read from MH i2c: E2 03 00 D8 23 00 90 00 6F [14:44:42]RAPDU: 90 00 [14:44:42]wFMCommunicate OK [14:44:42]wFMCommunicate request_size=4 [14:44:42]MH_SAM_APDU [14:44:42]CAPDU: 80 0D 03 02 [14:44:42]Write to MH i2c: E2 08 00 D9 23 80 0D 03 02 00 00 00 00 77 [14:44:42]Write i2c OK [14:44:42]MH_I2C_Read... [14:44:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:42]Read from MH i2c: E2 [14:44:42]MH_I2C_Read... [14:44:42]Read from MH i2c: E2 0B 00 [14:44:42]MH_I2C_Read... [14:44:42]Read from MH i2c: E2 0B 00 D9 23 00 96 A9 43 02 36 4A D4 80 90 00 D0 [14:44:42]RAPDU: 96 A9 43 02 36 4A D4 80 90 00 [14:44:42]wFMCommunicate OK [14:44:42]SAM_PROTO_SignData done [14:44:42]FM_MakeSignedData done [14:44:42]CreateOFDProtocolMessage [14:44:42]wFMCommunicate request_size=4 [14:44:42]MH_SAM_APDU [14:44:42]CAPDU: 80 11 00 00 [14:44:42]Write to MH i2c: E2 08 00 DA 23 80 11 00 00 00 00 00 00 77 [14:44:42]Write i2c OK [14:44:42]MH_I2C_Read... [14:44:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:42]Read from MH i2c: E2 [14:44:42]MH_I2C_Read... [14:44:42]Read from MH i2c: E2 17 00 [14:44:42]MH_I2C_Read... [14:44:42]Read from MH i2c: E2 17 00 DA 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CC [14:44:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:44:42]wFMCommunicate OK [14:44:42]CreateOFDProtocolMessage done [14:44:42]OFDSenderStorePacket 201545 [14:44:42]StoreOFDPacket docnum=201545 [14:44:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 54 3E 07 01 1A 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 32 FF 03 08 00 03 CE 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 65 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 5A 00 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 49 13 03 00 35 04 06 00 B5 93 CD 14 8B 8A 96 A9 43 02 36 4A D4 80 [14:44:42]CheckFolder [14:44:42]dirname=/storage/ofd_packets [14:44:42]CheckFolder done [14:44:42]ProducePacketName [14:44:42]name=ofd_packets/00201545 [14:44:42]NVStorageSaveData ofd_packets/00201545 [14:44:42]File name is /storage/ofd_packets/00201545 [14:44:42]Write 301 bytes [14:44:42]NVStorageSaveData done [14:44:42]OFDSenderStorePacket done [14:44:42]KKMCreateOFDPacket done [14:44:42]NVStorageSaveData kkm_last_timestamp [14:44:42]File name is /storage/kkm_last_timestamp [14:44:42]Write 4 bytes [14:44:42]NVStorageSaveData done [14:44:42]ExternCall_PrintAddStr [14:44:42]wPrintStart [14:44:42]Write to MH i2c: 01 00 00 DB 23 FE [14:44:42]Write i2c OK [14:44:42]MH_I2C_Read... [14:44:42]Read from MH i2c: 01 [14:44:42]MH_I2C_Read... [14:44:42]Read from MH i2c: 01 07 00 [14:44:42]MH_I2C_Read... [14:44:42]Read from MH i2c: 01 07 00 DB 23 00 00 00 00 00 FF 0F 13 [14:44:42]RasterBufferAndPrint [14:44:42]line Счет N : (1)449298 [14:44:42]line ИНН: 02508201610067 [14:44:42]line Контрольно-Кассовый Чек [14:44:42]line ПРОДАЖА [14:44:42]line ТРК (МРК, ГНК) : 52 [14:44:42]line Товар: 2710124130 [14:44:42]line Аи-92-К-2 [14:44:42]line 7.630 * 66.90 [14:44:42]line = 510.45 [14:44:42]line НДС 12% НСП 1% [14:44:42]line > о реализуемом товаре [14:44:42]line ОКРУГЛЕНИЕ: -0.45 [14:44:42]line ИТОГО: 510.00 [14:44:42]line Внесено: 510.00 [14:44:42]line СДАЧА: 0.00 [14:44:42]line НСП 1% : 4.52 [14:44:42]line НДС 12% : 54.21 [14:44:42]line Наличными: 510.00 [14:44:42]line Безнал.: 0.00 [14:44:42]line Место: АЗС № 171 "Партнер Нефть" [14:44:42]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:44:42]line СНО: Общий режим [14:44:42]line Чек 307 26.10.2024 14:44 [14:44:42]line Смена: 543 ФФД: 1.0 [14:44:42]line ЗНМ: 0300000109 [14:44:42]line РНМ: 0000000000091777 [14:44:42]line Версия ККМ: 001 [14:44:42]line ФМ: 0000000000871756 [14:44:42]line ФД: 201545 [14:44:42]line ФПД: 199646405495690 [14:44:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144442&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201545&fm=199646405495690&tin=02508201610067®Number=0000000000091777&sum=51000 [14:44:43]OFD Sender: Processing packet 201545 [packets to send 112, broken 111] [14:44:43]ProducePacketName [14:44:43]name=ofd_packets/00201545 [14:44:43]OFD Sender: To server: pG, [14:44:43]CommunicateWithHost lk.salyk.kg:30040 [14:44:43]ConnectInit lk.salyk.kg [14:44:43]written 0, free lines is 4095 [14:44:43]Connected sock=8 [14:44:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 54 3E 07 01 1A 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 32 FF 03 08 00 03 CE 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 65 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 5A 00 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 49 13 03 00 35 04 06 00 B5 93 CD 14 8B 8A 96 A9 43 02 36 4A D4 80 [14:44:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 9B B0 47 00 BC FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 49 13 03 00 F4 03 04 00 03 AC 1C 67 B6 04 01 00 00 91 6C 65 6F AD 60 00 D0 [14:44:43]CommunicateWithHost err = 0 [14:44:43]CheckOFDResponse [14:44:43]1017 (14) - 77093643461234 [14:44:43]1041 (16) - 0000000000871756 [14:44:43]1040 (4) - 201545 [14:44:43]1012 (4) - 26.10.2024 08:44 [14:44:43]1206 (1) - 0 [14:44:43]OFD Sender: Remove packet 201545 [14:44:43]ProducePacketName [14:44:43]name=ofd_packets/00201545 [14:44:43]NVStorageDeleteData [14:44:43]Write to MH i2c: 01 00 00 06 24 2A [14:44:43]Write i2c OK [14:44:43]MH_I2C_Read... [14:44:43]Read from MH i2c: 01 [14:44:43]MH_I2C_Read... [14:44:43]Read from MH i2c: 01 07 00 [14:44:43]MH_I2C_Read... [14:44:43]Read from MH i2c: 01 07 00 06 24 00 00 00 00 00 A5 0C E2 [14:44:43]RasterBufferAndPrint [14:44:43]line [14:44:43]line [14:44:43]line [14:44:43]line [14:44:43]line [14:44:43]written 0, free lines is 3242 [14:44:43]MH_Cut [14:44:43]Write to MH i2c: D1 01 00 0D 24 01 03 [14:44:43]Write i2c OK [14:44:43]MH_I2C_Read... [14:44:43]Read from MH i2c: D1 [14:44:43]MH_I2C_Read... [14:44:43]Read from MH i2c: D1 01 00 [14:44:43]MH_I2C_Read... [14:44:43]Read from MH i2c: D1 01 00 0D 24 00 02 [14:44:43]Write to MH i2c: 01 00 00 0E 24 32 [14:44:43]Write i2c OK [14:44:43]MH_I2C_Read... [14:44:44]OFD Sender: No OFD packet to send [14:44:44]*** Cut start [14:44:44]*** Purtial cut [14:44:44]*** Stage 1: CUTSNS_PIN = 1 [14:44:44]Read from MH i2c: 01 [14:44:44]MH_I2C_Read... [14:44:44]*** Stop cut motor [14:44:44]*** Cut end [14:44:44]Read from MH i2c: 01 07 00 [14:44:44]MH_I2C_Read... [14:44:44]Read from MH i2c: 01 07 00 0E 24 00 00 00 00 00 FF 0F 47 [14:44:44]process_action close_receipt done [14:44:44]requested_data is exist [14:44:44]produce_requested_data [14:44:44]requested_item fm.sn is exist - process it [14:44:44]wFMCommunicate request_size=4 [14:44:44]MH_SAM_APDU [14:44:44]CAPDU: 80 11 00 00 [14:44:44]Write to MH i2c: E2 08 00 0F 24 80 11 00 00 00 00 00 00 AD [14:44:44]Write i2c OK [14:44:44]MH_I2C_Read... [14:44:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:44]Read from MH i2c: E2 [14:44:44]MH_I2C_Read... [14:44:44]Read from MH i2c: E2 17 00 [14:44:44]MH_I2C_Read... [14:44:44]Read from MH i2c: E2 17 00 0F 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 02 [14:44:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:44:44]wFMCommunicate OK [14:44:44]requested_item fd.num is exist - process it [14:44:44]SAM_PROTO_GetFieldsCounters [14:44:44]wFMCommunicate request_size=4 [14:44:44]MH_SAM_APDU [14:44:44]CAPDU: 80 13 00 00 [14:44:44]Write to MH i2c: E2 08 00 10 24 80 13 00 00 00 00 00 00 B0 [14:44:44]Write i2c OK [14:44:44]MH_I2C_Read... [14:44:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:44:45]Read from MH i2c: E2 [14:44:45]MH_I2C_Read... [14:44:45]Read from MH i2c: E2 62 00 [14:44:45]MH_I2C_Read... [14:44:45]Read from MH i2c: E2 62 00 10 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 49 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 F5 [14:44:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 49 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:44:45]wFMCommunicate OK [14:44:45]SAM_PROTO_GetFieldsCounters done [14:44:45]requested_item shift.num is exist - process it [14:44:45]requested_item shift.opened is exist - process it [14:44:45]req_shift_opened [14:44:45]FM_GetShiftState [14:44:45]SAM_PROTO_GetShiftState [14:44:45]wFMCommunicate request_size=4 [14:44:45]MH_SAM_APDU [14:44:45]CAPDU: 80 13 01 00 [14:44:45]Write to MH i2c: E2 08 00 11 24 80 13 01 00 00 00 00 00 B2 [14:44:45]Write i2c OK [14:44:45]MH_I2C_Read... [14:44:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:45]Read from MH i2c: E2 [14:44:45]MH_I2C_Read... [14:44:45]Read from MH i2c: E2 0E 00 [14:44:45]MH_I2C_Read... [14:44:45]Read from MH i2c: E2 0E 00 11 24 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C1 [14:44:45]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:44:45]wFMCommunicate OK [14:44:45]SAM_PROTO_GetShiftState done [14:44:45]FM_GetShiftState done [14:44:45]req_shift_opened done [14:44:45]requested_item shift.open_date is exist - process it [14:44:45]req_shift_open_date [14:44:45]req_shift_open_date done [14:44:45]produce_requested_data done [14:44:45]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201545,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:44:45]process_action_free close_receipt [14:44:45]json_value_free [14:44:45]json_value_free done [14:44:45]process_json_proto returns [14:44:45]Send response to host [14:44:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201545,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:44:45]free response buf [14:44:45]execute_script done [14:44:45]execute_script returns [14:44:45]free content buf [14:44:45]Sock 9.Close socket [14:44:45]Sock 9.Thread stoped [14:44:49]OFD Sender: No OFD packet to send [14:44:54]OFD Sender: No OFD packet to send [14:44:59]OFD Sender: No OFD packet to send [14:45:04]OFD Sender: No OFD packet to send [14:45:09]OFD Sender: No OFD packet to send [14:45:14]OFD Sender: No OFD packet to send [14:45:19]OFD Sender: No OFD packet to send [14:45:24]OFD Sender: No OFD packet to send [14:45:29]OFD Sender: No OFD packet to send [14:45:34]OFD Sender: No OFD packet to send [14:45:39]OFD Sender: No OFD packet to send [14:45:44]OFD Sender: No OFD packet to send [14:45:49]OFD Sender: No OFD packet to send [14:45:54]OFD Sender: No OFD packet to send [14:45:59]OFD Sender: No OFD packet to send [14:46:02]accept exits with 10 [14:46:02]New connection [14:46:02]New thread 3066690916 created [14:46:02]Thread 3066834276 joined [14:46:02]Waiting for new connection... [14:46:02] Sock 10.Parse request [14:46:02]Sock 10.Check first char [14:46:02]Sock 10.First char is OK [14:46:02]request: POST /json_proto HTTP/1.0 [14:46:02]Method: POST [14:46:02]URL: /json_proto [14:46:02]Method is POST - this is cgi request [14:46:02]url: /json_proto [14:46:02]query_string will be loaded in cgi processing [14:46:02]execute_cgi json_proto POST (null) [14:46:02]execute_cgi path=json_proto method=POST [14:46:02]POST find Content-Length [14:46:02]Host: 172.17.63.195:8080 [14:46:02]Content-Length: 674 [14:46:02]Content-Type: application/json [14:46:02] [14:46:02]POST finish read [14:46:02]Found Content-Length = 674 [14:46:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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" ] } } [14:46:02]execute_script... [14:46: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)449299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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" ] } } [14:46:02]POST & json_proto [14:46:02]process_json_proto [14:46:02]json parsed OK: [14:46:02]protocol is kg_v1.0 [14:46:02]action value=close_receipt [14:46:02]process_action close_receipt [14:46:02]cmd_close_receipt [14:46:02]MH_GetDate [14:46:02]Write to MH i2c: F0 00 00 12 24 25 [14:46:02]Write i2c OK [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: F0 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: F0 09 00 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: F0 09 00 12 24 00 AB 00 1D 67 68 46 19 67 8B [14:46:02]GetLastDocTimeStamp 1729953882 [14:46:02]current date 1729953963 [14:46:02]FM_GetShiftState [14:46:02]SAM_PROTO_GetShiftState [14:46:02]wFMCommunicate request_size=4 [14:46:02]MH_SAM_APDU [14:46:02]CAPDU: 80 13 01 00 [14:46:02]Write to MH i2c: E2 08 00 13 24 80 13 01 00 00 00 00 00 B4 [14:46:02]Write i2c OK [14:46:02]MH_I2C_Read... [14:46:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:02]Read from MH i2c: E2 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 0E 00 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 0E 00 13 24 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C3 [14:46:02]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:46:02]wFMCommunicate OK [14:46:02]SAM_PROTO_GetShiftState done [14:46:02]FM_GetShiftState done [14:46:02]opened in 1729900879 [14:46:02]opened+sec_in_day 1729987279 [14:46:02]quantity*price = 60045 [14:46:02]sum+1 = 60047 [14:46:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 308 26.10.2024 14:46 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201546 ФПД: 27433810901103 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144603&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201546&fm=27433810901103&tin=02508201610067®Number=0000000000091777&sum=60000 [14:46:03]StoreToDocumentArchive [14:46:03]shift 543 fd 201546 [14:46:03]save to /storage/0543/doc_00201546 [14:46:03]save last doc name /storage/0543/doc_00201546 to /storage/kkm_last_doc_name [14:46:03]save OK [14:46:03]Clear old archive folders... [14:46:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:46:03]tlvbuf is 01F42A40 [14:46:03]SAM_PROTO_ClearQueue [14:46:03]wFMCommunicate request_size=4 [14:46:03]MH_SAM_APDU [14:46:03]CAPDU: 80 09 00 00 [14:46:03]Write to MH i2c: E2 08 00 20 24 80 09 00 00 00 00 00 00 B6 [14:46:03]Write i2c OK [14:46:03]MH_I2C_Read... [14:46:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:03]Read from MH i2c: E2 [14:46:03]MH_I2C_Read... [14:46:03]Read from MH i2c: E2 03 00 [14:46:03]MH_I2C_Read... [14:46:03]Read from MH i2c: E2 03 00 20 24 00 90 00 B8 [14:46:03]RAPDU: 90 00 [14:46:03]wFMCommunicate OK [14:46:03]SAM_PROTO_ClearQueue done [14:46:03]KKMCreateOFDPacket [14:46:03]OFDProtocolAddRootSTLVToBuf [14:46:03]FM_MakeSignedData [14:46:03]FM_MakeSignedData [14:46:03]SAM_PROTO_SignData [14:46:03]wFMCommunicate request_size=4 [14:46:03]MH_SAM_APDU [14:46:03]CAPDU: 80 0D 01 02 [14:46:03]Write to MH i2c: E2 08 00 21 24 80 0D 01 02 00 00 00 00 BE [14:46:03]Write i2c OK [14:46:03]MH_I2C_Read... [14:46:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:03]Read from MH i2c: E2 [14:46:03]MH_I2C_Read... [14:46:03]Read from MH i2c: E2 03 00 [14:46:03]MH_I2C_Read... [14:46:03]Read from MH i2c: E2 03 00 21 24 00 90 00 B9 [14:46:03]RAPDU: 90 00 [14:46:03]wFMCommunicate OK [14:46:03]wFMCommunicate request_size=255 [14:46:03]MH_SAM_APDU [14:46:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 34 01 00 00 F4 03 04 00 AB 00 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4A 13 03 00 35 04 06 00 18 F3 6E 8D [14:46:03]Write to MH i2c: E2 02 01 22 24 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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 34 01 00 00 F4 03 04 00 AB 00 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4A 13 03 00 35 04 06 00 18 F3 6E 8D 00 00 F4 [14:46:03]Write i2c OK [14:46:03]MH_I2C_Read... [14:46:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:04]Read from MH i2c: E2 [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: E2 03 00 [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: E2 03 00 22 24 00 90 00 BA [14:46:04]RAPDU: 90 00 [14:46:04]wFMCommunicate OK [14:46:04]wFMCommunicate request_size=7 [14:46:04]MH_SAM_APDU [14:46:04]CAPDU: 80 0D 02 02 02 B8 6F [14:46:04]Write to MH i2c: E2 0A 00 23 24 80 0D 02 02 02 00 B8 6F 00 00 EC [14:46:04]Write i2c OK [14:46:04]MH_I2C_Read... [14:46:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:04]Read from MH i2c: E2 [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: E2 03 00 [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: E2 03 00 23 24 00 90 00 BB [14:46:04]RAPDU: 90 00 [14:46:04]wFMCommunicate OK [14:46:04]wFMCommunicate request_size=4 [14:46:04]MH_SAM_APDU [14:46:04]CAPDU: 80 0D 03 02 [14:46:04]Write to MH i2c: E2 08 00 24 24 80 0D 03 02 00 00 00 00 C3 [14:46:04]Write i2c OK [14:46:04]MH_I2C_Read... [14:46:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:04]Read from MH i2c: E2 [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: E2 0B 00 [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: E2 0B 00 24 24 00 C6 51 41 9D 30 54 45 29 90 00 AB [14:46:04]RAPDU: C6 51 41 9D 30 54 45 29 90 00 [14:46:04]wFMCommunicate OK [14:46:04]SAM_PROTO_SignData done [14:46:04]FM_MakeSignedData done [14:46:04]CreateOFDProtocolMessage [14:46:04]wFMCommunicate request_size=4 [14:46:04]MH_SAM_APDU [14:46:04]CAPDU: 80 11 00 00 [14:46:04]Write to MH i2c: E2 08 00 25 24 80 11 00 00 00 00 00 00 C3 [14:46:04]Write i2c OK [14:46:04]MH_I2C_Read... [14:46:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:04]Read from MH i2c: E2 [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: E2 17 00 [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: E2 17 00 25 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 18 [14:46:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:46:04]wFMCommunicate OK [14:46:04]CreateOFDProtocolMessage done [14:46:04]OFDSenderStorePacket 201546 [14:46:04]StoreOFDPacket docnum=201546 [14:46:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 D1 B7 04 01 A0 8C 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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 34 01 00 00 F4 03 04 00 AB 00 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4A 13 03 00 35 04 06 00 18 F3 6E 8D B8 6F C6 51 41 9D 30 54 45 29 [14:46:04]CheckFolder [14:46:04]dirname=/storage/ofd_packets [14:46:04]CheckFolder done [14:46:04]ProducePacketName [14:46:04]name=ofd_packets/00201546 [14:46:04]NVStorageSaveData ofd_packets/00201546 [14:46:04]File name is /storage/ofd_packets/00201546 [14:46:04]Write 298 bytes [14:46:04]NVStorageSaveData done [14:46:04]OFDSenderStorePacket done [14:46:04]KKMCreateOFDPacket done [14:46:04]NVStorageSaveData kkm_last_timestamp [14:46:04]File name is /storage/kkm_last_timestamp [14:46:04]Write 4 bytes [14:46:04]NVStorageSaveData done [14:46:04]ExternCall_PrintAddStr [14:46:04]wPrintStart [14:46:04]Write to MH i2c: 01 00 00 26 24 4A [14:46:04]Write i2c OK [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: 01 [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: 01 07 00 [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: 01 07 00 26 24 00 00 00 00 00 FF 0F 5F [14:46:04]RasterBufferAndPrint [14:46:04]line Счет N : (1)449299 [14:46:04]line ИНН: 02508201610067 [14:46:04]line Контрольно-Кассовый Чек [14:46:04]line ПРОДАЖА [14:46:04]line ТРК (МРК, ГНК) : 11 [14:46:04]line Товар: 2710194210 [14:46:04]line ДТ-К-2 [14:46:04]line 7.880 * 76.20 [14:46:04]line = 600.46 [14:46:04]line НДС 12% НСП 1% [14:46:04]line > о реализуемом товаре [14:46:04]line ОКРУГЛЕНИЕ: -0.46 [14:46:04]line ИТОГО: 600.00 [14:46:04]line Внесено: 600.00 [14:46:04]line СДАЧА: 0.00 [14:46:04]line НСП 1% : 5.31 [14:46:04]line НДС 12% : 63.77 [14:46:04]line Наличными: 600.00 [14:46:04]line Безнал.: 0.00 [14:46:04]line Место: АЗС № 171 "Партнер Нефть" [14:46:04]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:46:04]line СНО: Общий режим [14:46:04]line Чек 308 26.10.2024 14:46 [14:46:04]line Смена: 543 ФФД: 1.0 [14:46:04]line ЗНМ: 0300000109 [14:46:04]line РНМ: 0000000000091777 [14:46:04]line Версия ККМ: 001 [14:46:04]line ФМ: 0000000000871756 [14:46:04]line ФД: 201546 [14:46:04]line ФПД: 27433810901103 [14:46:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144603&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201546&fm=27433810901103&tin=02508201610067®Number=0000000000091777&sum=60000 [14:46:04]OFD Sender: Processing packet 201546 [packets to send 112, broken 111] [14:46:04]ProducePacketName [14:46:04]name=ofd_packets/00201546 [14:46:04]OFD Sender: To server: pG, [14:46:04]CommunicateWithHost lk.salyk.kg:30040 [14:46:04]ConnectInit lk.salyk.kg [14:46:04]written 0, free lines is 4095 [14:46:04]Connected sock=9 [14:46:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 D1 B7 04 01 A0 8C 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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 34 01 00 00 F4 03 04 00 AB 00 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4A 13 03 00 35 04 06 00 18 F3 6E 8D B8 6F C6 51 41 9D 30 54 45 29 [14:46:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 16 FD 47 00 BF 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4A 13 03 00 F4 03 04 00 54 AC 1C 67 B6 04 01 00 00 33 AC 2F 33 FC 55 D5 55 [14:46:04]CommunicateWithHost err = 0 [14:46:04]CheckOFDResponse [14:46:04]1017 (14) - 77093643461234 [14:46:04]1041 (16) - 0000000000871756 [14:46:04]1040 (4) - 201546 [14:46:04]1012 (4) - 26.10.2024 08:46 [14:46:04]1206 (1) - 0 [14:46:04]OFD Sender: Remove packet 201546 [14:46:04]ProducePacketName [14:46:04]name=ofd_packets/00201546 [14:46:04]NVStorageDeleteData [14:46:04]Write to MH i2c: 01 00 00 51 24 75 [14:46:04]Write i2c OK [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: 01 [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: 01 07 00 [14:46:04]MH_I2C_Read... [14:46:04]Read from MH i2c: 01 07 00 51 24 00 00 00 00 00 9B 0C 23 [14:46:05]RasterBufferAndPrint [14:46:05]line [14:46:05]line [14:46:05]line [14:46:05]line [14:46:05]line [14:46:05]written 0, free lines is 3232 [14:46:05]MH_Cut [14:46:05]Write to MH i2c: D1 01 00 58 24 01 4E [14:46:05]Write i2c OK [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: D1 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: D1 01 00 [14:46:05]MH_I2C_Read... [14:46:05]Read from MH i2c: D1 01 00 58 24 00 4D [14:46:05]Write to MH i2c: 01 00 00 59 24 7D [14:46:05]Write i2c OK [14:46:05]MH_I2C_Read... [14:46:05]OFD Sender: No OFD packet to send [14:46:05]*** Cut start [14:46:05]*** Purtial cut [14:46:05]*** CUTSNS_PIN = 0 [14:46:06]*** Stage 1: CUTSNS_PIN = 1 [14:46:07]Read from MH i2c: 01 [14:46:07]MH_I2C_Read... [14:46:07]*** Stop cut motor [14:46:07]*** Cut end [14:46:07]Read from MH i2c: 01 07 00 [14:46:07]MH_I2C_Read... [14:46:07]Read from MH i2c: 01 07 00 59 24 00 00 00 00 00 FF 0F 92 [14:46:07]process_action close_receipt done [14:46:07]requested_data is exist [14:46:07]produce_requested_data [14:46:07]requested_item fm.sn is exist - process it [14:46:07]wFMCommunicate request_size=4 [14:46:07]MH_SAM_APDU [14:46:07]CAPDU: 80 11 00 00 [14:46:07]Write to MH i2c: E2 08 00 5A 24 80 11 00 00 00 00 00 00 F8 [14:46:07]Write i2c OK [14:46:07]MH_I2C_Read... [14:46:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:07]Read from MH i2c: E2 [14:46:07]MH_I2C_Read... [14:46:07]Read from MH i2c: E2 17 00 [14:46:07]MH_I2C_Read... [14:46:07]Read from MH i2c: E2 17 00 5A 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4D [14:46:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:46:07]wFMCommunicate OK [14:46:07]requested_item fd.num is exist - process it [14:46:07]SAM_PROTO_GetFieldsCounters [14:46:07]wFMCommunicate request_size=4 [14:46:07]MH_SAM_APDU [14:46:07]CAPDU: 80 13 00 00 [14:46:07]Write to MH i2c: E2 08 00 5B 24 80 13 00 00 00 00 00 00 FB [14:46:07]Write i2c OK [14:46:07]MH_I2C_Read... [14:46:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:08]Read from MH i2c: E2 [14:46:08]MH_I2C_Read... [14:46:08]Read from MH i2c: E2 62 00 [14:46:08]MH_I2C_Read... [14:46:08]Read from MH i2c: E2 62 00 5B 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4A 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 44 [14:46:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4A 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:46:08]wFMCommunicate OK [14:46:08]SAM_PROTO_GetFieldsCounters done [14:46:08]requested_item shift.num is exist - process it [14:46:08]requested_item shift.opened is exist - process it [14:46:08]req_shift_opened [14:46:08]FM_GetShiftState [14:46:08]SAM_PROTO_GetShiftState [14:46:08]wFMCommunicate request_size=4 [14:46:08]MH_SAM_APDU [14:46:08]CAPDU: 80 13 01 00 [14:46:08]Write to MH i2c: E2 08 00 5C 24 80 13 01 00 00 00 00 00 FD [14:46:08]Write i2c OK [14:46:08]MH_I2C_Read... [14:46:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:08]Read from MH i2c: E2 [14:46:08]MH_I2C_Read... [14:46:08]Read from MH i2c: E2 0E 00 [14:46:08]MH_I2C_Read... [14:46:08]Read from MH i2c: E2 0E 00 5C 24 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 0C [14:46:08]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:46:08]wFMCommunicate OK [14:46:08]SAM_PROTO_GetShiftState done [14:46:08]FM_GetShiftState done [14:46:08]req_shift_opened done [14:46:08]requested_item shift.open_date is exist - process it [14:46:08]req_shift_open_date [14:46:08]req_shift_open_date done [14:46:08]produce_requested_data done [14:46:08]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201546,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:46:08]process_action_free close_receipt [14:46:08]json_value_free [14:46:08]json_value_free done [14:46:08]process_json_proto returns [14:46:08]Send response to host [14:46:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201546,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:46:08]free response buf [14:46:08]execute_script done [14:46:08]execute_script returns [14:46:08]free content buf [14:46:08]Sock 10.Close socket [14:46:08]Sock 10.Thread stoped [14:46:10]OFD Sender: No OFD packet to send [14:46:15]OFD Sender: No OFD packet to send [14:46:20]OFD Sender: No OFD packet to send [14:46:25]OFD Sender: No OFD packet to send [14:46:30]OFD Sender: No OFD packet to send [14:46:35]OFD Sender: No OFD packet to send [14:46:40]OFD Sender: No OFD packet to send [14:46:45]OFD Sender: No OFD packet to send [14:46:50]OFD Sender: No OFD packet to send [14:46:55]OFD Sender: No OFD packet to send [14:47:00]OFD Sender: No OFD packet to send [14:47:00]accept exits with 8 [14:47:00]New connection [14:47:00]New thread 3066834276 created [14:47:00]Thread 3066690916 joined [14:47:00]Waiting for new connection... [14:47:00] Sock 8.Parse request [14:47:00]Sock 8.Check first char [14:47:00]Sock 8.First char is OK [14:47:00]request: POST /json_proto HTTP/1.0 [14:47:00]Method: POST [14:47:00]URL: /json_proto [14:47:00]Method is POST - this is cgi request [14:47:00]url: /json_proto [14:47:00]query_string will be loaded in cgi processing [14:47:00]execute_cgi json_proto POST (null) [14:47:00]execute_cgi path=json_proto method=POST [14:47:00]POST find Content-Length [14:47:00]Host: 172.17.63.195:8080 [14:47:00]Content-Length: 678 [14:47:00]Content-Type: application/json [14:47:00] [14:47:00]POST finish read [14:47:00]Found Content-Length = 678 [14:47:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [14:47:00]execute_script... [14:47: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)449300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [14:47:00]POST & json_proto [14:47:00]process_json_proto [14:47:00]json parsed OK: [14:47:00]protocol is kg_v1.0 [14:47:00]action value=close_receipt [14:47:00]process_action close_receipt [14:47:00]cmd_close_receipt [14:47:00]MH_GetDate [14:47:00]Write to MH i2c: F0 00 00 5D 24 70 [14:47:00]Write i2c OK [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: F0 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: F0 09 00 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: F0 09 00 5D 24 00 E5 00 1D 67 68 46 19 67 10 [14:47:00]GetLastDocTimeStamp 1729953963 [14:47:00]current date 1729954021 [14:47:00]FM_GetShiftState [14:47:00]SAM_PROTO_GetShiftState [14:47:00]wFMCommunicate request_size=4 [14:47:00]MH_SAM_APDU [14:47:00]CAPDU: 80 13 01 00 [14:47:00]Write to MH i2c: E2 08 00 5E 24 80 13 01 00 00 00 00 00 FF [14:47:00]Write i2c OK [14:47:00]MH_I2C_Read... [14:47:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:00]Read from MH i2c: E2 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: E2 0E 00 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: E2 0E 00 5E 24 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 0E [14:47:00]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:47:00]wFMCommunicate OK [14:47:00]SAM_PROTO_GetShiftState done [14:47:00]FM_GetShiftState done [14:47:00]opened in 1729900879 [14:47:00]opened+sec_in_day 1729987279 [14:47:00]quantity*price = 70044 [14:47:00]sum+1 = 70045 [14:47:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 309 26.10.2024 14:47 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201547 ФПД: 185192167082341 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144701&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201547&fm=185192167082341&tin=02508201610067®Number=0000000000091777&sum=70000 [14:47:01]StoreToDocumentArchive [14:47:01]shift 543 fd 201547 [14:47:01]save to /storage/0543/doc_00201547 [14:47:01]save last doc name /storage/0543/doc_00201547 to /storage/kkm_last_doc_name [14:47:01]save OK [14:47:01]Clear old archive folders... [14:47:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:47:01]tlvbuf is B6F3B460 [14:47:01]SAM_PROTO_ClearQueue [14:47:01]wFMCommunicate request_size=4 [14:47:01]MH_SAM_APDU [14:47:01]CAPDU: 80 09 00 00 [14:47:01]Write to MH i2c: E2 08 00 6B 24 80 09 00 00 00 00 00 00 01 [14:47:01]Write i2c OK [14:47:01]MH_I2C_Read... [14:47:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:01]Read from MH i2c: E2 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 03 00 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 03 00 6B 24 00 90 00 03 [14:47:01]RAPDU: 90 00 [14:47:01]wFMCommunicate OK [14:47:01]SAM_PROTO_ClearQueue done [14:47:01]KKMCreateOFDPacket [14:47:01]OFDProtocolAddRootSTLVToBuf [14:47:01]FM_MakeSignedData [14:47:01]FM_MakeSignedData [14:47:01]SAM_PROTO_SignData [14:47:01]wFMCommunicate request_size=4 [14:47:01]MH_SAM_APDU [14:47:01]CAPDU: 80 0D 01 02 [14:47:01]Write to MH i2c: E2 08 00 6C 24 80 0D 01 02 00 00 00 00 09 [14:47:01]Write i2c OK [14:47:01]MH_I2C_Read... [14:47:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:01]Read from MH i2c: E2 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 03 00 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 03 00 6C 24 00 90 00 04 [14:47:01]RAPDU: 90 00 [14:47:01]wFMCommunicate OK [14:47:01]wFMCommunicate request_size=255 [14:47:01]MH_SAM_APDU [14:47: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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 35 01 00 00 F4 03 04 00 E5 00 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4B 13 03 00 35 04 06 00 A8 [14:47:01]Write to MH i2c: E2 02 01 6D 24 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 35 01 00 00 F4 03 04 00 E5 00 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4B 13 03 00 35 04 06 00 A8 00 00 76 [14:47:01]Write i2c OK [14:47:01]MH_I2C_Read... [14:47:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:02]Read from MH i2c: E2 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 03 00 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 03 00 6D 24 00 90 00 05 [14:47:02]RAPDU: 90 00 [14:47:02]wFMCommunicate OK [14:47:02]wFMCommunicate request_size=10 [14:47:02]MH_SAM_APDU [14:47:02]CAPDU: 80 0D 02 02 05 6E 69 55 89 65 [14:47:02]Write to MH i2c: E2 0D 00 6E 24 80 0D 02 02 05 00 6E 69 55 89 65 00 00 30 [14:47:02]Write i2c OK [14:47:02]MH_I2C_Read... [14:47:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:02]Read from MH i2c: E2 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 03 00 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 03 00 6E 24 00 90 00 06 [14:47:02]RAPDU: 90 00 [14:47:02]wFMCommunicate OK [14:47:02]wFMCommunicate request_size=4 [14:47:02]MH_SAM_APDU [14:47:02]CAPDU: 80 0D 03 02 [14:47:02]Write to MH i2c: E2 08 00 6F 24 80 0D 03 02 00 00 00 00 0E [14:47:02]Write i2c OK [14:47:02]MH_I2C_Read... [14:47:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:02]Read from MH i2c: E2 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 0B 00 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 0B 00 6F 24 00 F4 A1 C2 E1 A2 D7 0F 2A 90 00 F9 [14:47:02]RAPDU: F4 A1 C2 E1 A2 D7 0F 2A 90 00 [14:47:02]wFMCommunicate OK [14:47:02]SAM_PROTO_SignData done [14:47:02]FM_MakeSignedData done [14:47:02]CreateOFDProtocolMessage [14:47:02]wFMCommunicate request_size=4 [14:47:02]MH_SAM_APDU [14:47:02]CAPDU: 80 11 00 00 [14:47:02]Write to MH i2c: E2 08 00 70 24 80 11 00 00 00 00 00 00 0E [14:47:02]Write i2c OK [14:47:02]MH_I2C_Read... [14:47:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:02]Read from MH i2c: E2 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 17 00 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 17 00 70 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 63 [14:47:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:47:02]wFMCommunicate OK [14:47:02]CreateOFDProtocolMessage done [14:47:02]OFDSenderStorePacket 201547 [14:47:02]StoreOFDPacket docnum=201547 [14:47:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 4C DA 07 01 D4 AF 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 35 01 00 00 F4 03 04 00 E5 00 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4B 13 03 00 35 04 06 00 A8 6E 69 55 89 65 F4 A1 C2 E1 A2 D7 0F 2A [14:47:02]CheckFolder [14:47:02]dirname=/storage/ofd_packets [14:47:02]CheckFolder done [14:47:02]ProducePacketName [14:47:02]name=ofd_packets/00201547 [14:47:02]NVStorageSaveData ofd_packets/00201547 [14:47:02]File name is /storage/ofd_packets/00201547 [14:47:02]Write 301 bytes [14:47:02]NVStorageSaveData done [14:47:02]OFDSenderStorePacket done [14:47:02]KKMCreateOFDPacket done [14:47:02]NVStorageSaveData kkm_last_timestamp [14:47:02]File name is /storage/kkm_last_timestamp [14:47:02]Write 4 bytes [14:47:02]NVStorageSaveData done [14:47:02]ExternCall_PrintAddStr [14:47:02]wPrintStart [14:47:02]Write to MH i2c: 01 00 00 71 24 95 [14:47:02]Write i2c OK [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: 01 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: 01 07 00 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: 01 07 00 71 24 00 00 00 00 00 FF 0F AA [14:47:02]RasterBufferAndPrint [14:47:02]line Счет N : (1)449300 [14:47:02]line ИНН: 02508201610067 [14:47:02]line Контрольно-Кассовый Чек [14:47:02]line ПРОДАЖА [14:47:02]line ТРК (МРК, ГНК) : 31 [14:47:02]line Товар: 2710124130 [14:47:02]line Аи-92-К-2 [14:47:02]line 10.470 * 66.90 [14:47:02]line = 700.44 [14:47:02]line НДС 12% НСП 1% [14:47:02]line > о реализуемом товаре [14:47:02]line ОКРУГЛЕНИЕ: -0.44 [14:47:02]line ИТОГО: 700.00 [14:47:02]line Внесено: 700.00 [14:47:02]line СДАЧА: 0.00 [14:47:02]line НСП 1% : 6.20 [14:47:02]line НДС 12% : 74.38 [14:47:02]line Наличными: 700.00 [14:47:02]line Безнал.: 0.00 [14:47:02]line Место: АЗС № 171 "Партнер Нефть" [14:47:02]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:47:02]line СНО: Общий режим [14:47:02]line Чек 309 26.10.2024 14:47 [14:47:02]line Смена: 543 ФФД: 1.0 [14:47:02]line ЗНМ: 0300000109 [14:47:02]line РНМ: 0000000000091777 [14:47:02]line Версия ККМ: 001 [14:47:02]line ФМ: 0000000000871756 [14:47:02]line ФД: 201547 [14:47:02]line ФПД: 185192167082341 [14:47:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144701&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201547&fm=185192167082341&tin=02508201610067®Number=0000000000091777&sum=70000 [14:47:02]OFD Sender: Processing packet 201547 [packets to send 112, broken 111] [14:47:02]ProducePacketName [14:47:02]name=ofd_packets/00201547 [14:47:02]OFD Sender: To server: pG, [14:47:02]CommunicateWithHost lk.salyk.kg:30040 [14:47:02]ConnectInit lk.salyk.kg [14:47:02]written 0, free lines is 4095 [14:47:02]Connected sock=10 [14:47:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 4C DA 07 01 D4 AF 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 35 01 00 00 F4 03 04 00 E5 00 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4B 13 03 00 35 04 06 00 A8 6E 69 55 89 65 F4 A1 C2 E1 A2 D7 0F 2A [14:47:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C2 7A 47 00 61 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4B 13 03 00 F4 03 04 00 8E AC 1C 67 B6 04 01 00 00 81 02 2E 09 36 1A C4 68 [14:47:03]CommunicateWithHost err = 0 [14:47:03]CheckOFDResponse [14:47:03]1017 (14) - 77093643461234 [14:47:03]1041 (16) - 0000000000871756 [14:47:03]1040 (4) - 201547 [14:47:03]1012 (4) - 26.10.2024 08:47 [14:47:03]1206 (1) - 0 [14:47:03]OFD Sender: Remove packet 201547 [14:47:03]ProducePacketName [14:47:03]name=ofd_packets/00201547 [14:47:03]NVStorageDeleteData [14:47:03]Write to MH i2c: 01 00 00 9C 24 C0 [14:47:03]Write i2c OK [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: 01 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: 01 07 00 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: 01 07 00 9C 24 00 00 00 00 00 9B 0C 6E [14:47:03]RasterBufferAndPrint [14:47:03]line [14:47:03]line [14:47:03]line [14:47:03]line [14:47:03]line [14:47:03]written 0, free lines is 3231 [14:47:03]MH_Cut [14:47:03]Write to MH i2c: D1 01 00 A3 24 01 99 [14:47:03]Write i2c OK [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: D1 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: D1 01 00 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: D1 01 00 A3 24 00 98 [14:47:03]Write to MH i2c: 01 00 00 A4 24 C8 [14:47:03]Write i2c OK [14:47:03]MH_I2C_Read... [14:47:03]OFD Sender: No OFD packet to send [14:47:04]*** Cut start [14:47:04]*** Purtial cut [14:47:04]*** Stage 1: CUTSNS_PIN = 1 [14:47:04]Read from MH i2c: 01 [14:47:04]MH_I2C_Read... [14:47:04]*** Stop cut motor [14:47:04]*** Cut end [14:47:04]Read from MH i2c: 01 07 00 [14:47:04]MH_I2C_Read... [14:47:04]Read from MH i2c: 01 07 00 A4 24 00 00 00 00 00 FF 0F DD [14:47:04]process_action close_receipt done [14:47:04]requested_data is exist [14:47:04]produce_requested_data [14:47:04]requested_item fm.sn is exist - process it [14:47:04]wFMCommunicate request_size=4 [14:47:04]MH_SAM_APDU [14:47:04]CAPDU: 80 11 00 00 [14:47:04]Write to MH i2c: E2 08 00 A5 24 80 11 00 00 00 00 00 00 43 [14:47:04]Write i2c OK [14:47:04]MH_I2C_Read... [14:47:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:04]Read from MH i2c: E2 [14:47:04]MH_I2C_Read... [14:47:04]Read from MH i2c: E2 17 00 [14:47:04]MH_I2C_Read... [14:47:04]Read from MH i2c: E2 17 00 A5 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 98 [14:47:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:47:04]wFMCommunicate OK [14:47:04]requested_item fd.num is exist - process it [14:47:04]SAM_PROTO_GetFieldsCounters [14:47:04]wFMCommunicate request_size=4 [14:47:04]MH_SAM_APDU [14:47:04]CAPDU: 80 13 00 00 [14:47:04]Write to MH i2c: E2 08 00 A6 24 80 13 00 00 00 00 00 00 46 [14:47:04]Write i2c OK [14:47:04]MH_I2C_Read... [14:47:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:04]Read from MH i2c: E2 [14:47:04]MH_I2C_Read... [14:47:04]Read from MH i2c: E2 62 00 [14:47:04]MH_I2C_Read... [14:47:04]Read from MH i2c: E2 62 00 A6 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4B 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 93 [14:47:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4B 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:47:04]wFMCommunicate OK [14:47:04]SAM_PROTO_GetFieldsCounters done [14:47:04]requested_item shift.num is exist - process it [14:47:04]requested_item shift.opened is exist - process it [14:47:04]req_shift_opened [14:47:04]FM_GetShiftState [14:47:04]SAM_PROTO_GetShiftState [14:47:04]wFMCommunicate request_size=4 [14:47:04]MH_SAM_APDU [14:47:04]CAPDU: 80 13 01 00 [14:47:04]Write to MH i2c: E2 08 00 A7 24 80 13 01 00 00 00 00 00 48 [14:47:04]Write i2c OK [14:47:04]MH_I2C_Read... [14:47:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:04]Read from MH i2c: E2 [14:47:04]MH_I2C_Read... [14:47:04]Read from MH i2c: E2 0E 00 [14:47:04]MH_I2C_Read... [14:47:04]Read from MH i2c: E2 0E 00 A7 24 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 57 [14:47:04]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:47:04]wFMCommunicate OK [14:47:04]SAM_PROTO_GetShiftState done [14:47:04]FM_GetShiftState done [14:47:04]req_shift_opened done [14:47:04]requested_item shift.open_date is exist - process it [14:47:04]req_shift_open_date [14:47:04]req_shift_open_date done [14:47:04]produce_requested_data done [14:47:04]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201547,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:47:04]process_action_free close_receipt [14:47:04]json_value_free [14:47:04]json_value_free done [14:47:04]process_json_proto returns [14:47:04]Send response to host [14:47:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201547,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:47:04]free response buf [14:47:04]execute_script done [14:47:04]execute_script returns [14:47:04]free content buf [14:47:04]Sock 8.Close socket [14:47:04]Sock 8.Thread stoped [14:47:08]accept exits with 9 [14:47:08]New connection [14:47:08]New thread 3066690916 created [14:47:08]Thread 3066834276 joined [14:47:08]Waiting for new connection... [14:47:08] Sock 9.Parse request [14:47:08]Sock 9.Check first char [14:47:08]Sock 9.First char is OK [14:47:08]request: POST /json_proto HTTP/1.0 [14:47:08]Method: POST [14:47:08]URL: /json_proto [14:47:08]Method is POST - this is cgi request [14:47:08]url: /json_proto [14:47:08]query_string will be loaded in cgi processing [14:47:08]execute_cgi json_proto POST (null) [14:47:08]execute_cgi path=json_proto method=POST [14:47:08]POST find Content-Length [14:47:08]Host: 172.17.63.195:8080 [14:47:08]Content-Length: 677 [14:47:08]Content-Type: application/json [14:47:08] [14:47:08]POST finish read [14:47:08]Found Content-Length = 677 [14:47:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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" ] } } [14:47:08]execute_script... [14:47:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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" ] } } [14:47:08]POST & json_proto [14:47:08]process_json_proto [14:47:08]json parsed OK: [14:47:08]protocol is kg_v1.0 [14:47:08]action value=close_receipt [14:47:08]process_action close_receipt [14:47:08]cmd_close_receipt [14:47:08]MH_GetDate [14:47:08]Write to MH i2c: F0 00 00 A8 24 BB [14:47:08]Write i2c OK [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: F0 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: F0 09 00 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: F0 09 00 A8 24 00 ED 00 1D 67 68 46 19 67 63 [14:47:08]GetLastDocTimeStamp 1729954021 [14:47:08]current date 1729954029 [14:47:08]FM_GetShiftState [14:47:08]SAM_PROTO_GetShiftState [14:47:08]wFMCommunicate request_size=4 [14:47:08]MH_SAM_APDU [14:47:08]CAPDU: 80 13 01 00 [14:47:08]Write to MH i2c: E2 08 00 A9 24 80 13 01 00 00 00 00 00 4A [14:47:08]Write i2c OK [14:47:08]MH_I2C_Read... [14:47:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:08]Read from MH i2c: E2 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 0E 00 [14:47:08]MH_I2C_Read... [14:47:08]Read from MH i2c: E2 0E 00 A9 24 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 59 [14:47:08]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:47:08]wFMCommunicate OK [14:47:08]SAM_PROTO_GetShiftState done [14:47:08]FM_GetShiftState done [14:47:08]opened in 1729900879 [14:47:08]opened+sec_in_day 1729987279 [14:47:08]quantity*price = 50010 [14:47:08]sum+1 = 50012 [14:47:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 310 26.10.2024 14:47 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201548 ФПД: 4978673875135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144709&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201548&fm=4978673875135&tin=02508201610067®Number=0000000000091777&sum=50000 [14:47:09]StoreToDocumentArchive [14:47:09]shift 543 fd 201548 [14:47:09]save to /storage/0543/doc_00201548 [14:47:09]save last doc name /storage/0543/doc_00201548 to /storage/kkm_last_doc_name [14:47:09]save OK [14:47:09]Clear old archive folders... [14:47:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:47:09]tlvbuf is 01EE68A0 [14:47:09]SAM_PROTO_ClearQueue [14:47:09]wFMCommunicate request_size=4 [14:47:09]MH_SAM_APDU [14:47:09]CAPDU: 80 09 00 00 [14:47:09]Write to MH i2c: E2 08 00 B6 24 80 09 00 00 00 00 00 00 4C [14:47:09]Write i2c OK [14:47:09]MH_I2C_Read... [14:47:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:09]Read from MH i2c: E2 [14:47:09]MH_I2C_Read... [14:47:09]Read from MH i2c: E2 03 00 [14:47:09]MH_I2C_Read... [14:47:09]Read from MH i2c: E2 03 00 B6 24 00 90 00 4E [14:47:09]RAPDU: 90 00 [14:47:09]wFMCommunicate OK [14:47:09]SAM_PROTO_ClearQueue done [14:47:09]KKMCreateOFDPacket [14:47:09]OFDProtocolAddRootSTLVToBuf [14:47:09]FM_MakeSignedData [14:47:09]FM_MakeSignedData [14:47:09]SAM_PROTO_SignData [14:47:09]wFMCommunicate request_size=4 [14:47:09]MH_SAM_APDU [14:47:09]CAPDU: 80 0D 01 02 [14:47:09]Write to MH i2c: E2 08 00 B7 24 80 0D 01 02 00 00 00 00 54 [14:47:09]Write i2c OK [14:47:09]MH_I2C_Read... [14:47:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:09]Read from MH i2c: E2 [14:47:09]MH_I2C_Read... [14:47:09]Read from MH i2c: E2 03 00 [14:47:09]MH_I2C_Read... [14:47:09]Read from MH i2c: E2 03 00 B7 24 00 90 00 4F [14:47:09]RAPDU: 90 00 [14:47:09]wFMCommunicate OK [14:47:09]wFMCommunicate request_size=255 [14:47:09]MH_SAM_APDU [14:47:09]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 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 36 01 00 00 F4 03 04 00 ED 00 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4C 13 03 00 35 04 06 00 04 [14:47:09]Write to MH i2c: E2 02 01 B8 24 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 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 36 01 00 00 F4 03 04 00 ED 00 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4C 13 03 00 35 04 06 00 04 00 00 F0 [14:47:09]Write i2c OK [14:47:09]MH_I2C_Read... [14:47:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:09]Read from MH i2c: E2 [14:47:09]MH_I2C_Read... [14:47:09]Read from MH i2c: E2 03 00 [14:47:09]MH_I2C_Read... [14:47:09]Read from MH i2c: E2 03 00 B8 24 00 90 00 50 [14:47:09]RAPDU: 90 00 [14:47:09]wFMCommunicate OK [14:47:09]wFMCommunicate request_size=10 [14:47:09]MH_SAM_APDU [14:47:09]CAPDU: 80 0D 02 02 05 87 30 16 78 BF [14:47:09]Write to MH i2c: E2 0D 00 B9 24 80 0D 02 02 05 00 87 30 16 78 BF 00 00 65 [14:47:09]Write i2c OK [14:47:09]MH_I2C_Read... [14:47:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:09]Read from MH i2c: E2 [14:47:09]MH_I2C_Read... [14:47:09]Read from MH i2c: E2 03 00 [14:47:09]MH_I2C_Read... [14:47:09]Read from MH i2c: E2 03 00 B9 24 00 90 00 51 [14:47:09]RAPDU: 90 00 [14:47:09]wFMCommunicate OK [14:47:09]wFMCommunicate request_size=4 [14:47:09]MH_SAM_APDU [14:47:09]CAPDU: 80 0D 03 02 [14:47:09]Write to MH i2c: E2 08 00 BA 24 80 0D 03 02 00 00 00 00 59 [14:47:09]Write i2c OK [14:47:09]MH_I2C_Read... [14:47:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:09]Read from MH i2c: E2 [14:47:09]MH_I2C_Read... [14:47:09]Read from MH i2c: E2 0B 00 [14:47:09]MH_I2C_Read... [14:47:09]Read from MH i2c: E2 0B 00 BA 24 00 65 BE F9 F9 F4 8E AA 82 90 00 1D [14:47:09]RAPDU: 65 BE F9 F9 F4 8E AA 82 90 00 [14:47:09]wFMCommunicate OK [14:47:09]SAM_PROTO_SignData done [14:47:09]FM_MakeSignedData done [14:47:09]CreateOFDProtocolMessage [14:47:09]wFMCommunicate request_size=4 [14:47:09]MH_SAM_APDU [14:47:09]CAPDU: 80 11 00 00 [14:47:09]Write to MH i2c: E2 08 00 BB 24 80 11 00 00 00 00 00 00 59 [14:47:09]Write i2c OK [14:47:09]MH_I2C_Read... [14:47:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:09]Read from MH i2c: E2 [14:47:09]MH_I2C_Read... [14:47:09]Read from MH i2c: E2 17 00 [14:47:09]MH_I2C_Read... [14:47:10]Read from MH i2c: E2 17 00 BB 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AE [14:47:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:47:10]wFMCommunicate OK [14:47:10]CreateOFDProtocolMessage done [14:47:10]OFDSenderStorePacket 201548 [14:47:10]StoreOFDPacket docnum=201548 [14:47:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D2 50 07 01 6F 1D 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 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 36 01 00 00 F4 03 04 00 ED 00 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4C 13 03 00 35 04 06 00 04 87 30 16 78 BF 65 BE F9 F9 F4 8E AA 82 [14:47:10]CheckFolder [14:47:10]dirname=/storage/ofd_packets [14:47:10]CheckFolder done [14:47:10]ProducePacketName [14:47:10]name=ofd_packets/00201548 [14:47:10]NVStorageSaveData ofd_packets/00201548 [14:47:10]File name is /storage/ofd_packets/00201548 [14:47:10]Write 301 bytes [14:47:10]NVStorageSaveData done [14:47:10]OFDSenderStorePacket done [14:47:10]KKMCreateOFDPacket done [14:47:10]NVStorageSaveData kkm_last_timestamp [14:47:10]File name is /storage/kkm_last_timestamp [14:47:10]Write 4 bytes [14:47:10]NVStorageSaveData done [14:47:10]ExternCall_PrintAddStr [14:47:10]wPrintStart [14:47:10]Write to MH i2c: 01 00 00 BC 24 E0 [14:47:10]Write i2c OK [14:47:10]MH_I2C_Read... [14:47:10]Read from MH i2c: 01 [14:47:10]MH_I2C_Read... [14:47:10]Read from MH i2c: 01 07 00 [14:47:10]MH_I2C_Read... [14:47:10]Read from MH i2c: 01 07 00 BC 24 00 00 00 00 00 FF 0F F5 [14:47:10]RasterBufferAndPrint [14:47:10]line Счет N : (1)449301 [14:47:10]line ИНН: 02508201610067 [14:47:10]line Контрольно-Кассовый Чек [14:47:10]line ПРОДАЖА [14:47:10]line ТРК (МРК, ГНК) : 51 [14:47:10]line Товар: 2710124500 [14:47:10]line Аи-95-К-3 [14:47:10]line 6.740 * 74.20 [14:47:10]line = 500.11 [14:47:10]line НДС 12% НСП 1% [14:47:10]line > о реализуемом товаре [14:47:10]line ОКРУГЛЕНИЕ: -0.11 [14:47:10]line ИТОГО: 500.00 [14:47:10]line Внесено: 500.00 [14:47:10]line СДАЧА: 0.00 [14:47:10]line НСП 1% : 4.43 [14:47:10]line НДС 12% : 53.11 [14:47:10]line Наличными: 500.00 [14:47:10]line Безнал.: 0.00 [14:47:10]line Место: АЗС № 171 "Партнер Нефть" [14:47:10]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:47:10]line СНО: Общий режим [14:47:10]line Чек 310 26.10.2024 14:47 [14:47:10]line Смена: 543 ФФД: 1.0 [14:47:10]line ЗНМ: 0300000109 [14:47:10]line РНМ: 0000000000091777 [14:47:10]line Версия ККМ: 001 [14:47:10]line ФМ: 0000000000871756 [14:47:10]line ФД: 201548 [14:47:10]line ФПД: 4978673875135 [14:47:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144709&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201548&fm=4978673875135&tin=02508201610067®Number=0000000000091777&sum=50000 [14:47:10]written 0, free lines is 4095 [14:47:10]OFD Sender: Processing packet 201548 [packets to send 112, broken 111] [14:47:10]ProducePacketName [14:47:10]name=ofd_packets/00201548 [14:47:10]OFD Sender: To server: pG, [14:47:10]CommunicateWithHost lk.salyk.kg:30040 [14:47:10]ConnectInit lk.salyk.kg [14:47:10]Connected sock=10 [14:47:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D2 50 07 01 6F 1D 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 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 36 01 00 00 F4 03 04 00 ED 00 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4C 13 03 00 35 04 06 00 04 87 30 16 78 BF 65 BE F9 F9 F4 8E AA 82 [14:47:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 4F 8A 47 00 03 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4C 13 03 00 F4 03 04 00 96 AC 1C 67 B6 04 01 00 00 B4 BC 5F 3C 95 ED 02 54 [14:47:10]CommunicateWithHost err = 0 [14:47:10]CheckOFDResponse [14:47:10]1017 (14) - 77093643461234 [14:47:10]1041 (16) - 0000000000871756 [14:47:10]1040 (4) - 201548 [14:47:10]1012 (4) - 26.10.2024 08:47 [14:47:10]1206 (1) - 0 [14:47:10]OFD Sender: Remove packet 201548 [14:47:10]ProducePacketName [14:47:10]name=ofd_packets/00201548 [14:47:10]NVStorageDeleteData [14:47:10]Write to MH i2c: 01 00 00 E7 24 0B [14:47:10]Write i2c OK [14:47:10]MH_I2C_Read... [14:47:10]Read from MH i2c: 01 [14:47:10]MH_I2C_Read... [14:47:10]Read from MH i2c: 01 07 00 [14:47:10]MH_I2C_Read... [14:47:10]Read from MH i2c: 01 07 00 E7 24 00 00 00 00 00 9B 0C B9 [14:47:10]RasterBufferAndPrint [14:47:10]line [14:47:10]line [14:47:10]line [14:47:10]line [14:47:10]line [14:47:10]written 0, free lines is 3234 [14:47:10]MH_Cut [14:47:10]Write to MH i2c: D1 01 00 EE 24 01 E4 [14:47:10]Write i2c OK [14:47:10]MH_I2C_Read... [14:47:10]Read from MH i2c: D1 [14:47:10]MH_I2C_Read... [14:47:10]Read from MH i2c: D1 01 00 [14:47:10]MH_I2C_Read... [14:47:10]Read from MH i2c: D1 01 00 EE 24 00 E3 [14:47:10]Write to MH i2c: 01 00 00 EF 24 13 [14:47:10]Write i2c OK [14:47:10]MH_I2C_Read... [14:47:10]OFD Sender: No OFD packet to send [14:47:11]*** Cut start [14:47:11]*** Purtial cut [14:47:11]*** CUTSNS_PIN = 0 [14:47:11]*** Stage 1: CUTSNS_PIN = 1 [14:47:13]Read from MH i2c: 01 [14:47:13]MH_I2C_Read... [14:47:13]*** Stop cut motor [14:47:13]*** Cut end [14:47:13]Read from MH i2c: 01 07 00 [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: 01 07 00 EF 24 00 00 00 00 00 FF 0F 28 [14:47:13]process_action close_receipt done [14:47:13]requested_data is exist [14:47:13]produce_requested_data [14:47:13]requested_item fm.sn is exist - process it [14:47:13]wFMCommunicate request_size=4 [14:47:13]MH_SAM_APDU [14:47:13]CAPDU: 80 11 00 00 [14:47:13]Write to MH i2c: E2 08 00 F0 24 80 11 00 00 00 00 00 00 8E [14:47:13]Write i2c OK [14:47:13]MH_I2C_Read... [14:47:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:13]Read from MH i2c: E2 [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: E2 17 00 [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: E2 17 00 F0 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E3 [14:47:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:47:13]wFMCommunicate OK [14:47:13]requested_item fd.num is exist - process it [14:47:13]SAM_PROTO_GetFieldsCounters [14:47:13]wFMCommunicate request_size=4 [14:47:13]MH_SAM_APDU [14:47:13]CAPDU: 80 13 00 00 [14:47:13]Write to MH i2c: E2 08 00 F1 24 80 13 00 00 00 00 00 00 91 [14:47:13]Write i2c OK [14:47:13]MH_I2C_Read... [14:47:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:13]Read from MH i2c: E2 [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: E2 62 00 [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: E2 62 00 F1 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4C 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 E2 [14:47:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4C 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:47:13]wFMCommunicate OK [14:47:13]SAM_PROTO_GetFieldsCounters done [14:47:13]requested_item shift.num is exist - process it [14:47:13]requested_item shift.opened is exist - process it [14:47:13]req_shift_opened [14:47:13]FM_GetShiftState [14:47:13]SAM_PROTO_GetShiftState [14:47:13]wFMCommunicate request_size=4 [14:47:13]MH_SAM_APDU [14:47:13]CAPDU: 80 13 01 00 [14:47:13]Write to MH i2c: E2 08 00 F2 24 80 13 01 00 00 00 00 00 93 [14:47:13]Write i2c OK [14:47:13]MH_I2C_Read... [14:47:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:13]Read from MH i2c: E2 [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: E2 0E 00 [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: E2 0E 00 F2 24 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 A2 [14:47:13]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:47:13]wFMCommunicate OK [14:47:13]SAM_PROTO_GetShiftState done [14:47:13]FM_GetShiftState done [14:47:13]req_shift_opened done [14:47:13]requested_item shift.open_date is exist - process it [14:47:13]req_shift_open_date [14:47:13]req_shift_open_date done [14:47:13]produce_requested_data done [14:47:13]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201548,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:47:13]process_action_free close_receipt [14:47:13]json_value_free [14:47:13]json_value_free done [14:47:13]process_json_proto returns [14:47:13]Send response to host [14:47:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201548,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:47:13]free response buf [14:47:13]execute_script done [14:47:13]execute_script returns [14:47:13]free content buf [14:47:13]Sock 9.Close socket [14:47:13]Sock 9.Thread stoped [14:47:15]OFD Sender: No OFD packet to send [14:47:20]OFD Sender: No OFD packet to send [14:47:25]OFD Sender: No OFD packet to send [14:47:30]OFD Sender: No OFD packet to send [14:47:35]OFD Sender: No OFD packet to send [14:47:40]OFD Sender: No OFD packet to send [14:47:44]accept exits with 8 [14:47:44]New connection [14:47:44]New thread 3066834276 created [14:47:44]Thread 3066690916 joined [14:47:44]Waiting for new connection... [14:47:44] Sock 8.Parse request [14:47:44]Sock 8.Check first char [14:47:44]Sock 8.First char is OK [14:47:44]request: POST /json_proto HTTP/1.0 [14:47:44]Method: POST [14:47:44]URL: /json_proto [14:47:44]Method is POST - this is cgi request [14:47:44]url: /json_proto [14:47:44]query_string will be loaded in cgi processing [14:47:44]execute_cgi json_proto POST (null) [14:47:44]execute_cgi path=json_proto method=POST [14:47:44]POST find Content-Length [14:47:44]Host: 172.17.63.195:8080 [14:47:44]Content-Length: 674 [14:47:44]Content-Type: application/json [14:47:44] [14:47:44]POST finish read [14:47:44]Found Content-Length = 674 [14:47:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "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" ] } } [14:47:44]execute_script... [14:47:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "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" ] } } [14:47:44]POST & json_proto [14:47:44]process_json_proto [14:47:44]json parsed OK: [14:47:44]protocol is kg_v1.0 [14:47:44]action value=close_receipt [14:47:44]process_action close_receipt [14:47:44]cmd_close_receipt [14:47:44]MH_GetDate [14:47:44]Write to MH i2c: F0 00 00 F3 24 06 [14:47:44]Write i2c OK [14:47:44]MH_I2C_Read... [14:47:44]Read from MH i2c: F0 [14:47:44]MH_I2C_Read... [14:47:44]Read from MH i2c: F0 09 00 [14:47:44]MH_I2C_Read... [14:47:44]Read from MH i2c: F0 09 00 F3 24 00 12 01 1D 67 68 46 19 67 D4 [14:47:44]GetLastDocTimeStamp 1729954029 [14:47:44]current date 1729954066 [14:47:44]FM_GetShiftState [14:47:44]SAM_PROTO_GetShiftState [14:47:44]wFMCommunicate request_size=4 [14:47:44]MH_SAM_APDU [14:47:44]CAPDU: 80 13 01 00 [14:47:44]Write to MH i2c: E2 08 00 F4 24 80 13 01 00 00 00 00 00 95 [14:47:44]Write i2c OK [14:47:44]MH_I2C_Read... [14:47:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:44]Read from MH i2c: E2 [14:47:44]MH_I2C_Read... [14:47:44]Read from MH i2c: E2 0E 00 [14:47:44]MH_I2C_Read... [14:47:44]Read from MH i2c: E2 0E 00 F4 24 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 A4 [14:47:44]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:47:44]wFMCommunicate OK [14:47:44]SAM_PROTO_GetShiftState done [14:47:44]FM_GetShiftState done [14:47:44]opened in 1729900879 [14:47:44]opened+sec_in_day 1729987279 [14:47:44]quantity*price = 30022 [14:47:44]sum+1 = 30024 [14:47:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 311 26.10.2024 14:47 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201549 ФПД: 48577106366302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144746&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201549&fm=48577106366302&tin=02508201610067®Number=0000000000091777&sum=30000 [14:47:45]StoreToDocumentArchive [14:47:45]shift 543 fd 201549 [14:47:45]save to /storage/0543/doc_00201549 [14:47:45]save last doc name /storage/0543/doc_00201549 to /storage/kkm_last_doc_name [14:47:45]save OK [14:47:45]Clear old archive folders... [14:47:45]OFD Sender: No OFD packet to send [14:47:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:47:45]tlvbuf is 01F9CB40 [14:47:45]SAM_PROTO_ClearQueue [14:47:45]wFMCommunicate request_size=4 [14:47:45]MH_SAM_APDU [14:47:45]CAPDU: 80 09 00 00 [14:47:45]Write to MH i2c: E2 08 00 01 25 80 09 00 00 00 00 00 00 98 [14:47:45]Write i2c OK [14:47:45]MH_I2C_Read... [14:47:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:45]Read from MH i2c: E2 [14:47:45]MH_I2C_Read... [14:47:45]Read from MH i2c: E2 03 00 [14:47:45]MH_I2C_Read... [14:47:45]Read from MH i2c: E2 03 00 01 25 00 90 00 9A [14:47:45]RAPDU: 90 00 [14:47:45]wFMCommunicate OK [14:47:45]SAM_PROTO_ClearQueue done [14:47:45]KKMCreateOFDPacket [14:47:45]OFDProtocolAddRootSTLVToBuf [14:47:45]FM_MakeSignedData [14:47:45]FM_MakeSignedData [14:47:45]SAM_PROTO_SignData [14:47:45]wFMCommunicate request_size=4 [14:47:45]MH_SAM_APDU [14:47:45]CAPDU: 80 0D 01 02 [14:47:45]Write to MH i2c: E2 08 00 02 25 80 0D 01 02 00 00 00 00 A0 [14:47:45]Write i2c OK [14:47:45]MH_I2C_Read... [14:47:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:46]Read from MH i2c: E2 [14:47:46]MH_I2C_Read... [14:47:46]Read from MH i2c: E2 03 00 [14:47:46]MH_I2C_Read... [14:47:46]Read from MH i2c: E2 03 00 02 25 00 90 00 9B [14:47:46]RAPDU: 90 00 [14:47:46]wFMCommunicate OK [14:47:46]wFMCommunicate request_size=255 [14:47:46]MH_SAM_APDU [14:47:46]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 32 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 37 01 00 00 F4 03 04 00 12 01 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4D 13 03 00 35 04 06 00 2C 2E 3D 2B [14:47:46]Write to MH i2c: E2 02 01 03 25 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 32 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 37 01 00 00 F4 03 04 00 12 01 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4D 13 03 00 35 04 06 00 2C 2E 3D 2B 00 00 FC [14:47:46]Write i2c OK [14:47:46]MH_I2C_Read... [14:47:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:46]Read from MH i2c: E2 [14:47:46]MH_I2C_Read... [14:47:46]Read from MH i2c: E2 03 00 [14:47:46]MH_I2C_Read... [14:47:46]Read from MH i2c: E2 03 00 03 25 00 90 00 9C [14:47:46]RAPDU: 90 00 [14:47:46]wFMCommunicate OK [14:47:46]wFMCommunicate request_size=7 [14:47:46]MH_SAM_APDU [14:47:46]CAPDU: 80 0D 02 02 02 4F 5E [14:47:46]Write to MH i2c: E2 0A 00 04 25 80 0D 02 02 02 00 4F 5E 00 00 54 [14:47:46]Write i2c OK [14:47:46]MH_I2C_Read... [14:47:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:46]Read from MH i2c: E2 [14:47:46]MH_I2C_Read... [14:47:46]Read from MH i2c: E2 03 00 [14:47:46]MH_I2C_Read... [14:47:46]Read from MH i2c: E2 03 00 04 25 00 90 00 9D [14:47:46]RAPDU: 90 00 [14:47:46]wFMCommunicate OK [14:47:46]wFMCommunicate request_size=4 [14:47:46]MH_SAM_APDU [14:47:46]CAPDU: 80 0D 03 02 [14:47:46]Write to MH i2c: E2 08 00 05 25 80 0D 03 02 00 00 00 00 A5 [14:47:46]Write i2c OK [14:47:46]MH_I2C_Read... [14:47:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:46]Read from MH i2c: E2 [14:47:46]MH_I2C_Read... [14:47:46]Read from MH i2c: E2 0B 00 [14:47:46]MH_I2C_Read... [14:47:46]Read from MH i2c: E2 0B 00 05 25 00 8F 36 1A 70 12 C6 8A EA 90 00 41 [14:47:46]RAPDU: 8F 36 1A 70 12 C6 8A EA 90 00 [14:47:46]wFMCommunicate OK [14:47:46]SAM_PROTO_SignData done [14:47:46]FM_MakeSignedData done [14:47:46]CreateOFDProtocolMessage [14:47:46]wFMCommunicate request_size=4 [14:47:46]MH_SAM_APDU [14:47:46]CAPDU: 80 11 00 00 [14:47:46]Write to MH i2c: E2 08 00 06 25 80 11 00 00 00 00 00 00 A5 [14:47:46]Write i2c OK [14:47:46]MH_I2C_Read... [14:47:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:46]Read from MH i2c: E2 [14:47:46]MH_I2C_Read... [14:47:46]Read from MH i2c: E2 17 00 [14:47:46]MH_I2C_Read... [14:47:46]Read from MH i2c: E2 17 00 06 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FA [14:47:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:47:46]wFMCommunicate OK [14:47:46]CreateOFDProtocolMessage done [14:47:46]OFDSenderStorePacket 201549 [14:47:46]StoreOFDPacket docnum=201549 [14:47:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 08 16 04 01 06 DA 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 32 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 37 01 00 00 F4 03 04 00 12 01 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4D 13 03 00 35 04 06 00 2C 2E 3D 2B 4F 5E 8F 36 1A 70 12 C6 8A EA [14:47:46]CheckFolder [14:47:46]dirname=/storage/ofd_packets [14:47:46]CheckFolder done [14:47:46]ProducePacketName [14:47:46]name=ofd_packets/00201549 [14:47:46]NVStorageSaveData ofd_packets/00201549 [14:47:46]File name is /storage/ofd_packets/00201549 [14:47:46]Write 298 bytes [14:47:46]NVStorageSaveData done [14:47:46]OFDSenderStorePacket done [14:47:46]KKMCreateOFDPacket done [14:47:46]NVStorageSaveData kkm_last_timestamp [14:47:46]File name is /storage/kkm_last_timestamp [14:47:46]Write 4 bytes [14:47:46]NVStorageSaveData done [14:47:46]ExternCall_PrintAddStr [14:47:46]wPrintStart [14:47:46]Write to MH i2c: 01 00 00 07 25 2C [14:47:46]Write i2c OK [14:47:46]MH_I2C_Read... [14:47:46]Read from MH i2c: 01 [14:47:46]MH_I2C_Read... [14:47:46]Read from MH i2c: 01 07 00 [14:47:46]MH_I2C_Read... [14:47:46]Read from MH i2c: 01 07 00 07 25 00 00 00 00 00 FF 0F 41 [14:47:46]RasterBufferAndPrint [14:47:46]line Счет N : (1)449302 [14:47:46]line ИНН: 02508201610067 [14:47:46]line Контрольно-Кассовый Чек [14:47:46]line ПРОДАЖА [14:47:46]line ТРК (МРК, ГНК) : 43 [14:47:46]line Товар: 2710194210 [14:47:46]line ДТ-К-2 [14:47:46]line 3.940 * 76.20 [14:47:46]line = 300.23 [14:47:46]line НДС 12% НСП 1% [14:47:46]line > о реализуемом товаре [14:47:46]line ОКРУГЛЕНИЕ: -0.23 [14:47:46]line ИТОГО: 300.00 [14:47:46]line Внесено: 300.00 [14:47:46]line СДАЧА: 0.00 [14:47:46]line НСП 1% : 2.66 [14:47:46]line НДС 12% : 31.88 [14:47:46]line Наличными: 300.00 [14:47:46]line Безнал.: 0.00 [14:47:46]line Место: АЗС № 171 "Партнер Нефть" [14:47:46]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:47:46]line СНО: Общий режим [14:47:46]line Чек 311 26.10.2024 14:47 [14:47:46]line Смена: 543 ФФД: 1.0 [14:47:46]line ЗНМ: 0300000109 [14:47:46]line РНМ: 0000000000091777 [14:47:46]line Версия ККМ: 001 [14:47:46]line ФМ: 0000000000871756 [14:47:46]line ФД: 201549 [14:47:46]line ФПД: 48577106366302 [14:47:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144746&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201549&fm=48577106366302&tin=02508201610067®Number=0000000000091777&sum=30000 [14:47:46]OFD Sender: Processing packet 201549 [packets to send 112, broken 111] [14:47:46]ProducePacketName [14:47:46]name=ofd_packets/00201549 [14:47:46]OFD Sender: To server: pG, [14:47:46]CommunicateWithHost lk.salyk.kg:30040 [14:47:46]ConnectInit lk.salyk.kg [14:47:46]written 0, free lines is 4095 [14:47:46]Connected sock=11 [14:47:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 08 16 04 01 06 DA 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 32 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 37 01 00 00 F4 03 04 00 12 01 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4D 13 03 00 35 04 06 00 2C 2E 3D 2B 4F 5E 8F 36 1A 70 12 C6 8A EA [14:47:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 1A F8 47 00 32 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4D 13 03 00 F4 03 04 00 BA AC 1C 67 B6 04 01 00 00 58 87 8E 0F E9 F8 8D 19 [14:47:47]CommunicateWithHost err = 0 [14:47:47]CheckOFDResponse [14:47:47]1017 (14) - 77093643461234 [14:47:47]1041 (16) - 0000000000871756 [14:47:47]1040 (4) - 201549 [14:47:47]1012 (4) - 26.10.2024 08:47 [14:47:47]1206 (1) - 0 [14:47:47]OFD Sender: Remove packet 201549 [14:47:47]ProducePacketName [14:47:47]name=ofd_packets/00201549 [14:47:47]NVStorageDeleteData [14:47:47]Write to MH i2c: 01 00 00 32 25 57 [14:47:47]Write i2c OK [14:47:47]MH_I2C_Read... [14:47:47]Read from MH i2c: 01 [14:47:47]MH_I2C_Read... [14:47:47]Read from MH i2c: 01 07 00 [14:47:47]MH_I2C_Read... [14:47:47]Read from MH i2c: 01 07 00 32 25 00 00 00 00 00 AA 0C 14 [14:47:47]RasterBufferAndPrint [14:47:47]line [14:47:47]line [14:47:47]line [14:47:47]line [14:47:47]line [14:47:47]written 0, free lines is 3247 [14:47:47]MH_Cut [14:47:47]Write to MH i2c: D1 01 00 39 25 01 30 [14:47:47]Write i2c OK [14:47:47]MH_I2C_Read... [14:47:47]Read from MH i2c: D1 [14:47:47]MH_I2C_Read... [14:47:47]Read from MH i2c: D1 01 00 [14:47:47]MH_I2C_Read... [14:47:47]Read from MH i2c: D1 01 00 39 25 00 2F [14:47:47]Write to MH i2c: 01 00 00 3A 25 5F [14:47:47]Write i2c OK [14:47:47]MH_I2C_Read... [14:47:47]OFD Sender: No OFD packet to send [14:47:48]*** Cut start [14:47:48]*** Purtial cut [14:47:48]*** Stage 1: CUTSNS_PIN = 1 [14:47:48]Read from MH i2c: 01 [14:47:48]MH_I2C_Read... [14:47:48]*** Stop cut motor [14:47:48]*** Cut end [14:47:48]Read from MH i2c: 01 07 00 [14:47:48]MH_I2C_Read... [14:47:48]Read from MH i2c: 01 07 00 3A 25 00 00 00 00 00 FF 0F 74 [14:47:48]process_action close_receipt done [14:47:48]requested_data is exist [14:47:48]produce_requested_data [14:47:48]requested_item fm.sn is exist - process it [14:47:48]wFMCommunicate request_size=4 [14:47:48]MH_SAM_APDU [14:47:48]CAPDU: 80 11 00 00 [14:47:48]Write to MH i2c: E2 08 00 3B 25 80 11 00 00 00 00 00 00 DA [14:47:48]Write i2c OK [14:47:48]MH_I2C_Read... [14:47:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:48]Read from MH i2c: E2 [14:47:48]MH_I2C_Read... [14:47:48]Read from MH i2c: E2 17 00 [14:47:48]MH_I2C_Read... [14:47:48]Read from MH i2c: E2 17 00 3B 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2F [14:47:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:47:48]wFMCommunicate OK [14:47:48]requested_item fd.num is exist - process it [14:47:48]SAM_PROTO_GetFieldsCounters [14:47:48]wFMCommunicate request_size=4 [14:47:48]MH_SAM_APDU [14:47:48]CAPDU: 80 13 00 00 [14:47:48]Write to MH i2c: E2 08 00 3C 25 80 13 00 00 00 00 00 00 DD [14:47:48]Write i2c OK [14:47:48]MH_I2C_Read... [14:47:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:48]Read from MH i2c: E2 [14:47:48]MH_I2C_Read... [14:47:48]Read from MH i2c: E2 62 00 [14:47:48]MH_I2C_Read... [14:47:48]Read from MH i2c: E2 62 00 3C 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4D 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 32 [14:47:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4D 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:47:48]wFMCommunicate OK [14:47:48]SAM_PROTO_GetFieldsCounters done [14:47:48]requested_item shift.num is exist - process it [14:47:48]requested_item shift.opened is exist - process it [14:47:48]req_shift_opened [14:47:48]FM_GetShiftState [14:47:48]SAM_PROTO_GetShiftState [14:47:48]wFMCommunicate request_size=4 [14:47:48]MH_SAM_APDU [14:47:48]CAPDU: 80 13 01 00 [14:47:48]Write to MH i2c: E2 08 00 3D 25 80 13 01 00 00 00 00 00 DF [14:47:48]Write i2c OK [14:47:48]MH_I2C_Read... [14:47:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:48]Read from MH i2c: E2 [14:47:48]MH_I2C_Read... [14:47:48]Read from MH i2c: E2 0E 00 [14:47:48]MH_I2C_Read... [14:47:48]Read from MH i2c: E2 0E 00 3D 25 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 EE [14:47:48]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:47:48]wFMCommunicate OK [14:47:48]SAM_PROTO_GetShiftState done [14:47:48]FM_GetShiftState done [14:47:48]req_shift_opened done [14:47:48]requested_item shift.open_date is exist - process it [14:47:48]req_shift_open_date [14:47:48]req_shift_open_date done [14:47:48]produce_requested_data done [14:47:48]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201549,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:47:48]process_action_free close_receipt [14:47:48]json_value_free [14:47:48]json_value_free done [14:47:48]process_json_proto returns [14:47:48]Send response to host [14:47:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201549,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:47:48]free response buf [14:47:48]execute_script done [14:47:48]execute_script returns [14:47:48]free content buf [14:47:48]Sock 8.Close socket [14:47:48]Sock 8.Thread stoped [14:47:52]OFD Sender: No OFD packet to send [14:47:57]OFD Sender: No OFD packet to send [14:48:02]OFD Sender: No OFD packet to send [14:48:07]OFD Sender: No OFD packet to send [14:48:12]OFD Sender: No OFD packet to send [14:48:17]OFD Sender: No OFD packet to send [14:48:22]OFD Sender: No OFD packet to send [14:48:27]OFD Sender: No OFD packet to send [14:48:32]OFD Sender: No OFD packet to send [14:48:37]OFD Sender: No OFD packet to send [14:48:42]accept exits with 9 [14:48:42]New connection [14:48:42]New thread 3066690916 created [14:48:42]Thread 3066834276 joined [14:48:42]Waiting for new connection... [14:48:42] Sock 9.Parse request [14:48:42]Sock 9.Check first char [14:48:42]Sock 9.First char is OK [14:48:42]request: POST /json_proto HTTP/1.0 [14:48:42]Method: POST [14:48:42]URL: /json_proto [14:48:42]Method is POST - this is cgi request [14:48:42]url: /json_proto [14:48:42]query_string will be loaded in cgi processing [14:48:42]execute_cgi json_proto POST (null) [14:48:42]execute_cgi path=json_proto method=POST [14:48:42]POST find Content-Length [14:48:42]Host: 172.17.63.195:8080 [14:48:42]Content-Length: 677 [14:48:42]Content-Type: application/json [14:48:42] [14:48:42]POST finish read [14:48:42]Found Content-Length = 677 [14:48:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [14:48:42]execute_script... [14:48:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [14:48:42]POST & json_proto [14:48:42]process_json_proto [14:48:42]json parsed OK: [14:48:42]protocol is kg_v1.0 [14:48:42]action value=close_receipt [14:48:42]process_action close_receipt [14:48:42]cmd_close_receipt [14:48:42]MH_GetDate [14:48:42]Write to MH i2c: F0 00 00 3E 25 52 [14:48:42]Write i2c OK [14:48:42]MH_I2C_Read... [14:48:42]Read from MH i2c: F0 [14:48:42]MH_I2C_Read... [14:48:42]Read from MH i2c: F0 09 00 [14:48:42]MH_I2C_Read... [14:48:42]Read from MH i2c: F0 09 00 3E 25 00 4B 01 1D 67 68 46 19 67 59 [14:48:42]GetLastDocTimeStamp 1729954066 [14:48:42]current date 1729954123 [14:48:42]FM_GetShiftState [14:48:42]SAM_PROTO_GetShiftState [14:48:42]wFMCommunicate request_size=4 [14:48:42]MH_SAM_APDU [14:48:42]CAPDU: 80 13 01 00 [14:48:42]Write to MH i2c: E2 08 00 3F 25 80 13 01 00 00 00 00 00 E1 [14:48:42]Write i2c OK [14:48:42]MH_I2C_Read... [14:48:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:42]Read from MH i2c: E2 [14:48:42]MH_I2C_Read... [14:48:42]Read from MH i2c: E2 0E 00 [14:48:42]MH_I2C_Read... [14:48:42]Read from MH i2c: E2 0E 00 3F 25 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F0 [14:48:42]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:48:42]wFMCommunicate OK [14:48:42]SAM_PROTO_GetShiftState done [14:48:42]FM_GetShiftState done [14:48:42]opened in 1729900879 [14:48:42]opened+sec_in_day 1729987279 [14:48:42]quantity*price = 50041 [14:48:42]sum+1 = 50042 [14:48:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 312 26.10.2024 14:48 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201550 ФПД: 170831599165921 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144843&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201550&fm=170831599165921&tin=02508201610067®Number=0000000000091777&sum=50000 [14:48:43]StoreToDocumentArchive [14:48:43]shift 543 fd 201550 [14:48:43]save to /storage/0543/doc_00201550 [14:48:43]save last doc name /storage/0543/doc_00201550 to /storage/kkm_last_doc_name [14:48:43]save OK [14:48:43]Clear old archive folders... [14:48:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:48:43]tlvbuf is 01F6D840 [14:48:43]SAM_PROTO_ClearQueue [14:48:43]wFMCommunicate request_size=4 [14:48:43]MH_SAM_APDU [14:48:43]CAPDU: 80 09 00 00 [14:48:43]Write to MH i2c: E2 08 00 4C 25 80 09 00 00 00 00 00 00 E3 [14:48:43]Write i2c OK [14:48:43]MH_I2C_Read... [14:48:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:48:43]Read from MH i2c: E2 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E2 03 00 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E2 03 00 4C 25 00 90 00 E5 [14:48:43]RAPDU: 90 00 [14:48:43]wFMCommunicate OK [14:48:43]SAM_PROTO_ClearQueue done [14:48:43]KKMCreateOFDPacket [14:48:43]OFDProtocolAddRootSTLVToBuf [14:48:43]FM_MakeSignedData [14:48:43]FM_MakeSignedData [14:48:43]SAM_PROTO_SignData [14:48:43]wFMCommunicate request_size=4 [14:48:43]MH_SAM_APDU [14:48:43]CAPDU: 80 0D 01 02 [14:48:43]Write to MH i2c: E2 08 00 4D 25 80 0D 01 02 00 00 00 00 EB [14:48:43]Write i2c OK [14:48:43]MH_I2C_Read... [14:48:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:48:43]Read from MH i2c: E2 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E2 03 00 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E2 03 00 4D 25 00 90 00 E6 [14:48:43]RAPDU: 90 00 [14:48:43]wFMCommunicate OK [14:48:43]wFMCommunicate request_size=255 [14:48:43]MH_SAM_APDU [14:48:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 38 01 00 00 F4 03 04 00 4B 01 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4E 13 03 00 35 04 06 00 9B [14:48:43]Write to MH i2c: E2 02 01 4E 25 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 32 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 38 01 00 00 F4 03 04 00 4B 01 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4E 13 03 00 35 04 06 00 9B 00 00 A8 [14:48:43]Write i2c OK [14:48:43]MH_I2C_Read... [14:48:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:43]Read from MH i2c: E2 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E2 03 00 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E2 03 00 4E 25 00 90 00 E7 [14:48:43]RAPDU: 90 00 [14:48:43]wFMCommunicate OK [14:48:43]wFMCommunicate request_size=10 [14:48:43]MH_SAM_APDU [14:48:43]CAPDU: 80 0D 02 02 05 5E D4 C8 E1 E1 [14:48:43]Write to MH i2c: E2 0D 00 4F 25 80 0D 02 02 05 00 5E D4 C8 E1 E1 00 00 B4 [14:48:43]Write i2c OK [14:48:43]MH_I2C_Read... [14:48:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:43]Read from MH i2c: E2 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E2 03 00 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E2 03 00 4F 25 00 90 00 E8 [14:48:43]RAPDU: 90 00 [14:48:43]wFMCommunicate OK [14:48:43]wFMCommunicate request_size=4 [14:48:43]MH_SAM_APDU [14:48:43]CAPDU: 80 0D 03 02 [14:48:43]Write to MH i2c: E2 08 00 50 25 80 0D 03 02 00 00 00 00 F0 [14:48:43]Write i2c OK [14:48:43]MH_I2C_Read... [14:48:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:48:43]Read from MH i2c: E2 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E2 0B 00 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E2 0B 00 50 25 00 14 31 B6 D2 04 B0 CD EF 90 00 2E [14:48:43]RAPDU: 14 31 B6 D2 04 B0 CD EF 90 00 [14:48:43]wFMCommunicate OK [14:48:43]SAM_PROTO_SignData done [14:48:43]FM_MakeSignedData done [14:48:43]CreateOFDProtocolMessage [14:48:43]wFMCommunicate request_size=4 [14:48:43]MH_SAM_APDU [14:48:43]CAPDU: 80 11 00 00 [14:48:43]Write to MH i2c: E2 08 00 51 25 80 11 00 00 00 00 00 00 F0 [14:48:43]Write i2c OK [14:48:43]MH_I2C_Read... [14:48:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:43]Read from MH i2c: E2 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E2 17 00 [14:48:43]MH_I2C_Read... [14:48:44]Read from MH i2c: E2 17 00 51 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 45 [14:48:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:48:44]wFMCommunicate OK [14:48:44]CreateOFDProtocolMessage done [14:48:44]OFDSenderStorePacket 201550 [14:48:44]StoreOFDPacket docnum=201550 [14:48:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 82 47 07 01 E5 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 32 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 38 01 00 00 F4 03 04 00 4B 01 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4E 13 03 00 35 04 06 00 9B 5E D4 C8 E1 E1 14 31 B6 D2 04 B0 CD EF [14:48:44]CheckFolder [14:48:44]dirname=/storage/ofd_packets [14:48:44]CheckFolder done [14:48:44]ProducePacketName [14:48:44]name=ofd_packets/00201550 [14:48:44]NVStorageSaveData ofd_packets/00201550 [14:48:44]File name is /storage/ofd_packets/00201550 [14:48:44]Write 301 bytes [14:48:44]NVStorageSaveData done [14:48:44]OFDSenderStorePacket done [14:48:44]KKMCreateOFDPacket done [14:48:44]NVStorageSaveData kkm_last_timestamp [14:48:44]File name is /storage/kkm_last_timestamp [14:48:44]Write 4 bytes [14:48:44]NVStorageSaveData done [14:48:44]ExternCall_PrintAddStr [14:48:44]wPrintStart [14:48:44]Write to MH i2c: 01 00 00 52 25 77 [14:48:44]Write i2c OK [14:48:44]MH_I2C_Read... [14:48:44]Read from MH i2c: 01 [14:48:44]MH_I2C_Read... [14:48:44]Read from MH i2c: 01 07 00 [14:48:44]MH_I2C_Read... [14:48:44]Read from MH i2c: 01 07 00 52 25 00 00 00 00 00 FF 0F 8C [14:48:44]RasterBufferAndPrint [14:48:44]line Счет N : (1)449304 [14:48:44]line ИНН: 02508201610067 [14:48:44]line Контрольно-Кассовый Чек [14:48:44]line ПРОДАЖА [14:48:44]line ТРК (МРК, ГНК) : 62 [14:48:44]line Товар: 2710124130 [14:48:44]line Аи-92-К-2 [14:48:44]line 7.480 * 66.90 [14:48:44]line = 500.41 [14:48:44]line НДС 12% НСП 1% [14:48:44]line > о реализуемом товаре [14:48:44]line ОКРУГЛЕНИЕ: -0.41 [14:48:44]line ИТОГО: 500.00 [14:48:44]line Внесено: 500.00 [14:48:44]line СДАЧА: 0.00 [14:48:44]line НСП 1% : 4.43 [14:48:44]line НДС 12% : 53.14 [14:48:44]line Наличными: 500.00 [14:48:44]line Безнал.: 0.00 [14:48:44]line Место: АЗС № 171 "Партнер Нефть" [14:48:44]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:48:44]line СНО: Общий режим [14:48:44]line Чек 312 26.10.2024 14:48 [14:48:44]line Смена: 543 ФФД: 1.0 [14:48:44]line ЗНМ: 0300000109 [14:48:44]line РНМ: 0000000000091777 [14:48:44]line Версия ККМ: 001 [14:48:44]line ФМ: 0000000000871756 [14:48:44]line ФД: 201550 [14:48:44]line ФПД: 170831599165921 [14:48:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144843&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201550&fm=170831599165921&tin=02508201610067®Number=0000000000091777&sum=50000 [14:48:44]OFD Sender: Processing packet 201550 [packets to send 112, broken 111] [14:48:44]ProducePacketName [14:48:44]name=ofd_packets/00201550 [14:48:44]OFD Sender: To server: pG, [14:48:44]CommunicateWithHost lk.salyk.kg:30040 [14:48:44]ConnectInit lk.salyk.kg [14:48:44]written 0, free lines is 4095 [14:48:44]Connected sock=10 [14:48:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 82 47 07 01 E5 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 32 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 38 01 00 00 F4 03 04 00 4B 01 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4E 13 03 00 35 04 06 00 9B 5E D4 C8 E1 E1 14 31 B6 D2 04 B0 CD EF [14:48:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D6 89 47 00 31 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4E 13 03 00 F4 03 04 00 F4 AC 1C 67 B6 04 01 00 00 DE C1 F9 1E F4 CE 70 12 [14:48:44]CommunicateWithHost err = 0 [14:48:44]CheckOFDResponse [14:48:44]1017 (14) - 77093643461234 [14:48:44]1041 (16) - 0000000000871756 [14:48:44]1040 (4) - 201550 [14:48:44]1012 (4) - 26.10.2024 08:48 [14:48:44]1206 (1) - 0 [14:48:44]OFD Sender: Remove packet 201550 [14:48:44]ProducePacketName [14:48:44]name=ofd_packets/00201550 [14:48:44]NVStorageDeleteData [14:48:44]Write to MH i2c: 01 00 00 7D 25 A2 [14:48:44]Write i2c OK [14:48:44]MH_I2C_Read... [14:48:44]Read from MH i2c: 01 [14:48:44]MH_I2C_Read... [14:48:44]Read from MH i2c: 01 07 00 [14:48:44]MH_I2C_Read... [14:48:44]Read from MH i2c: 01 07 00 7D 25 00 00 00 00 00 A0 0C 55 [14:48:44]RasterBufferAndPrint [14:48:44]line [14:48:44]line [14:48:44]line [14:48:44]line [14:48:44]line [14:48:44]written 0, free lines is 3238 [14:48:44]MH_Cut [14:48:44]Write to MH i2c: D1 01 00 84 25 01 7B [14:48:44]Write i2c OK [14:48:44]MH_I2C_Read... [14:48:44]Read from MH i2c: D1 [14:48:44]MH_I2C_Read... [14:48:44]Read from MH i2c: D1 01 00 [14:48:44]MH_I2C_Read... [14:48:44]Read from MH i2c: D1 01 00 84 25 00 7A [14:48:44]Write to MH i2c: 01 00 00 85 25 AA [14:48:44]Write i2c OK [14:48:44]MH_I2C_Read... [14:48:45]OFD Sender: No OFD packet to send [14:48:45]*** Cut start [14:48:45]*** Purtial cut [14:48:45]*** Stage 1: CUTSNS_PIN = 1 [14:48:45]Read from MH i2c: 01 [14:48:45]MH_I2C_Read... [14:48:45]*** Stop cut motor [14:48:45]*** Cut end [14:48:45]Read from MH i2c: 01 07 00 [14:48:45]MH_I2C_Read... [14:48:45]Read from MH i2c: 01 07 00 85 25 00 00 00 00 00 FF 0F BF [14:48:45]process_action close_receipt done [14:48:45]requested_data is exist [14:48:45]produce_requested_data [14:48:45]requested_item fm.sn is exist - process it [14:48:45]wFMCommunicate request_size=4 [14:48:45]MH_SAM_APDU [14:48:45]CAPDU: 80 11 00 00 [14:48:45]Write to MH i2c: E2 08 00 86 25 80 11 00 00 00 00 00 00 25 [14:48:45]Write i2c OK [14:48:45]MH_I2C_Read... [14:48:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:45]Read from MH i2c: E2 [14:48:45]MH_I2C_Read... [14:48:45]Read from MH i2c: E2 17 00 [14:48:45]MH_I2C_Read... [14:48:45]Read from MH i2c: E2 17 00 86 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7A [14:48:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:48:45]wFMCommunicate OK [14:48:45]requested_item fd.num is exist - process it [14:48:45]SAM_PROTO_GetFieldsCounters [14:48:45]wFMCommunicate request_size=4 [14:48:45]MH_SAM_APDU [14:48:45]CAPDU: 80 13 00 00 [14:48:45]Write to MH i2c: E2 08 00 87 25 80 13 00 00 00 00 00 00 28 [14:48:46]Write i2c OK [14:48:46]MH_I2C_Read... [14:48:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:46]Read from MH i2c: E2 [14:48:46]MH_I2C_Read... [14:48:46]Read from MH i2c: E2 62 00 [14:48:46]MH_I2C_Read... [14:48:46]Read from MH i2c: E2 62 00 87 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4E 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 81 [14:48:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4E 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:48:46]wFMCommunicate OK [14:48:46]SAM_PROTO_GetFieldsCounters done [14:48:46]requested_item shift.num is exist - process it [14:48:46]requested_item shift.opened is exist - process it [14:48:46]req_shift_opened [14:48:46]FM_GetShiftState [14:48:46]SAM_PROTO_GetShiftState [14:48:46]wFMCommunicate request_size=4 [14:48:46]MH_SAM_APDU [14:48:46]CAPDU: 80 13 01 00 [14:48:46]Write to MH i2c: E2 08 00 88 25 80 13 01 00 00 00 00 00 2A [14:48:46]Write i2c OK [14:48:46]MH_I2C_Read... [14:48:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:46]Read from MH i2c: E2 [14:48:46]MH_I2C_Read... [14:48:46]Read from MH i2c: E2 0E 00 [14:48:46]MH_I2C_Read... [14:48:46]Read from MH i2c: E2 0E 00 88 25 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 39 [14:48:46]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:48:46]wFMCommunicate OK [14:48:46]SAM_PROTO_GetShiftState done [14:48:46]FM_GetShiftState done [14:48:46]req_shift_opened done [14:48:46]requested_item shift.open_date is exist - process it [14:48:46]req_shift_open_date [14:48:46]req_shift_open_date done [14:48:46]produce_requested_data done [14:48:46]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201550,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:48:46]process_action_free close_receipt [14:48:46]json_value_free [14:48:46]json_value_free done [14:48:46]process_json_proto returns [14:48:46]Send response to host [14:48:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201550,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:48:46]free response buf [14:48:46]execute_script done [14:48:46]execute_script returns [14:48:46]free content buf [14:48:46]Sock 9.Close socket [14:48:46]Sock 9.Thread stoped [14:48:50]OFD Sender: No OFD packet to send [14:48:55]OFD Sender: No OFD packet to send [14:49:00]OFD Sender: No OFD packet to send [14:49:05]OFD Sender: No OFD packet to send [14:49:10]OFD Sender: No OFD packet to send [14:49:15]OFD Sender: No OFD packet to send [14:49:20]OFD Sender: No OFD packet to send [14:49:21]accept exits with 8 [14:49:21]New connection [14:49:21]New thread 3066834276 created [14:49:21]Thread 3066690916 joined [14:49:21]Waiting for new connection... [14:49:21] Sock 8.Parse request [14:49:21]Sock 8.Check first char [14:49:21]Sock 8.First char is OK [14:49:21]request: POST /json_proto HTTP/1.0 [14:49:21]Method: POST [14:49:21]URL: /json_proto [14:49:21]Method is POST - this is cgi request [14:49:21]url: /json_proto [14:49:21]query_string will be loaded in cgi processing [14:49:21]execute_cgi json_proto POST (null) [14:49:21]execute_cgi path=json_proto method=POST [14:49:21]POST find Content-Length [14:49:21]Host: 172.17.63.195:8080 [14:49:21]Content-Length: 677 [14:49:21]Content-Type: application/json [14:49:21] [14:49:21]POST finish read [14:49:21]Found Content-Length = 677 [14:49:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [14:49:21]execute_script... [14:49: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)449303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [14:49:21]POST & json_proto [14:49:21]process_json_proto [14:49:21]json parsed OK: [14:49:21]protocol is kg_v1.0 [14:49:21]action value=close_receipt [14:49:21]process_action close_receipt [14:49:21]cmd_close_receipt [14:49:21]MH_GetDate [14:49:21]Write to MH i2c: F0 00 00 89 25 9D [14:49:21]Write i2c OK [14:49:21]MH_I2C_Read... [14:49:21]Read from MH i2c: F0 [14:49:21]MH_I2C_Read... [14:49:21]Read from MH i2c: F0 09 00 [14:49:21]MH_I2C_Read... [14:49:21]Read from MH i2c: F0 09 00 89 25 00 72 01 1D 67 68 46 19 67 CB [14:49:21]GetLastDocTimeStamp 1729954123 [14:49:21]current date 1729954162 [14:49:21]FM_GetShiftState [14:49:21]SAM_PROTO_GetShiftState [14:49:21]wFMCommunicate request_size=4 [14:49:21]MH_SAM_APDU [14:49:21]CAPDU: 80 13 01 00 [14:49:21]Write to MH i2c: E2 08 00 8A 25 80 13 01 00 00 00 00 00 2C [14:49:21]Write i2c OK [14:49:21]MH_I2C_Read... [14:49:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:21]Read from MH i2c: E2 [14:49:21]MH_I2C_Read... [14:49:21]Read from MH i2c: E2 0E 00 [14:49:21]MH_I2C_Read... [14:49:21]Read from MH i2c: E2 0E 00 8A 25 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 3B [14:49:21]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:49:21]wFMCommunicate OK [14:49:21]SAM_PROTO_GetShiftState done [14:49:21]FM_GetShiftState done [14:49:21]opened in 1729900879 [14:49:21]opened+sec_in_day 1729987279 [14:49:21]quantity*price = 20003 [14:49:21]sum+1 = 20004 [14:49:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 313 26.10.2024 14:49 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201551 ФПД: 86423908608115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144922&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201551&fm=86423908608115&tin=02508201610067®Number=0000000000091777&sum=20000 [14:49:22]StoreToDocumentArchive [14:49:22]shift 543 fd 201551 [14:49:22]save to /storage/0543/doc_00201551 [14:49:22]save last doc name /storage/0543/doc_00201551 to /storage/kkm_last_doc_name [14:49:22]save OK [14:49:22]Clear old archive folders... [14:49:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:49:22]tlvbuf is 01FABC10 [14:49:22]SAM_PROTO_ClearQueue [14:49:22]wFMCommunicate request_size=4 [14:49:22]MH_SAM_APDU [14:49:22]CAPDU: 80 09 00 00 [14:49:22]Write to MH i2c: E2 08 00 97 25 80 09 00 00 00 00 00 00 2E [14:49:22]Write i2c OK [14:49:22]MH_I2C_Read... [14:49:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:22]Read from MH i2c: E2 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: E2 03 00 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: E2 03 00 97 25 00 90 00 30 [14:49:22]RAPDU: 90 00 [14:49:22]wFMCommunicate OK [14:49:22]SAM_PROTO_ClearQueue done [14:49:22]KKMCreateOFDPacket [14:49:22]OFDProtocolAddRootSTLVToBuf [14:49:22]FM_MakeSignedData [14:49:22]FM_MakeSignedData [14:49:22]SAM_PROTO_SignData [14:49:22]wFMCommunicate request_size=4 [14:49:22]MH_SAM_APDU [14:49:22]CAPDU: 80 0D 01 02 [14:49:22]Write to MH i2c: E2 08 00 98 25 80 0D 01 02 00 00 00 00 36 [14:49:22]Write i2c OK [14:49:22]MH_I2C_Read... [14:49:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:22]Read from MH i2c: E2 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: E2 03 00 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: E2 03 00 98 25 00 90 00 31 [14:49:22]RAPDU: 90 00 [14:49:22]wFMCommunicate OK [14:49:22]wFMCommunicate request_size=255 [14:49:22]MH_SAM_APDU [14:49: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 32 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 39 01 00 00 F4 03 04 00 72 01 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4F 13 03 00 35 04 06 00 4E [14:49:22]Write to MH i2c: E2 02 01 99 25 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 32 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 39 01 00 00 F4 03 04 00 72 01 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4F 13 03 00 35 04 06 00 4E 00 00 91 [14:49:22]Write i2c OK [14:49:22]MH_I2C_Read... [14:49:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:23]Read from MH i2c: E2 [14:49:23]MH_I2C_Read... [14:49:23]Read from MH i2c: E2 03 00 [14:49:23]MH_I2C_Read... [14:49:23]Read from MH i2c: E2 03 00 99 25 00 90 00 32 [14:49:23]RAPDU: 90 00 [14:49:23]wFMCommunicate OK [14:49:23]wFMCommunicate request_size=10 [14:49:23]MH_SAM_APDU [14:49:23]CAPDU: 80 0D 02 02 05 9A 22 5F 68 73 [14:49:23]Write to MH i2c: E2 0D 00 9A 25 80 0D 02 02 05 00 9A 22 5F 68 73 00 00 39 [14:49:23]Write i2c OK [14:49:23]MH_I2C_Read... [14:49:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:23]Read from MH i2c: E2 [14:49:23]MH_I2C_Read... [14:49:23]Read from MH i2c: E2 03 00 [14:49:23]MH_I2C_Read... [14:49:23]Read from MH i2c: E2 03 00 9A 25 00 90 00 33 [14:49:23]RAPDU: 90 00 [14:49:23]wFMCommunicate OK [14:49:23]wFMCommunicate request_size=4 [14:49:23]MH_SAM_APDU [14:49:23]CAPDU: 80 0D 03 02 [14:49:23]Write to MH i2c: E2 08 00 9B 25 80 0D 03 02 00 00 00 00 3B [14:49:23]Write i2c OK [14:49:23]MH_I2C_Read... [14:49:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:23]Read from MH i2c: E2 [14:49:23]MH_I2C_Read... [14:49:23]Read from MH i2c: E2 0B 00 [14:49:23]MH_I2C_Read... [14:49:23]Read from MH i2c: E2 0B 00 9B 25 00 31 34 23 AA 84 28 C5 65 90 00 44 [14:49:23]RAPDU: 31 34 23 AA 84 28 C5 65 90 00 [14:49:23]wFMCommunicate OK [14:49:23]SAM_PROTO_SignData done [14:49:23]FM_MakeSignedData done [14:49:23]CreateOFDProtocolMessage [14:49:23]wFMCommunicate request_size=4 [14:49:23]MH_SAM_APDU [14:49:23]CAPDU: 80 11 00 00 [14:49:23]Write to MH i2c: E2 08 00 9C 25 80 11 00 00 00 00 00 00 3B [14:49:23]Write i2c OK [14:49:23]MH_I2C_Read... [14:49:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:23]Read from MH i2c: E2 [14:49:23]MH_I2C_Read... [14:49:23]Read from MH i2c: E2 17 00 [14:49:23]MH_I2C_Read... [14:49:23]Read from MH i2c: E2 17 00 9C 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 90 [14:49:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:49:23]wFMCommunicate OK [14:49:23]CreateOFDProtocolMessage done [14:49:23]OFDSenderStorePacket 201551 [14:49:23]StoreOFDPacket docnum=201551 [14:49:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 0D 2F 07 01 D6 56 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 32 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 39 01 00 00 F4 03 04 00 72 01 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4F 13 03 00 35 04 06 00 4E 9A 22 5F 68 73 31 34 23 AA 84 28 C5 65 [14:49:23]CheckFolder [14:49:23]dirname=/storage/ofd_packets [14:49:23]CheckFolder done [14:49:23]ProducePacketName [14:49:23]name=ofd_packets/00201551 [14:49:23]NVStorageSaveData ofd_packets/00201551 [14:49:23]File name is /storage/ofd_packets/00201551 [14:49:23]Write 301 bytes [14:49:23]NVStorageSaveData done [14:49:23]OFDSenderStorePacket done [14:49:23]KKMCreateOFDPacket done [14:49:23]NVStorageSaveData kkm_last_timestamp [14:49:23]File name is /storage/kkm_last_timestamp [14:49:23]Write 4 bytes [14:49:23]NVStorageSaveData done [14:49:23]ExternCall_PrintAddStr [14:49:23]wPrintStart [14:49:23]Write to MH i2c: 01 00 00 9D 25 C2 [14:49:23]Write i2c OK [14:49:23]MH_I2C_Read... [14:49:23]Read from MH i2c: 01 [14:49:23]MH_I2C_Read... [14:49:23]Read from MH i2c: 01 07 00 [14:49:23]MH_I2C_Read... [14:49:23]Read from MH i2c: 01 07 00 9D 25 00 00 00 00 00 FF 0F D7 [14:49:23]RasterBufferAndPrint [14:49:23]line Счет N : (1)449303 [14:49:23]line ИНН: 02508201610067 [14:49:23]line Контрольно-Кассовый Чек [14:49:23]line ПРОДАЖА [14:49:23]line ТРК (МРК, ГНК) : 41 [14:49:23]line Товар: 2710124130 [14:49:23]line Аи-92-К-2 [14:49:23]line 2.990 * 66.90 [14:49:23]line = 200.03 [14:49:23]line НДС 12% НСП 1% [14:49:23]line > о реализуемом товаре [14:49:23]line ОКРУГЛЕНИЕ: -0.03 [14:49:23]line ИТОГО: 200.00 [14:49:23]line Внесено: 200.00 [14:49:23]line СДАЧА: 0.00 [14:49:23]line НСП 1% : 1.77 [14:49:23]line НДС 12% : 21.24 [14:49:23]line Наличными: 200.00 [14:49:23]line Безнал.: 0.00 [14:49:23]line Место: АЗС № 171 "Партнер Нефть" [14:49:23]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:49:23]line СНО: Общий режим [14:49:23]line Чек 313 26.10.2024 14:49 [14:49:23]line Смена: 543 ФФД: 1.0 [14:49:23]line ЗНМ: 0300000109 [14:49:23]line РНМ: 0000000000091777 [14:49:23]line Версия ККМ: 001 [14:49:23]line ФМ: 0000000000871756 [14:49:23]line ФД: 201551 [14:49:23]line ФПД: 86423908608115 [14:49:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144922&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201551&fm=86423908608115&tin=02508201610067®Number=0000000000091777&sum=20000 [14:49:23]OFD Sender: Processing packet 201551 [packets to send 112, broken 111] [14:49:23]ProducePacketName [14:49:23]name=ofd_packets/00201551 [14:49:23]OFD Sender: To server: pG, [14:49:23]CommunicateWithHost lk.salyk.kg:30040 [14:49:23]ConnectInit lk.salyk.kg [14:49:23]written 0, free lines is 4095 [14:49:23]Connected sock=10 [14:49:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 0D 2F 07 01 D6 56 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 32 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 39 01 00 00 F4 03 04 00 72 01 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4F 13 03 00 35 04 06 00 4E 9A 22 5F 68 73 31 34 23 AA 84 28 C5 65 [14:49:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 DF E9 47 00 D2 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 4F 13 03 00 F4 03 04 00 1B AD 1C 67 B6 04 01 00 00 69 84 74 BA CE 26 81 3E [14:49:23]CommunicateWithHost err = 0 [14:49:23]CheckOFDResponse [14:49:23]1017 (14) - 77093643461234 [14:49:23]1041 (16) - 0000000000871756 [14:49:23]1040 (4) - 201551 [14:49:23]1012 (4) - 26.10.2024 08:49 [14:49:23]1206 (1) - 0 [14:49:23]OFD Sender: Remove packet 201551 [14:49:23]ProducePacketName [14:49:23]name=ofd_packets/00201551 [14:49:23]NVStorageDeleteData [14:49:24]Write to MH i2c: 01 00 00 C8 25 ED [14:49:24]Write i2c OK [14:49:24]MH_I2C_Read... [14:49:24]Read from MH i2c: 01 [14:49:24]MH_I2C_Read... [14:49:24]Read from MH i2c: 01 07 00 [14:49:24]MH_I2C_Read... [14:49:24]Read from MH i2c: 01 07 00 C8 25 00 00 00 00 00 AC 0C AC [14:49:24]RasterBufferAndPrint [14:49:24]line [14:49:24]line [14:49:24]line [14:49:24]line [14:49:24]line [14:49:24]written 0, free lines is 3252 [14:49:24]MH_Cut [14:49:24]Write to MH i2c: D1 01 00 CF 25 01 C6 [14:49:24]Write i2c OK [14:49:24]MH_I2C_Read... [14:49:24]Read from MH i2c: D1 [14:49:24]MH_I2C_Read... [14:49:24]Read from MH i2c: D1 01 00 [14:49:24]MH_I2C_Read... [14:49:24]Read from MH i2c: D1 01 00 CF 25 00 C5 [14:49:24]Write to MH i2c: 01 00 00 D0 25 F5 [14:49:24]Write i2c OK [14:49:24]MH_I2C_Read... [14:49:24]OFD Sender: No OFD packet to send [14:49:24]*** Cut start [14:49:24]*** Purtial cut [14:49:24]*** Stage 1: CUTSNS_PIN = 1 [14:49:25]Read from MH i2c: 01 [14:49:25]MH_I2C_Read... [14:49:25]*** Stop cut motor [14:49:25]*** Cut end [14:49:25]Read from MH i2c: 01 07 00 [14:49:25]MH_I2C_Read... [14:49:25]Read from MH i2c: 01 07 00 D0 25 00 00 00 00 00 FF 0F 0A [14:49:25]process_action close_receipt done [14:49:25]requested_data is exist [14:49:25]produce_requested_data [14:49:25]requested_item fm.sn is exist - process it [14:49:25]wFMCommunicate request_size=4 [14:49:25]MH_SAM_APDU [14:49:25]CAPDU: 80 11 00 00 [14:49:25]Write to MH i2c: E2 08 00 D1 25 80 11 00 00 00 00 00 00 70 [14:49:25]Write i2c OK [14:49:25]MH_I2C_Read... [14:49:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:25]Read from MH i2c: E2 [14:49:25]MH_I2C_Read... [14:49:25]Read from MH i2c: E2 17 00 [14:49:25]MH_I2C_Read... [14:49:25]Read from MH i2c: E2 17 00 D1 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C5 [14:49:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:49:25]wFMCommunicate OK [14:49:25]requested_item fd.num is exist - process it [14:49:25]SAM_PROTO_GetFieldsCounters [14:49:25]wFMCommunicate request_size=4 [14:49:25]MH_SAM_APDU [14:49:25]CAPDU: 80 13 00 00 [14:49:25]Write to MH i2c: E2 08 00 D2 25 80 13 00 00 00 00 00 00 73 [14:49:25]Write i2c OK [14:49:25]MH_I2C_Read... [14:49:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:25]Read from MH i2c: E2 [14:49:25]MH_I2C_Read... [14:49:25]Read from MH i2c: E2 62 00 [14:49:25]MH_I2C_Read... [14:49:25]Read from MH i2c: E2 62 00 D2 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4F 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 D0 [14:49:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 4F 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:49:25]wFMCommunicate OK [14:49:25]SAM_PROTO_GetFieldsCounters done [14:49:25]requested_item shift.num is exist - process it [14:49:25]requested_item shift.opened is exist - process it [14:49:25]req_shift_opened [14:49:25]FM_GetShiftState [14:49:25]SAM_PROTO_GetShiftState [14:49:25]wFMCommunicate request_size=4 [14:49:25]MH_SAM_APDU [14:49:25]CAPDU: 80 13 01 00 [14:49:25]Write to MH i2c: E2 08 00 D3 25 80 13 01 00 00 00 00 00 75 [14:49:25]Write i2c OK [14:49:25]MH_I2C_Read... [14:49:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:25]Read from MH i2c: E2 [14:49:25]MH_I2C_Read... [14:49:25]Read from MH i2c: E2 0E 00 [14:49:25]MH_I2C_Read... [14:49:25]Read from MH i2c: E2 0E 00 D3 25 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 84 [14:49:25]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:49:25]wFMCommunicate OK [14:49:25]SAM_PROTO_GetShiftState done [14:49:25]FM_GetShiftState done [14:49:25]req_shift_opened done [14:49:25]requested_item shift.open_date is exist - process it [14:49:25]req_shift_open_date [14:49:25]req_shift_open_date done [14:49:25]produce_requested_data done [14:49:25]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201551,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:49:25]process_action_free close_receipt [14:49:25]json_value_free [14:49:25]json_value_free done [14:49:25]process_json_proto returns [14:49:25]Send response to host [14:49:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201551,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:49:25]free response buf [14:49:25]execute_script done [14:49:25]execute_script returns [14:49:25]free content buf [14:49:25]Sock 8.Close socket [14:49:25]Sock 8.Thread stoped [14:49:29]OFD Sender: No OFD packet to send [14:49:34]OFD Sender: No OFD packet to send [14:49:39]OFD Sender: No OFD packet to send [14:49:44]OFD Sender: No OFD packet to send [14:49:49]OFD Sender: No OFD packet to send [14:49:54]OFD Sender: No OFD packet to send [14:49:59]OFD Sender: No OFD packet to send [14:50:04]OFD Sender: No OFD packet to send [14:50:09]OFD Sender: No OFD packet to send [14:50:14]OFD Sender: No OFD packet to send [14:50:19]OFD Sender: No OFD packet to send [14:50:24]OFD Sender: No OFD packet to send [14:50:29]OFD Sender: No OFD packet to send [14:50:34]OFD Sender: No OFD packet to send [14:50:39]OFD Sender: No OFD packet to send [14:50:44]OFD Sender: No OFD packet to send [14:50:49]OFD Sender: No OFD packet to send [14:50:54]OFD Sender: No OFD packet to send [14:50:59]OFD Sender: No OFD packet to send [14:51:04]OFD Sender: No OFD packet to send [14:51:09]OFD Sender: No OFD packet to send [14:51:14]OFD Sender: No OFD packet to send [14:51:19]OFD Sender: No OFD packet to send [14:51:24]OFD Sender: No OFD packet to send [14:51:29]OFD Sender: No OFD packet to send [14:51:34]OFD Sender: No OFD packet to send [14:51:39]OFD Sender: No OFD packet to send [14:51:44]OFD Sender: No OFD packet to send [14:51:49]OFD Sender: No OFD packet to send [14:51:54]OFD Sender: No OFD packet to send [14:51:59]OFD Sender: No OFD packet to send [14:52:04]OFD Sender: No OFD packet to send [14:52:09]OFD Sender: No OFD packet to send [14:52:14]OFD Sender: No OFD packet to send [14:52:19]OFD Sender: No OFD packet to send [14:52:24]OFD Sender: No OFD packet to send [14:52:29]OFD Sender: No OFD packet to send [14:52:34]OFD Sender: No OFD packet to send [14:52:39]OFD Sender: No OFD packet to send [14:52:44]OFD Sender: No OFD packet to send [14:52:49]OFD Sender: No OFD packet to send [14:52:54]OFD Sender: No OFD packet to send [14:52:59]OFD Sender: No OFD packet to send [14:53:04]OFD Sender: No OFD packet to send [14:53:09]OFD Sender: No OFD packet to send [14:53:14]OFD Sender: No OFD packet to send [14:53:19]OFD Sender: No OFD packet to send [14:53:24]OFD Sender: No OFD packet to send [14:53:29]OFD Sender: No OFD packet to send [14:53:34]OFD Sender: No OFD packet to send [14:53:39]OFD Sender: No OFD packet to send [14:53:44]OFD Sender: No OFD packet to send [14:53:49]OFD Sender: No OFD packet to send [14:53:54]OFD Sender: No OFD packet to send [14:53:59]OFD Sender: No OFD packet to send [14:54:04]OFD Sender: No OFD packet to send [14:54:09]OFD Sender: No OFD packet to send [14:54:14]OFD Sender: No OFD packet to send [14:54:19]OFD Sender: No OFD packet to send [14:54:24]OFD Sender: No OFD packet to send [14:54:29]OFD Sender: No OFD packet to send [14:54:34]OFD Sender: No OFD packet to send [14:54:39]OFD Sender: No OFD packet to send [14:54:44]OFD Sender: No OFD packet to send [14:54:49]OFD Sender: No OFD packet to send [14:54:54]OFD Sender: No OFD packet to send [14:54:59]OFD Sender: No OFD packet to send [14:55:04]OFD Sender: No OFD packet to send [14:55:09]OFD Sender: No OFD packet to send [14:55:14]OFD Sender: No OFD packet to send [14:55:19]OFD Sender: No OFD packet to send [14:55:24]OFD Sender: No OFD packet to send [14:55:29]OFD Sender: No OFD packet to send [14:55:34]OFD Sender: No OFD packet to send [14:55:39]OFD Sender: No OFD packet to send [14:55:44]OFD Sender: No OFD packet to send [14:55:49]OFD Sender: No OFD packet to send [14:55:54]OFD Sender: No OFD packet to send [14:55:59]OFD Sender: No OFD packet to send [14:56:04]OFD Sender: No OFD packet to send [14:56:09]OFD Sender: No OFD packet to send [14:56:14]OFD Sender: No OFD packet to send [14:56:19]OFD Sender: No OFD packet to send [14:56:24]OFD Sender: No OFD packet to send [14:56:25]accept exits with 9 [14:56:25]New connection [14:56:25]New thread 3066690916 created [14:56:25]Thread 3066834276 joined [14:56:25]Waiting for new connection... [14:56:25] Sock 9.Parse request [14:56:25]Sock 9.Check first char [14:56:25]Sock 9.First char is OK [14:56:25]request: POST /json_proto HTTP/1.0 [14:56:25]Method: POST [14:56:25]URL: /json_proto [14:56:25]Method is POST - this is cgi request [14:56:25]url: /json_proto [14:56:25]query_string will be loaded in cgi processing [14:56:25]execute_cgi json_proto POST (null) [14:56:25]execute_cgi path=json_proto method=POST [14:56:25]POST find Content-Length [14:56:25]Host: 172.17.63.195:8080 [14:56:25]Content-Length: 670 [14:56:25]Content-Type: application/json [14:56:25] [14:56:25]POST finish read [14:56:25]Found Content-Length = 670 [14:56:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 2.930, "sum" : 200.41, "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" ] } } [14:56:25]execute_script... [14:56:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 2.930, "sum" : 200.41, "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" ] } } [14:56:25]POST & json_proto [14:56:25]process_json_proto [14:56:25]json parsed OK: [14:56:25]protocol is kg_v1.0 [14:56:25]action value=close_receipt [14:56:25]process_action close_receipt [14:56:25]cmd_close_receipt [14:56:25]MH_GetDate [14:56:25]Write to MH i2c: F0 00 00 D4 25 E8 [14:56:25]Write i2c OK [14:56:25]MH_I2C_Read... [14:56:25]Read from MH i2c: F0 [14:56:25]MH_I2C_Read... [14:56:25]Read from MH i2c: F0 09 00 [14:56:25]MH_I2C_Read... [14:56:25]Read from MH i2c: F0 09 00 D4 25 00 1A 03 1D 67 68 46 19 67 C0 [14:56:25]GetLastDocTimeStamp 1729954162 [14:56:25]current date 1729954586 [14:56:25]FM_GetShiftState [14:56:25]SAM_PROTO_GetShiftState [14:56:25]wFMCommunicate request_size=4 [14:56:25]MH_SAM_APDU [14:56:25]CAPDU: 80 13 01 00 [14:56:25]Write to MH i2c: E2 08 00 D5 25 80 13 01 00 00 00 00 00 77 [14:56:25]Write i2c OK [14:56:25]MH_I2C_Read... [14:56:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:25]Read from MH i2c: E2 [14:56:25]MH_I2C_Read... [14:56:25]Read from MH i2c: E2 0E 00 [14:56:25]MH_I2C_Read... [14:56:25]Read from MH i2c: E2 0E 00 D5 25 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 86 [14:56:25]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:56:25]wFMCommunicate OK [14:56:25]SAM_PROTO_GetShiftState done [14:56:25]FM_GetShiftState done [14:56:25]opened in 1729900879 [14:56:25]opened+sec_in_day 1729987279 [14:56:25]quantity*price = 20041 [14:56:25]sum+1 = 20042 [14:56:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 314 26.10.2024 14:56 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201552 ФПД: 190252729956934 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T145626&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201552&fm=190252729956934&tin=02508201610067®Number=0000000000091777&sum=20000 [14:56:26]StoreToDocumentArchive [14:56:26]shift 543 fd 201552 [14:56:26]save to /storage/0543/doc_00201552 [14:56:26]save last doc name /storage/0543/doc_00201552 to /storage/kkm_last_doc_name [14:56:26]save OK [14:56:26]Clear old archive folders... [14:56:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:56:26]tlvbuf is B6F389B0 [14:56:26]SAM_PROTO_ClearQueue [14:56:26]wFMCommunicate request_size=4 [14:56:26]MH_SAM_APDU [14:56:26]CAPDU: 80 09 00 00 [14:56:26]Write to MH i2c: E2 08 00 E2 25 80 09 00 00 00 00 00 00 79 [14:56:26]Write i2c OK [14:56:26]MH_I2C_Read... [14:56:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:26]Read from MH i2c: E2 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 03 00 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 03 00 E2 25 00 90 00 7B [14:56:26]RAPDU: 90 00 [14:56:26]wFMCommunicate OK [14:56:26]SAM_PROTO_ClearQueue done [14:56:26]KKMCreateOFDPacket [14:56:26]OFDProtocolAddRootSTLVToBuf [14:56:26]FM_MakeSignedData [14:56:26]FM_MakeSignedData [14:56:26]SAM_PROTO_SignData [14:56:26]wFMCommunicate request_size=4 [14:56:26]MH_SAM_APDU [14:56:26]CAPDU: 80 0D 01 02 [14:56:26]Write to MH i2c: E2 08 00 E3 25 80 0D 01 02 00 00 00 00 81 [14:56:26]Write i2c OK [14:56:26]MH_I2C_Read... [14:56:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:26]Read from MH i2c: E2 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 03 00 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 03 00 E3 25 00 90 00 7C [14:56:26]RAPDU: 90 00 [14:56:26]wFMCommunicate OK [14:56:26]wFMCommunicate request_size=255 [14:56:26]MH_SAM_APDU [14:56: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 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 49 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 50 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 3A 01 00 00 F4 03 04 00 1A 03 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 50 13 03 00 35 04 06 00 [14:56:26]Write to MH i2c: E2 02 01 E4 25 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 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 49 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 50 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 3A 01 00 00 F4 03 04 00 1A 03 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 50 13 03 00 35 04 06 00 00 00 5E [14:56:26]Write i2c OK [14:56:26]MH_I2C_Read... [14:56:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:26]Read from MH i2c: E2 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 03 00 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 03 00 E4 25 00 90 00 7D [14:56:26]RAPDU: 90 00 [14:56:26]wFMCommunicate OK [14:56:26]wFMCommunicate request_size=11 [14:56:26]MH_SAM_APDU [14:56:26]CAPDU: 80 0D 02 02 06 AD 08 AA 62 FA 46 [14:56:26]Write to MH i2c: E2 0E 00 E5 25 80 0D 02 02 06 00 AD 08 AA 62 FA 46 00 00 91 [14:56:26]Write i2c OK [14:56:26]MH_I2C_Read... [14:56:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:26]Read from MH i2c: E2 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 03 00 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 03 00 E5 25 00 90 00 7E [14:56:26]RAPDU: 90 00 [14:56:26]wFMCommunicate OK [14:56:26]wFMCommunicate request_size=4 [14:56:26]MH_SAM_APDU [14:56:26]CAPDU: 80 0D 03 02 [14:56:26]Write to MH i2c: E2 08 00 E6 25 80 0D 03 02 00 00 00 00 86 [14:56:26]Write i2c OK [14:56:26]MH_I2C_Read... [14:56:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:26]Read from MH i2c: E2 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 0B 00 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 0B 00 E6 25 00 45 DC 62 A8 8C A1 DF 39 90 00 F7 [14:56:26]RAPDU: 45 DC 62 A8 8C A1 DF 39 90 00 [14:56:26]wFMCommunicate OK [14:56:26]SAM_PROTO_SignData done [14:56:26]FM_MakeSignedData done [14:56:26]CreateOFDProtocolMessage [14:56:26]wFMCommunicate request_size=4 [14:56:26]MH_SAM_APDU [14:56:26]CAPDU: 80 11 00 00 [14:56:26]Write to MH i2c: E2 08 00 E7 25 80 11 00 00 00 00 00 00 86 [14:56:26]Write i2c OK [14:56:26]MH_I2C_Read... [14:56:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:26]Read from MH i2c: E2 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 17 00 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 17 00 E7 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DB [14:56:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:56:26]wFMCommunicate OK [14:56:26]CreateOFDProtocolMessage done [14:56:26]OFDSenderStorePacket 201552 [14:56:26]StoreOFDPacket docnum=201552 [14:56:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 33 70 08 01 73 01 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 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 49 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 50 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 3A 01 00 00 F4 03 04 00 1A 03 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 50 13 03 00 35 04 06 00 AD 08 AA 62 FA 46 45 DC 62 A8 8C A1 DF 39 [14:56:26]CheckFolder [14:56:26]dirname=/storage/ofd_packets [14:56:26]CheckFolder done [14:56:26]ProducePacketName [14:56:26]name=ofd_packets/00201552 [14:56:26]NVStorageSaveData ofd_packets/00201552 [14:56:26]File name is /storage/ofd_packets/00201552 [14:56:26]Write 302 bytes [14:56:26]NVStorageSaveData done [14:56:26]OFDSenderStorePacket done [14:56:26]KKMCreateOFDPacket done [14:56:26]NVStorageSaveData kkm_last_timestamp [14:56:26]File name is /storage/kkm_last_timestamp [14:56:26]Write 4 bytes [14:56:26]NVStorageSaveData done [14:56:26]ExternCall_PrintAddStr [14:56:26]wPrintStart [14:56:26]Write to MH i2c: 01 00 00 E8 25 0D [14:56:26]Write i2c OK [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: 01 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: 01 07 00 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: 01 07 00 E8 25 00 00 00 00 00 FF 0F 22 [14:56:26]RasterBufferAndPrint [14:56:26]line Счет N : (1)449305 [14:56:26]line ИНН: 02508201610067 [14:56:26]line Контрольно-Кассовый Чек [14:56:26]line ПРОДАЖА [14:56:26]line ТРК (МРК, ГНК) : 42 [14:56:26]line Товар: 2710124130 [14:56:26]line SUPER 92-К-5 [14:56:26]line 2.930 * 68.40 [14:56:26]line = 200.41 [14:56:26]line НДС 12% НСП 1% [14:56:26]line > о реализуемом товаре [14:56:26]line ОКРУГЛЕНИЕ: -0.41 [14:56:26]line ИТОГО: 200.00 [14:56:26]line Внесено: 200.00 [14:56:26]line СДАЧА: 0.00 [14:56:26]line НСП 1% : 1.77 [14:56:26]line НДС 12% : 21.28 [14:56:26]line Наличными: 200.00 [14:56:26]line Безнал.: 0.00 [14:56:26]line Место: АЗС № 171 "Партнер Нефть" [14:56:26]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:56:26]line СНО: Общий режим [14:56:26]line Чек 314 26.10.2024 14:56 [14:56:26]line Смена: 543 ФФД: 1.0 [14:56:26]line ЗНМ: 0300000109 [14:56:26]line РНМ: 0000000000091777 [14:56:26]line Версия ККМ: 001 [14:56:26]line ФМ: 0000000000871756 [14:56:26]line ФД: 201552 [14:56:26]line ФПД: 190252729956934 [14:56:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T145626&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201552&fm=190252729956934&tin=02508201610067®Number=0000000000091777&sum=20000 [14:56:27]OFD Sender: Processing packet 201552 [packets to send 112, broken 111] [14:56:27]ProducePacketName [14:56:27]name=ofd_packets/00201552 [14:56:27]OFD Sender: To server: pG, [14:56:27]CommunicateWithHost lk.salyk.kg:30040 [14:56:27]ConnectInit lk.salyk.kg [14:56:27]written 0, free lines is 4095 [14:56:27]Connected sock=11 [14:56:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 33 70 08 01 73 01 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 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 49 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 50 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 3A 01 00 00 F4 03 04 00 1A 03 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 50 13 03 00 35 04 06 00 AD 08 AA 62 FA 46 45 DC 62 A8 8C A1 DF 39 [14:56:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 1E 84 47 00 1C 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 50 13 03 00 F4 03 04 00 C3 AE 1C 67 B6 04 01 00 00 91 26 D1 67 3E 76 87 CB [14:56:27]CommunicateWithHost err = 0 [14:56:27]CheckOFDResponse [14:56:27]1017 (14) - 77093643461234 [14:56:27]1041 (16) - 0000000000871756 [14:56:27]1040 (4) - 201552 [14:56:27]1012 (4) - 26.10.2024 08:56 [14:56:27]1206 (1) - 0 [14:56:27]OFD Sender: Remove packet 201552 [14:56:27]ProducePacketName [14:56:27]name=ofd_packets/00201552 [14:56:27]NVStorageDeleteData [14:56:27]Write to MH i2c: 01 00 00 13 26 39 [14:56:27]Write i2c OK [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: 01 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: 01 07 00 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: 01 07 00 13 26 00 00 00 00 00 96 0C E2 [14:56:27]RasterBufferAndPrint [14:56:27]line [14:56:27]line [14:56:27]line [14:56:27]line [14:56:27]line [14:56:27]written 0, free lines is 3228 [14:56:27]MH_Cut [14:56:27]Write to MH i2c: D1 01 00 1A 26 01 12 [14:56:27]Write i2c OK [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: D1 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: D1 01 00 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: D1 01 00 1A 26 00 11 [14:56:27]Write to MH i2c: 01 00 00 1B 26 41 [14:56:27]Write i2c OK [14:56:27]MH_I2C_Read... [14:56:28]OFD Sender: No OFD packet to send [14:56:28]*** Cut start [14:56:28]*** Purtial cut [14:56:28]*** Stage 1: CUTSNS_PIN = 1 [14:56:28]Read from MH i2c: 01 [14:56:28]MH_I2C_Read... [14:56:28]*** Stop cut motor [14:56:28]*** Cut end [14:56:28]Read from MH i2c: 01 07 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: 01 07 00 1B 26 00 00 00 00 00 FF 0F 56 [14:56:28]process_action close_receipt done [14:56:28]requested_data is exist [14:56:28]produce_requested_data [14:56:28]requested_item fm.sn is exist - process it [14:56:28]wFMCommunicate request_size=4 [14:56:28]MH_SAM_APDU [14:56:28]CAPDU: 80 11 00 00 [14:56:28]Write to MH i2c: E2 08 00 1C 26 80 11 00 00 00 00 00 00 BC [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:28]Read from MH i2c: E2 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 17 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 17 00 1C 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 11 [14:56:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:56:28]wFMCommunicate OK [14:56:28]requested_item fd.num is exist - process it [14:56:28]SAM_PROTO_GetFieldsCounters [14:56:28]wFMCommunicate request_size=4 [14:56:28]MH_SAM_APDU [14:56:28]CAPDU: 80 13 00 00 [14:56:28]Write to MH i2c: E2 08 00 1D 26 80 13 00 00 00 00 00 00 BF [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:28]Read from MH i2c: E2 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 62 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 62 00 1D 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 50 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 20 [14:56:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 50 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:56:28]wFMCommunicate OK [14:56:28]SAM_PROTO_GetFieldsCounters done [14:56:28]requested_item shift.num is exist - process it [14:56:28]requested_item shift.opened is exist - process it [14:56:28]req_shift_opened [14:56:28]FM_GetShiftState [14:56:28]SAM_PROTO_GetShiftState [14:56:28]wFMCommunicate request_size=4 [14:56:28]MH_SAM_APDU [14:56:28]CAPDU: 80 13 01 00 [14:56:28]Write to MH i2c: E2 08 00 1E 26 80 13 01 00 00 00 00 00 C1 [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:28]Read from MH i2c: E2 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 0E 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 0E 00 1E 26 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D0 [14:56:28]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:56:28]wFMCommunicate OK [14:56:28]SAM_PROTO_GetShiftState done [14:56:28]FM_GetShiftState done [14:56:28]req_shift_opened done [14:56:28]requested_item shift.open_date is exist - process it [14:56:28]req_shift_open_date [14:56:28]req_shift_open_date done [14:56:28]produce_requested_data done [14:56:28]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201552,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:56:28]process_action_free close_receipt [14:56:28]json_value_free [14:56:28]json_value_free done [14:56:28]process_json_proto returns [14:56:28]Send response to host [14:56:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201552,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:56:28]free response buf [14:56:28]execute_script done [14:56:28]execute_script returns [14:56:28]free content buf [14:56:28]Sock 9.Close socket [14:56:28]Sock 9.Thread stoped [14:56:33]OFD Sender: No OFD packet to send [14:56:38]OFD Sender: No OFD packet to send [14:56:43]OFD Sender: No OFD packet to send [14:56:48]OFD Sender: No OFD packet to send [14:56:53]OFD Sender: No OFD packet to send [14:56:58]OFD Sender: No OFD packet to send [14:57:03]OFD Sender: No OFD packet to send [14:57:04]accept exits with 10 [14:57:04]New connection [14:57:04]New thread 3066834276 created [14:57:04]Thread 3066690916 joined [14:57:04]Waiting for new connection... [14:57:04] Sock 10.Parse request [14:57:04]Sock 10.Check first char [14:57:04]Sock 10.First char is OK [14:57:04]request: POST /json_proto HTTP/1.0 [14:57:04]Method: POST [14:57:04]URL: /json_proto [14:57:04]Method is POST - this is cgi request [14:57:04]url: /json_proto [14:57:04]query_string will be loaded in cgi processing [14:57:04]execute_cgi json_proto POST (null) [14:57:04]execute_cgi path=json_proto method=POST [14:57:04]POST find Content-Length [14:57:04]Host: 172.17.63.195:8080 [14:57:04]Content-Length: 682 [14:57:04]Content-Type: application/json [14:57:04] [14:57:04]POST finish read [14:57:04]Found Content-Length = 682 [14:57:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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" ] } } [14:57:04]execute_script... [14:57: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)449306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "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" ] } } [14:57:04]POST & json_proto [14:57:04]process_json_proto [14:57:04]json parsed OK: [14:57:04]protocol is kg_v1.0 [14:57:04]action value=close_receipt [14:57:04]process_action close_receipt [14:57:04]cmd_close_receipt [14:57:04]MH_GetDate [14:57:04]Write to MH i2c: F0 00 00 1F 26 34 [14:57:04]Write i2c OK [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: F0 [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: F0 09 00 [14:57:04]MH_I2C_Read... [14:57:04]Read from MH i2c: F0 09 00 1F 26 00 42 03 1D 67 68 46 19 67 34 [14:57:04]GetLastDocTimeStamp 1729954586 [14:57:04]current date 1729954626 [14:57:04]FM_GetShiftState [14:57:04]SAM_PROTO_GetShiftState [14:57:04]wFMCommunicate request_size=4 [14:57:04]MH_SAM_APDU [14:57:04]CAPDU: 80 13 01 00 [14:57:04]Write to MH i2c: E2 08 00 20 26 80 13 01 00 00 00 00 00 C3 [14:57:04]Write i2c OK [14:57:04]MH_I2C_Read... [14:57:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:05]Read from MH i2c: E2 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: E2 0E 00 [14:57:05]MH_I2C_Read... [14:57:05]Read from MH i2c: E2 0E 00 20 26 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D2 [14:57:05]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:57:05]wFMCommunicate OK [14:57:05]SAM_PROTO_GetShiftState done [14:57:05]FM_GetShiftState done [14:57:05]opened in 1729900879 [14:57:05]opened+sec_in_day 1729987279 [14:57:05]quantity*price = 100021 [14:57:05]sum+1 = 100023 [14:57:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 315 26.10.2024 14:57 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201553 ФПД: 280618943340607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T145706&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201553&fm=280618943340607&tin=02508201610067®Number=0000000000091777&sum=100000 [14:57:06]StoreToDocumentArchive [14:57:06]shift 543 fd 201553 [14:57:06]save to /storage/0543/doc_00201553 [14:57:06]save last doc name /storage/0543/doc_00201553 to /storage/kkm_last_doc_name [14:57:06]save OK [14:57:06]Clear old archive folders... [14:57:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:57:06]tlvbuf is B6EBD8B0 [14:57:06]SAM_PROTO_ClearQueue [14:57:06]wFMCommunicate request_size=4 [14:57:06]MH_SAM_APDU [14:57:06]CAPDU: 80 09 00 00 [14:57:06]Write to MH i2c: E2 08 00 2D 26 80 09 00 00 00 00 00 00 C5 [14:57:06]Write i2c OK [14:57:06]MH_I2C_Read... [14:57:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:06]Read from MH i2c: E2 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 03 00 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 03 00 2D 26 00 90 00 C7 [14:57:06]RAPDU: 90 00 [14:57:06]wFMCommunicate OK [14:57:06]SAM_PROTO_ClearQueue done [14:57:06]KKMCreateOFDPacket [14:57:06]OFDProtocolAddRootSTLVToBuf [14:57:06]FM_MakeSignedData [14:57:06]FM_MakeSignedData [14:57:06]SAM_PROTO_SignData [14:57:06]wFMCommunicate request_size=4 [14:57:06]MH_SAM_APDU [14:57:06]CAPDU: 80 0D 01 02 [14:57:06]Write to MH i2c: E2 08 00 2E 26 80 0D 01 02 00 00 00 00 CD [14:57:06]Write i2c OK [14:57:06]MH_I2C_Read... [14:57:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:06]Read from MH i2c: E2 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 03 00 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 03 00 2E 26 00 90 00 C8 [14:57:06]RAPDU: 90 00 [14:57:06]wFMCommunicate OK [14:57:06]wFMCommunicate request_size=255 [14:57:06]MH_SAM_APDU [14:57: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 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 7E 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 3B 01 00 00 F4 03 04 00 42 03 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 51 13 03 00 35 04 06 00 FF [14:57:06]Write to MH i2c: E2 02 01 2F 26 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 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 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 7E 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 3B 01 00 00 F4 03 04 00 42 03 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 51 13 03 00 35 04 06 00 FF 00 00 0B [14:57:06]Write i2c OK [14:57:06]MH_I2C_Read... [14:57:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:06]Read from MH i2c: E2 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 03 00 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 03 00 2F 26 00 90 00 C9 [14:57:06]RAPDU: 90 00 [14:57:06]wFMCommunicate OK [14:57:06]wFMCommunicate request_size=10 [14:57:06]MH_SAM_APDU [14:57:06]CAPDU: 80 0D 02 02 05 38 B0 6F 60 3F [14:57:06]Write to MH i2c: E2 0D 00 30 26 80 0D 02 02 05 00 38 B0 6F 60 3F 00 00 D0 [14:57:06]Write i2c OK [14:57:06]MH_I2C_Read... [14:57:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:06]Read from MH i2c: E2 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 03 00 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 03 00 30 26 00 90 00 CA [14:57:06]RAPDU: 90 00 [14:57:06]wFMCommunicate OK [14:57:06]wFMCommunicate request_size=4 [14:57:06]MH_SAM_APDU [14:57:06]CAPDU: 80 0D 03 02 [14:57:06]Write to MH i2c: E2 08 00 31 26 80 0D 03 02 00 00 00 00 D2 [14:57:06]Write i2c OK [14:57:06]MH_I2C_Read... [14:57:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:06]Read from MH i2c: E2 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 0B 00 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 0B 00 31 26 00 FF F0 AA AD 6C A5 FA 8A 90 00 AE [14:57:06]RAPDU: FF F0 AA AD 6C A5 FA 8A 90 00 [14:57:06]wFMCommunicate OK [14:57:06]SAM_PROTO_SignData done [14:57:06]FM_MakeSignedData done [14:57:06]CreateOFDProtocolMessage [14:57:06]wFMCommunicate request_size=4 [14:57:06]MH_SAM_APDU [14:57:06]CAPDU: 80 11 00 00 [14:57:06]Write to MH i2c: E2 08 00 32 26 80 11 00 00 00 00 00 00 D2 [14:57:06]Write i2c OK [14:57:06]MH_I2C_Read... [14:57:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:06]Read from MH i2c: E2 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 17 00 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: E2 17 00 32 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 27 [14:57:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:57:06]wFMCommunicate OK [14:57:06]CreateOFDProtocolMessage done [14:57:06]OFDSenderStorePacket 201553 [14:57:06]StoreOFDPacket docnum=201553 [14:57:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 BD DB 07 01 FD 12 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 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 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 7E 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 3B 01 00 00 F4 03 04 00 42 03 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 51 13 03 00 35 04 06 00 FF 38 B0 6F 60 3F FF F0 AA AD 6C A5 FA 8A [14:57:06]CheckFolder [14:57:06]dirname=/storage/ofd_packets [14:57:06]CheckFolder done [14:57:06]ProducePacketName [14:57:06]name=ofd_packets/00201553 [14:57:06]NVStorageSaveData ofd_packets/00201553 [14:57:06]File name is /storage/ofd_packets/00201553 [14:57:06]Write 301 bytes [14:57:06]NVStorageSaveData done [14:57:06]OFDSenderStorePacket done [14:57:06]KKMCreateOFDPacket done [14:57:06]NVStorageSaveData kkm_last_timestamp [14:57:06]File name is /storage/kkm_last_timestamp [14:57:06]Write 4 bytes [14:57:06]NVStorageSaveData done [14:57:06]ExternCall_PrintAddStr [14:57:06]wPrintStart [14:57:06]Write to MH i2c: 01 00 00 33 26 59 [14:57:06]Write i2c OK [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: 01 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: 01 07 00 [14:57:06]MH_I2C_Read... [14:57:06]Read from MH i2c: 01 07 00 33 26 00 00 00 00 00 FF 0F 6E [14:57:06]RasterBufferAndPrint [14:57:06]line Счет N : (1)449306 [14:57:06]line ИНН: 02508201610067 [14:57:06]line Контрольно-Кассовый Чек [14:57:06]line ПРОДАЖА [14:57:06]line ТРК (МРК, ГНК) : 61 [14:57:06]line Товар: 2710124500 [14:57:06]line Аи-95-К-3 [14:57:06]line 13.480 * 74.20 [14:57:06]line = 1000.22 [14:57:06]line НДС 12% НСП 1% [14:57:06]line > о реализуемом товаре [14:57:06]line ОКРУГЛЕНИЕ: -0.22 [14:57:06]line ИТОГО: 1000.00 [14:57:06]line Внесено: 1000.00 [14:57:06]line СДАЧА: 0.00 [14:57:06]line НСП 1% : 8.85 [14:57:06]line НДС 12% : 106.22 [14:57:06]line Наличными: 1000.00 [14:57:06]line Безнал.: 0.00 [14:57:06]line Место: АЗС № 171 "Партнер Нефть" [14:57:06]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:57:06]line СНО: Общий режим [14:57:06]line Чек 315 26.10.2024 14:57 [14:57:06]line Смена: 543 ФФД: 1.0 [14:57:06]line ЗНМ: 0300000109 [14:57:06]line РНМ: 0000000000091777 [14:57:06]line Версия ККМ: 001 [14:57:06]line ФМ: 0000000000871756 [14:57:06]line ФД: 201553 [14:57:06]line ФПД: 280618943340607 [14:57:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T145706&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201553&fm=280618943340607&tin=02508201610067®Number=0000000000091777&sum=100000 [14:57:06]OFD Sender: Processing packet 201553 [packets to send 112, broken 111] [14:57:06]ProducePacketName [14:57:06]name=ofd_packets/00201553 [14:57:06]OFD Sender: To server: pG, [14:57:06]CommunicateWithHost lk.salyk.kg:30040 [14:57:06]ConnectInit lk.salyk.kg [14:57:07]written 0, free lines is 4095 [14:57:07]Connected sock=9 [14:57:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 BD DB 07 01 FD 12 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 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 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 7E 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 3B 01 00 00 F4 03 04 00 42 03 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 51 13 03 00 35 04 06 00 FF 38 B0 6F 60 3F FF F0 AA AD 6C A5 FA 8A [14:57:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 6B D9 47 00 00 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 38 37 31 37 35 36 10 04 04 00 51 13 03 00 F4 03 04 00 EA AE 1C 67 B6 04 01 00 00 5C 74 AE DA D9 89 BF D0 [14:57:07]CommunicateWithHost err = 0 [14:57:07]CheckOFDResponse [14:57:07]1017 (14) - 77093643461234 [14:57:07]1041 (16) - 0000000000871756 [14:57:07]1040 (4) - 201553 [14:57:07]1012 (4) - 26.10.2024 08:57 [14:57:07]1206 (1) - 0 [14:57:07]OFD Sender: Remove packet 201553 [14:57:07]ProducePacketName [14:57:07]name=ofd_packets/00201553 [14:57:07]NVStorageDeleteData [14:57:07]Write to MH i2c: 01 00 00 5E 26 84 [14:57:07]Write i2c OK [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: 01 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: 01 07 00 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: 01 07 00 5E 26 00 00 00 00 00 92 0C 29 [14:57:07]RasterBufferAndPrint [14:57:07]line [14:57:07]line [14:57:07]line [14:57:07]line [14:57:07]line [14:57:07]written 0, free lines is 3223 [14:57:07]MH_Cut [14:57:07]Write to MH i2c: D1 01 00 65 26 01 5D [14:57:07]Write i2c OK [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: D1 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: D1 01 00 [14:57:07]MH_I2C_Read... [14:57:07]Read from MH i2c: D1 01 00 65 26 00 5C [14:57:07]Write to MH i2c: 01 00 00 66 26 8C [14:57:07]Write i2c OK [14:57:07]MH_I2C_Read... [14:57:07]OFD Sender: No OFD packet to send [14:57:08]*** Cut start [14:57:08]*** Purtial cut [14:57:08]*** Stage 1: CUTSNS_PIN = 1 [14:57:08]Read from MH i2c: 01 [14:57:08]MH_I2C_Read... [14:57:08]*** Stop cut motor [14:57:08]*** Cut end [14:57:08]Read from MH i2c: 01 07 00 [14:57:08]MH_I2C_Read... [14:57:08]Read from MH i2c: 01 07 00 66 26 00 00 00 00 00 FF 0F A1 [14:57:08]process_action close_receipt done [14:57:08]requested_data is exist [14:57:08]produce_requested_data [14:57:08]requested_item fm.sn is exist - process it [14:57:08]wFMCommunicate request_size=4 [14:57:08]MH_SAM_APDU [14:57:08]CAPDU: 80 11 00 00 [14:57:08]Write to MH i2c: E2 08 00 67 26 80 11 00 00 00 00 00 00 07 [14:57:08]Write i2c OK [14:57:08]MH_I2C_Read... [14:57:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:08]Read from MH i2c: E2 [14:57:08]MH_I2C_Read... [14:57:08]Read from MH i2c: E2 17 00 [14:57:08]MH_I2C_Read... [14:57:08]Read from MH i2c: E2 17 00 67 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5C [14:57:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:57:08]wFMCommunicate OK [14:57:08]requested_item fd.num is exist - process it [14:57:08]SAM_PROTO_GetFieldsCounters [14:57:08]wFMCommunicate request_size=4 [14:57:08]MH_SAM_APDU [14:57:08]CAPDU: 80 13 00 00 [14:57:08]Write to MH i2c: E2 08 00 68 26 80 13 00 00 00 00 00 00 0A [14:57:08]Write i2c OK [14:57:08]MH_I2C_Read... [14:57:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:08]Read from MH i2c: E2 [14:57:08]MH_I2C_Read... [14:57:08]Read from MH i2c: E2 62 00 [14:57:08]MH_I2C_Read... [14:57:08]Read from MH i2c: E2 62 00 68 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 51 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 6F [14:57:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 51 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:57:08]wFMCommunicate OK [14:57:08]SAM_PROTO_GetFieldsCounters done [14:57:08]requested_item shift.num is exist - process it [14:57:08]requested_item shift.opened is exist - process it [14:57:08]req_shift_opened [14:57:08]FM_GetShiftState [14:57:08]SAM_PROTO_GetShiftState [14:57:08]wFMCommunicate request_size=4 [14:57:08]MH_SAM_APDU [14:57:08]CAPDU: 80 13 01 00 [14:57:08]Write to MH i2c: E2 08 00 69 26 80 13 01 00 00 00 00 00 0C [14:57:08]Write i2c OK [14:57:08]MH_I2C_Read... [14:57:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:08]Read from MH i2c: E2 [14:57:08]MH_I2C_Read... [14:57:08]Read from MH i2c: E2 0E 00 [14:57:08]MH_I2C_Read... [14:57:08]Read from MH i2c: E2 0E 00 69 26 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 1B [14:57:08]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:57:08]wFMCommunicate OK [14:57:08]SAM_PROTO_GetShiftState done [14:57:08]FM_GetShiftState done [14:57:08]req_shift_opened done [14:57:08]requested_item shift.open_date is exist - process it [14:57:08]req_shift_open_date [14:57:08]req_shift_open_date done [14:57:08]produce_requested_data done [14:57:08]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201553,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:57:08]process_action_free close_receipt [14:57:08]json_value_free [14:57:08]json_value_free done [14:57:08]process_json_proto returns [14:57:08]Send response to host [14:57:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201553,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:57:08]free response buf [14:57:08]execute_script done [14:57:08]execute_script returns [14:57:08]free content buf [14:57:08]Sock 10.Close socket [14:57:08]Sock 10.Thread stoped [14:57:12]OFD Sender: No OFD packet to send [14:57:17]OFD Sender: No OFD packet to send [14:57:22]OFD Sender: No OFD packet to send [14:57:27]OFD Sender: No OFD packet to send [14:57:32]OFD Sender: No OFD packet to send [14:57:37]OFD Sender: No OFD packet to send [14:57:42]OFD Sender: No OFD packet to send [14:57:47]OFD Sender: No OFD packet to send [14:57:52]OFD Sender: No OFD packet to send [14:57:57]OFD Sender: No OFD packet to send [14:58:02]OFD Sender: No OFD packet to send [14:58:07]OFD Sender: No OFD packet to send [14:58:12]OFD Sender: No OFD packet to send [14:58:17]OFD Sender: No OFD packet to send [14:58:22]OFD Sender: No OFD packet to send [14:58:27]OFD Sender: No OFD packet to send [14:58:32]OFD Sender: No OFD packet to send [14:58:37]OFD Sender: No OFD packet to send [14:58:42]OFD Sender: No OFD packet to send [14:58:47]OFD Sender: No OFD packet to send [14:58:52]OFD Sender: No OFD packet to send [14:58:57]OFD Sender: No OFD packet to send [14:59:02]OFD Sender: No OFD packet to send [14:59:07]OFD Sender: No OFD packet to send [14:59:12]OFD Sender: No OFD packet to send [14:59:17]OFD Sender: No OFD packet to send [14:59:22]OFD Sender: No OFD packet to send [14:59:27]OFD Sender: No OFD packet to send [14:59:32]OFD Sender: No OFD packet to send [14:59:34]accept exits with 8 [14:59:34]New connection [14:59:34]New thread 3066690916 created [14:59:34]Thread 3066834276 joined [14:59:34]Waiting for new connection... [14:59:34] Sock 8.Parse request [14:59:34]Sock 8.Check first char [14:59:34]Sock 8.First char is OK [14:59:34]request: POST /json_proto HTTP/1.0 [14:59:34]Method: POST [14:59:34]URL: /json_proto [14:59:34]Method is POST - this is cgi request [14:59:34]url: /json_proto [14:59:34]query_string will be loaded in cgi processing [14:59:34]execute_cgi json_proto POST (null) [14:59:34]execute_cgi path=json_proto method=POST [14:59:34]POST find Content-Length [14:59:34]Host: 172.17.63.195:8080 [14:59:34]Content-Length: 674 [14:59:34]Content-Type: application/json [14:59:34] [14:59:34]POST finish read [14:59:34]Found Content-Length = 674 [14:59:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [14:59:34]execute_script... [14:59: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)449309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [14:59:34]POST & json_proto [14:59:34]process_json_proto [14:59:34]json parsed OK: [14:59:34]protocol is kg_v1.0 [14:59:34]action value=close_receipt [14:59:34]process_action close_receipt [14:59:34]cmd_close_receipt [14:59:34]MH_GetDate [14:59:34]Write to MH i2c: F0 00 00 6A 26 7F [14:59:34]Write i2c OK [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: F0 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: F0 09 00 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: F0 09 00 6A 26 00 D7 03 1D 67 68 46 19 67 14 [14:59:34]GetLastDocTimeStamp 1729954626 [14:59:34]current date 1729954775 [14:59:34]FM_GetShiftState [14:59:34]SAM_PROTO_GetShiftState [14:59:34]wFMCommunicate request_size=4 [14:59:34]MH_SAM_APDU [14:59:34]CAPDU: 80 13 01 00 [14:59:34]Write to MH i2c: E2 08 00 6B 26 80 13 01 00 00 00 00 00 0E [14:59:34]Write i2c OK [14:59:34]MH_I2C_Read... [14:59:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:34]Read from MH i2c: E2 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: E2 0E 00 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: E2 0E 00 6B 26 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 1D [14:59:34]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:59:34]wFMCommunicate OK [14:59:34]SAM_PROTO_GetShiftState done [14:59:34]FM_GetShiftState done [14:59:34]opened in 1729900879 [14:59:34]opened+sec_in_day 1729987279 [14:59:34]quantity*price = 50063 [14:59:34]sum+1 = 50064 [14:59:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 316 26.10.2024 14:59 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201554 ФПД: 146081090482870 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T145935&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201554&fm=146081090482870&tin=02508201610067®Number=0000000000091777&sum=50000 [14:59:35]StoreToDocumentArchive [14:59:35]shift 543 fd 201554 [14:59:35]save to /storage/0543/doc_00201554 [14:59:35]save last doc name /storage/0543/doc_00201554 to /storage/kkm_last_doc_name [14:59:35]save OK [14:59:35]Clear old archive folders... [14:59:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:59:35]tlvbuf is 01F73750 [14:59:35]SAM_PROTO_ClearQueue [14:59:35]wFMCommunicate request_size=4 [14:59:35]MH_SAM_APDU [14:59:35]CAPDU: 80 09 00 00 [14:59:35]Write to MH i2c: E2 08 00 78 26 80 09 00 00 00 00 00 00 10 [14:59:35]Write i2c OK [14:59:35]MH_I2C_Read... [14:59:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:35]Read from MH i2c: E2 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 03 00 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 03 00 78 26 00 90 00 12 [14:59:35]RAPDU: 90 00 [14:59:35]wFMCommunicate OK [14:59:35]SAM_PROTO_ClearQueue done [14:59:35]KKMCreateOFDPacket [14:59:35]OFDProtocolAddRootSTLVToBuf [14:59:35]FM_MakeSignedData [14:59:35]FM_MakeSignedData [14:59:35]SAM_PROTO_SignData [14:59:35]wFMCommunicate request_size=4 [14:59:35]MH_SAM_APDU [14:59:35]CAPDU: 80 0D 01 02 [14:59:35]Write to MH i2c: E2 08 00 79 26 80 0D 01 02 00 00 00 00 18 [14:59:35]Write i2c OK [14:59:35]MH_I2C_Read... [14:59:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:35]Read from MH i2c: E2 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 03 00 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 03 00 79 26 00 90 00 13 [14:59:35]RAPDU: 90 00 [14:59:35]wFMCommunicate OK [14:59:35]wFMCommunicate request_size=255 [14:59:35]MH_SAM_APDU [14:59:35]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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 3C 01 00 00 F4 03 04 00 D7 03 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 52 13 03 00 35 04 06 00 84 DC 27 81 [14:59:35]Write to MH i2c: E2 02 01 7A 26 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 3C 01 00 00 F4 03 04 00 D7 03 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 52 13 03 00 35 04 06 00 84 DC 27 81 00 00 56 [14:59:35]Write i2c OK [14:59:35]MH_I2C_Read... [14:59:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:36]Read from MH i2c: E2 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 03 00 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 03 00 7A 26 00 90 00 14 [14:59:36]RAPDU: 90 00 [14:59:36]wFMCommunicate OK [14:59:36]wFMCommunicate request_size=7 [14:59:36]MH_SAM_APDU [14:59:36]CAPDU: 80 0D 02 02 02 B2 B6 [14:59:36]Write to MH i2c: E2 0A 00 7B 26 80 0D 02 02 02 00 B2 B6 00 00 87 [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:36]Read from MH i2c: E2 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 03 00 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 03 00 7B 26 00 90 00 15 [14:59:36]RAPDU: 90 00 [14:59:36]wFMCommunicate OK [14:59:36]wFMCommunicate request_size=4 [14:59:36]MH_SAM_APDU [14:59:36]CAPDU: 80 0D 03 02 [14:59:36]Write to MH i2c: E2 08 00 7C 26 80 0D 03 02 00 00 00 00 1D [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:36]Read from MH i2c: E2 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 0B 00 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 0B 00 7C 26 00 68 15 1C 36 DF E9 E3 32 90 00 CA [14:59:36]RAPDU: 68 15 1C 36 DF E9 E3 32 90 00 [14:59:36]wFMCommunicate OK [14:59:36]SAM_PROTO_SignData done [14:59:36]FM_MakeSignedData done [14:59:36]CreateOFDProtocolMessage [14:59:36]wFMCommunicate request_size=4 [14:59:36]MH_SAM_APDU [14:59:36]CAPDU: 80 11 00 00 [14:59:36]Write to MH i2c: E2 08 00 7D 26 80 11 00 00 00 00 00 00 1D [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:36]Read from MH i2c: E2 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 17 00 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 17 00 7D 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 72 [14:59:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:59:36]wFMCommunicate OK [14:59:36]CreateOFDProtocolMessage done [14:59:36]OFDSenderStorePacket 201554 [14:59:36]StoreOFDPacket docnum=201554 [14:59:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 2D 6A 04 01 71 D5 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 3C 01 00 00 F4 03 04 00 D7 03 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 52 13 03 00 35 04 06 00 84 DC 27 81 B2 B6 68 15 1C 36 DF E9 E3 32 [14:59:36]CheckFolder [14:59:36]dirname=/storage/ofd_packets [14:59:36]CheckFolder done [14:59:36]ProducePacketName [14:59:36]name=ofd_packets/00201554 [14:59:36]NVStorageSaveData ofd_packets/00201554 [14:59:36]File name is /storage/ofd_packets/00201554 [14:59:36]Write 298 bytes [14:59:36]NVStorageSaveData done [14:59:36]OFDSenderStorePacket done [14:59:36]KKMCreateOFDPacket done [14:59:36]NVStorageSaveData kkm_last_timestamp [14:59:36]File name is /storage/kkm_last_timestamp [14:59:36]Write 4 bytes [14:59:36]NVStorageSaveData done [14:59:36]ExternCall_PrintAddStr [14:59:36]wPrintStart [14:59:36]Write to MH i2c: 01 00 00 7E 26 A4 [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: 01 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: 01 07 00 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: 01 07 00 7E 26 00 00 00 00 00 FF 0F B9 [14:59:36]RasterBufferAndPrint [14:59:36]line Счет N : (1)449309 [14:59:36]line ИНН: 02508201610067 [14:59:36]line Контрольно-Кассовый Чек [14:59:36]line ПРОДАЖА [14:59:36]line ТРК (МРК, ГНК) : 33 [14:59:36]line Товар: 2710194210 [14:59:36]line ДТ-К-2 [14:59:36]line 6.570 * 76.20 [14:59:36]line = 500.63 [14:59:36]line НДС 12% НСП 1% [14:59:36]line > о реализуемом товаре [14:59:36]line ОКРУГЛЕНИЕ: -0.63 [14:59:36]line ИТОГО: 500.00 [14:59:36]line Внесено: 500.00 [14:59:36]line СДАЧА: 0.00 [14:59:36]line НСП 1% : 4.43 [14:59:36]line НДС 12% : 53.16 [14:59:36]line Наличными: 500.00 [14:59:36]line Безнал.: 0.00 [14:59:36]line Место: АЗС № 171 "Партнер Нефть" [14:59:36]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [14:59:36]line СНО: Общий режим [14:59:36]line Чек 316 26.10.2024 14:59 [14:59:36]line Смена: 543 ФФД: 1.0 [14:59:36]line ЗНМ: 0300000109 [14:59:36]line РНМ: 0000000000091777 [14:59:36]line Версия ККМ: 001 [14:59:36]line ФМ: 0000000000871756 [14:59:36]line ФД: 201554 [14:59:36]line ФПД: 146081090482870 [14:59:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T145935&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201554&fm=146081090482870&tin=02508201610067®Number=0000000000091777&sum=50000 [14:59:36]OFD Sender: Processing packet 201554 [packets to send 112, broken 111] [14:59:36]ProducePacketName [14:59:36]name=ofd_packets/00201554 [14:59:36]OFD Sender: To server: pG, [14:59:36]CommunicateWithHost lk.salyk.kg:30040 [14:59:36]ConnectInit lk.salyk.kg [14:59:36]written 0, free lines is 4095 [14:59:36]Connected sock=10 [14:59:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 2D 6A 04 01 71 D5 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 3C 01 00 00 F4 03 04 00 D7 03 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 52 13 03 00 35 04 06 00 84 DC 27 81 B2 B6 68 15 1C 36 DF E9 E3 32 [14:59:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A6 0F 47 00 90 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 52 13 03 00 F4 03 04 00 80 AF 1C 67 B6 04 01 00 00 E2 06 61 5D 45 01 9F 4A [14:59:36]CommunicateWithHost err = 0 [14:59:36]CheckOFDResponse [14:59:36]1017 (14) - 77093643461234 [14:59:36]1041 (16) - 0000000000871756 [14:59:36]1040 (4) - 201554 [14:59:36]1012 (4) - 26.10.2024 08:59 [14:59:36]1206 (1) - 0 [14:59:36]OFD Sender: Remove packet 201554 [14:59:36]ProducePacketName [14:59:36]name=ofd_packets/00201554 [14:59:36]NVStorageDeleteData [14:59:36]Write to MH i2c: 01 00 00 A9 26 CF [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: 01 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: 01 07 00 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: 01 07 00 A9 26 00 00 00 00 00 9A 0C 7C [14:59:36]RasterBufferAndPrint [14:59:36]line [14:59:36]line [14:59:36]line [14:59:36]line [14:59:36]line [14:59:36]written 0, free lines is 3232 [14:59:36]MH_Cut [14:59:36]Write to MH i2c: D1 01 00 B0 26 01 A8 [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: D1 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: D1 01 00 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: D1 01 00 B0 26 00 A7 [14:59:36]Write to MH i2c: 01 00 00 B1 26 D7 [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:37]OFD Sender: No OFD packet to send [14:59:37]*** Cut start [14:59:37]*** Purtial cut [14:59:37]*** Stage 1: CUTSNS_PIN = 1 [14:59:38]Read from MH i2c: 01 [14:59:38]MH_I2C_Read... [14:59:38]*** Stop cut motor [14:59:38]*** Cut end [14:59:38]Read from MH i2c: 01 07 00 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: 01 07 00 B1 26 00 00 00 00 00 FF 0F EC [14:59:38]process_action close_receipt done [14:59:38]requested_data is exist [14:59:38]produce_requested_data [14:59:38]requested_item fm.sn is exist - process it [14:59:38]wFMCommunicate request_size=4 [14:59:38]MH_SAM_APDU [14:59:38]CAPDU: 80 11 00 00 [14:59:38]Write to MH i2c: E2 08 00 B2 26 80 11 00 00 00 00 00 00 52 [14:59:38]Write i2c OK [14:59:38]MH_I2C_Read... [14:59:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:38]Read from MH i2c: E2 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: E2 17 00 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: E2 17 00 B2 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A7 [14:59:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [14:59:38]wFMCommunicate OK [14:59:38]requested_item fd.num is exist - process it [14:59:38]SAM_PROTO_GetFieldsCounters [14:59:38]wFMCommunicate request_size=4 [14:59:38]MH_SAM_APDU [14:59:38]CAPDU: 80 13 00 00 [14:59:38]Write to MH i2c: E2 08 00 B3 26 80 13 00 00 00 00 00 00 55 [14:59:38]Write i2c OK [14:59:38]MH_I2C_Read... [14:59:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:38]Read from MH i2c: E2 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: E2 62 00 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: E2 62 00 B3 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 52 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 BE [14:59:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 52 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:59:38]wFMCommunicate OK [14:59:38]SAM_PROTO_GetFieldsCounters done [14:59:38]requested_item shift.num is exist - process it [14:59:38]requested_item shift.opened is exist - process it [14:59:38]req_shift_opened [14:59:38]FM_GetShiftState [14:59:38]SAM_PROTO_GetShiftState [14:59:38]wFMCommunicate request_size=4 [14:59:38]MH_SAM_APDU [14:59:38]CAPDU: 80 13 01 00 [14:59:38]Write to MH i2c: E2 08 00 B4 26 80 13 01 00 00 00 00 00 57 [14:59:38]Write i2c OK [14:59:38]MH_I2C_Read... [14:59:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:38]Read from MH i2c: E2 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: E2 0E 00 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: E2 0E 00 B4 26 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 66 [14:59:38]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [14:59:38]wFMCommunicate OK [14:59:38]SAM_PROTO_GetShiftState done [14:59:38]FM_GetShiftState done [14:59:38]req_shift_opened done [14:59:38]requested_item shift.open_date is exist - process it [14:59:38]req_shift_open_date [14:59:38]req_shift_open_date done [14:59:38]produce_requested_data done [14:59:38]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201554,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [14:59:38]process_action_free close_receipt [14:59:38]json_value_free [14:59:38]json_value_free done [14:59:38]process_json_proto returns [14:59:38]Send response to host [14:59:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201554,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [14:59:38]free response buf [14:59:38]execute_script done [14:59:38]execute_script returns [14:59:38]free content buf [14:59:38]Sock 8.Close socket [14:59:38]Sock 8.Thread stoped [14:59:42]OFD Sender: No OFD packet to send [14:59:47]OFD Sender: No OFD packet to send [14:59:52]OFD Sender: No OFD packet to send [14:59:57]OFD Sender: No OFD packet to send [15:00:02]OFD Sender: No OFD packet to send [15:00:07]OFD Sender: No OFD packet to send [15:00:12]OFD Sender: No OFD packet to send [15:00:17]OFD Sender: No OFD packet to send [15:00:22]OFD Sender: No OFD packet to send [15:00:27]OFD Sender: No OFD packet to send [15:00:32]OFD Sender: No OFD packet to send [15:00:35]accept exits with 9 [15:00:35]New connection [15:00:35]New thread 3066834276 created [15:00:35]Thread 3066690916 joined [15:00:35]Waiting for new connection... [15:00:35] Sock 9.Parse request [15:00:35]Sock 9.Check first char [15:00:35]Sock 9.First char is OK [15:00:35]request: POST /json_proto HTTP/1.0 [15:00:35]Method: POST [15:00:35]URL: /json_proto [15:00:35]Method is POST - this is cgi request [15:00:35]url: /json_proto [15:00:35]query_string will be loaded in cgi processing [15:00:35]execute_cgi json_proto POST (null) [15:00:35]execute_cgi path=json_proto method=POST [15:00:35]POST find Content-Length [15:00:35]Host: 172.17.63.195:8080 [15:00:35]Content-Length: 812 [15:00:35]Content-Type: application/json [15:00:35] [15:00:35]POST finish read [15:00:35]Found Content-Length = 812 [15:00:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 44.000, "sum" : 3009.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3009.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:35]execute_script... [15:00: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)449308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 44.000, "sum" : 3009.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3009.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:35]POST & json_proto [15:00:35]process_json_proto [15:00:35]json parsed OK: [15:00:35]protocol is kg_v1.0 [15:00:35]action value=close_receipt [15:00:35]process_action close_receipt [15:00:35]cmd_close_receipt [15:00:35]MH_GetDate [15:00:35]Write to MH i2c: F0 00 00 B5 26 CA [15:00:35]Write i2c OK [15:00:35]MH_I2C_Read... [15:00:35]Read from MH i2c: F0 [15:00:35]MH_I2C_Read... [15:00:35]Read from MH i2c: F0 09 00 [15:00:35]MH_I2C_Read... [15:00:35]Read from MH i2c: F0 09 00 B5 26 00 14 04 1D 67 68 46 19 67 9D [15:00:35]GetLastDocTimeStamp 1729954775 [15:00:35]current date 1729954836 [15:00:35]FM_GetShiftState [15:00:35]SAM_PROTO_GetShiftState [15:00:35]wFMCommunicate request_size=4 [15:00:35]MH_SAM_APDU [15:00:35]CAPDU: 80 13 01 00 [15:00:35]Write to MH i2c: E2 08 00 B6 26 80 13 01 00 00 00 00 00 59 [15:00:35]Write i2c OK [15:00:35]MH_I2C_Read... [15:00:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:35]Read from MH i2c: E2 [15:00:35]MH_I2C_Read... [15:00:35]Read from MH i2c: E2 0E 00 [15:00:35]MH_I2C_Read... [15:00:35]Read from MH i2c: E2 0E 00 B6 26 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 68 [15:00:35]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:00:35]wFMCommunicate OK [15:00:35]SAM_PROTO_GetShiftState done [15:00:35]FM_GetShiftState done [15:00:35]opened in 1729900879 [15:00:35]opened+sec_in_day 1729987279 [15:00:35]quantity*price = 300960 [15:00:35]sum+1 = 300961 [15:00:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3009.60 НСП 1% : 26.63 НДС 12% : 319.60 Наличными: 0.00 Безнал.: 3009.60 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 317 26.10.2024 15:00 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871756 ФД: 201555 ФПД: 140430016510820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T150036&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201555&fm=140430016510820&tin=02508201610067®Number=0000000000091777&sum=300960 [15:00:36]StoreToDocumentArchive [15:00:36]shift 543 fd 201555 [15:00:36]save to /storage/0543/doc_00201555 [15:00:36]save last doc name /storage/0543/doc_00201555 to /storage/kkm_last_doc_name [15:00:36]save OK [15:00:36]Clear old archive folders... [15:00:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:00:36]tlvbuf is 01F1E720 [15:00:36]SAM_PROTO_ClearQueue [15:00:36]wFMCommunicate request_size=4 [15:00:36]MH_SAM_APDU [15:00:36]CAPDU: 80 09 00 00 [15:00:36]Write to MH i2c: E2 08 00 C3 26 80 09 00 00 00 00 00 00 5B [15:00:36]Write i2c OK [15:00:36]MH_I2C_Read... [15:00:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:36]Read from MH i2c: E2 [15:00:36]MH_I2C_Read... [15:00:36]Read from MH i2c: E2 03 00 [15:00:36]MH_I2C_Read... [15:00:36]Read from MH i2c: E2 03 00 C3 26 00 90 00 5D [15:00:36]RAPDU: 90 00 [15:00:36]wFMCommunicate OK [15:00:36]SAM_PROTO_ClearQueue done [15:00:36]KKMCreateOFDPacket [15:00:36]OFDProtocolAddRootSTLVToBuf [15:00:36]FM_MakeSignedData [15:00:36]FM_MakeSignedData [15:00:36]SAM_PROTO_SignData [15:00:36]wFMCommunicate request_size=4 [15:00:36]MH_SAM_APDU [15:00:36]CAPDU: 80 0D 01 02 [15:00:36]Write to MH i2c: E2 08 00 C4 26 80 0D 01 02 00 00 00 00 63 [15:00:36]Write i2c OK [15:00:36]MH_I2C_Read... [15:00:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:36]Read from MH i2c: E2 [15:00:36]MH_I2C_Read... [15:00:36]Read from MH i2c: E2 03 00 [15:00:36]MH_I2C_Read... [15:00:36]Read from MH i2c: E2 03 00 C4 26 00 90 00 5E [15:00:36]RAPDU: 90 00 [15:00:36]wFMCommunicate OK [15:00:36]wFMCommunicate request_size=255 [15:00:36]MH_SAM_APDU [15:00:36]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 E0 AB 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A0 97 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 97 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 97 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 14 04 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 53 13 03 00 35 04 06 00 [15:00:36]Write to MH i2c: E2 02 01 C5 26 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 E0 AB 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A0 97 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 97 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 97 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 14 04 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 53 13 03 00 35 04 06 00 00 00 49 [15:00:36]Write i2c OK [15:00:36]MH_I2C_Read... [15:00:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:36]Read from MH i2c: E2 [15:00:36]MH_I2C_Read... [15:00:36]Read from MH i2c: E2 03 00 [15:00:36]MH_I2C_Read... [15:00:36]Read from MH i2c: E2 03 00 C5 26 00 90 00 5F [15:00:36]RAPDU: 90 00 [15:00:36]wFMCommunicate OK [15:00:36]wFMCommunicate request_size=11 [15:00:36]MH_SAM_APDU [15:00:36]CAPDU: 80 0D 02 02 06 7F B8 69 3F FB 64 [15:00:36]Write to MH i2c: E2 0E 00 C6 26 80 0D 02 02 06 00 7F B8 69 3F FB 64 00 00 B0 [15:00:36]Write i2c OK [15:00:36]MH_I2C_Read... [15:00:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:36]Read from MH i2c: E2 [15:00:36]MH_I2C_Read... [15:00:36]Read from MH i2c: E2 03 00 [15:00:36]MH_I2C_Read... [15:00:36]Read from MH i2c: E2 03 00 C6 26 00 90 00 60 [15:00:36]RAPDU: 90 00 [15:00:36]wFMCommunicate OK [15:00:36]wFMCommunicate request_size=4 [15:00:36]MH_SAM_APDU [15:00:36]CAPDU: 80 0D 03 02 [15:00:36]Write to MH i2c: E2 08 00 C7 26 80 0D 03 02 00 00 00 00 68 [15:00:36]Write i2c OK [15:00:36]MH_I2C_Read... [15:00:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:37]Read from MH i2c: E2 [15:00:37]MH_I2C_Read... [15:00:37]Read from MH i2c: E2 0B 00 [15:00:37]MH_I2C_Read... [15:00:37]Read from MH i2c: E2 0B 00 C7 26 00 F1 70 8F 4E 12 97 B8 2A 90 00 32 [15:00:37]RAPDU: F1 70 8F 4E 12 97 B8 2A 90 00 [15:00:37]wFMCommunicate OK [15:00:37]SAM_PROTO_SignData done [15:00:37]FM_MakeSignedData done [15:00:37]CreateOFDProtocolMessage [15:00:37]wFMCommunicate request_size=4 [15:00:37]MH_SAM_APDU [15:00:37]CAPDU: 80 11 00 00 [15:00:37]Write to MH i2c: E2 08 00 C8 26 80 11 00 00 00 00 00 00 68 [15:00:37]Write i2c OK [15:00:37]MH_I2C_Read... [15:00:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:37]Read from MH i2c: E2 [15:00:37]MH_I2C_Read... [15:00:37]Read from MH i2c: E2 17 00 [15:00:37]MH_I2C_Read... [15:00:37]Read from MH i2c: E2 17 00 C8 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BD [15:00:39]json_value_free done [15:00:39]process_json_proto returns [15:00:39]Send response to host [15:00:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201555,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [15:00:39]free response buf [15:00:39]execute_script done [15:00:39]execute_script returns [15:00:39]free content buf [15:00:39]Sock 9.Close socket [15:00:39]Sock 9.Thread stoped [15:00:43]OFD Sender: No OFD packet to send [15:00:48]OFD Sender: No OFD packet to send [15:00:53]OFD Sender: No OFD packet to send [15:00:58]OFD Sender: No OFD packet to send [15:01:03]OFD Sender: No OFD packet to send [15:01:08]OFD Sender: No OFD packet to send [15:01:13]OFD Sender: No OFD packet to send [15:01:18]OFD Sender: No OFD packet to send [15:01:23]OFD Sender: No OFD packet to send [15:01:28]OFD Sender: No OFD packet to send [15:01:33]OFD Sender: No OFD packet to send [15:01:38]OFD Sender: No OFD packet to send [15:01:43]OFD Sender: No OFD packet to send [15:01:48]OFD Sender: No OFD packet to send [15:01:53]OFD Sender: No OFD packet to send [15:01:58]OFD Sender: No OFD packet to send [15:02:03]OFD Sender: No OFD packet to send [15:02:08]OFD Sender: No OFD packet to send [15:02:13]OFD Sender: No OFD packet to send [15:02:16]accept exits with 10 [15:02:16]New connection [15:02:16]New thread 3066690916 created [15:02:16]Thread 3066834276 joined [15:02:16]Waiting for new connection... [15:02:16] Sock 10.Parse request [15:02:16]Sock 10.Check first char [15:02:16]Sock 10.First char is OK [15:02:16]request: POST /json_proto HTTP/1.0 [15:02:16]Method: POST [15:02:16]URL: /json_proto [15:02:16]Method is POST - this is cgi request [15:02:16]url: /json_proto [15:02:16]query_string will be loaded in cgi processing [15:02:16]execute_cgi json_proto POST (null) [15:02:16]execute_cgi path=json_proto method=POST [15:02:16]POST find Content-Length [15:02:16]Host: 172.17.63.195:8080 [15:02:16]Content-Length: 684 [15:02:16]Content-Type: application/json [15:02:16] [15:02:16]POST finish read [15:02:16]Found Content-Length = 684 [15:02:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 196.860, "sum" : 15000.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 15000.00, "total" : 15000.00, "payments": [ { "type": 0, "sum" : 15000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:16]execute_script... [15:02: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)449307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 196.860, "sum" : 15000.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 15000.00, "total" : 15000.00, "payments": [ { "type": 0, "sum" : 15000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:16]POST & json_proto [15:02:16]process_json_proto [15:02:16]json parsed OK: [15:02:16]protocol is kg_v1.0 [15:02:16]action value=close_receipt [15:02:16]process_action close_receipt [15:02:16]cmd_close_receipt [15:02:16]MH_GetDate [15:02:16]Write to MH i2c: F0 00 00 FF 26 14 [15:02:16]Write i2c OK [15:02:16]MH_I2C_Read... [15:02:16]Read from MH i2c: F0 [15:02:16]MH_I2C_Read... [15:02:16]Read from MH i2c: F0 09 00 [15:02:16]MH_I2C_Read... [15:02:16]Read from MH i2c: F0 09 00 FF 26 00 79 04 1D 67 68 46 19 67 4C [15:02:16]GetLastDocTimeStamp 1729954836 [15:02:16]current date 1729954937 [15:02:16]FM_GetShiftState [15:02:16]SAM_PROTO_GetShiftState [15:02:16]wFMCommunicate request_size=4 [15:02:16]MH_SAM_APDU [15:02:16]CAPDU: 80 13 01 00 [15:02:16]Write to MH i2c: E2 08 00 00 27 80 13 01 00 00 00 00 00 A4 [15:02:16]Write i2c OK [15:02:16]MH_I2C_Read... [15:02:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:16]Read from MH i2c: E2 [15:02:16]MH_I2C_Read... [15:02:16]Read from MH i2c: E2 0E 00 [15:02:16]MH_I2C_Read... [15:02:16]Read from MH i2c: E2 0E 00 00 27 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 B3 [15:02:16]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:02:16]wFMCommunicate OK [15:02:16]SAM_PROTO_GetShiftState done [15:02:16]FM_GetShiftState done [15:02:16]opened in 1729900879 [15:02:16]opened+sec_in_day 1729987279 [15:02:16]quantity*price = 1500073 [15:02:16]sum+1 = 1500074 [15:02:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 15000.00 Внесено: 15000.00 СДАЧА: 0.00 НСП 1% : 132.75 НДС 12% : 1593.00 Наличными: 15000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 318 26.10.2024 15:02 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201556 ФПД: 64041875451951 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T150217&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201556&fm=64041875451951&tin=02508201610067®Number=0000000000091777&sum=1500000 [15:02:17]StoreToDocumentArchive [15:02:17]shift 543 fd 201556 [15:02:17]save to /storage/0543/doc_00201556 [15:02:17]save last doc name /storage/0543/doc_00201556 to /storage/kkm_last_doc_name [15:02:17]save OK [15:02:17]Clear old archive folders... [15:02:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:02:17]tlvbuf is B6D8B010 [15:02:17]SAM_PROTO_ClearQueue [15:02:17]wFMCommunicate request_size=4 [15:02:17]MH_SAM_APDU [15:02:17]CAPDU: 80 09 00 00 [15:02:17]Write to MH i2c: E2 08 00 0D 27 80 09 00 00 00 00 00 00 A6 [15:02:17]Write i2c OK [15:02:17]MH_I2C_Read... [15:02:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:02:17]Read from MH i2c: E2 [15:02:17]MH_I2C_Read... [15:02:17]Read from MH i2c: E2 03 00 [15:02:17]MH_I2C_Read... [15:02:17]Read from MH i2c: E2 03 00 0D 27 00 90 00 A8 [15:02:17]RAPDU: 90 00 [15:02:17]wFMCommunicate OK [15:02:17]SAM_PROTO_ClearQueue done [15:02:17]KKMCreateOFDPacket [15:02:17]OFDProtocolAddRootSTLVToBuf [15:02:17]FM_MakeSignedData [15:02:17]FM_MakeSignedData [15:02:17]SAM_PROTO_SignData [15:02:17]wFMCommunicate request_size=4 [15:02:17]MH_SAM_APDU [15:02:17]CAPDU: 80 0D 01 02 [15:02:17]Write to MH i2c: E2 08 00 0E 27 80 0D 01 02 00 00 00 00 AE [15:02:17]Write i2c OK [15:02:17]MH_I2C_Read... [15:02:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:02:17]Read from MH i2c: E2 [15:02:17]MH_I2C_Read... [15:02:17]Read from MH i2c: E2 03 00 [15:02:17]MH_I2C_Read... [15:02:17]Read from MH i2c: E2 03 00 0E 27 00 90 00 A9 [15:02:17]RAPDU: 90 00 [15:02:17]wFMCommunicate OK [15:02:17]wFMCommunicate request_size=255 [15:02:17]MH_SAM_APDU [15:02:17]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 32 FF 03 08 00 03 FC 00 03 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A9 E3 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E3 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 33 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 6E 02 00 00 00 07 04 06 00 60 E3 16 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 79 04 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 54 13 03 00 35 04 06 00 3A 3E E9 3C [15:02:17]Write to MH i2c: E2 02 01 0F 27 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 32 FF 03 08 00 03 FC 00 03 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A9 E3 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E3 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 33 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 6E 02 00 00 00 07 04 06 00 60 E3 16 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 79 04 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 54 13 03 00 35 04 06 00 3A 3E E9 3C 00 00 6E [15:02:17]Write i2c OK [15:02:17]MH_I2C_Read... [15:02:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:18]Read from MH i2c: E2 [15:02:18]MH_I2C_Read... [15:02:18]Read from MH i2c: E2 03 00 [15:02:18]MH_I2C_Read... [15:02:18]Read from MH i2c: E2 03 00 0F 27 00 90 00 AA [15:02:18]RAPDU: 90 00 [15:02:18]wFMCommunicate OK [15:02:18]wFMCommunicate request_size=7 [15:02:18]MH_SAM_APDU [15:02:18]CAPDU: 80 0D 02 02 02 B0 2F [15:02:18]Write to MH i2c: E2 0A 00 10 27 80 0D 02 02 02 00 B0 2F 00 00 94 [15:02:18]Write i2c OK [15:02:18]MH_I2C_Read... [15:02:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:18]Read from MH i2c: E2 [15:02:18]MH_I2C_Read... [15:02:18]Read from MH i2c: E2 03 00 [15:02:18]MH_I2C_Read... [15:02:18]Read from MH i2c: E2 03 00 10 27 00 90 00 AB [15:02:18]RAPDU: 90 00 [15:02:18]wFMCommunicate OK [15:02:18]wFMCommunicate request_size=4 [15:02:18]MH_SAM_APDU [15:02:18]CAPDU: 80 0D 03 02 [15:02:18]Write to MH i2c: E2 08 00 11 27 80 0D 03 02 00 00 00 00 B3 [15:02:18]Write i2c OK [15:02:18]MH_I2C_Read... [15:02:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:02:18]Read from MH i2c: E2 [15:02:18]MH_I2C_Read... [15:02:18]Read from MH i2c: E2 0B 00 [15:02:18]MH_I2C_Read... [15:02:18]Read from MH i2c: E2 0B 00 11 27 00 33 23 0B 3C 85 F5 43 5D 90 00 6B [15:02:18]RAPDU: 33 23 0B 3C 85 F5 43 5D 90 00 [15:02:18]wFMCommunicate OK [15:02:18]SAM_PROTO_SignData done [15:02:18]FM_MakeSignedData done [15:02:18]CreateOFDProtocolMessage [15:02:18]wFMCommunicate request_size=4 [15:02:18]MH_SAM_APDU [15:02:18]CAPDU: 80 11 00 00 [15:02:18]Write to MH i2c: E2 08 00 12 27 80 11 00 00 00 00 00 00 B3 [15:02:18]Write i2c OK [15:02:18]MH_I2C_Read... [15:02:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:18]Read from MH i2c: E2 [15:02:18]MH_I2C_Read... [15:02:18]Read from MH i2c: E2 17 00 [15:02:18]MH_I2C_Read... [15:02:18]Read from MH i2c: E2 17 00 12 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 08 [15:02:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:02:18]wFMCommunicate OK [15:02:18]CreateOFDProtocolMessage done [15:02:18]OFDSenderStorePacket 201556 [15:02:18]StoreOFDPacket docnum=201556 [15:02:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 2F 4A 04 01 D7 DB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 FC 00 03 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A9 E3 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E3 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 33 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 6E 02 00 00 00 07 04 06 00 60 E3 16 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 79 04 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 54 13 03 00 35 04 06 00 3A 3E E9 3C B0 2F 33 23 0B 3C 85 F5 43 5D [15:02:18]CheckFolder [15:02:18]dirname=/storage/ofd_packets [15:02:18]CheckFolder done [15:02:18]ProducePacketName [15:02:18]name=ofd_packets/00201556 [15:02:18]NVStorageSaveData ofd_packets/00201556 [15:02:18]File name is /storage/ofd_packets/00201556 [15:02:18]Write 298 bytes [15:02:18]NVStorageSaveData done [15:02:18]OFDSenderStorePacket done [15:02:18]KKMCreateOFDPacket done [15:02:18]NVStorageSaveData kkm_last_timestamp [15:02:18]File name is /storage/kkm_last_timestamp [15:02:18]Write 4 bytes [15:02:18]NVStorageSaveData done [15:02:18]ExternCall_PrintAddStr [15:02:18]wPrintStart [15:02:18]Write to MH i2c: 01 00 00 13 27 3A [15:02:18]Write i2c OK [15:02:18]MH_I2C_Read... [15:02:18]Read from MH i2c: 01 [15:02:18]MH_I2C_Read... [15:02:18]Read from MH i2c: 01 07 00 [15:02:18]MH_I2C_Read... [15:02:18]Read from MH i2c: 01 07 00 13 27 00 00 00 00 00 FF 0F 4F [15:02:18]RasterBufferAndPrint [15:02:18]line Счет N : (1)449307 [15:02:18]line ИНН: 02508201610067 [15:02:18]line Контрольно-Кассовый Чек [15:02:18]line ПРОДАЖА [15:02:18]line ТРК (МРК, ГНК) : 11 [15:02:18]line Товар: 2710194210 [15:02:18]line ДТ-К-2 [15:02:18]line 196.860 * 76.20 [15:02:18]line = 15000.73 [15:02:18]line НДС 12% НСП 1% [15:02:18]line > о реализуемом товаре [15:02:18]line ОКРУГЛЕНИЕ: -0.73 [15:02:18]line ИТОГО: 15000.00 [15:02:18]line Внесено: 15000.00 [15:02:18]line СДАЧА: 0.00 [15:02:18]line НСП 1% : 132.75 [15:02:18]line НДС 12% : 1593.00 [15:02:18]line Наличными: 15000.00 [15:02:18]line Безнал.: 0.00 [15:02:18]line Место: АЗС № 171 "Партнер Нефть" [15:02:18]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:02:18]line СНО: Общий режим [15:02:18]line Чек 318 26.10.2024 15:02 [15:02:18]line Смена: 543 ФФД: 1.0 [15:02:18]line ЗНМ: 0300000109 [15:02:18]line РНМ: 0000000000091777 [15:02:18]line Версия ККМ: 001 [15:02:18]line ФМ: 0000000000871756 [15:02:18]line ФД: 201556 [15:02:18]line ФПД: 64041875451951 [15:02:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T150217&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201556&fm=64041875451951&tin=02508201610067®Number=0000000000091777&sum=1500000 [15:02:18]OFD Sender: Processing packet 201556 [packets to send 112, broken 111] [15:02:18]ProducePacketName [15:02:18]name=ofd_packets/00201556 [15:02:18]OFD Sender: To server: pG, [15:02:18]CommunicateWithHost lk.salyk.kg:30040 [15:02:18]ConnectInit lk.salyk.kg [15:02:18]written 0, free lines is 4095 [15:02:18]Connected sock=11 [15:02:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 2F 4A 04 01 D7 DB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 FC 00 03 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A9 E3 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E3 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 33 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 6E 02 00 00 00 07 04 06 00 60 E3 16 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 79 04 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 54 13 03 00 35 04 06 00 3A 3E E9 3C B0 2F 33 23 0B 3C 85 F5 43 5D [15:02:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 6B B6 47 00 52 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 54 13 03 00 F4 03 04 00 22 B0 1C 67 B6 04 01 00 00 E8 06 39 FC 50 AB B5 CA [15:02:18]CommunicateWithHost err = 0 [15:02:18]CheckOFDResponse [15:02:18]1017 (14) - 77093643461234 [15:02:18]1041 (16) - 0000000000871756 [15:02:18]1040 (4) - 201556 [15:02:18]1012 (4) - 26.10.2024 09:02 [15:02:18]1206 (1) - 0 [15:02:18]OFD Sender: Remove packet 201556 [15:02:18]ProducePacketName [15:02:18]name=ofd_packets/00201556 [15:02:18]NVStorageDeleteData [15:02:19]Write to MH i2c: 01 00 00 3E 27 65 [15:02:19]Write i2c OK [15:02:19]MH_I2C_Read... [15:02:19]Read from MH i2c: 01 [15:02:19]MH_I2C_Read... [15:02:19]Read from MH i2c: 01 07 00 [15:02:19]MH_I2C_Read... [15:02:19]Read from MH i2c: 01 07 00 3E 27 00 00 00 00 00 8F 0C 07 [15:02:19]RasterBufferAndPrint [15:02:19]line [15:02:19]line [15:02:19]line [15:02:19]line [15:02:19]line [15:02:19]written 0, free lines is 3219 [15:02:19]MH_Cut [15:02:19]Write to MH i2c: D1 01 00 45 27 01 3E [15:02:19]Write i2c OK [15:02:19]MH_I2C_Read... [15:02:19]Read from MH i2c: D1 [15:02:19]MH_I2C_Read... [15:02:19]Read from MH i2c: D1 01 00 [15:02:19]MH_I2C_Read... [15:02:19]Read from MH i2c: D1 01 00 45 27 00 3D [15:02:19]Write to MH i2c: 01 00 00 46 27 6D [15:02:19]Write i2c OK [15:02:19]MH_I2C_Read... [15:02:19]OFD Sender: No OFD packet to send [15:02:19]*** Cut start [15:02:19]*** Purtial cut [15:02:19]*** Stage 1: CUTSNS_PIN = 1 [15:02:20]Read from MH i2c: 01 [15:02:20]MH_I2C_Read... [15:02:20]*** Stop cut motor [15:02:20]*** Cut end [15:02:20]Read from MH i2c: 01 07 00 [15:02:20]MH_I2C_Read... [15:02:20]Read from MH i2c: 01 07 00 46 27 00 00 00 00 00 FF 0F 82 [15:02:20]process_action close_receipt done [15:02:20]requested_data is exist [15:02:20]produce_requested_data [15:02:20]requested_item fm.sn is exist - process it [15:02:20]wFMCommunicate request_size=4 [15:02:20]MH_SAM_APDU [15:02:20]CAPDU: 80 11 00 00 [15:02:20]Write to MH i2c: E2 08 00 47 27 80 11 00 00 00 00 00 00 E8 [15:02:20]Write i2c OK [15:02:20]MH_I2C_Read... [15:02:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:20]Read from MH i2c: E2 [15:02:20]MH_I2C_Read... [15:02:20]Read from MH i2c: E2 17 00 [15:02:20]MH_I2C_Read... [15:02:20]Read from MH i2c: E2 17 00 47 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3D [15:02:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:02:20]wFMCommunicate OK [15:02:20]requested_item fd.num is exist - process it [15:02:20]SAM_PROTO_GetFieldsCounters [15:02:20]wFMCommunicate request_size=4 [15:02:20]MH_SAM_APDU [15:02:20]CAPDU: 80 13 00 00 [15:02:20]Write to MH i2c: E2 08 00 48 27 80 13 00 00 00 00 00 00 EB [15:02:20]Write i2c OK [15:02:20]MH_I2C_Read... [15:02:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:02:20]Read from MH i2c: E2 [15:02:20]MH_I2C_Read... [15:02:20]Read from MH i2c: E2 62 00 [15:02:20]MH_I2C_Read... [15:02:20]Read from MH i2c: E2 62 00 48 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 54 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 5C [15:02:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 54 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:02:20]wFMCommunicate OK [15:02:20]SAM_PROTO_GetFieldsCounters done [15:02:20]requested_item shift.num is exist - process it [15:02:20]requested_item shift.opened is exist - process it [15:02:20]req_shift_opened [15:02:20]FM_GetShiftState [15:02:20]SAM_PROTO_GetShiftState [15:02:20]wFMCommunicate request_size=4 [15:02:20]MH_SAM_APDU [15:02:20]CAPDU: 80 13 01 00 [15:02:20]Write to MH i2c: E2 08 00 49 27 80 13 01 00 00 00 00 00 ED [15:02:20]Write i2c OK [15:02:20]MH_I2C_Read... [15:02:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:20]Read from MH i2c: E2 [15:02:20]MH_I2C_Read... [15:02:20]Read from MH i2c: E2 0E 00 [15:02:20]MH_I2C_Read... [15:02:20]Read from MH i2c: E2 0E 00 49 27 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 FC [15:02:20]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:02:20]wFMCommunicate OK [15:02:20]SAM_PROTO_GetShiftState done [15:02:20]FM_GetShiftState done [15:02:20]req_shift_opened done [15:02:20]requested_item shift.open_date is exist - process it [15:02:20]req_shift_open_date [15:02:20]req_shift_open_date done [15:02:20]produce_requested_data done [15:02:20]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201556,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [15:02:20]process_action_free close_receipt [15:02:20]json_value_free [15:02:20]json_value_free done [15:02:20]process_json_proto returns [15:02:20]Send response to host [15:02:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201556,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [15:02:20]free response buf [15:02:20]execute_script done [15:02:20]execute_script returns [15:02:20]free content buf [15:02:20]Sock 10.Close socket [15:02:20]Sock 10.Thread stoped [15:02:24]OFD Sender: No OFD packet to send [15:02:29]OFD Sender: No OFD packet to send [15:02:30]int [15:02:30]Write to MH i2c: 01 00 00 4A 27 71 [15:02:30]*** FLAG_PRN_KEY set [15:02:30]Write i2c OK [15:02:30]MH_I2C_Read... [15:02:30]Read from MH i2c: 01 [15:02:30]MH_I2C_Read... [15:02:30]Read from MH i2c: 01 07 00 [15:02:30]MH_I2C_Read... [15:02:30]Read from MH i2c: 01 07 00 4A 27 00 08 00 00 00 FF 0F 8E [15:02:30]state=0 [15:02:30]Key pressed [15:02:30]Feed [15:02:30]Write to MH i2c: D8 00 00 4B 27 49 [15:02:30]Write i2c OK [15:02:30]MH_I2C_Read... [15:02:30]Read from MH i2c: D8 [15:02:30]MH_I2C_Read... [15:02:30]Read from MH i2c: D8 01 00 [15:02:30]MH_I2C_Read... [15:02:30]Read from MH i2c: D8 01 00 4B 27 00 4A [15:02:30]int [15:02:30]Write to MH i2c: 01 00 00 4C 27 73 [15:02:30]Write i2c OK [15:02:30]MH_I2C_Read... [15:02:30]Read from MH i2c: 01 [15:02:30]MH_I2C_Read... [15:02:30]Read from MH i2c: 01 07 00 [15:02:30]MH_I2C_Read... [15:02:30]Read from MH i2c: 01 07 00 4C 27 00 48 00 00 00 3C 00 FE [15:02:30]state=2 [15:02:30]Key pressed [15:02:30]int [15:02:30]Write to MH i2c: 01 00 00 4D 27 74 [15:02:30]*** FLAG_PRN_KEY reset [15:02:30]Write i2c OK [15:02:30]MH_I2C_Read... [15:02:30]Read from MH i2c: 01 [15:02:30]MH_I2C_Read... [15:02:30]Read from MH i2c: 01 07 00 [15:02:30]MH_I2C_Read... [15:02:30]Read from MH i2c: 01 07 00 4D 27 00 00 00 00 00 FB 0F 85 [15:02:30]state=2 [15:02:30]Stop feed [15:02:34]OFD Sender: No OFD packet to send [15:02:39]OFD Sender: No OFD packet to send [15:02:44]OFD Sender: No OFD packet to send [15:02:49]OFD Sender: No OFD packet to send [15:02:54]OFD Sender: No OFD packet to send [15:02:59]OFD Sender: No OFD packet to send [15:03:04]OFD Sender: No OFD packet to send [15:03:09]OFD Sender: No OFD packet to send [15:03:14]OFD Sender: No OFD packet to send [15:03:19]OFD Sender: No OFD packet to send [15:03:24]OFD Sender: No OFD packet to send [15:03:29]OFD Sender: No OFD packet to send [15:03:34]OFD Sender: No OFD packet to send [15:03:39]OFD Sender: No OFD packet to send [15:03:42]ConnectInit Can't connect to host [15:03:44]OFD Sender: No OFD packet to send [15:03:49]OFD Sender: No OFD packet to send [15:03:54]OFD Sender: No OFD packet to send [15:03:59]OFD Sender: No OFD packet to send [15:04:04]OFD Sender: No OFD packet to send [15:04:09]OFD Sender: No OFD packet to send [15:04:14]OFD Sender: No OFD packet to send [15:04:19]OFD Sender: No OFD packet to send [15:04:24]OFD Sender: No OFD packet to send [15:04:29]OFD Sender: No OFD packet to send [15:04:34]OFD Sender: No OFD packet to send [15:04:39]OFD Sender: No OFD packet to send [15:04:44]OFD Sender: No OFD packet to send [15:04:49]OFD Sender: No OFD packet to send [15:04:54]OFD Sender: No OFD packet to send [15:04:59]OFD Sender: No OFD packet to send [15:05:04]OFD Sender: No OFD packet to send [15:05:09]OFD Sender: No OFD packet to send [15:05:14]OFD Sender: No OFD packet to send [15:05:19]OFD Sender: No OFD packet to send [15:05:24]OFD Sender: No OFD packet to send [15:05:29]OFD Sender: No OFD packet to send [15:05:34]OFD Sender: No OFD packet to send [15:05:39]OFD Sender: No OFD packet to send [15:05:44]OFD Sender: No OFD packet to send [15:05:49]OFD Sender: No OFD packet to send [15:05:54]OFD Sender: No OFD packet to send [15:05:59]OFD Sender: No OFD packet to send [15:06:04]OFD Sender: No OFD packet to send [15:06:09]OFD Sender: No OFD packet to send [15:06:14]OFD Sender: No OFD packet to send [15:06:19]OFD Sender: No OFD packet to send [15:06:24]OFD Sender: No OFD packet to send [15:06:29]OFD Sender: No OFD packet to send [15:06:34]OFD Sender: No OFD packet to send [15:06:39]OFD Sender: No OFD packet to send [15:06:44]OFD Sender: No OFD packet to send [15:06:49]OFD Sender: No OFD packet to send [15:06:54]OFD Sender: No OFD packet to send [15:06:59]OFD Sender: No OFD packet to send [15:07:04]OFD Sender: No OFD packet to send [15:07:09]OFD Sender: No OFD packet to send [15:07:14]OFD Sender: No OFD packet to send [15:07:19]OFD Sender: No OFD packet to send [15:07:24]OFD Sender: No OFD packet to send [15:07:29]OFD Sender: No OFD packet to send [15:07:34]OFD Sender: No OFD packet to send [15:07:39]OFD Sender: No OFD packet to send [15:07:44]OFD Sender: No OFD packet to send [15:07:49]OFD Sender: No OFD packet to send [15:07:54]OFD Sender: No OFD packet to send [15:07:59]OFD Sender: No OFD packet to send [15:08:04]OFD Sender: No OFD packet to send [15:08:09]OFD Sender: No OFD packet to send [15:08:14]OFD Sender: No OFD packet to send [15:08:19]OFD Sender: No OFD packet to send [15:08:24]OFD Sender: No OFD packet to send [15:08:29]OFD Sender: No OFD packet to send [15:08:34]OFD Sender: No OFD packet to send [15:08:39]OFD Sender: No OFD packet to send [15:08:44]OFD Sender: No OFD packet to send [15:08:49]OFD Sender: No OFD packet to send [15:08:54]OFD Sender: No OFD packet to send [15:08:59]OFD Sender: No OFD packet to send [15:09:01]accept exits with 9 [15:09:01]New connection [15:09:01]New thread 3066834276 created [15:09:01]Thread 3066690916 joined [15:09:01]Waiting for new connection... [15:09:01] Sock 9.Parse request [15:09:01]Sock 9.Check first char [15:09:01]Sock 9.First char is OK [15:09:01]request: POST /json_proto HTTP/1.0 [15:09:01]Method: POST [15:09:01]URL: /json_proto [15:09:01]Method is POST - this is cgi request [15:09:01]url: /json_proto [15:09:01]query_string will be loaded in cgi processing [15:09:01]execute_cgi json_proto POST (null) [15:09:01]execute_cgi path=json_proto method=POST [15:09:01]POST find Content-Length [15:09:01]Host: 172.17.63.195:8080 [15:09:01]Content-Length: 677 [15:09:01]Content-Type: application/json [15:09:01] [15:09:01]POST finish read [15:09:01]Found Content-Length = 677 [15:09:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [15:09:01]execute_script... [15:09: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)449310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [15:09:01]POST & json_proto [15:09:01]process_json_proto [15:09:01]json parsed OK: [15:09:01]protocol is kg_v1.0 [15:09:01]action value=close_receipt [15:09:01]process_action close_receipt [15:09:01]cmd_close_receipt [15:09:01]MH_GetDate [15:09:01]Write to MH i2c: F0 00 00 4E 27 64 [15:09:01]Write i2c OK [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: F0 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: F0 09 00 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: F0 09 00 4E 27 00 0E 06 1D 67 68 46 19 67 33 [15:09:01]GetLastDocTimeStamp 1729954937 [15:09:01]current date 1729955342 [15:09:01]FM_GetShiftState [15:09:01]SAM_PROTO_GetShiftState [15:09:01]wFMCommunicate request_size=4 [15:09:01]MH_SAM_APDU [15:09:01]CAPDU: 80 13 01 00 [15:09:01]Write to MH i2c: E2 08 00 4F 27 80 13 01 00 00 00 00 00 F3 [15:09:01]Write i2c OK [15:09:01]MH_I2C_Read... [15:09:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:01]Read from MH i2c: E2 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 0E 00 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 0E 00 4F 27 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 02 [15:09:01]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:09:01]wFMCommunicate OK [15:09:01]SAM_PROTO_GetShiftState done [15:09:01]FM_GetShiftState done [15:09:01]opened in 1729900879 [15:09:01]opened+sec_in_day 1729987279 [15:09:01]quantity*price = 50041 [15:09:01]sum+1 = 50042 [15:09:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 319 26.10.2024 15:09 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201557 ФПД: 252711296809157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T150902&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201557&fm=252711296809157&tin=02508201610067®Number=0000000000091777&sum=50000 [15:09:02]StoreToDocumentArchive [15:09:02]shift 543 fd 201557 [15:09:02]save to /storage/0543/doc_00201557 [15:09:02]save last doc name /storage/0543/doc_00201557 to /storage/kkm_last_doc_name [15:09:02]save OK [15:09:02]Clear old archive folders... [15:09:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:09:02]tlvbuf is 01FD4F10 [15:09:02]SAM_PROTO_ClearQueue [15:09:02]wFMCommunicate request_size=4 [15:09:02]MH_SAM_APDU [15:09:02]CAPDU: 80 09 00 00 [15:09:02]Write to MH i2c: E2 08 00 5C 27 80 09 00 00 00 00 00 00 F5 [15:09:02]Write i2c OK [15:09:02]MH_I2C_Read... [15:09:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:02]Read from MH i2c: E2 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 03 00 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 03 00 5C 27 00 90 00 F7 [15:09:02]RAPDU: 90 00 [15:09:02]wFMCommunicate OK [15:09:02]SAM_PROTO_ClearQueue done [15:09:02]KKMCreateOFDPacket [15:09:02]OFDProtocolAddRootSTLVToBuf [15:09:02]FM_MakeSignedData [15:09:02]FM_MakeSignedData [15:09:02]SAM_PROTO_SignData [15:09:02]wFMCommunicate request_size=4 [15:09:02]MH_SAM_APDU [15:09:02]CAPDU: 80 0D 01 02 [15:09:02]Write to MH i2c: E2 08 00 5D 27 80 0D 01 02 00 00 00 00 FD [15:09:02]Write i2c OK [15:09:02]MH_I2C_Read... [15:09:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:02]Read from MH i2c: E2 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 03 00 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 03 00 5D 27 00 90 00 F8 [15:09:02]RAPDU: 90 00 [15:09:02]wFMCommunicate OK [15:09:02]wFMCommunicate request_size=255 [15:09:02]MH_SAM_APDU [15:09: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 32 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 3F 01 00 00 F4 03 04 00 0E 06 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 55 13 03 00 35 04 06 00 E5 [15:09:02]Write to MH i2c: E2 02 01 5E 27 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 32 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 3F 01 00 00 F4 03 04 00 0E 06 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 55 13 03 00 35 04 06 00 E5 00 00 DA [15:09:02]Write i2c OK [15:09:02]MH_I2C_Read... [15:09:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:02]Read from MH i2c: E2 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 03 00 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 03 00 5E 27 00 90 00 F9 [15:09:02]RAPDU: 90 00 [15:09:02]wFMCommunicate OK [15:09:02]wFMCommunicate request_size=10 [15:09:02]MH_SAM_APDU [15:09:02]CAPDU: 80 0D 02 02 05 D6 EF 13 B8 C5 [15:09:02]Write to MH i2c: E2 0D 00 5F 27 80 0D 02 02 05 00 D6 EF 13 B8 C5 00 00 5F [15:09:02]Write i2c OK [15:09:02]MH_I2C_Read... [15:09:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:02]Read from MH i2c: E2 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 03 00 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 03 00 5F 27 00 90 00 FA [15:09:02]RAPDU: 90 00 [15:09:02]wFMCommunicate OK [15:09:02]wFMCommunicate request_size=4 [15:09:02]MH_SAM_APDU [15:09:02]CAPDU: 80 0D 03 02 [15:09:02]Write to MH i2c: E2 08 00 60 27 80 0D 03 02 00 00 00 00 02 [15:09:02]Write i2c OK [15:09:02]MH_I2C_Read... [15:09:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:02]Read from MH i2c: E2 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 0B 00 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 0B 00 60 27 00 12 8B 9E D7 BF EE 6A 11 90 00 3D [15:09:02]RAPDU: 12 8B 9E D7 BF EE 6A 11 90 00 [15:09:02]wFMCommunicate OK [15:09:02]SAM_PROTO_SignData done [15:09:02]FM_MakeSignedData done [15:09:02]CreateOFDProtocolMessage [15:09:02]wFMCommunicate request_size=4 [15:09:02]MH_SAM_APDU [15:09:02]CAPDU: 80 11 00 00 [15:09:02]Write to MH i2c: E2 08 00 61 27 80 11 00 00 00 00 00 00 02 [15:09:02]Write i2c OK [15:09:02]MH_I2C_Read... [15:09:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:02]Read from MH i2c: E2 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 17 00 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: E2 17 00 61 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 57 [15:09:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:09:02]wFMCommunicate OK [15:09:02]CreateOFDProtocolMessage done [15:09:02]OFDSenderStorePacket 201557 [15:09:02]StoreOFDPacket docnum=201557 [15:09:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 BC EA 07 01 32 45 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 32 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 3F 01 00 00 F4 03 04 00 0E 06 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 55 13 03 00 35 04 06 00 E5 D6 EF 13 B8 C5 12 8B 9E D7 BF EE 6A 11 [15:09:02]CheckFolder [15:09:02]dirname=/storage/ofd_packets [15:09:02]CheckFolder done [15:09:02]ProducePacketName [15:09:02]name=ofd_packets/00201557 [15:09:02]NVStorageSaveData ofd_packets/00201557 [15:09:02]File name is /storage/ofd_packets/00201557 [15:09:02]Write 301 bytes [15:09:02]NVStorageSaveData done [15:09:02]OFDSenderStorePacket done [15:09:02]KKMCreateOFDPacket done [15:09:02]NVStorageSaveData kkm_last_timestamp [15:09:02]File name is /storage/kkm_last_timestamp [15:09:02]Write 4 bytes [15:09:02]NVStorageSaveData done [15:09:02]ExternCall_PrintAddStr [15:09:02]wPrintStart [15:09:02]Write to MH i2c: 01 00 00 62 27 89 [15:09:02]Write i2c OK [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: 01 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: 01 07 00 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: 01 07 00 62 27 00 00 00 00 00 FF 0F 9E [15:09:02]RasterBufferAndPrint [15:09:02]line Счет N : (1)449310 [15:09:02]line ИНН: 02508201610067 [15:09:02]line Контрольно-Кассовый Чек [15:09:02]line ПРОДАЖА [15:09:02]line ТРК (МРК, ГНК) : 41 [15:09:02]line Товар: 2710124130 [15:09:02]line Аи-92-К-2 [15:09:02]line 7.480 * 66.90 [15:09:02]line = 500.41 [15:09:02]line НДС 12% НСП 1% [15:09:02]line > о реализуемом товаре [15:09:02]line ОКРУГЛЕНИЕ: -0.41 [15:09:02]line ИТОГО: 500.00 [15:09:02]line Внесено: 500.00 [15:09:02]line СДАЧА: 0.00 [15:09:02]line НСП 1% : 4.43 [15:09:02]line НДС 12% : 53.14 [15:09:02]line Наличными: 500.00 [15:09:02]line Безнал.: 0.00 [15:09:02]line Место: АЗС № 171 "Партнер Нефть" [15:09:02]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:09:02]line СНО: Общий режим [15:09:02]line Чек 319 26.10.2024 15:09 [15:09:02]line Смена: 543 ФФД: 1.0 [15:09:02]line ЗНМ: 0300000109 [15:09:02]line РНМ: 0000000000091777 [15:09:02]line Версия ККМ: 001 [15:09:02]line ФМ: 0000000000871756 [15:09:02]line ФД: 201557 [15:09:02]line ФПД: 252711296809157 [15:09:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T150902&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201557&fm=252711296809157&tin=02508201610067®Number=0000000000091777&sum=50000 [15:09:03]OFD Sender: Processing packet 201557 [packets to send 112, broken 111] [15:09:03]ProducePacketName [15:09:03]name=ofd_packets/00201557 [15:09:03]OFD Sender: To server: pG, [15:09:03]CommunicateWithHost lk.salyk.kg:30040 [15:09:03]ConnectInit lk.salyk.kg [15:09:03]written 0, free lines is 4095 [15:09:03]Connected sock=10 [15:09:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 BC EA 07 01 32 45 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 32 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 3F 01 00 00 F4 03 04 00 0E 06 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 55 13 03 00 35 04 06 00 E5 D6 EF 13 B8 C5 12 8B 9E D7 BF EE 6A 11 [15:09:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F4 2A 47 00 C3 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 55 13 03 00 F4 03 04 00 B7 B1 1C 67 B6 04 01 00 00 66 5B 1F 92 A0 98 2F E2 [15:09:03]CommunicateWithHost err = 0 [15:09:03]CheckOFDResponse [15:09:03]1017 (14) - 77093643461234 [15:09:03]1041 (16) - 0000000000871756 [15:09:03]1040 (4) - 201557 [15:09:03]1012 (4) - 26.10.2024 09:09 [15:09:03]1206 (1) - 0 [15:09:03]OFD Sender: Remove packet 201557 [15:09:03]ProducePacketName [15:09:03]name=ofd_packets/00201557 [15:09:03]NVStorageDeleteData [15:09:03]Write to MH i2c: 01 00 00 8D 27 B4 [15:09:03]Write i2c OK [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: 01 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: 01 07 00 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: 01 07 00 8D 27 00 00 00 00 00 95 0C 5C [15:09:03]RasterBufferAndPrint [15:09:03]line [15:09:03]line [15:09:03]line [15:09:03]line [15:09:03]line [15:09:03]written 0, free lines is 3227 [15:09:03]MH_Cut [15:09:03]Write to MH i2c: D1 01 00 94 27 01 8D [15:09:03]Write i2c OK [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: D1 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: D1 01 00 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: D1 01 00 94 27 00 8C [15:09:03]Write to MH i2c: 01 00 00 95 27 BC [15:09:03]Write i2c OK [15:09:03]MH_I2C_Read... [15:09:03]OFD Sender: No OFD packet to send [15:09:04]*** Cut start [15:09:04]*** Purtial cut [15:09:04]*** Stage 1: CUTSNS_PIN = 1 [15:09:04]Read from MH i2c: 01 [15:09:04]MH_I2C_Read... [15:09:04]*** Stop cut motor [15:09:04]*** Cut end [15:09:04]Read from MH i2c: 01 07 00 [15:09:04]MH_I2C_Read... [15:09:04]Read from MH i2c: 01 07 00 95 27 00 00 00 00 00 FF 0F D1 [15:09:04]process_action close_receipt done [15:09:04]requested_data is exist [15:09:04]produce_requested_data [15:09:04]requested_item fm.sn is exist - process it [15:09:04]wFMCommunicate request_size=4 [15:09:04]MH_SAM_APDU [15:09:04]CAPDU: 80 11 00 00 [15:09:04]Write to MH i2c: E2 08 00 96 27 80 11 00 00 00 00 00 00 37 [15:09:04]Write i2c OK [15:09:04]MH_I2C_Read... [15:09:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:04]Read from MH i2c: E2 [15:09:04]MH_I2C_Read... [15:09:04]Read from MH i2c: E2 17 00 [15:09:04]MH_I2C_Read... [15:09:04]Read from MH i2c: E2 17 00 96 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8C [15:09:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:09:04]wFMCommunicate OK [15:09:04]requested_item fd.num is exist - process it [15:09:04]SAM_PROTO_GetFieldsCounters [15:09:04]wFMCommunicate request_size=4 [15:09:04]MH_SAM_APDU [15:09:04]CAPDU: 80 13 00 00 [15:09:04]Write to MH i2c: E2 08 00 97 27 80 13 00 00 00 00 00 00 3A [15:09:04]Write i2c OK [15:09:04]MH_I2C_Read... [15:09:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:04]Read from MH i2c: E2 [15:09:04]MH_I2C_Read... [15:09:04]Read from MH i2c: E2 62 00 [15:09:04]MH_I2C_Read... [15:09:04]Read from MH i2c: E2 62 00 97 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 55 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 AF [15:09:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 55 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:04]wFMCommunicate OK [15:09:04]SAM_PROTO_GetFieldsCounters done [15:09:04]requested_item shift.num is exist - process it [15:09:04]requested_item shift.opened is exist - process it [15:09:04]req_shift_opened [15:09:04]FM_GetShiftState [15:09:04]SAM_PROTO_GetShiftState [15:09:04]wFMCommunicate request_size=4 [15:09:04]MH_SAM_APDU [15:09:04]CAPDU: 80 13 01 00 [15:09:04]Write to MH i2c: E2 08 00 98 27 80 13 01 00 00 00 00 00 3C [15:09:04]Write i2c OK [15:09:04]MH_I2C_Read... [15:09:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:04]Read from MH i2c: E2 [15:09:04]MH_I2C_Read... [15:09:04]Read from MH i2c: E2 0E 00 [15:09:04]MH_I2C_Read... [15:09:04]Read from MH i2c: E2 0E 00 98 27 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 4B [15:09:04]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:09:04]wFMCommunicate OK [15:09:04]SAM_PROTO_GetShiftState done [15:09:04]FM_GetShiftState done [15:09:04]req_shift_opened done [15:09:04]requested_item shift.open_date is exist - process it [15:09:04]req_shift_open_date [15:09:04]req_shift_open_date done [15:09:04]produce_requested_data done [15:09:04]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201557,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [15:09:04]process_action_free close_receipt [15:09:04]json_value_free [15:09:04]json_value_free done [15:09:04]process_json_proto returns [15:09:04]Send response to host [15:09:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201557,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [15:09:04]free response buf [15:09:04]execute_script done [15:09:04]execute_script returns [15:09:04]free content buf [15:09:04]Sock 9.Close socket [15:09:04]Sock 9.Thread stoped [15:09:08]OFD Sender: No OFD packet to send [15:09:13]OFD Sender: No OFD packet to send [15:09:18]accept exits with 8 [15:09:18]New connection [15:09:18]New thread 3066690916 created [15:09:18]Thread 3066834276 joined [15:09:18]Waiting for new connection... [15:09:18] Sock 8.Parse request [15:09:18]Sock 8.Check first char [15:09:18]Sock 8.First char is OK [15:09:18]request: POST /json_proto HTTP/1.0 [15:09:18]Method: POST [15:09:18]URL: /json_proto [15:09:18]Method is POST - this is cgi request [15:09:18]url: /json_proto [15:09:18]query_string will be loaded in cgi processing [15:09:18]execute_cgi json_proto POST (null) [15:09:18]execute_cgi path=json_proto method=POST [15:09:18]POST find Content-Length [15:09:18]Host: 172.17.63.195:8080 [15:09:18]Content-Length: 670 [15:09:18]Content-Type: application/json [15:09:18] [15:09:18]POST finish read [15:09:18]Found Content-Length = 670 [15:09:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "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" ] } } [15:09:18]execute_script... [15:09:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "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" ] } } [15:09:18]POST & json_proto [15:09:18]process_json_proto [15:09:18]json parsed OK: [15:09:18]protocol is kg_v1.0 [15:09:18]action value=close_receipt [15:09:18]process_action close_receipt [15:09:18]cmd_close_receipt [15:09:18]MH_GetDate [15:09:18]Write to MH i2c: F0 00 00 99 27 AF [15:09:18]Write i2c OK [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: F0 [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: F0 09 00 [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: F0 09 00 99 27 00 1F 06 1D 67 68 46 19 67 8F [15:09:18]GetLastDocTimeStamp 1729955342 [15:09:18]current date 1729955359 [15:09:18]FM_GetShiftState [15:09:18]SAM_PROTO_GetShiftState [15:09:18]wFMCommunicate request_size=4 [15:09:18]MH_SAM_APDU [15:09:18]CAPDU: 80 13 01 00 [15:09:18]Write to MH i2c: E2 08 00 9A 27 80 13 01 00 00 00 00 00 3E [15:09:18]Write i2c OK [15:09:18]MH_I2C_Read... [15:09:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:18]Read from MH i2c: E2 [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: E2 0E 00 [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: E2 0E 00 9A 27 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 4D [15:09:18]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:09:18]wFMCommunicate OK [15:09:18]SAM_PROTO_GetShiftState done [15:09:18]FM_GetShiftState done [15:09:18]opened in 1729900879 [15:09:18]opened+sec_in_day 1729987279 [15:09:18]quantity*price = 60055 [15:09:18]sum+1 = 60056 [15:09:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 320 26.10.2024 15:09 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201558 ФПД: 68859029873636 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T150919&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201558&fm=68859029873636&tin=02508201610067®Number=0000000000091777&sum=60000 [15:09:19]StoreToDocumentArchive [15:09:19]shift 543 fd 201558 [15:09:19]save to /storage/0543/doc_00201558 [15:09:19]save last doc name /storage/0543/doc_00201558 to /storage/kkm_last_doc_name [15:09:19]save OK [15:09:19]Clear old archive folders... [15:09:19]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:09:19]tlvbuf is 01F565F0 [15:09:19]SAM_PROTO_ClearQueue [15:09:19]wFMCommunicate request_size=4 [15:09:19]MH_SAM_APDU [15:09:19]CAPDU: 80 09 00 00 [15:09:19]Write to MH i2c: E2 08 00 A7 27 80 09 00 00 00 00 00 00 40 [15:09:19]Write i2c OK [15:09:19]MH_I2C_Read... [15:09:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:19]Read from MH i2c: E2 [15:09:19]MH_I2C_Read... [15:09:19]Read from MH i2c: E2 03 00 [15:09:19]MH_I2C_Read... [15:09:19]Read from MH i2c: E2 03 00 A7 27 00 90 00 42 [15:09:19]RAPDU: 90 00 [15:09:19]wFMCommunicate OK [15:09:19]SAM_PROTO_ClearQueue done [15:09:19]KKMCreateOFDPacket [15:09:19]OFDProtocolAddRootSTLVToBuf [15:09:19]FM_MakeSignedData [15:09:19]FM_MakeSignedData [15:09:19]SAM_PROTO_SignData [15:09:19]wFMCommunicate request_size=4 [15:09:19]MH_SAM_APDU [15:09:19]CAPDU: 80 0D 01 02 [15:09:19]Write to MH i2c: E2 08 00 A8 27 80 0D 01 02 00 00 00 00 48 [15:09:19]Write i2c OK [15:09:19]MH_I2C_Read... [15:09:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:19]Read from MH i2c: E2 [15:09:19]MH_I2C_Read... [15:09:19]Read from MH i2c: E2 03 00 [15:09:19]MH_I2C_Read... [15:09:19]Read from MH i2c: E2 03 00 A8 27 00 90 00 43 [15:09:19]RAPDU: 90 00 [15:09:19]wFMCommunicate OK [15:09:19]wFMCommunicate request_size=255 [15:09:19]MH_SAM_APDU [15:09:19]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 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 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 E9 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 40 01 00 00 F4 03 04 00 1F 06 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 56 13 03 00 35 04 06 00 [15:09:19]Write to MH i2c: E2 02 01 A9 27 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 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 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 E9 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 40 01 00 00 F4 03 04 00 1F 06 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 56 13 03 00 35 04 06 00 00 00 D9 [15:09:19]Write i2c OK [15:09:19]MH_I2C_Read... [15:09:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:20]Read from MH i2c: E2 [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: E2 03 00 [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: E2 03 00 A9 27 00 90 00 44 [15:09:20]RAPDU: 90 00 [15:09:20]wFMCommunicate OK [15:09:20]wFMCommunicate request_size=11 [15:09:20]MH_SAM_APDU [15:09:20]CAPDU: 80 0D 02 02 06 3E A0 7E 03 E3 E4 [15:09:20]Write to MH i2c: E2 0E 00 AA 27 80 0D 02 02 06 00 3E A0 7E 03 E3 E4 00 00 7D [15:09:20]Write i2c OK [15:09:20]MH_I2C_Read... [15:09:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:20]Read from MH i2c: E2 [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: E2 03 00 [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: E2 03 00 AA 27 00 90 00 45 [15:09:20]RAPDU: 90 00 [15:09:20]wFMCommunicate OK [15:09:20]wFMCommunicate request_size=4 [15:09:20]MH_SAM_APDU [15:09:20]CAPDU: 80 0D 03 02 [15:09:20]Write to MH i2c: E2 08 00 AB 27 80 0D 03 02 00 00 00 00 4D [15:09:20]Write i2c OK [15:09:20]MH_I2C_Read... [15:09:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:20]Read from MH i2c: E2 [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: E2 0B 00 [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: E2 0B 00 AB 27 00 CF 24 64 AB 3F 33 4B A7 90 00 B4 [15:09:20]RAPDU: CF 24 64 AB 3F 33 4B A7 90 00 [15:09:20]wFMCommunicate OK [15:09:20]SAM_PROTO_SignData done [15:09:20]FM_MakeSignedData done [15:09:20]CreateOFDProtocolMessage [15:09:20]wFMCommunicate request_size=4 [15:09:20]MH_SAM_APDU [15:09:20]CAPDU: 80 11 00 00 [15:09:20]Write to MH i2c: E2 08 00 AC 27 80 11 00 00 00 00 00 00 4D [15:09:20]Write i2c OK [15:09:20]MH_I2C_Read... [15:09:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:20]Read from MH i2c: E2 [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: E2 17 00 [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: E2 17 00 AC 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A2 [15:09:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:09:20]wFMCommunicate OK [15:09:20]CreateOFDProtocolMessage done [15:09:20]OFDSenderStorePacket 201558 [15:09:20]StoreOFDPacket docnum=201558 [15:09:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 77 EC 08 01 30 E4 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 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 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 E9 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 40 01 00 00 F4 03 04 00 1F 06 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 56 13 03 00 35 04 06 00 3E A0 7E 03 E3 E4 CF 24 64 AB 3F 33 4B A7 [15:09:20]CheckFolder [15:09:20]dirname=/storage/ofd_packets [15:09:20]CheckFolder done [15:09:20]ProducePacketName [15:09:20]name=ofd_packets/00201558 [15:09:20]NVStorageSaveData ofd_packets/00201558 [15:09:20]File name is /storage/ofd_packets/00201558 [15:09:20]Write 302 bytes [15:09:20]NVStorageSaveData done [15:09:20]OFDSenderStorePacket done [15:09:20]KKMCreateOFDPacket done [15:09:20]NVStorageSaveData kkm_last_timestamp [15:09:20]File name is /storage/kkm_last_timestamp [15:09:20]Write 4 bytes [15:09:20]NVStorageSaveData done [15:09:20]ExternCall_PrintAddStr [15:09:20]wPrintStart [15:09:20]Write to MH i2c: 01 00 00 AD 27 D4 [15:09:20]Write i2c OK [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: 01 [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: 01 07 00 [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: 01 07 00 AD 27 00 00 00 00 00 FF 0F E9 [15:09:20]RasterBufferAndPrint [15:09:20]line Счет N : (1)449312 [15:09:20]line ИНН: 02508201610067 [15:09:20]line Контрольно-Кассовый Чек [15:09:20]line ПРОДАЖА [15:09:20]line ТРК (МРК, ГНК) : 53 [15:09:20]line Товар: 2710124130 [15:09:20]line SUPER 92-К-5 [15:09:20]line 8.780 * 68.40 [15:09:20]line = 600.55 [15:09:20]line НДС 12% НСП 1% [15:09:20]line > о реализуемом товаре [15:09:20]line ОКРУГЛЕНИЕ: -0.55 [15:09:20]line ИТОГО: 600.00 [15:09:20]line Внесено: 600.00 [15:09:20]line СДАЧА: 0.00 [15:09:20]line НСП 1% : 5.31 [15:09:20]line НДС 12% : 63.77 [15:09:20]line Наличными: 600.00 [15:09:20]line Безнал.: 0.00 [15:09:20]line Место: АЗС № 171 "Партнер Нефть" [15:09:20]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:09:20]line СНО: Общий режим [15:09:20]line Чек 320 26.10.2024 15:09 [15:09:20]line Смена: 543 ФФД: 1.0 [15:09:20]line ЗНМ: 0300000109 [15:09:20]line РНМ: 0000000000091777 [15:09:20]line Версия ККМ: 001 [15:09:20]line ФМ: 0000000000871756 [15:09:20]line ФД: 201558 [15:09:20]line ФПД: 68859029873636 [15:09:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T150919&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201558&fm=68859029873636&tin=02508201610067®Number=0000000000091777&sum=60000 [15:09:20]OFD Sender: Processing packet 201558 [packets to send 112, broken 111] [15:09:20]ProducePacketName [15:09:20]name=ofd_packets/00201558 [15:09:20]OFD Sender: To server: pG, [15:09:20]CommunicateWithHost lk.salyk.kg:30040 [15:09:20]ConnectInit lk.salyk.kg [15:09:20]written 0, free lines is 4095 [15:09:20]Connected sock=11 [15:09:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 77 EC 08 01 30 E4 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 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 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 E9 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 40 01 00 00 F4 03 04 00 1F 06 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 56 13 03 00 35 04 06 00 3E A0 7E 03 E3 E4 CF 24 64 AB 3F 33 4B A7 [15:09:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F6 60 47 00 21 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 56 13 03 00 F4 03 04 00 C8 B1 1C 67 B6 04 01 00 00 D4 B3 ED 86 58 39 BB 9A [15:09:20]CommunicateWithHost err = 0 [15:09:20]CheckOFDResponse [15:09:20]1017 (14) - 77093643461234 [15:09:20]1041 (16) - 0000000000871756 [15:09:20]1040 (4) - 201558 [15:09:20]1012 (4) - 26.10.2024 09:09 [15:09:20]1206 (1) - 0 [15:09:20]OFD Sender: Remove packet 201558 [15:09:20]ProducePacketName [15:09:20]name=ofd_packets/00201558 [15:09:20]NVStorageDeleteData [15:09:20]Write to MH i2c: 01 00 00 D8 27 FF [15:09:20]Write i2c OK [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: 01 [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: 01 07 00 [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: 01 07 00 D8 27 00 00 00 00 00 9C 0C AE [15:09:20]RasterBufferAndPrint [15:09:20]line [15:09:20]line [15:09:20]line [15:09:20]line [15:09:20]line [15:09:20]written 0, free lines is 3234 [15:09:20]MH_Cut [15:09:20]Write to MH i2c: D1 01 00 DF 27 01 D8 [15:09:20]Write i2c OK [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: D1 [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: D1 01 00 [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: D1 01 00 DF 27 00 D7 [15:09:20]Write to MH i2c: 01 00 00 E0 27 07 [15:09:20]Write i2c OK [15:09:20]MH_I2C_Read... [15:09:21]OFD Sender: No OFD packet to send [15:09:21]*** Cut start [15:09:21]*** Purtial cut [15:09:21]*** Stage 1: CUTSNS_PIN = 1 [15:09:22]Read from MH i2c: 01 [15:09:22]MH_I2C_Read... [15:09:22]*** Stop cut motor [15:09:22]*** Cut end [15:09:22]Read from MH i2c: 01 07 00 [15:09:22]MH_I2C_Read... [15:09:22]Read from MH i2c: 01 07 00 E0 27 00 00 00 00 00 FF 0F 1C [15:09:22]process_action close_receipt done [15:09:22]requested_data is exist [15:09:22]produce_requested_data [15:09:22]requested_item fm.sn is exist - process it [15:09:22]wFMCommunicate request_size=4 [15:09:22]MH_SAM_APDU [15:09:22]CAPDU: 80 11 00 00 [15:09:22]Write to MH i2c: E2 08 00 E1 27 80 11 00 00 00 00 00 00 82 [15:09:22]Write i2c OK [15:09:22]MH_I2C_Read... [15:09:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:22]Read from MH i2c: E2 [15:09:22]MH_I2C_Read... [15:09:22]Read from MH i2c: E2 17 00 [15:09:22]MH_I2C_Read... [15:09:22]Read from MH i2c: E2 17 00 E1 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D7 [15:09:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:09:22]wFMCommunicate OK [15:09:22]requested_item fd.num is exist - process it [15:09:22]SAM_PROTO_GetFieldsCounters [15:09:22]wFMCommunicate request_size=4 [15:09:22]MH_SAM_APDU [15:09:22]CAPDU: 80 13 00 00 [15:09:22]Write to MH i2c: E2 08 00 E2 27 80 13 00 00 00 00 00 00 85 [15:09:22]Write i2c OK [15:09:22]MH_I2C_Read... [15:09:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:22]Read from MH i2c: E2 [15:09:22]MH_I2C_Read... [15:09:22]Read from MH i2c: E2 62 00 [15:09:22]MH_I2C_Read... [15:09:22]Read from MH i2c: E2 62 00 E2 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 56 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 FE [15:09:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 56 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:22]wFMCommunicate OK [15:09:22]SAM_PROTO_GetFieldsCounters done [15:09:22]requested_item shift.num is exist - process it [15:09:22]requested_item shift.opened is exist - process it [15:09:22]req_shift_opened [15:09:22]FM_GetShiftState [15:09:22]SAM_PROTO_GetShiftState [15:09:22]wFMCommunicate request_size=4 [15:09:22]MH_SAM_APDU [15:09:22]CAPDU: 80 13 01 00 [15:09:22]Write to MH i2c: E2 08 00 E3 27 80 13 01 00 00 00 00 00 87 [15:09:22]Write i2c OK [15:09:22]MH_I2C_Read... [15:09:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:22]Read from MH i2c: E2 [15:09:22]MH_I2C_Read... [15:09:22]Read from MH i2c: E2 0E 00 [15:09:22]MH_I2C_Read... [15:09:22]Read from MH i2c: E2 0E 00 E3 27 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 96 [15:09:22]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:09:22]wFMCommunicate OK [15:09:22]SAM_PROTO_GetShiftState done [15:09:22]FM_GetShiftState done [15:09:22]req_shift_opened done [15:09:22]requested_item shift.open_date is exist - process it [15:09:22]req_shift_open_date [15:09:22]req_shift_open_date done [15:09:22]produce_requested_data done [15:09:22]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201558,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [15:09:22]process_action_free close_receipt [15:09:22]json_value_free [15:09:22]json_value_free done [15:09:22]process_json_proto returns [15:09:22]Send response to host [15:09:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201558,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [15:09:22]free response buf [15:09:22]execute_script done [15:09:22]execute_script returns [15:09:22]free content buf [15:09:22]Sock 8.Close socket [15:09:22]Sock 8.Thread stoped [15:09:26]OFD Sender: No OFD packet to send [15:09:31]OFD Sender: No OFD packet to send [15:09:36]OFD Sender: No OFD packet to send [15:09:41]OFD Sender: No OFD packet to send [15:09:46]OFD Sender: No OFD packet to send [15:09:51]OFD Sender: No OFD packet to send [15:09:56]OFD Sender: No OFD packet to send [15:10:01]OFD Sender: No OFD packet to send [15:10:06]OFD Sender: No OFD packet to send [15:10:11]OFD Sender: No OFD packet to send [15:10:16]OFD Sender: No OFD packet to send [15:10:21]OFD Sender: No OFD packet to send [15:10:26]OFD Sender: No OFD packet to send [15:10:31]OFD Sender: No OFD packet to send [15:10:36]OFD Sender: No OFD packet to send [15:10:41]OFD Sender: No OFD packet to send [15:10:46]OFD Sender: No OFD packet to send [15:10:51]OFD Sender: No OFD packet to send [15:10:56]OFD Sender: No OFD packet to send [15:11:01]OFD Sender: No OFD packet to send [15:11:06]OFD Sender: No OFD packet to send [15:11:11]OFD Sender: No OFD packet to send [15:11:16]OFD Sender: No OFD packet to send [15:11:21]OFD Sender: No OFD packet to send [15:11:26]OFD Sender: No OFD packet to send [15:11:31]OFD Sender: No OFD packet to send [15:11:36]OFD Sender: No OFD packet to send [15:11:41]OFD Sender: No OFD packet to send [15:11:46]OFD Sender: No OFD packet to send [15:11:51]OFD Sender: No OFD packet to send [15:11:56]OFD Sender: No OFD packet to send [15:12:01]OFD Sender: No OFD packet to send [15:12:06]OFD Sender: No OFD packet to send [15:12:11]OFD Sender: No OFD packet to send [15:12:16]OFD Sender: No OFD packet to send [15:12:21]OFD Sender: No OFD packet to send [15:12:26]OFD Sender: No OFD packet to send [15:12:31]OFD Sender: No OFD packet to send [15:12:36]OFD Sender: No OFD packet to send [15:12:41]OFD Sender: No OFD packet to send [15:12:46]OFD Sender: No OFD packet to send [15:12:51]OFD Sender: No OFD packet to send [15:12:56]OFD Sender: No OFD packet to send [15:13:01]OFD Sender: No OFD packet to send [15:13:06]OFD Sender: No OFD packet to send [15:13:11]OFD Sender: No OFD packet to send [15:13:16]OFD Sender: No OFD packet to send [15:13:21]OFD Sender: No OFD packet to send [15:13:26]OFD Sender: No OFD packet to send [15:13:31]OFD Sender: No OFD packet to send [15:13:36]OFD Sender: No OFD packet to send [15:13:41]OFD Sender: No OFD packet to send [15:13:46]OFD Sender: No OFD packet to send [15:13:51]OFD Sender: No OFD packet to send [15:13:56]OFD Sender: No OFD packet to send [15:14:01]OFD Sender: No OFD packet to send [15:14:02]accept exits with 9 [15:14:02]New connection [15:14:02]New thread 3066834276 created [15:14:02]Thread 3066690916 joined [15:14:02]Waiting for new connection... [15:14:02] Sock 9.Parse request [15:14:02]Sock 9.Check first char [15:14:02]Sock 9.First char is OK [15:14:02]request: POST /json_proto HTTP/1.0 [15:14:02]Method: POST [15:14:02]URL: /json_proto [15:14:02]Method is POST - this is cgi request [15:14:02]url: /json_proto [15:14:02]query_string will be loaded in cgi processing [15:14:02]execute_cgi json_proto POST (null) [15:14:02]execute_cgi path=json_proto method=POST [15:14:02]POST find Content-Length [15:14:02]Host: 172.17.63.195:8080 [15:14:02]Content-Length: 674 [15:14:02]Content-Type: application/json [15:14:02] [15:14:02]POST finish read [15:14:02]Found Content-Length = 674 [15:14:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 9.850, "sum" : 750.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:02]execute_script... [15:14: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)449313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 9.850, "sum" : 750.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:02]POST & json_proto [15:14:02]process_json_proto [15:14:02]json parsed OK: [15:14:02]protocol is kg_v1.0 [15:14:02]action value=close_receipt [15:14:02]process_action close_receipt [15:14:02]cmd_close_receipt [15:14:02]MH_GetDate [15:14:02]Write to MH i2c: F0 00 00 E4 27 FA [15:14:02]Write i2c OK [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: F0 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: F0 09 00 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: F0 09 00 E4 27 00 3B 07 1D 67 68 46 19 67 F7 [15:14:02]GetLastDocTimeStamp 1729955359 [15:14:02]current date 1729955643 [15:14:02]FM_GetShiftState [15:14:02]SAM_PROTO_GetShiftState [15:14:02]wFMCommunicate request_size=4 [15:14:02]MH_SAM_APDU [15:14:02]CAPDU: 80 13 01 00 [15:14:02]Write to MH i2c: E2 08 00 E5 27 80 13 01 00 00 00 00 00 89 [15:14:02]Write i2c OK [15:14:02]MH_I2C_Read... [15:14:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:02]Read from MH i2c: E2 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 0E 00 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 0E 00 E5 27 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 98 [15:14:02]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:14:02]wFMCommunicate OK [15:14:02]SAM_PROTO_GetShiftState done [15:14:02]FM_GetShiftState done [15:14:02]opened in 1729900879 [15:14:02]opened+sec_in_day 1729987279 [15:14:02]quantity*price = 75057 [15:14:02]sum+1 = 75058 [15:14:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.71 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 321 26.10.2024 15:14 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201559 ФПД: 175072059183888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T151403&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201559&fm=175072059183888&tin=02508201610067®Number=0000000000091777&sum=75000 [15:14:03]StoreToDocumentArchive [15:14:03]shift 543 fd 201559 [15:14:03]save to /storage/0543/doc_00201559 [15:14:03]save last doc name /storage/0543/doc_00201559 to /storage/kkm_last_doc_name [15:14:03]save OK [15:14:03]Clear old archive folders... [15:14:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:14:03]tlvbuf is 01F0E780 [15:14:03]SAM_PROTO_ClearQueue [15:14:03]wFMCommunicate request_size=4 [15:14:03]MH_SAM_APDU [15:14:03]CAPDU: 80 09 00 00 [15:14:03]Write to MH i2c: E2 08 00 F2 27 80 09 00 00 00 00 00 00 8B [15:14:03]Write i2c OK [15:14:03]MH_I2C_Read... [15:14:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:03]Read from MH i2c: E2 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: E2 03 00 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: E2 03 00 F2 27 00 90 00 8D [15:14:03]RAPDU: 90 00 [15:14:03]wFMCommunicate OK [15:14:03]SAM_PROTO_ClearQueue done [15:14:03]KKMCreateOFDPacket [15:14:03]OFDProtocolAddRootSTLVToBuf [15:14:03]FM_MakeSignedData [15:14:03]FM_MakeSignedData [15:14:03]SAM_PROTO_SignData [15:14:03]wFMCommunicate request_size=4 [15:14:03]MH_SAM_APDU [15:14:03]CAPDU: 80 0D 01 02 [15:14:03]Write to MH i2c: E2 08 00 F3 27 80 0D 01 02 00 00 00 00 93 [15:14:03]Write i2c OK [15:14:03]MH_I2C_Read... [15:14:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:03]Read from MH i2c: E2 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: E2 03 00 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: E2 03 00 F3 27 00 90 00 8E [15:14:03]RAPDU: 90 00 [15:14:03]wFMCommunicate OK [15:14:03]wFMCommunicate request_size=255 [15:14:03]MH_SAM_APDU [15:14:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 3B 07 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 57 13 03 00 35 04 06 00 9F 3A 23 E5 [15:14:03]Write to MH i2c: E2 02 01 F4 27 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 32 FF 03 08 00 03 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 3B 07 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 57 13 03 00 35 04 06 00 9F 3A 23 E5 00 00 5A [15:14:03]Write i2c OK [15:14:03]MH_I2C_Read... [15:14:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:03]Read from MH i2c: E2 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: E2 03 00 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: E2 03 00 F4 27 00 90 00 8F [15:14:03]RAPDU: 90 00 [15:14:03]wFMCommunicate OK [15:14:03]wFMCommunicate request_size=7 [15:14:03]MH_SAM_APDU [15:14:03]CAPDU: 80 0D 02 02 02 D3 10 [15:14:03]Write to MH i2c: E2 0A 00 F5 27 80 0D 02 02 02 00 D3 10 00 00 7D [15:14:03]Write i2c OK [15:14:03]MH_I2C_Read... [15:14:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:03]Read from MH i2c: E2 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: E2 03 00 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: E2 03 00 F5 27 00 90 00 90 [15:14:03]RAPDU: 90 00 [15:14:03]wFMCommunicate OK [15:14:03]wFMCommunicate request_size=4 [15:14:03]MH_SAM_APDU [15:14:03]CAPDU: 80 0D 03 02 [15:14:03]Write to MH i2c: E2 08 00 F6 27 80 0D 03 02 00 00 00 00 98 [15:14:03]Write i2c OK [15:14:03]MH_I2C_Read... [15:14:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:03]Read from MH i2c: E2 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: E2 0B 00 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: E2 0B 00 F6 27 00 34 E8 DB A5 13 D8 71 E3 90 00 74 [15:14:03]RAPDU: 34 E8 DB A5 13 D8 71 E3 90 00 [15:14:03]wFMCommunicate OK [15:14:03]SAM_PROTO_SignData done [15:14:03]FM_MakeSignedData done [15:14:03]CreateOFDProtocolMessage [15:14:03]wFMCommunicate request_size=4 [15:14:03]MH_SAM_APDU [15:14:03]CAPDU: 80 11 00 00 [15:14:03]Write to MH i2c: E2 08 00 F7 27 80 11 00 00 00 00 00 00 98 [15:14:03]Write i2c OK [15:14:03]MH_I2C_Read... [15:14:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:03]Read from MH i2c: E2 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: E2 17 00 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: E2 17 00 F7 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 ED [15:14:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:14:03]wFMCommunicate OK [15:14:03]CreateOFDProtocolMessage done [15:14:03]OFDSenderStorePacket 201559 [15:14:03]StoreOFDPacket docnum=201559 [15:14:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 57 34 04 01 B8 5F 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 32 FF 03 08 00 03 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 3B 07 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 57 13 03 00 35 04 06 00 9F 3A 23 E5 D3 10 34 E8 DB A5 13 D8 71 E3 [15:14:03]CheckFolder [15:14:03]dirname=/storage/ofd_packets [15:14:03]CheckFolder done [15:14:03]ProducePacketName [15:14:03]name=ofd_packets/00201559 [15:14:03]NVStorageSaveData ofd_packets/00201559 [15:14:03]File name is /storage/ofd_packets/00201559 [15:14:03]Write 298 bytes [15:14:03]NVStorageSaveData done [15:14:03]OFDSenderStorePacket done [15:14:03]KKMCreateOFDPacket done [15:14:03]NVStorageSaveData kkm_last_timestamp [15:14:03]File name is /storage/kkm_last_timestamp [15:14:03]Write 4 bytes [15:14:03]NVStorageSaveData done [15:14:03]ExternCall_PrintAddStr [15:14:03]wPrintStart [15:14:03]Write to MH i2c: 01 00 00 F8 27 1F [15:14:03]Write i2c OK [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: 01 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: 01 07 00 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: 01 07 00 F8 27 00 00 00 00 00 FF 0F 34 [15:14:03]RasterBufferAndPrint [15:14:03]line Счет N : (1)449313 [15:14:03]line ИНН: 02508201610067 [15:14:03]line Контрольно-Кассовый Чек [15:14:03]line ПРОДАЖА [15:14:03]line ТРК (МРК, ГНК) : 33 [15:14:03]line Товар: 2710194210 [15:14:03]line ДТ-К-2 [15:14:03]line 9.850 * 76.20 [15:14:03]line = 750.57 [15:14:03]line НДС 12% НСП 1% [15:14:03]line > о реализуемом товаре [15:14:03]line ОКРУГЛЕНИЕ: -0.57 [15:14:03]line ИТОГО: 750.00 [15:14:03]line Внесено: 750.00 [15:14:03]line СДАЧА: 0.00 [15:14:03]line НСП 1% : 6.64 [15:14:03]line НДС 12% : 79.71 [15:14:03]line Наличными: 750.00 [15:14:03]line Безнал.: 0.00 [15:14:03]line Место: АЗС № 171 "Партнер Нефть" [15:14:03]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:14:03]line СНО: Общий режим [15:14:03]line Чек 321 26.10.2024 15:14 [15:14:03]line Смена: 543 ФФД: 1.0 [15:14:03]line ЗНМ: 0300000109 [15:14:03]line РНМ: 0000000000091777 [15:14:03]line Версия ККМ: 001 [15:14:03]line ФМ: 0000000000871756 [15:14:03]line ФД: 201559 [15:14:03]line ФПД: 175072059183888 [15:14:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T151403&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201559&fm=175072059183888&tin=02508201610067®Number=0000000000091777&sum=75000 [15:14:04]OFD Sender: Processing packet 201559 [packets to send 112, broken 111] [15:14:04]ProducePacketName [15:14:04]name=ofd_packets/00201559 [15:14:04]OFD Sender: To server: pG, [15:14:04]CommunicateWithHost lk.salyk.kg:30040 [15:14:04]ConnectInit lk.salyk.kg [15:14:04]written 0, free lines is 4095 [15:14:04]Connected sock=10 [15:14:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 57 34 04 01 B8 5F 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 32 FF 03 08 00 03 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 3B 07 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 57 13 03 00 35 04 06 00 9F 3A 23 E5 D3 10 34 E8 DB A5 13 D8 71 E3 [15:14:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 76 FB 47 00 AC 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 57 13 03 00 F4 03 04 00 E4 B2 1C 67 B6 04 01 00 00 F3 58 49 19 54 06 10 5C [15:14:04]CommunicateWithHost err = 0 [15:14:04]CheckOFDResponse [15:14:04]1017 (14) - 77093643461234 [15:14:04]1041 (16) - 0000000000871756 [15:14:04]1040 (4) - 201559 [15:14:04]1012 (4) - 26.10.2024 09:14 [15:14:04]1206 (1) - 0 [15:14:04]OFD Sender: Remove packet 201559 [15:14:04]ProducePacketName [15:14:04]name=ofd_packets/00201559 [15:14:04]NVStorageDeleteData [15:14:04]Write to MH i2c: 01 00 00 23 28 4B [15:14:04]Write i2c OK [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: 01 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: 01 07 00 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: 01 07 00 23 28 00 00 00 00 00 89 0C E7 [15:14:04]RasterBufferAndPrint [15:14:04]line [15:14:04]line [15:14:04]line [15:14:04]line [15:14:04]line [15:14:04]written 0, free lines is 3213 [15:14:04]MH_Cut [15:14:04]Write to MH i2c: D1 01 00 2A 28 01 24 [15:14:04]Write i2c OK [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: D1 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: D1 01 00 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: D1 01 00 2A 28 00 23 [15:14:04]Write to MH i2c: 01 00 00 2B 28 53 [15:14:04]Write i2c OK [15:14:04]MH_I2C_Read... [15:14:05]OFD Sender: No OFD packet to send [15:14:05]*** Cut start [15:14:05]*** Purtial cut [15:14:05]*** Stage 1: CUTSNS_PIN = 1 [15:14:05]Read from MH i2c: 01 [15:14:05]MH_I2C_Read... [15:14:05]*** Stop cut motor [15:14:05]*** Cut end [15:14:05]Read from MH i2c: 01 07 00 [15:14:05]MH_I2C_Read... [15:14:05]Read from MH i2c: 01 07 00 2B 28 00 00 00 00 00 FF 0F 68 [15:14:05]process_action close_receipt done [15:14:05]requested_data is exist [15:14:05]produce_requested_data [15:14:05]requested_item fm.sn is exist - process it [15:14:05]wFMCommunicate request_size=4 [15:14:05]MH_SAM_APDU [15:14:05]CAPDU: 80 11 00 00 [15:14:05]Write to MH i2c: E2 08 00 2C 28 80 11 00 00 00 00 00 00 CE [15:14:05]Write i2c OK [15:14:05]MH_I2C_Read... [15:14:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:05]Read from MH i2c: E2 [15:14:05]MH_I2C_Read... [15:14:05]Read from MH i2c: E2 17 00 [15:14:05]MH_I2C_Read... [15:14:05]Read from MH i2c: E2 17 00 2C 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 23 [15:14:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:14:05]wFMCommunicate OK [15:14:05]requested_item fd.num is exist - process it [15:14:05]SAM_PROTO_GetFieldsCounters [15:14:05]wFMCommunicate request_size=4 [15:14:05]MH_SAM_APDU [15:14:05]CAPDU: 80 13 00 00 [15:14:05]Write to MH i2c: E2 08 00 2D 28 80 13 00 00 00 00 00 00 D1 [15:14:05]Write i2c OK [15:14:05]MH_I2C_Read... [15:14:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:05]Read from MH i2c: E2 [15:14:05]MH_I2C_Read... [15:14:05]Read from MH i2c: E2 62 00 [15:14:05]MH_I2C_Read... [15:14:05]Read from MH i2c: E2 62 00 2D 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 57 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 4E [15:14:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 57 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:14:05]wFMCommunicate OK [15:14:05]SAM_PROTO_GetFieldsCounters done [15:14:05]requested_item shift.num is exist - process it [15:14:05]requested_item shift.opened is exist - process it [15:14:05]req_shift_opened [15:14:05]FM_GetShiftState [15:14:05]SAM_PROTO_GetShiftState [15:14:05]wFMCommunicate request_size=4 [15:14:05]MH_SAM_APDU [15:14:05]CAPDU: 80 13 01 00 [15:14:05]Write to MH i2c: E2 08 00 2E 28 80 13 01 00 00 00 00 00 D3 [15:14:05]Write i2c OK [15:14:05]MH_I2C_Read... [15:14:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:06]Read from MH i2c: E2 [15:14:06]MH_I2C_Read... [15:14:06]Read from MH i2c: E2 0E 00 [15:14:06]MH_I2C_Read... [15:14:06]Read from MH i2c: E2 0E 00 2E 28 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E2 [15:14:06]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:14:06]wFMCommunicate OK [15:14:06]SAM_PROTO_GetShiftState done [15:14:06]FM_GetShiftState done [15:14:06]req_shift_opened done [15:14:06]requested_item shift.open_date is exist - process it [15:14:06]req_shift_open_date [15:14:06]req_shift_open_date done [15:14:06]produce_requested_data done [15:14:06]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201559,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [15:14:06]process_action_free close_receipt [15:14:06]json_value_free [15:14:06]json_value_free done [15:14:06]process_json_proto returns [15:14:06]Send response to host [15:14:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201559,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [15:14:06]free response buf [15:14:06]execute_script done [15:14:06]execute_script returns [15:14:06]free content buf [15:14:06]Sock 9.Close socket [15:14:06]Sock 9.Thread stoped [15:14:10]OFD Sender: No OFD packet to send [15:14:15]OFD Sender: No OFD packet to send [15:14:20]OFD Sender: No OFD packet to send [15:14:25]OFD Sender: No OFD packet to send [15:14:30]OFD Sender: No OFD packet to send [15:14:35]OFD Sender: No OFD packet to send [15:14:40]OFD Sender: No OFD packet to send [15:14:45]OFD Sender: No OFD packet to send [15:14:50]OFD Sender: No OFD packet to send [15:14:55]OFD Sender: No OFD packet to send [15:14:56]accept exits with 8 [15:14:56]New connection [15:14:56]New thread 3066690916 created [15:14:56]Thread 3066834276 joined [15:14:56]Waiting for new connection... [15:14:56] Sock 8.Parse request [15:14:56]Sock 8.Check first char [15:14:56]Sock 8.First char is OK [15:14:56]request: POST /json_proto HTTP/1.0 [15:14:56]Method: POST [15:14:56]URL: /json_proto [15:14:56]Method is POST - this is cgi request [15:14:56]url: /json_proto [15:14:56]query_string will be loaded in cgi processing [15:14:56]execute_cgi json_proto POST (null) [15:14:56]execute_cgi path=json_proto method=POST [15:14:56]POST find Content-Length [15:14:56]Host: 172.17.63.195:8080 [15:14:56]Content-Length: 677 [15:14:56]Content-Type: application/json [15:14:56] [15:14:56]POST finish read [15:14:56]Found Content-Length = 677 [15:14:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [15:14:56]execute_script... [15:14: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)449314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [15:14:56]POST & json_proto [15:14:56]process_json_proto [15:14:56]json parsed OK: [15:14:56]protocol is kg_v1.0 [15:14:56]action value=close_receipt [15:14:56]process_action close_receipt [15:14:56]cmd_close_receipt [15:14:56]MH_GetDate [15:14:56]Write to MH i2c: F0 00 00 2F 28 46 [15:14:56]Write i2c OK [15:14:56]MH_I2C_Read... [15:14:56]Read from MH i2c: F0 [15:14:56]MH_I2C_Read... [15:14:56]Read from MH i2c: F0 09 00 [15:14:56]MH_I2C_Read... [15:14:56]Read from MH i2c: F0 09 00 2F 28 00 72 07 1D 67 68 46 19 67 7A [15:14:56]GetLastDocTimeStamp 1729955643 [15:14:56]current date 1729955698 [15:14:56]FM_GetShiftState [15:14:56]SAM_PROTO_GetShiftState [15:14:56]wFMCommunicate request_size=4 [15:14:56]MH_SAM_APDU [15:14:56]CAPDU: 80 13 01 00 [15:14:56]Write to MH i2c: E2 08 00 30 28 80 13 01 00 00 00 00 00 D5 [15:14:56]Write i2c OK [15:14:56]MH_I2C_Read... [15:14:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:56]Read from MH i2c: E2 [15:14:56]MH_I2C_Read... [15:14:56]Read from MH i2c: E2 0E 00 [15:14:56]MH_I2C_Read... [15:14:56]Read from MH i2c: E2 0E 00 30 28 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E4 [15:14:56]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:14:56]wFMCommunicate OK [15:14:56]SAM_PROTO_GetShiftState done [15:14:56]FM_GetShiftState done [15:14:56]opened in 1729900879 [15:14:56]opened+sec_in_day 1729987279 [15:14:56]quantity*price = 20003 [15:14:56]sum+1 = 20004 [15:14:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 322 26.10.2024 15:14 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201560 ФПД: 240310873489728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T151458&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201560&fm=240310873489728&tin=02508201610067®Number=0000000000091777&sum=20000 [15:14:58]StoreToDocumentArchive [15:14:58]shift 543 fd 201560 [15:14:58]save to /storage/0543/doc_00201560 [15:14:58]save last doc name /storage/0543/doc_00201560 to /storage/kkm_last_doc_name [15:14:58]save OK [15:14:58]Clear old archive folders... [15:14:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:14:58]tlvbuf is 01FFBC30 [15:14:58]SAM_PROTO_ClearQueue [15:14:58]wFMCommunicate request_size=4 [15:14:58]MH_SAM_APDU [15:14:58]CAPDU: 80 09 00 00 [15:14:58]Write to MH i2c: E2 08 00 3D 28 80 09 00 00 00 00 00 00 D7 [15:14:58]Write i2c OK [15:14:58]MH_I2C_Read... [15:14:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:58]Read from MH i2c: E2 [15:14:58]MH_I2C_Read... [15:14:58]Read from MH i2c: E2 03 00 [15:14:58]MH_I2C_Read... [15:14:58]Read from MH i2c: E2 03 00 3D 28 00 90 00 D9 [15:14:58]RAPDU: 90 00 [15:14:58]wFMCommunicate OK [15:14:58]SAM_PROTO_ClearQueue done [15:14:58]KKMCreateOFDPacket [15:14:58]OFDProtocolAddRootSTLVToBuf [15:14:58]FM_MakeSignedData [15:14:58]FM_MakeSignedData [15:14:58]SAM_PROTO_SignData [15:14:58]wFMCommunicate request_size=4 [15:14:58]MH_SAM_APDU [15:14:58]CAPDU: 80 0D 01 02 [15:14:58]Write to MH i2c: E2 08 00 3E 28 80 0D 01 02 00 00 00 00 DF [15:14:58]Write i2c OK [15:14:58]MH_I2C_Read... [15:14:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:58]Read from MH i2c: E2 [15:14:58]MH_I2C_Read... [15:14:58]Read from MH i2c: E2 03 00 [15:14:58]MH_I2C_Read... [15:14:58]Read from MH i2c: E2 03 00 3E 28 00 90 00 DA [15:14:58]RAPDU: 90 00 [15:14:58]wFMCommunicate OK [15:14:58]wFMCommunicate request_size=255 [15:14:58]MH_SAM_APDU [15:14: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 32 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 42 01 00 00 F4 03 04 00 72 07 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 58 13 03 00 35 04 06 00 DA [15:14:58]Write to MH i2c: E2 02 01 3F 28 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 32 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 42 01 00 00 F4 03 04 00 72 07 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 58 13 03 00 35 04 06 00 DA 00 00 DE [15:14:58]Write i2c OK [15:14:58]MH_I2C_Read... [15:14:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:58]Read from MH i2c: E2 [15:14:58]MH_I2C_Read... [15:14:58]Read from MH i2c: E2 03 00 [15:14:58]MH_I2C_Read... [15:14:58]Read from MH i2c: E2 03 00 3F 28 00 90 00 DB [15:14:58]RAPDU: 90 00 [15:14:58]wFMCommunicate OK [15:14:58]wFMCommunicate request_size=10 [15:14:58]MH_SAM_APDU [15:14:58]CAPDU: 80 0D 02 02 05 8F BC 40 01 40 [15:14:58]Write to MH i2c: E2 0D 00 40 28 80 0D 02 02 05 00 8F BC 40 01 40 00 00 B8 [15:14:58]Write i2c OK [15:14:58]MH_I2C_Read... [15:14:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:58]Read from MH i2c: E2 [15:14:58]MH_I2C_Read... [15:14:58]Read from MH i2c: E2 03 00 [15:14:58]MH_I2C_Read... [15:14:58]Read from MH i2c: E2 03 00 40 28 00 90 00 DC [15:14:58]RAPDU: 90 00 [15:14:58]wFMCommunicate OK [15:14:58]wFMCommunicate request_size=4 [15:14:58]MH_SAM_APDU [15:14:58]CAPDU: 80 0D 03 02 [15:14:58]Write to MH i2c: E2 08 00 41 28 80 0D 03 02 00 00 00 00 E4 [15:14:58]Write i2c OK [15:14:58]MH_I2C_Read... [15:14:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:58]Read from MH i2c: E2 [15:14:58]MH_I2C_Read... [15:14:58]Read from MH i2c: E2 0B 00 [15:14:58]MH_I2C_Read... [15:14:58]Read from MH i2c: E2 0B 00 41 28 00 E3 EF D4 49 29 A8 F3 CA 90 00 62 [15:14:58]RAPDU: E3 EF D4 49 29 A8 F3 CA 90 00 [15:14:58]wFMCommunicate OK [15:14:58]SAM_PROTO_SignData done [15:14:58]FM_MakeSignedData done [15:14:58]CreateOFDProtocolMessage [15:14:58]wFMCommunicate request_size=4 [15:14:58]MH_SAM_APDU [15:14:58]CAPDU: 80 11 00 00 [15:14:58]Write to MH i2c: E2 08 00 42 28 80 11 00 00 00 00 00 00 E4 [15:14:58]Write i2c OK [15:14:58]MH_I2C_Read... [15:14:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:58]Read from MH i2c: E2 [15:14:58]MH_I2C_Read... [15:14:58]Read from MH i2c: E2 17 00 [15:14:58]MH_I2C_Read... [15:14:58]Read from MH i2c: E2 17 00 42 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 39 [15:14:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:14:58]wFMCommunicate OK [15:14:58]CreateOFDProtocolMessage done [15:14:58]OFDSenderStorePacket 201560 [15:14:58]StoreOFDPacket docnum=201560 [15:14:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 00 42 07 01 09 1A 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 32 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 42 01 00 00 F4 03 04 00 72 07 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 58 13 03 00 35 04 06 00 DA 8F BC 40 01 40 E3 EF D4 49 29 A8 F3 CA [15:14:58]CheckFolder [15:14:58]dirname=/storage/ofd_packets [15:14:58]CheckFolder done [15:14:58]ProducePacketName [15:14:58]name=ofd_packets/00201560 [15:14:58]NVStorageSaveData ofd_packets/00201560 [15:14:58]File name is /storage/ofd_packets/00201560 [15:14:58]Write 301 bytes [15:14:58]NVStorageSaveData done [15:14:58]OFDSenderStorePacket done [15:14:58]KKMCreateOFDPacket done [15:14:58]NVStorageSaveData kkm_last_timestamp [15:14:58]File name is /storage/kkm_last_timestamp [15:14:58]Write 4 bytes [15:14:58]NVStorageSaveData done [15:14:58]ExternCall_PrintAddStr [15:14:58]wPrintStart [15:14:58]Write to MH i2c: 01 00 00 43 28 6B [15:14:58]Write i2c OK [15:14:58]MH_I2C_Read... [15:14:58]Read from MH i2c: 01 [15:14:58]MH_I2C_Read... [15:14:58]Read from MH i2c: 01 07 00 [15:14:58]MH_I2C_Read... [15:14:58]Read from MH i2c: 01 07 00 43 28 00 00 00 00 00 FF 0F 80 [15:14:58]RasterBufferAndPrint [15:14:58]line Счет N : (1)449314 [15:14:58]line ИНН: 02508201610067 [15:14:58]line Контрольно-Кассовый Чек [15:14:58]line ПРОДАЖА [15:14:58]line ТРК (МРК, ГНК) : 41 [15:14:58]line Товар: 2710124130 [15:14:58]line Аи-92-К-2 [15:14:58]line 2.990 * 66.90 [15:14:58]line = 200.03 [15:14:58]line НДС 12% НСП 1% [15:14:58]line > о реализуемом товаре [15:14:58]line ОКРУГЛЕНИЕ: -0.03 [15:14:58]line ИТОГО: 200.00 [15:14:58]line Внесено: 200.00 [15:14:58]line СДАЧА: 0.00 [15:14:58]line НСП 1% : 1.77 [15:14:58]line НДС 12% : 21.24 [15:14:58]line Наличными: 200.00 [15:14:58]line Безнал.: 0.00 [15:14:58]line Место: АЗС № 171 "Партнер Нефть" [15:14:58]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:14:58]line СНО: Общий режим [15:14:58]line Чек 322 26.10.2024 15:14 [15:14:58]line Смена: 543 ФФД: 1.0 [15:14:58]line ЗНМ: 0300000109 [15:14:58]line РНМ: 0000000000091777 [15:14:58]line Версия ККМ: 001 [15:14:58]line ФМ: 0000000000871756 [15:14:58]line ФД: 201560 [15:14:58]line ФПД: 240310873489728 [15:14:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T151458&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201560&fm=240310873489728&tin=02508201610067®Number=0000000000091777&sum=20000 [15:14:58]OFD Sender: Processing packet 201560 [packets to send 112, broken 111] [15:14:58]ProducePacketName [15:14:58]name=ofd_packets/00201560 [15:14:58]OFD Sender: To server: pG, [15:14:58]CommunicateWithHost lk.salyk.kg:30040 [15:14:58]ConnectInit lk.salyk.kg [15:14:58]written 0, free lines is 4095 [15:14:59]Connected sock=10 [15:14:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 00 42 07 01 09 1A 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 32 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 42 01 00 00 F4 03 04 00 72 07 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 58 13 03 00 35 04 06 00 DA 8F BC 40 01 40 E3 EF D4 49 29 A8 F3 CA [15:14:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E1 4E 47 00 6C 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 58 13 03 00 F4 03 04 00 1B B3 1C 67 B6 04 01 00 00 2C DC B3 52 15 97 EC B4 [15:14:59]CommunicateWithHost err = 0 [15:14:59]CheckOFDResponse [15:14:59]1017 (14) - 77093643461234 [15:14:59]1041 (16) - 0000000000871756 [15:14:59]1040 (4) - 201560 [15:14:59]1012 (4) - 26.10.2024 09:15 [15:14:59]1206 (1) - 0 [15:14:59]OFD Sender: Remove packet 201560 [15:14:59]ProducePacketName [15:14:59]name=ofd_packets/00201560 [15:14:59]NVStorageDeleteData [15:14:59]Write to MH i2c: 01 00 00 6E 28 96 [15:14:59]Write i2c OK [15:14:59]MH_I2C_Read... [15:14:59]Read from MH i2c: 01 [15:14:59]MH_I2C_Read... [15:14:59]Read from MH i2c: 01 07 00 [15:14:59]MH_I2C_Read... [15:14:59]Read from MH i2c: 01 07 00 6E 28 00 00 00 00 00 B5 0C 5E [15:14:59]RasterBufferAndPrint [15:14:59]line [15:14:59]line [15:14:59]line [15:14:59]line [15:14:59]line [15:14:59]written 0, free lines is 3259 [15:14:59]MH_Cut [15:14:59]Write to MH i2c: D1 01 00 75 28 01 6F [15:14:59]Write i2c OK [15:14:59]MH_I2C_Read... [15:14:59]Read from MH i2c: D1 [15:14:59]MH_I2C_Read... [15:14:59]Read from MH i2c: D1 01 00 [15:14:59]MH_I2C_Read... [15:14:59]Read from MH i2c: D1 01 00 75 28 00 6E [15:14:59]Write to MH i2c: 01 00 00 76 28 9E [15:14:59]Write i2c OK [15:14:59]MH_I2C_Read... [15:14:59]OFD Sender: No OFD packet to send [15:15:00]*** Cut start [15:15:00]*** Purtial cut [15:15:00]*** CUTSNS_PIN = 0 [15:15:00]*** Stage 1: CUTSNS_PIN = 1 [15:15:02]Read from MH i2c: 01 [15:15:02]MH_I2C_Read... [15:15:02]*** Stop cut motor [15:15:02]*** Cut end [15:15:02]Read from MH i2c: 01 07 00 [15:15:02]MH_I2C_Read... [15:15:02]Read from MH i2c: 01 07 00 76 28 00 00 00 00 00 FF 0F B3 [15:15:02]process_action close_receipt done [15:15:02]requested_data is exist [15:15:02]produce_requested_data [15:15:02]requested_item fm.sn is exist - process it [15:15:02]wFMCommunicate request_size=4 [15:15:02]MH_SAM_APDU [15:15:02]CAPDU: 80 11 00 00 [15:15:02]Write to MH i2c: E2 08 00 77 28 80 11 00 00 00 00 00 00 19 [15:15:02]Write i2c OK [15:15:02]MH_I2C_Read... [15:15:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:02]Read from MH i2c: E2 [15:15:02]MH_I2C_Read... [15:15:02]Read from MH i2c: E2 17 00 [15:15:02]MH_I2C_Read... [15:15:02]Read from MH i2c: E2 17 00 77 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6E [15:15:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:15:02]wFMCommunicate OK [15:15:02]requested_item fd.num is exist - process it [15:15:02]SAM_PROTO_GetFieldsCounters [15:15:02]wFMCommunicate request_size=4 [15:15:02]MH_SAM_APDU [15:15:02]CAPDU: 80 13 00 00 [15:15:02]Write to MH i2c: E2 08 00 78 28 80 13 00 00 00 00 00 00 1C [15:15:02]Write i2c OK [15:15:02]MH_I2C_Read... [15:15:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:02]Read from MH i2c: E2 [15:15:02]MH_I2C_Read... [15:15:02]Read from MH i2c: E2 62 00 [15:15:02]MH_I2C_Read... [15:15:02]Read from MH i2c: E2 62 00 78 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 58 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 9D [15:15:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 58 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:15:02]wFMCommunicate OK [15:15:02]SAM_PROTO_GetFieldsCounters done [15:15:02]requested_item shift.num is exist - process it [15:15:02]requested_item shift.opened is exist - process it [15:15:02]req_shift_opened [15:15:02]FM_GetShiftState [15:15:02]SAM_PROTO_GetShiftState [15:15:02]wFMCommunicate request_size=4 [15:15:02]MH_SAM_APDU [15:15:02]CAPDU: 80 13 01 00 [15:15:02]Write to MH i2c: E2 08 00 79 28 80 13 01 00 00 00 00 00 1E [15:15:02]Write i2c OK [15:15:02]MH_I2C_Read... [15:15:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:02]Read from MH i2c: E2 [15:15:02]MH_I2C_Read... [15:15:02]Read from MH i2c: E2 0E 00 [15:15:02]MH_I2C_Read... [15:15:02]Read from MH i2c: E2 0E 00 79 28 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 2D [15:15:02]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:15:02]wFMCommunicate OK [15:15:02]SAM_PROTO_GetShiftState done [15:15:02]FM_GetShiftState done [15:15:02]req_shift_opened done [15:15:02]requested_item shift.open_date is exist - process it [15:15:02]req_shift_open_date [15:15:02]req_shift_open_date done [15:15:02]produce_requested_data done [15:15:02]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201560,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [15:15:02]process_action_free close_receipt [15:15:02]json_value_free [15:15:02]json_value_free done [15:15:02]process_json_proto returns [15:15:02]Send response to host [15:15:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201560,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [15:15:02]free response buf [15:15:02]execute_script done [15:15:02]execute_script returns [15:15:02]free content buf [15:15:02]Sock 8.Close socket [15:15:02]Sock 8.Thread stoped [15:15:04]OFD Sender: No OFD packet to send [15:15:09]OFD Sender: No OFD packet to send [15:15:14]OFD Sender: No OFD packet to send [15:15:19]OFD Sender: No OFD packet to send [15:15:24]OFD Sender: No OFD packet to send [15:15:29]OFD Sender: No OFD packet to send [15:15:31]accept exits with 9 [15:15:31]New connection [15:15:31]New thread 3066834276 created [15:15:31]Thread 3066690916 joined [15:15:31]Waiting for new connection... [15:15:31] Sock 9.Parse request [15:15:31]Sock 9.Check first char [15:15:31]Sock 9.First char is OK [15:15:31]request: POST /json_proto HTTP/1.0 [15:15:31]Method: POST [15:15:31]URL: /json_proto [15:15:31]Method is POST - this is cgi request [15:15:31]url: /json_proto [15:15:31]query_string will be loaded in cgi processing [15:15:31]execute_cgi json_proto POST (null) [15:15:31]execute_cgi path=json_proto method=POST [15:15:31]POST find Content-Length [15:15:32]Host: 172.17.63.195:8080 [15:15:32]Content-Length: 678 [15:15:32]Content-Type: application/json [15:15:32] [15:15:32]POST finish read [15:15:32]Found Content-Length = 678 [15:15:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [15:15:32]execute_script... [15:15: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)449315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [15:15:32]POST & json_proto [15:15:32]process_json_proto [15:15:32]json parsed OK: [15:15:32]protocol is kg_v1.0 [15:15:32]action value=close_receipt [15:15:32]process_action close_receipt [15:15:32]cmd_close_receipt [15:15:32]MH_GetDate [15:15:32]Write to MH i2c: F0 00 00 7A 28 91 [15:15:32]Write i2c OK [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: F0 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: F0 09 00 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: F0 09 00 7A 28 00 95 07 1D 67 68 46 19 67 E8 [15:15:32]GetLastDocTimeStamp 1729955698 [15:15:32]current date 1729955733 [15:15:32]FM_GetShiftState [15:15:32]SAM_PROTO_GetShiftState [15:15:32]wFMCommunicate request_size=4 [15:15:32]MH_SAM_APDU [15:15:32]CAPDU: 80 13 01 00 [15:15:32]Write to MH i2c: E2 08 00 7B 28 80 13 01 00 00 00 00 00 20 [15:15:32]Write i2c OK [15:15:32]MH_I2C_Read... [15:15:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:32]Read from MH i2c: E2 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: E2 0E 00 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: E2 0E 00 7B 28 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 2F [15:15:32]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:15:32]wFMCommunicate OK [15:15:32]SAM_PROTO_GetShiftState done [15:15:32]FM_GetShiftState done [15:15:32]opened in 1729900879 [15:15:32]opened+sec_in_day 1729987279 [15:15:32]quantity*price = 70044 [15:15:32]sum+1 = 70045 [15:15:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 323 26.10.2024 15:15 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201561 ФПД: 177247489151559 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T151533&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201561&fm=177247489151559&tin=02508201610067®Number=0000000000091777&sum=70000 [15:15:33]StoreToDocumentArchive [15:15:33]shift 543 fd 201561 [15:15:33]save to /storage/0543/doc_00201561 [15:15:33]save last doc name /storage/0543/doc_00201561 to /storage/kkm_last_doc_name [15:15:33]save OK [15:15:33]Clear old archive folders... [15:15:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:15:33]tlvbuf is 01F022A0 [15:15:33]SAM_PROTO_ClearQueue [15:15:33]wFMCommunicate request_size=4 [15:15:33]MH_SAM_APDU [15:15:33]CAPDU: 80 09 00 00 [15:15:33]Write to MH i2c: E2 08 00 88 28 80 09 00 00 00 00 00 00 22 [15:15:33]Write i2c OK [15:15:33]MH_I2C_Read... [15:15:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:33]Read from MH i2c: E2 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 03 00 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 03 00 88 28 00 90 00 24 [15:15:33]RAPDU: 90 00 [15:15:33]wFMCommunicate OK [15:15:33]SAM_PROTO_ClearQueue done [15:15:33]KKMCreateOFDPacket [15:15:33]OFDProtocolAddRootSTLVToBuf [15:15:33]FM_MakeSignedData [15:15:33]FM_MakeSignedData [15:15:33]SAM_PROTO_SignData [15:15:33]wFMCommunicate request_size=4 [15:15:33]MH_SAM_APDU [15:15:33]CAPDU: 80 0D 01 02 [15:15:33]Write to MH i2c: E2 08 00 89 28 80 0D 01 02 00 00 00 00 2A [15:15:33]Write i2c OK [15:15:33]MH_I2C_Read... [15:15:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:33]Read from MH i2c: E2 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 03 00 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 03 00 89 28 00 90 00 25 [15:15:33]RAPDU: 90 00 [15:15:33]wFMCommunicate OK [15:15:33]wFMCommunicate request_size=255 [15:15:33]MH_SAM_APDU [15:15: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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 43 01 00 00 F4 03 04 00 95 07 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 59 13 03 00 35 04 06 00 A1 [15:15:33]Write to MH i2c: E2 02 01 8A 28 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 43 01 00 00 F4 03 04 00 95 07 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 59 13 03 00 35 04 06 00 A1 00 00 63 [15:15:33]Write i2c OK [15:15:33]MH_I2C_Read... [15:15:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:33]Read from MH i2c: E2 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 03 00 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 03 00 8A 28 00 90 00 26 [15:15:33]RAPDU: 90 00 [15:15:33]wFMCommunicate OK [15:15:33]wFMCommunicate request_size=10 [15:15:33]MH_SAM_APDU [15:15:33]CAPDU: 80 0D 02 02 05 34 A5 A0 D2 47 [15:15:33]Write to MH i2c: E2 0D 00 8B 28 80 0D 02 02 05 00 34 A5 A0 D2 47 00 00 C9 [15:15:33]Write i2c OK [15:15:33]MH_I2C_Read... [15:15:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:33]Read from MH i2c: E2 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 03 00 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 03 00 8B 28 00 90 00 27 [15:15:33]RAPDU: 90 00 [15:15:33]wFMCommunicate OK [15:15:33]wFMCommunicate request_size=4 [15:15:33]MH_SAM_APDU [15:15:33]CAPDU: 80 0D 03 02 [15:15:33]Write to MH i2c: E2 08 00 8C 28 80 0D 03 02 00 00 00 00 2F [15:15:33]Write i2c OK [15:15:33]MH_I2C_Read... [15:15:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:33]Read from MH i2c: E2 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 0B 00 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 0B 00 8C 28 00 E5 78 22 5B DE CB AE 29 90 00 8A [15:15:33]RAPDU: E5 78 22 5B DE CB AE 29 90 00 [15:15:33]wFMCommunicate OK [15:15:33]SAM_PROTO_SignData done [15:15:33]FM_MakeSignedData done [15:15:33]CreateOFDProtocolMessage [15:15:33]wFMCommunicate request_size=4 [15:15:33]MH_SAM_APDU [15:15:33]CAPDU: 80 11 00 00 [15:15:33]Write to MH i2c: E2 08 00 8D 28 80 11 00 00 00 00 00 00 2F [15:15:33]Write i2c OK [15:15:33]MH_I2C_Read... [15:15:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:33]Read from MH i2c: E2 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 17 00 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 17 00 8D 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 84 [15:15:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:15:33]wFMCommunicate OK [15:15:33]CreateOFDProtocolMessage done [15:15:33]OFDSenderStorePacket 201561 [15:15:33]StoreOFDPacket docnum=201561 [15:15:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 60 27 07 01 4D 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 43 01 00 00 F4 03 04 00 95 07 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 59 13 03 00 35 04 06 00 A1 34 A5 A0 D2 47 E5 78 22 5B DE CB AE 29 [15:15:33]CheckFolder [15:15:33]dirname=/storage/ofd_packets [15:15:33]CheckFolder done [15:15:33]ProducePacketName [15:15:33]name=ofd_packets/00201561 [15:15:33]NVStorageSaveData ofd_packets/00201561 [15:15:33]File name is /storage/ofd_packets/00201561 [15:15:33]Write 301 bytes [15:15:33]NVStorageSaveData done [15:15:33]OFDSenderStorePacket done [15:15:33]KKMCreateOFDPacket done [15:15:33]NVStorageSaveData kkm_last_timestamp [15:15:33]File name is /storage/kkm_last_timestamp [15:15:33]Write 4 bytes [15:15:33]NVStorageSaveData done [15:15:33]ExternCall_PrintAddStr [15:15:33]wPrintStart [15:15:33]Write to MH i2c: 01 00 00 8E 28 B6 [15:15:33]Write i2c OK [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: 01 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: 01 07 00 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: 01 07 00 8E 28 00 00 00 00 00 FF 0F CB [15:15:33]RasterBufferAndPrint [15:15:33]line Счет N : (1)449315 [15:15:33]line ИНН: 02508201610067 [15:15:33]line Контрольно-Кассовый Чек [15:15:33]line ПРОДАЖА [15:15:33]line ТРК (МРК, ГНК) : 52 [15:15:33]line Товар: 2710124130 [15:15:33]line Аи-92-К-2 [15:15:33]line 10.470 * 66.90 [15:15:33]line = 700.44 [15:15:33]line НДС 12% НСП 1% [15:15:33]line > о реализуемом товаре [15:15:33]line ОКРУГЛЕНИЕ: -0.44 [15:15:33]line ИТОГО: 700.00 [15:15:33]line Внесено: 700.00 [15:15:33]line СДАЧА: 0.00 [15:15:33]line НСП 1% : 6.20 [15:15:33]line НДС 12% : 74.38 [15:15:33]line Наличными: 700.00 [15:15:33]line Безнал.: 0.00 [15:15:33]line Место: АЗС № 171 "Партнер Нефть" [15:15:33]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:15:33]line СНО: Общий режим [15:15:33]line Чек 323 26.10.2024 15:15 [15:15:33]line Смена: 543 ФФД: 1.0 [15:15:33]line ЗНМ: 0300000109 [15:15:33]line РНМ: 0000000000091777 [15:15:33]line Версия ККМ: 001 [15:15:33]line ФМ: 0000000000871756 [15:15:33]line ФД: 201561 [15:15:33]line ФПД: 177247489151559 [15:15:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T151533&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201561&fm=177247489151559&tin=02508201610067®Number=0000000000091777&sum=70000 [15:15:34]OFD Sender: Processing packet 201561 [packets to send 112, broken 111] [15:15:34]ProducePacketName [15:15:34]name=ofd_packets/00201561 [15:15:34]OFD Sender: To server: pG, [15:15:34]CommunicateWithHost lk.salyk.kg:30040 [15:15:34]ConnectInit lk.salyk.kg [15:15:34]written 0, free lines is 4095 [15:15:34]Connected sock=8 [15:15:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 60 27 07 01 4D 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 43 01 00 00 F4 03 04 00 95 07 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 59 13 03 00 35 04 06 00 A1 34 A5 A0 D2 47 E5 78 22 5B DE CB AE 29 [15:15:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D7 1E 47 00 CE B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 59 13 03 00 F4 03 04 00 3E B3 1C 67 B6 04 01 00 00 3F 09 36 3F 92 1A C8 DF [15:15:34]CommunicateWithHost err = 0 [15:15:34]CheckOFDResponse [15:15:34]1017 (14) - 77093643461234 [15:15:34]1041 (16) - 0000000000871756 [15:15:34]1040 (4) - 201561 [15:15:34]1012 (4) - 26.10.2024 09:15 [15:15:34]1206 (1) - 0 [15:15:34]OFD Sender: Remove packet 201561 [15:15:34]ProducePacketName [15:15:34]name=ofd_packets/00201561 [15:15:34]NVStorageDeleteData [15:15:34]Write to MH i2c: 01 00 00 B9 28 E1 [15:15:34]Write i2c OK [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: 01 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: 01 07 00 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: 01 07 00 B9 28 00 00 00 00 00 8F 0C 83 [15:15:34]RasterBufferAndPrint [15:15:34]line [15:15:34]line [15:15:34]line [15:15:34]line [15:15:34]line [15:15:34]written 0, free lines is 3220 [15:15:34]MH_Cut [15:15:34]Write to MH i2c: D1 01 00 C0 28 01 BA [15:15:34]Write i2c OK [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: D1 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: D1 01 00 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: D1 01 00 C0 28 00 B9 [15:15:34]Write to MH i2c: 01 00 00 C1 28 E9 [15:15:34]Write i2c OK [15:15:34]MH_I2C_Read... [15:15:34]OFD Sender: No OFD packet to send [15:15:35]*** Cut start [15:15:35]*** Purtial cut [15:15:35]*** Stage 1: CUTSNS_PIN = 1 [15:15:35]Read from MH i2c: 01 [15:15:35]MH_I2C_Read... [15:15:35]*** Stop cut motor [15:15:35]*** Cut end [15:15:35]Read from MH i2c: 01 07 00 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: 01 07 00 C1 28 00 00 00 00 00 FF 0F FE [15:15:35]process_action close_receipt done [15:15:35]requested_data is exist [15:15:35]produce_requested_data [15:15:35]requested_item fm.sn is exist - process it [15:15:35]wFMCommunicate request_size=4 [15:15:35]MH_SAM_APDU [15:15:35]CAPDU: 80 11 00 00 [15:15:35]Write to MH i2c: E2 08 00 C2 28 80 11 00 00 00 00 00 00 64 [15:15:35]Write i2c OK [15:15:35]MH_I2C_Read... [15:15:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:35]Read from MH i2c: E2 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 17 00 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 17 00 C2 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B9 [15:15:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:15:35]wFMCommunicate OK [15:15:35]requested_item fd.num is exist - process it [15:15:35]SAM_PROTO_GetFieldsCounters [15:15:35]wFMCommunicate request_size=4 [15:15:35]MH_SAM_APDU [15:15:35]CAPDU: 80 13 00 00 [15:15:35]Write to MH i2c: E2 08 00 C3 28 80 13 00 00 00 00 00 00 67 [15:15:35]Write i2c OK [15:15:35]MH_I2C_Read... [15:15:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:35]Read from MH i2c: E2 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 62 00 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 62 00 C3 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 59 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 EC [15:15:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 59 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:15:35]wFMCommunicate OK [15:15:35]SAM_PROTO_GetFieldsCounters done [15:15:35]requested_item shift.num is exist - process it [15:15:35]requested_item shift.opened is exist - process it [15:15:35]req_shift_opened [15:15:35]FM_GetShiftState [15:15:35]SAM_PROTO_GetShiftState [15:15:35]wFMCommunicate request_size=4 [15:15:35]MH_SAM_APDU [15:15:35]CAPDU: 80 13 01 00 [15:15:35]Write to MH i2c: E2 08 00 C4 28 80 13 01 00 00 00 00 00 69 [15:15:35]Write i2c OK [15:15:35]MH_I2C_Read... [15:15:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:35]Read from MH i2c: E2 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 0E 00 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 0E 00 C4 28 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 78 [15:15:35]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:15:35]wFMCommunicate OK [15:15:35]SAM_PROTO_GetShiftState done [15:15:35]FM_GetShiftState done [15:15:35]req_shift_opened done [15:15:35]requested_item shift.open_date is exist - process it [15:15:35]req_shift_open_date [15:15:35]req_shift_open_date done [15:15:35]produce_requested_data done [15:15:35]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201561,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [15:15:35]process_action_free close_receipt [15:15:35]json_value_free [15:15:35]json_value_free done [15:15:35]process_json_proto returns [15:15:35]Send response to host [15:15:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201561,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [15:15:35]free response buf [15:15:35]execute_script done [15:15:35]execute_script returns [15:15:35]free content buf [15:15:35]Sock 9.Close socket [15:15:35]Sock 9.Thread stoped [15:15:39]OFD Sender: No OFD packet to send [15:15:44]OFD Sender: No OFD packet to send [15:15:49]OFD Sender: No OFD packet to send [15:15:54]OFD Sender: No OFD packet to send [15:15:59]OFD Sender: No OFD packet to send [15:16:04]OFD Sender: No OFD packet to send [15:16:09]OFD Sender: No OFD packet to send [15:16:14]OFD Sender: No OFD packet to send [15:16:19]OFD Sender: No OFD packet to send [15:16:24]OFD Sender: No OFD packet to send [15:16:29]OFD Sender: No OFD packet to send [15:16:34]OFD Sender: No OFD packet to send [15:16:39]OFD Sender: No OFD packet to send [15:16:44]OFD Sender: No OFD packet to send [15:16:49]OFD Sender: No OFD packet to send [15:16:54]OFD Sender: No OFD packet to send [15:16:59]OFD Sender: No OFD packet to send [15:17:04]OFD Sender: No OFD packet to send [15:17:10]OFD Sender: No OFD packet to send [15:17:15]OFD Sender: No OFD packet to send [15:17:20]OFD Sender: No OFD packet to send [15:17:25]OFD Sender: No OFD packet to send [15:17:30]OFD Sender: No OFD packet to send [15:17:35]OFD Sender: No OFD packet to send [15:17:40]OFD Sender: No OFD packet to send [15:17:41]accept exits with 10 [15:17:41]New connection [15:17:41]New thread 3066690916 created [15:17:41]Thread 3066834276 joined [15:17:41]Waiting for new connection... [15:17:41] Sock 10.Parse request [15:17:41]Sock 10.Check first char [15:17:41]Sock 10.First char is OK [15:17:41]request: POST /json_proto HTTP/1.0 [15:17:41]Method: POST [15:17:41]URL: /json_proto [15:17:41]Method is POST - this is cgi request [15:17:41]url: /json_proto [15:17:41]query_string will be loaded in cgi processing [15:17:41]execute_cgi json_proto POST (null) [15:17:41]execute_cgi path=json_proto method=POST [15:17:41]POST find Content-Length [15:17:41]Host: 172.17.63.195:8080 [15:17:41]Content-Length: 677 [15:17:41]Content-Type: application/json [15:17:41] [15:17:41]POST finish read [15:17:41]Found Content-Length = 677 [15:17:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [15:17:41]execute_script... [15:17: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)449317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [15:17:41]POST & json_proto [15:17:41]process_json_proto [15:17:41]json parsed OK: [15:17:41]protocol is kg_v1.0 [15:17:41]action value=close_receipt [15:17:41]process_action close_receipt [15:17:41]cmd_close_receipt [15:17:41]MH_GetDate [15:17:41]Write to MH i2c: F0 00 00 C5 28 DC [15:17:41]Write i2c OK [15:17:41]MH_I2C_Read... [15:17:41]Read from MH i2c: F0 [15:17:41]MH_I2C_Read... [15:17:41]Read from MH i2c: F0 09 00 [15:17:41]MH_I2C_Read... [15:17:41]Read from MH i2c: F0 09 00 C5 28 00 16 08 1D 67 68 46 19 67 B5 [15:17:41]GetLastDocTimeStamp 1729955733 [15:17:41]current date 1729955862 [15:17:41]FM_GetShiftState [15:17:41]SAM_PROTO_GetShiftState [15:17:41]wFMCommunicate request_size=4 [15:17:41]MH_SAM_APDU [15:17:41]CAPDU: 80 13 01 00 [15:17:41]Write to MH i2c: E2 08 00 C6 28 80 13 01 00 00 00 00 00 6B [15:17:41]Write i2c OK [15:17:41]MH_I2C_Read... [15:17:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:41]Read from MH i2c: E2 [15:17:41]MH_I2C_Read... [15:17:41]Read from MH i2c: E2 0E 00 [15:17:41]MH_I2C_Read... [15:17:41]Read from MH i2c: E2 0E 00 C6 28 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 7A [15:17:41]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:17:41]wFMCommunicate OK [15:17:41]SAM_PROTO_GetShiftState done [15:17:41]FM_GetShiftState done [15:17:41]opened in 1729900879 [15:17:41]opened+sec_in_day 1729987279 [15:17:41]quantity*price = 50041 [15:17:41]sum+1 = 50042 [15:17:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 324 26.10.2024 15:17 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201562 ФПД: 93329921671860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T151742&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201562&fm=93329921671860&tin=02508201610067®Number=0000000000091777&sum=50000 [15:17:42]StoreToDocumentArchive [15:17:42]shift 543 fd 201562 [15:17:42]save to /storage/0543/doc_00201562 [15:17:42]save last doc name /storage/0543/doc_00201562 to /storage/kkm_last_doc_name [15:17:42]save OK [15:17:42]Clear old archive folders... [15:17:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:17:42]tlvbuf is B6D8B810 [15:17:42]SAM_PROTO_ClearQueue [15:17:42]wFMCommunicate request_size=4 [15:17:42]MH_SAM_APDU [15:17:42]CAPDU: 80 09 00 00 [15:17:42]Write to MH i2c: E2 08 00 D3 28 80 09 00 00 00 00 00 00 6D [15:17:42]Write i2c OK [15:17:42]MH_I2C_Read... [15:17:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:42]Read from MH i2c: E2 [15:17:42]MH_I2C_Read... [15:17:42]Read from MH i2c: E2 03 00 [15:17:42]MH_I2C_Read... [15:17:42]Read from MH i2c: E2 03 00 D3 28 00 90 00 6F [15:17:42]RAPDU: 90 00 [15:17:42]wFMCommunicate OK [15:17:42]SAM_PROTO_ClearQueue done [15:17:42]KKMCreateOFDPacket [15:17:42]OFDProtocolAddRootSTLVToBuf [15:17:42]FM_MakeSignedData [15:17:42]FM_MakeSignedData [15:17:42]SAM_PROTO_SignData [15:17:42]wFMCommunicate request_size=4 [15:17:42]MH_SAM_APDU [15:17:42]CAPDU: 80 0D 01 02 [15:17:42]Write to MH i2c: E2 08 00 D4 28 80 0D 01 02 00 00 00 00 75 [15:17:42]Write i2c OK [15:17:42]MH_I2C_Read... [15:17:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:42]Read from MH i2c: E2 [15:17:42]MH_I2C_Read... [15:17:42]Read from MH i2c: E2 03 00 [15:17:42]MH_I2C_Read... [15:17:42]Read from MH i2c: E2 03 00 D4 28 00 90 00 70 [15:17:42]RAPDU: 90 00 [15:17:42]wFMCommunicate OK [15:17:42]wFMCommunicate request_size=255 [15:17:42]MH_SAM_APDU [15:17:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 44 01 00 00 F4 03 04 00 16 08 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5A 13 03 00 35 04 06 00 54 [15:17:42]Write to MH i2c: E2 02 01 D5 28 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 32 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 44 01 00 00 F4 03 04 00 16 08 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5A 13 03 00 35 04 06 00 54 00 00 D5 [15:17:42]Write i2c OK [15:17:42]MH_I2C_Read... [15:17:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:43]Read from MH i2c: E2 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: E2 03 00 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: E2 03 00 D5 28 00 90 00 71 [15:17:43]RAPDU: 90 00 [15:17:43]wFMCommunicate OK [15:17:43]wFMCommunicate request_size=10 [15:17:43]MH_SAM_APDU [15:17:43]CAPDU: 80 0D 02 02 05 E2 10 D4 02 B4 [15:17:43]Write to MH i2c: E2 0D 00 D6 28 80 0D 02 02 05 00 E2 10 D4 02 B4 00 00 FE [15:17:43]Write i2c OK [15:17:43]MH_I2C_Read... [15:17:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:43]Read from MH i2c: E2 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: E2 03 00 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: E2 03 00 D6 28 00 90 00 72 [15:17:43]RAPDU: 90 00 [15:17:43]wFMCommunicate OK [15:17:43]wFMCommunicate request_size=4 [15:17:43]MH_SAM_APDU [15:17:43]CAPDU: 80 0D 03 02 [15:17:43]Write to MH i2c: E2 08 00 D7 28 80 0D 03 02 00 00 00 00 7A [15:17:43]Write i2c OK [15:17:43]MH_I2C_Read... [15:17:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:43]Read from MH i2c: E2 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: E2 0B 00 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: E2 0B 00 D7 28 00 26 0B 2E 7C 16 64 59 1D 90 00 46 [15:17:43]RAPDU: 26 0B 2E 7C 16 64 59 1D 90 00 [15:17:43]wFMCommunicate OK [15:17:43]SAM_PROTO_SignData done [15:17:43]FM_MakeSignedData done [15:17:43]CreateOFDProtocolMessage [15:17:43]wFMCommunicate request_size=4 [15:17:43]MH_SAM_APDU [15:17:43]CAPDU: 80 11 00 00 [15:17:43]Write to MH i2c: E2 08 00 D8 28 80 11 00 00 00 00 00 00 7A [15:17:43]Write i2c OK [15:17:43]MH_I2C_Read... [15:17:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:43]Read from MH i2c: E2 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: E2 17 00 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: E2 17 00 D8 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CF [15:17:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:17:43]wFMCommunicate OK [15:17:43]CreateOFDProtocolMessage done [15:17:43]OFDSenderStorePacket 201562 [15:17:43]StoreOFDPacket docnum=201562 [15:17:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 70 E0 07 01 71 46 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 32 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 44 01 00 00 F4 03 04 00 16 08 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5A 13 03 00 35 04 06 00 54 E2 10 D4 02 B4 26 0B 2E 7C 16 64 59 1D [15:17:43]CheckFolder [15:17:43]dirname=/storage/ofd_packets [15:17:43]CheckFolder done [15:17:43]ProducePacketName [15:17:43]name=ofd_packets/00201562 [15:17:43]NVStorageSaveData ofd_packets/00201562 [15:17:43]File name is /storage/ofd_packets/00201562 [15:17:43]Write 301 bytes [15:17:43]NVStorageSaveData done [15:17:43]OFDSenderStorePacket done [15:17:43]KKMCreateOFDPacket done [15:17:43]NVStorageSaveData kkm_last_timestamp [15:17:43]File name is /storage/kkm_last_timestamp [15:17:43]Write 4 bytes [15:17:43]NVStorageSaveData done [15:17:43]ExternCall_PrintAddStr [15:17:43]wPrintStart [15:17:43]Write to MH i2c: 01 00 00 D9 28 01 [15:17:43]Write i2c OK [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: 01 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: 01 07 00 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: 01 07 00 D9 28 00 00 00 00 00 FF 0F 16 [15:17:43]RasterBufferAndPrint [15:17:43]line Счет N : (1)449317 [15:17:43]line ИНН: 02508201610067 [15:17:43]line Контрольно-Кассовый Чек [15:17:43]line ПРОДАЖА [15:17:43]line ТРК (МРК, ГНК) : 52 [15:17:43]line Товар: 2710124130 [15:17:43]line Аи-92-К-2 [15:17:43]line 7.480 * 66.90 [15:17:43]line = 500.41 [15:17:43]line НДС 12% НСП 1% [15:17:43]line > о реализуемом товаре [15:17:43]line ОКРУГЛЕНИЕ: -0.41 [15:17:43]line ИТОГО: 500.00 [15:17:43]line Внесено: 500.00 [15:17:43]line СДАЧА: 0.00 [15:17:43]line НСП 1% : 4.43 [15:17:43]line НДС 12% : 53.14 [15:17:43]line Наличными: 500.00 [15:17:43]line Безнал.: 0.00 [15:17:43]line Место: АЗС № 171 "Партнер Нефть" [15:17:43]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:17:43]line СНО: Общий режим [15:17:43]line Чек 324 26.10.2024 15:17 [15:17:43]line Смена: 543 ФФД: 1.0 [15:17:43]line ЗНМ: 0300000109 [15:17:43]line РНМ: 0000000000091777 [15:17:43]line Версия ККМ: 001 [15:17:43]line ФМ: 0000000000871756 [15:17:43]line ФД: 201562 [15:17:43]line ФПД: 93329921671860 [15:17:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T151742&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201562&fm=93329921671860&tin=02508201610067®Number=0000000000091777&sum=50000 [15:17:43]OFD Sender: Processing packet 201562 [packets to send 112, broken 111] [15:17:43]ProducePacketName [15:17:43]name=ofd_packets/00201562 [15:17:43]OFD Sender: To server: pG, [15:17:43]CommunicateWithHost lk.salyk.kg:30040 [15:17:43]ConnectInit lk.salyk.kg [15:17:43]written 0, free lines is 4095 [15:17:43]Connected sock=9 [15:17:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 70 E0 07 01 71 46 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 32 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 44 01 00 00 F4 03 04 00 16 08 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5A 13 03 00 35 04 06 00 54 E2 10 D4 02 B4 26 0B 2E 7C 16 64 59 1D [15:17:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D5 2F 47 00 36 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5A 13 03 00 F4 03 04 00 BF B3 1C 67 B6 04 01 00 00 51 BF 69 B7 E2 D8 A2 6B [15:17:43]CommunicateWithHost err = 0 [15:17:43]CheckOFDResponse [15:17:43]1017 (14) - 77093643461234 [15:17:43]1041 (16) - 0000000000871756 [15:17:43]1040 (4) - 201562 [15:17:43]1012 (4) - 26.10.2024 09:17 [15:17:43]1206 (1) - 0 [15:17:43]OFD Sender: Remove packet 201562 [15:17:43]ProducePacketName [15:17:43]name=ofd_packets/00201562 [15:17:43]NVStorageDeleteData [15:17:44]Write to MH i2c: 01 00 00 04 29 2D [15:17:44]Write i2c OK [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: 01 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: 01 07 00 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: 01 07 00 04 29 00 00 00 00 00 9B 0C DB [15:17:44]RasterBufferAndPrint [15:17:44]line [15:17:44]line [15:17:44]line [15:17:44]line [15:17:44]line [15:17:44]written 0, free lines is 3233 [15:17:44]MH_Cut [15:17:44]Write to MH i2c: D1 01 00 0B 29 01 06 [15:17:44]Write i2c OK [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: D1 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: D1 01 00 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: D1 01 00 0B 29 00 05 [15:17:44]Write to MH i2c: 01 00 00 0C 29 35 [15:17:44]Write i2c OK [15:17:44]MH_I2C_Read... [15:17:44]OFD Sender: No OFD packet to send [15:17:44]*** Cut start [15:17:44]*** Purtial cut [15:17:44]*** Stage 1: CUTSNS_PIN = 1 [15:17:45]Read from MH i2c: 01 [15:17:45]MH_I2C_Read... [15:17:45]*** Stop cut motor [15:17:45]*** Cut end [15:17:45]Read from MH i2c: 01 07 00 [15:17:45]MH_I2C_Read... [15:17:45]Read from MH i2c: 01 07 00 0C 29 00 00 00 00 00 FF 0F 4A [15:17:45]process_action close_receipt done [15:17:45]requested_data is exist [15:17:45]produce_requested_data [15:17:45]requested_item fm.sn is exist - process it [15:17:45]wFMCommunicate request_size=4 [15:17:45]MH_SAM_APDU [15:17:45]CAPDU: 80 11 00 00 [15:17:45]Write to MH i2c: E2 08 00 0D 29 80 11 00 00 00 00 00 00 B0 [15:17:45]Write i2c OK [15:17:45]MH_I2C_Read... [15:17:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:45]Read from MH i2c: E2 [15:17:45]MH_I2C_Read... [15:17:45]Read from MH i2c: E2 17 00 [15:17:45]MH_I2C_Read... [15:17:45]Read from MH i2c: E2 17 00 0D 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 05 [15:17:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:17:45]wFMCommunicate OK [15:17:45]requested_item fd.num is exist - process it [15:17:45]SAM_PROTO_GetFieldsCounters [15:17:45]wFMCommunicate request_size=4 [15:17:45]MH_SAM_APDU [15:17:45]CAPDU: 80 13 00 00 [15:17:45]Write to MH i2c: E2 08 00 0E 29 80 13 00 00 00 00 00 00 B3 [15:17:45]Write i2c OK [15:17:45]MH_I2C_Read... [15:17:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:45]Read from MH i2c: E2 [15:17:45]MH_I2C_Read... [15:17:45]Read from MH i2c: E2 62 00 [15:17:45]MH_I2C_Read... [15:17:45]Read from MH i2c: E2 62 00 0E 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5A 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 3C [15:17:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5A 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:17:45]wFMCommunicate OK [15:17:45]SAM_PROTO_GetFieldsCounters done [15:17:45]requested_item shift.num is exist - process it [15:17:45]requested_item shift.opened is exist - process it [15:17:45]req_shift_opened [15:17:45]FM_GetShiftState [15:17:45]SAM_PROTO_GetShiftState [15:17:45]wFMCommunicate request_size=4 [15:17:45]MH_SAM_APDU [15:17:45]CAPDU: 80 13 01 00 [15:17:45]Write to MH i2c: E2 08 00 0F 29 80 13 01 00 00 00 00 00 B5 [15:17:45]Write i2c OK [15:17:45]MH_I2C_Read... [15:17:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:45]Read from MH i2c: E2 [15:17:45]MH_I2C_Read... [15:17:45]Read from MH i2c: E2 0E 00 [15:17:45]MH_I2C_Read... [15:17:45]Read from MH i2c: E2 0E 00 0F 29 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C4 [15:17:45]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:17:45]wFMCommunicate OK [15:17:45]SAM_PROTO_GetShiftState done [15:17:45]FM_GetShiftState done [15:17:45]req_shift_opened done [15:17:45]requested_item shift.open_date is exist - process it [15:17:45]req_shift_open_date [15:17:45]req_shift_open_date done [15:17:45]produce_requested_data done [15:17:45]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201562,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [15:17:45]process_action_free close_receipt [15:17:45]json_value_free [15:17:45]json_value_free done [15:17:45]process_json_proto returns [15:17:45]Send response to host [15:17:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201562,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [15:17:45]free response buf [15:17:45]execute_script done [15:17:45]execute_script returns [15:17:45]free content buf [15:17:45]Sock 10.Close socket [15:17:45]Sock 10.Thread stoped [15:17:49]OFD Sender: No OFD packet to send [15:17:54]OFD Sender: No OFD packet to send [15:17:59]OFD Sender: No OFD packet to send [15:18:04]OFD Sender: No OFD packet to send [15:18:09]OFD Sender: No OFD packet to send [15:18:14]OFD Sender: No OFD packet to send [15:18:19]OFD Sender: No OFD packet to send [15:18:20]accept exits with 8 [15:18:20]New connection [15:18:20]New thread 3066834276 created [15:18:20]Thread 3066690916 joined [15:18:20]Waiting for new connection... [15:18:20] Sock 8.Parse request [15:18:20]Sock 8.Check first char [15:18:20]Sock 8.First char is OK [15:18:20]request: POST /json_proto HTTP/1.0 [15:18:20]Method: POST [15:18:20]URL: /json_proto [15:18:20]Method is POST - this is cgi request [15:18:20]url: /json_proto [15:18:20]query_string will be loaded in cgi processing [15:18:20]execute_cgi json_proto POST (null) [15:18:20]execute_cgi path=json_proto method=POST [15:18:20]POST find Content-Length [15:18:20]Host: 172.17.63.195:8080 [15:18:20]Content-Length: 766 [15:18:20]Content-Type: application/json [15:18:20] [15:18:20]POST finish read [15:18:20]Found Content-Length = 766 [15:18:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:20]execute_script... [15:18: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)449316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:20]POST & json_proto [15:18:20]process_json_proto [15:18:20]json parsed OK: [15:18:20]protocol is kg_v1.0 [15:18:20]action value=close_receipt [15:18:20]process_action close_receipt [15:18:20]cmd_close_receipt [15:18:20]MH_GetDate [15:18:20]Write to MH i2c: F0 00 00 10 29 28 [15:18:20]Write i2c OK [15:18:20]MH_I2C_Read... [15:18:20]Read from MH i2c: F0 [15:18:20]MH_I2C_Read... [15:18:20]Read from MH i2c: F0 09 00 [15:18:20]MH_I2C_Read... [15:18:20]Read from MH i2c: F0 09 00 10 29 00 3D 08 1D 67 68 46 19 67 28 [15:18:20]GetLastDocTimeStamp 1729955862 [15:18:20]current date 1729955901 [15:18:20]FM_GetShiftState [15:18:20]SAM_PROTO_GetShiftState [15:18:20]wFMCommunicate request_size=4 [15:18:20]MH_SAM_APDU [15:18:20]CAPDU: 80 13 01 00 [15:18:20]Write to MH i2c: E2 08 00 11 29 80 13 01 00 00 00 00 00 B7 [15:18:20]Write i2c OK [15:18:20]MH_I2C_Read... [15:18:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:20]Read from MH i2c: E2 [15:18:20]MH_I2C_Read... [15:18:20]Read from MH i2c: E2 0E 00 [15:18:20]MH_I2C_Read... [15:18:20]Read from MH i2c: E2 0E 00 11 29 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C6 [15:18:20]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:18:20]wFMCommunicate OK [15:18:20]SAM_PROTO_GetShiftState done [15:18:20]FM_GetShiftState done [15:18:20]opened in 1729900879 [15:18:20]opened+sec_in_day 1729987279 [15:18:20]quantity*price = 50041 [15:18:20]sum+1 = 50042 [15:18:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 325 26.10.2024 15:18 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201563 ФПД: 207947408389895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T151821&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201563&fm=207947408389895&tin=02508201610067®Number=0000000000091777&sum=50041 [15:18:21]StoreToDocumentArchive [15:18:21]shift 543 fd 201563 [15:18:21]save to /storage/0543/doc_00201563 [15:18:21]save last doc name /storage/0543/doc_00201563 to /storage/kkm_last_doc_name [15:18:21]save OK [15:18:21]Clear old archive folders... [15:18:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:18:21]tlvbuf is 01FABAD0 [15:18:21]SAM_PROTO_ClearQueue [15:18:21]wFMCommunicate request_size=4 [15:18:21]MH_SAM_APDU [15:18:21]CAPDU: 80 09 00 00 [15:18:21]Write to MH i2c: E2 08 00 1E 29 80 09 00 00 00 00 00 00 B9 [15:18:21]Write i2c OK [15:18:21]MH_I2C_Read... [15:18:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:18:21]Read from MH i2c: E2 [15:18:21]MH_I2C_Read... [15:18:21]Read from MH i2c: E2 03 00 [15:18:21]MH_I2C_Read... [15:18:21]Read from MH i2c: E2 03 00 1E 29 00 90 00 BB [15:18:21]RAPDU: 90 00 [15:18:21]wFMCommunicate OK [15:18:21]SAM_PROTO_ClearQueue done [15:18:21]KKMCreateOFDPacket [15:18:21]OFDProtocolAddRootSTLVToBuf [15:18:21]FM_MakeSignedData [15:18:21]FM_MakeSignedData [15:18:21]SAM_PROTO_SignData [15:18:21]wFMCommunicate request_size=4 [15:18:21]MH_SAM_APDU [15:18:21]CAPDU: 80 0D 01 02 [15:18:21]Write to MH i2c: E2 08 00 1F 29 80 0D 01 02 00 00 00 00 C1 [15:18:21]Write i2c OK [15:18:21]MH_I2C_Read... [15:18:21]Read from MH i2c: E2 [15:18:21]MH_I2C_Read... [15:18:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:18:21]Read from MH i2c: E2 03 00 [15:18:21]MH_I2C_Read... [15:18:21]Read from MH i2c: E2 03 00 1F 29 00 90 00 BC [15:18:21]RAPDU: 90 00 [15:18:21]wFMCommunicate OK [15:18:21]wFMCommunicate request_size=255 [15:18:21]MH_SAM_APDU [15:18: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 32 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 79 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 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 3D 08 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5B 13 03 00 35 04 06 00 BD [15:18:21]Write to MH i2c: E2 02 01 20 29 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 32 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 79 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 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 3D 08 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5B 13 03 00 35 04 06 00 BD 00 00 05 [15:18:21]Write i2c OK [15:18:21]MH_I2C_Read... [15:18:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:21]Read from MH i2c: E2 [15:18:21]MH_I2C_Read... [15:18:21]Read from MH i2c: E2 03 00 [15:18:21]MH_I2C_Read... [15:18:21]Read from MH i2c: E2 03 00 20 29 00 90 00 BD [15:18:21]RAPDU: 90 00 [15:18:21]wFMCommunicate OK [15:18:21]wFMCommunicate request_size=10 [15:18:21]MH_SAM_APDU [15:18:21]CAPDU: 80 0D 02 02 05 20 87 68 B7 07 [15:18:21]Write to MH i2c: E2 0D 00 21 29 80 0D 02 02 05 00 20 87 68 B7 07 00 00 9B [15:18:21]Write i2c OK [15:18:21]MH_I2C_Read... [15:18:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:21]Read from MH i2c: E2 [15:18:21]MH_I2C_Read... [15:18:21]Read from MH i2c: E2 03 00 [15:18:21]MH_I2C_Read... [15:18:21]Read from MH i2c: E2 03 00 21 29 00 90 00 BE [15:18:21]RAPDU: 90 00 [15:18:21]wFMCommunicate OK [15:18:21]wFMCommunicate request_size=4 [15:18:21]MH_SAM_APDU [15:18:21]CAPDU: 80 0D 03 02 [15:18:21]Write to MH i2c: E2 08 00 22 29 80 0D 03 02 00 00 00 00 C6 [15:18:21]Write i2c OK [15:18:21]MH_I2C_Read... [15:18:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:18:21]Read from MH i2c: E2 [15:18:21]MH_I2C_Read... [15:18:21]Read from MH i2c: E2 0B 00 [15:18:21]MH_I2C_Read... [15:18:21]Read from MH i2c: E2 0B 00 22 29 00 86 C7 AC 12 A5 73 77 E0 90 00 41 [15:18:21]RAPDU: 86 C7 AC 12 A5 73 77 E0 90 00 [15:18:21]wFMCommunicate OK [15:18:21]SAM_PROTO_SignData done [15:18:21]FM_MakeSignedData done [15:18:21]CreateOFDProtocolMessage [15:18:21]wFMCommunicate request_size=4 [15:18:21]MH_SAM_APDU [15:18:21]CAPDU: 80 11 00 00 [15:18:21]Write to MH i2c: E2 08 00 23 29 80 11 00 00 00 00 00 00 C6 [15:18:21]Write i2c OK [15:18:21]MH_I2C_Read... [15:18:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:21]Read from MH i2c: E2 [15:18:21]MH_I2C_Read... [15:18:21]Read from MH i2c: E2 17 00 [15:18:21]MH_I2C_Read... [15:18:21]Read from MH i2c: E2 17 00 23 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1B [15:18:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:18:21]wFMCommunicate OK [15:18:21]CreateOFDProtocolMessage done [15:18:21]OFDSenderStorePacket 201563 [15:18:21]StoreOFDPacket docnum=201563 [15:18:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 54 83 07 01 EA CE 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 32 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 79 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 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 3D 08 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5B 13 03 00 35 04 06 00 BD 20 87 68 B7 07 86 C7 AC 12 A5 73 77 E0 [15:18:21]CheckFolder [15:18:21]dirname=/storage/ofd_packets [15:18:21]CheckFolder done [15:18:21]ProducePacketName [15:18:21]name=ofd_packets/00201563 [15:18:21]NVStorageSaveData ofd_packets/00201563 [15:18:21]File name is /storage/ofd_packets/00201563 [15:18:21]Write 301 bytes [15:18:21]NVStorageSaveData done [15:18:21]OFDSenderStorePacket done [15:18:21]KKMCreateOFDPacket done [15:18:21]NVStorageSaveData kkm_last_timestamp [15:18:21]File name is /storage/kkm_last_timestamp [15:18:21]Write 4 bytes [15:18:21]NVStorageSaveData done [15:18:21]ExternCall_PrintAddStr [15:18:21]wPrintStart [15:18:21]Write to MH i2c: 01 00 00 24 29 4D [15:18:21]Write i2c OK [15:18:21]MH_I2C_Read... [15:18:21]Read from MH i2c: 01 [15:18:21]MH_I2C_Read... [15:18:21]Read from MH i2c: 01 07 00 [15:18:21]MH_I2C_Read... [15:18:21]Read from MH i2c: 01 07 00 24 29 00 00 00 00 00 FF 0F 62 [15:18:21]RasterBufferAndPrint [15:18:21]line Счет N : (1)449316 [15:18:21]line ИНН: 02508201610067 [15:18:21]line Контрольно-Кассовый Чек [15:18:21]line ПРОДАЖА [15:18:21]line ТРК (МРК, ГНК) : 41 [15:18:21]line Товар: 2710124130 [15:18:21]line Аи-92-К-2 [15:18:21]line 7.480 * 66.90 [15:18:21]line = 500.41 [15:18:21]line НДС 12% НСП 1% [15:18:21]line > о реализуемом товаре [15:18:21]line ИТОГО: 500.41 [15:18:21]line НСП 1% : 4.43 [15:18:21]line НДС 12% : 53.14 [15:18:21]line Наличными: 0.00 [15:18:21]line Безнал.: 500.41 [15:18:21]line Место: АЗС № 171 "Партнер Нефть" [15:18:21]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:18:21]line СНО: Общий режим [15:18:21]line Чек 325 26.10.2024 15:18 [15:18:21]line Смена: 543 ФФД: 1.0 [15:18:21]line ЗНМ: 0300000109 [15:18:21]line РНМ: 0000000000091777 [15:18:21]line Версия ККМ: 001 [15:18:21]line Платежная система: Mbank [15:18:21]line ФМ: 0000000000871756 [15:18:21]line ФД: 201563 [15:18:21]line ФПД: 207947408389895 [15:18:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T151821&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201563&fm=207947408389895&tin=02508201610067®Number=0000000000091777&sum=50041 [15:18:22]OFD Sender: Processing packet 201563 [packets to send 112, broken 111] [15:18:22]ProducePacketName [15:18:22]name=ofd_packets/00201563 [15:18:22]OFD Sender: To server: pG, [15:18:22]CommunicateWithHost lk.salyk.kg:30040 [15:18:22]ConnectInit lk.salyk.kg [15:18:22]written 0, free lines is 4095 [15:18:22]Connected sock=10 [15:18:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 54 83 07 01 EA CE 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 32 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 79 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 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 3D 08 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5B 13 03 00 35 04 06 00 BD 20 87 68 B7 07 86 C7 AC 12 A5 73 77 E0 [15:18:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F5 81 47 00 4B A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5B 13 03 00 F4 03 04 00 E6 B3 1C 67 B6 04 01 00 00 6E 78 01 77 50 5A 2A 6A [15:18:22]CommunicateWithHost err = 0 [15:18:22]CheckOFDResponse [15:18:22]1017 (14) - 77093643461234 [15:18:22]1041 (16) - 0000000000871756 [15:18:22]1040 (4) - 201563 [15:18:22]1012 (4) - 26.10.2024 09:18 [15:18:22]1206 (1) - 0 [15:18:22]OFD Sender: Remove packet 201563 [15:18:22]ProducePacketName [15:18:22]name=ofd_packets/00201563 [15:18:22]NVStorageDeleteData [15:18:22]Write to MH i2c: 01 00 00 4D 29 76 [15:18:22]Write i2c OK [15:18:22]MH_I2C_Read... [15:18:22]Read from MH i2c: 01 [15:18:22]MH_I2C_Read... [15:18:22]Read from MH i2c: 01 07 00 [15:18:22]MH_I2C_Read... [15:18:22]Read from MH i2c: 01 07 00 4D 29 00 00 00 00 00 CE 0C 57 [15:18:22]RasterBufferAndPrint [15:18:22]line [15:18:22]line [15:18:22]line [15:18:22]line [15:18:22]line [15:18:22]written 0, free lines is 3282 [15:18:22]MH_Cut [15:18:22]Write to MH i2c: D1 01 00 54 29 01 4F [15:18:22]Write i2c OK [15:18:22]MH_I2C_Read... [15:18:22]Read from MH i2c: D1 [15:18:22]MH_I2C_Read... [15:18:22]Read from MH i2c: D1 01 00 [15:18:22]MH_I2C_Read... [15:18:22]Read from MH i2c: D1 01 00 54 29 00 4E [15:18:22]Write to MH i2c: 01 00 00 55 29 7E [15:18:22]Write i2c OK [15:18:22]MH_I2C_Read... [15:18:23]OFD Sender: No OFD packet to send [15:18:23]*** Cut start [15:18:23]*** Purtial cut [15:18:23]*** Stage 1: CUTSNS_PIN = 1 [15:18:23]Read from MH i2c: 01 [15:18:23]MH_I2C_Read... [15:18:23]*** Stop cut motor [15:18:23]*** Cut end [15:18:23]Read from MH i2c: 01 07 00 [15:18:23]MH_I2C_Read... [15:18:23]Read from MH i2c: 01 07 00 55 29 00 00 00 00 00 FF 0F 93 [15:18:23]process_action close_receipt done [15:18:23]requested_data is exist [15:18:23]produce_requested_data [15:18:23]requested_item fm.sn is exist - process it [15:18:23]wFMCommunicate request_size=4 [15:18:23]MH_SAM_APDU [15:18:23]CAPDU: 80 11 00 00 [15:18:23]Write to MH i2c: E2 08 00 56 29 80 11 00 00 00 00 00 00 F9 [15:18:23]Write i2c OK [15:18:23]MH_I2C_Read... [15:18:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:23]Read from MH i2c: E2 [15:18:23]MH_I2C_Read... [15:18:23]Read from MH i2c: E2 17 00 [15:18:23]MH_I2C_Read... [15:18:23]Read from MH i2c: E2 17 00 56 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4E [15:18:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:18:23]wFMCommunicate OK [15:18:23]requested_item fd.num is exist - process it [15:18:23]SAM_PROTO_GetFieldsCounters [15:18:23]wFMCommunicate request_size=4 [15:18:23]MH_SAM_APDU [15:18:23]CAPDU: 80 13 00 00 [15:18:23]Write to MH i2c: E2 08 00 57 29 80 13 00 00 00 00 00 00 FC [15:18:23]Write i2c OK [15:18:23]MH_I2C_Read... [15:18:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:18:23]Read from MH i2c: E2 [15:18:23]MH_I2C_Read... [15:18:23]Read from MH i2c: E2 62 00 [15:18:23]MH_I2C_Read... [15:18:23]Read from MH i2c: E2 62 00 57 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5B 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 89 [15:18:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5B 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:18:23]wFMCommunicate OK [15:18:23]SAM_PROTO_GetFieldsCounters done [15:18:23]requested_item shift.num is exist - process it [15:18:23]requested_item shift.opened is exist - process it [15:18:23]req_shift_opened [15:18:23]FM_GetShiftState [15:18:23]SAM_PROTO_GetShiftState [15:18:23]wFMCommunicate request_size=4 [15:18:23]MH_SAM_APDU [15:18:23]CAPDU: 80 13 01 00 [15:18:23]Write to MH i2c: E2 08 00 58 29 80 13 01 00 00 00 00 00 FE [15:18:23]Write i2c OK [15:18:23]MH_I2C_Read... [15:18:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:23]Read from MH i2c: E2 [15:18:23]MH_I2C_Read... [15:18:23]Read from MH i2c: E2 0E 00 [15:18:23]MH_I2C_Read... [15:18:23]Read from MH i2c: E2 0E 00 58 29 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 0D [15:18:23]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:18:23]wFMCommunicate OK [15:18:23]SAM_PROTO_GetShiftState done [15:18:23]FM_GetShiftState done [15:18:23]req_shift_opened done [15:18:23]requested_item shift.open_date is exist - process it [15:18:23]req_shift_open_date [15:18:23]req_shift_open_date done [15:18:23]produce_requested_data done [15:18:23]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201563,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [15:18:23]process_action_free close_receipt [15:18:23]json_value_free [15:18:23]json_value_free done [15:18:23]process_json_proto returns [15:18:23]Send response to host [15:18:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201563,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [15:18:23]free response buf [15:18:23]execute_script done [15:18:23]execute_script returns [15:18:23]free content buf [15:18:23]Sock 8.Close socket [15:18:23]Sock 8.Thread stoped [15:18:28]OFD Sender: No OFD packet to send [15:18:33]OFD Sender: No OFD packet to send [15:18:38]OFD Sender: No OFD packet to send [15:18:43]OFD Sender: No OFD packet to send [15:18:48]OFD Sender: No OFD packet to send [15:18:53]OFD Sender: No OFD packet to send [15:18:58]OFD Sender: No OFD packet to send [15:19:03]OFD Sender: No OFD packet to send [15:19:08]OFD Sender: No OFD packet to send [15:19:13]OFD Sender: No OFD packet to send [15:19:18]OFD Sender: No OFD packet to send [15:19:23]OFD Sender: No OFD packet to send [15:19:28]OFD Sender: No OFD packet to send [15:19:33]OFD Sender: No OFD packet to send [15:19:38]OFD Sender: No OFD packet to send [15:19:43]OFD Sender: No OFD packet to send [15:19:48]OFD Sender: No OFD packet to send [15:19:53]OFD Sender: No OFD packet to send [15:19:58]OFD Sender: No OFD packet to send [15:20:03]OFD Sender: No OFD packet to send [15:20:08]OFD Sender: No OFD packet to send [15:20:13]OFD Sender: No OFD packet to send [15:20:18]OFD Sender: No OFD packet to send [15:20:23]OFD Sender: No OFD packet to send [15:20:28]OFD Sender: No OFD packet to send [15:20:33]OFD Sender: No OFD packet to send [15:20:38]OFD Sender: No OFD packet to send [15:20:43]OFD Sender: No OFD packet to send [15:20:48]OFD Sender: No OFD packet to send [15:20:53]OFD Sender: No OFD packet to send [15:20:58]OFD Sender: No OFD packet to send [15:21:03]OFD Sender: No OFD packet to send [15:21:08]OFD Sender: No OFD packet to send [15:21:13]OFD Sender: No OFD packet to send [15:21:18]OFD Sender: No OFD packet to send [15:21:23]OFD Sender: No OFD packet to send [15:21:28]OFD Sender: No OFD packet to send [15:21:33]OFD Sender: No OFD packet to send [15:21:34]accept exits with 9 [15:21:34]New connection [15:21:34]New thread 3066690916 created [15:21:34]Thread 3066834276 joined [15:21:34]Waiting for new connection... [15:21:34] Sock 9.Parse request [15:21:34]Sock 9.Check first char [15:21:34]Sock 9.First char is OK [15:21:34]request: POST /json_proto HTTP/1.0 [15:21:34]Method: POST [15:21:34]URL: /json_proto [15:21:34]Method is POST - this is cgi request [15:21:34]url: /json_proto [15:21:34]query_string will be loaded in cgi processing [15:21:34]execute_cgi json_proto POST (null) [15:21:34]execute_cgi path=json_proto method=POST [15:21:34]POST find Content-Length [15:21:34]Host: 172.17.63.195:8080 [15:21:34]Content-Length: 677 [15:21:34]Content-Type: application/json [15:21:34] [15:21:34]POST finish read [15:21:34]Found Content-Length = 677 [15:21:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [15:21:34]execute_script... [15:21: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)449318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [15:21:34]POST & json_proto [15:21:34]process_json_proto [15:21:34]json parsed OK: [15:21:34]protocol is kg_v1.0 [15:21:34]action value=close_receipt [15:21:34]process_action close_receipt [15:21:34]cmd_close_receipt [15:21:34]MH_GetDate [15:21:34]Write to MH i2c: F0 00 00 59 29 71 [15:21:34]Write i2c OK [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: F0 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: F0 09 00 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: F0 09 00 59 29 00 FF 08 1D 67 68 46 19 67 33 [15:21:34]GetLastDocTimeStamp 1729955901 [15:21:34]current date 1729956095 [15:21:34]FM_GetShiftState [15:21:34]SAM_PROTO_GetShiftState [15:21:34]wFMCommunicate request_size=4 [15:21:34]MH_SAM_APDU [15:21:34]CAPDU: 80 13 01 00 [15:21:34]Write to MH i2c: E2 08 00 5A 29 80 13 01 00 00 00 00 00 00 [15:21:34]Write i2c OK [15:21:34]MH_I2C_Read... [15:21:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:34]Read from MH i2c: E2 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 0E 00 [15:21:34]MH_I2C_Read... [15:21:34]Read from MH i2c: E2 0E 00 5A 29 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 0F [15:21:34]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:21:34]wFMCommunicate OK [15:21:34]SAM_PROTO_GetShiftState done [15:21:34]FM_GetShiftState done [15:21:34]opened in 1729900879 [15:21:34]opened+sec_in_day 1729987279 [15:21:34]quantity*price = 50041 [15:21:34]sum+1 = 50042 [15:21:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 326 26.10.2024 15:21 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201564 ФПД: 115497425324068 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T152135&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201564&fm=115497425324068&tin=02508201610067®Number=0000000000091777&sum=50000 [15:21:35]StoreToDocumentArchive [15:21:35]shift 543 fd 201564 [15:21:35]save to /storage/0543/doc_00201564 [15:21:35]save last doc name /storage/0543/doc_00201564 to /storage/kkm_last_doc_name [15:21:35]save OK [15:21:35]Clear old archive folders... [15:21:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:21:35]tlvbuf is 01F0E8D0 [15:21:35]SAM_PROTO_ClearQueue [15:21:35]wFMCommunicate request_size=4 [15:21:35]MH_SAM_APDU [15:21:35]CAPDU: 80 09 00 00 [15:21:35]Write to MH i2c: E2 08 00 67 29 80 09 00 00 00 00 00 00 02 [15:21:35]Write i2c OK [15:21:35]MH_I2C_Read... [15:21:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:35]Read from MH i2c: E2 [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: E2 03 00 [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: E2 03 00 67 29 00 90 00 04 [15:21:35]RAPDU: 90 00 [15:21:35]wFMCommunicate OK [15:21:35]SAM_PROTO_ClearQueue done [15:21:35]KKMCreateOFDPacket [15:21:35]OFDProtocolAddRootSTLVToBuf [15:21:35]FM_MakeSignedData [15:21:35]FM_MakeSignedData [15:21:35]SAM_PROTO_SignData [15:21:35]wFMCommunicate request_size=4 [15:21:35]MH_SAM_APDU [15:21:35]CAPDU: 80 0D 01 02 [15:21:35]Write to MH i2c: E2 08 00 68 29 80 0D 01 02 00 00 00 00 0A [15:21:35]Write i2c OK [15:21:35]MH_I2C_Read... [15:21:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:35]Read from MH i2c: E2 [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: E2 03 00 [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: E2 03 00 68 29 00 90 00 05 [15:21:35]RAPDU: 90 00 [15:21:35]wFMCommunicate OK [15:21:35]wFMCommunicate request_size=255 [15:21:35]MH_SAM_APDU [15:21:35]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 32 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 46 01 00 00 F4 03 04 00 FF 08 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5C 13 03 00 35 04 06 00 69 [15:21:35]Write to MH i2c: E2 02 01 69 29 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 32 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 46 01 00 00 F4 03 04 00 FF 08 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5C 13 03 00 35 04 06 00 69 00 00 6C [15:21:35]Write i2c OK [15:21:35]MH_I2C_Read... [15:21:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:35]Read from MH i2c: E2 [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: E2 03 00 [15:21:35]MH_I2C_Read... [15:21:35]Read from MH i2c: E2 03 00 69 29 00 90 00 06 [15:21:35]RAPDU: 90 00 [15:21:35]wFMCommunicate OK [15:21:35]wFMCommunicate request_size=10 [15:21:35]MH_SAM_APDU [15:21:35]CAPDU: 80 0D 02 02 05 0B 57 02 48 24 [15:21:35]Write to MH i2c: E2 0D 00 6A 29 80 0D 02 02 05 00 0B 57 02 48 24 00 00 E7 [15:21:35]Write i2c OK [15:21:35]MH_I2C_Read... [15:21:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:36]Read from MH i2c: E2 [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: E2 03 00 [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: E2 03 00 6A 29 00 90 00 07 [15:21:36]RAPDU: 90 00 [15:21:36]wFMCommunicate OK [15:21:36]wFMCommunicate request_size=4 [15:21:36]MH_SAM_APDU [15:21:36]CAPDU: 80 0D 03 02 [15:21:36]Write to MH i2c: E2 08 00 6B 29 80 0D 03 02 00 00 00 00 0F [15:21:36]Write i2c OK [15:21:36]MH_I2C_Read... [15:21:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:36]Read from MH i2c: E2 [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: E2 0B 00 [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: E2 0B 00 6B 29 00 35 DA 71 38 75 DA C1 54 90 00 2C [15:21:36]RAPDU: 35 DA 71 38 75 DA C1 54 90 00 [15:21:36]wFMCommunicate OK [15:21:36]SAM_PROTO_SignData done [15:21:36]FM_MakeSignedData done [15:21:36]CreateOFDProtocolMessage [15:21:36]wFMCommunicate request_size=4 [15:21:36]MH_SAM_APDU [15:21:36]CAPDU: 80 11 00 00 [15:21:36]Write to MH i2c: E2 08 00 6C 29 80 11 00 00 00 00 00 00 0F [15:21:36]Write i2c OK [15:21:36]MH_I2C_Read... [15:21:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:36]Read from MH i2c: E2 [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: E2 17 00 [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: E2 17 00 6C 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 64 [15:21:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:21:36]wFMCommunicate OK [15:21:36]CreateOFDProtocolMessage done [15:21:36]OFDSenderStorePacket 201564 [15:21:36]StoreOFDPacket docnum=201564 [15:21:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 DA EF 07 01 46 92 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 32 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 46 01 00 00 F4 03 04 00 FF 08 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5C 13 03 00 35 04 06 00 69 0B 57 02 48 24 35 DA 71 38 75 DA C1 54 [15:21:36]CheckFolder [15:21:36]dirname=/storage/ofd_packets [15:21:36]CheckFolder done [15:21:36]ProducePacketName [15:21:36]name=ofd_packets/00201564 [15:21:36]NVStorageSaveData ofd_packets/00201564 [15:21:36]File name is /storage/ofd_packets/00201564 [15:21:36]Write 301 bytes [15:21:36]NVStorageSaveData done [15:21:36]OFDSenderStorePacket done [15:21:36]KKMCreateOFDPacket done [15:21:36]NVStorageSaveData kkm_last_timestamp [15:21:36]File name is /storage/kkm_last_timestamp [15:21:36]Write 4 bytes [15:21:36]NVStorageSaveData done [15:21:36]ExternCall_PrintAddStr [15:21:36]wPrintStart [15:21:36]Write to MH i2c: 01 00 00 6D 29 96 [15:21:36]Write i2c OK [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: 01 [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: 01 07 00 [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: 01 07 00 6D 29 00 00 00 00 00 FF 0F AB [15:21:36]RasterBufferAndPrint [15:21:36]line Счет N : (1)449318 [15:21:36]line ИНН: 02508201610067 [15:21:36]line Контрольно-Кассовый Чек [15:21:36]line ПРОДАЖА [15:21:36]line ТРК (МРК, ГНК) : 41 [15:21:36]line Товар: 2710124130 [15:21:36]line Аи-92-К-2 [15:21:36]line 7.480 * 66.90 [15:21:36]line = 500.41 [15:21:36]line НДС 12% НСП 1% [15:21:36]line > о реализуемом товаре [15:21:36]line ОКРУГЛЕНИЕ: -0.41 [15:21:36]line ИТОГО: 500.00 [15:21:36]line Внесено: 500.00 [15:21:36]line СДАЧА: 0.00 [15:21:36]line НСП 1% : 4.43 [15:21:36]line НДС 12% : 53.14 [15:21:36]line Наличными: 500.00 [15:21:36]line Безнал.: 0.00 [15:21:36]line Место: АЗС № 171 "Партнер Нефть" [15:21:36]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:21:36]line СНО: Общий режим [15:21:36]line Чек 326 26.10.2024 15:21 [15:21:36]line Смена: 543 ФФД: 1.0 [15:21:36]line ЗНМ: 0300000109 [15:21:36]line РНМ: 0000000000091777 [15:21:36]line Версия ККМ: 001 [15:21:36]line ФМ: 0000000000871756 [15:21:36]line ФД: 201564 [15:21:36]line ФПД: 115497425324068 [15:21:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T152135&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201564&fm=115497425324068&tin=02508201610067®Number=0000000000091777&sum=50000 [15:21:36]OFD Sender: Processing packet 201564 [packets to send 112, broken 111] [15:21:36]ProducePacketName [15:21:36]name=ofd_packets/00201564 [15:21:36]OFD Sender: To server: pG, [15:21:36]CommunicateWithHost lk.salyk.kg:30040 [15:21:36]ConnectInit lk.salyk.kg [15:21:36]written 0, free lines is 4095 [15:21:36]Connected sock=10 [15:21:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 DA EF 07 01 46 92 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 32 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 46 01 00 00 F4 03 04 00 FF 08 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5C 13 03 00 35 04 06 00 69 0B 57 02 48 24 35 DA 71 38 75 DA C1 54 [15:21:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 AF 14 47 00 69 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5C 13 03 00 F4 03 04 00 A8 B4 1C 67 B6 04 01 00 00 D6 62 76 56 4D C4 56 ED [15:21:36]CommunicateWithHost err = 0 [15:21:36]CheckOFDResponse [15:21:36]1017 (14) - 77093643461234 [15:21:36]1041 (16) - 0000000000871756 [15:21:36]1040 (4) - 201564 [15:21:36]1012 (4) - 26.10.2024 09:21 [15:21:36]1206 (1) - 0 [15:21:36]OFD Sender: Remove packet 201564 [15:21:36]ProducePacketName [15:21:36]name=ofd_packets/00201564 [15:21:36]NVStorageDeleteData [15:21:36]Write to MH i2c: 01 00 00 98 29 C1 [15:21:36]Write i2c OK [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: 01 [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: 01 07 00 [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: 01 07 00 98 29 00 00 00 00 00 95 0C 69 [15:21:36]RasterBufferAndPrint [15:21:36]line [15:21:36]line [15:21:36]line [15:21:36]line [15:21:36]line [15:21:36]written 0, free lines is 3227 [15:21:36]MH_Cut [15:21:36]Write to MH i2c: D1 01 00 9F 29 01 9A [15:21:36]Write i2c OK [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: D1 [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: D1 01 00 [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: D1 01 00 9F 29 00 99 [15:21:36]Write to MH i2c: 01 00 00 A0 29 C9 [15:21:36]Write i2c OK [15:21:36]MH_I2C_Read... [15:21:37]OFD Sender: No OFD packet to send [15:21:37]*** Cut start [15:21:37]*** Purtial cut [15:21:37]*** Stage 1: CUTSNS_PIN = 1 [15:21:38]Read from MH i2c: 01 [15:21:38]MH_I2C_Read... [15:21:38]*** Stop cut motor [15:21:38]*** Cut end [15:21:38]Read from MH i2c: 01 07 00 [15:21:38]MH_I2C_Read... [15:21:38]Read from MH i2c: 01 07 00 A0 29 00 00 00 00 00 FF 0F DE [15:21:38]process_action close_receipt done [15:21:38]requested_data is exist [15:21:38]produce_requested_data [15:21:38]requested_item fm.sn is exist - process it [15:21:38]wFMCommunicate request_size=4 [15:21:38]MH_SAM_APDU [15:21:38]CAPDU: 80 11 00 00 [15:21:38]Write to MH i2c: E2 08 00 A1 29 80 11 00 00 00 00 00 00 44 [15:21:38]Write i2c OK [15:21:38]MH_I2C_Read... [15:21:38]Read from MH i2c: E2 [15:21:38]MH_I2C_Read... [15:21:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:38]Read from MH i2c: E2 17 00 [15:21:38]MH_I2C_Read... [15:21:38]Read from MH i2c: E2 17 00 A1 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 99 [15:21:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:21:38]wFMCommunicate OK [15:21:38]requested_item fd.num is exist - process it [15:21:38]SAM_PROTO_GetFieldsCounters [15:21:38]wFMCommunicate request_size=4 [15:21:38]MH_SAM_APDU [15:21:38]CAPDU: 80 13 00 00 [15:21:38]Write to MH i2c: E2 08 00 A2 29 80 13 00 00 00 00 00 00 47 [15:21:38]Write i2c OK [15:21:38]MH_I2C_Read... [15:21:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:38]Read from MH i2c: E2 [15:21:38]MH_I2C_Read... [15:21:38]Read from MH i2c: E2 62 00 [15:21:38]MH_I2C_Read... [15:21:38]Read from MH i2c: E2 62 00 A2 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5C 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 D8 [15:21:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5C 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:21:38]wFMCommunicate OK [15:21:38]SAM_PROTO_GetFieldsCounters done [15:21:38]requested_item shift.num is exist - process it [15:21:38]requested_item shift.opened is exist - process it [15:21:38]req_shift_opened [15:21:38]FM_GetShiftState [15:21:38]SAM_PROTO_GetShiftState [15:21:38]wFMCommunicate request_size=4 [15:21:38]MH_SAM_APDU [15:21:38]CAPDU: 80 13 01 00 [15:21:38]Write to MH i2c: E2 08 00 A3 29 80 13 01 00 00 00 00 00 49 [15:21:38]Write i2c OK [15:21:38]MH_I2C_Read... [15:21:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:38]Read from MH i2c: E2 [15:21:38]MH_I2C_Read... [15:21:38]Read from MH i2c: E2 0E 00 [15:21:38]MH_I2C_Read... [15:21:38]Read from MH i2c: E2 0E 00 A3 29 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 58 [15:21:38]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:21:38]wFMCommunicate OK [15:21:38]SAM_PROTO_GetShiftState done [15:21:38]FM_GetShiftState done [15:21:38]req_shift_opened done [15:21:38]requested_item shift.open_date is exist - process it [15:21:38]req_shift_open_date [15:21:38]req_shift_open_date done [15:21:38]produce_requested_data done [15:21:38]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201564,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [15:21:38]process_action_free close_receipt [15:21:38]json_value_free [15:21:38]json_value_free done [15:21:38]process_json_proto returns [15:21:38]Send response to host [15:21:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201564,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [15:21:38]free response buf [15:21:38]execute_script done [15:21:38]execute_script returns [15:21:38]free content buf [15:21:38]Sock 9.Close socket [15:21:38]Sock 9.Thread stoped [15:21:42]OFD Sender: No OFD packet to send [15:21:47]OFD Sender: No OFD packet to send [15:21:52]OFD Sender: No OFD packet to send [15:21:57]OFD Sender: No OFD packet to send [15:22:02]OFD Sender: No OFD packet to send [15:22:07]OFD Sender: No OFD packet to send [15:22:12]OFD Sender: No OFD packet to send [15:22:17]OFD Sender: No OFD packet to send [15:22:22]OFD Sender: No OFD packet to send [15:22:27]OFD Sender: No OFD packet to send [15:22:32]OFD Sender: No OFD packet to send [15:22:37]OFD Sender: No OFD packet to send [15:22:42]OFD Sender: No OFD packet to send [15:22:47]OFD Sender: No OFD packet to send [15:22:52]OFD Sender: No OFD packet to send [15:22:57]OFD Sender: No OFD packet to send [15:23:02]OFD Sender: No OFD packet to send [15:23:07]OFD Sender: No OFD packet to send [15:23:12]OFD Sender: No OFD packet to send [15:23:17]OFD Sender: No OFD packet to send [15:23:22]OFD Sender: No OFD packet to send [15:23:27]OFD Sender: No OFD packet to send [15:23:32]OFD Sender: No OFD packet to send [15:23:37]OFD Sender: No OFD packet to send [15:23:42]OFD Sender: No OFD packet to send [15:23:47]OFD Sender: No OFD packet to send [15:23:52]OFD Sender: No OFD packet to send [15:23:57]OFD Sender: No OFD packet to send [15:24:02]OFD Sender: No OFD packet to send [15:24:07]OFD Sender: No OFD packet to send [15:24:11]accept exits with 8 [15:24:11]New connection [15:24:11]New thread 3066834276 created [15:24:11]Thread 3066690916 joined [15:24:11]Waiting for new connection... [15:24:11] Sock 8.Parse request [15:24:11]Sock 8.Check first char [15:24:11]Sock 8.First char is OK [15:24:11]request: POST /json_proto HTTP/1.0 [15:24:11]Method: POST [15:24:11]URL: /json_proto [15:24:11]Method is POST - this is cgi request [15:24:11]url: /json_proto [15:24:11]query_string will be loaded in cgi processing [15:24:11]execute_cgi json_proto POST (null) [15:24:11]execute_cgi path=json_proto method=POST [15:24:11]POST find Content-Length [15:24:11]Host: 172.17.63.195:8080 [15:24:11]Content-Length: 679 [15:24:11]Content-Type: application/json [15:24:11] [15:24:11]POST finish read [15:24:11]Found Content-Length = 679 [15:24:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [15:24:11]execute_script... [15:24: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)449320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [15:24:11]POST & json_proto [15:24:11]process_json_proto [15:24:11]json parsed OK: [15:24:11]protocol is kg_v1.0 [15:24:11]action value=close_receipt [15:24:11]process_action close_receipt [15:24:11]cmd_close_receipt [15:24:11]MH_GetDate [15:24:11]Write to MH i2c: F0 00 00 A4 29 BC [15:24:11]Write i2c OK [15:24:11]MH_I2C_Read... [15:24:11]Read from MH i2c: F0 [15:24:11]MH_I2C_Read... [15:24:11]Read from MH i2c: F0 09 00 [15:24:11]MH_I2C_Read... [15:24:11]Read from MH i2c: F0 09 00 A4 29 00 9C 09 1D 67 68 46 19 67 1C [15:24:11]GetLastDocTimeStamp 1729956095 [15:24:11]current date 1729956252 [15:24:11]FM_GetShiftState [15:24:11]SAM_PROTO_GetShiftState [15:24:11]wFMCommunicate request_size=4 [15:24:11]MH_SAM_APDU [15:24:11]CAPDU: 80 13 01 00 [15:24:11]Write to MH i2c: E2 08 00 A5 29 80 13 01 00 00 00 00 00 4B [15:24:11]Write i2c OK [15:24:11]MH_I2C_Read... [15:24:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:11]Read from MH i2c: E2 [15:24:11]MH_I2C_Read... [15:24:11]Read from MH i2c: E2 0E 00 [15:24:11]MH_I2C_Read... [15:24:11]Read from MH i2c: E2 0E 00 A5 29 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 5A [15:24:11]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:24:11]wFMCommunicate OK [15:24:11]SAM_PROTO_GetShiftState done [15:24:11]FM_GetShiftState done [15:24:11]opened in 1729900879 [15:24:11]opened+sec_in_day 1729987279 [15:24:11]quantity*price = 100050 [15:24:11]sum+1 = 100052 [15:24:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 327 26.10.2024 15:24 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201565 ФПД: 186069005734270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T152412&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201565&fm=186069005734270&tin=02508201610067®Number=0000000000091777&sum=100000 [15:24:12]StoreToDocumentArchive [15:24:12]shift 543 fd 201565 [15:24:12]save to /storage/0543/doc_00201565 [15:24:12]save last doc name /storage/0543/doc_00201565 to /storage/kkm_last_doc_name [15:24:12]save OK [15:24:12]Clear old archive folders... [15:24:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:24:12]tlvbuf is 01F738E0 [15:24:12]SAM_PROTO_ClearQueue [15:24:12]wFMCommunicate request_size=4 [15:24:12]MH_SAM_APDU [15:24:12]CAPDU: 80 09 00 00 [15:24:12]Write to MH i2c: E2 08 00 B2 29 80 09 00 00 00 00 00 00 4D [15:24:12]Write i2c OK [15:24:12]MH_I2C_Read... [15:24:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:12]Read from MH i2c: E2 [15:24:12]MH_I2C_Read... [15:24:12]Read from MH i2c: E2 03 00 [15:24:12]MH_I2C_Read... [15:24:12]Read from MH i2c: E2 03 00 B2 29 00 90 00 4F [15:24:12]RAPDU: 90 00 [15:24:12]wFMCommunicate OK [15:24:12]SAM_PROTO_ClearQueue done [15:24:12]KKMCreateOFDPacket [15:24:12]OFDProtocolAddRootSTLVToBuf [15:24:12]FM_MakeSignedData [15:24:12]FM_MakeSignedData [15:24:12]SAM_PROTO_SignData [15:24:12]wFMCommunicate request_size=4 [15:24:12]MH_SAM_APDU [15:24:12]CAPDU: 80 0D 01 02 [15:24:12]Write to MH i2c: E2 08 00 B3 29 80 0D 01 02 00 00 00 00 55 [15:24:12]Write i2c OK [15:24:12]MH_I2C_Read... [15:24:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:12]Read from MH i2c: E2 [15:24:12]MH_I2C_Read... [15:24:12]Read from MH i2c: E2 03 00 [15:24:12]MH_I2C_Read... [15:24:12]Read from MH i2c: E2 03 00 B3 29 00 90 00 50 [15:24:12]RAPDU: 90 00 [15:24:12]wFMCommunicate OK [15:24:12]wFMCommunicate request_size=255 [15:24:12]MH_SAM_APDU [15:24:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 47 01 00 00 F4 03 04 00 9C 09 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5D 13 03 00 35 04 06 00 A9 3A 90 FD [15:24:12]Write to MH i2c: E2 02 01 B4 29 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 47 01 00 00 F4 03 04 00 9C 09 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5D 13 03 00 35 04 06 00 A9 3A 90 FD 00 00 54 [15:24:12]Write i2c OK [15:24:12]MH_I2C_Read... [15:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:13]Read from MH i2c: E2 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 03 00 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 03 00 B4 29 00 90 00 51 [15:24:13]RAPDU: 90 00 [15:24:13]wFMCommunicate OK [15:24:13]wFMCommunicate request_size=7 [15:24:13]MH_SAM_APDU [15:24:13]CAPDU: 80 0D 02 02 02 91 7E [15:24:13]Write to MH i2c: E2 0A 00 B5 29 80 0D 02 02 02 00 91 7E 00 00 6B [15:24:13]Write i2c OK [15:24:13]MH_I2C_Read... [15:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:13]Read from MH i2c: E2 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 03 00 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 03 00 B5 29 00 90 00 52 [15:24:13]RAPDU: 90 00 [15:24:13]wFMCommunicate OK [15:24:13]wFMCommunicate request_size=4 [15:24:13]MH_SAM_APDU [15:24:13]CAPDU: 80 0D 03 02 [15:24:13]Write to MH i2c: E2 08 00 B6 29 80 0D 03 02 00 00 00 00 5A [15:24:13]Write i2c OK [15:24:13]MH_I2C_Read... [15:24:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:13]Read from MH i2c: E2 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 0B 00 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 0B 00 B6 29 00 C1 9B 7F E2 A7 9F C2 4A 90 00 6A [15:24:13]RAPDU: C1 9B 7F E2 A7 9F C2 4A 90 00 [15:24:13]wFMCommunicate OK [15:24:13]SAM_PROTO_SignData done [15:24:13]FM_MakeSignedData done [15:24:13]CreateOFDProtocolMessage [15:24:13]wFMCommunicate request_size=4 [15:24:13]MH_SAM_APDU [15:24:13]CAPDU: 80 11 00 00 [15:24:13]Write to MH i2c: E2 08 00 B7 29 80 11 00 00 00 00 00 00 5A [15:24:13]Write i2c OK [15:24:13]MH_I2C_Read... [15:24:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:13]Read from MH i2c: E2 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 17 00 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: E2 17 00 B7 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AF [15:24:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:24:13]wFMCommunicate OK [15:24:13]CreateOFDProtocolMessage done [15:24:13]OFDSenderStorePacket 201565 [15:24:13]StoreOFDPacket docnum=201565 [15:24:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 AD C4 04 01 93 11 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 47 01 00 00 F4 03 04 00 9C 09 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5D 13 03 00 35 04 06 00 A9 3A 90 FD 91 7E C1 9B 7F E2 A7 9F C2 4A [15:24:13]CheckFolder [15:24:13]dirname=/storage/ofd_packets [15:24:13]CheckFolder done [15:24:13]ProducePacketName [15:24:13]name=ofd_packets/00201565 [15:24:13]NVStorageSaveData ofd_packets/00201565 [15:24:13]File name is /storage/ofd_packets/00201565 [15:24:13]Write 298 bytes [15:24:13]NVStorageSaveData done [15:24:13]OFDSenderStorePacket done [15:24:13]KKMCreateOFDPacket done [15:24:13]NVStorageSaveData kkm_last_timestamp [15:24:13]File name is /storage/kkm_last_timestamp [15:24:13]Write 4 bytes [15:24:13]NVStorageSaveData done [15:24:13]ExternCall_PrintAddStr [15:24:13]wPrintStart [15:24:13]Write to MH i2c: 01 00 00 B8 29 E1 [15:24:13]Write i2c OK [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: 01 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: 01 07 00 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: 01 07 00 B8 29 00 00 00 00 00 FF 0F F6 [15:24:13]RasterBufferAndPrint [15:24:13]line Счет N : (1)449320 [15:24:13]line ИНН: 02508201610067 [15:24:13]line Контрольно-Кассовый Чек [15:24:13]line ПРОДАЖА [15:24:13]line ТРК (МРК, ГНК) : 33 [15:24:13]line Товар: 2710194210 [15:24:13]line ДТ-К-2 [15:24:13]line 13.130 * 76.20 [15:24:13]line = 1000.51 [15:24:13]line НДС 12% НСП 1% [15:24:13]line > о реализуемом товаре [15:24:13]line ОКРУГЛЕНИЕ: -0.51 [15:24:13]line ИТОГО: 1000.00 [15:24:13]line Внесено: 1000.00 [15:24:13]line СДАЧА: 0.00 [15:24:13]line НСП 1% : 8.85 [15:24:13]line НДС 12% : 106.25 [15:24:13]line Наличными: 1000.00 [15:24:13]line Безнал.: 0.00 [15:24:13]line Место: АЗС № 171 "Партнер Нефть" [15:24:13]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:24:13]line СНО: Общий режим [15:24:13]line Чек 327 26.10.2024 15:24 [15:24:13]line Смена: 543 ФФД: 1.0 [15:24:13]line ЗНМ: 0300000109 [15:24:13]line РНМ: 0000000000091777 [15:24:13]line Версия ККМ: 001 [15:24:13]line ФМ: 0000000000871756 [15:24:13]line ФД: 201565 [15:24:13]line ФПД: 186069005734270 [15:24:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T152412&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201565&fm=186069005734270&tin=02508201610067®Number=0000000000091777&sum=100000 [15:24:13]OFD Sender: Processing packet 201565 [packets to send 112, broken 111] [15:24:13]ProducePacketName [15:24:13]name=ofd_packets/00201565 [15:24:13]OFD Sender: To server: pG, [15:24:13]CommunicateWithHost lk.salyk.kg:30040 [15:24:13]ConnectInit lk.salyk.kg [15:24:13]written 0, free lines is 4095 [15:24:13]Connected sock=10 [15:24:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 AD C4 04 01 93 11 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 47 01 00 00 F4 03 04 00 9C 09 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5D 13 03 00 35 04 06 00 A9 3A 90 FD 91 7E C1 9B 7F E2 A7 9F C2 4A [15:24:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E5 8F 47 00 00 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 38 37 31 37 35 36 10 04 04 00 5D 13 03 00 F4 03 04 00 45 B5 1C 67 B6 04 01 00 00 36 3D 11 05 71 DA 26 11 [15:24:13]CommunicateWithHost err = 0 [15:24:13]CheckOFDResponse [15:24:13]1017 (14) - 77093643461234 [15:24:13]1041 (16) - 0000000000871756 [15:24:13]1040 (4) - 201565 [15:24:13]1012 (4) - 26.10.2024 09:24 [15:24:13]1206 (1) - 0 [15:24:13]OFD Sender: Remove packet 201565 [15:24:13]ProducePacketName [15:24:13]name=ofd_packets/00201565 [15:24:13]NVStorageDeleteData [15:24:13]Write to MH i2c: 01 00 00 E3 29 0C [15:24:13]Write i2c OK [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: 01 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: 01 07 00 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: 01 07 00 E3 29 00 00 00 00 00 8F 0C AE [15:24:13]RasterBufferAndPrint [15:24:13]line [15:24:13]line [15:24:13]line [15:24:13]line [15:24:13]line [15:24:13]written 0, free lines is 3219 [15:24:13]MH_Cut [15:24:13]Write to MH i2c: D1 01 00 EA 29 01 E5 [15:24:13]Write i2c OK [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: D1 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: D1 01 00 [15:24:13]MH_I2C_Read... [15:24:13]Read from MH i2c: D1 01 00 EA 29 00 E4 [15:24:13]Write to MH i2c: 01 00 00 EB 29 14 [15:24:13]Write i2c OK [15:24:13]MH_I2C_Read... [15:24:14]OFD Sender: No OFD packet to send [15:24:14]*** Cut start [15:24:14]*** Purtial cut [15:24:14]*** Stage 1: CUTSNS_PIN = 1 [15:24:15]Read from MH i2c: 01 [15:24:15]MH_I2C_Read... [15:24:15]*** Stop cut motor [15:24:15]*** Cut end [15:24:15]Read from MH i2c: 01 07 00 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: 01 07 00 EB 29 00 00 00 00 00 FF 0F 29 [15:24:15]process_action close_receipt done [15:24:15]requested_data is exist [15:24:15]produce_requested_data [15:24:15]requested_item fm.sn is exist - process it [15:24:15]wFMCommunicate request_size=4 [15:24:15]MH_SAM_APDU [15:24:15]CAPDU: 80 11 00 00 [15:24:15]Write to MH i2c: E2 08 00 EC 29 80 11 00 00 00 00 00 00 8F [15:24:15]Write i2c OK [15:24:15]MH_I2C_Read... [15:24:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:15]Read from MH i2c: E2 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: E2 17 00 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: E2 17 00 EC 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E4 [15:24:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:24:15]wFMCommunicate OK [15:24:15]requested_item fd.num is exist - process it [15:24:15]SAM_PROTO_GetFieldsCounters [15:24:15]wFMCommunicate request_size=4 [15:24:15]MH_SAM_APDU [15:24:15]CAPDU: 80 13 00 00 [15:24:15]Write to MH i2c: E2 08 00 ED 29 80 13 00 00 00 00 00 00 92 [15:24:15]Write i2c OK [15:24:15]MH_I2C_Read... [15:24:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:15]Read from MH i2c: E2 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: E2 62 00 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: E2 62 00 ED 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5D 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 27 [15:24:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5D 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:24:15]wFMCommunicate OK [15:24:15]SAM_PROTO_GetFieldsCounters done [15:24:15]requested_item shift.num is exist - process it [15:24:15]requested_item shift.opened is exist - process it [15:24:15]req_shift_opened [15:24:15]FM_GetShiftState [15:24:15]SAM_PROTO_GetShiftState [15:24:15]wFMCommunicate request_size=4 [15:24:15]MH_SAM_APDU [15:24:15]CAPDU: 80 13 01 00 [15:24:15]Write to MH i2c: E2 08 00 EE 29 80 13 01 00 00 00 00 00 94 [15:24:15]Write i2c OK [15:24:15]MH_I2C_Read... [15:24:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:15]Read from MH i2c: E2 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: E2 0E 00 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: E2 0E 00 EE 29 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 A3 [15:24:15]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:24:15]wFMCommunicate OK [15:24:15]SAM_PROTO_GetShiftState done [15:24:15]FM_GetShiftState done [15:24:15]req_shift_opened done [15:24:15]requested_item shift.open_date is exist - process it [15:24:15]req_shift_open_date [15:24:15]req_shift_open_date done [15:24:15]produce_requested_data done [15:24:15]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201565,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [15:24:15]process_action_free close_receipt [15:24:15]json_value_free [15:24:15]json_value_free done [15:24:15]process_json_proto returns [15:24:15]Send response to host [15:24:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201565,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [15:24:15]free response buf [15:24:15]execute_script done [15:24:15]execute_script returns [15:24:15]free content buf [15:24:15]Sock 8.Close socket [15:24:15]Sock 8.Thread stoped [15:24:19]OFD Sender: No OFD packet to send [15:24:24]OFD Sender: No OFD packet to send [15:24:29]OFD Sender: No OFD packet to send [15:24:33]int [15:24:33]Write to MH i2c: 01 00 00 EF 29 18 [15:24:33]*** FLAG_PRN_KEY set [15:24:33]Write i2c OK [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: 01 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: 01 07 00 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: 01 07 00 EF 29 00 08 00 00 00 FF 0F 35 [15:24:33]state=0 [15:24:33]Key pressed [15:24:33]Feed [15:24:33]Write to MH i2c: D8 00 00 F0 29 F0 [15:24:33]Write i2c OK [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: D8 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: D8 01 00 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: D8 01 00 F0 29 00 F1 [15:24:33]int [15:24:33]Write to MH i2c: 01 00 00 F1 29 1A [15:24:33]Write i2c OK [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: 01 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: 01 07 00 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: 01 07 00 F1 29 00 48 00 00 00 3C 00 A5 [15:24:33]state=2 [15:24:33]Key pressed [15:24:33]int [15:24:33]Write to MH i2c: 01 00 00 F2 29 1B [15:24:33]*** FLAG_PRN_KEY reset [15:24:33]Write i2c OK [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: 01 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: 01 07 00 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: 01 07 00 F2 29 00 00 00 00 00 F5 0F 26 [15:24:33]state=2 [15:24:33]Stop feed [15:24:34]OFD Sender: No OFD packet to send [15:24:39]OFD Sender: No OFD packet to send [15:24:44]OFD Sender: No OFD packet to send [15:24:49]OFD Sender: No OFD packet to send [15:24:54]OFD Sender: No OFD packet to send [15:24:59]OFD Sender: No OFD packet to send [15:25:04]OFD Sender: No OFD packet to send [15:25:09]OFD Sender: No OFD packet to send [15:25:14]OFD Sender: No OFD packet to send [15:25:19]OFD Sender: No OFD packet to send [15:25:24]OFD Sender: No OFD packet to send [15:25:29]OFD Sender: No OFD packet to send [15:25:34]OFD Sender: No OFD packet to send [15:25:39]OFD Sender: No OFD packet to send [15:25:44]OFD Sender: No OFD packet to send [15:25:49]OFD Sender: No OFD packet to send [15:25:54]OFD Sender: No OFD packet to send [15:25:59]OFD Sender: No OFD packet to send [15:26:04]OFD Sender: No OFD packet to send [15:26:09]OFD Sender: No OFD packet to send [15:26:14]OFD Sender: No OFD packet to send [15:26:19]OFD Sender: No OFD packet to send [15:26:24]OFD Sender: No OFD packet to send [15:26:29]OFD Sender: No OFD packet to send [15:26:34]OFD Sender: No OFD packet to send [15:26:39]OFD Sender: No OFD packet to send [15:26:44]OFD Sender: No OFD packet to send [15:26:46]accept exits with 9 [15:26:46]New connection [15:26:46]New thread 3066690916 created [15:26:46]Thread 3066834276 joined [15:26:46]Waiting for new connection... [15:26:46] Sock 9.Parse request [15:26:46]Sock 9.Check first char [15:26:46]Sock 9.First char is OK [15:26:46]request: POST /json_proto HTTP/1.0 [15:26:46]Method: POST [15:26:46]URL: /json_proto [15:26:46]Method is POST - this is cgi request [15:26:46]url: /json_proto [15:26:46]query_string will be loaded in cgi processing [15:26:46]execute_cgi json_proto POST (null) [15:26:46]execute_cgi path=json_proto method=POST [15:26:46]POST find Content-Length [15:26:46]Host: 172.17.63.195:8080 [15:26:46]Content-Length: 677 [15:26:46]Content-Type: application/json [15:26:46] [15:26:46]POST finish read [15:26:46]Found Content-Length = 677 [15:26:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [15:26:46]execute_script... [15:26: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)449321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [15:26:46]POST & json_proto [15:26:46]process_json_proto [15:26:46]json parsed OK: [15:26:46]protocol is kg_v1.0 [15:26:46]action value=close_receipt [15:26:46]process_action close_receipt [15:26:46]cmd_close_receipt [15:26:46]MH_GetDate [15:26:46]Write to MH i2c: F0 00 00 F3 29 0B [15:26:46]Write i2c OK [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: F0 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: F0 09 00 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: F0 09 00 F3 29 00 37 0A 1D 67 68 46 19 67 07 [15:26:46]GetLastDocTimeStamp 1729956252 [15:26:46]current date 1729956407 [15:26:46]FM_GetShiftState [15:26:46]SAM_PROTO_GetShiftState [15:26:46]wFMCommunicate request_size=4 [15:26:46]MH_SAM_APDU [15:26:46]CAPDU: 80 13 01 00 [15:26:46]Write to MH i2c: E2 08 00 F4 29 80 13 01 00 00 00 00 00 9A [15:26:46]Write i2c OK [15:26:46]MH_I2C_Read... [15:26:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:46]Read from MH i2c: E2 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: E2 0E 00 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: E2 0E 00 F4 29 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 A9 [15:26:46]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:26:46]wFMCommunicate OK [15:26:46]SAM_PROTO_GetShiftState done [15:26:46]FM_GetShiftState done [15:26:46]opened in 1729900879 [15:26:46]opened+sec_in_day 1729987279 [15:26:46]quantity*price = 50041 [15:26:46]sum+1 = 50042 [15:26:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 328 26.10.2024 15:26 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201566 ФПД: 133931095135837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T152647&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201566&fm=133931095135837&tin=02508201610067®Number=0000000000091777&sum=50000 [15:26:47]StoreToDocumentArchive [15:26:47]shift 543 fd 201566 [15:26:47]save to /storage/0543/doc_00201566 [15:26:47]save last doc name /storage/0543/doc_00201566 to /storage/kkm_last_doc_name [15:26:47]save OK [15:26:47]Clear old archive folders... [15:26:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:26:47]tlvbuf is 020065C0 [15:26:47]SAM_PROTO_ClearQueue [15:26:47]wFMCommunicate request_size=4 [15:26:47]MH_SAM_APDU [15:26:47]CAPDU: 80 09 00 00 [15:26:47]Write to MH i2c: E2 08 00 01 2A 80 09 00 00 00 00 00 00 9D [15:26:47]Write i2c OK [15:26:47]MH_I2C_Read... [15:26:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:47]Read from MH i2c: E2 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: E2 03 00 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: E2 03 00 01 2A 00 90 00 9F [15:26:47]RAPDU: 90 00 [15:26:47]wFMCommunicate OK [15:26:47]SAM_PROTO_ClearQueue done [15:26:47]KKMCreateOFDPacket [15:26:47]OFDProtocolAddRootSTLVToBuf [15:26:47]FM_MakeSignedData [15:26:47]FM_MakeSignedData [15:26:47]SAM_PROTO_SignData [15:26:47]wFMCommunicate request_size=4 [15:26:47]MH_SAM_APDU [15:26:47]CAPDU: 80 0D 01 02 [15:26:47]Write to MH i2c: E2 08 00 02 2A 80 0D 01 02 00 00 00 00 A5 [15:26:47]Write i2c OK [15:26:47]MH_I2C_Read... [15:26:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:47]Read from MH i2c: E2 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: E2 03 00 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: E2 03 00 02 2A 00 90 00 A0 [15:26:47]RAPDU: 90 00 [15:26:47]wFMCommunicate OK [15:26:47]wFMCommunicate request_size=255 [15:26:47]MH_SAM_APDU [15:26: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 32 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 48 01 00 00 F4 03 04 00 37 0A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5E 13 03 00 35 04 06 00 79 [15:26:47]Write to MH i2c: E2 02 01 03 2A 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 32 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 48 01 00 00 F4 03 04 00 37 0A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5E 13 03 00 35 04 06 00 79 00 00 55 [15:26:47]Write i2c OK [15:26:47]MH_I2C_Read... [15:26:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:47]Read from MH i2c: E2 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: E2 03 00 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: E2 03 00 03 2A 00 90 00 A1 [15:26:47]RAPDU: 90 00 [15:26:47]wFMCommunicate OK [15:26:47]wFMCommunicate request_size=10 [15:26:47]MH_SAM_APDU [15:26:47]CAPDU: 80 0D 02 02 05 CF 43 59 96 5D [15:26:47]Write to MH i2c: E2 0D 00 04 2A 80 0D 02 02 05 00 CF 43 59 96 5D 00 00 10 [15:26:47]Write i2c OK [15:26:47]MH_I2C_Read... [15:26:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:47]Read from MH i2c: E2 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: E2 03 00 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: E2 03 00 04 2A 00 90 00 A2 [15:26:47]RAPDU: 90 00 [15:26:47]wFMCommunicate OK [15:26:47]wFMCommunicate request_size=4 [15:26:47]MH_SAM_APDU [15:26:47]CAPDU: 80 0D 03 02 [15:26:47]Write to MH i2c: E2 08 00 05 2A 80 0D 03 02 00 00 00 00 AA [15:26:47]Write i2c OK [15:26:47]MH_I2C_Read... [15:26:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:47]Read from MH i2c: E2 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: E2 0B 00 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: E2 0B 00 05 2A 00 D4 F7 94 B5 34 5D 03 AF 90 00 02 [15:26:47]RAPDU: D4 F7 94 B5 34 5D 03 AF 90 00 [15:26:47]wFMCommunicate OK [15:26:47]SAM_PROTO_SignData done [15:26:47]FM_MakeSignedData done [15:26:47]CreateOFDProtocolMessage [15:26:47]wFMCommunicate request_size=4 [15:26:47]MH_SAM_APDU [15:26:47]CAPDU: 80 11 00 00 [15:26:47]Write to MH i2c: E2 08 00 06 2A 80 11 00 00 00 00 00 00 AA [15:26:47]Write i2c OK [15:26:47]MH_I2C_Read... [15:26:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:47]Read from MH i2c: E2 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: E2 17 00 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: E2 17 00 06 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FF [15:26:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:26:47]wFMCommunicate OK [15:26:47]CreateOFDProtocolMessage done [15:26:47]OFDSenderStorePacket 201566 [15:26:47]StoreOFDPacket docnum=201566 [15:26:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 9E 7F 07 01 2A 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 32 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 48 01 00 00 F4 03 04 00 37 0A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5E 13 03 00 35 04 06 00 79 CF 43 59 96 5D D4 F7 94 B5 34 5D 03 AF [15:26:47]CheckFolder [15:26:47]dirname=/storage/ofd_packets [15:26:47]CheckFolder done [15:26:47]ProducePacketName [15:26:47]name=ofd_packets/00201566 [15:26:47]NVStorageSaveData ofd_packets/00201566 [15:26:47]File name is /storage/ofd_packets/00201566 [15:26:47]Write 301 bytes [15:26:47]NVStorageSaveData done [15:26:47]OFDSenderStorePacket done [15:26:47]KKMCreateOFDPacket done [15:26:47]NVStorageSaveData kkm_last_timestamp [15:26:47]File name is /storage/kkm_last_timestamp [15:26:47]Write 4 bytes [15:26:47]NVStorageSaveData done [15:26:47]ExternCall_PrintAddStr [15:26:47]wPrintStart [15:26:47]Write to MH i2c: 01 00 00 07 2A 31 [15:26:47]Write i2c OK [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: 01 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: 01 07 00 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: 01 07 00 07 2A 00 00 00 00 00 FF 0F 46 [15:26:47]RasterBufferAndPrint [15:26:47]line Счет N : (1)449321 [15:26:47]line ИНН: 02508201610067 [15:26:47]line Контрольно-Кассовый Чек [15:26:47]line ПРОДАЖА [15:26:47]line ТРК (МРК, ГНК) : 41 [15:26:47]line Товар: 2710124130 [15:26:47]line Аи-92-К-2 [15:26:47]line 7.480 * 66.90 [15:26:47]line = 500.41 [15:26:47]line НДС 12% НСП 1% [15:26:47]line > о реализуемом товаре [15:26:47]line ОКРУГЛЕНИЕ: -0.41 [15:26:47]line ИТОГО: 500.00 [15:26:47]line Внесено: 500.00 [15:26:47]line СДАЧА: 0.00 [15:26:47]line НСП 1% : 4.43 [15:26:47]line НДС 12% : 53.14 [15:26:47]line Наличными: 500.00 [15:26:47]line Безнал.: 0.00 [15:26:47]line Место: АЗС № 171 "Партнер Нефть" [15:26:47]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:26:47]line СНО: Общий режим [15:26:47]line Чек 328 26.10.2024 15:26 [15:26:47]line Смена: 543 ФФД: 1.0 [15:26:47]line ЗНМ: 0300000109 [15:26:47]line РНМ: 0000000000091777 [15:26:47]line Версия ККМ: 001 [15:26:47]line ФМ: 0000000000871756 [15:26:47]line ФД: 201566 [15:26:47]line ФПД: 133931095135837 [15:26:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T152647&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201566&fm=133931095135837&tin=02508201610067®Number=0000000000091777&sum=50000 [15:26:48]OFD Sender: Processing packet 201566 [packets to send 112, broken 111] [15:26:48]ProducePacketName [15:26:48]name=ofd_packets/00201566 [15:26:48]OFD Sender: To server: pG, [15:26:48]CommunicateWithHost lk.salyk.kg:30040 [15:26:48]ConnectInit lk.salyk.kg [15:26:48]written 0, free lines is 4095 [15:26:48]Connected sock=10 [15:26:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 9E 7F 07 01 2A 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 32 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 48 01 00 00 F4 03 04 00 37 0A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5E 13 03 00 35 04 06 00 79 CF 43 59 96 5D D4 F7 94 B5 34 5D 03 AF [15:26:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 42 00 47 00 01 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5E 13 03 00 F4 03 04 00 E0 B5 1C 67 B6 04 01 00 00 AE B6 04 23 59 E1 D8 DA [15:26:48]CommunicateWithHost err = 0 [15:26:48]CheckOFDResponse [15:26:48]1017 (14) - 77093643461234 [15:26:48]1041 (16) - 0000000000871756 [15:26:48]1040 (4) - 201566 [15:26:48]1012 (4) - 26.10.2024 09:26 [15:26:48]1206 (1) - 0 [15:26:48]OFD Sender: Remove packet 201566 [15:26:48]ProducePacketName [15:26:48]name=ofd_packets/00201566 [15:26:48]NVStorageDeleteData [15:26:48]Write to MH i2c: 01 00 00 32 2A 5C [15:26:48]Write i2c OK [15:26:48]MH_I2C_Read... [15:26:48]Read from MH i2c: 01 [15:26:48]MH_I2C_Read... [15:26:48]Read from MH i2c: 01 07 00 [15:26:48]MH_I2C_Read... [15:26:48]Read from MH i2c: 01 07 00 32 2A 00 00 00 00 00 99 0C 08 [15:26:48]RasterBufferAndPrint [15:26:48]line [15:26:48]line [15:26:48]line [15:26:48]line [15:26:48]line [15:26:48]written 0, free lines is 3232 [15:26:48]MH_Cut [15:26:48]Write to MH i2c: D1 01 00 39 2A 01 35 [15:26:48]Write i2c OK [15:26:48]MH_I2C_Read... [15:26:48]Read from MH i2c: D1 [15:26:48]MH_I2C_Read... [15:26:48]Read from MH i2c: D1 01 00 [15:26:48]MH_I2C_Read... [15:26:48]Read from MH i2c: D1 01 00 39 2A 00 34 [15:26:48]Write to MH i2c: 01 00 00 3A 2A 64 [15:26:48]Write i2c OK [15:26:48]MH_I2C_Read... [15:26:49]OFD Sender: No OFD packet to send [15:26:49]*** Cut start [15:26:49]*** Purtial cut [15:26:49]*** CUTSNS_PIN = 0 [15:26:49]*** Stage 1: CUTSNS_PIN = 1 [15:26:51]Read from MH i2c: 01 [15:26:51]MH_I2C_Read... [15:26:51]*** Stop cut motor [15:26:51]*** Cut end [15:26:51]Read from MH i2c: 01 07 00 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: 01 07 00 3A 2A 00 00 00 00 00 FF 0F 79 [15:26:51]process_action close_receipt done [15:26:51]requested_data is exist [15:26:51]produce_requested_data [15:26:51]requested_item fm.sn is exist - process it [15:26:51]wFMCommunicate request_size=4 [15:26:51]MH_SAM_APDU [15:26:51]CAPDU: 80 11 00 00 [15:26:51]Write to MH i2c: E2 08 00 3B 2A 80 11 00 00 00 00 00 00 DF [15:26:51]Write i2c OK [15:26:51]MH_I2C_Read... [15:26:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:51]Read from MH i2c: E2 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 17 00 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 17 00 3B 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 34 [15:26:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:26:51]wFMCommunicate OK [15:26:51]requested_item fd.num is exist - process it [15:26:51]SAM_PROTO_GetFieldsCounters [15:26:51]wFMCommunicate request_size=4 [15:26:51]MH_SAM_APDU [15:26:51]CAPDU: 80 13 00 00 [15:26:51]Write to MH i2c: E2 08 00 3C 2A 80 13 00 00 00 00 00 00 E2 [15:26:51]Write i2c OK [15:26:51]MH_I2C_Read... [15:26:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:51]Read from MH i2c: E2 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 62 00 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 62 00 3C 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5E 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 7B [15:26:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5E 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:26:51]wFMCommunicate OK [15:26:51]SAM_PROTO_GetFieldsCounters done [15:26:51]requested_item shift.num is exist - process it [15:26:51]requested_item shift.opened is exist - process it [15:26:51]req_shift_opened [15:26:51]FM_GetShiftState [15:26:51]SAM_PROTO_GetShiftState [15:26:51]wFMCommunicate request_size=4 [15:26:51]MH_SAM_APDU [15:26:51]CAPDU: 80 13 01 00 [15:26:51]Write to MH i2c: E2 08 00 3D 2A 80 13 01 00 00 00 00 00 E4 [15:26:51]Write i2c OK [15:26:51]MH_I2C_Read... [15:26:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:51]Read from MH i2c: E2 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 0E 00 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 0E 00 3D 2A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F3 [15:26:51]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:26:51]wFMCommunicate OK [15:26:51]SAM_PROTO_GetShiftState done [15:26:51]FM_GetShiftState done [15:26:51]req_shift_opened done [15:26:51]requested_item shift.open_date is exist - process it [15:26:51]req_shift_open_date [15:26:51]req_shift_open_date done [15:26:51]produce_requested_data done [15:26:51]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201566,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [15:26:51]process_action_free close_receipt [15:26:51]json_value_free [15:26:51]json_value_free done [15:26:51]process_json_proto returns [15:26:51]Send response to host [15:26:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201566,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [15:26:51]free response buf [15:26:51]execute_script done [15:26:51]execute_script returns [15:26:51]free content buf [15:26:51]Sock 9.Close socket [15:26:51]Sock 9.Thread stoped [15:26:54]OFD Sender: No OFD packet to send [15:26:59]OFD Sender: No OFD packet to send [15:27:04]OFD Sender: No OFD packet to send [15:27:09]OFD Sender: No OFD packet to send [15:27:14]OFD Sender: No OFD packet to send [15:27:19]OFD Sender: No OFD packet to send [15:27:24]OFD Sender: No OFD packet to send [15:27:29]OFD Sender: No OFD packet to send [15:27:34]OFD Sender: No OFD packet to send [15:27:39]OFD Sender: No OFD packet to send [15:27:44]OFD Sender: No OFD packet to send [15:27:49]OFD Sender: No OFD packet to send [15:27:54]OFD Sender: No OFD packet to send [15:27:59]OFD Sender: No OFD packet to send [15:28:04]OFD Sender: No OFD packet to send [15:28:09]OFD Sender: No OFD packet to send [15:28:14]OFD Sender: No OFD packet to send [15:28:19]OFD Sender: No OFD packet to send [15:28:24]OFD Sender: No OFD packet to send [15:28:29]OFD Sender: No OFD packet to send [15:28:34]OFD Sender: No OFD packet to send [15:28:39]OFD Sender: No OFD packet to send [15:28:44]OFD Sender: No OFD packet to send [15:28:49]OFD Sender: No OFD packet to send [15:28:54]OFD Sender: No OFD packet to send [15:28:59]OFD Sender: No OFD packet to send [15:29:04]OFD Sender: No OFD packet to send [15:29:09]OFD Sender: No OFD packet to send [15:29:14]OFD Sender: No OFD packet to send [15:29:16]accept exits with 8 [15:29:16]New connection [15:29:16]New thread 3066834276 created [15:29:16]Thread 3066690916 joined [15:29:16]Waiting for new connection... [15:29:16] Sock 8.Parse request [15:29:16]Sock 8.Check first char [15:29:16]Sock 8.First char is OK [15:29:16]request: POST /json_proto HTTP/1.0 [15:29:16]Method: POST [15:29:16]URL: /json_proto [15:29:16]Method is POST - this is cgi request [15:29:16]url: /json_proto [15:29:16]query_string will be loaded in cgi processing [15:29:16]execute_cgi json_proto POST (null) [15:29:16]execute_cgi path=json_proto method=POST [15:29:16]POST find Content-Length [15:29:16]Host: 172.17.63.195:8080 [15:29:16]Content-Length: 677 [15:29:16]Content-Type: application/json [15:29:16] [15:29:16]POST finish read [15:29:16]Found Content-Length = 677 [15:29:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [15:29:16]execute_script... [15:29:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [15:29:16]POST & json_proto [15:29:16]process_json_proto [15:29:16]json parsed OK: [15:29:16]protocol is kg_v1.0 [15:29:16]action value=close_receipt [15:29:16]process_action close_receipt [15:29:16]cmd_close_receipt [15:29:16]MH_GetDate [15:29:16]Write to MH i2c: F0 00 00 3E 2A 57 [15:29:16]Write i2c OK [15:29:16]MH_I2C_Read... [15:29:16]Read from MH i2c: F0 [15:29:16]MH_I2C_Read... [15:29:16]Read from MH i2c: F0 09 00 [15:29:16]MH_I2C_Read... [15:29:16]Read from MH i2c: F0 09 00 3E 2A 00 CE 0A 1D 67 68 46 19 67 EA [15:29:16]GetLastDocTimeStamp 1729956407 [15:29:16]current date 1729956558 [15:29:16]FM_GetShiftState [15:29:16]SAM_PROTO_GetShiftState [15:29:16]wFMCommunicate request_size=4 [15:29:16]MH_SAM_APDU [15:29:16]CAPDU: 80 13 01 00 [15:29:16]Write to MH i2c: E2 08 00 3F 2A 80 13 01 00 00 00 00 00 E6 [15:29:16]Write i2c OK [15:29:16]MH_I2C_Read... [15:29:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:17]Read from MH i2c: E2 [15:29:17]MH_I2C_Read... [15:29:17]Read from MH i2c: E2 0E 00 [15:29:17]MH_I2C_Read... [15:29:17]Read from MH i2c: E2 0E 00 3F 2A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F5 [15:29:17]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:29:17]wFMCommunicate OK [15:29:17]SAM_PROTO_GetShiftState done [15:29:17]FM_GetShiftState done [15:29:17]opened in 1729900879 [15:29:17]opened+sec_in_day 1729987279 [15:29:17]quantity*price = 35055 [15:29:17]sum+1 = 35057 [15:29:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 329 26.10.2024 15:29 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201567 ФПД: 199244576701181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T152918&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201567&fm=199244576701181&tin=02508201610067®Number=0000000000091777&sum=35000 [15:29:18]StoreToDocumentArchive [15:29:18]shift 543 fd 201567 [15:29:18]save to /storage/0543/doc_00201567 [15:29:18]save last doc name /storage/0543/doc_00201567 to /storage/kkm_last_doc_name [15:29:18]save OK [15:29:18]Clear old archive folders... [15:29:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:29:18]tlvbuf is 01F0EAE0 [15:29:18]SAM_PROTO_ClearQueue [15:29:18]wFMCommunicate request_size=4 [15:29:18]MH_SAM_APDU [15:29:18]CAPDU: 80 09 00 00 [15:29:18]Write to MH i2c: E2 08 00 4C 2A 80 09 00 00 00 00 00 00 E8 [15:29:18]Write i2c OK [15:29:18]MH_I2C_Read... [15:29:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:29:18]Read from MH i2c: E2 [15:29:18]MH_I2C_Read... [15:29:18]Read from MH i2c: E2 03 00 [15:29:18]MH_I2C_Read... [15:29:18]Read from MH i2c: E2 03 00 4C 2A 00 90 00 EA [15:29:18]RAPDU: 90 00 [15:29:18]wFMCommunicate OK [15:29:18]SAM_PROTO_ClearQueue done [15:29:18]KKMCreateOFDPacket [15:29:18]OFDProtocolAddRootSTLVToBuf [15:29:18]FM_MakeSignedData [15:29:18]FM_MakeSignedData [15:29:18]SAM_PROTO_SignData [15:29:18]wFMCommunicate request_size=4 [15:29:18]MH_SAM_APDU [15:29:18]CAPDU: 80 0D 01 02 [15:29:18]Write to MH i2c: E2 08 00 4D 2A 80 0D 01 02 00 00 00 00 F0 [15:29:18]Write i2c OK [15:29:18]MH_I2C_Read... [15:29:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:29:18]Read from MH i2c: E2 [15:29:18]MH_I2C_Read... [15:29:18]Read from MH i2c: E2 03 00 [15:29:18]MH_I2C_Read... [15:29:18]Read from MH i2c: E2 03 00 4D 2A 00 90 00 EB [15:29:18]RAPDU: 90 00 [15:29:18]wFMCommunicate OK [15:29:18]wFMCommunicate request_size=255 [15:29:18]MH_SAM_APDU [15:29: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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 49 01 00 00 F4 03 04 00 CE 0A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5F 13 03 00 35 04 06 00 B5 [15:29:18]Write to MH i2c: E2 02 01 4E 2A 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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 49 01 00 00 F4 03 04 00 CE 0A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5F 13 03 00 35 04 06 00 B5 00 00 80 [15:29:18]Write i2c OK [15:29:18]MH_I2C_Read... [15:29:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:18]Read from MH i2c: E2 [15:29:18]MH_I2C_Read... [15:29:18]Read from MH i2c: E2 03 00 [15:29:18]MH_I2C_Read... [15:29:18]Read from MH i2c: E2 03 00 4E 2A 00 90 00 EC [15:29:18]RAPDU: 90 00 [15:29:18]wFMCommunicate OK [15:29:18]wFMCommunicate request_size=10 [15:29:18]MH_SAM_APDU [15:29:18]CAPDU: 80 0D 02 02 05 36 3E 37 BA FD [15:29:18]Write to MH i2c: E2 0D 00 4F 2A 80 0D 02 02 05 00 36 3E 37 BA FD 00 00 5F [15:29:18]Write i2c OK [15:29:18]MH_I2C_Read... [15:29:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:18]Read from MH i2c: E2 [15:29:18]MH_I2C_Read... [15:29:18]Read from MH i2c: E2 03 00 [15:29:18]MH_I2C_Read... [15:29:18]Read from MH i2c: E2 03 00 4F 2A 00 90 00 ED [15:29:18]RAPDU: 90 00 [15:29:18]wFMCommunicate OK [15:29:18]wFMCommunicate request_size=4 [15:29:18]MH_SAM_APDU [15:29:18]CAPDU: 80 0D 03 02 [15:29:18]Write to MH i2c: E2 08 00 50 2A 80 0D 03 02 00 00 00 00 F5 [15:29:18]Write i2c OK [15:29:18]MH_I2C_Read... [15:29:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:29:18]Read from MH i2c: E2 [15:29:18]MH_I2C_Read... [15:29:18]Read from MH i2c: E2 0B 00 [15:29:18]MH_I2C_Read... [15:29:18]Read from MH i2c: E2 0B 00 50 2A 00 0B A1 53 58 0B C9 BD 14 90 00 F2 [15:29:18]RAPDU: 0B A1 53 58 0B C9 BD 14 90 00 [15:29:18]wFMCommunicate OK [15:29:18]SAM_PROTO_SignData done [15:29:18]FM_MakeSignedData done [15:29:18]CreateOFDProtocolMessage [15:29:18]wFMCommunicate request_size=4 [15:29:18]MH_SAM_APDU [15:29:18]CAPDU: 80 11 00 00 [15:29:18]Write to MH i2c: E2 08 00 51 2A 80 11 00 00 00 00 00 00 F5 [15:29:18]Write i2c OK [15:29:18]MH_I2C_Read... [15:29:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:18]Read from MH i2c: E2 [15:29:18]MH_I2C_Read... [15:29:18]Read from MH i2c: E2 17 00 [15:29:18]MH_I2C_Read... [15:29:18]Read from MH i2c: E2 17 00 51 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4A [15:29:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:29:18]wFMCommunicate OK [15:29:18]CreateOFDProtocolMessage done [15:29:18]OFDSenderStorePacket 201567 [15:29:18]StoreOFDPacket docnum=201567 [15:29:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 05 EE 07 01 24 78 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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 49 01 00 00 F4 03 04 00 CE 0A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5F 13 03 00 35 04 06 00 B5 36 3E 37 BA FD 0B A1 53 58 0B C9 BD 14 [15:29:18]CheckFolder [15:29:18]dirname=/storage/ofd_packets [15:29:18]CheckFolder done [15:29:18]ProducePacketName [15:29:18]name=ofd_packets/00201567 [15:29:18]NVStorageSaveData ofd_packets/00201567 [15:29:18]File name is /storage/ofd_packets/00201567 [15:29:18]Write 301 bytes [15:29:18]NVStorageSaveData done [15:29:18]OFDSenderStorePacket done [15:29:18]KKMCreateOFDPacket done [15:29:18]NVStorageSaveData kkm_last_timestamp [15:29:18]File name is /storage/kkm_last_timestamp [15:29:18]Write 4 bytes [15:29:18]NVStorageSaveData done [15:29:18]ExternCall_PrintAddStr [15:29:18]wPrintStart [15:29:18]Write to MH i2c: 01 00 00 52 2A 7C [15:29:18]Write i2c OK [15:29:18]MH_I2C_Read... [15:29:18]Read from MH i2c: 01 [15:29:18]MH_I2C_Read... [15:29:18]Read from MH i2c: 01 07 00 [15:29:18]MH_I2C_Read... [15:29:18]Read from MH i2c: 01 07 00 52 2A 00 00 00 00 00 FF 0F 91 [15:29:18]RasterBufferAndPrint [15:29:18]line Счет N : (1)449322 [15:29:18]line ИНН: 02508201610067 [15:29:18]line Контрольно-Кассовый Чек [15:29:18]line ПРОДАЖА [15:29:18]line ТРК (МРК, ГНК) : 31 [15:29:18]line Товар: 2710124130 [15:29:18]line Аи-92-К-2 [15:29:18]line 5.240 * 66.90 [15:29:18]line = 350.56 [15:29:18]line НДС 12% НСП 1% [15:29:18]line > о реализуемом товаре [15:29:18]line ОКРУГЛЕНИЕ: -0.56 [15:29:18]line ИТОГО: 350.00 [15:29:18]line Внесено: 350.00 [15:29:18]line СДАЧА: 0.00 [15:29:18]line НСП 1% : 3.10 [15:29:18]line НДС 12% : 37.23 [15:29:18]line Наличными: 350.00 [15:29:18]line Безнал.: 0.00 [15:29:18]line Место: АЗС № 171 "Партнер Нефть" [15:29:18]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:29:18]line СНО: Общий режим [15:29:18]line Чек 329 26.10.2024 15:29 [15:29:18]line Смена: 543 ФФД: 1.0 [15:29:18]line ЗНМ: 0300000109 [15:29:18]line РНМ: 0000000000091777 [15:29:18]line Версия ККМ: 001 [15:29:18]line ФМ: 0000000000871756 [15:29:18]line ФД: 201567 [15:29:18]line ФПД: 199244576701181 [15:29:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T152918&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201567&fm=199244576701181&tin=02508201610067®Number=0000000000091777&sum=35000 [15:29:19]OFD Sender: Processing packet 201567 [packets to send 112, broken 111] [15:29:19]ProducePacketName [15:29:19]name=ofd_packets/00201567 [15:29:19]OFD Sender: To server: pG, [15:29:19]CommunicateWithHost lk.salyk.kg:30040 [15:29:19]ConnectInit lk.salyk.kg [15:29:19]written 0, free lines is 4095 [15:29:19]Connected sock=10 [15:29:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 05 EE 07 01 24 78 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 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 49 01 00 00 F4 03 04 00 CE 0A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5F 13 03 00 35 04 06 00 B5 36 3E 37 BA FD 0B A1 53 58 0B C9 BD 14 [15:29:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 6C BE 47 00 48 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 5F 13 03 00 F4 03 04 00 77 B6 1C 67 B6 04 01 00 00 EE 68 E3 1C 42 DA A7 9A [15:29:19]CommunicateWithHost err = 0 [15:29:19]CheckOFDResponse [15:29:19]1017 (14) - 77093643461234 [15:29:19]1041 (16) - 0000000000871756 [15:29:19]1040 (4) - 201567 [15:29:19]1012 (4) - 26.10.2024 09:29 [15:29:19]1206 (1) - 0 [15:29:19]OFD Sender: Remove packet 201567 [15:29:19]ProducePacketName [15:29:19]name=ofd_packets/00201567 [15:29:19]NVStorageDeleteData [15:29:19]Write to MH i2c: 01 00 00 7D 2A A7 [15:29:19]Write i2c OK [15:29:19]MH_I2C_Read... [15:29:19]Read from MH i2c: 01 [15:29:19]MH_I2C_Read... [15:29:19]Read from MH i2c: 01 07 00 [15:29:19]MH_I2C_Read... [15:29:19]Read from MH i2c: 01 07 00 7D 2A 00 00 00 00 00 90 0C 4A [15:29:19]RasterBufferAndPrint [15:29:19]line [15:29:19]line [15:29:19]line [15:29:19]line [15:29:19]line [15:29:19]written 0, free lines is 3219 [15:29:19]MH_Cut [15:29:19]Write to MH i2c: D1 01 00 84 2A 01 80 [15:29:19]Write i2c OK [15:29:19]MH_I2C_Read... [15:29:19]Read from MH i2c: D1 [15:29:19]MH_I2C_Read... [15:29:19]Read from MH i2c: D1 01 00 [15:29:19]MH_I2C_Read... [15:29:19]Read from MH i2c: D1 01 00 84 2A 00 7F [15:29:19]Write to MH i2c: 01 00 00 85 2A AF [15:29:19]Write i2c OK [15:29:19]MH_I2C_Read... [15:29:19]OFD Sender: No OFD packet to send [15:29:20]*** Cut start [15:29:20]*** Purtial cut [15:29:20]*** Stage 1: CUTSNS_PIN = 1 [15:29:20]Read from MH i2c: 01 [15:29:20]MH_I2C_Read... [15:29:20]*** Stop cut motor [15:29:20]*** Cut end [15:29:20]Read from MH i2c: 01 07 00 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: 01 07 00 85 2A 00 00 00 00 00 FF 0F C4 [15:29:20]process_action close_receipt done [15:29:20]requested_data is exist [15:29:20]produce_requested_data [15:29:20]requested_item fm.sn is exist - process it [15:29:20]wFMCommunicate request_size=4 [15:29:20]MH_SAM_APDU [15:29:20]CAPDU: 80 11 00 00 [15:29:20]Write to MH i2c: E2 08 00 86 2A 80 11 00 00 00 00 00 00 2A [15:29:20]Write i2c OK [15:29:20]MH_I2C_Read... [15:29:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:20]Read from MH i2c: E2 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: E2 17 00 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: E2 17 00 86 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7F [15:29:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:29:20]wFMCommunicate OK [15:29:20]requested_item fd.num is exist - process it [15:29:20]SAM_PROTO_GetFieldsCounters [15:29:20]wFMCommunicate request_size=4 [15:29:20]MH_SAM_APDU [15:29:20]CAPDU: 80 13 00 00 [15:29:20]Write to MH i2c: E2 08 00 87 2A 80 13 00 00 00 00 00 00 2D [15:29:20]Write i2c OK [15:29:20]MH_I2C_Read... [15:29:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:29:20]Read from MH i2c: E2 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: E2 62 00 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: E2 62 00 87 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5F 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 CA [15:29:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 5F 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:29:20]wFMCommunicate OK [15:29:20]SAM_PROTO_GetFieldsCounters done [15:29:20]requested_item shift.num is exist - process it [15:29:20]requested_item shift.opened is exist - process it [15:29:20]req_shift_opened [15:29:20]FM_GetShiftState [15:29:20]SAM_PROTO_GetShiftState [15:29:20]wFMCommunicate request_size=4 [15:29:20]MH_SAM_APDU [15:29:20]CAPDU: 80 13 01 00 [15:29:20]Write to MH i2c: E2 08 00 88 2A 80 13 01 00 00 00 00 00 2F [15:29:20]Write i2c OK [15:29:20]MH_I2C_Read... [15:29:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:20]Read from MH i2c: E2 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: E2 0E 00 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: E2 0E 00 88 2A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 3E [15:29:20]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:29:20]wFMCommunicate OK [15:29:20]SAM_PROTO_GetShiftState done [15:29:20]FM_GetShiftState done [15:29:20]req_shift_opened done [15:29:20]requested_item shift.open_date is exist - process it [15:29:20]req_shift_open_date [15:29:20]req_shift_open_date done [15:29:20]produce_requested_data done [15:29:20]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201567,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [15:29:20]process_action_free close_receipt [15:29:20]json_value_free [15:29:20]json_value_free done [15:29:20]process_json_proto returns [15:29:20]Send response to host [15:29:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201567,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [15:29:20]free response buf [15:29:20]execute_script done [15:29:20]execute_script returns [15:29:20]free content buf [15:29:20]Sock 8.Close socket [15:29:20]Sock 8.Thread stoped [15:29:24]OFD Sender: No OFD packet to send [15:29:29]OFD Sender: No OFD packet to send [15:29:34]OFD Sender: No OFD packet to send [15:29:39]OFD Sender: No OFD packet to send [15:29:44]OFD Sender: No OFD packet to send [15:29:49]OFD Sender: No OFD packet to send [15:29:54]OFD Sender: No OFD packet to send [15:29:59]OFD Sender: No OFD packet to send [15:30:04]OFD Sender: No OFD packet to send [15:30:09]OFD Sender: No OFD packet to send [15:30:14]OFD Sender: No OFD packet to send [15:30:19]OFD Sender: No OFD packet to send [15:30:24]OFD Sender: No OFD packet to send [15:30:29]OFD Sender: No OFD packet to send [15:30:34]OFD Sender: No OFD packet to send [15:30:39]OFD Sender: No OFD packet to send [15:30:44]OFD Sender: No OFD packet to send [15:30:49]OFD Sender: No OFD packet to send [15:30:54]OFD Sender: No OFD packet to send [15:31:00]OFD Sender: No OFD packet to send [15:31:05]OFD Sender: No OFD packet to send [15:31:10]OFD Sender: No OFD packet to send [15:31:15]OFD Sender: No OFD packet to send [15:31:20]OFD Sender: No OFD packet to send [15:31:25]OFD Sender: No OFD packet to send [15:31:30]OFD Sender: No OFD packet to send [15:31:35]OFD Sender: No OFD packet to send [15:31:40]OFD Sender: No OFD packet to send [15:31:45]OFD Sender: No OFD packet to send [15:31:50]OFD Sender: No OFD packet to send [15:31:55]OFD Sender: No OFD packet to send [15:32:00]OFD Sender: No OFD packet to send [15:32:05]OFD Sender: No OFD packet to send [15:32:10]OFD Sender: No OFD packet to send [15:32:15]OFD Sender: No OFD packet to send [15:32:20]OFD Sender: No OFD packet to send [15:32:25]OFD Sender: No OFD packet to send [15:32:30]OFD Sender: No OFD packet to send [15:32:35]OFD Sender: No OFD packet to send [15:32:40]OFD Sender: No OFD packet to send [15:32:45]OFD Sender: No OFD packet to send [15:32:50]OFD Sender: No OFD packet to send [15:32:55]OFD Sender: No OFD packet to send [15:33:00]OFD Sender: No OFD packet to send [15:33:05]OFD Sender: No OFD packet to send [15:33:10]OFD Sender: No OFD packet to send [15:33:15]OFD Sender: No OFD packet to send [15:33:20]OFD Sender: No OFD packet to send [15:33:25]OFD Sender: No OFD packet to send [15:33:30]OFD Sender: No OFD packet to send [15:33:30]accept exits with 9 [15:33:30]New connection [15:33:30]New thread 3066690916 created [15:33:30]Thread 3066834276 joined [15:33:30]Waiting for new connection... [15:33:30] Sock 9.Parse request [15:33:30]Sock 9.Check first char [15:33:30]Sock 9.First char is OK [15:33:30]request: POST /json_proto HTTP/1.0 [15:33:30]Method: POST [15:33:30]URL: /json_proto [15:33:30]Method is POST - this is cgi request [15:33:30]url: /json_proto [15:33:30]query_string will be loaded in cgi processing [15:33:30]execute_cgi json_proto POST (null) [15:33:30]execute_cgi path=json_proto method=POST [15:33:30]POST find Content-Length [15:33:30]Host: 172.17.63.195:8080 [15:33:30]Content-Length: 674 [15:33:30]Content-Type: application/json [15:33:30] [15:33:30]POST finish read [15:33:30]Found Content-Length = 674 [15:33:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [15:33:30]execute_script... [15:33: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)449323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [15:33:30]POST & json_proto [15:33:30]process_json_proto [15:33:30]json parsed OK: [15:33:30]protocol is kg_v1.0 [15:33:30]action value=close_receipt [15:33:30]process_action close_receipt [15:33:30]cmd_close_receipt [15:33:30]MH_GetDate [15:33:30]Write to MH i2c: F0 00 00 89 2A A2 [15:33:30]Write i2c OK [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: F0 [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: F0 09 00 [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: F0 09 00 89 2A 00 CB 0B 1D 67 68 46 19 67 33 [15:33:30]GetLastDocTimeStamp 1729956558 [15:33:30]current date 1729956811 [15:33:30]FM_GetShiftState [15:33:30]SAM_PROTO_GetShiftState [15:33:30]wFMCommunicate request_size=4 [15:33:30]MH_SAM_APDU [15:33:30]CAPDU: 80 13 01 00 [15:33:30]Write to MH i2c: E2 08 00 8A 2A 80 13 01 00 00 00 00 00 31 [15:33:30]Write i2c OK [15:33:30]MH_I2C_Read... [15:33:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:30]Read from MH i2c: E2 [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: E2 0E 00 [15:33:30]MH_I2C_Read... [15:33:30]Read from MH i2c: E2 0E 00 8A 2A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 40 [15:33:30]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:33:30]wFMCommunicate OK [15:33:30]SAM_PROTO_GetShiftState done [15:33:30]FM_GetShiftState done [15:33:30]opened in 1729900879 [15:33:30]opened+sec_in_day 1729987279 [15:33:30]quantity*price = 50063 [15:33:30]sum+1 = 50064 [15:33:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 330 26.10.2024 15:33 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201568 ФПД: 224517844702738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T153331&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201568&fm=224517844702738&tin=02508201610067®Number=0000000000091777&sum=50000 [15:33:31]StoreToDocumentArchive [15:33:31]shift 543 fd 201568 [15:33:31]save to /storage/0543/doc_00201568 [15:33:31]save last doc name /storage/0543/doc_00201568 to /storage/kkm_last_doc_name [15:33:31]save OK [15:33:31]Clear old archive folders... [15:33:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:33:31]tlvbuf is 01F08860 [15:33:31]SAM_PROTO_ClearQueue [15:33:31]wFMCommunicate request_size=4 [15:33:31]MH_SAM_APDU [15:33:31]CAPDU: 80 09 00 00 [15:33:31]Write to MH i2c: E2 08 00 97 2A 80 09 00 00 00 00 00 00 33 [15:33:31]Write i2c OK [15:33:31]MH_I2C_Read... [15:33:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:31]Read from MH i2c: E2 [15:33:31]MH_I2C_Read... [15:33:31]Read from MH i2c: E2 03 00 [15:33:31]MH_I2C_Read... [15:33:31]Read from MH i2c: E2 03 00 97 2A 00 90 00 35 [15:33:31]RAPDU: 90 00 [15:33:31]wFMCommunicate OK [15:33:31]SAM_PROTO_ClearQueue done [15:33:31]KKMCreateOFDPacket [15:33:31]OFDProtocolAddRootSTLVToBuf [15:33:31]FM_MakeSignedData [15:33:31]FM_MakeSignedData [15:33:31]SAM_PROTO_SignData [15:33:31]wFMCommunicate request_size=4 [15:33:31]MH_SAM_APDU [15:33:31]CAPDU: 80 0D 01 02 [15:33:31]Write to MH i2c: E2 08 00 98 2A 80 0D 01 02 00 00 00 00 3B [15:33:31]Write i2c OK [15:33:31]MH_I2C_Read... [15:33:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:31]Read from MH i2c: E2 [15:33:31]MH_I2C_Read... [15:33:31]Read from MH i2c: E2 03 00 [15:33:31]MH_I2C_Read... [15:33:31]Read from MH i2c: E2 03 00 98 2A 00 90 00 36 [15:33:31]RAPDU: 90 00 [15:33:31]wFMCommunicate OK [15:33:31]wFMCommunicate request_size=255 [15:33:31]MH_SAM_APDU [15:33:31]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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 4A 01 00 00 F4 03 04 00 CB 0B 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 60 13 03 00 35 04 06 00 CC 32 A2 61 [15:33:31]Write to MH i2c: E2 02 01 99 2A 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 4A 01 00 00 F4 03 04 00 CB 0B 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 60 13 03 00 35 04 06 00 CC 32 A2 61 00 00 8A [15:33:31]Write i2c OK [15:33:31]MH_I2C_Read... [15:33:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:31]Read from MH i2c: E2 [15:33:31]MH_I2C_Read... [15:33:31]Read from MH i2c: E2 03 00 [15:33:31]MH_I2C_Read... [15:33:31]Read from MH i2c: E2 03 00 99 2A 00 90 00 37 [15:33:31]RAPDU: 90 00 [15:33:31]wFMCommunicate OK [15:33:31]wFMCommunicate request_size=7 [15:33:31]MH_SAM_APDU [15:33:31]CAPDU: 80 0D 02 02 02 16 12 [15:33:31]Write to MH i2c: E2 0A 00 9A 2A 80 0D 02 02 02 00 16 12 00 00 6A [15:33:31]Write i2c OK [15:33:31]MH_I2C_Read... [15:33:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:31]Read from MH i2c: E2 [15:33:31]MH_I2C_Read... [15:33:31]Read from MH i2c: E2 03 00 [15:33:31]MH_I2C_Read... [15:33:31]Read from MH i2c: E2 03 00 9A 2A 00 90 00 38 [15:33:31]RAPDU: 90 00 [15:33:31]wFMCommunicate OK [15:33:31]wFMCommunicate request_size=4 [15:33:31]MH_SAM_APDU [15:33:31]CAPDU: 80 0D 03 02 [15:33:31]Write to MH i2c: E2 08 00 9B 2A 80 0D 03 02 00 00 00 00 40 [15:33:31]Write i2c OK [15:33:31]MH_I2C_Read... [15:33:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:31]Read from MH i2c: E2 [15:33:31]MH_I2C_Read... [15:33:31]Read from MH i2c: E2 0B 00 [15:33:31]MH_I2C_Read... [15:33:31]Read from MH i2c: E2 0B 00 9B 2A 00 9E 9D 24 FC 8D 99 F5 3D 90 00 F4 [15:33:31]RAPDU: 9E 9D 24 FC 8D 99 F5 3D 90 00 [15:33:31]wFMCommunicate OK [15:33:31]SAM_PROTO_SignData done [15:33:31]FM_MakeSignedData done [15:33:31]CreateOFDProtocolMessage [15:33:31]wFMCommunicate request_size=4 [15:33:31]MH_SAM_APDU [15:33:31]CAPDU: 80 11 00 00 [15:33:31]Write to MH i2c: E2 08 00 9C 2A 80 11 00 00 00 00 00 00 40 [15:33:31]Write i2c OK [15:33:31]MH_I2C_Read... [15:33:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:31]Read from MH i2c: E2 [15:33:31]MH_I2C_Read... [15:33:31]Read from MH i2c: E2 17 00 [15:33:31]MH_I2C_Read... [15:33:31]Read from MH i2c: E2 17 00 9C 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 95 [15:33:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:33:31]wFMCommunicate OK [15:33:31]CreateOFDProtocolMessage done [15:33:31]OFDSenderStorePacket 201568 [15:33:31]StoreOFDPacket docnum=201568 [15:33:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 66 2E 04 01 E9 BB 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 4A 01 00 00 F4 03 04 00 CB 0B 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 60 13 03 00 35 04 06 00 CC 32 A2 61 16 12 9E 9D 24 FC 8D 99 F5 3D [15:33:31]CheckFolder [15:33:31]dirname=/storage/ofd_packets [15:33:31]CheckFolder done [15:33:31]ProducePacketName [15:33:31]name=ofd_packets/00201568 [15:33:31]NVStorageSaveData ofd_packets/00201568 [15:33:31]File name is /storage/ofd_packets/00201568 [15:33:31]Write 298 bytes [15:33:31]NVStorageSaveData done [15:33:31]OFDSenderStorePacket done [15:33:31]KKMCreateOFDPacket done [15:33:31]NVStorageSaveData kkm_last_timestamp [15:33:31]File name is /storage/kkm_last_timestamp [15:33:31]Write 4 bytes [15:33:31]NVStorageSaveData done [15:33:31]ExternCall_PrintAddStr [15:33:31]wPrintStart [15:33:31]Write to MH i2c: 01 00 00 9D 2A C7 [15:33:31]Write i2c OK [15:33:31]MH_I2C_Read... [15:33:31]Read from MH i2c: 01 [15:33:31]MH_I2C_Read... [15:33:31]Read from MH i2c: 01 07 00 [15:33:31]MH_I2C_Read... [15:33:31]Read from MH i2c: 01 07 00 9D 2A 00 00 00 00 00 FF 0F DC [15:33:31]RasterBufferAndPrint [15:33:31]line Счет N : (1)449323 [15:33:31]line ИНН: 02508201610067 [15:33:31]line Контрольно-Кассовый Чек [15:33:31]line ПРОДАЖА [15:33:31]line ТРК (МРК, ГНК) : 33 [15:33:31]line Товар: 2710194210 [15:33:31]line ДТ-К-2 [15:33:31]line 6.570 * 76.20 [15:33:31]line = 500.63 [15:33:31]line НДС 12% НСП 1% [15:33:31]line > о реализуемом товаре [15:33:31]line ОКРУГЛЕНИЕ: -0.63 [15:33:31]line ИТОГО: 500.00 [15:33:31]line Внесено: 500.00 [15:33:31]line СДАЧА: 0.00 [15:33:31]line НСП 1% : 4.43 [15:33:31]line НДС 12% : 53.16 [15:33:31]line Наличными: 500.00 [15:33:31]line Безнал.: 0.00 [15:33:31]line Место: АЗС № 171 "Партнер Нефть" [15:33:31]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:33:31]line СНО: Общий режим [15:33:31]line Чек 330 26.10.2024 15:33 [15:33:31]line Смена: 543 ФФД: 1.0 [15:33:31]line ЗНМ: 0300000109 [15:33:31]line РНМ: 0000000000091777 [15:33:31]line Версия ККМ: 001 [15:33:31]line ФМ: 0000000000871756 [15:33:31]line ФД: 201568 [15:33:31]line ФПД: 224517844702738 [15:33:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T153331&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201568&fm=224517844702738&tin=02508201610067®Number=0000000000091777&sum=50000 [15:33:32]OFD Sender: Processing packet 201568 [packets to send 112, broken 111] [15:33:32]ProducePacketName [15:33:32]name=ofd_packets/00201568 [15:33:32]OFD Sender: To server: pG, [15:33:32]CommunicateWithHost lk.salyk.kg:30040 [15:33:32]ConnectInit lk.salyk.kg [15:33:32]written 0, free lines is 4095 [15:33:32]Connected sock=10 [15:33:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 66 2E 04 01 E9 BB 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 4A 01 00 00 F4 03 04 00 CB 0B 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 60 13 03 00 35 04 06 00 CC 32 A2 61 16 12 9E 9D 24 FC 8D 99 F5 3D [15:33:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F9 6A 47 00 E7 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 60 13 03 00 F4 03 04 00 74 B7 1C 67 B6 04 01 00 00 D5 E4 A9 F3 BC 4C 13 1D [15:33:32]CommunicateWithHost err = 0 [15:33:32]CheckOFDResponse [15:33:32]1017 (14) - 77093643461234 [15:33:32]1041 (16) - 0000000000871756 [15:33:32]1040 (4) - 201568 [15:33:32]1012 (4) - 26.10.2024 09:33 [15:33:32]1206 (1) - 0 [15:33:32]OFD Sender: Remove packet 201568 [15:33:32]ProducePacketName [15:33:32]name=ofd_packets/00201568 [15:33:32]NVStorageDeleteData [15:33:32]Write to MH i2c: 01 00 00 C8 2A F2 [15:33:32]Write i2c OK [15:33:32]MH_I2C_Read... [15:33:32]Read from MH i2c: 01 [15:33:32]MH_I2C_Read... [15:33:32]Read from MH i2c: 01 07 00 [15:33:32]MH_I2C_Read... [15:33:32]Read from MH i2c: 01 07 00 C8 2A 00 00 00 00 00 8C 0C 91 [15:33:32]RasterBufferAndPrint [15:33:32]line [15:33:32]line [15:33:32]line [15:33:32]line [15:33:32]line [15:33:32]written 0, free lines is 3217 [15:33:32]MH_Cut [15:33:32]Write to MH i2c: D1 01 00 CF 2A 01 CB [15:33:32]Write i2c OK [15:33:32]MH_I2C_Read... [15:33:32]Read from MH i2c: D1 [15:33:32]MH_I2C_Read... [15:33:32]Read from MH i2c: D1 01 00 [15:33:32]MH_I2C_Read... [15:33:32]Read from MH i2c: D1 01 00 CF 2A 00 CA [15:33:32]Write to MH i2c: 01 00 00 D0 2A FA [15:33:32]Write i2c OK [15:33:32]MH_I2C_Read... [15:33:33]OFD Sender: No OFD packet to send [15:33:33]*** Cut start [15:33:33]*** Purtial cut [15:33:33]*** Stage 1: CUTSNS_PIN = 1 [15:33:33]Read from MH i2c: 01 [15:33:33]MH_I2C_Read... [15:33:33]*** Stop cut motor [15:33:33]*** Cut end [15:33:33]Read from MH i2c: 01 07 00 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: 01 07 00 D0 2A 00 00 00 00 00 FF 0F 0F [15:33:33]process_action close_receipt done [15:33:33]requested_data is exist [15:33:33]produce_requested_data [15:33:33]requested_item fm.sn is exist - process it [15:33:33]wFMCommunicate request_size=4 [15:33:33]MH_SAM_APDU [15:33:33]CAPDU: 80 11 00 00 [15:33:33]Write to MH i2c: E2 08 00 D1 2A 80 11 00 00 00 00 00 00 75 [15:33:33]Write i2c OK [15:33:33]MH_I2C_Read... [15:33:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:33]Read from MH i2c: E2 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 17 00 [15:33:33]MH_I2C_Read... [15:33:33]Read from MH i2c: E2 17 00 D1 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CA [15:33:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:33:33]wFMCommunicate OK [15:33:33]requested_item fd.num is exist - process it [15:33:33]SAM_PROTO_GetFieldsCounters [15:33:33]wFMCommunicate request_size=4 [15:33:33]MH_SAM_APDU [15:33:33]CAPDU: 80 13 00 00 [15:33:33]Write to MH i2c: E2 08 00 D2 2A 80 13 00 00 00 00 00 00 78 [15:33:33]Write i2c OK [15:33:33]MH_I2C_Read... [15:33:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:34]Read from MH i2c: E2 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: E2 62 00 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: E2 62 00 D2 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 60 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 19 [15:33:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 60 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:33:34]wFMCommunicate OK [15:33:34]SAM_PROTO_GetFieldsCounters done [15:33:34]requested_item shift.num is exist - process it [15:33:34]requested_item shift.opened is exist - process it [15:33:34]req_shift_opened [15:33:34]FM_GetShiftState [15:33:34]SAM_PROTO_GetShiftState [15:33:34]wFMCommunicate request_size=4 [15:33:34]MH_SAM_APDU [15:33:34]CAPDU: 80 13 01 00 [15:33:34]Write to MH i2c: E2 08 00 D3 2A 80 13 01 00 00 00 00 00 7A [15:33:34]Write i2c OK [15:33:34]MH_I2C_Read... [15:33:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:34]Read from MH i2c: E2 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: E2 0E 00 [15:33:34]MH_I2C_Read... [15:33:34]Read from MH i2c: E2 0E 00 D3 2A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 89 [15:33:34]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:33:34]wFMCommunicate OK [15:33:34]SAM_PROTO_GetShiftState done [15:33:34]FM_GetShiftState done [15:33:34]req_shift_opened done [15:33:34]requested_item shift.open_date is exist - process it [15:33:34]req_shift_open_date [15:33:34]req_shift_open_date done [15:33:34]produce_requested_data done [15:33:34]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201568,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [15:33:34]process_action_free close_receipt [15:33:34]json_value_free [15:33:34]json_value_free done [15:33:34]process_json_proto returns [15:33:34]Send response to host [15:33:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201568,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [15:33:34]free response buf [15:33:34]execute_script done [15:33:34]execute_script returns [15:33:34]free content buf [15:33:34]Sock 9.Close socket [15:33:34]Sock 9.Thread stoped [15:33:38]OFD Sender: No OFD packet to send [15:33:43]OFD Sender: No OFD packet to send [15:33:48]OFD Sender: No OFD packet to send [15:33:53]OFD Sender: No OFD packet to send [15:33:58]OFD Sender: No OFD packet to send [15:34:03]OFD Sender: No OFD packet to send [15:34:08]OFD Sender: No OFD packet to send [15:34:13]OFD Sender: No OFD packet to send [15:34:18]OFD Sender: No OFD packet to send [15:34:23]OFD Sender: No OFD packet to send [15:34:28]OFD Sender: No OFD packet to send [15:34:33]OFD Sender: No OFD packet to send [15:34:38]OFD Sender: No OFD packet to send [15:34:39]accept exits with 8 [15:34:39]New connection [15:34:39]New thread 3066834276 created [15:34:39]Thread 3066690916 joined [15:34:39]Waiting for new connection... [15:34:39] Sock 8.Parse request [15:34:39]Sock 8.Check first char [15:34:39]Sock 8.First char is OK [15:34:39]request: POST /json_proto HTTP/1.0 [15:34:39]Method: POST [15:34:39]URL: /json_proto [15:34:39]Method is POST - this is cgi request [15:34:39]url: /json_proto [15:34:39]query_string will be loaded in cgi processing [15:34:39]execute_cgi json_proto POST (null) [15:34:39]execute_cgi path=json_proto method=POST [15:34:39]POST find Content-Length [15:34:39]Host: 172.17.63.195:8080 [15:34:39]Content-Length: 677 [15:34:39]Content-Type: application/json [15:34:39] [15:34:39]POST finish read [15:34:39]Found Content-Length = 677 [15:34:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [15:34:39]execute_script... [15:34:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [15:34:39]POST & json_proto [15:34:39]process_json_proto [15:34:39]json parsed OK: [15:34:39]protocol is kg_v1.0 [15:34:39]action value=close_receipt [15:34:39]process_action close_receipt [15:34:39]cmd_close_receipt [15:34:39]MH_GetDate [15:34:39]Write to MH i2c: F0 00 00 D4 2A ED [15:34:39]Write i2c OK [15:34:39]MH_I2C_Read... [15:34:39]Read from MH i2c: F0 [15:34:39]MH_I2C_Read... [15:34:39]Read from MH i2c: F0 09 00 [15:34:39]MH_I2C_Read... [15:34:39]Read from MH i2c: F0 09 00 D4 2A 00 10 0C 1D 67 68 46 19 67 C4 [15:34:39]GetLastDocTimeStamp 1729956811 [15:34:39]current date 1729956880 [15:34:39]FM_GetShiftState [15:34:39]SAM_PROTO_GetShiftState [15:34:39]wFMCommunicate request_size=4 [15:34:39]MH_SAM_APDU [15:34:39]CAPDU: 80 13 01 00 [15:34:39]Write to MH i2c: E2 08 00 D5 2A 80 13 01 00 00 00 00 00 7C [15:34:39]Write i2c OK [15:34:39]MH_I2C_Read... [15:34:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:39]Read from MH i2c: E2 [15:34:39]MH_I2C_Read... [15:34:39]Read from MH i2c: E2 0E 00 [15:34:39]MH_I2C_Read... [15:34:39]Read from MH i2c: E2 0E 00 D5 2A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 8B [15:34:39]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:34:39]wFMCommunicate OK [15:34:39]SAM_PROTO_GetShiftState done [15:34:39]FM_GetShiftState done [15:34:39]opened in 1729900879 [15:34:39]opened+sec_in_day 1729987279 [15:34:39]quantity*price = 50041 [15:34:39]sum+1 = 50042 [15:34:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 331 26.10.2024 15:34 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201569 ФПД: 201582239448377 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T153441&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201569&fm=201582239448377&tin=02508201610067®Number=0000000000091777&sum=50000 [15:34:40]StoreToDocumentArchive [15:34:40]shift 543 fd 201569 [15:34:40]save to /storage/0543/doc_00201569 [15:34:40]save last doc name /storage/0543/doc_00201569 to /storage/kkm_last_doc_name [15:34:40]save OK [15:34:40]Clear old archive folders... [15:34:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:34:40]tlvbuf is 01FD5380 [15:34:40]SAM_PROTO_ClearQueue [15:34:40]wFMCommunicate request_size=4 [15:34:40]MH_SAM_APDU [15:34:40]CAPDU: 80 09 00 00 [15:34:40]Write to MH i2c: E2 08 00 E2 2A 80 09 00 00 00 00 00 00 7E [15:34:40]Write i2c OK [15:34:40]MH_I2C_Read... [15:34:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:40]Read from MH i2c: E2 [15:34:40]MH_I2C_Read... [15:34:40]Read from MH i2c: E2 03 00 [15:34:40]MH_I2C_Read... [15:34:40]Read from MH i2c: E2 03 00 E2 2A 00 90 00 80 [15:34:40]RAPDU: 90 00 [15:34:40]wFMCommunicate OK [15:34:40]SAM_PROTO_ClearQueue done [15:34:40]KKMCreateOFDPacket [15:34:40]OFDProtocolAddRootSTLVToBuf [15:34:40]FM_MakeSignedData [15:34:40]FM_MakeSignedData [15:34:40]SAM_PROTO_SignData [15:34:40]wFMCommunicate request_size=4 [15:34:40]MH_SAM_APDU [15:34:40]CAPDU: 80 0D 01 02 [15:34:40]Write to MH i2c: E2 08 00 E3 2A 80 0D 01 02 00 00 00 00 86 [15:34:40]Write i2c OK [15:34:40]MH_I2C_Read... [15:34:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:40]Read from MH i2c: E2 [15:34:40]MH_I2C_Read... [15:34:40]Read from MH i2c: E2 03 00 [15:34:40]MH_I2C_Read... [15:34:40]Read from MH i2c: E2 03 00 E3 2A 00 90 00 81 [15:34:40]RAPDU: 90 00 [15:34:40]wFMCommunicate OK [15:34:40]wFMCommunicate request_size=255 [15:34:40]MH_SAM_APDU [15:34: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 32 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 4B 01 00 00 F4 03 04 00 11 0C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 61 13 03 00 35 04 06 00 B7 [15:34:40]Write to MH i2c: E2 02 01 E4 2A 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 32 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 4B 01 00 00 F4 03 04 00 11 0C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 61 13 03 00 35 04 06 00 B7 00 00 56 [15:34:40]Write i2c OK [15:34:40]MH_I2C_Read... [15:34:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:41]Read from MH i2c: E2 [15:34:41]MH_I2C_Read... [15:34:41]Read from MH i2c: E2 03 00 [15:34:41]MH_I2C_Read... [15:34:41]Read from MH i2c: E2 03 00 E4 2A 00 90 00 82 [15:34:41]RAPDU: 90 00 [15:34:41]wFMCommunicate OK [15:34:41]wFMCommunicate request_size=10 [15:34:41]MH_SAM_APDU [15:34:41]CAPDU: 80 0D 02 02 05 56 85 C6 7D 39 [15:34:41]Write to MH i2c: E2 0D 00 E5 2A 80 0D 02 02 05 00 56 85 C6 7D 39 00 00 EA [15:34:41]Write i2c OK [15:34:41]MH_I2C_Read... [15:34:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:41]Read from MH i2c: E2 [15:34:41]MH_I2C_Read... [15:34:41]Read from MH i2c: E2 03 00 [15:34:41]MH_I2C_Read... [15:34:41]Read from MH i2c: E2 03 00 E5 2A 00 90 00 83 [15:34:41]RAPDU: 90 00 [15:34:41]wFMCommunicate OK [15:34:41]wFMCommunicate request_size=4 [15:34:41]MH_SAM_APDU [15:34:41]CAPDU: 80 0D 03 02 [15:34:41]Write to MH i2c: E2 08 00 E6 2A 80 0D 03 02 00 00 00 00 8B [15:34:41]Write i2c OK [15:34:41]MH_I2C_Read... [15:34:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:41]Read from MH i2c: E2 [15:34:41]MH_I2C_Read... [15:34:41]Read from MH i2c: E2 0B 00 [15:34:41]MH_I2C_Read... [15:34:41]Read from MH i2c: E2 0B 00 E6 2A 00 04 3D F1 9C 6B E6 A3 86 90 00 D4 [15:34:41]RAPDU: 04 3D F1 9C 6B E6 A3 86 90 00 [15:34:41]wFMCommunicate OK [15:34:41]SAM_PROTO_SignData done [15:34:41]FM_MakeSignedData done [15:34:41]CreateOFDProtocolMessage [15:34:41]wFMCommunicate request_size=4 [15:34:41]MH_SAM_APDU [15:34:41]CAPDU: 80 11 00 00 [15:34:41]Write to MH i2c: E2 08 00 E7 2A 80 11 00 00 00 00 00 00 8B [15:34:41]Write i2c OK [15:34:41]MH_I2C_Read... [15:34:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:41]Read from MH i2c: E2 [15:34:41]MH_I2C_Read... [15:34:41]Read from MH i2c: E2 17 00 [15:34:41]MH_I2C_Read... [15:34:41]Read from MH i2c: E2 17 00 E7 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E0 [15:34:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:34:41]wFMCommunicate OK [15:34:41]CreateOFDProtocolMessage done [15:34:41]OFDSenderStorePacket 201569 [15:34:41]StoreOFDPacket docnum=201569 [15:34:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 92 AB 07 01 1D 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4B 01 00 00 F4 03 04 00 11 0C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 61 13 03 00 35 04 06 00 B7 56 85 C6 7D 39 04 3D F1 9C 6B E6 A3 86 [15:34:41]CheckFolder [15:34:41]dirname=/storage/ofd_packets [15:34:41]CheckFolder done [15:34:41]ProducePacketName [15:34:41]name=ofd_packets/00201569 [15:34:41]NVStorageSaveData ofd_packets/00201569 [15:34:41]File name is /storage/ofd_packets/00201569 [15:34:41]Write 301 bytes [15:34:41]NVStorageSaveData done [15:34:41]OFDSenderStorePacket done [15:34:41]KKMCreateOFDPacket done [15:34:41]NVStorageSaveData kkm_last_timestamp [15:34:41]File name is /storage/kkm_last_timestamp [15:34:41]Write 4 bytes [15:34:41]NVStorageSaveData done [15:34:41]ExternCall_PrintAddStr [15:34:41]wPrintStart [15:34:41]Write to MH i2c: 01 00 00 E8 2A 12 [15:34:41]Write i2c OK [15:34:41]MH_I2C_Read... [15:34:41]Read from MH i2c: 01 [15:34:41]MH_I2C_Read... [15:34:41]Read from MH i2c: 01 07 00 [15:34:41]MH_I2C_Read... [15:34:41]Read from MH i2c: 01 07 00 E8 2A 00 00 00 00 00 FF 0F 27 [15:34:41]RasterBufferAndPrint [15:34:41]line Счет N : (1)449324 [15:34:41]line ИНН: 02508201610067 [15:34:41]line Контрольно-Кассовый Чек [15:34:41]line ПРОДАЖА [15:34:41]line ТРК (МРК, ГНК) : 52 [15:34:41]line Товар: 2710124130 [15:34:41]line Аи-92-К-2 [15:34:41]line 7.480 * 66.90 [15:34:41]line = 500.41 [15:34:41]line НДС 12% НСП 1% [15:34:41]line > о реализуемом товаре [15:34:41]line ОКРУГЛЕНИЕ: -0.41 [15:34:41]line ИТОГО: 500.00 [15:34:41]line Внесено: 500.00 [15:34:41]line СДАЧА: 0.00 [15:34:41]line НСП 1% : 4.43 [15:34:41]line НДС 12% : 53.14 [15:34:41]line Наличными: 500.00 [15:34:41]line Безнал.: 0.00 [15:34:41]line Место: АЗС № 171 "Партнер Нефть" [15:34:41]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:34:41]line СНО: Общий режим [15:34:41]line Чек 331 26.10.2024 15:34 [15:34:41]line Смена: 543 ФФД: 1.0 [15:34:41]line ЗНМ: 0300000109 [15:34:41]line РНМ: 0000000000091777 [15:34:41]line Версия ККМ: 001 [15:34:41]line ФМ: 0000000000871756 [15:34:41]line ФД: 201569 [15:34:41]line ФПД: 201582239448377 [15:34:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T153441&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201569&fm=201582239448377&tin=02508201610067®Number=0000000000091777&sum=50000 [15:34:41]OFD Sender: Processing packet 201569 [packets to send 112, broken 111] [15:34:41]ProducePacketName [15:34:41]name=ofd_packets/00201569 [15:34:41]OFD Sender: To server: pG, [15:34:41]CommunicateWithHost lk.salyk.kg:30040 [15:34:41]ConnectInit lk.salyk.kg [15:34:41]written 0, free lines is 4095 [15:34:41]Connected sock=10 [15:34:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 92 AB 07 01 1D 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 4B 01 00 00 F4 03 04 00 11 0C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 61 13 03 00 35 04 06 00 B7 56 85 C6 7D 39 04 3D F1 9C 6B E6 A3 86 [15:34:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D4 36 47 00 30 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 61 13 03 00 F4 03 04 00 B9 B7 1C 67 B6 04 01 00 00 45 5A BB 54 EA B8 45 B6 [15:34:41]CommunicateWithHost err = 0 [15:34:41]CheckOFDResponse [15:34:41]1017 (14) - 77093643461234 [15:34:41]1041 (16) - 0000000000871756 [15:34:41]1040 (4) - 201569 [15:34:41]1012 (4) - 26.10.2024 09:34 [15:34:41]1206 (1) - 0 [15:34:41]OFD Sender: Remove packet 201569 [15:34:41]ProducePacketName [15:34:41]name=ofd_packets/00201569 [15:34:41]NVStorageDeleteData [15:34:42]Write to MH i2c: 01 00 00 13 2B 3E [15:34:42]Write i2c OK [15:34:42]MH_I2C_Read... [15:34:42]Read from MH i2c: 01 [15:34:42]MH_I2C_Read... [15:34:42]Read from MH i2c: 01 07 00 [15:34:42]MH_I2C_Read... [15:34:42]Read from MH i2c: 01 07 00 13 2B 00 00 00 00 00 91 0C E2 [15:34:42]RasterBufferAndPrint [15:34:42]line [15:34:42]line [15:34:42]line [15:34:42]line [15:34:42]line [15:34:42]written 0, free lines is 3222 [15:34:42]MH_Cut [15:34:42]Write to MH i2c: D1 01 00 1A 2B 01 17 [15:34:42]Write i2c OK [15:34:42]MH_I2C_Read... [15:34:42]Read from MH i2c: D1 [15:34:42]MH_I2C_Read... [15:34:42]Read from MH i2c: D1 01 00 [15:34:42]MH_I2C_Read... [15:34:42]Read from MH i2c: D1 01 00 1A 2B 00 16 [15:34:42]Write to MH i2c: 01 00 00 1B 2B 46 [15:34:42]Write i2c OK [15:34:42]MH_I2C_Read... [15:34:42]OFD Sender: No OFD packet to send [15:34:42]*** Cut start [15:34:42]*** Purtial cut [15:34:42]*** Stage 1: CUTSNS_PIN = 1 [15:34:43]Read from MH i2c: 01 [15:34:43]MH_I2C_Read... [15:34:43]*** Stop cut motor [15:34:43]*** Cut end [15:34:43]Read from MH i2c: 01 07 00 [15:34:43]MH_I2C_Read... [15:34:43]Read from MH i2c: 01 07 00 1B 2B 00 00 00 00 00 FF 0F 5B [15:34:43]process_action close_receipt done [15:34:43]requested_data is exist [15:34:43]produce_requested_data [15:34:43]requested_item fm.sn is exist - process it [15:34:43]wFMCommunicate request_size=4 [15:34:43]MH_SAM_APDU [15:34:43]CAPDU: 80 11 00 00 [15:34:43]Write to MH i2c: E2 08 00 1C 2B 80 11 00 00 00 00 00 00 C1 [15:34:43]Write i2c OK [15:34:43]MH_I2C_Read... [15:34:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:43]Read from MH i2c: E2 [15:34:43]MH_I2C_Read... [15:34:43]Read from MH i2c: E2 17 00 [15:34:43]MH_I2C_Read... [15:34:43]Read from MH i2c: E2 17 00 1C 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 16 [15:34:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:34:43]wFMCommunicate OK [15:34:43]requested_item fd.num is exist - process it [15:34:43]SAM_PROTO_GetFieldsCounters [15:34:43]wFMCommunicate request_size=4 [15:34:43]MH_SAM_APDU [15:34:43]CAPDU: 80 13 00 00 [15:34:43]Write to MH i2c: E2 08 00 1D 2B 80 13 00 00 00 00 00 00 C4 [15:34:43]Write i2c OK [15:34:43]MH_I2C_Read... [15:34:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:43]Read from MH i2c: E2 [15:34:43]MH_I2C_Read... [15:34:43]Read from MH i2c: E2 62 00 [15:34:43]MH_I2C_Read... [15:34:43]Read from MH i2c: E2 62 00 1D 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 61 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 69 [15:34:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 61 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:34:43]wFMCommunicate OK [15:34:43]SAM_PROTO_GetFieldsCounters done [15:34:43]requested_item shift.num is exist - process it [15:34:43]requested_item shift.opened is exist - process it [15:34:43]req_shift_opened [15:34:43]FM_GetShiftState [15:34:43]SAM_PROTO_GetShiftState [15:34:43]wFMCommunicate request_size=4 [15:34:43]MH_SAM_APDU [15:34:43]CAPDU: 80 13 01 00 [15:34:43]Write to MH i2c: E2 08 00 1E 2B 80 13 01 00 00 00 00 00 C6 [15:34:43]Write i2c OK [15:34:43]MH_I2C_Read... [15:34:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:43]Read from MH i2c: E2 [15:34:43]MH_I2C_Read... [15:34:43]Read from MH i2c: E2 0E 00 [15:34:43]MH_I2C_Read... [15:34:43]Read from MH i2c: E2 0E 00 1E 2B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D5 [15:34:43]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:34:43]wFMCommunicate OK [15:34:43]SAM_PROTO_GetShiftState done [15:34:43]FM_GetShiftState done [15:34:43]req_shift_opened done [15:34:43]requested_item shift.open_date is exist - process it [15:34:43]req_shift_open_date [15:34:43]req_shift_open_date done [15:34:43]produce_requested_data done [15:34:43]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201569,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [15:34:43]process_action_free close_receipt [15:34:43]json_value_free [15:34:43]json_value_free done [15:34:43]process_json_proto returns [15:34:43]Send response to host [15:34:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201569,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [15:34:43]free response buf [15:34:43]execute_script done [15:34:43]execute_script returns [15:34:43]free content buf [15:34:43]Sock 8.Close socket [15:34:43]Sock 8.Thread stoped [15:34:47]OFD Sender: No OFD packet to send [15:34:52]OFD Sender: No OFD packet to send [15:34:57]OFD Sender: No OFD packet to send [15:35:02]OFD Sender: No OFD packet to send [15:35:07]OFD Sender: No OFD packet to send [15:35:12]OFD Sender: No OFD packet to send [15:35:17]OFD Sender: No OFD packet to send [15:35:22]OFD Sender: No OFD packet to send [15:35:27]OFD Sender: No OFD packet to send [15:35:32]OFD Sender: No OFD packet to send [15:35:37]OFD Sender: No OFD packet to send [15:35:42]OFD Sender: No OFD packet to send [15:35:47]OFD Sender: No OFD packet to send [15:35:52]OFD Sender: No OFD packet to send [15:35:57]OFD Sender: No OFD packet to send [15:36:02]OFD Sender: No OFD packet to send [15:36:07]OFD Sender: No OFD packet to send [15:36:12]OFD Sender: No OFD packet to send [15:36:17]OFD Sender: No OFD packet to send [15:36:22]OFD Sender: No OFD packet to send [15:36:27]OFD Sender: No OFD packet to send [15:36:32]OFD Sender: No OFD packet to send [15:36:37]OFD Sender: No OFD packet to send [15:36:42]OFD Sender: No OFD packet to send [15:36:47]OFD Sender: No OFD packet to send [15:36:52]OFD Sender: No OFD packet to send [15:36:57]OFD Sender: No OFD packet to send [15:37:02]OFD Sender: No OFD packet to send [15:37:07]OFD Sender: No OFD packet to send [15:37:12]OFD Sender: No OFD packet to send [15:37:17]OFD Sender: No OFD packet to send [15:37:22]OFD Sender: No OFD packet to send [15:37:24]accept exits with 9 [15:37:24]New connection [15:37:24]New thread 3066690916 created [15:37:24]Thread 3066834276 joined [15:37:24]Waiting for new connection... [15:37:24] Sock 9.Parse request [15:37:24]Sock 9.Check first char [15:37:24]Sock 9.First char is OK [15:37:24]request: POST /json_proto HTTP/1.0 [15:37:24]Method: POST [15:37:24]URL: /json_proto [15:37:24]Method is POST - this is cgi request [15:37:24]url: /json_proto [15:37:24]query_string will be loaded in cgi processing [15:37:24]execute_cgi json_proto POST (null) [15:37:24]execute_cgi path=json_proto method=POST [15:37:24]POST find Content-Length [15:37:24]Host: 172.17.63.195:8080 [15:37:24]Content-Length: 682 [15:37:24]Content-Type: application/json [15:37:24] [15:37:24]POST finish read [15:37:24]Found Content-Length = 682 [15:37:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [15:37:24]execute_script... [15:37: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)449325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [15:37:24]POST & json_proto [15:37:24]process_json_proto [15:37:24]json parsed OK: [15:37:24]protocol is kg_v1.0 [15:37:24]action value=close_receipt [15:37:24]process_action close_receipt [15:37:24]cmd_close_receipt [15:37:24]MH_GetDate [15:37:24]Write to MH i2c: F0 00 00 1F 2B 39 [15:37:24]Write i2c OK [15:37:24]MH_I2C_Read... [15:37:24]Read from MH i2c: F0 [15:37:24]MH_I2C_Read... [15:37:24]Read from MH i2c: F0 09 00 [15:37:24]MH_I2C_Read... [15:37:24]Read from MH i2c: F0 09 00 1F 2B 00 B5 0C 1D 67 68 46 19 67 B5 [15:37:24]GetLastDocTimeStamp 1729956881 [15:37:24]current date 1729957045 [15:37:24]FM_GetShiftState [15:37:24]SAM_PROTO_GetShiftState [15:37:24]wFMCommunicate request_size=4 [15:37:24]MH_SAM_APDU [15:37:24]CAPDU: 80 13 01 00 [15:37:24]Write to MH i2c: E2 08 00 20 2B 80 13 01 00 00 00 00 00 C8 [15:37:24]Write i2c OK [15:37:24]MH_I2C_Read... [15:37:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:24]Read from MH i2c: E2 [15:37:24]MH_I2C_Read... [15:37:24]Read from MH i2c: E2 0E 00 [15:37:24]MH_I2C_Read... [15:37:24]Read from MH i2c: E2 0E 00 20 2B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D7 [15:37:24]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:37:24]wFMCommunicate OK [15:37:24]SAM_PROTO_GetShiftState done [15:37:24]FM_GetShiftState done [15:37:24]opened in 1729900879 [15:37:24]opened+sec_in_day 1729987279 [15:37:24]quantity*price = 100015 [15:37:24]sum+1 = 100017 [15:37:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 332 26.10.2024 15:37 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201570 ФПД: 26962208420187 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T153725&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201570&fm=26962208420187&tin=02508201610067®Number=0000000000091777&sum=100000 [15:37:25]StoreToDocumentArchive [15:37:25]shift 543 fd 201570 [15:37:25]save to /storage/0543/doc_00201570 [15:37:25]save last doc name /storage/0543/doc_00201570 to /storage/kkm_last_doc_name [15:37:25]save OK [15:37:25]Clear old archive folders... [15:37:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:37:25]tlvbuf is 01F0E940 [15:37:25]SAM_PROTO_ClearQueue [15:37:25]wFMCommunicate request_size=4 [15:37:25]MH_SAM_APDU [15:37:25]CAPDU: 80 09 00 00 [15:37:25]Write to MH i2c: E2 08 00 2D 2B 80 09 00 00 00 00 00 00 CA [15:37:25]Write i2c OK [15:37:25]MH_I2C_Read... [15:37:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:25]Read from MH i2c: E2 [15:37:25]MH_I2C_Read... [15:37:25]Read from MH i2c: E2 03 00 [15:37:25]MH_I2C_Read... [15:37:25]Read from MH i2c: E2 03 00 2D 2B 00 90 00 CC [15:37:25]RAPDU: 90 00 [15:37:25]wFMCommunicate OK [15:37:25]SAM_PROTO_ClearQueue done [15:37:25]KKMCreateOFDPacket [15:37:25]OFDProtocolAddRootSTLVToBuf [15:37:25]FM_MakeSignedData [15:37:25]FM_MakeSignedData [15:37:25]SAM_PROTO_SignData [15:37:25]wFMCommunicate request_size=4 [15:37:25]MH_SAM_APDU [15:37:25]CAPDU: 80 0D 01 02 [15:37:25]Write to MH i2c: E2 08 00 2E 2B 80 0D 01 02 00 00 00 00 D2 [15:37:25]Write i2c OK [15:37:25]MH_I2C_Read... [15:37:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:25]Read from MH i2c: E2 [15:37:25]MH_I2C_Read... [15:37:25]Read from MH i2c: E2 03 00 [15:37:25]MH_I2C_Read... [15:37:25]Read from MH i2c: E2 03 00 2E 2B 00 90 00 CD [15:37:25]RAPDU: 90 00 [15:37:25]wFMCommunicate OK [15:37:25]wFMCommunicate request_size=255 [15:37:25]MH_SAM_APDU [15:37: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 32 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 4C 01 00 00 F4 03 04 00 B5 0C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 62 13 03 00 35 04 06 00 18 [15:37:25]Write to MH i2c: E2 02 01 2F 2B 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 32 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 4C 01 00 00 F4 03 04 00 B5 0C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 62 13 03 00 35 04 06 00 18 00 00 A3 [15:37:25]Write i2c OK [15:37:25]MH_I2C_Read... [15:37:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:25]Read from MH i2c: E2 [15:37:25]MH_I2C_Read... [15:37:25]Read from MH i2c: E2 03 00 [15:37:25]MH_I2C_Read... [15:37:25]Read from MH i2c: E2 03 00 2F 2B 00 90 00 CE [15:37:25]RAPDU: 90 00 [15:37:25]wFMCommunicate OK [15:37:25]wFMCommunicate request_size=10 [15:37:25]MH_SAM_APDU [15:37:25]CAPDU: 80 0D 02 02 05 85 A0 DA F1 5B [15:37:25]Write to MH i2c: E2 0D 00 30 2B 80 0D 02 02 05 00 85 A0 DA F1 5B 00 00 2A [15:37:25]Write i2c OK [15:37:25]MH_I2C_Read... [15:37:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:25]Read from MH i2c: E2 [15:37:25]MH_I2C_Read... [15:37:25]Read from MH i2c: E2 03 00 [15:37:25]MH_I2C_Read... [15:37:25]Read from MH i2c: E2 03 00 30 2B 00 90 00 CF [15:37:25]RAPDU: 90 00 [15:37:25]wFMCommunicate OK [15:37:25]wFMCommunicate request_size=4 [15:37:25]MH_SAM_APDU [15:37:25]CAPDU: 80 0D 03 02 [15:37:25]Write to MH i2c: E2 08 00 31 2B 80 0D 03 02 00 00 00 00 D7 [15:37:25]Write i2c OK [15:37:25]MH_I2C_Read... [15:37:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:25]Read from MH i2c: E2 [15:37:25]MH_I2C_Read... [15:37:25]Read from MH i2c: E2 0B 00 [15:37:25]MH_I2C_Read... [15:37:25]Read from MH i2c: E2 0B 00 31 2B 00 77 9F 28 8D A2 D8 A2 F8 90 00 B7 [15:37:25]RAPDU: 77 9F 28 8D A2 D8 A2 F8 90 00 [15:37:25]wFMCommunicate OK [15:37:25]SAM_PROTO_SignData done [15:37:25]FM_MakeSignedData done [15:37:25]CreateOFDProtocolMessage [15:37:25]wFMCommunicate request_size=4 [15:37:25]MH_SAM_APDU [15:37:25]CAPDU: 80 11 00 00 [15:37:25]Write to MH i2c: E2 08 00 32 2B 80 11 00 00 00 00 00 00 D7 [15:37:25]Write i2c OK [15:37:25]MH_I2C_Read... [15:37:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:25]Read from MH i2c: E2 [15:37:25]MH_I2C_Read... [15:37:25]Read from MH i2c: E2 17 00 [15:37:25]MH_I2C_Read... [15:37:25]Read from MH i2c: E2 17 00 32 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2C [15:37:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:37:25]wFMCommunicate OK [15:37:25]CreateOFDProtocolMessage done [15:37:25]OFDSenderStorePacket 201570 [15:37:25]StoreOFDPacket docnum=201570 [15:37:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B8 28 07 01 20 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 32 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 4C 01 00 00 F4 03 04 00 B5 0C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 62 13 03 00 35 04 06 00 18 85 A0 DA F1 5B 77 9F 28 8D A2 D8 A2 F8 [15:37:25]CheckFolder [15:37:25]dirname=/storage/ofd_packets [15:37:25]CheckFolder done [15:37:25]ProducePacketName [15:37:25]name=ofd_packets/00201570 [15:37:25]NVStorageSaveData ofd_packets/00201570 [15:37:25]File name is /storage/ofd_packets/00201570 [15:37:25]Write 301 bytes [15:37:25]NVStorageSaveData done [15:37:25]OFDSenderStorePacket done [15:37:25]KKMCreateOFDPacket done [15:37:25]NVStorageSaveData kkm_last_timestamp [15:37:25]File name is /storage/kkm_last_timestamp [15:37:25]Write 4 bytes [15:37:25]NVStorageSaveData done [15:37:25]ExternCall_PrintAddStr [15:37:25]wPrintStart [15:37:25]Write to MH i2c: 01 00 00 33 2B 5E [15:37:25]Write i2c OK [15:37:25]MH_I2C_Read... [15:37:25]Read from MH i2c: 01 [15:37:25]MH_I2C_Read... [15:37:25]Read from MH i2c: 01 07 00 [15:37:25]MH_I2C_Read... [15:37:25]Read from MH i2c: 01 07 00 33 2B 00 00 00 00 00 FF 0F 73 [15:37:25]RasterBufferAndPrint [15:37:25]line Счет N : (1)449325 [15:37:25]line ИНН: 02508201610067 [15:37:25]line Контрольно-Кассовый Чек [15:37:25]line ПРОДАЖА [15:37:25]line ТРК (МРК, ГНК) : 52 [15:37:25]line Товар: 2710124130 [15:37:25]line Аи-92-К-2 [15:37:25]line 14.950 * 66.90 [15:37:25]line = 1000.16 [15:37:25]line НДС 12% НСП 1% [15:37:25]line > о реализуемом товаре [15:37:25]line ОКРУГЛЕНИЕ: -0.16 [15:37:25]line ИТОГО: 1000.00 [15:37:25]line Внесено: 1000.00 [15:37:25]line СДАЧА: 0.00 [15:37:25]line НСП 1% : 8.85 [15:37:25]line НДС 12% : 106.21 [15:37:25]line Наличными: 1000.00 [15:37:25]line Безнал.: 0.00 [15:37:25]line Место: АЗС № 171 "Партнер Нефть" [15:37:25]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:37:25]line СНО: Общий режим [15:37:25]line Чек 332 26.10.2024 15:37 [15:37:25]line Смена: 543 ФФД: 1.0 [15:37:25]line ЗНМ: 0300000109 [15:37:25]line РНМ: 0000000000091777 [15:37:25]line Версия ККМ: 001 [15:37:25]line ФМ: 0000000000871756 [15:37:25]line ФД: 201570 [15:37:25]line ФПД: 26962208420187 [15:37:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T153725&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201570&fm=26962208420187&tin=02508201610067®Number=0000000000091777&sum=100000 [15:37:26]OFD Sender: Processing packet 201570 [packets to send 112, broken 111] [15:37:26]ProducePacketName [15:37:26]name=ofd_packets/00201570 [15:37:26]OFD Sender: To server: pG, [15:37:26]CommunicateWithHost lk.salyk.kg:30040 [15:37:26]ConnectInit lk.salyk.kg [15:37:26]written 0, free lines is 4095 [15:37:26]Connected sock=10 [15:37:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B8 28 07 01 20 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 32 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 4C 01 00 00 F4 03 04 00 B5 0C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 62 13 03 00 35 04 06 00 18 85 A0 DA F1 5B 77 9F 28 8D A2 D8 A2 F8 [15:37:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 20 08 47 00 4A 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 62 13 03 00 F4 03 04 00 5E B8 1C 67 B6 04 01 00 00 DF B2 0A 0B 3A DE 85 F2 [15:37:26]CommunicateWithHost err = 0 [15:37:26]CheckOFDResponse [15:37:26]1017 (14) - 77093643461234 [15:37:26]1041 (16) - 0000000000871756 [15:37:26]1040 (4) - 201570 [15:37:26]1012 (4) - 26.10.2024 09:37 [15:37:26]1206 (1) - 0 [15:37:26]OFD Sender: Remove packet 201570 [15:37:26]ProducePacketName [15:37:26]name=ofd_packets/00201570 [15:37:26]NVStorageDeleteData [15:37:26]Write to MH i2c: 01 00 00 5E 2B 89 [15:37:26]Write i2c OK [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: 01 [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: 01 07 00 [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: 01 07 00 5E 2B 00 00 00 00 00 A4 0C 40 [15:37:26]RasterBufferAndPrint [15:37:26]line [15:37:26]line [15:37:26]line [15:37:26]line [15:37:26]line [15:37:26]written 0, free lines is 3242 [15:37:26]MH_Cut [15:37:26]Write to MH i2c: D1 01 00 65 2B 01 62 [15:37:26]Write i2c OK [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: D1 [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: D1 01 00 [15:37:26]MH_I2C_Read... [15:37:26]Read from MH i2c: D1 01 00 65 2B 00 61 [15:37:26]Write to MH i2c: 01 00 00 66 2B 91 [15:37:26]Write i2c OK [15:37:26]MH_I2C_Read... [15:37:27]OFD Sender: No OFD packet to send [15:37:27]*** Cut start [15:37:27]*** Purtial cut [15:37:27]*** Stage 1: CUTSNS_PIN = 1 [15:37:27]Read from MH i2c: 01 [15:37:27]MH_I2C_Read... [15:37:27]*** Stop cut motor [15:37:27]Read from MH i2c: 01 07 00 [15:37:27]MH_I2C_Read... [15:37:27]*** Cut end [15:37:27]Read from MH i2c: 01 07 00 66 2B 00 00 00 00 00 FF 0F A6 [15:37:27]process_action close_receipt done [15:37:27]requested_data is exist [15:37:27]produce_requested_data [15:37:27]requested_item fm.sn is exist - process it [15:37:27]wFMCommunicate request_size=4 [15:37:27]MH_SAM_APDU [15:37:27]CAPDU: 80 11 00 00 [15:37:27]Write to MH i2c: E2 08 00 67 2B 80 11 00 00 00 00 00 00 0C [15:37:27]Write i2c OK [15:37:27]MH_I2C_Read... [15:37:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:27]Read from MH i2c: E2 [15:37:27]MH_I2C_Read... [15:37:27]Read from MH i2c: E2 17 00 [15:37:27]MH_I2C_Read... [15:37:27]Read from MH i2c: E2 17 00 67 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 61 [15:37:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:37:27]wFMCommunicate OK [15:37:27]requested_item fd.num is exist - process it [15:37:27]SAM_PROTO_GetFieldsCounters [15:37:27]wFMCommunicate request_size=4 [15:37:27]MH_SAM_APDU [15:37:27]CAPDU: 80 13 00 00 [15:37:27]Write to MH i2c: E2 08 00 68 2B 80 13 00 00 00 00 00 00 0F [15:37:27]Write i2c OK [15:37:27]MH_I2C_Read... [15:37:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:27]Read from MH i2c: E2 [15:37:27]MH_I2C_Read... [15:37:27]Read from MH i2c: E2 62 00 [15:37:27]MH_I2C_Read... [15:37:27]Read from MH i2c: E2 62 00 68 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 62 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 B8 [15:37:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 62 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:37:27]wFMCommunicate OK [15:37:27]SAM_PROTO_GetFieldsCounters done [15:37:27]requested_item shift.num is exist - process it [15:37:27]requested_item shift.opened is exist - process it [15:37:27]req_shift_opened [15:37:27]FM_GetShiftState [15:37:27]SAM_PROTO_GetShiftState [15:37:27]wFMCommunicate request_size=4 [15:37:27]MH_SAM_APDU [15:37:27]CAPDU: 80 13 01 00 [15:37:27]Write to MH i2c: E2 08 00 69 2B 80 13 01 00 00 00 00 00 11 [15:37:27]Write i2c OK [15:37:27]MH_I2C_Read... [15:37:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:28]Read from MH i2c: E2 [15:37:28]MH_I2C_Read... [15:37:28]Read from MH i2c: E2 0E 00 [15:37:28]MH_I2C_Read... [15:37:28]Read from MH i2c: E2 0E 00 69 2B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 20 [15:37:28]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:37:28]wFMCommunicate OK [15:37:28]SAM_PROTO_GetShiftState done [15:37:28]FM_GetShiftState done [15:37:28]req_shift_opened done [15:37:28]requested_item shift.open_date is exist - process it [15:37:28]req_shift_open_date [15:37:28]req_shift_open_date done [15:37:28]produce_requested_data done [15:37:28]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201570,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [15:37:28]process_action_free close_receipt [15:37:28]json_value_free [15:37:28]json_value_free done [15:37:28]process_json_proto returns [15:37:28]Send response to host [15:37:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201570,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [15:37:28]free response buf [15:37:28]execute_script done [15:37:28]execute_script returns [15:37:28]free content buf [15:37:28]Sock 9.Close socket [15:37:28]Sock 9.Thread stoped [15:37:32]OFD Sender: No OFD packet to send [15:37:37]OFD Sender: No OFD packet to send [15:37:42]OFD Sender: No OFD packet to send [15:37:47]OFD Sender: No OFD packet to send [15:37:52]OFD Sender: No OFD packet to send [15:37:57]OFD Sender: No OFD packet to send [15:38:02]OFD Sender: No OFD packet to send [15:38:07]OFD Sender: No OFD packet to send [15:38:12]OFD Sender: No OFD packet to send [15:38:17]OFD Sender: No OFD packet to send [15:38:22]OFD Sender: No OFD packet to send [15:38:27]OFD Sender: No OFD packet to send [15:38:32]OFD Sender: No OFD packet to send [15:38:37]OFD Sender: No OFD packet to send [15:38:42]OFD Sender: No OFD packet to send [15:38:47]OFD Sender: No OFD packet to send [15:38:52]OFD Sender: No OFD packet to send [15:38:57]OFD Sender: No OFD packet to send [15:39:02]OFD Sender: No OFD packet to send [15:39:07]OFD Sender: No OFD packet to send [15:39:12]OFD Sender: No OFD packet to send [15:39:17]OFD Sender: No OFD packet to send [15:39:22]OFD Sender: No OFD packet to send [15:39:27]OFD Sender: No OFD packet to send [15:39:32]OFD Sender: No OFD packet to send [15:39:37]OFD Sender: No OFD packet to send [15:39:42]OFD Sender: No OFD packet to send [15:39:47]OFD Sender: No OFD packet to send [15:39:52]OFD Sender: No OFD packet to send [15:39:57]OFD Sender: No OFD packet to send [15:40:02]OFD Sender: No OFD packet to send [15:40:07]OFD Sender: No OFD packet to send [15:40:12]OFD Sender: No OFD packet to send [15:40:17]OFD Sender: No OFD packet to send [15:40:22]OFD Sender: No OFD packet to send [15:40:27]OFD Sender: No OFD packet to send [15:40:32]OFD Sender: No OFD packet to send [15:40:37]OFD Sender: No OFD packet to send [15:40:42]OFD Sender: No OFD packet to send [15:40:47]OFD Sender: No OFD packet to send [15:40:52]OFD Sender: No OFD packet to send [15:40:57]OFD Sender: No OFD packet to send [15:41:02]OFD Sender: No OFD packet to send [15:41:07]OFD Sender: No OFD packet to send [15:41:12]OFD Sender: No OFD packet to send [15:41:17]OFD Sender: No OFD packet to send [15:41:22]OFD Sender: No OFD packet to send [15:41:27]OFD Sender: No OFD packet to send [15:41:32]OFD Sender: No OFD packet to send [15:41:37]OFD Sender: No OFD packet to send [15:41:42]OFD Sender: No OFD packet to send [15:41:47]OFD Sender: No OFD packet to send [15:41:52]OFD Sender: No OFD packet to send [15:41:57]OFD Sender: No OFD packet to send [15:42:02]OFD Sender: No OFD packet to send [15:42:07]OFD Sender: No OFD packet to send [15:42:12]OFD Sender: No OFD packet to send [15:42:17]OFD Sender: No OFD packet to send [15:42:22]OFD Sender: No OFD packet to send [15:42:27]OFD Sender: No OFD packet to send [15:42:32]OFD Sender: No OFD packet to send [15:42:37]OFD Sender: No OFD packet to send [15:42:42]OFD Sender: No OFD packet to send [15:42:47]OFD Sender: No OFD packet to send [15:42:52]OFD Sender: No OFD packet to send [15:42:57]OFD Sender: No OFD packet to send [15:43:02]OFD Sender: No OFD packet to send [15:43:07]OFD Sender: No OFD packet to send [15:43:12]OFD Sender: No OFD packet to send [15:43:17]OFD Sender: No OFD packet to send [15:43:22]OFD Sender: No OFD packet to send [15:43:27]OFD Sender: No OFD packet to send [15:43:32]OFD Sender: No OFD packet to send [15:43:34]accept exits with 8 [15:43:34]New connection [15:43:34]New thread 3066834276 created [15:43:34]Thread 3066690916 joined [15:43:34]Waiting for new connection... [15:43:34] Sock 8.Parse request [15:43:34]Sock 8.Check first char [15:43:34]Sock 8.First char is OK [15:43:34]request: POST /json_proto HTTP/1.0 [15:43:34]Method: POST [15:43:34]URL: /json_proto [15:43:34]Method is POST - this is cgi request [15:43:34]url: /json_proto [15:43:34]query_string will be loaded in cgi processing [15:43:34]execute_cgi json_proto POST (null) [15:43:34]execute_cgi path=json_proto method=POST [15:43:34]POST find Content-Length [15:43:34]Host: 172.17.63.195:8080 [15:43:34]Content-Length: 632 [15:43:34]Content-Type: application/json [15:43:34] [15:43:34]POST finish read [15:43:34]Found Content-Length = 632 [15:43:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:34]execute_script... [15:43: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)449326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:34]POST & json_proto [15:43:34]process_json_proto [15:43:34]json parsed OK: [15:43:34]protocol is kg_v1.0 [15:43:34]action value=close_receipt [15:43:34]process_action close_receipt [15:43:34]cmd_close_receipt [15:43:34]MH_GetDate [15:43:34]Write to MH i2c: F0 00 00 6A 2B 84 [15:43:34]Write i2c OK [15:43:34]MH_I2C_Read... [15:43:34]Read from MH i2c: F0 [15:43:34]MH_I2C_Read... [15:43:34]Read from MH i2c: F0 09 00 [15:43:34]MH_I2C_Read... [15:43:34]Read from MH i2c: F0 09 00 6A 2B 00 27 0E 1D 67 68 46 19 67 74 [15:43:34]GetLastDocTimeStamp 1729957045 [15:43:34]current date 1729957415 [15:43:34]FM_GetShiftState [15:43:34]SAM_PROTO_GetShiftState [15:43:34]wFMCommunicate request_size=4 [15:43:34]MH_SAM_APDU [15:43:34]CAPDU: 80 13 01 00 [15:43:34]Write to MH i2c: E2 08 00 6B 2B 80 13 01 00 00 00 00 00 13 [15:43:34]Write i2c OK [15:43:34]MH_I2C_Read... [15:43:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:34]Read from MH i2c: E2 [15:43:34]MH_I2C_Read... [15:43:34]Read from MH i2c: E2 0E 00 [15:43:34]MH_I2C_Read... [15:43:34]Read from MH i2c: E2 0E 00 6B 2B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 22 [15:43:34]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:43:34]wFMCommunicate OK [15:43:34]SAM_PROTO_GetShiftState done [15:43:34]FM_GetShiftState done [15:43:34]opened in 1729900879 [15:43:34]opened+sec_in_day 1729987279 [15:43:34]quantity*price = 50000 [15:43:34]sum+1 = 50001 [15:43:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 333 26.10.2024 15:43 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201571 ФПД: 107263480008281 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T154335&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201571&fm=107263480008281&tin=02508201610067®Number=0000000000091777&sum=50000 [15:43:35]StoreToDocumentArchive [15:43:35]shift 543 fd 201571 [15:43:35]save to /storage/0543/doc_00201571 [15:43:35]save last doc name /storage/0543/doc_00201571 to /storage/kkm_last_doc_name [15:43:35]save OK [15:43:35]Clear old archive folders... [15:43:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:43:35]tlvbuf is 01FD9BE0 [15:43:35]SAM_PROTO_ClearQueue [15:43:35]wFMCommunicate request_size=4 [15:43:35]MH_SAM_APDU [15:43:35]CAPDU: 80 09 00 00 [15:43:35]Write to MH i2c: E2 08 00 78 2B 80 09 00 00 00 00 00 00 15 [15:43:35]Write i2c OK [15:43:35]MH_I2C_Read... [15:43:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:35]Read from MH i2c: E2 [15:43:35]MH_I2C_Read... [15:43:35]Read from MH i2c: E2 03 00 [15:43:35]MH_I2C_Read... [15:43:35]Read from MH i2c: E2 03 00 78 2B 00 90 00 17 [15:43:35]RAPDU: 90 00 [15:43:35]wFMCommunicate OK [15:43:35]SAM_PROTO_ClearQueue done [15:43:35]KKMCreateOFDPacket [15:43:35]OFDProtocolAddRootSTLVToBuf [15:43:35]FM_MakeSignedData [15:43:35]FM_MakeSignedData [15:43:35]SAM_PROTO_SignData [15:43:35]wFMCommunicate request_size=4 [15:43:35]MH_SAM_APDU [15:43:35]CAPDU: 80 0D 01 02 [15:43:35]Write to MH i2c: E2 08 00 79 2B 80 0D 01 02 00 00 00 00 1D [15:43:35]Write i2c OK [15:43:35]MH_I2C_Read... [15:43:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:35]Read from MH i2c: E2 [15:43:35]MH_I2C_Read... [15:43:35]Read from MH i2c: E2 03 00 [15:43:35]MH_I2C_Read... [15:43:35]Read from MH i2c: E2 03 00 79 2B 00 90 00 18 [15:43:35]RAPDU: 90 00 [15:43:35]wFMCommunicate OK [15:43:35]wFMCommunicate request_size=255 [15:43:35]MH_SAM_APDU [15:43: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 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 27 0E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 63 13 03 00 35 04 06 00 [15:43:35]Write to MH i2c: E2 02 01 7A 2B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 27 0E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 63 13 03 00 35 04 06 00 00 00 AF [15:43:35]Write i2c OK [15:43:35]MH_I2C_Read... [15:43:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:35]Read from MH i2c: E2 [15:43:35]MH_I2C_Read... [15:43:35]Read from MH i2c: E2 03 00 [15:43:35]MH_I2C_Read... [15:43:35]Read from MH i2c: E2 03 00 7A 2B 00 90 00 19 [15:43:35]RAPDU: 90 00 [15:43:35]wFMCommunicate OK [15:43:35]wFMCommunicate request_size=11 [15:43:35]MH_SAM_APDU [15:43:35]CAPDU: 80 0D 02 02 06 61 8E 39 9F 8E 59 [15:43:35]Write to MH i2c: E2 0E 00 7B 2B 80 0D 02 02 06 00 61 8E 39 9F 8E 59 00 00 DA [15:43:35]Write i2c OK [15:43:35]MH_I2C_Read... [15:43:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:35]Read from MH i2c: E2 [15:43:35]MH_I2C_Read... [15:43:35]Read from MH i2c: E2 03 00 [15:43:35]MH_I2C_Read... [15:43:35]Read from MH i2c: E2 03 00 7B 2B 00 90 00 1A [15:43:35]RAPDU: 90 00 [15:43:35]wFMCommunicate OK [15:43:35]wFMCommunicate request_size=4 [15:43:35]MH_SAM_APDU [15:43:35]CAPDU: 80 0D 03 02 [15:43:35]Write to MH i2c: E2 08 00 7C 2B 80 0D 03 02 00 00 00 00 22 [15:43:35]Write i2c OK [15:43:35]MH_I2C_Read... [15:43:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:35]Read from MH i2c: E2 [15:43:35]MH_I2C_Read... [15:43:35]Read from MH i2c: E2 0B 00 [15:43:35]MH_I2C_Read... [15:43:35]Read from MH i2c: E2 0B 00 7C 2B 00 C7 33 28 D6 EA EA 70 64 90 00 C3 [15:43:35]RAPDU: C7 33 28 D6 EA EA 70 64 90 00 [15:43:35]wFMCommunicate OK [15:43:35]SAM_PROTO_SignData done [15:43:35]FM_MakeSignedData done [15:43:35]CreateOFDProtocolMessage [15:43:35]wFMCommunicate request_size=4 [15:43:35]MH_SAM_APDU [15:43:35]CAPDU: 80 11 00 00 [15:43:35]Write to MH i2c: E2 08 00 7D 2B 80 11 00 00 00 00 00 00 22 [15:43:35]Write i2c OK [15:43:35]MH_I2C_Read... [15:43:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:36]Read from MH i2c: E2 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: E2 17 00 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: E2 17 00 7D 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 77 [15:43:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:43:36]wFMCommunicate OK [15:43:36]CreateOFDProtocolMessage done [15:43:36]OFDSenderStorePacket 201571 [15:43:36]StoreOFDPacket docnum=201571 [15:43:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 96 01 08 01 E1 7B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 27 0E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 63 13 03 00 35 04 06 00 61 8E 39 9F 8E 59 C7 33 28 D6 EA EA 70 64 [15:43:36]CheckFolder [15:43:36]dirname=/storage/ofd_packets [15:43:36]CheckFolder done [15:43:36]ProducePacketName [15:43:36]name=ofd_packets/00201571 [15:43:36]NVStorageSaveData ofd_packets/00201571 [15:43:36]File name is /storage/ofd_packets/00201571 [15:43:36]Write 302 bytes [15:43:36]NVStorageSaveData done [15:43:36]OFDSenderStorePacket done [15:43:36]KKMCreateOFDPacket done [15:43:36]NVStorageSaveData kkm_last_timestamp [15:43:36]File name is /storage/kkm_last_timestamp [15:43:36]Write 4 bytes [15:43:36]NVStorageSaveData done [15:43:36]ExternCall_PrintAddStr [15:43:36]wPrintStart [15:43:36]Write to MH i2c: 01 00 00 7E 2B A9 [15:43:36]Write i2c OK [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: 01 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: 01 07 00 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: 01 07 00 7E 2B 00 00 00 00 00 FF 0F BE [15:43:36]RasterBufferAndPrint [15:43:36]line Счет N : (1)449326 [15:43:36]line ИНН: 02508201610067 [15:43:36]line Контрольно-Кассовый Чек [15:43:36]line ПРОДАЖА [15:43:36]line ТРК (МРК, ГНК) : 63 [15:43:36]line Товар: 2710124130 [15:43:36]line SUPER 92-К-5 [15:43:36]line 7.310 * 68.40 [15:43:36]line = 500.00 [15:43:36]line НДС 12% НСП 1% [15:43:36]line > о реализуемом товаре [15:43:36]line ИТОГО: 500.00 [15:43:36]line НСП 1% : 4.42 [15:43:36]line НДС 12% : 53.10 [15:43:36]line Наличными: 500.00 [15:43:36]line Безнал.: 0.00 [15:43:36]line Место: АЗС № 171 "Партнер Нефть" [15:43:36]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:43:36]line СНО: Общий режим [15:43:36]line Чек 333 26.10.2024 15:43 [15:43:36]line Смена: 543 ФФД: 1.0 [15:43:36]line ЗНМ: 0300000109 [15:43:36]line РНМ: 0000000000091777 [15:43:36]line Версия ККМ: 001 [15:43:36]line ФМ: 0000000000871756 [15:43:36]line ФД: 201571 [15:43:36]line ФПД: 107263480008281 [15:43:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T154335&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201571&fm=107263480008281&tin=02508201610067®Number=0000000000091777&sum=50000 [15:43:36]OFD Sender: Processing packet 201571 [packets to send 112, broken 111] [15:43:36]ProducePacketName [15:43:36]name=ofd_packets/00201571 [15:43:36]OFD Sender: To server: pG, [15:43:36]CommunicateWithHost lk.salyk.kg:30040 [15:43:36]ConnectInit lk.salyk.kg [15:43:36]written 0, free lines is 4095 [15:43:36]Connected sock=10 [15:43:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 96 01 08 01 E1 7B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 27 0E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 63 13 03 00 35 04 06 00 61 8E 39 9F 8E 59 C7 33 28 D6 EA EA 70 64 [15:43:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 8A 02 47 00 C3 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 63 13 03 00 F4 03 04 00 D0 B9 1C 67 B6 04 01 00 00 E8 B9 09 9F B4 41 24 FD [15:43:36]CommunicateWithHost err = 0 [15:43:36]CheckOFDResponse [15:43:36]1017 (14) - 77093643461234 [15:43:36]1041 (16) - 0000000000871756 [15:43:36]1040 (4) - 201571 [15:43:36]1012 (4) - 26.10.2024 09:43 [15:43:36]1206 (1) - 0 [15:43:36]OFD Sender: Remove packet 201571 [15:43:36]ProducePacketName [15:43:36]name=ofd_packets/00201571 [15:43:36]NVStorageDeleteData [15:43:36]Write to MH i2c: 01 00 00 A6 2B D1 [15:43:36]Write i2c OK [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: 01 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: 01 07 00 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: 01 07 00 A6 2B 00 00 00 00 00 CE 0C B2 [15:43:36]RasterBufferAndPrint [15:43:36]line [15:43:36]line [15:43:36]line [15:43:36]line [15:43:36]line [15:43:36]written 0, free lines is 3282 [15:43:36]MH_Cut [15:43:36]Write to MH i2c: D1 01 00 AD 2B 01 AA [15:43:36]Write i2c OK [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: D1 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: D1 01 00 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: D1 01 00 AD 2B 00 A9 [15:43:36]Write to MH i2c: 01 00 00 AE 2B D9 [15:43:36]Write i2c OK [15:43:36]MH_I2C_Read... [15:43:37]OFD Sender: No OFD packet to send [15:43:37]*** Cut start [15:43:37]*** Purtial cut [15:43:37]*** CUTSNS_PIN = 0 [15:43:37]*** Stage 1: CUTSNS_PIN = 1 [15:43:39]Read from MH i2c: 01 [15:43:39]MH_I2C_Read... [15:43:39]*** Stop cut motor [15:43:39]*** Cut end [15:43:39]Read from MH i2c: 01 07 00 [15:43:39]MH_I2C_Read... [15:43:39]Read from MH i2c: 01 07 00 AE 2B 00 00 00 00 00 FF 0F EE [15:43:39]process_action close_receipt done [15:43:39]requested_data is exist [15:43:39]produce_requested_data [15:43:39]requested_item fm.sn is exist - process it [15:43:39]wFMCommunicate request_size=4 [15:43:39]MH_SAM_APDU [15:43:39]CAPDU: 80 11 00 00 [15:43:39]Write to MH i2c: E2 08 00 AF 2B 80 11 00 00 00 00 00 00 54 [15:43:39]Write i2c OK [15:43:39]MH_I2C_Read... [15:43:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:39]Read from MH i2c: E2 [15:43:39]MH_I2C_Read... [15:43:39]Read from MH i2c: E2 17 00 [15:43:39]MH_I2C_Read... [15:43:39]Read from MH i2c: E2 17 00 AF 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A9 [15:43:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:43:39]wFMCommunicate OK [15:43:39]requested_item fd.num is exist - process it [15:43:39]SAM_PROTO_GetFieldsCounters [15:43:39]wFMCommunicate request_size=4 [15:43:39]MH_SAM_APDU [15:43:39]CAPDU: 80 13 00 00 [15:43:39]Write to MH i2c: E2 08 00 B0 2B 80 13 00 00 00 00 00 00 57 [15:43:39]Write i2c OK [15:43:39]MH_I2C_Read... [15:43:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:39]Read from MH i2c: E2 [15:43:39]MH_I2C_Read... [15:43:39]Read from MH i2c: E2 62 00 [15:43:39]MH_I2C_Read... [15:43:39]Read from MH i2c: E2 62 00 B0 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 63 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 04 [15:43:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 63 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:43:39]wFMCommunicate OK [15:43:39]SAM_PROTO_GetFieldsCounters done [15:43:39]requested_item shift.num is exist - process it [15:43:39]requested_item shift.opened is exist - process it [15:43:39]req_shift_opened [15:43:39]FM_GetShiftState [15:43:39]SAM_PROTO_GetShiftState [15:43:39]wFMCommunicate request_size=4 [15:43:39]MH_SAM_APDU [15:43:39]CAPDU: 80 13 01 00 [15:43:39]Write to MH i2c: E2 08 00 B1 2B 80 13 01 00 00 00 00 00 59 [15:43:39]Write i2c OK [15:43:39]MH_I2C_Read... [15:43:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:39]Read from MH i2c: E2 [15:43:39]MH_I2C_Read... [15:43:39]Read from MH i2c: E2 0E 00 [15:43:39]MH_I2C_Read... [15:43:39]Read from MH i2c: E2 0E 00 B1 2B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 68 [15:43:39]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:43:39]wFMCommunicate OK [15:43:39]SAM_PROTO_GetShiftState done [15:43:39]FM_GetShiftState done [15:43:39]req_shift_opened done [15:43:39]requested_item shift.open_date is exist - process it [15:43:39]req_shift_open_date [15:43:39]req_shift_open_date done [15:43:39]produce_requested_data done [15:43:39]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201571,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [15:43:39]process_action_free close_receipt [15:43:39]json_value_free [15:43:39]json_value_free done [15:43:39]process_json_proto returns [15:43:39]Send response to host [15:43:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201571,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [15:43:39]free response buf [15:43:39]execute_script done [15:43:39]execute_script returns [15:43:39]free content buf [15:43:39]Sock 8.Close socket [15:43:39]Sock 8.Thread stoped [15:43:42]OFD Sender: No OFD packet to send [15:43:47]OFD Sender: No OFD packet to send [15:43:52]OFD Sender: No OFD packet to send [15:43:57]OFD Sender: No OFD packet to send [15:44:02]OFD Sender: No OFD packet to send [15:44:07]OFD Sender: No OFD packet to send [15:44:12]OFD Sender: No OFD packet to send [15:44:17]OFD Sender: No OFD packet to send [15:44:22]OFD Sender: No OFD packet to send [15:44:27]OFD Sender: No OFD packet to send [15:44:32]OFD Sender: No OFD packet to send [15:44:37]OFD Sender: No OFD packet to send [15:44:42]OFD Sender: No OFD packet to send [15:44:47]OFD Sender: No OFD packet to send [15:44:52]OFD Sender: No OFD packet to send [15:44:57]OFD Sender: No OFD packet to send [15:45:02]OFD Sender: No OFD packet to send [15:45:07]OFD Sender: No OFD packet to send [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:22]OFD Sender: No OFD packet to send [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:36]accept exits with 9 [15:45:36]New connection [15:45:36]New thread 3066690916 created [15:45:36]Thread 3066834276 joined [15:45:36]Waiting for new connection... [15:45:36] Sock 9.Parse request [15:45:36]Sock 9.Check first char [15:45:36]Sock 9.First char is OK [15:45:36]request: POST /json_proto HTTP/1.0 [15:45:36]Method: POST [15:45:36]URL: /json_proto [15:45:36]Method is POST - this is cgi request [15:45:36]url: /json_proto [15:45:36]query_string will be loaded in cgi processing [15:45:36]execute_cgi json_proto POST (null) [15:45:36]execute_cgi path=json_proto method=POST [15:45:36]POST find Content-Length [15:45:36]Host: 172.17.63.195:8080 [15:45:36]Content-Length: 679 [15:45:36]Content-Type: application/json [15:45:36] [15:45:36]POST finish read [15:45:36]Found Content-Length = 679 [15:45:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 36.090, "sum" : 2750.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2750.00, "payments": [ { "type": 0, "sum" : 2750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:36]execute_script... [15:45: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)449327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 36.090, "sum" : 2750.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2750.00, "payments": [ { "type": 0, "sum" : 2750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:36]POST & json_proto [15:45:36]process_json_proto [15:45:36]json parsed OK: [15:45:36]protocol is kg_v1.0 [15:45:36]action value=close_receipt [15:45:36]process_action close_receipt [15:45:36]cmd_close_receipt [15:45:36]MH_GetDate [15:45:36]Write to MH i2c: F0 00 00 B2 2B CC [15:45:36]Write i2c OK [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: F0 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: F0 09 00 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: F0 09 00 B2 2B 00 A1 0E 1D 67 68 46 19 67 36 [15:45:36]GetLastDocTimeStamp 1729957415 [15:45:36]current date 1729957537 [15:45:36]FM_GetShiftState [15:45:36]SAM_PROTO_GetShiftState [15:45:36]wFMCommunicate request_size=4 [15:45:36]MH_SAM_APDU [15:45:36]CAPDU: 80 13 01 00 [15:45:36]Write to MH i2c: E2 08 00 B3 2B 80 13 01 00 00 00 00 00 5B [15:45:36]Write i2c OK [15:45:36]MH_I2C_Read... [15:45:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:36]Read from MH i2c: E2 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: E2 0E 00 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: E2 0E 00 B3 2B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 6A [15:45:36]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:45:36]wFMCommunicate OK [15:45:36]SAM_PROTO_GetShiftState done [15:45:36]FM_GetShiftState done [15:45:36]opened in 1729900879 [15:45:36]opened+sec_in_day 1729987279 [15:45:36]quantity*price = 275005 [15:45:36]sum+1 = 275007 [15:45:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 2750.00 Внесено: 3000.00 СДАЧА: 250.00 НСП 1% : 24.34 НДС 12% : 292.04 Наличными: 2750.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 334 26.10.2024 15:45 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201572 ФПД: 216366043887162 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T154537&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201572&fm=216366043887162&tin=02508201610067®Number=0000000000091777&sum=275000 [15:45:37]StoreToDocumentArchive [15:45:37]shift 543 fd 201572 [15:45:37]save to /storage/0543/doc_00201572 [15:45:37]save last doc name /storage/0543/doc_00201572 to /storage/kkm_last_doc_name [15:45:37]save OK [15:45:37]Clear old archive folders... [15:45:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:45:37]tlvbuf is 01F35810 [15:45:37]SAM_PROTO_ClearQueue [15:45:37]wFMCommunicate request_size=4 [15:45:37]MH_SAM_APDU [15:45:37]CAPDU: 80 09 00 00 [15:45:37]Write to MH i2c: E2 08 00 C0 2B 80 09 00 00 00 00 00 00 5D [15:45:37]Write i2c OK [15:45:37]MH_I2C_Read... [15:45:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:37]Read from MH i2c: E2 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: E2 03 00 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: E2 03 00 C0 2B 00 90 00 5F [15:45:37]RAPDU: 90 00 [15:45:37]wFMCommunicate OK [15:45:37]SAM_PROTO_ClearQueue done [15:45:37]KKMCreateOFDPacket [15:45:37]OFDProtocolAddRootSTLVToBuf [15:45:37]FM_MakeSignedData [15:45:37]FM_MakeSignedData [15:45:37]SAM_PROTO_SignData [15:45:37]wFMCommunicate request_size=4 [15:45:37]MH_SAM_APDU [15:45:37]CAPDU: 80 0D 01 02 [15:45:37]Write to MH i2c: E2 08 00 C1 2B 80 0D 01 02 00 00 00 00 65 [15:45:37]Write i2c OK [15:45:37]MH_I2C_Read... [15:45:37]OFD Sender: No OFD packet to send [15:45:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:37]Read from MH i2c: E2 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: E2 03 00 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: E2 03 00 C1 2B 00 90 00 60 [15:45:37]RAPDU: 90 00 [15:45:37]wFMCommunicate OK [15:45:37]wFMCommunicate request_size=255 [15:45:37]MH_SAM_APDU [15:45:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 FA 8C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 3E 32 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 32 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 72 00 00 00 00 07 04 06 00 38 32 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 A1 0E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 64 13 03 00 35 04 06 00 C4 C8 A5 2F [15:45:37]Write to MH i2c: E2 02 01 C2 2B 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 32 FF 03 08 00 03 FA 8C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 3E 32 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 32 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 72 00 00 00 00 07 04 06 00 38 32 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 A1 0E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 64 13 03 00 35 04 06 00 C4 C8 A5 2F 00 00 0C [15:45:37]Write i2c OK [15:45:37]MH_I2C_Read... [15:45:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:37]Read from MH i2c: E2 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: E2 03 00 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: E2 03 00 C2 2B 00 90 00 61 [15:45:37]RAPDU: 90 00 [15:45:37]wFMCommunicate OK [15:45:37]wFMCommunicate request_size=7 [15:45:37]MH_SAM_APDU [15:45:37]CAPDU: 80 0D 02 02 02 F6 3A [15:45:37]Write to MH i2c: E2 0A 00 C3 2B 80 0D 02 02 02 00 F6 3A 00 00 9C [15:45:37]Write i2c OK [15:45:37]MH_I2C_Read... [15:45:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:37]Read from MH i2c: E2 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: E2 03 00 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: E2 03 00 C3 2B 00 90 00 62 [15:45:37]RAPDU: 90 00 [15:45:37]wFMCommunicate OK [15:45:37]wFMCommunicate request_size=4 [15:45:37]MH_SAM_APDU [15:45:37]CAPDU: 80 0D 03 02 [15:45:37]Write to MH i2c: E2 08 00 C4 2B 80 0D 03 02 00 00 00 00 6A [15:45:37]Write i2c OK [15:45:37]MH_I2C_Read... [15:45:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:37]Read from MH i2c: E2 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: E2 0B 00 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: E2 0B 00 C4 2B 00 F8 77 0A FE 4B 43 05 60 90 00 D5 [15:45:37]RAPDU: F8 77 0A FE 4B 43 05 60 90 00 [15:45:37]wFMCommunicate OK [15:45:37]SAM_PROTO_SignData done [15:45:37]FM_MakeSignedData done [15:45:37]CreateOFDProtocolMessage [15:45:37]wFMCommunicate request_size=4 [15:45:37]MH_SAM_APDU [15:45:37]CAPDU: 80 11 00 00 [15:45:37]Write to MH i2c: E2 08 00 C5 2B 80 11 00 00 00 00 00 00 6A [15:45:37]Write i2c OK [15:45:37]MH_I2C_Read... [15:45:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:37]Read from MH i2c: E2 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: E2 17 00 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: E2 17 00 C5 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BF [15:45:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:45:37]wFMCommunicate OK [15:45:37]CreateOFDProtocolMessage done [15:45:37]OFDSenderStorePacket 201572 [15:45:37]StoreOFDPacket docnum=201572 [15:45:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 01 34 04 01 2D 65 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 32 FF 03 08 00 03 FA 8C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 3E 32 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 32 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 72 00 00 00 00 07 04 06 00 38 32 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 A1 0E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 64 13 03 00 35 04 06 00 C4 C8 A5 2F F6 3A F8 77 0A FE 4B 43 05 60 [15:45:37]CheckFolder [15:45:37]dirname=/storage/ofd_packets [15:45:37]CheckFolder done [15:45:37]ProducePacketName [15:45:37]name=ofd_packets/00201572 [15:45:37]NVStorageSaveData ofd_packets/00201572 [15:45:37]File name is /storage/ofd_packets/00201572 [15:45:37]Write 298 bytes [15:45:37]NVStorageSaveData done [15:45:37]OFDSenderStorePacket done [15:45:37]KKMCreateOFDPacket done [15:45:37]NVStorageSaveData kkm_last_timestamp [15:45:37]File name is /storage/kkm_last_timestamp [15:45:37]Write 4 bytes [15:45:37]NVStorageSaveData done [15:45:37]ExternCall_PrintAddStr [15:45:37]wPrintStart [15:45:37]Write to MH i2c: 01 00 00 C6 2B F1 [15:45:37]Write i2c OK [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: 01 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: 01 07 00 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: 01 07 00 C6 2B 00 00 00 00 00 FF 0F 06 [15:45:37]RasterBufferAndPrint [15:45:37]line Счет N : (1)449327 [15:45:37]line ИНН: 02508201610067 [15:45:37]line Контрольно-Кассовый Чек [15:45:37]line ПРОДАЖА [15:45:37]line ТРК (МРК, ГНК) : 43 [15:45:37]line Товар: 2710194210 [15:45:37]line ДТ-К-2 [15:45:37]line 36.090 * 76.20 [15:45:37]line = 2750.06 [15:45:37]line НДС 12% НСП 1% [15:45:37]line > о реализуемом товаре [15:45:37]line ОКРУГЛЕНИЕ: -0.06 [15:45:37]line ИТОГО: 2750.00 [15:45:37]line Внесено: 3000.00 [15:45:37]line СДАЧА: 250.00 [15:45:37]line НСП 1% : 24.34 [15:45:37]line НДС 12% : 292.04 [15:45:37]line Наличными: 2750.00 [15:45:37]line Безнал.: 0.00 [15:45:37]line Место: АЗС № 171 "Партнер Нефть" [15:45:37]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:45:37]line СНО: Общий режим [15:45:37]line Чек 334 26.10.2024 15:45 [15:45:37]line Смена: 543 ФФД: 1.0 [15:45:37]line ЗНМ: 0300000109 [15:45:37]line РНМ: 0000000000091777 [15:45:37]line Версия ККМ: 001 [15:45:37]line ФМ: 0000000000871756 [15:45:37]line ФД: 201572 [15:45:37]line ФПД: 216366043887162 [15:45:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T154537&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201572&fm=216366043887162&tin=02508201610067®Number=0000000000091777&sum=275000 [15:45:38]OFD Sender: Processing packet 201572 [packets to send 112, broken 111] [15:45:38]ProducePacketName [15:45:38]name=ofd_packets/00201572 [15:45:38]OFD Sender: To server: pG, [15:45:38]CommunicateWithHost lk.salyk.kg:30040 [15:45:38]ConnectInit lk.salyk.kg [15:45:38]written 0, free lines is 4095 [15:45:38]Connected sock=10 [15:45:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 01 34 04 01 2D 65 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 32 FF 03 08 00 03 FA 8C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 3E 32 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 32 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 72 00 00 00 00 07 04 06 00 38 32 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 A1 0E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 64 13 03 00 35 04 06 00 C4 C8 A5 2F F6 3A F8 77 0A FE 4B 43 05 60 [15:45:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 FD 52 47 00 50 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 64 13 03 00 F4 03 04 00 4A BA 1C 67 B6 04 01 00 00 8A F3 38 6F 04 8C 3F 26 [15:45:38]CommunicateWithHost err = 0 [15:45:38]CheckOFDResponse [15:45:38]1017 (14) - 77093643461234 [15:45:38]1041 (16) - 0000000000871756 [15:45:38]1040 (4) - 201572 [15:45:38]1012 (4) - 26.10.2024 09:45 [15:45:38]1206 (1) - 0 [15:45:38]OFD Sender: Remove packet 201572 [15:45:38]ProducePacketName [15:45:38]name=ofd_packets/00201572 [15:45:38]NVStorageDeleteData [15:45:38]Write to MH i2c: 01 00 00 F1 2B 1C [15:45:38]Write i2c OK [15:45:38]MH_I2C_Read... [15:45:38]Read from MH i2c: 01 [15:45:38]MH_I2C_Read... [15:45:38]Read from MH i2c: 01 07 00 [15:45:38]MH_I2C_Read... [15:45:38]Read from MH i2c: 01 07 00 F1 2B 00 00 00 00 00 9E 0C CD [15:45:38]RasterBufferAndPrint [15:45:38]line [15:45:38]line [15:45:38]line [15:45:38]line [15:45:38]line [15:45:38]written 0, free lines is 3236 [15:45:38]MH_Cut [15:45:38]Write to MH i2c: D1 01 00 F8 2B 01 F5 [15:45:38]Write i2c OK [15:45:38]MH_I2C_Read... [15:45:38]Read from MH i2c: D1 [15:45:38]MH_I2C_Read... [15:45:38]Read from MH i2c: D1 01 00 [15:45:38]MH_I2C_Read... [15:45:38]Read from MH i2c: D1 01 00 F8 2B 00 F4 [15:45:38]Write to MH i2c: 01 00 00 F9 2B 24 [15:45:38]Write i2c OK [15:45:38]MH_I2C_Read... [15:45:38]OFD Sender: No OFD packet to send [15:45:39]*** Cut start [15:45:39]*** Purtial cut [15:45:39]*** Stage 1: CUTSNS_PIN = 1 [15:45:39]Read from MH i2c: 01 [15:45:39]MH_I2C_Read... [15:45:39]*** Stop cut motor [15:45:39]*** Cut end [15:45:39]Read from MH i2c: 01 07 00 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: 01 07 00 F9 2B 00 00 00 00 00 FF 0F 39 [15:45:39]process_action close_receipt done [15:45:39]requested_data is exist [15:45:39]produce_requested_data [15:45:39]requested_item fm.sn is exist - process it [15:45:39]wFMCommunicate request_size=4 [15:45:39]MH_SAM_APDU [15:45:39]CAPDU: 80 11 00 00 [15:45:39]Write to MH i2c: E2 08 00 FA 2B 80 11 00 00 00 00 00 00 9F [15:45:39]Write i2c OK [15:45:39]MH_I2C_Read... [15:45:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:39]Read from MH i2c: E2 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: E2 17 00 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: E2 17 00 FA 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F4 [15:45:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:45:39]wFMCommunicate OK [15:45:39]requested_item fd.num is exist - process it [15:45:39]SAM_PROTO_GetFieldsCounters [15:45:39]wFMCommunicate request_size=4 [15:45:39]MH_SAM_APDU [15:45:39]CAPDU: 80 13 00 00 [15:45:39]Write to MH i2c: E2 08 00 FB 2B 80 13 00 00 00 00 00 00 A2 [15:45:39]Write i2c OK [15:45:39]MH_I2C_Read... [15:45:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:39]Read from MH i2c: E2 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: E2 62 00 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: E2 62 00 FB 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 64 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 53 [15:45:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 64 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:45:39]wFMCommunicate OK [15:45:39]SAM_PROTO_GetFieldsCounters done [15:45:39]requested_item shift.num is exist - process it [15:45:39]requested_item shift.opened is exist - process it [15:45:39]req_shift_opened [15:45:39]FM_GetShiftState [15:45:39]SAM_PROTO_GetShiftState [15:45:39]wFMCommunicate request_size=4 [15:45:39]MH_SAM_APDU [15:45:39]CAPDU: 80 13 01 00 [15:45:39]Write to MH i2c: E2 08 00 FC 2B 80 13 01 00 00 00 00 00 A4 [15:45:39]Write i2c OK [15:45:39]MH_I2C_Read... [15:45:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:40]Read from MH i2c: E2 [15:45:40]MH_I2C_Read... [15:45:40]Read from MH i2c: E2 0E 00 [15:45:40]MH_I2C_Read... [15:45:40]Read from MH i2c: E2 0E 00 FC 2B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 B3 [15:45:40]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:45:40]wFMCommunicate OK [15:45:40]SAM_PROTO_GetShiftState done [15:45:40]FM_GetShiftState done [15:45:40]req_shift_opened done [15:45:40]requested_item shift.open_date is exist - process it [15:45:40]req_shift_open_date [15:45:40]req_shift_open_date done [15:45:40]produce_requested_data done [15:45:40]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201572,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [15:45:40]process_action_free close_receipt [15:45:40]json_value_free [15:45:40]json_value_free done [15:45:40]process_json_proto returns [15:45:40]Send response to host [15:45:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201572,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [15:45:40]free response buf [15:45:40]execute_script done [15:45:40]execute_script returns [15:45:40]free content buf [15:45:40]Sock 9.Close socket [15:45:40]Sock 9.Thread stoped [15:45:43]OFD Sender: No OFD packet to send [15:45:48]OFD Sender: No OFD packet to send [15:45:53]OFD Sender: No OFD packet to send [15:45:59]OFD Sender: No OFD packet to send [15:46:04]OFD Sender: No OFD packet to send [15:46:09]OFD Sender: No OFD packet to send [15:46:14]OFD Sender: No OFD packet to send [15:46:19]OFD Sender: No OFD packet to send [15:46:24]OFD Sender: No OFD packet to send [15:46:29]OFD Sender: No OFD packet to send [15:46:34]OFD Sender: No OFD packet to send [15:46:39]OFD Sender: No OFD packet to send [15:46:42]accept exits with 8 [15:46:42]New connection [15:46:42]New thread 3066834276 created [15:46:42]Thread 3066690916 joined [15:46:42]Waiting for new connection... [15:46:42] Sock 8.Parse request [15:46:42]Sock 8.Check first char [15:46:42]Sock 8.First char is OK [15:46:42]request: POST /json_proto HTTP/1.0 [15:46:42]Method: POST [15:46:42]URL: /json_proto [15:46:42]Method is POST - this is cgi request [15:46:42]url: /json_proto [15:46:42]query_string will be loaded in cgi processing [15:46:42]execute_cgi json_proto POST (null) [15:46:42]execute_cgi path=json_proto method=POST [15:46:42]POST find Content-Length [15:46:42]Host: 172.17.63.195:8080 [15:46:42]Content-Length: 677 [15:46:42]Content-Type: application/json [15:46:42] [15:46:42]POST finish read [15:46:42]Found Content-Length = 677 [15:46:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:42]execute_script... [15:46: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)449328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:42]POST & json_proto [15:46:42]process_json_proto [15:46:42]json parsed OK: [15:46:42]protocol is kg_v1.0 [15:46:42]action value=close_receipt [15:46:42]process_action close_receipt [15:46:42]cmd_close_receipt [15:46:42]MH_GetDate [15:46:42]Write to MH i2c: F0 00 00 FD 2B 17 [15:46:42]Write i2c OK [15:46:42]MH_I2C_Read... [15:46:42]Read from MH i2c: F0 [15:46:42]MH_I2C_Read... [15:46:42]Read from MH i2c: F0 09 00 [15:46:42]MH_I2C_Read... [15:46:42]Read from MH i2c: F0 09 00 FD 2B 00 E3 0E 1D 67 68 46 19 67 C3 [15:46:42]GetLastDocTimeStamp 1729957537 [15:46:42]current date 1729957603 [15:46:42]FM_GetShiftState [15:46:42]SAM_PROTO_GetShiftState [15:46:42]wFMCommunicate request_size=4 [15:46:42]MH_SAM_APDU [15:46:42]CAPDU: 80 13 01 00 [15:46:42]Write to MH i2c: E2 08 00 FE 2B 80 13 01 00 00 00 00 00 A6 [15:46:42]Write i2c OK [15:46:42]MH_I2C_Read... [15:46:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:42]Read from MH i2c: E2 [15:46:42]MH_I2C_Read... [15:46:42]Read from MH i2c: E2 0E 00 [15:46:42]MH_I2C_Read... [15:46:42]Read from MH i2c: E2 0E 00 FE 2B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 B5 [15:46:42]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:46:42]wFMCommunicate OK [15:46:42]SAM_PROTO_GetShiftState done [15:46:42]FM_GetShiftState done [15:46:42]opened in 1729900879 [15:46:42]opened+sec_in_day 1729987279 [15:46:42]quantity*price = 30038 [15:46:42]sum+1 = 30039 [15:46:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 335 26.10.2024 15:46 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201573 ФПД: 227213048952515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T154643&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201573&fm=227213048952515&tin=02508201610067®Number=0000000000091777&sum=30000 [15:46:43]StoreToDocumentArchive [15:46:43]shift 543 fd 201573 [15:46:43]save to /storage/0543/doc_00201573 [15:46:43]save last doc name /storage/0543/doc_00201573 to /storage/kkm_last_doc_name [15:46:43]save OK [15:46:43]Clear old archive folders... [15:46:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:46:43]tlvbuf is B6F387C0 [15:46:43]SAM_PROTO_ClearQueue [15:46:43]wFMCommunicate request_size=4 [15:46:43]MH_SAM_APDU [15:46:43]CAPDU: 80 09 00 00 [15:46:43]Write to MH i2c: E2 08 00 0B 2C 80 09 00 00 00 00 00 00 A9 [15:46:43]Write i2c OK [15:46:43]MH_I2C_Read... [15:46:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:43]Read from MH i2c: E2 [15:46:43]MH_I2C_Read... [15:46:43]Read from MH i2c: E2 03 00 [15:46:43]MH_I2C_Read... [15:46:43]Read from MH i2c: E2 03 00 0B 2C 00 90 00 AB [15:46:43]RAPDU: 90 00 [15:46:43]wFMCommunicate OK [15:46:43]SAM_PROTO_ClearQueue done [15:46:43]KKMCreateOFDPacket [15:46:43]OFDProtocolAddRootSTLVToBuf [15:46:43]FM_MakeSignedData [15:46:43]FM_MakeSignedData [15:46:43]SAM_PROTO_SignData [15:46:43]wFMCommunicate request_size=4 [15:46:43]MH_SAM_APDU [15:46:43]CAPDU: 80 0D 01 02 [15:46:43]Write to MH i2c: E2 08 00 0C 2C 80 0D 01 02 00 00 00 00 B1 [15:46:43]Write i2c OK [15:46:43]MH_I2C_Read... [15:46:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:43]Read from MH i2c: E2 [15:46:43]MH_I2C_Read... [15:46:43]Read from MH i2c: E2 03 00 [15:46:43]MH_I2C_Read... [15:46:43]Read from MH i2c: E2 03 00 0C 2C 00 90 00 AC [15:46:43]RAPDU: 90 00 [15:46:43]wFMCommunicate OK [15:46:43]wFMCommunicate request_size=255 [15:46:43]MH_SAM_APDU [15:46:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 E3 0E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 65 13 03 00 35 04 06 00 CE [15:46:43]Write to MH i2c: E2 02 01 0D 2C 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 E3 0E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 65 13 03 00 35 04 06 00 CE 00 00 68 [15:46:43]Write i2c OK [15:46:43]MH_I2C_Read... [15:46:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:44]Read from MH i2c: E2 [15:46:44]MH_I2C_Read... [15:46:44]Read from MH i2c: E2 03 00 [15:46:44]MH_I2C_Read... [15:46:44]Read from MH i2c: E2 03 00 0D 2C 00 90 00 AD [15:46:44]RAPDU: 90 00 [15:46:44]wFMCommunicate OK [15:46:44]wFMCommunicate request_size=10 [15:46:44]MH_SAM_APDU [15:46:44]CAPDU: 80 0D 02 02 05 A6 29 12 36 C3 [15:46:44]Write to MH i2c: E2 0D 00 0E 2C 80 0D 02 02 05 00 A6 29 12 36 C3 00 00 98 [15:46:44]Write i2c OK [15:46:44]MH_I2C_Read... [15:46:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:44]Read from MH i2c: E2 [15:46:44]MH_I2C_Read... [15:46:44]Read from MH i2c: E2 03 00 [15:46:44]MH_I2C_Read... [15:46:44]Read from MH i2c: E2 03 00 0E 2C 00 90 00 AE [15:46:44]RAPDU: 90 00 [15:46:44]wFMCommunicate OK [15:46:44]wFMCommunicate request_size=4 [15:46:44]MH_SAM_APDU [15:46:44]CAPDU: 80 0D 03 02 [15:46:44]Write to MH i2c: E2 08 00 0F 2C 80 0D 03 02 00 00 00 00 B6 [15:46:44]Write i2c OK [15:46:44]MH_I2C_Read... [15:46:44]OFD Sender: No OFD packet to send [15:46:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:46:44]Read from MH i2c: E2 [15:46:44]MH_I2C_Read... [15:46:44]Read from MH i2c: E2 0B 00 [15:46:44]MH_I2C_Read... [15:46:44]Read from MH i2c: E2 0B 00 0F 2C 00 CF 79 5D B1 62 28 18 E9 90 00 98 [15:46:44]RAPDU: CF 79 5D B1 62 28 18 E9 90 00 [15:46:44]wFMCommunicate OK [15:46:44]SAM_PROTO_SignData done [15:46:44]FM_MakeSignedData done [15:46:44]CreateOFDProtocolMessage [15:46:44]wFMCommunicate request_size=4 [15:46:44]MH_SAM_APDU [15:46:44]CAPDU: 80 11 00 00 [15:46:44]Write to MH i2c: E2 08 00 10 2C 80 11 00 00 00 00 00 00 B6 [15:46:44]Write i2c OK [15:46:44]MH_I2C_Read... [15:46:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:44]Read from MH i2c: E2 [15:46:44]MH_I2C_Read... [15:46:44]Read from MH i2c: E2 17 00 [15:46:44]MH_I2C_Read... [15:46:44]Read from MH i2c: E2 17 00 10 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0B [15:46:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:46:44]wFMCommunicate OK [15:46:44]CreateOFDProtocolMessage done [15:46:44]OFDSenderStorePacket 201573 [15:46:44]StoreOFDPacket docnum=201573 [15:46:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 2B EE 07 01 E8 7B 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 E3 0E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 65 13 03 00 35 04 06 00 CE A6 29 12 36 C3 CF 79 5D B1 62 28 18 E9 [15:46:44]CheckFolder [15:46:44]dirname=/storage/ofd_packets [15:46:44]CheckFolder done [15:46:44]ProducePacketName [15:46:44]name=ofd_packets/00201573 [15:46:44]NVStorageSaveData ofd_packets/00201573 [15:46:44]File name is /storage/ofd_packets/00201573 [15:46:44]Write 301 bytes [15:46:44]NVStorageSaveData done [15:46:44]OFDSenderStorePacket done [15:46:44]KKMCreateOFDPacket done [15:46:44]NVStorageSaveData kkm_last_timestamp [15:46:44]File name is /storage/kkm_last_timestamp [15:46:44]Write 4 bytes [15:46:44]NVStorageSaveData done [15:46:44]ExternCall_PrintAddStr [15:46:44]wPrintStart [15:46:44]Write to MH i2c: 01 00 00 11 2C 3D [15:46:44]Write i2c OK [15:46:44]MH_I2C_Read... [15:46:44]Read from MH i2c: 01 [15:46:44]MH_I2C_Read... [15:46:44]Read from MH i2c: 01 07 00 [15:46:44]MH_I2C_Read... [15:46:44]Read from MH i2c: 01 07 00 11 2C 00 00 00 00 00 FF 0F 52 [15:46:44]RasterBufferAndPrint [15:46:44]line Счет N : (1)449328 [15:46:44]line ИНН: 02508201610067 [15:46:44]line Контрольно-Кассовый Чек [15:46:44]line ПРОДАЖА [15:46:44]line ТРК (МРК, ГНК) : 62 [15:46:44]line Товар: 2710124130 [15:46:44]line Аи-92-К-2 [15:46:44]line 4.490 * 66.90 [15:46:44]line = 300.38 [15:46:44]line НДС 12% НСП 1% [15:46:44]line > о реализуемом товаре [15:46:44]line ОКРУГЛЕНИЕ: -0.38 [15:46:44]line ИТОГО: 300.00 [15:46:44]line Внесено: 300.00 [15:46:44]line СДАЧА: 0.00 [15:46:44]line НСП 1% : 2.66 [15:46:44]line НДС 12% : 31.90 [15:46:44]line Наличными: 300.00 [15:46:44]line Безнал.: 0.00 [15:46:44]line Место: АЗС № 171 "Партнер Нефть" [15:46:44]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:46:44]line СНО: Общий режим [15:46:44]line Чек 335 26.10.2024 15:46 [15:46:44]line Смена: 543 ФФД: 1.0 [15:46:44]line ЗНМ: 0300000109 [15:46:44]line РНМ: 0000000000091777 [15:46:44]line Версия ККМ: 001 [15:46:44]line ФМ: 0000000000871756 [15:46:44]line ФД: 201573 [15:46:44]line ФПД: 227213048952515 [15:46:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T154643&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201573&fm=227213048952515&tin=02508201610067®Number=0000000000091777&sum=30000 [15:46:44]OFD Sender: Processing packet 201573 [packets to send 112, broken 111] [15:46:44]ProducePacketName [15:46:44]name=ofd_packets/00201573 [15:46:44]OFD Sender: To server: pG, [15:46:44]CommunicateWithHost lk.salyk.kg:30040 [15:46:44]ConnectInit lk.salyk.kg [15:46:44]written 0, free lines is 4095 [15:46:44]Connected sock=11 [15:46:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 2B EE 07 01 E8 7B 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 E3 0E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 65 13 03 00 35 04 06 00 CE A6 29 12 36 C3 CF 79 5D B1 62 28 18 E9 [15:46:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 20 40 47 00 C8 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 65 13 03 00 F4 03 04 00 8C BA 1C 67 B6 04 01 00 00 D8 5A E4 22 8F 95 27 ED [15:46:44]CommunicateWithHost err = 0 [15:46:44]CheckOFDResponse [15:46:44]1017 (14) - 77093643461234 [15:46:44]1041 (16) - 0000000000871756 [15:46:44]1040 (4) - 201573 [15:46:44]1012 (4) - 26.10.2024 09:46 [15:46:44]1206 (1) - 0 [15:46:44]OFD Sender: Remove packet 201573 [15:46:44]ProducePacketName [15:46:44]name=ofd_packets/00201573 [15:46:44]NVStorageDeleteData [15:46:44]Write to MH i2c: 01 00 00 3C 2C 68 [15:46:44]Write i2c OK [15:46:44]MH_I2C_Read... [15:46:44]Read from MH i2c: 01 [15:46:44]MH_I2C_Read... [15:46:44]Read from MH i2c: 01 07 00 [15:46:44]MH_I2C_Read... [15:46:44]Read from MH i2c: 01 07 00 3C 2C 00 00 00 00 00 97 0C 12 [15:46:44]RasterBufferAndPrint [15:46:44]line [15:46:44]line [15:46:44]line [15:46:44]line [15:46:44]line [15:46:44]written 0, free lines is 3229 [15:46:44]MH_Cut [15:46:44]Write to MH i2c: D1 01 00 43 2C 01 41 [15:46:44]Write i2c OK [15:46:44]MH_I2C_Read... [15:46:44]Read from MH i2c: D1 [15:46:44]MH_I2C_Read... [15:46:44]Read from MH i2c: D1 01 00 [15:46:44]MH_I2C_Read... [15:46:44]Read from MH i2c: D1 01 00 43 2C 00 40 [15:46:44]Write to MH i2c: 01 00 00 44 2C 70 [15:46:44]Write i2c OK [15:46:44]MH_I2C_Read... [15:46:45]OFD Sender: No OFD packet to send [15:46:45]*** Cut start [15:46:45]*** Purtial cut [15:46:45]*** CUTSNS_PIN = 0 [15:46:46]*** Stage 1: CUTSNS_PIN = 1 [15:46:47]Read from MH i2c: 01 [15:46:47]MH_I2C_Read... [15:46:47]*** Stop cut motor [15:46:47]*** Cut end [15:46:47]Read from MH i2c: 01 07 00 [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: 01 07 00 44 2C 00 00 00 00 00 FF 0F 85 [15:46:47]process_action close_receipt done [15:46:47]requested_data is exist [15:46:47]produce_requested_data [15:46:47]requested_item fm.sn is exist - process it [15:46:47]wFMCommunicate request_size=4 [15:46:47]MH_SAM_APDU [15:46:47]CAPDU: 80 11 00 00 [15:46:47]Write to MH i2c: E2 08 00 45 2C 80 11 00 00 00 00 00 00 EB [15:46:47]Write i2c OK [15:46:47]MH_I2C_Read... [15:46:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:47]Read from MH i2c: E2 [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: E2 17 00 [15:46:47]MH_I2C_Read... [15:46:47]Read from MH i2c: E2 17 00 45 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 40 [15:46:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:46:47]wFMCommunicate OK [15:46:47]requested_item fd.num is exist - process it [15:46:47]SAM_PROTO_GetFieldsCounters [15:46:47]wFMCommunicate request_size=4 [15:46:47]MH_SAM_APDU [15:46:47]CAPDU: 80 13 00 00 [15:46:47]Write to MH i2c: E2 08 00 46 2C 80 13 00 00 00 00 00 00 EE [15:46:47]Write i2c OK [15:46:47]MH_I2C_Read... [15:46:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:48]Read from MH i2c: E2 [15:46:48]MH_I2C_Read... [15:46:48]Read from MH i2c: E2 62 00 [15:46:48]MH_I2C_Read... [15:46:48]Read from MH i2c: E2 62 00 46 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 65 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 A3 [15:46:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 65 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:46:48]wFMCommunicate OK [15:46:48]SAM_PROTO_GetFieldsCounters done [15:46:48]requested_item shift.num is exist - process it [15:46:48]requested_item shift.opened is exist - process it [15:46:48]req_shift_opened [15:46:48]FM_GetShiftState [15:46:48]SAM_PROTO_GetShiftState [15:46:48]wFMCommunicate request_size=4 [15:46:48]MH_SAM_APDU [15:46:48]CAPDU: 80 13 01 00 [15:46:48]Write to MH i2c: E2 08 00 47 2C 80 13 01 00 00 00 00 00 F0 [15:46:48]Write i2c OK [15:46:48]MH_I2C_Read... [15:46:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:48]Read from MH i2c: E2 [15:46:48]MH_I2C_Read... [15:46:48]Read from MH i2c: E2 0E 00 [15:46:48]MH_I2C_Read... [15:46:48]Read from MH i2c: E2 0E 00 47 2C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 FF [15:46:48]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:46:48]wFMCommunicate OK [15:46:48]SAM_PROTO_GetShiftState done [15:46:48]FM_GetShiftState done [15:46:48]req_shift_opened done [15:46:48]requested_item shift.open_date is exist - process it [15:46:48]req_shift_open_date [15:46:48]req_shift_open_date done [15:46:48]produce_requested_data done [15:46:48]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201573,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [15:46:48]process_action_free close_receipt [15:46:48]json_value_free [15:46:48]json_value_free done [15:46:48]process_json_proto returns [15:46:48]Send response to host [15:46:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201573,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [15:46:48]free response buf [15:46:48]execute_script done [15:46:48]execute_script returns [15:46:48]free content buf [15:46:48]Sock 8.Close socket [15:46:48]Sock 8.Thread stoped [15:46:50]OFD Sender: No OFD packet to send [15:46:55]OFD Sender: No OFD packet to send [15:47:00]OFD Sender: No OFD packet to send [15:47:05]OFD Sender: No OFD packet to send [15:47:10]OFD Sender: No OFD packet to send [15:47:15]OFD Sender: No OFD packet to send [15:47:20]OFD Sender: No OFD packet to send [15:47:25]OFD Sender: No OFD packet to send [15:47:30]OFD Sender: No OFD packet to send [15:47:35]OFD Sender: No OFD packet to send [15:47:40]OFD Sender: No OFD packet to send [15:47:45]OFD Sender: No OFD packet to send [15:47:50]OFD Sender: No OFD packet to send [15:47:55]OFD Sender: No OFD packet to send [15:48:00]OFD Sender: No OFD packet to send [15:48:05]OFD Sender: No OFD packet to send [15:48:10]OFD Sender: No OFD packet to send [15:48:15]OFD Sender: No OFD packet to send [15:48:20]OFD Sender: No OFD packet to send [15:48:25]OFD Sender: No OFD packet to send [15:48:30]OFD Sender: No OFD packet to send [15:48:35]OFD Sender: No OFD packet to send [15:48:40]OFD Sender: No OFD packet to send [15:48:45]OFD Sender: No OFD packet to send [15:48:50]OFD Sender: No OFD packet to send [15:48:55]OFD Sender: No OFD packet to send [15:49:00]OFD Sender: No OFD packet to send [15:49:05]OFD Sender: No OFD packet to send [15:49:10]OFD Sender: No OFD packet to send [15:49:15]OFD Sender: No OFD packet to send [15:49:20]OFD Sender: No OFD packet to send [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [15:49:35]OFD Sender: No OFD packet to send [15:49:40]OFD Sender: No OFD packet to send [15:49:45]OFD Sender: No OFD packet to send [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [15:50:00]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:10]OFD Sender: No OFD packet to send [15:51:15]OFD Sender: No OFD packet to send [15:51:20]OFD Sender: No OFD packet to send [15:51:25]OFD Sender: No OFD packet to send [15:51:30]OFD Sender: No OFD packet to send [15:51:35]OFD Sender: No OFD packet to send [15:51:40]OFD Sender: No OFD packet to send [15:51:45]OFD Sender: No OFD packet to send [15:51:50]OFD Sender: No OFD packet to send [15:51:55]OFD Sender: No OFD packet to send [15:52:00]OFD Sender: No OFD packet to send [15:52:05]OFD Sender: No OFD packet to send [15:52:10]OFD Sender: No OFD packet to send [15:52:15]OFD Sender: No OFD packet to send [15:52:20]OFD Sender: No OFD packet to send [15:52:25]OFD Sender: No OFD packet to send [15:52:30]OFD Sender: No OFD packet to send [15:52:35]OFD Sender: No OFD packet to send [15:52:40]OFD Sender: No OFD packet to send [15:52:45]OFD Sender: No OFD packet to send [15:52:50]OFD Sender: No OFD packet to send [15:52:55]OFD Sender: No OFD packet to send [15:53:00]OFD Sender: No OFD packet to send [15:53:05]OFD Sender: No OFD packet to send [15:53:10]OFD Sender: No OFD packet to send [15:53:15]OFD Sender: No OFD packet to send [15:53:20]OFD Sender: No OFD packet to send [15:53:25]OFD Sender: No OFD packet to send [15:53:30]OFD Sender: No OFD packet to send [15:53:35]OFD Sender: No OFD packet to send [15:53:40]OFD Sender: No OFD packet to send [15:53:45]OFD Sender: No OFD packet to send [15:53:50]OFD Sender: No OFD packet to send [15:53:55]OFD Sender: No OFD packet to send [15:54:00]OFD Sender: No OFD packet to send [15:54:05]OFD Sender: No OFD packet to send [15:54:10]OFD Sender: No OFD packet to send [15:54:15]OFD Sender: No OFD packet to send [15:54:20]OFD Sender: No OFD packet to send [15:54:25]OFD Sender: No OFD packet to send [15:54:30]OFD Sender: No OFD packet to send [15:54:35]OFD Sender: No OFD packet to send [15:54:40]OFD Sender: No OFD packet to send [15:54:45]OFD Sender: No OFD packet to send [15:54:50]OFD Sender: No OFD packet to send [15:54:55]OFD Sender: No OFD packet to send [15:55:00]OFD Sender: No OFD packet to send [15:55:02]accept exits with 9 [15:55:02]New connection [15:55:02]New thread 3066690916 created [15:55:02]Thread 3066834276 joined [15:55:02]Waiting for new connection... [15:55:02] Sock 9.Parse request [15:55:02]Sock 9.Check first char [15:55:02]Sock 9.First char is OK [15:55:02]request: POST /json_proto HTTP/1.0 [15:55:02]Method: POST [15:55:02]URL: /json_proto [15:55:02]Method is POST - this is cgi request [15:55:02]url: /json_proto [15:55:02]query_string will be loaded in cgi processing [15:55:02]execute_cgi json_proto POST (null) [15:55:02]execute_cgi path=json_proto method=POST [15:55:02]POST find Content-Length [15:55:02]Host: 172.17.63.195:8080 [15:55:02]Content-Length: 678 [15:55:02]Content-Type: application/json [15:55:02] [15:55:02]POST finish read [15:55:02]Found Content-Length = 678 [15:55:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:02]execute_script... [15:55: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)449329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:02]POST & json_proto [15:55:02]process_json_proto [15:55:02]json parsed OK: [15:55:02]protocol is kg_v1.0 [15:55:02]action value=close_receipt [15:55:02]process_action close_receipt [15:55:02]cmd_close_receipt [15:55:02]MH_GetDate [15:55:02]Write to MH i2c: F0 00 00 48 2C 63 [15:55:02]Write i2c OK [15:55:02]MH_I2C_Read... [15:55:02]Read from MH i2c: F0 [15:55:02]MH_I2C_Read... [15:55:02]Read from MH i2c: F0 09 00 [15:55:02]MH_I2C_Read... [15:55:02]Read from MH i2c: F0 09 00 48 2C 00 D7 10 1D 67 68 46 19 67 05 [15:55:02]GetLastDocTimeStamp 1729957603 [15:55:02]current date 1729958103 [15:55:02]FM_GetShiftState [15:55:02]SAM_PROTO_GetShiftState [15:55:02]wFMCommunicate request_size=4 [15:55:02]MH_SAM_APDU [15:55:02]CAPDU: 80 13 01 00 [15:55:02]Write to MH i2c: E2 08 00 49 2C 80 13 01 00 00 00 00 00 F2 [15:55:02]Write i2c OK [15:55:02]MH_I2C_Read... [15:55:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:02]Read from MH i2c: E2 [15:55:02]MH_I2C_Read... [15:55:02]Read from MH i2c: E2 0E 00 [15:55:02]MH_I2C_Read... [15:55:02]Read from MH i2c: E2 0E 00 49 2C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 01 [15:55:02]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:55:02]wFMCommunicate OK [15:55:02]SAM_PROTO_GetShiftState done [15:55:02]FM_GetShiftState done [15:55:02]opened in 1729900879 [15:55:02]opened+sec_in_day 1729987279 [15:55:02]quantity*price = 90047 [15:55:02]sum+1 = 90048 [15:55:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 336 26.10.2024 15:55 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201574 ФПД: 157971009862874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T155503&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201574&fm=157971009862874&tin=02508201610067®Number=0000000000091777&sum=90000 [15:55:03]StoreToDocumentArchive [15:55:03]shift 543 fd 201574 [15:55:03]save to /storage/0543/doc_00201574 [15:55:03]save last doc name /storage/0543/doc_00201574 to /storage/kkm_last_doc_name [15:55:03]save OK [15:55:03]Clear old archive folders... [15:55:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:55:03]tlvbuf is 01F565D0 [15:55:03]SAM_PROTO_ClearQueue [15:55:03]wFMCommunicate request_size=4 [15:55:03]MH_SAM_APDU [15:55:03]CAPDU: 80 09 00 00 [15:55:03]Write to MH i2c: E2 08 00 56 2C 80 09 00 00 00 00 00 00 F4 [15:55:03]Write i2c OK [15:55:03]MH_I2C_Read... [15:55:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:55:03]Read from MH i2c: E2 [15:55:03]MH_I2C_Read... [15:55:03]Read from MH i2c: E2 03 00 [15:55:03]MH_I2C_Read... [15:55:03]Read from MH i2c: E2 03 00 56 2C 00 90 00 F6 [15:55:03]RAPDU: 90 00 [15:55:03]wFMCommunicate OK [15:55:03]SAM_PROTO_ClearQueue done [15:55:03]KKMCreateOFDPacket [15:55:03]OFDProtocolAddRootSTLVToBuf [15:55:03]FM_MakeSignedData [15:55:03]FM_MakeSignedData [15:55:03]SAM_PROTO_SignData [15:55:03]wFMCommunicate request_size=4 [15:55:03]MH_SAM_APDU [15:55:03]CAPDU: 80 0D 01 02 [15:55:03]Write to MH i2c: E2 08 00 57 2C 80 0D 01 02 00 00 00 00 FC [15:55:03]Write i2c OK [15:55:03]MH_I2C_Read... [15:55:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:55:03]Read from MH i2c: E2 [15:55:03]MH_I2C_Read... [15:55:03]Read from MH i2c: E2 03 00 [15:55:03]MH_I2C_Read... [15:55:03]Read from MH i2c: E2 03 00 57 2C 00 90 00 F7 [15:55:03]RAPDU: 90 00 [15:55:03]wFMCommunicate OK [15:55:03]wFMCommunicate request_size=255 [15:55:03]MH_SAM_APDU [15:55: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 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 D7 10 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 66 13 03 00 35 04 06 00 8F [15:55:03]Write to MH i2c: E2 02 01 58 2C 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 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 D7 10 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 66 13 03 00 35 04 06 00 8F 00 00 95 [15:55:03]Write i2c OK [15:55:03]MH_I2C_Read... [15:55:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:03]Read from MH i2c: E2 [15:55:03]MH_I2C_Read... [15:55:03]Read from MH i2c: E2 03 00 [15:55:03]MH_I2C_Read... [15:55:03]Read from MH i2c: E2 03 00 58 2C 00 90 00 F8 [15:55:03]RAPDU: 90 00 [15:55:03]wFMCommunicate OK [15:55:03]wFMCommunicate request_size=10 [15:55:03]MH_SAM_APDU [15:55:03]CAPDU: 80 0D 02 02 05 AC 7D ED 7C DA [15:55:03]Write to MH i2c: E2 0D 00 59 2C 80 0D 02 02 05 00 AC 7D ED 7C DA 00 00 75 [15:55:03]Write i2c OK [15:55:03]MH_I2C_Read... [15:55:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:03]Read from MH i2c: E2 [15:55:03]MH_I2C_Read... [15:55:03]Read from MH i2c: E2 03 00 [15:55:03]MH_I2C_Read... [15:55:03]Read from MH i2c: E2 03 00 59 2C 00 90 00 F9 [15:55:03]RAPDU: 90 00 [15:55:03]wFMCommunicate OK [15:55:03]wFMCommunicate request_size=4 [15:55:03]MH_SAM_APDU [15:55:03]CAPDU: 80 0D 03 02 [15:55:03]Write to MH i2c: E2 08 00 5A 2C 80 0D 03 02 00 00 00 00 01 [15:55:03]Write i2c OK [15:55:03]MH_I2C_Read... [15:55:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:55:04]Read from MH i2c: E2 [15:55:04]MH_I2C_Read... [15:55:04]Read from MH i2c: E2 0B 00 [15:55:04]MH_I2C_Read... [15:55:04]Read from MH i2c: E2 0B 00 5A 2C 00 33 28 09 41 C7 38 01 99 90 00 40 [15:55:04]RAPDU: 33 28 09 41 C7 38 01 99 90 00 [15:55:04]wFMCommunicate OK [15:55:04]SAM_PROTO_SignData done [15:55:04]FM_MakeSignedData done [15:55:04]CreateOFDProtocolMessage [15:55:04]wFMCommunicate request_size=4 [15:55:04]MH_SAM_APDU [15:55:04]CAPDU: 80 11 00 00 [15:55:04]Write to MH i2c: E2 08 00 5B 2C 80 11 00 00 00 00 00 00 01 [15:55:04]Write i2c OK [15:55:04]MH_I2C_Read... [15:55:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:04]Read from MH i2c: E2 [15:55:04]MH_I2C_Read... [15:55:04]Read from MH i2c: E2 17 00 [15:55:04]MH_I2C_Read... [15:55:04]Read from MH i2c: E2 17 00 5B 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 56 [15:55:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:55:04]wFMCommunicate OK [15:55:04]CreateOFDProtocolMessage done [15:55:04]OFDSenderStorePacket 201574 [15:55:04]StoreOFDPacket docnum=201574 [15:55:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 91 76 07 01 DE A7 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 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 D7 10 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 66 13 03 00 35 04 06 00 8F AC 7D ED 7C DA 33 28 09 41 C7 38 01 99 [15:55:04]CheckFolder [15:55:04]dirname=/storage/ofd_packets [15:55:04]CheckFolder done [15:55:04]ProducePacketName [15:55:04]name=ofd_packets/00201574 [15:55:04]NVStorageSaveData ofd_packets/00201574 [15:55:04]File name is /storage/ofd_packets/00201574 [15:55:04]Write 301 bytes [15:55:04]NVStorageSaveData done [15:55:04]OFDSenderStorePacket done [15:55:04]KKMCreateOFDPacket done [15:55:04]NVStorageSaveData kkm_last_timestamp [15:55:04]File name is /storage/kkm_last_timestamp [15:55:04]Write 4 bytes [15:55:04]NVStorageSaveData done [15:55:04]ExternCall_PrintAddStr [15:55:04]wPrintStart [15:55:04]Write to MH i2c: 01 00 00 5C 2C 88 [15:55:04]Write i2c OK [15:55:04]MH_I2C_Read... [15:55:04]Read from MH i2c: 01 [15:55:04]MH_I2C_Read... [15:55:04]Read from MH i2c: 01 07 00 [15:55:04]MH_I2C_Read... [15:55:04]Read from MH i2c: 01 07 00 5C 2C 00 00 00 00 00 FF 0F 9D [15:55:04]RasterBufferAndPrint [15:55:04]line Счет N : (1)449329 [15:55:04]line ИНН: 02508201610067 [15:55:04]line Контрольно-Кассовый Чек [15:55:04]line ПРОДАЖА [15:55:04]line ТРК (МРК, ГНК) : 62 [15:55:04]line Товар: 2710124130 [15:55:04]line Аи-92-К-2 [15:55:04]line 13.460 * 66.90 [15:55:04]line = 900.47 [15:55:04]line НДС 12% НСП 1% [15:55:04]line > о реализуемом товаре [15:55:04]line ОКРУГЛЕНИЕ: -0.47 [15:55:04]line ИТОГО: 900.00 [15:55:04]line Внесено: 900.00 [15:55:04]line СДАЧА: 0.00 [15:55:04]line НСП 1% : 7.97 [15:55:04]line НДС 12% : 95.62 [15:55:04]line Наличными: 900.00 [15:55:04]line Безнал.: 0.00 [15:55:04]line Место: АЗС № 171 "Партнер Нефть" [15:55:04]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:55:04]line СНО: Общий режим [15:55:04]line Чек 336 26.10.2024 15:55 [15:55:04]line Смена: 543 ФФД: 1.0 [15:55:04]line ЗНМ: 0300000109 [15:55:04]line РНМ: 0000000000091777 [15:55:04]line Версия ККМ: 001 [15:55:04]line ФМ: 0000000000871756 [15:55:04]line ФД: 201574 [15:55:04]line ФПД: 157971009862874 [15:55:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T155503&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201574&fm=157971009862874&tin=02508201610067®Number=0000000000091777&sum=90000 [15:55:04]OFD Sender: Processing packet 201574 [packets to send 112, broken 111] [15:55:04]ProducePacketName [15:55:04]name=ofd_packets/00201574 [15:55:04]OFD Sender: To server: pG, [15:55:04]CommunicateWithHost lk.salyk.kg:30040 [15:55:04]ConnectInit lk.salyk.kg [15:55:04]written 0, free lines is 4095 [15:55:04]Connected sock=10 [15:55:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 91 76 07 01 DE A7 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 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 D7 10 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 66 13 03 00 35 04 06 00 8F AC 7D ED 7C DA 33 28 09 41 C7 38 01 99 [15:55:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C8 51 47 00 16 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 66 13 03 00 F4 03 04 00 80 BC 1C 67 B6 04 01 00 00 B2 31 D2 F7 18 E7 3A B5 [15:55:04]CommunicateWithHost err = 0 [15:55:04]CheckOFDResponse [15:55:04]1017 (14) - 77093643461234 [15:55:04]1041 (16) - 0000000000871756 [15:55:04]1040 (4) - 201574 [15:55:04]1012 (4) - 26.10.2024 09:55 [15:55:04]1206 (1) - 0 [15:55:04]OFD Sender: Remove packet 201574 [15:55:04]ProducePacketName [15:55:04]name=ofd_packets/00201574 [15:55:04]NVStorageDeleteData [15:55:04]Write to MH i2c: 01 00 00 87 2C B3 [15:55:04]Write i2c OK [15:55:04]MH_I2C_Read... [15:55:04]Read from MH i2c: 01 [15:55:04]MH_I2C_Read... [15:55:04]Read from MH i2c: 01 07 00 [15:55:04]MH_I2C_Read... [15:55:04]Read from MH i2c: 01 07 00 87 2C 00 00 00 00 00 95 0C 5B [15:55:04]RasterBufferAndPrint [15:55:04]line [15:55:04]line [15:55:04]line [15:55:04]line [15:55:04]line [15:55:04]written 0, free lines is 3225 [15:55:04]MH_Cut [15:55:04]Write to MH i2c: D1 01 00 8E 2C 01 8C [15:55:04]Write i2c OK [15:55:04]MH_I2C_Read... [15:55:04]Read from MH i2c: D1 [15:55:04]MH_I2C_Read... [15:55:04]Read from MH i2c: D1 01 00 [15:55:04]MH_I2C_Read... [15:55:04]Read from MH i2c: D1 01 00 8E 2C 00 8B [15:55:04]Write to MH i2c: 01 00 00 8F 2C BB [15:55:04]Write i2c OK [15:55:04]MH_I2C_Read... [15:55:05]OFD Sender: No OFD packet to send [15:55:05]*** Cut start [15:55:05]*** Purtial cut [15:55:05]*** Stage 1: CUTSNS_PIN = 1 [15:55:06]Read from MH i2c: 01 [15:55:06]MH_I2C_Read... [15:55:06]*** Stop cut motor [15:55:06]*** Cut end [15:55:06]Read from MH i2c: 01 07 00 [15:55:06]MH_I2C_Read... [15:55:06]Read from MH i2c: 01 07 00 8F 2C 00 00 00 00 00 FF 0F D0 [15:55:06]process_action close_receipt done [15:55:06]requested_data is exist [15:55:06]produce_requested_data [15:55:06]requested_item fm.sn is exist - process it [15:55:06]wFMCommunicate request_size=4 [15:55:06]MH_SAM_APDU [15:55:06]CAPDU: 80 11 00 00 [15:55:06]Write to MH i2c: E2 08 00 90 2C 80 11 00 00 00 00 00 00 36 [15:55:06]Write i2c OK [15:55:06]MH_I2C_Read... [15:55:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:06]Read from MH i2c: E2 [15:55:06]MH_I2C_Read... [15:55:06]Read from MH i2c: E2 17 00 [15:55:06]MH_I2C_Read... [15:55:06]Read from MH i2c: E2 17 00 90 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8B [15:55:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:55:06]wFMCommunicate OK [15:55:06]requested_item fd.num is exist - process it [15:55:06]SAM_PROTO_GetFieldsCounters [15:55:06]wFMCommunicate request_size=4 [15:55:06]MH_SAM_APDU [15:55:06]CAPDU: 80 13 00 00 [15:55:06]Write to MH i2c: E2 08 00 91 2C 80 13 00 00 00 00 00 00 39 [15:55:06]Write i2c OK [15:55:06]MH_I2C_Read... [15:55:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:55:06]Read from MH i2c: E2 [15:55:06]MH_I2C_Read... [15:55:06]Read from MH i2c: E2 62 00 [15:55:06]MH_I2C_Read... [15:55:06]Read from MH i2c: E2 62 00 91 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 66 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 F2 [15:55:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 66 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:55:06]wFMCommunicate OK [15:55:06]SAM_PROTO_GetFieldsCounters done [15:55:06]requested_item shift.num is exist - process it [15:55:06]requested_item shift.opened is exist - process it [15:55:06]req_shift_opened [15:55:06]FM_GetShiftState [15:55:06]SAM_PROTO_GetShiftState [15:55:06]wFMCommunicate request_size=4 [15:55:06]MH_SAM_APDU [15:55:06]CAPDU: 80 13 01 00 [15:55:06]Write to MH i2c: E2 08 00 92 2C 80 13 01 00 00 00 00 00 3B [15:55:06]Write i2c OK [15:55:06]MH_I2C_Read... [15:55:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:06]Read from MH i2c: E2 [15:55:06]MH_I2C_Read... [15:55:06]Read from MH i2c: E2 0E 00 [15:55:06]MH_I2C_Read... [15:55:06]Read from MH i2c: E2 0E 00 92 2C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 4A [15:55:06]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:55:06]wFMCommunicate OK [15:55:06]SAM_PROTO_GetShiftState done [15:55:06]FM_GetShiftState done [15:55:06]req_shift_opened done [15:55:06]requested_item shift.open_date is exist - process it [15:55:06]req_shift_open_date [15:55:06]req_shift_open_date done [15:55:06]produce_requested_data done [15:55:06]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201574,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [15:55:06]process_action_free close_receipt [15:55:06]json_value_free [15:55:06]json_value_free done [15:55:06]process_json_proto returns [15:55:06]Send response to host [15:55:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201574,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [15:55:06]free response buf [15:55:06]execute_script done [15:55:06]execute_script returns [15:55:06]free content buf [15:55:06]Sock 9.Close socket [15:55:06]Sock 9.Thread stoped [15:55:10]OFD Sender: No OFD packet to send [15:55:15]OFD Sender: No OFD packet to send [15:55:20]OFD Sender: No OFD packet to send [15:55:25]OFD Sender: No OFD packet to send [15:55:29]accept exits with 8 [15:55:29]New connection [15:55:29]New thread 3066834276 created [15:55:29]Thread 3066690916 joined [15:55:29]Waiting for new connection... [15:55:29] Sock 8.Parse request [15:55:29]Sock 8.Check first char [15:55:29]Sock 8.First char is OK [15:55:29]request: POST /json_proto HTTP/1.0 [15:55:29]Method: POST [15:55:29]URL: /json_proto [15:55:29]Method is POST - this is cgi request [15:55:29]url: /json_proto [15:55:29]query_string will be loaded in cgi processing [15:55:29]execute_cgi json_proto POST (null) [15:55:29]execute_cgi path=json_proto method=POST [15:55:29]POST find Content-Length [15:55:29]Host: 172.17.63.195:8080 [15:55:29]Content-Length: 677 [15:55:29]Content-Type: application/json [15:55:29] [15:55:29]POST finish read [15:55:29]Found Content-Length = 677 [15:55:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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" ] } } [15:55:29]execute_script... [15:55: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)449330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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" ] } } [15:55:29]POST & json_proto [15:55:29]process_json_proto [15:55:29]json parsed OK: [15:55:29]protocol is kg_v1.0 [15:55:29]action value=close_receipt [15:55:29]process_action close_receipt [15:55:29]cmd_close_receipt [15:55:29]MH_GetDate [15:55:29]Write to MH i2c: F0 00 00 93 2C AE [15:55:29]Write i2c OK [15:55:29]MH_I2C_Read... [15:55:29]Read from MH i2c: F0 [15:55:29]MH_I2C_Read... [15:55:29]Read from MH i2c: F0 09 00 [15:55:29]MH_I2C_Read... [15:55:29]Read from MH i2c: F0 09 00 93 2C 00 F3 10 1D 67 68 46 19 67 6C [15:55:29]GetLastDocTimeStamp 1729958103 [15:55:29]current date 1729958131 [15:55:29]FM_GetShiftState [15:55:29]SAM_PROTO_GetShiftState [15:55:29]wFMCommunicate request_size=4 [15:55:29]MH_SAM_APDU [15:55:29]CAPDU: 80 13 01 00 [15:55:29]Write to MH i2c: E2 08 00 94 2C 80 13 01 00 00 00 00 00 3D [15:55:29]Write i2c OK [15:55:29]MH_I2C_Read... [15:55:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:29]Read from MH i2c: E2 [15:55:29]MH_I2C_Read... [15:55:29]Read from MH i2c: E2 0E 00 [15:55:29]MH_I2C_Read... [15:55:29]Read from MH i2c: E2 0E 00 94 2C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 4C [15:55:29]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:55:29]wFMCommunicate OK [15:55:29]SAM_PROTO_GetShiftState done [15:55:29]FM_GetShiftState done [15:55:29]opened in 1729900879 [15:55:29]opened+sec_in_day 1729987279 [15:55:29]quantity*price = 60009 [15:55:29]sum+1 = 60010 [15:55:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 337 26.10.2024 15:55 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201575 ФПД: 135492098500115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T155531&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201575&fm=135492098500115&tin=02508201610067®Number=0000000000091777&sum=60000 [15:55:30]StoreToDocumentArchive [15:55:30]shift 543 fd 201575 [15:55:30]save to /storage/0543/doc_00201575 [15:55:30]save last doc name /storage/0543/doc_00201575 to /storage/kkm_last_doc_name [15:55:30]save OK [15:55:30]Clear old archive folders... [15:55:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:55:30]tlvbuf is B6EBD8D0 [15:55:30]SAM_PROTO_ClearQueue [15:55:30]wFMCommunicate request_size=4 [15:55:30]MH_SAM_APDU [15:55:30]CAPDU: 80 09 00 00 [15:55:30]Write to MH i2c: E2 08 00 A1 2C 80 09 00 00 00 00 00 00 3F [15:55:30]Write i2c OK [15:55:30]MH_I2C_Read... [15:55:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:55:30]Read from MH i2c: E2 [15:55:30]MH_I2C_Read... [15:55:30]Read from MH i2c: E2 03 00 [15:55:30]MH_I2C_Read... [15:55:30]Read from MH i2c: E2 03 00 A1 2C 00 90 00 41 [15:55:30]RAPDU: 90 00 [15:55:30]wFMCommunicate OK [15:55:30]SAM_PROTO_ClearQueue done [15:55:30]KKMCreateOFDPacket [15:55:30]OFDProtocolAddRootSTLVToBuf [15:55:30]FM_MakeSignedData [15:55:30]FM_MakeSignedData [15:55:30]SAM_PROTO_SignData [15:55:30]wFMCommunicate request_size=4 [15:55:30]MH_SAM_APDU [15:55:30]CAPDU: 80 0D 01 02 [15:55:30]Write to MH i2c: E2 08 00 A2 2C 80 0D 01 02 00 00 00 00 47 [15:55:30]Write i2c OK [15:55:30]MH_I2C_Read... [15:55:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:55:30]Read from MH i2c: E2 [15:55:30]MH_I2C_Read... [15:55:30]Read from MH i2c: E2 03 00 [15:55:30]MH_I2C_Read... [15:55:30]Read from MH i2c: E2 03 00 A2 2C 00 90 00 42 [15:55:30]RAPDU: 90 00 [15:55:30]wFMCommunicate OK [15:55:30]wFMCommunicate request_size=255 [15:55:30]MH_SAM_APDU [15:55:30]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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 51 01 00 00 F4 03 04 00 F3 10 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 67 13 03 00 35 04 06 00 7B [15:55:30]Write to MH i2c: E2 02 01 A3 2C 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 51 01 00 00 F4 03 04 00 F3 10 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 67 13 03 00 35 04 06 00 7B 00 00 AA [15:55:30]Write i2c OK [15:55:30]MH_I2C_Read... [15:55:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:31]Read from MH i2c: E2 [15:55:31]MH_I2C_Read... [15:55:31]Read from MH i2c: E2 03 00 [15:55:31]MH_I2C_Read... [15:55:31]Read from MH i2c: E2 03 00 A3 2C 00 90 00 43 [15:55:31]RAPDU: 90 00 [15:55:31]wFMCommunicate OK [15:55:31]wFMCommunicate request_size=10 [15:55:31]MH_SAM_APDU [15:55:31]CAPDU: 80 0D 02 02 05 3A B6 66 A6 13 [15:55:31]Write to MH i2c: E2 0D 00 A4 2C 80 0D 02 02 05 00 3A B6 66 A6 13 00 00 63 [15:55:31]Write i2c OK [15:55:31]MH_I2C_Read... [15:55:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:31]Read from MH i2c: E2 [15:55:31]MH_I2C_Read... [15:55:31]Read from MH i2c: E2 03 00 [15:55:31]MH_I2C_Read... [15:55:31]Read from MH i2c: E2 03 00 A4 2C 00 90 00 44 [15:55:31]RAPDU: 90 00 [15:55:31]wFMCommunicate OK [15:55:31]wFMCommunicate request_size=4 [15:55:31]MH_SAM_APDU [15:55:31]CAPDU: 80 0D 03 02 [15:55:31]Write to MH i2c: E2 08 00 A5 2C 80 0D 03 02 00 00 00 00 4C [15:55:31]Write i2c OK [15:55:31]MH_I2C_Read... [15:55:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:55:31]Read from MH i2c: E2 [15:55:31]MH_I2C_Read... [15:55:31]Read from MH i2c: E2 0B 00 [15:55:31]MH_I2C_Read... [15:55:31]Read from MH i2c: E2 0B 00 A5 2C 00 AA C7 C5 8F 4B A8 2B 63 90 00 93 [15:55:31]RAPDU: AA C7 C5 8F 4B A8 2B 63 90 00 [15:55:31]wFMCommunicate OK [15:55:31]SAM_PROTO_SignData done [15:55:31]FM_MakeSignedData done [15:55:31]CreateOFDProtocolMessage [15:55:31]wFMCommunicate request_size=4 [15:55:31]MH_SAM_APDU [15:55:31]CAPDU: 80 11 00 00 [15:55:31]Write to MH i2c: E2 08 00 A6 2C 80 11 00 00 00 00 00 00 4C [15:55:31]Write i2c OK [15:55:31]MH_I2C_Read... [15:55:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:31]Read from MH i2c: E2 [15:55:31]MH_I2C_Read... [15:55:31]Read from MH i2c: E2 17 00 [15:55:31]MH_I2C_Read... [15:55:31]Read from MH i2c: E2 17 00 A6 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A1 [15:55:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:55:31]wFMCommunicate OK [15:55:31]CreateOFDProtocolMessage done [15:55:31]OFDSenderStorePacket 201575 [15:55:31]StoreOFDPacket docnum=201575 [15:55:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 AB 45 07 01 F5 DB 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 51 01 00 00 F4 03 04 00 F3 10 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 67 13 03 00 35 04 06 00 7B 3A B6 66 A6 13 AA C7 C5 8F 4B A8 2B 63 [15:55:31]CheckFolder [15:55:31]dirname=/storage/ofd_packets [15:55:31]CheckFolder done [15:55:31]ProducePacketName [15:55:31]name=ofd_packets/00201575 [15:55:31]NVStorageSaveData ofd_packets/00201575 [15:55:31]File name is /storage/ofd_packets/00201575 [15:55:31]Write 301 bytes [15:55:31]NVStorageSaveData done [15:55:31]OFDSenderStorePacket done [15:55:31]KKMCreateOFDPacket done [15:55:31]NVStorageSaveData kkm_last_timestamp [15:55:31]File name is /storage/kkm_last_timestamp [15:55:31]Write 4 bytes [15:55:31]NVStorageSaveData done [15:55:31]ExternCall_PrintAddStr [15:55:31]wPrintStart [15:55:31]Write to MH i2c: 01 00 00 A7 2C D3 [15:55:31]Write i2c OK [15:55:31]MH_I2C_Read... [15:55:31]Read from MH i2c: 01 [15:55:31]MH_I2C_Read... [15:55:31]Read from MH i2c: 01 07 00 [15:55:31]MH_I2C_Read... [15:55:31]Read from MH i2c: 01 07 00 A7 2C 00 00 00 00 00 FF 0F E8 [15:55:31]RasterBufferAndPrint [15:55:31]line Счет N : (1)449330 [15:55:31]line ИНН: 02508201610067 [15:55:31]line Контрольно-Кассовый Чек [15:55:31]line ПРОДАЖА [15:55:31]line ТРК (МРК, ГНК) : 52 [15:55:31]line Товар: 2710124130 [15:55:31]line Аи-92-К-2 [15:55:31]line 8.970 * 66.90 [15:55:31]line = 600.09 [15:55:31]line НДС 12% НСП 1% [15:55:31]line > о реализуемом товаре [15:55:31]line ОКРУГЛЕНИЕ: -0.09 [15:55:31]line ИТОГО: 600.00 [15:55:31]line Внесено: 600.00 [15:55:31]line СДАЧА: 0.00 [15:55:31]line НСП 1% : 5.31 [15:55:31]line НДС 12% : 63.73 [15:55:31]line Наличными: 600.00 [15:55:31]line Безнал.: 0.00 [15:55:31]line Место: АЗС № 171 "Партнер Нефть" [15:55:31]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:55:31]line СНО: Общий режим [15:55:31]line Чек 337 26.10.2024 15:55 [15:55:31]line Смена: 543 ФФД: 1.0 [15:55:31]line ЗНМ: 0300000109 [15:55:31]line РНМ: 0000000000091777 [15:55:31]line Версия ККМ: 001 [15:55:31]line ФМ: 0000000000871756 [15:55:31]line ФД: 201575 [15:55:31]line ФПД: 135492098500115 [15:55:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T155531&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201575&fm=135492098500115&tin=02508201610067®Number=0000000000091777&sum=60000 [15:55:31]OFD Sender: Processing packet 201575 [packets to send 112, broken 111] [15:55:31]ProducePacketName [15:55:31]name=ofd_packets/00201575 [15:55:31]OFD Sender: To server: pG, [15:55:31]CommunicateWithHost lk.salyk.kg:30040 [15:55:31]ConnectInit lk.salyk.kg [15:55:31]written 0, free lines is 4095 [15:55:31]Connected sock=10 [15:55:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 AB 45 07 01 F5 DB 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 51 01 00 00 F4 03 04 00 F3 10 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 67 13 03 00 35 04 06 00 7B 3A B6 66 A6 13 AA C7 C5 8F 4B A8 2B 63 [15:55:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F9 A3 47 00 73 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 67 13 03 00 F4 03 04 00 9B BC 1C 67 B6 04 01 00 00 A3 17 BB 0D 9F 73 4C 94 [15:55:31]CommunicateWithHost err = 0 [15:55:31]CheckOFDResponse [15:55:31]1017 (14) - 77093643461234 [15:55:31]1041 (16) - 0000000000871756 [15:55:31]1040 (4) - 201575 [15:55:31]1012 (4) - 26.10.2024 09:55 [15:55:31]1206 (1) - 0 [15:55:31]OFD Sender: Remove packet 201575 [15:55:31]ProducePacketName [15:55:31]name=ofd_packets/00201575 [15:55:31]NVStorageDeleteData [15:55:31]Write to MH i2c: 01 00 00 D2 2C FE [15:55:31]Write i2c OK [15:55:31]MH_I2C_Read... [15:55:31]Read from MH i2c: 01 [15:55:31]MH_I2C_Read... [15:55:31]Read from MH i2c: 01 07 00 [15:55:31]MH_I2C_Read... [15:55:32]Read from MH i2c: 01 07 00 D2 2C 00 00 00 00 00 94 0C A5 [15:55:32]RasterBufferAndPrint [15:55:32]line [15:55:32]line [15:55:32]line [15:55:32]line [15:55:32]line [15:55:32]written 0, free lines is 3225 [15:55:32]MH_Cut [15:55:32]Write to MH i2c: D1 01 00 D9 2C 01 D7 [15:55:32]Write i2c OK [15:55:32]MH_I2C_Read... [15:55:32]Read from MH i2c: D1 [15:55:32]MH_I2C_Read... [15:55:32]Read from MH i2c: D1 01 00 [15:55:32]MH_I2C_Read... [15:55:32]Read from MH i2c: D1 01 00 D9 2C 00 D6 [15:55:32]Write to MH i2c: 01 00 00 DA 2C 06 [15:55:32]Write i2c OK [15:55:32]MH_I2C_Read... [15:55:32]OFD Sender: No OFD packet to send [15:55:32]*** Cut start [15:55:32]*** Purtial cut [15:55:32]*** Stage 1: CUTSNS_PIN = 1 [15:55:33]Read from MH i2c: 01 [15:55:33]MH_I2C_Read... [15:55:33]*** Stop cut motor [15:55:33]*** Cut end [15:55:33]Read from MH i2c: 01 07 00 [15:55:33]MH_I2C_Read... [15:55:33]Read from MH i2c: 01 07 00 DA 2C 00 00 00 00 00 FF 0F 1B [15:55:33]process_action close_receipt done [15:55:33]requested_data is exist [15:55:33]produce_requested_data [15:55:33]requested_item fm.sn is exist - process it [15:55:33]wFMCommunicate request_size=4 [15:55:33]MH_SAM_APDU [15:55:33]CAPDU: 80 11 00 00 [15:55:33]Write to MH i2c: E2 08 00 DB 2C 80 11 00 00 00 00 00 00 81 [15:55:33]Write i2c OK [15:55:33]MH_I2C_Read... [15:55:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:33]Read from MH i2c: E2 [15:55:33]MH_I2C_Read... [15:55:33]Read from MH i2c: E2 17 00 [15:55:33]MH_I2C_Read... [15:55:33]Read from MH i2c: E2 17 00 DB 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D6 [15:55:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:55:33]wFMCommunicate OK [15:55:33]requested_item fd.num is exist - process it [15:55:33]SAM_PROTO_GetFieldsCounters [15:55:33]wFMCommunicate request_size=4 [15:55:33]MH_SAM_APDU [15:55:33]CAPDU: 80 13 00 00 [15:55:33]Write to MH i2c: E2 08 00 DC 2C 80 13 00 00 00 00 00 00 84 [15:55:33]Write i2c OK [15:55:33]MH_I2C_Read... [15:55:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:55:33]Read from MH i2c: E2 [15:55:33]MH_I2C_Read... [15:55:33]Read from MH i2c: E2 62 00 [15:55:33]MH_I2C_Read... [15:55:33]Read from MH i2c: E2 62 00 DC 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 67 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 41 [15:55:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 67 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:55:33]wFMCommunicate OK [15:55:33]SAM_PROTO_GetFieldsCounters done [15:55:33]requested_item shift.num is exist - process it [15:55:33]requested_item shift.opened is exist - process it [15:55:33]req_shift_opened [15:55:33]FM_GetShiftState [15:55:33]SAM_PROTO_GetShiftState [15:55:33]wFMCommunicate request_size=4 [15:55:33]MH_SAM_APDU [15:55:33]CAPDU: 80 13 01 00 [15:55:33]Write to MH i2c: E2 08 00 DD 2C 80 13 01 00 00 00 00 00 86 [15:55:33]Write i2c OK [15:55:33]MH_I2C_Read... [15:55:33]Read from MH i2c: E2 [15:55:33]MH_I2C_Read... [15:55:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:33]Read from MH i2c: E2 0E 00 [15:55:33]MH_I2C_Read... [15:55:33]Read from MH i2c: E2 0E 00 DD 2C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 95 [15:55:33]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:55:33]wFMCommunicate OK [15:55:33]SAM_PROTO_GetShiftState done [15:55:33]FM_GetShiftState done [15:55:33]req_shift_opened done [15:55:33]requested_item shift.open_date is exist - process it [15:55:33]req_shift_open_date [15:55:33]req_shift_open_date done [15:55:33]produce_requested_data done [15:55:33]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201575,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [15:55:33]process_action_free close_receipt [15:55:33]json_value_free [15:55:33]json_value_free done [15:55:33]process_json_proto returns [15:55:33]Send response to host [15:55:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201575,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [15:55:33]free response buf [15:55:33]execute_script done [15:55:33]execute_script returns [15:55:33]free content buf [15:55:33]Sock 8.Close socket [15:55:33]Sock 8.Thread stoped [15:55:37]OFD Sender: No OFD packet to send [15:55:42]OFD Sender: No OFD packet to send [15:55:47]OFD Sender: No OFD packet to send [15:55:52]OFD Sender: No OFD packet to send [15:55:57]OFD Sender: No OFD packet to send [15:56:02]OFD Sender: No OFD packet to send [15:56:07]OFD Sender: No OFD packet to send [15:56:12]OFD Sender: No OFD packet to send [15:56:17]OFD Sender: No OFD packet to send [15:56:22]OFD Sender: No OFD packet to send [15:56:27]OFD Sender: No OFD packet to send [15:56:32]OFD Sender: No OFD packet to send [15:56:37]OFD Sender: No OFD packet to send [15:56:42]OFD Sender: No OFD packet to send [15:56:47]OFD Sender: No OFD packet to send [15:56:52]OFD Sender: No OFD packet to send [15:56:57]OFD Sender: No OFD packet to send [15:57:02]OFD Sender: No OFD packet to send [15:57:07]OFD Sender: No OFD packet to send [15:57:12]OFD Sender: No OFD packet to send [15:57:17]OFD Sender: No OFD packet to send [15:57:22]OFD Sender: No OFD packet to send [15:57:27]OFD Sender: No OFD packet to send [15:57:32]OFD Sender: No OFD packet to send [15:57:37]OFD Sender: No OFD packet to send [15:57:42]OFD Sender: No OFD packet to send [15:57:47]OFD Sender: No OFD packet to send [15:57:52]OFD Sender: No OFD packet to send [15:57:57]OFD Sender: No OFD packet to send [15:58:02]OFD Sender: No OFD packet to send [15:58:07]OFD Sender: No OFD packet to send [15:58:12]OFD Sender: No OFD packet to send [15:58:17]OFD Sender: No OFD packet to send [15:58:22]OFD Sender: No OFD packet to send [15:58:27]OFD Sender: No OFD packet to send [15:58:32]OFD Sender: No OFD packet to send [15:58:37]OFD Sender: No OFD packet to send [15:58:42]OFD Sender: No OFD packet to send [15:58:47]OFD Sender: No OFD packet to send [15:58:52]OFD Sender: No OFD packet to send [15:58:57]OFD Sender: No OFD packet to send [15:59:02]OFD Sender: No OFD packet to send [15:59:04]accept exits with 9 [15:59:04]New connection [15:59:04]New thread 3066690916 created [15:59:04]Thread 3066834276 joined [15:59:04]Waiting for new connection... [15:59:04] Sock 9.Parse request [15:59:04]Sock 9.Check first char [15:59:04]Sock 9.First char is OK [15:59:04]request: POST /json_proto HTTP/1.0 [15:59:04]Method: POST [15:59:04]URL: /json_proto [15:59:04]Method is POST - this is cgi request [15:59:04]url: /json_proto [15:59:04]query_string will be loaded in cgi processing [15:59:04]execute_cgi json_proto POST (null) [15:59:04]execute_cgi path=json_proto method=POST [15:59:04]POST find Content-Length [15:59:04]Host: 172.17.63.195:8080 [15:59:04]Content-Length: 677 [15:59:04]Content-Type: application/json [15:59:04] [15:59:04]POST finish read [15:59:04]Found Content-Length = 677 [15:59:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "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" ] } } [15:59:04]execute_script... [15:59:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "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" ] } } [15:59:04]POST & json_proto [15:59:04]process_json_proto [15:59:04]json parsed OK: [15:59:04]protocol is kg_v1.0 [15:59:04]action value=close_receipt [15:59:04]process_action close_receipt [15:59:04]cmd_close_receipt [15:59:04]MH_GetDate [15:59:04]Write to MH i2c: F0 00 00 DE 2C F9 [15:59:04]Write i2c OK [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: F0 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: F0 09 00 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: F0 09 00 DE 2C 00 CA 11 1D 67 68 46 19 67 8F [15:59:04]GetLastDocTimeStamp 1729958131 [15:59:04]current date 1729958346 [15:59:04]FM_GetShiftState [15:59:04]SAM_PROTO_GetShiftState [15:59:04]wFMCommunicate request_size=4 [15:59:04]MH_SAM_APDU [15:59:04]CAPDU: 80 13 01 00 [15:59:04]Write to MH i2c: E2 08 00 DF 2C 80 13 01 00 00 00 00 00 88 [15:59:04]Write i2c OK [15:59:04]MH_I2C_Read... [15:59:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:04]Read from MH i2c: E2 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 0E 00 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 0E 00 DF 2C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 97 [15:59:04]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:59:04]wFMCommunicate OK [15:59:04]SAM_PROTO_GetShiftState done [15:59:04]FM_GetShiftState done [15:59:04]opened in 1729900879 [15:59:04]opened+sec_in_day 1729987279 [15:59:04]quantity*price = 10035 [15:59:04]sum+1 = 10036 [15:59:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 338 26.10.2024 15:59 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201576 ФПД: 194024844790366 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T155906&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201576&fm=194024844790366&tin=02508201610067®Number=0000000000091777&sum=10000 [15:59:05]StoreToDocumentArchive [15:59:05]shift 543 fd 201576 [15:59:05]save to /storage/0543/doc_00201576 [15:59:05]save last doc name /storage/0543/doc_00201576 to /storage/kkm_last_doc_name [15:59:05]save OK [15:59:05]Clear old archive folders... [15:59:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:59:05]tlvbuf is 01F01F60 [15:59:05]SAM_PROTO_ClearQueue [15:59:05]wFMCommunicate request_size=4 [15:59:05]MH_SAM_APDU [15:59:05]CAPDU: 80 09 00 00 [15:59:05]Write to MH i2c: E2 08 00 EC 2C 80 09 00 00 00 00 00 00 8A [15:59:05]Write i2c OK [15:59:05]MH_I2C_Read... [15:59:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:05]Read from MH i2c: E2 [15:59:05]MH_I2C_Read... [15:59:05]Read from MH i2c: E2 03 00 [15:59:05]MH_I2C_Read... [15:59:05]Read from MH i2c: E2 03 00 EC 2C 00 90 00 8C [15:59:05]RAPDU: 90 00 [15:59:05]wFMCommunicate OK [15:59:05]SAM_PROTO_ClearQueue done [15:59:05]KKMCreateOFDPacket [15:59:05]OFDProtocolAddRootSTLVToBuf [15:59:05]FM_MakeSignedData [15:59:05]FM_MakeSignedData [15:59:05]SAM_PROTO_SignData [15:59:05]wFMCommunicate request_size=4 [15:59:05]MH_SAM_APDU [15:59:05]CAPDU: 80 0D 01 02 [15:59:05]Write to MH i2c: E2 08 00 ED 2C 80 0D 01 02 00 00 00 00 92 [15:59:05]Write i2c OK [15:59:05]MH_I2C_Read... [15:59:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:06]Read from MH i2c: E2 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 03 00 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 03 00 ED 2C 00 90 00 8D [15:59:06]RAPDU: 90 00 [15:59:06]wFMCommunicate OK [15:59:06]wFMCommunicate request_size=255 [15:59:06]MH_SAM_APDU [15: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 32 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 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 2A 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 52 01 00 00 F4 03 04 00 CA 11 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 68 13 03 00 35 04 06 00 B0 [15:59:06]Write to MH i2c: E2 02 01 EE 2C 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 32 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 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 2A 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 52 01 00 00 F4 03 04 00 CA 11 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 68 13 03 00 35 04 06 00 B0 00 00 0E [15:59:06]Write i2c OK [15:59:06]MH_I2C_Read... [15:59:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:06]Read from MH i2c: E2 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 03 00 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 03 00 EE 2C 00 90 00 8E [15:59:06]RAPDU: 90 00 [15:59:06]wFMCommunicate OK [15:59:06]wFMCommunicate request_size=10 [15:59:06]MH_SAM_APDU [15:59:06]CAPDU: 80 0D 02 02 05 76 ED F3 8A 5E [15:59:06]Write to MH i2c: E2 0D 00 EF 2C 80 0D 02 02 05 00 76 ED F3 8A 5E 00 00 DD [15:59:06]Write i2c OK [15:59:06]MH_I2C_Read... [15:59:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:06]Read from MH i2c: E2 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 03 00 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 03 00 EF 2C 00 90 00 8F [15:59:06]RAPDU: 90 00 [15:59:06]wFMCommunicate OK [15:59:06]wFMCommunicate request_size=4 [15:59:06]MH_SAM_APDU [15:59:06]CAPDU: 80 0D 03 02 [15:59:06]Write to MH i2c: E2 08 00 F0 2C 80 0D 03 02 00 00 00 00 97 [15:59:06]Write i2c OK [15:59:06]MH_I2C_Read... [15:59:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:06]Read from MH i2c: E2 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 0B 00 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 0B 00 F0 2C 00 92 0F 94 86 B3 D1 22 76 90 00 6F [15:59:06]RAPDU: 92 0F 94 86 B3 D1 22 76 90 00 [15:59:06]wFMCommunicate OK [15:59:06]SAM_PROTO_SignData done [15:59:06]FM_MakeSignedData done [15:59:06]CreateOFDProtocolMessage [15:59:06]wFMCommunicate request_size=4 [15:59:06]MH_SAM_APDU [15:59:06]CAPDU: 80 11 00 00 [15:59:06]Write to MH i2c: E2 08 00 F1 2C 80 11 00 00 00 00 00 00 97 [15:59:06]Write i2c OK [15:59:06]MH_I2C_Read... [15:59:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:06]Read from MH i2c: E2 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 17 00 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 17 00 F1 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EC [15:59:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:59:06]wFMCommunicate OK [15:59:06]CreateOFDProtocolMessage done [15:59:06]OFDSenderStorePacket 201576 [15:59:06]StoreOFDPacket docnum=201576 [15:59:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 5C 9C 07 01 B9 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 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 2A 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 52 01 00 00 F4 03 04 00 CA 11 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 68 13 03 00 35 04 06 00 B0 76 ED F3 8A 5E 92 0F 94 86 B3 D1 22 76 [15:59:06]CheckFolder [15:59:06]dirname=/storage/ofd_packets [15:59:06]CheckFolder done [15:59:06]ProducePacketName [15:59:06]name=ofd_packets/00201576 [15:59:06]NVStorageSaveData ofd_packets/00201576 [15:59:06]File name is /storage/ofd_packets/00201576 [15:59:06]Write 301 bytes [15:59:06]NVStorageSaveData done [15:59:06]OFDSenderStorePacket done [15:59:06]KKMCreateOFDPacket done [15:59:06]NVStorageSaveData kkm_last_timestamp [15:59:06]File name is /storage/kkm_last_timestamp [15:59:06]Write 4 bytes [15:59:06]NVStorageSaveData done [15:59:06]ExternCall_PrintAddStr [15:59:06]wPrintStart [15:59:06]Write to MH i2c: 01 00 00 F2 2C 1E [15:59:06]Write i2c OK [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: 01 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: 01 07 00 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: 01 07 00 F2 2C 00 00 00 00 00 FF 0F 33 [15:59:06]RasterBufferAndPrint [15:59:06]line Счет N : (1)449332 [15:59:06]line ИНН: 02508201610067 [15:59:06]line Контрольно-Кассовый Чек [15:59:06]line ПРОДАЖА [15:59:06]line ТРК (МРК, ГНК) : 41 [15:59:06]line Товар: 2710124130 [15:59:06]line Аи-92-К-2 [15:59:06]line 1.500 * 66.90 [15:59:06]line = 100.35 [15:59:06]line НДС 12% НСП 1% [15:59:06]line > о реализуемом товаре [15:59:06]line ОКРУГЛЕНИЕ: -0.35 [15:59:06]line ИТОГО: 100.00 [15:59:06]line Внесено: 100.00 [15:59:06]line СДАЧА: 0.00 [15:59:06]line НСП 1% : 0.89 [15:59:06]line НДС 12% : 10.66 [15:59:06]line Наличными: 100.00 [15:59:06]line Безнал.: 0.00 [15:59:06]line Место: АЗС № 171 "Партнер Нефть" [15:59:06]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:59:06]line СНО: Общий режим [15:59:06]line Чек 338 26.10.2024 15:59 [15:59:06]line Смена: 543 ФФД: 1.0 [15:59:06]line ЗНМ: 0300000109 [15:59:06]line РНМ: 0000000000091777 [15:59:06]line Версия ККМ: 001 [15:59:06]line ФМ: 0000000000871756 [15:59:06]line ФД: 201576 [15:59:06]line ФПД: 194024844790366 [15:59:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T155906&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201576&fm=194024844790366&tin=02508201610067®Number=0000000000091777&sum=10000 [15:59:06]OFD Sender: Processing packet 201576 [packets to send 112, broken 111] [15:59:06]ProducePacketName [15:59:06]name=ofd_packets/00201576 [15:59:06]OFD Sender: To server: pG, [15:59:06]CommunicateWithHost lk.salyk.kg:30040 [15:59:06]ConnectInit lk.salyk.kg [15:59:06]written 0, free lines is 4095 [15:59:06]Connected sock=10 [15:59:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 5C 9C 07 01 B9 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 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 2A 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 52 01 00 00 F4 03 04 00 CA 11 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 68 13 03 00 35 04 06 00 B0 76 ED F3 8A 5E 92 0F 94 86 B3 D1 22 76 [15:59:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F5 BD 47 00 7A 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 68 13 03 00 F4 03 04 00 72 BD 1C 67 B6 04 01 00 00 0B 59 96 66 EA 07 20 CF [15:59:07]CommunicateWithHost err = 0 [15:59:07]CheckOFDResponse [15:59:07]1017 (14) - 77093643461234 [15:59:07]1041 (16) - 0000000000871756 [15:59:07]1040 (4) - 201576 [15:59:07]1012 (4) - 26.10.2024 09:59 [15:59:07]1206 (1) - 0 [15:59:07]OFD Sender: Remove packet 201576 [15:59:07]ProducePacketName [15:59:07]name=ofd_packets/00201576 [15:59:07]NVStorageDeleteData [15:59:07]Write to MH i2c: 01 00 00 1D 2D 4A [15:59:07]Write i2c OK [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: 01 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: 01 07 00 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: 01 07 00 1D 2D 00 00 00 00 00 93 0C F0 [15:59:07]RasterBufferAndPrint [15:59:07]line [15:59:07]line [15:59:07]line [15:59:07]line [15:59:07]line [15:59:07]written 0, free lines is 3226 [15:59:07]MH_Cut [15:59:07]Write to MH i2c: D1 01 00 24 2D 01 23 [15:59:07]Write i2c OK [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: D1 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: D1 01 00 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: D1 01 00 24 2D 00 22 [15:59:07]Write to MH i2c: 01 00 00 25 2D 52 [15:59:07]Write i2c OK [15:59:07]MH_I2C_Read... [15:59:07]OFD Sender: No OFD packet to send [15:59:08]*** Cut start [15:59:08]*** Purtial cut [15:59:08]*** Stage 1: CUTSNS_PIN = 1 [15:59:08]Read from MH i2c: 01 [15:59:08]MH_I2C_Read... [15:59:08]*** Stop cut motor [15:59:08]*** Cut end [15:59:08]Read from MH i2c: 01 07 00 [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: 01 07 00 25 2D 00 00 00 00 00 FF 0F 67 [15:59:08]process_action close_receipt done [15:59:08]requested_data is exist [15:59:08]produce_requested_data [15:59:08]requested_item fm.sn is exist - process it [15:59:08]wFMCommunicate request_size=4 [15:59:08]MH_SAM_APDU [15:59:08]CAPDU: 80 11 00 00 [15:59:08]Write to MH i2c: E2 08 00 26 2D 80 11 00 00 00 00 00 00 CD [15:59:08]Write i2c OK [15:59:08]MH_I2C_Read... [15:59:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:08]Read from MH i2c: E2 [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: E2 17 00 [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: E2 17 00 26 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 22 [15:59:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:59:08]wFMCommunicate OK [15:59:08]requested_item fd.num is exist - process it [15:59:08]SAM_PROTO_GetFieldsCounters [15:59:08]wFMCommunicate request_size=4 [15:59:08]MH_SAM_APDU [15:59:08]CAPDU: 80 13 00 00 [15:59:08]Write to MH i2c: E2 08 00 27 2D 80 13 00 00 00 00 00 00 D0 [15:59:08]Write i2c OK [15:59:08]MH_I2C_Read... [15:59:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:08]Read from MH i2c: E2 [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: E2 62 00 [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: E2 62 00 27 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 68 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 91 [15:59:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 68 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:08]wFMCommunicate OK [15:59:08]SAM_PROTO_GetFieldsCounters done [15:59:08]requested_item shift.num is exist - process it [15:59:08]requested_item shift.opened is exist - process it [15:59:08]req_shift_opened [15:59:08]FM_GetShiftState [15:59:08]SAM_PROTO_GetShiftState [15:59:08]wFMCommunicate request_size=4 [15:59:08]MH_SAM_APDU [15:59:08]CAPDU: 80 13 01 00 [15:59:08]Write to MH i2c: E2 08 00 28 2D 80 13 01 00 00 00 00 00 D2 [15:59:08]Write i2c OK [15:59:08]MH_I2C_Read... [15:59:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:08]Read from MH i2c: E2 [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: E2 0E 00 [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: E2 0E 00 28 2D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E1 [15:59:08]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:59:08]wFMCommunicate OK [15:59:08]SAM_PROTO_GetShiftState done [15:59:08]FM_GetShiftState done [15:59:08]req_shift_opened done [15:59:08]requested_item shift.open_date is exist - process it [15:59:08]req_shift_open_date [15:59:08]req_shift_open_date done [15:59:08]produce_requested_data done [15:59:08]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201576,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [15:59:08]process_action_free close_receipt [15:59:08]json_value_free [15:59:08]json_value_free done [15:59:08]process_json_proto returns [15:59:08]Send response to host [15:59:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201576,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [15:59:08]free response buf [15:59:08]execute_script done [15:59:08]execute_script returns [15:59:08]free content buf [15:59:08]Sock 9.Close socket [15:59:08]Sock 9.Thread stoped [15:59:12]OFD Sender: No OFD packet to send [15:59:17]OFD Sender: No OFD packet to send [15:59:22]OFD Sender: No OFD packet to send [15:59:27]OFD Sender: No OFD packet to send [15:59:32]OFD Sender: No OFD packet to send [15:59:35]accept exits with 8 [15:59:35]New connection [15:59:35]New thread 3066834276 created [15:59:35]Thread 3066690916 joined [15:59:35]Waiting for new connection... [15:59:35] Sock 8.Parse request [15:59:35]Sock 8.Check first char [15:59:35]Sock 8.First char is OK [15:59:35]request: POST /json_proto HTTP/1.0 [15:59:35]Method: POST [15:59:35]URL: /json_proto [15:59:35]Method is POST - this is cgi request [15:59:35]url: /json_proto [15:59:35]query_string will be loaded in cgi processing [15:59:35]execute_cgi json_proto POST (null) [15:59:35]execute_cgi path=json_proto method=POST [15:59:35]POST find Content-Length [15:59:35]Host: 172.17.63.195:8080 [15:59:35]Content-Length: 679 [15:59:35]Content-Type: application/json [15:59:35] [15:59:35]POST finish read [15:59:35]Found Content-Length = 679 [15:59:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [15:59:35]execute_script... [15: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)449331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [15:59:35]POST & json_proto [15:59:35]process_json_proto [15:59:35]json parsed OK: [15:59:35]protocol is kg_v1.0 [15:59:35]action value=close_receipt [15:59:35]process_action close_receipt [15:59:35]cmd_close_receipt [15:59:35]MH_GetDate [15:59:35]Write to MH i2c: F0 00 00 29 2D 45 [15:59:35]Write i2c OK [15:59:35]MH_I2C_Read... [15:59:35]Read from MH i2c: F0 [15:59:35]MH_I2C_Read... [15:59:35]Read from MH i2c: F0 09 00 [15:59:35]MH_I2C_Read... [15:59:35]Read from MH i2c: F0 09 00 29 2D 00 E8 11 1D 67 68 46 19 67 F9 [15:59:35]GetLastDocTimeStamp 1729958346 [15:59:35]current date 1729958376 [15:59:35]FM_GetShiftState [15:59:35]SAM_PROTO_GetShiftState [15:59:35]wFMCommunicate request_size=4 [15:59:35]MH_SAM_APDU [15:59:35]CAPDU: 80 13 01 00 [15:59:35]Write to MH i2c: E2 08 00 2A 2D 80 13 01 00 00 00 00 00 D4 [15:59:35]Write i2c OK [15:59:35]MH_I2C_Read... [15:59:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:35]Read from MH i2c: E2 [15:59:35]MH_I2C_Read... [15:59:35]Read from MH i2c: E2 0E 00 [15:59:35]MH_I2C_Read... [15:59:35]Read from MH i2c: E2 0E 00 2A 2D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E3 [15:59:35]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:59:35]wFMCommunicate OK [15:59:35]SAM_PROTO_GetShiftState done [15:59:35]FM_GetShiftState done [15:59:35]opened in 1729900879 [15:59:35]opened+sec_in_day 1729987279 [15:59:35]quantity*price = 100050 [15:59:35]sum+1 = 100052 [15:59:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 339 26.10.2024 15:59 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201577 ФПД: 93462047287216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T155936&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201577&fm=93462047287216&tin=02508201610067®Number=0000000000091777&sum=100000 [15:59:36]StoreToDocumentArchive [15:59:36]shift 543 fd 201577 [15:59:36]save to /storage/0543/doc_00201577 [15:59:36]save last doc name /storage/0543/doc_00201577 to /storage/kkm_last_doc_name [15:59:36]save OK [15:59:36]Clear old archive folders... [15:59:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:59:36]tlvbuf is 01F970D0 [15:59:36]SAM_PROTO_ClearQueue [15:59:36]wFMCommunicate request_size=4 [15:59:36]MH_SAM_APDU [15:59:36]CAPDU: 80 09 00 00 [15:59:36]Write to MH i2c: E2 08 00 37 2D 80 09 00 00 00 00 00 00 D6 [15:59:36]Write i2c OK [15:59:36]MH_I2C_Read... [15:59:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:36]Read from MH i2c: E2 [15:59:36]MH_I2C_Read... [15:59:36]Read from MH i2c: E2 03 00 [15:59:36]MH_I2C_Read... [15:59:36]Read from MH i2c: E2 03 00 37 2D 00 90 00 D8 [15:59:36]RAPDU: 90 00 [15:59:36]wFMCommunicate OK [15:59:36]SAM_PROTO_ClearQueue done [15:59:36]KKMCreateOFDPacket [15:59:36]OFDProtocolAddRootSTLVToBuf [15:59:36]FM_MakeSignedData [15:59:36]FM_MakeSignedData [15:59:36]SAM_PROTO_SignData [15:59:36]wFMCommunicate request_size=4 [15:59:36]MH_SAM_APDU [15:59:36]CAPDU: 80 0D 01 02 [15:59:36]Write to MH i2c: E2 08 00 38 2D 80 0D 01 02 00 00 00 00 DE [15:59:36]Write i2c OK [15:59:36]MH_I2C_Read... [15:59:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:36]Read from MH i2c: E2 [15:59:36]MH_I2C_Read... [15:59:36]Read from MH i2c: E2 03 00 [15:59:36]MH_I2C_Read... [15:59:36]Read from MH i2c: E2 03 00 38 2D 00 90 00 D9 [15:59:36]RAPDU: 90 00 [15:59:36]wFMCommunicate OK [15:59:36]wFMCommunicate request_size=255 [15:59:36]MH_SAM_APDU [15: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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 53 01 00 00 F4 03 04 00 E8 11 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 69 13 03 00 35 04 06 00 55 00 D4 20 [15:59:36]Write to MH i2c: E2 02 01 39 2D 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 53 01 00 00 F4 03 04 00 E8 11 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 69 13 03 00 35 04 06 00 55 00 D4 20 00 00 22 [15:59:36]Write i2c OK [15:59:36]MH_I2C_Read... [15:59:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:36]Read from MH i2c: E2 [15:59:36]MH_I2C_Read... [15:59:36]Read from MH i2c: E2 03 00 [15:59:36]MH_I2C_Read... [15:59:36]Read from MH i2c: E2 03 00 39 2D 00 90 00 DA [15:59:36]RAPDU: 90 00 [15:59:36]wFMCommunicate OK [15:59:36]wFMCommunicate request_size=7 [15:59:36]MH_SAM_APDU [15:59:36]CAPDU: 80 0D 02 02 02 E7 B0 [15:59:36]Write to MH i2c: E2 0A 00 3A 2D 80 0D 02 02 02 00 E7 B0 00 00 7C [15:59:36]Write i2c OK [15:59:36]MH_I2C_Read... [15:59:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:36]Read from MH i2c: E2 [15:59:36]MH_I2C_Read... [15:59:36]Read from MH i2c: E2 03 00 [15:59:36]MH_I2C_Read... [15:59:36]Read from MH i2c: E2 03 00 3A 2D 00 90 00 DB [15:59:36]RAPDU: 90 00 [15:59:36]wFMCommunicate OK [15:59:36]wFMCommunicate request_size=4 [15:59:36]MH_SAM_APDU [15:59:36]CAPDU: 80 0D 03 02 [15:59:36]Write to MH i2c: E2 08 00 3B 2D 80 0D 03 02 00 00 00 00 E3 [15:59:36]Write i2c OK [15:59:36]MH_I2C_Read... [15:59:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:36]Read from MH i2c: E2 [15:59:36]MH_I2C_Read... [15:59:36]Read from MH i2c: E2 0B 00 [15:59:36]MH_I2C_Read... [15:59:36]Read from MH i2c: E2 0B 00 3B 2D 00 C7 6F EA 71 C3 E0 C8 92 90 00 72 [15:59:36]RAPDU: C7 6F EA 71 C3 E0 C8 92 90 00 [15:59:36]wFMCommunicate OK [15:59:36]SAM_PROTO_SignData done [15:59:36]FM_MakeSignedData done [15:59:36]CreateOFDProtocolMessage [15:59:36]wFMCommunicate request_size=4 [15:59:36]MH_SAM_APDU [15:59:36]CAPDU: 80 11 00 00 [15:59:36]Write to MH i2c: E2 08 00 3C 2D 80 11 00 00 00 00 00 00 E3 [15:59:36]Write i2c OK [15:59:36]MH_I2C_Read... [15:59:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:36]Read from MH i2c: E2 [15:59:36]MH_I2C_Read... [15:59:36]Read from MH i2c: E2 17 00 [15:59:36]MH_I2C_Read... [15:59:36]Read from MH i2c: E2 17 00 3C 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 38 [15:59:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:59:36]wFMCommunicate OK [15:59:36]CreateOFDProtocolMessage done [15:59:36]OFDSenderStorePacket 201577 [15:59:36]StoreOFDPacket docnum=201577 [15:59:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 15 FE 04 01 2E 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 53 01 00 00 F4 03 04 00 E8 11 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 69 13 03 00 35 04 06 00 55 00 D4 20 E7 B0 C7 6F EA 71 C3 E0 C8 92 [15:59:36]CheckFolder [15:59:36]dirname=/storage/ofd_packets [15:59:36]CheckFolder done [15:59:36]ProducePacketName [15:59:36]name=ofd_packets/00201577 [15:59:36]NVStorageSaveData ofd_packets/00201577 [15:59:36]File name is /storage/ofd_packets/00201577 [15:59:36]Write 298 bytes [15:59:36]NVStorageSaveData done [15:59:36]OFDSenderStorePacket done [15:59:36]KKMCreateOFDPacket done [15:59:36]NVStorageSaveData kkm_last_timestamp [15:59:36]File name is /storage/kkm_last_timestamp [15:59:36]Write 4 bytes [15:59:36]NVStorageSaveData done [15:59:36]ExternCall_PrintAddStr [15:59:36]wPrintStart [15:59:36]Write to MH i2c: 01 00 00 3D 2D 6A [15:59:36]Write i2c OK [15:59:36]MH_I2C_Read... [15:59:36]Read from MH i2c: 01 [15:59:36]MH_I2C_Read... [15:59:36]Read from MH i2c: 01 07 00 [15:59:36]MH_I2C_Read... [15:59:36]Read from MH i2c: 01 07 00 3D 2D 00 00 00 00 00 FF 0F 7F [15:59:36]RasterBufferAndPrint [15:59:36]line Счет N : (1)449331 [15:59:36]line ИНН: 02508201610067 [15:59:36]line Контрольно-Кассовый Чек [15:59:36]line ПРОДАЖА [15:59:36]line ТРК (МРК, ГНК) : 33 [15:59:36]line Товар: 2710194210 [15:59:36]line ДТ-К-2 [15:59:36]line 13.130 * 76.20 [15:59:36]line = 1000.51 [15:59:36]line НДС 12% НСП 1% [15:59:36]line > о реализуемом товаре [15:59:36]line ОКРУГЛЕНИЕ: -0.51 [15:59:36]line ИТОГО: 1000.00 [15:59:36]line Внесено: 1000.00 [15:59:36]line СДАЧА: 0.00 [15:59:36]line НСП 1% : 8.85 [15:59:36]line НДС 12% : 106.25 [15:59:36]line Наличными: 1000.00 [15:59:36]line Безнал.: 0.00 [15:59:36]line Место: АЗС № 171 "Партнер Нефть" [15:59:36]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [15:59:36]line СНО: Общий режим [15:59:36]line Чек 339 26.10.2024 15:59 [15:59:36]line Смена: 543 ФФД: 1.0 [15:59:36]line ЗНМ: 0300000109 [15:59:36]line РНМ: 0000000000091777 [15:59:36]line Версия ККМ: 001 [15:59:36]line ФМ: 0000000000871756 [15:59:36]line ФД: 201577 [15:59:36]line ФПД: 93462047287216 [15:59:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T155936&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201577&fm=93462047287216&tin=02508201610067®Number=0000000000091777&sum=100000 [15:59:37]OFD Sender: Processing packet 201577 [packets to send 112, broken 111] [15:59:37]ProducePacketName [15:59:37]name=ofd_packets/00201577 [15:59:37]OFD Sender: To server: pG, [15:59:37]CommunicateWithHost lk.salyk.kg:30040 [15:59:37]ConnectInit lk.salyk.kg [15:59:37]written 0, free lines is 4095 [15:59:37]Connected sock=10 [15:59:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 15 FE 04 01 2E 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 53 01 00 00 F4 03 04 00 E8 11 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 69 13 03 00 35 04 06 00 55 00 D4 20 E7 B0 C7 6F EA 71 C3 E0 C8 92 [15:59:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 1F FD 47 00 C2 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 69 13 03 00 F4 03 04 00 91 BD 1C 67 B6 04 01 00 00 7A 70 56 D7 0A C4 6E DE [15:59:37]CommunicateWithHost err = 0 [15:59:37]CheckOFDResponse [15:59:37]1017 (14) - 77093643461234 [15:59:37]1041 (16) - 0000000000871756 [15:59:37]1040 (4) - 201577 [15:59:37]1012 (4) - 26.10.2024 09:59 [15:59:37]1206 (1) - 0 [15:59:37]OFD Sender: Remove packet 201577 [15:59:37]ProducePacketName [15:59:37]name=ofd_packets/00201577 [15:59:37]NVStorageDeleteData [15:59:37]Write to MH i2c: 01 00 00 68 2D 95 [15:59:37]Write i2c OK [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: 01 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: 01 07 00 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: 01 07 00 68 2D 00 00 00 00 00 9D 0C 45 [15:59:37]RasterBufferAndPrint [15:59:37]line [15:59:37]line [15:59:37]line [15:59:37]line [15:59:37]line [15:59:37]written 0, free lines is 3235 [15:59:37]MH_Cut [15:59:37]Write to MH i2c: D1 01 00 6F 2D 01 6E [15:59:37]Write i2c OK [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: D1 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: D1 01 00 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: D1 01 00 6F 2D 00 6D [15:59:37]Write to MH i2c: 01 00 00 70 2D 9D [15:59:37]Write i2c OK [15:59:37]MH_I2C_Read... [15:59:38]OFD Sender: No OFD packet to send [15:59:38]*** Cut start [15:59:38]*** Purtial cut [15:59:38]*** Stage 1: CUTSNS_PIN = 1 [15:59:38]Read from MH i2c: 01 [15:59:38]MH_I2C_Read... [15:59:38]*** Stop cut motor [15:59:38]*** Cut end [15:59:38]Read from MH i2c: 01 07 00 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: 01 07 00 70 2D 00 00 00 00 00 FF 0F B2 [15:59:38]process_action close_receipt done [15:59:38]requested_data is exist [15:59:38]produce_requested_data [15:59:38]requested_item fm.sn is exist - process it [15:59:38]wFMCommunicate request_size=4 [15:59:38]MH_SAM_APDU [15:59:38]CAPDU: 80 11 00 00 [15:59:38]Write to MH i2c: E2 08 00 71 2D 80 11 00 00 00 00 00 00 18 [15:59:38]Write i2c OK [15:59:38]MH_I2C_Read... [15:59:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:38]Read from MH i2c: E2 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: E2 17 00 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: E2 17 00 71 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6D [15:59:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [15:59:38]wFMCommunicate OK [15:59:38]requested_item fd.num is exist - process it [15:59:38]SAM_PROTO_GetFieldsCounters [15:59:38]wFMCommunicate request_size=4 [15:59:38]MH_SAM_APDU [15:59:38]CAPDU: 80 13 00 00 [15:59:38]Write to MH i2c: E2 08 00 72 2D 80 13 00 00 00 00 00 00 1B [15:59:38]Write i2c OK [15:59:38]MH_I2C_Read... [15:59:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:39]Read from MH i2c: E2 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: E2 62 00 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: E2 62 00 72 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 69 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 E0 [15:59:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 69 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:39]wFMCommunicate OK [15:59:39]SAM_PROTO_GetFieldsCounters done [15:59:39]requested_item shift.num is exist - process it [15:59:39]requested_item shift.opened is exist - process it [15:59:39]req_shift_opened [15:59:39]FM_GetShiftState [15:59:39]SAM_PROTO_GetShiftState [15:59:39]wFMCommunicate request_size=4 [15:59:39]MH_SAM_APDU [15:59:39]CAPDU: 80 13 01 00 [15:59:39]Write to MH i2c: E2 08 00 73 2D 80 13 01 00 00 00 00 00 1D [15:59:39]Write i2c OK [15:59:39]MH_I2C_Read... [15:59:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:39]Read from MH i2c: E2 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: E2 0E 00 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: E2 0E 00 73 2D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 2C [15:59:39]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [15:59:39]wFMCommunicate OK [15:59:39]SAM_PROTO_GetShiftState done [15:59:39]FM_GetShiftState done [15:59:39]req_shift_opened done [15:59:39]requested_item shift.open_date is exist - process it [15:59:39]req_shift_open_date [15:59:39]req_shift_open_date done [15:59:39]produce_requested_data done [15:59:39]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201577,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [15:59:39]process_action_free close_receipt [15:59:39]json_value_free [15:59:39]json_value_free done [15:59:39]process_json_proto returns [15:59:39]Send response to host [15:59:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201577,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [15:59:39]free response buf [15:59:39]execute_script done [15:59:39]execute_script returns [15:59:39]free content buf [15:59:39]Sock 8.Close socket [15:59:39]Sock 8.Thread stoped [15:59:43]OFD Sender: No OFD packet to send [15:59:48]OFD Sender: No OFD packet to send [15:59:53]OFD Sender: No OFD packet to send [15:59:58]OFD Sender: No OFD packet to send [16:00:03]OFD Sender: No OFD packet to send [16:00:03]accept exits with 9 [16:00:03]New connection [16:00:03]New thread 3066690916 created [16:00:03]Thread 3066834276 joined [16:00:03]Waiting for new connection... [16:00:03] Sock 9.Parse request [16:00:03]Sock 9.Check first char [16:00:03]Sock 9.First char is OK [16:00:03]request: POST /json_proto HTTP/1.0 [16:00:03]Method: POST [16:00:03]URL: /json_proto [16:00:03]Method is POST - this is cgi request [16:00:03]url: /json_proto [16:00:03]query_string will be loaded in cgi processing [16:00:03]execute_cgi json_proto POST (null) [16:00:03]execute_cgi path=json_proto method=POST [16:00:03]POST find Content-Length [16:00:03]Host: 172.17.63.195:8080 [16:00:03]Content-Length: 677 [16:00:03]Content-Type: application/json [16:00:03] [16:00:03]POST finish read [16:00:03]Found Content-Length = 677 [16:00:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:00:03]execute_script... [16:00: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)449334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:00:03]POST & json_proto [16:00:03]process_json_proto [16:00:03]json parsed OK: [16:00:03]protocol is kg_v1.0 [16:00:03]action value=close_receipt [16:00:03]process_action close_receipt [16:00:03]cmd_close_receipt [16:00:03]MH_GetDate [16:00:03]Write to MH i2c: F0 00 00 74 2D 90 [16:00:03]Write i2c OK [16:00:03]MH_I2C_Read... [16:00:03]Read from MH i2c: F0 [16:00:03]MH_I2C_Read... [16:00:03]Read from MH i2c: F0 09 00 [16:00:03]MH_I2C_Read... [16:00:03]Read from MH i2c: F0 09 00 74 2D 00 04 12 1D 67 68 46 19 67 61 [16:00:03]GetLastDocTimeStamp 1729958376 [16:00:03]current date 1729958404 [16:00:03]FM_GetShiftState [16:00:03]SAM_PROTO_GetShiftState [16:00:03]wFMCommunicate request_size=4 [16:00:03]MH_SAM_APDU [16:00:03]CAPDU: 80 13 01 00 [16:00:03]Write to MH i2c: E2 08 00 75 2D 80 13 01 00 00 00 00 00 1F [16:00:03]Write i2c OK [16:00:03]MH_I2C_Read... [16:00:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:03]Read from MH i2c: E2 [16:00:03]MH_I2C_Read... [16:00:03]Read from MH i2c: E2 0E 00 [16:00:03]MH_I2C_Read... [16:00:03]Read from MH i2c: E2 0E 00 75 2D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 2E [16:00:03]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:00:03]wFMCommunicate OK [16:00:03]SAM_PROTO_GetShiftState done [16:00:03]FM_GetShiftState done [16:00:03]opened in 1729900879 [16:00:03]opened+sec_in_day 1729987279 [16:00:03]quantity*price = 20003 [16:00:03]sum+1 = 20004 [16:00:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 340 26.10.2024 16:00 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201578 ФПД: 196960280611403 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T160004&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201578&fm=196960280611403&tin=02508201610067®Number=0000000000091777&sum=20000 [16:00:04]StoreToDocumentArchive [16:00:04]shift 543 fd 201578 [16:00:04]save to /storage/0543/doc_00201578 [16:00:04]save last doc name /storage/0543/doc_00201578 to /storage/kkm_last_doc_name [16:00:04]save OK [16:00:04]Clear old archive folders... [16:00:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:00:04]tlvbuf is B6EBD920 [16:00:04]SAM_PROTO_ClearQueue [16:00:04]wFMCommunicate request_size=4 [16:00:04]MH_SAM_APDU [16:00:04]CAPDU: 80 09 00 00 [16:00:04]Write to MH i2c: E2 08 00 82 2D 80 09 00 00 00 00 00 00 21 [16:00:04]Write i2c OK [16:00:04]MH_I2C_Read... [16:00:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:04]Read from MH i2c: E2 [16:00:04]MH_I2C_Read... [16:00:04]Read from MH i2c: E2 03 00 [16:00:04]MH_I2C_Read... [16:00:04]Read from MH i2c: E2 03 00 82 2D 00 90 00 23 [16:00:04]RAPDU: 90 00 [16:00:04]wFMCommunicate OK [16:00:04]SAM_PROTO_ClearQueue done [16:00:04]KKMCreateOFDPacket [16:00:04]OFDProtocolAddRootSTLVToBuf [16:00:04]FM_MakeSignedData [16:00:04]FM_MakeSignedData [16:00:04]SAM_PROTO_SignData [16:00:04]wFMCommunicate request_size=4 [16:00:04]MH_SAM_APDU [16:00:04]CAPDU: 80 0D 01 02 [16:00:04]Write to MH i2c: E2 08 00 83 2D 80 0D 01 02 00 00 00 00 29 [16:00:04]Write i2c OK [16:00:04]MH_I2C_Read... [16:00:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:04]Read from MH i2c: E2 [16:00:04]MH_I2C_Read... [16:00:04]Read from MH i2c: E2 03 00 [16:00:04]MH_I2C_Read... [16:00:04]Read from MH i2c: E2 03 00 83 2D 00 90 00 24 [16:00:04]RAPDU: 90 00 [16:00:04]wFMCommunicate OK [16:00:04]wFMCommunicate request_size=255 [16:00:04]MH_SAM_APDU [16:00: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 32 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 54 01 00 00 F4 03 04 00 04 12 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6A 13 03 00 35 04 06 00 B3 [16:00:04]Write to MH i2c: E2 02 01 84 2D 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 32 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 54 01 00 00 F4 03 04 00 04 12 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6A 13 03 00 35 04 06 00 B3 00 00 C2 [16:00:04]Write i2c OK [16:00:04]MH_I2C_Read... [16:00:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:04]Read from MH i2c: E2 [16:00:04]MH_I2C_Read... [16:00:04]Read from MH i2c: E2 03 00 [16:00:04]MH_I2C_Read... [16:00:04]Read from MH i2c: E2 03 00 84 2D 00 90 00 25 [16:00:04]RAPDU: 90 00 [16:00:04]wFMCommunicate OK [16:00:04]wFMCommunicate request_size=10 [16:00:04]MH_SAM_APDU [16:00:04]CAPDU: 80 0D 02 02 05 22 63 8F 8A 4B [16:00:04]Write to MH i2c: E2 0D 00 85 2D 80 0D 02 02 05 00 22 63 8F 8A 4B 00 00 1F [16:00:04]Write i2c OK [16:00:04]MH_I2C_Read... [16:00:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:04]Read from MH i2c: E2 [16:00:04]MH_I2C_Read... [16:00:04]Read from MH i2c: E2 03 00 [16:00:04]MH_I2C_Read... [16:00:04]Read from MH i2c: E2 03 00 85 2D 00 90 00 26 [16:00:04]RAPDU: 90 00 [16:00:04]wFMCommunicate OK [16:00:04]wFMCommunicate request_size=4 [16:00:04]MH_SAM_APDU [16:00:04]CAPDU: 80 0D 03 02 [16:00:04]Write to MH i2c: E2 08 00 86 2D 80 0D 03 02 00 00 00 00 2E [16:00:04]Write i2c OK [16:00:04]MH_I2C_Read... [16:00:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:04]Read from MH i2c: E2 [16:00:04]MH_I2C_Read... [16:00:04]Read from MH i2c: E2 0B 00 [16:00:04]MH_I2C_Read... [16:00:04]Read from MH i2c: E2 0B 00 86 2D 00 2A 80 F6 E7 0C 7A 1E 70 90 00 CA [16:00:04]RAPDU: 2A 80 F6 E7 0C 7A 1E 70 90 00 [16:00:04]wFMCommunicate OK [16:00:04]SAM_PROTO_SignData done [16:00:04]FM_MakeSignedData done [16:00:04]CreateOFDProtocolMessage [16:00:04]wFMCommunicate request_size=4 [16:00:04]MH_SAM_APDU [16:00:04]CAPDU: 80 11 00 00 [16:00:04]Write to MH i2c: E2 08 00 87 2D 80 11 00 00 00 00 00 00 2E [16:00:04]Write i2c OK [16:00:04]MH_I2C_Read... [16:00:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:05]Read from MH i2c: E2 [16:00:05]MH_I2C_Read... [16:00:05]Read from MH i2c: E2 17 00 [16:00:05]MH_I2C_Read... [16:00:05]Read from MH i2c: E2 17 00 87 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 83 [16:00:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:00:05]wFMCommunicate OK [16:00:05]CreateOFDProtocolMessage done [16:00:05]OFDSenderStorePacket 201578 [16:00:05]StoreOFDPacket docnum=201578 [16:00:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 9F A5 07 01 93 C8 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 32 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 54 01 00 00 F4 03 04 00 04 12 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6A 13 03 00 35 04 06 00 B3 22 63 8F 8A 4B 2A 80 F6 E7 0C 7A 1E 70 [16:00:05]CheckFolder [16:00:05]dirname=/storage/ofd_packets [16:00:05]CheckFolder done [16:00:05]ProducePacketName [16:00:05]name=ofd_packets/00201578 [16:00:05]NVStorageSaveData ofd_packets/00201578 [16:00:05]File name is /storage/ofd_packets/00201578 [16:00:05]Write 301 bytes [16:00:05]NVStorageSaveData done [16:00:05]OFDSenderStorePacket done [16:00:05]KKMCreateOFDPacket done [16:00:05]NVStorageSaveData kkm_last_timestamp [16:00:05]File name is /storage/kkm_last_timestamp [16:00:05]Write 4 bytes [16:00:05]NVStorageSaveData done [16:00:05]ExternCall_PrintAddStr [16:00:05]wPrintStart [16:00:05]Write to MH i2c: 01 00 00 88 2D B5 [16:00:05]Write i2c OK [16:00:05]MH_I2C_Read... [16:00:05]Read from MH i2c: 01 [16:00:05]MH_I2C_Read... [16:00:05]Read from MH i2c: 01 07 00 [16:00:05]MH_I2C_Read... [16:00:05]Read from MH i2c: 01 07 00 88 2D 00 00 00 00 00 FF 0F CA [16:00:05]RasterBufferAndPrint [16:00:05]line Счет N : (1)449334 [16:00:05]line ИНН: 02508201610067 [16:00:05]line Контрольно-Кассовый Чек [16:00:05]line ПРОДАЖА [16:00:05]line ТРК (МРК, ГНК) : 52 [16:00:05]line Товар: 2710124130 [16:00:05]line Аи-92-К-2 [16:00:05]line 2.990 * 66.90 [16:00:05]line = 200.03 [16:00:05]line НДС 12% НСП 1% [16:00:05]line > о реализуемом товаре [16:00:05]line ОКРУГЛЕНИЕ: -0.03 [16:00:05]line ИТОГО: 200.00 [16:00:05]line Внесено: 200.00 [16:00:05]line СДАЧА: 0.00 [16:00:05]line НСП 1% : 1.77 [16:00:05]line НДС 12% : 21.24 [16:00:05]line Наличными: 200.00 [16:00:05]line Безнал.: 0.00 [16:00:05]line Место: АЗС № 171 "Партнер Нефть" [16:00:05]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:00:05]line СНО: Общий режим [16:00:05]line Чек 340 26.10.2024 16:00 [16:00:05]line Смена: 543 ФФД: 1.0 [16:00:05]line ЗНМ: 0300000109 [16:00:05]line РНМ: 0000000000091777 [16:00:05]line Версия ККМ: 001 [16:00:05]line ФМ: 0000000000871756 [16:00:05]line ФД: 201578 [16:00:05]line ФПД: 196960280611403 [16:00:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T160004&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201578&fm=196960280611403&tin=02508201610067®Number=0000000000091777&sum=20000 [16:00:05]OFD Sender: Processing packet 201578 [packets to send 112, broken 111] [16:00:05]ProducePacketName [16:00:05]name=ofd_packets/00201578 [16:00:05]OFD Sender: To server: pG, [16:00:05]CommunicateWithHost lk.salyk.kg:30040 [16:00:05]ConnectInit lk.salyk.kg [16:00:05]written 0, free lines is 4095 [16:00:05]Connected sock=10 [16:00:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 9F A5 07 01 93 C8 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 32 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 54 01 00 00 F4 03 04 00 04 12 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6A 13 03 00 35 04 06 00 B3 22 63 8F 8A 4B 2A 80 F6 E7 0C 7A 1E 70 [16:00:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B5 3D 47 00 08 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6A 13 03 00 F4 03 04 00 AD BD 1C 67 B6 04 01 00 00 8A 43 65 BF 42 2D 3E 45 [16:00:05]CommunicateWithHost err = 0 [16:00:05]CheckOFDResponse [16:00:05]1017 (14) - 77093643461234 [16:00:05]1041 (16) - 0000000000871756 [16:00:05]1040 (4) - 201578 [16:00:05]1012 (4) - 26.10.2024 10:00 [16:00:05]1206 (1) - 0 [16:00:05]OFD Sender: Remove packet 201578 [16:00:05]ProducePacketName [16:00:05]name=ofd_packets/00201578 [16:00:05]NVStorageDeleteData [16:00:05]Write to MH i2c: 01 00 00 B3 2D E0 [16:00:05]Write i2c OK [16:00:05]MH_I2C_Read... [16:00:05]Read from MH i2c: 01 [16:00:05]MH_I2C_Read... [16:00:05]Read from MH i2c: 01 07 00 [16:00:05]MH_I2C_Read... [16:00:05]Read from MH i2c: 01 07 00 B3 2D 00 00 00 00 00 93 0C 86 [16:00:05]RasterBufferAndPrint [16:00:05]line [16:00:05]line [16:00:05]line [16:00:05]line [16:00:05]line [16:00:05]written 0, free lines is 3225 [16:00:05]MH_Cut [16:00:05]Write to MH i2c: D1 01 00 BA 2D 01 B9 [16:00:05]Write i2c OK [16:00:05]MH_I2C_Read... [16:00:05]Read from MH i2c: D1 [16:00:05]MH_I2C_Read... [16:00:05]Read from MH i2c: D1 01 00 [16:00:05]MH_I2C_Read... [16:00:05]Read from MH i2c: D1 01 00 BA 2D 00 B8 [16:00:05]Write to MH i2c: 01 00 00 BB 2D E8 [16:00:05]Write i2c OK [16:00:05]MH_I2C_Read... [16:00:06]OFD Sender: No OFD packet to send [16:00:06]*** Cut start [16:00:06]*** Purtial cut [16:00:06]*** Stage 1: CUTSNS_PIN = 1 [16:00:06]Read from MH i2c: 01 [16:00:06]MH_I2C_Read... [16:00:06]*** Stop cut motor [16:00:06]*** Cut end [16:00:06]Read from MH i2c: 01 07 00 [16:00:06]MH_I2C_Read... [16:00:06]Read from MH i2c: 01 07 00 BB 2D 00 00 00 00 00 FF 0F FD [16:00:06]process_action close_receipt done [16:00:06]requested_data is exist [16:00:06]produce_requested_data [16:00:06]requested_item fm.sn is exist - process it [16:00:06]wFMCommunicate request_size=4 [16:00:06]MH_SAM_APDU [16:00:06]CAPDU: 80 11 00 00 [16:00:06]Write to MH i2c: E2 08 00 BC 2D 80 11 00 00 00 00 00 00 63 [16:00:06]Write i2c OK [16:00:06]MH_I2C_Read... [16:00:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:06]Read from MH i2c: E2 [16:00:06]MH_I2C_Read... [16:00:06]Read from MH i2c: E2 17 00 [16:00:06]MH_I2C_Read... [16:00:06]Read from MH i2c: E2 17 00 BC 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B8 [16:00:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:00:06]wFMCommunicate OK [16:00:06]requested_item fd.num is exist - process it [16:00:06]SAM_PROTO_GetFieldsCounters [16:00:06]wFMCommunicate request_size=4 [16:00:06]MH_SAM_APDU [16:00:06]CAPDU: 80 13 00 00 [16:00:06]Write to MH i2c: E2 08 00 BD 2D 80 13 00 00 00 00 00 00 66 [16:00:07]Write i2c OK [16:00:07]MH_I2C_Read... [16:00:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:07]Read from MH i2c: E2 [16:00:07]MH_I2C_Read... [16:00:07]Read from MH i2c: E2 62 00 [16:00:07]MH_I2C_Read... [16:00:07]Read from MH i2c: E2 62 00 BD 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6A 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 2F [16:00:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6A 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:00:07]wFMCommunicate OK [16:00:07]SAM_PROTO_GetFieldsCounters done [16:00:07]requested_item shift.num is exist - process it [16:00:07]requested_item shift.opened is exist - process it [16:00:07]req_shift_opened [16:00:07]FM_GetShiftState [16:00:07]SAM_PROTO_GetShiftState [16:00:07]wFMCommunicate request_size=4 [16:00:07]MH_SAM_APDU [16:00:07]CAPDU: 80 13 01 00 [16:00:07]Write to MH i2c: E2 08 00 BE 2D 80 13 01 00 00 00 00 00 68 [16:00:07]Write i2c OK [16:00:07]MH_I2C_Read... [16:00:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:07]Read from MH i2c: E2 [16:00:07]MH_I2C_Read... [16:00:07]Read from MH i2c: E2 0E 00 [16:00:07]MH_I2C_Read... [16:00:07]Read from MH i2c: E2 0E 00 BE 2D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 77 [16:00:07]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:00:07]wFMCommunicate OK [16:00:07]SAM_PROTO_GetShiftState done [16:00:07]FM_GetShiftState done [16:00:07]req_shift_opened done [16:00:07]requested_item shift.open_date is exist - process it [16:00:07]req_shift_open_date [16:00:07]req_shift_open_date done [16:00:07]produce_requested_data done [16:00:07]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201578,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [16:00:07]process_action_free close_receipt [16:00:07]json_value_free [16:00:07]json_value_free done [16:00:07]process_json_proto returns [16:00:07]Send response to host [16:00:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201578,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [16:00:07]free response buf [16:00:07]execute_script done [16:00:07]execute_script returns [16:00:07]free content buf [16:00:07]Sock 9.Close socket [16:00:07]Sock 9.Thread stoped [16:00:11]OFD Sender: No OFD packet to send [16:00:16]OFD Sender: No OFD packet to send [16:00:21]OFD Sender: No OFD packet to send [16:00:26]OFD Sender: No OFD packet to send [16:00:31]OFD Sender: No OFD packet to send [16:00:35]accept exits with 8 [16:00:35]New connection [16:00:35]New thread 3066834276 created [16:00:35]Thread 3066690916 joined [16:00:35]Waiting for new connection... [16:00:35] Sock 8.Parse request [16:00:35]Sock 8.Check first char [16:00:35]Sock 8.First char is OK [16:00:35]request: POST /json_proto HTTP/1.0 [16:00:35]Method: POST [16:00:35]URL: /json_proto [16:00:35]Method is POST - this is cgi request [16:00:35]url: /json_proto [16:00:35]query_string will be loaded in cgi processing [16:00:35]execute_cgi json_proto POST (null) [16:00:35]execute_cgi path=json_proto method=POST [16:00:35]POST find Content-Length [16:00:35]Host: 172.17.63.195:8080 [16:00:35]Content-Length: 682 [16:00:35]Content-Type: application/json [16:00:35] [16:00:35]POST finish read [16:00:35]Found Content-Length = 682 [16:00:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:00:35]execute_script... [16:00: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)449333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:00:35]POST & json_proto [16:00:35]process_json_proto [16:00:35]json parsed OK: [16:00:35]protocol is kg_v1.0 [16:00:35]action value=close_receipt [16:00:35]process_action close_receipt [16:00:35]cmd_close_receipt [16:00:35]MH_GetDate [16:00:35]Write to MH i2c: F0 00 00 BF 2D DB [16:00:35]Write i2c OK [16:00:35]MH_I2C_Read... [16:00:35]Read from MH i2c: F0 [16:00:35]MH_I2C_Read... [16:00:35]Read from MH i2c: F0 09 00 [16:00:35]MH_I2C_Read... [16:00:35]Read from MH i2c: F0 09 00 BF 2D 00 24 12 1D 67 68 46 19 67 CC [16:00:35]GetLastDocTimeStamp 1729958404 [16:00:35]current date 1729958436 [16:00:35]FM_GetShiftState [16:00:35]SAM_PROTO_GetShiftState [16:00:35]wFMCommunicate request_size=4 [16:00:35]MH_SAM_APDU [16:00:35]CAPDU: 80 13 01 00 [16:00:35]Write to MH i2c: E2 08 00 C0 2D 80 13 01 00 00 00 00 00 6A [16:00:35]Write i2c OK [16:00:35]MH_I2C_Read... [16:00:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:35]Read from MH i2c: E2 [16:00:35]MH_I2C_Read... [16:00:35]Read from MH i2c: E2 0E 00 [16:00:35]MH_I2C_Read... [16:00:35]Read from MH i2c: E2 0E 00 C0 2D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 79 [16:00:35]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:00:35]wFMCommunicate OK [16:00:35]SAM_PROTO_GetShiftState done [16:00:35]FM_GetShiftState done [16:00:35]opened in 1729900879 [16:00:35]opened+sec_in_day 1729987279 [16:00:35]quantity*price = 100015 [16:00:35]sum+1 = 100017 [16:00:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 341 26.10.2024 16:00 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201579 ФПД: 224734022127744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T160036&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201579&fm=224734022127744&tin=02508201610067®Number=0000000000091777&sum=100000 [16:00:36]StoreToDocumentArchive [16:00:36]shift 543 fd 201579 [16:00:36]save to /storage/0543/doc_00201579 [16:00:36]save last doc name /storage/0543/doc_00201579 to /storage/kkm_last_doc_name [16:00:36]save OK [16:00:36]Clear old archive folders... [16:00:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:00:36]tlvbuf is 01FAC070 [16:00:36]SAM_PROTO_ClearQueue [16:00:36]wFMCommunicate request_size=4 [16:00:36]MH_SAM_APDU [16:00:36]CAPDU: 80 09 00 00 [16:00:36]Write to MH i2c: E2 08 00 CD 2D 80 09 00 00 00 00 00 00 6C [16:00:36]Write i2c OK [16:00:36]MH_I2C_Read... [16:00:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:36]Read from MH i2c: E2 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: E2 03 00 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: E2 03 00 CD 2D 00 90 00 6E [16:00:36]RAPDU: 90 00 [16:00:36]wFMCommunicate OK [16:00:36]SAM_PROTO_ClearQueue done [16:00:36]KKMCreateOFDPacket [16:00:36]OFDProtocolAddRootSTLVToBuf [16:00:36]FM_MakeSignedData [16:00:36]FM_MakeSignedData [16:00:36]SAM_PROTO_SignData [16:00:36]wFMCommunicate request_size=4 [16:00:36]MH_SAM_APDU [16:00:36]CAPDU: 80 0D 01 02 [16:00:36]Write to MH i2c: E2 08 00 CE 2D 80 0D 01 02 00 00 00 00 74 [16:00:36]Write i2c OK [16:00:36]MH_I2C_Read... [16:00:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:36]Read from MH i2c: E2 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: E2 03 00 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: E2 03 00 CE 2D 00 90 00 6F [16:00:36]RAPDU: 90 00 [16:00:36]wFMCommunicate OK [16:00:36]wFMCommunicate request_size=255 [16:00:36]MH_SAM_APDU [16:00: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 32 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 55 01 00 00 F4 03 04 00 24 12 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6B 13 03 00 35 04 06 00 CC [16:00:36]Write to MH i2c: E2 02 01 CF 2D 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 32 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 55 01 00 00 F4 03 04 00 24 12 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6B 13 03 00 35 04 06 00 CC 00 00 80 [16:00:36]Write i2c OK [16:00:36]MH_I2C_Read... [16:00:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:36]Read from MH i2c: E2 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: E2 03 00 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: E2 03 00 CF 2D 00 90 00 70 [16:00:36]RAPDU: 90 00 [16:00:36]wFMCommunicate OK [16:00:36]wFMCommunicate request_size=10 [16:00:36]MH_SAM_APDU [16:00:36]CAPDU: 80 0D 02 02 05 64 F7 8E D0 80 [16:00:36]Write to MH i2c: E2 0D 00 D0 2D 80 0D 02 02 05 00 64 F7 8E D0 80 00 00 BA [16:00:36]Write i2c OK [16:00:36]MH_I2C_Read... [16:00:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:36]Read from MH i2c: E2 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: E2 03 00 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: E2 03 00 D0 2D 00 90 00 71 [16:00:36]RAPDU: 90 00 [16:00:36]wFMCommunicate OK [16:00:36]wFMCommunicate request_size=4 [16:00:36]MH_SAM_APDU [16:00:36]CAPDU: 80 0D 03 02 [16:00:36]Write to MH i2c: E2 08 00 D1 2D 80 0D 03 02 00 00 00 00 79 [16:00:36]Write i2c OK [16:00:36]MH_I2C_Read... [16:00:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:36]Read from MH i2c: E2 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: E2 0B 00 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: E2 0B 00 D1 2D 00 AA 78 12 4C B9 1E 6E A3 90 00 E2 [16:00:36]RAPDU: AA 78 12 4C B9 1E 6E A3 90 00 [16:00:36]wFMCommunicate OK [16:00:36]SAM_PROTO_SignData done [16:00:36]FM_MakeSignedData done [16:00:36]CreateOFDProtocolMessage [16:00:36]wFMCommunicate request_size=4 [16:00:36]MH_SAM_APDU [16:00:36]CAPDU: 80 11 00 00 [16:00:36]Write to MH i2c: E2 08 00 D2 2D 80 11 00 00 00 00 00 00 79 [16:00:36]Write i2c OK [16:00:36]MH_I2C_Read... [16:00:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:36]Read from MH i2c: E2 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: E2 17 00 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: E2 17 00 D2 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CE [16:00:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:00:36]wFMCommunicate OK [16:00:36]CreateOFDProtocolMessage done [16:00:36]OFDSenderStorePacket 201579 [16:00:36]StoreOFDPacket docnum=201579 [16:00:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8C 26 07 01 12 72 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 32 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 55 01 00 00 F4 03 04 00 24 12 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6B 13 03 00 35 04 06 00 CC 64 F7 8E D0 80 AA 78 12 4C B9 1E 6E A3 [16:00:36]CheckFolder [16:00:36]dirname=/storage/ofd_packets [16:00:36]CheckFolder done [16:00:36]ProducePacketName [16:00:36]name=ofd_packets/00201579 [16:00:36]NVStorageSaveData ofd_packets/00201579 [16:00:36]File name is /storage/ofd_packets/00201579 [16:00:36]Write 301 bytes [16:00:36]NVStorageSaveData done [16:00:36]OFDSenderStorePacket done [16:00:36]KKMCreateOFDPacket done [16:00:36]NVStorageSaveData kkm_last_timestamp [16:00:36]File name is /storage/kkm_last_timestamp [16:00:36]Write 4 bytes [16:00:36]NVStorageSaveData done [16:00:36]ExternCall_PrintAddStr [16:00:36]wPrintStart [16:00:36]Write to MH i2c: 01 00 00 D3 2D 00 [16:00:36]Write i2c OK [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: 01 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: 01 07 00 [16:00:36]MH_I2C_Read... [16:00:36]Read from MH i2c: 01 07 00 D3 2D 00 00 00 00 00 FF 0F 15 [16:00:36]RasterBufferAndPrint [16:00:36]line Счет N : (1)449333 [16:00:36]line ИНН: 02508201610067 [16:00:36]line Контрольно-Кассовый Чек [16:00:36]line ПРОДАЖА [16:00:36]line ТРК (МРК, ГНК) : 62 [16:00:36]line Товар: 2710124130 [16:00:36]line Аи-92-К-2 [16:00:36]line 14.950 * 66.90 [16:00:36]line = 1000.16 [16:00:36]line НДС 12% НСП 1% [16:00:36]line > о реализуемом товаре [16:00:36]line ОКРУГЛЕНИЕ: -0.16 [16:00:36]line ИТОГО: 1000.00 [16:00:36]line Внесено: 1000.00 [16:00:36]line СДАЧА: 0.00 [16:00:36]line НСП 1% : 8.85 [16:00:36]line НДС 12% : 106.21 [16:00:36]line Наличными: 1000.00 [16:00:36]line Безнал.: 0.00 [16:00:36]line Место: АЗС № 171 "Партнер Нефть" [16:00:36]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:00:36]line СНО: Общий режим [16:00:36]line Чек 341 26.10.2024 16:00 [16:00:36]line Смена: 543 ФФД: 1.0 [16:00:36]line ЗНМ: 0300000109 [16:00:36]line РНМ: 0000000000091777 [16:00:36]line Версия ККМ: 001 [16:00:36]line ФМ: 0000000000871756 [16:00:36]line ФД: 201579 [16:00:36]line ФПД: 224734022127744 [16:00:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T160036&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201579&fm=224734022127744&tin=02508201610067®Number=0000000000091777&sum=100000 [16:00:37]OFD Sender: Processing packet 201579 [packets to send 112, broken 111] [16:00:37]ProducePacketName [16:00:37]name=ofd_packets/00201579 [16:00:37]OFD Sender: To server: pG, [16:00:37]CommunicateWithHost lk.salyk.kg:30040 [16:00:37]ConnectInit lk.salyk.kg [16:00:37]written 0, free lines is 4095 [16:00:37]Write to MH i2c: 01 00 00 FE 2D 2B [16:00:37]Write i2c OK [16:00:37]MH_I2C_Read... [16:00:37]Read from MH i2c: 01 [16:00:37]MH_I2C_Read... [16:00:37]Read from MH i2c: 01 07 00 [16:00:37]MH_I2C_Read... [16:00:37]Read from MH i2c: 01 07 00 FE 2D 00 00 00 00 00 90 0C CE [16:00:37]RasterBufferAndPrint [16:00:37]line [16:00:37]line [16:00:37]line [16:00:37]line [16:00:37]line [16:00:37]written 0, free lines is 3220 [16:00:37]MH_Cut [16:00:37]Write to MH i2c: D1 01 00 05 2E 01 05 [16:00:37]Write i2c OK [16:00:37]MH_I2C_Read... [16:00:37]Read from MH i2c: D1 [16:00:37]MH_I2C_Read... [16:00:37]Read from MH i2c: D1 01 00 [16:00:37]MH_I2C_Read... [16:00:37]Read from MH i2c: D1 01 00 05 2E 00 04 [16:00:37]Write to MH i2c: 01 00 00 06 2E 34 [16:00:37]Write i2c OK [16:00:37]MH_I2C_Read... [16:00:38]*** Cut start [16:00:38]*** Purtial cut [16:00:38]*** Stage 1: CUTSNS_PIN = 1 [16:00:38]Read from MH i2c: 01 [16:00:38]MH_I2C_Read... [16:00:38]*** Stop cut motor [16:00:38]*** Cut end [16:00:38]Read from MH i2c: 01 07 00 [16:00:38]MH_I2C_Read... [16:00:38]Read from MH i2c: 01 07 00 06 2E 00 00 00 00 00 FF 0F 49 [16:00:38]process_action close_receipt done [16:00:38]requested_data is exist [16:00:38]produce_requested_data [16:00:38]requested_item fm.sn is exist - process it [16:00:38]wFMCommunicate request_size=4 [16:00:38]MH_SAM_APDU [16:00:38]CAPDU: 80 11 00 00 [16:00:38]Write to MH i2c: E2 08 00 07 2E 80 11 00 00 00 00 00 00 AF [16:00:38]Write i2c OK [16:00:38]MH_I2C_Read... [16:00:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:38]Read from MH i2c: E2 [16:00:38]MH_I2C_Read... [16:00:38]Read from MH i2c: E2 17 00 [16:00:38]MH_I2C_Read... [16:00:38]Read from MH i2c: E2 17 00 07 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 04 [16:00:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:00:38]wFMCommunicate OK [16:00:38]requested_item fd.num is exist - process it [16:00:38]SAM_PROTO_GetFieldsCounters [16:00:38]wFMCommunicate request_size=4 [16:00:38]MH_SAM_APDU [16:00:38]CAPDU: 80 13 00 00 [16:00:38]Write to MH i2c: E2 08 00 08 2E 80 13 00 00 00 00 00 00 B2 [16:00:38]Write i2c OK [16:00:38]MH_I2C_Read... [16:00:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:39]Read from MH i2c: E2 [16:00:39]MH_I2C_Read... [16:00:39]Read from MH i2c: E2 62 00 [16:00:39]MH_I2C_Read... [16:00:39]Read from MH i2c: E2 62 00 08 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6B 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 7F [16:00:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6B 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:00:39]wFMCommunicate OK [16:00:39]SAM_PROTO_GetFieldsCounters done [16:00:39]requested_item shift.num is exist - process it [16:00:39]requested_item shift.opened is exist - process it [16:00:39]req_shift_opened [16:00:39]FM_GetShiftState [16:00:39]SAM_PROTO_GetShiftState [16:00:39]wFMCommunicate request_size=4 [16:00:39]MH_SAM_APDU [16:00:39]CAPDU: 80 13 01 00 [16:00:39]Write to MH i2c: E2 08 00 09 2E 80 13 01 00 00 00 00 00 B4 [16:00:39]Write i2c OK [16:00:39]MH_I2C_Read... [16:00:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:39]Read from MH i2c: E2 [16:00:39]MH_I2C_Read... [16:00:39]Read from MH i2c: E2 0E 00 [16:00:39]MH_I2C_Read... [16:00:39]Read from MH i2c: E2 0E 00 09 2E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C3 [16:00:39]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:00:39]wFMCommunicate OK [16:00:39]SAM_PROTO_GetShiftState done [16:00:39]FM_GetShiftState done [16:00:39]req_shift_opened done [16:00:39]requested_item shift.open_date is exist - process it [16:00:39]req_shift_open_date [16:00:39]req_shift_open_date done [16:00:39]produce_requested_data done [16:00:39]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201579,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [16:00:39]process_action_free close_receipt [16:00:39]json_value_free [16:00:39]json_value_free done [16:00:39]process_json_proto returns [16:00:39]Send response to host [16:00:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201579,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [16:00:39]free response buf [16:00:39]execute_script done [16:00:39]execute_script returns [16:00:39]free content buf [16:00:39]Sock 8.Close socket [16:00:39]Sock 8.Thread stoped [16:02:50]ConnectInit Can't connect to host [16:02:50]CommunicateWithHost connect error [16:02:50]CommunicateWithHost err = -1 [16:02:50]OFD Sender: Server communicate error [16:02:55]OFD Sender: Processing packet 201579 [packets to send 112, broken 111] [16:02:55]ProducePacketName [16:02:55]name=ofd_packets/00201579 [16:02:55]OFD Sender: To server: pG, [16:02:55]CommunicateWithHost lk.salyk.kg:30040 [16:02:55]ConnectInit lk.salyk.kg [16:02:55]Connected sock=8 [16:02:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8C 26 07 01 12 72 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 32 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 55 01 00 00 F4 03 04 00 24 12 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6B 13 03 00 35 04 06 00 CC 64 F7 8E D0 80 AA 78 12 4C B9 1E 6E A3 [16:02:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 48 14 47 00 F5 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6B 13 03 00 F4 03 04 00 57 BE 1C 67 B6 04 01 00 00 F2 84 FD E8 DF 10 0E 67 [16:02:55]CommunicateWithHost err = 0 [16:02:55]CheckOFDResponse [16:02:55]1017 (14) - 77093643461234 [16:02:55]1041 (16) - 0000000000871756 [16:02:55]1040 (4) - 201579 [16:02:55]1012 (4) - 26.10.2024 10:03 [16:02:55]1206 (1) - 0 [16:02:55]OFD Sender: Remove packet 201579 [16:02:55]ProducePacketName [16:02:55]name=ofd_packets/00201579 [16:02:55]NVStorageDeleteData [16:02:56]OFD Sender: No OFD packet to send [16:03:01]OFD Sender: No OFD packet to send [16:03:06]OFD Sender: No OFD packet to send [16:03:11]OFD Sender: No OFD packet to send [16:03:16]OFD Sender: No OFD packet to send [16:03:21]OFD Sender: No OFD packet to send [16:03:23]accept exits with 9 [16:03:23]New connection [16:03:23]New thread 3066690916 created [16:03:23]Thread 3066834276 joined [16:03:23]Waiting for new connection... [16:03:23] Sock 9.Parse request [16:03:23]Sock 9.Check first char [16:03:23]Sock 9.First char is OK [16:03:23]request: POST /json_proto HTTP/1.0 [16:03:23]Method: POST [16:03:23]URL: /json_proto [16:03:23]Method is POST - this is cgi request [16:03:23]url: /json_proto [16:03:23]query_string will be loaded in cgi processing [16:03:23]execute_cgi json_proto POST (null) [16:03:23]execute_cgi path=json_proto method=POST [16:03:23]POST find Content-Length [16:03:23]Host: 172.17.63.195:8080 [16:03:23]Content-Length: 677 [16:03:23]Content-Type: application/json [16:03:23] [16:03:23]POST finish read [16:03:23]Found Content-Length = 677 [16:03:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.140, "sum" : 210.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 210.00, "total" : 210.00, "payments": [ { "type": 0, "sum" : 210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:23]execute_script... [16:03:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.140, "sum" : 210.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 210.00, "total" : 210.00, "payments": [ { "type": 0, "sum" : 210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:23]POST & json_proto [16:03:23]process_json_proto [16:03:23]json parsed OK: [16:03:23]protocol is kg_v1.0 [16:03:23]action value=close_receipt [16:03:23]process_action close_receipt [16:03:23]cmd_close_receipt [16:03:23]MH_GetDate [16:03:23]Write to MH i2c: F0 00 00 0A 2E 27 [16:03:23]Write i2c OK [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: F0 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: F0 09 00 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: F0 09 00 0A 2E 00 CD 12 1D 67 68 46 19 67 C1 [16:03:23]GetLastDocTimeStamp 1729958436 [16:03:23]current date 1729958605 [16:03:23]FM_GetShiftState [16:03:23]SAM_PROTO_GetShiftState [16:03:23]wFMCommunicate request_size=4 [16:03:23]MH_SAM_APDU [16:03:23]CAPDU: 80 13 01 00 [16:03:23]Write to MH i2c: E2 08 00 0B 2E 80 13 01 00 00 00 00 00 B6 [16:03:23]Write i2c OK [16:03:23]MH_I2C_Read... [16:03:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:23]Read from MH i2c: E2 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: E2 0E 00 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: E2 0E 00 0B 2E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C5 [16:03:23]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:03:23]wFMCommunicate OK [16:03:23]SAM_PROTO_GetShiftState done [16:03:23]FM_GetShiftState done [16:03:23]opened in 1729900879 [16:03:23]opened+sec_in_day 1729987279 [16:03:23]quantity*price = 21006 [16:03:23]sum+1 = 21008 [16:03:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 210.00 Внесено: 210.00 СДАЧА: 0.00 НСП 1% : 1.86 НДС 12% : 22.31 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 342 26.10.2024 16:03 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201580 ФПД: 261358902886296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T160325&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201580&fm=261358902886296&tin=02508201610067®Number=0000000000091777&sum=21000 [16:03:24]StoreToDocumentArchive [16:03:24]shift 543 fd 201580 [16:03:24]save to /storage/0543/doc_00201580 [16:03:24]save last doc name /storage/0543/doc_00201580 to /storage/kkm_last_doc_name [16:03:24]save OK [16:03:24]Clear old archive folders... [16:03:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:03:24]tlvbuf is 01F08A70 [16:03:24]SAM_PROTO_ClearQueue [16:03:24]wFMCommunicate request_size=4 [16:03:24]MH_SAM_APDU [16:03:24]CAPDU: 80 09 00 00 [16:03:24]Write to MH i2c: E2 08 00 18 2E 80 09 00 00 00 00 00 00 B8 [16:03:24]Write i2c OK [16:03:24]MH_I2C_Read... [16:03:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:24]Read from MH i2c: E2 [16:03:24]MH_I2C_Read... [16:03:24]Read from MH i2c: E2 03 00 [16:03:24]MH_I2C_Read... [16:03:24]Read from MH i2c: E2 03 00 18 2E 00 90 00 BA [16:03:24]RAPDU: 90 00 [16:03:24]wFMCommunicate OK [16:03:24]SAM_PROTO_ClearQueue done [16:03:24]KKMCreateOFDPacket [16:03:24]OFDProtocolAddRootSTLVToBuf [16:03:24]FM_MakeSignedData [16:03:24]FM_MakeSignedData [16:03:24]SAM_PROTO_SignData [16:03:24]wFMCommunicate request_size=4 [16:03:24]MH_SAM_APDU [16:03:24]CAPDU: 80 0D 01 02 [16:03:24]Write to MH i2c: E2 08 00 19 2E 80 0D 01 02 00 00 00 00 C0 [16:03:24]Write i2c OK [16:03:24]MH_I2C_Read... [16:03:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:24]Read from MH i2c: E2 [16:03:24]MH_I2C_Read... [16:03:24]Read from MH i2c: E2 03 00 [16:03:24]MH_I2C_Read... [16:03:24]Read from MH i2c: E2 03 00 19 2E 00 90 00 BB [16:03:24]RAPDU: 90 00 [16:03:24]wFMCommunicate OK [16:03:24]wFMCommunicate request_size=255 [16:03:24]MH_SAM_APDU [16:03:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 CD 12 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6C 13 03 00 35 04 06 00 ED [16:03:24]Write to MH i2c: E2 02 01 1A 2E 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 32 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 CD 12 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6C 13 03 00 35 04 06 00 ED 00 00 33 [16:03:24]Write i2c OK [16:03:24]MH_I2C_Read... [16:03:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:25]Read from MH i2c: E2 [16:03:25]MH_I2C_Read... [16:03:25]Read from MH i2c: E2 03 00 [16:03:25]MH_I2C_Read... [16:03:25]Read from MH i2c: E2 03 00 1A 2E 00 90 00 BC [16:03:25]RAPDU: 90 00 [16:03:25]wFMCommunicate OK [16:03:25]wFMCommunicate request_size=10 [16:03:25]MH_SAM_APDU [16:03:25]CAPDU: 80 0D 02 02 05 B4 5C 90 BF 98 [16:03:25]Write to MH i2c: E2 0D 00 1B 2E 80 0D 02 02 05 00 B4 5C 90 BF 98 00 00 C4 [16:03:25]Write i2c OK [16:03:25]MH_I2C_Read... [16:03:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:25]Read from MH i2c: E2 [16:03:25]MH_I2C_Read... [16:03:25]Read from MH i2c: E2 03 00 [16:03:25]MH_I2C_Read... [16:03:25]Read from MH i2c: E2 03 00 1B 2E 00 90 00 BD [16:03:25]RAPDU: 90 00 [16:03:25]wFMCommunicate OK [16:03:25]wFMCommunicate request_size=4 [16:03:25]MH_SAM_APDU [16:03:25]CAPDU: 80 0D 03 02 [16:03:25]Write to MH i2c: E2 08 00 1C 2E 80 0D 03 02 00 00 00 00 C5 [16:03:25]Write i2c OK [16:03:25]MH_I2C_Read... [16:03:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:25]Read from MH i2c: E2 [16:03:25]MH_I2C_Read... [16:03:25]Read from MH i2c: E2 0B 00 [16:03:25]MH_I2C_Read... [16:03:25]Read from MH i2c: E2 0B 00 1C 2E 00 8D D7 BC 94 CF B9 57 5E 90 00 B7 [16:03:25]RAPDU: 8D D7 BC 94 CF B9 57 5E 90 00 [16:03:25]wFMCommunicate OK [16:03:25]SAM_PROTO_SignData done [16:03:25]FM_MakeSignedData done [16:03:25]CreateOFDProtocolMessage [16:03:25]wFMCommunicate request_size=4 [16:03:25]MH_SAM_APDU [16:03:25]CAPDU: 80 11 00 00 [16:03:25]Write to MH i2c: E2 08 00 1D 2E 80 11 00 00 00 00 00 00 C5 [16:03:25]Write i2c OK [16:03:25]MH_I2C_Read... [16:03:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:25]Read from MH i2c: E2 [16:03:25]MH_I2C_Read... [16:03:25]Read from MH i2c: E2 17 00 [16:03:25]MH_I2C_Read... [16:03:25]Read from MH i2c: E2 17 00 1D 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1A [16:03:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:03:25]wFMCommunicate OK [16:03:25]CreateOFDProtocolMessage done [16:03:25]OFDSenderStorePacket 201580 [16:03:25]StoreOFDPacket docnum=201580 [16:03:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 2D 12 07 01 03 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 32 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 CD 12 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6C 13 03 00 35 04 06 00 ED B4 5C 90 BF 98 8D D7 BC 94 CF B9 57 5E [16:03:25]CheckFolder [16:03:25]dirname=/storage/ofd_packets [16:03:25]CheckFolder done [16:03:25]ProducePacketName [16:03:25]name=ofd_packets/00201580 [16:03:25]NVStorageSaveData ofd_packets/00201580 [16:03:25]File name is /storage/ofd_packets/00201580 [16:03:25]Write 301 bytes [16:03:25]NVStorageSaveData done [16:03:25]OFDSenderStorePacket done [16:03:25]KKMCreateOFDPacket done [16:03:25]NVStorageSaveData kkm_last_timestamp [16:03:25]File name is /storage/kkm_last_timestamp [16:03:25]Write 4 bytes [16:03:25]NVStorageSaveData done [16:03:25]ExternCall_PrintAddStr [16:03:25]wPrintStart [16:03:25]Write to MH i2c: 01 00 00 1E 2E 4C [16:03:25]Write i2c OK [16:03:25]MH_I2C_Read... [16:03:25]Read from MH i2c: 01 [16:03:25]MH_I2C_Read... [16:03:25]Read from MH i2c: 01 07 00 [16:03:25]MH_I2C_Read... [16:03:25]Read from MH i2c: 01 07 00 1E 2E 00 00 00 00 00 FF 0F 61 [16:03:25]RasterBufferAndPrint [16:03:25]line Счет N : (1)449335 [16:03:25]line ИНН: 02508201610067 [16:03:25]line Контрольно-Кассовый Чек [16:03:25]line ПРОДАЖА [16:03:25]line ТРК (МРК, ГНК) : 41 [16:03:25]line Товар: 2710124130 [16:03:25]line Аи-92-К-2 [16:03:25]line 3.140 * 66.90 [16:03:25]line = 210.07 [16:03:25]line НДС 12% НСП 1% [16:03:25]line > о реализуемом товаре [16:03:25]line ОКРУГЛЕНИЕ: -0.07 [16:03:25]line ИТОГО: 210.00 [16:03:25]line Внесено: 210.00 [16:03:25]line СДАЧА: 0.00 [16:03:25]line НСП 1% : 1.86 [16:03:25]line НДС 12% : 22.31 [16:03:25]line Наличными: 210.00 [16:03:25]line Безнал.: 0.00 [16:03:25]line Место: АЗС № 171 "Партнер Нефть" [16:03:25]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:03:25]line СНО: Общий режим [16:03:25]line Чек 342 26.10.2024 16:03 [16:03:25]line Смена: 543 ФФД: 1.0 [16:03:25]line ЗНМ: 0300000109 [16:03:25]line РНМ: 0000000000091777 [16:03:25]line Версия ККМ: 001 [16:03:25]line ФМ: 0000000000871756 [16:03:25]line ФД: 201580 [16:03:25]line ФПД: 261358902886296 [16:03:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T160325&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201580&fm=261358902886296&tin=02508201610067®Number=0000000000091777&sum=21000 [16:03:25]OFD Sender: Processing packet 201580 [packets to send 112, broken 111] [16:03:25]ProducePacketName [16:03:25]name=ofd_packets/00201580 [16:03:25]OFD Sender: To server: pG, [16:03:25]CommunicateWithHost lk.salyk.kg:30040 [16:03:25]ConnectInit lk.salyk.kg [16:03:25]written 0, free lines is 4095 [16:03:25]Connected sock=10 [16:03:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 2D 12 07 01 03 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 32 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 CD 12 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6C 13 03 00 35 04 06 00 ED B4 5C 90 BF 98 8D D7 BC 94 CF B9 57 5E [16:03:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 51 0E 47 00 8B B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6C 13 03 00 F4 03 04 00 75 BE 1C 67 B6 04 01 00 00 79 F7 6E F8 EB A5 1E 03 [16:03:26]CommunicateWithHost err = 0 [16:03:26]CheckOFDResponse [16:03:26]1017 (14) - 77093643461234 [16:03:26]1041 (16) - 0000000000871756 [16:03:26]1040 (4) - 201580 [16:03:26]1012 (4) - 26.10.2024 10:03 [16:03:26]1206 (1) - 0 [16:03:26]OFD Sender: Remove packet 201580 [16:03:26]ProducePacketName [16:03:26]name=ofd_packets/00201580 [16:03:26]NVStorageDeleteData [16:03:26]Write to MH i2c: 01 00 00 49 2E 77 [16:03:26]Write i2c OK [16:03:26]MH_I2C_Read... [16:03:26]Read from MH i2c: 01 [16:03:26]MH_I2C_Read... [16:03:26]Read from MH i2c: 01 07 00 [16:03:26]MH_I2C_Read... [16:03:26]Read from MH i2c: 01 07 00 49 2E 00 00 00 00 00 99 0C 23 [16:03:26]RasterBufferAndPrint [16:03:26]line [16:03:26]line [16:03:26]line [16:03:26]line [16:03:26]line [16:03:26]written 0, free lines is 3229 [16:03:26]MH_Cut [16:03:26]Write to MH i2c: D1 01 00 50 2E 01 50 [16:03:26]Write i2c OK [16:03:26]MH_I2C_Read... [16:03:26]Read from MH i2c: D1 [16:03:26]MH_I2C_Read... [16:03:26]Read from MH i2c: D1 01 00 [16:03:26]MH_I2C_Read... [16:03:26]Read from MH i2c: D1 01 00 50 2E 00 4F [16:03:26]Write to MH i2c: 01 00 00 51 2E 7F [16:03:26]Write i2c OK [16:03:26]MH_I2C_Read... [16:03:26]OFD Sender: No OFD packet to send [16:03:27]*** Cut start [16:03:27]*** Purtial cut [16:03:27]*** Stage 1: CUTSNS_PIN = 1 [16:03:27]Read from MH i2c: 01 [16:03:27]MH_I2C_Read... [16:03:27]*** Stop cut motor [16:03:27]*** Cut end [16:03:27]Read from MH i2c: 01 07 00 [16:03:27]MH_I2C_Read... [16:03:27]Read from MH i2c: 01 07 00 51 2E 00 00 00 00 00 FF 0F 94 [16:03:27]process_action close_receipt done [16:03:27]requested_data is exist [16:03:27]produce_requested_data [16:03:27]requested_item fm.sn is exist - process it [16:03:27]wFMCommunicate request_size=4 [16:03:27]MH_SAM_APDU [16:03:27]CAPDU: 80 11 00 00 [16:03:27]Write to MH i2c: E2 08 00 52 2E 80 11 00 00 00 00 00 00 FA [16:03:27]Write i2c OK [16:03:27]MH_I2C_Read... [16:03:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:27]Read from MH i2c: E2 [16:03:27]MH_I2C_Read... [16:03:27]Read from MH i2c: E2 17 00 [16:03:27]MH_I2C_Read... [16:03:27]Read from MH i2c: E2 17 00 52 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4F [16:03:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:03:27]wFMCommunicate OK [16:03:27]requested_item fd.num is exist - process it [16:03:27]SAM_PROTO_GetFieldsCounters [16:03:27]wFMCommunicate request_size=4 [16:03:27]MH_SAM_APDU [16:03:27]CAPDU: 80 13 00 00 [16:03:27]Write to MH i2c: E2 08 00 53 2E 80 13 00 00 00 00 00 00 FD [16:03:27]Write i2c OK [16:03:27]MH_I2C_Read... [16:03:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:27]Read from MH i2c: E2 [16:03:27]MH_I2C_Read... [16:03:27]Read from MH i2c: E2 62 00 [16:03:27]MH_I2C_Read... [16:03:27]Read from MH i2c: E2 62 00 53 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6C 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 CE [16:03:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6C 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:03:27]wFMCommunicate OK [16:03:27]SAM_PROTO_GetFieldsCounters done [16:03:27]requested_item shift.num is exist - process it [16:03:27]requested_item shift.opened is exist - process it [16:03:27]req_shift_opened [16:03:27]FM_GetShiftState [16:03:27]SAM_PROTO_GetShiftState [16:03:27]wFMCommunicate request_size=4 [16:03:27]MH_SAM_APDU [16:03:27]CAPDU: 80 13 01 00 [16:03:27]Write to MH i2c: E2 08 00 54 2E 80 13 01 00 00 00 00 00 FF [16:03:27]Write i2c OK [16:03:27]MH_I2C_Read... [16:03:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:27]Read from MH i2c: E2 [16:03:27]MH_I2C_Read... [16:03:27]Read from MH i2c: E2 0E 00 [16:03:27]MH_I2C_Read... [16:03:27]Read from MH i2c: E2 0E 00 54 2E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 0E [16:03:27]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:03:27]wFMCommunicate OK [16:03:27]SAM_PROTO_GetShiftState done [16:03:27]FM_GetShiftState done [16:03:27]req_shift_opened done [16:03:27]requested_item shift.open_date is exist - process it [16:03:27]req_shift_open_date [16:03:27]req_shift_open_date done [16:03:27]produce_requested_data done [16:03:27]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201580,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [16:03:27]process_action_free close_receipt [16:03:27]json_value_free [16:03:27]json_value_free done [16:03:27]process_json_proto returns [16:03:27]Send response to host [16:03:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201580,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [16:03:27]free response buf [16:03:27]execute_script done [16:03:27]execute_script returns [16:03:27]free content buf [16:03:27]Sock 9.Close socket [16:03:27]Sock 9.Thread stoped [16:03:31]OFD Sender: No OFD packet to send [16:03:36]OFD Sender: No OFD packet to send [16:03:41]OFD Sender: No OFD packet to send [16:03:46]OFD Sender: No OFD packet to send [16:03:51]OFD Sender: No OFD packet to send [16:03:56]OFD Sender: No OFD packet to send [16:04:01]OFD Sender: No OFD packet to send [16:04:06]OFD Sender: No OFD packet to send [16:04:11]OFD Sender: No OFD packet to send [16:04:16]OFD Sender: No OFD packet to send [16:04:21]OFD Sender: No OFD packet to send [16:04:26]OFD Sender: No OFD packet to send [16:04:31]OFD Sender: No OFD packet to send [16:04:36]OFD Sender: No OFD packet to send [16:04:41]OFD Sender: No OFD packet to send [16:04:46]OFD Sender: No OFD packet to send [16:04:51]OFD Sender: No OFD packet to send [16:04:56]OFD Sender: No OFD packet to send [16:05:01]OFD Sender: No OFD packet to send [16:05:06]OFD Sender: No OFD packet to send [16:05:11]OFD Sender: No OFD packet to send [16:05:16]OFD Sender: No OFD packet to send [16:05:21]OFD Sender: No OFD packet to send [16:05:26]OFD Sender: No OFD packet to send [16:05:31]OFD Sender: No OFD packet to send [16:05:36]OFD Sender: No OFD packet to send [16:05:41]accept exits with 8 [16:05:41]New connection [16:05:41]New thread 3066834276 created [16:05:41]Thread 3066690916 joined [16:05:41]Waiting for new connection... [16:05:41] Sock 8.Parse request [16:05:41]Sock 8.Check first char [16:05:41]Sock 8.First char is OK [16:05:41]request: POST /json_proto HTTP/1.0 [16:05:41]Method: POST [16:05:41]URL: /json_proto [16:05:41]Method is POST - this is cgi request [16:05:41]url: /json_proto [16:05:41]query_string will be loaded in cgi processing [16:05:41]execute_cgi json_proto POST (null) [16:05:41]execute_cgi path=json_proto method=POST [16:05:41]POST find Content-Length [16:05:41]Host: 172.17.63.195:8080 [16:05:41]Content-Length: 678 [16:05:41]Content-Type: application/json [16:05:41] [16:05:41]POST finish read [16:05:41]Found Content-Length = 678 [16:05:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:41]execute_script... [16:05: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)449336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:41]POST & json_proto [16:05:41]process_json_proto [16:05:41]json parsed OK: [16:05:41]protocol is kg_v1.0 [16:05:41]action value=close_receipt [16:05:41]process_action close_receipt [16:05:41]cmd_close_receipt [16:05:41]MH_GetDate [16:05:41]Write to MH i2c: F0 00 00 55 2E 72 [16:05:41]Write i2c OK [16:05:41]MH_I2C_Read... [16:05:41]Read from MH i2c: F0 [16:05:41]MH_I2C_Read... [16:05:41]Read from MH i2c: F0 09 00 [16:05:41]MH_I2C_Read... [16:05:41]Read from MH i2c: F0 09 00 55 2E 00 57 13 1D 67 68 46 19 67 97 [16:05:41]GetLastDocTimeStamp 1729958605 [16:05:41]current date 1729958743 [16:05:41]FM_GetShiftState [16:05:41]SAM_PROTO_GetShiftState [16:05:41]wFMCommunicate request_size=4 [16:05:41]MH_SAM_APDU [16:05:41]CAPDU: 80 13 01 00 [16:05:41]Write to MH i2c: E2 08 00 56 2E 80 13 01 00 00 00 00 00 01 [16:05:41]Write i2c OK [16:05:41]MH_I2C_Read... [16:05:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:41]Read from MH i2c: E2 [16:05:41]MH_I2C_Read... [16:05:41]Read from MH i2c: E2 0E 00 [16:05:41]MH_I2C_Read... [16:05:41]Read from MH i2c: E2 0E 00 56 2E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 10 [16:05:41]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:05:41]wFMCommunicate OK [16:05:41]SAM_PROTO_GetShiftState done [16:05:41]FM_GetShiftState done [16:05:41]opened in 1729900879 [16:05:41]opened+sec_in_day 1729987279 [16:05:41]quantity*price = 80012 [16:05:41]sum+1 = 80013 [16:05:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 343 26.10.2024 16:05 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201581 ФПД: 17956953566954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T160543&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201581&fm=17956953566954&tin=02508201610067®Number=0000000000091777&sum=80000 [16:05:42]StoreToDocumentArchive [16:05:42]shift 543 fd 201581 [16:05:42]save to /storage/0543/doc_00201581 [16:05:42]save last doc name /storage/0543/doc_00201581 to /storage/kkm_last_doc_name [16:05:42]save OK [16:05:42]Clear old archive folders... [16:05:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:05:42]tlvbuf is B6F38070 [16:05:42]SAM_PROTO_ClearQueue [16:05:42]wFMCommunicate request_size=4 [16:05:42]MH_SAM_APDU [16:05:42]CAPDU: 80 09 00 00 [16:05:42]Write to MH i2c: E2 08 00 63 2E 80 09 00 00 00 00 00 00 03 [16:05:42]Write i2c OK [16:05:42]MH_I2C_Read... [16:05:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:42]Read from MH i2c: E2 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: E2 03 00 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: E2 03 00 63 2E 00 90 00 05 [16:05:42]RAPDU: 90 00 [16:05:42]wFMCommunicate OK [16:05:42]SAM_PROTO_ClearQueue done [16:05:42]KKMCreateOFDPacket [16:05:42]OFDProtocolAddRootSTLVToBuf [16:05:42]FM_MakeSignedData [16:05:42]FM_MakeSignedData [16:05:42]SAM_PROTO_SignData [16:05:42]wFMCommunicate request_size=4 [16:05:42]MH_SAM_APDU [16:05:42]CAPDU: 80 0D 01 02 [16:05:42]Write to MH i2c: E2 08 00 64 2E 80 0D 01 02 00 00 00 00 0B [16:05:42]Write i2c OK [16:05:42]MH_I2C_Read... [16:05:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:42]Read from MH i2c: E2 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: E2 03 00 [16:05:42]MH_I2C_Read... [16:05:42]Read from MH i2c: E2 03 00 64 2E 00 90 00 06 [16:05:42]RAPDU: 90 00 [16:05:42]wFMCommunicate OK [16:05:42]wFMCommunicate request_size=255 [16:05:42]MH_SAM_APDU [16:05:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 57 13 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6D 13 03 00 35 04 06 00 10 [16:05:42]Write to MH i2c: E2 02 01 65 2E 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 57 13 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6D 13 03 00 35 04 06 00 10 00 00 85 [16:05:42]Write i2c OK [16:05:42]MH_I2C_Read... [16:05:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:43]Read from MH i2c: E2 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: E2 03 00 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: E2 03 00 65 2E 00 90 00 07 [16:05:43]RAPDU: 90 00 [16:05:43]wFMCommunicate OK [16:05:43]wFMCommunicate request_size=10 [16:05:43]MH_SAM_APDU [16:05:43]CAPDU: 80 0D 02 02 05 54 ED D6 AE EA [16:05:43]Write to MH i2c: E2 0D 00 66 2E 80 0D 02 02 05 00 54 ED D6 AE EA 00 00 C7 [16:05:43]Write i2c OK [16:05:43]MH_I2C_Read... [16:05:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:43]Read from MH i2c: E2 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: E2 03 00 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: E2 03 00 66 2E 00 90 00 08 [16:05:43]RAPDU: 90 00 [16:05:43]wFMCommunicate OK [16:05:43]wFMCommunicate request_size=4 [16:05:43]MH_SAM_APDU [16:05:43]CAPDU: 80 0D 03 02 [16:05:43]Write to MH i2c: E2 08 00 67 2E 80 0D 03 02 00 00 00 00 10 [16:05:43]Write i2c OK [16:05:43]MH_I2C_Read... [16:05:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:43]Read from MH i2c: E2 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: E2 0B 00 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: E2 0B 00 67 2E 00 CA 19 9A B2 AA A1 6B ED 90 00 E3 [16:05:43]RAPDU: CA 19 9A B2 AA A1 6B ED 90 00 [16:05:43]wFMCommunicate OK [16:05:43]SAM_PROTO_SignData done [16:05:43]FM_MakeSignedData done [16:05:43]CreateOFDProtocolMessage [16:05:43]wFMCommunicate request_size=4 [16:05:43]MH_SAM_APDU [16:05:43]CAPDU: 80 11 00 00 [16:05:43]Write to MH i2c: E2 08 00 68 2E 80 11 00 00 00 00 00 00 10 [16:05:43]Write i2c OK [16:05:43]MH_I2C_Read... [16:05:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:43]Read from MH i2c: E2 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: E2 17 00 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: E2 17 00 68 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 65 [16:05:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:05:43]wFMCommunicate OK [16:05:43]CreateOFDProtocolMessage done [16:05:43]OFDSenderStorePacket 201581 [16:05:43]StoreOFDPacket docnum=201581 [16:05:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 7C 6B 07 01 B6 0F 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 57 13 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6D 13 03 00 35 04 06 00 10 54 ED D6 AE EA CA 19 9A B2 AA A1 6B ED [16:05:43]CheckFolder [16:05:43]dirname=/storage/ofd_packets [16:05:43]CheckFolder done [16:05:43]ProducePacketName [16:05:43]name=ofd_packets/00201581 [16:05:43]NVStorageSaveData ofd_packets/00201581 [16:05:43]File name is /storage/ofd_packets/00201581 [16:05:43]Write 301 bytes [16:05:43]NVStorageSaveData done [16:05:43]OFDSenderStorePacket done [16:05:43]KKMCreateOFDPacket done [16:05:43]NVStorageSaveData kkm_last_timestamp [16:05:43]File name is /storage/kkm_last_timestamp [16:05:43]Write 4 bytes [16:05:43]NVStorageSaveData done [16:05:43]ExternCall_PrintAddStr [16:05:43]wPrintStart [16:05:43]Write to MH i2c: 01 00 00 69 2E 97 [16:05:43]Write i2c OK [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: 01 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: 01 07 00 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: 01 07 00 69 2E 00 00 00 00 00 FF 0F AC [16:05:43]RasterBufferAndPrint [16:05:43]line Счет N : (1)449336 [16:05:43]line ИНН: 02508201610067 [16:05:43]line Контрольно-Кассовый Чек [16:05:43]line ПРОДАЖА [16:05:43]line ТРК (МРК, ГНК) : 52 [16:05:43]line Товар: 2710124130 [16:05:43]line Аи-92-К-2 [16:05:43]line 11.960 * 66.90 [16:05:43]line = 800.12 [16:05:43]line НДС 12% НСП 1% [16:05:43]line > о реализуемом товаре [16:05:43]line ОКРУГЛЕНИЕ: -0.12 [16:05:43]line ИТОГО: 800.00 [16:05:43]line Внесено: 800.00 [16:05:43]line СДАЧА: 0.00 [16:05:43]line НСП 1% : 7.08 [16:05:43]line НДС 12% : 84.97 [16:05:43]line Наличными: 800.00 [16:05:43]line Безнал.: 0.00 [16:05:43]line Место: АЗС № 171 "Партнер Нефть" [16:05:43]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:05:43]line СНО: Общий режим [16:05:43]line Чек 343 26.10.2024 16:05 [16:05:43]line Смена: 543 ФФД: 1.0 [16:05:43]line ЗНМ: 0300000109 [16:05:43]line РНМ: 0000000000091777 [16:05:43]line Версия ККМ: 001 [16:05:43]line ФМ: 0000000000871756 [16:05:43]line ФД: 201581 [16:05:43]line ФПД: 17956953566954 [16:05:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T160543&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201581&fm=17956953566954&tin=02508201610067®Number=0000000000091777&sum=80000 [16:05:43]OFD Sender: Processing packet 201581 [packets to send 112, broken 111] [16:05:43]ProducePacketName [16:05:43]name=ofd_packets/00201581 [16:05:43]OFD Sender: To server: pG, [16:05:43]CommunicateWithHost lk.salyk.kg:30040 [16:05:43]ConnectInit lk.salyk.kg [16:05:43]written 0, free lines is 4095 [16:05:43]Connected sock=10 [16:05:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 7C 6B 07 01 B6 0F 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 57 13 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6D 13 03 00 35 04 06 00 10 54 ED D6 AE EA CA 19 9A B2 AA A1 6B ED [16:05:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 3E D3 47 00 FC 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 38 37 31 37 35 36 10 04 04 00 6D 13 03 00 F4 03 04 00 FF BE 1C 67 B6 04 01 00 00 09 2F 4A F3 84 50 96 0A [16:05:43]CommunicateWithHost err = 0 [16:05:43]CheckOFDResponse [16:05:43]1017 (14) - 77093643461234 [16:05:43]1041 (16) - 0000000000871756 [16:05:43]1040 (4) - 201581 [16:05:43]1012 (4) - 26.10.2024 10:05 [16:05:43]1206 (1) - 0 [16:05:43]OFD Sender: Remove packet 201581 [16:05:43]ProducePacketName [16:05:43]name=ofd_packets/00201581 [16:05:43]NVStorageDeleteData [16:05:44]Write to MH i2c: 01 00 00 94 2E C2 [16:05:44]Write i2c OK [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: 01 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: 01 07 00 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: 01 07 00 94 2E 00 00 00 00 00 92 0C 67 [16:05:44]RasterBufferAndPrint [16:05:44]line [16:05:44]line [16:05:44]line [16:05:44]line [16:05:44]line [16:05:44]written 0, free lines is 3222 [16:05:44]MH_Cut [16:05:44]Write to MH i2c: D1 01 00 9B 2E 01 9B [16:05:44]Write i2c OK [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: D1 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: D1 01 00 [16:05:44]MH_I2C_Read... [16:05:44]Read from MH i2c: D1 01 00 9B 2E 00 9A [16:05:44]Write to MH i2c: 01 00 00 9C 2E CA [16:05:44]Write i2c OK [16:05:44]MH_I2C_Read... [16:05:44]OFD Sender: No OFD packet to send [16:05:44]*** Cut start [16:05:44]*** Purtial cut [16:05:44]*** Stage 1: CUTSNS_PIN = 1 [16:05:45]Read from MH i2c: 01 [16:05:45]MH_I2C_Read... [16:05:45]*** Stop cut motor [16:05:45]*** Cut end [16:05:45]Read from MH i2c: 01 07 00 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: 01 07 00 9C 2E 00 00 00 00 00 FF 0F DF [16:05:45]process_action close_receipt done [16:05:45]requested_data is exist [16:05:45]produce_requested_data [16:05:45]requested_item fm.sn is exist - process it [16:05:45]wFMCommunicate request_size=4 [16:05:45]MH_SAM_APDU [16:05:45]CAPDU: 80 11 00 00 [16:05:45]Write to MH i2c: E2 08 00 9D 2E 80 11 00 00 00 00 00 00 45 [16:05:45]Write i2c OK [16:05:45]MH_I2C_Read... [16:05:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:45]Read from MH i2c: E2 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: E2 17 00 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: E2 17 00 9D 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9A [16:05:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:05:45]wFMCommunicate OK [16:05:45]requested_item fd.num is exist - process it [16:05:45]SAM_PROTO_GetFieldsCounters [16:05:45]wFMCommunicate request_size=4 [16:05:45]MH_SAM_APDU [16:05:45]CAPDU: 80 13 00 00 [16:05:45]Write to MH i2c: E2 08 00 9E 2E 80 13 00 00 00 00 00 00 48 [16:05:45]Write i2c OK [16:05:45]MH_I2C_Read... [16:05:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:45]Read from MH i2c: E2 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: E2 62 00 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: E2 62 00 9E 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6D 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 1D [16:05:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6D 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:05:45]wFMCommunicate OK [16:05:45]SAM_PROTO_GetFieldsCounters done [16:05:45]requested_item shift.num is exist - process it [16:05:45]requested_item shift.opened is exist - process it [16:05:45]req_shift_opened [16:05:45]FM_GetShiftState [16:05:45]SAM_PROTO_GetShiftState [16:05:45]wFMCommunicate request_size=4 [16:05:45]MH_SAM_APDU [16:05:45]CAPDU: 80 13 01 00 [16:05:45]Write to MH i2c: E2 08 00 9F 2E 80 13 01 00 00 00 00 00 4A [16:05:45]Write i2c OK [16:05:45]MH_I2C_Read... [16:05:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:45]Read from MH i2c: E2 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: E2 0E 00 [16:05:45]MH_I2C_Read... [16:05:45]Read from MH i2c: E2 0E 00 9F 2E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 59 [16:05:45]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:05:45]wFMCommunicate OK [16:05:45]SAM_PROTO_GetShiftState done [16:05:45]FM_GetShiftState done [16:05:45]req_shift_opened done [16:05:45]requested_item shift.open_date is exist - process it [16:05:45]req_shift_open_date [16:05:45]req_shift_open_date done [16:05:45]produce_requested_data done [16:05:45]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201581,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [16:05:45]process_action_free close_receipt [16:05:45]json_value_free [16:05:45]json_value_free done [16:05:45]process_json_proto returns [16:05:45]Send response to host [16:05:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201581,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [16:05:45]free response buf [16:05:45]execute_script done [16:05:45]execute_script returns [16:05:45]free content buf [16:05:45]Sock 8.Close socket [16:05:45]Sock 8.Thread stoped [16:05:49]OFD Sender: No OFD packet to send [16:05:54]OFD Sender: No OFD packet to send [16:05:59]OFD Sender: No OFD packet to send [16:06:04]OFD Sender: No OFD packet to send [16:06:09]OFD Sender: No OFD packet to send [16:06:14]OFD Sender: No OFD packet to send [16:06:19]OFD Sender: No OFD packet to send [16:06:24]OFD Sender: No OFD packet to send [16:06:29]OFD Sender: No OFD packet to send [16:06:34]OFD Sender: No OFD packet to send [16:06:39]OFD Sender: No OFD packet to send [16:06:44]OFD Sender: No OFD packet to send [16:06:49]OFD Sender: No OFD packet to send [16:06:52]accept exits with 9 [16:06:52]New connection [16:06:52]New thread 3066690916 created [16:06:52]Thread 3066834276 joined [16:06:52]Waiting for new connection... [16:06:52] Sock 9.Parse request [16:06:52]Sock 9.Check first char [16:06:52]Sock 9.First char is OK [16:06:52]request: POST /json_proto HTTP/1.0 [16:06:52]Method: POST [16:06:52]URL: /json_proto [16:06:52]Method is POST - this is cgi request [16:06:52]url: /json_proto [16:06:52]query_string will be loaded in cgi processing [16:06:52]execute_cgi json_proto POST (null) [16:06:52]execute_cgi path=json_proto method=POST [16:06:52]POST find Content-Length [16:06:52]Host: 172.17.63.195:8080 [16:06:52]Content-Length: 675 [16:06:52]Content-Type: application/json [16:06:52] [16:06:52]POST finish read [16:06:52]Found Content-Length = 675 [16:06:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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" ] } } [16:06:52]execute_script... [16:06: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)449337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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" ] } } [16:06:52]POST & json_proto [16:06:52]process_json_proto [16:06:52]json parsed OK: [16:06:52]protocol is kg_v1.0 [16:06:52]action value=close_receipt [16:06:52]process_action close_receipt [16:06:52]cmd_close_receipt [16:06:52]MH_GetDate [16:06:52]Write to MH i2c: F0 00 00 A0 2E BD [16:06:52]Write i2c OK [16:06:52]MH_I2C_Read... [16:06:52]Read from MH i2c: F0 [16:06:52]MH_I2C_Read... [16:06:52]Read from MH i2c: F0 09 00 [16:06:52]MH_I2C_Read... [16:06:52]Read from MH i2c: F0 09 00 A0 2E 00 9E 13 1D 67 68 46 19 67 29 [16:06:52]GetLastDocTimeStamp 1729958743 [16:06:52]current date 1729958814 [16:06:52]FM_GetShiftState [16:06:52]SAM_PROTO_GetShiftState [16:06:52]wFMCommunicate request_size=4 [16:06:52]MH_SAM_APDU [16:06:52]CAPDU: 80 13 01 00 [16:06:52]Write to MH i2c: E2 08 00 A1 2E 80 13 01 00 00 00 00 00 4C [16:06:52]Write i2c OK [16:06:52]MH_I2C_Read... [16:06:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:53]Read from MH i2c: E2 [16:06:53]MH_I2C_Read... [16:06:53]Read from MH i2c: E2 0E 00 [16:06:53]MH_I2C_Read... [16:06:53]Read from MH i2c: E2 0E 00 A1 2E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 5B [16:06:53]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:06:53]wFMCommunicate OK [16:06:53]SAM_PROTO_GetShiftState done [16:06:53]FM_GetShiftState done [16:06:53]opened in 1729900879 [16:06:53]opened+sec_in_day 1729987279 [16:06:53]quantity*price = 100000 [16:06:53]sum+1 = 100002 [16:06:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 344 26.10.2024 16:06 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201582 ФПД: 132975541046585 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T160654&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201582&fm=132975541046585&tin=02508201610067®Number=0000000000091777&sum=100000 [16:06:54]StoreToDocumentArchive [16:06:54]shift 543 fd 201582 [16:06:54]save to /storage/0543/doc_00201582 [16:06:54]save last doc name /storage/0543/doc_00201582 to /storage/kkm_last_doc_name [16:06:54]save OK [16:06:54]Clear old archive folders... [16:06:54]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:06:54]tlvbuf is B6D8B5B0 [16:06:54]SAM_PROTO_ClearQueue [16:06:54]wFMCommunicate request_size=4 [16:06:54]MH_SAM_APDU [16:06:54]CAPDU: 80 09 00 00 [16:06:54]Write to MH i2c: E2 08 00 AE 2E 80 09 00 00 00 00 00 00 4E [16:06:54]Write i2c OK [16:06:54]MH_I2C_Read... [16:06:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:54]Read from MH i2c: E2 [16:06:54]MH_I2C_Read... [16:06:54]Read from MH i2c: E2 03 00 [16:06:54]MH_I2C_Read... [16:06:54]Read from MH i2c: E2 03 00 AE 2E 00 90 00 50 [16:06:54]RAPDU: 90 00 [16:06:54]wFMCommunicate OK [16:06:54]SAM_PROTO_ClearQueue done [16:06:54]KKMCreateOFDPacket [16:06:54]OFDProtocolAddRootSTLVToBuf [16:06:54]FM_MakeSignedData [16:06:54]FM_MakeSignedData [16:06:54]SAM_PROTO_SignData [16:06:54]wFMCommunicate request_size=4 [16:06:54]MH_SAM_APDU [16:06:54]CAPDU: 80 0D 01 02 [16:06:54]Write to MH i2c: E2 08 00 AF 2E 80 0D 01 02 00 00 00 00 56 [16:06:54]Write i2c OK [16:06:54]MH_I2C_Read... [16:06:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:54]Read from MH i2c: E2 [16:06:54]MH_I2C_Read... [16:06:54]Read from MH i2c: E2 03 00 [16:06:54]MH_I2C_Read... [16:06:54]Read from MH i2c: E2 03 00 AF 2E 00 90 00 51 [16:06:54]RAPDU: 90 00 [16:06:54]wFMCommunicate OK [16:06:54]wFMCommunicate request_size=255 [16:06:54]MH_SAM_APDU [16:06:54]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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 58 01 00 00 F4 03 04 00 9E 13 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6E 13 03 00 35 04 06 00 [16:06:54]Write to MH i2c: E2 02 01 B0 2E 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 58 01 00 00 F4 03 04 00 9E 13 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6E 13 03 00 35 04 06 00 00 00 F2 [16:06:54]Write i2c OK [16:06:54]MH_I2C_Read... [16:06:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:54]Read from MH i2c: E2 [16:06:54]MH_I2C_Read... [16:06:54]Read from MH i2c: E2 03 00 [16:06:54]MH_I2C_Read... [16:06:54]Read from MH i2c: E2 03 00 B0 2E 00 90 00 52 [16:06:54]RAPDU: 90 00 [16:06:54]wFMCommunicate OK [16:06:54]wFMCommunicate request_size=11 [16:06:54]MH_SAM_APDU [16:06:54]CAPDU: 80 0D 02 02 06 78 F0 C7 E3 4D 39 [16:06:54]Write to MH i2c: E2 0E 00 B1 2E 80 0D 02 02 06 00 78 F0 C7 E3 4D 39 00 00 FD [16:06:54]Write i2c OK [16:06:54]MH_I2C_Read... [16:06:54]OFD Sender: No OFD packet to send [16:06:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:54]Read from MH i2c: E2 [16:06:54]MH_I2C_Read... [16:06:54]Read from MH i2c: E2 03 00 [16:06:54]MH_I2C_Read... [16:06:54]Read from MH i2c: E2 03 00 B1 2E 00 90 00 53 [16:06:54]RAPDU: 90 00 [16:06:54]wFMCommunicate OK [16:06:54]wFMCommunicate request_size=4 [16:06:54]MH_SAM_APDU [16:06:54]CAPDU: 80 0D 03 02 [16:06:54]Write to MH i2c: E2 08 00 B2 2E 80 0D 03 02 00 00 00 00 5B [16:06:54]Write i2c OK [16:06:54]MH_I2C_Read... [16:06:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:54]Read from MH i2c: E2 [16:06:54]MH_I2C_Read... [16:06:54]Read from MH i2c: E2 0B 00 [16:06:54]MH_I2C_Read... [16:06:54]Read from MH i2c: E2 0B 00 B2 2E 00 55 D2 F9 C8 CC D5 AB CA 90 00 5A [16:06:54]RAPDU: 55 D2 F9 C8 CC D5 AB CA 90 00 [16:06:54]wFMCommunicate OK [16:06:54]SAM_PROTO_SignData done [16:06:54]FM_MakeSignedData done [16:06:54]CreateOFDProtocolMessage [16:06:54]wFMCommunicate request_size=4 [16:06:54]MH_SAM_APDU [16:06:54]CAPDU: 80 11 00 00 [16:06:54]Write to MH i2c: E2 08 00 B3 2E 80 11 00 00 00 00 00 00 5B [16:06:54]Write i2c OK [16:06:54]MH_I2C_Read... [16:06:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:54]Read from MH i2c: E2 [16:06:54]MH_I2C_Read... [16:06:54]Read from MH i2c: E2 17 00 [16:06:54]MH_I2C_Read... [16:06:54]Read from MH i2c: E2 17 00 B3 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B0 [16:06:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:06:54]wFMCommunicate OK [16:06:54]CreateOFDProtocolMessage done [16:06:54]OFDSenderStorePacket 201582 [16:06:54]StoreOFDPacket docnum=201582 [16:06:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 90 F7 08 01 B4 BC 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 58 01 00 00 F4 03 04 00 9E 13 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6E 13 03 00 35 04 06 00 78 F0 C7 E3 4D 39 55 D2 F9 C8 CC D5 AB CA [16:06:54]CheckFolder [16:06:54]dirname=/storage/ofd_packets [16:06:54]CheckFolder done [16:06:54]ProducePacketName [16:06:54]name=ofd_packets/00201582 [16:06:54]NVStorageSaveData ofd_packets/00201582 [16:06:54]File name is /storage/ofd_packets/00201582 [16:06:54]Write 302 bytes [16:06:54]NVStorageSaveData done [16:06:54]OFDSenderStorePacket done [16:06:54]KKMCreateOFDPacket done [16:06:54]NVStorageSaveData kkm_last_timestamp [16:06:54]File name is /storage/kkm_last_timestamp [16:06:54]Write 4 bytes [16:06:54]NVStorageSaveData done [16:06:54]ExternCall_PrintAddStr [16:06:54]wPrintStart [16:06:54]Write to MH i2c: 01 00 00 B4 2E E2 [16:06:54]Write i2c OK [16:06:54]MH_I2C_Read... [16:06:54]Read from MH i2c: 01 [16:06:54]MH_I2C_Read... [16:06:54]Read from MH i2c: 01 07 00 [16:06:54]MH_I2C_Read... [16:06:54]Read from MH i2c: 01 07 00 B4 2E 00 00 00 00 00 FF 0F F7 [16:06:54]RasterBufferAndPrint [16:06:54]line Счет N : (1)449337 [16:06:54]line ИНН: 02508201610067 [16:06:54]line Контрольно-Кассовый Чек [16:06:54]line ПРОДАЖА [16:06:54]line ТРК (МРК, ГНК) : 42 [16:06:54]line Товар: 2710124130 [16:06:54]line SUPER 92-К-5 [16:06:54]line 14.620 * 68.40 [16:06:54]line = 1000.01 [16:06:54]line НДС 12% НСП 1% [16:06:54]line > о реализуемом товаре [16:06:54]line ОКРУГЛЕНИЕ: -0.01 [16:06:54]line ИТОГО: 1000.00 [16:06:54]line Внесено: 1000.00 [16:06:54]line СДАЧА: 0.00 [16:06:54]line НСП 1% : 8.85 [16:06:54]line НДС 12% : 106.20 [16:06:54]line Наличными: 1000.00 [16:06:54]line Безнал.: 0.00 [16:06:54]line Место: АЗС № 171 "Партнер Нефть" [16:06:54]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:06:54]line СНО: Общий режим [16:06:54]line Чек 344 26.10.2024 16:06 [16:06:54]line Смена: 543 ФФД: 1.0 [16:06:54]line ЗНМ: 0300000109 [16:06:54]line РНМ: 0000000000091777 [16:06:54]line Версия ККМ: 001 [16:06:54]line ФМ: 0000000000871756 [16:06:54]line ФД: 201582 [16:06:54]line ФПД: 132975541046585 [16:06:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T160654&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201582&fm=132975541046585&tin=02508201610067®Number=0000000000091777&sum=100000 [16:06:55]OFD Sender: Processing packet 201582 [packets to send 112, broken 111] [16:06:55]ProducePacketName [16:06:55]name=ofd_packets/00201582 [16:06:55]OFD Sender: To server: pG, [16:06:55]CommunicateWithHost lk.salyk.kg:30040 [16:06:55]ConnectInit lk.salyk.kg [16:06:55]written 0, free lines is 4095 [16:06:55]Connected sock=10 [16:06:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 90 F7 08 01 B4 BC 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 58 01 00 00 F4 03 04 00 9E 13 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6E 13 03 00 35 04 06 00 78 F0 C7 E3 4D 39 55 D2 F9 C8 CC D5 AB CA [16:06:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 16 CE 47 00 61 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6E 13 03 00 F4 03 04 00 47 BF 1C 67 B6 04 01 00 00 13 51 4B 0A 72 4D 4B 46 [16:06:55]CommunicateWithHost err = 0 [16:06:55]CheckOFDResponse [16:06:55]1017 (14) - 77093643461234 [16:06:55]1041 (16) - 0000000000871756 [16:06:55]1040 (4) - 201582 [16:06:55]1012 (4) - 26.10.2024 10:07 [16:06:55]1206 (1) - 0 [16:06:55]OFD Sender: Remove packet 201582 [16:06:55]ProducePacketName [16:06:55]name=ofd_packets/00201582 [16:06:55]NVStorageDeleteData [16:06:55]Write to MH i2c: 01 00 00 DF 2E 0D [16:06:55]Write i2c OK [16:06:55]MH_I2C_Read... [16:06:55]Read from MH i2c: 01 [16:06:55]MH_I2C_Read... [16:06:55]Read from MH i2c: 01 07 00 [16:06:55]MH_I2C_Read... [16:06:55]Read from MH i2c: 01 07 00 DF 2E 00 00 00 00 00 95 0C B5 [16:06:55]RasterBufferAndPrint [16:06:55]line [16:06:55]line [16:06:55]line [16:06:55]line [16:06:55]line [16:06:55]written 0, free lines is 3225 [16:06:55]MH_Cut [16:06:55]Write to MH i2c: D1 01 00 E6 2E 01 E6 [16:06:55]Write i2c OK [16:06:55]MH_I2C_Read... [16:06:55]Read from MH i2c: D1 [16:06:55]MH_I2C_Read... [16:06:55]Read from MH i2c: D1 01 00 [16:06:55]MH_I2C_Read... [16:06:55]Read from MH i2c: D1 01 00 E6 2E 00 E5 [16:06:55]Write to MH i2c: 01 00 00 E7 2E 15 [16:06:55]Write i2c OK [16:06:55]MH_I2C_Read... [16:06:55]OFD Sender: No OFD packet to send [16:06:56]*** Cut start [16:06:56]*** Purtial cut [16:06:56]*** CUTSNS_PIN = 0 [16:06:56]*** Stage 1: CUTSNS_PIN = 1 [16:06:58]Read from MH i2c: 01 [16:06:58]MH_I2C_Read... [16:06:58]*** Stop cut motor [16:06:58]*** Cut end [16:06:58]Read from MH i2c: 01 07 00 [16:06:58]MH_I2C_Read... [16:06:58]Read from MH i2c: 01 07 00 E7 2E 00 00 00 00 00 FF 0F 2A [16:06:58]process_action close_receipt done [16:06:58]requested_data is exist [16:06:58]produce_requested_data [16:06:58]requested_item fm.sn is exist - process it [16:06:58]wFMCommunicate request_size=4 [16:06:58]MH_SAM_APDU [16:06:58]CAPDU: 80 11 00 00 [16:06:58]Write to MH i2c: E2 08 00 E8 2E 80 11 00 00 00 00 00 00 90 [16:06:58]Write i2c OK [16:06:58]MH_I2C_Read... [16:06:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:58]Read from MH i2c: E2 [16:06:58]MH_I2C_Read... [16:06:58]Read from MH i2c: E2 17 00 [16:06:58]MH_I2C_Read... [16:06:58]Read from MH i2c: E2 17 00 E8 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E5 [16:06:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:06:58]wFMCommunicate OK [16:06:58]requested_item fd.num is exist - process it [16:06:58]SAM_PROTO_GetFieldsCounters [16:06:58]wFMCommunicate request_size=4 [16:06:58]MH_SAM_APDU [16:06:58]CAPDU: 80 13 00 00 [16:06:58]Write to MH i2c: E2 08 00 E9 2E 80 13 00 00 00 00 00 00 93 [16:06:58]Write i2c OK [16:06:58]MH_I2C_Read... [16:06:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:58]Read from MH i2c: E2 [16:06:58]MH_I2C_Read... [16:06:58]Read from MH i2c: E2 62 00 [16:06:58]MH_I2C_Read... [16:06:58]Read from MH i2c: E2 62 00 E9 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6E 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 6C [16:06:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6E 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:06:58]wFMCommunicate OK [16:06:58]SAM_PROTO_GetFieldsCounters done [16:06:58]requested_item shift.num is exist - process it [16:06:58]requested_item shift.opened is exist - process it [16:06:58]req_shift_opened [16:06:58]FM_GetShiftState [16:06:58]SAM_PROTO_GetShiftState [16:06:58]wFMCommunicate request_size=4 [16:06:58]MH_SAM_APDU [16:06:58]CAPDU: 80 13 01 00 [16:06:58]Write to MH i2c: E2 08 00 EA 2E 80 13 01 00 00 00 00 00 95 [16:06:58]Write i2c OK [16:06:58]MH_I2C_Read... [16:06:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:58]Read from MH i2c: E2 [16:06:58]MH_I2C_Read... [16:06:58]Read from MH i2c: E2 0E 00 [16:06:58]MH_I2C_Read... [16:06:58]Read from MH i2c: E2 0E 00 EA 2E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 A4 [16:06:58]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:06:58]wFMCommunicate OK [16:06:58]SAM_PROTO_GetShiftState done [16:06:58]FM_GetShiftState done [16:06:58]req_shift_opened done [16:06:58]requested_item shift.open_date is exist - process it [16:06:58]req_shift_open_date [16:06:58]req_shift_open_date done [16:06:58]produce_requested_data done [16:06:58]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201582,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [16:06:58]process_action_free close_receipt [16:06:58]json_value_free [16:06:58]json_value_free done [16:06:58]process_json_proto returns [16:06:58]Send response to host [16:06:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201582,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [16:06:58]free response buf [16:06:58]execute_script done [16:06:58]execute_script returns [16:06:58]free content buf [16:06:58]Sock 9.Close socket [16:06:58]Sock 9.Thread stoped [16:07:00]OFD Sender: No OFD packet to send [16:07:05]OFD Sender: No OFD packet to send [16:07:10]OFD Sender: No OFD packet to send [16:07:15]OFD Sender: No OFD packet to send [16:07:20]OFD Sender: No OFD packet to send [16:07:25]OFD Sender: No OFD packet to send [16:07:30]OFD Sender: No OFD packet to send [16:07:35]OFD Sender: No OFD packet to send [16:07:40]OFD Sender: No OFD packet to send [16:07:45]OFD Sender: No OFD packet to send [16:07:50]OFD Sender: No OFD packet to send [16:07:55]OFD Sender: No OFD packet to send [16:08:00]OFD Sender: No OFD packet to send [16:08:05]OFD Sender: No OFD packet to send [16:08:10]OFD Sender: No OFD packet to send [16:08:15]OFD Sender: No OFD packet to send [16:08:20]OFD Sender: No OFD packet to send [16:08:25]OFD Sender: No OFD packet to send [16:08:30]OFD Sender: No OFD packet to send [16:08:35]OFD Sender: No OFD packet to send [16:08:38]accept exits with 8 [16:08:38]New connection [16:08:38]New thread 3066834276 created [16:08:38]Thread 3066690916 joined [16:08:38]Waiting for new connection... [16:08:38] Sock 8.Parse request [16:08:38]Sock 8.Check first char [16:08:38]Sock 8.First char is OK [16:08:38]request: POST /json_proto HTTP/1.0 [16:08:38]Method: POST [16:08:38]URL: /json_proto [16:08:38]Method is POST - this is cgi request [16:08:38]url: /json_proto [16:08:38]query_string will be loaded in cgi processing [16:08:38]execute_cgi json_proto POST (null) [16:08:38]execute_cgi path=json_proto method=POST [16:08:38]POST find Content-Length [16:08:38]Host: 172.17.63.195:8080 [16:08:38]Content-Length: 677 [16:08:38]Content-Type: application/json [16:08:38] [16:08:38]POST finish read [16:08:38]Found Content-Length = 677 [16:08:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:08:38]execute_script... [16:08: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)449338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:08:38]POST & json_proto [16:08:38]process_json_proto [16:08:38]json parsed OK: [16:08:38]protocol is kg_v1.0 [16:08:38]action value=close_receipt [16:08:38]process_action close_receipt [16:08:38]cmd_close_receipt [16:08:38]MH_GetDate [16:08:38]Write to MH i2c: F0 00 00 EB 2E 08 [16:08:38]Write i2c OK [16:08:38]MH_I2C_Read... [16:08:38]Read from MH i2c: F0 [16:08:38]MH_I2C_Read... [16:08:38]Read from MH i2c: F0 09 00 [16:08:38]MH_I2C_Read... [16:08:38]Read from MH i2c: F0 09 00 EB 2E 00 07 14 1D 67 68 46 19 67 DE [16:08:38]GetLastDocTimeStamp 1729958814 [16:08:38]current date 1729958919 [16:08:38]FM_GetShiftState [16:08:38]SAM_PROTO_GetShiftState [16:08:38]wFMCommunicate request_size=4 [16:08:38]MH_SAM_APDU [16:08:38]CAPDU: 80 13 01 00 [16:08:38]Write to MH i2c: E2 08 00 EC 2E 80 13 01 00 00 00 00 00 97 [16:08:38]Write i2c OK [16:08:38]MH_I2C_Read... [16:08:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:38]Read from MH i2c: E2 [16:08:38]MH_I2C_Read... [16:08:38]Read from MH i2c: E2 0E 00 [16:08:38]MH_I2C_Read... [16:08:38]Read from MH i2c: E2 0E 00 EC 2E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 A6 [16:08:38]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:08:38]wFMCommunicate OK [16:08:38]SAM_PROTO_GetShiftState done [16:08:38]FM_GetShiftState done [16:08:38]opened in 1729900879 [16:08:38]opened+sec_in_day 1729987279 [16:08:38]quantity*price = 50041 [16:08:38]sum+1 = 50042 [16:08:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 345 26.10.2024 16:08 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201583 ФПД: 45058600573461 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T160839&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201583&fm=45058600573461&tin=02508201610067®Number=0000000000091777&sum=50000 [16:08:39]StoreToDocumentArchive [16:08:39]shift 543 fd 201583 [16:08:39]save to /storage/0543/doc_00201583 [16:08:39]save last doc name /storage/0543/doc_00201583 to /storage/kkm_last_doc_name [16:08:39]save OK [16:08:39]Clear old archive folders... [16:08:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:08:39]tlvbuf is 01F56340 [16:08:39]SAM_PROTO_ClearQueue [16:08:39]wFMCommunicate request_size=4 [16:08:39]MH_SAM_APDU [16:08:39]CAPDU: 80 09 00 00 [16:08:39]Write to MH i2c: E2 08 00 F9 2E 80 09 00 00 00 00 00 00 99 [16:08:39]Write i2c OK [16:08:39]MH_I2C_Read... [16:08:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:39]Read from MH i2c: E2 [16:08:39]MH_I2C_Read... [16:08:39]Read from MH i2c: E2 03 00 [16:08:39]MH_I2C_Read... [16:08:39]Read from MH i2c: E2 03 00 F9 2E 00 90 00 9B [16:08:39]RAPDU: 90 00 [16:08:39]wFMCommunicate OK [16:08:39]SAM_PROTO_ClearQueue done [16:08:39]KKMCreateOFDPacket [16:08:39]OFDProtocolAddRootSTLVToBuf [16:08:39]FM_MakeSignedData [16:08:39]FM_MakeSignedData [16:08:39]SAM_PROTO_SignData [16:08:39]wFMCommunicate request_size=4 [16:08:39]MH_SAM_APDU [16:08:39]CAPDU: 80 0D 01 02 [16:08:39]Write to MH i2c: E2 08 00 FA 2E 80 0D 01 02 00 00 00 00 A1 [16:08:39]Write i2c OK [16:08:39]MH_I2C_Read... [16:08:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:39]Read from MH i2c: E2 [16:08:39]MH_I2C_Read... [16:08:39]Read from MH i2c: E2 03 00 [16:08:39]MH_I2C_Read... [16:08:39]Read from MH i2c: E2 03 00 FA 2E 00 90 00 9C [16:08:39]RAPDU: 90 00 [16:08:39]wFMCommunicate OK [16:08:39]wFMCommunicate request_size=255 [16:08:39]MH_SAM_APDU [16:08:39]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 32 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 59 01 00 00 F4 03 04 00 07 14 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6F 13 03 00 35 04 06 00 28 [16:08:39]Write to MH i2c: E2 02 01 FB 2E 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 32 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 59 01 00 00 F4 03 04 00 07 14 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6F 13 03 00 35 04 06 00 28 00 00 FC [16:08:39]Write i2c OK [16:08:39]MH_I2C_Read... [16:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:39]Read from MH i2c: E2 [16:08:39]MH_I2C_Read... [16:08:39]Read from MH i2c: E2 03 00 [16:08:39]MH_I2C_Read... [16:08:39]Read from MH i2c: E2 03 00 FB 2E 00 90 00 9D [16:08:39]RAPDU: 90 00 [16:08:39]wFMCommunicate OK [16:08:39]wFMCommunicate request_size=10 [16:08:39]MH_SAM_APDU [16:08:39]CAPDU: 80 0D 02 02 05 FB 05 E1 9A 15 [16:08:39]Write to MH i2c: E2 0D 00 FC 2E 80 0D 02 02 05 00 FB 05 E1 9A 15 00 00 3E [16:08:39]Write i2c OK [16:08:39]MH_I2C_Read... [16:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:39]Read from MH i2c: E2 [16:08:39]MH_I2C_Read... [16:08:39]Read from MH i2c: E2 03 00 [16:08:39]MH_I2C_Read... [16:08:39]Read from MH i2c: E2 03 00 FC 2E 00 90 00 9E [16:08:39]RAPDU: 90 00 [16:08:39]wFMCommunicate OK [16:08:39]wFMCommunicate request_size=4 [16:08:39]MH_SAM_APDU [16:08:39]CAPDU: 80 0D 03 02 [16:08:39]Write to MH i2c: E2 08 00 FD 2E 80 0D 03 02 00 00 00 00 A6 [16:08:39]Write i2c OK [16:08:39]MH_I2C_Read... [16:08:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:39]Read from MH i2c: E2 [16:08:39]MH_I2C_Read... [16:08:39]Read from MH i2c: E2 0B 00 [16:08:39]MH_I2C_Read... [16:08:39]Read from MH i2c: E2 0B 00 FD 2E 00 1D 39 D4 07 DB AC 8B 58 90 00 42 [16:08:39]RAPDU: 1D 39 D4 07 DB AC 8B 58 90 00 [16:08:39]wFMCommunicate OK [16:08:39]SAM_PROTO_SignData done [16:08:39]FM_MakeSignedData done [16:08:39]CreateOFDProtocolMessage [16:08:39]wFMCommunicate request_size=4 [16:08:39]MH_SAM_APDU [16:08:39]CAPDU: 80 11 00 00 [16:08:39]Write to MH i2c: E2 08 00 FE 2E 80 11 00 00 00 00 00 00 A6 [16:08:39]Write i2c OK [16:08:39]MH_I2C_Read... [16:08:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:39]Read from MH i2c: E2 [16:08:39]MH_I2C_Read... [16:08:39]Read from MH i2c: E2 17 00 [16:08:39]MH_I2C_Read... [16:08:39]Read from MH i2c: E2 17 00 FE 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FB [16:08:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:08:39]wFMCommunicate OK [16:08:39]CreateOFDProtocolMessage done [16:08:39]OFDSenderStorePacket 201583 [16:08:39]StoreOFDPacket docnum=201583 [16:08:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 95 66 07 01 39 33 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 32 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 59 01 00 00 F4 03 04 00 07 14 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6F 13 03 00 35 04 06 00 28 FB 05 E1 9A 15 1D 39 D4 07 DB AC 8B 58 [16:08:39]CheckFolder [16:08:39]dirname=/storage/ofd_packets [16:08:39]CheckFolder done [16:08:39]ProducePacketName [16:08:39]name=ofd_packets/00201583 [16:08:39]NVStorageSaveData ofd_packets/00201583 [16:08:39]File name is /storage/ofd_packets/00201583 [16:08:39]Write 301 bytes [16:08:39]NVStorageSaveData done [16:08:39]OFDSenderStorePacket done [16:08:39]KKMCreateOFDPacket done [16:08:39]NVStorageSaveData kkm_last_timestamp [16:08:39]File name is /storage/kkm_last_timestamp [16:08:39]Write 4 bytes [16:08:39]NVStorageSaveData done [16:08:39]ExternCall_PrintAddStr [16:08:39]wPrintStart [16:08:39]Write to MH i2c: 01 00 00 FF 2E 2D [16:08:39]Write i2c OK [16:08:39]MH_I2C_Read... [16:08:39]Read from MH i2c: 01 [16:08:39]MH_I2C_Read... [16:08:39]Read from MH i2c: 01 07 00 [16:08:39]MH_I2C_Read... [16:08:39]Read from MH i2c: 01 07 00 FF 2E 00 00 00 00 00 FF 0F 42 [16:08:39]RasterBufferAndPrint [16:08:39]line Счет N : (1)449338 [16:08:39]line ИНН: 02508201610067 [16:08:39]line Контрольно-Кассовый Чек [16:08:39]line ПРОДАЖА [16:08:39]line ТРК (МРК, ГНК) : 52 [16:08:39]line Товар: 2710124130 [16:08:39]line Аи-92-К-2 [16:08:39]line 7.480 * 66.90 [16:08:39]line = 500.41 [16:08:39]line НДС 12% НСП 1% [16:08:39]line > о реализуемом товаре [16:08:39]line ОКРУГЛЕНИЕ: -0.41 [16:08:39]line ИТОГО: 500.00 [16:08:39]line Внесено: 500.00 [16:08:39]line СДАЧА: 0.00 [16:08:39]line НСП 1% : 4.43 [16:08:39]line НДС 12% : 53.14 [16:08:39]line Наличными: 500.00 [16:08:39]line Безнал.: 0.00 [16:08:39]line Место: АЗС № 171 "Партнер Нефть" [16:08:39]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:08:39]line СНО: Общий режим [16:08:39]line Чек 345 26.10.2024 16:08 [16:08:39]line Смена: 543 ФФД: 1.0 [16:08:39]line ЗНМ: 0300000109 [16:08:39]line РНМ: 0000000000091777 [16:08:39]line Версия ККМ: 001 [16:08:39]line ФМ: 0000000000871756 [16:08:39]line ФД: 201583 [16:08:39]line ФПД: 45058600573461 [16:08:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T160839&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201583&fm=45058600573461&tin=02508201610067®Number=0000000000091777&sum=50000 [16:08:40]OFD Sender: Processing packet 201583 [packets to send 112, broken 111] [16:08:40]ProducePacketName [16:08:40]name=ofd_packets/00201583 [16:08:40]OFD Sender: To server: pG, [16:08:40]CommunicateWithHost lk.salyk.kg:30040 [16:08:40]ConnectInit lk.salyk.kg [16:08:40]written 0, free lines is 4095 [16:08:40]Connected sock=9 [16:08:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 95 66 07 01 39 33 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 32 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 59 01 00 00 F4 03 04 00 07 14 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6F 13 03 00 35 04 06 00 28 FB 05 E1 9A 15 1D 39 D4 07 DB AC 8B 58 [16:08:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 41 27 47 00 56 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 6F 13 03 00 F4 03 04 00 B0 BF 1C 67 B6 04 01 00 00 BF 0A 68 D9 D4 DE E0 95 [16:08:40]CommunicateWithHost err = 0 [16:08:40]CheckOFDResponse [16:08:40]1017 (14) - 77093643461234 [16:08:40]1041 (16) - 0000000000871756 [16:08:40]1040 (4) - 201583 [16:08:40]1012 (4) - 26.10.2024 10:08 [16:08:40]1206 (1) - 0 [16:08:40]OFD Sender: Remove packet 201583 [16:08:40]ProducePacketName [16:08:40]name=ofd_packets/00201583 [16:08:40]NVStorageDeleteData [16:08:40]Write to MH i2c: 01 00 00 2A 2F 59 [16:08:40]Write i2c OK [16:08:40]MH_I2C_Read... [16:08:40]Read from MH i2c: 01 [16:08:40]MH_I2C_Read... [16:08:40]Read from MH i2c: 01 07 00 [16:08:40]MH_I2C_Read... [16:08:40]Read from MH i2c: 01 07 00 2A 2F 00 00 00 00 00 95 0C 01 [16:08:40]RasterBufferAndPrint [16:08:40]line [16:08:40]line [16:08:40]line [16:08:40]line [16:08:40]line [16:08:40]written 0, free lines is 3227 [16:08:40]MH_Cut [16:08:40]Write to MH i2c: D1 01 00 31 2F 01 32 [16:08:40]Write i2c OK [16:08:40]MH_I2C_Read... [16:08:40]Read from MH i2c: D1 [16:08:40]MH_I2C_Read... [16:08:40]Read from MH i2c: D1 01 00 [16:08:40]MH_I2C_Read... [16:08:40]Read from MH i2c: D1 01 00 31 2F 00 31 [16:08:40]Write to MH i2c: 01 00 00 32 2F 61 [16:08:40]Write i2c OK [16:08:40]MH_I2C_Read... [16:08:41]OFD Sender: No OFD packet to send [16:08:41]*** Cut start [16:08:41]*** Purtial cut [16:08:41]*** Stage 1: CUTSNS_PIN = 1 [16:08:41]Read from MH i2c: 01 [16:08:41]MH_I2C_Read... [16:08:41]*** Stop cut motor [16:08:41]*** Cut end [16:08:41]Read from MH i2c: 01 07 00 [16:08:41]MH_I2C_Read... [16:08:41]Read from MH i2c: 01 07 00 32 2F 00 00 00 00 00 FF 0F 76 [16:08:41]process_action close_receipt done [16:08:41]requested_data is exist [16:08:41]produce_requested_data [16:08:41]requested_item fm.sn is exist - process it [16:08:41]wFMCommunicate request_size=4 [16:08:41]MH_SAM_APDU [16:08:41]CAPDU: 80 11 00 00 [16:08:41]Write to MH i2c: E2 08 00 33 2F 80 11 00 00 00 00 00 00 DC [16:08:41]Write i2c OK [16:08:41]MH_I2C_Read... [16:08:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:41]Read from MH i2c: E2 [16:08:41]MH_I2C_Read... [16:08:41]Read from MH i2c: E2 17 00 [16:08:41]MH_I2C_Read... [16:08:41]Read from MH i2c: E2 17 00 33 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 31 [16:08:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:08:41]wFMCommunicate OK [16:08:41]requested_item fd.num is exist - process it [16:08:41]SAM_PROTO_GetFieldsCounters [16:08:41]wFMCommunicate request_size=4 [16:08:41]MH_SAM_APDU [16:08:41]CAPDU: 80 13 00 00 [16:08:41]Write to MH i2c: E2 08 00 34 2F 80 13 00 00 00 00 00 00 DF [16:08:41]Write i2c OK [16:08:41]MH_I2C_Read... [16:08:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:42]Read from MH i2c: E2 [16:08:42]MH_I2C_Read... [16:08:42]Read from MH i2c: E2 62 00 [16:08:42]MH_I2C_Read... [16:08:42]Read from MH i2c: E2 62 00 34 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6F 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 BC [16:08:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 6F 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:08:42]wFMCommunicate OK [16:08:42]SAM_PROTO_GetFieldsCounters done [16:08:42]requested_item shift.num is exist - process it [16:08:42]requested_item shift.opened is exist - process it [16:08:42]req_shift_opened [16:08:42]FM_GetShiftState [16:08:42]SAM_PROTO_GetShiftState [16:08:42]wFMCommunicate request_size=4 [16:08:42]MH_SAM_APDU [16:08:42]CAPDU: 80 13 01 00 [16:08:42]Write to MH i2c: E2 08 00 35 2F 80 13 01 00 00 00 00 00 E1 [16:08:42]Write i2c OK [16:08:42]MH_I2C_Read... [16:08:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:42]Read from MH i2c: E2 [16:08:42]MH_I2C_Read... [16:08:42]Read from MH i2c: E2 0E 00 [16:08:42]MH_I2C_Read... [16:08:42]Read from MH i2c: E2 0E 00 35 2F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F0 [16:08:42]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:08:42]wFMCommunicate OK [16:08:42]SAM_PROTO_GetShiftState done [16:08:42]FM_GetShiftState done [16:08:42]req_shift_opened done [16:08:42]requested_item shift.open_date is exist - process it [16:08:42]req_shift_open_date [16:08:42]req_shift_open_date done [16:08:42]produce_requested_data done [16:08:42]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201583,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [16:08:42]process_action_free close_receipt [16:08:42]json_value_free [16:08:42]json_value_free done [16:08:42]process_json_proto returns [16:08:42]Send response to host [16:08:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201583,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [16:08:42]free response buf [16:08:42]execute_script done [16:08:42]execute_script returns [16:08:42]free content buf [16:08:42]Sock 8.Close socket [16:08:42]Sock 8.Thread stoped [16:08:46]OFD Sender: No OFD packet to send [16:08:51]OFD Sender: No OFD packet to send [16:08:56]OFD Sender: No OFD packet to send [16:09:01]OFD Sender: No OFD packet to send [16:09:06]OFD Sender: No OFD packet to send [16:09:11]OFD Sender: No OFD packet to send [16:09:16]OFD Sender: No OFD packet to send [16:09:21]OFD Sender: No OFD packet to send [16:09:26]OFD Sender: No OFD packet to send [16:09:31]OFD Sender: No OFD packet to send [16:09:36]OFD Sender: No OFD packet to send [16:09:41]OFD Sender: No OFD packet to send [16:09:46]OFD Sender: No OFD packet to send [16:09:51]OFD Sender: No OFD packet to send [16:09:56]OFD Sender: No OFD packet to send [16:10:01]OFD Sender: No OFD packet to send [16:10:06]OFD Sender: No OFD packet to send [16:10:11]OFD Sender: No OFD packet to send [16:10:16]OFD Sender: No OFD packet to send [16:10:21]OFD Sender: No OFD packet to send [16:10:26]OFD Sender: No OFD packet to send [16:10:31]OFD Sender: No OFD packet to send [16:10:36]OFD Sender: No OFD packet to send [16:10:41]OFD Sender: No OFD packet to send [16:10:46]OFD Sender: No OFD packet to send [16:10:51]OFD Sender: No OFD packet to send [16:10:56]OFD Sender: No OFD packet to send [16:11:01]OFD Sender: No OFD packet to send [16:11:06]OFD Sender: No OFD packet to send [16:11:11]OFD Sender: No OFD packet to send [16:11:16]OFD Sender: No OFD packet to send [16:11:21]OFD Sender: No OFD packet to send [16:11:26]OFD Sender: No OFD packet to send [16:11:31]OFD Sender: No OFD packet to send [16:11:36]OFD Sender: No OFD packet to send [16:11:41]OFD Sender: No OFD packet to send [16:11:46]OFD Sender: No OFD packet to send [16:11:51]OFD Sender: No OFD packet to send [16:11:56]OFD Sender: No OFD packet to send [16:12:01]OFD Sender: No OFD packet to send [16:12:06]OFD Sender: No OFD packet to send [16:12:08]accept exits with 10 [16:12:08]New connection [16:12:08]New thread 3066690916 created [16:12:08]Thread 3066834276 joined [16:12:08]Waiting for new connection... [16:12:08] Sock 10.Parse request [16:12:08]Sock 10.Check first char [16:12:08]Sock 10.First char is OK [16:12:08]request: POST /json_proto HTTP/1.0 [16:12:08]Method: POST [16:12:08]URL: /json_proto [16:12:08]Method is POST - this is cgi request [16:12:08]url: /json_proto [16:12:08]query_string will be loaded in cgi processing [16:12:08]execute_cgi json_proto POST (null) [16:12:08]execute_cgi path=json_proto method=POST [16:12:08]POST find Content-Length [16:12:08]Host: 172.17.63.195:8080 [16:12:08]Content-Length: 674 [16:12:08]Content-Type: application/json [16:12:08] [16:12:08]POST finish read [16:12:08]Found Content-Length = 674 [16:12:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "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" ] } } [16:12:08]execute_script... [16:12:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "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" ] } } [16:12:08]POST & json_proto [16:12:08]process_json_proto [16:12:08]json parsed OK: [16:12:08]protocol is kg_v1.0 [16:12:08]action value=close_receipt [16:12:08]process_action close_receipt [16:12:08]cmd_close_receipt [16:12:08]MH_GetDate [16:12:08]Write to MH i2c: F0 00 00 36 2F 54 [16:12:08]Write i2c OK [16:12:08]MH_I2C_Read... [16:12:08]Read from MH i2c: F0 [16:12:08]MH_I2C_Read... [16:12:08]Read from MH i2c: F0 09 00 [16:12:08]MH_I2C_Read... [16:12:08]Read from MH i2c: F0 09 00 36 2F 00 DA 14 1D 67 68 46 19 67 FD [16:12:08]GetLastDocTimeStamp 1729958919 [16:12:08]current date 1729959130 [16:12:08]FM_GetShiftState [16:12:08]SAM_PROTO_GetShiftState [16:12:08]wFMCommunicate request_size=4 [16:12:08]MH_SAM_APDU [16:12:08]CAPDU: 80 13 01 00 [16:12:08]Write to MH i2c: E2 08 00 37 2F 80 13 01 00 00 00 00 00 E3 [16:12:08]Write i2c OK [16:12:08]MH_I2C_Read... [16:12:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:08]Read from MH i2c: E2 [16:12:08]MH_I2C_Read... [16:12:08]Read from MH i2c: E2 0E 00 [16:12:08]MH_I2C_Read... [16:12:08]Read from MH i2c: E2 0E 00 37 2F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F2 [16:12:08]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:12:08]wFMCommunicate OK [16:12:08]SAM_PROTO_GetShiftState done [16:12:08]FM_GetShiftState done [16:12:08]opened in 1729900879 [16:12:08]opened+sec_in_day 1729987279 [16:12:08]quantity*price = 70027 [16:12:08]sum+1 = 70029 [16:12:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 346 26.10.2024 16:12 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201584 ФПД: 166335987717524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T161210&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201584&fm=166335987717524&tin=02508201610067®Number=0000000000091777&sum=70000 [16:12:09]StoreToDocumentArchive [16:12:09]shift 543 fd 201584 [16:12:09]save to /storage/0543/doc_00201584 [16:12:09]save last doc name /storage/0543/doc_00201584 to /storage/kkm_last_doc_name [16:12:09]save OK [16:12:09]Clear old archive folders... [16:12:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:12:09]tlvbuf is 01FD4FA0 [16:12:09]SAM_PROTO_ClearQueue [16:12:09]wFMCommunicate request_size=4 [16:12:09]MH_SAM_APDU [16:12:09]CAPDU: 80 09 00 00 [16:12:09]Write to MH i2c: E2 08 00 44 2F 80 09 00 00 00 00 00 00 E5 [16:12:09]Write i2c OK [16:12:09]MH_I2C_Read... [16:12:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:12:10]Read from MH i2c: E2 [16:12:10]MH_I2C_Read... [16:12:10]Read from MH i2c: E2 03 00 [16:12:10]MH_I2C_Read... [16:12:10]Read from MH i2c: E2 03 00 44 2F 00 90 00 E7 [16:12:10]RAPDU: 90 00 [16:12:10]wFMCommunicate OK [16:12:10]SAM_PROTO_ClearQueue done [16:12:10]KKMCreateOFDPacket [16:12:10]OFDProtocolAddRootSTLVToBuf [16:12:10]FM_MakeSignedData [16:12:10]FM_MakeSignedData [16:12:10]SAM_PROTO_SignData [16:12:10]wFMCommunicate request_size=4 [16:12:10]MH_SAM_APDU [16:12:10]CAPDU: 80 0D 01 02 [16:12:10]Write to MH i2c: E2 08 00 45 2F 80 0D 01 02 00 00 00 00 ED [16:12:10]Write i2c OK [16:12:10]MH_I2C_Read... [16:12:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:12:10]Read from MH i2c: E2 [16:12:10]MH_I2C_Read... [16:12:10]Read from MH i2c: E2 03 00 [16:12:10]MH_I2C_Read... [16:12:10]Read from MH i2c: E2 03 00 45 2F 00 90 00 E8 [16:12:10]RAPDU: 90 00 [16:12:10]wFMCommunicate OK [16:12:10]wFMCommunicate request_size=255 [16:12:10]MH_SAM_APDU [16:12:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 5A 01 00 00 F4 03 04 00 DA 14 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 70 13 03 00 35 04 06 00 97 48 1D 76 [16:12:10]Write to MH i2c: E2 02 01 46 2F 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 32 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 5A 01 00 00 F4 03 04 00 DA 14 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 70 13 03 00 35 04 06 00 97 48 1D 76 00 00 59 [16:12:10]Write i2c OK [16:12:10]MH_I2C_Read... [16:12:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:10]Read from MH i2c: E2 [16:12:10]MH_I2C_Read... [16:12:10]Read from MH i2c: E2 03 00 [16:12:10]MH_I2C_Read... [16:12:10]Read from MH i2c: E2 03 00 46 2F 00 90 00 E9 [16:12:10]RAPDU: 90 00 [16:12:10]wFMCommunicate OK [16:12:10]wFMCommunicate request_size=7 [16:12:10]MH_SAM_APDU [16:12:10]CAPDU: 80 0D 02 02 02 15 94 [16:12:10]Write to MH i2c: E2 0A 00 47 2F 80 0D 02 02 02 00 15 94 00 00 9D [16:12:10]Write i2c OK [16:12:10]MH_I2C_Read... [16:12:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:10]Read from MH i2c: E2 [16:12:10]MH_I2C_Read... [16:12:10]Read from MH i2c: E2 03 00 [16:12:10]MH_I2C_Read... [16:12:10]Read from MH i2c: E2 03 00 47 2F 00 90 00 EA [16:12:10]RAPDU: 90 00 [16:12:10]wFMCommunicate OK [16:12:10]wFMCommunicate request_size=4 [16:12:10]MH_SAM_APDU [16:12:10]CAPDU: 80 0D 03 02 [16:12:10]Write to MH i2c: E2 08 00 48 2F 80 0D 03 02 00 00 00 00 F2 [16:12:10]Write i2c OK [16:12:10]MH_I2C_Read... [16:12:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:12:10]Read from MH i2c: E2 [16:12:10]MH_I2C_Read... [16:12:10]Read from MH i2c: E2 0B 00 [16:12:10]MH_I2C_Read... [16:12:10]Read from MH i2c: E2 0B 00 48 2F 00 F1 14 F9 2B 29 E3 0B C7 90 00 FA [16:12:10]RAPDU: F1 14 F9 2B 29 E3 0B C7 90 00 [16:12:10]wFMCommunicate OK [16:12:10]SAM_PROTO_SignData done [16:12:10]FM_MakeSignedData done [16:12:10]CreateOFDProtocolMessage [16:12:10]wFMCommunicate request_size=4 [16:12:10]MH_SAM_APDU [16:12:10]CAPDU: 80 11 00 00 [16:12:10]Write to MH i2c: E2 08 00 49 2F 80 11 00 00 00 00 00 00 F2 [16:12:10]Write i2c OK [16:12:10]MH_I2C_Read... [16:12:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:10]Read from MH i2c: E2 [16:12:10]MH_I2C_Read... [16:12:10]Read from MH i2c: E2 17 00 [16:12:10]MH_I2C_Read... [16:12:10]Read from MH i2c: E2 17 00 49 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 47 [16:12:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:12:10]wFMCommunicate OK [16:12:10]CreateOFDProtocolMessage done [16:12:10]OFDSenderStorePacket 201584 [16:12:10]StoreOFDPacket docnum=201584 [16:12:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 A4 B0 04 01 0D 3D 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 32 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 5A 01 00 00 F4 03 04 00 DA 14 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 70 13 03 00 35 04 06 00 97 48 1D 76 15 94 F1 14 F9 2B 29 E3 0B C7 [16:12:10]CheckFolder [16:12:10]dirname=/storage/ofd_packets [16:12:10]CheckFolder done [16:12:10]ProducePacketName [16:12:10]name=ofd_packets/00201584 [16:12:10]NVStorageSaveData ofd_packets/00201584 [16:12:10]File name is /storage/ofd_packets/00201584 [16:12:10]Write 298 bytes [16:12:10]NVStorageSaveData done [16:12:10]OFDSenderStorePacket done [16:12:10]KKMCreateOFDPacket done [16:12:10]NVStorageSaveData kkm_last_timestamp [16:12:10]File name is /storage/kkm_last_timestamp [16:12:10]Write 4 bytes [16:12:10]NVStorageSaveData done [16:12:10]ExternCall_PrintAddStr [16:12:10]wPrintStart [16:12:10]Write to MH i2c: 01 00 00 4A 2F 79 [16:12:10]Write i2c OK [16:12:10]MH_I2C_Read... [16:12:10]Read from MH i2c: 01 [16:12:10]MH_I2C_Read... [16:12:10]Read from MH i2c: 01 07 00 [16:12:10]MH_I2C_Read... [16:12:10]Read from MH i2c: 01 07 00 4A 2F 00 00 00 00 00 FF 0F 8E [16:12:10]RasterBufferAndPrint [16:12:10]line Счет N : (1)449340 [16:12:10]line ИНН: 02508201610067 [16:12:10]line Контрольно-Кассовый Чек [16:12:10]line ПРОДАЖА [16:12:10]line ТРК (МРК, ГНК) : 21 [16:12:10]line Товар: 2710194210 [16:12:10]line ДТ-К-2 [16:12:10]line 9.190 * 76.20 [16:12:10]line = 700.28 [16:12:10]line НДС 12% НСП 1% [16:12:10]line > о реализуемом товаре [16:12:10]line ОКРУГЛЕНИЕ: -0.28 [16:12:10]line ИТОГО: 700.00 [16:12:10]line Внесено: 700.00 [16:12:10]line СДАЧА: 0.00 [16:12:10]line НСП 1% : 6.20 [16:12:10]line НДС 12% : 74.37 [16:12:10]line Наличными: 700.00 [16:12:10]line Безнал.: 0.00 [16:12:10]line Место: АЗС № 171 "Партнер Нефть" [16:12:10]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:12:10]line СНО: Общий режим [16:12:10]line Чек 346 26.10.2024 16:12 [16:12:10]line Смена: 543 ФФД: 1.0 [16:12:10]line ЗНМ: 0300000109 [16:12:10]line РНМ: 0000000000091777 [16:12:10]line Версия ККМ: 001 [16:12:10]line ФМ: 0000000000871756 [16:12:10]line ФД: 201584 [16:12:10]line ФПД: 166335987717524 [16:12:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T161210&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201584&fm=166335987717524&tin=02508201610067®Number=0000000000091777&sum=70000 [16:12:10]written 0, free lines is 4095 [16:12:10]OFD Sender: Processing packet 201584 [packets to send 112, broken 111] [16:12:10]ProducePacketName [16:12:10]name=ofd_packets/00201584 [16:12:10]OFD Sender: To server: pG, [16:12:10]CommunicateWithHost lk.salyk.kg:30040 [16:12:10]ConnectInit lk.salyk.kg [16:12:10]Connected sock=9 [16:12:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 A4 B0 04 01 0D 3D 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 32 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 5A 01 00 00 F4 03 04 00 DA 14 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 70 13 03 00 35 04 06 00 97 48 1D 76 15 94 F1 14 F9 2B 29 E3 0B C7 [16:12:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 6D 79 47 00 66 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 70 13 03 00 F4 03 04 00 82 C0 1C 67 B6 04 01 00 00 E8 F7 90 5C A9 4E 94 84 [16:12:11]CommunicateWithHost err = 0 [16:12:11]CheckOFDResponse [16:12:11]1017 (14) - 77093643461234 [16:12:11]1041 (16) - 0000000000871756 [16:12:11]1040 (4) - 201584 [16:12:11]1012 (4) - 26.10.2024 10:12 [16:12:11]1206 (1) - 0 [16:12:11]OFD Sender: Remove packet 201584 [16:12:11]ProducePacketName [16:12:11]name=ofd_packets/00201584 [16:12:11]NVStorageDeleteData [16:12:11]Write to MH i2c: 01 00 00 75 2F A4 [16:12:11]Write i2c OK [16:12:11]MH_I2C_Read... [16:12:11]Read from MH i2c: 01 [16:12:11]MH_I2C_Read... [16:12:11]Read from MH i2c: 01 07 00 [16:12:11]MH_I2C_Read... [16:12:11]Read from MH i2c: 01 07 00 75 2F 00 00 00 00 00 8A 0C 41 [16:12:11]RasterBufferAndPrint [16:12:11]line [16:12:11]line [16:12:11]line [16:12:11]line [16:12:11]line [16:12:11]written 0, free lines is 3213 [16:12:11]MH_Cut [16:12:11]Write to MH i2c: D1 01 00 7C 2F 01 7D [16:12:11]Write i2c OK [16:12:11]MH_I2C_Read... [16:12:11]Read from MH i2c: D1 [16:12:11]MH_I2C_Read... [16:12:11]Read from MH i2c: D1 01 00 [16:12:11]MH_I2C_Read... [16:12:11]Read from MH i2c: D1 01 00 7C 2F 00 7C [16:12:11]Write to MH i2c: 01 00 00 7D 2F AC [16:12:11]Write i2c OK [16:12:11]MH_I2C_Read... [16:12:11]OFD Sender: No OFD packet to send [16:12:12]*** Cut start [16:12:12]*** Purtial cut [16:12:12]*** Stage 1: CUTSNS_PIN = 1 [16:12:12]Read from MH i2c: 01 [16:12:12]MH_I2C_Read... [16:12:12]*** Stop cut motor [16:12:12]*** Cut end [16:12:12]Read from MH i2c: 01 07 00 [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: 01 07 00 7D 2F 00 00 00 00 00 FF 0F C1 [16:12:12]process_action close_receipt done [16:12:12]requested_data is exist [16:12:12]produce_requested_data [16:12:12]requested_item fm.sn is exist - process it [16:12:12]wFMCommunicate request_size=4 [16:12:12]MH_SAM_APDU [16:12:12]CAPDU: 80 11 00 00 [16:12:12]Write to MH i2c: E2 08 00 7E 2F 80 11 00 00 00 00 00 00 27 [16:12:12]Write i2c OK [16:12:12]MH_I2C_Read... [16:12:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:12]Read from MH i2c: E2 [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: E2 17 00 [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: E2 17 00 7E 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7C [16:12:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:12:12]wFMCommunicate OK [16:12:12]requested_item fd.num is exist - process it [16:12:12]SAM_PROTO_GetFieldsCounters [16:12:12]wFMCommunicate request_size=4 [16:12:12]MH_SAM_APDU [16:12:12]CAPDU: 80 13 00 00 [16:12:12]Write to MH i2c: E2 08 00 7F 2F 80 13 00 00 00 00 00 00 2A [16:12:12]Write i2c OK [16:12:12]MH_I2C_Read... [16:12:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:12]Read from MH i2c: E2 [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: E2 62 00 [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: E2 62 00 7F 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 70 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 0B [16:12:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 70 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:12:12]wFMCommunicate OK [16:12:12]SAM_PROTO_GetFieldsCounters done [16:12:12]requested_item shift.num is exist - process it [16:12:12]requested_item shift.opened is exist - process it [16:12:12]req_shift_opened [16:12:12]FM_GetShiftState [16:12:12]SAM_PROTO_GetShiftState [16:12:12]wFMCommunicate request_size=4 [16:12:12]MH_SAM_APDU [16:12:12]CAPDU: 80 13 01 00 [16:12:12]Write to MH i2c: E2 08 00 80 2F 80 13 01 00 00 00 00 00 2C [16:12:12]Write i2c OK [16:12:12]MH_I2C_Read... [16:12:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:12]Read from MH i2c: E2 [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: E2 0E 00 [16:12:12]MH_I2C_Read... [16:12:12]Read from MH i2c: E2 0E 00 80 2F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 3B [16:12:12]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:12:12]wFMCommunicate OK [16:12:12]SAM_PROTO_GetShiftState done [16:12:12]FM_GetShiftState done [16:12:12]req_shift_opened done [16:12:12]requested_item shift.open_date is exist - process it [16:12:12]req_shift_open_date [16:12:12]req_shift_open_date done [16:12:12]produce_requested_data done [16:12:12]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201584,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [16:12:12]process_action_free close_receipt [16:12:12]json_value_free [16:12:12]json_value_free done [16:12:12]process_json_proto returns [16:12:12]Send response to host [16:12:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201584,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [16:12:12]free response buf [16:12:12]execute_script done [16:12:12]execute_script returns [16:12:12]free content buf [16:12:12]Sock 10.Close socket [16:12:12]Sock 10.Thread stoped [16:12:16]OFD Sender: No OFD packet to send [16:12:21]OFD Sender: No OFD packet to send [16:12:26]OFD Sender: No OFD packet to send [16:12:31]OFD Sender: No OFD packet to send [16:12:36]OFD Sender: No OFD packet to send [16:12:41]OFD Sender: No OFD packet to send [16:12:46]OFD Sender: No OFD packet to send [16:12:51]OFD Sender: No OFD packet to send [16:12:56]OFD Sender: No OFD packet to send [16:13:01]OFD Sender: No OFD packet to send [16:13:04]accept exits with 8 [16:13:04]New connection [16:13:04]New thread 3066834276 created [16:13:04]Thread 3066690916 joined [16:13:04]Waiting for new connection... [16:13:04] Sock 8.Parse request [16:13:04]Sock 8.Check first char [16:13:04]Sock 8.First char is OK [16:13:04]request: POST /json_proto HTTP/1.0 [16:13:04]Method: POST [16:13:04]URL: /json_proto [16:13:04]Method is POST - this is cgi request [16:13:04]url: /json_proto [16:13:04]query_string will be loaded in cgi processing [16:13:04]execute_cgi json_proto POST (null) [16:13:04]execute_cgi path=json_proto method=POST [16:13:04]POST find Content-Length [16:13:04]Host: 172.17.63.195:8080 [16:13:04]Content-Length: 679 [16:13:04]Content-Type: application/json [16:13:04] [16:13:04]POST finish read [16:13:04]Found Content-Length = 679 [16:13:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 72.180, "sum" : 5500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5500.00, "total" : 5500.00, "payments": [ { "type": 0, "sum" : 5500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:04]execute_script... [16:13: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)449339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 72.180, "sum" : 5500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5500.00, "total" : 5500.00, "payments": [ { "type": 0, "sum" : 5500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:04]POST & json_proto [16:13:04]process_json_proto [16:13:04]json parsed OK: [16:13:04]protocol is kg_v1.0 [16:13:04]action value=close_receipt [16:13:04]process_action close_receipt [16:13:04]cmd_close_receipt [16:13:04]MH_GetDate [16:13:04]Write to MH i2c: F0 00 00 81 2F 9F [16:13:04]Write i2c OK [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: F0 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: F0 09 00 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: F0 09 00 81 2F 00 12 15 1D 67 68 46 19 67 81 [16:13:04]GetLastDocTimeStamp 1729959130 [16:13:04]current date 1729959186 [16:13:04]FM_GetShiftState [16:13:04]SAM_PROTO_GetShiftState [16:13:04]wFMCommunicate request_size=4 [16:13:04]MH_SAM_APDU [16:13:04]CAPDU: 80 13 01 00 [16:13:04]Write to MH i2c: E2 08 00 82 2F 80 13 01 00 00 00 00 00 2E [16:13:04]Write i2c OK [16:13:04]MH_I2C_Read... [16:13:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:04]Read from MH i2c: E2 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: E2 0E 00 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: E2 0E 00 82 2F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 3D [16:13:04]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:13:04]wFMCommunicate OK [16:13:04]SAM_PROTO_GetShiftState done [16:13:04]FM_GetShiftState done [16:13:04]opened in 1729900879 [16:13:04]opened+sec_in_day 1729987279 [16:13:04]quantity*price = 550011 [16:13:04]sum+1 = 550013 [16:13:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 5500.00 Внесено: 5500.00 СДАЧА: 0.00 НСП 1% : 48.67 НДС 12% : 584.08 Наличными: 5500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 347 26.10.2024 16:13 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201585 ФПД: 87127014855128 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T161306&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201585&fm=87127014855128&tin=02508201610067®Number=0000000000091777&sum=550000 [16:13:05]StoreToDocumentArchive [16:13:05]shift 543 fd 201585 [16:13:05]save to /storage/0543/doc_00201585 [16:13:05]save last doc name /storage/0543/doc_00201585 to /storage/kkm_last_doc_name [16:13:05]save OK [16:13:05]Clear old archive folders... [16:13:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:13:05]tlvbuf is 01F0ECD0 [16:13:05]SAM_PROTO_ClearQueue [16:13:05]wFMCommunicate request_size=4 [16:13:05]MH_SAM_APDU [16:13:05]CAPDU: 80 09 00 00 [16:13:05]Write to MH i2c: E2 08 00 8F 2F 80 09 00 00 00 00 00 00 30 [16:13:05]Write i2c OK [16:13:05]MH_I2C_Read... [16:13:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:05]Read from MH i2c: E2 [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: E2 03 00 [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: E2 03 00 8F 2F 00 90 00 32 [16:13:05]RAPDU: 90 00 [16:13:05]wFMCommunicate OK [16:13:05]SAM_PROTO_ClearQueue done [16:13:05]KKMCreateOFDPacket [16:13:05]OFDProtocolAddRootSTLVToBuf [16:13:05]FM_MakeSignedData [16:13:05]FM_MakeSignedData [16:13:05]SAM_PROTO_SignData [16:13:05]wFMCommunicate request_size=4 [16:13:05]MH_SAM_APDU [16:13:05]CAPDU: 80 0D 01 02 [16:13:05]Write to MH i2c: E2 08 00 90 2F 80 0D 01 02 00 00 00 00 38 [16:13:05]Write i2c OK [16:13:05]MH_I2C_Read... [16:13:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:05]Read from MH i2c: E2 [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: E2 03 00 [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: E2 03 00 90 2F 00 90 00 33 [16:13:05]RAPDU: 90 00 [16:13:05]wFMCommunicate OK [16:13:05]wFMCommunicate request_size=255 [16:13:05]MH_SAM_APDU [16:13: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 32 FF 03 08 00 03 F4 19 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 7C 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 E4 00 00 00 00 07 04 06 00 70 64 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 12 15 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 71 13 03 00 35 04 06 00 4F 3D D6 C5 [16:13:05]Write to MH i2c: E2 02 01 91 2F 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 32 FF 03 08 00 03 F4 19 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 7C 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 E4 00 00 00 00 07 04 06 00 70 64 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 12 15 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 71 13 03 00 35 04 06 00 4F 3D D6 C5 00 00 21 [16:13:05]Write i2c OK [16:13:05]MH_I2C_Read... [16:13:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:05]Read from MH i2c: E2 [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: E2 03 00 [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: E2 03 00 91 2F 00 90 00 34 [16:13:05]RAPDU: 90 00 [16:13:05]wFMCommunicate OK [16:13:05]wFMCommunicate request_size=7 [16:13:05]MH_SAM_APDU [16:13:05]CAPDU: 80 0D 02 02 02 51 D8 [16:13:05]Write to MH i2c: E2 0A 00 92 2F 80 0D 02 02 02 00 51 D8 00 00 68 [16:13:05]Write i2c OK [16:13:05]MH_I2C_Read... [16:13:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:06]Read from MH i2c: E2 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: E2 03 00 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: E2 03 00 92 2F 00 90 00 35 [16:13:06]RAPDU: 90 00 [16:13:06]wFMCommunicate OK [16:13:06]wFMCommunicate request_size=4 [16:13:06]MH_SAM_APDU [16:13:06]CAPDU: 80 0D 03 02 [16:13:06]Write to MH i2c: E2 08 00 93 2F 80 0D 03 02 00 00 00 00 3D [16:13:06]Write i2c OK [16:13:06]MH_I2C_Read... [16:13:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:06]Read from MH i2c: E2 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: E2 0B 00 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: E2 0B 00 93 2F 00 2D 30 92 55 3B 60 90 96 90 00 43 [16:13:06]RAPDU: 2D 30 92 55 3B 60 90 96 90 00 [16:13:06]wFMCommunicate OK [16:13:06]SAM_PROTO_SignData done [16:13:06]FM_MakeSignedData done [16:13:06]CreateOFDProtocolMessage [16:13:06]wFMCommunicate request_size=4 [16:13:06]MH_SAM_APDU [16:13:06]CAPDU: 80 11 00 00 [16:13:06]Write to MH i2c: E2 08 00 94 2F 80 11 00 00 00 00 00 00 3D [16:13:06]Write i2c OK [16:13:06]MH_I2C_Read... [16:13:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:06]Read from MH i2c: E2 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: E2 17 00 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: E2 17 00 94 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 92 [16:13:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:13:06]wFMCommunicate OK [16:13:06]CreateOFDProtocolMessage done [16:13:06]OFDSenderStorePacket 201585 [16:13:06]StoreOFDPacket docnum=201585 [16:13:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 A7 07 04 01 E5 6D 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 32 FF 03 08 00 03 F4 19 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 7C 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 E4 00 00 00 00 07 04 06 00 70 64 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 12 15 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 71 13 03 00 35 04 06 00 4F 3D D6 C5 51 D8 2D 30 92 55 3B 60 90 96 [16:13:06]CheckFolder [16:13:06]dirname=/storage/ofd_packets [16:13:06]CheckFolder done [16:13:06]ProducePacketName [16:13:06]name=ofd_packets/00201585 [16:13:06]NVStorageSaveData ofd_packets/00201585 [16:13:06]File name is /storage/ofd_packets/00201585 [16:13:06]Write 298 bytes [16:13:06]NVStorageSaveData done [16:13:06]OFDSenderStorePacket done [16:13:06]KKMCreateOFDPacket done [16:13:06]NVStorageSaveData kkm_last_timestamp [16:13:06]File name is /storage/kkm_last_timestamp [16:13:06]Write 4 bytes [16:13:06]NVStorageSaveData done [16:13:06]ExternCall_PrintAddStr [16:13:06]wPrintStart [16:13:06]Write to MH i2c: 01 00 00 95 2F C4 [16:13:06]Write i2c OK [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: 01 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: 01 07 00 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: 01 07 00 95 2F 00 00 00 00 00 FF 0F D9 [16:13:06]RasterBufferAndPrint [16:13:06]line Счет N : (1)449339 [16:13:06]line ИНН: 02508201610067 [16:13:06]line Контрольно-Кассовый Чек [16:13:06]line ПРОДАЖА [16:13:06]line ТРК (МРК, ГНК) : 33 [16:13:06]line Товар: 2710194210 [16:13:06]line ДТ-К-2 [16:13:06]line 72.180 * 76.20 [16:13:06]line = 5500.12 [16:13:06]line НДС 12% НСП 1% [16:13:06]line > о реализуемом товаре [16:13:06]line ОКРУГЛЕНИЕ: -0.12 [16:13:06]line ИТОГО: 5500.00 [16:13:06]line Внесено: 5500.00 [16:13:06]line СДАЧА: 0.00 [16:13:06]line НСП 1% : 48.67 [16:13:06]line НДС 12% : 584.08 [16:13:06]line Наличными: 5500.00 [16:13:06]line Безнал.: 0.00 [16:13:06]line Место: АЗС № 171 "Партнер Нефть" [16:13:06]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:13:06]line СНО: Общий режим [16:13:06]line Чек 347 26.10.2024 16:13 [16:13:06]line Смена: 543 ФФД: 1.0 [16:13:06]line ЗНМ: 0300000109 [16:13:06]line РНМ: 0000000000091777 [16:13:06]line Версия ККМ: 001 [16:13:06]line ФМ: 0000000000871756 [16:13:06]line ФД: 201585 [16:13:06]line ФПД: 87127014855128 [16:13:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T161306&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201585&fm=87127014855128&tin=02508201610067®Number=0000000000091777&sum=550000 [16:13:06]OFD Sender: Processing packet 201585 [packets to send 112, broken 111] [16:13:06]ProducePacketName [16:13:06]name=ofd_packets/00201585 [16:13:06]OFD Sender: To server: pG, [16:13:06]CommunicateWithHost lk.salyk.kg:30040 [16:13:06]ConnectInit lk.salyk.kg [16:13:06]written 0, free lines is 4095 [16:13:06]Connected sock=10 [16:13:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 A7 07 04 01 E5 6D 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 32 FF 03 08 00 03 F4 19 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 7C 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 E4 00 00 00 00 07 04 06 00 70 64 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 12 15 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 71 13 03 00 35 04 06 00 4F 3D D6 C5 51 D8 2D 30 92 55 3B 60 90 96 [16:13:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 4B 17 47 00 86 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 71 13 03 00 F4 03 04 00 BA C0 1C 67 B6 04 01 00 00 F2 93 BA C4 32 9C CD 89 [16:13:06]CommunicateWithHost err = 0 [16:13:06]CheckOFDResponse [16:13:06]1017 (14) - 77093643461234 [16:13:06]1041 (16) - 0000000000871756 [16:13:06]1040 (4) - 201585 [16:13:06]1012 (4) - 26.10.2024 10:13 [16:13:06]1206 (1) - 0 [16:13:06]OFD Sender: Remove packet 201585 [16:13:06]ProducePacketName [16:13:06]name=ofd_packets/00201585 [16:13:06]NVStorageDeleteData [16:13:06]Write to MH i2c: 01 00 00 C0 2F EF [16:13:06]Write i2c OK [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: 01 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: 01 07 00 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: 01 07 00 C0 2F 00 00 00 00 00 99 0C 9B [16:13:06]RasterBufferAndPrint [16:13:06]line [16:13:06]line [16:13:06]line [16:13:06]line [16:13:06]line [16:13:06]written 0, free lines is 3232 [16:13:06]MH_Cut [16:13:06]Write to MH i2c: D1 01 00 C7 2F 01 C8 [16:13:06]Write i2c OK [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: D1 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: D1 01 00 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: D1 01 00 C7 2F 00 C7 [16:13:06]Write to MH i2c: 01 00 00 C8 2F F7 [16:13:06]Write i2c OK [16:13:06]MH_I2C_Read... [16:13:07]OFD Sender: No OFD packet to send [16:13:07]*** Cut start [16:13:07]*** Purtial cut [16:13:07]*** Stage 1: CUTSNS_PIN = 1 [16:13:08]Read from MH i2c: 01 [16:13:08]MH_I2C_Read... [16:13:08]*** Stop cut motor [16:13:08]*** Cut end [16:13:08]Read from MH i2c: 01 07 00 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: 01 07 00 C8 2F 00 00 00 00 00 FF 0F 0C [16:13:08]process_action close_receipt done [16:13:08]requested_data is exist [16:13:08]produce_requested_data [16:13:08]requested_item fm.sn is exist - process it [16:13:08]wFMCommunicate request_size=4 [16:13:08]MH_SAM_APDU [16:13:08]CAPDU: 80 11 00 00 [16:13:08]Write to MH i2c: E2 08 00 C9 2F 80 11 00 00 00 00 00 00 72 [16:13:08]Write i2c OK [16:13:08]MH_I2C_Read... [16:13:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:08]Read from MH i2c: E2 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: E2 17 00 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: E2 17 00 C9 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C7 [16:13:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:13:08]wFMCommunicate OK [16:13:08]requested_item fd.num is exist - process it [16:13:08]SAM_PROTO_GetFieldsCounters [16:13:08]wFMCommunicate request_size=4 [16:13:08]MH_SAM_APDU [16:13:08]CAPDU: 80 13 00 00 [16:13:08]Write to MH i2c: E2 08 00 CA 2F 80 13 00 00 00 00 00 00 75 [16:13:08]Write i2c OK [16:13:08]MH_I2C_Read... [16:13:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:08]Read from MH i2c: E2 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: E2 62 00 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: E2 62 00 CA 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 71 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 5A [16:13:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 71 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:13:08]wFMCommunicate OK [16:13:08]SAM_PROTO_GetFieldsCounters done [16:13:08]requested_item shift.num is exist - process it [16:13:08]requested_item shift.opened is exist - process it [16:13:08]req_shift_opened [16:13:08]FM_GetShiftState [16:13:08]SAM_PROTO_GetShiftState [16:13:08]wFMCommunicate request_size=4 [16:13:08]MH_SAM_APDU [16:13:08]CAPDU: 80 13 01 00 [16:13:08]Write to MH i2c: E2 08 00 CB 2F 80 13 01 00 00 00 00 00 77 [16:13:08]Write i2c OK [16:13:08]MH_I2C_Read... [16:13:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:08]Read from MH i2c: E2 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: E2 0E 00 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: E2 0E 00 CB 2F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 86 [16:13:08]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:13:08]wFMCommunicate OK [16:13:08]SAM_PROTO_GetShiftState done [16:13:08]FM_GetShiftState done [16:13:08]req_shift_opened done [16:13:08]requested_item shift.open_date is exist - process it [16:13:08]req_shift_open_date [16:13:08]req_shift_open_date done [16:13:08]produce_requested_data done [16:13:08]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201585,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [16:13:08]process_action_free close_receipt [16:13:08]json_value_free [16:13:08]json_value_free done [16:13:08]process_json_proto returns [16:13:08]Send response to host [16:13:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201585,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [16:13:08]free response buf [16:13:08]execute_script done [16:13:08]execute_script returns [16:13:08]free content buf [16:13:08]Sock 8.Close socket [16:13:08]Sock 8.Thread stoped [16:13:12]OFD Sender: No OFD packet to send [16:13:17]OFD Sender: No OFD packet to send [16:13:22]OFD Sender: No OFD packet to send [16:13:27]OFD Sender: No OFD packet to send [16:13:32]OFD Sender: No OFD packet to send [16:13:37]OFD Sender: No OFD packet to send [16:13:42]OFD Sender: No OFD packet to send [16:13:47]OFD Sender: No OFD packet to send [16:13:52]OFD Sender: No OFD packet to send [16:13:57]OFD Sender: No OFD packet to send [16:14:02]OFD Sender: No OFD packet to send [16:14:07]OFD Sender: No OFD packet to send [16:14:12]OFD Sender: No OFD packet to send [16:14:17]OFD Sender: No OFD packet to send [16:14:22]OFD Sender: No OFD packet to send [16:14:27]OFD Sender: No OFD packet to send [16:14:32]OFD Sender: No OFD packet to send [16:14:37]OFD Sender: No OFD packet to send [16:14:42]OFD Sender: No OFD packet to send [16:14:47]OFD Sender: No OFD packet to send [16:14:52]OFD Sender: No OFD packet to send [16:14:57]OFD Sender: No OFD packet to send [16:15:02]OFD Sender: No OFD packet to send [16:15:07]OFD Sender: No OFD packet to send [16:15:12]OFD Sender: No OFD packet to send [16:15:17]OFD Sender: No OFD packet to send [16:15:22]OFD Sender: No OFD packet to send [16:15:27]OFD Sender: No OFD packet to send [16:15:32]OFD Sender: No OFD packet to send [16:15:37]OFD Sender: No OFD packet to send [16:15:42]OFD Sender: No OFD packet to send [16:15:47]OFD Sender: No OFD packet to send [16:15:52]OFD Sender: No OFD packet to send [16:15:57]OFD Sender: No OFD packet to send [16:16:02]OFD Sender: No OFD packet to send [16:16:07]OFD Sender: No OFD packet to send [16:16:08]accept exits with 9 [16:16:08]New connection [16:16:08]New thread 3066690916 created [16:16:08]Thread 3066834276 joined [16:16:08]Waiting for new connection... [16:16:08] Sock 9.Parse request [16:16:08]Sock 9.Check first char [16:16:08]Sock 9.First char is OK [16:16:08]request: POST /json_proto HTTP/1.0 [16:16:08]Method: POST [16:16:08]URL: /json_proto [16:16:08]Method is POST - this is cgi request [16:16:08]url: /json_proto [16:16:08]query_string will be loaded in cgi processing [16:16:08]execute_cgi json_proto POST (null) [16:16:08]execute_cgi path=json_proto method=POST [16:16:08]POST find Content-Length [16:16:08]Host: 172.17.63.195:8080 [16:16:08]Content-Length: 677 [16:16:08]Content-Type: application/json [16:16:08] [16:16:08]POST finish read [16:16:08]Found Content-Length = 677 [16:16:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:16:08]execute_script... [16:16:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:16:08]POST & json_proto [16:16:08]process_json_proto [16:16:08]json parsed OK: [16:16:08]protocol is kg_v1.0 [16:16:08]action value=close_receipt [16:16:08]process_action close_receipt [16:16:08]cmd_close_receipt [16:16:08]MH_GetDate [16:16:08]Write to MH i2c: F0 00 00 CC 2F EA [16:16:08]Write i2c OK [16:16:08]MH_I2C_Read... [16:16:08]Read from MH i2c: F0 [16:16:08]MH_I2C_Read... [16:16:08]Read from MH i2c: F0 09 00 [16:16:08]MH_I2C_Read... [16:16:08]Read from MH i2c: F0 09 00 CC 2F 00 CA 15 1D 67 68 46 19 67 84 [16:16:08]GetLastDocTimeStamp 1729959186 [16:16:08]current date 1729959370 [16:16:08]FM_GetShiftState [16:16:08]SAM_PROTO_GetShiftState [16:16:08]wFMCommunicate request_size=4 [16:16:08]MH_SAM_APDU [16:16:08]CAPDU: 80 13 01 00 [16:16:08]Write to MH i2c: E2 08 00 CD 2F 80 13 01 00 00 00 00 00 79 [16:16:08]Write i2c OK [16:16:08]MH_I2C_Read... [16:16:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:08]Read from MH i2c: E2 [16:16:08]MH_I2C_Read... [16:16:08]Read from MH i2c: E2 0E 00 [16:16:08]MH_I2C_Read... [16:16:08]Read from MH i2c: E2 0E 00 CD 2F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 88 [16:16:08]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:16:08]wFMCommunicate OK [16:16:08]SAM_PROTO_GetShiftState done [16:16:08]FM_GetShiftState done [16:16:08]opened in 1729900879 [16:16:08]opened+sec_in_day 1729987279 [16:16:08]quantity*price = 20003 [16:16:08]sum+1 = 20004 [16:16:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 348 26.10.2024 16:16 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201586 ФПД: 138997713352244 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T161610&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201586&fm=138997713352244&tin=02508201610067®Number=0000000000091777&sum=20000 [16:16:09]StoreToDocumentArchive [16:16:09]shift 543 fd 201586 [16:16:09]save to /storage/0543/doc_00201586 [16:16:09]save last doc name /storage/0543/doc_00201586 to /storage/kkm_last_doc_name [16:16:09]save OK [16:16:09]Clear old archive folders... [16:16:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:16:09]tlvbuf is B6D8B460 [16:16:09]SAM_PROTO_ClearQueue [16:16:09]wFMCommunicate request_size=4 [16:16:09]MH_SAM_APDU [16:16:09]CAPDU: 80 09 00 00 [16:16:09]Write to MH i2c: E2 08 00 DA 2F 80 09 00 00 00 00 00 00 7B [16:16:09]Write i2c OK [16:16:09]MH_I2C_Read... [16:16:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:10]Read from MH i2c: E2 [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: E2 03 00 [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: E2 03 00 DA 2F 00 90 00 7D [16:16:10]RAPDU: 90 00 [16:16:10]wFMCommunicate OK [16:16:10]SAM_PROTO_ClearQueue done [16:16:10]KKMCreateOFDPacket [16:16:10]OFDProtocolAddRootSTLVToBuf [16:16:10]FM_MakeSignedData [16:16:10]FM_MakeSignedData [16:16:10]SAM_PROTO_SignData [16:16:10]wFMCommunicate request_size=4 [16:16:10]MH_SAM_APDU [16:16:10]CAPDU: 80 0D 01 02 [16:16:10]Write to MH i2c: E2 08 00 DB 2F 80 0D 01 02 00 00 00 00 83 [16:16:10]Write i2c OK [16:16:10]MH_I2C_Read... [16:16:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:10]Read from MH i2c: E2 [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: E2 03 00 [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: E2 03 00 DB 2F 00 90 00 7E [16:16:10]RAPDU: 90 00 [16:16:10]wFMCommunicate OK [16:16:10]wFMCommunicate request_size=255 [16:16:10]MH_SAM_APDU [16:16: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 32 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 5C 01 00 00 F4 03 04 00 CA 15 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 72 13 03 00 35 04 06 00 7E [16:16:10]Write to MH i2c: E2 02 01 DC 2F 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 32 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 5C 01 00 00 F4 03 04 00 CA 15 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 72 13 03 00 35 04 06 00 7E 00 00 C0 [16:16:10]Write i2c OK [16:16:10]MH_I2C_Read... [16:16:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:10]Read from MH i2c: E2 [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: E2 03 00 [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: E2 03 00 DC 2F 00 90 00 7F [16:16:10]RAPDU: 90 00 [16:16:10]wFMCommunicate OK [16:16:10]wFMCommunicate request_size=10 [16:16:10]MH_SAM_APDU [16:16:10]CAPDU: 80 0D 02 02 05 6A ED 54 36 34 [16:16:10]Write to MH i2c: E2 0D 00 DD 2F 80 0D 02 02 05 00 6A ED 54 36 34 00 00 A5 [16:16:10]Write i2c OK [16:16:10]MH_I2C_Read... [16:16:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:10]Read from MH i2c: E2 [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: E2 03 00 [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: E2 03 00 DD 2F 00 90 00 80 [16:16:10]RAPDU: 90 00 [16:16:10]wFMCommunicate OK [16:16:10]wFMCommunicate request_size=4 [16:16:10]MH_SAM_APDU [16:16:10]CAPDU: 80 0D 03 02 [16:16:10]Write to MH i2c: E2 08 00 DE 2F 80 0D 03 02 00 00 00 00 88 [16:16:10]Write i2c OK [16:16:10]MH_I2C_Read... [16:16:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:10]Read from MH i2c: E2 [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: E2 0B 00 [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: E2 0B 00 DE 2F 00 C1 E4 F7 BC B9 AC 4F 11 90 00 A6 [16:16:10]RAPDU: C1 E4 F7 BC B9 AC 4F 11 90 00 [16:16:10]wFMCommunicate OK [16:16:10]SAM_PROTO_SignData done [16:16:10]FM_MakeSignedData done [16:16:10]CreateOFDProtocolMessage [16:16:10]wFMCommunicate request_size=4 [16:16:10]MH_SAM_APDU [16:16:10]CAPDU: 80 11 00 00 [16:16:10]Write to MH i2c: E2 08 00 DF 2F 80 11 00 00 00 00 00 00 88 [16:16:10]Write i2c OK [16:16:10]MH_I2C_Read... [16:16:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:10]Read from MH i2c: E2 [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: E2 17 00 [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: E2 17 00 DF 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DD [16:16:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:16:10]wFMCommunicate OK [16:16:10]CreateOFDProtocolMessage done [16:16:10]OFDSenderStorePacket 201586 [16:16:10]StoreOFDPacket docnum=201586 [16:16:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A2 3B 07 01 D3 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 5C 01 00 00 F4 03 04 00 CA 15 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 72 13 03 00 35 04 06 00 7E 6A ED 54 36 34 C1 E4 F7 BC B9 AC 4F 11 [16:16:10]CheckFolder [16:16:10]dirname=/storage/ofd_packets [16:16:10]CheckFolder done [16:16:10]ProducePacketName [16:16:10]name=ofd_packets/00201586 [16:16:10]NVStorageSaveData ofd_packets/00201586 [16:16:10]File name is /storage/ofd_packets/00201586 [16:16:10]Write 301 bytes [16:16:10]NVStorageSaveData done [16:16:10]OFDSenderStorePacket done [16:16:10]KKMCreateOFDPacket done [16:16:10]NVStorageSaveData kkm_last_timestamp [16:16:10]File name is /storage/kkm_last_timestamp [16:16:10]Write 4 bytes [16:16:10]NVStorageSaveData done [16:16:10]ExternCall_PrintAddStr [16:16:10]wPrintStart [16:16:10]Write to MH i2c: 01 00 00 E0 2F 0F [16:16:10]Write i2c OK [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: 01 [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: 01 07 00 [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: 01 07 00 E0 2F 00 00 00 00 00 FF 0F 24 [16:16:10]RasterBufferAndPrint [16:16:10]line Счет N : (1)449341 [16:16:10]line ИНН: 02508201610067 [16:16:10]line Контрольно-Кассовый Чек [16:16:10]line ПРОДАЖА [16:16:10]line ТРК (МРК, ГНК) : 41 [16:16:10]line Товар: 2710124130 [16:16:10]line Аи-92-К-2 [16:16:10]line 2.990 * 66.90 [16:16:10]line = 200.03 [16:16:10]line НДС 12% НСП 1% [16:16:10]line > о реализуемом товаре [16:16:10]line ОКРУГЛЕНИЕ: -0.03 [16:16:10]line ИТОГО: 200.00 [16:16:10]line Внесено: 200.00 [16:16:10]line СДАЧА: 0.00 [16:16:10]line НСП 1% : 1.77 [16:16:10]line НДС 12% : 21.24 [16:16:10]line Наличными: 200.00 [16:16:10]line Безнал.: 0.00 [16:16:10]line Место: АЗС № 171 "Партнер Нефть" [16:16:10]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:16:10]line СНО: Общий режим [16:16:10]line Чек 348 26.10.2024 16:16 [16:16:10]line Смена: 543 ФФД: 1.0 [16:16:10]line ЗНМ: 0300000109 [16:16:10]line РНМ: 0000000000091777 [16:16:10]line Версия ККМ: 001 [16:16:10]line ФМ: 0000000000871756 [16:16:10]line ФД: 201586 [16:16:10]line ФПД: 138997713352244 [16:16:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T161610&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201586&fm=138997713352244&tin=02508201610067®Number=0000000000091777&sum=20000 [16:16:10]OFD Sender: Processing packet 201586 [packets to send 112, broken 111] [16:16:10]ProducePacketName [16:16:10]name=ofd_packets/00201586 [16:16:10]OFD Sender: To server: pG, [16:16:10]CommunicateWithHost lk.salyk.kg:30040 [16:16:10]ConnectInit lk.salyk.kg [16:16:10]written 0, free lines is 4095 [16:16:10]Connected sock=10 [16:16:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A2 3B 07 01 D3 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 5C 01 00 00 F4 03 04 00 CA 15 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 72 13 03 00 35 04 06 00 7E 6A ED 54 36 34 C1 E4 F7 BC B9 AC 4F 11 [16:16:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A0 EB 47 00 4C 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 72 13 03 00 F4 03 04 00 72 C1 1C 67 B6 04 01 00 00 69 8C F6 B7 EB 85 2F BD [16:16:11]CommunicateWithHost err = 0 [16:16:11]CheckOFDResponse [16:16:11]1017 (14) - 77093643461234 [16:16:11]1041 (16) - 0000000000871756 [16:16:11]1040 (4) - 201586 [16:16:11]1012 (4) - 26.10.2024 10:16 [16:16:11]1206 (1) - 0 [16:16:11]OFD Sender: Remove packet 201586 [16:16:11]ProducePacketName [16:16:11]name=ofd_packets/00201586 [16:16:11]NVStorageDeleteData [16:16:11]Write to MH i2c: 01 00 00 0B 30 3B [16:16:11]Write i2c OK [16:16:11]MH_I2C_Read... [16:16:11]Read from MH i2c: 01 [16:16:11]MH_I2C_Read... [16:16:11]Read from MH i2c: 01 07 00 [16:16:11]MH_I2C_Read... [16:16:11]Read from MH i2c: 01 07 00 0B 30 00 00 00 00 00 93 0C E1 [16:16:11]RasterBufferAndPrint [16:16:11]line [16:16:11]line [16:16:11]line [16:16:11]line [16:16:11]line [16:16:11]written 0, free lines is 3223 [16:16:11]MH_Cut [16:16:11]Write to MH i2c: D1 01 00 12 30 01 14 [16:16:11]Write i2c OK [16:16:11]MH_I2C_Read... [16:16:11]Read from MH i2c: D1 [16:16:11]MH_I2C_Read... [16:16:11]Read from MH i2c: D1 01 00 [16:16:11]MH_I2C_Read... [16:16:11]Read from MH i2c: D1 01 00 12 30 00 13 [16:16:11]Write to MH i2c: 01 00 00 13 30 43 [16:16:11]Write i2c OK [16:16:11]MH_I2C_Read... [16:16:11]OFD Sender: No OFD packet to send [16:16:12]*** Cut start [16:16:12]*** Purtial cut [16:16:12]*** Stage 1: CUTSNS_PIN = 1 [16:16:12]Read from MH i2c: 01 [16:16:12]MH_I2C_Read... [16:16:12]*** Stop cut motor [16:16:12]*** Cut end [16:16:12]Read from MH i2c: 01 07 00 [16:16:12]MH_I2C_Read... [16:16:12]Read from MH i2c: 01 07 00 13 30 00 00 00 00 00 FF 0F 58 [16:16:12]process_action close_receipt done [16:16:12]requested_data is exist [16:16:12]produce_requested_data [16:16:12]requested_item fm.sn is exist - process it [16:16:12]wFMCommunicate request_size=4 [16:16:12]MH_SAM_APDU [16:16:12]CAPDU: 80 11 00 00 [16:16:12]Write to MH i2c: E2 08 00 14 30 80 11 00 00 00 00 00 00 BE [16:16:12]Write i2c OK [16:16:12]MH_I2C_Read... [16:16:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:12]Read from MH i2c: E2 [16:16:12]MH_I2C_Read... [16:16:12]Read from MH i2c: E2 17 00 [16:16:12]MH_I2C_Read... [16:16:12]Read from MH i2c: E2 17 00 14 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 13 [16:16:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:16:12]wFMCommunicate OK [16:16:12]requested_item fd.num is exist - process it [16:16:12]SAM_PROTO_GetFieldsCounters [16:16:12]wFMCommunicate request_size=4 [16:16:12]MH_SAM_APDU [16:16:12]CAPDU: 80 13 00 00 [16:16:12]Write to MH i2c: E2 08 00 15 30 80 13 00 00 00 00 00 00 C1 [16:16:12]Write i2c OK [16:16:12]MH_I2C_Read... [16:16:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:12]Read from MH i2c: E2 [16:16:12]MH_I2C_Read... [16:16:12]Read from MH i2c: E2 62 00 [16:16:12]MH_I2C_Read... [16:16:12]Read from MH i2c: E2 62 00 15 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 72 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 AA [16:16:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 72 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:16:12]wFMCommunicate OK [16:16:12]SAM_PROTO_GetFieldsCounters done [16:16:12]requested_item shift.num is exist - process it [16:16:12]requested_item shift.opened is exist - process it [16:16:12]req_shift_opened [16:16:12]FM_GetShiftState [16:16:12]SAM_PROTO_GetShiftState [16:16:12]wFMCommunicate request_size=4 [16:16:12]MH_SAM_APDU [16:16:12]CAPDU: 80 13 01 00 [16:16:12]Write to MH i2c: E2 08 00 16 30 80 13 01 00 00 00 00 00 C3 [16:16:12]Write i2c OK [16:16:12]MH_I2C_Read... [16:16:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:12]Read from MH i2c: E2 [16:16:12]MH_I2C_Read... [16:16:12]Read from MH i2c: E2 0E 00 [16:16:12]MH_I2C_Read... [16:16:12]Read from MH i2c: E2 0E 00 16 30 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D2 [16:16:12]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:16:12]wFMCommunicate OK [16:16:12]SAM_PROTO_GetShiftState done [16:16:12]FM_GetShiftState done [16:16:12]req_shift_opened done [16:16:12]requested_item shift.open_date is exist - process it [16:16:12]req_shift_open_date [16:16:12]req_shift_open_date done [16:16:12]produce_requested_data done [16:16:12]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201586,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [16:16:12]process_action_free close_receipt [16:16:12]json_value_free [16:16:12]json_value_free done [16:16:12]process_json_proto returns [16:16:12]Send response to host [16:16:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201586,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [16:16:12]free response buf [16:16:12]execute_script done [16:16:12]execute_script returns [16:16:12]free content buf [16:16:12]Sock 9.Close socket [16:16:12]Sock 9.Thread stoped [16:16:16]OFD Sender: No OFD packet to send [16:16:21]OFD Sender: No OFD packet to send [16:16:26]OFD Sender: No OFD packet to send [16:16:31]OFD Sender: No OFD packet to send [16:16:36]OFD Sender: No OFD packet to send [16:16:41]OFD Sender: No OFD packet to send [16:16:46]OFD Sender: No OFD packet to send [16:16:51]OFD Sender: No OFD packet to send [16:16:56]OFD Sender: No OFD packet to send [16:17:01]OFD Sender: No OFD packet to send [16:17:06]OFD Sender: No OFD packet to send [16:17:11]OFD Sender: No OFD packet to send [16:17:16]OFD Sender: No OFD packet to send [16:17:21]OFD Sender: No OFD packet to send [16:17:26]OFD Sender: No OFD packet to send [16:17:31]OFD Sender: No OFD packet to send [16:17:36]OFD Sender: No OFD packet to send [16:17:41]OFD Sender: No OFD packet to send [16:17:46]OFD Sender: No OFD packet to send [16:17:51]OFD Sender: No OFD packet to send [16:17:56]OFD Sender: No OFD packet to send [16:18:01]OFD Sender: No OFD packet to send [16:18:06]OFD Sender: No OFD packet to send [16:18:09]accept exits with 8 [16:18:09]New connection [16:18:09]New thread 3066834276 created [16:18:09]Thread 3066690916 joined [16:18:09]Waiting for new connection... [16:18:09] Sock 8.Parse request [16:18:09]Sock 8.Check first char [16:18:09]Sock 8.First char is OK [16:18:09]request: POST /json_proto HTTP/1.0 [16:18:09]Method: POST [16:18:09]URL: /json_proto [16:18:09]Method is POST - this is cgi request [16:18:09]url: /json_proto [16:18:09]query_string will be loaded in cgi processing [16:18:09]execute_cgi json_proto POST (null) [16:18:09]execute_cgi path=json_proto method=POST [16:18:09]POST find Content-Length [16:18:09]Host: 172.17.63.195:8080 [16:18:09]Content-Length: 682 [16:18:09]Content-Type: application/json [16:18:09] [16:18:09]POST finish read [16:18:09]Found Content-Length = 682 [16:18:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [16:18:09]execute_script... [16:18: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)449342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [16:18:09]POST & json_proto [16:18:09]process_json_proto [16:18:09]json parsed OK: [16:18:09]protocol is kg_v1.0 [16:18:09]action value=close_receipt [16:18:09]process_action close_receipt [16:18:09]cmd_close_receipt [16:18:09]MH_GetDate [16:18:09]Write to MH i2c: F0 00 00 17 30 36 [16:18:09]Write i2c OK [16:18:09]MH_I2C_Read... [16:18:09]Read from MH i2c: F0 [16:18:09]MH_I2C_Read... [16:18:09]Read from MH i2c: F0 09 00 [16:18:09]MH_I2C_Read... [16:18:09]Read from MH i2c: F0 09 00 17 30 00 43 16 1D 67 68 46 19 67 4A [16:18:09]GetLastDocTimeStamp 1729959370 [16:18:09]current date 1729959491 [16:18:09]FM_GetShiftState [16:18:09]SAM_PROTO_GetShiftState [16:18:09]wFMCommunicate request_size=4 [16:18:09]MH_SAM_APDU [16:18:09]CAPDU: 80 13 01 00 [16:18:09]Write to MH i2c: E2 08 00 18 30 80 13 01 00 00 00 00 00 C5 [16:18:09]Write i2c OK [16:18:09]MH_I2C_Read... [16:18:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:09]Read from MH i2c: E2 [16:18:09]MH_I2C_Read... [16:18:09]Read from MH i2c: E2 0E 00 [16:18:09]MH_I2C_Read... [16:18:09]Read from MH i2c: E2 0E 00 18 30 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D4 [16:18:09]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:18:09]wFMCommunicate OK [16:18:09]SAM_PROTO_GetShiftState done [16:18:09]FM_GetShiftState done [16:18:09]opened in 1729900879 [16:18:09]opened+sec_in_day 1729987279 [16:18:09]quantity*price = 200031 [16:18:09]sum+1 = 200032 [16:18:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 349 26.10.2024 16:18 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201587 ФПД: 116345711947417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T161811&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201587&fm=116345711947417&tin=02508201610067®Number=0000000000091777&sum=200000 [16:18:11]StoreToDocumentArchive [16:18:11]shift 543 fd 201587 [16:18:11]save to /storage/0543/doc_00201587 [16:18:11]save last doc name /storage/0543/doc_00201587 to /storage/kkm_last_doc_name [16:18:11]save OK [16:18:11]Clear old archive folders... [16:18:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:18:11]tlvbuf is 01F3A200 [16:18:11]SAM_PROTO_ClearQueue [16:18:11]wFMCommunicate request_size=4 [16:18:11]MH_SAM_APDU [16:18:11]CAPDU: 80 09 00 00 [16:18:11]Write to MH i2c: E2 08 00 25 30 80 09 00 00 00 00 00 00 C7 [16:18:11]Write i2c OK [16:18:11]MH_I2C_Read... [16:18:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:18:11]Read from MH i2c: E2 [16:18:11]MH_I2C_Read... [16:18:11]Read from MH i2c: E2 03 00 [16:18:11]MH_I2C_Read... [16:18:11]Read from MH i2c: E2 03 00 25 30 00 90 00 C9 [16:18:11]RAPDU: 90 00 [16:18:11]wFMCommunicate OK [16:18:11]SAM_PROTO_ClearQueue done [16:18:11]KKMCreateOFDPacket [16:18:11]OFDProtocolAddRootSTLVToBuf [16:18:11]FM_MakeSignedData [16:18:11]FM_MakeSignedData [16:18:11]SAM_PROTO_SignData [16:18:11]wFMCommunicate request_size=4 [16:18:11]MH_SAM_APDU [16:18:11]CAPDU: 80 0D 01 02 [16:18:11]Write to MH i2c: E2 08 00 26 30 80 0D 01 02 00 00 00 00 CF [16:18:11]Write i2c OK [16:18:11]MH_I2C_Read... [16:18:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:18:11]Read from MH i2c: E2 [16:18:11]MH_I2C_Read... [16:18:11]Read from MH i2c: E2 03 00 [16:18:11]MH_I2C_Read... [16:18:11]Read from MH i2c: E2 03 00 26 30 00 90 00 CA [16:18:11]RAPDU: 90 00 [16:18:11]wFMCommunicate OK [16:18:11]wFMCommunicate request_size=255 [16:18:11]MH_SAM_APDU [16:18:11]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 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 FA 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 5D 01 00 00 F4 03 04 00 43 16 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 73 13 03 00 35 04 06 00 69 [16:18:11]Write to MH i2c: E2 02 01 27 30 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 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 FA 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 5D 01 00 00 F4 03 04 00 43 16 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 73 13 03 00 35 04 06 00 69 00 00 F3 [16:18:11]Write i2c OK [16:18:11]MH_I2C_Read... [16:18:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:11]Read from MH i2c: E2 [16:18:11]MH_I2C_Read... [16:18:11]Read from MH i2c: E2 03 00 [16:18:11]MH_I2C_Read... [16:18:11]Read from MH i2c: E2 03 00 27 30 00 90 00 CB [16:18:11]RAPDU: 90 00 [16:18:11]wFMCommunicate OK [16:18:11]wFMCommunicate request_size=10 [16:18:11]MH_SAM_APDU [16:18:11]CAPDU: 80 0D 02 02 05 D0 D8 D4 EE 99 [16:18:11]Write to MH i2c: E2 0D 00 28 30 80 0D 02 02 05 00 D0 D8 D4 EE 99 00 00 DF [16:18:11]Write i2c OK [16:18:11]MH_I2C_Read... [16:18:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:11]Read from MH i2c: E2 [16:18:11]MH_I2C_Read... [16:18:11]Read from MH i2c: E2 03 00 [16:18:11]MH_I2C_Read... [16:18:11]Read from MH i2c: E2 03 00 28 30 00 90 00 CC [16:18:11]RAPDU: 90 00 [16:18:11]wFMCommunicate OK [16:18:11]wFMCommunicate request_size=4 [16:18:11]MH_SAM_APDU [16:18:11]CAPDU: 80 0D 03 02 [16:18:11]Write to MH i2c: E2 08 00 29 30 80 0D 03 02 00 00 00 00 D4 [16:18:11]Write i2c OK [16:18:11]MH_I2C_Read... [16:18:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:18:11]Read from MH i2c: E2 [16:18:11]MH_I2C_Read... [16:18:11]Read from MH i2c: E2 0B 00 [16:18:11]MH_I2C_Read... [16:18:11]Read from MH i2c: E2 0B 00 29 30 00 4C 64 0B D4 F4 1D D3 7E 90 00 C6 [16:18:11]RAPDU: 4C 64 0B D4 F4 1D D3 7E 90 00 [16:18:11]wFMCommunicate OK [16:18:11]SAM_PROTO_SignData done [16:18:11]FM_MakeSignedData done [16:18:11]CreateOFDProtocolMessage [16:18:11]wFMCommunicate request_size=4 [16:18:11]MH_SAM_APDU [16:18:11]CAPDU: 80 11 00 00 [16:18:11]Write to MH i2c: E2 08 00 2A 30 80 11 00 00 00 00 00 00 D4 [16:18:11]Write i2c OK [16:18:11]MH_I2C_Read... [16:18:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:11]Read from MH i2c: E2 [16:18:11]MH_I2C_Read... [16:18:11]Read from MH i2c: E2 17 00 [16:18:11]MH_I2C_Read... [16:18:11]Read from MH i2c: E2 17 00 2A 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 29 [16:18:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:18:11]wFMCommunicate OK [16:18:11]CreateOFDProtocolMessage done [16:18:11]OFDSenderStorePacket 201587 [16:18:11]StoreOFDPacket docnum=201587 [16:18:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 62 16 07 01 FE 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 FA 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 5D 01 00 00 F4 03 04 00 43 16 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 73 13 03 00 35 04 06 00 69 D0 D8 D4 EE 99 4C 64 0B D4 F4 1D D3 7E [16:18:11]CheckFolder [16:18:11]dirname=/storage/ofd_packets [16:18:11]CheckFolder done [16:18:11]ProducePacketName [16:18:11]name=ofd_packets/00201587 [16:18:11]NVStorageSaveData ofd_packets/00201587 [16:18:11]File name is /storage/ofd_packets/00201587 [16:18:11]Write 301 bytes [16:18:11]NVStorageSaveData done [16:18:11]OFDSenderStorePacket done [16:18:11]KKMCreateOFDPacket done [16:18:11]NVStorageSaveData kkm_last_timestamp [16:18:11]File name is /storage/kkm_last_timestamp [16:18:11]Write 4 bytes [16:18:11]NVStorageSaveData done [16:18:11]ExternCall_PrintAddStr [16:18:11]wPrintStart [16:18:11]Write to MH i2c: 01 00 00 2B 30 5B [16:18:11]Write i2c OK [16:18:11]MH_I2C_Read... [16:18:11]Read from MH i2c: 01 [16:18:11]MH_I2C_Read... [16:18:11]Read from MH i2c: 01 07 00 [16:18:11]MH_I2C_Read... [16:18:11]Read from MH i2c: 01 07 00 2B 30 00 00 00 00 00 FF 0F 70 [16:18:11]RasterBufferAndPrint [16:18:11]line Счет N : (1)449342 [16:18:11]line ИНН: 02508201610067 [16:18:11]line Контрольно-Кассовый Чек [16:18:11]line ПРОДАЖА [16:18:11]line ТРК (МРК, ГНК) : 31 [16:18:11]line Товар: 2710124130 [16:18:11]line Аи-92-К-2 [16:18:11]line 29.900 * 66.90 [16:18:11]line = 2000.31 [16:18:11]line НДС 12% НСП 1% [16:18:11]line > о реализуемом товаре [16:18:11]line ОКРУГЛЕНИЕ: -0.31 [16:18:11]line ИТОГО: 2000.00 [16:18:11]line Внесено: 2000.00 [16:18:11]line СДАЧА: 0.00 [16:18:11]line НСП 1% : 17.70 [16:18:11]line НДС 12% : 212.42 [16:18:11]line Наличными: 2000.00 [16:18:11]line Безнал.: 0.00 [16:18:11]line Место: АЗС № 171 "Партнер Нефть" [16:18:11]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:18:11]line СНО: Общий режим [16:18:11]line Чек 349 26.10.2024 16:18 [16:18:11]line Смена: 543 ФФД: 1.0 [16:18:11]line ЗНМ: 0300000109 [16:18:11]line РНМ: 0000000000091777 [16:18:11]line Версия ККМ: 001 [16:18:11]line ФМ: 0000000000871756 [16:18:11]line ФД: 201587 [16:18:11]line ФПД: 116345711947417 [16:18:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T161811&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201587&fm=116345711947417&tin=02508201610067®Number=0000000000091777&sum=200000 [16:18:11]OFD Sender: Processing packet 201587 [packets to send 112, broken 111] [16:18:11]ProducePacketName [16:18:11]name=ofd_packets/00201587 [16:18:11]OFD Sender: To server: pG, [16:18:11]CommunicateWithHost lk.salyk.kg:30040 [16:18:11]ConnectInit lk.salyk.kg [16:18:11]written 0, free lines is 4095 [16:18:12]Connected sock=10 [16:18:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 62 16 07 01 FE 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 FA 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 5D 01 00 00 F4 03 04 00 43 16 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 73 13 03 00 35 04 06 00 69 D0 D8 D4 EE 99 4C 64 0B D4 F4 1D D3 7E [16:18:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F9 D4 47 00 34 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 73 13 03 00 F4 03 04 00 EC C1 1C 67 B6 04 01 00 00 0B E8 DF C6 68 14 4B 74 [16:18:12]CommunicateWithHost err = 0 [16:18:12]CheckOFDResponse [16:18:12]1017 (14) - 77093643461234 [16:18:12]1041 (16) - 0000000000871756 [16:18:12]1040 (4) - 201587 [16:18:12]1012 (4) - 26.10.2024 10:18 [16:18:12]1206 (1) - 0 [16:18:12]OFD Sender: Remove packet 201587 [16:18:12]ProducePacketName [16:18:12]name=ofd_packets/00201587 [16:18:12]NVStorageDeleteData [16:18:12]Write to MH i2c: 01 00 00 56 30 86 [16:18:12]Write i2c OK [16:18:12]MH_I2C_Read... [16:18:12]Read from MH i2c: 01 [16:18:12]MH_I2C_Read... [16:18:12]Read from MH i2c: 01 07 00 [16:18:12]MH_I2C_Read... [16:18:12]Read from MH i2c: 01 07 00 56 30 00 00 00 00 00 92 0C 2B [16:18:12]RasterBufferAndPrint [16:18:12]line [16:18:12]line [16:18:12]line [16:18:12]line [16:18:12]line [16:18:12]written 0, free lines is 3222 [16:18:12]MH_Cut [16:18:12]Write to MH i2c: D1 01 00 5D 30 01 5F [16:18:12]Write i2c OK [16:18:12]MH_I2C_Read... [16:18:12]Read from MH i2c: D1 [16:18:12]MH_I2C_Read... [16:18:12]Read from MH i2c: D1 01 00 [16:18:12]MH_I2C_Read... [16:18:12]Read from MH i2c: D1 01 00 5D 30 00 5E [16:18:12]Write to MH i2c: 01 00 00 5E 30 8E [16:18:12]Write i2c OK [16:18:12]MH_I2C_Read... [16:18:12]OFD Sender: No OFD packet to send [16:18:13]*** Cut start [16:18:13]*** Purtial cut [16:18:13]*** Stage 1: CUTSNS_PIN = 1 [16:18:13]Read from MH i2c: 01 [16:18:13]MH_I2C_Read... [16:18:13]*** Stop cut motor [16:18:13]*** Cut end [16:18:13]Read from MH i2c: 01 07 00 [16:18:13]MH_I2C_Read... [16:18:13]Read from MH i2c: 01 07 00 5E 30 00 00 00 00 00 FF 0F A3 [16:18:13]process_action close_receipt done [16:18:13]requested_data is exist [16:18:13]produce_requested_data [16:18:13]requested_item fm.sn is exist - process it [16:18:13]wFMCommunicate request_size=4 [16:18:13]MH_SAM_APDU [16:18:13]CAPDU: 80 11 00 00 [16:18:13]Write to MH i2c: E2 08 00 5F 30 80 11 00 00 00 00 00 00 09 [16:18:13]Write i2c OK [16:18:13]MH_I2C_Read... [16:18:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:13]Read from MH i2c: E2 [16:18:13]MH_I2C_Read... [16:18:13]Read from MH i2c: E2 17 00 [16:18:13]MH_I2C_Read... [16:18:13]Read from MH i2c: E2 17 00 5F 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5E [16:18:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:18:13]wFMCommunicate OK [16:18:13]requested_item fd.num is exist - process it [16:18:13]SAM_PROTO_GetFieldsCounters [16:18:13]wFMCommunicate request_size=4 [16:18:13]MH_SAM_APDU [16:18:13]CAPDU: 80 13 00 00 [16:18:13]Write to MH i2c: E2 08 00 60 30 80 13 00 00 00 00 00 00 0C [16:18:13]Write i2c OK [16:18:13]MH_I2C_Read... [16:18:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:18:13]Read from MH i2c: E2 [16:18:13]MH_I2C_Read... [16:18:13]Read from MH i2c: E2 62 00 [16:18:13]MH_I2C_Read... [16:18:13]Read from MH i2c: E2 62 00 60 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 73 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 F9 [16:18:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 73 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:18:13]wFMCommunicate OK [16:18:13]SAM_PROTO_GetFieldsCounters done [16:18:13]requested_item shift.num is exist - process it [16:18:13]requested_item shift.opened is exist - process it [16:18:13]req_shift_opened [16:18:13]FM_GetShiftState [16:18:13]SAM_PROTO_GetShiftState [16:18:13]wFMCommunicate request_size=4 [16:18:13]MH_SAM_APDU [16:18:13]CAPDU: 80 13 01 00 [16:18:13]Write to MH i2c: E2 08 00 61 30 80 13 01 00 00 00 00 00 0E [16:18:13]Write i2c OK [16:18:13]MH_I2C_Read... [16:18:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:13]Read from MH i2c: E2 [16:18:13]MH_I2C_Read... [16:18:13]Read from MH i2c: E2 0E 00 [16:18:13]MH_I2C_Read... [16:18:13]Read from MH i2c: E2 0E 00 61 30 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 1D [16:18:13]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:18:13]wFMCommunicate OK [16:18:13]SAM_PROTO_GetShiftState done [16:18:13]FM_GetShiftState done [16:18:13]req_shift_opened done [16:18:13]requested_item shift.open_date is exist - process it [16:18:13]req_shift_open_date [16:18:13]req_shift_open_date done [16:18:13]produce_requested_data done [16:18:13]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201587,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [16:18:13]process_action_free close_receipt [16:18:13]json_value_free [16:18:13]json_value_free done [16:18:13]process_json_proto returns [16:18:13]Send response to host [16:18:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201587,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [16:18:13]free response buf [16:18:13]execute_script done [16:18:13]execute_script returns [16:18:13]free content buf [16:18:13]Sock 8.Close socket [16:18:13]Sock 8.Thread stoped [16:18:17]OFD Sender: No OFD packet to send [16:18:22]OFD Sender: No OFD packet to send [16:18:27]OFD Sender: No OFD packet to send [16:18:32]OFD Sender: No OFD packet to send [16:18:37]OFD Sender: No OFD packet to send [16:18:42]OFD Sender: No OFD packet to send [16:18:47]OFD Sender: No OFD packet to send [16:18:52]OFD Sender: No OFD packet to send [16:18:57]OFD Sender: No OFD packet to send [16:19:02]OFD Sender: No OFD packet to send [16:19:07]OFD Sender: No OFD packet to send [16:19:12]OFD Sender: No OFD packet to send [16:19:17]OFD Sender: No OFD packet to send [16:19:22]OFD Sender: No OFD packet to send [16:19:27]OFD Sender: No OFD packet to send [16:19:32]OFD Sender: No OFD packet to send [16:19:37]OFD Sender: No OFD packet to send [16:19:42]OFD Sender: No OFD packet to send [16:19:47]OFD Sender: No OFD packet to send [16:19:52]OFD Sender: No OFD packet to send [16:19:57]OFD Sender: No OFD packet to send [16:20:02]OFD Sender: No OFD packet to send [16:20:07]OFD Sender: No OFD packet to send [16:20:12]OFD Sender: No OFD packet to send [16:20:17]OFD Sender: No OFD packet to send [16:20:22]OFD Sender: No OFD packet to send [16:20:27]OFD Sender: No OFD packet to send [16:20:32]OFD Sender: No OFD packet to send [16:20:37]OFD Sender: No OFD packet to send [16:20:42]OFD Sender: No OFD packet to send [16:20:47]OFD Sender: No OFD packet to send [16:20:52]OFD Sender: No OFD packet to send [16:20:57]OFD Sender: No OFD packet to send [16:21:02]OFD Sender: No OFD packet to send [16:21:07]OFD Sender: No OFD packet to send [16:21:12]OFD Sender: No OFD packet to send [16:21:17]OFD Sender: No OFD packet to send [16:21:23]OFD Sender: No OFD packet to send [16:21:28]OFD Sender: No OFD packet to send [16:21:33]OFD Sender: No OFD packet to send [16:21:38]OFD Sender: No OFD packet to send [16:21:43]OFD Sender: No OFD packet to send [16:21:48]OFD Sender: No OFD packet to send [16:21:53]OFD Sender: No OFD packet to send [16:21:58]OFD Sender: No OFD packet to send [16:22:03]OFD Sender: No OFD packet to send [16:22:08]OFD Sender: No OFD packet to send [16:22:10]accept exits with 9 [16:22:10]New connection [16:22:10]New thread 3066690916 created [16:22:10]Thread 3066834276 joined [16:22:10]Waiting for new connection... [16:22:10] Sock 9.Parse request [16:22:10]Sock 9.Check first char [16:22:10]Sock 9.First char is OK [16:22:10]request: POST /json_proto HTTP/1.0 [16:22:10]Method: POST [16:22:10]URL: /json_proto [16:22:10]Method is POST - this is cgi request [16:22:10]url: /json_proto [16:22:10]query_string will be loaded in cgi processing [16:22:10]execute_cgi json_proto POST (null) [16:22:10]execute_cgi path=json_proto method=POST [16:22:10]POST find Content-Length [16:22:10]Host: 172.17.63.195:8080 [16:22:10]Content-Length: 678 [16:22:10]Content-Type: application/json [16:22:10] [16:22:10]POST finish read [16:22:10]Found Content-Length = 678 [16:22:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [16:22:10]execute_script... [16:22:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [16:22:10]POST & json_proto [16:22:10]process_json_proto [16:22:10]json parsed OK: [16:22:10]protocol is kg_v1.0 [16:22:10]action value=close_receipt [16:22:10]process_action close_receipt [16:22:10]cmd_close_receipt [16:22:10]MH_GetDate [16:22:10]Write to MH i2c: F0 00 00 62 30 81 [16:22:10]Write i2c OK [16:22:10]MH_I2C_Read... [16:22:10]Read from MH i2c: F0 [16:22:10]MH_I2C_Read... [16:22:10]Read from MH i2c: F0 09 00 [16:22:10]MH_I2C_Read... [16:22:10]Read from MH i2c: F0 09 00 62 30 00 34 17 1D 67 68 46 19 67 87 [16:22:10]GetLastDocTimeStamp 1729959491 [16:22:10]current date 1729959732 [16:22:10]FM_GetShiftState [16:22:10]SAM_PROTO_GetShiftState [16:22:10]wFMCommunicate request_size=4 [16:22:10]MH_SAM_APDU [16:22:10]CAPDU: 80 13 01 00 [16:22:10]Write to MH i2c: E2 08 00 63 30 80 13 01 00 00 00 00 00 10 [16:22:10]Write i2c OK [16:22:10]MH_I2C_Read... [16:22:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:10]Read from MH i2c: E2 [16:22:10]MH_I2C_Read... [16:22:10]Read from MH i2c: E2 0E 00 [16:22:10]MH_I2C_Read... [16:22:10]Read from MH i2c: E2 0E 00 63 30 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 1F [16:22:10]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:22:10]wFMCommunicate OK [16:22:10]SAM_PROTO_GetShiftState done [16:22:10]FM_GetShiftState done [16:22:10]opened in 1729900879 [16:22:10]opened+sec_in_day 1729987279 [16:22:10]quantity*price = 70044 [16:22:10]sum+1 = 70045 [16:22:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 350 26.10.2024 16:22 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201588 ФПД: 89690904030599 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T162212&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201588&fm=89690904030599&tin=02508201610067®Number=0000000000091777&sum=70000 [16:22:11]StoreToDocumentArchive [16:22:11]shift 543 fd 201588 [16:22:11]save to /storage/0543/doc_00201588 [16:22:11]save last doc name /storage/0543/doc_00201588 to /storage/kkm_last_doc_name [16:22:11]save OK [16:22:11]Clear old archive folders... [16:22:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:22:11]tlvbuf is 01F084B0 [16:22:11]SAM_PROTO_ClearQueue [16:22:11]wFMCommunicate request_size=4 [16:22:11]MH_SAM_APDU [16:22:11]CAPDU: 80 09 00 00 [16:22:11]Write to MH i2c: E2 08 00 70 30 80 09 00 00 00 00 00 00 12 [16:22:11]Write i2c OK [16:22:11]MH_I2C_Read... [16:22:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:11]Read from MH i2c: E2 [16:22:11]MH_I2C_Read... [16:22:11]Read from MH i2c: E2 03 00 [16:22:11]MH_I2C_Read... [16:22:11]Read from MH i2c: E2 03 00 70 30 00 90 00 14 [16:22:11]RAPDU: 90 00 [16:22:11]wFMCommunicate OK [16:22:11]SAM_PROTO_ClearQueue done [16:22:11]KKMCreateOFDPacket [16:22:11]OFDProtocolAddRootSTLVToBuf [16:22:11]FM_MakeSignedData [16:22:11]FM_MakeSignedData [16:22:11]SAM_PROTO_SignData [16:22:11]wFMCommunicate request_size=4 [16:22:11]MH_SAM_APDU [16:22:11]CAPDU: 80 0D 01 02 [16:22:11]Write to MH i2c: E2 08 00 71 30 80 0D 01 02 00 00 00 00 1A [16:22:11]Write i2c OK [16:22:11]MH_I2C_Read... [16:22:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:11]Read from MH i2c: E2 [16:22:11]MH_I2C_Read... [16:22:11]Read from MH i2c: E2 03 00 [16:22:11]MH_I2C_Read... [16:22:11]Read from MH i2c: E2 03 00 71 30 00 90 00 15 [16:22:11]RAPDU: 90 00 [16:22:11]wFMCommunicate OK [16:22:11]wFMCommunicate request_size=255 [16:22:11]MH_SAM_APDU [16:22:11]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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 5E 01 00 00 F4 03 04 00 34 17 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 74 13 03 00 35 04 06 00 51 [16:22:11]Write to MH i2c: E2 02 01 72 30 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 5E 01 00 00 F4 03 04 00 34 17 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 74 13 03 00 35 04 06 00 51 00 00 E8 [16:22:11]Write i2c OK [16:22:11]MH_I2C_Read... [16:22:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:12]Read from MH i2c: E2 [16:22:12]MH_I2C_Read... [16:22:12]Read from MH i2c: E2 03 00 [16:22:12]MH_I2C_Read... [16:22:12]Read from MH i2c: E2 03 00 72 30 00 90 00 16 [16:22:12]RAPDU: 90 00 [16:22:12]wFMCommunicate OK [16:22:12]wFMCommunicate request_size=10 [16:22:12]MH_SAM_APDU [16:22:12]CAPDU: 80 0D 02 02 05 92 CA 79 6D 87 [16:22:12]Write to MH i2c: E2 0D 00 73 30 80 0D 02 02 05 00 92 CA 79 6D 87 00 00 F0 [16:22:12]Write i2c OK [16:22:12]MH_I2C_Read... [16:22:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:12]Read from MH i2c: E2 [16:22:12]MH_I2C_Read... [16:22:12]Read from MH i2c: E2 03 00 [16:22:12]MH_I2C_Read... [16:22:12]Read from MH i2c: E2 03 00 73 30 00 90 00 17 [16:22:12]RAPDU: 90 00 [16:22:12]wFMCommunicate OK [16:22:12]wFMCommunicate request_size=4 [16:22:12]MH_SAM_APDU [16:22:12]CAPDU: 80 0D 03 02 [16:22:12]Write to MH i2c: E2 08 00 74 30 80 0D 03 02 00 00 00 00 1F [16:22:12]Write i2c OK [16:22:12]MH_I2C_Read... [16:22:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:12]Read from MH i2c: E2 [16:22:12]MH_I2C_Read... [16:22:12]Read from MH i2c: E2 0B 00 [16:22:12]MH_I2C_Read... [16:22:12]Read from MH i2c: E2 0B 00 74 30 00 CD E1 A9 57 92 EC 8F F4 90 00 CF [16:22:12]RAPDU: CD E1 A9 57 92 EC 8F F4 90 00 [16:22:12]wFMCommunicate OK [16:22:12]SAM_PROTO_SignData done [16:22:12]FM_MakeSignedData done [16:22:12]CreateOFDProtocolMessage [16:22:12]wFMCommunicate request_size=4 [16:22:12]MH_SAM_APDU [16:22:12]CAPDU: 80 11 00 00 [16:22:12]Write to MH i2c: E2 08 00 75 30 80 11 00 00 00 00 00 00 1F [16:22:12]Write i2c OK [16:22:12]MH_I2C_Read... [16:22:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:12]Read from MH i2c: E2 [16:22:12]MH_I2C_Read... [16:22:12]Read from MH i2c: E2 17 00 [16:22:12]MH_I2C_Read... [16:22:12]Read from MH i2c: E2 17 00 75 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 74 [16:22:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:22:12]wFMCommunicate OK [16:22:12]CreateOFDProtocolMessage done [16:22:12]OFDSenderStorePacket 201588 [16:22:12]StoreOFDPacket docnum=201588 [16:22:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 9A FC 07 01 5C 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 5E 01 00 00 F4 03 04 00 34 17 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 74 13 03 00 35 04 06 00 51 92 CA 79 6D 87 CD E1 A9 57 92 EC 8F F4 [16:22:12]CheckFolder [16:22:12]dirname=/storage/ofd_packets [16:22:12]CheckFolder done [16:22:12]ProducePacketName [16:22:12]name=ofd_packets/00201588 [16:22:12]NVStorageSaveData ofd_packets/00201588 [16:22:12]File name is /storage/ofd_packets/00201588 [16:22:12]Write 301 bytes [16:22:12]NVStorageSaveData done [16:22:12]OFDSenderStorePacket done [16:22:12]KKMCreateOFDPacket done [16:22:12]NVStorageSaveData kkm_last_timestamp [16:22:12]File name is /storage/kkm_last_timestamp [16:22:12]Write 4 bytes [16:22:12]NVStorageSaveData done [16:22:12]ExternCall_PrintAddStr [16:22:12]wPrintStart [16:22:12]Write to MH i2c: 01 00 00 76 30 A6 [16:22:12]Write i2c OK [16:22:12]MH_I2C_Read... [16:22:12]Read from MH i2c: 01 [16:22:12]MH_I2C_Read... [16:22:12]Read from MH i2c: 01 07 00 [16:22:12]MH_I2C_Read... [16:22:12]Read from MH i2c: 01 07 00 76 30 00 00 00 00 00 FF 0F BB [16:22:12]RasterBufferAndPrint [16:22:12]line Счет N : (1)449343 [16:22:12]line ИНН: 02508201610067 [16:22:12]line Контрольно-Кассовый Чек [16:22:12]line ПРОДАЖА [16:22:12]line ТРК (МРК, ГНК) : 41 [16:22:12]line Товар: 2710124130 [16:22:12]line Аи-92-К-2 [16:22:12]line 10.470 * 66.90 [16:22:12]line = 700.44 [16:22:12]line НДС 12% НСП 1% [16:22:12]line > о реализуемом товаре [16:22:12]line ОКРУГЛЕНИЕ: -0.44 [16:22:12]line ИТОГО: 700.00 [16:22:12]line Внесено: 700.00 [16:22:12]line СДАЧА: 0.00 [16:22:12]line НСП 1% : 6.20 [16:22:12]line НДС 12% : 74.38 [16:22:12]line Наличными: 700.00 [16:22:12]line Безнал.: 0.00 [16:22:12]line Место: АЗС № 171 "Партнер Нефть" [16:22:12]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:22:12]line СНО: Общий режим [16:22:12]line Чек 350 26.10.2024 16:22 [16:22:12]line Смена: 543 ФФД: 1.0 [16:22:12]line ЗНМ: 0300000109 [16:22:12]line РНМ: 0000000000091777 [16:22:12]line Версия ККМ: 001 [16:22:12]line ФМ: 0000000000871756 [16:22:12]line ФД: 201588 [16:22:12]line ФПД: 89690904030599 [16:22:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T162212&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201588&fm=89690904030599&tin=02508201610067®Number=0000000000091777&sum=70000 [16:22:12]OFD Sender: Processing packet 201588 [packets to send 112, broken 111] [16:22:12]ProducePacketName [16:22:12]name=ofd_packets/00201588 [16:22:12]OFD Sender: To server: pG, [16:22:12]CommunicateWithHost lk.salyk.kg:30040 [16:22:12]ConnectInit lk.salyk.kg [16:22:12]written 0, free lines is 4095 [16:22:12]Connected sock=10 [16:22:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 9A FC 07 01 5C 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 5E 01 00 00 F4 03 04 00 34 17 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 74 13 03 00 35 04 06 00 51 92 CA 79 6D 87 CD E1 A9 57 92 EC 8F F4 [16:22:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 2E 0F 47 00 A7 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 74 13 03 00 F4 03 04 00 DC C2 1C 67 B6 04 01 00 00 8B 43 8E D1 7E D5 D7 61 [16:22:12]CommunicateWithHost err = 0 [16:22:12]CheckOFDResponse [16:22:12]1017 (14) - 77093643461234 [16:22:12]1041 (16) - 0000000000871756 [16:22:12]1040 (4) - 201588 [16:22:12]1012 (4) - 26.10.2024 10:22 [16:22:12]1206 (1) - 0 [16:22:12]OFD Sender: Remove packet 201588 [16:22:12]ProducePacketName [16:22:12]name=ofd_packets/00201588 [16:22:12]NVStorageDeleteData [16:22:13]Write to MH i2c: 01 00 00 A1 30 D1 [16:22:13]Write i2c OK [16:22:13]MH_I2C_Read... [16:22:13]Read from MH i2c: 01 [16:22:13]MH_I2C_Read... [16:22:13]Read from MH i2c: 01 07 00 [16:22:13]MH_I2C_Read... [16:22:13]Read from MH i2c: 01 07 00 A1 30 00 00 00 00 00 95 0C 79 [16:22:13]RasterBufferAndPrint [16:22:13]line [16:22:13]line [16:22:13]line [16:22:13]line [16:22:13]line [16:22:13]written 0, free lines is 3227 [16:22:13]MH_Cut [16:22:13]Write to MH i2c: D1 01 00 A8 30 01 AA [16:22:13]Write i2c OK [16:22:13]MH_I2C_Read... [16:22:13]Read from MH i2c: D1 [16:22:13]MH_I2C_Read... [16:22:13]Read from MH i2c: D1 01 00 [16:22:13]MH_I2C_Read... [16:22:13]Read from MH i2c: D1 01 00 A8 30 00 A9 [16:22:13]Write to MH i2c: 01 00 00 A9 30 D9 [16:22:13]Write i2c OK [16:22:13]MH_I2C_Read... [16:22:13]OFD Sender: No OFD packet to send [16:22:13]*** Cut start [16:22:13]*** Purtial cut [16:22:13]*** Stage 1: CUTSNS_PIN = 1 [16:22:14]Read from MH i2c: 01 [16:22:14]MH_I2C_Read... [16:22:14]*** Stop cut motor [16:22:14]*** Cut end [16:22:14]Read from MH i2c: 01 07 00 [16:22:14]MH_I2C_Read... [16:22:14]Read from MH i2c: 01 07 00 A9 30 00 00 00 00 00 FF 0F EE [16:22:14]process_action close_receipt done [16:22:14]requested_data is exist [16:22:14]produce_requested_data [16:22:14]requested_item fm.sn is exist - process it [16:22:14]wFMCommunicate request_size=4 [16:22:14]MH_SAM_APDU [16:22:14]CAPDU: 80 11 00 00 [16:22:14]Write to MH i2c: E2 08 00 AA 30 80 11 00 00 00 00 00 00 54 [16:22:14]Write i2c OK [16:22:14]MH_I2C_Read... [16:22:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:14]Read from MH i2c: E2 [16:22:14]MH_I2C_Read... [16:22:14]Read from MH i2c: E2 17 00 [16:22:14]MH_I2C_Read... [16:22:14]Read from MH i2c: E2 17 00 AA 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A9 [16:22:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:22:14]wFMCommunicate OK [16:22:14]requested_item fd.num is exist - process it [16:22:14]SAM_PROTO_GetFieldsCounters [16:22:14]wFMCommunicate request_size=4 [16:22:14]MH_SAM_APDU [16:22:14]CAPDU: 80 13 00 00 [16:22:14]Write to MH i2c: E2 08 00 AB 30 80 13 00 00 00 00 00 00 57 [16:22:14]Write i2c OK [16:22:14]MH_I2C_Read... [16:22:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:14]Read from MH i2c: E2 [16:22:14]MH_I2C_Read... [16:22:14]Read from MH i2c: E2 62 00 [16:22:14]MH_I2C_Read... [16:22:14]Read from MH i2c: E2 62 00 AB 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 74 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 48 [16:22:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 74 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:22:14]wFMCommunicate OK [16:22:14]SAM_PROTO_GetFieldsCounters done [16:22:14]requested_item shift.num is exist - process it [16:22:14]requested_item shift.opened is exist - process it [16:22:14]req_shift_opened [16:22:14]FM_GetShiftState [16:22:14]SAM_PROTO_GetShiftState [16:22:14]wFMCommunicate request_size=4 [16:22:14]MH_SAM_APDU [16:22:14]CAPDU: 80 13 01 00 [16:22:14]Write to MH i2c: E2 08 00 AC 30 80 13 01 00 00 00 00 00 59 [16:22:14]Write i2c OK [16:22:14]MH_I2C_Read... [16:22:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:14]Read from MH i2c: E2 [16:22:14]MH_I2C_Read... [16:22:14]Read from MH i2c: E2 0E 00 [16:22:14]MH_I2C_Read... [16:22:14]Read from MH i2c: E2 0E 00 AC 30 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 68 [16:22:14]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:22:14]wFMCommunicate OK [16:22:14]SAM_PROTO_GetShiftState done [16:22:14]FM_GetShiftState done [16:22:14]req_shift_opened done [16:22:14]requested_item shift.open_date is exist - process it [16:22:14]req_shift_open_date [16:22:14]req_shift_open_date done [16:22:14]produce_requested_data done [16:22:14]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201588,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [16:22:14]process_action_free close_receipt [16:22:14]json_value_free [16:22:14]json_value_free done [16:22:14]process_json_proto returns [16:22:14]Send response to host [16:22:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201588,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [16:22:14]free response buf [16:22:14]execute_script done [16:22:14]execute_script returns [16:22:14]free content buf [16:22:14]Sock 9.Close socket [16:22:14]Sock 9.Thread stoped [16:22:18]OFD Sender: No OFD packet to send [16:22:23]OFD Sender: No OFD packet to send [16:22:28]OFD Sender: No OFD packet to send [16:22:33]OFD Sender: No OFD packet to send [16:22:38]OFD Sender: No OFD packet to send [16:22:43]OFD Sender: No OFD packet to send [16:22:48]OFD Sender: No OFD packet to send [16:22:53]OFD Sender: No OFD packet to send [16:22:58]OFD Sender: No OFD packet to send [16:23:03]OFD Sender: No OFD packet to send [16:23:08]OFD Sender: No OFD packet to send [16:23:13]OFD Sender: No OFD packet to send [16:23:18]OFD Sender: No OFD packet to send [16:23:23]OFD Sender: No OFD packet to send [16:23:28]OFD Sender: No OFD packet to send [16:23:33]OFD Sender: No OFD packet to send [16:23:38]OFD Sender: No OFD packet to send [16:23:43]OFD Sender: No OFD packet to send [16:23:48]OFD Sender: No OFD packet to send [16:23:53]OFD Sender: No OFD packet to send [16:23:58]OFD Sender: No OFD packet to send [16:24:03]OFD Sender: No OFD packet to send [16:24:08]OFD Sender: No OFD packet to send [16:24:13]OFD Sender: No OFD packet to send [16:24:18]OFD Sender: No OFD packet to send [16:24:23]OFD Sender: No OFD packet to send [16:24:28]OFD Sender: No OFD packet to send [16:24:33]OFD Sender: No OFD packet to send [16:24:38]OFD Sender: No OFD packet to send [16:24:43]OFD Sender: No OFD packet to send [16:24:48]OFD Sender: No OFD packet to send [16:24:53]OFD Sender: No OFD packet to send [16:24:58]OFD Sender: No OFD packet to send [16:25:03]OFD Sender: No OFD packet to send [16:25:08]OFD Sender: No OFD packet to send [16:25:13]OFD Sender: No OFD packet to send [16:25:18]OFD Sender: No OFD packet to send [16:25:23]OFD Sender: No OFD packet to send [16:25:28]OFD Sender: No OFD packet to send [16:25:33]OFD Sender: No OFD packet to send [16:25:38]OFD Sender: No OFD packet to send [16:25:43]OFD Sender: No OFD packet to send [16:25:48]OFD Sender: No OFD packet to send [16:25:53]OFD Sender: No OFD packet to send [16:25:58]OFD Sender: No OFD packet to send [16:26:03]OFD Sender: No OFD packet to send [16:26:08]OFD Sender: No OFD packet to send [16:26:13]OFD Sender: No OFD packet to send [16:26:18]OFD Sender: No OFD packet to send [16:26:23]accept exits with 8 [16:26:23]New connection [16:26:23]New thread 3066834276 created [16:26:23]Thread 3066690916 joined [16:26:23]Waiting for new connection... [16:26:23] Sock 8.Parse request [16:26:23]Sock 8.Check first char [16:26:23]Sock 8.First char is OK [16:26:23]request: POST /json_proto HTTP/1.0 [16:26:23]Method: POST [16:26:23]URL: /json_proto [16:26:23]Method is POST - this is cgi request [16:26:23]url: /json_proto [16:26:23]query_string will be loaded in cgi processing [16:26:23]execute_cgi json_proto POST (null) [16:26:23]execute_cgi path=json_proto method=POST [16:26:23]POST find Content-Length [16:26:23]Host: 172.17.63.195:8080 [16:26:23]Content-Length: 677 [16:26:23]Content-Type: application/json [16:26:23] [16:26:23]POST finish read [16:26:23]Found Content-Length = 677 [16:26:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:26:23]execute_script... [16:26:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:26:23]POST & json_proto [16:26:23]process_json_proto [16:26:23]json parsed OK: [16:26:23]protocol is kg_v1.0 [16:26:23]action value=close_receipt [16:26:23]process_action close_receipt [16:26:23]cmd_close_receipt [16:26:23]MH_GetDate [16:26:23]Write to MH i2c: F0 00 00 AD 30 CC [16:26:23]Write i2c OK [16:26:23]MH_I2C_Read... [16:26:23]Read from MH i2c: F0 [16:26:23]MH_I2C_Read... [16:26:23]Read from MH i2c: F0 09 00 [16:26:23]MH_I2C_Read... [16:26:23]Read from MH i2c: F0 09 00 AD 30 00 30 18 1D 67 68 46 19 67 CF [16:26:23]GetLastDocTimeStamp 1729959732 [16:26:23]current date 1729959984 [16:26:23]FM_GetShiftState [16:26:23]SAM_PROTO_GetShiftState [16:26:23]wFMCommunicate request_size=4 [16:26:23]MH_SAM_APDU [16:26:23]CAPDU: 80 13 01 00 [16:26:23]Write to MH i2c: E2 08 00 AE 30 80 13 01 00 00 00 00 00 5B [16:26:23]Write i2c OK [16:26:23]MH_I2C_Read... [16:26:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:23]Read from MH i2c: E2 [16:26:23]MH_I2C_Read... [16:26:23]Read from MH i2c: E2 0E 00 [16:26:23]MH_I2C_Read... [16:26:23]Read from MH i2c: E2 0E 00 AE 30 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 6A [16:26:23]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:26:23]wFMCommunicate OK [16:26:23]SAM_PROTO_GetShiftState done [16:26:23]FM_GetShiftState done [16:26:23]opened in 1729900879 [16:26:23]opened+sec_in_day 1729987279 [16:26:23]quantity*price = 40006 [16:26:23]sum+1 = 40007 [16:26:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 351 26.10.2024 16:26 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201589 ФПД: 117203985494278 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T162624&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201589&fm=117203985494278&tin=02508201610067®Number=0000000000091777&sum=40000 [16:26:24]StoreToDocumentArchive [16:26:24]shift 543 fd 201589 [16:26:24]save to /storage/0543/doc_00201589 [16:26:24]save last doc name /storage/0543/doc_00201589 to /storage/kkm_last_doc_name [16:26:24]save OK [16:26:24]Clear old archive folders... [16:26:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:26:24]tlvbuf is 01F01F60 [16:26:24]SAM_PROTO_ClearQueue [16:26:24]wFMCommunicate request_size=4 [16:26:24]MH_SAM_APDU [16:26:24]CAPDU: 80 09 00 00 [16:26:24]Write to MH i2c: E2 08 00 BB 30 80 09 00 00 00 00 00 00 5D [16:26:24]Write i2c OK [16:26:24]MH_I2C_Read... [16:26:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:24]Read from MH i2c: E2 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 03 00 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 03 00 BB 30 00 90 00 5F [16:26:24]RAPDU: 90 00 [16:26:24]wFMCommunicate OK [16:26:24]SAM_PROTO_ClearQueue done [16:26:24]KKMCreateOFDPacket [16:26:24]OFDProtocolAddRootSTLVToBuf [16:26:24]FM_MakeSignedData [16:26:24]FM_MakeSignedData [16:26:24]SAM_PROTO_SignData [16:26:24]wFMCommunicate request_size=4 [16:26:24]MH_SAM_APDU [16:26:24]CAPDU: 80 0D 01 02 [16:26:24]Write to MH i2c: E2 08 00 BC 30 80 0D 01 02 00 00 00 00 65 [16:26:24]Write i2c OK [16:26:24]MH_I2C_Read... [16:26:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:24]Read from MH i2c: E2 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 03 00 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 03 00 BC 30 00 90 00 60 [16:26:24]RAPDU: 90 00 [16:26:24]wFMCommunicate OK [16:26:24]wFMCommunicate request_size=255 [16:26:24]MH_SAM_APDU [16:26:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 5F 01 00 00 F4 03 04 00 30 18 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 75 13 03 00 35 04 06 00 6A [16:26:24]Write to MH i2c: E2 02 01 BD 30 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 32 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 5F 01 00 00 F4 03 04 00 30 18 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 75 13 03 00 35 04 06 00 6A 00 00 0A [16:26:24]Write i2c OK [16:26:24]MH_I2C_Read... [16:26:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:24]Read from MH i2c: E2 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 03 00 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 03 00 BD 30 00 90 00 61 [16:26:24]RAPDU: 90 00 [16:26:24]wFMCommunicate OK [16:26:24]wFMCommunicate request_size=10 [16:26:24]MH_SAM_APDU [16:26:24]CAPDU: 80 0D 02 02 05 98 AD EB F1 06 [16:26:24]Write to MH i2c: E2 0D 00 BE 30 80 0D 02 02 05 00 98 AD EB F1 06 00 00 99 [16:26:24]Write i2c OK [16:26:24]MH_I2C_Read... [16:26:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:24]Read from MH i2c: E2 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 03 00 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 03 00 BE 30 00 90 00 62 [16:26:24]RAPDU: 90 00 [16:26:24]wFMCommunicate OK [16:26:24]wFMCommunicate request_size=4 [16:26:24]MH_SAM_APDU [16:26:24]CAPDU: 80 0D 03 02 [16:26:24]Write to MH i2c: E2 08 00 BF 30 80 0D 03 02 00 00 00 00 6A [16:26:24]Write i2c OK [16:26:24]MH_I2C_Read... [16:26:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:24]Read from MH i2c: E2 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 0B 00 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 0B 00 BF 30 00 B8 6D E9 2B 51 AE 54 16 90 00 0D [16:26:24]RAPDU: B8 6D E9 2B 51 AE 54 16 90 00 [16:26:24]wFMCommunicate OK [16:26:24]SAM_PROTO_SignData done [16:26:24]FM_MakeSignedData done [16:26:24]CreateOFDProtocolMessage [16:26:24]wFMCommunicate request_size=4 [16:26:24]MH_SAM_APDU [16:26:24]CAPDU: 80 11 00 00 [16:26:24]Write to MH i2c: E2 08 00 C0 30 80 11 00 00 00 00 00 00 6A [16:26:24]Write i2c OK [16:26:24]MH_I2C_Read... [16:26:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:24]Read from MH i2c: E2 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 17 00 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 17 00 C0 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BF [16:26:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:26:24]wFMCommunicate OK [16:26:24]CreateOFDProtocolMessage done [16:26:24]OFDSenderStorePacket 201589 [16:26:24]StoreOFDPacket docnum=201589 [16:26:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 3B 2F 07 01 E8 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 32 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 5F 01 00 00 F4 03 04 00 30 18 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 75 13 03 00 35 04 06 00 6A 98 AD EB F1 06 B8 6D E9 2B 51 AE 54 16 [16:26:24]CheckFolder [16:26:24]dirname=/storage/ofd_packets [16:26:24]CheckFolder done [16:26:24]ProducePacketName [16:26:24]name=ofd_packets/00201589 [16:26:24]NVStorageSaveData ofd_packets/00201589 [16:26:24]File name is /storage/ofd_packets/00201589 [16:26:24]Write 301 bytes [16:26:24]NVStorageSaveData done [16:26:24]OFDSenderStorePacket done [16:26:24]KKMCreateOFDPacket done [16:26:24]NVStorageSaveData kkm_last_timestamp [16:26:24]File name is /storage/kkm_last_timestamp [16:26:24]Write 4 bytes [16:26:24]NVStorageSaveData done [16:26:24]ExternCall_PrintAddStr [16:26:24]wPrintStart [16:26:24]Write to MH i2c: 01 00 00 C1 30 F1 [16:26:24]Write i2c OK [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: 01 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: 01 07 00 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: 01 07 00 C1 30 00 00 00 00 00 FF 0F 06 [16:26:24]RasterBufferAndPrint [16:26:24]line Счет N : (1)449344 [16:26:24]line ИНН: 02508201610067 [16:26:24]line Контрольно-Кассовый Чек [16:26:24]line ПРОДАЖА [16:26:24]line ТРК (МРК, ГНК) : 52 [16:26:24]line Товар: 2710124130 [16:26:24]line Аи-92-К-2 [16:26:24]line 5.980 * 66.90 [16:26:24]line = 400.06 [16:26:24]line НДС 12% НСП 1% [16:26:24]line > о реализуемом товаре [16:26:24]line ОКРУГЛЕНИЕ: -0.06 [16:26:24]line ИТОГО: 400.00 [16:26:24]line Внесено: 400.00 [16:26:24]line СДАЧА: 0.00 [16:26:24]line НСП 1% : 3.54 [16:26:24]line НДС 12% : 42.48 [16:26:24]line Наличными: 400.00 [16:26:24]line Безнал.: 0.00 [16:26:24]line Место: АЗС № 171 "Партнер Нефть" [16:26:24]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:26:24]line СНО: Общий режим [16:26:24]line Чек 351 26.10.2024 16:26 [16:26:24]line Смена: 543 ФФД: 1.0 [16:26:24]line ЗНМ: 0300000109 [16:26:24]line РНМ: 0000000000091777 [16:26:24]line Версия ККМ: 001 [16:26:24]line ФМ: 0000000000871756 [16:26:24]line ФД: 201589 [16:26:24]line ФПД: 117203985494278 [16:26:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T162624&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201589&fm=117203985494278&tin=02508201610067®Number=0000000000091777&sum=40000 [16:26:25]OFD Sender: Processing packet 201589 [packets to send 112, broken 111] [16:26:25]ProducePacketName [16:26:25]name=ofd_packets/00201589 [16:26:25]OFD Sender: To server: pG, [16:26:25]CommunicateWithHost lk.salyk.kg:30040 [16:26:25]ConnectInit lk.salyk.kg [16:26:25]written 0, free lines is 4095 [16:26:25]Connected sock=10 [16:26:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 3B 2F 07 01 E8 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 32 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 5F 01 00 00 F4 03 04 00 30 18 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 75 13 03 00 35 04 06 00 6A 98 AD EB F1 06 B8 6D E9 2B 51 AE 54 16 [16:26:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 9C 39 47 00 B0 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 75 13 03 00 F4 03 04 00 D9 C3 1C 67 B6 04 01 00 00 69 73 CF 87 BD B4 72 34 [16:26:25]CommunicateWithHost err = 0 [16:26:25]CheckOFDResponse [16:26:25]1017 (14) - 77093643461234 [16:26:25]1041 (16) - 0000000000871756 [16:26:25]1040 (4) - 201589 [16:26:25]1012 (4) - 26.10.2024 10:26 [16:26:25]1206 (1) - 0 [16:26:25]OFD Sender: Remove packet 201589 [16:26:25]ProducePacketName [16:26:25]name=ofd_packets/00201589 [16:26:25]NVStorageDeleteData [16:26:25]Write to MH i2c: 01 00 00 EC 30 1C [16:26:25]Write i2c OK [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: 01 [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: 01 07 00 [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: 01 07 00 EC 30 00 00 00 00 00 9D 0C CC [16:26:25]RasterBufferAndPrint [16:26:25]line [16:26:25]line [16:26:25]line [16:26:25]line [16:26:25]line [16:26:25]written 0, free lines is 3235 [16:26:25]MH_Cut [16:26:25]Write to MH i2c: D1 01 00 F3 30 01 F5 [16:26:25]Write i2c OK [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: D1 [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: D1 01 00 [16:26:25]MH_I2C_Read... [16:26:25]Read from MH i2c: D1 01 00 F3 30 00 F4 [16:26:25]Write to MH i2c: 01 00 00 F4 30 24 [16:26:25]Write i2c OK [16:26:25]MH_I2C_Read... [16:26:26]OFD Sender: No OFD packet to send [16:26:26]*** Cut start [16:26:26]*** Purtial cut [16:26:26]*** Stage 1: CUTSNS_PIN = 1 [16:26:26]Read from MH i2c: 01 [16:26:26]MH_I2C_Read... [16:26:26]*** Stop cut motor [16:26:26]*** Cut end [16:26:26]Read from MH i2c: 01 07 00 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: 01 07 00 F4 30 00 00 00 00 00 FF 0F 39 [16:26:26]process_action close_receipt done [16:26:26]requested_data is exist [16:26:26]produce_requested_data [16:26:26]requested_item fm.sn is exist - process it [16:26:26]wFMCommunicate request_size=4 [16:26:26]MH_SAM_APDU [16:26:26]CAPDU: 80 11 00 00 [16:26:26]Write to MH i2c: E2 08 00 F5 30 80 11 00 00 00 00 00 00 9F [16:26:26]Write i2c OK [16:26:26]MH_I2C_Read... [16:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:26]Read from MH i2c: E2 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 17 00 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 17 00 F5 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F4 [16:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:26:26]wFMCommunicate OK [16:26:26]requested_item fd.num is exist - process it [16:26:26]SAM_PROTO_GetFieldsCounters [16:26:26]wFMCommunicate request_size=4 [16:26:26]MH_SAM_APDU [16:26:26]CAPDU: 80 13 00 00 [16:26:26]Write to MH i2c: E2 08 00 F6 30 80 13 00 00 00 00 00 00 A2 [16:26:26]Write i2c OK [16:26:26]MH_I2C_Read... [16:26:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:26]Read from MH i2c: E2 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 62 00 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 62 00 F6 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 75 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 97 [16:26:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 75 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:26:27]wFMCommunicate OK [16:26:27]SAM_PROTO_GetFieldsCounters done [16:26:27]requested_item shift.num is exist - process it [16:26:27]requested_item shift.opened is exist - process it [16:26:27]req_shift_opened [16:26:27]FM_GetShiftState [16:26:27]SAM_PROTO_GetShiftState [16:26:27]wFMCommunicate request_size=4 [16:26:27]MH_SAM_APDU [16:26:27]CAPDU: 80 13 01 00 [16:26:27]Write to MH i2c: E2 08 00 F7 30 80 13 01 00 00 00 00 00 A4 [16:26:27]Write i2c OK [16:26:27]MH_I2C_Read... [16:26:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:27]Read from MH i2c: E2 [16:26:27]MH_I2C_Read... [16:26:27]Read from MH i2c: E2 0E 00 [16:26:27]MH_I2C_Read... [16:26:27]Read from MH i2c: E2 0E 00 F7 30 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 B3 [16:26:27]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:26:27]wFMCommunicate OK [16:26:27]SAM_PROTO_GetShiftState done [16:26:27]FM_GetShiftState done [16:26:27]req_shift_opened done [16:26:27]requested_item shift.open_date is exist - process it [16:26:27]req_shift_open_date [16:26:27]req_shift_open_date done [16:26:27]produce_requested_data done [16:26:27]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201589,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [16:26:27]process_action_free close_receipt [16:26:27]json_value_free [16:26:27]json_value_free done [16:26:27]process_json_proto returns [16:26:27]Send response to host [16:26:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201589,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [16:26:27]free response buf [16:26:27]execute_script done [16:26:27]execute_script returns [16:26:27]free content buf [16:26:27]Sock 8.Close socket [16:26:27]Sock 8.Thread stoped [16:26:31]OFD Sender: No OFD packet to send [16:26:36]OFD Sender: No OFD packet to send [16:26:41]OFD Sender: No OFD packet to send [16:26:46]OFD Sender: No OFD packet to send [16:26:51]OFD Sender: No OFD packet to send [16:26:56]OFD Sender: No OFD packet to send [16:27:01]OFD Sender: No OFD packet to send [16:27:06]OFD Sender: No OFD packet to send [16:27:11]OFD Sender: No OFD packet to send [16:27:16]OFD Sender: No OFD packet to send [16:27:21]OFD Sender: No OFD packet to send [16:27:26]OFD Sender: No OFD packet to send [16:27:31]OFD Sender: No OFD packet to send [16:27:36]OFD Sender: No OFD packet to send [16:27:41]OFD Sender: No OFD packet to send [16:27:46]OFD Sender: No OFD packet to send [16:27:51]OFD Sender: No OFD packet to send [16:27:56]OFD Sender: No OFD packet to send [16:28:01]OFD Sender: No OFD packet to send [16:28:06]OFD Sender: No OFD packet to send [16:28:11]OFD Sender: No OFD packet to send [16:28:16]OFD Sender: No OFD packet to send [16:28:21]OFD Sender: No OFD packet to send [16:28:26]OFD Sender: No OFD packet to send [16:28:31]OFD Sender: No OFD packet to send [16:28:36]OFD Sender: No OFD packet to send [16:28:41]OFD Sender: No OFD packet to send [16:28:46]OFD Sender: No OFD packet to send [16:28:51]OFD Sender: No OFD packet to send [16:28:56]OFD Sender: No OFD packet to send [16:29:01]OFD Sender: No OFD packet to send [16:29:06]OFD Sender: No OFD packet to send [16:29:11]OFD Sender: No OFD packet to send [16:29:16]OFD Sender: No OFD packet to send [16:29:21]OFD Sender: No OFD packet to send [16:29:26]OFD Sender: No OFD packet to send [16:29:31]OFD Sender: No OFD packet to send [16:29:36]OFD Sender: No OFD packet to send [16:29:41]OFD Sender: No OFD packet to send [16:29:46]OFD Sender: No OFD packet to send [16:29:51]OFD Sender: No OFD packet to send [16:29:56]OFD Sender: No OFD packet to send [16:30:01]OFD Sender: No OFD packet to send [16:30:06]OFD Sender: No OFD packet to send [16:30:11]OFD Sender: No OFD packet to send [16:30:16]OFD Sender: No OFD packet to send [16:30:21]OFD Sender: No OFD packet to send [16:30:26]OFD Sender: No OFD packet to send [16:30:31]OFD Sender: No OFD packet to send [16:30:36]OFD Sender: No OFD packet to send [16:30:41]OFD Sender: No OFD packet to send [16:30:46]OFD Sender: No OFD packet to send [16:30:51]OFD Sender: No OFD packet to send [16:30:56]OFD Sender: No OFD packet to send [16:31:01]OFD Sender: No OFD packet to send [16:31:06]OFD Sender: No OFD packet to send [16:31:11]OFD Sender: No OFD packet to send [16:31:16]OFD Sender: No OFD packet to send [16:31:20]accept exits with 9 [16:31:20]New connection [16:31:20]New thread 3066690916 created [16:31:20]Thread 3066834276 joined [16:31:20]Waiting for new connection... [16:31:20] Sock 9.Parse request [16:31:20]Sock 9.Check first char [16:31:20]Sock 9.First char is OK [16:31:20]request: POST /json_proto HTTP/1.0 [16:31:20]Method: POST [16:31:20]URL: /json_proto [16:31:20]Method is POST - this is cgi request [16:31:20]url: /json_proto [16:31:20]query_string will be loaded in cgi processing [16:31:20]execute_cgi json_proto POST (null) [16:31:20]execute_cgi path=json_proto method=POST [16:31:20]POST find Content-Length [16:31:20]Host: 172.17.63.195:8080 [16:31:20]Content-Length: 682 [16:31:20]Content-Type: application/json [16:31:20] [16:31:20]POST finish read [16:31:20]Found Content-Length = 682 [16:31:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:31:20]execute_script... [16:31: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)449345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:31:20]POST & json_proto [16:31:20]process_json_proto [16:31:20]json parsed OK: [16:31:20]protocol is kg_v1.0 [16:31:20]action value=close_receipt [16:31:20]process_action close_receipt [16:31:20]cmd_close_receipt [16:31:20]MH_GetDate [16:31:20]Write to MH i2c: F0 00 00 F8 30 17 [16:31:20]Write i2c OK [16:31:20]MH_I2C_Read... [16:31:20]Read from MH i2c: F0 [16:31:20]MH_I2C_Read... [16:31:20]Read from MH i2c: F0 09 00 [16:31:20]MH_I2C_Read... [16:31:20]Read from MH i2c: F0 09 00 F8 30 00 59 19 1D 67 68 46 19 67 44 [16:31:20]GetLastDocTimeStamp 1729959984 [16:31:20]current date 1729960281 [16:31:20]FM_GetShiftState [16:31:20]SAM_PROTO_GetShiftState [16:31:20]wFMCommunicate request_size=4 [16:31:20]MH_SAM_APDU [16:31:20]CAPDU: 80 13 01 00 [16:31:20]Write to MH i2c: E2 08 00 F9 30 80 13 01 00 00 00 00 00 A6 [16:31:20]Write i2c OK [16:31:20]MH_I2C_Read... [16:31:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:20]Read from MH i2c: E2 [16:31:20]MH_I2C_Read... [16:31:20]Read from MH i2c: E2 0E 00 [16:31:20]MH_I2C_Read... [16:31:20]Read from MH i2c: E2 0E 00 F9 30 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 B5 [16:31:20]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:31:20]wFMCommunicate OK [16:31:20]SAM_PROTO_GetShiftState done [16:31:20]FM_GetShiftState done [16:31:20]opened in 1729900879 [16:31:20]opened+sec_in_day 1729987279 [16:31:20]quantity*price = 100015 [16:31:20]sum+1 = 100017 [16:31:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 352 26.10.2024 16:31 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201590 ФПД: 145813692986886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T163122&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201590&fm=145813692986886&tin=02508201610067®Number=0000000000091777&sum=100000 [16:31:21]StoreToDocumentArchive [16:31:21]shift 543 fd 201590 [16:31:21]save to /storage/0543/doc_00201590 [16:31:21]save last doc name /storage/0543/doc_00201590 to /storage/kkm_last_doc_name [16:31:21]save OK [16:31:21]Clear old archive folders... [16:31:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:31:21]tlvbuf is 01F626F0 [16:31:21]SAM_PROTO_ClearQueue [16:31:21]wFMCommunicate request_size=4 [16:31:21]MH_SAM_APDU [16:31:21]CAPDU: 80 09 00 00 [16:31:21]Write to MH i2c: E2 08 00 06 31 80 09 00 00 00 00 00 00 A9 [16:31:21]Write i2c OK [16:31:21]MH_I2C_Read... [16:31:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:31:21]Read from MH i2c: E2 [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: E2 03 00 [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: E2 03 00 06 31 00 90 00 AB [16:31:21]RAPDU: 90 00 [16:31:21]wFMCommunicate OK [16:31:21]SAM_PROTO_ClearQueue done [16:31:21]KKMCreateOFDPacket [16:31:21]OFDProtocolAddRootSTLVToBuf [16:31:21]FM_MakeSignedData [16:31:21]FM_MakeSignedData [16:31:21]SAM_PROTO_SignData [16:31:21]wFMCommunicate request_size=4 [16:31:21]MH_SAM_APDU [16:31:21]CAPDU: 80 0D 01 02 [16:31:21]Write to MH i2c: E2 08 00 07 31 80 0D 01 02 00 00 00 00 B1 [16:31:21]Write i2c OK [16:31:21]MH_I2C_Read... [16:31:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:31:21]Read from MH i2c: E2 [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: E2 03 00 [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: E2 03 00 07 31 00 90 00 AC [16:31:21]RAPDU: 90 00 [16:31:21]wFMCommunicate OK [16:31:21]wFMCommunicate request_size=255 [16:31:21]MH_SAM_APDU [16:31: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 32 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 60 01 00 00 F4 03 04 00 5A 19 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 76 13 03 00 35 04 06 00 84 [16:31:21]Write to MH i2c: E2 02 01 08 31 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 32 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 60 01 00 00 F4 03 04 00 5A 19 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 76 13 03 00 35 04 06 00 84 00 00 C8 [16:31:21]Write i2c OK [16:31:21]MH_I2C_Read... [16:31:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:21]Read from MH i2c: E2 [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: E2 03 00 [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: E2 03 00 08 31 00 90 00 AD [16:31:21]RAPDU: 90 00 [16:31:21]wFMCommunicate OK [16:31:21]wFMCommunicate request_size=10 [16:31:21]MH_SAM_APDU [16:31:21]CAPDU: 80 0D 02 02 05 9D E5 5F B6 06 [16:31:21]Write to MH i2c: E2 0D 00 09 31 80 0D 02 02 05 00 9D E5 5F B6 06 00 00 5B [16:31:21]Write i2c OK [16:31:21]MH_I2C_Read... [16:31:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:21]Read from MH i2c: E2 [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: E2 03 00 [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: E2 03 00 09 31 00 90 00 AE [16:31:21]RAPDU: 90 00 [16:31:21]wFMCommunicate OK [16:31:21]wFMCommunicate request_size=4 [16:31:21]MH_SAM_APDU [16:31:21]CAPDU: 80 0D 03 02 [16:31:21]Write to MH i2c: E2 08 00 0A 31 80 0D 03 02 00 00 00 00 B6 [16:31:21]Write i2c OK [16:31:21]MH_I2C_Read... [16:31:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:31:21]Read from MH i2c: E2 [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: E2 0B 00 [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: E2 0B 00 0A 31 00 D8 DC 4B 76 4D 31 9B 26 90 00 6B [16:31:21]RAPDU: D8 DC 4B 76 4D 31 9B 26 90 00 [16:31:21]wFMCommunicate OK [16:31:21]SAM_PROTO_SignData done [16:31:21]FM_MakeSignedData done [16:31:21]CreateOFDProtocolMessage [16:31:21]wFMCommunicate request_size=4 [16:31:21]MH_SAM_APDU [16:31:21]CAPDU: 80 11 00 00 [16:31:21]Write to MH i2c: E2 08 00 0B 31 80 11 00 00 00 00 00 00 B6 [16:31:21]Write i2c OK [16:31:21]MH_I2C_Read... [16:31:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:21]Read from MH i2c: E2 [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: E2 17 00 [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: E2 17 00 0B 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0B [16:31:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:31:21]wFMCommunicate OK [16:31:21]CreateOFDProtocolMessage done [16:31:21]OFDSenderStorePacket 201590 [16:31:21]StoreOFDPacket docnum=201590 [16:31:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 53 AA 07 01 F2 6D 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 32 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 60 01 00 00 F4 03 04 00 5A 19 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 76 13 03 00 35 04 06 00 84 9D E5 5F B6 06 D8 DC 4B 76 4D 31 9B 26 [16:31:21]CheckFolder [16:31:21]dirname=/storage/ofd_packets [16:31:21]CheckFolder done [16:31:21]ProducePacketName [16:31:21]name=ofd_packets/00201590 [16:31:21]NVStorageSaveData ofd_packets/00201590 [16:31:21]File name is /storage/ofd_packets/00201590 [16:31:21]Write 301 bytes [16:31:21]NVStorageSaveData done [16:31:21]OFDSenderStorePacket done [16:31:21]KKMCreateOFDPacket done [16:31:21]NVStorageSaveData kkm_last_timestamp [16:31:21]File name is /storage/kkm_last_timestamp [16:31:21]Write 4 bytes [16:31:21]NVStorageSaveData done [16:31:21]ExternCall_PrintAddStr [16:31:21]wPrintStart [16:31:21]Write to MH i2c: 01 00 00 0C 31 3D [16:31:21]Write i2c OK [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: 01 [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: 01 07 00 [16:31:21]MH_I2C_Read... [16:31:21]Read from MH i2c: 01 07 00 0C 31 00 00 00 00 00 FF 0F 52 [16:31:21]RasterBufferAndPrint [16:31:21]line Счет N : (1)449345 [16:31:21]line ИНН: 02508201610067 [16:31:21]line Контрольно-Кассовый Чек [16:31:21]line ПРОДАЖА [16:31:21]line ТРК (МРК, ГНК) : 52 [16:31:21]line Товар: 2710124130 [16:31:21]line Аи-92-К-2 [16:31:21]line 14.950 * 66.90 [16:31:21]line = 1000.16 [16:31:21]line НДС 12% НСП 1% [16:31:21]line > о реализуемом товаре [16:31:21]line ОКРУГЛЕНИЕ: -0.16 [16:31:21]line ИТОГО: 1000.00 [16:31:21]line Внесено: 1000.00 [16:31:21]line СДАЧА: 0.00 [16:31:21]line НСП 1% : 8.85 [16:31:21]line НДС 12% : 106.21 [16:31:21]line Наличными: 1000.00 [16:31:21]line Безнал.: 0.00 [16:31:21]line Место: АЗС № 171 "Партнер Нефть" [16:31:21]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:31:21]line СНО: Общий режим [16:31:21]line Чек 352 26.10.2024 16:31 [16:31:21]line Смена: 543 ФФД: 1.0 [16:31:21]line ЗНМ: 0300000109 [16:31:21]line РНМ: 0000000000091777 [16:31:21]line Версия ККМ: 001 [16:31:21]line ФМ: 0000000000871756 [16:31:21]line ФД: 201590 [16:31:21]line ФПД: 145813692986886 [16:31:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T163122&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201590&fm=145813692986886&tin=02508201610067®Number=0000000000091777&sum=100000 [16:31:22]OFD Sender: Processing packet 201590 [packets to send 112, broken 111] [16:31:22]ProducePacketName [16:31:22]name=ofd_packets/00201590 [16:31:22]OFD Sender: To server: pG, [16:31:22]CommunicateWithHost lk.salyk.kg:30040 [16:31:22]ConnectInit lk.salyk.kg [16:31:22]written 0, free lines is 4095 [16:31:22]Connected sock=10 [16:31:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 53 AA 07 01 F2 6D 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 32 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 60 01 00 00 F4 03 04 00 5A 19 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 76 13 03 00 35 04 06 00 84 9D E5 5F B6 06 D8 DC 4B 76 4D 31 9B 26 [16:31:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 42 BE 47 00 94 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 76 13 03 00 F4 03 04 00 02 C5 1C 67 B6 04 01 00 00 E8 B7 30 86 8F 3F B7 29 [16:31:22]CommunicateWithHost err = 0 [16:31:22]CheckOFDResponse [16:31:22]1017 (14) - 77093643461234 [16:31:22]1041 (16) - 0000000000871756 [16:31:22]1040 (4) - 201590 [16:31:22]1012 (4) - 26.10.2024 10:31 [16:31:22]1206 (1) - 0 [16:31:22]OFD Sender: Remove packet 201590 [16:31:22]ProducePacketName [16:31:22]name=ofd_packets/00201590 [16:31:22]NVStorageDeleteData [16:31:22]Write to MH i2c: 01 00 00 37 31 68 [16:31:22]Write i2c OK [16:31:22]MH_I2C_Read... [16:31:22]Read from MH i2c: 01 [16:31:22]MH_I2C_Read... [16:31:22]Read from MH i2c: 01 07 00 [16:31:22]MH_I2C_Read... [16:31:22]Read from MH i2c: 01 07 00 37 31 00 00 00 00 00 A1 0C 1C [16:31:22]RasterBufferAndPrint [16:31:22]line [16:31:22]line [16:31:22]line [16:31:22]line [16:31:22]line [16:31:22]written 0, free lines is 3237 [16:31:22]MH_Cut [16:31:22]Write to MH i2c: D1 01 00 3E 31 01 41 [16:31:22]Write i2c OK [16:31:22]MH_I2C_Read... [16:31:22]Read from MH i2c: D1 [16:31:22]MH_I2C_Read... [16:31:22]Read from MH i2c: D1 01 00 [16:31:22]MH_I2C_Read... [16:31:22]Read from MH i2c: D1 01 00 3E 31 00 40 [16:31:22]Write to MH i2c: 01 00 00 3F 31 70 [16:31:22]Write i2c OK [16:31:22]MH_I2C_Read... [16:31:23]OFD Sender: No OFD packet to send [16:31:23]*** Cut start [16:31:23]*** Purtial cut [16:31:23]*** Stage 1: CUTSNS_PIN = 1 [16:31:23]Read from MH i2c: 01 [16:31:23]MH_I2C_Read... [16:31:23]*** Stop cut motor [16:31:23]*** Cut end [16:31:23]Read from MH i2c: 01 07 00 [16:31:23]MH_I2C_Read... [16:31:23]Read from MH i2c: 01 07 00 3F 31 00 00 00 00 00 FF 0F 85 [16:31:23]process_action close_receipt done [16:31:23]requested_data is exist [16:31:23]produce_requested_data [16:31:23]requested_item fm.sn is exist - process it [16:31:23]wFMCommunicate request_size=4 [16:31:23]MH_SAM_APDU [16:31:23]CAPDU: 80 11 00 00 [16:31:23]Write to MH i2c: E2 08 00 40 31 80 11 00 00 00 00 00 00 EB [16:31:23]Write i2c OK [16:31:23]MH_I2C_Read... [16:31:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:23]Read from MH i2c: E2 [16:31:23]MH_I2C_Read... [16:31:23]Read from MH i2c: E2 17 00 [16:31:23]MH_I2C_Read... [16:31:23]Read from MH i2c: E2 17 00 40 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 40 [16:31:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:31:23]wFMCommunicate OK [16:31:23]requested_item fd.num is exist - process it [16:31:23]SAM_PROTO_GetFieldsCounters [16:31:23]wFMCommunicate request_size=4 [16:31:23]MH_SAM_APDU [16:31:23]CAPDU: 80 13 00 00 [16:31:23]Write to MH i2c: E2 08 00 41 31 80 13 00 00 00 00 00 00 EE [16:31:23]Write i2c OK [16:31:23]MH_I2C_Read... [16:31:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:31:24]Read from MH i2c: E2 [16:31:24]MH_I2C_Read... [16:31:24]Read from MH i2c: E2 62 00 [16:31:24]MH_I2C_Read... [16:31:24]Read from MH i2c: E2 62 00 41 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 76 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 E7 [16:31:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 76 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:31:24]wFMCommunicate OK [16:31:24]SAM_PROTO_GetFieldsCounters done [16:31:24]requested_item shift.num is exist - process it [16:31:24]requested_item shift.opened is exist - process it [16:31:24]req_shift_opened [16:31:24]FM_GetShiftState [16:31:24]SAM_PROTO_GetShiftState [16:31:24]wFMCommunicate request_size=4 [16:31:24]MH_SAM_APDU [16:31:24]CAPDU: 80 13 01 00 [16:31:24]Write to MH i2c: E2 08 00 42 31 80 13 01 00 00 00 00 00 F0 [16:31:24]Write i2c OK [16:31:24]MH_I2C_Read... [16:31:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:24]Read from MH i2c: E2 [16:31:24]MH_I2C_Read... [16:31:24]Read from MH i2c: E2 0E 00 [16:31:24]MH_I2C_Read... [16:31:24]Read from MH i2c: E2 0E 00 42 31 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 FF [16:31:24]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:31:24]wFMCommunicate OK [16:31:24]SAM_PROTO_GetShiftState done [16:31:24]FM_GetShiftState done [16:31:24]req_shift_opened done [16:31:24]requested_item shift.open_date is exist - process it [16:31:24]req_shift_open_date [16:31:24]req_shift_open_date done [16:31:24]produce_requested_data done [16:31:24]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201590,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [16:31:24]process_action_free close_receipt [16:31:24]json_value_free [16:31:24]json_value_free done [16:31:24]process_json_proto returns [16:31:24]Send response to host [16:31:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201590,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [16:31:24]free response buf [16:31:24]execute_script done [16:31:24]execute_script returns [16:31:24]free content buf [16:31:24]Sock 9.Close socket [16:31:24]Sock 9.Thread stoped [16:31:28]OFD Sender: No OFD packet to send [16:31:33]OFD Sender: No OFD packet to send [16:31:38]OFD Sender: No OFD packet to send [16:31:43]OFD Sender: No OFD packet to send [16:31:48]OFD Sender: No OFD packet to send [16:31:53]OFD Sender: No OFD packet to send [16:31:58]OFD Sender: No OFD packet to send [16:32:03]OFD Sender: No OFD packet to send [16:32:08]OFD Sender: No OFD packet to send [16:32:13]OFD Sender: No OFD packet to send [16:32:18]OFD Sender: No OFD packet to send [16:32:23]OFD Sender: No OFD packet to send [16:32:28]OFD Sender: No OFD packet to send [16:32:33]OFD Sender: No OFD packet to send [16:32:38]OFD Sender: No OFD packet to send [16:32:43]OFD Sender: No OFD packet to send [16:32:48]OFD Sender: No OFD packet to send [16:32:53]OFD Sender: No OFD packet to send [16:32:58]OFD Sender: No OFD packet to send [16:33:03]OFD Sender: No OFD packet to send [16:33:08]OFD Sender: No OFD packet to send [16:33:13]OFD Sender: No OFD packet to send [16:33:18]OFD Sender: No OFD packet to send [16:33:23]OFD Sender: No OFD packet to send [16:33:28]OFD Sender: No OFD packet to send [16:33:33]OFD Sender: No OFD packet to send [16:33:38]OFD Sender: No OFD packet to send [16:33:43]OFD Sender: No OFD packet to send [16:33:48]OFD Sender: No OFD packet to send [16:33:53]OFD Sender: No OFD packet to send [16:33:58]OFD Sender: No OFD packet to send [16:34:03]OFD Sender: No OFD packet to send [16:34:08]OFD Sender: No OFD packet to send [16:34:13]OFD Sender: No OFD packet to send [16:34:18]OFD Sender: No OFD packet to send [16:34:23]OFD Sender: No OFD packet to send [16:34:28]OFD Sender: No OFD packet to send [16:34:33]OFD Sender: No OFD packet to send [16:34:38]OFD Sender: No OFD packet to send [16:34:43]OFD Sender: No OFD packet to send [16:34:48]OFD Sender: No OFD packet to send [16:34:53]OFD Sender: No OFD packet to send [16:34:58]OFD Sender: No OFD packet to send [16:35:03]OFD Sender: No OFD packet to send [16:35:08]OFD Sender: No OFD packet to send [16:35:13]OFD Sender: No OFD packet to send [16:35:18]OFD Sender: No OFD packet to send [16:35:23]OFD Sender: No OFD packet to send [16:35:28]OFD Sender: No OFD packet to send [16:35:33]OFD Sender: No OFD packet to send [16:35:38]OFD Sender: No OFD packet to send [16:35:43]OFD Sender: No OFD packet to send [16:35:48]OFD Sender: No OFD packet to send [16:35:53]OFD Sender: No OFD packet to send [16:35:58]OFD Sender: No OFD packet to send [16:36:03]OFD Sender: No OFD packet to send [16:36:08]OFD Sender: No OFD packet to send [16:36:13]OFD Sender: No OFD packet to send [16:36:18]OFD Sender: No OFD packet to send [16:36:23]OFD Sender: No OFD packet to send [16:36:28]OFD Sender: No OFD packet to send [16:36:33]OFD Sender: No OFD packet to send [16:36:38]OFD Sender: No OFD packet to send [16:36:43]OFD Sender: No OFD packet to send [16:36:48]OFD Sender: No OFD packet to send [16:36:53]OFD Sender: No OFD packet to send [16:36:58]OFD Sender: No OFD packet to send [16:37:03]OFD Sender: No OFD packet to send [16:37:08]OFD Sender: No OFD packet to send [16:37:13]OFD Sender: No OFD packet to send [16:37:18]OFD Sender: No OFD packet to send [16:37:23]OFD Sender: No OFD packet to send [16:37:28]OFD Sender: No OFD packet to send [16:37:33]OFD Sender: No OFD packet to send [16:37:38]OFD Sender: No OFD packet to send [16:37:43]OFD Sender: No OFD packet to send [16:37:48]OFD Sender: No OFD packet to send [16:37:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:38:03]OFD Sender: No OFD packet to send [16:38:08]OFD Sender: No OFD packet to send [16:38:12]accept exits with 8 [16:38:12]New connection [16:38:12]New thread 3066834276 created [16:38:12]Thread 3066690916 joined [16:38:12]Waiting for new connection... [16:38:12] Sock 8.Parse request [16:38:12]Sock 8.Check first char [16:38:12]Sock 8.First char is OK [16:38:12]request: POST /json_proto HTTP/1.0 [16:38:12]Method: POST [16:38:12]URL: /json_proto [16:38:12]Method is POST - this is cgi request [16:38:12]url: /json_proto [16:38:12]query_string will be loaded in cgi processing [16:38:12]execute_cgi json_proto POST (null) [16:38:12]execute_cgi path=json_proto method=POST [16:38:12]POST find Content-Length [16:38:12]Host: 172.17.63.195:8080 [16:38:12]Content-Length: 678 [16:38:12]Content-Type: application/json [16:38:12] [16:38:12]POST finish read [16:38:12]Found Content-Length = 678 [16:38:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [16:38:12]execute_script... [16:38: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)449346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [16:38:12]POST & json_proto [16:38:12]process_json_proto [16:38:12]json parsed OK: [16:38:12]protocol is kg_v1.0 [16:38:12]action value=close_receipt [16:38:12]process_action close_receipt [16:38:12]cmd_close_receipt [16:38:12]MH_GetDate [16:38:12]Write to MH i2c: F0 00 00 43 31 63 [16:38:12]Write i2c OK [16:38:12]MH_I2C_Read... [16:38:12]Read from MH i2c: F0 [16:38:12]MH_I2C_Read... [16:38:12]Read from MH i2c: F0 09 00 [16:38:12]MH_I2C_Read... [16:38:12]Read from MH i2c: F0 09 00 43 31 00 F5 1A 1D 67 68 46 19 67 2D [16:38:12]GetLastDocTimeStamp 1729960282 [16:38:12]current date 1729960693 [16:38:12]FM_GetShiftState [16:38:12]SAM_PROTO_GetShiftState [16:38:12]wFMCommunicate request_size=4 [16:38:12]MH_SAM_APDU [16:38:12]CAPDU: 80 13 01 00 [16:38:12]Write to MH i2c: E2 08 00 44 31 80 13 01 00 00 00 00 00 F2 [16:38:12]Write i2c OK [16:38:12]MH_I2C_Read... [16:38:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:12]Read from MH i2c: E2 [16:38:12]MH_I2C_Read... [16:38:12]Read from MH i2c: E2 0E 00 [16:38:12]MH_I2C_Read... [16:38:12]Read from MH i2c: E2 0E 00 44 31 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 01 [16:38:12]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:38:12]wFMCommunicate OK [16:38:12]SAM_PROTO_GetShiftState done [16:38:12]FM_GetShiftState done [16:38:12]opened in 1729900879 [16:38:12]opened+sec_in_day 1729987279 [16:38:12]quantity*price = 70044 [16:38:12]sum+1 = 70045 [16:38:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 353 26.10.2024 16:38 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201591 ФПД: 248522695861476 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T163814&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201591&fm=248522695861476&tin=02508201610067®Number=0000000000091777&sum=70000 [16:38:13]StoreToDocumentArchive [16:38:13]shift 543 fd 201591 [16:38:13]save to /storage/0543/doc_00201591 [16:38:13]save last doc name /storage/0543/doc_00201591 to /storage/kkm_last_doc_name [16:38:13]save OK [16:38:13]Clear old archive folders... [16:38:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:38:13]tlvbuf is 01F62110 [16:38:13]SAM_PROTO_ClearQueue [16:38:13]wFMCommunicate request_size=4 [16:38:13]MH_SAM_APDU [16:38:13]CAPDU: 80 09 00 00 [16:38:13]Write to MH i2c: E2 08 00 51 31 80 09 00 00 00 00 00 00 F4 [16:38:13]Write i2c OK [16:38:13]MH_I2C_Read... [16:38:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:38:13]Read from MH i2c: E2 [16:38:13]MH_I2C_Read... [16:38:13]Read from MH i2c: E2 03 00 [16:38:13]MH_I2C_Read... [16:38:13]Read from MH i2c: E2 03 00 51 31 00 90 00 F6 [16:38:13]RAPDU: 90 00 [16:38:13]wFMCommunicate OK [16:38:13]SAM_PROTO_ClearQueue done [16:38:13]KKMCreateOFDPacket [16:38:13]OFDProtocolAddRootSTLVToBuf [16:38:13]FM_MakeSignedData [16:38:13]FM_MakeSignedData [16:38:13]SAM_PROTO_SignData [16:38:13]wFMCommunicate request_size=4 [16:38:13]MH_SAM_APDU [16:38:13]CAPDU: 80 0D 01 02 [16:38:13]Write to MH i2c: E2 08 00 52 31 80 0D 01 02 00 00 00 00 FC [16:38:13]Write i2c OK [16:38:13]MH_I2C_Read... [16:38:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:38:13]Read from MH i2c: E2 [16:38:13]MH_I2C_Read... [16:38:13]Read from MH i2c: E2 03 00 [16:38:13]MH_I2C_Read... [16:38:13]Read from MH i2c: E2 03 00 52 31 00 90 00 F7 [16:38:13]RAPDU: 90 00 [16:38:13]wFMCommunicate OK [16:38:13]wFMCommunicate request_size=255 [16:38:13]MH_SAM_APDU [16:38: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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 61 01 00 00 F4 03 04 00 F6 1A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 77 13 03 00 35 04 06 00 E2 [16:38:13]Write to MH i2c: E2 02 01 53 31 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 61 01 00 00 F4 03 04 00 F6 1A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 77 13 03 00 35 04 06 00 E2 00 00 26 [16:38:13]Write i2c OK [16:38:13]MH_I2C_Read... [16:38:13]OFD Sender: No OFD packet to send [16:38:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:13]Read from MH i2c: E2 [16:38:13]MH_I2C_Read... [16:38:13]Read from MH i2c: E2 03 00 [16:38:13]MH_I2C_Read... [16:38:13]Read from MH i2c: E2 03 00 53 31 00 90 00 F8 [16:38:13]RAPDU: 90 00 [16:38:13]wFMCommunicate OK [16:38:13]wFMCommunicate request_size=10 [16:38:13]MH_SAM_APDU [16:38:13]CAPDU: 80 0D 02 02 05 07 B3 01 64 E4 [16:38:13]Write to MH i2c: E2 0D 00 54 31 80 0D 02 02 05 00 07 B3 01 64 E4 00 00 0C [16:38:13]Write i2c OK [16:38:13]MH_I2C_Read... [16:38:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:13]Read from MH i2c: E2 [16:38:13]MH_I2C_Read... [16:38:13]Read from MH i2c: E2 03 00 [16:38:13]MH_I2C_Read... [16:38:13]Read from MH i2c: E2 03 00 54 31 00 90 00 F9 [16:38:13]RAPDU: 90 00 [16:38:13]wFMCommunicate OK [16:38:13]wFMCommunicate request_size=4 [16:38:13]MH_SAM_APDU [16:38:13]CAPDU: 80 0D 03 02 [16:38:13]Write to MH i2c: E2 08 00 55 31 80 0D 03 02 00 00 00 00 01 [16:38:13]Write i2c OK [16:38:13]MH_I2C_Read... [16:38:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:13]Read from MH i2c: E2 [16:38:13]MH_I2C_Read... [16:38:13]Read from MH i2c: E2 0B 00 [16:38:13]MH_I2C_Read... [16:38:13]Read from MH i2c: E2 0B 00 55 31 00 DC 71 A3 03 BB 8E B5 78 90 00 6B [16:38:13]RAPDU: DC 71 A3 03 BB 8E B5 78 90 00 [16:38:13]wFMCommunicate OK [16:38:13]SAM_PROTO_SignData done [16:38:13]FM_MakeSignedData done [16:38:13]CreateOFDProtocolMessage [16:38:13]wFMCommunicate request_size=4 [16:38:13]MH_SAM_APDU [16:38:13]CAPDU: 80 11 00 00 [16:38:13]Write to MH i2c: E2 08 00 56 31 80 11 00 00 00 00 00 00 01 [16:38:13]Write i2c OK [16:38:13]MH_I2C_Read... [16:38:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:13]Read from MH i2c: E2 [16:38:13]MH_I2C_Read... [16:38:13]Read from MH i2c: E2 17 00 [16:38:13]MH_I2C_Read... [16:38:13]Read from MH i2c: E2 17 00 56 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 56 [16:38:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:38:13]wFMCommunicate OK [16:38:13]CreateOFDProtocolMessage done [16:38:13]OFDSenderStorePacket 201591 [16:38:13]StoreOFDPacket docnum=201591 [16:38:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 3D 08 07 01 07 D7 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 61 01 00 00 F4 03 04 00 F6 1A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 77 13 03 00 35 04 06 00 E2 07 B3 01 64 E4 DC 71 A3 03 BB 8E B5 78 [16:38:13]CheckFolder [16:38:13]dirname=/storage/ofd_packets [16:38:13]CheckFolder done [16:38:13]ProducePacketName [16:38:13]name=ofd_packets/00201591 [16:38:13]NVStorageSaveData ofd_packets/00201591 [16:38:13]File name is /storage/ofd_packets/00201591 [16:38:13]Write 301 bytes [16:38:13]NVStorageSaveData done [16:38:13]OFDSenderStorePacket done [16:38:13]KKMCreateOFDPacket done [16:38:13]NVStorageSaveData kkm_last_timestamp [16:38:13]File name is /storage/kkm_last_timestamp [16:38:13]Write 4 bytes [16:38:13]NVStorageSaveData done [16:38:13]ExternCall_PrintAddStr [16:38:13]wPrintStart [16:38:13]Write to MH i2c: 01 00 00 57 31 88 [16:38:13]Write i2c OK [16:38:13]MH_I2C_Read... [16:38:13]Read from MH i2c: 01 [16:38:13]MH_I2C_Read... [16:38:13]Read from MH i2c: 01 07 00 [16:38:13]MH_I2C_Read... [16:38:13]Read from MH i2c: 01 07 00 57 31 00 00 00 00 00 FF 0F 9D [16:38:13]RasterBufferAndPrint [16:38:13]line Счет N : (1)449346 [16:38:13]line ИНН: 02508201610067 [16:38:13]line Контрольно-Кассовый Чек [16:38:13]line ПРОДАЖА [16:38:13]line ТРК (МРК, ГНК) : 41 [16:38:13]line Товар: 2710124130 [16:38:13]line Аи-92-К-2 [16:38:13]line 10.470 * 66.90 [16:38:13]line = 700.44 [16:38:13]line НДС 12% НСП 1% [16:38:13]line > о реализуемом товаре [16:38:13]line ОКРУГЛЕНИЕ: -0.44 [16:38:13]line ИТОГО: 700.00 [16:38:13]line Внесено: 700.00 [16:38:13]line СДАЧА: 0.00 [16:38:13]line НСП 1% : 6.20 [16:38:13]line НДС 12% : 74.38 [16:38:13]line Наличными: 700.00 [16:38:13]line Безнал.: 0.00 [16:38:13]line Место: АЗС № 171 "Партнер Нефть" [16:38:13]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:38:13]line СНО: Общий режим [16:38:13]line Чек 353 26.10.2024 16:38 [16:38:13]line Смена: 543 ФФД: 1.0 [16:38:13]line ЗНМ: 0300000109 [16:38:13]line РНМ: 0000000000091777 [16:38:13]line Версия ККМ: 001 [16:38:13]line ФМ: 0000000000871756 [16:38:13]line ФД: 201591 [16:38:13]line ФПД: 248522695861476 [16:38:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T163814&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201591&fm=248522695861476&tin=02508201610067®Number=0000000000091777&sum=70000 [16:38:14]OFD Sender: Processing packet 201591 [packets to send 112, broken 111] [16:38:14]ProducePacketName [16:38:14]name=ofd_packets/00201591 [16:38:14]OFD Sender: To server: pG, [16:38:14]CommunicateWithHost lk.salyk.kg:30040 [16:38:14]ConnectInit lk.salyk.kg [16:38:14]written 0, free lines is 4095 [16:38:14]Connected sock=10 [16:38:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 3D 08 07 01 07 D7 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 61 01 00 00 F4 03 04 00 F6 1A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 77 13 03 00 35 04 06 00 E2 07 B3 01 64 E4 DC 71 A3 03 BB 8E B5 78 [16:38:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E0 C1 47 00 E3 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 77 13 03 00 F4 03 04 00 9E C6 1C 67 B6 04 01 00 00 EE F6 B5 F3 7B 3F 5A BB [16:38:14]CommunicateWithHost err = 0 [16:38:14]CheckOFDResponse [16:38:14]1017 (14) - 77093643461234 [16:38:14]1041 (16) - 0000000000871756 [16:38:14]1040 (4) - 201591 [16:38:14]1012 (4) - 26.10.2024 10:38 [16:38:14]1206 (1) - 0 [16:38:14]OFD Sender: Remove packet 201591 [16:38:14]ProducePacketName [16:38:14]name=ofd_packets/00201591 [16:38:14]NVStorageDeleteData [16:38:14]Write to MH i2c: 01 00 00 82 31 B3 [16:38:14]Write i2c OK [16:38:14]MH_I2C_Read... [16:38:14]Read from MH i2c: 01 [16:38:14]MH_I2C_Read... [16:38:14]Read from MH i2c: 01 07 00 [16:38:14]MH_I2C_Read... [16:38:14]Read from MH i2c: 01 07 00 82 31 00 00 00 00 00 99 0C 5F [16:38:14]RasterBufferAndPrint [16:38:14]line [16:38:14]line [16:38:14]line [16:38:14]line [16:38:14]line [16:38:14]written 0, free lines is 3231 [16:38:14]MH_Cut [16:38:14]Write to MH i2c: D1 01 00 89 31 01 8C [16:38:14]Write i2c OK [16:38:14]MH_I2C_Read... [16:38:14]Read from MH i2c: D1 [16:38:14]MH_I2C_Read... [16:38:14]Read from MH i2c: D1 01 00 [16:38:14]MH_I2C_Read... [16:38:14]Read from MH i2c: D1 01 00 89 31 00 8B [16:38:14]Write to MH i2c: 01 00 00 8A 31 BB [16:38:14]Write i2c OK [16:38:14]MH_I2C_Read... [16:38:15]OFD Sender: No OFD packet to send [16:38:15]*** Cut start [16:38:15]*** Purtial cut [16:38:15]*** Stage 1: CUTSNS_PIN = 1 [16:38:15]Read from MH i2c: 01 [16:38:15]MH_I2C_Read... [16:38:15]*** Stop cut motor [16:38:15]*** Cut end [16:38:15]Read from MH i2c: 01 07 00 [16:38:15]MH_I2C_Read... [16:38:15]Read from MH i2c: 01 07 00 8A 31 00 00 00 00 00 FF 0F D0 [16:38:15]process_action close_receipt done [16:38:15]requested_data is exist [16:38:15]produce_requested_data [16:38:15]requested_item fm.sn is exist - process it [16:38:15]wFMCommunicate request_size=4 [16:38:15]MH_SAM_APDU [16:38:15]CAPDU: 80 11 00 00 [16:38:15]Write to MH i2c: E2 08 00 8B 31 80 11 00 00 00 00 00 00 36 [16:38:15]Write i2c OK [16:38:15]MH_I2C_Read... [16:38:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:15]Read from MH i2c: E2 [16:38:15]MH_I2C_Read... [16:38:15]Read from MH i2c: E2 17 00 [16:38:15]MH_I2C_Read... [16:38:15]Read from MH i2c: E2 17 00 8B 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8B [16:38:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:38:15]wFMCommunicate OK [16:38:15]requested_item fd.num is exist - process it [16:38:15]SAM_PROTO_GetFieldsCounters [16:38:15]wFMCommunicate request_size=4 [16:38:15]MH_SAM_APDU [16:38:15]CAPDU: 80 13 00 00 [16:38:15]Write to MH i2c: E2 08 00 8C 31 80 13 00 00 00 00 00 00 39 [16:38:15]Write i2c OK [16:38:15]MH_I2C_Read... [16:38:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:16]Read from MH i2c: E2 [16:38:16]MH_I2C_Read... [16:38:16]Read from MH i2c: E2 62 00 [16:38:16]MH_I2C_Read... [16:38:16]Read from MH i2c: E2 62 00 8C 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 77 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 36 [16:38:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 77 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:38:16]wFMCommunicate OK [16:38:16]SAM_PROTO_GetFieldsCounters done [16:38:16]requested_item shift.num is exist - process it [16:38:16]requested_item shift.opened is exist - process it [16:38:16]req_shift_opened [16:38:16]FM_GetShiftState [16:38:16]SAM_PROTO_GetShiftState [16:38:16]wFMCommunicate request_size=4 [16:38:16]MH_SAM_APDU [16:38:16]CAPDU: 80 13 01 00 [16:38:16]Write to MH i2c: E2 08 00 8D 31 80 13 01 00 00 00 00 00 3B [16:38:16]Write i2c OK [16:38:16]MH_I2C_Read... [16:38:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:16]Read from MH i2c: E2 [16:38:16]MH_I2C_Read... [16:38:16]Read from MH i2c: E2 0E 00 [16:38:16]MH_I2C_Read... [16:38:16]Read from MH i2c: E2 0E 00 8D 31 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 4A [16:38:16]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:38:16]wFMCommunicate OK [16:38:16]SAM_PROTO_GetShiftState done [16:38:16]FM_GetShiftState done [16:38:16]req_shift_opened done [16:38:16]requested_item shift.open_date is exist - process it [16:38:16]req_shift_open_date [16:38:16]req_shift_open_date done [16:38:16]produce_requested_data done [16:38:16]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201591,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [16:38:16]process_action_free close_receipt [16:38:16]json_value_free [16:38:16]json_value_free done [16:38:16]process_json_proto returns [16:38:16]Send response to host [16:38:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201591,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [16:38:16]free response buf [16:38:16]execute_script done [16:38:16]execute_script returns [16:38:16]free content buf [16:38:16]Sock 8.Close socket [16:38:16]Sock 8.Thread stoped [16:38:20]OFD Sender: No OFD packet to send [16:38:25]OFD Sender: No OFD packet to send [16:38:30]OFD Sender: No OFD packet to send [16:38:35]OFD Sender: No OFD packet to send [16:38:40]OFD Sender: No OFD packet to send [16:38:45]OFD Sender: No OFD packet to send [16:38:50]OFD Sender: No OFD packet to send [16:38:55]OFD Sender: No OFD packet to send [16:39:00]OFD Sender: No OFD packet to send [16:39:05]OFD Sender: No OFD packet to send [16:39:10]OFD Sender: No OFD packet to send [16:39:15]OFD Sender: No OFD packet to send [16:39:20]OFD Sender: No OFD packet to send [16:39:25]OFD Sender: No OFD packet to send [16:39:30]OFD Sender: No OFD packet to send [16:39:35]OFD Sender: No OFD packet to send [16:39:40]OFD Sender: No OFD packet to send [16:39:45]OFD Sender: No OFD packet to send [16:39:50]OFD Sender: No OFD packet to send [16:39:55]OFD Sender: No OFD packet to send [16:40:00]OFD Sender: No OFD packet to send [16:40:05]OFD Sender: No OFD packet to send [16:40:10]OFD Sender: No OFD packet to send [16:40:15]OFD Sender: No OFD packet to send [16:40:20]OFD Sender: No OFD packet to send [16:40:25]OFD Sender: No OFD packet to send [16:40:30]OFD Sender: No OFD packet to send [16:40:35]OFD Sender: No OFD packet to send [16:40:40]OFD Sender: No OFD packet to send [16:40:45]OFD Sender: No OFD packet to send [16:40:50]OFD Sender: No OFD packet to send [16:40:55]OFD Sender: No OFD packet to send [16:41:00]OFD Sender: No OFD packet to send [16:41:05]OFD Sender: No OFD packet to send [16:41:10]OFD Sender: No OFD packet to send [16:41:15]OFD Sender: No OFD packet to send [16:41:20]OFD Sender: No OFD packet to send [16:41:25]OFD Sender: No OFD packet to send [16:41:30]OFD Sender: No OFD packet to send [16:41:35]OFD Sender: No OFD packet to send [16:41:40]OFD Sender: No OFD packet to send [16:41:45]OFD Sender: No OFD packet to send [16:41:50]OFD Sender: No OFD packet to send [16:41:55]OFD Sender: No OFD packet to send [16:42:00]OFD Sender: No OFD packet to send [16:42:05]OFD Sender: No OFD packet to send [16:42:10]OFD Sender: No OFD packet to send [16:42:15]OFD Sender: No OFD packet to send [16:42:20]OFD Sender: No OFD packet to send [16:42:25]OFD Sender: No OFD packet to send [16:42:30]OFD Sender: No OFD packet to send [16:42:35]OFD Sender: No OFD packet to send [16:42:40]OFD Sender: No OFD packet to send [16:42:45]OFD Sender: No OFD packet to send [16:42:50]OFD Sender: No OFD packet to send [16:42:55]OFD Sender: No OFD packet to send [16:43:00]OFD Sender: No OFD packet to send [16:43:05]OFD Sender: No OFD packet to send [16:43:10]OFD Sender: No OFD packet to send [16:43:15]OFD Sender: No OFD packet to send [16:43:20]OFD Sender: No OFD packet to send [16:43:25]OFD Sender: No OFD packet to send [16:43:30]OFD Sender: No OFD packet to send [16:43:33]accept exits with 9 [16:43:33]New connection [16:43:33]New thread 3066690916 created [16:43:33]Thread 3066834276 joined [16:43:33]Waiting for new connection... [16:43:33] Sock 9.Parse request [16:43:33]Sock 9.Check first char [16:43:33]Sock 9.First char is OK [16:43:33]request: POST /json_proto HTTP/1.0 [16:43:33]Method: POST [16:43:33]URL: /json_proto [16:43:33]Method is POST - this is cgi request [16:43:33]url: /json_proto [16:43:33]query_string will be loaded in cgi processing [16:43:33]execute_cgi json_proto POST (null) [16:43:33]execute_cgi path=json_proto method=POST [16:43:33]POST find Content-Length [16:43:33]Host: 172.17.63.195:8080 [16:43:33]Content-Length: 675 [16:43:33]Content-Type: application/json [16:43:33] [16:43:33]POST finish read [16:43:33]Found Content-Length = 675 [16:43:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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" ] } } [16:43:33]execute_script... [16:43: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)449348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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" ] } } [16:43:33]POST & json_proto [16:43:33]process_json_proto [16:43:33]json parsed OK: [16:43:33]protocol is kg_v1.0 [16:43:33]action value=close_receipt [16:43:33]process_action close_receipt [16:43:33]cmd_close_receipt [16:43:33]MH_GetDate [16:43:33]Write to MH i2c: F0 00 00 8E 31 AE [16:43:33]Write i2c OK [16:43:33]MH_I2C_Read... [16:43:33]Read from MH i2c: F0 [16:43:33]MH_I2C_Read... [16:43:33]Read from MH i2c: F0 09 00 [16:43:33]MH_I2C_Read... [16:43:33]Read from MH i2c: F0 09 00 8E 31 00 36 1C 1D 67 68 46 19 67 BB [16:43:33]GetLastDocTimeStamp 1729960694 [16:43:33]current date 1729961014 [16:43:33]FM_GetShiftState [16:43:33]SAM_PROTO_GetShiftState [16:43:33]wFMCommunicate request_size=4 [16:43:33]MH_SAM_APDU [16:43:33]CAPDU: 80 13 01 00 [16:43:33]Write to MH i2c: E2 08 00 8F 31 80 13 01 00 00 00 00 00 3D [16:43:33]Write i2c OK [16:43:33]MH_I2C_Read... [16:43:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:33]Read from MH i2c: E2 [16:43:33]MH_I2C_Read... [16:43:33]Read from MH i2c: E2 0E 00 [16:43:33]MH_I2C_Read... [16:43:33]Read from MH i2c: E2 0E 00 8F 31 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 4C [16:43:33]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:43:33]wFMCommunicate OK [16:43:33]SAM_PROTO_GetShiftState done [16:43:33]FM_GetShiftState done [16:43:33]opened in 1729900879 [16:43:33]opened+sec_in_day 1729987279 [16:43:33]quantity*price = 100000 [16:43:33]sum+1 = 100002 [16:43:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 354 26.10.2024 16:43 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201592 ФПД: 185107263106093 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T164334&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201592&fm=185107263106093&tin=02508201610067®Number=0000000000091777&sum=100000 [16:43:34]StoreToDocumentArchive [16:43:34]shift 543 fd 201592 [16:43:34]save to /storage/0543/doc_00201592 [16:43:34]save last doc name /storage/0543/doc_00201592 to /storage/kkm_last_doc_name [16:43:34]save OK [16:43:34]Clear old archive folders... [16:43:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:43:34]tlvbuf is 01F35870 [16:43:34]SAM_PROTO_ClearQueue [16:43:34]wFMCommunicate request_size=4 [16:43:34]MH_SAM_APDU [16:43:34]CAPDU: 80 09 00 00 [16:43:34]Write to MH i2c: E2 08 00 9C 31 80 09 00 00 00 00 00 00 3F [16:43:34]Write i2c OK [16:43:34]MH_I2C_Read... [16:43:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:43:34]Read from MH i2c: E2 [16:43:34]MH_I2C_Read... [16:43:34]Read from MH i2c: E2 03 00 [16:43:34]MH_I2C_Read... [16:43:34]Read from MH i2c: E2 03 00 9C 31 00 90 00 41 [16:43:34]RAPDU: 90 00 [16:43:34]wFMCommunicate OK [16:43:34]SAM_PROTO_ClearQueue done [16:43:34]KKMCreateOFDPacket [16:43:34]OFDProtocolAddRootSTLVToBuf [16:43:34]FM_MakeSignedData [16:43:34]FM_MakeSignedData [16:43:34]SAM_PROTO_SignData [16:43:34]wFMCommunicate request_size=4 [16:43:34]MH_SAM_APDU [16:43:34]CAPDU: 80 0D 01 02 [16:43:34]Write to MH i2c: E2 08 00 9D 31 80 0D 01 02 00 00 00 00 47 [16:43:34]Write i2c OK [16:43:34]MH_I2C_Read... [16:43:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:43:34]Read from MH i2c: E2 [16:43:34]MH_I2C_Read... [16:43:34]Read from MH i2c: E2 03 00 [16:43:34]MH_I2C_Read... [16:43:34]Read from MH i2c: E2 03 00 9D 31 00 90 00 42 [16:43:34]RAPDU: 90 00 [16:43:34]wFMCommunicate OK [16:43:34]wFMCommunicate request_size=255 [16:43:34]MH_SAM_APDU [16:43:34]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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 62 01 00 00 F4 03 04 00 36 1C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 78 13 03 00 35 04 06 00 [16:43:34]Write to MH i2c: E2 02 01 9E 31 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 62 01 00 00 F4 03 04 00 36 1C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 78 13 03 00 35 04 06 00 00 00 98 [16:43:34]Write i2c OK [16:43:34]MH_I2C_Read... [16:43:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:34]Read from MH i2c: E2 [16:43:34]MH_I2C_Read... [16:43:34]Read from MH i2c: E2 03 00 [16:43:34]MH_I2C_Read... [16:43:34]Read from MH i2c: E2 03 00 9E 31 00 90 00 43 [16:43:34]RAPDU: 90 00 [16:43:34]wFMCommunicate OK [16:43:34]wFMCommunicate request_size=11 [16:43:34]MH_SAM_APDU [16:43:34]CAPDU: 80 0D 02 02 06 A8 5A A4 A9 AC 2D [16:43:34]Write to MH i2c: E2 0E 00 9F 31 80 0D 02 02 06 00 A8 5A A4 A9 AC 2D 00 00 7E [16:43:34]Write i2c OK [16:43:34]MH_I2C_Read... [16:43:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:34]Read from MH i2c: E2 [16:43:34]MH_I2C_Read... [16:43:34]Read from MH i2c: E2 03 00 [16:43:34]MH_I2C_Read... [16:43:34]Read from MH i2c: E2 03 00 9F 31 00 90 00 44 [16:43:34]RAPDU: 90 00 [16:43:34]wFMCommunicate OK [16:43:34]wFMCommunicate request_size=4 [16:43:34]MH_SAM_APDU [16:43:34]CAPDU: 80 0D 03 02 [16:43:34]Write to MH i2c: E2 08 00 A0 31 80 0D 03 02 00 00 00 00 4C [16:43:34]Write i2c OK [16:43:34]MH_I2C_Read... [16:43:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:43:34]Read from MH i2c: E2 [16:43:34]MH_I2C_Read... [16:43:34]Read from MH i2c: E2 0B 00 [16:43:34]MH_I2C_Read... [16:43:34]Read from MH i2c: E2 0B 00 A0 31 00 BA 3F 38 25 D4 84 0C 06 90 00 0D [16:43:34]RAPDU: BA 3F 38 25 D4 84 0C 06 90 00 [16:43:34]wFMCommunicate OK [16:43:34]SAM_PROTO_SignData done [16:43:34]FM_MakeSignedData done [16:43:34]CreateOFDProtocolMessage [16:43:34]wFMCommunicate request_size=4 [16:43:34]MH_SAM_APDU [16:43:34]CAPDU: 80 11 00 00 [16:43:34]Write to MH i2c: E2 08 00 A1 31 80 11 00 00 00 00 00 00 4C [16:43:34]Write i2c OK [16:43:34]MH_I2C_Read... [16:43:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:34]Read from MH i2c: E2 [16:43:34]MH_I2C_Read... [16:43:34]Read from MH i2c: E2 17 00 [16:43:34]MH_I2C_Read... [16:43:34]Read from MH i2c: E2 17 00 A1 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A1 [16:43:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:43:34]wFMCommunicate OK [16:43:34]CreateOFDProtocolMessage done [16:43:34]OFDSenderStorePacket 201592 [16:43:34]StoreOFDPacket docnum=201592 [16:43:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 E1 BF 08 01 C7 44 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 62 01 00 00 F4 03 04 00 36 1C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 78 13 03 00 35 04 06 00 A8 5A A4 A9 AC 2D BA 3F 38 25 D4 84 0C 06 [16:43:34]CheckFolder [16:43:34]dirname=/storage/ofd_packets [16:43:34]CheckFolder done [16:43:34]ProducePacketName [16:43:34]name=ofd_packets/00201592 [16:43:34]NVStorageSaveData ofd_packets/00201592 [16:43:34]File name is /storage/ofd_packets/00201592 [16:43:34]Write 302 bytes [16:43:34]NVStorageSaveData done [16:43:34]OFDSenderStorePacket done [16:43:34]KKMCreateOFDPacket done [16:43:34]NVStorageSaveData kkm_last_timestamp [16:43:34]File name is /storage/kkm_last_timestamp [16:43:34]Write 4 bytes [16:43:34]NVStorageSaveData done [16:43:34]ExternCall_PrintAddStr [16:43:34]wPrintStart [16:43:34]Write to MH i2c: 01 00 00 A2 31 D3 [16:43:34]Write i2c OK [16:43:34]MH_I2C_Read... [16:43:34]Read from MH i2c: 01 [16:43:34]MH_I2C_Read... [16:43:34]Read from MH i2c: 01 07 00 [16:43:34]MH_I2C_Read... [16:43:34]Read from MH i2c: 01 07 00 A2 31 00 00 00 00 00 FF 0F E8 [16:43:34]RasterBufferAndPrint [16:43:34]line Счет N : (1)449348 [16:43:34]line ИНН: 02508201610067 [16:43:34]line Контрольно-Кассовый Чек [16:43:34]line ПРОДАЖА [16:43:34]line ТРК (МРК, ГНК) : 42 [16:43:34]line Товар: 2710124130 [16:43:34]line SUPER 92-К-5 [16:43:34]line 14.620 * 68.40 [16:43:34]line = 1000.01 [16:43:34]line НДС 12% НСП 1% [16:43:34]line > о реализуемом товаре [16:43:34]line ОКРУГЛЕНИЕ: -0.01 [16:43:34]line ИТОГО: 1000.00 [16:43:34]line Внесено: 1000.00 [16:43:34]line СДАЧА: 0.00 [16:43:34]line НСП 1% : 8.85 [16:43:34]line НДС 12% : 106.20 [16:43:34]line Наличными: 1000.00 [16:43:34]line Безнал.: 0.00 [16:43:34]line Место: АЗС № 171 "Партнер Нефть" [16:43:34]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:43:34]line СНО: Общий режим [16:43:34]line Чек 354 26.10.2024 16:43 [16:43:34]line Смена: 543 ФФД: 1.0 [16:43:34]line ЗНМ: 0300000109 [16:43:34]line РНМ: 0000000000091777 [16:43:34]line Версия ККМ: 001 [16:43:34]line ФМ: 0000000000871756 [16:43:34]line ФД: 201592 [16:43:34]line ФПД: 185107263106093 [16:43:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T164334&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201592&fm=185107263106093&tin=02508201610067®Number=0000000000091777&sum=100000 [16:43:34]written 0, free lines is 4095 [16:43:34]OFD Sender: Processing packet 201592 [packets to send 112, broken 111] [16:43:34]ProducePacketName [16:43:34]name=ofd_packets/00201592 [16:43:34]OFD Sender: To server: pG, [16:43:34]CommunicateWithHost lk.salyk.kg:30040 [16:43:34]ConnectInit lk.salyk.kg [16:43:34]Connected sock=10 [16:43:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 E1 BF 08 01 C7 44 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 62 01 00 00 F4 03 04 00 36 1C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 78 13 03 00 35 04 06 00 A8 5A A4 A9 AC 2D BA 3F 38 25 D4 84 0C 06 [16:43:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C1 DF 47 00 F7 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 78 13 03 00 F4 03 04 00 DF C7 1C 67 B6 04 01 00 00 09 DA 7A 67 7C 22 8E 9F [16:43:35]CommunicateWithHost err = 0 [16:43:35]CheckOFDResponse [16:43:35]1017 (14) - 77093643461234 [16:43:35]1041 (16) - 0000000000871756 [16:43:35]1040 (4) - 201592 [16:43:35]1012 (4) - 26.10.2024 10:43 [16:43:35]1206 (1) - 0 [16:43:35]OFD Sender: Remove packet 201592 [16:43:35]ProducePacketName [16:43:35]name=ofd_packets/00201592 [16:43:35]NVStorageDeleteData [16:43:35]Write to MH i2c: 01 00 00 CD 31 FE [16:43:35]Write i2c OK [16:43:35]MH_I2C_Read... [16:43:35]Read from MH i2c: 01 [16:43:35]MH_I2C_Read... [16:43:35]Read from MH i2c: 01 07 00 [16:43:35]MH_I2C_Read... [16:43:35]Read from MH i2c: 01 07 00 CD 31 00 00 00 00 00 9B 0C AC [16:43:35]RasterBufferAndPrint [16:43:35]line [16:43:35]line [16:43:35]line [16:43:35]line [16:43:35]line [16:43:35]written 0, free lines is 3233 [16:43:35]MH_Cut [16:43:35]Write to MH i2c: D1 01 00 D4 31 01 D7 [16:43:35]Write i2c OK [16:43:35]MH_I2C_Read... [16:43:35]Read from MH i2c: D1 [16:43:35]MH_I2C_Read... [16:43:35]Read from MH i2c: D1 01 00 [16:43:35]MH_I2C_Read... [16:43:35]Read from MH i2c: D1 01 00 D4 31 00 D6 [16:43:35]Write to MH i2c: 01 00 00 D5 31 06 [16:43:35]Write i2c OK [16:43:35]MH_I2C_Read... [16:43:35]OFD Sender: No OFD packet to send [16:43:36]*** Cut start [16:43:36]*** Purtial cut [16:43:36]*** Stage 1: CUTSNS_PIN = 1 [16:43:36]Read from MH i2c: 01 [16:43:36]MH_I2C_Read... [16:43:36]*** Stop cut motor [16:43:36]*** Cut end [16:43:36]Read from MH i2c: 01 07 00 [16:43:36]MH_I2C_Read... [16:43:36]Read from MH i2c: 01 07 00 D5 31 00 00 00 00 00 FF 0F 1B [16:43:36]process_action close_receipt done [16:43:36]requested_data is exist [16:43:36]produce_requested_data [16:43:36]requested_item fm.sn is exist - process it [16:43:36]wFMCommunicate request_size=4 [16:43:36]MH_SAM_APDU [16:43:36]CAPDU: 80 11 00 00 [16:43:36]Write to MH i2c: E2 08 00 D6 31 80 11 00 00 00 00 00 00 81 [16:43:36]Write i2c OK [16:43:36]MH_I2C_Read... [16:43:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:36]Read from MH i2c: E2 [16:43:36]MH_I2C_Read... [16:43:36]Read from MH i2c: E2 17 00 [16:43:36]MH_I2C_Read... [16:43:36]Read from MH i2c: E2 17 00 D6 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D6 [16:43:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:43:36]wFMCommunicate OK [16:43:36]requested_item fd.num is exist - process it [16:43:36]SAM_PROTO_GetFieldsCounters [16:43:36]wFMCommunicate request_size=4 [16:43:36]MH_SAM_APDU [16:43:36]CAPDU: 80 13 00 00 [16:43:36]Write to MH i2c: E2 08 00 D7 31 80 13 00 00 00 00 00 00 84 [16:43:36]Write i2c OK [16:43:36]MH_I2C_Read... [16:43:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:43:36]Read from MH i2c: E2 [16:43:36]MH_I2C_Read... [16:43:36]Read from MH i2c: E2 62 00 [16:43:36]MH_I2C_Read... [16:43:36]Read from MH i2c: E2 62 00 D7 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 78 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 85 [16:43:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 78 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:43:36]wFMCommunicate OK [16:43:36]SAM_PROTO_GetFieldsCounters done [16:43:36]requested_item shift.num is exist - process it [16:43:36]requested_item shift.opened is exist - process it [16:43:36]req_shift_opened [16:43:36]FM_GetShiftState [16:43:36]SAM_PROTO_GetShiftState [16:43:36]wFMCommunicate request_size=4 [16:43:36]MH_SAM_APDU [16:43:36]CAPDU: 80 13 01 00 [16:43:36]Write to MH i2c: E2 08 00 D8 31 80 13 01 00 00 00 00 00 86 [16:43:36]Write i2c OK [16:43:36]MH_I2C_Read... [16:43:36]Read from MH i2c: E2 [16:43:36]MH_I2C_Read... [16:43:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:36]Read from MH i2c: E2 0E 00 [16:43:36]MH_I2C_Read... [16:43:36]Read from MH i2c: E2 0E 00 D8 31 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 95 [16:43:36]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:43:36]wFMCommunicate OK [16:43:36]SAM_PROTO_GetShiftState done [16:43:36]FM_GetShiftState done [16:43:36]req_shift_opened done [16:43:36]requested_item shift.open_date is exist - process it [16:43:36]req_shift_open_date [16:43:36]req_shift_open_date done [16:43:36]produce_requested_data done [16:43:36]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201592,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [16:43:36]process_action_free close_receipt [16:43:36]json_value_free [16:43:36]json_value_free done [16:43:36]process_json_proto returns [16:43:36]Send response to host [16:43:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201592,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [16:43:36]free response buf [16:43:36]execute_script done [16:43:36]execute_script returns [16:43:36]free content buf [16:43:36]Sock 9.Close socket [16:43:36]Sock 9.Thread stoped [16:43:40]OFD Sender: No OFD packet to send [16:43:45]OFD Sender: No OFD packet to send [16:43:50]OFD Sender: No OFD packet to send [16:43:55]OFD Sender: No OFD packet to send [16:44:00]OFD Sender: No OFD packet to send [16:44:05]OFD Sender: No OFD packet to send [16:44:10]OFD Sender: No OFD packet to send [16:44:15]OFD Sender: No OFD packet to send [16:44:20]OFD Sender: No OFD packet to send [16:44:25]OFD Sender: No OFD packet to send [16:44:30]OFD Sender: No OFD packet to send [16:44:35]OFD Sender: No OFD packet to send [16:44:40]OFD Sender: No OFD packet to send [16:44:45]OFD Sender: No OFD packet to send [16:44:50]OFD Sender: No OFD packet to send [16:44:55]OFD Sender: No OFD packet to send [16:45:00]OFD Sender: No OFD packet to send [16:45:05]OFD Sender: No OFD packet to send [16:45:10]OFD Sender: No OFD packet to send [16:45:15]OFD Sender: No OFD packet to send [16:45:20]OFD Sender: No OFD packet to send [16:45:25]OFD Sender: No OFD packet to send [16:45:30]OFD Sender: No OFD packet to send [16:45:35]OFD Sender: No OFD packet to send [16:45:40]OFD Sender: No OFD packet to send [16:45:45]OFD Sender: No OFD packet to send [16:45:50]OFD Sender: No OFD packet to send [16:45:55]OFD Sender: No OFD packet to send [16:46:00]OFD Sender: No OFD packet to send [16:46:05]OFD Sender: No OFD packet to send [16:46:10]OFD Sender: No OFD packet to send [16:46:15]OFD Sender: No OFD packet to send [16:46:20]OFD Sender: No OFD packet to send [16:46:25]OFD Sender: No OFD packet to send [16:46:30]OFD Sender: No OFD packet to send [16:46:35]OFD Sender: No OFD packet to send [16:46:40]OFD Sender: No OFD packet to send [16:46:45]OFD Sender: No OFD packet to send [16:46:50]OFD Sender: No OFD packet to send [16:46:55]OFD Sender: No OFD packet to send [16:47:00]OFD Sender: No OFD packet to send [16:47:05]OFD Sender: No OFD packet to send [16:47:10]OFD Sender: No OFD packet to send [16:47:15]OFD Sender: No OFD packet to send [16:47:20]OFD Sender: No OFD packet to send [16:47:25]OFD Sender: No OFD packet to send [16:47:30]OFD Sender: No OFD packet to send [16:47:36]OFD Sender: No OFD packet to send [16:47:41]OFD Sender: No OFD packet to send [16:47:46]OFD Sender: No OFD packet to send [16:47:48]accept exits with 8 [16:47:48]New connection [16:47:48]New thread 3066834276 created [16:47:48]Thread 3066690916 joined [16:47:48]Waiting for new connection... [16:47:48] Sock 8.Parse request [16:47:48]Sock 8.Check first char [16:47:48]Sock 8.First char is OK [16:47:48]request: POST /json_proto HTTP/1.0 [16:47:48]Method: POST [16:47:48]URL: /json_proto [16:47:48]Method is POST - this is cgi request [16:47:48]url: /json_proto [16:47:48]query_string will be loaded in cgi processing [16:47:48]execute_cgi json_proto POST (null) [16:47:48]execute_cgi path=json_proto method=POST [16:47:48]POST find Content-Length [16:47:48]Host: 172.17.63.195:8080 [16:47:48]Content-Length: 769 [16:47:48]Content-Type: application/json [16:47:48] [16:47:48]POST finish read [16:47:48]Found Content-Length = 769 [16:47:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:48]execute_script... [16:47:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:48]POST & json_proto [16:47:48]process_json_proto [16:47:48]json parsed OK: [16:47:48]protocol is kg_v1.0 [16:47:48]action value=close_receipt [16:47:48]process_action close_receipt [16:47:48]cmd_close_receipt [16:47:48]MH_GetDate [16:47:48]Write to MH i2c: F0 00 00 D9 31 F9 [16:47:48]Write i2c OK [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: F0 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: F0 09 00 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: F0 09 00 D9 31 00 36 1D 1D 67 68 46 19 67 07 [16:47:48]GetLastDocTimeStamp 1729961014 [16:47:48]current date 1729961270 [16:47:48]FM_GetShiftState [16:47:48]SAM_PROTO_GetShiftState [16:47:48]wFMCommunicate request_size=4 [16:47:48]MH_SAM_APDU [16:47:48]CAPDU: 80 13 01 00 [16:47:48]Write to MH i2c: E2 08 00 DA 31 80 13 01 00 00 00 00 00 88 [16:47:48]Write i2c OK [16:47:48]MH_I2C_Read... [16:47:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:48]Read from MH i2c: E2 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: E2 0E 00 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: E2 0E 00 DA 31 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 97 [16:47:48]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:47:48]wFMCommunicate OK [16:47:48]SAM_PROTO_GetShiftState done [16:47:48]FM_GetShiftState done [16:47:48]opened in 1729900879 [16:47:48]opened+sec_in_day 1729987279 [16:47:48]quantity*price = 100015 [16:47:48]sum+1 = 100017 [16:47:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 355 26.10.2024 16:47 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201593 ФПД: 111440008549844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T164750&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201593&fm=111440008549844&tin=02508201610067®Number=0000000000091777&sum=100016 [16:47:50]StoreToDocumentArchive [16:47:50]shift 543 fd 201593 [16:47:50]save to /storage/0543/doc_00201593 [16:47:50]save last doc name /storage/0543/doc_00201593 to /storage/kkm_last_doc_name [16:47:50]save OK [16:47:50]Clear old archive folders... [16:47:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:47:50]tlvbuf is B6D8B6F0 [16:47:50]SAM_PROTO_ClearQueue [16:47:50]wFMCommunicate request_size=4 [16:47:50]MH_SAM_APDU [16:47:50]CAPDU: 80 09 00 00 [16:47:50]Write to MH i2c: E2 08 00 E7 31 80 09 00 00 00 00 00 00 8A [16:47:50]Write i2c OK [16:47:50]MH_I2C_Read... [16:47:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:50]Read from MH i2c: E2 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: E2 03 00 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: E2 03 00 E7 31 00 90 00 8C [16:47:50]RAPDU: 90 00 [16:47:50]wFMCommunicate OK [16:47:50]SAM_PROTO_ClearQueue done [16:47:50]KKMCreateOFDPacket [16:47:50]OFDProtocolAddRootSTLVToBuf [16:47:50]FM_MakeSignedData [16:47:50]FM_MakeSignedData [16:47:50]SAM_PROTO_SignData [16:47:50]wFMCommunicate request_size=4 [16:47:50]MH_SAM_APDU [16:47:50]CAPDU: 80 0D 01 02 [16:47:50]Write to MH i2c: E2 08 00 E8 31 80 0D 01 02 00 00 00 00 92 [16:47:50]Write i2c OK [16:47:50]MH_I2C_Read... [16:47:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:50]Read from MH i2c: E2 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: E2 03 00 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: E2 03 00 E8 31 00 90 00 8D [16:47:50]RAPDU: 90 00 [16:47:50]wFMCommunicate OK [16:47:50]wFMCommunicate request_size=255 [16:47:50]MH_SAM_APDU [16:47: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 32 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 B0 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 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 36 1D 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 79 13 03 00 35 04 06 00 65 [16:47:50]Write to MH i2c: E2 02 01 E9 31 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 32 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 B0 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 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 36 1D 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 79 13 03 00 35 04 06 00 65 00 00 90 [16:47:50]Write i2c OK [16:47:50]MH_I2C_Read... [16:47:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:50]Read from MH i2c: E2 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: E2 03 00 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: E2 03 00 E9 31 00 90 00 8E [16:47:50]RAPDU: 90 00 [16:47:50]wFMCommunicate OK [16:47:50]wFMCommunicate request_size=10 [16:47:50]MH_SAM_APDU [16:47:50]CAPDU: 80 0D 02 02 05 5A A6 1F 95 D4 [16:47:50]Write to MH i2c: E2 0D 00 EA 31 80 0D 02 02 05 00 5A A6 1F 95 D4 00 00 27 [16:47:50]Write i2c OK [16:47:50]MH_I2C_Read... [16:47:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:50]Read from MH i2c: E2 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: E2 03 00 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: E2 03 00 EA 31 00 90 00 8F [16:47:50]RAPDU: 90 00 [16:47:50]wFMCommunicate OK [16:47:50]wFMCommunicate request_size=4 [16:47:50]MH_SAM_APDU [16:47:50]CAPDU: 80 0D 03 02 [16:47:50]Write to MH i2c: E2 08 00 EB 31 80 0D 03 02 00 00 00 00 97 [16:47:50]Write i2c OK [16:47:50]MH_I2C_Read... [16:47:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:50]Read from MH i2c: E2 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: E2 0B 00 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: E2 0B 00 EB 31 00 ED B2 7A FA 24 2C 18 04 90 00 17 [16:47:50]RAPDU: ED B2 7A FA 24 2C 18 04 90 00 [16:47:50]wFMCommunicate OK [16:47:50]SAM_PROTO_SignData done [16:47:50]FM_MakeSignedData done [16:47:50]CreateOFDProtocolMessage [16:47:50]wFMCommunicate request_size=4 [16:47:50]MH_SAM_APDU [16:47:50]CAPDU: 80 11 00 00 [16:47:50]Write to MH i2c: E2 08 00 EC 31 80 11 00 00 00 00 00 00 97 [16:47:50]Write i2c OK [16:47:50]MH_I2C_Read... [16:47:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:50]Read from MH i2c: E2 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: E2 17 00 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: E2 17 00 EC 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EC [16:47:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:47:50]wFMCommunicate OK [16:47:50]CreateOFDProtocolMessage done [16:47:50]OFDSenderStorePacket 201593 [16:47:50]StoreOFDPacket docnum=201593 [16:47:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 20 C8 07 01 C3 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 32 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 B0 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 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 36 1D 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 79 13 03 00 35 04 06 00 65 5A A6 1F 95 D4 ED B2 7A FA 24 2C 18 04 [16:47:50]CheckFolder [16:47:50]dirname=/storage/ofd_packets [16:47:50]CheckFolder done [16:47:50]ProducePacketName [16:47:50]name=ofd_packets/00201593 [16:47:50]NVStorageSaveData ofd_packets/00201593 [16:47:50]File name is /storage/ofd_packets/00201593 [16:47:50]Write 301 bytes [16:47:50]NVStorageSaveData done [16:47:50]OFDSenderStorePacket done [16:47:50]KKMCreateOFDPacket done [16:47:50]NVStorageSaveData kkm_last_timestamp [16:47:50]File name is /storage/kkm_last_timestamp [16:47:50]Write 4 bytes [16:47:50]NVStorageSaveData done [16:47:50]ExternCall_PrintAddStr [16:47:50]wPrintStart [16:47:50]Write to MH i2c: 01 00 00 ED 31 1E [16:47:50]Write i2c OK [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: 01 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: 01 07 00 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: 01 07 00 ED 31 00 00 00 00 00 FF 0F 33 [16:47:50]RasterBufferAndPrint [16:47:50]line Счет N : (1)449349 [16:47:50]line ИНН: 02508201610067 [16:47:50]line Контрольно-Кассовый Чек [16:47:50]line ПРОДАЖА [16:47:50]line ТРК (МРК, ГНК) : 41 [16:47:50]line Товар: 2710124130 [16:47:50]line Аи-92-К-2 [16:47:50]line 14.950 * 66.90 [16:47:50]line = 1000.16 [16:47:50]line НДС 12% НСП 1% [16:47:50]line > о реализуемом товаре [16:47:50]line ИТОГО: 1000.16 [16:47:50]line НСП 1% : 8.85 [16:47:50]line НДС 12% : 106.21 [16:47:50]line Наличными: 0.00 [16:47:50]line Безнал.: 1000.16 [16:47:50]line Место: АЗС № 171 "Партнер Нефть" [16:47:50]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:47:50]line СНО: Общий режим [16:47:50]line Чек 355 26.10.2024 16:47 [16:47:50]line Смена: 543 ФФД: 1.0 [16:47:50]line ЗНМ: 0300000109 [16:47:50]line РНМ: 0000000000091777 [16:47:50]line Версия ККМ: 001 [16:47:50]line Платежная система: Mbank [16:47:50]line ФМ: 0000000000871756 [16:47:50]line ФД: 201593 [16:47:50]line ФПД: 111440008549844 [16:47:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T164750&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201593&fm=111440008549844&tin=02508201610067®Number=0000000000091777&sum=100016 [16:47:50]written 0, free lines is 4095 [16:47:50]OFD Sender: Processing packet 201593 [packets to send 112, broken 111] [16:47:50]ProducePacketName [16:47:50]name=ofd_packets/00201593 [16:47:50]OFD Sender: To server: pG, [16:47:50]CommunicateWithHost lk.salyk.kg:30040 [16:47:50]ConnectInit lk.salyk.kg [16:47:51]Connected sock=10 [16:47:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 20 C8 07 01 C3 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 32 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 B0 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 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 36 1D 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 79 13 03 00 35 04 06 00 65 5A A6 1F 95 D4 ED B2 7A FA 24 2C 18 04 [16:47:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E0 92 47 00 C6 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 79 13 03 00 F4 03 04 00 DF C8 1C 67 B6 04 01 00 00 3E 11 8B 4A 68 E5 01 31 [16:47:51]CommunicateWithHost err = 0 [16:47:51]CheckOFDResponse [16:47:51]1017 (14) - 77093643461234 [16:47:51]1041 (16) - 0000000000871756 [16:47:51]1040 (4) - 201593 [16:47:51]1012 (4) - 26.10.2024 10:47 [16:47:51]1206 (1) - 0 [16:47:51]OFD Sender: Remove packet 201593 [16:47:51]ProducePacketName [16:47:51]name=ofd_packets/00201593 [16:47:51]NVStorageDeleteData [16:47:51]Write to MH i2c: 01 00 00 16 32 48 [16:47:51]Write i2c OK [16:47:51]MH_I2C_Read... [16:47:51]Read from MH i2c: 01 [16:47:51]MH_I2C_Read... [16:47:51]Read from MH i2c: 01 07 00 [16:47:51]MH_I2C_Read... [16:47:51]Read from MH i2c: 01 07 00 16 32 00 00 00 00 00 CE 0C 29 [16:47:51]RasterBufferAndPrint [16:47:51]line [16:47:51]line [16:47:51]line [16:47:51]line [16:47:51]line [16:47:51]written 0, free lines is 3284 [16:47:51]MH_Cut [16:47:51]Write to MH i2c: D1 01 00 1D 32 01 21 [16:47:51]Write i2c OK [16:47:51]MH_I2C_Read... [16:47:51]Read from MH i2c: D1 [16:47:51]MH_I2C_Read... [16:47:51]Read from MH i2c: D1 01 00 [16:47:51]MH_I2C_Read... [16:47:51]Read from MH i2c: D1 01 00 1D 32 00 20 [16:47:51]Write to MH i2c: 01 00 00 1E 32 50 [16:47:51]Write i2c OK [16:47:51]MH_I2C_Read... [16:47:51]OFD Sender: No OFD packet to send [16:47:52]*** Cut start [16:47:52]*** Purtial cut [16:47:52]*** Stage 1: CUTSNS_PIN = 1 [16:47:52]Read from MH i2c: 01 [16:47:52]MH_I2C_Read... [16:47:52]*** Stop cut motor [16:47:52]*** Cut end [16:47:52]Read from MH i2c: 01 07 00 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: 01 07 00 1E 32 00 00 00 00 00 FF 0F 65 [16:47:52]process_action close_receipt done [16:47:52]requested_data is exist [16:47:52]produce_requested_data [16:47:52]requested_item fm.sn is exist - process it [16:47:52]wFMCommunicate request_size=4 [16:47:52]MH_SAM_APDU [16:47:52]CAPDU: 80 11 00 00 [16:47:52]Write to MH i2c: E2 08 00 1F 32 80 11 00 00 00 00 00 00 CB [16:47:52]Write i2c OK [16:47:52]MH_I2C_Read... [16:47:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:52]Read from MH i2c: E2 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 17 00 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 17 00 1F 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 20 [16:47:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:47:52]wFMCommunicate OK [16:47:52]requested_item fd.num is exist - process it [16:47:52]SAM_PROTO_GetFieldsCounters [16:47:52]wFMCommunicate request_size=4 [16:47:52]MH_SAM_APDU [16:47:52]CAPDU: 80 13 00 00 [16:47:52]Write to MH i2c: E2 08 00 20 32 80 13 00 00 00 00 00 00 CE [16:47:52]Write i2c OK [16:47:52]MH_I2C_Read... [16:47:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:52]Read from MH i2c: E2 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 62 00 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 62 00 20 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 79 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 D3 [16:47:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 79 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:47:52]wFMCommunicate OK [16:47:52]SAM_PROTO_GetFieldsCounters done [16:47:52]requested_item shift.num is exist - process it [16:47:52]requested_item shift.opened is exist - process it [16:47:52]req_shift_opened [16:47:52]FM_GetShiftState [16:47:52]SAM_PROTO_GetShiftState [16:47:52]wFMCommunicate request_size=4 [16:47:52]MH_SAM_APDU [16:47:52]CAPDU: 80 13 01 00 [16:47:52]Write to MH i2c: E2 08 00 21 32 80 13 01 00 00 00 00 00 D0 [16:47:52]Write i2c OK [16:47:52]MH_I2C_Read... [16:47:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:52]Read from MH i2c: E2 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 0E 00 [16:47:52]MH_I2C_Read... [16:47:52]Read from MH i2c: E2 0E 00 21 32 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 DF [16:47:52]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:47:52]wFMCommunicate OK [16:47:52]SAM_PROTO_GetShiftState done [16:47:52]FM_GetShiftState done [16:47:52]req_shift_opened done [16:47:52]requested_item shift.open_date is exist - process it [16:47:52]req_shift_open_date [16:47:52]req_shift_open_date done [16:47:52]produce_requested_data done [16:47:52]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201593,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [16:47:52]process_action_free close_receipt [16:47:52]json_value_free [16:47:52]json_value_free done [16:47:52]process_json_proto returns [16:47:52]Send response to host [16:47:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201593,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [16:47:52]free response buf [16:47:52]execute_script done [16:47:52]execute_script returns [16:47:52]free content buf [16:47:52]Sock 8.Close socket [16:47:52]Sock 8.Thread stoped [16:47:56]OFD Sender: No OFD packet to send [16:48:01]OFD Sender: No OFD packet to send [16:48:06]OFD Sender: No OFD packet to send [16:48:11]OFD Sender: No OFD packet to send [16:48:16]OFD Sender: No OFD packet to send [16:48:21]OFD Sender: No OFD packet to send [16:48:26]OFD Sender: No OFD packet to send [16:48:31]OFD Sender: No OFD packet to send [16:48:36]OFD Sender: No OFD packet to send [16:48:41]OFD Sender: No OFD packet to send [16:48:45]accept exits with 9 [16:48:45]New connection [16:48:45]New thread 3066690916 created [16:48:45]Thread 3066834276 joined [16:48:45]Waiting for new connection... [16:48:45] Sock 9.Parse request [16:48:45]Sock 9.Check first char [16:48:45]Sock 9.First char is OK [16:48:45]request: POST /json_proto HTTP/1.0 [16:48:45]Method: POST [16:48:45]URL: /json_proto [16:48:45]Method is POST - this is cgi request [16:48:45]url: /json_proto [16:48:45]query_string will be loaded in cgi processing [16:48:45]execute_cgi json_proto POST (null) [16:48:45]execute_cgi path=json_proto method=POST [16:48:45]POST find Content-Length [16:48:45]Host: 172.17.63.195:8080 [16:48:45]Content-Length: 677 [16:48:45]Content-Type: application/json [16:48:45] [16:48:45]POST finish read [16:48:45]Found Content-Length = 677 [16:48:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:48:45]execute_script... [16:48:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:48:45]POST & json_proto [16:48:45]process_json_proto [16:48:45]json parsed OK: [16:48:45]protocol is kg_v1.0 [16:48:45]action value=close_receipt [16:48:45]process_action close_receipt [16:48:45]cmd_close_receipt [16:48:45]MH_GetDate [16:48:45]Write to MH i2c: F0 00 00 22 32 43 [16:48:45]Write i2c OK [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: F0 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: F0 09 00 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: F0 09 00 22 32 00 6F 1D 1D 67 68 46 19 67 8A [16:48:45]GetLastDocTimeStamp 1729961270 [16:48:45]current date 1729961327 [16:48:45]FM_GetShiftState [16:48:45]SAM_PROTO_GetShiftState [16:48:45]wFMCommunicate request_size=4 [16:48:45]MH_SAM_APDU [16:48:45]CAPDU: 80 13 01 00 [16:48:45]Write to MH i2c: E2 08 00 23 32 80 13 01 00 00 00 00 00 D2 [16:48:45]Write i2c OK [16:48:45]MH_I2C_Read... [16:48:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:45]Read from MH i2c: E2 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: E2 0E 00 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: E2 0E 00 23 32 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E1 [16:48:45]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:48:45]wFMCommunicate OK [16:48:45]SAM_PROTO_GetShiftState done [16:48:45]FM_GetShiftState done [16:48:45]opened in 1729900879 [16:48:45]opened+sec_in_day 1729987279 [16:48:45]quantity*price = 50041 [16:48:45]sum+1 = 50042 [16:48:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 356 26.10.2024 16:48 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201594 ФПД: 35195064279052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T164847&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201594&fm=35195064279052&tin=02508201610067®Number=0000000000091777&sum=50000 [16:48:46]StoreToDocumentArchive [16:48:46]shift 543 fd 201594 [16:48:46]save to /storage/0543/doc_00201594 [16:48:46]save last doc name /storage/0543/doc_00201594 to /storage/kkm_last_doc_name [16:48:46]save OK [16:48:46]Clear old archive folders... [16:48:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:48:46]tlvbuf is 01F0A970 [16:48:46]SAM_PROTO_ClearQueue [16:48:46]wFMCommunicate request_size=4 [16:48:46]MH_SAM_APDU [16:48:46]CAPDU: 80 09 00 00 [16:48:46]Write to MH i2c: E2 08 00 30 32 80 09 00 00 00 00 00 00 D4 [16:48:46]Write i2c OK [16:48:46]MH_I2C_Read... [16:48:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:46]Read from MH i2c: E2 [16:48:46]MH_I2C_Read... [16:48:46]Read from MH i2c: E2 03 00 [16:48:46]MH_I2C_Read... [16:48:46]Read from MH i2c: E2 03 00 30 32 00 90 00 D6 [16:48:46]RAPDU: 90 00 [16:48:46]wFMCommunicate OK [16:48:46]SAM_PROTO_ClearQueue done [16:48:46]KKMCreateOFDPacket [16:48:46]OFDProtocolAddRootSTLVToBuf [16:48:46]FM_MakeSignedData [16:48:46]FM_MakeSignedData [16:48:46]SAM_PROTO_SignData [16:48:46]wFMCommunicate request_size=4 [16:48:46]MH_SAM_APDU [16:48:46]CAPDU: 80 0D 01 02 [16:48:46]Write to MH i2c: E2 08 00 31 32 80 0D 01 02 00 00 00 00 DC [16:48:46]Write i2c OK [16:48:46]MH_I2C_Read... [16:48:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:46]Read from MH i2c: E2 [16:48:46]MH_I2C_Read... [16:48:46]Read from MH i2c: E2 03 00 [16:48:46]MH_I2C_Read... [16:48:46]Read from MH i2c: E2 03 00 31 32 00 90 00 D7 [16:48:46]RAPDU: 90 00 [16:48:46]wFMCommunicate OK [16:48:46]wFMCommunicate request_size=255 [16:48:46]MH_SAM_APDU [16:48:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 64 01 00 00 F4 03 04 00 6F 1D 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7A 13 03 00 35 04 06 00 20 [16:48:46]Write to MH i2c: E2 02 01 32 32 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 32 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 64 01 00 00 F4 03 04 00 6F 1D 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7A 13 03 00 35 04 06 00 20 00 00 B6 [16:48:46]Write i2c OK [16:48:46]MH_I2C_Read... [16:48:46]OFD Sender: No OFD packet to send [16:48:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:46]Read from MH i2c: E2 [16:48:46]MH_I2C_Read... [16:48:46]Read from MH i2c: E2 03 00 [16:48:46]MH_I2C_Read... [16:48:46]Read from MH i2c: E2 03 00 32 32 00 90 00 D8 [16:48:46]RAPDU: 90 00 [16:48:46]wFMCommunicate OK [16:48:46]wFMCommunicate request_size=10 [16:48:46]MH_SAM_APDU [16:48:46]CAPDU: 80 0D 02 02 05 02 7D 4D E0 0C [16:48:46]Write to MH i2c: E2 0D 00 33 32 80 0D 02 02 05 00 02 7D 4D E0 0C 00 00 A1 [16:48:46]Write i2c OK [16:48:46]MH_I2C_Read... [16:48:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:46]Read from MH i2c: E2 [16:48:46]MH_I2C_Read... [16:48:46]Read from MH i2c: E2 03 00 [16:48:46]MH_I2C_Read... [16:48:46]Read from MH i2c: E2 03 00 33 32 00 90 00 D9 [16:48:46]RAPDU: 90 00 [16:48:46]wFMCommunicate OK [16:48:46]wFMCommunicate request_size=4 [16:48:46]MH_SAM_APDU [16:48:46]CAPDU: 80 0D 03 02 [16:48:46]Write to MH i2c: E2 08 00 34 32 80 0D 03 02 00 00 00 00 E1 [16:48:46]Write i2c OK [16:48:46]MH_I2C_Read... [16:48:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:46]Read from MH i2c: E2 [16:48:46]MH_I2C_Read... [16:48:46]Read from MH i2c: E2 0B 00 [16:48:46]MH_I2C_Read... [16:48:46]Read from MH i2c: E2 0B 00 34 32 00 8B 25 1A B3 FF 68 05 B7 90 00 82 [16:48:46]RAPDU: 8B 25 1A B3 FF 68 05 B7 90 00 [16:48:46]wFMCommunicate OK [16:48:46]SAM_PROTO_SignData done [16:48:46]FM_MakeSignedData done [16:48:46]CreateOFDProtocolMessage [16:48:46]wFMCommunicate request_size=4 [16:48:46]MH_SAM_APDU [16:48:46]CAPDU: 80 11 00 00 [16:48:46]Write to MH i2c: E2 08 00 35 32 80 11 00 00 00 00 00 00 E1 [16:48:46]Write i2c OK [16:48:46]MH_I2C_Read... [16:48:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:47]Read from MH i2c: E2 [16:48:47]MH_I2C_Read... [16:48:47]Read from MH i2c: E2 17 00 [16:48:47]MH_I2C_Read... [16:48:47]Read from MH i2c: E2 17 00 35 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 36 [16:48:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:48:47]wFMCommunicate OK [16:48:47]CreateOFDProtocolMessage done [16:48:47]OFDSenderStorePacket 201594 [16:48:47]StoreOFDPacket docnum=201594 [16:48:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 20 D6 07 01 D0 C1 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 32 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 64 01 00 00 F4 03 04 00 6F 1D 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7A 13 03 00 35 04 06 00 20 02 7D 4D E0 0C 8B 25 1A B3 FF 68 05 B7 [16:48:47]CheckFolder [16:48:47]dirname=/storage/ofd_packets [16:48:47]CheckFolder done [16:48:47]ProducePacketName [16:48:47]name=ofd_packets/00201594 [16:48:47]NVStorageSaveData ofd_packets/00201594 [16:48:47]File name is /storage/ofd_packets/00201594 [16:48:47]Write 301 bytes [16:48:47]NVStorageSaveData done [16:48:47]OFDSenderStorePacket done [16:48:47]KKMCreateOFDPacket done [16:48:47]NVStorageSaveData kkm_last_timestamp [16:48:47]File name is /storage/kkm_last_timestamp [16:48:47]Write 4 bytes [16:48:47]NVStorageSaveData done [16:48:47]ExternCall_PrintAddStr [16:48:47]wPrintStart [16:48:47]Write to MH i2c: 01 00 00 36 32 68 [16:48:47]Write i2c OK [16:48:47]MH_I2C_Read... [16:48:47]Read from MH i2c: 01 [16:48:47]MH_I2C_Read... [16:48:47]Read from MH i2c: 01 07 00 [16:48:47]MH_I2C_Read... [16:48:47]Read from MH i2c: 01 07 00 36 32 00 00 00 00 00 FF 0F 7D [16:48:47]RasterBufferAndPrint [16:48:47]line Счет N : (1)449350 [16:48:47]line ИНН: 02508201610067 [16:48:47]line Контрольно-Кассовый Чек [16:48:47]line ПРОДАЖА [16:48:47]line ТРК (МРК, ГНК) : 31 [16:48:47]line Товар: 2710124130 [16:48:47]line Аи-92-К-2 [16:48:47]line 7.480 * 66.90 [16:48:47]line = 500.41 [16:48:47]line НДС 12% НСП 1% [16:48:47]line > о реализуемом товаре [16:48:47]line ОКРУГЛЕНИЕ: -0.41 [16:48:47]line ИТОГО: 500.00 [16:48:47]line Внесено: 500.00 [16:48:47]line СДАЧА: 0.00 [16:48:47]line НСП 1% : 4.43 [16:48:47]line НДС 12% : 53.14 [16:48:47]line Наличными: 500.00 [16:48:47]line Безнал.: 0.00 [16:48:47]line Место: АЗС № 171 "Партнер Нефть" [16:48:47]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:48:47]line СНО: Общий режим [16:48:47]line Чек 356 26.10.2024 16:48 [16:48:47]line Смена: 543 ФФД: 1.0 [16:48:47]line ЗНМ: 0300000109 [16:48:47]line РНМ: 0000000000091777 [16:48:47]line Версия ККМ: 001 [16:48:47]line ФМ: 0000000000871756 [16:48:47]line ФД: 201594 [16:48:47]line ФПД: 35195064279052 [16:48:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T164847&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201594&fm=35195064279052&tin=02508201610067®Number=0000000000091777&sum=50000 [16:48:47]OFD Sender: Processing packet 201594 [packets to send 112, broken 111] [16:48:47]ProducePacketName [16:48:47]name=ofd_packets/00201594 [16:48:47]OFD Sender: To server: pG, [16:48:47]CommunicateWithHost lk.salyk.kg:30040 [16:48:47]ConnectInit lk.salyk.kg [16:48:47]written 0, free lines is 4095 [16:48:47]Connected sock=10 [16:48:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 20 D6 07 01 D0 C1 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 32 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 64 01 00 00 F4 03 04 00 6F 1D 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7A 13 03 00 35 04 06 00 20 02 7D 4D E0 0C 8B 25 1A B3 FF 68 05 B7 [16:48:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C0 AA 47 00 74 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7A 13 03 00 F4 03 04 00 17 C9 1C 67 B6 04 01 00 00 B3 F3 14 CB E4 8A 31 64 [16:48:47]CommunicateWithHost err = 0 [16:48:47]CheckOFDResponse [16:48:47]1017 (14) - 77093643461234 [16:48:47]1041 (16) - 0000000000871756 [16:48:47]1040 (4) - 201594 [16:48:47]1012 (4) - 26.10.2024 10:48 [16:48:47]1206 (1) - 0 [16:48:47]OFD Sender: Remove packet 201594 [16:48:47]ProducePacketName [16:48:47]name=ofd_packets/00201594 [16:48:47]NVStorageDeleteData [16:48:47]Write to MH i2c: 01 00 00 61 32 93 [16:48:47]Write i2c OK [16:48:47]MH_I2C_Read... [16:48:47]Read from MH i2c: 01 [16:48:47]MH_I2C_Read... [16:48:47]Read from MH i2c: 01 07 00 [16:48:47]MH_I2C_Read... [16:48:47]Read from MH i2c: 01 07 00 61 32 00 00 00 00 00 93 0C 39 [16:48:47]RasterBufferAndPrint [16:48:47]line [16:48:47]line [16:48:47]line [16:48:47]line [16:48:47]line [16:48:47]written 0, free lines is 3223 [16:48:47]MH_Cut [16:48:47]Write to MH i2c: D1 01 00 68 32 01 6C [16:48:47]Write i2c OK [16:48:47]MH_I2C_Read... [16:48:47]Read from MH i2c: D1 [16:48:47]MH_I2C_Read... [16:48:47]Read from MH i2c: D1 01 00 [16:48:47]MH_I2C_Read... [16:48:47]Read from MH i2c: D1 01 00 68 32 00 6B [16:48:47]Write to MH i2c: 01 00 00 69 32 9B [16:48:47]Write i2c OK [16:48:47]MH_I2C_Read... [16:48:48]OFD Sender: No OFD packet to send [16:48:48]*** Cut start [16:48:48]*** Purtial cut [16:48:48]*** CUTSNS_PIN = 0 [16:48:48]*** Stage 1: CUTSNS_PIN = 1 [16:48:50]Read from MH i2c: 01 [16:48:50]MH_I2C_Read... [16:48:50]*** Stop cut motor [16:48:50]*** Cut end [16:48:50]Read from MH i2c: 01 07 00 [16:48:50]MH_I2C_Read... [16:48:50]Read from MH i2c: 01 07 00 69 32 00 00 00 00 00 FF 0F B0 [16:48:50]process_action close_receipt done [16:48:50]requested_data is exist [16:48:50]produce_requested_data [16:48:50]requested_item fm.sn is exist - process it [16:48:50]wFMCommunicate request_size=4 [16:48:50]MH_SAM_APDU [16:48:50]CAPDU: 80 11 00 00 [16:48:50]Write to MH i2c: E2 08 00 6A 32 80 11 00 00 00 00 00 00 16 [16:48:50]Write i2c OK [16:48:50]MH_I2C_Read... [16:48:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:50]Read from MH i2c: E2 [16:48:50]MH_I2C_Read... [16:48:50]Read from MH i2c: E2 17 00 [16:48:50]MH_I2C_Read... [16:48:50]Read from MH i2c: E2 17 00 6A 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6B [16:48:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:48:50]wFMCommunicate OK [16:48:50]requested_item fd.num is exist - process it [16:48:50]SAM_PROTO_GetFieldsCounters [16:48:50]wFMCommunicate request_size=4 [16:48:50]MH_SAM_APDU [16:48:50]CAPDU: 80 13 00 00 [16:48:50]Write to MH i2c: E2 08 00 6B 32 80 13 00 00 00 00 00 00 19 [16:48:50]Write i2c OK [16:48:50]MH_I2C_Read... [16:48:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:50]Read from MH i2c: E2 [16:48:50]MH_I2C_Read... [16:48:50]Read from MH i2c: E2 62 00 [16:48:50]MH_I2C_Read... [16:48:50]Read from MH i2c: E2 62 00 6B 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7A 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 22 [16:48:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7A 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:50]wFMCommunicate OK [16:48:50]SAM_PROTO_GetFieldsCounters done [16:48:50]requested_item shift.num is exist - process it [16:48:50]requested_item shift.opened is exist - process it [16:48:50]req_shift_opened [16:48:50]FM_GetShiftState [16:48:50]SAM_PROTO_GetShiftState [16:48:50]wFMCommunicate request_size=4 [16:48:50]MH_SAM_APDU [16:48:50]CAPDU: 80 13 01 00 [16:48:50]Write to MH i2c: E2 08 00 6C 32 80 13 01 00 00 00 00 00 1B [16:48:50]Write i2c OK [16:48:50]MH_I2C_Read... [16:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:51]Read from MH i2c: E2 [16:48:51]MH_I2C_Read... [16:48:51]Read from MH i2c: E2 0E 00 [16:48:51]MH_I2C_Read... [16:48:51]Read from MH i2c: E2 0E 00 6C 32 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 2A [16:48:51]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:48:51]wFMCommunicate OK [16:48:51]SAM_PROTO_GetShiftState done [16:48:51]FM_GetShiftState done [16:48:51]req_shift_opened done [16:48:51]requested_item shift.open_date is exist - process it [16:48:51]req_shift_open_date [16:48:51]req_shift_open_date done [16:48:51]produce_requested_data done [16:48:51]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201594,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [16:48:51]process_action_free close_receipt [16:48:51]json_value_free [16:48:51]json_value_free done [16:48:51]process_json_proto returns [16:48:51]Send response to host [16:48:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201594,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [16:48:51]free response buf [16:48:51]execute_script done [16:48:51]execute_script returns [16:48:51]free content buf [16:48:51]Sock 9.Close socket [16:48:51]Sock 9.Thread stoped [16:48:53]OFD Sender: No OFD packet to send [16:48:58]OFD Sender: No OFD packet to send [16:49:03]OFD Sender: No OFD packet to send [16:49:08]OFD Sender: No OFD packet to send [16:49:13]OFD Sender: No OFD packet to send [16:49:18]OFD Sender: No OFD packet to send [16:49:23]OFD Sender: No OFD packet to send [16:49:28]OFD Sender: No OFD packet to send [16:49:33]OFD Sender: No OFD packet to send [16:49:38]OFD Sender: No OFD packet to send [16:49:43]OFD Sender: No OFD packet to send [16:49:48]OFD Sender: No OFD packet to send [16:49:53]OFD Sender: No OFD packet to send [16:49:58]OFD Sender: No OFD packet to send [16:50:03]OFD Sender: No OFD packet to send [16:50:08]OFD Sender: No OFD packet to send [16:50:13]OFD Sender: No OFD packet to send [16:50:18]OFD Sender: No OFD packet to send [16:50:23]OFD Sender: No OFD packet to send [16:50:28]OFD Sender: No OFD packet to send [16:50:33]OFD Sender: No OFD packet to send [16:50:38]OFD Sender: No OFD packet to send [16:50:43]OFD Sender: No OFD packet to send [16:50:48]OFD Sender: No OFD packet to send [16:50:53]OFD Sender: No OFD packet to send [16:50:58]OFD Sender: No OFD packet to send [16:51:03]OFD Sender: No OFD packet to send [16:51:08]OFD Sender: No OFD packet to send [16:51:13]OFD Sender: No OFD packet to send [16:51:18]OFD Sender: No OFD packet to send [16:51:23]OFD Sender: No OFD packet to send [16:51:28]OFD Sender: No OFD packet to send [16:51:33]OFD Sender: No OFD packet to send [16:51:38]OFD Sender: No OFD packet to send [16:51:43]OFD Sender: No OFD packet to send [16:51:48]OFD Sender: No OFD packet to send [16:51:53]OFD Sender: No OFD packet to send [16:51:58]OFD Sender: No OFD packet to send [16:52:03]OFD Sender: No OFD packet to send [16:52:08]OFD Sender: No OFD packet to send [16:52:13]OFD Sender: No OFD packet to send [16:52:18]OFD Sender: No OFD packet to send [16:52:23]OFD Sender: No OFD packet to send [16:52:28]OFD Sender: No OFD packet to send [16:52:33]OFD Sender: No OFD packet to send [16:52:38]OFD Sender: No OFD packet to send [16:52:43]OFD Sender: No OFD packet to send [16:52:48]OFD Sender: No OFD packet to send [16:52:53]OFD Sender: No OFD packet to send [16:52:58]OFD Sender: No OFD packet to send [16:53:03]OFD Sender: No OFD packet to send [16:53:08]OFD Sender: No OFD packet to send [16:53:13]OFD Sender: No OFD packet to send [16:53:18]OFD Sender: No OFD packet to send [16:53:23]OFD Sender: No OFD packet to send [16:53:28]OFD Sender: No OFD packet to send [16:53:33]OFD Sender: No OFD packet to send [16:53:38]OFD Sender: No OFD packet to send [16:53:43]OFD Sender: No OFD packet to send [16:53:48]OFD Sender: No OFD packet to send [16:53:53]OFD Sender: No OFD packet to send [16:53:58]OFD Sender: No OFD packet to send [16:54:03]OFD Sender: No OFD packet to send [16:54:08]OFD Sender: No OFD packet to send [16:54:13]OFD Sender: No OFD packet to send [16:54:18]OFD Sender: No OFD packet to send [16:54:23]OFD Sender: No OFD packet to send [16:54:28]OFD Sender: No OFD packet to send [16:54:33]OFD Sender: No OFD packet to send [16:54:38]OFD Sender: No OFD packet to send [16:54:43]OFD Sender: No OFD packet to send [16:54:48]OFD Sender: No OFD packet to send [16:54:52]accept exits with 8 [16:54:52]New connection [16:54:52]New thread 3066834276 created [16:54:52]Thread 3066690916 joined [16:54:52]Waiting for new connection... [16:54:52] Sock 8.Parse request [16:54:52]Sock 8.Check first char [16:54:52]Sock 8.First char is OK [16:54:52]request: POST /json_proto HTTP/1.0 [16:54:52]Method: POST [16:54:52]URL: /json_proto [16:54:52]Method is POST - this is cgi request [16:54:52]url: /json_proto [16:54:52]query_string will be loaded in cgi processing [16:54:52]execute_cgi json_proto POST (null) [16:54:52]execute_cgi path=json_proto method=POST [16:54:52]POST find Content-Length [16:54:52]Host: 172.17.63.195:8080 [16:54:52]Content-Length: 679 [16:54:52]Content-Type: application/json [16:54:52] [16:54:52]POST finish read [16:54:52]Found Content-Length = 679 [16:54:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [16:54:52]execute_script... [16:54:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [16:54:52]POST & json_proto [16:54:52]process_json_proto [16:54:52]json parsed OK: [16:54:52]protocol is kg_v1.0 [16:54:52]action value=close_receipt [16:54:52]process_action close_receipt [16:54:52]cmd_close_receipt [16:54:52]MH_GetDate [16:54:52]Write to MH i2c: F0 00 00 6D 32 8E [16:54:52]Write i2c OK [16:54:52]MH_I2C_Read... [16:54:52]Read from MH i2c: F0 [16:54:52]MH_I2C_Read... [16:54:52]Read from MH i2c: F0 09 00 [16:54:52]MH_I2C_Read... [16:54:52]Read from MH i2c: F0 09 00 6D 32 00 DE 1E 1D 67 68 46 19 67 45 [16:54:52]GetLastDocTimeStamp 1729961327 [16:54:52]current date 1729961694 [16:54:52]FM_GetShiftState [16:54:52]SAM_PROTO_GetShiftState [16:54:52]wFMCommunicate request_size=4 [16:54:52]MH_SAM_APDU [16:54:52]CAPDU: 80 13 01 00 [16:54:52]Write to MH i2c: E2 08 00 6E 32 80 13 01 00 00 00 00 00 1D [16:54:52]Write i2c OK [16:54:52]MH_I2C_Read... [16:54:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:52]Read from MH i2c: E2 [16:54:52]MH_I2C_Read... [16:54:52]Read from MH i2c: E2 0E 00 [16:54:52]MH_I2C_Read... [16:54:52]Read from MH i2c: E2 0E 00 6E 32 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 2C [16:54:52]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:54:52]wFMCommunicate OK [16:54:52]SAM_PROTO_GetShiftState done [16:54:52]FM_GetShiftState done [16:54:52]opened in 1729900879 [16:54:52]opened+sec_in_day 1729987279 [16:54:52]quantity*price = 100050 [16:54:52]sum+1 = 100052 [16:54:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 357 26.10.2024 16:54 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201595 ФПД: 123057754848020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T165454&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201595&fm=123057754848020&tin=02508201610067®Number=0000000000091777&sum=100000 [16:54:53]StoreToDocumentArchive [16:54:53]shift 543 fd 201595 [16:54:53]save to /storage/0543/doc_00201595 [16:54:53]save last doc name /storage/0543/doc_00201595 to /storage/kkm_last_doc_name [16:54:53]save OK [16:54:53]Clear old archive folders... [16:54:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:54:53]tlvbuf is 01F97280 [16:54:53]SAM_PROTO_ClearQueue [16:54:53]wFMCommunicate request_size=4 [16:54:53]MH_SAM_APDU [16:54:53]CAPDU: 80 09 00 00 [16:54:53]Write to MH i2c: E2 08 00 7B 32 80 09 00 00 00 00 00 00 1F [16:54:53]Write i2c OK [16:54:53]MH_I2C_Read... [16:54:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:54:54]Read from MH i2c: E2 [16:54:54]MH_I2C_Read... [16:54:54]Read from MH i2c: E2 03 00 [16:54:54]MH_I2C_Read... [16:54:54]Read from MH i2c: E2 03 00 7B 32 00 90 00 21 [16:54:54]RAPDU: 90 00 [16:54:54]wFMCommunicate OK [16:54:54]SAM_PROTO_ClearQueue done [16:54:54]KKMCreateOFDPacket [16:54:54]OFDProtocolAddRootSTLVToBuf [16:54:54]FM_MakeSignedData [16:54:54]FM_MakeSignedData [16:54:54]SAM_PROTO_SignData [16:54:54]wFMCommunicate request_size=4 [16:54:54]MH_SAM_APDU [16:54:54]CAPDU: 80 0D 01 02 [16:54:54]Write to MH i2c: E2 08 00 7C 32 80 0D 01 02 00 00 00 00 27 [16:54:54]Write i2c OK [16:54:54]MH_I2C_Read... [16:54:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:54:54]Read from MH i2c: E2 [16:54:54]MH_I2C_Read... [16:54:54]Read from MH i2c: E2 03 00 [16:54:54]MH_I2C_Read... [16:54:54]Read from MH i2c: E2 03 00 7C 32 00 90 00 22 [16:54:54]RAPDU: 90 00 [16:54:54]wFMCommunicate OK [16:54:54]wFMCommunicate request_size=255 [16:54:54]MH_SAM_APDU [16:54:54]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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 65 01 00 00 F4 03 04 00 DE 1E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7B 13 03 00 35 04 06 00 6F EB 9D C3 [16:54:54]Write to MH i2c: E2 02 01 7D 32 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 65 01 00 00 F4 03 04 00 DE 1E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7B 13 03 00 35 04 06 00 6F EB 9D C3 00 00 03 [16:54:54]Write i2c OK [16:54:54]MH_I2C_Read... [16:54:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:54]Read from MH i2c: E2 [16:54:54]MH_I2C_Read... [16:54:54]Read from MH i2c: E2 03 00 [16:54:54]MH_I2C_Read... [16:54:54]Read from MH i2c: E2 03 00 7D 32 00 90 00 23 [16:54:54]RAPDU: 90 00 [16:54:54]wFMCommunicate OK [16:54:54]wFMCommunicate request_size=7 [16:54:54]MH_SAM_APDU [16:54:54]CAPDU: 80 0D 02 02 02 BB 14 [16:54:54]Write to MH i2c: E2 0A 00 7E 32 80 0D 02 02 02 00 BB 14 00 00 FD [16:54:54]Write i2c OK [16:54:54]MH_I2C_Read... [16:54:54]Read from MH i2c: E2 [16:54:54]MH_I2C_Read... [16:54:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:54]Read from MH i2c: E2 03 00 [16:54:54]MH_I2C_Read... [16:54:54]Read from MH i2c: E2 03 00 7E 32 00 90 00 24 [16:54:54]RAPDU: 90 00 [16:54:54]wFMCommunicate OK [16:54:54]wFMCommunicate request_size=4 [16:54:54]MH_SAM_APDU [16:54:54]CAPDU: 80 0D 03 02 [16:54:54]Write to MH i2c: E2 08 00 7F 32 80 0D 03 02 00 00 00 00 2C [16:54:54]Write i2c OK [16:54:54]MH_I2C_Read... [16:54:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:54:54]Read from MH i2c: E2 [16:54:54]MH_I2C_Read... [16:54:54]Read from MH i2c: E2 0B 00 [16:54:54]MH_I2C_Read... [16:54:54]Read from MH i2c: E2 0B 00 7F 32 00 6B FC 58 E4 D4 40 3D 8C 90 00 AD [16:54:54]RAPDU: 6B FC 58 E4 D4 40 3D 8C 90 00 [16:54:54]wFMCommunicate OK [16:54:54]SAM_PROTO_SignData done [16:54:54]FM_MakeSignedData done [16:54:54]CreateOFDProtocolMessage [16:54:54]wFMCommunicate request_size=4 [16:54:54]MH_SAM_APDU [16:54:54]CAPDU: 80 11 00 00 [16:54:54]Write to MH i2c: E2 08 00 80 32 80 11 00 00 00 00 00 00 2C [16:54:54]Write i2c OK [16:54:54]MH_I2C_Read... [16:54:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:54]Read from MH i2c: E2 [16:54:54]MH_I2C_Read... [16:54:54]Read from MH i2c: E2 17 00 [16:54:54]MH_I2C_Read... [16:54:54]Read from MH i2c: E2 17 00 80 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 81 [16:54:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:54:54]wFMCommunicate OK [16:54:54]CreateOFDProtocolMessage done [16:54:54]OFDSenderStorePacket 201595 [16:54:54]StoreOFDPacket docnum=201595 [16:54:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 37 46 04 01 98 A6 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 65 01 00 00 F4 03 04 00 DE 1E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7B 13 03 00 35 04 06 00 6F EB 9D C3 BB 14 6B FC 58 E4 D4 40 3D 8C [16:54:54]CheckFolder [16:54:54]dirname=/storage/ofd_packets [16:54:54]CheckFolder done [16:54:54]ProducePacketName [16:54:54]name=ofd_packets/00201595 [16:54:54]NVStorageSaveData ofd_packets/00201595 [16:54:54]File name is /storage/ofd_packets/00201595 [16:54:54]Write 298 bytes [16:54:54]NVStorageSaveData done [16:54:54]OFDSenderStorePacket done [16:54:54]KKMCreateOFDPacket done [16:54:54]NVStorageSaveData kkm_last_timestamp [16:54:54]File name is /storage/kkm_last_timestamp [16:54:54]Write 4 bytes [16:54:54]NVStorageSaveData done [16:54:54]ExternCall_PrintAddStr [16:54:54]wPrintStart [16:54:54]Write to MH i2c: 01 00 00 81 32 B3 [16:54:54]Write i2c OK [16:54:54]MH_I2C_Read... [16:54:54]Read from MH i2c: 01 [16:54:54]MH_I2C_Read... [16:54:54]Read from MH i2c: 01 07 00 [16:54:54]MH_I2C_Read... [16:54:54]Read from MH i2c: 01 07 00 81 32 00 00 00 00 00 FF 0F C8 [16:54:54]RasterBufferAndPrint [16:54:54]line Счет N : (1)449351 [16:54:54]line ИНН: 02508201610067 [16:54:54]line Контрольно-Кассовый Чек [16:54:54]line ПРОДАЖА [16:54:54]line ТРК (МРК, ГНК) : 43 [16:54:54]line Товар: 2710194210 [16:54:54]line ДТ-К-2 [16:54:54]line 13.130 * 76.20 [16:54:54]line = 1000.51 [16:54:54]line НДС 12% НСП 1% [16:54:54]line > о реализуемом товаре [16:54:54]line ОКРУГЛЕНИЕ: -0.51 [16:54:54]line ИТОГО: 1000.00 [16:54:54]line Внесено: 1000.00 [16:54:54]line СДАЧА: 0.00 [16:54:54]line НСП 1% : 8.85 [16:54:54]line НДС 12% : 106.25 [16:54:54]line Наличными: 1000.00 [16:54:54]line Безнал.: 0.00 [16:54:54]line Место: АЗС № 171 "Партнер Нефть" [16:54:54]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:54:54]line СНО: Общий режим [16:54:54]line Чек 357 26.10.2024 16:54 [16:54:54]line Смена: 543 ФФД: 1.0 [16:54:54]line ЗНМ: 0300000109 [16:54:54]line РНМ: 0000000000091777 [16:54:54]line Версия ККМ: 001 [16:54:54]line ФМ: 0000000000871756 [16:54:54]line ФД: 201595 [16:54:54]line ФПД: 123057754848020 [16:54:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T165454&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201595&fm=123057754848020&tin=02508201610067®Number=0000000000091777&sum=100000 [16:54:54]written 0, free lines is 4095 [16:54:54]OFD Sender: Processing packet 201595 [packets to send 112, broken 111] [16:54:54]ProducePacketName [16:54:54]name=ofd_packets/00201595 [16:54:54]OFD Sender: To server: pG, [16:54:54]CommunicateWithHost lk.salyk.kg:30040 [16:54:54]ConnectInit lk.salyk.kg [16:54:54]Connected sock=10 [16:54:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 37 46 04 01 98 A6 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 65 01 00 00 F4 03 04 00 DE 1E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7B 13 03 00 35 04 06 00 6F EB 9D C3 BB 14 6B FC 58 E4 D4 40 3D 8C [16:54:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 3C D2 47 00 68 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7B 13 03 00 F4 03 04 00 86 CA 1C 67 B6 04 01 00 00 BF 3F 83 A4 63 D3 2B 34 [16:54:54]CommunicateWithHost err = 0 [16:54:54]CheckOFDResponse [16:54:54]1017 (14) - 77093643461234 [16:54:54]1041 (16) - 0000000000871756 [16:54:54]1040 (4) - 201595 [16:54:54]1012 (4) - 26.10.2024 10:55 [16:54:54]1206 (1) - 0 [16:54:54]OFD Sender: Remove packet 201595 [16:54:54]ProducePacketName [16:54:54]name=ofd_packets/00201595 [16:54:54]NVStorageDeleteData [16:54:54]Write to MH i2c: 01 00 00 AC 32 DE [16:54:54]Write i2c OK [16:54:54]MH_I2C_Read... [16:54:54]Read from MH i2c: 01 [16:54:54]MH_I2C_Read... [16:54:54]Read from MH i2c: 01 07 00 [16:54:54]MH_I2C_Read... [16:54:54]Read from MH i2c: 01 07 00 AC 32 00 00 00 00 00 99 0C 8A [16:54:54]RasterBufferAndPrint [16:54:54]line [16:54:54]line [16:54:54]line [16:54:54]line [16:54:54]line [16:54:54]written 0, free lines is 3232 [16:54:54]MH_Cut [16:54:54]Write to MH i2c: D1 01 00 B3 32 01 B7 [16:54:54]Write i2c OK [16:54:54]MH_I2C_Read... [16:54:54]Read from MH i2c: D1 [16:54:54]MH_I2C_Read... [16:54:54]Read from MH i2c: D1 01 00 [16:54:54]MH_I2C_Read... [16:54:54]Read from MH i2c: D1 01 00 B3 32 00 B6 [16:54:54]Write to MH i2c: 01 00 00 B4 32 E6 [16:54:54]Write i2c OK [16:54:54]MH_I2C_Read... [16:54:55]OFD Sender: No OFD packet to send [16:54:55]*** Cut start [16:54:55]*** Purtial cut [16:54:55]*** Stage 1: CUTSNS_PIN = 1 [16:54:56]Read from MH i2c: 01 [16:54:56]MH_I2C_Read... [16:54:56]*** Stop cut motor [16:54:56]*** Cut end [16:54:56]Read from MH i2c: 01 07 00 [16:54:56]MH_I2C_Read... [16:54:56]Read from MH i2c: 01 07 00 B4 32 00 00 00 00 00 FF 0F FB [16:54:56]process_action close_receipt done [16:54:56]requested_data is exist [16:54:56]produce_requested_data [16:54:56]requested_item fm.sn is exist - process it [16:54:56]wFMCommunicate request_size=4 [16:54:56]MH_SAM_APDU [16:54:56]CAPDU: 80 11 00 00 [16:54:56]Write to MH i2c: E2 08 00 B5 32 80 11 00 00 00 00 00 00 61 [16:54:56]Write i2c OK [16:54:56]MH_I2C_Read... [16:54:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:56]Read from MH i2c: E2 [16:54:56]MH_I2C_Read... [16:54:56]Read from MH i2c: E2 17 00 [16:54:56]MH_I2C_Read... [16:54:56]Read from MH i2c: E2 17 00 B5 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B6 [16:54:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:54:56]wFMCommunicate OK [16:54:56]requested_item fd.num is exist - process it [16:54:56]SAM_PROTO_GetFieldsCounters [16:54:56]wFMCommunicate request_size=4 [16:54:56]MH_SAM_APDU [16:54:56]CAPDU: 80 13 00 00 [16:54:56]Write to MH i2c: E2 08 00 B6 32 80 13 00 00 00 00 00 00 64 [16:54:56]Write i2c OK [16:54:56]MH_I2C_Read... [16:54:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:54:56]Read from MH i2c: E2 [16:54:56]MH_I2C_Read... [16:54:56]Read from MH i2c: E2 62 00 [16:54:56]MH_I2C_Read... [16:54:56]Read from MH i2c: E2 62 00 B6 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7B 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 71 [16:54:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7B 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:54:56]wFMCommunicate OK [16:54:56]SAM_PROTO_GetFieldsCounters done [16:54:56]requested_item shift.num is exist - process it [16:54:56]requested_item shift.opened is exist - process it [16:54:56]req_shift_opened [16:54:56]FM_GetShiftState [16:54:56]SAM_PROTO_GetShiftState [16:54:56]wFMCommunicate request_size=4 [16:54:56]MH_SAM_APDU [16:54:56]CAPDU: 80 13 01 00 [16:54:56]Write to MH i2c: E2 08 00 B7 32 80 13 01 00 00 00 00 00 66 [16:54:56]Write i2c OK [16:54:56]MH_I2C_Read... [16:54:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:56]Read from MH i2c: E2 [16:54:56]MH_I2C_Read... [16:54:56]Read from MH i2c: E2 0E 00 [16:54:56]MH_I2C_Read... [16:54:56]Read from MH i2c: E2 0E 00 B7 32 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 75 [16:54:56]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:54:56]wFMCommunicate OK [16:54:56]SAM_PROTO_GetShiftState done [16:54:56]FM_GetShiftState done [16:54:56]req_shift_opened done [16:54:56]requested_item shift.open_date is exist - process it [16:54:56]req_shift_open_date [16:54:56]req_shift_open_date done [16:54:56]produce_requested_data done [16:54:56]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201595,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [16:54:56]process_action_free close_receipt [16:54:56]json_value_free [16:54:56]json_value_free done [16:54:56]process_json_proto returns [16:54:56]Send response to host [16:54:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201595,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [16:54:56]free response buf [16:54:56]execute_script done [16:54:56]execute_script returns [16:54:56]free content buf [16:54:56]Sock 8.Close socket [16:54:56]Sock 8.Thread stoped [16:55:00]OFD Sender: No OFD packet to send [16:55:05]OFD Sender: No OFD packet to send [16:55:07]accept exits with 9 [16:55:07]New connection [16:55:07]New thread 3066690916 created [16:55:07]Thread 3066834276 joined [16:55:07]Waiting for new connection... [16:55:07] Sock 9.Parse request [16:55:07]Sock 9.Check first char [16:55:07]Sock 9.First char is OK [16:55:07]request: POST /json_proto HTTP/1.0 [16:55:07]Method: POST [16:55:07]URL: /json_proto [16:55:07]Method is POST - this is cgi request [16:55:07]url: /json_proto [16:55:07]query_string will be loaded in cgi processing [16:55:07]execute_cgi json_proto POST (null) [16:55:07]execute_cgi path=json_proto method=POST [16:55:07]POST find Content-Length [16:55:07]Host: 172.17.63.195:8080 [16:55:07]Content-Length: 682 [16:55:07]Content-Type: application/json [16:55:07] [16:55:07]POST finish read [16:55:07]Found Content-Length = 682 [16:55:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:55:07]execute_script... [16:55:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [16:55:07]POST & json_proto [16:55:07]process_json_proto [16:55:07]json parsed OK: [16:55:07]protocol is kg_v1.0 [16:55:07]action value=close_receipt [16:55:07]process_action close_receipt [16:55:07]cmd_close_receipt [16:55:07]MH_GetDate [16:55:07]Write to MH i2c: F0 00 00 B8 32 D9 [16:55:07]Write i2c OK [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: F0 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: F0 09 00 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: F0 09 00 B8 32 00 ED 1E 1D 67 68 46 19 67 9F [16:55:07]GetLastDocTimeStamp 1729961694 [16:55:07]current date 1729961709 [16:55:07]FM_GetShiftState [16:55:07]SAM_PROTO_GetShiftState [16:55:07]wFMCommunicate request_size=4 [16:55:07]MH_SAM_APDU [16:55:07]CAPDU: 80 13 01 00 [16:55:07]Write to MH i2c: E2 08 00 B9 32 80 13 01 00 00 00 00 00 68 [16:55:07]Write i2c OK [16:55:07]MH_I2C_Read... [16:55:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:07]Read from MH i2c: E2 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: E2 0E 00 [16:55:07]MH_I2C_Read... [16:55:07]Read from MH i2c: E2 0E 00 B9 32 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 77 [16:55:07]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:55:07]wFMCommunicate OK [16:55:07]SAM_PROTO_GetShiftState done [16:55:07]FM_GetShiftState done [16:55:07]opened in 1729900879 [16:55:07]opened+sec_in_day 1729987279 [16:55:07]quantity*price = 100015 [16:55:07]sum+1 = 100017 [16:55:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 358 26.10.2024 16:55 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201596 ФПД: 70602847617843 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T165509&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201596&fm=70602847617843&tin=02508201610067®Number=0000000000091777&sum=100000 [16:55:08]StoreToDocumentArchive [16:55:08]shift 543 fd 201596 [16:55:08]save to /storage/0543/doc_00201596 [16:55:08]save last doc name /storage/0543/doc_00201596 to /storage/kkm_last_doc_name [16:55:08]save OK [16:55:08]Clear old archive folders... [16:55:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:55:08]tlvbuf is 01F021B0 [16:55:08]SAM_PROTO_ClearQueue [16:55:08]wFMCommunicate request_size=4 [16:55:08]MH_SAM_APDU [16:55:08]CAPDU: 80 09 00 00 [16:55:08]Write to MH i2c: E2 08 00 C6 32 80 09 00 00 00 00 00 00 6A [16:55:08]Write i2c OK [16:55:08]MH_I2C_Read... [16:55:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:08]Read from MH i2c: E2 [16:55:08]MH_I2C_Read... [16:55:08]Read from MH i2c: E2 03 00 [16:55:08]MH_I2C_Read... [16:55:08]Read from MH i2c: E2 03 00 C6 32 00 90 00 6C [16:55:08]RAPDU: 90 00 [16:55:08]wFMCommunicate OK [16:55:08]SAM_PROTO_ClearQueue done [16:55:08]KKMCreateOFDPacket [16:55:08]OFDProtocolAddRootSTLVToBuf [16:55:08]FM_MakeSignedData [16:55:08]FM_MakeSignedData [16:55:08]SAM_PROTO_SignData [16:55:08]wFMCommunicate request_size=4 [16:55:08]MH_SAM_APDU [16:55:08]CAPDU: 80 0D 01 02 [16:55:08]Write to MH i2c: E2 08 00 C7 32 80 0D 01 02 00 00 00 00 72 [16:55:08]Write i2c OK [16:55:08]MH_I2C_Read... [16:55:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:08]Read from MH i2c: E2 [16:55:08]MH_I2C_Read... [16:55:08]Read from MH i2c: E2 03 00 [16:55:08]MH_I2C_Read... [16:55:08]Read from MH i2c: E2 03 00 C7 32 00 90 00 6D [16:55:08]RAPDU: 90 00 [16:55:08]wFMCommunicate OK [16:55:08]wFMCommunicate request_size=255 [16:55:08]MH_SAM_APDU [16:55:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 66 01 00 00 F4 03 04 00 ED 1E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7C 13 03 00 35 04 06 00 40 [16:55:08]Write to MH i2c: E2 02 01 C8 32 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 32 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 66 01 00 00 F4 03 04 00 ED 1E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7C 13 03 00 35 04 06 00 40 00 00 E9 [16:55:09]Write i2c OK [16:55:09]MH_I2C_Read... [16:55:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:09]Read from MH i2c: E2 [16:55:09]MH_I2C_Read... [16:55:09]Read from MH i2c: E2 03 00 [16:55:09]MH_I2C_Read... [16:55:09]Read from MH i2c: E2 03 00 C8 32 00 90 00 6E [16:55:09]RAPDU: 90 00 [16:55:09]wFMCommunicate OK [16:55:09]wFMCommunicate request_size=10 [16:55:09]MH_SAM_APDU [16:55:09]CAPDU: 80 0D 02 02 05 36 81 A7 03 33 [16:55:09]Write to MH i2c: E2 0D 00 C9 32 80 0D 02 02 05 00 36 81 A7 03 33 00 00 13 [16:55:09]Write i2c OK [16:55:09]MH_I2C_Read... [16:55:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:09]Read from MH i2c: E2 [16:55:09]MH_I2C_Read... [16:55:09]Read from MH i2c: E2 03 00 [16:55:09]MH_I2C_Read... [16:55:09]Read from MH i2c: E2 03 00 C9 32 00 90 00 6F [16:55:09]RAPDU: 90 00 [16:55:09]wFMCommunicate OK [16:55:09]wFMCommunicate request_size=4 [16:55:09]MH_SAM_APDU [16:55:09]CAPDU: 80 0D 03 02 [16:55:09]Write to MH i2c: E2 08 00 CA 32 80 0D 03 02 00 00 00 00 77 [16:55:09]Write i2c OK [16:55:09]MH_I2C_Read... [16:55:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:09]Read from MH i2c: E2 [16:55:09]MH_I2C_Read... [16:55:09]Read from MH i2c: E2 0B 00 [16:55:09]MH_I2C_Read... [16:55:09]Read from MH i2c: E2 0B 00 CA 32 00 8A 19 57 E3 90 63 76 06 90 00 C4 [16:55:09]RAPDU: 8A 19 57 E3 90 63 76 06 90 00 [16:55:09]wFMCommunicate OK [16:55:09]SAM_PROTO_SignData done [16:55:09]FM_MakeSignedData done [16:55:09]CreateOFDProtocolMessage [16:55:09]wFMCommunicate request_size=4 [16:55:09]MH_SAM_APDU [16:55:09]CAPDU: 80 11 00 00 [16:55:09]Write to MH i2c: E2 08 00 CB 32 80 11 00 00 00 00 00 00 77 [16:55:09]Write i2c OK [16:55:09]MH_I2C_Read... [16:55:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:09]Read from MH i2c: E2 [16:55:09]MH_I2C_Read... [16:55:09]Read from MH i2c: E2 17 00 [16:55:09]MH_I2C_Read... [16:55:09]Read from MH i2c: E2 17 00 CB 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CC [16:55:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:55:09]wFMCommunicate OK [16:55:09]CreateOFDProtocolMessage done [16:55:09]OFDSenderStorePacket 201596 [16:55:09]StoreOFDPacket docnum=201596 [16:55:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A5 AA 07 01 19 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 32 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 66 01 00 00 F4 03 04 00 ED 1E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7C 13 03 00 35 04 06 00 40 36 81 A7 03 33 8A 19 57 E3 90 63 76 06 [16:55:09]CheckFolder [16:55:09]dirname=/storage/ofd_packets [16:55:09]CheckFolder done [16:55:09]ProducePacketName [16:55:09]name=ofd_packets/00201596 [16:55:09]NVStorageSaveData ofd_packets/00201596 [16:55:09]File name is /storage/ofd_packets/00201596 [16:55:09]Write 301 bytes [16:55:09]NVStorageSaveData done [16:55:09]OFDSenderStorePacket done [16:55:09]KKMCreateOFDPacket done [16:55:09]NVStorageSaveData kkm_last_timestamp [16:55:09]File name is /storage/kkm_last_timestamp [16:55:09]Write 4 bytes [16:55:09]NVStorageSaveData done [16:55:09]ExternCall_PrintAddStr [16:55:09]wPrintStart [16:55:09]Write to MH i2c: 01 00 00 CC 32 FE [16:55:09]Write i2c OK [16:55:09]MH_I2C_Read... [16:55:09]Read from MH i2c: 01 [16:55:09]MH_I2C_Read... [16:55:09]Read from MH i2c: 01 07 00 [16:55:09]MH_I2C_Read... [16:55:09]Read from MH i2c: 01 07 00 CC 32 00 00 00 00 00 FF 0F 13 [16:55:09]RasterBufferAndPrint [16:55:09]line Счет N : (1)449352 [16:55:09]line ИНН: 02508201610067 [16:55:09]line Контрольно-Кассовый Чек [16:55:09]line ПРОДАЖА [16:55:09]line ТРК (МРК, ГНК) : 31 [16:55:09]line Товар: 2710124130 [16:55:09]line Аи-92-К-2 [16:55:09]line 14.950 * 66.90 [16:55:09]line = 1000.16 [16:55:09]line НДС 12% НСП 1% [16:55:09]line > о реализуемом товаре [16:55:09]line ОКРУГЛЕНИЕ: -0.16 [16:55:09]line ИТОГО: 1000.00 [16:55:09]line Внесено: 1000.00 [16:55:09]line СДАЧА: 0.00 [16:55:09]line НСП 1% : 8.85 [16:55:09]line НДС 12% : 106.21 [16:55:09]line Наличными: 1000.00 [16:55:09]line Безнал.: 0.00 [16:55:09]line Место: АЗС № 171 "Партнер Нефть" [16:55:09]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:55:09]line СНО: Общий режим [16:55:09]line Чек 358 26.10.2024 16:55 [16:55:09]line Смена: 543 ФФД: 1.0 [16:55:09]line ЗНМ: 0300000109 [16:55:09]line РНМ: 0000000000091777 [16:55:09]line Версия ККМ: 001 [16:55:09]line ФМ: 0000000000871756 [16:55:09]line ФД: 201596 [16:55:09]line ФПД: 70602847617843 [16:55:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T165509&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201596&fm=70602847617843&tin=02508201610067®Number=0000000000091777&sum=100000 [16:55:09]OFD Sender: Processing packet 201596 [packets to send 112, broken 111] [16:55:09]ProducePacketName [16:55:09]name=ofd_packets/00201596 [16:55:09]OFD Sender: To server: pG, [16:55:09]CommunicateWithHost lk.salyk.kg:30040 [16:55:09]ConnectInit lk.salyk.kg [16:55:09]written 0, free lines is 4095 [16:55:09]Connected sock=10 [16:55:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A5 AA 07 01 19 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 32 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 66 01 00 00 F4 03 04 00 ED 1E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7C 13 03 00 35 04 06 00 40 36 81 A7 03 33 8A 19 57 E3 90 63 76 06 [16:55:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 1F 86 47 00 9E 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7C 13 03 00 F4 03 04 00 95 CA 1C 67 B6 04 01 00 00 C2 A1 CE 79 42 84 67 61 [16:55:10]CommunicateWithHost err = 0 [16:55:10]CheckOFDResponse [16:55:10]1017 (14) - 77093643461234 [16:55:10]1041 (16) - 0000000000871756 [16:55:10]1040 (4) - 201596 [16:55:10]1012 (4) - 26.10.2024 10:55 [16:55:10]1206 (1) - 0 [16:55:10]OFD Sender: Remove packet 201596 [16:55:10]ProducePacketName [16:55:10]name=ofd_packets/00201596 [16:55:10]NVStorageDeleteData [16:55:10]Write to MH i2c: 01 00 00 F7 32 29 [16:55:10]Write i2c OK [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: 01 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: 01 07 00 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: 01 07 00 F7 32 00 00 00 00 00 A1 0C DD [16:55:10]RasterBufferAndPrint [16:55:10]line [16:55:10]line [16:55:10]line [16:55:10]line [16:55:10]line [16:55:10]written 0, free lines is 3239 [16:55:10]MH_Cut [16:55:10]Write to MH i2c: D1 01 00 FE 32 01 02 [16:55:10]Write i2c OK [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: D1 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: D1 01 00 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: D1 01 00 FE 32 00 01 [16:55:10]Write to MH i2c: 01 00 00 FF 32 31 [16:55:10]Write i2c OK [16:55:10]MH_I2C_Read... [16:55:10]OFD Sender: No OFD packet to send [16:55:11]*** Cut start [16:55:11]*** Purtial cut [16:55:11]*** CUTSNS_PIN = 0 [16:55:11]*** Stage 1: CUTSNS_PIN = 1 [16:55:13]Read from MH i2c: 01 [16:55:13]MH_I2C_Read... [16:55:13]*** Stop cut motor [16:55:13]*** Cut end [16:55:13]Read from MH i2c: 01 07 00 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: 01 07 00 FF 32 00 00 00 00 00 FF 0F 46 [16:55:13]process_action close_receipt done [16:55:13]requested_data is exist [16:55:13]produce_requested_data [16:55:13]requested_item fm.sn is exist - process it [16:55:13]wFMCommunicate request_size=4 [16:55:13]MH_SAM_APDU [16:55:13]CAPDU: 80 11 00 00 [16:55:13]Write to MH i2c: E2 08 00 00 33 80 11 00 00 00 00 00 00 AD [16:55:13]Write i2c OK [16:55:13]MH_I2C_Read... [16:55:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:13]Read from MH i2c: E2 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 17 00 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 17 00 00 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 02 [16:55:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:55:13]wFMCommunicate OK [16:55:13]requested_item fd.num is exist - process it [16:55:13]SAM_PROTO_GetFieldsCounters [16:55:13]wFMCommunicate request_size=4 [16:55:13]MH_SAM_APDU [16:55:13]CAPDU: 80 13 00 00 [16:55:13]Write to MH i2c: E2 08 00 01 33 80 13 00 00 00 00 00 00 B0 [16:55:13]Write i2c OK [16:55:13]MH_I2C_Read... [16:55:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:13]Read from MH i2c: E2 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 62 00 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 62 00 01 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7C 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 C1 [16:55:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7C 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:55:13]wFMCommunicate OK [16:55:13]SAM_PROTO_GetFieldsCounters done [16:55:13]requested_item shift.num is exist - process it [16:55:13]requested_item shift.opened is exist - process it [16:55:13]req_shift_opened [16:55:13]FM_GetShiftState [16:55:13]SAM_PROTO_GetShiftState [16:55:13]wFMCommunicate request_size=4 [16:55:13]MH_SAM_APDU [16:55:13]CAPDU: 80 13 01 00 [16:55:13]Write to MH i2c: E2 08 00 02 33 80 13 01 00 00 00 00 00 B2 [16:55:13]Write i2c OK [16:55:13]MH_I2C_Read... [16:55:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:13]Read from MH i2c: E2 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 0E 00 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 0E 00 02 33 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C1 [16:55:13]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:55:13]wFMCommunicate OK [16:55:13]SAM_PROTO_GetShiftState done [16:55:13]FM_GetShiftState done [16:55:13]req_shift_opened done [16:55:13]requested_item shift.open_date is exist - process it [16:55:13]req_shift_open_date [16:55:13]req_shift_open_date done [16:55:13]produce_requested_data done [16:55:13]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201596,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [16:55:13]process_action_free close_receipt [16:55:13]json_value_free [16:55:13]json_value_free done [16:55:13]process_json_proto returns [16:55:13]Send response to host [16:55:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201596,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [16:55:13]free response buf [16:55:13]execute_script done [16:55:13]execute_script returns [16:55:13]free content buf [16:55:13]Sock 9.Close socket [16:55:13]Sock 9.Thread stoped [16:55:15]OFD Sender: No OFD packet to send [16:55:20]OFD Sender: No OFD packet to send [16:55:25]OFD Sender: No OFD packet to send [16:55:30]OFD Sender: No OFD packet to send [16:55:35]OFD Sender: No OFD packet to send [16:55:40]OFD Sender: No OFD packet to send [16:55:45]OFD Sender: No OFD packet to send [16:55:50]OFD Sender: No OFD packet to send [16:55:55]OFD Sender: No OFD packet to send [16:56:00]OFD Sender: No OFD packet to send [16:56:05]OFD Sender: No OFD packet to send [16:56:10]OFD Sender: No OFD packet to send [16:56:15]OFD Sender: No OFD packet to send [16:56:20]OFD Sender: No OFD packet to send [16:56:25]OFD Sender: No OFD packet to send [16:56:30]OFD Sender: No OFD packet to send [16:56:35]OFD Sender: No OFD packet to send [16:56:40]OFD Sender: No OFD packet to send [16:56:45]OFD Sender: No OFD packet to send [16:56:50]OFD Sender: No OFD packet to send [16:56:55]OFD Sender: No OFD packet to send [16:57:00]OFD Sender: No OFD packet to send [16:57:05]OFD Sender: No OFD packet to send [16:57:10]OFD Sender: No OFD packet to send [16:57:15]OFD Sender: No OFD packet to send [16:57:20]OFD Sender: No OFD packet to send [16:57:25]OFD Sender: No OFD packet to send [16:57:30]OFD Sender: No OFD packet to send [16:57:35]OFD Sender: No OFD packet to send [16:57:40]OFD Sender: No OFD packet to send [16:57:42]accept exits with 8 [16:57:42]New connection [16:57:42]New thread 3066834276 created [16:57:42]Thread 3066690916 joined [16:57:42]Waiting for new connection... [16:57:42] Sock 8.Parse request [16:57:42]Sock 8.Check first char [16:57:42]Sock 8.First char is OK [16:57:42]request: POST /json_proto HTTP/1.0 [16:57:42]Method: POST [16:57:42]URL: /json_proto [16:57:42]Method is POST - this is cgi request [16:57:42]url: /json_proto [16:57:42]query_string will be loaded in cgi processing [16:57:42]execute_cgi json_proto POST (null) [16:57:42]execute_cgi path=json_proto method=POST [16:57:42]POST find Content-Length [16:57:42]Host: 172.17.63.195:8080 [16:57:42]Content-Length: 677 [16:57:42]Content-Type: application/json [16:57:42] [16:57:42]POST finish read [16:57:42]Found Content-Length = 677 [16:57:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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" ] } } [16:57:42]execute_script... [16:57: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)449353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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" ] } } [16:57:42]POST & json_proto [16:57:42]process_json_proto [16:57:42]json parsed OK: [16:57:42]protocol is kg_v1.0 [16:57:42]action value=close_receipt [16:57:42]process_action close_receipt [16:57:42]cmd_close_receipt [16:57:42]MH_GetDate [16:57:42]Write to MH i2c: F0 00 00 03 33 25 [16:57:42]Write i2c OK [16:57:42]MH_I2C_Read... [16:57:42]Read from MH i2c: F0 [16:57:42]MH_I2C_Read... [16:57:42]Read from MH i2c: F0 09 00 [16:57:42]MH_I2C_Read... [16:57:42]Read from MH i2c: F0 09 00 03 33 00 88 1F 1D 67 68 46 19 67 87 [16:57:42]GetLastDocTimeStamp 1729961709 [16:57:42]current date 1729961864 [16:57:42]FM_GetShiftState [16:57:42]SAM_PROTO_GetShiftState [16:57:42]wFMCommunicate request_size=4 [16:57:42]MH_SAM_APDU [16:57:42]CAPDU: 80 13 01 00 [16:57:42]Write to MH i2c: E2 08 00 04 33 80 13 01 00 00 00 00 00 B4 [16:57:42]Write i2c OK [16:57:42]MH_I2C_Read... [16:57:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:42]Read from MH i2c: E2 [16:57:42]MH_I2C_Read... [16:57:42]Read from MH i2c: E2 0E 00 [16:57:42]MH_I2C_Read... [16:57:42]Read from MH i2c: E2 0E 00 04 33 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C3 [16:57:42]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:57:42]wFMCommunicate OK [16:57:42]SAM_PROTO_GetShiftState done [16:57:42]FM_GetShiftState done [16:57:42]opened in 1729900879 [16:57:42]opened+sec_in_day 1729987279 [16:57:42]quantity*price = 60009 [16:57:42]sum+1 = 60010 [16:57:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 359 26.10.2024 16:57 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201597 ФПД: 83645000558782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T165744&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201597&fm=83645000558782&tin=02508201610067®Number=0000000000091777&sum=60000 [16:57:43]StoreToDocumentArchive [16:57:43]shift 543 fd 201597 [16:57:43]save to /storage/0543/doc_00201597 [16:57:43]save last doc name /storage/0543/doc_00201597 to /storage/kkm_last_doc_name [16:57:43]save OK [16:57:43]Clear old archive folders... [16:57:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:57:43]tlvbuf is 01F1E730 [16:57:43]SAM_PROTO_ClearQueue [16:57:43]wFMCommunicate request_size=4 [16:57:43]MH_SAM_APDU [16:57:43]CAPDU: 80 09 00 00 [16:57:43]Write to MH i2c: E2 08 00 11 33 80 09 00 00 00 00 00 00 B6 [16:57:43]Write i2c OK [16:57:43]MH_I2C_Read... [16:57:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:57:43]Read from MH i2c: E2 [16:57:43]MH_I2C_Read... [16:57:43]Read from MH i2c: E2 03 00 [16:57:43]MH_I2C_Read... [16:57:43]Read from MH i2c: E2 03 00 11 33 00 90 00 B8 [16:57:43]RAPDU: 90 00 [16:57:43]wFMCommunicate OK [16:57:43]SAM_PROTO_ClearQueue done [16:57:43]KKMCreateOFDPacket [16:57:43]OFDProtocolAddRootSTLVToBuf [16:57:43]FM_MakeSignedData [16:57:43]FM_MakeSignedData [16:57:43]SAM_PROTO_SignData [16:57:43]wFMCommunicate request_size=4 [16:57:43]MH_SAM_APDU [16:57:43]CAPDU: 80 0D 01 02 [16:57:43]Write to MH i2c: E2 08 00 12 33 80 0D 01 02 00 00 00 00 BE [16:57:43]Write i2c OK [16:57:43]MH_I2C_Read... [16:57:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:57:43]Read from MH i2c: E2 [16:57:43]MH_I2C_Read... [16:57:43]Read from MH i2c: E2 03 00 [16:57:43]MH_I2C_Read... [16:57:43]Read from MH i2c: E2 03 00 12 33 00 90 00 B9 [16:57:43]RAPDU: 90 00 [16:57:43]wFMCommunicate OK [16:57:43]wFMCommunicate request_size=255 [16:57:43]MH_SAM_APDU [16:57:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 67 01 00 00 F4 03 04 00 88 1F 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7D 13 03 00 35 04 06 00 4C [16:57:43]Write to MH i2c: E2 02 01 13 33 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 67 01 00 00 F4 03 04 00 88 1F 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7D 13 03 00 35 04 06 00 4C 00 00 C2 [16:57:43]Write i2c OK [16:57:43]MH_I2C_Read... [16:57:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:43]Read from MH i2c: E2 [16:57:43]MH_I2C_Read... [16:57:43]Read from MH i2c: E2 03 00 [16:57:43]MH_I2C_Read... [16:57:43]Read from MH i2c: E2 03 00 13 33 00 90 00 BA [16:57:43]RAPDU: 90 00 [16:57:43]wFMCommunicate OK [16:57:43]wFMCommunicate request_size=10 [16:57:43]MH_SAM_APDU [16:57:43]CAPDU: 80 0D 02 02 05 13 1E 8B A8 BE [16:57:43]Write to MH i2c: E2 0D 00 14 33 80 0D 02 02 05 00 13 1E 8B A8 BE 00 00 ED [16:57:43]Write i2c OK [16:57:43]MH_I2C_Read... [16:57:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:43]Read from MH i2c: E2 [16:57:43]MH_I2C_Read... [16:57:43]Read from MH i2c: E2 03 00 [16:57:43]MH_I2C_Read... [16:57:43]Read from MH i2c: E2 03 00 14 33 00 90 00 BB [16:57:43]RAPDU: 90 00 [16:57:43]wFMCommunicate OK [16:57:43]wFMCommunicate request_size=4 [16:57:43]MH_SAM_APDU [16:57:43]CAPDU: 80 0D 03 02 [16:57:43]Write to MH i2c: E2 08 00 15 33 80 0D 03 02 00 00 00 00 C3 [16:57:43]Write i2c OK [16:57:43]MH_I2C_Read... [16:57:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:57:43]Read from MH i2c: E2 [16:57:43]MH_I2C_Read... [16:57:43]Read from MH i2c: E2 0B 00 [16:57:43]MH_I2C_Read... [16:57:43]Read from MH i2c: E2 0B 00 15 33 00 87 54 AB 4F 18 2B B7 81 90 00 14 [16:57:43]RAPDU: 87 54 AB 4F 18 2B B7 81 90 00 [16:57:43]wFMCommunicate OK [16:57:43]SAM_PROTO_SignData done [16:57:43]FM_MakeSignedData done [16:57:43]CreateOFDProtocolMessage [16:57:43]wFMCommunicate request_size=4 [16:57:43]MH_SAM_APDU [16:57:43]CAPDU: 80 11 00 00 [16:57:43]Write to MH i2c: E2 08 00 16 33 80 11 00 00 00 00 00 00 C3 [16:57:43]Write i2c OK [16:57:43]MH_I2C_Read... [16:57:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:43]Read from MH i2c: E2 [16:57:43]MH_I2C_Read... [16:57:43]Read from MH i2c: E2 17 00 [16:57:43]MH_I2C_Read... [16:57:43]Read from MH i2c: E2 17 00 16 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 18 [16:57:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:57:43]wFMCommunicate OK [16:57:43]CreateOFDProtocolMessage done [16:57:43]OFDSenderStorePacket 201597 [16:57:43]StoreOFDPacket docnum=201597 [16:57:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 CD FB 07 01 CA FC 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 67 01 00 00 F4 03 04 00 88 1F 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7D 13 03 00 35 04 06 00 4C 13 1E 8B A8 BE 87 54 AB 4F 18 2B B7 81 [16:57:43]CheckFolder [16:57:43]dirname=/storage/ofd_packets [16:57:43]CheckFolder done [16:57:43]ProducePacketName [16:57:43]name=ofd_packets/00201597 [16:57:43]NVStorageSaveData ofd_packets/00201597 [16:57:43]File name is /storage/ofd_packets/00201597 [16:57:43]Write 301 bytes [16:57:43]NVStorageSaveData done [16:57:43]OFDSenderStorePacket done [16:57:43]KKMCreateOFDPacket done [16:57:43]NVStorageSaveData kkm_last_timestamp [16:57:43]File name is /storage/kkm_last_timestamp [16:57:43]Write 4 bytes [16:57:43]NVStorageSaveData done [16:57:43]ExternCall_PrintAddStr [16:57:43]wPrintStart [16:57:43]Write to MH i2c: 01 00 00 17 33 4A [16:57:43]Write i2c OK [16:57:43]MH_I2C_Read... [16:57:43]Read from MH i2c: 01 [16:57:43]MH_I2C_Read... [16:57:43]Read from MH i2c: 01 07 00 [16:57:43]MH_I2C_Read... [16:57:43]Read from MH i2c: 01 07 00 17 33 00 00 00 00 00 FF 0F 5F [16:57:43]RasterBufferAndPrint [16:57:43]line Счет N : (1)449353 [16:57:43]line ИНН: 02508201610067 [16:57:43]line Контрольно-Кассовый Чек [16:57:43]line ПРОДАЖА [16:57:43]line ТРК (МРК, ГНК) : 52 [16:57:43]line Товар: 2710124130 [16:57:43]line Аи-92-К-2 [16:57:43]line 8.970 * 66.90 [16:57:43]line = 600.09 [16:57:43]line НДС 12% НСП 1% [16:57:43]line > о реализуемом товаре [16:57:43]line ОКРУГЛЕНИЕ: -0.09 [16:57:43]line ИТОГО: 600.00 [16:57:43]line Внесено: 600.00 [16:57:43]line СДАЧА: 0.00 [16:57:43]line НСП 1% : 5.31 [16:57:43]line НДС 12% : 63.73 [16:57:43]line Наличными: 600.00 [16:57:43]line Безнал.: 0.00 [16:57:43]line Место: АЗС № 171 "Партнер Нефть" [16:57:43]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [16:57:43]line СНО: Общий режим [16:57:43]line Чек 359 26.10.2024 16:57 [16:57:43]line Смена: 543 ФФД: 1.0 [16:57:43]line ЗНМ: 0300000109 [16:57:43]line РНМ: 0000000000091777 [16:57:43]line Версия ККМ: 001 [16:57:43]line ФМ: 0000000000871756 [16:57:43]line ФД: 201597 [16:57:43]line ФПД: 83645000558782 [16:57:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T165744&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201597&fm=83645000558782&tin=02508201610067®Number=0000000000091777&sum=60000 [16:57:44]OFD Sender: Processing packet 201597 [packets to send 112, broken 111] [16:57:44]ProducePacketName [16:57:44]name=ofd_packets/00201597 [16:57:44]OFD Sender: To server: pG, [16:57:44]CommunicateWithHost lk.salyk.kg:30040 [16:57:44]ConnectInit lk.salyk.kg [16:57:44]written 0, free lines is 4095 [16:57:44]Connected sock=10 [16:57:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 CD FB 07 01 CA FC 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 67 01 00 00 F4 03 04 00 88 1F 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7D 13 03 00 35 04 06 00 4C 13 1E 8B A8 BE 87 54 AB 4F 18 2B B7 81 [16:57:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 64 0E 47 00 1A 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7D 13 03 00 F4 03 04 00 30 CB 1C 67 B6 04 01 00 00 B9 8A 59 A0 22 08 86 91 [16:57:44]CommunicateWithHost err = 0 [16:57:44]CheckOFDResponse [16:57:44]1017 (14) - 77093643461234 [16:57:44]1041 (16) - 0000000000871756 [16:57:44]1040 (4) - 201597 [16:57:44]1012 (4) - 26.10.2024 10:57 [16:57:44]1206 (1) - 0 [16:57:44]OFD Sender: Remove packet 201597 [16:57:44]ProducePacketName [16:57:44]name=ofd_packets/00201597 [16:57:44]NVStorageDeleteData [16:57:44]Write to MH i2c: 01 00 00 42 33 75 [16:57:44]Write i2c OK [16:57:44]MH_I2C_Read... [16:57:44]Read from MH i2c: 01 [16:57:44]MH_I2C_Read... [16:57:44]Read from MH i2c: 01 07 00 [16:57:44]MH_I2C_Read... [16:57:44]Read from MH i2c: 01 07 00 42 33 00 00 00 00 00 A5 0C 2D [16:57:44]RasterBufferAndPrint [16:57:44]line [16:57:44]line [16:57:44]line [16:57:44]line [16:57:44]line [16:57:44]written 0, free lines is 3242 [16:57:44]MH_Cut [16:57:44]Write to MH i2c: D1 01 00 49 33 01 4E [16:57:44]Write i2c OK [16:57:44]MH_I2C_Read... [16:57:44]Read from MH i2c: D1 [16:57:44]MH_I2C_Read... [16:57:44]Read from MH i2c: D1 01 00 [16:57:44]MH_I2C_Read... [16:57:44]Read from MH i2c: D1 01 00 49 33 00 4D [16:57:44]Write to MH i2c: 01 00 00 4A 33 7D [16:57:44]Write i2c OK [16:57:44]MH_I2C_Read... [16:57:45]OFD Sender: No OFD packet to send [16:57:45]*** Cut start [16:57:45]*** Purtial cut [16:57:45]*** Stage 1: CUTSNS_PIN = 1 [16:57:45]Read from MH i2c: 01 [16:57:45]MH_I2C_Read... [16:57:45]*** Stop cut motor [16:57:45]*** Cut end [16:57:45]Read from MH i2c: 01 07 00 [16:57:45]MH_I2C_Read... [16:57:45]Read from MH i2c: 01 07 00 4A 33 00 00 00 00 00 FF 0F 92 [16:57:45]process_action close_receipt done [16:57:45]requested_data is exist [16:57:45]produce_requested_data [16:57:45]requested_item fm.sn is exist - process it [16:57:45]wFMCommunicate request_size=4 [16:57:45]MH_SAM_APDU [16:57:45]CAPDU: 80 11 00 00 [16:57:45]Write to MH i2c: E2 08 00 4B 33 80 11 00 00 00 00 00 00 F8 [16:57:45]Write i2c OK [16:57:45]MH_I2C_Read... [16:57:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:45]Read from MH i2c: E2 [16:57:45]MH_I2C_Read... [16:57:45]Read from MH i2c: E2 17 00 [16:57:45]MH_I2C_Read... [16:57:45]Read from MH i2c: E2 17 00 4B 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4D [16:57:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [16:57:45]wFMCommunicate OK [16:57:45]requested_item fd.num is exist - process it [16:57:45]SAM_PROTO_GetFieldsCounters [16:57:45]wFMCommunicate request_size=4 [16:57:45]MH_SAM_APDU [16:57:45]CAPDU: 80 13 00 00 [16:57:45]Write to MH i2c: E2 08 00 4C 33 80 13 00 00 00 00 00 00 FB [16:57:45]Write i2c OK [16:57:45]MH_I2C_Read... [16:57:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:46]Read from MH i2c: E2 [16:57:46]MH_I2C_Read... [16:57:46]Read from MH i2c: E2 62 00 [16:57:46]MH_I2C_Read... [16:57:46]Read from MH i2c: E2 62 00 4C 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7D 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 10 [16:57:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7D 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:57:46]wFMCommunicate OK [16:57:46]SAM_PROTO_GetFieldsCounters done [16:57:46]requested_item shift.num is exist - process it [16:57:46]requested_item shift.opened is exist - process it [16:57:46]req_shift_opened [16:57:46]FM_GetShiftState [16:57:46]SAM_PROTO_GetShiftState [16:57:46]wFMCommunicate request_size=4 [16:57:46]MH_SAM_APDU [16:57:46]CAPDU: 80 13 01 00 [16:57:46]Write to MH i2c: E2 08 00 4D 33 80 13 01 00 00 00 00 00 FD [16:57:46]Write i2c OK [16:57:46]MH_I2C_Read... [16:57:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:46]Read from MH i2c: E2 [16:57:46]MH_I2C_Read... [16:57:46]Read from MH i2c: E2 0E 00 [16:57:46]MH_I2C_Read... [16:57:46]Read from MH i2c: E2 0E 00 4D 33 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 0C [16:57:46]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [16:57:46]wFMCommunicate OK [16:57:46]SAM_PROTO_GetShiftState done [16:57:46]FM_GetShiftState done [16:57:46]req_shift_opened done [16:57:46]requested_item shift.open_date is exist - process it [16:57:46]req_shift_open_date [16:57:46]req_shift_open_date done [16:57:46]produce_requested_data done [16:57:46]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201597,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [16:57:46]process_action_free close_receipt [16:57:46]json_value_free [16:57:46]json_value_free done [16:57:46]process_json_proto returns [16:57:46]Send response to host [16:57:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201597,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [16:57:46]free response buf [16:57:46]execute_script done [16:57:46]execute_script returns [16:57:46]free content buf [16:57:46]Sock 8.Close socket [16:57:46]Sock 8.Thread stoped [16:57:50]OFD Sender: No OFD packet to send [16:57:55]OFD Sender: No OFD packet to send [16:58:00]OFD Sender: No OFD packet to send [16:58:05]OFD Sender: No OFD packet to send [16:58:10]OFD Sender: No OFD packet to send [16:58:15]OFD Sender: No OFD packet to send [16:58:20]OFD Sender: No OFD packet to send [16:58:25]OFD Sender: No OFD packet to send [16:58:30]OFD Sender: No OFD packet to send [16:58:35]OFD Sender: No OFD packet to send [16:58:40]OFD Sender: No OFD packet to send [16:58:45]OFD Sender: No OFD packet to send [16:58:50]OFD Sender: No OFD packet to send [16:58:55]OFD Sender: No OFD packet to send [16:59:00]OFD Sender: No OFD packet to send [16:59:05]OFD Sender: No OFD packet to send [16:59:10]OFD Sender: No OFD packet to send [16:59:15]OFD Sender: No OFD packet to send [16:59:20]OFD Sender: No OFD packet to send [16:59:25]OFD Sender: No OFD packet to send [16:59:30]OFD Sender: No OFD packet to send [16:59:35]OFD Sender: No OFD packet to send [16:59:40]OFD Sender: No OFD packet to send [16:59:45]OFD Sender: No OFD packet to send [16:59:50]OFD Sender: No OFD packet to send [16:59:55]OFD Sender: No OFD packet to send [17:00:00]OFD Sender: No OFD packet to send [17:00:05]OFD Sender: No OFD packet to send [17:00:10]OFD Sender: No OFD packet to send [17:00:15]OFD Sender: No OFD packet to send [17:00:20]OFD Sender: No OFD packet to send [17:00:25]OFD Sender: No OFD packet to send [17:00:30]OFD Sender: No OFD packet to send [17:00:35]OFD Sender: No OFD packet to send [17:00:40]OFD Sender: No OFD packet to send [17:00:45]OFD Sender: No OFD packet to send [17:00:50]OFD Sender: No OFD packet to send [17:00:55]OFD Sender: No OFD packet to send [17:01:00]OFD Sender: No OFD packet to send [17:01:05]OFD Sender: No OFD packet to send [17:01:10]OFD Sender: No OFD packet to send [17:01:15]OFD Sender: No OFD packet to send [17:01:20]OFD Sender: No OFD packet to send [17:01:25]OFD Sender: No OFD packet to send [17:01:30]OFD Sender: No OFD packet to send [17:01:35]OFD Sender: No OFD packet to send [17:01:40]OFD Sender: No OFD packet to send [17:01:45]OFD Sender: No OFD packet to send [17:01:50]OFD Sender: No OFD packet to send [17:01:55]OFD Sender: No OFD packet to send [17:02:00]OFD Sender: No OFD packet to send [17:02:05]OFD Sender: No OFD packet to send [17:02:10]OFD Sender: No OFD packet to send [17:02:15]OFD Sender: No OFD packet to send [17:02:20]OFD Sender: No OFD packet to send [17:02:25]OFD Sender: No OFD packet to send [17:02:30]OFD Sender: No OFD packet to send [17:02:35]OFD Sender: No OFD packet to send [17:02:40]OFD Sender: No OFD packet to send [17:02:45]OFD Sender: No OFD packet to send [17:02:50]OFD Sender: No OFD packet to send [17:02:55]OFD Sender: No OFD packet to send [17:03:00]OFD Sender: No OFD packet to send [17:03:01]accept exits with 9 [17:03:01]New connection [17:03:01]New thread 3066690916 created [17:03:01]Thread 3066834276 joined [17:03:01]Waiting for new connection... [17:03:01] Sock 9.Parse request [17:03:01]Sock 9.Check first char [17:03:01]Sock 9.First char is OK [17:03:01]request: POST /json_proto HTTP/1.0 [17:03:01]Method: POST [17:03:01]URL: /json_proto [17:03:01]Method is POST - this is cgi request [17:03:01]url: /json_proto [17:03:01]query_string will be loaded in cgi processing [17:03:01]execute_cgi json_proto POST (null) [17:03:01]execute_cgi path=json_proto method=POST [17:03:01]POST find Content-Length [17:03:01]Host: 172.17.63.195:8080 [17:03:01]Content-Length: 677 [17:03:01]Content-Type: application/json [17:03:01] [17:03:01]POST finish read [17:03:01]Found Content-Length = 677 [17:03:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:01]execute_script... [17:03:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:01]POST & json_proto [17:03:01]process_json_proto [17:03:01]json parsed OK: [17:03:01]protocol is kg_v1.0 [17:03:01]action value=close_receipt [17:03:01]process_action close_receipt [17:03:01]cmd_close_receipt [17:03:01]MH_GetDate [17:03:01]Write to MH i2c: F0 00 00 4E 33 70 [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: F0 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: F0 09 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: F0 09 00 4E 33 00 C6 20 1D 67 68 46 19 67 11 [17:03:01]GetLastDocTimeStamp 1729961864 [17:03:01]current date 1729962182 [17:03:01]FM_GetShiftState [17:03:01]SAM_PROTO_GetShiftState [17:03:01]wFMCommunicate request_size=4 [17:03:01]MH_SAM_APDU [17:03:01]CAPDU: 80 13 01 00 [17:03:01]Write to MH i2c: E2 08 00 4F 33 80 13 01 00 00 00 00 00 FF [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:01]Read from MH i2c: E2 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 0E 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 0E 00 4F 33 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 0E [17:03:01]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:03:01]wFMCommunicate OK [17:03:01]SAM_PROTO_GetShiftState done [17:03:01]FM_GetShiftState done [17:03:01]opened in 1729900879 [17:03:01]opened+sec_in_day 1729987279 [17:03:01]quantity*price = 30038 [17:03:01]sum+1 = 30039 [17:03:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 360 26.10.2024 17:03 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201598 ФПД: 233049154093032 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T170303&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201598&fm=233049154093032&tin=02508201610067®Number=0000000000091777&sum=30000 [17:03:02]StoreToDocumentArchive [17:03:02]shift 543 fd 201598 [17:03:02]save to /storage/0543/doc_00201598 [17:03:02]save last doc name /storage/0543/doc_00201598 to /storage/kkm_last_doc_name [17:03:02]save OK [17:03:02]Clear old archive folders... [17:03:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:03:02]tlvbuf is 01FD9E20 [17:03:02]SAM_PROTO_ClearQueue [17:03:02]wFMCommunicate request_size=4 [17:03:02]MH_SAM_APDU [17:03:02]CAPDU: 80 09 00 00 [17:03:02]Write to MH i2c: E2 08 00 5C 33 80 09 00 00 00 00 00 00 01 [17:03:02]Write i2c OK [17:03:02]MH_I2C_Read... [17:03:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:02]Read from MH i2c: E2 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: E2 03 00 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: E2 03 00 5C 33 00 90 00 03 [17:03:02]RAPDU: 90 00 [17:03:02]wFMCommunicate OK [17:03:02]SAM_PROTO_ClearQueue done [17:03:02]KKMCreateOFDPacket [17:03:02]OFDProtocolAddRootSTLVToBuf [17:03:02]FM_MakeSignedData [17:03:02]FM_MakeSignedData [17:03:02]SAM_PROTO_SignData [17:03:02]wFMCommunicate request_size=4 [17:03:02]MH_SAM_APDU [17:03:02]CAPDU: 80 0D 01 02 [17:03:02]Write to MH i2c: E2 08 00 5D 33 80 0D 01 02 00 00 00 00 09 [17:03:02]Write i2c OK [17:03:02]MH_I2C_Read... [17:03:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:02]Read from MH i2c: E2 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: E2 03 00 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: E2 03 00 5D 33 00 90 00 04 [17:03:02]RAPDU: 90 00 [17:03:02]wFMCommunicate OK [17:03:02]wFMCommunicate request_size=255 [17:03:02]MH_SAM_APDU [17:03:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 C7 20 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7E 13 03 00 35 04 06 00 D3 [17:03:02]Write to MH i2c: E2 02 01 5E 33 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 C7 20 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7E 13 03 00 35 04 06 00 D3 00 00 ED [17:03:02]Write i2c OK [17:03:02]MH_I2C_Read... [17:03:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:02]Read from MH i2c: E2 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: E2 03 00 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: E2 03 00 5E 33 00 90 00 05 [17:03:02]RAPDU: 90 00 [17:03:02]wFMCommunicate OK [17:03:02]wFMCommunicate request_size=10 [17:03:02]MH_SAM_APDU [17:03:02]CAPDU: 80 0D 02 02 05 F4 FC 0B 7F E8 [17:03:02]Write to MH i2c: E2 0D 00 5F 33 80 0D 02 02 05 00 F4 FC 0B 7F E8 00 00 78 [17:03:02]Write i2c OK [17:03:02]MH_I2C_Read... [17:03:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:02]Read from MH i2c: E2 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: E2 03 00 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: E2 03 00 5F 33 00 90 00 06 [17:03:02]RAPDU: 90 00 [17:03:02]wFMCommunicate OK [17:03:02]wFMCommunicate request_size=4 [17:03:02]MH_SAM_APDU [17:03:02]CAPDU: 80 0D 03 02 [17:03:02]Write to MH i2c: E2 08 00 60 33 80 0D 03 02 00 00 00 00 0E [17:03:02]Write i2c OK [17:03:02]MH_I2C_Read... [17:03:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:02]Read from MH i2c: E2 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: E2 0B 00 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: E2 0B 00 60 33 00 4F CA 81 78 31 12 FA E6 90 00 44 [17:03:02]RAPDU: 4F CA 81 78 31 12 FA E6 90 00 [17:03:02]wFMCommunicate OK [17:03:02]SAM_PROTO_SignData done [17:03:02]FM_MakeSignedData done [17:03:02]CreateOFDProtocolMessage [17:03:02]wFMCommunicate request_size=4 [17:03:02]MH_SAM_APDU [17:03:02]CAPDU: 80 11 00 00 [17:03:02]Write to MH i2c: E2 08 00 61 33 80 11 00 00 00 00 00 00 0E [17:03:02]Write i2c OK [17:03:02]MH_I2C_Read... [17:03:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:02]Read from MH i2c: E2 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: E2 17 00 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: E2 17 00 61 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 63 [17:03:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:03:02]wFMCommunicate OK [17:03:02]CreateOFDProtocolMessage done [17:03:02]OFDSenderStorePacket 201598 [17:03:02]StoreOFDPacket docnum=201598 [17:03:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 00 7E 07 01 A8 AA 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 C7 20 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7E 13 03 00 35 04 06 00 D3 F4 FC 0B 7F E8 4F CA 81 78 31 12 FA E6 [17:03:02]CheckFolder [17:03:02]dirname=/storage/ofd_packets [17:03:02]CheckFolder done [17:03:02]ProducePacketName [17:03:02]name=ofd_packets/00201598 [17:03:02]NVStorageSaveData ofd_packets/00201598 [17:03:02]File name is /storage/ofd_packets/00201598 [17:03:02]Write 301 bytes [17:03:02]NVStorageSaveData done [17:03:02]OFDSenderStorePacket done [17:03:02]KKMCreateOFDPacket done [17:03:02]NVStorageSaveData kkm_last_timestamp [17:03:02]File name is /storage/kkm_last_timestamp [17:03:02]Write 4 bytes [17:03:02]NVStorageSaveData done [17:03:02]ExternCall_PrintAddStr [17:03:02]wPrintStart [17:03:02]Write to MH i2c: 01 00 00 62 33 95 [17:03:02]Write i2c OK [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: 01 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: 01 07 00 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: 01 07 00 62 33 00 00 00 00 00 FF 0F AA [17:03:02]RasterBufferAndPrint [17:03:02]line Счет N : (1)449354 [17:03:02]line ИНН: 02508201610067 [17:03:02]line Контрольно-Кассовый Чек [17:03:02]line ПРОДАЖА [17:03:02]line ТРК (МРК, ГНК) : 31 [17:03:02]line Товар: 2710124130 [17:03:02]line Аи-92-К-2 [17:03:02]line 4.490 * 66.90 [17:03:02]line = 300.38 [17:03:02]line НДС 12% НСП 1% [17:03:02]line > о реализуемом товаре [17:03:02]line ОКРУГЛЕНИЕ: -0.38 [17:03:02]line ИТОГО: 300.00 [17:03:02]line Внесено: 300.00 [17:03:02]line СДАЧА: 0.00 [17:03:02]line НСП 1% : 2.66 [17:03:02]line НДС 12% : 31.90 [17:03:02]line Наличными: 300.00 [17:03:02]line Безнал.: 0.00 [17:03:02]line Место: АЗС № 171 "Партнер Нефть" [17:03:02]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:03:02]line СНО: Общий режим [17:03:02]line Чек 360 26.10.2024 17:03 [17:03:02]line Смена: 543 ФФД: 1.0 [17:03:02]line ЗНМ: 0300000109 [17:03:02]line РНМ: 0000000000091777 [17:03:02]line Версия ККМ: 001 [17:03:02]line ФМ: 0000000000871756 [17:03:02]line ФД: 201598 [17:03:02]line ФПД: 233049154093032 [17:03:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T170303&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201598&fm=233049154093032&tin=02508201610067®Number=0000000000091777&sum=30000 [17:03:03]OFD Sender: Processing packet 201598 [packets to send 112, broken 111] [17:03:03]ProducePacketName [17:03:03]name=ofd_packets/00201598 [17:03:03]OFD Sender: To server: pG, [17:03:03]CommunicateWithHost lk.salyk.kg:30040 [17:03:03]ConnectInit lk.salyk.kg [17:03:03]written 0, free lines is 4095 [17:03:03]Connected sock=10 [17:03:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 00 7E 07 01 A8 AA 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 C7 20 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7E 13 03 00 35 04 06 00 D3 F4 FC 0B 7F E8 4F CA 81 78 31 12 FA E6 [17:03:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 1F 67 47 00 35 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7E 13 03 00 F4 03 04 00 6F CC 1C 67 B6 04 01 00 00 CD 4F A7 8C 95 0E E7 38 [17:03:03]CommunicateWithHost err = 0 [17:03:03]CheckOFDResponse [17:03:03]1017 (14) - 77093643461234 [17:03:03]1041 (16) - 0000000000871756 [17:03:03]1040 (4) - 201598 [17:03:03]1012 (4) - 26.10.2024 11:03 [17:03:03]1206 (1) - 0 [17:03:03]OFD Sender: Remove packet 201598 [17:03:03]ProducePacketName [17:03:03]name=ofd_packets/00201598 [17:03:03]NVStorageDeleteData [17:03:03]Write to MH i2c: 01 00 00 8D 33 C0 [17:03:03]Write i2c OK [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: 01 [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: 01 07 00 [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: 01 07 00 8D 33 00 00 00 00 00 B2 0C 85 [17:03:03]RasterBufferAndPrint [17:03:03]line [17:03:03]line [17:03:03]line [17:03:03]line [17:03:03]line [17:03:03]written 0, free lines is 3256 [17:03:03]MH_Cut [17:03:03]Write to MH i2c: D1 01 00 94 33 01 99 [17:03:03]Write i2c OK [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: D1 [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: D1 01 00 [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: D1 01 00 94 33 00 98 [17:03:03]Write to MH i2c: 01 00 00 95 33 C8 [17:03:03]Write i2c OK [17:03:03]MH_I2C_Read... [17:03:04]OFD Sender: No OFD packet to send [17:03:04]*** Cut start [17:03:04]*** Purtial cut [17:03:04]*** Stage 1: CUTSNS_PIN = 1 [17:03:04]Read from MH i2c: 01 [17:03:04]MH_I2C_Read... [17:03:04]*** Stop cut motor [17:03:04]*** Cut end [17:03:04]Read from MH i2c: 01 07 00 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: 01 07 00 95 33 00 00 00 00 00 FF 0F DD [17:03:04]process_action close_receipt done [17:03:04]requested_data is exist [17:03:04]produce_requested_data [17:03:04]requested_item fm.sn is exist - process it [17:03:04]wFMCommunicate request_size=4 [17:03:04]MH_SAM_APDU [17:03:04]CAPDU: 80 11 00 00 [17:03:04]Write to MH i2c: E2 08 00 96 33 80 11 00 00 00 00 00 00 43 [17:03:04]Write i2c OK [17:03:04]MH_I2C_Read... [17:03:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:04]Read from MH i2c: E2 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 17 00 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 17 00 96 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 98 [17:03:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:03:04]wFMCommunicate OK [17:03:04]requested_item fd.num is exist - process it [17:03:04]SAM_PROTO_GetFieldsCounters [17:03:04]wFMCommunicate request_size=4 [17:03:04]MH_SAM_APDU [17:03:04]CAPDU: 80 13 00 00 [17:03:04]Write to MH i2c: E2 08 00 97 33 80 13 00 00 00 00 00 00 46 [17:03:04]Write i2c OK [17:03:04]MH_I2C_Read... [17:03:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:05]Read from MH i2c: E2 [17:03:05]MH_I2C_Read... [17:03:05]Read from MH i2c: E2 62 00 [17:03:05]MH_I2C_Read... [17:03:05]Read from MH i2c: E2 62 00 97 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7E 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 5F [17:03:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7E 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:03:05]wFMCommunicate OK [17:03:05]SAM_PROTO_GetFieldsCounters done [17:03:05]requested_item shift.num is exist - process it [17:03:05]requested_item shift.opened is exist - process it [17:03:05]req_shift_opened [17:03:05]FM_GetShiftState [17:03:05]SAM_PROTO_GetShiftState [17:03:05]wFMCommunicate request_size=4 [17:03:05]MH_SAM_APDU [17:03:05]CAPDU: 80 13 01 00 [17:03:05]Write to MH i2c: E2 08 00 98 33 80 13 01 00 00 00 00 00 48 [17:03:05]Write i2c OK [17:03:05]MH_I2C_Read... [17:03:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:05]Read from MH i2c: E2 [17:03:05]MH_I2C_Read... [17:03:05]Read from MH i2c: E2 0E 00 [17:03:05]MH_I2C_Read... [17:03:05]Read from MH i2c: E2 0E 00 98 33 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 57 [17:03:05]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:03:05]wFMCommunicate OK [17:03:05]SAM_PROTO_GetShiftState done [17:03:05]FM_GetShiftState done [17:03:05]req_shift_opened done [17:03:05]requested_item shift.open_date is exist - process it [17:03:05]req_shift_open_date [17:03:05]req_shift_open_date done [17:03:05]produce_requested_data done [17:03:05]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201598,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [17:03:05]process_action_free close_receipt [17:03:05]json_value_free [17:03:05]json_value_free done [17:03:05]process_json_proto returns [17:03:05]Send response to host [17:03:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201598,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [17:03:05]free response buf [17:03:05]execute_script done [17:03:05]execute_script returns [17:03:05]free content buf [17:03:05]Sock 9.Close socket [17:03:05]Sock 9.Thread stoped [17:03:09]OFD Sender: No OFD packet to send [17:03:14]OFD Sender: No OFD packet to send [17:03:19]OFD Sender: No OFD packet to send [17:03:24]OFD Sender: No OFD packet to send [17:03:29]OFD Sender: No OFD packet to send [17:03:34]OFD Sender: No OFD packet to send [17:03:39]OFD Sender: No OFD packet to send [17:03:44]OFD Sender: No OFD packet to send [17:03:49]OFD Sender: No OFD packet to send [17:03:54]OFD Sender: No OFD packet to send [17:03:59]OFD Sender: No OFD packet to send [17:04:04]OFD Sender: No OFD packet to send [17:04:09]OFD Sender: No OFD packet to send [17:04:14]OFD Sender: No OFD packet to send [17:04:19]OFD Sender: No OFD packet to send [17:04:24]OFD Sender: No OFD packet to send [17:04:29]OFD Sender: No OFD packet to send [17:04:34]OFD Sender: No OFD packet to send [17:04:39]OFD Sender: No OFD packet to send [17:04:44]OFD Sender: No OFD packet to send [17:04:49]OFD Sender: No OFD packet to send [17:04:54]OFD Sender: No OFD packet to send [17:04:59]OFD Sender: No OFD packet to send [17:05:04]OFD Sender: No OFD packet to send [17:05:09]OFD Sender: No OFD packet to send [17:05:14]OFD Sender: No OFD packet to send [17:05:19]OFD Sender: No OFD packet to send [17:05:24]OFD Sender: No OFD packet to send [17:05:29]OFD Sender: No OFD packet to send [17:05:31]accept exits with 8 [17:05:31]New connection [17:05:31]New thread 3066834276 created [17:05:31]Thread 3066690916 joined [17:05:31]Waiting for new connection... [17:05:31] Sock 8.Parse request [17:05:31]Sock 8.Check first char [17:05:31]Sock 8.First char is OK [17:05:31]request: POST /json_proto HTTP/1.0 [17:05:31]Method: POST [17:05:31]URL: /json_proto [17:05:31]Method is POST - this is cgi request [17:05:31]url: /json_proto [17:05:31]query_string will be loaded in cgi processing [17:05:31]execute_cgi json_proto POST (null) [17:05:31]execute_cgi path=json_proto method=POST [17:05:31]POST find Content-Length [17:05:31]Host: 172.17.63.195:8080 [17:05:31]Content-Length: 677 [17:05:31]Content-Type: application/json [17:05:31] [17:05:31]POST finish read [17:05:31]Found Content-Length = 677 [17:05:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.590, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:31]execute_script... [17:05: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)449355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.590, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:31]POST & json_proto [17:05:31]process_json_proto [17:05:31]json parsed OK: [17:05:31]protocol is kg_v1.0 [17:05:31]action value=close_receipt [17:05:31]process_action close_receipt [17:05:31]cmd_close_receipt [17:05:31]MH_GetDate [17:05:31]Write to MH i2c: F0 00 00 99 33 BB [17:05:31]Write i2c OK [17:05:31]MH_I2C_Read... [17:05:31]Read from MH i2c: F0 [17:05:31]MH_I2C_Read... [17:05:31]Read from MH i2c: F0 09 00 [17:05:31]MH_I2C_Read... [17:05:31]Read from MH i2c: F0 09 00 99 33 00 5C 21 1D 67 68 46 19 67 F3 [17:05:31]GetLastDocTimeStamp 1729962183 [17:05:31]current date 1729962332 [17:05:31]FM_GetShiftState [17:05:31]SAM_PROTO_GetShiftState [17:05:31]wFMCommunicate request_size=4 [17:05:31]MH_SAM_APDU [17:05:31]CAPDU: 80 13 01 00 [17:05:31]Write to MH i2c: E2 08 00 9A 33 80 13 01 00 00 00 00 00 4A [17:05:31]Write i2c OK [17:05:31]MH_I2C_Read... [17:05:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:31]Read from MH i2c: E2 [17:05:31]MH_I2C_Read... [17:05:31]Read from MH i2c: E2 0E 00 [17:05:31]MH_I2C_Read... [17:05:31]Read from MH i2c: E2 0E 00 9A 33 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 59 [17:05:31]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:05:31]wFMCommunicate OK [17:05:31]SAM_PROTO_GetShiftState done [17:05:31]FM_GetShiftState done [17:05:31]opened in 1729900879 [17:05:31]opened+sec_in_day 1729987279 [17:05:31]quantity*price = 24017 [17:05:31]sum+1 = 24018 [17:05:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.50 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 361 26.10.2024 17:05 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201599 ФПД: 83987420793704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T170532&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201599&fm=83987420793704&tin=02508201610067®Number=0000000000091777&sum=24000 [17:05:32]StoreToDocumentArchive [17:05:32]shift 543 fd 201599 [17:05:32]save to /storage/0543/doc_00201599 [17:05:32]save last doc name /storage/0543/doc_00201599 to /storage/kkm_last_doc_name [17:05:32]save OK [17:05:32]Clear old archive folders... [17:05:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:05:32]tlvbuf is 01FFBF00 [17:05:32]SAM_PROTO_ClearQueue [17:05:32]wFMCommunicate request_size=4 [17:05:32]MH_SAM_APDU [17:05:32]CAPDU: 80 09 00 00 [17:05:32]Write to MH i2c: E2 08 00 A7 33 80 09 00 00 00 00 00 00 4C [17:05:32]Write i2c OK [17:05:32]MH_I2C_Read... [17:05:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:05:32]Read from MH i2c: E2 [17:05:32]MH_I2C_Read... [17:05:32]Read from MH i2c: E2 03 00 [17:05:32]MH_I2C_Read... [17:05:32]Read from MH i2c: E2 03 00 A7 33 00 90 00 4E [17:05:32]RAPDU: 90 00 [17:05:32]wFMCommunicate OK [17:05:32]SAM_PROTO_ClearQueue done [17:05:32]KKMCreateOFDPacket [17:05:32]OFDProtocolAddRootSTLVToBuf [17:05:32]FM_MakeSignedData [17:05:32]FM_MakeSignedData [17:05:32]SAM_PROTO_SignData [17:05:32]wFMCommunicate request_size=4 [17:05:32]MH_SAM_APDU [17:05:32]CAPDU: 80 0D 01 02 [17:05:32]Write to MH i2c: E2 08 00 A8 33 80 0D 01 02 00 00 00 00 54 [17:05:32]Write i2c OK [17:05:32]MH_I2C_Read... [17:05:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:05:32]Read from MH i2c: E2 [17:05:32]MH_I2C_Read... [17:05:32]Read from MH i2c: E2 03 00 [17:05:32]MH_I2C_Read... [17:05:32]Read from MH i2c: E2 03 00 A8 33 00 90 00 4F [17:05:32]RAPDU: 90 00 [17:05:32]wFMCommunicate OK [17:05:32]wFMCommunicate request_size=255 [17:05:32]MH_SAM_APDU [17:05:32]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 32 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 5C 21 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7F 13 03 00 35 04 06 00 4C [17:05:32]Write to MH i2c: E2 02 01 A9 33 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 32 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 5C 21 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7F 13 03 00 35 04 06 00 4C 00 00 5B [17:05:32]Write i2c OK [17:05:32]MH_I2C_Read... [17:05:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:32]Read from MH i2c: E2 [17:05:32]MH_I2C_Read... [17:05:32]Read from MH i2c: E2 03 00 [17:05:32]MH_I2C_Read... [17:05:32]Read from MH i2c: E2 03 00 A9 33 00 90 00 50 [17:05:32]RAPDU: 90 00 [17:05:32]wFMCommunicate OK [17:05:32]wFMCommunicate request_size=10 [17:05:32]MH_SAM_APDU [17:05:32]CAPDU: 80 0D 02 02 05 62 D8 61 CB 68 [17:05:32]Write to MH i2c: E2 0D 00 AA 33 80 0D 02 02 05 00 62 D8 61 CB 68 00 00 2F [17:05:32]Write i2c OK [17:05:32]MH_I2C_Read... [17:05:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:32]Read from MH i2c: E2 [17:05:32]MH_I2C_Read... [17:05:32]Read from MH i2c: E2 03 00 [17:05:32]MH_I2C_Read... [17:05:32]Read from MH i2c: E2 03 00 AA 33 00 90 00 51 [17:05:32]RAPDU: 90 00 [17:05:32]wFMCommunicate OK [17:05:32]wFMCommunicate request_size=4 [17:05:32]MH_SAM_APDU [17:05:32]CAPDU: 80 0D 03 02 [17:05:32]Write to MH i2c: E2 08 00 AB 33 80 0D 03 02 00 00 00 00 59 [17:05:32]Write i2c OK [17:05:32]MH_I2C_Read... [17:05:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:05:32]Read from MH i2c: E2 [17:05:32]MH_I2C_Read... [17:05:32]Read from MH i2c: E2 0B 00 [17:05:32]MH_I2C_Read... [17:05:32]Read from MH i2c: E2 0B 00 AB 33 00 3E 3B 56 EB 9A 6A 13 74 90 00 9F [17:05:32]RAPDU: 3E 3B 56 EB 9A 6A 13 74 90 00 [17:05:32]wFMCommunicate OK [17:05:32]SAM_PROTO_SignData done [17:05:32]FM_MakeSignedData done [17:05:32]CreateOFDProtocolMessage [17:05:32]wFMCommunicate request_size=4 [17:05:32]MH_SAM_APDU [17:05:32]CAPDU: 80 11 00 00 [17:05:32]Write to MH i2c: E2 08 00 AC 33 80 11 00 00 00 00 00 00 59 [17:05:32]Write i2c OK [17:05:32]MH_I2C_Read... [17:05:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:32]Read from MH i2c: E2 [17:05:32]MH_I2C_Read... [17:05:32]Read from MH i2c: E2 17 00 [17:05:32]MH_I2C_Read... [17:05:32]Read from MH i2c: E2 17 00 AC 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AE [17:05:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:05:32]wFMCommunicate OK [17:05:32]CreateOFDProtocolMessage done [17:05:32]OFDSenderStorePacket 201599 [17:05:32]StoreOFDPacket docnum=201599 [17:05:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 05 09 07 01 06 EB 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 32 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 5C 21 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7F 13 03 00 35 04 06 00 4C 62 D8 61 CB 68 3E 3B 56 EB 9A 6A 13 74 [17:05:32]CheckFolder [17:05:32]dirname=/storage/ofd_packets [17:05:32]CheckFolder done [17:05:32]ProducePacketName [17:05:32]name=ofd_packets/00201599 [17:05:32]NVStorageSaveData ofd_packets/00201599 [17:05:32]File name is /storage/ofd_packets/00201599 [17:05:32]Write 301 bytes [17:05:32]NVStorageSaveData done [17:05:32]OFDSenderStorePacket done [17:05:32]KKMCreateOFDPacket done [17:05:32]NVStorageSaveData kkm_last_timestamp [17:05:32]File name is /storage/kkm_last_timestamp [17:05:32]Write 4 bytes [17:05:32]NVStorageSaveData done [17:05:32]ExternCall_PrintAddStr [17:05:32]wPrintStart [17:05:32]Write to MH i2c: 01 00 00 AD 33 E0 [17:05:32]Write i2c OK [17:05:32]MH_I2C_Read... [17:05:32]Read from MH i2c: 01 [17:05:32]MH_I2C_Read... [17:05:32]Read from MH i2c: 01 07 00 [17:05:32]MH_I2C_Read... [17:05:32]Read from MH i2c: 01 07 00 AD 33 00 00 00 00 00 FF 0F F5 [17:05:32]RasterBufferAndPrint [17:05:32]line Счет N : (1)449355 [17:05:32]line ИНН: 02508201610067 [17:05:32]line Контрольно-Кассовый Чек [17:05:32]line ПРОДАЖА [17:05:32]line ТРК (МРК, ГНК) : 31 [17:05:32]line Товар: 2710124130 [17:05:32]line Аи-92-К-2 [17:05:32]line 3.590 * 66.90 [17:05:32]line = 240.17 [17:05:32]line НДС 12% НСП 1% [17:05:32]line > о реализуемом товаре [17:05:32]line ОКРУГЛЕНИЕ: -0.17 [17:05:32]line ИТОГО: 240.00 [17:05:32]line Внесено: 240.00 [17:05:32]line СДАЧА: 0.00 [17:05:32]line НСП 1% : 2.12 [17:05:32]line НДС 12% : 25.50 [17:05:32]line Наличными: 240.00 [17:05:32]line Безнал.: 0.00 [17:05:32]line Место: АЗС № 171 "Партнер Нефть" [17:05:32]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:05:32]line СНО: Общий режим [17:05:32]line Чек 361 26.10.2024 17:05 [17:05:32]line Смена: 543 ФФД: 1.0 [17:05:32]line ЗНМ: 0300000109 [17:05:32]line РНМ: 0000000000091777 [17:05:32]line Версия ККМ: 001 [17:05:32]line ФМ: 0000000000871756 [17:05:32]line ФД: 201599 [17:05:32]line ФПД: 83987420793704 [17:05:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T170532&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201599&fm=83987420793704&tin=02508201610067®Number=0000000000091777&sum=24000 [17:05:33]OFD Sender: Processing packet 201599 [packets to send 112, broken 111] [17:05:33]ProducePacketName [17:05:33]name=ofd_packets/00201599 [17:05:33]OFD Sender: To server: pG, [17:05:33]CommunicateWithHost lk.salyk.kg:30040 [17:05:33]ConnectInit lk.salyk.kg [17:05:33]written 0, free lines is 4095 [17:05:33]Connected sock=10 [17:05:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 05 09 07 01 06 EB 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 32 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 5C 21 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7F 13 03 00 35 04 06 00 4C 62 D8 61 CB 68 3E 3B 56 EB 9A 6A 13 74 [17:05:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 14 9F 47 00 62 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 7F 13 03 00 F4 03 04 00 05 CD 1C 67 B6 04 01 00 00 1E 42 F9 57 F8 94 A3 1B [17:05:33]CommunicateWithHost err = 0 [17:05:33]CheckOFDResponse [17:05:33]1017 (14) - 77093643461234 [17:05:33]1041 (16) - 0000000000871756 [17:05:33]1040 (4) - 201599 [17:05:33]1012 (4) - 26.10.2024 11:05 [17:05:33]1206 (1) - 0 [17:05:33]OFD Sender: Remove packet 201599 [17:05:33]ProducePacketName [17:05:33]name=ofd_packets/00201599 [17:05:33]NVStorageDeleteData [17:05:33]Write to MH i2c: 01 00 00 D8 33 0B [17:05:33]Write i2c OK [17:05:33]MH_I2C_Read... [17:05:33]Read from MH i2c: 01 [17:05:33]MH_I2C_Read... [17:05:33]Read from MH i2c: 01 07 00 [17:05:33]MH_I2C_Read... [17:05:33]Read from MH i2c: 01 07 00 D8 33 00 00 00 00 00 99 0C B7 [17:05:33]RasterBufferAndPrint [17:05:33]line [17:05:33]line [17:05:33]line [17:05:33]line [17:05:33]line [17:05:33]written 0, free lines is 3233 [17:05:33]MH_Cut [17:05:33]Write to MH i2c: D1 01 00 DF 33 01 E4 [17:05:33]Write i2c OK [17:05:33]MH_I2C_Read... [17:05:33]Read from MH i2c: D1 [17:05:33]MH_I2C_Read... [17:05:33]Read from MH i2c: D1 01 00 [17:05:33]MH_I2C_Read... [17:05:33]Read from MH i2c: D1 01 00 DF 33 00 E3 [17:05:33]Write to MH i2c: 01 00 00 E0 33 13 [17:05:33]Write i2c OK [17:05:33]MH_I2C_Read... [17:05:34]OFD Sender: No OFD packet to send [17:05:34]*** Cut start [17:05:34]*** Purtial cut [17:05:34]*** Stage 1: CUTSNS_PIN = 1 [17:05:34]Read from MH i2c: 01 [17:05:34]MH_I2C_Read... [17:05:34]*** Stop cut motor [17:05:34]*** Cut end [17:05:34]Read from MH i2c: 01 07 00 [17:05:34]MH_I2C_Read... [17:05:34]Read from MH i2c: 01 07 00 E0 33 00 00 00 00 00 FF 0F 28 [17:05:34]process_action close_receipt done [17:05:34]requested_data is exist [17:05:34]produce_requested_data [17:05:34]requested_item fm.sn is exist - process it [17:05:34]wFMCommunicate request_size=4 [17:05:34]MH_SAM_APDU [17:05:34]CAPDU: 80 11 00 00 [17:05:34]Write to MH i2c: E2 08 00 E1 33 80 11 00 00 00 00 00 00 8E [17:05:34]Write i2c OK [17:05:34]MH_I2C_Read... [17:05:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:34]Read from MH i2c: E2 [17:05:34]MH_I2C_Read... [17:05:34]Read from MH i2c: E2 17 00 [17:05:34]MH_I2C_Read... [17:05:34]Read from MH i2c: E2 17 00 E1 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E3 [17:05:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:05:34]wFMCommunicate OK [17:05:34]requested_item fd.num is exist - process it [17:05:34]SAM_PROTO_GetFieldsCounters [17:05:34]wFMCommunicate request_size=4 [17:05:34]MH_SAM_APDU [17:05:34]CAPDU: 80 13 00 00 [17:05:34]Write to MH i2c: E2 08 00 E2 33 80 13 00 00 00 00 00 00 91 [17:05:34]Write i2c OK [17:05:34]MH_I2C_Read... [17:05:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:05:34]Read from MH i2c: E2 [17:05:34]MH_I2C_Read... [17:05:34]Read from MH i2c: E2 62 00 [17:05:34]MH_I2C_Read... [17:05:34]Read from MH i2c: E2 62 00 E2 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7F 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 AE [17:05:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 7F 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:05:34]wFMCommunicate OK [17:05:34]SAM_PROTO_GetFieldsCounters done [17:05:34]requested_item shift.num is exist - process it [17:05:34]requested_item shift.opened is exist - process it [17:05:34]req_shift_opened [17:05:34]FM_GetShiftState [17:05:34]SAM_PROTO_GetShiftState [17:05:34]wFMCommunicate request_size=4 [17:05:34]MH_SAM_APDU [17:05:34]CAPDU: 80 13 01 00 [17:05:34]Write to MH i2c: E2 08 00 E3 33 80 13 01 00 00 00 00 00 93 [17:05:34]Write i2c OK [17:05:34]MH_I2C_Read... [17:05:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:35]Read from MH i2c: E2 [17:05:35]MH_I2C_Read... [17:05:35]Read from MH i2c: E2 0E 00 [17:05:35]MH_I2C_Read... [17:05:35]Read from MH i2c: E2 0E 00 E3 33 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 A2 [17:05:35]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:05:35]wFMCommunicate OK [17:05:35]SAM_PROTO_GetShiftState done [17:05:35]FM_GetShiftState done [17:05:35]req_shift_opened done [17:05:35]requested_item shift.open_date is exist - process it [17:05:35]req_shift_open_date [17:05:35]req_shift_open_date done [17:05:35]produce_requested_data done [17:05:35]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201599,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [17:05:35]process_action_free close_receipt [17:05:35]json_value_free [17:05:35]json_value_free done [17:05:35]process_json_proto returns [17:05:35]Send response to host [17:05:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201599,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [17:05:35]free response buf [17:05:35]execute_script done [17:05:35]execute_script returns [17:05:35]free content buf [17:05:35]Sock 8.Close socket [17:05:35]Sock 8.Thread stoped [17:05:39]OFD Sender: No OFD packet to send [17:05:44]OFD Sender: No OFD packet to send [17:05:49]OFD Sender: No OFD packet to send [17:05:54]OFD Sender: No OFD packet to send [17:05:59]OFD Sender: No OFD packet to send [17:06:04]OFD Sender: No OFD packet to send [17:06:09]OFD Sender: No OFD packet to send [17:06:14]OFD Sender: No OFD packet to send [17:06:19]OFD Sender: No OFD packet to send [17:06:24]OFD Sender: No OFD packet to send [17:06:29]OFD Sender: No OFD packet to send [17:06:34]OFD Sender: No OFD packet to send [17:06:39]OFD Sender: No OFD packet to send [17:06:44]OFD Sender: No OFD packet to send [17:06:49]OFD Sender: No OFD packet to send [17:06:54]OFD Sender: No OFD packet to send [17:06:59]OFD Sender: No OFD packet to send [17:07:04]OFD Sender: No OFD packet to send [17:07:09]OFD Sender: No OFD packet to send [17:07:14]OFD Sender: No OFD packet to send [17:07:19]OFD Sender: No OFD packet to send [17:07:24]OFD Sender: No OFD packet to send [17:07:29]OFD Sender: No OFD packet to send [17:07:34]OFD Sender: No OFD packet to send [17:07:39]OFD Sender: No OFD packet to send [17:07:44]OFD Sender: No OFD packet to send [17:07:49]OFD Sender: No OFD packet to send [17:07:54]OFD Sender: No OFD packet to send [17:07:59]OFD Sender: No OFD packet to send [17:08:04]OFD Sender: No OFD packet to send [17:08:09]OFD Sender: No OFD packet to send [17:08:11]accept exits with 9 [17:08:11]New connection [17:08:11]New thread 3066690916 created [17:08:11]Thread 3066834276 joined [17:08:11]Waiting for new connection... [17:08:11] Sock 9.Parse request [17:08:11]Sock 9.Check first char [17:08:11]Sock 9.First char is OK [17:08:11]request: POST /json_proto HTTP/1.0 [17:08:11]Method: POST [17:08:11]URL: /json_proto [17:08:11]Method is POST - this is cgi request [17:08:11]url: /json_proto [17:08:11]query_string will be loaded in cgi processing [17:08:11]execute_cgi json_proto POST (null) [17:08:11]execute_cgi path=json_proto method=POST [17:08:11]POST find Content-Length [17:08:11]Host: 172.17.63.195:8080 [17:08:11]Content-Length: 766 [17:08:11]Content-Type: application/json [17:08:11] [17:08:11]POST finish read [17:08:11]Found Content-Length = 766 [17:08:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:11]execute_script... [17:08: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)449356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:11]POST & json_proto [17:08:11]process_json_proto [17:08:11]json parsed OK: [17:08:11]protocol is kg_v1.0 [17:08:11]action value=close_receipt [17:08:11]process_action close_receipt [17:08:11]cmd_close_receipt [17:08:11]MH_GetDate [17:08:11]Write to MH i2c: F0 00 00 E4 33 06 [17:08:11]Write i2c OK [17:08:11]MH_I2C_Read... [17:08:11]Read from MH i2c: F0 [17:08:11]MH_I2C_Read... [17:08:11]Read from MH i2c: F0 09 00 [17:08:11]MH_I2C_Read... [17:08:11]Read from MH i2c: F0 09 00 E4 33 00 FD 21 1D 67 68 46 19 67 DF [17:08:11]GetLastDocTimeStamp 1729962332 [17:08:11]current date 1729962493 [17:08:11]FM_GetShiftState [17:08:11]SAM_PROTO_GetShiftState [17:08:11]wFMCommunicate request_size=4 [17:08:11]MH_SAM_APDU [17:08:11]CAPDU: 80 13 01 00 [17:08:11]Write to MH i2c: E2 08 00 E5 33 80 13 01 00 00 00 00 00 95 [17:08:11]Write i2c OK [17:08:11]MH_I2C_Read... [17:08:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:12]Read from MH i2c: E2 [17:08:12]MH_I2C_Read... [17:08:12]Read from MH i2c: E2 0E 00 [17:08:12]MH_I2C_Read... [17:08:12]Read from MH i2c: E2 0E 00 E5 33 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 A4 [17:08:12]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:08:12]wFMCommunicate OK [17:08:12]SAM_PROTO_GetShiftState done [17:08:12]FM_GetShiftState done [17:08:12]opened in 1729900879 [17:08:12]opened+sec_in_day 1729987279 [17:08:12]quantity*price = 50041 [17:08:12]sum+1 = 50042 [17:08:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 362 26.10.2024 17:08 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201600 ФПД: 117425475039251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T170813&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201600&fm=117425475039251&tin=02508201610067®Number=0000000000091777&sum=50041 [17:08:13]StoreToDocumentArchive [17:08:13]shift 543 fd 201600 [17:08:13]save to /storage/0543/doc_00201600 [17:08:13]save last doc name /storage/0543/doc_00201600 to /storage/kkm_last_doc_name [17:08:13]save OK [17:08:13]Clear old archive folders... [17:08:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:08:13]tlvbuf is B6D8B950 [17:08:13]SAM_PROTO_ClearQueue [17:08:13]wFMCommunicate request_size=4 [17:08:13]MH_SAM_APDU [17:08:13]CAPDU: 80 09 00 00 [17:08:13]Write to MH i2c: E2 08 00 F2 33 80 09 00 00 00 00 00 00 97 [17:08:13]Write i2c OK [17:08:13]MH_I2C_Read... [17:08:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:13]Read from MH i2c: E2 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: E2 03 00 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: E2 03 00 F2 33 00 90 00 99 [17:08:13]RAPDU: 90 00 [17:08:13]wFMCommunicate OK [17:08:13]SAM_PROTO_ClearQueue done [17:08:13]KKMCreateOFDPacket [17:08:13]OFDProtocolAddRootSTLVToBuf [17:08:13]FM_MakeSignedData [17:08:13]FM_MakeSignedData [17:08:13]SAM_PROTO_SignData [17:08:13]wFMCommunicate request_size=4 [17:08:13]MH_SAM_APDU [17:08:13]CAPDU: 80 0D 01 02 [17:08:13]Write to MH i2c: E2 08 00 F3 33 80 0D 01 02 00 00 00 00 9F [17:08:13]Write i2c OK [17:08:13]MH_I2C_Read... [17:08:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:13]Read from MH i2c: E2 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: E2 03 00 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: E2 03 00 F3 33 00 90 00 9A [17:08:13]RAPDU: 90 00 [17:08:13]wFMCommunicate OK [17:08:13]wFMCommunicate request_size=255 [17:08:13]MH_SAM_APDU [17:08: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 32 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 79 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 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 FD 21 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 80 13 03 00 35 04 06 00 6A [17:08:13]Write to MH i2c: E2 02 01 F4 33 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 32 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 79 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 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 FD 21 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 80 13 03 00 35 04 06 00 6A 00 00 B3 [17:08:13]Write i2c OK [17:08:13]MH_I2C_Read... [17:08:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:13]Read from MH i2c: E2 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: E2 03 00 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: E2 03 00 F4 33 00 90 00 9B [17:08:13]RAPDU: 90 00 [17:08:13]wFMCommunicate OK [17:08:13]wFMCommunicate request_size=10 [17:08:13]MH_SAM_APDU [17:08:13]CAPDU: 80 0D 02 02 05 CC 3F BA 30 13 [17:08:13]Write to MH i2c: E2 0D 00 F5 33 80 0D 02 02 05 00 CC 3F BA 30 13 00 00 B4 [17:08:13]Write i2c OK [17:08:13]MH_I2C_Read... [17:08:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:13]Read from MH i2c: E2 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: E2 03 00 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: E2 03 00 F5 33 00 90 00 9C [17:08:13]RAPDU: 90 00 [17:08:13]wFMCommunicate OK [17:08:13]wFMCommunicate request_size=4 [17:08:13]MH_SAM_APDU [17:08:13]CAPDU: 80 0D 03 02 [17:08:13]Write to MH i2c: E2 08 00 F6 33 80 0D 03 02 00 00 00 00 A4 [17:08:13]Write i2c OK [17:08:13]MH_I2C_Read... [17:08:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:13]Read from MH i2c: E2 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: E2 0B 00 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: E2 0B 00 F6 33 00 A6 00 3C 73 F2 FB F0 32 90 00 09 [17:08:13]RAPDU: A6 00 3C 73 F2 FB F0 32 90 00 [17:08:13]wFMCommunicate OK [17:08:13]SAM_PROTO_SignData done [17:08:13]FM_MakeSignedData done [17:08:13]CreateOFDProtocolMessage [17:08:13]wFMCommunicate request_size=4 [17:08:13]MH_SAM_APDU [17:08:13]CAPDU: 80 11 00 00 [17:08:13]Write to MH i2c: E2 08 00 F7 33 80 11 00 00 00 00 00 00 A4 [17:08:13]Write i2c OK [17:08:13]MH_I2C_Read... [17:08:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:13]Read from MH i2c: E2 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: E2 17 00 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: E2 17 00 F7 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F9 [17:08:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:08:13]wFMCommunicate OK [17:08:13]CreateOFDProtocolMessage done [17:08:13]OFDSenderStorePacket 201600 [17:08:13]StoreOFDPacket docnum=201600 [17:08:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 99 5F 07 01 C3 5D 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 32 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 79 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 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 FD 21 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 80 13 03 00 35 04 06 00 6A CC 3F BA 30 13 A6 00 3C 73 F2 FB F0 32 [17:08:13]CheckFolder [17:08:13]dirname=/storage/ofd_packets [17:08:13]CheckFolder done [17:08:13]ProducePacketName [17:08:13]name=ofd_packets/00201600 [17:08:13]NVStorageSaveData ofd_packets/00201600 [17:08:13]File name is /storage/ofd_packets/00201600 [17:08:13]Write 301 bytes [17:08:13]NVStorageSaveData done [17:08:13]OFDSenderStorePacket done [17:08:13]KKMCreateOFDPacket done [17:08:13]NVStorageSaveData kkm_last_timestamp [17:08:13]File name is /storage/kkm_last_timestamp [17:08:13]Write 4 bytes [17:08:13]NVStorageSaveData done [17:08:13]ExternCall_PrintAddStr [17:08:13]wPrintStart [17:08:13]Write to MH i2c: 01 00 00 F8 33 2B [17:08:13]Write i2c OK [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: 01 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: 01 07 00 [17:08:13]MH_I2C_Read... [17:08:13]Read from MH i2c: 01 07 00 F8 33 00 00 00 00 00 FF 0F 40 [17:08:13]RasterBufferAndPrint [17:08:13]line Счет N : (1)449356 [17:08:13]line ИНН: 02508201610067 [17:08:13]line Контрольно-Кассовый Чек [17:08:13]line ПРОДАЖА [17:08:13]line ТРК (МРК, ГНК) : 52 [17:08:13]line Товар: 2710124130 [17:08:13]line Аи-92-К-2 [17:08:13]line 7.480 * 66.90 [17:08:13]line = 500.41 [17:08:13]line НДС 12% НСП 1% [17:08:13]line > о реализуемом товаре [17:08:13]line ИТОГО: 500.41 [17:08:13]line НСП 1% : 4.43 [17:08:13]line НДС 12% : 53.14 [17:08:13]line Наличными: 0.00 [17:08:13]line Безнал.: 500.41 [17:08:13]line Место: АЗС № 171 "Партнер Нефть" [17:08:13]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:08:13]line СНО: Общий режим [17:08:13]line Чек 362 26.10.2024 17:08 [17:08:13]line Смена: 543 ФФД: 1.0 [17:08:13]line ЗНМ: 0300000109 [17:08:13]line РНМ: 0000000000091777 [17:08:13]line Версия ККМ: 001 [17:08:13]line Платежная система: Mbank [17:08:13]line ФМ: 0000000000871756 [17:08:13]line ФД: 201600 [17:08:13]line ФПД: 117425475039251 [17:08:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T170813&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201600&fm=117425475039251&tin=02508201610067®Number=0000000000091777&sum=50041 [17:08:13]written 0, free lines is 4095 [17:08:13]OFD Sender: Processing packet 201600 [packets to send 112, broken 111] [17:08:13]ProducePacketName [17:08:13]name=ofd_packets/00201600 [17:08:13]OFD Sender: To server: pG, [17:08:13]CommunicateWithHost lk.salyk.kg:30040 [17:08:13]ConnectInit lk.salyk.kg [17:08:13]Connected sock=10 [17:08:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 99 5F 07 01 C3 5D 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 32 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 79 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 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 FD 21 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 80 13 03 00 35 04 06 00 6A CC 3F BA 30 13 A6 00 3C 73 F2 FB F0 32 [17:08:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 1A BC 47 00 ED B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 80 13 03 00 F4 03 04 00 A5 CD 1C 67 B6 04 01 00 00 59 73 D6 C6 CE 78 17 54 [17:08:14]CommunicateWithHost err = 0 [17:08:14]CheckOFDResponse [17:08:14]1017 (14) - 77093643461234 [17:08:14]1041 (16) - 0000000000871756 [17:08:14]1040 (4) - 201600 [17:08:14]1012 (4) - 26.10.2024 11:08 [17:08:14]1206 (1) - 0 [17:08:14]OFD Sender: Remove packet 201600 [17:08:14]ProducePacketName [17:08:14]name=ofd_packets/00201600 [17:08:14]NVStorageDeleteData [17:08:14]Write to MH i2c: 01 00 00 21 34 55 [17:08:14]Write i2c OK [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: 01 [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: 01 07 00 [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: 01 07 00 21 34 00 00 00 00 00 C0 0C 28 [17:08:14]RasterBufferAndPrint [17:08:14]line [17:08:14]line [17:08:14]line [17:08:14]line [17:08:14]line [17:08:14]written 0, free lines is 3268 [17:08:14]MH_Cut [17:08:14]Write to MH i2c: D1 01 00 28 34 01 2E [17:08:14]Write i2c OK [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: D1 [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: D1 01 00 [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: D1 01 00 28 34 00 2D [17:08:14]Write to MH i2c: 01 00 00 29 34 5D [17:08:14]Write i2c OK [17:08:14]MH_I2C_Read... [17:08:14]OFD Sender: No OFD packet to send [17:08:14]*** Cut start [17:08:15]*** Purtial cut [17:08:15]*** Stage 1: CUTSNS_PIN = 1 [17:08:15]Read from MH i2c: 01 [17:08:15]MH_I2C_Read... [17:08:15]*** Stop cut motor [17:08:15]*** Cut end [17:08:15]Read from MH i2c: 01 07 00 [17:08:15]MH_I2C_Read... [17:08:15]Read from MH i2c: 01 07 00 29 34 00 00 00 00 00 FF 0F 72 [17:08:15]process_action close_receipt done [17:08:15]requested_data is exist [17:08:15]produce_requested_data [17:08:15]requested_item fm.sn is exist - process it [17:08:15]wFMCommunicate request_size=4 [17:08:15]MH_SAM_APDU [17:08:15]CAPDU: 80 11 00 00 [17:08:15]Write to MH i2c: E2 08 00 2A 34 80 11 00 00 00 00 00 00 D8 [17:08:15]Write i2c OK [17:08:15]MH_I2C_Read... [17:08:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:15]Read from MH i2c: E2 [17:08:15]MH_I2C_Read... [17:08:15]Read from MH i2c: E2 17 00 [17:08:15]MH_I2C_Read... [17:08:15]Read from MH i2c: E2 17 00 2A 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2D [17:08:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:08:15]wFMCommunicate OK [17:08:15]requested_item fd.num is exist - process it [17:08:15]SAM_PROTO_GetFieldsCounters [17:08:15]wFMCommunicate request_size=4 [17:08:15]MH_SAM_APDU [17:08:15]CAPDU: 80 13 00 00 [17:08:15]Write to MH i2c: E2 08 00 2B 34 80 13 00 00 00 00 00 00 DB [17:08:15]Write i2c OK [17:08:15]MH_I2C_Read... [17:08:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:15]Read from MH i2c: E2 [17:08:15]MH_I2C_Read... [17:08:15]Read from MH i2c: E2 62 00 [17:08:15]MH_I2C_Read... [17:08:15]Read from MH i2c: E2 62 00 2B 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 80 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6A 01 00 00 5E 04 04 00 6A 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 FC [17:08:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 80 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6A 01 00 00 5E 04 04 00 6A 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:08:15]wFMCommunicate OK [17:08:15]SAM_PROTO_GetFieldsCounters done [17:08:15]requested_item shift.num is exist - process it [17:08:15]requested_item shift.opened is exist - process it [17:08:15]req_shift_opened [17:08:15]FM_GetShiftState [17:08:15]SAM_PROTO_GetShiftState [17:08:15]wFMCommunicate request_size=4 [17:08:15]MH_SAM_APDU [17:08:15]CAPDU: 80 13 01 00 [17:08:15]Write to MH i2c: E2 08 00 2C 34 80 13 01 00 00 00 00 00 DD [17:08:15]Write i2c OK [17:08:15]MH_I2C_Read... [17:08:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:15]Read from MH i2c: E2 [17:08:15]MH_I2C_Read... [17:08:15]Read from MH i2c: E2 0E 00 [17:08:15]MH_I2C_Read... [17:08:15]Read from MH i2c: E2 0E 00 2C 34 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 EC [17:08:15]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:08:15]wFMCommunicate OK [17:08:15]SAM_PROTO_GetShiftState done [17:08:15]FM_GetShiftState done [17:08:15]req_shift_opened done [17:08:15]requested_item shift.open_date is exist - process it [17:08:15]req_shift_open_date [17:08:15]req_shift_open_date done [17:08:15]produce_requested_data done [17:08:15]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201600,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [17:08:15]process_action_free close_receipt [17:08:15]json_value_free [17:08:15]json_value_free done [17:08:15]process_json_proto returns [17:08:15]Send response to host [17:08:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201600,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [17:08:15]free response buf [17:08:15]execute_script done [17:08:15]execute_script returns [17:08:15]free content buf [17:08:15]Sock 9.Close socket [17:08:15]Sock 9.Thread stoped [17:08:19]OFD Sender: No OFD packet to send [17:08:24]OFD Sender: No OFD packet to send [17:08:29]OFD Sender: No OFD packet to send [17:08:34]OFD Sender: No OFD packet to send [17:08:39]OFD Sender: No OFD packet to send [17:08:44]OFD Sender: No OFD packet to send [17:08:49]OFD Sender: No OFD packet to send [17:08:53]accept exits with 8 [17:08:53]New connection [17:08:53]New thread 3066834276 created [17:08:53]Thread 3066690916 joined [17:08:53]Waiting for new connection... [17:08:53] Sock 8.Parse request [17:08:53]Sock 8.Check first char [17:08:53]Sock 8.First char is OK [17:08:53]request: POST /json_proto HTTP/1.0 [17:08:53]Method: POST [17:08:53]URL: /json_proto [17:08:53]Method is POST - this is cgi request [17:08:53]url: /json_proto [17:08:53]query_string will be loaded in cgi processing [17:08:53]execute_cgi json_proto POST (null) [17:08:53]execute_cgi path=json_proto method=POST [17:08:53]POST find Content-Length [17:08:53]Host: 172.17.63.195:8080 [17:08:53]Content-Length: 677 [17:08:53]Content-Type: application/json [17:08:53] [17:08:53]POST finish read [17:08:53]Found Content-Length = 677 [17:08:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:53]execute_script... [17:08:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:53]POST & json_proto [17:08:53]process_json_proto [17:08:53]json parsed OK: [17:08:53]protocol is kg_v1.0 [17:08:53]action value=close_receipt [17:08:53]process_action close_receipt [17:08:53]cmd_close_receipt [17:08:53]MH_GetDate [17:08:53]Write to MH i2c: F0 00 00 2D 34 50 [17:08:53]Write i2c OK [17:08:53]MH_I2C_Read... [17:08:53]Read from MH i2c: F0 [17:08:53]MH_I2C_Read... [17:08:53]Read from MH i2c: F0 09 00 [17:08:53]MH_I2C_Read... [17:08:53]Read from MH i2c: F0 09 00 2D 34 00 27 22 1D 67 68 46 19 67 54 [17:08:53]GetLastDocTimeStamp 1729962493 [17:08:53]current date 1729962535 [17:08:53]FM_GetShiftState [17:08:53]SAM_PROTO_GetShiftState [17:08:53]wFMCommunicate request_size=4 [17:08:53]MH_SAM_APDU [17:08:53]CAPDU: 80 13 01 00 [17:08:53]Write to MH i2c: E2 08 00 2E 34 80 13 01 00 00 00 00 00 DF [17:08:53]Write i2c OK [17:08:53]MH_I2C_Read... [17:08:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:53]Read from MH i2c: E2 [17:08:53]MH_I2C_Read... [17:08:53]Read from MH i2c: E2 0E 00 [17:08:53]MH_I2C_Read... [17:08:53]Read from MH i2c: E2 0E 00 2E 34 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 EE [17:08:53]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:08:53]wFMCommunicate OK [17:08:53]SAM_PROTO_GetShiftState done [17:08:53]FM_GetShiftState done [17:08:53]opened in 1729900879 [17:08:53]opened+sec_in_day 1729987279 [17:08:53]quantity*price = 30038 [17:08:53]sum+1 = 30039 [17:08:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 363 26.10.2024 17:08 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201601 ФПД: 35992022578471 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T170855&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201601&fm=35992022578471&tin=02508201610067®Number=0000000000091777&sum=30000 [17:08:54]StoreToDocumentArchive [17:08:54]shift 543 fd 201601 [17:08:54]save to /storage/0543/doc_00201601 [17:08:54]save last doc name /storage/0543/doc_00201601 to /storage/kkm_last_doc_name [17:08:54]save OK [17:08:54]Clear old archive folders... [17:08:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:08:54]tlvbuf is 01F6D130 [17:08:54]SAM_PROTO_ClearQueue [17:08:54]wFMCommunicate request_size=4 [17:08:54]MH_SAM_APDU [17:08:54]CAPDU: 80 09 00 00 [17:08:54]Write to MH i2c: E2 08 00 3B 34 80 09 00 00 00 00 00 00 E1 [17:08:54]Write i2c OK [17:08:54]MH_I2C_Read... [17:08:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:54]Read from MH i2c: E2 [17:08:54]MH_I2C_Read... [17:08:54]Read from MH i2c: E2 03 00 [17:08:54]MH_I2C_Read... [17:08:54]Read from MH i2c: E2 03 00 3B 34 00 90 00 E3 [17:08:54]RAPDU: 90 00 [17:08:54]wFMCommunicate OK [17:08:54]SAM_PROTO_ClearQueue done [17:08:54]KKMCreateOFDPacket [17:08:54]OFDProtocolAddRootSTLVToBuf [17:08:54]FM_MakeSignedData [17:08:54]FM_MakeSignedData [17:08:54]SAM_PROTO_SignData [17:08:54]wFMCommunicate request_size=4 [17:08:54]MH_SAM_APDU [17:08:54]CAPDU: 80 0D 01 02 [17:08:54]Write to MH i2c: E2 08 00 3C 34 80 0D 01 02 00 00 00 00 E9 [17:08:54]Write i2c OK [17:08:54]MH_I2C_Read... [17:08:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:55]Read from MH i2c: E2 [17:08:55]MH_I2C_Read... [17:08:55]Read from MH i2c: E2 03 00 [17:08:55]MH_I2C_Read... [17:08:55]Read from MH i2c: E2 03 00 3C 34 00 90 00 E4 [17:08:55]RAPDU: 90 00 [17:08:55]wFMCommunicate OK [17:08:55]wFMCommunicate request_size=255 [17:08:55]MH_SAM_APDU [17:08:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 27 22 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 81 13 03 00 35 04 06 00 20 [17:08:55]Write to MH i2c: E2 02 01 3D 34 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 27 22 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 81 13 03 00 35 04 06 00 20 00 00 82 [17:08:55]Write i2c OK [17:08:55]MH_I2C_Read... [17:08:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:55]Read from MH i2c: E2 [17:08:55]MH_I2C_Read... [17:08:55]Read from MH i2c: E2 03 00 [17:08:55]MH_I2C_Read... [17:08:55]Read from MH i2c: E2 03 00 3D 34 00 90 00 E5 [17:08:55]RAPDU: 90 00 [17:08:55]wFMCommunicate OK [17:08:55]wFMCommunicate request_size=10 [17:08:55]MH_SAM_APDU [17:08:55]CAPDU: 80 0D 02 02 05 BC 0B B8 75 27 [17:08:55]Write to MH i2c: E2 0D 00 3E 34 80 0D 02 02 05 00 BC 0B B8 75 27 00 00 11 [17:08:55]Write i2c OK [17:08:55]MH_I2C_Read... [17:08:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:55]Read from MH i2c: E2 [17:08:55]MH_I2C_Read... [17:08:55]Read from MH i2c: E2 03 00 [17:08:55]MH_I2C_Read... [17:08:55]Read from MH i2c: E2 03 00 3E 34 00 90 00 E6 [17:08:55]RAPDU: 90 00 [17:08:55]wFMCommunicate OK [17:08:55]wFMCommunicate request_size=4 [17:08:55]MH_SAM_APDU [17:08:55]CAPDU: 80 0D 03 02 [17:08:55]Write to MH i2c: E2 08 00 3F 34 80 0D 03 02 00 00 00 00 EE [17:08:55]Write i2c OK [17:08:55]MH_I2C_Read... [17:08:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:55]Read from MH i2c: E2 [17:08:55]MH_I2C_Read... [17:08:55]Read from MH i2c: E2 0B 00 [17:08:55]MH_I2C_Read... [17:08:55]Read from MH i2c: E2 0B 00 3F 34 00 25 07 AF 9C 82 48 06 5D 90 00 93 [17:08:55]RAPDU: 25 07 AF 9C 82 48 06 5D 90 00 [17:08:55]wFMCommunicate OK [17:08:55]SAM_PROTO_SignData done [17:08:55]FM_MakeSignedData done [17:08:55]CreateOFDProtocolMessage [17:08:55]wFMCommunicate request_size=4 [17:08:55]MH_SAM_APDU [17:08:55]CAPDU: 80 11 00 00 [17:08:55]Write to MH i2c: E2 08 00 40 34 80 11 00 00 00 00 00 00 EE [17:08:55]Write i2c OK [17:08:55]MH_I2C_Read... [17:08:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:55]Read from MH i2c: E2 [17:08:55]MH_I2C_Read... [17:08:55]Read from MH i2c: E2 17 00 [17:08:55]MH_I2C_Read... [17:08:55]Read from MH i2c: E2 17 00 40 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 43 [17:08:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:08:55]wFMCommunicate OK [17:08:55]CreateOFDProtocolMessage done [17:08:55]OFDSenderStorePacket 201601 [17:08:55]StoreOFDPacket docnum=201601 [17:08:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 CB A8 07 01 11 CE 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 27 22 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 81 13 03 00 35 04 06 00 20 BC 0B B8 75 27 25 07 AF 9C 82 48 06 5D [17:08:55]CheckFolder [17:08:55]dirname=/storage/ofd_packets [17:08:55]CheckFolder done [17:08:55]ProducePacketName [17:08:55]name=ofd_packets/00201601 [17:08:55]NVStorageSaveData ofd_packets/00201601 [17:08:55]File name is /storage/ofd_packets/00201601 [17:08:55]Write 301 bytes [17:08:55]NVStorageSaveData done [17:08:55]OFDSenderStorePacket done [17:08:55]KKMCreateOFDPacket done [17:08:55]NVStorageSaveData kkm_last_timestamp [17:08:55]File name is /storage/kkm_last_timestamp [17:08:55]Write 4 bytes [17:08:55]NVStorageSaveData done [17:08:55]ExternCall_PrintAddStr [17:08:55]wPrintStart [17:08:55]Write to MH i2c: 01 00 00 41 34 75 [17:08:55]Write i2c OK [17:08:55]MH_I2C_Read... [17:08:55]Read from MH i2c: 01 [17:08:55]MH_I2C_Read... [17:08:55]Read from MH i2c: 01 07 00 [17:08:55]MH_I2C_Read... [17:08:55]Read from MH i2c: 01 07 00 41 34 00 00 00 00 00 FF 0F 8A [17:08:55]RasterBufferAndPrint [17:08:55]line Счет N : (1)449357 [17:08:55]line ИНН: 02508201610067 [17:08:55]line Контрольно-Кассовый Чек [17:08:55]line ПРОДАЖА [17:08:55]line ТРК (МРК, ГНК) : 41 [17:08:55]line Товар: 2710124130 [17:08:55]line Аи-92-К-2 [17:08:55]line 4.490 * 66.90 [17:08:55]line = 300.38 [17:08:55]line НДС 12% НСП 1% [17:08:55]line > о реализуемом товаре [17:08:55]line ОКРУГЛЕНИЕ: -0.38 [17:08:55]line ИТОГО: 300.00 [17:08:55]line Внесено: 300.00 [17:08:55]line СДАЧА: 0.00 [17:08:55]line НСП 1% : 2.66 [17:08:55]line НДС 12% : 31.90 [17:08:55]line Наличными: 300.00 [17:08:55]line Безнал.: 0.00 [17:08:55]line Место: АЗС № 171 "Партнер Нефть" [17:08:55]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:08:55]line СНО: Общий режим [17:08:55]line Чек 363 26.10.2024 17:08 [17:08:55]line Смена: 543 ФФД: 1.0 [17:08:55]line ЗНМ: 0300000109 [17:08:55]line РНМ: 0000000000091777 [17:08:55]line Версия ККМ: 001 [17:08:55]line ФМ: 0000000000871756 [17:08:55]line ФД: 201601 [17:08:55]line ФПД: 35992022578471 [17:08:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T170855&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201601&fm=35992022578471&tin=02508201610067®Number=0000000000091777&sum=30000 [17:08:55]OFD Sender: Processing packet 201601 [packets to send 112, broken 111] [17:08:55]ProducePacketName [17:08:55]name=ofd_packets/00201601 [17:08:55]OFD Sender: To server: pG, [17:08:55]CommunicateWithHost lk.salyk.kg:30040 [17:08:55]ConnectInit lk.salyk.kg [17:08:55]written 0, free lines is 4095 [17:08:55]Connected sock=11 [17:08:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 CB A8 07 01 11 CE 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 27 22 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 81 13 03 00 35 04 06 00 20 BC 0B B8 75 27 25 07 AF 9C 82 48 06 5D [17:08:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 89 25 47 00 F1 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 81 13 03 00 F4 03 04 00 D0 CD 1C 67 B6 04 01 00 00 EC 5B 83 EE 27 E6 C1 AE [17:08:56]CommunicateWithHost err = 0 [17:08:56]CheckOFDResponse [17:08:56]1017 (14) - 77093643461234 [17:08:56]1041 (16) - 0000000000871756 [17:08:56]1040 (4) - 201601 [17:08:56]1012 (4) - 26.10.2024 11:09 [17:08:56]1206 (1) - 0 [17:08:56]OFD Sender: Remove packet 201601 [17:08:56]ProducePacketName [17:08:56]name=ofd_packets/00201601 [17:08:56]NVStorageDeleteData [17:08:56]Write to MH i2c: 01 00 00 6C 34 A0 [17:08:56]Write i2c OK [17:08:56]MH_I2C_Read... [17:08:56]Read from MH i2c: 01 [17:08:56]MH_I2C_Read... [17:08:56]Read from MH i2c: 01 07 00 [17:08:56]MH_I2C_Read... [17:08:56]Read from MH i2c: 01 07 00 6C 34 00 00 00 00 00 A0 0C 53 [17:08:56]RasterBufferAndPrint [17:08:56]line [17:08:56]line [17:08:56]line [17:08:56]line [17:08:56]line [17:08:56]written 0, free lines is 3235 [17:08:56]MH_Cut [17:08:56]Write to MH i2c: D1 01 00 73 34 01 79 [17:08:56]Write i2c OK [17:08:56]MH_I2C_Read... [17:08:56]Read from MH i2c: D1 [17:08:56]MH_I2C_Read... [17:08:56]Read from MH i2c: D1 01 00 [17:08:56]MH_I2C_Read... [17:08:56]Read from MH i2c: D1 01 00 73 34 00 78 [17:08:56]Write to MH i2c: 01 00 00 74 34 A8 [17:08:56]Write i2c OK [17:08:56]MH_I2C_Read... [17:08:56]OFD Sender: No OFD packet to send [17:08:57]*** Cut start [17:08:57]*** Purtial cut [17:08:57]*** Stage 1: CUTSNS_PIN = 1 [17:08:57]Read from MH i2c: 01 [17:08:57]MH_I2C_Read... [17:08:57]*** Stop cut motor [17:08:57]*** Cut end [17:08:57]Read from MH i2c: 01 07 00 [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: 01 07 00 74 34 00 00 00 00 00 FF 0F BD [17:08:57]process_action close_receipt done [17:08:57]requested_data is exist [17:08:57]produce_requested_data [17:08:57]requested_item fm.sn is exist - process it [17:08:57]wFMCommunicate request_size=4 [17:08:57]MH_SAM_APDU [17:08:57]CAPDU: 80 11 00 00 [17:08:57]Write to MH i2c: E2 08 00 75 34 80 11 00 00 00 00 00 00 23 [17:08:57]Write i2c OK [17:08:57]MH_I2C_Read... [17:08:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:57]Read from MH i2c: E2 [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: E2 17 00 [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: E2 17 00 75 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 78 [17:08:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:08:57]wFMCommunicate OK [17:08:57]requested_item fd.num is exist - process it [17:08:57]SAM_PROTO_GetFieldsCounters [17:08:57]wFMCommunicate request_size=4 [17:08:57]MH_SAM_APDU [17:08:57]CAPDU: 80 13 00 00 [17:08:57]Write to MH i2c: E2 08 00 76 34 80 13 00 00 00 00 00 00 26 [17:08:57]Write i2c OK [17:08:57]MH_I2C_Read... [17:08:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:57]Read from MH i2c: E2 [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: E2 62 00 [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: E2 62 00 76 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 81 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6B 01 00 00 5E 04 04 00 6B 01 00 00 57 04 04 00 6C 01 00 00 19 04 04 00 00 00 00 00 90 00 4B [17:08:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 81 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6B 01 00 00 5E 04 04 00 6B 01 00 00 57 04 04 00 6C 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:08:57]wFMCommunicate OK [17:08:57]SAM_PROTO_GetFieldsCounters done [17:08:57]requested_item shift.num is exist - process it [17:08:57]requested_item shift.opened is exist - process it [17:08:57]req_shift_opened [17:08:57]FM_GetShiftState [17:08:57]SAM_PROTO_GetShiftState [17:08:57]wFMCommunicate request_size=4 [17:08:57]MH_SAM_APDU [17:08:57]CAPDU: 80 13 01 00 [17:08:57]Write to MH i2c: E2 08 00 77 34 80 13 01 00 00 00 00 00 28 [17:08:57]Write i2c OK [17:08:57]MH_I2C_Read... [17:08:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:57]Read from MH i2c: E2 [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: E2 0E 00 [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: E2 0E 00 77 34 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 37 [17:08:57]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:08:57]wFMCommunicate OK [17:08:57]SAM_PROTO_GetShiftState done [17:08:57]FM_GetShiftState done [17:08:57]req_shift_opened done [17:08:57]requested_item shift.open_date is exist - process it [17:08:57]req_shift_open_date [17:08:57]req_shift_open_date done [17:08:57]produce_requested_data done [17:08:57]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201601,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [17:08:57]process_action_free close_receipt [17:08:57]json_value_free [17:08:57]json_value_free done [17:08:57]process_json_proto returns [17:08:57]Send response to host [17:08:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201601,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [17:08:57]free response buf [17:08:57]execute_script done [17:08:57]execute_script returns [17:08:57]free content buf [17:08:57]Sock 8.Close socket [17:08:57]Sock 8.Thread stoped [17:08:57]accept exits with 9 [17:08:57]New connection [17:08:57]New thread 3066690916 created [17:08:57]Thread 3066834276 joined [17:08:57]Waiting for new connection... [17:08:57] Sock 9.Parse request [17:08:57]Sock 9.Check first char [17:08:57]Sock 9.First char is OK [17:08:57]request: POST /json_proto HTTP/1.0 [17:08:57]Method: POST [17:08:57]URL: /json_proto [17:08:57]Method is POST - this is cgi request [17:08:57]url: /json_proto [17:08:57]query_string will be loaded in cgi processing [17:08:57]execute_cgi json_proto POST (null) [17:08:57]execute_cgi path=json_proto method=POST [17:08:57]POST find Content-Length [17:08:57]Host: 172.17.63.195:8080 [17:08:57]Content-Length: 677 [17:08:57]Content-Type: application/json [17:08:57] [17:08:57]POST finish read [17:08:57]Found Content-Length = 677 [17:08:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:57]execute_script... [17:08: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)449358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:57]POST & json_proto [17:08:57]process_json_proto [17:08:57]json parsed OK: [17:08:57]protocol is kg_v1.0 [17:08:57]action value=close_receipt [17:08:57]process_action close_receipt [17:08:57]cmd_close_receipt [17:08:57]MH_GetDate [17:08:57]Write to MH i2c: F0 00 00 78 34 9B [17:08:57]Write i2c OK [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: F0 [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: F0 09 00 [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: F0 09 00 78 34 00 2B 22 1D 67 68 46 19 67 A3 [17:08:57]GetLastDocTimeStamp 1729962535 [17:08:57]current date 1729962539 [17:08:57]FM_GetShiftState [17:08:57]SAM_PROTO_GetShiftState [17:08:57]wFMCommunicate request_size=4 [17:08:57]MH_SAM_APDU [17:08:57]CAPDU: 80 13 01 00 [17:08:57]Write to MH i2c: E2 08 00 79 34 80 13 01 00 00 00 00 00 2A [17:08:57]Write i2c OK [17:08:57]MH_I2C_Read... [17:08:57]Read from MH i2c: E2 [17:08:58]MH_I2C_Read... [17:08:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:58]Read from MH i2c: E2 0E 00 [17:08:58]MH_I2C_Read... [17:08:58]Read from MH i2c: E2 0E 00 79 34 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 39 [17:08:58]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:08:58]wFMCommunicate OK [17:08:58]SAM_PROTO_GetShiftState done [17:08:58]FM_GetShiftState done [17:08:58]opened in 1729900879 [17:08:58]opened+sec_in_day 1729987279 [17:08:58]quantity*price = 30038 [17:08:58]sum+1 = 30039 [17:08:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 364 26.10.2024 17:08 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201602 ФПД: 155588791476027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T170859&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201602&fm=155588791476027&tin=02508201610067®Number=0000000000091777&sum=30000 [17:08:59]StoreToDocumentArchive [17:08:59]shift 543 fd 201602 [17:08:59]save to /storage/0543/doc_00201602 [17:08:59]save last doc name /storage/0543/doc_00201602 to /storage/kkm_last_doc_name [17:08:59]save OK [17:08:59]Clear old archive folders... [17:08:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:08:59]tlvbuf is 01F232A0 [17:08:59]SAM_PROTO_ClearQueue [17:08:59]wFMCommunicate request_size=4 [17:08:59]MH_SAM_APDU [17:08:59]CAPDU: 80 09 00 00 [17:08:59]Write to MH i2c: E2 08 00 86 34 80 09 00 00 00 00 00 00 2C [17:08:59]Write i2c OK [17:08:59]MH_I2C_Read... [17:08:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:59]Read from MH i2c: E2 [17:08:59]MH_I2C_Read... [17:08:59]Read from MH i2c: E2 03 00 [17:08:59]MH_I2C_Read... [17:08:59]Read from MH i2c: E2 03 00 86 34 00 90 00 2E [17:08:59]RAPDU: 90 00 [17:08:59]wFMCommunicate OK [17:08:59]SAM_PROTO_ClearQueue done [17:08:59]KKMCreateOFDPacket [17:08:59]OFDProtocolAddRootSTLVToBuf [17:08:59]FM_MakeSignedData [17:08:59]FM_MakeSignedData [17:08:59]SAM_PROTO_SignData [17:08:59]wFMCommunicate request_size=4 [17:08:59]MH_SAM_APDU [17:08:59]CAPDU: 80 0D 01 02 [17:08:59]Write to MH i2c: E2 08 00 87 34 80 0D 01 02 00 00 00 00 34 [17:08:59]Write i2c OK [17:08:59]MH_I2C_Read... [17:08:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:59]Read from MH i2c: E2 [17:08:59]MH_I2C_Read... [17:08:59]Read from MH i2c: E2 03 00 [17:08:59]MH_I2C_Read... [17:08:59]Read from MH i2c: E2 03 00 87 34 00 90 00 2F [17:08:59]RAPDU: 90 00 [17:08:59]wFMCommunicate OK [17:08:59]wFMCommunicate request_size=255 [17:08:59]MH_SAM_APDU [17:08: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 2B 22 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 82 13 03 00 35 04 06 00 8D [17:08:59]Write to MH i2c: E2 02 01 88 34 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 2B 22 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 82 13 03 00 35 04 06 00 8D 00 00 40 [17:08:59]Write i2c OK [17:08:59]MH_I2C_Read... [17:08:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:59]Read from MH i2c: E2 [17:08:59]MH_I2C_Read... [17:08:59]Read from MH i2c: E2 03 00 [17:08:59]MH_I2C_Read... [17:08:59]Read from MH i2c: E2 03 00 88 34 00 90 00 30 [17:08:59]RAPDU: 90 00 [17:08:59]wFMCommunicate OK [17:08:59]wFMCommunicate request_size=10 [17:08:59]MH_SAM_APDU [17:08:59]CAPDU: 80 0D 02 02 05 81 D6 A5 9F 3B [17:08:59]Write to MH i2c: E2 0D 00 89 34 80 0D 02 02 05 00 81 D6 A5 9F 3B 00 00 17 [17:08:59]Write i2c OK [17:08:59]MH_I2C_Read... [17:08:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:59]Read from MH i2c: E2 [17:08:59]MH_I2C_Read... [17:08:59]Read from MH i2c: E2 03 00 [17:08:59]MH_I2C_Read... [17:08:59]Read from MH i2c: E2 03 00 89 34 00 90 00 31 [17:08:59]RAPDU: 90 00 [17:08:59]wFMCommunicate OK [17:08:59]wFMCommunicate request_size=4 [17:08:59]MH_SAM_APDU [17:08:59]CAPDU: 80 0D 03 02 [17:08:59]Write to MH i2c: E2 08 00 8A 34 80 0D 03 02 00 00 00 00 39 [17:08:59]Write i2c OK [17:08:59]MH_I2C_Read... [17:08:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:59]Read from MH i2c: E2 [17:08:59]MH_I2C_Read... [17:08:59]Read from MH i2c: E2 0B 00 [17:08:59]MH_I2C_Read... [17:08:59]Read from MH i2c: E2 0B 00 8A 34 00 BA EA 6C B0 77 81 AD 9C 90 00 3B [17:08:59]RAPDU: BA EA 6C B0 77 81 AD 9C 90 00 [17:08:59]wFMCommunicate OK [17:08:59]SAM_PROTO_SignData done [17:08:59]FM_MakeSignedData done [17:08:59]CreateOFDProtocolMessage [17:08:59]wFMCommunicate request_size=4 [17:08:59]MH_SAM_APDU [17:08:59]CAPDU: 80 11 00 00 [17:08:59]Write to MH i2c: E2 08 00 8B 34 80 11 00 00 00 00 00 00 39 [17:08:59]Write i2c OK [17:08:59]MH_I2C_Read... [17:09:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:00]Read from MH i2c: E2 [17:09:00]MH_I2C_Read... [17:09:00]Read from MH i2c: E2 17 00 [17:09:00]MH_I2C_Read... [17:09:00]Read from MH i2c: E2 17 00 8B 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8E [17:09:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:09:00]wFMCommunicate OK [17:09:00]CreateOFDProtocolMessage done [17:09:00]OFDSenderStorePacket 201602 [17:09:00]StoreOFDPacket docnum=201602 [17:09:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D7 55 07 01 4E 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 2B 22 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 82 13 03 00 35 04 06 00 8D 81 D6 A5 9F 3B BA EA 6C B0 77 81 AD 9C [17:09:00]CheckFolder [17:09:00]dirname=/storage/ofd_packets [17:09:00]CheckFolder done [17:09:00]ProducePacketName [17:09:00]name=ofd_packets/00201602 [17:09:00]NVStorageSaveData ofd_packets/00201602 [17:09:00]File name is /storage/ofd_packets/00201602 [17:09:00]Write 301 bytes [17:09:00]NVStorageSaveData done [17:09:00]OFDSenderStorePacket done [17:09:00]KKMCreateOFDPacket done [17:09:00]NVStorageSaveData kkm_last_timestamp [17:09:00]File name is /storage/kkm_last_timestamp [17:09:00]Write 4 bytes [17:09:00]NVStorageSaveData done [17:09:00]ExternCall_PrintAddStr [17:09:00]wPrintStart [17:09:00]Write to MH i2c: 01 00 00 8C 34 C0 [17:09:00]Write i2c OK [17:09:00]MH_I2C_Read... [17:09:00]Read from MH i2c: 01 [17:09:00]MH_I2C_Read... [17:09:00]Read from MH i2c: 01 07 00 [17:09:00]MH_I2C_Read... [17:09:00]Read from MH i2c: 01 07 00 8C 34 00 00 00 00 00 FF 0F D5 [17:09:00]RasterBufferAndPrint [17:09:00]line Счет N : (1)449358 [17:09:00]line ИНН: 02508201610067 [17:09:00]line Контрольно-Кассовый Чек [17:09:00]line ПРОДАЖА [17:09:00]line ТРК (МРК, ГНК) : 62 [17:09:00]line Товар: 2710124130 [17:09:00]line Аи-92-К-2 [17:09:00]line 4.490 * 66.90 [17:09:00]line = 300.38 [17:09:00]line НДС 12% НСП 1% [17:09:00]line > о реализуемом товаре [17:09:00]line ОКРУГЛЕНИЕ: -0.38 [17:09:00]line ИТОГО: 300.00 [17:09:00]line Внесено: 300.00 [17:09:00]line СДАЧА: 0.00 [17:09:00]line НСП 1% : 2.66 [17:09:00]line НДС 12% : 31.90 [17:09:00]line Наличными: 300.00 [17:09:00]line Безнал.: 0.00 [17:09:00]line Место: АЗС № 171 "Партнер Нефть" [17:09:00]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:09:00]line СНО: Общий режим [17:09:00]line Чек 364 26.10.2024 17:08 [17:09:00]line Смена: 543 ФФД: 1.0 [17:09:00]line ЗНМ: 0300000109 [17:09:00]line РНМ: 0000000000091777 [17:09:00]line Версия ККМ: 001 [17:09:00]line ФМ: 0000000000871756 [17:09:00]line ФД: 201602 [17:09:00]line ФПД: 155588791476027 [17:09:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T170859&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201602&fm=155588791476027&tin=02508201610067®Number=0000000000091777&sum=30000 [17:09:00]OFD Sender: Processing packet 201602 [packets to send 112, broken 111] [17:09:00]ProducePacketName [17:09:00]name=ofd_packets/00201602 [17:09:00]OFD Sender: To server: pG, [17:09:00]CommunicateWithHost lk.salyk.kg:30040 [17:09:00]ConnectInit lk.salyk.kg [17:09:00]written 0, free lines is 4095 [17:09:00]Connected sock=10 [17:09:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D7 55 07 01 4E 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 2B 22 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 82 13 03 00 35 04 06 00 8D 81 D6 A5 9F 3B BA EA 6C B0 77 81 AD 9C [17:09:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 2A BA 47 00 5B EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 82 13 03 00 F4 03 04 00 D4 CD 1C 67 B6 04 01 00 00 86 DB A1 99 04 9B E3 FD [17:09:00]CommunicateWithHost err = 0 [17:09:00]CheckOFDResponse [17:09:00]1017 (14) - 77093643461234 [17:09:00]1041 (16) - 0000000000871756 [17:09:00]1040 (4) - 201602 [17:09:00]1012 (4) - 26.10.2024 11:09 [17:09:00]1206 (1) - 0 [17:09:00]OFD Sender: Remove packet 201602 [17:09:00]ProducePacketName [17:09:00]name=ofd_packets/00201602 [17:09:00]NVStorageDeleteData [17:09:00]Write to MH i2c: 01 00 00 B7 34 EB [17:09:00]Write i2c OK [17:09:00]MH_I2C_Read... [17:09:00]Read from MH i2c: 01 [17:09:00]MH_I2C_Read... [17:09:00]Read from MH i2c: 01 07 00 [17:09:00]MH_I2C_Read... [17:09:00]Read from MH i2c: 01 07 00 B7 34 00 00 00 00 00 AA 0C A8 [17:09:00]RasterBufferAndPrint [17:09:00]line [17:09:00]line [17:09:00]line [17:09:00]line [17:09:00]line [17:09:00]written 0, free lines is 3257 [17:09:00]MH_Cut [17:09:00]Write to MH i2c: D1 01 00 BE 34 01 C4 [17:09:00]Write i2c OK [17:09:00]MH_I2C_Read... [17:09:00]Read from MH i2c: D1 [17:09:00]MH_I2C_Read... [17:09:00]Read from MH i2c: D1 01 00 [17:09:00]MH_I2C_Read... [17:09:00]Read from MH i2c: D1 01 00 BE 34 00 C3 [17:09:00]Write to MH i2c: 01 00 00 BF 34 F3 [17:09:00]Write i2c OK [17:09:00]MH_I2C_Read... [17:09:01]OFD Sender: No OFD packet to send [17:09:01]*** Cut start [17:09:01]*** Purtial cut [17:09:01]*** Stage 1: CUTSNS_PIN = 1 [17:09:01]Read from MH i2c: 01 [17:09:01]MH_I2C_Read... [17:09:01]*** Stop cut motor [17:09:01]*** Cut end [17:09:01]Read from MH i2c: 01 07 00 [17:09:01]MH_I2C_Read... [17:09:01]Read from MH i2c: 01 07 00 BF 34 00 00 00 00 00 FF 0F 08 [17:09:01]process_action close_receipt done [17:09:01]requested_data is exist [17:09:01]produce_requested_data [17:09:01]requested_item fm.sn is exist - process it [17:09:01]wFMCommunicate request_size=4 [17:09:01]MH_SAM_APDU [17:09:01]CAPDU: 80 11 00 00 [17:09:01]Write to MH i2c: E2 08 00 C0 34 80 11 00 00 00 00 00 00 6E [17:09:01]Write i2c OK [17:09:01]MH_I2C_Read... [17:09:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:02]Read from MH i2c: E2 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 17 00 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 17 00 C0 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C3 [17:09:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:09:02]wFMCommunicate OK [17:09:02]requested_item fd.num is exist - process it [17:09:02]SAM_PROTO_GetFieldsCounters [17:09:02]wFMCommunicate request_size=4 [17:09:02]MH_SAM_APDU [17:09:02]CAPDU: 80 13 00 00 [17:09:02]Write to MH i2c: E2 08 00 C1 34 80 13 00 00 00 00 00 00 71 [17:09:02]Write i2c OK [17:09:02]MH_I2C_Read... [17:09:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:02]Read from MH i2c: E2 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 62 00 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 62 00 C1 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 82 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 9A [17:09:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 82 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:09:02]wFMCommunicate OK [17:09:02]SAM_PROTO_GetFieldsCounters done [17:09:02]requested_item shift.num is exist - process it [17:09:02]requested_item shift.opened is exist - process it [17:09:02]req_shift_opened [17:09:02]FM_GetShiftState [17:09:02]SAM_PROTO_GetShiftState [17:09:02]wFMCommunicate request_size=4 [17:09:02]MH_SAM_APDU [17:09:02]CAPDU: 80 13 01 00 [17:09:02]Write to MH i2c: E2 08 00 C2 34 80 13 01 00 00 00 00 00 73 [17:09:02]Write i2c OK [17:09:02]MH_I2C_Read... [17:09:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:02]Read from MH i2c: E2 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 0E 00 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 0E 00 C2 34 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 82 [17:09:02]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:09:02]wFMCommunicate OK [17:09:02]SAM_PROTO_GetShiftState done [17:09:02]FM_GetShiftState done [17:09:02]req_shift_opened done [17:09:02]requested_item shift.open_date is exist - process it [17:09:02]req_shift_open_date [17:09:02]req_shift_open_date done [17:09:02]produce_requested_data done [17:09:02]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201602,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [17:09:02]process_action_free close_receipt [17:09:02]json_value_free [17:09:02]json_value_free done [17:09:02]process_json_proto returns [17:09:02]Send response to host [17:09:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201602,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [17:09:02]free response buf [17:09:02]execute_script done [17:09:02]execute_script returns [17:09:02]free content buf [17:09:02]Sock 9.Close socket [17:09:02]Sock 9.Thread stoped [17:09:06]OFD Sender: No OFD packet to send [17:09:11]OFD Sender: No OFD packet to send [17:09:16]OFD Sender: No OFD packet to send [17:09:21]OFD Sender: No OFD packet to send [17:09:26]OFD Sender: No OFD packet to send [17:09:31]OFD Sender: No OFD packet to send [17:09:36]OFD Sender: No OFD packet to send [17:09:41]OFD Sender: No OFD packet to send [17:09:46]OFD Sender: No OFD packet to send [17:09:51]OFD Sender: No OFD packet to send [17:09:56]OFD Sender: No OFD packet to send [17:10:01]OFD Sender: No OFD packet to send [17:10:06]OFD Sender: No OFD packet to send [17:10:11]OFD Sender: No OFD packet to send [17:10:16]OFD Sender: No OFD packet to send [17:10:21]OFD Sender: No OFD packet to send [17:10:26]OFD Sender: No OFD packet to send [17:10:31]OFD Sender: No OFD packet to send [17:10:36]OFD Sender: No OFD packet to send [17:10:41]OFD Sender: No OFD packet to send [17:10:46]OFD Sender: No OFD packet to send [17:10:51]OFD Sender: No OFD packet to send [17:10:56]OFD Sender: No OFD packet to send [17:11:01]OFD Sender: No OFD packet to send [17:11:06]OFD Sender: No OFD packet to send [17:11:07]accept exits with 8 [17:11:07]New connection [17:11:07]New thread 3066834276 created [17:11:07]Thread 3066690916 joined [17:11:07]Waiting for new connection... [17:11:07] Sock 8.Parse request [17:11:07]Sock 8.Check first char [17:11:07]Sock 8.First char is OK [17:11:07]request: POST /json_proto HTTP/1.0 [17:11:07]Method: POST [17:11:07]URL: /json_proto [17:11:07]Method is POST - this is cgi request [17:11:07]url: /json_proto [17:11:07]query_string will be loaded in cgi processing [17:11:07]execute_cgi json_proto POST (null) [17:11:07]execute_cgi path=json_proto method=POST [17:11:07]POST find Content-Length [17:11:07]Host: 172.17.63.195:8080 [17:11:07]Content-Length: 677 [17:11:07]Content-Type: application/json [17:11:07] [17:11:07]POST finish read [17:11:07]Found Content-Length = 677 [17:11:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [17:11:07]execute_script... [17:11:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [17:11:07]POST & json_proto [17:11:07]process_json_proto [17:11:07]json parsed OK: [17:11:07]protocol is kg_v1.0 [17:11:07]action value=close_receipt [17:11:07]process_action close_receipt [17:11:07]cmd_close_receipt [17:11:07]MH_GetDate [17:11:07]Write to MH i2c: F0 00 00 C3 34 E6 [17:11:07]Write i2c OK [17:11:07]MH_I2C_Read... [17:11:07]Read from MH i2c: F0 [17:11:07]MH_I2C_Read... [17:11:07]Read from MH i2c: F0 09 00 [17:11:07]MH_I2C_Read... [17:11:07]Read from MH i2c: F0 09 00 C3 34 00 AD 22 1D 67 68 46 19 67 70 [17:11:07]GetLastDocTimeStamp 1729962539 [17:11:07]current date 1729962669 [17:11:07]FM_GetShiftState [17:11:07]SAM_PROTO_GetShiftState [17:11:07]wFMCommunicate request_size=4 [17:11:07]MH_SAM_APDU [17:11:07]CAPDU: 80 13 01 00 [17:11:07]Write to MH i2c: E2 08 00 C4 34 80 13 01 00 00 00 00 00 75 [17:11:07]Write i2c OK [17:11:07]MH_I2C_Read... [17:11:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:07]Read from MH i2c: E2 [17:11:07]MH_I2C_Read... [17:11:07]Read from MH i2c: E2 0E 00 [17:11:07]MH_I2C_Read... [17:11:07]Read from MH i2c: E2 0E 00 C4 34 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 84 [17:11:07]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:11:07]wFMCommunicate OK [17:11:07]SAM_PROTO_GetShiftState done [17:11:07]FM_GetShiftState done [17:11:07]opened in 1729900879 [17:11:07]opened+sec_in_day 1729987279 [17:11:07]quantity*price = 50041 [17:11:07]sum+1 = 50042 [17:11:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 365 26.10.2024 17:11 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201603 ФПД: 36185812866453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T171109&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201603&fm=36185812866453&tin=02508201610067®Number=0000000000091777&sum=50000 [17:11:09]StoreToDocumentArchive [17:11:09]shift 543 fd 201603 [17:11:09]save to /storage/0543/doc_00201603 [17:11:09]save last doc name /storage/0543/doc_00201603 to /storage/kkm_last_doc_name [17:11:09]save OK [17:11:09]Clear old archive folders... [17:11:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:11:09]tlvbuf is 01F42D90 [17:11:09]SAM_PROTO_ClearQueue [17:11:09]wFMCommunicate request_size=4 [17:11:09]MH_SAM_APDU [17:11:09]CAPDU: 80 09 00 00 [17:11:09]Write to MH i2c: E2 08 00 D1 34 80 09 00 00 00 00 00 00 77 [17:11:09]Write i2c OK [17:11:09]MH_I2C_Read... [17:11:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:11:09]Read from MH i2c: E2 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: E2 03 00 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: E2 03 00 D1 34 00 90 00 79 [17:11:09]RAPDU: 90 00 [17:11:09]wFMCommunicate OK [17:11:09]SAM_PROTO_ClearQueue done [17:11:09]KKMCreateOFDPacket [17:11:09]OFDProtocolAddRootSTLVToBuf [17:11:09]FM_MakeSignedData [17:11:09]FM_MakeSignedData [17:11:09]SAM_PROTO_SignData [17:11:09]wFMCommunicate request_size=4 [17:11:09]MH_SAM_APDU [17:11:09]CAPDU: 80 0D 01 02 [17:11:09]Write to MH i2c: E2 08 00 D2 34 80 0D 01 02 00 00 00 00 7F [17:11:09]Write i2c OK [17:11:09]MH_I2C_Read... [17:11:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:11:09]Read from MH i2c: E2 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: E2 03 00 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: E2 03 00 D2 34 00 90 00 7A [17:11:09]RAPDU: 90 00 [17:11:09]wFMCommunicate OK [17:11:09]wFMCommunicate request_size=255 [17:11:09]MH_SAM_APDU [17:11:09]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 32 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 6D 01 00 00 F4 03 04 00 AD 22 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 83 13 03 00 35 04 06 00 20 [17:11:09]Write to MH i2c: E2 02 01 D3 34 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 32 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 6D 01 00 00 F4 03 04 00 AD 22 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 83 13 03 00 35 04 06 00 20 00 00 AE [17:11:09]Write i2c OK [17:11:09]MH_I2C_Read... [17:11:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:09]Read from MH i2c: E2 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: E2 03 00 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: E2 03 00 D3 34 00 90 00 7B [17:11:09]RAPDU: 90 00 [17:11:09]wFMCommunicate OK [17:11:09]wFMCommunicate request_size=10 [17:11:09]MH_SAM_APDU [17:11:09]CAPDU: 80 0D 02 02 05 E9 2A 85 95 95 [17:11:09]Write to MH i2c: E2 0D 00 D4 34 80 0D 02 02 05 00 E9 2A 85 95 95 00 00 4E [17:11:09]Write i2c OK [17:11:09]MH_I2C_Read... [17:11:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:09]Read from MH i2c: E2 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: E2 03 00 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: E2 03 00 D4 34 00 90 00 7C [17:11:09]RAPDU: 90 00 [17:11:09]wFMCommunicate OK [17:11:09]wFMCommunicate request_size=4 [17:11:09]MH_SAM_APDU [17:11:09]CAPDU: 80 0D 03 02 [17:11:09]Write to MH i2c: E2 08 00 D5 34 80 0D 03 02 00 00 00 00 84 [17:11:09]Write i2c OK [17:11:09]MH_I2C_Read... [17:11:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:11:09]Read from MH i2c: E2 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: E2 0B 00 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: E2 0B 00 D5 34 00 E2 3E C7 36 10 85 66 EE 90 00 8B [17:11:09]RAPDU: E2 3E C7 36 10 85 66 EE 90 00 [17:11:09]wFMCommunicate OK [17:11:09]SAM_PROTO_SignData done [17:11:09]FM_MakeSignedData done [17:11:09]CreateOFDProtocolMessage [17:11:09]wFMCommunicate request_size=4 [17:11:09]MH_SAM_APDU [17:11:09]CAPDU: 80 11 00 00 [17:11:09]Write to MH i2c: E2 08 00 D6 34 80 11 00 00 00 00 00 00 84 [17:11:09]Write i2c OK [17:11:09]MH_I2C_Read... [17:11:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:09]Read from MH i2c: E2 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: E2 17 00 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: E2 17 00 D6 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D9 [17:11:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:11:09]wFMCommunicate OK [17:11:09]CreateOFDProtocolMessage done [17:11:09]OFDSenderStorePacket 201603 [17:11:09]StoreOFDPacket docnum=201603 [17:11:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 2E 4E 07 01 91 68 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 32 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 6D 01 00 00 F4 03 04 00 AD 22 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 83 13 03 00 35 04 06 00 20 E9 2A 85 95 95 E2 3E C7 36 10 85 66 EE [17:11:09]CheckFolder [17:11:09]dirname=/storage/ofd_packets [17:11:09]CheckFolder done [17:11:09]ProducePacketName [17:11:09]name=ofd_packets/00201603 [17:11:09]NVStorageSaveData ofd_packets/00201603 [17:11:09]File name is /storage/ofd_packets/00201603 [17:11:09]Write 301 bytes [17:11:09]NVStorageSaveData done [17:11:09]OFDSenderStorePacket done [17:11:09]KKMCreateOFDPacket done [17:11:09]NVStorageSaveData kkm_last_timestamp [17:11:09]File name is /storage/kkm_last_timestamp [17:11:09]Write 4 bytes [17:11:09]NVStorageSaveData done [17:11:09]ExternCall_PrintAddStr [17:11:09]wPrintStart [17:11:09]Write to MH i2c: 01 00 00 D7 34 0B [17:11:09]Write i2c OK [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: 01 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: 01 07 00 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: 01 07 00 D7 34 00 00 00 00 00 FF 0F 20 [17:11:09]RasterBufferAndPrint [17:11:09]line Счет N : (1)449359 [17:11:09]line ИНН: 02508201610067 [17:11:09]line Контрольно-Кассовый Чек [17:11:09]line ПРОДАЖА [17:11:09]line ТРК (МРК, ГНК) : 62 [17:11:09]line Товар: 2710124130 [17:11:09]line Аи-92-К-2 [17:11:09]line 7.480 * 66.90 [17:11:09]line = 500.41 [17:11:09]line НДС 12% НСП 1% [17:11:09]line > о реализуемом товаре [17:11:09]line ОКРУГЛЕНИЕ: -0.41 [17:11:09]line ИТОГО: 500.00 [17:11:09]line Внесено: 500.00 [17:11:09]line СДАЧА: 0.00 [17:11:09]line НСП 1% : 4.43 [17:11:09]line НДС 12% : 53.14 [17:11:09]line Наличными: 500.00 [17:11:09]line Безнал.: 0.00 [17:11:09]line Место: АЗС № 171 "Партнер Нефть" [17:11:09]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:11:09]line СНО: Общий режим [17:11:09]line Чек 365 26.10.2024 17:11 [17:11:09]line Смена: 543 ФФД: 1.0 [17:11:09]line ЗНМ: 0300000109 [17:11:09]line РНМ: 0000000000091777 [17:11:09]line Версия ККМ: 001 [17:11:09]line ФМ: 0000000000871756 [17:11:09]line ФД: 201603 [17:11:09]line ФПД: 36185812866453 [17:11:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T171109&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201603&fm=36185812866453&tin=02508201610067®Number=0000000000091777&sum=50000 [17:11:09]OFD Sender: Processing packet 201603 [packets to send 112, broken 111] [17:11:09]ProducePacketName [17:11:09]name=ofd_packets/00201603 [17:11:09]OFD Sender: To server: pG, [17:11:09]CommunicateWithHost lk.salyk.kg:30040 [17:11:09]ConnectInit lk.salyk.kg [17:11:09]written 0, free lines is 4095 [17:11:10]Connected sock=10 [17:11:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 2E 4E 07 01 91 68 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 32 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 6D 01 00 00 F4 03 04 00 AD 22 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 83 13 03 00 35 04 06 00 20 E9 2A 85 95 95 E2 3E C7 36 10 85 66 EE [17:11:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 24 8E 47 00 68 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 83 13 03 00 F4 03 04 00 56 CE 1C 67 B6 04 01 00 00 FB 37 C2 49 47 8E BE B5 [17:11:10]CommunicateWithHost err = 0 [17:11:10]CheckOFDResponse [17:11:10]1017 (14) - 77093643461234 [17:11:10]1041 (16) - 0000000000871756 [17:11:10]1040 (4) - 201603 [17:11:10]1012 (4) - 26.10.2024 11:11 [17:11:10]1206 (1) - 0 [17:11:10]OFD Sender: Remove packet 201603 [17:11:10]ProducePacketName [17:11:10]name=ofd_packets/00201603 [17:11:10]NVStorageDeleteData [17:11:10]Write to MH i2c: 01 00 00 02 35 37 [17:11:10]Write i2c OK [17:11:10]MH_I2C_Read... [17:11:10]Read from MH i2c: 01 [17:11:10]MH_I2C_Read... [17:11:10]Read from MH i2c: 01 07 00 [17:11:10]MH_I2C_Read... [17:11:10]Read from MH i2c: 01 07 00 02 35 00 00 00 00 00 91 0C DB [17:11:10]RasterBufferAndPrint [17:11:10]line [17:11:10]line [17:11:10]line [17:11:10]line [17:11:10]line [17:11:10]written 0, free lines is 3222 [17:11:10]MH_Cut [17:11:10]Write to MH i2c: D1 01 00 09 35 01 10 [17:11:10]Write i2c OK [17:11:10]MH_I2C_Read... [17:11:10]Read from MH i2c: D1 [17:11:10]MH_I2C_Read... [17:11:10]Read from MH i2c: D1 01 00 [17:11:10]MH_I2C_Read... [17:11:10]Read from MH i2c: D1 01 00 09 35 00 0F [17:11:10]Write to MH i2c: 01 00 00 0A 35 3F [17:11:10]Write i2c OK [17:11:10]MH_I2C_Read... [17:11:10]OFD Sender: No OFD packet to send [17:11:11]*** Cut start [17:11:11]*** Purtial cut [17:11:11]*** Stage 1: CUTSNS_PIN = 1 [17:11:11]Read from MH i2c: 01 [17:11:11]MH_I2C_Read... [17:11:11]*** Stop cut motor [17:11:11]*** Cut end [17:11:11]Read from MH i2c: 01 07 00 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: 01 07 00 0A 35 00 00 00 00 00 FF 0F 54 [17:11:11]process_action close_receipt done [17:11:11]requested_data is exist [17:11:11]produce_requested_data [17:11:11]requested_item fm.sn is exist - process it [17:11:11]wFMCommunicate request_size=4 [17:11:11]MH_SAM_APDU [17:11:11]CAPDU: 80 11 00 00 [17:11:11]Write to MH i2c: E2 08 00 0B 35 80 11 00 00 00 00 00 00 BA [17:11:11]Write i2c OK [17:11:11]MH_I2C_Read... [17:11:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:11]Read from MH i2c: E2 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 17 00 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 17 00 0B 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0F [17:11:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:11:11]wFMCommunicate OK [17:11:11]requested_item fd.num is exist - process it [17:11:11]SAM_PROTO_GetFieldsCounters [17:11:11]wFMCommunicate request_size=4 [17:11:11]MH_SAM_APDU [17:11:11]CAPDU: 80 13 00 00 [17:11:11]Write to MH i2c: E2 08 00 0C 35 80 13 00 00 00 00 00 00 BD [17:11:11]Write i2c OK [17:11:11]MH_I2C_Read... [17:11:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:11]Read from MH i2c: E2 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 62 00 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 62 00 0C 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 83 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6D 01 00 00 5E 04 04 00 6D 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 EA [17:11:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 83 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6D 01 00 00 5E 04 04 00 6D 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:11:11]wFMCommunicate OK [17:11:11]SAM_PROTO_GetFieldsCounters done [17:11:11]requested_item shift.num is exist - process it [17:11:11]requested_item shift.opened is exist - process it [17:11:11]req_shift_opened [17:11:11]FM_GetShiftState [17:11:11]SAM_PROTO_GetShiftState [17:11:11]wFMCommunicate request_size=4 [17:11:11]MH_SAM_APDU [17:11:11]CAPDU: 80 13 01 00 [17:11:11]Write to MH i2c: E2 08 00 0D 35 80 13 01 00 00 00 00 00 BF [17:11:11]Write i2c OK [17:11:11]MH_I2C_Read... [17:11:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:11]Read from MH i2c: E2 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 0E 00 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 0E 00 0D 35 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 CE [17:11:11]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:11:11]wFMCommunicate OK [17:11:11]SAM_PROTO_GetShiftState done [17:11:11]FM_GetShiftState done [17:11:11]req_shift_opened done [17:11:11]requested_item shift.open_date is exist - process it [17:11:11]req_shift_open_date [17:11:11]req_shift_open_date done [17:11:11]produce_requested_data done [17:11:11]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201603,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [17:11:11]process_action_free close_receipt [17:11:11]json_value_free [17:11:11]json_value_free done [17:11:11]process_json_proto returns [17:11:11]Send response to host [17:11:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201603,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [17:11:11]free response buf [17:11:11]execute_script done [17:11:11]execute_script returns [17:11:11]free content buf [17:11:11]Sock 8.Close socket [17:11:11]Sock 8.Thread stoped [17:11:15]OFD Sender: No OFD packet to send [17:11:20]OFD Sender: No OFD packet to send [17:11:25]OFD Sender: No OFD packet to send [17:11:30]OFD Sender: No OFD packet to send [17:11:35]OFD Sender: No OFD packet to send [17:11:38]accept exits with 9 [17:11:38]New connection [17:11:38]New thread 3066690916 created [17:11:38]Thread 3066834276 joined [17:11:38]Waiting for new connection... [17:11:38] Sock 9.Parse request [17:11:38]Sock 9.Check first char [17:11:38]Sock 9.First char is OK [17:11:38]request: POST /json_proto HTTP/1.0 [17:11:38]Method: POST [17:11:38]URL: /json_proto [17:11:38]Method is POST - this is cgi request [17:11:38]url: /json_proto [17:11:38]query_string will be loaded in cgi processing [17:11:38]execute_cgi json_proto POST (null) [17:11:38]execute_cgi path=json_proto method=POST [17:11:38]POST find Content-Length [17:11:38]Host: 172.17.63.195:8080 [17:11:38]Content-Length: 679 [17:11:38]Content-Type: application/json [17:11:38] [17:11:38]POST finish read [17:11:38]Found Content-Length = 679 [17:11:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:38]execute_script... [17:11: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)449360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:38]POST & json_proto [17:11:38]process_json_proto [17:11:38]json parsed OK: [17:11:38]protocol is kg_v1.0 [17:11:38]action value=close_receipt [17:11:38]process_action close_receipt [17:11:38]cmd_close_receipt [17:11:38]MH_GetDate [17:11:38]Write to MH i2c: F0 00 00 0E 35 32 [17:11:38]Write i2c OK [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: F0 [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: F0 09 00 [17:11:38]MH_I2C_Read... [17:11:38]Read from MH i2c: F0 09 00 0E 35 00 CC 22 1D 67 68 46 19 67 DB [17:11:38]GetLastDocTimeStamp 1729962669 [17:11:38]current date 1729962700 [17:11:38]FM_GetShiftState [17:11:38]SAM_PROTO_GetShiftState [17:11:38]wFMCommunicate request_size=4 [17:11:38]MH_SAM_APDU [17:11:38]CAPDU: 80 13 01 00 [17:11:38]Write to MH i2c: E2 08 00 0F 35 80 13 01 00 00 00 00 00 C1 [17:11:38]Write i2c OK [17:11:38]MH_I2C_Read... [17:11:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:39]Read from MH i2c: E2 [17:11:39]MH_I2C_Read... [17:11:39]Read from MH i2c: E2 0E 00 [17:11:39]MH_I2C_Read... [17:11:39]Read from MH i2c: E2 0E 00 0F 35 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D0 [17:11:39]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:11:39]wFMCommunicate OK [17:11:39]SAM_PROTO_GetShiftState done [17:11:39]FM_GetShiftState done [17:11:39]opened in 1729900879 [17:11:39]opened+sec_in_day 1729987279 [17:11:39]quantity*price = 100050 [17:11:39]sum+1 = 100052 [17:11:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 366 26.10.2024 17:11 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201604 ФПД: 112826946882473 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T171140&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201604&fm=112826946882473&tin=02508201610067®Number=0000000000091777&sum=100000 [17:11:40]StoreToDocumentArchive [17:11:40]shift 543 fd 201604 [17:11:40]save to /storage/0543/doc_00201604 [17:11:40]save last doc name /storage/0543/doc_00201604 to /storage/kkm_last_doc_name [17:11:40]save OK [17:11:40]Clear old archive folders... [17:11:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:11:40]tlvbuf is 01F3A370 [17:11:40]SAM_PROTO_ClearQueue [17:11:40]wFMCommunicate request_size=4 [17:11:40]MH_SAM_APDU [17:11:40]CAPDU: 80 09 00 00 [17:11:40]Write to MH i2c: E2 08 00 1C 35 80 09 00 00 00 00 00 00 C3 [17:11:40]Write i2c OK [17:11:40]MH_I2C_Read... [17:11:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:11:40]Read from MH i2c: E2 [17:11:40]MH_I2C_Read... [17:11:40]Read from MH i2c: E2 03 00 [17:11:40]MH_I2C_Read... [17:11:40]Read from MH i2c: E2 03 00 1C 35 00 90 00 C5 [17:11:40]RAPDU: 90 00 [17:11:40]wFMCommunicate OK [17:11:40]SAM_PROTO_ClearQueue done [17:11:40]KKMCreateOFDPacket [17:11:40]OFDProtocolAddRootSTLVToBuf [17:11:40]FM_MakeSignedData [17:11:40]FM_MakeSignedData [17:11:40]SAM_PROTO_SignData [17:11:40]wFMCommunicate request_size=4 [17:11:40]MH_SAM_APDU [17:11:40]CAPDU: 80 0D 01 02 [17:11:40]Write to MH i2c: E2 08 00 1D 35 80 0D 01 02 00 00 00 00 CB [17:11:40]Write i2c OK [17:11:40]MH_I2C_Read... [17:11:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:11:40]Read from MH i2c: E2 [17:11:40]MH_I2C_Read... [17:11:40]Read from MH i2c: E2 03 00 [17:11:40]MH_I2C_Read... [17:11:40]Read from MH i2c: E2 03 00 1D 35 00 90 00 C6 [17:11:40]RAPDU: 90 00 [17:11:40]wFMCommunicate OK [17:11:40]wFMCommunicate request_size=255 [17:11:40]MH_SAM_APDU [17:11:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 6E 01 00 00 F4 03 04 00 CC 22 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 84 13 03 00 35 04 06 00 66 9D 92 17 [17:11:40]Write to MH i2c: E2 02 01 1E 35 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 6E 01 00 00 F4 03 04 00 CC 22 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 84 13 03 00 35 04 06 00 66 9D 92 17 00 00 9D [17:11:40]Write i2c OK [17:11:40]MH_I2C_Read... [17:11:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:40]Read from MH i2c: E2 [17:11:40]MH_I2C_Read... [17:11:40]Read from MH i2c: E2 03 00 [17:11:40]MH_I2C_Read... [17:11:40]Read from MH i2c: E2 03 00 1E 35 00 90 00 C7 [17:11:40]RAPDU: 90 00 [17:11:40]wFMCommunicate OK [17:11:40]wFMCommunicate request_size=7 [17:11:40]MH_SAM_APDU [17:11:40]CAPDU: 80 0D 02 02 02 0B A9 [17:11:40]Write to MH i2c: E2 0A 00 1F 35 80 0D 02 02 02 00 0B A9 00 00 86 [17:11:40]Write i2c OK [17:11:40]MH_I2C_Read... [17:11:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:40]Read from MH i2c: E2 [17:11:40]MH_I2C_Read... [17:11:40]Read from MH i2c: E2 03 00 [17:11:40]MH_I2C_Read... [17:11:40]Read from MH i2c: E2 03 00 1F 35 00 90 00 C8 [17:11:40]RAPDU: 90 00 [17:11:40]wFMCommunicate OK [17:11:40]wFMCommunicate request_size=4 [17:11:40]MH_SAM_APDU [17:11:40]CAPDU: 80 0D 03 02 [17:11:40]Write to MH i2c: E2 08 00 20 35 80 0D 03 02 00 00 00 00 D0 [17:11:40]Write i2c OK [17:11:40]MH_I2C_Read... [17:11:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:11:40]Read from MH i2c: E2 [17:11:40]MH_I2C_Read... [17:11:40]Read from MH i2c: E2 0B 00 [17:11:40]MH_I2C_Read... [17:11:40]Read from MH i2c: E2 0B 00 20 35 00 DE 53 F6 16 98 67 AA 66 90 00 1D [17:11:40]RAPDU: DE 53 F6 16 98 67 AA 66 90 00 [17:11:40]wFMCommunicate OK [17:11:40]SAM_PROTO_SignData done [17:11:40]FM_MakeSignedData done [17:11:40]CreateOFDProtocolMessage [17:11:40]wFMCommunicate request_size=4 [17:11:40]MH_SAM_APDU [17:11:40]CAPDU: 80 11 00 00 [17:11:40]Write to MH i2c: E2 08 00 21 35 80 11 00 00 00 00 00 00 D0 [17:11:40]Write i2c OK [17:11:40]MH_I2C_Read... [17:11:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:40]Read from MH i2c: E2 [17:11:40]MH_I2C_Read... [17:11:40]Read from MH i2c: E2 17 00 [17:11:40]MH_I2C_Read... [17:11:40]Read from MH i2c: E2 17 00 21 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 25 [17:11:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:11:40]wFMCommunicate OK [17:11:40]CreateOFDProtocolMessage done [17:11:40]OFDSenderStorePacket 201604 [17:11:40]StoreOFDPacket docnum=201604 [17:11:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 50 A5 04 01 F1 F7 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 6E 01 00 00 F4 03 04 00 CC 22 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 84 13 03 00 35 04 06 00 66 9D 92 17 0B A9 DE 53 F6 16 98 67 AA 66 [17:11:40]CheckFolder [17:11:40]dirname=/storage/ofd_packets [17:11:40]CheckFolder done [17:11:40]ProducePacketName [17:11:40]name=ofd_packets/00201604 [17:11:40]NVStorageSaveData ofd_packets/00201604 [17:11:40]File name is /storage/ofd_packets/00201604 [17:11:40]Write 298 bytes [17:11:40]NVStorageSaveData done [17:11:40]OFDSenderStorePacket done [17:11:40]KKMCreateOFDPacket done [17:11:40]NVStorageSaveData kkm_last_timestamp [17:11:40]File name is /storage/kkm_last_timestamp [17:11:40]Write 4 bytes [17:11:40]NVStorageSaveData done [17:11:40]ExternCall_PrintAddStr [17:11:40]wPrintStart [17:11:40]Write to MH i2c: 01 00 00 22 35 57 [17:11:40]Write i2c OK [17:11:40]MH_I2C_Read... [17:11:40]Read from MH i2c: 01 [17:11:40]MH_I2C_Read... [17:11:40]Read from MH i2c: 01 07 00 [17:11:40]MH_I2C_Read... [17:11:40]Read from MH i2c: 01 07 00 22 35 00 00 00 00 00 FF 0F 6C [17:11:40]RasterBufferAndPrint [17:11:40]line Счет N : (1)449360 [17:11:40]line ИНН: 02508201610067 [17:11:40]line Контрольно-Кассовый Чек [17:11:40]line ПРОДАЖА [17:11:40]line ТРК (МРК, ГНК) : 43 [17:11:40]line Товар: 2710194210 [17:11:40]line ДТ-К-2 [17:11:40]line 13.130 * 76.20 [17:11:40]line = 1000.51 [17:11:40]line НДС 12% НСП 1% [17:11:40]line > о реализуемом товаре [17:11:40]line ОКРУГЛЕНИЕ: -0.51 [17:11:40]line ИТОГО: 1000.00 [17:11:40]line Внесено: 1000.00 [17:11:40]line СДАЧА: 0.00 [17:11:40]line НСП 1% : 8.85 [17:11:40]line НДС 12% : 106.25 [17:11:40]line Наличными: 1000.00 [17:11:40]line Безнал.: 0.00 [17:11:40]line Место: АЗС № 171 "Партнер Нефть" [17:11:40]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:11:40]line СНО: Общий режим [17:11:40]line Чек 366 26.10.2024 17:11 [17:11:40]line Смена: 543 ФФД: 1.0 [17:11:40]line ЗНМ: 0300000109 [17:11:40]line РНМ: 0000000000091777 [17:11:40]line Версия ККМ: 001 [17:11:40]line ФМ: 0000000000871756 [17:11:40]line ФД: 201604 [17:11:40]line ФПД: 112826946882473 [17:11:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T171140&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201604&fm=112826946882473&tin=02508201610067®Number=0000000000091777&sum=100000 [17:11:40]OFD Sender: Processing packet 201604 [packets to send 112, broken 111] [17:11:40]ProducePacketName [17:11:40]name=ofd_packets/00201604 [17:11:40]OFD Sender: To server: pG, [17:11:40]CommunicateWithHost lk.salyk.kg:30040 [17:11:40]ConnectInit lk.salyk.kg [17:11:40]written 0, free lines is 4095 [17:11:41]Connected sock=10 [17:11:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 50 A5 04 01 F1 F7 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 6E 01 00 00 F4 03 04 00 CC 22 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 84 13 03 00 35 04 06 00 66 9D 92 17 0B A9 DE 53 F6 16 98 67 AA 66 [17:11:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 50 6C 47 00 D1 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 84 13 03 00 F4 03 04 00 75 CE 1C 67 B6 04 01 00 00 A7 A5 27 98 82 B1 A3 2E [17:11:41]CommunicateWithHost err = 0 [17:11:41]CheckOFDResponse [17:11:41]1017 (14) - 77093643461234 [17:11:41]1041 (16) - 0000000000871756 [17:11:41]1040 (4) - 201604 [17:11:41]1012 (4) - 26.10.2024 11:11 [17:11:41]1206 (1) - 0 [17:11:41]OFD Sender: Remove packet 201604 [17:11:41]ProducePacketName [17:11:41]name=ofd_packets/00201604 [17:11:41]NVStorageDeleteData [17:11:41]Write to MH i2c: 01 00 00 4D 35 82 [17:11:41]Write i2c OK [17:11:41]MH_I2C_Read... [17:11:41]Read from MH i2c: 01 [17:11:41]MH_I2C_Read... [17:11:41]Read from MH i2c: 01 07 00 [17:11:41]MH_I2C_Read... [17:11:41]Read from MH i2c: 01 07 00 4D 35 00 00 00 00 00 96 0C 2B [17:11:41]RasterBufferAndPrint [17:11:41]line [17:11:41]line [17:11:41]line [17:11:41]line [17:11:41]line [17:11:41]written 0, free lines is 3226 [17:11:41]MH_Cut [17:11:41]Write to MH i2c: D1 01 00 54 35 01 5B [17:11:41]Write i2c OK [17:11:41]MH_I2C_Read... [17:11:41]Read from MH i2c: D1 [17:11:41]MH_I2C_Read... [17:11:41]Read from MH i2c: D1 01 00 [17:11:41]MH_I2C_Read... [17:11:41]Read from MH i2c: D1 01 00 54 35 00 5A [17:11:41]Write to MH i2c: 01 00 00 55 35 8A [17:11:41]Write i2c OK [17:11:41]MH_I2C_Read... [17:11:41]OFD Sender: No OFD packet to send [17:11:42]*** Cut start [17:11:42]*** Purtial cut [17:11:42]*** CUTSNS_PIN = 0 [17:11:42]*** Stage 1: CUTSNS_PIN = 1 [17:11:44]Read from MH i2c: 01 [17:11:44]MH_I2C_Read... [17:11:44]*** Stop cut motor [17:11:44]*** Cut end [17:11:44]Read from MH i2c: 01 07 00 [17:11:44]MH_I2C_Read... [17:11:44]Read from MH i2c: 01 07 00 55 35 00 00 00 00 00 FF 0F 9F [17:11:44]process_action close_receipt done [17:11:44]requested_data is exist [17:11:44]produce_requested_data [17:11:44]requested_item fm.sn is exist - process it [17:11:44]wFMCommunicate request_size=4 [17:11:44]MH_SAM_APDU [17:11:44]CAPDU: 80 11 00 00 [17:11:44]Write to MH i2c: E2 08 00 56 35 80 11 00 00 00 00 00 00 05 [17:11:44]Write i2c OK [17:11:44]MH_I2C_Read... [17:11:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:44]Read from MH i2c: E2 [17:11:44]MH_I2C_Read... [17:11:44]Read from MH i2c: E2 17 00 [17:11:44]MH_I2C_Read... [17:11:44]Read from MH i2c: E2 17 00 56 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5A [17:11:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:11:44]wFMCommunicate OK [17:11:44]requested_item fd.num is exist - process it [17:11:44]SAM_PROTO_GetFieldsCounters [17:11:44]wFMCommunicate request_size=4 [17:11:44]MH_SAM_APDU [17:11:44]CAPDU: 80 13 00 00 [17:11:44]Write to MH i2c: E2 08 00 57 35 80 13 00 00 00 00 00 00 08 [17:11:44]Write i2c OK [17:11:44]MH_I2C_Read... [17:11:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:44]Read from MH i2c: E2 [17:11:44]MH_I2C_Read... [17:11:44]Read from MH i2c: E2 62 00 [17:11:44]MH_I2C_Read... [17:11:44]Read from MH i2c: E2 62 00 57 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 84 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6E 01 00 00 5E 04 04 00 6E 01 00 00 57 04 04 00 6F 01 00 00 19 04 04 00 00 00 00 00 90 00 39 [17:11:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 84 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6E 01 00 00 5E 04 04 00 6E 01 00 00 57 04 04 00 6F 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:11:44]wFMCommunicate OK [17:11:44]SAM_PROTO_GetFieldsCounters done [17:11:44]requested_item shift.num is exist - process it [17:11:44]requested_item shift.opened is exist - process it [17:11:44]req_shift_opened [17:11:44]FM_GetShiftState [17:11:44]SAM_PROTO_GetShiftState [17:11:44]wFMCommunicate request_size=4 [17:11:44]MH_SAM_APDU [17:11:44]CAPDU: 80 13 01 00 [17:11:44]Write to MH i2c: E2 08 00 58 35 80 13 01 00 00 00 00 00 0A [17:11:44]Write i2c OK [17:11:44]MH_I2C_Read... [17:11:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:44]Read from MH i2c: E2 [17:11:44]MH_I2C_Read... [17:11:44]Read from MH i2c: E2 0E 00 [17:11:44]MH_I2C_Read... [17:11:44]Read from MH i2c: E2 0E 00 58 35 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 19 [17:11:44]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:11:44]wFMCommunicate OK [17:11:44]SAM_PROTO_GetShiftState done [17:11:44]FM_GetShiftState done [17:11:44]req_shift_opened done [17:11:44]requested_item shift.open_date is exist - process it [17:11:44]req_shift_open_date [17:11:44]req_shift_open_date done [17:11:44]produce_requested_data done [17:11:44]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201604,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [17:11:44]process_action_free close_receipt [17:11:44]json_value_free [17:11:44]json_value_free done [17:11:44]process_json_proto returns [17:11:44]Send response to host [17:11:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201604,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [17:11:44]free response buf [17:11:44]execute_script done [17:11:44]execute_script returns [17:11:44]free content buf [17:11:44]Sock 9.Close socket [17:11:44]Sock 9.Thread stoped [17:11:46]OFD Sender: No OFD packet to send [17:11:51]OFD Sender: No OFD packet to send [17:11:56]OFD Sender: No OFD packet to send [17:12:01]OFD Sender: No OFD packet to send [17:12:06]OFD Sender: No OFD packet to send [17:12:11]OFD Sender: No OFD packet to send [17:12:16]OFD Sender: No OFD packet to send [17:12:21]OFD Sender: No OFD packet to send [17:12:26]OFD Sender: No OFD packet to send [17:12:31]OFD Sender: No OFD packet to send [17:12:36]OFD Sender: No OFD packet to send [17:12:41]OFD Sender: No OFD packet to send [17:12:46]OFD Sender: No OFD packet to send [17:12:51]OFD Sender: No OFD packet to send [17:12:56]OFD Sender: No OFD packet to send [17:13:01]OFD Sender: No OFD packet to send [17:13:06]OFD Sender: No OFD packet to send [17:13:11]OFD Sender: No OFD packet to send [17:13:16]OFD Sender: No OFD packet to send [17:13:21]OFD Sender: No OFD packet to send [17:13:26]OFD Sender: No OFD packet to send [17:13:31]OFD Sender: No OFD packet to send [17:13:36]OFD Sender: No OFD packet to send [17:13:41]OFD Sender: No OFD packet to send [17:13:46]OFD Sender: No OFD packet to send [17:13:51]OFD Sender: No OFD packet to send [17:13:56]OFD Sender: No OFD packet to send [17:14:01]OFD Sender: No OFD packet to send [17:14:05]accept exits with 8 [17:14:05]New connection [17:14:05]New thread 3066834276 created [17:14:05]Thread 3066690916 joined [17:14:05]Waiting for new connection... [17:14:05] Sock 8.Parse request [17:14:05]Sock 8.Check first char [17:14:05]Sock 8.First char is OK [17:14:05]request: POST /json_proto HTTP/1.0 [17:14:05]Method: POST [17:14:05]URL: /json_proto [17:14:05]Method is POST - this is cgi request [17:14:05]url: /json_proto [17:14:05]query_string will be loaded in cgi processing [17:14:05]execute_cgi json_proto POST (null) [17:14:05]execute_cgi path=json_proto method=POST [17:14:05]POST find Content-Length [17:14:05]Host: 172.17.63.195:8080 [17:14:05]Content-Length: 678 [17:14:05]Content-Type: application/json [17:14:05] [17:14:05]POST finish read [17:14:05]Found Content-Length = 678 [17:14:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:05]execute_script... [17:14: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)449362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:05]POST & json_proto [17:14:05]process_json_proto [17:14:05]json parsed OK: [17:14:05]protocol is kg_v1.0 [17:14:05]action value=close_receipt [17:14:05]process_action close_receipt [17:14:05]cmd_close_receipt [17:14:05]MH_GetDate [17:14:05]Write to MH i2c: F0 00 00 59 35 7D [17:14:05]Write i2c OK [17:14:05]MH_I2C_Read... [17:14:05]Read from MH i2c: F0 [17:14:05]MH_I2C_Read... [17:14:05]Read from MH i2c: F0 09 00 [17:14:05]MH_I2C_Read... [17:14:05]Read from MH i2c: F0 09 00 59 35 00 5E 23 1D 67 68 46 19 67 B9 [17:14:05]GetLastDocTimeStamp 1729962700 [17:14:05]current date 1729962846 [17:14:05]FM_GetShiftState [17:14:05]SAM_PROTO_GetShiftState [17:14:05]wFMCommunicate request_size=4 [17:14:05]MH_SAM_APDU [17:14:05]CAPDU: 80 13 01 00 [17:14:05]Write to MH i2c: E2 08 00 5A 35 80 13 01 00 00 00 00 00 0C [17:14:05]Write i2c OK [17:14:05]MH_I2C_Read... [17:14:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:05]Read from MH i2c: E2 [17:14:05]MH_I2C_Read... [17:14:05]Read from MH i2c: E2 0E 00 [17:14:05]MH_I2C_Read... [17:14:05]Read from MH i2c: E2 0E 00 5A 35 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 1B [17:14:05]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:14:05]wFMCommunicate OK [17:14:05]SAM_PROTO_GetShiftState done [17:14:05]FM_GetShiftState done [17:14:05]opened in 1729900879 [17:14:05]opened+sec_in_day 1729987279 [17:14:05]quantity*price = 80012 [17:14:05]sum+1 = 80013 [17:14:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 367 26.10.2024 17:14 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201605 ФПД: 159231480204610 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T171407&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201605&fm=159231480204610&tin=02508201610067®Number=0000000000091777&sum=80000 [17:14:06]StoreToDocumentArchive [17:14:06]shift 543 fd 201605 [17:14:06]save to /storage/0543/doc_00201605 [17:14:06]save last doc name /storage/0543/doc_00201605 to /storage/kkm_last_doc_name [17:14:06]save OK [17:14:06]Clear old archive folders... [17:14:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:14:06]tlvbuf is 01F1E590 [17:14:06]SAM_PROTO_ClearQueue [17:14:06]wFMCommunicate request_size=4 [17:14:06]MH_SAM_APDU [17:14:06]CAPDU: 80 09 00 00 [17:14:06]Write to MH i2c: E2 08 00 67 35 80 09 00 00 00 00 00 00 0E [17:14:06]Write i2c OK [17:14:06]MH_I2C_Read... [17:14:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:06]Read from MH i2c: E2 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: E2 03 00 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: E2 03 00 67 35 00 90 00 10 [17:14:06]RAPDU: 90 00 [17:14:06]wFMCommunicate OK [17:14:06]SAM_PROTO_ClearQueue done [17:14:06]KKMCreateOFDPacket [17:14:06]OFDProtocolAddRootSTLVToBuf [17:14:06]FM_MakeSignedData [17:14:06]FM_MakeSignedData [17:14:06]SAM_PROTO_SignData [17:14:06]wFMCommunicate request_size=4 [17:14:06]MH_SAM_APDU [17:14:06]CAPDU: 80 0D 01 02 [17:14:06]Write to MH i2c: E2 08 00 68 35 80 0D 01 02 00 00 00 00 16 [17:14:06]Write i2c OK [17:14:06]MH_I2C_Read... [17:14:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:06]Read from MH i2c: E2 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: E2 03 00 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: E2 03 00 68 35 00 90 00 11 [17:14:06]RAPDU: 90 00 [17:14:06]wFMCommunicate OK [17:14:06]wFMCommunicate request_size=255 [17:14:06]MH_SAM_APDU [17:14: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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 5F 23 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 85 13 03 00 35 04 06 00 90 [17:14:06]Write to MH i2c: E2 02 01 69 35 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 5F 23 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 85 13 03 00 35 04 06 00 90 00 00 58 [17:14:06]Write i2c OK [17:14:06]MH_I2C_Read... [17:14:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:06]Read from MH i2c: E2 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: E2 03 00 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: E2 03 00 69 35 00 90 00 12 [17:14:06]RAPDU: 90 00 [17:14:06]wFMCommunicate OK [17:14:06]wFMCommunicate request_size=10 [17:14:06]MH_SAM_APDU [17:14:06]CAPDU: 80 0D 02 02 05 D1 F7 D0 8D 42 [17:14:06]Write to MH i2c: E2 0D 00 6A 35 80 0D 02 02 05 00 D1 F7 D0 8D 42 00 00 8A [17:14:06]Write i2c OK [17:14:06]MH_I2C_Read... [17:14:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:06]Read from MH i2c: E2 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: E2 03 00 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: E2 03 00 6A 35 00 90 00 13 [17:14:06]RAPDU: 90 00 [17:14:06]wFMCommunicate OK [17:14:06]wFMCommunicate request_size=4 [17:14:06]MH_SAM_APDU [17:14:06]CAPDU: 80 0D 03 02 [17:14:06]Write to MH i2c: E2 08 00 6B 35 80 0D 03 02 00 00 00 00 1B [17:14:06]Write i2c OK [17:14:06]MH_I2C_Read... [17:14:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:06]Read from MH i2c: E2 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: E2 0B 00 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: E2 0B 00 6B 35 00 B6 6B 75 89 33 E1 C7 E3 90 00 F9 [17:14:06]RAPDU: B6 6B 75 89 33 E1 C7 E3 90 00 [17:14:06]wFMCommunicate OK [17:14:06]SAM_PROTO_SignData done [17:14:06]FM_MakeSignedData done [17:14:06]CreateOFDProtocolMessage [17:14:06]wFMCommunicate request_size=4 [17:14:06]MH_SAM_APDU [17:14:06]CAPDU: 80 11 00 00 [17:14:06]Write to MH i2c: E2 08 00 6C 35 80 11 00 00 00 00 00 00 1B [17:14:06]Write i2c OK [17:14:06]MH_I2C_Read... [17:14:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:06]Read from MH i2c: E2 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: E2 17 00 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: E2 17 00 6C 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 70 [17:14:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:14:06]wFMCommunicate OK [17:14:06]CreateOFDProtocolMessage done [17:14:06]OFDSenderStorePacket 201605 [17:14:06]StoreOFDPacket docnum=201605 [17:14:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A9 59 07 01 BE 7C 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 5F 23 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 85 13 03 00 35 04 06 00 90 D1 F7 D0 8D 42 B6 6B 75 89 33 E1 C7 E3 [17:14:06]CheckFolder [17:14:06]dirname=/storage/ofd_packets [17:14:06]CheckFolder done [17:14:06]ProducePacketName [17:14:06]name=ofd_packets/00201605 [17:14:06]NVStorageSaveData ofd_packets/00201605 [17:14:06]File name is /storage/ofd_packets/00201605 [17:14:06]Write 301 bytes [17:14:06]NVStorageSaveData done [17:14:06]OFDSenderStorePacket done [17:14:06]KKMCreateOFDPacket done [17:14:06]NVStorageSaveData kkm_last_timestamp [17:14:06]File name is /storage/kkm_last_timestamp [17:14:06]Write 4 bytes [17:14:06]NVStorageSaveData done [17:14:06]ExternCall_PrintAddStr [17:14:06]wPrintStart [17:14:06]Write to MH i2c: 01 00 00 6D 35 A2 [17:14:06]Write i2c OK [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: 01 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: 01 07 00 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: 01 07 00 6D 35 00 00 00 00 00 FF 0F B7 [17:14:06]RasterBufferAndPrint [17:14:06]line Счет N : (1)449362 [17:14:06]line ИНН: 02508201610067 [17:14:06]line Контрольно-Кассовый Чек [17:14:06]line ПРОДАЖА [17:14:06]line ТРК (МРК, ГНК) : 52 [17:14:06]line Товар: 2710124130 [17:14:06]line Аи-92-К-2 [17:14:06]line 11.960 * 66.90 [17:14:06]line = 800.12 [17:14:06]line НДС 12% НСП 1% [17:14:06]line > о реализуемом товаре [17:14:06]line ОКРУГЛЕНИЕ: -0.12 [17:14:06]line ИТОГО: 800.00 [17:14:06]line Внесено: 800.00 [17:14:06]line СДАЧА: 0.00 [17:14:06]line НСП 1% : 7.08 [17:14:06]line НДС 12% : 84.97 [17:14:06]line Наличными: 800.00 [17:14:06]line Безнал.: 0.00 [17:14:06]line Место: АЗС № 171 "Партнер Нефть" [17:14:06]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:14:06]line СНО: Общий режим [17:14:06]line Чек 367 26.10.2024 17:14 [17:14:06]line Смена: 543 ФФД: 1.0 [17:14:06]line ЗНМ: 0300000109 [17:14:06]line РНМ: 0000000000091777 [17:14:06]line Версия ККМ: 001 [17:14:06]line ФМ: 0000000000871756 [17:14:06]line ФД: 201605 [17:14:06]line ФПД: 159231480204610 [17:14:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T171407&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201605&fm=159231480204610&tin=02508201610067®Number=0000000000091777&sum=80000 [17:14:07]OFD Sender: Processing packet 201605 [packets to send 112, broken 111] [17:14:07]ProducePacketName [17:14:07]name=ofd_packets/00201605 [17:14:07]OFD Sender: To server: pG, [17:14:07]CommunicateWithHost lk.salyk.kg:30040 [17:14:07]ConnectInit lk.salyk.kg [17:14:07]written 0, free lines is 4095 [17:14:07]Connected sock=10 [17:14:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A9 59 07 01 BE 7C 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 5F 23 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 85 13 03 00 35 04 06 00 90 D1 F7 D0 8D 42 B6 6B 75 89 33 E1 C7 E3 [17:14:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 BD AA 47 00 A9 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 85 13 03 00 F4 03 04 00 07 CF 1C 67 B6 04 01 00 00 D4 22 79 BB 41 BA 8E 01 [17:14:07]CommunicateWithHost err = 0 [17:14:07]CheckOFDResponse [17:14:07]1017 (14) - 77093643461234 [17:14:07]1041 (16) - 0000000000871756 [17:14:07]1040 (4) - 201605 [17:14:07]1012 (4) - 26.10.2024 11:14 [17:14:07]1206 (1) - 0 [17:14:07]OFD Sender: Remove packet 201605 [17:14:07]ProducePacketName [17:14:07]name=ofd_packets/00201605 [17:14:07]NVStorageDeleteData [17:14:07]Write to MH i2c: 01 00 00 98 35 CD [17:14:07]Write i2c OK [17:14:07]MH_I2C_Read... [17:14:07]Read from MH i2c: 01 [17:14:07]MH_I2C_Read... [17:14:07]Read from MH i2c: 01 07 00 [17:14:07]MH_I2C_Read... [17:14:07]Read from MH i2c: 01 07 00 98 35 00 00 00 00 00 95 0C 75 [17:14:07]RasterBufferAndPrint [17:14:07]line [17:14:07]line [17:14:07]line [17:14:07]line [17:14:07]line [17:14:07]written 0, free lines is 3227 [17:14:07]MH_Cut [17:14:07]Write to MH i2c: D1 01 00 9F 35 01 A6 [17:14:07]Write i2c OK [17:14:07]MH_I2C_Read... [17:14:07]Read from MH i2c: D1 [17:14:07]MH_I2C_Read... [17:14:07]Read from MH i2c: D1 01 00 [17:14:07]MH_I2C_Read... [17:14:07]Read from MH i2c: D1 01 00 9F 35 00 A5 [17:14:07]Write to MH i2c: 01 00 00 A0 35 D5 [17:14:07]Write i2c OK [17:14:07]MH_I2C_Read... [17:14:08]OFD Sender: No OFD packet to send [17:14:08]*** Cut start [17:14:08]*** Purtial cut [17:14:08]*** Stage 1: CUTSNS_PIN = 1 [17:14:08]Read from MH i2c: 01 [17:14:08]MH_I2C_Read... [17:14:08]*** Stop cut motor [17:14:08]*** Cut end [17:14:08]Read from MH i2c: 01 07 00 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: 01 07 00 A0 35 00 00 00 00 00 FF 0F EA [17:14:08]process_action close_receipt done [17:14:08]requested_data is exist [17:14:08]produce_requested_data [17:14:08]requested_item fm.sn is exist - process it [17:14:08]wFMCommunicate request_size=4 [17:14:08]MH_SAM_APDU [17:14:08]CAPDU: 80 11 00 00 [17:14:08]Write to MH i2c: E2 08 00 A1 35 80 11 00 00 00 00 00 00 50 [17:14:08]Write i2c OK [17:14:08]MH_I2C_Read... [17:14:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:08]Read from MH i2c: E2 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: E2 17 00 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: E2 17 00 A1 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A5 [17:14:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:14:08]wFMCommunicate OK [17:14:08]requested_item fd.num is exist - process it [17:14:08]SAM_PROTO_GetFieldsCounters [17:14:08]wFMCommunicate request_size=4 [17:14:08]MH_SAM_APDU [17:14:08]CAPDU: 80 13 00 00 [17:14:08]Write to MH i2c: E2 08 00 A2 35 80 13 00 00 00 00 00 00 53 [17:14:08]Write i2c OK [17:14:08]MH_I2C_Read... [17:14:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:08]Read from MH i2c: E2 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: E2 62 00 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: E2 62 00 A2 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 85 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 88 [17:14:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 85 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:14:08]wFMCommunicate OK [17:14:08]SAM_PROTO_GetFieldsCounters done [17:14:08]requested_item shift.num is exist - process it [17:14:08]requested_item shift.opened is exist - process it [17:14:08]req_shift_opened [17:14:08]FM_GetShiftState [17:14:08]SAM_PROTO_GetShiftState [17:14:08]wFMCommunicate request_size=4 [17:14:08]MH_SAM_APDU [17:14:08]CAPDU: 80 13 01 00 [17:14:08]Write to MH i2c: E2 08 00 A3 35 80 13 01 00 00 00 00 00 55 [17:14:08]Write i2c OK [17:14:08]MH_I2C_Read... [17:14:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:09]Read from MH i2c: E2 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: E2 0E 00 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: E2 0E 00 A3 35 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 64 [17:14:09]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:14:09]wFMCommunicate OK [17:14:09]SAM_PROTO_GetShiftState done [17:14:09]FM_GetShiftState done [17:14:09]req_shift_opened done [17:14:09]requested_item shift.open_date is exist - process it [17:14:09]req_shift_open_date [17:14:09]req_shift_open_date done [17:14:09]produce_requested_data done [17:14:09]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201605,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [17:14:09]process_action_free close_receipt [17:14:09]json_value_free [17:14:09]json_value_free done [17:14:09]process_json_proto returns [17:14:09]Send response to host [17:14:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201605,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [17:14:09]free response buf [17:14:09]execute_script done [17:14:09]execute_script returns [17:14:09]free content buf [17:14:09]Sock 8.Close socket [17:14:09]Sock 8.Thread stoped [17:14:13]OFD Sender: No OFD packet to send [17:14:18]OFD Sender: No OFD packet to send [17:14:23]OFD Sender: No OFD packet to send [17:14:28]OFD Sender: No OFD packet to send [17:14:33]OFD Sender: No OFD packet to send [17:14:38]OFD Sender: No OFD packet to send [17:14:43]OFD Sender: No OFD packet to send [17:14:48]OFD Sender: No OFD packet to send [17:14:53]OFD Sender: No OFD packet to send [17:14:58]OFD Sender: No OFD packet to send [17:15:03]OFD Sender: No OFD packet to send [17:15:08]OFD Sender: No OFD packet to send [17:15:13]OFD Sender: No OFD packet to send [17:15:18]OFD Sender: No OFD packet to send [17:15:23]OFD Sender: No OFD packet to send [17:15:28]OFD Sender: No OFD packet to send [17:15:31]accept exits with 9 [17:15:31]New connection [17:15:31]New thread 3066690916 created [17:15:31]Thread 3066834276 joined [17:15:31]Waiting for new connection... [17:15:31] Sock 9.Parse request [17:15:31]Sock 9.Check first char [17:15:31]Sock 9.First char is OK [17:15:31]request: POST /json_proto HTTP/1.0 [17:15:31]Method: POST [17:15:31]URL: /json_proto [17:15:31]Method is POST - this is cgi request [17:15:31]url: /json_proto [17:15:31]query_string will be loaded in cgi processing [17:15:31]execute_cgi json_proto POST (null) [17:15:31]execute_cgi path=json_proto method=POST [17:15:31]POST find Content-Length [17:15:31]Host: 172.17.63.195:8080 [17:15:31]Content-Length: 762 [17:15:31]Content-Type: application/json [17:15:31] [17:15:31]POST finish read [17:15:31]Found Content-Length = 762 [17:15:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.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: Mbank", "payments": [ { "type": 1, "sum" : 2000.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:31]execute_script... [17:15: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)449361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.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: Mbank", "payments": [ { "type": 1, "sum" : 2000.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:31]POST & json_proto [17:15:31]process_json_proto [17:15:31]json parsed OK: [17:15:31]protocol is kg_v1.0 [17:15:31]action value=close_receipt [17:15:31]process_action close_receipt [17:15:31]cmd_close_receipt [17:15:31]MH_GetDate [17:15:31]Write to MH i2c: F0 00 00 A4 35 C8 [17:15:31]Write i2c OK [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: F0 [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: F0 09 00 [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: F0 09 00 A4 35 00 B5 23 1D 67 68 46 19 67 5B [17:15:31]GetLastDocTimeStamp 1729962847 [17:15:31]current date 1729962933 [17:15:31]FM_GetShiftState [17:15:31]SAM_PROTO_GetShiftState [17:15:31]wFMCommunicate request_size=4 [17:15:31]MH_SAM_APDU [17:15:31]CAPDU: 80 13 01 00 [17:15:31]Write to MH i2c: E2 08 00 A5 35 80 13 01 00 00 00 00 00 57 [17:15:31]Write i2c OK [17:15:31]MH_I2C_Read... [17:15:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:31]Read from MH i2c: E2 [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: E2 0E 00 [17:15:31]MH_I2C_Read... [17:15:31]Read from MH i2c: E2 0E 00 A5 35 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 66 [17:15:31]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:15:31]wFMCommunicate OK [17:15:31]SAM_PROTO_GetShiftState done [17:15:31]FM_GetShiftState done [17:15:31]opened in 1729900879 [17:15:31]opened+sec_in_day 1729987279 [17:15:31]quantity*price = 200001 [17:15:31]sum+1 = 200003 [17:15:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.02 НСП 1% : 17.70 НДС 12% : 212.39 Наличными: 0.00 Безнал.: 2000.02 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 368 26.10.2024 17:15 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201606 ФПД: 122118461431784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T171533&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201606&fm=122118461431784&tin=02508201610067®Number=0000000000091777&sum=200002 [17:15:33]StoreToDocumentArchive [17:15:33]shift 543 fd 201606 [17:15:33]save to /storage/0543/doc_00201606 [17:15:33]save last doc name /storage/0543/doc_00201606 to /storage/kkm_last_doc_name [17:15:33]save OK [17:15:33]Clear old archive folders... [17:15:33]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:15:33]tlvbuf is B6F3B290 [17:15:33]SAM_PROTO_ClearQueue [17:15:33]wFMCommunicate request_size=4 [17:15:33]MH_SAM_APDU [17:15:33]CAPDU: 80 09 00 00 [17:15:33]Write to MH i2c: E2 08 00 B2 35 80 09 00 00 00 00 00 00 59 [17:15:33]Write i2c OK [17:15:33]MH_I2C_Read... [17:15:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:15:33]Read from MH i2c: E2 [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: E2 03 00 [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: E2 03 00 B2 35 00 90 00 5B [17:15:33]RAPDU: 90 00 [17:15:33]wFMCommunicate OK [17:15:33]SAM_PROTO_ClearQueue done [17:15:33]KKMCreateOFDPacket [17:15:33]OFDProtocolAddRootSTLVToBuf [17:15:33]FM_MakeSignedData [17:15:33]FM_MakeSignedData [17:15:33]SAM_PROTO_SignData [17:15:33]wFMCommunicate request_size=4 [17:15:33]MH_SAM_APDU [17:15:33]CAPDU: 80 0D 01 02 [17:15:33]Write to MH i2c: E2 08 00 B3 35 80 0D 01 02 00 00 00 00 61 [17:15:33]Write i2c OK [17:15:33]MH_I2C_Read... [17:15:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:15:33]OFD Sender: No OFD packet to send [17:15:33]Read from MH i2c: E2 [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: E2 03 00 [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: E2 03 00 B3 35 00 90 00 5C [17:15:33]RAPDU: 90 00 [17:15:33]wFMCommunicate OK [17:15:33]wFMCommunicate request_size=255 [17:15:33]MH_SAM_APDU [17:15:33]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 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 B5 23 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 86 13 03 00 35 04 06 00 [17:15:33]Write to MH i2c: E2 02 01 B4 35 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 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 B5 23 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 86 13 03 00 35 04 06 00 00 00 45 [17:15:33]Write i2c OK [17:15:33]MH_I2C_Read... [17:15:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:33]Read from MH i2c: E2 [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: E2 03 00 [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: E2 03 00 B4 35 00 90 00 5D [17:15:33]RAPDU: 90 00 [17:15:33]wFMCommunicate OK [17:15:33]wFMCommunicate request_size=11 [17:15:33]MH_SAM_APDU [17:15:33]CAPDU: 80 0D 02 02 06 6F 10 EB 83 9F E8 [17:15:33]Write to MH i2c: E2 0E 00 B5 35 80 0D 02 02 06 00 6F 10 EB 83 9F E8 00 00 E4 [17:15:33]Write i2c OK [17:15:33]MH_I2C_Read... [17:15:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:33]Read from MH i2c: E2 [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: E2 03 00 [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: E2 03 00 B5 35 00 90 00 5E [17:15:33]RAPDU: 90 00 [17:15:33]wFMCommunicate OK [17:15:33]wFMCommunicate request_size=4 [17:15:33]MH_SAM_APDU [17:15:33]CAPDU: 80 0D 03 02 [17:15:33]Write to MH i2c: E2 08 00 B6 35 80 0D 03 02 00 00 00 00 66 [17:15:33]Write i2c OK [17:15:33]MH_I2C_Read... [17:15:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:15:33]Read from MH i2c: E2 [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: E2 0B 00 [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: E2 0B 00 B6 35 00 DE 5D 0B EB A1 CE 25 36 90 00 62 [17:15:33]RAPDU: DE 5D 0B EB A1 CE 25 36 90 00 [17:15:33]wFMCommunicate OK [17:15:33]SAM_PROTO_SignData done [17:15:33]FM_MakeSignedData done [17:15:33]CreateOFDProtocolMessage [17:15:33]wFMCommunicate request_size=4 [17:15:33]MH_SAM_APDU [17:15:33]CAPDU: 80 11 00 00 [17:15:33]Write to MH i2c: E2 08 00 B7 35 80 11 00 00 00 00 00 00 66 [17:15:33]Write i2c OK [17:15:33]MH_I2C_Read... [17:15:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:33]Read from MH i2c: E2 [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: E2 17 00 [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: E2 17 00 B7 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BB [17:15:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:15:33]wFMCommunicate OK [17:15:33]CreateOFDProtocolMessage done [17:15:33]OFDSenderStorePacket 201606 [17:15:33]StoreOFDPacket docnum=201606 [17:15:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 30 58 08 01 D7 76 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 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 B5 23 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 86 13 03 00 35 04 06 00 6F 10 EB 83 9F E8 DE 5D 0B EB A1 CE 25 36 [17:15:33]CheckFolder [17:15:33]dirname=/storage/ofd_packets [17:15:33]CheckFolder done [17:15:33]ProducePacketName [17:15:33]name=ofd_packets/00201606 [17:15:33]NVStorageSaveData ofd_packets/00201606 [17:15:33]File name is /storage/ofd_packets/00201606 [17:15:33]Write 302 bytes [17:15:33]NVStorageSaveData done [17:15:33]OFDSenderStorePacket done [17:15:33]KKMCreateOFDPacket done [17:15:33]NVStorageSaveData kkm_last_timestamp [17:15:33]File name is /storage/kkm_last_timestamp [17:15:33]Write 4 bytes [17:15:33]NVStorageSaveData done [17:15:33]ExternCall_PrintAddStr [17:15:33]wPrintStart [17:15:33]Write to MH i2c: 01 00 00 B8 35 ED [17:15:33]Write i2c OK [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: 01 [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: 01 07 00 [17:15:33]MH_I2C_Read... [17:15:33]Read from MH i2c: 01 07 00 B8 35 00 00 00 00 00 FF 0F 02 [17:15:33]RasterBufferAndPrint [17:15:33]line Счет N : (1)449361 [17:15:33]line ИНН: 02508201610067 [17:15:33]line Контрольно-Кассовый Чек [17:15:33]line ПРОДАЖА [17:15:33]line ТРК (МРК, ГНК) : 32 [17:15:33]line Товар: 2710124130 [17:15:33]line SUPER 92-К-5 [17:15:33]line 29.240 * 68.40 [17:15:33]line = 2000.02 [17:15:33]line НДС 12% НСП 1% [17:15:33]line > о реализуемом товаре [17:15:33]line ИТОГО: 2000.02 [17:15:33]line НСП 1% : 17.70 [17:15:33]line НДС 12% : 212.39 [17:15:33]line Наличными: 0.00 [17:15:33]line Безнал.: 2000.02 [17:15:33]line Место: АЗС № 171 "Партнер Нефть" [17:15:33]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:15:33]line СНО: Общий режим [17:15:33]line Чек 368 26.10.2024 17:15 [17:15:33]line Смена: 543 ФФД: 1.0 [17:15:33]line ЗНМ: 0300000109 [17:15:33]line РНМ: 0000000000091777 [17:15:33]line Версия ККМ: 001 [17:15:33]line Платежная система: Mbank [17:15:33]line ФМ: 0000000000871756 [17:15:33]line ФД: 201606 [17:15:33]line ФПД: 122118461431784 [17:15:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T171533&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201606&fm=122118461431784&tin=02508201610067®Number=0000000000091777&sum=200002 [17:15:33]OFD Sender: Processing packet 201606 [packets to send 112, broken 111] [17:15:33]ProducePacketName [17:15:33]name=ofd_packets/00201606 [17:15:33]OFD Sender: To server: pG, [17:15:33]CommunicateWithHost lk.salyk.kg:30040 [17:15:33]ConnectInit lk.salyk.kg [17:15:33]written 0, free lines is 4095 [17:15:33]Connected sock=10 [17:15:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 30 58 08 01 D7 76 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 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 B5 23 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 86 13 03 00 35 04 06 00 6F 10 EB 83 9F E8 DE 5D 0B EB A1 CE 25 36 [17:15:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 20 13 47 00 AB 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 86 13 03 00 F4 03 04 00 5E CF 1C 67 B6 04 01 00 00 F7 55 EC A4 B0 44 E3 A0 [17:15:34]CommunicateWithHost err = 0 [17:15:34]CheckOFDResponse [17:15:34]1017 (14) - 77093643461234 [17:15:34]1041 (16) - 0000000000871756 [17:15:34]1040 (4) - 201606 [17:15:34]1012 (4) - 26.10.2024 11:15 [17:15:34]1206 (1) - 0 [17:15:34]OFD Sender: Remove packet 201606 [17:15:34]ProducePacketName [17:15:34]name=ofd_packets/00201606 [17:15:34]NVStorageDeleteData [17:15:34]Write to MH i2c: 01 00 00 E1 35 16 [17:15:34]Write i2c OK [17:15:34]MH_I2C_Read... [17:15:34]Read from MH i2c: 01 [17:15:34]MH_I2C_Read... [17:15:34]Read from MH i2c: 01 07 00 [17:15:34]MH_I2C_Read... [17:15:34]Read from MH i2c: 01 07 00 E1 35 00 00 00 00 00 C3 0C EC [17:15:34]RasterBufferAndPrint [17:15:34]line [17:15:34]line [17:15:34]line [17:15:34]line [17:15:34]line [17:15:34]written 0, free lines is 3271 [17:15:34]MH_Cut [17:15:34]Write to MH i2c: D1 01 00 E8 35 01 EF [17:15:34]Write i2c OK [17:15:34]MH_I2C_Read... [17:15:34]Read from MH i2c: D1 [17:15:34]MH_I2C_Read... [17:15:34]Read from MH i2c: D1 01 00 [17:15:34]MH_I2C_Read... [17:15:34]Read from MH i2c: D1 01 00 E8 35 00 EE [17:15:34]Write to MH i2c: 01 00 00 E9 35 1E [17:15:34]Write i2c OK [17:15:34]MH_I2C_Read... [17:15:34]OFD Sender: No OFD packet to send [17:15:35]*** Cut start [17:15:35]*** Purtial cut [17:15:35]*** CUTSNS_PIN = 0 [17:15:35]*** Stage 1: CUTSNS_PIN = 1 [17:15:37]Read from MH i2c: 01 [17:15:37]MH_I2C_Read... [17:15:37]*** Stop cut motor [17:15:37]*** Cut end [17:15:37]Read from MH i2c: 01 07 00 [17:15:37]MH_I2C_Read... [17:15:37]Read from MH i2c: 01 07 00 E9 35 00 00 00 00 00 FF 0F 33 [17:15:37]process_action close_receipt done [17:15:37]requested_data is exist [17:15:37]produce_requested_data [17:15:37]requested_item fm.sn is exist - process it [17:15:37]wFMCommunicate request_size=4 [17:15:37]MH_SAM_APDU [17:15:37]CAPDU: 80 11 00 00 [17:15:37]Write to MH i2c: E2 08 00 EA 35 80 11 00 00 00 00 00 00 99 [17:15:37]Write i2c OK [17:15:37]MH_I2C_Read... [17:15:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:37]Read from MH i2c: E2 [17:15:37]MH_I2C_Read... [17:15:37]Read from MH i2c: E2 17 00 [17:15:37]MH_I2C_Read... [17:15:37]Read from MH i2c: E2 17 00 EA 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EE [17:15:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:15:37]wFMCommunicate OK [17:15:37]requested_item fd.num is exist - process it [17:15:37]SAM_PROTO_GetFieldsCounters [17:15:37]wFMCommunicate request_size=4 [17:15:37]MH_SAM_APDU [17:15:37]CAPDU: 80 13 00 00 [17:15:37]Write to MH i2c: E2 08 00 EB 35 80 13 00 00 00 00 00 00 9C [17:15:37]Write i2c OK [17:15:37]MH_I2C_Read... [17:15:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:37]Read from MH i2c: E2 [17:15:37]MH_I2C_Read... [17:15:37]Read from MH i2c: E2 62 00 [17:15:37]MH_I2C_Read... [17:15:37]Read from MH i2c: E2 62 00 EB 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 86 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 70 01 00 00 5E 04 04 00 70 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 D5 [17:15:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 86 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 70 01 00 00 5E 04 04 00 70 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:15:37]wFMCommunicate OK [17:15:37]SAM_PROTO_GetFieldsCounters done [17:15:37]requested_item shift.num is exist - process it [17:15:37]requested_item shift.opened is exist - process it [17:15:37]req_shift_opened [17:15:37]FM_GetShiftState [17:15:37]SAM_PROTO_GetShiftState [17:15:37]wFMCommunicate request_size=4 [17:15:37]MH_SAM_APDU [17:15:37]CAPDU: 80 13 01 00 [17:15:37]Write to MH i2c: E2 08 00 EC 35 80 13 01 00 00 00 00 00 9E [17:15:37]Write i2c OK [17:15:37]MH_I2C_Read... [17:15:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:37]Read from MH i2c: E2 [17:15:37]MH_I2C_Read... [17:15:37]Read from MH i2c: E2 0E 00 [17:15:37]MH_I2C_Read... [17:15:37]Read from MH i2c: E2 0E 00 EC 35 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 AD [17:15:37]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:15:37]wFMCommunicate OK [17:15:37]SAM_PROTO_GetShiftState done [17:15:37]FM_GetShiftState done [17:15:37]req_shift_opened done [17:15:37]requested_item shift.open_date is exist - process it [17:15:37]req_shift_open_date [17:15:37]req_shift_open_date done [17:15:37]produce_requested_data done [17:15:37]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201606,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [17:15:37]process_action_free close_receipt [17:15:37]json_value_free [17:15:37]json_value_free done [17:15:37]process_json_proto returns [17:15:37]Send response to host [17:15:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201606,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [17:15:37]free response buf [17:15:37]execute_script done [17:15:37]execute_script returns [17:15:37]free content buf [17:15:37]Sock 9.Close socket [17:15:37]Sock 9.Thread stoped [17:15:39]OFD Sender: No OFD packet to send [17:15:44]OFD Sender: No OFD packet to send [17:15:49]OFD Sender: No OFD packet to send [17:15:54]OFD Sender: No OFD packet to send [17:15:59]OFD Sender: No OFD packet to send [17:16:04]OFD Sender: No OFD packet to send [17:16:09]OFD Sender: No OFD packet to send [17:16:14]OFD Sender: No OFD packet to send [17:16:19]OFD Sender: No OFD packet to send [17:16:24]OFD Sender: No OFD packet to send [17:16:29]OFD Sender: No OFD packet to send [17:16:34]OFD Sender: No OFD packet to send [17:16:39]OFD Sender: No OFD packet to send [17:16:44]OFD Sender: No OFD packet to send [17:16:49]OFD Sender: No OFD packet to send [17:16:54]OFD Sender: No OFD packet to send [17:16:59]accept exits with 8 [17:16:59]New connection [17:16:59]New thread 3066834276 created [17:16:59]Thread 3066690916 joined [17:16:59]Waiting for new connection... [17:16:59] Sock 8.Parse request [17:16:59]Sock 8.Check first char [17:16:59]Sock 8.First char is OK [17:16:59]request: POST /json_proto HTTP/1.0 [17:16:59]Method: POST [17:16:59]URL: /json_proto [17:16:59]Method is POST - this is cgi request [17:16:59]url: /json_proto [17:16:59]query_string will be loaded in cgi processing [17:16:59]execute_cgi json_proto POST (null) [17:16:59]execute_cgi path=json_proto method=POST [17:16:59]POST find Content-Length [17:16:59]Host: 172.17.63.195:8080 [17:16:59]Content-Length: 762 [17:16:59]Content-Type: application/json [17:16:59] [17:16:59]POST finish read [17:16:59]Found Content-Length = 762 [17:16:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.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: Mbank", "payments": [ { "type": 1, "sum" : 2000.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:59]execute_script... [17:16:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.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: Mbank", "payments": [ { "type": 1, "sum" : 2000.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:59]POST & json_proto [17:16:59]process_json_proto [17:16:59]json parsed OK: [17:16:59]protocol is kg_v1.0 [17:16:59]action value=close_receipt [17:16:59]process_action close_receipt [17:16:59]cmd_close_receipt [17:16:59]MH_GetDate [17:16:59]Write to MH i2c: F0 00 00 ED 35 11 [17:16:59]Write i2c OK [17:16:59]MH_I2C_Read... [17:16:59]Read from MH i2c: F0 [17:16:59]MH_I2C_Read... [17:16:59]Read from MH i2c: F0 09 00 [17:16:59]MH_I2C_Read... [17:16:59]Read from MH i2c: F0 09 00 ED 35 00 0D 24 1D 67 68 46 19 67 FD [17:16:59]GetLastDocTimeStamp 1729962933 [17:16:59]current date 1729963021 [17:16:59]FM_GetShiftState [17:16:59]SAM_PROTO_GetShiftState [17:16:59]wFMCommunicate request_size=4 [17:16:59]MH_SAM_APDU [17:16:59]CAPDU: 80 13 01 00 [17:16:59]Write to MH i2c: E2 08 00 EE 35 80 13 01 00 00 00 00 00 A0 [17:16:59]Write i2c OK [17:16:59]MH_I2C_Read... [17:16:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:59]Read from MH i2c: E2 [17:16:59]MH_I2C_Read... [17:16:59]Read from MH i2c: E2 0E 00 [17:16:59]MH_I2C_Read... [17:16:59]Read from MH i2c: E2 0E 00 EE 35 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 AF [17:16:59]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:16:59]wFMCommunicate OK [17:16:59]SAM_PROTO_GetShiftState done [17:16:59]FM_GetShiftState done [17:16:59]opened in 1729900879 [17:16:59]opened+sec_in_day 1729987279 [17:16:59]quantity*price = 200001 [17:16:59]sum+1 = 200003 [17:16:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.02 НСП 1% : 17.70 НДС 12% : 212.39 Наличными: 0.00 Безнал.: 2000.02 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 369 26.10.2024 17:17 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201607 ФПД: 98352004299885 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T171701&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201607&fm=98352004299885&tin=02508201610067®Number=0000000000091777&sum=200002 [17:17:00]StoreToDocumentArchive [17:17:00]shift 543 fd 201607 [17:17:00]save to /storage/0543/doc_00201607 [17:17:00]save last doc name /storage/0543/doc_00201607 to /storage/kkm_last_doc_name [17:17:00]save OK [17:17:00]Clear old archive folders... [17:17:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:17:00]tlvbuf is 01F08A70 [17:17:00]SAM_PROTO_ClearQueue [17:17:00]wFMCommunicate request_size=4 [17:17:00]MH_SAM_APDU [17:17:00]CAPDU: 80 09 00 00 [17:17:00]Write to MH i2c: E2 08 00 FB 35 80 09 00 00 00 00 00 00 A2 [17:17:00]Write i2c OK [17:17:00]MH_I2C_Read... [17:17:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:00]Read from MH i2c: E2 [17:17:00]MH_I2C_Read... [17:17:00]Read from MH i2c: E2 03 00 [17:17:00]MH_I2C_Read... [17:17:00]Read from MH i2c: E2 03 00 FB 35 00 90 00 A4 [17:17:00]RAPDU: 90 00 [17:17:00]wFMCommunicate OK [17:17:00]SAM_PROTO_ClearQueue done [17:17:00]KKMCreateOFDPacket [17:17:00]OFDProtocolAddRootSTLVToBuf [17:17:00]FM_MakeSignedData [17:17:00]FM_MakeSignedData [17:17:00]SAM_PROTO_SignData [17:17:00]wFMCommunicate request_size=4 [17:17:00]MH_SAM_APDU [17:17:00]CAPDU: 80 0D 01 02 [17:17:00]Write to MH i2c: E2 08 00 FC 35 80 0D 01 02 00 00 00 00 AA [17:17:00]Write i2c OK [17:17:00]MH_I2C_Read... [17:17:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:00]Read from MH i2c: E2 [17:17:00]MH_I2C_Read... [17:17:00]Read from MH i2c: E2 03 00 [17:17:00]MH_I2C_Read... [17:17:00]Read from MH i2c: E2 03 00 FC 35 00 90 00 A5 [17:17:00]RAPDU: 90 00 [17:17:00]wFMCommunicate OK [17:17:00]wFMCommunicate request_size=255 [17:17:00]MH_SAM_APDU [17:17:00]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 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 0D 24 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 87 13 03 00 35 04 06 00 [17:17:00]Write to MH i2c: E2 02 01 FD 35 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 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 0D 24 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 87 13 03 00 35 04 06 00 00 00 E9 [17:17:00]Write i2c OK [17:17:00]MH_I2C_Read... [17:17:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:01]Read from MH i2c: E2 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: E2 03 00 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: E2 03 00 FD 35 00 90 00 A6 [17:17:01]RAPDU: 90 00 [17:17:01]wFMCommunicate OK [17:17:01]wFMCommunicate request_size=11 [17:17:01]MH_SAM_APDU [17:17:01]CAPDU: 80 0D 02 02 06 59 73 5C 47 7C 6D [17:17:01]Write to MH i2c: E2 0E 00 FE 35 80 0D 02 02 06 00 59 73 5C 47 7C 6D 00 00 11 [17:17:01]Write i2c OK [17:17:01]MH_I2C_Read... [17:17:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:01]Read from MH i2c: E2 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: E2 03 00 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: E2 03 00 FE 35 00 90 00 A7 [17:17:01]RAPDU: 90 00 [17:17:01]wFMCommunicate OK [17:17:01]wFMCommunicate request_size=4 [17:17:01]MH_SAM_APDU [17:17:01]CAPDU: 80 0D 03 02 [17:17:01]Write to MH i2c: E2 08 00 FF 35 80 0D 03 02 00 00 00 00 AF [17:17:01]Write i2c OK [17:17:01]MH_I2C_Read... [17:17:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:01]Read from MH i2c: E2 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: E2 0B 00 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: E2 0B 00 FF 35 00 84 CA 71 88 B6 49 D7 B4 90 00 81 [17:17:01]RAPDU: 84 CA 71 88 B6 49 D7 B4 90 00 [17:17:01]wFMCommunicate OK [17:17:01]SAM_PROTO_SignData done [17:17:01]FM_MakeSignedData done [17:17:01]CreateOFDProtocolMessage [17:17:01]wFMCommunicate request_size=4 [17:17:01]MH_SAM_APDU [17:17:01]CAPDU: 80 11 00 00 [17:17:01]Write to MH i2c: E2 08 00 00 36 80 11 00 00 00 00 00 00 B0 [17:17:01]Write i2c OK [17:17:01]MH_I2C_Read... [17:17:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:01]Read from MH i2c: E2 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: E2 17 00 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: E2 17 00 00 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 05 [17:17:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:17:01]wFMCommunicate OK [17:17:01]CreateOFDProtocolMessage done [17:17:01]OFDSenderStorePacket 201607 [17:17:01]StoreOFDPacket docnum=201607 [17:17:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 39 25 08 01 57 4F 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 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 0D 24 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 87 13 03 00 35 04 06 00 59 73 5C 47 7C 6D 84 CA 71 88 B6 49 D7 B4 [17:17:01]CheckFolder [17:17:01]dirname=/storage/ofd_packets [17:17:01]CheckFolder done [17:17:01]ProducePacketName [17:17:01]name=ofd_packets/00201607 [17:17:01]NVStorageSaveData ofd_packets/00201607 [17:17:01]File name is /storage/ofd_packets/00201607 [17:17:01]Write 302 bytes [17:17:01]NVStorageSaveData done [17:17:01]OFDSenderStorePacket done [17:17:01]KKMCreateOFDPacket done [17:17:01]NVStorageSaveData kkm_last_timestamp [17:17:01]File name is /storage/kkm_last_timestamp [17:17:01]Write 4 bytes [17:17:01]NVStorageSaveData done [17:17:01]ExternCall_PrintAddStr [17:17:01]wPrintStart [17:17:01]Write to MH i2c: 01 00 00 01 36 37 [17:17:01]Write i2c OK [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: 01 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: 01 07 00 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: 01 07 00 01 36 00 00 00 00 00 FF 0F 4C [17:17:01]RasterBufferAndPrint [17:17:01]line Счет N : (1)449363 [17:17:01]line ИНН: 02508201610067 [17:17:01]line Контрольно-Кассовый Чек [17:17:01]line ПРОДАЖА [17:17:01]line ТРК (МРК, ГНК) : 42 [17:17:01]line Товар: 2710124130 [17:17:01]line SUPER 92-К-5 [17:17:01]line 29.240 * 68.40 [17:17:01]line = 2000.02 [17:17:01]line НДС 12% НСП 1% [17:17:01]line > о реализуемом товаре [17:17:01]line ИТОГО: 2000.02 [17:17:01]line НСП 1% : 17.70 [17:17:01]line НДС 12% : 212.39 [17:17:01]line Наличными: 0.00 [17:17:01]line Безнал.: 2000.02 [17:17:01]line Место: АЗС № 171 "Партнер Нефть" [17:17:01]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:17:01]line СНО: Общий режим [17:17:01]line Чек 369 26.10.2024 17:17 [17:17:01]line Смена: 543 ФФД: 1.0 [17:17:01]line ЗНМ: 0300000109 [17:17:01]line РНМ: 0000000000091777 [17:17:01]line Версия ККМ: 001 [17:17:01]line Платежная система: Mbank [17:17:01]line ФМ: 0000000000871756 [17:17:01]line ФД: 201607 [17:17:01]line ФПД: 98352004299885 [17:17:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T171701&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201607&fm=98352004299885&tin=02508201610067®Number=0000000000091777&sum=200002 [17:17:01]written 0, free lines is 4095 [17:17:01]OFD Sender: Processing packet 201607 [packets to send 112, broken 111] [17:17:01]ProducePacketName [17:17:01]name=ofd_packets/00201607 [17:17:01]OFD Sender: To server: pG, [17:17:01]CommunicateWithHost lk.salyk.kg:30040 [17:17:01]ConnectInit lk.salyk.kg [17:17:01]Connected sock=10 [17:17:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 39 25 08 01 57 4F 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 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 0D 24 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 87 13 03 00 35 04 06 00 59 73 5C 47 7C 6D 84 CA 71 88 B6 49 D7 B4 [17:17:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C6 41 47 00 47 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 87 13 03 00 F4 03 04 00 B5 CF 1C 67 B6 04 01 00 00 89 5A F1 57 79 8D 28 E8 [17:17:02]CommunicateWithHost err = 0 [17:17:02]CheckOFDResponse [17:17:02]1017 (14) - 77093643461234 [17:17:02]1041 (16) - 0000000000871756 [17:17:02]1040 (4) - 201607 [17:17:02]1012 (4) - 26.10.2024 11:17 [17:17:02]1206 (1) - 0 [17:17:02]OFD Sender: Remove packet 201607 [17:17:02]ProducePacketName [17:17:02]name=ofd_packets/00201607 [17:17:02]NVStorageDeleteData [17:17:02]Write to MH i2c: 01 00 00 2A 36 60 [17:17:02]Write i2c OK [17:17:02]MH_I2C_Read... [17:17:02]Read from MH i2c: 01 [17:17:02]MH_I2C_Read... [17:17:02]Read from MH i2c: 01 07 00 [17:17:02]MH_I2C_Read... [17:17:02]Read from MH i2c: 01 07 00 2A 36 00 00 00 00 00 C4 0C 37 [17:17:02]RasterBufferAndPrint [17:17:02]line [17:17:02]line [17:17:02]line [17:17:02]line [17:17:02]line [17:17:02]written 0, free lines is 3272 [17:17:02]MH_Cut [17:17:02]Write to MH i2c: D1 01 00 31 36 01 39 [17:17:02]Write i2c OK [17:17:02]MH_I2C_Read... [17:17:02]Read from MH i2c: D1 [17:17:02]MH_I2C_Read... [17:17:02]Read from MH i2c: D1 01 00 [17:17:02]MH_I2C_Read... [17:17:02]Read from MH i2c: D1 01 00 31 36 00 38 [17:17:02]Write to MH i2c: 01 00 00 32 36 68 [17:17:02]Write i2c OK [17:17:02]MH_I2C_Read... [17:17:02]OFD Sender: No OFD packet to send [17:17:03]*** Cut start [17:17:03]*** Purtial cut [17:17:03]*** Stage 1: CUTSNS_PIN = 1 [17:17:03]Read from MH i2c: 01 [17:17:03]MH_I2C_Read... [17:17:03]*** Stop cut motor [17:17:03]*** Cut end [17:17:03]Read from MH i2c: 01 07 00 [17:17:03]MH_I2C_Read... [17:17:03]Read from MH i2c: 01 07 00 32 36 00 00 00 00 00 FF 0F 7D [17:17:03]process_action close_receipt done [17:17:03]requested_data is exist [17:17:03]produce_requested_data [17:17:03]requested_item fm.sn is exist - process it [17:17:03]wFMCommunicate request_size=4 [17:17:03]MH_SAM_APDU [17:17:03]CAPDU: 80 11 00 00 [17:17:03]Write to MH i2c: E2 08 00 33 36 80 11 00 00 00 00 00 00 E3 [17:17:03]Write i2c OK [17:17:03]MH_I2C_Read... [17:17:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:03]Read from MH i2c: E2 [17:17:03]MH_I2C_Read... [17:17:03]Read from MH i2c: E2 17 00 [17:17:03]MH_I2C_Read... [17:17:03]Read from MH i2c: E2 17 00 33 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 38 [17:17:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:17:03]wFMCommunicate OK [17:17:03]requested_item fd.num is exist - process it [17:17:03]SAM_PROTO_GetFieldsCounters [17:17:03]wFMCommunicate request_size=4 [17:17:03]MH_SAM_APDU [17:17:03]CAPDU: 80 13 00 00 [17:17:03]Write to MH i2c: E2 08 00 34 36 80 13 00 00 00 00 00 00 E6 [17:17:03]Write i2c OK [17:17:03]MH_I2C_Read... [17:17:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:03]Read from MH i2c: E2 [17:17:03]MH_I2C_Read... [17:17:03]Read from MH i2c: E2 62 00 [17:17:03]MH_I2C_Read... [17:17:03]Read from MH i2c: E2 62 00 34 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 87 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 23 [17:17:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 87 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:17:03]wFMCommunicate OK [17:17:03]SAM_PROTO_GetFieldsCounters done [17:17:03]requested_item shift.num is exist - process it [17:17:03]requested_item shift.opened is exist - process it [17:17:03]req_shift_opened [17:17:03]FM_GetShiftState [17:17:03]SAM_PROTO_GetShiftState [17:17:03]wFMCommunicate request_size=4 [17:17:03]MH_SAM_APDU [17:17:03]CAPDU: 80 13 01 00 [17:17:03]Write to MH i2c: E2 08 00 35 36 80 13 01 00 00 00 00 00 E8 [17:17:03]Write i2c OK [17:17:03]MH_I2C_Read... [17:17:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:03]Read from MH i2c: E2 [17:17:03]MH_I2C_Read... [17:17:03]Read from MH i2c: E2 0E 00 [17:17:03]MH_I2C_Read... [17:17:03]Read from MH i2c: E2 0E 00 35 36 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F7 [17:17:03]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:17:03]wFMCommunicate OK [17:17:03]SAM_PROTO_GetShiftState done [17:17:03]FM_GetShiftState done [17:17:03]req_shift_opened done [17:17:03]requested_item shift.open_date is exist - process it [17:17:03]req_shift_open_date [17:17:03]req_shift_open_date done [17:17:03]produce_requested_data done [17:17:03]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201607,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [17:17:03]process_action_free close_receipt [17:17:03]json_value_free [17:17:03]json_value_free done [17:17:03]process_json_proto returns [17:17:03]Send response to host [17:17:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201607,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [17:17:03]free response buf [17:17:03]execute_script done [17:17:03]execute_script returns [17:17:03]free content buf [17:17:03]Sock 8.Close socket [17:17:03]Sock 8.Thread stoped [17:17:07]OFD Sender: No OFD packet to send [17:17:12]OFD Sender: No OFD packet to send [17:17:17]OFD Sender: No OFD packet to send [17:17:22]OFD Sender: No OFD packet to send [17:17:27]OFD Sender: No OFD packet to send [17:17:32]OFD Sender: No OFD packet to send [17:17:37]OFD Sender: No OFD packet to send [17:17:42]OFD Sender: No OFD packet to send [17:17:47]OFD Sender: No OFD packet to send [17:17:52]OFD Sender: No OFD packet to send [17:17:57]OFD Sender: No OFD packet to send [17:18:02]OFD Sender: No OFD packet to send [17:18:07]OFD Sender: No OFD packet to send [17:18:12]OFD Sender: No OFD packet to send [17:18:17]OFD Sender: No OFD packet to send [17:18:22]OFD Sender: No OFD packet to send [17:18:27]OFD Sender: No OFD packet to send [17:18:32]OFD Sender: No OFD packet to send 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 72 01 00 00 F4 03 04 00 A6 24 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 88 13 03 00 35 04 06 00 13 00 00 8E [17:19:35]Write i2c OK [17:19:35]MH_I2C_Read... [17:19:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:35]Read from MH i2c: E2 [17:19:35]MH_I2C_Read... [17:19:35]Read from MH i2c: E2 03 00 [17:19:35]MH_I2C_Read... [17:19:35]Read from MH i2c: E2 03 00 20 00 00 90 00 94 [17:19:35]RAPDU: 90 00 [17:19:35]wFMCommunicate OK [17:19:35]wFMCommunicate request_size=10 [17:19:35]MH_SAM_APDU [17:19:35]CAPDU: 80 0D 02 02 05 19 80 44 E9 6B [17:19:35]Write to MH i2c: E2 0D 00 21 00 80 0D 02 02 05 00 19 80 44 E9 6B 00 00 D6 [17:19:35]Write i2c OK [17:19:35]MH_I2C_Read... [17:19:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:35]Read from MH i2c: E2 [17:19:35]MH_I2C_Read... [17:19:35]Read from MH i2c: E2 03 00 [17:19:35]MH_I2C_Read... [17:19:35]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [17:19:35]RAPDU: 90 00 [17:19:35]wFMCommunicate OK [17:19:35]wFMCommunicate request_size=4 [17:19:35]MH_SAM_APDU [17:19:35]CAPDU: 80 0D 03 02 [17:19:35]Write to MH i2c: E2 08 00 22 00 80 0D 03 02 00 00 00 00 9D [17:19:35]Write i2c OK [17:19:35]MH_I2C_Read... [17:19:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:35]Read from MH i2c: E2 [17:19:35]MH_I2C_Read... [17:19:35]Read from MH i2c: E2 0B 00 [17:19:35]MH_I2C_Read... [17:19:35]Read from MH i2c: E2 0B 00 22 00 00 33 26 CA 92 9D 33 21 53 90 00 97 [17:19:35]RAPDU: 33 26 CA 92 9D 33 21 53 90 00 [17:19:35]wFMCommunicate OK [17:19:35]SAM_PROTO_SignData done [17:19:35]FM_MakeSignedData done [17:19:35]CreateOFDProtocolMessage [17:19:35]wFMCommunicate request_size=4 [17:19:35]MH_SAM_APDU [17:19:35]CAPDU: 80 11 00 00 [17:19:35]Write to MH i2c: E2 08 00 23 00 80 11 00 00 00 00 00 00 9D [17:19:35]Write i2c OK [17:19:35]MH_I2C_Read... [17:19:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:35]Read from MH i2c: E2 [17:19:35]MH_I2C_Read... [17:19:35]Read from MH i2c: E2 17 00 [17:19:35]MH_I2C_Read... [17:19:35]Read from MH i2c: E2 17 00 23 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F2 [17:19:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:19:35]wFMCommunicate OK [17:19:35]CreateOFDProtocolMessage done [17:19:35]OFDSenderStorePacket 201608 [17:19:35]StoreOFDPacket docnum=201608 [17:19:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E3 DF 07 01 88 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 32 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 72 01 00 00 F4 03 04 00 A6 24 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 88 13 03 00 35 04 06 00 13 19 80 44 E9 6B 33 26 CA 92 9D 33 21 53 [17:19:35]CheckFolder [17:19:35]dirname=/storage/ofd_packets [17:19:35]CheckFolder done [17:19:35]ProducePacketName [17:19:35]name=ofd_packets/00201608 [17:19:35]NVStorageSaveData ofd_packets/00201608 [17:19:35]File name is /storage/ofd_packets/00201608 [17:19:35]Write 301 bytes [17:19:35]NVStorageSaveData done [17:19:35]OFDSenderStorePacket done [17:19:35]KKMCreateOFDPacket done [17:19:35]NVStorageSaveData kkm_last_timestamp [17:19:35]File name is /storage/kkm_last_timestamp [17:19:35]Write 4 bytes [17:19:35]NVStorageSaveData done [17:19:35]ExternCall_PrintAddStr [17:19:35]wPrintStart [17:19:35]Write to MH i2c: 01 00 00 24 00 24 [17:19:35]Write i2c OK [17:19:35]MH_I2C_Read... [17:19:35]Read from MH i2c: 01 [17:19:35]MH_I2C_Read... [17:19:35]Read from MH i2c: 01 07 00 [17:19:35]MH_I2C_Read... [17:19:35]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [17:19:35]RasterBufferAndPrint [17:19:35]line Счет N : (1)449364 [17:19:35]line ИНН: 02508201610067 [17:19:35]line Контрольно-Кассовый Чек [17:19:35]line ПРОДАЖА [17:19:35]line ТРК (МРК, ГНК) : 52 [17:19:35]line Товар: 2710124130 [17:19:35]line Аи-92-К-2 [17:19:35]line 5.980 * 66.90 [17:19:35]line = 400.06 [17:19:35]line НДС 12% НСП 1% [17:19:35]line > о реализуемом товаре [17:19:35]line ОКРУГЛЕНИЕ: -0.06 [17:19:35]line ИТОГО: 400.00 [17:19:35]line Внесено: 400.00 [17:19:35]line СДАЧА: 0.00 [17:19:35]line НСП 1% : 3.54 [17:19:35]line НДС 12% : 42.48 [17:19:35]line Наличными: 400.00 [17:19:35]line Безнал.: 0.00 [17:19:35]line Место: АЗС № 171 "Партнер Нефть" [17:19:35]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:19:35]line СНО: Общий режим [17:19:35]line Чек 370 26.10.2024 17:19 [17:19:35]line Смена: 543 ФФД: 1.0 [17:19:35]line ЗНМ: 0300000109 [17:19:35]line РНМ: 0000000000091777 [17:19:35]line Версия ККМ: 001 [17:19:35]line ФМ: 0000000000871756 [17:19:35]line ФД: 201608 [17:19:35]line ФПД: 21000247109995 [17:19:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T171934&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201608&fm=21000247109995&tin=02508201610067®Number=0000000000091777&sum=40000 [17:19:35]OFD Sender: Processing packet 201608 [packets to send 112, broken 111] [17:19:35]ProducePacketName [17:19:35]name=ofd_packets/00201608 [17:19:35]OFD Sender: To server: pG, [17:19:35]CommunicateWithHost lk.salyk.kg:30040 [17:19:35]ConnectInit lk.salyk.kg [17:19:35]written 0, free lines is 4095 [17:19:36]Write to MH i2c: 01 00 00 4F 00 4F [17:19:36]Write i2c OK [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: 01 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: 01 07 00 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 92 0C F4 [17:19:36]RasterBufferAndPrint [17:19:36]line [17:19:36]line [17:19:36]line [17:19:36]line [17:19:36]line [17:19:36]written 0, free lines is 3221 [17:19:36]MH_Cut [17:19:36]Write to MH i2c: D1 01 00 56 00 01 28 [17:19:36]Write i2c OK [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: D1 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: D1 01 00 [17:19:36]MH_I2C_Read... [17:19:36]Read from MH i2c: D1 01 00 56 00 00 27 [17:19:36]Write to MH i2c: 01 00 00 57 00 57 [17:19:36]Write i2c OK [17:19:36]MH_I2C_Read... [17:19:37]*** Cut start [17:19:37]*** Purtial cut [17:19:37]*** Stage 1: CUTSNS_PIN = 1 [17:19:37]Read from MH i2c: 01 [17:19:37]MH_I2C_Read... [17:19:37]*** Stop cut motor [17:19:37]*** Cut end [17:19:37]Read from MH i2c: 01 07 00 [17:19:37]MH_I2C_Read... [17:19:37]Read from MH i2c: 01 07 00 57 00 00 00 00 00 00 FF 0F 6C [17:19:37]process_action close_receipt done [17:19:37]requested_data is exist [17:19:37]produce_requested_data [17:19:37]requested_item fm.sn is exist - process it [17:19:37]wFMCommunicate request_size=4 [17:19:37]MH_SAM_APDU [17:19:37]CAPDU: 80 11 00 00 [17:19:37]Write to MH i2c: E2 08 00 58 00 80 11 00 00 00 00 00 00 D2 [17:19:37]Write i2c OK [17:19:37]MH_I2C_Read... [17:19:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:37]Read from MH i2c: E2 [17:19:37]MH_I2C_Read... [17:19:37]Read from MH i2c: E2 17 00 [17:19:37]MH_I2C_Read... [17:19:37]Read from MH i2c: E2 17 00 58 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 27 [17:19:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:19:37]wFMCommunicate OK [17:19:37]requested_item fd.num is exist - process it [17:19:37]SAM_PROTO_GetFieldsCounters [17:19:37]wFMCommunicate request_size=4 [17:19:37]MH_SAM_APDU [17:19:37]CAPDU: 80 13 00 00 [17:19:37]Write to MH i2c: E2 08 00 59 00 80 13 00 00 00 00 00 00 D5 [17:19:37]Write i2c OK [17:19:37]MH_I2C_Read... [17:19:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:37]Read from MH i2c: E2 [17:19:37]MH_I2C_Read... [17:19:37]Read from MH i2c: E2 62 00 [17:19:37]MH_I2C_Read... [17:19:37]Read from MH i2c: E2 62 00 59 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 88 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 72 01 00 00 5E 04 04 00 72 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 16 [17:19:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 88 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 72 01 00 00 5E 04 04 00 72 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:37]wFMCommunicate OK [17:19:37]SAM_PROTO_GetFieldsCounters done [17:19:37]requested_item shift.num is exist - process it [17:19:37]requested_item shift.opened is exist - process it [17:19:37]req_shift_opened [17:19:37]FM_GetShiftState [17:19:37]SAM_PROTO_GetShiftState [17:19:37]wFMCommunicate request_size=4 [17:19:37]MH_SAM_APDU [17:19:37]CAPDU: 80 13 01 00 [17:19:37]Write to MH i2c: E2 08 00 5A 00 80 13 01 00 00 00 00 00 D7 [17:19:37]Write i2c OK [17:19:37]MH_I2C_Read... [17:19:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:37]Read from MH i2c: E2 [17:19:37]MH_I2C_Read... [17:19:37]Read from MH i2c: E2 0E 00 [17:19:37]MH_I2C_Read... [17:19:37]Read from MH i2c: E2 0E 00 5A 00 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E6 [17:19:37]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:19:37]wFMCommunicate OK [17:19:37]SAM_PROTO_GetShiftState done [17:19:37]FM_GetShiftState done [17:19:37]req_shift_opened done [17:19:37]requested_item shift.open_date is exist - process it [17:19:37]req_shift_open_date [17:19:37]req_shift_open_date done [17:19:37]produce_requested_data done [17:19:37]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201608,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [17:19:37]process_action_free close_receipt [17:19:37]json_value_free [17:19:37]json_value_free done [17:19:37]process_json_proto returns [17:19:37]Send response to host [17:19:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201608,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [17:19:37]free response buf [17:19:37]execute_script done [17:19:37]execute_script returns [17:19:37]free content buf [17:19:37]Sock 9.Close socket [17:19:37]Sock 9.Thread stoped [17:19:38]ConnectInit Can't connect to host [17:19:40]ConnectInit Can't take IP for lk.salyk.kg [17:19:40]CommunicateWithHost connect error [17:19:40]CommunicateWithHost err = -1 [17:19:40]OFD Sender: Server communicate error [17:19:45]OFD Sender: Processing packet 201608 [packets to send 112, broken 111] [17:19:45]ProducePacketName [17:19:45]name=ofd_packets/00201608 [17:19:45]OFD Sender: To server: pG, [17:19:45]CommunicateWithHost lk.salyk.kg:30040 [17:19:45]ConnectInit lk.salyk.kg [17:19:45]Connected sock=9 [17:19:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E3 DF 07 01 88 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 32 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 72 01 00 00 F4 03 04 00 A6 24 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 88 13 03 00 35 04 06 00 13 19 80 44 E9 6B 33 26 CA 92 9D 33 21 53 [17:19:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 8F 4C 47 00 03 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 88 13 03 00 F4 03 04 00 58 D0 1C 67 B6 04 01 00 00 7A 4A B2 C8 DA 39 EA 28 [17:19:46]CommunicateWithHost err = 0 [17:19:46]CheckOFDResponse [17:19:46]1017 (14) - 77093643461234 [17:19:46]1041 (16) - 0000000000871756 [17:19:46]1040 (4) - 201608 [17:19:46]1012 (4) - 26.10.2024 11:19 [17:19:46]1206 (1) - 0 [17:19:46]OFD Sender: Remove packet 201608 [17:19:46]ProducePacketName [17:19:46]name=ofd_packets/00201608 [17:19:46]NVStorageDeleteData [17:19:46]OFD Sender: No OFD packet to send [17:19:51]OFD Sender: No OFD packet to send [17:19:56]OFD Sender: No OFD packet to send [17:20:01]OFD Sender: No OFD packet to send [17:20:06]OFD Sender: No OFD packet to send [17:20:11]OFD Sender: No OFD packet to send [17:20:16]OFD Sender: No OFD packet to send [17:20:21]OFD Sender: No OFD packet to send [17:20:26]OFD Sender: No OFD packet to send [17:20:31]OFD Sender: No OFD packet to send [17:20:36]OFD Sender: No OFD packet to send [17:20:41]OFD Sender: No OFD packet to send [17:20:46]OFD Sender: No OFD packet to send [17:26:12]ConnectInit Can't connect to host [17:26:16]OFD Sender: Processing packet 201609 [packets to send 114, broken 111] [17:26:16]ProducePacketName [17:26:16]name=ofd_packets/00201609 [17:26:16]OFD Sender: To server: pG, [17:26:16]CommunicateWithHost lk.salyk.kg:30040 [17:26:16]ConnectInit lk.salyk.kg [17:26:16]Connected sock=7 [17:26:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 C2 AD 04 01 41 40 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 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 28 25 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 89 13 03 00 35 04 06 00 6E 49 6A 2A FD 23 4C EF 60 41 68 72 6E 36 [17:26:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 AD 26 47 00 00 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 89 13 03 00 F4 03 04 00 DF D1 1C 67 B6 04 01 00 00 42 AB A2 4B BE 4B B2 00 [17:26:17]CommunicateWithHost err = 0 [17:26:17]CheckOFDResponse [17:26:17]1017 (14) - 77093643461234 [17:26:17]1041 (16) - 0000000000871756 [17:26:17]1040 (4) - 201609 [17:26:17]1012 (4) - 26.10.2024 11:26 [17:26:17]1206 (1) - 0 [17:26:17]OFD Sender: Remove packet 201609 [17:26:17]ProducePacketName [17:26:17]name=ofd_packets/00201609 [17:26:17]NVStorageDeleteData [17:26:17]OFD Sender: Processing packet 201610 [packets to send 113, broken 111] [17:26:17]ProducePacketName [17:26:17]name=ofd_packets/00201610 [17:26:17]OFD Sender: To server: pG, [17:26:17]CommunicateWithHost lk.salyk.kg:30040 [17:26:17]ConnectInit lk.salyk.kg [17:26:17]Connected sock=7 [17:26:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 45 D9 07 01 B0 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 32 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 74 01 00 00 F4 03 04 00 79 25 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8A 13 03 00 35 04 06 00 84 79 CB A1 FE 03 61 A4 9F 5C 76 26 0E AB [17:26:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 90 8E 47 00 B3 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8A 13 03 00 F4 03 04 00 E0 D1 1C 67 B6 04 01 00 00 FA 6E AB 68 CB 50 4B 91 [17:26:18]CommunicateWithHost err = 0 [17:26:18]CheckOFDResponse [17:26:18]1017 (14) - 77093643461234 [17:26:18]1041 (16) - 0000000000871756 [17:26:18]1040 (4) - 201610 [17:26:18]1012 (4) - 26.10.2024 11:26 [17:26:18]1206 (1) - 0 [17:26:18]OFD Sender: Remove packet 201610 [17:26:18]ProducePacketName [17:26:18]name=ofd_packets/00201610 [17:26:18]NVStorageDeleteData [17:26:18]OFD Sender: Processing packet 201611 [packets to send 112, broken 111] [17:26:18]ProducePacketName [17:26:18]name=ofd_packets/00201611 [17:26:18]OFD Sender: To server: pG, [17:26:18]CommunicateWithHost lk.salyk.kg:30040 [17:26:18]ConnectInit lk.salyk.kg [17:26:18]Connected sock=7 [17:26:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A5 21 07 01 20 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 75 01 00 00 F4 03 04 00 CF 25 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8B 13 03 00 35 04 06 00 38 F4 71 5C 6E 8F A5 2C 80 42 CD 99 75 14 [17:26:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 0A 00 47 00 6E B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8B 13 03 00 F4 03 04 00 E1 D1 1C 67 B6 04 01 00 00 B4 25 AE 9B 24 30 38 DC [17:26:18]CommunicateWithHost err = 0 [17:26:18]CheckOFDResponse [17:26:18]1017 (14) - 77093643461234 [17:26:18]1041 (16) - 0000000000871756 [17:26:18]1040 (4) - 201611 [17:26:18]1012 (4) - 26.10.2024 11:26 [17:26:18]1206 (1) - 0 [17:26:18]OFD Sender: Remove packet 201611 [17:26:18]ProducePacketName [17:26:18]name=ofd_packets/00201611 [17:26:18]NVStorageDeleteData [17:26:19]OFD Sender: No OFD packet to send [17:26:24]OFD Sender: No OFD packet to send [17:26:29]OFD Sender: No OFD packet to send [17:26:34]OFD Sender: No OFD packet to send [17:26:39]OFD Sender: No OFD packet to send [17:26:44]OFD Sender: No OFD packet to send [17:26:49]OFD Sender: No OFD packet to send [17:26:54]OFD Sender: No OFD packet to send [17:26:59]OFD Sender: No OFD packet to send [17:27:04]OFD Sender: No OFD packet to send [17:27:09]OFD Sender: No OFD packet to send [17:27:14]OFD Sender: No OFD packet to send [17:27:19]OFD Sender: No OFD packet to send [17:27:24]OFD Sender: No OFD packet to send [17:27:29]OFD Sender: No OFD packet to send [17:27:34]OFD Sender: No OFD packet to send [17:27:39]OFD Sender: No OFD packet to send [17:27:44]OFD Sender: No OFD packet to send [17:27:49]OFD Sender: No OFD packet to send [17:27:54]OFD Sender: No OFD packet to send [17:27:59]OFD Sender: No OFD packet to send [17:28:04]OFD Sender: No OFD packet to send [17:28:09]OFD Sender: No OFD packet to send [17:28:14]OFD Sender: No OFD packet to send [17:28:19]OFD Sender: No OFD packet to send [17:28:24]OFD Sender: No OFD packet to send [17:28:29]OFD Sender: No OFD packet to send [17:28:34]OFD Sender: No OFD packet to send [17:28:39]OFD Sender: No OFD packet to send [17:28:44]OFD Sender: No OFD packet to send [17:28:49]OFD Sender: No OFD packet to send [17:28:54]OFD Sender: No OFD packet to send [17:28:59]OFD Sender: No OFD packet to send [17:29:04]OFD Sender: No OFD packet to send [17:29:09]OFD Sender: No OFD packet to send [17:29:14]OFD Sender: No OFD packet to send [17:29:19]OFD Sender: No OFD packet to send [17:29:24]OFD Sender: No OFD packet to send [17:29:29]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29:44]OFD Sender: No OFD packet to send [17:29:49]OFD Sender: No OFD packet to send [17:29:54]OFD Sender: No OFD packet to send [17:29:59]OFD Sender: No OFD packet to send [17:30:02]accept exits with 9 [17:30:02]New connection [17:30:02]New thread 3067424100 created [17:30:02]Thread 3067280740 joined [17:30:02]Waiting for new connection... [17:30:02] Sock 9.Parse request [17:30:02]Sock 9.Check first char [17:30:02]Sock 9.First char is OK [17:30:02]request: POST /json_proto HTTP/1.0 [17:30:02]Method: POST [17:30:02]URL: /json_proto [17:30:02]Method is POST - this is cgi request [17:30:02]url: /json_proto [17:30:02]query_string will be loaded in cgi processing [17:30:02]execute_cgi json_proto POST (null) [17:30:02]execute_cgi path=json_proto method=POST [17:30:02]POST find Content-Length [17:30:02]Host: 172.17.63.195:8080 [17:30:02]Content-Length: 677 [17:30:02]Content-Type: application/json [17:30:02] [17:30:02]POST finish read [17:30:02]Found Content-Length = 677 [17:30:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [17:30:02]execute_script... [17:30: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)449368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [17:30:02]POST & json_proto [17:30:02]process_json_proto [17:30:02]json parsed OK: [17:30:02]protocol is kg_v1.0 [17:30:02]action value=close_receipt [17:30:02]process_action close_receipt [17:30:02]cmd_close_receipt [17:30:02]MH_GetDate [17:30:02]Write to MH i2c: F0 00 00 3C 01 2C [17:30:02]Write i2c OK [17:30:02]MH_I2C_Read... [17:30:02]Read from MH i2c: F0 [17:30:02]MH_I2C_Read... [17:30:02]Read from MH i2c: F0 09 00 [17:30:02]MH_I2C_Read... [17:30:02]Read from MH i2c: F0 09 00 3C 01 00 1B 27 1D 67 68 46 19 67 29 [17:30:02]GetLastDocTimeStamp 1729963471 [17:30:02]current date 1729963803 [17:30:02]FM_GetShiftState [17:30:02]SAM_PROTO_GetShiftState [17:30:02]wFMCommunicate request_size=4 [17:30:02]MH_SAM_APDU [17:30:02]CAPDU: 80 13 01 00 [17:30:02]Write to MH i2c: E2 08 00 3D 01 80 13 01 00 00 00 00 00 BB [17:30:02]Write i2c OK [17:30:02]MH_I2C_Read... [17:30:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:02]Read from MH i2c: E2 [17:30:02]MH_I2C_Read... [17:30:02]Read from MH i2c: E2 0E 00 [17:30:02]MH_I2C_Read... [17:30:02]Read from MH i2c: E2 0E 00 3D 01 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 CA [17:30:02]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:30:02]wFMCommunicate OK [17:30:02]SAM_PROTO_GetShiftState done [17:30:02]FM_GetShiftState done [17:30:02]opened in 1729900879 [17:30:02]opened+sec_in_day 1729987279 [17:30:02]quantity*price = 50041 [17:30:02]sum+1 = 50042 [17:30:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 374 26.10.2024 17:30 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201612 ФПД: 253797352291804 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T173003&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201612&fm=253797352291804&tin=02508201610067®Number=0000000000091777&sum=50000 [17:30:04]StoreToDocumentArchive [17:30:04]shift 543 fd 201612 [17:30:04]save to /storage/0543/doc_00201612 [17:30:04]save last doc name /storage/0543/doc_00201612 to /storage/kkm_last_doc_name [17:30:04]save OK [17:30:04]Clear old archive folders... [17:30:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:30:04]tlvbuf is 01F9E9B0 [17:30:04]SAM_PROTO_ClearQueue [17:30:04]wFMCommunicate request_size=4 [17:30:04]MH_SAM_APDU [17:30:04]CAPDU: 80 09 00 00 [17:30:04]Write to MH i2c: E2 08 00 4A 01 80 09 00 00 00 00 00 00 BD [17:30:04]Write i2c OK [17:30:04]MH_I2C_Read... [17:30:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:30:04]Read from MH i2c: E2 [17:30:04]MH_I2C_Read... [17:30:04]Read from MH i2c: E2 03 00 [17:30:04]MH_I2C_Read... [17:30:04]Read from MH i2c: E2 03 00 4A 01 00 90 00 BF [17:30:04]RAPDU: 90 00 [17:30:04]wFMCommunicate OK [17:30:04]SAM_PROTO_ClearQueue done [17:30:04]KKMCreateOFDPacket [17:30:04]OFDProtocolAddRootSTLVToBuf [17:30:04]FM_MakeSignedData [17:30:04]FM_MakeSignedData [17:30:04]SAM_PROTO_SignData [17:30:04]wFMCommunicate request_size=4 [17:30:04]MH_SAM_APDU [17:30:04]CAPDU: 80 0D 01 02 [17:30:04]Write to MH i2c: E2 08 00 4B 01 80 0D 01 02 00 00 00 00 C5 [17:30:04]Write i2c OK [17:30:04]MH_I2C_Read... [17:30:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:30:04]Read from MH i2c: E2 [17:30:04]MH_I2C_Read... [17:30:04]Read from MH i2c: E2 03 00 [17:30:04]MH_I2C_Read... [17:30:04]Read from MH i2c: E2 03 00 4B 01 00 90 00 C0 [17:30:04]RAPDU: 90 00 [17:30:04]wFMCommunicate OK [17:30:04]wFMCommunicate request_size=255 [17:30:04]MH_SAM_APDU [17:30: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 32 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 76 01 00 00 F4 03 04 00 1B 27 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8C 13 03 00 35 04 06 00 E6 [17:30:04]Write to MH i2c: E2 02 01 4C 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 32 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 76 01 00 00 F4 03 04 00 1B 27 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8C 13 03 00 35 04 06 00 E6 00 00 3F [17:30:04]Write i2c OK [17:30:04]MH_I2C_Read... [17:30:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:04]Read from MH i2c: E2 [17:30:04]MH_I2C_Read... [17:30:04]Read from MH i2c: E2 03 00 [17:30:04]MH_I2C_Read... [17:30:04]Read from MH i2c: E2 03 00 4C 01 00 90 00 C1 [17:30:04]RAPDU: 90 00 [17:30:04]wFMCommunicate OK [17:30:04]wFMCommunicate request_size=10 [17:30:04]MH_SAM_APDU [17:30:04]CAPDU: 80 0D 02 02 05 D3 CD 07 3D DC [17:30:04]Write to MH i2c: E2 0D 00 4D 01 80 0D 02 02 05 00 D3 CD 07 3D DC 00 00 92 [17:30:04]Write i2c OK [17:30:04]MH_I2C_Read... [17:30:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:04]Read from MH i2c: E2 [17:30:04]MH_I2C_Read... [17:30:04]Read from MH i2c: E2 03 00 [17:30:04]MH_I2C_Read... [17:30:04]Read from MH i2c: E2 03 00 4D 01 00 90 00 C2 [17:30:04]RAPDU: 90 00 [17:30:04]wFMCommunicate OK [17:30:04]wFMCommunicate request_size=4 [17:30:04]MH_SAM_APDU [17:30:04]CAPDU: 80 0D 03 02 [17:30:04]Write to MH i2c: E2 08 00 4E 01 80 0D 03 02 00 00 00 00 CA [17:30:04]Write i2c OK [17:30:04]MH_I2C_Read... [17:30:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:30:04]Read from MH i2c: E2 [17:30:04]MH_I2C_Read... [17:30:04]Read from MH i2c: E2 0B 00 [17:30:04]MH_I2C_Read... [17:30:04]Read from MH i2c: E2 0B 00 4E 01 00 02 D5 5E 8B EF C2 17 24 90 00 77 [17:30:04]RAPDU: 02 D5 5E 8B EF C2 17 24 90 00 [17:30:04]wFMCommunicate OK [17:30:04]SAM_PROTO_SignData done [17:30:04]FM_MakeSignedData done [17:30:04]CreateOFDProtocolMessage [17:30:04]wFMCommunicate request_size=4 [17:30:04]MH_SAM_APDU [17:30:04]CAPDU: 80 11 00 00 [17:30:04]Write to MH i2c: E2 08 00 4F 01 80 11 00 00 00 00 00 00 CA [17:30:04]Write i2c OK [17:30:04]MH_I2C_Read... [17:30:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:04]Read from MH i2c: E2 [17:30:04]MH_I2C_Read... [17:30:04]Read from MH i2c: E2 17 00 [17:30:04]MH_I2C_Read... [17:30:04]Read from MH i2c: E2 17 00 4F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1F [17:30:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:30:04]wFMCommunicate OK [17:30:04]CreateOFDProtocolMessage done [17:30:04]OFDSenderStorePacket 201612 [17:30:04]StoreOFDPacket docnum=201612 [17:30:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F5 7B 07 01 1D 44 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 32 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 76 01 00 00 F4 03 04 00 1B 27 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8C 13 03 00 35 04 06 00 E6 D3 CD 07 3D DC 02 D5 5E 8B EF C2 17 24 [17:30:04]CheckFolder [17:30:04]dirname=/storage/ofd_packets [17:30:04]CheckFolder done [17:30:04]ProducePacketName [17:30:04]name=ofd_packets/00201612 [17:30:04]NVStorageSaveData ofd_packets/00201612 [17:30:04]File name is /storage/ofd_packets/00201612 [17:30:04]Write 301 bytes [17:30:04]NVStorageSaveData done [17:30:04]OFDSenderStorePacket done [17:30:04]KKMCreateOFDPacket done [17:30:04]NVStorageSaveData kkm_last_timestamp [17:30:04]File name is /storage/kkm_last_timestamp [17:30:04]Write 4 bytes [17:30:04]NVStorageSaveData done [17:30:04]ExternCall_PrintAddStr [17:30:04]wPrintStart [17:30:04]Write to MH i2c: 01 00 00 50 01 51 [17:30:04]Write i2c OK [17:30:04]MH_I2C_Read... [17:30:04]Read from MH i2c: 01 [17:30:04]MH_I2C_Read... [17:30:04]Read from MH i2c: 01 07 00 [17:30:04]MH_I2C_Read... [17:30:04]Read from MH i2c: 01 07 00 50 01 00 00 00 00 00 FF 0F 66 [17:30:04]RasterBufferAndPrint [17:30:04]line Счет N : (1)449368 [17:30:04]line ИНН: 02508201610067 [17:30:04]line Контрольно-Кассовый Чек [17:30:04]line ПРОДАЖА [17:30:04]line ТРК (МРК, ГНК) : 41 [17:30:04]line Товар: 2710124130 [17:30:04]line Аи-92-К-2 [17:30:04]line 7.480 * 66.90 [17:30:04]line = 500.41 [17:30:04]line НДС 12% НСП 1% [17:30:04]line > о реализуемом товаре [17:30:04]line ОКРУГЛЕНИЕ: -0.41 [17:30:04]line ИТОГО: 500.00 [17:30:04]line Внесено: 500.00 [17:30:04]line СДАЧА: 0.00 [17:30:04]line НСП 1% : 4.43 [17:30:04]line НДС 12% : 53.14 [17:30:04]line Наличными: 500.00 [17:30:04]line Безнал.: 0.00 [17:30:04]line Место: АЗС № 171 "Партнер Нефть" [17:30:04]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:30:04]line СНО: Общий режим [17:30:04]line Чек 374 26.10.2024 17:30 [17:30:04]line Смена: 543 ФФД: 1.0 [17:30:04]line ЗНМ: 0300000109 [17:30:04]line РНМ: 0000000000091777 [17:30:04]line Версия ККМ: 001 [17:30:04]line ФМ: 0000000000871756 [17:30:04]line ФД: 201612 [17:30:04]line ФПД: 253797352291804 [17:30:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T173003&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201612&fm=253797352291804&tin=02508201610067®Number=0000000000091777&sum=50000 [17:30:04]OFD Sender: Processing packet 201612 [packets to send 112, broken 111] [17:30:04]ProducePacketName [17:30:04]name=ofd_packets/00201612 [17:30:04]OFD Sender: To server: pG, [17:30:04]CommunicateWithHost lk.salyk.kg:30040 [17:30:04]ConnectInit lk.salyk.kg [17:30:04]written 0, free lines is 4095 [17:30:05]Connected sock=10 [17:30:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F5 7B 07 01 1D 44 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 32 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 76 01 00 00 F4 03 04 00 1B 27 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8C 13 03 00 35 04 06 00 E6 D3 CD 07 3D DC 02 D5 5E 8B EF C2 17 24 [17:30:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 03 C5 47 00 DA 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8C 13 03 00 F4 03 04 00 C3 D2 1C 67 B6 04 01 00 00 A9 E1 A6 AF B1 44 BE AC [17:30:05]CommunicateWithHost err = 0 [17:30:05]CheckOFDResponse [17:30:05]1017 (14) - 77093643461234 [17:30:05]1041 (16) - 0000000000871756 [17:30:05]1040 (4) - 201612 [17:30:05]1012 (4) - 26.10.2024 11:30 [17:30:05]1206 (1) - 0 [17:30:05]OFD Sender: Remove packet 201612 [17:30:05]ProducePacketName [17:30:05]name=ofd_packets/00201612 [17:30:05]NVStorageDeleteData [17:30:05]Write to MH i2c: 01 00 00 7B 01 7C [17:30:05]Write i2c OK [17:30:05]MH_I2C_Read... [17:30:05]Read from MH i2c: 01 [17:30:05]MH_I2C_Read... [17:30:05]Read from MH i2c: 01 07 00 [17:30:05]MH_I2C_Read... [17:30:05]Read from MH i2c: 01 07 00 7B 01 00 00 00 00 00 99 0C 28 [17:30:05]RasterBufferAndPrint [17:30:05]line [17:30:05]line [17:30:05]line [17:30:05]line [17:30:05]line [17:30:05]written 0, free lines is 3231 [17:30:05]MH_Cut [17:30:05]Write to MH i2c: D1 01 00 82 01 01 55 [17:30:05]Write i2c OK [17:30:05]MH_I2C_Read... [17:30:05]Read from MH i2c: D1 [17:30:05]MH_I2C_Read... [17:30:05]Read from MH i2c: D1 01 00 [17:30:05]MH_I2C_Read... [17:30:05]Read from MH i2c: D1 01 00 82 01 00 54 [17:30:05]Write to MH i2c: 01 00 00 83 01 84 [17:30:05]Write i2c OK [17:30:05]MH_I2C_Read... [17:30:05]OFD Sender: No OFD packet to send [17:30:06]*** Cut start [17:30:06]*** Purtial cut [17:30:06]*** Stage 1: CUTSNS_PIN = 1 [17:30:06]Read from MH i2c: 01 [17:30:06]MH_I2C_Read... [17:30:06]*** Stop cut motor [17:30:06]*** Cut end [17:30:06]Read from MH i2c: 01 07 00 [17:30:06]MH_I2C_Read... [17:30:06]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 FF 0F 99 [17:30:06]process_action close_receipt done [17:30:06]requested_data is exist [17:30:06]produce_requested_data [17:30:06]requested_item fm.sn is exist - process it [17:30:06]wFMCommunicate request_size=4 [17:30:06]MH_SAM_APDU [17:30:06]CAPDU: 80 11 00 00 [17:30:06]Write to MH i2c: E2 08 00 84 01 80 11 00 00 00 00 00 00 FF [17:30:06]Write i2c OK [17:30:06]MH_I2C_Read... [17:30:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:06]Read from MH i2c: E2 [17:30:06]MH_I2C_Read... [17:30:06]Read from MH i2c: E2 17 00 [17:30:06]MH_I2C_Read... [17:30:06]Read from MH i2c: E2 17 00 84 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 54 [17:30:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:30:06]wFMCommunicate OK [17:30:06]requested_item fd.num is exist - process it [17:30:06]SAM_PROTO_GetFieldsCounters [17:30:06]wFMCommunicate request_size=4 [17:30:06]MH_SAM_APDU [17:30:06]CAPDU: 80 13 00 00 [17:30:06]Write to MH i2c: E2 08 00 85 01 80 13 00 00 00 00 00 00 02 [17:30:06]Write i2c OK [17:30:06]MH_I2C_Read... [17:30:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:30:06]Read from MH i2c: E2 [17:30:06]MH_I2C_Read... [17:30:06]Read from MH i2c: E2 62 00 [17:30:06]MH_I2C_Read... [17:30:06]Read from MH i2c: E2 62 00 85 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8C 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 53 [17:30:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8C 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:30:06]wFMCommunicate OK [17:30:06]SAM_PROTO_GetFieldsCounters done [17:30:06]requested_item shift.num is exist - process it [17:30:06]requested_item shift.opened is exist - process it [17:30:06]req_shift_opened [17:30:06]FM_GetShiftState [17:30:06]SAM_PROTO_GetShiftState [17:30:06]wFMCommunicate request_size=4 [17:30:06]MH_SAM_APDU [17:30:06]CAPDU: 80 13 01 00 [17:30:06]Write to MH i2c: E2 08 00 86 01 80 13 01 00 00 00 00 00 04 [17:30:06]Write i2c OK [17:30:06]MH_I2C_Read... [17:30:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:06]Read from MH i2c: E2 [17:30:06]MH_I2C_Read... [17:30:06]Read from MH i2c: E2 0E 00 [17:30:06]MH_I2C_Read... [17:30:06]Read from MH i2c: E2 0E 00 86 01 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 13 [17:30:06]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:30:06]wFMCommunicate OK [17:30:06]SAM_PROTO_GetShiftState done [17:30:06]FM_GetShiftState done [17:30:06]req_shift_opened done [17:30:06]requested_item shift.open_date is exist - process it [17:30:06]req_shift_open_date [17:30:06]req_shift_open_date done [17:30:06]produce_requested_data done [17:30:06]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201612,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [17:30:06]process_action_free close_receipt [17:30:06]json_value_free [17:30:06]json_value_free done [17:30:06]process_json_proto returns [17:30:06]Send response to host [17:30:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201612,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [17:30:06]free response buf [17:30:06]execute_script done [17:30:06]execute_script returns [17:30:06]free content buf [17:30:06]Sock 9.Close socket [17:30:06]Sock 9.Thread stoped [17:30:10]OFD Sender: No OFD packet to send [17:30:15]OFD Sender: No OFD packet to send [17:30:20]OFD Sender: No OFD packet to send [17:30:25]OFD Sender: No OFD packet to send [17:30:30]OFD Sender: No OFD packet to send [17:30:35]OFD Sender: No OFD packet to send [17:30:40]OFD Sender: No OFD packet to send [17:30:45]OFD Sender: No OFD packet to send [17:30:50]OFD Sender: No OFD packet to send [17:30:54]accept exits with 7 [17:30:54]New connection [17:30:54]New thread 3067280740 created [17:30:54]Thread 3067424100 joined [17:30:54]Waiting for new connection... [17:30:54] Sock 7.Parse request [17:30:54]Sock 7.Check first char [17:30:54]Sock 7.First char is OK [17:30:54]request: POST /json_proto HTTP/1.0 [17:30:54]Method: POST [17:30:54]URL: /json_proto [17:30:54]Method is POST - this is cgi request [17:30:54]url: /json_proto [17:30:54]query_string will be loaded in cgi processing [17:30:54]execute_cgi json_proto POST (null) [17:30:54]execute_cgi path=json_proto method=POST [17:30:54]POST find Content-Length [17:30:54]Host: 172.17.63.195:8080 [17:30:54]Content-Length: 677 [17:30:54]Content-Type: application/json [17:30:54] [17:30:54]POST finish read [17:30:54]Found Content-Length = 677 [17:30:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [17:30:54]execute_script... [17:30:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [17:30:54]POST & json_proto [17:30:54]process_json_proto [17:30:54]json parsed OK: [17:30:54]protocol is kg_v1.0 [17:30:54]action value=close_receipt [17:30:54]process_action close_receipt [17:30:54]cmd_close_receipt [17:30:54]MH_GetDate [17:30:54]Write to MH i2c: F0 00 00 87 01 77 [17:30:54]Write i2c OK [17:30:54]MH_I2C_Read... [17:30:54]Read from MH i2c: F0 [17:30:54]MH_I2C_Read... [17:30:54]Read from MH i2c: F0 09 00 [17:30:54]MH_I2C_Read... [17:30:54]Read from MH i2c: F0 09 00 87 01 00 4F 27 1D 67 68 46 19 67 A8 [17:30:54]GetLastDocTimeStamp 1729963803 [17:30:54]current date 1729963855 [17:30:54]FM_GetShiftState [17:30:54]SAM_PROTO_GetShiftState [17:30:54]wFMCommunicate request_size=4 [17:30:54]MH_SAM_APDU [17:30:54]CAPDU: 80 13 01 00 [17:30:54]Write to MH i2c: E2 08 00 88 01 80 13 01 00 00 00 00 00 06 [17:30:54]Write i2c OK [17:30:54]MH_I2C_Read... [17:30:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:55]Read from MH i2c: E2 [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: E2 0E 00 [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: E2 0E 00 88 01 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 15 [17:30:55]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:30:55]wFMCommunicate OK [17:30:55]SAM_PROTO_GetShiftState done [17:30:55]FM_GetShiftState done [17:30:55]opened in 1729900879 [17:30:55]opened+sec_in_day 1729987279 [17:30:55]quantity*price = 20003 [17:30:55]sum+1 = 20004 [17:30:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 375 26.10.2024 17:30 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201613 ФПД: 148261264906584 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T173055&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201613&fm=148261264906584&tin=02508201610067®Number=0000000000091777&sum=20000 [17:30:56]StoreToDocumentArchive [17:30:56]shift 543 fd 201613 [17:30:56]save to /storage/0543/doc_00201613 [17:30:56]save last doc name /storage/0543/doc_00201613 to /storage/kkm_last_doc_name [17:30:56]save OK [17:30:56]Clear old archive folders... [17:30:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:30:56]tlvbuf is 01FCC9E0 [17:30:56]SAM_PROTO_ClearQueue [17:30:56]wFMCommunicate request_size=4 [17:30:56]MH_SAM_APDU [17:30:56]CAPDU: 80 09 00 00 [17:30:56]Write to MH i2c: E2 08 00 95 01 80 09 00 00 00 00 00 00 08 [17:30:56]Write i2c OK [17:30:56]MH_I2C_Read... [17:30:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:30:56]Read from MH i2c: E2 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 03 00 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 03 00 95 01 00 90 00 0A [17:30:56]RAPDU: 90 00 [17:30:56]wFMCommunicate OK [17:30:56]SAM_PROTO_ClearQueue done [17:30:56]KKMCreateOFDPacket [17:30:56]OFDProtocolAddRootSTLVToBuf [17:30:56]FM_MakeSignedData [17:30:56]FM_MakeSignedData [17:30:56]SAM_PROTO_SignData [17:30:56]wFMCommunicate request_size=4 [17:30:56]MH_SAM_APDU [17:30:56]CAPDU: 80 0D 01 02 [17:30:56]Write to MH i2c: E2 08 00 96 01 80 0D 01 02 00 00 00 00 10 [17:30:56]Write i2c OK [17:30:56]MH_I2C_Read... [17:30:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:30:56]Read from MH i2c: E2 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 03 00 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 03 00 96 01 00 90 00 0B [17:30:56]RAPDU: 90 00 [17:30:56]wFMCommunicate OK [17:30:56]wFMCommunicate request_size=255 [17:30:56]MH_SAM_APDU [17:30: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 32 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 77 01 00 00 F4 03 04 00 4F 27 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8D 13 03 00 35 04 06 00 86 [17:30:56]Write to MH i2c: E2 02 01 97 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 77 01 00 00 F4 03 04 00 4F 27 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8D 13 03 00 35 04 06 00 86 00 00 22 [17:30:56]Write i2c OK [17:30:56]MH_I2C_Read... [17:30:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:56]Read from MH i2c: E2 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 03 00 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 03 00 97 01 00 90 00 0C [17:30:56]RAPDU: 90 00 [17:30:56]wFMCommunicate OK [17:30:56]wFMCommunicate request_size=10 [17:30:56]MH_SAM_APDU [17:30:56]CAPDU: 80 0D 02 02 05 D7 C4 07 59 58 [17:30:56]Write to MH i2c: E2 0D 00 98 01 80 0D 02 02 05 00 D7 C4 07 59 58 00 00 70 [17:30:56]Write i2c OK [17:30:56]MH_I2C_Read... [17:30:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:56]Read from MH i2c: E2 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 03 00 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 03 00 98 01 00 90 00 0D [17:30:56]RAPDU: 90 00 [17:30:56]wFMCommunicate OK [17:30:56]wFMCommunicate request_size=4 [17:30:56]MH_SAM_APDU [17:30:56]CAPDU: 80 0D 03 02 [17:30:56]Write to MH i2c: E2 08 00 99 01 80 0D 03 02 00 00 00 00 15 [17:30:56]Write i2c OK [17:30:56]MH_I2C_Read... [17:30:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:30:56]Read from MH i2c: E2 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 0B 00 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 0B 00 99 01 00 B0 55 35 78 32 C1 E2 A2 90 00 3F [17:30:56]RAPDU: B0 55 35 78 32 C1 E2 A2 90 00 [17:30:56]wFMCommunicate OK [17:30:56]SAM_PROTO_SignData done [17:30:56]FM_MakeSignedData done [17:30:56]CreateOFDProtocolMessage [17:30:56]wFMCommunicate request_size=4 [17:30:56]MH_SAM_APDU [17:30:56]CAPDU: 80 11 00 00 [17:30:56]Write to MH i2c: E2 08 00 9A 01 80 11 00 00 00 00 00 00 15 [17:30:56]Write i2c OK [17:30:56]MH_I2C_Read... [17:30:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:56]Read from MH i2c: E2 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 17 00 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 17 00 9A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6A [17:30:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:30:56]wFMCommunicate OK [17:30:56]CreateOFDProtocolMessage done [17:30:56]OFDSenderStorePacket 201613 [17:30:56]StoreOFDPacket docnum=201613 [17:30:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F0 A9 07 01 6C D3 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 32 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 77 01 00 00 F4 03 04 00 4F 27 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8D 13 03 00 35 04 06 00 86 D7 C4 07 59 58 B0 55 35 78 32 C1 E2 A2 [17:30:56]CheckFolder [17:30:56]dirname=/storage/ofd_packets [17:30:56]CheckFolder done [17:30:56]ProducePacketName [17:30:56]name=ofd_packets/00201613 [17:30:56]NVStorageSaveData ofd_packets/00201613 [17:30:56]File name is /storage/ofd_packets/00201613 [17:30:56]Write 301 bytes [17:30:56]NVStorageSaveData done [17:30:56]OFDSenderStorePacket done [17:30:56]KKMCreateOFDPacket done [17:30:56]NVStorageSaveData kkm_last_timestamp [17:30:56]File name is /storage/kkm_last_timestamp [17:30:56]Write 4 bytes [17:30:56]NVStorageSaveData done [17:30:56]ExternCall_PrintAddStr [17:30:56]wPrintStart [17:30:56]Write to MH i2c: 01 00 00 9B 01 9C [17:30:56]Write i2c OK [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: 01 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: 01 07 00 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: 01 07 00 9B 01 00 00 00 00 00 FF 0F B1 [17:30:56]RasterBufferAndPrint [17:30:56]line Счет N : (1)449369 [17:30:56]line ИНН: 02508201610067 [17:30:56]line Контрольно-Кассовый Чек [17:30:56]line ПРОДАЖА [17:30:56]line ТРК (МРК, ГНК) : 62 [17:30:56]line Товар: 2710124130 [17:30:56]line Аи-92-К-2 [17:30:56]line 2.990 * 66.90 [17:30:56]line = 200.03 [17:30:56]line НДС 12% НСП 1% [17:30:56]line > о реализуемом товаре [17:30:56]line ОКРУГЛЕНИЕ: -0.03 [17:30:56]line ИТОГО: 200.00 [17:30:56]line Внесено: 200.00 [17:30:56]line СДАЧА: 0.00 [17:30:56]line НСП 1% : 1.77 [17:30:56]line НДС 12% : 21.24 [17:30:56]line Наличными: 200.00 [17:30:56]line Безнал.: 0.00 [17:30:56]line Место: АЗС № 171 "Партнер Нефть" [17:30:56]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:30:56]line СНО: Общий режим [17:30:56]line Чек 375 26.10.2024 17:30 [17:30:56]line Смена: 543 ФФД: 1.0 [17:30:56]line ЗНМ: 0300000109 [17:30:56]line РНМ: 0000000000091777 [17:30:56]line Версия ККМ: 001 [17:30:56]line ФМ: 0000000000871756 [17:30:56]line ФД: 201613 [17:30:56]line ФПД: 148261264906584 [17:30:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T173055&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201613&fm=148261264906584&tin=02508201610067®Number=0000000000091777&sum=20000 [17:30:57]OFD Sender: Processing packet 201613 [packets to send 112, broken 111] [17:30:57]ProducePacketName [17:30:57]name=ofd_packets/00201613 [17:30:57]OFD Sender: To server: pG, [17:30:57]CommunicateWithHost lk.salyk.kg:30040 [17:30:57]ConnectInit lk.salyk.kg [17:30:57]written 0, free lines is 4095 [17:30:57]Connected sock=10 [17:30:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F0 A9 07 01 6C D3 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 32 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 77 01 00 00 F4 03 04 00 4F 27 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8D 13 03 00 35 04 06 00 86 D7 C4 07 59 58 B0 55 35 78 32 C1 E2 A2 [17:30:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F5 A5 47 00 0A D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8D 13 03 00 F4 03 04 00 F8 D2 1C 67 B6 04 01 00 00 AF 2E FA 1B 51 5A E9 0F [17:30:57]CommunicateWithHost err = 0 [17:30:57]CheckOFDResponse [17:30:57]1017 (14) - 77093643461234 [17:30:57]1041 (16) - 0000000000871756 [17:30:57]1040 (4) - 201613 [17:30:57]1012 (4) - 26.10.2024 11:31 [17:30:57]1206 (1) - 0 [17:30:57]OFD Sender: Remove packet 201613 [17:30:57]ProducePacketName [17:30:57]name=ofd_packets/00201613 [17:30:57]NVStorageDeleteData [17:30:57]Write to MH i2c: 01 00 00 C6 01 C7 [17:30:57]Write i2c OK [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: 01 [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: 01 07 00 [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: 01 07 00 C6 01 00 00 00 00 00 A0 0C 7A [17:30:57]RasterBufferAndPrint [17:30:57]line [17:30:57]line [17:30:57]line [17:30:57]line [17:30:57]line [17:30:57]written 0, free lines is 3238 [17:30:57]MH_Cut [17:30:57]Write to MH i2c: D1 01 00 CD 01 01 A0 [17:30:57]Write i2c OK [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: D1 [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: D1 01 00 [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: D1 01 00 CD 01 00 9F [17:30:57]Write to MH i2c: 01 00 00 CE 01 CF [17:30:57]Write i2c OK [17:30:57]MH_I2C_Read... [17:30:57]OFD Sender: No OFD packet to send [17:30:58]*** Cut start [17:30:58]*** Purtial cut [17:30:58]*** Stage 1: CUTSNS_PIN = 1 [17:30:58]Read from MH i2c: 01 [17:30:58]MH_I2C_Read... [17:30:58]*** Stop cut motor [17:30:58]*** Cut end [17:30:58]Read from MH i2c: 01 07 00 [17:30:58]MH_I2C_Read... [17:30:58]Read from MH i2c: 01 07 00 CE 01 00 00 00 00 00 FF 0F E4 [17:30:58]process_action close_receipt done [17:30:58]requested_data is exist [17:30:58]produce_requested_data [17:30:58]requested_item fm.sn is exist - process it [17:30:58]wFMCommunicate request_size=4 [17:30:58]MH_SAM_APDU [17:30:58]CAPDU: 80 11 00 00 [17:30:58]Write to MH i2c: E2 08 00 CF 01 80 11 00 00 00 00 00 00 4A [17:30:58]Write i2c OK [17:30:58]MH_I2C_Read... [17:30:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:58]Read from MH i2c: E2 [17:30:58]MH_I2C_Read... [17:30:58]Read from MH i2c: E2 17 00 [17:30:58]MH_I2C_Read... [17:30:58]Read from MH i2c: E2 17 00 CF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9F [17:30:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:30:58]wFMCommunicate OK [17:30:58]requested_item fd.num is exist - process it [17:30:58]SAM_PROTO_GetFieldsCounters [17:30:58]wFMCommunicate request_size=4 [17:30:58]MH_SAM_APDU [17:30:58]CAPDU: 80 13 00 00 [17:30:58]Write to MH i2c: E2 08 00 D0 01 80 13 00 00 00 00 00 00 4D [17:30:58]Write i2c OK [17:30:58]MH_I2C_Read... [17:30:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:30:58]Read from MH i2c: E2 [17:30:58]MH_I2C_Read... [17:30:58]Read from MH i2c: E2 62 00 [17:30:58]MH_I2C_Read... [17:30:58]Read from MH i2c: E2 62 00 D0 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8D 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 77 01 00 00 5E 04 04 00 77 01 00 00 57 04 04 00 78 01 00 00 19 04 04 00 00 00 00 00 90 00 A2 [17:30:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8D 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 77 01 00 00 5E 04 04 00 77 01 00 00 57 04 04 00 78 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:30:58]wFMCommunicate OK [17:30:58]SAM_PROTO_GetFieldsCounters done [17:30:58]requested_item shift.num is exist - process it [17:30:58]requested_item shift.opened is exist - process it [17:30:58]req_shift_opened [17:30:58]FM_GetShiftState [17:30:58]SAM_PROTO_GetShiftState [17:30:58]wFMCommunicate request_size=4 [17:30:58]MH_SAM_APDU [17:30:58]CAPDU: 80 13 01 00 [17:30:58]Write to MH i2c: E2 08 00 D1 01 80 13 01 00 00 00 00 00 4F [17:30:58]Write i2c OK [17:30:58]MH_I2C_Read... [17:30:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:58]Read from MH i2c: E2 [17:30:58]MH_I2C_Read... [17:30:58]Read from MH i2c: E2 0E 00 [17:30:58]MH_I2C_Read... [17:30:58]Read from MH i2c: E2 0E 00 D1 01 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 5E [17:30:58]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:30:58]wFMCommunicate OK [17:30:58]SAM_PROTO_GetShiftState done [17:30:58]FM_GetShiftState done [17:30:58]req_shift_opened done [17:30:58]requested_item shift.open_date is exist - process it [17:30:58]req_shift_open_date [17:30:58]req_shift_open_date done [17:30:58]produce_requested_data done [17:30:58]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201613,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [17:30:58]process_action_free close_receipt [17:30:58]json_value_free [17:30:58]json_value_free done [17:30:58]process_json_proto returns [17:30:58]Send response to host [17:30:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201613,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [17:30:58]free response buf [17:30:58]execute_script done [17:30:58]execute_script returns [17:30:58]free content buf [17:30:58]Sock 7.Close socket [17:30:58]Sock 7.Thread stoped [17:31:02]OFD Sender: No OFD packet to send [17:31:07]OFD Sender: No OFD packet to send [17:31:12]OFD Sender: No OFD packet to send [17:31:17]OFD Sender: No OFD packet to send [17:31:22]OFD Sender: No OFD packet to send [17:31:27]OFD Sender: No OFD packet to send [17:31:33]OFD Sender: No OFD packet to send [17:31:38]OFD Sender: No OFD packet to send [17:31:43]OFD Sender: No OFD packet to send [17:31:48]OFD Sender: No OFD packet to send [17:31:53]OFD Sender: No OFD packet to send [17:31:58]OFD Sender: No OFD packet to send [17:32:03]OFD Sender: No OFD packet to send [17:32:08]OFD Sender: No OFD packet to send [17:32:13]OFD Sender: No OFD packet to send [17:32:18]OFD Sender: No OFD packet to send [17:32:23]OFD Sender: No OFD packet to send [17:32:28]OFD Sender: No OFD packet to send [17:32:33]OFD Sender: No OFD packet to send [17:32:38]OFD Sender: No OFD packet to send [17:32:43]OFD Sender: No OFD packet to send [17:32:48]OFD Sender: No OFD packet to send [17:32:53]OFD Sender: No OFD packet to send [17:32:58]OFD Sender: No OFD packet to send [17:33:03]OFD Sender: No OFD packet to send [17:33:08]OFD Sender: No OFD packet to send [17:33:13]OFD Sender: No OFD packet to send [17:33:18]OFD Sender: No OFD packet to send [17:33:23]OFD Sender: No OFD packet to send [17:33:28]OFD Sender: No OFD packet to send [17:33:33]OFD Sender: No OFD packet to send [17:33:38]OFD Sender: No OFD packet to send [17:33:43]OFD Sender: No OFD packet to send [17:33:48]OFD Sender: No OFD packet to send [17:33:53]OFD Sender: No OFD packet to send [17:33:58]OFD Sender: No OFD packet to send [17:34:03]OFD Sender: No OFD packet to send [17:34:08]OFD Sender: No OFD packet to send [17:34:13]OFD Sender: No OFD packet to send [17:34:18]OFD Sender: No OFD packet to send [17:34:23]OFD Sender: No OFD packet to send [17:34:28]OFD Sender: No OFD packet to send [17:34:33]OFD Sender: No OFD packet to send [17:34:38]OFD Sender: No OFD packet to send [17:34:43]OFD Sender: No OFD packet to send [17:34:48]OFD Sender: No OFD packet to send [17:34:53]OFD Sender: No OFD packet to send [17:34:58]OFD Sender: No OFD packet to send [17:35:03]OFD Sender: No OFD packet to send [17:35:08]OFD Sender: No OFD packet to send [17:35:13]OFD Sender: No OFD packet to send [17:35:18]OFD Sender: No OFD packet to send [17:35:23]OFD Sender: No OFD packet to send [17:35:28]OFD Sender: No OFD packet to send [17:35:33]OFD Sender: No OFD packet to send [17:35:38]OFD Sender: No OFD packet to send [17:35:43]OFD Sender: No OFD packet to send [17:35:48]OFD Sender: No OFD packet to send [17:35:53]OFD Sender: No OFD packet to send [17:35:58]OFD Sender: No OFD packet to send [17:36:03]OFD Sender: No OFD packet to send [17:36:08]OFD Sender: No OFD packet to send [17:36:13]OFD Sender: No OFD packet to send [17:36:18]OFD Sender: No OFD packet to send [17:36:23]OFD Sender: No OFD packet to send [17:36:28]OFD Sender: No OFD packet to send [17:36:33]OFD Sender: No OFD packet to send [17:36:38]OFD Sender: No OFD packet to send [17:36:43]OFD Sender: No OFD packet to send [17:36:48]OFD Sender: No OFD packet to send [17:36:53]OFD Sender: No OFD packet to send [17:36:58]OFD Sender: No OFD packet to send [17:37:03]OFD Sender: No OFD packet to send [17:37:07]accept exits with 9 [17:37:07]New connection [17:37:07]New thread 3067424100 created [17:37:07]Thread 3067280740 joined [17:37:07]Waiting for new connection... [17:37:07] Sock 9.Parse request [17:37:07]Sock 9.Check first char [17:37:07]Sock 9.First char is OK [17:37:07]request: POST /json_proto HTTP/1.0 [17:37:07]Method: POST [17:37:07]URL: /json_proto [17:37:07]Method is POST - this is cgi request [17:37:07]url: /json_proto [17:37:07]query_string will be loaded in cgi processing [17:37:07]execute_cgi json_proto POST (null) [17:37:07]execute_cgi path=json_proto method=POST [17:37:07]POST find Content-Length [17:37:07]Host: 172.17.63.195:8080 [17:37:07]Content-Length: 762 [17:37:07]Content-Type: application/json [17:37:07] [17:37:07]POST finish read [17:37:07]Found Content-Length = 762 [17:37:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.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: Mbank", "payments": [ { "type": 1, "sum" : 2000.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:07]execute_script... [17:37:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.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: Mbank", "payments": [ { "type": 1, "sum" : 2000.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:07]POST & json_proto [17:37:07]process_json_proto [17:37:07]json parsed OK: [17:37:07]protocol is kg_v1.0 [17:37:07]action value=close_receipt [17:37:07]process_action close_receipt [17:37:07]cmd_close_receipt [17:37:07]MH_GetDate [17:37:07]Write to MH i2c: F0 00 00 D2 01 C2 [17:37:07]Write i2c OK [17:37:07]MH_I2C_Read... [17:37:07]Read from MH i2c: F0 [17:37:07]MH_I2C_Read... [17:37:07]Read from MH i2c: F0 09 00 [17:37:07]MH_I2C_Read... [17:37:07]Read from MH i2c: F0 09 00 D2 01 00 C4 28 1D 67 68 46 19 67 69 [17:37:07]GetLastDocTimeStamp 1729963855 [17:37:07]current date 1729964228 [17:37:07]FM_GetShiftState [17:37:07]SAM_PROTO_GetShiftState [17:37:07]wFMCommunicate request_size=4 [17:37:07]MH_SAM_APDU [17:37:07]CAPDU: 80 13 01 00 [17:37:07]Write to MH i2c: E2 08 00 D3 01 80 13 01 00 00 00 00 00 51 [17:37:07]Write i2c OK [17:37:07]MH_I2C_Read... [17:37:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:07]Read from MH i2c: E2 [17:37:07]MH_I2C_Read... [17:37:07]Read from MH i2c: E2 0E 00 [17:37:07]MH_I2C_Read... [17:37:07]Read from MH i2c: E2 0E 00 D3 01 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 60 [17:37:07]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:37:07]wFMCommunicate OK [17:37:07]SAM_PROTO_GetShiftState done [17:37:07]FM_GetShiftState done [17:37:07]opened in 1729900879 [17:37:07]opened+sec_in_day 1729987279 [17:37:07]quantity*price = 200001 [17:37:07]sum+1 = 200003 [17:37:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.02 НСП 1% : 17.70 НДС 12% : 212.39 Наличными: 0.00 Безнал.: 2000.02 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 376 26.10.2024 17:37 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201614 ФПД: 162575349479398 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T173708&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201614&fm=162575349479398&tin=02508201610067®Number=0000000000091777&sum=200002 [17:37:08]StoreToDocumentArchive [17:37:08]shift 543 fd 201614 [17:37:08]save to /storage/0543/doc_00201614 [17:37:08]save last doc name /storage/0543/doc_00201614 to /storage/kkm_last_doc_name [17:37:08]save OK [17:37:08]Clear old archive folders... [17:37:08]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:37:08]tlvbuf is 01F98620 [17:37:08]SAM_PROTO_ClearQueue [17:37:08]wFMCommunicate request_size=4 [17:37:08]MH_SAM_APDU [17:37:08]CAPDU: 80 09 00 00 [17:37:08]Write to MH i2c: E2 08 00 E0 01 80 09 00 00 00 00 00 00 53 [17:37:08]Write i2c OK [17:37:08]MH_I2C_Read... [17:37:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:08]Read from MH i2c: E2 [17:37:08]MH_I2C_Read... [17:37:08]Read from MH i2c: E2 03 00 [17:37:08]MH_I2C_Read... [17:37:08]Read from MH i2c: E2 03 00 E0 01 00 90 00 55 [17:37:08]RAPDU: 90 00 [17:37:08]wFMCommunicate OK [17:37:08]SAM_PROTO_ClearQueue done [17:37:08]KKMCreateOFDPacket [17:37:08]OFDProtocolAddRootSTLVToBuf [17:37:08]FM_MakeSignedData [17:37:08]FM_MakeSignedData [17:37:08]SAM_PROTO_SignData [17:37:08]wFMCommunicate request_size=4 [17:37:08]MH_SAM_APDU [17:37:08]CAPDU: 80 0D 01 02 [17:37:08]Write to MH i2c: E2 08 00 E1 01 80 0D 01 02 00 00 00 00 5B [17:37:08]Write i2c OK [17:37:08]MH_I2C_Read... [17:37:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:08]Read from MH i2c: E2 [17:37:08]MH_I2C_Read... [17:37:08]Read from MH i2c: E2 03 00 [17:37:08]MH_I2C_Read... [17:37:08]Read from MH i2c: E2 03 00 E1 01 00 90 00 56 [17:37:08]RAPDU: 90 00 [17:37:08]wFMCommunicate OK [17:37:08]wFMCommunicate request_size=255 [17:37:08]MH_SAM_APDU [17:37:08]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 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 C4 28 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8E 13 03 00 35 04 06 00 [17:37:08]Write to MH i2c: E2 02 01 E2 01 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 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 C4 28 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8E 13 03 00 35 04 06 00 00 00 63 [17:37:08]Write i2c OK [17:37:08]MH_I2C_Read... [17:37:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:09]Read from MH i2c: E2 [17:37:09]MH_I2C_Read... [17:37:09]Read from MH i2c: E2 03 00 [17:37:09]MH_I2C_Read... [17:37:09]Read from MH i2c: E2 03 00 E2 01 00 90 00 57 [17:37:09]RAPDU: 90 00 [17:37:09]wFMCommunicate OK [17:37:09]wFMCommunicate request_size=11 [17:37:09]MH_SAM_APDU [17:37:09]CAPDU: 80 0D 02 02 06 93 DC 85 F4 77 E6 [17:37:09]Write to MH i2c: E2 0E 00 E3 01 80 0D 02 02 06 00 93 DC 85 F4 77 E6 00 00 AF [17:37:09]Write i2c OK [17:37:09]MH_I2C_Read... [17:37:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:09]Read from MH i2c: E2 [17:37:09]MH_I2C_Read... [17:37:09]Read from MH i2c: E2 03 00 [17:37:09]MH_I2C_Read... [17:37:09]Read from MH i2c: E2 03 00 E3 01 00 90 00 58 [17:37:09]RAPDU: 90 00 [17:37:09]wFMCommunicate OK [17:37:09]wFMCommunicate request_size=4 [17:37:09]MH_SAM_APDU [17:37:09]CAPDU: 80 0D 03 02 [17:37:09]Write to MH i2c: E2 08 00 E4 01 80 0D 03 02 00 00 00 00 60 [17:37:09]Write i2c OK [17:37:09]MH_I2C_Read... [17:37:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:09]Read from MH i2c: E2 [17:37:09]MH_I2C_Read... [17:37:09]Read from MH i2c: E2 0B 00 [17:37:09]MH_I2C_Read... [17:37:09]Read from MH i2c: E2 0B 00 E4 01 00 2C E6 46 AB A7 94 6C 70 90 00 7B [17:37:09]RAPDU: 2C E6 46 AB A7 94 6C 70 90 00 [17:37:09]wFMCommunicate OK [17:37:09]SAM_PROTO_SignData done [17:37:09]FM_MakeSignedData done [17:37:09]CreateOFDProtocolMessage [17:37:09]wFMCommunicate request_size=4 [17:37:09]MH_SAM_APDU [17:37:09]CAPDU: 80 11 00 00 [17:37:09]Write to MH i2c: E2 08 00 E5 01 80 11 00 00 00 00 00 00 60 [17:37:09]Write i2c OK [17:37:09]MH_I2C_Read... [17:37:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:09]Read from MH i2c: E2 [17:37:09]MH_I2C_Read... [17:37:09]Read from MH i2c: E2 17 00 [17:37:09]MH_I2C_Read... [17:37:09]Read from MH i2c: E2 17 00 E5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B5 [17:37:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:37:09]wFMCommunicate OK [17:37:09]CreateOFDProtocolMessage done [17:37:09]OFDSenderStorePacket 201614 [17:37:09]StoreOFDPacket docnum=201614 [17:37:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 A1 05 08 01 EA B0 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 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 C4 28 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8E 13 03 00 35 04 06 00 93 DC 85 F4 77 E6 2C E6 46 AB A7 94 6C 70 [17:37:09]CheckFolder [17:37:09]dirname=/storage/ofd_packets [17:37:09]CheckFolder done [17:37:09]ProducePacketName [17:37:09]name=ofd_packets/00201614 [17:37:09]NVStorageSaveData ofd_packets/00201614 [17:37:09]File name is /storage/ofd_packets/00201614 [17:37:09]Write 302 bytes [17:37:09]NVStorageSaveData done [17:37:09]OFDSenderStorePacket done [17:37:09]KKMCreateOFDPacket done [17:37:09]NVStorageSaveData kkm_last_timestamp [17:37:09]File name is /storage/kkm_last_timestamp [17:37:09]Write 4 bytes [17:37:09]NVStorageSaveData done [17:37:09]ExternCall_PrintAddStr [17:37:09]wPrintStart [17:37:09]Write to MH i2c: 01 00 00 E6 01 E7 [17:37:09]Write i2c OK [17:37:09]MH_I2C_Read... [17:37:09]Read from MH i2c: 01 [17:37:09]MH_I2C_Read... [17:37:09]Read from MH i2c: 01 07 00 [17:37:09]MH_I2C_Read... [17:37:09]Read from MH i2c: 01 07 00 E6 01 00 00 00 00 00 FF 0F FC [17:37:09]RasterBufferAndPrint [17:37:09]line Счет N : (1)449370 [17:37:09]line ИНН: 02508201610067 [17:37:09]line Контрольно-Кассовый Чек [17:37:09]line ПРОДАЖА [17:37:09]line ТРК (МРК, ГНК) : 32 [17:37:09]line Товар: 2710124130 [17:37:09]line SUPER 92-К-5 [17:37:09]line 29.240 * 68.40 [17:37:09]line = 2000.02 [17:37:09]line НДС 12% НСП 1% [17:37:09]line > о реализуемом товаре [17:37:09]line ИТОГО: 2000.02 [17:37:09]line НСП 1% : 17.70 [17:37:09]line НДС 12% : 212.39 [17:37:09]line Наличными: 0.00 [17:37:09]line Безнал.: 2000.02 [17:37:09]line Место: АЗС № 171 "Партнер Нефть" [17:37:09]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:37:09]line СНО: Общий режим [17:37:09]line Чек 376 26.10.2024 17:37 [17:37:09]line Смена: 543 ФФД: 1.0 [17:37:09]line ЗНМ: 0300000109 [17:37:09]line РНМ: 0000000000091777 [17:37:09]line Версия ККМ: 001 [17:37:09]line Платежная система: Mbank [17:37:09]line ФМ: 0000000000871756 [17:37:09]line ФД: 201614 [17:37:09]line ФПД: 162575349479398 [17:37:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T173708&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201614&fm=162575349479398&tin=02508201610067®Number=0000000000091777&sum=200002 [17:37:09]OFD Sender: Processing packet 201614 [packets to send 112, broken 111] [17:37:09]ProducePacketName [17:37:09]name=ofd_packets/00201614 [17:37:09]OFD Sender: To server: pG, [17:37:09]CommunicateWithHost lk.salyk.kg:30040 [17:37:09]ConnectInit lk.salyk.kg [17:37:09]written 0, free lines is 4095 [17:37:09]Connected sock=11 [17:37:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 A1 05 08 01 EA B0 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 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 C4 28 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8E 13 03 00 35 04 06 00 93 DC 85 F4 77 E6 2C E6 46 AB A7 94 6C 70 [17:37:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 13 6E 47 00 80 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8E 13 03 00 F4 03 04 00 6C D4 1C 67 B6 04 01 00 00 2A C0 65 E8 B1 84 C1 40 [17:37:09]CommunicateWithHost err = 0 [17:37:09]CheckOFDResponse [17:37:09]1017 (14) - 77093643461234 [17:37:09]1041 (16) - 0000000000871756 [17:37:09]1040 (4) - 201614 [17:37:09]1012 (4) - 26.10.2024 11:37 [17:37:09]1206 (1) - 0 [17:37:09]OFD Sender: Remove packet 201614 [17:37:09]ProducePacketName [17:37:09]name=ofd_packets/00201614 [17:37:09]NVStorageDeleteData [17:37:09]Write to MH i2c: 01 00 00 0F 02 11 [17:37:09]Write i2c OK [17:37:09]MH_I2C_Read... [17:37:09]Read from MH i2c: 01 [17:37:09]MH_I2C_Read... [17:37:09]Read from MH i2c: 01 07 00 [17:37:09]MH_I2C_Read... [17:37:09]Read from MH i2c: 01 07 00 0F 02 00 00 00 00 00 C8 0C EC [17:37:09]RasterBufferAndPrint [17:37:09]line [17:37:09]line [17:37:09]line [17:37:09]line [17:37:09]line [17:37:09]written 0, free lines is 3276 [17:37:09]MH_Cut [17:37:09]Write to MH i2c: D1 01 00 16 02 01 EA [17:37:09]Write i2c OK [17:37:09]MH_I2C_Read... [17:37:09]Read from MH i2c: D1 [17:37:09]MH_I2C_Read... [17:37:09]Read from MH i2c: D1 01 00 [17:37:09]MH_I2C_Read... [17:37:09]Read from MH i2c: D1 01 00 16 02 00 E9 [17:37:09]Write to MH i2c: 01 00 00 17 02 19 [17:37:09]Write i2c OK [17:37:09]MH_I2C_Read... [17:37:10]OFD Sender: No OFD packet to send [17:37:10]*** Cut start [17:37:10]*** Purtial cut [17:37:10]*** Stage 1: CUTSNS_PIN = 1 [17:37:11]Read from MH i2c: 01 [17:37:11]MH_I2C_Read... [17:37:11]*** Stop cut motor [17:37:11]*** Cut end [17:37:11]Read from MH i2c: 01 07 00 [17:37:11]MH_I2C_Read... [17:37:11]Read from MH i2c: 01 07 00 17 02 00 00 00 00 00 FF 0F 2E [17:37:11]process_action close_receipt done [17:37:11]requested_data is exist [17:37:11]produce_requested_data [17:37:11]requested_item fm.sn is exist - process it [17:37:11]wFMCommunicate request_size=4 [17:37:11]MH_SAM_APDU [17:37:11]CAPDU: 80 11 00 00 [17:37:11]Write to MH i2c: E2 08 00 18 02 80 11 00 00 00 00 00 00 94 [17:37:11]Write i2c OK [17:37:11]MH_I2C_Read... [17:37:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:11]Read from MH i2c: E2 [17:37:11]MH_I2C_Read... [17:37:11]Read from MH i2c: E2 17 00 [17:37:11]MH_I2C_Read... [17:37:11]Read from MH i2c: E2 17 00 18 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E9 [17:37:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:37:11]wFMCommunicate OK [17:37:11]requested_item fd.num is exist - process it [17:37:11]SAM_PROTO_GetFieldsCounters [17:37:11]wFMCommunicate request_size=4 [17:37:11]MH_SAM_APDU [17:37:11]CAPDU: 80 13 00 00 [17:37:11]Write to MH i2c: E2 08 00 19 02 80 13 00 00 00 00 00 00 97 [17:37:11]Write i2c OK [17:37:11]MH_I2C_Read... [17:37:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:11]Read from MH i2c: E2 [17:37:11]MH_I2C_Read... [17:37:11]Read from MH i2c: E2 62 00 [17:37:11]MH_I2C_Read... [17:37:11]Read from MH i2c: E2 62 00 19 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8E 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 78 01 00 00 5E 04 04 00 78 01 00 00 57 04 04 00 79 01 00 00 19 04 04 00 00 00 00 00 90 00 F0 [17:37:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8E 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 78 01 00 00 5E 04 04 00 78 01 00 00 57 04 04 00 79 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:37:11]wFMCommunicate OK [17:37:11]SAM_PROTO_GetFieldsCounters done [17:37:11]requested_item shift.num is exist - process it [17:37:11]requested_item shift.opened is exist - process it [17:37:11]req_shift_opened [17:37:11]FM_GetShiftState [17:37:11]SAM_PROTO_GetShiftState [17:37:11]wFMCommunicate request_size=4 [17:37:11]MH_SAM_APDU [17:37:11]CAPDU: 80 13 01 00 [17:37:11]Write to MH i2c: E2 08 00 1A 02 80 13 01 00 00 00 00 00 99 [17:37:11]Write i2c OK [17:37:11]MH_I2C_Read... [17:37:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:11]Read from MH i2c: E2 [17:37:11]MH_I2C_Read... [17:37:11]Read from MH i2c: E2 0E 00 [17:37:11]MH_I2C_Read... [17:37:11]Read from MH i2c: E2 0E 00 1A 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 A8 [17:37:11]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:37:11]wFMCommunicate OK [17:37:11]SAM_PROTO_GetShiftState done [17:37:11]FM_GetShiftState done [17:37:11]req_shift_opened done [17:37:11]requested_item shift.open_date is exist - process it [17:37:11]req_shift_open_date [17:37:11]req_shift_open_date done [17:37:11]produce_requested_data done [17:37:11]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201614,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [17:37:11]process_action_free close_receipt [17:37:11]json_value_free [17:37:11]json_value_free done [17:37:11]process_json_proto returns [17:37:11]Send response to host [17:37:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201614,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [17:37:11]free response buf [17:37:11]execute_script done [17:37:11]execute_script returns [17:37:11]free content buf [17:37:11]Sock 9.Close socket [17:37:11]Sock 9.Thread stoped [17:37:15]OFD Sender: No OFD packet to send [17:37:20]OFD Sender: No OFD packet to send [17:37:25]OFD Sender: No OFD packet to send [17:37:30]OFD Sender: No OFD packet to send [17:37:35]OFD Sender: No OFD packet to send [17:37:40]OFD Sender: No OFD packet to send [17:37:45]OFD Sender: No OFD packet to send [17:37:50]OFD Sender: No OFD packet to send [17:37:55]OFD Sender: No OFD packet to send [17:38:00]OFD Sender: No OFD packet to send [17:38:05]OFD Sender: No OFD packet to send [17:38:10]OFD Sender: No OFD packet to send [17:38:15]OFD Sender: No OFD packet to send [17:38:20]OFD Sender: No OFD packet to send [17:38:23]accept exits with 7 [17:38:23]New connection [17:38:23]New thread 3067280740 created [17:38:23]Thread 3067424100 joined [17:38:23]Waiting for new connection... [17:38:23] Sock 7.Parse request [17:38:23]Sock 7.Check first char [17:38:23]Sock 7.First char is OK [17:38:23]request: POST /json_proto HTTP/1.0 [17:38:23]Method: POST [17:38:23]URL: /json_proto [17:38:23]Method is POST - this is cgi request [17:38:23]url: /json_proto [17:38:23]query_string will be loaded in cgi processing [17:38:23]execute_cgi json_proto POST (null) [17:38:23]execute_cgi path=json_proto method=POST [17:38:23]POST find Content-Length [17:38:23]Host: 172.17.63.195:8080 [17:38:23]Content-Length: 682 [17:38:23]Content-Type: application/json [17:38:23] [17:38:23]POST finish read [17:38:23]Found Content-Length = 682 [17:38:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [17:38:23]execute_script... [17:38:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [17:38:23]POST & json_proto [17:38:23]process_json_proto [17:38:23]json parsed OK: [17:38:23]protocol is kg_v1.0 [17:38:23]action value=close_receipt [17:38:23]process_action close_receipt [17:38:23]cmd_close_receipt [17:38:23]MH_GetDate [17:38:23]Write to MH i2c: F0 00 00 1B 02 0C [17:38:23]Write i2c OK [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: F0 [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: F0 09 00 [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: F0 09 00 1B 02 00 0F 29 1D 67 68 46 19 67 FF [17:38:23]GetLastDocTimeStamp 1729964228 [17:38:23]current date 1729964303 [17:38:23]FM_GetShiftState [17:38:23]SAM_PROTO_GetShiftState [17:38:23]wFMCommunicate request_size=4 [17:38:23]MH_SAM_APDU [17:38:23]CAPDU: 80 13 01 00 [17:38:23]Write to MH i2c: E2 08 00 1C 02 80 13 01 00 00 00 00 00 9B [17:38:23]Write i2c OK [17:38:23]MH_I2C_Read... [17:38:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:23]Read from MH i2c: E2 [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: E2 0E 00 [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: E2 0E 00 1C 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 AA [17:38:23]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:38:23]wFMCommunicate OK [17:38:23]SAM_PROTO_GetShiftState done [17:38:23]FM_GetShiftState done [17:38:23]opened in 1729900879 [17:38:23]opened+sec_in_day 1729987279 [17:38:23]quantity*price = 200031 [17:38:23]sum+1 = 200032 [17:38:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 377 26.10.2024 17:38 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201615 ФПД: 227406425015134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T173823&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201615&fm=227406425015134&tin=02508201610067®Number=0000000000091777&sum=200000 [17:38:24]StoreToDocumentArchive [17:38:24]shift 543 fd 201615 [17:38:24]save to /storage/0543/doc_00201615 [17:38:24]save last doc name /storage/0543/doc_00201615 to /storage/kkm_last_doc_name [17:38:24]save OK [17:38:24]Clear old archive folders... [17:38:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:38:24]tlvbuf is 01FA7550 [17:38:24]SAM_PROTO_ClearQueue [17:38:24]wFMCommunicate request_size=4 [17:38:24]MH_SAM_APDU [17:38:24]CAPDU: 80 09 00 00 [17:38:24]Write to MH i2c: E2 08 00 29 02 80 09 00 00 00 00 00 00 9D [17:38:24]Write i2c OK [17:38:24]MH_I2C_Read... [17:38:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:24]Read from MH i2c: E2 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 03 00 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 03 00 29 02 00 90 00 9F [17:38:24]RAPDU: 90 00 [17:38:24]wFMCommunicate OK [17:38:24]SAM_PROTO_ClearQueue done [17:38:24]KKMCreateOFDPacket [17:38:24]OFDProtocolAddRootSTLVToBuf [17:38:24]FM_MakeSignedData [17:38:24]FM_MakeSignedData [17:38:24]SAM_PROTO_SignData [17:38:24]wFMCommunicate request_size=4 [17:38:24]MH_SAM_APDU [17:38:24]CAPDU: 80 0D 01 02 [17:38:24]Write to MH i2c: E2 08 00 2A 02 80 0D 01 02 00 00 00 00 A5 [17:38:24]Write i2c OK [17:38:24]MH_I2C_Read... [17:38:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:24]Read from MH i2c: E2 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 03 00 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 03 00 2A 02 00 90 00 A0 [17:38:24]RAPDU: 90 00 [17:38:24]wFMCommunicate OK [17:38:24]wFMCommunicate request_size=255 [17:38:24]MH_SAM_APDU [17:38:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 FA 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 79 01 00 00 F4 03 04 00 0F 29 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8F 13 03 00 35 04 06 00 CE [17:38:24]Write to MH i2c: E2 02 01 2B 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 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 FA 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 79 01 00 00 F4 03 04 00 0F 29 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8F 13 03 00 35 04 06 00 CE 00 00 45 [17:38:24]Write i2c OK [17:38:24]MH_I2C_Read... [17:38:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:24]Read from MH i2c: E2 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 03 00 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 03 00 2B 02 00 90 00 A1 [17:38:24]RAPDU: 90 00 [17:38:24]wFMCommunicate OK [17:38:24]wFMCommunicate request_size=10 [17:38:24]MH_SAM_APDU [17:38:24]CAPDU: 80 0D 02 02 05 D3 2F 2E C3 5E [17:38:24]Write to MH i2c: E2 0D 00 2C 02 80 0D 02 02 05 00 D3 2F 2E C3 5E 00 00 03 [17:38:24]Write i2c OK [17:38:24]MH_I2C_Read... [17:38:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:24]Read from MH i2c: E2 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 03 00 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 03 00 2C 02 00 90 00 A2 [17:38:24]RAPDU: 90 00 [17:38:24]wFMCommunicate OK [17:38:24]wFMCommunicate request_size=4 [17:38:24]MH_SAM_APDU [17:38:24]CAPDU: 80 0D 03 02 [17:38:24]Write to MH i2c: E2 08 00 2D 02 80 0D 03 02 00 00 00 00 AA [17:38:24]Write i2c OK [17:38:24]MH_I2C_Read... [17:38:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:24]Read from MH i2c: E2 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 0B 00 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 0B 00 2D 02 00 4F E2 34 3B 84 57 88 CB 90 00 79 [17:38:24]RAPDU: 4F E2 34 3B 84 57 88 CB 90 00 [17:38:24]wFMCommunicate OK [17:38:24]SAM_PROTO_SignData done [17:38:24]FM_MakeSignedData done [17:38:24]CreateOFDProtocolMessage [17:38:24]wFMCommunicate request_size=4 [17:38:24]MH_SAM_APDU [17:38:24]CAPDU: 80 11 00 00 [17:38:24]Write to MH i2c: E2 08 00 2E 02 80 11 00 00 00 00 00 00 AA [17:38:24]Write i2c OK [17:38:24]MH_I2C_Read... [17:38:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:24]Read from MH i2c: E2 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 17 00 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 17 00 2E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FF [17:38:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:38:24]wFMCommunicate OK [17:38:24]CreateOFDProtocolMessage done [17:38:24]OFDSenderStorePacket 201615 [17:38:24]StoreOFDPacket docnum=201615 [17:38:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 96 D7 07 01 E1 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 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 FA 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 79 01 00 00 F4 03 04 00 0F 29 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8F 13 03 00 35 04 06 00 CE D3 2F 2E C3 5E 4F E2 34 3B 84 57 88 CB [17:38:24]CheckFolder [17:38:24]dirname=/storage/ofd_packets [17:38:24]CheckFolder done [17:38:24]ProducePacketName [17:38:24]name=ofd_packets/00201615 [17:38:24]NVStorageSaveData ofd_packets/00201615 [17:38:24]File name is /storage/ofd_packets/00201615 [17:38:24]Write 301 bytes [17:38:24]NVStorageSaveData done [17:38:24]OFDSenderStorePacket done [17:38:24]KKMCreateOFDPacket done [17:38:24]NVStorageSaveData kkm_last_timestamp [17:38:24]File name is /storage/kkm_last_timestamp [17:38:24]Write 4 bytes [17:38:24]NVStorageSaveData done [17:38:24]ExternCall_PrintAddStr [17:38:24]wPrintStart [17:38:24]Write to MH i2c: 01 00 00 2F 02 31 [17:38:24]Write i2c OK [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: 01 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: 01 07 00 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: 01 07 00 2F 02 00 00 00 00 00 FF 0F 46 [17:38:24]RasterBufferAndPrint [17:38:24]line Счет N : (1)449371 [17:38:24]line ИНН: 02508201610067 [17:38:24]line Контрольно-Кассовый Чек [17:38:24]line ПРОДАЖА [17:38:24]line ТРК (МРК, ГНК) : 41 [17:38:24]line Товар: 2710124130 [17:38:24]line Аи-92-К-2 [17:38:24]line 29.900 * 66.90 [17:38:24]line = 2000.31 [17:38:24]line НДС 12% НСП 1% [17:38:24]line > о реализуемом товаре [17:38:24]line ОКРУГЛЕНИЕ: -0.31 [17:38:24]line ИТОГО: 2000.00 [17:38:24]line Внесено: 2000.00 [17:38:24]line СДАЧА: 0.00 [17:38:24]line НСП 1% : 17.70 [17:38:24]line НДС 12% : 212.42 [17:38:24]line Наличными: 2000.00 [17:38:24]line Безнал.: 0.00 [17:38:24]line Место: АЗС № 171 "Партнер Нефть" [17:38:24]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:38:24]line СНО: Общий режим [17:38:24]line Чек 377 26.10.2024 17:38 [17:38:24]line Смена: 543 ФФД: 1.0 [17:38:24]line ЗНМ: 0300000109 [17:38:24]line РНМ: 0000000000091777 [17:38:24]line Версия ККМ: 001 [17:38:24]line ФМ: 0000000000871756 [17:38:24]line ФД: 201615 [17:38:24]line ФПД: 227406425015134 [17:38:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T173823&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201615&fm=227406425015134&tin=02508201610067®Number=0000000000091777&sum=200000 [17:38:24]OFD Sender: Processing packet 201615 [packets to send 112, broken 111] [17:38:24]ProducePacketName [17:38:24]name=ofd_packets/00201615 [17:38:24]OFD Sender: To server: pG, [17:38:24]CommunicateWithHost lk.salyk.kg:30040 [17:38:24]ConnectInit lk.salyk.kg [17:38:24]written 0, free lines is 4095 [17:38:24]Connected sock=11 [17:38:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 96 D7 07 01 E1 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 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 FA 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 79 01 00 00 F4 03 04 00 0F 29 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8F 13 03 00 35 04 06 00 CE D3 2F 2E C3 5E 4F E2 34 3B 84 57 88 CB [17:38:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 9C 4E 47 00 B1 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 8F 13 03 00 F4 03 04 00 B7 D4 1C 67 B6 04 01 00 00 E9 D3 C5 41 A4 A4 77 19 [17:38:25]CommunicateWithHost err = 0 [17:38:25]CheckOFDResponse [17:38:25]1017 (14) - 77093643461234 [17:38:25]1041 (16) - 0000000000871756 [17:38:25]1040 (4) - 201615 [17:38:25]1012 (4) - 26.10.2024 11:38 [17:38:25]1206 (1) - 0 [17:38:25]OFD Sender: Remove packet 201615 [17:38:25]ProducePacketName [17:38:25]name=ofd_packets/00201615 [17:38:25]NVStorageDeleteData [17:38:25]Write to MH i2c: 01 00 00 5A 02 5C [17:38:25]Write i2c OK [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: 01 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: 01 07 00 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: 01 07 00 5A 02 00 00 00 00 00 AE 0C 1D [17:38:25]RasterBufferAndPrint [17:38:25]line [17:38:25]line [17:38:25]line [17:38:25]line [17:38:25]line [17:38:25]written 0, free lines is 3252 [17:38:25]MH_Cut [17:38:25]Write to MH i2c: D1 01 00 61 02 01 35 [17:38:25]Write i2c OK [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: D1 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: D1 01 00 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: D1 01 00 61 02 00 34 [17:38:25]Write to MH i2c: 01 00 00 62 02 64 [17:38:25]Write i2c OK [17:38:25]MH_I2C_Read... [17:38:25]OFD Sender: No OFD packet to send [17:38:26]*** Cut start [17:38:26]*** Purtial cut [17:38:26]*** Stage 1: CUTSNS_PIN = 1 [17:38:26]Read from MH i2c: 01 [17:38:26]MH_I2C_Read... [17:38:26]*** Stop cut motor [17:38:26]*** Cut end [17:38:26]Read from MH i2c: 01 07 00 [17:38:26]MH_I2C_Read... [17:38:26]Read from MH i2c: 01 07 00 62 02 00 00 00 00 00 FF 0F 79 [17:38:26]process_action close_receipt done [17:38:26]requested_data is exist [17:38:26]produce_requested_data [17:38:26]requested_item fm.sn is exist - process it [17:38:26]wFMCommunicate request_size=4 [17:38:26]MH_SAM_APDU [17:38:26]CAPDU: 80 11 00 00 [17:38:26]Write to MH i2c: E2 08 00 63 02 80 11 00 00 00 00 00 00 DF [17:38:26]Write i2c OK [17:38:26]MH_I2C_Read... [17:38:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:26]Read from MH i2c: E2 [17:38:26]MH_I2C_Read... [17:38:26]Read from MH i2c: E2 17 00 [17:38:26]MH_I2C_Read... [17:38:26]Read from MH i2c: E2 17 00 63 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 34 [17:38:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:38:26]wFMCommunicate OK [17:38:26]requested_item fd.num is exist - process it [17:38:26]SAM_PROTO_GetFieldsCounters [17:38:26]wFMCommunicate request_size=4 [17:38:26]MH_SAM_APDU [17:38:26]CAPDU: 80 13 00 00 [17:38:26]Write to MH i2c: E2 08 00 64 02 80 13 00 00 00 00 00 00 E2 [17:38:26]Write i2c OK [17:38:26]MH_I2C_Read... [17:38:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:26]Read from MH i2c: E2 [17:38:26]MH_I2C_Read... [17:38:26]Read from MH i2c: E2 62 00 [17:38:26]MH_I2C_Read... [17:38:26]Read from MH i2c: E2 62 00 64 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8F 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 79 01 00 00 5E 04 04 00 79 01 00 00 57 04 04 00 7A 01 00 00 19 04 04 00 00 00 00 00 90 00 3F [17:38:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 8F 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 79 01 00 00 5E 04 04 00 79 01 00 00 57 04 04 00 7A 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:38:26]wFMCommunicate OK [17:38:26]SAM_PROTO_GetFieldsCounters done [17:38:26]requested_item shift.num is exist - process it [17:38:26]requested_item shift.opened is exist - process it [17:38:26]req_shift_opened [17:38:26]FM_GetShiftState [17:38:26]SAM_PROTO_GetShiftState [17:38:26]wFMCommunicate request_size=4 [17:38:26]MH_SAM_APDU [17:38:26]CAPDU: 80 13 01 00 [17:38:26]Write to MH i2c: E2 08 00 65 02 80 13 01 00 00 00 00 00 E4 [17:38:26]Write i2c OK [17:38:26]MH_I2C_Read... [17:38:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:26]Read from MH i2c: E2 [17:38:26]MH_I2C_Read... [17:38:26]Read from MH i2c: E2 0E 00 [17:38:26]MH_I2C_Read... [17:38:26]Read from MH i2c: E2 0E 00 65 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F3 [17:38:26]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:38:26]wFMCommunicate OK [17:38:26]SAM_PROTO_GetShiftState done [17:38:26]FM_GetShiftState done [17:38:26]req_shift_opened done [17:38:26]requested_item shift.open_date is exist - process it [17:38:26]req_shift_open_date [17:38:26]req_shift_open_date done [17:38:26]produce_requested_data done [17:38:26]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201615,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [17:38:26]process_action_free close_receipt [17:38:26]json_value_free [17:38:26]json_value_free done [17:38:26]process_json_proto returns [17:38:26]Send response to host [17:38:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201615,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [17:38:26]free response buf [17:38:26]execute_script done [17:38:26]execute_script returns [17:38:26]free content buf [17:38:26]Sock 7.Close socket [17:38:26]Sock 7.Thread stoped [17:38:30]OFD Sender: No OFD packet to send [17:38:35]OFD Sender: No OFD packet to send [17:38:40]OFD Sender: No OFD packet to send [17:38:45]OFD Sender: No OFD packet to send [17:38:50]OFD Sender: No OFD packet to send [17:38:55]OFD Sender: No OFD packet to send [17:39:00]OFD Sender: No OFD packet to send [17:39:05]OFD Sender: No OFD packet to send [17:39:10]OFD Sender: No OFD packet to send [17:39:15]OFD Sender: No OFD packet to send [17:39:20]OFD Sender: No OFD packet to send [17:39:25]OFD Sender: No OFD packet to send [17:39:30]OFD Sender: No OFD packet to send [17:39:35]OFD Sender: No OFD packet to send [17:39:40]OFD Sender: No OFD packet to send [17:39:45]OFD Sender: No OFD packet to send [17:39:50]OFD Sender: No OFD packet to send [17:39:55]OFD Sender: No OFD packet to send [17:40:00]OFD Sender: No OFD packet to send [17:40:05]OFD Sender: No OFD packet to send [17:40:10]OFD Sender: No OFD packet to send [17:40:15]OFD Sender: No OFD packet to send [17:40:20]OFD Sender: No OFD packet to send [17:40:25]OFD Sender: No OFD packet to send [17:40:30]OFD Sender: No OFD packet to send [17:40:35]OFD Sender: No OFD packet to send [17:40:40]OFD Sender: No OFD packet to send [17:40:45]OFD Sender: No OFD packet to send [17:40:50]OFD Sender: No OFD packet to send [17:40:55]OFD Sender: No OFD packet to send [17:41:00]OFD Sender: No OFD packet to send [17:41:05]OFD Sender: No OFD packet to send [17:41:10]OFD Sender: No OFD packet to send [17:41:15]OFD Sender: No OFD packet to send [17:41:20]OFD Sender: No OFD packet to send [17:41:25]OFD Sender: No OFD packet to send [17:41:30]OFD Sender: No OFD packet to send [17:41:35]OFD Sender: No OFD packet to send [17:41:40]OFD Sender: No OFD packet to send [17:41:45]OFD Sender: No OFD packet to send [17:41:50]OFD Sender: No OFD packet to send [17:41:55]OFD Sender: No OFD packet to send [17:42:00]OFD Sender: No OFD packet to send [17:42:05]OFD Sender: No OFD packet to send [17:42:10]OFD Sender: No OFD packet to send [17:42:15]OFD Sender: No OFD packet to send [17:42:20]OFD Sender: No OFD packet to send [17:42:25]OFD Sender: No OFD packet to send [17:42:30]OFD Sender: No OFD packet to send [17:42:35]OFD Sender: No OFD packet to send [17:42:40]OFD Sender: No OFD packet to send [17:42:45]OFD Sender: No OFD packet to send [17:42:50]OFD Sender: No OFD packet to send [17:42:56]OFD Sender: No OFD packet to send [17:43:01]OFD Sender: No OFD packet to send [17:43:06]OFD Sender: No OFD packet to send [17:43:06]accept exits with 9 [17:43:06]New connection [17:43:06]New thread 3067424100 created [17:43:06]Thread 3067280740 joined [17:43:06]Waiting for new connection... [17:43:06] Sock 9.Parse request [17:43:06]Sock 9.Check first char [17:43:06]Sock 9.First char is OK [17:43:06]request: POST /json_proto HTTP/1.0 [17:43:06]Method: POST [17:43:06]URL: /json_proto [17:43:06]Method is POST - this is cgi request [17:43:06]url: /json_proto [17:43:06]query_string will be loaded in cgi processing [17:43:06]execute_cgi json_proto POST (null) [17:43:06]execute_cgi path=json_proto method=POST [17:43:06]POST find Content-Length [17:43:06]Host: 172.17.63.195:8080 [17:43:06]Content-Length: 674 [17:43:06]Content-Type: application/json [17:43:06] [17:43:06]POST finish read [17:43:06]Found Content-Length = 674 [17:43:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [17:43:06]execute_script... [17:43:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [17:43:06]POST & json_proto [17:43:06]process_json_proto [17:43:06]json parsed OK: [17:43:06]protocol is kg_v1.0 [17:43:06]action value=close_receipt [17:43:06]process_action close_receipt [17:43:06]cmd_close_receipt [17:43:06]MH_GetDate [17:43:06]Write to MH i2c: F0 00 00 66 02 57 [17:43:06]Write i2c OK [17:43:06]MH_I2C_Read... [17:43:06]Read from MH i2c: F0 [17:43:06]MH_I2C_Read... [17:43:06]Read from MH i2c: F0 09 00 [17:43:06]MH_I2C_Read... [17:43:06]Read from MH i2c: F0 09 00 66 02 00 2B 2A 1D 67 68 46 19 67 67 [17:43:06]GetLastDocTimeStamp 1729964303 [17:43:06]current date 1729964587 [17:43:06]FM_GetShiftState [17:43:06]SAM_PROTO_GetShiftState [17:43:06]wFMCommunicate request_size=4 [17:43:06]MH_SAM_APDU [17:43:06]CAPDU: 80 13 01 00 [17:43:06]Write to MH i2c: E2 08 00 67 02 80 13 01 00 00 00 00 00 E6 [17:43:06]Write i2c OK [17:43:06]MH_I2C_Read... [17:43:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:06]Read from MH i2c: E2 [17:43:06]MH_I2C_Read... [17:43:06]Read from MH i2c: E2 0E 00 [17:43:06]MH_I2C_Read... [17:43:06]Read from MH i2c: E2 0E 00 67 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F5 [17:43:06]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:43:06]wFMCommunicate OK [17:43:06]SAM_PROTO_GetShiftState done [17:43:06]FM_GetShiftState done [17:43:06]opened in 1729900879 [17:43:06]opened+sec_in_day 1729987279 [17:43:06]quantity*price = 50063 [17:43:06]sum+1 = 50064 [17:43:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 378 26.10.2024 17:43 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201616 ФПД: 270219611517736 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T174307&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201616&fm=270219611517736&tin=02508201610067®Number=0000000000091777&sum=50000 [17:43:07]StoreToDocumentArchive [17:43:07]shift 543 fd 201616 [17:43:07]save to /storage/0543/doc_00201616 [17:43:07]save last doc name /storage/0543/doc_00201616 to /storage/kkm_last_doc_name [17:43:07]save OK [17:43:07]Clear old archive folders... [17:43:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:43:07]tlvbuf is 01F9A5F0 [17:43:07]SAM_PROTO_ClearQueue [17:43:07]wFMCommunicate request_size=4 [17:43:07]MH_SAM_APDU [17:43:07]CAPDU: 80 09 00 00 [17:43:07]Write to MH i2c: E2 08 00 74 02 80 09 00 00 00 00 00 00 E8 [17:43:07]Write i2c OK [17:43:07]MH_I2C_Read... [17:43:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:43:07]Read from MH i2c: E2 [17:43:07]MH_I2C_Read... [17:43:07]Read from MH i2c: E2 03 00 [17:43:07]MH_I2C_Read... [17:43:07]Read from MH i2c: E2 03 00 74 02 00 90 00 EA [17:43:07]RAPDU: 90 00 [17:43:07]wFMCommunicate OK [17:43:07]SAM_PROTO_ClearQueue done [17:43:07]KKMCreateOFDPacket [17:43:07]OFDProtocolAddRootSTLVToBuf [17:43:07]FM_MakeSignedData [17:43:07]FM_MakeSignedData [17:43:07]SAM_PROTO_SignData [17:43:07]wFMCommunicate request_size=4 [17:43:07]MH_SAM_APDU [17:43:07]CAPDU: 80 0D 01 02 [17:43:07]Write to MH i2c: E2 08 00 75 02 80 0D 01 02 00 00 00 00 F0 [17:43:07]Write i2c OK [17:43:07]MH_I2C_Read... [17:43:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:43:07]Read from MH i2c: E2 [17:43:07]MH_I2C_Read... [17:43:07]Read from MH i2c: E2 03 00 [17:43:07]MH_I2C_Read... [17:43:07]Read from MH i2c: E2 03 00 75 02 00 90 00 EB [17:43:07]RAPDU: 90 00 [17:43:07]wFMCommunicate OK [17:43:07]wFMCommunicate request_size=255 [17:43:07]MH_SAM_APDU [17:43:07]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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 7A 01 00 00 F4 03 04 00 2B 2A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 90 13 03 00 35 04 06 00 F5 C3 67 F4 [17:43:07]Write to MH i2c: E2 02 01 76 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 7A 01 00 00 F4 03 04 00 2B 2A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 90 13 03 00 35 04 06 00 F5 C3 67 F4 00 00 30 [17:43:07]Write i2c OK [17:43:07]MH_I2C_Read... [17:43:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:08]Read from MH i2c: E2 [17:43:08]MH_I2C_Read... [17:43:08]Read from MH i2c: E2 03 00 [17:43:08]MH_I2C_Read... [17:43:08]Read from MH i2c: E2 03 00 76 02 00 90 00 EC [17:43:08]RAPDU: 90 00 [17:43:08]wFMCommunicate OK [17:43:08]wFMCommunicate request_size=7 [17:43:08]MH_SAM_APDU [17:43:08]CAPDU: 80 0D 02 02 02 B3 28 [17:43:08]Write to MH i2c: E2 0A 00 77 02 80 0D 02 02 02 00 B3 28 00 00 D2 [17:43:08]Write i2c OK [17:43:08]MH_I2C_Read... [17:43:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:08]Read from MH i2c: E2 [17:43:08]MH_I2C_Read... [17:43:08]Read from MH i2c: E2 03 00 [17:43:08]MH_I2C_Read... [17:43:08]Read from MH i2c: E2 03 00 77 02 00 90 00 ED [17:43:08]RAPDU: 90 00 [17:43:08]wFMCommunicate OK [17:43:08]wFMCommunicate request_size=4 [17:43:08]MH_SAM_APDU [17:43:08]CAPDU: 80 0D 03 02 [17:43:08]Write to MH i2c: E2 08 00 78 02 80 0D 03 02 00 00 00 00 F5 [17:43:08]Write i2c OK [17:43:08]MH_I2C_Read... [17:43:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:43:08]Read from MH i2c: E2 [17:43:08]MH_I2C_Read... [17:43:08]Read from MH i2c: E2 0B 00 [17:43:08]MH_I2C_Read... [17:43:08]Read from MH i2c: E2 0B 00 78 02 00 BB 0D 1B E7 10 A8 60 48 90 00 20 [17:43:08]RAPDU: BB 0D 1B E7 10 A8 60 48 90 00 [17:43:08]wFMCommunicate OK [17:43:08]SAM_PROTO_SignData done [17:43:08]FM_MakeSignedData done [17:43:08]CreateOFDProtocolMessage [17:43:08]wFMCommunicate request_size=4 [17:43:08]MH_SAM_APDU [17:43:08]CAPDU: 80 11 00 00 [17:43:08]Write to MH i2c: E2 08 00 79 02 80 11 00 00 00 00 00 00 F5 [17:43:08]Write i2c OK [17:43:08]MH_I2C_Read... [17:43:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:08]Read from MH i2c: E2 [17:43:08]MH_I2C_Read... [17:43:08]Read from MH i2c: E2 17 00 [17:43:08]MH_I2C_Read... [17:43:08]Read from MH i2c: E2 17 00 79 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4A [17:43:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:43:08]wFMCommunicate OK [17:43:08]CreateOFDProtocolMessage done [17:43:08]OFDSenderStorePacket 201616 [17:43:08]StoreOFDPacket docnum=201616 [17:43:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 10 B6 04 01 A9 1F 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 7A 01 00 00 F4 03 04 00 2B 2A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 90 13 03 00 35 04 06 00 F5 C3 67 F4 B3 28 BB 0D 1B E7 10 A8 60 48 [17:43:08]CheckFolder [17:43:08]dirname=/storage/ofd_packets [17:43:08]CheckFolder done [17:43:08]ProducePacketName [17:43:08]name=ofd_packets/00201616 [17:43:08]NVStorageSaveData ofd_packets/00201616 [17:43:08]File name is /storage/ofd_packets/00201616 [17:43:08]Write 298 bytes [17:43:08]NVStorageSaveData done [17:43:08]OFDSenderStorePacket done [17:43:08]KKMCreateOFDPacket done [17:43:08]NVStorageSaveData kkm_last_timestamp [17:43:08]File name is /storage/kkm_last_timestamp [17:43:08]Write 4 bytes [17:43:08]NVStorageSaveData done [17:43:08]ExternCall_PrintAddStr [17:43:08]wPrintStart [17:43:08]Write to MH i2c: 01 00 00 7A 02 7C [17:43:08]Write i2c OK [17:43:08]MH_I2C_Read... [17:43:08]Read from MH i2c: 01 [17:43:08]MH_I2C_Read... [17:43:08]Read from MH i2c: 01 07 00 [17:43:08]MH_I2C_Read... [17:43:08]Read from MH i2c: 01 07 00 7A 02 00 00 00 00 00 FF 0F 91 [17:43:08]RasterBufferAndPrint [17:43:08]line Счет N : (1)449372 [17:43:08]line ИНН: 02508201610067 [17:43:08]line Контрольно-Кассовый Чек [17:43:08]line ПРОДАЖА [17:43:08]line ТРК (МРК, ГНК) : 33 [17:43:08]line Товар: 2710194210 [17:43:08]line ДТ-К-2 [17:43:08]line 6.570 * 76.20 [17:43:08]line = 500.63 [17:43:08]line НДС 12% НСП 1% [17:43:08]line > о реализуемом товаре [17:43:08]line ОКРУГЛЕНИЕ: -0.63 [17:43:08]line ИТОГО: 500.00 [17:43:08]line Внесено: 500.00 [17:43:08]line СДАЧА: 0.00 [17:43:08]line НСП 1% : 4.43 [17:43:08]line НДС 12% : 53.16 [17:43:08]line Наличными: 500.00 [17:43:08]line Безнал.: 0.00 [17:43:08]line Место: АЗС № 171 "Партнер Нефть" [17:43:08]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:43:08]line СНО: Общий режим [17:43:08]line Чек 378 26.10.2024 17:43 [17:43:08]line Смена: 543 ФФД: 1.0 [17:43:08]line ЗНМ: 0300000109 [17:43:08]line РНМ: 0000000000091777 [17:43:08]line Версия ККМ: 001 [17:43:08]line ФМ: 0000000000871756 [17:43:08]line ФД: 201616 [17:43:08]line ФПД: 270219611517736 [17:43:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T174307&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201616&fm=270219611517736&tin=02508201610067®Number=0000000000091777&sum=50000 [17:43:08]OFD Sender: Processing packet 201616 [packets to send 112, broken 111] [17:43:08]ProducePacketName [17:43:08]name=ofd_packets/00201616 [17:43:08]OFD Sender: To server: pG, [17:43:08]CommunicateWithHost lk.salyk.kg:30040 [17:43:08]ConnectInit lk.salyk.kg [17:43:08]written 0, free lines is 4095 [17:43:08]Connected sock=10 [17:43:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 10 B6 04 01 A9 1F 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 7A 01 00 00 F4 03 04 00 2B 2A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 90 13 03 00 35 04 06 00 F5 C3 67 F4 B3 28 BB 0D 1B E7 10 A8 60 48 [17:43:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 51 5E 47 00 5A F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 90 13 03 00 F4 03 04 00 D3 D5 1C 67 B6 04 01 00 00 66 C4 87 94 34 B1 D3 D0 [17:43:08]CommunicateWithHost err = 0 [17:43:08]CheckOFDResponse [17:43:08]1017 (14) - 77093643461234 [17:43:08]1041 (16) - 0000000000871756 [17:43:08]1040 (4) - 201616 [17:43:08]1012 (4) - 26.10.2024 11:43 [17:43:08]1206 (1) - 0 [17:43:08]OFD Sender: Remove packet 201616 [17:43:08]ProducePacketName [17:43:08]name=ofd_packets/00201616 [17:43:08]NVStorageDeleteData [17:43:09]Write to MH i2c: 01 00 00 A5 02 A7 [17:43:09]Write i2c OK [17:43:09]MH_I2C_Read... [17:43:09]Read from MH i2c: 01 [17:43:09]MH_I2C_Read... [17:43:09]Read from MH i2c: 01 07 00 [17:43:09]MH_I2C_Read... [17:43:09]Read from MH i2c: 01 07 00 A5 02 00 00 00 00 00 9F 0C 59 [17:43:09]RasterBufferAndPrint [17:43:09]line [17:43:09]line [17:43:09]line [17:43:09]line [17:43:09]line [17:43:09]written 0, free lines is 3237 [17:43:09]MH_Cut [17:43:09]Write to MH i2c: D1 01 00 AC 02 01 80 [17:43:09]Write i2c OK [17:43:09]MH_I2C_Read... [17:43:09]Read from MH i2c: D1 [17:43:09]MH_I2C_Read... [17:43:09]Read from MH i2c: D1 01 00 [17:43:09]MH_I2C_Read... [17:43:09]Read from MH i2c: D1 01 00 AC 02 00 7F [17:43:09]Write to MH i2c: 01 00 00 AD 02 AF [17:43:09]Write i2c OK [17:43:09]MH_I2C_Read... [17:43:09]OFD Sender: No OFD packet to send [17:43:09]*** Cut start [17:43:09]*** Purtial cut [17:43:09]*** Stage 1: CUTSNS_PIN = 1 [17:43:10]Read from MH i2c: 01 [17:43:10]MH_I2C_Read... [17:43:10]*** Stop cut motor [17:43:10]*** Cut end [17:43:10]Read from MH i2c: 01 07 00 [17:43:10]MH_I2C_Read... [17:43:10]Read from MH i2c: 01 07 00 AD 02 00 00 00 00 00 FF 0F C4 [17:43:10]process_action close_receipt done [17:43:10]requested_data is exist [17:43:10]produce_requested_data [17:43:10]requested_item fm.sn is exist - process it [17:43:10]wFMCommunicate request_size=4 [17:43:10]MH_SAM_APDU [17:43:10]CAPDU: 80 11 00 00 [17:43:10]Write to MH i2c: E2 08 00 AE 02 80 11 00 00 00 00 00 00 2A [17:43:10]Write i2c OK [17:43:10]MH_I2C_Read... [17:43:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:10]Read from MH i2c: E2 [17:43:10]MH_I2C_Read... [17:43:10]Read from MH i2c: E2 17 00 [17:43:10]MH_I2C_Read... [17:43:10]Read from MH i2c: E2 17 00 AE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7F [17:43:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:43:10]wFMCommunicate OK [17:43:10]requested_item fd.num is exist - process it [17:43:10]SAM_PROTO_GetFieldsCounters [17:43:10]wFMCommunicate request_size=4 [17:43:10]MH_SAM_APDU [17:43:10]CAPDU: 80 13 00 00 [17:43:10]Write to MH i2c: E2 08 00 AF 02 80 13 00 00 00 00 00 00 2D [17:43:10]Write i2c OK [17:43:10]MH_I2C_Read... [17:43:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:10]Read from MH i2c: E2 [17:43:10]MH_I2C_Read... [17:43:10]Read from MH i2c: E2 62 00 [17:43:10]MH_I2C_Read... [17:43:10]Read from MH i2c: E2 62 00 AF 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 90 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 7A 01 00 00 5E 04 04 00 7A 01 00 00 57 04 04 00 7B 01 00 00 19 04 04 00 00 00 00 00 90 00 8E [17:43:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 90 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 7A 01 00 00 5E 04 04 00 7A 01 00 00 57 04 04 00 7B 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:43:10]wFMCommunicate OK [17:43:10]SAM_PROTO_GetFieldsCounters done [17:43:10]requested_item shift.num is exist - process it [17:43:10]requested_item shift.opened is exist - process it [17:43:10]req_shift_opened [17:43:10]FM_GetShiftState [17:43:10]SAM_PROTO_GetShiftState [17:43:10]wFMCommunicate request_size=4 [17:43:10]MH_SAM_APDU [17:43:10]CAPDU: 80 13 01 00 [17:43:10]Write to MH i2c: E2 08 00 B0 02 80 13 01 00 00 00 00 00 2F [17:43:10]Write i2c OK [17:43:10]MH_I2C_Read... [17:43:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:10]Read from MH i2c: E2 [17:43:10]MH_I2C_Read... [17:43:10]Read from MH i2c: E2 0E 00 [17:43:10]MH_I2C_Read... [17:43:10]Read from MH i2c: E2 0E 00 B0 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 3E [17:43:10]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:43:10]wFMCommunicate OK [17:43:10]SAM_PROTO_GetShiftState done [17:43:10]FM_GetShiftState done [17:43:10]req_shift_opened done [17:43:10]requested_item shift.open_date is exist - process it [17:43:10]req_shift_open_date [17:43:10]req_shift_open_date done [17:43:10]produce_requested_data done [17:43:10]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201616,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [17:43:10]process_action_free close_receipt [17:43:10]json_value_free [17:43:10]json_value_free done [17:43:10]process_json_proto returns [17:43:10]Send response to host [17:43:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201616,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [17:43:10]free response buf [17:43:10]execute_script done [17:43:10]execute_script returns [17:43:10]free content buf [17:43:10]Sock 9.Close socket [17:43:10]Sock 9.Thread stoped [17:43:14]OFD Sender: No OFD packet to send [17:43:19]OFD Sender: No OFD packet to send [17:43:24]OFD Sender: No OFD packet to send [17:43:29]OFD Sender: No OFD packet to send [17:43:34]OFD Sender: No OFD packet to send [17:43:39]OFD Sender: No OFD packet to send [17:43:44]OFD Sender: No OFD packet to send [17:43:49]OFD Sender: No OFD packet to send [17:43:54]OFD Sender: No OFD packet to send [17:43:59]OFD Sender: No OFD packet to send [17:44:04]OFD Sender: No OFD packet to send [17:44:09]OFD Sender: No OFD packet to send [17:44:14]OFD Sender: No OFD packet to send [17:44:19]OFD Sender: No OFD packet to send [17:44:24]OFD Sender: No OFD packet to send [17:44:29]OFD Sender: No OFD packet to send [17:44:34]OFD Sender: No OFD packet to send [17:44:38]accept exits with 7 [17:44:38]New connection [17:44:38]New thread 3067280740 created [17:44:38]Thread 3067424100 joined [17:44:38]Waiting for new connection... [17:44:38] Sock 7.Parse request [17:44:38]Sock 7.Check first char [17:44:38]Sock 7.First char is OK [17:44:38]request: POST /json_proto HTTP/1.0 [17:44:38]Method: POST [17:44:38]URL: /json_proto [17:44:38]Method is POST - this is cgi request [17:44:38]url: /json_proto [17:44:38]query_string will be loaded in cgi processing [17:44:38]execute_cgi json_proto POST (null) [17:44:38]execute_cgi path=json_proto method=POST [17:44:38]POST find Content-Length [17:44:38]Host: 172.17.63.195:8080 [17:44:38]Content-Length: 674 [17:44:38]Content-Type: application/json [17:44:38] [17:44:38]POST finish read [17:44:38]Found Content-Length = 674 [17:44:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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" ] } } [17:44:38]execute_script... [17:44: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)449373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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" ] } } [17:44:38]POST & json_proto [17:44:38]process_json_proto [17:44:38]json parsed OK: [17:44:38]protocol is kg_v1.0 [17:44:38]action value=close_receipt [17:44:38]process_action close_receipt [17:44:38]cmd_close_receipt [17:44:38]MH_GetDate [17:44:38]Write to MH i2c: F0 00 00 B1 02 A2 [17:44:38]Write i2c OK [17:44:38]MH_I2C_Read... [17:44:38]Read from MH i2c: F0 [17:44:38]MH_I2C_Read... [17:44:38]Read from MH i2c: F0 09 00 [17:44:38]MH_I2C_Read... [17:44:38]Read from MH i2c: F0 09 00 B1 02 00 86 2A 1D 67 68 46 19 67 0D [17:44:38]GetLastDocTimeStamp 1729964587 [17:44:38]current date 1729964678 [17:44:38]FM_GetShiftState [17:44:38]SAM_PROTO_GetShiftState [17:44:38]wFMCommunicate request_size=4 [17:44:38]MH_SAM_APDU [17:44:38]CAPDU: 80 13 01 00 [17:44:38]Write to MH i2c: E2 08 00 B2 02 80 13 01 00 00 00 00 00 31 [17:44:38]Write i2c OK [17:44:38]MH_I2C_Read... [17:44:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:38]Read from MH i2c: E2 [17:44:38]MH_I2C_Read... [17:44:38]Read from MH i2c: E2 0E 00 [17:44:38]MH_I2C_Read... [17:44:38]Read from MH i2c: E2 0E 00 B2 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 40 [17:44:38]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:44:38]wFMCommunicate OK [17:44:38]SAM_PROTO_GetShiftState done [17:44:38]FM_GetShiftState done [17:44:38]opened in 1729900879 [17:44:38]opened+sec_in_day 1729987279 [17:44:38]quantity*price = 60045 [17:44:38]sum+1 = 60047 [17:44:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 379 26.10.2024 17:44 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201617 ФПД: 207692844345517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T174438&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201617&fm=207692844345517&tin=02508201610067®Number=0000000000091777&sum=60000 [17:44:39]StoreToDocumentArchive [17:44:39]shift 543 fd 201617 [17:44:39]save to /storage/0543/doc_00201617 [17:44:39]save last doc name /storage/0543/doc_00201617 to /storage/kkm_last_doc_name [17:44:39]save OK [17:44:39]Clear old archive folders... [17:44:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:44:39]tlvbuf is 01FA12B0 [17:44:39]SAM_PROTO_ClearQueue [17:44:39]wFMCommunicate request_size=4 [17:44:39]MH_SAM_APDU [17:44:39]CAPDU: 80 09 00 00 [17:44:39]Write to MH i2c: E2 08 00 BF 02 80 09 00 00 00 00 00 00 33 [17:44:39]Write i2c OK [17:44:39]MH_I2C_Read... [17:44:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:44:39]Read from MH i2c: E2 [17:44:39]MH_I2C_Read... [17:44:39]Read from MH i2c: E2 03 00 [17:44:39]MH_I2C_Read... [17:44:39]Read from MH i2c: E2 03 00 BF 02 00 90 00 35 [17:44:39]RAPDU: 90 00 [17:44:39]wFMCommunicate OK [17:44:39]SAM_PROTO_ClearQueue done [17:44:39]KKMCreateOFDPacket [17:44:39]OFDProtocolAddRootSTLVToBuf [17:44:39]FM_MakeSignedData [17:44:39]FM_MakeSignedData [17:44:39]SAM_PROTO_SignData [17:44:39]wFMCommunicate request_size=4 [17:44:39]MH_SAM_APDU [17:44:39]CAPDU: 80 0D 01 02 [17:44:39]Write to MH i2c: E2 08 00 C0 02 80 0D 01 02 00 00 00 00 3B [17:44:39]Write i2c OK [17:44:39]MH_I2C_Read... [17:44:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:44:39]Read from MH i2c: E2 [17:44:39]MH_I2C_Read... [17:44:39]Read from MH i2c: E2 03 00 [17:44:39]MH_I2C_Read... [17:44:39]Read from MH i2c: E2 03 00 C0 02 00 90 00 36 [17:44:39]RAPDU: 90 00 [17:44:39]wFMCommunicate OK [17:44:39]wFMCommunicate request_size=255 [17:44:39]MH_SAM_APDU [17:44:39]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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 7B 01 00 00 F4 03 04 00 86 2A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 91 13 03 00 35 04 06 00 BC E5 42 35 [17:44:39]Write to MH i2c: E2 02 01 C1 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 7B 01 00 00 F4 03 04 00 86 2A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 91 13 03 00 35 04 06 00 BC E5 42 35 00 00 16 [17:44:39]Write i2c OK [17:44:39]MH_I2C_Read... [17:44:39]OFD Sender: No OFD packet to send [17:44:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:39]Read from MH i2c: E2 [17:44:39]MH_I2C_Read... [17:44:39]Read from MH i2c: E2 03 00 [17:44:39]MH_I2C_Read... [17:44:39]Read from MH i2c: E2 03 00 C1 02 00 90 00 37 [17:44:39]RAPDU: 90 00 [17:44:39]wFMCommunicate OK [17:44:39]wFMCommunicate request_size=7 [17:44:39]MH_SAM_APDU [17:44:39]CAPDU: 80 0D 02 02 02 A8 AD [17:44:39]Write to MH i2c: E2 0A 00 C2 02 80 0D 02 02 02 00 A8 AD 00 00 97 [17:44:39]Write i2c OK [17:44:39]MH_I2C_Read... [17:44:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:39]Read from MH i2c: E2 [17:44:39]MH_I2C_Read... [17:44:39]Read from MH i2c: E2 03 00 [17:44:39]MH_I2C_Read... [17:44:39]Read from MH i2c: E2 03 00 C2 02 00 90 00 38 [17:44:39]RAPDU: 90 00 [17:44:39]wFMCommunicate OK [17:44:39]wFMCommunicate request_size=4 [17:44:39]MH_SAM_APDU [17:44:39]CAPDU: 80 0D 03 02 [17:44:39]Write to MH i2c: E2 08 00 C3 02 80 0D 03 02 00 00 00 00 40 [17:44:39]Write i2c OK [17:44:39]MH_I2C_Read... [17:44:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:44:39]Read from MH i2c: E2 [17:44:39]MH_I2C_Read... [17:44:39]Read from MH i2c: E2 0B 00 [17:44:39]MH_I2C_Read... [17:44:39]Read from MH i2c: E2 0B 00 C3 02 00 07 AA 7F FE 04 0D 43 1F 90 00 E2 [17:44:39]RAPDU: 07 AA 7F FE 04 0D 43 1F 90 00 [17:44:39]wFMCommunicate OK [17:44:39]SAM_PROTO_SignData done [17:44:39]FM_MakeSignedData done [17:44:39]CreateOFDProtocolMessage [17:44:39]wFMCommunicate request_size=4 [17:44:39]MH_SAM_APDU [17:44:39]CAPDU: 80 11 00 00 [17:44:39]Write to MH i2c: E2 08 00 C4 02 80 11 00 00 00 00 00 00 40 [17:44:39]Write i2c OK [17:44:39]MH_I2C_Read... [17:44:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:39]Read from MH i2c: E2 [17:44:39]MH_I2C_Read... [17:44:39]Read from MH i2c: E2 17 00 [17:44:39]MH_I2C_Read... [17:44:39]Read from MH i2c: E2 17 00 C4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 95 [17:44:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:44:39]wFMCommunicate OK [17:44:39]CreateOFDProtocolMessage done [17:44:39]OFDSenderStorePacket 201617 [17:44:39]StoreOFDPacket docnum=201617 [17:44:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 7D D4 04 01 63 E4 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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 7B 01 00 00 F4 03 04 00 86 2A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 91 13 03 00 35 04 06 00 BC E5 42 35 A8 AD 07 AA 7F FE 04 0D 43 1F [17:44:39]CheckFolder [17:44:39]dirname=/storage/ofd_packets [17:44:39]CheckFolder done [17:44:39]ProducePacketName [17:44:39]name=ofd_packets/00201617 [17:44:39]NVStorageSaveData ofd_packets/00201617 [17:44:39]File name is /storage/ofd_packets/00201617 [17:44:39]Write 298 bytes [17:44:39]NVStorageSaveData done [17:44:39]OFDSenderStorePacket done [17:44:39]KKMCreateOFDPacket done [17:44:39]NVStorageSaveData kkm_last_timestamp [17:44:39]File name is /storage/kkm_last_timestamp [17:44:39]Write 4 bytes [17:44:39]NVStorageSaveData done [17:44:39]ExternCall_PrintAddStr [17:44:39]wPrintStart [17:44:39]Write to MH i2c: 01 00 00 C5 02 C7 [17:44:39]Write i2c OK [17:44:39]MH_I2C_Read... [17:44:39]Read from MH i2c: 01 [17:44:39]MH_I2C_Read... [17:44:39]Read from MH i2c: 01 07 00 [17:44:39]MH_I2C_Read... [17:44:39]Read from MH i2c: 01 07 00 C5 02 00 00 00 00 00 FF 0F DC [17:44:39]RasterBufferAndPrint [17:44:39]line Счет N : (1)449373 [17:44:39]line ИНН: 02508201610067 [17:44:39]line Контрольно-Кассовый Чек [17:44:39]line ПРОДАЖА [17:44:39]line ТРК (МРК, ГНК) : 11 [17:44:39]line Товар: 2710194210 [17:44:39]line ДТ-К-2 [17:44:39]line 7.880 * 76.20 [17:44:39]line = 600.46 [17:44:39]line НДС 12% НСП 1% [17:44:39]line > о реализуемом товаре [17:44:39]line ОКРУГЛЕНИЕ: -0.46 [17:44:39]line ИТОГО: 600.00 [17:44:39]line Внесено: 600.00 [17:44:39]line СДАЧА: 0.00 [17:44:39]line НСП 1% : 5.31 [17:44:39]line НДС 12% : 63.77 [17:44:39]line Наличными: 600.00 [17:44:39]line Безнал.: 0.00 [17:44:39]line Место: АЗС № 171 "Партнер Нефть" [17:44:39]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:44:39]line СНО: Общий режим [17:44:39]line Чек 379 26.10.2024 17:44 [17:44:39]line Смена: 543 ФФД: 1.0 [17:44:39]line ЗНМ: 0300000109 [17:44:39]line РНМ: 0000000000091777 [17:44:39]line Версия ККМ: 001 [17:44:39]line ФМ: 0000000000871756 [17:44:39]line ФД: 201617 [17:44:39]line ФПД: 207692844345517 [17:44:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T174438&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201617&fm=207692844345517&tin=02508201610067®Number=0000000000091777&sum=60000 [17:44:40]OFD Sender: Processing packet 201617 [packets to send 112, broken 111] [17:44:40]ProducePacketName [17:44:40]name=ofd_packets/00201617 [17:44:40]OFD Sender: To server: pG, [17:44:40]CommunicateWithHost lk.salyk.kg:30040 [17:44:40]ConnectInit lk.salyk.kg [17:44:40]written 0, free lines is 4095 [17:44:40]Connected sock=10 [17:44:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 7D D4 04 01 63 E4 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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 7B 01 00 00 F4 03 04 00 86 2A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 91 13 03 00 35 04 06 00 BC E5 42 35 A8 AD 07 AA 7F FE 04 0D 43 1F [17:44:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B1 59 47 00 75 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 91 13 03 00 F4 03 04 00 2F D6 1C 67 B6 04 01 00 00 B4 C0 81 14 74 C7 37 82 [17:44:40]CommunicateWithHost err = 0 [17:44:40]CheckOFDResponse [17:44:40]1017 (14) - 77093643461234 [17:44:40]1041 (16) - 0000000000871756 [17:44:40]1040 (4) - 201617 [17:44:40]1012 (4) - 26.10.2024 11:44 [17:44:40]1206 (1) - 0 [17:44:40]OFD Sender: Remove packet 201617 [17:44:40]ProducePacketName [17:44:40]name=ofd_packets/00201617 [17:44:40]NVStorageDeleteData [17:44:40]Write to MH i2c: 01 00 00 F0 02 F2 [17:44:40]Write i2c OK [17:44:40]MH_I2C_Read... [17:44:40]Read from MH i2c: 01 [17:44:40]MH_I2C_Read... [17:44:40]Read from MH i2c: 01 07 00 [17:44:40]MH_I2C_Read... [17:44:40]Read from MH i2c: 01 07 00 F0 02 00 00 00 00 00 9D 0C A2 [17:44:40]RasterBufferAndPrint [17:44:40]line [17:44:40]line [17:44:40]line [17:44:40]line [17:44:40]line [17:44:40]written 0, free lines is 3235 [17:44:40]MH_Cut [17:44:40]Write to MH i2c: D1 01 00 F7 02 01 CB [17:44:40]Write i2c OK [17:44:40]MH_I2C_Read... [17:44:40]Read from MH i2c: D1 [17:44:40]MH_I2C_Read... [17:44:40]Read from MH i2c: D1 01 00 [17:44:40]MH_I2C_Read... [17:44:40]Read from MH i2c: D1 01 00 F7 02 00 CA [17:44:40]Write to MH i2c: 01 00 00 F8 02 FA [17:44:40]Write i2c OK [17:44:40]MH_I2C_Read... [17:44:40]OFD Sender: No OFD packet to send [17:44:41]*** Cut start [17:44:41]*** Purtial cut [17:44:41]*** Stage 1: CUTSNS_PIN = 1 [17:44:41]Read from MH i2c: 01 [17:44:41]MH_I2C_Read... [17:44:41]*** Stop cut motor [17:44:41]*** Cut end [17:44:41]Read from MH i2c: 01 07 00 [17:44:41]MH_I2C_Read... [17:44:41]Read from MH i2c: 01 07 00 F8 02 00 00 00 00 00 FF 0F 0F [17:44:41]process_action close_receipt done [17:44:41]requested_data is exist [17:44:41]produce_requested_data [17:44:41]requested_item fm.sn is exist - process it [17:44:41]wFMCommunicate request_size=4 [17:44:41]MH_SAM_APDU [17:44:41]CAPDU: 80 11 00 00 [17:44:41]Write to MH i2c: E2 08 00 F9 02 80 11 00 00 00 00 00 00 75 [17:44:41]Write i2c OK [17:44:41]MH_I2C_Read... [17:44:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:41]Read from MH i2c: E2 [17:44:41]MH_I2C_Read... [17:44:41]Read from MH i2c: E2 17 00 [17:44:41]MH_I2C_Read... [17:44:41]Read from MH i2c: E2 17 00 F9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CA [17:44:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:44:41]wFMCommunicate OK [17:44:41]requested_item fd.num is exist - process it [17:44:41]SAM_PROTO_GetFieldsCounters [17:44:41]wFMCommunicate request_size=4 [17:44:41]MH_SAM_APDU [17:44:41]CAPDU: 80 13 00 00 [17:44:41]Write to MH i2c: E2 08 00 FA 02 80 13 00 00 00 00 00 00 78 [17:44:41]Write i2c OK [17:44:41]MH_I2C_Read... [17:44:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:44:41]Read from MH i2c: E2 [17:44:41]MH_I2C_Read... [17:44:41]Read from MH i2c: E2 62 00 [17:44:41]MH_I2C_Read... [17:44:41]Read from MH i2c: E2 62 00 FA 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 91 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 7B 01 00 00 5E 04 04 00 7B 01 00 00 57 04 04 00 7C 01 00 00 19 04 04 00 00 00 00 00 90 00 DD [17:44:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 91 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 7B 01 00 00 5E 04 04 00 7B 01 00 00 57 04 04 00 7C 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:44:41]wFMCommunicate OK [17:44:41]SAM_PROTO_GetFieldsCounters done [17:44:41]requested_item shift.num is exist - process it [17:44:41]requested_item shift.opened is exist - process it [17:44:41]req_shift_opened [17:44:41]FM_GetShiftState [17:44:41]SAM_PROTO_GetShiftState [17:44:41]wFMCommunicate request_size=4 [17:44:41]MH_SAM_APDU [17:44:41]CAPDU: 80 13 01 00 [17:44:41]Write to MH i2c: E2 08 00 FB 02 80 13 01 00 00 00 00 00 7A [17:44:41]Write i2c OK [17:44:41]MH_I2C_Read... [17:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:41]Read from MH i2c: E2 [17:44:41]MH_I2C_Read... [17:44:41]Read from MH i2c: E2 0E 00 [17:44:41]MH_I2C_Read... [17:44:41]Read from MH i2c: E2 0E 00 FB 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 89 [17:44:41]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:44:41]wFMCommunicate OK [17:44:41]SAM_PROTO_GetShiftState done [17:44:41]FM_GetShiftState done [17:44:41]req_shift_opened done [17:44:41]requested_item shift.open_date is exist - process it [17:44:41]req_shift_open_date [17:44:41]req_shift_open_date done [17:44:41]produce_requested_data done [17:44:41]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201617,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [17:44:41]process_action_free close_receipt [17:44:41]json_value_free [17:44:41]json_value_free done [17:44:41]process_json_proto returns [17:44:41]Send response to host [17:44:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201617,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [17:44:41]free response buf [17:44:41]execute_script done [17:44:41]execute_script returns [17:44:41]free content buf [17:44:41]Sock 7.Close socket [17:44:41]Sock 7.Thread stoped [17:44:45]OFD Sender: No OFD packet to send [17:44:50]OFD Sender: No OFD packet to send [17:44:55]OFD Sender: No OFD packet to send [17:45:00]OFD Sender: No OFD packet to send [17:45:05]OFD Sender: No OFD packet to send [17:45:10]OFD Sender: No OFD packet to send [17:45:15]OFD Sender: No OFD packet to send [17:45:20]OFD Sender: No OFD packet to send [17:45:26]OFD Sender: No OFD packet to send [17:45:31]OFD Sender: No OFD packet to send [17:45:36]OFD Sender: No OFD packet to send [17:45:41]OFD Sender: No OFD packet to send [17:45:46]OFD Sender: No OFD packet to send [17:45:51]OFD Sender: No OFD packet to send [17:45:53]accept exits with 9 [17:45:53]New connection [17:45:53]New thread 3067424100 created [17:45:53]Thread 3067280740 joined [17:45:53]Waiting for new connection... [17:45:53] Sock 9.Parse request [17:45:53]Sock 9.Check first char [17:45:53]Sock 9.First char is OK [17:45:53]request: POST /json_proto HTTP/1.0 [17:45:53]Method: POST [17:45:53]URL: /json_proto [17:45:53]Method is POST - this is cgi request [17:45:53]url: /json_proto [17:45:53]query_string will be loaded in cgi processing [17:45:53]execute_cgi json_proto POST (null) [17:45:53]execute_cgi path=json_proto method=POST [17:45:53]POST find Content-Length [17:45:53]Host: 172.17.63.195:8080 [17:45:53]Content-Length: 677 [17:45:53]Content-Type: application/json [17:45:53] [17:45:53]POST finish read [17:45:53]Found Content-Length = 677 [17:45:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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" ] } } [17:45:53]execute_script... [17:45:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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" ] } } [17:45:53]POST & json_proto [17:45:53]process_json_proto [17:45:53]json parsed OK: [17:45:53]protocol is kg_v1.0 [17:45:53]action value=close_receipt [17:45:53]process_action close_receipt [17:45:53]cmd_close_receipt [17:45:53]MH_GetDate [17:45:53]Write to MH i2c: F0 00 00 FC 02 ED [17:45:53]Write i2c OK [17:45:53]MH_I2C_Read... [17:45:53]Read from MH i2c: F0 [17:45:53]MH_I2C_Read... [17:45:53]Read from MH i2c: F0 09 00 [17:45:53]MH_I2C_Read... [17:45:53]Read from MH i2c: F0 09 00 FC 02 00 D1 2A 1D 67 68 46 19 67 A3 [17:45:53]GetLastDocTimeStamp 1729964678 [17:45:53]current date 1729964753 [17:45:53]FM_GetShiftState [17:45:53]SAM_PROTO_GetShiftState [17:45:53]wFMCommunicate request_size=4 [17:45:53]MH_SAM_APDU [17:45:53]CAPDU: 80 13 01 00 [17:45:53]Write to MH i2c: E2 08 00 FD 02 80 13 01 00 00 00 00 00 7C [17:45:53]Write i2c OK [17:45:53]MH_I2C_Read... [17:45:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:53]Read from MH i2c: E2 [17:45:53]MH_I2C_Read... [17:45:53]Read from MH i2c: E2 0E 00 [17:45:53]MH_I2C_Read... [17:45:53]Read from MH i2c: E2 0E 00 FD 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 8B [17:45:53]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:45:53]wFMCommunicate OK [17:45:53]SAM_PROTO_GetShiftState done [17:45:53]FM_GetShiftState done [17:45:53]opened in 1729900879 [17:45:53]opened+sec_in_day 1729987279 [17:45:53]quantity*price = 60009 [17:45:53]sum+1 = 60010 [17:45:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 380 26.10.2024 17:45 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201618 ФПД: 202822885989332 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T174553&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201618&fm=202822885989332&tin=02508201610067®Number=0000000000091777&sum=60000 [17:45:54]StoreToDocumentArchive [17:45:54]shift 543 fd 201618 [17:45:54]save to /storage/0543/doc_00201618 [17:45:54]save last doc name /storage/0543/doc_00201618 to /storage/kkm_last_doc_name [17:45:54]save OK [17:45:54]Clear old archive folders... [17:45:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:45:54]tlvbuf is 01FB1F40 [17:45:54]SAM_PROTO_ClearQueue [17:45:54]wFMCommunicate request_size=4 [17:45:54]MH_SAM_APDU [17:45:54]CAPDU: 80 09 00 00 [17:45:54]Write to MH i2c: E2 08 00 0A 03 80 09 00 00 00 00 00 00 7F [17:45:54]Write i2c OK [17:45:54]MH_I2C_Read... [17:45:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:54]Read from MH i2c: E2 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 03 00 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 03 00 0A 03 00 90 00 81 [17:45:54]RAPDU: 90 00 [17:45:54]wFMCommunicate OK [17:45:54]SAM_PROTO_ClearQueue done [17:45:54]KKMCreateOFDPacket [17:45:54]OFDProtocolAddRootSTLVToBuf [17:45:54]FM_MakeSignedData [17:45:54]FM_MakeSignedData [17:45:54]SAM_PROTO_SignData [17:45:54]wFMCommunicate request_size=4 [17:45:54]MH_SAM_APDU [17:45:54]CAPDU: 80 0D 01 02 [17:45:54]Write to MH i2c: E2 08 00 0B 03 80 0D 01 02 00 00 00 00 87 [17:45:54]Write i2c OK [17:45:54]MH_I2C_Read... [17:45:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:54]Read from MH i2c: E2 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 03 00 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 03 00 0B 03 00 90 00 82 [17:45:54]RAPDU: 90 00 [17:45:54]wFMCommunicate OK [17:45:54]wFMCommunicate request_size=255 [17:45:54]MH_SAM_APDU [17:45: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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 7C 01 00 00 F4 03 04 00 D1 2A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 92 13 03 00 35 04 06 00 B8 [17:45:54]Write to MH i2c: E2 02 01 0C 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 7C 01 00 00 F4 03 04 00 D1 2A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 92 13 03 00 35 04 06 00 B8 00 00 75 [17:45:54]Write i2c OK [17:45:54]MH_I2C_Read... [17:45:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:54]Read from MH i2c: E2 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 03 00 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 03 00 0C 03 00 90 00 83 [17:45:54]RAPDU: 90 00 [17:45:54]wFMCommunicate OK [17:45:54]wFMCommunicate request_size=10 [17:45:54]MH_SAM_APDU [17:45:54]CAPDU: 80 0D 02 02 05 77 62 12 5B D4 [17:45:54]Write to MH i2c: E2 0D 00 0D 03 80 0D 02 02 05 00 77 62 12 5B D4 00 00 AE [17:45:54]Write i2c OK [17:45:54]MH_I2C_Read... [17:45:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:54]Read from MH i2c: E2 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 03 00 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 03 00 0D 03 00 90 00 84 [17:45:54]RAPDU: 90 00 [17:45:54]wFMCommunicate OK [17:45:54]wFMCommunicate request_size=4 [17:45:54]MH_SAM_APDU [17:45:54]CAPDU: 80 0D 03 02 [17:45:54]Write to MH i2c: E2 08 00 0E 03 80 0D 03 02 00 00 00 00 8C [17:45:54]Write i2c OK [17:45:54]MH_I2C_Read... [17:45:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:54]Read from MH i2c: E2 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 0B 00 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 0B 00 0E 03 00 6B D7 6F 21 61 06 C1 EF 90 00 76 [17:45:54]RAPDU: 6B D7 6F 21 61 06 C1 EF 90 00 [17:45:54]wFMCommunicate OK [17:45:54]SAM_PROTO_SignData done [17:45:54]FM_MakeSignedData done [17:45:54]CreateOFDProtocolMessage [17:45:54]wFMCommunicate request_size=4 [17:45:54]MH_SAM_APDU [17:45:54]CAPDU: 80 11 00 00 [17:45:54]Write to MH i2c: E2 08 00 0F 03 80 11 00 00 00 00 00 00 8C [17:45:54]Write i2c OK [17:45:54]MH_I2C_Read... [17:45:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:54]Read from MH i2c: E2 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 17 00 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 17 00 0F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E1 [17:45:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:45:54]wFMCommunicate OK [17:45:54]CreateOFDProtocolMessage done [17:45:54]OFDSenderStorePacket 201618 [17:45:54]StoreOFDPacket docnum=201618 [17:45:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 67 1C 07 01 95 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 7C 01 00 00 F4 03 04 00 D1 2A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 92 13 03 00 35 04 06 00 B8 77 62 12 5B D4 6B D7 6F 21 61 06 C1 EF [17:45:54]CheckFolder [17:45:54]dirname=/storage/ofd_packets [17:45:54]CheckFolder done [17:45:54]ProducePacketName [17:45:54]name=ofd_packets/00201618 [17:45:54]NVStorageSaveData ofd_packets/00201618 [17:45:54]File name is /storage/ofd_packets/00201618 [17:45:54]Write 301 bytes [17:45:54]NVStorageSaveData done [17:45:54]OFDSenderStorePacket done [17:45:54]KKMCreateOFDPacket done [17:45:54]NVStorageSaveData kkm_last_timestamp [17:45:54]File name is /storage/kkm_last_timestamp [17:45:54]Write 4 bytes [17:45:54]NVStorageSaveData done [17:45:54]ExternCall_PrintAddStr [17:45:54]wPrintStart [17:45:54]Write to MH i2c: 01 00 00 10 03 13 [17:45:54]Write i2c OK [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: 01 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: 01 07 00 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: 01 07 00 10 03 00 00 00 00 00 FF 0F 28 [17:45:54]RasterBufferAndPrint [17:45:54]line Счет N : (1)449374 [17:45:54]line ИНН: 02508201610067 [17:45:54]line Контрольно-Кассовый Чек [17:45:54]line ПРОДАЖА [17:45:54]line ТРК (МРК, ГНК) : 41 [17:45:54]line Товар: 2710124130 [17:45:54]line Аи-92-К-2 [17:45:54]line 8.970 * 66.90 [17:45:54]line = 600.09 [17:45:54]line НДС 12% НСП 1% [17:45:54]line > о реализуемом товаре [17:45:54]line ОКРУГЛЕНИЕ: -0.09 [17:45:54]line ИТОГО: 600.00 [17:45:54]line Внесено: 600.00 [17:45:54]line СДАЧА: 0.00 [17:45:54]line НСП 1% : 5.31 [17:45:54]line НДС 12% : 63.73 [17:45:54]line Наличными: 600.00 [17:45:54]line Безнал.: 0.00 [17:45:54]line Место: АЗС № 171 "Партнер Нефть" [17:45:54]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:45:54]line СНО: Общий режим [17:45:54]line Чек 380 26.10.2024 17:45 [17:45:54]line Смена: 543 ФФД: 1.0 [17:45:54]line ЗНМ: 0300000109 [17:45:54]line РНМ: 0000000000091777 [17:45:54]line Версия ККМ: 001 [17:45:54]line ФМ: 0000000000871756 [17:45:54]line ФД: 201618 [17:45:54]line ФПД: 202822885989332 [17:45:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T174553&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201618&fm=202822885989332&tin=02508201610067®Number=0000000000091777&sum=60000 [17:45:55]OFD Sender: Processing packet 201618 [packets to send 112, broken 111] [17:45:55]ProducePacketName [17:45:55]name=ofd_packets/00201618 [17:45:55]OFD Sender: To server: pG, [17:45:55]CommunicateWithHost lk.salyk.kg:30040 [17:45:55]ConnectInit lk.salyk.kg [17:45:55]written 0, free lines is 4095 [17:45:55]Connected sock=10 [17:45:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 67 1C 07 01 95 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 7C 01 00 00 F4 03 04 00 D1 2A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 92 13 03 00 35 04 06 00 B8 77 62 12 5B D4 6B D7 6F 21 61 06 C1 EF [17:45:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A9 7E 47 00 6F 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 92 13 03 00 F4 03 04 00 7A D6 1C 67 B6 04 01 00 00 45 60 DF 19 0D D9 B3 21 [17:45:55]CommunicateWithHost err = 0 [17:45:55]CheckOFDResponse [17:45:55]1017 (14) - 77093643461234 [17:45:55]1041 (16) - 0000000000871756 [17:45:55]1040 (4) - 201618 [17:45:55]1012 (4) - 26.10.2024 11:46 [17:45:55]1206 (1) - 0 [17:45:55]OFD Sender: Remove packet 201618 [17:45:55]ProducePacketName [17:45:55]name=ofd_packets/00201618 [17:45:55]NVStorageDeleteData [17:45:55]Write to MH i2c: 01 00 00 3B 03 3E [17:45:55]Write i2c OK [17:45:55]MH_I2C_Read... [17:45:55]Read from MH i2c: 01 [17:45:55]MH_I2C_Read... [17:45:55]Read from MH i2c: 01 07 00 [17:45:55]MH_I2C_Read... [17:45:55]Read from MH i2c: 01 07 00 3B 03 00 00 00 00 00 B2 0C 03 [17:45:55]RasterBufferAndPrint [17:45:55]line [17:45:55]line [17:45:55]line [17:45:55]line [17:45:55]line [17:45:55]written 0, free lines is 3257 [17:45:55]MH_Cut [17:45:55]Write to MH i2c: D1 01 00 42 03 01 17 [17:45:55]Write i2c OK [17:45:55]MH_I2C_Read... [17:45:55]Read from MH i2c: D1 [17:45:55]MH_I2C_Read... [17:45:55]Read from MH i2c: D1 01 00 [17:45:55]MH_I2C_Read... [17:45:55]Read from MH i2c: D1 01 00 42 03 00 16 [17:45:55]Write to MH i2c: 01 00 00 43 03 46 [17:45:55]Write i2c OK [17:45:55]MH_I2C_Read... [17:45:56]OFD Sender: No OFD packet to send [17:45:56]*** Cut start [17:45:56]*** Purtial cut [17:45:56]*** Stage 1: CUTSNS_PIN = 1 [17:45:56]Read from MH i2c: 01 [17:45:56]MH_I2C_Read... [17:45:56]*** Stop cut motor [17:45:56]*** Cut end [17:45:56]Read from MH i2c: 01 07 00 [17:45:56]MH_I2C_Read... [17:45:56]Read from MH i2c: 01 07 00 43 03 00 00 00 00 00 FF 0F 5B [17:45:56]process_action close_receipt done [17:45:56]requested_data is exist [17:45:56]produce_requested_data [17:45:56]requested_item fm.sn is exist - process it [17:45:56]wFMCommunicate request_size=4 [17:45:56]MH_SAM_APDU [17:45:56]CAPDU: 80 11 00 00 [17:45:56]Write to MH i2c: E2 08 00 44 03 80 11 00 00 00 00 00 00 C1 [17:45:56]Write i2c OK [17:45:56]MH_I2C_Read... [17:45:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:56]Read from MH i2c: E2 [17:45:56]MH_I2C_Read... [17:45:56]Read from MH i2c: E2 17 00 [17:45:56]MH_I2C_Read... [17:45:56]Read from MH i2c: E2 17 00 44 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 16 [17:45:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:45:56]wFMCommunicate OK [17:45:56]requested_item fd.num is exist - process it [17:45:56]SAM_PROTO_GetFieldsCounters [17:45:56]wFMCommunicate request_size=4 [17:45:56]MH_SAM_APDU [17:45:56]CAPDU: 80 13 00 00 [17:45:56]Write to MH i2c: E2 08 00 45 03 80 13 00 00 00 00 00 00 C4 [17:45:56]Write i2c OK [17:45:56]MH_I2C_Read... [17:45:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:57]Read from MH i2c: E2 [17:45:57]MH_I2C_Read... [17:45:57]Read from MH i2c: E2 62 00 [17:45:57]MH_I2C_Read... [17:45:57]Read from MH i2c: E2 62 00 45 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 92 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 7C 01 00 00 5E 04 04 00 7C 01 00 00 57 04 04 00 7D 01 00 00 19 04 04 00 00 00 00 00 90 00 2D [17:45:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 92 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 7C 01 00 00 5E 04 04 00 7C 01 00 00 57 04 04 00 7D 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:45:57]wFMCommunicate OK [17:45:57]SAM_PROTO_GetFieldsCounters done [17:45:57]requested_item shift.num is exist - process it [17:45:57]requested_item shift.opened is exist - process it [17:45:57]req_shift_opened [17:45:57]FM_GetShiftState [17:45:57]SAM_PROTO_GetShiftState [17:45:57]wFMCommunicate request_size=4 [17:45:57]MH_SAM_APDU [17:45:57]CAPDU: 80 13 01 00 [17:45:57]Write to MH i2c: E2 08 00 46 03 80 13 01 00 00 00 00 00 C6 [17:45:57]Write i2c OK [17:45:57]MH_I2C_Read... [17:45:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:57]Read from MH i2c: E2 [17:45:57]MH_I2C_Read... [17:45:57]Read from MH i2c: E2 0E 00 [17:45:57]MH_I2C_Read... [17:45:57]Read from MH i2c: E2 0E 00 46 03 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D5 [17:45:57]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:45:57]wFMCommunicate OK [17:45:57]SAM_PROTO_GetShiftState done [17:45:57]FM_GetShiftState done [17:45:57]req_shift_opened done [17:45:57]requested_item shift.open_date is exist - process it [17:45:57]req_shift_open_date [17:45:57]req_shift_open_date done [17:45:57]produce_requested_data done [17:45:57]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201618,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [17:45:57]process_action_free close_receipt [17:45:57]json_value_free [17:45:57]json_value_free done [17:45:57]process_json_proto returns [17:45:57]Send response to host [17:45:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201618,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [17:45:57]free response buf [17:45:57]execute_script done [17:45:57]execute_script returns [17:45:57]free content buf [17:45:57]Sock 9.Close socket [17:45:57]Sock 9.Thread stoped [17:46:01]OFD Sender: No OFD packet to send [17:46:06]OFD Sender: No OFD packet to send [17:46:11]OFD Sender: No OFD packet to send [17:46:16]OFD Sender: No OFD packet to send [17:46:21]OFD Sender: No OFD packet to send [17:46:26]OFD Sender: No OFD packet to send [17:46:31]OFD Sender: No OFD packet to send [17:46:36]OFD Sender: No OFD packet to send [17:46:41]OFD Sender: No OFD packet to send [17:46:46]OFD Sender: No OFD packet to send [17:46:51]OFD Sender: No OFD packet to send [17:46:56]OFD Sender: No OFD packet to send [17:47:01]OFD Sender: No OFD packet to send [17:47:06]OFD Sender: No OFD packet to send [17:47:11]OFD Sender: No OFD packet to send [17:47:16]OFD Sender: No OFD packet to send [17:47:21]OFD Sender: No OFD packet to send [17:47:26]OFD Sender: No OFD packet to send [17:47:31]OFD Sender: No OFD packet to send [17:47:36]OFD Sender: No OFD packet to send [17:47:41]OFD Sender: No OFD packet to send [17:47:45]accept exits with 7 [17:47:45]New connection [17:47:45]New thread 3067280740 created [17:47:45]Thread 3067424100 joined [17:47:45]Waiting for new connection... [17:47:45] Sock 7.Parse request [17:47:45]Sock 7.Check first char [17:47:45]Sock 7.First char is OK [17:47:45]request: POST /json_proto HTTP/1.0 [17:47:45]Method: POST [17:47:45]URL: /json_proto [17:47:45]Method is POST - this is cgi request [17:47:45]url: /json_proto [17:47:45]query_string will be loaded in cgi processing [17:47:45]execute_cgi json_proto POST (null) [17:47:45]execute_cgi path=json_proto method=POST [17:47:45]POST find Content-Length [17:47:45]Host: 172.17.63.195:8080 [17:47:45]Content-Length: 677 [17:47:45]Content-Type: application/json [17:47:45] [17:47:45]POST finish read [17:47:45]Found Content-Length = 677 [17:47:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [17:47:45]execute_script... [17:47: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)449376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [17:47:45]POST & json_proto [17:47:45]process_json_proto [17:47:45]json parsed OK: [17:47:45]protocol is kg_v1.0 [17:47:45]action value=close_receipt [17:47:45]process_action close_receipt [17:47:45]cmd_close_receipt [17:47:45]MH_GetDate [17:47:45]Write to MH i2c: F0 00 00 47 03 39 [17:47:45]Write i2c OK [17:47:45]MH_I2C_Read... [17:47:45]Read from MH i2c: F0 [17:47:45]MH_I2C_Read... [17:47:45]Read from MH i2c: F0 09 00 [17:47:45]MH_I2C_Read... [17:47:45]Read from MH i2c: F0 09 00 47 03 00 41 2B 1D 67 68 46 19 67 60 [17:47:45]GetLastDocTimeStamp 1729964753 [17:47:45]current date 1729964865 [17:47:45]FM_GetShiftState [17:47:45]SAM_PROTO_GetShiftState [17:47:45]wFMCommunicate request_size=4 [17:47:45]MH_SAM_APDU [17:47:45]CAPDU: 80 13 01 00 [17:47:45]Write to MH i2c: E2 08 00 48 03 80 13 01 00 00 00 00 00 C8 [17:47:45]Write i2c OK [17:47:45]MH_I2C_Read... [17:47:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:45]Read from MH i2c: E2 [17:47:45]MH_I2C_Read... [17:47:45]Read from MH i2c: E2 0E 00 [17:47:45]MH_I2C_Read... [17:47:45]Read from MH i2c: E2 0E 00 48 03 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D7 [17:47:45]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:47:45]wFMCommunicate OK [17:47:45]SAM_PROTO_GetShiftState done [17:47:45]FM_GetShiftState done [17:47:45]opened in 1729900879 [17:47:45]opened+sec_in_day 1729987279 [17:47:45]quantity*price = 50041 [17:47:45]sum+1 = 50042 [17:47:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 381 26.10.2024 17:47 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201619 ФПД: 145233933390731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T174745&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201619&fm=145233933390731&tin=02508201610067®Number=0000000000091777&sum=50000 [17:47:46]StoreToDocumentArchive [17:47:46]shift 543 fd 201619 [17:47:46]save to /storage/0543/doc_00201619 [17:47:46]save last doc name /storage/0543/doc_00201619 to /storage/kkm_last_doc_name [17:47:46]save OK [17:47:46]Clear old archive folders... [17:47:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:47:46]tlvbuf is 01FAF770 [17:47:46]SAM_PROTO_ClearQueue [17:47:46]wFMCommunicate request_size=4 [17:47:46]MH_SAM_APDU [17:47:46]CAPDU: 80 09 00 00 [17:47:46]Write to MH i2c: E2 08 00 55 03 80 09 00 00 00 00 00 00 CA [17:47:46]Write i2c OK [17:47:46]MH_I2C_Read... [17:47:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:46]Read from MH i2c: E2 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 03 00 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 03 00 55 03 00 90 00 CC [17:47:46]RAPDU: 90 00 [17:47:46]wFMCommunicate OK [17:47:46]SAM_PROTO_ClearQueue done [17:47:46]KKMCreateOFDPacket [17:47:46]OFDProtocolAddRootSTLVToBuf [17:47:46]FM_MakeSignedData [17:47:46]FM_MakeSignedData [17:47:46]SAM_PROTO_SignData [17:47:46]wFMCommunicate request_size=4 [17:47:46]MH_SAM_APDU [17:47:46]CAPDU: 80 0D 01 02 [17:47:46]Write to MH i2c: E2 08 00 56 03 80 0D 01 02 00 00 00 00 D2 [17:47:46]Write i2c OK [17:47:46]MH_I2C_Read... [17:47:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:46]Read from MH i2c: E2 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 03 00 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 03 00 56 03 00 90 00 CD [17:47:46]RAPDU: 90 00 [17:47:46]wFMCommunicate OK [17:47:46]wFMCommunicate request_size=255 [17:47:46]MH_SAM_APDU [17:47:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 7D 01 00 00 F4 03 04 00 41 2B 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 93 13 03 00 35 04 06 00 84 [17:47:46]Write to MH i2c: E2 02 01 57 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 32 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 7D 01 00 00 F4 03 04 00 41 2B 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 93 13 03 00 35 04 06 00 84 00 00 22 [17:47:46]Write i2c OK [17:47:46]MH_I2C_Read... [17:47:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:46]Read from MH i2c: E2 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 03 00 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 03 00 57 03 00 90 00 CE [17:47:46]RAPDU: 90 00 [17:47:46]wFMCommunicate OK [17:47:46]wFMCommunicate request_size=10 [17:47:46]MH_SAM_APDU [17:47:46]CAPDU: 80 0D 02 02 05 16 E9 02 53 8B [17:47:46]Write to MH i2c: E2 0D 00 58 03 80 0D 02 02 05 00 16 E9 02 53 8B 00 00 BE [17:47:46]Write i2c OK [17:47:46]MH_I2C_Read... [17:47:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:46]Read from MH i2c: E2 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 03 00 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 03 00 58 03 00 90 00 CF [17:47:46]RAPDU: 90 00 [17:47:46]wFMCommunicate OK [17:47:46]wFMCommunicate request_size=4 [17:47:46]MH_SAM_APDU [17:47:46]CAPDU: 80 0D 03 02 [17:47:46]Write to MH i2c: E2 08 00 59 03 80 0D 03 02 00 00 00 00 D7 [17:47:46]Write i2c OK [17:47:46]MH_I2C_Read... [17:47:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:46]Read from MH i2c: E2 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 0B 00 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 0B 00 59 03 00 E5 8B 37 4A B7 9E A6 5A 90 00 1E [17:47:46]RAPDU: E5 8B 37 4A B7 9E A6 5A 90 00 [17:47:46]wFMCommunicate OK [17:47:46]SAM_PROTO_SignData done [17:47:46]FM_MakeSignedData done [17:47:46]CreateOFDProtocolMessage [17:47:46]wFMCommunicate request_size=4 [17:47:46]MH_SAM_APDU [17:47:46]CAPDU: 80 11 00 00 [17:47:46]Write to MH i2c: E2 08 00 5A 03 80 11 00 00 00 00 00 00 D7 [17:47:46]Write i2c OK [17:47:46]MH_I2C_Read... [17:47:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:46]Read from MH i2c: E2 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 17 00 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 17 00 5A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2C [17:47:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:47:46]wFMCommunicate OK [17:47:46]CreateOFDProtocolMessage done [17:47:46]OFDSenderStorePacket 201619 [17:47:46]StoreOFDPacket docnum=201619 [17:47:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 55 CA 07 01 45 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 7D 01 00 00 F4 03 04 00 41 2B 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 93 13 03 00 35 04 06 00 84 16 E9 02 53 8B E5 8B 37 4A B7 9E A6 5A [17:47:46]CheckFolder [17:47:46]dirname=/storage/ofd_packets [17:47:46]CheckFolder done [17:47:46]ProducePacketName [17:47:46]name=ofd_packets/00201619 [17:47:46]NVStorageSaveData ofd_packets/00201619 [17:47:46]File name is /storage/ofd_packets/00201619 [17:47:46]Write 301 bytes [17:47:46]NVStorageSaveData done [17:47:46]OFDSenderStorePacket done [17:47:46]KKMCreateOFDPacket done [17:47:46]NVStorageSaveData kkm_last_timestamp [17:47:46]File name is /storage/kkm_last_timestamp [17:47:46]Write 4 bytes [17:47:46]NVStorageSaveData done [17:47:46]ExternCall_PrintAddStr [17:47:46]wPrintStart [17:47:46]Write to MH i2c: 01 00 00 5B 03 5E [17:47:46]Write i2c OK [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: 01 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: 01 07 00 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: 01 07 00 5B 03 00 00 00 00 00 FF 0F 73 [17:47:46]RasterBufferAndPrint [17:47:46]line Счет N : (1)449376 [17:47:46]line ИНН: 02508201610067 [17:47:46]line Контрольно-Кассовый Чек [17:47:46]line ПРОДАЖА [17:47:46]line ТРК (МРК, ГНК) : 41 [17:47:46]line Товар: 2710124130 [17:47:46]line Аи-92-К-2 [17:47:46]line 7.480 * 66.90 [17:47:46]line = 500.41 [17:47:46]line НДС 12% НСП 1% [17:47:46]line > о реализуемом товаре [17:47:46]line ОКРУГЛЕНИЕ: -0.41 [17:47:46]line ИТОГО: 500.00 [17:47:46]line Внесено: 500.00 [17:47:46]line СДАЧА: 0.00 [17:47:46]line НСП 1% : 4.43 [17:47:46]line НДС 12% : 53.14 [17:47:46]line Наличными: 500.00 [17:47:46]line Безнал.: 0.00 [17:47:46]line Место: АЗС № 171 "Партнер Нефть" [17:47:46]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:47:46]line СНО: Общий режим [17:47:46]line Чек 381 26.10.2024 17:47 [17:47:46]line Смена: 543 ФФД: 1.0 [17:47:46]line ЗНМ: 0300000109 [17:47:46]line РНМ: 0000000000091777 [17:47:46]line Версия ККМ: 001 [17:47:46]line ФМ: 0000000000871756 [17:47:46]line ФД: 201619 [17:47:46]line ФПД: 145233933390731 [17:47:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T174745&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201619&fm=145233933390731&tin=02508201610067®Number=0000000000091777&sum=50000 [17:47:47]OFD Sender: Processing packet 201619 [packets to send 112, broken 111] [17:47:47]ProducePacketName [17:47:47]name=ofd_packets/00201619 [17:47:47]OFD Sender: To server: pG, [17:47:47]CommunicateWithHost lk.salyk.kg:30040 [17:47:47]ConnectInit lk.salyk.kg [17:47:47]written 0, free lines is 4095 [17:47:47]Connected sock=10 [17:47:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 55 CA 07 01 45 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 7D 01 00 00 F4 03 04 00 41 2B 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 93 13 03 00 35 04 06 00 84 16 E9 02 53 8B E5 8B 37 4A B7 9E A6 5A [17:47:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 03 0F 47 00 FC BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 93 13 03 00 F4 03 04 00 EA D6 1C 67 B6 04 01 00 00 3E A2 69 FF D8 86 1B DF [17:47:47]CommunicateWithHost err = 0 [17:47:47]CheckOFDResponse [17:47:47]1017 (14) - 77093643461234 [17:47:47]1041 (16) - 0000000000871756 [17:47:47]1040 (4) - 201619 [17:47:47]1012 (4) - 26.10.2024 11:47 [17:47:47]1206 (1) - 0 [17:47:47]OFD Sender: Remove packet 201619 [17:47:47]ProducePacketName [17:47:47]name=ofd_packets/00201619 [17:47:47]NVStorageDeleteData [17:47:47]Write to MH i2c: 01 00 00 86 03 89 [17:47:47]Write i2c OK [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: 01 [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: 01 07 00 [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: 01 07 00 86 03 00 00 00 00 00 A0 0C 3C [17:47:47]RasterBufferAndPrint [17:47:47]line [17:47:47]line [17:47:47]line [17:47:47]line [17:47:47]line [17:47:47]written 0, free lines is 3236 [17:47:47]MH_Cut [17:47:47]Write to MH i2c: D1 01 00 8D 03 01 62 [17:47:47]Write i2c OK [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: D1 [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: D1 01 00 [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: D1 01 00 8D 03 00 61 [17:47:47]Write to MH i2c: 01 00 00 8E 03 91 [17:47:47]Write i2c OK [17:47:47]MH_I2C_Read... [17:47:48]OFD Sender: No OFD packet to send [17:47:48]*** Cut start [17:47:48]*** Purtial cut [17:47:48]*** Stage 1: CUTSNS_PIN = 1 [17:47:48]Read from MH i2c: 01 [17:47:48]MH_I2C_Read... [17:47:48]*** Stop cut motor [17:47:48]*** Cut end [17:47:48]Read from MH i2c: 01 07 00 [17:47:48]MH_I2C_Read... [17:47:48]Read from MH i2c: 01 07 00 8E 03 00 00 00 00 00 FF 0F A6 [17:47:48]process_action close_receipt done [17:47:48]requested_data is exist [17:47:48]produce_requested_data [17:47:48]requested_item fm.sn is exist - process it [17:47:48]wFMCommunicate request_size=4 [17:47:48]MH_SAM_APDU [17:47:48]CAPDU: 80 11 00 00 [17:47:48]Write to MH i2c: E2 08 00 8F 03 80 11 00 00 00 00 00 00 0C [17:47:48]Write i2c OK [17:47:48]MH_I2C_Read... [17:47:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:48]Read from MH i2c: E2 [17:47:48]MH_I2C_Read... [17:47:48]Read from MH i2c: E2 17 00 [17:47:48]MH_I2C_Read... [17:47:48]Read from MH i2c: E2 17 00 8F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 61 [17:47:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:47:48]wFMCommunicate OK [17:47:48]requested_item fd.num is exist - process it [17:47:48]SAM_PROTO_GetFieldsCounters [17:47:48]wFMCommunicate request_size=4 [17:47:48]MH_SAM_APDU [17:47:48]CAPDU: 80 13 00 00 [17:47:48]Write to MH i2c: E2 08 00 90 03 80 13 00 00 00 00 00 00 0F [17:47:48]Write i2c OK [17:47:48]MH_I2C_Read... [17:47:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:48]Read from MH i2c: E2 [17:47:48]MH_I2C_Read... [17:47:48]Read from MH i2c: E2 62 00 [17:47:48]MH_I2C_Read... [17:47:48]Read from MH i2c: E2 62 00 90 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 93 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 7D 01 00 00 5E 04 04 00 7D 01 00 00 57 04 04 00 7E 01 00 00 19 04 04 00 00 00 00 00 90 00 7C [17:47:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 93 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 7D 01 00 00 5E 04 04 00 7D 01 00 00 57 04 04 00 7E 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:48]wFMCommunicate OK [17:47:48]SAM_PROTO_GetFieldsCounters done [17:47:48]requested_item shift.num is exist - process it [17:47:48]requested_item shift.opened is exist - process it [17:47:48]req_shift_opened [17:47:48]FM_GetShiftState [17:47:48]SAM_PROTO_GetShiftState [17:47:48]wFMCommunicate request_size=4 [17:47:48]MH_SAM_APDU [17:47:48]CAPDU: 80 13 01 00 [17:47:48]Write to MH i2c: E2 08 00 91 03 80 13 01 00 00 00 00 00 11 [17:47:48]Write i2c OK [17:47:48]MH_I2C_Read... [17:47:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:49]Read from MH i2c: E2 [17:47:49]MH_I2C_Read... [17:47:49]Read from MH i2c: E2 0E 00 [17:47:49]MH_I2C_Read... [17:47:49]Read from MH i2c: E2 0E 00 91 03 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 20 [17:47:49]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:47:49]wFMCommunicate OK [17:47:49]SAM_PROTO_GetShiftState done [17:47:49]FM_GetShiftState done [17:47:49]req_shift_opened done [17:47:49]requested_item shift.open_date is exist - process it [17:47:49]req_shift_open_date [17:47:49]req_shift_open_date done [17:47:49]produce_requested_data done [17:47:49]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201619,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [17:47:49]process_action_free close_receipt [17:47:49]json_value_free [17:47:49]json_value_free done [17:47:49]process_json_proto returns [17:47:49]Send response to host [17:47:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201619,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [17:47:49]free response buf [17:47:49]execute_script done [17:47:49]execute_script returns [17:47:49]free content buf [17:47:49]Sock 7.Close socket [17:47:49]Sock 7.Thread stoped [17:47:53]OFD Sender: No OFD packet to send [17:47:58]OFD Sender: No OFD packet to send [17:48:03]OFD Sender: No OFD packet to send [17:48:08]OFD Sender: No OFD packet to send [17:48:13]OFD Sender: No OFD packet to send [17:48:18]OFD Sender: No OFD packet to send [17:48:23]OFD Sender: No OFD packet to send [17:48:25]accept exits with 9 [17:48:25]New connection [17:48:25]New thread 3067424100 created [17:48:25]Thread 3067280740 joined [17:48:25]Waiting for new connection... [17:48:25] Sock 9.Parse request [17:48:25]Sock 9.Check first char [17:48:25]Sock 9.First char is OK [17:48:25]request: POST /json_proto HTTP/1.0 [17:48:25]Method: POST [17:48:25]URL: /json_proto [17:48:25]Method is POST - this is cgi request [17:48:25]url: /json_proto [17:48:25]query_string will be loaded in cgi processing [17:48:25]execute_cgi json_proto POST (null) [17:48:25]execute_cgi path=json_proto method=POST [17:48:25]POST find Content-Length [17:48:25]Host: 172.17.63.195:8080 [17:48:25]Content-Length: 677 [17:48:25]Content-Type: application/json [17:48:25] [17:48:25]POST finish read [17:48:25]Found Content-Length = 677 [17:48:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [17:48:25]execute_script... [17:48:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [17:48:25]POST & json_proto [17:48:25]process_json_proto [17:48:25]json parsed OK: [17:48:25]protocol is kg_v1.0 [17:48:25]action value=close_receipt [17:48:25]process_action close_receipt [17:48:25]cmd_close_receipt [17:48:25]MH_GetDate [17:48:25]Write to MH i2c: F0 00 00 92 03 84 [17:48:25]Write i2c OK [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: F0 [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: F0 09 00 [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: F0 09 00 92 03 00 6A 2B 1D 67 68 46 19 67 D4 [17:48:25]GetLastDocTimeStamp 1729964865 [17:48:25]current date 1729964906 [17:48:25]FM_GetShiftState [17:48:25]SAM_PROTO_GetShiftState [17:48:25]wFMCommunicate request_size=4 [17:48:25]MH_SAM_APDU [17:48:25]CAPDU: 80 13 01 00 [17:48:25]Write to MH i2c: E2 08 00 93 03 80 13 01 00 00 00 00 00 13 [17:48:25]Write i2c OK [17:48:25]MH_I2C_Read... [17:48:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:25]Read from MH i2c: E2 [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: E2 0E 00 [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: E2 0E 00 93 03 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 22 [17:48:25]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:48:25]wFMCommunicate OK [17:48:25]SAM_PROTO_GetShiftState done [17:48:25]FM_GetShiftState done [17:48:25]opened in 1729900879 [17:48:25]opened+sec_in_day 1729987279 [17:48:25]quantity*price = 40006 [17:48:25]sum+1 = 40007 [17:48:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 382 26.10.2024 17:48 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201620 ФПД: 20280151718587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T174826&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201620&fm=20280151718587&tin=02508201610067®Number=0000000000091777&sum=40000 [17:48:27]StoreToDocumentArchive [17:48:27]shift 543 fd 201620 [17:48:27]save to /storage/0543/doc_00201620 [17:48:27]save last doc name /storage/0543/doc_00201620 to /storage/kkm_last_doc_name [17:48:27]save OK [17:48:27]Clear old archive folders... [17:48:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:48:27]tlvbuf is 01FA1390 [17:48:27]SAM_PROTO_ClearQueue [17:48:27]wFMCommunicate request_size=4 [17:48:27]MH_SAM_APDU [17:48:27]CAPDU: 80 09 00 00 [17:48:27]Write to MH i2c: E2 08 00 A0 03 80 09 00 00 00 00 00 00 15 [17:48:27]Write i2c OK [17:48:27]MH_I2C_Read... [17:48:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:27]Read from MH i2c: E2 [17:48:27]MH_I2C_Read... [17:48:27]Read from MH i2c: E2 03 00 [17:48:27]MH_I2C_Read... [17:48:27]Read from MH i2c: E2 03 00 A0 03 00 90 00 17 [17:48:27]RAPDU: 90 00 [17:48:27]wFMCommunicate OK [17:48:27]SAM_PROTO_ClearQueue done [17:48:27]KKMCreateOFDPacket [17:48:27]OFDProtocolAddRootSTLVToBuf [17:48:27]FM_MakeSignedData [17:48:27]FM_MakeSignedData [17:48:27]SAM_PROTO_SignData [17:48:27]wFMCommunicate request_size=4 [17:48:27]MH_SAM_APDU [17:48:27]CAPDU: 80 0D 01 02 [17:48:27]Write to MH i2c: E2 08 00 A1 03 80 0D 01 02 00 00 00 00 1D [17:48:27]Write i2c OK [17:48:27]MH_I2C_Read... [17:48:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:27]Read from MH i2c: E2 [17:48:27]MH_I2C_Read... [17:48:27]Read from MH i2c: E2 03 00 [17:48:27]MH_I2C_Read... [17:48:27]Read from MH i2c: E2 03 00 A1 03 00 90 00 18 [17:48:27]RAPDU: 90 00 [17:48:27]wFMCommunicate OK [17:48:27]wFMCommunicate request_size=255 [17:48:27]MH_SAM_APDU [17:48: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 32 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 7E 01 00 00 F4 03 04 00 6A 2B 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 94 13 03 00 35 04 06 00 12 [17:48:27]Write to MH i2c: E2 02 01 A2 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 32 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 7E 01 00 00 F4 03 04 00 6A 2B 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 94 13 03 00 35 04 06 00 12 00 00 F5 [17:48:27]Write i2c OK [17:48:27]MH_I2C_Read... [17:48:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:27]Read from MH i2c: E2 [17:48:27]MH_I2C_Read... [17:48:27]Read from MH i2c: E2 03 00 [17:48:27]MH_I2C_Read... [17:48:27]Read from MH i2c: E2 03 00 A2 03 00 90 00 19 [17:48:27]RAPDU: 90 00 [17:48:27]wFMCommunicate OK [17:48:27]wFMCommunicate request_size=10 [17:48:27]MH_SAM_APDU [17:48:27]CAPDU: 80 0D 02 02 05 71 D7 3D 3A BB [17:48:27]Write to MH i2c: E2 0D 00 A3 03 80 0D 02 02 05 00 71 D7 3D 3A BB 00 00 A4 [17:48:27]Write i2c OK [17:48:27]MH_I2C_Read... [17:48:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:27]Read from MH i2c: E2 [17:48:27]MH_I2C_Read... [17:48:27]Read from MH i2c: E2 03 00 [17:48:27]MH_I2C_Read... [17:48:27]Read from MH i2c: E2 03 00 A3 03 00 90 00 1A [17:48:27]RAPDU: 90 00 [17:48:27]wFMCommunicate OK [17:48:27]wFMCommunicate request_size=4 [17:48:27]MH_SAM_APDU [17:48:27]CAPDU: 80 0D 03 02 [17:48:27]Write to MH i2c: E2 08 00 A4 03 80 0D 03 02 00 00 00 00 22 [17:48:27]Write i2c OK [17:48:27]MH_I2C_Read... [17:48:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:27]Read from MH i2c: E2 [17:48:27]MH_I2C_Read... [17:48:27]Read from MH i2c: E2 0B 00 [17:48:27]MH_I2C_Read... [17:48:27]Read from MH i2c: E2 0B 00 A4 03 00 1D 03 B3 1C 5B 88 B7 8B 90 00 37 [17:48:27]RAPDU: 1D 03 B3 1C 5B 88 B7 8B 90 00 [17:48:27]wFMCommunicate OK [17:48:27]SAM_PROTO_SignData done [17:48:27]FM_MakeSignedData done [17:48:27]CreateOFDProtocolMessage [17:48:27]wFMCommunicate request_size=4 [17:48:27]MH_SAM_APDU [17:48:27]CAPDU: 80 11 00 00 [17:48:27]Write to MH i2c: E2 08 00 A5 03 80 11 00 00 00 00 00 00 22 [17:48:27]Write i2c OK [17:48:27]MH_I2C_Read... [17:48:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:27]Read from MH i2c: E2 [17:48:27]MH_I2C_Read... [17:48:27]Read from MH i2c: E2 17 00 [17:48:27]MH_I2C_Read... [17:48:27]Read from MH i2c: E2 17 00 A5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 77 [17:48:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:48:27]wFMCommunicate OK [17:48:27]CreateOFDProtocolMessage done [17:48:27]OFDSenderStorePacket 201620 [17:48:27]StoreOFDPacket docnum=201620 [17:48:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 97 52 07 01 2F B7 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 32 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 7E 01 00 00 F4 03 04 00 6A 2B 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 94 13 03 00 35 04 06 00 12 71 D7 3D 3A BB 1D 03 B3 1C 5B 88 B7 8B [17:48:27]CheckFolder [17:48:27]dirname=/storage/ofd_packets [17:48:27]CheckFolder done [17:48:27]ProducePacketName [17:48:27]name=ofd_packets/00201620 [17:48:27]NVStorageSaveData ofd_packets/00201620 [17:48:27]File name is /storage/ofd_packets/00201620 [17:48:27]Write 301 bytes [17:48:27]NVStorageSaveData done [17:48:27]OFDSenderStorePacket done [17:48:27]KKMCreateOFDPacket done [17:48:27]NVStorageSaveData kkm_last_timestamp [17:48:27]File name is /storage/kkm_last_timestamp [17:48:27]Write 4 bytes [17:48:27]NVStorageSaveData done [17:48:27]ExternCall_PrintAddStr [17:48:27]wPrintStart [17:48:27]Write to MH i2c: 01 00 00 A6 03 A9 [17:48:27]Write i2c OK [17:48:27]MH_I2C_Read... [17:48:27]Read from MH i2c: 01 [17:48:27]MH_I2C_Read... [17:48:27]Read from MH i2c: 01 07 00 [17:48:27]MH_I2C_Read... [17:48:27]Read from MH i2c: 01 07 00 A6 03 00 00 00 00 00 FF 0F BE [17:48:27]RasterBufferAndPrint [17:48:27]line Счет N : (1)449375 [17:48:27]line ИНН: 02508201610067 [17:48:27]line Контрольно-Кассовый Чек [17:48:27]line ПРОДАЖА [17:48:27]line ТРК (МРК, ГНК) : 52 [17:48:27]line Товар: 2710124130 [17:48:27]line Аи-92-К-2 [17:48:27]line 5.980 * 66.90 [17:48:27]line = 400.06 [17:48:27]line НДС 12% НСП 1% [17:48:27]line > о реализуемом товаре [17:48:27]line ОКРУГЛЕНИЕ: -0.06 [17:48:27]line ИТОГО: 400.00 [17:48:27]line Внесено: 400.00 [17:48:27]line СДАЧА: 0.00 [17:48:27]line НСП 1% : 3.54 [17:48:27]line НДС 12% : 42.48 [17:48:27]line Наличными: 400.00 [17:48:27]line Безнал.: 0.00 [17:48:27]line Место: АЗС № 171 "Партнер Нефть" [17:48:27]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:48:27]line СНО: Общий режим [17:48:27]line Чек 382 26.10.2024 17:48 [17:48:27]line Смена: 543 ФФД: 1.0 [17:48:27]line ЗНМ: 0300000109 [17:48:27]line РНМ: 0000000000091777 [17:48:27]line Версия ККМ: 001 [17:48:27]line ФМ: 0000000000871756 [17:48:27]line ФД: 201620 [17:48:27]line ФПД: 20280151718587 [17:48:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T174826&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201620&fm=20280151718587&tin=02508201610067®Number=0000000000091777&sum=40000 [17:48:27]written 0, free lines is 4095 [17:48:27]OFD Sender: Processing packet 201620 [packets to send 112, broken 111] [17:48:27]ProducePacketName [17:48:27]name=ofd_packets/00201620 [17:48:27]OFD Sender: To server: pG, [17:48:27]CommunicateWithHost lk.salyk.kg:30040 [17:48:27]ConnectInit lk.salyk.kg [17:48:27]Connected sock=10 [17:48:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 97 52 07 01 2F B7 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 32 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 7E 01 00 00 F4 03 04 00 6A 2B 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 94 13 03 00 35 04 06 00 12 71 D7 3D 3A BB 1D 03 B3 1C 5B 88 B7 8B [17:48:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B4 BE 47 00 DA A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 94 13 03 00 F4 03 04 00 12 D7 1C 67 B6 04 01 00 00 61 7E 4B A7 1F 7D 14 02 [17:48:27]CommunicateWithHost err = 0 [17:48:27]CheckOFDResponse [17:48:27]1017 (14) - 77093643461234 [17:48:27]1041 (16) - 0000000000871756 [17:48:27]1040 (4) - 201620 [17:48:27]1012 (4) - 26.10.2024 11:48 [17:48:27]1206 (1) - 0 [17:48:27]OFD Sender: Remove packet 201620 [17:48:27]ProducePacketName [17:48:27]name=ofd_packets/00201620 [17:48:27]NVStorageDeleteData [17:48:28]Write to MH i2c: 01 00 00 D1 03 D4 [17:48:28]Write i2c OK [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: 01 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: 01 07 00 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: 01 07 00 D1 03 00 00 00 00 00 AA 0C 91 [17:48:28]RasterBufferAndPrint [17:48:28]line [17:48:28]line [17:48:28]line [17:48:28]line [17:48:28]line [17:48:28]written 0, free lines is 3249 [17:48:28]MH_Cut [17:48:28]Write to MH i2c: D1 01 00 D8 03 01 AD [17:48:28]Write i2c OK [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: D1 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: D1 01 00 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: D1 01 00 D8 03 00 AC [17:48:28]Write to MH i2c: 01 00 00 D9 03 DC [17:48:28]Write i2c OK [17:48:28]MH_I2C_Read... [17:48:28]OFD Sender: No OFD packet to send [17:48:28]*** Cut start [17:48:28]*** Purtial cut [17:48:28]*** Stage 1: CUTSNS_PIN = 1 [17:48:29]Read from MH i2c: 01 [17:48:29]MH_I2C_Read... [17:48:29]*** Stop cut motor [17:48:29]*** Cut end [17:48:29]Read from MH i2c: 01 07 00 [17:48:29]MH_I2C_Read... [17:48:29]Read from MH i2c: 01 07 00 D9 03 00 00 00 00 00 FF 0F F1 [17:48:29]process_action close_receipt done [17:48:29]requested_data is exist [17:48:29]produce_requested_data [17:48:29]requested_item fm.sn is exist - process it [17:48:29]wFMCommunicate request_size=4 [17:48:29]MH_SAM_APDU [17:48:29]CAPDU: 80 11 00 00 [17:48:29]Write to MH i2c: E2 08 00 DA 03 80 11 00 00 00 00 00 00 57 [17:48:29]Write i2c OK [17:48:29]MH_I2C_Read... [17:48:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:29]Read from MH i2c: E2 [17:48:29]MH_I2C_Read... [17:48:29]Read from MH i2c: E2 17 00 [17:48:29]MH_I2C_Read... [17:48:29]Read from MH i2c: E2 17 00 DA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AC [17:48:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:48:29]wFMCommunicate OK [17:48:29]requested_item fd.num is exist - process it [17:48:29]SAM_PROTO_GetFieldsCounters [17:48:29]wFMCommunicate request_size=4 [17:48:29]MH_SAM_APDU [17:48:29]CAPDU: 80 13 00 00 [17:48:29]Write to MH i2c: E2 08 00 DB 03 80 13 00 00 00 00 00 00 5A [17:48:29]Write i2c OK [17:48:29]MH_I2C_Read... [17:48:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:29]Read from MH i2c: E2 [17:48:29]MH_I2C_Read... [17:48:29]Read from MH i2c: E2 62 00 [17:48:29]MH_I2C_Read... [17:48:29]Read from MH i2c: E2 62 00 DB 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 94 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 7E 01 00 00 5E 04 04 00 7E 01 00 00 57 04 04 00 7F 01 00 00 19 04 04 00 00 00 00 00 90 00 CB [17:48:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 94 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 7E 01 00 00 5E 04 04 00 7E 01 00 00 57 04 04 00 7F 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:48:29]wFMCommunicate OK [17:48:29]SAM_PROTO_GetFieldsCounters done [17:48:29]requested_item shift.num is exist - process it [17:48:29]requested_item shift.opened is exist - process it [17:48:29]req_shift_opened [17:48:29]FM_GetShiftState [17:48:29]SAM_PROTO_GetShiftState [17:48:29]wFMCommunicate request_size=4 [17:48:29]MH_SAM_APDU [17:48:29]CAPDU: 80 13 01 00 [17:48:29]Write to MH i2c: E2 08 00 DC 03 80 13 01 00 00 00 00 00 5C [17:48:29]Write i2c OK [17:48:29]MH_I2C_Read... [17:48:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:29]Read from MH i2c: E2 [17:48:29]MH_I2C_Read... [17:48:29]Read from MH i2c: E2 0E 00 [17:48:29]MH_I2C_Read... [17:48:29]Read from MH i2c: E2 0E 00 DC 03 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 6B [17:48:29]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:48:29]wFMCommunicate OK [17:48:29]SAM_PROTO_GetShiftState done [17:48:29]FM_GetShiftState done [17:48:29]req_shift_opened done [17:48:29]requested_item shift.open_date is exist - process it [17:48:29]req_shift_open_date [17:48:29]req_shift_open_date done [17:48:29]produce_requested_data done [17:48:29]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201620,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [17:48:29]process_action_free close_receipt [17:48:29]json_value_free [17:48:29]json_value_free done [17:48:29]process_json_proto returns [17:48:29]Send response to host [17:48:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201620,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [17:48:29]free response buf [17:48:29]execute_script done [17:48:29]execute_script returns [17:48:29]free content buf [17:48:29]Sock 9.Close socket [17:48:29]Sock 9.Thread stoped [17:48:33]OFD Sender: No OFD packet to send [17:48:38]OFD Sender: No OFD packet to send [17:48:43]OFD Sender: No OFD packet to send [17:48:48]OFD Sender: No OFD packet to send [17:48:53]OFD Sender: No OFD packet to send [17:48:58]OFD Sender: No OFD packet to send [17:49:03]OFD Sender: No OFD packet to send [17:49:08]OFD Sender: No OFD packet to send [17:49:13]OFD Sender: No OFD packet to send [17:49:18]OFD Sender: No OFD packet to send [17:49:23]OFD Sender: No OFD packet to send [17:49:28]OFD Sender: No OFD packet to send [17:49:33]OFD Sender: No OFD packet to send [17:49:38]OFD Sender: No OFD packet to send [17:49:43]OFD Sender: No OFD packet to send [17:49:48]OFD Sender: No OFD packet to send [17:49:53]OFD Sender: No OFD packet to send [17:49:58]OFD Sender: No OFD packet to send [17:50:03]OFD Sender: No OFD packet to send [17:50:08]OFD Sender: No OFD packet to send [17:50:13]OFD Sender: No OFD packet to send [17:50:18]OFD Sender: No OFD packet to send [17:50:23]OFD Sender: No OFD packet to send [17:50:28]OFD Sender: No OFD packet to send [17:50:33]OFD Sender: No OFD packet to send [17:50:38]OFD Sender: No OFD packet to send [17:50:43]OFD Sender: No OFD packet to send [17:50:48]OFD Sender: No OFD packet to send [17:50:53]OFD Sender: No OFD packet to send [17:50:58]OFD Sender: No OFD packet to send [17:51:03]OFD Sender: No OFD packet to send [17:51:08]OFD Sender: No OFD packet to send [17:51:13]OFD Sender: No OFD packet to send [17:51:18]OFD Sender: No OFD packet to send [17:51:23]OFD Sender: No OFD packet to send [17:51:28]OFD Sender: No OFD packet to send [17:51:33]OFD Sender: No OFD packet to send [17:51:38]OFD Sender: No OFD packet to send [17:51:43]OFD Sender: No OFD packet to send [17:51:48]OFD Sender: No OFD packet to send [17:51:53]OFD Sender: No OFD packet to send [17:51:58]OFD Sender: No OFD packet to send [17:52:03]OFD Sender: No OFD packet to send [17:52:08]OFD Sender: No OFD packet to send [17:52:13]OFD Sender: No OFD packet to send [17:52:18]OFD Sender: No OFD packet to send [17:52:23]OFD Sender: No OFD packet to send [17:52:28]OFD Sender: No OFD packet to send [17:52:33]OFD Sender: No OFD packet to send [17:52:38]OFD Sender: No OFD packet to send [17:52:41]accept exits with 7 [17:52:41]New connection [17:52:41]New thread 3067280740 created [17:52:41]Thread 3067424100 joined [17:52:41]Waiting for new connection... [17:52:41] Sock 7.Parse request [17:52:41]Sock 7.Check first char [17:52:41]Sock 7.First char is OK [17:52:41]request: POST /json_proto HTTP/1.0 [17:52:41]Method: POST [17:52:41]URL: /json_proto [17:52:41]Method is POST - this is cgi request [17:52:41]url: /json_proto [17:52:41]query_string will be loaded in cgi processing [17:52:41]execute_cgi json_proto POST (null) [17:52:41]execute_cgi path=json_proto method=POST [17:52:41]POST find Content-Length [17:52:41]Host: 172.17.63.195:8080 [17:52:41]Content-Length: 677 [17:52:41]Content-Type: application/json [17:52:41] [17:52:41]POST finish read [17:52:41]Found Content-Length = 677 [17:52:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:41]execute_script... [17:52: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)449377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:41]POST & json_proto [17:52:41]process_json_proto [17:52:41]json parsed OK: [17:52:41]protocol is kg_v1.0 [17:52:41]action value=close_receipt [17:52:41]process_action close_receipt [17:52:41]cmd_close_receipt [17:52:41]MH_GetDate [17:52:41]Write to MH i2c: F0 00 00 DD 03 CF [17:52:41]Write i2c OK [17:52:41]MH_I2C_Read... [17:52:41]Read from MH i2c: F0 [17:52:41]MH_I2C_Read... [17:52:41]Read from MH i2c: F0 09 00 [17:52:41]MH_I2C_Read... [17:52:41]Read from MH i2c: F0 09 00 DD 03 00 6A 2C 1D 67 68 46 19 67 20 [17:52:41]GetLastDocTimeStamp 1729964906 [17:52:41]current date 1729965162 [17:52:41]FM_GetShiftState [17:52:41]SAM_PROTO_GetShiftState [17:52:41]wFMCommunicate request_size=4 [17:52:41]MH_SAM_APDU [17:52:41]CAPDU: 80 13 01 00 [17:52:41]Write to MH i2c: E2 08 00 DE 03 80 13 01 00 00 00 00 00 5E [17:52:41]Write i2c OK [17:52:41]MH_I2C_Read... [17:52:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:41]Read from MH i2c: E2 [17:52:41]MH_I2C_Read... [17:52:41]Read from MH i2c: E2 0E 00 [17:52:41]MH_I2C_Read... [17:52:41]Read from MH i2c: E2 0E 00 DE 03 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 6D [17:52:41]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:52:41]wFMCommunicate OK [17:52:41]SAM_PROTO_GetShiftState done [17:52:41]FM_GetShiftState done [17:52:41]opened in 1729900879 [17:52:41]opened+sec_in_day 1729987279 [17:52:41]quantity*price = 30038 [17:52:41]sum+1 = 30039 [17:52:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 383 26.10.2024 17:52 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201621 ФПД: 247897548198289 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T175242&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201621&fm=247897548198289&tin=02508201610067®Number=0000000000091777&sum=30000 [17:52:43]StoreToDocumentArchive [17:52:43]shift 543 fd 201621 [17:52:43]save to /storage/0543/doc_00201621 [17:52:43]save last doc name /storage/0543/doc_00201621 to /storage/kkm_last_doc_name [17:52:43]save OK [17:52:43]Clear old archive folders... [17:52:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:52:43]tlvbuf is 01FB3AE0 [17:52:43]SAM_PROTO_ClearQueue [17:52:43]wFMCommunicate request_size=4 [17:52:43]MH_SAM_APDU [17:52:43]CAPDU: 80 09 00 00 [17:52:43]Write to MH i2c: E2 08 00 EB 03 80 09 00 00 00 00 00 00 60 [17:52:43]Write i2c OK [17:52:43]MH_I2C_Read... [17:52:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:52:43]Read from MH i2c: E2 [17:52:43]MH_I2C_Read... [17:52:43]Read from MH i2c: E2 03 00 [17:52:43]MH_I2C_Read... [17:52:43]Read from MH i2c: E2 03 00 EB 03 00 90 00 62 [17:52:43]RAPDU: 90 00 [17:52:43]wFMCommunicate OK [17:52:43]SAM_PROTO_ClearQueue done [17:52:43]KKMCreateOFDPacket [17:52:43]OFDProtocolAddRootSTLVToBuf [17:52:43]FM_MakeSignedData [17:52:43]FM_MakeSignedData [17:52:43]SAM_PROTO_SignData [17:52:43]wFMCommunicate request_size=4 [17:52:43]MH_SAM_APDU [17:52:43]CAPDU: 80 0D 01 02 [17:52:43]Write to MH i2c: E2 08 00 EC 03 80 0D 01 02 00 00 00 00 68 [17:52:43]Write i2c OK [17:52:43]MH_I2C_Read... [17:52:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:52:43]Read from MH i2c: E2 [17:52:43]MH_I2C_Read... [17:52:43]Read from MH i2c: E2 03 00 [17:52:43]MH_I2C_Read... [17:52:43]Read from MH i2c: E2 03 00 EC 03 00 90 00 63 [17:52:43]RAPDU: 90 00 [17:52:43]wFMCommunicate OK [17:52:43]wFMCommunicate request_size=255 [17:52:43]MH_SAM_APDU [17:52:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 6A 2C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 95 13 03 00 35 04 06 00 E1 [17:52:43]Write to MH i2c: E2 02 01 ED 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 6A 2C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 95 13 03 00 35 04 06 00 E1 00 00 37 [17:52:43]Write i2c OK [17:52:43]MH_I2C_Read... [17:52:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:43]Read from MH i2c: E2 [17:52:43]MH_I2C_Read... [17:52:43]Read from MH i2c: E2 03 00 [17:52:43]MH_I2C_Read... [17:52:43]Read from MH i2c: E2 03 00 ED 03 00 90 00 64 [17:52:43]RAPDU: 90 00 [17:52:43]wFMCommunicate OK [17:52:43]wFMCommunicate request_size=10 [17:52:43]MH_SAM_APDU [17:52:43]CAPDU: 80 0D 02 02 05 76 25 4D 11 91 [17:52:43]Write to MH i2c: E2 0D 00 EE 03 80 0D 02 02 05 00 76 25 4D 11 91 00 00 FF [17:52:43]Write i2c OK [17:52:43]MH_I2C_Read... [17:52:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:43]Read from MH i2c: E2 [17:52:43]MH_I2C_Read... [17:52:43]Read from MH i2c: E2 03 00 [17:52:43]MH_I2C_Read... [17:52:43]Read from MH i2c: E2 03 00 EE 03 00 90 00 65 [17:52:43]RAPDU: 90 00 [17:52:43]wFMCommunicate OK [17:52:43]wFMCommunicate request_size=4 [17:52:43]MH_SAM_APDU [17:52:43]CAPDU: 80 0D 03 02 [17:52:43]Write to MH i2c: E2 08 00 EF 03 80 0D 03 02 00 00 00 00 6D [17:52:43]Write i2c OK [17:52:43]MH_I2C_Read... [17:52:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:52:43]Read from MH i2c: E2 [17:52:43]MH_I2C_Read... [17:52:43]Read from MH i2c: E2 0B 00 [17:52:43]MH_I2C_Read... [17:52:43]Read from MH i2c: E2 0B 00 EF 03 00 F3 9F 18 16 27 B5 4E EA 90 00 42 [17:52:43]RAPDU: F3 9F 18 16 27 B5 4E EA 90 00 [17:52:43]wFMCommunicate OK [17:52:43]SAM_PROTO_SignData done [17:52:43]FM_MakeSignedData done [17:52:43]CreateOFDProtocolMessage [17:52:43]wFMCommunicate request_size=4 [17:52:43]MH_SAM_APDU [17:52:43]CAPDU: 80 11 00 00 [17:52:43]Write to MH i2c: E2 08 00 F0 03 80 11 00 00 00 00 00 00 6D [17:52:43]Write i2c OK [17:52:43]MH_I2C_Read... [17:52:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:43]Read from MH i2c: E2 [17:52:43]MH_I2C_Read... [17:52:43]Read from MH i2c: E2 17 00 [17:52:43]MH_I2C_Read... [17:52:43]Read from MH i2c: E2 17 00 F0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C2 [17:52:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:52:43]wFMCommunicate OK [17:52:43]CreateOFDProtocolMessage done [17:52:43]OFDSenderStorePacket 201621 [17:52:43]StoreOFDPacket docnum=201621 [17:52:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 64 51 07 01 D9 8B 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 6A 2C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 95 13 03 00 35 04 06 00 E1 76 25 4D 11 91 F3 9F 18 16 27 B5 4E EA [17:52:43]CheckFolder [17:52:43]dirname=/storage/ofd_packets [17:52:43]CheckFolder done [17:52:43]ProducePacketName [17:52:43]name=ofd_packets/00201621 [17:52:43]NVStorageSaveData ofd_packets/00201621 [17:52:43]File name is /storage/ofd_packets/00201621 [17:52:43]Write 301 bytes [17:52:43]NVStorageSaveData done [17:52:43]OFDSenderStorePacket done [17:52:43]KKMCreateOFDPacket done [17:52:43]NVStorageSaveData kkm_last_timestamp [17:52:43]File name is /storage/kkm_last_timestamp [17:52:43]Write 4 bytes [17:52:43]NVStorageSaveData done [17:52:43]ExternCall_PrintAddStr [17:52:43]wPrintStart [17:52:43]Write to MH i2c: 01 00 00 F1 03 F4 [17:52:43]Write i2c OK [17:52:43]MH_I2C_Read... [17:52:43]Read from MH i2c: 01 [17:52:43]MH_I2C_Read... [17:52:43]Read from MH i2c: 01 07 00 [17:52:43]MH_I2C_Read... [17:52:43]Read from MH i2c: 01 07 00 F1 03 00 00 00 00 00 FF 0F 09 [17:52:43]RasterBufferAndPrint [17:52:43]line Счет N : (1)449377 [17:52:43]line ИНН: 02508201610067 [17:52:43]line Контрольно-Кассовый Чек [17:52:43]line ПРОДАЖА [17:52:43]line ТРК (МРК, ГНК) : 52 [17:52:43]line Товар: 2710124130 [17:52:43]line Аи-92-К-2 [17:52:43]line 4.490 * 66.90 [17:52:43]line = 300.38 [17:52:43]line НДС 12% НСП 1% [17:52:43]line > о реализуемом товаре [17:52:43]line ОКРУГЛЕНИЕ: -0.38 [17:52:43]line ИТОГО: 300.00 [17:52:43]line Внесено: 300.00 [17:52:43]line СДАЧА: 0.00 [17:52:43]line НСП 1% : 2.66 [17:52:43]line НДС 12% : 31.90 [17:52:43]line Наличными: 300.00 [17:52:43]line Безнал.: 0.00 [17:52:43]line Место: АЗС № 171 "Партнер Нефть" [17:52:43]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:52:43]line СНО: Общий режим [17:52:43]line Чек 383 26.10.2024 17:52 [17:52:43]line Смена: 543 ФФД: 1.0 [17:52:43]line ЗНМ: 0300000109 [17:52:43]line РНМ: 0000000000091777 [17:52:43]line Версия ККМ: 001 [17:52:43]line ФМ: 0000000000871756 [17:52:43]line ФД: 201621 [17:52:43]line ФПД: 247897548198289 [17:52:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T175242&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201621&fm=247897548198289&tin=02508201610067®Number=0000000000091777&sum=30000 [17:52:43]OFD Sender: Processing packet 201621 [packets to send 112, broken 111] [17:52:43]ProducePacketName [17:52:43]name=ofd_packets/00201621 [17:52:43]OFD Sender: To server: pG, [17:52:43]CommunicateWithHost lk.salyk.kg:30040 [17:52:43]ConnectInit lk.salyk.kg [17:52:43]written 0, free lines is 4095 [17:52:44]Write to MH i2c: 01 00 00 1C 04 20 [17:52:44]Write i2c OK [17:52:44]MH_I2C_Read... [17:52:44]Read from MH i2c: 01 [17:52:44]MH_I2C_Read... [17:52:44]Read from MH i2c: 01 07 00 [17:52:44]MH_I2C_Read... [17:52:44]Read from MH i2c: 01 07 00 1C 04 00 00 00 00 00 99 0C CC [17:52:44]RasterBufferAndPrint [17:52:44]line [17:52:44]line [17:52:44]line [17:52:44]line [17:52:44]line [17:52:44]written 0, free lines is 3229 [17:52:44]MH_Cut [17:52:44]Write to MH i2c: D1 01 00 23 04 01 F9 [17:52:44]Write i2c OK [17:52:44]MH_I2C_Read... [17:52:44]Read from MH i2c: D1 [17:52:44]MH_I2C_Read... [17:52:44]Read from MH i2c: D1 01 00 [17:52:44]MH_I2C_Read... [17:52:44]Read from MH i2c: D1 01 00 23 04 00 F8 [17:52:44]Write to MH i2c: 01 00 00 24 04 28 [17:52:44]Write i2c OK [17:52:44]MH_I2C_Read... [17:52:45]*** Cut start [17:52:45]*** Purtial cut [17:52:45]*** Stage 1: CUTSNS_PIN = 1 [17:52:45]Read from MH i2c: 01 [17:52:45]MH_I2C_Read... [17:52:45]*** Stop cut motor [17:52:45]*** Cut end [17:52:45]Read from MH i2c: 01 07 00 [17:52:45]MH_I2C_Read... [17:52:45]Read from MH i2c: 01 07 00 24 04 00 00 00 00 00 FF 0F 3D [17:52:45]process_action close_receipt done [17:52:45]requested_data is exist [17:52:45]produce_requested_data [17:52:45]requested_item fm.sn is exist - process it [17:52:45]wFMCommunicate request_size=4 [17:52:45]MH_SAM_APDU [17:52:45]CAPDU: 80 11 00 00 [17:52:45]Write to MH i2c: E2 08 00 25 04 80 11 00 00 00 00 00 00 A3 [17:52:45]Write i2c OK [17:52:45]MH_I2C_Read... [17:52:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:45]Read from MH i2c: E2 [17:52:45]MH_I2C_Read... [17:52:45]Read from MH i2c: E2 17 00 [17:52:45]MH_I2C_Read... [17:52:45]Read from MH i2c: E2 17 00 25 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F8 [17:52:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:52:45]wFMCommunicate OK [17:52:45]requested_item fd.num is exist - process it [17:52:45]SAM_PROTO_GetFieldsCounters [17:52:45]wFMCommunicate request_size=4 [17:52:45]MH_SAM_APDU [17:52:45]CAPDU: 80 13 00 00 [17:52:45]Write to MH i2c: E2 08 00 26 04 80 13 00 00 00 00 00 00 A6 [17:52:45]Write i2c OK [17:52:45]MH_I2C_Read... [17:52:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:52:45]Read from MH i2c: E2 [17:52:45]MH_I2C_Read... [17:52:45]Read from MH i2c: E2 62 00 [17:52:45]MH_I2C_Read... [17:52:45]Read from MH i2c: E2 62 00 26 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 95 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 7F 01 00 00 5E 04 04 00 7F 01 00 00 57 04 04 00 80 01 00 00 19 04 04 00 00 00 00 00 90 00 1B [17:52:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 95 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 7F 01 00 00 5E 04 04 00 7F 01 00 00 57 04 04 00 80 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:52:45]wFMCommunicate OK [17:52:45]SAM_PROTO_GetFieldsCounters done [17:52:45]requested_item shift.num is exist - process it [17:52:45]requested_item shift.opened is exist - process it [17:52:45]req_shift_opened [17:52:45]FM_GetShiftState [17:52:45]SAM_PROTO_GetShiftState [17:52:45]wFMCommunicate request_size=4 [17:52:45]MH_SAM_APDU [17:52:45]CAPDU: 80 13 01 00 [17:52:45]Write to MH i2c: E2 08 00 27 04 80 13 01 00 00 00 00 00 A8 [17:52:45]Write i2c OK [17:52:45]MH_I2C_Read... [17:52:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:45]Read from MH i2c: E2 [17:52:45]MH_I2C_Read... [17:52:45]Read from MH i2c: E2 0E 00 [17:52:45]MH_I2C_Read... [17:52:45]Read from MH i2c: E2 0E 00 27 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 B7 [17:52:45]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:52:45]wFMCommunicate OK [17:52:45]SAM_PROTO_GetShiftState done [17:52:45]FM_GetShiftState done [17:52:45]req_shift_opened done [17:52:45]requested_item shift.open_date is exist - process it [17:52:45]req_shift_open_date [17:52:45]req_shift_open_date done [17:52:45]produce_requested_data done [17:52:45]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201621,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [17:52:45]process_action_free close_receipt [17:52:45]json_value_free [17:52:45]json_value_free done [17:52:45]process_json_proto returns [17:52:45]Send response to host [17:52:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201621,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [17:52:45]free response buf [17:52:45]execute_script done [17:52:45]execute_script returns [17:52:45]free content buf [17:52:45]Sock 7.Close socket [17:52:45]Sock 7.Thread stoped [17:53:03]accept exits with 9 [17:53:03]New connection [17:53:03]New thread 3067424100 created [17:53:03]Thread 3067280740 joined [17:53:03]Waiting for new connection... [17:53:03] Sock 9.Parse request [17:53:03]Sock 9.Check first char [17:53:03]Sock 9.First char is OK [17:53:03]request: POST /json_proto HTTP/1.0 [17:53:03]Method: POST [17:53:03]URL: /json_proto [17:53:03]Method is POST - this is cgi request [17:53:03]url: /json_proto [17:53:03]query_string will be loaded in cgi processing [17:53:03]execute_cgi json_proto POST (null) [17:53:03]execute_cgi path=json_proto method=POST [17:53:03]POST find Content-Length [17:53:03]Host: 172.17.63.195:8080 [17:53:03]Content-Length: 674 [17:53:03]Content-Type: application/json [17:53:03] [17:53:03]POST finish read [17:53:03]Found Content-Length = 674 [17:53:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [17:53:03]execute_script... [17:53: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)449378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [17:53:03]POST & json_proto [17:53:03]process_json_proto [17:53:03]json parsed OK: [17:53:03]protocol is kg_v1.0 [17:53:03]action value=close_receipt [17:53:03]process_action close_receipt [17:53:03]cmd_close_receipt [17:53:03]MH_GetDate [17:53:03]Write to MH i2c: F0 00 00 28 04 1B [17:53:03]Write i2c OK [17:53:03]MH_I2C_Read... [17:53:03]Read from MH i2c: F0 [17:53:03]MH_I2C_Read... [17:53:03]Read from MH i2c: F0 09 00 [17:53:03]MH_I2C_Read... [17:53:03]Read from MH i2c: F0 09 00 28 04 00 80 2C 1D 67 68 46 19 67 82 [17:53:03]GetLastDocTimeStamp 1729965162 [17:53:03]current date 1729965184 [17:53:03]FM_GetShiftState [17:53:03]SAM_PROTO_GetShiftState [17:53:03]wFMCommunicate request_size=4 [17:53:03]MH_SAM_APDU [17:53:03]CAPDU: 80 13 01 00 [17:53:03]Write to MH i2c: E2 08 00 29 04 80 13 01 00 00 00 00 00 AA [17:53:03]Write i2c OK [17:53:03]MH_I2C_Read... [17:53:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:03]Read from MH i2c: E2 [17:53:03]MH_I2C_Read... [17:53:03]Read from MH i2c: E2 0E 00 [17:53:03]MH_I2C_Read... [17:53:03]Read from MH i2c: E2 0E 00 29 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 B9 [17:53:03]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:53:03]wFMCommunicate OK [17:53:03]SAM_PROTO_GetShiftState done [17:53:03]FM_GetShiftState done [17:53:03]opened in 1729900879 [17:53:03]opened+sec_in_day 1729987279 [17:53:03]quantity*price = 50063 [17:53:03]sum+1 = 50064 [17:53:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 384 26.10.2024 17:53 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201622 ФПД: 17718638197693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T175304&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201622&fm=17718638197693&tin=02508201610067®Number=0000000000091777&sum=50000 [17:53:05]StoreToDocumentArchive [17:53:05]shift 543 fd 201622 [17:53:05]save to /storage/0543/doc_00201622 [17:53:05]save last doc name /storage/0543/doc_00201622 to /storage/kkm_last_doc_name [17:53:05]save OK [17:53:05]Clear old archive folders... [17:53:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:53:05]tlvbuf is 01FB9E80 [17:53:05]SAM_PROTO_ClearQueue [17:53:05]wFMCommunicate request_size=4 [17:53:05]MH_SAM_APDU [17:53:05]CAPDU: 80 09 00 00 [17:53:05]Write to MH i2c: E2 08 00 36 04 80 09 00 00 00 00 00 00 AC [17:53:05]Write i2c OK [17:53:05]MH_I2C_Read... [17:53:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:05]Read from MH i2c: E2 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: E2 03 00 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: E2 03 00 36 04 00 90 00 AE [17:53:05]RAPDU: 90 00 [17:53:05]wFMCommunicate OK [17:53:05]SAM_PROTO_ClearQueue done [17:53:05]KKMCreateOFDPacket [17:53:05]OFDProtocolAddRootSTLVToBuf [17:53:05]FM_MakeSignedData [17:53:05]FM_MakeSignedData [17:53:05]SAM_PROTO_SignData [17:53:05]wFMCommunicate request_size=4 [17:53:05]MH_SAM_APDU [17:53:05]CAPDU: 80 0D 01 02 [17:53:05]Write to MH i2c: E2 08 00 37 04 80 0D 01 02 00 00 00 00 B4 [17:53:05]Write i2c OK [17:53:05]MH_I2C_Read... [17:53:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:05]Read from MH i2c: E2 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: E2 03 00 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: E2 03 00 37 04 00 90 00 AF [17:53:05]RAPDU: 90 00 [17:53:05]wFMCommunicate OK [17:53:05]wFMCommunicate request_size=255 [17:53:05]MH_SAM_APDU [17:53: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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 80 01 00 00 F4 03 04 00 80 2C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 96 13 03 00 35 04 06 00 10 1D 71 22 [17:53:05]Write to MH i2c: E2 02 01 38 04 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 80 01 00 00 F4 03 04 00 80 2C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 96 13 03 00 35 04 06 00 10 1D 71 22 00 00 04 [17:53:05]Write i2c OK [17:53:05]MH_I2C_Read... [17:53:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:05]Read from MH i2c: E2 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: E2 03 00 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: E2 03 00 38 04 00 90 00 B0 [17:53:05]RAPDU: 90 00 [17:53:05]wFMCommunicate OK [17:53:05]wFMCommunicate request_size=7 [17:53:05]MH_SAM_APDU [17:53:05]CAPDU: 80 0D 02 02 02 BB BD [17:53:05]Write to MH i2c: E2 0A 00 39 04 80 0D 02 02 02 00 BB BD 00 00 33 [17:53:05]Write i2c OK [17:53:05]MH_I2C_Read... [17:53:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:05]Read from MH i2c: E2 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: E2 03 00 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: E2 03 00 39 04 00 90 00 B1 [17:53:05]RAPDU: 90 00 [17:53:05]wFMCommunicate OK [17:53:05]wFMCommunicate request_size=4 [17:53:05]MH_SAM_APDU [17:53:05]CAPDU: 80 0D 03 02 [17:53:05]Write to MH i2c: E2 08 00 3A 04 80 0D 03 02 00 00 00 00 B9 [17:53:05]Write i2c OK [17:53:05]MH_I2C_Read... [17:53:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:05]Read from MH i2c: E2 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: E2 0B 00 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: E2 0B 00 3A 04 00 B1 D6 77 FD 20 25 4B DB 90 00 20 [17:53:05]RAPDU: B1 D6 77 FD 20 25 4B DB 90 00 [17:53:05]wFMCommunicate OK [17:53:05]SAM_PROTO_SignData done [17:53:05]FM_MakeSignedData done [17:53:05]CreateOFDProtocolMessage [17:53:05]wFMCommunicate request_size=4 [17:53:05]MH_SAM_APDU [17:53:05]CAPDU: 80 11 00 00 [17:53:05]Write to MH i2c: E2 08 00 3B 04 80 11 00 00 00 00 00 00 B9 [17:53:05]Write i2c OK [17:53:05]MH_I2C_Read... [17:53:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:05]Read from MH i2c: E2 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: E2 17 00 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: E2 17 00 3B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0E [17:53:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:53:05]wFMCommunicate OK [17:53:05]CreateOFDProtocolMessage done [17:53:05]OFDSenderStorePacket 201622 [17:53:05]StoreOFDPacket docnum=201622 [17:53:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 91 8A 04 01 C4 B2 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 80 01 00 00 F4 03 04 00 80 2C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 96 13 03 00 35 04 06 00 10 1D 71 22 BB BD B1 D6 77 FD 20 25 4B DB [17:53:05]CheckFolder [17:53:05]dirname=/storage/ofd_packets [17:53:05]CheckFolder done [17:53:05]ProducePacketName [17:53:05]name=ofd_packets/00201622 [17:53:05]NVStorageSaveData ofd_packets/00201622 [17:53:05]File name is /storage/ofd_packets/00201622 [17:53:05]Write 298 bytes [17:53:05]NVStorageSaveData done [17:53:05]OFDSenderStorePacket done [17:53:05]KKMCreateOFDPacket done [17:53:05]NVStorageSaveData kkm_last_timestamp [17:53:05]File name is /storage/kkm_last_timestamp [17:53:05]Write 4 bytes [17:53:05]NVStorageSaveData done [17:53:05]ExternCall_PrintAddStr [17:53:05]wPrintStart [17:53:05]Write to MH i2c: 01 00 00 3C 04 40 [17:53:05]Write i2c OK [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: 01 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: 01 07 00 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: 01 07 00 3C 04 00 00 00 00 00 FF 0F 55 [17:53:05]RasterBufferAndPrint [17:53:05]line Счет N : (1)449378 [17:53:05]line ИНН: 02508201610067 [17:53:05]line Контрольно-Кассовый Чек [17:53:05]line ПРОДАЖА [17:53:05]line ТРК (МРК, ГНК) : 33 [17:53:05]line Товар: 2710194210 [17:53:05]line ДТ-К-2 [17:53:05]line 6.570 * 76.20 [17:53:05]line = 500.63 [17:53:05]line НДС 12% НСП 1% [17:53:05]line > о реализуемом товаре [17:53:05]line ОКРУГЛЕНИЕ: -0.63 [17:53:05]line ИТОГО: 500.00 [17:53:05]line Внесено: 500.00 [17:53:05]line СДАЧА: 0.00 [17:53:05]line НСП 1% : 4.43 [17:53:05]line НДС 12% : 53.16 [17:53:05]line Наличными: 500.00 [17:53:05]line Безнал.: 0.00 [17:53:05]line Место: АЗС № 171 "Партнер Нефть" [17:53:05]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:53:05]line СНО: Общий режим [17:53:05]line Чек 384 26.10.2024 17:53 [17:53:05]line Смена: 543 ФФД: 1.0 [17:53:05]line ЗНМ: 0300000109 [17:53:05]line РНМ: 0000000000091777 [17:53:05]line Версия ККМ: 001 [17:53:05]line ФМ: 0000000000871756 [17:53:05]line ФД: 201622 [17:53:05]line ФПД: 17718638197693 [17:53:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T175304&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201622&fm=17718638197693&tin=02508201610067®Number=0000000000091777&sum=50000 [17:53:05]written 0, free lines is 4095 [17:53:06]Write to MH i2c: 01 00 00 67 04 6B [17:53:06]Write i2c OK [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: 01 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: 01 07 00 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: 01 07 00 67 04 00 00 00 00 00 92 0C 10 [17:53:06]RasterBufferAndPrint [17:53:06]line [17:53:06]line [17:53:06]line [17:53:06]line [17:53:06]line [17:53:06]written 0, free lines is 3223 [17:53:06]MH_Cut [17:53:06]Write to MH i2c: D1 01 00 6E 04 01 44 [17:53:06]Write i2c OK [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: D1 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: D1 01 00 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: D1 01 00 6E 04 00 43 [17:53:06]Write to MH i2c: 01 00 00 6F 04 73 [17:53:06]Write i2c OK [17:53:06]MH_I2C_Read... [17:53:07]*** Cut start [17:53:07]*** Purtial cut [17:53:07]*** Stage 1: CUTSNS_PIN = 1 [17:53:07]Read from MH i2c: 01 [17:53:07]MH_I2C_Read... [17:53:07]*** Stop cut motor [17:53:07]*** Cut end [17:53:07]Read from MH i2c: 01 07 00 [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: 01 07 00 6F 04 00 00 00 00 00 FF 0F 88 [17:53:07]process_action close_receipt done [17:53:07]requested_data is exist [17:53:07]produce_requested_data [17:53:07]requested_item fm.sn is exist - process it [17:53:07]wFMCommunicate request_size=4 [17:53:07]MH_SAM_APDU [17:53:07]CAPDU: 80 11 00 00 [17:53:07]Write to MH i2c: E2 08 00 70 04 80 11 00 00 00 00 00 00 EE [17:53:07]Write i2c OK [17:53:07]MH_I2C_Read... [17:53:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:07]Read from MH i2c: E2 [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: E2 17 00 [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: E2 17 00 70 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 43 [17:53:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:53:07]wFMCommunicate OK [17:53:07]requested_item fd.num is exist - process it [17:53:07]SAM_PROTO_GetFieldsCounters [17:53:07]wFMCommunicate request_size=4 [17:53:07]MH_SAM_APDU [17:53:07]CAPDU: 80 13 00 00 [17:53:07]Write to MH i2c: E2 08 00 71 04 80 13 00 00 00 00 00 00 F1 [17:53:07]Write i2c OK [17:53:07]MH_I2C_Read... [17:53:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:07]Read from MH i2c: E2 [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: E2 62 00 [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: E2 62 00 71 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 96 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 80 01 00 00 5E 04 04 00 80 01 00 00 57 04 04 00 81 01 00 00 19 04 04 00 00 00 00 00 90 00 6A [17:53:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 96 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 80 01 00 00 5E 04 04 00 80 01 00 00 57 04 04 00 81 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:53:07]wFMCommunicate OK [17:53:07]SAM_PROTO_GetFieldsCounters done [17:53:07]requested_item shift.num is exist - process it [17:53:07]requested_item shift.opened is exist - process it [17:53:07]req_shift_opened [17:53:07]FM_GetShiftState [17:53:07]SAM_PROTO_GetShiftState [17:53:07]wFMCommunicate request_size=4 [17:53:07]MH_SAM_APDU [17:53:07]CAPDU: 80 13 01 00 [17:53:07]Write to MH i2c: E2 08 00 72 04 80 13 01 00 00 00 00 00 F3 [17:53:07]Write i2c OK [17:53:07]MH_I2C_Read... [17:53:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:07]Read from MH i2c: E2 [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: E2 0E 00 [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: E2 0E 00 72 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 02 [17:53:07]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:53:07]wFMCommunicate OK [17:53:07]SAM_PROTO_GetShiftState done [17:53:07]FM_GetShiftState done [17:53:07]req_shift_opened done [17:53:07]requested_item shift.open_date is exist - process it [17:53:07]req_shift_open_date [17:53:07]req_shift_open_date done [17:53:07]produce_requested_data done [17:53:07]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201622,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [17:53:07]process_action_free close_receipt [17:53:07]json_value_free [17:53:07]json_value_free done [17:53:07]process_json_proto returns [17:53:07]Send response to host [17:53:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201622,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [17:53:07]free response buf [17:53:07]execute_script done [17:53:07]execute_script returns [17:53:07]free content buf [17:53:07]Sock 9.Close socket [17:53:07]Sock 9.Thread stoped [17:53:50]accept exits with 7 [17:53:50]New connection [17:53:50]New thread 3067280740 created [17:53:50] Sock 7.Parse request [17:53:50]Thread 3067424100 joined [17:53:50]Sock 7.Check first char [17:53:50]Waiting for new connection... [17:53:50]Sock 7.First char is OK [17:53:50]request: POST /json_proto HTTP/1.0 [17:53:50]Method: POST [17:53:50]URL: /json_proto [17:53:50]Method is POST - this is cgi request [17:53:50]url: /json_proto [17:53:50]query_string will be loaded in cgi processing [17:53:50]execute_cgi json_proto POST (null) [17:53:50]execute_cgi path=json_proto method=POST [17:53:50]POST find Content-Length [17:53:50]Host: 172.17.63.195:8080 [17:53:50]Content-Length: 677 [17:53:50]Content-Type: application/json [17:53:50] [17:53:50]POST finish read [17:53:50]Found Content-Length = 677 [17:53:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "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" ] } } [17:53:50]execute_script... [17:53: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)449379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "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" ] } } [17:53:50]POST & json_proto [17:53:50]process_json_proto [17:53:50]json parsed OK: [17:53:50]protocol is kg_v1.0 [17:53:50]action value=close_receipt [17:53:50]process_action close_receipt [17:53:50]cmd_close_receipt [17:53:50]MH_GetDate [17:53:50]Write to MH i2c: F0 00 00 73 04 66 [17:53:50]Write i2c OK [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: F0 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: F0 09 00 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: F0 09 00 73 04 00 AE 2C 1D 67 68 46 19 67 FB [17:53:50]GetLastDocTimeStamp 1729965184 [17:53:50]current date 1729965230 [17:53:50]FM_GetShiftState [17:53:50]SAM_PROTO_GetShiftState [17:53:50]wFMCommunicate request_size=4 [17:53:50]MH_SAM_APDU [17:53:50]CAPDU: 80 13 01 00 [17:53:50]Write to MH i2c: E2 08 00 74 04 80 13 01 00 00 00 00 00 F5 [17:53:50]Write i2c OK [17:53:50]MH_I2C_Read... [17:53:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:50]Read from MH i2c: E2 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: E2 0E 00 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: E2 0E 00 74 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 04 [17:53:50]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:53:50]wFMCommunicate OK [17:53:50]SAM_PROTO_GetShiftState done [17:53:50]FM_GetShiftState done [17:53:50]opened in 1729900879 [17:53:50]opened+sec_in_day 1729987279 [17:53:50]quantity*price = 45023 [17:53:50]sum+1 = 45025 [17:53:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 385 26.10.2024 17:53 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201623 ФПД: 69701271801783 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T175350&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201623&fm=69701271801783&tin=02508201610067®Number=0000000000091777&sum=45000 [17:53:51]StoreToDocumentArchive [17:53:51]shift 543 fd 201623 [17:53:51]save to /storage/0543/doc_00201623 [17:53:51]save last doc name /storage/0543/doc_00201623 to /storage/kkm_last_doc_name [17:53:51]save OK [17:53:51]Clear old archive folders... [17:53:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:53:51]tlvbuf is 01FC9940 [17:53:51]SAM_PROTO_ClearQueue [17:53:51]wFMCommunicate request_size=4 [17:53:51]MH_SAM_APDU [17:53:51]CAPDU: 80 09 00 00 [17:53:51]Write to MH i2c: E2 08 00 81 04 80 09 00 00 00 00 00 00 F7 [17:53:51]Write i2c OK [17:53:51]MH_I2C_Read... [17:53:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:51]Read from MH i2c: E2 [17:53:51]MH_I2C_Read... [17:53:51]Read from MH i2c: E2 03 00 [17:53:51]MH_I2C_Read... [17:53:51]Read from MH i2c: E2 03 00 81 04 00 90 00 F9 [17:53:51]RAPDU: 90 00 [17:53:51]wFMCommunicate OK [17:53:51]SAM_PROTO_ClearQueue done [17:53:51]KKMCreateOFDPacket [17:53:51]OFDProtocolAddRootSTLVToBuf [17:53:51]FM_MakeSignedData [17:53:51]FM_MakeSignedData [17:53:51]SAM_PROTO_SignData [17:53:51]wFMCommunicate request_size=4 [17:53:51]MH_SAM_APDU [17:53:51]CAPDU: 80 0D 01 02 [17:53:51]Write to MH i2c: E2 08 00 82 04 80 0D 01 02 00 00 00 00 FF [17:53:51]Write i2c OK [17:53:51]MH_I2C_Read... [17:53:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:51]Read from MH i2c: E2 [17:53:51]MH_I2C_Read... [17:53:51]Read from MH i2c: E2 03 00 [17:53:51]MH_I2C_Read... [17:53:51]Read from MH i2c: E2 03 00 82 04 00 90 00 FA [17:53:51]RAPDU: 90 00 [17:53:51]wFMCommunicate OK [17:53:51]wFMCommunicate request_size=255 [17:53:51]MH_SAM_APDU [17:53: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 32 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 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 81 01 00 00 F4 03 04 00 AE 2C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 97 13 03 00 35 04 06 00 3F [17:53:51]Write to MH i2c: E2 02 01 83 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 32 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 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 81 01 00 00 F4 03 04 00 AE 2C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 97 13 03 00 35 04 06 00 3F 00 00 66 [17:53:51]Write i2c OK [17:53:51]MH_I2C_Read... [17:53:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:51]Read from MH i2c: E2 [17:53:51]MH_I2C_Read... [17:53:51]Read from MH i2c: E2 03 00 [17:53:51]MH_I2C_Read... [17:53:51]Read from MH i2c: E2 03 00 83 04 00 90 00 FB [17:53:51]RAPDU: 90 00 [17:53:51]wFMCommunicate OK [17:53:51]wFMCommunicate request_size=10 [17:53:51]MH_SAM_APDU [17:53:51]CAPDU: 80 0D 02 02 05 64 97 8B CF B7 [17:53:51]Write to MH i2c: E2 0D 00 84 04 80 0D 02 02 05 00 64 97 8B CF B7 00 00 18 [17:53:51]Write i2c OK [17:53:51]MH_I2C_Read... [17:53:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:51]Read from MH i2c: E2 [17:53:51]MH_I2C_Read... [17:53:51]Read from MH i2c: E2 03 00 [17:53:51]MH_I2C_Read... [17:53:51]Read from MH i2c: E2 03 00 84 04 00 90 00 FC [17:53:51]RAPDU: 90 00 [17:53:51]wFMCommunicate OK [17:53:51]wFMCommunicate request_size=4 [17:53:51]MH_SAM_APDU [17:53:51]CAPDU: 80 0D 03 02 [17:53:51]Write to MH i2c: E2 08 00 85 04 80 0D 03 02 00 00 00 00 04 [17:53:51]Write i2c OK [17:53:51]MH_I2C_Read... [17:53:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:51]Read from MH i2c: E2 [17:53:51]MH_I2C_Read... [17:53:51]Read from MH i2c: E2 0B 00 [17:53:51]MH_I2C_Read... [17:53:51]Read from MH i2c: E2 0B 00 85 04 00 C5 AC 8C 19 C9 7B 5A 88 90 00 41 [17:53:51]RAPDU: C5 AC 8C 19 C9 7B 5A 88 90 00 [17:53:51]wFMCommunicate OK [17:53:51]SAM_PROTO_SignData done [17:53:51]FM_MakeSignedData done [17:53:51]CreateOFDProtocolMessage [17:53:51]wFMCommunicate request_size=4 [17:53:51]MH_SAM_APDU [17:53:51]CAPDU: 80 11 00 00 [17:53:51]Write to MH i2c: E2 08 00 86 04 80 11 00 00 00 00 00 00 04 [17:53:51]Write i2c OK [17:53:51]MH_I2C_Read... [17:53:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:51]Read from MH i2c: E2 [17:53:51]MH_I2C_Read... [17:53:51]Read from MH i2c: E2 17 00 [17:53:51]MH_I2C_Read... [17:53:51]Read from MH i2c: E2 17 00 86 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 59 [17:53:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:53:51]wFMCommunicate OK [17:53:51]CreateOFDProtocolMessage done [17:53:51]OFDSenderStorePacket 201623 [17:53:51]StoreOFDPacket docnum=201623 [17:53:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E4 69 07 01 D2 F8 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 32 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 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 81 01 00 00 F4 03 04 00 AE 2C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 97 13 03 00 35 04 06 00 3F 64 97 8B CF B7 C5 AC 8C 19 C9 7B 5A 88 [17:53:51]CheckFolder [17:53:51]dirname=/storage/ofd_packets [17:53:51]CheckFolder done [17:53:51]ProducePacketName [17:53:51]name=ofd_packets/00201623 [17:53:51]NVStorageSaveData ofd_packets/00201623 [17:53:51]File name is /storage/ofd_packets/00201623 [17:53:51]Write 301 bytes [17:53:51]NVStorageSaveData done [17:53:51]OFDSenderStorePacket done [17:53:51]KKMCreateOFDPacket done [17:53:51]NVStorageSaveData kkm_last_timestamp [17:53:51]File name is /storage/kkm_last_timestamp [17:53:51]Write 4 bytes [17:53:51]NVStorageSaveData done [17:53:51]ExternCall_PrintAddStr [17:53:51]wPrintStart [17:53:51]Write to MH i2c: 01 00 00 87 04 8B [17:53:51]Write i2c OK [17:53:51]MH_I2C_Read... [17:53:51]Read from MH i2c: 01 [17:53:51]MH_I2C_Read... [17:53:51]Read from MH i2c: 01 07 00 [17:53:51]MH_I2C_Read... [17:53:51]Read from MH i2c: 01 07 00 87 04 00 00 00 00 00 FF 0F A0 [17:53:51]RasterBufferAndPrint [17:53:51]line Счет N : (1)449379 [17:53:51]line ИНН: 02508201610067 [17:53:51]line Контрольно-Кассовый Чек [17:53:51]line ПРОДАЖА [17:53:51]line ТРК (МРК, ГНК) : 41 [17:53:51]line Товар: 2710124130 [17:53:51]line Аи-92-К-2 [17:53:51]line 6.730 * 66.90 [17:53:51]line = 450.24 [17:53:51]line НДС 12% НСП 1% [17:53:51]line > о реализуемом товаре [17:53:51]line ОКРУГЛЕНИЕ: -0.24 [17:53:51]line ИТОГО: 450.00 [17:53:51]line Внесено: 450.00 [17:53:51]line СДАЧА: 0.00 [17:53:51]line НСП 1% : 3.98 [17:53:51]line НДС 12% : 47.81 [17:53:51]line Наличными: 450.00 [17:53:51]line Безнал.: 0.00 [17:53:51]line Место: АЗС № 171 "Партнер Нефть" [17:53:51]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:53:51]line СНО: Общий режим [17:53:51]line Чек 385 26.10.2024 17:53 [17:53:51]line Смена: 543 ФФД: 1.0 [17:53:51]line ЗНМ: 0300000109 [17:53:51]line РНМ: 0000000000091777 [17:53:51]line Версия ККМ: 001 [17:53:51]line ФМ: 0000000000871756 [17:53:51]line ФД: 201623 [17:53:51]line ФПД: 69701271801783 [17:53:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T175350&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201623&fm=69701271801783&tin=02508201610067®Number=0000000000091777&sum=45000 [17:53:52]written 0, free lines is 4095 [17:53:52]Write to MH i2c: 01 00 00 B2 04 B6 [17:53:52]Write i2c OK [17:53:52]MH_I2C_Read... [17:53:52]Read from MH i2c: 01 [17:53:52]MH_I2C_Read... [17:53:52]Read from MH i2c: 01 07 00 [17:53:52]MH_I2C_Read... [17:53:52]Read from MH i2c: 01 07 00 B2 04 00 00 00 00 00 9B 0C 64 [17:53:52]RasterBufferAndPrint [17:53:52]line [17:53:52]line [17:53:52]line [17:53:52]line [17:53:52]line [17:53:52]written 0, free lines is 3232 [17:53:52]MH_Cut [17:53:52]Write to MH i2c: D1 01 00 B9 04 01 8F [17:53:52]Write i2c OK [17:53:52]MH_I2C_Read... [17:53:52]Read from MH i2c: D1 [17:53:52]MH_I2C_Read... [17:53:52]Read from MH i2c: D1 01 00 [17:53:52]MH_I2C_Read... [17:53:52]Read from MH i2c: D1 01 00 B9 04 00 8E [17:53:52]Write to MH i2c: 01 00 00 BA 04 BE [17:53:52]Write i2c OK [17:53:52]MH_I2C_Read... [17:53:53]*** Cut start [17:53:53]*** Purtial cut [17:53:53]*** Stage 1: CUTSNS_PIN = 1 [17:53:53]Read from MH i2c: 01 [17:53:53]MH_I2C_Read... [17:53:53]*** Stop cut motor [17:53:53]*** Cut end [17:53:53]Read from MH i2c: 01 07 00 [17:53:53]MH_I2C_Read... [17:53:53]Read from MH i2c: 01 07 00 BA 04 00 00 00 00 00 FF 0F D3 [17:53:53]process_action close_receipt done [17:53:53]requested_data is exist [17:53:53]produce_requested_data [17:53:53]requested_item fm.sn is exist - process it [17:53:53]wFMCommunicate request_size=4 [17:53:53]MH_SAM_APDU [17:53:53]CAPDU: 80 11 00 00 [17:53:53]Write to MH i2c: E2 08 00 BB 04 80 11 00 00 00 00 00 00 39 [17:53:53]Write i2c OK [17:53:53]MH_I2C_Read... [17:53:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:53]Read from MH i2c: E2 [17:53:53]MH_I2C_Read... [17:53:53]Read from MH i2c: E2 17 00 [17:53:53]MH_I2C_Read... [17:53:53]Read from MH i2c: E2 17 00 BB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8E [17:53:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:53:53]wFMCommunicate OK [17:53:53]requested_item fd.num is exist - process it [17:53:53]SAM_PROTO_GetFieldsCounters [17:53:53]wFMCommunicate request_size=4 [17:53:53]MH_SAM_APDU [17:53:53]CAPDU: 80 13 00 00 [17:53:53]Write to MH i2c: E2 08 00 BC 04 80 13 00 00 00 00 00 00 3C [17:53:53]Write i2c OK [17:53:53]MH_I2C_Read... [17:53:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:53]Read from MH i2c: E2 [17:53:53]MH_I2C_Read... [17:53:53]Read from MH i2c: E2 62 00 [17:53:53]MH_I2C_Read... [17:53:53]Read from MH i2c: E2 62 00 BC 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 97 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 81 01 00 00 5E 04 04 00 81 01 00 00 57 04 04 00 82 01 00 00 19 04 04 00 00 00 00 00 90 00 B9 [17:53:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 97 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 81 01 00 00 5E 04 04 00 81 01 00 00 57 04 04 00 82 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:53:53]wFMCommunicate OK [17:53:53]SAM_PROTO_GetFieldsCounters done [17:53:53]requested_item shift.num is exist - process it [17:53:53]requested_item shift.opened is exist - process it [17:53:53]req_shift_opened [17:53:53]FM_GetShiftState [17:53:53]SAM_PROTO_GetShiftState [17:53:53]wFMCommunicate request_size=4 [17:53:53]MH_SAM_APDU [17:53:53]CAPDU: 80 13 01 00 [17:53:53]Write to MH i2c: E2 08 00 BD 04 80 13 01 00 00 00 00 00 3E [17:53:53]Write i2c OK [17:53:53]MH_I2C_Read... [17:53:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:53]Read from MH i2c: E2 [17:53:53]MH_I2C_Read... [17:53:53]Read from MH i2c: E2 0E 00 [17:53:53]MH_I2C_Read... [17:53:53]Read from MH i2c: E2 0E 00 BD 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 4D [17:53:53]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:53:53]wFMCommunicate OK [17:53:53]SAM_PROTO_GetShiftState done [17:53:53]FM_GetShiftState done [17:53:53]req_shift_opened done [17:53:53]requested_item shift.open_date is exist - process it [17:53:53]req_shift_open_date [17:53:53]req_shift_open_date done [17:53:53]produce_requested_data done [17:53:53]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201623,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [17:53:53]process_action_free close_receipt [17:53:53]json_value_free [17:53:53]json_value_free done [17:53:53]process_json_proto returns [17:53:53]Send response to host [17:53:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201623,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [17:53:53]free response buf [17:53:53]execute_script done [17:53:53]execute_script returns [17:53:53]free content buf [17:53:53]Sock 7.Close socket [17:53:53]Sock 7.Thread stoped [17:54:42]accept exits with 9 [17:54:42]New connection [17:54:42]New thread 3067424100 created [17:54:42]Thread 3067280740 joined [17:54:42]Waiting for new connection... [17:54:42] Sock 9.Parse request [17:54:42]Sock 9.Check first char [17:54:42]Sock 9.First char is OK [17:54:42]request: POST /json_proto HTTP/1.0 [17:54:42]Method: POST [17:54:42]URL: /json_proto [17:54:42]Method is POST - this is cgi request [17:54:42]url: /json_proto [17:54:42]query_string will be loaded in cgi processing [17:54:42]execute_cgi json_proto POST (null) [17:54:42]execute_cgi path=json_proto method=POST [17:54:42]POST find Content-Length [17:54:42]Host: 172.17.63.195:8080 [17:54:42]Content-Length: 677 [17:54:42]Content-Type: application/json [17:54:42] [17:54:42]POST finish read [17:54:42]Found Content-Length = 677 [17:54:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:42]execute_script... [17:54: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)449380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:42]POST & json_proto [17:54:42]process_json_proto [17:54:42]json parsed OK: [17:54:42]protocol is kg_v1.0 [17:54:42]action value=close_receipt [17:54:42]process_action close_receipt [17:54:42]cmd_close_receipt [17:54:42]MH_GetDate [17:54:42]Write to MH i2c: F0 00 00 BE 04 B1 [17:54:42]Write i2c OK [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: F0 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: F0 09 00 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: F0 09 00 BE 04 00 E3 2C 1D 67 68 46 19 67 7B [17:54:42]GetLastDocTimeStamp 1729965230 [17:54:42]current date 1729965283 [17:54:42]FM_GetShiftState [17:54:42]SAM_PROTO_GetShiftState [17:54:42]wFMCommunicate request_size=4 [17:54:42]MH_SAM_APDU [17:54:42]CAPDU: 80 13 01 00 [17:54:42]Write to MH i2c: E2 08 00 BF 04 80 13 01 00 00 00 00 00 40 [17:54:42]Write i2c OK [17:54:42]MH_I2C_Read... [17:54:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:42]Read from MH i2c: E2 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: E2 0E 00 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: E2 0E 00 BF 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 4F [17:54:42]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:54:42]wFMCommunicate OK [17:54:42]SAM_PROTO_GetShiftState done [17:54:42]FM_GetShiftState done [17:54:42]opened in 1729900879 [17:54:42]opened+sec_in_day 1729987279 [17:54:42]quantity*price = 30038 [17:54:42]sum+1 = 30039 [17:54:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 386 26.10.2024 17:54 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201624 ФПД: 92438267896644 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T175443&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201624&fm=92438267896644&tin=02508201610067®Number=0000000000091777&sum=30000 [17:54:43]StoreToDocumentArchive [17:54:43]shift 543 fd 201624 [17:54:43]save to /storage/0543/doc_00201624 [17:54:43]save last doc name /storage/0543/doc_00201624 to /storage/kkm_last_doc_name [17:54:43]save OK [17:54:43]Clear old archive folders... [17:54:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:54:43]tlvbuf is 01F9AA40 [17:54:43]SAM_PROTO_ClearQueue [17:54:43]wFMCommunicate request_size=4 [17:54:43]MH_SAM_APDU [17:54:43]CAPDU: 80 09 00 00 [17:54:43]Write to MH i2c: E2 08 00 CC 04 80 09 00 00 00 00 00 00 42 [17:54:43]Write i2c OK [17:54:43]MH_I2C_Read... [17:54:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:44]Read from MH i2c: E2 [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: E2 03 00 [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: E2 03 00 CC 04 00 90 00 44 [17:54:44]RAPDU: 90 00 [17:54:44]wFMCommunicate OK [17:54:44]SAM_PROTO_ClearQueue done [17:54:44]KKMCreateOFDPacket [17:54:44]OFDProtocolAddRootSTLVToBuf [17:54:44]FM_MakeSignedData [17:54:44]FM_MakeSignedData [17:54:44]SAM_PROTO_SignData [17:54:44]wFMCommunicate request_size=4 [17:54:44]MH_SAM_APDU [17:54:44]CAPDU: 80 0D 01 02 [17:54:44]Write to MH i2c: E2 08 00 CD 04 80 0D 01 02 00 00 00 00 4A [17:54:44]Write i2c OK [17:54:44]MH_I2C_Read... [17:54:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:44]Read from MH i2c: E2 [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: E2 03 00 [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: E2 03 00 CD 04 00 90 00 45 [17:54:44]RAPDU: 90 00 [17:54:44]wFMCommunicate OK [17:54:44]wFMCommunicate request_size=255 [17:54:44]MH_SAM_APDU [17:54: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 E3 2C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 98 13 03 00 35 04 06 00 54 [17:54:44]Write to MH i2c: E2 02 01 CE 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 E3 2C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 98 13 03 00 35 04 06 00 54 00 00 0B [17:54:44]Write i2c OK [17:54:44]MH_I2C_Read... [17:54:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:44]Read from MH i2c: E2 [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: E2 03 00 [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: E2 03 00 CE 04 00 90 00 46 [17:54:44]RAPDU: 90 00 [17:54:44]wFMCommunicate OK [17:54:44]wFMCommunicate request_size=10 [17:54:44]MH_SAM_APDU [17:54:44]CAPDU: 80 0D 02 02 05 12 76 1F 23 44 [17:54:44]Write to MH i2c: E2 0D 00 CF 04 80 0D 02 02 05 00 12 76 1F 23 44 00 00 65 [17:54:44]Write i2c OK [17:54:44]MH_I2C_Read... [17:54:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:44]Read from MH i2c: E2 [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: E2 03 00 [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: E2 03 00 CF 04 00 90 00 47 [17:54:44]RAPDU: 90 00 [17:54:44]wFMCommunicate OK [17:54:44]wFMCommunicate request_size=4 [17:54:44]MH_SAM_APDU [17:54:44]CAPDU: 80 0D 03 02 [17:54:44]Write to MH i2c: E2 08 00 D0 04 80 0D 03 02 00 00 00 00 4F [17:54:44]Write i2c OK [17:54:44]MH_I2C_Read... [17:54:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:44]Read from MH i2c: E2 [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: E2 0B 00 [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: E2 0B 00 D0 04 00 C6 65 D7 2D 24 1F 2B E5 90 00 D2 [17:54:44]RAPDU: C6 65 D7 2D 24 1F 2B E5 90 00 [17:54:44]wFMCommunicate OK [17:54:44]SAM_PROTO_SignData done [17:54:44]FM_MakeSignedData done [17:54:44]CreateOFDProtocolMessage [17:54:44]wFMCommunicate request_size=4 [17:54:44]MH_SAM_APDU [17:54:44]CAPDU: 80 11 00 00 [17:54:44]Write to MH i2c: E2 08 00 D1 04 80 11 00 00 00 00 00 00 4F [17:54:44]Write i2c OK [17:54:44]MH_I2C_Read... [17:54:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:44]Read from MH i2c: E2 [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: E2 17 00 [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: E2 17 00 D1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A4 [17:54:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:54:44]wFMCommunicate OK [17:54:44]CreateOFDProtocolMessage done [17:54:44]OFDSenderStorePacket 201624 [17:54:44]StoreOFDPacket docnum=201624 [17:54:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 FA 81 07 01 37 9E 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 E3 2C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 98 13 03 00 35 04 06 00 54 12 76 1F 23 44 C6 65 D7 2D 24 1F 2B E5 [17:54:44]CheckFolder [17:54:44]dirname=/storage/ofd_packets [17:54:44]CheckFolder done [17:54:44]ProducePacketName [17:54:44]name=ofd_packets/00201624 [17:54:44]NVStorageSaveData ofd_packets/00201624 [17:54:44]File name is /storage/ofd_packets/00201624 [17:54:44]Write 301 bytes [17:54:44]NVStorageSaveData done [17:54:44]OFDSenderStorePacket done [17:54:44]KKMCreateOFDPacket done [17:54:44]NVStorageSaveData kkm_last_timestamp [17:54:44]File name is /storage/kkm_last_timestamp [17:54:44]Write 4 bytes [17:54:44]NVStorageSaveData done [17:54:44]ExternCall_PrintAddStr [17:54:44]wPrintStart [17:54:44]Write to MH i2c: 01 00 00 D2 04 D6 [17:54:44]Write i2c OK [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: 01 [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: 01 07 00 [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: 01 07 00 D2 04 00 00 00 00 00 FF 0F EB [17:54:44]RasterBufferAndPrint [17:54:44]line Счет N : (1)449380 [17:54:44]line ИНН: 02508201610067 [17:54:44]line Контрольно-Кассовый Чек [17:54:44]line ПРОДАЖА [17:54:44]line ТРК (МРК, ГНК) : 52 [17:54:44]line Товар: 2710124130 [17:54:44]line Аи-92-К-2 [17:54:44]line 4.490 * 66.90 [17:54:44]line = 300.38 [17:54:44]line НДС 12% НСП 1% [17:54:44]line > о реализуемом товаре [17:54:44]line ОКРУГЛЕНИЕ: -0.38 [17:54:44]line ИТОГО: 300.00 [17:54:44]line Внесено: 300.00 [17:54:44]line СДАЧА: 0.00 [17:54:44]line НСП 1% : 2.66 [17:54:44]line НДС 12% : 31.90 [17:54:44]line Наличными: 300.00 [17:54:44]line Безнал.: 0.00 [17:54:44]line Место: АЗС № 171 "Партнер Нефть" [17:54:44]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:54:44]line СНО: Общий режим [17:54:44]line Чек 386 26.10.2024 17:54 [17:54:44]line Смена: 543 ФФД: 1.0 [17:54:44]line ЗНМ: 0300000109 [17:54:44]line РНМ: 0000000000091777 [17:54:44]line Версия ККМ: 001 [17:54:44]line ФМ: 0000000000871756 [17:54:44]line ФД: 201624 [17:54:44]line ФПД: 92438267896644 [17:54:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T175443&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201624&fm=92438267896644&tin=02508201610067®Number=0000000000091777&sum=30000 [17:54:44]written 0, free lines is 4095 [17:54:45]Write to MH i2c: 01 00 00 FD 04 01 [17:54:45]Write i2c OK [17:54:45]MH_I2C_Read... [17:54:45]Read from MH i2c: 01 [17:54:45]MH_I2C_Read... [17:54:45]Read from MH i2c: 01 07 00 [17:54:45]MH_I2C_Read... [17:54:45]Read from MH i2c: 01 07 00 FD 04 00 00 00 00 00 99 0C AD [17:54:45]RasterBufferAndPrint [17:54:45]line [17:54:45]line [17:54:45]line [17:54:45]line [17:54:45]line [17:54:45]written 0, free lines is 3229 [17:54:45]MH_Cut [17:54:45]Write to MH i2c: D1 01 00 04 05 01 DB [17:54:45]Write i2c OK [17:54:45]MH_I2C_Read... [17:54:45]Read from MH i2c: D1 [17:54:45]MH_I2C_Read... [17:54:45]Read from MH i2c: D1 01 00 [17:54:45]MH_I2C_Read... [17:54:45]Read from MH i2c: D1 01 00 04 05 00 DA [17:54:45]Write to MH i2c: 01 00 00 05 05 0A [17:54:45]Write i2c OK [17:54:45]MH_I2C_Read... [17:54:46]*** Cut start [17:54:46]*** Purtial cut [17:54:46]*** Stage 1: CUTSNS_PIN = 1 [17:54:46]Read from MH i2c: 01 [17:54:46]MH_I2C_Read... [17:54:46]*** Stop cut motor [17:54:46]*** Cut end [17:54:46]Read from MH i2c: 01 07 00 [17:54:46]MH_I2C_Read... [17:54:46]Read from MH i2c: 01 07 00 05 05 00 00 00 00 00 FF 0F 1F [17:54:46]process_action close_receipt done [17:54:46]requested_data is exist [17:54:46]produce_requested_data [17:54:46]requested_item fm.sn is exist - process it [17:54:46]wFMCommunicate request_size=4 [17:54:46]MH_SAM_APDU [17:54:46]CAPDU: 80 11 00 00 [17:54:46]Write to MH i2c: E2 08 00 06 05 80 11 00 00 00 00 00 00 85 [17:54:46]Write i2c OK [17:54:46]MH_I2C_Read... [17:54:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:46]Read from MH i2c: E2 [17:54:46]MH_I2C_Read... [17:54:46]Read from MH i2c: E2 17 00 [17:54:46]MH_I2C_Read... [17:54:46]Read from MH i2c: E2 17 00 06 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DA [17:54:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:54:46]wFMCommunicate OK [17:54:46]requested_item fd.num is exist - process it [17:54:46]SAM_PROTO_GetFieldsCounters [17:54:46]wFMCommunicate request_size=4 [17:54:46]MH_SAM_APDU [17:54:46]CAPDU: 80 13 00 00 [17:54:46]Write to MH i2c: E2 08 00 07 05 80 13 00 00 00 00 00 00 88 [17:54:46]Write i2c OK [17:54:46]MH_I2C_Read... [17:54:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:46]Read from MH i2c: E2 [17:54:46]MH_I2C_Read... [17:54:46]Read from MH i2c: E2 62 00 [17:54:46]MH_I2C_Read... [17:54:46]Read from MH i2c: E2 62 00 07 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 98 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 82 01 00 00 5E 04 04 00 82 01 00 00 57 04 04 00 83 01 00 00 19 04 04 00 00 00 00 00 90 00 09 [17:54:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 98 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 82 01 00 00 5E 04 04 00 82 01 00 00 57 04 04 00 83 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:54:46]wFMCommunicate OK [17:54:46]SAM_PROTO_GetFieldsCounters done [17:54:46]requested_item shift.num is exist - process it [17:54:46]requested_item shift.opened is exist - process it [17:54:46]req_shift_opened [17:54:46]FM_GetShiftState [17:54:46]SAM_PROTO_GetShiftState [17:54:46]wFMCommunicate request_size=4 [17:54:46]MH_SAM_APDU [17:54:46]CAPDU: 80 13 01 00 [17:54:46]Write to MH i2c: E2 08 00 08 05 80 13 01 00 00 00 00 00 8A [17:54:46]Write i2c OK [17:54:46]MH_I2C_Read... [17:54:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:46]Read from MH i2c: E2 [17:54:46]MH_I2C_Read... [17:54:46]Read from MH i2c: E2 0E 00 [17:54:46]MH_I2C_Read... [17:54:46]Read from MH i2c: E2 0E 00 08 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 99 [17:54:46]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:54:46]wFMCommunicate OK [17:54:46]SAM_PROTO_GetShiftState done [17:54:46]FM_GetShiftState done [17:54:46]req_shift_opened done [17:54:46]requested_item shift.open_date is exist - process it [17:54:46]req_shift_open_date [17:54:46]req_shift_open_date done [17:54:46]produce_requested_data done [17:54:46]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201624,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [17:54:46]process_action_free close_receipt [17:54:46]json_value_free [17:54:46]json_value_free done [17:54:46]process_json_proto returns [17:54:46]Send response to host [17:54:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201624,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [17:54:46]free response buf [17:54:46]execute_script done [17:54:46]execute_script returns [17:54:46]free content buf [17:54:46]Sock 9.Close socket [17:54:46]Sock 9.Thread stoped [17:54:57]ConnectInit Can't connect to host [17:54:57]CommunicateWithHost connect error [17:54:57]CommunicateWithHost err = -1 [17:54:57]OFD Sender: Server communicate error [17:54:57]OFD Sender: Processing packet 201621 [packets to send 115, broken 111] [17:54:57]ProducePacketName [17:54:57]name=ofd_packets/00201621 [17:54:57]OFD Sender: To server: pG, [17:54:57]CommunicateWithHost lk.salyk.kg:30040 [17:54:57]ConnectInit lk.salyk.kg [17:54:58]Connected sock=9 [17:54:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 64 51 07 01 D9 8B 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 6A 2C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 95 13 03 00 35 04 06 00 E1 76 25 4D 11 91 F3 9F 18 16 27 B5 4E EA [17:54:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A7 DF 47 00 44 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 95 13 03 00 F4 03 04 00 98 D8 1C 67 B6 04 01 00 00 8F 7A FB 42 BD 3D 39 79 [17:54:58]CommunicateWithHost err = 0 [17:54:58]CheckOFDResponse [17:54:58]1017 (14) - 77093643461234 [17:54:58]1041 (16) - 0000000000871756 [17:54:58]1040 (4) - 201621 [17:54:58]1012 (4) - 26.10.2024 11:55 [17:54:58]1206 (1) - 0 [17:54:58]OFD Sender: Remove packet 201621 [17:54:58]ProducePacketName [17:54:58]name=ofd_packets/00201621 [17:54:58]NVStorageDeleteData [17:54:58]OFD Sender: Processing packet 201622 [packets to send 114, broken 111] [17:54:58]ProducePacketName [17:54:58]name=ofd_packets/00201622 [17:54:58]OFD Sender: To server: pG, [17:54:58]CommunicateWithHost lk.salyk.kg:30040 [17:54:58]ConnectInit lk.salyk.kg [17:54:58]Connected sock=9 [17:54:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 91 8A 04 01 C4 B2 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 80 01 00 00 F4 03 04 00 80 2C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 96 13 03 00 35 04 06 00 10 1D 71 22 BB BD B1 D6 77 FD 20 25 4B DB [17:54:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 4C D9 47 00 82 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 96 13 03 00 F4 03 04 00 99 D8 1C 67 B6 04 01 00 00 A1 56 24 B1 75 8A 30 23 [17:54:59]CommunicateWithHost err = 0 [17:54:59]CheckOFDResponse [17:54:59]1017 (14) - 77093643461234 [17:54:59]1041 (16) - 0000000000871756 [17:54:59]1040 (4) - 201622 [17:54:59]1012 (4) - 26.10.2024 11:55 [17:54:59]1206 (1) - 0 [17:54:59]OFD Sender: Remove packet 201622 [17:54:59]ProducePacketName [17:54:59]name=ofd_packets/00201622 [17:54:59]NVStorageDeleteData [17:54:59]OFD Sender: Processing packet 201623 [packets to send 113, broken 111] [17:54:59]ProducePacketName [17:54:59]name=ofd_packets/00201623 [17:54:59]OFD Sender: To server: pG, [17:54:59]CommunicateWithHost lk.salyk.kg:30040 [17:54:59]ConnectInit lk.salyk.kg [17:54:59]Connected sock=9 [17:54:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E4 69 07 01 D2 F8 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 32 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 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 81 01 00 00 F4 03 04 00 AE 2C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 97 13 03 00 35 04 06 00 3F 64 97 8B CF B7 C5 AC 8C 19 C9 7B 5A 88 [17:54:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 57 7F 47 00 6C 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 97 13 03 00 F4 03 04 00 9A D8 1C 67 B6 04 01 00 00 14 D9 76 9D 4A CB 1F 61 [17:54:59]CommunicateWithHost err = 0 [17:54:59]CheckOFDResponse [17:54:59]1017 (14) - 77093643461234 [17:54:59]1041 (16) - 0000000000871756 [17:54:59]1040 (4) - 201623 [17:54:59]1012 (4) - 26.10.2024 11:55 [17:54:59]1206 (1) - 0 [17:54:59]OFD Sender: Remove packet 201623 [17:54:59]ProducePacketName [17:54:59]name=ofd_packets/00201623 [17:54:59]NVStorageDeleteData [17:55:00]OFD Sender: Processing packet 201624 [packets to send 112, broken 111] [17:55:00]ProducePacketName [17:55:00]name=ofd_packets/00201624 [17:55:00]OFD Sender: To server: pG, [17:55:00]CommunicateWithHost lk.salyk.kg:30040 [17:55:00]ConnectInit lk.salyk.kg [17:55:00]Connected sock=9 [17:55:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 FA 81 07 01 37 9E 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 E3 2C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 98 13 03 00 35 04 06 00 54 12 76 1F 23 44 C6 65 D7 2D 24 1F 2B E5 [17:55:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 2D 2B 47 00 42 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 98 13 03 00 F4 03 04 00 9B D8 1C 67 B6 04 01 00 00 F0 56 9A 50 91 72 B5 D3 [17:55:00]CommunicateWithHost err = 0 [17:55:00]CheckOFDResponse [17:55:00]1017 (14) - 77093643461234 [17:55:00]1041 (16) - 0000000000871756 [17:55:00]1040 (4) - 201624 [17:55:00]1012 (4) - 26.10.2024 11:55 [17:55:00]1206 (1) - 0 [17:55:00]OFD Sender: Remove packet 201624 [17:55:00]ProducePacketName [17:55:00]name=ofd_packets/00201624 [17:55:00]NVStorageDeleteData [17:55:01]OFD Sender: No OFD packet to send [17:55:06]OFD Sender: No OFD packet to send [17:55:11]OFD Sender: No OFD packet to send [17:55:16]OFD Sender: No OFD packet to send [17:55:21]OFD Sender: No OFD packet to send [17:55:26]OFD Sender: No OFD packet to send [17:55:31]OFD Sender: No OFD packet to send [17:55:36]OFD Sender: No OFD packet to send [17:55:41]OFD Sender: No OFD packet to send [17:55:46]OFD Sender: No OFD packet to send [17:55:51]OFD Sender: No OFD packet to send [17:55:56]OFD Sender: No OFD packet to send [17:56:01]OFD Sender: No OFD packet to send [17:56:06]OFD Sender: No OFD packet to send [17:56:11]OFD Sender: No OFD packet to send [17:56:16]OFD Sender: No OFD packet to send [17:56:21]OFD Sender: No OFD packet to send [17:56:26]OFD Sender: No OFD packet to send [17:56:31]OFD Sender: No OFD packet to send [17:56:36]OFD Sender: No OFD packet to send [17:56:41]OFD Sender: No OFD packet to send [17:56:43]accept exits with 7 [17:56:43]New connection [17:56:43]New thread 3067280740 created [17:56:43]Thread 3067424100 joined [17:56:43]Waiting for new connection... [17:56:43] Sock 7.Parse request [17:56:43]Sock 7.Check first char [17:56:43]Sock 7.First char is OK [17:56:43]request: POST /json_proto HTTP/1.0 [17:56:43]Method: POST [17:56:43]URL: /json_proto [17:56:43]Method is POST - this is cgi request [17:56:43]url: /json_proto [17:56:43]query_string will be loaded in cgi processing [17:56:43]execute_cgi json_proto POST (null) [17:56:43]execute_cgi path=json_proto method=POST [17:56:43]POST find Content-Length [17:56:43]Host: 172.17.63.195:8080 [17:56:43]Content-Length: 632 [17:56:43]Content-Type: application/json [17:56:43] [17:56:43]POST finish read [17:56:43]Found Content-Length = 632 [17:56:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:43]execute_script... [17:56: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)449381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:43]POST & json_proto [17:56:43]process_json_proto [17:56:43]json parsed OK: [17:56:43]protocol is kg_v1.0 [17:56:43]action value=close_receipt [17:56:43]process_action close_receipt [17:56:43]cmd_close_receipt [17:56:43]MH_GetDate [17:56:43]Write to MH i2c: F0 00 00 09 05 FD [17:56:43]Write i2c OK [17:56:43]MH_I2C_Read... [17:56:43]Read from MH i2c: F0 [17:56:43]MH_I2C_Read... [17:56:43]Read from MH i2c: F0 09 00 [17:56:43]MH_I2C_Read... [17:56:43]Read from MH i2c: F0 09 00 09 05 00 5C 2D 1D 67 68 46 19 67 41 [17:56:43]GetLastDocTimeStamp 1729965283 [17:56:43]current date 1729965404 [17:56:43]FM_GetShiftState [17:56:43]SAM_PROTO_GetShiftState [17:56:43]wFMCommunicate request_size=4 [17:56:43]MH_SAM_APDU [17:56:43]CAPDU: 80 13 01 00 [17:56:43]Write to MH i2c: E2 08 00 0A 05 80 13 01 00 00 00 00 00 8C [17:56:43]Write i2c OK [17:56:43]MH_I2C_Read... [17:56:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:43]Read from MH i2c: E2 [17:56:43]MH_I2C_Read... [17:56:43]Read from MH i2c: E2 0E 00 [17:56:43]MH_I2C_Read... [17:56:43]Read from MH i2c: E2 0E 00 0A 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 9B [17:56:43]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:56:43]wFMCommunicate OK [17:56:43]SAM_PROTO_GetShiftState done [17:56:43]FM_GetShiftState done [17:56:43]opened in 1729900879 [17:56:43]opened+sec_in_day 1729987279 [17:56:43]quantity*price = 50000 [17:56:43]sum+1 = 50001 [17:56:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 387 26.10.2024 17:56 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201625 ФПД: 223043013903380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T175644&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201625&fm=223043013903380&tin=02508201610067®Number=0000000000091777&sum=50000 [17:56:44]StoreToDocumentArchive [17:56:44]shift 543 fd 201625 [17:56:44]save to /storage/0543/doc_00201625 [17:56:44]save last doc name /storage/0543/doc_00201625 to /storage/kkm_last_doc_name [17:56:44]save OK [17:56:44]Clear old archive folders... [17:56:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:56:44]tlvbuf is 01F9A0C0 [17:56:44]SAM_PROTO_ClearQueue [17:56:44]wFMCommunicate request_size=4 [17:56:44]MH_SAM_APDU [17:56:44]CAPDU: 80 09 00 00 [17:56:44]Write to MH i2c: E2 08 00 17 05 80 09 00 00 00 00 00 00 8E [17:56:44]Write i2c OK [17:56:44]MH_I2C_Read... [17:56:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:56:44]Read from MH i2c: E2 [17:56:44]MH_I2C_Read... [17:56:44]Read from MH i2c: E2 03 00 [17:56:44]MH_I2C_Read... [17:56:44]Read from MH i2c: E2 03 00 17 05 00 90 00 90 [17:56:44]RAPDU: 90 00 [17:56:44]wFMCommunicate OK [17:56:44]SAM_PROTO_ClearQueue done [17:56:44]KKMCreateOFDPacket [17:56:44]OFDProtocolAddRootSTLVToBuf [17:56:44]FM_MakeSignedData [17:56:44]FM_MakeSignedData [17:56:44]SAM_PROTO_SignData [17:56:44]wFMCommunicate request_size=4 [17:56:44]MH_SAM_APDU [17:56:44]CAPDU: 80 0D 01 02 [17:56:44]Write to MH i2c: E2 08 00 18 05 80 0D 01 02 00 00 00 00 96 [17:56:44]Write i2c OK [17:56:44]MH_I2C_Read... [17:56:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:56:44]Read from MH i2c: E2 [17:56:44]MH_I2C_Read... [17:56:44]Read from MH i2c: E2 03 00 [17:56:44]MH_I2C_Read... [17:56:44]Read from MH i2c: E2 03 00 18 05 00 90 00 91 [17:56:44]RAPDU: 90 00 [17:56:44]wFMCommunicate OK [17:56:44]wFMCommunicate request_size=255 [17:56:44]MH_SAM_APDU [17:56:44]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 01 00 00 F4 03 04 00 5C 2D 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 99 13 03 00 35 04 06 00 [17:56:44]Write to MH i2c: E2 02 01 19 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 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 01 00 00 F4 03 04 00 5C 2D 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 99 13 03 00 35 04 06 00 00 00 E8 [17:56:44]Write i2c OK [17:56:44]MH_I2C_Read... [17:56:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:45]Read from MH i2c: E2 [17:56:45]MH_I2C_Read... [17:56:45]Read from MH i2c: E2 03 00 [17:56:45]MH_I2C_Read... [17:56:45]Read from MH i2c: E2 03 00 19 05 00 90 00 92 [17:56:45]RAPDU: 90 00 [17:56:45]wFMCommunicate OK [17:56:45]wFMCommunicate request_size=11 [17:56:45]MH_SAM_APDU [17:56:45]CAPDU: 80 0D 02 02 06 CA DB 3F 9D 04 14 [17:56:45]Write to MH i2c: E2 0E 00 1A 05 80 0D 02 02 06 00 CA DB 3F 9D 04 14 00 00 3E [17:56:45]Write i2c OK [17:56:45]MH_I2C_Read... [17:56:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:45]Read from MH i2c: E2 [17:56:45]MH_I2C_Read... [17:56:45]Read from MH i2c: E2 03 00 [17:56:45]MH_I2C_Read... [17:56:45]Read from MH i2c: E2 03 00 1A 05 00 90 00 93 [17:56:45]RAPDU: 90 00 [17:56:45]wFMCommunicate OK [17:56:45]wFMCommunicate request_size=4 [17:56:45]MH_SAM_APDU [17:56:45]CAPDU: 80 0D 03 02 [17:56:45]Write to MH i2c: E2 08 00 1B 05 80 0D 03 02 00 00 00 00 9B [17:56:45]Write i2c OK [17:56:45]MH_I2C_Read... [17:56:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:56:45]Read from MH i2c: E2 [17:56:45]MH_I2C_Read... [17:56:45]Read from MH i2c: E2 0B 00 [17:56:45]MH_I2C_Read... [17:56:45]Read from MH i2c: E2 0B 00 1B 05 00 02 E2 FD 9B 14 68 97 DE 90 00 09 [17:56:45]RAPDU: 02 E2 FD 9B 14 68 97 DE 90 00 [17:56:45]wFMCommunicate OK [17:56:45]SAM_PROTO_SignData done [17:56:45]FM_MakeSignedData done [17:56:45]CreateOFDProtocolMessage [17:56:45]wFMCommunicate request_size=4 [17:56:45]MH_SAM_APDU [17:56:45]CAPDU: 80 11 00 00 [17:56:45]Write to MH i2c: E2 08 00 1C 05 80 11 00 00 00 00 00 00 9B [17:56:45]Write i2c OK [17:56:45]MH_I2C_Read... [17:56:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:45]Read from MH i2c: E2 [17:56:45]MH_I2C_Read... [17:56:45]Read from MH i2c: E2 17 00 [17:56:45]MH_I2C_Read... [17:56:45]Read from MH i2c: E2 17 00 1C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F0 [17:56:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:56:45]wFMCommunicate OK [17:56:45]CreateOFDProtocolMessage done [17:56:45]OFDSenderStorePacket 201625 [17:56:45]StoreOFDPacket docnum=201625 [17:56:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 E9 53 08 01 9D 83 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 01 00 00 F4 03 04 00 5C 2D 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 99 13 03 00 35 04 06 00 CA DB 3F 9D 04 14 02 E2 FD 9B 14 68 97 DE [17:56:45]CheckFolder [17:56:45]dirname=/storage/ofd_packets [17:56:45]CheckFolder done [17:56:45]ProducePacketName [17:56:45]name=ofd_packets/00201625 [17:56:45]NVStorageSaveData ofd_packets/00201625 [17:56:45]File name is /storage/ofd_packets/00201625 [17:56:45]Write 302 bytes [17:56:45]NVStorageSaveData done [17:56:45]OFDSenderStorePacket done [17:56:45]KKMCreateOFDPacket done [17:56:45]NVStorageSaveData kkm_last_timestamp [17:56:45]File name is /storage/kkm_last_timestamp [17:56:45]Write 4 bytes [17:56:45]NVStorageSaveData done [17:56:45]ExternCall_PrintAddStr [17:56:45]wPrintStart [17:56:45]Write to MH i2c: 01 00 00 1D 05 22 [17:56:45]Write i2c OK [17:56:45]MH_I2C_Read... [17:56:45]Read from MH i2c: 01 [17:56:45]MH_I2C_Read... [17:56:45]Read from MH i2c: 01 07 00 [17:56:45]MH_I2C_Read... [17:56:45]Read from MH i2c: 01 07 00 1D 05 00 00 00 00 00 FF 0F 37 [17:56:45]RasterBufferAndPrint [17:56:45]line Счет N : (1)449381 [17:56:45]line ИНН: 02508201610067 [17:56:45]line Контрольно-Кассовый Чек [17:56:45]line ПРОДАЖА [17:56:45]line ТРК (МРК, ГНК) : 53 [17:56:45]line Товар: 2710124130 [17:56:45]line SUPER 92-К-5 [17:56:45]line 7.310 * 68.40 [17:56:45]line = 500.00 [17:56:45]line НДС 12% НСП 1% [17:56:45]line > о реализуемом товаре [17:56:45]line ИТОГО: 500.00 [17:56:45]line НСП 1% : 4.42 [17:56:45]line НДС 12% : 53.10 [17:56:45]line Наличными: 500.00 [17:56:45]line Безнал.: 0.00 [17:56:45]line Место: АЗС № 171 "Партнер Нефть" [17:56:45]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [17:56:45]line СНО: Общий режим [17:56:45]line Чек 387 26.10.2024 17:56 [17:56:45]line Смена: 543 ФФД: 1.0 [17:56:45]line ЗНМ: 0300000109 [17:56:45]line РНМ: 0000000000091777 [17:56:45]line Версия ККМ: 001 [17:56:45]line ФМ: 0000000000871756 [17:56:45]line ФД: 201625 [17:56:45]line ФПД: 223043013903380 [17:56:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T175644&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201625&fm=223043013903380&tin=02508201610067®Number=0000000000091777&sum=50000 [17:56:45]OFD Sender: Processing packet 201625 [packets to send 112, broken 111] [17:56:45]ProducePacketName [17:56:45]name=ofd_packets/00201625 [17:56:45]OFD Sender: To server: pG, [17:56:45]CommunicateWithHost lk.salyk.kg:30040 [17:56:45]ConnectInit lk.salyk.kg [17:56:45]written 0, free lines is 4095 [17:56:45]Connected sock=10 [17:56:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 E9 53 08 01 9D 83 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 01 00 00 F4 03 04 00 5C 2D 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 99 13 03 00 35 04 06 00 CA DB 3F 9D 04 14 02 E2 FD 9B 14 68 97 DE [17:56:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 36 8E 47 00 1E FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 99 13 03 00 F4 03 04 00 04 D9 1C 67 B6 04 01 00 00 E3 1A 25 AA 66 7B 20 F4 [17:56:45]CommunicateWithHost err = 0 [17:56:45]CheckOFDResponse [17:56:45]1017 (14) - 77093643461234 [17:56:45]1041 (16) - 0000000000871756 [17:56:45]1040 (4) - 201625 [17:56:45]1012 (4) - 26.10.2024 11:56 [17:56:45]1206 (1) - 0 [17:56:45]OFD Sender: Remove packet 201625 [17:56:45]ProducePacketName [17:56:45]name=ofd_packets/00201625 [17:56:45]NVStorageDeleteData [17:56:46]Write to MH i2c: 01 00 00 45 05 4A [17:56:46]Write i2c OK [17:56:46]MH_I2C_Read... [17:56:46]Read from MH i2c: 01 [17:56:46]MH_I2C_Read... [17:56:46]Read from MH i2c: 01 07 00 [17:56:46]MH_I2C_Read... [17:56:46]Read from MH i2c: 01 07 00 45 05 00 00 00 00 00 EC 0C 49 [17:56:46]RasterBufferAndPrint [17:56:46]line [17:56:46]line [17:56:46]line [17:56:46]line [17:56:46]line [17:56:46]written 0, free lines is 3312 [17:56:46]MH_Cut [17:56:46]Write to MH i2c: D1 01 00 4C 05 01 23 [17:56:46]Write i2c OK [17:56:46]MH_I2C_Read... [17:56:46]Read from MH i2c: D1 [17:56:46]MH_I2C_Read... [17:56:46]Read from MH i2c: D1 01 00 [17:56:46]MH_I2C_Read... [17:56:46]Read from MH i2c: D1 01 00 4C 05 00 22 [17:56:46]Write to MH i2c: 01 00 00 4D 05 52 [17:56:46]Write i2c OK [17:56:46]MH_I2C_Read... [17:56:46]OFD Sender: No OFD packet to send [17:56:46]*** Cut start [17:56:46]*** Purtial cut [17:56:46]*** Stage 1: CUTSNS_PIN = 1 [17:56:47]Read from MH i2c: 01 [17:56:47]MH_I2C_Read... [17:56:47]*** Stop cut motor [17:56:47]*** Cut end [17:56:47]Read from MH i2c: 01 07 00 [17:56:47]MH_I2C_Read... [17:56:47]Read from MH i2c: 01 07 00 4D 05 00 00 00 00 00 FF 0F 67 [17:56:47]process_action close_receipt done [17:56:47]requested_data is exist [17:56:47]produce_requested_data [17:56:47]requested_item fm.sn is exist - process it [17:56:47]wFMCommunicate request_size=4 [17:56:47]MH_SAM_APDU [17:56:47]CAPDU: 80 11 00 00 [17:56:47]Write to MH i2c: E2 08 00 4E 05 80 11 00 00 00 00 00 00 CD [17:56:47]Write i2c OK [17:56:47]MH_I2C_Read... [17:56:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:47]Read from MH i2c: E2 [17:56:47]MH_I2C_Read... [17:56:47]Read from MH i2c: E2 17 00 [17:56:47]MH_I2C_Read... [17:56:47]Read from MH i2c: E2 17 00 4E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 22 [17:56:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [17:56:47]wFMCommunicate OK [17:56:47]requested_item fd.num is exist - process it [17:56:47]SAM_PROTO_GetFieldsCounters [17:56:47]wFMCommunicate request_size=4 [17:56:47]MH_SAM_APDU [17:56:47]CAPDU: 80 13 00 00 [17:56:47]Write to MH i2c: E2 08 00 4F 05 80 13 00 00 00 00 00 00 D0 [17:56:47]Write i2c OK [17:56:47]MH_I2C_Read... [17:56:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:47]Read from MH i2c: E2 [17:56:47]MH_I2C_Read... [17:56:47]Read from MH i2c: E2 62 00 [17:56:47]MH_I2C_Read... [17:56:47]Read from MH i2c: E2 62 00 4F 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 99 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 83 01 00 00 5E 04 04 00 83 01 00 00 57 04 04 00 84 01 00 00 19 04 04 00 00 00 00 00 90 00 55 [17:56:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 99 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 83 01 00 00 5E 04 04 00 83 01 00 00 57 04 04 00 84 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:56:47]wFMCommunicate OK [17:56:47]SAM_PROTO_GetFieldsCounters done [17:56:47]requested_item shift.num is exist - process it [17:56:47]requested_item shift.opened is exist - process it [17:56:47]req_shift_opened [17:56:47]FM_GetShiftState [17:56:47]SAM_PROTO_GetShiftState [17:56:47]wFMCommunicate request_size=4 [17:56:47]MH_SAM_APDU [17:56:47]CAPDU: 80 13 01 00 [17:56:47]Write to MH i2c: E2 08 00 50 05 80 13 01 00 00 00 00 00 D2 [17:56:47]Write i2c OK [17:56:47]MH_I2C_Read... [17:56:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:47]Read from MH i2c: E2 [17:56:47]MH_I2C_Read... [17:56:47]Read from MH i2c: E2 0E 00 [17:56:47]MH_I2C_Read... [17:56:47]Read from MH i2c: E2 0E 00 50 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E1 [17:56:47]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [17:56:47]wFMCommunicate OK [17:56:47]SAM_PROTO_GetShiftState done [17:56:47]FM_GetShiftState done [17:56:47]req_shift_opened done [17:56:47]requested_item shift.open_date is exist - process it [17:56:47]req_shift_open_date [17:56:47]req_shift_open_date done [17:56:47]produce_requested_data done [17:56:47]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201625,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [17:56:47]process_action_free close_receipt [17:56:47]json_value_free [17:56:47]json_value_free done [17:56:47]process_json_proto returns [17:56:47]Send response to host [17:56:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201625,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [17:56:47]free response buf [17:56:47]execute_script done [17:56:47]execute_script returns [17:56:47]free content buf [17:56:47]Sock 7.Close socket [17:56:47]Sock 7.Thread stoped [17:56:51]OFD Sender: No OFD packet to send [17:56:56]OFD Sender: No OFD packet to send [17:57:01]OFD Sender: No OFD packet to send [17:57:06]OFD Sender: No OFD packet to send [17:57:11]OFD Sender: No OFD packet to send [17:57:16]OFD Sender: No OFD packet to send [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:41]OFD Sender: No OFD packet to send [17:57:46]OFD Sender: No OFD packet to send [17:57:51]OFD Sender: No OFD packet to send [17:57:56]OFD Sender: No OFD packet to send [17:58:01]OFD Sender: No OFD packet to send [17:58:06]OFD Sender: No OFD packet to send [17:58:11]OFD Sender: No OFD packet to send [17:58:16]OFD Sender: No OFD packet to send [17:58:21]OFD Sender: No OFD packet to send [17:58:26]OFD Sender: No OFD packet to send [17:58:31]OFD Sender: No OFD packet to send [17:58:36]OFD Sender: No OFD packet to send [17:58:41]OFD Sender: No OFD packet to send [17:58:46]OFD Sender: No OFD packet to send [17:58:51]OFD Sender: No OFD packet to send [17:58:56]OFD Sender: No OFD packet to send [17:59:01]OFD Sender: No OFD packet to send [17:59:06]OFD Sender: No OFD packet to send [17:59:11]OFD Sender: No OFD packet to send [17:59:16]OFD Sender: No OFD packet to send [17:59:21]OFD Sender: No OFD packet to send [17:59:26]OFD Sender: No OFD packet to send [17:59:31]OFD Sender: No OFD packet to send [17:59:36]OFD Sender: No OFD packet to send [17:59:41]OFD Sender: No OFD packet to send [17:59:46]OFD Sender: No OFD packet to send [17:59:51]OFD Sender: No OFD packet to send [17:59:56]OFD Sender: No OFD packet to send [18:00:01]OFD Sender: No OFD packet to send [18:00:06]OFD Sender: No OFD packet to send [18:00:11]OFD Sender: No OFD packet to send [18:00:16]OFD Sender: No OFD packet to send [18:00:21]OFD Sender: No OFD packet to send [18:00:26]OFD Sender: No OFD packet to send [18:00:31]OFD Sender: No OFD packet to send [18:00:36]OFD Sender: No OFD packet to send [18:00:41]OFD Sender: No OFD packet to send [18:00:46]OFD Sender: No OFD packet to send [18:00:51]OFD Sender: No OFD packet to send [18:00:56]OFD Sender: No OFD packet to send [18:00:59]accept exits with 9 [18:00:59]New connection [18:00:59]New thread 3067424100 created [18:00:59]Thread 3067280740 joined [18:00:59]Waiting for new connection... [18:00:59] Sock 9.Parse request [18:00:59]Sock 9.Check first char [18:00:59]Sock 9.First char is OK [18:00:59]request: POST /json_proto HTTP/1.0 [18:00:59]Method: POST [18:00:59]URL: /json_proto [18:00:59]Method is POST - this is cgi request [18:00:59]url: /json_proto [18:00:59]query_string will be loaded in cgi processing [18:00:59]execute_cgi json_proto POST (null) [18:00:59]execute_cgi path=json_proto method=POST [18:00:59]POST find Content-Length [18:00:59]Host: 172.17.63.195:8080 [18:00:59]Content-Length: 677 [18:00:59]Content-Type: application/json [18:00:59] [18:00:59]POST finish read [18:00:59]Found Content-Length = 677 [18:00:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "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" ] } } [18:00:59]execute_script... [18:00:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "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" ] } } [18:00:59]POST & json_proto [18:00:59]process_json_proto [18:00:59]json parsed OK: [18:00:59]protocol is kg_v1.0 [18:00:59]action value=close_receipt [18:00:59]process_action close_receipt [18:00:59]cmd_close_receipt [18:00:59]MH_GetDate [18:00:59]Write to MH i2c: F0 00 00 51 05 45 [18:00:59]Write i2c OK [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: F0 [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: F0 09 00 [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: F0 09 00 51 05 00 5B 2E 1D 67 68 46 19 67 89 [18:00:59]GetLastDocTimeStamp 1729965404 [18:00:59]current date 1729965659 [18:00:59]FM_GetShiftState [18:00:59]SAM_PROTO_GetShiftState [18:00:59]wFMCommunicate request_size=4 [18:00:59]MH_SAM_APDU [18:00:59]CAPDU: 80 13 01 00 [18:00:59]Write to MH i2c: E2 08 00 52 05 80 13 01 00 00 00 00 00 D4 [18:00:59]Write i2c OK [18:00:59]MH_I2C_Read... [18:00:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:59]Read from MH i2c: E2 [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: E2 0E 00 [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: E2 0E 00 52 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E3 [18:00:59]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [18:00:59]wFMCommunicate OK [18:00:59]SAM_PROTO_GetShiftState done [18:00:59]FM_GetShiftState done [18:00:59]opened in 1729900879 [18:00:59]opened+sec_in_day 1729987279 [18:00:59]quantity*price = 30051 [18:00:59]sum+1 = 30052 [18:00:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 388 26.10.2024 18:00 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201626 ФПД: 83369403206394 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T180059&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201626&fm=83369403206394&tin=02508201610067®Number=0000000000091777&sum=30000 [18:01:00]StoreToDocumentArchive [18:01:00]shift 543 fd 201626 [18:01:00]save to /storage/0543/doc_00201626 [18:01:00]save last doc name /storage/0543/doc_00201626 to /storage/kkm_last_doc_name [18:01:00]save OK [18:01:00]Clear old archive folders... [18:01:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:01:00]tlvbuf is 01F99CF0 [18:01:00]SAM_PROTO_ClearQueue [18:01:00]wFMCommunicate request_size=4 [18:01:00]MH_SAM_APDU [18:01:00]CAPDU: 80 09 00 00 [18:01:00]Write to MH i2c: E2 08 00 5F 05 80 09 00 00 00 00 00 00 D6 [18:01:00]Write i2c OK [18:01:00]MH_I2C_Read... [18:01:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:00]Read from MH i2c: E2 [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: E2 03 00 [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: E2 03 00 5F 05 00 90 00 D8 [18:01:00]RAPDU: 90 00 [18:01:00]wFMCommunicate OK [18:01:00]SAM_PROTO_ClearQueue done [18:01:00]KKMCreateOFDPacket [18:01:00]OFDProtocolAddRootSTLVToBuf [18:01:00]FM_MakeSignedData [18:01:00]FM_MakeSignedData [18:01:00]SAM_PROTO_SignData [18:01:00]wFMCommunicate request_size=4 [18:01:00]MH_SAM_APDU [18:01:00]CAPDU: 80 0D 01 02 [18:01:00]Write to MH i2c: E2 08 00 60 05 80 0D 01 02 00 00 00 00 DE [18:01:00]Write i2c OK [18:01:00]MH_I2C_Read... [18:01:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:00]Read from MH i2c: E2 [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: E2 03 00 [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: E2 03 00 60 05 00 90 00 D9 [18:01:00]RAPDU: 90 00 [18:01:00]wFMCommunicate OK [18:01:00]wFMCommunicate request_size=255 [18:01:00]MH_SAM_APDU [18:01:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 77 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 84 01 00 00 F4 03 04 00 5B 2E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9A 13 03 00 35 04 06 00 4B [18:01:00]Write to MH i2c: E2 02 01 61 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 77 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 84 01 00 00 F4 03 04 00 5B 2E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9A 13 03 00 35 04 06 00 4B 00 00 49 [18:01:00]Write i2c OK [18:01:00]MH_I2C_Read... [18:01:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:00]Read from MH i2c: E2 [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: E2 03 00 [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: E2 03 00 61 05 00 90 00 DA [18:01:00]RAPDU: 90 00 [18:01:00]wFMCommunicate OK [18:01:00]wFMCommunicate request_size=10 [18:01:00]MH_SAM_APDU [18:01:00]CAPDU: 80 0D 02 02 05 D2 F3 A9 CA FA [18:01:00]Write to MH i2c: E2 0D 00 62 05 80 0D 02 02 05 00 D2 F3 A9 CA FA 00 00 1D [18:01:00]Write i2c OK [18:01:00]MH_I2C_Read... [18:01:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:00]Read from MH i2c: E2 [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: E2 03 00 [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: E2 03 00 62 05 00 90 00 DB [18:01:00]RAPDU: 90 00 [18:01:00]wFMCommunicate OK [18:01:00]wFMCommunicate request_size=4 [18:01:00]MH_SAM_APDU [18:01:00]CAPDU: 80 0D 03 02 [18:01:00]Write to MH i2c: E2 08 00 63 05 80 0D 03 02 00 00 00 00 E3 [18:01:00]Write i2c OK [18:01:00]MH_I2C_Read... [18:01:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:00]Read from MH i2c: E2 [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: E2 0B 00 [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: E2 0B 00 63 05 00 E8 38 51 61 F5 D6 0F 45 90 00 D5 [18:01:00]RAPDU: E8 38 51 61 F5 D6 0F 45 90 00 [18:01:00]wFMCommunicate OK [18:01:00]SAM_PROTO_SignData done [18:01:00]FM_MakeSignedData done [18:01:00]CreateOFDProtocolMessage [18:01:00]wFMCommunicate request_size=4 [18:01:00]MH_SAM_APDU [18:01:00]CAPDU: 80 11 00 00 [18:01:00]Write to MH i2c: E2 08 00 64 05 80 11 00 00 00 00 00 00 E3 [18:01:00]Write i2c OK [18:01:00]MH_I2C_Read... [18:01:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:00]Read from MH i2c: E2 [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: E2 17 00 [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: E2 17 00 64 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 38 [18:01:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:01:00]wFMCommunicate OK [18:01:00]CreateOFDProtocolMessage done [18:01:00]OFDSenderStorePacket 201626 [18:01:00]StoreOFDPacket docnum=201626 [18:01:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 03 F6 07 01 74 D8 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 33 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 77 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 84 01 00 00 F4 03 04 00 5B 2E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9A 13 03 00 35 04 06 00 4B D2 F3 A9 CA FA E8 38 51 61 F5 D6 0F 45 [18:01:00]CheckFolder [18:01:00]dirname=/storage/ofd_packets [18:01:00]CheckFolder done [18:01:00]ProducePacketName [18:01:00]name=ofd_packets/00201626 [18:01:00]NVStorageSaveData ofd_packets/00201626 [18:01:00]File name is /storage/ofd_packets/00201626 [18:01:00]Write 301 bytes [18:01:00]NVStorageSaveData done [18:01:00]OFDSenderStorePacket done [18:01:00]KKMCreateOFDPacket done [18:01:00]NVStorageSaveData kkm_last_timestamp [18:01:00]File name is /storage/kkm_last_timestamp [18:01:00]Write 4 bytes [18:01:00]NVStorageSaveData done [18:01:00]ExternCall_PrintAddStr [18:01:00]wPrintStart [18:01:00]Write to MH i2c: 01 00 00 65 05 6A [18:01:00]Write i2c OK [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: 01 [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: 01 07 00 [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: 01 07 00 65 05 00 00 00 00 00 FF 0F 7F [18:01:00]RasterBufferAndPrint [18:01:00]line Счет N : (1)449382 [18:01:00]line ИНН: 02508201610067 [18:01:00]line Контрольно-Кассовый Чек [18:01:00]line ПРОДАЖА [18:01:00]line ТРК (МРК, ГНК) : 51 [18:01:00]line Товар: 2710124500 [18:01:00]line Аи-95-К-3 [18:01:00]line 4.050 * 74.20 [18:01:00]line = 300.51 [18:01:00]line НДС 12% НСП 1% [18:01:00]line > о реализуемом товаре [18:01:00]line ОКРУГЛЕНИЕ: -0.51 [18:01:00]line ИТОГО: 300.00 [18:01:00]line Внесено: 300.00 [18:01:00]line СДАЧА: 0.00 [18:01:00]line НСП 1% : 2.66 [18:01:00]line НДС 12% : 31.91 [18:01:00]line Наличными: 300.00 [18:01:00]line Безнал.: 0.00 [18:01:00]line Место: АЗС № 171 "Партнер Нефть" [18:01:00]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:01:00]line СНО: Общий режим [18:01:00]line Чек 388 26.10.2024 18:00 [18:01:00]line Смена: 543 ФФД: 1.0 [18:01:00]line ЗНМ: 0300000109 [18:01:00]line РНМ: 0000000000091777 [18:01:00]line Версия ККМ: 001 [18:01:00]line ФМ: 0000000000871756 [18:01:00]line ФД: 201626 [18:01:00]line ФПД: 83369403206394 [18:01:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T180059&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201626&fm=83369403206394&tin=02508201610067®Number=0000000000091777&sum=30000 [18:01:01]OFD Sender: Processing packet 201626 [packets to send 112, broken 111] [18:01:01]ProducePacketName [18:01:01]name=ofd_packets/00201626 [18:01:01]OFD Sender: To server: pG, [18:01:01]CommunicateWithHost lk.salyk.kg:30040 [18:01:01]ConnectInit lk.salyk.kg [18:01:01]written 0, free lines is 4095 [18:01:01]Connected sock=10 [18:01:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 03 F6 07 01 74 D8 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 33 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 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 77 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 84 01 00 00 F4 03 04 00 5B 2E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9A 13 03 00 35 04 06 00 4B D2 F3 A9 CA FA E8 38 51 61 F5 D6 0F 45 [18:01:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 97 8A 47 00 B2 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 38 37 31 37 35 36 10 04 04 00 9A 13 03 00 F4 03 04 00 04 DA 1C 67 B6 04 01 00 00 2D 15 0B 39 88 B0 5A D5 [18:01:01]CommunicateWithHost err = 0 [18:01:01]CheckOFDResponse [18:01:01]1017 (14) - 77093643461234 [18:01:01]1041 (16) - 0000000000871756 [18:01:01]1040 (4) - 201626 [18:01:01]1012 (4) - 26.10.2024 12:01 [18:01:01]1206 (1) - 0 [18:01:01]OFD Sender: Remove packet 201626 [18:01:01]ProducePacketName [18:01:01]name=ofd_packets/00201626 [18:01:01]NVStorageDeleteData [18:01:01]Write to MH i2c: 01 00 00 90 05 95 [18:01:01]Write i2c OK [18:01:01]MH_I2C_Read... [18:01:01]Read from MH i2c: 01 [18:01:01]MH_I2C_Read... [18:01:01]Read from MH i2c: 01 07 00 [18:01:01]MH_I2C_Read... [18:01:01]Read from MH i2c: 01 07 00 90 05 00 00 00 00 00 A2 0C 4A [18:01:01]RasterBufferAndPrint [18:01:01]line [18:01:01]line [18:01:01]line [18:01:01]line [18:01:01]line [18:01:01]written 0, free lines is 3240 [18:01:01]MH_Cut [18:01:01]Write to MH i2c: D1 01 00 97 05 01 6E [18:01:01]Write i2c OK [18:01:01]MH_I2C_Read... [18:01:01]Read from MH i2c: D1 [18:01:01]MH_I2C_Read... [18:01:01]Read from MH i2c: D1 01 00 [18:01:01]MH_I2C_Read... [18:01:01]Read from MH i2c: D1 01 00 97 05 00 6D [18:01:01]Write to MH i2c: 01 00 00 98 05 9D [18:01:01]Write i2c OK [18:01:01]MH_I2C_Read... [18:01:01]OFD Sender: No OFD packet to send [18:01:02]*** Cut start [18:01:02]*** Purtial cut [18:01:02]*** CUTSNS_PIN = 0 [18:01:02]*** Stage 1: CUTSNS_PIN = 1 [18:01:04]Read from MH i2c: 01 [18:01:04]MH_I2C_Read... [18:01:04]*** Stop cut motor [18:01:04]*** Cut end [18:01:04]Read from MH i2c: 01 07 00 [18:01:04]MH_I2C_Read... [18:01:04]Read from MH i2c: 01 07 00 98 05 00 00 00 00 00 FF 0F B2 [18:01:04]process_action close_receipt done [18:01:04]requested_data is exist [18:01:04]produce_requested_data [18:01:04]requested_item fm.sn is exist - process it [18:01:04]wFMCommunicate request_size=4 [18:01:04]MH_SAM_APDU [18:01:04]CAPDU: 80 11 00 00 [18:01:04]Write to MH i2c: E2 08 00 99 05 80 11 00 00 00 00 00 00 18 [18:01:04]Write i2c OK [18:01:04]MH_I2C_Read... [18:01:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:04]Read from MH i2c: E2 [18:01:04]MH_I2C_Read... [18:01:04]Read from MH i2c: E2 17 00 [18:01:04]MH_I2C_Read... [18:01:04]Read from MH i2c: E2 17 00 99 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6D [18:01:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:01:04]wFMCommunicate OK [18:01:04]requested_item fd.num is exist - process it [18:01:04]SAM_PROTO_GetFieldsCounters [18:01:04]wFMCommunicate request_size=4 [18:01:04]MH_SAM_APDU [18:01:04]CAPDU: 80 13 00 00 [18:01:04]Write to MH i2c: E2 08 00 9A 05 80 13 00 00 00 00 00 00 1B [18:01:04]Write i2c OK [18:01:04]MH_I2C_Read... [18:01:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:04]Read from MH i2c: E2 [18:01:04]MH_I2C_Read... [18:01:04]Read from MH i2c: E2 62 00 [18:01:04]MH_I2C_Read... [18:01:04]Read from MH i2c: E2 62 00 9A 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9A 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 84 01 00 00 5E 04 04 00 84 01 00 00 57 04 04 00 85 01 00 00 19 04 04 00 00 00 00 00 90 00 A4 [18:01:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9A 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 84 01 00 00 5E 04 04 00 84 01 00 00 57 04 04 00 85 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:01:04]wFMCommunicate OK [18:01:04]SAM_PROTO_GetFieldsCounters done [18:01:04]requested_item shift.num is exist - process it [18:01:04]requested_item shift.opened is exist - process it [18:01:04]req_shift_opened [18:01:04]FM_GetShiftState [18:01:04]SAM_PROTO_GetShiftState [18:01:04]wFMCommunicate request_size=4 [18:01:04]MH_SAM_APDU [18:01:04]CAPDU: 80 13 01 00 [18:01:04]Write to MH i2c: E2 08 00 9B 05 80 13 01 00 00 00 00 00 1D [18:01:04]Write i2c OK [18:01:04]MH_I2C_Read... [18:01:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:04]Read from MH i2c: E2 [18:01:04]MH_I2C_Read... [18:01:04]Read from MH i2c: E2 0E 00 [18:01:04]MH_I2C_Read... [18:01:04]Read from MH i2c: E2 0E 00 9B 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 2C [18:01:04]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [18:01:04]wFMCommunicate OK [18:01:04]SAM_PROTO_GetShiftState done [18:01:04]FM_GetShiftState done [18:01:04]req_shift_opened done [18:01:04]requested_item shift.open_date is exist - process it [18:01:04]req_shift_open_date [18:01:04]req_shift_open_date done [18:01:04]produce_requested_data done [18:01:04]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201626,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [18:01:04]process_action_free close_receipt [18:01:04]json_value_free [18:01:04]json_value_free done [18:01:04]process_json_proto returns [18:01:04]Send response to host [18:01:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201626,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [18:01:04]free response buf [18:01:04]execute_script done [18:01:04]execute_script returns [18:01:04]free content buf [18:01:04]Sock 9.Close socket [18:01:04]Sock 9.Thread stoped [18:01:06]OFD Sender: No OFD packet to send [18:01:11]OFD Sender: No OFD packet to send [18:01:17]OFD Sender: No OFD packet to send [18:01:20]accept exits with 7 [18:01:20]New connection [18:01:20]New thread 3067280740 created [18:01:20]Thread 3067424100 joined [18:01:20]Waiting for new connection... [18:01:20] Sock 7.Parse request [18:01:20]Sock 7.Check first char [18:01:20]Sock 7.First char is OK [18:01:20]request: POST /json_proto HTTP/1.0 [18:01:20]Method: POST [18:01:20]URL: /json_proto [18:01:20]Method is POST - this is cgi request [18:01:20]url: /json_proto [18:01:20]query_string will be loaded in cgi processing [18:01:20]execute_cgi json_proto POST (null) [18:01:20]execute_cgi path=json_proto method=POST [18:01:20]POST find Content-Length [18:01:20]Host: 172.17.63.195:8080 [18:01:20]Content-Length: 677 [18:01:20]Content-Type: application/json [18:01:20] [18:01:20]POST finish read [18:01:20]Found Content-Length = 677 [18:01:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:20]execute_script... [18:01: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)449383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:20]POST & json_proto [18:01:20]process_json_proto [18:01:20]json parsed OK: [18:01:20]protocol is kg_v1.0 [18:01:20]action value=close_receipt [18:01:20]process_action close_receipt [18:01:20]cmd_close_receipt [18:01:20]MH_GetDate [18:01:20]Write to MH i2c: F0 00 00 9C 05 90 [18:01:20]Write i2c OK [18:01:20]MH_I2C_Read... [18:01:20]Read from MH i2c: F0 [18:01:20]MH_I2C_Read... [18:01:20]Read from MH i2c: F0 09 00 [18:01:20]MH_I2C_Read... [18:01:20]Read from MH i2c: F0 09 00 9C 05 00 71 2E 1D 67 68 46 19 67 EA [18:01:20]GetLastDocTimeStamp 1729965659 [18:01:20]current date 1729965681 [18:01:20]FM_GetShiftState [18:01:20]SAM_PROTO_GetShiftState [18:01:20]wFMCommunicate request_size=4 [18:01:20]MH_SAM_APDU [18:01:20]CAPDU: 80 13 01 00 [18:01:20]Write to MH i2c: E2 08 00 9D 05 80 13 01 00 00 00 00 00 1F [18:01:20]Write i2c OK [18:01:20]MH_I2C_Read... [18:01:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:20]Read from MH i2c: E2 [18:01:20]MH_I2C_Read... [18:01:20]Read from MH i2c: E2 0E 00 [18:01:20]MH_I2C_Read... [18:01:20]Read from MH i2c: E2 0E 00 9D 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 2E [18:01:20]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [18:01:20]wFMCommunicate OK [18:01:20]SAM_PROTO_GetShiftState done [18:01:20]FM_GetShiftState done [18:01:20]opened in 1729900879 [18:01:20]opened+sec_in_day 1729987279 [18:01:20]quantity*price = 30038 [18:01:20]sum+1 = 30039 [18:01:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 389 26.10.2024 18:01 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201627 ФПД: 65449323180247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T180121&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201627&fm=65449323180247&tin=02508201610067®Number=0000000000091777&sum=30000 [18:01:21]StoreToDocumentArchive [18:01:21]shift 543 fd 201627 [18:01:21]save to /storage/0543/doc_00201627 [18:01:21]save last doc name /storage/0543/doc_00201627 to /storage/kkm_last_doc_name [18:01:21]save OK [18:01:21]Clear old archive folders... [18:01:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:01:21]tlvbuf is 01FC6CE0 [18:01:21]SAM_PROTO_ClearQueue [18:01:21]wFMCommunicate request_size=4 [18:01:21]MH_SAM_APDU [18:01:21]CAPDU: 80 09 00 00 [18:01:21]Write to MH i2c: E2 08 00 AA 05 80 09 00 00 00 00 00 00 21 [18:01:21]Write i2c OK [18:01:21]MH_I2C_Read... [18:01:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:21]Read from MH i2c: E2 [18:01:21]MH_I2C_Read... [18:01:21]Read from MH i2c: E2 03 00 [18:01:21]MH_I2C_Read... [18:01:21]Read from MH i2c: E2 03 00 AA 05 00 90 00 23 [18:01:21]RAPDU: 90 00 [18:01:21]wFMCommunicate OK [18:01:21]SAM_PROTO_ClearQueue done [18:01:21]KKMCreateOFDPacket [18:01:21]OFDProtocolAddRootSTLVToBuf [18:01:21]FM_MakeSignedData [18:01:21]FM_MakeSignedData [18:01:21]SAM_PROTO_SignData [18:01:21]wFMCommunicate request_size=4 [18:01:21]MH_SAM_APDU [18:01:21]CAPDU: 80 0D 01 02 [18:01:21]Write to MH i2c: E2 08 00 AB 05 80 0D 01 02 00 00 00 00 29 [18:01:21]Write i2c OK [18:01:21]MH_I2C_Read... [18:01:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:21]Read from MH i2c: E2 [18:01:21]MH_I2C_Read... [18:01:21]Read from MH i2c: E2 03 00 [18:01:21]MH_I2C_Read... [18:01:21]Read from MH i2c: E2 03 00 AB 05 00 90 00 24 [18:01:21]RAPDU: 90 00 [18:01:21]wFMCommunicate OK [18:01:21]wFMCommunicate request_size=255 [18:01:21]MH_SAM_APDU [18:01: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 71 2E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9B 13 03 00 35 04 06 00 3B [18:01:21]Write to MH i2c: E2 02 01 AC 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 71 2E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9B 13 03 00 35 04 06 00 3B 00 00 67 [18:01:21]Write i2c OK [18:01:21]MH_I2C_Read... [18:01:22]OFD Sender: No OFD packet to send [18:01:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:22]Read from MH i2c: E2 [18:01:22]MH_I2C_Read... [18:01:22]Read from MH i2c: E2 03 00 [18:01:22]MH_I2C_Read... [18:01:22]Read from MH i2c: E2 03 00 AC 05 00 90 00 25 [18:01:22]RAPDU: 90 00 [18:01:22]wFMCommunicate OK [18:01:22]wFMCommunicate request_size=10 [18:01:22]MH_SAM_APDU [18:01:22]CAPDU: 80 0D 02 02 05 86 9B A8 B0 D7 [18:01:22]Write to MH i2c: E2 0D 00 AD 05 80 0D 02 02 05 00 86 9B A8 B0 D7 00 00 86 [18:01:22]Write i2c OK [18:01:22]MH_I2C_Read... [18:01:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:22]Read from MH i2c: E2 [18:01:22]MH_I2C_Read... [18:01:22]Read from MH i2c: E2 03 00 [18:01:22]MH_I2C_Read... [18:01:22]Read from MH i2c: E2 03 00 AD 05 00 90 00 26 [18:01:22]RAPDU: 90 00 [18:01:22]wFMCommunicate OK [18:01:22]wFMCommunicate request_size=4 [18:01:22]MH_SAM_APDU [18:01:22]CAPDU: 80 0D 03 02 [18:01:22]Write to MH i2c: E2 08 00 AE 05 80 0D 03 02 00 00 00 00 2E [18:01:22]Write i2c OK [18:01:22]MH_I2C_Read... [18:01:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:22]Read from MH i2c: E2 [18:01:22]MH_I2C_Read... [18:01:22]Read from MH i2c: E2 0B 00 [18:01:22]MH_I2C_Read... [18:01:22]Read from MH i2c: E2 0B 00 AE 05 00 F9 A4 08 10 4D E7 4F CA 90 00 31 [18:01:22]RAPDU: F9 A4 08 10 4D E7 4F CA 90 00 [18:01:22]wFMCommunicate OK [18:01:22]SAM_PROTO_SignData done [18:01:22]FM_MakeSignedData done [18:01:22]CreateOFDProtocolMessage [18:01:22]wFMCommunicate request_size=4 [18:01:22]MH_SAM_APDU [18:01:22]CAPDU: 80 11 00 00 [18:01:22]Write to MH i2c: E2 08 00 AF 05 80 11 00 00 00 00 00 00 2E [18:01:22]Write i2c OK [18:01:22]MH_I2C_Read... [18:01:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:22]Read from MH i2c: E2 [18:01:22]MH_I2C_Read... [18:01:22]Read from MH i2c: E2 17 00 [18:01:22]MH_I2C_Read... [18:01:22]Read from MH i2c: E2 17 00 AF 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 83 [18:01:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:01:22]wFMCommunicate OK [18:01:22]CreateOFDProtocolMessage done [18:01:22]OFDSenderStorePacket 201627 [18:01:22]StoreOFDPacket docnum=201627 [18:01:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 7E EE 07 01 83 CE 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 71 2E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9B 13 03 00 35 04 06 00 3B 86 9B A8 B0 D7 F9 A4 08 10 4D E7 4F CA [18:01:22]CheckFolder [18:01:22]dirname=/storage/ofd_packets [18:01:22]CheckFolder done [18:01:22]ProducePacketName [18:01:22]name=ofd_packets/00201627 [18:01:22]NVStorageSaveData ofd_packets/00201627 [18:01:22]File name is /storage/ofd_packets/00201627 [18:01:22]Write 301 bytes [18:01:22]NVStorageSaveData done [18:01:22]OFDSenderStorePacket done [18:01:22]KKMCreateOFDPacket done [18:01:22]NVStorageSaveData kkm_last_timestamp [18:01:22]File name is /storage/kkm_last_timestamp [18:01:22]Write 4 bytes [18:01:22]NVStorageSaveData done [18:01:22]ExternCall_PrintAddStr [18:01:22]wPrintStart [18:01:22]Write to MH i2c: 01 00 00 B0 05 B5 [18:01:22]Write i2c OK [18:01:22]MH_I2C_Read... [18:01:22]Read from MH i2c: 01 [18:01:22]MH_I2C_Read... [18:01:22]Read from MH i2c: 01 07 00 [18:01:22]MH_I2C_Read... [18:01:22]Read from MH i2c: 01 07 00 B0 05 00 00 00 00 00 FF 0F CA [18:01:22]RasterBufferAndPrint [18:01:22]line Счет N : (1)449383 [18:01:22]line ИНН: 02508201610067 [18:01:22]line Контрольно-Кассовый Чек [18:01:22]line ПРОДАЖА [18:01:22]line ТРК (МРК, ГНК) : 41 [18:01:22]line Товар: 2710124130 [18:01:22]line Аи-92-К-2 [18:01:22]line 4.490 * 66.90 [18:01:22]line = 300.38 [18:01:22]line НДС 12% НСП 1% [18:01:22]line > о реализуемом товаре [18:01:22]line ОКРУГЛЕНИЕ: -0.38 [18:01:22]line ИТОГО: 300.00 [18:01:22]line Внесено: 300.00 [18:01:22]line СДАЧА: 0.00 [18:01:22]line НСП 1% : 2.66 [18:01:22]line НДС 12% : 31.90 [18:01:22]line Наличными: 300.00 [18:01:22]line Безнал.: 0.00 [18:01:22]line Место: АЗС № 171 "Партнер Нефть" [18:01:22]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:01:22]line СНО: Общий режим [18:01:22]line Чек 389 26.10.2024 18:01 [18:01:22]line Смена: 543 ФФД: 1.0 [18:01:22]line ЗНМ: 0300000109 [18:01:22]line РНМ: 0000000000091777 [18:01:22]line Версия ККМ: 001 [18:01:22]line ФМ: 0000000000871756 [18:01:22]line ФД: 201627 [18:01:22]line ФПД: 65449323180247 [18:01:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T180121&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201627&fm=65449323180247&tin=02508201610067®Number=0000000000091777&sum=30000 [18:01:22]OFD Sender: Processing packet 201627 [packets to send 112, broken 111] [18:01:22]ProducePacketName [18:01:22]name=ofd_packets/00201627 [18:01:22]OFD Sender: To server: pG, [18:01:22]CommunicateWithHost lk.salyk.kg:30040 [18:01:22]ConnectInit lk.salyk.kg [18:01:22]written 0, free lines is 4095 [18:01:22]Connected sock=10 [18:01:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 7E EE 07 01 83 CE 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 71 2E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9B 13 03 00 35 04 06 00 3B 86 9B A8 B0 D7 F9 A4 08 10 4D E7 4F CA [18:01:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 DD 42 47 00 9B 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9B 13 03 00 F4 03 04 00 19 DA 1C 67 B6 04 01 00 00 C9 9D 6C 9B F6 19 AC 63 [18:01:22]CommunicateWithHost err = 0 [18:01:22]CheckOFDResponse [18:01:22]1017 (14) - 77093643461234 [18:01:22]1041 (16) - 0000000000871756 [18:01:22]1040 (4) - 201627 [18:01:22]1012 (4) - 26.10.2024 12:01 [18:01:22]1206 (1) - 0 [18:01:22]OFD Sender: Remove packet 201627 [18:01:22]ProducePacketName [18:01:22]name=ofd_packets/00201627 [18:01:22]NVStorageDeleteData [18:01:22]Write to MH i2c: 01 00 00 DB 05 E0 [18:01:23]Write i2c OK [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: 01 [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: 01 07 00 [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: 01 07 00 DB 05 00 00 00 00 00 A8 0C 9B [18:01:23]RasterBufferAndPrint [18:01:23]line [18:01:23]line [18:01:23]line [18:01:23]line [18:01:23]line [18:01:23]written 0, free lines is 3244 [18:01:23]MH_Cut [18:01:23]Write to MH i2c: D1 01 00 E2 05 01 B9 [18:01:23]Write i2c OK [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: D1 [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: D1 01 00 [18:01:23]MH_I2C_Read... [18:01:23]Read from MH i2c: D1 01 00 E2 05 00 B8 [18:01:23]Write to MH i2c: 01 00 00 E3 05 E8 [18:01:23]Write i2c OK [18:01:23]MH_I2C_Read... [18:01:23]OFD Sender: No OFD packet to send [18:01:23]*** Cut start [18:01:23]*** Purtial cut [18:01:23]*** Stage 1: CUTSNS_PIN = 1 [18:01:24]Read from MH i2c: 01 [18:01:24]MH_I2C_Read... [18:01:24]*** Stop cut motor [18:01:24]*** Cut end [18:01:24]Read from MH i2c: 01 07 00 [18:01:24]MH_I2C_Read... [18:01:24]Read from MH i2c: 01 07 00 E3 05 00 00 00 00 00 FF 0F FD [18:01:24]process_action close_receipt done [18:01:24]requested_data is exist [18:01:24]produce_requested_data [18:01:24]requested_item fm.sn is exist - process it [18:01:24]wFMCommunicate request_size=4 [18:01:24]MH_SAM_APDU [18:01:24]CAPDU: 80 11 00 00 [18:01:24]Write to MH i2c: E2 08 00 E4 05 80 11 00 00 00 00 00 00 63 [18:01:24]Write i2c OK [18:01:24]MH_I2C_Read... [18:01:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:24]Read from MH i2c: E2 [18:01:24]MH_I2C_Read... [18:01:24]Read from MH i2c: E2 17 00 [18:01:24]MH_I2C_Read... [18:01:24]Read from MH i2c: E2 17 00 E4 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B8 [18:01:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:01:24]wFMCommunicate OK [18:01:24]requested_item fd.num is exist - process it [18:01:24]SAM_PROTO_GetFieldsCounters [18:01:24]wFMCommunicate request_size=4 [18:01:24]MH_SAM_APDU [18:01:24]CAPDU: 80 13 00 00 [18:01:24]Write to MH i2c: E2 08 00 E5 05 80 13 00 00 00 00 00 00 66 [18:01:24]Write i2c OK [18:01:24]MH_I2C_Read... [18:01:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:24]Read from MH i2c: E2 [18:01:24]MH_I2C_Read... [18:01:24]Read from MH i2c: E2 62 00 [18:01:24]MH_I2C_Read... [18:01:24]Read from MH i2c: E2 62 00 E5 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9B 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 85 01 00 00 5E 04 04 00 85 01 00 00 57 04 04 00 86 01 00 00 19 04 04 00 00 00 00 00 90 00 F3 [18:01:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9B 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 85 01 00 00 5E 04 04 00 85 01 00 00 57 04 04 00 86 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:01:24]wFMCommunicate OK [18:01:24]SAM_PROTO_GetFieldsCounters done [18:01:24]requested_item shift.num is exist - process it [18:01:24]requested_item shift.opened is exist - process it [18:01:24]req_shift_opened [18:01:24]FM_GetShiftState [18:01:24]SAM_PROTO_GetShiftState [18:01:24]wFMCommunicate request_size=4 [18:01:24]MH_SAM_APDU [18:01:24]CAPDU: 80 13 01 00 [18:01:24]Write to MH i2c: E2 08 00 E6 05 80 13 01 00 00 00 00 00 68 [18:01:24]Write i2c OK [18:01:24]MH_I2C_Read... [18:01:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:24]Read from MH i2c: E2 [18:01:24]MH_I2C_Read... [18:01:24]Read from MH i2c: E2 0E 00 [18:01:24]MH_I2C_Read... [18:01:24]Read from MH i2c: E2 0E 00 E6 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 77 [18:01:24]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [18:01:24]wFMCommunicate OK [18:01:24]SAM_PROTO_GetShiftState done [18:01:24]FM_GetShiftState done [18:01:24]req_shift_opened done [18:01:24]requested_item shift.open_date is exist - process it [18:01:24]req_shift_open_date [18:01:24]req_shift_open_date done [18:01:24]produce_requested_data done [18:01:24]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201627,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [18:01:24]process_action_free close_receipt [18:01:24]json_value_free [18:01:24]json_value_free done [18:01:24]process_json_proto returns [18:01:24]Send response to host [18:01:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201627,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [18:01:24]free response buf [18:01:24]execute_script done [18:01:24]execute_script returns [18:01:24]free content buf [18:01:24]Sock 7.Close socket [18:01:24]Sock 7.Thread stoped [18:01:28]OFD Sender: No OFD packet to send [18:01:33]OFD Sender: No OFD packet to send [18:01:38]OFD Sender: No OFD packet to send [18:01:43]OFD Sender: No OFD packet to send [18:01:48]OFD Sender: No OFD packet to send [18:01:53]OFD Sender: No OFD packet to send [18:01:58]OFD Sender: No OFD packet to send [18:02:03]OFD Sender: No OFD packet to send [18:02:08]OFD Sender: No OFD packet to send [18:02:13]OFD Sender: No OFD packet to send [18:02:18]OFD Sender: No OFD packet to send [18:02:23]OFD Sender: No OFD packet to send [18:02:28]OFD Sender: No OFD packet to send [18:02:33]OFD Sender: No OFD packet to send [18:02:38]OFD Sender: No OFD packet to send [18:02:43]OFD Sender: No OFD packet to send [18:02:48]OFD Sender: No OFD packet to send [18:02:53]OFD Sender: No OFD packet to send [18:02:58]OFD Sender: No OFD packet to send [18:03:03]OFD Sender: No OFD packet to send [18:03:08]OFD Sender: No OFD packet to send [18:03:13]OFD Sender: No OFD packet to send [18:03:18]OFD Sender: No OFD packet to send [18:03:23]OFD Sender: No OFD packet to send [18:03:28]OFD Sender: No OFD packet to send [18:03:33]OFD Sender: No OFD packet to send [18:03:38]OFD Sender: No OFD packet to send [18:03:43]OFD Sender: No OFD packet to send [18:03:43]accept exits with 9 [18:03:43]New connection [18:03:43]New thread 3067424100 created [18:03:43]Thread 3067280740 joined [18:03:43]Waiting for new connection... [18:03:43] Sock 9.Parse request [18:03:43]Sock 9.Check first char [18:03:43]Sock 9.First char is OK [18:03:43]request: POST /json_proto HTTP/1.0 [18:03:43]Method: POST [18:03:43]URL: /json_proto [18:03:43]Method is POST - this is cgi request [18:03:43]url: /json_proto [18:03:43]query_string will be loaded in cgi processing [18:03:43]execute_cgi json_proto POST (null) [18:03:43]execute_cgi path=json_proto method=POST [18:03:43]POST find Content-Length [18:03:43]Host: 172.17.63.195:8080 [18:03:43]Content-Length: 677 [18:03:43]Content-Type: application/json [18:03:43] [18:03:43]POST finish read [18:03:43]Found Content-Length = 677 [18:03:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 2.700, "sum" : 200.34, "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" ] } } [18:03:43]execute_script... [18: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)449384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 2.700, "sum" : 200.34, "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" ] } } [18:03:43]POST & json_proto [18:03:43]process_json_proto [18:03:43]json parsed OK: [18:03:43]protocol is kg_v1.0 [18:03:43]action value=close_receipt [18:03:43]process_action close_receipt [18:03:43]cmd_close_receipt [18:03:43]MH_GetDate [18:03:43]Write to MH i2c: F0 00 00 E7 05 DB [18:03:43]Write i2c OK [18:03:43]MH_I2C_Read... [18:03:43]Read from MH i2c: F0 [18:03:43]MH_I2C_Read... [18:03:43]Read from MH i2c: F0 09 00 [18:03:43]MH_I2C_Read... [18:03:43]Read from MH i2c: F0 09 00 E7 05 00 00 2F 1D 67 68 46 19 67 C5 [18:03:43]GetLastDocTimeStamp 1729965681 [18:03:43]current date 1729965824 [18:03:43]FM_GetShiftState [18:03:43]SAM_PROTO_GetShiftState [18:03:43]wFMCommunicate request_size=4 [18:03:43]MH_SAM_APDU [18:03:43]CAPDU: 80 13 01 00 [18:03:43]Write to MH i2c: E2 08 00 E8 05 80 13 01 00 00 00 00 00 6A [18:03:43]Write i2c OK [18:03:43]MH_I2C_Read... [18:03:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:43]Read from MH i2c: E2 [18:03:43]MH_I2C_Read... [18:03:43]Read from MH i2c: E2 0E 00 [18:03:43]MH_I2C_Read... [18:03:43]Read from MH i2c: E2 0E 00 E8 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 79 [18:03:43]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [18:03:43]wFMCommunicate OK [18:03:43]SAM_PROTO_GetShiftState done [18:03:43]FM_GetShiftState done [18:03:43]opened in 1729900879 [18:03:43]opened+sec_in_day 1729987279 [18:03:43]quantity*price = 20034 [18:03:43]sum+1 = 20035 [18:03:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 390 26.10.2024 18:03 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201628 ФПД: 28306804222813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T180344&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201628&fm=28306804222813&tin=02508201610067®Number=0000000000091777&sum=20000 [18:03:45]StoreToDocumentArchive [18:03:45]shift 543 fd 201628 [18:03:45]save to /storage/0543/doc_00201628 [18:03:45]save last doc name /storage/0543/doc_00201628 to /storage/kkm_last_doc_name [18:03:45]save OK [18:03:45]Clear old archive folders... [18:03:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:03:45]tlvbuf is 01FB1720 [18:03:45]SAM_PROTO_ClearQueue [18:03:45]wFMCommunicate request_size=4 [18:03:45]MH_SAM_APDU [18:03:45]CAPDU: 80 09 00 00 [18:03:45]Write to MH i2c: E2 08 00 F5 05 80 09 00 00 00 00 00 00 6C [18:03:45]Write i2c OK [18:03:45]MH_I2C_Read... [18:03:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:45]Read from MH i2c: E2 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: E2 03 00 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: E2 03 00 F5 05 00 90 00 6E [18:03:45]RAPDU: 90 00 [18:03:45]wFMCommunicate OK [18:03:45]SAM_PROTO_ClearQueue done [18:03:45]KKMCreateOFDPacket [18:03:45]OFDProtocolAddRootSTLVToBuf [18:03:45]FM_MakeSignedData [18:03:45]FM_MakeSignedData [18:03:45]SAM_PROTO_SignData [18:03:45]wFMCommunicate request_size=4 [18:03:45]MH_SAM_APDU [18:03:45]CAPDU: 80 0D 01 02 [18:03:45]Write to MH i2c: E2 08 00 F6 05 80 0D 01 02 00 00 00 00 74 [18:03:45]Write i2c OK [18:03:45]MH_I2C_Read... [18:03:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:45]Read from MH i2c: E2 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: E2 03 00 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: E2 03 00 F6 05 00 90 00 6F [18:03:45]RAPDU: 90 00 [18:03:45]wFMCommunicate OK [18:03:45]wFMCommunicate request_size=255 [18:03:45]MH_SAM_APDU [18:03: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 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 86 01 00 00 F4 03 04 00 00 2F 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9C 13 03 00 35 04 06 00 19 [18:03:45]Write to MH i2c: E2 02 01 F7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 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 86 01 00 00 F4 03 04 00 00 2F 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9C 13 03 00 35 04 06 00 19 00 00 D0 [18:03:45]Write i2c OK [18:03:45]MH_I2C_Read... [18:03:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:45]Read from MH i2c: E2 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: E2 03 00 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: E2 03 00 F7 05 00 90 00 70 [18:03:45]RAPDU: 90 00 [18:03:45]wFMCommunicate OK [18:03:45]wFMCommunicate request_size=10 [18:03:45]MH_SAM_APDU [18:03:45]CAPDU: 80 0D 02 02 05 BE B1 02 AB 5D [18:03:45]Write to MH i2c: E2 0D 00 F8 05 80 0D 02 02 05 00 BE B1 02 AB 5D 00 00 FA [18:03:45]Write i2c OK [18:03:45]MH_I2C_Read... [18:03:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:45]Read from MH i2c: E2 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: E2 03 00 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: E2 03 00 F8 05 00 90 00 71 [18:03:45]RAPDU: 90 00 [18:03:45]wFMCommunicate OK [18:03:45]wFMCommunicate request_size=4 [18:03:45]MH_SAM_APDU [18:03:45]CAPDU: 80 0D 03 02 [18:03:45]Write to MH i2c: E2 08 00 F9 05 80 0D 03 02 00 00 00 00 79 [18:03:45]Write i2c OK [18:03:45]MH_I2C_Read... [18:03:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:45]Read from MH i2c: E2 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: E2 0B 00 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: E2 0B 00 F9 05 00 46 87 99 BC B6 E4 90 83 90 00 49 [18:03:45]RAPDU: 46 87 99 BC B6 E4 90 83 90 00 [18:03:45]wFMCommunicate OK [18:03:45]SAM_PROTO_SignData done [18:03:45]FM_MakeSignedData done [18:03:45]CreateOFDProtocolMessage [18:03:45]wFMCommunicate request_size=4 [18:03:45]MH_SAM_APDU [18:03:45]CAPDU: 80 11 00 00 [18:03:45]Write to MH i2c: E2 08 00 FA 05 80 11 00 00 00 00 00 00 79 [18:03:45]Write i2c OK [18:03:45]MH_I2C_Read... [18:03:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:45]Read from MH i2c: E2 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: E2 17 00 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: E2 17 00 FA 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CE [18:03:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:03:45]wFMCommunicate OK [18:03:45]CreateOFDProtocolMessage done [18:03:45]OFDSenderStorePacket 201628 [18:03:45]StoreOFDPacket docnum=201628 [18:03:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 0C 47 07 01 D5 90 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 33 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 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 86 01 00 00 F4 03 04 00 00 2F 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9C 13 03 00 35 04 06 00 19 BE B1 02 AB 5D 46 87 99 BC B6 E4 90 83 [18:03:45]CheckFolder [18:03:45]dirname=/storage/ofd_packets [18:03:45]CheckFolder done [18:03:45]ProducePacketName [18:03:45]name=ofd_packets/00201628 [18:03:45]NVStorageSaveData ofd_packets/00201628 [18:03:45]File name is /storage/ofd_packets/00201628 [18:03:45]Write 301 bytes [18:03:45]NVStorageSaveData done [18:03:45]OFDSenderStorePacket done [18:03:45]KKMCreateOFDPacket done [18:03:45]NVStorageSaveData kkm_last_timestamp [18:03:45]File name is /storage/kkm_last_timestamp [18:03:45]Write 4 bytes [18:03:45]NVStorageSaveData done [18:03:45]ExternCall_PrintAddStr [18:03:45]wPrintStart [18:03:45]Write to MH i2c: 01 00 00 FB 05 00 [18:03:45]Write i2c OK [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: 01 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: 01 07 00 [18:03:45]MH_I2C_Read... [18:03:45]Read from MH i2c: 01 07 00 FB 05 00 00 00 00 00 FF 0F 15 [18:03:45]RasterBufferAndPrint [18:03:45]line Счет N : (1)449384 [18:03:45]line ИНН: 02508201610067 [18:03:45]line Контрольно-Кассовый Чек [18:03:45]line ПРОДАЖА [18:03:45]line ТРК (МРК, ГНК) : 51 [18:03:45]line Товар: 2710124500 [18:03:45]line Аи-95-К-3 [18:03:45]line 2.700 * 74.20 [18:03:45]line = 200.34 [18:03:45]line НДС 12% НСП 1% [18:03:45]line > о реализуемом товаре [18:03:45]line ОКРУГЛЕНИЕ: -0.34 [18:03:45]line ИТОГО: 200.00 [18:03:45]line Внесено: 200.00 [18:03:45]line СДАЧА: 0.00 [18:03:45]line НСП 1% : 1.77 [18:03:45]line НДС 12% : 21.27 [18:03:45]line Наличными: 200.00 [18:03:45]line Безнал.: 0.00 [18:03:45]line Место: АЗС № 171 "Партнер Нефть" [18:03:45]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:03:45]line СНО: Общий режим [18:03:45]line Чек 390 26.10.2024 18:03 [18:03:45]line Смена: 543 ФФД: 1.0 [18:03:45]line ЗНМ: 0300000109 [18:03:45]line РНМ: 0000000000091777 [18:03:45]line Версия ККМ: 001 [18:03:45]line ФМ: 0000000000871756 [18:03:45]line ФД: 201628 [18:03:45]line ФПД: 28306804222813 [18:03:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T180344&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201628&fm=28306804222813&tin=02508201610067®Number=0000000000091777&sum=20000 [18:03:45]OFD Sender: Processing packet 201628 [packets to send 112, broken 111] [18:03:45]ProducePacketName [18:03:45]name=ofd_packets/00201628 [18:03:45]OFD Sender: To server: pG, [18:03:45]CommunicateWithHost lk.salyk.kg:30040 [18:03:45]ConnectInit lk.salyk.kg [18:03:45]written 0, free lines is 4095 [18:03:46]Connected sock=10 [18:03:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 0C 47 07 01 D5 90 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 33 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 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 86 01 00 00 F4 03 04 00 00 2F 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9C 13 03 00 35 04 06 00 19 BE B1 02 AB 5D 46 87 99 BC B6 E4 90 83 [18:03:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E9 E5 47 00 DF F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9C 13 03 00 F4 03 04 00 A8 DA 1C 67 B6 04 01 00 00 FF FD D9 34 01 83 94 59 [18:03:46]CommunicateWithHost err = 0 [18:03:46]CheckOFDResponse [18:03:46]1017 (14) - 77093643461234 [18:03:46]1041 (16) - 0000000000871756 [18:03:46]1040 (4) - 201628 [18:03:46]1012 (4) - 26.10.2024 12:03 [18:03:46]1206 (1) - 0 [18:03:46]OFD Sender: Remove packet 201628 [18:03:46]ProducePacketName [18:03:46]name=ofd_packets/00201628 [18:03:46]NVStorageDeleteData [18:03:46]Write to MH i2c: 01 00 00 26 06 2C [18:03:46]Write i2c OK [18:03:46]MH_I2C_Read... [18:03:46]Read from MH i2c: 01 [18:03:46]MH_I2C_Read... [18:03:46]Read from MH i2c: 01 07 00 [18:03:46]MH_I2C_Read... [18:03:46]Read from MH i2c: 01 07 00 26 06 00 00 00 00 00 95 0C D4 [18:03:46]RasterBufferAndPrint [18:03:46]line [18:03:46]line [18:03:46]line [18:03:46]line [18:03:46]line [18:03:46]written 0, free lines is 3227 [18:03:46]MH_Cut [18:03:46]Write to MH i2c: D1 01 00 2D 06 01 05 [18:03:46]Write i2c OK [18:03:46]MH_I2C_Read... [18:03:46]Read from MH i2c: D1 [18:03:46]MH_I2C_Read... [18:03:46]Read from MH i2c: D1 01 00 [18:03:46]MH_I2C_Read... [18:03:46]Read from MH i2c: D1 01 00 2D 06 00 04 [18:03:46]Write to MH i2c: 01 00 00 2E 06 34 [18:03:46]Write i2c OK [18:03:46]MH_I2C_Read... [18:03:46]OFD Sender: No OFD packet to send [18:03:47]*** Cut start [18:03:47]*** Purtial cut [18:03:47]*** Stage 1: CUTSNS_PIN = 1 [18:03:47]Read from MH i2c: 01 [18:03:47]MH_I2C_Read... [18:03:47]*** Stop cut motor [18:03:47]*** Cut end [18:03:47]Read from MH i2c: 01 07 00 [18:03:47]MH_I2C_Read... [18:03:47]Read from MH i2c: 01 07 00 2E 06 00 00 00 00 00 FF 0F 49 [18:03:47]process_action close_receipt done [18:03:47]requested_data is exist [18:03:47]produce_requested_data [18:03:47]requested_item fm.sn is exist - process it [18:03:47]wFMCommunicate request_size=4 [18:03:47]MH_SAM_APDU [18:03:47]CAPDU: 80 11 00 00 [18:03:47]Write to MH i2c: E2 08 00 2F 06 80 11 00 00 00 00 00 00 AF [18:03:47]Write i2c OK [18:03:47]MH_I2C_Read... [18:03:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:47]Read from MH i2c: E2 [18:03:47]MH_I2C_Read... [18:03:47]Read from MH i2c: E2 17 00 [18:03:47]MH_I2C_Read... [18:03:47]Read from MH i2c: E2 17 00 2F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 04 [18:03:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:03:47]wFMCommunicate OK [18:03:47]requested_item fd.num is exist - process it [18:03:47]SAM_PROTO_GetFieldsCounters [18:03:47]wFMCommunicate request_size=4 [18:03:47]MH_SAM_APDU [18:03:47]CAPDU: 80 13 00 00 [18:03:47]Write to MH i2c: E2 08 00 30 06 80 13 00 00 00 00 00 00 B2 [18:03:47]Write i2c OK [18:03:47]MH_I2C_Read... [18:03:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:47]Read from MH i2c: E2 [18:03:47]MH_I2C_Read... [18:03:47]Read from MH i2c: E2 62 00 [18:03:47]MH_I2C_Read... [18:03:47]Read from MH i2c: E2 62 00 30 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9C 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 86 01 00 00 5E 04 04 00 86 01 00 00 57 04 04 00 87 01 00 00 19 04 04 00 00 00 00 00 90 00 43 [18:03:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9C 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 86 01 00 00 5E 04 04 00 86 01 00 00 57 04 04 00 87 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:47]wFMCommunicate OK [18:03:47]SAM_PROTO_GetFieldsCounters done [18:03:47]requested_item shift.num is exist - process it [18:03:47]requested_item shift.opened is exist - process it [18:03:47]req_shift_opened [18:03:47]FM_GetShiftState [18:03:47]SAM_PROTO_GetShiftState [18:03:47]wFMCommunicate request_size=4 [18:03:47]MH_SAM_APDU [18:03:47]CAPDU: 80 13 01 00 [18:03:47]Write to MH i2c: E2 08 00 31 06 80 13 01 00 00 00 00 00 B4 [18:03:47]Write i2c OK [18:03:47]MH_I2C_Read... [18:03:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:47]Read from MH i2c: E2 [18:03:47]MH_I2C_Read... [18:03:47]Read from MH i2c: E2 0E 00 [18:03:47]MH_I2C_Read... [18:03:47]Read from MH i2c: E2 0E 00 31 06 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C3 [18:03:47]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [18:03:47]wFMCommunicate OK [18:03:47]SAM_PROTO_GetShiftState done [18:03:47]FM_GetShiftState done [18:03:47]req_shift_opened done [18:03:47]requested_item shift.open_date is exist - process it [18:03:47]req_shift_open_date [18:03:47]req_shift_open_date done [18:03:47]produce_requested_data done [18:03:47]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201628,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [18:03:47]process_action_free close_receipt [18:03:47]json_value_free [18:03:47]json_value_free done [18:03:47]process_json_proto returns [18:03:47]Send response to host [18:03:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201628,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [18:03:47]free response buf [18:03:47]execute_script done [18:03:47]execute_script returns [18:03:47]free content buf [18:03:47]Sock 9.Close socket [18:03:47]Sock 9.Thread stoped [18:03:51]OFD Sender: No OFD packet to send [18:03:56]OFD Sender: No OFD packet to send [18:04:01]OFD Sender: No OFD packet to send [18:04:06]OFD Sender: No OFD packet to send [18:04:11]OFD Sender: No OFD packet to send [18:04:16]OFD Sender: No OFD packet to send [18:04:21]OFD Sender: No OFD packet to send [18:04:26]OFD Sender: No OFD packet to send [18:04:31]OFD Sender: No OFD packet to send [18:04:36]OFD Sender: No OFD packet to send [18:04:41]OFD Sender: No OFD packet to send [18:04:46]OFD Sender: No OFD packet to send [18:04:51]OFD Sender: No OFD packet to send [18:04:56]OFD Sender: No OFD packet to send [18:05:01]OFD Sender: No OFD packet to send [18:05:06]OFD Sender: No OFD packet to send [18:05:11]OFD Sender: No OFD packet to send [18:05:16]OFD Sender: No OFD packet to send [18:05:21]OFD Sender: No OFD packet to send [18:05:26]OFD Sender: No OFD packet to send [18:05:31]OFD Sender: No OFD packet to send [18:05:36]OFD Sender: No OFD packet to send [18:05:41]OFD Sender: No OFD packet to send [18:05:46]OFD Sender: No OFD packet to send [18:05:51]OFD Sender: No OFD packet to send [18:05:56]OFD Sender: No OFD packet to send [18:06:01]OFD Sender: No OFD packet to send [18:06:06]OFD Sender: No OFD packet to send [18:06:11]OFD Sender: No OFD packet to send [18:06:16]OFD Sender: No OFD packet to send [18:06:21]OFD Sender: No OFD packet to send [18:06:26]OFD Sender: No OFD packet to send [18:06:31]OFD Sender: No OFD packet to send [18:06:36]OFD Sender: No OFD packet to send [18:06:42]OFD Sender: No OFD packet to send [18:06:47]OFD Sender: No OFD packet to send [18:06:52]OFD Sender: No OFD packet to send [18:06:57]OFD Sender: No OFD packet to send [18:07:02]OFD Sender: No OFD packet to send [18:07:07]OFD Sender: No OFD packet to send [18:07:12]OFD Sender: No OFD packet to send [18:07:17]OFD Sender: No OFD packet to send [18:07:22]OFD Sender: No OFD packet to send [18:07:27]OFD Sender: No OFD packet to send [18:07:32]OFD Sender: No OFD packet to send [18:07:37]OFD Sender: No OFD packet to send [18:07:42]OFD Sender: No OFD packet to send [18:07:47]OFD Sender: No OFD packet to send [18:07:52]OFD Sender: No OFD packet to send [18:07:57]OFD Sender: No OFD packet to send [18:08:02]OFD Sender: No OFD packet to send [18:08:06]accept exits with 7 [18:08:06]New connection [18:08:06]New thread 3067280740 created [18:08:06]Thread 3067424100 joined [18:08:06]Waiting for new connection... [18:08:06] Sock 7.Parse request [18:08:06]Sock 7.Check first char [18:08:06]Sock 7.First char is OK [18:08:06]request: POST /json_proto HTTP/1.0 [18:08:06]Method: POST [18:08:06]URL: /json_proto [18:08:06]Method is POST - this is cgi request [18:08:06]url: /json_proto [18:08:06]query_string will be loaded in cgi processing [18:08:06]execute_cgi json_proto POST (null) [18:08:06]execute_cgi path=json_proto method=POST [18:08:06]POST find Content-Length [18:08:06]Host: 172.17.63.195:8080 [18:08:06]Content-Length: 671 [18:08:06]Content-Type: application/json [18:08:06] [18:08:06]POST finish read [18:08:06]Found Content-Length = 671 [18:08:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "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" ] } } [18:08:06]execute_script... [18:08:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "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" ] } } [18:08:06]POST & json_proto [18:08:06]process_json_proto [18:08:06]json parsed OK: [18:08:06]protocol is kg_v1.0 [18:08:06]action value=close_receipt [18:08:06]process_action close_receipt [18:08:06]cmd_close_receipt [18:08:06]MH_GetDate [18:08:06]Write to MH i2c: F0 00 00 32 06 27 [18:08:06]Write i2c OK [18:08:06]MH_I2C_Read... [18:08:06]Read from MH i2c: F0 [18:08:06]MH_I2C_Read... [18:08:06]Read from MH i2c: F0 09 00 [18:08:06]MH_I2C_Read... [18:08:06]Read from MH i2c: F0 09 00 32 06 00 07 30 1D 67 68 46 19 67 19 [18:08:06]GetLastDocTimeStamp 1729965824 [18:08:06]current date 1729966087 [18:08:06]FM_GetShiftState [18:08:06]SAM_PROTO_GetShiftState [18:08:06]wFMCommunicate request_size=4 [18:08:06]MH_SAM_APDU [18:08:06]CAPDU: 80 13 01 00 [18:08:06]Write to MH i2c: E2 08 00 33 06 80 13 01 00 00 00 00 00 B6 [18:08:06]Write i2c OK [18:08:06]MH_I2C_Read... [18:08:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:06]Read from MH i2c: E2 [18:08:06]MH_I2C_Read... [18:08:06]Read from MH i2c: E2 0E 00 [18:08:06]MH_I2C_Read... [18:08:06]Read from MH i2c: E2 0E 00 33 06 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C5 [18:08:06]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [18:08:06]wFMCommunicate OK [18:08:06]SAM_PROTO_GetShiftState done [18:08:06]FM_GetShiftState done [18:08:06]opened in 1729900879 [18:08:06]opened+sec_in_day 1729987279 [18:08:06]quantity*price = 70041 [18:08:06]sum+1 = 70043 [18:08:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 391 26.10.2024 18:08 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201629 ФПД: 127858654823291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T180807&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201629&fm=127858654823291&tin=02508201610067®Number=0000000000091777&sum=70000 [18:08:07]StoreToDocumentArchive [18:08:07]shift 543 fd 201629 [18:08:07]save to /storage/0543/doc_00201629 [18:08:07]save last doc name /storage/0543/doc_00201629 to /storage/kkm_last_doc_name [18:08:07]save OK [18:08:07]Clear old archive folders... [18:08:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:08:07]tlvbuf is 01F98AB0 [18:08:07]SAM_PROTO_ClearQueue [18:08:07]wFMCommunicate request_size=4 [18:08:07]MH_SAM_APDU [18:08:07]CAPDU: 80 09 00 00 [18:08:07]Write to MH i2c: E2 08 00 40 06 80 09 00 00 00 00 00 00 B8 [18:08:07]Write i2c OK [18:08:07]MH_I2C_Read... [18:08:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:08:07]Read from MH i2c: E2 [18:08:07]MH_I2C_Read... [18:08:07]Read from MH i2c: E2 03 00 [18:08:07]MH_I2C_Read... [18:08:07]Read from MH i2c: E2 03 00 40 06 00 90 00 BA [18:08:07]RAPDU: 90 00 [18:08:07]wFMCommunicate OK [18:08:07]SAM_PROTO_ClearQueue done [18:08:07]KKMCreateOFDPacket [18:08:07]OFDProtocolAddRootSTLVToBuf [18:08:07]FM_MakeSignedData [18:08:07]FM_MakeSignedData [18:08:07]SAM_PROTO_SignData [18:08:07]wFMCommunicate request_size=4 [18:08:07]MH_SAM_APDU [18:08:07]CAPDU: 80 0D 01 02 [18:08:07]Write to MH i2c: E2 08 00 41 06 80 0D 01 02 00 00 00 00 C0 [18:08:07]Write i2c OK [18:08:07]MH_I2C_Read... [18:08:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:08:07]Read from MH i2c: E2 [18:08:07]MH_I2C_Read... [18:08:07]Read from MH i2c: E2 03 00 [18:08:07]MH_I2C_Read... [18:08:07]Read from MH i2c: E2 03 00 41 06 00 90 00 BB [18:08:07]RAPDU: 90 00 [18:08:07]wFMCommunicate OK [18:08:07]wFMCommunicate request_size=255 [18:08:07]MH_SAM_APDU [18:08: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 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 87 01 00 00 F4 03 04 00 07 30 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9D 13 03 00 35 04 06 00 [18:08:07]Write to MH i2c: E2 02 01 42 06 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 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 87 01 00 00 F4 03 04 00 07 30 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9D 13 03 00 35 04 06 00 00 00 C9 [18:08:07]Write i2c OK [18:08:07]MH_I2C_Read... [18:08:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:08]Read from MH i2c: E2 [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: E2 03 00 [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: E2 03 00 42 06 00 90 00 BC [18:08:08]RAPDU: 90 00 [18:08:08]wFMCommunicate OK [18:08:08]wFMCommunicate request_size=11 [18:08:08]MH_SAM_APDU [18:08:08]CAPDU: 80 0D 02 02 06 74 49 69 B3 C3 7B [18:08:08]Write to MH i2c: E2 0E 00 43 06 80 0D 02 02 06 00 74 49 69 B3 C3 7B 00 00 E6 [18:08:08]Write i2c OK [18:08:08]MH_I2C_Read... [18:08:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:08]Read from MH i2c: E2 [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: E2 03 00 [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: E2 03 00 43 06 00 90 00 BD [18:08:08]RAPDU: 90 00 [18:08:08]wFMCommunicate OK [18:08:08]wFMCommunicate request_size=4 [18:08:08]MH_SAM_APDU [18:08:08]CAPDU: 80 0D 03 02 [18:08:08]Write to MH i2c: E2 08 00 44 06 80 0D 03 02 00 00 00 00 C5 [18:08:08]Write i2c OK [18:08:08]MH_I2C_Read... [18:08:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:08:08]Read from MH i2c: E2 [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: E2 0B 00 [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: E2 0B 00 44 06 00 87 A5 E2 71 D4 B8 5F D1 90 00 01 [18:08:08]RAPDU: 87 A5 E2 71 D4 B8 5F D1 90 00 [18:08:08]wFMCommunicate OK [18:08:08]SAM_PROTO_SignData done [18:08:08]FM_MakeSignedData done [18:08:08]CreateOFDProtocolMessage [18:08:08]wFMCommunicate request_size=4 [18:08:08]MH_SAM_APDU [18:08:08]CAPDU: 80 11 00 00 [18:08:08]Write to MH i2c: E2 08 00 45 06 80 11 00 00 00 00 00 00 C5 [18:08:08]Write i2c OK [18:08:08]MH_I2C_Read... [18:08:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:08]Read from MH i2c: E2 [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: E2 17 00 [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: E2 17 00 45 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1A [18:08:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:08:08]wFMCommunicate OK [18:08:08]CreateOFDProtocolMessage done [18:08:08]OFDSenderStorePacket 201629 [18:08:08]StoreOFDPacket docnum=201629 [18:08:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 FA 7A 08 01 42 90 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 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 87 01 00 00 F4 03 04 00 07 30 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9D 13 03 00 35 04 06 00 74 49 69 B3 C3 7B 87 A5 E2 71 D4 B8 5F D1 [18:08:08]CheckFolder [18:08:08]dirname=/storage/ofd_packets [18:08:08]CheckFolder done [18:08:08]ProducePacketName [18:08:08]name=ofd_packets/00201629 [18:08:08]NVStorageSaveData ofd_packets/00201629 [18:08:08]File name is /storage/ofd_packets/00201629 [18:08:08]Write 302 bytes [18:08:08]NVStorageSaveData done [18:08:08]OFDSenderStorePacket done [18:08:08]KKMCreateOFDPacket done [18:08:08]NVStorageSaveData kkm_last_timestamp [18:08:08]File name is /storage/kkm_last_timestamp [18:08:08]Write 4 bytes [18:08:08]NVStorageSaveData done [18:08:08]ExternCall_PrintAddStr [18:08:08]wPrintStart [18:08:08]Write to MH i2c: 01 00 00 46 06 4C [18:08:08]Write i2c OK [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: 01 [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: 01 07 00 [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: 01 07 00 46 06 00 00 00 00 00 FF 0F 61 [18:08:08]RasterBufferAndPrint [18:08:08]line Счет N : (1)449385 [18:08:08]line ИНН: 02508201610067 [18:08:08]line Контрольно-Кассовый Чек [18:08:08]line ПРОДАЖА [18:08:08]line ТРК (МРК, ГНК) : 42 [18:08:08]line Товар: 2710124130 [18:08:08]line SUPER 92-К-5 [18:08:08]line 10.240 * 68.40 [18:08:08]line = 700.42 [18:08:08]line НДС 12% НСП 1% [18:08:08]line > о реализуемом товаре [18:08:08]line ОКРУГЛЕНИЕ: -0.42 [18:08:08]line ИТОГО: 700.00 [18:08:08]line Внесено: 700.00 [18:08:08]line СДАЧА: 0.00 [18:08:08]line НСП 1% : 6.20 [18:08:08]line НДС 12% : 74.38 [18:08:08]line Наличными: 700.00 [18:08:08]line Безнал.: 0.00 [18:08:08]line Место: АЗС № 171 "Партнер Нефть" [18:08:08]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:08:08]line СНО: Общий режим [18:08:08]line Чек 391 26.10.2024 18:08 [18:08:08]line Смена: 543 ФФД: 1.0 [18:08:08]line ЗНМ: 0300000109 [18:08:08]line РНМ: 0000000000091777 [18:08:08]line Версия ККМ: 001 [18:08:08]line ФМ: 0000000000871756 [18:08:08]line ФД: 201629 [18:08:08]line ФПД: 127858654823291 [18:08:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T180807&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201629&fm=127858654823291&tin=02508201610067®Number=0000000000091777&sum=70000 [18:08:08]written 0, free lines is 4095 [18:08:08]OFD Sender: Processing packet 201629 [packets to send 112, broken 111] [18:08:08]ProducePacketName [18:08:08]name=ofd_packets/00201629 [18:08:08]OFD Sender: To server: pG, [18:08:08]CommunicateWithHost lk.salyk.kg:30040 [18:08:08]ConnectInit lk.salyk.kg [18:08:08]Connected sock=10 [18:08:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 FA 7A 08 01 42 90 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 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 0E 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 87 01 00 00 F4 03 04 00 07 30 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9D 13 03 00 35 04 06 00 74 49 69 B3 C3 7B 87 A5 E2 71 D4 B8 5F D1 [18:08:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 1F 73 47 00 3B 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9D 13 03 00 F4 03 04 00 AF DB 1C 67 B6 04 01 00 00 9F 62 86 0E 21 3C 87 EC [18:08:08]CommunicateWithHost err = 0 [18:08:08]CheckOFDResponse [18:08:08]1017 (14) - 77093643461234 [18:08:08]1041 (16) - 0000000000871756 [18:08:08]1040 (4) - 201629 [18:08:08]1012 (4) - 26.10.2024 12:08 [18:08:08]1206 (1) - 0 [18:08:08]OFD Sender: Remove packet 201629 [18:08:08]ProducePacketName [18:08:08]name=ofd_packets/00201629 [18:08:08]NVStorageDeleteData [18:08:08]Write to MH i2c: 01 00 00 71 06 77 [18:08:08]Write i2c OK [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: 01 [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: 01 07 00 [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: 01 07 00 71 06 00 00 00 00 00 A2 0C 2C [18:08:08]RasterBufferAndPrint [18:08:08]line [18:08:08]line [18:08:08]line [18:08:08]line [18:08:08]line [18:08:08]written 0, free lines is 3239 [18:08:08]MH_Cut [18:08:08]Write to MH i2c: D1 01 00 78 06 01 50 [18:08:08]Write i2c OK [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: D1 [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: D1 01 00 [18:08:08]MH_I2C_Read... [18:08:08]Read from MH i2c: D1 01 00 78 06 00 4F [18:08:08]Write to MH i2c: 01 00 00 79 06 7F [18:08:08]Write i2c OK [18:08:08]MH_I2C_Read... [18:08:09]OFD Sender: No OFD packet to send [18:08:09]*** Cut start [18:08:09]*** Purtial cut [18:08:09]*** Stage 1: CUTSNS_PIN = 1 [18:08:09]Read from MH i2c: 01 [18:08:09]MH_I2C_Read... [18:08:09]*** Stop cut motor [18:08:09]*** Cut end [18:08:09]Read from MH i2c: 01 07 00 [18:08:09]MH_I2C_Read... [18:08:09]Read from MH i2c: 01 07 00 79 06 00 00 00 00 00 FF 0F 94 [18:08:09]process_action close_receipt done [18:08:09]requested_data is exist [18:08:09]produce_requested_data [18:08:09]requested_item fm.sn is exist - process it [18:08:09]wFMCommunicate request_size=4 [18:08:09]MH_SAM_APDU [18:08:09]CAPDU: 80 11 00 00 [18:08:09]Write to MH i2c: E2 08 00 7A 06 80 11 00 00 00 00 00 00 FA [18:08:09]Write i2c OK [18:08:09]MH_I2C_Read... [18:08:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:10]Read from MH i2c: E2 [18:08:10]MH_I2C_Read... [18:08:10]Read from MH i2c: E2 17 00 [18:08:10]MH_I2C_Read... [18:08:10]Read from MH i2c: E2 17 00 7A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4F [18:08:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:08:10]wFMCommunicate OK [18:08:10]requested_item fd.num is exist - process it [18:08:10]SAM_PROTO_GetFieldsCounters [18:08:10]wFMCommunicate request_size=4 [18:08:10]MH_SAM_APDU [18:08:10]CAPDU: 80 13 00 00 [18:08:10]Write to MH i2c: E2 08 00 7B 06 80 13 00 00 00 00 00 00 FD [18:08:10]Write i2c OK [18:08:10]MH_I2C_Read... [18:08:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:10]Read from MH i2c: E2 [18:08:10]MH_I2C_Read... [18:08:10]Read from MH i2c: E2 62 00 [18:08:10]MH_I2C_Read... [18:08:10]Read from MH i2c: E2 62 00 7B 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9D 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 87 01 00 00 5E 04 04 00 87 01 00 00 57 04 04 00 88 01 00 00 19 04 04 00 00 00 00 00 90 00 92 [18:08:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9D 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 87 01 00 00 5E 04 04 00 87 01 00 00 57 04 04 00 88 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:08:10]wFMCommunicate OK [18:08:10]SAM_PROTO_GetFieldsCounters done [18:08:10]requested_item shift.num is exist - process it [18:08:10]requested_item shift.opened is exist - process it [18:08:10]req_shift_opened [18:08:10]FM_GetShiftState [18:08:10]SAM_PROTO_GetShiftState [18:08:10]wFMCommunicate request_size=4 [18:08:10]MH_SAM_APDU [18:08:10]CAPDU: 80 13 01 00 [18:08:10]Write to MH i2c: E2 08 00 7C 06 80 13 01 00 00 00 00 00 FF [18:08:10]Write i2c OK [18:08:10]MH_I2C_Read... [18:08:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:10]Read from MH i2c: E2 [18:08:10]MH_I2C_Read... [18:08:10]Read from MH i2c: E2 0E 00 [18:08:10]MH_I2C_Read... [18:08:10]Read from MH i2c: E2 0E 00 7C 06 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 0E [18:08:10]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [18:08:10]wFMCommunicate OK [18:08:10]SAM_PROTO_GetShiftState done [18:08:10]FM_GetShiftState done [18:08:10]req_shift_opened done [18:08:10]requested_item shift.open_date is exist - process it [18:08:10]req_shift_open_date [18:08:10]req_shift_open_date done [18:08:10]produce_requested_data done [18:08:10]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201629,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [18:08:10]process_action_free close_receipt [18:08:10]json_value_free [18:08:10]json_value_free done [18:08:10]process_json_proto returns [18:08:10]Send response to host [18:08:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201629,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [18:08:10]free response buf [18:08:10]execute_script done [18:08:10]execute_script returns [18:08:10]free content buf [18:08:10]Sock 7.Close socket [18:08:10]Sock 7.Thread stoped [18:08:14]OFD Sender: No OFD packet to send [18:08:19]OFD Sender: No OFD packet to send [18:08:24]OFD Sender: No OFD packet to send [18:08:29]OFD Sender: No OFD packet to send [18:08:34]OFD Sender: No OFD packet to send [18:08:39]OFD Sender: No OFD packet to send [18:08:44]OFD Sender: No OFD packet to send [18:08:49]OFD Sender: No OFD packet to send [18:08:54]OFD Sender: No OFD packet to send [18:08:59]OFD Sender: No OFD packet to send [18:09:04]OFD Sender: No OFD packet to send [18:09:09]OFD Sender: No OFD packet to send [18:09:14]OFD Sender: No OFD packet to send [18:09:19]OFD Sender: No OFD packet to send [18:09:24]OFD Sender: No OFD packet to send [18:09:29]OFD Sender: No OFD packet to send [18:09:34]OFD Sender: No OFD packet to send [18:09:39]OFD Sender: No OFD packet to send [18:09:44]OFD Sender: No OFD packet to send [18:09:49]OFD Sender: No OFD packet to send [18:09:54]OFD Sender: No OFD packet to send [18:09:59]OFD Sender: No OFD packet to send [18:10:04]OFD Sender: No OFD packet to send [18:10:09]OFD Sender: No OFD packet to send [18:10:14]OFD Sender: No OFD packet to send [18:10:19]OFD Sender: No OFD packet to send [18:10:24]OFD Sender: No OFD packet to send [18:10:29]OFD Sender: No OFD packet to send [18:10:34]OFD Sender: No OFD packet to send [18:10:39]OFD Sender: No OFD packet to send [18:10:44]OFD Sender: No OFD packet to send [18:10:49]OFD Sender: No OFD packet to send [18:10:54]OFD Sender: No OFD packet to send [18:10:59]OFD Sender: No OFD packet to send [18:11:04]OFD Sender: No OFD packet to send [18:11:07]int [18:11:07]Write to MH i2c: 01 00 00 7D 06 83 [18:11:07]*** FLAG_PRN_KEY set [18:11:07]Write i2c OK [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: 01 [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: 01 07 00 [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: 01 07 00 7D 06 00 08 00 00 00 FF 0F A0 [18:11:07]state=0 [18:11:07]Key pressed [18:11:07]Feed [18:11:07]Write to MH i2c: D8 00 00 7E 06 5B [18:11:07]Write i2c OK [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: D8 [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: D8 01 00 [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: D8 01 00 7E 06 00 5C [18:11:07]int [18:11:07]Write to MH i2c: 01 00 00 7F 06 85 [18:11:07]Write i2c OK [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: 01 [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: 01 07 00 [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: 01 07 00 7F 06 00 48 00 00 00 3C 00 10 [18:11:07]state=2 [18:11:07]Key pressed [18:11:07]int [18:11:07]Write to MH i2c: 01 00 00 80 06 86 [18:11:07]*** FLAG_PRN_KEY reset [18:11:07]Write i2c OK [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: 01 [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: 01 07 00 [18:11:07]MH_I2C_Read... [18:11:07]Read from MH i2c: 01 07 00 80 06 00 00 00 00 00 F8 0F 94 [18:11:07]state=2 [18:11:07]Stop feed [18:11:09]OFD Sender: No OFD packet to send [18:11:14]OFD Sender: No OFD packet to send [18:11:19]OFD Sender: No OFD packet to send [18:11:24]OFD Sender: No OFD packet to send [18:11:29]OFD Sender: No OFD packet to send [18:11:34]OFD Sender: No OFD packet to send [18:11:39]OFD Sender: No OFD packet to send [18:11:44]OFD Sender: No OFD packet to send [18:11:49]OFD Sender: No OFD packet to send [18:11:54]OFD Sender: No OFD packet to send [18:11:59]OFD Sender: No OFD packet to send [18:12:04]OFD Sender: No OFD packet to send [18:12:09]OFD Sender: No OFD packet to send [18:12:14]OFD Sender: No OFD packet to send [18:12:19]OFD Sender: No OFD packet to send [18:12:24]OFD Sender: No OFD packet to send [18:12:29]OFD Sender: No OFD packet to send [18:12:34]OFD Sender: No OFD packet to send [18:12:39]OFD Sender: No OFD packet to send [18:12:44]OFD Sender: No OFD packet to send [18:12:49]OFD Sender: No OFD packet to send [18:12:54]OFD Sender: No OFD packet to send [18:12:59]OFD Sender: No OFD packet to send [18:13:04]OFD Sender: No OFD packet to send [18:13:09]OFD Sender: No OFD packet to send [18:13:09]accept exits with 9 [18:13:09]New connection [18:13:09]New thread 3067424100 created [18:13:09]Thread 3067280740 joined [18:13:09]Waiting for new connection... [18:13:09] Sock 9.Parse request [18:13:09]Sock 9.Check first char [18:13:09]Sock 9.First char is OK [18:13:09]request: POST /json_proto HTTP/1.0 [18:13:09]Method: POST [18:13:09]URL: /json_proto [18:13:09]Method is POST - this is cgi request [18:13:09]url: /json_proto [18:13:09]query_string will be loaded in cgi processing [18:13:09]execute_cgi json_proto POST (null) [18:13:09]execute_cgi path=json_proto method=POST [18:13:09]POST find Content-Length [18:13:09]Host: 172.17.63.195:8080 [18:13:09]Content-Length: 677 [18:13:09]Content-Type: application/json [18:13:09] [18:13:09]POST finish read [18:13:09]Found Content-Length = 677 [18:13:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [18:13:09]execute_script... [18: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)449386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [18:13:09]POST & json_proto [18:13:09]process_json_proto [18:13:09]json parsed OK: [18:13:09]protocol is kg_v1.0 [18:13:09]action value=close_receipt [18:13:09]process_action close_receipt [18:13:09]cmd_close_receipt [18:13:09]MH_GetDate [18:13:09]Write to MH i2c: F0 00 00 81 06 76 [18:13:09]Write i2c OK [18:13:09]MH_I2C_Read... [18:13:09]Read from MH i2c: F0 [18:13:09]MH_I2C_Read... [18:13:09]Read from MH i2c: F0 09 00 [18:13:09]MH_I2C_Read... [18:13:09]Read from MH i2c: F0 09 00 81 06 00 36 31 1D 67 68 46 19 67 98 [18:13:09]GetLastDocTimeStamp 1729966087 [18:13:09]current date 1729966390 [18:13:09]FM_GetShiftState [18:13:09]SAM_PROTO_GetShiftState [18:13:09]wFMCommunicate request_size=4 [18:13:09]MH_SAM_APDU [18:13:09]CAPDU: 80 13 01 00 [18:13:09]Write to MH i2c: E2 08 00 82 06 80 13 01 00 00 00 00 00 05 [18:13:09]Write i2c OK [18:13:09]MH_I2C_Read... [18:13:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:09]Read from MH i2c: E2 [18:13:09]MH_I2C_Read... [18:13:09]Read from MH i2c: E2 0E 00 [18:13:09]MH_I2C_Read... [18:13:09]Read from MH i2c: E2 0E 00 82 06 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 14 [18:13:09]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [18:13:09]wFMCommunicate OK [18:13:09]SAM_PROTO_GetShiftState done [18:13:09]FM_GetShiftState done [18:13:09]opened in 1729900879 [18:13:09]opened+sec_in_day 1729987279 [18:13:09]quantity*price = 20003 [18:13:09]sum+1 = 20004 [18:13:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 392 26.10.2024 18:13 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201630 ФПД: 226331197367314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T181310&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201630&fm=226331197367314&tin=02508201610067®Number=0000000000091777&sum=20000 [18:13:11]StoreToDocumentArchive [18:13:11]shift 543 fd 201630 [18:13:11]save to /storage/0543/doc_00201630 [18:13:11]save last doc name /storage/0543/doc_00201630 to /storage/kkm_last_doc_name [18:13:11]save OK [18:13:11]Clear old archive folders... [18:13:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:13:11]tlvbuf is 01F9F230 [18:13:11]SAM_PROTO_ClearQueue [18:13:11]wFMCommunicate request_size=4 [18:13:11]MH_SAM_APDU [18:13:11]CAPDU: 80 09 00 00 [18:13:11]Write to MH i2c: E2 08 00 8F 06 80 09 00 00 00 00 00 00 07 [18:13:11]Write i2c OK [18:13:11]MH_I2C_Read... [18:13:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:11]Read from MH i2c: E2 [18:13:11]MH_I2C_Read... [18:13:11]Read from MH i2c: E2 03 00 [18:13:11]MH_I2C_Read... [18:13:11]Read from MH i2c: E2 03 00 8F 06 00 90 00 09 [18:13:11]RAPDU: 90 00 [18:13:11]wFMCommunicate OK [18:13:11]SAM_PROTO_ClearQueue done [18:13:11]KKMCreateOFDPacket [18:13:11]OFDProtocolAddRootSTLVToBuf [18:13:11]FM_MakeSignedData [18:13:11]FM_MakeSignedData [18:13:11]SAM_PROTO_SignData [18:13:11]wFMCommunicate request_size=4 [18:13:11]MH_SAM_APDU [18:13:11]CAPDU: 80 0D 01 02 [18:13:11]Write to MH i2c: E2 08 00 90 06 80 0D 01 02 00 00 00 00 0F [18:13:11]Write i2c OK [18:13:11]MH_I2C_Read... [18:13:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:11]Read from MH i2c: E2 [18:13:11]MH_I2C_Read... [18:13:11]Read from MH i2c: E2 03 00 [18:13:11]MH_I2C_Read... [18:13:11]Read from MH i2c: E2 03 00 90 06 00 90 00 0A [18:13:11]RAPDU: 90 00 [18:13:11]wFMCommunicate OK [18:13:11]wFMCommunicate request_size=255 [18:13:11]MH_SAM_APDU [18:13:11]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 32 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 88 01 00 00 F4 03 04 00 36 31 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9E 13 03 00 35 04 06 00 CD [18:13:11]Write to MH i2c: E2 02 01 91 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 32 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 88 01 00 00 F4 03 04 00 36 31 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9E 13 03 00 35 04 06 00 CD 00 00 7B [18:13:11]Write i2c OK [18:13:11]MH_I2C_Read... [18:13:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:11]Read from MH i2c: E2 [18:13:11]MH_I2C_Read... [18:13:11]Read from MH i2c: E2 03 00 [18:13:11]MH_I2C_Read... [18:13:11]Read from MH i2c: E2 03 00 91 06 00 90 00 0B [18:13:11]RAPDU: 90 00 [18:13:11]wFMCommunicate OK [18:13:11]wFMCommunicate request_size=10 [18:13:11]MH_SAM_APDU [18:13:11]CAPDU: 80 0D 02 02 05 D8 D6 9E E4 12 [18:13:11]Write to MH i2c: E2 0D 00 92 06 80 0D 02 02 05 00 D8 D6 9E E4 12 00 00 5E [18:13:11]Write i2c OK [18:13:11]MH_I2C_Read... [18:13:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:11]Read from MH i2c: E2 [18:13:11]MH_I2C_Read... [18:13:11]Read from MH i2c: E2 03 00 [18:13:11]MH_I2C_Read... [18:13:11]Read from MH i2c: E2 03 00 92 06 00 90 00 0C [18:13:11]RAPDU: 90 00 [18:13:11]wFMCommunicate OK [18:13:11]wFMCommunicate request_size=4 [18:13:11]MH_SAM_APDU [18:13:11]CAPDU: 80 0D 03 02 [18:13:11]Write to MH i2c: E2 08 00 93 06 80 0D 03 02 00 00 00 00 14 [18:13:11]Write i2c OK [18:13:11]MH_I2C_Read... [18:13:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:11]Read from MH i2c: E2 [18:13:11]MH_I2C_Read... [18:13:11]Read from MH i2c: E2 0B 00 [18:13:11]MH_I2C_Read... [18:13:11]Read from MH i2c: E2 0B 00 93 06 00 EF BA ED 1F 4D 15 3D EF 90 00 58 [18:13:11]RAPDU: EF BA ED 1F 4D 15 3D EF 90 00 [18:13:11]wFMCommunicate OK [18:13:11]SAM_PROTO_SignData done [18:13:11]FM_MakeSignedData done [18:13:11]CreateOFDProtocolMessage [18:13:11]wFMCommunicate request_size=4 [18:13:11]MH_SAM_APDU [18:13:11]CAPDU: 80 11 00 00 [18:13:11]Write to MH i2c: E2 08 00 94 06 80 11 00 00 00 00 00 00 14 [18:13:11]Write i2c OK [18:13:11]MH_I2C_Read... [18:13:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:11]Read from MH i2c: E2 [18:13:11]MH_I2C_Read... [18:13:11]Read from MH i2c: E2 17 00 [18:13:11]MH_I2C_Read... [18:13:11]Read from MH i2c: E2 17 00 94 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 69 [18:13:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:13:11]wFMCommunicate OK [18:13:11]CreateOFDProtocolMessage done [18:13:11]OFDSenderStorePacket 201630 [18:13:11]StoreOFDPacket docnum=201630 [18:13:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 DA 32 07 01 F9 75 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 32 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 88 01 00 00 F4 03 04 00 36 31 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9E 13 03 00 35 04 06 00 CD D8 D6 9E E4 12 EF BA ED 1F 4D 15 3D EF [18:13:11]CheckFolder [18:13:11]dirname=/storage/ofd_packets [18:13:11]CheckFolder done [18:13:11]ProducePacketName [18:13:11]name=ofd_packets/00201630 [18:13:11]NVStorageSaveData ofd_packets/00201630 [18:13:11]File name is /storage/ofd_packets/00201630 [18:13:11]Write 301 bytes [18:13:11]NVStorageSaveData done [18:13:11]OFDSenderStorePacket done [18:13:11]KKMCreateOFDPacket done [18:13:11]NVStorageSaveData kkm_last_timestamp [18:13:11]File name is /storage/kkm_last_timestamp [18:13:11]Write 4 bytes [18:13:11]NVStorageSaveData done [18:13:11]ExternCall_PrintAddStr [18:13:11]wPrintStart [18:13:11]Write to MH i2c: 01 00 00 95 06 9B [18:13:11]Write i2c OK [18:13:11]MH_I2C_Read... [18:13:11]Read from MH i2c: 01 [18:13:11]MH_I2C_Read... [18:13:11]Read from MH i2c: 01 07 00 [18:13:11]MH_I2C_Read... [18:13:11]Read from MH i2c: 01 07 00 95 06 00 00 00 00 00 FF 0F B0 [18:13:11]RasterBufferAndPrint [18:13:11]line Счет N : (1)449386 [18:13:11]line ИНН: 02508201610067 [18:13:11]line Контрольно-Кассовый Чек [18:13:11]line ПРОДАЖА [18:13:11]line ТРК (МРК, ГНК) : 31 [18:13:11]line Товар: 2710124130 [18:13:11]line Аи-92-К-2 [18:13:11]line 2.990 * 66.90 [18:13:11]line = 200.03 [18:13:11]line НДС 12% НСП 1% [18:13:11]line > о реализуемом товаре [18:13:11]line ОКРУГЛЕНИЕ: -0.03 [18:13:11]line ИТОГО: 200.00 [18:13:11]line Внесено: 200.00 [18:13:11]line СДАЧА: 0.00 [18:13:11]line НСП 1% : 1.77 [18:13:11]line НДС 12% : 21.24 [18:13:11]line Наличными: 200.00 [18:13:11]line Безнал.: 0.00 [18:13:11]line Место: АЗС № 171 "Партнер Нефть" [18:13:11]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:13:11]line СНО: Общий режим [18:13:11]line Чек 392 26.10.2024 18:13 [18:13:11]line Смена: 543 ФФД: 1.0 [18:13:11]line ЗНМ: 0300000109 [18:13:11]line РНМ: 0000000000091777 [18:13:11]line Версия ККМ: 001 [18:13:11]line ФМ: 0000000000871756 [18:13:11]line ФД: 201630 [18:13:11]line ФПД: 226331197367314 [18:13:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T181310&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201630&fm=226331197367314&tin=02508201610067®Number=0000000000091777&sum=20000 [18:13:11]OFD Sender: Processing packet 201630 [packets to send 112, broken 111] [18:13:11]ProducePacketName [18:13:11]name=ofd_packets/00201630 [18:13:11]OFD Sender: To server: pG, [18:13:11]CommunicateWithHost lk.salyk.kg:30040 [18:13:11]ConnectInit lk.salyk.kg [18:13:11]written 0, free lines is 4095 [18:13:11]Connected sock=10 [18:13:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 DA 32 07 01 F9 75 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 32 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 88 01 00 00 F4 03 04 00 36 31 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9E 13 03 00 35 04 06 00 CD D8 D6 9E E4 12 EF BA ED 1F 4D 15 3D EF [18:13:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 75 02 47 00 F0 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9E 13 03 00 F4 03 04 00 DE DC 1C 67 B6 04 01 00 00 67 9C 66 59 AD 18 0B 4B [18:13:12]CommunicateWithHost err = 0 [18:13:12]CheckOFDResponse [18:13:12]1017 (14) - 77093643461234 [18:13:12]1041 (16) - 0000000000871756 [18:13:12]1040 (4) - 201630 [18:13:12]1012 (4) - 26.10.2024 12:13 [18:13:12]1206 (1) - 0 [18:13:12]OFD Sender: Remove packet 201630 [18:13:12]ProducePacketName [18:13:12]name=ofd_packets/00201630 [18:13:12]NVStorageDeleteData [18:13:12]Write to MH i2c: 01 00 00 C0 06 C6 [18:13:12]Write i2c OK [18:13:12]MH_I2C_Read... [18:13:12]Read from MH i2c: 01 [18:13:12]MH_I2C_Read... [18:13:12]Read from MH i2c: 01 07 00 [18:13:12]MH_I2C_Read... [18:13:12]Read from MH i2c: 01 07 00 C0 06 00 00 00 00 00 A8 0C 81 [18:13:12]RasterBufferAndPrint [18:13:12]line [18:13:12]line [18:13:12]line [18:13:12]line [18:13:12]line [18:13:12]written 0, free lines is 3244 [18:13:12]MH_Cut [18:13:12]Write to MH i2c: D1 01 00 C7 06 01 9F [18:13:12]Write i2c OK [18:13:12]MH_I2C_Read... [18:13:12]Read from MH i2c: D1 [18:13:12]MH_I2C_Read... [18:13:12]Read from MH i2c: D1 01 00 [18:13:12]MH_I2C_Read... [18:13:12]Read from MH i2c: D1 01 00 C7 06 00 9E [18:13:12]Write to MH i2c: 01 00 00 C8 06 CE [18:13:12]Write i2c OK [18:13:12]MH_I2C_Read... [18:13:12]OFD Sender: No OFD packet to send [18:13:13]*** Cut start [18:13:13]*** Purtial cut [18:13:13]*** Stage 1: CUTSNS_PIN = 1 [18:13:13]Read from MH i2c: 01 [18:13:13]MH_I2C_Read... [18:13:13]*** Stop cut motor [18:13:13]*** Cut end [18:13:13]Read from MH i2c: 01 07 00 [18:13:13]MH_I2C_Read... [18:13:13]Read from MH i2c: 01 07 00 C8 06 00 00 00 00 00 FF 0F E3 [18:13:13]process_action close_receipt done [18:13:13]requested_data is exist [18:13:13]produce_requested_data [18:13:13]requested_item fm.sn is exist - process it [18:13:13]wFMCommunicate request_size=4 [18:13:13]MH_SAM_APDU [18:13:13]CAPDU: 80 11 00 00 [18:13:13]Write to MH i2c: E2 08 00 C9 06 80 11 00 00 00 00 00 00 49 [18:13:13]Write i2c OK [18:13:13]MH_I2C_Read... [18:13:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:13]Read from MH i2c: E2 [18:13:13]MH_I2C_Read... [18:13:13]Read from MH i2c: E2 17 00 [18:13:13]MH_I2C_Read... [18:13:13]Read from MH i2c: E2 17 00 C9 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9E [18:13:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:13:13]wFMCommunicate OK [18:13:13]requested_item fd.num is exist - process it [18:13:13]SAM_PROTO_GetFieldsCounters [18:13:13]wFMCommunicate request_size=4 [18:13:13]MH_SAM_APDU [18:13:13]CAPDU: 80 13 00 00 [18:13:13]Write to MH i2c: E2 08 00 CA 06 80 13 00 00 00 00 00 00 4C [18:13:13]Write i2c OK [18:13:13]MH_I2C_Read... [18:13:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:13]Read from MH i2c: E2 [18:13:13]MH_I2C_Read... [18:13:13]Read from MH i2c: E2 62 00 [18:13:13]MH_I2C_Read... [18:13:13]Read from MH i2c: E2 62 00 CA 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9E 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 88 01 00 00 5E 04 04 00 88 01 00 00 57 04 04 00 89 01 00 00 19 04 04 00 00 00 00 00 90 00 E5 [18:13:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9E 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 88 01 00 00 5E 04 04 00 88 01 00 00 57 04 04 00 89 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:13:13]wFMCommunicate OK [18:13:13]SAM_PROTO_GetFieldsCounters done [18:13:13]requested_item shift.num is exist - process it [18:13:13]requested_item shift.opened is exist - process it [18:13:13]req_shift_opened [18:13:13]FM_GetShiftState [18:13:13]SAM_PROTO_GetShiftState [18:13:13]wFMCommunicate request_size=4 [18:13:13]MH_SAM_APDU [18:13:13]CAPDU: 80 13 01 00 [18:13:13]Write to MH i2c: E2 08 00 CB 06 80 13 01 00 00 00 00 00 4E [18:13:13]Write i2c OK [18:13:13]MH_I2C_Read... [18:13:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:13]Read from MH i2c: E2 [18:13:13]MH_I2C_Read... [18:13:13]Read from MH i2c: E2 0E 00 [18:13:13]MH_I2C_Read... [18:13:13]Read from MH i2c: E2 0E 00 CB 06 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 5D [18:13:13]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [18:13:13]wFMCommunicate OK [18:13:13]SAM_PROTO_GetShiftState done [18:13:13]FM_GetShiftState done [18:13:13]req_shift_opened done [18:13:13]requested_item shift.open_date is exist - process it [18:13:13]req_shift_open_date [18:13:13]req_shift_open_date done [18:13:13]produce_requested_data done [18:13:13]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201630,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [18:13:13]process_action_free close_receipt [18:13:13]json_value_free [18:13:13]json_value_free done [18:13:13]process_json_proto returns [18:13:13]Send response to host [18:13:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201630,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [18:13:13]free response buf [18:13:13]execute_script done [18:13:13]execute_script returns [18:13:13]free content buf [18:13:13]Sock 9.Close socket [18:13:13]Sock 9.Thread stoped [18:13:17]OFD Sender: No OFD packet to send [18:13:22]OFD Sender: No OFD packet to send [18:13:27]OFD Sender: No OFD packet to send [18:13:32]OFD Sender: No OFD packet to send [18:13:37]OFD Sender: No OFD packet to send [18:13:42]OFD Sender: No OFD packet to send [18:13:47]OFD Sender: No OFD packet to send [18:13:52]OFD Sender: No OFD packet to send [18:13:57]OFD Sender: No OFD packet to send [18:14:07]OFD Sender: No OFD packet to send [18:14:12]OFD Sender: No OFD packet to send [18:14:17]accept exits with 7 [18:14:17]New connection [18:14:17]New thread 3067280740 created [18:14:17]Thread 3067424100 joined [18:14:17]Waiting for new connection... [18:14:17] Sock 7.Parse request [18:14:17]Sock 7.Check first char [18:14:17]Sock 7.First char is OK [18:14:17]request: POST /json_proto HTTP/1.0 [18:14:17]Method: POST [18:14:17]URL: /json_proto [18:14:17]Method is POST - this is cgi request [18:14:17]url: /json_proto [18:14:17]query_string will be loaded in cgi processing [18:14:17]execute_cgi json_proto POST (null) [18:14:17]execute_cgi path=json_proto method=POST [18:14:17]POST find Content-Length [18:14:17]Host: 172.17.63.195:8080 [18:14:17]Content-Length: 682 [18:14:17]Content-Type: application/json [18:14:17] [18:14:17]POST finish read [18:14:17]Found Content-Length = 682 [18:14:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [18:14:17]execute_script... [18:14: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)449387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [18:14:17]POST & json_proto [18:14:17]process_json_proto [18:14:17]json parsed OK: [18:14:17]protocol is kg_v1.0 [18:14:17]action value=close_receipt [18:14:17]process_action close_receipt [18:14:17]cmd_close_receipt [18:14:17]MH_GetDate [18:14:17]Write to MH i2c: F0 00 00 CC 06 C1 [18:14:17]Write i2c OK [18:14:17]MH_I2C_Read... [18:14:17]Read from MH i2c: F0 [18:14:17]MH_I2C_Read... [18:14:17]Read from MH i2c: F0 09 00 [18:14:17]MH_I2C_Read... [18:14:17]Read from MH i2c: F0 09 00 CC 06 00 79 31 1D 67 68 46 19 67 26 [18:14:17]GetLastDocTimeStamp 1729966390 [18:14:17]current date 1729966457 [18:14:17]FM_GetShiftState [18:14:17]SAM_PROTO_GetShiftState [18:14:17]wFMCommunicate request_size=4 [18:14:17]MH_SAM_APDU [18:14:17]CAPDU: 80 13 01 00 [18:14:17]Write to MH i2c: E2 08 00 CD 06 80 13 01 00 00 00 00 00 50 [18:14:17]Write i2c OK [18:14:17]MH_I2C_Read... [18:14:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:17]Read from MH i2c: E2 [18:14:17]MH_I2C_Read... [18:14:17]Read from MH i2c: E2 0E 00 [18:14:17]MH_I2C_Read... [18:14:17]Read from MH i2c: E2 0E 00 CD 06 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 5F [18:14:17]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [18:14:17]wFMCommunicate OK [18:14:17]SAM_PROTO_GetShiftState done [18:14:17]FM_GetShiftState done [18:14:17]opened in 1729900879 [18:14:17]opened+sec_in_day 1729987279 [18:14:17]quantity*price = 100015 [18:14:17]sum+1 = 100017 [18:14:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 393 26.10.2024 18:14 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201631 ФПД: 153002557566613 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T181417&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201631&fm=153002557566613&tin=02508201610067®Number=0000000000091777&sum=100000 [18:14:18]StoreToDocumentArchive [18:14:18]shift 543 fd 201631 [18:14:18]save to /storage/0543/doc_00201631 [18:14:18]save last doc name /storage/0543/doc_00201631 to /storage/kkm_last_doc_name [18:14:18]save OK [18:14:18]Clear old archive folders... [18:14:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:14:18]tlvbuf is 01FC68B0 [18:14:18]SAM_PROTO_ClearQueue [18:14:18]wFMCommunicate request_size=4 [18:14:18]MH_SAM_APDU [18:14:18]CAPDU: 80 09 00 00 [18:14:18]Write to MH i2c: E2 08 00 DA 06 80 09 00 00 00 00 00 00 52 [18:14:18]Write i2c OK [18:14:18]MH_I2C_Read... [18:14:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:14:18]Read from MH i2c: E2 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 03 00 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 03 00 DA 06 00 90 00 54 [18:14:18]RAPDU: 90 00 [18:14:18]wFMCommunicate OK [18:14:18]SAM_PROTO_ClearQueue done [18:14:18]KKMCreateOFDPacket [18:14:18]OFDProtocolAddRootSTLVToBuf [18:14:18]FM_MakeSignedData [18:14:18]FM_MakeSignedData [18:14:18]SAM_PROTO_SignData [18:14:18]wFMCommunicate request_size=4 [18:14:18]MH_SAM_APDU [18:14:18]CAPDU: 80 0D 01 02 [18:14:18]Write to MH i2c: E2 08 00 DB 06 80 0D 01 02 00 00 00 00 5A [18:14:18]Write i2c OK [18:14:18]MH_I2C_Read... [18:14:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:14:18]Read from MH i2c: E2 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 03 00 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 03 00 DB 06 00 90 00 55 [18:14:18]RAPDU: 90 00 [18:14:18]wFMCommunicate OK [18:14:18]wFMCommunicate request_size=255 [18:14:18]MH_SAM_APDU [18:14: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 32 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 89 01 00 00 F4 03 04 00 79 31 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9F 13 03 00 35 04 06 00 8B [18:14:18]Write to MH i2c: E2 02 01 DC 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 32 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 89 01 00 00 F4 03 04 00 79 31 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9F 13 03 00 35 04 06 00 8B 00 00 01 [18:14:18]Write i2c OK [18:14:18]MH_I2C_Read... [18:14:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:18]Read from MH i2c: E2 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 03 00 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 03 00 DC 06 00 90 00 56 [18:14:18]RAPDU: 90 00 [18:14:18]wFMCommunicate OK [18:14:18]wFMCommunicate request_size=10 [18:14:18]MH_SAM_APDU [18:14:18]CAPDU: 80 0D 02 02 05 27 AF 17 EE 95 [18:14:18]Write to MH i2c: E2 0D 00 DD 06 80 0D 02 02 05 00 27 AF 17 EE 95 00 00 D7 [18:14:18]Write i2c OK [18:14:18]MH_I2C_Read... [18:14:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:18]Read from MH i2c: E2 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 03 00 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 03 00 DD 06 00 90 00 57 [18:14:18]RAPDU: 90 00 [18:14:18]wFMCommunicate OK [18:14:18]wFMCommunicate request_size=4 [18:14:18]MH_SAM_APDU [18:14:18]CAPDU: 80 0D 03 02 [18:14:18]Write to MH i2c: E2 08 00 DE 06 80 0D 03 02 00 00 00 00 5F [18:14:18]Write i2c OK [18:14:18]MH_I2C_Read... [18:14:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:14:18]Read from MH i2c: E2 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 0B 00 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 0B 00 DE 06 00 93 1F 9A CA 48 86 FC 6D 90 00 AD [18:14:18]RAPDU: 93 1F 9A CA 48 86 FC 6D 90 00 [18:14:18]wFMCommunicate OK [18:14:18]SAM_PROTO_SignData done [18:14:18]FM_MakeSignedData done [18:14:18]CreateOFDProtocolMessage [18:14:18]wFMCommunicate request_size=4 [18:14:18]MH_SAM_APDU [18:14:18]CAPDU: 80 11 00 00 [18:14:18]Write to MH i2c: E2 08 00 DF 06 80 11 00 00 00 00 00 00 5F [18:14:18]Write i2c OK [18:14:18]MH_I2C_Read... [18:14:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:18]Read from MH i2c: E2 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 17 00 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: E2 17 00 DF 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B4 [18:14:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:14:18]wFMCommunicate OK [18:14:18]CreateOFDProtocolMessage done [18:14:18]OFDSenderStorePacket 201631 [18:14:18]StoreOFDPacket docnum=201631 [18:14:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 37 3B 07 01 EA 1A 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 32 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 89 01 00 00 F4 03 04 00 79 31 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9F 13 03 00 35 04 06 00 8B 27 AF 17 EE 95 93 1F 9A CA 48 86 FC 6D [18:14:18]CheckFolder [18:14:18]dirname=/storage/ofd_packets [18:14:18]CheckFolder done [18:14:18]ProducePacketName [18:14:18]name=ofd_packets/00201631 [18:14:18]NVStorageSaveData ofd_packets/00201631 [18:14:18]File name is /storage/ofd_packets/00201631 [18:14:18]Write 301 bytes [18:14:18]NVStorageSaveData done [18:14:18]OFDSenderStorePacket done [18:14:18]KKMCreateOFDPacket done [18:14:18]NVStorageSaveData kkm_last_timestamp [18:14:18]File name is /storage/kkm_last_timestamp [18:14:18]Write 4 bytes [18:14:18]NVStorageSaveData done [18:14:18]ExternCall_PrintAddStr [18:14:18]wPrintStart [18:14:18]Write to MH i2c: 01 00 00 E0 06 E6 [18:14:18]Write i2c OK [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: 01 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: 01 07 00 [18:14:18]MH_I2C_Read... [18:14:18]Read from MH i2c: 01 07 00 E0 06 00 00 00 00 00 FF 0F FB [18:14:18]RasterBufferAndPrint [18:14:18]line Счет N : (1)449387 [18:14:18]line ИНН: 02508201610067 [18:14:18]line Контрольно-Кассовый Чек [18:14:18]line ПРОДАЖА [18:14:18]line ТРК (МРК, ГНК) : 41 [18:14:18]line Товар: 2710124130 [18:14:18]line Аи-92-К-2 [18:14:18]line 14.950 * 66.90 [18:14:18]line = 1000.16 [18:14:18]line НДС 12% НСП 1% [18:14:18]line > о реализуемом товаре [18:14:18]line ОКРУГЛЕНИЕ: -0.16 [18:14:18]line ИТОГО: 1000.00 [18:14:18]line Внесено: 1000.00 [18:14:18]line СДАЧА: 0.00 [18:14:18]line НСП 1% : 8.85 [18:14:18]line НДС 12% : 106.21 [18:14:18]line Наличными: 1000.00 [18:14:18]line Безнал.: 0.00 [18:14:18]line Место: АЗС № 171 "Партнер Нефть" [18:14:18]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:14:18]line СНО: Общий режим [18:14:18]line Чек 393 26.10.2024 18:14 [18:14:18]line Смена: 543 ФФД: 1.0 [18:14:18]line ЗНМ: 0300000109 [18:14:18]line РНМ: 0000000000091777 [18:14:18]line Версия ККМ: 001 [18:14:18]line ФМ: 0000000000871756 [18:14:18]line ФД: 201631 [18:14:18]line ФПД: 153002557566613 [18:14:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T181417&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201631&fm=153002557566613&tin=02508201610067®Number=0000000000091777&sum=100000 [18:14:19]OFD Sender: Processing packet 201631 [packets to send 112, broken 111] [18:14:19]ProducePacketName [18:14:19]name=ofd_packets/00201631 [18:14:19]OFD Sender: To server: pG, [18:14:19]CommunicateWithHost lk.salyk.kg:30040 [18:14:19]ConnectInit lk.salyk.kg [18:14:19]written 0, free lines is 4095 [18:14:19]Connected sock=11 [18:14:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 37 3B 07 01 EA 1A 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 32 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 89 01 00 00 F4 03 04 00 79 31 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9F 13 03 00 35 04 06 00 8B 27 AF 17 EE 95 93 1F 9A CA 48 86 FC 6D [18:14:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 75 DC 47 00 FB A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 9F 13 03 00 F4 03 04 00 22 DD 1C 67 B6 04 01 00 00 13 ED 7D 55 A6 84 05 61 [18:14:19]CommunicateWithHost err = 0 [18:14:19]CheckOFDResponse [18:14:19]1017 (14) - 77093643461234 [18:14:19]1041 (16) - 0000000000871756 [18:14:19]1040 (4) - 201631 [18:14:19]1012 (4) - 26.10.2024 12:14 [18:14:19]1206 (1) - 0 [18:14:19]OFD Sender: Remove packet 201631 [18:14:19]ProducePacketName [18:14:19]name=ofd_packets/00201631 [18:14:19]NVStorageDeleteData [18:14:19]Write to MH i2c: 01 00 00 0B 07 12 [18:14:19]Write i2c OK [18:14:19]MH_I2C_Read... [18:14:19]Read from MH i2c: 01 [18:14:19]MH_I2C_Read... [18:14:19]Read from MH i2c: 01 07 00 [18:14:19]MH_I2C_Read... [18:14:19]Read from MH i2c: 01 07 00 0B 07 00 00 00 00 00 A0 0C C5 [18:14:19]RasterBufferAndPrint [18:14:19]line [18:14:19]line [18:14:19]line [18:14:19]line [18:14:19]line [18:14:19]written 0, free lines is 3238 [18:14:19]MH_Cut [18:14:19]Write to MH i2c: D1 01 00 12 07 01 EB [18:14:19]Write i2c OK [18:14:19]MH_I2C_Read... [18:14:19]Read from MH i2c: D1 [18:14:19]MH_I2C_Read... [18:14:19]Read from MH i2c: D1 01 00 [18:14:19]MH_I2C_Read... [18:14:19]Read from MH i2c: D1 01 00 12 07 00 EA [18:14:19]Write to MH i2c: 01 00 00 13 07 1A [18:14:19]Write i2c OK [18:14:19]MH_I2C_Read... [18:14:19]OFD Sender: No OFD packet to send [18:14:20]*** Cut start [18:14:20]*** Purtial cut [18:14:20]*** Stage 1: CUTSNS_PIN = 1 [18:14:20]Read from MH i2c: 01 [18:14:20]MH_I2C_Read... [18:14:20]*** Stop cut motor [18:14:20]*** Cut end [18:14:20]Read from MH i2c: 01 07 00 [18:14:20]MH_I2C_Read... [18:14:20]Read from MH i2c: 01 07 00 13 07 00 00 00 00 00 FF 0F 2F [18:14:20]process_action close_receipt done [18:14:20]requested_data is exist [18:14:20]produce_requested_data [18:14:20]requested_item fm.sn is exist - process it [18:14:20]wFMCommunicate request_size=4 [18:14:20]MH_SAM_APDU [18:14:20]CAPDU: 80 11 00 00 [18:14:20]Write to MH i2c: E2 08 00 14 07 80 11 00 00 00 00 00 00 95 [18:14:20]Write i2c OK [18:14:20]MH_I2C_Read... [18:14:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:20]Read from MH i2c: E2 [18:14:20]MH_I2C_Read... [18:14:20]Read from MH i2c: E2 17 00 [18:14:20]MH_I2C_Read... [18:14:20]Read from MH i2c: E2 17 00 14 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EA [18:14:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:14:20]wFMCommunicate OK [18:14:20]requested_item fd.num is exist - process it [18:14:20]SAM_PROTO_GetFieldsCounters [18:14:20]wFMCommunicate request_size=4 [18:14:20]MH_SAM_APDU [18:14:20]CAPDU: 80 13 00 00 [18:14:20]Write to MH i2c: E2 08 00 15 07 80 13 00 00 00 00 00 00 98 [18:14:20]Write i2c OK [18:14:20]MH_I2C_Read... [18:14:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:20]Read from MH i2c: E2 [18:14:20]MH_I2C_Read... [18:14:20]Read from MH i2c: E2 62 00 [18:14:20]MH_I2C_Read... [18:14:20]Read from MH i2c: E2 62 00 15 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9F 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 89 01 00 00 5E 04 04 00 89 01 00 00 57 04 04 00 8A 01 00 00 19 04 04 00 00 00 00 00 90 00 35 [18:14:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 9F 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 89 01 00 00 5E 04 04 00 89 01 00 00 57 04 04 00 8A 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:14:20]wFMCommunicate OK [18:14:20]SAM_PROTO_GetFieldsCounters done [18:14:20]requested_item shift.num is exist - process it [18:14:20]requested_item shift.opened is exist - process it [18:14:20]req_shift_opened [18:14:20]FM_GetShiftState [18:14:20]SAM_PROTO_GetShiftState [18:14:20]wFMCommunicate request_size=4 [18:14:20]MH_SAM_APDU [18:14:20]CAPDU: 80 13 01 00 [18:14:20]Write to MH i2c: E2 08 00 16 07 80 13 01 00 00 00 00 00 9A [18:14:20]Write i2c OK [18:14:20]MH_I2C_Read... [18:14:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:20]Read from MH i2c: E2 [18:14:20]MH_I2C_Read... [18:14:20]Read from MH i2c: E2 0E 00 [18:14:20]MH_I2C_Read... [18:14:20]Read from MH i2c: E2 0E 00 16 07 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 A9 [18:14:20]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [18:14:20]wFMCommunicate OK [18:14:20]SAM_PROTO_GetShiftState done [18:14:20]FM_GetShiftState done [18:14:20]req_shift_opened done [18:14:20]requested_item shift.open_date is exist - process it [18:14:20]req_shift_open_date [18:14:20]req_shift_open_date done [18:14:20]produce_requested_data done [18:14:20]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201631,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [18:14:20]process_action_free close_receipt [18:14:20]json_value_free [18:14:20]json_value_free done [18:14:20]process_json_proto returns [18:14:20]Send response to host [18:16:50]OFD Sender: No OFD packet to send [18:16:55]OFD Sender: No OFD packet to send [18:17:00]OFD Sender: No OFD packet to send [18:17:05]OFD Sender: No OFD packet to send [18:17:10]OFD Sender: No OFD packet to send [18:17:15]OFD Sender: No OFD packet to send [18:17:20]OFD Sender: No OFD packet to send [18:17:25]OFD Sender: No OFD packet to send [18:17:30]OFD Sender: No OFD packet to send [18:17:35]OFD Sender: No OFD packet to send [18:17:40]OFD Sender: No OFD packet to send [18:17:45]OFD Sender: No OFD packet to send [18:17:50]OFD Sender: No OFD packet to send [18:17:55]OFD Sender: No OFD packet to send [18:18:00]OFD Sender: No OFD packet to send [18:18:05]OFD Sender: No OFD packet to send [18:18:10]OFD Sender: No OFD packet to send [18:18:15]OFD Sender: No OFD packet to send [18:18:20]OFD Sender: No OFD packet to send [18:18:25]OFD Sender: No OFD packet to send [18:18:30]OFD Sender: No OFD packet to send [18:18:35]OFD Sender: No OFD packet to send [18:18:40]OFD Sender: No OFD packet to send [18:18:45]OFD Sender: No OFD packet to send [18:18:50]OFD Sender: No OFD packet to send [18:18:55]OFD Sender: No OFD packet to send [18:18:56]ConnectInit Can't connect to host [18:19:00]OFD Sender: No OFD packet to send [18:19:05]OFD Sender: No OFD packet to send [18:19:10]OFD Sender: No OFD packet to send [18:19:13]accept exits with 10 [18:19:13]New connection [18:19:13]New thread 3067424100 created [18:19:13]Thread 3067280740 joined [18:19:13]Waiting for new connection... [18:19:13] Sock 10.Parse request [18:19:13]Sock 10.Check first char [18:19:13]Sock 10.First char is OK [18:19:13]request: POST /json_proto HTTP/1.0 [18:19:13]Method: POST [18:19:13]URL: /json_proto [18:19:13]Method is POST - this is cgi request [18:19:13]url: /json_proto [18:19:13]query_string will be loaded in cgi processing [18:19:13]execute_cgi json_proto POST (null) [18:19:13]execute_cgi path=json_proto method=POST [18:19:13]POST find Content-Length [18:19:13]Host: 172.17.63.195:8080 [18:19:13]Content-Length: 677 [18:19:13]Content-Type: application/json [18:19:13] [18:19:13]POST finish read [18:19:13]Found Content-Length = 677 [18:19:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:19:13]execute_script... [18:19: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)449388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:19:13]POST & json_proto [18:19:13]process_json_proto [18:19:13]json parsed OK: [18:19:13]protocol is kg_v1.0 [18:19:13]action value=close_receipt [18:19:13]process_action close_receipt [18:19:13]cmd_close_receipt [18:19:13]MH_GetDate [18:19:13]Write to MH i2c: F0 00 00 17 07 0D [18:19:13]Write i2c OK [18:19:13]MH_I2C_Read... [18:19:13]Read from MH i2c: F0 [18:19:13]MH_I2C_Read... [18:19:13]Read from MH i2c: F0 09 00 [18:19:13]MH_I2C_Read... [18:19:13]Read from MH i2c: F0 09 00 17 07 00 A1 32 1D 67 68 46 19 67 9B [18:19:13]GetLastDocTimeStamp 1729966457 [18:19:13]current date 1729966753 [18:19:13]FM_GetShiftState [18:19:13]SAM_PROTO_GetShiftState [18:19:13]wFMCommunicate request_size=4 [18:19:13]MH_SAM_APDU [18:19:13]CAPDU: 80 13 01 00 [18:19:13]Write to MH i2c: E2 08 00 18 07 80 13 01 00 00 00 00 00 9C [18:19:13]Write i2c OK [18:19:13]MH_I2C_Read... [18:19:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:13]Read from MH i2c: E2 [18:19:13]MH_I2C_Read... [18:19:13]Read from MH i2c: E2 0E 00 [18:19:13]MH_I2C_Read... [18:19:13]Read from MH i2c: E2 0E 00 18 07 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 AB [18:19:13]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [18:19:13]wFMCommunicate OK [18:19:13]SAM_PROTO_GetShiftState done [18:19:13]FM_GetShiftState done [18:19:13]opened in 1729900879 [18:19:13]opened+sec_in_day 1729987279 [18:19:13]quantity*price = 30038 [18:19:13]sum+1 = 30039 [18:19:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 394 26.10.2024 18:19 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201632 ФПД: 271187168418353 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T181913&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201632&fm=271187168418353&tin=02508201610067®Number=0000000000091777&sum=30000 [18:19:14]StoreToDocumentArchive [18:19:14]shift 543 fd 201632 [18:19:14]save to /storage/0543/doc_00201632 [18:19:14]save last doc name /storage/0543/doc_00201632 to /storage/kkm_last_doc_name [18:19:14]save OK [18:19:14]Clear old archive folders... [18:19:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:19:14]tlvbuf is 01FAD230 [18:19:14]SAM_PROTO_ClearQueue [18:19:14]wFMCommunicate request_size=4 [18:19:14]MH_SAM_APDU [18:19:14]CAPDU: 80 09 00 00 [18:19:14]Write to MH i2c: E2 08 00 25 07 80 09 00 00 00 00 00 00 9E [18:19:14]Write i2c OK [18:19:14]MH_I2C_Read... [18:19:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:19:14]Read from MH i2c: E2 [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: E2 03 00 [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: E2 03 00 25 07 00 90 00 A0 [18:19:14]RAPDU: 90 00 [18:19:14]wFMCommunicate OK [18:19:14]SAM_PROTO_ClearQueue done [18:19:14]KKMCreateOFDPacket [18:19:14]OFDProtocolAddRootSTLVToBuf [18:19:14]FM_MakeSignedData [18:19:14]FM_MakeSignedData [18:19:14]SAM_PROTO_SignData [18:19:14]wFMCommunicate request_size=4 [18:19:14]MH_SAM_APDU [18:19:14]CAPDU: 80 0D 01 02 [18:19:14]Write to MH i2c: E2 08 00 26 07 80 0D 01 02 00 00 00 00 A6 [18:19:14]Write i2c OK [18:19:14]MH_I2C_Read... [18:19:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:19:14]Read from MH i2c: E2 [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: E2 03 00 [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: E2 03 00 26 07 00 90 00 A1 [18:19:14]RAPDU: 90 00 [18:19:14]wFMCommunicate OK [18:19:14]wFMCommunicate request_size=255 [18:19:14]MH_SAM_APDU [18:19: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 A1 32 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A0 13 03 00 35 04 06 00 F6 [18:19:14]Write to MH i2c: E2 02 01 27 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 A1 32 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A0 13 03 00 35 04 06 00 F6 00 00 DD [18:19:14]Write i2c OK [18:19:14]MH_I2C_Read... [18:19:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:14]Read from MH i2c: E2 [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: E2 03 00 [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: E2 03 00 27 07 00 90 00 A2 [18:19:14]RAPDU: 90 00 [18:19:14]wFMCommunicate OK [18:19:14]wFMCommunicate request_size=10 [18:19:14]MH_SAM_APDU [18:19:14]CAPDU: 80 0D 02 02 05 A4 AE D7 5A 31 [18:19:14]Write to MH i2c: E2 0D 00 28 07 80 0D 02 02 05 00 A4 AE D7 5A 31 00 00 67 [18:19:14]Write i2c OK [18:19:14]MH_I2C_Read... [18:19:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:14]Read from MH i2c: E2 [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: E2 03 00 [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: E2 03 00 28 07 00 90 00 A3 [18:19:14]RAPDU: 90 00 [18:19:14]wFMCommunicate OK [18:19:14]wFMCommunicate request_size=4 [18:19:14]MH_SAM_APDU [18:19:14]CAPDU: 80 0D 03 02 [18:19:14]Write to MH i2c: E2 08 00 29 07 80 0D 03 02 00 00 00 00 AB [18:19:14]Write i2c OK [18:19:14]MH_I2C_Read... [18:19:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:19:14]Read from MH i2c: E2 [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: E2 0B 00 [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: E2 0B 00 29 07 00 38 FD 73 09 61 49 15 8B 90 00 A7 [18:19:14]RAPDU: 38 FD 73 09 61 49 15 8B 90 00 [18:19:14]wFMCommunicate OK [18:19:14]SAM_PROTO_SignData done [18:19:14]FM_MakeSignedData done [18:19:14]CreateOFDProtocolMessage [18:19:14]wFMCommunicate request_size=4 [18:19:14]MH_SAM_APDU [18:19:14]CAPDU: 80 11 00 00 [18:19:14]Write to MH i2c: E2 08 00 2A 07 80 11 00 00 00 00 00 00 AB [18:19:14]Write i2c OK [18:19:14]MH_I2C_Read... [18:19:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:14]Read from MH i2c: E2 [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: E2 17 00 [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: E2 17 00 2A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 00 [18:19:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:19:14]wFMCommunicate OK [18:19:14]CreateOFDProtocolMessage done [18:19:14]OFDSenderStorePacket 201632 [18:19:14]StoreOFDPacket docnum=201632 [18:19:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B3 C1 07 01 74 5D 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 A1 32 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A0 13 03 00 35 04 06 00 F6 A4 AE D7 5A 31 38 FD 73 09 61 49 15 8B [18:19:14]CheckFolder [18:19:14]dirname=/storage/ofd_packets [18:19:14]CheckFolder done [18:19:14]ProducePacketName [18:19:14]name=ofd_packets/00201632 [18:19:14]NVStorageSaveData ofd_packets/00201632 [18:19:14]File name is /storage/ofd_packets/00201632 [18:19:14]Write 301 bytes [18:19:14]NVStorageSaveData done [18:19:14]OFDSenderStorePacket done [18:19:14]KKMCreateOFDPacket done [18:19:14]NVStorageSaveData kkm_last_timestamp [18:19:14]File name is /storage/kkm_last_timestamp [18:19:14]Write 4 bytes [18:19:14]NVStorageSaveData done [18:19:14]ExternCall_PrintAddStr [18:19:14]wPrintStart [18:19:14]Write to MH i2c: 01 00 00 2B 07 32 [18:19:14]Write i2c OK [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: 01 [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: 01 07 00 [18:19:14]MH_I2C_Read... [18:19:14]Read from MH i2c: 01 07 00 2B 07 00 00 00 00 00 FF 0F 47 [18:19:14]RasterBufferAndPrint [18:19:14]line Счет N : (1)449388 [18:19:14]line ИНН: 02508201610067 [18:19:14]line Контрольно-Кассовый Чек [18:19:14]line ПРОДАЖА [18:19:14]line ТРК (МРК, ГНК) : 62 [18:19:14]line Товар: 2710124130 [18:19:14]line Аи-92-К-2 [18:19:14]line 4.490 * 66.90 [18:19:14]line = 300.38 [18:19:14]line НДС 12% НСП 1% [18:19:14]line > о реализуемом товаре [18:19:14]line ОКРУГЛЕНИЕ: -0.38 [18:19:14]line ИТОГО: 300.00 [18:19:14]line Внесено: 300.00 [18:19:14]line СДАЧА: 0.00 [18:19:14]line НСП 1% : 2.66 [18:19:14]line НДС 12% : 31.90 [18:19:14]line Наличными: 300.00 [18:19:14]line Безнал.: 0.00 [18:19:14]line Место: АЗС № 171 "Партнер Нефть" [18:19:14]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:19:14]line СНО: Общий режим [18:19:14]line Чек 394 26.10.2024 18:19 [18:19:14]line Смена: 543 ФФД: 1.0 [18:19:14]line ЗНМ: 0300000109 [18:19:14]line РНМ: 0000000000091777 [18:19:14]line Версия ККМ: 001 [18:19:14]line ФМ: 0000000000871756 [18:19:14]line ФД: 201632 [18:19:14]line ФПД: 271187168418353 [18:19:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T181913&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201632&fm=271187168418353&tin=02508201610067®Number=0000000000091777&sum=30000 [18:19:15]OFD Sender: Processing packet 201632 [packets to send 112, broken 111] [18:19:15]ProducePacketName [18:19:15]name=ofd_packets/00201632 [18:19:15]OFD Sender: To server: pG, [18:19:15]CommunicateWithHost lk.salyk.kg:30040 [18:19:15]ConnectInit lk.salyk.kg [18:19:15]written 0, free lines is 4095 [18:19:15]Connected sock=11 [18:19:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B3 C1 07 01 74 5D 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 A1 32 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A0 13 03 00 35 04 06 00 F6 A4 AE D7 5A 31 38 FD 73 09 61 49 15 8B [18:19:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 3A 55 47 00 98 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A0 13 03 00 F4 03 04 00 4A DE 1C 67 B6 04 01 00 00 81 B7 36 30 02 92 5B D6 [18:19:15]CommunicateWithHost err = 0 [18:19:15]CheckOFDResponse [18:19:15]1017 (14) - 77093643461234 [18:19:15]1041 (16) - 0000000000871756 [18:19:15]1040 (4) - 201632 [18:19:15]1012 (4) - 26.10.2024 12:19 [18:19:15]1206 (1) - 0 [18:19:15]OFD Sender: Remove packet 201632 [18:19:15]ProducePacketName [18:19:15]name=ofd_packets/00201632 [18:19:15]NVStorageDeleteData [18:19:15]Write to MH i2c: 01 00 00 56 07 5D [18:19:15]Write i2c OK [18:19:15]MH_I2C_Read... [18:19:15]Read from MH i2c: 01 [18:19:15]MH_I2C_Read... [18:19:15]Read from MH i2c: 01 07 00 [18:19:15]MH_I2C_Read... [18:19:15]Read from MH i2c: 01 07 00 56 07 00 00 00 00 00 A0 0C 10 [18:19:15]RasterBufferAndPrint [18:19:15]line [18:19:15]line [18:19:15]line [18:19:15]line [18:19:15]line [18:19:15]written 0, free lines is 3238 [18:19:15]MH_Cut [18:19:15]Write to MH i2c: D1 01 00 5D 07 01 36 [18:19:15]Write i2c OK [18:19:15]MH_I2C_Read... [18:19:15]Read from MH i2c: D1 [18:19:15]MH_I2C_Read... [18:19:15]Read from MH i2c: D1 01 00 [18:19:15]MH_I2C_Read... [18:19:15]Read from MH i2c: D1 01 00 5D 07 00 35 [18:19:15]Write to MH i2c: 01 00 00 5E 07 65 [18:19:15]Write i2c OK [18:19:15]MH_I2C_Read... [18:19:16]OFD Sender: No OFD packet to send [18:19:16]*** Cut start [18:19:16]*** Purtial cut [18:19:16]*** Stage 1: CUTSNS_PIN = 1 [18:19:16]Read from MH i2c: 01 [18:19:16]MH_I2C_Read... [18:19:16]*** Stop cut motor [18:19:16]*** Cut end [18:19:16]Read from MH i2c: 01 07 00 [18:19:16]MH_I2C_Read... [18:19:16]Read from MH i2c: 01 07 00 5E 07 00 00 00 00 00 FF 0F 7A [18:19:16]process_action close_receipt done [18:19:16]requested_data is exist [18:19:16]produce_requested_data [18:19:16]requested_item fm.sn is exist - process it [18:19:16]wFMCommunicate request_size=4 [18:19:16]MH_SAM_APDU [18:19:16]CAPDU: 80 11 00 00 [18:19:16]Write to MH i2c: E2 08 00 5F 07 80 11 00 00 00 00 00 00 E0 [18:19:16]Write i2c OK [18:19:16]MH_I2C_Read... [18:19:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:16]Read from MH i2c: E2 [18:19:16]MH_I2C_Read... [18:19:16]Read from MH i2c: E2 17 00 [18:19:16]MH_I2C_Read... [18:19:16]Read from MH i2c: E2 17 00 5F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 35 [18:19:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:19:16]wFMCommunicate OK [18:19:16]requested_item fd.num is exist - process it [18:19:16]SAM_PROTO_GetFieldsCounters [18:19:16]wFMCommunicate request_size=4 [18:19:16]MH_SAM_APDU [18:19:16]CAPDU: 80 13 00 00 [18:19:16]Write to MH i2c: E2 08 00 60 07 80 13 00 00 00 00 00 00 E3 [18:19:16]Write i2c OK [18:19:16]MH_I2C_Read... [18:19:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:19:16]Read from MH i2c: E2 [18:19:16]MH_I2C_Read... [18:19:16]Read from MH i2c: E2 62 00 [18:19:16]MH_I2C_Read... [18:19:16]Read from MH i2c: E2 62 00 60 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A0 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8A 01 00 00 5E 04 04 00 8A 01 00 00 57 04 04 00 8B 01 00 00 19 04 04 00 00 00 00 00 90 00 84 [18:19:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A0 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8A 01 00 00 5E 04 04 00 8A 01 00 00 57 04 04 00 8B 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:19:16]wFMCommunicate OK [18:19:16]SAM_PROTO_GetFieldsCounters done [18:19:16]requested_item shift.num is exist - process it [18:19:16]requested_item shift.opened is exist - process it [18:19:16]req_shift_opened [18:19:16]FM_GetShiftState [18:19:16]SAM_PROTO_GetShiftState [18:19:16]wFMCommunicate request_size=4 [18:19:16]MH_SAM_APDU [18:19:16]CAPDU: 80 13 01 00 [18:19:16]Write to MH i2c: E2 08 00 61 07 80 13 01 00 00 00 00 00 E5 [18:19:16]Write i2c OK [18:19:16]MH_I2C_Read... [18:19:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:17]Read from MH i2c: E2 [18:19:17]MH_I2C_Read... [18:19:17]Read from MH i2c: E2 0E 00 [18:19:17]MH_I2C_Read... [18:19:17]Read from MH i2c: E2 0E 00 61 07 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F4 [18:19:17]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [18:19:17]wFMCommunicate OK [18:19:17]SAM_PROTO_GetShiftState done [18:19:17]FM_GetShiftState done [18:19:17]req_shift_opened done [18:19:17]requested_item shift.open_date is exist - process it [18:19:17]req_shift_open_date [18:19:17]req_shift_open_date done [18:19:17]produce_requested_data done [18:19:17]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201632,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [18:19:17]process_action_free close_receipt [18:19:17]json_value_free [18:19:17]json_value_free done [18:19:17]process_json_proto returns [18:19:17]Send response to host [18:19:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201632,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [18:19:17]free response buf [18:19:17]execute_script done [18:19:17]execute_script returns [18:19:17]free content buf [18:19:17]Sock 10.Close socket [18:19:17]Sock 10.Thread stoped [18:19:21]OFD Sender: No OFD packet to send [18:19:26]OFD Sender: No OFD packet to send [18:19:31]OFD Sender: No OFD packet to send [18:19:36]OFD Sender: No OFD packet to send [18:19:41]OFD Sender: No OFD packet to send [18:19:46]OFD Sender: No OFD packet to send [18:19:51]OFD Sender: No OFD packet to send [18:19:56]OFD Sender: No OFD packet to send [18:20:01]OFD Sender: No OFD packet to send [18:20:06]OFD Sender: No OFD packet to send [18:20:11]OFD Sender: No OFD packet to send [18:20:16]OFD Sender: No OFD packet to send [18:20:21]OFD Sender: No OFD packet to send [18:20:26]OFD Sender: No OFD packet to send [18:20:31]OFD Sender: No OFD packet to send [18:20:36]OFD Sender: No OFD packet to send [18:20:41]OFD Sender: No OFD packet to send [18:20:46]OFD Sender: No OFD packet to send [18:20:51]OFD Sender: No OFD packet to send [18:20:56]OFD Sender: No OFD packet to send [18:21:01]OFD Sender: No OFD packet to send [18:21:06]OFD Sender: No OFD packet to send [18:21:11]OFD Sender: No OFD packet to send [18:21:16]OFD Sender: No OFD packet to send [18:21:21]OFD Sender: No OFD packet to send [18:21:26]OFD Sender: No OFD packet to send [18:21:31]OFD Sender: No OFD packet to send [18:21:36]OFD Sender: No OFD packet to send [18:21:41]OFD Sender: No OFD packet to send [18:21:46]OFD Sender: No OFD packet to send [18:21:51]OFD Sender: No OFD packet to send [18:21:56]OFD Sender: No OFD packet to send [18:22:01]OFD Sender: No OFD packet to send [18:22:06]OFD Sender: No OFD packet to send [18:22:11]OFD Sender: No OFD packet to send [18:22:16]OFD Sender: No OFD packet to send [18:22:21]OFD Sender: No OFD packet to send [18:22:26]OFD Sender: No OFD packet to send [18:22:31]OFD Sender: No OFD packet to send [18:22:36]OFD Sender: No OFD packet to send [18:22:41]OFD Sender: No OFD packet to send [18:22:46]OFD Sender: No OFD packet to send [18:22:51]OFD Sender: No OFD packet to send [18:22:56]OFD Sender: No OFD packet to send [18:23:01]OFD Sender: No OFD packet to send [18:23:06]OFD Sender: No OFD packet to send [18:23:11]OFD Sender: No OFD packet to send [18:23:16]OFD Sender: No OFD packet to send [18:23:21]OFD Sender: No OFD packet to send [18:23:26]OFD Sender: No OFD packet to send [18:23:31]OFD Sender: No OFD packet to send [18:23:36]OFD Sender: No OFD packet to send [18:23:41]OFD Sender: No OFD packet to send [18:23:46]OFD Sender: No OFD packet to send [18:23:51]OFD Sender: No OFD packet to send [18:23:56]OFD Sender: No OFD packet to send [18:24:01]OFD Sender: No OFD packet to send [18:24:06]OFD Sender: No OFD packet to send [18:24:11]OFD Sender: No OFD packet to send [18:24:16]OFD Sender: No OFD packet to send [18:24:21]OFD Sender: No OFD packet to send [18:24:26]OFD Sender: No OFD packet to send [18:24:31]OFD Sender: No OFD packet to send [18:24:36]OFD Sender: No OFD packet to send [18:24:41]OFD Sender: No OFD packet to send [18:24:46]OFD Sender: No OFD packet to send [18:24:51]OFD Sender: No OFD packet to send [18:24:56]OFD Sender: No OFD packet to send [18:25:01]OFD Sender: No OFD packet to send [18:25:06]OFD Sender: No OFD packet to send [18:25:11]OFD Sender: No OFD packet to send [18:25:16]OFD Sender: No OFD packet to send [18:25:21]OFD Sender: No OFD packet to send [18:25:26]OFD Sender: No OFD packet to send [18:25:31]OFD Sender: No OFD packet to send [18:25:36]OFD Sender: No OFD packet to send [18:25:41]OFD Sender: No OFD packet to send [18:25:46]OFD Sender: No OFD packet to send [18:25:51]OFD Sender: No OFD packet to send [18:25:56]OFD Sender: No OFD packet to send [18:26:01]OFD Sender: No OFD packet to send [18:26:06]OFD Sender: No OFD packet to send [18:26:11]OFD Sender: No OFD packet to send [18:26:16]OFD Sender: No OFD packet to send [18:26:21]OFD Sender: No OFD packet to send [18:26:26]OFD Sender: No OFD packet to send [18:26:31]OFD Sender: No OFD packet to send [18:26:36]OFD Sender: No OFD packet to send [18:26:41]OFD Sender: No OFD packet to send [18:26:46]OFD Sender: No OFD packet to send [18:26:51]OFD Sender: No OFD packet to send [18:26:56]OFD Sender: No OFD packet to send [18:27:01]OFD Sender: No OFD packet to send [18:27:06]OFD Sender: No OFD packet to send [18:27:11]OFD Sender: No OFD packet to send [18:27:16]OFD Sender: No OFD packet to send [18:27:21]OFD Sender: No OFD packet to send [18:27:26]OFD Sender: No OFD packet to send [18:27:31]OFD Sender: No OFD packet to send [18:27:36]OFD Sender: No OFD packet to send [18:27:41]OFD Sender: No OFD packet to send [18:27:46]OFD Sender: No OFD packet to send [18:27:51]OFD Sender: No OFD packet to send [18:27:56]OFD Sender: No OFD packet to send [18:28:01]OFD Sender: No OFD packet to send [18:28:06]OFD Sender: No OFD packet to send [18:28:11]OFD Sender: No OFD packet to send [18:28:16]OFD Sender: No OFD packet to send [18:28:21]OFD Sender: No OFD packet to send [18:28:26]OFD Sender: No OFD packet to send [18:28:31]OFD Sender: No OFD packet to send [18:28:36]OFD Sender: No OFD packet to send [18:28:41]OFD Sender: No OFD packet to send [18:28:46]OFD Sender: No OFD packet to send [18:28:51]OFD Sender: No OFD packet to send [18:28:56]OFD Sender: No OFD packet to send [18:29:01]OFD Sender: No OFD packet to send [18:29:06]OFD Sender: No OFD packet to send [18:29:11]OFD Sender: No OFD packet to send [18:29:16]OFD Sender: No OFD packet to send [18:29:21]OFD Sender: No OFD packet to send [18:29:26]OFD Sender: No OFD packet to send [18:29:31]OFD Sender: No OFD packet to send [18:29:36]OFD Sender: No OFD packet to send [18:29:41]OFD Sender: No OFD packet to send [18:29:46]OFD Sender: No OFD packet to send [18:29:51]OFD Sender: No OFD packet to send [18:29:56]OFD Sender: No OFD packet to send [18:30:01]OFD Sender: No OFD packet to send [18:30:06]OFD Sender: No OFD packet to send [18:30:11]OFD Sender: No OFD packet to send [18:30:16]OFD Sender: No OFD packet to send [18:30:21]OFD Sender: No OFD packet to send [18:30:26]OFD Sender: No OFD packet to send [18:30:31]OFD Sender: No OFD packet to send [18:30:36]OFD Sender: No OFD packet to send [18:30:41]OFD Sender: No OFD packet to send [18:30:46]OFD Sender: No OFD packet to send [18:30:51]OFD Sender: No OFD packet to send [18:30:56]OFD Sender: No OFD packet to send [18:31:01]OFD Sender: No OFD packet to send [18:31:06]OFD Sender: No OFD packet to send [18:31:11]OFD Sender: No OFD packet to send [18:31:16]OFD Sender: No OFD packet to send [18:31:21]OFD Sender: No OFD packet to send [18:31:26]OFD Sender: No OFD packet to send [18:31:31]OFD Sender: No OFD packet to send [18:31:36]OFD Sender: No OFD packet to send [18:31:41]OFD Sender: No OFD packet to send [18:31:46]OFD Sender: No OFD packet to send [18:31:51]OFD Sender: No OFD packet to send [18:31:56]OFD Sender: No OFD packet to send [18:32:01]accept exits with 9 [18:32:01]New connection [18:32:01]New thread 3067280740 created [18:32:01]Thread 3067424100 joined [18:32:01]Waiting for new connection... [18:32:01] Sock 9.Parse request [18:32:01]Sock 9.Check first char [18:32:01]Sock 9.First char is OK [18:32:01]request: POST /json_proto HTTP/1.0 [18:32:01]Method: POST [18:32:01]URL: /json_proto [18:32:01]Method is POST - this is cgi request [18:32:01]url: /json_proto [18:32:01]query_string will be loaded in cgi processing [18:32:01]execute_cgi json_proto POST (null) [18:32:01]execute_cgi path=json_proto method=POST [18:32:01]POST find Content-Length [18:32:01]Host: 172.17.63.195:8080 [18:32:01]Content-Length: 682 [18:32:01]Content-Type: application/json [18:32:01] [18:32:01]POST finish read [18:32:01]Found Content-Length = 682 [18:32:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [18:32:01]execute_script... [18:32: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)449389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [18:32:01]POST & json_proto [18:32:01]process_json_proto [18:32:01]json parsed OK: [18:32:01]protocol is kg_v1.0 [18:32:01]action value=close_receipt [18:32:01]process_action close_receipt [18:32:01]cmd_close_receipt [18:32:01]MH_GetDate [18:32:01]Write to MH i2c: F0 00 00 62 07 58 [18:32:01]Write i2c OK [18:32:01]MH_I2C_Read... [18:32:01]Read from MH i2c: F0 [18:32:01]MH_I2C_Read... [18:32:01]Read from MH i2c: F0 09 00 [18:32:01]MH_I2C_Read... [18:32:01]Read from MH i2c: F0 09 00 62 07 00 A2 35 1D 67 68 46 19 67 EA [18:32:01]GetLastDocTimeStamp 1729966753 [18:32:01]current date 1729967522 [18:32:01]FM_GetShiftState [18:32:01]SAM_PROTO_GetShiftState [18:32:01]wFMCommunicate request_size=4 [18:32:01]MH_SAM_APDU [18:32:01]CAPDU: 80 13 01 00 [18:32:01]Write to MH i2c: E2 08 00 63 07 80 13 01 00 00 00 00 00 E7 [18:32:01]Write i2c OK [18:32:01]MH_I2C_Read... [18:32:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:01]Read from MH i2c: E2 [18:32:01]MH_I2C_Read... [18:32:01]Read from MH i2c: E2 0E 00 [18:32:01]MH_I2C_Read... [18:32:01]Read from MH i2c: E2 0E 00 63 07 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F6 [18:32:01]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [18:32:01]wFMCommunicate OK [18:32:01]SAM_PROTO_GetShiftState done [18:32:01]FM_GetShiftState done [18:32:01]opened in 1729900879 [18:32:01]opened+sec_in_day 1729987279 [18:32:01]quantity*price = 100015 [18:32:01]sum+1 = 100017 [18:32:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 395 26.10.2024 18:32 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201633 ФПД: 36839961755032 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T183202&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201633&fm=36839961755032&tin=02508201610067®Number=0000000000091777&sum=100000 [18:32:02]StoreToDocumentArchive [18:32:02]shift 543 fd 201633 [18:32:02]save to /storage/0543/doc_00201633 [18:32:02]save last doc name /storage/0543/doc_00201633 to /storage/kkm_last_doc_name [18:32:02]save OK [18:32:02]Clear old archive folders... [18:32:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:32:02]tlvbuf is 01FC6E00 [18:32:02]SAM_PROTO_ClearQueue [18:32:02]wFMCommunicate request_size=4 [18:32:02]MH_SAM_APDU [18:32:02]CAPDU: 80 09 00 00 [18:32:02]Write to MH i2c: E2 08 00 70 07 80 09 00 00 00 00 00 00 E9 [18:32:02]Write i2c OK [18:32:02]MH_I2C_Read... [18:32:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:32:02]Read from MH i2c: E2 [18:32:02]MH_I2C_Read... [18:32:02]Read from MH i2c: E2 03 00 [18:32:02]MH_I2C_Read... [18:32:02]Read from MH i2c: E2 03 00 70 07 00 90 00 EB [18:32:02]RAPDU: 90 00 [18:32:02]wFMCommunicate OK [18:32:02]SAM_PROTO_ClearQueue done [18:32:02]KKMCreateOFDPacket [18:32:02]OFDProtocolAddRootSTLVToBuf [18:32:02]FM_MakeSignedData [18:32:02]FM_MakeSignedData [18:32:02]SAM_PROTO_SignData [18:32:02]wFMCommunicate request_size=4 [18:32:02]MH_SAM_APDU [18:32:02]CAPDU: 80 0D 01 02 [18:32:02]Write to MH i2c: E2 08 00 71 07 80 0D 01 02 00 00 00 00 F1 [18:32:02]Write i2c OK [18:32:02]MH_I2C_Read... [18:32:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:32:02]Read from MH i2c: E2 [18:32:02]MH_I2C_Read... [18:32:02]Read from MH i2c: E2 03 00 [18:32:02]MH_I2C_Read... [18:32:02]Read from MH i2c: E2 03 00 71 07 00 90 00 EC [18:32:02]RAPDU: 90 00 [18:32:02]wFMCommunicate OK [18:32:02]wFMCommunicate request_size=255 [18:32:02]MH_SAM_APDU [18:32: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 32 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 8B 01 00 00 F4 03 04 00 A2 35 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A1 13 03 00 35 04 06 00 21 [18:32:02]Write to MH i2c: E2 02 01 72 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 32 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 8B 01 00 00 F4 03 04 00 A2 35 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A1 13 03 00 35 04 06 00 21 00 00 5F [18:32:02]Write i2c OK [18:32:02]MH_I2C_Read... [18:32:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:02]Read from MH i2c: E2 [18:32:02]MH_I2C_Read... [18:32:02]Read from MH i2c: E2 03 00 [18:32:02]MH_I2C_Read... [18:32:02]Read from MH i2c: E2 03 00 72 07 00 90 00 ED [18:32:02]RAPDU: 90 00 [18:32:02]wFMCommunicate OK [18:32:02]wFMCommunicate request_size=10 [18:32:02]MH_SAM_APDU [18:32:02]CAPDU: 80 0D 02 02 05 81 78 D5 7D 98 [18:32:02]Write to MH i2c: E2 0D 00 73 07 80 0D 02 02 05 00 81 78 D5 7D 98 00 00 E1 [18:32:02]Write i2c OK [18:32:02]MH_I2C_Read... [18:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:03]Read from MH i2c: E2 [18:32:03]MH_I2C_Read... [18:32:03]Read from MH i2c: E2 03 00 [18:32:03]MH_I2C_Read... [18:32:03]Read from MH i2c: E2 03 00 73 07 00 90 00 EE [18:32:03]RAPDU: 90 00 [18:32:03]wFMCommunicate OK [18:32:03]wFMCommunicate request_size=4 [18:32:03]MH_SAM_APDU [18:32:03]CAPDU: 80 0D 03 02 [18:32:03]Write to MH i2c: E2 08 00 74 07 80 0D 03 02 00 00 00 00 F6 [18:32:03]Write i2c OK [18:32:03]MH_I2C_Read... [18:32:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:32:03]Read from MH i2c: E2 [18:32:03]MH_I2C_Read... [18:32:03]Read from MH i2c: E2 0B 00 [18:32:03]MH_I2C_Read... [18:32:03]Read from MH i2c: E2 0B 00 74 07 00 69 2A 8F BA 45 CB 52 9D 90 00 D2 [18:32:03]RAPDU: 69 2A 8F BA 45 CB 52 9D 90 00 [18:32:03]wFMCommunicate OK [18:32:03]SAM_PROTO_SignData done [18:32:03]FM_MakeSignedData done [18:32:03]CreateOFDProtocolMessage [18:32:03]wFMCommunicate request_size=4 [18:32:03]MH_SAM_APDU [18:32:03]CAPDU: 80 11 00 00 [18:32:03]Write to MH i2c: E2 08 00 75 07 80 11 00 00 00 00 00 00 F6 [18:32:03]Write i2c OK [18:32:03]MH_I2C_Read... [18:32:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:03]Read from MH i2c: E2 [18:32:03]MH_I2C_Read... [18:32:03]Read from MH i2c: E2 17 00 [18:32:03]MH_I2C_Read... [18:32:03]Read from MH i2c: E2 17 00 75 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4B [18:32:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:32:03]wFMCommunicate OK [18:32:03]CreateOFDProtocolMessage done [18:32:03]OFDSenderStorePacket 201633 [18:32:03]StoreOFDPacket docnum=201633 [18:32:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 50 BE 07 01 72 DF 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 32 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 8B 01 00 00 F4 03 04 00 A2 35 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A1 13 03 00 35 04 06 00 21 81 78 D5 7D 98 69 2A 8F BA 45 CB 52 9D [18:32:03]CheckFolder [18:32:03]dirname=/storage/ofd_packets [18:32:03]CheckFolder done [18:32:03]ProducePacketName [18:32:03]name=ofd_packets/00201633 [18:32:03]NVStorageSaveData ofd_packets/00201633 [18:32:03]File name is /storage/ofd_packets/00201633 [18:32:03]Write 301 bytes [18:32:03]NVStorageSaveData done [18:32:03]OFDSenderStorePacket done [18:32:03]KKMCreateOFDPacket done [18:32:03]NVStorageSaveData kkm_last_timestamp [18:32:03]File name is /storage/kkm_last_timestamp [18:32:03]Write 4 bytes [18:32:03]NVStorageSaveData done [18:32:03]OFD Sender: Processing packet 201633 [packets to send 112, broken 111] [18:32:03]ProducePacketName [18:32:03]name=ofd_packets/00201633 [18:32:03]OFD Sender: To server: pG, [18:32:03]CommunicateWithHost lk.salyk.kg:30040 [18:32:03]ConnectInit lk.salyk.kg [18:32:03]ExternCall_PrintAddStr [18:32:03]wPrintStart [18:32:03]Write to MH i2c: 01 00 00 76 07 7D [18:32:03]Write i2c OK [18:32:03]MH_I2C_Read... [18:32:03]Read from MH i2c: 01 [18:32:03]MH_I2C_Read... [18:32:03]Read from MH i2c: 01 07 00 [18:32:03]MH_I2C_Read... [18:32:03]Read from MH i2c: 01 07 00 76 07 00 00 00 00 00 FF 0F 92 [18:32:03]RasterBufferAndPrint [18:32:03]line Счет N : (1)449389 [18:32:03]line ИНН: 02508201610067 [18:32:03]line Контрольно-Кассовый Чек [18:32:03]line ПРОДАЖА [18:32:03]line ТРК (МРК, ГНК) : 41 [18:32:03]line Товар: 2710124130 [18:32:03]line Аи-92-К-2 [18:32:03]line 14.950 * 66.90 [18:32:03]line = 1000.16 [18:32:03]line НДС 12% НСП 1% [18:32:03]line > о реализуемом товаре [18:32:03]line ОКРУГЛЕНИЕ: -0.16 [18:32:03]line ИТОГО: 1000.00 [18:32:03]line Внесено: 1000.00 [18:32:03]line СДАЧА: 0.00 [18:32:03]line НСП 1% : 8.85 [18:32:03]line НДС 12% : 106.21 [18:32:03]line Наличными: 1000.00 [18:32:03]line Безнал.: 0.00 [18:32:03]line Место: АЗС № 171 "Партнер Нефть" [18:32:03]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:32:03]line СНО: Общий режим [18:32:03]line Чек 395 26.10.2024 18:32 [18:32:03]line Смена: 543 ФФД: 1.0 [18:32:03]line ЗНМ: 0300000109 [18:32:03]line РНМ: 0000000000091777 [18:32:03]line Версия ККМ: 001 [18:32:03]line ФМ: 0000000000871756 [18:32:03]line ФД: 201633 [18:32:03]line ФПД: 36839961755032 [18:32:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T183202&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201633&fm=36839961755032&tin=02508201610067®Number=0000000000091777&sum=100000 [18:32:03]written 0, free lines is 4095 [18:32:03]Write to MH i2c: 01 00 00 A1 07 A8 [18:32:03]Write i2c OK [18:32:03]MH_I2C_Read... [18:32:03]Read from MH i2c: 01 [18:32:03]MH_I2C_Read... [18:32:03]Read from MH i2c: 01 07 00 [18:32:03]MH_I2C_Read... [18:32:03]Read from MH i2c: 01 07 00 A1 07 00 00 00 00 00 94 0C 4F [18:32:03]RasterBufferAndPrint [18:32:03]line [18:32:03]line [18:32:03]line [18:32:03]line [18:32:03]line [18:32:03]written 0, free lines is 3225 [18:32:03]MH_Cut [18:32:03]Write to MH i2c: D1 01 00 A8 07 01 81 [18:32:03]Write i2c OK [18:32:03]MH_I2C_Read... [18:32:03]Read from MH i2c: D1 [18:32:03]MH_I2C_Read... [18:32:03]Read from MH i2c: D1 01 00 [18:32:03]MH_I2C_Read... [18:32:03]Read from MH i2c: D1 01 00 A8 07 00 80 [18:32:03]Write to MH i2c: 01 00 00 A9 07 B0 [18:32:03]Write i2c OK [18:32:03]MH_I2C_Read... [18:32:04]*** Cut start [18:32:04]*** Purtial cut [18:32:04]*** Stage 1: CUTSNS_PIN = 1 [18:32:05]Read from MH i2c: 01 [18:32:05]MH_I2C_Read... [18:32:05]*** Stop cut motor [18:32:05]*** Cut end [18:32:05]Read from MH i2c: 01 07 00 [18:32:05]MH_I2C_Read... [18:32:05]Read from MH i2c: 01 07 00 A9 07 00 00 00 00 00 FF 0F C5 [18:32:05]process_action close_receipt done [18:32:05]requested_data is exist [18:32:05]produce_requested_data [18:32:05]requested_item fm.sn is exist - process it [18:32:05]wFMCommunicate request_size=4 [18:32:05]MH_SAM_APDU [18:32:05]CAPDU: 80 11 00 00 [18:32:05]Write to MH i2c: E2 08 00 AA 07 80 11 00 00 00 00 00 00 2B [18:32:05]Write i2c OK [18:32:05]MH_I2C_Read... [18:32:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:05]Read from MH i2c: E2 [18:32:05]MH_I2C_Read... [18:32:05]Read from MH i2c: E2 17 00 [18:32:05]MH_I2C_Read... [18:32:05]Read from MH i2c: E2 17 00 AA 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 80 [18:32:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:32:05]wFMCommunicate OK [18:32:05]requested_item fd.num is exist - process it [18:32:05]SAM_PROTO_GetFieldsCounters [18:32:05]wFMCommunicate request_size=4 [18:32:05]MH_SAM_APDU [18:32:05]CAPDU: 80 13 00 00 [18:32:05]Write to MH i2c: E2 08 00 AB 07 80 13 00 00 00 00 00 00 2E [18:32:05]Write i2c OK [18:32:05]MH_I2C_Read... [18:32:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:32:05]Read from MH i2c: E2 [18:32:05]MH_I2C_Read... [18:32:05]Read from MH i2c: E2 62 00 [18:32:05]MH_I2C_Read... [18:32:05]Read from MH i2c: E2 62 00 AB 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A1 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8B 01 00 00 5E 04 04 00 8B 01 00 00 57 04 04 00 8C 01 00 00 19 04 04 00 00 00 00 00 90 00 D3 [18:32:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A1 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8B 01 00 00 5E 04 04 00 8B 01 00 00 57 04 04 00 8C 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:32:05]wFMCommunicate OK [18:32:05]SAM_PROTO_GetFieldsCounters done [18:32:05]requested_item shift.num is exist - process it [18:32:05]requested_item shift.opened is exist - process it [18:32:05]req_shift_opened [18:32:05]FM_GetShiftState [18:32:05]SAM_PROTO_GetShiftState [18:32:05]wFMCommunicate request_size=4 [18:32:05]MH_SAM_APDU [18:32:05]CAPDU: 80 13 01 00 [18:32:05]Write to MH i2c: E2 08 00 AC 07 80 13 01 00 00 00 00 00 30 [18:32:05]Write i2c OK [18:32:05]MH_I2C_Read... [18:32:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:05]Read from MH i2c: E2 [18:32:05]MH_I2C_Read... [18:32:05]Read from MH i2c: E2 0E 00 [18:32:05]MH_I2C_Read... [18:32:05]Read from MH i2c: E2 0E 00 AC 07 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 3F [18:32:05]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [18:32:05]wFMCommunicate OK [18:32:05]SAM_PROTO_GetShiftState done [18:32:05]FM_GetShiftState done [18:32:05]req_shift_opened done [18:32:05]requested_item shift.open_date is exist - process it [18:32:05]req_shift_open_date [18:32:05]req_shift_open_date done [18:32:05]produce_requested_data done [18:32:05]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201633,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [18:32:05]process_action_free close_receipt [18:32:05]json_value_free [18:32:05]json_value_free done [18:32:05]process_json_proto returns [18:32:05]Send response to host [18:32:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201633,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [18:32:05]free response buf [18:32:05]execute_script done [18:32:05]execute_script returns [18:32:05]free content buf [18:32:05]Sock 9.Close socket [18:32:05]Sock 9.Thread stoped [18:34:13]ConnectInit Can't connect to host [18:34:13]CommunicateWithHost connect error [18:34:13]CommunicateWithHost err = -1 [18:34:13]OFD Sender: Server communicate error [18:34:18]OFD Sender: Processing packet 201633 [packets to send 112, broken 111] [18:34:18]ProducePacketName [18:34:18]name=ofd_packets/00201633 [18:34:18]OFD Sender: To server: pG, [18:34:18]CommunicateWithHost lk.salyk.kg:30040 [18:34:18]ConnectInit lk.salyk.kg [18:34:18]Connected sock=9 [18:34:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 50 BE 07 01 72 DF 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 32 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 8B 01 00 00 F4 03 04 00 A2 35 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A1 13 03 00 35 04 06 00 21 81 78 D5 7D 98 69 2A 8F BA 45 CB 52 9D [18:34:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 5D 38 47 00 FB 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A1 13 03 00 F4 03 04 00 D1 E1 1C 67 B6 04 01 00 00 82 61 43 0E 78 86 BC A0 [18:34:18]CommunicateWithHost err = 0 [18:34:18]CheckOFDResponse [18:34:18]1017 (14) - 77093643461234 [18:34:18]1041 (16) - 0000000000871756 [18:34:18]1040 (4) - 201633 [18:34:18]1012 (4) - 26.10.2024 12:34 [18:34:18]1206 (1) - 0 [18:34:18]OFD Sender: Remove packet 201633 [18:34:18]ProducePacketName [18:34:18]name=ofd_packets/00201633 [18:34:18]NVStorageDeleteData [18:34:18]OFD Sender: No OFD packet to send [18:34:23]OFD Sender: No OFD packet to send [18:35:27]ConnectInit Can't connect to host [18:35:27]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [18:35:27]Read from MH i2c: E2 [18:35:27]MH_I2C_Read... [18:35:27]Read from MH i2c: E2 03 00 [18:35:27]MH_I2C_Read... [18:35:27]Read from MH i2c: E2 03 00 17 00 00 90 00 8B [18:35:27]RAPDU: 90 00 [18:35:27]wFMCommunicate OK [18:35:27]wFMCommunicate request_size=15 [18:35:27]MH_SAM_APDU [18:35:27]CAPDU: 80 15 02 00 0A 39 04 06 00 00 00 00 00 00 00 [18:35:27]Write to MH i2c: E2 12 00 18 00 80 15 02 00 0A 00 39 04 06 00 00 00 00 00 00 00 00 00 EF [18:35:27]Write i2c OK [18:35:27]MH_I2C_Read... [18:35:27]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [18:35:27]Read from MH i2c: E2 [18:35:27]MH_I2C_Read... [18:35:27]Read from MH i2c: E2 03 00 [18:35:27]MH_I2C_Read... [18:35:27]Read from MH i2c: E2 03 00 18 00 00 90 00 8C [18:35:27]RAPDU: 90 00 [18:35:27]wFMCommunicate OK [18:35:27]wFMCommunicate request_size=11 [18:35:27]MH_SAM_APDU [18:35:27]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [18:35:27]Write to MH i2c: E2 0E 00 19 00 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 CB [18:35:27]Write i2c OK [18:35:27]MH_I2C_Read... [18:35:27]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [18:35:27]Read from MH i2c: E2 [18:35:27]MH_I2C_Read... [18:35:27]Read from MH i2c: E2 03 00 [18:35:27]MH_I2C_Read... [18:35:27]Read from MH i2c: E2 03 00 19 00 00 90 00 8D [18:35:27]RAPDU: 90 00 [18:35:27]wFMCommunicate OK [18:35:27]wFMCommunicate request_size=13 [18:35:27]MH_SAM_APDU [18:35:27]CAPDU: 80 15 02 00 08 F4 03 04 00 6E 36 1D 67 [18:35:27]Write to MH i2c: E2 10 00 1A 00 80 15 02 00 08 00 F4 03 04 00 6E 36 1D 67 00 00 CD [18:35:27]Write i2c OK [18:35:27]MH_I2C_Read... [18:35:27]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [18:35:27]Read from MH i2c: E2 [18:35:27]MH_I2C_Read... [18:35:27]Read from MH i2c: E2 03 00 [18:35:27]MH_I2C_Read... [18:35:27]Read from MH i2c: E2 03 00 1A 00 00 90 00 8E [18:35:27]RAPDU: 90 00 [18:35:27]wFMCommunicate OK [18:35:27]wFMCommunicate request_size=25 [18:35:27]MH_SAM_APDU [18:35:27]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 [18:35:27]Write to MH i2c: E2 1C 00 1B 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 00 00 03 [18:35:27]Write i2c OK [18:35:27]MH_I2C_Read... [18:35:27]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [18:35:27]Read from MH i2c: E2 [18:35:27]MH_I2C_Read... [18:35:27]Read from MH i2c: E2 03 00 [18:35:27]MH_I2C_Read... [18:35:27]Read from MH i2c: E2 03 00 1B 00 00 90 00 8F [18:35:27]RAPDU: 90 00 [18:35:27]wFMCommunicate OK [18:35:27]wFMCommunicate request_size=4 [18:35:27]MH_SAM_APDU [18:35:27]CAPDU: 80 15 03 00 [18:35:27]Write to MH i2c: E2 08 00 1C 00 80 15 03 00 00 00 00 00 9D [18:35:27]Write i2c OK [18:35:27]MH_I2C_Read... [18:35:27]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [18:35:27]Read from MH i2c: E2 [18:35:27]MH_I2C_Read... [18:35:27]Read from MH i2c: E2 40 00 [18:35:27]MH_I2C_Read... [18:35:27]Read from MH i2c: E2 40 00 1C 00 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A2 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8C 01 00 00 35 04 06 00 78 5C E7 22 16 4A 90 00 38 [18:35:27]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A2 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8C 01 00 00 35 04 06 00 78 5C E7 22 16 4A 90 00 [18:35:27]wFMCommunicate OK [18:35:27]SAM_PROTO_ProcessDocument answer len = 59 [18:35:27]SAM_PROTO_ProcessDocument done [18:35:27]SetTLVBufToDocument [18:35:27]Processing tag 1209 (04B9) [18:35:27]Malloc new data [18:35:27]Processing tag 1041 (0411) [18:35:27]Processing tag 1040 (0410) [18:35:27]Malloc new data [18:35:27]Processing tag 1038 (040E) [18:35:27]Malloc new data [18:35:27]Processing tag 1042 (0412) [18:35:27]Malloc new data [18:35:27]Processing tag 1077 (0435) [18:35:27]Malloc new data [18:35:27]SetTLVBufToDocument err=0 [18:35:27]KKMLoadAndSignReceiptData store KKM data [18:35:27]KKMLoadAndSignReceiptData err=0 [18:35:27]wFMCommunicate request_size=4 [18:35:27]MH_SAM_APDU [18:35:27]CAPDU: 80 11 00 00 [18:35:27]Write to MH i2c: E2 08 00 1D 00 80 11 00 00 00 00 00 00 97 [18:35:27]Write i2c OK [18:35:27]MH_I2C_Read... [18:35:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:27]Read from MH i2c: E2 [18:35:27]MH_I2C_Read... [18:35:27]Read from MH i2c: E2 17 00 [18:35:27]MH_I2C_Read... [18:35:27]Read from MH i2c: E2 17 00 1D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EC [18:35:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:35:27]wFMCommunicate OK [18:35:27]Счет N : (1)449390 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 31 Товар: 2710124130 Аи-92-К-2 7.480 * 66.90 = 500.41 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 396 26.10.2024 18:35 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201634 ФПД: 132340410095178 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T183526&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201634&fm=132340410095178&tin=02508201610067®Number=0000000000091777&sum=50000 [18:35:27]StoreToDocumentArchive [18:35:27]shift 543 fd 201634 [18:35:27]save to /storage/0543/doc_00201634 [18:35:27]save last doc name /storage/0543/doc_00201634 to /storage/kkm_last_doc_name [18:35:27]save OK [18:35:27]Clear old archive folders... [18:35:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:35:27]tlvbuf is 0104C830 [18:35:27]SAM_PROTO_ClearQueue [18:35:27]wFMCommunicate request_size=4 [18:35:27]MH_SAM_APDU [18:35:27]CAPDU: 80 09 00 00 [18:35:27]Write to MH i2c: E2 08 00 1E 00 80 09 00 00 00 00 00 00 90 [18:35:27]Write i2c OK [18:35:27]MH_I2C_Read... [18:35:27]Read from MH i2c: E2 [18:35:27]MH_I2C_Read... [18:35:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:27]Read from MH i2c: E2 03 00 [18:35:27]MH_I2C_Read... [18:35:27]Read from MH i2c: E2 03 00 1E 00 00 90 00 92 [18:35:27]RAPDU: 90 00 [18:35:27]wFMCommunicate OK [18:35:27]SAM_PROTO_ClearQueue done [18:35:27]KKMCreateOFDPacket [18:35:27]OFDProtocolAddRootSTLVToBuf [18:35:27]FM_MakeSignedData [18:35:27]FM_MakeSignedData [18:35:27]SAM_PROTO_SignData [18:35:27]wFMCommunicate request_size=4 [18:35:27]MH_SAM_APDU [18:35:27]CAPDU: 80 0D 01 02 [18:35:27]Write to MH i2c: E2 08 00 1F 00 80 0D 01 02 00 00 00 00 98 [18:35:27]Write i2c OK [18:35:27]MH_I2C_Read... [18:35:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:27]Read from MH i2c: E2 [18:35:27]MH_I2C_Read... [18:35:27]Read from MH i2c: E2 03 00 [18:35:27]MH_I2C_Read... [18:35:27]Read from MH i2c: E2 03 00 1F 00 00 90 00 93 [18:35:27]RAPDU: 90 00 [18:35:27]wFMCommunicate OK [18:35:27]wFMCommunicate request_size=255 [18:35:27]MH_SAM_APDU [18:35: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 32 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 8C 01 00 00 F4 03 04 00 6E 36 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A2 13 03 00 35 04 06 00 78 [18:35:27]Write to MH i2c: E2 02 01 20 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 8C 01 00 00 F4 03 04 00 6E 36 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A2 13 03 00 35 04 06 00 78 00 00 32 [18:35:27]Write i2c OK [18:35:27]MH_I2C_Read... [18:35:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:27]Read from MH i2c: E2 [18:35:27]MH_I2C_Read... [18:35:27]Read from MH i2c: E2 03 00 [18:35:27]MH_I2C_Read... [18:35:27]Read from MH i2c: E2 03 00 20 00 00 90 00 94 [18:35:27]RAPDU: 90 00 [18:35:27]wFMCommunicate OK [18:35:27]wFMCommunicate request_size=10 [18:35:27]MH_SAM_APDU [18:35:27]CAPDU: 80 0D 02 02 05 5C E7 22 16 4A [18:35:27]Write to MH i2c: E2 0D 00 21 00 80 0D 02 02 05 00 5C E7 22 16 4A 00 00 6A [18:35:27]Write i2c OK [18:35:27]MH_I2C_Read... [18:35:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:28]Read from MH i2c: E2 [18:35:28]MH_I2C_Read... [18:35:28]Read from MH i2c: E2 03 00 [18:35:28]MH_I2C_Read... [18:35:28]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [18:35:28]RAPDU: 90 00 [18:35:28]wFMCommunicate OK [18:35:28]wFMCommunicate request_size=4 [18:35:28]MH_SAM_APDU [18:35:28]CAPDU: 80 0D 03 02 [18:35:28]Write to MH i2c: E2 08 00 22 00 80 0D 03 02 00 00 00 00 9D [18:35:28]Write i2c OK [18:35:28]MH_I2C_Read... [18:35:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:28]Read from MH i2c: E2 [18:35:28]MH_I2C_Read... [18:35:28]Read from MH i2c: E2 0B 00 [18:35:28]MH_I2C_Read... [18:35:28]Read from MH i2c: E2 0B 00 22 00 00 2E 4D 51 5A E2 FB 84 F4 90 00 19 [18:35:28]RAPDU: 2E 4D 51 5A E2 FB 84 F4 90 00 [18:35:28]wFMCommunicate OK [18:35:28]SAM_PROTO_SignData done [18:35:28]FM_MakeSignedData done [18:35:28]CreateOFDProtocolMessage [18:35:28]wFMCommunicate request_size=4 [18:35:28]MH_SAM_APDU [18:35:28]CAPDU: 80 11 00 00 [18:35:28]Write to MH i2c: E2 08 00 23 00 80 11 00 00 00 00 00 00 9D [18:35:28]Write i2c OK [18:35:28]MH_I2C_Read... [18:35:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:28]Read from MH i2c: E2 [18:35:28]MH_I2C_Read... [18:35:28]Read from MH i2c: E2 17 00 [18:35:28]MH_I2C_Read... [18:35:28]Read from MH i2c: E2 17 00 23 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F2 [18:35:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:35:28]wFMCommunicate OK [18:35:28]CreateOFDProtocolMessage done [18:35:28]OFDSenderStorePacket 201634 [18:35:28]StoreOFDPacket docnum=201634 [18:35:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 DC 3E 07 01 55 46 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 32 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 8C 01 00 00 F4 03 04 00 6E 36 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A2 13 03 00 35 04 06 00 78 5C E7 22 16 4A 2E 4D 51 5A E2 FB 84 F4 [18:35:28]CheckFolder [18:35:28]dirname=/storage/ofd_packets [18:35:28]CheckFolder done [18:35:28]ProducePacketName [18:35:28]name=ofd_packets/00201634 [18:35:28]NVStorageSaveData ofd_packets/00201634 [18:35:28]File name is /storage/ofd_packets/00201634 [18:35:28]Write 301 bytes [18:35:28]NVStorageSaveData done [18:35:28]OFDSenderStorePacket done [18:35:28]KKMCreateOFDPacket done [18:35:28]NVStorageSaveData kkm_last_timestamp [18:35:28]File name is /storage/kkm_last_timestamp [18:35:28]Write 4 bytes [18:35:28]NVStorageSaveData done [18:35:28]ExternCall_PrintAddStr [18:35:28]wPrintStart [18:35:28]Write to MH i2c: 01 00 00 24 00 24 [18:35:28]Write i2c OK [18:35:28]MH_I2C_Read... [18:35:28]Read from MH i2c: 01 [18:35:28]MH_I2C_Read... [18:35:28]Read from MH i2c: 01 07 00 [18:35:28]MH_I2C_Read... [18:35:28]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [18:35:28]RasterBufferAndPrint [18:35:28]line Счет N : (1)449390 [18:35:28]line ИНН: 02508201610067 [18:35:28]line Контрольно-Кассовый Чек [18:35:28]line ПРОДАЖА [18:35:28]line ТРК (МРК, ГНК) : 31 [18:35:28]line Товар: 2710124130 [18:35:28]line Аи-92-К-2 [18:35:28]line 7.480 * 66.90 [18:35:28]line = 500.41 [18:35:28]line НДС 12% НСП 1% [18:35:28]line > о реализуемом товаре [18:35:28]line ОКРУГЛЕНИЕ: -0.41 [18:35:28]line ИТОГО: 500.00 [18:35:28]line Внесено: 500.00 [18:35:28]line СДАЧА: 0.00 [18:35:28]line НСП 1% : 4.43 [18:35:28]line НДС 12% : 53.14 [18:35:28]line Наличными: 500.00 [18:35:28]line Безнал.: 0.00 [18:35:28]line Место: АЗС № 171 "Партнер Нефть" [18:35:28]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:35:28]line СНО: Общий режим [18:35:28]line Чек 396 26.10.2024 18:35 [18:35:28]line Смена: 543 ФФД: 1.0 [18:35:28]line ЗНМ: 0300000109 [18:35:28]line РНМ: 0000000000091777 [18:35:28]line Версия ККМ: 001 [18:35:28]line ФМ: 0000000000871756 [18:35:28]line ФД: 201634 [18:35:28]line ФПД: 132340410095178 [18:35:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T183526&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201634&fm=132340410095178&tin=02508201610067®Number=0000000000091777&sum=50000 [18:35:28]OFD Sender: Processing packet 201634 [packets to send 112, broken 111] [18:35:28]ProducePacketName [18:35:28]name=ofd_packets/00201634 [18:35:28]OFD Sender: To server: pG, [18:35:28]CommunicateWithHost lk.salyk.kg:30040 [18:35:28]ConnectInit lk.salyk.kg [18:35:28]written 0, free lines is 4095 [18:35:28]Write to MH i2c: 01 00 00 4F 00 4F [18:35:28]Write i2c OK [18:35:28]MH_I2C_Read... [18:35:28]Read from MH i2c: 01 [18:35:28]MH_I2C_Read... [18:35:28]Read from MH i2c: 01 07 00 [18:35:28]MH_I2C_Read... [18:35:28]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 99 0C FB [18:35:28]RasterBufferAndPrint [18:35:28]line [18:35:28]line [18:35:28]line [18:35:28]line [18:35:28]line [18:35:28]written 0, free lines is 3229 [18:35:28]MH_Cut [18:35:28]Write to MH i2c: D1 01 00 56 00 01 28 [18:35:28]Write i2c OK [18:35:28]MH_I2C_Read... [18:35:28]Read from MH i2c: D1 [18:35:28]MH_I2C_Read... [18:35:28]Read from MH i2c: D1 01 00 [18:35:28]MH_I2C_Read... [18:35:28]Read from MH i2c: D1 01 00 56 00 00 27 [18:35:28]Write to MH i2c: 01 00 00 57 00 57 [18:35:28]Write i2c OK [18:35:28]MH_I2C_Read... [18:35:29]*** Cut start [18:35:29]*** Purtial cut [18:35:29]*** CUTSNS_PIN = 0 [18:35:30]*** Stage 1: CUTSNS_PIN = 1 [18:35:31]Connected sock=10 [18:35:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 DC 3E 07 01 55 46 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 32 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 8C 01 00 00 F4 03 04 00 6E 36 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A2 13 03 00 35 04 06 00 78 5C E7 22 16 4A 2E 4D 51 5A E2 FB 84 F4 [18:35:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 90 00 47 00 69 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A2 13 03 00 F4 03 04 00 19 E2 1C 67 B6 04 01 00 00 A5 0F 44 F7 33 E6 EA 2F [18:35:31]CommunicateWithHost err = 0 [18:35:31]CheckOFDResponse [18:35:31]1017 (14) - 77093643461234 [18:35:31]1041 (16) - 0000000000871756 [18:35:31]1040 (4) - 201634 [18:35:31]1012 (4) - 26.10.2024 12:35 [18:35:31]1206 (1) - 0 [18:35:31]OFD Sender: Remove packet 201634 [18:35:31]ProducePacketName [18:35:31]name=ofd_packets/00201634 [18:35:31]NVStorageDeleteData [18:35:31]OFD Sender: No OFD packet to send [18:35:31]Read from MH i2c: 01 [18:35:31]MH_I2C_Read... [18:35:31]*** Stop cut motor [18:35:31]*** Cut end [18:35:31]Read from MH i2c: 01 07 00 [18:35:31]MH_I2C_Read... [18:35:31]Read from MH i2c: 01 07 00 57 00 00 00 00 00 00 FF 0F 6C [18:35:31]process_action close_receipt done [18:35:31]requested_data is exist [18:35:31]produce_requested_data [18:35:31]requested_item fm.sn is exist - process it [18:35:31]wFMCommunicate request_size=4 [18:35:31]MH_SAM_APDU [18:35:31]CAPDU: 80 11 00 00 [18:35:31]Write to MH i2c: E2 08 00 58 00 80 11 00 00 00 00 00 00 D2 [18:35:31]Write i2c OK [18:35:31]MH_I2C_Read... [18:35:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:31]Read from MH i2c: E2 [18:35:31]MH_I2C_Read... [18:35:31]Read from MH i2c: E2 17 00 [18:35:31]MH_I2C_Read... [18:35:31]Read from MH i2c: E2 17 00 58 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 27 [18:35:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:35:31]wFMCommunicate OK [18:35:31]requested_item fd.num is exist - process it [18:35:31]SAM_PROTO_GetFieldsCounters [18:35:31]wFMCommunicate request_size=4 [18:35:31]MH_SAM_APDU [18:35:31]CAPDU: 80 13 00 00 [18:35:31]Write to MH i2c: E2 08 00 59 00 80 13 00 00 00 00 00 00 D5 [18:35:31]Write i2c OK [18:35:31]MH_I2C_Read... [18:35:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:32]Read from MH i2c: E2 [18:35:32]MH_I2C_Read... [18:35:32]Read from MH i2c: E2 62 00 [18:35:32]MH_I2C_Read... [18:35:32]Read from MH i2c: E2 62 00 59 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A2 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8C 01 00 00 5E 04 04 00 8C 01 00 00 57 04 04 00 8D 01 00 00 19 04 04 00 00 00 00 00 90 00 7E [18:35:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A2 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8C 01 00 00 5E 04 04 00 8C 01 00 00 57 04 04 00 8D 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:35:32]wFMCommunicate OK [18:35:32]SAM_PROTO_GetFieldsCounters done [18:35:32]requested_item shift.num is exist - process it [18:35:32]requested_item shift.opened is exist - process it [18:35:32]req_shift_opened [18:35:32]FM_GetShiftState [18:35:32]SAM_PROTO_GetShiftState [18:35:32]wFMCommunicate request_size=4 [18:35:32]MH_SAM_APDU [18:35:32]CAPDU: 80 13 01 00 [18:35:32]Write to MH i2c: E2 08 00 5A 00 80 13 01 00 00 00 00 00 D7 [18:35:32]Write i2c OK [18:35:32]MH_I2C_Read... [18:35:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:32]Read from MH i2c: E2 [18:35:32]MH_I2C_Read... [18:35:32]Read from MH i2c: E2 0E 00 [18:35:32]MH_I2C_Read... [18:35:32]Read from MH i2c: E2 0E 00 5A 00 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E6 [18:35:32]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [18:35:32]wFMCommunicate OK [18:35:32]SAM_PROTO_GetShiftState done [18:35:32]FM_GetShiftState done [18:35:32]req_shift_opened done [18:35:32]requested_item shift.open_date is exist - process it [18:35:32]req_shift_open_date [18:35:32]req_shift_open_date done [18:35:32]produce_requested_data done [18:35:32]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201634,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [18:35:32]process_action_free close_receipt [18:35:32]json_value_free [18:35:32]json_value_free done [18:35:32]process_json_proto returns [18:35:32]Send response to host [18:35:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201634,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [18:35:32]free response buf [18:35:32]execute_script done [18:35:32]execute_script returns [18:35:32]free content buf [18:35:32]Sock 7.Close socket [18:35:32]Sock 7.Thread stoped [18:35:36]OFD Sender: No OFD packet to send [18:35:41]OFD Sender: No OFD packet to send [18:35:46]OFD Sender: No OFD packet to send [18:35:51]OFD Sender: No OFD packet to send [18:35:56]OFD Sender: No OFD packet to send [18:36:01]accept exits with 9 [18:36:01]New connection [18:36:01]New thread 3066465636 created [18:36:01]Thread 3066608996 joined [18:36:01]Waiting for new connection... [18:36:01] Sock 9.Parse request [18:36:01]Sock 9.Check first char [18:36:01]Sock 9.First char is OK [18:36:01]request: POST /json_proto HTTP/1.0 [18:36:01]Method: POST [18:36:01]URL: /json_proto [18:36:01]Method is POST - this is cgi request [18:36:01]url: /json_proto [18:36:01]query_string will be loaded in cgi processing [18:36:01]execute_cgi json_proto POST (null) [18:36:01]execute_cgi path=json_proto method=POST [18:36:01]POST find Content-Length [18:36:01]Host: 172.17.63.195:8080 [18:36:01]Content-Length: 674 [18:36:01]Content-Type: application/json [18:36:01] [18:36:01]POST finish read [18:36:01]Found Content-Length = 674 [18:36:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "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" ] } } [18:36:01]execute_script... [18:36: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)449392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "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" ] } } [18:36:01]POST & json_proto [18:36:01]process_json_proto [18:36:01]json parsed OK: [18:36:01]protocol is kg_v1.0 [18:36:01]action value=close_receipt [18:36:01]process_action close_receipt [18:36:01]cmd_close_receipt [18:36:01]MH_GetDate [18:36:01]Write to MH i2c: F0 00 00 5B 00 4A [18:36:01]Write i2c OK [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: F0 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: F0 09 00 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: F0 09 00 5B 00 00 92 36 1D 67 68 46 19 67 CD [18:36:01]GetLastDocTimeStamp 1729967726 [18:36:01]current date 1729967762 [18:36:01]FM_GetShiftState [18:36:01]SAM_PROTO_GetShiftState [18:36:01]wFMCommunicate request_size=4 [18:36:01]MH_SAM_APDU [18:36:01]CAPDU: 80 13 01 00 [18:36:01]Write to MH i2c: E2 08 00 5C 00 80 13 01 00 00 00 00 00 D9 [18:36:01]Write i2c OK [18:36:01]MH_I2C_Read... [18:36:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:01]Read from MH i2c: E2 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: E2 0E 00 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: E2 0E 00 5C 00 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E8 [18:36:01]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [18:36:01]wFMCommunicate OK [18:36:01]SAM_PROTO_GetShiftState done [18:36:01]FM_GetShiftState done [18:36:01]opened in 1729900879 [18:36:01]opened+sec_in_day 1729987279 [18:36:01]quantity*price = 70027 [18:36:01]sum+1 = 70029 [18:36:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 397 26.10.2024 18:36 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201635 ФПД: 254724850009176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T183602&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201635&fm=254724850009176&tin=02508201610067®Number=0000000000091777&sum=70000 [18:36:02]StoreToDocumentArchive [18:36:02]shift 543 fd 201635 [18:36:02]save to /storage/0543/doc_00201635 [18:36:02]save last doc name /storage/0543/doc_00201635 to /storage/kkm_last_doc_name [18:36:02]save OK [18:36:02]Clear old archive folders... [18:36:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:36:02]tlvbuf is 0104BCD0 [18:36:02]SAM_PROTO_ClearQueue [18:36:02]wFMCommunicate request_size=4 [18:36:02]MH_SAM_APDU [18:36:02]CAPDU: 80 09 00 00 [18:36:02]Write to MH i2c: E2 08 00 69 00 80 09 00 00 00 00 00 00 DB [18:36:02]Write i2c OK [18:36:02]MH_I2C_Read... [18:36:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:03]Read from MH i2c: E2 [18:36:03]MH_I2C_Read... [18:36:03]Read from MH i2c: E2 03 00 [18:36:03]MH_I2C_Read... [18:36:03]Read from MH i2c: E2 03 00 69 00 00 90 00 DD [18:36:03]RAPDU: 90 00 [18:36:03]wFMCommunicate OK [18:36:03]SAM_PROTO_ClearQueue done [18:36:03]KKMCreateOFDPacket [18:36:03]OFDProtocolAddRootSTLVToBuf [18:36:03]FM_MakeSignedData [18:36:03]FM_MakeSignedData [18:36:03]SAM_PROTO_SignData [18:36:03]wFMCommunicate request_size=4 [18:36:03]MH_SAM_APDU [18:36:03]CAPDU: 80 0D 01 02 [18:36:03]Write to MH i2c: E2 08 00 6A 00 80 0D 01 02 00 00 00 00 E3 [18:36:03]Write i2c OK [18:36:03]MH_I2C_Read... [18:36:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:03]Read from MH i2c: E2 [18:36:03]MH_I2C_Read... [18:36:03]Read from MH i2c: E2 03 00 [18:36:03]MH_I2C_Read... [18:36:03]Read from MH i2c: E2 03 00 6A 00 00 90 00 DE [18:36:03]RAPDU: 90 00 [18:36:03]wFMCommunicate OK [18:36:03]wFMCommunicate request_size=255 [18:36:03]MH_SAM_APDU [18:36:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 8D 01 00 00 F4 03 04 00 92 36 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A3 13 03 00 35 04 06 00 E7 AB C0 33 [18:36:03]Write to MH i2c: E2 02 01 6B 00 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 32 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 8D 01 00 00 F4 03 04 00 92 36 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A3 13 03 00 35 04 06 00 E7 AB C0 33 00 00 A2 [18:36:03]Write i2c OK [18:36:03]MH_I2C_Read... [18:36:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:03]Read from MH i2c: E2 [18:36:03]MH_I2C_Read... [18:36:03]Read from MH i2c: E2 03 00 [18:36:03]MH_I2C_Read... [18:36:03]Read from MH i2c: E2 03 00 6B 00 00 90 00 DF [18:36:03]RAPDU: 90 00 [18:36:03]wFMCommunicate OK [18:36:03]wFMCommunicate request_size=7 [18:36:03]MH_SAM_APDU [18:36:03]CAPDU: 80 0D 02 02 02 44 58 [18:36:03]Write to MH i2c: E2 0A 00 6C 00 80 0D 02 02 02 00 44 58 00 00 86 [18:36:03]Write i2c OK [18:36:03]MH_I2C_Read... [18:36:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:03]Read from MH i2c: E2 [18:36:03]MH_I2C_Read... [18:36:03]Read from MH i2c: E2 03 00 [18:36:03]MH_I2C_Read... [18:36:03]Read from MH i2c: E2 03 00 6C 00 00 90 00 E0 [18:36:03]RAPDU: 90 00 [18:36:03]wFMCommunicate OK [18:36:03]wFMCommunicate request_size=4 [18:36:03]MH_SAM_APDU [18:36:03]CAPDU: 80 0D 03 02 [18:36:03]Write to MH i2c: E2 08 00 6D 00 80 0D 03 02 00 00 00 00 E8 [18:36:03]Write i2c OK [18:36:03]MH_I2C_Read... [18:36:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:03]Read from MH i2c: E2 [18:36:03]MH_I2C_Read... [18:36:03]Read from MH i2c: E2 0B 00 [18:36:03]MH_I2C_Read... [18:36:03]Read from MH i2c: E2 0B 00 6D 00 00 47 D0 D7 E0 9D 09 02 41 90 00 A0 [18:36:03]RAPDU: 47 D0 D7 E0 9D 09 02 41 90 00 [18:36:03]wFMCommunicate OK [18:36:03]SAM_PROTO_SignData done [18:36:03]FM_MakeSignedData done [18:36:03]CreateOFDProtocolMessage [18:36:03]wFMCommunicate request_size=4 [18:36:03]MH_SAM_APDU [18:36:03]CAPDU: 80 11 00 00 [18:36:03]Write to MH i2c: E2 08 00 6E 00 80 11 00 00 00 00 00 00 E8 [18:36:03]Write i2c OK [18:36:03]MH_I2C_Read... [18:36:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:03]Read from MH i2c: E2 [18:36:03]MH_I2C_Read... [18:36:03]Read from MH i2c: E2 17 00 [18:36:03]MH_I2C_Read... [18:36:03]Read from MH i2c: E2 17 00 6E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3D [18:36:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:36:03]wFMCommunicate OK [18:36:03]CreateOFDProtocolMessage done [18:36:03]OFDSenderStorePacket 201635 [18:36:03]StoreOFDPacket docnum=201635 [18:36:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 06 1D 04 01 E4 30 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 32 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 8D 01 00 00 F4 03 04 00 92 36 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A3 13 03 00 35 04 06 00 E7 AB C0 33 44 58 47 D0 D7 E0 9D 09 02 41 [18:36:03]CheckFolder [18:36:03]dirname=/storage/ofd_packets [18:36:03]CheckFolder done [18:36:03]ProducePacketName [18:36:03]name=ofd_packets/00201635 [18:36:03]NVStorageSaveData ofd_packets/00201635 [18:36:03]File name is /storage/ofd_packets/00201635 [18:36:03]Write 298 bytes [18:36:03]NVStorageSaveData done [18:36:03]OFDSenderStorePacket done [18:36:03]KKMCreateOFDPacket done [18:36:03]NVStorageSaveData kkm_last_timestamp [18:36:03]File name is /storage/kkm_last_timestamp [18:36:03]Write 4 bytes [18:36:03]NVStorageSaveData done [18:36:03]ExternCall_PrintAddStr [18:36:03]wPrintStart [18:36:03]Write to MH i2c: 01 00 00 6F 00 6F [18:36:03]Write i2c OK [18:36:03]MH_I2C_Read... [18:36:03]Read from MH i2c: 01 [18:36:03]MH_I2C_Read... [18:36:03]Read from MH i2c: 01 07 00 [18:36:03]MH_I2C_Read... [18:36:03]Read from MH i2c: 01 07 00 6F 00 00 00 00 00 00 FF 0F 84 [18:36:03]RasterBufferAndPrint [18:36:03]line Счет N : (1)449392 [18:36:03]line ИНН: 02508201610067 [18:36:03]line Контрольно-Кассовый Чек [18:36:03]line ПРОДАЖА [18:36:03]line ТРК (МРК, ГНК) : 21 [18:36:03]line Товар: 2710194210 [18:36:03]line ДТ-К-2 [18:36:03]line 9.190 * 76.20 [18:36:03]line = 700.28 [18:36:03]line НДС 12% НСП 1% [18:36:03]line > о реализуемом товаре [18:36:03]line ОКРУГЛЕНИЕ: -0.28 [18:36:03]line ИТОГО: 700.00 [18:36:03]line Внесено: 700.00 [18:36:03]line СДАЧА: 0.00 [18:36:03]line НСП 1% : 6.20 [18:36:03]line НДС 12% : 74.37 [18:36:03]line Наличными: 700.00 [18:36:03]line Безнал.: 0.00 [18:36:03]line Место: АЗС № 171 "Партнер Нефть" [18:36:03]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:36:03]line СНО: Общий режим [18:36:03]line Чек 397 26.10.2024 18:36 [18:36:03]line Смена: 543 ФФД: 1.0 [18:36:03]line ЗНМ: 0300000109 [18:36:03]line РНМ: 0000000000091777 [18:36:03]line Версия ККМ: 001 [18:36:03]line ФМ: 0000000000871756 [18:36:03]line ФД: 201635 [18:36:03]line ФПД: 254724850009176 [18:36:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T183602&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201635&fm=254724850009176&tin=02508201610067®Number=0000000000091777&sum=70000 [18:36:03]OFD Sender: Processing packet 201635 [packets to send 112, broken 111] [18:36:03]ProducePacketName [18:36:03]name=ofd_packets/00201635 [18:36:03]OFD Sender: To server: pG, [18:36:03]CommunicateWithHost lk.salyk.kg:30040 [18:36:03]ConnectInit lk.salyk.kg [18:36:03]written 0, free lines is 4095 [18:36:04]Write to MH i2c: 01 00 00 9A 00 9A [18:36:04]Write i2c OK [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: 01 [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: 01 07 00 [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: 01 07 00 9A 00 00 00 00 00 00 93 0C 40 [18:36:04]RasterBufferAndPrint [18:36:04]line [18:36:04]line [18:36:04]line [18:36:04]line [18:36:04]line [18:36:04]written 0, free lines is 3222 [18:36:04]MH_Cut [18:36:04]Write to MH i2c: D1 01 00 A1 00 01 73 [18:36:04]Write i2c OK [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: D1 [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: D1 01 00 [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: D1 01 00 A1 00 00 72 [18:36:04]Write to MH i2c: 01 00 00 A2 00 A2 [18:36:04]Write i2c OK [18:36:04]MH_I2C_Read... [18:36:05]*** Cut start [18:36:05]*** Purtial cut [18:36:05]*** Stage 1: CUTSNS_PIN = 1 [18:36:05]Read from MH i2c: 01 [18:36:05]MH_I2C_Read... [18:36:05]*** Stop cut motor [18:36:05]*** Cut end [18:36:05]Read from MH i2c: 01 07 00 [18:36:05]MH_I2C_Read... [18:36:05]Read from MH i2c: 01 07 00 A2 00 00 00 00 00 00 FF 0F B7 [18:36:05]process_action close_receipt done [18:36:05]requested_data is exist [18:36:05]produce_requested_data [18:36:05]requested_item fm.sn is exist - process it [18:36:05]wFMCommunicate request_size=4 [18:36:05]MH_SAM_APDU [18:36:05]CAPDU: 80 11 00 00 [18:36:05]Write to MH i2c: E2 08 00 A3 00 80 11 00 00 00 00 00 00 1D [18:36:05]Write i2c OK [18:36:05]MH_I2C_Read... [18:36:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:05]Read from MH i2c: E2 [18:36:05]MH_I2C_Read... [18:36:05]Read from MH i2c: E2 17 00 [18:36:05]MH_I2C_Read... [18:36:05]Read from MH i2c: E2 17 00 A3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 72 [18:36:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:36:05]wFMCommunicate OK [18:36:05]requested_item fd.num is exist - process it [18:36:05]SAM_PROTO_GetFieldsCounters [18:36:05]wFMCommunicate request_size=4 [18:36:05]MH_SAM_APDU [18:36:05]CAPDU: 80 13 00 00 [18:36:05]Write to MH i2c: E2 08 00 A4 00 80 13 00 00 00 00 00 00 20 [18:36:05]Write i2c OK [18:36:05]MH_I2C_Read... [18:36:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:05]Read from MH i2c: E2 [18:36:05]MH_I2C_Read... [18:36:05]Read from MH i2c: E2 62 00 [18:36:05]MH_I2C_Read... [18:36:05]Read from MH i2c: E2 62 00 A4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A3 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8D 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8E 01 00 00 19 04 04 00 00 00 00 00 90 00 CD [18:36:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A3 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8D 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8E 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:36:05]wFMCommunicate OK [18:36:05]SAM_PROTO_GetFieldsCounters done [18:36:05]requested_item shift.num is exist - process it [18:36:05]requested_item shift.opened is exist - process it [18:36:05]req_shift_opened [18:36:05]FM_GetShiftState [18:36:05]SAM_PROTO_GetShiftState [18:36:05]wFMCommunicate request_size=4 [18:36:05]MH_SAM_APDU [18:36:05]CAPDU: 80 13 01 00 [18:36:05]Write to MH i2c: E2 08 00 A5 00 80 13 01 00 00 00 00 00 22 [18:36:05]Write i2c OK [18:36:05]MH_I2C_Read... [18:36:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:05]Read from MH i2c: E2 [18:36:05]MH_I2C_Read... [18:36:05]Read from MH i2c: E2 0E 00 [18:36:05]MH_I2C_Read... [18:36:05]Read from MH i2c: E2 0E 00 A5 00 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 31 [18:36:05]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [18:36:05]wFMCommunicate OK [18:36:05]SAM_PROTO_GetShiftState done [18:36:05]FM_GetShiftState done [18:36:05]req_shift_opened done [18:36:05]requested_item shift.open_date is exist - process it [18:36:05]req_shift_open_date [18:36:05]req_shift_open_date done [18:36:05]produce_requested_data done [18:36:05]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201635,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [18:36:05]process_action_free close_receipt [18:36:05]json_value_free [18:36:05]json_value_free done [18:36:05]process_json_proto returns [18:36:05]Send response to host [18:36:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201635,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [18:36:05]free response buf [18:36:05]execute_script done [18:36:05]execute_script returns [18:36:05]free content buf [18:36:05]Sock 9.Close socket [18:36:05]Sock 9.Thread stoped [18:36:11]accept exits with 7 [18:36:11]New connection [18:36:11]New thread 3066608996 created [18:36:11]Thread 3066465636 joined [18:36:11]Waiting for new connection... [18:36:11] Sock 7.Parse request [18:36:11]Sock 7.Check first char [18:36:11]Sock 7.First char is OK [18:36:11]request: POST /json_proto HTTP/1.0 [18:36:11]Method: POST [18:36:11]URL: /json_proto [18:36:11]Method is POST - this is cgi request [18:36:11]url: /json_proto [18:36:11]query_string will be loaded in cgi processing [18:36:11]execute_cgi json_proto POST (null) [18:36:11]execute_cgi path=json_proto method=POST [18:36:11]POST find Content-Length [18:36:11]Host: 172.17.63.195:8080 [18:36:11]Content-Length: 677 [18:36:11]Content-Type: application/json [18:36:11] [18:36:11]POST finish read [18:36:11]Found Content-Length = 677 [18:36:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:11]execute_script... [18:36:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:11]POST & json_proto [18:36:11]process_json_proto [18:36:11]json parsed OK: [18:36:11]protocol is kg_v1.0 [18:36:11]action value=close_receipt [18:36:11]process_action close_receipt [18:36:11]cmd_close_receipt [18:36:11]MH_GetDate [18:36:11]Write to MH i2c: F0 00 00 A6 00 95 [18:36:11]Write i2c OK [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: F0 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: F0 09 00 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: F0 09 00 A6 00 00 9C 36 1D 67 68 46 19 67 22 [18:36:11]GetLastDocTimeStamp 1729967762 [18:36:11]current date 1729967772 [18:36:11]FM_GetShiftState [18:36:11]SAM_PROTO_GetShiftState [18:36:11]wFMCommunicate request_size=4 [18:36:11]MH_SAM_APDU [18:36:11]CAPDU: 80 13 01 00 [18:36:11]Write to MH i2c: E2 08 00 A7 00 80 13 01 00 00 00 00 00 24 [18:36:11]Write i2c OK [18:36:11]MH_I2C_Read... [18:36:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:11]Read from MH i2c: E2 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 0E 00 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 0E 00 A7 00 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 33 [18:36:11]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [18:36:11]wFMCommunicate OK [18:36:11]SAM_PROTO_GetShiftState done [18:36:11]FM_GetShiftState done [18:36:11]opened in 1729900879 [18:36:11]opened+sec_in_day 1729987279 [18:36:11]quantity*price = 30038 [18:36:11]sum+1 = 30039 [18:36:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 398 26.10.2024 18:36 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201636 ФПД: 11670352888262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T183612&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201636&fm=11670352888262&tin=02508201610067®Number=0000000000091777&sum=30000 [18:36:13]StoreToDocumentArchive [18:36:13]shift 543 fd 201636 [18:36:13]save to /storage/0543/doc_00201636 [18:36:13]save last doc name /storage/0543/doc_00201636 to /storage/kkm_last_doc_name [18:36:13]save OK [18:36:13]Clear old archive folders... [18:36:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:36:13]tlvbuf is 01052E00 [18:36:13]SAM_PROTO_ClearQueue [18:36:13]wFMCommunicate request_size=4 [18:36:13]MH_SAM_APDU [18:36:13]CAPDU: 80 09 00 00 [18:36:13]Write to MH i2c: E2 08 00 B4 00 80 09 00 00 00 00 00 00 26 [18:36:13]Write i2c OK [18:36:13]MH_I2C_Read... [18:36:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:13]Read from MH i2c: E2 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: E2 03 00 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: E2 03 00 B4 00 00 90 00 28 [18:36:13]RAPDU: 90 00 [18:36:13]wFMCommunicate OK [18:36:13]SAM_PROTO_ClearQueue done [18:36:13]KKMCreateOFDPacket [18:36:13]OFDProtocolAddRootSTLVToBuf [18:36:13]FM_MakeSignedData [18:36:13]FM_MakeSignedData [18:36:13]SAM_PROTO_SignData [18:36:13]wFMCommunicate request_size=4 [18:36:13]MH_SAM_APDU [18:36:13]CAPDU: 80 0D 01 02 [18:36:13]Write to MH i2c: E2 08 00 B5 00 80 0D 01 02 00 00 00 00 2E [18:36:13]Write i2c OK [18:36:13]MH_I2C_Read... [18:36:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:13]Read from MH i2c: E2 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: E2 03 00 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: E2 03 00 B5 00 00 90 00 29 [18:36:13]RAPDU: 90 00 [18:36:13]wFMCommunicate OK [18:36:13]wFMCommunicate request_size=255 [18:36:13]MH_SAM_APDU [18:36: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 9C 36 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A4 13 03 00 35 04 06 00 0A [18:36:13]Write to MH i2c: E2 02 01 B6 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 9C 36 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A4 13 03 00 35 04 06 00 0A 00 00 80 [18:36:13]Write i2c OK [18:36:13]MH_I2C_Read... [18:36:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:13]Read from MH i2c: E2 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: E2 03 00 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: E2 03 00 B6 00 00 90 00 2A [18:36:13]RAPDU: 90 00 [18:36:13]wFMCommunicate OK [18:36:13]wFMCommunicate request_size=10 [18:36:13]MH_SAM_APDU [18:36:13]CAPDU: 80 0D 02 02 05 9D 37 3D 01 C6 [18:36:13]Write to MH i2c: E2 0D 00 B7 00 80 0D 02 02 05 00 9D 37 3D 01 C6 00 00 13 [18:36:13]Write i2c OK [18:36:13]MH_I2C_Read... [18:36:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:13]Read from MH i2c: E2 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: E2 03 00 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: E2 03 00 B7 00 00 90 00 2B [18:36:13]RAPDU: 90 00 [18:36:13]wFMCommunicate OK [18:36:13]wFMCommunicate request_size=4 [18:36:13]MH_SAM_APDU [18:36:13]CAPDU: 80 0D 03 02 [18:36:13]Write to MH i2c: E2 08 00 B8 00 80 0D 03 02 00 00 00 00 33 [18:36:13]Write i2c OK [18:36:13]MH_I2C_Read... [18:36:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:13]Read from MH i2c: E2 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: E2 0B 00 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: E2 0B 00 B8 00 00 B9 82 E0 9A D6 3B A5 81 90 00 20 [18:36:13]RAPDU: B9 82 E0 9A D6 3B A5 81 90 00 [18:36:13]wFMCommunicate OK [18:36:13]SAM_PROTO_SignData done [18:36:13]FM_MakeSignedData done [18:36:13]CreateOFDProtocolMessage [18:36:13]wFMCommunicate request_size=4 [18:36:13]MH_SAM_APDU [18:36:13]CAPDU: 80 11 00 00 [18:36:13]Write to MH i2c: E2 08 00 B9 00 80 11 00 00 00 00 00 00 33 [18:36:13]Write i2c OK [18:36:13]MH_I2C_Read... [18:36:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:13]Read from MH i2c: E2 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: E2 17 00 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: E2 17 00 B9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 88 [18:36:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:36:13]wFMCommunicate OK [18:36:13]CreateOFDProtocolMessage done [18:36:13]OFDSenderStorePacket 201636 [18:36:13]StoreOFDPacket docnum=201636 [18:36:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 50 87 07 01 76 9D 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 9C 36 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A4 13 03 00 35 04 06 00 0A 9D 37 3D 01 C6 B9 82 E0 9A D6 3B A5 81 [18:36:13]CheckFolder [18:36:13]dirname=/storage/ofd_packets [18:36:13]CheckFolder done [18:36:13]ProducePacketName [18:36:13]name=ofd_packets/00201636 [18:36:13]NVStorageSaveData ofd_packets/00201636 [18:36:13]File name is /storage/ofd_packets/00201636 [18:36:13]Write 301 bytes [18:36:13]NVStorageSaveData done [18:36:13]OFDSenderStorePacket done [18:36:13]KKMCreateOFDPacket done [18:36:13]NVStorageSaveData kkm_last_timestamp [18:36:13]File name is /storage/kkm_last_timestamp [18:36:13]Write 4 bytes [18:36:13]NVStorageSaveData done [18:36:13]ExternCall_PrintAddStr [18:36:13]wPrintStart [18:36:13]Write to MH i2c: 01 00 00 BA 00 BA [18:36:13]Write i2c OK [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: 01 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: 01 07 00 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: 01 07 00 BA 00 00 00 00 00 00 FF 0F CF [18:36:13]RasterBufferAndPrint [18:36:13]line Счет N : (1)449394 [18:36:13]line ИНН: 02508201610067 [18:36:13]line Контрольно-Кассовый Чек [18:36:13]line ПРОДАЖА [18:36:13]line ТРК (МРК, ГНК) : 52 [18:36:13]line Товар: 2710124130 [18:36:13]line Аи-92-К-2 [18:36:13]line 4.490 * 66.90 [18:36:13]line = 300.38 [18:36:13]line НДС 12% НСП 1% [18:36:13]line > о реализуемом товаре [18:36:13]line ОКРУГЛЕНИЕ: -0.38 [18:36:13]line ИТОГО: 300.00 [18:36:13]line Внесено: 300.00 [18:36:13]line СДАЧА: 0.00 [18:36:13]line НСП 1% : 2.66 [18:36:13]line НДС 12% : 31.90 [18:36:13]line Наличными: 300.00 [18:36:13]line Безнал.: 0.00 [18:36:13]line Место: АЗС № 171 "Партнер Нефть" [18:36:13]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:36:13]line СНО: Общий режим [18:36:13]line Чек 398 26.10.2024 18:36 [18:36:13]line Смена: 543 ФФД: 1.0 [18:36:13]line ЗНМ: 0300000109 [18:36:13]line РНМ: 0000000000091777 [18:36:13]line Версия ККМ: 001 [18:36:13]line ФМ: 0000000000871756 [18:36:13]line ФД: 201636 [18:36:13]line ФПД: 11670352888262 [18:36:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T183612&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201636&fm=11670352888262&tin=02508201610067®Number=0000000000091777&sum=30000 [18:36:13]written 0, free lines is 4095 [18:36:14]Write to MH i2c: 01 00 00 E5 00 E5 [18:36:14]Write i2c OK [18:36:14]MH_I2C_Read... [18:36:14]Read from MH i2c: 01 [18:36:14]MH_I2C_Read... [18:36:14]Read from MH i2c: 01 07 00 [18:36:14]MH_I2C_Read... [18:36:14]Read from MH i2c: 01 07 00 E5 00 00 00 00 00 00 99 0C 91 [18:36:14]RasterBufferAndPrint [18:36:14]line [18:36:14]line [18:36:14]line [18:36:14]line [18:36:14]line [18:36:14]written 0, free lines is 3233 [18:36:14]MH_Cut [18:36:14]Write to MH i2c: D1 01 00 EC 00 01 BE [18:36:14]Write i2c OK [18:36:14]MH_I2C_Read... [18:36:14]Read from MH i2c: D1 [18:36:14]MH_I2C_Read... [18:36:14]Read from MH i2c: D1 01 00 [18:36:14]MH_I2C_Read... [18:36:14]Read from MH i2c: D1 01 00 EC 00 00 BD [18:36:14]Write to MH i2c: 01 00 00 ED 00 ED [18:36:14]Write i2c OK [18:36:14]MH_I2C_Read... [18:36:14]*** Cut start [18:36:14]*** Purtial cut [18:36:14]*** Stage 1: CUTSNS_PIN = 1 [18:36:15]Read from MH i2c: 01 [18:36:15]MH_I2C_Read... [18:36:15]*** Stop cut motor [18:36:15]*** Cut end [18:36:15]Read from MH i2c: 01 07 00 [18:36:15]MH_I2C_Read... [18:36:15]Read from MH i2c: 01 07 00 ED 00 00 00 00 00 00 FF 0F 02 [18:36:15]process_action close_receipt done [18:36:15]requested_data is exist [18:36:15]produce_requested_data [18:36:15]requested_item fm.sn is exist - process it [18:36:15]wFMCommunicate request_size=4 [18:36:15]MH_SAM_APDU [18:36:15]CAPDU: 80 11 00 00 [18:36:15]Write to MH i2c: E2 08 00 EE 00 80 11 00 00 00 00 00 00 68 [18:36:15]Write i2c OK [18:36:15]MH_I2C_Read... [18:36:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:15]Read from MH i2c: E2 [18:36:15]MH_I2C_Read... [18:36:15]Read from MH i2c: E2 17 00 [18:36:15]MH_I2C_Read... [18:36:15]Read from MH i2c: E2 17 00 EE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BD [18:36:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:36:15]wFMCommunicate OK [18:36:15]requested_item fd.num is exist - process it [18:36:15]SAM_PROTO_GetFieldsCounters [18:36:15]wFMCommunicate request_size=4 [18:36:15]MH_SAM_APDU [18:36:15]CAPDU: 80 13 00 00 [18:36:15]Write to MH i2c: E2 08 00 EF 00 80 13 00 00 00 00 00 00 6B [18:36:15]Write i2c OK [18:36:15]MH_I2C_Read... [18:36:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:15]Read from MH i2c: E2 [18:36:15]MH_I2C_Read... [18:36:15]Read from MH i2c: E2 62 00 [18:36:15]MH_I2C_Read... [18:36:15]Read from MH i2c: E2 62 00 EF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A4 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8E 01 00 00 5E 04 04 00 8E 01 00 00 57 04 04 00 8F 01 00 00 19 04 04 00 00 00 00 00 90 00 1C [18:36:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A4 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8E 01 00 00 5E 04 04 00 8E 01 00 00 57 04 04 00 8F 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:36:15]wFMCommunicate OK [18:36:15]SAM_PROTO_GetFieldsCounters done [18:36:15]requested_item shift.num is exist - process it [18:36:15]requested_item shift.opened is exist - process it [18:36:15]req_shift_opened [18:36:15]FM_GetShiftState [18:36:15]SAM_PROTO_GetShiftState [18:36:15]wFMCommunicate request_size=4 [18:36:15]MH_SAM_APDU [18:36:15]CAPDU: 80 13 01 00 [18:36:15]Write to MH i2c: E2 08 00 F0 00 80 13 01 00 00 00 00 00 6D [18:36:15]Write i2c OK [18:36:15]MH_I2C_Read... [18:36:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:15]Read from MH i2c: E2 [18:36:15]MH_I2C_Read... [18:36:15]Read from MH i2c: E2 0E 00 [18:36:15]MH_I2C_Read... [18:36:15]Read from MH i2c: E2 0E 00 F0 00 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 7C [18:36:15]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [18:36:15]wFMCommunicate OK [18:36:15]SAM_PROTO_GetShiftState done [18:36:15]FM_GetShiftState done [18:36:15]req_shift_opened done [18:36:15]requested_item shift.open_date is exist - process it [18:36:15]req_shift_open_date [18:36:15]req_shift_open_date done [18:36:15]produce_requested_data done [18:36:15]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201636,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [18:36:15]process_action_free close_receipt [18:36:15]json_value_free [18:36:15]json_value_free done [18:36:15]process_json_proto returns [18:36:15]Send response to host [18:36:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201636,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [18:36:15]free response buf [18:36:15]execute_script done [18:36:15]execute_script returns [18:36:15]free content buf [18:36:15]Sock 7.Close socket [18:36:15]Sock 7.Thread stoped [18:36:18]accept exits with 9 [18:36:18]New connection [18:36:18]New thread 3066465636 created [18:36:18]Thread 3066608996 joined [18:36:18]Waiting for new connection... [18:36:18] Sock 9.Parse request [18:36:18]Sock 9.Check first char [18:36:18]Sock 9.First char is OK [18:36:18]request: POST /json_proto HTTP/1.0 [18:36:18]Method: POST [18:36:18]URL: /json_proto [18:36:18]Method is POST - this is cgi request [18:36:18]url: /json_proto [18:36:18]query_string will be loaded in cgi processing [18:36:18]execute_cgi json_proto POST (null) [18:36:18]execute_cgi path=json_proto method=POST [18:36:18]POST find Content-Length [18:36:18]Host: 172.17.63.195:8080 [18:36:18]Content-Length: 674 [18:36:18]Content-Type: application/json [18:36:18] [18:36:18]POST finish read [18:36:18]Found Content-Length = 674 [18:36:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [18:36:18]execute_script... [18:36:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [18:36:18]POST & json_proto [18:36:18]process_json_proto [18:36:18]json parsed OK: [18:36:18]protocol is kg_v1.0 [18:36:18]action value=close_receipt [18:36:18]process_action close_receipt [18:36:18]cmd_close_receipt [18:36:18]MH_GetDate [18:36:18]Write to MH i2c: F0 00 00 F1 00 E0 [18:36:18]Write i2c OK [18:36:18]MH_I2C_Read... [18:36:18]Read from MH i2c: F0 [18:36:18]MH_I2C_Read... [18:36:18]Read from MH i2c: F0 09 00 [18:36:18]MH_I2C_Read... [18:36:18]Read from MH i2c: F0 09 00 F1 00 00 A2 36 1D 67 68 46 19 67 73 [18:36:18]GetLastDocTimeStamp 1729967772 [18:36:18]current date 1729967778 [18:36:18]FM_GetShiftState [18:36:18]SAM_PROTO_GetShiftState [18:36:18]wFMCommunicate request_size=4 [18:36:18]MH_SAM_APDU [18:36:18]CAPDU: 80 13 01 00 [18:36:18]Write to MH i2c: E2 08 00 F2 00 80 13 01 00 00 00 00 00 6F [18:36:18]Write i2c OK [18:36:18]MH_I2C_Read... [18:36:18]Read from MH i2c: E2 [18:36:18]MH_I2C_Read... [18:36:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:18]Read from MH i2c: E2 0E 00 [18:36:18]MH_I2C_Read... [18:36:18]Read from MH i2c: E2 0E 00 F2 00 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 7E [18:36:18]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [18:36:18]wFMCommunicate OK [18:36:18]SAM_PROTO_GetShiftState done [18:36:18]FM_GetShiftState done [18:36:18]opened in 1729900879 [18:36:18]opened+sec_in_day 1729987279 [18:36:18]quantity*price = 50063 [18:36:18]sum+1 = 50064 [18:36:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 399 26.10.2024 18:36 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201637 ФПД: 85910959143023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T183618&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201637&fm=85910959143023&tin=02508201610067®Number=0000000000091777&sum=50000 [18:36:19]StoreToDocumentArchive [18:36:19]shift 543 fd 201637 [18:36:19]save to /storage/0543/doc_00201637 [18:36:19]save last doc name /storage/0543/doc_00201637 to /storage/kkm_last_doc_name [18:36:19]save OK [18:36:19]Clear old archive folders... [18:36:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:36:19]tlvbuf is 0104C8C0 [18:36:19]SAM_PROTO_ClearQueue [18:36:19]wFMCommunicate request_size=4 [18:36:19]MH_SAM_APDU [18:36:19]CAPDU: 80 09 00 00 [18:36:19]Write to MH i2c: E2 08 00 FF 00 80 09 00 00 00 00 00 00 71 [18:36:19]Write i2c OK [18:36:19]MH_I2C_Read... [18:36:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:19]Read from MH i2c: E2 [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: E2 03 00 [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: E2 03 00 FF 00 00 90 00 73 [18:36:19]RAPDU: 90 00 [18:36:19]wFMCommunicate OK [18:36:19]SAM_PROTO_ClearQueue done [18:36:19]KKMCreateOFDPacket [18:36:19]OFDProtocolAddRootSTLVToBuf [18:36:19]FM_MakeSignedData [18:36:19]FM_MakeSignedData [18:36:19]SAM_PROTO_SignData [18:36:19]wFMCommunicate request_size=4 [18:36:19]MH_SAM_APDU [18:36:19]CAPDU: 80 0D 01 02 [18:36:19]Write to MH i2c: E2 08 00 00 01 80 0D 01 02 00 00 00 00 7A [18:36:19]Write i2c OK [18:36:19]MH_I2C_Read... [18:36:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:19]Read from MH i2c: E2 [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: E2 03 00 [18:36:19]MH_I2C_Read... [18:36:19]Read from MH i2c: E2 03 00 00 01 00 90 00 75 [18:36:19]RAPDU: 90 00 [18:36:19]wFMCommunicate OK [18:36:19]wFMCommunicate request_size=255 [18:36:19]MH_SAM_APDU [18:36:19]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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 8F 01 00 00 F4 03 04 00 A2 36 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A5 13 03 00 35 04 06 00 4E 22 B4 33 [18:36:19]Write to MH i2c: E2 02 01 01 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 8F 01 00 00 F4 03 04 00 A2 36 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A5 13 03 00 35 04 06 00 4E 22 B4 33 00 00 AB [18:36:20]Write i2c OK [18:36:20]MH_I2C_Read... [18:36:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:20]Read from MH i2c: E2 [18:36:20]MH_I2C_Read... [18:36:20]Read from MH i2c: E2 03 00 [18:36:20]MH_I2C_Read... [18:36:20]Read from MH i2c: E2 03 00 01 01 00 90 00 76 [18:36:20]RAPDU: 90 00 [18:36:20]wFMCommunicate OK [18:36:20]wFMCommunicate request_size=7 [18:36:20]MH_SAM_APDU [18:36:20]CAPDU: 80 0D 02 02 02 B8 6F [18:36:20]Write to MH i2c: E2 0A 00 02 01 80 0D 02 02 02 00 B8 6F 00 00 A8 [18:36:20]Write i2c OK [18:36:20]MH_I2C_Read... [18:36:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:20]Read from MH i2c: E2 [18:36:20]MH_I2C_Read... [18:36:20]Read from MH i2c: E2 03 00 [18:36:20]MH_I2C_Read... [18:36:20]Read from MH i2c: E2 03 00 02 01 00 90 00 77 [18:36:20]RAPDU: 90 00 [18:36:20]wFMCommunicate OK [18:36:20]wFMCommunicate request_size=4 [18:36:20]MH_SAM_APDU [18:36:20]CAPDU: 80 0D 03 02 [18:36:20]Write to MH i2c: E2 08 00 03 01 80 0D 03 02 00 00 00 00 7F [18:36:20]Write i2c OK [18:36:20]MH_I2C_Read... [18:36:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:20]Read from MH i2c: E2 [18:36:20]MH_I2C_Read... [18:36:20]Read from MH i2c: E2 0B 00 [18:36:20]MH_I2C_Read... [18:36:20]Read from MH i2c: E2 0B 00 03 01 00 C3 63 AF 8A AB 19 D7 35 90 00 AF [18:36:20]RAPDU: C3 63 AF 8A AB 19 D7 35 90 00 [18:36:20]wFMCommunicate OK [18:36:20]SAM_PROTO_SignData done [18:36:20]FM_MakeSignedData done [18:36:20]CreateOFDProtocolMessage [18:36:20]wFMCommunicate request_size=4 [18:36:20]MH_SAM_APDU [18:36:20]CAPDU: 80 11 00 00 [18:36:20]Write to MH i2c: E2 08 00 04 01 80 11 00 00 00 00 00 00 7F [18:36:20]Write i2c OK [18:36:20]MH_I2C_Read... [18:36:20]Read from MH i2c: E2 [18:36:20]MH_I2C_Read... [18:36:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:20]Read from MH i2c: E2 17 00 [18:36:20]MH_I2C_Read... [18:36:20]Read from MH i2c: E2 17 00 04 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D4 [18:36:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:36:20]wFMCommunicate OK [18:36:20]CreateOFDProtocolMessage done [18:36:20]OFDSenderStorePacket 201637 [18:36:20]StoreOFDPacket docnum=201637 [18:36:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 C3 78 04 01 99 8D 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 8F 01 00 00 F4 03 04 00 A2 36 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A5 13 03 00 35 04 06 00 4E 22 B4 33 B8 6F C3 63 AF 8A AB 19 D7 35 [18:36:20]CheckFolder [18:36:20]dirname=/storage/ofd_packets [18:36:20]CheckFolder done [18:36:20]ProducePacketName [18:36:20]name=ofd_packets/00201637 [18:36:20]NVStorageSaveData ofd_packets/00201637 [18:36:20]File name is /storage/ofd_packets/00201637 [18:36:20]Write 298 bytes [18:36:20]NVStorageSaveData done [18:36:20]OFDSenderStorePacket done [18:36:20]KKMCreateOFDPacket done [18:36:20]NVStorageSaveData kkm_last_timestamp [18:36:20]File name is /storage/kkm_last_timestamp [18:36:20]Write 4 bytes [18:36:20]NVStorageSaveData done [18:36:20]ExternCall_PrintAddStr [18:36:20]wPrintStart [18:36:20]Write to MH i2c: 01 00 00 05 01 06 [18:36:20]Write i2c OK [18:36:20]MH_I2C_Read... [18:36:20]Read from MH i2c: 01 [18:36:20]MH_I2C_Read... [18:36:20]Read from MH i2c: 01 07 00 [18:36:20]MH_I2C_Read... [18:36:20]Read from MH i2c: 01 07 00 05 01 00 00 00 00 00 FF 0F 1B [18:36:20]RasterBufferAndPrint [18:36:20]line Счет N : (1)449393 [18:36:20]line ИНН: 02508201610067 [18:36:20]line Контрольно-Кассовый Чек [18:36:20]line ПРОДАЖА [18:36:20]line ТРК (МРК, ГНК) : 43 [18:36:20]line Товар: 2710194210 [18:36:20]line ДТ-К-2 [18:36:20]line 6.570 * 76.20 [18:36:20]line = 500.63 [18:36:20]line НДС 12% НСП 1% [18:36:20]line > о реализуемом товаре [18:36:20]line ОКРУГЛЕНИЕ: -0.63 [18:36:20]line ИТОГО: 500.00 [18:36:20]line Внесено: 500.00 [18:36:20]line СДАЧА: 0.00 [18:36:20]line НСП 1% : 4.43 [18:36:20]line НДС 12% : 53.16 [18:36:20]line Наличными: 500.00 [18:36:20]line Безнал.: 0.00 [18:36:20]line Место: АЗС № 171 "Партнер Нефть" [18:36:20]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:36:20]line СНО: Общий режим [18:36:20]line Чек 399 26.10.2024 18:36 [18:36:20]line Смена: 543 ФФД: 1.0 [18:36:20]line ЗНМ: 0300000109 [18:36:20]line РНМ: 0000000000091777 [18:36:20]line Версия ККМ: 001 [18:36:20]line ФМ: 0000000000871756 [18:36:20]line ФД: 201637 [18:36:20]line ФПД: 85910959143023 [18:36:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T183618&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201637&fm=85910959143023&tin=02508201610067®Number=0000000000091777&sum=50000 [18:36:20]written 0, free lines is 4095 [18:36:20]Write to MH i2c: 01 00 00 30 01 31 [18:36:20]Write i2c OK [18:36:20]MH_I2C_Read... [18:36:20]Read from MH i2c: 01 [18:36:20]MH_I2C_Read... [18:36:20]Read from MH i2c: 01 07 00 [18:36:20]MH_I2C_Read... [18:36:20]Read from MH i2c: 01 07 00 30 01 00 00 00 00 00 A0 0C E4 [18:36:20]RasterBufferAndPrint [18:36:20]line [18:36:20]line [18:36:20]line [18:36:20]line [18:36:20]line [18:36:20]written 0, free lines is 3240 [18:36:20]MH_Cut [18:36:20]Write to MH i2c: D1 01 00 37 01 01 0A [18:36:20]Write i2c OK [18:36:20]MH_I2C_Read... [18:36:20]Read from MH i2c: D1 [18:36:20]MH_I2C_Read... [18:36:20]Read from MH i2c: D1 01 00 [18:36:20]MH_I2C_Read... [18:36:20]Read from MH i2c: D1 01 00 37 01 00 09 [18:36:20]Write to MH i2c: 01 00 00 38 01 39 [18:36:20]Write i2c OK [18:36:20]MH_I2C_Read... [18:36:21]*** Cut start [18:36:21]*** Purtial cut [18:36:21]*** Stage 1: CUTSNS_PIN = 1 [18:36:22]Read from MH i2c: 01 [18:36:22]MH_I2C_Read... [18:36:22]*** Stop cut motor [18:36:22]*** Cut end [18:36:22]Read from MH i2c: 01 07 00 [18:36:22]MH_I2C_Read... [18:36:22]Read from MH i2c: 01 07 00 38 01 00 00 00 00 00 FF 0F 4E [18:36:22]process_action close_receipt done [18:36:22]requested_data is exist [18:36:22]produce_requested_data [18:36:22]requested_item fm.sn is exist - process it [18:36:22]wFMCommunicate request_size=4 [18:36:22]MH_SAM_APDU [18:36:22]CAPDU: 80 11 00 00 [18:36:22]Write to MH i2c: E2 08 00 39 01 80 11 00 00 00 00 00 00 B4 [18:36:22]Write i2c OK [18:36:22]MH_I2C_Read... [18:36:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:22]Read from MH i2c: E2 [18:36:22]MH_I2C_Read... [18:36:22]Read from MH i2c: E2 17 00 [18:36:22]MH_I2C_Read... [18:36:22]Read from MH i2c: E2 17 00 39 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 09 [18:36:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:36:22]wFMCommunicate OK [18:36:22]requested_item fd.num is exist - process it [18:36:22]SAM_PROTO_GetFieldsCounters [18:36:22]wFMCommunicate request_size=4 [18:36:22]MH_SAM_APDU [18:36:22]CAPDU: 80 13 00 00 [18:36:22]Write to MH i2c: E2 08 00 3A 01 80 13 00 00 00 00 00 00 B7 [18:36:22]Write i2c OK [18:36:22]MH_I2C_Read... [18:36:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:22]Read from MH i2c: E2 [18:36:22]MH_I2C_Read... [18:36:22]Read from MH i2c: E2 62 00 [18:36:22]MH_I2C_Read... [18:36:22]Read from MH i2c: E2 62 00 3A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A5 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8F 01 00 00 5E 04 04 00 8F 01 00 00 57 04 04 00 90 01 00 00 19 04 04 00 00 00 00 00 90 00 6C [18:36:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A5 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8F 01 00 00 5E 04 04 00 8F 01 00 00 57 04 04 00 90 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:36:22]wFMCommunicate OK [18:36:22]SAM_PROTO_GetFieldsCounters done [18:36:22]requested_item shift.num is exist - process it [18:36:22]requested_item shift.opened is exist - process it [18:36:22]req_shift_opened [18:36:22]FM_GetShiftState [18:36:22]SAM_PROTO_GetShiftState [18:36:22]wFMCommunicate request_size=4 [18:36:22]MH_SAM_APDU [18:36:22]CAPDU: 80 13 01 00 [18:36:22]Write to MH i2c: E2 08 00 3B 01 80 13 01 00 00 00 00 00 B9 [18:36:22]Write i2c OK [18:36:22]MH_I2C_Read... [18:36:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:22]Read from MH i2c: E2 [18:36:22]MH_I2C_Read... [18:36:22]Read from MH i2c: E2 0E 00 [18:36:22]MH_I2C_Read... [18:36:22]Read from MH i2c: E2 0E 00 3B 01 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C8 [18:36:22]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [18:36:22]wFMCommunicate OK [18:36:22]SAM_PROTO_GetShiftState done [18:36:22]FM_GetShiftState done [18:36:22]req_shift_opened done [18:36:22]requested_item shift.open_date is exist - process it [18:36:22]req_shift_open_date [18:36:22]req_shift_open_date done [18:36:22]produce_requested_data done [18:36:22]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201637,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [18:36:22]process_action_free close_receipt [18:36:22]json_value_free [18:36:22]json_value_free done [18:36:22]process_json_proto returns [18:36:22]Send response to host [18:36:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201637,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [18:36:22]free response buf [18:36:22]execute_script done [18:36:22]execute_script returns [18:36:22]free content buf [18:36:22]Sock 9.Close socket [18:36:22]Sock 9.Thread stoped [18:38:15]ConnectInit Can't connect to host [18:38:15]CommunicateWithHost connect error [18:38:15]CommunicateWithHost err = -1 [18:38:15]OFD Sender: Server communicate error [18:38:15]OFD Sender: Processing packet 201635 [packets to send 114, broken 111] [18:38:15]ProducePacketName [18:38:15]name=ofd_packets/00201635 [18:38:15]OFD Sender: To server: pG, [18:38:15]CommunicateWithHost lk.salyk.kg:30040 [18:38:15]ConnectInit lk.salyk.kg [18:38:15]Connected sock=9 [18:38:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 06 1D 04 01 E4 30 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 32 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 8D 01 00 00 F4 03 04 00 92 36 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A3 13 03 00 35 04 06 00 E7 AB C0 33 44 58 47 D0 D7 E0 9D 09 02 41 [18:38:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 88 BE 47 00 36 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A3 13 03 00 F4 03 04 00 BD E2 1C 67 B6 04 01 00 00 04 63 F4 BC 5B 34 8C 58 [18:38:15]CommunicateWithHost err = 0 [18:38:15]CheckOFDResponse [18:38:15]1017 (14) - 77093643461234 [18:38:15]1041 (16) - 0000000000871756 [18:38:15]1040 (4) - 201635 [18:38:15]1012 (4) - 26.10.2024 12:38 [18:38:15]1206 (1) - 0 [18:38:15]OFD Sender: Remove packet 201635 [18:38:15]ProducePacketName [18:38:15]name=ofd_packets/00201635 [18:38:15]NVStorageDeleteData [18:38:16]OFD Sender: Processing packet 201636 [packets to send 113, broken 111] [18:38:16]ProducePacketName [18:38:16]name=ofd_packets/00201636 [18:38:16]OFD Sender: To server: pG, [18:38:16]CommunicateWithHost lk.salyk.kg:30040 [18:38:16]ConnectInit lk.salyk.kg [18:38:16]Connected sock=9 [18:38:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 50 87 07 01 76 9D 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 9C 36 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A4 13 03 00 35 04 06 00 0A 9D 37 3D 01 C6 B9 82 E0 9A D6 3B A5 81 [18:38:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F6 E2 47 00 C3 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A4 13 03 00 F4 03 04 00 BE E2 1C 67 B6 04 01 00 00 7C 34 FC 52 5A AB 50 DB [18:38:16]CommunicateWithHost err = 0 [18:38:16]CheckOFDResponse [18:38:16]1017 (14) - 77093643461234 [18:38:16]1041 (16) - 0000000000871756 [18:38:16]1040 (4) - 201636 [18:38:16]1012 (4) - 26.10.2024 12:38 [18:38:16]1206 (1) - 0 [18:38:16]OFD Sender: Remove packet 201636 [18:38:16]ProducePacketName [18:38:16]name=ofd_packets/00201636 [18:38:16]NVStorageDeleteData [18:38:17]OFD Sender: Processing packet 201637 [packets to send 112, broken 111] [18:38:17]ProducePacketName [18:38:17]name=ofd_packets/00201637 [18:38:17]OFD Sender: To server: pG, [18:38:17]CommunicateWithHost lk.salyk.kg:30040 [18:38:17]ConnectInit lk.salyk.kg [18:38:17]Connected sock=9 [18:38:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 C3 78 04 01 99 8D 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 8F 01 00 00 F4 03 04 00 A2 36 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A5 13 03 00 35 04 06 00 4E 22 B4 33 B8 6F C3 63 AF 8A AB 19 D7 35 [18:38:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B6 E0 47 00 53 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A5 13 03 00 F4 03 04 00 BF E2 1C 67 B6 04 01 00 00 28 33 38 D4 B9 85 A8 CC [18:38:17]CommunicateWithHost err = 0 [18:38:17]CheckOFDResponse [18:38:17]1017 (14) - 77093643461234 [18:38:17]1041 (16) - 0000000000871756 [18:38:17]1040 (4) - 201637 [18:38:17]1012 (4) - 26.10.2024 12:38 [18:38:17]1206 (1) - 0 [18:38:17]OFD Sender: Remove packet 201637 [18:38:17]ProducePacketName [18:38:17]name=ofd_packets/00201637 [18:38:17]NVStorageDeleteData [18:38:17]OFD Sender: No OFD packet to send [18:38:22]OFD Sender: No OFD packet to send [18:38:27]OFD Sender: No OFD packet to send [18:38:32]OFD Sender: No OFD packet to send [18:38:37]OFD Sender: No OFD packet to send [18:38:42]OFD Sender: No OFD packet to send [18:38:47]OFD Sender: No OFD packet to send [18:38:52]OFD Sender: No OFD packet to send [18:38:57]OFD Sender: No OFD packet to send [18:39:02]OFD Sender: No OFD packet to send [18:39:07]OFD Sender: No OFD packet to send [18:39:12]OFD Sender: No OFD packet to send [18:39:17]OFD Sender: No OFD packet to send [18:39:22]OFD Sender: No OFD packet to send [18:39:27]OFD Sender: No OFD packet to send [18:39:32]OFD Sender: No OFD packet to send [18:39:37]OFD Sender: No OFD packet to send [18:39:42]OFD Sender: No OFD packet to send [18:39:47]OFD Sender: No OFD packet to send [18:39:52]OFD Sender: No OFD packet to send [18:39:57]OFD Sender: No OFD packet to send [18:40:02]OFD Sender: No OFD packet to send [18:40:07]OFD Sender: No OFD packet to send [18:40:12]OFD Sender: No OFD packet to send [18:40:17]OFD Sender: No OFD packet to send [18:40:22]OFD Sender: No OFD packet to send [18:40:28]OFD Sender: No OFD packet to send [18:40:33]OFD Sender: No OFD packet to send [18:40:38]OFD Sender: No OFD packet to send [18:40:43]OFD Sender: No OFD packet to send [18:40:48]OFD Sender: No OFD packet to send [18:40:53]OFD Sender: No OFD packet to send [18:40:58]OFD Sender: No OFD packet to send [18:41:03]OFD Sender: No OFD packet to send [18:41:06]accept exits with 7 [18:41:06]New connection [18:41:06]New thread 3066608996 created [18:41:06]Thread 3066465636 joined [18:41:06]Waiting for new connection... [18:41:06] Sock 7.Parse request [18:41:06]Sock 7.Check first char [18:41:06]Sock 7.First char is OK [18:41:06]request: POST /json_proto HTTP/1.0 [18:41:06]Method: POST [18:41:06]URL: /json_proto [18:41:06]Method is POST - this is cgi request [18:41:06]url: /json_proto [18:41:06]query_string will be loaded in cgi processing [18:41:06]execute_cgi json_proto POST (null) [18:41:06]execute_cgi path=json_proto method=POST [18:41:06]POST find Content-Length [18:41:06]Host: 172.17.63.195:8080 [18:41:06]Content-Length: 677 [18:41:06]Content-Type: application/json [18:41:06] [18:41:06]POST finish read [18:41:06]Found Content-Length = 677 [18:41:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [18:41:06]execute_script... [18:41:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [18:41:06]POST & json_proto [18:41:06]process_json_proto [18:41:06]json parsed OK: [18:41:06]protocol is kg_v1.0 [18:41:06]action value=close_receipt [18:41:06]process_action close_receipt [18:41:06]cmd_close_receipt [18:41:06]MH_GetDate [18:41:06]Write to MH i2c: F0 00 00 3C 01 2C [18:41:06]Write i2c OK [18:41:06]MH_I2C_Read... [18:41:06]Read from MH i2c: F0 [18:41:06]MH_I2C_Read... [18:41:06]Read from MH i2c: F0 09 00 [18:41:06]MH_I2C_Read... [18:41:06]Read from MH i2c: F0 09 00 3C 01 00 C2 37 1D 67 68 46 19 67 E0 [18:41:06]GetLastDocTimeStamp 1729967778 [18:41:06]current date 1729968066 [18:41:06]FM_GetShiftState [18:41:06]SAM_PROTO_GetShiftState [18:41:06]wFMCommunicate request_size=4 [18:41:06]MH_SAM_APDU [18:41:06]CAPDU: 80 13 01 00 [18:41:06]Write to MH i2c: E2 08 00 3D 01 80 13 01 00 00 00 00 00 BB [18:41:06]Write i2c OK [18:41:06]MH_I2C_Read... [18:41:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:06]Read from MH i2c: E2 [18:41:06]MH_I2C_Read... [18:41:06]Read from MH i2c: E2 0E 00 [18:41:06]MH_I2C_Read... [18:41:06]Read from MH i2c: E2 0E 00 3D 01 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 CA [18:41:06]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [18:41:06]wFMCommunicate OK [18:41:06]SAM_PROTO_GetShiftState done [18:41:06]FM_GetShiftState done [18:41:06]opened in 1729900879 [18:41:06]opened+sec_in_day 1729987279 [18:41:06]quantity*price = 50041 [18:41:06]sum+1 = 50042 [18:41:06]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.49 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 401 26.10.2024 18:43 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201639 ФПД: 275385111685354 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T184359&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201639&fm=275385111685354&tin=02508201610067®Number=0000000000091777&sum=24000 [18:44:00]StoreToDocumentArchive [18:44:00]shift 543 fd 201639 [18:44:00]save to /storage/0543/doc_00201639 [18:44:00]save last doc name /storage/0543/doc_00201639 to /storage/kkm_last_doc_name [18:44:00]save OK [18:44:00]Clear old archive folders... [18:44:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:44:00]tlvbuf is 010A73A0 [18:44:00]SAM_PROTO_ClearQueue [18:44:00]wFMCommunicate request_size=4 [18:44:00]MH_SAM_APDU [18:44:00]CAPDU: 80 09 00 00 [18:44:00]Write to MH i2c: E2 08 00 95 01 80 09 00 00 00 00 00 00 08 [18:44:00]Write i2c OK [18:44:00]MH_I2C_Read... [18:44:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:00]Read from MH i2c: E2 [18:44:00]MH_I2C_Read... [18:44:00]Read from MH i2c: E2 03 00 [18:44:00]MH_I2C_Read... [18:44:00]Read from MH i2c: E2 03 00 95 01 00 90 00 0A [18:44:00]RAPDU: 90 00 [18:44:00]wFMCommunicate OK [18:44:00]SAM_PROTO_ClearQueue done [18:44:00]KKMCreateOFDPacket [18:44:00]OFDProtocolAddRootSTLVToBuf [18:44:00]FM_MakeSignedData [18:44:00]FM_MakeSignedData [18:44:00]SAM_PROTO_SignData [18:44:00]wFMCommunicate request_size=4 [18:44:00]MH_SAM_APDU [18:44:00]CAPDU: 80 0D 01 02 [18:44:00]Write to MH i2c: E2 08 00 96 01 80 0D 01 02 00 00 00 00 10 [18:44:00]Write i2c OK [18:44:00]MH_I2C_Read... [18:44:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:00]Read from MH i2c: E2 [18:44:00]MH_I2C_Read... [18:44:00]Read from MH i2c: E2 03 00 [18:44:00]MH_I2C_Read... [18:44:00]Read from MH i2c: E2 03 00 96 01 00 90 00 0B [18:44:00]RAPDU: 90 00 [18:44:00]wFMCommunicate OK [18:44:00]wFMCommunicate request_size=255 [18:44:00]MH_SAM_APDU [18:44:00]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 B6 0D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 C8 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 01 00 00 F4 03 04 00 6F 38 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A7 13 03 00 35 04 06 00 [18:44:00]Write to MH i2c: E2 02 01 97 01 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 B6 0D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 C8 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 01 00 00 F4 03 04 00 6F 38 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A7 13 03 00 35 04 06 00 00 00 20 [18:44:00]Write i2c OK [18:44:00]MH_I2C_Read... [18:44:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:00]Read from MH i2c: E2 [18:44:00]MH_I2C_Read... [18:44:00]Read from MH i2c: E2 03 00 [18:44:00]MH_I2C_Read... [18:44:00]Read from MH i2c: E2 03 00 97 01 00 90 00 0C [18:44:00]RAPDU: 90 00 [18:44:00]wFMCommunicate OK [18:44:00]wFMCommunicate request_size=11 [18:44:00]MH_SAM_APDU [18:44:00]CAPDU: 80 0D 02 02 06 FA 76 17 C2 28 EA [18:44:00]Write to MH i2c: E2 0E 00 98 01 80 0D 02 02 06 00 FA 76 17 C2 28 EA 00 00 7A [18:44:00]Write i2c OK [18:44:00]MH_I2C_Read... [18:44:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:00]Read from MH i2c: E2 [18:44:00]MH_I2C_Read... [18:44:00]Read from MH i2c: E2 03 00 [18:44:00]MH_I2C_Read... [18:44:00]Read from MH i2c: E2 03 00 98 01 00 90 00 0D [18:44:00]RAPDU: 90 00 [18:44:00]wFMCommunicate OK [18:44:00]wFMCommunicate request_size=4 [18:44:00]MH_SAM_APDU [18:44:00]CAPDU: 80 0D 03 02 [18:44:00]Write to MH i2c: E2 08 00 99 01 80 0D 03 02 00 00 00 00 15 [18:44:00]Write i2c OK [18:44:00]MH_I2C_Read... [18:44:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:00]Read from MH i2c: E2 [18:44:00]MH_I2C_Read... [18:44:00]Read from MH i2c: E2 0B 00 [18:44:00]MH_I2C_Read... [18:44:00]Read from MH i2c: E2 0B 00 99 01 00 A8 83 EC A8 C1 07 E4 39 90 00 BA [18:44:00]RAPDU: A8 83 EC A8 C1 07 E4 39 90 00 [18:44:00]wFMCommunicate OK [18:44:00]SAM_PROTO_SignData done [18:44:00]FM_MakeSignedData done [18:44:00]CreateOFDProtocolMessage [18:44:00]wFMCommunicate request_size=4 [18:44:00]MH_SAM_APDU [18:44:00]CAPDU: 80 11 00 00 [18:44:00]Write to MH i2c: E2 08 00 9A 01 80 11 00 00 00 00 00 00 15 [18:44:00]Write i2c OK [18:44:00]MH_I2C_Read... [18:44:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:00]Read from MH i2c: E2 [18:44:00]MH_I2C_Read... [18:44:00]Read from MH i2c: E2 17 00 [18:44:00]MH_I2C_Read... [18:44:00]Read from MH i2c: E2 17 00 9A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6A [18:44:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:44:00]wFMCommunicate OK [18:44:00]CreateOFDProtocolMessage done [18:44:00]OFDSenderStorePacket 201639 [18:44:00]StoreOFDPacket docnum=201639 [18:44:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 45 DB 08 01 9E 28 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 B6 0D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 C8 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 01 00 00 F4 03 04 00 6F 38 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A7 13 03 00 35 04 06 00 FA 76 17 C2 28 EA A8 83 EC A8 C1 07 E4 39 [18:44:00]CheckFolder [18:44:00]dirname=/storage/ofd_packets [18:44:00]CheckFolder done [18:44:00]ProducePacketName [18:44:00]name=ofd_packets/00201639 [18:44:00]NVStorageSaveData ofd_packets/00201639 [18:44:00]File name is /storage/ofd_packets/00201639 [18:44:00]Write 302 bytes [18:44:00]NVStorageSaveData done [18:44:00]OFDSenderStorePacket done [18:44:00]KKMCreateOFDPacket done [18:44:00]NVStorageSaveData kkm_last_timestamp [18:44:00]File name is /storage/kkm_last_timestamp [18:44:00]Write 4 bytes [18:44:00]NVStorageSaveData done [18:44:00]ExternCall_PrintAddStr [18:44:00]wPrintStart [18:44:00]Write to MH i2c: 01 00 00 9B 01 9C [18:44:00]Write i2c OK [18:44:00]MH_I2C_Read... [18:44:00]Read from MH i2c: 01 [18:44:00]MH_I2C_Read... [18:44:00]Read from MH i2c: 01 07 00 [18:44:00]MH_I2C_Read... [18:44:00]Read from MH i2c: 01 07 00 9B 01 00 00 00 00 00 FF 0F B1 [18:44:00]RasterBufferAndPrint [18:44:00]line Счет N : (1)449396 [18:44:00]line ИНН: 02508201610067 [18:44:00]line Контрольно-Кассовый Чек [18:44:00]line ПРОДАЖА [18:44:00]line ТРК (МРК, ГНК) : 63 [18:44:00]line Товар: 2710124130 [18:44:00]line SUPER 92-К-5 [18:44:00]line 3.510 * 68.40 [18:44:00]line = 240.08 [18:44:00]line НДС 12% НСП 1% [18:44:00]line > о реализуемом товаре [18:44:00]line ОКРУГЛЕНИЕ: -0.08 [18:44:00]line ИТОГО: 240.00 [18:44:00]line Внесено: 240.00 [18:44:00]line СДАЧА: 0.00 [18:44:00]line НСП 1% : 2.12 [18:44:00]line НДС 12% : 25.49 [18:44:00]line Наличными: 240.00 [18:44:00]line Безнал.: 0.00 [18:44:00]line Место: АЗС № 171 "Партнер Нефть" [18:44:00]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:44:00]line СНО: Общий режим [18:44:00]line Чек 401 26.10.2024 18:43 [18:44:00]line Смена: 543 ФФД: 1.0 [18:44:00]line ЗНМ: 0300000109 [18:44:00]line РНМ: 0000000000091777 [18:44:00]line Версия ККМ: 001 [18:44:00]line ФМ: 0000000000871756 [18:44:00]line ФД: 201639 [18:44:00]line ФПД: 275385111685354 [18:44:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T184359&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201639&fm=275385111685354&tin=02508201610067®Number=0000000000091777&sum=24000 [18:44:01]OFD Sender: Processing packet 201639 [packets to send 112, broken 111] [18:44:01]ProducePacketName [18:44:01]name=ofd_packets/00201639 [18:44:01]OFD Sender: To server: pG, [18:44:01]CommunicateWithHost lk.salyk.kg:30040 [18:44:01]ConnectInit lk.salyk.kg [18:44:01]written 0, free lines is 4095 [18:44:01]Connected sock=9 [18:44:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 45 DB 08 01 9E 28 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 B6 0D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 C8 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 01 00 00 F4 03 04 00 6F 38 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A7 13 03 00 35 04 06 00 FA 76 17 C2 28 EA A8 83 EC A8 C1 07 E4 39 [18:44:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A0 39 47 00 39 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A7 13 03 00 F4 03 04 00 17 E4 1C 67 B6 04 01 00 00 D0 9A C9 D2 37 BE 6D D4 [18:44:01]CommunicateWithHost err = 0 [18:44:01]CheckOFDResponse [18:44:01]1017 (14) - 77093643461234 [18:44:01]1041 (16) - 0000000000871756 [18:44:01]1040 (4) - 201639 [18:44:01]1012 (4) - 26.10.2024 12:44 [18:44:01]1206 (1) - 0 [18:44:01]OFD Sender: Remove packet 201639 [18:44:01]ProducePacketName [18:44:01]name=ofd_packets/00201639 [18:44:01]NVStorageDeleteData [18:44:01]Write to MH i2c: 01 00 00 C6 01 C7 [18:44:01]Write i2c OK [18:44:01]MH_I2C_Read... [18:44:01]Read from MH i2c: 01 [18:44:01]MH_I2C_Read... [18:44:01]Read from MH i2c: 01 07 00 [18:44:01]MH_I2C_Read... [18:44:01]Read from MH i2c: 01 07 00 C6 01 00 00 00 00 00 99 0C 73 [18:44:01]RasterBufferAndPrint [18:44:01]line [18:44:01]line [18:44:01]line [18:44:01]line [18:44:01]line [18:44:01]written 0, free lines is 3231 [18:44:01]MH_Cut [18:44:01]Write to MH i2c: D1 01 00 CD 01 01 A0 [18:44:01]Write i2c OK [18:44:01]MH_I2C_Read... [18:44:01]Read from MH i2c: D1 [18:44:01]MH_I2C_Read... [18:44:01]Read from MH i2c: D1 01 00 [18:44:01]MH_I2C_Read... [18:44:01]Read from MH i2c: D1 01 00 CD 01 00 9F [18:44:01]Write to MH i2c: 01 00 00 CE 01 CF [18:44:01]Write i2c OK [18:44:01]MH_I2C_Read... [18:44:01]OFD Sender: No OFD packet to send [18:44:02]*** Cut start [18:44:02]*** Purtial cut [18:44:02]*** Stage 1: CUTSNS_PIN = 1 [18:44:02]Read from MH i2c: 01 [18:44:02]MH_I2C_Read... [18:44:02]*** Stop cut motor [18:44:02]*** Cut end [18:44:02]Read from MH i2c: 01 07 00 [18:44:02]MH_I2C_Read... [18:44:02]Read from MH i2c: 01 07 00 CE 01 00 00 00 00 00 FF 0F E4 [18:44:02]process_action close_receipt done [18:44:02]requested_data is exist [18:44:02]produce_requested_data [18:44:02]requested_item fm.sn is exist - process it [18:44:02]wFMCommunicate request_size=4 [18:44:02]MH_SAM_APDU [18:44:02]CAPDU: 80 11 00 00 [18:44:02]Write to MH i2c: E2 08 00 CF 01 80 11 00 00 00 00 00 00 4A [18:44:02]Write i2c OK [18:44:02]MH_I2C_Read... [18:44:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:02]Read from MH i2c: E2 [18:44:02]MH_I2C_Read... [18:44:02]Read from MH i2c: E2 17 00 [18:44:02]MH_I2C_Read... [18:44:02]Read from MH i2c: E2 17 00 CF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9F [18:44:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:44:02]wFMCommunicate OK [18:44:02]requested_item fd.num is exist - process it [18:44:02]SAM_PROTO_GetFieldsCounters [18:44:02]wFMCommunicate request_size=4 [18:44:02]MH_SAM_APDU [18:44:02]CAPDU: 80 13 00 00 [18:44:02]Write to MH i2c: E2 08 00 D0 01 80 13 00 00 00 00 00 00 4D [18:44:02]Write i2c OK [18:44:02]MH_I2C_Read... [18:44:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:02]Read from MH i2c: E2 [18:44:02]MH_I2C_Read... [18:44:02]Read from MH i2c: E2 62 00 [18:44:02]MH_I2C_Read... [18:44:02]Read from MH i2c: E2 62 00 D0 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A7 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 91 01 00 00 5E 04 04 00 91 01 00 00 57 04 04 00 92 01 00 00 19 04 04 00 00 00 00 00 90 00 0A [18:44:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A7 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 91 01 00 00 5E 04 04 00 91 01 00 00 57 04 04 00 92 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:44:02]wFMCommunicate OK [18:44:02]SAM_PROTO_GetFieldsCounters done [18:44:02]requested_item shift.num is exist - process it [18:44:02]requested_item shift.opened is exist - process it [18:44:02]req_shift_opened [18:44:02]FM_GetShiftState [18:44:02]SAM_PROTO_GetShiftState [18:44:02]wFMCommunicate request_size=4 [18:44:02]MH_SAM_APDU [18:44:02]CAPDU: 80 13 01 00 [18:44:02]Write to MH i2c: E2 08 00 D1 01 80 13 01 00 00 00 00 00 4F [18:44:02]Write i2c OK [18:44:02]MH_I2C_Read... [18:44:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:02]Read from MH i2c: E2 [18:44:02]MH_I2C_Read... [18:44:02]Read from MH i2c: E2 0E 00 [18:44:02]MH_I2C_Read... [18:44:02]Read from MH i2c: E2 0E 00 D1 01 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 5E [18:44:02]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [18:44:02]wFMCommunicate OK [18:44:02]SAM_PROTO_GetShiftState done [18:44:02]FM_GetShiftState done [18:44:02]req_shift_opened done [18:44:02]requested_item shift.open_date is exist - process it [18:44:02]req_shift_open_date [18:44:02]req_shift_open_date done [18:44:02]produce_requested_data done [18:44:02]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201639,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [18:44:02]process_action_free close_receipt [18:44:02]json_value_free [18:44:02]json_value_free done [18:44:02]process_json_proto returns [18:44:02]Send response to host [18:44:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201639,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [18:44:02]free response buf [18:44:02]execute_script done [18:44:02]execute_script returns [18:44:02]free content buf [18:44:02]Sock 10.Close socket [18:44:02]Sock 10.Thread stoped [18:44:06]OFD Sender: No OFD packet to send [18:44:11]OFD Sender: No OFD packet to send [18:44:16]OFD Sender: No OFD packet to send [18:44:21]OFD Sender: No OFD packet to send [18:44:26]OFD Sender: No OFD packet to send [18:44:32]OFD Sender: No OFD packet to send [18:44:37]OFD Sender: No OFD packet to send [18:44:42]OFD Sender: No OFD packet to send [18:44:47]OFD Sender: No OFD packet to send [18:44:48]accept exits with 7 [18:44:48]New connection [18:44:48]New thread 3066608996 created [18:44:48]Thread 3066465636 joined [18:44:48]Waiting for new connection... [18:44:48] Sock 7.Parse request [18:44:48]Sock 7.Check first char [18:44:48]Sock 7.First char is OK [18:44:48]request: POST /json_proto HTTP/1.0 [18:44:48]Method: POST [18:44:48]URL: /json_proto [18:44:48]Method is POST - this is cgi request [18:44:48]url: /json_proto [18:44:48]query_string will be loaded in cgi processing [18:44:48]execute_cgi json_proto POST (null) [18:44:48]execute_cgi path=json_proto method=POST [18:44:48]POST find Content-Length [18:44:48]Host: 172.17.63.195:8080 [18:44:48]Content-Length: 766 [18:44:48]Content-Type: application/json [18:44:48] [18:44:48]POST finish read [18:44:48]Found Content-Length = 766 [18:44:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.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: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:48]execute_script... [18:44:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.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: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:48]POST & json_proto [18:44:48]process_json_proto [18:44:48]json parsed OK: [18:44:48]protocol is kg_v1.0 [18:44:48]action value=close_receipt [18:44:48]process_action close_receipt [18:44:48]cmd_close_receipt [18:44:48]MH_GetDate [18:44:48]Write to MH i2c: F0 00 00 D2 01 C2 [18:44:48]Write i2c OK [18:44:48]MH_I2C_Read... [18:44:48]Read from MH i2c: F0 [18:44:48]MH_I2C_Read... [18:44:48]Read from MH i2c: F0 09 00 [18:44:48]MH_I2C_Read... [18:44:48]Read from MH i2c: F0 09 00 D2 01 00 A0 38 1D 67 68 46 19 67 55 [18:44:48]GetLastDocTimeStamp 1729968239 [18:44:48]current date 1729968288 [18:44:48]FM_GetShiftState [18:44:48]SAM_PROTO_GetShiftState [18:44:48]wFMCommunicate request_size=4 [18:44:48]MH_SAM_APDU [18:44:48]CAPDU: 80 13 01 00 [18:44:48]Write to MH i2c: E2 08 00 D3 01 80 13 01 00 00 00 00 00 51 [18:44:48]Write i2c OK [18:44:48]MH_I2C_Read... [18:44:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:48]Read from MH i2c: E2 [18:44:48]MH_I2C_Read... [18:44:48]Read from MH i2c: E2 0E 00 [18:44:48]MH_I2C_Read... [18:44:48]Read from MH i2c: E2 0E 00 D3 01 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 60 [18:44:48]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [18:44:48]wFMCommunicate OK [18:44:48]SAM_PROTO_GetShiftState done [18:44:48]FM_GetShiftState done [18:44:48]opened in 1729900879 [18:44:48]opened+sec_in_day 1729987279 [18:44:48]quantity*price = 100050 [18:44:48]sum+1 = 100052 [18:44:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 402 26.10.2024 18:44 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201640 ФПД: 53573486108509 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T184448&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201640&fm=53573486108509&tin=02508201610067®Number=0000000000091777&sum=100051 [18:44:49]StoreToDocumentArchive [18:44:49]shift 543 fd 201640 [18:44:49]save to /storage/0543/doc_00201640 [18:44:49]save last doc name /storage/0543/doc_00201640 to /storage/kkm_last_doc_name [18:44:49]save OK [18:44:49]Clear old archive folders... [18:44:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:44:49]tlvbuf is 010A6010 [18:44:49]SAM_PROTO_ClearQueue [18:44:49]wFMCommunicate request_size=4 [18:44:49]MH_SAM_APDU [18:44:49]CAPDU: 80 09 00 00 [18:44:49]Write to MH i2c: E2 08 00 E0 01 80 09 00 00 00 00 00 00 53 [18:44:49]Write i2c OK [18:44:49]MH_I2C_Read... [18:44:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:49]Read from MH i2c: E2 [18:44:49]MH_I2C_Read... [18:44:49]Read from MH i2c: E2 03 00 [18:44:49]MH_I2C_Read... [18:44:49]Read from MH i2c: E2 03 00 E0 01 00 90 00 55 [18:44:49]RAPDU: 90 00 [18:44:49]wFMCommunicate OK [18:44:49]SAM_PROTO_ClearQueue done [18:44:49]KKMCreateOFDPacket [18:44:49]OFDProtocolAddRootSTLVToBuf [18:44:49]FM_MakeSignedData [18:44:49]FM_MakeSignedData [18:44:49]SAM_PROTO_SignData [18:44:49]wFMCommunicate request_size=4 [18:44:49]MH_SAM_APDU [18:44:49]CAPDU: 80 0D 01 02 [18:44:49]Write to MH i2c: E2 08 00 E1 01 80 0D 01 02 00 00 00 00 5B [18:44:49]Write i2c OK [18:44:49]MH_I2C_Read... [18:44:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:49]Read from MH i2c: E2 [18:44:49]MH_I2C_Read... [18:44:49]Read from MH i2c: E2 03 00 [18:44:49]MH_I2C_Read... [18:44:49]Read from MH i2c: E2 03 00 E1 01 00 90 00 56 [18:44:49]RAPDU: 90 00 [18:44:49]wFMCommunicate OK [18:44:49]wFMCommunicate request_size=255 [18:44:49]MH_SAM_APDU [18:44:49]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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 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 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 01 00 00 F4 03 04 00 A0 38 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A8 13 03 00 35 04 06 00 30 B9 8C 9B [18:44:49]Write to MH i2c: E2 02 01 E2 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 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 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 01 00 00 F4 03 04 00 A0 38 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A8 13 03 00 35 04 06 00 30 B9 8C 9B 00 00 29 [18:44:49]Write i2c OK [18:44:49]MH_I2C_Read... [18:44:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:49]Read from MH i2c: E2 [18:44:49]MH_I2C_Read... [18:44:49]Read from MH i2c: E2 03 00 [18:44:49]MH_I2C_Read... [18:44:49]Read from MH i2c: E2 03 00 E2 01 00 90 00 57 [18:44:49]RAPDU: 90 00 [18:44:49]wFMCommunicate OK [18:44:49]wFMCommunicate request_size=7 [18:44:49]MH_SAM_APDU [18:44:49]CAPDU: 80 0D 02 02 02 DF 5D [18:44:49]Write to MH i2c: E2 0A 00 E3 01 80 0D 02 02 02 00 DF 5D 00 00 9E [18:44:49]Write i2c OK [18:44:49]MH_I2C_Read... [18:44:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:50]Read from MH i2c: E2 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: E2 03 00 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: E2 03 00 E3 01 00 90 00 58 [18:44:50]RAPDU: 90 00 [18:44:50]wFMCommunicate OK [18:44:50]wFMCommunicate request_size=4 [18:44:50]MH_SAM_APDU [18:44:50]CAPDU: 80 0D 03 02 [18:44:50]Write to MH i2c: E2 08 00 E4 01 80 0D 03 02 00 00 00 00 60 [18:44:50]Write i2c OK [18:44:50]MH_I2C_Read... [18:44:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:50]Read from MH i2c: E2 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: E2 0B 00 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: E2 0B 00 E4 01 00 E5 90 AF B1 59 47 1C 69 90 00 5B [18:44:50]RAPDU: E5 90 AF B1 59 47 1C 69 90 00 [18:44:50]wFMCommunicate OK [18:44:50]SAM_PROTO_SignData done [18:44:50]FM_MakeSignedData done [18:44:50]CreateOFDProtocolMessage [18:44:50]wFMCommunicate request_size=4 [18:44:50]MH_SAM_APDU [18:44:50]CAPDU: 80 11 00 00 [18:44:50]Write to MH i2c: E2 08 00 E5 01 80 11 00 00 00 00 00 00 60 [18:44:50]Write i2c OK [18:44:50]MH_I2C_Read... [18:44:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:50]Read from MH i2c: E2 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: E2 17 00 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: E2 17 00 E5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B5 [18:44:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:44:50]wFMCommunicate OK [18:44:50]CreateOFDProtocolMessage done [18:44:50]OFDSenderStorePacket 201640 [18:44:50]StoreOFDPacket docnum=201640 [18:44:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 92 43 04 01 DF 71 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 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 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 01 00 00 F4 03 04 00 A0 38 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A8 13 03 00 35 04 06 00 30 B9 8C 9B DF 5D E5 90 AF B1 59 47 1C 69 [18:44:50]CheckFolder [18:44:50]dirname=/storage/ofd_packets [18:44:50]CheckFolder done [18:44:50]ProducePacketName [18:44:50]name=ofd_packets/00201640 [18:44:50]NVStorageSaveData ofd_packets/00201640 [18:44:50]File name is /storage/ofd_packets/00201640 [18:44:50]Write 298 bytes [18:44:50]NVStorageSaveData done [18:44:50]OFDSenderStorePacket done [18:44:50]KKMCreateOFDPacket done [18:44:50]NVStorageSaveData kkm_last_timestamp [18:44:50]File name is /storage/kkm_last_timestamp [18:44:50]Write 4 bytes [18:44:50]NVStorageSaveData done [18:44:50]ExternCall_PrintAddStr [18:44:50]wPrintStart [18:44:50]Write to MH i2c: 01 00 00 E6 01 E7 [18:44:50]Write i2c OK [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: 01 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: 01 07 00 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: 01 07 00 E6 01 00 00 00 00 00 FF 0F FC [18:44:50]RasterBufferAndPrint [18:44:50]line Счет N : (1)449397 [18:44:50]line ИНН: 02508201610067 [18:44:50]line Контрольно-Кассовый Чек [18:44:50]line ПРОДАЖА [18:44:50]line ТРК (МРК, ГНК) : 21 [18:44:50]line Товар: 2710194210 [18:44:50]line ДТ-К-2 [18:44:50]line 13.130 * 76.20 [18:44:50]line = 1000.51 [18:44:50]line НДС 12% НСП 1% [18:44:50]line > о реализуемом товаре [18:44:50]line ИТОГО: 1000.51 [18:44:50]line НСП 1% : 8.85 [18:44:50]line НДС 12% : 106.25 [18:44:50]line Наличными: 0.00 [18:44:50]line Безнал.: 1000.51 [18:44:50]line Место: АЗС № 171 "Партнер Нефть" [18:44:50]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:44:50]line СНО: Общий режим [18:44:50]line Чек 402 26.10.2024 18:44 [18:44:50]line Смена: 543 ФФД: 1.0 [18:44:50]line ЗНМ: 0300000109 [18:44:50]line РНМ: 0000000000091777 [18:44:50]line Версия ККМ: 001 [18:44:50]line Платежная система: Mbank [18:44:50]line ФМ: 0000000000871756 [18:44:50]line ФД: 201640 [18:44:50]line ФПД: 53573486108509 [18:44:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T184448&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201640&fm=53573486108509&tin=02508201610067®Number=0000000000091777&sum=100051 [18:44:50]OFD Sender: Processing packet 201640 [packets to send 112, broken 111] [18:44:50]ProducePacketName [18:44:50]name=ofd_packets/00201640 [18:44:50]OFD Sender: To server: pG, [18:44:50]CommunicateWithHost lk.salyk.kg:30040 [18:44:50]ConnectInit lk.salyk.kg [18:44:50]written 0, free lines is 4095 [18:44:50]Connected sock=10 [18:44:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 92 43 04 01 DF 71 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 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 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 01 00 00 F4 03 04 00 A0 38 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A8 13 03 00 35 04 06 00 30 B9 8C 9B DF 5D E5 90 AF B1 59 47 1C 69 [18:44:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 7D 9A 47 00 9D BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A8 13 03 00 F4 03 04 00 48 E4 1C 67 B6 04 01 00 00 7A 3E 2A 3C EA 7A AF 2F [18:44:50]CommunicateWithHost err = 0 [18:44:50]CheckOFDResponse [18:44:50]1017 (14) - 77093643461234 [18:44:50]1041 (16) - 0000000000871756 [18:44:50]1040 (4) - 201640 [18:44:50]1012 (4) - 26.10.2024 12:44 [18:44:50]1206 (1) - 0 [18:44:50]OFD Sender: Remove packet 201640 [18:44:50]ProducePacketName [18:44:50]name=ofd_packets/00201640 [18:44:50]NVStorageDeleteData [18:44:50]Write to MH i2c: 01 00 00 0F 02 11 [18:44:50]Write i2c OK [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: 01 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: 01 07 00 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: 01 07 00 0F 02 00 00 00 00 00 CA 0C EE [18:44:50]RasterBufferAndPrint [18:44:50]line [18:44:50]line [18:44:50]line [18:44:50]line [18:44:50]line [18:44:50]written 0, free lines is 3278 [18:44:50]MH_Cut [18:44:50]Write to MH i2c: D1 01 00 16 02 01 EA [18:44:50]Write i2c OK [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: D1 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: D1 01 00 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: D1 01 00 16 02 00 E9 [18:44:50]Write to MH i2c: 01 00 00 17 02 19 [18:44:50]Write i2c OK [18:44:50]MH_I2C_Read... [18:44:51]OFD Sender: No OFD packet to send [18:44:51]*** Cut start [18:44:51]*** Purtial cut [18:44:51]*** Stage 1: CUTSNS_PIN = 1 [18:44:51]Read from MH i2c: 01 [18:44:52]MH_I2C_Read... [18:44:52]*** Stop cut motor [18:44:52]*** Cut end [18:44:52]Read from MH i2c: 01 07 00 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: 01 07 00 17 02 00 00 00 00 00 FF 0F 2E [18:44:52]process_action close_receipt done [18:44:52]requested_data is exist [18:44:52]produce_requested_data [18:44:52]requested_item fm.sn is exist - process it [18:44:52]wFMCommunicate request_size=4 [18:44:52]MH_SAM_APDU [18:44:52]CAPDU: 80 11 00 00 [18:44:52]Write to MH i2c: E2 08 00 18 02 80 11 00 00 00 00 00 00 94 [18:44:52]Write i2c OK [18:44:52]MH_I2C_Read... [18:44:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:52]Read from MH i2c: E2 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 17 00 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 17 00 18 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E9 [18:44:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:44:52]wFMCommunicate OK [18:44:52]requested_item fd.num is exist - process it [18:44:52]SAM_PROTO_GetFieldsCounters [18:44:52]wFMCommunicate request_size=4 [18:44:52]MH_SAM_APDU [18:44:52]CAPDU: 80 13 00 00 [18:44:52]Write to MH i2c: E2 08 00 19 02 80 13 00 00 00 00 00 00 97 [18:44:52]Write i2c OK [18:44:52]MH_I2C_Read... [18:44:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:52]Read from MH i2c: E2 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 62 00 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 62 00 19 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A8 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 92 01 00 00 5E 04 04 00 92 01 00 00 57 04 04 00 93 01 00 00 19 04 04 00 00 00 00 00 90 00 58 [18:44:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A8 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 92 01 00 00 5E 04 04 00 92 01 00 00 57 04 04 00 93 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:44:52]wFMCommunicate OK [18:44:52]SAM_PROTO_GetFieldsCounters done [18:44:52]requested_item shift.num is exist - process it [18:44:52]requested_item shift.opened is exist - process it [18:44:52]req_shift_opened [18:44:52]FM_GetShiftState [18:44:52]SAM_PROTO_GetShiftState [18:44:52]wFMCommunicate request_size=4 [18:44:52]MH_SAM_APDU [18:44:52]CAPDU: 80 13 01 00 [18:44:52]Write to MH i2c: E2 08 00 1A 02 80 13 01 00 00 00 00 00 99 [18:44:52]Write i2c OK [18:44:52]MH_I2C_Read... [18:44:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:52]Read from MH i2c: E2 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 0E 00 [18:44:52]MH_I2C_Read... [18:44:52]Read from MH i2c: E2 0E 00 1A 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 A8 [18:44:52]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [18:44:52]wFMCommunicate OK [18:44:52]SAM_PROTO_GetShiftState done [18:44:52]FM_GetShiftState done [18:44:52]req_shift_opened done [18:44:52]requested_item shift.open_date is exist - process it [18:44:52]req_shift_open_date [18:44:52]req_shift_open_date done [18:44:52]produce_requested_data done [18:44:52]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201640,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [18:44:52]process_action_free close_receipt [18:44:52]json_value_free [18:44:52]json_value_free done [18:44:52]process_json_proto returns [18:44:52]Send response to host [18:44:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201640,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [18:44:52]free response buf [18:44:52]execute_script done [18:44:52]execute_script returns [18:44:52]free content buf [18:44:52]Sock 7.Close socket [18:44:52]Sock 7.Thread stoped [18:44:56]OFD Sender: No OFD packet to send [18:45:01]OFD Sender: No OFD packet to send [18:45:06]OFD Sender: No OFD packet to send [18:45:11]OFD Sender: No OFD packet to send [18:45:16]OFD Sender: No OFD packet to send [18:45:21]OFD Sender: No OFD packet to send [18:45:26]OFD Sender: No OFD packet to send [18:45:31]OFD Sender: No OFD packet to send [18:45:36]OFD Sender: No OFD packet to send [18:45:41]OFD Sender: No OFD packet to send [18:45:46]OFD Sender: No OFD packet to send [18:45:51]OFD Sender: No OFD packet to send [18:45:56]OFD Sender: No OFD packet to send [18:46:01]OFD Sender: No OFD packet to send [18:46:06]OFD Sender: No OFD packet to send [18:46:11]OFD Sender: No OFD packet to send [18:46:16]OFD Sender: No OFD packet to send [18:46:21]OFD Sender: No OFD packet to send [18:46:26]OFD Sender: No OFD packet to send [18:46:31]OFD Sender: No OFD packet to send [18:46:36]OFD Sender: No OFD packet to send [18:46:41]OFD Sender: No OFD packet to send [18:46:46]OFD Sender: No OFD packet to send [18:46:51]OFD Sender: No OFD packet to send [18:46:56]OFD Sender: No OFD packet to send [18:47:01]OFD Sender: No OFD packet to send [18:47:06]OFD Sender: No OFD packet to send [18:47:11]OFD Sender: No OFD packet to send [18:47:16]OFD Sender: No OFD packet to send [18:47:21]OFD Sender: No OFD packet to send [18:47:26]OFD Sender: No OFD packet to send [18:47:31]OFD Sender: No OFD packet to send [18:47:36]OFD Sender: No OFD packet to send [18:47:41]OFD Sender: No OFD packet to send [18:47:46]OFD Sender: No OFD packet to send [18:47:51]OFD Sender: No OFD packet to send [18:47:56]OFD Sender: No OFD packet to send [18:48:01]OFD Sender: No OFD packet to send [18:48:06]OFD Sender: No OFD packet to send [18:48:11]OFD Sender: No OFD packet to send [18:48:16]OFD Sender: No OFD packet to send [18:48:21]OFD Sender: No OFD packet to send [18:48:26]OFD Sender: No OFD packet to send [18:48:31]OFD Sender: No OFD packet to send [18:48:36]OFD Sender: No OFD packet to send [18:48:41]OFD Sender: No OFD packet to send [18:48:46]OFD Sender: No OFD packet to send [18:48:51]OFD Sender: No OFD packet to send [18:48:56]OFD Sender: No OFD packet to send [18:49:01]OFD Sender: No OFD packet to send [18:49:06]OFD Sender: No OFD packet to send [18:49:11]OFD Sender: No OFD packet to send [18:49:16]OFD Sender: No OFD packet to send [18:49:21]OFD Sender: No OFD packet to send [18:49:26]OFD Sender: No OFD packet to send [18:49:31]OFD Sender: No OFD packet to send [18:49:36]OFD Sender: No OFD packet to send [18:49:41]OFD Sender: No OFD packet to send [18:49:46]OFD Sender: No OFD packet to send [18:49:51]OFD Sender: No OFD packet to send [18:49:56]OFD Sender: No OFD packet to send [18:50:01]OFD Sender: No OFD packet to send [18:50:06]OFD Sender: No OFD packet to send [18:50:11]OFD Sender: No OFD packet to send [18:50:16]OFD Sender: No OFD packet to send [18:50:21]OFD Sender: No OFD packet to send [18:50:26]OFD Sender: No OFD packet to send [18:50:31]OFD Sender: No OFD packet to send [18:50:36]OFD Sender: No OFD packet to send [18:50:41]OFD Sender: No OFD packet to send [18:50:46]OFD Sender: No OFD packet to send [18:50:51]OFD Sender: No OFD packet to send [18:50:56]OFD Sender: No OFD packet to send [18:51:01]OFD Sender: No OFD packet to send [18:51:06]OFD Sender: No OFD packet to send [18:51:11]OFD Sender: No OFD packet to send [18:51:16]OFD Sender: No OFD packet to send [18:51:21]OFD Sender: No OFD packet to send [18:51:26]OFD Sender: No OFD packet to send [18:51:31]OFD Sender: No OFD packet to send [18:51:36]OFD Sender: No OFD packet to send [18:51:37]accept exits with 9 [18:51:37]New connection [18:51:37]New thread 3066465636 created [18:51:37]Thread 3066608996 joined [18:51:37]Waiting for new connection... [18:51:37] Sock 9.Parse request [18:51:37]Sock 9.Check first char [18:51:37]Sock 9.First char is OK [18:51:37]request: POST /json_proto HTTP/1.0 [18:51:37]Method: POST [18:51:37]URL: /json_proto [18:51:37]Method is POST - this is cgi request [18:51:37]url: /json_proto [18:51:37]query_string will be loaded in cgi processing [18:51:37]execute_cgi json_proto POST (null) [18:51:37]execute_cgi path=json_proto method=POST [18:51:37]POST find Content-Length [18:51:37]Host: 172.17.63.195:8080 [18:51:37]Content-Length: 677 [18:51:37]Content-Type: application/json [18:51:37] [18:51:37]POST finish read [18:51:37]Found Content-Length = 677 [18:51:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.040, "sum" : 270.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:37]execute_script... [18:51:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.040, "sum" : 270.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:37]POST & json_proto [18:51:37]process_json_proto [18:51:37]json parsed OK: [18:51:37]protocol is kg_v1.0 [18:51:37]action value=close_receipt [18:51:37]process_action close_receipt [18:51:37]cmd_close_receipt [18:51:37]MH_GetDate [18:51:37]Write to MH i2c: F0 00 00 1B 02 0C [18:51:37]Write i2c OK [18:51:37]MH_I2C_Read... [18:51:37]Read from MH i2c: F0 [18:51:37]MH_I2C_Read... [18:51:37]Read from MH i2c: F0 09 00 [18:51:37]MH_I2C_Read... [18:51:37]Read from MH i2c: F0 09 00 1B 02 00 3A 3A 1D 67 68 46 19 67 3B [18:51:37]GetLastDocTimeStamp 1729968288 [18:51:37]current date 1729968698 [18:51:37]FM_GetShiftState [18:51:37]SAM_PROTO_GetShiftState [18:51:37]wFMCommunicate request_size=4 [18:51:37]MH_SAM_APDU [18:51:37]CAPDU: 80 13 01 00 [18:51:37]Write to MH i2c: E2 08 00 1C 02 80 13 01 00 00 00 00 00 9B [18:51:37]Write i2c OK [18:51:37]MH_I2C_Read... [18:51:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:37]Read from MH i2c: E2 [18:51:37]MH_I2C_Read... [18:51:37]Read from MH i2c: E2 0E 00 [18:51:37]MH_I2C_Read... [18:51:37]Read from MH i2c: E2 0E 00 1C 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 AA [18:51:37]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [18:51:37]wFMCommunicate OK [18:51:37]SAM_PROTO_GetShiftState done [18:51:37]FM_GetShiftState done [18:51:37]opened in 1729900879 [18:51:37]opened+sec_in_day 1729987279 [18:51:37]quantity*price = 27027 [18:51:37]sum+1 = 27029 [18:51:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 270.00 Внесено: 270.00 СДАЧА: 0.00 НСП 1% : 2.39 НДС 12% : 28.70 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 403 26.10.2024 18:51 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201641 ФПД: 159417983065963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T185138&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201641&fm=159417983065963&tin=02508201610067®Number=0000000000091777&sum=27000 [18:51:39]StoreToDocumentArchive [18:51:39]shift 543 fd 201641 [18:51:39]save to /storage/0543/doc_00201641 [18:51:39]save last doc name /storage/0543/doc_00201641 to /storage/kkm_last_doc_name [18:51:39]save OK [18:51:39]Clear old archive folders... [18:51:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:51:39]tlvbuf is 010412A0 [18:51:39]SAM_PROTO_ClearQueue [18:51:39]wFMCommunicate request_size=4 [18:51:39]MH_SAM_APDU [18:51:39]CAPDU: 80 09 00 00 [18:51:39]Write to MH i2c: E2 08 00 29 02 80 09 00 00 00 00 00 00 9D [18:51:39]Write i2c OK [18:51:39]MH_I2C_Read... [18:51:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:51:39]Read from MH i2c: E2 [18:51:39]MH_I2C_Read... [18:51:39]Read from MH i2c: E2 03 00 [18:51:39]MH_I2C_Read... [18:51:39]Read from MH i2c: E2 03 00 29 02 00 90 00 9F [18:51:39]RAPDU: 90 00 [18:51:39]wFMCommunicate OK [18:51:39]SAM_PROTO_ClearQueue done [18:51:39]KKMCreateOFDPacket [18:51:39]OFDProtocolAddRootSTLVToBuf [18:51:39]FM_MakeSignedData [18:51:39]FM_MakeSignedData [18:51:39]SAM_PROTO_SignData [18:51:39]wFMCommunicate request_size=4 [18:51:39]MH_SAM_APDU [18:51:39]CAPDU: 80 0D 01 02 [18:51:39]Write to MH i2c: E2 08 00 2A 02 80 0D 01 02 00 00 00 00 A5 [18:51:39]Write i2c OK [18:51:39]MH_I2C_Read... [18:51:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:51:39]Read from MH i2c: E2 [18:51:39]MH_I2C_Read... [18:51:39]Read from MH i2c: E2 03 00 [18:51:39]MH_I2C_Read... [18:51:39]Read from MH i2c: E2 03 00 2A 02 00 90 00 A0 [18:51:39]RAPDU: 90 00 [18:51:39]wFMCommunicate OK [18:51:39]wFMCommunicate request_size=255 [18:51:39]MH_SAM_APDU [18:51:39]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 32 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 01 00 00 F4 03 04 00 3A 3A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A9 13 03 00 35 04 06 00 90 [18:51:39]Write to MH i2c: E2 02 01 2B 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 32 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 01 00 00 F4 03 04 00 3A 3A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A9 13 03 00 35 04 06 00 90 00 00 B2 [18:51:39]Write i2c OK [18:51:39]MH_I2C_Read... [18:51:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:39]Read from MH i2c: E2 [18:51:39]MH_I2C_Read... [18:51:39]Read from MH i2c: E2 03 00 [18:51:39]MH_I2C_Read... [18:51:39]Read from MH i2c: E2 03 00 2B 02 00 90 00 A1 [18:51:39]RAPDU: 90 00 [18:51:39]wFMCommunicate OK [18:51:39]wFMCommunicate request_size=10 [18:51:39]MH_SAM_APDU [18:51:39]CAPDU: 80 0D 02 02 05 FD 64 40 5F 6B [18:51:39]Write to MH i2c: E2 0D 00 2C 02 80 0D 02 02 05 00 FD 64 40 5F 6B 00 00 1D [18:51:39]Write i2c OK [18:51:39]MH_I2C_Read... [18:51:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:39]Read from MH i2c: E2 [18:51:39]MH_I2C_Read... [18:51:39]Read from MH i2c: E2 03 00 [18:51:39]MH_I2C_Read... [18:51:39]Read from MH i2c: E2 03 00 2C 02 00 90 00 A2 [18:51:39]RAPDU: 90 00 [18:51:39]wFMCommunicate OK [18:51:39]wFMCommunicate request_size=4 [18:51:39]MH_SAM_APDU [18:51:39]CAPDU: 80 0D 03 02 [18:51:39]Write to MH i2c: E2 08 00 2D 02 80 0D 03 02 00 00 00 00 AA [18:51:39]Write i2c OK [18:51:39]MH_I2C_Read... [18:51:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:51:39]Read from MH i2c: E2 [18:51:39]MH_I2C_Read... [18:51:39]Read from MH i2c: E2 0B 00 [18:51:39]MH_I2C_Read... [18:51:39]Read from MH i2c: E2 0B 00 2D 02 00 08 09 5D 2E 49 6A D5 55 90 00 24 [18:51:39]RAPDU: 08 09 5D 2E 49 6A D5 55 90 00 [18:51:39]wFMCommunicate OK [18:51:39]SAM_PROTO_SignData done [18:51:39]FM_MakeSignedData done [18:51:39]CreateOFDProtocolMessage [18:51:39]wFMCommunicate request_size=4 [18:51:39]MH_SAM_APDU [18:51:39]CAPDU: 80 11 00 00 [18:51:39]Write to MH i2c: E2 08 00 2E 02 80 11 00 00 00 00 00 00 AA [18:51:39]Write i2c OK [18:51:39]MH_I2C_Read... [18:51:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:39]Read from MH i2c: E2 [18:51:39]MH_I2C_Read... [18:51:39]Read from MH i2c: E2 17 00 [18:51:39]MH_I2C_Read... [18:51:39]Read from MH i2c: E2 17 00 2E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FF [18:51:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:51:39]wFMCommunicate OK [18:51:39]CreateOFDProtocolMessage done [18:51:39]OFDSenderStorePacket 201641 [18:51:39]StoreOFDPacket docnum=201641 [18:51:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 85 16 07 01 9D FC 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 32 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 01 00 00 F4 03 04 00 3A 3A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A9 13 03 00 35 04 06 00 90 FD 64 40 5F 6B 08 09 5D 2E 49 6A D5 55 [18:51:39]CheckFolder [18:51:39]dirname=/storage/ofd_packets [18:51:39]CheckFolder done [18:51:39]ProducePacketName [18:51:39]name=ofd_packets/00201641 [18:51:39]NVStorageSaveData ofd_packets/00201641 [18:51:39]File name is /storage/ofd_packets/00201641 [18:51:39]Write 301 bytes [18:51:39]NVStorageSaveData done [18:51:39]OFDSenderStorePacket done [18:51:39]KKMCreateOFDPacket done [18:51:39]NVStorageSaveData kkm_last_timestamp [18:51:39]File name is /storage/kkm_last_timestamp [18:51:39]Write 4 bytes [18:51:39]NVStorageSaveData done [18:51:39]ExternCall_PrintAddStr [18:51:39]wPrintStart [18:51:39]Write to MH i2c: 01 00 00 2F 02 31 [18:51:39]Write i2c OK [18:51:39]MH_I2C_Read... [18:51:39]Read from MH i2c: 01 [18:51:39]MH_I2C_Read... [18:51:39]Read from MH i2c: 01 07 00 [18:51:39]MH_I2C_Read... [18:51:39]Read from MH i2c: 01 07 00 2F 02 00 00 00 00 00 FF 0F 46 [18:51:39]RasterBufferAndPrint [18:51:39]line Счет N : (1)449398 [18:51:39]line ИНН: 02508201610067 [18:51:39]line Контрольно-Кассовый Чек [18:51:39]line ПРОДАЖА [18:51:39]line ТРК (МРК, ГНК) : 62 [18:51:39]line Товар: 2710124130 [18:51:39]line Аи-92-К-2 [18:51:39]line 4.040 * 66.90 [18:51:39]line = 270.28 [18:51:39]line НДС 12% НСП 1% [18:51:39]line > о реализуемом товаре [18:51:39]line ОКРУГЛЕНИЕ: -0.28 [18:51:39]line ИТОГО: 270.00 [18:51:39]line Внесено: 270.00 [18:51:39]line СДАЧА: 0.00 [18:51:39]line НСП 1% : 2.39 [18:51:39]line НДС 12% : 28.70 [18:51:39]line Наличными: 270.00 [18:51:39]line Безнал.: 0.00 [18:51:39]line Место: АЗС № 171 "Партнер Нефть" [18:51:39]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:51:39]line СНО: Общий режим [18:51:39]line Чек 403 26.10.2024 18:51 [18:51:39]line Смена: 543 ФФД: 1.0 [18:51:39]line ЗНМ: 0300000109 [18:51:39]line РНМ: 0000000000091777 [18:51:39]line Версия ККМ: 001 [18:51:39]line ФМ: 0000000000871756 [18:51:39]line ФД: 201641 [18:51:39]line ФПД: 159417983065963 [18:51:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T185138&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201641&fm=159417983065963&tin=02508201610067®Number=0000000000091777&sum=27000 [18:51:39]OFD Sender: Processing packet 201641 [packets to send 112, broken 111] [18:51:39]ProducePacketName [18:51:39]name=ofd_packets/00201641 [18:51:39]OFD Sender: To server: pG, [18:51:39]CommunicateWithHost lk.salyk.kg:30040 [18:51:39]ConnectInit lk.salyk.kg [18:51:39]written 0, free lines is 4095 [18:51:40]Connected sock=10 [18:51:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 85 16 07 01 9D FC 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 32 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 01 00 00 F4 03 04 00 3A 3A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A9 13 03 00 35 04 06 00 90 FD 64 40 5F 6B 08 09 5D 2E 49 6A D5 55 [18:51:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 52 B3 47 00 08 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 A9 13 03 00 F4 03 04 00 E2 E5 1C 67 B6 04 01 00 00 95 97 08 48 EC 13 56 1D [18:51:40]CommunicateWithHost err = 0 [18:51:40]CheckOFDResponse [18:51:40]1017 (14) - 77093643461234 [18:51:40]1041 (16) - 0000000000871756 [18:51:40]1040 (4) - 201641 [18:51:40]1012 (4) - 26.10.2024 12:51 [18:51:40]1206 (1) - 0 [18:51:40]OFD Sender: Remove packet 201641 [18:51:40]ProducePacketName [18:51:40]name=ofd_packets/00201641 [18:51:40]NVStorageDeleteData [18:51:40]Write to MH i2c: 01 00 00 5A 02 5C [18:51:40]Write i2c OK [18:51:40]MH_I2C_Read... [18:51:40]Read from MH i2c: 01 [18:51:40]MH_I2C_Read... [18:51:40]Read from MH i2c: 01 07 00 [18:51:40]MH_I2C_Read... [18:51:40]Read from MH i2c: 01 07 00 5A 02 00 00 00 00 00 9F 0C 0E [18:51:40]RasterBufferAndPrint [18:51:40]line [18:51:40]line [18:51:40]line [18:51:40]line [18:51:40]line [18:51:40]written 0, free lines is 3235 [18:51:40]MH_Cut [18:51:40]Write to MH i2c: D1 01 00 61 02 01 35 [18:51:40]Write i2c OK [18:51:40]MH_I2C_Read... [18:51:40]Read from MH i2c: D1 [18:51:40]MH_I2C_Read... [18:51:40]Read from MH i2c: D1 01 00 [18:51:40]MH_I2C_Read... [18:51:40]Read from MH i2c: D1 01 00 61 02 00 34 [18:51:40]Write to MH i2c: 01 00 00 62 02 64 [18:51:40]Write i2c OK [18:51:40]MH_I2C_Read... [18:51:40]OFD Sender: No OFD packet to send [18:51:41]*** Cut start [18:51:41]*** Purtial cut [18:51:41]*** Stage 1: CUTSNS_PIN = 1 [18:51:41]Read from MH i2c: 01 [18:51:41]MH_I2C_Read... [18:51:41]*** Stop cut motor [18:51:41]*** Cut end [18:51:41]Read from MH i2c: 01 07 00 [18:51:41]MH_I2C_Read... [18:51:41]Read from MH i2c: 01 07 00 62 02 00 00 00 00 00 FF 0F 79 [18:51:41]process_action close_receipt done [18:51:41]requested_data is exist [18:51:41]produce_requested_data [18:51:41]requested_item fm.sn is exist - process it [18:51:41]wFMCommunicate request_size=4 [18:51:41]MH_SAM_APDU [18:51:41]CAPDU: 80 11 00 00 [18:51:41]Write to MH i2c: E2 08 00 63 02 80 11 00 00 00 00 00 00 DF [18:51:41]Write i2c OK [18:51:41]MH_I2C_Read... [18:51:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:41]Read from MH i2c: E2 [18:51:41]MH_I2C_Read... [18:51:41]Read from MH i2c: E2 17 00 [18:51:41]MH_I2C_Read... [18:51:41]Read from MH i2c: E2 17 00 63 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 34 [18:51:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:51:41]wFMCommunicate OK [18:51:41]requested_item fd.num is exist - process it [18:51:41]SAM_PROTO_GetFieldsCounters [18:51:41]wFMCommunicate request_size=4 [18:51:41]MH_SAM_APDU [18:51:41]CAPDU: 80 13 00 00 [18:51:41]Write to MH i2c: E2 08 00 64 02 80 13 00 00 00 00 00 00 E2 [18:51:41]Write i2c OK [18:51:41]MH_I2C_Read... [18:51:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:41]Read from MH i2c: E2 [18:51:41]MH_I2C_Read... [18:51:41]Read from MH i2c: E2 62 00 [18:51:41]MH_I2C_Read... [18:51:41]Read from MH i2c: E2 62 00 64 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A9 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 93 01 00 00 5E 04 04 00 93 01 00 00 57 04 04 00 94 01 00 00 19 04 04 00 00 00 00 00 90 00 A7 [18:51:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 A9 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 93 01 00 00 5E 04 04 00 93 01 00 00 57 04 04 00 94 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:51:41]wFMCommunicate OK [18:51:41]SAM_PROTO_GetFieldsCounters done [18:51:41]requested_item shift.num is exist - process it [18:51:41]requested_item shift.opened is exist - process it [18:51:41]req_shift_opened [18:51:41]FM_GetShiftState [18:51:41]SAM_PROTO_GetShiftState [18:51:41]wFMCommunicate request_size=4 [18:51:41]MH_SAM_APDU [18:51:41]CAPDU: 80 13 01 00 [18:51:41]Write to MH i2c: E2 08 00 65 02 80 13 01 00 00 00 00 00 E4 [18:51:41]Write i2c OK [18:51:41]MH_I2C_Read... [18:51:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:41]Read from MH i2c: E2 [18:51:41]MH_I2C_Read... [18:51:41]Read from MH i2c: E2 0E 00 [18:51:41]MH_I2C_Read... [18:51:41]Read from MH i2c: E2 0E 00 65 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F3 [18:51:41]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [18:51:41]wFMCommunicate OK [18:51:41]SAM_PROTO_GetShiftState done [18:51:41]FM_GetShiftState done [18:51:41]req_shift_opened done [18:51:41]requested_item shift.open_date is exist - process it [18:51:41]req_shift_open_date [18:51:41]req_shift_open_date done [18:51:41]produce_requested_data done [18:51:41]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201641,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [18:51:41]process_action_free close_receipt [18:51:41]json_value_free [18:51:41]json_value_free done [18:51:41]process_json_proto returns [18:51:41]Send response to host [18:51:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201641,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [18:51:41]free response buf [18:51:41]execute_script done [18:51:41]execute_script returns [18:51:41]free content buf [18:51:41]Sock 9.Close socket [18:51:41]Sock 9.Thread stoped [18:51:45]OFD Sender: No OFD packet to send [18:51:50]OFD Sender: No OFD packet to send [18:51:55]OFD Sender: No OFD packet to send [18:51:55]accept exits with 7 [18:51:55]New connection [18:51:55]New thread 3066608996 created [18:51:55]Thread 3066465636 joined [18:51:55]Waiting for new connection... [18:51:55] Sock 7.Parse request [18:51:55]Sock 7.Check first char [18:51:55]Sock 7.First char is OK [18:51:55]request: POST /json_proto HTTP/1.0 [18:51:55]Method: POST [18:51:55]URL: /json_proto [18:51:55]Method is POST - this is cgi request [18:51:55]url: /json_proto [18:51:55]query_string will be loaded in cgi processing [18:51:55]execute_cgi json_proto POST (null) [18:51:55]execute_cgi path=json_proto method=POST [18:51:55]POST find Content-Length [18:51:55]Host: 172.17.63.195:8080 [18:51:55]Content-Length: 682 [18:51:55]Content-Type: application/json [18:51:55] [18:51:55]POST finish read [18:51:55]Found Content-Length = 682 [18:51:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:55]execute_script... [18:51: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)449399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:55]POST & json_proto [18:51:55]process_json_proto [18:51:55]json parsed OK: [18:51:55]protocol is kg_v1.0 [18:51:55]action value=close_receipt [18:51:55]process_action close_receipt [18:51:55]cmd_close_receipt [18:51:55]MH_GetDate [18:51:55]Write to MH i2c: F0 00 00 66 02 57 [18:51:55]Write i2c OK [18:51:55]MH_I2C_Read... [18:51:55]Read from MH i2c: F0 [18:51:55]MH_I2C_Read... [18:51:55]Read from MH i2c: F0 09 00 [18:51:55]MH_I2C_Read... [18:51:55]Read from MH i2c: F0 09 00 66 02 00 4C 3A 1D 67 68 46 19 67 98 [18:51:55]GetLastDocTimeStamp 1729968698 [18:51:55]current date 1729968716 [18:51:55]FM_GetShiftState [18:51:55]SAM_PROTO_GetShiftState [18:51:55]wFMCommunicate request_size=4 [18:51:55]MH_SAM_APDU [18:51:55]CAPDU: 80 13 01 00 [18:51:55]Write to MH i2c: E2 08 00 67 02 80 13 01 00 00 00 00 00 E6 [18:51:55]Write i2c OK [18:51:55]MH_I2C_Read... [18:51:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:55]Read from MH i2c: E2 [18:51:55]MH_I2C_Read... [18:51:55]Read from MH i2c: E2 0E 00 [18:51:55]MH_I2C_Read... [18:51:55]Read from MH i2c: E2 0E 00 67 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F5 [18:51:55]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [18:51:55]wFMCommunicate OK [18:51:55]SAM_PROTO_GetShiftState done [18:51:55]FM_GetShiftState done [18:51:55]opened in 1729900879 [18:51:55]opened+sec_in_day 1729987279 [18:51:55]quantity*price = 250054 [18:51:55]sum+1 = 250055 [18:51:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 404 26.10.2024 18:51 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201642 ФПД: 191155427420960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T185156&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201642&fm=191155427420960&tin=02508201610067®Number=0000000000091777&sum=250000 [18:51:57]StoreToDocumentArchive [18:51:57]shift 543 fd 201642 [18:51:57]save to /storage/0543/doc_00201642 [18:51:57]save last doc name /storage/0543/doc_00201642 to /storage/kkm_last_doc_name [18:51:57]save OK [18:51:57]Clear old archive folders... [18:51:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:51:57]tlvbuf is 010442C0 [18:51:57]SAM_PROTO_ClearQueue [18:51:57]wFMCommunicate request_size=4 [18:51:57]MH_SAM_APDU [18:51:57]CAPDU: 80 09 00 00 [18:51:57]Write to MH i2c: E2 08 00 74 02 80 09 00 00 00 00 00 00 E8 [18:51:57]Write i2c OK [18:51:57]MH_I2C_Read... [18:51:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:51:57]Read from MH i2c: E2 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 03 00 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 03 00 74 02 00 90 00 EA [18:51:57]RAPDU: 90 00 [18:51:57]wFMCommunicate OK [18:51:57]SAM_PROTO_ClearQueue done [18:51:57]KKMCreateOFDPacket [18:51:57]OFDProtocolAddRootSTLVToBuf [18:51:57]FM_MakeSignedData [18:51:57]FM_MakeSignedData [18:51:57]SAM_PROTO_SignData [18:51:57]wFMCommunicate request_size=4 [18:51:57]MH_SAM_APDU [18:51:57]CAPDU: 80 0D 01 02 [18:51:57]Write to MH i2c: E2 08 00 75 02 80 0D 01 02 00 00 00 00 F0 [18:51:57]Write i2c OK [18:51:57]MH_I2C_Read... [18:51:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:51:57]Read from MH i2c: E2 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 03 00 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 03 00 75 02 00 90 00 EB [18:51:57]RAPDU: 90 00 [18:51:57]wFMCommunicate OK [18:51:57]wFMCommunicate request_size=255 [18:51:57]MH_SAM_APDU [18: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 4C 3A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AA 13 03 00 35 04 06 00 AD [18:51:57]Write to MH i2c: E2 02 01 76 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 4C 3A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AA 13 03 00 35 04 06 00 AD 00 00 9D [18:51:57]Write i2c OK [18:51:57]MH_I2C_Read... [18:51:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:57]Read from MH i2c: E2 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 03 00 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 03 00 76 02 00 90 00 EC [18:51:57]RAPDU: 90 00 [18:51:57]wFMCommunicate OK [18:51:57]wFMCommunicate request_size=10 [18:51:57]MH_SAM_APDU [18:51:57]CAPDU: 80 0D 02 02 05 DA D7 59 2B 20 [18:51:57]Write to MH i2c: E2 0D 00 77 02 80 0D 02 02 05 00 DA D7 59 2B 20 00 00 52 [18:51:57]Write i2c OK [18:51:57]MH_I2C_Read... [18:51:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:57]Read from MH i2c: E2 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 03 00 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 03 00 77 02 00 90 00 ED [18:51:57]RAPDU: 90 00 [18:51:57]wFMCommunicate OK [18:51:57]wFMCommunicate request_size=4 [18:51:57]MH_SAM_APDU [18:51:57]CAPDU: 80 0D 03 02 [18:51:57]Write to MH i2c: E2 08 00 78 02 80 0D 03 02 00 00 00 00 F5 [18:51:57]Write i2c OK [18:51:57]MH_I2C_Read... [18:51:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:51:57]Read from MH i2c: E2 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 0B 00 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 0B 00 78 02 00 6E 4C 78 E6 73 CC B8 FC 90 00 01 [18:51:57]RAPDU: 6E 4C 78 E6 73 CC B8 FC 90 00 [18:51:57]wFMCommunicate OK [18:51:57]SAM_PROTO_SignData done [18:51:57]FM_MakeSignedData done [18:51:57]CreateOFDProtocolMessage [18:51:57]wFMCommunicate request_size=4 [18:51:57]MH_SAM_APDU [18:51:57]CAPDU: 80 11 00 00 [18:51:57]Write to MH i2c: E2 08 00 79 02 80 11 00 00 00 00 00 00 F5 [18:51:57]Write i2c OK [18:51:57]MH_I2C_Read... [18:51:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:57]Read from MH i2c: E2 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 17 00 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: E2 17 00 79 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4A [18:51:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:51:57]wFMCommunicate OK [18:51:57]CreateOFDProtocolMessage done [18:51:57]OFDSenderStorePacket 201642 [18:51:57]StoreOFDPacket docnum=201642 [18:51:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 4D 33 07 01 01 ED 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 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 4C 3A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AA 13 03 00 35 04 06 00 AD DA D7 59 2B 20 6E 4C 78 E6 73 CC B8 FC [18:51:57]CheckFolder [18:51:57]dirname=/storage/ofd_packets [18:51:57]CheckFolder done [18:51:57]ProducePacketName [18:51:57]name=ofd_packets/00201642 [18:51:57]NVStorageSaveData ofd_packets/00201642 [18:51:57]File name is /storage/ofd_packets/00201642 [18:51:57]Write 301 bytes [18:51:57]NVStorageSaveData done [18:51:57]OFDSenderStorePacket done [18:51:57]KKMCreateOFDPacket done [18:51:57]NVStorageSaveData kkm_last_timestamp [18:51:57]File name is /storage/kkm_last_timestamp [18:51:57]Write 4 bytes [18:51:57]NVStorageSaveData done [18:51:57]ExternCall_PrintAddStr [18:51:57]wPrintStart [18:51:57]Write to MH i2c: 01 00 00 7A 02 7C [18:51:57]Write i2c OK [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: 01 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: 01 07 00 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: 01 07 00 7A 02 00 00 00 00 00 FF 0F 91 [18:51:57]RasterBufferAndPrint [18:51:57]line Счет N : (1)449399 [18:51:57]line ИНН: 02508201610067 [18:51:57]line Контрольно-Кассовый Чек [18:51:57]line ПРОДАЖА [18:51:57]line ТРК (МРК, ГНК) : 51 [18:51:57]line Товар: 2710124500 [18:51:57]line Аи-95-К-3 [18:51:57]line 33.700 * 74.20 [18:51:57]line = 2500.54 [18:51:57]line НДС 12% НСП 1% [18:51:57]line > о реализуемом товаре [18:51:57]line ОКРУГЛЕНИЕ: -0.54 [18:51:57]line ИТОГО: 2500.00 [18:51:57]line Внесено: 2500.00 [18:51:57]line СДАЧА: 0.00 [18:51:57]line НСП 1% : 22.13 [18:51:57]line НДС 12% : 265.54 [18:51:57]line Наличными: 2500.00 [18:51:57]line Безнал.: 0.00 [18:51:57]line Место: АЗС № 171 "Партнер Нефть" [18:51:57]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:51:57]line СНО: Общий режим [18:51:57]line Чек 404 26.10.2024 18:51 [18:51:57]line Смена: 543 ФФД: 1.0 [18:51:57]line ЗНМ: 0300000109 [18:51:57]line РНМ: 0000000000091777 [18:51:57]line Версия ККМ: 001 [18:51:57]line ФМ: 0000000000871756 [18:51:57]line ФД: 201642 [18:51:57]line ФПД: 191155427420960 [18:51:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T185156&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201642&fm=191155427420960&tin=02508201610067®Number=0000000000091777&sum=250000 [18:51:57]OFD Sender: Processing packet 201642 [packets to send 112, broken 111] [18:51:57]ProducePacketName [18:51:57]name=ofd_packets/00201642 [18:51:57]OFD Sender: To server: pG, [18:51:57]CommunicateWithHost lk.salyk.kg:30040 [18:51:57]ConnectInit lk.salyk.kg [18:51:57]written 0, free lines is 4095 [18:51:58]Connected sock=10 [18:51:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 4D 33 07 01 01 ED 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 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 4C 3A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AA 13 03 00 35 04 06 00 AD DA D7 59 2B 20 6E 4C 78 E6 73 CC B8 FC [18:51:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 1E D7 47 00 5C 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AA 13 03 00 F4 03 04 00 F4 E5 1C 67 B6 04 01 00 00 D1 0E 5C D7 9D 8F 93 51 [18:51:58]CommunicateWithHost err = 0 [18:51:58]CheckOFDResponse [18:51:58]1017 (14) - 77093643461234 [18:51:58]1041 (16) - 0000000000871756 [18:51:58]1040 (4) - 201642 [18:51:58]1012 (4) - 26.10.2024 12:52 [18:51:58]1206 (1) - 0 [18:51:58]OFD Sender: Remove packet 201642 [18:51:58]ProducePacketName [18:51:58]name=ofd_packets/00201642 [18:51:58]NVStorageDeleteData [18:51:58]Write to MH i2c: 01 00 00 A5 02 A7 [18:51:58]Write i2c OK [18:51:58]MH_I2C_Read... [18:51:58]Read from MH i2c: 01 [18:51:58]MH_I2C_Read... [18:51:58]Read from MH i2c: 01 07 00 [18:51:58]MH_I2C_Read... [18:51:58]Read from MH i2c: 01 07 00 A5 02 00 00 00 00 00 A4 0C 5E [18:51:58]RasterBufferAndPrint [18:51:58]line [18:51:58]line [18:51:58]line [18:51:58]line [18:51:58]line [18:51:58]written 0, free lines is 3242 [18:51:58]MH_Cut [18:51:58]Write to MH i2c: D1 01 00 AC 02 01 80 [18:51:58]Write i2c OK [18:51:58]MH_I2C_Read... [18:51:58]Read from MH i2c: D1 [18:51:58]MH_I2C_Read... [18:51:58]Read from MH i2c: D1 01 00 [18:51:58]MH_I2C_Read... [18:51:58]Read from MH i2c: D1 01 00 AC 02 00 7F [18:51:58]Write to MH i2c: 01 00 00 AD 02 AF [18:51:58]Write i2c OK [18:51:58]MH_I2C_Read... [18:51:58]OFD Sender: No OFD packet to send [18:51:59]*** Cut start [18:51:59]*** Purtial cut [18:51:59]*** CUTSNS_PIN = 0 [18:51:59]*** Stage 1: CUTSNS_PIN = 1 [18:52:01]Read from MH i2c: 01 [18:52:01]MH_I2C_Read... [18:52:01]*** Stop cut motor [18:52:01]*** Cut end [18:52:01]Read from MH i2c: 01 07 00 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: 01 07 00 AD 02 00 00 00 00 00 FF 0F C4 [18:52:01]process_action close_receipt done [18:52:01]requested_data is exist [18:52:01]produce_requested_data [18:52:01]requested_item fm.sn is exist - process it [18:52:01]wFMCommunicate request_size=4 [18:52:01]MH_SAM_APDU [18:52:01]CAPDU: 80 11 00 00 [18:52:01]Write to MH i2c: E2 08 00 AE 02 80 11 00 00 00 00 00 00 2A [18:52:01]Write i2c OK [18:52:01]MH_I2C_Read... [18:52:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:01]Read from MH i2c: E2 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 17 00 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 17 00 AE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7F [18:52:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:52:01]wFMCommunicate OK [18:52:01]requested_item fd.num is exist - process it [18:52:01]SAM_PROTO_GetFieldsCounters [18:52:01]wFMCommunicate request_size=4 [18:52:01]MH_SAM_APDU [18:52:01]CAPDU: 80 13 00 00 [18:52:01]Write to MH i2c: E2 08 00 AF 02 80 13 00 00 00 00 00 00 2D [18:52:01]Write i2c OK [18:52:01]MH_I2C_Read... [18:52:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:52:01]Read from MH i2c: E2 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 62 00 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 62 00 AF 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AA 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 94 01 00 00 5E 04 04 00 94 01 00 00 57 04 04 00 95 01 00 00 19 04 04 00 00 00 00 00 90 00 F6 [18:52:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AA 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 94 01 00 00 5E 04 04 00 94 01 00 00 57 04 04 00 95 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:52:01]wFMCommunicate OK [18:52:01]SAM_PROTO_GetFieldsCounters done [18:52:01]requested_item shift.num is exist - process it [18:52:01]requested_item shift.opened is exist - process it [18:52:01]req_shift_opened [18:52:01]FM_GetShiftState [18:52:01]SAM_PROTO_GetShiftState [18:52:01]wFMCommunicate request_size=4 [18:52:01]MH_SAM_APDU [18:52:01]CAPDU: 80 13 01 00 [18:52:01]Write to MH i2c: E2 08 00 B0 02 80 13 01 00 00 00 00 00 2F [18:52:01]Write i2c OK [18:52:01]MH_I2C_Read... [18:52:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:01]Read from MH i2c: E2 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 0E 00 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: E2 0E 00 B0 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 3E [18:52:01]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [18:52:01]wFMCommunicate OK [18:52:01]SAM_PROTO_GetShiftState done [18:52:01]FM_GetShiftState done [18:52:01]req_shift_opened done [18:52:01]requested_item shift.open_date is exist - process it [18:52:01]req_shift_open_date [18:52:01]req_shift_open_date done [18:52:01]produce_requested_data done [18:52:01]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201642,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [18:52:01]process_action_free close_receipt [18:52:01]json_value_free [18:52:01]json_value_free done [18:52:01]process_json_proto returns [18:52:01]Send response to host [18:52:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201642,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [18:52:01]free response buf [18:52:01]execute_script done [18:52:01]execute_script returns [18:52:01]free content buf [18:52:01]Sock 7.Close socket [18:52:01]Sock 7.Thread stoped [18:52:03]OFD Sender: No OFD packet to send [18:52:08]OFD Sender: No OFD packet to send [18:52:13]OFD Sender: No OFD packet to send [18:52:18]OFD Sender: No OFD packet to send [18:52:23]OFD Sender: No OFD packet to send [18:52:28]OFD Sender: No OFD packet to send [18:52:33]OFD Sender: No OFD packet to send [18:52:38]OFD Sender: No OFD packet to send [18:52:43]OFD Sender: No OFD packet to send [18:52:48]OFD Sender: No OFD packet to send [18:52:53]OFD Sender: No OFD packet to send [18:52:58]OFD Sender: No OFD packet to send [18:53:03]OFD Sender: No OFD packet to send [18:53:08]OFD Sender: No OFD packet to send [18:53:13]OFD Sender: No OFD packet to send [18:53:18]OFD Sender: No OFD packet to send [18:53:23]OFD Sender: No OFD packet to send [18:53:28]OFD Sender: No OFD packet to send [18:53:33]OFD Sender: No OFD packet to send [18:53:38]OFD Sender: No OFD packet to send [18:53:43]OFD Sender: No OFD packet to send [18:53:48]OFD Sender: No OFD packet to send [18:53:53]OFD Sender: No OFD packet to send [18:53:58]OFD Sender: No OFD packet to send [18:54:03]OFD Sender: No OFD packet to send [18:54:08]OFD Sender: No OFD packet to send [18:54:13]OFD Sender: No OFD packet to send [18:54:18]OFD Sender: No OFD packet to send [18:54:23]OFD Sender: No OFD packet to send [18:54:28]OFD Sender: No OFD packet to send [18:54:33]OFD Sender: No OFD packet to send [18:54:38]OFD Sender: No OFD packet to send [18:54:44]OFD Sender: No OFD packet to send [18:54:49]OFD Sender: No OFD packet to send [18:54:54]OFD Sender: No OFD packet to send [18:54:59]OFD Sender: No OFD packet to send [18:55:04]OFD Sender: No OFD packet to send [18:55:09]OFD Sender: No OFD packet to send [18:55:14]OFD Sender: No OFD packet to send [18:55:19]OFD Sender: No OFD packet to send [18:55:24]OFD Sender: No OFD packet to send [18:55:29]OFD Sender: No OFD packet to send [18:55:34]OFD Sender: No OFD packet to send [18:55:39]OFD Sender: No OFD packet to send [18:55:39]accept exits with 9 [18:55:39]New connection [18:55:39]New thread 3066465636 created [18:55:39]Thread 3066608996 joined [18:55:39]Waiting for new connection... [18:55:39] Sock 9.Parse request [18:55:39]Sock 9.Check first char [18:55:39]Sock 9.First char is OK [18:55:39]request: POST /json_proto HTTP/1.0 [18:55:39]Method: POST [18:55:39]URL: /json_proto [18:55:39]Method is POST - this is cgi request [18:55:39]url: /json_proto [18:55:39]query_string will be loaded in cgi processing [18:55:39]execute_cgi json_proto POST (null) [18:55:39]execute_cgi path=json_proto method=POST [18:55:39]POST find Content-Length [18:55:39]Host: 172.17.63.195:8080 [18:55:39]Content-Length: 675 [18:55:39]Content-Type: application/json [18:55:39] [18:55:39]POST finish read [18:55:39]Found Content-Length = 675 [18:55:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 16.090, "sum" : 1100.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:39]execute_script... [18:55:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 16.090, "sum" : 1100.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:39]POST & json_proto [18:55:39]process_json_proto [18:55:39]json parsed OK: [18:55:39]protocol is kg_v1.0 [18:55:39]action value=close_receipt [18:55:39]process_action close_receipt [18:55:39]cmd_close_receipt [18:55:39]MH_GetDate [18:55:39]Write to MH i2c: F0 00 00 B1 02 A2 [18:55:39]Write i2c OK [18:55:39]MH_I2C_Read... [18:55:39]Read from MH i2c: F0 [18:55:39]MH_I2C_Read... [18:55:39]Read from MH i2c: F0 09 00 [18:55:39]MH_I2C_Read... [18:55:39]Read from MH i2c: F0 09 00 B1 02 00 2C 3B 1D 67 68 46 19 67 C4 [18:55:39]GetLastDocTimeStamp 1729968716 [18:55:39]current date 1729968940 [18:55:39]FM_GetShiftState [18:55:39]SAM_PROTO_GetShiftState [18:55:39]wFMCommunicate request_size=4 [18:55:39]MH_SAM_APDU [18:55:39]CAPDU: 80 13 01 00 [18:55:39]Write to MH i2c: E2 08 00 B2 02 80 13 01 00 00 00 00 00 31 [18:55:39]Write i2c OK [18:55:39]MH_I2C_Read... [18:55:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:39]Read from MH i2c: E2 [18:55:39]MH_I2C_Read... [18:55:39]Read from MH i2c: E2 0E 00 [18:55:39]MH_I2C_Read... [18:55:39]Read from MH i2c: E2 0E 00 B2 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 40 [18:55:39]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [18:55:39]wFMCommunicate OK [18:55:39]SAM_PROTO_GetShiftState done [18:55:39]FM_GetShiftState done [18:55:39]opened in 1729900879 [18:55:39]opened+sec_in_day 1729987279 [18:55:39]quantity*price = 110055 [18:55:39]sum+1 = 110057 [18:55:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.87 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 405 26.10.2024 18:55 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201643 ФПД: 49300536890381 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T185540&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201643&fm=49300536890381&tin=02508201610067®Number=0000000000091777&sum=110000 [18:55:40]StoreToDocumentArchive [18:55:40]shift 543 fd 201643 [18:55:40]save to /storage/0543/doc_00201643 [18:55:40]save last doc name /storage/0543/doc_00201643 to /storage/kkm_last_doc_name [18:55:40]save OK [18:55:40]Clear old archive folders... [18:55:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:55:40]tlvbuf is 01042250 [18:55:40]SAM_PROTO_ClearQueue [18:55:40]wFMCommunicate request_size=4 [18:55:40]MH_SAM_APDU [18:55:40]CAPDU: 80 09 00 00 [18:55:40]Write to MH i2c: E2 08 00 BF 02 80 09 00 00 00 00 00 00 33 [18:55:40]Write i2c OK [18:55:40]MH_I2C_Read... [18:55:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:55:40]Read from MH i2c: E2 [18:55:40]MH_I2C_Read... [18:55:40]Read from MH i2c: E2 03 00 [18:55:40]MH_I2C_Read... [18:55:40]Read from MH i2c: E2 03 00 BF 02 00 90 00 35 [18:55:40]RAPDU: 90 00 [18:55:40]wFMCommunicate OK [18:55:40]SAM_PROTO_ClearQueue done [18:55:40]KKMCreateOFDPacket [18:55:40]OFDProtocolAddRootSTLVToBuf [18:55:40]FM_MakeSignedData [18:55:40]FM_MakeSignedData [18:55:40]SAM_PROTO_SignData [18:55:40]wFMCommunicate request_size=4 [18:55:40]MH_SAM_APDU [18:55:40]CAPDU: 80 0D 01 02 [18:55:40]Write to MH i2c: E2 08 00 C0 02 80 0D 01 02 00 00 00 00 3B [18:55:40]Write i2c OK [18:55:40]MH_I2C_Read... [18:55:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:55:41]Read from MH i2c: E2 [18:55:41]MH_I2C_Read... [18:55:41]Read from MH i2c: E2 03 00 [18:55:41]MH_I2C_Read... [18:55:41]Read from MH i2c: E2 03 00 C0 02 00 90 00 36 [18:55:41]RAPDU: 90 00 [18:55:41]wFMCommunicate OK [18:55:41]wFMCommunicate request_size=255 [18:55:41]MH_SAM_APDU [18:55:41]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 DA 3E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E8 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 2D 00 00 00 00 07 04 06 00 B0 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 95 01 00 00 F4 03 04 00 2C 3B 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AB 13 03 00 35 04 06 00 [18:55:41]Write to MH i2c: E2 02 01 C1 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 3E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E8 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 2D 00 00 00 00 07 04 06 00 B0 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 95 01 00 00 F4 03 04 00 2C 3B 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AB 13 03 00 35 04 06 00 00 00 2E [18:55:41]Write i2c OK [18:55:41]MH_I2C_Read... [18:55:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:41]Read from MH i2c: E2 [18:55:41]MH_I2C_Read... [18:55:41]Read from MH i2c: E2 03 00 [18:55:41]MH_I2C_Read... [18:55:41]Read from MH i2c: E2 03 00 C1 02 00 90 00 37 [18:55:41]RAPDU: 90 00 [18:55:41]wFMCommunicate OK [18:55:41]wFMCommunicate request_size=11 [18:55:41]MH_SAM_APDU [18:55:41]CAPDU: 80 0D 02 02 06 2C D6 AC FD 14 0D [18:55:41]Write to MH i2c: E2 0E 00 C2 02 80 0D 02 02 06 00 2C D6 AC FD 14 0D 00 00 16 [18:55:41]Write i2c OK [18:55:41]MH_I2C_Read... [18:55:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:41]Read from MH i2c: E2 [18:55:41]MH_I2C_Read... [18:55:41]Read from MH i2c: E2 03 00 [18:55:41]MH_I2C_Read... [18:55:41]Read from MH i2c: E2 03 00 C2 02 00 90 00 38 [18:55:41]RAPDU: 90 00 [18:55:41]wFMCommunicate OK [18:55:41]wFMCommunicate request_size=4 [18:55:41]MH_SAM_APDU [18:55:41]CAPDU: 80 0D 03 02 [18:55:41]Write to MH i2c: E2 08 00 C3 02 80 0D 03 02 00 00 00 00 40 [18:55:41]Write i2c OK [18:55:41]MH_I2C_Read... [18:55:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:55:41]Read from MH i2c: E2 [18:55:41]MH_I2C_Read... [18:55:41]Read from MH i2c: E2 0B 00 [18:55:41]MH_I2C_Read... [18:55:41]Read from MH i2c: E2 0B 00 C3 02 00 C7 8E 68 CB 73 AB 45 D8 90 00 04 [18:55:41]RAPDU: C7 8E 68 CB 73 AB 45 D8 90 00 [18:55:41]wFMCommunicate OK [18:55:41]SAM_PROTO_SignData done [18:55:41]FM_MakeSignedData done [18:55:41]CreateOFDProtocolMessage [18:55:41]wFMCommunicate request_size=4 [18:55:41]MH_SAM_APDU [18:55:41]CAPDU: 80 11 00 00 [18:55:41]Write to MH i2c: E2 08 00 C4 02 80 11 00 00 00 00 00 00 40 [18:55:41]Write i2c OK [18:55:41]MH_I2C_Read... [18:55:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:41]Read from MH i2c: E2 [18:55:41]MH_I2C_Read... [18:55:41]Read from MH i2c: E2 17 00 [18:55:41]MH_I2C_Read... [18:55:41]Read from MH i2c: E2 17 00 C4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 95 [18:55:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:55:41]wFMCommunicate OK [18:55:41]CreateOFDProtocolMessage done [18:55:41]OFDSenderStorePacket 201643 [18:55:41]StoreOFDPacket docnum=201643 [18:55:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 F2 F6 08 01 11 09 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 DA 3E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E8 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 2D 00 00 00 00 07 04 06 00 B0 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 95 01 00 00 F4 03 04 00 2C 3B 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AB 13 03 00 35 04 06 00 2C D6 AC FD 14 0D C7 8E 68 CB 73 AB 45 D8 [18:55:41]CheckFolder [18:55:41]dirname=/storage/ofd_packets [18:55:41]CheckFolder done [18:55:41]ProducePacketName [18:55:41]name=ofd_packets/00201643 [18:55:41]NVStorageSaveData ofd_packets/00201643 [18:55:41]File name is /storage/ofd_packets/00201643 [18:55:41]Write 302 bytes [18:55:41]NVStorageSaveData done [18:55:41]OFDSenderStorePacket done [18:55:41]KKMCreateOFDPacket done [18:55:41]NVStorageSaveData kkm_last_timestamp [18:55:41]File name is /storage/kkm_last_timestamp [18:55:41]Write 4 bytes [18:55:41]NVStorageSaveData done [18:55:41]ExternCall_PrintAddStr [18:55:41]wPrintStart [18:55:41]Write to MH i2c: 01 00 00 C5 02 C7 [18:55:41]Write i2c OK [18:55:41]MH_I2C_Read... [18:55:41]Read from MH i2c: 01 [18:55:41]MH_I2C_Read... [18:55:41]Read from MH i2c: 01 07 00 [18:55:41]MH_I2C_Read... [18:55:41]Read from MH i2c: 01 07 00 C5 02 00 00 00 00 00 FF 0F DC [18:55:41]RasterBufferAndPrint [18:55:41]line Счет N : (1)449400 [18:55:41]line ИНН: 02508201610067 [18:55:41]line Контрольно-Кассовый Чек [18:55:41]line ПРОДАЖА [18:55:41]line ТРК (МРК, ГНК) : 53 [18:55:41]line Товар: 2710124130 [18:55:41]line SUPER 92-К-5 [18:55:41]line 16.090 * 68.40 [18:55:41]line = 1100.56 [18:55:41]line НДС 12% НСП 1% [18:55:41]line > о реализуемом товаре [18:55:41]line ОКРУГЛЕНИЕ: -0.56 [18:55:41]line ИТОГО: 1100.00 [18:55:41]line Внесено: 1100.00 [18:55:41]line СДАЧА: 0.00 [18:55:41]line НСП 1% : 9.74 [18:55:41]line НДС 12% : 116.87 [18:55:41]line Наличными: 1100.00 [18:55:41]line Безнал.: 0.00 [18:55:41]line Место: АЗС № 171 "Партнер Нефть" [18:55:41]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [18:55:41]line СНО: Общий режим [18:55:41]line Чек 405 26.10.2024 18:55 [18:55:41]line Смена: 543 ФФД: 1.0 [18:55:41]line ЗНМ: 0300000109 [18:55:41]line РНМ: 0000000000091777 [18:55:41]line Версия ККМ: 001 [18:55:41]line ФМ: 0000000000871756 [18:55:41]line ФД: 201643 [18:55:41]line ФПД: 49300536890381 [18:55:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T185540&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201643&fm=49300536890381&tin=02508201610067®Number=0000000000091777&sum=110000 [18:55:41]OFD Sender: Processing packet 201643 [packets to send 112, broken 111] [18:55:41]ProducePacketName [18:55:41]name=ofd_packets/00201643 [18:55:41]OFD Sender: To server: pG, [18:55:41]CommunicateWithHost lk.salyk.kg:30040 [18:55:41]ConnectInit lk.salyk.kg [18:55:41]written 0, free lines is 4095 [18:55:41]Connected sock=10 [18:55:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 F2 F6 08 01 11 09 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 DA 3E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E8 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 2D 00 00 00 00 07 04 06 00 B0 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 95 01 00 00 F4 03 04 00 2C 3B 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AB 13 03 00 35 04 06 00 2C D6 AC FD 14 0D C7 8E 68 CB 73 AB 45 D8 [18:55:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 7A 40 47 00 B4 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AB 13 03 00 F4 03 04 00 D4 E6 1C 67 B6 04 01 00 00 1D F0 39 A9 25 61 F9 63 [18:55:42]CommunicateWithHost err = 0 [18:55:42]CheckOFDResponse [18:55:42]1017 (14) - 77093643461234 [18:55:42]1041 (16) - 0000000000871756 [18:55:42]1040 (4) - 201643 [18:55:42]1012 (4) - 26.10.2024 12:55 [18:55:42]1206 (1) - 0 [18:55:42]OFD Sender: Remove packet 201643 [18:55:42]ProducePacketName [18:55:42]name=ofd_packets/00201643 [18:55:42]NVStorageDeleteData [18:55:42]Write to MH i2c: 01 00 00 F0 02 F2 [18:55:42]Write i2c OK [18:55:42]MH_I2C_Read... [18:55:42]Read from MH i2c: 01 [18:55:42]MH_I2C_Read... [18:55:42]Read from MH i2c: 01 07 00 [18:55:42]MH_I2C_Read... [18:55:42]Read from MH i2c: 01 07 00 F0 02 00 00 00 00 00 A4 0C A9 [18:55:42]RasterBufferAndPrint [18:55:42]line [18:55:42]line [18:55:42]line [18:55:42]line [18:55:42]line [18:55:42]written 0, free lines is 3241 [18:55:42]MH_Cut [18:55:42]Write to MH i2c: D1 01 00 F7 02 01 CB [18:55:42]Write i2c OK [18:55:42]MH_I2C_Read... [18:55:42]Read from MH i2c: D1 [18:55:42]MH_I2C_Read... [18:55:42]Read from MH i2c: D1 01 00 [18:55:42]MH_I2C_Read... [18:55:42]Read from MH i2c: D1 01 00 F7 02 00 CA [18:55:42]Write to MH i2c: 01 00 00 F8 02 FA [18:55:42]Write i2c OK [18:55:42]MH_I2C_Read... [18:55:42]OFD Sender: No OFD packet to send [18:55:43]*** Cut start [18:55:43]*** Purtial cut [18:55:43]*** Stage 1: CUTSNS_PIN = 1 [18:55:43]Read from MH i2c: 01 [18:55:43]MH_I2C_Read... [18:55:43]*** Stop cut motor [18:55:43]*** Cut end [18:55:43]Read from MH i2c: 01 07 00 [18:55:43]MH_I2C_Read... [18:55:43]Read from MH i2c: 01 07 00 F8 02 00 00 00 00 00 FF 0F 0F [18:55:43]process_action close_receipt done [18:55:43]requested_data is exist [18:55:43]produce_requested_data [18:55:43]requested_item fm.sn is exist - process it [18:55:43]wFMCommunicate request_size=4 [18:55:43]MH_SAM_APDU [18:55:43]CAPDU: 80 11 00 00 [18:55:43]Write to MH i2c: E2 08 00 F9 02 80 11 00 00 00 00 00 00 75 [18:55:43]Write i2c OK [18:55:43]MH_I2C_Read... [18:55:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:43]Read from MH i2c: E2 [18:55:43]MH_I2C_Read... [18:55:43]Read from MH i2c: E2 17 00 [18:55:43]MH_I2C_Read... [18:55:43]Read from MH i2c: E2 17 00 F9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CA [18:55:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [18:55:43]wFMCommunicate OK [18:55:43]requested_item fd.num is exist - process it [18:55:43]SAM_PROTO_GetFieldsCounters [18:55:43]wFMCommunicate request_size=4 [18:55:43]MH_SAM_APDU [18:55:43]CAPDU: 80 13 00 00 [18:55:43]Write to MH i2c: E2 08 00 FA 02 80 13 00 00 00 00 00 00 78 [18:55:43]Write i2c OK [18:55:43]MH_I2C_Read... [18:55:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:55:43]Read from MH i2c: E2 [18:55:43]MH_I2C_Read... [18:55:43]Read from MH i2c: E2 62 00 [18:55:43]MH_I2C_Read... [18:55:43]Read from MH i2c: E2 62 00 FA 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AB 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 95 01 00 00 5E 04 04 00 95 01 00 00 57 04 04 00 96 01 00 00 19 04 04 00 00 00 00 00 90 00 45 [18:55:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AB 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 95 01 00 00 5E 04 04 00 95 01 00 00 57 04 04 00 96 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:55:43]wFMCommunicate OK [18:55:43]SAM_PROTO_GetFieldsCounters done [18:55:43]requested_item shift.num is exist - process it [18:55:43]requested_item shift.opened is exist - process it [18:55:43]req_shift_opened [18:55:43]FM_GetShiftState [18:55:43]SAM_PROTO_GetShiftState [18:55:43]wFMCommunicate request_size=4 [18:55:43]MH_SAM_APDU [18:55:43]CAPDU: 80 13 01 00 [18:55:43]Write to MH i2c: E2 08 00 FB 02 80 13 01 00 00 00 00 00 7A [18:55:43]Write i2c OK [18:55:43]MH_I2C_Read... [18:55:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:43]Read from MH i2c: E2 [18:55:43]MH_I2C_Read... [18:55:43]Read from MH i2c: E2 0E 00 [18:55:43]MH_I2C_Read... [18:55:43]Read from MH i2c: E2 0E 00 FB 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 89 [18:55:43]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [18:55:43]wFMCommunicate OK [18:55:43]SAM_PROTO_GetShiftState done [18:55:43]FM_GetShiftState done [18:55:43]req_shift_opened done [18:55:43]requested_item shift.open_date is exist - process it [18:55:43]req_shift_open_date [18:55:43]req_shift_open_date done [18:55:43]produce_requested_data done [18:55:43]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201643,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [18:55:43]process_action_free close_receipt [18:55:43]json_value_free [18:55:43]json_value_free done [18:55:43]process_json_proto returns [18:55:43]Send response to host [18:55:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201643,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [18:55:43]free response buf [18:55:43]execute_script done [18:55:43]execute_script returns [18:55:43]free content buf [18:55:43]Sock 9.Close socket [18:55:43]Sock 9.Thread stoped [18:55:47]OFD Sender: No OFD packet to send [18:55:52]OFD Sender: No OFD packet to send [18:55:57]OFD Sender: No OFD packet to send [18:56:02]OFD Sender: No OFD packet to send [18:56:07]OFD Sender: No OFD packet to send [18:56:12]OFD Sender: No OFD packet to send [18:56:17]OFD Sender: No OFD packet to send [18:56:22]OFD Sender: No OFD packet to send [18:56:27]OFD Sender: No OFD packet to send [18:56:32]OFD Sender: No OFD packet to send [18:56:37]OFD Sender: No OFD packet to send [18:56:42]OFD Sender: No OFD packet to send [18:56:47]OFD Sender: No OFD packet to send [18:56:52]OFD Sender: No OFD packet to send [18:56:57]OFD Sender: No OFD packet to send [18:57:02]OFD Sender: No OFD packet to send [18:57:07]OFD Sender: No OFD packet to send [18:57:12]OFD Sender: No OFD packet to send [18:57:17]OFD Sender: No OFD packet to send [18:57:22]OFD Sender: No OFD packet to send [18:57:27]OFD Sender: No OFD packet to send [18:57:32]OFD Sender: No OFD packet to send [18:57:37]OFD Sender: No OFD packet to send [18:57:42]OFD Sender: No OFD packet to send [18:57:47]OFD Sender: No OFD packet to send [18:57:52]OFD Sender: No OFD packet to send [18:57:57]OFD Sender: No OFD packet to send [18:58:02]OFD Sender: No OFD packet to send [18:58:07]OFD Sender: No OFD packet to send [18:58:12]OFD Sender: No OFD packet to send [18:58:17]OFD Sender: No OFD packet to send [18:58:22]OFD Sender: No OFD packet to send [18:58:27]OFD Sender: No OFD packet to send [18:58:32]OFD Sender: No OFD packet to send [18:58:37]OFD Sender: No OFD packet to send [18:58:42]OFD Sender: No OFD packet to send [18:58:47]OFD Sender: No OFD packet to send [18:58:52]OFD Sender: No OFD packet to send [18:58:57]OFD Sender: No OFD packet to send [18:59:02]OFD Sender: No OFD packet to send [18:59:07]OFD Sender: No OFD packet to send [18:59:12]OFD Sender: No OFD packet to send [18:59:17]OFD Sender: No OFD packet to send [18:59:22]OFD Sender: No OFD packet to send [18:59:27]OFD Sender: No OFD packet to send [18:59:32]OFD Sender: No OFD packet to send [18:59:37]OFD Sender: No OFD packet to send [18:59:42]OFD Sender: No OFD packet to send [18:59:47]OFD Sender: No OFD packet to send [18:59:52]OFD Sender: No OFD packet to send [18:59:57]OFD Sender: No OFD packet to send [19:00:02]OFD Sender: No OFD packet to send [19:00:07]OFD Sender: No OFD packet to send [19:00:12]OFD Sender: No OFD packet to send [19:00:17]OFD Sender: No OFD packet to send [19:00:22]OFD Sender: No OFD packet to send [19:00:27]OFD Sender: No OFD packet to send [19:00:32]OFD Sender: No OFD packet to send [19:00:38]OFD Sender: No OFD packet to send [19:00:43]OFD Sender: No OFD packet to send [19:00:48]OFD Sender: No OFD packet to send [19:00:53]OFD Sender: No OFD packet to send [19:00:58]OFD Sender: No OFD packet to send [19:01:03]OFD Sender: No OFD packet to send [19:01:08]OFD Sender: No OFD packet to send [19:01:13]OFD Sender: No OFD packet to send [19:01:18]OFD Sender: No OFD packet to send [19:01:23]OFD Sender: No OFD packet to send [19:01:28]OFD Sender: No OFD packet to send [19:01:33]OFD Sender: No OFD packet to send [19:01:38]OFD Sender: No OFD packet to send [19:01:43]OFD Sender: No OFD packet to send [19:01:48]OFD Sender: No OFD packet to send [19:01:53]OFD Sender: No OFD packet to send [19:01:58]OFD Sender: No OFD packet to send [19:02:03]OFD Sender: No OFD packet to send [19:02:08]OFD Sender: No OFD packet to send [19:02:13]OFD Sender: No OFD packet to send [19:02:18]OFD Sender: No OFD packet to send [19:02:23]OFD Sender: No OFD packet to send [19:02:28]OFD Sender: No OFD packet to send [19:02:33]OFD Sender: No OFD packet to send [19:02:38]OFD Sender: No OFD packet to send [19:02:43]OFD Sender: No OFD packet to send [19:02:48]OFD Sender: No OFD packet to send [19:02:53]OFD Sender: No OFD packet to send [19:02:58]OFD Sender: No OFD packet to send [19:03:03]OFD Sender: No OFD packet to send [19:03:08]OFD Sender: No OFD packet to send [19:03:13]OFD Sender: No OFD packet to send [19:03:18]OFD Sender: No OFD packet to send [19:03:23]OFD Sender: No OFD packet to send [19:03:28]OFD Sender: No OFD packet to send [19:03:33]OFD Sender: No OFD packet to send [19:03:38]OFD Sender: No OFD packet to send [19:03:43]OFD Sender: No OFD packet to send [19:03:48]OFD Sender: No OFD packet to send [19:03:53]OFD Sender: No OFD packet to send [19:03:58]OFD Sender: No OFD packet to send [19:04:03]OFD Sender: No OFD packet to send [19:04:08]OFD Sender: No OFD packet to send [19:04:13]OFD Sender: No OFD packet to send [19:04:18]OFD Sender: No OFD packet to send [19:04:23]OFD Sender: No OFD packet to send [19:04:28]OFD Sender: No OFD packet to send [19:04:33]OFD Sender: No OFD packet to send [19:04:38]OFD Sender: No OFD packet to send [19:04:43]OFD Sender: No OFD packet to send [19:04:48]OFD Sender: No OFD packet to send [19:04:53]OFD Sender: No OFD packet to send [19:04:58]OFD Sender: No OFD packet to send [19:05:03]OFD Sender: No OFD packet to send [19:05:08]OFD Sender: No OFD packet to send [19:05:13]OFD Sender: No OFD packet to send [19:05:18]OFD Sender: No OFD packet to send [19:05:23]OFD Sender: No OFD packet to send [19:05:28]OFD Sender: No OFD packet to send [19:05:33]OFD Sender: No OFD packet to send [19:05:38]OFD Sender: No OFD packet to send [19:05:43]OFD Sender: No OFD packet to send [19:05:48]OFD Sender: No OFD packet to send [19:05:53]OFD Sender: No OFD packet to send [19:05:58]OFD Sender: No OFD packet to send [19:06:03]OFD Sender: No OFD packet to send [19:06:08]OFD Sender: No OFD packet to send [19:06:13]OFD Sender: No OFD packet to send [19:06:18]OFD Sender: No OFD packet to send [19:06:23]OFD Sender: No OFD packet to send [19:06:28]OFD Sender: No OFD packet to send [19:06:33]OFD Sender: No OFD packet to send [19:06:38]OFD Sender: No OFD packet to send [19:06:43]OFD Sender: No OFD packet to send [19:06:44]accept exits with 7 [19:06:44]New connection [19:06:44]New thread 3066608996 created [19:06:44]Thread 3066465636 joined [19:06:44]Waiting for new connection... [19:06:44] Sock 7.Parse request [19:06:44]Sock 7.Check first char [19:06:44]Sock 7.First char is OK [19:06:44]request: POST /json_proto HTTP/1.0 [19:06:44]Method: POST [19:06:44]URL: /json_proto [19:06:44]Method is POST - this is cgi request [19:06:44]url: /json_proto [19:06:44]query_string will be loaded in cgi processing [19:06:44]execute_cgi json_proto POST (null) [19:06:44]execute_cgi path=json_proto method=POST [19:06:44]POST find Content-Length [19:06:44]Host: 172.17.63.195:8080 [19:06:44]Content-Length: 677 [19:06:44]Content-Type: application/json [19:06:44] [19:06:44]POST finish read [19:06:44]Found Content-Length = 677 [19:06:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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" ] } } [19:06:44]execute_script... [19:06:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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" ] } } [19:06:44]POST & json_proto [19:06:44]process_json_proto [19:06:44]json parsed OK: [19:06:44]protocol is kg_v1.0 [19:06:44]action value=close_receipt [19:06:44]process_action close_receipt [19:06:44]cmd_close_receipt [19:06:44]MH_GetDate [19:06:44]Write to MH i2c: F0 00 00 FC 02 ED [19:06:44]Write i2c OK [19:06:44]MH_I2C_Read... [19:06:44]Read from MH i2c: F0 [19:06:44]MH_I2C_Read... [19:06:44]Read from MH i2c: F0 09 00 [19:06:44]MH_I2C_Read... [19:06:44]Read from MH i2c: F0 09 00 FC 02 00 C4 3D 1D 67 68 46 19 67 A9 [19:06:44]GetLastDocTimeStamp 1729968940 [19:06:44]current date 1729969604 [19:06:44]FM_GetShiftState [19:06:44]SAM_PROTO_GetShiftState [19:06:44]wFMCommunicate request_size=4 [19:06:44]MH_SAM_APDU [19:06:44]CAPDU: 80 13 01 00 [19:06:44]Write to MH i2c: E2 08 00 FD 02 80 13 01 00 00 00 00 00 7C [19:06:44]Write i2c OK [19:06:44]MH_I2C_Read... [19:06:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:44]Read from MH i2c: E2 [19:06:44]MH_I2C_Read... [19:06:44]Read from MH i2c: E2 0E 00 [19:06:44]MH_I2C_Read... [19:06:44]Read from MH i2c: E2 0E 00 FD 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 8B [19:06:44]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:06:44]wFMCommunicate OK [19:06:44]SAM_PROTO_GetShiftState done [19:06:44]FM_GetShiftState done [19:06:44]opened in 1729900879 [19:06:44]opened+sec_in_day 1729987279 [19:06:44]quantity*price = 60009 [19:06:44]sum+1 = 60010 [19:06:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 406 26.10.2024 19:06 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201644 ФПД: 168739436651362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190644&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201644&fm=168739436651362&tin=02508201610067®Number=0000000000091777&sum=60000 [19:06:45]StoreToDocumentArchive [19:06:45]shift 543 fd 201644 [19:06:45]save to /storage/0543/doc_00201644 [19:06:45]save last doc name /storage/0543/doc_00201644 to /storage/kkm_last_doc_name [19:06:45]save OK [19:06:45]Clear old archive folders... [19:06:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:06:45]tlvbuf is 0103D910 [19:06:45]SAM_PROTO_ClearQueue [19:06:45]wFMCommunicate request_size=4 [19:06:45]MH_SAM_APDU [19:06:45]CAPDU: 80 09 00 00 [19:06:45]Write to MH i2c: E2 08 00 0A 03 80 09 00 00 00 00 00 00 7F [19:06:45]Write i2c OK [19:06:45]MH_I2C_Read... [19:06:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:45]Read from MH i2c: E2 [19:06:45]MH_I2C_Read... [19:06:45]Read from MH i2c: E2 03 00 [19:06:45]MH_I2C_Read... [19:06:45]Read from MH i2c: E2 03 00 0A 03 00 90 00 81 [19:06:45]RAPDU: 90 00 [19:06:45]wFMCommunicate OK [19:06:45]SAM_PROTO_ClearQueue done [19:06:45]KKMCreateOFDPacket [19:06:45]OFDProtocolAddRootSTLVToBuf [19:06:45]FM_MakeSignedData [19:06:45]FM_MakeSignedData [19:06:45]SAM_PROTO_SignData [19:06:45]wFMCommunicate request_size=4 [19:06:45]MH_SAM_APDU [19:06:45]CAPDU: 80 0D 01 02 [19:06:45]Write to MH i2c: E2 08 00 0B 03 80 0D 01 02 00 00 00 00 87 [19:06:45]Write i2c OK [19:06:45]MH_I2C_Read... [19:06:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:45]Read from MH i2c: E2 [19:06:45]MH_I2C_Read... [19:06:45]Read from MH i2c: E2 03 00 [19:06:45]MH_I2C_Read... [19:06:45]Read from MH i2c: E2 03 00 0B 03 00 90 00 82 [19:06:45]RAPDU: 90 00 [19:06:45]wFMCommunicate OK [19:06:45]wFMCommunicate request_size=255 [19:06:45]MH_SAM_APDU [19:06: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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 96 01 00 00 F4 03 04 00 C4 3D 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AC 13 03 00 35 04 06 00 99 [19:06:45]Write to MH i2c: E2 02 01 0C 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 96 01 00 00 F4 03 04 00 C4 3D 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AC 13 03 00 35 04 06 00 99 00 00 90 [19:06:45]Write i2c OK [19:06:45]MH_I2C_Read... [19:06:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:46]Read from MH i2c: E2 [19:06:46]MH_I2C_Read... [19:06:46]Read from MH i2c: E2 03 00 [19:06:46]MH_I2C_Read... [19:06:46]Read from MH i2c: E2 03 00 0C 03 00 90 00 83 [19:06:46]RAPDU: 90 00 [19:06:46]wFMCommunicate OK [19:06:46]wFMCommunicate request_size=10 [19:06:46]MH_SAM_APDU [19:06:46]CAPDU: 80 0D 02 02 05 77 B6 2E 63 62 [19:06:46]Write to MH i2c: E2 0D 00 0D 03 80 0D 02 02 05 00 77 B6 2E 63 62 00 00 B4 [19:06:46]Write i2c OK [19:06:46]MH_I2C_Read... [19:06:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:46]Read from MH i2c: E2 [19:06:46]MH_I2C_Read... [19:06:46]Read from MH i2c: E2 03 00 [19:06:46]MH_I2C_Read... [19:06:46]Read from MH i2c: E2 03 00 0D 03 00 90 00 84 [19:06:46]RAPDU: 90 00 [19:06:46]wFMCommunicate OK [19:06:46]wFMCommunicate request_size=4 [19:06:46]MH_SAM_APDU [19:06:46]CAPDU: 80 0D 03 02 [19:06:46]Write to MH i2c: E2 08 00 0E 03 80 0D 03 02 00 00 00 00 8C [19:06:46]Write i2c OK [19:06:46]MH_I2C_Read... [19:06:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:46]Read from MH i2c: E2 [19:06:46]MH_I2C_Read... [19:06:46]Read from MH i2c: E2 0B 00 [19:06:46]MH_I2C_Read... [19:06:46]Read from MH i2c: E2 0B 00 0E 03 00 F5 10 69 68 0C 4A 65 FE 90 00 1C [19:06:46]RAPDU: F5 10 69 68 0C 4A 65 FE 90 00 [19:06:46]wFMCommunicate OK [19:06:46]SAM_PROTO_SignData done [19:06:46]FM_MakeSignedData done [19:06:46]CreateOFDProtocolMessage [19:06:46]wFMCommunicate request_size=4 [19:06:46]MH_SAM_APDU [19:06:46]CAPDU: 80 11 00 00 [19:06:46]Write to MH i2c: E2 08 00 0F 03 80 11 00 00 00 00 00 00 8C [19:06:46]Write i2c OK [19:06:46]MH_I2C_Read... [19:06:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:46]Read from MH i2c: E2 [19:06:46]MH_I2C_Read... [19:06:46]Read from MH i2c: E2 17 00 [19:06:46]MH_I2C_Read... [19:06:46]Read from MH i2c: E2 17 00 0F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E1 [19:06:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:06:46]wFMCommunicate OK [19:06:46]CreateOFDProtocolMessage done [19:06:46]OFDSenderStorePacket 201644 [19:06:46]StoreOFDPacket docnum=201644 [19:06:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C8 13 07 01 26 1F 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 96 01 00 00 F4 03 04 00 C4 3D 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AC 13 03 00 35 04 06 00 99 77 B6 2E 63 62 F5 10 69 68 0C 4A 65 FE [19:06:46]CheckFolder [19:06:46]dirname=/storage/ofd_packets [19:06:46]CheckFolder done [19:06:46]ProducePacketName [19:06:46]name=ofd_packets/00201644 [19:06:46]NVStorageSaveData ofd_packets/00201644 [19:06:46]File name is /storage/ofd_packets/00201644 [19:06:46]Write 301 bytes [19:06:46]NVStorageSaveData done [19:06:46]OFDSenderStorePacket done [19:06:46]KKMCreateOFDPacket done [19:06:46]NVStorageSaveData kkm_last_timestamp [19:06:46]File name is /storage/kkm_last_timestamp [19:06:46]Write 4 bytes [19:06:46]NVStorageSaveData done [19:06:46]ExternCall_PrintAddStr [19:06:46]wPrintStart [19:06:46]Write to MH i2c: 01 00 00 10 03 13 [19:06:46]Write i2c OK [19:06:46]MH_I2C_Read... [19:06:46]Read from MH i2c: 01 [19:06:46]MH_I2C_Read... [19:06:46]Read from MH i2c: 01 07 00 [19:06:46]MH_I2C_Read... [19:06:46]Read from MH i2c: 01 07 00 10 03 00 00 00 00 00 FF 0F 28 [19:06:46]RasterBufferAndPrint [19:06:46]line Счет N : (1)449401 [19:06:46]line ИНН: 02508201610067 [19:06:46]line Контрольно-Кассовый Чек [19:06:46]line ПРОДАЖА [19:06:46]line ТРК (МРК, ГНК) : 41 [19:06:46]line Товар: 2710124130 [19:06:46]line Аи-92-К-2 [19:06:46]line 8.970 * 66.90 [19:06:46]line = 600.09 [19:06:46]line НДС 12% НСП 1% [19:06:46]line > о реализуемом товаре [19:06:46]line ОКРУГЛЕНИЕ: -0.09 [19:06:46]line ИТОГО: 600.00 [19:06:46]line Внесено: 600.00 [19:06:46]line СДАЧА: 0.00 [19:06:46]line НСП 1% : 5.31 [19:06:46]line НДС 12% : 63.73 [19:06:46]line Наличными: 600.00 [19:06:46]line Безнал.: 0.00 [19:06:46]line Место: АЗС № 171 "Партнер Нефть" [19:06:46]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:06:46]line СНО: Общий режим [19:06:46]line Чек 406 26.10.2024 19:06 [19:06:46]line Смена: 543 ФФД: 1.0 [19:06:46]line ЗНМ: 0300000109 [19:06:46]line РНМ: 0000000000091777 [19:06:46]line Версия ККМ: 001 [19:06:46]line ФМ: 0000000000871756 [19:06:46]line ФД: 201644 [19:06:46]line ФПД: 168739436651362 [19:06:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190644&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201644&fm=168739436651362&tin=02508201610067®Number=0000000000091777&sum=60000 [19:06:46]OFD Sender: Processing packet 201644 [packets to send 112, broken 111] [19:06:46]ProducePacketName [19:06:46]name=ofd_packets/00201644 [19:06:46]OFD Sender: To server: pG, [19:06:46]CommunicateWithHost lk.salyk.kg:30040 [19:06:46]ConnectInit lk.salyk.kg [19:06:46]written 0, free lines is 4095 [19:06:46]Connected sock=10 [19:06:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 C8 13 07 01 26 1F 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 96 01 00 00 F4 03 04 00 C4 3D 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AC 13 03 00 35 04 06 00 99 77 B6 2E 63 62 F5 10 69 68 0C 4A 65 FE [19:06:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E0 B6 47 00 E2 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AC 13 03 00 F4 03 04 00 6D E9 1C 67 B6 04 01 00 00 17 E7 DB F6 5A B2 59 0C [19:06:46]CommunicateWithHost err = 0 [19:06:46]CheckOFDResponse [19:06:46]1017 (14) - 77093643461234 [19:06:46]1041 (16) - 0000000000871756 [19:06:46]1040 (4) - 201644 [19:06:46]1012 (4) - 26.10.2024 13:06 [19:06:46]1206 (1) - 0 [19:06:46]OFD Sender: Remove packet 201644 [19:06:46]ProducePacketName [19:06:46]name=ofd_packets/00201644 [19:06:46]NVStorageDeleteData [19:06:47]Write to MH i2c: 01 00 00 3B 03 3E [19:06:47]Write i2c OK [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: 01 [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: 01 07 00 [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: 01 07 00 3B 03 00 00 00 00 00 A7 0C F8 [19:06:47]RasterBufferAndPrint [19:06:47]line [19:06:47]line [19:06:47]line [19:06:47]line [19:06:47]line [19:06:47]written 0, free lines is 3244 [19:06:47]MH_Cut [19:06:47]Write to MH i2c: D1 01 00 42 03 01 17 [19:06:47]Write i2c OK [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: D1 [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: D1 01 00 [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: D1 01 00 42 03 00 16 [19:06:47]Write to MH i2c: 01 00 00 43 03 46 [19:06:47]Write i2c OK [19:06:47]MH_I2C_Read... [19:06:47]OFD Sender: No OFD packet to send [19:06:47]*** Cut start [19:06:47]*** Purtial cut [19:06:47]*** CUTSNS_PIN = 0 [19:06:48]*** Stage 1: CUTSNS_PIN = 1 [19:06:49]Read from MH i2c: 01 [19:06:49]MH_I2C_Read... [19:06:49]*** Stop cut motor [19:06:49]*** Cut end [19:06:49]Read from MH i2c: 01 07 00 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: 01 07 00 43 03 00 00 00 00 00 FF 0F 5B [19:06:49]process_action close_receipt done [19:06:49]requested_data is exist [19:06:49]produce_requested_data [19:06:49]requested_item fm.sn is exist - process it [19:06:49]wFMCommunicate request_size=4 [19:06:49]MH_SAM_APDU [19:06:49]CAPDU: 80 11 00 00 [19:06:49]Write to MH i2c: E2 08 00 44 03 80 11 00 00 00 00 00 00 C1 [19:06:49]Write i2c OK [19:06:49]MH_I2C_Read... [19:06:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:50]Read from MH i2c: E2 [19:06:50]MH_I2C_Read... [19:06:50]Read from MH i2c: E2 17 00 [19:06:50]MH_I2C_Read... [19:06:50]Read from MH i2c: E2 17 00 44 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 16 [19:06:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:06:50]wFMCommunicate OK [19:06:50]requested_item fd.num is exist - process it [19:06:50]SAM_PROTO_GetFieldsCounters [19:06:50]wFMCommunicate request_size=4 [19:06:50]MH_SAM_APDU [19:06:50]CAPDU: 80 13 00 00 [19:06:50]Write to MH i2c: E2 08 00 45 03 80 13 00 00 00 00 00 00 C4 [19:06:50]Write i2c OK [19:06:50]MH_I2C_Read... [19:06:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:50]Read from MH i2c: E2 [19:06:50]MH_I2C_Read... [19:06:50]Read from MH i2c: E2 62 00 [19:06:50]MH_I2C_Read... [19:06:50]Read from MH i2c: E2 62 00 45 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AC 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 96 01 00 00 5E 04 04 00 96 01 00 00 57 04 04 00 97 01 00 00 19 04 04 00 00 00 00 00 90 00 95 [19:06:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AC 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 96 01 00 00 5E 04 04 00 96 01 00 00 57 04 04 00 97 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:06:50]wFMCommunicate OK [19:06:50]SAM_PROTO_GetFieldsCounters done [19:06:50]requested_item shift.num is exist - process it [19:06:50]requested_item shift.opened is exist - process it [19:06:50]req_shift_opened [19:06:50]FM_GetShiftState [19:06:50]SAM_PROTO_GetShiftState [19:06:50]wFMCommunicate request_size=4 [19:06:50]MH_SAM_APDU [19:06:50]CAPDU: 80 13 01 00 [19:06:50]Write to MH i2c: E2 08 00 46 03 80 13 01 00 00 00 00 00 C6 [19:06:50]Write i2c OK [19:06:50]MH_I2C_Read... [19:06:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:50]Read from MH i2c: E2 [19:06:50]MH_I2C_Read... [19:06:50]Read from MH i2c: E2 0E 00 [19:06:50]MH_I2C_Read... [19:06:50]Read from MH i2c: E2 0E 00 46 03 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D5 [19:06:50]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:06:50]wFMCommunicate OK [19:06:50]SAM_PROTO_GetShiftState done [19:06:50]FM_GetShiftState done [19:06:50]req_shift_opened done [19:06:50]requested_item shift.open_date is exist - process it [19:06:50]req_shift_open_date [19:06:50]req_shift_open_date done [19:06:50]produce_requested_data done [19:06:50]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201644,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [19:06:50]process_action_free close_receipt [19:06:50]json_value_free [19:06:50]json_value_free done [19:06:50]process_json_proto returns [19:06:50]Send response to host [19:06:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201644,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [19:06:50]free response buf [19:06:50]execute_script done [19:06:50]execute_script returns [19:06:50]free content buf [19:06:50]Sock 7.Close socket [19:06:50]Sock 7.Thread stoped [19:06:52]OFD Sender: No OFD packet to send [19:06:57]OFD Sender: No OFD packet to send [19:07:02]OFD Sender: No OFD packet to send [19:07:07]OFD Sender: No OFD packet to send [19:07:08]accept exits with 9 [19:07:08]New connection [19:07:08]New thread 3066465636 created [19:07:08]Thread 3066608996 joined [19:07:08]Waiting for new connection... [19:07:08] Sock 9.Parse request [19:07:08]Sock 9.Check first char [19:07:08]Sock 9.First char is OK [19:07:08]request: POST /json_proto HTTP/1.0 [19:07:08]Method: POST [19:07:08]URL: /json_proto [19:07:08]Method is POST - this is cgi request [19:07:08]url: /json_proto [19:07:08]query_string will be loaded in cgi processing [19:07:08]execute_cgi json_proto POST (null) [19:07:08]execute_cgi path=json_proto method=POST [19:07:08]POST find Content-Length [19:07:08]Host: 172.17.63.195:8080 [19:07:08]Content-Length: 682 [19:07:08]Content-Type: application/json [19:07:08] [19:07:08]POST finish read [19:07:08]Found Content-Length = 682 [19:07:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [19:07:08]execute_script... [19:07:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [19:07:08]POST & json_proto [19:07:08]process_json_proto [19:07:08]json parsed OK: [19:07:08]protocol is kg_v1.0 [19:07:08]action value=close_receipt [19:07:08]process_action close_receipt [19:07:08]cmd_close_receipt [19:07:08]MH_GetDate [19:07:08]Write to MH i2c: F0 00 00 47 03 39 [19:07:08]Write i2c OK [19:07:08]MH_I2C_Read... [19:07:08]Read from MH i2c: F0 [19:07:08]MH_I2C_Read... [19:07:08]Read from MH i2c: F0 09 00 [19:07:08]MH_I2C_Read... [19:07:08]Read from MH i2c: F0 09 00 47 03 00 DD 3D 1D 67 68 46 19 67 0E [19:07:08]GetLastDocTimeStamp 1729969604 [19:07:08]current date 1729969629 [19:07:08]FM_GetShiftState [19:07:08]SAM_PROTO_GetShiftState [19:07:08]wFMCommunicate request_size=4 [19:07:08]MH_SAM_APDU [19:07:08]CAPDU: 80 13 01 00 [19:07:08]Write to MH i2c: E2 08 00 48 03 80 13 01 00 00 00 00 00 C8 [19:07:08]Write i2c OK [19:07:08]MH_I2C_Read... [19:07:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:08]Read from MH i2c: E2 [19:07:08]MH_I2C_Read... [19:07:08]Read from MH i2c: E2 0E 00 [19:07:08]MH_I2C_Read... [19:07:08]Read from MH i2c: E2 0E 00 48 03 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D7 [19:07:08]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:07:08]wFMCommunicate OK [19:07:08]SAM_PROTO_GetShiftState done [19:07:08]FM_GetShiftState done [19:07:08]opened in 1729900879 [19:07:08]opened+sec_in_day 1729987279 [19:07:08]quantity*price = 100015 [19:07:08]sum+1 = 100017 [19:07:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 407 26.10.2024 19:07 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201645 ФПД: 279011193566416 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190709&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201645&fm=279011193566416&tin=02508201610067®Number=0000000000091777&sum=100000 [19:07:09]StoreToDocumentArchive [19:07:09]shift 543 fd 201645 [19:07:09]save to /storage/0543/doc_00201645 [19:07:09]save last doc name /storage/0543/doc_00201645 to /storage/kkm_last_doc_name [19:07:09]save OK [19:07:09]Clear old archive folders... [19:07:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:07:09]tlvbuf is 0103F0E0 [19:07:09]SAM_PROTO_ClearQueue [19:07:09]wFMCommunicate request_size=4 [19:07:09]MH_SAM_APDU [19:07:09]CAPDU: 80 09 00 00 [19:07:09]Write to MH i2c: E2 08 00 55 03 80 09 00 00 00 00 00 00 CA [19:07:09]Write i2c OK [19:07:09]MH_I2C_Read... [19:07:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:07:09]Read from MH i2c: E2 [19:07:09]MH_I2C_Read... [19:07:09]Read from MH i2c: E2 03 00 [19:07:09]MH_I2C_Read... [19:07:09]Read from MH i2c: E2 03 00 55 03 00 90 00 CC [19:07:09]RAPDU: 90 00 [19:07:09]wFMCommunicate OK [19:07:09]SAM_PROTO_ClearQueue done [19:07:09]KKMCreateOFDPacket [19:07:09]OFDProtocolAddRootSTLVToBuf [19:07:09]FM_MakeSignedData [19:07:09]FM_MakeSignedData [19:07:09]SAM_PROTO_SignData [19:07:09]wFMCommunicate request_size=4 [19:07:09]MH_SAM_APDU [19:07:09]CAPDU: 80 0D 01 02 [19:07:09]Write to MH i2c: E2 08 00 56 03 80 0D 01 02 00 00 00 00 D2 [19:07:09]Write i2c OK [19:07:09]MH_I2C_Read... [19:07:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:07:09]Read from MH i2c: E2 [19:07:09]MH_I2C_Read... [19:07:09]Read from MH i2c: E2 03 00 [19:07:09]MH_I2C_Read... [19:07:09]Read from MH i2c: E2 03 00 56 03 00 90 00 CD [19:07:09]RAPDU: 90 00 [19:07:09]wFMCommunicate OK [19:07:09]wFMCommunicate request_size=255 [19:07:09]MH_SAM_APDU [19:07:09]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 32 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 97 01 00 00 F4 03 04 00 DD 3D 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AD 13 03 00 35 04 06 00 FD [19:07:09]Write to MH i2c: E2 02 01 57 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 32 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 97 01 00 00 F4 03 04 00 DD 3D 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AD 13 03 00 35 04 06 00 FD 00 00 77 [19:07:09]Write i2c OK [19:07:09]MH_I2C_Read... [19:07:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:10]Read from MH i2c: E2 [19:07:10]MH_I2C_Read... [19:07:10]Read from MH i2c: E2 03 00 [19:07:10]MH_I2C_Read... [19:07:10]Read from MH i2c: E2 03 00 57 03 00 90 00 CE [19:07:10]RAPDU: 90 00 [19:07:10]wFMCommunicate OK [19:07:10]wFMCommunicate request_size=10 [19:07:10]MH_SAM_APDU [19:07:10]CAPDU: 80 0D 02 02 05 C2 5B 14 B4 D0 [19:07:10]Write to MH i2c: E2 0D 00 58 03 80 0D 02 02 05 00 C2 5B 14 B4 D0 00 00 94 [19:07:10]Write i2c OK [19:07:10]MH_I2C_Read... [19:07:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:10]Read from MH i2c: E2 [19:07:10]MH_I2C_Read... [19:07:10]Read from MH i2c: E2 03 00 [19:07:10]MH_I2C_Read... [19:07:10]Read from MH i2c: E2 03 00 58 03 00 90 00 CF [19:07:10]RAPDU: 90 00 [19:07:10]wFMCommunicate OK [19:07:10]wFMCommunicate request_size=4 [19:07:10]MH_SAM_APDU [19:07:10]CAPDU: 80 0D 03 02 [19:07:10]Write to MH i2c: E2 08 00 59 03 80 0D 03 02 00 00 00 00 D7 [19:07:10]Write i2c OK [19:07:10]MH_I2C_Read... [19:07:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:07:10]Read from MH i2c: E2 [19:07:10]MH_I2C_Read... [19:07:10]Read from MH i2c: E2 0B 00 [19:07:10]MH_I2C_Read... [19:07:10]Read from MH i2c: E2 0B 00 59 03 00 EB BD 43 B7 6D 86 42 37 90 00 E6 [19:07:10]RAPDU: EB BD 43 B7 6D 86 42 37 90 00 [19:07:10]wFMCommunicate OK [19:07:10]SAM_PROTO_SignData done [19:07:10]FM_MakeSignedData done [19:07:10]CreateOFDProtocolMessage [19:07:10]wFMCommunicate request_size=4 [19:07:10]MH_SAM_APDU [19:07:10]CAPDU: 80 11 00 00 [19:07:10]Write to MH i2c: E2 08 00 5A 03 80 11 00 00 00 00 00 00 D7 [19:07:10]Write i2c OK [19:07:10]MH_I2C_Read... [19:07:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:10]Read from MH i2c: E2 [19:07:10]MH_I2C_Read... [19:07:10]Read from MH i2c: E2 17 00 [19:07:10]MH_I2C_Read... [19:07:10]Read from MH i2c: E2 17 00 5A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2C [19:07:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:07:10]wFMCommunicate OK [19:07:10]CreateOFDProtocolMessage done [19:07:10]OFDSenderStorePacket 201645 [19:07:10]StoreOFDPacket docnum=201645 [19:07:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 3E 01 07 01 0D 21 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 32 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 97 01 00 00 F4 03 04 00 DD 3D 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AD 13 03 00 35 04 06 00 FD C2 5B 14 B4 D0 EB BD 43 B7 6D 86 42 37 [19:07:10]CheckFolder [19:07:10]dirname=/storage/ofd_packets [19:07:10]CheckFolder done [19:07:10]ProducePacketName [19:07:10]name=ofd_packets/00201645 [19:07:10]NVStorageSaveData ofd_packets/00201645 [19:07:10]File name is /storage/ofd_packets/00201645 [19:07:10]Write 301 bytes [19:07:10]NVStorageSaveData done [19:07:10]OFDSenderStorePacket done [19:07:10]KKMCreateOFDPacket done [19:07:10]NVStorageSaveData kkm_last_timestamp [19:07:10]File name is /storage/kkm_last_timestamp [19:07:10]Write 4 bytes [19:07:10]NVStorageSaveData done [19:07:10]ExternCall_PrintAddStr [19:07:10]wPrintStart [19:07:10]Write to MH i2c: 01 00 00 5B 03 5E [19:07:10]OFD Sender: Processing packet 201645 [packets to send 112, broken 111] [19:07:10]ProducePacketName [19:07:10]name=ofd_packets/00201645 [19:07:10]OFD Sender: To server: pG, [19:07:10]CommunicateWithHost lk.salyk.kg:30040 [19:07:10]ConnectInit lk.salyk.kg [19:07:10]Write i2c OK [19:07:10]MH_I2C_Read... [19:07:10]Read from MH i2c: 01 [19:07:10]MH_I2C_Read... [19:07:10]Read from MH i2c: 01 07 00 [19:07:10]MH_I2C_Read... [19:07:10]Read from MH i2c: 01 07 00 5B 03 00 00 00 00 00 FF 0F 73 [19:07:10]RasterBufferAndPrint [19:07:10]line Счет N : (1)449402 [19:07:10]line ИНН: 02508201610067 [19:07:10]line Контрольно-Кассовый Чек [19:07:10]line ПРОДАЖА [19:07:10]line ТРК (МРК, ГНК) : 31 [19:07:10]line Товар: 2710124130 [19:07:10]line Аи-92-К-2 [19:07:10]line 14.950 * 66.90 [19:07:10]line = 1000.16 [19:07:10]line НДС 12% НСП 1% [19:07:10]line > о реализуемом товаре [19:07:10]line ОКРУГЛЕНИЕ: -0.16 [19:07:10]line ИТОГО: 1000.00 [19:07:10]line Внесено: 1000.00 [19:07:10]line СДАЧА: 0.00 [19:07:10]line НСП 1% : 8.85 [19:07:10]line НДС 12% : 106.21 [19:07:10]line Наличными: 1000.00 [19:07:10]line Безнал.: 0.00 [19:07:10]line Место: АЗС № 171 "Партнер Нефть" [19:07:10]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:07:10]line СНО: Общий режим [19:07:10]line Чек 407 26.10.2024 19:07 [19:07:10]line Смена: 543 ФФД: 1.0 [19:07:10]line ЗНМ: 0300000109 [19:07:10]line РНМ: 0000000000091777 [19:07:10]line Версия ККМ: 001 [19:07:10]line ФМ: 0000000000871756 [19:07:10]line ФД: 201645 [19:07:10]line ФПД: 279011193566416 [19:07:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190709&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201645&fm=279011193566416&tin=02508201610067®Number=0000000000091777&sum=100000 [19:07:10]Connected sock=7 [19:07:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 3E 01 07 01 0D 21 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 32 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 97 01 00 00 F4 03 04 00 DD 3D 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AD 13 03 00 35 04 06 00 FD C2 5B 14 B4 D0 EB BD 43 B7 6D 86 42 37 [19:07:10]written 0, free lines is 4095 [19:07:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 AF 24 47 00 26 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AD 13 03 00 F4 03 04 00 85 E9 1C 67 B6 04 01 00 00 70 AC EA A0 09 4D 62 DC [19:07:10]CommunicateWithHost err = 0 [19:07:10]CheckOFDResponse [19:07:10]1017 (14) - 77093643461234 [19:07:10]1041 (16) - 0000000000871756 [19:07:10]1040 (4) - 201645 [19:07:10]1012 (4) - 26.10.2024 13:07 [19:07:10]1206 (1) - 0 [19:07:10]OFD Sender: Remove packet 201645 [19:07:10]ProducePacketName [19:07:10]name=ofd_packets/00201645 [19:07:10]NVStorageDeleteData [19:07:11]Write to MH i2c: 01 00 00 86 03 89 [19:07:11]Write i2c OK [19:07:11]MH_I2C_Read... [19:07:11]Read from MH i2c: 01 [19:07:11]MH_I2C_Read... [19:07:11]Read from MH i2c: 01 07 00 [19:07:11]MH_I2C_Read... [19:07:11]Read from MH i2c: 01 07 00 86 03 00 00 00 00 00 9B 0C 37 [19:07:11]RasterBufferAndPrint [19:07:11]line [19:07:11]line [19:07:11]line [19:07:11]line [19:07:11]line [19:07:11]written 0, free lines is 3234 [19:07:11]MH_Cut [19:07:11]Write to MH i2c: D1 01 00 8D 03 01 62 [19:07:11]Write i2c OK [19:07:11]MH_I2C_Read... [19:07:11]Read from MH i2c: D1 [19:07:11]MH_I2C_Read... [19:07:11]Read from MH i2c: D1 01 00 [19:07:11]MH_I2C_Read... [19:07:11]Read from MH i2c: D1 01 00 8D 03 00 61 [19:07:11]Write to MH i2c: 01 00 00 8E 03 91 [19:07:11]Write i2c OK [19:07:11]MH_I2C_Read... [19:07:11]OFD Sender: No OFD packet to send [19:07:12]*** Cut start [19:07:12]*** Purtial cut [19:07:12]*** Stage 1: CUTSNS_PIN = 1 [19:07:12]Read from MH i2c: 01 [19:07:12]MH_I2C_Read... [19:07:12]*** Stop cut motor [19:07:12]*** Cut end [19:07:12]Read from MH i2c: 01 07 00 [19:07:12]MH_I2C_Read... [19:07:12]Read from MH i2c: 01 07 00 8E 03 00 00 00 00 00 FF 0F A6 [19:07:12]process_action close_receipt done [19:07:12]requested_data is exist [19:07:12]produce_requested_data [19:07:12]requested_item fm.sn is exist - process it [19:07:12]wFMCommunicate request_size=4 [19:07:12]MH_SAM_APDU [19:07:12]CAPDU: 80 11 00 00 [19:07:12]Write to MH i2c: E2 08 00 8F 03 80 11 00 00 00 00 00 00 0C [19:07:12]Write i2c OK [19:07:12]MH_I2C_Read... [19:07:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:12]Read from MH i2c: E2 [19:07:12]MH_I2C_Read... [19:07:12]Read from MH i2c: E2 17 00 [19:07:12]MH_I2C_Read... [19:07:12]Read from MH i2c: E2 17 00 8F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 61 [19:07:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:07:12]wFMCommunicate OK [19:07:12]requested_item fd.num is exist - process it [19:07:12]SAM_PROTO_GetFieldsCounters [19:07:12]wFMCommunicate request_size=4 [19:07:12]MH_SAM_APDU [19:07:12]CAPDU: 80 13 00 00 [19:07:12]Write to MH i2c: E2 08 00 90 03 80 13 00 00 00 00 00 00 0F [19:07:12]Write i2c OK [19:07:12]MH_I2C_Read... [19:07:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:07:12]Read from MH i2c: E2 [19:07:12]MH_I2C_Read... [19:07:12]Read from MH i2c: E2 62 00 [19:07:12]MH_I2C_Read... [19:07:12]Read from MH i2c: E2 62 00 90 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AD 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 98 01 00 00 19 04 04 00 00 00 00 00 90 00 E4 [19:07:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AD 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 98 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:07:12]wFMCommunicate OK [19:07:12]SAM_PROTO_GetFieldsCounters done [19:07:12]requested_item shift.num is exist - process it [19:07:12]requested_item shift.opened is exist - process it [19:07:12]req_shift_opened [19:07:12]FM_GetShiftState [19:07:12]SAM_PROTO_GetShiftState [19:07:12]wFMCommunicate request_size=4 [19:07:12]MH_SAM_APDU [19:07:12]CAPDU: 80 13 01 00 [19:07:12]Write to MH i2c: E2 08 00 91 03 80 13 01 00 00 00 00 00 11 [19:07:12]Write i2c OK [19:07:12]MH_I2C_Read... [19:07:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:12]Read from MH i2c: E2 [19:07:12]MH_I2C_Read... [19:07:12]Read from MH i2c: E2 0E 00 [19:07:12]MH_I2C_Read... [19:07:12]Read from MH i2c: E2 0E 00 91 03 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 20 [19:07:12]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:07:12]wFMCommunicate OK [19:07:12]SAM_PROTO_GetShiftState done [19:07:12]FM_GetShiftState done [19:07:12]req_shift_opened done [19:07:12]requested_item shift.open_date is exist - process it [19:07:12]req_shift_open_date [19:07:12]req_shift_open_date done [19:07:12]produce_requested_data done [19:07:12]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201645,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [19:07:12]process_action_free close_receipt [19:07:12]json_value_free [19:07:12]json_value_free done [19:07:12]process_json_proto returns [19:07:12]Send response to host [19:07:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201645,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [19:07:12]free response buf [19:07:12]execute_script done [19:07:12]execute_script returns [19:07:12]free content buf [19:07:12]Sock 9.Close socket [19:07:12]Sock 9.Thread stoped [19:07:16]OFD Sender: No OFD packet to send [19:07:21]OFD Sender: No OFD packet to send [19:07:26]OFD Sender: No OFD packet to send [19:07:31]OFD Sender: No OFD packet to send [19:07:36]OFD Sender: No OFD packet to send [19:07:41]OFD Sender: No OFD packet to send [19:07:46]OFD Sender: No OFD packet to send [19:07:51]OFD Sender: No OFD packet to send [19:07:56]OFD Sender: No OFD packet to send [19:08:01]OFD Sender: No OFD packet to send [19:08:06]OFD Sender: No OFD packet to send [19:08:11]OFD Sender: No OFD packet to send [19:08:16]OFD Sender: No OFD packet to send [19:08:21]OFD Sender: No OFD packet to send [19:08:26]OFD Sender: No OFD packet to send [19:08:31]OFD Sender: No OFD packet to send [19:08:36]OFD Sender: No OFD packet to send [19:08:41]OFD Sender: No OFD packet to send [19:08:46]OFD Sender: No OFD packet to send [19:08:51]OFD Sender: No OFD packet to send [19:08:56]OFD Sender: No OFD packet to send [19:09:01]OFD Sender: No OFD packet to send [19:09:06]OFD Sender: No OFD packet to send [19:09:09]accept exits with 10 [19:09:09]New connection [19:09:09]New thread 3066608996 created [19:09:09]Thread 3066465636 joined [19:09:09]Waiting for new connection... [19:09:09] Sock 10.Parse request [19:09:09]Sock 10.Check first char [19:09:09]Sock 10.First char is OK [19:09:09]request: POST /json_proto HTTP/1.0 [19:09:09]Method: POST [19:09:09]URL: /json_proto [19:09:09]Method is POST - this is cgi request [19:09:09]url: /json_proto [19:09:09]query_string will be loaded in cgi processing [19:09:09]execute_cgi json_proto POST (null) [19:09:09]execute_cgi path=json_proto method=POST [19:09:09]POST find Content-Length [19:09:09]Host: 172.17.63.195:8080 [19:09:09]Content-Length: 679 [19:09:09]Content-Type: application/json [19:09:09] [19:09:09]POST finish read [19:09:09]Found Content-Length = 679 [19:09:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [19:09:09]execute_script... [19:09: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)449403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [19:09:09]POST & json_proto [19:09:09]process_json_proto [19:09:09]json parsed OK: [19:09:09]protocol is kg_v1.0 [19:09:09]action value=close_receipt [19:09:09]process_action close_receipt [19:09:09]cmd_close_receipt [19:09:09]MH_GetDate [19:09:09]Write to MH i2c: F0 00 00 92 03 84 [19:09:09]Write i2c OK [19:09:09]MH_I2C_Read... [19:09:09]Read from MH i2c: F0 [19:09:09]MH_I2C_Read... [19:09:09]Read from MH i2c: F0 09 00 [19:09:09]MH_I2C_Read... [19:09:09]Read from MH i2c: F0 09 00 92 03 00 55 3E 1D 67 68 46 19 67 D2 [19:09:09]GetLastDocTimeStamp 1729969629 [19:09:09]current date 1729969749 [19:09:09]FM_GetShiftState [19:09:09]SAM_PROTO_GetShiftState [19:09:09]wFMCommunicate request_size=4 [19:09:09]MH_SAM_APDU [19:09:09]CAPDU: 80 13 01 00 [19:09:09]Write to MH i2c: E2 08 00 93 03 80 13 01 00 00 00 00 00 13 [19:09:09]Write i2c OK [19:09:09]MH_I2C_Read... [19:09:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:09]Read from MH i2c: E2 [19:09:09]MH_I2C_Read... [19:09:09]Read from MH i2c: E2 0E 00 [19:09:09]MH_I2C_Read... [19:09:09]Read from MH i2c: E2 0E 00 93 03 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 22 [19:09:09]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:09:09]wFMCommunicate OK [19:09:09]SAM_PROTO_GetShiftState done [19:09:09]FM_GetShiftState done [19:09:09]opened in 1729900879 [19:09:09]opened+sec_in_day 1729987279 [19:09:09]quantity*price = 100050 [19:09:09]sum+1 = 100052 [19:09:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 408 26.10.2024 19:09 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201646 ФПД: 276645136621592 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190909&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201646&fm=276645136621592&tin=02508201610067®Number=0000000000091777&sum=100000 [19:09:10]StoreToDocumentArchive [19:09:10]shift 543 fd 201646 [19:09:10]save to /storage/0543/doc_00201646 [19:09:10]save last doc name /storage/0543/doc_00201646 to /storage/kkm_last_doc_name [19:09:10]save OK [19:09:10]Clear old archive folders... [19:09:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:09:10]tlvbuf is 0103E5A0 [19:09:10]SAM_PROTO_ClearQueue [19:09:10]wFMCommunicate request_size=4 [19:09:10]MH_SAM_APDU [19:09:10]CAPDU: 80 09 00 00 [19:09:10]Write to MH i2c: E2 08 00 A0 03 80 09 00 00 00 00 00 00 15 [19:09:10]Write i2c OK [19:09:10]MH_I2C_Read... [19:09:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:10]Read from MH i2c: E2 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 03 00 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 03 00 A0 03 00 90 00 17 [19:09:10]RAPDU: 90 00 [19:09:10]wFMCommunicate OK [19:09:10]SAM_PROTO_ClearQueue done [19:09:10]KKMCreateOFDPacket [19:09:10]OFDProtocolAddRootSTLVToBuf [19:09:10]FM_MakeSignedData [19:09:10]FM_MakeSignedData [19:09:10]SAM_PROTO_SignData [19:09:10]wFMCommunicate request_size=4 [19:09:10]MH_SAM_APDU [19:09:10]CAPDU: 80 0D 01 02 [19:09:10]Write to MH i2c: E2 08 00 A1 03 80 0D 01 02 00 00 00 00 1D [19:09:10]Write i2c OK [19:09:10]MH_I2C_Read... [19:09:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:10]Read from MH i2c: E2 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 03 00 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 03 00 A1 03 00 90 00 18 [19:09:10]RAPDU: 90 00 [19:09:10]wFMCommunicate OK [19:09:10]wFMCommunicate request_size=255 [19:09:10]MH_SAM_APDU [19:09:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 98 01 00 00 F4 03 04 00 55 3E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AE 13 03 00 35 04 06 00 FB 9B 77 18 [19:09:10]Write to MH i2c: E2 02 01 A2 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 98 01 00 00 F4 03 04 00 55 3E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AE 13 03 00 35 04 06 00 FB 9B 77 18 00 00 61 [19:09:10]Write i2c OK [19:09:10]MH_I2C_Read... [19:09:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:10]Read from MH i2c: E2 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 03 00 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 03 00 A2 03 00 90 00 19 [19:09:10]RAPDU: 90 00 [19:09:10]wFMCommunicate OK [19:09:10]wFMCommunicate request_size=7 [19:09:10]MH_SAM_APDU [19:09:10]CAPDU: 80 0D 02 02 02 E0 18 [19:09:10]Write to MH i2c: E2 0A 00 A3 03 80 0D 02 02 02 00 E0 18 00 00 1C [19:09:10]Write i2c OK [19:09:10]MH_I2C_Read... [19:09:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:10]Read from MH i2c: E2 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 03 00 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 03 00 A3 03 00 90 00 1A [19:09:10]RAPDU: 90 00 [19:09:10]wFMCommunicate OK [19:09:10]wFMCommunicate request_size=4 [19:09:10]MH_SAM_APDU [19:09:10]CAPDU: 80 0D 03 02 [19:09:10]Write to MH i2c: E2 08 00 A4 03 80 0D 03 02 00 00 00 00 22 [19:09:10]Write i2c OK [19:09:10]MH_I2C_Read... [19:09:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:10]Read from MH i2c: E2 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 0B 00 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 0B 00 A4 03 00 1F 7D 6B 00 89 DB E5 59 90 00 CC [19:09:10]RAPDU: 1F 7D 6B 00 89 DB E5 59 90 00 [19:09:10]wFMCommunicate OK [19:09:10]SAM_PROTO_SignData done [19:09:10]FM_MakeSignedData done [19:09:10]CreateOFDProtocolMessage [19:09:10]wFMCommunicate request_size=4 [19:09:10]MH_SAM_APDU [19:09:10]CAPDU: 80 11 00 00 [19:09:10]Write to MH i2c: E2 08 00 A5 03 80 11 00 00 00 00 00 00 22 [19:09:10]Write i2c OK [19:09:10]MH_I2C_Read... [19:09:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:10]Read from MH i2c: E2 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 17 00 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 17 00 A5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 77 [19:09:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:09:10]wFMCommunicate OK [19:09:10]CreateOFDProtocolMessage done [19:09:10]OFDSenderStorePacket 201646 [19:09:10]StoreOFDPacket docnum=201646 [19:09:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 2B C5 04 01 D1 26 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 98 01 00 00 F4 03 04 00 55 3E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AE 13 03 00 35 04 06 00 FB 9B 77 18 E0 18 1F 7D 6B 00 89 DB E5 59 [19:09:10]CheckFolder [19:09:10]dirname=/storage/ofd_packets [19:09:10]CheckFolder done [19:09:10]ProducePacketName [19:09:10]name=ofd_packets/00201646 [19:09:10]NVStorageSaveData ofd_packets/00201646 [19:09:10]File name is /storage/ofd_packets/00201646 [19:09:10]Write 298 bytes [19:09:10]NVStorageSaveData done [19:09:10]OFDSenderStorePacket done [19:09:10]KKMCreateOFDPacket done [19:09:10]NVStorageSaveData kkm_last_timestamp [19:09:10]File name is /storage/kkm_last_timestamp [19:09:10]Write 4 bytes [19:09:10]NVStorageSaveData done [19:09:10]ExternCall_PrintAddStr [19:09:10]wPrintStart [19:09:10]Write to MH i2c: 01 00 00 A6 03 A9 [19:09:10]Write i2c OK [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: 01 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: 01 07 00 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: 01 07 00 A6 03 00 00 00 00 00 FF 0F BE [19:09:10]RasterBufferAndPrint [19:09:10]line Счет N : (1)449403 [19:09:10]line ИНН: 02508201610067 [19:09:10]line Контрольно-Кассовый Чек [19:09:10]line ПРОДАЖА [19:09:10]line ТРК (МРК, ГНК) : 43 [19:09:10]line Товар: 2710194210 [19:09:10]line ДТ-К-2 [19:09:10]line 13.130 * 76.20 [19:09:10]line = 1000.51 [19:09:10]line НДС 12% НСП 1% [19:09:10]line > о реализуемом товаре [19:09:10]line ОКРУГЛЕНИЕ: -0.51 [19:09:10]line ИТОГО: 1000.00 [19:09:10]line Внесено: 1000.00 [19:09:10]line СДАЧА: 0.00 [19:09:10]line НСП 1% : 8.85 [19:09:10]line НДС 12% : 106.25 [19:09:10]line Наличными: 1000.00 [19:09:10]line Безнал.: 0.00 [19:09:10]line Место: АЗС № 171 "Партнер Нефть" [19:09:10]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:09:10]line СНО: Общий режим [19:09:10]line Чек 408 26.10.2024 19:09 [19:09:10]line Смена: 543 ФФД: 1.0 [19:09:10]line ЗНМ: 0300000109 [19:09:10]line РНМ: 0000000000091777 [19:09:10]line Версия ККМ: 001 [19:09:10]line ФМ: 0000000000871756 [19:09:10]line ФД: 201646 [19:09:10]line ФПД: 276645136621592 [19:09:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190909&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201646&fm=276645136621592&tin=02508201610067®Number=0000000000091777&sum=100000 [19:09:11]OFD Sender: Processing packet 201646 [packets to send 112, broken 111] [19:09:11]ProducePacketName [19:09:11]name=ofd_packets/00201646 [19:09:11]OFD Sender: To server: pG, [19:09:11]CommunicateWithHost lk.salyk.kg:30040 [19:09:11]ConnectInit lk.salyk.kg [19:09:11]written 0, free lines is 4095 [19:09:11]Connected sock=9 [19:09:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 2B C5 04 01 D1 26 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 98 01 00 00 F4 03 04 00 55 3E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AE 13 03 00 35 04 06 00 FB 9B 77 18 E0 18 1F 7D 6B 00 89 DB E5 59 [19:09:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C5 B4 47 00 46 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AE 13 03 00 F4 03 04 00 FD E9 1C 67 B6 04 01 00 00 F9 98 CB CA B1 31 9B 45 [19:09:11]CommunicateWithHost err = 0 [19:09:11]CheckOFDResponse [19:09:11]1017 (14) - 77093643461234 [19:09:11]1041 (16) - 0000000000871756 [19:09:11]1040 (4) - 201646 [19:09:11]1012 (4) - 26.10.2024 13:09 [19:09:11]1206 (1) - 0 [19:09:11]OFD Sender: Remove packet 201646 [19:09:11]ProducePacketName [19:09:11]name=ofd_packets/00201646 [19:09:11]NVStorageDeleteData [19:09:11]Write to MH i2c: 01 00 00 D1 03 D4 [19:09:11]Write i2c OK [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: 01 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: 01 07 00 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: 01 07 00 D1 03 00 00 00 00 00 9B 0C 82 [19:09:11]RasterBufferAndPrint [19:09:11]line [19:09:11]line [19:09:11]line [19:09:11]line [19:09:11]line [19:09:11]written 0, free lines is 3232 [19:09:11]MH_Cut [19:09:11]Write to MH i2c: D1 01 00 D8 03 01 AD [19:09:11]Write i2c OK [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: D1 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: D1 01 00 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: D1 01 00 D8 03 00 AC [19:09:11]Write to MH i2c: 01 00 00 D9 03 DC [19:09:11]Write i2c OK [19:09:11]MH_I2C_Read... [19:09:12]OFD Sender: No OFD packet to send [19:09:12]*** Cut start [19:09:12]*** Purtial cut [19:09:12]*** CUTSNS_PIN = 0 [19:09:12]*** Stage 1: CUTSNS_PIN = 1 [19:09:14]Read from MH i2c: 01 [19:09:14]MH_I2C_Read... [19:09:14]*** Stop cut motor [19:09:14]*** Cut end [19:09:14]Read from MH i2c: 01 07 00 [19:09:14]MH_I2C_Read... [19:09:14]Read from MH i2c: 01 07 00 D9 03 00 00 00 00 00 FF 0F F1 [19:09:14]process_action close_receipt done [19:09:14]requested_data is exist [19:09:14]produce_requested_data [19:09:14]requested_item fm.sn is exist - process it [19:09:14]wFMCommunicate request_size=4 [19:09:14]MH_SAM_APDU [19:09:14]CAPDU: 80 11 00 00 [19:09:14]Write to MH i2c: E2 08 00 DA 03 80 11 00 00 00 00 00 00 57 [19:09:14]Write i2c OK [19:09:14]MH_I2C_Read... [19:09:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:14]Read from MH i2c: E2 [19:09:14]MH_I2C_Read... [19:09:14]Read from MH i2c: E2 17 00 [19:09:14]MH_I2C_Read... [19:09:14]Read from MH i2c: E2 17 00 DA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AC [19:09:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:09:14]wFMCommunicate OK [19:09:14]requested_item fd.num is exist - process it [19:09:14]SAM_PROTO_GetFieldsCounters [19:09:14]wFMCommunicate request_size=4 [19:09:14]MH_SAM_APDU [19:09:14]CAPDU: 80 13 00 00 [19:09:14]Write to MH i2c: E2 08 00 DB 03 80 13 00 00 00 00 00 00 5A [19:09:14]Write i2c OK [19:09:14]MH_I2C_Read... [19:09:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:14]Read from MH i2c: E2 [19:09:14]MH_I2C_Read... [19:09:14]Read from MH i2c: E2 62 00 [19:09:14]MH_I2C_Read... [19:09:14]Read from MH i2c: E2 62 00 DB 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AE 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 98 01 00 00 5E 04 04 00 98 01 00 00 57 04 04 00 99 01 00 00 19 04 04 00 00 00 00 00 90 00 33 [19:09:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AE 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 98 01 00 00 5E 04 04 00 98 01 00 00 57 04 04 00 99 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:09:14]wFMCommunicate OK [19:09:14]SAM_PROTO_GetFieldsCounters done [19:09:14]requested_item shift.num is exist - process it [19:09:14]requested_item shift.opened is exist - process it [19:09:14]req_shift_opened [19:09:14]FM_GetShiftState [19:09:14]SAM_PROTO_GetShiftState [19:09:14]wFMCommunicate request_size=4 [19:09:14]MH_SAM_APDU [19:09:14]CAPDU: 80 13 01 00 [19:09:14]Write to MH i2c: E2 08 00 DC 03 80 13 01 00 00 00 00 00 5C [19:09:14]Write i2c OK [19:09:14]MH_I2C_Read... [19:09:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:14]Read from MH i2c: E2 [19:09:14]MH_I2C_Read... [19:09:14]Read from MH i2c: E2 0E 00 [19:09:14]MH_I2C_Read... [19:09:14]Read from MH i2c: E2 0E 00 DC 03 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 6B [19:09:14]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:09:14]wFMCommunicate OK [19:09:14]SAM_PROTO_GetShiftState done [19:09:14]FM_GetShiftState done [19:09:14]req_shift_opened done [19:09:14]requested_item shift.open_date is exist - process it [19:09:14]req_shift_open_date [19:09:14]req_shift_open_date done [19:09:14]produce_requested_data done [19:09:14]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201646,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [19:09:14]process_action_free close_receipt [19:09:14]json_value_free [19:09:14]json_value_free done [19:09:14]process_json_proto returns [19:09:14]Send response to host [19:09:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201646,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [19:09:14]free response buf [19:09:14]execute_script done [19:09:14]execute_script returns [19:09:14]free content buf [19:09:14]Sock 10.Close socket [19:09:14]Sock 10.Thread stoped [19:09:17]OFD Sender: No OFD packet to send [19:09:22]OFD Sender: No OFD packet to send [19:09:27]OFD Sender: No OFD packet to send [19:09:32]OFD Sender: No OFD packet to send [19:09:37]OFD Sender: No OFD packet to send [19:09:37]accept exits with 7 [19:09:37]New connection [19:09:37]New thread 3066465636 created [19:09:37]Thread 3066608996 joined [19:09:37]Waiting for new connection... [19:09:37] Sock 7.Parse request [19:09:37]Sock 7.Check first char [19:09:37]Sock 7.First char is OK [19:09:37]request: POST /json_proto HTTP/1.0 [19:09:37]Method: POST [19:09:37]URL: /json_proto [19:09:37]Method is POST - this is cgi request [19:09:37]url: /json_proto [19:09:37]query_string will be loaded in cgi processing [19:09:37]execute_cgi json_proto POST (null) [19:09:37]execute_cgi path=json_proto method=POST [19:09:37]POST find Content-Length [19:09:37]Host: 172.17.63.195:8080 [19:09:37]Content-Length: 675 [19:09:37]Content-Type: application/json [19:09:37] [19:09:37]POST finish read [19:09:37]Found Content-Length = 675 [19:09:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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" ] } } [19:09:37]execute_script... [19:09:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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" ] } } [19:09:37]POST & json_proto [19:09:37]process_json_proto [19:09:37]json parsed OK: [19:09:37]protocol is kg_v1.0 [19:09:37]action value=close_receipt [19:09:37]process_action close_receipt [19:09:37]cmd_close_receipt [19:09:37]MH_GetDate [19:09:37]Write to MH i2c: F0 00 00 DD 03 CF [19:09:37]Write i2c OK [19:09:37]MH_I2C_Read... [19:09:37]Read from MH i2c: F0 [19:09:37]MH_I2C_Read... [19:09:37]Read from MH i2c: F0 09 00 [19:09:37]MH_I2C_Read... [19:09:37]Read from MH i2c: F0 09 00 DD 03 00 72 3E 1D 67 68 46 19 67 3A [19:09:37]GetLastDocTimeStamp 1729969749 [19:09:37]current date 1729969778 [19:09:37]FM_GetShiftState [19:09:37]SAM_PROTO_GetShiftState [19:09:37]wFMCommunicate request_size=4 [19:09:37]MH_SAM_APDU [19:09:37]CAPDU: 80 13 01 00 [19:09:37]Write to MH i2c: E2 08 00 DE 03 80 13 01 00 00 00 00 00 5E [19:09:37]Write i2c OK [19:09:37]MH_I2C_Read... [19:09:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:38]Read from MH i2c: E2 [19:09:38]MH_I2C_Read... [19:09:38]Read from MH i2c: E2 0E 00 [19:09:38]MH_I2C_Read... [19:09:38]Read from MH i2c: E2 0E 00 DE 03 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 6D [19:09:38]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:09:38]wFMCommunicate OK [19:09:38]SAM_PROTO_GetShiftState done [19:09:38]FM_GetShiftState done [19:09:38]opened in 1729900879 [19:09:38]opened+sec_in_day 1729987279 [19:09:38]quantity*price = 100000 [19:09:38]sum+1 = 100002 [19:09:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 409 26.10.2024 19:09 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201647 ФПД: 36093240433941 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190938&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201647&fm=36093240433941&tin=02508201610067®Number=0000000000091777&sum=100000 [19:09:39]StoreToDocumentArchive [19:09:39]shift 543 fd 201647 [19:09:39]save to /storage/0543/doc_00201647 [19:09:39]save last doc name /storage/0543/doc_00201647 to /storage/kkm_last_doc_name [19:09:39]save OK [19:09:39]Clear old archive folders... [19:09:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:09:39]tlvbuf is 0103F310 [19:09:39]SAM_PROTO_ClearQueue [19:09:39]wFMCommunicate request_size=4 [19:09:39]MH_SAM_APDU [19:09:39]CAPDU: 80 09 00 00 [19:09:39]Write to MH i2c: E2 08 00 EB 03 80 09 00 00 00 00 00 00 60 [19:09:39]Write i2c OK [19:09:39]MH_I2C_Read... [19:09:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:39]Read from MH i2c: E2 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 03 00 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 03 00 EB 03 00 90 00 62 [19:09:39]RAPDU: 90 00 [19:09:39]wFMCommunicate OK [19:09:39]SAM_PROTO_ClearQueue done [19:09:39]KKMCreateOFDPacket [19:09:39]OFDProtocolAddRootSTLVToBuf [19:09:39]FM_MakeSignedData [19:09:39]FM_MakeSignedData [19:09:39]SAM_PROTO_SignData [19:09:39]wFMCommunicate request_size=4 [19:09:39]MH_SAM_APDU [19:09:39]CAPDU: 80 0D 01 02 [19:09:39]Write to MH i2c: E2 08 00 EC 03 80 0D 01 02 00 00 00 00 68 [19:09:39]Write i2c OK [19:09:39]MH_I2C_Read... [19:09:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:39]Read from MH i2c: E2 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 03 00 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 03 00 EC 03 00 90 00 63 [19:09:39]RAPDU: 90 00 [19:09:39]wFMCommunicate OK [19:09:39]wFMCommunicate request_size=255 [19:09:39]MH_SAM_APDU [19:09:39]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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 99 01 00 00 F4 03 04 00 72 3E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AF 13 03 00 35 04 06 00 [19:09:39]Write to MH i2c: E2 02 01 ED 03 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 99 01 00 00 F4 03 04 00 72 3E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AF 13 03 00 35 04 06 00 00 00 85 [19:09:39]Write i2c OK [19:09:39]MH_I2C_Read... [19:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:39]Read from MH i2c: E2 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 03 00 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 03 00 ED 03 00 90 00 64 [19:09:39]RAPDU: 90 00 [19:09:39]wFMCommunicate OK [19:09:39]wFMCommunicate request_size=11 [19:09:39]MH_SAM_APDU [19:09:39]CAPDU: 80 0D 02 02 06 20 D3 9C C6 5D 15 [19:09:39]Write to MH i2c: E2 0E 00 EE 03 80 0D 02 02 06 00 20 D3 9C C6 5D 15 00 00 3E [19:09:39]Write i2c OK [19:09:39]MH_I2C_Read... [19:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:39]Read from MH i2c: E2 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 03 00 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 03 00 EE 03 00 90 00 65 [19:09:39]RAPDU: 90 00 [19:09:39]wFMCommunicate OK [19:09:39]wFMCommunicate request_size=4 [19:09:39]MH_SAM_APDU [19:09:39]CAPDU: 80 0D 03 02 [19:09:39]Write to MH i2c: E2 08 00 EF 03 80 0D 03 02 00 00 00 00 6D [19:09:39]Write i2c OK [19:09:39]MH_I2C_Read... [19:09:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:39]Read from MH i2c: E2 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 0B 00 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 0B 00 EF 03 00 86 4B 6D 57 A6 44 73 CD 90 00 2D [19:09:39]RAPDU: 86 4B 6D 57 A6 44 73 CD 90 00 [19:09:39]wFMCommunicate OK [19:09:39]SAM_PROTO_SignData done [19:09:39]FM_MakeSignedData done [19:09:39]CreateOFDProtocolMessage [19:09:39]wFMCommunicate request_size=4 [19:09:39]MH_SAM_APDU [19:09:39]CAPDU: 80 11 00 00 [19:09:39]Write to MH i2c: E2 08 00 F0 03 80 11 00 00 00 00 00 00 6D [19:09:39]Write i2c OK [19:09:39]MH_I2C_Read... [19:09:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:39]Read from MH i2c: E2 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 17 00 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 17 00 F0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C2 [19:09:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:09:39]wFMCommunicate OK [19:09:39]CreateOFDProtocolMessage done [19:09:39]OFDSenderStorePacket 201647 [19:09:39]StoreOFDPacket docnum=201647 [19:09:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 68 A9 08 01 FC 06 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 99 01 00 00 F4 03 04 00 72 3E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AF 13 03 00 35 04 06 00 20 D3 9C C6 5D 15 86 4B 6D 57 A6 44 73 CD [19:09:39]CheckFolder [19:09:39]dirname=/storage/ofd_packets [19:09:39]CheckFolder done [19:09:39]ProducePacketName [19:09:39]name=ofd_packets/00201647 [19:09:39]NVStorageSaveData ofd_packets/00201647 [19:09:39]File name is /storage/ofd_packets/00201647 [19:09:39]Write 302 bytes [19:09:39]NVStorageSaveData done [19:09:39]OFDSenderStorePacket done [19:09:39]KKMCreateOFDPacket done [19:09:39]NVStorageSaveData kkm_last_timestamp [19:09:39]File name is /storage/kkm_last_timestamp [19:09:39]Write 4 bytes [19:09:39]NVStorageSaveData done [19:09:39]ExternCall_PrintAddStr [19:09:39]wPrintStart [19:09:39]Write to MH i2c: 01 00 00 F1 03 F4 [19:09:39]Write i2c OK [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: 01 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: 01 07 00 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: 01 07 00 F1 03 00 00 00 00 00 FF 0F 09 [19:09:39]RasterBufferAndPrint [19:09:39]line Счет N : (1)449404 [19:09:39]line ИНН: 02508201610067 [19:09:39]line Контрольно-Кассовый Чек [19:09:39]line ПРОДАЖА [19:09:39]line ТРК (МРК, ГНК) : 53 [19:09:39]line Товар: 2710124130 [19:09:39]line SUPER 92-К-5 [19:09:39]line 14.620 * 68.40 [19:09:39]line = 1000.01 [19:09:39]line НДС 12% НСП 1% [19:09:39]line > о реализуемом товаре [19:09:39]line ОКРУГЛЕНИЕ: -0.01 [19:09:39]line ИТОГО: 1000.00 [19:09:39]line Внесено: 1000.00 [19:09:39]line СДАЧА: 0.00 [19:09:39]line НСП 1% : 8.85 [19:09:39]line НДС 12% : 106.20 [19:09:39]line Наличными: 1000.00 [19:09:39]line Безнал.: 0.00 [19:09:39]line Место: АЗС № 171 "Партнер Нефть" [19:09:39]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:09:39]line СНО: Общий режим [19:09:39]line Чек 409 26.10.2024 19:09 [19:09:39]line Смена: 543 ФФД: 1.0 [19:09:39]line ЗНМ: 0300000109 [19:09:39]line РНМ: 0000000000091777 [19:09:39]line Версия ККМ: 001 [19:09:39]line ФМ: 0000000000871756 [19:09:39]line ФД: 201647 [19:09:39]line ФПД: 36093240433941 [19:09:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190938&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201647&fm=36093240433941&tin=02508201610067®Number=0000000000091777&sum=100000 [19:09:40]OFD Sender: Processing packet 201647 [packets to send 112, broken 111] [19:09:40]ProducePacketName [19:09:40]name=ofd_packets/00201647 [19:09:40]OFD Sender: To server: pG, [19:09:40]CommunicateWithHost lk.salyk.kg:30040 [19:09:40]ConnectInit lk.salyk.kg [19:09:40]written 0, free lines is 4095 [19:09:40]Connected sock=10 [19:09:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 68 A9 08 01 FC 06 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 99 01 00 00 F4 03 04 00 72 3E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AF 13 03 00 35 04 06 00 20 D3 9C C6 5D 15 86 4B 6D 57 A6 44 73 CD [19:09:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C9 6F 47 00 E3 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 AF 13 03 00 F4 03 04 00 1A EA 1C 67 B6 04 01 00 00 7F D3 D2 20 F0 A6 53 2E [19:09:40]CommunicateWithHost err = 0 [19:09:40]CheckOFDResponse [19:09:40]1017 (14) - 77093643461234 [19:09:40]1041 (16) - 0000000000871756 [19:09:40]1040 (4) - 201647 [19:09:40]1012 (4) - 26.10.2024 13:09 [19:09:40]1206 (1) - 0 [19:09:40]OFD Sender: Remove packet 201647 [19:09:40]ProducePacketName [19:09:40]name=ofd_packets/00201647 [19:09:40]NVStorageDeleteData [19:09:40]Write to MH i2c: 01 00 00 1C 04 20 [19:09:40]Write i2c OK [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: 01 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: 01 07 00 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: 01 07 00 1C 04 00 00 00 00 00 9D 0C D0 [19:09:40]RasterBufferAndPrint [19:09:40]line [19:09:40]line [19:09:40]line [19:09:40]line [19:09:40]line [19:09:40]written 0, free lines is 3235 [19:09:40]MH_Cut [19:09:40]Write to MH i2c: D1 01 00 23 04 01 F9 [19:09:40]Write i2c OK [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: D1 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: D1 01 00 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: D1 01 00 23 04 00 F8 [19:09:40]Write to MH i2c: 01 00 00 24 04 28 [19:09:40]Write i2c OK [19:09:40]MH_I2C_Read... [19:09:40]OFD Sender: No OFD packet to send [19:09:41]*** Cut start [19:09:41]*** Purtial cut [19:09:41]*** Stage 1: CUTSNS_PIN = 1 [19:09:41]Read from MH i2c: 01 [19:09:41]MH_I2C_Read... [19:09:41]*** Stop cut motor [19:09:41]*** Cut end [19:09:41]Read from MH i2c: 01 07 00 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: 01 07 00 24 04 00 00 00 00 00 FF 0F 3D [19:09:41]process_action close_receipt done [19:09:41]requested_data is exist [19:09:41]produce_requested_data [19:09:41]requested_item fm.sn is exist - process it [19:09:41]wFMCommunicate request_size=4 [19:09:41]MH_SAM_APDU [19:09:41]CAPDU: 80 11 00 00 [19:09:41]Write to MH i2c: E2 08 00 25 04 80 11 00 00 00 00 00 00 A3 [19:09:41]Write i2c OK [19:09:41]MH_I2C_Read... [19:09:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:41]Read from MH i2c: E2 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: E2 17 00 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: E2 17 00 25 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F8 [19:09:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:09:41]wFMCommunicate OK [19:09:41]requested_item fd.num is exist - process it [19:09:41]SAM_PROTO_GetFieldsCounters [19:09:41]wFMCommunicate request_size=4 [19:09:41]MH_SAM_APDU [19:09:41]CAPDU: 80 13 00 00 [19:09:41]Write to MH i2c: E2 08 00 26 04 80 13 00 00 00 00 00 00 A6 [19:09:41]Write i2c OK [19:09:41]MH_I2C_Read... [19:09:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:41]Read from MH i2c: E2 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: E2 62 00 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: E2 62 00 26 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AF 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 99 01 00 00 5E 04 04 00 99 01 00 00 57 04 04 00 9A 01 00 00 19 04 04 00 00 00 00 00 90 00 83 [19:09:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 AF 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 99 01 00 00 5E 04 04 00 99 01 00 00 57 04 04 00 9A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:09:41]wFMCommunicate OK [19:09:41]SAM_PROTO_GetFieldsCounters done [19:09:41]requested_item shift.num is exist - process it [19:09:41]requested_item shift.opened is exist - process it [19:09:41]req_shift_opened [19:09:41]FM_GetShiftState [19:09:41]SAM_PROTO_GetShiftState [19:09:41]wFMCommunicate request_size=4 [19:09:41]MH_SAM_APDU [19:09:41]CAPDU: 80 13 01 00 [19:09:41]Write to MH i2c: E2 08 00 27 04 80 13 01 00 00 00 00 00 A8 [19:09:41]Write i2c OK [19:09:41]MH_I2C_Read... [19:09:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:41]Read from MH i2c: E2 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: E2 0E 00 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: E2 0E 00 27 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 B7 [19:09:41]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:09:41]wFMCommunicate OK [19:09:41]SAM_PROTO_GetShiftState done [19:09:41]FM_GetShiftState done [19:09:41]req_shift_opened done [19:09:41]requested_item shift.open_date is exist - process it [19:09:41]req_shift_open_date [19:09:41]req_shift_open_date done [19:09:41]produce_requested_data done [19:09:41]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201647,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [19:09:41]process_action_free close_receipt [19:09:41]json_value_free [19:09:41]json_value_free done [19:09:41]process_json_proto returns [19:09:41]Send response to host [19:09:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201647,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [19:09:41]free response buf [19:09:41]execute_script done [19:09:41]execute_script returns [19:09:41]free content buf [19:09:41]Sock 7.Close socket [19:09:41]Sock 7.Thread stoped [19:09:45]OFD Sender: No OFD packet to send [19:09:48]accept exits with 9 [19:09:48]New connection [19:09:48]New thread 3066608996 created [19:09:48]Thread 3066465636 joined [19:09:48]Waiting for new connection... [19:09:48] Sock 9.Parse request [19:09:48]Sock 9.Check first char [19:09:48]Sock 9.First char is OK [19:09:48]request: POST /json_proto HTTP/1.0 [19:09:48]Method: POST [19:09:48]URL: /json_proto [19:09:48]Method is POST - this is cgi request [19:09:48]url: /json_proto [19:09:48]query_string will be loaded in cgi processing [19:09:48]execute_cgi json_proto POST (null) [19:09:48]execute_cgi path=json_proto method=POST [19:09:48]POST find Content-Length [19:09:48]Host: 172.17.63.195:8080 [19:09:48]Content-Length: 682 [19:09:48]Content-Type: application/json [19:09:48] [19:09:48]POST finish read [19:09:48]Found Content-Length = 682 [19:09:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [19:09:48]execute_script... [19:09:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [19:09:48]POST & json_proto [19:09:48]process_json_proto [19:09:48]json parsed OK: [19:09:48]protocol is kg_v1.0 [19:09:48]action value=close_receipt [19:09:48]process_action close_receipt [19:09:48]cmd_close_receipt [19:09:48]MH_GetDate [19:09:48]Write to MH i2c: F0 00 00 28 04 1B [19:09:48]Write i2c OK [19:09:48]MH_I2C_Read... [19:09:48]Read from MH i2c: F0 [19:09:48]MH_I2C_Read... [19:09:48]Read from MH i2c: F0 09 00 [19:09:48]MH_I2C_Read... [19:09:48]Read from MH i2c: F0 09 00 28 04 00 7D 3E 1D 67 68 46 19 67 91 [19:09:48]GetLastDocTimeStamp 1729969778 [19:09:48]current date 1729969789 [19:09:48]FM_GetShiftState [19:09:48]SAM_PROTO_GetShiftState [19:09:48]wFMCommunicate request_size=4 [19:09:48]MH_SAM_APDU [19:09:48]CAPDU: 80 13 01 00 [19:09:48]Write to MH i2c: E2 08 00 29 04 80 13 01 00 00 00 00 00 AA [19:09:48]Write i2c OK [19:09:48]MH_I2C_Read... [19:09:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:48]Read from MH i2c: E2 [19:09:48]MH_I2C_Read... [19:09:48]Read from MH i2c: E2 0E 00 [19:09:48]MH_I2C_Read... [19:09:48]Read from MH i2c: E2 0E 00 29 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 B9 [19:09:48]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:09:48]wFMCommunicate OK [19:09:48]SAM_PROTO_GetShiftState done [19:09:48]FM_GetShiftState done [19:09:48]opened in 1729900879 [19:09:48]opened+sec_in_day 1729987279 [19:09:48]quantity*price = 100015 [19:09:48]sum+1 = 100017 [19:09:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 410 26.10.2024 19:09 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201648 ФПД: 241232498074439 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190949&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201648&fm=241232498074439&tin=02508201610067®Number=0000000000091777&sum=100000 [19:09:50]StoreToDocumentArchive [19:09:50]shift 543 fd 201648 [19:09:50]save to /storage/0543/doc_00201648 [19:09:50]save last doc name /storage/0543/doc_00201648 to /storage/kkm_last_doc_name [19:09:50]save OK [19:09:50]Clear old archive folders... [19:09:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:09:50]tlvbuf is 01071AE0 [19:09:50]SAM_PROTO_ClearQueue [19:09:50]wFMCommunicate request_size=4 [19:09:50]MH_SAM_APDU [19:09:50]CAPDU: 80 09 00 00 [19:09:50]Write to MH i2c: E2 08 00 36 04 80 09 00 00 00 00 00 00 AC [19:09:50]Write i2c OK [19:09:50]MH_I2C_Read... [19:09:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:50]Read from MH i2c: E2 [19:09:50]MH_I2C_Read... [19:09:50]Read from MH i2c: E2 03 00 [19:09:50]MH_I2C_Read... [19:09:50]Read from MH i2c: E2 03 00 36 04 00 90 00 AE [19:09:50]RAPDU: 90 00 [19:09:50]wFMCommunicate OK [19:09:50]SAM_PROTO_ClearQueue done [19:09:50]KKMCreateOFDPacket [19:09:50]OFDProtocolAddRootSTLVToBuf [19:09:50]FM_MakeSignedData [19:09:50]FM_MakeSignedData [19:09:50]SAM_PROTO_SignData [19:09:50]wFMCommunicate request_size=4 [19:09:50]MH_SAM_APDU [19:09:50]CAPDU: 80 0D 01 02 [19:09:50]Write to MH i2c: E2 08 00 37 04 80 0D 01 02 00 00 00 00 B4 [19:09:50]Write i2c OK [19:09:50]MH_I2C_Read... [19:09:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:50]Read from MH i2c: E2 [19:09:50]MH_I2C_Read... [19:09:50]Read from MH i2c: E2 03 00 [19:09:50]MH_I2C_Read... [19:09:50]Read from MH i2c: E2 03 00 37 04 00 90 00 AF [19:09:50]RAPDU: 90 00 [19:09:50]wFMCommunicate OK [19:09:50]wFMCommunicate request_size=255 [19:09:50]MH_SAM_APDU [19:09: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 32 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 9A 01 00 00 F4 03 04 00 7D 3E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B0 13 03 00 35 04 06 00 DB [19:09:50]Write to MH i2c: E2 02 01 38 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 32 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 9A 01 00 00 F4 03 04 00 7D 3E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B0 13 03 00 35 04 06 00 DB 00 00 DE [19:09:50]Write i2c OK [19:09:50]MH_I2C_Read... [19:09:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:50]Read from MH i2c: E2 [19:09:50]MH_I2C_Read... [19:09:50]Read from MH i2c: E2 03 00 [19:09:50]MH_I2C_Read... [19:09:50]Read from MH i2c: E2 03 00 38 04 00 90 00 B0 [19:09:50]RAPDU: 90 00 [19:09:50]wFMCommunicate OK [19:09:50]wFMCommunicate request_size=10 [19:09:50]MH_SAM_APDU [19:09:50]CAPDU: 80 0D 02 02 05 66 51 5B 23 47 [19:09:50]Write to MH i2c: E2 0D 00 39 04 80 0D 02 02 05 00 66 51 5B 23 47 00 00 3D [19:09:50]Write i2c OK [19:09:50]MH_I2C_Read... [19:09:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:50]Read from MH i2c: E2 [19:09:50]MH_I2C_Read... [19:09:50]Read from MH i2c: E2 03 00 [19:09:50]MH_I2C_Read... [19:09:50]Read from MH i2c: E2 03 00 39 04 00 90 00 B1 [19:09:50]RAPDU: 90 00 [19:09:50]wFMCommunicate OK [19:09:50]wFMCommunicate request_size=4 [19:09:50]MH_SAM_APDU [19:09:50]CAPDU: 80 0D 03 02 [19:09:50]Write to MH i2c: E2 08 00 3A 04 80 0D 03 02 00 00 00 00 B9 [19:09:50]Write i2c OK [19:09:50]MH_I2C_Read... [19:09:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:50]Read from MH i2c: E2 [19:09:50]MH_I2C_Read... [19:09:50]Read from MH i2c: E2 0B 00 [19:09:50]MH_I2C_Read... [19:09:50]Read from MH i2c: E2 0B 00 3A 04 00 13 6F 89 87 F3 69 4A 48 90 00 3A [19:09:50]RAPDU: 13 6F 89 87 F3 69 4A 48 90 00 [19:09:50]wFMCommunicate OK [19:09:50]SAM_PROTO_SignData done [19:09:50]FM_MakeSignedData done [19:09:50]CreateOFDProtocolMessage [19:09:50]wFMCommunicate request_size=4 [19:09:50]MH_SAM_APDU [19:09:50]CAPDU: 80 11 00 00 [19:09:50]Write to MH i2c: E2 08 00 3B 04 80 11 00 00 00 00 00 00 B9 [19:09:50]Write i2c OK [19:09:50]MH_I2C_Read... [19:09:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:50]Read from MH i2c: E2 [19:09:50]MH_I2C_Read... [19:09:50]Read from MH i2c: E2 17 00 [19:09:50]MH_I2C_Read... [19:09:50]Read from MH i2c: E2 17 00 3B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0E [19:09:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:09:50]wFMCommunicate OK [19:09:50]CreateOFDProtocolMessage done [19:09:50]OFDSenderStorePacket 201648 [19:09:50]StoreOFDPacket docnum=201648 [19:09:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 22 C9 07 01 85 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 32 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 9A 01 00 00 F4 03 04 00 7D 3E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B0 13 03 00 35 04 06 00 DB 66 51 5B 23 47 13 6F 89 87 F3 69 4A 48 [19:09:50]CheckFolder [19:09:50]dirname=/storage/ofd_packets [19:09:50]CheckFolder done [19:09:50]ProducePacketName [19:09:50]name=ofd_packets/00201648 [19:09:50]NVStorageSaveData ofd_packets/00201648 [19:09:50]File name is /storage/ofd_packets/00201648 [19:09:50]Write 301 bytes [19:09:50]NVStorageSaveData done [19:09:50]OFDSenderStorePacket done [19:09:50]KKMCreateOFDPacket done [19:09:50]NVStorageSaveData kkm_last_timestamp [19:09:50]File name is /storage/kkm_last_timestamp [19:09:50]Write 4 bytes [19:09:50]NVStorageSaveData done [19:09:50]ExternCall_PrintAddStr [19:09:50]wPrintStart [19:09:50]Write to MH i2c: 01 00 00 3C 04 40 [19:09:50]Write i2c OK [19:09:50]MH_I2C_Read... [19:09:50]Read from MH i2c: 01 [19:09:50]MH_I2C_Read... [19:09:50]Read from MH i2c: 01 07 00 [19:09:50]MH_I2C_Read... [19:09:50]Read from MH i2c: 01 07 00 3C 04 00 00 00 00 00 FF 0F 55 [19:09:50]RasterBufferAndPrint [19:09:50]line Счет N : (1)449405 [19:09:50]line ИНН: 02508201610067 [19:09:50]line Контрольно-Кассовый Чек [19:09:50]line ПРОДАЖА [19:09:50]line ТРК (МРК, ГНК) : 62 [19:09:50]line Товар: 2710124130 [19:09:50]line Аи-92-К-2 [19:09:50]line 14.950 * 66.90 [19:09:50]line = 1000.16 [19:09:50]line НДС 12% НСП 1% [19:09:50]line > о реализуемом товаре [19:09:50]line ОКРУГЛЕНИЕ: -0.16 [19:09:50]line ИТОГО: 1000.00 [19:09:50]line Внесено: 1000.00 [19:09:50]line СДАЧА: 0.00 [19:09:50]line НСП 1% : 8.85 [19:09:50]line НДС 12% : 106.21 [19:09:50]line Наличными: 1000.00 [19:09:50]line Безнал.: 0.00 [19:09:50]line Место: АЗС № 171 "Партнер Нефть" [19:09:50]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:09:50]line СНО: Общий режим [19:09:50]line Чек 410 26.10.2024 19:09 [19:09:50]line Смена: 543 ФФД: 1.0 [19:09:50]line ЗНМ: 0300000109 [19:09:50]line РНМ: 0000000000091777 [19:09:50]line Версия ККМ: 001 [19:09:50]line ФМ: 0000000000871756 [19:09:50]line ФД: 201648 [19:09:50]line ФПД: 241232498074439 [19:09:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190949&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201648&fm=241232498074439&tin=02508201610067®Number=0000000000091777&sum=100000 [19:09:50]written 0, free lines is 4095 [19:09:50]OFD Sender: Processing packet 201648 [packets to send 112, broken 111] [19:09:50]ProducePacketName [19:09:50]name=ofd_packets/00201648 [19:09:50]OFD Sender: To server: pG, [19:09:50]CommunicateWithHost lk.salyk.kg:30040 [19:09:50]ConnectInit lk.salyk.kg [19:09:50]Connected sock=10 [19:09:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 22 C9 07 01 85 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 32 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 9A 01 00 00 F4 03 04 00 7D 3E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B0 13 03 00 35 04 06 00 DB 66 51 5B 23 47 13 6F 89 87 F3 69 4A 48 [19:09:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 78 8B 47 00 25 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B0 13 03 00 F4 03 04 00 25 EA 1C 67 B6 04 01 00 00 25 32 73 AA 64 D4 7B D4 [19:09:51]CommunicateWithHost err = 0 [19:09:51]CheckOFDResponse [19:09:51]1017 (14) - 77093643461234 [19:09:51]1041 (16) - 0000000000871756 [19:09:51]1040 (4) - 201648 [19:09:51]1012 (4) - 26.10.2024 13:09 [19:09:51]1206 (1) - 0 [19:09:51]OFD Sender: Remove packet 201648 [19:09:51]ProducePacketName [19:09:51]name=ofd_packets/00201648 [19:09:51]NVStorageDeleteData [19:09:51]Write to MH i2c: 01 00 00 67 04 6B [19:09:51]Write i2c OK [19:09:51]MH_I2C_Read... [19:09:51]Read from MH i2c: 01 [19:09:51]MH_I2C_Read... [19:09:51]Read from MH i2c: 01 07 00 [19:09:51]MH_I2C_Read... [19:09:51]Read from MH i2c: 01 07 00 67 04 00 00 00 00 00 A8 0C 26 [19:09:51]RasterBufferAndPrint [19:09:51]line [19:09:51]line [19:09:51]line [19:09:51]line [19:09:51]line [19:09:51]written 0, free lines is 3247 [19:09:51]MH_Cut [19:09:51]Write to MH i2c: D1 01 00 6E 04 01 44 [19:09:51]Write i2c OK [19:09:51]MH_I2C_Read... [19:09:51]Read from MH i2c: D1 [19:09:51]MH_I2C_Read... [19:09:51]Read from MH i2c: D1 01 00 [19:09:51]MH_I2C_Read... [19:09:51]Read from MH i2c: D1 01 00 6E 04 00 43 [19:09:51]Write to MH i2c: 01 00 00 6F 04 73 [19:09:51]Write i2c OK [19:09:51]MH_I2C_Read... [19:09:51]OFD Sender: No OFD packet to send [19:09:51]*** Cut start [19:09:51]*** Purtial cut [19:09:51]*** CUTSNS_PIN = 0 [19:09:52]*** Stage 1: CUTSNS_PIN = 1 [19:09:53]Read from MH i2c: 01 [19:09:53]MH_I2C_Read... [19:09:53]*** Stop cut motor [19:09:53]*** Cut end [19:09:53]Read from MH i2c: 01 07 00 [19:09:53]MH_I2C_Read... [19:09:53]Read from MH i2c: 01 07 00 6F 04 00 00 00 00 00 FF 0F 88 [19:09:53]process_action close_receipt done [19:09:53]requested_data is exist [19:09:53]produce_requested_data [19:09:53]requested_item fm.sn is exist - process it [19:09:53]wFMCommunicate request_size=4 [19:09:53]MH_SAM_APDU [19:09:53]CAPDU: 80 11 00 00 [19:09:53]Write to MH i2c: E2 08 00 70 04 80 11 00 00 00 00 00 00 EE [19:09:53]Write i2c OK [19:09:53]MH_I2C_Read... [19:09:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:54]Read from MH i2c: E2 [19:09:54]MH_I2C_Read... [19:09:54]Read from MH i2c: E2 17 00 [19:09:54]MH_I2C_Read... [19:09:54]Read from MH i2c: E2 17 00 70 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 43 [19:09:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:09:54]wFMCommunicate OK [19:09:54]requested_item fd.num is exist - process it [19:09:54]SAM_PROTO_GetFieldsCounters [19:09:54]wFMCommunicate request_size=4 [19:09:54]MH_SAM_APDU [19:09:54]CAPDU: 80 13 00 00 [19:09:54]Write to MH i2c: E2 08 00 71 04 80 13 00 00 00 00 00 00 F1 [19:09:54]Write i2c OK [19:09:54]MH_I2C_Read... [19:09:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:54]Read from MH i2c: E2 [19:09:54]MH_I2C_Read... [19:09:54]Read from MH i2c: E2 62 00 [19:09:54]MH_I2C_Read... [19:09:54]Read from MH i2c: E2 62 00 71 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B0 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9A 01 00 00 5E 04 04 00 9A 01 00 00 57 04 04 00 9B 01 00 00 19 04 04 00 00 00 00 00 90 00 D2 [19:09:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B0 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9A 01 00 00 5E 04 04 00 9A 01 00 00 57 04 04 00 9B 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:09:54]wFMCommunicate OK [19:09:54]SAM_PROTO_GetFieldsCounters done [19:09:54]requested_item shift.num is exist - process it [19:09:54]requested_item shift.opened is exist - process it [19:09:54]req_shift_opened [19:09:54]FM_GetShiftState [19:09:54]SAM_PROTO_GetShiftState [19:09:54]wFMCommunicate request_size=4 [19:09:54]MH_SAM_APDU [19:09:54]CAPDU: 80 13 01 00 [19:09:54]Write to MH i2c: E2 08 00 72 04 80 13 01 00 00 00 00 00 F3 [19:09:54]Write i2c OK [19:09:54]MH_I2C_Read... [19:09:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:54]Read from MH i2c: E2 [19:09:54]MH_I2C_Read... [19:09:54]Read from MH i2c: E2 0E 00 [19:09:54]MH_I2C_Read... [19:09:54]Read from MH i2c: E2 0E 00 72 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 02 [19:09:54]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:09:54]wFMCommunicate OK [19:09:54]SAM_PROTO_GetShiftState done [19:09:54]FM_GetShiftState done [19:09:54]req_shift_opened done [19:09:54]requested_item shift.open_date is exist - process it [19:09:54]req_shift_open_date [19:09:54]req_shift_open_date done [19:09:54]produce_requested_data done [19:09:54]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201648,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [19:09:54]process_action_free close_receipt [19:09:54]json_value_free [19:09:54]json_value_free done [19:09:54]process_json_proto returns [19:09:54]Send response to host [19:09:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201648,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [19:09:54]free response buf [19:09:54]execute_script done [19:09:54]execute_script returns [19:09:54]free content buf [19:09:54]Sock 9.Close socket [19:09:54]Sock 9.Thread stoped [19:09:56]OFD Sender: No OFD packet to send [19:10:01]OFD Sender: No OFD packet to send [19:10:06]OFD Sender: No OFD packet to send [19:10:11]OFD Sender: No OFD packet to send [19:10:16]OFD Sender: No OFD packet to send [19:10:21]OFD Sender: No OFD packet to send [19:10:26]OFD Sender: No OFD packet to send [19:10:31]OFD Sender: No OFD packet to send [19:10:36]OFD Sender: No OFD packet to send [19:10:41]OFD Sender: No OFD packet to send [19:10:46]OFD Sender: No OFD packet to send [19:10:51]OFD Sender: No OFD packet to send [19:10:56]OFD Sender: No OFD packet to send [19:11:01]OFD Sender: No OFD packet to send [19:11:06]OFD Sender: No OFD packet to send [19:11:11]OFD Sender: No OFD packet to send [19:11:16]OFD Sender: No OFD packet to send [19:11:21]OFD Sender: No OFD packet to send [19:11:22]accept exits with 7 [19:11:22]New connection [19:11:22]New thread 3066465636 created [19:11:22]Thread 3066608996 joined [19:11:22]Waiting for new connection... [19:11:22] Sock 7.Parse request [19:11:22]Sock 7.Check first char [19:11:22]Sock 7.First char is OK [19:11:22]request: POST /json_proto HTTP/1.0 [19:11:22]Method: POST [19:11:22]URL: /json_proto [19:11:22]Method is POST - this is cgi request [19:11:22]url: /json_proto [19:11:22]query_string will be loaded in cgi processing [19:11:22]execute_cgi json_proto POST (null) [19:11:22]execute_cgi path=json_proto method=POST [19:11:22]POST find Content-Length [19:11:22]Host: 172.17.63.195:8080 [19:11:22]Content-Length: 766 [19:11:22]Content-Type: application/json [19:11:22] [19:11:22]POST finish read [19:11:22]Found Content-Length = 766 [19:11:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:22]execute_script... [19:11:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:22]POST & json_proto [19:11:22]process_json_proto [19:11:22]json parsed OK: [19:11:22]protocol is kg_v1.0 [19:11:22]action value=close_receipt [19:11:22]process_action close_receipt [19:11:22]cmd_close_receipt [19:11:22]MH_GetDate [19:11:22]Write to MH i2c: F0 00 00 73 04 66 [19:11:22]Write i2c OK [19:11:22]MH_I2C_Read... [19:11:22]Read from MH i2c: F0 [19:11:22]MH_I2C_Read... [19:11:22]Read from MH i2c: F0 09 00 [19:11:22]MH_I2C_Read... [19:11:22]Read from MH i2c: F0 09 00 73 04 00 DA 3E 1D 67 68 46 19 67 39 [19:11:22]GetLastDocTimeStamp 1729969789 [19:11:22]current date 1729969882 [19:11:22]FM_GetShiftState [19:11:22]SAM_PROTO_GetShiftState [19:11:22]wFMCommunicate request_size=4 [19:11:22]MH_SAM_APDU [19:11:22]CAPDU: 80 13 01 00 [19:11:22]Write to MH i2c: E2 08 00 74 04 80 13 01 00 00 00 00 00 F5 [19:11:22]Write i2c OK [19:11:22]MH_I2C_Read... [19:11:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:22]Read from MH i2c: E2 [19:11:22]MH_I2C_Read... [19:11:22]Read from MH i2c: E2 0E 00 [19:11:22]MH_I2C_Read... [19:11:22]Read from MH i2c: E2 0E 00 74 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 04 [19:11:22]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:11:22]wFMCommunicate OK [19:11:22]SAM_PROTO_GetShiftState done [19:11:22]FM_GetShiftState done [19:11:22]opened in 1729900879 [19:11:22]opened+sec_in_day 1729987279 [19:11:22]quantity*price = 30038 [19:11:22]sum+1 = 30039 [19:11:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 411 26.10.2024 19:11 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201649 ФПД: 276362501331821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T191122&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201649&fm=276362501331821&tin=02508201610067®Number=0000000000091777&sum=30038 [19:11:23]StoreToDocumentArchive [19:11:23]shift 543 fd 201649 [19:11:23]save to /storage/0543/doc_00201649 [19:11:23]save last doc name /storage/0543/doc_00201649 to /storage/kkm_last_doc_name [19:11:23]save OK [19:11:23]Clear old archive folders... [19:11:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:11:23]tlvbuf is 010244C0 [19:11:23]SAM_PROTO_ClearQueue [19:11:23]wFMCommunicate request_size=4 [19:11:23]MH_SAM_APDU [19:11:23]CAPDU: 80 09 00 00 [19:11:23]Write to MH i2c: E2 08 00 81 04 80 09 00 00 00 00 00 00 F7 [19:11:23]Write i2c OK [19:11:23]MH_I2C_Read... [19:11:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:11:23]Read from MH i2c: E2 [19:11:23]MH_I2C_Read... [19:11:23]Read from MH i2c: E2 03 00 [19:11:23]MH_I2C_Read... [19:11:23]Read from MH i2c: E2 03 00 81 04 00 90 00 F9 [19:11:23]RAPDU: 90 00 [19:11:23]wFMCommunicate OK [19:11:23]SAM_PROTO_ClearQueue done [19:11:23]KKMCreateOFDPacket [19:11:23]OFDProtocolAddRootSTLVToBuf [19:11:23]FM_MakeSignedData [19:11:23]FM_MakeSignedData [19:11:23]SAM_PROTO_SignData [19:11:23]wFMCommunicate request_size=4 [19:11:23]MH_SAM_APDU [19:11:23]CAPDU: 80 0D 01 02 [19:11:23]Write to MH i2c: E2 08 00 82 04 80 0D 01 02 00 00 00 00 FF [19:11:23]Write i2c OK [19:11:23]MH_I2C_Read... [19:11:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:11:23]Read from MH i2c: E2 [19:11:23]MH_I2C_Read... [19:11:23]Read from MH i2c: E2 03 00 [19:11:23]MH_I2C_Read... [19:11:23]Read from MH i2c: E2 03 00 82 04 00 90 00 FA [19:11:23]RAPDU: 90 00 [19:11:23]wFMCommunicate OK [19:11:23]wFMCommunicate request_size=255 [19:11:23]MH_SAM_APDU [19:11:23]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 32 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 9B 01 00 00 F4 03 04 00 DA 3E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B1 13 03 00 35 04 06 00 FB [19:11:23]Write to MH i2c: E2 02 01 83 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 32 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 9B 01 00 00 F4 03 04 00 DA 3E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B1 13 03 00 35 04 06 00 FB 00 00 EE [19:11:23]Write i2c OK [19:11:23]MH_I2C_Read... [19:11:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:23]Read from MH i2c: E2 [19:11:23]MH_I2C_Read... [19:11:23]Read from MH i2c: E2 03 00 [19:11:23]MH_I2C_Read... [19:11:23]Read from MH i2c: E2 03 00 83 04 00 90 00 FB [19:11:23]RAPDU: 90 00 [19:11:23]wFMCommunicate OK [19:11:23]wFMCommunicate request_size=10 [19:11:23]MH_SAM_APDU [19:11:23]CAPDU: 80 0D 02 02 05 59 A8 B8 9B 6D [19:11:23]Write to MH i2c: E2 0D 00 84 04 80 0D 02 02 05 00 59 A8 B8 9B 6D 00 00 CD [19:11:23]Write i2c OK [19:11:23]MH_I2C_Read... [19:11:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:23]Read from MH i2c: E2 [19:11:23]MH_I2C_Read... [19:11:23]Read from MH i2c: E2 03 00 [19:11:23]MH_I2C_Read... [19:11:23]Read from MH i2c: E2 03 00 84 04 00 90 00 FC [19:11:23]RAPDU: 90 00 [19:11:23]wFMCommunicate OK [19:11:23]wFMCommunicate request_size=4 [19:11:23]MH_SAM_APDU [19:11:23]CAPDU: 80 0D 03 02 [19:11:23]Write to MH i2c: E2 08 00 85 04 80 0D 03 02 00 00 00 00 04 [19:11:23]Write i2c OK [19:11:23]MH_I2C_Read... [19:11:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:11:23]Read from MH i2c: E2 [19:11:23]MH_I2C_Read... [19:11:23]Read from MH i2c: E2 0B 00 [19:11:23]MH_I2C_Read... [19:11:23]Read from MH i2c: E2 0B 00 85 04 00 D3 A7 CF 17 97 B8 99 8A 90 00 D7 [19:11:23]RAPDU: D3 A7 CF 17 97 B8 99 8A 90 00 [19:11:23]wFMCommunicate OK [19:11:23]SAM_PROTO_SignData done [19:11:23]FM_MakeSignedData done [19:11:23]CreateOFDProtocolMessage [19:11:23]wFMCommunicate request_size=4 [19:11:23]MH_SAM_APDU [19:11:23]CAPDU: 80 11 00 00 [19:11:23]Write to MH i2c: E2 08 00 86 04 80 11 00 00 00 00 00 00 04 [19:11:23]Write i2c OK [19:11:23]MH_I2C_Read... [19:11:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:23]Read from MH i2c: E2 [19:11:23]MH_I2C_Read... [19:11:23]Read from MH i2c: E2 17 00 [19:11:23]MH_I2C_Read... [19:11:23]Read from MH i2c: E2 17 00 86 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 59 [19:11:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:11:23]wFMCommunicate OK [19:11:23]CreateOFDProtocolMessage done [19:11:23]OFDSenderStorePacket 201649 [19:11:23]StoreOFDPacket docnum=201649 [19:11:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D1 05 07 01 0C 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 9B 01 00 00 F4 03 04 00 DA 3E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B1 13 03 00 35 04 06 00 FB 59 A8 B8 9B 6D D3 A7 CF 17 97 B8 99 8A [19:11:23]CheckFolder [19:11:23]dirname=/storage/ofd_packets [19:11:23]CheckFolder done [19:11:23]ProducePacketName [19:11:23]name=ofd_packets/00201649 [19:11:23]NVStorageSaveData ofd_packets/00201649 [19:11:23]File name is /storage/ofd_packets/00201649 [19:11:23]Write 301 bytes [19:11:23]NVStorageSaveData done [19:11:23]OFDSenderStorePacket done [19:11:23]KKMCreateOFDPacket done [19:11:23]NVStorageSaveData kkm_last_timestamp [19:11:23]File name is /storage/kkm_last_timestamp [19:11:23]Write 4 bytes [19:11:23]NVStorageSaveData done [19:11:23]ExternCall_PrintAddStr [19:11:23]wPrintStart [19:11:23]Write to MH i2c: 01 00 00 87 04 8B [19:11:23]Write i2c OK [19:11:23]MH_I2C_Read... [19:11:23]Read from MH i2c: 01 [19:11:23]MH_I2C_Read... [19:11:23]Read from MH i2c: 01 07 00 [19:11:23]MH_I2C_Read... [19:11:23]Read from MH i2c: 01 07 00 87 04 00 00 00 00 00 FF 0F A0 [19:11:23]RasterBufferAndPrint [19:11:23]line Счет N : (1)449406 [19:11:23]line ИНН: 02508201610067 [19:11:23]line Контрольно-Кассовый Чек [19:11:23]line ПРОДАЖА [19:11:23]line ТРК (МРК, ГНК) : 31 [19:11:23]line Товар: 2710124130 [19:11:23]line Аи-92-К-2 [19:11:23]line 4.490 * 66.90 [19:11:23]line = 300.38 [19:11:23]line НДС 12% НСП 1% [19:11:23]line > о реализуемом товаре [19:11:23]line ИТОГО: 300.38 [19:11:23]line НСП 1% : 2.66 [19:11:23]line НДС 12% : 31.90 [19:11:23]line Наличными: 0.00 [19:11:23]line Безнал.: 300.38 [19:11:23]line Место: АЗС № 171 "Партнер Нефть" [19:11:23]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:11:23]line СНО: Общий режим [19:11:23]line Чек 411 26.10.2024 19:11 [19:11:23]line Смена: 543 ФФД: 1.0 [19:11:23]line ЗНМ: 0300000109 [19:11:23]line РНМ: 0000000000091777 [19:11:23]line Версия ККМ: 001 [19:11:23]line Платежная система: Mbank [19:11:23]line ФМ: 0000000000871756 [19:11:23]line ФД: 201649 [19:11:23]line ФПД: 276362501331821 [19:11:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T191122&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201649&fm=276362501331821&tin=02508201610067®Number=0000000000091777&sum=30038 [19:11:24]OFD Sender: Processing packet 201649 [packets to send 112, broken 111] [19:11:24]ProducePacketName [19:11:24]name=ofd_packets/00201649 [19:11:24]OFD Sender: To server: pG, [19:11:24]CommunicateWithHost lk.salyk.kg:30040 [19:11:24]ConnectInit lk.salyk.kg [19:11:24]written 0, free lines is 4095 [19:11:24]Connected sock=10 [19:11:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D1 05 07 01 0C 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 9B 01 00 00 F4 03 04 00 DA 3E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B1 13 03 00 35 04 06 00 FB 59 A8 B8 9B 6D D3 A7 CF 17 97 B8 99 8A [19:11:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E0 B9 47 00 4B 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B1 13 03 00 F4 03 04 00 82 EA 1C 67 B6 04 01 00 00 E7 6C ED F6 45 E1 2D 25 [19:11:24]CommunicateWithHost err = 0 [19:11:24]CheckOFDResponse [19:11:24]1017 (14) - 77093643461234 [19:11:24]1041 (16) - 0000000000871756 [19:11:24]1040 (4) - 201649 [19:11:24]1012 (4) - 26.10.2024 13:11 [19:11:24]1206 (1) - 0 [19:11:24]OFD Sender: Remove packet 201649 [19:11:24]ProducePacketName [19:11:24]name=ofd_packets/00201649 [19:11:24]NVStorageDeleteData [19:11:24]Write to MH i2c: 01 00 00 B0 04 B4 [19:11:24]Write i2c OK [19:11:24]MH_I2C_Read... [19:11:24]Read from MH i2c: 01 [19:11:24]MH_I2C_Read... [19:11:24]Read from MH i2c: 01 07 00 [19:11:24]MH_I2C_Read... [19:11:24]Read from MH i2c: 01 07 00 B0 04 00 00 00 00 00 C7 0C 8E [19:11:24]RasterBufferAndPrint [19:11:24]line [19:11:24]line [19:11:24]line [19:11:24]line [19:11:24]line [19:11:24]written 0, free lines is 3274 [19:11:24]MH_Cut [19:11:24]Write to MH i2c: D1 01 00 B7 04 01 8D [19:11:24]Write i2c OK [19:11:24]MH_I2C_Read... [19:11:24]Read from MH i2c: D1 [19:11:24]MH_I2C_Read... [19:11:24]Read from MH i2c: D1 01 00 [19:11:24]MH_I2C_Read... [19:11:24]Read from MH i2c: D1 01 00 B7 04 00 8C [19:11:24]Write to MH i2c: 01 00 00 B8 04 BC [19:11:24]Write i2c OK [19:11:24]MH_I2C_Read... [19:11:24]OFD Sender: No OFD packet to send [19:11:25]*** Cut start [19:11:25]*** Purtial cut [19:11:25]*** Stage 1: CUTSNS_PIN = 1 [19:11:25]Read from MH i2c: 01 [19:11:25]MH_I2C_Read... [19:11:25]*** Stop cut motor [19:11:25]*** Cut end [19:11:25]Read from MH i2c: 01 07 00 [19:11:25]MH_I2C_Read... [19:11:25]Read from MH i2c: 01 07 00 B8 04 00 00 00 00 00 FF 0F D1 [19:11:25]process_action close_receipt done [19:11:25]requested_data is exist [19:11:25]produce_requested_data [19:11:25]requested_item fm.sn is exist - process it [19:11:25]wFMCommunicate request_size=4 [19:11:25]MH_SAM_APDU [19:11:25]CAPDU: 80 11 00 00 [19:11:25]Write to MH i2c: E2 08 00 B9 04 80 11 00 00 00 00 00 00 37 [19:11:25]Write i2c OK [19:11:25]MH_I2C_Read... [19:11:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:25]Read from MH i2c: E2 [19:11:25]MH_I2C_Read... [19:11:25]Read from MH i2c: E2 17 00 [19:11:25]MH_I2C_Read... [19:11:25]Read from MH i2c: E2 17 00 B9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8C [19:11:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:11:25]wFMCommunicate OK [19:11:25]requested_item fd.num is exist - process it [19:11:25]SAM_PROTO_GetFieldsCounters [19:11:25]wFMCommunicate request_size=4 [19:11:25]MH_SAM_APDU [19:11:25]CAPDU: 80 13 00 00 [19:11:25]Write to MH i2c: E2 08 00 BA 04 80 13 00 00 00 00 00 00 3A [19:11:25]Write i2c OK [19:11:25]MH_I2C_Read... [19:11:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:11:25]Read from MH i2c: E2 [19:11:25]MH_I2C_Read... [19:11:25]Read from MH i2c: E2 62 00 [19:11:25]MH_I2C_Read... [19:11:25]Read from MH i2c: E2 62 00 BA 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B1 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9B 01 00 00 5E 04 04 00 9B 01 00 00 57 04 04 00 9C 01 00 00 19 04 04 00 00 00 00 00 90 00 1F [19:11:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B1 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9B 01 00 00 5E 04 04 00 9B 01 00 00 57 04 04 00 9C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:11:25]wFMCommunicate OK [19:11:25]SAM_PROTO_GetFieldsCounters done [19:11:25]requested_item shift.num is exist - process it [19:11:25]requested_item shift.opened is exist - process it [19:11:25]req_shift_opened [19:11:25]FM_GetShiftState [19:11:25]SAM_PROTO_GetShiftState [19:11:25]wFMCommunicate request_size=4 [19:11:25]MH_SAM_APDU [19:11:25]CAPDU: 80 13 01 00 [19:11:25]Write to MH i2c: E2 08 00 BB 04 80 13 01 00 00 00 00 00 3C [19:11:25]Write i2c OK [19:11:25]MH_I2C_Read... [19:11:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:26]Read from MH i2c: E2 [19:11:26]MH_I2C_Read... [19:11:26]Read from MH i2c: E2 0E 00 [19:11:26]MH_I2C_Read... [19:11:26]Read from MH i2c: E2 0E 00 BB 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 4B [19:11:26]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:11:26]wFMCommunicate OK [19:11:26]SAM_PROTO_GetShiftState done [19:11:26]FM_GetShiftState done [19:11:26]req_shift_opened done [19:11:26]requested_item shift.open_date is exist - process it [19:11:26]req_shift_open_date [19:11:26]req_shift_open_date done [19:11:26]produce_requested_data done [19:11:26]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201649,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [19:11:26]process_action_free close_receipt [19:11:26]json_value_free [19:11:26]json_value_free done [19:11:26]process_json_proto returns [19:11:26]Send response to host [19:11:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201649,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [19:11:26]free response buf [19:11:26]execute_script done [19:11:26]execute_script returns [19:11:26]free content buf [19:11:26]Sock 7.Close socket [19:11:26]Sock 7.Thread stoped [19:11:30]OFD Sender: No OFD packet to send [19:11:30]accept exits with 9 [19:11:30]New connection [19:11:30]New thread 3066608996 created [19:11:30]Thread 3066465636 joined [19:11:30]Waiting for new connection... [19:11:30] Sock 9.Parse request [19:11:30]Sock 9.Check first char [19:11:30]Sock 9.First char is OK [19:11:30]request: POST /json_proto HTTP/1.0 [19:11:30]Method: POST [19:11:30]URL: /json_proto [19:11:30]Method is POST - this is cgi request [19:11:30]url: /json_proto [19:11:30]query_string will be loaded in cgi processing [19:11:30]execute_cgi json_proto POST (null) [19:11:30]execute_cgi path=json_proto method=POST [19:11:30]POST find Content-Length [19:11:30]Host: 172.17.63.195:8080 [19:11:30]Content-Length: 670 [19:11:30]Content-Type: application/json [19:11:30] [19:11:30]POST finish read [19:11:30]Found Content-Length = 670 [19:11:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "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" ] } } [19:11:30]execute_script... [19:11: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)449407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "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" ] } } [19:11:30]POST & json_proto [19:11:30]process_json_proto [19:11:30]json parsed OK: [19:11:30]protocol is kg_v1.0 [19:11:30]action value=close_receipt [19:11:30]process_action close_receipt [19:11:30]cmd_close_receipt [19:11:30]MH_GetDate [19:11:30]Write to MH i2c: F0 00 00 BC 04 AF [19:11:30]Write i2c OK [19:11:30]MH_I2C_Read... [19:11:30]Read from MH i2c: F0 [19:11:30]MH_I2C_Read... [19:11:30]Read from MH i2c: F0 09 00 [19:11:30]MH_I2C_Read... [19:11:30]Read from MH i2c: F0 09 00 BC 04 00 E2 3E 1D 67 68 46 19 67 8A [19:11:30]GetLastDocTimeStamp 1729969882 [19:11:30]current date 1729969890 [19:11:30]FM_GetShiftState [19:11:30]SAM_PROTO_GetShiftState [19:11:30]wFMCommunicate request_size=4 [19:11:30]MH_SAM_APDU [19:11:30]CAPDU: 80 13 01 00 [19:11:30]Write to MH i2c: E2 08 00 BD 04 80 13 01 00 00 00 00 00 3E [19:11:30]Write i2c OK [19:11:30]MH_I2C_Read... [19:11:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:30]Read from MH i2c: E2 [19:11:30]MH_I2C_Read... [19:11:30]Read from MH i2c: E2 0E 00 [19:11:30]MH_I2C_Read... [19:11:30]Read from MH i2c: E2 0E 00 BD 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 4D [19:11:30]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:11:30]wFMCommunicate OK [19:11:30]SAM_PROTO_GetShiftState done [19:11:30]FM_GetShiftState done [19:11:30]opened in 1729900879 [19:11:30]opened+sec_in_day 1729987279 [19:11:30]quantity*price = 60055 [19:11:30]sum+1 = 60056 [19:11:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 412 26.10.2024 19:11 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201650 ФПД: 52188611295392 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T191131&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201650&fm=52188611295392&tin=02508201610067®Number=0000000000091777&sum=60000 [19:11:31]StoreToDocumentArchive [19:11:31]shift 543 fd 201650 [19:11:31]save to /storage/0543/doc_00201650 [19:11:31]save last doc name /storage/0543/doc_00201650 to /storage/kkm_last_doc_name [19:11:31]save OK [19:11:31]Clear old archive folders... [19:11:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:11:31]tlvbuf is 010A0E70 [19:11:31]SAM_PROTO_ClearQueue [19:11:31]wFMCommunicate request_size=4 [19:11:31]MH_SAM_APDU [19:11:31]CAPDU: 80 09 00 00 [19:11:31]Write to MH i2c: E2 08 00 CA 04 80 09 00 00 00 00 00 00 40 [19:11:31]Write i2c OK [19:11:31]MH_I2C_Read... [19:11:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:11:31]Read from MH i2c: E2 [19:11:31]MH_I2C_Read... [19:11:31]Read from MH i2c: E2 03 00 [19:11:31]MH_I2C_Read... [19:11:31]Read from MH i2c: E2 03 00 CA 04 00 90 00 42 [19:11:31]RAPDU: 90 00 [19:11:31]wFMCommunicate OK [19:11:31]SAM_PROTO_ClearQueue done [19:11:31]KKMCreateOFDPacket [19:11:31]OFDProtocolAddRootSTLVToBuf [19:11:31]FM_MakeSignedData [19:11:31]FM_MakeSignedData [19:11:31]SAM_PROTO_SignData [19:11:31]wFMCommunicate request_size=4 [19:11:31]MH_SAM_APDU [19:11:31]CAPDU: 80 0D 01 02 [19:11:31]Write to MH i2c: E2 08 00 CB 04 80 0D 01 02 00 00 00 00 48 [19:11:31]Write i2c OK [19:11:31]MH_I2C_Read... [19:11:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:11:31]Read from MH i2c: E2 [19:11:31]MH_I2C_Read... [19:11:31]Read from MH i2c: E2 03 00 [19:11:31]MH_I2C_Read... [19:11:31]Read from MH i2c: E2 03 00 CB 04 00 90 00 43 [19:11:31]RAPDU: 90 00 [19:11:31]wFMCommunicate OK [19:11:31]wFMCommunicate request_size=255 [19:11:31]MH_SAM_APDU [19:11:31]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 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 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 E9 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 9C 01 00 00 F4 03 04 00 E3 3E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B2 13 03 00 35 04 06 00 [19:11:31]Write to MH i2c: E2 02 01 CC 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 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 E9 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 9C 01 00 00 F4 03 04 00 E3 3E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B2 13 03 00 35 04 06 00 00 00 8D [19:11:31]Write i2c OK [19:11:31]MH_I2C_Read... [19:11:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:32]Read from MH i2c: E2 [19:11:32]MH_I2C_Read... [19:11:32]Read from MH i2c: E2 03 00 [19:11:32]MH_I2C_Read... [19:11:32]Read from MH i2c: E2 03 00 CC 04 00 90 00 44 [19:11:32]RAPDU: 90 00 [19:11:32]wFMCommunicate OK [19:11:32]wFMCommunicate request_size=11 [19:11:32]MH_SAM_APDU [19:11:32]CAPDU: 80 0D 02 02 06 2F 77 1B A3 38 A0 [19:11:32]Write to MH i2c: E2 0E 00 CD 04 80 0D 02 02 06 00 2F 77 1B A3 38 A0 00 00 93 [19:11:32]Write i2c OK [19:11:32]MH_I2C_Read... [19:11:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:32]Read from MH i2c: E2 [19:11:32]MH_I2C_Read... [19:11:32]Read from MH i2c: E2 03 00 [19:11:32]MH_I2C_Read... [19:11:32]Read from MH i2c: E2 03 00 CD 04 00 90 00 45 [19:11:32]RAPDU: 90 00 [19:11:32]wFMCommunicate OK [19:11:32]wFMCommunicate request_size=4 [19:11:32]MH_SAM_APDU [19:11:32]CAPDU: 80 0D 03 02 [19:11:32]Write to MH i2c: E2 08 00 CE 04 80 0D 03 02 00 00 00 00 4D [19:11:32]Write i2c OK [19:11:32]MH_I2C_Read... [19:11:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:11:32]Read from MH i2c: E2 [19:11:32]MH_I2C_Read... [19:11:32]Read from MH i2c: E2 0B 00 [19:11:32]MH_I2C_Read... [19:11:32]Read from MH i2c: E2 0B 00 CE 04 00 AF A4 CD 13 3A 6E 2D 15 90 00 6B [19:11:32]RAPDU: AF A4 CD 13 3A 6E 2D 15 90 00 [19:11:32]wFMCommunicate OK [19:11:32]SAM_PROTO_SignData done [19:11:32]FM_MakeSignedData done [19:11:32]CreateOFDProtocolMessage [19:11:32]wFMCommunicate request_size=4 [19:11:32]MH_SAM_APDU [19:11:32]CAPDU: 80 11 00 00 [19:11:32]Write to MH i2c: E2 08 00 CF 04 80 11 00 00 00 00 00 00 4D [19:11:32]Write i2c OK [19:11:32]MH_I2C_Read... [19:11:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:32]Read from MH i2c: E2 [19:11:32]MH_I2C_Read... [19:11:32]Read from MH i2c: E2 17 00 [19:11:32]MH_I2C_Read... [19:11:32]Read from MH i2c: E2 17 00 CF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A2 [19:11:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:11:32]wFMCommunicate OK [19:11:32]CreateOFDProtocolMessage done [19:11:32]OFDSenderStorePacket 201650 [19:11:32]StoreOFDPacket docnum=201650 [19:11:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 28 1F 08 01 C6 B2 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 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 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 E9 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 9C 01 00 00 F4 03 04 00 E3 3E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B2 13 03 00 35 04 06 00 2F 77 1B A3 38 A0 AF A4 CD 13 3A 6E 2D 15 [19:11:32]CheckFolder [19:11:32]dirname=/storage/ofd_packets [19:11:32]CheckFolder done [19:11:32]ProducePacketName [19:11:32]name=ofd_packets/00201650 [19:11:32]NVStorageSaveData ofd_packets/00201650 [19:11:32]File name is /storage/ofd_packets/00201650 [19:11:32]Write 302 bytes [19:11:32]NVStorageSaveData done [19:11:32]OFDSenderStorePacket done [19:11:32]KKMCreateOFDPacket done [19:11:32]NVStorageSaveData kkm_last_timestamp [19:11:32]File name is /storage/kkm_last_timestamp [19:11:32]Write 4 bytes [19:11:32]NVStorageSaveData done [19:11:32]ExternCall_PrintAddStr [19:11:32]wPrintStart [19:11:32]Write to MH i2c: 01 00 00 D0 04 D4 [19:11:32]Write i2c OK [19:11:32]MH_I2C_Read... [19:11:32]Read from MH i2c: 01 [19:11:32]MH_I2C_Read... [19:11:32]Read from MH i2c: 01 07 00 [19:11:32]MH_I2C_Read... [19:11:32]Read from MH i2c: 01 07 00 D0 04 00 00 00 00 00 FF 0F E9 [19:11:32]RasterBufferAndPrint [19:11:32]line Счет N : (1)449407 [19:11:32]line ИНН: 02508201610067 [19:11:32]line Контрольно-Кассовый Чек [19:11:32]line ПРОДАЖА [19:11:32]line ТРК (МРК, ГНК) : 42 [19:11:32]line Товар: 2710124130 [19:11:32]line SUPER 92-К-5 [19:11:32]line 8.780 * 68.40 [19:11:32]line = 600.55 [19:11:32]line НДС 12% НСП 1% [19:11:32]line > о реализуемом товаре [19:11:32]line ОКРУГЛЕНИЕ: -0.55 [19:11:32]line ИТОГО: 600.00 [19:11:32]line Внесено: 600.00 [19:11:32]line СДАЧА: 0.00 [19:11:32]line НСП 1% : 5.31 [19:11:32]line НДС 12% : 63.77 [19:11:32]line Наличными: 600.00 [19:11:32]line Безнал.: 0.00 [19:11:32]line Место: АЗС № 171 "Партнер Нефть" [19:11:32]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:11:32]line СНО: Общий режим [19:11:32]line Чек 412 26.10.2024 19:11 [19:11:32]line Смена: 543 ФФД: 1.0 [19:11:32]line ЗНМ: 0300000109 [19:11:32]line РНМ: 0000000000091777 [19:11:32]line Версия ККМ: 001 [19:11:32]line ФМ: 0000000000871756 [19:11:32]line ФД: 201650 [19:11:32]line ФПД: 52188611295392 [19:11:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T191131&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201650&fm=52188611295392&tin=02508201610067®Number=0000000000091777&sum=60000 [19:11:32]OFD Sender: Processing packet 201650 [packets to send 112, broken 111] [19:11:32]ProducePacketName [19:11:32]name=ofd_packets/00201650 [19:11:32]OFD Sender: To server: pG, [19:11:32]CommunicateWithHost lk.salyk.kg:30040 [19:11:32]ConnectInit lk.salyk.kg [19:11:32]written 0, free lines is 4095 [19:11:32]Connected sock=10 [19:11:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 28 1F 08 01 C6 B2 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 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 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 E9 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 9C 01 00 00 F4 03 04 00 E3 3E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B2 13 03 00 35 04 06 00 2F 77 1B A3 38 A0 AF A4 CD 13 3A 6E 2D 15 [19:11:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 04 4C 47 00 90 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B2 13 03 00 F4 03 04 00 8B EA 1C 67 B6 04 01 00 00 92 00 53 1C AB C7 40 7B [19:11:32]CommunicateWithHost err = 0 [19:11:32]CheckOFDResponse [19:11:32]1017 (14) - 77093643461234 [19:11:32]1041 (16) - 0000000000871756 [19:11:32]1040 (4) - 201650 [19:11:32]1012 (4) - 26.10.2024 13:11 [19:11:32]1206 (1) - 0 [19:11:32]OFD Sender: Remove packet 201650 [19:11:32]ProducePacketName [19:11:32]name=ofd_packets/00201650 [19:11:32]NVStorageDeleteData [19:11:33]Write to MH i2c: 01 00 00 FB 04 FF [19:11:33]Write i2c OK [19:11:33]MH_I2C_Read... [19:11:33]Read from MH i2c: 01 [19:11:33]MH_I2C_Read... [19:11:33]Read from MH i2c: 01 07 00 [19:11:33]MH_I2C_Read... [19:11:33]Read from MH i2c: 01 07 00 FB 04 00 00 00 00 00 A3 0C B5 [19:11:33]RasterBufferAndPrint [19:11:33]line [19:11:33]line [19:11:33]line [19:11:33]line [19:11:33]line [19:11:33]written 0, free lines is 3243 [19:11:33]MH_Cut [19:11:33]Write to MH i2c: D1 01 00 02 05 01 D9 [19:11:33]Write i2c OK [19:11:33]MH_I2C_Read... [19:11:33]Read from MH i2c: D1 [19:11:33]MH_I2C_Read... [19:11:33]Read from MH i2c: D1 01 00 [19:11:33]MH_I2C_Read... [19:11:33]Read from MH i2c: D1 01 00 02 05 00 D8 [19:11:33]Write to MH i2c: 01 00 00 03 05 08 [19:11:33]Write i2c OK [19:11:33]MH_I2C_Read... [19:11:33]OFD Sender: No OFD packet to send [19:11:33]*** Cut start [19:11:33]*** Purtial cut [19:11:33]*** Stage 1: CUTSNS_PIN = 1 [19:11:34]Read from MH i2c: 01 [19:11:34]MH_I2C_Read... [19:11:34]*** Stop cut motor [19:11:34]*** Cut end [19:11:34]Read from MH i2c: 01 07 00 [19:11:34]MH_I2C_Read... [19:11:34]Read from MH i2c: 01 07 00 03 05 00 00 00 00 00 FF 0F 1D [19:11:34]process_action close_receipt done [19:11:34]requested_data is exist [19:11:34]produce_requested_data [19:11:34]requested_item fm.sn is exist - process it [19:11:34]wFMCommunicate request_size=4 [19:11:34]MH_SAM_APDU [19:11:34]CAPDU: 80 11 00 00 [19:11:34]Write to MH i2c: E2 08 00 04 05 80 11 00 00 00 00 00 00 83 [19:11:34]Write i2c OK [19:11:34]MH_I2C_Read... [19:11:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:34]Read from MH i2c: E2 [19:11:34]MH_I2C_Read... [19:11:34]Read from MH i2c: E2 17 00 [19:11:34]MH_I2C_Read... [19:11:34]Read from MH i2c: E2 17 00 04 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D8 [19:11:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:11:34]wFMCommunicate OK [19:11:34]requested_item fd.num is exist - process it [19:11:34]SAM_PROTO_GetFieldsCounters [19:11:34]wFMCommunicate request_size=4 [19:11:34]MH_SAM_APDU [19:11:34]CAPDU: 80 13 00 00 [19:11:34]Write to MH i2c: E2 08 00 05 05 80 13 00 00 00 00 00 00 86 [19:11:34]Write i2c OK [19:11:34]MH_I2C_Read... [19:11:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:11:34]Read from MH i2c: E2 [19:11:34]MH_I2C_Read... [19:11:34]Read from MH i2c: E2 62 00 [19:11:34]MH_I2C_Read... [19:11:34]Read from MH i2c: E2 62 00 05 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B2 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9C 01 00 00 5E 04 04 00 9C 01 00 00 57 04 04 00 9D 01 00 00 19 04 04 00 00 00 00 00 90 00 6F [19:11:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B2 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9C 01 00 00 5E 04 04 00 9C 01 00 00 57 04 04 00 9D 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:11:34]wFMCommunicate OK [19:11:34]SAM_PROTO_GetFieldsCounters done [19:11:34]requested_item shift.num is exist - process it [19:11:34]requested_item shift.opened is exist - process it [19:11:34]req_shift_opened [19:11:34]FM_GetShiftState [19:11:34]SAM_PROTO_GetShiftState [19:11:34]wFMCommunicate request_size=4 [19:11:34]MH_SAM_APDU [19:11:34]CAPDU: 80 13 01 00 [19:11:34]Write to MH i2c: E2 08 00 06 05 80 13 01 00 00 00 00 00 88 [19:11:34]Write i2c OK [19:11:34]MH_I2C_Read... [19:11:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:34]Read from MH i2c: E2 [19:11:34]MH_I2C_Read... [19:11:34]Read from MH i2c: E2 0E 00 [19:11:34]MH_I2C_Read... [19:11:34]Read from MH i2c: E2 0E 00 06 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 97 [19:11:34]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:11:34]wFMCommunicate OK [19:11:34]SAM_PROTO_GetShiftState done [19:11:34]FM_GetShiftState done [19:11:34]req_shift_opened done [19:11:34]requested_item shift.open_date is exist - process it [19:11:34]req_shift_open_date [19:11:34]req_shift_open_date done [19:11:34]produce_requested_data done [19:11:34]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201650,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [19:11:34]process_action_free close_receipt [19:11:34]json_value_free [19:11:34]json_value_free done [19:11:34]process_json_proto returns [19:11:34]Send response to host [19:11:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201650,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [19:11:34]free response buf [19:11:34]execute_script done [19:11:34]execute_script returns [19:11:34]free content buf [19:11:34]Sock 9.Close socket [19:11:34]Sock 9.Thread stoped [19:11:38]OFD Sender: No OFD packet to send [19:11:43]OFD Sender: No OFD packet to send [19:11:48]OFD Sender: No OFD packet to send [19:11:53]OFD Sender: No OFD packet to send [19:11:58]OFD Sender: No OFD packet to send [19:12:03]OFD Sender: No OFD packet to send [19:12:08]OFD Sender: No OFD packet to send [19:12:13]OFD Sender: No OFD packet to send [19:12:18]OFD Sender: No OFD packet to send [19:12:23]OFD Sender: No OFD packet to send [19:12:28]OFD Sender: No OFD packet to send [19:12:33]OFD Sender: No OFD packet to send [19:12:36]accept exits with 7 [19:12:36]New connection [19:12:36]New thread 3066465636 created [19:12:36]Thread 3066608996 joined [19:12:36]Waiting for new connection... [19:12:36] Sock 7.Parse request [19:12:36]Sock 7.Check first char [19:12:36]Sock 7.First char is OK [19:12:36]request: POST /json_proto HTTP/1.0 [19:12:36]Method: POST [19:12:36]URL: /json_proto [19:12:36]Method is POST - this is cgi request [19:12:36]url: /json_proto [19:12:36]query_string will be loaded in cgi processing [19:12:36]execute_cgi json_proto POST (null) [19:12:36]execute_cgi path=json_proto method=POST [19:12:36]POST find Content-Length [19:12:36]Host: 172.17.63.195:8080 [19:12:36]Content-Length: 679 [19:12:36]Content-Type: application/json [19:12:36] [19:12:36]POST finish read [19:12:36]Found Content-Length = 679 [19:12:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [19:12:36]execute_script... [19:12: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)449409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [19:12:36]POST & json_proto [19:12:36]process_json_proto [19:12:36]json parsed OK: [19:12:36]protocol is kg_v1.0 [19:12:36]action value=close_receipt [19:12:36]process_action close_receipt [19:12:36]cmd_close_receipt [19:12:36]MH_GetDate [19:12:36]Write to MH i2c: F0 00 00 07 05 FB [19:12:36]Write i2c OK [19:12:36]MH_I2C_Read... [19:12:36]Read from MH i2c: F0 [19:12:36]MH_I2C_Read... [19:12:36]Read from MH i2c: F0 09 00 [19:12:36]MH_I2C_Read... [19:12:36]Read from MH i2c: F0 09 00 07 05 00 24 3F 1D 67 68 46 19 67 19 [19:12:36]GetLastDocTimeStamp 1729969891 [19:12:36]current date 1729969956 [19:12:36]FM_GetShiftState [19:12:36]SAM_PROTO_GetShiftState [19:12:36]wFMCommunicate request_size=4 [19:12:36]MH_SAM_APDU [19:12:36]CAPDU: 80 13 01 00 [19:12:36]Write to MH i2c: E2 08 00 08 05 80 13 01 00 00 00 00 00 8A [19:12:36]Write i2c OK [19:12:36]MH_I2C_Read... [19:12:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:36]Read from MH i2c: E2 [19:12:36]MH_I2C_Read... [19:12:36]Read from MH i2c: E2 0E 00 [19:12:36]MH_I2C_Read... [19:12:36]Read from MH i2c: E2 0E 00 08 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 99 [19:12:36]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:12:36]wFMCommunicate OK [19:12:36]SAM_PROTO_GetShiftState done [19:12:36]FM_GetShiftState done [19:12:36]opened in 1729900879 [19:12:36]opened+sec_in_day 1729987279 [19:12:36]quantity*price = 150037 [19:12:36]sum+1 = 150039 [19:12:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 413 26.10.2024 19:12 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201651 ФПД: 133302107143329 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T191236&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201651&fm=133302107143329&tin=02508201610067®Number=0000000000091777&sum=150000 [19:12:37]StoreToDocumentArchive [19:12:37]shift 543 fd 201651 [19:12:37]save to /storage/0543/doc_00201651 [19:12:37]save last doc name /storage/0543/doc_00201651 to /storage/kkm_last_doc_name [19:12:37]save OK [19:12:37]Clear old archive folders... [19:12:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:12:37]tlvbuf is 0109BED0 [19:12:37]SAM_PROTO_ClearQueue [19:12:37]wFMCommunicate request_size=4 [19:12:37]MH_SAM_APDU [19:12:37]CAPDU: 80 09 00 00 [19:12:37]Write to MH i2c: E2 08 00 15 05 80 09 00 00 00 00 00 00 8C [19:12:37]Write i2c OK [19:12:37]MH_I2C_Read... [19:12:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:12:37]Read from MH i2c: E2 [19:12:37]MH_I2C_Read... [19:12:37]Read from MH i2c: E2 03 00 [19:12:37]MH_I2C_Read... [19:12:37]Read from MH i2c: E2 03 00 15 05 00 90 00 8E [19:12:37]RAPDU: 90 00 [19:12:37]wFMCommunicate OK [19:12:37]SAM_PROTO_ClearQueue done [19:12:37]KKMCreateOFDPacket [19:12:37]OFDProtocolAddRootSTLVToBuf [19:12:37]FM_MakeSignedData [19:12:37]FM_MakeSignedData [19:12:37]SAM_PROTO_SignData [19:12:37]wFMCommunicate request_size=4 [19:12:37]MH_SAM_APDU [19:12:37]CAPDU: 80 0D 01 02 [19:12:37]Write to MH i2c: E2 08 00 16 05 80 0D 01 02 00 00 00 00 94 [19:12:37]Write i2c OK [19:12:37]MH_I2C_Read... [19:12:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:12:37]Read from MH i2c: E2 [19:12:37]MH_I2C_Read... [19:12:37]Read from MH i2c: E2 03 00 [19:12:37]MH_I2C_Read... [19:12:37]Read from MH i2c: E2 03 00 16 05 00 90 00 8F [19:12:37]RAPDU: 90 00 [19:12:37]wFMCommunicate OK [19:12:37]wFMCommunicate request_size=255 [19:12:37]MH_SAM_APDU [19:12:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 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 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 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 9D 01 00 00 F4 03 04 00 24 3F 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B3 13 03 00 35 04 06 00 79 3C D0 BE [19:12:37]Write to MH i2c: E2 02 01 17 05 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 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 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 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 9D 01 00 00 F4 03 04 00 24 3F 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B3 13 03 00 35 04 06 00 79 3C D0 BE 00 00 47 [19:12:37]Write i2c OK [19:12:37]MH_I2C_Read... [19:12:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:37]Read from MH i2c: E2 [19:12:37]MH_I2C_Read... [19:12:37]Read from MH i2c: E2 03 00 [19:12:37]MH_I2C_Read... [19:12:37]Read from MH i2c: E2 03 00 17 05 00 90 00 90 [19:12:37]RAPDU: 90 00 [19:12:37]wFMCommunicate OK [19:12:37]wFMCommunicate request_size=7 [19:12:37]MH_SAM_APDU [19:12:37]CAPDU: 80 0D 02 02 02 7C A1 [19:12:37]Write to MH i2c: E2 0A 00 18 05 80 0D 02 02 02 00 7C A1 00 00 B8 [19:12:37]Write i2c OK [19:12:37]MH_I2C_Read... [19:12:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:38]Read from MH i2c: E2 [19:12:38]MH_I2C_Read... [19:12:38]Read from MH i2c: E2 03 00 [19:12:38]MH_I2C_Read... [19:12:38]Read from MH i2c: E2 03 00 18 05 00 90 00 91 [19:12:38]RAPDU: 90 00 [19:12:38]wFMCommunicate OK [19:12:38]wFMCommunicate request_size=4 [19:12:38]MH_SAM_APDU [19:12:38]CAPDU: 80 0D 03 02 [19:12:38]Write to MH i2c: E2 08 00 19 05 80 0D 03 02 00 00 00 00 99 [19:12:38]Write i2c OK [19:12:38]MH_I2C_Read... [19:12:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:12:38]Read from MH i2c: E2 [19:12:38]MH_I2C_Read... [19:12:38]Read from MH i2c: E2 0B 00 [19:12:38]MH_I2C_Read... [19:12:38]Read from MH i2c: E2 0B 00 19 05 00 66 D7 8F 92 C4 E5 25 86 90 00 4C [19:12:38]RAPDU: 66 D7 8F 92 C4 E5 25 86 90 00 [19:12:38]wFMCommunicate OK [19:12:38]SAM_PROTO_SignData done [19:12:38]FM_MakeSignedData done [19:12:38]CreateOFDProtocolMessage [19:12:38]wFMCommunicate request_size=4 [19:12:38]MH_SAM_APDU [19:12:38]CAPDU: 80 11 00 00 [19:12:38]Write to MH i2c: E2 08 00 1A 05 80 11 00 00 00 00 00 00 99 [19:12:38]Write i2c OK [19:12:38]MH_I2C_Read... [19:12:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:38]Read from MH i2c: E2 [19:12:38]MH_I2C_Read... [19:12:38]Read from MH i2c: E2 17 00 [19:12:38]MH_I2C_Read... [19:12:38]Read from MH i2c: E2 17 00 1A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EE [19:12:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:12:38]wFMCommunicate OK [19:12:38]CreateOFDProtocolMessage done [19:12:38]OFDSenderStorePacket 201651 [19:12:38]StoreOFDPacket docnum=201651 [19:12:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 AF 8B 04 01 67 FE 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 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 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 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 9D 01 00 00 F4 03 04 00 24 3F 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B3 13 03 00 35 04 06 00 79 3C D0 BE 7C A1 66 D7 8F 92 C4 E5 25 86 [19:12:38]CheckFolder [19:12:38]dirname=/storage/ofd_packets [19:12:38]CheckFolder done [19:12:38]ProducePacketName [19:12:38]name=ofd_packets/00201651 [19:12:38]NVStorageSaveData ofd_packets/00201651 [19:12:38]File name is /storage/ofd_packets/00201651 [19:12:38]Write 298 bytes [19:12:38]NVStorageSaveData done [19:12:38]OFDSenderStorePacket done [19:12:38]KKMCreateOFDPacket done [19:12:38]NVStorageSaveData kkm_last_timestamp [19:12:38]File name is /storage/kkm_last_timestamp [19:12:38]Write 4 bytes [19:12:38]NVStorageSaveData done [19:12:38]ExternCall_PrintAddStr [19:12:38]wPrintStart [19:12:38]Write to MH i2c: 01 00 00 1B 05 20 [19:12:38]Write i2c OK [19:12:38]MH_I2C_Read... [19:12:38]Read from MH i2c: 01 [19:12:38]MH_I2C_Read... [19:12:38]Read from MH i2c: 01 07 00 [19:12:38]MH_I2C_Read... [19:12:38]Read from MH i2c: 01 07 00 1B 05 00 00 00 00 00 FF 0F 35 [19:12:38]RasterBufferAndPrint [19:12:38]line Счет N : (1)449409 [19:12:38]line ИНН: 02508201610067 [19:12:38]line Контрольно-Кассовый Чек [19:12:38]line ПРОДАЖА [19:12:38]line ТРК (МРК, ГНК) : 21 [19:12:38]line Товар: 2710194210 [19:12:38]line ДТ-К-2 [19:12:38]line 19.690 * 76.20 [19:12:38]line = 1500.38 [19:12:38]line НДС 12% НСП 1% [19:12:38]line > о реализуемом товаре [19:12:38]line ОКРУГЛЕНИЕ: -0.38 [19:12:38]line ИТОГО: 1500.00 [19:12:38]line Внесено: 1500.00 [19:12:38]line СДАЧА: 0.00 [19:12:38]line НСП 1% : 13.28 [19:12:38]line НДС 12% : 159.33 [19:12:38]line Наличными: 1500.00 [19:12:38]line Безнал.: 0.00 [19:12:38]line Место: АЗС № 171 "Партнер Нефть" [19:12:38]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:12:38]line СНО: Общий режим [19:12:38]line Чек 413 26.10.2024 19:12 [19:12:38]line Смена: 543 ФФД: 1.0 [19:12:38]line ЗНМ: 0300000109 [19:12:38]line РНМ: 0000000000091777 [19:12:38]line Версия ККМ: 001 [19:12:38]line ФМ: 0000000000871756 [19:12:38]line ФД: 201651 [19:12:38]line ФПД: 133302107143329 [19:12:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T191236&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201651&fm=133302107143329&tin=02508201610067®Number=0000000000091777&sum=150000 [19:12:38]OFD Sender: Processing packet 201651 [packets to send 112, broken 111] [19:12:38]ProducePacketName [19:12:38]name=ofd_packets/00201651 [19:12:38]OFD Sender: To server: pG, [19:12:38]CommunicateWithHost lk.salyk.kg:30040 [19:12:38]ConnectInit lk.salyk.kg [19:12:38]written 0, free lines is 4095 [19:12:38]Connected sock=10 [19:12:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 AF 8B 04 01 67 FE 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 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 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 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 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 9D 01 00 00 F4 03 04 00 24 3F 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B3 13 03 00 35 04 06 00 79 3C D0 BE 7C A1 66 D7 8F 92 C4 E5 25 86 [19:12:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 1A BC 47 00 ED B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B3 13 03 00 F4 03 04 00 CC EA 1C 67 B6 04 01 00 00 C9 F1 FE 9F 47 4A 56 8A [19:12:38]CommunicateWithHost err = 0 [19:12:38]CheckOFDResponse [19:12:38]1017 (14) - 77093643461234 [19:12:38]1041 (16) - 0000000000871756 [19:12:38]1040 (4) - 201651 [19:12:38]1012 (4) - 26.10.2024 13:12 [19:12:38]1206 (1) - 0 [19:12:38]OFD Sender: Remove packet 201651 [19:12:38]ProducePacketName [19:12:38]name=ofd_packets/00201651 [19:12:38]NVStorageDeleteData [19:12:38]Write to MH i2c: 01 00 00 46 05 4B [19:12:38]Write i2c OK [19:12:38]MH_I2C_Read... [19:12:38]Read from MH i2c: 01 [19:12:38]MH_I2C_Read... [19:12:38]Read from MH i2c: 01 07 00 [19:12:38]MH_I2C_Read... [19:12:38]Read from MH i2c: 01 07 00 46 05 00 00 00 00 00 99 0C F7 [19:12:38]RasterBufferAndPrint [19:12:38]line [19:12:38]line [19:12:38]line [19:12:38]line [19:12:38]line [19:12:38]written 0, free lines is 3229 [19:12:38]MH_Cut [19:12:38]Write to MH i2c: D1 01 00 4D 05 01 24 [19:12:38]Write i2c OK [19:12:38]MH_I2C_Read... [19:12:38]Read from MH i2c: D1 [19:12:38]MH_I2C_Read... [19:12:38]Read from MH i2c: D1 01 00 [19:12:38]MH_I2C_Read... [19:12:38]Read from MH i2c: D1 01 00 4D 05 00 23 [19:12:38]Write to MH i2c: 01 00 00 4E 05 53 [19:12:38]Write i2c OK [19:12:38]MH_I2C_Read... [19:12:39]OFD Sender: No OFD packet to send [19:12:39]*** Cut start [19:12:39]*** Purtial cut [19:12:39]*** CUTSNS_PIN = 0 [19:12:40]*** Stage 1: CUTSNS_PIN = 1 [19:12:41]Read from MH i2c: 01 [19:12:41]MH_I2C_Read... [19:12:41]*** Stop cut motor [19:12:41]*** Cut end [19:12:41]Read from MH i2c: 01 07 00 [19:12:41]MH_I2C_Read... [19:12:41]Read from MH i2c: 01 07 00 4E 05 00 00 00 00 00 FF 0F 68 [19:12:41]process_action close_receipt done [19:12:41]requested_data is exist [19:12:41]produce_requested_data [19:12:41]requested_item fm.sn is exist - process it [19:12:41]wFMCommunicate request_size=4 [19:12:41]MH_SAM_APDU [19:12:41]CAPDU: 80 11 00 00 [19:12:41]Write to MH i2c: E2 08 00 4F 05 80 11 00 00 00 00 00 00 CE [19:12:41]Write i2c OK [19:12:41]MH_I2C_Read... [19:12:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:41]Read from MH i2c: E2 [19:12:41]MH_I2C_Read... [19:12:41]Read from MH i2c: E2 17 00 [19:12:41]MH_I2C_Read... [19:12:41]Read from MH i2c: E2 17 00 4F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 23 [19:12:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:12:41]wFMCommunicate OK [19:12:41]requested_item fd.num is exist - process it [19:12:41]SAM_PROTO_GetFieldsCounters [19:12:41]wFMCommunicate request_size=4 [19:12:41]MH_SAM_APDU [19:12:41]CAPDU: 80 13 00 00 [19:12:41]Write to MH i2c: E2 08 00 50 05 80 13 00 00 00 00 00 00 D1 [19:12:41]Write i2c OK [19:12:41]MH_I2C_Read... [19:12:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:12:42]Read from MH i2c: E2 [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: E2 62 00 [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: E2 62 00 50 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B3 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9D 01 00 00 5E 04 04 00 9D 01 00 00 57 04 04 00 9E 01 00 00 19 04 04 00 00 00 00 00 90 00 BE [19:12:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B3 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9D 01 00 00 5E 04 04 00 9D 01 00 00 57 04 04 00 9E 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:12:42]wFMCommunicate OK [19:12:42]SAM_PROTO_GetFieldsCounters done [19:12:42]requested_item shift.num is exist - process it [19:12:42]requested_item shift.opened is exist - process it [19:12:42]req_shift_opened [19:12:42]FM_GetShiftState [19:12:42]SAM_PROTO_GetShiftState [19:12:42]wFMCommunicate request_size=4 [19:12:42]MH_SAM_APDU [19:12:42]CAPDU: 80 13 01 00 [19:12:42]Write to MH i2c: E2 08 00 51 05 80 13 01 00 00 00 00 00 D3 [19:12:42]Write i2c OK [19:12:42]MH_I2C_Read... [19:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:42]Read from MH i2c: E2 [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: E2 0E 00 [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: E2 0E 00 51 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E2 [19:12:42]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:12:42]wFMCommunicate OK [19:12:42]SAM_PROTO_GetShiftState done [19:12:42]FM_GetShiftState done [19:12:42]req_shift_opened done [19:12:42]requested_item shift.open_date is exist - process it [19:12:42]req_shift_open_date [19:12:42]req_shift_open_date done [19:12:42]produce_requested_data done [19:12:42]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201651,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [19:12:42]process_action_free close_receipt [19:12:42]json_value_free [19:12:42]json_value_free done [19:12:42]process_json_proto returns [19:12:42]Send response to host [19:12:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201651,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [19:12:42]free response buf [19:12:42]execute_script done [19:12:42]execute_script returns [19:12:42]free content buf [19:12:42]Sock 7.Close socket [19:12:42]Sock 7.Thread stoped [19:12:44]OFD Sender: No OFD packet to send [19:12:44]accept exits with 9 [19:12:44]New connection [19:12:44]New thread 3066608996 created [19:12:44]Thread 3066465636 joined [19:12:44]Waiting for new connection... [19:12:44] Sock 9.Parse request [19:12:44]Sock 9.Check first char [19:12:44]Sock 9.First char is OK [19:12:44]request: POST /json_proto HTTP/1.0 [19:12:44]Method: POST [19:12:44]URL: /json_proto [19:12:44]Method is POST - this is cgi request [19:12:44]url: /json_proto [19:12:44]query_string will be loaded in cgi processing [19:12:44]execute_cgi json_proto POST (null) [19:12:44]execute_cgi path=json_proto method=POST [19:12:44]POST find Content-Length [19:12:44]Host: 172.17.63.195:8080 [19:12:44]Content-Length: 678 [19:12:44]Content-Type: application/json [19:12:44] [19:12:44]POST finish read [19:12:44]Found Content-Length = 678 [19:12:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:44]execute_script... [19:12:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:44]POST & json_proto [19:12:44]process_json_proto [19:12:44]json parsed OK: [19:12:44]protocol is kg_v1.0 [19:12:44]action value=close_receipt [19:12:44]process_action close_receipt [19:12:44]cmd_close_receipt [19:12:44]MH_GetDate [19:12:44]Write to MH i2c: F0 00 00 52 05 46 [19:12:44]Write i2c OK [19:12:44]MH_I2C_Read... [19:12:44]Read from MH i2c: F0 [19:12:44]MH_I2C_Read... [19:12:44]Read from MH i2c: F0 09 00 [19:12:44]MH_I2C_Read... [19:12:44]Read from MH i2c: F0 09 00 52 05 00 2D 3F 1D 67 68 46 19 67 6D [19:12:44]GetLastDocTimeStamp 1729969956 [19:12:44]current date 1729969965 [19:12:44]FM_GetShiftState [19:12:44]SAM_PROTO_GetShiftState [19:12:44]wFMCommunicate request_size=4 [19:12:44]MH_SAM_APDU [19:12:44]CAPDU: 80 13 01 00 [19:12:44]Write to MH i2c: E2 08 00 53 05 80 13 01 00 00 00 00 00 D5 [19:12:44]Write i2c OK [19:12:44]MH_I2C_Read... [19:12:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:44]Read from MH i2c: E2 [19:12:44]MH_I2C_Read... [19:12:44]Read from MH i2c: E2 0E 00 [19:12:44]MH_I2C_Read... [19:12:44]Read from MH i2c: E2 0E 00 53 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E4 [19:12:44]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:12:44]wFMCommunicate OK [19:12:44]SAM_PROTO_GetShiftState done [19:12:44]FM_GetShiftState done [19:12:44]opened in 1729900879 [19:12:44]opened+sec_in_day 1729987279 [19:12:44]quantity*price = 80012 [19:12:44]sum+1 = 80013 [19:12:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 414 26.10.2024 19:12 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201652 ФПД: 91106401633791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T191245&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201652&fm=91106401633791&tin=02508201610067®Number=0000000000091777&sum=80000 [19:12:45]StoreToDocumentArchive [19:12:45]shift 543 fd 201652 [19:12:45]save to /storage/0543/doc_00201652 [19:12:45]save last doc name /storage/0543/doc_00201652 to /storage/kkm_last_doc_name [19:12:45]save OK [19:12:45]Clear old archive folders... [19:12:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:12:45]tlvbuf is 0105E840 [19:12:45]SAM_PROTO_ClearQueue [19:12:45]wFMCommunicate request_size=4 [19:12:45]MH_SAM_APDU [19:12:45]CAPDU: 80 09 00 00 [19:12:45]Write to MH i2c: E2 08 00 60 05 80 09 00 00 00 00 00 00 D7 [19:12:45]Write i2c OK [19:12:45]MH_I2C_Read... [19:12:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:12:45]Read from MH i2c: E2 [19:12:45]MH_I2C_Read... [19:12:45]Read from MH i2c: E2 03 00 [19:12:45]MH_I2C_Read... [19:12:45]Read from MH i2c: E2 03 00 60 05 00 90 00 D9 [19:12:45]RAPDU: 90 00 [19:12:45]wFMCommunicate OK [19:12:45]SAM_PROTO_ClearQueue done [19:12:45]KKMCreateOFDPacket [19:12:45]OFDProtocolAddRootSTLVToBuf [19:12:45]FM_MakeSignedData [19:12:45]FM_MakeSignedData [19:12:45]SAM_PROTO_SignData [19:12:45]wFMCommunicate request_size=4 [19:12:45]MH_SAM_APDU [19:12:45]CAPDU: 80 0D 01 02 [19:12:45]Write to MH i2c: E2 08 00 61 05 80 0D 01 02 00 00 00 00 DF [19:12:45]Write i2c OK [19:12:45]MH_I2C_Read... [19:12:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:12:45]Read from MH i2c: E2 [19:12:45]MH_I2C_Read... [19:12:45]Read from MH i2c: E2 03 00 [19:12:45]MH_I2C_Read... [19:12:45]Read from MH i2c: E2 03 00 61 05 00 90 00 DA [19:12:45]RAPDU: 90 00 [19:12:45]wFMCommunicate OK [19:12:45]wFMCommunicate request_size=255 [19:12:45]MH_SAM_APDU [19:12: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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 2D 3F 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B4 13 03 00 35 04 06 00 52 [19:12:45]Write to MH i2c: E2 02 01 62 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 2D 3F 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B4 13 03 00 35 04 06 00 52 00 00 2B [19:12:45]Write i2c OK [19:12:45]MH_I2C_Read... [19:12:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:46]Read from MH i2c: E2 [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: E2 03 00 [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: E2 03 00 62 05 00 90 00 DB [19:12:46]RAPDU: 90 00 [19:12:46]wFMCommunicate OK [19:12:46]wFMCommunicate request_size=10 [19:12:46]MH_SAM_APDU [19:12:46]CAPDU: 80 0D 02 02 05 DC 5C B4 C5 FF [19:12:46]Write to MH i2c: E2 0D 00 63 05 80 0D 02 02 05 00 DC 5C B4 C5 FF 00 00 9C [19:12:46]Write i2c OK [19:12:46]MH_I2C_Read... [19:12:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:46]Read from MH i2c: E2 [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: E2 03 00 [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: E2 03 00 63 05 00 90 00 DC [19:12:46]RAPDU: 90 00 [19:12:46]wFMCommunicate OK [19:12:46]wFMCommunicate request_size=4 [19:12:46]MH_SAM_APDU [19:12:46]CAPDU: 80 0D 03 02 [19:12:46]Write to MH i2c: E2 08 00 64 05 80 0D 03 02 00 00 00 00 E4 [19:12:46]Write i2c OK [19:12:46]MH_I2C_Read... [19:12:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:12:46]Read from MH i2c: E2 [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: E2 0B 00 [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: E2 0B 00 64 05 00 A7 75 E8 69 22 04 84 0F 90 00 0B [19:12:46]RAPDU: A7 75 E8 69 22 04 84 0F 90 00 [19:12:46]wFMCommunicate OK [19:12:46]SAM_PROTO_SignData done [19:12:46]FM_MakeSignedData done [19:12:46]CreateOFDProtocolMessage [19:12:46]wFMCommunicate request_size=4 [19:12:46]MH_SAM_APDU [19:12:46]CAPDU: 80 11 00 00 [19:12:46]Write to MH i2c: E2 08 00 65 05 80 11 00 00 00 00 00 00 E4 [19:12:46]Write i2c OK [19:12:46]MH_I2C_Read... [19:12:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:46]Read from MH i2c: E2 [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: E2 17 00 [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: E2 17 00 65 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 39 [19:12:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:12:46]wFMCommunicate OK [19:12:46]CreateOFDProtocolMessage done [19:12:46]OFDSenderStorePacket 201652 [19:12:46]StoreOFDPacket docnum=201652 [19:12:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 18 72 07 01 0E 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 2D 3F 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B4 13 03 00 35 04 06 00 52 DC 5C B4 C5 FF A7 75 E8 69 22 04 84 0F [19:12:46]CheckFolder [19:12:46]dirname=/storage/ofd_packets [19:12:46]CheckFolder done [19:12:46]ProducePacketName [19:12:46]name=ofd_packets/00201652 [19:12:46]NVStorageSaveData ofd_packets/00201652 [19:12:46]File name is /storage/ofd_packets/00201652 [19:12:46]Write 301 bytes [19:12:46]NVStorageSaveData done [19:12:46]OFDSenderStorePacket done [19:12:46]KKMCreateOFDPacket done [19:12:46]NVStorageSaveData kkm_last_timestamp [19:12:46]File name is /storage/kkm_last_timestamp [19:12:46]Write 4 bytes [19:12:46]NVStorageSaveData done [19:12:46]ExternCall_PrintAddStr [19:12:46]wPrintStart [19:12:46]Write to MH i2c: 01 00 00 66 05 6B [19:12:46]Write i2c OK [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: 01 [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: 01 07 00 [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: 01 07 00 66 05 00 00 00 00 00 FF 0F 80 [19:12:46]RasterBufferAndPrint [19:12:46]line Счет N : (1)449408 [19:12:46]line ИНН: 02508201610067 [19:12:46]line Контрольно-Кассовый Чек [19:12:46]line ПРОДАЖА [19:12:46]line ТРК (МРК, ГНК) : 31 [19:12:46]line Товар: 2710124130 [19:12:46]line Аи-92-К-2 [19:12:46]line 11.960 * 66.90 [19:12:46]line = 800.12 [19:12:46]line НДС 12% НСП 1% [19:12:46]line > о реализуемом товаре [19:12:46]line ОКРУГЛЕНИЕ: -0.12 [19:12:46]line ИТОГО: 800.00 [19:12:46]line Внесено: 800.00 [19:12:46]line СДАЧА: 0.00 [19:12:46]line НСП 1% : 7.08 [19:12:46]line НДС 12% : 84.97 [19:12:46]line Наличными: 800.00 [19:12:46]line Безнал.: 0.00 [19:12:46]line Место: АЗС № 171 "Партнер Нефть" [19:12:46]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:12:46]line СНО: Общий режим [19:12:46]line Чек 414 26.10.2024 19:12 [19:12:46]line Смена: 543 ФФД: 1.0 [19:12:46]line ЗНМ: 0300000109 [19:12:46]line РНМ: 0000000000091777 [19:12:46]line Версия ККМ: 001 [19:12:46]line ФМ: 0000000000871756 [19:12:46]line ФД: 201652 [19:12:46]line ФПД: 91106401633791 [19:12:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T191245&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201652&fm=91106401633791&tin=02508201610067®Number=0000000000091777&sum=80000 [19:12:46]written 0, free lines is 4095 [19:12:46]OFD Sender: Processing packet 201652 [packets to send 112, broken 111] [19:12:46]ProducePacketName [19:12:46]name=ofd_packets/00201652 [19:12:46]OFD Sender: To server: pG, [19:12:46]CommunicateWithHost lk.salyk.kg:30040 [19:12:46]ConnectInit lk.salyk.kg [19:12:46]Connected sock=10 [19:12:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 18 72 07 01 0E 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 2D 3F 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B4 13 03 00 35 04 06 00 52 DC 5C B4 C5 FF A7 75 E8 69 22 04 84 0F [19:12:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 32 64 47 00 B9 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B4 13 03 00 F4 03 04 00 D4 EA 1C 67 B6 04 01 00 00 7B 12 EF DB BC 1A BE 58 [19:12:46]CommunicateWithHost err = 0 [19:12:46]CheckOFDResponse [19:12:46]1017 (14) - 77093643461234 [19:12:46]1041 (16) - 0000000000871756 [19:12:46]1040 (4) - 201652 [19:12:46]1012 (4) - 26.10.2024 13:12 [19:12:46]1206 (1) - 0 [19:12:46]OFD Sender: Remove packet 201652 [19:12:46]ProducePacketName [19:12:46]name=ofd_packets/00201652 [19:12:46]NVStorageDeleteData [19:12:46]Write to MH i2c: 01 00 00 91 05 96 [19:12:46]Write i2c OK [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: 01 [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: 01 07 00 [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: 01 07 00 91 05 00 00 00 00 00 A4 0C 4D [19:12:46]RasterBufferAndPrint [19:12:46]line [19:12:46]line [19:12:46]line [19:12:46]line [19:12:46]line [19:12:46]written 0, free lines is 3244 [19:12:46]MH_Cut [19:12:46]Write to MH i2c: D1 01 00 98 05 01 6F [19:12:46]Write i2c OK [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: D1 [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: D1 01 00 [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: D1 01 00 98 05 00 6E [19:12:46]Write to MH i2c: 01 00 00 99 05 9E [19:12:46]Write i2c OK [19:12:46]MH_I2C_Read... [19:12:47]OFD Sender: No OFD packet to send [19:12:47]*** Cut start [19:12:47]*** Purtial cut [19:12:47]*** Stage 1: CUTSNS_PIN = 1 [19:12:47]Read from MH i2c: 01 [19:12:47]MH_I2C_Read... [19:12:47]*** Stop cut motor [19:12:47]*** Cut end [19:12:47]Read from MH i2c: 01 07 00 [19:12:47]MH_I2C_Read... [19:12:47]Read from MH i2c: 01 07 00 99 05 00 00 00 00 00 FF 0F B3 [19:12:47]process_action close_receipt done [19:12:47]requested_data is exist [19:12:47]produce_requested_data [19:12:47]requested_item fm.sn is exist - process it [19:12:47]wFMCommunicate request_size=4 [19:12:47]MH_SAM_APDU [19:12:47]CAPDU: 80 11 00 00 [19:12:47]Write to MH i2c: E2 08 00 9A 05 80 11 00 00 00 00 00 00 19 [19:12:47]Write i2c OK [19:12:47]MH_I2C_Read... [19:12:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:48]Read from MH i2c: E2 [19:12:48]MH_I2C_Read... [19:12:48]Read from MH i2c: E2 17 00 [19:12:48]MH_I2C_Read... [19:12:48]Read from MH i2c: E2 17 00 9A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6E [19:12:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:12:48]wFMCommunicate OK [19:12:48]requested_item fd.num is exist - process it [19:12:48]SAM_PROTO_GetFieldsCounters [19:12:48]wFMCommunicate request_size=4 [19:12:48]MH_SAM_APDU [19:12:48]CAPDU: 80 13 00 00 [19:12:48]Write to MH i2c: E2 08 00 9B 05 80 13 00 00 00 00 00 00 1C [19:12:48]Write i2c OK [19:12:48]MH_I2C_Read... [19:12:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:12:48]Read from MH i2c: E2 [19:12:48]MH_I2C_Read... [19:12:48]Read from MH i2c: E2 62 00 [19:12:48]MH_I2C_Read... [19:12:48]Read from MH i2c: E2 62 00 9B 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B4 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9E 01 00 00 5E 04 04 00 9E 01 00 00 57 04 04 00 9F 01 00 00 19 04 04 00 00 00 00 00 90 00 0D [19:12:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B4 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9E 01 00 00 5E 04 04 00 9E 01 00 00 57 04 04 00 9F 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:12:48]wFMCommunicate OK [19:12:48]SAM_PROTO_GetFieldsCounters done [19:12:48]requested_item shift.num is exist - process it [19:12:48]requested_item shift.opened is exist - process it [19:12:48]req_shift_opened [19:12:48]FM_GetShiftState [19:12:48]SAM_PROTO_GetShiftState [19:12:48]wFMCommunicate request_size=4 [19:12:48]MH_SAM_APDU [19:12:48]CAPDU: 80 13 01 00 [19:12:48]Write to MH i2c: E2 08 00 9C 05 80 13 01 00 00 00 00 00 1E [19:12:48]Write i2c OK [19:12:48]MH_I2C_Read... [19:12:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:48]Read from MH i2c: E2 [19:12:48]MH_I2C_Read... [19:12:48]Read from MH i2c: E2 0E 00 [19:12:48]MH_I2C_Read... [19:12:48]Read from MH i2c: E2 0E 00 9C 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 2D [19:12:48]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:12:48]wFMCommunicate OK [19:12:48]SAM_PROTO_GetShiftState done [19:12:48]FM_GetShiftState done [19:12:48]req_shift_opened done [19:12:48]requested_item shift.open_date is exist - process it [19:12:48]req_shift_open_date [19:12:48]req_shift_open_date done [19:12:48]produce_requested_data done [19:12:48]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201652,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [19:12:48]process_action_free close_receipt [19:12:48]json_value_free [19:12:48]json_value_free done [19:12:48]process_json_proto returns [19:12:48]Send response to host [19:12:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201652,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [19:12:48]free response buf [19:12:48]execute_script done [19:12:48]execute_script returns [19:12:48]free content buf [19:12:48]Sock 9.Close socket [19:12:48]Sock 9.Thread stoped [19:12:52]OFD Sender: No OFD packet to send [19:12:57]OFD Sender: No OFD packet to send [19:13:02]OFD Sender: No OFD packet to send [19:13:07]OFD Sender: No OFD packet to send [19:13:12]OFD Sender: No OFD packet to send [19:13:17]OFD Sender: No OFD packet to send [19:13:22]OFD Sender: No OFD packet to send [19:13:27]OFD Sender: No OFD packet to send [19:13:32]OFD Sender: No OFD packet to send [19:13:37]OFD Sender: No OFD packet to send [19:13:42]OFD Sender: No OFD packet to send [19:13:47]OFD Sender: No OFD packet to send [19:13:52]OFD Sender: No OFD packet to send [19:13:57]OFD Sender: No OFD packet to send [19:14:02]OFD Sender: No OFD packet to send [19:14:07]OFD Sender: No OFD packet to send [19:14:12]OFD Sender: No OFD packet to send [19:14:17]OFD Sender: No OFD packet to send [19:14:22]OFD Sender: No OFD packet to send [19:14:27]OFD Sender: No OFD packet to send [19:14:32]OFD Sender: No OFD packet to send [19:14:37]OFD Sender: No OFD packet to send [19:14:42]OFD Sender: No OFD packet to send [19:14:47]OFD Sender: No OFD packet to send [19:14:52]OFD Sender: No OFD packet to send [19:14:56]accept exits with 7 [19:14:56]New connection [19:14:56]New thread 3066465636 created [19:14:56]Thread 3066608996 joined [19:14:56]Waiting for new connection... [19:14:56] Sock 7.Parse request [19:14:56]Sock 7.Check first char [19:14:56]Sock 7.First char is OK [19:14:56]request: POST /json_proto HTTP/1.0 [19:14:56]Method: POST [19:14:56]URL: /json_proto [19:14:56]Method is POST - this is cgi request [19:14:56]url: /json_proto [19:14:56]query_string will be loaded in cgi processing [19:14:56]execute_cgi json_proto POST (null) [19:14:56]execute_cgi path=json_proto method=POST [19:14:56]POST find Content-Length [19:14:56]Host: 172.17.63.195:8080 [19:14:56]Content-Length: 677 [19:14:56]Content-Type: application/json [19:14:56] [19:14:56]POST finish read [19:14:56]Found Content-Length = 677 [19:14:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [19:14:56]execute_script... [19:14: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)449410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [19:14:56]POST & json_proto [19:14:56]process_json_proto [19:14:56]json parsed OK: [19:14:56]protocol is kg_v1.0 [19:14:56]action value=close_receipt [19:14:56]process_action close_receipt [19:14:56]cmd_close_receipt [19:14:56]MH_GetDate [19:14:56]Write to MH i2c: F0 00 00 9D 05 91 [19:14:56]Write i2c OK [19:14:56]MH_I2C_Read... [19:14:56]Read from MH i2c: F0 [19:14:56]MH_I2C_Read... [19:14:56]Read from MH i2c: F0 09 00 [19:14:56]MH_I2C_Read... [19:14:56]Read from MH i2c: F0 09 00 9D 05 00 B0 3F 1D 67 68 46 19 67 3B [19:14:56]GetLastDocTimeStamp 1729969965 [19:14:56]current date 1729970096 [19:14:56]FM_GetShiftState [19:14:56]SAM_PROTO_GetShiftState [19:14:56]wFMCommunicate request_size=4 [19:14:56]MH_SAM_APDU [19:14:56]CAPDU: 80 13 01 00 [19:14:56]Write to MH i2c: E2 08 00 9E 05 80 13 01 00 00 00 00 00 20 [19:14:56]Write i2c OK [19:14:56]MH_I2C_Read... [19:14:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:56]Read from MH i2c: E2 [19:14:56]MH_I2C_Read... [19:14:56]Read from MH i2c: E2 0E 00 [19:14:56]MH_I2C_Read... [19:14:56]Read from MH i2c: E2 0E 00 9E 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 2F [19:14:56]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:14:56]wFMCommunicate OK [19:14:56]SAM_PROTO_GetShiftState done [19:14:56]FM_GetShiftState done [19:14:56]opened in 1729900879 [19:14:56]opened+sec_in_day 1729987279 [19:14:56]quantity*price = 40006 [19:14:56]sum+1 = 40007 [19:14:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 415 26.10.2024 19:14 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201653 ФПД: 51342323155544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T191457&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201653&fm=51342323155544&tin=02508201610067®Number=0000000000091777&sum=40000 [19:14:57]StoreToDocumentArchive [19:14:57]shift 543 fd 201653 [19:14:57]save to /storage/0543/doc_00201653 [19:14:57]save last doc name /storage/0543/doc_00201653 to /storage/kkm_last_doc_name [19:14:57]save OK [19:14:57]Clear old archive folders... [19:14:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:14:57]tlvbuf is 0104ED30 [19:14:57]SAM_PROTO_ClearQueue [19:14:57]wFMCommunicate request_size=4 [19:14:57]MH_SAM_APDU [19:14:57]CAPDU: 80 09 00 00 [19:14:57]Write to MH i2c: E2 08 00 AB 05 80 09 00 00 00 00 00 00 22 [19:14:57]Write i2c OK [19:14:57]MH_I2C_Read... [19:14:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:14:57]Read from MH i2c: E2 [19:14:57]MH_I2C_Read... [19:14:57]Read from MH i2c: E2 03 00 [19:14:57]MH_I2C_Read... [19:14:57]Read from MH i2c: E2 03 00 AB 05 00 90 00 24 [19:14:57]RAPDU: 90 00 [19:14:57]wFMCommunicate OK [19:14:57]SAM_PROTO_ClearQueue done [19:14:57]KKMCreateOFDPacket [19:14:57]OFDProtocolAddRootSTLVToBuf [19:14:57]FM_MakeSignedData [19:14:57]FM_MakeSignedData [19:14:57]SAM_PROTO_SignData [19:14:57]wFMCommunicate request_size=4 [19:14:57]MH_SAM_APDU [19:14:57]CAPDU: 80 0D 01 02 [19:14:57]Write to MH i2c: E2 08 00 AC 05 80 0D 01 02 00 00 00 00 2A [19:14:57]Write i2c OK [19:14:57]MH_I2C_Read... [19:14:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:14:57]Read from MH i2c: E2 [19:14:57]MH_I2C_Read... [19:14:57]Read from MH i2c: E2 03 00 [19:14:57]MH_I2C_Read... [19:14:57]Read from MH i2c: E2 03 00 AC 05 00 90 00 25 [19:14:57]RAPDU: 90 00 [19:14:57]wFMCommunicate OK [19:14:57]wFMCommunicate request_size=255 [19:14:57]MH_SAM_APDU [19:14: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 32 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 9F 01 00 00 F4 03 04 00 B1 3F 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B5 13 03 00 35 04 06 00 2E [19:14:57]Write to MH i2c: E2 02 01 AD 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 32 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 9F 01 00 00 F4 03 04 00 B1 3F 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B5 13 03 00 35 04 06 00 2E 00 00 BB [19:14:57]Write i2c OK [19:14:57]MH_I2C_Read... [19:14:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:58]Read from MH i2c: E2 [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: E2 03 00 [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: E2 03 00 AD 05 00 90 00 26 [19:14:58]RAPDU: 90 00 [19:14:58]wFMCommunicate OK [19:14:58]wFMCommunicate request_size=10 [19:14:58]MH_SAM_APDU [19:14:58]CAPDU: 80 0D 02 02 05 B2 10 EF 02 58 [19:14:58]Write to MH i2c: E2 0D 00 AE 05 80 0D 02 02 05 00 B2 10 EF 02 58 00 00 42 [19:14:58]Write i2c OK [19:14:58]MH_I2C_Read... [19:14:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:58]Read from MH i2c: E2 [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: E2 03 00 [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: E2 03 00 AE 05 00 90 00 27 [19:14:58]RAPDU: 90 00 [19:14:58]wFMCommunicate OK [19:14:58]wFMCommunicate request_size=4 [19:14:58]MH_SAM_APDU [19:14:58]CAPDU: 80 0D 03 02 [19:14:58]Write to MH i2c: E2 08 00 AF 05 80 0D 03 02 00 00 00 00 2F [19:14:58]Write i2c OK [19:14:58]MH_I2C_Read... [19:14:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:14:58]Read from MH i2c: E2 [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: E2 0B 00 [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: E2 0B 00 AF 05 00 A4 9C 61 4D 55 40 3B D1 90 00 BF [19:14:58]RAPDU: A4 9C 61 4D 55 40 3B D1 90 00 [19:14:58]wFMCommunicate OK [19:14:58]SAM_PROTO_SignData done [19:14:58]FM_MakeSignedData done [19:14:58]CreateOFDProtocolMessage [19:14:58]wFMCommunicate request_size=4 [19:14:58]MH_SAM_APDU [19:14:58]CAPDU: 80 11 00 00 [19:14:58]Write to MH i2c: E2 08 00 B0 05 80 11 00 00 00 00 00 00 2F [19:14:58]Write i2c OK [19:14:58]MH_I2C_Read... [19:14:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:58]Read from MH i2c: E2 [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: E2 17 00 [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: E2 17 00 B0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 84 [19:14:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:14:58]wFMCommunicate OK [19:14:58]CreateOFDProtocolMessage done [19:14:58]OFDSenderStorePacket 201653 [19:14:58]StoreOFDPacket docnum=201653 [19:14:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A7 07 07 01 71 E6 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 32 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 9F 01 00 00 F4 03 04 00 B1 3F 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B5 13 03 00 35 04 06 00 2E B2 10 EF 02 58 A4 9C 61 4D 55 40 3B D1 [19:14:58]CheckFolder [19:14:58]dirname=/storage/ofd_packets [19:14:58]CheckFolder done [19:14:58]ProducePacketName [19:14:58]name=ofd_packets/00201653 [19:14:58]NVStorageSaveData ofd_packets/00201653 [19:14:58]File name is /storage/ofd_packets/00201653 [19:14:58]Write 301 bytes [19:14:58]NVStorageSaveData done [19:14:58]OFDSenderStorePacket done [19:14:58]KKMCreateOFDPacket done [19:14:58]NVStorageSaveData kkm_last_timestamp [19:14:58]File name is /storage/kkm_last_timestamp [19:14:58]Write 4 bytes [19:14:58]NVStorageSaveData done [19:14:58]ExternCall_PrintAddStr [19:14:58]wPrintStart [19:14:58]Write to MH i2c: 01 00 00 B1 05 B6 [19:14:58]Write i2c OK [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: 01 [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: 01 07 00 [19:14:58]MH_I2C_Read... [19:14:58]Read from MH i2c: 01 07 00 B1 05 00 00 00 00 00 FF 0F CB [19:14:58]RasterBufferAndPrint [19:14:58]line Счет N : (1)449410 [19:14:58]line ИНН: 02508201610067 [19:14:58]line Контрольно-Кассовый Чек [19:14:58]line ПРОДАЖА [19:14:58]line ТРК (МРК, ГНК) : 41 [19:14:58]line Товар: 2710124130 [19:14:58]line Аи-92-К-2 [19:14:58]line 5.980 * 66.90 [19:14:58]line = 400.06 [19:14:58]line НДС 12% НСП 1% [19:14:58]line > о реализуемом товаре [19:14:58]line ОКРУГЛЕНИЕ: -0.06 [19:14:58]line ИТОГО: 400.00 [19:14:58]line Внесено: 400.00 [19:14:58]line СДАЧА: 0.00 [19:14:58]line НСП 1% : 3.54 [19:14:58]line НДС 12% : 42.48 [19:14:58]line Наличными: 400.00 [19:14:58]line Безнал.: 0.00 [19:14:58]line Место: АЗС № 171 "Партнер Нефть" [19:14:58]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:14:58]line СНО: Общий режим [19:14:58]line Чек 415 26.10.2024 19:14 [19:14:58]line Смена: 543 ФФД: 1.0 [19:14:58]line ЗНМ: 0300000109 [19:14:58]line РНМ: 0000000000091777 [19:14:58]line Версия ККМ: 001 [19:14:58]line ФМ: 0000000000871756 [19:14:58]line ФД: 201653 [19:14:58]line ФПД: 51342323155544 [19:14:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T191457&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201653&fm=51342323155544&tin=02508201610067®Number=0000000000091777&sum=40000 [19:14:58]OFD Sender: Processing packet 201653 [packets to send 112, broken 111] [19:14:58]ProducePacketName [19:14:58]name=ofd_packets/00201653 [19:14:58]OFD Sender: To server: pG, [19:14:58]CommunicateWithHost lk.salyk.kg:30040 [19:14:58]ConnectInit lk.salyk.kg [19:14:58]written 0, free lines is 4095 [19:14:58]Connected sock=10 [19:14:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A7 07 07 01 71 E6 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 32 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 9F 01 00 00 F4 03 04 00 B1 3F 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B5 13 03 00 35 04 06 00 2E B2 10 EF 02 58 A4 9C 61 4D 55 40 3B D1 [19:14:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 0A 6F 47 00 1F 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B5 13 03 00 F4 03 04 00 59 EB 1C 67 B6 04 01 00 00 F8 3C BF 66 B6 D9 16 3B [19:14:58]CommunicateWithHost err = 0 [19:14:58]CheckOFDResponse [19:14:58]1017 (14) - 77093643461234 [19:14:58]1041 (16) - 0000000000871756 [19:14:58]1040 (4) - 201653 [19:14:58]1012 (4) - 26.10.2024 13:15 [19:14:58]1206 (1) - 0 [19:14:58]OFD Sender: Remove packet 201653 [19:14:58]ProducePacketName [19:14:58]name=ofd_packets/00201653 [19:14:58]NVStorageDeleteData [19:14:59]Write to MH i2c: 01 00 00 DC 05 E1 [19:14:59]Write i2c OK [19:14:59]MH_I2C_Read... [19:14:59]Read from MH i2c: 01 [19:14:59]MH_I2C_Read... [19:14:59]Read from MH i2c: 01 07 00 [19:14:59]MH_I2C_Read... [19:14:59]Read from MH i2c: 01 07 00 DC 05 00 00 00 00 00 A1 0C 95 [19:14:59]RasterBufferAndPrint [19:14:59]line [19:14:59]line [19:14:59]line [19:14:59]line [19:14:59]line [19:14:59]written 0, free lines is 3239 [19:14:59]MH_Cut [19:14:59]Write to MH i2c: D1 01 00 E3 05 01 BA [19:14:59]Write i2c OK [19:14:59]MH_I2C_Read... [19:14:59]Read from MH i2c: D1 [19:14:59]MH_I2C_Read... [19:14:59]Read from MH i2c: D1 01 00 [19:14:59]MH_I2C_Read... [19:14:59]Read from MH i2c: D1 01 00 E3 05 00 B9 [19:14:59]Write to MH i2c: 01 00 00 E4 05 E9 [19:14:59]Write i2c OK [19:14:59]MH_I2C_Read... [19:14:59]OFD Sender: No OFD packet to send [19:14:59]*** Cut start [19:14:59]*** Purtial cut [19:14:59]*** Stage 1: CUTSNS_PIN = 1 [19:15:00]Read from MH i2c: 01 [19:15:00]MH_I2C_Read... [19:15:00]*** Stop cut motor [19:15:00]*** Cut end [19:15:00]Read from MH i2c: 01 07 00 [19:15:00]MH_I2C_Read... [19:15:00]Read from MH i2c: 01 07 00 E4 05 00 00 00 00 00 FF 0F FE [19:15:00]process_action close_receipt done [19:15:00]requested_data is exist [19:15:00]produce_requested_data [19:15:00]requested_item fm.sn is exist - process it [19:15:00]wFMCommunicate request_size=4 [19:15:00]MH_SAM_APDU [19:15:00]CAPDU: 80 11 00 00 [19:15:00]Write to MH i2c: E2 08 00 E5 05 80 11 00 00 00 00 00 00 64 [19:15:00]Write i2c OK [19:15:00]MH_I2C_Read... [19:15:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:00]Read from MH i2c: E2 [19:15:00]MH_I2C_Read... [19:15:00]Read from MH i2c: E2 17 00 [19:15:00]MH_I2C_Read... [19:15:00]Read from MH i2c: E2 17 00 E5 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B9 [19:15:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:15:00]wFMCommunicate OK [19:15:00]requested_item fd.num is exist - process it [19:15:00]SAM_PROTO_GetFieldsCounters [19:15:00]wFMCommunicate request_size=4 [19:15:00]MH_SAM_APDU [19:15:00]CAPDU: 80 13 00 00 [19:15:00]Write to MH i2c: E2 08 00 E6 05 80 13 00 00 00 00 00 00 67 [19:15:00]Write i2c OK [19:15:00]MH_I2C_Read... [19:15:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:00]Read from MH i2c: E2 [19:15:00]MH_I2C_Read... [19:15:00]Read from MH i2c: E2 62 00 [19:15:00]MH_I2C_Read... [19:15:00]Read from MH i2c: E2 62 00 E6 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B5 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9F 01 00 00 5E 04 04 00 9F 01 00 00 57 04 04 00 A0 01 00 00 19 04 04 00 00 00 00 00 90 00 5C [19:15:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B5 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9F 01 00 00 5E 04 04 00 9F 01 00 00 57 04 04 00 A0 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:15:00]wFMCommunicate OK [19:15:00]SAM_PROTO_GetFieldsCounters done [19:15:00]requested_item shift.num is exist - process it [19:15:00]requested_item shift.opened is exist - process it [19:15:00]req_shift_opened [19:15:00]FM_GetShiftState [19:15:00]SAM_PROTO_GetShiftState [19:15:00]wFMCommunicate request_size=4 [19:15:00]MH_SAM_APDU [19:15:00]CAPDU: 80 13 01 00 [19:15:00]Write to MH i2c: E2 08 00 E7 05 80 13 01 00 00 00 00 00 69 [19:15:00]Write i2c OK [19:15:00]MH_I2C_Read... [19:15:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:00]Read from MH i2c: E2 [19:15:00]MH_I2C_Read... [19:15:00]Read from MH i2c: E2 0E 00 [19:15:00]MH_I2C_Read... [19:15:00]Read from MH i2c: E2 0E 00 E7 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 78 [19:15:00]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:15:00]wFMCommunicate OK [19:15:00]SAM_PROTO_GetShiftState done [19:15:00]FM_GetShiftState done [19:15:00]req_shift_opened done [19:15:00]requested_item shift.open_date is exist - process it [19:15:00]req_shift_open_date [19:15:00]req_shift_open_date done [19:15:00]produce_requested_data done [19:15:00]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201653,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [19:15:00]process_action_free close_receipt [19:15:00]json_value_free [19:15:00]json_value_free done [19:15:00]process_json_proto returns [19:15:00]Send response to host [19:15:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201653,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [19:15:00]free response buf [19:15:00]execute_script done [19:15:00]execute_script returns [19:15:00]free content buf [19:15:00]Sock 7.Close socket [19:15:00]Sock 7.Thread stoped [19:15:04]OFD Sender: No OFD packet to send [19:15:09]OFD Sender: No OFD packet to send [19:15:14]OFD Sender: No OFD packet to send [19:15:19]OFD Sender: No OFD packet to send [19:15:24]OFD Sender: No OFD packet to send [19:15:29]OFD Sender: No OFD packet to send [19:15:34]OFD Sender: No OFD packet to send [19:15:39]OFD Sender: No OFD packet to send [19:15:44]OFD Sender: No OFD packet to send [19:15:49]OFD Sender: No OFD packet to send [19:15:54]OFD Sender: No OFD packet to send [19:15:59]OFD Sender: No OFD packet to send [19:16:04]OFD Sender: No OFD packet to send [19:16:09]OFD Sender: No OFD packet to send [19:16:14]OFD Sender: No OFD packet to send [19:16:19]OFD Sender: No OFD packet to send [19:16:24]OFD Sender: No OFD packet to send [19:16:29]OFD Sender: No OFD packet to send [19:16:31]accept exits with 9 [19:16:31]New connection [19:16:31]New thread 3066608996 created [19:16:31]Thread 3066465636 joined [19:16:31]Waiting for new connection... [19:16:31] Sock 9.Parse request [19:16:31]Sock 9.Check first char [19:16:31]Sock 9.First char is OK [19:16:31]request: POST /json_proto HTTP/1.0 [19:16:31]Method: POST [19:16:31]URL: /json_proto [19:16:31]Method is POST - this is cgi request [19:16:31]url: /json_proto [19:16:31]query_string will be loaded in cgi processing [19:16:31]execute_cgi json_proto POST (null) [19:16:31]execute_cgi path=json_proto method=POST [19:16:31]POST find Content-Length [19:16:31]Host: 172.17.63.195:8080 [19:16:31]Content-Length: 675 [19:16:31]Content-Type: application/json [19:16:31] [19:16:31]POST finish read [19:16:31]Found Content-Length = 675 [19:16:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:31]execute_script... [19:16: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)449411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:31]POST & json_proto [19:16:31]process_json_proto [19:16:31]json parsed OK: [19:16:31]protocol is kg_v1.0 [19:16:31]action value=close_receipt [19:16:31]process_action close_receipt [19:16:31]cmd_close_receipt [19:16:31]MH_GetDate [19:16:31]Write to MH i2c: F0 00 00 E8 05 DC [19:16:31]Write i2c OK [19:16:31]MH_I2C_Read... [19:16:31]Read from MH i2c: F0 [19:16:31]MH_I2C_Read... [19:16:31]Read from MH i2c: F0 09 00 [19:16:31]MH_I2C_Read... [19:16:31]Read from MH i2c: F0 09 00 E8 05 00 10 40 1D 67 68 46 19 67 E7 [19:16:31]GetLastDocTimeStamp 1729970097 [19:16:31]current date 1729970192 [19:16:31]FM_GetShiftState [19:16:31]SAM_PROTO_GetShiftState [19:16:31]wFMCommunicate request_size=4 [19:16:31]MH_SAM_APDU [19:16:31]CAPDU: 80 13 01 00 [19:16:31]Write to MH i2c: E2 08 00 E9 05 80 13 01 00 00 00 00 00 6B [19:16:31]Write i2c OK [19:16:31]MH_I2C_Read... [19:16:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:31]Read from MH i2c: E2 [19:16:31]MH_I2C_Read... [19:16:31]Read from MH i2c: E2 0E 00 [19:16:31]MH_I2C_Read... [19:16:31]Read from MH i2c: E2 0E 00 E9 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 7A [19:16:31]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:16:31]wFMCommunicate OK [19:16:31]SAM_PROTO_GetShiftState done [19:16:31]FM_GetShiftState done [19:16:31]opened in 1729900879 [19:16:31]opened+sec_in_day 1729987279 [19:16:31]quantity*price = 80010 [19:16:31]sum+1 = 80011 [19:16:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 416 26.10.2024 19:16 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201654 ФПД: 241811464895977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T191632&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201654&fm=241811464895977&tin=02508201610067®Number=0000000000091777&sum=80000 [19:16:33]StoreToDocumentArchive [19:16:33]shift 543 fd 201654 [19:16:33]save to /storage/0543/doc_00201654 [19:16:33]save last doc name /storage/0543/doc_00201654 to /storage/kkm_last_doc_name [19:16:33]save OK [19:16:33]Clear old archive folders... [19:16:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:16:33]tlvbuf is 0104FAB0 [19:16:33]SAM_PROTO_ClearQueue [19:16:33]wFMCommunicate request_size=4 [19:16:33]MH_SAM_APDU [19:16:33]CAPDU: 80 09 00 00 [19:16:33]Write to MH i2c: E2 08 00 F6 05 80 09 00 00 00 00 00 00 6D [19:16:33]Write i2c OK [19:16:33]MH_I2C_Read... [19:16:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:33]Read from MH i2c: E2 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: E2 03 00 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: E2 03 00 F6 05 00 90 00 6F [19:16:33]RAPDU: 90 00 [19:16:33]wFMCommunicate OK [19:16:33]SAM_PROTO_ClearQueue done [19:16:33]KKMCreateOFDPacket [19:16:33]OFDProtocolAddRootSTLVToBuf [19:16:33]FM_MakeSignedData [19:16:33]FM_MakeSignedData [19:16:33]SAM_PROTO_SignData [19:16:33]wFMCommunicate request_size=4 [19:16:33]MH_SAM_APDU [19:16:33]CAPDU: 80 0D 01 02 [19:16:33]Write to MH i2c: E2 08 00 F7 05 80 0D 01 02 00 00 00 00 75 [19:16:33]Write i2c OK [19:16:33]MH_I2C_Read... [19:16:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:33]Read from MH i2c: E2 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: E2 03 00 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: E2 03 00 F7 05 00 90 00 70 [19:16:33]RAPDU: 90 00 [19:16:33]wFMCommunicate OK [19:16:33]wFMCommunicate request_size=255 [19:16:33]MH_SAM_APDU [19:16: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 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 10 40 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B6 13 03 00 35 04 06 00 DB ED 1E 77 [19:16:33]Write to MH i2c: E2 02 01 F8 05 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 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 10 40 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B6 13 03 00 35 04 06 00 DB ED 1E 77 00 00 F1 [19:16:33]Write i2c OK [19:16:33]MH_I2C_Read... [19:16:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:33]Read from MH i2c: E2 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: E2 03 00 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: E2 03 00 F8 05 00 90 00 71 [19:16:33]RAPDU: 90 00 [19:16:33]wFMCommunicate OK [19:16:33]wFMCommunicate request_size=7 [19:16:33]MH_SAM_APDU [19:16:33]CAPDU: 80 0D 02 02 02 BD E9 [19:16:33]Write to MH i2c: E2 0A 00 F9 05 80 0D 02 02 02 00 BD E9 00 00 22 [19:16:33]Write i2c OK [19:16:33]MH_I2C_Read... [19:16:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:33]Read from MH i2c: E2 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: E2 03 00 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: E2 03 00 F9 05 00 90 00 72 [19:16:33]RAPDU: 90 00 [19:16:33]wFMCommunicate OK [19:16:33]wFMCommunicate request_size=4 [19:16:33]MH_SAM_APDU [19:16:33]CAPDU: 80 0D 03 02 [19:16:33]Write to MH i2c: E2 08 00 FA 05 80 0D 03 02 00 00 00 00 7A [19:16:33]Write i2c OK [19:16:33]MH_I2C_Read... [19:16:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:33]Read from MH i2c: E2 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: E2 0B 00 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: E2 0B 00 FA 05 00 75 BC EB 1B B4 1E F4 69 90 00 E1 [19:16:33]RAPDU: 75 BC EB 1B B4 1E F4 69 90 00 [19:16:33]wFMCommunicate OK [19:16:33]SAM_PROTO_SignData done [19:16:33]FM_MakeSignedData done [19:16:33]CreateOFDProtocolMessage [19:16:33]wFMCommunicate request_size=4 [19:16:33]MH_SAM_APDU [19:16:33]CAPDU: 80 11 00 00 [19:16:33]Write to MH i2c: E2 08 00 FB 05 80 11 00 00 00 00 00 00 7A [19:16:33]Write i2c OK [19:16:33]MH_I2C_Read... [19:16:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:33]Read from MH i2c: E2 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: E2 17 00 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: E2 17 00 FB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CF [19:16:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:16:33]wFMCommunicate OK [19:16:33]CreateOFDProtocolMessage done [19:16:33]OFDSenderStorePacket 201654 [19:16:33]StoreOFDPacket docnum=201654 [19:16:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 41 4E 04 01 1E FF 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 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 10 40 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B6 13 03 00 35 04 06 00 DB ED 1E 77 BD E9 75 BC EB 1B B4 1E F4 69 [19:16:33]CheckFolder [19:16:33]dirname=/storage/ofd_packets [19:16:33]CheckFolder done [19:16:33]ProducePacketName [19:16:33]name=ofd_packets/00201654 [19:16:33]NVStorageSaveData ofd_packets/00201654 [19:16:33]File name is /storage/ofd_packets/00201654 [19:16:33]Write 298 bytes [19:16:33]NVStorageSaveData done [19:16:33]OFDSenderStorePacket done [19:16:33]KKMCreateOFDPacket done [19:16:33]NVStorageSaveData kkm_last_timestamp [19:16:33]File name is /storage/kkm_last_timestamp [19:16:33]Write 4 bytes [19:16:33]NVStorageSaveData done [19:16:33]ExternCall_PrintAddStr [19:16:33]wPrintStart [19:16:33]Write to MH i2c: 01 00 00 FC 05 01 [19:16:33]Write i2c OK [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: 01 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: 01 07 00 [19:16:33]MH_I2C_Read... [19:16:33]Read from MH i2c: 01 07 00 FC 05 00 00 00 00 00 FF 0F 16 [19:16:33]RasterBufferAndPrint [19:16:33]line Счет N : (1)449411 [19:16:33]line ИНН: 02508201610067 [19:16:33]line Контрольно-Кассовый Чек [19:16:33]line ПРОДАЖА [19:16:33]line ТРК (МРК, ГНК) : 21 [19:16:33]line Товар: 2710194210 [19:16:33]line ДТ-К-2 [19:16:33]line 10.500 * 76.20 [19:16:33]line = 800.10 [19:16:33]line НДС 12% НСП 1% [19:16:33]line > о реализуемом товаре [19:16:33]line ОКРУГЛЕНИЕ: -0.10 [19:16:33]line ИТОГО: 800.00 [19:16:33]line Внесено: 800.00 [19:16:33]line СДАЧА: 0.00 [19:16:33]line НСП 1% : 7.08 [19:16:33]line НДС 12% : 84.97 [19:16:33]line Наличными: 800.00 [19:16:33]line Безнал.: 0.00 [19:16:33]line Место: АЗС № 171 "Партнер Нефть" [19:16:33]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:16:33]line СНО: Общий режим [19:16:33]line Чек 416 26.10.2024 19:16 [19:16:33]line Смена: 543 ФФД: 1.0 [19:16:33]line ЗНМ: 0300000109 [19:16:33]line РНМ: 0000000000091777 [19:16:33]line Версия ККМ: 001 [19:16:33]line ФМ: 0000000000871756 [19:16:33]line ФД: 201654 [19:16:33]line ФПД: 241811464895977 [19:16:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T191632&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201654&fm=241811464895977&tin=02508201610067®Number=0000000000091777&sum=80000 [19:16:33]OFD Sender: Processing packet 201654 [packets to send 112, broken 111] [19:16:33]ProducePacketName [19:16:33]name=ofd_packets/00201654 [19:16:33]OFD Sender: To server: pG, [19:16:33]CommunicateWithHost lk.salyk.kg:30040 [19:16:33]ConnectInit lk.salyk.kg [19:16:33]written 0, free lines is 4095 [19:16:33]Connected sock=10 [19:16:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 41 4E 04 01 1E FF 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 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 10 40 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B6 13 03 00 35 04 06 00 DB ED 1E 77 BD E9 75 BC EB 1B B4 1E F4 69 [19:16:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 7D 9A 47 00 F8 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B6 13 03 00 F4 03 04 00 B8 EB 1C 67 B6 04 01 00 00 CB D6 54 E5 84 32 AF 43 [19:16:34]CommunicateWithHost err = 0 [19:16:34]CheckOFDResponse [19:16:34]1017 (14) - 77093643461234 [19:16:34]1041 (16) - 0000000000871756 [19:16:34]1040 (4) - 201654 [19:16:34]1012 (4) - 26.10.2024 13:16 [19:16:34]1206 (1) - 0 [19:16:34]OFD Sender: Remove packet 201654 [19:16:34]ProducePacketName [19:16:34]name=ofd_packets/00201654 [19:16:34]NVStorageDeleteData [19:16:34]Write to MH i2c: 01 00 00 27 06 2D [19:16:34]Write i2c OK [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: 01 [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: 01 07 00 [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: 01 07 00 27 06 00 00 00 00 00 99 0C D9 [19:16:34]RasterBufferAndPrint [19:16:34]line [19:16:34]line [19:16:34]line [19:16:34]line [19:16:34]line [19:16:34]written 0, free lines is 3232 [19:16:34]MH_Cut [19:16:34]Write to MH i2c: D1 01 00 2E 06 01 06 [19:16:34]Write i2c OK [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: D1 [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: D1 01 00 [19:16:34]MH_I2C_Read... [19:16:34]Read from MH i2c: D1 01 00 2E 06 00 05 [19:16:34]Write to MH i2c: 01 00 00 2F 06 35 [19:16:34]Write i2c OK [19:16:34]MH_I2C_Read... [19:16:34]OFD Sender: No OFD packet to send [19:16:35]*** Cut start [19:16:35]*** Purtial cut [19:16:35]*** Stage 1: CUTSNS_PIN = 1 [19:16:35]Read from MH i2c: 01 [19:16:35]MH_I2C_Read... [19:16:35]*** Stop cut motor [19:16:35]*** Cut end [19:16:35]Read from MH i2c: 01 07 00 [19:16:35]MH_I2C_Read... [19:16:35]Read from MH i2c: 01 07 00 2F 06 00 00 00 00 00 FF 0F 4A [19:16:35]process_action close_receipt done [19:16:35]requested_data is exist [19:16:35]produce_requested_data [19:16:35]requested_item fm.sn is exist - process it [19:16:35]wFMCommunicate request_size=4 [19:16:35]MH_SAM_APDU [19:16:35]CAPDU: 80 11 00 00 [19:16:35]Write to MH i2c: E2 08 00 30 06 80 11 00 00 00 00 00 00 B0 [19:16:35]Write i2c OK [19:16:35]MH_I2C_Read... [19:16:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:35]Read from MH i2c: E2 [19:16:35]MH_I2C_Read... [19:16:35]Read from MH i2c: E2 17 00 [19:16:35]MH_I2C_Read... [19:16:35]Read from MH i2c: E2 17 00 30 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 05 [19:16:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:16:35]wFMCommunicate OK [19:16:35]requested_item fd.num is exist - process it [19:16:35]SAM_PROTO_GetFieldsCounters [19:16:35]wFMCommunicate request_size=4 [19:16:35]MH_SAM_APDU [19:16:35]CAPDU: 80 13 00 00 [19:16:35]Write to MH i2c: E2 08 00 31 06 80 13 00 00 00 00 00 00 B3 [19:16:35]Write i2c OK [19:16:35]MH_I2C_Read... [19:16:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:35]Read from MH i2c: E2 [19:16:35]MH_I2C_Read... [19:16:35]Read from MH i2c: E2 62 00 [19:16:35]MH_I2C_Read... [19:16:35]Read from MH i2c: E2 62 00 31 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B6 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A0 01 00 00 5E 04 04 00 A0 01 00 00 57 04 04 00 A1 01 00 00 19 04 04 00 00 00 00 00 90 00 AC [19:16:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B6 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A0 01 00 00 5E 04 04 00 A0 01 00 00 57 04 04 00 A1 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:16:35]wFMCommunicate OK [19:16:35]SAM_PROTO_GetFieldsCounters done [19:16:35]requested_item shift.num is exist - process it [19:16:35]requested_item shift.opened is exist - process it [19:16:35]req_shift_opened [19:16:35]FM_GetShiftState [19:16:35]SAM_PROTO_GetShiftState [19:16:35]wFMCommunicate request_size=4 [19:16:35]MH_SAM_APDU [19:16:35]CAPDU: 80 13 01 00 [19:16:35]Write to MH i2c: E2 08 00 32 06 80 13 01 00 00 00 00 00 B5 [19:16:35]Write i2c OK [19:16:35]MH_I2C_Read... [19:16:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:35]Read from MH i2c: E2 [19:16:35]MH_I2C_Read... [19:16:35]Read from MH i2c: E2 0E 00 [19:16:35]MH_I2C_Read... [19:16:35]Read from MH i2c: E2 0E 00 32 06 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C4 [19:16:35]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:16:35]wFMCommunicate OK [19:16:35]SAM_PROTO_GetShiftState done [19:16:35]FM_GetShiftState done [19:16:35]req_shift_opened done [19:16:35]requested_item shift.open_date is exist - process it [19:16:35]req_shift_open_date [19:16:35]req_shift_open_date done [19:16:35]produce_requested_data done [19:16:35]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201654,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [19:16:35]process_action_free close_receipt [19:16:35]json_value_free [19:16:35]json_value_free done [19:16:35]process_json_proto returns [19:16:35]Send response to host [19:16:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201654,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [19:16:35]free response buf [19:16:35]execute_script done [19:16:35]execute_script returns [19:16:35]free content buf [19:16:35]Sock 9.Close socket [19:16:35]Sock 9.Thread stoped [19:16:39]OFD Sender: No OFD packet to send [19:16:44]OFD Sender: No OFD packet to send [19:16:49]OFD Sender: No OFD packet to send [19:16:54]OFD Sender: No OFD packet to send [19:16:59]OFD Sender: No OFD packet to send [19:17:04]OFD Sender: No OFD packet to send [19:17:09]OFD Sender: No OFD packet to send [19:17:14]OFD Sender: No OFD packet to send [19:17:19]OFD Sender: No OFD packet to send [19:17:24]OFD Sender: No OFD packet to send [19:17:29]OFD Sender: No OFD packet to send [19:17:34]OFD Sender: No OFD packet to send [19:17:39]OFD Sender: No OFD packet to send [19:17:44]OFD Sender: No OFD packet to send [19:17:49]OFD Sender: No OFD packet to send [19:17:54]OFD Sender: No OFD packet to send [19:17:59]OFD Sender: No OFD packet to send [19:18:04]OFD Sender: No OFD packet to send [19:18:09]OFD Sender: No OFD packet to send [19:18:14]OFD Sender: No OFD packet to send [19:18:19]OFD Sender: No OFD packet to send [19:18:24]OFD Sender: No OFD packet to send [19:18:29]OFD Sender: No OFD packet to send [19:18:34]accept exits with 7 [19:18:34]New connection [19:18:34]New thread 3066465636 created [19:18:34]Thread 3066608996 joined [19:18:34]Waiting for new connection... [19:18:34] Sock 7.Parse request [19:18:34]Sock 7.Check first char [19:18:34]Sock 7.First char is OK [19:18:34]request: POST /json_proto HTTP/1.0 [19:18:34]Method: POST [19:18:34]URL: /json_proto [19:18:34]Method is POST - this is cgi request [19:18:34]url: /json_proto [19:18:34]query_string will be loaded in cgi processing [19:18:34]execute_cgi json_proto POST (null) [19:18:34]execute_cgi path=json_proto method=POST [19:18:34]POST find Content-Length [19:18:34]Host: 172.17.63.195:8080 [19:18:34]Content-Length: 675 [19:18:34]Content-Type: application/json [19:18:34] [19:18:34]POST finish read [19:18:34]Found Content-Length = 675 [19:18:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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" ] } } [19:18:34]execute_script... [19:18:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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" ] } } [19:18:34]POST & json_proto [19:18:34]process_json_proto [19:18:34]json parsed OK: [19:18:34]protocol is kg_v1.0 [19:18:34]action value=close_receipt [19:18:34]process_action close_receipt [19:18:34]cmd_close_receipt [19:18:34]MH_GetDate [19:18:34]Write to MH i2c: F0 00 00 33 06 28 [19:18:34]Write i2c OK [19:18:34]MH_I2C_Read... [19:18:34]Read from MH i2c: F0 [19:18:34]MH_I2C_Read... [19:18:34]Read from MH i2c: F0 09 00 [19:18:34]MH_I2C_Read... [19:18:34]Read from MH i2c: F0 09 00 33 06 00 8A 40 1D 67 68 46 19 67 AD [19:18:34]GetLastDocTimeStamp 1729970192 [19:18:34]current date 1729970314 [19:18:34]FM_GetShiftState [19:18:34]SAM_PROTO_GetShiftState [19:18:34]wFMCommunicate request_size=4 [19:18:34]MH_SAM_APDU [19:18:34]CAPDU: 80 13 01 00 [19:18:34]Write to MH i2c: E2 08 00 34 06 80 13 01 00 00 00 00 00 B7 [19:18:34]Write i2c OK [19:18:34]MH_I2C_Read... [19:18:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:34]Read from MH i2c: E2 [19:18:34]MH_I2C_Read... [19:18:34]Read from MH i2c: E2 0E 00 [19:18:34]MH_I2C_Read... [19:18:34]Read from MH i2c: E2 0E 00 34 06 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C6 [19:18:34]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:18:34]wFMCommunicate OK [19:18:34]SAM_PROTO_GetShiftState done [19:18:34]FM_GetShiftState done [19:18:34]opened in 1729900879 [19:18:34]opened+sec_in_day 1729987279 [19:18:34]quantity*price = 100000 [19:18:34]sum+1 = 100002 [19:18:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 417 26.10.2024 19:18 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201655 ФПД: 94125410407243 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T191834&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201655&fm=94125410407243&tin=02508201610067®Number=0000000000091777&sum=100000 [19:18:35]StoreToDocumentArchive [19:18:35]shift 543 fd 201655 [19:18:35]save to /storage/0543/doc_00201655 [19:18:35]save last doc name /storage/0543/doc_00201655 to /storage/kkm_last_doc_name [19:18:35]save OK [19:18:35]Clear old archive folders... [19:18:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:18:35]tlvbuf is 0105A310 [19:18:35]SAM_PROTO_ClearQueue [19:18:35]wFMCommunicate request_size=4 [19:18:35]MH_SAM_APDU [19:18:35]CAPDU: 80 09 00 00 [19:18:35]Write to MH i2c: E2 08 00 41 06 80 09 00 00 00 00 00 00 B9 [19:18:35]Write i2c OK [19:18:35]MH_I2C_Read... [19:18:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:35]Read from MH i2c: E2 [19:18:35]MH_I2C_Read... [19:18:35]Read from MH i2c: E2 03 00 [19:18:35]MH_I2C_Read... [19:18:35]Read from MH i2c: E2 03 00 41 06 00 90 00 BB [19:18:35]RAPDU: 90 00 [19:18:35]wFMCommunicate OK [19:18:35]SAM_PROTO_ClearQueue done [19:18:35]KKMCreateOFDPacket [19:18:35]OFDProtocolAddRootSTLVToBuf [19:18:35]FM_MakeSignedData [19:18:35]FM_MakeSignedData [19:18:35]SAM_PROTO_SignData [19:18:35]wFMCommunicate request_size=4 [19:18:35]MH_SAM_APDU [19:18:35]CAPDU: 80 0D 01 02 [19:18:35]Write to MH i2c: E2 08 00 42 06 80 0D 01 02 00 00 00 00 C1 [19:18:35]Write i2c OK [19:18:35]MH_I2C_Read... [19:18:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:35]Read from MH i2c: E2 [19:18:35]MH_I2C_Read... [19:18:35]Read from MH i2c: E2 03 00 [19:18:35]MH_I2C_Read... [19:18:35]Read from MH i2c: E2 03 00 42 06 00 90 00 BC [19:18:35]RAPDU: 90 00 [19:18:35]wFMCommunicate OK [19:18:35]wFMCommunicate request_size=255 [19:18:35]MH_SAM_APDU [19:18: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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 A1 01 00 00 F4 03 04 00 8A 40 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B7 13 03 00 35 04 06 00 [19:18:35]Write to MH i2c: E2 02 01 43 06 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 A1 01 00 00 F4 03 04 00 8A 40 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B7 13 03 00 35 04 06 00 00 00 08 [19:18:35]Write i2c OK [19:18:35]MH_I2C_Read... [19:18:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:35]Read from MH i2c: E2 [19:18:35]MH_I2C_Read... [19:18:35]Read from MH i2c: E2 03 00 [19:18:35]MH_I2C_Read... [19:18:35]Read from MH i2c: E2 03 00 43 06 00 90 00 BD [19:18:35]RAPDU: 90 00 [19:18:35]wFMCommunicate OK [19:18:35]wFMCommunicate request_size=11 [19:18:35]MH_SAM_APDU [19:18:35]CAPDU: 80 0D 02 02 06 55 9B 47 A6 D3 4B [19:18:35]Write to MH i2c: E2 0E 00 44 06 80 0D 02 02 06 00 55 9B 47 A6 D3 4B 00 00 CB [19:18:35]Write i2c OK [19:18:35]MH_I2C_Read... [19:18:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:35]Read from MH i2c: E2 [19:18:35]MH_I2C_Read... [19:18:35]Read from MH i2c: E2 03 00 [19:18:35]MH_I2C_Read... [19:18:35]Read from MH i2c: E2 03 00 44 06 00 90 00 BE [19:18:35]RAPDU: 90 00 [19:18:35]wFMCommunicate OK [19:18:35]wFMCommunicate request_size=4 [19:18:35]MH_SAM_APDU [19:18:35]CAPDU: 80 0D 03 02 [19:18:35]Write to MH i2c: E2 08 00 45 06 80 0D 03 02 00 00 00 00 C6 [19:18:35]Write i2c OK [19:18:35]MH_I2C_Read... [19:18:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:35]Read from MH i2c: E2 [19:18:35]MH_I2C_Read... [19:18:35]Read from MH i2c: E2 0B 00 [19:18:35]MH_I2C_Read... [19:18:35]Read from MH i2c: E2 0B 00 45 06 00 AC 43 87 13 08 F3 2E 0E 90 00 87 [19:18:35]RAPDU: AC 43 87 13 08 F3 2E 0E 90 00 [19:18:35]wFMCommunicate OK [19:18:35]SAM_PROTO_SignData done [19:18:35]FM_MakeSignedData done [19:18:35]CreateOFDProtocolMessage [19:18:35]wFMCommunicate request_size=4 [19:18:35]MH_SAM_APDU [19:18:35]CAPDU: 80 11 00 00 [19:18:35]Write to MH i2c: E2 08 00 46 06 80 11 00 00 00 00 00 00 C6 [19:18:35]Write i2c OK [19:18:35]MH_I2C_Read... [19:18:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:35]Read from MH i2c: E2 [19:18:35]MH_I2C_Read... [19:18:35]Read from MH i2c: E2 17 00 [19:18:35]MH_I2C_Read... [19:18:35]Read from MH i2c: E2 17 00 46 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1B [19:18:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:18:35]wFMCommunicate OK [19:18:35]CreateOFDProtocolMessage done [19:18:35]OFDSenderStorePacket 201655 [19:18:35]StoreOFDPacket docnum=201655 [19:18:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 ED 02 08 01 A4 88 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 A1 01 00 00 F4 03 04 00 8A 40 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B7 13 03 00 35 04 06 00 55 9B 47 A6 D3 4B AC 43 87 13 08 F3 2E 0E [19:18:35]CheckFolder [19:18:35]dirname=/storage/ofd_packets [19:18:35]CheckFolder done [19:18:35]ProducePacketName [19:18:35]name=ofd_packets/00201655 [19:18:35]NVStorageSaveData ofd_packets/00201655 [19:18:35]File name is /storage/ofd_packets/00201655 [19:18:35]Write 302 bytes [19:18:35]NVStorageSaveData done [19:18:35]OFDSenderStorePacket done [19:18:35]KKMCreateOFDPacket done [19:18:35]NVStorageSaveData kkm_last_timestamp [19:18:35]File name is /storage/kkm_last_timestamp [19:18:35]Write 4 bytes [19:18:35]NVStorageSaveData done [19:18:35]ExternCall_PrintAddStr [19:18:35]wPrintStart [19:18:35]Write to MH i2c: 01 00 00 47 06 4D [19:18:35]Write i2c OK [19:18:35]MH_I2C_Read... [19:18:35]Read from MH i2c: 01 [19:18:35]MH_I2C_Read... [19:18:35]Read from MH i2c: 01 07 00 [19:18:35]MH_I2C_Read... [19:18:35]Read from MH i2c: 01 07 00 47 06 00 00 00 00 00 FF 0F 62 [19:18:35]RasterBufferAndPrint [19:18:35]line Счет N : (1)449412 [19:18:35]line ИНН: 02508201610067 [19:18:35]line Контрольно-Кассовый Чек [19:18:35]line ПРОДАЖА [19:18:35]line ТРК (МРК, ГНК) : 53 [19:18:35]line Товар: 2710124130 [19:18:35]line SUPER 92-К-5 [19:18:35]line 14.620 * 68.40 [19:18:35]line = 1000.01 [19:18:35]line НДС 12% НСП 1% [19:18:35]line > о реализуемом товаре [19:18:35]line ОКРУГЛЕНИЕ: -0.01 [19:18:35]line ИТОГО: 1000.00 [19:18:35]line Внесено: 1000.00 [19:18:35]line СДАЧА: 0.00 [19:18:35]line НСП 1% : 8.85 [19:18:35]line НДС 12% : 106.20 [19:18:35]line Наличными: 1000.00 [19:18:35]line Безнал.: 0.00 [19:18:35]line Место: АЗС № 171 "Партнер Нефть" [19:18:35]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:18:35]line СНО: Общий режим [19:18:35]line Чек 417 26.10.2024 19:18 [19:18:35]line Смена: 543 ФФД: 1.0 [19:18:35]line ЗНМ: 0300000109 [19:18:35]line РНМ: 0000000000091777 [19:18:35]line Версия ККМ: 001 [19:18:35]line ФМ: 0000000000871756 [19:18:35]line ФД: 201655 [19:18:35]line ФПД: 94125410407243 [19:18:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T191834&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201655&fm=94125410407243&tin=02508201610067®Number=0000000000091777&sum=100000 [19:18:36]OFD Sender: Processing packet 201655 [packets to send 112, broken 111] [19:18:36]ProducePacketName [19:18:36]name=ofd_packets/00201655 [19:18:36]OFD Sender: To server: pG, [19:18:36]CommunicateWithHost lk.salyk.kg:30040 [19:18:36]ConnectInit lk.salyk.kg [19:18:36]written 0, free lines is 4095 [19:18:36]Connected sock=10 [19:18:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 ED 02 08 01 A4 88 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 A1 01 00 00 F4 03 04 00 8A 40 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B7 13 03 00 35 04 06 00 55 9B 47 A6 D3 4B AC 43 87 13 08 F3 2E 0E [19:18:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C1 AB 47 00 44 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B7 13 03 00 F4 03 04 00 32 EC 1C 67 B6 04 01 00 00 A0 C8 CF E6 2D 03 22 0C [19:18:36]CommunicateWithHost err = 0 [19:18:36]CheckOFDResponse [19:18:36]1017 (14) - 77093643461234 [19:18:36]1041 (16) - 0000000000871756 [19:18:36]1040 (4) - 201655 [19:18:36]1012 (4) - 26.10.2024 13:18 [19:18:36]1206 (1) - 0 [19:18:36]OFD Sender: Remove packet 201655 [19:18:36]ProducePacketName [19:18:36]name=ofd_packets/00201655 [19:18:36]NVStorageDeleteData [19:18:36]Write to MH i2c: 01 00 00 72 06 78 [19:18:36]Write i2c OK [19:18:36]MH_I2C_Read... [19:18:36]Read from MH i2c: 01 [19:18:36]MH_I2C_Read... [19:18:36]Read from MH i2c: 01 07 00 [19:18:36]MH_I2C_Read... [19:18:36]Read from MH i2c: 01 07 00 72 06 00 00 00 00 00 99 0C 24 [19:18:36]RasterBufferAndPrint [19:18:36]line [19:18:36]line [19:18:36]line [19:18:36]line [19:18:36]line [19:18:36]written 0, free lines is 3231 [19:18:36]MH_Cut [19:18:36]Write to MH i2c: D1 01 00 79 06 01 51 [19:18:36]Write i2c OK [19:18:36]MH_I2C_Read... [19:18:36]Read from MH i2c: D1 [19:18:36]MH_I2C_Read... [19:18:36]Read from MH i2c: D1 01 00 [19:18:36]MH_I2C_Read... [19:18:36]Read from MH i2c: D1 01 00 79 06 00 50 [19:18:36]Write to MH i2c: 01 00 00 7A 06 80 [19:18:36]Write i2c OK [19:18:36]MH_I2C_Read... [19:18:36]OFD Sender: No OFD packet to send [19:18:37]*** Cut start [19:18:37]*** Purtial cut [19:18:37]*** Stage 1: CUTSNS_PIN = 1 [19:18:37]Read from MH i2c: 01 [19:18:37]MH_I2C_Read... [19:18:37]*** Stop cut motor [19:18:37]*** Cut end [19:18:37]Read from MH i2c: 01 07 00 [19:18:37]MH_I2C_Read... [19:18:37]Read from MH i2c: 01 07 00 7A 06 00 00 00 00 00 FF 0F 95 [19:18:37]process_action close_receipt done [19:18:37]requested_data is exist [19:18:37]produce_requested_data [19:18:37]requested_item fm.sn is exist - process it [19:18:37]wFMCommunicate request_size=4 [19:18:37]MH_SAM_APDU [19:18:37]CAPDU: 80 11 00 00 [19:18:37]Write to MH i2c: E2 08 00 7B 06 80 11 00 00 00 00 00 00 FB [19:18:37]Write i2c OK [19:18:37]MH_I2C_Read... [19:18:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:37]Read from MH i2c: E2 [19:18:37]MH_I2C_Read... [19:18:37]Read from MH i2c: E2 17 00 [19:18:37]MH_I2C_Read... [19:18:37]Read from MH i2c: E2 17 00 7B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 50 [19:18:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:18:37]wFMCommunicate OK [19:18:37]requested_item fd.num is exist - process it [19:18:37]SAM_PROTO_GetFieldsCounters [19:18:37]wFMCommunicate request_size=4 [19:18:37]MH_SAM_APDU [19:18:37]CAPDU: 80 13 00 00 [19:18:37]Write to MH i2c: E2 08 00 7C 06 80 13 00 00 00 00 00 00 FE [19:18:37]Write i2c OK [19:18:37]MH_I2C_Read... [19:18:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:37]Read from MH i2c: E2 [19:18:37]MH_I2C_Read... [19:18:37]Read from MH i2c: E2 62 00 [19:18:37]MH_I2C_Read... [19:18:37]Read from MH i2c: E2 62 00 7C 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B7 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A1 01 00 00 5E 04 04 00 A1 01 00 00 57 04 04 00 A2 01 00 00 19 04 04 00 00 00 00 00 90 00 FB [19:18:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B7 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A1 01 00 00 5E 04 04 00 A1 01 00 00 57 04 04 00 A2 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:18:37]wFMCommunicate OK [19:18:37]SAM_PROTO_GetFieldsCounters done [19:18:37]requested_item shift.num is exist - process it [19:18:37]requested_item shift.opened is exist - process it [19:18:37]req_shift_opened [19:18:37]FM_GetShiftState [19:18:37]SAM_PROTO_GetShiftState [19:18:37]wFMCommunicate request_size=4 [19:18:37]MH_SAM_APDU [19:18:37]CAPDU: 80 13 01 00 [19:18:37]Write to MH i2c: E2 08 00 7D 06 80 13 01 00 00 00 00 00 00 [19:18:37]Write i2c OK [19:18:37]MH_I2C_Read... [19:18:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:37]Read from MH i2c: E2 [19:18:37]MH_I2C_Read... [19:18:37]Read from MH i2c: E2 0E 00 [19:18:37]MH_I2C_Read... [19:18:37]Read from MH i2c: E2 0E 00 7D 06 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 0F [19:18:37]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:18:37]wFMCommunicate OK [19:18:37]SAM_PROTO_GetShiftState done [19:18:37]FM_GetShiftState done [19:18:37]req_shift_opened done [19:18:37]requested_item shift.open_date is exist - process it [19:18:37]req_shift_open_date [19:18:37]req_shift_open_date done [19:18:37]produce_requested_data done [19:18:37]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201655,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [19:18:37]process_action_free close_receipt [19:18:37]json_value_free [19:18:37]json_value_free done [19:18:37]process_json_proto returns [19:18:37]Send response to host [19:18:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201655,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [19:18:37]free response buf [19:18:37]execute_script done [19:18:37]execute_script returns [19:18:37]free content buf [19:18:37]Sock 7.Close socket [19:18:37]Sock 7.Thread stoped [19:18:41]OFD Sender: No OFD packet to send [19:18:46]OFD Sender: No OFD packet to send [19:18:51]OFD Sender: No OFD packet to send [19:18:56]OFD Sender: No OFD packet to send [19:19:01]OFD Sender: No OFD packet to send [19:19:06]OFD Sender: No OFD packet to send [19:19:11]OFD Sender: No OFD packet to send [19:19:16]OFD Sender: No OFD packet to send [19:19:21]OFD Sender: No OFD packet to send [19:19:27]OFD Sender: No OFD packet to send [19:19:32]OFD Sender: No OFD packet to send [19:19:37]OFD Sender: No OFD packet to send [19:19:42]OFD Sender: No OFD packet to send [19:19:47]OFD Sender: No OFD packet to send [19:19:52]OFD Sender: No OFD packet to send [19:19:57]OFD Sender: No OFD packet to send [19:20:02]OFD Sender: No OFD packet to send [19:20:05]accept exits with 9 [19:20:05]New connection [19:20:05]New thread 3066608996 created [19:20:05]Thread 3066465636 joined [19:20:05]Waiting for new connection... [19:20:05] Sock 9.Parse request [19:20:05]Sock 9.Check first char [19:20:05]Sock 9.First char is OK [19:20:05]request: POST /json_proto HTTP/1.0 [19:20:05]Method: POST [19:20:05]URL: /json_proto [19:20:05]Method is POST - this is cgi request [19:20:05]url: /json_proto [19:20:05]query_string will be loaded in cgi processing [19:20:05]execute_cgi json_proto POST (null) [19:20:05]execute_cgi path=json_proto method=POST [19:20:05]POST find Content-Length [19:20:05]Host: 172.17.63.195:8080 [19:20:05]Content-Length: 677 [19:20:05]Content-Type: application/json [19:20:05] [19:20:05]POST finish read [19:20:05]Found Content-Length = 677 [19:20:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [19:20:05]execute_script... [19:20: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)449413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [19:20:05]POST & json_proto [19:20:05]process_json_proto [19:20:05]json parsed OK: [19:20:05]protocol is kg_v1.0 [19:20:05]action value=close_receipt [19:20:05]process_action close_receipt [19:20:05]cmd_close_receipt [19:20:05]MH_GetDate [19:20:05]Write to MH i2c: F0 00 00 7E 06 73 [19:20:05]Write i2c OK [19:20:05]MH_I2C_Read... [19:20:05]Read from MH i2c: F0 [19:20:05]MH_I2C_Read... [19:20:05]Read from MH i2c: F0 09 00 [19:20:05]MH_I2C_Read... [19:20:05]Read from MH i2c: F0 09 00 7E 06 00 E5 40 1D 67 68 46 19 67 53 [19:20:05]GetLastDocTimeStamp 1729970314 [19:20:05]current date 1729970405 [19:20:05]FM_GetShiftState [19:20:05]SAM_PROTO_GetShiftState [19:20:05]wFMCommunicate request_size=4 [19:20:05]MH_SAM_APDU [19:20:05]CAPDU: 80 13 01 00 [19:20:05]Write to MH i2c: E2 08 00 7F 06 80 13 01 00 00 00 00 00 02 [19:20:05]Write i2c OK [19:20:05]MH_I2C_Read... [19:20:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:05]Read from MH i2c: E2 [19:20:05]MH_I2C_Read... [19:20:05]Read from MH i2c: E2 0E 00 [19:20:05]MH_I2C_Read... [19:20:05]Read from MH i2c: E2 0E 00 7F 06 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 11 [19:20:05]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:20:05]wFMCommunicate OK [19:20:05]SAM_PROTO_GetShiftState done [19:20:05]FM_GetShiftState done [19:20:05]opened in 1729900879 [19:20:05]opened+sec_in_day 1729987279 [19:20:05]quantity*price = 40006 [19:20:05]sum+1 = 40007 [19:20:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 418 26.10.2024 19:20 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201656 ФПД: 130763639134722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T192005&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201656&fm=130763639134722&tin=02508201610067®Number=0000000000091777&sum=40000 [19:20:06]StoreToDocumentArchive [19:20:06]shift 543 fd 201656 [19:20:06]save to /storage/0543/doc_00201656 [19:20:06]save last doc name /storage/0543/doc_00201656 to /storage/kkm_last_doc_name [19:20:06]save OK [19:20:06]Clear old archive folders... [19:20:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:20:06]tlvbuf is 0103C860 [19:20:06]SAM_PROTO_ClearQueue [19:20:06]wFMCommunicate request_size=4 [19:20:06]MH_SAM_APDU [19:20:06]CAPDU: 80 09 00 00 [19:20:06]Write to MH i2c: E2 08 00 8C 06 80 09 00 00 00 00 00 00 04 [19:20:06]Write i2c OK [19:20:06]MH_I2C_Read... [19:20:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:20:06]Read from MH i2c: E2 [19:20:06]MH_I2C_Read... [19:20:06]Read from MH i2c: E2 03 00 [19:20:06]MH_I2C_Read... [19:20:06]Read from MH i2c: E2 03 00 8C 06 00 90 00 06 [19:20:06]RAPDU: 90 00 [19:20:06]wFMCommunicate OK [19:20:06]SAM_PROTO_ClearQueue done [19:20:06]KKMCreateOFDPacket [19:20:06]OFDProtocolAddRootSTLVToBuf [19:20:06]FM_MakeSignedData [19:20:06]FM_MakeSignedData [19:20:06]SAM_PROTO_SignData [19:20:06]wFMCommunicate request_size=4 [19:20:06]MH_SAM_APDU [19:20:06]CAPDU: 80 0D 01 02 [19:20:06]Write to MH i2c: E2 08 00 8D 06 80 0D 01 02 00 00 00 00 0C [19:20:06]Write i2c OK [19:20:06]MH_I2C_Read... [19:20:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:20:06]Read from MH i2c: E2 [19:20:06]MH_I2C_Read... [19:20:06]Read from MH i2c: E2 03 00 [19:20:06]MH_I2C_Read... [19:20:06]Read from MH i2c: E2 03 00 8D 06 00 90 00 07 [19:20:06]RAPDU: 90 00 [19:20:06]wFMCommunicate OK [19:20:06]wFMCommunicate request_size=255 [19:20:06]MH_SAM_APDU [19:20: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 32 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 A2 01 00 00 F4 03 04 00 E5 40 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B8 13 03 00 35 04 06 00 76 [19:20:06]Write to MH i2c: E2 02 01 8E 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 32 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 A2 01 00 00 F4 03 04 00 E5 40 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B8 13 03 00 35 04 06 00 76 00 00 20 [19:20:06]Write i2c OK [19:20:06]MH_I2C_Read... [19:20:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:06]Read from MH i2c: E2 [19:20:06]MH_I2C_Read... [19:20:06]Read from MH i2c: E2 03 00 [19:20:06]MH_I2C_Read... [19:20:06]Read from MH i2c: E2 03 00 8E 06 00 90 00 08 [19:20:06]RAPDU: 90 00 [19:20:06]wFMCommunicate OK [19:20:06]wFMCommunicate request_size=10 [19:20:06]MH_SAM_APDU [19:20:06]CAPDU: 80 0D 02 02 05 ED C8 42 9A 02 [19:20:06]Write to MH i2c: E2 0D 00 8F 06 80 0D 02 02 05 00 ED C8 42 9A 02 00 00 AC [19:20:06]Write i2c OK [19:20:06]MH_I2C_Read... [19:20:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:06]Read from MH i2c: E2 [19:20:06]MH_I2C_Read... [19:20:06]Read from MH i2c: E2 03 00 [19:20:06]MH_I2C_Read... [19:20:06]Read from MH i2c: E2 03 00 8F 06 00 90 00 09 [19:20:06]RAPDU: 90 00 [19:20:06]wFMCommunicate OK [19:20:06]wFMCommunicate request_size=4 [19:20:06]MH_SAM_APDU [19:20:06]CAPDU: 80 0D 03 02 [19:20:06]Write to MH i2c: E2 08 00 90 06 80 0D 03 02 00 00 00 00 11 [19:20:06]Write i2c OK [19:20:06]MH_I2C_Read... [19:20:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:20:07]Read from MH i2c: E2 [19:20:07]MH_I2C_Read... [19:20:07]Read from MH i2c: E2 0B 00 [19:20:07]MH_I2C_Read... [19:20:07]Read from MH i2c: E2 0B 00 90 06 00 EC 2C 81 68 4B 83 9A A0 90 00 1B [19:20:07]RAPDU: EC 2C 81 68 4B 83 9A A0 90 00 [19:20:07]wFMCommunicate OK [19:20:07]SAM_PROTO_SignData done [19:20:07]FM_MakeSignedData done [19:20:07]CreateOFDProtocolMessage [19:20:07]wFMCommunicate request_size=4 [19:20:07]MH_SAM_APDU [19:20:07]CAPDU: 80 11 00 00 [19:20:07]Write to MH i2c: E2 08 00 91 06 80 11 00 00 00 00 00 00 11 [19:20:07]Write i2c OK [19:20:07]MH_I2C_Read... [19:20:07]OFD Sender: No OFD packet to send [19:20:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:07]Read from MH i2c: E2 [19:20:07]MH_I2C_Read... [19:20:07]Read from MH i2c: E2 17 00 [19:20:07]MH_I2C_Read... [19:20:07]Read from MH i2c: E2 17 00 91 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 66 [19:20:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:20:07]wFMCommunicate OK [19:20:07]CreateOFDProtocolMessage done [19:20:07]OFDSenderStorePacket 201656 [19:20:07]StoreOFDPacket docnum=201656 [19:20:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8A 3D 07 01 DB 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 32 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 A2 01 00 00 F4 03 04 00 E5 40 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B8 13 03 00 35 04 06 00 76 ED C8 42 9A 02 EC 2C 81 68 4B 83 9A A0 [19:20:07]CheckFolder [19:20:07]dirname=/storage/ofd_packets [19:20:07]CheckFolder done [19:20:07]ProducePacketName [19:20:07]name=ofd_packets/00201656 [19:20:07]NVStorageSaveData ofd_packets/00201656 [19:20:07]File name is /storage/ofd_packets/00201656 [19:20:07]Write 301 bytes [19:20:07]NVStorageSaveData done [19:20:07]OFDSenderStorePacket done [19:20:07]KKMCreateOFDPacket done [19:20:07]NVStorageSaveData kkm_last_timestamp [19:20:07]File name is /storage/kkm_last_timestamp [19:20:07]Write 4 bytes [19:20:07]NVStorageSaveData done [19:20:07]ExternCall_PrintAddStr [19:20:07]wPrintStart [19:20:07]Write to MH i2c: 01 00 00 92 06 98 [19:20:07]Write i2c OK [19:20:07]MH_I2C_Read... [19:20:07]Read from MH i2c: 01 [19:20:07]MH_I2C_Read... [19:20:07]Read from MH i2c: 01 07 00 [19:20:07]MH_I2C_Read... [19:20:07]Read from MH i2c: 01 07 00 92 06 00 00 00 00 00 FF 0F AD [19:20:07]RasterBufferAndPrint [19:20:07]line Счет N : (1)449413 [19:20:07]line ИНН: 02508201610067 [19:20:07]line Контрольно-Кассовый Чек [19:20:07]line ПРОДАЖА [19:20:07]line ТРК (МРК, ГНК) : 41 [19:20:07]line Товар: 2710124130 [19:20:07]line Аи-92-К-2 [19:20:07]line 5.980 * 66.90 [19:20:07]line = 400.06 [19:20:07]line НДС 12% НСП 1% [19:20:07]line > о реализуемом товаре [19:20:07]line ОКРУГЛЕНИЕ: -0.06 [19:20:07]line ИТОГО: 400.00 [19:20:07]line Внесено: 400.00 [19:20:07]line СДАЧА: 0.00 [19:20:07]line НСП 1% : 3.54 [19:20:07]line НДС 12% : 42.48 [19:20:07]line Наличными: 400.00 [19:20:07]line Безнал.: 0.00 [19:20:07]line Место: АЗС № 171 "Партнер Нефть" [19:20:07]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:20:07]line СНО: Общий режим [19:20:07]line Чек 418 26.10.2024 19:20 [19:20:07]line Смена: 543 ФФД: 1.0 [19:20:07]line ЗНМ: 0300000109 [19:20:07]line РНМ: 0000000000091777 [19:20:07]line Версия ККМ: 001 [19:20:07]line ФМ: 0000000000871756 [19:20:07]line ФД: 201656 [19:20:07]line ФПД: 130763639134722 [19:20:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T192005&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201656&fm=130763639134722&tin=02508201610067®Number=0000000000091777&sum=40000 [19:20:07]OFD Sender: Processing packet 201656 [packets to send 112, broken 111] [19:20:07]ProducePacketName [19:20:07]name=ofd_packets/00201656 [19:20:07]OFD Sender: To server: pG, [19:20:07]CommunicateWithHost lk.salyk.kg:30040 [19:20:07]ConnectInit lk.salyk.kg [19:20:07]written 0, free lines is 4095 [19:20:07]Connected sock=10 [19:20:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8A 3D 07 01 DB 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 32 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 A2 01 00 00 F4 03 04 00 E5 40 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B8 13 03 00 35 04 06 00 76 ED C8 42 9A 02 EC 2C 81 68 4B 83 9A A0 [19:20:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 7D 17 47 00 90 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B8 13 03 00 F4 03 04 00 8D EC 1C 67 B6 04 01 00 00 00 73 C6 7C 31 D6 14 15 [19:20:07]CommunicateWithHost err = 0 [19:20:07]CheckOFDResponse [19:20:07]1017 (14) - 77093643461234 [19:20:07]1041 (16) - 0000000000871756 [19:20:07]1040 (4) - 201656 [19:20:07]1012 (4) - 26.10.2024 13:20 [19:20:07]1206 (1) - 0 [19:20:07]OFD Sender: Remove packet 201656 [19:20:07]ProducePacketName [19:20:07]name=ofd_packets/00201656 [19:20:07]NVStorageDeleteData [19:20:07]Write to MH i2c: 01 00 00 BD 06 C3 [19:20:07]Write i2c OK [19:20:07]MH_I2C_Read... [19:20:07]Read from MH i2c: 01 [19:20:07]MH_I2C_Read... [19:20:07]Read from MH i2c: 01 07 00 [19:20:07]MH_I2C_Read... [19:20:07]Read from MH i2c: 01 07 00 BD 06 00 00 00 00 00 A7 0C 7D [19:20:07]RasterBufferAndPrint [19:20:07]line [19:20:07]line [19:20:07]line [19:20:07]line [19:20:07]line [19:20:07]written 0, free lines is 3244 [19:20:07]MH_Cut [19:20:07]Write to MH i2c: D1 01 00 C4 06 01 9C [19:20:07]Write i2c OK [19:20:07]MH_I2C_Read... [19:20:07]Read from MH i2c: D1 [19:20:07]MH_I2C_Read... [19:20:07]Read from MH i2c: D1 01 00 [19:20:07]MH_I2C_Read... [19:20:07]Read from MH i2c: D1 01 00 C4 06 00 9B [19:20:07]Write to MH i2c: 01 00 00 C5 06 CB [19:20:07]Write i2c OK [19:20:07]MH_I2C_Read... [19:20:08]OFD Sender: No OFD packet to send [19:20:08]*** Cut start [19:20:08]*** Purtial cut [19:20:08]*** Stage 1: CUTSNS_PIN = 1 [19:20:09]Read from MH i2c: 01 [19:20:09]MH_I2C_Read... [19:20:09]*** Stop cut motor [19:20:09]*** Cut end [19:20:09]Read from MH i2c: 01 07 00 [19:20:09]MH_I2C_Read... [19:20:09]Read from MH i2c: 01 07 00 C5 06 00 00 00 00 00 FF 0F E0 [19:20:09]process_action close_receipt done [19:20:09]requested_data is exist [19:20:09]produce_requested_data [19:20:09]requested_item fm.sn is exist - process it [19:20:09]wFMCommunicate request_size=4 [19:20:09]MH_SAM_APDU [19:20:09]CAPDU: 80 11 00 00 [19:20:09]Write to MH i2c: E2 08 00 C6 06 80 11 00 00 00 00 00 00 46 [19:20:09]Write i2c OK [19:20:09]MH_I2C_Read... [19:20:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:09]Read from MH i2c: E2 [19:20:09]MH_I2C_Read... [19:20:09]Read from MH i2c: E2 17 00 [19:20:09]MH_I2C_Read... [19:20:09]Read from MH i2c: E2 17 00 C6 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9B [19:20:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:20:09]wFMCommunicate OK [19:20:09]requested_item fd.num is exist - process it [19:20:09]SAM_PROTO_GetFieldsCounters [19:20:09]wFMCommunicate request_size=4 [19:20:09]MH_SAM_APDU [19:20:09]CAPDU: 80 13 00 00 [19:20:09]Write to MH i2c: E2 08 00 C7 06 80 13 00 00 00 00 00 00 49 [19:20:09]Write i2c OK [19:20:09]MH_I2C_Read... [19:20:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:20:09]Read from MH i2c: E2 [19:20:09]MH_I2C_Read... [19:20:09]Read from MH i2c: E2 62 00 [19:20:09]MH_I2C_Read... [19:20:09]Read from MH i2c: E2 62 00 C7 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B8 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A2 01 00 00 5E 04 04 00 A2 01 00 00 57 04 04 00 A3 01 00 00 19 04 04 00 00 00 00 00 90 00 4A [19:20:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B8 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A2 01 00 00 5E 04 04 00 A2 01 00 00 57 04 04 00 A3 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:20:09]wFMCommunicate OK [19:20:09]SAM_PROTO_GetFieldsCounters done [19:20:09]requested_item shift.num is exist - process it [19:20:09]requested_item shift.opened is exist - process it [19:20:09]req_shift_opened [19:20:09]FM_GetShiftState [19:20:09]SAM_PROTO_GetShiftState [19:20:09]wFMCommunicate request_size=4 [19:20:09]MH_SAM_APDU [19:20:09]CAPDU: 80 13 01 00 [19:20:09]Write to MH i2c: E2 08 00 C8 06 80 13 01 00 00 00 00 00 4B [19:20:09]Write i2c OK [19:20:09]MH_I2C_Read... [19:20:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:09]Read from MH i2c: E2 [19:20:09]MH_I2C_Read... [19:20:09]Read from MH i2c: E2 0E 00 [19:20:09]MH_I2C_Read... [19:20:09]Read from MH i2c: E2 0E 00 C8 06 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 5A [19:20:09]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:20:09]wFMCommunicate OK [19:20:09]SAM_PROTO_GetShiftState done [19:20:09]FM_GetShiftState done [19:20:09]req_shift_opened done [19:20:09]requested_item shift.open_date is exist - process it [19:20:09]req_shift_open_date [19:20:09]req_shift_open_date done [19:20:09]produce_requested_data done [19:20:09]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201656,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [19:20:09]process_action_free close_receipt [19:20:09]json_value_free [19:20:09]json_value_free done [19:20:09]process_json_proto returns [19:20:09]Send response to host [19:20:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201656,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [19:20:09]free response buf [19:20:09]execute_script done [19:20:09]execute_script returns [19:20:09]free content buf [19:20:09]Sock 9.Close socket [19:20:09]Sock 9.Thread stoped [19:20:13]OFD Sender: No OFD packet to send [19:20:18]OFD Sender: No OFD packet to send [19:20:23]OFD Sender: No OFD packet to send [19:20:28]OFD Sender: No OFD packet to send [19:20:33]OFD Sender: No OFD packet to send [19:20:38]OFD Sender: No OFD packet to send [19:20:43]OFD Sender: No OFD packet to send [19:20:48]OFD Sender: No OFD packet to send [19:20:53]OFD Sender: No OFD packet to send [19:20:58]OFD Sender: No OFD packet to send [19:21:03]OFD Sender: No OFD packet to send [19:21:08]OFD Sender: No OFD packet to send [19:21:13]OFD Sender: No OFD packet to send [19:21:18]OFD Sender: No OFD packet to send [19:21:23]OFD Sender: No OFD packet to send [19:21:28]OFD Sender: No OFD packet to send [19:21:33]OFD Sender: No OFD packet to send [19:21:38]OFD Sender: No OFD packet to send [19:21:43]OFD Sender: No OFD packet to send [19:21:48]OFD Sender: No OFD packet to send [19:21:53]OFD Sender: No OFD packet to send [19:21:53]accept exits with 7 [19:21:53]New connection [19:21:53]New thread 3066465636 created [19:21:53]Thread 3066608996 joined [19:21:53]Waiting for new connection... [19:21:53] Sock 7.Parse request [19:21:53]Sock 7.Check first char [19:21:53]Sock 7.First char is OK [19:21:53]request: POST /json_proto HTTP/1.0 [19:21:53]Method: POST [19:21:53]URL: /json_proto [19:21:53]Method is POST - this is cgi request [19:21:53]url: /json_proto [19:21:53]query_string will be loaded in cgi processing [19:21:53]execute_cgi json_proto POST (null) [19:21:53]execute_cgi path=json_proto method=POST [19:21:53]POST find Content-Length [19:21:53]Host: 172.17.63.195:8080 [19:21:53]Content-Length: 682 [19:21:53]Content-Type: application/json [19:21:53] [19:21:53]POST finish read [19:21:53]Found Content-Length = 682 [19:21:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [19:21:53]execute_script... [19:21:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [19:21:53]POST & json_proto [19:21:53]process_json_proto [19:21:53]json parsed OK: [19:21:53]protocol is kg_v1.0 [19:21:53]action value=close_receipt [19:21:53]process_action close_receipt [19:21:53]cmd_close_receipt [19:21:53]MH_GetDate [19:21:53]Write to MH i2c: F0 00 00 C9 06 BE [19:21:53]Write i2c OK [19:21:53]MH_I2C_Read... [19:21:53]Read from MH i2c: F0 [19:21:53]MH_I2C_Read... [19:21:53]Read from MH i2c: F0 09 00 [19:21:53]MH_I2C_Read... [19:21:53]Read from MH i2c: F0 09 00 C9 06 00 52 41 1D 67 68 46 19 67 0C [19:21:53]GetLastDocTimeStamp 1729970405 [19:21:53]current date 1729970514 [19:21:53]FM_GetShiftState [19:21:53]SAM_PROTO_GetShiftState [19:21:53]wFMCommunicate request_size=4 [19:21:53]MH_SAM_APDU [19:21:53]CAPDU: 80 13 01 00 [19:21:53]Write to MH i2c: E2 08 00 CA 06 80 13 01 00 00 00 00 00 4D [19:21:53]Write i2c OK [19:21:53]MH_I2C_Read... [19:21:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:53]Read from MH i2c: E2 [19:21:53]MH_I2C_Read... [19:21:53]Read from MH i2c: E2 0E 00 [19:21:53]MH_I2C_Read... [19:21:53]Read from MH i2c: E2 0E 00 CA 06 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 5C [19:21:53]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:21:53]wFMCommunicate OK [19:21:53]SAM_PROTO_GetShiftState done [19:21:53]FM_GetShiftState done [19:21:53]opened in 1729900879 [19:21:53]opened+sec_in_day 1729987279 [19:21:53]quantity*price = 100015 [19:21:53]sum+1 = 100017 [19:21:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 419 26.10.2024 19:21 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201657 ФПД: 8324138084948 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T192154&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201657&fm=8324138084948&tin=02508201610067®Number=0000000000091777&sum=100000 [19:21:55]StoreToDocumentArchive [19:21:55]shift 543 fd 201657 [19:21:55]save to /storage/0543/doc_00201657 [19:21:55]save last doc name /storage/0543/doc_00201657 to /storage/kkm_last_doc_name [19:21:55]save OK [19:21:55]Clear old archive folders... [19:21:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:21:55]tlvbuf is 0103E0C0 [19:21:55]SAM_PROTO_ClearQueue [19:21:55]wFMCommunicate request_size=4 [19:21:55]MH_SAM_APDU [19:21:55]CAPDU: 80 09 00 00 [19:21:55]Write to MH i2c: E2 08 00 D7 06 80 09 00 00 00 00 00 00 4F [19:21:55]Write i2c OK [19:21:55]MH_I2C_Read... [19:21:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:55]Read from MH i2c: E2 [19:21:55]MH_I2C_Read... [19:21:55]Read from MH i2c: E2 03 00 [19:21:55]MH_I2C_Read... [19:21:55]Read from MH i2c: E2 03 00 D7 06 00 90 00 51 [19:21:55]RAPDU: 90 00 [19:21:55]wFMCommunicate OK [19:21:55]SAM_PROTO_ClearQueue done [19:21:55]KKMCreateOFDPacket [19:21:55]OFDProtocolAddRootSTLVToBuf [19:21:55]FM_MakeSignedData [19:21:55]FM_MakeSignedData [19:21:55]SAM_PROTO_SignData [19:21:55]wFMCommunicate request_size=4 [19:21:55]MH_SAM_APDU [19:21:55]CAPDU: 80 0D 01 02 [19:21:55]Write to MH i2c: E2 08 00 D8 06 80 0D 01 02 00 00 00 00 57 [19:21:55]Write i2c OK [19:21:55]MH_I2C_Read... [19:21:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:55]Read from MH i2c: E2 [19:21:55]MH_I2C_Read... [19:21:55]Read from MH i2c: E2 03 00 [19:21:55]MH_I2C_Read... [19:21:55]Read from MH i2c: E2 03 00 D8 06 00 90 00 52 [19:21:55]RAPDU: 90 00 [19:21:55]wFMCommunicate OK [19:21:55]wFMCommunicate request_size=255 [19:21:55]MH_SAM_APDU [19:21:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 A3 01 00 00 F4 03 04 00 52 41 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B9 13 03 00 35 04 06 00 07 [19:21:55]Write to MH i2c: E2 02 01 D9 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 32 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 A3 01 00 00 F4 03 04 00 52 41 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B9 13 03 00 35 04 06 00 07 00 00 97 [19:21:55]Write i2c OK [19:21:55]MH_I2C_Read... [19:21:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:55]Read from MH i2c: E2 [19:21:55]MH_I2C_Read... [19:21:55]Read from MH i2c: E2 03 00 [19:21:55]MH_I2C_Read... [19:21:55]Read from MH i2c: E2 03 00 D9 06 00 90 00 53 [19:21:55]RAPDU: 90 00 [19:21:55]wFMCommunicate OK [19:21:55]wFMCommunicate request_size=10 [19:21:55]MH_SAM_APDU [19:21:55]CAPDU: 80 0D 02 02 05 92 1D 4B 2A 54 [19:21:55]Write to MH i2c: E2 0D 00 DA 06 80 0D 02 02 05 00 92 1D 4B 2A 54 00 00 DC [19:21:55]Write i2c OK [19:21:55]MH_I2C_Read... [19:21:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:55]Read from MH i2c: E2 [19:21:55]MH_I2C_Read... [19:21:55]Read from MH i2c: E2 03 00 [19:21:55]MH_I2C_Read... [19:21:55]Read from MH i2c: E2 03 00 DA 06 00 90 00 54 [19:21:55]RAPDU: 90 00 [19:21:55]wFMCommunicate OK [19:21:55]wFMCommunicate request_size=4 [19:21:55]MH_SAM_APDU [19:21:55]CAPDU: 80 0D 03 02 [19:21:55]Write to MH i2c: E2 08 00 DB 06 80 0D 03 02 00 00 00 00 5C [19:21:55]Write i2c OK [19:21:55]MH_I2C_Read... [19:21:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:55]Read from MH i2c: E2 [19:21:55]MH_I2C_Read... [19:21:55]Read from MH i2c: E2 0B 00 [19:21:55]MH_I2C_Read... [19:21:55]Read from MH i2c: E2 0B 00 DB 06 00 FB AF 5F BE F1 E5 B5 B4 90 00 63 [19:21:55]RAPDU: FB AF 5F BE F1 E5 B5 B4 90 00 [19:21:55]wFMCommunicate OK [19:21:55]SAM_PROTO_SignData done [19:21:55]FM_MakeSignedData done [19:21:55]CreateOFDProtocolMessage [19:21:55]wFMCommunicate request_size=4 [19:21:55]MH_SAM_APDU [19:21:55]CAPDU: 80 11 00 00 [19:21:55]Write to MH i2c: E2 08 00 DC 06 80 11 00 00 00 00 00 00 5C [19:21:55]Write i2c OK [19:21:55]MH_I2C_Read... [19:21:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:55]Read from MH i2c: E2 [19:21:55]MH_I2C_Read... [19:21:55]Read from MH i2c: E2 17 00 [19:21:55]MH_I2C_Read... [19:21:55]Read from MH i2c: E2 17 00 DC 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B1 [19:21:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:21:55]wFMCommunicate OK [19:21:55]CreateOFDProtocolMessage done [19:21:55]OFDSenderStorePacket 201657 [19:21:55]StoreOFDPacket docnum=201657 [19:21:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 65 F5 07 01 BB 9F 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 32 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 A3 01 00 00 F4 03 04 00 52 41 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B9 13 03 00 35 04 06 00 07 92 1D 4B 2A 54 FB AF 5F BE F1 E5 B5 B4 [19:21:55]CheckFolder [19:21:55]dirname=/storage/ofd_packets [19:21:55]CheckFolder done [19:21:55]ProducePacketName [19:21:55]name=ofd_packets/00201657 [19:21:55]NVStorageSaveData ofd_packets/00201657 [19:21:55]File name is /storage/ofd_packets/00201657 [19:21:55]Write 301 bytes [19:21:55]NVStorageSaveData done [19:21:55]OFDSenderStorePacket done [19:21:55]KKMCreateOFDPacket done [19:21:55]NVStorageSaveData kkm_last_timestamp [19:21:55]File name is /storage/kkm_last_timestamp [19:21:55]Write 4 bytes [19:21:55]NVStorageSaveData done [19:21:55]ExternCall_PrintAddStr [19:21:55]wPrintStart [19:21:55]Write to MH i2c: 01 00 00 DD 06 E3 [19:21:55]Write i2c OK [19:21:55]MH_I2C_Read... [19:21:55]Read from MH i2c: 01 [19:21:55]MH_I2C_Read... [19:21:55]Read from MH i2c: 01 07 00 [19:21:55]MH_I2C_Read... [19:21:55]Read from MH i2c: 01 07 00 DD 06 00 00 00 00 00 FF 0F F8 [19:21:55]RasterBufferAndPrint [19:21:55]line Счет N : (1)449414 [19:21:55]line ИНН: 02508201610067 [19:21:55]line Контрольно-Кассовый Чек [19:21:55]line ПРОДАЖА [19:21:55]line ТРК (МРК, ГНК) : 52 [19:21:55]line Товар: 2710124130 [19:21:55]line Аи-92-К-2 [19:21:55]line 14.950 * 66.90 [19:21:55]line = 1000.16 [19:21:55]line НДС 12% НСП 1% [19:21:55]line > о реализуемом товаре [19:21:55]line ОКРУГЛЕНИЕ: -0.16 [19:21:55]line ИТОГО: 1000.00 [19:21:55]line Внесено: 1000.00 [19:21:55]line СДАЧА: 0.00 [19:21:55]line НСП 1% : 8.85 [19:21:55]line НДС 12% : 106.21 [19:21:55]line Наличными: 1000.00 [19:21:55]line Безнал.: 0.00 [19:21:55]line Место: АЗС № 171 "Партнер Нефть" [19:21:55]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:21:55]line СНО: Общий режим [19:21:55]line Чек 419 26.10.2024 19:21 [19:21:55]line Смена: 543 ФФД: 1.0 [19:21:55]line ЗНМ: 0300000109 [19:21:55]line РНМ: 0000000000091777 [19:21:55]line Версия ККМ: 001 [19:21:55]line ФМ: 0000000000871756 [19:21:55]line ФД: 201657 [19:21:55]line ФПД: 8324138084948 [19:21:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T192154&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201657&fm=8324138084948&tin=02508201610067®Number=0000000000091777&sum=100000 [19:21:55]OFD Sender: Processing packet 201657 [packets to send 112, broken 111] [19:21:55]ProducePacketName [19:21:55]name=ofd_packets/00201657 [19:21:55]OFD Sender: To server: pG, [19:21:55]CommunicateWithHost lk.salyk.kg:30040 [19:21:55]ConnectInit lk.salyk.kg [19:21:55]written 0, free lines is 4095 [19:21:56]Connected sock=10 [19:21:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 65 F5 07 01 BB 9F 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 32 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 A3 01 00 00 F4 03 04 00 52 41 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B9 13 03 00 35 04 06 00 07 92 1D 4B 2A 54 FB AF 5F BE F1 E5 B5 B4 [19:21:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 10 31 47 00 7F 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 B9 13 03 00 F4 03 04 00 FA EC 1C 67 B6 04 01 00 00 11 4C 0A 6F 39 A2 5D 45 [19:21:56]CommunicateWithHost err = 0 [19:21:56]CheckOFDResponse [19:21:56]1017 (14) - 77093643461234 [19:21:56]1041 (16) - 0000000000871756 [19:21:56]1040 (4) - 201657 [19:21:56]1012 (4) - 26.10.2024 13:22 [19:21:56]1206 (1) - 0 [19:21:56]OFD Sender: Remove packet 201657 [19:21:56]ProducePacketName [19:21:56]name=ofd_packets/00201657 [19:21:56]NVStorageDeleteData [19:21:56]Write to MH i2c: 01 00 00 08 07 0F [19:21:56]Write i2c OK [19:21:56]MH_I2C_Read... [19:21:56]Read from MH i2c: 01 [19:21:56]MH_I2C_Read... [19:21:56]Read from MH i2c: 01 07 00 [19:21:56]MH_I2C_Read... [19:21:56]Read from MH i2c: 01 07 00 08 07 00 00 00 00 00 A4 0C C6 [19:21:56]RasterBufferAndPrint [19:21:56]line [19:21:56]line [19:21:56]line [19:21:56]line [19:21:56]line [19:21:56]written 0, free lines is 3241 [19:21:56]MH_Cut [19:21:56]Write to MH i2c: D1 01 00 0F 07 01 E8 [19:21:56]Write i2c OK [19:21:56]MH_I2C_Read... [19:21:56]Read from MH i2c: D1 [19:21:56]MH_I2C_Read... [19:21:56]Read from MH i2c: D1 01 00 [19:21:56]MH_I2C_Read... [19:21:56]Read from MH i2c: D1 01 00 0F 07 00 E7 [19:21:56]Write to MH i2c: 01 00 00 10 07 17 [19:21:56]Write i2c OK [19:21:56]MH_I2C_Read... [19:21:56]OFD Sender: No OFD packet to send [19:21:57]*** Cut start [19:21:57]*** Purtial cut [19:21:57]*** Stage 1: CUTSNS_PIN = 1 [19:21:57]Read from MH i2c: 01 [19:21:57]MH_I2C_Read... [19:21:57]*** Stop cut motor [19:21:57]*** Cut end [19:21:57]Read from MH i2c: 01 07 00 [19:21:57]MH_I2C_Read... [19:21:57]Read from MH i2c: 01 07 00 10 07 00 00 00 00 00 FF 0F 2C [19:21:57]process_action close_receipt done [19:21:57]requested_data is exist [19:21:57]produce_requested_data [19:21:57]requested_item fm.sn is exist - process it [19:21:57]wFMCommunicate request_size=4 [19:21:57]MH_SAM_APDU [19:21:57]CAPDU: 80 11 00 00 [19:21:57]Write to MH i2c: E2 08 00 11 07 80 11 00 00 00 00 00 00 92 [19:21:57]Write i2c OK [19:21:57]MH_I2C_Read... [19:21:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:57]Read from MH i2c: E2 [19:21:57]MH_I2C_Read... [19:21:57]Read from MH i2c: E2 17 00 [19:21:57]MH_I2C_Read... [19:21:57]Read from MH i2c: E2 17 00 11 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E7 [19:21:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:21:57]wFMCommunicate OK [19:21:57]requested_item fd.num is exist - process it [19:21:57]SAM_PROTO_GetFieldsCounters [19:21:57]wFMCommunicate request_size=4 [19:21:57]MH_SAM_APDU [19:21:57]CAPDU: 80 13 00 00 [19:21:57]Write to MH i2c: E2 08 00 12 07 80 13 00 00 00 00 00 00 95 [19:21:57]Write i2c OK [19:21:57]MH_I2C_Read... [19:21:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:57]Read from MH i2c: E2 [19:21:57]MH_I2C_Read... [19:21:57]Read from MH i2c: E2 62 00 [19:21:57]MH_I2C_Read... [19:21:57]Read from MH i2c: E2 62 00 12 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B9 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A3 01 00 00 5E 04 04 00 A3 01 00 00 57 04 04 00 A4 01 00 00 19 04 04 00 00 00 00 00 90 00 9A [19:21:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 B9 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A3 01 00 00 5E 04 04 00 A3 01 00 00 57 04 04 00 A4 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:21:57]wFMCommunicate OK [19:21:57]SAM_PROTO_GetFieldsCounters done [19:21:57]requested_item shift.num is exist - process it [19:21:57]requested_item shift.opened is exist - process it [19:21:57]req_shift_opened [19:21:57]FM_GetShiftState [19:21:57]SAM_PROTO_GetShiftState [19:21:57]wFMCommunicate request_size=4 [19:21:57]MH_SAM_APDU [19:21:57]CAPDU: 80 13 01 00 [19:21:57]Write to MH i2c: E2 08 00 13 07 80 13 01 00 00 00 00 00 97 [19:21:57]Write i2c OK [19:21:57]MH_I2C_Read... [19:21:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:57]Read from MH i2c: E2 [19:21:57]MH_I2C_Read... [19:21:57]Read from MH i2c: E2 0E 00 [19:21:57]MH_I2C_Read... [19:21:57]Read from MH i2c: E2 0E 00 13 07 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 A6 [19:21:57]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:21:57]wFMCommunicate OK [19:21:57]SAM_PROTO_GetShiftState done [19:21:57]FM_GetShiftState done [19:21:57]req_shift_opened done [19:21:57]requested_item shift.open_date is exist - process it [19:21:57]req_shift_open_date [19:21:57]req_shift_open_date done [19:21:57]produce_requested_data done [19:21:57]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201657,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [19:21:57]process_action_free close_receipt [19:21:57]json_value_free [19:21:57]json_value_free done [19:21:57]process_json_proto returns [19:21:57]Send response to host [19:21:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201657,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [19:21:57]free response buf [19:21:57]execute_script done [19:21:57]execute_script returns [19:21:57]free content buf [19:21:57]Sock 7.Close socket [19:21:57]Sock 7.Thread stoped [19:21:58]accept exits with 9 [19:21:58]New connection [19:21:58]New thread 3066608996 created [19:21:58]Thread 3066465636 joined [19:21:58]Waiting for new connection... [19:21:58] Sock 9.Parse request [19:21:58]Sock 9.Check first char [19:21:58]Sock 9.First char is OK [19:21:58]request: POST /json_proto HTTP/1.0 [19:21:58]Method: POST [19:21:58]URL: /json_proto [19:21:58]Method is POST - this is cgi request [19:21:58]url: /json_proto [19:21:58]query_string will be loaded in cgi processing [19:21:58]execute_cgi json_proto POST (null) [19:21:58]execute_cgi path=json_proto method=POST [19:21:58]POST find Content-Length [19:21:58]Host: 172.17.63.195:8080 [19:21:58]Content-Length: 677 [19:21:58]Content-Type: application/json [19:21:58] [19:21:58]POST finish read [19:21:58]Found Content-Length = 677 [19:21:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:58]execute_script... [19:21:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:58]POST & json_proto [19:21:58]process_json_proto [19:21:58]json parsed OK: [19:21:58]protocol is kg_v1.0 [19:21:58]action value=close_receipt [19:21:58]process_action close_receipt [19:21:58]cmd_close_receipt [19:21:58]MH_GetDate [19:21:58]Write to MH i2c: F0 00 00 14 07 0A [19:21:58]Write i2c OK [19:21:58]MH_I2C_Read... [19:21:58]Read from MH i2c: F0 [19:21:58]MH_I2C_Read... [19:21:58]Read from MH i2c: F0 09 00 [19:21:58]MH_I2C_Read... [19:21:58]Read from MH i2c: F0 09 00 14 07 00 56 41 1D 67 68 46 19 67 5C [19:21:58]GetLastDocTimeStamp 1729970514 [19:21:58]current date 1729970518 [19:21:58]FM_GetShiftState [19:21:58]SAM_PROTO_GetShiftState [19:21:58]wFMCommunicate request_size=4 [19:21:58]MH_SAM_APDU [19:21:58]CAPDU: 80 13 01 00 [19:21:58]Write to MH i2c: E2 08 00 15 07 80 13 01 00 00 00 00 00 99 [19:21:58]Write i2c OK [19:21:58]MH_I2C_Read... [19:21:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:58]Read from MH i2c: E2 [19:21:58]MH_I2C_Read... [19:21:58]Read from MH i2c: E2 0E 00 [19:21:58]MH_I2C_Read... [19:21:58]Read from MH i2c: E2 0E 00 15 07 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 A8 [19:21:58]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:21:58]wFMCommunicate OK [19:21:58]SAM_PROTO_GetShiftState done [19:21:58]FM_GetShiftState done [19:21:58]opened in 1729900879 [19:21:58]opened+sec_in_day 1729987279 [19:21:58]quantity*price = 30038 [19:21:58]sum+1 = 30039 [19:21:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 420 26.10.2024 19:21 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201658 ФПД: 200042473403416 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T192158&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201658&fm=200042473403416&tin=02508201610067®Number=0000000000091777&sum=30000 [19:21:59]StoreToDocumentArchive [19:21:59]shift 543 fd 201658 [19:21:59]save to /storage/0543/doc_00201658 [19:21:59]save last doc name /storage/0543/doc_00201658 to /storage/kkm_last_doc_name [19:21:59]save OK [19:21:59]Clear old archive folders... [19:21:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:21:59]tlvbuf is 0106E310 [19:21:59]SAM_PROTO_ClearQueue [19:21:59]wFMCommunicate request_size=4 [19:21:59]MH_SAM_APDU [19:21:59]CAPDU: 80 09 00 00 [19:21:59]Write to MH i2c: E2 08 00 22 07 80 09 00 00 00 00 00 00 9B [19:21:59]Write i2c OK [19:21:59]MH_I2C_Read... [19:21:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:59]Read from MH i2c: E2 [19:21:59]MH_I2C_Read... [19:21:59]Read from MH i2c: E2 03 00 [19:21:59]MH_I2C_Read... [19:21:59]Read from MH i2c: E2 03 00 22 07 00 90 00 9D [19:21:59]RAPDU: 90 00 [19:21:59]wFMCommunicate OK [19:21:59]SAM_PROTO_ClearQueue done [19:21:59]KKMCreateOFDPacket [19:21:59]OFDProtocolAddRootSTLVToBuf [19:21:59]FM_MakeSignedData [19:21:59]FM_MakeSignedData [19:21:59]SAM_PROTO_SignData [19:21:59]wFMCommunicate request_size=4 [19:21:59]MH_SAM_APDU [19:21:59]CAPDU: 80 0D 01 02 [19:21:59]Write to MH i2c: E2 08 00 23 07 80 0D 01 02 00 00 00 00 A3 [19:21:59]Write i2c OK [19:21:59]MH_I2C_Read... [19:21:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:59]Read from MH i2c: E2 [19:21:59]MH_I2C_Read... [19:21:59]Read from MH i2c: E2 03 00 [19:21:59]MH_I2C_Read... [19:21:59]Read from MH i2c: E2 03 00 23 07 00 90 00 9E [19:21:59]RAPDU: 90 00 [19:21:59]wFMCommunicate OK [19:21:59]wFMCommunicate request_size=255 [19:21:59]MH_SAM_APDU [19:21: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 01 00 00 F4 03 04 00 56 41 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BA 13 03 00 35 04 06 00 B5 [19:21:59]Write to MH i2c: E2 02 01 24 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 01 00 00 F4 03 04 00 56 41 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BA 13 03 00 35 04 06 00 B5 00 00 91 [19:21:59]Write i2c OK [19:21:59]MH_I2C_Read... [19:22:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:00]Read from MH i2c: E2 [19:22:00]MH_I2C_Read... [19:22:00]Read from MH i2c: E2 03 00 [19:22:00]MH_I2C_Read... [19:22:00]Read from MH i2c: E2 03 00 24 07 00 90 00 9F [19:22:00]RAPDU: 90 00 [19:22:00]wFMCommunicate OK [19:22:00]wFMCommunicate request_size=10 [19:22:00]MH_SAM_APDU [19:22:00]CAPDU: 80 0D 02 02 05 F0 04 91 34 18 [19:22:00]Write to MH i2c: E2 0D 00 25 07 80 0D 02 02 05 00 F0 04 91 34 18 00 00 81 [19:22:00]Write i2c OK [19:22:00]MH_I2C_Read... [19:22:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:00]Read from MH i2c: E2 [19:22:00]MH_I2C_Read... [19:22:00]Read from MH i2c: E2 03 00 [19:22:00]MH_I2C_Read... [19:22:00]Read from MH i2c: E2 03 00 25 07 00 90 00 A0 [19:22:00]RAPDU: 90 00 [19:22:00]wFMCommunicate OK [19:22:00]wFMCommunicate request_size=4 [19:22:00]MH_SAM_APDU [19:22:00]CAPDU: 80 0D 03 02 [19:22:00]Write to MH i2c: E2 08 00 26 07 80 0D 03 02 00 00 00 00 A8 [19:22:00]Write i2c OK [19:22:00]MH_I2C_Read... [19:22:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:22:00]Read from MH i2c: E2 [19:22:00]MH_I2C_Read... [19:22:00]Read from MH i2c: E2 0B 00 [19:22:00]MH_I2C_Read... [19:22:00]Read from MH i2c: E2 0B 00 26 07 00 08 01 01 F4 EA 4B 4C D9 90 00 01 [19:22:00]RAPDU: 08 01 01 F4 EA 4B 4C D9 90 00 [19:22:00]wFMCommunicate OK [19:22:00]SAM_PROTO_SignData done [19:22:00]FM_MakeSignedData done [19:22:00]CreateOFDProtocolMessage [19:22:00]wFMCommunicate request_size=4 [19:22:00]MH_SAM_APDU [19:22:00]CAPDU: 80 11 00 00 [19:22:00]Write to MH i2c: E2 08 00 27 07 80 11 00 00 00 00 00 00 A8 [19:22:00]Write i2c OK [19:22:00]MH_I2C_Read... [19:22:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:00]Read from MH i2c: E2 [19:22:00]MH_I2C_Read... [19:22:00]Read from MH i2c: E2 17 00 [19:22:00]MH_I2C_Read... [19:22:00]Read from MH i2c: E2 17 00 27 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FD [19:22:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:22:00]wFMCommunicate OK [19:22:00]CreateOFDProtocolMessage done [19:22:00]OFDSenderStorePacket 201658 [19:22:00]StoreOFDPacket docnum=201658 [19:22:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 07 4F 07 01 18 EB 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 01 00 00 F4 03 04 00 56 41 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BA 13 03 00 35 04 06 00 B5 F0 04 91 34 18 08 01 01 F4 EA 4B 4C D9 [19:22:00]CheckFolder [19:22:00]dirname=/storage/ofd_packets [19:22:00]CheckFolder done [19:22:00]ProducePacketName [19:22:00]name=ofd_packets/00201658 [19:22:00]NVStorageSaveData ofd_packets/00201658 [19:22:00]File name is /storage/ofd_packets/00201658 [19:22:00]Write 301 bytes [19:22:00]NVStorageSaveData done [19:22:00]OFDSenderStorePacket done [19:22:00]KKMCreateOFDPacket done [19:22:00]NVStorageSaveData kkm_last_timestamp [19:22:00]File name is /storage/kkm_last_timestamp [19:22:00]Write 4 bytes [19:22:00]NVStorageSaveData done [19:22:00]ExternCall_PrintAddStr [19:22:00]wPrintStart [19:22:00]Write to MH i2c: 01 00 00 28 07 2F [19:22:00]Write i2c OK [19:22:00]MH_I2C_Read... [19:22:00]Read from MH i2c: 01 [19:22:00]MH_I2C_Read... [19:22:00]Read from MH i2c: 01 07 00 [19:22:00]MH_I2C_Read... [19:22:00]Read from MH i2c: 01 07 00 28 07 00 00 00 00 00 FF 0F 44 [19:22:00]RasterBufferAndPrint [19:22:00]line Счет N : (1)449415 [19:22:00]line ИНН: 02508201610067 [19:22:00]line Контрольно-Кассовый Чек [19:22:00]line ПРОДАЖА [19:22:00]line ТРК (МРК, ГНК) : 31 [19:22:00]line Товар: 2710124130 [19:22:00]line Аи-92-К-2 [19:22:00]line 4.490 * 66.90 [19:22:00]line = 300.38 [19:22:00]line НДС 12% НСП 1% [19:22:00]line > о реализуемом товаре [19:22:00]line ОКРУГЛЕНИЕ: -0.38 [19:22:00]line ИТОГО: 300.00 [19:22:00]line Внесено: 300.00 [19:22:00]line СДАЧА: 0.00 [19:22:00]line НСП 1% : 2.66 [19:22:00]line НДС 12% : 31.90 [19:22:00]line Наличными: 300.00 [19:22:00]line Безнал.: 0.00 [19:22:00]line Место: АЗС № 171 "Партнер Нефть" [19:22:00]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:22:00]line СНО: Общий режим [19:22:00]line Чек 420 26.10.2024 19:21 [19:22:00]line Смена: 543 ФФД: 1.0 [19:22:00]line ЗНМ: 0300000109 [19:22:00]line РНМ: 0000000000091777 [19:22:00]line Версия ККМ: 001 [19:22:00]line ФМ: 0000000000871756 [19:22:00]line ФД: 201658 [19:22:00]line ФПД: 200042473403416 [19:22:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T192158&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201658&fm=200042473403416&tin=02508201610067®Number=0000000000091777&sum=30000 [19:22:00]OFD Sender: Processing packet 201658 [packets to send 112, broken 111] [19:22:00]ProducePacketName [19:22:00]name=ofd_packets/00201658 [19:22:00]OFD Sender: To server: pG, [19:22:00]CommunicateWithHost lk.salyk.kg:30040 [19:22:00]ConnectInit lk.salyk.kg [19:22:00]written 0, free lines is 4095 [19:22:00]Connected sock=10 [19:22:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 07 4F 07 01 18 EB 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 01 00 00 F4 03 04 00 56 41 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BA 13 03 00 35 04 06 00 B5 F0 04 91 34 18 08 01 01 F4 EA 4B 4C D9 [19:22:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 DE 35 47 00 1D C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BA 13 03 00 F4 03 04 00 FF EC 1C 67 B6 04 01 00 00 D5 0D 7F 97 FD 3E FF 9A [19:22:00]CommunicateWithHost err = 0 [19:22:00]CheckOFDResponse [19:22:00]1017 (14) - 77093643461234 [19:22:00]1041 (16) - 0000000000871756 [19:22:00]1040 (4) - 201658 [19:22:00]1012 (4) - 26.10.2024 13:22 [19:22:00]1206 (1) - 0 [19:22:00]OFD Sender: Remove packet 201658 [19:22:00]ProducePacketName [19:22:00]name=ofd_packets/00201658 [19:22:00]NVStorageDeleteData [19:22:01]Write to MH i2c: 01 00 00 53 07 5A [19:22:01]Write i2c OK [19:22:01]MH_I2C_Read... [19:22:01]Read from MH i2c: 01 [19:22:01]MH_I2C_Read... [19:22:01]Read from MH i2c: 01 07 00 [19:22:01]MH_I2C_Read... [19:22:01]Read from MH i2c: 01 07 00 53 07 00 00 00 00 00 AA 0C 17 [19:22:01]RasterBufferAndPrint [19:22:01]line [19:22:01]line [19:22:01]line [19:22:01]line [19:22:01]line [19:22:01]written 0, free lines is 3254 [19:22:01]MH_Cut [19:22:01]Write to MH i2c: D1 01 00 5A 07 01 33 [19:22:01]Write i2c OK [19:22:01]MH_I2C_Read... [19:22:01]Read from MH i2c: D1 [19:22:01]MH_I2C_Read... [19:22:01]Read from MH i2c: D1 01 00 [19:22:01]MH_I2C_Read... [19:22:01]Read from MH i2c: D1 01 00 5A 07 00 32 [19:22:01]Write to MH i2c: 01 00 00 5B 07 62 [19:22:01]Write i2c OK [19:22:01]MH_I2C_Read... [19:22:01]OFD Sender: No OFD packet to send [19:22:01]*** Cut start [19:22:01]*** Purtial cut [19:22:01]*** Stage 1: CUTSNS_PIN = 1 [19:22:02]Read from MH i2c: 01 [19:22:02]MH_I2C_Read... [19:22:02]*** Stop cut motor [19:22:02]*** Cut end [19:22:02]Read from MH i2c: 01 07 00 [19:22:02]MH_I2C_Read... [19:22:02]Read from MH i2c: 01 07 00 5B 07 00 00 00 00 00 FF 0F 77 [19:22:02]process_action close_receipt done [19:22:02]requested_data is exist [19:22:02]produce_requested_data [19:22:02]requested_item fm.sn is exist - process it [19:22:02]wFMCommunicate request_size=4 [19:22:02]MH_SAM_APDU [19:22:02]CAPDU: 80 11 00 00 [19:22:02]Write to MH i2c: E2 08 00 5C 07 80 11 00 00 00 00 00 00 DD [19:22:02]Write i2c OK [19:22:02]MH_I2C_Read... [19:22:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:02]Read from MH i2c: E2 [19:22:02]MH_I2C_Read... [19:22:02]Read from MH i2c: E2 17 00 [19:22:02]MH_I2C_Read... [19:22:02]Read from MH i2c: E2 17 00 5C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 32 [19:22:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:22:02]wFMCommunicate OK [19:22:02]requested_item fd.num is exist - process it [19:22:02]SAM_PROTO_GetFieldsCounters [19:22:02]wFMCommunicate request_size=4 [19:22:02]MH_SAM_APDU [19:22:02]CAPDU: 80 13 00 00 [19:22:02]Write to MH i2c: E2 08 00 5D 07 80 13 00 00 00 00 00 00 E0 [19:22:02]Write i2c OK [19:22:02]MH_I2C_Read... [19:22:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:02]Read from MH i2c: E2 [19:22:02]MH_I2C_Read... [19:22:02]Read from MH i2c: E2 62 00 [19:22:02]MH_I2C_Read... [19:22:02]Read from MH i2c: E2 62 00 5D 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BA 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A4 01 00 00 5E 04 04 00 A4 01 00 00 57 04 04 00 A5 01 00 00 19 04 04 00 00 00 00 00 90 00 E9 [19:22:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BA 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A4 01 00 00 5E 04 04 00 A4 01 00 00 57 04 04 00 A5 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:22:02]wFMCommunicate OK [19:22:02]SAM_PROTO_GetFieldsCounters done [19:22:02]requested_item shift.num is exist - process it [19:22:02]requested_item shift.opened is exist - process it [19:22:02]req_shift_opened [19:22:02]FM_GetShiftState [19:22:02]SAM_PROTO_GetShiftState [19:22:02]wFMCommunicate request_size=4 [19:22:02]MH_SAM_APDU [19:22:02]CAPDU: 80 13 01 00 [19:22:02]Write to MH i2c: E2 08 00 5E 07 80 13 01 00 00 00 00 00 E2 [19:22:02]Write i2c OK [19:22:02]MH_I2C_Read... [19:22:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:02]Read from MH i2c: E2 [19:22:02]MH_I2C_Read... [19:22:02]Read from MH i2c: E2 0E 00 [19:22:02]MH_I2C_Read... [19:22:02]Read from MH i2c: E2 0E 00 5E 07 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F1 [19:22:02]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:22:02]wFMCommunicate OK [19:22:02]SAM_PROTO_GetShiftState done [19:22:02]FM_GetShiftState done [19:22:02]req_shift_opened done [19:22:02]requested_item shift.open_date is exist - process it [19:22:02]req_shift_open_date [19:22:02]req_shift_open_date done [19:22:02]produce_requested_data done [19:22:02]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201658,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [19:22:02]process_action_free close_receipt [19:22:02]json_value_free [19:22:02]json_value_free done [19:22:02]process_json_proto returns [19:22:02]Send response to host [19:22:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201658,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [19:22:02]free response buf [19:22:02]execute_script done [19:22:02]execute_script returns [19:22:02]free content buf [19:22:02]Sock 9.Close socket [19:22:02]Sock 9.Thread stoped [19:22:06]OFD Sender: No OFD packet to send [19:22:11]OFD Sender: No OFD packet to send [19:22:16]OFD Sender: No OFD packet to send [19:22:21]OFD Sender: No OFD packet to send [19:22:26]OFD Sender: No OFD packet to send [19:22:31]OFD Sender: No OFD packet to send [19:22:36]OFD Sender: No OFD packet to send [19:22:41]OFD Sender: No OFD packet to send [19:22:46]OFD Sender: No OFD packet to send [19:22:51]OFD Sender: No OFD packet to send [19:22:56]OFD Sender: No OFD packet to send [19:23:01]OFD Sender: No OFD packet to send [19:23:06]OFD Sender: No OFD packet to send [19:23:11]OFD Sender: No OFD packet to send [19:23:16]OFD Sender: No OFD packet to send [19:23:21]OFD Sender: No OFD packet to send [19:23:26]OFD Sender: No OFD packet to send [19:23:31]OFD Sender: No OFD packet to send [19:23:36]OFD Sender: No OFD packet to send [19:23:37]accept exits with 7 [19:23:37]New connection [19:23:37]New thread 3066465636 created [19:23:37]Thread 3066608996 joined [19:23:37]Waiting for new connection... [19:23:37] Sock 7.Parse request [19:23:37]Sock 7.Check first char [19:23:37]Sock 7.First char is OK [19:23:37]request: POST /json_proto HTTP/1.0 [19:23:37]Method: POST [19:23:37]URL: /json_proto [19:23:37]Method is POST - this is cgi request [19:23:37]url: /json_proto [19:23:37]query_string will be loaded in cgi processing [19:23:37]execute_cgi json_proto POST (null) [19:23:37]execute_cgi path=json_proto method=POST [19:23:37]POST find Content-Length [19:23:37]Host: 172.17.63.195:8080 [19:23:37]Content-Length: 677 [19:23:37]Content-Type: application/json [19:23:37] [19:23:37]POST finish read [19:23:37]Found Content-Length = 677 [19:23:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [19:23:37]execute_script... [19:23:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [19:23:37]POST & json_proto [19:23:37]process_json_proto [19:23:37]json parsed OK: [19:23:37]protocol is kg_v1.0 [19:23:37]action value=close_receipt [19:23:37]process_action close_receipt [19:23:37]cmd_close_receipt [19:23:37]MH_GetDate [19:23:37]Write to MH i2c: F0 00 00 5F 07 55 [19:23:37]Write i2c OK [19:23:37]MH_I2C_Read... [19:23:37]Read from MH i2c: F0 [19:23:37]MH_I2C_Read... [19:23:37]Read from MH i2c: F0 09 00 [19:23:37]MH_I2C_Read... [19:23:37]Read from MH i2c: F0 09 00 5F 07 00 B9 41 1D 67 68 46 19 67 0A [19:23:37]GetLastDocTimeStamp 1729970518 [19:23:37]current date 1729970617 [19:23:37]FM_GetShiftState [19:23:37]SAM_PROTO_GetShiftState [19:23:37]wFMCommunicate request_size=4 [19:23:37]MH_SAM_APDU [19:23:37]CAPDU: 80 13 01 00 [19:23:37]Write to MH i2c: E2 08 00 60 07 80 13 01 00 00 00 00 00 E4 [19:23:37]Write i2c OK [19:23:37]MH_I2C_Read... [19:23:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:37]Read from MH i2c: E2 [19:23:37]MH_I2C_Read... [19:23:37]Read from MH i2c: E2 0E 00 [19:23:37]MH_I2C_Read... [19:23:37]Read from MH i2c: E2 0E 00 60 07 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F3 [19:23:37]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:23:37]wFMCommunicate OK [19:23:37]SAM_PROTO_GetShiftState done [19:23:37]FM_GetShiftState done [19:23:37]opened in 1729900879 [19:23:37]opened+sec_in_day 1729987279 [19:23:37]quantity*price = 50041 [19:23:37]sum+1 = 50042 [19:23:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 421 26.10.2024 19:23 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201659 ФПД: 96260250836750 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T192337&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201659&fm=96260250836750&tin=02508201610067®Number=0000000000091777&sum=50000 [19:23:38]StoreToDocumentArchive [19:23:38]shift 543 fd 201659 [19:23:38]save to /storage/0543/doc_00201659 [19:23:38]save last doc name /storage/0543/doc_00201659 to /storage/kkm_last_doc_name [19:23:38]save OK [19:23:38]Clear old archive folders... [19:23:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:23:38]tlvbuf is 01053870 [19:23:38]SAM_PROTO_ClearQueue [19:23:38]wFMCommunicate request_size=4 [19:23:38]MH_SAM_APDU [19:23:38]CAPDU: 80 09 00 00 [19:23:38]Write to MH i2c: E2 08 00 6D 07 80 09 00 00 00 00 00 00 E6 [19:23:38]Write i2c OK [19:23:38]MH_I2C_Read... [19:23:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:38]Read from MH i2c: E2 [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: E2 03 00 [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: E2 03 00 6D 07 00 90 00 E8 [19:23:38]RAPDU: 90 00 [19:23:38]wFMCommunicate OK [19:23:38]SAM_PROTO_ClearQueue done [19:23:38]KKMCreateOFDPacket [19:23:38]OFDProtocolAddRootSTLVToBuf [19:23:38]FM_MakeSignedData [19:23:38]FM_MakeSignedData [19:23:38]SAM_PROTO_SignData [19:23:38]wFMCommunicate request_size=4 [19:23:38]MH_SAM_APDU [19:23:38]CAPDU: 80 0D 01 02 [19:23:38]Write to MH i2c: E2 08 00 6E 07 80 0D 01 02 00 00 00 00 EE [19:23:38]Write i2c OK [19:23:38]MH_I2C_Read... [19:23:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:38]Read from MH i2c: E2 [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: E2 03 00 [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: E2 03 00 6E 07 00 90 00 E9 [19:23:38]RAPDU: 90 00 [19:23:38]wFMCommunicate OK [19:23:38]wFMCommunicate request_size=255 [19:23:38]MH_SAM_APDU [19:23:38]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 32 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 A5 01 00 00 F4 03 04 00 B9 41 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BB 13 03 00 35 04 06 00 57 [19:23:38]Write to MH i2c: E2 02 01 6F 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 32 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 A5 01 00 00 F4 03 04 00 B9 41 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BB 13 03 00 35 04 06 00 57 00 00 EF [19:23:38]Write i2c OK [19:23:38]MH_I2C_Read... [19:23:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:38]Read from MH i2c: E2 [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: E2 03 00 [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: E2 03 00 6F 07 00 90 00 EA [19:23:38]RAPDU: 90 00 [19:23:38]wFMCommunicate OK [19:23:38]wFMCommunicate request_size=10 [19:23:38]MH_SAM_APDU [19:23:38]CAPDU: 80 0D 02 02 05 8C 56 0E 9F 0E [19:23:38]Write to MH i2c: E2 0D 00 70 07 80 0D 02 02 05 00 8C 56 0E 9F 0E 00 00 98 [19:23:38]Write i2c OK [19:23:38]MH_I2C_Read... [19:23:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:38]Read from MH i2c: E2 [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: E2 03 00 [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: E2 03 00 70 07 00 90 00 EB [19:23:38]RAPDU: 90 00 [19:23:38]wFMCommunicate OK [19:23:38]wFMCommunicate request_size=4 [19:23:38]MH_SAM_APDU [19:23:38]CAPDU: 80 0D 03 02 [19:23:38]Write to MH i2c: E2 08 00 71 07 80 0D 03 02 00 00 00 00 F3 [19:23:38]Write i2c OK [19:23:38]MH_I2C_Read... [19:23:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:38]Read from MH i2c: E2 [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: E2 0B 00 [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: E2 0B 00 71 07 00 2B 87 B2 C2 C1 C5 EC B3 90 00 3F [19:23:38]RAPDU: 2B 87 B2 C2 C1 C5 EC B3 90 00 [19:23:38]wFMCommunicate OK [19:23:38]SAM_PROTO_SignData done [19:23:38]FM_MakeSignedData done [19:23:38]CreateOFDProtocolMessage [19:23:38]wFMCommunicate request_size=4 [19:23:38]MH_SAM_APDU [19:23:38]CAPDU: 80 11 00 00 [19:23:38]Write to MH i2c: E2 08 00 72 07 80 11 00 00 00 00 00 00 F3 [19:23:38]Write i2c OK [19:23:38]MH_I2C_Read... [19:23:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:38]Read from MH i2c: E2 [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: E2 17 00 [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: E2 17 00 72 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 48 [19:23:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:23:38]wFMCommunicate OK [19:23:38]CreateOFDProtocolMessage done [19:23:38]OFDSenderStorePacket 201659 [19:23:38]StoreOFDPacket docnum=201659 [19:23:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D9 29 07 01 33 D4 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 32 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 A5 01 00 00 F4 03 04 00 B9 41 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BB 13 03 00 35 04 06 00 57 8C 56 0E 9F 0E 2B 87 B2 C2 C1 C5 EC B3 [19:23:38]CheckFolder [19:23:38]dirname=/storage/ofd_packets [19:23:38]CheckFolder done [19:23:38]ProducePacketName [19:23:38]name=ofd_packets/00201659 [19:23:38]NVStorageSaveData ofd_packets/00201659 [19:23:38]File name is /storage/ofd_packets/00201659 [19:23:38]Write 301 bytes [19:23:38]NVStorageSaveData done [19:23:38]OFDSenderStorePacket done [19:23:38]KKMCreateOFDPacket done [19:23:38]NVStorageSaveData kkm_last_timestamp [19:23:38]File name is /storage/kkm_last_timestamp [19:23:38]Write 4 bytes [19:23:38]NVStorageSaveData done [19:23:38]ExternCall_PrintAddStr [19:23:38]wPrintStart [19:23:38]Write to MH i2c: 01 00 00 73 07 7A [19:23:38]Write i2c OK [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: 01 [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: 01 07 00 [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: 01 07 00 73 07 00 00 00 00 00 FF 0F 8F [19:23:38]RasterBufferAndPrint [19:23:38]line Счет N : (1)449417 [19:23:38]line ИНН: 02508201610067 [19:23:38]line Контрольно-Кассовый Чек [19:23:38]line ПРОДАЖА [19:23:38]line ТРК (МРК, ГНК) : 52 [19:23:38]line Товар: 2710124130 [19:23:38]line Аи-92-К-2 [19:23:38]line 7.480 * 66.90 [19:23:38]line = 500.41 [19:23:38]line НДС 12% НСП 1% [19:23:38]line > о реализуемом товаре [19:23:38]line ОКРУГЛЕНИЕ: -0.41 [19:23:38]line ИТОГО: 500.00 [19:23:38]line Внесено: 500.00 [19:23:38]line СДАЧА: 0.00 [19:23:38]line НСП 1% : 4.43 [19:23:38]line НДС 12% : 53.14 [19:23:38]line Наличными: 500.00 [19:23:38]line Безнал.: 0.00 [19:23:38]line Место: АЗС № 171 "Партнер Нефть" [19:23:38]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:23:38]line СНО: Общий режим [19:23:38]line Чек 421 26.10.2024 19:23 [19:23:38]line Смена: 543 ФФД: 1.0 [19:23:38]line ЗНМ: 0300000109 [19:23:38]line РНМ: 0000000000091777 [19:23:38]line Версия ККМ: 001 [19:23:38]line ФМ: 0000000000871756 [19:23:38]line ФД: 201659 [19:23:38]line ФПД: 96260250836750 [19:23:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T192337&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201659&fm=96260250836750&tin=02508201610067®Number=0000000000091777&sum=50000 [19:23:39]OFD Sender: Processing packet 201659 [packets to send 112, broken 111] [19:23:39]ProducePacketName [19:23:39]name=ofd_packets/00201659 [19:23:39]OFD Sender: To server: pG, [19:23:39]CommunicateWithHost lk.salyk.kg:30040 [19:23:39]ConnectInit lk.salyk.kg [19:23:39]written 0, free lines is 4095 [19:23:39]Connected sock=10 [19:23:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D9 29 07 01 33 D4 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 32 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 A5 01 00 00 F4 03 04 00 B9 41 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BB 13 03 00 35 04 06 00 57 8C 56 0E 9F 0E 2B 87 B2 C2 C1 C5 EC B3 [19:23:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C9 DE 47 00 DF BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BB 13 03 00 F4 03 04 00 61 ED 1C 67 B6 04 01 00 00 BC 83 0D E0 BF D9 07 61 [19:23:39]CommunicateWithHost err = 0 [19:23:39]CheckOFDResponse [19:23:39]1017 (14) - 77093643461234 [19:23:39]1041 (16) - 0000000000871756 [19:23:39]1040 (4) - 201659 [19:23:39]1012 (4) - 26.10.2024 13:23 [19:23:39]1206 (1) - 0 [19:23:39]OFD Sender: Remove packet 201659 [19:23:39]ProducePacketName [19:23:39]name=ofd_packets/00201659 [19:23:39]NVStorageDeleteData [19:23:39]Write to MH i2c: 01 00 00 9E 07 A5 [19:23:39]Write i2c OK [19:23:39]MH_I2C_Read... [19:23:39]Read from MH i2c: 01 [19:23:39]MH_I2C_Read... [19:23:39]Read from MH i2c: 01 07 00 [19:23:39]MH_I2C_Read... [19:23:39]Read from MH i2c: 01 07 00 9E 07 00 00 00 00 00 A1 0C 59 [19:23:39]RasterBufferAndPrint [19:23:39]line [19:23:39]line [19:23:39]line [19:23:39]line [19:23:39]line [19:23:39]written 0, free lines is 3238 [19:23:39]MH_Cut [19:23:39]Write to MH i2c: D1 01 00 A5 07 01 7E [19:23:39]Write i2c OK [19:23:39]MH_I2C_Read... [19:23:39]Read from MH i2c: D1 [19:23:39]MH_I2C_Read... [19:23:39]Read from MH i2c: D1 01 00 [19:23:39]MH_I2C_Read... [19:23:39]Read from MH i2c: D1 01 00 A5 07 00 7D [19:23:39]Write to MH i2c: 01 00 00 A6 07 AD [19:23:39]Write i2c OK [19:23:39]MH_I2C_Read... [19:23:40]OFD Sender: No OFD packet to send [19:23:40]*** Cut start [19:23:40]*** Purtial cut [19:23:40]*** Stage 1: CUTSNS_PIN = 1 [19:23:40]Read from MH i2c: 01 [19:23:40]MH_I2C_Read... [19:23:40]*** Stop cut motor [19:23:40]*** Cut end [19:23:40]Read from MH i2c: 01 07 00 [19:23:40]MH_I2C_Read... [19:23:40]Read from MH i2c: 01 07 00 A6 07 00 00 00 00 00 FF 0F C2 [19:23:40]process_action close_receipt done [19:23:40]requested_data is exist [19:23:40]produce_requested_data [19:23:40]requested_item fm.sn is exist - process it [19:23:40]wFMCommunicate request_size=4 [19:23:40]MH_SAM_APDU [19:23:40]CAPDU: 80 11 00 00 [19:23:40]Write to MH i2c: E2 08 00 A7 07 80 11 00 00 00 00 00 00 28 [19:23:40]Write i2c OK [19:23:40]MH_I2C_Read... [19:23:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:40]Read from MH i2c: E2 [19:23:40]MH_I2C_Read... [19:23:40]Read from MH i2c: E2 17 00 [19:23:40]MH_I2C_Read... [19:23:40]Read from MH i2c: E2 17 00 A7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7D [19:23:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:23:40]wFMCommunicate OK [19:23:40]requested_item fd.num is exist - process it [19:23:40]SAM_PROTO_GetFieldsCounters [19:23:40]wFMCommunicate request_size=4 [19:23:40]MH_SAM_APDU [19:23:40]CAPDU: 80 13 00 00 [19:23:40]Write to MH i2c: E2 08 00 A8 07 80 13 00 00 00 00 00 00 2B [19:23:40]Write i2c OK [19:23:40]MH_I2C_Read... [19:23:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:41]Read from MH i2c: E2 [19:23:41]MH_I2C_Read... [19:23:41]Read from MH i2c: E2 62 00 [19:23:41]MH_I2C_Read... [19:23:41]Read from MH i2c: E2 62 00 A8 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BB 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A5 01 00 00 5E 04 04 00 A5 01 00 00 57 04 04 00 A6 01 00 00 19 04 04 00 00 00 00 00 90 00 38 [19:23:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BB 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A5 01 00 00 5E 04 04 00 A5 01 00 00 57 04 04 00 A6 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:23:41]wFMCommunicate OK [19:23:41]SAM_PROTO_GetFieldsCounters done [19:23:41]requested_item shift.num is exist - process it [19:23:41]requested_item shift.opened is exist - process it [19:23:41]req_shift_opened [19:23:41]FM_GetShiftState [19:23:41]SAM_PROTO_GetShiftState [19:23:41]wFMCommunicate request_size=4 [19:23:41]MH_SAM_APDU [19:23:41]CAPDU: 80 13 01 00 [19:23:41]Write to MH i2c: E2 08 00 A9 07 80 13 01 00 00 00 00 00 2D [19:23:41]Write i2c OK [19:23:41]MH_I2C_Read... [19:23:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:41]Read from MH i2c: E2 [19:23:41]MH_I2C_Read... [19:23:41]Read from MH i2c: E2 0E 00 [19:23:41]MH_I2C_Read... [19:23:41]Read from MH i2c: E2 0E 00 A9 07 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 3C [19:23:41]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:23:41]wFMCommunicate OK [19:23:41]SAM_PROTO_GetShiftState done [19:23:41]FM_GetShiftState done [19:23:41]req_shift_opened done [19:23:41]requested_item shift.open_date is exist - process it [19:23:41]req_shift_open_date [19:23:41]req_shift_open_date done [19:23:41]produce_requested_data done [19:23:41]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201659,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [19:23:41]process_action_free close_receipt [19:23:41]json_value_free [19:23:41]json_value_free done [19:23:41]process_json_proto returns [19:23:41]Send response to host [19:23:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201659,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [19:23:41]free response buf [19:23:41]execute_script done [19:23:41]execute_script returns [19:23:41]free content buf [19:23:41]Sock 7.Close socket [19:23:41]Sock 7.Thread stoped [19:23:45]OFD Sender: No OFD packet to send [19:23:50]OFD Sender: No OFD packet to send [19:23:55]OFD Sender: No OFD packet to send [19:24:00]OFD Sender: No OFD packet to send [19:24:05]OFD Sender: No OFD packet to send [19:24:10]OFD Sender: No OFD packet to send [19:24:15]OFD Sender: No OFD packet to send [19:24:20]OFD Sender: No OFD packet to send [19:24:24]accept exits with 9 [19:24:24]New connection [19:24:24]New thread 3066608996 created [19:24:24]Thread 3066465636 joined [19:24:24]Waiting for new connection... [19:24:24] Sock 9.Parse request [19:24:24]Sock 9.Check first char [19:24:24]Sock 9.First char is OK [19:24:24]request: POST /json_proto HTTP/1.0 [19:24:24]Method: POST [19:24:24]URL: /json_proto [19:24:24]Method is POST - this is cgi request [19:24:24]url: /json_proto [19:24:24]query_string will be loaded in cgi processing [19:24:24]execute_cgi json_proto POST (null) [19:24:24]execute_cgi path=json_proto method=POST [19:24:24]POST find Content-Length [19:24:24]Host: 172.17.63.195:8080 [19:24:24]Content-Length: 759 [19:24:24]Content-Type: application/json [19:24:24] [19:24:24]POST finish read [19:24:24]Found Content-Length = 759 [19:24:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.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: Mbank", "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:24]execute_script... [19:24: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)449418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.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: Mbank", "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:24]POST & json_proto [19:24:24]process_json_proto [19:24:24]json parsed OK: [19:24:24]protocol is kg_v1.0 [19:24:24]action value=close_receipt [19:24:24]process_action close_receipt [19:24:24]cmd_close_receipt [19:24:24]MH_GetDate [19:24:24]Write to MH i2c: F0 00 00 AA 07 A0 [19:24:24]Write i2c OK [19:24:24]MH_I2C_Read... [19:24:24]Read from MH i2c: F0 [19:24:24]MH_I2C_Read... [19:24:24]Read from MH i2c: F0 09 00 [19:24:24]MH_I2C_Read... [19:24:24]Read from MH i2c: F0 09 00 AA 07 00 E9 41 1D 67 68 46 19 67 85 [19:24:24]GetLastDocTimeStamp 1729970617 [19:24:24]current date 1729970665 [19:24:24]FM_GetShiftState [19:24:24]SAM_PROTO_GetShiftState [19:24:24]wFMCommunicate request_size=4 [19:24:24]MH_SAM_APDU [19:24:24]CAPDU: 80 13 01 00 [19:24:24]Write to MH i2c: E2 08 00 AB 07 80 13 01 00 00 00 00 00 2F [19:24:24]Write i2c OK [19:24:24]MH_I2C_Read... [19:24:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:24]Read from MH i2c: E2 [19:24:24]MH_I2C_Read... [19:24:24]Read from MH i2c: E2 0E 00 [19:24:24]MH_I2C_Read... [19:24:24]Read from MH i2c: E2 0E 00 AB 07 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 3E [19:24:24]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:24:24]wFMCommunicate OK [19:24:24]SAM_PROTO_GetShiftState done [19:24:24]FM_GetShiftState done [19:24:24]opened in 1729900879 [19:24:24]opened+sec_in_day 1729987279 [19:24:24]quantity*price = 50000 [19:24:24]sum+1 = 50001 [19:24:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 0.00 Безнал.: 500.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 422 26.10.2024 19:24 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201660 ФПД: 1515531269256 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T192425&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201660&fm=1515531269256&tin=02508201610067®Number=0000000000091777&sum=50000 [19:24:26]StoreToDocumentArchive [19:24:26]shift 543 fd 201660 [19:24:26]save to /storage/0543/doc_00201660 [19:24:26]save last doc name /storage/0543/doc_00201660 to /storage/kkm_last_doc_name [19:24:26]save OK [19:24:26]Clear old archive folders... [19:24:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:24:26]tlvbuf is 0103D330 [19:24:26]SAM_PROTO_ClearQueue [19:24:26]wFMCommunicate request_size=4 [19:24:26]MH_SAM_APDU [19:24:26]CAPDU: 80 09 00 00 [19:24:26]Write to MH i2c: E2 08 00 B8 07 80 09 00 00 00 00 00 00 31 [19:24:26]Write i2c OK [19:24:26]MH_I2C_Read... [19:24:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:26]Read from MH i2c: E2 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: E2 03 00 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: E2 03 00 B8 07 00 90 00 33 [19:24:26]RAPDU: 90 00 [19:24:26]wFMCommunicate OK [19:24:26]SAM_PROTO_ClearQueue done [19:24:26]KKMCreateOFDPacket [19:24:26]OFDProtocolAddRootSTLVToBuf [19:24:26]FM_MakeSignedData [19:24:26]FM_MakeSignedData [19:24:26]SAM_PROTO_SignData [19:24:26]wFMCommunicate request_size=4 [19:24:26]MH_SAM_APDU [19:24:26]CAPDU: 80 0D 01 02 [19:24:26]Write to MH i2c: E2 08 00 B9 07 80 0D 01 02 00 00 00 00 39 [19:24:26]Write i2c OK [19:24:26]MH_I2C_Read... [19:24:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:26]Read from MH i2c: E2 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: E2 03 00 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: E2 03 00 B9 07 00 90 00 34 [19:24:26]RAPDU: 90 00 [19:24:26]wFMCommunicate OK [19:24:26]wFMCommunicate request_size=255 [19:24:26]MH_SAM_APDU [19:24: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 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 E9 41 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BC 13 03 00 35 04 06 00 [19:24:26]Write to MH i2c: E2 02 01 BA 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 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 E9 41 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BC 13 03 00 35 04 06 00 00 00 72 [19:24:26]Write i2c OK [19:24:26]MH_I2C_Read... [19:24:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:26]Read from MH i2c: E2 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: E2 03 00 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: E2 03 00 BA 07 00 90 00 35 [19:24:26]RAPDU: 90 00 [19:24:26]wFMCommunicate OK [19:24:26]wFMCommunicate request_size=11 [19:24:26]MH_SAM_APDU [19:24:26]CAPDU: 80 0D 02 02 06 01 60 DC B3 F4 88 [19:24:26]Write to MH i2c: E2 0E 00 BB 07 80 0D 02 02 06 00 01 60 DC B3 F4 88 00 00 B4 [19:24:26]Write i2c OK [19:24:26]MH_I2C_Read... [19:24:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:26]Read from MH i2c: E2 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: E2 03 00 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: E2 03 00 BB 07 00 90 00 36 [19:24:26]RAPDU: 90 00 [19:24:26]wFMCommunicate OK [19:24:26]wFMCommunicate request_size=4 [19:24:26]MH_SAM_APDU [19:24:26]CAPDU: 80 0D 03 02 [19:24:26]Write to MH i2c: E2 08 00 BC 07 80 0D 03 02 00 00 00 00 3E [19:24:26]Write i2c OK [19:24:26]MH_I2C_Read... [19:24:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:26]Read from MH i2c: E2 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: E2 0B 00 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: E2 0B 00 BC 07 00 25 0E 6F 5A 3D 60 C2 EA 90 00 84 [19:24:26]RAPDU: 25 0E 6F 5A 3D 60 C2 EA 90 00 [19:24:26]wFMCommunicate OK [19:24:26]SAM_PROTO_SignData done [19:24:26]FM_MakeSignedData done [19:24:26]CreateOFDProtocolMessage [19:24:26]wFMCommunicate request_size=4 [19:24:26]MH_SAM_APDU [19:24:26]CAPDU: 80 11 00 00 [19:24:26]Write to MH i2c: E2 08 00 BD 07 80 11 00 00 00 00 00 00 3E [19:24:26]Write i2c OK [19:24:26]MH_I2C_Read... [19:24:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:26]Read from MH i2c: E2 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: E2 17 00 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: E2 17 00 BD 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 93 [19:24:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:24:26]wFMCommunicate OK [19:24:26]CreateOFDProtocolMessage done [19:24:26]OFDSenderStorePacket 201660 [19:24:26]StoreOFDPacket docnum=201660 [19:24:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 6B AC 08 01 1E 7A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 E9 41 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BC 13 03 00 35 04 06 00 01 60 DC B3 F4 88 25 0E 6F 5A 3D 60 C2 EA [19:24:26]CheckFolder [19:24:26]dirname=/storage/ofd_packets [19:24:26]CheckFolder done [19:24:26]ProducePacketName [19:24:26]name=ofd_packets/00201660 [19:24:26]NVStorageSaveData ofd_packets/00201660 [19:24:26]File name is /storage/ofd_packets/00201660 [19:24:26]Write 302 bytes [19:24:26]NVStorageSaveData done [19:24:26]OFDSenderStorePacket done [19:24:26]KKMCreateOFDPacket done [19:24:26]NVStorageSaveData kkm_last_timestamp [19:24:26]File name is /storage/kkm_last_timestamp [19:24:26]Write 4 bytes [19:24:26]NVStorageSaveData done [19:24:26]ExternCall_PrintAddStr [19:24:26]wPrintStart [19:24:26]Write to MH i2c: 01 00 00 BE 07 C5 [19:24:26]Write i2c OK [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: 01 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: 01 07 00 [19:24:26]MH_I2C_Read... [19:24:26]Read from MH i2c: 01 07 00 BE 07 00 00 00 00 00 FF 0F DA [19:24:26]RasterBufferAndPrint [19:24:26]line Счет N : (1)449418 [19:24:26]line ИНН: 02508201610067 [19:24:26]line Контрольно-Кассовый Чек [19:24:26]line ПРОДАЖА [19:24:26]line ТРК (МРК, ГНК) : 42 [19:24:26]line Товар: 2710124130 [19:24:26]line SUPER 92-К-5 [19:24:26]line 7.310 * 68.40 [19:24:26]line = 500.00 [19:24:26]line НДС 12% НСП 1% [19:24:26]line > о реализуемом товаре [19:24:26]line ИТОГО: 500.00 [19:24:26]line НСП 1% : 4.42 [19:24:26]line НДС 12% : 53.10 [19:24:26]line Наличными: 0.00 [19:24:26]line Безнал.: 500.00 [19:24:26]line Место: АЗС № 171 "Партнер Нефть" [19:24:26]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:24:26]line СНО: Общий режим [19:24:26]line Чек 422 26.10.2024 19:24 [19:24:26]line Смена: 543 ФФД: 1.0 [19:24:26]line ЗНМ: 0300000109 [19:24:26]line РНМ: 0000000000091777 [19:24:26]line Версия ККМ: 001 [19:24:26]line Платежная система: Mbank [19:24:26]line ФМ: 0000000000871756 [19:24:26]line ФД: 201660 [19:24:26]line ФПД: 1515531269256 [19:24:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T192425&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201660&fm=1515531269256&tin=02508201610067®Number=0000000000091777&sum=50000 [19:24:26]OFD Sender: Processing packet 201660 [packets to send 112, broken 111] [19:24:26]ProducePacketName [19:24:26]name=ofd_packets/00201660 [19:24:26]OFD Sender: To server: pG, [19:24:26]CommunicateWithHost lk.salyk.kg:30040 [19:24:26]ConnectInit lk.salyk.kg [19:24:26]written 0, free lines is 4095 [19:24:27]Connected sock=10 [19:24:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 6B AC 08 01 1E 7A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 E9 41 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BC 13 03 00 35 04 06 00 01 60 DC B3 F4 88 25 0E 6F 5A 3D 60 C2 EA [19:24:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E5 E0 47 00 71 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BC 13 03 00 F4 03 04 00 91 ED 1C 67 B6 04 01 00 00 A8 36 02 61 77 14 F6 FD [19:24:27]CommunicateWithHost err = 0 [19:24:27]CheckOFDResponse [19:24:27]1017 (14) - 77093643461234 [19:24:27]1041 (16) - 0000000000871756 [19:24:27]1040 (4) - 201660 [19:24:27]1012 (4) - 26.10.2024 13:24 [19:24:27]1206 (1) - 0 [19:24:27]OFD Sender: Remove packet 201660 [19:24:27]ProducePacketName [19:24:27]name=ofd_packets/00201660 [19:24:27]NVStorageDeleteData [19:24:27]Write to MH i2c: 01 00 00 E7 07 EE [19:24:27]Write i2c OK [19:24:27]MH_I2C_Read... [19:24:27]Read from MH i2c: 01 [19:24:27]MH_I2C_Read... [19:24:27]Read from MH i2c: 01 07 00 [19:24:27]MH_I2C_Read... [19:24:27]Read from MH i2c: 01 07 00 E7 07 00 00 00 00 00 C8 0C C9 [19:24:27]RasterBufferAndPrint [19:24:27]line [19:24:27]line [19:24:27]line [19:24:27]line [19:24:27]line [19:24:27]written 0, free lines is 3278 [19:24:27]MH_Cut [19:24:27]Write to MH i2c: D1 01 00 EE 07 01 C7 [19:24:27]Write i2c OK [19:24:27]MH_I2C_Read... [19:24:27]Read from MH i2c: D1 [19:24:27]MH_I2C_Read... [19:24:27]Read from MH i2c: D1 01 00 [19:24:27]MH_I2C_Read... [19:24:27]Read from MH i2c: D1 01 00 EE 07 00 C6 [19:24:27]Write to MH i2c: 01 00 00 EF 07 F6 [19:24:27]Write i2c OK [19:24:27]MH_I2C_Read... [19:24:27]OFD Sender: No OFD packet to send [19:24:28]*** Cut start [19:24:28]*** Purtial cut [19:24:28]*** Stage 1: CUTSNS_PIN = 1 [19:24:28]Read from MH i2c: 01 [19:24:28]MH_I2C_Read... [19:24:28]*** Stop cut motor [19:24:28]*** Cut end [19:24:28]Read from MH i2c: 01 07 00 [19:24:28]MH_I2C_Read... [19:24:28]Read from MH i2c: 01 07 00 EF 07 00 00 00 00 00 FF 0F 0B [19:24:28]process_action close_receipt done [19:24:28]requested_data is exist [19:24:28]produce_requested_data [19:24:28]requested_item fm.sn is exist - process it [19:24:28]wFMCommunicate request_size=4 [19:24:28]MH_SAM_APDU [19:24:28]CAPDU: 80 11 00 00 [19:24:28]Write to MH i2c: E2 08 00 F0 07 80 11 00 00 00 00 00 00 71 [19:24:28]Write i2c OK [19:24:28]MH_I2C_Read... [19:24:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:28]Read from MH i2c: E2 [19:24:28]MH_I2C_Read... [19:24:28]Read from MH i2c: E2 17 00 [19:24:28]MH_I2C_Read... [19:24:28]Read from MH i2c: E2 17 00 F0 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C6 [19:24:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:24:28]wFMCommunicate OK [19:24:28]requested_item fd.num is exist - process it [19:24:28]SAM_PROTO_GetFieldsCounters [19:24:28]wFMCommunicate request_size=4 [19:24:28]MH_SAM_APDU [19:24:28]CAPDU: 80 13 00 00 [19:24:28]Write to MH i2c: E2 08 00 F1 07 80 13 00 00 00 00 00 00 74 [19:24:28]Write i2c OK [19:24:28]MH_I2C_Read... [19:24:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:28]Read from MH i2c: E2 [19:24:28]MH_I2C_Read... [19:24:28]Read from MH i2c: E2 62 00 [19:24:28]MH_I2C_Read... [19:24:28]Read from MH i2c: E2 62 00 F1 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BC 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A6 01 00 00 5E 04 04 00 A6 01 00 00 57 04 04 00 A7 01 00 00 19 04 04 00 00 00 00 00 90 00 85 [19:24:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BC 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A6 01 00 00 5E 04 04 00 A6 01 00 00 57 04 04 00 A7 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:24:28]wFMCommunicate OK [19:24:28]SAM_PROTO_GetFieldsCounters done [19:24:28]requested_item shift.num is exist - process it [19:24:28]requested_item shift.opened is exist - process it [19:24:28]req_shift_opened [19:24:28]FM_GetShiftState [19:24:28]SAM_PROTO_GetShiftState [19:24:28]wFMCommunicate request_size=4 [19:24:28]MH_SAM_APDU [19:24:28]CAPDU: 80 13 01 00 [19:24:28]Write to MH i2c: E2 08 00 F2 07 80 13 01 00 00 00 00 00 76 [19:24:28]Write i2c OK [19:24:28]MH_I2C_Read... [19:24:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:28]Read from MH i2c: E2 [19:24:28]MH_I2C_Read... [19:24:28]Read from MH i2c: E2 0E 00 [19:24:28]MH_I2C_Read... [19:24:28]Read from MH i2c: E2 0E 00 F2 07 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 85 [19:24:28]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:24:28]wFMCommunicate OK [19:24:28]SAM_PROTO_GetShiftState done [19:24:28]FM_GetShiftState done [19:24:28]req_shift_opened done [19:24:28]requested_item shift.open_date is exist - process it [19:24:28]req_shift_open_date [19:24:28]req_shift_open_date done [19:24:28]produce_requested_data done [19:24:28]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201660,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [19:24:28]process_action_free close_receipt [19:24:28]json_value_free [19:24:28]json_value_free done [19:24:28]process_json_proto returns [19:24:28]Send response to host [19:24:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201660,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [19:24:28]free response buf [19:24:28]execute_script done [19:24:28]execute_script returns [19:24:28]free content buf [19:24:28]Sock 9.Close socket [19:24:28]Sock 9.Thread stoped [19:24:32]OFD Sender: No OFD packet to send [19:24:37]OFD Sender: No OFD packet to send [19:24:42]OFD Sender: No OFD packet to send [19:24:47]OFD Sender: No OFD packet to send [19:24:52]OFD Sender: No OFD packet to send [19:24:57]OFD Sender: No OFD packet to send [19:25:02]OFD Sender: No OFD packet to send [19:25:07]OFD Sender: No OFD packet to send [19:25:12]OFD Sender: No OFD packet to send [19:25:17]OFD Sender: No OFD packet to send [19:25:22]OFD Sender: No OFD packet to send [19:25:27]OFD Sender: No OFD packet to send [19:25:32]OFD Sender: No OFD packet to send [19:25:37]OFD Sender: No OFD packet to send [19:25:42]OFD Sender: No OFD packet to send [19:25:47]OFD Sender: No OFD packet to send [19:25:52]OFD Sender: No OFD packet to send [19:25:57]OFD Sender: No OFD packet to send [19:26:02]OFD Sender: No OFD packet to send [19:26:07]OFD Sender: No OFD packet to send [19:26:12]OFD Sender: No OFD packet to send [19:26:17]OFD Sender: No OFD packet to send [19:26:22]OFD Sender: No OFD packet to send [19:26:27]OFD Sender: No OFD packet to send [19:26:29]accept exits with 7 [19:26:29]New connection [19:26:29]New thread 3066465636 created [19:26:29]Thread 3066608996 joined [19:26:29]Waiting for new connection... [19:26:29] Sock 7.Parse request [19:26:29]Sock 7.Check first char [19:26:29]Sock 7.First char is OK [19:26:29]request: POST /json_proto HTTP/1.0 [19:26:29]Method: POST [19:26:29]URL: /json_proto [19:26:29]Method is POST - this is cgi request [19:26:29]url: /json_proto [19:26:29]query_string will be loaded in cgi processing [19:26:29]execute_cgi json_proto POST (null) [19:26:29]execute_cgi path=json_proto method=POST [19:26:29]POST find Content-Length [19:26:29]Host: 172.17.63.195:8080 [19:26:29]Content-Length: 677 [19:26:29]Content-Type: application/json [19:26:29] [19:26:29]POST finish read [19:26:29]Found Content-Length = 677 [19:26:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 9.720, "sum" : 650.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:29]execute_script... [19:26: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)449419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 9.720, "sum" : 650.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:29]POST & json_proto [19:26:29]process_json_proto [19:26:29]json parsed OK: [19:26:29]protocol is kg_v1.0 [19:26:29]action value=close_receipt [19:26:29]process_action close_receipt [19:26:29]cmd_close_receipt [19:26:29]MH_GetDate [19:26:29]Write to MH i2c: F0 00 00 F3 07 E9 [19:26:29]Write i2c OK [19:26:29]MH_I2C_Read... [19:26:29]Read from MH i2c: F0 [19:26:29]MH_I2C_Read... [19:26:29]Read from MH i2c: F0 09 00 [19:26:29]MH_I2C_Read... [19:26:29]Read from MH i2c: F0 09 00 F3 07 00 65 42 1D 67 68 46 19 67 4B [19:26:29]GetLastDocTimeStamp 1729970665 [19:26:29]current date 1729970789 [19:26:29]FM_GetShiftState [19:26:29]SAM_PROTO_GetShiftState [19:26:29]wFMCommunicate request_size=4 [19:26:29]MH_SAM_APDU [19:26:29]CAPDU: 80 13 01 00 [19:26:29]Write to MH i2c: E2 08 00 F4 07 80 13 01 00 00 00 00 00 78 [19:26:29]Write i2c OK [19:26:29]MH_I2C_Read... [19:26:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:29]Read from MH i2c: E2 [19:26:29]MH_I2C_Read... [19:26:29]Read from MH i2c: E2 0E 00 [19:26:29]MH_I2C_Read... [19:26:29]Read from MH i2c: E2 0E 00 F4 07 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 87 [19:26:29]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:26:29]wFMCommunicate OK [19:26:29]SAM_PROTO_GetShiftState done [19:26:29]FM_GetShiftState done [19:26:29]opened in 1729900879 [19:26:29]opened+sec_in_day 1729987279 [19:26:29]quantity*price = 65026 [19:26:29]sum+1 = 65028 [19:26:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.05 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 423 26.10.2024 19:26 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201661 ФПД: 200317650927602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T192629&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201661&fm=200317650927602&tin=02508201610067®Number=0000000000091777&sum=65000 [19:26:30]StoreToDocumentArchive [19:26:30]shift 543 fd 201661 [19:26:30]save to /storage/0543/doc_00201661 [19:26:30]save last doc name /storage/0543/doc_00201661 to /storage/kkm_last_doc_name [19:26:30]save OK [19:26:30]Clear old archive folders... [19:26:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:26:30]tlvbuf is B6F012B0 [19:26:30]SAM_PROTO_ClearQueue [19:26:30]wFMCommunicate request_size=4 [19:26:30]MH_SAM_APDU [19:26:30]CAPDU: 80 09 00 00 [19:26:30]Write to MH i2c: E2 08 00 01 08 80 09 00 00 00 00 00 00 7B [19:26:30]Write i2c OK [19:26:30]MH_I2C_Read... [19:26:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:30]Read from MH i2c: E2 [19:26:30]MH_I2C_Read... [19:26:30]Read from MH i2c: E2 03 00 [19:26:30]MH_I2C_Read... [19:26:30]Read from MH i2c: E2 03 00 01 08 00 90 00 7D [19:26:30]RAPDU: 90 00 [19:26:30]wFMCommunicate OK [19:26:30]SAM_PROTO_ClearQueue done [19:26:30]KKMCreateOFDPacket [19:26:30]OFDProtocolAddRootSTLVToBuf [19:26:30]FM_MakeSignedData [19:26:30]FM_MakeSignedData [19:26:30]SAM_PROTO_SignData [19:26:30]wFMCommunicate request_size=4 [19:26:30]MH_SAM_APDU [19:26:30]CAPDU: 80 0D 01 02 [19:26:30]Write to MH i2c: E2 08 00 02 08 80 0D 01 02 00 00 00 00 83 [19:26:30]Write i2c OK [19:26:30]MH_I2C_Read... [19:26:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:30]Read from MH i2c: E2 [19:26:30]MH_I2C_Read... [19:26:30]Read from MH i2c: E2 03 00 [19:26:30]MH_I2C_Read... [19:26:30]Read from MH i2c: E2 03 00 02 08 00 90 00 7E [19:26:30]RAPDU: 90 00 [19:26:30]wFMCommunicate OK [19:26:30]wFMCommunicate request_size=255 [19:26:30]MH_SAM_APDU [19:26:30]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 32 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 65 42 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BD 13 03 00 35 04 06 00 B6 [19:26:30]Write to MH i2c: E2 02 01 03 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 32 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 65 42 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BD 13 03 00 35 04 06 00 B6 00 00 87 [19:26:30]Write i2c OK [19:26:30]MH_I2C_Read... [19:26:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:30]Read from MH i2c: E2 [19:26:30]MH_I2C_Read... [19:26:30]Read from MH i2c: E2 03 00 [19:26:30]MH_I2C_Read... [19:26:30]Read from MH i2c: E2 03 00 03 08 00 90 00 7F [19:26:30]RAPDU: 90 00 [19:26:30]wFMCommunicate OK [19:26:30]wFMCommunicate request_size=10 [19:26:30]MH_SAM_APDU [19:26:30]CAPDU: 80 0D 02 02 05 30 16 6C FF F2 [19:26:30]Write to MH i2c: E2 0D 00 04 08 80 0D 02 02 05 00 30 16 6C FF F2 00 00 33 [19:26:30]Write i2c OK [19:26:30]MH_I2C_Read... [19:26:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:30]Read from MH i2c: E2 [19:26:30]MH_I2C_Read... [19:26:30]Read from MH i2c: E2 03 00 [19:26:30]MH_I2C_Read... [19:26:30]Read from MH i2c: E2 03 00 04 08 00 90 00 80 [19:26:30]RAPDU: 90 00 [19:26:30]wFMCommunicate OK [19:26:30]wFMCommunicate request_size=4 [19:26:30]MH_SAM_APDU [19:26:30]CAPDU: 80 0D 03 02 [19:26:30]Write to MH i2c: E2 08 00 05 08 80 0D 03 02 00 00 00 00 88 [19:26:30]Write i2c OK [19:26:30]MH_I2C_Read... [19:26:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:30]Read from MH i2c: E2 [19:26:30]MH_I2C_Read... [19:26:30]Read from MH i2c: E2 0B 00 [19:26:30]MH_I2C_Read... [19:26:30]Read from MH i2c: E2 0B 00 05 08 00 D2 1F D9 6B 5E B1 93 86 90 00 E6 [19:26:30]RAPDU: D2 1F D9 6B 5E B1 93 86 90 00 [19:26:30]wFMCommunicate OK [19:26:30]SAM_PROTO_SignData done [19:26:30]FM_MakeSignedData done [19:26:30]CreateOFDProtocolMessage [19:26:30]wFMCommunicate request_size=4 [19:26:30]MH_SAM_APDU [19:26:30]CAPDU: 80 11 00 00 [19:26:30]Write to MH i2c: E2 08 00 06 08 80 11 00 00 00 00 00 00 88 [19:26:30]Write i2c OK [19:26:30]MH_I2C_Read... [19:26:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:30]Read from MH i2c: E2 [19:26:30]MH_I2C_Read... [19:26:30]Read from MH i2c: E2 17 00 [19:26:30]MH_I2C_Read... [19:26:30]Read from MH i2c: E2 17 00 06 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DD [19:26:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:26:30]wFMCommunicate OK [19:26:30]CreateOFDProtocolMessage done [19:26:30]OFDSenderStorePacket 201661 [19:26:30]StoreOFDPacket docnum=201661 [19:26:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F9 7B 07 01 64 3C 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 32 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 65 42 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BD 13 03 00 35 04 06 00 B6 30 16 6C FF F2 D2 1F D9 6B 5E B1 93 86 [19:26:30]CheckFolder [19:26:30]dirname=/storage/ofd_packets [19:26:30]CheckFolder done [19:26:30]ProducePacketName [19:26:30]name=ofd_packets/00201661 [19:26:30]NVStorageSaveData ofd_packets/00201661 [19:26:30]File name is /storage/ofd_packets/00201661 [19:26:30]Write 301 bytes [19:26:30]NVStorageSaveData done [19:26:30]OFDSenderStorePacket done [19:26:30]KKMCreateOFDPacket done [19:26:30]NVStorageSaveData kkm_last_timestamp [19:26:30]File name is /storage/kkm_last_timestamp [19:26:30]Write 4 bytes [19:26:30]NVStorageSaveData done [19:26:30]ExternCall_PrintAddStr [19:26:30]wPrintStart [19:26:30]Write to MH i2c: 01 00 00 07 08 0F [19:26:30]Write i2c OK [19:26:30]MH_I2C_Read... [19:26:30]Read from MH i2c: 01 [19:26:30]MH_I2C_Read... [19:26:30]Read from MH i2c: 01 07 00 [19:26:30]MH_I2C_Read... [19:26:30]Read from MH i2c: 01 07 00 07 08 00 00 00 00 00 FF 0F 24 [19:26:30]RasterBufferAndPrint [19:26:30]line Счет N : (1)449419 [19:26:30]line ИНН: 02508201610067 [19:26:30]line Контрольно-Кассовый Чек [19:26:30]line ПРОДАЖА [19:26:30]line ТРК (МРК, ГНК) : 31 [19:26:30]line Товар: 2710124130 [19:26:30]line Аи-92-К-2 [19:26:30]line 9.720 * 66.90 [19:26:30]line = 650.27 [19:26:30]line НДС 12% НСП 1% [19:26:30]line > о реализуемом товаре [19:26:30]line ОКРУГЛЕНИЕ: -0.27 [19:26:30]line ИТОГО: 650.00 [19:26:30]line Внесено: 650.00 [19:26:30]line СДАЧА: 0.00 [19:26:30]line НСП 1% : 5.75 [19:26:30]line НДС 12% : 69.05 [19:26:30]line Наличными: 650.00 [19:26:30]line Безнал.: 0.00 [19:26:30]line Место: АЗС № 171 "Партнер Нефть" [19:26:30]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:26:30]line СНО: Общий режим [19:26:30]line Чек 423 26.10.2024 19:26 [19:26:30]line Смена: 543 ФФД: 1.0 [19:26:30]line ЗНМ: 0300000109 [19:26:30]line РНМ: 0000000000091777 [19:26:30]line Версия ККМ: 001 [19:26:30]line ФМ: 0000000000871756 [19:26:30]line ФД: 201661 [19:26:30]line ФПД: 200317650927602 [19:26:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T192629&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201661&fm=200317650927602&tin=02508201610067®Number=0000000000091777&sum=65000 [19:26:31]OFD Sender: Processing packet 201661 [packets to send 112, broken 111] [19:26:31]ProducePacketName [19:26:31]name=ofd_packets/00201661 [19:26:31]OFD Sender: To server: pG, [19:26:31]CommunicateWithHost lk.salyk.kg:30040 [19:26:31]ConnectInit lk.salyk.kg [19:26:31]written 0, free lines is 4095 [19:26:31]Connected sock=10 [19:26:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F9 7B 07 01 64 3C 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 32 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 65 42 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BD 13 03 00 35 04 06 00 B6 30 16 6C FF F2 D2 1F D9 6B 5E B1 93 86 [19:26:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 81 95 47 00 C6 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BD 13 03 00 F4 03 04 00 0D EE 1C 67 B6 04 01 00 00 4E 7F C5 E2 1E 21 22 3C [19:26:31]CommunicateWithHost err = 0 [19:26:31]CheckOFDResponse [19:26:31]1017 (14) - 77093643461234 [19:26:31]1041 (16) - 0000000000871756 [19:26:31]1040 (4) - 201661 [19:26:31]1012 (4) - 26.10.2024 13:26 [19:26:31]1206 (1) - 0 [19:26:31]OFD Sender: Remove packet 201661 [19:26:31]ProducePacketName [19:26:31]name=ofd_packets/00201661 [19:26:31]NVStorageDeleteData [19:26:31]Write to MH i2c: 01 00 00 32 08 3A [19:26:31]Write i2c OK [19:26:31]MH_I2C_Read... [19:26:31]Read from MH i2c: 01 [19:26:31]MH_I2C_Read... [19:26:31]Read from MH i2c: 01 07 00 [19:26:31]MH_I2C_Read... [19:26:31]Read from MH i2c: 01 07 00 32 08 00 00 00 00 00 95 0C E2 [19:26:31]RasterBufferAndPrint [19:26:31]line [19:26:31]line [19:26:31]line [19:26:31]line [19:26:31]line [19:26:31]written 0, free lines is 3226 [19:26:31]MH_Cut [19:26:31]Write to MH i2c: D1 01 00 39 08 01 13 [19:26:31]Write i2c OK [19:26:31]MH_I2C_Read... [19:26:31]Read from MH i2c: D1 [19:26:31]MH_I2C_Read... [19:26:31]Read from MH i2c: D1 01 00 [19:26:31]MH_I2C_Read... [19:26:31]Read from MH i2c: D1 01 00 39 08 00 12 [19:26:31]Write to MH i2c: 01 00 00 3A 08 42 [19:26:31]Write i2c OK [19:26:31]MH_I2C_Read... [19:26:31]OFD Sender: No OFD packet to send [19:26:32]*** Cut start [19:26:32]*** Purtial cut [19:26:32]*** Stage 1: CUTSNS_PIN = 1 [19:26:32]Read from MH i2c: 01 [19:26:32]MH_I2C_Read... [19:26:32]*** Stop cut motor [19:26:32]*** Cut end [19:26:32]Read from MH i2c: 01 07 00 [19:26:32]MH_I2C_Read... [19:26:32]Read from MH i2c: 01 07 00 3A 08 00 00 00 00 00 FF 0F 57 [19:26:32]process_action close_receipt done [19:26:32]requested_data is exist [19:26:32]produce_requested_data [19:26:32]requested_item fm.sn is exist - process it [19:26:32]wFMCommunicate request_size=4 [19:26:32]MH_SAM_APDU [19:26:32]CAPDU: 80 11 00 00 [19:26:32]Write to MH i2c: E2 08 00 3B 08 80 11 00 00 00 00 00 00 BD [19:26:32]Write i2c OK [19:26:32]MH_I2C_Read... [19:26:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:32]Read from MH i2c: E2 [19:26:32]MH_I2C_Read... [19:26:32]Read from MH i2c: E2 17 00 [19:26:32]MH_I2C_Read... [19:26:32]Read from MH i2c: E2 17 00 3B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 12 [19:26:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:26:32]wFMCommunicate OK [19:26:32]requested_item fd.num is exist - process it [19:26:32]SAM_PROTO_GetFieldsCounters [19:26:32]wFMCommunicate request_size=4 [19:26:32]MH_SAM_APDU [19:26:32]CAPDU: 80 13 00 00 [19:26:32]Write to MH i2c: E2 08 00 3C 08 80 13 00 00 00 00 00 00 C0 [19:26:32]Write i2c OK [19:26:32]MH_I2C_Read... [19:26:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:32]Read from MH i2c: E2 [19:26:32]MH_I2C_Read... [19:26:32]Read from MH i2c: E2 62 00 [19:26:32]MH_I2C_Read... [19:26:32]Read from MH i2c: E2 62 00 3C 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BD 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A7 01 00 00 5E 04 04 00 A7 01 00 00 57 04 04 00 A8 01 00 00 19 04 04 00 00 00 00 00 90 00 D5 [19:26:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BD 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A7 01 00 00 5E 04 04 00 A7 01 00 00 57 04 04 00 A8 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:26:32]wFMCommunicate OK [19:26:32]SAM_PROTO_GetFieldsCounters done [19:26:32]requested_item shift.num is exist - process it [19:26:32]requested_item shift.opened is exist - process it [19:26:32]req_shift_opened [19:26:32]FM_GetShiftState [19:26:32]SAM_PROTO_GetShiftState [19:26:32]wFMCommunicate request_size=4 [19:26:32]MH_SAM_APDU [19:26:32]CAPDU: 80 13 01 00 [19:26:32]Write to MH i2c: E2 08 00 3D 08 80 13 01 00 00 00 00 00 C2 [19:26:32]Write i2c OK [19:26:32]MH_I2C_Read... [19:26:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:32]Read from MH i2c: E2 [19:26:32]MH_I2C_Read... [19:26:32]Read from MH i2c: E2 0E 00 [19:26:32]MH_I2C_Read... [19:26:32]Read from MH i2c: E2 0E 00 3D 08 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D1 [19:26:32]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:26:32]wFMCommunicate OK [19:26:32]SAM_PROTO_GetShiftState done [19:26:32]FM_GetShiftState done [19:26:32]req_shift_opened done [19:26:32]requested_item shift.open_date is exist - process it [19:26:32]req_shift_open_date [19:26:32]req_shift_open_date done [19:26:32]produce_requested_data done [19:26:32]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201661,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [19:26:32]process_action_free close_receipt [19:26:32]json_value_free [19:26:32]json_value_free done [19:26:32]process_json_proto returns [19:26:32]Send response to host [19:26:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201661,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [19:26:32]free response buf [19:26:32]execute_script done [19:26:32]execute_script returns [19:26:32]free content buf [19:26:32]Sock 7.Close socket [19:26:32]Sock 7.Thread stoped [19:26:36]OFD Sender: No OFD packet to send [19:26:41]OFD Sender: No OFD packet to send [19:26:46]OFD Sender: No OFD packet to send [19:26:51]OFD Sender: No OFD packet to send [19:26:56]OFD Sender: No OFD packet to send [19:27:01]OFD Sender: No OFD packet to send [19:27:06]OFD Sender: No OFD packet to send [19:27:11]OFD Sender: No OFD packet to send [19:27:16]OFD Sender: No OFD packet to send [19:27:21]OFD Sender: No OFD packet to send [19:27:26]OFD Sender: No OFD packet to send [19:27:31]OFD Sender: No OFD packet to send [19:27:36]OFD Sender: No OFD packet to send [19:27:41]OFD Sender: No OFD packet to send [19:27:46]OFD Sender: No OFD packet to send [19:27:51]OFD Sender: No OFD packet to send [19:27:56]OFD Sender: No OFD packet to send [19:28:01]OFD Sender: No OFD packet to send [19:28:06]OFD Sender: No OFD packet to send [19:28:11]OFD Sender: No OFD packet to send [19:28:16]OFD Sender: No OFD packet to send [19:28:21]OFD Sender: No OFD packet to send [19:28:27]OFD Sender: No OFD packet to send [19:28:32]OFD Sender: No OFD packet to send [19:28:37]OFD Sender: No OFD packet to send [19:28:42]OFD Sender: No OFD packet to send [19:28:47]OFD Sender: No OFD packet to send [19:28:52]OFD Sender: No OFD packet to send [19:28:57]OFD Sender: No OFD packet to send [19:29:02]OFD Sender: No OFD packet to send [19:29:07]OFD Sender: No OFD packet to send [19:29:12]OFD Sender: No OFD packet to send [19:29:17]OFD Sender: No OFD packet to send [19:29:22]OFD Sender: No OFD packet to send [19:29:27]OFD Sender: No OFD packet to send [19:29:32]OFD Sender: No OFD packet to send [19:29:37]OFD Sender: No OFD packet to send [19:29:42]OFD Sender: No OFD packet to send [19:29:47]OFD Sender: No OFD packet to send [19:29:52]OFD Sender: No OFD packet to send [19:29:57]OFD Sender: No OFD packet to send [19:30:02]OFD Sender: No OFD packet to send [19:30:07]OFD Sender: No OFD packet to send [19:30:12]OFD Sender: No OFD packet to send [19:30:17]OFD Sender: No OFD packet to send [19:30:22]OFD Sender: No OFD packet to send [19:30:27]OFD Sender: No OFD packet to send [19:30:32]OFD Sender: No OFD packet to send [19:30:37]OFD Sender: No OFD packet to send [19:30:42]OFD Sender: No OFD packet to send [19:30:47]OFD Sender: No OFD packet to send [19:30:52]OFD Sender: No OFD packet to send [19:30:57]OFD Sender: No OFD packet to send [19:31:02]OFD Sender: No OFD packet to send [19:31:07]OFD Sender: No OFD packet to send [19:31:12]OFD Sender: No OFD packet to send [19:31:17]OFD Sender: No OFD packet to send [19:31:22]OFD Sender: No OFD packet to send [19:31:27]OFD Sender: No OFD packet to send [19:31:32]OFD Sender: No OFD packet to send [19:31:37]OFD Sender: No OFD packet to send [19:31:42]OFD Sender: No OFD packet to send [19:31:47]OFD Sender: No OFD packet to send [19:31:52]OFD Sender: No OFD packet to send [19:31:57]OFD Sender: No OFD packet to send [19:32:02]OFD Sender: No OFD packet to send [19:32:07]OFD Sender: No OFD packet to send [19:32:12]OFD Sender: No OFD packet to send [19:32:17]OFD Sender: No OFD packet to send [19:32:22]OFD Sender: No OFD packet to send [19:32:27]OFD Sender: No OFD packet to send [19:32:32]OFD Sender: No OFD packet to send [19:32:37]OFD Sender: No OFD packet to send [19:32:42]OFD Sender: No OFD packet to send [19:32:43]accept exits with 9 [19:32:43]New connection [19:32:43]New thread 3066608996 created [19:32:43]Thread 3066465636 joined [19:32:43]Waiting for new connection... [19:32:43] Sock 9.Parse request [19:32:43]Sock 9.Check first char [19:32:43]Sock 9.First char is OK [19:32:43]request: POST /json_proto HTTP/1.0 [19:32:43]Method: POST [19:32:43]URL: /json_proto [19:32:43]Method is POST - this is cgi request [19:32:43]url: /json_proto [19:32:43]query_string will be loaded in cgi processing [19:32:43]execute_cgi json_proto POST (null) [19:32:43]execute_cgi path=json_proto method=POST [19:32:43]POST find Content-Length [19:32:43]Host: 172.17.63.195:8080 [19:32:43]Content-Length: 766 [19:32:43]Content-Type: application/json [19:32:43] [19:32:43]POST finish read [19:32:43]Found Content-Length = 766 [19:32:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:43]execute_script... [19: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)449421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:43]POST & json_proto [19:32:43]process_json_proto [19:32:43]json parsed OK: [19:32:43]protocol is kg_v1.0 [19:32:43]action value=close_receipt [19:32:43]process_action close_receipt [19:32:43]cmd_close_receipt [19:32:43]MH_GetDate [19:32:43]Write to MH i2c: F0 00 00 3E 08 35 [19:32:43]Write i2c OK [19:32:43]MH_I2C_Read... [19:32:43]Read from MH i2c: F0 [19:32:43]MH_I2C_Read... [19:32:43]Read from MH i2c: F0 09 00 [19:32:43]MH_I2C_Read... [19:32:43]Read from MH i2c: F0 09 00 3E 08 00 DC 43 1D 67 68 46 19 67 0F [19:32:43]GetLastDocTimeStamp 1729970789 [19:32:43]current date 1729971164 [19:32:43]FM_GetShiftState [19:32:43]SAM_PROTO_GetShiftState [19:32:43]wFMCommunicate request_size=4 [19:32:43]MH_SAM_APDU [19:32:43]CAPDU: 80 13 01 00 [19:32:43]Write to MH i2c: E2 08 00 3F 08 80 13 01 00 00 00 00 00 C4 [19:32:43]Write i2c OK [19:32:43]MH_I2C_Read... [19:32:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:43]Read from MH i2c: E2 [19:32:43]MH_I2C_Read... [19:32:43]Read from MH i2c: E2 0E 00 [19:32:43]MH_I2C_Read... [19:32:43]Read from MH i2c: E2 0E 00 3F 08 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D3 [19:32:43]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:32:43]wFMCommunicate OK [19:32:43]SAM_PROTO_GetShiftState done [19:32:43]FM_GetShiftState done [19:32:43]opened in 1729900879 [19:32:43]opened+sec_in_day 1729987279 [19:32:43]quantity*price = 50041 [19:32:43]sum+1 = 50042 [19:32:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 424 26.10.2024 19:32 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201662 ФПД: 129691440822614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T193244&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201662&fm=129691440822614&tin=02508201610067®Number=0000000000091777&sum=50041 [19:32:44]StoreToDocumentArchive [19:32:44]shift 543 fd 201662 [19:32:44]save to /storage/0543/doc_00201662 [19:32:44]save last doc name /storage/0543/doc_00201662 to /storage/kkm_last_doc_name [19:32:44]save OK [19:32:44]Clear old archive folders... [19:32:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:32:44]tlvbuf is 0103C920 [19:32:44]SAM_PROTO_ClearQueue [19:32:44]wFMCommunicate request_size=4 [19:32:44]MH_SAM_APDU [19:32:44]CAPDU: 80 09 00 00 [19:32:44]Write to MH i2c: E2 08 00 4C 08 80 09 00 00 00 00 00 00 C6 [19:32:44]Write i2c OK [19:32:44]MH_I2C_Read... [19:32:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:32:45]Read from MH i2c: E2 [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: E2 03 00 [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: E2 03 00 4C 08 00 90 00 C8 [19:32:45]RAPDU: 90 00 [19:32:45]wFMCommunicate OK [19:32:45]SAM_PROTO_ClearQueue done [19:32:45]KKMCreateOFDPacket [19:32:45]OFDProtocolAddRootSTLVToBuf [19:32:45]FM_MakeSignedData [19:32:45]FM_MakeSignedData [19:32:45]SAM_PROTO_SignData [19:32:45]wFMCommunicate request_size=4 [19:32:45]MH_SAM_APDU [19:32:45]CAPDU: 80 0D 01 02 [19:32:45]Write to MH i2c: E2 08 00 4D 08 80 0D 01 02 00 00 00 00 CE [19:32:45]Write i2c OK [19:32:45]MH_I2C_Read... [19:32:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:32:45]Read from MH i2c: E2 [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: E2 03 00 [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: E2 03 00 4D 08 00 90 00 C9 [19:32:45]RAPDU: 90 00 [19:32:45]wFMCommunicate OK [19:32:45]wFMCommunicate request_size=255 [19:32:45]MH_SAM_APDU [19:32: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 32 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 79 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 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 01 00 00 F4 03 04 00 DC 43 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BE 13 03 00 35 04 06 00 75 [19:32:45]Write to MH i2c: E2 02 01 4E 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 32 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 79 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 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 01 00 00 F4 03 04 00 DC 43 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BE 13 03 00 35 04 06 00 75 00 00 6A [19:32:45]Write i2c OK [19:32:45]MH_I2C_Read... [19:32:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:45]Read from MH i2c: E2 [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: E2 03 00 [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: E2 03 00 4E 08 00 90 00 CA [19:32:45]RAPDU: 90 00 [19:32:45]wFMCommunicate OK [19:32:45]wFMCommunicate request_size=10 [19:32:45]MH_SAM_APDU [19:32:45]CAPDU: 80 0D 02 02 05 F4 24 42 B9 56 [19:32:45]Write to MH i2c: E2 0D 00 4F 08 80 0D 02 02 05 00 F4 24 42 B9 56 00 00 44 [19:32:45]Write i2c OK [19:32:45]MH_I2C_Read... [19:32:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:45]Read from MH i2c: E2 [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: E2 03 00 [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: E2 03 00 4F 08 00 90 00 CB [19:32:45]RAPDU: 90 00 [19:32:45]wFMCommunicate OK [19:32:45]wFMCommunicate request_size=4 [19:32:45]MH_SAM_APDU [19:32:45]CAPDU: 80 0D 03 02 [19:32:45]Write to MH i2c: E2 08 00 50 08 80 0D 03 02 00 00 00 00 D3 [19:32:45]Write i2c OK [19:32:45]MH_I2C_Read... [19:32:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:32:45]Read from MH i2c: E2 [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: E2 0B 00 [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: E2 0B 00 50 08 00 F0 6C 29 90 A5 38 C0 71 90 00 F7 [19:32:45]RAPDU: F0 6C 29 90 A5 38 C0 71 90 00 [19:32:45]wFMCommunicate OK [19:32:45]SAM_PROTO_SignData done [19:32:45]FM_MakeSignedData done [19:32:45]CreateOFDProtocolMessage [19:32:45]wFMCommunicate request_size=4 [19:32:45]MH_SAM_APDU [19:32:45]CAPDU: 80 11 00 00 [19:32:45]Write to MH i2c: E2 08 00 51 08 80 11 00 00 00 00 00 00 D3 [19:32:45]Write i2c OK [19:32:45]MH_I2C_Read... [19:32:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:45]Read from MH i2c: E2 [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: E2 17 00 [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: E2 17 00 51 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 28 [19:32:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:32:45]wFMCommunicate OK [19:32:45]CreateOFDProtocolMessage done [19:32:45]OFDSenderStorePacket 201662 [19:32:45]StoreOFDPacket docnum=201662 [19:32:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 36 4E 07 01 63 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 79 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 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 01 00 00 F4 03 04 00 DC 43 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BE 13 03 00 35 04 06 00 75 F4 24 42 B9 56 F0 6C 29 90 A5 38 C0 71 [19:32:45]CheckFolder [19:32:45]dirname=/storage/ofd_packets [19:32:45]CheckFolder done [19:32:45]ProducePacketName [19:32:45]name=ofd_packets/00201662 [19:32:45]NVStorageSaveData ofd_packets/00201662 [19:32:45]File name is /storage/ofd_packets/00201662 [19:32:45]Write 301 bytes [19:32:45]NVStorageSaveData done [19:32:45]OFDSenderStorePacket done [19:32:45]KKMCreateOFDPacket done [19:32:45]NVStorageSaveData kkm_last_timestamp [19:32:45]File name is /storage/kkm_last_timestamp [19:32:45]Write 4 bytes [19:32:45]NVStorageSaveData done [19:32:45]ExternCall_PrintAddStr [19:32:45]wPrintStart [19:32:45]Write to MH i2c: 01 00 00 52 08 5A [19:32:45]Write i2c OK [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: 01 [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: 01 07 00 [19:32:45]MH_I2C_Read... [19:32:45]Read from MH i2c: 01 07 00 52 08 00 00 00 00 00 FF 0F 6F [19:32:45]RasterBufferAndPrint [19:32:45]line Счет N : (1)449421 [19:32:45]line ИНН: 02508201610067 [19:32:45]line Контрольно-Кассовый Чек [19:32:45]line ПРОДАЖА [19:32:45]line ТРК (МРК, ГНК) : 62 [19:32:45]line Товар: 2710124130 [19:32:45]line Аи-92-К-2 [19:32:45]line 7.480 * 66.90 [19:32:45]line = 500.41 [19:32:45]line НДС 12% НСП 1% [19:32:45]line > о реализуемом товаре [19:32:45]line ИТОГО: 500.41 [19:32:45]line НСП 1% : 4.43 [19:32:45]line НДС 12% : 53.14 [19:32:45]line Наличными: 0.00 [19:32:45]line Безнал.: 500.41 [19:32:45]line Место: АЗС № 171 "Партнер Нефть" [19:32:45]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:32:45]line СНО: Общий режим [19:32:45]line Чек 424 26.10.2024 19:32 [19:32:45]line Смена: 543 ФФД: 1.0 [19:32:45]line ЗНМ: 0300000109 [19:32:45]line РНМ: 0000000000091777 [19:32:45]line Версия ККМ: 001 [19:32:45]line Платежная система: Mbank [19:32:45]line ФМ: 0000000000871756 [19:32:45]line ФД: 201662 [19:32:45]line ФПД: 129691440822614 [19:32:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T193244&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201662&fm=129691440822614&tin=02508201610067®Number=0000000000091777&sum=50041 [19:32:45]written 0, free lines is 4095 [19:32:45]OFD Sender: Processing packet 201662 [packets to send 112, broken 111] [19:32:45]ProducePacketName [19:32:45]name=ofd_packets/00201662 [19:32:45]OFD Sender: To server: pG, [19:32:45]CommunicateWithHost lk.salyk.kg:30040 [19:32:45]ConnectInit lk.salyk.kg [19:32:45]Connected sock=10 [19:32:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 36 4E 07 01 63 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 79 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 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 01 00 00 F4 03 04 00 DC 43 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BE 13 03 00 35 04 06 00 75 F4 24 42 B9 56 F0 6C 29 90 A5 38 C0 71 [19:32:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 8F D5 47 00 00 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BE 13 03 00 F4 03 04 00 84 EF 1C 67 B6 04 01 00 00 32 44 AC EE CF 3F 85 0F [19:32:46]CommunicateWithHost err = 0 [19:32:46]CheckOFDResponse [19:32:46]1017 (14) - 77093643461234 [19:32:46]1041 (16) - 0000000000871756 [19:32:46]1040 (4) - 201662 [19:32:46]1012 (4) - 26.10.2024 13:32 [19:32:46]1206 (1) - 0 [19:32:46]OFD Sender: Remove packet 201662 [19:32:46]ProducePacketName [19:32:46]name=ofd_packets/00201662 [19:32:46]NVStorageDeleteData [19:32:46]Write to MH i2c: 01 00 00 7B 08 83 [19:32:46]Write i2c OK [19:32:46]MH_I2C_Read... [19:32:46]Read from MH i2c: 01 [19:32:46]MH_I2C_Read... [19:32:46]Read from MH i2c: 01 07 00 [19:32:46]MH_I2C_Read... [19:32:46]Read from MH i2c: 01 07 00 7B 08 00 00 00 00 00 C4 0C 5A [19:32:46]RasterBufferAndPrint [19:32:46]line [19:32:46]line [19:32:46]line [19:32:46]line [19:32:46]line [19:32:46]written 0, free lines is 3273 [19:32:46]MH_Cut [19:32:46]Write to MH i2c: D1 01 00 82 08 01 5C [19:32:46]Write i2c OK [19:32:46]MH_I2C_Read... [19:32:46]Read from MH i2c: D1 [19:32:46]MH_I2C_Read... [19:32:46]Read from MH i2c: D1 01 00 [19:32:46]MH_I2C_Read... [19:32:46]Read from MH i2c: D1 01 00 82 08 00 5B [19:32:46]Write to MH i2c: 01 00 00 83 08 8B [19:32:46]Write i2c OK [19:32:46]MH_I2C_Read... [19:32:46]OFD Sender: No OFD packet to send [19:32:47]*** Cut start [19:32:47]*** Purtial cut [19:32:47]*** Stage 1: CUTSNS_PIN = 1 [19:32:47]Read from MH i2c: 01 [19:32:47]MH_I2C_Read... [19:32:47]*** Stop cut motor [19:32:47]*** Cut end [19:32:47]Read from MH i2c: 01 07 00 [19:32:47]MH_I2C_Read... [19:32:47]Read from MH i2c: 01 07 00 83 08 00 00 00 00 00 FF 0F A0 [19:32:47]process_action close_receipt done [19:32:47]requested_data is exist [19:32:47]produce_requested_data [19:32:47]requested_item fm.sn is exist - process it [19:32:47]wFMCommunicate request_size=4 [19:32:47]MH_SAM_APDU [19:32:47]CAPDU: 80 11 00 00 [19:32:47]Write to MH i2c: E2 08 00 84 08 80 11 00 00 00 00 00 00 06 [19:32:47]Write i2c OK [19:32:47]MH_I2C_Read... [19:32:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:47]Read from MH i2c: E2 [19:32:47]MH_I2C_Read... [19:32:47]Read from MH i2c: E2 17 00 [19:32:47]MH_I2C_Read... [19:32:47]Read from MH i2c: E2 17 00 84 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5B [19:32:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:32:47]wFMCommunicate OK [19:32:47]requested_item fd.num is exist - process it [19:32:47]SAM_PROTO_GetFieldsCounters [19:32:47]wFMCommunicate request_size=4 [19:32:47]MH_SAM_APDU [19:32:47]CAPDU: 80 13 00 00 [19:32:47]Write to MH i2c: E2 08 00 85 08 80 13 00 00 00 00 00 00 09 [19:32:47]Write i2c OK [19:32:47]MH_I2C_Read... [19:32:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:32:47]Read from MH i2c: E2 [19:32:47]MH_I2C_Read... [19:32:47]Read from MH i2c: E2 62 00 [19:32:47]MH_I2C_Read... [19:32:47]Read from MH i2c: E2 62 00 85 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BE 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A8 01 00 00 5E 04 04 00 A8 01 00 00 57 04 04 00 A9 01 00 00 19 04 04 00 00 00 00 00 90 00 22 [19:32:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BE 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A8 01 00 00 5E 04 04 00 A8 01 00 00 57 04 04 00 A9 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:32:47]wFMCommunicate OK [19:32:47]SAM_PROTO_GetFieldsCounters done [19:32:47]requested_item shift.num is exist - process it [19:32:47]requested_item shift.opened is exist - process it [19:32:47]req_shift_opened [19:32:47]FM_GetShiftState [19:32:47]SAM_PROTO_GetShiftState [19:32:47]wFMCommunicate request_size=4 [19:32:47]MH_SAM_APDU [19:32:47]CAPDU: 80 13 01 00 [19:32:47]Write to MH i2c: E2 08 00 86 08 80 13 01 00 00 00 00 00 0B [19:32:47]Write i2c OK [19:32:47]MH_I2C_Read... [19:32:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:47]Read from MH i2c: E2 [19:32:47]MH_I2C_Read... [19:32:47]Read from MH i2c: E2 0E 00 [19:32:47]MH_I2C_Read... [19:32:47]Read from MH i2c: E2 0E 00 86 08 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 1A [19:32:47]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:32:47]wFMCommunicate OK [19:32:47]SAM_PROTO_GetShiftState done [19:32:47]FM_GetShiftState done [19:32:47]req_shift_opened done [19:32:47]requested_item shift.open_date is exist - process it [19:32:47]req_shift_open_date [19:32:47]req_shift_open_date done [19:32:47]produce_requested_data done [19:32:47]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201662,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [19:32:47]process_action_free close_receipt [19:32:47]json_value_free [19:32:47]json_value_free done [19:32:47]process_json_proto returns [19:32:47]Send response to host [19:32:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201662,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [19:32:47]free response buf [19:32:47]execute_script done [19:32:47]execute_script returns [19:32:47]free content buf [19:32:47]Sock 9.Close socket [19:32:47]Sock 9.Thread stoped [19:32:51]OFD Sender: No OFD packet to send [19:32:54]accept exits with 7 [19:32:54]New connection [19:32:54]New thread 3066465636 created [19:32:54]Thread 3066608996 joined [19:32:54]Waiting for new connection... [19:32:54] Sock 7.Parse request [19:32:54]Sock 7.Check first char [19:32:54]Sock 7.First char is OK [19:32:54]request: POST /json_proto HTTP/1.0 [19:32:54]Method: POST [19:32:54]URL: /json_proto [19:32:54]Method is POST - this is cgi request [19:32:54]url: /json_proto [19:32:54]query_string will be loaded in cgi processing [19:32:54]execute_cgi json_proto POST (null) [19:32:54]execute_cgi path=json_proto method=POST [19:32:54]POST find Content-Length [19:32:54]Host: 172.17.63.195:8080 [19:32:54]Content-Length: 674 [19:32:54]Content-Type: application/json [19:32:54] [19:32:54]POST finish read [19:32:54]Found Content-Length = 674 [19:32:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [19:32:54]execute_script... [19:32: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)449420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [19:32:54]POST & json_proto [19:32:54]process_json_proto [19:32:54]json parsed OK: [19:32:54]protocol is kg_v1.0 [19:32:54]action value=close_receipt [19:32:54]process_action close_receipt [19:32:54]cmd_close_receipt [19:32:54]MH_GetDate [19:32:54]Write to MH i2c: F0 00 00 87 08 7E [19:32:54]Write i2c OK [19:32:54]MH_I2C_Read... [19:32:54]Read from MH i2c: F0 [19:32:54]MH_I2C_Read... [19:32:54]Read from MH i2c: F0 09 00 [19:32:54]MH_I2C_Read... [19:32:54]Read from MH i2c: F0 09 00 87 08 00 E7 43 1D 67 68 46 19 67 63 [19:32:54]GetLastDocTimeStamp 1729971164 [19:32:54]current date 1729971175 [19:32:54]FM_GetShiftState [19:32:54]SAM_PROTO_GetShiftState [19:32:54]wFMCommunicate request_size=4 [19:32:54]MH_SAM_APDU [19:32:54]CAPDU: 80 13 01 00 [19:32:54]Write to MH i2c: E2 08 00 88 08 80 13 01 00 00 00 00 00 0D [19:32:54]Write i2c OK [19:32:54]MH_I2C_Read... [19:32:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:54]Read from MH i2c: E2 [19:32:54]MH_I2C_Read... [19:32:54]Read from MH i2c: E2 0E 00 [19:32:54]MH_I2C_Read... [19:32:54]Read from MH i2c: E2 0E 00 88 08 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 1C [19:32:54]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:32:54]wFMCommunicate OK [19:32:54]SAM_PROTO_GetShiftState done [19:32:54]FM_GetShiftState done [19:32:54]opened in 1729900879 [19:32:54]opened+sec_in_day 1729987279 [19:32:54]quantity*price = 50063 [19:32:54]sum+1 = 50064 [19:32:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 425 26.10.2024 19:32 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201663 ФПД: 76117012477841 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T193255&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201663&fm=76117012477841&tin=02508201610067®Number=0000000000091777&sum=50000 [19:32:55]StoreToDocumentArchive [19:32:55]shift 543 fd 201663 [19:32:55]save to /storage/0543/doc_00201663 [19:32:55]save last doc name /storage/0543/doc_00201663 to /storage/kkm_last_doc_name [19:32:55]save OK [19:32:55]Clear old archive folders... [19:32:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:32:55]tlvbuf is 01070540 [19:32:55]SAM_PROTO_ClearQueue [19:32:55]wFMCommunicate request_size=4 [19:32:55]MH_SAM_APDU [19:32:55]CAPDU: 80 09 00 00 [19:32:55]Write to MH i2c: E2 08 00 95 08 80 09 00 00 00 00 00 00 0F [19:32:55]Write i2c OK [19:32:55]MH_I2C_Read... [19:32:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:32:55]Read from MH i2c: E2 [19:32:55]MH_I2C_Read... [19:32:55]Read from MH i2c: E2 03 00 [19:32:55]MH_I2C_Read... [19:32:55]Read from MH i2c: E2 03 00 95 08 00 90 00 11 [19:32:55]RAPDU: 90 00 [19:32:55]wFMCommunicate OK [19:32:55]SAM_PROTO_ClearQueue done [19:32:55]KKMCreateOFDPacket [19:32:55]OFDProtocolAddRootSTLVToBuf [19:32:55]FM_MakeSignedData [19:32:55]FM_MakeSignedData [19:32:55]SAM_PROTO_SignData [19:32:55]wFMCommunicate request_size=4 [19:32:55]MH_SAM_APDU [19:32:55]CAPDU: 80 0D 01 02 [19:32:55]Write to MH i2c: E2 08 00 96 08 80 0D 01 02 00 00 00 00 17 [19:32:55]Write i2c OK [19:32:55]MH_I2C_Read... [19:32:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:32:56]Read from MH i2c: E2 [19:32:56]MH_I2C_Read... [19:32:56]Read from MH i2c: E2 03 00 [19:32:56]MH_I2C_Read... [19:32:56]Read from MH i2c: E2 03 00 96 08 00 90 00 12 [19:32:56]RAPDU: 90 00 [19:32:56]wFMCommunicate OK [19:32:56]wFMCommunicate request_size=255 [19:32:56]MH_SAM_APDU [19:32:56]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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 A9 01 00 00 F4 03 04 00 E7 43 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BF 13 03 00 35 04 06 00 45 3A 5F 7D [19:32:56]Write to MH i2c: E2 02 01 97 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 A9 01 00 00 F4 03 04 00 E7 43 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BF 13 03 00 35 04 06 00 45 3A 5F 7D 00 00 D2 [19:32:56]Write i2c OK [19:32:56]MH_I2C_Read... [19:32:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:56]Read from MH i2c: E2 [19:32:56]MH_I2C_Read... [19:32:56]Read from MH i2c: E2 03 00 [19:32:56]MH_I2C_Read... [19:32:56]Read from MH i2c: E2 03 00 97 08 00 90 00 13 [19:32:56]RAPDU: 90 00 [19:32:56]wFMCommunicate OK [19:32:56]wFMCommunicate request_size=7 [19:32:56]MH_SAM_APDU [19:32:56]CAPDU: 80 0D 02 02 02 77 91 [19:32:56]Write to MH i2c: E2 0A 00 98 08 80 0D 02 02 02 00 77 91 00 00 26 [19:32:56]Write i2c OK [19:32:56]MH_I2C_Read... [19:32:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:56]Read from MH i2c: E2 [19:32:56]MH_I2C_Read... [19:32:56]Read from MH i2c: E2 03 00 [19:32:56]MH_I2C_Read... [19:32:56]Read from MH i2c: E2 03 00 98 08 00 90 00 14 [19:32:56]RAPDU: 90 00 [19:32:56]wFMCommunicate OK [19:32:56]wFMCommunicate request_size=4 [19:32:56]MH_SAM_APDU [19:32:56]CAPDU: 80 0D 03 02 [19:32:56]Write to MH i2c: E2 08 00 99 08 80 0D 03 02 00 00 00 00 1C [19:32:56]Write i2c OK [19:32:56]MH_I2C_Read... [19:32:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:32:56]Read from MH i2c: E2 [19:32:56]MH_I2C_Read... [19:32:56]Read from MH i2c: E2 0B 00 [19:32:56]MH_I2C_Read... [19:32:56]Read from MH i2c: E2 0B 00 99 08 00 2C FE 2A 86 A6 89 0C 57 90 00 89 [19:32:56]RAPDU: 2C FE 2A 86 A6 89 0C 57 90 00 [19:32:56]wFMCommunicate OK [19:32:56]SAM_PROTO_SignData done [19:32:56]FM_MakeSignedData done [19:32:56]CreateOFDProtocolMessage [19:32:56]wFMCommunicate request_size=4 [19:32:56]MH_SAM_APDU [19:32:56]CAPDU: 80 11 00 00 [19:32:56]Write to MH i2c: E2 08 00 9A 08 80 11 00 00 00 00 00 00 1C [19:32:56]Write i2c OK [19:32:56]MH_I2C_Read... [19:32:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:56]Read from MH i2c: E2 [19:32:56]MH_I2C_Read... [19:32:56]Read from MH i2c: E2 17 00 [19:32:56]MH_I2C_Read... [19:32:56]Read from MH i2c: E2 17 00 9A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 71 [19:32:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:32:56]wFMCommunicate OK [19:32:56]CreateOFDProtocolMessage done [19:32:56]OFDSenderStorePacket 201663 [19:32:56]StoreOFDPacket docnum=201663 [19:32:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 ED EE 04 01 6F CE 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 A9 01 00 00 F4 03 04 00 E7 43 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BF 13 03 00 35 04 06 00 45 3A 5F 7D 77 91 2C FE 2A 86 A6 89 0C 57 [19:32:56]CheckFolder [19:32:56]dirname=/storage/ofd_packets [19:32:56]CheckFolder done [19:32:56]ProducePacketName [19:32:56]name=ofd_packets/00201663 [19:32:56]NVStorageSaveData ofd_packets/00201663 [19:32:56]File name is /storage/ofd_packets/00201663 [19:32:56]Write 298 bytes [19:32:56]NVStorageSaveData done [19:32:56]OFDSenderStorePacket done [19:32:56]KKMCreateOFDPacket done [19:32:56]NVStorageSaveData kkm_last_timestamp [19:32:56]File name is /storage/kkm_last_timestamp [19:32:56]Write 4 bytes [19:32:56]NVStorageSaveData done [19:32:56]ExternCall_PrintAddStr [19:32:56]wPrintStart [19:32:56]Write to MH i2c: 01 00 00 9B 08 A3 [19:32:56]Write i2c OK [19:32:56]MH_I2C_Read... [19:32:56]Read from MH i2c: 01 [19:32:56]MH_I2C_Read... [19:32:56]Read from MH i2c: 01 07 00 [19:32:56]MH_I2C_Read... [19:32:56]Read from MH i2c: 01 07 00 9B 08 00 00 00 00 00 FF 0F B8 [19:32:56]RasterBufferAndPrint [19:32:56]line Счет N : (1)449420 [19:32:56]line ИНН: 02508201610067 [19:32:56]line Контрольно-Кассовый Чек [19:32:56]line ПРОДАЖА [19:32:56]line ТРК (МРК, ГНК) : 33 [19:32:56]line Товар: 2710194210 [19:32:56]line ДТ-К-2 [19:32:56]line 6.570 * 76.20 [19:32:56]line = 500.63 [19:32:56]line НДС 12% НСП 1% [19:32:56]line > о реализуемом товаре [19:32:56]line ОКРУГЛЕНИЕ: -0.63 [19:32:56]line ИТОГО: 500.00 [19:32:56]line Внесено: 500.00 [19:32:56]line СДАЧА: 0.00 [19:32:56]line НСП 1% : 4.43 [19:32:56]line НДС 12% : 53.16 [19:32:56]line Наличными: 500.00 [19:32:56]line Безнал.: 0.00 [19:32:56]line Место: АЗС № 171 "Партнер Нефть" [19:32:56]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:32:56]line СНО: Общий режим [19:32:56]line Чек 425 26.10.2024 19:32 [19:32:56]line Смена: 543 ФФД: 1.0 [19:32:56]line ЗНМ: 0300000109 [19:32:56]line РНМ: 0000000000091777 [19:32:56]line Версия ККМ: 001 [19:32:56]line ФМ: 0000000000871756 [19:32:56]line ФД: 201663 [19:32:56]line ФПД: 76117012477841 [19:32:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T193255&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201663&fm=76117012477841&tin=02508201610067®Number=0000000000091777&sum=50000 [19:32:56]OFD Sender: Processing packet 201663 [packets to send 112, broken 111] [19:32:56]ProducePacketName [19:32:56]name=ofd_packets/00201663 [19:32:56]OFD Sender: To server: pG, [19:32:56]CommunicateWithHost lk.salyk.kg:30040 [19:32:56]ConnectInit lk.salyk.kg [19:32:56]Connected sock=10 [19:32:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 ED EE 04 01 6F CE 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 A9 01 00 00 F4 03 04 00 E7 43 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BF 13 03 00 35 04 06 00 45 3A 5F 7D 77 91 2C FE 2A 86 A6 89 0C 57 [19:32:56]written 0, free lines is 4095 [19:32:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 17 EB 47 00 33 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 BF 13 03 00 F4 03 04 00 8F EF 1C 67 B6 04 01 00 00 90 CD E7 17 0D E5 2F 99 [19:32:56]CommunicateWithHost err = 0 [19:32:56]CheckOFDResponse [19:32:57]1017 (14) - 77093643461234 [19:32:57]1041 (16) - 0000000000871756 [19:32:57]1040 (4) - 201663 [19:32:57]1012 (4) - 26.10.2024 13:33 [19:32:57]1206 (1) - 0 [19:32:57]OFD Sender: Remove packet 201663 [19:32:57]ProducePacketName [19:32:57]name=ofd_packets/00201663 [19:32:57]NVStorageDeleteData [19:32:57]Write to MH i2c: 01 00 00 C6 08 CE [19:32:57]Write i2c OK [19:32:57]MH_I2C_Read... [19:32:57]Read from MH i2c: 01 [19:32:57]MH_I2C_Read... [19:32:57]Read from MH i2c: 01 07 00 [19:32:57]MH_I2C_Read... [19:32:57]Read from MH i2c: 01 07 00 C6 08 00 00 00 00 00 9A 0C 7B [19:32:57]RasterBufferAndPrint [19:32:57]line [19:32:57]line [19:32:57]line [19:32:57]line [19:32:57]line [19:32:57]written 0, free lines is 3232 [19:32:57]MH_Cut [19:32:57]Write to MH i2c: D1 01 00 CD 08 01 A7 [19:32:57]Write i2c OK [19:32:57]MH_I2C_Read... [19:32:57]Read from MH i2c: D1 [19:32:57]MH_I2C_Read... [19:32:57]Read from MH i2c: D1 01 00 [19:32:57]MH_I2C_Read... [19:32:57]Read from MH i2c: D1 01 00 CD 08 00 A6 [19:32:57]Write to MH i2c: 01 00 00 CE 08 D6 [19:32:57]Write i2c OK [19:32:57]MH_I2C_Read... [19:32:57]OFD Sender: No OFD packet to send [19:32:58]*** Cut start [19:32:58]*** Purtial cut [19:32:58]*** Stage 1: CUTSNS_PIN = 1 [19:32:58]Read from MH i2c: 01 [19:32:58]MH_I2C_Read... [19:32:58]*** Stop cut motor [19:32:58]*** Cut end [19:32:58]Read from MH i2c: 01 07 00 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: 01 07 00 CE 08 00 00 00 00 00 FF 0F EB [19:32:58]process_action close_receipt done [19:32:58]requested_data is exist [19:32:58]produce_requested_data [19:32:58]requested_item fm.sn is exist - process it [19:32:58]wFMCommunicate request_size=4 [19:32:58]MH_SAM_APDU [19:32:58]CAPDU: 80 11 00 00 [19:32:58]Write to MH i2c: E2 08 00 CF 08 80 11 00 00 00 00 00 00 51 [19:32:58]Write i2c OK [19:32:58]MH_I2C_Read... [19:32:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:58]Read from MH i2c: E2 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: E2 17 00 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: E2 17 00 CF 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A6 [19:32:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:32:58]wFMCommunicate OK [19:32:58]requested_item fd.num is exist - process it [19:32:58]SAM_PROTO_GetFieldsCounters [19:32:58]wFMCommunicate request_size=4 [19:32:58]MH_SAM_APDU [19:32:58]CAPDU: 80 13 00 00 [19:32:58]Write to MH i2c: E2 08 00 D0 08 80 13 00 00 00 00 00 00 54 [19:32:58]Write i2c OK [19:32:58]MH_I2C_Read... [19:32:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:32:58]Read from MH i2c: E2 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: E2 62 00 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: E2 62 00 D0 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BF 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A9 01 00 00 5E 04 04 00 A9 01 00 00 57 04 04 00 AA 01 00 00 19 04 04 00 00 00 00 00 90 00 71 [19:32:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 BF 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A9 01 00 00 5E 04 04 00 A9 01 00 00 57 04 04 00 AA 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:32:58]wFMCommunicate OK [19:32:58]SAM_PROTO_GetFieldsCounters done [19:32:58]requested_item shift.num is exist - process it [19:32:58]requested_item shift.opened is exist - process it [19:32:58]req_shift_opened [19:32:58]FM_GetShiftState [19:32:58]SAM_PROTO_GetShiftState [19:32:58]wFMCommunicate request_size=4 [19:32:58]MH_SAM_APDU [19:32:58]CAPDU: 80 13 01 00 [19:32:58]Write to MH i2c: E2 08 00 D1 08 80 13 01 00 00 00 00 00 56 [19:32:58]Write i2c OK [19:32:58]MH_I2C_Read... [19:32:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:58]Read from MH i2c: E2 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: E2 0E 00 [19:32:58]MH_I2C_Read... [19:32:58]Read from MH i2c: E2 0E 00 D1 08 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 65 [19:32:58]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:32:58]wFMCommunicate OK [19:32:58]SAM_PROTO_GetShiftState done [19:32:58]FM_GetShiftState done [19:32:58]req_shift_opened done [19:32:58]requested_item shift.open_date is exist - process it [19:32:58]req_shift_open_date [19:32:58]req_shift_open_date done [19:32:58]produce_requested_data done [19:32:58]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201663,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [19:32:58]process_action_free close_receipt [19:32:58]json_value_free [19:32:58]json_value_free done [19:32:58]process_json_proto returns [19:32:58]Send response to host [19:32:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201663,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [19:32:58]free response buf [19:32:58]execute_script done [19:32:58]execute_script returns [19:32:58]free content buf [19:32:58]Sock 7.Close socket [19:32:58]Sock 7.Thread stoped [19:33:02]OFD Sender: No OFD packet to send [19:33:07]OFD Sender: No OFD packet to send [19:33:12]OFD Sender: No OFD packet to send [19:33:17]OFD Sender: No OFD packet to send [19:33:22]OFD Sender: No OFD packet to send [19:33:27]OFD Sender: No OFD packet to send [19:33:32]OFD Sender: No OFD packet to send [19:33:37]OFD Sender: No OFD packet to send [19:33:42]OFD Sender: No OFD packet to send [19:33:47]OFD Sender: No OFD packet to send [19:33:49]accept exits with 9 [19:33:49]New connection [19:33:49]New thread 3066608996 created [19:33:49]Thread 3066465636 joined [19:33:49]Waiting for new connection... [19:33:49] Sock 9.Parse request [19:33:49]Sock 9.Check first char [19:33:49]Sock 9.First char is OK [19:33:49]request: POST /json_proto HTTP/1.0 [19:33:49]Method: POST [19:33:49]URL: /json_proto [19:33:49]Method is POST - this is cgi request [19:33:49]url: /json_proto [19:33:49]query_string will be loaded in cgi processing [19:33:49]execute_cgi json_proto POST (null) [19:33:49]execute_cgi path=json_proto method=POST [19:33:49]POST find Content-Length [19:33:49]Host: 172.17.63.195:8080 [19:33:49]Content-Length: 677 [19:33:49]Content-Type: application/json [19:33:49] [19:33:49]POST finish read [19:33:49]Found Content-Length = 677 [19:33:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [19:33:49]execute_script... [19:33:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [19:33:49]POST & json_proto [19:33:49]process_json_proto [19:33:49]json parsed OK: [19:33:49]protocol is kg_v1.0 [19:33:49]action value=close_receipt [19:33:49]process_action close_receipt [19:33:49]cmd_close_receipt [19:33:49]MH_GetDate [19:33:49]Write to MH i2c: F0 00 00 D2 08 C9 [19:33:49]Write i2c OK [19:33:49]MH_I2C_Read... [19:33:49]Read from MH i2c: F0 [19:33:49]MH_I2C_Read... [19:33:49]Read from MH i2c: F0 09 00 [19:33:49]MH_I2C_Read... [19:33:49]Read from MH i2c: F0 09 00 D2 08 00 1E 44 1D 67 68 46 19 67 E6 [19:33:49]GetLastDocTimeStamp 1729971175 [19:33:49]current date 1729971230 [19:33:49]FM_GetShiftState [19:33:49]SAM_PROTO_GetShiftState [19:33:49]wFMCommunicate request_size=4 [19:33:49]MH_SAM_APDU [19:33:49]CAPDU: 80 13 01 00 [19:33:49]Write to MH i2c: E2 08 00 D3 08 80 13 01 00 00 00 00 00 58 [19:33:49]Write i2c OK [19:33:49]MH_I2C_Read... [19:33:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:49]Read from MH i2c: E2 [19:33:49]MH_I2C_Read... [19:33:49]Read from MH i2c: E2 0E 00 [19:33:49]MH_I2C_Read... [19:33:49]Read from MH i2c: E2 0E 00 D3 08 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 67 [19:33:49]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:33:49]wFMCommunicate OK [19:33:49]SAM_PROTO_GetShiftState done [19:33:49]FM_GetShiftState done [19:33:49]opened in 1729900879 [19:33:49]opened+sec_in_day 1729987279 [19:33:49]quantity*price = 50041 [19:33:49]sum+1 = 50042 [19:33:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 426 26.10.2024 19:33 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201664 ФПД: 147952818576803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T193350&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201664&fm=147952818576803&tin=02508201610067®Number=0000000000091777&sum=50000 [19:33:50]StoreToDocumentArchive [19:33:50]shift 543 fd 201664 [19:33:50]save to /storage/0543/doc_00201664 [19:33:50]save last doc name /storage/0543/doc_00201664 to /storage/kkm_last_doc_name [19:33:50]save OK [19:33:50]Clear old archive folders... [19:33:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:33:50]tlvbuf is B6E6D490 [19:33:50]SAM_PROTO_ClearQueue [19:33:50]wFMCommunicate request_size=4 [19:33:50]MH_SAM_APDU [19:33:50]CAPDU: 80 09 00 00 [19:33:50]Write to MH i2c: E2 08 00 E0 08 80 09 00 00 00 00 00 00 5A [19:33:50]Write i2c OK [19:33:50]MH_I2C_Read... [19:33:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:33:50]Read from MH i2c: E2 [19:33:50]MH_I2C_Read... [19:33:50]Read from MH i2c: E2 03 00 [19:33:50]MH_I2C_Read... [19:33:50]Read from MH i2c: E2 03 00 E0 08 00 90 00 5C [19:33:50]RAPDU: 90 00 [19:33:50]wFMCommunicate OK [19:33:50]SAM_PROTO_ClearQueue done [19:33:50]KKMCreateOFDPacket [19:33:50]OFDProtocolAddRootSTLVToBuf [19:33:50]FM_MakeSignedData [19:33:50]FM_MakeSignedData [19:33:50]SAM_PROTO_SignData [19:33:50]wFMCommunicate request_size=4 [19:33:50]MH_SAM_APDU [19:33:50]CAPDU: 80 0D 01 02 [19:33:50]Write to MH i2c: E2 08 00 E1 08 80 0D 01 02 00 00 00 00 62 [19:33:50]Write i2c OK [19:33:50]MH_I2C_Read... [19:33:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:33:50]Read from MH i2c: E2 [19:33:50]MH_I2C_Read... [19:33:50]Read from MH i2c: E2 03 00 [19:33:50]MH_I2C_Read... [19:33:50]Read from MH i2c: E2 03 00 E1 08 00 90 00 5D [19:33:50]RAPDU: 90 00 [19:33:50]wFMCommunicate OK [19:33:50]wFMCommunicate request_size=255 [19:33:50]MH_SAM_APDU [19:33: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 32 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 AA 01 00 00 F4 03 04 00 1E 44 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C0 13 03 00 35 04 06 00 86 [19:33:50]Write to MH i2c: E2 02 01 E2 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 32 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 AA 01 00 00 F4 03 04 00 1E 44 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C0 13 03 00 35 04 06 00 86 00 00 04 [19:33:50]Write i2c OK [19:33:50]MH_I2C_Read... [19:33:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:51]Read from MH i2c: E2 [19:33:51]MH_I2C_Read... [19:33:51]Read from MH i2c: E2 03 00 [19:33:51]MH_I2C_Read... [19:33:51]Read from MH i2c: E2 03 00 E2 08 00 90 00 5E [19:33:51]RAPDU: 90 00 [19:33:51]wFMCommunicate OK [19:33:51]wFMCommunicate request_size=10 [19:33:51]MH_SAM_APDU [19:33:51]CAPDU: 80 0D 02 02 05 8F F3 31 DD A3 [19:33:51]Write to MH i2c: E2 0D 00 E3 08 80 0D 02 02 05 00 8F F3 31 DD A3 00 00 A2 [19:33:51]Write i2c OK [19:33:51]MH_I2C_Read... [19:33:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:51]Read from MH i2c: E2 [19:33:51]MH_I2C_Read... [19:33:51]Read from MH i2c: E2 03 00 [19:33:51]MH_I2C_Read... [19:33:51]Read from MH i2c: E2 03 00 E3 08 00 90 00 5F [19:33:51]RAPDU: 90 00 [19:33:51]wFMCommunicate OK [19:33:51]wFMCommunicate request_size=4 [19:33:51]MH_SAM_APDU [19:33:51]CAPDU: 80 0D 03 02 [19:33:51]Write to MH i2c: E2 08 00 E4 08 80 0D 03 02 00 00 00 00 67 [19:33:51]Write i2c OK [19:33:51]MH_I2C_Read... [19:33:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:33:51]Read from MH i2c: E2 [19:33:51]MH_I2C_Read... [19:33:51]Read from MH i2c: E2 0B 00 [19:33:51]MH_I2C_Read... [19:33:51]Read from MH i2c: E2 0B 00 E4 08 00 11 6C B8 83 47 4B 90 C4 90 00 06 [19:33:51]RAPDU: 11 6C B8 83 47 4B 90 C4 90 00 [19:33:51]wFMCommunicate OK [19:33:51]SAM_PROTO_SignData done [19:33:51]FM_MakeSignedData done [19:33:51]CreateOFDProtocolMessage [19:33:51]wFMCommunicate request_size=4 [19:33:51]MH_SAM_APDU [19:33:51]CAPDU: 80 11 00 00 [19:33:51]Write to MH i2c: E2 08 00 E5 08 80 11 00 00 00 00 00 00 67 [19:33:51]Write i2c OK [19:33:51]MH_I2C_Read... [19:33:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:51]Read from MH i2c: E2 [19:33:51]MH_I2C_Read... [19:33:51]Read from MH i2c: E2 17 00 [19:33:51]MH_I2C_Read... [19:33:51]Read from MH i2c: E2 17 00 E5 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BC [19:33:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:33:51]wFMCommunicate OK [19:33:51]CreateOFDProtocolMessage done [19:33:51]OFDSenderStorePacket 201664 [19:33:51]StoreOFDPacket docnum=201664 [19:33:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 DC 32 07 01 01 37 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 32 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 AA 01 00 00 F4 03 04 00 1E 44 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C0 13 03 00 35 04 06 00 86 8F F3 31 DD A3 11 6C B8 83 47 4B 90 C4 [19:33:51]CheckFolder [19:33:51]dirname=/storage/ofd_packets [19:33:51]CheckFolder done [19:33:51]ProducePacketName [19:33:51]name=ofd_packets/00201664 [19:33:51]NVStorageSaveData ofd_packets/00201664 [19:33:51]File name is /storage/ofd_packets/00201664 [19:33:51]Write 301 bytes [19:33:51]NVStorageSaveData done [19:33:51]OFDSenderStorePacket done [19:33:51]KKMCreateOFDPacket done [19:33:51]NVStorageSaveData kkm_last_timestamp [19:33:51]File name is /storage/kkm_last_timestamp [19:33:51]Write 4 bytes [19:33:51]NVStorageSaveData done [19:33:51]ExternCall_PrintAddStr [19:33:51]wPrintStart [19:33:51]Write to MH i2c: 01 00 00 E6 08 EE [19:33:51]Write i2c OK [19:33:51]MH_I2C_Read... [19:33:51]Read from MH i2c: 01 [19:33:51]MH_I2C_Read... [19:33:51]Read from MH i2c: 01 07 00 [19:33:51]MH_I2C_Read... [19:33:51]Read from MH i2c: 01 07 00 E6 08 00 00 00 00 00 FF 0F 03 [19:33:51]RasterBufferAndPrint [19:33:51]line Счет N : (1)449422 [19:33:51]line ИНН: 02508201610067 [19:33:51]line Контрольно-Кассовый Чек [19:33:51]line ПРОДАЖА [19:33:51]line ТРК (МРК, ГНК) : 41 [19:33:51]line Товар: 2710124130 [19:33:51]line Аи-92-К-2 [19:33:51]line 7.480 * 66.90 [19:33:51]line = 500.41 [19:33:51]line НДС 12% НСП 1% [19:33:51]line > о реализуемом товаре [19:33:51]line ОКРУГЛЕНИЕ: -0.41 [19:33:51]line ИТОГО: 500.00 [19:33:51]line Внесено: 500.00 [19:33:51]line СДАЧА: 0.00 [19:33:51]line НСП 1% : 4.43 [19:33:51]line НДС 12% : 53.14 [19:33:51]line Наличными: 500.00 [19:33:51]line Безнал.: 0.00 [19:33:51]line Место: АЗС № 171 "Партнер Нефть" [19:33:51]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:33:51]line СНО: Общий режим [19:33:51]line Чек 426 26.10.2024 19:33 [19:33:51]line Смена: 543 ФФД: 1.0 [19:33:51]line ЗНМ: 0300000109 [19:33:51]line РНМ: 0000000000091777 [19:33:51]line Версия ККМ: 001 [19:33:51]line ФМ: 0000000000871756 [19:33:51]line ФД: 201664 [19:33:51]line ФПД: 147952818576803 [19:33:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T193350&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201664&fm=147952818576803&tin=02508201610067®Number=0000000000091777&sum=50000 [19:33:51]OFD Sender: Processing packet 201664 [packets to send 112, broken 111] [19:33:51]ProducePacketName [19:33:51]name=ofd_packets/00201664 [19:33:51]OFD Sender: To server: pG, [19:33:51]CommunicateWithHost lk.salyk.kg:30040 [19:33:51]ConnectInit lk.salyk.kg [19:33:51]written 0, free lines is 4095 [19:33:51]Connected sock=10 [19:33:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 DC 32 07 01 01 37 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 32 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 AA 01 00 00 F4 03 04 00 1E 44 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C0 13 03 00 35 04 06 00 86 8F F3 31 DD A3 11 6C B8 83 47 4B 90 C4 [19:33:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 99 DE 47 00 1F 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C0 13 03 00 F4 03 04 00 C6 EF 1C 67 B6 04 01 00 00 01 45 62 68 35 D4 2B 86 [19:33:51]CommunicateWithHost err = 0 [19:33:51]CheckOFDResponse [19:33:51]1017 (14) - 77093643461234 [19:33:51]1041 (16) - 0000000000871756 [19:33:51]1040 (4) - 201664 [19:33:51]1012 (4) - 26.10.2024 13:33 [19:33:51]1206 (1) - 0 [19:33:51]OFD Sender: Remove packet 201664 [19:33:51]ProducePacketName [19:33:51]name=ofd_packets/00201664 [19:33:51]NVStorageDeleteData [19:33:52]Write to MH i2c: 01 00 00 11 09 1A [19:33:52]Write i2c OK [19:33:52]MH_I2C_Read... [19:33:52]Read from MH i2c: 01 [19:33:52]MH_I2C_Read... [19:33:52]Read from MH i2c: 01 07 00 [19:33:52]MH_I2C_Read... [19:33:52]Read from MH i2c: 01 07 00 11 09 00 00 00 00 00 A6 0C D3 [19:33:52]RasterBufferAndPrint [19:33:52]line [19:33:52]line [19:33:52]line [19:33:52]line [19:33:52]line [19:33:52]written 0, free lines is 3244 [19:33:52]MH_Cut [19:33:52]Write to MH i2c: D1 01 00 18 09 01 F3 [19:33:52]Write i2c OK [19:33:52]MH_I2C_Read... [19:33:52]Read from MH i2c: D1 [19:33:52]MH_I2C_Read... [19:33:52]Read from MH i2c: D1 01 00 [19:33:52]MH_I2C_Read... [19:33:52]Read from MH i2c: D1 01 00 18 09 00 F2 [19:33:52]Write to MH i2c: 01 00 00 19 09 22 [19:33:52]Write i2c OK [19:33:52]MH_I2C_Read... [19:33:52]OFD Sender: No OFD packet to send [19:33:52]*** Cut start [19:33:52]*** Purtial cut [19:33:52]*** Stage 1: CUTSNS_PIN = 1 [19:33:53]Read from MH i2c: 01 [19:33:53]MH_I2C_Read... [19:33:53]*** Stop cut motor [19:33:53]*** Cut end [19:33:53]Read from MH i2c: 01 07 00 [19:33:53]MH_I2C_Read... [19:33:53]Read from MH i2c: 01 07 00 19 09 00 00 00 00 00 FF 0F 37 [19:33:53]process_action close_receipt done [19:33:53]requested_data is exist [19:33:53]produce_requested_data [19:33:53]requested_item fm.sn is exist - process it [19:33:53]wFMCommunicate request_size=4 [19:33:53]MH_SAM_APDU [19:33:53]CAPDU: 80 11 00 00 [19:33:53]Write to MH i2c: E2 08 00 1A 09 80 11 00 00 00 00 00 00 9D [19:33:53]Write i2c OK [19:33:53]MH_I2C_Read... [19:33:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:53]Read from MH i2c: E2 [19:33:53]MH_I2C_Read... [19:33:53]Read from MH i2c: E2 17 00 [19:33:53]MH_I2C_Read... [19:33:53]Read from MH i2c: E2 17 00 1A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F2 [19:33:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:33:53]wFMCommunicate OK [19:33:53]requested_item fd.num is exist - process it [19:33:53]SAM_PROTO_GetFieldsCounters [19:33:53]wFMCommunicate request_size=4 [19:33:53]MH_SAM_APDU [19:33:53]CAPDU: 80 13 00 00 [19:33:53]Write to MH i2c: E2 08 00 1B 09 80 13 00 00 00 00 00 00 A0 [19:33:53]Write i2c OK [19:33:53]MH_I2C_Read... [19:33:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:53]Read from MH i2c: E2 [19:33:53]MH_I2C_Read... [19:33:53]Read from MH i2c: E2 62 00 [19:33:53]MH_I2C_Read... [19:33:53]Read from MH i2c: E2 62 00 1B 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C0 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AB 01 00 00 19 04 04 00 00 00 00 00 90 00 C1 [19:33:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C0 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AB 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:33:53]wFMCommunicate OK [19:33:53]SAM_PROTO_GetFieldsCounters done [19:33:53]requested_item shift.num is exist - process it [19:33:53]requested_item shift.opened is exist - process it [19:33:53]req_shift_opened [19:33:53]FM_GetShiftState [19:33:53]SAM_PROTO_GetShiftState [19:33:53]wFMCommunicate request_size=4 [19:33:53]MH_SAM_APDU [19:33:53]CAPDU: 80 13 01 00 [19:33:53]Write to MH i2c: E2 08 00 1C 09 80 13 01 00 00 00 00 00 A2 [19:33:53]Write i2c OK [19:33:53]MH_I2C_Read... [19:33:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:53]Read from MH i2c: E2 [19:33:53]MH_I2C_Read... [19:33:53]Read from MH i2c: E2 0E 00 [19:33:53]MH_I2C_Read... [19:33:53]Read from MH i2c: E2 0E 00 1C 09 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 B1 [19:33:53]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:33:53]wFMCommunicate OK [19:33:53]SAM_PROTO_GetShiftState done [19:33:53]FM_GetShiftState done [19:33:53]req_shift_opened done [19:33:53]requested_item shift.open_date is exist - process it [19:33:53]req_shift_open_date [19:33:53]req_shift_open_date done [19:33:53]produce_requested_data done [19:33:53]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201664,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [19:33:53]process_action_free close_receipt [19:33:53]json_value_free [19:33:53]json_value_free done [19:33:53]process_json_proto returns [19:33:53]Send response to host [19:33:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201664,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [19:33:53]free response buf [19:33:53]execute_script done [19:33:53]execute_script returns [19:33:53]free content buf [19:33:53]Sock 9.Close socket [19:33:53]Sock 9.Thread stoped [19:33:57]OFD Sender: No OFD packet to send [19:34:02]OFD Sender: No OFD packet to send [19:34:07]OFD Sender: No OFD packet to send [19:34:12]OFD Sender: No OFD packet to send [19:34:17]OFD Sender: No OFD packet to send [19:34:22]OFD Sender: No OFD packet to send [19:34:27]OFD Sender: No OFD packet to send [19:34:32]OFD Sender: No OFD packet to send [19:34:37]OFD Sender: No OFD packet to send [19:34:42]OFD Sender: No OFD packet to send [19:34:47]OFD Sender: No OFD packet to send [19:34:52]OFD Sender: No OFD packet to send [19:34:57]OFD Sender: No OFD packet to send [19:35:02]OFD Sender: No OFD packet to send [19:35:07]OFD Sender: No OFD packet to send [19:35:12]OFD Sender: No OFD packet to send [19:35:17]OFD Sender: No OFD packet to send [19:35:22]OFD Sender: No OFD packet to send [19:35:27]OFD Sender: No OFD packet to send [19:35:32]OFD Sender: No OFD packet to send [19:35:37]OFD Sender: No OFD packet to send [19:35:42]OFD Sender: No OFD packet to send [19:35:47]OFD Sender: No OFD packet to send [19:35:52]OFD Sender: No OFD packet to send [19:35:57]OFD Sender: No OFD packet to send [19:36:02]OFD Sender: No OFD packet to send [19:36:07]OFD Sender: No OFD packet to send [19:36:12]OFD Sender: No OFD packet to send [19:36:17]OFD Sender: No OFD packet to send [19:36:22]OFD Sender: No OFD packet to send [19:36:26]accept exits with 7 [19:36:26]New connection [19:36:26]New thread 3066465636 created [19:36:26]Thread 3066608996 joined [19:36:26]Waiting for new connection... [19:36:26] Sock 7.Parse request [19:36:26]Sock 7.Check first char [19:36:26]Sock 7.First char is OK [19:36:26]request: POST /json_proto HTTP/1.0 [19:36:26]Method: POST [19:36:26]URL: /json_proto [19:36:26]Method is POST - this is cgi request [19:36:26]url: /json_proto [19:36:26]query_string will be loaded in cgi processing [19:36:26]execute_cgi json_proto POST (null) [19:36:26]execute_cgi path=json_proto method=POST [19:36:26]POST find Content-Length [19:36:26]Host: 172.17.63.195:8080 [19:36:26]Content-Length: 674 [19:36:26]Content-Type: application/json [19:36:26] [19:36:26]POST finish read [19:36:26]Found Content-Length = 674 [19:36:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [19:36:26]execute_script... [19:36: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)449423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [19:36:26]POST & json_proto [19:36:26]process_json_proto [19:36:26]json parsed OK: [19:36:26]protocol is kg_v1.0 [19:36:26]action value=close_receipt [19:36:26]process_action close_receipt [19:36:26]cmd_close_receipt [19:36:26]MH_GetDate [19:36:26]Write to MH i2c: F0 00 00 1D 09 15 [19:36:26]Write i2c OK [19:36:26]MH_I2C_Read... [19:36:26]Read from MH i2c: F0 [19:36:26]MH_I2C_Read... [19:36:26]Read from MH i2c: F0 09 00 [19:36:26]MH_I2C_Read... [19:36:26]Read from MH i2c: F0 09 00 1D 09 00 BB 44 1D 67 68 46 19 67 CF [19:36:26]GetLastDocTimeStamp 1729971230 [19:36:26]current date 1729971387 [19:36:26]FM_GetShiftState [19:36:26]SAM_PROTO_GetShiftState [19:36:26]wFMCommunicate request_size=4 [19:36:26]MH_SAM_APDU [19:36:26]CAPDU: 80 13 01 00 [19:36:26]Write to MH i2c: E2 08 00 1E 09 80 13 01 00 00 00 00 00 A4 [19:36:26]Write i2c OK [19:36:26]MH_I2C_Read... [19:36:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:26]Read from MH i2c: E2 [19:36:26]MH_I2C_Read... [19:36:26]Read from MH i2c: E2 0E 00 [19:36:26]MH_I2C_Read... [19:36:26]Read from MH i2c: E2 0E 00 1E 09 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 B3 [19:36:26]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:36:26]wFMCommunicate OK [19:36:26]SAM_PROTO_GetShiftState done [19:36:26]FM_GetShiftState done [19:36:26]opened in 1729900879 [19:36:26]opened+sec_in_day 1729987279 [19:36:26]quantity*price = 50063 [19:36:26]sum+1 = 50064 [19:36:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 427 26.10.2024 19:36 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201665 ФПД: 141299078613552 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T193627&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201665&fm=141299078613552&tin=02508201610067®Number=0000000000091777&sum=50000 [19:36:27]StoreToDocumentArchive [19:36:27]shift 543 fd 201665 [19:36:27]save to /storage/0543/doc_00201665 [19:36:27]save last doc name /storage/0543/doc_00201665 to /storage/kkm_last_doc_name [19:36:27]save OK [19:36:27]Clear old archive folders... [19:36:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:36:27]tlvbuf is 0109C0C0 [19:36:27]SAM_PROTO_ClearQueue [19:36:27]wFMCommunicate request_size=4 [19:36:27]MH_SAM_APDU [19:36:27]CAPDU: 80 09 00 00 [19:36:27]Write to MH i2c: E2 08 00 2B 09 80 09 00 00 00 00 00 00 A6 [19:36:27]Write i2c OK [19:36:27]MH_I2C_Read... [19:36:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:36:27]Read from MH i2c: E2 [19:36:27]MH_I2C_Read... [19:36:27]Read from MH i2c: E2 03 00 [19:36:27]MH_I2C_Read... [19:36:27]Read from MH i2c: E2 03 00 2B 09 00 90 00 A8 [19:36:27]RAPDU: 90 00 [19:36:27]wFMCommunicate OK [19:36:27]SAM_PROTO_ClearQueue done [19:36:27]KKMCreateOFDPacket [19:36:27]OFDProtocolAddRootSTLVToBuf [19:36:27]FM_MakeSignedData [19:36:27]FM_MakeSignedData [19:36:27]SAM_PROTO_SignData [19:36:27]wFMCommunicate request_size=4 [19:36:27]MH_SAM_APDU [19:36:27]CAPDU: 80 0D 01 02 [19:36:27]Write to MH i2c: E2 08 00 2C 09 80 0D 01 02 00 00 00 00 AE [19:36:27]Write i2c OK [19:36:27]MH_I2C_Read... [19:36:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:36:27]Read from MH i2c: E2 [19:36:27]MH_I2C_Read... [19:36:27]Read from MH i2c: E2 03 00 [19:36:27]MH_I2C_Read... [19:36:27]Read from MH i2c: E2 03 00 2C 09 00 90 00 A9 [19:36:27]RAPDU: 90 00 [19:36:27]wFMCommunicate OK [19:36:27]wFMCommunicate request_size=255 [19:36:27]MH_SAM_APDU [19:36:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 BB 44 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C1 13 03 00 35 04 06 00 80 82 C1 63 [19:36:27]Write to MH i2c: E2 02 01 2D 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 BB 44 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C1 13 03 00 35 04 06 00 80 82 C1 63 00 00 0D [19:36:27]Write i2c OK [19:36:27]MH_I2C_Read... [19:36:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:28]Read from MH i2c: E2 [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: E2 03 00 [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: E2 03 00 2D 09 00 90 00 AA [19:36:28]RAPDU: 90 00 [19:36:28]wFMCommunicate OK [19:36:28]wFMCommunicate request_size=7 [19:36:28]MH_SAM_APDU [19:36:28]CAPDU: 80 0D 02 02 02 4A 30 [19:36:28]Write to MH i2c: E2 0A 00 2E 09 80 0D 02 02 02 00 4A 30 00 00 2F [19:36:28]Write i2c OK [19:36:28]MH_I2C_Read... [19:36:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:28]Read from MH i2c: E2 [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: E2 03 00 [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: E2 03 00 2E 09 00 90 00 AB [19:36:28]RAPDU: 90 00 [19:36:28]wFMCommunicate OK [19:36:28]wFMCommunicate request_size=4 [19:36:28]MH_SAM_APDU [19:36:28]CAPDU: 80 0D 03 02 [19:36:28]Write to MH i2c: E2 08 00 2F 09 80 0D 03 02 00 00 00 00 B3 [19:36:28]Write i2c OK [19:36:28]MH_I2C_Read... [19:36:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:36:28]Read from MH i2c: E2 [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: E2 0B 00 [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: E2 0B 00 2F 09 00 79 DD 0F DB 50 2D 15 71 90 00 F7 [19:36:28]RAPDU: 79 DD 0F DB 50 2D 15 71 90 00 [19:36:28]wFMCommunicate OK [19:36:28]SAM_PROTO_SignData done [19:36:28]FM_MakeSignedData done [19:36:28]CreateOFDProtocolMessage [19:36:28]wFMCommunicate request_size=4 [19:36:28]MH_SAM_APDU [19:36:28]CAPDU: 80 11 00 00 [19:36:28]Write to MH i2c: E2 08 00 30 09 80 11 00 00 00 00 00 00 B3 [19:36:28]Write i2c OK [19:36:28]MH_I2C_Read... [19:36:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:28]Read from MH i2c: E2 [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: E2 17 00 [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: E2 17 00 30 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 08 [19:36:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:36:28]wFMCommunicate OK [19:36:28]CreateOFDProtocolMessage done [19:36:28]OFDSenderStorePacket 201665 [19:36:28]StoreOFDPacket docnum=201665 [19:36:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 01 B5 04 01 4A EA 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 BB 44 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C1 13 03 00 35 04 06 00 80 82 C1 63 4A 30 79 DD 0F DB 50 2D 15 71 [19:36:28]CheckFolder [19:36:28]dirname=/storage/ofd_packets [19:36:28]CheckFolder done [19:36:28]ProducePacketName [19:36:28]name=ofd_packets/00201665 [19:36:28]NVStorageSaveData ofd_packets/00201665 [19:36:28]File name is /storage/ofd_packets/00201665 [19:36:28]Write 298 bytes [19:36:28]NVStorageSaveData done [19:36:28]OFDSenderStorePacket done [19:36:28]KKMCreateOFDPacket done [19:36:28]NVStorageSaveData kkm_last_timestamp [19:36:28]File name is /storage/kkm_last_timestamp [19:36:28]Write 4 bytes [19:36:28]NVStorageSaveData done [19:36:28]ExternCall_PrintAddStr [19:36:28]wPrintStart [19:36:28]Write to MH i2c: 01 00 00 31 09 3A [19:36:28]Write i2c OK [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: 01 [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: 01 07 00 [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: 01 07 00 31 09 00 00 00 00 00 FF 0F 4F [19:36:28]RasterBufferAndPrint [19:36:28]line Счет N : (1)449423 [19:36:28]line ИНН: 02508201610067 [19:36:28]line Контрольно-Кассовый Чек [19:36:28]line ПРОДАЖА [19:36:28]line ТРК (МРК, ГНК) : 33 [19:36:28]line Товар: 2710194210 [19:36:28]line ДТ-К-2 [19:36:28]line 6.570 * 76.20 [19:36:28]line = 500.63 [19:36:28]line НДС 12% НСП 1% [19:36:28]line > о реализуемом товаре [19:36:28]line ОКРУГЛЕНИЕ: -0.63 [19:36:28]line ИТОГО: 500.00 [19:36:28]line Внесено: 500.00 [19:36:28]line СДАЧА: 0.00 [19:36:28]line НСП 1% : 4.43 [19:36:28]line НДС 12% : 53.16 [19:36:28]line Наличными: 500.00 [19:36:28]line Безнал.: 0.00 [19:36:28]line Место: АЗС № 171 "Партнер Нефть" [19:36:28]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:36:28]line СНО: Общий режим [19:36:28]line Чек 427 26.10.2024 19:36 [19:36:28]line Смена: 543 ФФД: 1.0 [19:36:28]line ЗНМ: 0300000109 [19:36:28]line РНМ: 0000000000091777 [19:36:28]line Версия ККМ: 001 [19:36:28]line ФМ: 0000000000871756 [19:36:28]line ФД: 201665 [19:36:28]line ФПД: 141299078613552 [19:36:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T193627&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201665&fm=141299078613552&tin=02508201610067®Number=0000000000091777&sum=50000 [19:36:28]OFD Sender: Processing packet 201665 [packets to send 112, broken 111] [19:36:28]ProducePacketName [19:36:28]name=ofd_packets/00201665 [19:36:28]OFD Sender: To server: pG, [19:36:28]CommunicateWithHost lk.salyk.kg:30040 [19:36:28]ConnectInit lk.salyk.kg [19:36:28]written 0, free lines is 4095 [19:36:28]Connected sock=10 [19:36:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 01 B5 04 01 4A EA 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 BB 44 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C1 13 03 00 35 04 06 00 80 82 C1 63 4A 30 79 DD 0F DB 50 2D 15 71 [19:36:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 1C 13 47 00 01 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C1 13 03 00 F4 03 04 00 63 F0 1C 67 B6 04 01 00 00 93 F3 F4 38 5F 49 2D 53 [19:36:28]CommunicateWithHost err = 0 [19:36:28]CheckOFDResponse [19:36:28]1017 (14) - 77093643461234 [19:36:28]1041 (16) - 0000000000871756 [19:36:28]1040 (4) - 201665 [19:36:28]1012 (4) - 26.10.2024 13:36 [19:36:28]1206 (1) - 0 [19:36:28]OFD Sender: Remove packet 201665 [19:36:28]ProducePacketName [19:36:28]name=ofd_packets/00201665 [19:36:28]NVStorageDeleteData [19:36:29]Write to MH i2c: 01 00 00 5C 09 65 [19:36:29]Write i2c OK [19:36:29]MH_I2C_Read... [19:36:29]Read from MH i2c: 01 [19:36:29]MH_I2C_Read... [19:36:29]Read from MH i2c: 01 07 00 [19:36:29]MH_I2C_Read... [19:36:29]Read from MH i2c: 01 07 00 5C 09 00 00 00 00 00 A3 0C 1B [19:36:29]RasterBufferAndPrint [19:36:29]line [19:36:29]line [19:36:29]line [19:36:29]line [19:36:29]line [19:36:29]written 0, free lines is 3241 [19:36:29]MH_Cut [19:36:29]Write to MH i2c: D1 01 00 63 09 01 3E [19:36:29]Write i2c OK [19:36:29]MH_I2C_Read... [19:36:29]Read from MH i2c: D1 [19:36:29]MH_I2C_Read... [19:36:29]Read from MH i2c: D1 01 00 [19:36:29]MH_I2C_Read... [19:36:29]Read from MH i2c: D1 01 00 63 09 00 3D [19:36:29]Write to MH i2c: 01 00 00 64 09 6D [19:36:29]Write i2c OK [19:36:29]MH_I2C_Read... [19:36:29]OFD Sender: No OFD packet to send [19:36:29]*** Cut start [19:36:29]*** Purtial cut [19:36:29]*** Stage 1: CUTSNS_PIN = 1 [19:36:30]Read from MH i2c: 01 [19:36:30]MH_I2C_Read... [19:36:30]*** Stop cut motor [19:36:30]*** Cut end [19:36:30]Read from MH i2c: 01 07 00 [19:36:30]MH_I2C_Read... [19:36:30]Read from MH i2c: 01 07 00 64 09 00 00 00 00 00 FF 0F 82 [19:36:30]process_action close_receipt done [19:36:30]requested_data is exist [19:36:30]produce_requested_data [19:36:30]requested_item fm.sn is exist - process it [19:36:30]wFMCommunicate request_size=4 [19:36:30]MH_SAM_APDU [19:36:30]CAPDU: 80 11 00 00 [19:36:30]Write to MH i2c: E2 08 00 65 09 80 11 00 00 00 00 00 00 E8 [19:36:30]Write i2c OK [19:36:30]MH_I2C_Read... [19:36:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:30]Read from MH i2c: E2 [19:36:30]MH_I2C_Read... [19:36:30]Read from MH i2c: E2 17 00 [19:36:30]MH_I2C_Read... [19:36:30]Read from MH i2c: E2 17 00 65 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3D [19:36:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:36:30]wFMCommunicate OK [19:36:30]requested_item fd.num is exist - process it [19:36:30]SAM_PROTO_GetFieldsCounters [19:36:30]wFMCommunicate request_size=4 [19:36:30]MH_SAM_APDU [19:36:30]CAPDU: 80 13 00 00 [19:36:30]Write to MH i2c: E2 08 00 66 09 80 13 00 00 00 00 00 00 EB [19:36:30]Write i2c OK [19:36:30]MH_I2C_Read... [19:36:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:36:30]Read from MH i2c: E2 [19:36:30]MH_I2C_Read... [19:36:30]Read from MH i2c: E2 62 00 [19:36:30]MH_I2C_Read... [19:36:30]Read from MH i2c: E2 62 00 66 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C1 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AB 01 00 00 5E 04 04 00 AB 01 00 00 57 04 04 00 AC 01 00 00 19 04 04 00 00 00 00 00 90 00 10 [19:36:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C1 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AB 01 00 00 5E 04 04 00 AB 01 00 00 57 04 04 00 AC 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:36:30]wFMCommunicate OK [19:36:30]SAM_PROTO_GetFieldsCounters done [19:36:30]requested_item shift.num is exist - process it [19:36:30]requested_item shift.opened is exist - process it [19:36:30]req_shift_opened [19:36:30]FM_GetShiftState [19:36:30]SAM_PROTO_GetShiftState [19:36:30]wFMCommunicate request_size=4 [19:36:30]MH_SAM_APDU [19:36:30]CAPDU: 80 13 01 00 [19:36:30]Write to MH i2c: E2 08 00 67 09 80 13 01 00 00 00 00 00 ED [19:36:30]Write i2c OK [19:36:30]MH_I2C_Read... [19:36:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:30]Read from MH i2c: E2 [19:36:30]MH_I2C_Read... [19:36:30]Read from MH i2c: E2 0E 00 [19:36:30]MH_I2C_Read... [19:36:30]Read from MH i2c: E2 0E 00 67 09 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 FC [19:36:30]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:36:30]wFMCommunicate OK [19:36:30]SAM_PROTO_GetShiftState done [19:36:30]FM_GetShiftState done [19:36:30]req_shift_opened done [19:36:30]requested_item shift.open_date is exist - process it [19:36:30]req_shift_open_date [19:36:30]req_shift_open_date done [19:36:30]produce_requested_data done [19:36:30]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201665,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [19:36:30]process_action_free close_receipt [19:36:30]json_value_free [19:36:30]json_value_free done [19:36:30]process_json_proto returns [19:36:30]Send response to host [19:36:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201665,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [19:36:30]free response buf [19:36:30]execute_script done [19:36:30]execute_script returns [19:36:30]free content buf [19:36:30]Sock 7.Close socket [19:36:30]Sock 7.Thread stoped [19:36:33]accept exits with 9 [19:36:33]New connection [19:36:33]New thread 3066608996 created [19:36:33]Thread 3066465636 joined [19:36:33]Waiting for new connection... [19:36:33] Sock 9.Parse request [19:36:33]Sock 9.Check first char [19:36:33]Sock 9.First char is OK [19:36:33]request: POST /json_proto HTTP/1.0 [19:36:33]Method: POST [19:36:33]URL: /json_proto [19:36:33]Method is POST - this is cgi request [19:36:33]url: /json_proto [19:36:33]query_string will be loaded in cgi processing [19:36:33]execute_cgi json_proto POST (null) [19:36:33]execute_cgi path=json_proto method=POST [19:36:33]POST find Content-Length [19:36:33]Host: 172.17.63.195:8080 [19:36:33]Content-Length: 677 [19:36:33]Content-Type: application/json [19:36:33] [19:36:33]POST finish read [19:36:33]Found Content-Length = 677 [19:36:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [19:36:33]execute_script... [19:36: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)449424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [19:36:33]POST & json_proto [19:36:33]process_json_proto [19:36:33]json parsed OK: [19:36:33]protocol is kg_v1.0 [19:36:33]action value=close_receipt [19:36:33]process_action close_receipt [19:36:33]cmd_close_receipt [19:36:33]MH_GetDate [19:36:33]Write to MH i2c: F0 00 00 68 09 60 [19:36:33]Write i2c OK [19:36:33]MH_I2C_Read... [19:36:33]Read from MH i2c: F0 [19:36:33]MH_I2C_Read... [19:36:33]Read from MH i2c: F0 09 00 [19:36:33]MH_I2C_Read... [19:36:33]Read from MH i2c: F0 09 00 68 09 00 C2 44 1D 67 68 46 19 67 21 [19:36:33]GetLastDocTimeStamp 1729971387 [19:36:33]current date 1729971394 [19:36:33]FM_GetShiftState [19:36:33]SAM_PROTO_GetShiftState [19:36:33]wFMCommunicate request_size=4 [19:36:33]MH_SAM_APDU [19:36:33]CAPDU: 80 13 01 00 [19:36:33]Write to MH i2c: E2 08 00 69 09 80 13 01 00 00 00 00 00 EF [19:36:33]Write i2c OK [19:36:33]MH_I2C_Read... [19:36:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:34]Read from MH i2c: E2 [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: E2 0E 00 [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: E2 0E 00 69 09 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 FE [19:36:34]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:36:34]wFMCommunicate OK [19:36:34]SAM_PROTO_GetShiftState done [19:36:34]FM_GetShiftState done [19:36:34]opened in 1729900879 [19:36:34]opened+sec_in_day 1729987279 [19:36:34]quantity*price = 50041 [19:36:34]sum+1 = 50042 [19:36:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 428 26.10.2024 19:36 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201666 ФПД: 120027094488354 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T193634&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201666&fm=120027094488354&tin=02508201610067®Number=0000000000091777&sum=50000 [19:36:35]StoreToDocumentArchive [19:36:35]shift 543 fd 201666 [19:36:35]save to /storage/0543/doc_00201666 [19:36:35]save last doc name /storage/0543/doc_00201666 to /storage/kkm_last_doc_name [19:36:35]save OK [19:36:35]Clear old archive folders... [19:36:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:36:35]tlvbuf is 01045B60 [19:36:35]SAM_PROTO_ClearQueue [19:36:35]wFMCommunicate request_size=4 [19:36:35]MH_SAM_APDU [19:36:35]CAPDU: 80 09 00 00 [19:36:35]Write to MH i2c: E2 08 00 76 09 80 09 00 00 00 00 00 00 F1 [19:36:35]Write i2c OK [19:36:35]MH_I2C_Read... [19:36:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:36:35]Read from MH i2c: E2 [19:36:35]MH_I2C_Read... [19:36:35]Read from MH i2c: E2 03 00 [19:36:35]MH_I2C_Read... [19:36:35]Read from MH i2c: E2 03 00 76 09 00 90 00 F3 [19:36:35]RAPDU: 90 00 [19:36:35]wFMCommunicate OK [19:36:35]SAM_PROTO_ClearQueue done [19:36:35]KKMCreateOFDPacket [19:36:35]OFDProtocolAddRootSTLVToBuf [19:36:35]FM_MakeSignedData [19:36:35]FM_MakeSignedData [19:36:35]SAM_PROTO_SignData [19:36:35]wFMCommunicate request_size=4 [19:36:35]MH_SAM_APDU [19:36:35]CAPDU: 80 0D 01 02 [19:36:35]Write to MH i2c: E2 08 00 77 09 80 0D 01 02 00 00 00 00 F9 [19:36:35]Write i2c OK [19:36:35]MH_I2C_Read... [19:36:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:36:35]Read from MH i2c: E2 [19:36:35]MH_I2C_Read... [19:36:35]Read from MH i2c: E2 03 00 [19:36:35]MH_I2C_Read... [19:36:35]Read from MH i2c: E2 03 00 77 09 00 90 00 F4 [19:36:35]RAPDU: 90 00 [19:36:35]wFMCommunicate OK [19:36:35]wFMCommunicate request_size=255 [19:36:35]MH_SAM_APDU [19:36:35]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 32 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 AC 01 00 00 F4 03 04 00 C2 44 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C2 13 03 00 35 04 06 00 6D [19:36:35]Write to MH i2c: E2 02 01 78 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 32 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 AC 01 00 00 F4 03 04 00 C2 44 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C2 13 03 00 35 04 06 00 6D 00 00 2A [19:36:35]Write i2c OK [19:36:35]MH_I2C_Read... [19:36:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:35]Read from MH i2c: E2 [19:36:35]MH_I2C_Read... [19:36:35]Read from MH i2c: E2 03 00 [19:36:35]MH_I2C_Read... [19:36:35]Read from MH i2c: E2 03 00 78 09 00 90 00 F5 [19:36:35]RAPDU: 90 00 [19:36:35]wFMCommunicate OK [19:36:35]wFMCommunicate request_size=10 [19:36:35]MH_SAM_APDU [19:36:35]CAPDU: 80 0D 02 02 05 29 FC 54 95 22 [19:36:35]Write to MH i2c: E2 0D 00 79 09 80 0D 02 02 05 00 29 FC 54 95 22 00 00 36 [19:36:35]Write i2c OK [19:36:35]MH_I2C_Read... [19:36:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:35]Read from MH i2c: E2 [19:36:35]MH_I2C_Read... [19:36:35]Read from MH i2c: E2 03 00 [19:36:35]MH_I2C_Read... [19:36:35]Read from MH i2c: E2 03 00 79 09 00 90 00 F6 [19:36:35]RAPDU: 90 00 [19:36:35]wFMCommunicate OK [19:36:35]wFMCommunicate request_size=4 [19:36:35]MH_SAM_APDU [19:36:35]CAPDU: 80 0D 03 02 [19:36:35]Write to MH i2c: E2 08 00 7A 09 80 0D 03 02 00 00 00 00 FE [19:36:35]Write i2c OK [19:36:35]MH_I2C_Read... [19:36:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:36:35]Read from MH i2c: E2 [19:36:35]MH_I2C_Read... [19:36:35]Read from MH i2c: E2 0B 00 [19:36:35]MH_I2C_Read... [19:36:35]Read from MH i2c: E2 0B 00 7A 09 00 A9 59 C6 D4 C6 8B 74 20 90 00 80 [19:36:35]RAPDU: A9 59 C6 D4 C6 8B 74 20 90 00 [19:36:35]wFMCommunicate OK [19:36:35]SAM_PROTO_SignData done [19:36:35]FM_MakeSignedData done [19:36:35]CreateOFDProtocolMessage [19:36:35]wFMCommunicate request_size=4 [19:36:35]MH_SAM_APDU [19:36:35]CAPDU: 80 11 00 00 [19:36:35]Write to MH i2c: E2 08 00 7B 09 80 11 00 00 00 00 00 00 FE [19:36:35]Write i2c OK [19:36:35]MH_I2C_Read... [19:36:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:35]Read from MH i2c: E2 [19:36:35]MH_I2C_Read... [19:36:35]Read from MH i2c: E2 17 00 [19:36:35]MH_I2C_Read... [19:36:35]Read from MH i2c: E2 17 00 7B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 53 [19:36:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:36:35]wFMCommunicate OK [19:36:35]CreateOFDProtocolMessage done [19:36:35]OFDSenderStorePacket 201666 [19:36:35]StoreOFDPacket docnum=201666 [19:36:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 04 29 07 01 17 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AC 01 00 00 F4 03 04 00 C2 44 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C2 13 03 00 35 04 06 00 6D 29 FC 54 95 22 A9 59 C6 D4 C6 8B 74 20 [19:36:35]CheckFolder [19:36:35]dirname=/storage/ofd_packets [19:36:35]CheckFolder done [19:36:35]ProducePacketName [19:36:35]name=ofd_packets/00201666 [19:36:35]NVStorageSaveData ofd_packets/00201666 [19:36:35]File name is /storage/ofd_packets/00201666 [19:36:35]Write 301 bytes [19:36:35]NVStorageSaveData done [19:36:35]OFDSenderStorePacket done [19:36:35]KKMCreateOFDPacket done [19:36:35]NVStorageSaveData kkm_last_timestamp [19:36:35]File name is /storage/kkm_last_timestamp [19:36:35]Write 4 bytes [19:36:35]NVStorageSaveData done [19:36:35]ExternCall_PrintAddStr [19:36:35]wPrintStart [19:36:35]Write to MH i2c: 01 00 00 7C 09 85 [19:36:35]Write i2c OK [19:36:35]MH_I2C_Read... [19:36:35]Read from MH i2c: 01 [19:36:35]MH_I2C_Read... [19:36:35]Read from MH i2c: 01 07 00 [19:36:35]MH_I2C_Read... [19:36:35]Read from MH i2c: 01 07 00 7C 09 00 00 00 00 00 FF 0F 9A [19:36:35]RasterBufferAndPrint [19:36:35]line Счет N : (1)449424 [19:36:35]line ИНН: 02508201610067 [19:36:35]line Контрольно-Кассовый Чек [19:36:35]line ПРОДАЖА [19:36:35]line ТРК (МРК, ГНК) : 52 [19:36:35]line Товар: 2710124130 [19:36:35]line Аи-92-К-2 [19:36:35]line 7.480 * 66.90 [19:36:35]line = 500.41 [19:36:35]line НДС 12% НСП 1% [19:36:35]line > о реализуемом товаре [19:36:35]line ОКРУГЛЕНИЕ: -0.41 [19:36:35]line ИТОГО: 500.00 [19:36:35]line Внесено: 500.00 [19:36:35]line СДАЧА: 0.00 [19:36:35]line НСП 1% : 4.43 [19:36:35]line НДС 12% : 53.14 [19:36:35]line Наличными: 500.00 [19:36:35]line Безнал.: 0.00 [19:36:35]line Место: АЗС № 171 "Партнер Нефть" [19:36:35]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:36:35]line СНО: Общий режим [19:36:35]line Чек 428 26.10.2024 19:36 [19:36:35]line Смена: 543 ФФД: 1.0 [19:36:35]line ЗНМ: 0300000109 [19:36:35]line РНМ: 0000000000091777 [19:36:35]line Версия ККМ: 001 [19:36:35]line ФМ: 0000000000871756 [19:36:35]line ФД: 201666 [19:36:35]line ФПД: 120027094488354 [19:36:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T193634&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201666&fm=120027094488354&tin=02508201610067®Number=0000000000091777&sum=50000 [19:36:35]written 0, free lines is 4095 [19:36:35]OFD Sender: Processing packet 201666 [packets to send 112, broken 111] [19:36:35]ProducePacketName [19:36:35]name=ofd_packets/00201666 [19:36:35]OFD Sender: To server: pG, [19:36:35]CommunicateWithHost lk.salyk.kg:30040 [19:36:35]ConnectInit lk.salyk.kg [19:36:35]Connected sock=10 [19:36:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 04 29 07 01 17 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 AC 01 00 00 F4 03 04 00 C2 44 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C2 13 03 00 35 04 06 00 6D 29 FC 54 95 22 A9 59 C6 D4 C6 8B 74 20 [19:36:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 8A 83 47 00 F6 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C2 13 03 00 F4 03 04 00 6A F0 1C 67 B6 04 01 00 00 EC 73 8E 3F 81 D5 8C F3 [19:36:36]CommunicateWithHost err = 0 [19:36:36]CheckOFDResponse [19:36:36]1017 (14) - 77093643461234 [19:36:36]1041 (16) - 0000000000871756 [19:36:36]1040 (4) - 201666 [19:36:36]1012 (4) - 26.10.2024 13:36 [19:36:36]1206 (1) - 0 [19:36:36]OFD Sender: Remove packet 201666 [19:36:36]ProducePacketName [19:36:36]name=ofd_packets/00201666 [19:36:36]NVStorageDeleteData [19:36:36]Write to MH i2c: 01 00 00 A7 09 B0 [19:36:36]Write i2c OK [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: 01 [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: 01 07 00 [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: 01 07 00 A7 09 00 00 00 00 00 AA 0C 6D [19:36:36]RasterBufferAndPrint [19:36:36]line [19:36:36]line [19:36:36]line [19:36:36]line [19:36:36]line [19:36:36]written 0, free lines is 3252 [19:36:36]MH_Cut [19:36:36]Write to MH i2c: D1 01 00 AE 09 01 89 [19:36:36]Write i2c OK [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: D1 [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: D1 01 00 [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: D1 01 00 AE 09 00 88 [19:36:36]Write to MH i2c: 01 00 00 AF 09 B8 [19:36:36]Write i2c OK [19:36:36]MH_I2C_Read... [19:36:36]OFD Sender: No OFD packet to send [19:36:37]*** Cut start [19:36:37]*** Purtial cut [19:36:37]*** Stage 1: CUTSNS_PIN = 1 [19:36:37]Read from MH i2c: 01 [19:36:37]MH_I2C_Read... [19:36:37]*** Stop cut motor [19:36:37]*** Cut end [19:36:37]Read from MH i2c: 01 07 00 [19:36:37]MH_I2C_Read... [19:36:37]Read from MH i2c: 01 07 00 AF 09 00 00 00 00 00 FF 0F CD [19:36:37]process_action close_receipt done [19:36:37]requested_data is exist [19:36:37]produce_requested_data [19:36:37]requested_item fm.sn is exist - process it [19:36:37]wFMCommunicate request_size=4 [19:36:37]MH_SAM_APDU [19:36:37]CAPDU: 80 11 00 00 [19:36:37]Write to MH i2c: E2 08 00 B0 09 80 11 00 00 00 00 00 00 33 [19:36:37]Write i2c OK [19:36:37]MH_I2C_Read... [19:36:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:37]Read from MH i2c: E2 [19:36:37]MH_I2C_Read... [19:36:37]Read from MH i2c: E2 17 00 [19:36:37]MH_I2C_Read... [19:36:37]Read from MH i2c: E2 17 00 B0 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 88 [19:36:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:36:37]wFMCommunicate OK [19:36:37]requested_item fd.num is exist - process it [19:36:37]SAM_PROTO_GetFieldsCounters [19:36:37]wFMCommunicate request_size=4 [19:36:37]MH_SAM_APDU [19:36:37]CAPDU: 80 13 00 00 [19:36:37]Write to MH i2c: E2 08 00 B1 09 80 13 00 00 00 00 00 00 36 [19:36:37]Write i2c OK [19:36:37]MH_I2C_Read... [19:36:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:36:37]Read from MH i2c: E2 [19:36:37]MH_I2C_Read... [19:36:37]Read from MH i2c: E2 62 00 [19:36:37]MH_I2C_Read... [19:36:37]Read from MH i2c: E2 62 00 B1 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C2 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AC 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AD 01 00 00 19 04 04 00 00 00 00 00 90 00 5F [19:36:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C2 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AC 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AD 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:36:37]wFMCommunicate OK [19:36:37]SAM_PROTO_GetFieldsCounters done [19:36:37]requested_item shift.num is exist - process it [19:36:37]requested_item shift.opened is exist - process it [19:36:37]req_shift_opened [19:36:37]FM_GetShiftState [19:36:37]SAM_PROTO_GetShiftState [19:36:37]wFMCommunicate request_size=4 [19:36:37]MH_SAM_APDU [19:36:37]CAPDU: 80 13 01 00 [19:36:37]Write to MH i2c: E2 08 00 B2 09 80 13 01 00 00 00 00 00 38 [19:36:37]Write i2c OK [19:36:37]MH_I2C_Read... [19:36:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:37]Read from MH i2c: E2 [19:36:37]MH_I2C_Read... [19:36:37]Read from MH i2c: E2 0E 00 [19:36:37]MH_I2C_Read... [19:36:37]Read from MH i2c: E2 0E 00 B2 09 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 47 [19:36:37]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:36:37]wFMCommunicate OK [19:36:37]SAM_PROTO_GetShiftState done [19:36:37]FM_GetShiftState done [19:36:37]req_shift_opened done [19:36:37]requested_item shift.open_date is exist - process it [19:36:37]req_shift_open_date [19:36:37]req_shift_open_date done [19:36:37]produce_requested_data done [19:36:37]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201666,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [19:36:37]process_action_free close_receipt [19:36:37]json_value_free [19:36:37]json_value_free done [19:36:37]process_json_proto returns [19:36:37]Send response to host [19:36:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201666,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [19:36:37]free response buf [19:36:37]execute_script done [19:36:37]execute_script returns [19:36:37]free content buf [19:36:37]Sock 9.Close socket [19:36:37]Sock 9.Thread stoped [19:36:41]OFD Sender: No OFD packet to send [19:36:46]OFD Sender: No OFD packet to send [19:36:51]OFD Sender: No OFD packet to send [19:36:56]OFD Sender: No OFD packet to send [19:37:01]OFD Sender: No OFD packet to send [19:37:06]OFD Sender: No OFD packet to send [19:37:11]OFD Sender: No OFD packet to send [19:37:16]OFD Sender: No OFD packet to send [19:37:21]OFD Sender: No OFD packet to send [19:37:26]OFD Sender: No OFD packet to send [19:37:31]OFD Sender: No OFD packet to send [19:37:36]OFD Sender: No OFD packet to send [19:37:41]OFD Sender: No OFD packet to send [19:37:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38:56]OFD Sender: No OFD packet to send [19:39:01]OFD Sender: No OFD packet to send [19:39:04]accept exits with 7 [19:39:04]New connection [19:39:04]New thread 3066465636 created [19:39:04]Thread 3066608996 joined [19:39:04]Waiting for new connection... [19:39:04] Sock 7.Parse request [19:39:04]Sock 7.Check first char [19:39:04]Sock 7.First char is OK [19:39:04]request: POST /json_proto HTTP/1.0 [19:39:04]Method: POST [19:39:04]URL: /json_proto [19:39:04]Method is POST - this is cgi request [19:39:04]url: /json_proto [19:39:04]query_string will be loaded in cgi processing [19:39:04]execute_cgi json_proto POST (null) [19:39:04]execute_cgi path=json_proto method=POST [19:39:04]POST find Content-Length [19:39:04]Host: 172.17.63.195:8080 [19:39:04]Content-Length: 677 [19:39:04]Content-Type: application/json [19:39:04] [19:39:04]POST finish read [19:39:04]Found Content-Length = 677 [19:39:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.890, "sum" : 260.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:04]execute_script... [19:39: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)449425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.890, "sum" : 260.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:04]POST & json_proto [19:39:04]process_json_proto [19:39:04]json parsed OK: [19:39:04]protocol is kg_v1.0 [19:39:04]action value=close_receipt [19:39:04]process_action close_receipt [19:39:04]cmd_close_receipt [19:39:04]MH_GetDate [19:39:04]Write to MH i2c: F0 00 00 B3 09 AB [19:39:04]Write i2c OK [19:39:04]MH_I2C_Read... [19:39:04]Read from MH i2c: F0 [19:39:04]MH_I2C_Read... [19:39:04]Read from MH i2c: F0 09 00 [19:39:04]MH_I2C_Read... [19:39:04]Read from MH i2c: F0 09 00 B3 09 00 59 45 1D 67 68 46 19 67 04 [19:39:04]GetLastDocTimeStamp 1729971394 [19:39:04]current date 1729971545 [19:39:04]FM_GetShiftState [19:39:04]SAM_PROTO_GetShiftState [19:39:04]wFMCommunicate request_size=4 [19:39:04]MH_SAM_APDU [19:39:04]CAPDU: 80 13 01 00 [19:39:04]Write to MH i2c: E2 08 00 B4 09 80 13 01 00 00 00 00 00 3A [19:39:04]Write i2c OK [19:39:04]MH_I2C_Read... [19:39:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:04]Read from MH i2c: E2 [19:39:04]MH_I2C_Read... [19:39:04]Read from MH i2c: E2 0E 00 [19:39:04]MH_I2C_Read... [19:39:04]Read from MH i2c: E2 0E 00 B4 09 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 49 [19:39:04]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:39:04]wFMCommunicate OK [19:39:04]SAM_PROTO_GetShiftState done [19:39:04]FM_GetShiftState done [19:39:04]opened in 1729900879 [19:39:04]opened+sec_in_day 1729987279 [19:39:04]quantity*price = 26024 [19:39:04]sum+1 = 26025 [19:39:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 260.00 Внесено: 260.00 СДАЧА: 0.00 НСП 1% : 2.30 НДС 12% : 27.64 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 429 26.10.2024 19:39 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201667 ФПД: 136238006935668 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T193905&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201667&fm=136238006935668&tin=02508201610067®Number=0000000000091777&sum=26000 [19:39:05]StoreToDocumentArchive [19:39:05]shift 543 fd 201667 [19:39:05]save to /storage/0543/doc_00201667 [19:39:05]save last doc name /storage/0543/doc_00201667 to /storage/kkm_last_doc_name [19:39:05]save OK [19:39:05]Clear old archive folders... [19:39:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:39:05]tlvbuf is 0106DCE0 [19:39:05]SAM_PROTO_ClearQueue [19:39:05]wFMCommunicate request_size=4 [19:39:05]MH_SAM_APDU [19:39:05]CAPDU: 80 09 00 00 [19:39:05]Write to MH i2c: E2 08 00 C1 09 80 09 00 00 00 00 00 00 3C [19:39:05]Write i2c OK [19:39:05]MH_I2C_Read... [19:39:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:05]Read from MH i2c: E2 [19:39:05]MH_I2C_Read... [19:39:05]Read from MH i2c: E2 03 00 [19:39:05]MH_I2C_Read... [19:39:05]Read from MH i2c: E2 03 00 C1 09 00 90 00 3E [19:39:05]RAPDU: 90 00 [19:39:05]wFMCommunicate OK [19:39:05]SAM_PROTO_ClearQueue done [19:39:05]KKMCreateOFDPacket [19:39:05]OFDProtocolAddRootSTLVToBuf [19:39:05]FM_MakeSignedData [19:39:05]FM_MakeSignedData [19:39:05]SAM_PROTO_SignData [19:39:05]wFMCommunicate request_size=4 [19:39:05]MH_SAM_APDU [19:39:05]CAPDU: 80 0D 01 02 [19:39:05]Write to MH i2c: E2 08 00 C2 09 80 0D 01 02 00 00 00 00 44 [19:39:05]Write i2c OK [19:39:05]MH_I2C_Read... [19:39:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:05]Read from MH i2c: E2 [19:39:05]MH_I2C_Read... [19:39:05]Read from MH i2c: E2 03 00 [19:39:05]MH_I2C_Read... [19:39:05]Read from MH i2c: E2 03 00 C2 09 00 90 00 3F [19:39:05]RAPDU: 90 00 [19:39:05]wFMCommunicate OK [19:39:05]wFMCommunicate request_size=255 [19:39:05]MH_SAM_APDU [19:39: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 32 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 01 00 00 F4 03 04 00 59 45 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C3 13 03 00 35 04 06 00 7B [19:39:05]Write to MH i2c: E2 02 01 C3 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 32 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 01 00 00 F4 03 04 00 59 45 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C3 13 03 00 35 04 06 00 7B 00 00 C8 [19:39:05]Write i2c OK [19:39:05]MH_I2C_Read... [19:39:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:06]Read from MH i2c: E2 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: E2 03 00 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: E2 03 00 C3 09 00 90 00 40 [19:39:06]RAPDU: 90 00 [19:39:06]wFMCommunicate OK [19:39:06]wFMCommunicate request_size=10 [19:39:06]MH_SAM_APDU [19:39:06]CAPDU: 80 0D 02 02 05 E8 62 02 20 74 [19:39:06]Write to MH i2c: E2 0D 00 C4 09 80 0D 02 02 05 00 E8 62 02 20 74 00 00 31 [19:39:06]Write i2c OK [19:39:06]MH_I2C_Read... [19:39:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:06]Read from MH i2c: E2 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: E2 03 00 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: E2 03 00 C4 09 00 90 00 41 [19:39:06]RAPDU: 90 00 [19:39:06]wFMCommunicate OK [19:39:06]wFMCommunicate request_size=4 [19:39:06]MH_SAM_APDU [19:39:06]CAPDU: 80 0D 03 02 [19:39:06]Write to MH i2c: E2 08 00 C5 09 80 0D 03 02 00 00 00 00 49 [19:39:06]Write i2c OK [19:39:06]MH_I2C_Read... [19:39:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:06]Read from MH i2c: E2 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: E2 0B 00 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: E2 0B 00 C5 09 00 F5 FE 8B EB DB 05 11 D7 90 00 7B [19:39:06]RAPDU: F5 FE 8B EB DB 05 11 D7 90 00 [19:39:06]wFMCommunicate OK [19:39:06]SAM_PROTO_SignData done [19:39:06]FM_MakeSignedData done [19:39:06]CreateOFDProtocolMessage [19:39:06]wFMCommunicate request_size=4 [19:39:06]MH_SAM_APDU [19:39:06]CAPDU: 80 11 00 00 [19:39:06]Write to MH i2c: E2 08 00 C6 09 80 11 00 00 00 00 00 00 49 [19:39:06]Write i2c OK [19:39:06]MH_I2C_Read... [19:39:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:06]Read from MH i2c: E2 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: E2 17 00 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: E2 17 00 C6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9E [19:39:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:39:06]wFMCommunicate OK [19:39:06]CreateOFDProtocolMessage done [19:39:06]OFDSenderStorePacket 201667 [19:39:06]StoreOFDPacket docnum=201667 [19:39:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 38 97 07 01 C1 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 32 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 01 00 00 F4 03 04 00 59 45 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C3 13 03 00 35 04 06 00 7B E8 62 02 20 74 F5 FE 8B EB DB 05 11 D7 [19:39:06]CheckFolder [19:39:06]dirname=/storage/ofd_packets [19:39:06]CheckFolder done [19:39:06]ProducePacketName [19:39:06]name=ofd_packets/00201667 [19:39:06]NVStorageSaveData ofd_packets/00201667 [19:39:06]File name is /storage/ofd_packets/00201667 [19:39:06]Write 301 bytes [19:39:06]NVStorageSaveData done [19:39:06]OFDSenderStorePacket done [19:39:06]KKMCreateOFDPacket done [19:39:06]NVStorageSaveData kkm_last_timestamp [19:39:06]File name is /storage/kkm_last_timestamp [19:39:06]Write 4 bytes [19:39:06]NVStorageSaveData done [19:39:06]ExternCall_PrintAddStr [19:39:06]wPrintStart [19:39:06]Write to MH i2c: 01 00 00 C7 09 D0 [19:39:06]Write i2c OK [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: 01 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: 01 07 00 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: 01 07 00 C7 09 00 00 00 00 00 FF 0F E5 [19:39:06]RasterBufferAndPrint [19:39:06]line Счет N : (1)449425 [19:39:06]line ИНН: 02508201610067 [19:39:06]line Контрольно-Кассовый Чек [19:39:06]line ПРОДАЖА [19:39:06]line ТРК (МРК, ГНК) : 41 [19:39:06]line Товар: 2710124130 [19:39:06]line Аи-92-К-2 [19:39:06]line 3.890 * 66.90 [19:39:06]line = 260.24 [19:39:06]line НДС 12% НСП 1% [19:39:06]line > о реализуемом товаре [19:39:06]line ОКРУГЛЕНИЕ: -0.24 [19:39:06]line ИТОГО: 260.00 [19:39:06]line Внесено: 260.00 [19:39:06]line СДАЧА: 0.00 [19:39:06]line НСП 1% : 2.30 [19:39:06]line НДС 12% : 27.64 [19:39:06]line Наличными: 260.00 [19:39:06]line Безнал.: 0.00 [19:39:06]line Место: АЗС № 171 "Партнер Нефть" [19:39:06]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:39:06]line СНО: Общий режим [19:39:06]line Чек 429 26.10.2024 19:39 [19:39:06]line Смена: 543 ФФД: 1.0 [19:39:06]line ЗНМ: 0300000109 [19:39:06]line РНМ: 0000000000091777 [19:39:06]line Версия ККМ: 001 [19:39:06]line ФМ: 0000000000871756 [19:39:06]line ФД: 201667 [19:39:06]line ФПД: 136238006935668 [19:39:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T193905&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201667&fm=136238006935668&tin=02508201610067®Number=0000000000091777&sum=26000 [19:39:06]OFD Sender: Processing packet 201667 [packets to send 112, broken 111] [19:39:06]ProducePacketName [19:39:06]name=ofd_packets/00201667 [19:39:06]OFD Sender: To server: pG, [19:39:06]CommunicateWithHost lk.salyk.kg:30040 [19:39:06]ConnectInit lk.salyk.kg [19:39:06]written 0, free lines is 4095 [19:39:06]Connected sock=10 [19:39:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 38 97 07 01 C1 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 32 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 01 00 00 F4 03 04 00 59 45 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C3 13 03 00 35 04 06 00 7B E8 62 02 20 74 F5 FE 8B EB DB 05 11 D7 [19:39:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 4F F1 47 00 19 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C3 13 03 00 F4 03 04 00 01 F1 1C 67 B6 04 01 00 00 91 2D A5 B4 8C 62 C1 B3 [19:39:06]CommunicateWithHost err = 0 [19:39:06]CheckOFDResponse [19:39:06]1017 (14) - 77093643461234 [19:39:06]1041 (16) - 0000000000871756 [19:39:06]1040 (4) - 201667 [19:39:06]1012 (4) - 26.10.2024 13:39 [19:39:06]1206 (1) - 0 [19:39:06]OFD Sender: Remove packet 201667 [19:39:06]ProducePacketName [19:39:06]name=ofd_packets/00201667 [19:39:06]NVStorageDeleteData [19:39:07]Write to MH i2c: 01 00 00 F2 09 FB [19:39:07]Write i2c OK [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: 01 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: 01 07 00 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: 01 07 00 F2 09 00 00 00 00 00 AF 0C BD [19:39:07]RasterBufferAndPrint [19:39:07]line [19:39:07]line [19:39:07]line [19:39:07]line [19:39:07]line [19:39:07]written 0, free lines is 3255 [19:39:07]MH_Cut [19:39:07]Write to MH i2c: D1 01 00 F9 09 01 D4 [19:39:07]Write i2c OK [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: D1 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: D1 01 00 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: D1 01 00 F9 09 00 D3 [19:39:07]Write to MH i2c: 01 00 00 FA 09 03 [19:39:07]Write i2c OK [19:39:07]MH_I2C_Read... [19:39:07]OFD Sender: No OFD packet to send [19:39:07]*** Cut start [19:39:07]*** Purtial cut [19:39:07]*** Stage 1: CUTSNS_PIN = 1 [19:39:08]Read from MH i2c: 01 [19:39:08]MH_I2C_Read... [19:39:08]*** Stop cut motor [19:39:08]*** Cut end [19:39:08]Read from MH i2c: 01 07 00 [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: 01 07 00 FA 09 00 00 00 00 00 FF 0F 18 [19:39:08]process_action close_receipt done [19:39:08]requested_data is exist [19:39:08]produce_requested_data [19:39:08]requested_item fm.sn is exist - process it [19:39:08]wFMCommunicate request_size=4 [19:39:08]MH_SAM_APDU [19:39:08]CAPDU: 80 11 00 00 [19:39:08]Write to MH i2c: E2 08 00 FB 09 80 11 00 00 00 00 00 00 7E [19:39:08]Write i2c OK [19:39:08]MH_I2C_Read... [19:39:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:08]Read from MH i2c: E2 [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: E2 17 00 [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: E2 17 00 FB 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D3 [19:39:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:39:08]wFMCommunicate OK [19:39:08]requested_item fd.num is exist - process it [19:39:08]SAM_PROTO_GetFieldsCounters [19:39:08]wFMCommunicate request_size=4 [19:39:08]MH_SAM_APDU [19:39:08]CAPDU: 80 13 00 00 [19:39:08]Write to MH i2c: E2 08 00 FC 09 80 13 00 00 00 00 00 00 81 [19:39:08]Write i2c OK [19:39:08]MH_I2C_Read... [19:39:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:08]Read from MH i2c: E2 [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: E2 62 00 [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: E2 62 00 FC 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C3 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AD 01 00 00 5E 04 04 00 AD 01 00 00 57 04 04 00 AE 01 00 00 19 04 04 00 00 00 00 00 90 00 AE [19:39:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C3 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AD 01 00 00 5E 04 04 00 AD 01 00 00 57 04 04 00 AE 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:39:08]wFMCommunicate OK [19:39:08]SAM_PROTO_GetFieldsCounters done [19:39:08]requested_item shift.num is exist - process it [19:39:08]requested_item shift.opened is exist - process it [19:39:08]req_shift_opened [19:39:08]FM_GetShiftState [19:39:08]SAM_PROTO_GetShiftState [19:39:08]wFMCommunicate request_size=4 [19:39:08]MH_SAM_APDU [19:39:08]CAPDU: 80 13 01 00 [19:39:08]Write to MH i2c: E2 08 00 FD 09 80 13 01 00 00 00 00 00 83 [19:39:08]Write i2c OK [19:39:08]MH_I2C_Read... [19:39:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:08]Read from MH i2c: E2 [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: E2 0E 00 [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: E2 0E 00 FD 09 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 92 [19:39:08]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:39:08]wFMCommunicate OK [19:39:08]SAM_PROTO_GetShiftState done [19:39:08]FM_GetShiftState done [19:39:08]req_shift_opened done [19:39:08]requested_item shift.open_date is exist - process it [19:39:08]req_shift_open_date [19:39:08]req_shift_open_date done [19:39:08]produce_requested_data done [19:39:08]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201667,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [19:39:08]process_action_free close_receipt [19:39:08]json_value_free [19:39:08]json_value_free done [19:39:08]process_json_proto returns [19:39:08]Send response to host [19:39:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201667,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [19:39:08]free response buf [19:39:08]execute_script done [19:39:08]execute_script returns [19:39:08]free content buf [19:39:08]Sock 7.Close socket [19:39:08]Sock 7.Thread stoped [19:39:12]OFD Sender: No OFD packet to send [19:39:17]OFD Sender: No OFD packet to send [19:39:22]OFD Sender: No OFD packet to send [19:39:27]OFD Sender: No OFD packet to send [19:39:32]OFD Sender: No OFD packet to send [19:39:37]OFD Sender: No OFD packet to send [19:39:42]OFD Sender: No OFD packet to send [19:39:47]OFD Sender: No OFD packet to send [19:39:52]OFD Sender: No OFD packet to send [19:39:57]OFD Sender: No OFD packet to send [19:40:02]OFD Sender: No OFD packet to send [19:40:07]OFD Sender: No OFD packet to send [19:40:12]OFD Sender: No OFD packet to send [19:40:17]OFD Sender: No OFD packet to send [19:40:22]OFD Sender: No OFD packet to send [19:40:27]OFD Sender: No OFD packet to send [19:40:32]OFD Sender: No OFD packet to send [19:40:37]OFD Sender: No OFD packet to send [19:40:42]OFD Sender: No OFD packet to send [19:40:47]OFD Sender: No OFD packet to send [19:40:52]OFD Sender: No OFD packet to send [19:40:57]OFD Sender: No OFD packet to send [19:41:02]OFD Sender: No OFD packet to send [19:41:07]OFD Sender: No OFD packet to send [19:41:12]OFD Sender: No OFD packet to send [19:41:17]OFD Sender: No OFD packet to send [19:41:22]OFD Sender: No OFD packet to send [19:41:27]OFD Sender: No OFD packet to send [19:41:32]OFD Sender: No OFD packet to send [19:41:37]OFD Sender: No OFD packet to send [19:41:42]OFD Sender: No OFD packet to send [19:41:47]OFD Sender: No OFD packet to send [19:41:52]OFD Sender: No OFD packet to send [19:41:57]OFD Sender: No OFD packet to send [19:42:02]OFD Sender: No OFD packet to send [19:42:07]OFD Sender: No OFD packet to send [19:42:12]OFD Sender: No OFD packet to send [19:42:17]OFD Sender: No OFD packet to send [19:42:22]OFD Sender: No OFD packet to send [19:42:27]OFD Sender: No OFD packet to send [19:42:32]OFD Sender: No OFD packet to send [19:42:37]OFD Sender: No OFD packet to send [19:42:42]OFD Sender: No OFD packet to send [19:42:47]OFD Sender: No OFD packet to send [19:42:52]OFD Sender: No OFD packet to send [19:42:57]OFD Sender: No OFD packet to send [19:43:02]OFD Sender: No OFD packet to send [19:43:07]OFD Sender: No OFD packet to send [19:43:12]OFD Sender: No OFD packet to send [19:43:17]OFD Sender: No OFD packet to send [19:43:22]OFD Sender: No OFD packet to send [19:43:27]OFD Sender: No OFD packet to send [19:43:32]OFD Sender: No OFD packet to send [19:43:37]OFD Sender: No OFD packet to send [19:43:42]OFD Sender: No OFD packet to send [19:43:47]OFD Sender: No OFD packet to send [19:43:52]OFD Sender: No OFD packet to send [19:43:57]OFD Sender: No OFD packet to send [19:44:02]OFD Sender: No OFD packet to send [19:44:07]OFD Sender: No OFD packet to send [19:44:12]OFD Sender: No OFD packet to send [19:44:17]OFD Sender: No OFD packet to send [19:44:22]OFD Sender: No OFD packet to send [19:44:27]OFD Sender: No OFD packet to send [19:44:32]OFD Sender: No OFD packet to send [19:44:37]OFD Sender: No OFD packet to send [19:44:42]OFD Sender: No OFD packet to send [19:44:47]OFD Sender: No OFD packet to send [19:44:52]OFD Sender: No OFD packet to send [19:44:57]OFD Sender: No OFD packet to send [19:45:02]OFD Sender: No OFD packet to send [19:45:07]OFD Sender: No OFD packet to send [19:45:12]OFD Sender: No OFD packet to send [19:45:17]OFD Sender: No OFD packet to send [19:45:22]OFD Sender: No OFD packet to send [19:45:27]OFD Sender: No OFD packet to send [19:45:32]OFD Sender: No OFD packet to send [19:45:37]OFD Sender: No OFD packet to send [19:45:42]OFD Sender: No OFD packet to send [19:45:47]OFD Sender: No OFD packet to send [19:45:52]OFD Sender: No OFD packet to send [19:45:57]OFD Sender: No OFD packet to send [19:46:02]OFD Sender: No OFD packet to send [19:46:07]OFD Sender: No OFD packet to send [19:46:12]OFD Sender: No OFD packet to send [19:46:17]OFD Sender: No OFD packet to send [19:46:22]OFD Sender: No OFD packet to send [19:46:27]OFD Sender: No OFD packet to send [19:46:32]OFD Sender: No OFD packet to send [19:46:37]OFD Sender: No OFD packet to send [19:46:42]OFD Sender: No OFD packet to send [19:46:47]OFD Sender: No OFD packet to send [19:46:52]OFD Sender: No OFD packet to send [19:46:57]OFD Sender: No OFD packet to send [19:47:02]OFD Sender: No OFD packet to send [19:47:07]OFD Sender: No OFD packet to send [19:47:12]OFD Sender: No OFD packet to send [19:47:17]OFD Sender: No OFD packet to send [19:47:22]OFD Sender: No OFD packet to send [19:47:27]OFD Sender: No OFD packet to send [19:47:32]OFD Sender: No OFD packet to send [19:47:37]OFD Sender: No OFD packet to send [19:47:42]OFD Sender: No OFD packet to send [19:47:47]OFD Sender: No OFD packet to send [19:47:53]OFD Sender: No OFD packet to send [19:47:58]OFD Sender: No OFD packet to send [19:48:03]OFD Sender: No OFD packet to send [19:48:08]OFD Sender: No OFD packet to send [19:48:13]OFD Sender: No OFD packet to send [19:48:18]OFD Sender: No OFD packet to send [19:48:23]OFD Sender: No OFD packet to send [19:48:28]OFD Sender: No OFD packet to send [19:48:33]OFD Sender: No OFD packet to send [19:48:38]OFD Sender: No OFD packet to send [19:48:43]OFD Sender: No OFD packet to send [19:48:46]accept exits with 9 [19:48:46]New connection [19:48:46]New thread 3066608996 created [19:48:46]Thread 3066465636 joined [19:48:46]Waiting for new connection... [19:48:46] Sock 9.Parse request [19:48:46]Sock 9.Check first char [19:48:46]Sock 9.First char is OK [19:48:46]request: POST /json_proto HTTP/1.0 [19:48:46]Method: POST [19:48:46]URL: /json_proto [19:48:46]Method is POST - this is cgi request [19:48:46]url: /json_proto [19:48:46]query_string will be loaded in cgi processing [19:48:46]execute_cgi json_proto POST (null) [19:48:46]execute_cgi path=json_proto method=POST [19:48:46]POST find Content-Length [19:48:46]Host: 172.17.63.195:8080 [19:48:46]Content-Length: 677 [19:48:46]Content-Type: application/json [19:48:46] [19:48:46]POST finish read [19:48:46]Found Content-Length = 677 [19:48:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:46]execute_script... [19:48: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)449426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:46]POST & json_proto [19:48:46]process_json_proto [19:48:46]json parsed OK: [19:48:46]protocol is kg_v1.0 [19:48:46]action value=close_receipt [19:48:46]process_action close_receipt [19:48:46]cmd_close_receipt [19:48:46]MH_GetDate [19:48:46]Write to MH i2c: F0 00 00 FE 09 F6 [19:48:46]Write i2c OK [19:48:46]MH_I2C_Read... [19:48:46]Read from MH i2c: F0 [19:48:46]MH_I2C_Read... [19:48:46]Read from MH i2c: F0 09 00 [19:48:46]MH_I2C_Read... [19:48:46]Read from MH i2c: F0 09 00 FE 09 00 9F 47 1D 67 68 46 19 67 97 [19:48:46]GetLastDocTimeStamp 1729971545 [19:48:46]current date 1729972127 [19:48:46]FM_GetShiftState [19:48:46]SAM_PROTO_GetShiftState [19:48:46]wFMCommunicate request_size=4 [19:48:46]MH_SAM_APDU [19:48:46]CAPDU: 80 13 01 00 [19:48:46]Write to MH i2c: E2 08 00 FF 09 80 13 01 00 00 00 00 00 85 [19:48:46]Write i2c OK [19:48:46]MH_I2C_Read... [19:48:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:46]Read from MH i2c: E2 [19:48:46]MH_I2C_Read... [19:48:46]Read from MH i2c: E2 0E 00 [19:48:46]MH_I2C_Read... [19:48:46]Read from MH i2c: E2 0E 00 FF 09 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 94 [19:48:46]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:48:46]wFMCommunicate OK [19:48:46]SAM_PROTO_GetShiftState done [19:48:46]FM_GetShiftState done [19:48:46]opened in 1729900879 [19:48:46]opened+sec_in_day 1729987279 [19:48:46]quantity*price = 30038 [19:48:46]sum+1 = 30039 [19:48:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 430 26.10.2024 19:48 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201668 ФПД: 234108271484012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T194847&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201668&fm=234108271484012&tin=02508201610067®Number=0000000000091777&sum=30000 [19:48:47]StoreToDocumentArchive [19:48:47]shift 543 fd 201668 [19:48:47]save to /storage/0543/doc_00201668 [19:48:47]save last doc name /storage/0543/doc_00201668 to /storage/kkm_last_doc_name [19:48:47]save OK [19:48:47]Clear old archive folders... [19:48:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:48:47]tlvbuf is 01023840 [19:48:47]SAM_PROTO_ClearQueue [19:48:47]wFMCommunicate request_size=4 [19:48:47]MH_SAM_APDU [19:48:47]CAPDU: 80 09 00 00 [19:48:47]Write to MH i2c: E2 08 00 0C 0A 80 09 00 00 00 00 00 00 88 [19:48:47]Write i2c OK [19:48:47]MH_I2C_Read... [19:48:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:48:47]Read from MH i2c: E2 [19:48:47]MH_I2C_Read... [19:48:47]Read from MH i2c: E2 03 00 [19:48:47]MH_I2C_Read... [19:48:47]Read from MH i2c: E2 03 00 0C 0A 00 90 00 8A [19:48:47]RAPDU: 90 00 [19:48:47]wFMCommunicate OK [19:48:47]SAM_PROTO_ClearQueue done [19:48:47]KKMCreateOFDPacket [19:48:47]OFDProtocolAddRootSTLVToBuf [19:48:47]FM_MakeSignedData [19:48:47]FM_MakeSignedData [19:48:47]SAM_PROTO_SignData [19:48:47]wFMCommunicate request_size=4 [19:48:47]MH_SAM_APDU [19:48:47]CAPDU: 80 0D 01 02 [19:48:47]Write to MH i2c: E2 08 00 0D 0A 80 0D 01 02 00 00 00 00 90 [19:48:47]Write i2c OK [19:48:47]MH_I2C_Read... [19:48:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:48:47]Read from MH i2c: E2 [19:48:47]MH_I2C_Read... [19:48:47]Read from MH i2c: E2 03 00 [19:48:47]MH_I2C_Read... [19:48:47]Read from MH i2c: E2 03 00 0D 0A 00 90 00 8B [19:48:47]RAPDU: 90 00 [19:48:47]wFMCommunicate OK [19:48:47]wFMCommunicate request_size=255 [19:48:47]MH_SAM_APDU [19:48: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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 9F 47 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C4 13 03 00 35 04 06 00 D4 [19:48:47]Write to MH i2c: E2 02 01 0E 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 9F 47 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C4 13 03 00 35 04 06 00 D4 00 00 00 [19:48:47]Write i2c OK [19:48:47]MH_I2C_Read... [19:48:48]OFD Sender: No OFD packet to send [19:48:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:48]Read from MH i2c: E2 [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: E2 03 00 [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: E2 03 00 0E 0A 00 90 00 8C [19:48:48]RAPDU: 90 00 [19:48:48]wFMCommunicate OK [19:48:48]wFMCommunicate request_size=10 [19:48:48]MH_SAM_APDU [19:48:48]CAPDU: 80 0D 02 02 05 EB 94 5C 5C 6C [19:48:48]Write to MH i2c: E2 0D 00 0F 0A 80 0D 02 02 05 00 EB 94 5C 5C 6C 00 00 40 [19:48:48]Write i2c OK [19:48:48]MH_I2C_Read... [19:48:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:48]Read from MH i2c: E2 [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: E2 03 00 [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: E2 03 00 0F 0A 00 90 00 8D [19:48:48]RAPDU: 90 00 [19:48:48]wFMCommunicate OK [19:48:48]wFMCommunicate request_size=4 [19:48:48]MH_SAM_APDU [19:48:48]CAPDU: 80 0D 03 02 [19:48:48]Write to MH i2c: E2 08 00 10 0A 80 0D 03 02 00 00 00 00 95 [19:48:48]Write i2c OK [19:48:48]MH_I2C_Read... [19:48:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:48:48]Read from MH i2c: E2 [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: E2 0B 00 [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: E2 0B 00 10 0A 00 1C 18 3F 08 E4 E1 42 F6 90 00 0E [19:48:48]RAPDU: 1C 18 3F 08 E4 E1 42 F6 90 00 [19:48:48]wFMCommunicate OK [19:48:48]SAM_PROTO_SignData done [19:48:48]FM_MakeSignedData done [19:48:48]CreateOFDProtocolMessage [19:48:48]wFMCommunicate request_size=4 [19:48:48]MH_SAM_APDU [19:48:48]CAPDU: 80 11 00 00 [19:48:48]Write to MH i2c: E2 08 00 11 0A 80 11 00 00 00 00 00 00 95 [19:48:48]Write i2c OK [19:48:48]MH_I2C_Read... [19:48:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:48]Read from MH i2c: E2 [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: E2 17 00 [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: E2 17 00 11 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EA [19:48:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:48:48]wFMCommunicate OK [19:48:48]CreateOFDProtocolMessage done [19:48:48]OFDSenderStorePacket 201668 [19:48:48]StoreOFDPacket docnum=201668 [19:48:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 9A 81 07 01 1E 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 9F 47 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C4 13 03 00 35 04 06 00 D4 EB 94 5C 5C 6C 1C 18 3F 08 E4 E1 42 F6 [19:48:48]CheckFolder [19:48:48]dirname=/storage/ofd_packets [19:48:48]CheckFolder done [19:48:48]ProducePacketName [19:48:48]name=ofd_packets/00201668 [19:48:48]NVStorageSaveData ofd_packets/00201668 [19:48:48]File name is /storage/ofd_packets/00201668 [19:48:48]Write 301 bytes [19:48:48]NVStorageSaveData done [19:48:48]OFDSenderStorePacket done [19:48:48]KKMCreateOFDPacket done [19:48:48]NVStorageSaveData kkm_last_timestamp [19:48:48]File name is /storage/kkm_last_timestamp [19:48:48]Write 4 bytes [19:48:48]NVStorageSaveData done [19:48:48]ExternCall_PrintAddStr [19:48:48]wPrintStart [19:48:48]Write to MH i2c: 01 00 00 12 0A 1C [19:48:48]Write i2c OK [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: 01 [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: 01 07 00 [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: 01 07 00 12 0A 00 00 00 00 00 FF 0F 31 [19:48:48]RasterBufferAndPrint [19:48:48]line Счет N : (1)449426 [19:48:48]line ИНН: 02508201610067 [19:48:48]line Контрольно-Кассовый Чек [19:48:48]line ПРОДАЖА [19:48:48]line ТРК (МРК, ГНК) : 41 [19:48:48]line Товар: 2710124130 [19:48:48]line Аи-92-К-2 [19:48:48]line 4.490 * 66.90 [19:48:48]line = 300.38 [19:48:48]line НДС 12% НСП 1% [19:48:48]line > о реализуемом товаре [19:48:48]line ОКРУГЛЕНИЕ: -0.38 [19:48:48]line ИТОГО: 300.00 [19:48:48]line Внесено: 300.00 [19:48:48]line СДАЧА: 0.00 [19:48:48]line НСП 1% : 2.66 [19:48:48]line НДС 12% : 31.90 [19:48:48]line Наличными: 300.00 [19:48:48]line Безнал.: 0.00 [19:48:48]line Место: АЗС № 171 "Партнер Нефть" [19:48:48]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:48:48]line СНО: Общий режим [19:48:48]line Чек 430 26.10.2024 19:48 [19:48:48]line Смена: 543 ФФД: 1.0 [19:48:48]line ЗНМ: 0300000109 [19:48:48]line РНМ: 0000000000091777 [19:48:48]line Версия ККМ: 001 [19:48:48]line ФМ: 0000000000871756 [19:48:48]line ФД: 201668 [19:48:48]line ФПД: 234108271484012 [19:48:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T194847&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201668&fm=234108271484012&tin=02508201610067®Number=0000000000091777&sum=30000 [19:48:48]OFD Sender: Processing packet 201668 [packets to send 112, broken 111] [19:48:48]ProducePacketName [19:48:48]name=ofd_packets/00201668 [19:48:48]OFD Sender: To server: pG, [19:48:48]CommunicateWithHost lk.salyk.kg:30040 [19:48:48]ConnectInit lk.salyk.kg [19:48:48]written 0, free lines is 4095 [19:48:48]Connected sock=10 [19:48:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 9A 81 07 01 1E 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 9F 47 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C4 13 03 00 35 04 06 00 D4 EB 94 5C 5C 6C 1C 18 3F 08 E4 E1 42 F6 [19:48:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 35 F5 47 00 E6 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 38 37 31 37 35 36 10 04 04 00 C4 13 03 00 F4 03 04 00 47 F3 1C 67 B6 04 01 00 00 6C 47 54 1C 2C 15 4C A3 [19:48:48]CommunicateWithHost err = 0 [19:48:48]CheckOFDResponse [19:48:48]1017 (14) - 77093643461234 [19:48:48]1041 (16) - 0000000000871756 [19:48:48]1040 (4) - 201668 [19:48:48]1012 (4) - 26.10.2024 13:48 [19:48:48]1206 (1) - 0 [19:48:48]OFD Sender: Remove packet 201668 [19:48:48]ProducePacketName [19:48:48]name=ofd_packets/00201668 [19:48:48]NVStorageDeleteData [19:48:49]Write to MH i2c: 01 00 00 3D 0A 47 [19:48:49]Write i2c OK [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: 01 [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: 01 07 00 [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: 01 07 00 3D 0A 00 00 00 00 00 AA 0C 04 [19:48:49]RasterBufferAndPrint [19:48:49]line [19:48:49]line [19:48:49]line [19:48:49]line [19:48:49]line [19:48:49]written 0, free lines is 3249 [19:48:49]MH_Cut [19:48:49]Write to MH i2c: D1 01 00 44 0A 01 20 [19:48:49]Write i2c OK [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: D1 [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: D1 01 00 [19:48:49]MH_I2C_Read... [19:48:49]Read from MH i2c: D1 01 00 44 0A 00 1F [19:48:49]Write to MH i2c: 01 00 00 45 0A 4F [19:48:49]Write i2c OK [19:48:49]MH_I2C_Read... [19:48:49]OFD Sender: No OFD packet to send [19:48:49]*** Cut start [19:48:49]*** Purtial cut [19:48:49]*** CUTSNS_PIN = 0 [19:48:50]*** Stage 1: CUTSNS_PIN = 1 [19:48:51]Read from MH i2c: 01 [19:48:51]MH_I2C_Read... [19:48:51]*** Stop cut motor [19:48:51]*** Cut end [19:48:51]Read from MH i2c: 01 07 00 [19:48:51]MH_I2C_Read... [19:48:51]Read from MH i2c: 01 07 00 45 0A 00 00 00 00 00 FF 0F 64 [19:48:51]process_action close_receipt done [19:48:51]requested_data is exist [19:48:51]produce_requested_data [19:48:51]requested_item fm.sn is exist - process it [19:48:51]wFMCommunicate request_size=4 [19:48:51]MH_SAM_APDU [19:48:51]CAPDU: 80 11 00 00 [19:48:51]Write to MH i2c: E2 08 00 46 0A 80 11 00 00 00 00 00 00 CA [19:48:51]Write i2c OK [19:48:51]MH_I2C_Read... [19:48:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:52]Read from MH i2c: E2 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: E2 17 00 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: E2 17 00 46 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1F [19:48:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:48:52]wFMCommunicate OK [19:48:52]requested_item fd.num is exist - process it [19:48:52]SAM_PROTO_GetFieldsCounters [19:48:52]wFMCommunicate request_size=4 [19:48:52]MH_SAM_APDU [19:48:52]CAPDU: 80 13 00 00 [19:48:52]Write to MH i2c: E2 08 00 47 0A 80 13 00 00 00 00 00 00 CD [19:48:52]Write i2c OK [19:48:52]MH_I2C_Read... [19:48:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:48:52]Read from MH i2c: E2 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: E2 62 00 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: E2 62 00 47 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C4 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AE 01 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 AF 01 00 00 19 04 04 00 00 00 00 00 90 00 FE [19:48:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C4 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AE 01 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 AF 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:48:52]wFMCommunicate OK [19:48:52]SAM_PROTO_GetFieldsCounters done [19:48:52]requested_item shift.num is exist - process it [19:48:52]requested_item shift.opened is exist - process it [19:48:52]req_shift_opened [19:48:52]FM_GetShiftState [19:48:52]SAM_PROTO_GetShiftState [19:48:52]wFMCommunicate request_size=4 [19:48:52]MH_SAM_APDU [19:48:52]CAPDU: 80 13 01 00 [19:48:52]Write to MH i2c: E2 08 00 48 0A 80 13 01 00 00 00 00 00 CF [19:48:52]Write i2c OK [19:48:52]MH_I2C_Read... [19:48:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:52]Read from MH i2c: E2 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: E2 0E 00 [19:48:52]MH_I2C_Read... [19:48:52]Read from MH i2c: E2 0E 00 48 0A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 DE [19:48:52]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:48:52]wFMCommunicate OK [19:48:52]SAM_PROTO_GetShiftState done [19:48:52]FM_GetShiftState done [19:48:52]req_shift_opened done [19:48:52]requested_item shift.open_date is exist - process it [19:48:52]req_shift_open_date [19:48:52]req_shift_open_date done [19:48:52]produce_requested_data done [19:48:52]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201668,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [19:48:52]process_action_free close_receipt [19:48:52]json_value_free [19:48:52]json_value_free done [19:48:52]process_json_proto returns [19:48:52]Send response to host [19:48:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201668,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [19:48:52]free response buf [19:48:52]execute_script done [19:48:52]execute_script returns [19:48:52]free content buf [19:48:52]Sock 9.Close socket [19:48:52]Sock 9.Thread stoped [19:48:54]OFD Sender: No OFD packet to send [19:48:59]OFD Sender: No OFD packet to send [19:49:04]OFD Sender: No OFD packet to send [19:49:09]OFD Sender: No OFD packet to send [19:49:14]OFD Sender: No OFD packet to send [19:49:19]OFD Sender: No OFD packet to send [19:49:24]OFD Sender: No OFD packet to send [19:49:29]OFD Sender: No OFD packet to send [19:49:34]OFD Sender: No OFD packet to send [19:49:39]OFD Sender: No OFD packet to send [19:49:44]OFD Sender: No OFD packet to send [19:49:49]OFD Sender: No OFD packet to send [19:49:54]OFD Sender: No OFD packet to send [19:49:59]OFD Sender: No OFD packet to send [19:50:04]OFD Sender: No OFD packet to send [19:50:09]OFD Sender: No OFD packet to send [19:50:14]OFD Sender: No OFD packet to send [19:50:19]OFD Sender: No OFD packet to send [19:50:24]OFD Sender: No OFD packet to send [19:50:29]OFD Sender: No OFD packet to send [19:50:34]OFD Sender: No OFD packet to send [19:50:39]OFD Sender: No OFD packet to send [19:50:44]OFD Sender: No OFD packet to send [19:50:49]OFD Sender: No OFD packet to send [19:50:54]OFD Sender: No OFD packet to send [19:50:59]OFD Sender: No OFD packet to send [19:51:04]OFD Sender: No OFD packet to send [19:51:09]OFD Sender: No OFD packet to send [19:51:14]OFD Sender: No OFD packet to send [19:51:19]OFD Sender: No OFD packet to send [19:51:24]OFD Sender: No OFD packet to send [19:51:29]OFD Sender: No OFD packet to send [19:51:34]OFD Sender: No OFD packet to send [19:51:39]OFD Sender: No OFD packet to send [19:51:44]OFD Sender: No OFD packet to send [19:51:49]OFD Sender: No OFD packet to send [19:51:54]OFD Sender: No OFD packet to send [19:51:59]OFD Sender: No OFD packet to send [19:52:04]OFD Sender: No OFD packet to send [19:52:09]OFD Sender: No OFD packet to send [19:52:14]OFD Sender: No OFD packet to send [19:52:19]OFD Sender: No OFD packet to send [19:52:24]OFD Sender: No OFD packet to send [19:52:29]OFD Sender: No OFD packet to send [19:52:34]OFD Sender: No OFD packet to send [19:52:39]OFD Sender: No OFD packet to send [19:52:44]OFD Sender: No OFD packet to send [19:52:49]OFD Sender: No OFD packet to send [19:52:54]OFD Sender: No OFD packet to send [19:52:59]OFD Sender: No OFD packet to send [19:53:04]OFD Sender: No OFD packet to send [19:53:09]OFD Sender: No OFD packet to send [19:53:14]OFD Sender: No OFD packet to send [19:53:19]OFD Sender: No OFD packet to send [19:53:24]OFD Sender: No OFD packet to send [19:53:29]OFD Sender: No OFD packet to send [19:53:34]OFD Sender: No OFD packet to send [19:53:39]OFD Sender: No OFD packet to send [19:53:44]OFD Sender: No OFD packet to send [19:53:49]OFD Sender: No OFD packet to send [19:53:54]OFD Sender: No OFD packet to send [19:53:59]OFD Sender: No OFD packet to send [19:54:04]OFD Sender: No OFD packet to send [19:54:09]OFD Sender: No OFD packet to send [19:54:14]OFD Sender: No OFD packet to send [19:54:19]OFD Sender: No OFD packet to send [19:54:24]OFD Sender: No OFD packet to send [19:54:29]OFD Sender: No OFD packet to send [19:54:34]OFD Sender: No OFD packet to send [19:54:39]OFD Sender: No OFD packet to send [19:54:44]OFD Sender: No OFD packet to send [19:54:49]OFD Sender: No OFD packet to send [19:54:54]OFD Sender: No OFD packet to send [19:54:59]OFD Sender: No OFD packet to send [19:55:04]OFD Sender: No OFD packet to send [19:55:09]OFD Sender: No OFD packet to send [19:55:14]OFD Sender: No OFD packet to send [19:55:19]OFD Sender: No OFD packet to send [19:55:24]OFD Sender: No OFD packet to send [19:55:29]OFD Sender: No OFD packet to send [19:55:34]OFD Sender: No OFD packet to send [19:55:39]OFD Sender: No OFD packet to send [19:55:44]OFD Sender: No OFD packet to send [19:55:49]OFD Sender: No OFD packet to send [19:55:54]OFD Sender: No OFD packet to send [19:55:59]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:09]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:34]OFD Sender: No OFD packet to send [19:56:39]OFD Sender: No OFD packet to send [19:56:44]OFD Sender: No OFD packet to send [19:56:46]accept exits with 7 [19:56:46]New connection [19:56:46]New thread 3066465636 created [19:56:46]Thread 3066608996 joined [19:56:46]Waiting for new connection... [19:56:46] Sock 7.Parse request [19:56:46]Sock 7.Check first char [19:56:46]Sock 7.First char is OK [19:56:46]request: POST /json_proto HTTP/1.0 [19:56:46]Method: POST [19:56:46]URL: /json_proto [19:56:46]Method is POST - this is cgi request [19:56:46]url: /json_proto [19:56:46]query_string will be loaded in cgi processing [19:56:46]execute_cgi json_proto POST (null) [19:56:46]execute_cgi path=json_proto method=POST [19:56:46]POST find Content-Length [19:56:46]Host: 172.17.63.195:8080 [19:56:46]Content-Length: 675 [19:56:46]Content-Type: application/json [19:56:46] [19:56:46]POST finish read [19:56:46]Found Content-Length = 675 [19:56:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [19:56:46]execute_script... [19:56: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)449427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [19:56:46]POST & json_proto [19:56:46]process_json_proto [19:56:46]json parsed OK: [19:56:46]protocol is kg_v1.0 [19:56:46]action value=close_receipt [19:56:46]process_action close_receipt [19:56:46]cmd_close_receipt [19:56:46]MH_GetDate [19:56:46]Write to MH i2c: F0 00 00 49 0A 42 [19:56:46]Write i2c OK [19:56:46]MH_I2C_Read... [19:56:46]Read from MH i2c: F0 [19:56:46]MH_I2C_Read... [19:56:46]Read from MH i2c: F0 09 00 [19:56:46]MH_I2C_Read... [19:56:46]Read from MH i2c: F0 09 00 49 0A 00 7E 49 1D 67 68 46 19 67 C4 [19:56:46]GetLastDocTimeStamp 1729972127 [19:56:46]current date 1729972606 [19:56:46]FM_GetShiftState [19:56:46]SAM_PROTO_GetShiftState [19:56:46]wFMCommunicate request_size=4 [19:56:46]MH_SAM_APDU [19:56:46]CAPDU: 80 13 01 00 [19:56:46]Write to MH i2c: E2 08 00 4A 0A 80 13 01 00 00 00 00 00 D1 [19:56:46]Write i2c OK [19:56:46]MH_I2C_Read... [19:56:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:46]Read from MH i2c: E2 [19:56:46]MH_I2C_Read... [19:56:46]Read from MH i2c: E2 0E 00 [19:56:46]MH_I2C_Read... [19:56:46]Read from MH i2c: E2 0E 00 4A 0A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E0 [19:56:46]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:56:46]wFMCommunicate OK [19:56:46]SAM_PROTO_GetShiftState done [19:56:46]FM_GetShiftState done [19:56:46]opened in 1729900879 [19:56:46]opened+sec_in_day 1729987279 [19:56:46]quantity*price = 200001 [19:56:46]sum+1 = 200003 [19:56:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.39 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 431 26.10.2024 19:56 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201669 ФПД: 134363125170852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T195646&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201669&fm=134363125170852&tin=02508201610067®Number=0000000000091777&sum=200000 [19:56:47]StoreToDocumentArchive [19:56:47]shift 543 fd 201669 [19:56:47]save to /storage/0543/doc_00201669 [19:56:47]save last doc name /storage/0543/doc_00201669 to /storage/kkm_last_doc_name [19:56:47]save OK [19:56:47]Clear old archive folders... [19:56:47]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:56:47]tlvbuf is 0106DC50 [19:56:47]SAM_PROTO_ClearQueue [19:56:47]wFMCommunicate request_size=4 [19:56:47]MH_SAM_APDU [19:56:47]CAPDU: 80 09 00 00 [19:56:47]Write to MH i2c: E2 08 00 57 0A 80 09 00 00 00 00 00 00 D3 [19:56:47]Write i2c OK [19:56:47]MH_I2C_Read... [19:56:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:56:47]Read from MH i2c: E2 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 03 00 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 03 00 57 0A 00 90 00 D5 [19:56:47]RAPDU: 90 00 [19:56:47]wFMCommunicate OK [19:56:47]SAM_PROTO_ClearQueue done [19:56:47]KKMCreateOFDPacket [19:56:47]OFDProtocolAddRootSTLVToBuf [19:56:47]FM_MakeSignedData [19:56:47]FM_MakeSignedData [19:56:47]SAM_PROTO_SignData [19:56:47]wFMCommunicate request_size=4 [19:56:47]MH_SAM_APDU [19:56:47]CAPDU: 80 0D 01 02 [19:56:47]Write to MH i2c: E2 08 00 58 0A 80 0D 01 02 00 00 00 00 DB [19:56:47]Write i2c OK [19:56:47]MH_I2C_Read... [19:56:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:56:47]Read from MH i2c: E2 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 03 00 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 03 00 58 0A 00 90 00 D6 [19:56:47]RAPDU: 90 00 [19:56:47]wFMCommunicate OK [19:56:47]wFMCommunicate request_size=255 [19:56:47]MH_SAM_APDU [19:56:47]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 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 AF 01 00 00 F4 03 04 00 7E 49 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C5 13 03 00 35 04 06 00 [19:56:47]Write to MH i2c: E2 02 01 59 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 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 AF 01 00 00 F4 03 04 00 7E 49 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C5 13 03 00 35 04 06 00 00 00 28 [19:56:47]Write i2c OK [19:56:47]MH_I2C_Read... [19:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:47]Read from MH i2c: E2 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 03 00 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 03 00 59 0A 00 90 00 D7 [19:56:47]RAPDU: 90 00 [19:56:47]wFMCommunicate OK [19:56:47]wFMCommunicate request_size=11 [19:56:47]MH_SAM_APDU [19:56:47]CAPDU: 80 0D 02 02 06 7A 33 DA 58 C2 A4 [19:56:47]Write to MH i2c: E2 0E 00 5A 0A 80 0D 02 02 06 00 7A 33 DA 58 C2 A4 00 00 2F [19:56:47]Write i2c OK [19:56:47]MH_I2C_Read... [19:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:47]Read from MH i2c: E2 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 03 00 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 03 00 5A 0A 00 90 00 D8 [19:56:47]RAPDU: 90 00 [19:56:47]wFMCommunicate OK [19:56:47]wFMCommunicate request_size=4 [19:56:47]MH_SAM_APDU [19:56:47]CAPDU: 80 0D 03 02 [19:56:47]Write to MH i2c: E2 08 00 5B 0A 80 0D 03 02 00 00 00 00 E0 [19:56:47]Write i2c OK [19:56:47]MH_I2C_Read... [19:56:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:56:47]Read from MH i2c: E2 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 0B 00 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 0B 00 5B 0A 00 4A 26 56 BB 3A 15 10 41 90 00 02 [19:56:47]RAPDU: 4A 26 56 BB 3A 15 10 41 90 00 [19:56:47]wFMCommunicate OK [19:56:47]SAM_PROTO_SignData done [19:56:47]FM_MakeSignedData done [19:56:47]CreateOFDProtocolMessage [19:56:47]wFMCommunicate request_size=4 [19:56:47]MH_SAM_APDU [19:56:47]CAPDU: 80 11 00 00 [19:56:47]Write to MH i2c: E2 08 00 5C 0A 80 11 00 00 00 00 00 00 E0 [19:56:47]Write i2c OK [19:56:47]MH_I2C_Read... [19:56:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:47]Read from MH i2c: E2 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 17 00 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 17 00 5C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 35 [19:56:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:56:47]wFMCommunicate OK [19:56:47]CreateOFDProtocolMessage done [19:56:47]OFDSenderStorePacket 201669 [19:56:47]StoreOFDPacket docnum=201669 [19:56:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 F3 AD 08 01 6F C9 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 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 AF 01 00 00 F4 03 04 00 7E 49 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C5 13 03 00 35 04 06 00 7A 33 DA 58 C2 A4 4A 26 56 BB 3A 15 10 41 [19:56:47]CheckFolder [19:56:47]dirname=/storage/ofd_packets [19:56:47]CheckFolder done [19:56:47]ProducePacketName [19:56:47]name=ofd_packets/00201669 [19:56:47]NVStorageSaveData ofd_packets/00201669 [19:56:47]File name is /storage/ofd_packets/00201669 [19:56:47]Write 302 bytes [19:56:47]NVStorageSaveData done [19:56:47]OFDSenderStorePacket done [19:56:47]KKMCreateOFDPacket done [19:56:47]NVStorageSaveData kkm_last_timestamp [19:56:47]File name is /storage/kkm_last_timestamp [19:56:47]Write 4 bytes [19:56:47]NVStorageSaveData done [19:56:47]ExternCall_PrintAddStr [19:56:47]wPrintStart [19:56:47]Write to MH i2c: 01 00 00 5D 0A 67 [19:56:47]Write i2c OK [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: 01 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: 01 07 00 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: 01 07 00 5D 0A 00 00 00 00 00 FF 0F 7C [19:56:47]RasterBufferAndPrint [19:56:47]line Счет N : (1)449427 [19:56:47]line ИНН: 02508201610067 [19:56:47]line Контрольно-Кассовый Чек [19:56:47]line ПРОДАЖА [19:56:47]line ТРК (МРК, ГНК) : 42 [19:56:47]line Товар: 2710124130 [19:56:47]line SUPER 92-К-5 [19:56:47]line 29.240 * 68.40 [19:56:47]line = 2000.02 [19:56:47]line НДС 12% НСП 1% [19:56:47]line > о реализуемом товаре [19:56:47]line ОКРУГЛЕНИЕ: -0.02 [19:56:47]line ИТОГО: 2000.00 [19:56:47]line Внесено: 2000.00 [19:56:47]line СДАЧА: 0.00 [19:56:47]line НСП 1% : 17.70 [19:56:47]line НДС 12% : 212.39 [19:56:47]line Наличными: 2000.00 [19:56:47]line Безнал.: 0.00 [19:56:47]line Место: АЗС № 171 "Партнер Нефть" [19:56:47]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [19:56:47]line СНО: Общий режим [19:56:47]line Чек 431 26.10.2024 19:56 [19:56:47]line Смена: 543 ФФД: 1.0 [19:56:47]line ЗНМ: 0300000109 [19:56:47]line РНМ: 0000000000091777 [19:56:47]line Версия ККМ: 001 [19:56:47]line ФМ: 0000000000871756 [19:56:47]line ФД: 201669 [19:56:47]line ФПД: 134363125170852 [19:56:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T195646&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201669&fm=134363125170852&tin=02508201610067®Number=0000000000091777&sum=200000 [19:56:48]OFD Sender: Processing packet 201669 [packets to send 112, broken 111] [19:56:48]ProducePacketName [19:56:48]name=ofd_packets/00201669 [19:56:48]OFD Sender: To server: pG, [19:56:48]CommunicateWithHost lk.salyk.kg:30040 [19:56:48]ConnectInit lk.salyk.kg [19:56:48]written 0, free lines is 4095 [19:56:48]Connected sock=10 [19:56:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 F3 AD 08 01 6F C9 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 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 AF 01 00 00 F4 03 04 00 7E 49 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C5 13 03 00 35 04 06 00 7A 33 DA 58 C2 A4 4A 26 56 BB 3A 15 10 41 [19:56:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 16 A2 47 00 C7 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C5 13 03 00 F4 03 04 00 26 F5 1C 67 B6 04 01 00 00 12 D1 F3 A3 B4 6E A2 A5 [19:56:48]CommunicateWithHost err = 0 [19:56:48]CheckOFDResponse [19:56:48]1017 (14) - 77093643461234 [19:56:48]1041 (16) - 0000000000871756 [19:56:48]1040 (4) - 201669 [19:56:48]1012 (4) - 26.10.2024 13:56 [19:56:48]1206 (1) - 0 [19:56:48]OFD Sender: Remove packet 201669 [19:56:48]ProducePacketName [19:56:48]name=ofd_packets/00201669 [19:56:48]NVStorageDeleteData [19:56:48]Write to MH i2c: 01 00 00 88 0A 92 [19:56:48]Write i2c OK [19:56:48]MH_I2C_Read... [19:56:48]Read from MH i2c: 01 [19:56:48]MH_I2C_Read... [19:56:48]Read from MH i2c: 01 07 00 [19:56:48]MH_I2C_Read... [19:56:48]Read from MH i2c: 01 07 00 88 0A 00 00 00 00 00 A0 0C 45 [19:56:48]RasterBufferAndPrint [19:56:48]line [19:56:48]line [19:56:48]line [19:56:48]line [19:56:48]line [19:56:48]written 0, free lines is 3237 [19:56:48]MH_Cut [19:56:48]Write to MH i2c: D1 01 00 8F 0A 01 6B [19:56:48]Write i2c OK [19:56:48]MH_I2C_Read... [19:56:48]Read from MH i2c: D1 [19:56:48]MH_I2C_Read... [19:56:48]Read from MH i2c: D1 01 00 [19:56:48]MH_I2C_Read... [19:56:48]Read from MH i2c: D1 01 00 8F 0A 00 6A [19:56:48]Write to MH i2c: 01 00 00 90 0A 9A [19:56:48]Write i2c OK [19:56:48]MH_I2C_Read... [19:56:49]OFD Sender: No OFD packet to send [19:56:49]*** Cut start [19:56:49]*** Purtial cut [19:56:49]*** Stage 1: CUTSNS_PIN = 1 [19:56:49]Read from MH i2c: 01 [19:56:49]MH_I2C_Read... [19:56:49]*** Stop cut motor [19:56:49]*** Cut end [19:56:49]Read from MH i2c: 01 07 00 [19:56:49]MH_I2C_Read... [19:56:49]Read from MH i2c: 01 07 00 90 0A 00 00 00 00 00 FF 0F AF [19:56:49]process_action close_receipt done [19:56:49]requested_data is exist [19:56:49]produce_requested_data [19:56:49]requested_item fm.sn is exist - process it [19:56:49]wFMCommunicate request_size=4 [19:56:49]MH_SAM_APDU [19:56:49]CAPDU: 80 11 00 00 [19:56:49]Write to MH i2c: E2 08 00 91 0A 80 11 00 00 00 00 00 00 15 [19:56:49]Write i2c OK [19:56:49]MH_I2C_Read... [19:56:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:49]Read from MH i2c: E2 [19:56:49]MH_I2C_Read... [19:56:49]Read from MH i2c: E2 17 00 [19:56:49]MH_I2C_Read... [19:56:49]Read from MH i2c: E2 17 00 91 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6A [19:56:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [19:56:49]wFMCommunicate OK [19:56:49]requested_item fd.num is exist - process it [19:56:49]SAM_PROTO_GetFieldsCounters [19:56:49]wFMCommunicate request_size=4 [19:56:49]MH_SAM_APDU [19:56:49]CAPDU: 80 13 00 00 [19:56:49]Write to MH i2c: E2 08 00 92 0A 80 13 00 00 00 00 00 00 18 [19:56:49]Write i2c OK [19:56:49]MH_I2C_Read... [19:56:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:56:49]Read from MH i2c: E2 [19:56:49]MH_I2C_Read... [19:56:49]Read from MH i2c: E2 62 00 [19:56:49]MH_I2C_Read... [19:56:49]Read from MH i2c: E2 62 00 92 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C5 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AF 01 00 00 5E 04 04 00 AF 01 00 00 57 04 04 00 B0 01 00 00 19 04 04 00 00 00 00 00 90 00 4D [19:56:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C5 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AF 01 00 00 5E 04 04 00 AF 01 00 00 57 04 04 00 B0 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:56:50]wFMCommunicate OK [19:56:50]SAM_PROTO_GetFieldsCounters done [19:56:50]requested_item shift.num is exist - process it [19:56:50]requested_item shift.opened is exist - process it [19:56:50]req_shift_opened [19:56:50]FM_GetShiftState [19:56:50]SAM_PROTO_GetShiftState [19:56:50]wFMCommunicate request_size=4 [19:56:50]MH_SAM_APDU [19:56:50]CAPDU: 80 13 01 00 [19:56:50]Write to MH i2c: E2 08 00 93 0A 80 13 01 00 00 00 00 00 1A [19:56:50]Write i2c OK [19:56:50]MH_I2C_Read... [19:56:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:50]Read from MH i2c: E2 [19:56:50]MH_I2C_Read... [19:56:50]Read from MH i2c: E2 0E 00 [19:56:50]MH_I2C_Read... [19:56:50]Read from MH i2c: E2 0E 00 93 0A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 29 [19:56:50]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [19:56:50]wFMCommunicate OK [19:56:50]SAM_PROTO_GetShiftState done [19:56:50]FM_GetShiftState done [19:56:50]req_shift_opened done [19:56:50]requested_item shift.open_date is exist - process it [19:56:50]req_shift_open_date [19:56:50]req_shift_open_date done [19:56:50]produce_requested_data done [19:56:50]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201669,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [19:56:50]process_action_free close_receipt [19:56:50]json_value_free [19:56:50]json_value_free done [19:56:50]process_json_proto returns [19:56:50]Send response to host [19:56:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201669,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [19:56:50]free response buf [19:56:50]execute_script done [19:56:50]execute_script returns [19:56:50]free content buf [19:56:50]Sock 7.Close socket [19:56:50]Sock 7.Thread stoped [19:56:54]OFD Sender: No OFD packet to send [19:56:59]OFD Sender: No OFD packet to send [19:57:04]OFD Sender: No OFD packet to send [19:57:09]OFD Sender: No OFD packet to send [19:57:14]OFD Sender: No OFD packet to send [19:57:19]OFD Sender: No OFD packet to send [19:57:24]OFD Sender: No OFD packet to send [19:57:29]OFD Sender: No OFD packet to send [19:57:34]OFD Sender: No OFD packet to send [19:57:39]OFD Sender: No OFD packet to send [19:57:44]OFD Sender: No OFD packet to send [19:57:49]OFD Sender: No OFD packet to send [19:57:54]OFD Sender: No OFD packet to send [19:57:59]OFD Sender: No OFD packet to send [19:58:04]OFD Sender: No OFD packet to send [19:58:09]OFD Sender: No OFD packet to send [19:58:14]OFD Sender: No OFD packet to send [19:58:19]OFD Sender: No OFD packet to send [19:58:24]OFD Sender: No OFD packet to send [19:58:29]OFD Sender: No OFD packet to send [19:58:34]OFD Sender: No OFD packet to send [19:58:39]OFD Sender: No OFD packet to send [19:58:44]OFD Sender: No OFD packet to send [19:58:49]OFD Sender: No OFD packet to send [19:58:54]OFD Sender: No OFD packet to send [19:58:59]OFD Sender: No OFD packet to send [19:59:04]OFD Sender: No OFD packet to send [19:59:09]OFD Sender: No OFD packet to send [19:59:14]OFD Sender: No OFD packet to send [19:59:19]OFD Sender: No OFD packet to send [19:59:24]OFD Sender: No OFD packet to send [19:59:29]OFD Sender: No OFD packet to send [19:59:34]OFD Sender: No OFD packet to send [19:59:39]OFD Sender: No OFD packet to send [19:59:44]OFD Sender: No OFD packet to send [19:59:49]OFD Sender: No OFD packet to send [19:59:54]OFD Sender: No OFD packet to send [19:59:59]OFD Sender: No OFD packet to send [20:00:02]accept exits with 9 [20:00:02]New connection [20:00:02]New thread 3066608996 created [20:00:02]Thread 3066465636 joined [20:00:02]Waiting for new connection... [20:00:02] Sock 9.Parse request [20:00:02]Sock 9.Check first char [20:00:02]Sock 9.First char is OK [20:00:02]request: POST /json_proto HTTP/1.0 [20:00:02]Method: POST [20:00:02]URL: /json_proto [20:00:02]Method is POST - this is cgi request [20:00:02]url: /json_proto [20:00:02]query_string will be loaded in cgi processing [20:00:02]execute_cgi json_proto POST (null) [20:00:02]execute_cgi path=json_proto method=POST [20:00:02]POST find Content-Length [20:00:02]Host: 172.17.63.195:8080 [20:00:02]Content-Length: 677 [20:00:02]Content-Type: application/json [20:00:02] [20:00:02]POST finish read [20:00:02]Found Content-Length = 677 [20:00:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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" ] } } [20:00:02]execute_script... [20:00: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)449428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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" ] } } [20:00:02]POST & json_proto [20:00:02]process_json_proto [20:00:02]json parsed OK: [20:00:02]protocol is kg_v1.0 [20:00:02]action value=close_receipt [20:00:02]process_action close_receipt [20:00:02]cmd_close_receipt [20:00:02]MH_GetDate [20:00:02]Write to MH i2c: F0 00 00 94 0A 8D [20:00:02]Write i2c OK [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: F0 [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: F0 09 00 [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: F0 09 00 94 0A 00 43 4A 1D 67 68 46 19 67 D5 [20:00:02]GetLastDocTimeStamp 1729972606 [20:00:02]current date 1729972803 [20:00:02]FM_GetShiftState [20:00:02]SAM_PROTO_GetShiftState [20:00:02]wFMCommunicate request_size=4 [20:00:02]MH_SAM_APDU [20:00:02]CAPDU: 80 13 01 00 [20:00:02]Write to MH i2c: E2 08 00 95 0A 80 13 01 00 00 00 00 00 1C [20:00:02]Write i2c OK [20:00:02]MH_I2C_Read... [20:00:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:02]Read from MH i2c: E2 [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: E2 0E 00 [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: E2 0E 00 95 0A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 2B [20:00:02]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [20:00:02]wFMCommunicate OK [20:00:02]SAM_PROTO_GetShiftState done [20:00:02]FM_GetShiftState done [20:00:02]opened in 1729900879 [20:00:02]opened+sec_in_day 1729987279 [20:00:02]quantity*price = 60009 [20:00:02]sum+1 = 60010 [20:00:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 432 26.10.2024 20:00 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201670 ФПД: 31479998568249 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T200003&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201670&fm=31479998568249&tin=02508201610067®Number=0000000000091777&sum=60000 [20:00:04]StoreToDocumentArchive [20:00:04]shift 543 fd 201670 [20:00:04]save to /storage/0543/doc_00201670 [20:00:04]save last doc name /storage/0543/doc_00201670 to /storage/kkm_last_doc_name [20:00:04]save OK [20:00:04]Clear old archive folders... [20:00:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:00:04]tlvbuf is 010867B0 [20:00:04]SAM_PROTO_ClearQueue [20:00:04]wFMCommunicate request_size=4 [20:00:04]MH_SAM_APDU [20:00:04]CAPDU: 80 09 00 00 [20:00:04]Write to MH i2c: E2 08 00 A2 0A 80 09 00 00 00 00 00 00 1E [20:00:04]Write i2c OK [20:00:04]MH_I2C_Read... [20:00:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:00:04]Read from MH i2c: E2 [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: E2 03 00 [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: E2 03 00 A2 0A 00 90 00 20 [20:00:04]RAPDU: 90 00 [20:00:04]wFMCommunicate OK [20:00:04]SAM_PROTO_ClearQueue done [20:00:04]KKMCreateOFDPacket [20:00:04]OFDProtocolAddRootSTLVToBuf [20:00:04]FM_MakeSignedData [20:00:04]FM_MakeSignedData [20:00:04]SAM_PROTO_SignData [20:00:04]wFMCommunicate request_size=4 [20:00:04]MH_SAM_APDU [20:00:04]CAPDU: 80 0D 01 02 [20:00:04]Write to MH i2c: E2 08 00 A3 0A 80 0D 01 02 00 00 00 00 26 [20:00:04]Write i2c OK [20:00:04]MH_I2C_Read... [20:00:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:00:04]Read from MH i2c: E2 [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: E2 03 00 [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: E2 03 00 A3 0A 00 90 00 21 [20:00:04]RAPDU: 90 00 [20:00:04]wFMCommunicate OK [20:00:04]wFMCommunicate request_size=255 [20:00:04]MH_SAM_APDU [20:00: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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 B0 01 00 00 F4 03 04 00 43 4A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C6 13 03 00 35 04 06 00 1C [20:00:04]Write to MH i2c: E2 02 01 A4 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 B0 01 00 00 F4 03 04 00 43 4A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C6 13 03 00 35 04 06 00 1C 00 00 72 [20:00:04]Write i2c OK [20:00:04]MH_I2C_Read... [20:00:04]OFD Sender: No OFD packet to send [20:00:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:04]Read from MH i2c: E2 [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: E2 03 00 [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: E2 03 00 A4 0A 00 90 00 22 [20:00:04]RAPDU: 90 00 [20:00:04]wFMCommunicate OK [20:00:04]wFMCommunicate request_size=10 [20:00:04]MH_SAM_APDU [20:00:04]CAPDU: 80 0D 02 02 05 A1 82 21 D7 39 [20:00:04]Write to MH i2c: E2 0D 00 A5 0A 80 0D 02 02 05 00 A1 82 21 D7 39 00 00 87 [20:00:04]Write i2c OK [20:00:04]MH_I2C_Read... [20:00:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:04]Read from MH i2c: E2 [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: E2 03 00 [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: E2 03 00 A5 0A 00 90 00 23 [20:00:04]RAPDU: 90 00 [20:00:04]wFMCommunicate OK [20:00:04]wFMCommunicate request_size=4 [20:00:04]MH_SAM_APDU [20:00:04]CAPDU: 80 0D 03 02 [20:00:04]Write to MH i2c: E2 08 00 A6 0A 80 0D 03 02 00 00 00 00 2B [20:00:04]Write i2c OK [20:00:04]MH_I2C_Read... [20:00:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:00:04]Read from MH i2c: E2 [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: E2 0B 00 [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: E2 0B 00 A6 0A 00 5F 15 D8 2A 04 44 2D C4 90 00 DB [20:00:04]RAPDU: 5F 15 D8 2A 04 44 2D C4 90 00 [20:00:04]wFMCommunicate OK [20:00:04]SAM_PROTO_SignData done [20:00:04]FM_MakeSignedData done [20:00:04]CreateOFDProtocolMessage [20:00:04]wFMCommunicate request_size=4 [20:00:04]MH_SAM_APDU [20:00:04]CAPDU: 80 11 00 00 [20:00:04]Write to MH i2c: E2 08 00 A7 0A 80 11 00 00 00 00 00 00 2B [20:00:04]Write i2c OK [20:00:04]MH_I2C_Read... [20:00:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:04]Read from MH i2c: E2 [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: E2 17 00 [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: E2 17 00 A7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 80 [20:00:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:00:04]wFMCommunicate OK [20:00:04]CreateOFDProtocolMessage done [20:00:04]OFDSenderStorePacket 201670 [20:00:04]StoreOFDPacket docnum=201670 [20:00:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 AD A1 07 01 B6 3C 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 B0 01 00 00 F4 03 04 00 43 4A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C6 13 03 00 35 04 06 00 1C A1 82 21 D7 39 5F 15 D8 2A 04 44 2D C4 [20:00:04]CheckFolder [20:00:04]dirname=/storage/ofd_packets [20:00:04]CheckFolder done [20:00:04]ProducePacketName [20:00:04]name=ofd_packets/00201670 [20:00:04]NVStorageSaveData ofd_packets/00201670 [20:00:04]File name is /storage/ofd_packets/00201670 [20:00:04]Write 301 bytes [20:00:04]NVStorageSaveData done [20:00:04]OFDSenderStorePacket done [20:00:04]KKMCreateOFDPacket done [20:00:04]NVStorageSaveData kkm_last_timestamp [20:00:04]File name is /storage/kkm_last_timestamp [20:00:04]Write 4 bytes [20:00:04]NVStorageSaveData done [20:00:04]ExternCall_PrintAddStr [20:00:04]wPrintStart [20:00:04]Write to MH i2c: 01 00 00 A8 0A B2 [20:00:04]Write i2c OK [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: 01 [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: 01 07 00 [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: 01 07 00 A8 0A 00 00 00 00 00 FF 0F C7 [20:00:04]RasterBufferAndPrint [20:00:04]line Счет N : (1)449428 [20:00:04]line ИНН: 02508201610067 [20:00:04]line Контрольно-Кассовый Чек [20:00:04]line ПРОДАЖА [20:00:04]line ТРК (МРК, ГНК) : 41 [20:00:04]line Товар: 2710124130 [20:00:04]line Аи-92-К-2 [20:00:04]line 8.970 * 66.90 [20:00:04]line = 600.09 [20:00:04]line НДС 12% НСП 1% [20:00:04]line > о реализуемом товаре [20:00:04]line ОКРУГЛЕНИЕ: -0.09 [20:00:04]line ИТОГО: 600.00 [20:00:04]line Внесено: 600.00 [20:00:04]line СДАЧА: 0.00 [20:00:04]line НСП 1% : 5.31 [20:00:04]line НДС 12% : 63.73 [20:00:04]line Наличными: 600.00 [20:00:04]line Безнал.: 0.00 [20:00:04]line Место: АЗС № 171 "Партнер Нефть" [20:00:04]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [20:00:04]line СНО: Общий режим [20:00:04]line Чек 432 26.10.2024 20:00 [20:00:04]line Смена: 543 ФФД: 1.0 [20:00:04]line ЗНМ: 0300000109 [20:00:04]line РНМ: 0000000000091777 [20:00:04]line Версия ККМ: 001 [20:00:04]line ФМ: 0000000000871756 [20:00:04]line ФД: 201670 [20:00:04]line ФПД: 31479998568249 [20:00:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T200003&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201670&fm=31479998568249&tin=02508201610067®Number=0000000000091777&sum=60000 [20:00:04]OFD Sender: Processing packet 201670 [packets to send 112, broken 111] [20:00:04]ProducePacketName [20:00:04]name=ofd_packets/00201670 [20:00:04]OFD Sender: To server: pG, [20:00:04]CommunicateWithHost lk.salyk.kg:30040 [20:00:04]ConnectInit lk.salyk.kg [20:00:04]written 0, free lines is 4095 [20:00:05]Connected sock=10 [20:00:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 AD A1 07 01 B6 3C 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 B0 01 00 00 F4 03 04 00 43 4A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C6 13 03 00 35 04 06 00 1C A1 82 21 D7 39 5F 15 D8 2A 04 44 2D C4 [20:00:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 7F 80 47 00 E8 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C6 13 03 00 F4 03 04 00 EB F5 1C 67 B6 04 01 00 00 F3 2E 29 FF 98 01 BD 36 [20:00:05]CommunicateWithHost err = 0 [20:00:05]CheckOFDResponse [20:00:05]1017 (14) - 77093643461234 [20:00:05]1041 (16) - 0000000000871756 [20:00:05]1040 (4) - 201670 [20:00:05]1012 (4) - 26.10.2024 14:00 [20:00:05]1206 (1) - 0 [20:00:05]OFD Sender: Remove packet 201670 [20:00:05]ProducePacketName [20:00:05]name=ofd_packets/00201670 [20:00:05]NVStorageDeleteData [20:00:05]Write to MH i2c: 01 00 00 D3 0A DD [20:00:05]Write i2c OK [20:00:05]MH_I2C_Read... [20:00:05]Read from MH i2c: 01 [20:00:05]MH_I2C_Read... [20:00:05]Read from MH i2c: 01 07 00 [20:00:05]MH_I2C_Read... [20:00:05]Read from MH i2c: 01 07 00 D3 0A 00 00 00 00 00 A4 0C 94 [20:00:05]RasterBufferAndPrint [20:00:05]line [20:00:05]line [20:00:05]line [20:00:05]line [20:00:05]line [20:00:05]written 0, free lines is 3242 [20:00:05]MH_Cut [20:00:05]Write to MH i2c: D1 01 00 DA 0A 01 B6 [20:00:05]Write i2c OK [20:00:05]MH_I2C_Read... [20:00:05]Read from MH i2c: D1 [20:00:05]MH_I2C_Read... [20:00:05]Read from MH i2c: D1 01 00 [20:00:05]MH_I2C_Read... [20:00:05]Read from MH i2c: D1 01 00 DA 0A 00 B5 [20:00:05]Write to MH i2c: 01 00 00 DB 0A E5 [20:00:05]Write i2c OK [20:00:05]MH_I2C_Read... [20:00:05]OFD Sender: No OFD packet to send [20:00:06]*** Cut start [20:00:06]*** Purtial cut [20:00:06]*** Stage 1: CUTSNS_PIN = 1 [20:00:06]Read from MH i2c: 01 [20:00:06]MH_I2C_Read... [20:00:06]*** Stop cut motor [20:00:06]*** Cut end [20:00:06]Read from MH i2c: 01 07 00 [20:00:06]MH_I2C_Read... [20:00:06]Read from MH i2c: 01 07 00 DB 0A 00 00 00 00 00 FF 0F FA [20:00:06]process_action close_receipt done [20:00:06]requested_data is exist [20:00:06]produce_requested_data [20:00:06]requested_item fm.sn is exist - process it [20:00:06]wFMCommunicate request_size=4 [20:00:06]MH_SAM_APDU [20:00:06]CAPDU: 80 11 00 00 [20:00:06]Write to MH i2c: E2 08 00 DC 0A 80 11 00 00 00 00 00 00 60 [20:00:06]Write i2c OK [20:00:06]MH_I2C_Read... [20:00:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:06]Read from MH i2c: E2 [20:00:06]MH_I2C_Read... [20:00:06]Read from MH i2c: E2 17 00 [20:00:06]MH_I2C_Read... [20:00:06]Read from MH i2c: E2 17 00 DC 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B5 [20:00:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:00:06]wFMCommunicate OK [20:00:06]requested_item fd.num is exist - process it [20:00:06]SAM_PROTO_GetFieldsCounters [20:00:06]wFMCommunicate request_size=4 [20:00:06]MH_SAM_APDU [20:00:06]CAPDU: 80 13 00 00 [20:00:06]Write to MH i2c: E2 08 00 DD 0A 80 13 00 00 00 00 00 00 63 [20:00:06]Write i2c OK [20:00:06]MH_I2C_Read... [20:00:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:00:06]Read from MH i2c: E2 [20:00:06]MH_I2C_Read... [20:00:06]Read from MH i2c: E2 62 00 [20:00:06]MH_I2C_Read... [20:00:06]Read from MH i2c: E2 62 00 DD 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C6 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B0 01 00 00 5E 04 04 00 B0 01 00 00 57 04 04 00 B1 01 00 00 19 04 04 00 00 00 00 00 90 00 9C [20:00:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C6 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B0 01 00 00 5E 04 04 00 B0 01 00 00 57 04 04 00 B1 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:00:06]wFMCommunicate OK [20:00:06]SAM_PROTO_GetFieldsCounters done [20:00:06]requested_item shift.num is exist - process it [20:00:06]requested_item shift.opened is exist - process it [20:00:06]req_shift_opened [20:00:06]FM_GetShiftState [20:00:06]SAM_PROTO_GetShiftState [20:00:06]wFMCommunicate request_size=4 [20:00:06]MH_SAM_APDU [20:00:06]CAPDU: 80 13 01 00 [20:00:06]Write to MH i2c: E2 08 00 DE 0A 80 13 01 00 00 00 00 00 65 [20:00:06]Write i2c OK [20:00:06]MH_I2C_Read... [20:00:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:06]Read from MH i2c: E2 [20:00:06]MH_I2C_Read... [20:00:06]Read from MH i2c: E2 0E 00 [20:00:06]MH_I2C_Read... [20:00:06]Read from MH i2c: E2 0E 00 DE 0A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 74 [20:00:06]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [20:00:06]wFMCommunicate OK [20:00:06]SAM_PROTO_GetShiftState done [20:00:06]FM_GetShiftState done [20:00:06]req_shift_opened done [20:00:06]requested_item shift.open_date is exist - process it [20:00:06]req_shift_open_date [20:00:06]req_shift_open_date done [20:00:06]produce_requested_data done [20:00:06]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201670,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [20:00:06]process_action_free close_receipt [20:00:06]json_value_free [20:00:06]json_value_free done [20:00:06]process_json_proto returns [20:00:06]Send response to host [20:00:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201670,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [20:00:06]free response buf [20:00:06]execute_script done [20:00:06]execute_script returns [20:00:06]free content buf [20:00:06]Sock 9.Close socket [20:00:06]Sock 9.Thread stoped [20:00:10]OFD Sender: No OFD packet to send [20:00:15]OFD Sender: No OFD packet to send [20:00:20]OFD Sender: No OFD packet to send [20:00:25]OFD Sender: No OFD packet to send [20:00:30]OFD Sender: No OFD packet to send [20:00:35]OFD Sender: No OFD packet to send [20:00:40]OFD Sender: No OFD packet to send [20:00:45]OFD Sender: No OFD packet to send [20:00:50]OFD Sender: No OFD packet to send [20:00:55]OFD Sender: No OFD packet to send [20:01:00]OFD Sender: No OFD packet to send [20:01:05]OFD Sender: No OFD packet to send [20:01:10]OFD Sender: No OFD packet to send [20:01:15]OFD Sender: No OFD packet to send [20:01:20]OFD Sender: No OFD packet to send [20:01:25]OFD Sender: No OFD packet to send [20:01:30]OFD Sender: No OFD packet to send [20:01:35]OFD Sender: No OFD packet to send [20:01:40]OFD Sender: No OFD packet to send [20:01:45]OFD Sender: No OFD packet to send [20:01:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:15]OFD Sender: No OFD packet to send [20:02:20]OFD Sender: No OFD packet to send [20:02:25]OFD Sender: No OFD packet to send [20:02:30]OFD Sender: No OFD packet to send [20:02:35]OFD Sender: No OFD packet to send [20:02:40]OFD Sender: No OFD packet to send [20:02:45]OFD Sender: No OFD packet to send [20:02:50]OFD Sender: No OFD packet to send [20:02:55]OFD Sender: No OFD packet to send [20:03:00]OFD Sender: No OFD packet to send [20:03:05]OFD Sender: No OFD packet to send [20:03:10]OFD Sender: No OFD packet to send [20:03:16]OFD Sender: No OFD packet to send [20:03:21]OFD Sender: No OFD packet to send [20:03:26]OFD Sender: No OFD packet to send [20:03:31]OFD Sender: No OFD packet to send [20:03:36]OFD Sender: No OFD packet to send [20:03:41]OFD Sender: No OFD packet to send [20:03:46]OFD Sender: No OFD packet to send [20:03:51]OFD Sender: No OFD packet to send [20:03:56]OFD Sender: No OFD packet to send [20:04:01]OFD Sender: No OFD packet to send [20:04:06]OFD Sender: No OFD packet to send [20:04:11]OFD Sender: No OFD packet to send [20:04:16]OFD Sender: No OFD packet to send [20:04:21]OFD Sender: No OFD packet to send [20:04:26]OFD Sender: No OFD packet to send [20:04:31]OFD Sender: No OFD packet to send [20:04:36]OFD Sender: No OFD packet to send [20:04:41]OFD Sender: No OFD packet to send [20:04:46]OFD Sender: No OFD packet to send [20:04:51]OFD Sender: No OFD packet to send [20:04:56]OFD Sender: No OFD packet to send [20:05:01]OFD Sender: No OFD packet to send [20:05:05]accept exits with 7 [20:05:05]New connection [20:05:05]New thread 3066465636 created [20:05:05]Thread 3066608996 joined [20:05:05]Waiting for new connection... [20:05:05] Sock 7.Parse request [20:05:05]Sock 7.Check first char [20:05:05]Sock 7.First char is OK [20:05:05]request: POST /json_proto HTTP/1.0 [20:05:05]Method: POST [20:05:05]URL: /json_proto [20:05:05]Method is POST - this is cgi request [20:05:05]url: /json_proto [20:05:05]query_string will be loaded in cgi processing [20:05:05]execute_cgi json_proto POST (null) [20:05:05]execute_cgi path=json_proto method=POST [20:05:05]POST find Content-Length [20:05:05]Host: 172.17.63.195:8080 [20:05:05]Content-Length: 682 [20:05:05]Content-Type: application/json [20:05:05] [20:05:05]POST finish read [20:05:05]Found Content-Length = 682 [20:05:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [20:05:05]execute_script... [20:05: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)449429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [20:05:05]POST & json_proto [20:05:05]process_json_proto [20:05:05]json parsed OK: [20:05:05]protocol is kg_v1.0 [20:05:05]action value=close_receipt [20:05:05]process_action close_receipt [20:05:05]cmd_close_receipt [20:05:05]MH_GetDate [20:05:05]Write to MH i2c: F0 00 00 DF 0A D8 [20:05:05]Write i2c OK [20:05:05]MH_I2C_Read... [20:05:05]Read from MH i2c: F0 [20:05:05]MH_I2C_Read... [20:05:05]Read from MH i2c: F0 09 00 [20:05:05]MH_I2C_Read... [20:05:05]Read from MH i2c: F0 09 00 DF 0A 00 72 4B 1D 67 68 46 19 67 50 [20:05:05]GetLastDocTimeStamp 1729972803 [20:05:05]current date 1729973106 [20:05:05]FM_GetShiftState [20:05:05]SAM_PROTO_GetShiftState [20:05:05]wFMCommunicate request_size=4 [20:05:05]MH_SAM_APDU [20:05:05]CAPDU: 80 13 01 00 [20:05:05]Write to MH i2c: E2 08 00 E0 0A 80 13 01 00 00 00 00 00 67 [20:05:05]Write i2c OK [20:05:05]MH_I2C_Read... [20:05:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:05]Read from MH i2c: E2 [20:05:05]MH_I2C_Read... [20:05:05]Read from MH i2c: E2 0E 00 [20:05:05]MH_I2C_Read... [20:05:05]Read from MH i2c: E2 0E 00 E0 0A 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 76 [20:05:05]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [20:05:05]wFMCommunicate OK [20:05:05]SAM_PROTO_GetShiftState done [20:05:05]FM_GetShiftState done [20:05:05]opened in 1729900879 [20:05:05]opened+sec_in_day 1729987279 [20:05:05]quantity*price = 100015 [20:05:05]sum+1 = 100017 [20:05:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 433 26.10.2024 20:05 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201671 ФПД: 117535855346103 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T200506&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201671&fm=117535855346103&tin=02508201610067®Number=0000000000091777&sum=100000 [20:05:06]StoreToDocumentArchive [20:05:06]shift 543 fd 201671 [20:05:06]save to /storage/0543/doc_00201671 [20:05:06]save last doc name /storage/0543/doc_00201671 to /storage/kkm_last_doc_name [20:05:06]save OK [20:05:06]Clear old archive folders... [20:05:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:05:06]tlvbuf is 0109EE10 [20:05:06]SAM_PROTO_ClearQueue [20:05:06]wFMCommunicate request_size=4 [20:05:06]MH_SAM_APDU [20:05:06]CAPDU: 80 09 00 00 [20:05:06]Write to MH i2c: E2 08 00 ED 0A 80 09 00 00 00 00 00 00 69 [20:05:06]Write i2c OK [20:05:06]MH_I2C_Read... [20:05:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:06]Read from MH i2c: E2 [20:05:06]MH_I2C_Read... [20:05:06]Read from MH i2c: E2 03 00 [20:05:06]MH_I2C_Read... [20:05:06]Read from MH i2c: E2 03 00 ED 0A 00 90 00 6B [20:05:06]RAPDU: 90 00 [20:05:06]wFMCommunicate OK [20:05:06]SAM_PROTO_ClearQueue done [20:05:06]KKMCreateOFDPacket [20:05:06]OFDProtocolAddRootSTLVToBuf [20:05:06]FM_MakeSignedData [20:05:06]FM_MakeSignedData [20:05:06]SAM_PROTO_SignData [20:05:06]wFMCommunicate request_size=4 [20:05:06]MH_SAM_APDU [20:05:06]CAPDU: 80 0D 01 02 [20:05:06]Write to MH i2c: E2 08 00 EE 0A 80 0D 01 02 00 00 00 00 71 [20:05:06]Write i2c OK [20:05:06]MH_I2C_Read... [20:05:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:06]Read from MH i2c: E2 [20:05:06]MH_I2C_Read... [20:05:06]Read from MH i2c: E2 03 00 [20:05:06]MH_I2C_Read... [20:05:06]Read from MH i2c: E2 03 00 EE 0A 00 90 00 6C [20:05:06]RAPDU: 90 00 [20:05:06]wFMCommunicate OK [20:05:06]wFMCommunicate request_size=255 [20:05:06]MH_SAM_APDU [20:05: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 32 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 B1 01 00 00 F4 03 04 00 72 4B 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C7 13 03 00 35 04 06 00 6A [20:05:06]Write to MH i2c: E2 02 01 EF 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B1 01 00 00 F4 03 04 00 72 4B 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C7 13 03 00 35 04 06 00 6A 00 00 5A [20:05:06]Write i2c OK [20:05:06]MH_I2C_Read... [20:05:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:07]Read from MH i2c: E2 [20:05:07]MH_I2C_Read... [20:05:07]Read from MH i2c: E2 03 00 [20:05:07]MH_I2C_Read... [20:05:07]Read from MH i2c: E2 03 00 EF 0A 00 90 00 6D [20:05:07]RAPDU: 90 00 [20:05:07]wFMCommunicate OK [20:05:07]wFMCommunicate request_size=10 [20:05:07]MH_SAM_APDU [20:05:07]CAPDU: 80 0D 02 02 05 E5 F2 E8 01 B7 [20:05:07]Write to MH i2c: E2 0D 00 F0 0A 80 0D 02 02 05 00 E5 F2 E8 01 B7 00 00 F5 [20:05:07]Write i2c OK [20:05:07]MH_I2C_Read... [20:05:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:07]Read from MH i2c: E2 [20:05:07]MH_I2C_Read... [20:05:07]Read from MH i2c: E2 03 00 [20:05:07]MH_I2C_Read... [20:05:07]Read from MH i2c: E2 03 00 F0 0A 00 90 00 6E [20:05:07]RAPDU: 90 00 [20:05:07]wFMCommunicate OK [20:05:07]wFMCommunicate request_size=4 [20:05:07]MH_SAM_APDU [20:05:07]CAPDU: 80 0D 03 02 [20:05:07]Write to MH i2c: E2 08 00 F1 0A 80 0D 03 02 00 00 00 00 76 [20:05:07]Write i2c OK [20:05:07]MH_I2C_Read... [20:05:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:07]Read from MH i2c: E2 [20:05:07]MH_I2C_Read... [20:05:07]Read from MH i2c: E2 0B 00 [20:05:07]MH_I2C_Read... [20:05:07]Read from MH i2c: E2 0B 00 F1 0A 00 7A EA B7 32 8D 22 67 79 90 00 53 [20:05:07]RAPDU: 7A EA B7 32 8D 22 67 79 90 00 [20:05:07]wFMCommunicate OK [20:05:07]SAM_PROTO_SignData done [20:05:07]FM_MakeSignedData done [20:05:07]CreateOFDProtocolMessage [20:05:07]wFMCommunicate request_size=4 [20:05:07]MH_SAM_APDU [20:05:07]CAPDU: 80 11 00 00 [20:05:07]Write to MH i2c: E2 08 00 F2 0A 80 11 00 00 00 00 00 00 76 [20:05:07]Write i2c OK [20:05:07]MH_I2C_Read... [20:05:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:07]Read from MH i2c: E2 [20:05:07]MH_I2C_Read... [20:05:07]Read from MH i2c: E2 17 00 [20:05:07]MH_I2C_Read... [20:05:07]Read from MH i2c: E2 17 00 F2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CB [20:05:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:05:07]wFMCommunicate OK [20:05:07]CreateOFDProtocolMessage done [20:05:07]OFDSenderStorePacket 201671 [20:05:07]StoreOFDPacket docnum=201671 [20:05:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 24 11 07 01 67 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 32 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 B1 01 00 00 F4 03 04 00 72 4B 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C7 13 03 00 35 04 06 00 6A E5 F2 E8 01 B7 7A EA B7 32 8D 22 67 79 [20:05:07]CheckFolder [20:05:07]dirname=/storage/ofd_packets [20:05:07]CheckFolder done [20:05:07]ProducePacketName [20:05:07]name=ofd_packets/00201671 [20:05:07]NVStorageSaveData ofd_packets/00201671 [20:05:07]File name is /storage/ofd_packets/00201671 [20:05:07]Write 301 bytes [20:05:07]NVStorageSaveData done [20:05:07]OFDSenderStorePacket done [20:05:07]KKMCreateOFDPacket done [20:05:07]NVStorageSaveData kkm_last_timestamp [20:05:07]File name is /storage/kkm_last_timestamp [20:05:07]Write 4 bytes [20:05:07]NVStorageSaveData done [20:05:07]ExternCall_PrintAddStr [20:05:07]wPrintStart [20:05:07]Write to MH i2c: 01 00 00 F3 0A FD [20:05:07]Write i2c OK [20:05:07]MH_I2C_Read... [20:05:07]Read from MH i2c: 01 [20:05:07]MH_I2C_Read... [20:05:07]Read from MH i2c: 01 07 00 [20:05:07]MH_I2C_Read... [20:05:07]Read from MH i2c: 01 07 00 F3 0A 00 00 00 00 00 FF 0F 12 [20:05:07]RasterBufferAndPrint [20:05:07]line Счет N : (1)449429 [20:05:07]line ИНН: 02508201610067 [20:05:07]line Контрольно-Кассовый Чек [20:05:07]line ПРОДАЖА [20:05:07]line ТРК (МРК, ГНК) : 41 [20:05:07]line Товар: 2710124130 [20:05:07]line Аи-92-К-2 [20:05:07]line 14.950 * 66.90 [20:05:07]line = 1000.16 [20:05:07]line НДС 12% НСП 1% [20:05:07]line > о реализуемом товаре [20:05:07]line ОКРУГЛЕНИЕ: -0.16 [20:05:07]line ИТОГО: 1000.00 [20:05:07]line Внесено: 1000.00 [20:05:07]line СДАЧА: 0.00 [20:05:07]line НСП 1% : 8.85 [20:05:07]line НДС 12% : 106.21 [20:05:07]line Наличными: 1000.00 [20:05:07]line Безнал.: 0.00 [20:05:07]line Место: АЗС № 171 "Партнер Нефть" [20:05:07]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [20:05:07]line СНО: Общий режим [20:05:07]line Чек 433 26.10.2024 20:05 [20:05:07]line Смена: 543 ФФД: 1.0 [20:05:07]line ЗНМ: 0300000109 [20:05:07]line РНМ: 0000000000091777 [20:05:07]line Версия ККМ: 001 [20:05:07]line ФМ: 0000000000871756 [20:05:07]line ФД: 201671 [20:05:07]line ФПД: 117535855346103 [20:05:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T200506&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201671&fm=117535855346103&tin=02508201610067®Number=0000000000091777&sum=100000 [20:05:07]OFD Sender: Processing packet 201671 [packets to send 112, broken 111] [20:05:07]ProducePacketName [20:05:07]name=ofd_packets/00201671 [20:05:07]OFD Sender: To server: pG, [20:05:07]CommunicateWithHost lk.salyk.kg:30040 [20:05:07]ConnectInit lk.salyk.kg [20:05:07]written 0, free lines is 4095 [20:05:07]Connected sock=10 [20:05:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 24 11 07 01 67 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 32 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 B1 01 00 00 F4 03 04 00 72 4B 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C7 13 03 00 35 04 06 00 6A E5 F2 E8 01 B7 7A EA B7 32 8D 22 67 79 [20:05:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 45 E6 47 00 5F 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C7 13 03 00 F4 03 04 00 1A F7 1C 67 B6 04 01 00 00 2D BB C0 D4 AA 1B 31 04 [20:05:08]CommunicateWithHost err = 0 [20:05:08]CheckOFDResponse [20:05:08]1017 (14) - 77093643461234 [20:05:08]1041 (16) - 0000000000871756 [20:05:08]1040 (4) - 201671 [20:05:08]1012 (4) - 26.10.2024 14:05 [20:05:08]1206 (1) - 0 [20:05:08]OFD Sender: Remove packet 201671 [20:05:08]ProducePacketName [20:05:08]name=ofd_packets/00201671 [20:05:08]NVStorageDeleteData [20:05:08]Write to MH i2c: 01 00 00 1E 0B 29 [20:05:08]Write i2c OK [20:05:08]MH_I2C_Read... [20:05:08]Read from MH i2c: 01 [20:05:08]MH_I2C_Read... [20:05:08]Read from MH i2c: 01 07 00 [20:05:08]MH_I2C_Read... [20:05:08]Read from MH i2c: 01 07 00 1E 0B 00 00 00 00 00 99 0C D5 [20:05:08]RasterBufferAndPrint [20:05:08]line [20:05:08]line [20:05:08]line [20:05:08]line [20:05:08]line [20:05:08]written 0, free lines is 3229 [20:05:08]MH_Cut [20:05:08]Write to MH i2c: D1 01 00 25 0B 01 02 [20:05:08]Write i2c OK [20:05:08]MH_I2C_Read... [20:05:08]Read from MH i2c: D1 [20:05:08]MH_I2C_Read... [20:05:08]Read from MH i2c: D1 01 00 [20:05:08]MH_I2C_Read... [20:05:08]Read from MH i2c: D1 01 00 25 0B 00 01 [20:05:08]Write to MH i2c: 01 00 00 26 0B 31 [20:05:08]Write i2c OK [20:05:08]MH_I2C_Read... [20:05:08]OFD Sender: No OFD packet to send [20:05:09]*** Cut start [20:05:09]*** Purtial cut [20:05:09]*** CUTSNS_PIN = 0 [20:05:09]*** Stage 1: CUTSNS_PIN = 1 [20:05:11]Read from MH i2c: 01 [20:05:11]MH_I2C_Read... [20:05:11]*** Stop cut motor [20:05:11]*** Cut end [20:05:11]Read from MH i2c: 01 07 00 [20:05:11]MH_I2C_Read... [20:05:11]Read from MH i2c: 01 07 00 26 0B 00 00 00 00 00 FF 0F 46 [20:05:11]process_action close_receipt done [20:05:11]requested_data is exist [20:05:11]produce_requested_data [20:05:11]requested_item fm.sn is exist - process it [20:05:11]wFMCommunicate request_size=4 [20:05:11]MH_SAM_APDU [20:05:11]CAPDU: 80 11 00 00 [20:05:11]Write to MH i2c: E2 08 00 27 0B 80 11 00 00 00 00 00 00 AC [20:05:11]Write i2c OK [20:05:11]MH_I2C_Read... [20:05:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:11]Read from MH i2c: E2 [20:05:11]MH_I2C_Read... [20:05:11]Read from MH i2c: E2 17 00 [20:05:11]MH_I2C_Read... [20:05:11]Read from MH i2c: E2 17 00 27 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 01 [20:05:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:05:11]wFMCommunicate OK [20:05:11]requested_item fd.num is exist - process it [20:05:11]SAM_PROTO_GetFieldsCounters [20:05:11]wFMCommunicate request_size=4 [20:05:11]MH_SAM_APDU [20:05:11]CAPDU: 80 13 00 00 [20:05:11]Write to MH i2c: E2 08 00 28 0B 80 13 00 00 00 00 00 00 AF [20:05:11]Write i2c OK [20:05:11]MH_I2C_Read... [20:05:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:11]Read from MH i2c: E2 [20:05:11]MH_I2C_Read... [20:05:11]Read from MH i2c: E2 62 00 [20:05:11]MH_I2C_Read... [20:05:11]Read from MH i2c: E2 62 00 28 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C7 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B1 01 00 00 5E 04 04 00 B1 01 00 00 57 04 04 00 B2 01 00 00 19 04 04 00 00 00 00 00 90 00 EC [20:05:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C7 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B1 01 00 00 5E 04 04 00 B1 01 00 00 57 04 04 00 B2 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:05:11]wFMCommunicate OK [20:05:11]SAM_PROTO_GetFieldsCounters done [20:05:11]requested_item shift.num is exist - process it [20:05:11]requested_item shift.opened is exist - process it [20:05:11]req_shift_opened [20:05:11]FM_GetShiftState [20:05:11]SAM_PROTO_GetShiftState [20:05:11]wFMCommunicate request_size=4 [20:05:11]MH_SAM_APDU [20:05:11]CAPDU: 80 13 01 00 [20:05:11]Write to MH i2c: E2 08 00 29 0B 80 13 01 00 00 00 00 00 B1 [20:05:11]Write i2c OK [20:05:11]MH_I2C_Read... [20:05:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:11]Read from MH i2c: E2 [20:05:11]MH_I2C_Read... [20:05:11]Read from MH i2c: E2 0E 00 [20:05:11]MH_I2C_Read... [20:05:11]Read from MH i2c: E2 0E 00 29 0B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C0 [20:05:11]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [20:05:11]wFMCommunicate OK [20:05:11]SAM_PROTO_GetShiftState done [20:05:11]FM_GetShiftState done [20:05:11]req_shift_opened done [20:05:11]requested_item shift.open_date is exist - process it [20:05:11]req_shift_open_date [20:05:11]req_shift_open_date done [20:05:11]produce_requested_data done [20:05:11]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201671,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [20:05:11]process_action_free close_receipt [20:05:11]json_value_free [20:05:11]json_value_free done [20:05:11]process_json_proto returns [20:05:11]Send response to host [20:05:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201671,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [20:05:11]free response buf [20:05:11]execute_script done [20:05:11]execute_script returns [20:05:11]free content buf [20:05:11]Sock 7.Close socket [20:05:11]Sock 7.Thread stoped [20:05:13]OFD Sender: No OFD packet to send [20:05:18]OFD Sender: No OFD packet to send [20:05:23]OFD Sender: No OFD packet to send [20:05:28]OFD Sender: No OFD packet to send [20:05:33]OFD Sender: No OFD packet to send [20:05:38]OFD Sender: No OFD packet to send [20:05:43]OFD Sender: No OFD packet to send [20:05:48]OFD Sender: No OFD packet to send [20:05:53]OFD Sender: No OFD packet to send [20:05:58]OFD Sender: No OFD packet to send [20:06:03]OFD Sender: No OFD packet to send [20:06:08]OFD Sender: No OFD packet to send [20:06:13]OFD Sender: No OFD packet to send [20:06:18]OFD Sender: No OFD packet to send [20:06:23]OFD Sender: No OFD packet to send [20:06:28]OFD Sender: No OFD packet to send [20:06:33]OFD Sender: No OFD packet to send [20:06:38]OFD Sender: No OFD packet to send [20:06:43]OFD Sender: No OFD packet to send [20:06:48]OFD Sender: No OFD packet to send [20:06:53]OFD Sender: No OFD packet to send [20:06:58]OFD Sender: No OFD packet to send [20:07:03]OFD Sender: No OFD packet to send [20:07:08]OFD Sender: No OFD packet to send [20:07:13]OFD Sender: No OFD packet to send [20:07:18]OFD Sender: No OFD packet to send [20:07:23]OFD Sender: No OFD packet to send [20:07:28]OFD Sender: No OFD packet to send [20:07:33]OFD Sender: No OFD packet to send [20:07:38]OFD Sender: No OFD packet to send [20:07:43]OFD Sender: No OFD packet to send [20:07:48]OFD Sender: No OFD packet to send [20:07:53]OFD Sender: No OFD packet to send [20:07:58]OFD Sender: No OFD packet to send [20:08:03]OFD Sender: No OFD packet to send [20:08:08]OFD Sender: No OFD packet to send [20:08:13]OFD Sender: No OFD packet to send [20:08:18]OFD Sender: No OFD packet to send [20:08:23]OFD Sender: No OFD packet to send [20:08:28]OFD Sender: No OFD packet to send [20:08:33]OFD Sender: No OFD packet to send [20:08:38]OFD Sender: No OFD packet to send [20:08:43]OFD Sender: No OFD packet to send [20:08:48]OFD Sender: No OFD packet to send [20:08:53]OFD Sender: No OFD packet to send [20:08:58]OFD Sender: No OFD packet to send [20:09:03]OFD Sender: No OFD packet to send [20:09:08]OFD Sender: No OFD packet to send [20:09:13]OFD Sender: No OFD packet to send [20:09:18]OFD Sender: No OFD packet to send [20:09:23]OFD Sender: No OFD packet to send [20:09:28]OFD Sender: No OFD packet to send [20:09:33]OFD Sender: No OFD packet to send [20:09:38]OFD Sender: No OFD packet to send [20:09:43]OFD Sender: No OFD packet to send [20:09:48]OFD Sender: No OFD packet to send [20:09:53]OFD Sender: No OFD packet to send [20:09:58]OFD Sender: No OFD packet to send [20:10:03]OFD Sender: No OFD packet to send [20:10:08]OFD Sender: No OFD packet to send [20:10:13]OFD Sender: No OFD packet to send [20:10:18]OFD Sender: No OFD packet to send [20:10:23]OFD Sender: No OFD packet to send [20:10:28]OFD Sender: No OFD packet to send [20:10:33]OFD Sender: No OFD packet to send [20:10:38]OFD Sender: No OFD packet to send [20:10:43]OFD Sender: No OFD packet to send [20:10:48]OFD Sender: No OFD packet to send [20:10:53]OFD Sender: No OFD packet to send [20:10:58]OFD Sender: No OFD packet to send [20:11:03]OFD Sender: No OFD packet to send [20:11:08]OFD Sender: No OFD packet to send [20:11:13]OFD Sender: No OFD packet to send [20:11:19]OFD Sender: No OFD packet to send [20:11:24]OFD Sender: No OFD packet to send [20:11:29]OFD Sender: No OFD packet to send [20:11:34]OFD Sender: No OFD packet to send [20:11:39]OFD Sender: No OFD packet to send [20:11:44]OFD Sender: No OFD packet to send [20:11:49]OFD Sender: No OFD packet to send [20:11:54]OFD Sender: No OFD packet to send [20:11:59]OFD Sender: No OFD packet to send [20:12:04]OFD Sender: No OFD packet to send [20:12:09]OFD Sender: No OFD packet to send [20:12:14]OFD Sender: No OFD packet to send [20:12:19]OFD Sender: No OFD packet to send [20:12:24]OFD Sender: No OFD packet to send [20:12:29]OFD Sender: No OFD packet to send [20:12:34]OFD Sender: No OFD packet to send [20:12:39]OFD Sender: No OFD packet to send [20:12:44]OFD Sender: No OFD packet to send [20:12:49]OFD Sender: No OFD packet to send [20:12:54]OFD Sender: No OFD packet to send [20:12:59]OFD Sender: No OFD packet to send [20:13:04]OFD Sender: No OFD packet to send [20:13:09]OFD Sender: No OFD packet to send [20:13:14]OFD Sender: No OFD packet to send [20:13:19]OFD Sender: No OFD packet to send [20:13:24]OFD Sender: No OFD packet to send [20:13:29]OFD Sender: No OFD packet to send [20:13:34]OFD Sender: No OFD packet to send [20:13:39]OFD Sender: No OFD packet to send [20:13:44]OFD Sender: No OFD packet to send [20:13:49]OFD Sender: No OFD packet to send [20:13:54]OFD Sender: No OFD packet to send [20:13:59]OFD Sender: No OFD packet to send [20:14:04]OFD Sender: No OFD packet to send [20:14:09]OFD Sender: No OFD packet to send [20:14:14]OFD Sender: No OFD packet to send [20:14:19]OFD Sender: No OFD packet to send [20:14:24]OFD Sender: No OFD packet to send [20:14:29]OFD Sender: No OFD packet to send [20:14:34]OFD Sender: No OFD packet to send [20:14:39]OFD Sender: No OFD packet to send [20:14:44]OFD Sender: No OFD packet to send [20:14:49]OFD Sender: No OFD packet to send [20:14:51]accept exits with 9 [20:14:51]New connection [20:14:51]New thread 3066608996 created [20:14:51]Thread 3066465636 joined [20:14:51]Waiting for new connection... [20:14:51] Sock 9.Parse request [20:14:51]Sock 9.Check first char [20:14:51]Sock 9.First char is OK [20:14:51]request: POST /json_proto HTTP/1.0 [20:14:51]Method: POST [20:14:51]URL: /json_proto [20:14:51]Method is POST - this is cgi request [20:14:51]url: /json_proto [20:14:51]query_string will be loaded in cgi processing [20:14:51]execute_cgi json_proto POST (null) [20:14:51]execute_cgi path=json_proto method=POST [20:14:51]POST find Content-Length [20:14:51]Host: 172.17.63.195:8080 [20:14:51]Content-Length: 675 [20:14:51]Content-Type: application/json [20:14:51] [20:14:51]POST finish read [20:14:51]Found Content-Length = 675 [20:14:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:51]execute_script... [20:14: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)449430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:51]POST & json_proto [20:14:51]process_json_proto [20:14:51]json parsed OK: [20:14:51]protocol is kg_v1.0 [20:14:51]action value=close_receipt [20:14:51]process_action close_receipt [20:14:51]cmd_close_receipt [20:14:51]MH_GetDate [20:14:51]Write to MH i2c: F0 00 00 2A 0B 24 [20:14:51]Write i2c OK [20:14:51]MH_I2C_Read... [20:14:51]Read from MH i2c: F0 [20:14:51]MH_I2C_Read... [20:14:51]Read from MH i2c: F0 09 00 [20:14:51]MH_I2C_Read... [20:14:51]Read from MH i2c: F0 09 00 2A 0B 00 BB 4D 1D 67 68 46 19 67 E7 [20:14:51]GetLastDocTimeStamp 1729973106 [20:14:51]current date 1729973691 [20:14:51]FM_GetShiftState [20:14:51]SAM_PROTO_GetShiftState [20:14:51]wFMCommunicate request_size=4 [20:14:51]MH_SAM_APDU [20:14:51]CAPDU: 80 13 01 00 [20:14:51]Write to MH i2c: E2 08 00 2B 0B 80 13 01 00 00 00 00 00 B3 [20:14:51]Write i2c OK [20:14:51]MH_I2C_Read... [20:14:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:51]Read from MH i2c: E2 [20:14:51]MH_I2C_Read... [20:14:51]Read from MH i2c: E2 0E 00 [20:14:51]MH_I2C_Read... [20:14:51]Read from MH i2c: E2 0E 00 2B 0B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C2 [20:14:51]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [20:14:51]wFMCommunicate OK [20:14:51]SAM_PROTO_GetShiftState done [20:14:51]FM_GetShiftState done [20:14:51]opened in 1729900879 [20:14:51]opened+sec_in_day 1729987279 [20:14:51]quantity*price = 100000 [20:14:51]sum+1 = 100002 [20:14:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 434 26.10.2024 20:14 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201672 ФПД: 197542418975131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T201451&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201672&fm=197542418975131&tin=02508201610067®Number=0000000000091777&sum=100000 [20:14:52]StoreToDocumentArchive [20:14:52]shift 543 fd 201672 [20:14:52]save to /storage/0543/doc_00201672 [20:14:52]save last doc name /storage/0543/doc_00201672 to /storage/kkm_last_doc_name [20:14:52]save OK [20:14:52]Clear old archive folders... [20:14:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:14:52]tlvbuf is 01060B60 [20:14:52]SAM_PROTO_ClearQueue [20:14:52]wFMCommunicate request_size=4 [20:14:52]MH_SAM_APDU [20:14:52]CAPDU: 80 09 00 00 [20:14:52]Write to MH i2c: E2 08 00 38 0B 80 09 00 00 00 00 00 00 B5 [20:14:52]Write i2c OK [20:14:52]MH_I2C_Read... [20:14:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:14:52]Read from MH i2c: E2 [20:14:52]MH_I2C_Read... [20:14:52]Read from MH i2c: E2 03 00 [20:14:52]MH_I2C_Read... [20:14:52]Read from MH i2c: E2 03 00 38 0B 00 90 00 B7 [20:14:52]RAPDU: 90 00 [20:14:52]wFMCommunicate OK [20:14:52]SAM_PROTO_ClearQueue done [20:14:52]KKMCreateOFDPacket [20:14:52]OFDProtocolAddRootSTLVToBuf [20:14:52]FM_MakeSignedData [20:14:52]FM_MakeSignedData [20:14:52]SAM_PROTO_SignData [20:14:52]wFMCommunicate request_size=4 [20:14:52]MH_SAM_APDU [20:14:52]CAPDU: 80 0D 01 02 [20:14:52]Write to MH i2c: E2 08 00 39 0B 80 0D 01 02 00 00 00 00 BD [20:14:52]Write i2c OK [20:14:52]MH_I2C_Read... [20:14:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:14:52]Read from MH i2c: E2 [20:14:52]MH_I2C_Read... [20:14:52]Read from MH i2c: E2 03 00 [20:14:52]MH_I2C_Read... [20:14:52]Read from MH i2c: E2 03 00 39 0B 00 90 00 B8 [20:14:52]RAPDU: 90 00 [20:14:52]wFMCommunicate OK [20:14:52]wFMCommunicate request_size=255 [20:14:52]MH_SAM_APDU [20:14: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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 B2 01 00 00 F4 03 04 00 BB 4D 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C8 13 03 00 35 04 06 00 [20:14:52]Write to MH i2c: E2 02 01 3A 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 B2 01 00 00 F4 03 04 00 BB 4D 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C8 13 03 00 35 04 06 00 00 00 64 [20:14:52]Write i2c OK [20:14:52]MH_I2C_Read... [20:14:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:52]Read from MH i2c: E2 [20:14:52]MH_I2C_Read... [20:14:52]Read from MH i2c: E2 03 00 [20:14:52]MH_I2C_Read... [20:14:52]Read from MH i2c: E2 03 00 3A 0B 00 90 00 B9 [20:14:52]RAPDU: 90 00 [20:14:52]wFMCommunicate OK [20:14:52]wFMCommunicate request_size=11 [20:14:52]MH_SAM_APDU [20:14:52]CAPDU: 80 0D 02 02 06 B3 A9 ED B6 09 9B [20:14:52]Write to MH i2c: E2 0E 00 3B 0B 80 0D 02 02 06 00 B3 A9 ED B6 09 9B 00 00 6F [20:14:52]Write i2c OK [20:14:52]MH_I2C_Read... [20:14:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:52]Read from MH i2c: E2 [20:14:52]MH_I2C_Read... [20:14:52]Read from MH i2c: E2 03 00 [20:14:52]MH_I2C_Read... [20:14:52]Read from MH i2c: E2 03 00 3B 0B 00 90 00 BA [20:14:52]RAPDU: 90 00 [20:14:52]wFMCommunicate OK [20:14:52]wFMCommunicate request_size=4 [20:14:52]MH_SAM_APDU [20:14:52]CAPDU: 80 0D 03 02 [20:14:52]Write to MH i2c: E2 08 00 3C 0B 80 0D 03 02 00 00 00 00 C2 [20:14:52]Write i2c OK [20:14:52]MH_I2C_Read... [20:14:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:14:52]Read from MH i2c: E2 [20:14:52]MH_I2C_Read... [20:14:52]Read from MH i2c: E2 0B 00 [20:14:52]MH_I2C_Read... [20:14:52]Read from MH i2c: E2 0B 00 3C 0B 00 CE E9 45 E4 03 6E 8C 54 90 00 F4 [20:14:52]RAPDU: CE E9 45 E4 03 6E 8C 54 90 00 [20:14:52]wFMCommunicate OK [20:14:52]SAM_PROTO_SignData done [20:14:52]FM_MakeSignedData done [20:14:52]CreateOFDProtocolMessage [20:14:52]wFMCommunicate request_size=4 [20:14:52]MH_SAM_APDU [20:14:52]CAPDU: 80 11 00 00 [20:14:52]Write to MH i2c: E2 08 00 3D 0B 80 11 00 00 00 00 00 00 C2 [20:14:52]Write i2c OK [20:14:52]MH_I2C_Read... [20:14:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:52]Read from MH i2c: E2 [20:14:52]MH_I2C_Read... [20:14:52]Read from MH i2c: E2 17 00 [20:14:52]MH_I2C_Read... [20:14:52]Read from MH i2c: E2 17 00 3D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 17 [20:14:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:14:52]wFMCommunicate OK [20:14:52]CreateOFDProtocolMessage done [20:14:52]OFDSenderStorePacket 201672 [20:14:52]StoreOFDPacket docnum=201672 [20:14:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 50 AD 08 01 DE 18 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 B2 01 00 00 F4 03 04 00 BB 4D 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C8 13 03 00 35 04 06 00 B3 A9 ED B6 09 9B CE E9 45 E4 03 6E 8C 54 [20:14:52]CheckFolder [20:14:52]dirname=/storage/ofd_packets [20:14:52]CheckFolder done [20:14:52]ProducePacketName [20:14:52]name=ofd_packets/00201672 [20:14:52]NVStorageSaveData ofd_packets/00201672 [20:14:52]File name is /storage/ofd_packets/00201672 [20:14:52]Write 302 bytes [20:14:52]NVStorageSaveData done [20:14:52]OFDSenderStorePacket done [20:14:52]KKMCreateOFDPacket done [20:14:52]NVStorageSaveData kkm_last_timestamp [20:14:52]File name is /storage/kkm_last_timestamp [20:14:52]Write 4 bytes [20:14:52]NVStorageSaveData done [20:14:52]ExternCall_PrintAddStr [20:14:52]wPrintStart [20:14:52]Write to MH i2c: 01 00 00 3E 0B 49 [20:14:52]Write i2c OK [20:14:52]MH_I2C_Read... [20:14:52]Read from MH i2c: 01 [20:14:52]MH_I2C_Read... [20:14:52]Read from MH i2c: 01 07 00 [20:14:52]MH_I2C_Read... [20:14:52]Read from MH i2c: 01 07 00 3E 0B 00 00 00 00 00 FF 0F 5E [20:14:52]RasterBufferAndPrint [20:14:52]line Счет N : (1)449430 [20:14:52]line ИНН: 02508201610067 [20:14:52]line Контрольно-Кассовый Чек [20:14:52]line ПРОДАЖА [20:14:52]line ТРК (МРК, ГНК) : 42 [20:14:52]line Товар: 2710124130 [20:14:52]line SUPER 92-К-5 [20:14:52]line 14.620 * 68.40 [20:14:52]line = 1000.01 [20:14:52]line НДС 12% НСП 1% [20:14:52]line > о реализуемом товаре [20:14:52]line ОКРУГЛЕНИЕ: -0.01 [20:14:52]line ИТОГО: 1000.00 [20:14:52]line Внесено: 1000.00 [20:14:52]line СДАЧА: 0.00 [20:14:52]line НСП 1% : 8.85 [20:14:52]line НДС 12% : 106.20 [20:14:52]line Наличными: 1000.00 [20:14:52]line Безнал.: 0.00 [20:14:52]line Место: АЗС № 171 "Партнер Нефть" [20:14:52]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [20:14:52]line СНО: Общий режим [20:14:52]line Чек 434 26.10.2024 20:14 [20:14:52]line Смена: 543 ФФД: 1.0 [20:14:52]line ЗНМ: 0300000109 [20:14:52]line РНМ: 0000000000091777 [20:14:52]line Версия ККМ: 001 [20:14:52]line ФМ: 0000000000871756 [20:14:52]line ФД: 201672 [20:14:52]line ФПД: 197542418975131 [20:14:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T201451&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201672&fm=197542418975131&tin=02508201610067®Number=0000000000091777&sum=100000 [20:14:53]OFD Sender: Processing packet 201672 [packets to send 112, broken 111] [20:14:53]ProducePacketName [20:14:53]name=ofd_packets/00201672 [20:14:53]OFD Sender: To server: pG, [20:14:53]CommunicateWithHost lk.salyk.kg:30040 [20:14:53]ConnectInit lk.salyk.kg [20:14:53]written 0, free lines is 4095 [20:14:53]Connected sock=10 [20:14:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 50 AD 08 01 DE 18 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 B2 01 00 00 F4 03 04 00 BB 4D 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C8 13 03 00 35 04 06 00 B3 A9 ED B6 09 9B CE E9 45 E4 03 6E 8C 54 [20:14:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 DF 9D 47 00 04 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C8 13 03 00 F4 03 04 00 63 F9 1C 67 B6 04 01 00 00 59 9B 9C DB C1 7D A4 93 [20:14:53]CommunicateWithHost err = 0 [20:14:53]CheckOFDResponse [20:14:53]1017 (14) - 77093643461234 [20:14:53]1041 (16) - 0000000000871756 [20:14:53]1040 (4) - 201672 [20:14:53]1012 (4) - 26.10.2024 14:14 [20:14:53]1206 (1) - 0 [20:14:53]OFD Sender: Remove packet 201672 [20:14:53]ProducePacketName [20:14:53]name=ofd_packets/00201672 [20:14:53]NVStorageDeleteData [20:14:53]Write to MH i2c: 01 00 00 69 0B 74 [20:14:53]Write i2c OK [20:14:53]MH_I2C_Read... [20:14:53]Read from MH i2c: 01 [20:14:53]MH_I2C_Read... [20:14:53]Read from MH i2c: 01 07 00 [20:14:53]MH_I2C_Read... [20:14:53]Read from MH i2c: 01 07 00 69 0B 00 00 00 00 00 96 0C 1D [20:14:53]RasterBufferAndPrint [20:14:53]line [20:14:53]line [20:14:53]line [20:14:53]line [20:14:53]line [20:14:53]written 0, free lines is 3226 [20:14:53]MH_Cut [20:14:53]Write to MH i2c: D1 01 00 70 0B 01 4D [20:14:53]Write i2c OK [20:14:53]MH_I2C_Read... [20:14:53]Read from MH i2c: D1 [20:14:53]MH_I2C_Read... [20:14:53]Read from MH i2c: D1 01 00 [20:14:53]MH_I2C_Read... [20:14:53]Read from MH i2c: D1 01 00 70 0B 00 4C [20:14:53]Write to MH i2c: 01 00 00 71 0B 7C [20:14:53]Write i2c OK [20:14:53]MH_I2C_Read... [20:14:53]OFD Sender: No OFD packet to send [20:14:54]*** Cut start [20:14:54]*** Purtial cut [20:14:54]*** Stage 1: CUTSNS_PIN = 1 [20:14:54]Read from MH i2c: 01 [20:14:54]MH_I2C_Read... [20:14:54]*** Stop cut motor [20:14:54]*** Cut end [20:14:54]Read from MH i2c: 01 07 00 [20:14:54]MH_I2C_Read... [20:14:54]Read from MH i2c: 01 07 00 71 0B 00 00 00 00 00 FF 0F 91 [20:14:54]process_action close_receipt done [20:14:54]requested_data is exist [20:14:54]produce_requested_data [20:14:54]requested_item fm.sn is exist - process it [20:14:54]wFMCommunicate request_size=4 [20:14:54]MH_SAM_APDU [20:14:54]CAPDU: 80 11 00 00 [20:14:54]Write to MH i2c: E2 08 00 72 0B 80 11 00 00 00 00 00 00 F7 [20:14:54]Write i2c OK [20:14:54]MH_I2C_Read... [20:14:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:54]Read from MH i2c: E2 [20:14:54]MH_I2C_Read... [20:14:54]Read from MH i2c: E2 17 00 [20:14:54]MH_I2C_Read... [20:14:54]Read from MH i2c: E2 17 00 72 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4C [20:14:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:14:54]wFMCommunicate OK [20:14:54]requested_item fd.num is exist - process it [20:14:54]SAM_PROTO_GetFieldsCounters [20:14:54]wFMCommunicate request_size=4 [20:14:54]MH_SAM_APDU [20:14:54]CAPDU: 80 13 00 00 [20:14:54]Write to MH i2c: E2 08 00 73 0B 80 13 00 00 00 00 00 00 FA [20:14:54]Write i2c OK [20:14:54]MH_I2C_Read... [20:14:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:14:54]Read from MH i2c: E2 [20:14:54]MH_I2C_Read... [20:14:54]Read from MH i2c: E2 62 00 [20:14:54]MH_I2C_Read... [20:14:54]Read from MH i2c: E2 62 00 73 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C8 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B2 01 00 00 5E 04 04 00 B2 01 00 00 57 04 04 00 B3 01 00 00 19 04 04 00 00 00 00 00 90 00 3B [20:14:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C8 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B2 01 00 00 5E 04 04 00 B2 01 00 00 57 04 04 00 B3 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:14:54]wFMCommunicate OK [20:14:54]SAM_PROTO_GetFieldsCounters done [20:14:54]requested_item shift.num is exist - process it [20:14:54]requested_item shift.opened is exist - process it [20:14:54]req_shift_opened [20:14:54]FM_GetShiftState [20:14:54]SAM_PROTO_GetShiftState [20:14:54]wFMCommunicate request_size=4 [20:14:54]MH_SAM_APDU [20:14:54]CAPDU: 80 13 01 00 [20:14:54]Write to MH i2c: E2 08 00 74 0B 80 13 01 00 00 00 00 00 FC [20:14:54]Write i2c OK [20:14:54]MH_I2C_Read... [20:14:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:54]Read from MH i2c: E2 [20:14:54]MH_I2C_Read... [20:14:54]Read from MH i2c: E2 0E 00 [20:14:54]MH_I2C_Read... [20:14:54]Read from MH i2c: E2 0E 00 74 0B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 0B [20:14:54]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [20:14:54]wFMCommunicate OK [20:14:54]SAM_PROTO_GetShiftState done [20:14:54]FM_GetShiftState done [20:14:54]req_shift_opened done [20:14:54]requested_item shift.open_date is exist - process it [20:14:54]req_shift_open_date [20:14:54]req_shift_open_date done [20:14:54]produce_requested_data done [20:14:54]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201672,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [20:14:54]process_action_free close_receipt [20:14:54]json_value_free [20:14:54]json_value_free done [20:14:54]process_json_proto returns [20:14:54]Send response to host [20:14:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201672,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [20:14:54]free response buf [20:14:54]execute_script done [20:14:54]execute_script returns [20:14:54]free content buf [20:14:54]Sock 9.Close socket [20:14:54]Sock 9.Thread stoped [20:14:58]OFD Sender: No OFD packet to send [20:15:03]OFD Sender: No OFD packet to send [20:15:08]OFD Sender: No OFD packet to send [20:15:13]OFD Sender: No OFD packet to send [20:15:18]OFD Sender: No OFD packet to send [20:15:23]OFD Sender: No OFD packet to send [20:15:28]OFD Sender: No OFD packet to send [20:15:33]OFD Sender: No OFD packet to send [20:15:38]OFD Sender: No OFD packet to send [20:15:43]OFD Sender: No OFD packet to send [20:15:48]OFD Sender: No OFD packet to send [20:15:54]OFD Sender: No OFD packet to send [20:15:59]OFD Sender: No OFD packet to send [20:16:04]OFD Sender: No OFD packet to send [20:16:09]OFD Sender: No OFD packet to send [20:16:14]OFD Sender: No OFD packet to send [20:16:19]OFD Sender: No OFD packet to send [20:16:24]OFD Sender: No OFD packet to send [20:16:29]OFD Sender: No OFD packet to send [20:16:34]OFD Sender: No OFD packet to send [20:16:39]OFD Sender: No OFD packet to send [20:16:44]OFD Sender: No OFD packet to send [20:16:49]OFD Sender: No OFD packet to send [20:16:54]OFD Sender: No OFD packet to send [20:16:59]OFD Sender: No OFD packet to send [20:17:04]OFD Sender: No OFD packet to send [20:17:09]OFD Sender: No OFD packet to send [20:17:14]OFD Sender: No OFD packet to send [20:17:19]OFD Sender: No OFD packet to send [20:17:24]OFD Sender: No OFD packet to send [20:17:29]OFD Sender: No OFD packet to send [20:17:34]OFD Sender: No OFD packet to send [20:17:39]OFD Sender: No OFD packet to send [20:17:44]OFD Sender: No OFD packet to send [20:17:49]OFD Sender: No OFD packet to send [20:17:54]OFD Sender: No OFD packet to send [20:17:59]OFD Sender: No OFD packet to send [20:18:04]OFD Sender: No OFD packet to send [20:18:09]OFD Sender: No OFD packet to send [20:18:14]OFD Sender: No OFD packet to send [20:18:19]OFD Sender: No OFD packet to send [20:18:24]OFD Sender: No OFD packet to send [20:18:29]OFD Sender: No OFD packet to send [20:18:34]OFD Sender: No OFD packet to send [20:18:39]OFD Sender: No OFD packet to send [20:18:44]OFD Sender: No OFD packet to send [20:18:49]OFD Sender: No OFD packet to send [20:18:54]OFD Sender: No OFD packet to send [20:18:59]OFD Sender: No OFD packet to send [20:19:04]OFD Sender: No OFD packet to send [20:19:09]OFD Sender: No OFD packet to send [20:19:14]OFD Sender: No OFD packet to send [20:19:19]OFD Sender: No OFD packet to send [20:19:24]OFD Sender: No OFD packet to send [20:19:29]OFD Sender: No OFD packet to send [20:19:34]OFD Sender: No OFD packet to send [20:19:39]OFD Sender: No OFD packet to send [20:19:44]OFD Sender: No OFD packet to send [20:19:49]OFD Sender: No OFD packet to send [20:19:54]OFD Sender: No OFD packet to send [20:19:59]OFD Sender: No OFD packet to send [20:20:04]OFD Sender: No OFD packet to send [20:20:09]OFD Sender: No OFD packet to send [20:20:14]OFD Sender: No OFD packet to send [20:20:19]OFD Sender: No OFD packet to send [20:20:24]OFD Sender: No OFD packet to send [20:20:29]OFD Sender: No OFD packet to send [20:20:34]OFD Sender: No OFD packet to send [20:20:39]OFD Sender: No OFD packet to send [20:20:44]OFD Sender: No OFD packet to send [20:20:49]OFD Sender: No OFD packet to send [20:20:54]OFD Sender: No OFD packet to send [20:20:59]OFD Sender: No OFD packet to send [20:21:04]OFD Sender: No OFD packet to send [20:21:09]OFD Sender: No OFD packet to send [20:21:14]OFD Sender: No OFD packet to send [20:21:19]OFD Sender: No OFD packet to send [20:21:24]OFD Sender: No OFD packet to send [20:21:29]OFD Sender: No OFD packet to send [20:21:34]OFD Sender: No OFD packet to send [20:21:39]OFD Sender: No OFD packet to send [20:21:44]OFD Sender: No OFD packet to send [20:21:49]OFD Sender: No OFD packet to send [20:21:54]OFD Sender: No OFD packet to send [20:21:59]OFD Sender: No OFD packet to send [20:22:04]OFD Sender: No OFD packet to send [20:22:09]OFD Sender: No OFD packet to send [20:22:14]OFD Sender: No OFD packet to send [20:22:19]OFD Sender: No OFD packet to send [20:22:24]OFD Sender: No OFD packet to send [20:22:29]OFD Sender: No OFD packet to send [20:22:34]OFD Sender: No OFD packet to send [20:22:39]OFD Sender: No OFD packet to send [20:22:44]OFD Sender: No OFD packet to send [20:22:49]OFD Sender: No OFD packet to send [20:22:54]OFD Sender: No OFD packet to send [20:22:59]OFD Sender: No OFD packet to send [20:23:04]OFD Sender: No OFD packet to send [20:23:09]OFD Sender: No OFD packet to send [20:23:14]OFD Sender: No OFD packet to send [20:23:19]OFD Sender: No OFD packet to send [20:23:24]OFD Sender: No OFD packet to send [20:23:29]OFD Sender: No OFD packet to send [20:23:34]OFD Sender: No OFD packet to send [20:23:39]OFD Sender: No OFD packet to send [20:23:44]OFD Sender: No OFD packet to send [20:23:49]OFD Sender: No OFD packet to send [20:23:54]OFD Sender: No OFD packet to send [20:23:59]OFD Sender: No OFD packet to send [20:24:04]OFD Sender: No OFD packet to send [20:24:09]OFD Sender: No OFD packet to send [20:24:14]OFD Sender: No OFD packet to send [20:24:19]OFD Sender: No OFD packet to send [20:24:24]OFD Sender: No OFD packet to send [20:24:29]OFD Sender: No OFD packet to send [20:24:34]OFD Sender: No OFD packet to send [20:24:39]OFD Sender: No OFD packet to send [20:24:44]OFD Sender: No OFD packet to send [20:24:49]OFD Sender: No OFD packet to send [20:24:54]OFD Sender: No OFD packet to send [20:24:59]OFD Sender: No OFD packet to send [20:25:04]OFD Sender: No OFD packet to send [20:25:09]OFD Sender: No OFD packet to send [20:25:14]OFD Sender: No OFD packet to send [20:25:19]OFD Sender: No OFD packet to send [20:25:24]OFD Sender: No OFD packet to send [20:25:29]OFD Sender: No OFD packet to send [20:25:34]OFD Sender: No OFD packet to send [20:25:39]OFD Sender: No OFD packet to send [20:25:44]OFD Sender: No OFD packet to send [20:25:49]OFD Sender: No OFD packet to send [20:25:54]OFD Sender: No OFD packet to send [20:25:59]OFD Sender: No OFD packet to send [20:26:04]OFD Sender: No OFD packet to send [20:26:09]OFD Sender: No OFD packet to send [20:26:14]OFD Sender: No OFD packet to send [20:26:19]OFD Sender: No OFD packet to send [20:26:24]OFD Sender: No OFD packet to send [20:26:29]OFD Sender: No OFD packet to send [20:26:34]OFD Sender: No OFD packet to send [20:26:37]accept exits with 7 [20:26:37]New connection [20:26:37]New thread 3066465636 created [20:26:37]Thread 3066608996 joined [20:26:37]Waiting for new connection... [20:26:37] Sock 7.Parse request [20:26:37]Sock 7.Check first char [20:26:37]Sock 7.First char is OK [20:26:37]request: POST /json_proto HTTP/1.0 [20:26:37]Method: POST [20:26:37]URL: /json_proto [20:26:37]Method is POST - this is cgi request [20:26:37]url: /json_proto [20:26:37]query_string will be loaded in cgi processing [20:26:37]execute_cgi json_proto POST (null) [20:26:37]execute_cgi path=json_proto method=POST [20:26:37]POST find Content-Length [20:26:37]Host: 172.17.63.195:8080 [20:26:37]Content-Length: 679 [20:26:37]Content-Type: application/json [20:26:37] [20:26:37]POST finish read [20:26:37]Found Content-Length = 679 [20:26:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:37]execute_script... [20:26:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:37]POST & json_proto [20:26:37]process_json_proto [20:26:37]json parsed OK: [20:26:37]protocol is kg_v1.0 [20:26:37]action value=close_receipt [20:26:37]process_action close_receipt [20:26:37]cmd_close_receipt [20:26:37]MH_GetDate [20:26:37]Write to MH i2c: F0 00 00 75 0B 6F [20:26:37]Write i2c OK [20:26:37]MH_I2C_Read... [20:26:37]Read from MH i2c: F0 [20:26:37]MH_I2C_Read... [20:26:37]Read from MH i2c: F0 09 00 [20:26:37]MH_I2C_Read... [20:26:37]Read from MH i2c: F0 09 00 75 0B 00 7E 50 1D 67 68 46 19 67 F8 [20:26:37]GetLastDocTimeStamp 1729973691 [20:26:37]current date 1729974398 [20:26:37]FM_GetShiftState [20:26:37]SAM_PROTO_GetShiftState [20:26:37]wFMCommunicate request_size=4 [20:26:37]MH_SAM_APDU [20:26:37]CAPDU: 80 13 01 00 [20:26:37]Write to MH i2c: E2 08 00 76 0B 80 13 01 00 00 00 00 00 FE [20:26:37]Write i2c OK [20:26:37]MH_I2C_Read... [20:26:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:37]Read from MH i2c: E2 [20:26:37]MH_I2C_Read... [20:26:37]Read from MH i2c: E2 0E 00 [20:26:37]MH_I2C_Read... [20:26:37]Read from MH i2c: E2 0E 00 76 0B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 0D [20:26:37]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [20:26:37]wFMCommunicate OK [20:26:37]SAM_PROTO_GetShiftState done [20:26:37]FM_GetShiftState done [20:26:37]opened in 1729900879 [20:26:37]opened+sec_in_day 1729987279 [20:26:37]quantity*price = 100050 [20:26:37]sum+1 = 100052 [20:26:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 435 26.10.2024 20:26 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201673 ФПД: 171105104152619 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T202638&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201673&fm=171105104152619&tin=02508201610067®Number=0000000000091777&sum=100000 [20:26:38]StoreToDocumentArchive [20:26:38]shift 543 fd 201673 [20:26:38]save to /storage/0543/doc_00201673 [20:26:38]save last doc name /storage/0543/doc_00201673 to /storage/kkm_last_doc_name [20:26:38]save OK [20:26:38]Clear old archive folders... [20:26:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:26:38]tlvbuf is 01098AC0 [20:26:38]SAM_PROTO_ClearQueue [20:26:38]wFMCommunicate request_size=4 [20:26:38]MH_SAM_APDU [20:26:38]CAPDU: 80 09 00 00 [20:26:38]Write to MH i2c: E2 08 00 83 0B 80 09 00 00 00 00 00 00 00 [20:26:38]Write i2c OK [20:26:38]MH_I2C_Read... [20:26:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:26:38]Read from MH i2c: E2 [20:26:38]MH_I2C_Read... [20:26:38]Read from MH i2c: E2 03 00 [20:26:38]MH_I2C_Read... [20:26:38]Read from MH i2c: E2 03 00 83 0B 00 90 00 02 [20:26:38]RAPDU: 90 00 [20:26:38]wFMCommunicate OK [20:26:38]SAM_PROTO_ClearQueue done [20:26:38]KKMCreateOFDPacket [20:26:38]OFDProtocolAddRootSTLVToBuf [20:26:38]FM_MakeSignedData [20:26:38]FM_MakeSignedData [20:26:38]SAM_PROTO_SignData [20:26:38]wFMCommunicate request_size=4 [20:26:38]MH_SAM_APDU [20:26:38]CAPDU: 80 0D 01 02 [20:26:38]Write to MH i2c: E2 08 00 84 0B 80 0D 01 02 00 00 00 00 08 [20:26:38]Write i2c OK [20:26:38]MH_I2C_Read... [20:26:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:26:38]Read from MH i2c: E2 [20:26:38]MH_I2C_Read... [20:26:38]Read from MH i2c: E2 03 00 [20:26:38]MH_I2C_Read... [20:26:38]Read from MH i2c: E2 03 00 84 0B 00 90 00 03 [20:26:38]RAPDU: 90 00 [20:26:38]wFMCommunicate OK [20:26:38]wFMCommunicate request_size=255 [20:26:38]MH_SAM_APDU [20:26:38]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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 B3 01 00 00 F4 03 04 00 7E 50 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C9 13 03 00 35 04 06 00 9B 9E 82 F3 [20:26:38]Write to MH i2c: E2 02 01 85 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 B3 01 00 00 F4 03 04 00 7E 50 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C9 13 03 00 35 04 06 00 9B 9E 82 F3 00 00 46 [20:26:38]Write i2c OK [20:26:38]MH_I2C_Read... [20:26:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:39]Read from MH i2c: E2 [20:26:39]MH_I2C_Read... [20:26:39]Read from MH i2c: E2 03 00 [20:26:39]MH_I2C_Read... [20:26:39]Read from MH i2c: E2 03 00 85 0B 00 90 00 04 [20:26:39]RAPDU: 90 00 [20:26:39]wFMCommunicate OK [20:26:39]wFMCommunicate request_size=7 [20:26:39]MH_SAM_APDU [20:26:39]CAPDU: 80 0D 02 02 02 C8 2B [20:26:39]Write to MH i2c: E2 0A 00 86 0B 80 0D 02 02 02 00 C8 2B 00 00 02 [20:26:39]Write i2c OK [20:26:39]MH_I2C_Read... [20:26:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:39]Read from MH i2c: E2 [20:26:39]MH_I2C_Read... [20:26:39]Read from MH i2c: E2 03 00 [20:26:39]MH_I2C_Read... [20:26:39]Read from MH i2c: E2 03 00 86 0B 00 90 00 05 [20:26:39]RAPDU: 90 00 [20:26:39]wFMCommunicate OK [20:26:39]wFMCommunicate request_size=4 [20:26:39]MH_SAM_APDU [20:26:39]CAPDU: 80 0D 03 02 [20:26:39]Write to MH i2c: E2 08 00 87 0B 80 0D 03 02 00 00 00 00 0D [20:26:39]Write i2c OK [20:26:39]MH_I2C_Read... [20:26:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:26:39]Read from MH i2c: E2 [20:26:39]MH_I2C_Read... [20:26:39]Read from MH i2c: E2 0B 00 [20:26:39]MH_I2C_Read... [20:26:39]Read from MH i2c: E2 0B 00 87 0B 00 CC 22 6B 45 51 E8 12 7D 90 00 74 [20:26:39]RAPDU: CC 22 6B 45 51 E8 12 7D 90 00 [20:26:39]wFMCommunicate OK [20:26:39]SAM_PROTO_SignData done [20:26:39]FM_MakeSignedData done [20:26:39]CreateOFDProtocolMessage [20:26:39]wFMCommunicate request_size=4 [20:26:39]MH_SAM_APDU [20:26:39]CAPDU: 80 11 00 00 [20:26:39]Write to MH i2c: E2 08 00 88 0B 80 11 00 00 00 00 00 00 0D [20:26:39]Write i2c OK [20:26:39]MH_I2C_Read... [20:26:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:39]Read from MH i2c: E2 [20:26:39]MH_I2C_Read... [20:26:39]Read from MH i2c: E2 17 00 [20:26:39]MH_I2C_Read... [20:26:39]Read from MH i2c: E2 17 00 88 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 62 [20:26:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:26:39]wFMCommunicate OK [20:26:39]CreateOFDProtocolMessage done [20:26:39]OFDSenderStorePacket 201673 [20:26:39]StoreOFDPacket docnum=201673 [20:26:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 95 81 04 01 E2 7D 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 B3 01 00 00 F4 03 04 00 7E 50 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C9 13 03 00 35 04 06 00 9B 9E 82 F3 C8 2B CC 22 6B 45 51 E8 12 7D [20:26:39]CheckFolder [20:26:39]dirname=/storage/ofd_packets [20:26:39]CheckFolder done [20:26:39]ProducePacketName [20:26:39]name=ofd_packets/00201673 [20:26:39]NVStorageSaveData ofd_packets/00201673 [20:26:39]File name is /storage/ofd_packets/00201673 [20:26:39]Write 298 bytes [20:26:39]NVStorageSaveData done [20:26:39]OFDSenderStorePacket done [20:26:39]KKMCreateOFDPacket done [20:26:39]NVStorageSaveData kkm_last_timestamp [20:26:39]File name is /storage/kkm_last_timestamp [20:26:39]Write 4 bytes [20:26:39]NVStorageSaveData done [20:26:39]ExternCall_PrintAddStr [20:26:39]wPrintStart [20:26:39]Write to MH i2c: 01 00 00 89 0B 94 [20:26:39]Write i2c OK [20:26:39]MH_I2C_Read... [20:26:39]Read from MH i2c: 01 [20:26:39]MH_I2C_Read... [20:26:39]Read from MH i2c: 01 07 00 [20:26:39]MH_I2C_Read... [20:26:39]Read from MH i2c: 01 07 00 89 0B 00 00 00 00 00 FF 0F A9 [20:26:39]RasterBufferAndPrint [20:26:39]line Счет N : (1)449431 [20:26:39]line ИНН: 02508201610067 [20:26:39]line Контрольно-Кассовый Чек [20:26:39]line ПРОДАЖА [20:26:39]line ТРК (МРК, ГНК) : 21 [20:26:39]line Товар: 2710194210 [20:26:39]line ДТ-К-2 [20:26:39]line 13.130 * 76.20 [20:26:39]line = 1000.51 [20:26:39]line НДС 12% НСП 1% [20:26:39]line > о реализуемом товаре [20:26:39]line ОКРУГЛЕНИЕ: -0.51 [20:26:39]line ИТОГО: 1000.00 [20:26:39]line Внесено: 1000.00 [20:26:39]line СДАЧА: 0.00 [20:26:39]line НСП 1% : 8.85 [20:26:39]line НДС 12% : 106.25 [20:26:39]line Наличными: 1000.00 [20:26:39]line Безнал.: 0.00 [20:26:39]line Место: АЗС № 171 "Партнер Нефть" [20:26:39]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [20:26:39]line СНО: Общий режим [20:26:39]line Чек 435 26.10.2024 20:26 [20:26:39]line Смена: 543 ФФД: 1.0 [20:26:39]line ЗНМ: 0300000109 [20:26:39]line РНМ: 0000000000091777 [20:26:39]line Версия ККМ: 001 [20:26:39]line ФМ: 0000000000871756 [20:26:39]line ФД: 201673 [20:26:39]line ФПД: 171105104152619 [20:26:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T202638&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201673&fm=171105104152619&tin=02508201610067®Number=0000000000091777&sum=100000 [20:26:39]OFD Sender: Processing packet 201673 [packets to send 112, broken 111] [20:26:39]ProducePacketName [20:26:39]name=ofd_packets/00201673 [20:26:39]OFD Sender: To server: pG, [20:26:39]CommunicateWithHost lk.salyk.kg:30040 [20:26:39]ConnectInit lk.salyk.kg [20:26:39]written 0, free lines is 4095 [20:26:39]Connected sock=10 [20:26:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 95 81 04 01 E2 7D 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 B3 01 00 00 F4 03 04 00 7E 50 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C9 13 03 00 35 04 06 00 9B 9E 82 F3 C8 2B CC 22 6B 45 51 E8 12 7D [20:26:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 98 B0 47 00 3B 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 C9 13 03 00 F4 03 04 00 26 FC 1C 67 B6 04 01 00 00 6A 71 CD 65 68 CB 11 E7 [20:26:40]CommunicateWithHost err = 0 [20:26:40]CheckOFDResponse [20:26:40]1017 (14) - 77093643461234 [20:26:40]1041 (16) - 0000000000871756 [20:26:40]1040 (4) - 201673 [20:26:40]1012 (4) - 26.10.2024 14:26 [20:26:40]1206 (1) - 0 [20:26:40]OFD Sender: Remove packet 201673 [20:26:40]ProducePacketName [20:26:40]name=ofd_packets/00201673 [20:26:40]NVStorageDeleteData [20:26:40]Write to MH i2c: 01 00 00 B4 0B BF [20:26:40]Write i2c OK [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: 01 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: 01 07 00 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: 01 07 00 B4 0B 00 00 00 00 00 95 0C 67 [20:26:40]RasterBufferAndPrint [20:26:40]line [20:26:40]line [20:26:40]line [20:26:40]line [20:26:40]line [20:26:40]written 0, free lines is 3226 [20:26:40]MH_Cut [20:26:40]Write to MH i2c: D1 01 00 BB 0B 01 98 [20:26:40]Write i2c OK [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: D1 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: D1 01 00 [20:26:40]MH_I2C_Read... [20:26:40]Read from MH i2c: D1 01 00 BB 0B 00 97 [20:26:40]Write to MH i2c: 01 00 00 BC 0B C7 [20:26:40]Write i2c OK [20:26:40]MH_I2C_Read... [20:26:40]OFD Sender: No OFD packet to send [20:26:41]*** Cut start [20:26:41]*** Purtial cut [20:26:41]*** CUTSNS_PIN = 0 [20:26:41]*** Stage 1: CUTSNS_PIN = 1 [20:26:43]Read from MH i2c: 01 [20:26:43]MH_I2C_Read... [20:26:43]*** Stop cut motor [20:26:43]*** Cut end [20:26:43]Read from MH i2c: 01 07 00 [20:26:43]MH_I2C_Read... [20:26:43]Read from MH i2c: 01 07 00 BC 0B 00 00 00 00 00 FF 0F DC [20:26:43]process_action close_receipt done [20:26:43]requested_data is exist [20:26:43]produce_requested_data [20:26:43]requested_item fm.sn is exist - process it [20:26:43]wFMCommunicate request_size=4 [20:26:43]MH_SAM_APDU [20:26:43]CAPDU: 80 11 00 00 [20:26:43]Write to MH i2c: E2 08 00 BD 0B 80 11 00 00 00 00 00 00 42 [20:26:43]Write i2c OK [20:26:43]MH_I2C_Read... [20:26:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:43]Read from MH i2c: E2 [20:26:43]MH_I2C_Read... [20:26:43]Read from MH i2c: E2 17 00 [20:26:43]MH_I2C_Read... [20:26:43]Read from MH i2c: E2 17 00 BD 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 97 [20:26:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:26:43]wFMCommunicate OK [20:26:43]requested_item fd.num is exist - process it [20:26:43]SAM_PROTO_GetFieldsCounters [20:26:43]wFMCommunicate request_size=4 [20:26:43]MH_SAM_APDU [20:26:43]CAPDU: 80 13 00 00 [20:26:43]Write to MH i2c: E2 08 00 BE 0B 80 13 00 00 00 00 00 00 45 [20:26:43]Write i2c OK [20:26:43]MH_I2C_Read... [20:26:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:26:43]Read from MH i2c: E2 [20:26:43]MH_I2C_Read... [20:26:43]Read from MH i2c: E2 62 00 [20:26:43]MH_I2C_Read... [20:26:43]Read from MH i2c: E2 62 00 BE 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C9 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B3 01 00 00 5E 04 04 00 B3 01 00 00 57 04 04 00 B4 01 00 00 19 04 04 00 00 00 00 00 90 00 8A [20:26:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 C9 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B3 01 00 00 5E 04 04 00 B3 01 00 00 57 04 04 00 B4 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:26:43]wFMCommunicate OK [20:26:43]SAM_PROTO_GetFieldsCounters done [20:26:43]requested_item shift.num is exist - process it [20:26:43]requested_item shift.opened is exist - process it [20:26:43]req_shift_opened [20:26:43]FM_GetShiftState [20:26:43]SAM_PROTO_GetShiftState [20:26:43]wFMCommunicate request_size=4 [20:26:43]MH_SAM_APDU [20:26:43]CAPDU: 80 13 01 00 [20:26:43]Write to MH i2c: E2 08 00 BF 0B 80 13 01 00 00 00 00 00 47 [20:26:43]Write i2c OK [20:26:43]MH_I2C_Read... [20:26:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:43]Read from MH i2c: E2 [20:26:43]MH_I2C_Read... [20:26:43]Read from MH i2c: E2 0E 00 [20:26:43]MH_I2C_Read... [20:26:43]Read from MH i2c: E2 0E 00 BF 0B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 56 [20:26:43]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [20:26:43]wFMCommunicate OK [20:26:43]SAM_PROTO_GetShiftState done [20:26:43]FM_GetShiftState done [20:26:43]req_shift_opened done [20:26:43]requested_item shift.open_date is exist - process it [20:26:43]req_shift_open_date [20:26:43]req_shift_open_date done [20:26:43]produce_requested_data done [20:26:43]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201673,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [20:26:43]process_action_free close_receipt [20:26:43]json_value_free [20:26:43]json_value_free done [20:26:43]process_json_proto returns [20:26:43]Send response to host [20:26:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201673,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [20:26:43]free response buf [20:26:43]execute_script done [20:26:43]execute_script returns [20:26:43]free content buf [20:26:43]Sock 7.Close socket [20:26:43]Sock 7.Thread stoped [20:26:45]OFD Sender: No OFD packet to send [20:26:50]OFD Sender: No OFD packet to send [20:26:55]OFD Sender: No OFD packet to send [20:27:00]OFD Sender: No OFD packet to send [20:27:05]OFD Sender: No OFD packet to send [20:27:10]OFD Sender: No OFD packet to send [20:27:15]OFD Sender: No OFD packet to send [20:27:20]OFD Sender: No OFD packet to send [20:27:25]OFD Sender: No OFD packet to send [20:27:30]OFD Sender: No OFD packet to send [20:27:35]OFD Sender: No OFD packet to send [20:27:40]OFD Sender: No OFD packet to send [20:27:45]OFD Sender: No OFD packet to send [20:27:50]OFD Sender: No OFD packet to send [20:27:55]OFD Sender: No OFD packet to send [20:28:00]OFD Sender: No OFD packet to send [20:28:05]OFD Sender: No OFD packet to send [20:28:10]OFD Sender: No OFD packet to send [20:28:15]OFD Sender: No OFD packet to send [20:28:20]OFD Sender: No OFD packet to send [20:28:25]OFD Sender: No OFD packet to send [20:28:30]OFD Sender: No OFD packet to send [20:28:35]OFD Sender: No OFD packet to send [20:28:40]OFD Sender: No OFD packet to send [20:28:45]OFD Sender: No OFD packet to send [20:28:50]OFD Sender: No OFD packet to send [20:28:55]OFD Sender: No OFD packet to send [20:29:00]OFD Sender: No OFD packet to send [20:29:05]OFD Sender: No OFD packet to send [20:29:10]OFD Sender: No OFD packet to send [20:29:15]OFD Sender: No OFD packet to send [20:29:20]OFD Sender: No OFD packet to send [20:29:25]OFD Sender: No OFD packet to send [20:29:30]OFD Sender: No OFD packet to send [20:29:35]OFD Sender: No OFD packet to send [20:29:40]OFD Sender: No OFD packet to send [20:29:45]OFD Sender: No OFD packet to send [20:29:50]OFD Sender: No OFD packet to send [20:29:55]OFD Sender: No OFD packet to send [20:30:00]OFD Sender: No OFD packet to send [20:30:05]OFD Sender: No OFD packet to send [20:30:10]OFD Sender: No OFD packet to send [20:30:15]OFD Sender: No OFD packet to send [20:30:20]OFD Sender: No OFD packet to send [20:30:25]OFD Sender: No OFD packet to send [20:30:30]OFD Sender: No OFD packet to send [20:30:35]OFD Sender: No OFD packet to send [20:30:40]OFD Sender: No OFD packet to send [20:30:45]OFD Sender: No OFD packet to send [20:30:50]OFD Sender: No OFD packet to send [20:30:55]OFD Sender: No OFD packet to send [20:31:00]OFD Sender: No OFD packet to send [20:31:05]OFD Sender: No OFD packet to send [20:31:10]OFD Sender: No OFD packet to send [20:31:15]OFD Sender: No OFD packet to send [20:31:20]OFD Sender: No OFD packet to send [20:31:25]OFD Sender: No OFD packet to send [20:31:27]accept exits with 9 [20:31:27]New connection [20:31:27]New thread 3066608996 created [20:31:27]Thread 3066465636 joined [20:31:27]Waiting for new connection... [20:31:27] Sock 9.Parse request [20:31:27]Sock 9.Check first char [20:31:27]Sock 9.First char is OK [20:31:27]request: POST /json_proto HTTP/1.0 [20:31:27]Method: POST [20:31:27]URL: /json_proto [20:31:27]Method is POST - this is cgi request [20:31:27]url: /json_proto [20:31:27]query_string will be loaded in cgi processing [20:31:27]execute_cgi json_proto POST (null) [20:31:27]execute_cgi path=json_proto method=POST [20:31:27]POST find Content-Length [20:31:27]Host: 172.17.63.195:8080 [20:31:27]Content-Length: 682 [20:31:27]Content-Type: application/json [20:31:27] [20:31:27]POST finish read [20:31:27]Found Content-Length = 682 [20:31:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [20:31:27]execute_script... [20:31:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [20:31:27]POST & json_proto [20:31:27]process_json_proto [20:31:27]json parsed OK: [20:31:27]protocol is kg_v1.0 [20:31:27]action value=close_receipt [20:31:27]process_action close_receipt [20:31:27]cmd_close_receipt [20:31:27]MH_GetDate [20:31:27]Write to MH i2c: F0 00 00 C0 0B BA [20:31:27]Write i2c OK [20:31:27]MH_I2C_Read... [20:31:27]Read from MH i2c: F0 [20:31:27]MH_I2C_Read... [20:31:27]Read from MH i2c: F0 09 00 [20:31:27]MH_I2C_Read... [20:31:27]Read from MH i2c: F0 09 00 C0 0B 00 A0 51 1D 67 68 46 19 67 66 [20:31:27]GetLastDocTimeStamp 1729974398 [20:31:27]current date 1729974688 [20:31:27]FM_GetShiftState [20:31:27]SAM_PROTO_GetShiftState [20:31:27]wFMCommunicate request_size=4 [20:31:27]MH_SAM_APDU [20:31:27]CAPDU: 80 13 01 00 [20:31:27]Write to MH i2c: E2 08 00 C1 0B 80 13 01 00 00 00 00 00 49 [20:31:27]Write i2c OK [20:31:27]MH_I2C_Read... [20:31:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:27]Read from MH i2c: E2 [20:31:27]MH_I2C_Read... [20:31:27]Read from MH i2c: E2 0E 00 [20:31:27]MH_I2C_Read... [20:31:27]Read from MH i2c: E2 0E 00 C1 0B 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 58 [20:31:27]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [20:31:27]wFMCommunicate OK [20:31:27]SAM_PROTO_GetShiftState done [20:31:27]FM_GetShiftState done [20:31:27]opened in 1729900879 [20:31:27]opened+sec_in_day 1729987279 [20:31:27]quantity*price = 100015 [20:31:27]sum+1 = 100017 [20:31:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 436 26.10.2024 20:31 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201674 ФПД: 253716435957183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T203128&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201674&fm=253716435957183&tin=02508201610067®Number=0000000000091777&sum=100000 [20:31:28]StoreToDocumentArchive [20:31:28]shift 543 fd 201674 [20:31:28]save to /storage/0543/doc_00201674 [20:31:28]save last doc name /storage/0543/doc_00201674 to /storage/kkm_last_doc_name [20:31:28]save OK [20:31:28]Clear old archive folders... [20:31:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:31:28]tlvbuf is 010857F0 [20:31:28]SAM_PROTO_ClearQueue [20:31:28]wFMCommunicate request_size=4 [20:31:28]MH_SAM_APDU [20:31:28]CAPDU: 80 09 00 00 [20:31:28]Write to MH i2c: E2 08 00 CE 0B 80 09 00 00 00 00 00 00 4B [20:31:28]Write i2c OK [20:31:28]MH_I2C_Read... [20:31:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:31:28]Read from MH i2c: E2 [20:31:28]MH_I2C_Read... [20:31:28]Read from MH i2c: E2 03 00 [20:31:28]MH_I2C_Read... [20:31:28]Read from MH i2c: E2 03 00 CE 0B 00 90 00 4D [20:31:28]RAPDU: 90 00 [20:31:28]wFMCommunicate OK [20:31:28]SAM_PROTO_ClearQueue done [20:31:28]KKMCreateOFDPacket [20:31:28]OFDProtocolAddRootSTLVToBuf [20:31:28]FM_MakeSignedData [20:31:28]FM_MakeSignedData [20:31:28]SAM_PROTO_SignData [20:31:28]wFMCommunicate request_size=4 [20:31:28]MH_SAM_APDU [20:31:28]CAPDU: 80 0D 01 02 [20:31:28]Write to MH i2c: E2 08 00 CF 0B 80 0D 01 02 00 00 00 00 53 [20:31:28]Write i2c OK [20:31:28]MH_I2C_Read... [20:31:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:31:28]Read from MH i2c: E2 [20:31:28]MH_I2C_Read... [20:31:28]Read from MH i2c: E2 03 00 [20:31:28]MH_I2C_Read... [20:31:28]Read from MH i2c: E2 03 00 CF 0B 00 90 00 4E [20:31:28]RAPDU: 90 00 [20:31:28]wFMCommunicate OK [20:31:28]wFMCommunicate request_size=255 [20:31:28]MH_SAM_APDU [20:31:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B4 01 00 00 F4 03 04 00 A0 51 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CA 13 03 00 35 04 06 00 E6 [20:31:28]Write to MH i2c: E2 02 01 D0 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 32 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 B4 01 00 00 F4 03 04 00 A0 51 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CA 13 03 00 35 04 06 00 E6 00 00 F2 [20:31:28]Write i2c OK [20:31:28]MH_I2C_Read... [20:31:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:29]Read from MH i2c: E2 [20:31:29]MH_I2C_Read... [20:31:29]Read from MH i2c: E2 03 00 [20:31:29]MH_I2C_Read... [20:31:29]Read from MH i2c: E2 03 00 D0 0B 00 90 00 4F [20:31:29]RAPDU: 90 00 [20:31:29]wFMCommunicate OK [20:31:29]wFMCommunicate request_size=10 [20:31:29]MH_SAM_APDU [20:31:29]CAPDU: 80 0D 02 02 05 C0 F6 09 F5 BF [20:31:29]Write to MH i2c: E2 0D 00 D1 0B 80 0D 02 02 05 00 C0 F6 09 F5 BF 00 00 D3 [20:31:29]Write i2c OK [20:31:29]MH_I2C_Read... [20:31:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:29]Read from MH i2c: E2 [20:31:29]MH_I2C_Read... [20:31:29]Read from MH i2c: E2 03 00 [20:31:29]MH_I2C_Read... [20:31:29]Read from MH i2c: E2 03 00 D1 0B 00 90 00 50 [20:31:29]RAPDU: 90 00 [20:31:29]wFMCommunicate OK [20:31:29]wFMCommunicate request_size=4 [20:31:29]MH_SAM_APDU [20:31:29]CAPDU: 80 0D 03 02 [20:31:29]Write to MH i2c: E2 08 00 D2 0B 80 0D 03 02 00 00 00 00 58 [20:31:29]Write i2c OK [20:31:29]MH_I2C_Read... [20:31:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:31:29]Read from MH i2c: E2 [20:31:29]MH_I2C_Read... [20:31:29]Read from MH i2c: E2 0B 00 [20:31:29]MH_I2C_Read... [20:31:29]Read from MH i2c: E2 0B 00 D2 0B 00 8D 8E A2 A0 28 61 2A 34 90 00 9D [20:31:29]RAPDU: 8D 8E A2 A0 28 61 2A 34 90 00 [20:31:29]wFMCommunicate OK [20:31:29]SAM_PROTO_SignData done [20:31:29]FM_MakeSignedData done [20:31:29]CreateOFDProtocolMessage [20:31:29]wFMCommunicate request_size=4 [20:31:29]MH_SAM_APDU [20:31:29]CAPDU: 80 11 00 00 [20:31:29]Write to MH i2c: E2 08 00 D3 0B 80 11 00 00 00 00 00 00 58 [20:31:29]Write i2c OK [20:31:29]MH_I2C_Read... [20:31:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:29]Read from MH i2c: E2 [20:31:29]MH_I2C_Read... [20:31:29]Read from MH i2c: E2 17 00 [20:31:29]MH_I2C_Read... [20:31:29]Read from MH i2c: E2 17 00 D3 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 AD [20:31:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:31:29]wFMCommunicate OK [20:31:29]CreateOFDProtocolMessage done [20:31:29]OFDSenderStorePacket 201674 [20:31:29]StoreOFDPacket docnum=201674 [20:31:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D3 9D 07 01 34 59 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 32 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 B4 01 00 00 F4 03 04 00 A0 51 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CA 13 03 00 35 04 06 00 E6 C0 F6 09 F5 BF 8D 8E A2 A0 28 61 2A 34 [20:31:29]CheckFolder [20:31:29]dirname=/storage/ofd_packets [20:31:29]CheckFolder done [20:31:29]ProducePacketName [20:31:29]name=ofd_packets/00201674 [20:31:29]NVStorageSaveData ofd_packets/00201674 [20:31:29]File name is /storage/ofd_packets/00201674 [20:31:29]Write 301 bytes [20:31:29]NVStorageSaveData done [20:31:29]OFDSenderStorePacket done [20:31:29]KKMCreateOFDPacket done [20:31:29]NVStorageSaveData kkm_last_timestamp [20:31:29]File name is /storage/kkm_last_timestamp [20:31:29]Write 4 bytes [20:31:29]NVStorageSaveData done [20:31:29]ExternCall_PrintAddStr [20:31:29]wPrintStart [20:31:29]Write to MH i2c: 01 00 00 D4 0B DF [20:31:29]Write i2c OK [20:31:29]MH_I2C_Read... [20:31:29]Read from MH i2c: 01 [20:31:29]MH_I2C_Read... [20:31:29]Read from MH i2c: 01 07 00 [20:31:29]MH_I2C_Read... [20:31:29]Read from MH i2c: 01 07 00 D4 0B 00 00 00 00 00 FF 0F F4 [20:31:29]RasterBufferAndPrint [20:31:29]line Счет N : (1)449432 [20:31:29]line ИНН: 02508201610067 [20:31:29]line Контрольно-Кассовый Чек [20:31:29]line ПРОДАЖА [20:31:29]line ТРК (МРК, ГНК) : 41 [20:31:29]line Товар: 2710124130 [20:31:29]line Аи-92-К-2 [20:31:29]line 14.950 * 66.90 [20:31:29]line = 1000.16 [20:31:29]line НДС 12% НСП 1% [20:31:29]line > о реализуемом товаре [20:31:29]line ОКРУГЛЕНИЕ: -0.16 [20:31:29]line ИТОГО: 1000.00 [20:31:29]line Внесено: 1000.00 [20:31:29]line СДАЧА: 0.00 [20:31:29]line НСП 1% : 8.85 [20:31:29]line НДС 12% : 106.21 [20:31:29]line Наличными: 1000.00 [20:31:29]line Безнал.: 0.00 [20:31:29]line Место: АЗС № 171 "Партнер Нефть" [20:31:29]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [20:31:29]line СНО: Общий режим [20:31:29]line Чек 436 26.10.2024 20:31 [20:31:29]line Смена: 543 ФФД: 1.0 [20:31:29]line ЗНМ: 0300000109 [20:31:29]line РНМ: 0000000000091777 [20:31:29]line Версия ККМ: 001 [20:31:29]line ФМ: 0000000000871756 [20:31:29]line ФД: 201674 [20:31:29]line ФПД: 253716435957183 [20:31:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T203128&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201674&fm=253716435957183&tin=02508201610067®Number=0000000000091777&sum=100000 [20:31:29]OFD Sender: Processing packet 201674 [packets to send 112, broken 111] [20:31:29]ProducePacketName [20:31:29]name=ofd_packets/00201674 [20:31:29]OFD Sender: To server: pG, [20:31:29]CommunicateWithHost lk.salyk.kg:30040 [20:31:29]ConnectInit lk.salyk.kg [20:31:29]written 0, free lines is 4095 [20:31:29]Connected sock=10 [20:31:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D3 9D 07 01 34 59 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 32 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 B4 01 00 00 F4 03 04 00 A0 51 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CA 13 03 00 35 04 06 00 E6 C0 F6 09 F5 BF 8D 8E A2 A0 28 61 2A 34 [20:31:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 87 7E 47 00 F5 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CA 13 03 00 F4 03 04 00 48 FD 1C 67 B6 04 01 00 00 93 09 87 B0 C4 26 A2 33 [20:31:29]CommunicateWithHost err = 0 [20:31:29]CheckOFDResponse [20:31:29]1017 (14) - 77093643461234 [20:31:29]1041 (16) - 0000000000871756 [20:31:29]1040 (4) - 201674 [20:31:29]1012 (4) - 26.10.2024 14:31 [20:31:29]1206 (1) - 0 [20:31:29]OFD Sender: Remove packet 201674 [20:31:29]ProducePacketName [20:31:29]name=ofd_packets/00201674 [20:31:29]NVStorageDeleteData [20:31:30]Write to MH i2c: 01 00 00 FF 0B 0A [20:31:30]Write i2c OK [20:31:30]MH_I2C_Read... [20:31:30]Read from MH i2c: 01 [20:31:30]MH_I2C_Read... [20:31:30]Read from MH i2c: 01 07 00 [20:31:30]MH_I2C_Read... [20:31:30]Read from MH i2c: 01 07 00 FF 0B 00 00 00 00 00 A0 0C BD [20:31:30]RasterBufferAndPrint [20:31:30]line [20:31:30]line [20:31:30]line [20:31:30]line [20:31:30]line [20:31:30]written 0, free lines is 3236 [20:31:30]MH_Cut [20:31:30]Write to MH i2c: D1 01 00 06 0C 01 E4 [20:31:30]Write i2c OK [20:31:30]MH_I2C_Read... [20:31:30]Read from MH i2c: D1 [20:31:30]MH_I2C_Read... [20:31:30]Read from MH i2c: D1 01 00 [20:31:30]MH_I2C_Read... [20:31:30]Read from MH i2c: D1 01 00 06 0C 00 E3 [20:31:30]Write to MH i2c: 01 00 00 07 0C 13 [20:31:30]Write i2c OK [20:31:30]MH_I2C_Read... [20:31:30]OFD Sender: No OFD packet to send [20:31:31]*** Cut start [20:31:31]*** Purtial cut [20:31:31]*** Stage 1: CUTSNS_PIN = 1 [20:31:31]Read from MH i2c: 01 [20:31:31]MH_I2C_Read... [20:31:31]*** Stop cut motor [20:31:31]*** Cut end [20:31:31]Read from MH i2c: 01 07 00 [20:31:31]MH_I2C_Read... [20:31:31]Read from MH i2c: 01 07 00 07 0C 00 00 00 00 00 FF 0F 28 [20:31:31]process_action close_receipt done [20:31:31]requested_data is exist [20:31:31]produce_requested_data [20:31:31]requested_item fm.sn is exist - process it [20:31:31]wFMCommunicate request_size=4 [20:31:31]MH_SAM_APDU [20:31:31]CAPDU: 80 11 00 00 [20:31:31]Write to MH i2c: E2 08 00 08 0C 80 11 00 00 00 00 00 00 8E [20:31:31]Write i2c OK [20:31:31]MH_I2C_Read... [20:31:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:31]Read from MH i2c: E2 [20:31:31]MH_I2C_Read... [20:31:31]Read from MH i2c: E2 17 00 [20:31:31]MH_I2C_Read... [20:31:31]Read from MH i2c: E2 17 00 08 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E3 [20:31:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:31:31]wFMCommunicate OK [20:31:31]requested_item fd.num is exist - process it [20:31:31]SAM_PROTO_GetFieldsCounters [20:31:31]wFMCommunicate request_size=4 [20:31:31]MH_SAM_APDU [20:31:31]CAPDU: 80 13 00 00 [20:31:31]Write to MH i2c: E2 08 00 09 0C 80 13 00 00 00 00 00 00 91 [20:31:31]Write i2c OK [20:31:31]MH_I2C_Read... [20:31:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:31:31]Read from MH i2c: E2 [20:31:31]MH_I2C_Read... [20:31:31]Read from MH i2c: E2 62 00 [20:31:31]MH_I2C_Read... [20:31:31]Read from MH i2c: E2 62 00 09 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CA 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B4 01 00 00 5E 04 04 00 B4 01 00 00 57 04 04 00 B5 01 00 00 19 04 04 00 00 00 00 00 90 00 DA [20:31:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CA 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B4 01 00 00 5E 04 04 00 B4 01 00 00 57 04 04 00 B5 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:31:31]wFMCommunicate OK [20:31:31]SAM_PROTO_GetFieldsCounters done [20:31:31]requested_item shift.num is exist - process it [20:31:31]requested_item shift.opened is exist - process it [20:31:31]req_shift_opened [20:31:31]FM_GetShiftState [20:31:31]SAM_PROTO_GetShiftState [20:31:31]wFMCommunicate request_size=4 [20:31:31]MH_SAM_APDU [20:31:31]CAPDU: 80 13 01 00 [20:31:31]Write to MH i2c: E2 08 00 0A 0C 80 13 01 00 00 00 00 00 93 [20:31:31]Write i2c OK [20:31:31]MH_I2C_Read... [20:31:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:31]Read from MH i2c: E2 [20:31:31]MH_I2C_Read... [20:31:31]Read from MH i2c: E2 0E 00 [20:31:31]MH_I2C_Read... [20:31:31]Read from MH i2c: E2 0E 00 0A 0C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 A2 [20:31:31]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [20:31:31]wFMCommunicate OK [20:31:31]SAM_PROTO_GetShiftState done [20:31:31]FM_GetShiftState done [20:31:31]req_shift_opened done [20:31:31]requested_item shift.open_date is exist - process it [20:31:31]req_shift_open_date [20:31:31]req_shift_open_date done [20:31:31]produce_requested_data done [20:31:31]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201674,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [20:31:31]process_action_free close_receipt [20:31:31]json_value_free [20:31:31]json_value_free done [20:31:31]process_json_proto returns [20:31:31]Send response to host [20:31:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201674,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [20:31:31]free response buf [20:31:31]execute_script done [20:31:31]execute_script returns [20:31:31]free content buf [20:31:31]Sock 9.Close socket [20:31:31]Sock 9.Thread stoped [20:31:35]OFD Sender: No OFD packet to send [20:31:40]OFD Sender: No OFD packet to send [20:31:45]OFD Sender: No OFD packet to send [20:31:50]OFD Sender: No OFD packet to send [20:31:55]OFD Sender: No OFD packet to send [20:32:00]OFD Sender: No OFD packet to send [20:32:05]OFD Sender: No OFD packet to send [20:32:10]OFD Sender: No OFD packet to send [20:32:15]OFD Sender: No OFD packet to send [20:32:20]OFD Sender: No OFD packet to send [20:32:25]OFD Sender: No OFD packet to send [20:32:30]OFD Sender: No OFD packet to send [20:32:35]OFD Sender: No OFD packet to send [20:32:40]OFD Sender: No OFD packet to send [20:32:45]OFD Sender: No OFD packet to send [20:32:50]OFD Sender: No OFD packet to send [20:32:55]OFD Sender: No OFD packet to send [20:33:00]OFD Sender: No OFD packet to send [20:33:05]OFD Sender: No OFD packet to send [20:33:10]OFD Sender: No OFD packet to send [20:33:15]OFD Sender: No OFD packet to send [20:33:20]OFD Sender: No OFD packet to send [20:33:25]OFD Sender: No OFD packet to send [20:33:30]OFD Sender: No OFD packet to send [20:33:35]OFD Sender: No OFD packet to send [20:33:40]OFD Sender: No OFD packet to send [20:33:45]OFD Sender: No OFD packet to send [20:33:50]OFD Sender: No OFD packet to send [20:33:55]OFD Sender: No OFD packet to send [20:34:00]OFD Sender: No OFD packet to send [20:34:05]OFD Sender: No OFD packet to send [20:34:10]OFD Sender: No OFD packet to send [20:34:15]OFD Sender: No OFD packet to send [20:34:20]OFD Sender: No OFD packet to send [20:34:25]OFD Sender: No OFD packet to send [20:34:30]OFD Sender: No OFD packet to send [20:34:35]OFD Sender: No OFD packet to send [20:34:40]OFD Sender: No OFD packet to send [20:34:45]OFD Sender: No OFD packet to send [20:34:50]OFD Sender: No OFD packet to send [20:34:55]OFD Sender: No OFD packet to send [20:35:00]OFD Sender: No OFD packet to send [20:35:05]OFD Sender: No OFD packet to send [20:35:10]OFD Sender: No OFD packet to send [20:35:15]OFD Sender: No OFD packet to send [20:35:20]OFD Sender: No OFD packet to send [20:35:25]OFD Sender: No OFD packet to send [20:35:30]OFD Sender: No OFD packet to send [20:35:35]OFD Sender: No OFD packet to send [20:35:40]OFD Sender: No OFD packet to send [20:35:45]OFD Sender: No OFD packet to send [20:35:50]OFD Sender: No OFD packet to send [20:35:55]OFD Sender: No OFD packet to send [20:36:00]OFD Sender: No OFD packet to send [20:36:05]OFD Sender: No OFD packet to send [20:36:10]OFD Sender: No OFD packet to send [20:36:15]OFD Sender: No OFD packet to send [20:36:20]OFD Sender: No OFD packet to send [20:36:25]OFD Sender: No OFD packet to send [20:36:30]OFD Sender: No OFD packet to send [20:36:35]OFD Sender: No OFD packet to send [20:36:40]OFD Sender: No OFD packet to send [20:36:45]OFD Sender: No OFD packet to send [20:36:50]OFD Sender: No OFD packet to send [20:36:55]OFD Sender: No OFD packet to send [20:37:00]OFD Sender: No OFD packet to send [20:37:05]OFD Sender: No OFD packet to send [20:37:10]OFD Sender: No OFD packet to send [20:37:15]OFD Sender: No OFD packet to send [20:37:20]OFD Sender: No OFD packet to send [20:37:25]OFD Sender: No OFD packet to send [20:37:30]OFD Sender: No OFD packet to send [20:37:35]OFD Sender: No OFD packet to send [20:37:40]OFD Sender: No OFD packet to send [20:37:45]OFD Sender: No OFD packet to send [20:37:50]OFD Sender: No OFD packet to send [20:37:55]OFD Sender: No OFD packet to send [20:38:00]OFD Sender: No OFD packet to send [20:38:05]OFD Sender: No OFD packet to send [20:38:10]OFD Sender: No OFD packet to send [20:38:15]OFD Sender: No OFD packet to send [20:38:20]OFD Sender: No OFD packet to send [20:38:25]OFD Sender: No OFD packet to send [20:38:30]OFD Sender: No OFD packet to send [20:38:35]OFD Sender: No OFD packet to send [20:38:40]OFD Sender: No OFD packet to send [20:38:45]OFD Sender: No OFD packet to send [20:38:50]OFD Sender: No OFD packet to send [20:38:56]OFD Sender: No OFD packet to send [20:39:01]OFD Sender: No OFD packet to send [20:39:06]OFD Sender: No OFD packet to send [20:39:11]OFD Sender: No OFD packet to send [20:39:16]OFD Sender: No OFD packet to send [20:39:21]OFD Sender: No OFD packet to send [20:39:26]OFD Sender: No OFD packet to send [20:39:31]OFD Sender: No OFD packet to send [20:39:36]OFD Sender: No OFD packet to send [20:39:41]OFD Sender: No OFD packet to send [20:39:46]OFD Sender: No OFD packet to send [20:39:51]OFD Sender: No OFD packet to send [20:39:56]OFD Sender: No OFD packet to send [20:40:01]OFD Sender: No OFD packet to send [20:40:06]OFD Sender: No OFD packet to send [20:40:11]OFD Sender: No OFD packet to send [20:40:16]OFD Sender: No OFD packet to send [20:40:21]OFD Sender: No OFD packet to send [20:40:26]OFD Sender: No OFD packet to send [20:40:31]OFD Sender: No OFD packet to send [20:40:36]OFD Sender: No OFD packet to send [20:40:41]OFD Sender: No OFD packet to send [20:40:46]OFD Sender: No OFD packet to send [20:40:51]OFD Sender: No OFD packet to send [20:40:56]OFD Sender: No OFD packet to send [20:41:01]OFD Sender: No OFD packet to send [20:41:06]OFD Sender: No OFD packet to send [20:41:11]OFD Sender: No OFD packet to send [20:41:16]OFD Sender: No OFD packet to send [20:41:19]accept exits with 7 [20:41:19]New connection [20:41:19]New thread 3066465636 created [20:41:19]Thread 3066608996 joined [20:41:19]Waiting for new connection... [20:41:19] Sock 7.Parse request [20:41:19]Sock 7.Check first char [20:41:19]Sock 7.First char is OK [20:41:19]request: POST /json_proto HTTP/1.0 [20:41:19]Method: POST [20:41:19]URL: /json_proto [20:41:19]Method is POST - this is cgi request [20:41:19]url: /json_proto [20:41:19]query_string will be loaded in cgi processing [20:41:19]execute_cgi json_proto POST (null) [20:41:19]execute_cgi path=json_proto method=POST [20:41:19]POST find Content-Length [20:41:19]Host: 172.17.63.195:8080 [20:41:19]Content-Length: 675 [20:41:19]Content-Type: application/json [20:41:19] [20:41:19]POST finish read [20:41:19]Found Content-Length = 675 [20:41:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:19]execute_script... [20:41:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:19]POST & json_proto [20:41:19]process_json_proto [20:41:19]json parsed OK: [20:41:19]protocol is kg_v1.0 [20:41:19]action value=close_receipt [20:41:19]process_action close_receipt [20:41:19]cmd_close_receipt [20:41:19]MH_GetDate [20:41:19]Write to MH i2c: F0 00 00 0B 0C 06 [20:41:19]Write i2c OK [20:41:19]MH_I2C_Read... [20:41:19]Read from MH i2c: F0 [20:41:19]MH_I2C_Read... [20:41:19]Read from MH i2c: F0 09 00 [20:41:19]MH_I2C_Read... [20:41:19]Read from MH i2c: F0 09 00 0B 0C 00 EF 53 1D 67 68 46 19 67 03 [20:41:19]GetLastDocTimeStamp 1729974688 [20:41:19]current date 1729975279 [20:41:19]FM_GetShiftState [20:41:19]SAM_PROTO_GetShiftState [20:41:19]wFMCommunicate request_size=4 [20:41:19]MH_SAM_APDU [20:41:19]CAPDU: 80 13 01 00 [20:41:19]Write to MH i2c: E2 08 00 0C 0C 80 13 01 00 00 00 00 00 95 [20:41:19]Write i2c OK [20:41:19]MH_I2C_Read... [20:41:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:19]Read from MH i2c: E2 [20:41:19]MH_I2C_Read... [20:41:19]Read from MH i2c: E2 0E 00 [20:41:19]MH_I2C_Read... [20:41:19]Read from MH i2c: E2 0E 00 0C 0C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 A4 [20:41:19]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [20:41:19]wFMCommunicate OK [20:41:19]SAM_PROTO_GetShiftState done [20:41:19]FM_GetShiftState done [20:41:19]opened in 1729900879 [20:41:19]opened+sec_in_day 1729987279 [20:41:19]quantity*price = 80010 [20:41:19]sum+1 = 80011 [20:41:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 437 26.10.2024 20:41 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201675 ФПД: 43762348160588 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T204119&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201675&fm=43762348160588&tin=02508201610067®Number=0000000000091777&sum=80000 [20:41:20]StoreToDocumentArchive [20:41:20]shift 543 fd 201675 [20:41:20]save to /storage/0543/doc_00201675 [20:41:20]save last doc name /storage/0543/doc_00201675 to /storage/kkm_last_doc_name [20:41:20]save OK [20:41:20]Clear old archive folders... [20:41:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:41:20]tlvbuf is 0109E3A0 [20:41:20]SAM_PROTO_ClearQueue [20:41:20]wFMCommunicate request_size=4 [20:41:20]MH_SAM_APDU [20:41:20]CAPDU: 80 09 00 00 [20:41:20]Write to MH i2c: E2 08 00 19 0C 80 09 00 00 00 00 00 00 97 [20:41:20]Write i2c OK [20:41:20]MH_I2C_Read... [20:41:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:41:20]Read from MH i2c: E2 [20:41:20]MH_I2C_Read... [20:41:20]Read from MH i2c: E2 03 00 [20:41:20]MH_I2C_Read... [20:41:20]Read from MH i2c: E2 03 00 19 0C 00 90 00 99 [20:41:20]RAPDU: 90 00 [20:41:20]wFMCommunicate OK [20:41:20]SAM_PROTO_ClearQueue done [20:41:20]KKMCreateOFDPacket [20:41:20]OFDProtocolAddRootSTLVToBuf [20:41:20]FM_MakeSignedData [20:41:20]FM_MakeSignedData [20:41:20]SAM_PROTO_SignData [20:41:20]wFMCommunicate request_size=4 [20:41:20]MH_SAM_APDU [20:41:20]CAPDU: 80 0D 01 02 [20:41:20]Write to MH i2c: E2 08 00 1A 0C 80 0D 01 02 00 00 00 00 9F [20:41:20]Write i2c OK [20:41:20]MH_I2C_Read... [20:41:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:41:20]Read from MH i2c: E2 [20:41:20]MH_I2C_Read... [20:41:20]Read from MH i2c: E2 03 00 [20:41:20]MH_I2C_Read... [20:41:20]Read from MH i2c: E2 03 00 1A 0C 00 90 00 9A [20:41:20]RAPDU: 90 00 [20:41:20]wFMCommunicate OK [20:41:20]wFMCommunicate request_size=255 [20:41:20]MH_SAM_APDU [20:41:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 01 00 00 F4 03 04 00 EF 53 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CB 13 03 00 35 04 06 00 27 CD 37 37 [20:41:20]Write to MH i2c: E2 02 01 1B 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 01 00 00 F4 03 04 00 EF 53 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CB 13 03 00 35 04 06 00 27 CD 37 37 00 00 3C [20:41:20]Write i2c OK [20:41:20]MH_I2C_Read... [20:41:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:20]Read from MH i2c: E2 [20:41:20]MH_I2C_Read... [20:41:20]Read from MH i2c: E2 03 00 [20:41:20]MH_I2C_Read... [20:41:20]Read from MH i2c: E2 03 00 1B 0C 00 90 00 9B [20:41:20]RAPDU: 90 00 [20:41:20]wFMCommunicate OK [20:41:20]wFMCommunicate request_size=7 [20:41:20]MH_SAM_APDU [20:41:20]CAPDU: 80 0D 02 02 02 76 4C [20:41:20]Write to MH i2c: E2 0A 00 1C 0C 80 0D 02 02 02 00 76 4C 00 00 68 [20:41:20]Write i2c OK [20:41:20]MH_I2C_Read... [20:41:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:20]Read from MH i2c: E2 [20:41:20]MH_I2C_Read... [20:41:20]Read from MH i2c: E2 03 00 [20:41:20]MH_I2C_Read... [20:41:20]Read from MH i2c: E2 03 00 1C 0C 00 90 00 9C [20:41:20]RAPDU: 90 00 [20:41:20]wFMCommunicate OK [20:41:20]wFMCommunicate request_size=4 [20:41:20]MH_SAM_APDU [20:41:20]CAPDU: 80 0D 03 02 [20:41:20]Write to MH i2c: E2 08 00 1D 0C 80 0D 03 02 00 00 00 00 A4 [20:41:20]Write i2c OK [20:41:20]MH_I2C_Read... [20:41:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:41:20]Read from MH i2c: E2 [20:41:20]MH_I2C_Read... [20:41:20]Read from MH i2c: E2 0B 00 [20:41:20]MH_I2C_Read... [20:41:20]Read from MH i2c: E2 0B 00 1D 0C 00 08 0B 88 25 07 4F 51 1F 90 00 2B [20:41:20]RAPDU: 08 0B 88 25 07 4F 51 1F 90 00 [20:41:20]wFMCommunicate OK [20:41:20]SAM_PROTO_SignData done [20:41:20]FM_MakeSignedData done [20:41:20]CreateOFDProtocolMessage [20:41:20]wFMCommunicate request_size=4 [20:41:20]MH_SAM_APDU [20:41:20]CAPDU: 80 11 00 00 [20:41:20]Write to MH i2c: E2 08 00 1E 0C 80 11 00 00 00 00 00 00 A4 [20:41:20]Write i2c OK [20:41:20]MH_I2C_Read... [20:41:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:20]Read from MH i2c: E2 [20:41:20]MH_I2C_Read... [20:41:20]Read from MH i2c: E2 17 00 [20:41:20]MH_I2C_Read... [20:41:20]Read from MH i2c: E2 17 00 1E 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F9 [20:41:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:41:20]wFMCommunicate OK [20:41:20]CreateOFDProtocolMessage done [20:41:20]OFDSenderStorePacket 201675 [20:41:20]StoreOFDPacket docnum=201675 [20:41:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 4D 22 04 01 8B 35 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 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 01 00 00 F4 03 04 00 EF 53 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CB 13 03 00 35 04 06 00 27 CD 37 37 76 4C 08 0B 88 25 07 4F 51 1F [20:41:20]CheckFolder [20:41:20]dirname=/storage/ofd_packets [20:41:20]CheckFolder done [20:41:20]ProducePacketName [20:41:20]name=ofd_packets/00201675 [20:41:20]NVStorageSaveData ofd_packets/00201675 [20:41:20]File name is /storage/ofd_packets/00201675 [20:41:20]Write 298 bytes [20:41:20]NVStorageSaveData done [20:41:20]OFDSenderStorePacket done [20:41:20]KKMCreateOFDPacket done [20:41:20]NVStorageSaveData kkm_last_timestamp [20:41:20]File name is /storage/kkm_last_timestamp [20:41:20]Write 4 bytes [20:41:20]NVStorageSaveData done [20:41:20]ExternCall_PrintAddStr [20:41:20]wPrintStart [20:41:20]Write to MH i2c: 01 00 00 1F 0C 2B [20:41:20]Write i2c OK [20:41:20]MH_I2C_Read... [20:41:20]Read from MH i2c: 01 [20:41:20]MH_I2C_Read... [20:41:20]Read from MH i2c: 01 07 00 [20:41:20]MH_I2C_Read... [20:41:20]Read from MH i2c: 01 07 00 1F 0C 00 00 00 00 00 FF 0F 40 [20:41:20]RasterBufferAndPrint [20:41:20]line Счет N : (1)449433 [20:41:20]line ИНН: 02508201610067 [20:41:20]line Контрольно-Кассовый Чек [20:41:20]line ПРОДАЖА [20:41:20]line ТРК (МРК, ГНК) : 43 [20:41:20]line Товар: 2710194210 [20:41:20]line ДТ-К-2 [20:41:20]line 10.500 * 76.20 [20:41:20]line = 800.10 [20:41:20]line НДС 12% НСП 1% [20:41:20]line > о реализуемом товаре [20:41:20]line ОКРУГЛЕНИЕ: -0.10 [20:41:20]line ИТОГО: 800.00 [20:41:20]line Внесено: 800.00 [20:41:20]line СДАЧА: 0.00 [20:41:20]line НСП 1% : 7.08 [20:41:20]line НДС 12% : 84.97 [20:41:20]line Наличными: 800.00 [20:41:20]line Безнал.: 0.00 [20:41:20]line Место: АЗС № 171 "Партнер Нефть" [20:41:20]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [20:41:20]line СНО: Общий режим [20:41:20]line Чек 437 26.10.2024 20:41 [20:41:20]line Смена: 543 ФФД: 1.0 [20:41:20]line ЗНМ: 0300000109 [20:41:20]line РНМ: 0000000000091777 [20:41:20]line Версия ККМ: 001 [20:41:20]line ФМ: 0000000000871756 [20:41:20]line ФД: 201675 [20:41:20]line ФПД: 43762348160588 [20:41:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T204119&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201675&fm=43762348160588&tin=02508201610067®Number=0000000000091777&sum=80000 [20:41:21]OFD Sender: Processing packet 201675 [packets to send 112, broken 111] [20:41:21]ProducePacketName [20:41:21]name=ofd_packets/00201675 [20:41:21]OFD Sender: To server: pG, [20:41:21]CommunicateWithHost lk.salyk.kg:30040 [20:41:21]ConnectInit lk.salyk.kg [20:41:21]written 0, free lines is 4095 [20:41:21]Connected sock=10 [20:41:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 4D 22 04 01 8B 35 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 32 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 01 00 00 F4 03 04 00 EF 53 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CB 13 03 00 35 04 06 00 27 CD 37 37 76 4C 08 0B 88 25 07 4F 51 1F [20:41:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 43 0E 47 00 98 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CB 13 03 00 F4 03 04 00 97 FF 1C 67 B6 04 01 00 00 6A 86 F4 B8 83 56 E3 FD [20:41:21]CommunicateWithHost err = 0 [20:41:21]CheckOFDResponse [20:41:21]1017 (14) - 77093643461234 [20:41:21]1041 (16) - 0000000000871756 [20:41:21]1040 (4) - 201675 [20:41:21]1012 (4) - 26.10.2024 14:41 [20:41:21]1206 (1) - 0 [20:41:21]OFD Sender: Remove packet 201675 [20:41:21]ProducePacketName [20:41:21]name=ofd_packets/00201675 [20:41:21]NVStorageDeleteData [20:41:21]Write to MH i2c: 01 00 00 4A 0C 56 [20:41:21]Write i2c OK [20:41:21]MH_I2C_Read... [20:41:21]Read from MH i2c: 01 [20:41:21]MH_I2C_Read... [20:41:21]Read from MH i2c: 01 07 00 [20:41:21]MH_I2C_Read... [20:41:21]Read from MH i2c: 01 07 00 4A 0C 00 00 00 00 00 96 0C FF [20:41:21]RasterBufferAndPrint [20:41:21]line [20:41:21]line [20:41:21]line [20:41:21]line [20:41:21]line [20:41:21]written 0, free lines is 3228 [20:41:21]MH_Cut [20:41:21]Write to MH i2c: D1 01 00 51 0C 01 2F [20:41:21]Write i2c OK [20:41:21]MH_I2C_Read... [20:41:21]Read from MH i2c: D1 [20:41:21]MH_I2C_Read... [20:41:21]Read from MH i2c: D1 01 00 [20:41:21]MH_I2C_Read... [20:41:21]Read from MH i2c: D1 01 00 51 0C 00 2E [20:41:21]Write to MH i2c: 01 00 00 52 0C 5E [20:41:21]Write i2c OK [20:41:21]MH_I2C_Read... [20:41:22]OFD Sender: No OFD packet to send [20:41:22]*** Cut start [20:41:22]*** Purtial cut [20:41:22]*** CUTSNS_PIN = 0 [20:41:22]*** Stage 1: CUTSNS_PIN = 1 [20:41:24]Read from MH i2c: 01 [20:41:24]MH_I2C_Read... [20:41:24]*** Stop cut motor [20:41:24]*** Cut end [20:41:24]Read from MH i2c: 01 07 00 [20:41:24]MH_I2C_Read... [20:41:24]Read from MH i2c: 01 07 00 52 0C 00 00 00 00 00 FF 0F 73 [20:41:24]process_action close_receipt done [20:41:24]requested_data is exist [20:41:24]produce_requested_data [20:41:24]requested_item fm.sn is exist - process it [20:41:24]wFMCommunicate request_size=4 [20:41:24]MH_SAM_APDU [20:41:24]CAPDU: 80 11 00 00 [20:41:24]Write to MH i2c: E2 08 00 53 0C 80 11 00 00 00 00 00 00 D9 [20:41:24]Write i2c OK [20:41:24]MH_I2C_Read... [20:41:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:24]Read from MH i2c: E2 [20:41:24]MH_I2C_Read... [20:41:24]Read from MH i2c: E2 17 00 [20:41:24]MH_I2C_Read... [20:41:24]Read from MH i2c: E2 17 00 53 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2E [20:41:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:41:24]wFMCommunicate OK [20:41:24]requested_item fd.num is exist - process it [20:41:24]SAM_PROTO_GetFieldsCounters [20:41:24]wFMCommunicate request_size=4 [20:41:24]MH_SAM_APDU [20:41:24]CAPDU: 80 13 00 00 [20:41:24]Write to MH i2c: E2 08 00 54 0C 80 13 00 00 00 00 00 00 DC [20:41:24]Write i2c OK [20:41:24]MH_I2C_Read... [20:41:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:41:24]Read from MH i2c: E2 [20:41:24]MH_I2C_Read... [20:41:24]Read from MH i2c: E2 62 00 [20:41:24]MH_I2C_Read... [20:41:24]Read from MH i2c: E2 62 00 54 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CB 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B5 01 00 00 5E 04 04 00 B5 01 00 00 57 04 04 00 B6 01 00 00 19 04 04 00 00 00 00 00 90 00 29 [20:41:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CB 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B5 01 00 00 5E 04 04 00 B5 01 00 00 57 04 04 00 B6 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:41:24]wFMCommunicate OK [20:41:24]SAM_PROTO_GetFieldsCounters done [20:41:24]requested_item shift.num is exist - process it [20:41:24]requested_item shift.opened is exist - process it [20:41:24]req_shift_opened [20:41:24]FM_GetShiftState [20:41:24]SAM_PROTO_GetShiftState [20:41:24]wFMCommunicate request_size=4 [20:41:24]MH_SAM_APDU [20:41:24]CAPDU: 80 13 01 00 [20:41:24]Write to MH i2c: E2 08 00 55 0C 80 13 01 00 00 00 00 00 DE [20:41:24]Write i2c OK [20:41:24]MH_I2C_Read... [20:41:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:24]Read from MH i2c: E2 [20:41:24]MH_I2C_Read... [20:41:24]Read from MH i2c: E2 0E 00 [20:41:24]MH_I2C_Read... [20:41:24]Read from MH i2c: E2 0E 00 55 0C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 ED [20:41:24]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [20:41:24]wFMCommunicate OK [20:41:24]SAM_PROTO_GetShiftState done [20:41:24]FM_GetShiftState done [20:41:24]req_shift_opened done [20:41:24]requested_item shift.open_date is exist - process it [20:41:24]req_shift_open_date [20:41:24]req_shift_open_date done [20:41:24]produce_requested_data done [20:41:24]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201675,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [20:41:24]process_action_free close_receipt [20:41:24]json_value_free [20:41:24]json_value_free done [20:41:24]process_json_proto returns [20:41:24]Send response to host [20:41:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201675,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [20:41:24]free response buf [20:41:24]execute_script done [20:41:24]execute_script returns [20:41:24]free content buf [20:41:24]Sock 7.Close socket [20:41:24]Sock 7.Thread stoped [20:41:25]accept exits with 9 [20:41:25]New connection [20:41:25]New thread 3066608996 created [20:41:25]Thread 3066465636 joined [20:41:25]Waiting for new connection... [20:41:25] Sock 9.Parse request [20:41:25]Sock 9.Check first char [20:41:25]Sock 9.First char is OK [20:41:25]request: POST /json_proto HTTP/1.0 [20:41:25]Method: POST [20:41:25]URL: /json_proto [20:41:25]Method is POST - this is cgi request [20:41:25]url: /json_proto [20:41:25]query_string will be loaded in cgi processing [20:41:25]execute_cgi json_proto POST (null) [20:41:25]execute_cgi path=json_proto method=POST [20:41:25]POST find Content-Length [20:41:25]Host: 172.17.63.195:8080 [20:41:25]Content-Length: 766 [20:41:25]Content-Type: application/json [20:41:25] [20:41:25]POST finish read [20:41:25]Found Content-Length = 766 [20:41:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:25]execute_script... [20:41: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)449435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:25]POST & json_proto [20:41:25]process_json_proto [20:41:25]json parsed OK: [20:41:25]protocol is kg_v1.0 [20:41:25]action value=close_receipt [20:41:25]process_action close_receipt [20:41:25]cmd_close_receipt [20:41:25]MH_GetDate [20:41:25]Write to MH i2c: F0 00 00 56 0C 51 [20:41:25]Write i2c OK [20:41:25]MH_I2C_Read... [20:41:25]Read from MH i2c: F0 [20:41:25]MH_I2C_Read... [20:41:25]Read from MH i2c: F0 09 00 [20:41:25]MH_I2C_Read... [20:41:25]Read from MH i2c: F0 09 00 56 0C 00 F6 53 1D 67 68 46 19 67 55 [20:41:25]GetLastDocTimeStamp 1729975279 [20:41:25]current date 1729975286 [20:41:25]FM_GetShiftState [20:41:25]SAM_PROTO_GetShiftState [20:41:25]wFMCommunicate request_size=4 [20:41:25]MH_SAM_APDU [20:41:25]CAPDU: 80 13 01 00 [20:41:25]Write to MH i2c: E2 08 00 57 0C 80 13 01 00 00 00 00 00 E0 [20:41:25]Write i2c OK [20:41:25]MH_I2C_Read... [20:41:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:25]Read from MH i2c: E2 [20:41:25]MH_I2C_Read... [20:41:25]Read from MH i2c: E2 0E 00 [20:41:25]MH_I2C_Read... [20:41:25]Read from MH i2c: E2 0E 00 57 0C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 EF [20:41:25]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [20:41:25]wFMCommunicate OK [20:41:25]SAM_PROTO_GetShiftState done [20:41:25]FM_GetShiftState done [20:41:25]opened in 1729900879 [20:41:25]opened+sec_in_day 1729987279 [20:41:25]quantity*price = 50041 [20:41:25]sum+1 = 50042 [20:41:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 438 26.10.2024 20:41 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201676 ФПД: 83657530097085 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T204126&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201676&fm=83657530097085&tin=02508201610067®Number=0000000000091777&sum=50041 [20:41:26]StoreToDocumentArchive [20:41:26]shift 543 fd 201676 [20:41:26]save to /storage/0543/doc_00201676 [20:41:26]save last doc name /storage/0543/doc_00201676 to /storage/kkm_last_doc_name [20:41:26]save OK [20:41:26]Clear old archive folders... [20:41:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:41:26]tlvbuf is 010B17F0 [20:41:26]SAM_PROTO_ClearQueue [20:41:26]wFMCommunicate request_size=4 [20:41:26]MH_SAM_APDU [20:41:26]CAPDU: 80 09 00 00 [20:41:26]Write to MH i2c: E2 08 00 64 0C 80 09 00 00 00 00 00 00 E2 [20:41:26]Write i2c OK [20:41:26]MH_I2C_Read... [20:41:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:41:26]Read from MH i2c: E2 [20:41:26]MH_I2C_Read... [20:41:26]Read from MH i2c: E2 03 00 [20:41:26]MH_I2C_Read... [20:41:26]Read from MH i2c: E2 03 00 64 0C 00 90 00 E4 [20:41:26]RAPDU: 90 00 [20:41:26]wFMCommunicate OK [20:41:26]SAM_PROTO_ClearQueue done [20:41:26]KKMCreateOFDPacket [20:41:26]OFDProtocolAddRootSTLVToBuf [20:41:26]FM_MakeSignedData [20:41:26]FM_MakeSignedData [20:41:26]SAM_PROTO_SignData [20:41:26]wFMCommunicate request_size=4 [20:41:26]MH_SAM_APDU [20:41:26]CAPDU: 80 0D 01 02 [20:41:26]Write to MH i2c: E2 08 00 65 0C 80 0D 01 02 00 00 00 00 EA [20:41:26]Write i2c OK [20:41:26]MH_I2C_Read... [20:41:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:41:26]Read from MH i2c: E2 [20:41:26]MH_I2C_Read... [20:41:26]Read from MH i2c: E2 03 00 [20:41:26]MH_I2C_Read... [20:41:26]Read from MH i2c: E2 03 00 65 0C 00 90 00 E5 [20:41:26]RAPDU: 90 00 [20:41:26]wFMCommunicate OK [20:41:26]wFMCommunicate request_size=255 [20:41:26]MH_SAM_APDU [20:41:26]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 32 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 79 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 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 01 00 00 F4 03 04 00 F6 53 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CC 13 03 00 35 04 06 00 4C [20:41:26]Write to MH i2c: E2 02 01 66 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 32 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 79 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 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 01 00 00 F4 03 04 00 F6 53 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CC 13 03 00 35 04 06 00 4C 00 00 A3 [20:41:26]Write i2c OK [20:41:26]MH_I2C_Read... [20:41:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:26]Read from MH i2c: E2 [20:41:26]MH_I2C_Read... [20:41:26]Read from MH i2c: E2 03 00 [20:41:26]MH_I2C_Read... [20:41:26]Read from MH i2c: E2 03 00 66 0C 00 90 00 E6 [20:41:26]RAPDU: 90 00 [20:41:26]wFMCommunicate OK [20:41:26]wFMCommunicate request_size=10 [20:41:26]MH_SAM_APDU [20:41:26]CAPDU: 80 0D 02 02 05 16 09 5D 3D BD [20:41:26]Write to MH i2c: E2 0D 00 67 0C 80 0D 02 02 05 00 16 09 5D 3D BD 00 00 6D [20:41:27]Write i2c OK [20:41:27]MH_I2C_Read... [20:41:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:27]Read from MH i2c: E2 [20:41:27]MH_I2C_Read... [20:41:27]Read from MH i2c: E2 03 00 [20:41:27]MH_I2C_Read... [20:41:27]Read from MH i2c: E2 03 00 67 0C 00 90 00 E7 [20:41:27]RAPDU: 90 00 [20:41:27]wFMCommunicate OK [20:41:27]wFMCommunicate request_size=4 [20:41:27]MH_SAM_APDU [20:41:27]CAPDU: 80 0D 03 02 [20:41:27]Write to MH i2c: E2 08 00 68 0C 80 0D 03 02 00 00 00 00 EF [20:41:27]OFD Sender: No OFD packet to send [20:41:27]Write i2c OK [20:41:27]MH_I2C_Read... [20:41:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:41:27]Read from MH i2c: E2 [20:41:27]MH_I2C_Read... [20:41:27]Read from MH i2c: E2 0B 00 [20:41:27]MH_I2C_Read... [20:41:27]Read from MH i2c: E2 0B 00 68 0C 00 89 31 1F D3 37 0D 28 6D 90 00 75 [20:41:27]RAPDU: 89 31 1F D3 37 0D 28 6D 90 00 [20:41:27]wFMCommunicate OK [20:41:27]SAM_PROTO_SignData done [20:41:27]FM_MakeSignedData done [20:41:27]CreateOFDProtocolMessage [20:41:27]wFMCommunicate request_size=4 [20:41:27]MH_SAM_APDU [20:41:27]CAPDU: 80 11 00 00 [20:41:27]Write to MH i2c: E2 08 00 69 0C 80 11 00 00 00 00 00 00 EF [20:41:27]Write i2c OK [20:41:27]MH_I2C_Read... [20:41:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:27]Read from MH i2c: E2 [20:41:27]MH_I2C_Read... [20:41:27]Read from MH i2c: E2 17 00 [20:41:27]MH_I2C_Read... [20:41:27]Read from MH i2c: E2 17 00 69 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 44 [20:41:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:41:27]wFMCommunicate OK [20:41:27]CreateOFDProtocolMessage done [20:41:27]OFDSenderStorePacket 201676 [20:41:27]StoreOFDPacket docnum=201676 [20:41:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F8 43 07 01 DD 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 32 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 79 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 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 01 00 00 F4 03 04 00 F6 53 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CC 13 03 00 35 04 06 00 4C 16 09 5D 3D BD 89 31 1F D3 37 0D 28 6D [20:41:27]CheckFolder [20:41:27]dirname=/storage/ofd_packets [20:41:27]CheckFolder done [20:41:27]ProducePacketName [20:41:27]name=ofd_packets/00201676 [20:41:27]NVStorageSaveData ofd_packets/00201676 [20:41:27]File name is /storage/ofd_packets/00201676 [20:41:27]Write 301 bytes [20:41:27]NVStorageSaveData done [20:41:27]OFDSenderStorePacket done [20:41:27]KKMCreateOFDPacket done [20:41:27]NVStorageSaveData kkm_last_timestamp [20:41:27]File name is /storage/kkm_last_timestamp [20:41:27]Write 4 bytes [20:41:27]NVStorageSaveData done [20:41:27]ExternCall_PrintAddStr [20:41:27]wPrintStart [20:41:27]Write to MH i2c: 01 00 00 6A 0C 76 [20:41:27]Write i2c OK [20:41:27]MH_I2C_Read... [20:41:27]Read from MH i2c: 01 [20:41:27]MH_I2C_Read... [20:41:27]Read from MH i2c: 01 07 00 [20:41:27]MH_I2C_Read... [20:41:27]Read from MH i2c: 01 07 00 6A 0C 00 00 00 00 00 FF 0F 8B [20:41:27]RasterBufferAndPrint [20:41:27]line Счет N : (1)449435 [20:41:27]line ИНН: 02508201610067 [20:41:27]line Контрольно-Кассовый Чек [20:41:27]line ПРОДАЖА [20:41:27]line ТРК (МРК, ГНК) : 31 [20:41:27]line Товар: 2710124130 [20:41:27]line Аи-92-К-2 [20:41:27]line 7.480 * 66.90 [20:41:27]line = 500.41 [20:41:27]line НДС 12% НСП 1% [20:41:27]line > о реализуемом товаре [20:41:27]line ИТОГО: 500.41 [20:41:27]line НСП 1% : 4.43 [20:41:27]line НДС 12% : 53.14 [20:41:27]line Наличными: 0.00 [20:41:27]line Безнал.: 500.41 [20:41:27]line Место: АЗС № 171 "Партнер Нефть" [20:41:27]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [20:41:27]line СНО: Общий режим [20:41:27]line Чек 438 26.10.2024 20:41 [20:41:27]line Смена: 543 ФФД: 1.0 [20:41:27]line ЗНМ: 0300000109 [20:41:27]line РНМ: 0000000000091777 [20:41:27]line Версия ККМ: 001 [20:41:27]line Платежная система: Mbank [20:41:27]line ФМ: 0000000000871756 [20:41:27]line ФД: 201676 [20:41:27]line ФПД: 83657530097085 [20:41:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T204126&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201676&fm=83657530097085&tin=02508201610067®Number=0000000000091777&sum=50041 [20:41:27]written 0, free lines is 4095 [20:41:27]OFD Sender: Processing packet 201676 [packets to send 112, broken 111] [20:41:27]ProducePacketName [20:41:27]name=ofd_packets/00201676 [20:41:27]OFD Sender: To server: pG, [20:41:27]CommunicateWithHost lk.salyk.kg:30040 [20:41:27]ConnectInit lk.salyk.kg [20:41:27]Connected sock=10 [20:41:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F8 43 07 01 DD 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 32 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 79 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 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 01 00 00 F4 03 04 00 F6 53 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CC 13 03 00 35 04 06 00 4C 16 09 5D 3D BD 89 31 1F D3 37 0D 28 6D [20:41:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 F3 AC 47 00 20 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CC 13 03 00 F4 03 04 00 9E FF 1C 67 B6 04 01 00 00 63 47 34 4F 6B B4 93 5E [20:41:27]CommunicateWithHost err = 0 [20:41:27]CheckOFDResponse [20:41:27]1017 (14) - 77093643461234 [20:41:27]1041 (16) - 0000000000871756 [20:41:27]1040 (4) - 201676 [20:41:27]1012 (4) - 26.10.2024 14:41 [20:41:27]1206 (1) - 0 [20:41:27]OFD Sender: Remove packet 201676 [20:41:27]ProducePacketName [20:41:27]name=ofd_packets/00201676 [20:41:27]NVStorageDeleteData [20:41:27]Write to MH i2c: 01 00 00 93 0C 9F [20:41:27]Write i2c OK [20:41:27]MH_I2C_Read... [20:41:27]Read from MH i2c: 01 [20:41:27]MH_I2C_Read... [20:41:27]Read from MH i2c: 01 07 00 [20:41:27]MH_I2C_Read... [20:41:27]Read from MH i2c: 01 07 00 93 0C 00 00 00 00 00 C6 0C 78 [20:41:27]RasterBufferAndPrint [20:41:27]line [20:41:27]line [20:41:27]line [20:41:27]line [20:41:27]line [20:41:27]written 0, free lines is 3280 [20:41:27]MH_Cut [20:41:27]Write to MH i2c: D1 01 00 9A 0C 01 78 [20:41:27]Write i2c OK [20:41:27]MH_I2C_Read... [20:41:27]Read from MH i2c: D1 [20:41:27]MH_I2C_Read... [20:41:27]Read from MH i2c: D1 01 00 [20:41:27]MH_I2C_Read... [20:41:27]Read from MH i2c: D1 01 00 9A 0C 00 77 [20:41:27]Write to MH i2c: 01 00 00 9B 0C A7 [20:41:27]Write i2c OK [20:41:27]MH_I2C_Read... [20:41:28]OFD Sender: No OFD packet to send [20:41:28]*** Cut start [20:41:28]*** Purtial cut [20:41:28]*** Stage 1: CUTSNS_PIN = 1 [20:41:29]Read from MH i2c: 01 [20:41:29]MH_I2C_Read... [20:41:29]*** Stop cut motor [20:41:29]*** Cut end [20:41:29]Read from MH i2c: 01 07 00 [20:41:29]MH_I2C_Read... [20:41:29]Read from MH i2c: 01 07 00 9B 0C 00 00 00 00 00 FF 0F BC [20:41:29]process_action close_receipt done [20:41:29]requested_data is exist [20:41:29]produce_requested_data [20:41:29]requested_item fm.sn is exist - process it [20:41:29]wFMCommunicate request_size=4 [20:41:29]MH_SAM_APDU [20:41:29]CAPDU: 80 11 00 00 [20:41:29]Write to MH i2c: E2 08 00 9C 0C 80 11 00 00 00 00 00 00 22 [20:41:29]Write i2c OK [20:41:29]MH_I2C_Read... [20:41:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:29]Read from MH i2c: E2 [20:41:29]MH_I2C_Read... [20:41:29]Read from MH i2c: E2 17 00 [20:41:29]MH_I2C_Read... [20:41:29]Read from MH i2c: E2 17 00 9C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 77 [20:41:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:41:29]wFMCommunicate OK [20:41:29]requested_item fd.num is exist - process it [20:41:29]SAM_PROTO_GetFieldsCounters [20:41:29]wFMCommunicate request_size=4 [20:41:29]MH_SAM_APDU [20:41:29]CAPDU: 80 13 00 00 [20:41:29]Write to MH i2c: E2 08 00 9D 0C 80 13 00 00 00 00 00 00 25 [20:41:29]Write i2c OK [20:41:29]MH_I2C_Read... [20:41:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:41:29]Read from MH i2c: E2 [20:41:29]MH_I2C_Read... [20:41:29]Read from MH i2c: E2 62 00 [20:41:29]MH_I2C_Read... [20:41:29]Read from MH i2c: E2 62 00 9D 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CC 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B6 01 00 00 5E 04 04 00 B6 01 00 00 57 04 04 00 B7 01 00 00 19 04 04 00 00 00 00 00 90 00 76 [20:41:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CC 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B6 01 00 00 5E 04 04 00 B6 01 00 00 57 04 04 00 B7 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:41:29]wFMCommunicate OK [20:41:29]SAM_PROTO_GetFieldsCounters done [20:41:29]requested_item shift.num is exist - process it [20:41:29]requested_item shift.opened is exist - process it [20:41:29]req_shift_opened [20:41:29]FM_GetShiftState [20:41:29]SAM_PROTO_GetShiftState [20:41:29]wFMCommunicate request_size=4 [20:41:29]MH_SAM_APDU [20:41:29]CAPDU: 80 13 01 00 [20:41:29]Write to MH i2c: E2 08 00 9E 0C 80 13 01 00 00 00 00 00 27 [20:41:29]Write i2c OK [20:41:29]MH_I2C_Read... [20:41:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:29]Read from MH i2c: E2 [20:41:29]MH_I2C_Read... [20:41:29]Read from MH i2c: E2 0E 00 [20:41:29]MH_I2C_Read... [20:41:29]Read from MH i2c: E2 0E 00 9E 0C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 36 [20:41:29]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [20:41:29]wFMCommunicate OK [20:41:29]SAM_PROTO_GetShiftState done [20:41:29]FM_GetShiftState done [20:41:29]req_shift_opened done [20:41:29]requested_item shift.open_date is exist - process it [20:41:29]req_shift_open_date [20:41:29]req_shift_open_date done [20:41:29]produce_requested_data done [20:41:29]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201676,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [20:41:29]process_action_free close_receipt [20:41:29]json_value_free [20:41:29]json_value_free done [20:41:29]process_json_proto returns [20:41:29]Send response to host [20:41:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201676,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [20:41:29]free response buf [20:41:29]execute_script done [20:41:29]execute_script returns [20:41:29]free content buf [20:41:29]Sock 9.Close socket [20:41:29]Sock 9.Thread stoped [20:41:33]OFD Sender: No OFD packet to send [20:41:38]OFD Sender: No OFD packet to send [20:41:43]OFD Sender: No OFD packet to send [20:41:44]accept exits with 7 [20:41:44]New connection [20:41:44]New thread 3066465636 created [20:41:44]Thread 3066608996 joined [20:41:44]Waiting for new connection... [20:41:44] Sock 7.Parse request [20:41:44]Sock 7.Check first char [20:41:44]Sock 7.First char is OK [20:41:44]request: POST /json_proto HTTP/1.0 [20:41:44]Method: POST [20:41:44]URL: /json_proto [20:41:44]Method is POST - this is cgi request [20:41:44]url: /json_proto [20:41:44]query_string will be loaded in cgi processing [20:41:44]execute_cgi json_proto POST (null) [20:41:44]execute_cgi path=json_proto method=POST [20:41:44]POST find Content-Length [20:41:44]Host: 172.17.63.195:8080 [20:41:44]Content-Length: 677 [20:41:44]Content-Type: application/json [20:41:44] [20:41:44]POST finish read [20:41:44]Found Content-Length = 677 [20:41:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [20:41:44]execute_script... [20:41:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [20:41:44]POST & json_proto [20:41:44]process_json_proto [20:41:44]json parsed OK: [20:41:44]protocol is kg_v1.0 [20:41:44]action value=close_receipt [20:41:44]process_action close_receipt [20:41:44]cmd_close_receipt [20:41:44]MH_GetDate [20:41:44]Write to MH i2c: F0 00 00 9F 0C 9A [20:41:44]Write i2c OK [20:41:44]MH_I2C_Read... [20:41:44]Read from MH i2c: F0 [20:41:44]MH_I2C_Read... [20:41:44]Read from MH i2c: F0 09 00 [20:41:44]MH_I2C_Read... [20:41:44]Read from MH i2c: F0 09 00 9F 0C 00 09 54 1D 67 68 46 19 67 B2 [20:41:44]GetLastDocTimeStamp 1729975286 [20:41:44]current date 1729975305 [20:41:44]FM_GetShiftState [20:41:44]SAM_PROTO_GetShiftState [20:41:44]wFMCommunicate request_size=4 [20:41:44]MH_SAM_APDU [20:41:44]CAPDU: 80 13 01 00 [20:41:44]Write to MH i2c: E2 08 00 A0 0C 80 13 01 00 00 00 00 00 29 [20:41:44]Write i2c OK [20:41:44]MH_I2C_Read... [20:41:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:44]Read from MH i2c: E2 [20:41:44]MH_I2C_Read... [20:41:44]Read from MH i2c: E2 0E 00 [20:41:44]MH_I2C_Read... [20:41:44]Read from MH i2c: E2 0E 00 A0 0C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 38 [20:41:44]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [20:41:44]wFMCommunicate OK [20:41:44]SAM_PROTO_GetShiftState done [20:41:44]FM_GetShiftState done [20:41:44]opened in 1729900879 [20:41:44]opened+sec_in_day 1729987279 [20:41:44]quantity*price = 50041 [20:41:44]sum+1 = 50042 [20:41:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 439 26.10.2024 20:41 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201677 ФПД: 252369135085583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T204145&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201677&fm=252369135085583&tin=02508201610067®Number=0000000000091777&sum=50000 [20:41:45]StoreToDocumentArchive [20:41:45]shift 543 fd 201677 [20:41:45]save to /storage/0543/doc_00201677 [20:41:45]save last doc name /storage/0543/doc_00201677 to /storage/kkm_last_doc_name [20:41:45]save OK [20:41:45]Clear old archive folders... [20:41:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:41:45]tlvbuf is 010B5D30 [20:41:45]SAM_PROTO_ClearQueue [20:41:45]wFMCommunicate request_size=4 [20:41:45]MH_SAM_APDU [20:41:45]CAPDU: 80 09 00 00 [20:41:45]Write to MH i2c: E2 08 00 AD 0C 80 09 00 00 00 00 00 00 2B [20:41:45]Write i2c OK [20:41:45]MH_I2C_Read... [20:41:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:41:45]Read from MH i2c: E2 [20:41:45]MH_I2C_Read... [20:41:45]Read from MH i2c: E2 03 00 [20:41:45]MH_I2C_Read... [20:41:45]Read from MH i2c: E2 03 00 AD 0C 00 90 00 2D [20:41:45]RAPDU: 90 00 [20:41:45]wFMCommunicate OK [20:41:45]SAM_PROTO_ClearQueue done [20:41:45]KKMCreateOFDPacket [20:41:45]OFDProtocolAddRootSTLVToBuf [20:41:45]FM_MakeSignedData [20:41:45]FM_MakeSignedData [20:41:45]SAM_PROTO_SignData [20:41:45]wFMCommunicate request_size=4 [20:41:45]MH_SAM_APDU [20:41:45]CAPDU: 80 0D 01 02 [20:41:45]Write to MH i2c: E2 08 00 AE 0C 80 0D 01 02 00 00 00 00 33 [20:41:45]Write i2c OK [20:41:45]MH_I2C_Read... [20:41:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:41:46]Read from MH i2c: E2 [20:41:46]MH_I2C_Read... [20:41:46]Read from MH i2c: E2 03 00 [20:41:46]MH_I2C_Read... [20:41:46]Read from MH i2c: E2 03 00 AE 0C 00 90 00 2E [20:41:46]RAPDU: 90 00 [20:41:46]wFMCommunicate OK [20:41:46]wFMCommunicate request_size=255 [20:41:46]MH_SAM_APDU [20:41:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B7 01 00 00 F4 03 04 00 09 54 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CD 13 03 00 35 04 06 00 E5 [20:41:46]Write to MH i2c: E2 02 01 AF 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 32 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 B7 01 00 00 F4 03 04 00 09 54 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CD 13 03 00 35 04 06 00 E5 00 00 49 [20:41:46]Write i2c OK [20:41:46]MH_I2C_Read... [20:41:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:46]Read from MH i2c: E2 [20:41:46]MH_I2C_Read... [20:41:46]Read from MH i2c: E2 03 00 [20:41:46]MH_I2C_Read... [20:41:46]Read from MH i2c: E2 03 00 AF 0C 00 90 00 2F [20:41:46]RAPDU: 90 00 [20:41:46]wFMCommunicate OK [20:41:46]wFMCommunicate request_size=10 [20:41:46]MH_SAM_APDU [20:41:46]CAPDU: 80 0D 02 02 05 87 44 A6 28 0F [20:41:46]Write to MH i2c: E2 0D 00 B0 0C 80 0D 02 02 05 00 87 44 A6 28 0F 00 00 E8 [20:41:46]Write i2c OK [20:41:46]MH_I2C_Read... [20:41:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:46]Read from MH i2c: E2 [20:41:46]MH_I2C_Read... [20:41:46]Read from MH i2c: E2 03 00 [20:41:46]MH_I2C_Read... [20:41:46]Read from MH i2c: E2 03 00 B0 0C 00 90 00 30 [20:41:46]RAPDU: 90 00 [20:41:46]wFMCommunicate OK [20:41:46]wFMCommunicate request_size=4 [20:41:46]MH_SAM_APDU [20:41:46]CAPDU: 80 0D 03 02 [20:41:46]Write to MH i2c: E2 08 00 B1 0C 80 0D 03 02 00 00 00 00 38 [20:41:46]Write i2c OK [20:41:46]MH_I2C_Read... [20:41:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:41:46]Read from MH i2c: E2 [20:41:46]MH_I2C_Read... [20:41:46]Read from MH i2c: E2 0B 00 [20:41:46]MH_I2C_Read... [20:41:46]Read from MH i2c: E2 0B 00 B1 0C 00 1A A5 C8 B6 C9 73 C3 18 90 00 8D [20:41:46]RAPDU: 1A A5 C8 B6 C9 73 C3 18 90 00 [20:41:46]wFMCommunicate OK [20:41:46]SAM_PROTO_SignData done [20:41:46]FM_MakeSignedData done [20:41:46]CreateOFDProtocolMessage [20:41:46]wFMCommunicate request_size=4 [20:41:46]MH_SAM_APDU [20:41:46]CAPDU: 80 11 00 00 [20:41:46]Write to MH i2c: E2 08 00 B2 0C 80 11 00 00 00 00 00 00 38 [20:41:46]Write i2c OK [20:41:46]MH_I2C_Read... [20:41:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:46]Read from MH i2c: E2 [20:41:46]MH_I2C_Read... [20:41:46]Read from MH i2c: E2 17 00 [20:41:46]MH_I2C_Read... [20:41:46]Read from MH i2c: E2 17 00 B2 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 8D [20:41:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:41:46]wFMCommunicate OK [20:41:46]CreateOFDProtocolMessage done [20:41:46]OFDSenderStorePacket 201677 [20:41:46]StoreOFDPacket docnum=201677 [20:41:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1F 5D 07 01 2A 4C 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 32 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 B7 01 00 00 F4 03 04 00 09 54 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CD 13 03 00 35 04 06 00 E5 87 44 A6 28 0F 1A A5 C8 B6 C9 73 C3 18 [20:41:46]CheckFolder [20:41:46]dirname=/storage/ofd_packets [20:41:46]CheckFolder done [20:41:46]ProducePacketName [20:41:46]name=ofd_packets/00201677 [20:41:46]NVStorageSaveData ofd_packets/00201677 [20:41:46]File name is /storage/ofd_packets/00201677 [20:41:46]Write 301 bytes [20:41:46]NVStorageSaveData done [20:41:46]OFDSenderStorePacket done [20:41:46]KKMCreateOFDPacket done [20:41:46]NVStorageSaveData kkm_last_timestamp [20:41:46]File name is /storage/kkm_last_timestamp [20:41:46]Write 4 bytes [20:41:46]NVStorageSaveData done [20:41:46]ExternCall_PrintAddStr [20:41:46]wPrintStart [20:41:46]Write to MH i2c: 01 00 00 B3 0C BF [20:41:46]Write i2c OK [20:41:46]MH_I2C_Read... [20:41:46]Read from MH i2c: 01 [20:41:46]MH_I2C_Read... [20:41:46]Read from MH i2c: 01 07 00 [20:41:46]MH_I2C_Read... [20:41:46]Read from MH i2c: 01 07 00 B3 0C 00 00 00 00 00 FF 0F D4 [20:41:46]RasterBufferAndPrint [20:41:46]line Счет N : (1)449434 [20:41:46]line ИНН: 02508201610067 [20:41:46]line Контрольно-Кассовый Чек [20:41:46]line ПРОДАЖА [20:41:46]line ТРК (МРК, ГНК) : 52 [20:41:46]line Товар: 2710124130 [20:41:46]line Аи-92-К-2 [20:41:46]line 7.480 * 66.90 [20:41:46]line = 500.41 [20:41:46]line НДС 12% НСП 1% [20:41:46]line > о реализуемом товаре [20:41:46]line ОКРУГЛЕНИЕ: -0.41 [20:41:46]line ИТОГО: 500.00 [20:41:46]line Внесено: 500.00 [20:41:46]line СДАЧА: 0.00 [20:41:46]line НСП 1% : 4.43 [20:41:46]line НДС 12% : 53.14 [20:41:46]line Наличными: 500.00 [20:41:46]line Безнал.: 0.00 [20:41:46]line Место: АЗС № 171 "Партнер Нефть" [20:41:46]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [20:41:46]line СНО: Общий режим [20:41:46]line Чек 439 26.10.2024 20:41 [20:41:46]line Смена: 543 ФФД: 1.0 [20:41:46]line ЗНМ: 0300000109 [20:41:46]line РНМ: 0000000000091777 [20:41:46]line Версия ККМ: 001 [20:41:46]line ФМ: 0000000000871756 [20:41:46]line ФД: 201677 [20:41:46]line ФПД: 252369135085583 [20:41:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T204145&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201677&fm=252369135085583&tin=02508201610067®Number=0000000000091777&sum=50000 [20:41:46]OFD Sender: Processing packet 201677 [packets to send 112, broken 111] [20:41:46]ProducePacketName [20:41:46]name=ofd_packets/00201677 [20:41:46]OFD Sender: To server: pG, [20:41:46]CommunicateWithHost lk.salyk.kg:30040 [20:41:46]ConnectInit lk.salyk.kg [20:41:46]written 0, free lines is 4095 [20:41:46]Connected sock=10 [20:41:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 1F 5D 07 01 2A 4C 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 32 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 B7 01 00 00 F4 03 04 00 09 54 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CD 13 03 00 35 04 06 00 E5 87 44 A6 28 0F 1A A5 C8 B6 C9 73 C3 18 [20:41:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 37 9B 47 00 20 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CD 13 03 00 F4 03 04 00 B1 FF 1C 67 B6 04 01 00 00 FC E7 A9 1F 76 37 6B F2 [20:41:47]CommunicateWithHost err = 0 [20:41:47]CheckOFDResponse [20:41:47]1017 (14) - 77093643461234 [20:41:47]1041 (16) - 0000000000871756 [20:41:47]1040 (4) - 201677 [20:41:47]1012 (4) - 26.10.2024 14:41 [20:41:47]1206 (1) - 0 [20:41:47]OFD Sender: Remove packet 201677 [20:41:47]ProducePacketName [20:41:47]name=ofd_packets/00201677 [20:41:47]NVStorageDeleteData [20:41:47]Write to MH i2c: 01 00 00 DE 0C EA [20:41:47]Write i2c OK [20:41:47]MH_I2C_Read... [20:41:47]Read from MH i2c: 01 [20:41:47]MH_I2C_Read... [20:41:47]Read from MH i2c: 01 07 00 [20:41:47]MH_I2C_Read... [20:41:47]Read from MH i2c: 01 07 00 DE 0C 00 00 00 00 00 A0 0C 9D [20:41:47]RasterBufferAndPrint [20:41:47]line [20:41:47]line [20:41:47]line [20:41:47]line [20:41:47]line [20:41:47]written 0, free lines is 3239 [20:41:47]MH_Cut [20:41:47]Write to MH i2c: D1 01 00 E5 0C 01 C3 [20:41:47]Write i2c OK [20:41:47]MH_I2C_Read... [20:41:47]Read from MH i2c: D1 [20:41:47]MH_I2C_Read... [20:41:47]Read from MH i2c: D1 01 00 [20:41:47]MH_I2C_Read... [20:41:47]Read from MH i2c: D1 01 00 E5 0C 00 C2 [20:41:47]Write to MH i2c: 01 00 00 E6 0C F2 [20:41:47]Write i2c OK [20:41:47]MH_I2C_Read... [20:41:47]OFD Sender: No OFD packet to send [20:41:48]*** Cut start [20:41:48]*** Purtial cut [20:41:48]*** CUTSNS_PIN = 0 [20:41:48]*** Stage 1: CUTSNS_PIN = 1 [20:41:50]Read from MH i2c: 01 [20:41:50]MH_I2C_Read... [20:41:50]*** Stop cut motor [20:41:50]*** Cut end [20:41:50]Read from MH i2c: 01 07 00 [20:41:50]MH_I2C_Read... [20:41:50]Read from MH i2c: 01 07 00 E6 0C 00 00 00 00 00 FF 0F 07 [20:41:50]process_action close_receipt done [20:41:50]requested_data is exist [20:41:50]produce_requested_data [20:41:50]requested_item fm.sn is exist - process it [20:41:50]wFMCommunicate request_size=4 [20:41:50]MH_SAM_APDU [20:41:50]CAPDU: 80 11 00 00 [20:41:50]Write to MH i2c: E2 08 00 E7 0C 80 11 00 00 00 00 00 00 6D [20:41:50]Write i2c OK [20:41:50]MH_I2C_Read... [20:41:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:50]Read from MH i2c: E2 [20:41:50]MH_I2C_Read... [20:41:50]Read from MH i2c: E2 17 00 [20:41:50]MH_I2C_Read... [20:41:50]Read from MH i2c: E2 17 00 E7 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C2 [20:41:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:41:50]wFMCommunicate OK [20:41:50]requested_item fd.num is exist - process it [20:41:50]SAM_PROTO_GetFieldsCounters [20:41:50]wFMCommunicate request_size=4 [20:41:50]MH_SAM_APDU [20:41:50]CAPDU: 80 13 00 00 [20:41:50]Write to MH i2c: E2 08 00 E8 0C 80 13 00 00 00 00 00 00 70 [20:41:50]Write i2c OK [20:41:50]MH_I2C_Read... [20:41:50]Read from MH i2c: E2 [20:41:50]MH_I2C_Read... [20:41:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:41:50]Read from MH i2c: E2 62 00 [20:41:50]MH_I2C_Read... [20:41:50]Read from MH i2c: E2 62 00 E8 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CD 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B7 01 00 00 5E 04 04 00 B7 01 00 00 57 04 04 00 B8 01 00 00 19 04 04 00 00 00 00 00 90 00 C5 [20:41:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CD 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B7 01 00 00 5E 04 04 00 B7 01 00 00 57 04 04 00 B8 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:41:50]wFMCommunicate OK [20:41:50]SAM_PROTO_GetFieldsCounters done [20:41:50]requested_item shift.num is exist - process it [20:41:50]requested_item shift.opened is exist - process it [20:41:50]req_shift_opened [20:41:50]FM_GetShiftState [20:41:50]SAM_PROTO_GetShiftState [20:41:50]wFMCommunicate request_size=4 [20:41:50]MH_SAM_APDU [20:41:50]CAPDU: 80 13 01 00 [20:41:50]Write to MH i2c: E2 08 00 E9 0C 80 13 01 00 00 00 00 00 72 [20:41:50]Write i2c OK [20:41:50]MH_I2C_Read... [20:41:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:50]Read from MH i2c: E2 [20:41:50]MH_I2C_Read... [20:41:50]Read from MH i2c: E2 0E 00 [20:41:50]MH_I2C_Read... [20:41:50]Read from MH i2c: E2 0E 00 E9 0C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 81 [20:41:50]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [20:41:50]wFMCommunicate OK [20:41:50]SAM_PROTO_GetShiftState done [20:41:50]FM_GetShiftState done [20:41:50]req_shift_opened done [20:41:50]requested_item shift.open_date is exist - process it [20:41:50]req_shift_open_date [20:41:50]req_shift_open_date done [20:41:50]produce_requested_data done [20:41:50]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201677,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [20:41:50]process_action_free close_receipt [20:41:50]json_value_free [20:41:50]json_value_free done [20:41:50]process_json_proto returns [20:41:50]Send response to host [20:41:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201677,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [20:41:50]free response buf [20:41:50]execute_script done [20:41:50]execute_script returns [20:41:50]free content buf [20:41:50]Sock 7.Close socket [20:41:50]Sock 7.Thread stoped [20:41:52]OFD Sender: No OFD packet to send [20:41:57]OFD Sender: No OFD packet to send [20:42:02]OFD Sender: No OFD packet to send [20:42:07]OFD Sender: No OFD packet to send [20:42:12]OFD Sender: No OFD packet to send [20:42:17]OFD Sender: No OFD packet to send [20:42:22]OFD Sender: No OFD packet to send [20:42:27]OFD Sender: No OFD packet to send [20:42:32]OFD Sender: No OFD packet to send [20:42:37]OFD Sender: No OFD packet to send [20:42:42]OFD Sender: No OFD packet to send [20:42:47]OFD Sender: No OFD packet to send [20:42:52]OFD Sender: No OFD packet to send [20:42:57]OFD Sender: No OFD packet to send [20:43:02]OFD Sender: No OFD packet to send [20:43:07]OFD Sender: No OFD packet to send [20:43:12]OFD Sender: No OFD packet to send [20:43:17]OFD Sender: No OFD packet to send [20:43:19]accept exits with 9 [20:43:19]New connection [20:43:19]New thread 3066608996 created [20:43:19]Thread 3066465636 joined [20:43:19]Waiting for new connection... [20:43:19] Sock 9.Parse request [20:43:19]Sock 9.Check first char [20:43:19]Sock 9.First char is OK [20:43:19]request: POST /json_proto HTTP/1.0 [20:43:19]Method: POST [20:43:19]URL: /json_proto [20:43:19]Method is POST - this is cgi request [20:43:19]url: /json_proto [20:43:19]query_string will be loaded in cgi processing [20:43:19]execute_cgi json_proto POST (null) [20:43:19]execute_cgi path=json_proto method=POST [20:43:19]POST find Content-Length [20:43:19]Host: 172.17.63.195:8080 [20:43:19]Content-Length: 677 [20:43:19]Content-Type: application/json [20:43:19] [20:43:19]POST finish read [20:43:19]Found Content-Length = 677 [20:43:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:43:19]execute_script... [20:43: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)449436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:43:19]POST & json_proto [20:43:19]process_json_proto [20:43:19]json parsed OK: [20:43:19]protocol is kg_v1.0 [20:43:19]action value=close_receipt [20:43:19]process_action close_receipt [20:43:19]cmd_close_receipt [20:43:19]MH_GetDate [20:43:19]Write to MH i2c: F0 00 00 EA 0C E5 [20:43:19]Write i2c OK [20:43:19]MH_I2C_Read... [20:43:19]Read from MH i2c: F0 [20:43:19]MH_I2C_Read... [20:43:19]Read from MH i2c: F0 09 00 [20:43:19]MH_I2C_Read... [20:43:19]Read from MH i2c: F0 09 00 EA 0C 00 67 54 1D 67 68 46 19 67 5B [20:43:19]GetLastDocTimeStamp 1729975305 [20:43:19]current date 1729975399 [20:43:19]FM_GetShiftState [20:43:19]SAM_PROTO_GetShiftState [20:43:19]wFMCommunicate request_size=4 [20:43:19]MH_SAM_APDU [20:43:19]CAPDU: 80 13 01 00 [20:43:19]Write to MH i2c: E2 08 00 EB 0C 80 13 01 00 00 00 00 00 74 [20:43:19]Write i2c OK [20:43:19]MH_I2C_Read... [20:43:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:19]Read from MH i2c: E2 [20:43:19]MH_I2C_Read... [20:43:19]Read from MH i2c: E2 0E 00 [20:43:19]MH_I2C_Read... [20:43:19]Read from MH i2c: E2 0E 00 EB 0C 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 83 [20:43:19]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [20:43:19]wFMCommunicate OK [20:43:19]SAM_PROTO_GetShiftState done [20:43:19]FM_GetShiftState done [20:43:19]opened in 1729900879 [20:43:19]opened+sec_in_day 1729987279 [20:43:19]quantity*price = 30038 [20:43:19]sum+1 = 30039 [20:43:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 440 26.10.2024 20:43 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201678 ФПД: 209024701418859 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T204319&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201678&fm=209024701418859&tin=02508201610067®Number=0000000000091777&sum=30000 [20:43:20]StoreToDocumentArchive [20:43:20]shift 543 fd 201678 [20:43:20]save to /storage/0543/doc_00201678 [20:43:20]save last doc name /storage/0543/doc_00201678 to /storage/kkm_last_doc_name [20:43:20]save OK [20:43:20]Clear old archive folders... [20:43:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:43:20]tlvbuf is 010456A0 [20:43:20]SAM_PROTO_ClearQueue [20:43:20]wFMCommunicate request_size=4 [20:43:20]MH_SAM_APDU [20:43:20]CAPDU: 80 09 00 00 [20:43:20]Write to MH i2c: E2 08 00 F8 0C 80 09 00 00 00 00 00 00 76 [20:43:20]Write i2c OK [20:43:20]MH_I2C_Read... [20:43:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:43:20]Read from MH i2c: E2 [20:43:20]MH_I2C_Read... [20:43:20]Read from MH i2c: E2 03 00 [20:43:20]MH_I2C_Read... [20:43:20]Read from MH i2c: E2 03 00 F8 0C 00 90 00 78 [20:43:20]RAPDU: 90 00 [20:43:20]wFMCommunicate OK [20:43:20]SAM_PROTO_ClearQueue done [20:43:20]KKMCreateOFDPacket [20:43:20]OFDProtocolAddRootSTLVToBuf [20:43:20]FM_MakeSignedData [20:43:20]FM_MakeSignedData [20:43:20]SAM_PROTO_SignData [20:43:20]wFMCommunicate request_size=4 [20:43:20]MH_SAM_APDU [20:43:20]CAPDU: 80 0D 01 02 [20:43:20]Write to MH i2c: E2 08 00 F9 0C 80 0D 01 02 00 00 00 00 7E [20:43:20]Write i2c OK [20:43:20]MH_I2C_Read... [20:43:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:43:20]Read from MH i2c: E2 [20:43:20]MH_I2C_Read... [20:43:20]Read from MH i2c: E2 03 00 [20:43:20]MH_I2C_Read... [20:43:20]Read from MH i2c: E2 03 00 F9 0C 00 90 00 79 [20:43:20]RAPDU: 90 00 [20:43:20]wFMCommunicate OK [20:43:20]wFMCommunicate request_size=255 [20:43:20]MH_SAM_APDU [20:43:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 67 54 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CE 13 03 00 35 04 06 00 BE [20:43:20]Write to MH i2c: E2 02 01 FA 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 67 54 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CE 13 03 00 35 04 06 00 BE 00 00 C1 [20:43:20]Write i2c OK [20:43:20]MH_I2C_Read... [20:43:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:20]Read from MH i2c: E2 [20:43:20]MH_I2C_Read... [20:43:20]Read from MH i2c: E2 03 00 [20:43:20]MH_I2C_Read... [20:43:20]Read from MH i2c: E2 03 00 FA 0C 00 90 00 7A [20:43:20]RAPDU: 90 00 [20:43:20]wFMCommunicate OK [20:43:20]wFMCommunicate request_size=10 [20:43:20]MH_SAM_APDU [20:43:20]CAPDU: 80 0D 02 02 05 1B 5B 13 CD 6B [20:43:20]Write to MH i2c: E2 0D 00 FB 0C 80 0D 02 02 05 00 1B 5B 13 CD 6B 00 00 4C [20:43:20]Write i2c OK [20:43:20]MH_I2C_Read... [20:43:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:20]Read from MH i2c: E2 [20:43:20]MH_I2C_Read... [20:43:20]Read from MH i2c: E2 03 00 [20:43:20]MH_I2C_Read... [20:43:20]Read from MH i2c: E2 03 00 FB 0C 00 90 00 7B [20:43:20]RAPDU: 90 00 [20:43:20]wFMCommunicate OK [20:43:20]wFMCommunicate request_size=4 [20:43:20]MH_SAM_APDU [20:43:20]CAPDU: 80 0D 03 02 [20:43:20]Write to MH i2c: E2 08 00 FC 0C 80 0D 03 02 00 00 00 00 83 [20:43:20]Write i2c OK [20:43:20]MH_I2C_Read... [20:43:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:43:20]Read from MH i2c: E2 [20:43:20]MH_I2C_Read... [20:43:20]Read from MH i2c: E2 0B 00 [20:43:20]MH_I2C_Read... [20:43:20]Read from MH i2c: E2 0B 00 FC 0C 00 03 0C 05 EF 3A B0 A4 33 90 00 48 [20:43:20]RAPDU: 03 0C 05 EF 3A B0 A4 33 90 00 [20:43:20]wFMCommunicate OK [20:43:20]SAM_PROTO_SignData done [20:43:20]FM_MakeSignedData done [20:43:20]CreateOFDProtocolMessage [20:43:20]wFMCommunicate request_size=4 [20:43:20]MH_SAM_APDU [20:43:20]CAPDU: 80 11 00 00 [20:43:20]Write to MH i2c: E2 08 00 FD 0C 80 11 00 00 00 00 00 00 83 [20:43:20]Write i2c OK [20:43:20]MH_I2C_Read... [20:43:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:20]Read from MH i2c: E2 [20:43:20]MH_I2C_Read... [20:43:20]Read from MH i2c: E2 17 00 [20:43:20]MH_I2C_Read... [20:43:20]Read from MH i2c: E2 17 00 FD 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D8 [20:43:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:43:20]wFMCommunicate OK [20:43:20]CreateOFDProtocolMessage done [20:43:20]OFDSenderStorePacket 201678 [20:43:20]StoreOFDPacket docnum=201678 [20:43:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8D 11 07 01 66 B5 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 67 54 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CE 13 03 00 35 04 06 00 BE 1B 5B 13 CD 6B 03 0C 05 EF 3A B0 A4 33 [20:43:20]CheckFolder [20:43:20]dirname=/storage/ofd_packets [20:43:20]CheckFolder done [20:43:20]ProducePacketName [20:43:20]name=ofd_packets/00201678 [20:43:20]NVStorageSaveData ofd_packets/00201678 [20:43:20]File name is /storage/ofd_packets/00201678 [20:43:20]Write 301 bytes [20:43:20]NVStorageSaveData done [20:43:20]OFDSenderStorePacket done [20:43:20]KKMCreateOFDPacket done [20:43:20]NVStorageSaveData kkm_last_timestamp [20:43:20]File name is /storage/kkm_last_timestamp [20:43:20]Write 4 bytes [20:43:20]NVStorageSaveData done [20:43:20]ExternCall_PrintAddStr [20:43:20]wPrintStart [20:43:20]Write to MH i2c: 01 00 00 FE 0C 0A [20:43:20]Write i2c OK [20:43:20]MH_I2C_Read... [20:43:20]Read from MH i2c: 01 [20:43:20]MH_I2C_Read... [20:43:20]Read from MH i2c: 01 07 00 [20:43:20]MH_I2C_Read... [20:43:20]Read from MH i2c: 01 07 00 FE 0C 00 00 00 00 00 FF 0F 1F [20:43:20]RasterBufferAndPrint [20:43:20]line Счет N : (1)449436 [20:43:20]line ИНН: 02508201610067 [20:43:20]line Контрольно-Кассовый Чек [20:43:20]line ПРОДАЖА [20:43:20]line ТРК (МРК, ГНК) : 52 [20:43:20]line Товар: 2710124130 [20:43:20]line Аи-92-К-2 [20:43:20]line 4.490 * 66.90 [20:43:20]line = 300.38 [20:43:20]line НДС 12% НСП 1% [20:43:20]line > о реализуемом товаре [20:43:20]line ОКРУГЛЕНИЕ: -0.38 [20:43:20]line ИТОГО: 300.00 [20:43:20]line Внесено: 300.00 [20:43:20]line СДАЧА: 0.00 [20:43:20]line НСП 1% : 2.66 [20:43:20]line НДС 12% : 31.90 [20:43:20]line Наличными: 300.00 [20:43:20]line Безнал.: 0.00 [20:43:20]line Место: АЗС № 171 "Партнер Нефть" [20:43:20]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [20:43:20]line СНО: Общий режим [20:43:20]line Чек 440 26.10.2024 20:43 [20:43:20]line Смена: 543 ФФД: 1.0 [20:43:20]line ЗНМ: 0300000109 [20:43:20]line РНМ: 0000000000091777 [20:43:20]line Версия ККМ: 001 [20:43:20]line ФМ: 0000000000871756 [20:43:20]line ФД: 201678 [20:43:20]line ФПД: 209024701418859 [20:43:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T204319&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201678&fm=209024701418859&tin=02508201610067®Number=0000000000091777&sum=30000 [20:43:20]written 0, free lines is 4095 [20:43:20]OFD Sender: Processing packet 201678 [packets to send 112, broken 111] [20:43:20]ProducePacketName [20:43:20]name=ofd_packets/00201678 [20:43:20]OFD Sender: To server: pG, [20:43:20]CommunicateWithHost lk.salyk.kg:30040 [20:43:20]ConnectInit lk.salyk.kg [20:43:20]Connected sock=11 [20:43:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8D 11 07 01 66 B5 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 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 67 54 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CE 13 03 00 35 04 06 00 BE 1B 5B 13 CD 6B 03 0C 05 EF 3A B0 A4 33 [20:43:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 36 77 47 00 E6 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CE 13 03 00 F4 03 04 00 0F 00 1D 67 B6 04 01 00 00 BC B5 AB B1 A1 46 1C 67 [20:43:21]CommunicateWithHost err = 0 [20:43:21]CheckOFDResponse [20:43:21]1017 (14) - 77093643461234 [20:43:21]1041 (16) - 0000000000871756 [20:43:21]1040 (4) - 201678 [20:43:21]1012 (4) - 26.10.2024 14:43 [20:43:21]1206 (1) - 0 [20:43:21]OFD Sender: Remove packet 201678 [20:43:21]ProducePacketName [20:43:21]name=ofd_packets/00201678 [20:43:21]NVStorageDeleteData [20:43:21]Write to MH i2c: 01 00 00 29 0D 36 [20:43:21]Write i2c OK [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: 01 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: 01 07 00 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: 01 07 00 29 0D 00 00 00 00 00 9D 0C E6 [20:43:21]RasterBufferAndPrint [20:43:21]line [20:43:21]line [20:43:21]line [20:43:21]line [20:43:21]line [20:43:21]written 0, free lines is 3233 [20:43:21]MH_Cut [20:43:21]Write to MH i2c: D1 01 00 30 0D 01 0F [20:43:21]Write i2c OK [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: D1 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: D1 01 00 [20:43:21]MH_I2C_Read... [20:43:21]Read from MH i2c: D1 01 00 30 0D 00 0E [20:43:21]Write to MH i2c: 01 00 00 31 0D 3E [20:43:21]Write i2c OK [20:43:21]MH_I2C_Read... [20:43:21]OFD Sender: No OFD packet to send [20:43:22]*** Cut start [20:43:22]*** Purtial cut [20:43:22]*** Stage 1: CUTSNS_PIN = 1 [20:43:22]Read from MH i2c: 01 [20:43:22]MH_I2C_Read... [20:43:22]*** Stop cut motor [20:43:22]*** Cut end [20:43:22]Read from MH i2c: 01 07 00 [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: 01 07 00 31 0D 00 00 00 00 00 FF 0F 53 [20:43:22]process_action close_receipt done [20:43:22]requested_data is exist [20:43:22]produce_requested_data [20:43:22]requested_item fm.sn is exist - process it [20:43:22]wFMCommunicate request_size=4 [20:43:22]MH_SAM_APDU [20:43:22]CAPDU: 80 11 00 00 [20:43:22]Write to MH i2c: E2 08 00 32 0D 80 11 00 00 00 00 00 00 B9 [20:43:22]Write i2c OK [20:43:22]MH_I2C_Read... [20:43:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:22]Read from MH i2c: E2 [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: E2 17 00 [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: E2 17 00 32 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 0E [20:43:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:43:22]wFMCommunicate OK [20:43:22]requested_item fd.num is exist - process it [20:43:22]SAM_PROTO_GetFieldsCounters [20:43:22]wFMCommunicate request_size=4 [20:43:22]MH_SAM_APDU [20:43:22]CAPDU: 80 13 00 00 [20:43:22]Write to MH i2c: E2 08 00 33 0D 80 13 00 00 00 00 00 00 BC [20:43:22]Write i2c OK [20:43:22]MH_I2C_Read... [20:43:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:43:22]Read from MH i2c: E2 [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: E2 62 00 [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: E2 62 00 33 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CE 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B8 01 00 00 5E 04 04 00 B8 01 00 00 57 04 04 00 B9 01 00 00 19 04 04 00 00 00 00 00 90 00 15 [20:43:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CE 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B8 01 00 00 5E 04 04 00 B8 01 00 00 57 04 04 00 B9 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:43:22]wFMCommunicate OK [20:43:22]SAM_PROTO_GetFieldsCounters done [20:43:22]requested_item shift.num is exist - process it [20:43:22]requested_item shift.opened is exist - process it [20:43:22]req_shift_opened [20:43:22]FM_GetShiftState [20:43:22]SAM_PROTO_GetShiftState [20:43:22]wFMCommunicate request_size=4 [20:43:22]MH_SAM_APDU [20:43:22]CAPDU: 80 13 01 00 [20:43:22]Write to MH i2c: E2 08 00 34 0D 80 13 01 00 00 00 00 00 BE [20:43:22]Write i2c OK [20:43:22]MH_I2C_Read... [20:43:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:22]Read from MH i2c: E2 [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: E2 0E 00 [20:43:22]MH_I2C_Read... [20:43:22]Read from MH i2c: E2 0E 00 34 0D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 CD [20:43:22]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [20:43:22]wFMCommunicate OK [20:43:22]SAM_PROTO_GetShiftState done [20:43:22]FM_GetShiftState done [20:43:22]req_shift_opened done [20:43:22]requested_item shift.open_date is exist - process it [20:43:22]req_shift_open_date [20:43:22]req_shift_open_date done [20:43:22]produce_requested_data done [20:43:22]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201678,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [20:43:22]process_action_free close_receipt [20:43:22]json_value_free [20:43:22]json_value_free done [20:43:22]process_json_proto returns [20:43:22]Send response to host [20:43:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201678,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [20:43:22]free response buf [20:43:22]execute_script done [20:43:22]execute_script returns [20:43:22]free content buf [20:43:22]Sock 9.Close socket [20:43:22]Sock 9.Thread stoped [20:43:26]OFD Sender: No OFD packet to send [20:43:31]OFD Sender: No OFD packet to send [20:43:36]OFD Sender: No OFD packet to send [20:43:41]OFD Sender: No OFD packet to send [20:43:46]OFD Sender: No OFD packet to send [20:43:51]OFD Sender: No OFD packet to send [20:43:56]OFD Sender: No OFD packet to send [20:44:01]OFD Sender: No OFD packet to send [20:44:06]OFD Sender: No OFD packet to send [20:44:11]OFD Sender: No OFD packet to send [20:44:16]OFD Sender: No OFD packet to send [20:44:21]OFD Sender: No OFD packet to send [20:44:26]OFD Sender: No OFD packet to send [20:44:31]OFD Sender: No OFD packet to send [20:44:36]OFD Sender: No OFD packet to send [20:44:41]OFD Sender: No OFD packet to send [20:44:46]OFD Sender: No OFD packet to send [20:44:51]OFD Sender: No OFD packet to send [20:44:56]OFD Sender: No OFD packet to send [20:45:01]OFD Sender: No OFD packet to send [20:45:06]OFD Sender: No OFD packet to send [20:45:11]OFD Sender: No OFD packet to send [20:45:16]OFD Sender: No OFD packet to send [20:45:21]OFD Sender: No OFD packet to send [20:45:26]OFD Sender: No OFD packet to send [20:45:31]OFD Sender: No OFD packet to send [20:45:36]OFD Sender: No OFD packet to send [20:45:41]OFD Sender: No OFD packet to send [20:45:46]OFD Sender: No OFD packet to send [20:45:51]OFD Sender: No OFD packet to send [20:45:56]OFD Sender: No OFD packet to send [20:46:01]OFD Sender: No OFD packet to send [20:46:06]OFD Sender: No OFD packet to send [20:46:11]OFD Sender: No OFD packet to send [20:46:16]OFD Sender: No OFD packet to send [20:46:21]OFD Sender: No OFD packet to send [20:46:26]OFD Sender: No OFD packet to send [20:46:31]OFD Sender: No OFD packet to send [20:46:36]OFD Sender: No OFD packet to send [20:46:41]OFD Sender: No OFD packet to send [20:46:46]OFD Sender: No OFD packet to send [20:46:51]OFD Sender: No OFD packet to send [20:46:54]accept exits with 7 [20:46:54]New connection [20:46:54]New thread 3066465636 created [20:46:54]Thread 3066608996 joined [20:46:54]Waiting for new connection... [20:46:54] Sock 7.Parse request [20:46:54]Sock 7.Check first char [20:46:54]Sock 7.First char is OK [20:46:54]request: POST /json_proto HTTP/1.0 [20:46:54]Method: POST [20:46:54]URL: /json_proto [20:46:54]Method is POST - this is cgi request [20:46:54]url: /json_proto [20:46:54]query_string will be loaded in cgi processing [20:46:54]execute_cgi json_proto POST (null) [20:46:54]execute_cgi path=json_proto method=POST [20:46:54]POST find Content-Length [20:46:54]Host: 172.17.63.195:8080 [20:46:54]Content-Length: 677 [20:46:54]Content-Type: application/json [20:46:54] [20:46:54]POST finish read [20:46:54]Found Content-Length = 677 [20:46:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [20:46:54]execute_script... [20:46: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)449437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [20:46:54]POST & json_proto [20:46:54]process_json_proto [20:46:54]json parsed OK: [20:46:54]protocol is kg_v1.0 [20:46:54]action value=close_receipt [20:46:54]process_action close_receipt [20:46:54]cmd_close_receipt [20:46:54]MH_GetDate [20:46:54]Write to MH i2c: F0 00 00 35 0D 31 [20:46:54]Write i2c OK [20:46:54]MH_I2C_Read... [20:46:54]Read from MH i2c: F0 [20:46:54]MH_I2C_Read... [20:46:54]Read from MH i2c: F0 09 00 [20:46:54]MH_I2C_Read... [20:46:54]Read from MH i2c: F0 09 00 35 0D 00 3E 55 1D 67 68 46 19 67 7F [20:46:54]GetLastDocTimeStamp 1729975399 [20:46:54]current date 1729975614 [20:46:54]FM_GetShiftState [20:46:54]SAM_PROTO_GetShiftState [20:46:54]wFMCommunicate request_size=4 [20:46:54]MH_SAM_APDU [20:46:54]CAPDU: 80 13 01 00 [20:46:54]Write to MH i2c: E2 08 00 36 0D 80 13 01 00 00 00 00 00 C0 [20:46:54]Write i2c OK [20:46:54]MH_I2C_Read... [20:46:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:54]Read from MH i2c: E2 [20:46:54]MH_I2C_Read... [20:46:54]Read from MH i2c: E2 0E 00 [20:46:54]MH_I2C_Read... [20:46:54]Read from MH i2c: E2 0E 00 36 0D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 CF [20:46:54]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [20:46:54]wFMCommunicate OK [20:46:54]SAM_PROTO_GetShiftState done [20:46:54]FM_GetShiftState done [20:46:54]opened in 1729900879 [20:46:54]opened+sec_in_day 1729987279 [20:46:54]quantity*price = 50041 [20:46:54]sum+1 = 50042 [20:46:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 441 26.10.2024 20:46 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201679 ФПД: 35288289849556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T204654&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201679&fm=35288289849556&tin=02508201610067®Number=0000000000091777&sum=50000 [20:46:55]StoreToDocumentArchive [20:46:55]shift 543 fd 201679 [20:46:55]save to /storage/0543/doc_00201679 [20:46:55]save last doc name /storage/0543/doc_00201679 to /storage/kkm_last_doc_name [20:46:55]save OK [20:46:55]Clear old archive folders... [20:46:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:46:55]tlvbuf is 010456A0 [20:46:55]SAM_PROTO_ClearQueue [20:46:55]wFMCommunicate request_size=4 [20:46:55]MH_SAM_APDU [20:46:55]CAPDU: 80 09 00 00 [20:46:55]Write to MH i2c: E2 08 00 43 0D 80 09 00 00 00 00 00 00 C2 [20:46:55]Write i2c OK [20:46:55]MH_I2C_Read... [20:46:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:46:55]Read from MH i2c: E2 [20:46:55]MH_I2C_Read... [20:46:55]Read from MH i2c: E2 03 00 [20:46:55]MH_I2C_Read... [20:46:55]Read from MH i2c: E2 03 00 43 0D 00 90 00 C4 [20:46:55]RAPDU: 90 00 [20:46:55]wFMCommunicate OK [20:46:55]SAM_PROTO_ClearQueue done [20:46:55]KKMCreateOFDPacket [20:46:55]OFDProtocolAddRootSTLVToBuf [20:46:55]FM_MakeSignedData [20:46:55]FM_MakeSignedData [20:46:55]SAM_PROTO_SignData [20:46:55]wFMCommunicate request_size=4 [20:46:55]MH_SAM_APDU [20:46:55]CAPDU: 80 0D 01 02 [20:46:55]Write to MH i2c: E2 08 00 44 0D 80 0D 01 02 00 00 00 00 CA [20:46:55]Write i2c OK [20:46:55]MH_I2C_Read... [20:46:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:46:55]Read from MH i2c: E2 [20:46:55]MH_I2C_Read... [20:46:55]Read from MH i2c: E2 03 00 [20:46:55]MH_I2C_Read... [20:46:55]Read from MH i2c: E2 03 00 44 0D 00 90 00 C5 [20:46:55]RAPDU: 90 00 [20:46:55]wFMCommunicate OK [20:46:55]wFMCommunicate request_size=255 [20:46:55]MH_SAM_APDU [20:46:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 B9 01 00 00 F4 03 04 00 3E 55 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CF 13 03 00 35 04 06 00 20 [20:46:55]Write to MH i2c: E2 02 01 45 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 32 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 B9 01 00 00 F4 03 04 00 3E 55 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CF 13 03 00 35 04 06 00 20 00 00 55 [20:46:55]Write i2c OK [20:46:55]MH_I2C_Read... [20:46:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:55]Read from MH i2c: E2 [20:46:55]MH_I2C_Read... [20:46:55]Read from MH i2c: E2 03 00 [20:46:55]MH_I2C_Read... [20:46:55]Read from MH i2c: E2 03 00 45 0D 00 90 00 C6 [20:46:55]RAPDU: 90 00 [20:46:55]wFMCommunicate OK [20:46:55]wFMCommunicate request_size=10 [20:46:55]MH_SAM_APDU [20:46:55]CAPDU: 80 0D 02 02 05 18 31 FB 30 D4 [20:46:55]Write to MH i2c: E2 0D 00 46 0D 80 0D 02 02 05 00 18 31 FB 30 D4 00 00 1F [20:46:55]Write i2c OK [20:46:55]MH_I2C_Read... [20:46:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:55]Read from MH i2c: E2 [20:46:55]MH_I2C_Read... [20:46:55]Read from MH i2c: E2 03 00 [20:46:55]MH_I2C_Read... [20:46:55]Read from MH i2c: E2 03 00 46 0D 00 90 00 C7 [20:46:55]RAPDU: 90 00 [20:46:55]wFMCommunicate OK [20:46:55]wFMCommunicate request_size=4 [20:46:55]MH_SAM_APDU [20:46:55]CAPDU: 80 0D 03 02 [20:46:55]Write to MH i2c: E2 08 00 47 0D 80 0D 03 02 00 00 00 00 CF [20:46:55]Write i2c OK [20:46:55]MH_I2C_Read... [20:46:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:46:55]Read from MH i2c: E2 [20:46:55]MH_I2C_Read... [20:46:55]Read from MH i2c: E2 0B 00 [20:46:55]MH_I2C_Read... [20:46:55]Read from MH i2c: E2 0B 00 47 0D 00 BE 39 86 13 B2 9B 97 38 90 00 7C [20:46:55]RAPDU: BE 39 86 13 B2 9B 97 38 90 00 [20:46:55]wFMCommunicate OK [20:46:55]SAM_PROTO_SignData done [20:46:55]FM_MakeSignedData done [20:46:55]CreateOFDProtocolMessage [20:46:55]wFMCommunicate request_size=4 [20:46:55]MH_SAM_APDU [20:46:55]CAPDU: 80 11 00 00 [20:46:55]Write to MH i2c: E2 08 00 48 0D 80 11 00 00 00 00 00 00 CF [20:46:55]Write i2c OK [20:46:55]MH_I2C_Read... [20:46:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:55]Read from MH i2c: E2 [20:46:55]MH_I2C_Read... [20:46:55]Read from MH i2c: E2 17 00 [20:46:55]MH_I2C_Read... [20:46:55]Read from MH i2c: E2 17 00 48 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 24 [20:46:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:46:55]wFMCommunicate OK [20:46:55]CreateOFDProtocolMessage done [20:46:55]OFDSenderStorePacket 201679 [20:46:55]StoreOFDPacket docnum=201679 [20:46:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 41 8D 07 01 96 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 32 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 B9 01 00 00 F4 03 04 00 3E 55 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CF 13 03 00 35 04 06 00 20 18 31 FB 30 D4 BE 39 86 13 B2 9B 97 38 [20:46:55]CheckFolder [20:46:55]dirname=/storage/ofd_packets [20:46:55]CheckFolder done [20:46:55]ProducePacketName [20:46:55]name=ofd_packets/00201679 [20:46:55]NVStorageSaveData ofd_packets/00201679 [20:46:55]File name is /storage/ofd_packets/00201679 [20:46:55]Write 301 bytes [20:46:55]NVStorageSaveData done [20:46:55]OFDSenderStorePacket done [20:46:55]KKMCreateOFDPacket done [20:46:55]NVStorageSaveData kkm_last_timestamp [20:46:55]File name is /storage/kkm_last_timestamp [20:46:55]Write 4 bytes [20:46:55]NVStorageSaveData done [20:46:55]ExternCall_PrintAddStr [20:46:55]wPrintStart [20:46:55]Write to MH i2c: 01 00 00 49 0D 56 [20:46:55]Write i2c OK [20:46:55]MH_I2C_Read... [20:46:55]Read from MH i2c: 01 [20:46:55]MH_I2C_Read... [20:46:55]Read from MH i2c: 01 07 00 [20:46:55]MH_I2C_Read... [20:46:55]Read from MH i2c: 01 07 00 49 0D 00 00 00 00 00 FF 0F 6B [20:46:55]RasterBufferAndPrint [20:46:55]line Счет N : (1)449437 [20:46:55]line ИНН: 02508201610067 [20:46:55]line Контрольно-Кассовый Чек [20:46:55]line ПРОДАЖА [20:46:55]line ТРК (МРК, ГНК) : 41 [20:46:55]line Товар: 2710124130 [20:46:55]line Аи-92-К-2 [20:46:55]line 7.480 * 66.90 [20:46:55]line = 500.41 [20:46:55]line НДС 12% НСП 1% [20:46:55]line > о реализуемом товаре [20:46:55]line ОКРУГЛЕНИЕ: -0.41 [20:46:55]line ИТОГО: 500.00 [20:46:55]line Внесено: 500.00 [20:46:55]line СДАЧА: 0.00 [20:46:55]line НСП 1% : 4.43 [20:46:55]line НДС 12% : 53.14 [20:46:55]line Наличными: 500.00 [20:46:55]line Безнал.: 0.00 [20:46:55]line Место: АЗС № 171 "Партнер Нефть" [20:46:55]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [20:46:55]line СНО: Общий режим [20:46:55]line Чек 441 26.10.2024 20:46 [20:46:55]line Смена: 543 ФФД: 1.0 [20:46:55]line ЗНМ: 0300000109 [20:46:55]line РНМ: 0000000000091777 [20:46:55]line Версия ККМ: 001 [20:46:55]line ФМ: 0000000000871756 [20:46:55]line ФД: 201679 [20:46:55]line ФПД: 35288289849556 [20:46:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T204654&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201679&fm=35288289849556&tin=02508201610067®Number=0000000000091777&sum=50000 [20:46:56]OFD Sender: Processing packet 201679 [packets to send 112, broken 111] [20:46:56]ProducePacketName [20:46:56]name=ofd_packets/00201679 [20:46:56]OFD Sender: To server: pG, [20:46:56]CommunicateWithHost lk.salyk.kg:30040 [20:46:56]ConnectInit lk.salyk.kg [20:46:56]written 0, free lines is 4095 [20:46:56]Connected sock=10 [20:46:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 41 8D 07 01 96 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 32 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 B9 01 00 00 F4 03 04 00 3E 55 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CF 13 03 00 35 04 06 00 20 18 31 FB 30 D4 BE 39 86 13 B2 9B 97 38 [20:46:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 8F 73 47 00 C6 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 CF 13 03 00 F4 03 04 00 E6 00 1D 67 B6 04 01 00 00 F7 00 11 51 AC F6 C6 FD [20:46:56]CommunicateWithHost err = 0 [20:46:56]CheckOFDResponse [20:46:56]1017 (14) - 77093643461234 [20:46:56]1041 (16) - 0000000000871756 [20:46:56]1040 (4) - 201679 [20:46:56]1012 (4) - 26.10.2024 14:47 [20:46:56]1206 (1) - 0 [20:46:56]OFD Sender: Remove packet 201679 [20:46:56]ProducePacketName [20:46:56]name=ofd_packets/00201679 [20:46:56]NVStorageDeleteData [20:46:56]Write to MH i2c: 01 00 00 74 0D 81 [20:46:56]Write i2c OK [20:46:56]MH_I2C_Read... [20:46:56]Read from MH i2c: 01 [20:46:56]MH_I2C_Read... [20:46:56]Read from MH i2c: 01 07 00 [20:46:56]MH_I2C_Read... [20:46:56]Read from MH i2c: 01 07 00 74 0D 00 00 00 00 00 A1 0C 35 [20:46:56]RasterBufferAndPrint [20:46:56]line [20:46:56]line [20:46:56]line [20:46:56]line [20:46:56]line [20:46:56]written 0, free lines is 3237 [20:46:56]MH_Cut [20:46:56]Write to MH i2c: D1 01 00 7B 0D 01 5A [20:46:56]Write i2c OK [20:46:56]MH_I2C_Read... [20:46:56]Read from MH i2c: D1 [20:46:56]MH_I2C_Read... [20:46:56]Read from MH i2c: D1 01 00 [20:46:56]MH_I2C_Read... [20:46:56]Read from MH i2c: D1 01 00 7B 0D 00 59 [20:46:56]Write to MH i2c: 01 00 00 7C 0D 89 [20:46:56]Write i2c OK [20:46:56]MH_I2C_Read... [20:46:56]OFD Sender: No OFD packet to send [20:46:57]*** Cut start [20:46:57]*** Purtial cut [20:46:57]*** Stage 1: CUTSNS_PIN = 1 [20:46:57]Read from MH i2c: 01 [20:46:57]MH_I2C_Read... [20:46:57]*** Stop cut motor [20:46:57]*** Cut end [20:46:57]Read from MH i2c: 01 07 00 [20:46:57]MH_I2C_Read... [20:46:57]Read from MH i2c: 01 07 00 7C 0D 00 00 00 00 00 FF 0F 9E [20:46:57]process_action close_receipt done [20:46:57]requested_data is exist [20:46:57]produce_requested_data [20:46:57]requested_item fm.sn is exist - process it [20:46:57]wFMCommunicate request_size=4 [20:46:57]MH_SAM_APDU [20:46:57]CAPDU: 80 11 00 00 [20:46:57]Write to MH i2c: E2 08 00 7D 0D 80 11 00 00 00 00 00 00 04 [20:46:57]Write i2c OK [20:46:57]MH_I2C_Read... [20:46:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:57]Read from MH i2c: E2 [20:46:57]MH_I2C_Read... [20:46:57]Read from MH i2c: E2 17 00 [20:46:57]MH_I2C_Read... [20:46:57]Read from MH i2c: E2 17 00 7D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 59 [20:46:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:46:57]wFMCommunicate OK [20:46:57]requested_item fd.num is exist - process it [20:46:57]SAM_PROTO_GetFieldsCounters [20:46:57]wFMCommunicate request_size=4 [20:46:57]MH_SAM_APDU [20:46:57]CAPDU: 80 13 00 00 [20:46:57]Write to MH i2c: E2 08 00 7E 0D 80 13 00 00 00 00 00 00 07 [20:46:57]Write i2c OK [20:46:57]MH_I2C_Read... [20:46:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:46:57]Read from MH i2c: E2 [20:46:57]MH_I2C_Read... [20:46:57]Read from MH i2c: E2 62 00 [20:46:57]MH_I2C_Read... [20:46:57]Read from MH i2c: E2 62 00 7E 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CF 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B9 01 00 00 5E 04 04 00 B9 01 00 00 57 04 04 00 BA 01 00 00 19 04 04 00 00 00 00 00 90 00 64 [20:46:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 CF 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B9 01 00 00 5E 04 04 00 B9 01 00 00 57 04 04 00 BA 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:46:57]wFMCommunicate OK [20:46:57]SAM_PROTO_GetFieldsCounters done [20:46:57]requested_item shift.num is exist - process it [20:46:57]requested_item shift.opened is exist - process it [20:46:57]req_shift_opened [20:46:57]FM_GetShiftState [20:46:57]SAM_PROTO_GetShiftState [20:46:57]wFMCommunicate request_size=4 [20:46:57]MH_SAM_APDU [20:46:57]CAPDU: 80 13 01 00 [20:46:57]Write to MH i2c: E2 08 00 7F 0D 80 13 01 00 00 00 00 00 09 [20:46:57]Write i2c OK [20:46:57]MH_I2C_Read... [20:46:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:57]Read from MH i2c: E2 [20:46:57]MH_I2C_Read... [20:46:57]Read from MH i2c: E2 0E 00 [20:46:57]MH_I2C_Read... [20:46:57]Read from MH i2c: E2 0E 00 7F 0D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 18 [20:46:57]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [20:46:57]wFMCommunicate OK [20:46:57]SAM_PROTO_GetShiftState done [20:46:57]FM_GetShiftState done [20:46:57]req_shift_opened done [20:46:57]requested_item shift.open_date is exist - process it [20:46:57]req_shift_open_date [20:46:57]req_shift_open_date done [20:46:57]produce_requested_data done [20:46:57]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201679,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [20:46:57]process_action_free close_receipt [20:46:57]json_value_free [20:46:57]json_value_free done [20:46:57]process_json_proto returns [20:46:57]Send response to host [20:46:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201679,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [20:46:57]free response buf [20:46:57]execute_script done [20:46:57]execute_script returns [20:46:57]free content buf [20:46:57]Sock 7.Close socket [20:46:57]Sock 7.Thread stoped [20:47:01]OFD Sender: No OFD packet to send [20:47:06]OFD Sender: No OFD packet to send [20:47:11]OFD Sender: No OFD packet to send [20:47:16]OFD Sender: No OFD packet to send [20:47:21]OFD Sender: No OFD packet to send [20:47:26]OFD Sender: No OFD packet to send [20:47:31]OFD Sender: No OFD packet to send [20:47:36]OFD Sender: No OFD packet to send [20:47:42]OFD Sender: No OFD packet to send [20:47:47]OFD Sender: No OFD packet to send [20:47:52]OFD Sender: No OFD packet to send [20:47:57]OFD Sender: No OFD packet to send [20:48:02]OFD Sender: No OFD packet to send [20:48:07]OFD Sender: No OFD packet to send [20:48:12]OFD Sender: No OFD packet to send [20:48:17]OFD Sender: No OFD packet to send [20:48:22]OFD Sender: No OFD packet to send [20:48:27]OFD Sender: No OFD packet to send [20:48:32]OFD Sender: No OFD packet to send [20:48:37]OFD Sender: No OFD packet to send [20:48:42]OFD Sender: No OFD packet to send [20:48:47]OFD Sender: No OFD packet to send [20:48:51]accept exits with 9 [20:48:51]New connection [20:48:51]New thread 3066608996 created [20:48:51]Thread 3066465636 joined [20:48:51]Waiting for new connection... [20:48:51] Sock 9.Parse request [20:48:51]Sock 9.Check first char [20:48:51]Sock 9.First char is OK [20:48:51]request: POST /json_proto HTTP/1.0 [20:48:51]Method: POST [20:48:51]URL: /json_proto [20:48:51]Method is POST - this is cgi request [20:48:51]url: /json_proto [20:48:51]query_string will be loaded in cgi processing [20:48:51]execute_cgi json_proto POST (null) [20:48:51]execute_cgi path=json_proto method=POST [20:48:51]POST find Content-Length [20:48:51]Host: 172.17.63.195:8080 [20:48:51]Content-Length: 677 [20:48:51]Content-Type: application/json [20:48:51] [20:48:51]POST finish read [20:48:51]Found Content-Length = 677 [20:48:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [20:48:51]execute_script... [20:48: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)449438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [20:48:51]POST & json_proto [20:48:51]process_json_proto [20:48:51]json parsed OK: [20:48:51]protocol is kg_v1.0 [20:48:51]action value=close_receipt [20:48:51]process_action close_receipt [20:48:51]cmd_close_receipt [20:48:51]MH_GetDate [20:48:51]Write to MH i2c: F0 00 00 80 0D 7C [20:48:51]Write i2c OK [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: F0 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: F0 09 00 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: F0 09 00 80 0D 00 B4 55 1D 67 68 46 19 67 40 [20:48:51]GetLastDocTimeStamp 1729975614 [20:48:51]current date 1729975732 [20:48:51]FM_GetShiftState [20:48:51]SAM_PROTO_GetShiftState [20:48:51]wFMCommunicate request_size=4 [20:48:51]MH_SAM_APDU [20:48:51]CAPDU: 80 13 01 00 [20:48:51]Write to MH i2c: E2 08 00 81 0D 80 13 01 00 00 00 00 00 0B [20:48:51]Write i2c OK [20:48:51]MH_I2C_Read... [20:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:51]Read from MH i2c: E2 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: E2 0E 00 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: E2 0E 00 81 0D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 1A [20:48:51]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [20:48:51]wFMCommunicate OK [20:48:51]SAM_PROTO_GetShiftState done [20:48:51]FM_GetShiftState done [20:48:51]opened in 1729900879 [20:48:51]opened+sec_in_day 1729987279 [20:48:51]quantity*price = 20003 [20:48:51]sum+1 = 20004 [20:48:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 442 26.10.2024 20:48 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201680 ФПД: 61878117373743 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T204852&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201680&fm=61878117373743&tin=02508201610067®Number=0000000000091777&sum=20000 [20:48:52]StoreToDocumentArchive [20:48:52]shift 543 fd 201680 [20:48:52]save to /storage/0543/doc_00201680 [20:48:52]save last doc name /storage/0543/doc_00201680 to /storage/kkm_last_doc_name [20:48:52]save OK [20:48:52]Clear old archive folders... [20:48:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:48:52]tlvbuf is 01046840 [20:48:52]SAM_PROTO_ClearQueue [20:48:52]wFMCommunicate request_size=4 [20:48:52]MH_SAM_APDU [20:48:52]CAPDU: 80 09 00 00 [20:48:52]Write to MH i2c: E2 08 00 8E 0D 80 09 00 00 00 00 00 00 0D [20:48:52]Write i2c OK [20:48:52]MH_I2C_Read... [20:48:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:48:52]Read from MH i2c: E2 [20:48:52]MH_I2C_Read... [20:48:52]Read from MH i2c: E2 03 00 [20:48:52]MH_I2C_Read... [20:48:52]Read from MH i2c: E2 03 00 8E 0D 00 90 00 0F [20:48:52]RAPDU: 90 00 [20:48:52]wFMCommunicate OK [20:48:52]SAM_PROTO_ClearQueue done [20:48:52]KKMCreateOFDPacket [20:48:52]OFDProtocolAddRootSTLVToBuf [20:48:52]FM_MakeSignedData [20:48:52]FM_MakeSignedData [20:48:52]SAM_PROTO_SignData [20:48:52]wFMCommunicate request_size=4 [20:48:52]MH_SAM_APDU [20:48:52]CAPDU: 80 0D 01 02 [20:48:52]Write to MH i2c: E2 08 00 8F 0D 80 0D 01 02 00 00 00 00 15 [20:48:52]Write i2c OK [20:48:52]MH_I2C_Read... [20:48:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:48:52]Read from MH i2c: E2 [20:48:52]MH_I2C_Read... [20:48:52]Read from MH i2c: E2 03 00 [20:48:52]MH_I2C_Read... [20:48:52]Read from MH i2c: E2 03 00 8F 0D 00 90 00 10 [20:48:52]RAPDU: 90 00 [20:48:52]wFMCommunicate OK [20:48:52]wFMCommunicate request_size=255 [20:48:52]MH_SAM_APDU [20:48: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 32 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 BA 01 00 00 F4 03 04 00 B4 55 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D0 13 03 00 35 04 06 00 38 [20:48:52]Write to MH i2c: E2 02 01 90 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 32 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 BA 01 00 00 F4 03 04 00 B4 55 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D0 13 03 00 35 04 06 00 38 00 00 F2 [20:48:52]Write i2c OK [20:48:52]MH_I2C_Read... [20:48:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:52]Read from MH i2c: E2 [20:48:52]MH_I2C_Read... [20:48:52]Read from MH i2c: E2 03 00 [20:48:52]MH_I2C_Read... [20:48:52]Read from MH i2c: E2 03 00 90 0D 00 90 00 11 [20:48:52]RAPDU: 90 00 [20:48:52]wFMCommunicate OK [20:48:52]wFMCommunicate request_size=10 [20:48:52]MH_SAM_APDU [20:48:52]CAPDU: 80 0D 02 02 05 47 1F 34 97 2F [20:48:52]Write to MH i2c: E2 0D 00 91 0D 80 0D 02 02 05 00 47 1F 34 97 2F 00 00 82 [20:48:52]Write i2c OK [20:48:52]MH_I2C_Read... [20:48:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:53]Read from MH i2c: E2 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: E2 03 00 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: E2 03 00 91 0D 00 90 00 12 [20:48:53]RAPDU: 90 00 [20:48:53]wFMCommunicate OK [20:48:53]wFMCommunicate request_size=4 [20:48:53]MH_SAM_APDU [20:48:53]CAPDU: 80 0D 03 02 [20:48:53]Write to MH i2c: E2 08 00 92 0D 80 0D 03 02 00 00 00 00 1A [20:48:53]Write i2c OK [20:48:53]MH_I2C_Read... [20:48:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:48:53]Read from MH i2c: E2 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: E2 0B 00 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: E2 0B 00 92 0D 00 C2 A4 2D 9A 0E 85 99 DC 90 00 50 [20:48:53]RAPDU: C2 A4 2D 9A 0E 85 99 DC 90 00 [20:48:53]wFMCommunicate OK [20:48:53]SAM_PROTO_SignData done [20:48:53]FM_MakeSignedData done [20:48:53]CreateOFDProtocolMessage [20:48:53]wFMCommunicate request_size=4 [20:48:53]MH_SAM_APDU [20:48:53]CAPDU: 80 11 00 00 [20:48:53]Write to MH i2c: E2 08 00 93 0D 80 11 00 00 00 00 00 00 1A [20:48:53]Write i2c OK [20:48:53]MH_I2C_Read... [20:48:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:53]Read from MH i2c: E2 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: E2 17 00 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: E2 17 00 93 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6F [20:48:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:48:53]wFMCommunicate OK [20:48:53]CreateOFDProtocolMessage done [20:48:53]OFDSenderStorePacket 201680 [20:48:53]StoreOFDPacket docnum=201680 [20:48:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 04 38 07 01 4E E8 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 32 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 BA 01 00 00 F4 03 04 00 B4 55 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D0 13 03 00 35 04 06 00 38 47 1F 34 97 2F C2 A4 2D 9A 0E 85 99 DC [20:48:53]CheckFolder [20:48:53]dirname=/storage/ofd_packets [20:48:53]CheckFolder done [20:48:53]ProducePacketName [20:48:53]name=ofd_packets/00201680 [20:48:53]NVStorageSaveData ofd_packets/00201680 [20:48:53]File name is /storage/ofd_packets/00201680 [20:48:53]Write 301 bytes [20:48:53]NVStorageSaveData done [20:48:53]OFDSenderStorePacket done [20:48:53]KKMCreateOFDPacket done [20:48:53]NVStorageSaveData kkm_last_timestamp [20:48:53]File name is /storage/kkm_last_timestamp [20:48:53]Write 4 bytes [20:48:53]NVStorageSaveData done [20:48:53]ExternCall_PrintAddStr [20:48:53]wPrintStart [20:48:53]Write to MH i2c: 01 00 00 94 0D A1 [20:48:53]Write i2c OK [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: 01 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: 01 07 00 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: 01 07 00 94 0D 00 00 00 00 00 FF 0F B6 [20:48:53]RasterBufferAndPrint [20:48:53]line Счет N : (1)449438 [20:48:53]line ИНН: 02508201610067 [20:48:53]line Контрольно-Кассовый Чек [20:48:53]line ПРОДАЖА [20:48:53]line ТРК (МРК, ГНК) : 52 [20:48:53]line Товар: 2710124130 [20:48:53]line Аи-92-К-2 [20:48:53]line 2.990 * 66.90 [20:48:53]line = 200.03 [20:48:53]line НДС 12% НСП 1% [20:48:53]line > о реализуемом товаре [20:48:53]line ОКРУГЛЕНИЕ: -0.03 [20:48:53]line ИТОГО: 200.00 [20:48:53]line Внесено: 200.00 [20:48:53]line СДАЧА: 0.00 [20:48:53]line НСП 1% : 1.77 [20:48:53]line НДС 12% : 21.24 [20:48:53]line Наличными: 200.00 [20:48:53]line Безнал.: 0.00 [20:48:53]line Место: АЗС № 171 "Партнер Нефть" [20:48:53]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [20:48:53]line СНО: Общий режим [20:48:53]line Чек 442 26.10.2024 20:48 [20:48:53]line Смена: 543 ФФД: 1.0 [20:48:53]line ЗНМ: 0300000109 [20:48:53]line РНМ: 0000000000091777 [20:48:53]line Версия ККМ: 001 [20:48:53]line ФМ: 0000000000871756 [20:48:53]line ФД: 201680 [20:48:53]line ФПД: 61878117373743 [20:48:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T204852&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201680&fm=61878117373743&tin=02508201610067®Number=0000000000091777&sum=20000 [20:48:53]OFD Sender: Processing packet 201680 [packets to send 112, broken 111] [20:48:53]ProducePacketName [20:48:53]name=ofd_packets/00201680 [20:48:53]OFD Sender: To server: pG, [20:48:53]CommunicateWithHost lk.salyk.kg:30040 [20:48:53]ConnectInit lk.salyk.kg [20:48:53]written 0, free lines is 4095 [20:48:53]Connected sock=10 [20:48:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 04 38 07 01 4E E8 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 32 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 BA 01 00 00 F4 03 04 00 B4 55 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D0 13 03 00 35 04 06 00 38 47 1F 34 97 2F C2 A4 2D 9A 0E 85 99 DC [20:48:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 36 44 47 00 1B 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D0 13 03 00 F4 03 04 00 5C 01 1D 67 B6 04 01 00 00 02 60 AD 46 E6 CD 23 30 [20:48:53]CommunicateWithHost err = 0 [20:48:53]CheckOFDResponse [20:48:53]1017 (14) - 77093643461234 [20:48:53]1041 (16) - 0000000000871756 [20:48:53]1040 (4) - 201680 [20:48:53]1012 (4) - 26.10.2024 14:49 [20:48:53]1206 (1) - 0 [20:48:53]OFD Sender: Remove packet 201680 [20:48:53]ProducePacketName [20:48:53]name=ofd_packets/00201680 [20:48:53]NVStorageDeleteData [20:48:53]Write to MH i2c: 01 00 00 BF 0D CC [20:48:53]Write i2c OK [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: 01 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: 01 07 00 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: 01 07 00 BF 0D 00 00 00 00 00 9B 0C 7A [20:48:53]RasterBufferAndPrint [20:48:53]line [20:48:53]line [20:48:53]line [20:48:53]line [20:48:53]line [20:48:53]written 0, free lines is 3233 [20:48:53]MH_Cut [20:48:53]Write to MH i2c: D1 01 00 C6 0D 01 A5 [20:48:53]Write i2c OK [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: D1 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: D1 01 00 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: D1 01 00 C6 0D 00 A4 [20:48:53]Write to MH i2c: 01 00 00 C7 0D D4 [20:48:53]Write i2c OK [20:48:53]MH_I2C_Read... [20:48:54]OFD Sender: No OFD packet to send [20:48:54]*** Cut start [20:48:54]*** Purtial cut [20:48:54]*** Stage 1: CUTSNS_PIN = 1 [20:48:55]Read from MH i2c: 01 [20:48:55]MH_I2C_Read... [20:48:55]*** Stop cut motor [20:48:55]*** Cut end [20:48:55]Read from MH i2c: 01 07 00 [20:48:55]MH_I2C_Read... [20:48:55]Read from MH i2c: 01 07 00 C7 0D 00 00 00 00 00 FF 0F E9 [20:48:55]process_action close_receipt done [20:48:55]requested_data is exist [20:48:55]produce_requested_data [20:48:55]requested_item fm.sn is exist - process it [20:48:55]wFMCommunicate request_size=4 [20:48:55]MH_SAM_APDU [20:48:55]CAPDU: 80 11 00 00 [20:48:55]Write to MH i2c: E2 08 00 C8 0D 80 11 00 00 00 00 00 00 4F [20:48:55]Write i2c OK [20:48:55]MH_I2C_Read... [20:48:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:55]Read from MH i2c: E2 [20:48:55]MH_I2C_Read... [20:48:55]Read from MH i2c: E2 17 00 [20:48:55]MH_I2C_Read... [20:48:55]Read from MH i2c: E2 17 00 C8 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A4 [20:48:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:48:55]wFMCommunicate OK [20:48:55]requested_item fd.num is exist - process it [20:48:55]SAM_PROTO_GetFieldsCounters [20:48:55]wFMCommunicate request_size=4 [20:48:55]MH_SAM_APDU [20:48:55]CAPDU: 80 13 00 00 [20:48:55]Write to MH i2c: E2 08 00 C9 0D 80 13 00 00 00 00 00 00 52 [20:48:55]Write i2c OK [20:48:55]MH_I2C_Read... [20:48:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:48:55]Read from MH i2c: E2 [20:48:55]MH_I2C_Read... [20:48:55]Read from MH i2c: E2 62 00 [20:48:55]MH_I2C_Read... [20:48:55]Read from MH i2c: E2 62 00 C9 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D0 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BA 01 00 00 5E 04 04 00 BA 01 00 00 57 04 04 00 BB 01 00 00 19 04 04 00 00 00 00 00 90 00 B3 [20:48:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D0 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BA 01 00 00 5E 04 04 00 BA 01 00 00 57 04 04 00 BB 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:48:55]wFMCommunicate OK [20:48:55]SAM_PROTO_GetFieldsCounters done [20:48:55]requested_item shift.num is exist - process it [20:48:55]requested_item shift.opened is exist - process it [20:48:55]req_shift_opened [20:48:55]FM_GetShiftState [20:48:55]SAM_PROTO_GetShiftState [20:48:55]wFMCommunicate request_size=4 [20:48:55]MH_SAM_APDU [20:48:55]CAPDU: 80 13 01 00 [20:48:55]Write to MH i2c: E2 08 00 CA 0D 80 13 01 00 00 00 00 00 54 [20:48:55]Write i2c OK [20:48:55]MH_I2C_Read... [20:48:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:55]Read from MH i2c: E2 [20:48:55]MH_I2C_Read... [20:48:55]Read from MH i2c: E2 0E 00 [20:48:55]MH_I2C_Read... [20:48:55]Read from MH i2c: E2 0E 00 CA 0D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 63 [20:48:55]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [20:48:55]wFMCommunicate OK [20:48:55]SAM_PROTO_GetShiftState done [20:48:55]FM_GetShiftState done [20:48:55]req_shift_opened done [20:48:55]requested_item shift.open_date is exist - process it [20:48:55]req_shift_open_date [20:48:55]req_shift_open_date done [20:48:55]produce_requested_data done [20:48:55]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201680,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [20:48:55]process_action_free close_receipt [20:48:55]json_value_free [20:48:55]json_value_free done [20:48:55]process_json_proto returns [20:48:55]Send response to host [20:48:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201680,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [20:48:55]free response buf [20:48:55]execute_script done [20:48:55]execute_script returns [20:48:55]free content buf [20:48:55]Sock 9.Close socket [20:48:55]Sock 9.Thread stoped [20:48:59]OFD Sender: No OFD packet to send [20:49:04]OFD Sender: No OFD packet to send [20:49:09]OFD Sender: No OFD packet to send [20:49:14]OFD Sender: No OFD packet to send [20:49:19]OFD Sender: No OFD packet to send [20:49:24]OFD Sender: No OFD packet to send [20:49:27]accept exits with 7 [20:49:27]New connection [20:49:27]New thread 3066465636 created [20:49:27]Thread 3066608996 joined [20:49:27]Waiting for new connection... [20:49:27] Sock 7.Parse request [20:49:27]Sock 7.Check first char [20:49:27]Sock 7.First char is OK [20:49:27]request: POST /json_proto HTTP/1.0 [20:49:27]Method: POST [20:49:27]URL: /json_proto [20:49:27]Method is POST - this is cgi request [20:49:27]url: /json_proto [20:49:27]query_string will be loaded in cgi processing [20:49:27]execute_cgi json_proto POST (null) [20:49:27]execute_cgi path=json_proto method=POST [20:49:27]POST find Content-Length [20:49:27]Host: 172.17.63.195:8080 [20:49:27]Content-Length: 766 [20:49:27]Content-Type: application/json [20:49:27] [20:49:27]POST finish read [20:49:27]Found Content-Length = 766 [20:49:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "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: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:27]execute_script... [20:49:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "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: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:27]POST & json_proto [20:49:27]process_json_proto [20:49:27]json parsed OK: [20:49:27]protocol is kg_v1.0 [20:49:27]action value=close_receipt [20:49:27]process_action close_receipt [20:49:27]cmd_close_receipt [20:49:27]MH_GetDate [20:49:27]Write to MH i2c: F0 00 00 CB 0D C7 [20:49:27]Write i2c OK [20:49:27]MH_I2C_Read... [20:49:27]Read from MH i2c: F0 [20:49:27]MH_I2C_Read... [20:49:27]Read from MH i2c: F0 09 00 [20:49:27]MH_I2C_Read... [20:49:27]Read from MH i2c: F0 09 00 CB 0D 00 D8 55 1D 67 68 46 19 67 AF [20:49:27]GetLastDocTimeStamp 1729975732 [20:49:27]current date 1729975768 [20:49:27]FM_GetShiftState [20:49:27]SAM_PROTO_GetShiftState [20:49:27]wFMCommunicate request_size=4 [20:49:27]MH_SAM_APDU [20:49:27]CAPDU: 80 13 01 00 [20:49:27]Write to MH i2c: E2 08 00 CC 0D 80 13 01 00 00 00 00 00 56 [20:49:27]Write i2c OK [20:49:27]MH_I2C_Read... [20:49:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:27]Read from MH i2c: E2 [20:49:27]MH_I2C_Read... [20:49:27]Read from MH i2c: E2 0E 00 [20:49:27]MH_I2C_Read... [20:49:27]Read from MH i2c: E2 0E 00 CC 0D 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 65 [20:49:27]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [20:49:27]wFMCommunicate OK [20:49:27]SAM_PROTO_GetShiftState done [20:49:27]FM_GetShiftState done [20:49:27]opened in 1729900879 [20:49:27]opened+sec_in_day 1729987279 [20:49:27]quantity*price = 40006 [20:49:27]sum+1 = 40007 [20:49:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 443 26.10.2024 20:49 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201681 ФПД: 19405823835084 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T204928&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201681&fm=19405823835084&tin=02508201610067®Number=0000000000091777&sum=40006 [20:49:29]StoreToDocumentArchive [20:49:29]shift 543 fd 201681 [20:49:29]save to /storage/0543/doc_00201681 [20:49:29]save last doc name /storage/0543/doc_00201681 to /storage/kkm_last_doc_name [20:49:29]save OK [20:49:29]Clear old archive folders... [20:49:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:49:29]tlvbuf is 0105F810 [20:49:29]SAM_PROTO_ClearQueue [20:49:29]wFMCommunicate request_size=4 [20:49:29]MH_SAM_APDU [20:49:29]CAPDU: 80 09 00 00 [20:49:29]Write to MH i2c: E2 08 00 D9 0D 80 09 00 00 00 00 00 00 58 [20:49:29]Write i2c OK [20:49:29]MH_I2C_Read... [20:49:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:49:29]Read from MH i2c: E2 [20:49:29]MH_I2C_Read... [20:49:29]Read from MH i2c: E2 03 00 [20:49:29]MH_I2C_Read... [20:49:29]Read from MH i2c: E2 03 00 D9 0D 00 90 00 5A [20:49:29]RAPDU: 90 00 [20:49:29]wFMCommunicate OK [20:49:29]SAM_PROTO_ClearQueue done [20:49:29]KKMCreateOFDPacket [20:49:29]OFDProtocolAddRootSTLVToBuf [20:49:29]FM_MakeSignedData [20:49:29]FM_MakeSignedData [20:49:29]SAM_PROTO_SignData [20:49:29]wFMCommunicate request_size=4 [20:49:29]MH_SAM_APDU [20:49:29]CAPDU: 80 0D 01 02 [20:49:29]Write to MH i2c: E2 08 00 DA 0D 80 0D 01 02 00 00 00 00 60 [20:49:29]Write i2c OK [20:49:29]MH_I2C_Read... [20:49:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:49:29]Read from MH i2c: E2 [20:49:29]MH_I2C_Read... [20:49:29]Read from MH i2c: E2 03 00 [20:49:29]MH_I2C_Read... [20:49:29]Read from MH i2c: E2 03 00 DA 0D 00 90 00 5B [20:49:29]RAPDU: 90 00 [20:49:29]wFMCommunicate OK [20:49:29]wFMCommunicate request_size=255 [20:49:29]MH_SAM_APDU [20:49:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 46 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 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 D8 55 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D1 13 03 00 35 04 06 00 11 [20:49:29]Write to MH i2c: E2 02 01 DB 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 32 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 46 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 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 D8 55 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D1 13 03 00 35 04 06 00 11 00 00 55 [20:49:29]Write i2c OK [20:49:29]MH_I2C_Read... [20:49:29]OFD Sender: No OFD packet to send [20:49:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:29]Read from MH i2c: E2 [20:49:29]MH_I2C_Read... [20:49:29]Read from MH i2c: E2 03 00 [20:49:29]MH_I2C_Read... [20:49:29]Read from MH i2c: E2 03 00 DB 0D 00 90 00 5C [20:49:29]RAPDU: 90 00 [20:49:29]wFMCommunicate OK [20:49:29]wFMCommunicate request_size=10 [20:49:29]MH_SAM_APDU [20:49:29]CAPDU: 80 0D 02 02 05 A6 45 3C 7B CC [20:49:29]Write to MH i2c: E2 0D 00 DC 0D 80 0D 02 02 05 00 A6 45 3C 7B CC 00 00 DB [20:49:29]Write i2c OK [20:49:29]MH_I2C_Read... [20:49:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:29]Read from MH i2c: E2 [20:49:29]MH_I2C_Read... [20:49:29]Read from MH i2c: E2 03 00 [20:49:29]MH_I2C_Read... [20:49:29]Read from MH i2c: E2 03 00 DC 0D 00 90 00 5D [20:49:29]RAPDU: 90 00 [20:49:29]wFMCommunicate OK [20:49:29]wFMCommunicate request_size=4 [20:49:29]MH_SAM_APDU [20:49:29]CAPDU: 80 0D 03 02 [20:49:29]Write to MH i2c: E2 08 00 DD 0D 80 0D 03 02 00 00 00 00 65 [20:49:29]Write i2c OK [20:49:29]MH_I2C_Read... [20:49:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:49:29]Read from MH i2c: E2 [20:49:29]MH_I2C_Read... [20:49:29]Read from MH i2c: E2 0B 00 [20:49:29]MH_I2C_Read... [20:49:29]Read from MH i2c: E2 0B 00 DD 0D 00 F7 21 AE 12 04 2B 86 FD 90 00 F0 [20:49:29]RAPDU: F7 21 AE 12 04 2B 86 FD 90 00 [20:49:29]wFMCommunicate OK [20:49:29]SAM_PROTO_SignData done [20:49:29]FM_MakeSignedData done [20:49:29]CreateOFDProtocolMessage [20:49:29]wFMCommunicate request_size=4 [20:49:29]MH_SAM_APDU [20:49:29]CAPDU: 80 11 00 00 [20:49:29]Write to MH i2c: E2 08 00 DE 0D 80 11 00 00 00 00 00 00 65 [20:49:29]Write i2c OK [20:49:29]MH_I2C_Read... [20:49:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:29]Read from MH i2c: E2 [20:49:29]MH_I2C_Read... [20:49:29]Read from MH i2c: E2 17 00 [20:49:29]MH_I2C_Read... [20:49:29]Read from MH i2c: E2 17 00 DE 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BA [20:49:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:49:29]wFMCommunicate OK [20:49:29]CreateOFDProtocolMessage done [20:49:29]OFDSenderStorePacket 201681 [20:49:29]StoreOFDPacket docnum=201681 [20:49:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 9D 20 07 01 A6 09 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 32 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 46 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 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 D8 55 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D1 13 03 00 35 04 06 00 11 A6 45 3C 7B CC F7 21 AE 12 04 2B 86 FD [20:49:29]CheckFolder [20:49:29]dirname=/storage/ofd_packets [20:49:29]CheckFolder done [20:49:29]ProducePacketName [20:49:29]name=ofd_packets/00201681 [20:49:29]NVStorageSaveData ofd_packets/00201681 [20:49:29]File name is /storage/ofd_packets/00201681 [20:49:29]Write 301 bytes [20:49:29]NVStorageSaveData done [20:49:29]OFDSenderStorePacket done [20:49:29]KKMCreateOFDPacket done [20:49:29]NVStorageSaveData kkm_last_timestamp [20:49:29]File name is /storage/kkm_last_timestamp [20:49:29]Write 4 bytes [20:49:29]NVStorageSaveData done [20:49:29]ExternCall_PrintAddStr [20:49:29]wPrintStart [20:49:29]Write to MH i2c: 01 00 00 DF 0D EC [20:49:29]Write i2c OK [20:49:29]MH_I2C_Read... [20:49:29]Read from MH i2c: 01 [20:49:29]MH_I2C_Read... [20:49:29]Read from MH i2c: 01 07 00 [20:49:29]MH_I2C_Read... [20:49:29]Read from MH i2c: 01 07 00 DF 0D 00 00 00 00 00 FF 0F 01 [20:49:29]RasterBufferAndPrint [20:49:29]line Счет N : (1)449440 [20:49:29]line ИНН: 02508201610067 [20:49:29]line Контрольно-Кассовый Чек [20:49:29]line ПРОДАЖА [20:49:29]line ТРК (МРК, ГНК) : 31 [20:49:29]line Товар: 2710124130 [20:49:29]line Аи-92-К-2 [20:49:29]line 5.980 * 66.90 [20:49:29]line = 400.06 [20:49:29]line НДС 12% НСП 1% [20:49:29]line > о реализуемом товаре [20:49:29]line ИТОГО: 400.06 [20:49:29]line НСП 1% : 3.54 [20:49:29]line НДС 12% : 42.48 [20:49:29]line Наличными: 0.00 [20:49:29]line Безнал.: 400.06 [20:49:29]line Место: АЗС № 171 "Партнер Нефть" [20:49:29]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [20:49:29]line СНО: Общий режим [20:49:29]line Чек 443 26.10.2024 20:49 [20:49:29]line Смена: 543 ФФД: 1.0 [20:49:29]line ЗНМ: 0300000109 [20:49:29]line РНМ: 0000000000091777 [20:49:29]line Версия ККМ: 001 [20:49:29]line Платежная система: Mbank [20:49:29]line ФМ: 0000000000871756 [20:49:29]line ФД: 201681 [20:49:29]line ФПД: 19405823835084 [20:49:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T204928&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201681&fm=19405823835084&tin=02508201610067®Number=0000000000091777&sum=40006 [20:49:29]OFD Sender: Processing packet 201681 [packets to send 112, broken 111] [20:49:29]ProducePacketName [20:49:29]name=ofd_packets/00201681 [20:49:29]OFD Sender: To server: pG, [20:49:29]CommunicateWithHost lk.salyk.kg:30040 [20:49:29]ConnectInit lk.salyk.kg [20:49:30]written 0, free lines is 4095 [20:49:30]Connected sock=10 [20:49:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 9D 20 07 01 A6 09 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 32 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 46 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 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 D8 55 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D1 13 03 00 35 04 06 00 11 A6 45 3C 7B CC F7 21 AE 12 04 2B 86 FD [20:49:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 32 85 47 00 31 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D1 13 03 00 F4 03 04 00 80 01 1D 67 B6 04 01 00 00 A8 6D 00 73 2C B4 9B CB [20:49:30]CommunicateWithHost err = 0 [20:49:30]CheckOFDResponse [20:49:30]1017 (14) - 77093643461234 [20:49:30]1041 (16) - 0000000000871756 [20:49:30]1040 (4) - 201681 [20:49:30]1012 (4) - 26.10.2024 14:49 [20:49:30]1206 (1) - 0 [20:49:30]OFD Sender: Remove packet 201681 [20:49:30]ProducePacketName [20:49:30]name=ofd_packets/00201681 [20:49:30]NVStorageDeleteData [20:49:30]Write to MH i2c: 01 00 00 08 0E 16 [20:49:30]Write i2c OK [20:49:30]MH_I2C_Read... [20:49:30]Read from MH i2c: 01 [20:49:30]MH_I2C_Read... [20:49:30]Read from MH i2c: 01 07 00 [20:49:30]MH_I2C_Read... [20:49:30]Read from MH i2c: 01 07 00 08 0E 00 00 00 00 00 C5 0C EE [20:49:30]RasterBufferAndPrint [20:49:30]line [20:49:30]line [20:49:30]line [20:49:30]line [20:49:30]line [20:49:30]written 0, free lines is 3274 [20:49:30]MH_Cut [20:49:30]Write to MH i2c: D1 01 00 0F 0E 01 EF [20:49:30]Write i2c OK [20:49:30]MH_I2C_Read... [20:49:30]Read from MH i2c: D1 [20:49:30]MH_I2C_Read... [20:49:30]Read from MH i2c: D1 01 00 [20:49:30]MH_I2C_Read... [20:49:30]Read from MH i2c: D1 01 00 0F 0E 00 EE [20:49:30]Write to MH i2c: 01 00 00 10 0E 1E [20:49:30]Write i2c OK [20:49:30]MH_I2C_Read... [20:49:30]OFD Sender: No OFD packet to send [20:49:31]*** Cut start [20:49:31]*** Purtial cut [20:49:31]*** Stage 1: CUTSNS_PIN = 1 [20:49:31]Read from MH i2c: 01 [20:49:31]MH_I2C_Read... [20:49:31]*** Stop cut motor [20:49:31]*** Cut end [20:49:31]Read from MH i2c: 01 07 00 [20:49:31]MH_I2C_Read... [20:49:31]Read from MH i2c: 01 07 00 10 0E 00 00 00 00 00 FF 0F 33 [20:49:31]process_action close_receipt done [20:49:31]requested_data is exist [20:49:31]produce_requested_data [20:49:31]requested_item fm.sn is exist - process it [20:49:31]wFMCommunicate request_size=4 [20:49:31]MH_SAM_APDU [20:49:31]CAPDU: 80 11 00 00 [20:49:31]Write to MH i2c: E2 08 00 11 0E 80 11 00 00 00 00 00 00 99 [20:49:31]Write i2c OK [20:49:31]MH_I2C_Read... [20:49:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:31]Read from MH i2c: E2 [20:49:31]MH_I2C_Read... [20:49:31]Read from MH i2c: E2 17 00 [20:49:31]MH_I2C_Read... [20:49:31]Read from MH i2c: E2 17 00 11 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EE [20:49:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:49:31]wFMCommunicate OK [20:49:31]requested_item fd.num is exist - process it [20:49:31]SAM_PROTO_GetFieldsCounters [20:49:31]wFMCommunicate request_size=4 [20:49:31]MH_SAM_APDU [20:49:31]CAPDU: 80 13 00 00 [20:49:31]Write to MH i2c: E2 08 00 12 0E 80 13 00 00 00 00 00 00 9C [20:49:31]Write i2c OK [20:49:31]MH_I2C_Read... [20:49:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:49:31]Read from MH i2c: E2 [20:49:31]MH_I2C_Read... [20:49:31]Read from MH i2c: E2 62 00 [20:49:31]MH_I2C_Read... [20:49:31]Read from MH i2c: E2 62 00 12 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D1 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BB 01 00 00 5E 04 04 00 BB 01 00 00 57 04 04 00 BC 01 00 00 19 04 04 00 00 00 00 00 90 00 01 [20:49:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D1 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BB 01 00 00 5E 04 04 00 BB 01 00 00 57 04 04 00 BC 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:49:31]wFMCommunicate OK [20:49:31]SAM_PROTO_GetFieldsCounters done [20:49:31]requested_item shift.num is exist - process it [20:49:31]requested_item shift.opened is exist - process it [20:49:31]req_shift_opened [20:49:31]FM_GetShiftState [20:49:31]SAM_PROTO_GetShiftState [20:49:31]wFMCommunicate request_size=4 [20:49:31]MH_SAM_APDU [20:49:31]CAPDU: 80 13 01 00 [20:49:31]Write to MH i2c: E2 08 00 13 0E 80 13 01 00 00 00 00 00 9E [20:49:31]Write i2c OK [20:49:31]MH_I2C_Read... [20:49:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:31]Read from MH i2c: E2 [20:49:31]MH_I2C_Read... [20:49:31]Read from MH i2c: E2 0E 00 [20:49:31]MH_I2C_Read... [20:49:31]Read from MH i2c: E2 0E 00 13 0E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 AD [20:49:31]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [20:49:31]wFMCommunicate OK [20:49:31]SAM_PROTO_GetShiftState done [20:49:31]FM_GetShiftState done [20:49:31]req_shift_opened done [20:49:31]requested_item shift.open_date is exist - process it [20:49:31]req_shift_open_date [20:49:31]req_shift_open_date done [20:49:31]produce_requested_data done [20:49:31]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201681,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [20:49:31]process_action_free close_receipt [20:49:31]json_value_free [20:49:31]json_value_free done [20:49:31]process_json_proto returns [20:49:31]Send response to host [20:49:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201681,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [20:49:31]free response buf [20:49:31]execute_script done [20:49:31]execute_script returns [20:49:31]free content buf [20:49:31]Sock 7.Close socket [20:49:31]Sock 7.Thread stoped [20:49:35]OFD Sender: No OFD packet to send [20:49:40]OFD Sender: No OFD packet to send [20:49:45]OFD Sender: No OFD packet to send [20:49:50]OFD Sender: No OFD packet to send [20:49:55]OFD Sender: No OFD packet to send [20:50:00]OFD Sender: No OFD packet to send [20:50:05]OFD Sender: No OFD packet to send [20:50:10]OFD Sender: No OFD packet to send [20:50:15]OFD Sender: No OFD packet to send [20:50:20]OFD Sender: No OFD packet to send [20:50:25]OFD Sender: No OFD packet to send [20:50:30]OFD Sender: No OFD packet to send [20:50:34]accept exits with 9 [20:50:34]New connection [20:50:34]New thread 3066608996 created [20:50:34]Thread 3066465636 joined [20:50:34]Waiting for new connection... [20:50:34] Sock 9.Parse request [20:50:34]Sock 9.Check first char [20:50:34]Sock 9.First char is OK [20:50:34]request: POST /json_proto HTTP/1.0 [20:50:34]Method: POST [20:50:34]URL: /json_proto [20:50:34]Method is POST - this is cgi request [20:50:34]url: /json_proto [20:50:34]query_string will be loaded in cgi processing [20:50:34]execute_cgi json_proto POST (null) [20:50:34]execute_cgi path=json_proto method=POST [20:50:34]POST find Content-Length [20:50:34]Host: 172.17.63.195:8080 [20:50:34]Content-Length: 677 [20:50:34]Content-Type: application/json [20:50:34] [20:50:34]POST finish read [20:50:34]Found Content-Length = 677 [20:50:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [20:50:34]execute_script... [20:50: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)449441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [20:50:34]POST & json_proto [20:50:34]process_json_proto [20:50:34]json parsed OK: [20:50:34]protocol is kg_v1.0 [20:50:34]action value=close_receipt [20:50:34]process_action close_receipt [20:50:34]cmd_close_receipt [20:50:34]MH_GetDate [20:50:34]Write to MH i2c: F0 00 00 14 0E 11 [20:50:34]Write i2c OK [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: F0 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: F0 09 00 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: F0 09 00 14 0E 00 1B 56 1D 67 68 46 19 67 3D [20:50:34]GetLastDocTimeStamp 1729975768 [20:50:34]current date 1729975835 [20:50:34]FM_GetShiftState [20:50:34]SAM_PROTO_GetShiftState [20:50:34]wFMCommunicate request_size=4 [20:50:34]MH_SAM_APDU [20:50:34]CAPDU: 80 13 01 00 [20:50:34]Write to MH i2c: E2 08 00 15 0E 80 13 01 00 00 00 00 00 A0 [20:50:34]Write i2c OK [20:50:34]MH_I2C_Read... [20:50:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:34]Read from MH i2c: E2 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: E2 0E 00 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: E2 0E 00 15 0E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 AF [20:50:34]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [20:50:34]wFMCommunicate OK [20:50:34]SAM_PROTO_GetShiftState done [20:50:34]FM_GetShiftState done [20:50:34]opened in 1729900879 [20:50:34]opened+sec_in_day 1729987279 [20:50:34]quantity*price = 50041 [20:50:34]sum+1 = 50042 [20:50:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 444 26.10.2024 20:50 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201682 ФПД: 92586900292307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T205035&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201682&fm=92586900292307&tin=02508201610067®Number=0000000000091777&sum=50000 [20:50:35]StoreToDocumentArchive [20:50:35]shift 543 fd 201682 [20:50:35]save to /storage/0543/doc_00201682 [20:50:35]save last doc name /storage/0543/doc_00201682 to /storage/kkm_last_doc_name [20:50:35]save OK [20:50:35]Clear old archive folders... [20:50:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:50:35]tlvbuf is 010B6190 [20:50:35]SAM_PROTO_ClearQueue [20:50:35]wFMCommunicate request_size=4 [20:50:35]MH_SAM_APDU [20:50:35]CAPDU: 80 09 00 00 [20:50:35]Write to MH i2c: E2 08 00 22 0E 80 09 00 00 00 00 00 00 A2 [20:50:35]Write i2c OK [20:50:35]MH_I2C_Read... [20:50:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:50:35]OFD Sender: No OFD packet to send [20:50:35]Read from MH i2c: E2 [20:50:35]MH_I2C_Read... [20:50:35]Read from MH i2c: E2 03 00 [20:50:35]MH_I2C_Read... [20:50:35]Read from MH i2c: E2 03 00 22 0E 00 90 00 A4 [20:50:35]RAPDU: 90 00 [20:50:35]wFMCommunicate OK [20:50:35]SAM_PROTO_ClearQueue done [20:50:35]KKMCreateOFDPacket [20:50:35]OFDProtocolAddRootSTLVToBuf [20:50:35]FM_MakeSignedData [20:50:35]FM_MakeSignedData [20:50:35]SAM_PROTO_SignData [20:50:35]wFMCommunicate request_size=4 [20:50:35]MH_SAM_APDU [20:50:35]CAPDU: 80 0D 01 02 [20:50:35]Write to MH i2c: E2 08 00 23 0E 80 0D 01 02 00 00 00 00 AA [20:50:35]Write i2c OK [20:50:35]MH_I2C_Read... [20:50:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:50:36]Read from MH i2c: E2 [20:50:36]MH_I2C_Read... [20:50:36]Read from MH i2c: E2 03 00 [20:50:36]MH_I2C_Read... [20:50:36]Read from MH i2c: E2 03 00 23 0E 00 90 00 A5 [20:50:36]RAPDU: 90 00 [20:50:36]wFMCommunicate OK [20:50:36]wFMCommunicate request_size=255 [20:50:36]MH_SAM_APDU [20:50: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 32 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 BC 01 00 00 F4 03 04 00 1B 56 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D2 13 03 00 35 04 06 00 54 [20:50:36]Write to MH i2c: E2 02 01 24 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 32 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 BC 01 00 00 F4 03 04 00 1B 56 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D2 13 03 00 35 04 06 00 54 00 00 4D [20:50:36]Write i2c OK [20:50:36]MH_I2C_Read... [20:50:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:36]Read from MH i2c: E2 [20:50:36]MH_I2C_Read... [20:50:36]Read from MH i2c: E2 03 00 [20:50:36]MH_I2C_Read... [20:50:36]Read from MH i2c: E2 03 00 24 0E 00 90 00 A6 [20:50:36]RAPDU: 90 00 [20:50:36]wFMCommunicate OK [20:50:36]wFMCommunicate request_size=10 [20:50:36]MH_SAM_APDU [20:50:36]CAPDU: 80 0D 02 02 05 35 11 4D 82 D3 [20:50:36]Write to MH i2c: E2 0D 00 25 0E 80 0D 02 02 05 00 35 11 4D 82 D3 00 00 9F [20:50:36]Write i2c OK [20:50:36]MH_I2C_Read... [20:50:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:36]Read from MH i2c: E2 [20:50:36]MH_I2C_Read... [20:50:36]Read from MH i2c: E2 03 00 [20:50:36]MH_I2C_Read... [20:50:36]Read from MH i2c: E2 03 00 25 0E 00 90 00 A7 [20:50:36]RAPDU: 90 00 [20:50:36]wFMCommunicate OK [20:50:36]wFMCommunicate request_size=4 [20:50:36]MH_SAM_APDU [20:50:36]CAPDU: 80 0D 03 02 [20:50:36]Write to MH i2c: E2 08 00 26 0E 80 0D 03 02 00 00 00 00 AF [20:50:36]Write i2c OK [20:50:36]MH_I2C_Read... [20:50:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:50:36]Read from MH i2c: E2 [20:50:36]MH_I2C_Read... [20:50:36]Read from MH i2c: E2 0B 00 [20:50:36]MH_I2C_Read... [20:50:36]Read from MH i2c: E2 0B 00 26 0E 00 54 D9 CC BB 57 CE C8 47 90 00 98 [20:50:36]RAPDU: 54 D9 CC BB 57 CE C8 47 90 00 [20:50:36]wFMCommunicate OK [20:50:36]SAM_PROTO_SignData done [20:50:36]FM_MakeSignedData done [20:50:36]CreateOFDProtocolMessage [20:50:36]wFMCommunicate request_size=4 [20:50:36]MH_SAM_APDU [20:50:36]CAPDU: 80 11 00 00 [20:50:36]Write to MH i2c: E2 08 00 27 0E 80 11 00 00 00 00 00 00 AF [20:50:36]Write i2c OK [20:50:36]MH_I2C_Read... [20:50:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:36]Read from MH i2c: E2 [20:50:36]MH_I2C_Read... [20:50:36]Read from MH i2c: E2 17 00 [20:50:36]MH_I2C_Read... [20:50:36]Read from MH i2c: E2 17 00 27 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 04 [20:50:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:50:36]wFMCommunicate OK [20:50:36]CreateOFDProtocolMessage done [20:50:36]OFDSenderStorePacket 201682 [20:50:36]StoreOFDPacket docnum=201682 [20:50:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D7 8E 07 01 CD AF 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 32 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 BC 01 00 00 F4 03 04 00 1B 56 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D2 13 03 00 35 04 06 00 54 35 11 4D 82 D3 54 D9 CC BB 57 CE C8 47 [20:50:36]CheckFolder [20:50:36]dirname=/storage/ofd_packets [20:50:36]CheckFolder done [20:50:36]ProducePacketName [20:50:36]name=ofd_packets/00201682 [20:50:36]NVStorageSaveData ofd_packets/00201682 [20:50:36]File name is /storage/ofd_packets/00201682 [20:50:36]Write 301 bytes [20:50:36]NVStorageSaveData done [20:50:36]OFDSenderStorePacket done [20:50:36]KKMCreateOFDPacket done [20:50:36]NVStorageSaveData kkm_last_timestamp [20:50:36]File name is /storage/kkm_last_timestamp [20:50:36]Write 4 bytes [20:50:36]NVStorageSaveData done [20:50:36]ExternCall_PrintAddStr [20:50:36]wPrintStart [20:50:36]Write to MH i2c: 01 00 00 28 0E 36 [20:50:36]Write i2c OK [20:50:36]MH_I2C_Read... [20:50:36]Read from MH i2c: 01 [20:50:36]MH_I2C_Read... [20:50:36]Read from MH i2c: 01 07 00 [20:50:36]MH_I2C_Read... [20:50:36]Read from MH i2c: 01 07 00 28 0E 00 00 00 00 00 FF 0F 4B [20:50:36]RasterBufferAndPrint [20:50:36]line Счет N : (1)449441 [20:50:36]line ИНН: 02508201610067 [20:50:36]line Контрольно-Кассовый Чек [20:50:36]line ПРОДАЖА [20:50:36]line ТРК (МРК, ГНК) : 52 [20:50:36]line Товар: 2710124130 [20:50:36]line Аи-92-К-2 [20:50:36]line 7.480 * 66.90 [20:50:36]line = 500.41 [20:50:36]line НДС 12% НСП 1% [20:50:36]line > о реализуемом товаре [20:50:36]line ОКРУГЛЕНИЕ: -0.41 [20:50:36]line ИТОГО: 500.00 [20:50:36]line Внесено: 500.00 [20:50:36]line СДАЧА: 0.00 [20:50:36]line НСП 1% : 4.43 [20:50:36]line НДС 12% : 53.14 [20:50:36]line Наличными: 500.00 [20:50:36]line Безнал.: 0.00 [20:50:36]line Место: АЗС № 171 "Партнер Нефть" [20:50:36]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [20:50:36]line СНО: Общий режим [20:50:36]line Чек 444 26.10.2024 20:50 [20:50:36]line Смена: 543 ФФД: 1.0 [20:50:36]line ЗНМ: 0300000109 [20:50:36]line РНМ: 0000000000091777 [20:50:36]line Версия ККМ: 001 [20:50:36]line ФМ: 0000000000871756 [20:50:36]line ФД: 201682 [20:50:36]line ФПД: 92586900292307 [20:50:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T205035&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201682&fm=92586900292307&tin=02508201610067®Number=0000000000091777&sum=50000 [20:50:36]OFD Sender: Processing packet 201682 [packets to send 112, broken 111] [20:50:36]ProducePacketName [20:50:36]name=ofd_packets/00201682 [20:50:36]OFD Sender: To server: pG, [20:50:36]CommunicateWithHost lk.salyk.kg:30040 [20:50:36]ConnectInit lk.salyk.kg [20:50:36]written 0, free lines is 4095 [20:50:36]Connected sock=10 [20:50:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D7 8E 07 01 CD AF 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 32 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 BC 01 00 00 F4 03 04 00 1B 56 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D2 13 03 00 35 04 06 00 54 35 11 4D 82 D3 54 D9 CC BB 57 CE C8 47 [20:50:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A1 4F 47 00 4E ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D2 13 03 00 F4 03 04 00 C3 01 1D 67 B6 04 01 00 00 9F 4F BC E5 B6 B0 F3 44 [20:50:37]CommunicateWithHost err = 0 [20:50:37]CheckOFDResponse [20:50:37]1017 (14) - 77093643461234 [20:50:37]1041 (16) - 0000000000871756 [20:50:37]1040 (4) - 201682 [20:50:37]1012 (4) - 26.10.2024 14:50 [20:50:37]1206 (1) - 0 [20:50:37]OFD Sender: Remove packet 201682 [20:50:37]ProducePacketName [20:50:37]name=ofd_packets/00201682 [20:50:37]NVStorageDeleteData [20:50:37]Write to MH i2c: 01 00 00 53 0E 61 [20:50:37]Write i2c OK [20:50:37]MH_I2C_Read... [20:50:37]Read from MH i2c: 01 [20:50:37]MH_I2C_Read... [20:50:37]Read from MH i2c: 01 07 00 [20:50:37]MH_I2C_Read... [20:50:37]Read from MH i2c: 01 07 00 53 0E 00 00 00 00 00 8F 0C 03 [20:50:37]RasterBufferAndPrint [20:50:37]line [20:50:37]line [20:50:37]line [20:50:37]line [20:50:37]line [20:50:37]written 0, free lines is 3219 [20:50:37]MH_Cut [20:50:37]Write to MH i2c: D1 01 00 5A 0E 01 3A [20:50:37]Write i2c OK [20:50:37]MH_I2C_Read... [20:50:37]Read from MH i2c: D1 [20:50:37]MH_I2C_Read... [20:50:37]Read from MH i2c: D1 01 00 [20:50:37]MH_I2C_Read... [20:50:37]Read from MH i2c: D1 01 00 5A 0E 00 39 [20:50:37]Write to MH i2c: 01 00 00 5B 0E 69 [20:50:37]Write i2c OK [20:50:37]MH_I2C_Read... [20:50:37]OFD Sender: No OFD packet to send [20:50:38]*** Cut start [20:50:38]*** Purtial cut [20:50:38]*** Stage 1: CUTSNS_PIN = 1 [20:50:38]Read from MH i2c: 01 [20:50:38]MH_I2C_Read... [20:50:38]*** Stop cut motor [20:50:38]*** Cut end [20:50:38]Read from MH i2c: 01 07 00 [20:50:38]MH_I2C_Read... [20:50:38]Read from MH i2c: 01 07 00 5B 0E 00 00 00 00 00 FF 0F 7E [20:50:38]process_action close_receipt done [20:50:38]requested_data is exist [20:50:38]produce_requested_data [20:50:38]requested_item fm.sn is exist - process it [20:50:38]wFMCommunicate request_size=4 [20:50:38]MH_SAM_APDU [20:50:38]CAPDU: 80 11 00 00 [20:50:38]Write to MH i2c: E2 08 00 5C 0E 80 11 00 00 00 00 00 00 E4 [20:50:38]Write i2c OK [20:50:38]MH_I2C_Read... [20:50:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:38]Read from MH i2c: E2 [20:50:38]MH_I2C_Read... [20:50:38]Read from MH i2c: E2 17 00 [20:50:38]MH_I2C_Read... [20:50:38]Read from MH i2c: E2 17 00 5C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 39 [20:50:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:50:38]wFMCommunicate OK [20:50:38]requested_item fd.num is exist - process it [20:50:38]SAM_PROTO_GetFieldsCounters [20:50:38]wFMCommunicate request_size=4 [20:50:38]MH_SAM_APDU [20:50:38]CAPDU: 80 13 00 00 [20:50:38]Write to MH i2c: E2 08 00 5D 0E 80 13 00 00 00 00 00 00 E7 [20:50:38]Write i2c OK [20:50:38]MH_I2C_Read... [20:50:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:50:38]Read from MH i2c: E2 [20:50:38]MH_I2C_Read... [20:50:38]Read from MH i2c: E2 62 00 [20:50:38]MH_I2C_Read... [20:50:38]Read from MH i2c: E2 62 00 5D 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D2 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BC 01 00 00 5E 04 04 00 BC 01 00 00 57 04 04 00 BD 01 00 00 19 04 04 00 00 00 00 00 90 00 50 [20:50:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D2 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BC 01 00 00 5E 04 04 00 BC 01 00 00 57 04 04 00 BD 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:50:38]wFMCommunicate OK [20:50:38]SAM_PROTO_GetFieldsCounters done [20:50:38]requested_item shift.num is exist - process it [20:50:38]requested_item shift.opened is exist - process it [20:50:38]req_shift_opened [20:50:38]FM_GetShiftState [20:50:38]SAM_PROTO_GetShiftState [20:50:38]wFMCommunicate request_size=4 [20:50:38]MH_SAM_APDU [20:50:38]CAPDU: 80 13 01 00 [20:50:38]Write to MH i2c: E2 08 00 5E 0E 80 13 01 00 00 00 00 00 E9 [20:50:38]Write i2c OK [20:50:38]MH_I2C_Read... [20:50:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:38]Read from MH i2c: E2 [20:50:38]MH_I2C_Read... [20:50:38]Read from MH i2c: E2 0E 00 [20:50:38]MH_I2C_Read... [20:50:38]Read from MH i2c: E2 0E 00 5E 0E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F8 [20:50:38]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [20:50:38]wFMCommunicate OK [20:50:38]SAM_PROTO_GetShiftState done [20:50:38]FM_GetShiftState done [20:50:38]req_shift_opened done [20:50:38]requested_item shift.open_date is exist - process it [20:50:38]req_shift_open_date [20:50:38]req_shift_open_date done [20:50:38]produce_requested_data done [20:50:38]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201682,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [20:50:38]process_action_free close_receipt [20:50:38]json_value_free [20:50:38]json_value_free done [20:50:38]process_json_proto returns [20:50:38]Send response to host [20:50:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201682,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [20:50:38]free response buf [20:50:38]execute_script done [20:50:38]execute_script returns [20:50:38]free content buf [20:50:38]Sock 9.Close socket [20:50:38]Sock 9.Thread stoped [20:50:42]OFD Sender: No OFD packet to send [20:50:47]OFD Sender: No OFD packet to send [20:50:52]OFD Sender: No OFD packet to send [20:50:57]OFD Sender: No OFD packet to send [20:51:02]OFD Sender: No OFD packet to send [20:51:07]OFD Sender: No OFD packet to send [20:51:12]OFD Sender: No OFD packet to send [20:51:17]OFD Sender: No OFD packet to send [20:51:22]OFD Sender: No OFD packet to send [20:51:27]OFD Sender: No OFD packet to send [20:51:32]OFD Sender: No OFD packet to send [20:51:37]OFD Sender: No OFD packet to send [20:51:42]OFD Sender: No OFD packet to send [20:51:47]OFD Sender: No OFD packet to send [20:51:52]OFD Sender: No OFD packet to send [20:51:57]OFD Sender: No OFD packet to send [20:52:02]OFD Sender: No OFD packet to send [20:52:07]OFD Sender: No OFD packet to send [20:52:12]OFD Sender: No OFD packet to send [20:52:17]OFD Sender: No OFD packet to send [20:52:22]OFD Sender: No OFD packet to send [20:52:27]OFD Sender: No OFD packet to send [20:52:32]OFD Sender: No OFD packet to send [20:52:37]OFD Sender: No OFD packet to send [20:52:42]OFD Sender: No OFD packet to send [20:52:47]accept exits with 7 [20:52:47]New connection [20:52:47]New thread 3066465636 created [20:52:47]Thread 3066608996 joined [20:52:47]Waiting for new connection... [20:52:47] Sock 7.Parse request [20:52:47]Sock 7.Check first char [20:52:47]Sock 7.First char is OK [20:52:47]request: POST /json_proto HTTP/1.0 [20:52:47]Method: POST [20:52:47]URL: /json_proto [20:52:47]Method is POST - this is cgi request [20:52:47]url: /json_proto [20:52:47]query_string will be loaded in cgi processing [20:52:47]execute_cgi json_proto POST (null) [20:52:47]execute_cgi path=json_proto method=POST [20:52:47]POST find Content-Length [20:52:47]Host: 172.17.63.195:8080 [20:52:47]Content-Length: 677 [20:52:47]Content-Type: application/json [20:52:47] [20:52:47]POST finish read [20:52:47]Found Content-Length = 677 [20:52:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [20:52:47]execute_script... [20:52: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)449442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [20:52:47]POST & json_proto [20:52:47]process_json_proto [20:52:47]json parsed OK: [20:52:47]protocol is kg_v1.0 [20:52:47]action value=close_receipt [20:52:47]process_action close_receipt [20:52:47]cmd_close_receipt [20:52:47]MH_GetDate [20:52:47]Write to MH i2c: F0 00 00 5F 0E 5C [20:52:47]Write i2c OK [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: F0 [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: F0 09 00 [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: F0 09 00 5F 0E 00 A0 56 1D 67 68 46 19 67 0D [20:52:47]GetLastDocTimeStamp 1729975835 [20:52:47]current date 1729975968 [20:52:47]FM_GetShiftState [20:52:47]SAM_PROTO_GetShiftState [20:52:47]wFMCommunicate request_size=4 [20:52:47]MH_SAM_APDU [20:52:47]CAPDU: 80 13 01 00 [20:52:47]Write to MH i2c: E2 08 00 60 0E 80 13 01 00 00 00 00 00 EB [20:52:47]Write i2c OK [20:52:47]MH_I2C_Read... [20:52:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:47]Read from MH i2c: E2 [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: E2 0E 00 [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: E2 0E 00 60 0E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 FA [20:52:47]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [20:52:47]wFMCommunicate OK [20:52:47]SAM_PROTO_GetShiftState done [20:52:47]FM_GetShiftState done [20:52:47]opened in 1729900879 [20:52:47]opened+sec_in_day 1729987279 [20:52:47]quantity*price = 50041 [20:52:47]sum+1 = 50042 [20:52:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 445 26.10.2024 20:52 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201683 ФПД: 164239667805994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T205248&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201683&fm=164239667805994&tin=02508201610067®Number=0000000000091777&sum=50000 [20:52:48]StoreToDocumentArchive [20:52:48]shift 543 fd 201683 [20:52:48]save to /storage/0543/doc_00201683 [20:52:48]save last doc name /storage/0543/doc_00201683 to /storage/kkm_last_doc_name [20:52:48]save OK [20:52:48]Clear old archive folders... [20:52:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:52:48]tlvbuf is 01054940 [20:52:48]SAM_PROTO_ClearQueue [20:52:48]wFMCommunicate request_size=4 [20:52:48]MH_SAM_APDU [20:52:48]CAPDU: 80 09 00 00 [20:52:48]Write to MH i2c: E2 08 00 6D 0E 80 09 00 00 00 00 00 00 ED [20:52:48]Write i2c OK [20:52:48]MH_I2C_Read... [20:52:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:52:48]Read from MH i2c: E2 [20:52:48]MH_I2C_Read... [20:52:48]Read from MH i2c: E2 03 00 [20:52:48]MH_I2C_Read... [20:52:48]Read from MH i2c: E2 03 00 6D 0E 00 90 00 EF [20:52:48]RAPDU: 90 00 [20:52:48]wFMCommunicate OK [20:52:48]SAM_PROTO_ClearQueue done [20:52:48]KKMCreateOFDPacket [20:52:48]OFDProtocolAddRootSTLVToBuf [20:52:48]FM_MakeSignedData [20:52:48]FM_MakeSignedData [20:52:48]SAM_PROTO_SignData [20:52:48]wFMCommunicate request_size=4 [20:52:48]MH_SAM_APDU [20:52:48]CAPDU: 80 0D 01 02 [20:52:48]Write to MH i2c: E2 08 00 6E 0E 80 0D 01 02 00 00 00 00 F5 [20:52:48]Write i2c OK [20:52:48]MH_I2C_Read... [20:52:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:52:48]Read from MH i2c: E2 [20:52:48]MH_I2C_Read... [20:52:48]Read from MH i2c: E2 03 00 [20:52:48]MH_I2C_Read... [20:52:48]Read from MH i2c: E2 03 00 6E 0E 00 90 00 F0 [20:52:48]RAPDU: 90 00 [20:52:48]wFMCommunicate OK [20:52:48]wFMCommunicate request_size=255 [20:52:48]MH_SAM_APDU [20:52: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 32 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 BD 01 00 00 F4 03 04 00 A0 56 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D3 13 03 00 35 04 06 00 95 [20:52:48]Write to MH i2c: E2 02 01 6F 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 32 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 BD 01 00 00 F4 03 04 00 A0 56 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D3 13 03 00 35 04 06 00 95 00 00 60 [20:52:48]Write i2c OK [20:52:48]MH_I2C_Read... [20:52:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:48]Read from MH i2c: E2 [20:52:48]MH_I2C_Read... [20:52:48]Read from MH i2c: E2 03 00 [20:52:48]MH_I2C_Read... [20:52:48]Read from MH i2c: E2 03 00 6F 0E 00 90 00 F1 [20:52:48]RAPDU: 90 00 [20:52:48]wFMCommunicate OK [20:52:48]wFMCommunicate request_size=10 [20:52:48]MH_SAM_APDU [20:52:48]CAPDU: 80 0D 02 02 05 60 07 0E BF 2A [20:52:48]Write to MH i2c: E2 0D 00 70 0E 80 0D 02 02 05 00 60 07 0E BF 2A 00 00 60 [20:52:48]Write i2c OK [20:52:48]MH_I2C_Read... [20:52:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:49]Read from MH i2c: E2 [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: E2 03 00 [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: E2 03 00 70 0E 00 90 00 F2 [20:52:49]RAPDU: 90 00 [20:52:49]wFMCommunicate OK [20:52:49]wFMCommunicate request_size=4 [20:52:49]MH_SAM_APDU [20:52:49]CAPDU: 80 0D 03 02 [20:52:49]Write to MH i2c: E2 08 00 71 0E 80 0D 03 02 00 00 00 00 FA [20:52:49]Write i2c OK [20:52:49]MH_I2C_Read... [20:52:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:52:49]Read from MH i2c: E2 [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: E2 0B 00 [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: E2 0B 00 71 0E 00 C2 A9 F3 77 2F D9 E5 5C 90 00 19 [20:52:49]RAPDU: C2 A9 F3 77 2F D9 E5 5C 90 00 [20:52:49]wFMCommunicate OK [20:52:49]SAM_PROTO_SignData done [20:52:49]FM_MakeSignedData done [20:52:49]CreateOFDProtocolMessage [20:52:49]wFMCommunicate request_size=4 [20:52:49]MH_SAM_APDU [20:52:49]CAPDU: 80 11 00 00 [20:52:49]Write to MH i2c: E2 08 00 72 0E 80 11 00 00 00 00 00 00 FA [20:52:49]Write i2c OK [20:52:49]MH_I2C_Read... [20:52:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:49]Read from MH i2c: E2 [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: E2 17 00 [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: E2 17 00 72 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4F [20:52:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:52:49]wFMCommunicate OK [20:52:49]CreateOFDProtocolMessage done [20:52:49]OFDSenderStorePacket 201683 [20:52:49]StoreOFDPacket docnum=201683 [20:52:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 94 7F 07 01 2C 13 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 32 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 BD 01 00 00 F4 03 04 00 A0 56 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D3 13 03 00 35 04 06 00 95 60 07 0E BF 2A C2 A9 F3 77 2F D9 E5 5C [20:52:49]CheckFolder [20:52:49]dirname=/storage/ofd_packets [20:52:49]CheckFolder done [20:52:49]ProducePacketName [20:52:49]name=ofd_packets/00201683 [20:52:49]NVStorageSaveData ofd_packets/00201683 [20:52:49]File name is /storage/ofd_packets/00201683 [20:52:49]Write 301 bytes [20:52:49]NVStorageSaveData done [20:52:49]OFDSenderStorePacket done [20:52:49]KKMCreateOFDPacket done [20:52:49]NVStorageSaveData kkm_last_timestamp [20:52:49]File name is /storage/kkm_last_timestamp [20:52:49]Write 4 bytes [20:52:49]NVStorageSaveData done [20:52:49]ExternCall_PrintAddStr [20:52:49]wPrintStart [20:52:49]Write to MH i2c: 01 00 00 73 0E 81 [20:52:49]Write i2c OK [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: 01 [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: 01 07 00 [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: 01 07 00 73 0E 00 00 00 00 00 FF 0F 96 [20:52:49]RasterBufferAndPrint [20:52:49]line Счет N : (1)449442 [20:52:49]line ИНН: 02508201610067 [20:52:49]line Контрольно-Кассовый Чек [20:52:49]line ПРОДАЖА [20:52:49]line ТРК (МРК, ГНК) : 41 [20:52:49]line Товар: 2710124130 [20:52:49]line Аи-92-К-2 [20:52:49]line 7.480 * 66.90 [20:52:49]line = 500.41 [20:52:49]line НДС 12% НСП 1% [20:52:49]line > о реализуемом товаре [20:52:49]line ОКРУГЛЕНИЕ: -0.41 [20:52:49]line ИТОГО: 500.00 [20:52:49]line Внесено: 500.00 [20:52:49]line СДАЧА: 0.00 [20:52:49]line НСП 1% : 4.43 [20:52:49]line НДС 12% : 53.14 [20:52:49]line Наличными: 500.00 [20:52:49]line Безнал.: 0.00 [20:52:49]line Место: АЗС № 171 "Партнер Нефть" [20:52:49]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [20:52:49]line СНО: Общий режим [20:52:49]line Чек 445 26.10.2024 20:52 [20:52:49]line Смена: 543 ФФД: 1.0 [20:52:49]line ЗНМ: 0300000109 [20:52:49]line РНМ: 0000000000091777 [20:52:49]line Версия ККМ: 001 [20:52:49]line ФМ: 0000000000871756 [20:52:49]line ФД: 201683 [20:52:49]line ФПД: 164239667805994 [20:52:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T205248&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201683&fm=164239667805994&tin=02508201610067®Number=0000000000091777&sum=50000 [20:52:49]OFD Sender: Processing packet 201683 [packets to send 112, broken 111] [20:52:49]ProducePacketName [20:52:49]name=ofd_packets/00201683 [20:52:49]OFD Sender: To server: pG, [20:52:49]CommunicateWithHost lk.salyk.kg:30040 [20:52:49]ConnectInit lk.salyk.kg [20:52:49]written 0, free lines is 4095 [20:52:49]Connected sock=10 [20:52:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 94 7F 07 01 2C 13 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 32 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 BD 01 00 00 F4 03 04 00 A0 56 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D3 13 03 00 35 04 06 00 95 60 07 0E BF 2A C2 A9 F3 77 2F D9 E5 5C [20:52:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 CF C3 47 00 9E 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D3 13 03 00 F4 03 04 00 48 02 1D 67 B6 04 01 00 00 1B 21 6E 4A A8 C1 57 D2 [20:52:49]CommunicateWithHost err = 0 [20:52:49]CheckOFDResponse [20:52:49]1017 (14) - 77093643461234 [20:52:49]1041 (16) - 0000000000871756 [20:52:49]1040 (4) - 201683 [20:52:49]1012 (4) - 26.10.2024 14:52 [20:52:49]1206 (1) - 0 [20:52:49]OFD Sender: Remove packet 201683 [20:52:49]ProducePacketName [20:52:49]name=ofd_packets/00201683 [20:52:49]NVStorageDeleteData [20:52:49]Write to MH i2c: 01 00 00 9E 0E AC [20:52:49]Write i2c OK [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: 01 [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: 01 07 00 [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: 01 07 00 9E 0E 00 00 00 00 00 99 0C 58 [20:52:49]RasterBufferAndPrint [20:52:49]line [20:52:49]line [20:52:49]line [20:52:49]line [20:52:49]line [20:52:49]written 0, free lines is 3229 [20:52:49]MH_Cut [20:52:49]Write to MH i2c: D1 01 00 A5 0E 01 85 [20:52:49]Write i2c OK [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: D1 [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: D1 01 00 [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: D1 01 00 A5 0E 00 84 [20:52:49]Write to MH i2c: 01 00 00 A6 0E B4 [20:52:49]Write i2c OK [20:52:49]MH_I2C_Read... [20:52:50]OFD Sender: No OFD packet to send [20:52:50]*** Cut start [20:52:50]*** Purtial cut [20:52:50]*** Stage 1: CUTSNS_PIN = 1 [20:52:51]Read from MH i2c: 01 [20:52:51]MH_I2C_Read... [20:52:51]*** Stop cut motor [20:52:51]*** Cut end [20:52:51]Read from MH i2c: 01 07 00 [20:52:51]MH_I2C_Read... [20:52:51]Read from MH i2c: 01 07 00 A6 0E 00 00 00 00 00 FF 0F C9 [20:52:51]process_action close_receipt done [20:52:51]requested_data is exist [20:52:51]produce_requested_data [20:52:51]requested_item fm.sn is exist - process it [20:52:51]wFMCommunicate request_size=4 [20:52:51]MH_SAM_APDU [20:52:51]CAPDU: 80 11 00 00 [20:52:51]Write to MH i2c: E2 08 00 A7 0E 80 11 00 00 00 00 00 00 2F [20:52:51]Write i2c OK [20:52:51]MH_I2C_Read... [20:52:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:51]Read from MH i2c: E2 [20:52:51]MH_I2C_Read... [20:52:51]Read from MH i2c: E2 17 00 [20:52:51]MH_I2C_Read... [20:52:51]Read from MH i2c: E2 17 00 A7 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 84 [20:52:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [20:52:51]wFMCommunicate OK [20:52:51]requested_item fd.num is exist - process it [20:52:51]SAM_PROTO_GetFieldsCounters [20:52:51]wFMCommunicate request_size=4 [20:52:51]MH_SAM_APDU [20:52:51]CAPDU: 80 13 00 00 [20:52:51]Write to MH i2c: E2 08 00 A8 0E 80 13 00 00 00 00 00 00 32 [20:52:51]Write i2c OK [20:52:51]MH_I2C_Read... [20:52:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:52:51]Read from MH i2c: E2 [20:52:51]MH_I2C_Read... [20:52:51]Read from MH i2c: E2 62 00 [20:52:51]MH_I2C_Read... [20:52:51]Read from MH i2c: E2 62 00 A8 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D3 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BD 01 00 00 5E 04 04 00 BD 01 00 00 57 04 04 00 BE 01 00 00 19 04 04 00 00 00 00 00 90 00 9F [20:52:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D3 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BD 01 00 00 5E 04 04 00 BD 01 00 00 57 04 04 00 BE 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:52:51]wFMCommunicate OK [20:52:51]SAM_PROTO_GetFieldsCounters done [20:52:51]requested_item shift.num is exist - process it [20:52:51]requested_item shift.opened is exist - process it [20:52:51]req_shift_opened [20:52:51]FM_GetShiftState [20:52:51]SAM_PROTO_GetShiftState [20:52:51]wFMCommunicate request_size=4 [20:52:51]MH_SAM_APDU [20:52:51]CAPDU: 80 13 01 00 [20:52:51]Write to MH i2c: E2 08 00 A9 0E 80 13 01 00 00 00 00 00 34 [20:52:51]Write i2c OK [20:52:51]MH_I2C_Read... [20:52:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:51]Read from MH i2c: E2 [20:52:51]MH_I2C_Read... [20:52:51]Read from MH i2c: E2 0E 00 [20:52:51]MH_I2C_Read... [20:52:51]Read from MH i2c: E2 0E 00 A9 0E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 43 [20:52:51]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [20:52:51]wFMCommunicate OK [20:52:51]SAM_PROTO_GetShiftState done [20:52:51]FM_GetShiftState done [20:52:51]req_shift_opened done [20:52:51]requested_item shift.open_date is exist - process it [20:52:51]req_shift_open_date [20:52:51]req_shift_open_date done [20:52:51]produce_requested_data done [20:52:51]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201683,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [20:52:51]process_action_free close_receipt [20:52:51]json_value_free [20:52:51]json_value_free done [20:52:51]process_json_proto returns [20:52:51]Send response to host [20:52:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201683,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [20:52:51]free response buf [20:52:51]execute_script done [20:52:51]execute_script returns [20:52:51]free content buf [20:52:51]Sock 7.Close socket [20:52:51]Sock 7.Thread stoped [20:52:55]OFD Sender: No OFD packet to send [20:53:00]OFD Sender: No OFD packet to send [20:53:05]OFD Sender: No OFD packet to send [20:53:10]OFD Sender: No OFD packet to send [20:53:15]OFD Sender: No OFD packet to send [20:53:20]OFD Sender: No OFD packet to send [20:53:25]OFD Sender: No OFD packet to send [20:53:30]OFD Sender: No OFD packet to send [20:53:35]OFD Sender: No OFD packet to send [20:53:40]OFD Sender: No OFD packet to send [20:53:45]OFD Sender: No OFD packet to send [20:53:50]OFD Sender: No OFD packet to send [20:53:55]OFD Sender: No OFD packet to send [20:54:00]OFD Sender: No OFD packet to send [20:54:05]OFD Sender: No OFD packet to send [20:54:10]OFD Sender: No OFD packet to send [20:54:15]OFD Sender: No OFD packet to send [20:54:20]OFD Sender: No OFD packet to send [20:54:25]OFD Sender: No OFD packet to send [20:54:30]OFD Sender: No OFD packet to send [20:54:35]OFD Sender: No OFD packet to send [20:54:40]OFD Sender: No OFD packet to send [20:54:45]OFD Sender: No OFD packet to send [20:54:50]OFD Sender: No OFD packet to send [20:54:55]OFD Sender: No OFD packet to send [20:55:00]OFD Sender: No OFD packet to send [20:55:05]OFD Sender: No OFD packet to send [20:55:10]OFD Sender: No OFD packet to send [20:55:15]OFD Sender: No OFD packet to send [20:55:20]OFD Sender: No OFD packet to send [20:55:25]OFD Sender: No OFD packet to send [20:55:30]OFD Sender: No OFD packet to send [20:55:35]OFD Sender: No OFD packet to send [20:55:40]OFD Sender: No OFD packet to send [20:55:45]OFD Sender: No OFD packet to send [20:55:50]OFD Sender: No OFD packet to send [20:55:55]OFD Sender: No OFD packet to send [20:56:00]OFD Sender: No OFD packet to send [20:56:05]OFD Sender: No OFD packet to send [20:56:10]OFD Sender: No OFD packet to send [20:56:15]OFD Sender: No OFD packet to send [20:56:20]OFD Sender: No OFD packet to send [20:56:25]OFD Sender: No OFD packet to send [20:56:30]OFD Sender: No OFD packet to send [20:56:35]OFD Sender: No OFD packet to send [20:56:40]OFD Sender: No OFD packet to send [20:56:45]OFD Sender: No OFD packet to send [20:56:50]OFD Sender: No OFD packet to send [20:56:55]OFD Sender: No OFD packet to send [20:57:00]OFD Sender: No OFD packet to send [20:57:05]OFD Sender: No OFD packet to send [20:57:10]OFD Sender: No OFD packet to send [20:57:15]OFD Sender: No OFD packet to send [20:57:20]OFD Sender: No OFD packet to send [20:57:25]OFD Sender: No OFD packet to send [20:57:30]OFD Sender: No OFD packet to send [20:57:35]OFD Sender: No OFD packet to send [20:57:40]OFD Sender: No OFD packet to send [20:57:45]OFD Sender: No OFD packet to send [20:57:50]OFD Sender: No OFD packet to send [20:57:55]OFD Sender: No OFD packet to send [20:58:00]OFD Sender: No OFD packet to send [20:58:05]OFD Sender: No OFD packet to send [20:58:10]OFD Sender: No OFD packet to send [20:58:15]OFD Sender: No OFD packet to send [20:58:20]OFD Sender: No OFD packet to send [20:58:25]OFD Sender: No OFD packet to send [20:58:30]OFD Sender: No OFD packet to send [20:58:35]OFD Sender: No OFD packet to send [20:58:40]OFD Sender: No OFD packet to send [20:58:45]OFD Sender: No OFD packet to send [20:58:50]OFD Sender: No OFD packet to send [20:58:55]OFD Sender: No OFD packet to send [20:59:00]OFD Sender: No OFD packet to send [20:59:05]OFD Sender: No OFD packet to send [20:59:10]OFD Sender: No OFD packet to send [20:59:15]OFD Sender: No OFD packet to send [20:59:20]OFD Sender: No OFD packet to send [20:59:25]OFD Sender: No OFD packet to send [20:59:30]OFD Sender: No OFD packet to send [20:59:35]OFD Sender: No OFD packet to send [20:59:40]OFD Sender: No OFD packet to send [20:59:45]OFD Sender: No OFD packet to send [20:59:50]OFD Sender: No OFD packet to send [20:59:55]OFD Sender: No OFD packet to send [21:00:00]OFD Sender: No OFD packet to send [21:00:05]OFD Sender: No OFD packet to send [21:00:10]OFD Sender: No OFD packet to send [21:00:15]OFD Sender: No OFD packet to send [21:00:20]OFD Sender: No OFD packet to send [21:00:25]OFD Sender: No OFD packet to send [21:00:30]OFD Sender: No OFD packet to send [21:00:35]OFD Sender: No OFD packet to send [21:00:40]OFD Sender: No OFD packet to send [21:00:45]OFD Sender: No OFD packet to send [21:00:50]OFD Sender: No OFD packet to send [21:00:55]OFD Sender: No OFD packet to send [21:01:00]OFD Sender: No OFD packet to send [21:01:05]OFD Sender: No OFD packet to send [21:01:10]OFD Sender: No OFD packet to send [21:01:15]OFD Sender: No OFD packet to send [21:01:20]OFD Sender: No OFD packet to send [21:01:25]OFD Sender: No OFD packet to send [21:01:30]OFD Sender: No OFD packet to send [21:01:35]OFD Sender: No OFD packet to send [21:01:40]OFD Sender: No OFD packet to send [21:01:45]OFD Sender: No OFD packet to send [21:01:50]OFD Sender: No OFD packet to send [21:01:55]OFD Sender: No OFD packet to send [21:02:00]OFD Sender: No OFD packet to send [21:02:05]OFD Sender: No OFD packet to send [21:02:10]OFD Sender: No OFD packet to send [21:02:15]OFD Sender: No OFD packet to send [21:02:20]OFD Sender: No OFD packet to send [21:02:25]OFD Sender: No OFD packet to send [21:02:30]OFD Sender: No OFD packet to send [21:02:35]OFD Sender: No OFD packet to send [21:02:40]OFD Sender: No OFD packet to send [21:02:45]OFD Sender: No OFD packet to send [21:02:50]OFD Sender: No OFD packet to send [21:02:55]OFD Sender: No OFD packet to send [21:03:00]OFD Sender: No OFD packet to send [21:03:05]OFD Sender: No OFD packet to send [21:03:10]OFD Sender: No OFD packet to send [21:03:15]OFD Sender: No OFD packet to send [21:03:21]OFD Sender: No OFD packet to send [21:03:26]OFD Sender: No OFD packet to send [21:03:31]OFD Sender: No OFD packet to send [21:03:36]OFD Sender: No OFD packet to send [21:03:41]OFD Sender: No OFD packet to send [21:03:46]OFD Sender: No OFD packet to send [21:03:51]OFD Sender: No OFD packet to send [21:03:56]OFD Sender: No OFD packet to send [21:04:01]OFD Sender: No OFD packet to send [21:04:06]OFD Sender: No OFD packet to send [21:04:11]OFD Sender: No OFD packet to send [21:04:16]OFD Sender: No OFD packet to send [21:04:21]OFD Sender: No OFD packet to send [21:04:26]OFD Sender: No OFD packet to send [21:04:31]OFD Sender: No OFD packet to send [21:04:36]OFD Sender: No OFD packet to send [21:04:41]OFD Sender: No OFD packet to send [21:04:46]OFD Sender: No OFD packet to send [21:04:51]OFD Sender: No OFD packet to send [21:04:56]OFD Sender: No OFD packet to send [21:05:01]OFD Sender: No OFD packet to send [21:05:06]OFD Sender: No OFD packet to send [21:05:11]OFD Sender: No OFD packet to send [21:05:16]OFD Sender: No OFD packet to send [21:05:21]OFD Sender: No OFD packet to send [21:05:26]OFD Sender: No OFD packet to send [21:05:31]OFD Sender: No OFD packet to send [21:05:36]OFD Sender: No OFD packet to send [21:05:37]accept exits with 9 [21:05:37]New connection [21:05:37]New thread 3066608996 created [21:05:37]Thread 3066465636 joined [21:05:37]Waiting for new connection... [21:05:37] Sock 9.Parse request [21:05:37]Sock 9.Check first char [21:05:37]Sock 9.First char is OK [21:05:37]request: POST /json_proto HTTP/1.0 [21:05:37]Method: POST [21:05:37]URL: /json_proto [21:05:37]Method is POST - this is cgi request [21:05:37]url: /json_proto [21:05:37]query_string will be loaded in cgi processing [21:05:37]execute_cgi json_proto POST (null) [21:05:37]execute_cgi path=json_proto method=POST [21:05:37]POST find Content-Length [21:05:37]Host: 172.17.63.195:8080 [21:05:37]Content-Length: 677 [21:05:37]Content-Type: application/json [21:05:37] [21:05:37]POST finish read [21:05:37]Found Content-Length = 677 [21:05:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [21:05:37]execute_script... [21:05:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [21:05:37]POST & json_proto [21:05:37]process_json_proto [21:05:37]json parsed OK: [21:05:37]protocol is kg_v1.0 [21:05:37]action value=close_receipt [21:05:37]process_action close_receipt [21:05:37]cmd_close_receipt [21:05:37]MH_GetDate [21:05:37]Write to MH i2c: F0 00 00 AA 0E A7 [21:05:37]Write i2c OK [21:05:37]MH_I2C_Read... [21:05:37]Read from MH i2c: F0 [21:05:37]MH_I2C_Read... [21:05:37]Read from MH i2c: F0 09 00 [21:05:37]MH_I2C_Read... [21:05:37]Read from MH i2c: F0 09 00 AA 0E 00 A2 59 1D 67 68 46 19 67 5D [21:05:37]GetLastDocTimeStamp 1729975968 [21:05:37]current date 1729976738 [21:05:37]FM_GetShiftState [21:05:37]SAM_PROTO_GetShiftState [21:05:37]wFMCommunicate request_size=4 [21:05:37]MH_SAM_APDU [21:05:37]CAPDU: 80 13 01 00 [21:05:37]Write to MH i2c: E2 08 00 AB 0E 80 13 01 00 00 00 00 00 36 [21:05:37]Write i2c OK [21:05:37]MH_I2C_Read... [21:05:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:37]Read from MH i2c: E2 [21:05:37]MH_I2C_Read... [21:05:37]Read from MH i2c: E2 0E 00 [21:05:37]MH_I2C_Read... [21:05:37]Read from MH i2c: E2 0E 00 AB 0E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 45 [21:05:37]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [21:05:37]wFMCommunicate OK [21:05:37]SAM_PROTO_GetShiftState done [21:05:37]FM_GetShiftState done [21:05:37]opened in 1729900879 [21:05:37]opened+sec_in_day 1729987279 [21:05:37]quantity*price = 50041 [21:05:37]sum+1 = 50042 [21:05:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 446 26.10.2024 21:05 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201684 ФПД: 122450239269532 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T210538&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201684&fm=122450239269532&tin=02508201610067®Number=0000000000091777&sum=50000 [21:05:38]StoreToDocumentArchive [21:05:38]shift 543 fd 201684 [21:05:38]save to /storage/0543/doc_00201684 [21:05:38]save last doc name /storage/0543/doc_00201684 to /storage/kkm_last_doc_name [21:05:38]save OK [21:05:38]Clear old archive folders... [21:05:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:05:38]tlvbuf is 010405F0 [21:05:38]SAM_PROTO_ClearQueue [21:05:38]wFMCommunicate request_size=4 [21:05:38]MH_SAM_APDU [21:05:38]CAPDU: 80 09 00 00 [21:05:38]Write to MH i2c: E2 08 00 B8 0E 80 09 00 00 00 00 00 00 38 [21:05:38]Write i2c OK [21:05:38]MH_I2C_Read... [21:05:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:05:38]Read from MH i2c: E2 [21:05:38]MH_I2C_Read... [21:05:38]Read from MH i2c: E2 03 00 [21:05:38]MH_I2C_Read... [21:05:38]Read from MH i2c: E2 03 00 B8 0E 00 90 00 3A [21:05:38]RAPDU: 90 00 [21:05:38]wFMCommunicate OK [21:05:38]SAM_PROTO_ClearQueue done [21:05:38]KKMCreateOFDPacket [21:05:38]OFDProtocolAddRootSTLVToBuf [21:05:38]FM_MakeSignedData [21:05:38]FM_MakeSignedData [21:05:38]SAM_PROTO_SignData [21:05:38]wFMCommunicate request_size=4 [21:05:38]MH_SAM_APDU [21:05:38]CAPDU: 80 0D 01 02 [21:05:38]Write to MH i2c: E2 08 00 B9 0E 80 0D 01 02 00 00 00 00 40 [21:05:38]Write i2c OK [21:05:38]MH_I2C_Read... [21:05:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:05:38]Read from MH i2c: E2 [21:05:38]MH_I2C_Read... [21:05:38]Read from MH i2c: E2 03 00 [21:05:38]MH_I2C_Read... [21:05:38]Read from MH i2c: E2 03 00 B9 0E 00 90 00 3B [21:05:38]RAPDU: 90 00 [21:05:38]wFMCommunicate OK [21:05:38]wFMCommunicate request_size=255 [21:05:38]MH_SAM_APDU [21:05:38]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 32 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 BE 01 00 00 F4 03 04 00 A2 59 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D4 13 03 00 35 04 06 00 6F [21:05:38]Write to MH i2c: E2 02 01 BA 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 32 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 BE 01 00 00 F4 03 04 00 A2 59 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D4 13 03 00 35 04 06 00 6F 00 00 8C [21:05:38]Write i2c OK [21:05:38]MH_I2C_Read... [21:05:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:39]Read from MH i2c: E2 [21:05:39]MH_I2C_Read... [21:05:39]Read from MH i2c: E2 03 00 [21:05:39]MH_I2C_Read... [21:05:39]Read from MH i2c: E2 03 00 BA 0E 00 90 00 3C [21:05:39]RAPDU: 90 00 [21:05:39]wFMCommunicate OK [21:05:39]wFMCommunicate request_size=10 [21:05:39]MH_SAM_APDU [21:05:39]CAPDU: 80 0D 02 02 05 5E 2B 03 AA 9C [21:05:39]Write to MH i2c: E2 0D 00 BB 0E 80 0D 02 02 05 00 5E 2B 03 AA 9C 00 00 1F [21:05:39]Write i2c OK [21:05:39]MH_I2C_Read... [21:05:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:39]Read from MH i2c: E2 [21:05:39]MH_I2C_Read... [21:05:39]Read from MH i2c: E2 03 00 [21:05:39]MH_I2C_Read... [21:05:39]Read from MH i2c: E2 03 00 BB 0E 00 90 00 3D [21:05:39]RAPDU: 90 00 [21:05:39]wFMCommunicate OK [21:05:39]wFMCommunicate request_size=4 [21:05:39]MH_SAM_APDU [21:05:39]CAPDU: 80 0D 03 02 [21:05:39]Write to MH i2c: E2 08 00 BC 0E 80 0D 03 02 00 00 00 00 45 [21:05:39]Write i2c OK [21:05:39]MH_I2C_Read... [21:05:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:05:39]Read from MH i2c: E2 [21:05:39]MH_I2C_Read... [21:05:39]Read from MH i2c: E2 0B 00 [21:05:39]MH_I2C_Read... [21:05:39]Read from MH i2c: E2 0B 00 BC 0E 00 D7 FE EA EE 2B 98 10 E5 90 00 AB [21:05:39]RAPDU: D7 FE EA EE 2B 98 10 E5 90 00 [21:05:39]wFMCommunicate OK [21:05:39]SAM_PROTO_SignData done [21:05:39]FM_MakeSignedData done [21:05:39]CreateOFDProtocolMessage [21:05:39]wFMCommunicate request_size=4 [21:05:39]MH_SAM_APDU [21:05:39]CAPDU: 80 11 00 00 [21:05:39]Write to MH i2c: E2 08 00 BD 0E 80 11 00 00 00 00 00 00 45 [21:05:39]Write i2c OK [21:05:39]MH_I2C_Read... [21:05:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:39]Read from MH i2c: E2 [21:05:39]MH_I2C_Read... [21:05:39]Read from MH i2c: E2 17 00 [21:05:39]MH_I2C_Read... [21:05:39]Read from MH i2c: E2 17 00 BD 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9A [21:05:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:05:39]wFMCommunicate OK [21:05:39]CreateOFDProtocolMessage done [21:05:39]OFDSenderStorePacket 201684 [21:05:39]StoreOFDPacket docnum=201684 [21:05:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 FA 65 07 01 8C 3B 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 32 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 BE 01 00 00 F4 03 04 00 A2 59 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D4 13 03 00 35 04 06 00 6F 5E 2B 03 AA 9C D7 FE EA EE 2B 98 10 E5 [21:05:39]CheckFolder [21:05:39]dirname=/storage/ofd_packets [21:05:39]CheckFolder done [21:05:39]ProducePacketName [21:05:39]name=ofd_packets/00201684 [21:05:39]NVStorageSaveData ofd_packets/00201684 [21:05:39]File name is /storage/ofd_packets/00201684 [21:05:39]Write 301 bytes [21:05:39]NVStorageSaveData done [21:05:39]OFDSenderStorePacket done [21:05:39]KKMCreateOFDPacket done [21:05:39]NVStorageSaveData kkm_last_timestamp [21:05:39]File name is /storage/kkm_last_timestamp [21:05:39]Write 4 bytes [21:05:39]NVStorageSaveData done [21:05:39]ExternCall_PrintAddStr [21:05:39]wPrintStart [21:05:39]Write to MH i2c: 01 00 00 BE 0E CC [21:05:39]Write i2c OK [21:05:39]MH_I2C_Read... [21:05:39]Read from MH i2c: 01 [21:05:39]MH_I2C_Read... [21:05:39]Read from MH i2c: 01 07 00 [21:05:39]MH_I2C_Read... [21:05:39]Read from MH i2c: 01 07 00 BE 0E 00 00 00 00 00 FF 0F E1 [21:05:39]RasterBufferAndPrint [21:05:39]line Счет N : (1)449443 [21:05:39]line ИНН: 02508201610067 [21:05:39]line Контрольно-Кассовый Чек [21:05:39]line ПРОДАЖА [21:05:39]line ТРК (МРК, ГНК) : 41 [21:05:39]line Товар: 2710124130 [21:05:39]line Аи-92-К-2 [21:05:39]line 7.480 * 66.90 [21:05:39]line = 500.41 [21:05:39]line НДС 12% НСП 1% [21:05:39]line > о реализуемом товаре [21:05:39]line ОКРУГЛЕНИЕ: -0.41 [21:05:39]line ИТОГО: 500.00 [21:05:39]line Внесено: 500.00 [21:05:39]line СДАЧА: 0.00 [21:05:39]line НСП 1% : 4.43 [21:05:39]line НДС 12% : 53.14 [21:05:39]line Наличными: 500.00 [21:05:39]line Безнал.: 0.00 [21:05:39]line Место: АЗС № 171 "Партнер Нефть" [21:05:39]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [21:05:39]line СНО: Общий режим [21:05:39]line Чек 446 26.10.2024 21:05 [21:05:39]line Смена: 543 ФФД: 1.0 [21:05:39]line ЗНМ: 0300000109 [21:05:39]line РНМ: 0000000000091777 [21:05:39]line Версия ККМ: 001 [21:05:39]line ФМ: 0000000000871756 [21:05:39]line ФД: 201684 [21:05:39]line ФПД: 122450239269532 [21:05:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T210538&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201684&fm=122450239269532&tin=02508201610067®Number=0000000000091777&sum=50000 [21:05:39]OFD Sender: Processing packet 201684 [packets to send 112, broken 111] [21:05:39]ProducePacketName [21:05:39]name=ofd_packets/00201684 [21:05:39]OFD Sender: To server: pG, [21:05:39]CommunicateWithHost lk.salyk.kg:30040 [21:05:39]ConnectInit lk.salyk.kg [21:05:39]written 0, free lines is 4095 [21:05:39]Connected sock=10 [21:05:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 FA 65 07 01 8C 3B 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 32 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 BE 01 00 00 F4 03 04 00 A2 59 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D4 13 03 00 35 04 06 00 6F 5E 2B 03 AA 9C D7 FE EA EE 2B 98 10 E5 [21:05:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 58 C4 47 00 B5 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D4 13 03 00 F4 03 04 00 4A 05 1D 67 B6 04 01 00 00 5B B5 1A 35 13 32 19 D6 [21:05:39]CommunicateWithHost err = 0 [21:05:39]CheckOFDResponse [21:05:39]1017 (14) - 77093643461234 [21:05:39]1041 (16) - 0000000000871756 [21:05:39]1040 (4) - 201684 [21:05:39]1012 (4) - 26.10.2024 15:05 [21:05:39]1206 (1) - 0 [21:05:39]OFD Sender: Remove packet 201684 [21:05:39]ProducePacketName [21:05:39]name=ofd_packets/00201684 [21:05:39]NVStorageDeleteData [21:05:40]Write to MH i2c: 01 00 00 E9 0E F7 [21:05:40]Write i2c OK [21:05:40]MH_I2C_Read... [21:05:40]Read from MH i2c: 01 [21:05:40]MH_I2C_Read... [21:05:40]Read from MH i2c: 01 07 00 [21:05:40]MH_I2C_Read... [21:05:40]Read from MH i2c: 01 07 00 E9 0E 00 00 00 00 00 99 0C A3 [21:05:40]RasterBufferAndPrint [21:05:40]line [21:05:40]line [21:05:40]line [21:05:40]line [21:05:40]line [21:05:40]written 0, free lines is 3232 [21:05:40]MH_Cut [21:05:40]Write to MH i2c: D1 01 00 F0 0E 01 D0 [21:05:40]Write i2c OK [21:05:40]MH_I2C_Read... [21:05:40]Read from MH i2c: D1 [21:05:40]MH_I2C_Read... [21:05:40]Read from MH i2c: D1 01 00 [21:05:40]MH_I2C_Read... [21:05:40]Read from MH i2c: D1 01 00 F0 0E 00 CF [21:05:40]Write to MH i2c: 01 00 00 F1 0E FF [21:05:40]Write i2c OK [21:05:40]MH_I2C_Read... [21:05:40]OFD Sender: No OFD packet to send [21:05:40]*** Cut start [21:05:40]*** Purtial cut [21:05:40]*** Stage 1: CUTSNS_PIN = 1 [21:05:41]Read from MH i2c: 01 [21:05:41]MH_I2C_Read... [21:05:41]*** Stop cut motor [21:05:41]*** Cut end [21:05:41]Read from MH i2c: 01 07 00 [21:05:41]MH_I2C_Read... [21:05:41]Read from MH i2c: 01 07 00 F1 0E 00 00 00 00 00 FF 0F 14 [21:05:41]process_action close_receipt done [21:05:41]requested_data is exist [21:05:41]produce_requested_data [21:05:41]requested_item fm.sn is exist - process it [21:05:41]wFMCommunicate request_size=4 [21:05:41]MH_SAM_APDU [21:05:41]CAPDU: 80 11 00 00 [21:05:41]Write to MH i2c: E2 08 00 F2 0E 80 11 00 00 00 00 00 00 7A [21:05:41]Write i2c OK [21:05:41]MH_I2C_Read... [21:05:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:41]Read from MH i2c: E2 [21:05:41]MH_I2C_Read... [21:05:41]Read from MH i2c: E2 17 00 [21:05:41]MH_I2C_Read... [21:05:41]Read from MH i2c: E2 17 00 F2 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CF [21:05:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:05:41]wFMCommunicate OK [21:05:41]requested_item fd.num is exist - process it [21:05:41]SAM_PROTO_GetFieldsCounters [21:05:41]wFMCommunicate request_size=4 [21:05:41]MH_SAM_APDU [21:05:41]CAPDU: 80 13 00 00 [21:05:41]Write to MH i2c: E2 08 00 F3 0E 80 13 00 00 00 00 00 00 7D [21:05:41]Write i2c OK [21:05:41]MH_I2C_Read... [21:05:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:05:41]Read from MH i2c: E2 [21:05:41]MH_I2C_Read... [21:05:41]Read from MH i2c: E2 62 00 [21:05:41]MH_I2C_Read... [21:05:41]Read from MH i2c: E2 62 00 F3 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D4 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BE 01 00 00 5E 04 04 00 BE 01 00 00 57 04 04 00 BF 01 00 00 19 04 04 00 00 00 00 00 90 00 EE [21:05:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D4 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BE 01 00 00 5E 04 04 00 BE 01 00 00 57 04 04 00 BF 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:05:41]wFMCommunicate OK [21:05:41]SAM_PROTO_GetFieldsCounters done [21:05:41]requested_item shift.num is exist - process it [21:05:41]requested_item shift.opened is exist - process it [21:05:41]req_shift_opened [21:05:41]FM_GetShiftState [21:05:41]SAM_PROTO_GetShiftState [21:05:41]wFMCommunicate request_size=4 [21:05:41]MH_SAM_APDU [21:05:41]CAPDU: 80 13 01 00 [21:05:41]Write to MH i2c: E2 08 00 F4 0E 80 13 01 00 00 00 00 00 7F [21:05:41]Write i2c OK [21:05:41]MH_I2C_Read... [21:05:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:41]Read from MH i2c: E2 [21:05:41]MH_I2C_Read... [21:05:41]Read from MH i2c: E2 0E 00 [21:05:41]MH_I2C_Read... [21:05:41]Read from MH i2c: E2 0E 00 F4 0E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 8E [21:05:41]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [21:05:41]wFMCommunicate OK [21:05:41]SAM_PROTO_GetShiftState done [21:05:41]FM_GetShiftState done [21:05:41]req_shift_opened done [21:05:41]requested_item shift.open_date is exist - process it [21:05:41]req_shift_open_date [21:05:41]req_shift_open_date done [21:05:41]produce_requested_data done [21:05:41]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201684,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [21:05:41]process_action_free close_receipt [21:05:41]json_value_free [21:05:41]json_value_free done [21:05:41]process_json_proto returns [21:05:41]Send response to host [21:05:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201684,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [21:05:41]free response buf [21:05:41]execute_script done [21:05:41]execute_script returns [21:05:41]free content buf [21:05:41]Sock 9.Close socket [21:05:41]Sock 9.Thread stoped [21:05:45]OFD Sender: No OFD packet to send [21:05:50]OFD Sender: No OFD packet to send [21:05:55]OFD Sender: No OFD packet to send [21:06:00]OFD Sender: No OFD packet to send [21:06:05]OFD Sender: No OFD packet to send [21:06:10]OFD Sender: No OFD packet to send [21:06:15]OFD Sender: No OFD packet to send [21:06:20]OFD Sender: No OFD packet to send [21:06:25]OFD Sender: No OFD packet to send [21:06:30]OFD Sender: No OFD packet to send [21:06:35]OFD Sender: No OFD packet to send [21:06:40]OFD Sender: No OFD packet to send [21:06:45]OFD Sender: No OFD packet to send [21:06:50]OFD Sender: No OFD packet to send [21:06:55]OFD Sender: No OFD packet to send [21:07:00]OFD Sender: No OFD packet to send [21:07:05]OFD Sender: No OFD packet to send [21:07:10]OFD Sender: No OFD packet to send [21:07:15]OFD Sender: No OFD packet to send [21:07:20]OFD Sender: No OFD packet to send [21:07:25]OFD Sender: No OFD packet to send [21:07:30]OFD Sender: No OFD packet to send [21:07:35]OFD Sender: No OFD packet to send [21:07:40]OFD Sender: No OFD packet to send [21:07:45]OFD Sender: No OFD packet to send [21:07:50]OFD Sender: No OFD packet to send [21:07:55]OFD Sender: No OFD packet to send [21:08:00]OFD Sender: No OFD packet to send [21:08:05]OFD Sender: No OFD packet to send [21:08:10]OFD Sender: No OFD packet to send [21:08:15]OFD Sender: No OFD packet to send [21:08:20]OFD Sender: No OFD packet to send [21:08:25]OFD Sender: No OFD packet to send [21:08:30]OFD Sender: No OFD packet to send [21:08:35]OFD Sender: No OFD packet to send [21:08:40]OFD Sender: No OFD packet to send [21:08:45]OFD Sender: No OFD packet to send [21:08:50]OFD Sender: No OFD packet to send [21:08:55]OFD Sender: No OFD packet to send [21:08:56]accept exits with 7 [21:08:56]New connection [21:08:56]New thread 3066465636 created [21:08:56]Thread 3066608996 joined [21:08:56]Waiting for new connection... [21:08:56] Sock 7.Parse request [21:08:56]Sock 7.Check first char [21:08:56]Sock 7.First char is OK [21:08:56]request: POST /json_proto HTTP/1.0 [21:08:56]Method: POST [21:08:56]URL: /json_proto [21:08:56]Method is POST - this is cgi request [21:08:56]url: /json_proto [21:08:56]query_string will be loaded in cgi processing [21:08:56]execute_cgi json_proto POST (null) [21:08:56]execute_cgi path=json_proto method=POST [21:08:56]POST find Content-Length [21:08:56]Host: 172.17.63.195:8080 [21:08:56]Content-Length: 675 [21:08:56]Content-Type: application/json [21:08:56] [21:08:56]POST finish read [21:08:56]Found Content-Length = 675 [21:08:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 21.930, "sum" : 1500.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [21:08:56]execute_script... [21:08: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)449444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 21.930, "sum" : 1500.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [21:08:56]POST & json_proto [21:08:56]process_json_proto [21:08:56]json parsed OK: [21:08:56]protocol is kg_v1.0 [21:08:56]action value=close_receipt [21:08:56]process_action close_receipt [21:08:56]cmd_close_receipt [21:08:56]MH_GetDate [21:08:56]Write to MH i2c: F0 00 00 F5 0E F2 [21:08:56]Write i2c OK [21:08:56]MH_I2C_Read... [21:08:56]Read from MH i2c: F0 [21:08:56]MH_I2C_Read... [21:08:56]Read from MH i2c: F0 09 00 [21:08:56]MH_I2C_Read... [21:08:56]Read from MH i2c: F0 09 00 F5 0E 00 69 5A 1D 67 68 46 19 67 70 [21:08:56]GetLastDocTimeStamp 1729976738 [21:08:56]current date 1729976937 [21:08:56]FM_GetShiftState [21:08:56]SAM_PROTO_GetShiftState [21:08:56]wFMCommunicate request_size=4 [21:08:56]MH_SAM_APDU [21:08:56]CAPDU: 80 13 01 00 [21:08:56]Write to MH i2c: E2 08 00 F6 0E 80 13 01 00 00 00 00 00 81 [21:08:56]Write i2c OK [21:08:56]MH_I2C_Read... [21:08:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:56]Read from MH i2c: E2 [21:08:56]MH_I2C_Read... [21:08:56]Read from MH i2c: E2 0E 00 [21:08:56]MH_I2C_Read... [21:08:56]Read from MH i2c: E2 0E 00 F6 0E 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 90 [21:08:56]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [21:08:56]wFMCommunicate OK [21:08:56]SAM_PROTO_GetShiftState done [21:08:56]FM_GetShiftState done [21:08:56]opened in 1729900879 [21:08:56]opened+sec_in_day 1729987279 [21:08:56]quantity*price = 150001 [21:08:56]sum+1 = 150002 [21:08:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.29 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 447 26.10.2024 21:08 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201685 ФПД: 245355234578059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T210857&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201685&fm=245355234578059&tin=02508201610067®Number=0000000000091777&sum=150000 [21:08:58]StoreToDocumentArchive [21:08:58]shift 543 fd 201685 [21:08:58]save to /storage/0543/doc_00201685 [21:08:58]save last doc name /storage/0543/doc_00201685 to /storage/kkm_last_doc_name [21:08:58]save OK [21:08:58]Clear old archive folders... [21:08:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:08:58]tlvbuf is 0106CE40 [21:08:58]SAM_PROTO_ClearQueue [21:08:58]wFMCommunicate request_size=4 [21:08:58]MH_SAM_APDU [21:08:58]CAPDU: 80 09 00 00 [21:08:58]Write to MH i2c: E2 08 00 03 0F 80 09 00 00 00 00 00 00 84 [21:08:58]Write i2c OK [21:08:58]MH_I2C_Read... [21:08:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:08:58]Read from MH i2c: E2 [21:08:58]MH_I2C_Read... [21:08:58]Read from MH i2c: E2 03 00 [21:08:58]MH_I2C_Read... [21:08:58]Read from MH i2c: E2 03 00 03 0F 00 90 00 86 [21:08:58]RAPDU: 90 00 [21:08:58]wFMCommunicate OK [21:08:58]SAM_PROTO_ClearQueue done [21:08:58]KKMCreateOFDPacket [21:08:58]OFDProtocolAddRootSTLVToBuf [21:08:58]FM_MakeSignedData [21:08:58]FM_MakeSignedData [21:08:58]SAM_PROTO_SignData [21:08:58]wFMCommunicate request_size=4 [21:08:58]MH_SAM_APDU [21:08:58]CAPDU: 80 0D 01 02 [21:08:58]Write to MH i2c: E2 08 00 04 0F 80 0D 01 02 00 00 00 00 8C [21:08:58]Write i2c OK [21:08:58]MH_I2C_Read... [21:08:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:08:58]Read from MH i2c: E2 [21:08:58]MH_I2C_Read... [21:08:58]Read from MH i2c: E2 03 00 [21:08:58]MH_I2C_Read... [21:08:58]Read from MH i2c: E2 03 00 04 0F 00 90 00 87 [21:08:58]RAPDU: 90 00 [21:08:58]wFMCommunicate OK [21:08:58]wFMCommunicate request_size=255 [21:08:58]MH_SAM_APDU [21:08:58]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 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 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 39 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 BF 01 00 00 F4 03 04 00 69 5A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D5 13 03 00 35 04 06 00 [21:08:58]Write to MH i2c: E2 02 01 05 0F 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 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 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 39 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 BF 01 00 00 F4 03 04 00 69 5A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D5 13 03 00 35 04 06 00 00 00 7C [21:08:58]Write i2c OK [21:08:58]MH_I2C_Read... [21:08:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:58]Read from MH i2c: E2 [21:08:58]MH_I2C_Read... [21:08:58]Read from MH i2c: E2 03 00 [21:08:58]MH_I2C_Read... [21:08:58]Read from MH i2c: E2 03 00 05 0F 00 90 00 88 [21:08:58]RAPDU: 90 00 [21:08:58]wFMCommunicate OK [21:08:58]wFMCommunicate request_size=11 [21:08:58]MH_SAM_APDU [21:08:58]CAPDU: 80 0D 02 02 06 DF 26 37 99 CE 8B [21:08:58]Write to MH i2c: E2 0E 00 06 0F 80 0D 02 02 06 00 DF 26 37 99 CE 8B 00 00 C9 [21:08:58]Write i2c OK [21:08:58]MH_I2C_Read... [21:08:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:58]Read from MH i2c: E2 [21:08:58]MH_I2C_Read... [21:08:58]Read from MH i2c: E2 03 00 [21:08:58]MH_I2C_Read... [21:08:58]Read from MH i2c: E2 03 00 06 0F 00 90 00 89 [21:08:58]RAPDU: 90 00 [21:08:58]wFMCommunicate OK [21:08:58]wFMCommunicate request_size=4 [21:08:58]MH_SAM_APDU [21:08:58]CAPDU: 80 0D 03 02 [21:08:58]Write to MH i2c: E2 08 00 07 0F 80 0D 03 02 00 00 00 00 91 [21:08:58]Write i2c OK [21:08:58]MH_I2C_Read... [21:08:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:08:58]Read from MH i2c: E2 [21:08:58]MH_I2C_Read... [21:08:58]Read from MH i2c: E2 0B 00 [21:08:58]MH_I2C_Read... [21:08:58]Read from MH i2c: E2 0B 00 07 0F 00 5B 17 19 3D 85 75 84 44 90 00 1C [21:08:58]RAPDU: 5B 17 19 3D 85 75 84 44 90 00 [21:08:58]wFMCommunicate OK [21:08:58]SAM_PROTO_SignData done [21:08:58]FM_MakeSignedData done [21:08:58]CreateOFDProtocolMessage [21:08:58]wFMCommunicate request_size=4 [21:08:58]MH_SAM_APDU [21:08:58]CAPDU: 80 11 00 00 [21:08:58]Write to MH i2c: E2 08 00 08 0F 80 11 00 00 00 00 00 00 91 [21:08:58]Write i2c OK [21:08:58]MH_I2C_Read... [21:08:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:58]Read from MH i2c: E2 [21:08:58]MH_I2C_Read... [21:08:58]Read from MH i2c: E2 17 00 [21:08:58]MH_I2C_Read... [21:08:58]Read from MH i2c: E2 17 00 08 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E6 [21:08:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:08:58]wFMCommunicate OK [21:08:58]CreateOFDProtocolMessage done [21:08:58]OFDSenderStorePacket 201685 [21:08:58]StoreOFDPacket docnum=201685 [21:08:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 0C E9 08 01 49 D2 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 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 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 39 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 BF 01 00 00 F4 03 04 00 69 5A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D5 13 03 00 35 04 06 00 DF 26 37 99 CE 8B 5B 17 19 3D 85 75 84 44 [21:08:58]CheckFolder [21:08:58]dirname=/storage/ofd_packets [21:08:58]CheckFolder done [21:08:58]ProducePacketName [21:08:58]name=ofd_packets/00201685 [21:08:58]NVStorageSaveData ofd_packets/00201685 [21:08:58]File name is /storage/ofd_packets/00201685 [21:08:58]Write 302 bytes [21:08:58]NVStorageSaveData done [21:08:58]OFDSenderStorePacket done [21:08:58]KKMCreateOFDPacket done [21:08:58]NVStorageSaveData kkm_last_timestamp [21:08:58]File name is /storage/kkm_last_timestamp [21:08:58]Write 4 bytes [21:08:58]NVStorageSaveData done [21:08:58]ExternCall_PrintAddStr [21:08:58]wPrintStart [21:08:58]Write to MH i2c: 01 00 00 09 0F 18 [21:08:58]Write i2c OK [21:08:58]MH_I2C_Read... [21:08:58]Read from MH i2c: 01 [21:08:58]MH_I2C_Read... [21:08:58]Read from MH i2c: 01 07 00 [21:08:58]MH_I2C_Read... [21:08:58]Read from MH i2c: 01 07 00 09 0F 00 00 00 00 00 FF 0F 2D [21:08:58]RasterBufferAndPrint [21:08:58]line Счет N : (1)449444 [21:08:58]line ИНН: 02508201610067 [21:08:58]line Контрольно-Кассовый Чек [21:08:58]line ПРОДАЖА [21:08:58]line ТРК (МРК, ГНК) : 63 [21:08:58]line Товар: 2710124130 [21:08:58]line SUPER 92-К-5 [21:08:58]line 21.930 * 68.40 [21:08:58]line = 1500.01 [21:08:58]line НДС 12% НСП 1% [21:08:58]line > о реализуемом товаре [21:08:58]line ОКРУГЛЕНИЕ: -0.01 [21:08:58]line ИТОГО: 1500.00 [21:08:58]line Внесено: 1500.00 [21:08:58]line СДАЧА: 0.00 [21:08:58]line НСП 1% : 13.27 [21:08:58]line НДС 12% : 159.29 [21:08:58]line Наличными: 1500.00 [21:08:58]line Безнал.: 0.00 [21:08:58]line Место: АЗС № 171 "Партнер Нефть" [21:08:58]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [21:08:58]line СНО: Общий режим [21:08:58]line Чек 447 26.10.2024 21:08 [21:08:58]line Смена: 543 ФФД: 1.0 [21:08:58]line ЗНМ: 0300000109 [21:08:58]line РНМ: 0000000000091777 [21:08:58]line Версия ККМ: 001 [21:08:58]line ФМ: 0000000000871756 [21:08:58]line ФД: 201685 [21:08:58]line ФПД: 245355234578059 [21:08:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T210857&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201685&fm=245355234578059&tin=02508201610067®Number=0000000000091777&sum=150000 [21:08:58]OFD Sender: Processing packet 201685 [packets to send 112, broken 111] [21:08:58]ProducePacketName [21:08:58]name=ofd_packets/00201685 [21:08:58]OFD Sender: To server: pG, [21:08:58]CommunicateWithHost lk.salyk.kg:30040 [21:08:58]ConnectInit lk.salyk.kg [21:08:58]written 0, free lines is 4095 [21:08:59]Connected sock=10 [21:08:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 0C E9 08 01 49 D2 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 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 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 39 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 BF 01 00 00 F4 03 04 00 69 5A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D5 13 03 00 35 04 06 00 DF 26 37 99 CE 8B 5B 17 19 3D 85 75 84 44 [21:08:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 6C 24 47 00 9C E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D5 13 03 00 F4 03 04 00 11 06 1D 67 B6 04 01 00 00 86 9F 04 08 3A 60 4A 81 [21:08:59]CommunicateWithHost err = 0 [21:08:59]CheckOFDResponse [21:08:59]1017 (14) - 77093643461234 [21:08:59]1041 (16) - 0000000000871756 [21:08:59]1040 (4) - 201685 [21:08:59]1012 (4) - 26.10.2024 15:09 [21:08:59]1206 (1) - 0 [21:08:59]OFD Sender: Remove packet 201685 [21:08:59]ProducePacketName [21:08:59]name=ofd_packets/00201685 [21:08:59]NVStorageDeleteData [21:08:59]Write to MH i2c: 01 00 00 34 0F 43 [21:08:59]Write i2c OK [21:08:59]MH_I2C_Read... [21:08:59]Read from MH i2c: 01 [21:08:59]MH_I2C_Read... [21:08:59]Read from MH i2c: 01 07 00 [21:08:59]MH_I2C_Read... [21:08:59]Read from MH i2c: 01 07 00 34 0F 00 00 00 00 00 91 0C E7 [21:08:59]RasterBufferAndPrint [21:08:59]line [21:08:59]line [21:08:59]line [21:08:59]line [21:08:59]line [21:08:59]written 0, free lines is 3221 [21:08:59]MH_Cut [21:08:59]Write to MH i2c: D1 01 00 3B 0F 01 1C [21:08:59]Write i2c OK [21:08:59]MH_I2C_Read... [21:08:59]Read from MH i2c: D1 [21:08:59]MH_I2C_Read... [21:08:59]Read from MH i2c: D1 01 00 [21:08:59]MH_I2C_Read... [21:08:59]Read from MH i2c: D1 01 00 3B 0F 00 1B [21:08:59]Write to MH i2c: 01 00 00 3C 0F 4B [21:08:59]Write i2c OK [21:08:59]MH_I2C_Read... [21:08:59]OFD Sender: No OFD packet to send [21:09:00]*** Cut start [21:09:00]*** Purtial cut [21:09:00]*** Stage 1: CUTSNS_PIN = 1 [21:09:00]Read from MH i2c: 01 [21:09:00]MH_I2C_Read... [21:09:00]*** Stop cut motor [21:09:00]*** Cut end [21:09:00]Read from MH i2c: 01 07 00 [21:09:00]MH_I2C_Read... [21:09:00]Read from MH i2c: 01 07 00 3C 0F 00 00 00 00 00 FF 0F 60 [21:09:00]process_action close_receipt done [21:09:00]requested_data is exist [21:09:00]produce_requested_data [21:09:00]requested_item fm.sn is exist - process it [21:09:00]wFMCommunicate request_size=4 [21:09:00]MH_SAM_APDU [21:09:00]CAPDU: 80 11 00 00 [21:09:00]Write to MH i2c: E2 08 00 3D 0F 80 11 00 00 00 00 00 00 C6 [21:09:00]Write i2c OK [21:09:00]MH_I2C_Read... [21:09:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:00]Read from MH i2c: E2 [21:09:00]MH_I2C_Read... [21:09:00]Read from MH i2c: E2 17 00 [21:09:00]MH_I2C_Read... [21:09:00]Read from MH i2c: E2 17 00 3D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1B [21:09:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:09:00]wFMCommunicate OK [21:09:00]requested_item fd.num is exist - process it [21:09:00]SAM_PROTO_GetFieldsCounters [21:09:00]wFMCommunicate request_size=4 [21:09:00]MH_SAM_APDU [21:09:00]CAPDU: 80 13 00 00 [21:09:00]Write to MH i2c: E2 08 00 3E 0F 80 13 00 00 00 00 00 00 C9 [21:09:00]Write i2c OK [21:09:00]MH_I2C_Read... [21:09:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:09:00]Read from MH i2c: E2 [21:09:00]MH_I2C_Read... [21:09:00]Read from MH i2c: E2 62 00 [21:09:00]MH_I2C_Read... [21:09:00]Read from MH i2c: E2 62 00 3E 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D5 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BF 01 00 00 5E 04 04 00 BF 01 00 00 57 04 04 00 C0 01 00 00 19 04 04 00 00 00 00 00 90 00 3E [21:09:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D5 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BF 01 00 00 5E 04 04 00 BF 01 00 00 57 04 04 00 C0 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:09:00]wFMCommunicate OK [21:09:00]SAM_PROTO_GetFieldsCounters done [21:09:00]requested_item shift.num is exist - process it [21:09:00]requested_item shift.opened is exist - process it [21:09:00]req_shift_opened [21:09:00]FM_GetShiftState [21:09:00]SAM_PROTO_GetShiftState [21:09:00]wFMCommunicate request_size=4 [21:09:00]MH_SAM_APDU [21:09:00]CAPDU: 80 13 01 00 [21:09:00]Write to MH i2c: E2 08 00 3F 0F 80 13 01 00 00 00 00 00 CB [21:09:00]Write i2c OK [21:09:00]MH_I2C_Read... [21:09:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:00]Read from MH i2c: E2 [21:09:00]MH_I2C_Read... [21:09:00]Read from MH i2c: E2 0E 00 [21:09:00]MH_I2C_Read... [21:09:00]Read from MH i2c: E2 0E 00 3F 0F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 DA [21:09:00]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [21:09:00]wFMCommunicate OK [21:09:00]SAM_PROTO_GetShiftState done [21:09:00]FM_GetShiftState done [21:09:00]req_shift_opened done [21:09:00]requested_item shift.open_date is exist - process it [21:09:00]req_shift_open_date [21:09:00]req_shift_open_date done [21:09:00]produce_requested_data done [21:09:00]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201685,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [21:09:00]process_action_free close_receipt [21:09:00]json_value_free [21:09:00]json_value_free done [21:09:00]process_json_proto returns [21:09:00]Send response to host [21:09:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201685,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [21:09:00]free response buf [21:09:00]execute_script done [21:09:00]execute_script returns [21:09:00]free content buf [21:09:00]Sock 7.Close socket [21:09:00]Sock 7.Thread stoped [21:09:04]OFD Sender: No OFD packet to send [21:09:09]OFD Sender: No OFD packet to send [21:09:14]OFD Sender: No OFD packet to send [21:09:15]accept exits with 9 [21:09:15]New connection [21:09:15]New thread 3066608996 created [21:09:15]Thread 3066465636 joined [21:09:15]Waiting for new connection... [21:09:15] Sock 9.Parse request [21:09:15]Sock 9.Check first char [21:09:15]Sock 9.First char is OK [21:09:15]request: POST /json_proto HTTP/1.0 [21:09:15]Method: POST [21:09:15]URL: /json_proto [21:09:15]Method is POST - this is cgi request [21:09:15]url: /json_proto [21:09:15]query_string will be loaded in cgi processing [21:09:15]execute_cgi json_proto POST (null) [21:09:15]execute_cgi path=json_proto method=POST [21:09:15]POST find Content-Length [21:09:15]Host: 172.17.63.195:8080 [21:09:15]Content-Length: 677 [21:09:15]Content-Type: application/json [21:09:15] [21:09:15]POST finish read [21:09:15]Found Content-Length = 677 [21:09:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "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" ] } } [21:09:15]execute_script... [21:09: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)449445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "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" ] } } [21:09:15]POST & json_proto [21:09:15]process_json_proto [21:09:15]json parsed OK: [21:09:15]protocol is kg_v1.0 [21:09:15]action value=close_receipt [21:09:15]process_action close_receipt [21:09:15]cmd_close_receipt [21:09:15]MH_GetDate [21:09:15]Write to MH i2c: F0 00 00 40 0F 3E [21:09:15]Write i2c OK [21:09:15]MH_I2C_Read... [21:09:15]Read from MH i2c: F0 [21:09:15]MH_I2C_Read... [21:09:15]Read from MH i2c: F0 09 00 [21:09:15]MH_I2C_Read... [21:09:15]Read from MH i2c: F0 09 00 40 0F 00 7C 5A 1D 67 68 46 19 67 CF [21:09:15]GetLastDocTimeStamp 1729976937 [21:09:15]current date 1729976956 [21:09:15]FM_GetShiftState [21:09:15]SAM_PROTO_GetShiftState [21:09:15]wFMCommunicate request_size=4 [21:09:15]MH_SAM_APDU [21:09:15]CAPDU: 80 13 01 00 [21:09:15]Write to MH i2c: E2 08 00 41 0F 80 13 01 00 00 00 00 00 CD [21:09:15]Write i2c OK [21:09:15]MH_I2C_Read... [21:09:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:15]Read from MH i2c: E2 [21:09:15]MH_I2C_Read... [21:09:15]Read from MH i2c: E2 0E 00 [21:09:15]MH_I2C_Read... [21:09:15]Read from MH i2c: E2 0E 00 41 0F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 DC [21:09:15]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [21:09:15]wFMCommunicate OK [21:09:15]SAM_PROTO_GetShiftState done [21:09:15]FM_GetShiftState done [21:09:15]opened in 1729900879 [21:09:15]opened+sec_in_day 1729987279 [21:09:15]quantity*price = 34052 [21:09:15]sum+1 = 34053 [21:09:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.16 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 448 26.10.2024 21:09 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201686 ФПД: 120337358832128 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T210916&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201686&fm=120337358832128&tin=02508201610067®Number=0000000000091777&sum=34000 [21:09:16]StoreToDocumentArchive [21:09:16]shift 543 fd 201686 [21:09:16]save to /storage/0543/doc_00201686 [21:09:16]save last doc name /storage/0543/doc_00201686 to /storage/kkm_last_doc_name [21:09:16]save OK [21:09:16]Clear old archive folders... [21:09:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:09:16]tlvbuf is 01046760 [21:09:16]SAM_PROTO_ClearQueue [21:09:16]wFMCommunicate request_size=4 [21:09:16]MH_SAM_APDU [21:09:16]CAPDU: 80 09 00 00 [21:09:16]Write to MH i2c: E2 08 00 4E 0F 80 09 00 00 00 00 00 00 CF [21:09:16]Write i2c OK [21:09:16]MH_I2C_Read... [21:09:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:09:16]Read from MH i2c: E2 [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: E2 03 00 [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: E2 03 00 4E 0F 00 90 00 D1 [21:09:16]RAPDU: 90 00 [21:09:16]wFMCommunicate OK [21:09:16]SAM_PROTO_ClearQueue done [21:09:16]KKMCreateOFDPacket [21:09:16]OFDProtocolAddRootSTLVToBuf [21:09:16]FM_MakeSignedData [21:09:16]FM_MakeSignedData [21:09:16]SAM_PROTO_SignData [21:09:16]wFMCommunicate request_size=4 [21:09:16]MH_SAM_APDU [21:09:16]CAPDU: 80 0D 01 02 [21:09:16]Write to MH i2c: E2 08 00 4F 0F 80 0D 01 02 00 00 00 00 D7 [21:09:16]Write i2c OK [21:09:16]MH_I2C_Read... [21:09:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:09:16]Read from MH i2c: E2 [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: E2 03 00 [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: E2 03 00 4F 0F 00 90 00 D2 [21:09:16]RAPDU: 90 00 [21:09:16]wFMCommunicate OK [21:09:16]wFMCommunicate request_size=255 [21:09:16]MH_SAM_APDU [21:09:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 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 20 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 C0 01 00 00 F4 03 04 00 7C 5A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D6 13 03 00 35 04 06 00 6D [21:09:16]Write to MH i2c: E2 02 01 50 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 32 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 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 20 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 C0 01 00 00 F4 03 04 00 7C 5A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D6 13 03 00 35 04 06 00 6D 00 00 39 [21:09:16]Write i2c OK [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: E2 [21:09:16]MH_I2C_Read... [21:09:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:16]Read from MH i2c: E2 03 00 [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: E2 03 00 50 0F 00 90 00 D3 [21:09:16]RAPDU: 90 00 [21:09:16]wFMCommunicate OK [21:09:16]wFMCommunicate request_size=10 [21:09:16]MH_SAM_APDU [21:09:16]CAPDU: 80 0D 02 02 05 72 39 86 C2 00 [21:09:16]Write to MH i2c: E2 0D 00 51 0F 80 0D 02 02 05 00 72 39 86 C2 00 00 00 D7 [21:09:16]Write i2c OK [21:09:16]MH_I2C_Read... [21:09:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:16]Read from MH i2c: E2 [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: E2 03 00 [21:09:16]MH_I2C_Read... [21:09:16]Read from MH i2c: E2 03 00 51 0F 00 90 00 D4 [21:09:16]RAPDU: 90 00 [21:09:16]wFMCommunicate OK [21:09:16]wFMCommunicate request_size=4 [21:09:16]MH_SAM_APDU [21:09:16]CAPDU: 80 0D 03 02 [21:09:16]Write to MH i2c: E2 08 00 52 0F 80 0D 03 02 00 00 00 00 DC [21:09:16]Write i2c OK [21:09:16]MH_I2C_Read... [21:09:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:09:17]Read from MH i2c: E2 [21:09:17]MH_I2C_Read... [21:09:17]Read from MH i2c: E2 0B 00 [21:09:17]MH_I2C_Read... [21:09:17]Read from MH i2c: E2 0B 00 52 0F 00 58 4C 61 3C 27 F2 D2 10 90 00 19 [21:09:17]RAPDU: 58 4C 61 3C 27 F2 D2 10 90 00 [21:09:17]wFMCommunicate OK [21:09:17]SAM_PROTO_SignData done [21:09:17]FM_MakeSignedData done [21:09:17]CreateOFDProtocolMessage [21:09:17]wFMCommunicate request_size=4 [21:09:17]MH_SAM_APDU [21:09:17]CAPDU: 80 11 00 00 [21:09:17]Write to MH i2c: E2 08 00 53 0F 80 11 00 00 00 00 00 00 DC [21:09:17]Write i2c OK [21:09:17]MH_I2C_Read... [21:09:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:17]Read from MH i2c: E2 [21:09:17]MH_I2C_Read... [21:09:17]Read from MH i2c: E2 17 00 [21:09:17]MH_I2C_Read... [21:09:17]Read from MH i2c: E2 17 00 53 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 31 [21:09:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:09:17]wFMCommunicate OK [21:09:17]CreateOFDProtocolMessage done [21:09:17]OFDSenderStorePacket 201686 [21:09:17]StoreOFDPacket docnum=201686 [21:09:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 15 70 07 01 53 A7 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 32 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 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 20 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 C0 01 00 00 F4 03 04 00 7C 5A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D6 13 03 00 35 04 06 00 6D 72 39 86 C2 00 58 4C 61 3C 27 F2 D2 10 [21:09:17]CheckFolder [21:09:17]dirname=/storage/ofd_packets [21:09:17]CheckFolder done [21:09:17]ProducePacketName [21:09:17]name=ofd_packets/00201686 [21:09:17]NVStorageSaveData ofd_packets/00201686 [21:09:17]File name is /storage/ofd_packets/00201686 [21:09:17]Write 301 bytes [21:09:17]NVStorageSaveData done [21:09:17]OFDSenderStorePacket done [21:09:17]KKMCreateOFDPacket done [21:09:17]NVStorageSaveData kkm_last_timestamp [21:09:17]File name is /storage/kkm_last_timestamp [21:09:17]Write 4 bytes [21:09:17]NVStorageSaveData done [21:09:17]ExternCall_PrintAddStr [21:09:17]wPrintStart [21:09:17]Write to MH i2c: 01 00 00 54 0F 63 [21:09:17]Write i2c OK [21:09:17]MH_I2C_Read... [21:09:17]Read from MH i2c: 01 [21:09:17]MH_I2C_Read... [21:09:17]Read from MH i2c: 01 07 00 [21:09:17]MH_I2C_Read... [21:09:17]Read from MH i2c: 01 07 00 54 0F 00 00 00 00 00 FF 0F 78 [21:09:17]RasterBufferAndPrint [21:09:17]line Счет N : (1)449445 [21:09:17]line ИНН: 02508201610067 [21:09:17]line Контрольно-Кассовый Чек [21:09:17]line ПРОДАЖА [21:09:17]line ТРК (МРК, ГНК) : 41 [21:09:17]line Товар: 2710124130 [21:09:17]line Аи-92-К-2 [21:09:17]line 5.090 * 66.90 [21:09:17]line = 340.52 [21:09:17]line НДС 12% НСП 1% [21:09:17]line > о реализуемом товаре [21:09:17]line ОКРУГЛЕНИЕ: -0.52 [21:09:17]line ИТОГО: 340.00 [21:09:17]line Внесено: 340.00 [21:09:17]line СДАЧА: 0.00 [21:09:17]line НСП 1% : 3.01 [21:09:17]line НДС 12% : 36.16 [21:09:17]line Наличными: 340.00 [21:09:17]line Безнал.: 0.00 [21:09:17]line Место: АЗС № 171 "Партнер Нефть" [21:09:17]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [21:09:17]line СНО: Общий режим [21:09:17]line Чек 448 26.10.2024 21:09 [21:09:17]line Смена: 543 ФФД: 1.0 [21:09:17]line ЗНМ: 0300000109 [21:09:17]line РНМ: 0000000000091777 [21:09:17]line Версия ККМ: 001 [21:09:17]line ФМ: 0000000000871756 [21:09:17]line ФД: 201686 [21:09:17]line ФПД: 120337358832128 [21:09:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T210916&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201686&fm=120337358832128&tin=02508201610067®Number=0000000000091777&sum=34000 [21:09:17]OFD Sender: Processing packet 201686 [packets to send 112, broken 111] [21:09:17]ProducePacketName [21:09:17]name=ofd_packets/00201686 [21:09:17]OFD Sender: To server: pG, [21:09:17]CommunicateWithHost lk.salyk.kg:30040 [21:09:17]ConnectInit lk.salyk.kg [21:09:17]written 0, free lines is 4095 [21:09:17]Connected sock=10 [21:09:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 15 70 07 01 53 A7 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 32 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 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 20 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 C0 01 00 00 F4 03 04 00 7C 5A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D6 13 03 00 35 04 06 00 6D 72 39 86 C2 00 58 4C 61 3C 27 F2 D2 10 [21:09:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 34 8F 47 00 EF CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D6 13 03 00 F4 03 04 00 24 06 1D 67 B6 04 01 00 00 E6 25 BA 3B 5A CF 29 D5 [21:09:17]CommunicateWithHost err = 0 [21:09:17]CheckOFDResponse [21:09:17]1017 (14) - 77093643461234 [21:09:17]1041 (16) - 0000000000871756 [21:09:17]1040 (4) - 201686 [21:09:17]1012 (4) - 26.10.2024 15:09 [21:09:17]1206 (1) - 0 [21:09:17]OFD Sender: Remove packet 201686 [21:09:17]ProducePacketName [21:09:17]name=ofd_packets/00201686 [21:09:17]NVStorageDeleteData [21:09:17]Write to MH i2c: 01 00 00 7F 0F 8E [21:09:17]Write i2c OK [21:09:17]MH_I2C_Read... [21:09:17]Read from MH i2c: 01 [21:09:17]MH_I2C_Read... [21:09:17]Read from MH i2c: 01 07 00 [21:09:17]MH_I2C_Read... [21:09:17]Read from MH i2c: 01 07 00 7F 0F 00 00 00 00 00 99 0C 3A [21:09:17]RasterBufferAndPrint [21:09:17]line [21:09:17]line [21:09:17]line [21:09:17]line [21:09:17]line [21:09:17]written 0, free lines is 3229 [21:09:17]MH_Cut [21:09:17]Write to MH i2c: D1 01 00 86 0F 01 67 [21:09:17]Write i2c OK [21:09:17]MH_I2C_Read... [21:09:17]Read from MH i2c: D1 [21:09:17]MH_I2C_Read... [21:09:17]Read from MH i2c: D1 01 00 [21:09:17]MH_I2C_Read... [21:09:17]Read from MH i2c: D1 01 00 86 0F 00 66 [21:09:17]Write to MH i2c: 01 00 00 87 0F 96 [21:09:17]Write i2c OK [21:09:17]MH_I2C_Read... [21:09:18]OFD Sender: No OFD packet to send [21:09:18]*** Cut start [21:09:18]*** Purtial cut [21:09:18]*** Stage 1: CUTSNS_PIN = 1 [21:09:18]Read from MH i2c: 01 [21:09:18]MH_I2C_Read... [21:09:18]*** Stop cut motor [21:09:18]*** Cut end [21:09:18]Read from MH i2c: 01 07 00 [21:09:18]MH_I2C_Read... [21:09:18]Read from MH i2c: 01 07 00 87 0F 00 00 00 00 00 FF 0F AB [21:09:18]process_action close_receipt done [21:09:18]requested_data is exist [21:09:18]produce_requested_data [21:09:18]requested_item fm.sn is exist - process it [21:09:18]wFMCommunicate request_size=4 [21:09:18]MH_SAM_APDU [21:09:18]CAPDU: 80 11 00 00 [21:09:18]Write to MH i2c: E2 08 00 88 0F 80 11 00 00 00 00 00 00 11 [21:09:18]Write i2c OK [21:09:18]MH_I2C_Read... [21:09:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:19]Read from MH i2c: E2 [21:09:19]MH_I2C_Read... [21:09:19]Read from MH i2c: E2 17 00 [21:09:19]MH_I2C_Read... [21:09:19]Read from MH i2c: E2 17 00 88 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 66 [21:09:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:09:19]wFMCommunicate OK [21:09:19]requested_item fd.num is exist - process it [21:09:19]SAM_PROTO_GetFieldsCounters [21:09:19]wFMCommunicate request_size=4 [21:09:19]MH_SAM_APDU [21:09:19]CAPDU: 80 13 00 00 [21:09:19]Write to MH i2c: E2 08 00 89 0F 80 13 00 00 00 00 00 00 14 [21:09:19]Write i2c OK [21:09:19]MH_I2C_Read... [21:09:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:09:19]Read from MH i2c: E2 [21:09:19]MH_I2C_Read... [21:09:19]Read from MH i2c: E2 62 00 [21:09:19]MH_I2C_Read... [21:09:19]Read from MH i2c: E2 62 00 89 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D6 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C0 01 00 00 5E 04 04 00 C0 01 00 00 57 04 04 00 C1 01 00 00 19 04 04 00 00 00 00 00 90 00 8D [21:09:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D6 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C0 01 00 00 5E 04 04 00 C0 01 00 00 57 04 04 00 C1 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:09:19]wFMCommunicate OK [21:09:19]SAM_PROTO_GetFieldsCounters done [21:09:19]requested_item shift.num is exist - process it [21:09:19]requested_item shift.opened is exist - process it [21:09:19]req_shift_opened [21:09:19]FM_GetShiftState [21:09:19]SAM_PROTO_GetShiftState [21:09:19]wFMCommunicate request_size=4 [21:09:19]MH_SAM_APDU [21:09:19]CAPDU: 80 13 01 00 [21:09:19]Write to MH i2c: E2 08 00 8A 0F 80 13 01 00 00 00 00 00 16 [21:09:19]Write i2c OK [21:09:19]MH_I2C_Read... [21:09:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:19]Read from MH i2c: E2 [21:09:19]MH_I2C_Read... [21:09:19]Read from MH i2c: E2 0E 00 [21:09:19]MH_I2C_Read... [21:09:19]Read from MH i2c: E2 0E 00 8A 0F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 25 [21:09:19]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [21:09:19]wFMCommunicate OK [21:09:19]SAM_PROTO_GetShiftState done [21:09:19]FM_GetShiftState done [21:09:19]req_shift_opened done [21:09:19]requested_item shift.open_date is exist - process it [21:09:19]req_shift_open_date [21:09:19]req_shift_open_date done [21:09:19]produce_requested_data done [21:09:19]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201686,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [21:09:19]process_action_free close_receipt [21:09:19]json_value_free [21:09:19]json_value_free done [21:09:19]process_json_proto returns [21:09:19]Send response to host [21:09:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201686,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [21:09:19]free response buf [21:09:19]execute_script done [21:09:19]execute_script returns [21:09:19]free content buf [21:09:19]Sock 9.Close socket [21:09:19]Sock 9.Thread stoped [21:09:23]OFD Sender: No OFD packet to send [21:09:28]OFD Sender: No OFD packet to send [21:09:33]OFD Sender: No OFD packet to send [21:09:38]OFD Sender: No OFD packet to send [21:09:43]OFD Sender: No OFD packet to send [21:09:48]OFD Sender: No OFD packet to send [21:09:53]OFD Sender: No OFD packet to send [21:09:58]OFD Sender: No OFD packet to send [21:10:03]OFD Sender: No OFD packet to send [21:10:08]OFD Sender: No OFD packet to send [21:10:13]OFD Sender: No OFD packet to send [21:10:18]OFD Sender: No OFD packet to send [21:10:23]OFD Sender: No OFD packet to send [21:10:28]OFD Sender: No OFD packet to send [21:10:33]OFD Sender: No OFD packet to send [21:10:38]OFD Sender: No OFD packet to send [21:10:43]OFD Sender: No OFD packet to send [21:10:48]OFD Sender: No OFD packet to send [21:10:53]OFD Sender: No OFD packet to send [21:10:58]OFD Sender: No OFD packet to send [21:11:03]OFD Sender: No OFD packet to send [21:11:08]OFD Sender: No OFD packet to send [21:11:13]OFD Sender: No OFD packet to send [21:11:18]OFD Sender: No OFD packet to send [21:11:23]OFD Sender: No OFD packet to send [21:11:28]OFD Sender: No OFD packet to send [21:11:33]OFD Sender: No OFD packet to send [21:11:38]OFD Sender: No OFD packet to send [21:11:43]OFD Sender: No OFD packet to send [21:11:48]OFD Sender: No OFD packet to send [21:11:53]OFD Sender: No OFD packet to send [21:11:58]OFD Sender: No OFD packet to send [21:12:03]OFD Sender: No OFD packet to send [21:12:08]OFD Sender: No OFD packet to send [21:12:13]OFD Sender: No OFD packet to send [21:12:18]OFD Sender: No OFD packet to send [21:12:23]OFD Sender: No OFD packet to send [21:12:28]OFD Sender: No OFD packet to send [21:12:33]OFD Sender: No OFD packet to send [21:12:38]OFD Sender: No OFD packet to send [21:12:43]OFD Sender: No OFD packet to send [21:12:48]OFD Sender: No OFD packet to send [21:12:53]OFD Sender: No OFD packet to send [21:12:58]OFD Sender: No OFD packet to send [21:13:03]OFD Sender: No OFD packet to send [21:13:08]OFD Sender: No OFD packet to send [21:13:13]OFD Sender: No OFD packet to send [21:13:18]OFD Sender: No OFD packet to send [21:13:23]OFD Sender: No OFD packet to send [21:13:28]OFD Sender: No OFD packet to send [21:13:33]OFD Sender: No OFD packet to send [21:13:38]OFD Sender: No OFD packet to send [21:13:43]OFD Sender: No OFD packet to send [21:13:48]OFD Sender: No OFD packet to send [21:13:53]OFD Sender: No OFD packet to send [21:13:58]OFD Sender: No OFD packet to send [21:14:03]OFD Sender: No OFD packet to send [21:14:08]OFD Sender: No OFD packet to send [21:14:13]OFD Sender: No OFD packet to send [21:14:18]OFD Sender: No OFD packet to send [21:14:23]OFD Sender: No OFD packet to send [21:14:28]OFD Sender: No OFD packet to send [21:14:33]OFD Sender: No OFD packet to send [21:14:38]OFD Sender: No OFD packet to send [21:14:43]OFD Sender: No OFD packet to send [21:14:48]OFD Sender: No OFD packet to send [21:14:53]OFD Sender: No OFD packet to send [21:14:58]OFD Sender: No OFD packet to send [21:15:03]OFD Sender: No OFD packet to send [21:15:08]OFD Sender: No OFD packet to send [21:15:13]OFD Sender: No OFD packet to send [21:15:18]OFD Sender: No OFD packet to send [21:15:23]OFD Sender: No OFD packet to send [21:15:28]OFD Sender: No OFD packet to send [21:15:33]OFD Sender: No OFD packet to send [21:15:38]OFD Sender: No OFD packet to send [21:15:43]OFD Sender: No OFD packet to send [21:15:43]accept exits with 7 [21:15:43]New connection [21:15:43]New thread 3066465636 created [21:15:43]Thread 3066608996 joined [21:15:43]Waiting for new connection... [21:15:43] Sock 7.Parse request [21:15:43]Sock 7.Check first char [21:15:43]Sock 7.First char is OK [21:15:43]request: POST /json_proto HTTP/1.0 [21:15:43]Method: POST [21:15:43]URL: /json_proto [21:15:43]Method is POST - this is cgi request [21:15:43]url: /json_proto [21:15:43]query_string will be loaded in cgi processing [21:15:43]execute_cgi json_proto POST (null) [21:15:43]execute_cgi path=json_proto method=POST [21:15:43]POST find Content-Length [21:15:43]Host: 172.17.63.195:8080 [21:15:43]Content-Length: 675 [21:15:43]Content-Type: application/json [21:15:43] [21:15:43]POST finish read [21:15:43]Found Content-Length = 675 [21:15:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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" ] } } [21:15:43]execute_script... [21:15: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)449447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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" ] } } [21:15:43]POST & json_proto [21:15:43]process_json_proto [21:15:43]json parsed OK: [21:15:43]protocol is kg_v1.0 [21:15:43]action value=close_receipt [21:15:43]process_action close_receipt [21:15:43]cmd_close_receipt [21:15:43]MH_GetDate [21:15:43]Write to MH i2c: F0 00 00 8B 0F 89 [21:15:43]Write i2c OK [21:15:43]MH_I2C_Read... [21:15:43]Read from MH i2c: F0 [21:15:43]MH_I2C_Read... [21:15:43]Read from MH i2c: F0 09 00 [21:15:43]MH_I2C_Read... [21:15:43]Read from MH i2c: F0 09 00 8B 0F 00 00 5C 1D 67 68 46 19 67 A0 [21:15:43]GetLastDocTimeStamp 1729976956 [21:15:43]current date 1729977344 [21:15:43]FM_GetShiftState [21:15:43]SAM_PROTO_GetShiftState [21:15:43]wFMCommunicate request_size=4 [21:15:43]MH_SAM_APDU [21:15:43]CAPDU: 80 13 01 00 [21:15:43]Write to MH i2c: E2 08 00 8C 0F 80 13 01 00 00 00 00 00 18 [21:15:43]Write i2c OK [21:15:43]MH_I2C_Read... [21:15:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:43]Read from MH i2c: E2 [21:15:43]MH_I2C_Read... [21:15:43]Read from MH i2c: E2 0E 00 [21:15:43]MH_I2C_Read... [21:15:43]Read from MH i2c: E2 0E 00 8C 0F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 27 [21:15:43]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [21:15:43]wFMCommunicate OK [21:15:43]SAM_PROTO_GetShiftState done [21:15:43]FM_GetShiftState done [21:15:43]opened in 1729900879 [21:15:43]opened+sec_in_day 1729987279 [21:15:43]quantity*price = 100000 [21:15:43]sum+1 = 100002 [21:15:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 449 26.10.2024 21:15 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201687 ФПД: 258703015628927 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T211544&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201687&fm=258703015628927&tin=02508201610067®Number=0000000000091777&sum=100000 [21:15:44]StoreToDocumentArchive [21:15:44]shift 543 fd 201687 [21:15:44]save to /storage/0543/doc_00201687 [21:15:44]save last doc name /storage/0543/doc_00201687 to /storage/kkm_last_doc_name [21:15:44]save OK [21:15:44]Clear old archive folders... [21:15:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:15:44]tlvbuf is 0106DD30 [21:15:44]SAM_PROTO_ClearQueue [21:15:44]wFMCommunicate request_size=4 [21:15:44]MH_SAM_APDU [21:15:44]CAPDU: 80 09 00 00 [21:15:44]Write to MH i2c: E2 08 00 99 0F 80 09 00 00 00 00 00 00 1A [21:15:44]Write i2c OK [21:15:44]MH_I2C_Read... [21:15:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:15:45]Read from MH i2c: E2 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: E2 03 00 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: E2 03 00 99 0F 00 90 00 1C [21:15:45]RAPDU: 90 00 [21:15:45]wFMCommunicate OK [21:15:45]SAM_PROTO_ClearQueue done [21:15:45]KKMCreateOFDPacket [21:15:45]OFDProtocolAddRootSTLVToBuf [21:15:45]FM_MakeSignedData [21:15:45]FM_MakeSignedData [21:15:45]SAM_PROTO_SignData [21:15:45]wFMCommunicate request_size=4 [21:15:45]MH_SAM_APDU [21:15:45]CAPDU: 80 0D 01 02 [21:15:45]Write to MH i2c: E2 08 00 9A 0F 80 0D 01 02 00 00 00 00 22 [21:15:45]Write i2c OK [21:15:45]MH_I2C_Read... [21:15:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:15:45]Read from MH i2c: E2 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: E2 03 00 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: E2 03 00 9A 0F 00 90 00 1D [21:15:45]RAPDU: 90 00 [21:15:45]wFMCommunicate OK [21:15:45]wFMCommunicate request_size=255 [21:15:45]MH_SAM_APDU [21:15:45]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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 C1 01 00 00 F4 03 04 00 00 5C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D7 13 03 00 35 04 06 00 [21:15:45]Write to MH i2c: E2 02 01 9B 0F 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 C1 01 00 00 F4 03 04 00 00 5C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D7 13 03 00 35 04 06 00 00 00 3B [21:15:45]Write i2c OK [21:15:45]MH_I2C_Read... [21:15:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:45]Read from MH i2c: E2 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: E2 03 00 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: E2 03 00 9B 0F 00 90 00 1E [21:15:45]RAPDU: 90 00 [21:15:45]wFMCommunicate OK [21:15:45]wFMCommunicate request_size=11 [21:15:45]MH_SAM_APDU [21:15:45]CAPDU: 80 0D 02 02 06 EB 49 FD 59 50 7F [21:15:45]Write to MH i2c: E2 0E 00 9C 0F 80 0D 02 02 06 00 EB 49 FD 59 50 7F 00 00 8A [21:15:45]Write i2c OK [21:15:45]MH_I2C_Read... [21:15:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:45]Read from MH i2c: E2 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: E2 03 00 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: E2 03 00 9C 0F 00 90 00 1F [21:15:45]RAPDU: 90 00 [21:15:45]wFMCommunicate OK [21:15:45]wFMCommunicate request_size=4 [21:15:45]MH_SAM_APDU [21:15:45]CAPDU: 80 0D 03 02 [21:15:45]Write to MH i2c: E2 08 00 9D 0F 80 0D 03 02 00 00 00 00 27 [21:15:45]Write i2c OK [21:15:45]MH_I2C_Read... [21:15:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:15:45]Read from MH i2c: E2 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: E2 0B 00 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: E2 0B 00 9D 0F 00 B3 90 AC B3 58 C9 1A EA 90 00 EF [21:15:45]RAPDU: B3 90 AC B3 58 C9 1A EA 90 00 [21:15:45]wFMCommunicate OK [21:15:45]SAM_PROTO_SignData done [21:15:45]FM_MakeSignedData done [21:15:45]CreateOFDProtocolMessage [21:15:45]wFMCommunicate request_size=4 [21:15:45]MH_SAM_APDU [21:15:45]CAPDU: 80 11 00 00 [21:15:45]Write to MH i2c: E2 08 00 9E 0F 80 11 00 00 00 00 00 00 27 [21:15:45]Write i2c OK [21:15:45]MH_I2C_Read... [21:15:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:45]Read from MH i2c: E2 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: E2 17 00 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: E2 17 00 9E 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7C [21:15:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:15:45]wFMCommunicate OK [21:15:45]CreateOFDProtocolMessage done [21:15:45]OFDSenderStorePacket 201687 [21:15:45]StoreOFDPacket docnum=201687 [21:15:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 DD 5D 08 01 04 F0 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 C1 01 00 00 F4 03 04 00 00 5C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D7 13 03 00 35 04 06 00 EB 49 FD 59 50 7F B3 90 AC B3 58 C9 1A EA [21:15:45]CheckFolder [21:15:45]dirname=/storage/ofd_packets [21:15:45]CheckFolder done [21:15:45]ProducePacketName [21:15:45]name=ofd_packets/00201687 [21:15:45]NVStorageSaveData ofd_packets/00201687 [21:15:45]File name is /storage/ofd_packets/00201687 [21:15:45]Write 302 bytes [21:15:45]NVStorageSaveData done [21:15:45]OFDSenderStorePacket done [21:15:45]KKMCreateOFDPacket done [21:15:45]NVStorageSaveData kkm_last_timestamp [21:15:45]File name is /storage/kkm_last_timestamp [21:15:45]Write 4 bytes [21:15:45]NVStorageSaveData done [21:15:45]ExternCall_PrintAddStr [21:15:45]wPrintStart [21:15:45]Write to MH i2c: 01 00 00 9F 0F AE [21:15:45]Write i2c OK [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: 01 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: 01 07 00 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: 01 07 00 9F 0F 00 00 00 00 00 FF 0F C3 [21:15:45]RasterBufferAndPrint [21:15:45]line Счет N : (1)449447 [21:15:45]line ИНН: 02508201610067 [21:15:45]line Контрольно-Кассовый Чек [21:15:45]line ПРОДАЖА [21:15:45]line ТРК (МРК, ГНК) : 42 [21:15:45]line Товар: 2710124130 [21:15:45]line SUPER 92-К-5 [21:15:45]line 14.620 * 68.40 [21:15:45]line = 1000.01 [21:15:45]line НДС 12% НСП 1% [21:15:45]line > о реализуемом товаре [21:15:45]line ОКРУГЛЕНИЕ: -0.01 [21:15:45]line ИТОГО: 1000.00 [21:15:45]line Внесено: 1000.00 [21:15:45]line СДАЧА: 0.00 [21:15:45]line НСП 1% : 8.85 [21:15:45]line НДС 12% : 106.20 [21:15:45]line Наличными: 1000.00 [21:15:45]line Безнал.: 0.00 [21:15:45]line Место: АЗС № 171 "Партнер Нефть" [21:15:45]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [21:15:45]line СНО: Общий режим [21:15:45]line Чек 449 26.10.2024 21:15 [21:15:45]line Смена: 543 ФФД: 1.0 [21:15:45]line ЗНМ: 0300000109 [21:15:45]line РНМ: 0000000000091777 [21:15:45]line Версия ККМ: 001 [21:15:45]line ФМ: 0000000000871756 [21:15:45]line ФД: 201687 [21:15:45]line ФПД: 258703015628927 [21:15:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T211544&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201687&fm=258703015628927&tin=02508201610067®Number=0000000000091777&sum=100000 [21:15:45]OFD Sender: Processing packet 201687 [packets to send 112, broken 111] [21:15:45]ProducePacketName [21:15:45]name=ofd_packets/00201687 [21:15:45]OFD Sender: To server: pG, [21:15:45]CommunicateWithHost lk.salyk.kg:30040 [21:15:45]ConnectInit lk.salyk.kg [21:15:45]written 0, free lines is 4095 [21:15:45]Connected sock=10 [21:15:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 DD 5D 08 01 04 F0 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 C1 01 00 00 F4 03 04 00 00 5C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D7 13 03 00 35 04 06 00 EB 49 FD 59 50 7F B3 90 AC B3 58 C9 1A EA [21:15:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 35 50 47 00 D4 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D7 13 03 00 F4 03 04 00 A8 07 1D 67 B6 04 01 00 00 20 64 1F 8C 2C 33 0C 92 [21:15:46]CommunicateWithHost err = 0 [21:15:46]CheckOFDResponse [21:15:46]1017 (14) - 77093643461234 [21:15:46]1041 (16) - 0000000000871756 [21:15:46]1040 (4) - 201687 [21:15:46]1012 (4) - 26.10.2024 15:15 [21:15:46]1206 (1) - 0 [21:15:46]OFD Sender: Remove packet 201687 [21:15:46]ProducePacketName [21:15:46]name=ofd_packets/00201687 [21:15:46]NVStorageDeleteData [21:15:46]Write to MH i2c: 01 00 00 CA 0F D9 [21:15:46]Write i2c OK [21:15:46]MH_I2C_Read... [21:15:46]Read from MH i2c: 01 [21:15:46]MH_I2C_Read... [21:15:46]Read from MH i2c: 01 07 00 [21:15:46]MH_I2C_Read... [21:15:46]Read from MH i2c: 01 07 00 CA 0F 00 00 00 00 00 8D 0C 79 [21:15:46]RasterBufferAndPrint [21:15:46]line [21:15:46]line [21:15:46]line [21:15:46]line [21:15:46]line [21:15:46]written 0, free lines is 3218 [21:15:46]MH_Cut [21:15:46]Write to MH i2c: D1 01 00 D1 0F 01 B2 [21:15:46]Write i2c OK [21:15:46]MH_I2C_Read... [21:15:46]Read from MH i2c: D1 [21:15:46]MH_I2C_Read... [21:15:46]Read from MH i2c: D1 01 00 [21:15:46]MH_I2C_Read... [21:15:46]Read from MH i2c: D1 01 00 D1 0F 00 B1 [21:15:46]Write to MH i2c: 01 00 00 D2 0F E1 [21:15:46]Write i2c OK [21:15:46]MH_I2C_Read... [21:15:46]OFD Sender: No OFD packet to send [21:15:47]*** Cut start [21:15:47]*** Purtial cut [21:15:47]*** Stage 1: CUTSNS_PIN = 1 [21:15:47]Read from MH i2c: 01 [21:15:47]MH_I2C_Read... [21:15:47]*** Stop cut motor [21:15:47]*** Cut end [21:15:47]Read from MH i2c: 01 07 00 [21:15:47]MH_I2C_Read... [21:15:47]Read from MH i2c: 01 07 00 D2 0F 00 00 00 00 00 FF 0F F6 [21:15:47]process_action close_receipt done [21:15:47]requested_data is exist [21:15:47]produce_requested_data [21:15:47]requested_item fm.sn is exist - process it [21:15:47]wFMCommunicate request_size=4 [21:15:47]MH_SAM_APDU [21:15:47]CAPDU: 80 11 00 00 [21:15:47]Write to MH i2c: E2 08 00 D3 0F 80 11 00 00 00 00 00 00 5C [21:15:47]Write i2c OK [21:15:47]MH_I2C_Read... [21:15:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:47]Read from MH i2c: E2 [21:15:47]MH_I2C_Read... [21:15:47]Read from MH i2c: E2 17 00 [21:15:47]MH_I2C_Read... [21:15:47]Read from MH i2c: E2 17 00 D3 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B1 [21:15:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:15:47]wFMCommunicate OK [21:15:47]requested_item fd.num is exist - process it [21:15:47]SAM_PROTO_GetFieldsCounters [21:15:47]wFMCommunicate request_size=4 [21:15:47]MH_SAM_APDU [21:15:47]CAPDU: 80 13 00 00 [21:15:47]Write to MH i2c: E2 08 00 D4 0F 80 13 00 00 00 00 00 00 5F [21:15:47]Write i2c OK [21:15:47]MH_I2C_Read... [21:15:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:15:47]Read from MH i2c: E2 [21:15:47]MH_I2C_Read... [21:15:47]Read from MH i2c: E2 62 00 [21:15:47]MH_I2C_Read... [21:15:47]Read from MH i2c: E2 62 00 D4 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D7 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C1 01 00 00 5E 04 04 00 C1 01 00 00 57 04 04 00 C2 01 00 00 19 04 04 00 00 00 00 00 90 00 DC [21:15:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D7 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C1 01 00 00 5E 04 04 00 C1 01 00 00 57 04 04 00 C2 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:15:47]wFMCommunicate OK [21:15:47]SAM_PROTO_GetFieldsCounters done [21:15:47]requested_item shift.num is exist - process it [21:15:47]requested_item shift.opened is exist - process it [21:15:47]req_shift_opened [21:15:47]FM_GetShiftState [21:15:47]SAM_PROTO_GetShiftState [21:15:47]wFMCommunicate request_size=4 [21:15:47]MH_SAM_APDU [21:15:47]CAPDU: 80 13 01 00 [21:15:47]Write to MH i2c: E2 08 00 D5 0F 80 13 01 00 00 00 00 00 61 [21:15:47]Write i2c OK [21:15:47]MH_I2C_Read... [21:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:47]Read from MH i2c: E2 [21:15:47]MH_I2C_Read... [21:15:47]Read from MH i2c: E2 0E 00 [21:15:47]MH_I2C_Read... [21:15:47]Read from MH i2c: E2 0E 00 D5 0F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 70 [21:15:47]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [21:15:47]wFMCommunicate OK [21:15:47]SAM_PROTO_GetShiftState done [21:15:47]FM_GetShiftState done [21:15:47]req_shift_opened done [21:15:47]requested_item shift.open_date is exist - process it [21:15:47]req_shift_open_date [21:15:47]req_shift_open_date done [21:15:47]produce_requested_data done [21:15:47]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201687,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [21:15:47]process_action_free close_receipt [21:15:47]json_value_free [21:15:47]json_value_free done [21:15:47]process_json_proto returns [21:15:47]Send response to host [21:15:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201687,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [21:15:47]free response buf [21:15:47]execute_script done [21:15:47]execute_script returns [21:15:47]free content buf [21:15:47]Sock 7.Close socket [21:15:47]Sock 7.Thread stoped [21:15:51]OFD Sender: No OFD packet to send [21:15:56]OFD Sender: No OFD packet to send [21:16:01]OFD Sender: No OFD packet to send [21:16:06]OFD Sender: No OFD packet to send [21:16:11]OFD Sender: No OFD packet to send [21:16:16]OFD Sender: No OFD packet to send [21:16:21]OFD Sender: No OFD packet to send [21:16:26]OFD Sender: No OFD packet to send [21:16:31]OFD Sender: No OFD packet to send [21:16:36]OFD Sender: No OFD packet to send [21:16:41]OFD Sender: No OFD packet to send [21:16:46]OFD Sender: No OFD packet to send [21:16:51]OFD Sender: No OFD packet to send [21:16:56]OFD Sender: No OFD packet to send [21:17:01]OFD Sender: No OFD packet to send [21:17:06]OFD Sender: No OFD packet to send [21:17:11]OFD Sender: No OFD packet to send [21:17:16]OFD Sender: No OFD packet to send [21:17:19]accept exits with 9 [21:17:19]New connection [21:17:19]New thread 3066608996 created [21:17:19]Thread 3066465636 joined [21:17:19]Waiting for new connection... [21:17:19] Sock 9.Parse request [21:17:19]Sock 9.Check first char [21:17:19]Sock 9.First char is OK [21:17:19]request: POST /json_proto HTTP/1.0 [21:17:19]Method: POST [21:17:19]URL: /json_proto [21:17:19]Method is POST - this is cgi request [21:17:19]url: /json_proto [21:17:19]query_string will be loaded in cgi processing [21:17:19]execute_cgi json_proto POST (null) [21:17:19]execute_cgi path=json_proto method=POST [21:17:19]POST find Content-Length [21:17:19]Host: 172.17.63.195:8080 [21:17:19]Content-Length: 684 [21:17:19]Content-Type: application/json [21:17:19] [21:17:19]POST finish read [21:17:19]Found Content-Length = 684 [21:17:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 170.610, "sum" : 13000.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 13000.00, "total" : 13000.00, "payments": [ { "type": 0, "sum" : 13000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:17:19]execute_script... [21:17: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)449446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 170.610, "sum" : 13000.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 13000.00, "total" : 13000.00, "payments": [ { "type": 0, "sum" : 13000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:17:19]POST & json_proto [21:17:19]process_json_proto [21:17:19]json parsed OK: [21:17:19]protocol is kg_v1.0 [21:17:19]action value=close_receipt [21:17:19]process_action close_receipt [21:17:19]cmd_close_receipt [21:17:19]MH_GetDate [21:17:19]Write to MH i2c: F0 00 00 D6 0F D4 [21:17:19]Write i2c OK [21:17:19]MH_I2C_Read... [21:17:19]Read from MH i2c: F0 [21:17:19]MH_I2C_Read... [21:17:19]Read from MH i2c: F0 09 00 [21:17:19]MH_I2C_Read... [21:17:19]Read from MH i2c: F0 09 00 D6 0F 00 60 5C 1D 67 68 46 19 67 4B [21:17:19]GetLastDocTimeStamp 1729977344 [21:17:19]current date 1729977440 [21:17:19]FM_GetShiftState [21:17:19]SAM_PROTO_GetShiftState [21:17:19]wFMCommunicate request_size=4 [21:17:19]MH_SAM_APDU [21:17:19]CAPDU: 80 13 01 00 [21:17:19]Write to MH i2c: E2 08 00 D7 0F 80 13 01 00 00 00 00 00 63 [21:17:19]Write i2c OK [21:17:19]MH_I2C_Read... [21:17:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:19]Read from MH i2c: E2 [21:17:19]MH_I2C_Read... [21:17:19]Read from MH i2c: E2 0E 00 [21:17:19]MH_I2C_Read... [21:17:19]Read from MH i2c: E2 0E 00 D7 0F 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 72 [21:17:19]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [21:17:19]wFMCommunicate OK [21:17:19]SAM_PROTO_GetShiftState done [21:17:19]FM_GetShiftState done [21:17:19]opened in 1729900879 [21:17:19]opened+sec_in_day 1729987279 [21:17:19]quantity*price = 1300048 [21:17:19]sum+1 = 1300049 [21:17:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 13000.00 Внесено: 13000.00 СДАЧА: 0.00 НСП 1% : 115.05 НДС 12% : 1380.58 Наличными: 13000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 450 26.10.2024 21:17 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201688 ФПД: 177073884206766 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T211720&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201688&fm=177073884206766&tin=02508201610067®Number=0000000000091777&sum=1300000 [21:17:20]StoreToDocumentArchive [21:17:20]shift 543 fd 201688 [21:17:20]save to /storage/0543/doc_00201688 [21:17:20]save last doc name /storage/0543/doc_00201688 to /storage/kkm_last_doc_name [21:17:20]save OK [21:17:20]Clear old archive folders... [21:17:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:17:20]tlvbuf is 010B5670 [21:17:20]SAM_PROTO_ClearQueue [21:17:20]wFMCommunicate request_size=4 [21:17:20]MH_SAM_APDU [21:17:20]CAPDU: 80 09 00 00 [21:17:20]Write to MH i2c: E2 08 00 E4 0F 80 09 00 00 00 00 00 00 65 [21:17:20]Write i2c OK [21:17:20]MH_I2C_Read... [21:17:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:17:20]Read from MH i2c: E2 [21:17:20]MH_I2C_Read... [21:17:20]Read from MH i2c: E2 03 00 [21:17:20]MH_I2C_Read... [21:17:20]Read from MH i2c: E2 03 00 E4 0F 00 90 00 67 [21:17:20]RAPDU: 90 00 [21:17:20]wFMCommunicate OK [21:17:20]SAM_PROTO_ClearQueue done [21:17:20]KKMCreateOFDPacket [21:17:20]OFDProtocolAddRootSTLVToBuf [21:17:20]FM_MakeSignedData [21:17:20]FM_MakeSignedData [21:17:20]SAM_PROTO_SignData [21:17:20]wFMCommunicate request_size=4 [21:17:20]MH_SAM_APDU [21:17:20]CAPDU: 80 0D 01 02 [21:17:20]Write to MH i2c: E2 08 00 E5 0F 80 0D 01 02 00 00 00 00 6D [21:17:20]Write i2c OK [21:17:20]MH_I2C_Read... [21:17:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:17:20]Read from MH i2c: E2 [21:17:20]MH_I2C_Read... [21:17:20]Read from MH i2c: E2 03 00 [21:17:20]MH_I2C_Read... [21:17:20]Read from MH i2c: E2 03 00 E5 0F 00 90 00 68 [21:17:20]RAPDU: 90 00 [21:17:20]wFMCommunicate OK [21:17:20]wFMCommunicate request_size=255 [21:17:20]MH_SAM_APDU [21:17:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 72 9A 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 D6 13 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 D6 13 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 2C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 1B 02 00 00 00 07 04 06 00 20 D6 13 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 01 00 00 F4 03 04 00 60 5C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D8 13 03 00 35 04 06 00 A1 0C 39 F7 [21:17:20]Write to MH i2c: E2 02 01 E6 0F 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 32 FF 03 08 00 03 72 9A 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 D6 13 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 D6 13 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 2C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 1B 02 00 00 00 07 04 06 00 20 D6 13 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 01 00 00 F4 03 04 00 60 5C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D8 13 03 00 35 04 06 00 A1 0C 39 F7 00 00 7C [21:17:20]Write i2c OK [21:17:20]MH_I2C_Read... [21:17:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:20]Read from MH i2c: E2 [21:17:20]MH_I2C_Read... [21:17:20]Read from MH i2c: E2 03 00 [21:17:20]MH_I2C_Read... [21:17:20]Read from MH i2c: E2 03 00 E6 0F 00 90 00 69 [21:17:20]RAPDU: 90 00 [21:17:20]wFMCommunicate OK [21:17:20]wFMCommunicate request_size=7 [21:17:20]MH_SAM_APDU [21:17:20]CAPDU: 80 0D 02 02 02 96 AE [21:17:20]Write to MH i2c: E2 0A 00 E7 0F 80 0D 02 02 02 00 96 AE 00 00 B8 [21:17:20]Write i2c OK [21:17:20]MH_I2C_Read... [21:17:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:20]Read from MH i2c: E2 [21:17:20]MH_I2C_Read... [21:17:20]Read from MH i2c: E2 03 00 [21:17:20]MH_I2C_Read... [21:17:20]Read from MH i2c: E2 03 00 E7 0F 00 90 00 6A [21:17:20]RAPDU: 90 00 [21:17:20]wFMCommunicate OK [21:17:20]wFMCommunicate request_size=4 [21:17:20]MH_SAM_APDU [21:17:20]CAPDU: 80 0D 03 02 [21:17:20]Write to MH i2c: E2 08 00 E8 0F 80 0D 03 02 00 00 00 00 72 [21:17:20]Write i2c OK [21:17:20]MH_I2C_Read... [21:17:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:17:20]Read from MH i2c: E2 [21:17:20]MH_I2C_Read... [21:17:20]Read from MH i2c: E2 0B 00 [21:17:20]MH_I2C_Read... [21:17:20]Read from MH i2c: E2 0B 00 E8 0F 00 0E 49 80 84 EB 1C 85 09 90 00 63 [21:17:20]RAPDU: 0E 49 80 84 EB 1C 85 09 90 00 [21:17:20]wFMCommunicate OK [21:17:20]SAM_PROTO_SignData done [21:17:20]FM_MakeSignedData done [21:17:20]CreateOFDProtocolMessage [21:17:20]wFMCommunicate request_size=4 [21:17:20]MH_SAM_APDU [21:17:20]CAPDU: 80 11 00 00 [21:17:20]Write to MH i2c: E2 08 00 E9 0F 80 11 00 00 00 00 00 00 72 [21:17:20]Write i2c OK [21:17:20]MH_I2C_Read... [21:17:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:20]Read from MH i2c: E2 [21:17:20]MH_I2C_Read... [21:17:20]Read from MH i2c: E2 17 00 [21:17:20]MH_I2C_Read... [21:17:20]Read from MH i2c: E2 17 00 E9 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C7 [21:17:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:17:20]wFMCommunicate OK [21:17:20]CreateOFDProtocolMessage done [21:17:20]OFDSenderStorePacket 201688 [21:17:20]StoreOFDPacket docnum=201688 [21:17:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 DF D0 04 01 E8 23 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 32 FF 03 08 00 03 72 9A 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 D6 13 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 D6 13 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 2C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 1B 02 00 00 00 07 04 06 00 20 D6 13 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 01 00 00 F4 03 04 00 60 5C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D8 13 03 00 35 04 06 00 A1 0C 39 F7 96 AE 0E 49 80 84 EB 1C 85 09 [21:17:20]CheckFolder [21:17:20]dirname=/storage/ofd_packets [21:17:20]CheckFolder done [21:17:20]ProducePacketName [21:17:20]name=ofd_packets/00201688 [21:17:20]NVStorageSaveData ofd_packets/00201688 [21:17:20]File name is /storage/ofd_packets/00201688 [21:17:20]Write 298 bytes [21:17:20]NVStorageSaveData done [21:17:20]OFDSenderStorePacket done [21:17:20]KKMCreateOFDPacket done [21:17:20]NVStorageSaveData kkm_last_timestamp [21:17:20]File name is /storage/kkm_last_timestamp [21:17:20]Write 4 bytes [21:17:20]NVStorageSaveData done [21:17:20]ExternCall_PrintAddStr [21:17:20]wPrintStart [21:17:20]Write to MH i2c: 01 00 00 EA 0F F9 [21:17:20]Write i2c OK [21:17:20]MH_I2C_Read... [21:17:20]Read from MH i2c: 01 [21:17:20]MH_I2C_Read... [21:17:20]Read from MH i2c: 01 07 00 [21:17:20]MH_I2C_Read... [21:17:20]Read from MH i2c: 01 07 00 EA 0F 00 00 00 00 00 FF 0F 0E [21:17:20]RasterBufferAndPrint [21:17:20]line Счет N : (1)449446 [21:17:20]line ИНН: 02508201610067 [21:17:20]line Контрольно-Кассовый Чек [21:17:20]line ПРОДАЖА [21:17:20]line ТРК (МРК, ГНК) : 21 [21:17:20]line Товар: 2710194210 [21:17:20]line ДТ-К-2 [21:17:20]line 170.610 * 76.20 [21:17:20]line = 13000.48 [21:17:20]line НДС 12% НСП 1% [21:17:20]line > о реализуемом товаре [21:17:20]line ОКРУГЛЕНИЕ: -0.48 [21:17:20]line ИТОГО: 13000.00 [21:17:20]line Внесено: 13000.00 [21:17:20]line СДАЧА: 0.00 [21:17:20]line НСП 1% : 115.05 [21:17:20]line НДС 12% : 1380.58 [21:17:20]line Наличными: 13000.00 [21:17:20]line Безнал.: 0.00 [21:17:20]line Место: АЗС № 171 "Партнер Нефть" [21:17:20]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [21:17:20]line СНО: Общий режим [21:17:20]line Чек 450 26.10.2024 21:17 [21:17:20]line Смена: 543 ФФД: 1.0 [21:17:20]line ЗНМ: 0300000109 [21:17:20]line РНМ: 0000000000091777 [21:17:20]line Версия ККМ: 001 [21:17:20]line ФМ: 0000000000871756 [21:17:20]line ФД: 201688 [21:17:20]line ФПД: 177073884206766 [21:17:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T211720&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201688&fm=177073884206766&tin=02508201610067®Number=0000000000091777&sum=1300000 [21:17:21]OFD Sender: Processing packet 201688 [packets to send 112, broken 111] [21:17:21]ProducePacketName [21:17:21]name=ofd_packets/00201688 [21:17:21]OFD Sender: To server: pG, [21:17:21]CommunicateWithHost lk.salyk.kg:30040 [21:17:21]ConnectInit lk.salyk.kg [21:17:21]written 0, free lines is 4095 [21:17:21]Connected sock=10 [21:17:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 DF D0 04 01 E8 23 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 32 FF 03 08 00 03 72 9A 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 D6 13 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 D6 13 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 2C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 1B 02 00 00 00 07 04 06 00 20 D6 13 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 01 00 00 F4 03 04 00 60 5C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D8 13 03 00 35 04 06 00 A1 0C 39 F7 96 AE 0E 49 80 84 EB 1C 85 09 [21:17:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 90 2B 47 00 81 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D8 13 03 00 F4 03 04 00 07 08 1D 67 B6 04 01 00 00 1F E5 49 D5 56 03 64 C6 [21:17:21]CommunicateWithHost err = 0 [21:17:21]CheckOFDResponse [21:17:21]1017 (14) - 77093643461234 [21:17:21]1041 (16) - 0000000000871756 [21:17:21]1040 (4) - 201688 [21:17:21]1012 (4) - 26.10.2024 15:17 [21:17:21]1206 (1) - 0 [21:17:21]OFD Sender: Remove packet 201688 [21:17:21]ProducePacketName [21:17:21]name=ofd_packets/00201688 [21:17:21]NVStorageDeleteData [21:17:21]Write to MH i2c: 01 00 00 15 10 25 [21:17:21]Write i2c OK [21:17:21]MH_I2C_Read... [21:17:21]Read from MH i2c: 01 [21:17:21]MH_I2C_Read... [21:17:21]Read from MH i2c: 01 07 00 [21:17:21]MH_I2C_Read... [21:17:21]Read from MH i2c: 01 07 00 15 10 00 00 00 00 00 9B 0C D3 [21:17:21]RasterBufferAndPrint [21:17:21]line [21:17:21]line [21:17:21]line [21:17:21]line [21:17:21]line [21:17:21]written 0, free lines is 3233 [21:17:21]MH_Cut [21:17:21]Write to MH i2c: D1 01 00 1C 10 01 FE [21:17:21]Write i2c OK [21:17:21]MH_I2C_Read... [21:17:21]Read from MH i2c: D1 [21:17:21]MH_I2C_Read... [21:17:21]Read from MH i2c: D1 01 00 [21:17:21]MH_I2C_Read... [21:17:21]Read from MH i2c: D1 01 00 1C 10 00 FD [21:17:21]Write to MH i2c: 01 00 00 1D 10 2D [21:17:21]Write i2c OK [21:17:21]MH_I2C_Read... [21:17:22]OFD Sender: No OFD packet to send [21:17:22]int [21:17:22]*** FLAG_PRN_PAP2 set [21:17:22]*** Cut start [21:17:22]*** Purtial cut [21:17:22]*** Stage 1: CUTSNS_PIN = 1 [21:17:22]Read from MH i2c: 01 [21:17:22]MH_I2C_Read... [21:17:22]*** Stop cut motor [21:17:22]*** Cut end [21:17:22]Read from MH i2c: 01 07 00 [21:17:22]MH_I2C_Read... [21:17:22]Read from MH i2c: 01 07 00 1D 10 00 02 00 00 00 FF 0F 44 [21:17:22]process_action close_receipt done [21:17:22]requested_data is exist [21:17:22]produce_requested_data [21:17:22]requested_item fm.sn is exist - process it [21:17:22]wFMCommunicate request_size=4 [21:17:22]MH_SAM_APDU [21:17:22]CAPDU: 80 11 00 00 [21:17:22]Write to MH i2c: E2 08 00 1E 10 80 11 00 00 00 00 00 00 A8 [21:17:22]Write i2c OK [21:17:22]MH_I2C_Read... [21:17:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:22]Read from MH i2c: E2 [21:17:22]MH_I2C_Read... [21:17:22]Read from MH i2c: E2 17 00 [21:17:22]MH_I2C_Read... [21:17:22]Read from MH i2c: E2 17 00 1E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FD [21:17:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:17:22]wFMCommunicate OK [21:17:22]requested_item fd.num is exist - process it [21:17:22]SAM_PROTO_GetFieldsCounters [21:17:22]wFMCommunicate request_size=4 [21:17:22]MH_SAM_APDU [21:17:22]CAPDU: 80 13 00 00 [21:17:22]Write to MH i2c: E2 08 00 1F 10 80 13 00 00 00 00 00 00 AB [21:17:22]Write i2c OK [21:17:22]MH_I2C_Read... [21:17:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:17:22]Read from MH i2c: E2 [21:17:22]MH_I2C_Read... [21:17:22]Read from MH i2c: E2 62 00 [21:17:22]MH_I2C_Read... [21:17:22]Read from MH i2c: E2 62 00 1F 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D8 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C2 01 00 00 5E 04 04 00 C2 01 00 00 57 04 04 00 C3 01 00 00 19 04 04 00 00 00 00 00 90 00 2C [21:17:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D8 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C2 01 00 00 5E 04 04 00 C2 01 00 00 57 04 04 00 C3 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:17:22]wFMCommunicate OK [21:17:22]SAM_PROTO_GetFieldsCounters done [21:17:22]requested_item shift.num is exist - process it [21:17:22]requested_item shift.opened is exist - process it [21:17:22]req_shift_opened [21:17:22]FM_GetShiftState [21:17:22]SAM_PROTO_GetShiftState [21:17:22]wFMCommunicate request_size=4 [21:17:22]MH_SAM_APDU [21:17:22]CAPDU: 80 13 01 00 [21:17:22]Write to MH i2c: 01 00 00 20 10 30 [21:17:22]Write i2c OK [21:17:22]MH_I2C_Read... [21:17:22]Read from MH i2c: 01 [21:17:22]MH_I2C_Read... [21:17:22]Read from MH i2c: 01 07 00 [21:17:22]MH_I2C_Read... [21:17:22]Read from MH i2c: 01 07 00 20 10 00 02 00 00 00 FF 0F 47 [21:17:22]state=0 [21:17:22]Cover opened [21:17:22]Write to MH i2c: E2 08 00 21 10 80 13 01 00 00 00 00 00 AE [21:17:22]Write i2c OK [21:17:22]MH_I2C_Read... [21:17:22]Read from MH i2c: E2 [21:17:22]MH_I2C_Read... [21:17:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:22]Read from MH i2c: E2 0E 00 [21:17:22]MH_I2C_Read... [21:17:22]Read from MH i2c: E2 0E 00 21 10 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 BD [21:17:22]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [21:17:22]wFMCommunicate OK [21:17:22]SAM_PROTO_GetShiftState done [21:17:22]FM_GetShiftState done [21:17:22]req_shift_opened done [21:17:22]requested_item shift.open_date is exist - process it [21:17:22]req_shift_open_date [21:17:22]req_shift_open_date done [21:17:22]produce_requested_data done [21:17:22]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201688,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [21:17:22]process_action_free close_receipt [21:17:22]json_value_free [21:17:22]json_value_free done [21:17:22]process_json_proto returns [21:17:22]Send response to host [21:17:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201688,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [21:17:22]free response buf [21:17:22]execute_script done [21:17:22]execute_script returns [21:17:22]free content buf [21:17:22]Sock 9.Close socket [21:17:22]Sock 9.Thread stoped [21:17:27]OFD Sender: No OFD packet to send [21:17:27]Write to MH i2c: 01 00 00 22 10 32 [21:17:27]Write i2c OK [21:17:27]MH_I2C_Read... [21:17:27]Read from MH i2c: 01 [21:17:27]MH_I2C_Read... [21:17:27]Read from MH i2c: 01 07 00 [21:17:27]MH_I2C_Read... [21:17:27]Read from MH i2c: 01 07 00 22 10 00 02 00 00 00 FF 0F 49 [21:17:27]state=3 [21:17:27]Cover opened [21:17:32]OFD Sender: No OFD packet to send [21:17:32]Write to MH i2c: 01 00 00 23 10 33 [21:17:32]Write i2c OK [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: 01 [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: 01 07 00 [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: 01 07 00 23 10 00 02 00 00 00 FF 0F 4A [21:17:32]state=3 [21:17:32]Cover opened [21:17:37]OFD Sender: No OFD packet to send [21:17:37]Write to MH i2c: 01 00 00 24 10 34 [21:17:37]Write i2c OK [21:17:37]MH_I2C_Read... [21:17:37]Read from MH i2c: 01 [21:17:37]MH_I2C_Read... [21:17:37]Read from MH i2c: 01 07 00 [21:17:37]MH_I2C_Read... [21:17:37]Read from MH i2c: 01 07 00 24 10 00 02 00 00 00 FF 0F 4B [21:17:37]state=3 [21:17:37]Cover opened [21:17:42]OFD Sender: No OFD packet to send [21:17:42]Write to MH i2c: 01 00 00 25 10 35 [21:17:42]Write i2c OK [21:17:42]MH_I2C_Read... [21:17:42]Read from MH i2c: 01 [21:17:42]MH_I2C_Read... [21:17:42]Read from MH i2c: 01 07 00 [21:17:42]MH_I2C_Read... [21:17:42]Read from MH i2c: 01 07 00 25 10 00 02 00 00 00 FF 0F 4C [21:17:42]state=3 [21:17:42]Cover opened [21:17:47]OFD Sender: No OFD packet to send [21:17:47]Write to MH i2c: 01 00 00 26 10 36 [21:17:47]Write i2c OK [21:17:47]MH_I2C_Read... [21:17:47]Read from MH i2c: 01 [21:17:47]MH_I2C_Read... [21:17:47]Read from MH i2c: 01 07 00 [21:17:47]MH_I2C_Read... [21:17:47]Read from MH i2c: 01 07 00 26 10 00 02 00 00 00 FF 0F 4D [21:17:47]state=3 [21:17:47]Cover opened [21:17:52]OFD Sender: No OFD packet to send [21:17:52]Write to MH i2c: 01 00 00 27 10 37 [21:17:52]Write i2c OK [21:17:52]MH_I2C_Read... [21:17:52]Read from MH i2c: 01 [21:17:52]MH_I2C_Read... [21:17:52]Read from MH i2c: 01 07 00 [21:17:52]MH_I2C_Read... [21:17:52]Read from MH i2c: 01 07 00 27 10 00 02 00 00 00 FF 0F 4E [21:17:52]state=3 [21:17:52]Cover opened [21:17:57]OFD Sender: No OFD packet to send [21:17:57]Write to MH i2c: 01 00 00 28 10 38 [21:17:57]Write i2c OK [21:17:57]MH_I2C_Read... [21:17:57]Read from MH i2c: 01 [21:17:57]MH_I2C_Read... [21:17:57]Read from MH i2c: 01 07 00 [21:17:57]MH_I2C_Read... [21:17:57]Read from MH i2c: 01 07 00 28 10 00 02 00 00 00 FF 0F 4F [21:17:57]state=3 [21:17:57]Cover opened [21:18:02]OFD Sender: No OFD packet to send [21:18:02]Write to MH i2c: 01 00 00 29 10 39 [21:18:02]Write i2c OK [21:18:02]MH_I2C_Read... [21:18:02]Read from MH i2c: 01 [21:18:02]MH_I2C_Read... [21:18:02]Read from MH i2c: 01 07 00 [21:18:02]MH_I2C_Read... [21:18:02]Read from MH i2c: 01 07 00 29 10 00 02 00 00 00 FF 0F 50 [21:18:02]state=3 [21:18:02]Cover opened [21:18:07]OFD Sender: No OFD packet to send [21:18:07]Write to MH i2c: 01 00 00 2A 10 3A [21:18:07]Write i2c OK [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: 01 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: 01 07 00 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: 01 07 00 2A 10 00 02 00 00 00 FF 0F 51 [21:18:07]state=3 [21:18:07]Cover opened [21:18:12]OFD Sender: No OFD packet to send [21:18:12]Write to MH i2c: 01 00 00 2B 10 3B [21:18:12]Write i2c OK [21:18:12]MH_I2C_Read... [21:18:12]Read from MH i2c: 01 [21:18:12]MH_I2C_Read... [21:18:12]Read from MH i2c: 01 07 00 [21:18:12]MH_I2C_Read... [21:18:12]Read from MH i2c: 01 07 00 2B 10 00 02 00 00 00 FF 0F 52 [21:18:12]state=3 [21:18:12]Cover opened [21:18:17]OFD Sender: No OFD packet to send [21:18:17]Write to MH i2c: 01 00 00 2C 10 3C [21:18:17]Write i2c OK [21:18:17]MH_I2C_Read... [21:18:17]Read from MH i2c: 01 [21:18:17]MH_I2C_Read... [21:18:17]Read from MH i2c: 01 07 00 [21:18:17]MH_I2C_Read... [21:18:17]Read from MH i2c: 01 07 00 2C 10 00 02 00 00 00 FF 0F 53 [21:18:17]state=3 [21:18:17]Cover opened [21:18:22]OFD Sender: No OFD packet to send [21:18:22]Write to MH i2c: 01 00 00 2D 10 3D [21:18:22]Write i2c OK [21:18:22]MH_I2C_Read... [21:18:22]Read from MH i2c: 01 [21:18:22]MH_I2C_Read... [21:18:22]Read from MH i2c: 01 07 00 [21:18:22]MH_I2C_Read... [21:18:22]Read from MH i2c: 01 07 00 2D 10 00 02 00 00 00 FF 0F 54 [21:18:22]state=3 [21:18:22]Cover opened [21:18:27]OFD Sender: No OFD packet to send [21:18:27]Write to MH i2c: 01 00 00 2E 10 3E [21:18:27]Write i2c OK [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: 01 [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: 01 07 00 [21:18:27]MH_I2C_Read... [21:18:27]Read from MH i2c: 01 07 00 2E 10 00 02 00 00 00 FF 0F 55 [21:18:27]state=3 [21:18:27]Cover opened [21:18:32]OFD Sender: No OFD packet to send [21:18:33]Write to MH i2c: 01 00 00 2F 10 3F [21:18:33]Write i2c OK [21:18:33]MH_I2C_Read... [21:18:33]Read from MH i2c: 01 [21:18:33]MH_I2C_Read... [21:18:33]Read from MH i2c: 01 07 00 [21:18:33]MH_I2C_Read... [21:18:33]Read from MH i2c: 01 07 00 2F 10 00 02 00 00 00 FF 0F 56 [21:18:33]state=3 [21:18:33]Cover opened [21:18:37]OFD Sender: No OFD packet to send [21:18:38]Write to MH i2c: 01 00 00 30 10 40 [21:18:38]Write i2c OK [21:18:38]MH_I2C_Read... [21:18:38]Read from MH i2c: 01 [21:18:38]MH_I2C_Read... [21:18:38]Read from MH i2c: 01 07 00 [21:18:38]MH_I2C_Read... [21:18:38]Read from MH i2c: 01 07 00 30 10 00 02 00 00 00 FF 0F 57 [21:18:38]state=3 [21:18:38]Cover opened [21:18:42]OFD Sender: No OFD packet to send [21:18:43]Write to MH i2c: 01 00 00 31 10 41 [21:18:43]Write i2c OK [21:18:43]MH_I2C_Read... [21:18:43]Read from MH i2c: 01 [21:18:43]MH_I2C_Read... [21:18:43]Read from MH i2c: 01 07 00 [21:18:43]MH_I2C_Read... [21:18:43]Read from MH i2c: 01 07 00 31 10 00 02 00 00 00 FF 0F 58 [21:18:43]state=3 [21:18:43]Cover opened [21:18:47]OFD Sender: No OFD packet to send [21:18:48]Write to MH i2c: 01 00 00 32 10 42 [21:18:48]Write i2c OK [21:18:48]MH_I2C_Read... [21:18:48]Read from MH i2c: 01 [21:18:48]MH_I2C_Read... [21:18:48]Read from MH i2c: 01 07 00 [21:18:48]MH_I2C_Read... [21:18:48]Read from MH i2c: 01 07 00 32 10 00 02 00 00 00 FF 0F 59 [21:18:48]state=3 [21:18:48]Cover opened [21:18:52]OFD Sender: No OFD packet to send [21:18:53]Write to MH i2c: 01 00 00 33 10 43 [21:18:53]Write i2c OK [21:18:53]MH_I2C_Read... [21:18:53]Read from MH i2c: 01 [21:18:53]MH_I2C_Read... [21:18:53]Read from MH i2c: 01 07 00 [21:18:53]MH_I2C_Read... [21:18:53]Read from MH i2c: 01 07 00 33 10 00 02 00 00 00 FF 0F 5A [21:18:53]state=3 [21:18:53]Cover opened [21:18:57]OFD Sender: No OFD packet to send [21:18:58]Write to MH i2c: 01 00 00 34 10 44 [21:18:58]Write i2c OK [21:18:58]MH_I2C_Read... [21:18:58]Read from MH i2c: 01 [21:18:58]MH_I2C_Read... [21:18:58]Read from MH i2c: 01 07 00 [21:18:58]MH_I2C_Read... [21:18:58]Read from MH i2c: 01 07 00 34 10 00 02 00 00 00 FF 0F 5B [21:18:58]state=3 [21:18:58]Cover opened [21:19:01]accept exits with 7 [21:19:01]New connection [21:19:01]New thread 3066465636 created [21:19:01]Thread 3066608996 joined [21:19:01]Waiting for new connection... [21:19:01] Sock 7.Parse request [21:19:01]Sock 7.Check first char [21:19:01]Sock 7.First char is OK [21:19:01]request: POST /json_proto HTTP/1.0 [21:19:01]Method: POST [21:19:01]URL: /json_proto [21:19:01]Method is POST - this is cgi request [21:19:01]url: /json_proto [21:19:01]query_string will be loaded in cgi processing [21:19:01]execute_cgi json_proto POST (null) [21:19:01]execute_cgi path=json_proto method=POST [21:19:01]POST find Content-Length [21:19:01]Host: 172.17.63.195:8080 [21:19:01]Content-Length: 679 [21:19:01]Content-Type: application/json [21:19:01] [21:19:01]POST finish read [21:19:01]Found Content-Length = 679 [21:19:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:01]execute_script... [21:19: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)449448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:01]POST & json_proto [21:19:01]process_json_proto [21:19:01]json parsed OK: [21:19:01]protocol is kg_v1.0 [21:19:01]action value=close_receipt [21:19:01]process_action close_receipt [21:19:01]cmd_close_receipt [21:19:01]MH_GetDate [21:19:01]Write to MH i2c: F0 00 00 35 10 34 [21:19:01]Write i2c OK [21:19:01]MH_I2C_Read... [21:19:01]Read from MH i2c: F0 [21:19:01]MH_I2C_Read... [21:19:01]Read from MH i2c: F0 09 00 [21:19:01]MH_I2C_Read... [21:19:01]Read from MH i2c: F0 09 00 35 10 00 C6 5C 1D 67 68 46 19 67 11 [21:19:01]GetLastDocTimeStamp 1729977440 [21:19:01]current date 1729977542 [21:19:01]FM_GetShiftState [21:19:01]SAM_PROTO_GetShiftState [21:19:01]wFMCommunicate request_size=4 [21:19:01]MH_SAM_APDU [21:19:01]CAPDU: 80 13 01 00 [21:19:01]Write to MH i2c: E2 08 00 36 10 80 13 01 00 00 00 00 00 C3 [21:19:01]Write i2c OK [21:19:01]MH_I2C_Read... [21:19:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:01]Read from MH i2c: E2 [21:19:01]MH_I2C_Read... [21:19:01]Read from MH i2c: E2 0E 00 [21:19:01]MH_I2C_Read... [21:19:01]Read from MH i2c: E2 0E 00 36 10 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D2 [21:19:01]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [21:19:01]wFMCommunicate OK [21:19:01]SAM_PROTO_GetShiftState done [21:19:01]FM_GetShiftState done [21:19:01]opened in 1729900879 [21:19:01]opened+sec_in_day 1729987279 [21:19:01]quantity*price = 300075 [21:19:01]sum+1 = 300077 [21:19:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 451 26.10.2024 21:19 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201689 ФПД: 169795867013199 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T211902&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201689&fm=169795867013199&tin=02508201610067®Number=0000000000091777&sum=300000 [21:19:02]StoreToDocumentArchive [21:19:02]shift 543 fd 201689 [21:19:02]save to /storage/0543/doc_00201689 [21:19:02]save last doc name /storage/0543/doc_00201689 to /storage/kkm_last_doc_name [21:19:02]save OK [21:19:02]Clear old archive folders... [21:19:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:19:02]tlvbuf is 01040CA0 [21:19:02]SAM_PROTO_ClearQueue [21:19:02]wFMCommunicate request_size=4 [21:19:02]MH_SAM_APDU [21:19:02]CAPDU: 80 09 00 00 [21:19:02]Write to MH i2c: E2 08 00 43 10 80 09 00 00 00 00 00 00 C5 [21:19:02]Write i2c OK [21:19:02]MH_I2C_Read... [21:19:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:19:02]Read from MH i2c: E2 [21:19:02]MH_I2C_Read... [21:19:02]Read from MH i2c: E2 03 00 [21:19:02]MH_I2C_Read... [21:19:02]Read from MH i2c: E2 03 00 43 10 00 90 00 C7 [21:19:02]RAPDU: 90 00 [21:19:02]wFMCommunicate OK [21:19:02]SAM_PROTO_ClearQueue done [21:19:02]KKMCreateOFDPacket [21:19:02]OFDProtocolAddRootSTLVToBuf [21:19:02]FM_MakeSignedData [21:19:02]FM_MakeSignedData [21:19:02]SAM_PROTO_SignData [21:19:02]wFMCommunicate request_size=4 [21:19:02]MH_SAM_APDU [21:19:02]CAPDU: 80 0D 01 02 [21:19:02]Write to MH i2c: E2 08 00 44 10 80 0D 01 02 00 00 00 00 CD [21:19:02]Write i2c OK [21:19:02]MH_I2C_Read... [21:19:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:19:02]Read from MH i2c: E2 [21:19:02]MH_I2C_Read... [21:19:02]Read from MH i2c: E2 03 00 [21:19:02]MH_I2C_Read... [21:19:02]Read from MH i2c: E2 03 00 44 10 00 90 00 C8 [21:19:02]RAPDU: 90 00 [21:19:02]wFMCommunicate OK [21:19:02]wFMCommunicate request_size=255 [21:19:02]MH_SAM_APDU [21:19:02]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 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 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 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 01 00 00 F4 03 04 00 C6 5C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D9 13 03 00 35 04 06 00 9A 6D AE 56 [21:19:02]Write to MH i2c: E2 02 01 45 10 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 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 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 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 01 00 00 F4 03 04 00 C6 5C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D9 13 03 00 35 04 06 00 9A 6D AE 56 00 00 13 [21:19:02]Write i2c OK [21:19:02]MH_I2C_Read... [21:19:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:02]Read from MH i2c: E2 [21:19:02]MH_I2C_Read... [21:19:02]Read from MH i2c: E2 03 00 [21:19:02]MH_I2C_Read... [21:19:02]Read from MH i2c: E2 03 00 45 10 00 90 00 C9 [21:19:02]RAPDU: 90 00 [21:19:02]wFMCommunicate OK [21:19:02]wFMCommunicate request_size=7 [21:19:02]MH_SAM_APDU [21:19:02]CAPDU: 80 0D 02 02 02 70 4F [21:19:02]Write to MH i2c: E2 0A 00 46 10 80 0D 02 02 02 00 70 4F 00 00 93 [21:19:02]Write i2c OK [21:19:02]MH_I2C_Read... [21:19:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:02]Read from MH i2c: E2 [21:19:02]MH_I2C_Read... [21:19:02]Read from MH i2c: E2 03 00 [21:19:02]MH_I2C_Read... [21:19:02]Read from MH i2c: E2 03 00 46 10 00 90 00 CA [21:19:02]RAPDU: 90 00 [21:19:02]wFMCommunicate OK [21:19:02]wFMCommunicate request_size=4 [21:19:02]MH_SAM_APDU [21:19:02]CAPDU: 80 0D 03 02 [21:19:02]Write to MH i2c: E2 08 00 47 10 80 0D 03 02 00 00 00 00 D2 [21:19:02]Write i2c OK [21:19:02]MH_I2C_Read... [21:19:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:19:02]Read from MH i2c: E2 [21:19:02]MH_I2C_Read... [21:19:02]Read from MH i2c: E2 0B 00 [21:19:02]MH_I2C_Read... [21:19:02]Read from MH i2c: E2 0B 00 47 10 00 A4 25 2C 9B 6B 7C 52 57 90 00 F3 [21:19:02]RAPDU: A4 25 2C 9B 6B 7C 52 57 90 00 [21:19:02]wFMCommunicate OK [21:19:02]SAM_PROTO_SignData done [21:19:02]FM_MakeSignedData done [21:19:02]CreateOFDProtocolMessage [21:19:02]wFMCommunicate request_size=4 [21:19:02]MH_SAM_APDU [21:19:02]CAPDU: 80 11 00 00 [21:19:02]Write to MH i2c: E2 08 00 48 10 80 11 00 00 00 00 00 00 D2 [21:19:02]Write i2c OK [21:19:02]MH_I2C_Read... [21:19:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:02]Read from MH i2c: E2 [21:19:02]MH_I2C_Read... [21:19:02]Read from MH i2c: E2 17 00 [21:19:02]MH_I2C_Read... [21:19:02]Read from MH i2c: E2 17 00 48 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 27 [21:19:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:19:02]wFMCommunicate OK [21:19:02]CreateOFDProtocolMessage done [21:19:02]OFDSenderStorePacket 201689 [21:19:02]StoreOFDPacket docnum=201689 [21:19:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 36 42 04 01 2D 6E 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 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 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 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 01 00 00 F4 03 04 00 C6 5C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D9 13 03 00 35 04 06 00 9A 6D AE 56 70 4F A4 25 2C 9B 6B 7C 52 57 [21:19:02]CheckFolder [21:19:02]dirname=/storage/ofd_packets [21:19:02]CheckFolder done [21:19:02]ProducePacketName [21:19:02]name=ofd_packets/00201689 [21:19:02]NVStorageSaveData ofd_packets/00201689 [21:19:02]File name is /storage/ofd_packets/00201689 [21:19:02]Write 298 bytes [21:19:02]NVStorageSaveData done [21:19:02]OFDSenderStorePacket done [21:19:02]KKMCreateOFDPacket done [21:19:02]NVStorageSaveData kkm_last_timestamp [21:19:02]File name is /storage/kkm_last_timestamp [21:19:02]Write 4 bytes [21:19:02]NVStorageSaveData done [21:19:02]ExternCall_PrintAddStr [21:19:02]wPrintStart [21:19:02]Write to MH i2c: 01 00 00 49 10 59 [21:19:02]Write i2c OK [21:19:02]MH_I2C_Read... [21:19:02]Read from MH i2c: 01 [21:19:02]MH_I2C_Read... [21:19:02]Read from MH i2c: 01 07 00 [21:19:02]MH_I2C_Read... [21:19:02]Read from MH i2c: 01 07 00 49 10 00 02 00 00 00 FF 0F 70 [21:19:02]RasterBufferAndPrint [21:19:02]line Счет N : (1)449448 [21:19:02]line ИНН: 02508201610067 [21:19:02]line Контрольно-Кассовый Чек [21:19:02]line ПРОДАЖА [21:19:02]line ТРК (МРК, ГНК) : 43 [21:19:02]line Товар: 2710194210 [21:19:02]line ДТ-К-2 [21:19:02]line 39.380 * 76.20 [21:19:02]line = 3000.76 [21:19:02]line НДС 12% НСП 1% [21:19:02]line > о реализуемом товаре [21:19:02]line ОКРУГЛЕНИЕ: -0.76 [21:19:02]line ИТОГО: 3000.00 [21:19:02]line Внесено: 3000.00 [21:19:02]line СДАЧА: 0.00 [21:19:02]line НСП 1% : 26.55 [21:19:02]line НДС 12% : 318.66 [21:19:02]line Наличными: 3000.00 [21:19:02]line Безнал.: 0.00 [21:19:02]line Место: АЗС № 171 "Партнер Нефть" [21:19:02]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [21:19:02]line СНО: Общий режим [21:19:02]line Чек 451 26.10.2024 21:19 [21:19:02]line Смена: 543 ФФД: 1.0 [21:19:02]line ЗНМ: 0300000109 [21:19:02]line РНМ: 0000000000091777 [21:19:02]line Версия ККМ: 001 [21:19:02]line ФМ: 0000000000871756 [21:19:02]line ФД: 201689 [21:19:03]line ФПД: 169795867013199 [21:19:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T211902&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201689&fm=169795867013199&tin=02508201610067®Number=0000000000091777&sum=300000 [21:19:03]Write to MH i2c: 01 00 00 4A 10 5A [21:19:03]state=3 [21:19:03]Cover opened [21:19:03]OFD Sender: Processing packet 201689 [packets to send 112, broken 111] [21:19:03]ProducePacketName [21:19:03]name=ofd_packets/00201689 [21:19:03]OFD Sender: To server: pG, [21:19:03]CommunicateWithHost lk.salyk.kg:30040 [21:19:03]ConnectInit lk.salyk.kg [21:19:03]written 0, free lines is 4095 [21:19:03]Error from MH - 05 [21:19:03]process_action_free close_receipt [21:19:03]json_value_free [21:19:03]json_value_free done [21:19:03]process_json_proto returns [21:19:03]Send response to host [21:19:03]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [21:19:03]free response buf [21:19:03]execute_script done [21:19:03]execute_script returns [21:19:03]free content buf [21:19:03]Sock 7.Close socket [21:19:03]Sock 7.Thread stoped [21:19:03]Connected sock=5 [21:19:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 36 42 04 01 2D 6E 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 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 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 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 01 00 00 F4 03 04 00 C6 5C 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D9 13 03 00 35 04 06 00 9A 6D AE 56 70 4F A4 25 2C 9B 6B 7C 52 57 [21:19:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 25 79 47 00 6C 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 D9 13 03 00 F4 03 04 00 6D 08 1D 67 B6 04 01 00 00 D5 C6 3E 16 91 5A 70 4A [21:19:03]CommunicateWithHost err = 0 [21:19:03]CheckOFDResponse [21:19:03]1017 (14) - 77093643461234 [21:19:03]1041 (16) - 0000000000871756 [21:19:03]1040 (4) - 201689 [21:19:03]1012 (4) - 26.10.2024 15:19 [21:19:03]1206 (1) - 0 [21:19:03]OFD Sender: Remove packet 201689 [21:19:03]ProducePacketName [21:19:03]name=ofd_packets/00201689 [21:19:03]NVStorageDeleteData [21:19:04]OFD Sender: No OFD packet to send [21:19:08]Write to MH i2c: 01 00 00 4D 10 5D [21:19:08]Write i2c OK [21:19:08]MH_I2C_Read... [21:19:08]Read from MH i2c: 01 [21:19:08]MH_I2C_Read... [21:19:08]Read from MH i2c: 01 07 00 [21:19:08]MH_I2C_Read... [21:19:08]Read from MH i2c: 01 07 00 4D 10 00 02 00 00 00 FF 0F 74 [21:19:08]state=3 [21:19:08]Cover opened [21:19:09]OFD Sender: No OFD packet to send [21:19:13]Write to MH i2c: 01 00 00 4E 10 5E [21:19:13]Write i2c OK [21:19:13]MH_I2C_Read... [21:19:13]Read from MH i2c: 01 [21:19:13]MH_I2C_Read... [21:19:13]Read from MH i2c: 01 07 00 [21:19:13]MH_I2C_Read... [21:19:13]Read from MH i2c: 01 07 00 4E 10 00 02 00 00 00 FF 0F 75 [21:19:13]state=3 [21:19:13]Cover opened [21:19:14]OFD Sender: No OFD packet to send [21:19:18]Write to MH i2c: 01 00 00 4F 10 5F [21:19:18]Write i2c OK [21:19:18]MH_I2C_Read... [21:19:18]Read from MH i2c: 01 [21:19:18]MH_I2C_Read... [21:19:18]Read from MH i2c: 01 07 00 [21:19:18]MH_I2C_Read... [21:19:18]Read from MH i2c: 01 07 00 4F 10 00 02 00 00 00 FF 0F 76 [21:19:18]state=3 [21:19:18]Cover opened [21:19:19]OFD Sender: No OFD packet to send [21:19:23]Write to MH i2c: 01 00 00 50 10 60 [21:19:23]Write i2c OK [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: 01 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: 01 07 00 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: 01 07 00 50 10 00 02 00 00 00 FF 0F 77 [21:19:23]state=3 [21:19:23]Cover opened [21:19:24]OFD Sender: No OFD packet to send [21:19:28]Write to MH i2c: 01 00 00 51 10 61 [21:19:28]Write i2c OK [21:19:28]MH_I2C_Read... [21:19:28]Read from MH i2c: 01 [21:19:28]MH_I2C_Read... [21:19:28]Read from MH i2c: 01 07 00 [21:19:28]MH_I2C_Read... [21:19:28]Read from MH i2c: 01 07 00 51 10 00 02 00 00 00 FF 0F 78 [21:19:28]state=3 [21:19:28]Cover opened [21:19:29]OFD Sender: No OFD packet to send [21:19:33]Write to MH i2c: 01 00 00 52 10 62 [21:19:33]Write i2c OK [21:19:33]MH_I2C_Read... [21:19:33]Read from MH i2c: 01 [21:19:33]MH_I2C_Read... [21:19:33]Read from MH i2c: 01 07 00 [21:19:33]MH_I2C_Read... [21:19:33]Read from MH i2c: 01 07 00 52 10 00 02 00 00 00 FF 0F 79 [21:19:33]state=3 [21:19:33]Cover opened [21:19:34]OFD Sender: No OFD packet to send [21:19:38]Write to MH i2c: 01 00 00 53 10 63 [21:19:38]Write i2c OK [21:19:38]MH_I2C_Read... [21:19:38]Read from MH i2c: 01 [21:19:38]MH_I2C_Read... [21:19:38]Read from MH i2c: 01 07 00 [21:19:38]MH_I2C_Read... [21:19:38]Read from MH i2c: 01 07 00 53 10 00 02 00 00 00 FF 0F 7A [21:19:38]state=3 [21:19:38]Cover opened [21:19:39]OFD Sender: No OFD packet to send [21:19:43]Write to MH i2c: 01 00 00 54 10 64 [21:19:43]Write i2c OK [21:19:43]MH_I2C_Read... [21:19:43]Read from MH i2c: 01 [21:19:43]MH_I2C_Read... [21:19:43]Read from MH i2c: 01 07 00 [21:19:43]MH_I2C_Read... [21:19:43]Read from MH i2c: 01 07 00 54 10 00 02 00 00 00 FF 0F 7B [21:19:43]state=3 [21:19:43]Cover opened [21:19:44]OFD Sender: No OFD packet to send [21:19:48]Write to MH i2c: 01 00 00 55 10 65 [21:19:48]Write i2c OK [21:19:48]MH_I2C_Read... [21:19:48]Read from MH i2c: 01 [21:19:48]MH_I2C_Read... [21:19:48]Read from MH i2c: 01 07 00 [21:19:48]MH_I2C_Read... [21:19:48]Read from MH i2c: 01 07 00 55 10 00 02 00 00 00 FF 0F 7C [21:19:48]state=3 [21:19:48]Cover opened [21:19:49]OFD Sender: No OFD packet to send [21:19:53]Write to MH i2c: 01 00 00 56 10 66 [21:19:53]Write i2c OK [21:19:53]MH_I2C_Read... [21:19:53]Read from MH i2c: 01 [21:19:53]MH_I2C_Read... [21:19:53]Read from MH i2c: 01 07 00 [21:19:53]MH_I2C_Read... [21:19:53]Read from MH i2c: 01 07 00 56 10 00 02 00 00 00 FF 0F 7D [21:19:53]state=3 [21:19:53]Cover opened [21:19:54]OFD Sender: No OFD packet to send [21:19:58]Write to MH i2c: 01 00 00 57 10 67 [21:19:58]Write i2c OK [21:19:58]MH_I2C_Read... [21:19:58]Read from MH i2c: 01 [21:19:58]MH_I2C_Read... [21:19:58]Read from MH i2c: 01 07 00 [21:19:58]MH_I2C_Read... [21:19:58]Read from MH i2c: 01 07 00 57 10 00 02 00 00 00 FF 0F 7E [21:19:58]state=3 [21:19:58]Cover opened [21:19:59]OFD Sender: No OFD packet to send [21:20:03]Write to MH i2c: 01 00 00 58 10 68 [21:20:03]Write i2c OK [21:20:03]MH_I2C_Read... [21:20:03]Read from MH i2c: 01 [21:20:03]MH_I2C_Read... [21:20:03]Read from MH i2c: 01 07 00 [21:20:03]MH_I2C_Read... [21:20:03]Read from MH i2c: 01 07 00 58 10 00 02 00 00 00 FF 0F 7F [21:20:03]state=3 [21:20:03]Cover opened [21:20:04]OFD Sender: No OFD packet to send [21:20:08]Write to MH i2c: 01 00 00 59 10 69 [21:20:08]Write i2c OK [21:20:08]MH_I2C_Read... [21:20:08]Read from MH i2c: 01 [21:20:08]MH_I2C_Read... [21:20:08]Read from MH i2c: 01 07 00 [21:20:08]MH_I2C_Read... [21:20:08]Read from MH i2c: 01 07 00 59 10 00 02 00 00 00 FF 0F 80 [21:20:08]state=3 [21:20:08]Cover opened [21:20:09]OFD Sender: No OFD packet to send [21:20:13]Write to MH i2c: 01 00 00 5A 10 6A [21:20:13]Write i2c OK [21:20:13]MH_I2C_Read... [21:20:13]Read from MH i2c: 01 [21:20:13]MH_I2C_Read... [21:20:13]Read from MH i2c: 01 07 00 [21:20:13]MH_I2C_Read... [21:20:13]Read from MH i2c: 01 07 00 5A 10 00 02 00 00 00 FF 0F 81 [21:20:13]state=3 [21:20:13]Cover opened [21:20:14]OFD Sender: No OFD packet to send [21:20:18]Write to MH i2c: 01 00 00 5B 10 6B [21:20:18]Write i2c OK [21:20:18]MH_I2C_Read... [21:20:18]Read from MH i2c: 01 [21:20:18]MH_I2C_Read... [21:20:18]Read from MH i2c: 01 07 00 [21:20:18]MH_I2C_Read... [21:20:18]Read from MH i2c: 01 07 00 5B 10 00 02 00 00 00 FF 0F 82 [21:20:18]state=3 [21:20:18]Cover opened [21:20:19]OFD Sender: No OFD packet to send [21:20:23]Write to MH i2c: 01 00 00 5C 10 6C [21:20:23]Write i2c OK [21:20:23]MH_I2C_Read... [21:20:23]Read from MH i2c: 01 [21:20:23]MH_I2C_Read... [21:20:23]Read from MH i2c: 01 07 00 [21:20:23]MH_I2C_Read... [21:20:23]Read from MH i2c: 01 07 00 5C 10 00 02 00 00 00 FF 0F 83 [21:20:23]state=3 [21:20:23]Cover opened [21:20:24]OFD Sender: No OFD packet to send [21:20:28]Write to MH i2c: 01 00 00 5D 10 6D [21:20:28]Write i2c OK [21:20:28]MH_I2C_Read... [21:20:28]Read from MH i2c: 01 [21:20:28]MH_I2C_Read... [21:20:28]Read from MH i2c: 01 07 00 [21:20:28]MH_I2C_Read... [21:20:28]Read from MH i2c: 01 07 00 5D 10 00 02 00 00 00 FF 0F 84 [21:20:28]state=3 [21:20:28]Cover opened [21:20:29]OFD Sender: No OFD packet to send [21:20:33]Write to MH i2c: 01 00 00 5E 10 6E [21:20:33]Write i2c OK [21:20:33]MH_I2C_Read... [21:20:33]Read from MH i2c: 01 [21:20:33]MH_I2C_Read... [21:20:33]Read from MH i2c: 01 07 00 [21:20:33]MH_I2C_Read... [21:20:33]Read from MH i2c: 01 07 00 5E 10 00 02 00 00 00 FF 0F 85 [21:20:33]state=3 [21:20:33]Cover opened [21:20:34]OFD Sender: No OFD packet to send [21:20:38]Write to MH i2c: 01 00 00 5F 10 6F [21:20:38]Write i2c OK [21:20:38]MH_I2C_Read... [21:20:38]Read from MH i2c: 01 [21:20:38]MH_I2C_Read... [21:20:38]Read from MH i2c: 01 07 00 [21:20:38]MH_I2C_Read... [21:20:38]Read from MH i2c: 01 07 00 5F 10 00 02 00 00 00 FF 0F 86 [21:20:38]state=3 [21:20:38]Cover opened [21:20:39]OFD Sender: No OFD packet to send [21:20:43]Write to MH i2c: 01 00 00 60 10 70 [21:20:43]Write i2c OK [21:20:43]MH_I2C_Read... [21:20:43]Read from MH i2c: 01 [21:20:43]MH_I2C_Read... [21:20:43]Read from MH i2c: 01 07 00 [21:20:43]MH_I2C_Read... [21:20:43]Read from MH i2c: 01 07 00 60 10 00 02 00 00 00 FF 0F 87 [21:20:43]state=3 [21:20:43]Cover opened [21:20:44]OFD Sender: No OFD packet to send [21:20:48]Write to MH i2c: 01 00 00 61 10 71 [21:20:48]Write i2c OK [21:20:48]MH_I2C_Read... [21:20:48]Read from MH i2c: 01 [21:20:48]MH_I2C_Read... [21:20:48]Read from MH i2c: 01 07 00 [21:20:48]MH_I2C_Read... [21:20:48]Read from MH i2c: 01 07 00 61 10 00 02 00 00 00 FF 0F 88 [21:20:48]state=3 [21:20:48]Cover opened [21:20:49]OFD Sender: No OFD packet to send [21:20:53]Write to MH i2c: 01 00 00 62 10 72 [21:20:53]Write i2c OK [21:20:53]MH_I2C_Read... [21:20:53]Read from MH i2c: 01 [21:20:53]MH_I2C_Read... [21:20:53]Read from MH i2c: 01 07 00 [21:20:53]MH_I2C_Read... [21:20:53]Read from MH i2c: 01 07 00 62 10 00 02 00 00 00 FF 0F 89 [21:20:53]state=3 [21:20:53]Cover opened [21:20:54]OFD Sender: No OFD packet to send [21:20:58]Write to MH i2c: 01 00 00 63 10 73 [21:20:58]Write i2c OK [21:20:58]MH_I2C_Read... [21:20:58]Read from MH i2c: 01 [21:20:58]MH_I2C_Read... [21:20:58]Read from MH i2c: 01 07 00 [21:20:58]MH_I2C_Read... [21:20:58]Read from MH i2c: 01 07 00 63 10 00 02 00 00 00 FF 0F 8A [21:20:58]state=3 [21:20:58]Cover opened [21:20:59]OFD Sender: No OFD packet to send [21:21:03]Write to MH i2c: 01 00 00 64 10 74 [21:21:03]Write i2c OK [21:21:03]MH_I2C_Read... [21:21:03]Read from MH i2c: 01 [21:21:03]MH_I2C_Read... [21:21:03]Read from MH i2c: 01 07 00 [21:21:03]MH_I2C_Read... [21:21:03]Read from MH i2c: 01 07 00 64 10 00 02 00 00 00 FF 0F 8B [21:21:03]state=3 [21:21:03]Cover opened [21:21:04]OFD Sender: No OFD packet to send [21:21:08]Write to MH i2c: 01 00 00 65 10 75 [21:21:08]Write i2c OK [21:21:08]MH_I2C_Read... [21:21:08]Read from MH i2c: 01 [21:21:08]MH_I2C_Read... [21:21:08]Read from MH i2c: 01 07 00 [21:21:08]MH_I2C_Read... [21:21:08]Read from MH i2c: 01 07 00 65 10 00 02 00 00 00 FF 0F 8C [21:21:08]state=3 [21:21:08]Cover opened [21:21:09]OFD Sender: No OFD packet to send [21:21:13]Write to MH i2c: 01 00 00 66 10 76 [21:21:13]Write i2c OK [21:21:13]MH_I2C_Read... [21:21:13]Read from MH i2c: 01 [21:21:13]MH_I2C_Read... [21:21:13]Read from MH i2c: 01 07 00 [21:21:13]MH_I2C_Read... [21:21:13]Read from MH i2c: 01 07 00 66 10 00 02 00 00 00 FF 0F 8D [21:21:13]state=3 [21:21:13]Cover opened [21:21:14]OFD Sender: No OFD packet to send [21:21:18]Write to MH i2c: 01 00 00 67 10 77 [21:21:18]Write i2c OK [21:21:18]MH_I2C_Read... [21:21:18]Read from MH i2c: 01 [21:21:18]MH_I2C_Read... [21:21:18]Read from MH i2c: 01 07 00 [21:21:18]MH_I2C_Read... [21:21:18]Read from MH i2c: 01 07 00 67 10 00 02 00 00 00 FF 0F 8E [21:21:18]state=3 [21:21:18]Cover opened [21:21:19]OFD Sender: No OFD packet to send [21:21:23]Write to MH i2c: 01 00 00 68 10 78 [21:21:23]Write i2c OK [21:21:23]MH_I2C_Read... [21:21:23]Read from MH i2c: 01 [21:21:23]MH_I2C_Read... [21:21:23]Read from MH i2c: 01 07 00 [21:21:23]MH_I2C_Read... [21:21:23]Read from MH i2c: 01 07 00 68 10 00 02 00 00 00 FF 0F 8F [21:21:23]state=3 [21:21:23]Cover opened [21:21:24]OFD Sender: No OFD packet to send [21:21:28]Write to MH i2c: 01 00 00 69 10 79 [21:21:28]Write i2c OK [21:21:28]MH_I2C_Read... [21:21:28]Read from MH i2c: 01 [21:21:28]MH_I2C_Read... [21:21:28]Read from MH i2c: 01 07 00 [21:21:28]MH_I2C_Read... [21:21:28]Read from MH i2c: 01 07 00 69 10 00 02 00 00 00 FF 0F 90 [21:21:28]state=3 [21:21:28]Cover opened [21:21:29]OFD Sender: No OFD packet to send [21:21:33]Write to MH i2c: 01 00 00 6A 10 7A [21:21:33]Write i2c OK [21:21:33]MH_I2C_Read... [21:21:33]Read from MH i2c: 01 [21:21:33]MH_I2C_Read... [21:21:33]Read from MH i2c: 01 07 00 [21:21:33]MH_I2C_Read... [21:21:33]Read from MH i2c: 01 07 00 6A 10 00 02 00 00 00 FF 0F 91 [21:21:33]state=3 [21:21:33]Cover opened [21:21:34]OFD Sender: No OFD packet to send [21:21:38]Write to MH i2c: 01 00 00 6B 10 7B [21:21:38]Write i2c OK [21:21:38]MH_I2C_Read... [21:21:38]Read from MH i2c: 01 [21:21:38]MH_I2C_Read... [21:21:38]Read from MH i2c: 01 07 00 [21:21:38]MH_I2C_Read... [21:21:38]Read from MH i2c: 01 07 00 6B 10 00 02 00 00 00 FF 0F 92 [21:21:38]state=3 [21:21:38]Cover opened [21:21:39]OFD Sender: No OFD packet to send [21:21:43]Write to MH i2c: 01 00 00 6C 10 7C [21:21:43]Write i2c OK [21:21:43]MH_I2C_Read... [21:21:43]Read from MH i2c: 01 [21:21:43]MH_I2C_Read... [21:21:43]Read from MH i2c: 01 07 00 [21:21:43]MH_I2C_Read... [21:21:43]Read from MH i2c: 01 07 00 6C 10 00 02 00 00 00 FF 0F 93 [21:21:43]state=3 [21:21:43]Cover opened [21:21:44]OFD Sender: No OFD packet to send [21:21:48]Write to MH i2c: 01 00 00 6D 10 7D [21:21:48]Write i2c OK [21:21:48]MH_I2C_Read... [21:21:48]Read from MH i2c: 01 [21:21:48]MH_I2C_Read... [21:21:48]Read from MH i2c: 01 07 00 [21:21:48]MH_I2C_Read... [21:21:48]Read from MH i2c: 01 07 00 6D 10 00 02 00 00 00 FF 0F 94 [21:21:48]state=3 [21:21:48]Cover opened [21:21:49]OFD Sender: No OFD packet to send [21:21:53]Write to MH i2c: 01 00 00 6E 10 7E [21:21:53]Write i2c OK [21:21:53]MH_I2C_Read... [21:21:53]Read from MH i2c: 01 [21:21:53]MH_I2C_Read... [21:21:53]Read from MH i2c: 01 07 00 [21:21:53]MH_I2C_Read... [21:21:53]Read from MH i2c: 01 07 00 6E 10 00 02 00 00 00 FF 0F 95 [21:21:53]state=3 [21:21:53]Cover opened [21:21:54]OFD Sender: No OFD packet to send [21:21:56]int [21:21:56]Write to MH i2c: 01 00 00 6F 10 7F [21:21:56]*** FLAG_PRN_PAP1 set [21:21:56]Write i2c OK [21:21:56]MH_I2C_Read... [21:21:56]Read from MH i2c: 01 [21:21:56]MH_I2C_Read... [21:21:56]Read from MH i2c: 01 07 00 [21:21:56]MH_I2C_Read... [21:21:56]Read from MH i2c: 01 07 00 6F 10 00 03 00 00 00 FF 0F 97 [21:21:56]state=3 [21:21:56]No paper [21:21:56]Cover opened [21:21:59]OFD Sender: No OFD packet to send [21:22:01]Write to MH i2c: 01 00 00 70 10 80 [21:22:01]Write i2c OK [21:22:01]MH_I2C_Read... [21:22:01]Read from MH i2c: 01 [21:22:01]MH_I2C_Read... [21:22:01]Read from MH i2c: 01 07 00 [21:22:01]MH_I2C_Read... [21:22:01]Read from MH i2c: 01 07 00 70 10 00 03 00 00 00 FF 0F 98 [21:22:01]state=3 [21:22:01]No paper [21:22:01]Cover opened [21:22:04]OFD Sender: No OFD packet to send [21:22:06]Write to MH i2c: 01 00 00 71 10 81 [21:22:06]Write i2c OK [21:22:06]MH_I2C_Read... [21:22:06]Read from MH i2c: 01 [21:22:06]MH_I2C_Read... [21:22:06]Read from MH i2c: 01 07 00 [21:22:06]MH_I2C_Read... [21:22:06]Read from MH i2c: 01 07 00 71 10 00 03 00 00 00 FF 0F 99 [21:22:06]state=3 [21:22:06]No paper [21:22:06]Cover opened [21:22:09]OFD Sender: No OFD packet to send [21:22:10]int [21:22:10]Write to MH i2c: 01 00 00 72 10 82 [21:22:10]Write i2c OK [21:22:10]MH_I2C_Read... [21:22:10]Read from MH i2c: 01 [21:22:10]MH_I2C_Read... [21:22:10]Read from MH i2c: 01 07 00 [21:22:10]MH_I2C_Read... [21:22:10]*** FLAG_PRN_PAP2 reset [21:22:10]*** FLAG_PRN_PAP1 reset [21:22:10]Read from MH i2c: 01 07 00 72 10 00 00 00 00 00 FF 0F 97 [21:22:10]state=3 [21:22:10]Cover closed [21:22:11]int [21:22:11]Write to MH i2c: 01 00 00 73 10 83 [21:22:11]*** FLAG_PRN_KEY set [21:22:11]Write i2c OK [21:22:11]MH_I2C_Read... [21:22:11]Read from MH i2c: 01 [21:22:11]MH_I2C_Read... [21:22:11]Read from MH i2c: 01 07 00 [21:22:11]MH_I2C_Read... [21:22:11]Read from MH i2c: 01 07 00 73 10 00 08 00 00 00 FF 0F A0 [21:22:11]state=0 [21:22:11]Key pressed [21:22:11]Feed [21:22:11]Write to MH i2c: D8 00 00 74 10 5B [21:22:11]Write i2c OK [21:22:11]MH_I2C_Read... [21:22:11]Read from MH i2c: D8 [21:22:11]MH_I2C_Read... [21:22:11]Read from MH i2c: D8 01 00 [21:22:11]MH_I2C_Read... [21:22:11]Read from MH i2c: D8 01 00 74 10 00 5C [21:22:11]int [21:22:11]Write to MH i2c: 01 00 00 75 10 85 [21:22:11]Write i2c OK [21:22:11]MH_I2C_Read... [21:22:11]Read from MH i2c: 01 [21:22:11]MH_I2C_Read... [21:22:11]Read from MH i2c: 01 07 00 [21:22:11]MH_I2C_Read... [21:22:11]Read from MH i2c: 01 07 00 75 10 00 48 00 00 00 3D 00 11 [21:22:11]state=2 [21:22:11]Key pressed [21:22:12]int [21:22:12]Write to MH i2c: 01 00 00 76 10 86 [21:22:12]*** FLAG_PRN_KEY reset [21:22:12]Write i2c OK [21:22:12]MH_I2C_Read... [21:22:12]Read from MH i2c: 01 [21:22:12]MH_I2C_Read... [21:22:12]Read from MH i2c: 01 07 00 [21:22:12]MH_I2C_Read... [21:22:12]Read from MH i2c: 01 07 00 76 10 00 00 00 00 00 FF 0F 9B [21:22:12]state=2 [21:22:12]Stop feed [00:00:11]/dev/ttyS4 opened [00:00:11] *** EcrCore started. Build 196 *** [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]Malloc ok [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 0B [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:11]*** [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:11]*** Waiting for read because exit forced [00:00:11]*** 10 ms more... [00:00:11]*** MH1903 init start (LINUX_LIGHT) [00:00:11]*** Serial: 3139303353513838 54000000005725CF (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 268076+1729709672=1729977748 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0xff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 03 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 0C [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30515 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 94 5D 1D 67 68 46 19 67 A2 [21:22:28]Current date/time: 26.10.2024 21:22 [21:22:28]FM_Init [21:22:28]wFMConnect [21:22:28]MH_SAM_On [21:22:28]Write to MH i2c: E0 00 00 08 00 E7 [21:22:28]Write i2c OK [21:22:28]MH_I2C_Read... [21:22:28]*** iso7816_init finished! [21:22:28]*** atr: [21:22:28]*** 0F 3B D5 18 FF 81 91 FE [21:22:28]*** 1F C3 80 73 C8 21 10 0A [21:22:28]*** 00 00 00 00 00 00 00 00 [21:22:28]*** 00 00 00 00 00 00 00 00 [21:22:28]*** 00 00 00 00 00 00 00 00 [21:22:28]*** 00 00 00 00 00 00 00 00 [21:22:28]*** 00 00 00 00 00 00 00 00 [21:22:28]*** 00 00 00 00 00 00 00 00 [21:22:28]Read from MH i2c: E0 [21:22:28]MH_I2C_Read... [21:22:28]Read from MH i2c: E0 10 00 [21:22:28]MH_I2C_Read... [21:22:28]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [21:22:28]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [21:22:28]wFMCommunicate request_size=10 [21:22:28]MH_SAM_APDU [21:22:28]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [21:22:28]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [21:22:28]Write i2c OK [21:22:28]MH_I2C_Read... [21:22:28]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [21:22:28]Read from MH i2c: E2 [21:22:28]MH_I2C_Read... [21:22:28]Read from MH i2c: E2 03 00 [21:22:28]MH_I2C_Read... [21:22:28]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [21:22:28]RAPDU: 90 00 [21:22:28]wFMCommunicate OK [21:22:28]wFMCommunicate request_size=4 [21:22:28]MH_SAM_APDU [21:22:28]CAPDU: 80 11 00 00 [21:22:28]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [21:22:28]Write i2c OK [21:22:28]MH_I2C_Read... [21:22:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:28]Read from MH i2c: E2 [21:22:28]MH_I2C_Read... [21:22:28]Read from MH i2c: E2 17 00 [21:22:28]MH_I2C_Read... [21:22:28]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D9 [21:22:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:22:28]wFMCommunicate OK [21:22:28]Detected FM SN is 0000000000871756 [21:22:28]Stored FM SN is 0000000000871756 [21:22:28]wFMCommunicate request_size=9 [21:22:28]MH_SAM_APDU [21:22:28]CAPDU: 80 16 00 00 04 7E FB 00 00 [21:22:28]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 7E FB 00 00 00 00 0B [21:22:28]Write i2c OK [21:22:28]MH_I2C_Read... [21:22:28]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [21:22:28]Read from MH i2c: E2 [21:22:28]MH_I2C_Read... [21:22:28]Read from MH i2c: E2 03 00 [21:22:28]MH_I2C_Read... [21:22:28]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [21:22:28]RAPDU: 90 00 [21:22:28]wFMCommunicate OK [21:22:28]FM PIN OK [21:22:28]wFMCommunicate request_size=8 [21:22:28]MH_SAM_APDU [21:22:28]CAPDU: 80 14 04 00 03 02 00 01 [21:22:28]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [21:22:28]Write i2c OK [21:22:28]MH_I2C_Read... [21:22:28]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [21:22:28]Read from MH i2c: E2 [21:22:28]MH_I2C_Read... [21:22:28]Read from MH i2c: E2 03 00 [21:22:28]MH_I2C_Read... [21:22:28]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [21:22:28]RAPDU: 90 00 [21:22:28]wFMCommunicate OK [21:22:28]wFMCommunicate request_size=13 [21:22:28]MH_SAM_APDU [21:22:28]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [21:22:28]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [21:22:28]Write i2c OK [21:22:28]MH_I2C_Read... [21:22:28]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [21:22:28]Read from MH i2c: E2 [21:22:28]MH_I2C_Read... [21:22:28]Read from MH i2c: E2 03 00 [21:22:28]MH_I2C_Read... [21:22:28]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [21:22:28]RAPDU: 90 00 [21:22:28]wFMCommunicate OK [21:22:28]wFMCommunicate request_size=4 [21:22:28]MH_SAM_APDU [21:22:28]CAPDU: 80 11 00 00 [21:22:28]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [21:22:28]Write i2c OK [21:22:28]MH_I2C_Read... [21:22:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:28]Read from MH i2c: E2 [21:22:28]MH_I2C_Read... [21:22:28]Read from MH i2c: E2 17 00 [21:22:28]MH_I2C_Read... [21:22:28]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DD [21:22:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:22:28]wFMCommunicate OK [21:22:28]DocumentArchiveInit [21:22:28]Start Httpd... [21:22:28]Httpd thread 3067366756 created [21:22:28]Write to MH i2c: 01 00 00 0F 00 0F [21:22:28]Write i2c OK [21:22:28]MH_I2C_Read... [21:22:28]Read from MH i2c: 01 [21:22:28]MH_I2C_Read... [21:22:28]Read from MH i2c: 01 07 00 [21:22:28]MH_I2C_Read... [21:22:28]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [21:22:28]MH Int Process started [21:22:28]Allocated Socket 7 [21:22:28]Bind OK [21:22:28]Listen OK [21:22:28]httpd running on port 8080 [21:22:28]Waiting for new connection... [21:22:28]OFD Sender: No OFD packet to send [21:22:33]OFD Sender: No OFD packet to send [21:22:34]accept exits with 8 [21:22:34]New connection [21:22:34]New thread 3067080036 created [21:22:34]Waiting for new connection... [21:22:34] Sock 8.Parse request [21:22:34]Sock 8.Check first char [21:22:34]Sock 8.First char is OK [21:22:34]request: POST /json_proto HTTP/1.0 [21:22:34]Method: POST [21:22:34]URL: /json_proto [21:22:34]Method is POST - this is cgi request [21:22:34]url: /json_proto [21:22:34]query_string will be loaded in cgi processing [21:22:34]execute_cgi json_proto POST (null) [21:22:34]execute_cgi path=json_proto method=POST [21:22:34]POST find Content-Length [21:22:34]Host: 172.17.63.195:8080 [21:22:34]Content-Length: 215 [21:22:34]Content-Type: application/json [21:22:34] [21:22:34]POST finish read [21:22:34]Found Content-Length = 215 [21:22:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:34]execute_script... [21:22:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:34]POST & json_proto [21:22:34]process_json_proto [21:22:34]json parsed OK: [21:22:34]protocol is kg_v1.0 [21:22:34]action value=get_value [21:22:34]process_action get_value [21:22:34]cmd_get_value [21:22:34]process_action get_value done [21:22:34]requested_data is exist [21:22:34]produce_requested_data [21:22:34]requested_item kkm.sn is exist - process it [21:22:34]requested_item kkm.ver is exist - process it [21:22:34]requested_item fm.sn is exist - process it [21:22:34]wFMCommunicate request_size=4 [21:22:34]MH_SAM_APDU [21:22:34]CAPDU: 80 11 00 00 [21:22:34]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [21:22:34]Write i2c OK [21:22:34]MH_I2C_Read... [21:22:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:34]Read from MH i2c: E2 [21:22:34]MH_I2C_Read... [21:22:34]Read from MH i2c: E2 17 00 [21:22:34]MH_I2C_Read... [21:22:34]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DF [21:22:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:22:34]wFMCommunicate OK [21:22:34]requested_item fd.num is exist - process it [21:22:34]SAM_PROTO_GetFieldsCounters [21:22:34]wFMCommunicate request_size=4 [21:22:34]MH_SAM_APDU [21:22:34]CAPDU: 80 13 00 00 [21:22:34]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [21:22:34]Write i2c OK [21:22:34]MH_I2C_Read... [21:22:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:22:34]Read from MH i2c: E2 [21:22:34]MH_I2C_Read... [21:22:34]Read from MH i2c: E2 62 00 [21:22:34]MH_I2C_Read... [21:22:34]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D9 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C3 01 00 00 5E 04 04 00 C3 01 00 00 57 04 04 00 C4 01 00 00 19 04 04 00 00 00 00 00 90 00 12 [21:22:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 D9 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C3 01 00 00 5E 04 04 00 C3 01 00 00 57 04 04 00 C4 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:22:34]wFMCommunicate OK [21:22:34]SAM_PROTO_GetFieldsCounters done [21:22:34]requested_item shift.num is exist - process it [21:22:34]requested_item shift.opened is exist - process it [21:22:34]req_shift_opened [21:22:34]FM_GetShiftState [21:22:34]SAM_PROTO_GetShiftState [21:22:34]wFMCommunicate request_size=4 [21:22:34]MH_SAM_APDU [21:22:34]CAPDU: 80 13 01 00 [21:22:34]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [21:22:34]Write i2c OK [21:22:34]MH_I2C_Read... [21:22:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:34]Read from MH i2c: E2 [21:22:34]MH_I2C_Read... [21:22:34]Read from MH i2c: E2 0E 00 [21:22:34]MH_I2C_Read... [21:22:34]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 9E [21:22:34]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [21:22:34]wFMCommunicate OK [21:22:34]SAM_PROTO_GetShiftState done [21:22:34]FM_GetShiftState done [21:22:34]req_shift_opened done [21:22:34]requested_item shift.open_date is exist - process it [21:22:34]req_shift_open_date [21:22:34]req_shift_open_date done [21:22:34]produce_requested_data done [21:22:34]produce_requested_data return {"kkm.sn":"0300000109","kkm.ver":"001","fm.sn":"0000000000871756","fd.num":201689,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [21:22:34]process_action_free get_value [21:22:34]json_value_free [21:22:34]json_value_free done [21:22:34]process_json_proto returns [21:22:34]Send response to host [21:22:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000109","kkm.ver":"001","fm.sn":"0000000000871756","fd.num":201689,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [21:22:34]free response buf [21:22:34]execute_script done [21:22:34]execute_script returns [21:22:34]free content buf [21:22:34]Sock 8.Close socket [21:22:34]Sock 8.Thread stoped [21:22:34]accept exits with 6 [21:22:34]New connection [21:22:34]New thread 3066936676 created [21:22:34]Thread 3067080036 joined [21:22:34]Waiting for new connection... [21:22:34] Sock 6.Parse request [21:22:34]Sock 6.Check first char [21:22:34]Sock 6.First char is OK [21:22:34]request: POST /json_proto HTTP/1.0 [21:22:34]Method: POST [21:22:34]URL: /json_proto [21:22:34]Method is POST - this is cgi request [21:22:34]url: /json_proto [21:22:34]query_string will be loaded in cgi processing [21:22:34]execute_cgi json_proto POST (null) [21:22:34]execute_cgi path=json_proto method=POST [21:22:34]POST find Content-Length [21:22:34]Host: 172.17.63.195:8080 [21:22:34]Content-Length: 331 [21:22:34]Content-Type: application/json [21:22:34] [21:22:34]POST finish read [21:22:34]Found Content-Length = 331 [21:22:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [21:22:34]execute_script... [21:22:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [21:22:34]POST & json_proto [21:22:34]process_json_proto [21:22:34]json parsed OK: [21:22:34]protocol is kg_v1.0 [21:22:34]action value=get_value [21:22:34]process_action get_value [21:22:34]cmd_get_value [21:22:34]process_action get_value done [21:22:34]requested_data is exist [21:22:34]produce_requested_data [21:22:34]requested_item fm.sale.total is exist - process it [21:22:34]SAM_PROTO_GetFMData [21:22:34]wFMCommunicate request_size=4 [21:22:34]MH_SAM_APDU [21:22:34]CAPDU: 80 13 03 00 [21:22:34]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [21:22:34]Write i2c OK [21:22:34]MH_I2C_Read... [21:22:35]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [21:22:35]Read from MH i2c: E2 [21:22:35]MH_I2C_Read... [21:22:35]Read from MH i2c: E2 FD 00 [21:22:35]MH_I2C_Read... [21:22:35]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 9B 0F 03 00 69 04 A3 00 6F 04 04 00 76 0F 03 00 B1 04 05 00 8B 9F C8 AC 03 70 04 05 00 C8 77 CE 4D 03 72 04 04 00 C3 27 FA 5E 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 12 40 F1 63 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 ED ED 53 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 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 82 [21:22:35]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 9B 0F 03 00 69 04 A3 00 6F 04 04 00 76 0F 03 00 B1 04 05 00 8B 9F C8 AC 03 70 04 05 00 C8 77 CE 4D 03 72 04 04 00 C3 27 FA 5E 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 12 40 F1 63 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 ED ED 53 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 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 [21:22:35]wFMCommunicate OK [21:22:35]wFMCommunicate request_size=4 [21:22:35]MH_SAM_APDU [21:22:35]CAPDU: 80 17 00 00 [21:22:35]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [21:22:35]Write i2c OK [21:22:35]MH_I2C_Read... [21:22:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:22:35]Read from MH i2c: E2 [21:22:35]MH_I2C_Read... [21:22:35]Read from MH i2c: E2 FD 00 [21:22:35]MH_I2C_Read... [21:22:35]Read from MH i2c: E2 FD 00 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 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 9B [21:22:35]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [21:22:35]wFMCommunicate OK [21:22:35]wFMCommunicate request_size=4 [21:22:35]MH_SAM_APDU [21:22:35]CAPDU: 80 17 00 00 [21:22:35]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [21:22:35]Write i2c OK [21:22:35]MH_I2C_Read... [21:22:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:22:35]Read from MH i2c: E2 [21:22:35]MH_I2C_Read... [21:22:35]Read from MH i2c: E2 FD 00 [21:22:35]MH_I2C_Read... [21:22:35]Read from MH i2c: E2 FD 00 15 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 03 90 00 AA [21:22:35]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [21:22:35]wFMCommunicate OK [21:22:35]wFMCommunicate request_size=4 [21:22:35]MH_SAM_APDU [21:22:35]CAPDU: 80 17 00 00 [21:22:35]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [21:22:35]Write i2c OK [21:22:35]MH_I2C_Read... [21:22:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:22:36]Read from MH i2c: E2 [21:22:36]MH_I2C_Read... [21:22:36]Read from MH i2c: E2 FD 00 [21:22:36]MH_I2C_Read... [21:22:36]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0E [21:22:36]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [21:22:36]wFMCommunicate OK [21:22:36]wFMCommunicate request_size=4 [21:22:36]MH_SAM_APDU [21:22:36]CAPDU: 80 17 00 00 [21:22:36]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [21:22:36]Write i2c OK [21:22:36]MH_I2C_Read... [21:22:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [21:22:36]Read from MH i2c: E2 [21:22:36]MH_I2C_Read... [21:22:36]Read from MH i2c: E2 E1 00 [21:22:36]MH_I2C_Read... [21:22:36]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [21:22:36]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [21:22:36]wFMCommunicate OK [21:22:36]SAM_PROTO_GetFMData done [21:22:36]requested_item fm.sale_refund.total is exist - process it [21:22:36]requested_item fm.buy.total is exist - process it [21:22:36]requested_item shift.sale.total is exist - process it [21:22:36]SAM_PROTO_GetShiftData [21:22:36]wFMCommunicate request_size=4 [21:22:36]MH_SAM_APDU [21:22:36]CAPDU: 80 13 02 00 [21:22:36]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [21:22:36]Write i2c OK [21:22:36]MH_I2C_Read... [21:22:36]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [21:22:36]Read from MH i2c: E2 [21:22:36]MH_I2C_Read... [21:22:36]Read from MH i2c: E2 FD 00 [21:22:36]MH_I2C_Read... [21:22:36]Read from MH i2c: E2 FD 00 18 00 00 B1 04 AA 04 AD 04 6E 04 04 00 C3 01 00 00 69 04 9E 00 6F 04 04 00 C3 01 00 00 B1 04 04 00 E4 94 1F 02 70 04 04 00 2C 47 E0 01 72 04 03 00 B8 4D 3F 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 76 BE 39 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 DC CF 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 42 [21:22:36]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 C3 01 00 00 69 04 9E 00 6F 04 04 00 C3 01 00 00 B1 04 04 00 E4 94 1F 02 70 04 04 00 2C 47 E0 01 72 04 03 00 B8 4D 3F 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 76 BE 39 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 DC CF 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [21:22:36]wFMCommunicate OK [21:22:36]wFMCommunicate request_size=4 [21:22:36]MH_SAM_APDU [21:22:36]CAPDU: 80 17 00 00 [21:22:36]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [21:22:36]Write i2c OK [21:22:36]MH_I2C_Read... [21:22:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:22:37]Read from MH i2c: E2 [21:22:37]MH_I2C_Read... [21:22:37]Read from MH i2c: E2 FD 00 [21:22:37]MH_I2C_Read... [21:22:37]Read from MH i2c: E2 FD 00 19 00 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B2 [21:22:37]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:22:37]wFMCommunicate OK [21:22:37]wFMCommunicate request_size=4 [21:22:37]MH_SAM_APDU [21:22:37]CAPDU: 80 17 00 00 [21:22:37]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [21:22:37]Write i2c OK [21:22:37]MH_I2C_Read... [21:22:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:22:37]Read from MH i2c: E2 [21:22:37]MH_I2C_Read... [21:22:37]Read from MH i2c: E2 FD 00 [21:22:37]MH_I2C_Read... [21:22:37]Read from MH i2c: E2 FD 00 1A 00 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 53 [21:22:37]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:22:37]wFMCommunicate OK [21:22:37]wFMCommunicate request_size=4 [21:22:37]MH_SAM_APDU [21:22:37]CAPDU: 80 17 00 00 [21:22:37]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [21:22:37]Write i2c OK [21:22:37]MH_I2C_Read... [21:22:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:22:37]Read from MH i2c: E2 [21:22:37]MH_I2C_Read... [21:22:37]Read from MH i2c: E2 FD 00 [21:22:37]MH_I2C_Read... [21:22:37]Read from MH i2c: E2 FD 00 1B 00 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 90 00 13 [21:22:37]RAPDU: 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 90 00 [21:22:37]wFMCommunicate OK [21:22:37]wFMCommunicate request_size=4 [21:22:37]MH_SAM_APDU [21:22:37]CAPDU: 80 17 00 00 [21:22:37]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [21:22:37]Write i2c OK [21:22:37]MH_I2C_Read... [21:22:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [21:22:37]Read from MH i2c: E2 [21:22:37]MH_I2C_Read... [21:22:37]Read from MH i2c: E2 CE 00 [21:22:37]MH_I2C_Read... [21:22:37]Read from MH i2c: E2 CE 00 1C 00 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 81 [21:22:38]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [21:22:38]wFMCommunicate OK [21:22:38]SAM_PROTO_GetShiftData done [21:22:38]requested_item shift.sale.total_cash is exist - process it [21:22:38]requested_item shift.sale_refund.total is exist - process it [21:22:38]requested_item shift.sale_refund.total_cash is exist - process it [21:22:38]requested_item shift.buy.total is exist - process it [21:22:38]requested_item shift.buy.total_cash is exist - process it [21:22:38]produce_requested_data done [21:22:38]produce_requested_data return {"fm.sale.total":157837310.83,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":356241.64,"shift.sale.total_cash":314755.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} [21:22:38]process_action_free get_value [21:22:38]json_value_free [21:22:38]json_value_free done [21:22:38]process_json_proto returns [21:22:38]Send response to host [21:22:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":157837310.83,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":356241.64,"shift.sale.total_cash":314755.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}}} [21:22:38]free response buf [21:22:38]execute_script done [21:22:38]execute_script returns [21:22:38]free content buf [21:22:38]Sock 6.Close socket [21:22:38]Sock 6.Thread stoped [21:22:38]accept exits with 8 [21:22:38]New connection [21:22:38]New thread 3067080036 created [21:22:38]Thread 3066936676 joined [21:22:38]Waiting for new connection... [21:22:38] Sock 8.Parse request [21:22:38]Sock 8.Check first char [21:22:38]Sock 8.First char is OK [21:22:38]request: POST /json_proto HTTP/1.0 [21:22:38]Method: POST [21:22:38]URL: /json_proto [21:22:38]Method is POST - this is cgi request [21:22:38]url: /json_proto [21:22:38]query_string will be loaded in cgi processing [21:22:38]execute_cgi json_proto POST (null) [21:22:38]execute_cgi path=json_proto method=POST [21:22:38]POST find Content-Length [21:22:38]Host: 172.17.63.195:8080 [21:22:38]Content-Length: 144 [21:22:38]Content-Type: application/json [21:22:38] [21:22:38]POST finish read [21:22:38]Found Content-Length = 144 [21:22:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [21:22:38]execute_script... [21:22:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [21:22:38]POST & json_proto [21:22:38]process_json_proto [21:22:38]json parsed OK: [21:22:38]protocol is kg_v1.0 [21:22:38]action value=print_doc [21:22:38]process_action print_doc [21:22:38]ExternCall_PrintAddStr [21:22:38]wPrintStart [21:22:38]Write to MH i2c: 01 00 00 1D 00 1D [21:22:38]Write i2c OK [21:22:38]MH_I2C_Read... [21:22:38]Read from MH i2c: 01 [21:22:38]MH_I2C_Read... [21:22:38]Read from MH i2c: 01 07 00 [21:22:38]MH_I2C_Read... [21:22:38]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [21:22:38]RasterBufferAndPrint [21:22:38]line Счет N : (1)449448 [21:22:38]line ИНН: 02508201610067 [21:22:38]line Контрольно-Кассовый Чек [21:22:38]line ПРОДАЖА [21:22:38]line ТРК (МРК, ГНК) : 43 [21:22:38]line Товар: 2710194210 [21:22:38]line ДТ-К-2 [21:22:38]line 39.380 * 76.20 [21:22:38]line = 3000.76 [21:22:38]line НДС 12% НСП 1% [21:22:38]line > о реализуемом товаре [21:22:38]line ОКРУГЛЕНИЕ: -0.76 [21:22:38]line ИТОГО: 3000.00 [21:22:38]line Внесено: 3000.00 [21:22:38]line СДАЧА: 0.00 [21:22:38]line НСП 1% : 26.55 [21:22:38]line НДС 12% : 318.66 [21:22:38]line Наличными: 3000.00 [21:22:38]line Безнал.: 0.00 [21:22:38]line Место: АЗС № 171 "Партнер Нефть" [21:22:38]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [21:22:38]line СНО: Общий режим [21:22:38]line Чек 451 26.10.2024 21:19 [21:22:38]line Смена: 543 ФФД: 1.0 [21:22:38]line ЗНМ: 0300000109 [21:22:38]line РНМ: 0000000000091777 [21:22:38]line Версия ККМ: 001 [21:22:38]line ФМ: 0000000000871756 [21:22:38]line ФД: 201689 [21:22:38]line ФПД: 169795867013199 [21:22:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T211902&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201689&fm=169795867013199&tin=02508201610067®Number=0000000000091777&sum=300000 [21:22:38]written 0, free lines is 4095 [21:22:38]Write to MH i2c: 01 00 00 48 00 48 [21:22:38]Write i2c OK [21:22:38]MH_I2C_Read... [21:22:38]Read from MH i2c: 01 [21:22:38]MH_I2C_Read... [21:22:38]OFD Sender: No OFD packet to send [21:22:38]Read from MH i2c: 01 07 00 [21:22:38]MH_I2C_Read... [21:22:38]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 A1 0C FC [21:22:38]RasterBufferAndPrint [21:22:38]line [21:22:38]line [21:22:38]line [21:22:38]line [21:22:38]line [21:22:38]written 0, free lines is 3259 [21:22:38]MH_Cut [21:22:38]Write to MH i2c: D1 01 00 4F 00 01 21 [21:22:38]Write i2c OK [21:22:38]MH_I2C_Read... [21:22:38]Read from MH i2c: D1 [21:22:38]MH_I2C_Read... [21:22:38]Read from MH i2c: D1 01 00 [21:22:38]MH_I2C_Read... [21:22:38]Read from MH i2c: D1 01 00 4F 00 00 20 [21:22:38]Write to MH i2c: 01 00 00 50 00 50 [21:22:38]Write i2c OK [21:22:38]MH_I2C_Read... [21:22:39]*** Cut start [21:22:39]*** Purtial cut [21:22:39]*** CUTSNS_PIN = 0 [21:22:39]*** Stage 1: CUTSNS_PIN = 1 [21:22:41]Read from MH i2c: 01 [21:22:41]*** Stop cut motor [21:22:41]MH_I2C_Read... [21:22:41]*** Cut end [21:22:41]Read from MH i2c: 01 07 00 [21:22:41]MH_I2C_Read... [21:22:41]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [21:22:41]process_action print_doc done [21:22:41]requested_data is exist [21:22:41]produce_requested_data [21:22:41]produce_requested_data return (null) [21:22:41]process_action_free print_doc [21:22:41]json_value_free [21:22:41]json_value_free done [21:22:41]process_json_proto returns [21:22:41]Send response to host [21:22:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [21:22:41]free response buf [21:22:41]execute_script done [21:22:41]execute_script returns [21:22:41]free content buf [21:22:41]Sock 8.Close socket [21:22:41]Sock 8.Thread stoped [21:22:43]OFD Sender: No OFD packet to send [21:22:48]OFD Sender: No OFD packet to send [21:22:53]OFD Sender: No OFD packet to send [21:22:58]OFD Sender: No OFD packet to send [21:22:58]accept exits with 6 [21:22:58]New connection [21:22:58]New thread 3066936676 created [21:22:58]Thread 3067080036 joined [21:22:58]Waiting for new connection... [21:22:58] Sock 6.Parse request [21:22:58]Sock 6.Check first char [21:22:58]Sock 6.First char is OK [21:22:58]request: POST /json_proto HTTP/1.0 [21:22:58]Method: POST [21:22:58]URL: /json_proto [21:22:58]Method is POST - this is cgi request [21:22:58]url: /json_proto [21:22:58]query_string will be loaded in cgi processing [21:22:58]execute_cgi json_proto POST (null) [21:22:58]execute_cgi path=json_proto method=POST [21:22:58]POST find Content-Length [21:22:58]Host: 172.17.63.195:8080 [21:22:58]Content-Length: 677 [21:22:58]Content-Type: application/json [21:22:58] [21:22:58]POST finish read [21:22:58]Found Content-Length = 677 [21:22:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [21:22:58]execute_script... [21:22:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [21:22:58]POST & json_proto [21:22:58]process_json_proto [21:22:58]json parsed OK: [21:22:58]protocol is kg_v1.0 [21:22:58]action value=close_receipt [21:22:58]process_action close_receipt [21:22:58]cmd_close_receipt [21:22:58]MH_GetDate [21:22:58]Write to MH i2c: F0 00 00 51 00 40 [21:22:58]Write i2c OK [21:22:58]MH_I2C_Read... [21:22:58]Read from MH i2c: F0 [21:22:58]MH_I2C_Read... [21:22:58]Read from MH i2c: F0 09 00 [21:22:58]MH_I2C_Read... [21:22:58]Read from MH i2c: F0 09 00 51 00 00 B3 5D 1D 67 68 46 19 67 0B [21:22:58]GetLastDocTimeStamp 1729977542 [21:22:58]current date 1729977779 [21:22:58]FM_GetShiftState [21:22:58]SAM_PROTO_GetShiftState [21:22:58]wFMCommunicate request_size=4 [21:22:58]MH_SAM_APDU [21:22:58]CAPDU: 80 13 01 00 [21:22:58]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [21:22:58]Write i2c OK [21:22:58]MH_I2C_Read... [21:22:59]Read from MH i2c: E2 [21:22:59]MH_I2C_Read... [21:22:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:59]Read from MH i2c: E2 0E 00 [21:22:59]MH_I2C_Read... [21:22:59]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 DE [21:22:59]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [21:22:59]wFMCommunicate OK [21:22:59]SAM_PROTO_GetShiftState done [21:22:59]FM_GetShiftState done [21:22:59]opened in 1729900879 [21:22:59]opened+sec_in_day 1729987279 [21:22:59]quantity*price = 20003 [21:22:59]sum+1 = 20004 [21:22:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 452 26.10.2024 21:22 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201690 ФПД: 50377472126536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T212259&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201690&fm=50377472126536&tin=02508201610067®Number=0000000000091777&sum=20000 [21:23:00]StoreToDocumentArchive [21:23:00]shift 543 fd 201690 [21:23:00]save to /storage/0543/doc_00201690 [21:23:00]save last doc name /storage/0543/doc_00201690 to /storage/kkm_last_doc_name [21:23:00]save OK [21:23:00]Clear old archive folders... [21:23:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:23:00]tlvbuf is 00069EC0 [21:23:00]SAM_PROTO_ClearQueue [21:23:00]wFMCommunicate request_size=4 [21:23:00]MH_SAM_APDU [21:23:00]CAPDU: 80 09 00 00 [21:23:00]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [21:23:00]Write i2c OK [21:23:00]MH_I2C_Read... [21:23:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:23:00]Read from MH i2c: E2 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: E2 03 00 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [21:23:00]RAPDU: 90 00 [21:23:00]wFMCommunicate OK [21:23:00]SAM_PROTO_ClearQueue done [21:23:00]KKMCreateOFDPacket [21:23:00]OFDProtocolAddRootSTLVToBuf [21:23:00]FM_MakeSignedData [21:23:00]FM_MakeSignedData [21:23:00]SAM_PROTO_SignData [21:23:00]wFMCommunicate request_size=4 [21:23:00]MH_SAM_APDU [21:23:00]CAPDU: 80 0D 01 02 [21:23:00]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [21:23:00]Write i2c OK [21:23:00]MH_I2C_Read... [21:23:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:23:00]Read from MH i2c: E2 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: E2 03 00 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [21:23:00]RAPDU: 90 00 [21:23:00]wFMCommunicate OK [21:23:00]wFMCommunicate request_size=255 [21:23:00]MH_SAM_APDU [21:23:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C4 01 00 00 F4 03 04 00 B3 5D 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DA 13 03 00 35 04 06 00 2D [21:23:00]Write to MH i2c: E2 02 01 61 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C4 01 00 00 F4 03 04 00 B3 5D 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DA 13 03 00 35 04 06 00 2D 00 00 C6 [21:23:00]Write i2c OK [21:23:00]MH_I2C_Read... [21:23:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:00]Read from MH i2c: E2 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: E2 03 00 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [21:23:00]RAPDU: 90 00 [21:23:00]wFMCommunicate OK [21:23:00]wFMCommunicate request_size=10 [21:23:00]MH_SAM_APDU [21:23:00]CAPDU: 80 0D 02 02 05 D1 6B 54 AE 48 [21:23:00]Write to MH i2c: E2 0D 00 62 00 80 0D 02 02 05 00 D1 6B 54 AE 48 00 00 6C [21:23:00]Write i2c OK [21:23:00]MH_I2C_Read... [21:23:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:00]Read from MH i2c: E2 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: E2 03 00 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [21:23:00]RAPDU: 90 00 [21:23:00]wFMCommunicate OK [21:23:00]wFMCommunicate request_size=4 [21:23:00]MH_SAM_APDU [21:23:00]CAPDU: 80 0D 03 02 [21:23:00]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [21:23:00]Write i2c OK [21:23:00]MH_I2C_Read... [21:23:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:23:00]Read from MH i2c: E2 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: E2 0B 00 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: E2 0B 00 63 00 00 F8 FD B5 9E 21 1E AE 47 90 00 5B [21:23:00]RAPDU: F8 FD B5 9E 21 1E AE 47 90 00 [21:23:00]wFMCommunicate OK [21:23:00]SAM_PROTO_SignData done [21:23:00]FM_MakeSignedData done [21:23:00]CreateOFDProtocolMessage [21:23:00]wFMCommunicate request_size=4 [21:23:00]MH_SAM_APDU [21:23:00]CAPDU: 80 11 00 00 [21:23:00]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [21:23:00]Write i2c OK [21:23:00]MH_I2C_Read... [21:23:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:00]Read from MH i2c: E2 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: E2 17 00 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 33 [21:23:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:23:00]wFMCommunicate OK [21:23:00]CreateOFDProtocolMessage done [21:23:00]OFDSenderStorePacket 201690 [21:23:00]StoreOFDPacket docnum=201690 [21:23:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6E 15 07 01 99 30 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 32 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 C4 01 00 00 F4 03 04 00 B3 5D 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DA 13 03 00 35 04 06 00 2D D1 6B 54 AE 48 F8 FD B5 9E 21 1E AE 47 [21:23:00]CheckFolder [21:23:00]dirname=/storage/ofd_packets [21:23:00]CheckFolder done [21:23:00]ProducePacketName [21:23:00]name=ofd_packets/00201690 [21:23:00]NVStorageSaveData ofd_packets/00201690 [21:23:00]File name is /storage/ofd_packets/00201690 [21:23:00]Write 301 bytes [21:23:00]NVStorageSaveData done [21:23:00]OFDSenderStorePacket done [21:23:00]KKMCreateOFDPacket done [21:23:00]NVStorageSaveData kkm_last_timestamp [21:23:00]File name is /storage/kkm_last_timestamp [21:23:00]Write 4 bytes [21:23:00]NVStorageSaveData done [21:23:00]ExternCall_PrintAddStr [21:23:00]wPrintStart [21:23:00]Write to MH i2c: 01 00 00 65 00 65 [21:23:00]Write i2c OK [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: 01 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: 01 07 00 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [21:23:00]RasterBufferAndPrint [21:23:00]line Счет N : (1)449449 [21:23:00]line ИНН: 02508201610067 [21:23:00]line Контрольно-Кассовый Чек [21:23:00]line ПРОДАЖА [21:23:00]line ТРК (МРК, ГНК) : 41 [21:23:00]line Товар: 2710124130 [21:23:00]line Аи-92-К-2 [21:23:00]line 2.990 * 66.90 [21:23:00]line = 200.03 [21:23:00]line НДС 12% НСП 1% [21:23:00]line > о реализуемом товаре [21:23:00]line ОКРУГЛЕНИЕ: -0.03 [21:23:00]line ИТОГО: 200.00 [21:23:00]line Внесено: 200.00 [21:23:00]line СДАЧА: 0.00 [21:23:00]line НСП 1% : 1.77 [21:23:00]line НДС 12% : 21.24 [21:23:00]line Наличными: 200.00 [21:23:00]line Безнал.: 0.00 [21:23:00]line Место: АЗС № 171 "Партнер Нефть" [21:23:00]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [21:23:00]line СНО: Общий режим [21:23:00]line Чек 452 26.10.2024 21:22 [21:23:00]line Смена: 543 ФФД: 1.0 [21:23:00]line ЗНМ: 0300000109 [21:23:00]line РНМ: 0000000000091777 [21:23:00]line Версия ККМ: 001 [21:23:00]line ФМ: 0000000000871756 [21:23:00]line ФД: 201690 [21:23:00]line ФПД: 50377472126536 [21:23:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T212259&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201690&fm=50377472126536&tin=02508201610067®Number=0000000000091777&sum=20000 [21:23:00]written 0, free lines is 4095 [21:23:00]OFD Sender: Processing packet 201690 [packets to send 112, broken 111] [21:23:00]ProducePacketName [21:23:00]name=ofd_packets/00201690 [21:23:00]OFD Sender: To server: pG, [21:23:00]CommunicateWithHost lk.salyk.kg:30040 [21:23:00]ConnectInit lk.salyk.kg [21:23:00]Connected sock=10 [21:23:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 6E 15 07 01 99 30 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 32 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 C4 01 00 00 F4 03 04 00 B3 5D 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DA 13 03 00 35 04 06 00 2D D1 6B 54 AE 48 F8 FD B5 9E 21 1E AE 47 [21:23:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 2F AB 47 00 A5 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DA 13 03 00 F4 03 04 00 5B 09 1D 67 B6 04 01 00 00 15 40 EF 86 6F 2E ED E5 [21:23:01]CommunicateWithHost err = 0 [21:23:01]CheckOFDResponse [21:23:01]1017 (14) - 77093643461234 [21:23:01]1041 (16) - 0000000000871756 [21:23:01]1040 (4) - 201690 [21:23:01]1012 (4) - 26.10.2024 15:23 [21:23:01]1206 (1) - 0 [21:23:01]OFD Sender: Remove packet 201690 [21:23:01]ProducePacketName [21:23:01]name=ofd_packets/00201690 [21:23:01]NVStorageDeleteData [21:23:01]Write to MH i2c: 01 00 00 90 00 90 [21:23:01]Write i2c OK [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: 01 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: 01 07 00 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: 01 07 00 90 00 00 00 00 00 00 A2 0C 45 [21:23:01]RasterBufferAndPrint [21:23:01]line [21:23:01]line [21:23:01]line [21:23:01]line [21:23:01]line [21:23:01]written 0, free lines is 3239 [21:23:01]MH_Cut [21:23:01]Write to MH i2c: D1 01 00 97 00 01 69 [21:23:01]Write i2c OK [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: D1 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: D1 01 00 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: D1 01 00 97 00 00 68 [21:23:01]Write to MH i2c: 01 00 00 98 00 98 [21:23:01]Write i2c OK [21:23:01]MH_I2C_Read... [21:23:01]OFD Sender: No OFD packet to send [21:23:02]*** Cut start [21:23:02]*** Purtial cut [21:23:02]*** Stage 1: CUTSNS_PIN = 1 [21:23:02]Read from MH i2c: 01 [21:23:02]MH_I2C_Read... [21:23:02]*** Stop cut motor [21:23:02]*** Cut end [21:23:02]Read from MH i2c: 01 07 00 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 FF 0F AD [21:23:02]process_action close_receipt done [21:23:02]requested_data is exist [21:23:02]produce_requested_data [21:23:02]requested_item fm.sn is exist - process it [21:23:02]wFMCommunicate request_size=4 [21:23:02]MH_SAM_APDU [21:23:02]CAPDU: 80 11 00 00 [21:23:02]Write to MH i2c: E2 08 00 99 00 80 11 00 00 00 00 00 00 13 [21:23:02]Write i2c OK [21:23:02]MH_I2C_Read... [21:23:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:02]Read from MH i2c: E2 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 17 00 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 17 00 99 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 68 [21:23:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:23:02]wFMCommunicate OK [21:23:02]requested_item fd.num is exist - process it [21:23:02]SAM_PROTO_GetFieldsCounters [21:23:02]wFMCommunicate request_size=4 [21:23:02]MH_SAM_APDU [21:23:02]CAPDU: 80 13 00 00 [21:23:02]Write to MH i2c: E2 08 00 9A 00 80 13 00 00 00 00 00 00 16 [21:23:02]Write i2c OK [21:23:02]MH_I2C_Read... [21:23:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:23:02]Read from MH i2c: E2 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 62 00 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 62 00 9A 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DA 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C4 01 00 00 5E 04 04 00 C4 01 00 00 57 04 04 00 C5 01 00 00 19 04 04 00 00 00 00 00 90 00 9F [21:23:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DA 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C4 01 00 00 5E 04 04 00 C4 01 00 00 57 04 04 00 C5 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:23:02]wFMCommunicate OK [21:23:02]SAM_PROTO_GetFieldsCounters done [21:23:02]requested_item shift.num is exist - process it [21:23:02]requested_item shift.opened is exist - process it [21:23:02]req_shift_opened [21:23:02]FM_GetShiftState [21:23:02]SAM_PROTO_GetShiftState [21:23:02]wFMCommunicate request_size=4 [21:23:02]MH_SAM_APDU [21:23:02]CAPDU: 80 13 01 00 [21:23:02]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [21:23:02]Write i2c OK [21:23:02]MH_I2C_Read... [21:23:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:02]Read from MH i2c: E2 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 0E 00 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 27 [21:23:02]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [21:23:02]wFMCommunicate OK [21:23:02]SAM_PROTO_GetShiftState done [21:23:02]FM_GetShiftState done [21:23:02]req_shift_opened done [21:23:02]requested_item shift.open_date is exist - process it [21:23:02]req_shift_open_date [21:23:02]req_shift_open_date done [21:23:02]produce_requested_data done [21:23:02]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201690,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [21:23:02]process_action_free close_receipt [21:23:02]json_value_free [21:23:02]json_value_free done [21:23:02]process_json_proto returns [21:23:02]Send response to host [21:23:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201690,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [21:23:02]free response buf [21:23:02]execute_script done [21:23:02]execute_script returns [21:23:02]free content buf [21:23:02]Sock 6.Close socket [21:23:02]Sock 6.Thread stoped [21:23:06]OFD Sender: No OFD packet to send [21:23:11]OFD Sender: No OFD packet to send [21:23:16]OFD Sender: No OFD packet to send [21:23:21]OFD Sender: No OFD packet to send [21:23:26]OFD Sender: No OFD packet to send [21:23:31]OFD Sender: No OFD packet to send [21:23:36]OFD Sender: No OFD packet to send [21:23:41]OFD Sender: No OFD packet to send [21:23:46]OFD Sender: No OFD packet to send [21:23:51]OFD Sender: No OFD packet to send [21:23:56]OFD Sender: No OFD packet to send [21:24:01]OFD Sender: No OFD packet to send [21:24:06]OFD Sender: No OFD packet to send [21:24:11]OFD Sender: No OFD packet to send [21:24:16]OFD Sender: No OFD packet to send [21:24:21]OFD Sender: No OFD packet to send [21:24:26]OFD Sender: No OFD packet to send [21:24:31]OFD Sender: No OFD packet to send [21:24:36]OFD Sender: No OFD packet to send [21:24:41]OFD Sender: No OFD packet to send [21:24:46]OFD Sender: No OFD packet to send [21:24:51]OFD Sender: No OFD packet to send [21:24:56]OFD Sender: No OFD packet to send [21:25:01]OFD Sender: No OFD packet to send [21:25:06]OFD Sender: No OFD packet to send [21:25:11]OFD Sender: No OFD packet to send [21:25:16]OFD Sender: No OFD packet to send [21:25:21]OFD Sender: No OFD packet to send [21:25:26]OFD Sender: No OFD packet to send [21:25:31]OFD Sender: No OFD packet to send [21:25:36]OFD Sender: No OFD packet to send [21:25:41]OFD Sender: No OFD packet to send [21:25:46]OFD Sender: No OFD packet to send [21:25:51]OFD Sender: No OFD packet to send [21:25:56]OFD Sender: No OFD packet to send [21:26:01]OFD Sender: No OFD packet to send [21:26:06]OFD Sender: No OFD packet to send [21:26:11]OFD Sender: No OFD packet to send [21:26:16]OFD Sender: No OFD packet to send [21:26:21]OFD Sender: No OFD packet to send [21:26:26]OFD Sender: No OFD packet to send [21:26:31]OFD Sender: No OFD packet to send [21:26:36]OFD Sender: No OFD packet to send [21:26:41]OFD Sender: No OFD packet to send [21:26:46]OFD Sender: No OFD packet to send [21:26:51]OFD Sender: No OFD packet to send [21:26:56]OFD Sender: No OFD packet to send [21:27:01]OFD Sender: No OFD packet to send [21:27:06]OFD Sender: No OFD packet to send [21:27:11]OFD Sender: No OFD packet to send [21:27:16]OFD Sender: No OFD packet to send [21:27:21]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:32]accept exits with 9 [21:27:32]New connection [21:27:32]New thread 3067080036 created [21:27:32]Thread 3066936676 joined [21:27:32]Waiting for new connection... [21:27:32] Sock 9.Parse request [21:27:32]Sock 9.Check first char [21:27:32]Sock 9.First char is OK [21:27:32]request: POST /json_proto HTTP/1.0 [21:27:32]Method: POST [21:27:32]URL: /json_proto [21:27:32]Method is POST - this is cgi request [21:27:32]url: /json_proto [21:27:32]query_string will be loaded in cgi processing [21:27:32]execute_cgi json_proto POST (null) [21:27:32]execute_cgi path=json_proto method=POST [21:27:32]POST find Content-Length [21:27:32]Host: 172.17.63.195:8080 [21:27:32]Content-Length: 682 [21:27:32]Content-Type: application/json [21:27:32] [21:27:32]POST finish read [21:27:32]Found Content-Length = 682 [21:27:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [21:27:32]execute_script... [21:27: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)449450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [21:27:32]POST & json_proto [21:27:32]process_json_proto [21:27:32]json parsed OK: [21:27:32]protocol is kg_v1.0 [21:27:32]action value=close_receipt [21:27:32]process_action close_receipt [21:27:32]cmd_close_receipt [21:27:32]MH_GetDate [21:27:32]Write to MH i2c: F0 00 00 9C 00 8B [21:27:32]Write i2c OK [21:27:32]MH_I2C_Read... [21:27:32]Read from MH i2c: F0 [21:27:32]MH_I2C_Read... [21:27:32]Read from MH i2c: F0 09 00 [21:27:32]MH_I2C_Read... [21:27:32]Read from MH i2c: F0 09 00 9C 00 00 C5 5E 1D 67 68 46 19 67 69 [21:27:32]GetLastDocTimeStamp 1729977779 [21:27:32]current date 1729978053 [21:27:32]FM_GetShiftState [21:27:32]SAM_PROTO_GetShiftState [21:27:32]wFMCommunicate request_size=4 [21:27:32]MH_SAM_APDU [21:27:32]CAPDU: 80 13 01 00 [21:27:32]Write to MH i2c: E2 08 00 9D 00 80 13 01 00 00 00 00 00 1A [21:27:32]Write i2c OK [21:27:32]MH_I2C_Read... [21:27:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:32]Read from MH i2c: E2 [21:27:32]MH_I2C_Read... [21:27:32]Read from MH i2c: E2 0E 00 [21:27:32]MH_I2C_Read... [21:27:32]Read from MH i2c: E2 0E 00 9D 00 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 29 [21:27:32]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [21:27:32]wFMCommunicate OK [21:27:32]SAM_PROTO_GetShiftState done [21:27:32]FM_GetShiftState done [21:27:32]opened in 1729900879 [21:27:32]opened+sec_in_day 1729987279 [21:27:32]quantity*price = 100015 [21:27:32]sum+1 = 100017 [21:27:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 453 26.10.2024 21:27 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201691 ФПД: 110273993461954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T212733&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201691&fm=110273993461954&tin=02508201610067®Number=0000000000091777&sum=100000 [21:27:33]StoreToDocumentArchive [21:27:33]shift 543 fd 201691 [21:27:33]save to /storage/0543/doc_00201691 [21:27:33]save last doc name /storage/0543/doc_00201691 to /storage/kkm_last_doc_name [21:27:33]save OK [21:27:33]Clear old archive folders... [21:27:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:27:33]tlvbuf is B6F74010 [21:27:33]SAM_PROTO_ClearQueue [21:27:33]wFMCommunicate request_size=4 [21:27:33]MH_SAM_APDU [21:27:33]CAPDU: 80 09 00 00 [21:27:33]Write to MH i2c: E2 08 00 AA 00 80 09 00 00 00 00 00 00 1C [21:27:33]Write i2c OK [21:27:33]MH_I2C_Read... [21:27:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:27:33]Read from MH i2c: E2 [21:27:33]MH_I2C_Read... [21:27:33]Read from MH i2c: E2 03 00 [21:27:33]MH_I2C_Read... [21:27:33]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [21:27:33]RAPDU: 90 00 [21:27:33]wFMCommunicate OK [21:27:33]SAM_PROTO_ClearQueue done [21:27:33]KKMCreateOFDPacket [21:27:33]OFDProtocolAddRootSTLVToBuf [21:27:33]FM_MakeSignedData [21:27:33]FM_MakeSignedData [21:27:33]SAM_PROTO_SignData [21:27:33]wFMCommunicate request_size=4 [21:27:33]MH_SAM_APDU [21:27:33]CAPDU: 80 0D 01 02 [21:27:33]Write to MH i2c: E2 08 00 AB 00 80 0D 01 02 00 00 00 00 24 [21:27:33]Write i2c OK [21:27:33]MH_I2C_Read... [21:27:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:27:33]Read from MH i2c: E2 [21:27:33]MH_I2C_Read... [21:27:33]Read from MH i2c: E2 03 00 [21:27:33]MH_I2C_Read... [21:27:33]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [21:27:33]RAPDU: 90 00 [21:27:33]wFMCommunicate OK [21:27:33]wFMCommunicate request_size=255 [21:27:33]MH_SAM_APDU [21:27: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 32 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 C5 01 00 00 F4 03 04 00 C5 5E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DB 13 03 00 35 04 06 00 64 [21:27:33]Write to MH i2c: E2 02 01 AC 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C5 01 00 00 F4 03 04 00 C5 5E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DB 13 03 00 35 04 06 00 64 00 00 95 [21:27:33]Write i2c OK [21:27:33]MH_I2C_Read... [21:27:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:33]Read from MH i2c: E2 [21:27:33]MH_I2C_Read... [21:27:33]Read from MH i2c: E2 03 00 [21:27:33]MH_I2C_Read... [21:27:33]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [21:27:33]RAPDU: 90 00 [21:27:33]wFMCommunicate OK [21:27:33]wFMCommunicate request_size=10 [21:27:33]MH_SAM_APDU [21:27:33]CAPDU: 80 0D 02 02 05 4B 2A 35 50 C2 [21:27:33]Write to MH i2c: E2 0D 00 AD 00 80 0D 02 02 05 00 4B 2A 35 50 C2 00 00 ED [21:27:33]Write i2c OK [21:27:33]MH_I2C_Read... [21:27:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:33]Read from MH i2c: E2 [21:27:33]MH_I2C_Read... [21:27:33]Read from MH i2c: E2 03 00 [21:27:33]MH_I2C_Read... [21:27:33]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [21:27:33]RAPDU: 90 00 [21:27:33]wFMCommunicate OK [21:27:33]wFMCommunicate request_size=4 [21:27:33]MH_SAM_APDU [21:27:33]CAPDU: 80 0D 03 02 [21:27:33]Write to MH i2c: E2 08 00 AE 00 80 0D 03 02 00 00 00 00 29 [21:27:33]Write i2c OK [21:27:33]MH_I2C_Read... [21:27:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:27:33]Read from MH i2c: E2 [21:27:33]MH_I2C_Read... [21:27:33]Read from MH i2c: E2 0B 00 [21:27:33]MH_I2C_Read... [21:27:33]Read from MH i2c: E2 0B 00 AE 00 00 57 27 B1 90 93 9E A7 51 90 00 12 [21:27:33]RAPDU: 57 27 B1 90 93 9E A7 51 90 00 [21:27:33]wFMCommunicate OK [21:27:33]SAM_PROTO_SignData done [21:27:33]FM_MakeSignedData done [21:27:33]CreateOFDProtocolMessage [21:27:33]wFMCommunicate request_size=4 [21:27:33]MH_SAM_APDU [21:27:33]CAPDU: 80 11 00 00 [21:27:33]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [21:27:33]Write i2c OK [21:27:33]MH_I2C_Read... [21:27:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:33]Read from MH i2c: E2 [21:27:33]MH_I2C_Read... [21:27:33]Read from MH i2c: E2 17 00 [21:27:33]MH_I2C_Read... [21:27:33]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7E [21:27:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:27:33]wFMCommunicate OK [21:27:33]CreateOFDProtocolMessage done [21:27:33]OFDSenderStorePacket 201691 [21:27:33]StoreOFDPacket docnum=201691 [21:27:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 67 C4 07 01 08 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C5 01 00 00 F4 03 04 00 C5 5E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DB 13 03 00 35 04 06 00 64 4B 2A 35 50 C2 57 27 B1 90 93 9E A7 51 [21:27:33]CheckFolder [21:27:33]dirname=/storage/ofd_packets [21:27:33]CheckFolder done [21:27:33]ProducePacketName [21:27:33]name=ofd_packets/00201691 [21:27:33]NVStorageSaveData ofd_packets/00201691 [21:27:33]File name is /storage/ofd_packets/00201691 [21:27:33]Write 301 bytes [21:27:33]NVStorageSaveData done [21:27:33]OFDSenderStorePacket done [21:27:33]KKMCreateOFDPacket done [21:27:33]NVStorageSaveData kkm_last_timestamp [21:27:33]File name is /storage/kkm_last_timestamp [21:27:33]Write 4 bytes [21:27:33]NVStorageSaveData done [21:27:33]ExternCall_PrintAddStr [21:27:33]wPrintStart [21:27:33]Write to MH i2c: 01 00 00 B0 00 B0 [21:27:33]Write i2c OK [21:27:33]MH_I2C_Read... [21:27:33]Read from MH i2c: 01 [21:27:33]MH_I2C_Read... [21:27:33]Read from MH i2c: 01 07 00 [21:27:33]MH_I2C_Read... [21:27:33]Read from MH i2c: 01 07 00 B0 00 00 00 00 00 00 FF 0F C5 [21:27:33]RasterBufferAndPrint [21:27:33]line Счет N : (1)449450 [21:27:33]line ИНН: 02508201610067 [21:27:33]line Контрольно-Кассовый Чек [21:27:33]line ПРОДАЖА [21:27:33]line ТРК (МРК, ГНК) : 52 [21:27:33]line Товар: 2710124130 [21:27:33]line Аи-92-К-2 [21:27:33]line 14.950 * 66.90 [21:27:33]line = 1000.16 [21:27:33]line НДС 12% НСП 1% [21:27:33]line > о реализуемом товаре [21:27:33]line ОКРУГЛЕНИЕ: -0.16 [21:27:33]line ИТОГО: 1000.00 [21:27:33]line Внесено: 1000.00 [21:27:33]line СДАЧА: 0.00 [21:27:33]line НСП 1% : 8.85 [21:27:33]line НДС 12% : 106.21 [21:27:33]line Наличными: 1000.00 [21:27:33]line Безнал.: 0.00 [21:27:33]line Место: АЗС № 171 "Партнер Нефть" [21:27:33]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [21:27:33]line СНО: Общий режим [21:27:33]line Чек 453 26.10.2024 21:27 [21:27:33]line Смена: 543 ФФД: 1.0 [21:27:33]line ЗНМ: 0300000109 [21:27:33]line РНМ: 0000000000091777 [21:27:33]line Версия ККМ: 001 [21:27:33]line ФМ: 0000000000871756 [21:27:33]line ФД: 201691 [21:27:33]line ФПД: 110273993461954 [21:27:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T212733&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201691&fm=110273993461954&tin=02508201610067®Number=0000000000091777&sum=100000 [21:27:33]written 0, free lines is 4095 [21:27:33]OFD Sender: Processing packet 201691 [packets to send 112, broken 111] [21:27:33]ProducePacketName [21:27:33]name=ofd_packets/00201691 [21:27:33]OFD Sender: To server: pG, [21:27:33]CommunicateWithHost lk.salyk.kg:30040 [21:27:33]ConnectInit lk.salyk.kg [21:27:34]Connected sock=10 [21:27:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 67 C4 07 01 08 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C5 01 00 00 F4 03 04 00 C5 5E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DB 13 03 00 35 04 06 00 64 4B 2A 35 50 C2 57 27 B1 90 93 9E A7 51 [21:27:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 BC EF 47 00 46 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DB 13 03 00 F4 03 04 00 6C 0A 1D 67 B6 04 01 00 00 A9 77 F8 3D AF F2 B9 10 [21:27:34]CommunicateWithHost err = 0 [21:27:34]CheckOFDResponse [21:27:34]1017 (14) - 77093643461234 [21:27:34]1041 (16) - 0000000000871756 [21:27:34]1040 (4) - 201691 [21:27:34]1012 (4) - 26.10.2024 15:27 [21:27:34]1206 (1) - 0 [21:27:34]OFD Sender: Remove packet 201691 [21:27:34]ProducePacketName [21:27:34]name=ofd_packets/00201691 [21:27:34]NVStorageDeleteData [21:27:34]Write to MH i2c: 01 00 00 DB 00 DB [21:27:34]Write i2c OK [21:27:34]MH_I2C_Read... [21:27:34]Read from MH i2c: 01 [21:27:34]MH_I2C_Read... [21:27:34]Read from MH i2c: 01 07 00 [21:27:34]MH_I2C_Read... [21:27:34]Read from MH i2c: 01 07 00 DB 00 00 00 00 00 00 9F 0C 8D [21:27:34]RasterBufferAndPrint [21:27:34]line [21:27:34]line [21:27:34]line [21:27:34]line [21:27:34]line [21:27:34]written 0, free lines is 3235 [21:27:34]MH_Cut [21:27:34]Write to MH i2c: D1 01 00 E2 00 01 B4 [21:27:34]Write i2c OK [21:27:34]MH_I2C_Read... [21:27:34]Read from MH i2c: D1 [21:27:34]MH_I2C_Read... [21:27:34]Read from MH i2c: D1 01 00 [21:27:34]MH_I2C_Read... [21:27:34]Read from MH i2c: D1 01 00 E2 00 00 B3 [21:27:34]Write to MH i2c: 01 00 00 E3 00 E3 [21:27:34]Write i2c OK [21:27:34]MH_I2C_Read... [21:27:34]OFD Sender: No OFD packet to send [21:27:35]*** Cut start [21:27:35]*** Purtial cut [21:27:35]*** CUTSNS_PIN = 0 [21:27:35]*** Stage 1: CUTSNS_PIN = 1 [21:27:37]Read from MH i2c: 01 [21:27:37]MH_I2C_Read... [21:27:37]*** Stop cut motor [21:27:37]*** Cut end [21:27:37]Read from MH i2c: 01 07 00 [21:27:37]MH_I2C_Read... [21:27:37]Read from MH i2c: 01 07 00 E3 00 00 00 00 00 00 FF 0F F8 [21:27:37]process_action close_receipt done [21:27:37]requested_data is exist [21:27:37]produce_requested_data [21:27:37]requested_item fm.sn is exist - process it [21:27:37]wFMCommunicate request_size=4 [21:27:37]MH_SAM_APDU [21:27:37]CAPDU: 80 11 00 00 [21:27:37]Write to MH i2c: E2 08 00 E4 00 80 11 00 00 00 00 00 00 5E [21:27:37]Write i2c OK [21:27:37]MH_I2C_Read... [21:27:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:37]Read from MH i2c: E2 [21:27:37]MH_I2C_Read... [21:27:37]Read from MH i2c: E2 17 00 [21:27:37]MH_I2C_Read... [21:27:37]Read from MH i2c: E2 17 00 E4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B3 [21:27:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:27:37]wFMCommunicate OK [21:27:37]requested_item fd.num is exist - process it [21:27:37]SAM_PROTO_GetFieldsCounters [21:27:37]wFMCommunicate request_size=4 [21:27:37]MH_SAM_APDU [21:27:37]CAPDU: 80 13 00 00 [21:27:37]Write to MH i2c: E2 08 00 E5 00 80 13 00 00 00 00 00 00 61 [21:27:37]Write i2c OK [21:27:37]MH_I2C_Read... [21:27:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:27:37]Read from MH i2c: E2 [21:27:37]MH_I2C_Read... [21:27:37]Read from MH i2c: E2 62 00 [21:27:37]MH_I2C_Read... [21:27:37]Read from MH i2c: E2 62 00 E5 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DB 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C6 01 00 00 19 04 04 00 00 00 00 00 90 00 EE [21:27:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DB 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C6 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:27:37]wFMCommunicate OK [21:27:37]SAM_PROTO_GetFieldsCounters done [21:27:37]requested_item shift.num is exist - process it [21:27:37]requested_item shift.opened is exist - process it [21:27:37]req_shift_opened [21:27:37]FM_GetShiftState [21:27:37]SAM_PROTO_GetShiftState [21:27:37]wFMCommunicate request_size=4 [21:27:37]MH_SAM_APDU [21:27:37]CAPDU: 80 13 01 00 [21:27:37]Write to MH i2c: E2 08 00 E6 00 80 13 01 00 00 00 00 00 63 [21:27:37]Write i2c OK [21:27:37]MH_I2C_Read... [21:27:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:37]Read from MH i2c: E2 [21:27:37]MH_I2C_Read... [21:27:37]Read from MH i2c: E2 0E 00 [21:27:37]MH_I2C_Read... [21:27:37]Read from MH i2c: E2 0E 00 E6 00 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 72 [21:27:37]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [21:27:37]wFMCommunicate OK [21:27:37]SAM_PROTO_GetShiftState done [21:27:37]FM_GetShiftState done [21:27:37]req_shift_opened done [21:27:37]requested_item shift.open_date is exist - process it [21:27:37]req_shift_open_date [21:27:37]req_shift_open_date done [21:27:37]produce_requested_data done [21:27:37]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201691,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [21:27:37]process_action_free close_receipt [21:27:37]json_value_free [21:27:37]json_value_free done [21:27:37]process_json_proto returns [21:27:37]Send response to host [21:27:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201691,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [21:27:37]free response buf [21:27:37]execute_script done [21:27:37]execute_script returns [21:27:37]free content buf [21:27:37]Sock 9.Close socket [21:27:37]Sock 9.Thread stoped [21:27:39]OFD Sender: No OFD packet to send [21:27:44]OFD Sender: No OFD packet to send [21:27:49]OFD Sender: No OFD packet to send [21:27:54]OFD Sender: No OFD packet to send [21:27:59]OFD Sender: No OFD packet to send [21:28:04]OFD Sender: No OFD packet to send [21:28:09]OFD Sender: No OFD packet to send [21:28:14]OFD Sender: No OFD packet to send [21:28:19]OFD Sender: No OFD packet to send [21:28:24]OFD Sender: No OFD packet to send [21:28:29]OFD Sender: No OFD packet to send [21:28:34]OFD Sender: No OFD packet to send [21:28:39]OFD Sender: No OFD packet to send [21:28:44]OFD Sender: No OFD packet to send [21:28:49]OFD Sender: No OFD packet to send [21:28:54]OFD Sender: No OFD packet to send [21:28:59]OFD Sender: No OFD packet to send [21:29:04]OFD Sender: No OFD packet to send [21:29:09]OFD Sender: No OFD packet to send [21:29:14]OFD Sender: No OFD packet to send [21:29:19]OFD Sender: No OFD packet to send [21:29:24]OFD Sender: No OFD packet to send [21:29:29]OFD Sender: No OFD packet to send [21:29:34]OFD Sender: No OFD packet to send [21:29:39]OFD Sender: No OFD packet to send [21:29:44]OFD Sender: No OFD packet to send [21:29:49]OFD Sender: No OFD packet to send [21:29:54]OFD Sender: No OFD packet to send [21:29:59]OFD Sender: No OFD packet to send [21:30:04]OFD Sender: No OFD packet to send [21:30:09]OFD Sender: No OFD packet to send [21:30:14]OFD Sender: No OFD packet to send [21:30:19]OFD Sender: No OFD packet to send [21:30:24]OFD Sender: No OFD packet to send [21:30:30]OFD Sender: No OFD packet to send [21:30:35]OFD Sender: No OFD packet to send [21:30:40]OFD Sender: No OFD packet to send [21:30:45]OFD Sender: No OFD packet to send [21:30:50]OFD Sender: No OFD packet to send [21:30:55]OFD Sender: No OFD packet to send [21:31:00]OFD Sender: No OFD packet to send [21:31:05]OFD Sender: No OFD packet to send [21:31:10]OFD Sender: No OFD packet to send [21:31:15]OFD Sender: No OFD packet to send [21:31:20]OFD Sender: No OFD packet to send [21:31:25]OFD Sender: No OFD packet to send [21:31:30]OFD Sender: No OFD packet to send [21:31:35]OFD Sender: No OFD packet to send [21:31:40]OFD Sender: No OFD packet to send [21:31:45]OFD Sender: No OFD packet to send [21:31:50]OFD Sender: No OFD packet to send [21:31:55]OFD Sender: No OFD packet to send [21:32:00]OFD Sender: No OFD packet to send [21:32:05]OFD Sender: No OFD packet to send [21:32:10]OFD Sender: No OFD packet to send [21:32:15]OFD Sender: No OFD packet to send [21:32:20]OFD Sender: No OFD packet to send [21:32:25]OFD Sender: No OFD packet to send [21:32:30]OFD Sender: No OFD packet to send [21:32:35]OFD Sender: No OFD packet to send [21:32:40]OFD Sender: No OFD packet to send [21:32:45]OFD Sender: No OFD packet to send [21:32:50]OFD Sender: No OFD packet to send [21:32:55]OFD Sender: No OFD packet to send [21:33:00]OFD Sender: No OFD packet to send [21:33:05]OFD Sender: No OFD packet to send [21:33:10]OFD Sender: No OFD packet to send [21:33:15]OFD Sender: No OFD packet to send [21:33:20]OFD Sender: No OFD packet to send [21:33:25]OFD Sender: No OFD packet to send [21:33:30]OFD Sender: No OFD packet to send [21:33:35]OFD Sender: No OFD packet to send [21:33:40]OFD Sender: No OFD packet to send [21:33:45]OFD Sender: No OFD packet to send [21:33:50]OFD Sender: No OFD packet to send [21:33:55]OFD Sender: No OFD packet to send [21:34:00]OFD Sender: No OFD packet to send [21:34:05]OFD Sender: No OFD packet to send [21:34:10]OFD Sender: No OFD packet to send [21:34:15]OFD Sender: No OFD packet to send [21:34:20]OFD Sender: No OFD packet to send [21:34:25]OFD Sender: No OFD packet to send [21:34:30]OFD Sender: No OFD packet to send [21:34:35]OFD Sender: No OFD packet to send [21:34:40]OFD Sender: No OFD packet to send [21:34:45]OFD Sender: No OFD packet to send [21:34:50]OFD Sender: No OFD packet to send [21:34:55]OFD Sender: No OFD packet to send [21:35:00]OFD Sender: No OFD packet to send [21:35:05]OFD Sender: No OFD packet to send [21:35:10]OFD Sender: No OFD packet to send [21:35:15]OFD Sender: No OFD packet to send [21:35:20]OFD Sender: No OFD packet to send [21:35:25]OFD Sender: No OFD packet to send [21:35:30]OFD Sender: No OFD packet to send [21:35:35]OFD Sender: No OFD packet to send [21:35:40]OFD Sender: No OFD packet to send [21:35:45]OFD Sender: No OFD packet to send [21:35:50]OFD Sender: No OFD packet to send [21:35:55]OFD Sender: No OFD packet to send [21:36:00]OFD Sender: No OFD packet to send [21:36:05]OFD Sender: No OFD packet to send [21:36:10]OFD Sender: No OFD packet to send [21:36:15]OFD Sender: No OFD packet to send [21:36:20]OFD Sender: No OFD packet to send [21:36:25]OFD Sender: No OFD packet to send [21:36:30]OFD Sender: No OFD packet to send [21:36:35]OFD Sender: No OFD packet to send [21:36:40]OFD Sender: No OFD packet to send [21:36:45]OFD Sender: No OFD packet to send [21:36:50]OFD Sender: No OFD packet to send [21:36:55]OFD Sender: No OFD packet to send [21:37:00]OFD Sender: No OFD packet to send [21:37:05]OFD Sender: No OFD packet to send [21:37:10]OFD Sender: No OFD packet to send [21:37:15]OFD Sender: No OFD packet to send [21:37:20]OFD Sender: No OFD packet to send [21:37:25]OFD Sender: No OFD packet to send [21:37:30]OFD Sender: No OFD packet to send [21:37:35]OFD Sender: No OFD packet to send [21:37:40]OFD Sender: No OFD packet to send [21:37:45]OFD Sender: No OFD packet to send [21:37:50]OFD Sender: No OFD packet to send [21:37:55]OFD Sender: No OFD packet to send [21:38:00]OFD Sender: No OFD packet to send [21:38:05]OFD Sender: No OFD packet to send [21:38:10]OFD Sender: No OFD packet to send [21:38:15]OFD Sender: No OFD packet to send [21:38:20]OFD Sender: No OFD packet to send [21:38:25]OFD Sender: No OFD packet to send [21:38:30]OFD Sender: No OFD packet to send [21:38:35]OFD Sender: No OFD packet to send [21:38:40]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:50]OFD Sender: No OFD packet to send [21:38:55]OFD Sender: No OFD packet to send [21:39:00]OFD Sender: No OFD packet to send [21:39:05]OFD Sender: No OFD packet to send [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:30]OFD Sender: No OFD packet to send [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39:50]OFD Sender: No OFD packet to send [21:39:55]OFD Sender: No OFD packet to send [21:40:00]OFD Sender: No OFD packet to send [21:40:05]OFD Sender: No OFD packet to send [21:40:10]OFD Sender: No OFD packet to send [21:40:15]OFD Sender: No OFD packet to send [21:40:20]OFD Sender: No OFD packet to send [21:40:25]OFD Sender: No OFD packet to send [21:40:30]OFD Sender: No OFD packet to send [21:40:35]OFD Sender: No OFD packet to send [21:40:40]OFD Sender: No OFD packet to send [21:40:45]OFD Sender: No OFD packet to send [21:40:50]OFD Sender: No OFD packet to send [21:40:55]OFD Sender: No OFD packet to send [21:41:00]OFD Sender: No OFD packet to send [21:41:05]OFD Sender: No OFD packet to send [21:41:10]OFD Sender: No OFD packet to send [21:41:15]OFD Sender: No OFD packet to send [21:41:20]OFD Sender: No OFD packet to send [21:41:25]OFD Sender: No OFD packet to send [21:41:30]OFD Sender: No OFD packet to send [21:41:35]OFD Sender: No OFD packet to send [21:41:36]accept exits with 8 [21:41:36]New connection [21:41:36]New thread 3066936676 created [21:41:36]Thread 3067080036 joined [21:41:36]Waiting for new connection... [21:41:36] Sock 8.Parse request [21:41:36]Sock 8.Check first char [21:41:36]Sock 8.First char is OK [21:41:36]request: POST /json_proto HTTP/1.0 [21:41:36]Method: POST [21:41:36]URL: /json_proto [21:41:36]Method is POST - this is cgi request [21:41:36]url: /json_proto [21:41:36]query_string will be loaded in cgi processing [21:41:36]execute_cgi json_proto POST (null) [21:41:36]execute_cgi path=json_proto method=POST [21:41:36]POST find Content-Length [21:41:36]Host: 172.17.63.195:8080 [21:41:36]Content-Length: 682 [21:41:36]Content-Type: application/json [21:41:36] [21:41:36]POST finish read [21:41:36]Found Content-Length = 682 [21:41:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [21:41:36]execute_script... [21:41: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)449451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [21:41:36]POST & json_proto [21:41:36]process_json_proto [21:41:36]json parsed OK: [21:41:36]protocol is kg_v1.0 [21:41:36]action value=close_receipt [21:41:36]process_action close_receipt [21:41:36]cmd_close_receipt [21:41:36]MH_GetDate [21:41:36]Write to MH i2c: F0 00 00 E7 00 D6 [21:41:36]Write i2c OK [21:41:36]MH_I2C_Read... [21:41:36]Read from MH i2c: F0 [21:41:36]MH_I2C_Read... [21:41:36]Read from MH i2c: F0 09 00 [21:41:36]MH_I2C_Read... [21:41:36]Read from MH i2c: F0 09 00 E7 00 00 11 62 1D 67 68 46 19 67 04 [21:41:36]GetLastDocTimeStamp 1729978053 [21:41:36]current date 1729978897 [21:41:36]FM_GetShiftState [21:41:36]SAM_PROTO_GetShiftState [21:41:36]wFMCommunicate request_size=4 [21:41:36]MH_SAM_APDU [21:41:36]CAPDU: 80 13 01 00 [21:41:36]Write to MH i2c: E2 08 00 E8 00 80 13 01 00 00 00 00 00 65 [21:41:36]Write i2c OK [21:41:36]MH_I2C_Read... [21:41:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:36]Read from MH i2c: E2 [21:41:36]MH_I2C_Read... [21:41:36]Read from MH i2c: E2 0E 00 [21:41:36]MH_I2C_Read... [21:41:36]Read from MH i2c: E2 0E 00 E8 00 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 74 [21:41:36]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [21:41:36]wFMCommunicate OK [21:41:36]SAM_PROTO_GetShiftState done [21:41:36]FM_GetShiftState done [21:41:36]opened in 1729900879 [21:41:36]opened+sec_in_day 1729987279 [21:41:36]quantity*price = 100015 [21:41:36]sum+1 = 100017 [21:41:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 454 26.10.2024 21:41 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201692 ФПД: 26989917821782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T214137&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201692&fm=26989917821782&tin=02508201610067®Number=0000000000091777&sum=100000 [21:41:37]StoreToDocumentArchive [21:41:37]shift 543 fd 201692 [21:41:37]save to /storage/0543/doc_00201692 [21:41:37]save last doc name /storage/0543/doc_00201692 to /storage/kkm_last_doc_name [21:41:37]save OK [21:41:37]Clear old archive folders... [21:41:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:41:37]tlvbuf is 00102410 [21:41:37]SAM_PROTO_ClearQueue [21:41:37]wFMCommunicate request_size=4 [21:41:37]MH_SAM_APDU [21:41:37]CAPDU: 80 09 00 00 [21:41:37]Write to MH i2c: E2 08 00 F5 00 80 09 00 00 00 00 00 00 67 [21:41:37]Write i2c OK [21:41:37]MH_I2C_Read... [21:41:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:41:37]Read from MH i2c: E2 [21:41:37]MH_I2C_Read... [21:41:37]Read from MH i2c: E2 03 00 [21:41:37]MH_I2C_Read... [21:41:37]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [21:41:37]RAPDU: 90 00 [21:41:37]wFMCommunicate OK [21:41:37]SAM_PROTO_ClearQueue done [21:41:37]KKMCreateOFDPacket [21:41:37]OFDProtocolAddRootSTLVToBuf [21:41:37]FM_MakeSignedData [21:41:37]FM_MakeSignedData [21:41:37]SAM_PROTO_SignData [21:41:37]wFMCommunicate request_size=4 [21:41:37]MH_SAM_APDU [21:41:37]CAPDU: 80 0D 01 02 [21:41:37]Write to MH i2c: E2 08 00 F6 00 80 0D 01 02 00 00 00 00 6F [21:41:37]Write i2c OK [21:41:37]MH_I2C_Read... [21:41:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:41:37]Read from MH i2c: E2 [21:41:37]MH_I2C_Read... [21:41:37]Read from MH i2c: E2 03 00 [21:41:37]MH_I2C_Read... [21:41:37]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [21:41:37]RAPDU: 90 00 [21:41:37]wFMCommunicate OK [21:41:37]wFMCommunicate request_size=255 [21:41:37]MH_SAM_APDU [21:41:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C6 01 00 00 F4 03 04 00 11 62 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DC 13 03 00 35 04 06 00 18 [21:41:37]Write to MH i2c: E2 02 01 F7 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 C6 01 00 00 F4 03 04 00 11 62 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DC 13 03 00 35 04 06 00 18 00 00 E6 [21:41:37]Write i2c OK [21:41:37]MH_I2C_Read... [21:41:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:37]Read from MH i2c: E2 [21:41:37]MH_I2C_Read... [21:41:37]Read from MH i2c: E2 03 00 [21:41:37]MH_I2C_Read... [21:41:37]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [21:41:37]RAPDU: 90 00 [21:41:37]wFMCommunicate OK [21:41:37]wFMCommunicate request_size=10 [21:41:37]MH_SAM_APDU [21:41:37]CAPDU: 80 0D 02 02 05 8C 14 76 DB 56 [21:41:37]Write to MH i2c: E2 0D 00 F8 00 80 0D 02 02 05 00 8C 14 76 DB 56 00 00 C3 [21:41:37]Write i2c OK [21:41:37]MH_I2C_Read... [21:41:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:37]Read from MH i2c: E2 [21:41:37]MH_I2C_Read... [21:41:37]Read from MH i2c: E2 03 00 [21:41:37]MH_I2C_Read... [21:41:37]Read from MH i2c: E2 03 00 F8 00 00 90 00 6C [21:41:37]RAPDU: 90 00 [21:41:37]wFMCommunicate OK [21:41:37]wFMCommunicate request_size=4 [21:41:37]MH_SAM_APDU [21:41:37]CAPDU: 80 0D 03 02 [21:41:37]Write to MH i2c: E2 08 00 F9 00 80 0D 03 02 00 00 00 00 74 [21:41:37]Write i2c OK [21:41:37]MH_I2C_Read... [21:41:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:41:37]Read from MH i2c: E2 [21:41:37]MH_I2C_Read... [21:41:37]Read from MH i2c: E2 0B 00 [21:41:37]MH_I2C_Read... [21:41:37]Read from MH i2c: E2 0B 00 F9 00 00 07 56 55 8D 81 22 48 7F 90 00 1E [21:41:37]RAPDU: 07 56 55 8D 81 22 48 7F 90 00 [21:41:37]wFMCommunicate OK [21:41:37]SAM_PROTO_SignData done [21:41:37]FM_MakeSignedData done [21:41:37]CreateOFDProtocolMessage [21:41:37]wFMCommunicate request_size=4 [21:41:37]MH_SAM_APDU [21:41:37]CAPDU: 80 11 00 00 [21:41:37]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [21:41:37]Write i2c OK [21:41:37]MH_I2C_Read... [21:41:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:37]Read from MH i2c: E2 [21:41:37]MH_I2C_Read... [21:41:37]Read from MH i2c: E2 17 00 [21:41:37]MH_I2C_Read... [21:41:37]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C9 [21:41:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:41:37]wFMCommunicate OK [21:41:37]CreateOFDProtocolMessage done [21:41:37]OFDSenderStorePacket 201692 [21:41:37]StoreOFDPacket docnum=201692 [21:41:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 77 E7 07 01 08 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 32 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 C6 01 00 00 F4 03 04 00 11 62 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DC 13 03 00 35 04 06 00 18 8C 14 76 DB 56 07 56 55 8D 81 22 48 7F [21:41:37]CheckFolder [21:41:37]dirname=/storage/ofd_packets [21:41:37]CheckFolder done [21:41:37]ProducePacketName [21:41:37]name=ofd_packets/00201692 [21:41:37]NVStorageSaveData ofd_packets/00201692 [21:41:37]File name is /storage/ofd_packets/00201692 [21:41:37]Write 301 bytes [21:41:37]NVStorageSaveData done [21:41:37]OFDSenderStorePacket done [21:41:37]KKMCreateOFDPacket done [21:41:37]NVStorageSaveData kkm_last_timestamp [21:41:37]File name is /storage/kkm_last_timestamp [21:41:37]Write 4 bytes [21:41:37]NVStorageSaveData done [21:41:37]ExternCall_PrintAddStr [21:41:37]wPrintStart [21:41:37]Write to MH i2c: 01 00 00 FB 00 FB [21:41:37]Write i2c OK [21:41:37]MH_I2C_Read... [21:41:37]Read from MH i2c: 01 [21:41:37]MH_I2C_Read... [21:41:37]Read from MH i2c: 01 07 00 [21:41:37]MH_I2C_Read... [21:41:37]Read from MH i2c: 01 07 00 FB 00 00 00 00 00 00 FF 0F 10 [21:41:37]RasterBufferAndPrint [21:41:37]line Счет N : (1)449451 [21:41:37]line ИНН: 02508201610067 [21:41:37]line Контрольно-Кассовый Чек [21:41:37]line ПРОДАЖА [21:41:37]line ТРК (МРК, ГНК) : 52 [21:41:37]line Товар: 2710124130 [21:41:37]line Аи-92-К-2 [21:41:37]line 14.950 * 66.90 [21:41:37]line = 1000.16 [21:41:37]line НДС 12% НСП 1% [21:41:37]line > о реализуемом товаре [21:41:37]line ОКРУГЛЕНИЕ: -0.16 [21:41:37]line ИТОГО: 1000.00 [21:41:37]line Внесено: 1000.00 [21:41:37]line СДАЧА: 0.00 [21:41:37]line НСП 1% : 8.85 [21:41:37]line НДС 12% : 106.21 [21:41:37]line Наличными: 1000.00 [21:41:37]line Безнал.: 0.00 [21:41:37]line Место: АЗС № 171 "Партнер Нефть" [21:41:37]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [21:41:37]line СНО: Общий режим [21:41:37]line Чек 454 26.10.2024 21:41 [21:41:37]line Смена: 543 ФФД: 1.0 [21:41:37]line ЗНМ: 0300000109 [21:41:37]line РНМ: 0000000000091777 [21:41:37]line Версия ККМ: 001 [21:41:37]line ФМ: 0000000000871756 [21:41:37]line ФД: 201692 [21:41:37]line ФПД: 26989917821782 [21:41:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T214137&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201692&fm=26989917821782&tin=02508201610067®Number=0000000000091777&sum=100000 [21:41:38]OFD Sender: Processing packet 201692 [packets to send 112, broken 111] [21:41:38]ProducePacketName [21:41:38]name=ofd_packets/00201692 [21:41:38]OFD Sender: To server: pG, [21:41:38]CommunicateWithHost lk.salyk.kg:30040 [21:41:38]ConnectInit lk.salyk.kg [21:41:38]written 0, free lines is 4095 [21:41:38]Connected sock=10 [21:41:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 77 E7 07 01 08 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 32 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 C6 01 00 00 F4 03 04 00 11 62 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DC 13 03 00 35 04 06 00 18 8C 14 76 DB 56 07 56 55 8D 81 22 48 7F [21:41:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C0 DD 47 00 75 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DC 13 03 00 F4 03 04 00 B8 0D 1D 67 B6 04 01 00 00 0A 2F 12 84 14 C2 91 2D [21:41:38]CommunicateWithHost err = 0 [21:41:38]CheckOFDResponse [21:41:38]1017 (14) - 77093643461234 [21:41:38]1041 (16) - 0000000000871756 [21:41:38]1040 (4) - 201692 [21:41:38]1012 (4) - 26.10.2024 15:41 [21:41:38]1206 (1) - 0 [21:41:38]OFD Sender: Remove packet 201692 [21:41:38]ProducePacketName [21:41:38]name=ofd_packets/00201692 [21:41:38]NVStorageDeleteData [21:41:38]Write to MH i2c: 01 00 00 26 01 27 [21:41:38]Write i2c OK [21:41:38]MH_I2C_Read... [21:41:38]Read from MH i2c: 01 [21:41:38]MH_I2C_Read... [21:41:38]Read from MH i2c: 01 07 00 [21:41:38]MH_I2C_Read... [21:41:38]Read from MH i2c: 01 07 00 26 01 00 00 00 00 00 94 0C CE [21:41:38]RasterBufferAndPrint [21:41:38]line [21:41:38]line [21:41:38]line [21:41:38]line [21:41:38]line [21:41:38]written 0, free lines is 3224 [21:41:38]MH_Cut [21:41:38]Write to MH i2c: D1 01 00 2D 01 01 00 [21:41:38]Write i2c OK [21:41:38]MH_I2C_Read... [21:41:38]Read from MH i2c: D1 [21:41:38]MH_I2C_Read... [21:41:38]Read from MH i2c: D1 01 00 [21:41:38]MH_I2C_Read... [21:41:38]Read from MH i2c: D1 01 00 2D 01 00 FF [21:41:38]Write to MH i2c: 01 00 00 2E 01 2F [21:41:38]Write i2c OK [21:41:38]MH_I2C_Read... [21:41:38]OFD Sender: No OFD packet to send [21:41:39]*** Cut start [21:41:39]*** Purtial cut [21:41:39]*** Stage 1: CUTSNS_PIN = 1 [21:41:39]Read from MH i2c: 01 [21:41:39]MH_I2C_Read... [21:41:39]*** Stop cut motor [21:41:39]*** Cut end [21:41:39]Read from MH i2c: 01 07 00 [21:41:39]MH_I2C_Read... [21:41:39]Read from MH i2c: 01 07 00 2E 01 00 00 00 00 00 FF 0F 44 [21:41:39]process_action close_receipt done [21:41:39]requested_data is exist [21:41:39]produce_requested_data [21:41:39]requested_item fm.sn is exist - process it [21:41:39]wFMCommunicate request_size=4 [21:41:39]MH_SAM_APDU [21:41:39]CAPDU: 80 11 00 00 [21:41:39]Write to MH i2c: E2 08 00 2F 01 80 11 00 00 00 00 00 00 AA [21:41:39]Write i2c OK [21:41:39]MH_I2C_Read... [21:41:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:39]Read from MH i2c: E2 [21:41:39]MH_I2C_Read... [21:41:39]Read from MH i2c: E2 17 00 [21:41:39]MH_I2C_Read... [21:41:39]Read from MH i2c: E2 17 00 2F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FF [21:41:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:41:39]wFMCommunicate OK [21:41:39]requested_item fd.num is exist - process it [21:41:39]SAM_PROTO_GetFieldsCounters [21:41:39]wFMCommunicate request_size=4 [21:41:39]MH_SAM_APDU [21:41:39]CAPDU: 80 13 00 00 [21:41:39]Write to MH i2c: E2 08 00 30 01 80 13 00 00 00 00 00 00 AD [21:41:39]Write i2c OK [21:41:39]MH_I2C_Read... [21:41:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:41:39]Read from MH i2c: E2 [21:41:39]MH_I2C_Read... [21:41:39]Read from MH i2c: E2 62 00 [21:41:39]MH_I2C_Read... [21:41:39]Read from MH i2c: E2 62 00 30 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DC 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C6 01 00 00 5E 04 04 00 C6 01 00 00 57 04 04 00 C7 01 00 00 19 04 04 00 00 00 00 00 90 00 3E [21:41:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DC 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C6 01 00 00 5E 04 04 00 C6 01 00 00 57 04 04 00 C7 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:41:39]wFMCommunicate OK [21:41:39]SAM_PROTO_GetFieldsCounters done [21:41:39]requested_item shift.num is exist - process it [21:41:39]requested_item shift.opened is exist - process it [21:41:39]req_shift_opened [21:41:39]FM_GetShiftState [21:41:39]SAM_PROTO_GetShiftState [21:41:39]wFMCommunicate request_size=4 [21:41:39]MH_SAM_APDU [21:41:39]CAPDU: 80 13 01 00 [21:41:39]Write to MH i2c: E2 08 00 31 01 80 13 01 00 00 00 00 00 AF [21:41:39]Write i2c OK [21:41:39]MH_I2C_Read... [21:41:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:39]Read from MH i2c: E2 [21:41:40]MH_I2C_Read... [21:41:40]Read from MH i2c: E2 0E 00 [21:41:40]MH_I2C_Read... [21:41:40]Read from MH i2c: E2 0E 00 31 01 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 BE [21:41:40]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [21:41:40]wFMCommunicate OK [21:41:40]SAM_PROTO_GetShiftState done [21:41:40]FM_GetShiftState done [21:41:40]req_shift_opened done [21:41:40]requested_item shift.open_date is exist - process it [21:41:40]req_shift_open_date [21:41:40]req_shift_open_date done [21:41:40]produce_requested_data done [21:41:40]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201692,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [21:41:40]process_action_free close_receipt [21:41:40]json_value_free [21:41:40]json_value_free done [21:41:40]process_json_proto returns [21:41:40]Send response to host [21:41:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201692,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [21:41:40]free response buf [21:41:40]execute_script done [21:41:40]execute_script returns [21:41:40]free content buf [21:41:40]Sock 8.Close socket [21:41:40]Sock 8.Thread stoped [21:41:43]OFD Sender: No OFD packet to send [21:41:48]OFD Sender: No OFD packet to send [21:41:53]OFD Sender: No OFD packet to send [21:41:58]OFD Sender: No OFD packet to send [21:42:03]OFD Sender: No OFD packet to send [21:42:08]OFD Sender: No OFD packet to send [21:42:14]OFD Sender: No OFD packet to send [21:42:19]OFD Sender: No OFD packet to send [21:42:24]OFD Sender: No OFD packet to send [21:42:29]OFD Sender: No OFD packet to send [21:42:34]OFD Sender: No OFD packet to send [21:42:39]OFD Sender: No OFD packet to send [21:42:44]OFD Sender: No OFD packet to send [21:42:49]OFD Sender: No OFD packet to send [21:42:54]OFD Sender: No OFD packet to send [21:42:59]OFD Sender: No OFD packet to send [21:43:04]OFD Sender: No OFD packet to send [21:43:09]OFD Sender: No OFD packet to send [21:43:14]OFD Sender: No OFD packet to send [21:43:19]OFD Sender: No OFD packet to send [21:43:24]OFD Sender: No OFD packet to send [21:43:29]OFD Sender: No OFD packet to send [21:43:34]OFD Sender: No OFD packet to send [21:43:39]OFD Sender: No OFD packet to send [21:43:44]OFD Sender: No OFD packet to send [21:43:49]OFD Sender: No OFD packet to send [21:43:54]OFD Sender: No OFD packet to send [21:43:59]OFD Sender: No OFD packet to send [21:44:04]OFD Sender: No OFD packet to send [21:44:09]OFD Sender: No OFD packet to send [21:44:14]OFD Sender: No OFD packet to send [21:44:19]OFD Sender: No OFD packet to send [21:44:24]OFD Sender: No OFD packet to send [21:44:29]OFD Sender: No OFD packet to send [21:44:34]OFD Sender: No OFD packet to send [21:44:39]OFD Sender: No OFD packet to send [21:44:44]OFD Sender: No OFD packet to send [21:44:49]OFD Sender: No OFD packet to send [21:44:54]OFD Sender: No OFD packet to send [21:44:59]OFD Sender: No OFD packet to send [21:45:04]OFD Sender: No OFD packet to send [21:45:09]OFD Sender: No OFD packet to send [21:45:14]OFD Sender: No OFD packet to send [21:45:19]OFD Sender: No OFD packet to send [21:45:24]OFD Sender: No OFD packet to send [21:45:29]OFD Sender: No OFD packet to send [21:45:34]OFD Sender: No OFD packet to send [21:45:39]OFD Sender: No OFD packet to send [21:45:44]OFD Sender: No OFD packet to send [21:45:49]OFD Sender: No OFD packet to send [21:45:54]OFD Sender: No OFD packet to send [21:45:59]OFD Sender: No OFD packet to send [21:46:04]OFD Sender: No OFD packet to send [21:46:09]OFD Sender: No OFD packet to send [21:46:14]OFD Sender: No OFD packet to send [21:46:19]OFD Sender: No OFD packet to send [21:46:24]OFD Sender: No OFD packet to send [21:46:29]OFD Sender: No OFD packet to send [21:46:34]OFD Sender: No OFD packet to send [21:46:39]OFD Sender: No OFD packet to send [21:46:44]OFD Sender: No OFD packet to send [21:46:49]OFD Sender: No OFD packet to send [21:46:54]OFD Sender: No OFD packet to send [21:46:59]OFD Sender: No OFD packet to send [21:47:04]OFD Sender: No OFD packet to send [21:47:09]OFD Sender: No OFD packet to send [21:47:14]OFD Sender: No OFD packet to send [21:47:19]OFD Sender: No OFD packet to send [21:47:24]OFD Sender: No OFD packet to send [21:47:29]OFD Sender: No OFD packet to send [21:47:34]OFD Sender: No OFD packet to send [21:47:39]OFD Sender: No OFD packet to send [21:47:44]OFD Sender: No OFD packet to send [21:47:49]OFD Sender: No OFD packet to send [21:47:54]OFD Sender: No OFD packet to send [21:47:59]OFD Sender: No OFD packet to send [21:48:04]OFD Sender: No OFD packet to send [21:48:09]OFD Sender: No OFD packet to send [21:48:14]OFD Sender: No OFD packet to send [21:48:19]OFD Sender: No OFD packet to send [21:48:24]OFD Sender: No OFD packet to send [21:48:29]OFD Sender: No OFD packet to send [21:48:34]OFD Sender: No OFD packet to send [21:48:39]OFD Sender: No OFD packet to send [21:48:44]OFD Sender: No OFD packet to send [21:48:49]OFD Sender: No OFD packet to send [21:48:54]OFD Sender: No OFD packet to send [21:48:59]OFD Sender: No OFD packet to send [21:49:04]OFD Sender: No OFD packet to send [21:49:09]OFD Sender: No OFD packet to send [21:49:14]OFD Sender: No OFD packet to send [21:49:19]OFD Sender: No OFD packet to send [21:49:24]OFD Sender: No OFD packet to send [21:49:29]OFD Sender: No OFD packet to send [21:49:34]OFD Sender: No OFD packet to send [21:49:39]OFD Sender: No OFD packet to send [21:49:44]OFD Sender: No OFD packet to send [21:49:49]OFD Sender: No OFD packet to send [21:49:54]OFD Sender: No OFD packet to send [21:49:59]OFD Sender: No OFD packet to send [21:50:04]OFD Sender: No OFD packet to send [21:50:09]OFD Sender: No OFD packet to send [21:50:14]OFD Sender: No OFD packet to send [21:50:19]OFD Sender: No OFD packet to send [21:50:24]OFD Sender: No OFD packet to send [21:50:29]OFD Sender: No OFD packet to send [21:50:34]OFD Sender: No OFD packet to send [21:50:39]OFD Sender: No OFD packet to send [21:50:44]OFD Sender: No OFD packet to send [21:50:49]OFD Sender: No OFD packet to send [21:50:54]OFD Sender: No OFD packet to send [21:50:56]accept exits with 9 [21:50:56]New connection [21:50:56]New thread 3067080036 created [21:50:56]Thread 3066936676 joined [21:50:56]Waiting for new connection... [21:50:56] Sock 9.Parse request [21:50:56]Sock 9.Check first char [21:50:56]Sock 9.First char is OK [21:50:56]request: POST /json_proto HTTP/1.0 [21:50:56]Method: POST [21:50:56]URL: /json_proto [21:50:56]Method is POST - this is cgi request [21:50:56]url: /json_proto [21:50:56]query_string will be loaded in cgi processing [21:50:56]execute_cgi json_proto POST (null) [21:50:56]execute_cgi path=json_proto method=POST [21:50:56]POST find Content-Length [21:50:56]Host: 172.17.63.195:8080 [21:50:56]Content-Length: 766 [21:50:56]Content-Type: application/json [21:50:56] [21:50:56]POST finish read [21:50:56]Found Content-Length = 766 [21:50:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "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: Mbank", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:50:56]execute_script... [21:50: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)449452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "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: Mbank", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:50:56]POST & json_proto [21:50:56]process_json_proto [21:50:56]json parsed OK: [21:50:56]protocol is kg_v1.0 [21:50:56]action value=close_receipt [21:50:56]process_action close_receipt [21:50:56]cmd_close_receipt [21:50:56]MH_GetDate [21:50:56]Write to MH i2c: F0 00 00 32 01 22 [21:50:56]Write i2c OK [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: F0 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: F0 09 00 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: F0 09 00 32 01 00 41 64 1D 67 68 46 19 67 82 [21:50:56]GetLastDocTimeStamp 1729978897 [21:50:56]current date 1729979457 [21:50:56]FM_GetShiftState [21:50:56]SAM_PROTO_GetShiftState [21:50:56]wFMCommunicate request_size=4 [21:50:56]MH_SAM_APDU [21:50:56]CAPDU: 80 13 01 00 [21:50:56]Write to MH i2c: E2 08 00 33 01 80 13 01 00 00 00 00 00 B1 [21:50:56]Write i2c OK [21:50:56]MH_I2C_Read... [21:50:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:56]Read from MH i2c: E2 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: E2 0E 00 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: E2 0E 00 33 01 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C0 [21:50:56]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [21:50:56]wFMCommunicate OK [21:50:56]SAM_PROTO_GetShiftState done [21:50:56]FM_GetShiftState done [21:50:56]opened in 1729900879 [21:50:56]opened+sec_in_day 1729987279 [21:50:56]quantity*price = 300075 [21:50:56]sum+1 = 300077 [21:50:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 455 26.10.2024 21:50 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201693 ФПД: 261935206430019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T215057&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201693&fm=261935206430019&tin=02508201610067®Number=0000000000091777&sum=300076 [21:50:57]StoreToDocumentArchive [21:50:57]shift 543 fd 201693 [21:50:57]save to /storage/0543/doc_00201693 [21:50:57]save last doc name /storage/0543/doc_00201693 to /storage/kkm_last_doc_name [21:50:57]save OK [21:50:57]Clear old archive folders... [21:50:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:50:57]tlvbuf is 000DFF70 [21:50:57]SAM_PROTO_ClearQueue [21:50:57]wFMCommunicate request_size=4 [21:50:57]MH_SAM_APDU [21:50:57]CAPDU: 80 09 00 00 [21:50:57]Write to MH i2c: E2 08 00 40 01 80 09 00 00 00 00 00 00 B3 [21:50:57]Write i2c OK [21:50:57]MH_I2C_Read... [21:50:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:50:57]Read from MH i2c: E2 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: E2 03 00 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [21:50:57]RAPDU: 90 00 [21:50:57]wFMCommunicate OK [21:50:57]SAM_PROTO_ClearQueue done [21:50:57]KKMCreateOFDPacket [21:50:57]OFDProtocolAddRootSTLVToBuf [21:50:57]FM_MakeSignedData [21:50:57]FM_MakeSignedData [21:50:57]SAM_PROTO_SignData [21:50:57]wFMCommunicate request_size=4 [21:50:57]MH_SAM_APDU [21:50:57]CAPDU: 80 0D 01 02 [21:50:57]Write to MH i2c: E2 08 00 41 01 80 0D 01 02 00 00 00 00 BB [21:50:57]Write i2c OK [21:50:57]MH_I2C_Read... [21:50:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:50:57]Read from MH i2c: E2 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: E2 03 00 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [21:50:57]RAPDU: 90 00 [21:50:57]wFMCommunicate OK [21:50:57]wFMCommunicate request_size=255 [21:50:57]MH_SAM_APDU [21:50:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 01 00 00 F4 03 04 00 41 64 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DD 13 03 00 35 04 06 00 EE 3A 8A EE [21:50:57]Write to MH i2c: E2 02 01 42 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 01 00 00 F4 03 04 00 41 64 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DD 13 03 00 35 04 06 00 EE 3A 8A EE 00 00 BB [21:50:57]Write i2c OK [21:50:57]MH_I2C_Read... [21:50:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:57]Read from MH i2c: E2 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: E2 03 00 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [21:50:57]RAPDU: 90 00 [21:50:57]wFMCommunicate OK [21:50:57]wFMCommunicate request_size=7 [21:50:57]MH_SAM_APDU [21:50:57]CAPDU: 80 0D 02 02 02 F5 43 [21:50:57]Write to MH i2c: E2 0A 00 43 01 80 0D 02 02 02 00 F5 43 00 00 FA [21:50:57]Write i2c OK [21:50:57]MH_I2C_Read... [21:50:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:57]Read from MH i2c: E2 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: E2 03 00 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: E2 03 00 43 01 00 90 00 B8 [21:50:57]RAPDU: 90 00 [21:50:57]wFMCommunicate OK [21:50:57]wFMCommunicate request_size=4 [21:50:57]MH_SAM_APDU [21:50:57]CAPDU: 80 0D 03 02 [21:50:57]Write to MH i2c: E2 08 00 44 01 80 0D 03 02 00 00 00 00 C0 [21:50:57]Write i2c OK [21:50:57]MH_I2C_Read... [21:50:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:50:57]Read from MH i2c: E2 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: E2 0B 00 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: E2 0B 00 44 01 00 B8 F1 95 DD 24 07 B6 61 90 00 1E [21:50:57]RAPDU: B8 F1 95 DD 24 07 B6 61 90 00 [21:50:57]wFMCommunicate OK [21:50:57]SAM_PROTO_SignData done [21:50:57]FM_MakeSignedData done [21:50:57]CreateOFDProtocolMessage [21:50:57]wFMCommunicate request_size=4 [21:50:57]MH_SAM_APDU [21:50:57]CAPDU: 80 11 00 00 [21:50:57]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [21:50:57]Write i2c OK [21:50:57]MH_I2C_Read... [21:50:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:57]Read from MH i2c: E2 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: E2 17 00 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 15 [21:50:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:50:57]wFMCommunicate OK [21:50:57]CreateOFDProtocolMessage done [21:50:57]OFDSenderStorePacket 201693 [21:50:57]StoreOFDPacket docnum=201693 [21:50:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 13 2A 04 01 FF EB 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 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 01 00 00 F4 03 04 00 41 64 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DD 13 03 00 35 04 06 00 EE 3A 8A EE F5 43 B8 F1 95 DD 24 07 B6 61 [21:50:57]CheckFolder [21:50:57]dirname=/storage/ofd_packets [21:50:57]CheckFolder done [21:50:57]ProducePacketName [21:50:57]name=ofd_packets/00201693 [21:50:57]NVStorageSaveData ofd_packets/00201693 [21:50:57]File name is /storage/ofd_packets/00201693 [21:50:57]Write 298 bytes [21:50:57]NVStorageSaveData done [21:50:57]OFDSenderStorePacket done [21:50:57]KKMCreateOFDPacket done [21:50:57]NVStorageSaveData kkm_last_timestamp [21:50:57]File name is /storage/kkm_last_timestamp [21:50:57]Write 4 bytes [21:50:57]NVStorageSaveData done [21:50:57]ExternCall_PrintAddStr [21:50:57]wPrintStart [21:50:57]Write to MH i2c: 01 00 00 46 01 47 [21:50:57]Write i2c OK [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: 01 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: 01 07 00 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: 01 07 00 46 01 00 00 00 00 00 FF 0F 5C [21:50:57]RasterBufferAndPrint [21:50:57]line Счет N : (1)449452 [21:50:57]line ИНН: 02508201610067 [21:50:57]line Контрольно-Кассовый Чек [21:50:57]line ПРОДАЖА [21:50:57]line ТРК (МРК, ГНК) : 33 [21:50:57]line Товар: 2710194210 [21:50:57]line ДТ-К-2 [21:50:57]line 39.380 * 76.20 [21:50:57]line = 3000.76 [21:50:57]line НДС 12% НСП 1% [21:50:57]line > о реализуемом товаре [21:50:57]line ИТОГО: 3000.76 [21:50:57]line НСП 1% : 26.55 [21:50:57]line НДС 12% : 318.66 [21:50:57]line Наличными: 0.00 [21:50:57]line Безнал.: 3000.76 [21:50:57]line Место: АЗС № 171 "Партнер Нефть" [21:50:57]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [21:50:57]line СНО: Общий режим [21:50:57]line Чек 455 26.10.2024 21:50 [21:50:57]line Смена: 543 ФФД: 1.0 [21:50:57]line ЗНМ: 0300000109 [21:50:57]line РНМ: 0000000000091777 [21:50:57]line Версия ККМ: 001 [21:50:57]line Платежная система: Mbank [21:50:57]line ФМ: 0000000000871756 [21:50:57]line ФД: 201693 [21:50:57]line ФПД: 261935206430019 [21:50:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T215057&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201693&fm=261935206430019&tin=02508201610067®Number=0000000000091777&sum=300076 [21:50:58]OFD Sender: Processing packet 201693 [packets to send 112, broken 111] [21:50:58]ProducePacketName [21:50:58]name=ofd_packets/00201693 [21:50:58]OFD Sender: To server: pG, [21:50:58]CommunicateWithHost lk.salyk.kg:30040 [21:50:58]ConnectInit lk.salyk.kg [21:50:58]written 0, free lines is 4095 [21:50:58]Connected sock=10 [21:50:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 13 2A 04 01 FF EB 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 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 01 00 00 F4 03 04 00 41 64 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DD 13 03 00 35 04 06 00 EE 3A 8A EE F5 43 B8 F1 95 DD 24 07 B6 61 [21:50:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 C0 96 47 00 66 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DD 13 03 00 F4 03 04 00 E8 0F 1D 67 B6 04 01 00 00 BB 9E 95 5A 23 8C 4F 73 [21:50:58]CommunicateWithHost err = 0 [21:50:58]CheckOFDResponse [21:50:58]1017 (14) - 77093643461234 [21:50:58]1041 (16) - 0000000000871756 [21:50:58]1040 (4) - 201693 [21:50:58]1012 (4) - 26.10.2024 15:51 [21:50:58]1206 (1) - 0 [21:50:58]OFD Sender: Remove packet 201693 [21:50:58]ProducePacketName [21:50:58]name=ofd_packets/00201693 [21:50:58]NVStorageDeleteData [21:50:58]Write to MH i2c: 01 00 00 6F 01 70 [21:50:58]Write i2c OK [21:50:58]MH_I2C_Read... [21:50:58]Read from MH i2c: 01 [21:50:58]MH_I2C_Read... [21:50:58]Read from MH i2c: 01 07 00 [21:50:58]MH_I2C_Read... [21:50:58]Read from MH i2c: 01 07 00 6F 01 00 00 00 00 00 BC 0C 3F [21:50:58]RasterBufferAndPrint [21:50:58]line [21:50:58]line [21:50:58]line [21:50:58]line [21:50:58]line [21:50:58]written 0, free lines is 3264 [21:50:58]MH_Cut [21:50:58]Write to MH i2c: D1 01 00 76 01 01 49 [21:50:58]Write i2c OK [21:50:58]MH_I2C_Read... [21:50:58]Read from MH i2c: D1 [21:50:58]MH_I2C_Read... [21:50:58]Read from MH i2c: D1 01 00 [21:50:58]MH_I2C_Read... [21:50:58]Read from MH i2c: D1 01 00 76 01 00 48 [21:50:58]Write to MH i2c: 01 00 00 77 01 78 [21:50:58]Write i2c OK [21:50:58]MH_I2C_Read... [21:50:58]OFD Sender: No OFD packet to send [21:50:59]*** Cut start [21:50:59]*** Purtial cut [21:50:59]*** CUTSNS_PIN = 0 [21:50:59]*** Stage 1: CUTSNS_PIN = 1 [21:51:01]Read from MH i2c: 01 [21:51:01]MH_I2C_Read... [21:51:01]*** Stop cut motor [21:51:01]*** Cut end [21:51:01]Read from MH i2c: 01 07 00 [21:51:01]MH_I2C_Read... [21:51:01]Read from MH i2c: 01 07 00 77 01 00 00 00 00 00 FF 0F 8D [21:51:01]process_action close_receipt done [21:51:01]requested_data is exist [21:51:01]produce_requested_data [21:51:01]requested_item fm.sn is exist - process it [21:51:01]wFMCommunicate request_size=4 [21:51:01]MH_SAM_APDU [21:51:01]CAPDU: 80 11 00 00 [21:51:01]Write to MH i2c: E2 08 00 78 01 80 11 00 00 00 00 00 00 F3 [21:51:01]Write i2c OK [21:51:01]MH_I2C_Read... [21:51:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:01]Read from MH i2c: E2 [21:51:01]MH_I2C_Read... [21:51:01]Read from MH i2c: E2 17 00 [21:51:01]MH_I2C_Read... [21:51:01]Read from MH i2c: E2 17 00 78 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 48 [21:51:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:51:01]wFMCommunicate OK [21:51:01]requested_item fd.num is exist - process it [21:51:01]SAM_PROTO_GetFieldsCounters [21:51:01]wFMCommunicate request_size=4 [21:51:01]MH_SAM_APDU [21:51:01]CAPDU: 80 13 00 00 [21:51:01]Write to MH i2c: E2 08 00 79 01 80 13 00 00 00 00 00 00 F6 [21:51:01]Write i2c OK [21:51:01]MH_I2C_Read... [21:51:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:51:01]Read from MH i2c: E2 [21:51:01]MH_I2C_Read... [21:51:01]Read from MH i2c: E2 62 00 [21:51:01]MH_I2C_Read... [21:51:01]Read from MH i2c: E2 62 00 79 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DD 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C7 01 00 00 5E 04 04 00 C7 01 00 00 57 04 04 00 C8 01 00 00 19 04 04 00 00 00 00 00 90 00 8B [21:51:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DD 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C7 01 00 00 5E 04 04 00 C7 01 00 00 57 04 04 00 C8 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:51:01]wFMCommunicate OK [21:51:01]SAM_PROTO_GetFieldsCounters done [21:51:01]requested_item shift.num is exist - process it [21:51:01]requested_item shift.opened is exist - process it [21:51:01]req_shift_opened [21:51:01]FM_GetShiftState [21:51:01]SAM_PROTO_GetShiftState [21:51:01]wFMCommunicate request_size=4 [21:51:01]MH_SAM_APDU [21:51:01]CAPDU: 80 13 01 00 [21:51:01]Write to MH i2c: E2 08 00 7A 01 80 13 01 00 00 00 00 00 F8 [21:51:01]Write i2c OK [21:51:01]MH_I2C_Read... [21:51:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:01]Read from MH i2c: E2 [21:51:01]MH_I2C_Read... [21:51:01]Read from MH i2c: E2 0E 00 [21:51:01]MH_I2C_Read... [21:51:01]Read from MH i2c: E2 0E 00 7A 01 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 07 [21:51:01]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [21:51:01]wFMCommunicate OK [21:51:01]SAM_PROTO_GetShiftState done [21:51:01]FM_GetShiftState done [21:51:01]req_shift_opened done [21:51:01]requested_item shift.open_date is exist - process it [21:51:01]req_shift_open_date [21:51:01]req_shift_open_date done [21:51:01]produce_requested_data done [21:51:01]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201693,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [21:51:01]process_action_free close_receipt [21:51:01]json_value_free [21:51:01]json_value_free done [21:51:01]process_json_proto returns [21:51:01]Send response to host [21:51:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201693,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [21:51:01]free response buf [21:51:01]execute_script done [21:51:01]execute_script returns [21:51:01]free content buf [21:51:01]Sock 9.Close socket [21:51:01]Sock 9.Thread stoped [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:54]OFD Sender: No OFD packet to send [21:51:59]OFD Sender: No OFD packet to send [21:52:04]OFD Sender: No OFD packet to send [21:52:09]OFD Sender: No OFD packet to send [21:52:14]OFD Sender: No OFD packet to send [21:52:19]OFD Sender: No OFD packet to send [21:52:24]OFD Sender: No OFD packet to send [21:52:29]OFD Sender: No OFD packet to send [21:52:34]OFD Sender: No OFD packet to send [21:52:39]OFD Sender: No OFD packet to send [21:52:44]OFD Sender: No OFD packet to send [21:52:49]OFD Sender: No OFD packet to send [21:52:54]OFD Sender: No OFD packet to send [21:52:59]OFD Sender: No OFD packet to send [21:53:04]OFD Sender: No OFD packet to send [21:53:09]OFD Sender: No OFD packet to send [21:53:14]OFD Sender: No OFD packet to send [21:53:19]OFD Sender: No OFD packet to send [21:53:24]OFD Sender: No OFD packet to send [21:53:24]accept exits with 8 [21:53:24]New connection [21:53:24]New thread 3066936676 created [21:53:24]Thread 3067080036 joined [21:53:24]Waiting for new connection... [21:53:24] Sock 8.Parse request [21:53:24]Sock 8.Check first char [21:53:24]Sock 8.First char is OK [21:53:24]request: POST /json_proto HTTP/1.0 [21:53:24]Method: POST [21:53:24]URL: /json_proto [21:53:24]Method is POST - this is cgi request [21:53:24]url: /json_proto [21:53:24]query_string will be loaded in cgi processing [21:53:24]execute_cgi json_proto POST (null) [21:53:24]execute_cgi path=json_proto method=POST [21:53:24]POST find Content-Length [21:53:24]Host: 172.17.63.195:8080 [21:53:24]Content-Length: 816 [21:53:24]Content-Type: application/json [21:53:24] [21:53:24]POST finish read [21:53:24]Found Content-Length = 816 [21:53:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:24]execute_script... [21:53: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)449453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:24]POST & json_proto [21:53:24]process_json_proto [21:53:24]json parsed OK: [21:53:24]protocol is kg_v1.0 [21:53:24]action value=close_receipt [21:53:24]process_action close_receipt [21:53:24]cmd_close_receipt [21:53:24]MH_GetDate [21:53:24]Write to MH i2c: F0 00 00 7B 01 6B [21:53:24]Write i2c OK [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: F0 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: F0 09 00 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: F0 09 00 7B 01 00 D6 64 1D 67 68 46 19 67 60 [21:53:24]GetLastDocTimeStamp 1729979457 [21:53:24]current date 1729979606 [21:53:24]FM_GetShiftState [21:53:24]SAM_PROTO_GetShiftState [21:53:24]wFMCommunicate request_size=4 [21:53:24]MH_SAM_APDU [21:53:24]CAPDU: 80 13 01 00 [21:53:24]Write to MH i2c: E2 08 00 7C 01 80 13 01 00 00 00 00 00 FA [21:53:24]Write i2c OK [21:53:24]MH_I2C_Read... [21:53:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:24]Read from MH i2c: E2 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: E2 0E 00 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: E2 0E 00 7C 01 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 09 [21:53:24]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [21:53:24]wFMCommunicate OK [21:53:24]SAM_PROTO_GetShiftState done [21:53:24]FM_GetShiftState done [21:53:24]opened in 1729900879 [21:53:24]opened+sec_in_day 1729987279 [21:53:24]quantity*price = 20003 [21:53:24]sum+1 = 20004 [21:53:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 456 26.10.2024 21:53 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871756 ФД: 201694 ФПД: 78809453951628 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T215326&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201694&fm=78809453951628&tin=02508201610067®Number=0000000000091777&sum=20003 [21:53:26]StoreToDocumentArchive [21:53:26]shift 543 fd 201694 [21:53:26]save to /storage/0543/doc_00201694 [21:53:26]save last doc name /storage/0543/doc_00201694 to /storage/kkm_last_doc_name [21:53:26]save OK [21:53:26]Clear old archive folders... [21:53:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:53:26]tlvbuf is 000870E0 [21:53:26]SAM_PROTO_ClearQueue [21:53:26]wFMCommunicate request_size=4 [21:53:26]MH_SAM_APDU [21:53:26]CAPDU: 80 09 00 00 [21:53:26]Write to MH i2c: E2 08 00 89 01 80 09 00 00 00 00 00 00 FC [21:53:26]Write i2c OK [21:53:26]MH_I2C_Read... [21:53:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:53:26]Read from MH i2c: E2 [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: E2 03 00 [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: E2 03 00 89 01 00 90 00 FE [21:53:26]RAPDU: 90 00 [21:53:26]wFMCommunicate OK [21:53:26]SAM_PROTO_ClearQueue done [21:53:26]KKMCreateOFDPacket [21:53:26]OFDProtocolAddRootSTLVToBuf [21:53:26]FM_MakeSignedData [21:53:26]FM_MakeSignedData [21:53:26]SAM_PROTO_SignData [21:53:26]wFMCommunicate request_size=4 [21:53:26]MH_SAM_APDU [21:53:26]CAPDU: 80 0D 01 02 [21:53:26]Write to MH i2c: E2 08 00 8A 01 80 0D 01 02 00 00 00 00 04 [21:53:26]Write i2c OK [21:53:26]MH_I2C_Read... [21:53:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:53:26]Read from MH i2c: E2 [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: E2 03 00 [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [21:53:26]RAPDU: 90 00 [21:53:26]wFMCommunicate OK [21:53:26]wFMCommunicate request_size=255 [21:53:26]MH_SAM_APDU [21:53:26]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 32 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 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 01 00 00 F4 03 04 00 D6 64 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DE 13 03 00 35 04 06 00 47 [21:53:26]Write to MH i2c: E2 02 01 8B 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 32 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 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 01 00 00 F4 03 04 00 D6 64 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DE 13 03 00 35 04 06 00 47 00 00 43 [21:53:26]Write i2c OK [21:53:26]MH_I2C_Read... [21:53:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:26]Read from MH i2c: E2 [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: E2 03 00 [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [21:53:26]RAPDU: 90 00 [21:53:26]wFMCommunicate OK [21:53:26]wFMCommunicate request_size=10 [21:53:26]MH_SAM_APDU [21:53:26]CAPDU: 80 0D 02 02 05 AD 41 81 FA 8C [21:53:26]Write to MH i2c: E2 0D 00 8C 01 80 0D 02 02 05 00 AD 41 81 FA 8C 00 00 06 [21:53:26]Write i2c OK [21:53:26]MH_I2C_Read... [21:53:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:26]Read from MH i2c: E2 [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: E2 03 00 [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [21:53:26]RAPDU: 90 00 [21:53:26]wFMCommunicate OK [21:53:26]wFMCommunicate request_size=4 [21:53:26]MH_SAM_APDU [21:53:26]CAPDU: 80 0D 03 02 [21:53:26]Write to MH i2c: E2 08 00 8D 01 80 0D 03 02 00 00 00 00 09 [21:53:26]Write i2c OK [21:53:26]MH_I2C_Read... [21:53:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:53:26]Read from MH i2c: E2 [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: E2 0B 00 [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: E2 0B 00 8D 01 00 2E 40 3F 39 44 C1 69 0F 90 00 6D [21:53:26]RAPDU: 2E 40 3F 39 44 C1 69 0F 90 00 [21:53:26]wFMCommunicate OK [21:53:26]SAM_PROTO_SignData done [21:53:26]FM_MakeSignedData done [21:53:26]CreateOFDProtocolMessage [21:53:26]wFMCommunicate request_size=4 [21:53:26]MH_SAM_APDU [21:53:26]CAPDU: 80 11 00 00 [21:53:26]Write to MH i2c: E2 08 00 8E 01 80 11 00 00 00 00 00 00 09 [21:53:26]Write i2c OK [21:53:26]MH_I2C_Read... [21:53:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:26]Read from MH i2c: E2 [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: E2 17 00 [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: E2 17 00 8E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 5E [21:53:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:53:26]wFMCommunicate OK [21:53:26]CreateOFDProtocolMessage done [21:53:26]OFDSenderStorePacket 201694 [21:53:26]StoreOFDPacket docnum=201694 [21:53:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8F 01 07 01 79 63 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 32 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 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 01 00 00 F4 03 04 00 D6 64 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DE 13 03 00 35 04 06 00 47 AD 41 81 FA 8C 2E 40 3F 39 44 C1 69 0F [21:53:26]CheckFolder [21:53:26]dirname=/storage/ofd_packets [21:53:26]CheckFolder done [21:53:26]ProducePacketName [21:53:26]name=ofd_packets/00201694 [21:53:26]NVStorageSaveData ofd_packets/00201694 [21:53:26]File name is /storage/ofd_packets/00201694 [21:53:26]Write 301 bytes [21:53:26]NVStorageSaveData done [21:53:26]OFDSenderStorePacket done [21:53:26]KKMCreateOFDPacket done [21:53:26]NVStorageSaveData kkm_last_timestamp [21:53:26]File name is /storage/kkm_last_timestamp [21:53:26]Write 4 bytes [21:53:26]NVStorageSaveData done [21:53:26]ExternCall_PrintAddStr [21:53:26]wPrintStart [21:53:26]Write to MH i2c: 01 00 00 8F 01 90 [21:53:26]Write i2c OK [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: 01 [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: 01 07 00 [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 FF 0F A5 [21:53:26]RasterBufferAndPrint [21:53:26]line Счет N : (1)449453 [21:53:26]line ИНН: 02508201610067 [21:53:26]line Контрольно-Кассовый Чек [21:53:26]line ПРОДАЖА [21:53:26]line ТРК (МРК, ГНК) : 41 [21:53:26]line Товар: 2710124130 [21:53:26]line Аи-92-К-2 [21:53:26]line 2.990 * 66.90 [21:53:26]line = 200.03 [21:53:26]line НДС 12% НСП 1% [21:53:26]line > о реализуемом товаре [21:53:26]line ИТОГО: 200.03 [21:53:26]line НСП 1% : 1.77 [21:53:26]line НДС 12% : 21.24 [21:53:26]line Наличными: 0.00 [21:53:26]line Безнал.: 200.03 [21:53:26]line Место: АЗС № 171 "Партнер Нефть" [21:53:26]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [21:53:26]line СНО: Общий режим [21:53:26]line Чек 456 26.10.2024 21:53 [21:53:26]line Смена: 543 ФФД: 1.0 [21:53:26]line ЗНМ: 0300000109 [21:53:26]line РНМ: 0000000000091777 [21:53:26]line Версия ККМ: 001 [21:53:26]line Платежная система: Бакай Банк [21:53:26]line ФМ: 0000000000871756 [21:53:26]line ФД: 201694 [21:53:26]line ФПД: 78809453951628 [21:53:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T215326&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201694&fm=78809453951628&tin=02508201610067®Number=0000000000091777&sum=20003 [21:53:26]written 0, free lines is 4095 [21:53:26]OFD Sender: Processing packet 201694 [packets to send 112, broken 111] [21:53:26]ProducePacketName [21:53:26]name=ofd_packets/00201694 [21:53:26]OFD Sender: To server: pG, [21:53:26]CommunicateWithHost lk.salyk.kg:30040 [21:53:26]ConnectInit lk.salyk.kg [21:53:26]Connected sock=11 [21:53:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 8F 01 07 01 79 63 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 32 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 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 01 00 00 F4 03 04 00 D6 64 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DE 13 03 00 35 04 06 00 47 AD 41 81 FA 8C 2E 40 3F 39 44 C1 69 0F [21:53:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 6E 94 47 00 34 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DE 13 03 00 F4 03 04 00 7D 10 1D 67 B6 04 01 00 00 4A 9B BB 34 63 0A 14 84 [21:53:27]CommunicateWithHost err = 0 [21:53:27]CheckOFDResponse [21:53:27]1017 (14) - 77093643461234 [21:53:27]1041 (16) - 0000000000871756 [21:53:27]1040 (4) - 201694 [21:53:27]1012 (4) - 26.10.2024 15:53 [21:53:27]1206 (1) - 0 [21:53:27]OFD Sender: Remove packet 201694 [21:53:27]ProducePacketName [21:53:27]name=ofd_packets/00201694 [21:53:27]NVStorageDeleteData [21:53:27]Write to MH i2c: 01 00 00 B9 01 BA [21:53:27]Write i2c OK [21:53:27]MH_I2C_Read... [21:53:27]Read from MH i2c: 01 [21:53:27]MH_I2C_Read... [21:53:27]Read from MH i2c: 01 07 00 [21:53:27]MH_I2C_Read... [21:53:27]Read from MH i2c: 01 07 00 B9 01 00 00 00 00 00 BF 0C 8C [21:53:27]RasterBufferAndPrint [21:53:27]line [21:53:27]line [21:53:27]line [21:53:27]line [21:53:27]line [21:53:27]written 0, free lines is 3269 [21:53:27]MH_Cut [21:53:27]Write to MH i2c: D1 01 00 C0 01 01 93 [21:53:27]Write i2c OK [21:53:27]MH_I2C_Read... [21:53:27]Read from MH i2c: D1 [21:53:27]MH_I2C_Read... [21:53:27]Read from MH i2c: D1 01 00 [21:53:27]MH_I2C_Read... [21:53:27]Read from MH i2c: D1 01 00 C0 01 00 92 [21:53:27]Write to MH i2c: 01 00 00 C1 01 C2 [21:53:27]Write i2c OK [21:53:27]MH_I2C_Read... [21:53:27]OFD Sender: No OFD packet to send [21:53:28]*** Cut start [21:53:28]*** Purtial cut [21:53:28]*** Stage 1: CUTSNS_PIN = 1 [21:53:28]Read from MH i2c: 01 [21:53:28]MH_I2C_Read... [21:53:28]*** Stop cut motor [21:53:28]*** Cut end [21:53:28]Read from MH i2c: 01 07 00 [21:53:28]MH_I2C_Read... [21:53:28]Read from MH i2c: 01 07 00 C1 01 00 00 00 00 00 FF 0F D7 [21:53:28]process_action close_receipt done [21:53:28]requested_data is exist [21:53:28]produce_requested_data [21:53:28]requested_item fm.sn is exist - process it [21:53:28]wFMCommunicate request_size=4 [21:53:28]MH_SAM_APDU [21:53:28]CAPDU: 80 11 00 00 [21:53:28]Write to MH i2c: E2 08 00 C2 01 80 11 00 00 00 00 00 00 3D [21:53:28]Write i2c OK [21:53:28]MH_I2C_Read... [21:53:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:28]Read from MH i2c: E2 [21:53:28]MH_I2C_Read... [21:53:28]Read from MH i2c: E2 17 00 [21:53:28]MH_I2C_Read... [21:53:28]Read from MH i2c: E2 17 00 C2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 92 [21:53:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:53:28]wFMCommunicate OK [21:53:28]requested_item fd.num is exist - process it [21:53:28]SAM_PROTO_GetFieldsCounters [21:53:28]wFMCommunicate request_size=4 [21:53:28]MH_SAM_APDU [21:53:28]CAPDU: 80 13 00 00 [21:53:28]Write to MH i2c: E2 08 00 C3 01 80 13 00 00 00 00 00 00 40 [21:53:28]Write i2c OK [21:53:28]MH_I2C_Read... [21:53:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:53:28]Read from MH i2c: E2 [21:53:28]MH_I2C_Read... [21:53:28]Read from MH i2c: E2 62 00 [21:53:28]MH_I2C_Read... [21:53:28]Read from MH i2c: E2 62 00 C3 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DE 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C8 01 00 00 5E 04 04 00 C8 01 00 00 57 04 04 00 C9 01 00 00 19 04 04 00 00 00 00 00 90 00 D9 [21:53:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DE 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C8 01 00 00 5E 04 04 00 C8 01 00 00 57 04 04 00 C9 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:53:28]wFMCommunicate OK [21:53:28]SAM_PROTO_GetFieldsCounters done [21:53:28]requested_item shift.num is exist - process it [21:53:28]requested_item shift.opened is exist - process it [21:53:28]req_shift_opened [21:53:28]FM_GetShiftState [21:53:28]SAM_PROTO_GetShiftState [21:53:28]wFMCommunicate request_size=4 [21:53:28]MH_SAM_APDU [21:53:28]CAPDU: 80 13 01 00 [21:53:28]Write to MH i2c: E2 08 00 C4 01 80 13 01 00 00 00 00 00 42 [21:53:28]Write i2c OK [21:53:28]MH_I2C_Read... [21:53:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:28]Read from MH i2c: E2 [21:53:28]MH_I2C_Read... [21:53:28]Read from MH i2c: E2 0E 00 [21:53:28]MH_I2C_Read... [21:53:28]Read from MH i2c: E2 0E 00 C4 01 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 51 [21:53:28]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [21:53:28]wFMCommunicate OK [21:53:28]SAM_PROTO_GetShiftState done [21:53:28]FM_GetShiftState done [21:53:28]req_shift_opened done [21:53:28]requested_item shift.open_date is exist - process it [21:53:28]req_shift_open_date [21:53:28]req_shift_open_date done [21:53:28]produce_requested_data done [21:53:28]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201694,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [21:53:28]process_action_free close_receipt [21:53:28]json_value_free [21:53:28]json_value_free done [21:53:28]process_json_proto returns [21:53:28]Send response to host [21:53:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201694,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [21:53:28]free response buf [21:53:28]execute_script done [21:53:28]execute_script returns [21:53:28]free content buf [21:53:28]Sock 8.Close socket [21:53:28]Sock 8.Thread stoped [21:53:32]OFD Sender: No OFD packet to send [21:53:37]OFD Sender: No OFD packet to send [21:53:42]OFD Sender: No OFD packet to send [21:53:47]OFD Sender: No OFD packet to send [21:53:52]OFD Sender: No OFD packet to send [21:53:57]OFD Sender: No OFD packet to send [21:54:01]ConnectInit Can't connect to host [21:54:02]OFD Sender: No OFD packet to send [21:54:07]OFD Sender: No OFD packet to send [21:54:12]OFD Sender: No OFD packet to send [21:54:17]OFD Sender: No OFD packet to send [21:54:22]OFD Sender: No OFD packet to send [21:54:27]OFD Sender: No OFD packet to send [21:54:32]OFD Sender: No OFD packet to send [21:54:37]OFD Sender: No OFD packet to send [21:54:42]OFD Sender: No OFD packet to send [21:54:47]OFD Sender: No OFD packet to send [21:54:52]OFD Sender: No OFD packet to send [21:54:57]OFD Sender: No OFD packet to send [21:55:02]OFD Sender: No OFD packet to send [21:55:07]OFD Sender: No OFD packet to send [21:55:12]OFD Sender: No OFD packet to send [21:55:17]OFD Sender: No OFD packet to send [21:55:22]OFD Sender: No OFD packet to send [21:55:27]OFD Sender: No OFD packet to send [21:55:32]OFD Sender: No OFD packet to send [21:55:37]OFD Sender: No OFD packet to send [21:55:42]OFD Sender: No OFD packet to send [21:55:47]OFD Sender: No OFD packet to send [21:55:52]OFD Sender: No OFD packet to send [21:55:57]OFD Sender: No OFD packet to send [21:56:02]OFD Sender: No OFD packet to send [21:56:07]OFD Sender: No OFD packet to send [21:56:12]OFD Sender: No OFD packet to send [21:56:17]OFD Sender: No OFD packet to send [21:56:22]OFD Sender: No OFD packet to send [21:56:27]OFD Sender: No OFD packet to send [21:56:32]OFD Sender: No OFD packet to send [21:56:37]OFD Sender: No OFD packet to send [21:56:42]OFD Sender: No OFD packet to send [21:56:47]OFD Sender: No OFD packet to send [21:56:52]OFD Sender: No OFD packet to send [21:56:57]OFD Sender: No OFD packet to send [21:57:02]OFD Sender: No OFD packet to send [21:57:07]OFD Sender: No OFD packet to send [21:57:12]OFD Sender: No OFD packet to send [21:57:17]OFD Sender: No OFD packet to send [21:57:22]OFD Sender: No OFD packet to send [21:57:27]OFD Sender: No OFD packet to send [21:57:32]OFD Sender: No OFD packet to send [21:57:37]OFD Sender: No OFD packet to send [21:57:42]OFD Sender: No OFD packet to send [21:57:46]accept exits with 10 [21:57:46]New connection [21:57:46]New thread 3067080036 created [21:57:46]Thread 3066936676 joined [21:57:46]Waiting for new connection... [21:57:46] Sock 10.Parse request [21:57:46]Sock 10.Check first char [21:57:46]Sock 10.First char is OK [21:57:46]request: POST /json_proto HTTP/1.0 [21:57:46]Method: POST [21:57:46]URL: /json_proto [21:57:46]Method is POST - this is cgi request [21:57:46]url: /json_proto [21:57:46]query_string will be loaded in cgi processing [21:57:46]execute_cgi json_proto POST (null) [21:57:46]execute_cgi path=json_proto method=POST [21:57:46]POST find Content-Length [21:57:46]Host: 172.17.63.195:8080 [21:57:46]Content-Length: 677 [21:57:46]Content-Type: application/json [21:57:46] [21:57:46]POST finish read [21:57:46]Found Content-Length = 677 [21:57:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449454", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [21:57:46]execute_script... [21:57: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)449454", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [21:57:46]POST & json_proto [21:57:46]process_json_proto [21:57:46]json parsed OK: [21:57:46]protocol is kg_v1.0 [21:57:46]action value=close_receipt [21:57:46]process_action close_receipt [21:57:46]cmd_close_receipt [21:57:46]MH_GetDate [21:57:46]Write to MH i2c: F0 00 00 C5 01 B5 [21:57:46]Write i2c OK [21:57:46]MH_I2C_Read... [21:57:46]Read from MH i2c: F0 [21:57:46]MH_I2C_Read... [21:57:46]Read from MH i2c: F0 09 00 [21:57:46]MH_I2C_Read... [21:57:46]Read from MH i2c: F0 09 00 C5 01 00 DB 65 1D 67 68 46 19 67 B0 [21:57:46]GetLastDocTimeStamp 1729979606 [21:57:46]current date 1729979867 [21:57:46]FM_GetShiftState [21:57:46]SAM_PROTO_GetShiftState [21:57:46]wFMCommunicate request_size=4 [21:57:46]MH_SAM_APDU [21:57:46]CAPDU: 80 13 01 00 [21:57:46]Write to MH i2c: E2 08 00 C6 01 80 13 01 00 00 00 00 00 44 [21:57:46]Write i2c OK [21:57:46]MH_I2C_Read... [21:57:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:46]Read from MH i2c: E2 [21:57:46]MH_I2C_Read... [21:57:46]Read from MH i2c: E2 0E 00 [21:57:46]MH_I2C_Read... [21:57:46]Read from MH i2c: E2 0E 00 C6 01 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 53 [21:57:46]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [21:57:46]wFMCommunicate OK [21:57:46]SAM_PROTO_GetShiftState done [21:57:46]FM_GetShiftState done [21:57:46]opened in 1729900879 [21:57:46]opened+sec_in_day 1729987279 [21:57:46]quantity*price = 50041 [21:57:46]sum+1 = 50042 [21:57:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 457 26.10.2024 21:57 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201695 ФПД: 186458469989451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T215747&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201695&fm=186458469989451&tin=02508201610067®Number=0000000000091777&sum=50000 [21:57:47]StoreToDocumentArchive [21:57:47]shift 543 fd 201695 [21:57:47]save to /storage/0543/doc_00201695 [21:57:47]save last doc name /storage/0543/doc_00201695 to /storage/kkm_last_doc_name [21:57:47]save OK [21:57:47]Clear old archive folders... [21:57:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:57:47]tlvbuf is 000F9B00 [21:57:47]SAM_PROTO_ClearQueue [21:57:47]wFMCommunicate request_size=4 [21:57:47]MH_SAM_APDU [21:57:47]CAPDU: 80 09 00 00 [21:57:47]Write to MH i2c: E2 08 00 D3 01 80 09 00 00 00 00 00 00 46 [21:57:47]Write i2c OK [21:57:47]MH_I2C_Read... [21:57:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:57:47]Read from MH i2c: E2 [21:57:47]MH_I2C_Read... [21:57:47]Read from MH i2c: E2 03 00 [21:57:47]MH_I2C_Read... [21:57:47]Read from MH i2c: E2 03 00 D3 01 00 90 00 48 [21:57:47]RAPDU: 90 00 [21:57:47]wFMCommunicate OK [21:57:47]SAM_PROTO_ClearQueue done [21:57:47]KKMCreateOFDPacket [21:57:47]OFDProtocolAddRootSTLVToBuf [21:57:47]FM_MakeSignedData [21:57:47]FM_MakeSignedData [21:57:47]SAM_PROTO_SignData [21:57:47]wFMCommunicate request_size=4 [21:57:47]MH_SAM_APDU [21:57:47]CAPDU: 80 0D 01 02 [21:57:47]Write to MH i2c: E2 08 00 D4 01 80 0D 01 02 00 00 00 00 4E [21:57:47]Write i2c OK [21:57:47]MH_I2C_Read... [21:57:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:57:48]Read from MH i2c: E2 [21:57:48]MH_I2C_Read... [21:57:48]Read from MH i2c: E2 03 00 [21:57:48]MH_I2C_Read... [21:57:48]Read from MH i2c: E2 03 00 D4 01 00 90 00 49 [21:57:48]RAPDU: 90 00 [21:57:48]wFMCommunicate OK [21:57:48]wFMCommunicate request_size=255 [21:57:48]MH_SAM_APDU [21:57: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 32 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 C9 01 00 00 F4 03 04 00 DB 65 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DF 13 03 00 35 04 06 00 A9 [21:57:48]Write to MH i2c: E2 02 01 D5 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 32 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 C9 01 00 00 F4 03 04 00 DB 65 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DF 13 03 00 35 04 06 00 A9 00 00 2F [21:57:48]Write i2c OK [21:57:48]MH_I2C_Read... [21:57:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:48]Read from MH i2c: E2 [21:57:48]MH_I2C_Read... [21:57:48]Read from MH i2c: E2 03 00 [21:57:48]MH_I2C_Read... [21:57:48]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [21:57:48]RAPDU: 90 00 [21:57:48]wFMCommunicate OK [21:57:48]wFMCommunicate request_size=10 [21:57:48]MH_SAM_APDU [21:57:48]CAPDU: 80 0D 02 02 05 95 3E DE 7C 4B [21:57:48]Write to MH i2c: E2 0D 00 D6 01 80 0D 02 02 05 00 95 3E DE 7C 4B 00 00 D3 [21:57:48]Write i2c OK [21:57:48]MH_I2C_Read... [21:57:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:48]Read from MH i2c: E2 [21:57:48]MH_I2C_Read... [21:57:48]Read from MH i2c: E2 03 00 [21:57:48]MH_I2C_Read... [21:57:48]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [21:57:48]RAPDU: 90 00 [21:57:48]wFMCommunicate OK [21:57:48]wFMCommunicate request_size=4 [21:57:48]MH_SAM_APDU [21:57:48]CAPDU: 80 0D 03 02 [21:57:48]Write to MH i2c: E2 08 00 D7 01 80 0D 03 02 00 00 00 00 53 [21:57:48]Write i2c OK [21:57:48]MH_I2C_Read... [21:57:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:57:48]Read from MH i2c: E2 [21:57:48]MH_I2C_Read... [21:57:48]Read from MH i2c: E2 0B 00 [21:57:48]MH_I2C_Read... [21:57:48]Read from MH i2c: E2 0B 00 D7 01 00 6D 5B C9 1A B6 D9 BF 79 90 00 C6 [21:57:48]RAPDU: 6D 5B C9 1A B6 D9 BF 79 90 00 [21:57:48]wFMCommunicate OK [21:57:48]SAM_PROTO_SignData done [21:57:48]FM_MakeSignedData done [21:57:48]CreateOFDProtocolMessage [21:57:48]wFMCommunicate request_size=4 [21:57:48]MH_SAM_APDU [21:57:48]CAPDU: 80 11 00 00 [21:57:48]Write to MH i2c: E2 08 00 D8 01 80 11 00 00 00 00 00 00 53 [21:57:48]Write i2c OK [21:57:48]MH_I2C_Read... [21:57:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:48]Read from MH i2c: E2 [21:57:48]MH_I2C_Read... [21:57:48]Read from MH i2c: E2 17 00 [21:57:48]MH_I2C_Read... [21:57:48]Read from MH i2c: E2 17 00 D8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 A8 [21:57:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:57:48]wFMCommunicate OK [21:57:48]CreateOFDProtocolMessage done [21:57:48]OFDSenderStorePacket 201695 [21:57:48]StoreOFDPacket docnum=201695 [21:57:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D9 FB 07 01 C6 20 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 32 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 C9 01 00 00 F4 03 04 00 DB 65 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DF 13 03 00 35 04 06 00 A9 95 3E DE 7C 4B 6D 5B C9 1A B6 D9 BF 79 [21:57:48]CheckFolder [21:57:48]dirname=/storage/ofd_packets [21:57:48]CheckFolder done [21:57:48]ProducePacketName [21:57:48]name=ofd_packets/00201695 [21:57:48]NVStorageSaveData ofd_packets/00201695 [21:57:48]File name is /storage/ofd_packets/00201695 [21:57:48]Write 301 bytes [21:57:48]NVStorageSaveData done [21:57:48]OFDSenderStorePacket done [21:57:48]KKMCreateOFDPacket done [21:57:48]NVStorageSaveData kkm_last_timestamp [21:57:48]File name is /storage/kkm_last_timestamp [21:57:48]Write 4 bytes [21:57:48]NVStorageSaveData done [21:57:48]ExternCall_PrintAddStr [21:57:48]wPrintStart [21:57:48]Write to MH i2c: 01 00 00 D9 01 DA [21:57:48]Write i2c OK [21:57:48]MH_I2C_Read... [21:57:48]Read from MH i2c: 01 [21:57:48]MH_I2C_Read... [21:57:48]Read from MH i2c: 01 07 00 [21:57:48]MH_I2C_Read... [21:57:48]Read from MH i2c: 01 07 00 D9 01 00 00 00 00 00 FF 0F EF [21:57:48]RasterBufferAndPrint [21:57:48]line Счет N : (1)449454 [21:57:48]line ИНН: 02508201610067 [21:57:48]line Контрольно-Кассовый Чек [21:57:48]line ПРОДАЖА [21:57:48]line ТРК (МРК, ГНК) : 41 [21:57:48]line Товар: 2710124130 [21:57:48]line Аи-92-К-2 [21:57:48]line 7.480 * 66.90 [21:57:48]line = 500.41 [21:57:48]line НДС 12% НСП 1% [21:57:48]line > о реализуемом товаре [21:57:48]line ОКРУГЛЕНИЕ: -0.41 [21:57:48]line ИТОГО: 500.00 [21:57:48]line Внесено: 500.00 [21:57:48]line СДАЧА: 0.00 [21:57:48]line НСП 1% : 4.43 [21:57:48]line НДС 12% : 53.14 [21:57:48]line Наличными: 500.00 [21:57:48]line Безнал.: 0.00 [21:57:48]line Место: АЗС № 171 "Партнер Нефть" [21:57:48]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [21:57:48]line СНО: Общий режим [21:57:48]line Чек 457 26.10.2024 21:57 [21:57:48]line Смена: 543 ФФД: 1.0 [21:57:48]line ЗНМ: 0300000109 [21:57:48]line РНМ: 0000000000091777 [21:57:48]line Версия ККМ: 001 [21:57:48]line ФМ: 0000000000871756 [21:57:48]line ФД: 201695 [21:57:48]line ФПД: 186458469989451 [21:57:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T215747&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201695&fm=186458469989451&tin=02508201610067®Number=0000000000091777&sum=50000 [21:57:48]OFD Sender: Processing packet 201695 [packets to send 112, broken 111] [21:57:48]ProducePacketName [21:57:48]name=ofd_packets/00201695 [21:57:48]OFD Sender: To server: pG, [21:57:48]CommunicateWithHost lk.salyk.kg:30040 [21:57:48]ConnectInit lk.salyk.kg [21:57:48]written 0, free lines is 4095 [21:57:48]Connected sock=9 [21:57:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 D9 FB 07 01 C6 20 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 32 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 C9 01 00 00 F4 03 04 00 DB 65 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DF 13 03 00 35 04 06 00 A9 95 3E DE 7C 4B 6D 5B C9 1A B6 D9 BF 79 [21:57:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 3D 80 47 00 7D C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 DF 13 03 00 F4 03 04 00 83 11 1D 67 B6 04 01 00 00 2E F8 20 EC 00 7C 52 0E [21:57:49]CommunicateWithHost err = 0 [21:57:49]CheckOFDResponse [21:57:49]1017 (14) - 77093643461234 [21:57:49]1041 (16) - 0000000000871756 [21:57:49]1040 (4) - 201695 [21:57:49]1012 (4) - 26.10.2024 15:57 [21:57:49]1206 (1) - 0 [21:57:49]OFD Sender: Remove packet 201695 [21:57:49]ProducePacketName [21:57:49]name=ofd_packets/00201695 [21:57:49]NVStorageDeleteData [21:57:49]Write to MH i2c: 01 00 00 04 02 06 [21:57:49]Write i2c OK [21:57:49]MH_I2C_Read... [21:57:49]Read from MH i2c: 01 [21:57:49]MH_I2C_Read... [21:57:49]Read from MH i2c: 01 07 00 [21:57:49]MH_I2C_Read... [21:57:49]Read from MH i2c: 01 07 00 04 02 00 00 00 00 00 9D 0C B6 [21:57:49]RasterBufferAndPrint [21:57:49]line [21:57:49]line [21:57:49]line [21:57:49]line [21:57:49]line [21:57:49]written 0, free lines is 3235 [21:57:49]MH_Cut [21:57:49]Write to MH i2c: D1 01 00 0B 02 01 DF [21:57:49]Write i2c OK [21:57:49]MH_I2C_Read... [21:57:49]Read from MH i2c: D1 [21:57:49]MH_I2C_Read... [21:57:49]Read from MH i2c: D1 01 00 [21:57:49]MH_I2C_Read... [21:57:49]Read from MH i2c: D1 01 00 0B 02 00 DE [21:57:49]Write to MH i2c: 01 00 00 0C 02 0E [21:57:49]Write i2c OK [21:57:49]MH_I2C_Read... [21:57:49]OFD Sender: No OFD packet to send [21:57:50]*** Cut start [21:57:50]*** Purtial cut [21:57:50]*** Stage 1: CUTSNS_PIN = 1 [21:57:50]Read from MH i2c: 01 [21:57:50]MH_I2C_Read... [21:57:50]*** Stop cut motor [21:57:50]*** Cut end [21:57:50]Read from MH i2c: 01 07 00 [21:57:50]MH_I2C_Read... [21:57:50]Read from MH i2c: 01 07 00 0C 02 00 00 00 00 00 FF 0F 23 [21:57:50]process_action close_receipt done [21:57:50]requested_data is exist [21:57:50]produce_requested_data [21:57:50]requested_item fm.sn is exist - process it [21:57:50]wFMCommunicate request_size=4 [21:57:50]MH_SAM_APDU [21:57:50]CAPDU: 80 11 00 00 [21:57:50]Write to MH i2c: E2 08 00 0D 02 80 11 00 00 00 00 00 00 89 [21:57:50]Write i2c OK [21:57:50]MH_I2C_Read... [21:57:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:50]Read from MH i2c: E2 [21:57:50]MH_I2C_Read... [21:57:50]Read from MH i2c: E2 17 00 [21:57:50]MH_I2C_Read... [21:57:50]Read from MH i2c: E2 17 00 0D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 DE [21:57:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [21:57:50]wFMCommunicate OK [21:57:50]requested_item fd.num is exist - process it [21:57:50]SAM_PROTO_GetFieldsCounters [21:57:50]wFMCommunicate request_size=4 [21:57:50]MH_SAM_APDU [21:57:50]CAPDU: 80 13 00 00 [21:57:50]Write to MH i2c: E2 08 00 0E 02 80 13 00 00 00 00 00 00 8C [21:57:50]Write i2c OK [21:57:50]MH_I2C_Read... [21:57:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:57:50]Read from MH i2c: E2 [21:57:50]MH_I2C_Read... [21:57:50]Read from MH i2c: E2 62 00 [21:57:50]MH_I2C_Read... [21:57:50]Read from MH i2c: E2 62 00 0E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DF 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C9 01 00 00 5E 04 04 00 C9 01 00 00 57 04 04 00 CA 01 00 00 19 04 04 00 00 00 00 00 90 00 29 [21:57:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 DF 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C9 01 00 00 5E 04 04 00 C9 01 00 00 57 04 04 00 CA 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:57:50]wFMCommunicate OK [21:57:50]SAM_PROTO_GetFieldsCounters done [21:57:50]requested_item shift.num is exist - process it [21:57:50]requested_item shift.opened is exist - process it [21:57:50]req_shift_opened [21:57:50]FM_GetShiftState [21:57:50]SAM_PROTO_GetShiftState [21:57:50]wFMCommunicate request_size=4 [21:57:50]MH_SAM_APDU [21:57:50]CAPDU: 80 13 01 00 [21:57:50]Write to MH i2c: E2 08 00 0F 02 80 13 01 00 00 00 00 00 8E [21:57:50]Write i2c OK [21:57:50]MH_I2C_Read... [21:57:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:50]Read from MH i2c: E2 [21:57:50]MH_I2C_Read... [21:57:50]Read from MH i2c: E2 0E 00 [21:57:50]MH_I2C_Read... [21:57:50]Read from MH i2c: E2 0E 00 0F 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 9D [21:57:50]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [21:57:50]wFMCommunicate OK [21:57:50]SAM_PROTO_GetShiftState done [21:57:50]FM_GetShiftState done [21:57:50]req_shift_opened done [21:57:50]requested_item shift.open_date is exist - process it [21:57:50]req_shift_open_date [21:57:50]req_shift_open_date done [21:57:50]produce_requested_data done [21:57:50]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201695,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [21:57:50]process_action_free close_receipt [21:57:50]json_value_free [21:57:50]json_value_free done [21:57:50]process_json_proto returns [21:57:50]Send response to host [21:57:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201695,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [21:57:50]free response buf [21:57:50]execute_script done [21:57:50]execute_script returns [21:57:50]free content buf [21:57:50]Sock 10.Close socket [21:57:50]Sock 10.Thread stoped [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:59]OFD Sender: No OFD packet to send [21:59:04]OFD Sender: No OFD packet to send [21:59:09]OFD Sender: No OFD packet to send [21:59:14]OFD Sender: No OFD packet to send [21:59:19]OFD Sender: No OFD packet to send [21:59:24]OFD Sender: No OFD packet to send [21:59:29]OFD Sender: No OFD packet to send [21:59:34]OFD Sender: No OFD packet to send [21:59:39]OFD Sender: No OFD packet to send [21:59:44]OFD Sender: No OFD packet to send [21:59:49]OFD Sender: No OFD packet to send [21:59:54]OFD Sender: No OFD packet to send [21:59:59]OFD Sender: No OFD packet to send [22:00:04]OFD Sender: No OFD packet to send [22:00:09]OFD Sender: No OFD packet to send [22:00:14]OFD Sender: No OFD packet to send [22:00:19]OFD Sender: No OFD packet to send [22:00:24]OFD Sender: No OFD packet to send [22:00:29]OFD Sender: No OFD packet to send [22:00:34]OFD Sender: No OFD packet to send [22:00:39]OFD Sender: No OFD packet to send [22:00:44]OFD Sender: No OFD packet to send [22:00:49]OFD Sender: No OFD packet to send [22:00:54]OFD Sender: No OFD packet to send [22:00:59]OFD Sender: No OFD packet to send [22:01:04]OFD Sender: No OFD packet to send [22:01:09]OFD Sender: No OFD packet to send [22:01:14]OFD Sender: No OFD packet to send [22:01:19]OFD Sender: No OFD packet to send [22:01:24]OFD Sender: No OFD packet to send [22:01:29]OFD Sender: No OFD packet to send [22:01:34]OFD Sender: No OFD packet to send [22:01:39]OFD Sender: No OFD packet to send [22:01:44]OFD Sender: No OFD packet to send [22:01:49]OFD Sender: No OFD packet to send [22:01:54]OFD Sender: No OFD packet to send [22:01:59]OFD Sender: No OFD packet to send [22:02:04]OFD Sender: No OFD packet to send [22:02:09]OFD Sender: No OFD packet to send [22:02:14]OFD Sender: No OFD packet to send [22:02:19]OFD Sender: No OFD packet to send [22:02:24]OFD Sender: No OFD packet to send [22:02:29]OFD Sender: No OFD packet to send [22:02:34]OFD Sender: No OFD packet to send [22:02:40]OFD Sender: No OFD packet to send [22:02:45]OFD Sender: No OFD packet to send [22:02:50]OFD Sender: No OFD packet to send [22:02:55]OFD Sender: No OFD packet to send [22:03:00]OFD Sender: No OFD packet to send [22:03:05]OFD Sender: No OFD packet to send [22:03:10]OFD Sender: No OFD packet to send [22:03:15]OFD Sender: No OFD packet to send [22:03:20]OFD Sender: No OFD packet to send [22:03:25]OFD Sender: No OFD packet to send [22:03:30]OFD Sender: No OFD packet to send [22:03:35]OFD Sender: No OFD packet to send [22:03:40]OFD Sender: No OFD packet to send [22:03:45]OFD Sender: No OFD packet to send [22:03:50]OFD Sender: No OFD packet to send [22:03:55]OFD Sender: No OFD packet to send [22:04:00]OFD Sender: No OFD packet to send [22:04:05]OFD Sender: No OFD packet to send [22:04:10]OFD Sender: No OFD packet to send [22:04:15]OFD Sender: No OFD packet to send [22:04:20]OFD Sender: No OFD packet to send [22:04:25]OFD Sender: No OFD packet to send [22:04:30]OFD Sender: No OFD packet to send [22:04:35]OFD Sender: No OFD packet to send [22:04:40]OFD Sender: No OFD packet to send [22:04:45]OFD Sender: No OFD packet to send [22:04:50]OFD Sender: No OFD packet to send [22:04:55]OFD Sender: No OFD packet to send [22:05:00]OFD Sender: No OFD packet to send [22:05:05]OFD Sender: No OFD packet to send [22:05:10]OFD Sender: No OFD packet to send [22:05:15]OFD Sender: No OFD packet to send [22:05:20]OFD Sender: No OFD packet to send [22:05:25]OFD Sender: No OFD packet to send [22:05:30]OFD Sender: No OFD packet to send [22:05:35]OFD Sender: No OFD packet to send [22:05:40]OFD Sender: No OFD packet to send [22:05:45]OFD Sender: No OFD packet to send [22:05:50]OFD Sender: No OFD packet to send [22:05:55]OFD Sender: No OFD packet to send [22:06:00]OFD Sender: No OFD packet to send [22:06:05]OFD Sender: No OFD packet to send [22:06:10]OFD Sender: No OFD packet to send [22:06:15]OFD Sender: No OFD packet to send [22:06:20]OFD Sender: No OFD packet to send [22:06:25]OFD Sender: No OFD packet to send [22:06:30]OFD Sender: No OFD packet to send [22:06:35]OFD Sender: No OFD packet to send [22:06:40]OFD Sender: No OFD packet to send [22:06:45]OFD Sender: No OFD packet to send [22:06:50]OFD Sender: No OFD packet to send [22:06:55]OFD Sender: No OFD packet to send [22:07:00]OFD Sender: No OFD packet to send [22:07:05]OFD Sender: No OFD packet to send [22:07:10]OFD Sender: No OFD packet to send [22:07:15]OFD Sender: No OFD packet to send [22:07:20]OFD Sender: No OFD packet to send [22:07:25]OFD Sender: No OFD packet to send [22:07:30]OFD Sender: No OFD packet to send [22:07:35]OFD Sender: No OFD packet to send [22:07:40]OFD Sender: No OFD packet to send [22:07:45]OFD Sender: No OFD packet to send [22:07:50]OFD Sender: No OFD packet to send [22:07:55]OFD Sender: No OFD packet to send [22:08:00]OFD Sender: No OFD packet to send [22:08:05]OFD Sender: No OFD packet to send [22:08:10]OFD Sender: No OFD packet to send [22:08:15]OFD Sender: No OFD packet to send [22:08:20]OFD Sender: No OFD packet to send [22:08:25]OFD Sender: No OFD packet to send [22:08:30]OFD Sender: No OFD packet to send [22:08:35]OFD Sender: No OFD packet to send [22:08:40]OFD Sender: No OFD packet to send [22:08:45]OFD Sender: No OFD packet to send [22:08:50]OFD Sender: No OFD packet to send [22:08:55]OFD Sender: No OFD packet to send [22:09:00]OFD Sender: No OFD packet to send [22:09:05]OFD Sender: No OFD packet to send [22:09:10]OFD Sender: No OFD packet to send [22:09:15]OFD Sender: No OFD packet to send [22:09:20]OFD Sender: No OFD packet to send [22:09:25]OFD Sender: No OFD packet to send [22:09:30]OFD Sender: No OFD packet to send [22:09:35]OFD Sender: No OFD packet to send [22:09:40]OFD Sender: No OFD packet to send [22:09:45]OFD Sender: No OFD packet to send [22:09:50]OFD Sender: No OFD packet to send [22:09:55]OFD Sender: No OFD packet to send [22:10:00]OFD Sender: No OFD packet to send [22:10:05]OFD Sender: No OFD packet to send [22:10:10]OFD Sender: No OFD packet to send [22:10:15]OFD Sender: No OFD packet to send [22:10:20]OFD Sender: No OFD packet to send [22:10:25]OFD Sender: No OFD packet to send [22:10:30]OFD Sender: No OFD packet to send [22:10:35]OFD Sender: No OFD packet to send [22:10:40]OFD Sender: No OFD packet to send [22:10:45]OFD Sender: No OFD packet to send [22:10:50]OFD Sender: No OFD packet to send [22:10:55]OFD Sender: No OFD packet to send [22:11:00]OFD Sender: No OFD packet to send [22:11:05]OFD Sender: No OFD packet to send [22:11:08]accept exits with 8 [22:11:08]New connection [22:11:08]New thread 3066936676 created [22:11:08]Thread 3067080036 joined [22:11:08]Waiting for new connection... [22:11:08] Sock 8.Parse request [22:11:08]Sock 8.Check first char [22:11:08]Sock 8.First char is OK [22:11:08]request: POST /json_proto HTTP/1.0 [22:11:08]Method: POST [22:11:08]URL: /json_proto [22:11:08]Method is POST - this is cgi request [22:11:08]url: /json_proto [22:11:08]query_string will be loaded in cgi processing [22:11:08]execute_cgi json_proto POST (null) [22:11:08]execute_cgi path=json_proto method=POST [22:11:08]POST find Content-Length [22:11:08]Host: 172.17.63.195:8080 [22:11:08]Content-Length: 677 [22:11:08]Content-Type: application/json [22:11:08] [22:11:08]POST finish read [22:11:08]Found Content-Length = 677 [22:11:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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:11:08]execute_script... [22:11:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "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:11:08]POST & json_proto [22:11:08]process_json_proto [22:11:08]json parsed OK: [22:11:08]protocol is kg_v1.0 [22:11:08]action value=close_receipt [22:11:08]process_action close_receipt [22:11:08]cmd_close_receipt [22:11:08]MH_GetDate [22:11:08]Write to MH i2c: F0 00 00 10 02 01 [22:11:08]Write i2c OK [22:11:08]MH_I2C_Read... [22:11:08]Read from MH i2c: F0 [22:11:08]MH_I2C_Read... [22:11:08]Read from MH i2c: F0 09 00 [22:11:08]MH_I2C_Read... [22:11:08]Read from MH i2c: F0 09 00 10 02 00 FD 68 1D 67 68 46 19 67 21 [22:11:08]GetLastDocTimeStamp 1729979867 [22:11:08]current date 1729980669 [22:11:08]FM_GetShiftState [22:11:08]SAM_PROTO_GetShiftState [22:11:08]wFMCommunicate request_size=4 [22:11:08]MH_SAM_APDU [22:11:08]CAPDU: 80 13 01 00 [22:11:08]Write to MH i2c: E2 08 00 11 02 80 13 01 00 00 00 00 00 90 [22:11:08]Write i2c OK [22:11:08]MH_I2C_Read... [22:11:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:08]Read from MH i2c: E2 [22:11:08]MH_I2C_Read... [22:11:08]Read from MH i2c: E2 0E 00 [22:11:08]MH_I2C_Read... [22:11:08]Read from MH i2c: E2 0E 00 11 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 9F [22:11:08]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [22:11:08]wFMCommunicate OK [22:11:08]SAM_PROTO_GetShiftState done [22:11:08]FM_GetShiftState done [22:11:08]opened in 1729900879 [22:11:08]opened+sec_in_day 1729987279 [22:11:08]quantity*price = 50010 [22:11:08]sum+1 = 50012 [22:11:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 458 26.10.2024 22:11 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201696 ФПД: 19117413718709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T221109&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201696&fm=19117413718709&tin=02508201610067®Number=0000000000091777&sum=50000 [22:11:09]StoreToDocumentArchive [22:11:09]shift 543 fd 201696 [22:11:09]save to /storage/0543/doc_00201696 [22:11:09]save last doc name /storage/0543/doc_00201696 to /storage/kkm_last_doc_name [22:11:09]save OK [22:11:09]Clear old archive folders... [22:11:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:11:09]tlvbuf is 000FCE90 [22:11:09]SAM_PROTO_ClearQueue [22:11:09]wFMCommunicate request_size=4 [22:11:09]MH_SAM_APDU [22:11:09]CAPDU: 80 09 00 00 [22:11:09]Write to MH i2c: E2 08 00 1E 02 80 09 00 00 00 00 00 00 92 [22:11:09]Write i2c OK [22:11:09]MH_I2C_Read... [22:11:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:11:09]Read from MH i2c: E2 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 03 00 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 03 00 1E 02 00 90 00 94 [22:11:09]RAPDU: 90 00 [22:11:09]wFMCommunicate OK [22:11:09]SAM_PROTO_ClearQueue done [22:11:09]KKMCreateOFDPacket [22:11:09]OFDProtocolAddRootSTLVToBuf [22:11:09]FM_MakeSignedData [22:11:09]FM_MakeSignedData [22:11:09]SAM_PROTO_SignData [22:11:09]wFMCommunicate request_size=4 [22:11:09]MH_SAM_APDU [22:11:09]CAPDU: 80 0D 01 02 [22:11:09]Write to MH i2c: E2 08 00 1F 02 80 0D 01 02 00 00 00 00 9A [22:11:09]Write i2c OK [22:11:09]MH_I2C_Read... [22:11:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:11:09]Read from MH i2c: E2 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 03 00 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 03 00 1F 02 00 90 00 95 [22:11:09]RAPDU: 90 00 [22:11:09]wFMCommunicate OK [22:11:09]wFMCommunicate request_size=255 [22:11:09]MH_SAM_APDU [22:11:09]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 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 CA 01 00 00 F4 03 04 00 FD 68 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E0 13 03 00 35 04 06 00 11 [22:11:09]Write to MH i2c: E2 02 01 20 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 CA 01 00 00 F4 03 04 00 FD 68 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E0 13 03 00 35 04 06 00 11 00 00 E3 [22:11:09]Write i2c OK [22:11:09]MH_I2C_Read... [22:11:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:09]Read from MH i2c: E2 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 03 00 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 03 00 20 02 00 90 00 96 [22:11:09]RAPDU: 90 00 [22:11:09]wFMCommunicate OK [22:11:09]wFMCommunicate request_size=10 [22:11:09]MH_SAM_APDU [22:11:09]CAPDU: 80 0D 02 02 05 63 1E A7 5A B5 [22:11:09]Write to MH i2c: E2 0D 00 21 02 80 0D 02 02 05 00 63 1E A7 5A B5 00 00 DE [22:11:09]Write i2c OK [22:11:09]MH_I2C_Read... [22:11:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:09]Read from MH i2c: E2 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 03 00 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 03 00 21 02 00 90 00 97 [22:11:09]RAPDU: 90 00 [22:11:09]wFMCommunicate OK [22:11:09]wFMCommunicate request_size=4 [22:11:09]MH_SAM_APDU [22:11:09]CAPDU: 80 0D 03 02 [22:11:09]Write to MH i2c: E2 08 00 22 02 80 0D 03 02 00 00 00 00 9F [22:11:09]Write i2c OK [22:11:09]MH_I2C_Read... [22:11:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:11:09]Read from MH i2c: E2 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 0B 00 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 0B 00 22 02 00 F2 69 0A FE A3 51 5F 1B 90 00 71 [22:11:09]RAPDU: F2 69 0A FE A3 51 5F 1B 90 00 [22:11:09]wFMCommunicate OK [22:11:09]SAM_PROTO_SignData done [22:11:09]FM_MakeSignedData done [22:11:09]CreateOFDProtocolMessage [22:11:09]wFMCommunicate request_size=4 [22:11:09]MH_SAM_APDU [22:11:09]CAPDU: 80 11 00 00 [22:11:09]Write to MH i2c: E2 08 00 23 02 80 11 00 00 00 00 00 00 9F [22:11:09]Write i2c OK [22:11:09]MH_I2C_Read... [22:11:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:09]Read from MH i2c: E2 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 17 00 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 17 00 23 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 F4 [22:11:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [22:11:09]wFMCommunicate OK [22:11:09]CreateOFDProtocolMessage done [22:11:09]OFDSenderStorePacket 201696 [22:11:09]StoreOFDPacket docnum=201696 [22:11:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 BF 62 07 01 EE 37 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 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 CA 01 00 00 F4 03 04 00 FD 68 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E0 13 03 00 35 04 06 00 11 63 1E A7 5A B5 F2 69 0A FE A3 51 5F 1B [22:11:09]CheckFolder [22:11:09]dirname=/storage/ofd_packets [22:11:09]CheckFolder done [22:11:09]ProducePacketName [22:11:09]name=ofd_packets/00201696 [22:11:09]NVStorageSaveData ofd_packets/00201696 [22:11:09]File name is /storage/ofd_packets/00201696 [22:11:09]Write 301 bytes [22:11:09]NVStorageSaveData done [22:11:09]OFDSenderStorePacket done [22:11:09]KKMCreateOFDPacket done [22:11:09]NVStorageSaveData kkm_last_timestamp [22:11:09]File name is /storage/kkm_last_timestamp [22:11:09]Write 4 bytes [22:11:09]NVStorageSaveData done [22:11:09]ExternCall_PrintAddStr [22:11:09]wPrintStart [22:11:09]Write to MH i2c: 01 00 00 24 02 26 [22:11:09]Write i2c OK [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: 01 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: 01 07 00 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: 01 07 00 24 02 00 00 00 00 00 FF 0F 3B [22:11:09]RasterBufferAndPrint [22:11:09]line Счет N : (1)449457 [22:11:09]line ИНН: 02508201610067 [22:11:09]line Контрольно-Кассовый Чек [22:11:09]line ПРОДАЖА [22:11:09]line ТРК (МРК, ГНК) : 61 [22:11:09]line Товар: 2710124500 [22:11:09]line Аи-95-К-3 [22:11:09]line 6.740 * 74.20 [22:11:09]line = 500.11 [22:11:09]line НДС 12% НСП 1% [22:11:09]line > о реализуемом товаре [22:11:09]line ОКРУГЛЕНИЕ: -0.11 [22:11:09]line ИТОГО: 500.00 [22:11:09]line Внесено: 500.00 [22:11:09]line СДАЧА: 0.00 [22:11:09]line НСП 1% : 4.43 [22:11:09]line НДС 12% : 53.11 [22:11:09]line Наличными: 500.00 [22:11:09]line Безнал.: 0.00 [22:11:09]line Место: АЗС № 171 "Партнер Нефть" [22:11:09]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [22:11:09]line СНО: Общий режим [22:11:09]line Чек 458 26.10.2024 22:11 [22:11:09]line Смена: 543 ФФД: 1.0 [22:11:09]line ЗНМ: 0300000109 [22:11:09]line РНМ: 0000000000091777 [22:11:09]line Версия ККМ: 001 [22:11:09]line ФМ: 0000000000871756 [22:11:09]line ФД: 201696 [22:11:09]line ФПД: 19117413718709 [22:11:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T221109&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201696&fm=19117413718709&tin=02508201610067®Number=0000000000091777&sum=50000 [22:11:10]OFD Sender: Processing packet 201696 [packets to send 112, broken 111] [22:11:10]ProducePacketName [22:11:10]name=ofd_packets/00201696 [22:11:10]OFD Sender: To server: pG, [22:11:10]CommunicateWithHost lk.salyk.kg:30040 [22:11:10]ConnectInit lk.salyk.kg [22:11:10]written 0, free lines is 4095 [22:11:10]Connected sock=10 [22:11:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 BF 62 07 01 EE 37 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 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B 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 CA 01 00 00 F4 03 04 00 FD 68 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E0 13 03 00 35 04 06 00 11 63 1E A7 5A B5 F2 69 0A FE A3 51 5F 1B [22:11:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 EC 6E 47 00 F5 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E0 13 03 00 F4 03 04 00 A5 14 1D 67 B6 04 01 00 00 87 D5 69 8C EB C8 92 FE [22:11:10]CommunicateWithHost err = 0 [22:11:10]CheckOFDResponse [22:11:10]1017 (14) - 77093643461234 [22:11:10]1041 (16) - 0000000000871756 [22:11:10]1040 (4) - 201696 [22:11:10]1012 (4) - 26.10.2024 16:11 [22:11:10]1206 (1) - 0 [22:11:10]OFD Sender: Remove packet 201696 [22:11:10]ProducePacketName [22:11:10]name=ofd_packets/00201696 [22:11:10]NVStorageDeleteData [22:11:10]Write to MH i2c: 01 00 00 4F 02 51 [22:11:10]Write i2c OK [22:11:10]MH_I2C_Read... [22:11:10]Read from MH i2c: 01 [22:11:10]MH_I2C_Read... [22:11:10]Read from MH i2c: 01 07 00 [22:11:10]MH_I2C_Read... [22:11:10]Read from MH i2c: 01 07 00 4F 02 00 00 00 00 00 91 0C F5 [22:11:10]RasterBufferAndPrint [22:11:10]line [22:11:10]line [22:11:10]line [22:11:10]line [22:11:10]line [22:11:10]written 0, free lines is 3222 [22:11:10]MH_Cut [22:11:10]Write to MH i2c: D1 01 00 56 02 01 2A [22:11:10]Write i2c OK [22:11:10]MH_I2C_Read... [22:11:10]Read from MH i2c: D1 [22:11:10]MH_I2C_Read... [22:11:10]Read from MH i2c: D1 01 00 [22:11:10]MH_I2C_Read... [22:11:10]Read from MH i2c: D1 01 00 56 02 00 29 [22:11:10]Write to MH i2c: 01 00 00 57 02 59 [22:11:10]Write i2c OK [22:11:10]MH_I2C_Read... [22:11:11]OFD Sender: No OFD packet to send [22:11:11]*** Cut start [22:11:11]*** Purtial cut [22:11:11]*** CUTSNS_PIN = 0 [22:11:11]*** Stage 1: CUTSNS_PIN = 1 [22:11:13]Read from MH i2c: 01 [22:11:13]MH_I2C_Read... [22:11:13]*** Stop cut motor [22:11:13]*** Cut end [22:11:13]Read from MH i2c: 01 07 00 [22:11:13]MH_I2C_Read... [22:11:13]Read from MH i2c: 01 07 00 57 02 00 00 00 00 00 FF 0F 6E [22:11:13]process_action close_receipt done [22:11:13]requested_data is exist [22:11:13]produce_requested_data [22:11:13]requested_item fm.sn is exist - process it [22:11:13]wFMCommunicate request_size=4 [22:11:13]MH_SAM_APDU [22:11:13]CAPDU: 80 11 00 00 [22:11:13]Write to MH i2c: E2 08 00 58 02 80 11 00 00 00 00 00 00 D4 [22:11:13]Write i2c OK [22:11:13]MH_I2C_Read... [22:11:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:13]Read from MH i2c: E2 [22:11:13]MH_I2C_Read... [22:11:13]Read from MH i2c: E2 17 00 [22:11:13]MH_I2C_Read... [22:11:13]Read from MH i2c: E2 17 00 58 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 29 [22:11:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [22:11:13]wFMCommunicate OK [22:11:13]requested_item fd.num is exist - process it [22:11:13]SAM_PROTO_GetFieldsCounters [22:11:13]wFMCommunicate request_size=4 [22:11:13]MH_SAM_APDU [22:11:13]CAPDU: 80 13 00 00 [22:11:13]Write to MH i2c: E2 08 00 59 02 80 13 00 00 00 00 00 00 D7 [22:11:13]Write i2c OK [22:11:13]MH_I2C_Read... [22:11:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:11:13]Read from MH i2c: E2 [22:11:13]MH_I2C_Read... [22:11:13]Read from MH i2c: E2 62 00 [22:11:13]MH_I2C_Read... [22:11:13]Read from MH i2c: E2 62 00 59 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E0 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CA 01 00 00 5E 04 04 00 CA 01 00 00 57 04 04 00 CB 01 00 00 19 04 04 00 00 00 00 00 90 00 78 [22:11:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E0 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CA 01 00 00 5E 04 04 00 CA 01 00 00 57 04 04 00 CB 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:11:13]wFMCommunicate OK [22:11:13]SAM_PROTO_GetFieldsCounters done [22:11:13]requested_item shift.num is exist - process it [22:11:13]requested_item shift.opened is exist - process it [22:11:13]req_shift_opened [22:11:13]FM_GetShiftState [22:11:13]SAM_PROTO_GetShiftState [22:11:13]wFMCommunicate request_size=4 [22:11:13]MH_SAM_APDU [22:11:13]CAPDU: 80 13 01 00 [22:11:13]Write to MH i2c: E2 08 00 5A 02 80 13 01 00 00 00 00 00 D9 [22:11:13]Write i2c OK [22:11:13]MH_I2C_Read... [22:11:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:13]Read from MH i2c: E2 [22:11:13]MH_I2C_Read... [22:11:13]Read from MH i2c: E2 0E 00 [22:11:13]MH_I2C_Read... [22:11:13]Read from MH i2c: E2 0E 00 5A 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 E8 [22:11:13]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [22:11:13]wFMCommunicate OK [22:11:13]SAM_PROTO_GetShiftState done [22:11:13]FM_GetShiftState done [22:11:13]req_shift_opened done [22:11:13]requested_item shift.open_date is exist - process it [22:11:13]req_shift_open_date [22:11:13]req_shift_open_date done [22:11:13]produce_requested_data done [22:11:13]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201696,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [22:11:13]process_action_free close_receipt [22:11:13]json_value_free [22:11:13]json_value_free done [22:11:13]process_json_proto returns [22:11:13]Send response to host [22:11:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201696,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [22:11:13]free response buf [22:11:13]execute_script done [22:11:13]execute_script returns [22:11:13]free content buf [22:11:13]Sock 8.Close socket [22:11:13]Sock 8.Thread stoped [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: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:03]accept exits with 9 [22:13:03]New connection [22:13:03]New thread 3067080036 created [22:13:03]Thread 3066936676 joined [22:13:03]Waiting for new connection... [22:13:03] Sock 9.Parse request [22:13:03]Sock 9.Check first char [22:13:03]Sock 9.First char is OK [22:13:03]request: POST /json_proto HTTP/1.0 [22:13:03]Method: POST [22:13:03]URL: /json_proto [22:13:03]Method is POST - this is cgi request [22:13:03]url: /json_proto [22:13:03]query_string will be loaded in cgi processing [22:13:03]execute_cgi json_proto POST (null) [22:13:03]execute_cgi path=json_proto method=POST [22:13:03]POST find Content-Length [22:13:03]Host: 172.17.63.195:8080 [22:13:03]Content-Length: 766 [22:13:03]Content-Type: application/json [22:13:03] [22:13:03]POST finish read [22:13:03]Found Content-Length = 766 [22:13:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:03]execute_script... [22:13: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)449456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:03]POST & json_proto [22:13:03]process_json_proto [22:13:03]json parsed OK: [22:13:03]protocol is kg_v1.0 [22:13:03]action value=close_receipt [22:13:03]process_action close_receipt [22:13:03]cmd_close_receipt [22:13:03]MH_GetDate [22:13:03]Write to MH i2c: F0 00 00 5B 02 4C [22:13:03]Write i2c OK [22:13:03]MH_I2C_Read... [22:13:03]Read from MH i2c: F0 [22:13:03]MH_I2C_Read... [22:13:03]Read from MH i2c: F0 09 00 [22:13:03]MH_I2C_Read... [22:13:03]Read from MH i2c: F0 09 00 5B 02 00 70 69 1D 67 68 46 19 67 E0 [22:13:03]GetLastDocTimeStamp 1729980669 [22:13:03]current date 1729980784 [22:13:03]FM_GetShiftState [22:13:03]SAM_PROTO_GetShiftState [22:13:03]wFMCommunicate request_size=4 [22:13:03]MH_SAM_APDU [22:13:03]CAPDU: 80 13 01 00 [22:13:03]Write to MH i2c: E2 08 00 5C 02 80 13 01 00 00 00 00 00 DB [22:13:03]Write i2c OK [22:13:03]MH_I2C_Read... [22:13:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:03]Read from MH i2c: E2 [22:13:03]MH_I2C_Read... [22:13:03]Read from MH i2c: E2 0E 00 [22:13:03]MH_I2C_Read... [22:13:03]Read from MH i2c: E2 0E 00 5C 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 EA [22:13:03]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [22:13:03]wFMCommunicate OK [22:13:03]SAM_PROTO_GetShiftState done [22:13:03]FM_GetShiftState done [22:13:03]opened in 1729900879 [22:13:03]opened+sec_in_day 1729987279 [22:13:03]quantity*price = 50041 [22:13:03]sum+1 = 50042 [22:13:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 459 26.10.2024 22:13 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201697 ФПД: 121475218907480 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T221304&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201697&fm=121475218907480&tin=02508201610067®Number=0000000000091777&sum=50041 [22:13:04]StoreToDocumentArchive [22:13:04]shift 543 fd 201697 [22:13:04]save to /storage/0543/doc_00201697 [22:13:04]save last doc name /storage/0543/doc_00201697 to /storage/kkm_last_doc_name [22:13:04]save OK [22:13:04]Clear old archive folders... [22:13:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:13:04]tlvbuf is 00083FB0 [22:13:04]SAM_PROTO_ClearQueue [22:13:04]wFMCommunicate request_size=4 [22:13:04]MH_SAM_APDU [22:13:04]CAPDU: 80 09 00 00 [22:13:04]Write to MH i2c: E2 08 00 69 02 80 09 00 00 00 00 00 00 DD [22:13:04]Write i2c OK [22:13:04]MH_I2C_Read... [22:13:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:13:04]Read from MH i2c: E2 [22:13:04]MH_I2C_Read... [22:13:04]Read from MH i2c: E2 03 00 [22:13:04]MH_I2C_Read... [22:13:04]Read from MH i2c: E2 03 00 69 02 00 90 00 DF [22:13:04]RAPDU: 90 00 [22:13:04]wFMCommunicate OK [22:13:04]SAM_PROTO_ClearQueue done [22:13:04]KKMCreateOFDPacket [22:13:04]OFDProtocolAddRootSTLVToBuf [22:13:04]FM_MakeSignedData [22:13:04]FM_MakeSignedData [22:13:04]SAM_PROTO_SignData [22:13:04]wFMCommunicate request_size=4 [22:13:04]MH_SAM_APDU [22:13:04]CAPDU: 80 0D 01 02 [22:13:04]Write to MH i2c: E2 08 00 6A 02 80 0D 01 02 00 00 00 00 E5 [22:13:04]Write i2c OK [22:13:04]MH_I2C_Read... [22:13:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:13:05]Read from MH i2c: E2 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: E2 03 00 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: E2 03 00 6A 02 00 90 00 E0 [22:13:05]RAPDU: 90 00 [22:13:05]wFMCommunicate OK [22:13:05]wFMCommunicate request_size=255 [22:13:05]MH_SAM_APDU [22:13: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 32 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 79 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 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 01 00 00 F4 03 04 00 70 69 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E1 13 03 00 35 04 06 00 6E [22:13:05]Write to MH i2c: E2 02 01 6B 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 32 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 79 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 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 01 00 00 F4 03 04 00 70 69 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E1 13 03 00 35 04 06 00 6E 00 00 7A [22:13:05]Write i2c OK [22:13:05]MH_I2C_Read... [22:13:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:05]Read from MH i2c: E2 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: E2 03 00 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: E2 03 00 6B 02 00 90 00 E1 [22:13:05]RAPDU: 90 00 [22:13:05]wFMCommunicate OK [22:13:05]wFMCommunicate request_size=10 [22:13:05]MH_SAM_APDU [22:13:05]CAPDU: 80 0D 02 02 05 7B 27 45 A1 58 [22:13:05]Write to MH i2c: E2 0D 00 6C 02 80 0D 02 02 05 00 7B 27 45 A1 58 00 00 D2 [22:13:05]Write i2c OK [22:13:05]MH_I2C_Read... [22:13:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:05]Read from MH i2c: E2 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: E2 03 00 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: E2 03 00 6C 02 00 90 00 E2 [22:13:05]RAPDU: 90 00 [22:13:05]wFMCommunicate OK [22:13:05]wFMCommunicate request_size=4 [22:13:05]MH_SAM_APDU [22:13:05]CAPDU: 80 0D 03 02 [22:13:05]Write to MH i2c: E2 08 00 6D 02 80 0D 03 02 00 00 00 00 EA [22:13:05]Write i2c OK [22:13:05]MH_I2C_Read... [22:13:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:13:05]Read from MH i2c: E2 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: E2 0B 00 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: E2 0B 00 6D 02 00 E1 B0 C2 41 F2 D3 32 8E 90 00 04 [22:13:05]RAPDU: E1 B0 C2 41 F2 D3 32 8E 90 00 [22:13:05]wFMCommunicate OK [22:13:05]SAM_PROTO_SignData done [22:13:05]FM_MakeSignedData done [22:13:05]CreateOFDProtocolMessage [22:13:05]wFMCommunicate request_size=4 [22:13:05]MH_SAM_APDU [22:13:05]CAPDU: 80 11 00 00 [22:13:05]Write to MH i2c: E2 08 00 6E 02 80 11 00 00 00 00 00 00 EA [22:13:05]Write i2c OK [22:13:05]MH_I2C_Read... [22:13:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:05]Read from MH i2c: E2 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: E2 17 00 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: E2 17 00 6E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 3F [22:13:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [22:13:05]wFMCommunicate OK [22:13:05]CreateOFDProtocolMessage done [22:13:05]OFDSenderStorePacket 201697 [22:13:05]StoreOFDPacket docnum=201697 [22:13:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 FC E1 07 01 80 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 32 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 79 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 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 01 00 00 F4 03 04 00 70 69 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E1 13 03 00 35 04 06 00 6E 7B 27 45 A1 58 E1 B0 C2 41 F2 D3 32 8E [22:13:05]CheckFolder [22:13:05]dirname=/storage/ofd_packets [22:13:05]CheckFolder done [22:13:05]ProducePacketName [22:13:05]name=ofd_packets/00201697 [22:13:05]NVStorageSaveData ofd_packets/00201697 [22:13:05]File name is /storage/ofd_packets/00201697 [22:13:05]Write 301 bytes [22:13:05]NVStorageSaveData done [22:13:05]OFDSenderStorePacket done [22:13:05]KKMCreateOFDPacket done [22:13:05]NVStorageSaveData kkm_last_timestamp [22:13:05]File name is /storage/kkm_last_timestamp [22:13:05]Write 4 bytes [22:13:05]NVStorageSaveData done [22:13:05]ExternCall_PrintAddStr [22:13:05]wPrintStart [22:13:05]Write to MH i2c: 01 00 00 6F 02 71 [22:13:05]Write i2c OK [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: 01 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: 01 07 00 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: 01 07 00 6F 02 00 00 00 00 00 FF 0F 86 [22:13:05]RasterBufferAndPrint [22:13:05]line Счет N : (1)449456 [22:13:05]line ИНН: 02508201610067 [22:13:05]line Контрольно-Кассовый Чек [22:13:05]line ПРОДАЖА [22:13:05]line ТРК (МРК, ГНК) : 52 [22:13:05]line Товар: 2710124130 [22:13:05]line Аи-92-К-2 [22:13:05]line 7.480 * 66.90 [22:13:05]line = 500.41 [22:13:05]line НДС 12% НСП 1% [22:13:05]line > о реализуемом товаре [22:13:05]line ИТОГО: 500.41 [22:13:05]line НСП 1% : 4.43 [22:13:05]line НДС 12% : 53.14 [22:13:05]line Наличными: 0.00 [22:13:05]line Безнал.: 500.41 [22:13:05]line Место: АЗС № 171 "Партнер Нефть" [22:13:05]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [22:13:05]line СНО: Общий режим [22:13:05]line Чек 459 26.10.2024 22:13 [22:13:05]line Смена: 543 ФФД: 1.0 [22:13:05]line ЗНМ: 0300000109 [22:13:05]line РНМ: 0000000000091777 [22:13:05]line Версия ККМ: 001 [22:13:05]line Платежная система: Mbank [22:13:05]line ФМ: 0000000000871756 [22:13:05]line ФД: 201697 [22:13:05]line ФПД: 121475218907480 [22:13:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T221304&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201697&fm=121475218907480&tin=02508201610067®Number=0000000000091777&sum=50041 [22:13:05]written 0, free lines is 4095 [22:13:05]OFD Sender: Processing packet 201697 [packets to send 112, broken 111] [22:13:05]ProducePacketName [22:13:05]name=ofd_packets/00201697 [22:13:05]OFD Sender: To server: pG, [22:13:05]CommunicateWithHost lk.salyk.kg:30040 [22:13:05]ConnectInit lk.salyk.kg [22:13:05]Connected sock=10 [22:13:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 FC E1 07 01 80 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 32 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 79 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 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 01 00 00 F4 03 04 00 70 69 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E1 13 03 00 35 04 06 00 6E 7B 27 45 A1 58 E1 B0 C2 41 F2 D3 32 8E [22:13:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 67 DF 47 00 5A F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E1 13 03 00 F4 03 04 00 18 15 1D 67 B6 04 01 00 00 11 D6 C0 27 76 3E 13 FF [22:13:06]CommunicateWithHost err = 0 [22:13:06]CheckOFDResponse [22:13:06]1017 (14) - 77093643461234 [22:13:06]1041 (16) - 0000000000871756 [22:13:06]1040 (4) - 201697 [22:13:06]1012 (4) - 26.10.2024 16:13 [22:13:06]1206 (1) - 0 [22:13:06]OFD Sender: Remove packet 201697 [22:13:06]ProducePacketName [22:13:06]name=ofd_packets/00201697 [22:13:06]NVStorageDeleteData [22:13:06]Write to MH i2c: 01 00 00 98 02 9A [22:13:06]Write i2c OK [22:13:06]MH_I2C_Read... [22:13:06]Read from MH i2c: 01 [22:13:06]MH_I2C_Read... [22:13:06]Read from MH i2c: 01 07 00 [22:13:06]MH_I2C_Read... [22:13:06]Read from MH i2c: 01 07 00 98 02 00 00 00 00 00 BA 0C 67 [22:13:06]RasterBufferAndPrint [22:13:06]line [22:13:06]line [22:13:06]line [22:13:06]line [22:13:06]line [22:13:06]written 0, free lines is 3263 [22:13:06]MH_Cut [22:13:06]Write to MH i2c: D1 01 00 9F 02 01 73 [22:13:06]Write i2c OK [22:13:06]MH_I2C_Read... [22:13:06]Read from MH i2c: D1 [22:13:06]MH_I2C_Read... [22:13:06]Read from MH i2c: D1 01 00 [22:13:06]MH_I2C_Read... [22:13:06]Read from MH i2c: D1 01 00 9F 02 00 72 [22:13:06]Write to MH i2c: 01 00 00 A0 02 A2 [22:13:06]Write i2c OK [22:13:06]MH_I2C_Read... [22:13:06]OFD Sender: No OFD packet to send [22:13:07]*** Cut start [22:13:07]*** Purtial cut [22:13:07]*** Stage 1: CUTSNS_PIN = 1 [22:13:07]Read from MH i2c: 01 [22:13:07]MH_I2C_Read... [22:13:07]*** Stop cut motor [22:13:07]*** Cut end [22:13:07]Read from MH i2c: 01 07 00 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: 01 07 00 A0 02 00 00 00 00 00 FF 0F B7 [22:13:07]process_action close_receipt done [22:13:07]requested_data is exist [22:13:07]produce_requested_data [22:13:07]requested_item fm.sn is exist - process it [22:13:07]wFMCommunicate request_size=4 [22:13:07]MH_SAM_APDU [22:13:07]CAPDU: 80 11 00 00 [22:13:07]Write to MH i2c: E2 08 00 A1 02 80 11 00 00 00 00 00 00 1D [22:13:07]Write i2c OK [22:13:07]MH_I2C_Read... [22:13:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:07]Read from MH i2c: E2 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: E2 17 00 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: E2 17 00 A1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 72 [22:13:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [22:13:07]wFMCommunicate OK [22:13:07]requested_item fd.num is exist - process it [22:13:07]SAM_PROTO_GetFieldsCounters [22:13:07]wFMCommunicate request_size=4 [22:13:07]MH_SAM_APDU [22:13:07]CAPDU: 80 13 00 00 [22:13:07]Write to MH i2c: E2 08 00 A2 02 80 13 00 00 00 00 00 00 20 [22:13:07]Write i2c OK [22:13:07]MH_I2C_Read... [22:13:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:13:07]Read from MH i2c: E2 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: E2 62 00 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: E2 62 00 A2 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E1 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CB 01 00 00 5E 04 04 00 CB 01 00 00 57 04 04 00 CC 01 00 00 19 04 04 00 00 00 00 00 90 00 C5 [22:13:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E1 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CB 01 00 00 5E 04 04 00 CB 01 00 00 57 04 04 00 CC 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:13:07]wFMCommunicate OK [22:13:07]SAM_PROTO_GetFieldsCounters done [22:13:07]requested_item shift.num is exist - process it [22:13:07]requested_item shift.opened is exist - process it [22:13:07]req_shift_opened [22:13:07]FM_GetShiftState [22:13:07]SAM_PROTO_GetShiftState [22:13:07]wFMCommunicate request_size=4 [22:13:07]MH_SAM_APDU [22:13:07]CAPDU: 80 13 01 00 [22:13:07]Write to MH i2c: E2 08 00 A3 02 80 13 01 00 00 00 00 00 22 [22:13:07]Write i2c OK [22:13:07]MH_I2C_Read... [22:13:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:07]Read from MH i2c: E2 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: E2 0E 00 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: E2 0E 00 A3 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 31 [22:13:07]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [22:13:07]wFMCommunicate OK [22:13:07]SAM_PROTO_GetShiftState done [22:13:07]FM_GetShiftState done [22:13:07]req_shift_opened done [22:13:07]requested_item shift.open_date is exist - process it [22:13:07]req_shift_open_date [22:13:07]req_shift_open_date done [22:13:07]produce_requested_data done [22:13:07]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201697,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [22:13:07]process_action_free close_receipt [22:13:07]json_value_free [22:13:07]json_value_free done [22:13:07]process_json_proto returns [22:13:07]Send response to host [22:13:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201697,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [22:13:07]free response buf [22:13:07]execute_script done [22:13:07]execute_script returns [22:13:07]free content buf [22:13:07]Sock 9.Close socket [22:13:07]Sock 9.Thread stoped [22:13:07]accept exits with 8 [22:13:07]New connection [22:13:07]New thread 3066936676 created [22:13:07]Thread 3067080036 joined [22:13:07]Waiting for new connection... [22:13:07] Sock 8.Parse request [22:13:07]Sock 8.Check first char [22:13:07]Sock 8.First char is OK [22:13:07]request: POST /json_proto HTTP/1.0 [22:13:07]Method: POST [22:13:07]URL: /json_proto [22:13:07]Method is POST - this is cgi request [22:13:07]url: /json_proto [22:13:07]query_string will be loaded in cgi processing [22:13:07]execute_cgi json_proto POST (null) [22:13:07]execute_cgi path=json_proto method=POST [22:13:07]POST find Content-Length [22:13:07]Host: 172.17.63.195:8080 [22:13:07]Content-Length: 684 [22:13:07]Content-Type: application/json [22:13:07] [22:13:07]POST finish read [22:13:07]Found Content-Length = 684 [22:13:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 200.140, "sum" : 15250.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 15250.00, "total" : 15250.00, "payments": [ { "type": 0, "sum" : 15250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:07]execute_script... [22:13:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 200.140, "sum" : 15250.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 15250.00, "total" : 15250.00, "payments": [ { "type": 0, "sum" : 15250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:07]POST & json_proto [22:13:07]process_json_proto [22:13:07]json parsed OK: [22:13:07]protocol is kg_v1.0 [22:13:07]action value=close_receipt [22:13:07]process_action close_receipt [22:13:07]cmd_close_receipt [22:13:07]MH_GetDate [22:13:07]Write to MH i2c: F0 00 00 A4 02 95 [22:13:07]Write i2c OK [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: F0 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: F0 09 00 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: F0 09 00 A4 02 00 75 69 1D 67 68 46 19 67 2E [22:13:07]GetLastDocTimeStamp 1729980784 [22:13:07]current date 1729980789 [22:13:07]FM_GetShiftState [22:13:07]SAM_PROTO_GetShiftState [22:13:07]wFMCommunicate request_size=4 [22:13:07]MH_SAM_APDU [22:13:07]CAPDU: 80 13 01 00 [22:13:07]Write to MH i2c: E2 08 00 A5 02 80 13 01 00 00 00 00 00 24 [22:13:07]Write i2c OK [22:13:07]MH_I2C_Read... [22:13:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:07]Read from MH i2c: E2 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: E2 0E 00 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: E2 0E 00 A5 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 33 [22:13:07]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [22:13:07]wFMCommunicate OK [22:13:07]SAM_PROTO_GetShiftState done [22:13:07]FM_GetShiftState done [22:13:07]opened in 1729900879 [22:13:07]opened+sec_in_day 1729987279 [22:13:07]quantity*price = 1525066 [22:13:07]sum+1 = 1525068 [22:13:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 15250.00 Внесено: 15250.00 СДАЧА: 0.00 НСП 1% : 134.96 НДС 12% : 1619.54 Наличными: 15250.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 460 26.10.2024 22:13 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201698 ФПД: 201940808964230 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T221309&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201698&fm=201940808964230&tin=02508201610067®Number=0000000000091777&sum=1525000 [22:13:09]StoreToDocumentArchive [22:13:09]shift 543 fd 201698 [22:13:09]save to /storage/0543/doc_00201698 [22:13:09]save last doc name /storage/0543/doc_00201698 to /storage/kkm_last_doc_name [22:13:09]save OK [22:13:09]Clear old archive folders... [22:13:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:13:09]tlvbuf is 000D85F0 [22:13:09]SAM_PROTO_ClearQueue [22:13:09]wFMCommunicate request_size=4 [22:13:09]MH_SAM_APDU [22:13:09]CAPDU: 80 09 00 00 [22:13:09]Write to MH i2c: E2 08 00 B2 02 80 09 00 00 00 00 00 00 26 [22:13:09]Write i2c OK [22:13:09]MH_I2C_Read... [22:13:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:13:09]Read from MH i2c: E2 [22:13:09]MH_I2C_Read... [22:13:09]Read from MH i2c: E2 03 00 [22:13:09]MH_I2C_Read... [22:13:09]Read from MH i2c: E2 03 00 B2 02 00 90 00 28 [22:13:09]RAPDU: 90 00 [22:13:09]wFMCommunicate OK [22:13:09]SAM_PROTO_ClearQueue done [22:13:09]KKMCreateOFDPacket [22:13:09]OFDProtocolAddRootSTLVToBuf [22:13:09]FM_MakeSignedData [22:13:09]FM_MakeSignedData [22:13:09]SAM_PROTO_SignData [22:13:09]wFMCommunicate request_size=4 [22:13:09]MH_SAM_APDU [22:13:09]CAPDU: 80 0D 01 02 [22:13:09]Write to MH i2c: E2 08 00 B3 02 80 0D 01 02 00 00 00 00 2E [22:13:09]Write i2c OK [22:13:09]MH_I2C_Read... [22:13:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:13:09]Read from MH i2c: E2 [22:13:09]MH_I2C_Read... [22:13:09]Read from MH i2c: E2 03 00 [22:13:09]MH_I2C_Read... [22:13:09]Read from MH i2c: E2 03 00 B3 02 00 90 00 29 [22:13:09]RAPDU: 90 00 [22:13:09]wFMCommunicate OK [22:13:09]wFMCommunicate request_size=255 [22:13:09]MH_SAM_APDU [22:13:09]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 32 FF 03 08 00 03 CC 0D 03 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4B 45 17 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 45 17 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 34 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 78 02 00 00 00 07 04 06 00 08 45 17 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 01 00 00 F4 03 04 00 75 69 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E2 13 03 00 35 04 06 00 B7 AA 02 2F [22:13:09]Write to MH i2c: E2 02 01 B4 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 CC 0D 03 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4B 45 17 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 45 17 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 34 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 78 02 00 00 00 07 04 06 00 08 45 17 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 01 00 00 F4 03 04 00 75 69 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E2 13 03 00 35 04 06 00 B7 AA 02 2F 00 00 9E [22:13:09]Write i2c OK [22:13:09]MH_I2C_Read... [22:13:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:09]Read from MH i2c: E2 [22:13:09]MH_I2C_Read... [22:13:09]Read from MH i2c: E2 03 00 [22:13:09]MH_I2C_Read... [22:13:09]Read from MH i2c: E2 03 00 B4 02 00 90 00 2A [22:13:09]RAPDU: 90 00 [22:13:09]wFMCommunicate OK [22:13:09]wFMCommunicate request_size=7 [22:13:09]MH_SAM_APDU [22:13:09]CAPDU: 80 0D 02 02 02 18 86 [22:13:09]Write to MH i2c: E2 0A 00 B5 02 80 0D 02 02 02 00 18 86 00 00 D3 [22:13:09]Write i2c OK [22:13:09]MH_I2C_Read... [22:13:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:09]Read from MH i2c: E2 [22:13:09]MH_I2C_Read... [22:13:09]Read from MH i2c: E2 03 00 [22:13:09]MH_I2C_Read... [22:13:09]Read from MH i2c: E2 03 00 B5 02 00 90 00 2B [22:13:09]RAPDU: 90 00 [22:13:09]wFMCommunicate OK [22:13:09]wFMCommunicate request_size=4 [22:13:09]MH_SAM_APDU [22:13:09]CAPDU: 80 0D 03 02 [22:13:09]Write to MH i2c: E2 08 00 B6 02 80 0D 03 02 00 00 00 00 33 [22:13:09]Write i2c OK [22:13:09]MH_I2C_Read... [22:13:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:13:09]Read from MH i2c: E2 [22:13:09]MH_I2C_Read... [22:13:09]Read from MH i2c: E2 0B 00 [22:13:09]MH_I2C_Read... [22:13:09]Read from MH i2c: E2 0B 00 B6 02 00 6D C4 CA 11 D0 2F 59 0D 90 00 A5 [22:13:09]RAPDU: 6D C4 CA 11 D0 2F 59 0D 90 00 [22:13:09]wFMCommunicate OK [22:13:09]SAM_PROTO_SignData done [22:13:09]FM_MakeSignedData done [22:13:09]CreateOFDProtocolMessage [22:13:09]wFMCommunicate request_size=4 [22:13:09]MH_SAM_APDU [22:13:09]CAPDU: 80 11 00 00 [22:13:09]Write to MH i2c: E2 08 00 B7 02 80 11 00 00 00 00 00 00 33 [22:13:09]Write i2c OK [22:13:09]MH_I2C_Read... [22:13:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:10]Read from MH i2c: E2 [22:13:10]MH_I2C_Read... [22:13:10]Read from MH i2c: E2 17 00 [22:13:10]MH_I2C_Read... [22:13:10]Read from MH i2c: E2 17 00 B7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 88 [22:13:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [22:13:10]wFMCommunicate OK [22:13:10]CreateOFDProtocolMessage done [22:13:10]OFDSenderStorePacket 201698 [22:13:10]StoreOFDPacket docnum=201698 [22:13:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 3E 89 04 01 7E D3 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 32 FF 03 08 00 03 CC 0D 03 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4B 45 17 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 45 17 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 34 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 78 02 00 00 00 07 04 06 00 08 45 17 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 01 00 00 F4 03 04 00 75 69 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E2 13 03 00 35 04 06 00 B7 AA 02 2F 18 86 6D C4 CA 11 D0 2F 59 0D [22:13:10]CheckFolder [22:13:10]dirname=/storage/ofd_packets [22:13:10]CheckFolder done [22:13:10]ProducePacketName [22:13:10]name=ofd_packets/00201698 [22:13:10]NVStorageSaveData ofd_packets/00201698 [22:13:10]File name is /storage/ofd_packets/00201698 [22:13:10]Write 298 bytes [22:13:10]NVStorageSaveData done [22:13:10]OFDSenderStorePacket done [22:13:10]KKMCreateOFDPacket done [22:13:10]NVStorageSaveData kkm_last_timestamp [22:13:10]File name is /storage/kkm_last_timestamp [22:13:10]Write 4 bytes [22:13:10]NVStorageSaveData done [22:13:10]ExternCall_PrintAddStr [22:13:10]wPrintStart [22:13:10]Write to MH i2c: 01 00 00 B8 02 BA [22:13:10]Write i2c OK [22:13:10]MH_I2C_Read... [22:13:10]Read from MH i2c: 01 [22:13:10]MH_I2C_Read... [22:13:10]Read from MH i2c: 01 07 00 [22:13:10]MH_I2C_Read... [22:13:10]Read from MH i2c: 01 07 00 B8 02 00 00 00 00 00 FF 0F CF [22:13:10]RasterBufferAndPrint [22:13:10]line Счет N : (1)449455 [22:13:10]line ИНН: 02508201610067 [22:13:10]line Контрольно-Кассовый Чек [22:13:10]line ПРОДАЖА [22:13:10]line ТРК (МРК, ГНК) : 21 [22:13:10]line Товар: 2710194210 [22:13:10]line ДТ-К-2 [22:13:10]line 200.140 * 76.20 [22:13:10]line = 15250.67 [22:13:10]line НДС 12% НСП 1% [22:13:10]line > о реализуемом товаре [22:13:10]line ОКРУГЛЕНИЕ: -0.67 [22:13:10]line ИТОГО: 15250.00 [22:13:10]line Внесено: 15250.00 [22:13:10]line СДАЧА: 0.00 [22:13:10]line НСП 1% : 134.96 [22:13:10]line НДС 12% : 1619.54 [22:13:10]line Наличными: 15250.00 [22:13:10]line Безнал.: 0.00 [22:13:10]line Место: АЗС № 171 "Партнер Нефть" [22:13:10]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [22:13:10]line СНО: Общий режим [22:13:10]line Чек 460 26.10.2024 22:13 [22:13:10]line Смена: 543 ФФД: 1.0 [22:13:10]line ЗНМ: 0300000109 [22:13:10]line РНМ: 0000000000091777 [22:13:10]line Версия ККМ: 001 [22:13:10]line ФМ: 0000000000871756 [22:13:10]line ФД: 201698 [22:13:10]line ФПД: 201940808964230 [22:13:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T221309&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201698&fm=201940808964230&tin=02508201610067®Number=0000000000091777&sum=1525000 [22:13:10]written 0, free lines is 4095 [22:13:10]OFD Sender: Processing packet 201698 [packets to send 112, broken 111] [22:13:10]ProducePacketName [22:13:10]name=ofd_packets/00201698 [22:13:10]OFD Sender: To server: pG, [22:13:10]CommunicateWithHost lk.salyk.kg:30040 [22:13:10]ConnectInit lk.salyk.kg [22:13:10]Connected sock=10 [22:13:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 3E 89 04 01 7E D3 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 32 FF 03 08 00 03 CC 0D 03 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4B 45 17 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 45 17 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 34 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 78 02 00 00 00 07 04 06 00 08 45 17 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 01 00 00 F4 03 04 00 75 69 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E2 13 03 00 35 04 06 00 B7 AA 02 2F 18 86 6D C4 CA 11 D0 2F 59 0D [22:13:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 5E 23 47 00 BE 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E2 13 03 00 F4 03 04 00 1C 15 1D 67 B6 04 01 00 00 09 CF 2B 53 D2 7E C1 6A [22:13:10]CommunicateWithHost err = 0 [22:13:10]CheckOFDResponse [22:13:10]1017 (14) - 77093643461234 [22:13:10]1041 (16) - 0000000000871756 [22:13:10]1040 (4) - 201698 [22:13:10]1012 (4) - 26.10.2024 16:13 [22:13:10]1206 (1) - 0 [22:13:10]OFD Sender: Remove packet 201698 [22:13:10]ProducePacketName [22:13:10]name=ofd_packets/00201698 [22:13:10]NVStorageDeleteData [22:13:10]Write to MH i2c: 01 00 00 E3 02 E5 [22:13:10]Write i2c OK [22:13:10]MH_I2C_Read... [22:13:10]Read from MH i2c: 01 [22:13:10]MH_I2C_Read... [22:13:10]Read from MH i2c: 01 07 00 [22:13:10]MH_I2C_Read... [22:13:10]Read from MH i2c: 01 07 00 E3 02 00 00 00 00 00 A8 0C A0 [22:13:10]RasterBufferAndPrint [22:13:10]line [22:13:10]line [22:13:10]line [22:13:10]line [22:13:10]line [22:13:10]written 0, free lines is 3249 [22:13:10]MH_Cut [22:13:10]Write to MH i2c: D1 01 00 EA 02 01 BE [22:13:10]Write i2c OK [22:13:10]MH_I2C_Read... [22:13:10]Read from MH i2c: D1 [22:13:10]MH_I2C_Read... [22:13:10]Read from MH i2c: D1 01 00 [22:13:10]MH_I2C_Read... [22:13:10]Read from MH i2c: D1 01 00 EA 02 00 BD [22:13:10]Write to MH i2c: 01 00 00 EB 02 ED [22:13:10]Write i2c OK [22:13:10]MH_I2C_Read... [22:13:11]OFD Sender: No OFD packet to send [22:13:11]*** Cut start [22:13:11]*** Purtial cut [22:13:11]*** CUTSNS_PIN = 0 [22:13:11]*** Stage 1: CUTSNS_PIN = 1 [22:13:13]Read from MH i2c: 01 [22:13:13]MH_I2C_Read... [22:13:13]*** Stop cut motor [22:13:13]*** Cut end [22:13:13]Read from MH i2c: 01 07 00 [22:13:13]MH_I2C_Read... [22:13:13]Read from MH i2c: 01 07 00 EB 02 00 00 00 00 00 FF 0F 02 [22:13:13]process_action close_receipt done [22:13:13]requested_data is exist [22:13:13]produce_requested_data [22:13:13]requested_item fm.sn is exist - process it [22:13:13]wFMCommunicate request_size=4 [22:13:13]MH_SAM_APDU [22:13:13]CAPDU: 80 11 00 00 [22:13:13]Write to MH i2c: E2 08 00 EC 02 80 11 00 00 00 00 00 00 68 [22:13:13]Write i2c OK [22:13:13]MH_I2C_Read... [22:13:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:13]Read from MH i2c: E2 [22:13:13]MH_I2C_Read... [22:13:13]Read from MH i2c: E2 17 00 [22:13:13]MH_I2C_Read... [22:13:13]Read from MH i2c: E2 17 00 EC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BD [22:13:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [22:13:13]wFMCommunicate OK [22:13:13]requested_item fd.num is exist - process it [22:13:13]SAM_PROTO_GetFieldsCounters [22:13:13]wFMCommunicate request_size=4 [22:13:13]MH_SAM_APDU [22:13:13]CAPDU: 80 13 00 00 [22:13:13]Write to MH i2c: E2 08 00 ED 02 80 13 00 00 00 00 00 00 6B [22:13:13]Write i2c OK [22:13:13]MH_I2C_Read... [22:13:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:13:13]Read from MH i2c: E2 [22:13:13]MH_I2C_Read... [22:13:13]Read from MH i2c: E2 62 00 [22:13:13]MH_I2C_Read... [22:13:13]Read from MH i2c: E2 62 00 ED 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E2 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CC 01 00 00 5E 04 04 00 CC 01 00 00 57 04 04 00 CD 01 00 00 19 04 04 00 00 00 00 00 90 00 14 [22:13:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E2 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CC 01 00 00 5E 04 04 00 CC 01 00 00 57 04 04 00 CD 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:13:13]wFMCommunicate OK [22:13:13]SAM_PROTO_GetFieldsCounters done [22:13:13]requested_item shift.num is exist - process it [22:13:13]requested_item shift.opened is exist - process it [22:13:13]req_shift_opened [22:13:13]FM_GetShiftState [22:13:13]SAM_PROTO_GetShiftState [22:13:13]wFMCommunicate request_size=4 [22:13:13]MH_SAM_APDU [22:13:13]CAPDU: 80 13 01 00 [22:13:13]Write to MH i2c: E2 08 00 EE 02 80 13 01 00 00 00 00 00 6D [22:13:13]Write i2c OK [22:13:13]MH_I2C_Read... [22:13:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:13]Read from MH i2c: E2 [22:13:13]MH_I2C_Read... [22:13:13]Read from MH i2c: E2 0E 00 [22:13:13]MH_I2C_Read... [22:13:13]Read from MH i2c: E2 0E 00 EE 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 7C [22:13:13]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [22:13:13]wFMCommunicate OK [22:13:13]SAM_PROTO_GetShiftState done [22:13:13]FM_GetShiftState done [22:13:13]req_shift_opened done [22:13:13]requested_item shift.open_date is exist - process it [22:13:13]req_shift_open_date [22:13:13]req_shift_open_date done [22:13:13]produce_requested_data done [22:13:13]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201698,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [22:13:13]process_action_free close_receipt [22:13:13]json_value_free [22:13:13]json_value_free done [22:13:13]process_json_proto returns [22:13:13]Send response to host [22:13:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201698,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [22:13:13]free response buf [22:13:13]execute_script done [22:13:13]execute_script returns [22:13:13]free content buf [22:13:13]Sock 8.Close socket [22:13:13]Sock 8.Thread stoped [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:21]OFD Sender: No OFD packet to send [22:14:26]OFD Sender: No OFD packet to send [22:14:31]OFD Sender: No OFD packet to send [22:14:36]OFD Sender: No OFD packet to send [22:14:41]OFD Sender: No OFD packet to send [22:14:46]OFD Sender: No OFD packet to send [22:14:51]OFD Sender: No OFD packet to send [22:14:56]OFD Sender: No OFD packet to send [22:15:01]OFD Sender: No OFD packet to send [22:15:06]OFD Sender: No OFD packet to send [22:15:11]OFD Sender: No OFD packet to send [22:15:16]OFD Sender: No OFD packet to send [22:15:21]OFD Sender: No OFD packet to send [22:15:26]OFD Sender: No OFD packet to send [22:15:31]OFD Sender: No OFD packet to send [22:15:36]OFD Sender: No OFD packet to send [22:15:41]OFD Sender: No OFD packet to send [22:15:46]OFD Sender: No OFD packet to send [22:15:51]OFD Sender: No OFD packet to send [22:15:56]OFD Sender: No OFD packet to send [22:16:01]OFD Sender: No OFD packet to send [22:16:05]accept exits with 9 [22:16:05]New connection [22:16:05]New thread 3067080036 created [22:16:05]Thread 3066936676 joined [22:16:05]Waiting for new connection... [22:16:05] Sock 9.Parse request [22:16:05]Sock 9.Check first char [22:16:05]Sock 9.First char is OK [22:16:05]request: POST /json_proto HTTP/1.0 [22:16:05]Method: POST [22:16:05]URL: /json_proto [22:16:05]Method is POST - this is cgi request [22:16:05]url: /json_proto [22:16:05]query_string will be loaded in cgi processing [22:16:05]execute_cgi json_proto POST (null) [22:16:05]execute_cgi path=json_proto method=POST [22:16:05]POST find Content-Length [22:16:05]Host: 172.17.63.195:8080 [22:16:05]Content-Length: 679 [22:16:05]Content-Type: application/json [22:16:05] [22:16:05]POST finish read [22:16:05]Found Content-Length = 679 [22:16:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 91.870, "sum" : 7000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7000.00, "total" : 7000.00, "payments": [ { "type": 0, "sum" : 7000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:05]execute_script... [22:16:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 91.870, "sum" : 7000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7000.00, "total" : 7000.00, "payments": [ { "type": 0, "sum" : 7000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:05]POST & json_proto [22:16:05]process_json_proto [22:16:05]json parsed OK: [22:16:05]protocol is kg_v1.0 [22:16:05]action value=close_receipt [22:16:05]process_action close_receipt [22:16:05]cmd_close_receipt [22:16:05]MH_GetDate [22:16:05]Write to MH i2c: F0 00 00 EF 02 E0 [22:16:05]Write i2c OK [22:16:05]MH_I2C_Read... [22:16:05]Read from MH i2c: F0 [22:16:05]MH_I2C_Read... [22:16:05]Read from MH i2c: F0 09 00 [22:16:05]MH_I2C_Read... [22:16:05]Read from MH i2c: F0 09 00 EF 02 00 26 6A 1D 67 68 46 19 67 2B [22:16:05]GetLastDocTimeStamp 1729980789 [22:16:05]current date 1729980966 [22:16:05]FM_GetShiftState [22:16:05]SAM_PROTO_GetShiftState [22:16:05]wFMCommunicate request_size=4 [22:16:05]MH_SAM_APDU [22:16:05]CAPDU: 80 13 01 00 [22:16:05]Write to MH i2c: E2 08 00 F0 02 80 13 01 00 00 00 00 00 6F [22:16:05]Write i2c OK [22:16:05]MH_I2C_Read... [22:16:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:05]Read from MH i2c: E2 [22:16:05]MH_I2C_Read... [22:16:05]Read from MH i2c: E2 0E 00 [22:16:05]MH_I2C_Read... [22:16:05]Read from MH i2c: E2 0E 00 F0 02 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 7E [22:16:05]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [22:16:05]wFMCommunicate OK [22:16:05]SAM_PROTO_GetShiftState done [22:16:05]FM_GetShiftState done [22:16:05]opened in 1729900879 [22:16:05]opened+sec_in_day 1729987279 [22:16:05]quantity*price = 700049 [22:16:05]sum+1 = 700050 [22:16:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 7000.00 Внесено: 7000.00 СДАЧА: 0.00 НСП 1% : 61.95 НДС 12% : 743.41 Наличными: 7000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 461 26.10.2024 22:16 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201699 ФПД: 154964188960816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T221606&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201699&fm=154964188960816&tin=02508201610067®Number=0000000000091777&sum=700000 [22:16:06]StoreToDocumentArchive [22:16:06]shift 543 fd 201699 [22:16:06]save to /storage/0543/doc_00201699 [22:16:06]save last doc name /storage/0543/doc_00201699 to /storage/kkm_last_doc_name [22:16:06]save OK [22:16:06]Clear old archive folders... [22:16:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:16:06]tlvbuf is 000DE0F0 [22:16:06]SAM_PROTO_ClearQueue [22:16:06]wFMCommunicate request_size=4 [22:16:06]MH_SAM_APDU [22:16:06]CAPDU: 80 09 00 00 [22:16:06]Write to MH i2c: E2 08 00 FD 02 80 09 00 00 00 00 00 00 71 [22:16:06]Write i2c OK [22:16:06]MH_I2C_Read... [22:16:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:16:06]Read from MH i2c: E2 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: E2 03 00 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: E2 03 00 FD 02 00 90 00 73 [22:16:06]RAPDU: 90 00 [22:16:06]wFMCommunicate OK [22:16:06]SAM_PROTO_ClearQueue done [22:16:06]KKMCreateOFDPacket [22:16:06]OFDProtocolAddRootSTLVToBuf [22:16:06]FM_MakeSignedData [22:16:06]FM_MakeSignedData [22:16:06]SAM_PROTO_SignData [22:16:06]wFMCommunicate request_size=4 [22:16:06]MH_SAM_APDU [22:16:06]CAPDU: 80 0D 01 02 [22:16:06]Write to MH i2c: E2 08 00 FE 02 80 0D 01 02 00 00 00 00 79 [22:16:06]Write i2c OK [22:16:06]MH_I2C_Read... [22:16:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:16:06]Read from MH i2c: E2 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: E2 03 00 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: E2 03 00 FE 02 00 90 00 74 [22:16:06]RAPDU: 90 00 [22:16:06]wFMCommunicate OK [22:16:06]wFMCommunicate request_size=255 [22:16:06]MH_SAM_APDU [22:16:06]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 32 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 22 01 00 00 00 07 04 06 00 60 AE 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 01 00 00 F4 03 04 00 26 6A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E3 13 03 00 35 04 06 00 8C F0 69 6F [22:16:06]Write to MH i2c: E2 02 01 FF 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 22 01 00 00 00 07 04 06 00 60 AE 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 01 00 00 F4 03 04 00 26 6A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E3 13 03 00 35 04 06 00 8C F0 69 6F 00 00 9D [22:16:06]Write i2c OK [22:16:06]MH_I2C_Read... [22:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:06]Read from MH i2c: E2 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: E2 03 00 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: E2 03 00 FF 02 00 90 00 75 [22:16:06]RAPDU: 90 00 [22:16:06]wFMCommunicate OK [22:16:06]wFMCommunicate request_size=7 [22:16:06]MH_SAM_APDU [22:16:06]CAPDU: 80 0D 02 02 02 98 30 [22:16:06]Write to MH i2c: E2 0A 00 00 03 80 0D 02 02 02 00 98 30 00 00 49 [22:16:06]Write i2c OK [22:16:06]MH_I2C_Read... [22:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:06]Read from MH i2c: E2 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: E2 03 00 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: E2 03 00 00 03 00 90 00 77 [22:16:06]RAPDU: 90 00 [22:16:06]wFMCommunicate OK [22:16:06]wFMCommunicate request_size=4 [22:16:06]MH_SAM_APDU [22:16:06]CAPDU: 80 0D 03 02 [22:16:06]Write to MH i2c: E2 08 00 01 03 80 0D 03 02 00 00 00 00 7F [22:16:06]Write i2c OK [22:16:06]MH_I2C_Read... [22:16:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:16:06]Read from MH i2c: E2 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: E2 0B 00 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: E2 0B 00 01 03 00 91 28 9D B3 B5 69 9F A2 90 00 E8 [22:16:06]RAPDU: 91 28 9D B3 B5 69 9F A2 90 00 [22:16:06]wFMCommunicate OK [22:16:06]SAM_PROTO_SignData done [22:16:06]FM_MakeSignedData done [22:16:06]CreateOFDProtocolMessage [22:16:06]wFMCommunicate request_size=4 [22:16:06]MH_SAM_APDU [22:16:06]CAPDU: 80 11 00 00 [22:16:06]Write to MH i2c: E2 08 00 02 03 80 11 00 00 00 00 00 00 7F [22:16:06]Write i2c OK [22:16:06]MH_I2C_Read... [22:16:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:06]Read from MH i2c: E2 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: E2 17 00 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: E2 17 00 02 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D4 [22:16:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [22:16:06]wFMCommunicate OK [22:16:06]CreateOFDProtocolMessage done [22:16:06]OFDSenderStorePacket 201699 [22:16:06]StoreOFDPacket docnum=201699 [22:16:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 05 BD 04 01 51 4E 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 32 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 22 01 00 00 00 07 04 06 00 60 AE 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 01 00 00 F4 03 04 00 26 6A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E3 13 03 00 35 04 06 00 8C F0 69 6F 98 30 91 28 9D B3 B5 69 9F A2 [22:16:06]CheckFolder [22:16:06]dirname=/storage/ofd_packets [22:16:06]CheckFolder done [22:16:06]ProducePacketName [22:16:06]name=ofd_packets/00201699 [22:16:06]NVStorageSaveData ofd_packets/00201699 [22:16:06]File name is /storage/ofd_packets/00201699 [22:16:06]Write 298 bytes [22:16:06]NVStorageSaveData done [22:16:06]OFDSenderStorePacket done [22:16:06]KKMCreateOFDPacket done [22:16:06]NVStorageSaveData kkm_last_timestamp [22:16:06]File name is /storage/kkm_last_timestamp [22:16:06]Write 4 bytes [22:16:06]NVStorageSaveData done [22:16:06]ExternCall_PrintAddStr [22:16:06]wPrintStart [22:16:06]Write to MH i2c: 01 00 00 03 03 06 [22:16:06]Write i2c OK [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: 01 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: 01 07 00 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: 01 07 00 03 03 00 00 00 00 00 FF 0F 1B [22:16:06]RasterBufferAndPrint [22:16:06]line Счет N : (1)449459 [22:16:06]line ИНН: 02508201610067 [22:16:06]line Контрольно-Кассовый Чек [22:16:06]line ПРОДАЖА [22:16:06]line ТРК (МРК, ГНК) : 21 [22:16:06]line Товар: 2710194210 [22:16:06]line ДТ-К-2 [22:16:06]line 91.870 * 76.20 [22:16:06]line = 7000.49 [22:16:06]line НДС 12% НСП 1% [22:16:06]line > о реализуемом товаре [22:16:06]line ОКРУГЛЕНИЕ: -0.49 [22:16:06]line ИТОГО: 7000.00 [22:16:06]line Внесено: 7000.00 [22:16:06]line СДАЧА: 0.00 [22:16:06]line НСП 1% : 61.95 [22:16:06]line НДС 12% : 743.41 [22:16:06]line Наличными: 7000.00 [22:16:06]line Безнал.: 0.00 [22:16:06]line Место: АЗС № 171 "Партнер Нефть" [22:16:06]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [22:16:06]line СНО: Общий режим [22:16:06]line Чек 461 26.10.2024 22:16 [22:16:06]line Смена: 543 ФФД: 1.0 [22:16:06]line ЗНМ: 0300000109 [22:16:06]line РНМ: 0000000000091777 [22:16:06]line Версия ККМ: 001 [22:16:06]line ФМ: 0000000000871756 [22:16:06]line ФД: 201699 [22:16:06]line ФПД: 154964188960816 [22:16:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T221606&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201699&fm=154964188960816&tin=02508201610067®Number=0000000000091777&sum=700000 [22:16:07]OFD Sender: Processing packet 201699 [packets to send 112, broken 111] [22:16:07]ProducePacketName [22:16:07]name=ofd_packets/00201699 [22:16:07]OFD Sender: To server: pG, [22:16:07]CommunicateWithHost lk.salyk.kg:30040 [22:16:07]ConnectInit lk.salyk.kg [22:16:07]written 0, free lines is 4095 [22:16:07]Connected sock=10 [22:16:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 05 BD 04 01 51 4E 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 32 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 22 01 00 00 00 07 04 06 00 60 AE 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 01 00 00 F4 03 04 00 26 6A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E3 13 03 00 35 04 06 00 8C F0 69 6F 98 30 91 28 9D B3 B5 69 9F A2 [22:16:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 9B C4 47 00 49 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E3 13 03 00 F4 03 04 00 CD 15 1D 67 B6 04 01 00 00 DA BC C2 BB 8F AC 33 64 [22:16:07]CommunicateWithHost err = 0 [22:16:07]CheckOFDResponse [22:16:07]1017 (14) - 77093643461234 [22:16:07]1041 (16) - 0000000000871756 [22:16:07]1040 (4) - 201699 [22:16:07]1012 (4) - 26.10.2024 16:16 [22:16:07]1206 (1) - 0 [22:16:07]OFD Sender: Remove packet 201699 [22:16:07]ProducePacketName [22:16:07]name=ofd_packets/00201699 [22:16:07]NVStorageDeleteData [22:16:07]Write to MH i2c: 01 00 00 2E 03 31 [22:16:07]Write i2c OK [22:16:07]MH_I2C_Read... [22:16:07]Read from MH i2c: 01 [22:16:07]MH_I2C_Read... [22:16:07]Read from MH i2c: 01 07 00 [22:16:07]MH_I2C_Read... [22:16:07]Read from MH i2c: 01 07 00 2E 03 00 00 00 00 00 9A 0C DE [22:16:07]RasterBufferAndPrint [22:16:07]line [22:16:07]line [22:16:07]line [22:16:07]line [22:16:07]line [22:16:07]written 0, free lines is 3232 [22:16:07]MH_Cut [22:16:07]Write to MH i2c: D1 01 00 35 03 01 0A [22:16:07]Write i2c OK [22:16:07]MH_I2C_Read... [22:16:07]Read from MH i2c: D1 [22:16:07]MH_I2C_Read... [22:16:07]Read from MH i2c: D1 01 00 [22:16:07]MH_I2C_Read... [22:16:07]Read from MH i2c: D1 01 00 35 03 00 09 [22:16:07]Write to MH i2c: 01 00 00 36 03 39 [22:16:07]Write i2c OK [22:16:07]MH_I2C_Read... [22:16:08]OFD Sender: No OFD packet to send [22:16:08]*** Cut start [22:16:08]*** Purtial cut [22:16:08]*** Stage 1: CUTSNS_PIN = 1 [22:16:08]Read from MH i2c: 01 [22:16:08]MH_I2C_Read... [22:16:08]*** Stop cut motor [22:16:08]*** Cut end [22:16:08]Read from MH i2c: 01 07 00 [22:16:08]MH_I2C_Read... [22:16:08]Read from MH i2c: 01 07 00 36 03 00 00 00 00 00 FF 0F 4E [22:16:08]process_action close_receipt done [22:16:08]requested_data is exist [22:16:08]produce_requested_data [22:16:08]requested_item fm.sn is exist - process it [22:16:08]wFMCommunicate request_size=4 [22:16:08]MH_SAM_APDU [22:16:08]CAPDU: 80 11 00 00 [22:16:08]Write to MH i2c: E2 08 00 37 03 80 11 00 00 00 00 00 00 B4 [22:16:08]Write i2c OK [22:16:08]MH_I2C_Read... [22:16:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:08]Read from MH i2c: E2 [22:16:08]MH_I2C_Read... [22:16:08]Read from MH i2c: E2 17 00 [22:16:08]MH_I2C_Read... [22:16:08]Read from MH i2c: E2 17 00 37 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 09 [22:16:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [22:16:08]wFMCommunicate OK [22:16:08]requested_item fd.num is exist - process it [22:16:08]SAM_PROTO_GetFieldsCounters [22:16:08]wFMCommunicate request_size=4 [22:16:08]MH_SAM_APDU [22:16:08]CAPDU: 80 13 00 00 [22:16:08]Write to MH i2c: E2 08 00 38 03 80 13 00 00 00 00 00 00 B7 [22:16:08]Write i2c OK [22:16:08]MH_I2C_Read... [22:16:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:16:09]Read from MH i2c: E2 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 62 00 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 62 00 38 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E3 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CD 01 00 00 5E 04 04 00 CD 01 00 00 57 04 04 00 CE 01 00 00 19 04 04 00 00 00 00 00 90 00 64 [22:16:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E3 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CD 01 00 00 5E 04 04 00 CD 01 00 00 57 04 04 00 CE 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:16:09]wFMCommunicate OK [22:16:09]SAM_PROTO_GetFieldsCounters done [22:16:09]requested_item shift.num is exist - process it [22:16:09]requested_item shift.opened is exist - process it [22:16:09]req_shift_opened [22:16:09]FM_GetShiftState [22:16:09]SAM_PROTO_GetShiftState [22:16:09]wFMCommunicate request_size=4 [22:16:09]MH_SAM_APDU [22:16:09]CAPDU: 80 13 01 00 [22:16:09]Write to MH i2c: E2 08 00 39 03 80 13 01 00 00 00 00 00 B9 [22:16:09]Write i2c OK [22:16:09]MH_I2C_Read... [22:16:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:09]Read from MH i2c: E2 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 0E 00 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 0E 00 39 03 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 C8 [22:16:09]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [22:16:09]wFMCommunicate OK [22:16:09]SAM_PROTO_GetShiftState done [22:16:09]FM_GetShiftState done [22:16:09]req_shift_opened done [22:16:09]requested_item shift.open_date is exist - process it [22:16:09]req_shift_open_date [22:16:09]req_shift_open_date done [22:16:09]produce_requested_data done [22:16:09]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201699,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [22:16:09]process_action_free close_receipt [22:16:09]json_value_free [22:16:09]json_value_free done [22:16:09]process_json_proto returns [22:16:09]Send response to host [22:16:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201699,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [22:16:09]free response buf [22:16:09]execute_script done [22:16:09]execute_script returns [22:16:09]free content buf [22:16:09]Sock 9.Close socket [22:16:09]Sock 9.Thread stoped [22:16:13]OFD Sender: No OFD packet to send [22:16:15]accept exits with 8 [22:16:15]New connection [22:16:15]New thread 3066936676 created [22:16:15]Thread 3067080036 joined [22:16:15]Waiting for new connection... [22:16:15] Sock 8.Parse request [22:16:15]Sock 8.Check first char [22:16:15]Sock 8.First char is OK [22:16:15]request: POST /json_proto HTTP/1.0 [22:16:15]Method: POST [22:16:15]URL: /json_proto [22:16:15]Method is POST - this is cgi request [22:16:15]url: /json_proto [22:16:15]query_string will be loaded in cgi processing [22:16:15]execute_cgi json_proto POST (null) [22:16:15]execute_cgi path=json_proto method=POST [22:16:15]POST find Content-Length [22:16:15]Host: 172.17.63.195:8080 [22:16:15]Content-Length: 677 [22:16:15]Content-Type: application/json [22:16:15] [22:16:15]POST finish read [22:16:15]Found Content-Length = 677 [22:16:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [22:16:15]execute_script... [22:16:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [22:16:15]POST & json_proto [22:16:15]process_json_proto [22:16:15]json parsed OK: [22:16:15]protocol is kg_v1.0 [22:16:15]action value=close_receipt [22:16:15]process_action close_receipt [22:16:15]cmd_close_receipt [22:16:15]MH_GetDate [22:16:15]Write to MH i2c: F0 00 00 3A 03 2C [22:16:15]Write i2c OK [22:16:15]MH_I2C_Read... [22:16:15]Read from MH i2c: F0 [22:16:15]MH_I2C_Read... [22:16:15]Read from MH i2c: F0 09 00 [22:16:15]MH_I2C_Read... [22:16:15]Read from MH i2c: F0 09 00 3A 03 00 30 6A 1D 67 68 46 19 67 81 [22:16:15]GetLastDocTimeStamp 1729980966 [22:16:15]current date 1729980976 [22:16:15]FM_GetShiftState [22:16:15]SAM_PROTO_GetShiftState [22:16:15]wFMCommunicate request_size=4 [22:16:15]MH_SAM_APDU [22:16:15]CAPDU: 80 13 01 00 [22:16:15]Write to MH i2c: E2 08 00 3B 03 80 13 01 00 00 00 00 00 BB [22:16:15]Write i2c OK [22:16:15]MH_I2C_Read... [22:16:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:15]Read from MH i2c: E2 [22:16:15]MH_I2C_Read... [22:16:15]Read from MH i2c: E2 0E 00 [22:16:15]MH_I2C_Read... [22:16:15]Read from MH i2c: E2 0E 00 3B 03 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 CA [22:16:15]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [22:16:15]wFMCommunicate OK [22:16:15]SAM_PROTO_GetShiftState done [22:16:15]FM_GetShiftState done [22:16:15]opened in 1729900879 [22:16:15]opened+sec_in_day 1729987279 [22:16:15]quantity*price = 50041 [22:16:15]sum+1 = 50042 [22:16:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 462 26.10.2024 22:16 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201700 ФПД: 57051459139931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T221616&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201700&fm=57051459139931&tin=02508201610067®Number=0000000000091777&sum=50000 [22:16:16]StoreToDocumentArchive [22:16:16]shift 543 fd 201700 [22:16:16]save to /storage/0543/doc_00201700 [22:16:16]save last doc name /storage/0543/doc_00201700 to /storage/kkm_last_doc_name [22:16:16]save OK [22:16:16]Clear old archive folders... [22:16:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:16:16]tlvbuf is 000F5C50 [22:16:16]SAM_PROTO_ClearQueue [22:16:16]wFMCommunicate request_size=4 [22:16:16]MH_SAM_APDU [22:16:16]CAPDU: 80 09 00 00 [22:16:16]Write to MH i2c: E2 08 00 48 03 80 09 00 00 00 00 00 00 BD [22:16:16]Write i2c OK [22:16:16]MH_I2C_Read... [22:16:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:16:16]Read from MH i2c: E2 [22:16:16]MH_I2C_Read... [22:16:16]Read from MH i2c: E2 03 00 [22:16:16]MH_I2C_Read... [22:16:16]Read from MH i2c: E2 03 00 48 03 00 90 00 BF [22:16:16]RAPDU: 90 00 [22:16:16]wFMCommunicate OK [22:16:16]SAM_PROTO_ClearQueue done [22:16:16]KKMCreateOFDPacket [22:16:16]OFDProtocolAddRootSTLVToBuf [22:16:16]FM_MakeSignedData [22:16:16]FM_MakeSignedData [22:16:16]SAM_PROTO_SignData [22:16:16]wFMCommunicate request_size=4 [22:16:16]MH_SAM_APDU [22:16:16]CAPDU: 80 0D 01 02 [22:16:16]Write to MH i2c: E2 08 00 49 03 80 0D 01 02 00 00 00 00 C5 [22:16:16]Write i2c OK [22:16:16]MH_I2C_Read... [22:16:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:16:16]Read from MH i2c: E2 [22:16:16]MH_I2C_Read... [22:16:16]Read from MH i2c: E2 03 00 [22:16:16]MH_I2C_Read... [22:16:16]Read from MH i2c: E2 03 00 49 03 00 90 00 C0 [22:16:16]RAPDU: 90 00 [22:16:16]wFMCommunicate OK [22:16:16]wFMCommunicate request_size=255 [22:16:16]MH_SAM_APDU [22:16:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 CE 01 00 00 F4 03 04 00 30 6A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E4 13 03 00 35 04 06 00 33 [22:16:16]Write to MH i2c: E2 02 01 4A 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 32 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 CE 01 00 00 F4 03 04 00 30 6A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E4 13 03 00 35 04 06 00 33 00 00 94 [22:16:16]Write i2c OK [22:16:16]MH_I2C_Read... [22:16:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:16]Read from MH i2c: E2 [22:16:16]MH_I2C_Read... [22:16:16]Read from MH i2c: E2 03 00 [22:16:16]MH_I2C_Read... [22:16:16]Read from MH i2c: E2 03 00 4A 03 00 90 00 C1 [22:16:16]RAPDU: 90 00 [22:16:16]wFMCommunicate OK [22:16:16]wFMCommunicate request_size=10 [22:16:16]MH_SAM_APDU [22:16:16]CAPDU: 80 0D 02 02 05 E3 53 F4 B9 5B [22:16:16]Write to MH i2c: E2 0D 00 4B 03 80 0D 02 02 05 00 E3 53 F4 B9 5B 00 00 10 [22:16:16]Write i2c OK [22:16:16]MH_I2C_Read... [22:16:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:16]Read from MH i2c: E2 [22:16:16]MH_I2C_Read... [22:16:16]Read from MH i2c: E2 03 00 [22:16:16]MH_I2C_Read... [22:16:16]Read from MH i2c: E2 03 00 4B 03 00 90 00 C2 [22:16:16]RAPDU: 90 00 [22:16:16]wFMCommunicate OK [22:16:16]wFMCommunicate request_size=4 [22:16:16]MH_SAM_APDU [22:16:16]CAPDU: 80 0D 03 02 [22:16:16]Write to MH i2c: E2 08 00 4C 03 80 0D 03 02 00 00 00 00 CA [22:16:16]Write i2c OK [22:16:16]MH_I2C_Read... [22:16:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:16:16]Read from MH i2c: E2 [22:16:16]MH_I2C_Read... [22:16:16]Read from MH i2c: E2 0B 00 [22:16:16]MH_I2C_Read... [22:16:16]Read from MH i2c: E2 0B 00 4C 03 00 A7 42 D6 C6 EC 66 C4 D3 90 00 39 [22:16:16]RAPDU: A7 42 D6 C6 EC 66 C4 D3 90 00 [22:16:16]wFMCommunicate OK [22:16:16]SAM_PROTO_SignData done [22:16:16]FM_MakeSignedData done [22:16:16]CreateOFDProtocolMessage [22:16:16]wFMCommunicate request_size=4 [22:16:16]MH_SAM_APDU [22:16:16]CAPDU: 80 11 00 00 [22:16:16]Write to MH i2c: E2 08 00 4D 03 80 11 00 00 00 00 00 00 CA [22:16:16]Write i2c OK [22:16:16]MH_I2C_Read... [22:16:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:16]Read from MH i2c: E2 [22:16:16]MH_I2C_Read... [22:16:16]Read from MH i2c: E2 17 00 [22:16:16]MH_I2C_Read... [22:16:16]Read from MH i2c: E2 17 00 4D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1F [22:16:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [22:16:16]wFMCommunicate OK [22:16:16]CreateOFDProtocolMessage done [22:16:16]OFDSenderStorePacket 201700 [22:16:16]StoreOFDPacket docnum=201700 [22:16:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 DF BA 07 01 DD 45 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 32 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 CE 01 00 00 F4 03 04 00 30 6A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E4 13 03 00 35 04 06 00 33 E3 53 F4 B9 5B A7 42 D6 C6 EC 66 C4 D3 [22:16:16]CheckFolder [22:16:16]dirname=/storage/ofd_packets [22:16:16]CheckFolder done [22:16:16]ProducePacketName [22:16:16]name=ofd_packets/00201700 [22:16:16]NVStorageSaveData ofd_packets/00201700 [22:16:16]File name is /storage/ofd_packets/00201700 [22:16:16]Write 301 bytes [22:16:16]NVStorageSaveData done [22:16:16]OFDSenderStorePacket done [22:16:16]KKMCreateOFDPacket done [22:16:16]NVStorageSaveData kkm_last_timestamp [22:16:16]File name is /storage/kkm_last_timestamp [22:16:16]Write 4 bytes [22:16:16]NVStorageSaveData done [22:16:16]ExternCall_PrintAddStr [22:16:16]wPrintStart [22:16:16]Write to MH i2c: 01 00 00 4E 03 51 [22:16:16]Write i2c OK [22:16:16]MH_I2C_Read... [22:16:16]Read from MH i2c: 01 [22:16:16]MH_I2C_Read... [22:16:16]Read from MH i2c: 01 07 00 [22:16:16]MH_I2C_Read... [22:16:16]Read from MH i2c: 01 07 00 4E 03 00 00 00 00 00 FF 0F 66 [22:16:16]RasterBufferAndPrint [22:16:16]line Счет N : (1)449460 [22:16:16]line ИНН: 02508201610067 [22:16:16]line Контрольно-Кассовый Чек [22:16:16]line ПРОДАЖА [22:16:16]line ТРК (МРК, ГНК) : 52 [22:16:16]line Товар: 2710124130 [22:16:16]line Аи-92-К-2 [22:16:16]line 7.480 * 66.90 [22:16:16]line = 500.41 [22:16:16]line НДС 12% НСП 1% [22:16:16]line > о реализуемом товаре [22:16:16]line ОКРУГЛЕНИЕ: -0.41 [22:16:16]line ИТОГО: 500.00 [22:16:16]line Внесено: 500.00 [22:16:16]line СДАЧА: 0.00 [22:16:16]line НСП 1% : 4.43 [22:16:16]line НДС 12% : 53.14 [22:16:16]line Наличными: 500.00 [22:16:16]line Безнал.: 0.00 [22:16:16]line Место: АЗС № 171 "Партнер Нефть" [22:16:16]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [22:16:16]line СНО: Общий режим [22:16:16]line Чек 462 26.10.2024 22:16 [22:16:16]line Смена: 543 ФФД: 1.0 [22:16:16]line ЗНМ: 0300000109 [22:16:16]line РНМ: 0000000000091777 [22:16:16]line Версия ККМ: 001 [22:16:16]line ФМ: 0000000000871756 [22:16:16]line ФД: 201700 [22:16:16]line ФПД: 57051459139931 [22:16:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T221616&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201700&fm=57051459139931&tin=02508201610067®Number=0000000000091777&sum=50000 [22:16:16]written 0, free lines is 4095 [22:16:16]OFD Sender: Processing packet 201700 [packets to send 112, broken 111] [22:16:16]ProducePacketName [22:16:16]name=ofd_packets/00201700 [22:16:16]OFD Sender: To server: pG, [22:16:16]CommunicateWithHost lk.salyk.kg:30040 [22:16:16]ConnectInit lk.salyk.kg [22:16:17]Connected sock=10 [22:16:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 DF BA 07 01 DD 45 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 32 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 CE 01 00 00 F4 03 04 00 30 6A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E4 13 03 00 35 04 06 00 33 E3 53 F4 B9 5B A7 42 D6 C6 EC 66 C4 D3 [22:16:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E4 28 47 00 F6 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 38 37 31 37 35 36 10 04 04 00 E4 13 03 00 F4 03 04 00 D7 15 1D 67 B6 04 01 00 00 5E AC 15 02 03 F6 A0 F7 [22:16:17]CommunicateWithHost err = 0 [22:16:17]CheckOFDResponse [22:16:17]1017 (14) - 77093643461234 [22:16:17]1041 (16) - 0000000000871756 [22:16:17]1040 (4) - 201700 [22:16:17]1012 (4) - 26.10.2024 16:16 [22:16:17]1206 (1) - 0 [22:16:17]OFD Sender: Remove packet 201700 [22:16:17]ProducePacketName [22:16:17]name=ofd_packets/00201700 [22:16:17]NVStorageDeleteData [22:16:17]Write to MH i2c: 01 00 00 79 03 7C [22:16:17]Write i2c OK [22:16:17]MH_I2C_Read... [22:16:17]Read from MH i2c: 01 [22:16:17]MH_I2C_Read... [22:16:17]Read from MH i2c: 01 07 00 [22:16:17]MH_I2C_Read... [22:16:17]Read from MH i2c: 01 07 00 79 03 00 00 00 00 00 9F 0C 2E [22:16:17]RasterBufferAndPrint [22:16:17]line [22:16:17]line [22:16:17]line [22:16:17]line [22:16:17]line [22:16:17]written 0, free lines is 3239 [22:16:17]MH_Cut [22:16:17]Write to MH i2c: D1 01 00 80 03 01 55 [22:16:17]Write i2c OK [22:16:17]MH_I2C_Read... [22:16:17]Read from MH i2c: D1 [22:16:17]MH_I2C_Read... [22:16:17]Read from MH i2c: D1 01 00 [22:16:17]MH_I2C_Read... [22:16:17]Read from MH i2c: D1 01 00 80 03 00 54 [22:16:17]Write to MH i2c: 01 00 00 81 03 84 [22:16:17]Write i2c OK [22:16:17]MH_I2C_Read... [22:16:17]OFD Sender: No OFD packet to send [22:16:18]*** Cut start [22:16:18]*** Purtial cut [22:16:18]*** Stage 1: CUTSNS_PIN = 1 [22:16:18]Read from MH i2c: 01 [22:16:18]MH_I2C_Read... [22:16:18]*** Stop cut motor [22:16:18]*** Cut end [22:16:18]Read from MH i2c: 01 07 00 [22:16:18]MH_I2C_Read... [22:16:18]Read from MH i2c: 01 07 00 81 03 00 00 00 00 00 FF 0F 99 [22:16:18]process_action close_receipt done [22:16:18]requested_data is exist [22:16:18]produce_requested_data [22:16:18]requested_item fm.sn is exist - process it [22:16:18]wFMCommunicate request_size=4 [22:16:18]MH_SAM_APDU [22:16:18]CAPDU: 80 11 00 00 [22:16:18]Write to MH i2c: E2 08 00 82 03 80 11 00 00 00 00 00 00 FF [22:16:18]Write i2c OK [22:16:18]MH_I2C_Read... [22:16:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:18]Read from MH i2c: E2 [22:16:18]MH_I2C_Read... [22:16:18]Read from MH i2c: E2 17 00 [22:16:18]MH_I2C_Read... [22:16:18]Read from MH i2c: E2 17 00 82 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 54 [22:16:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [22:16:18]wFMCommunicate OK [22:16:18]requested_item fd.num is exist - process it [22:16:18]SAM_PROTO_GetFieldsCounters [22:16:18]wFMCommunicate request_size=4 [22:16:18]MH_SAM_APDU [22:16:18]CAPDU: 80 13 00 00 [22:16:18]Write to MH i2c: E2 08 00 83 03 80 13 00 00 00 00 00 00 02 [22:16:18]Write i2c OK [22:16:18]MH_I2C_Read... [22:16:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:16:18]Read from MH i2c: E2 [22:16:18]MH_I2C_Read... [22:16:18]Read from MH i2c: E2 62 00 [22:16:18]MH_I2C_Read... [22:16:18]Read from MH i2c: E2 62 00 83 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E4 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CE 01 00 00 5E 04 04 00 CE 01 00 00 57 04 04 00 CF 01 00 00 19 04 04 00 00 00 00 00 90 00 B3 [22:16:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E4 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CE 01 00 00 5E 04 04 00 CE 01 00 00 57 04 04 00 CF 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:16:18]wFMCommunicate OK [22:16:18]SAM_PROTO_GetFieldsCounters done [22:16:18]requested_item shift.num is exist - process it [22:16:18]requested_item shift.opened is exist - process it [22:16:18]req_shift_opened [22:16:18]FM_GetShiftState [22:16:18]SAM_PROTO_GetShiftState [22:16:18]wFMCommunicate request_size=4 [22:16:18]MH_SAM_APDU [22:16:18]CAPDU: 80 13 01 00 [22:16:18]Write to MH i2c: E2 08 00 84 03 80 13 01 00 00 00 00 00 04 [22:16:18]Write i2c OK [22:16:18]MH_I2C_Read... [22:16:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:18]Read from MH i2c: E2 [22:16:18]MH_I2C_Read... [22:16:18]Read from MH i2c: E2 0E 00 [22:16:18]MH_I2C_Read... [22:16:18]Read from MH i2c: E2 0E 00 84 03 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 13 [22:16:18]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [22:16:18]wFMCommunicate OK [22:16:18]SAM_PROTO_GetShiftState done [22:16:18]FM_GetShiftState done [22:16:18]req_shift_opened done [22:16:18]requested_item shift.open_date is exist - process it [22:16:18]req_shift_open_date [22:16:18]req_shift_open_date done [22:16:18]produce_requested_data done [22:16:18]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201700,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [22:16:18]process_action_free close_receipt [22:16:18]json_value_free [22:16:18]json_value_free done [22:16:18]process_json_proto returns [22:16:18]Send response to host [22:16:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201700,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [22:16:18]free response buf [22:16:18]execute_script done [22:16:18]execute_script returns [22:16:18]free content buf [22:16:18]Sock 8.Close socket [22:16:18]Sock 8.Thread stoped [22:16:22]OFD Sender: No OFD packet to send [22:16:27]OFD Sender: No OFD packet to send [22:16:32]OFD Sender: No OFD packet to send [22:16:37]OFD Sender: No OFD packet to send [22:16:42]OFD Sender: No OFD packet to send [22:16:43]accept exits with 9 [22:16:43]New connection [22:16:43]New thread 3067080036 created [22:16:43]Thread 3066936676 joined [22:16:43]Waiting for new connection... [22:16:43] Sock 9.Parse request [22:16:43]Sock 9.Check first char [22:16:43]Sock 9.First char is OK [22:16:43]request: POST /json_proto HTTP/1.0 [22:16:43]Method: POST [22:16:43]URL: /json_proto [22:16:43]Method is POST - this is cgi request [22:16:43]url: /json_proto [22:16:43]query_string will be loaded in cgi processing [22:16:43]execute_cgi json_proto POST (null) [22:16:43]execute_cgi path=json_proto method=POST [22:16:43]POST find Content-Length [22:16:43]Host: 172.17.63.195:8080 [22:16:43]Content-Length: 682 [22:16:43]Content-Type: application/json [22:16:43] [22:16:43]POST finish read [22:16:43]Found Content-Length = 682 [22:16:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 33.820, "sum" : 2509.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 2509.00, "payments": [ { "type": 0, "sum" : 2509.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:43]execute_script... [22:16: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)449458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 33.820, "sum" : 2509.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 2509.00, "payments": [ { "type": 0, "sum" : 2509.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:43]POST & json_proto [22:16:43]process_json_proto [22:16:43]json parsed OK: [22:16:43]protocol is kg_v1.0 [22:16:43]action value=close_receipt [22:16:43]process_action close_receipt [22:16:43]cmd_close_receipt [22:16:43]MH_GetDate [22:16:43]Write to MH i2c: F0 00 00 85 03 77 [22:16:43]Write i2c OK [22:16:43]MH_I2C_Read... [22:16:43]Read from MH i2c: F0 [22:16:43]MH_I2C_Read... [22:16:43]Read from MH i2c: F0 09 00 [22:16:43]MH_I2C_Read... [22:16:43]Read from MH i2c: F0 09 00 85 03 00 4C 6A 1D 67 68 46 19 67 E8 [22:16:43]GetLastDocTimeStamp 1729980976 [22:16:43]current date 1729981004 [22:16:43]FM_GetShiftState [22:16:43]SAM_PROTO_GetShiftState [22:16:43]wFMCommunicate request_size=4 [22:16:43]MH_SAM_APDU [22:16:43]CAPDU: 80 13 01 00 [22:16:43]Write to MH i2c: E2 08 00 86 03 80 13 01 00 00 00 00 00 06 [22:16:43]Write i2c OK [22:16:43]MH_I2C_Read... [22:16:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:43]Read from MH i2c: E2 [22:16:43]MH_I2C_Read... [22:16:43]Read from MH i2c: E2 0E 00 [22:16:43]MH_I2C_Read... [22:16:43]Read from MH i2c: E2 0E 00 86 03 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 15 [22:16:43]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [22:16:43]wFMCommunicate OK [22:16:43]SAM_PROTO_GetShiftState done [22:16:43]FM_GetShiftState done [22:16:43]opened in 1729900879 [22:16:43]opened+sec_in_day 1729987279 [22:16:43]quantity*price = 250944 [22:16:43]sum+1 = 250945 [22:16:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 2509.00 Внесено: 4000.00 СДАЧА: 1491.00 НСП 1% : 22.21 НДС 12% : 266.49 Наличными: 2509.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 463 26.10.2024 22:16 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201701 ФПД: 37693171868600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T221645&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201701&fm=37693171868600&tin=02508201610067®Number=0000000000091777&sum=250900 [22:16:44]StoreToDocumentArchive [22:16:44]shift 543 fd 201701 [22:16:44]save to /storage/0543/doc_00201701 [22:16:44]save last doc name /storage/0543/doc_00201701 to /storage/kkm_last_doc_name [22:16:44]save OK [22:16:44]Clear old archive folders... [22:16:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:16:44]tlvbuf is B6F77580 [22:16:44]SAM_PROTO_ClearQueue [22:16:44]wFMCommunicate request_size=4 [22:16:44]MH_SAM_APDU [22:16:44]CAPDU: 80 09 00 00 [22:16:44]Write to MH i2c: E2 08 00 93 03 80 09 00 00 00 00 00 00 08 [22:16:44]Write i2c OK [22:16:44]MH_I2C_Read... [22:16:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:16:45]Read from MH i2c: E2 [22:16:45]MH_I2C_Read... [22:16:45]Read from MH i2c: E2 03 00 [22:16:45]MH_I2C_Read... [22:16:45]Read from MH i2c: E2 03 00 93 03 00 90 00 0A [22:16:45]RAPDU: 90 00 [22:16:45]wFMCommunicate OK [22:16:45]SAM_PROTO_ClearQueue done [22:16:45]KKMCreateOFDPacket [22:16:45]OFDProtocolAddRootSTLVToBuf [22:16:45]FM_MakeSignedData [22:16:45]FM_MakeSignedData [22:16:45]SAM_PROTO_SignData [22:16:45]wFMCommunicate request_size=4 [22:16:45]MH_SAM_APDU [22:16:45]CAPDU: 80 0D 01 02 [22:16:45]Write to MH i2c: E2 08 00 94 03 80 0D 01 02 00 00 00 00 10 [22:16:45]Write i2c OK [22:16:45]MH_I2C_Read... [22:16:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:16:45]Read from MH i2c: E2 [22:16:45]MH_I2C_Read... [22:16:45]Read from MH i2c: E2 03 00 [22:16:45]MH_I2C_Read... [22:16:45]Read from MH i2c: E2 03 00 94 03 00 90 00 0B [22:16:45]RAPDU: 90 00 [22:16:45]wFMCommunicate OK [22:16:45]wFMCommunicate request_size=255 [22:16:45]MH_SAM_APDU [22:16: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 1C 84 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 40 D4 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 D4 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 68 00 00 00 00 07 04 06 00 14 D4 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 01 00 00 F4 03 04 00 4D 6A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E5 13 03 00 35 04 06 00 22 [22:16:45]Write to MH i2c: E2 02 01 95 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 1C 84 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 40 D4 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 D4 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 68 00 00 00 00 07 04 06 00 14 D4 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 01 00 00 F4 03 04 00 4D 6A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E5 13 03 00 35 04 06 00 22 00 00 48 [22:16:45]Write i2c OK [22:16:45]MH_I2C_Read... [22:16:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:45]Read from MH i2c: E2 [22:16:45]MH_I2C_Read... [22:16:45]Read from MH i2c: E2 03 00 [22:16:45]MH_I2C_Read... [22:16:45]Read from MH i2c: E2 03 00 95 03 00 90 00 0C [22:16:45]RAPDU: 90 00 [22:16:45]wFMCommunicate OK [22:16:45]wFMCommunicate request_size=10 [22:16:45]MH_SAM_APDU [22:16:45]CAPDU: 80 0D 02 02 05 48 20 1E A3 B8 [22:16:45]Write to MH i2c: E2 0D 00 96 03 80 0D 02 02 05 00 48 20 1E A3 B8 00 00 FE [22:16:45]Write i2c OK [22:16:45]MH_I2C_Read... [22:16:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:45]Read from MH i2c: E2 [22:16:45]MH_I2C_Read... [22:16:45]Read from MH i2c: E2 03 00 [22:16:45]MH_I2C_Read... [22:16:45]Read from MH i2c: E2 03 00 96 03 00 90 00 0D [22:16:45]RAPDU: 90 00 [22:16:45]wFMCommunicate OK [22:16:45]wFMCommunicate request_size=4 [22:16:45]MH_SAM_APDU [22:16:45]CAPDU: 80 0D 03 02 [22:16:45]Write to MH i2c: E2 08 00 97 03 80 0D 03 02 00 00 00 00 15 [22:16:45]Write i2c OK [22:16:45]MH_I2C_Read... [22:16:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:16:45]Read from MH i2c: E2 [22:16:45]MH_I2C_Read... [22:16:45]Read from MH i2c: E2 0B 00 [22:16:45]MH_I2C_Read... [22:16:45]Read from MH i2c: E2 0B 00 97 03 00 7A F1 BE AA 52 84 07 DA 90 00 A0 [22:16:45]RAPDU: 7A F1 BE AA 52 84 07 DA 90 00 [22:16:45]wFMCommunicate OK [22:16:45]SAM_PROTO_SignData done [22:16:45]FM_MakeSignedData done [22:16:45]CreateOFDProtocolMessage [22:16:45]wFMCommunicate request_size=4 [22:16:45]MH_SAM_APDU [22:16:45]CAPDU: 80 11 00 00 [22:16:45]Write to MH i2c: E2 08 00 98 03 80 11 00 00 00 00 00 00 15 [22:16:45]Write i2c OK [22:16:45]MH_I2C_Read... [22:16:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:45]Read from MH i2c: E2 [22:16:45]MH_I2C_Read... [22:16:45]Read from MH i2c: E2 17 00 [22:16:45]MH_I2C_Read... [22:16:45]Read from MH i2c: E2 17 00 98 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 6A [22:16:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [22:16:45]wFMCommunicate OK [22:16:45]CreateOFDProtocolMessage done [22:16:45]OFDSenderStorePacket 201701 [22:16:45]StoreOFDPacket docnum=201701 [22:16:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B4 CC 07 01 E2 F8 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 33 FF 03 08 00 03 1C 84 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 40 D4 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 D4 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 68 00 00 00 00 07 04 06 00 14 D4 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 01 00 00 F4 03 04 00 4D 6A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E5 13 03 00 35 04 06 00 22 48 20 1E A3 B8 7A F1 BE AA 52 84 07 DA [22:16:45]CheckFolder [22:16:45]dirname=/storage/ofd_packets [22:16:45]CheckFolder done [22:16:45]ProducePacketName [22:16:45]name=ofd_packets/00201701 [22:16:45]NVStorageSaveData ofd_packets/00201701 [22:16:45]File name is /storage/ofd_packets/00201701 [22:16:45]Write 301 bytes [22:16:45]NVStorageSaveData done [22:16:45]OFDSenderStorePacket done [22:16:45]KKMCreateOFDPacket done [22:16:45]NVStorageSaveData kkm_last_timestamp [22:16:45]File name is /storage/kkm_last_timestamp [22:16:45]Write 4 bytes [22:16:45]NVStorageSaveData done [22:16:45]ExternCall_PrintAddStr [22:16:45]wPrintStart [22:16:45]Write to MH i2c: 01 00 00 99 03 9C [22:16:45]Write i2c OK [22:16:45]MH_I2C_Read... [22:16:45]Read from MH i2c: 01 [22:16:45]MH_I2C_Read... [22:16:45]Read from MH i2c: 01 07 00 [22:16:45]MH_I2C_Read... [22:16:45]Read from MH i2c: 01 07 00 99 03 00 00 00 00 00 FF 0F B1 [22:16:45]RasterBufferAndPrint [22:16:45]line Счет N : (1)449458 [22:16:45]line ИНН: 02508201610067 [22:16:45]line Контрольно-Кассовый Чек [22:16:45]line ПРОДАЖА [22:16:45]line ТРК (МРК, ГНК) : 61 [22:16:45]line Товар: 2710124500 [22:16:45]line Аи-95-К-3 [22:16:45]line 33.820 * 74.20 [22:16:45]line = 2509.44 [22:16:45]line НДС 12% НСП 1% [22:16:45]line > о реализуемом товаре [22:16:45]line ОКРУГЛЕНИЕ: -0.44 [22:16:45]line ИТОГО: 2509.00 [22:16:45]line Внесено: 4000.00 [22:16:45]line СДАЧА: 1491.00 [22:16:45]line НСП 1% : 22.21 [22:16:45]line НДС 12% : 266.49 [22:16:45]line Наличными: 2509.00 [22:16:45]line Безнал.: 0.00 [22:16:45]line Место: АЗС № 171 "Партнер Нефть" [22:16:45]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [22:16:45]line СНО: Общий режим [22:16:45]line Чек 463 26.10.2024 22:16 [22:16:45]line Смена: 543 ФФД: 1.0 [22:16:45]line ЗНМ: 0300000109 [22:16:45]line РНМ: 0000000000091777 [22:16:45]line Версия ККМ: 001 [22:16:45]line ФМ: 0000000000871756 [22:16:45]line ФД: 201701 [22:16:45]line ФПД: 37693171868600 [22:16:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T221645&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201701&fm=37693171868600&tin=02508201610067®Number=0000000000091777&sum=250900 [22:16:45]OFD Sender: Processing packet 201701 [packets to send 112, broken 111] [22:16:45]ProducePacketName [22:16:45]name=ofd_packets/00201701 [22:16:45]OFD Sender: To server: pG, [22:16:45]CommunicateWithHost lk.salyk.kg:30040 [22:16:45]ConnectInit lk.salyk.kg [22:16:45]written 0, free lines is 4095 [22:16:45]Connected sock=10 [22:16:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 B4 CC 07 01 E2 F8 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 33 FF 03 08 00 03 1C 84 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 40 D4 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 D4 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 68 00 00 00 00 07 04 06 00 14 D4 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 01 00 00 F4 03 04 00 4D 6A 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E5 13 03 00 35 04 06 00 22 48 20 1E A3 B8 7A F1 BE AA 52 84 07 DA [22:16:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 7D DE 47 00 61 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E5 13 03 00 F4 03 04 00 F4 15 1D 67 B6 04 01 00 00 CE 84 44 6C 39 41 F1 31 [22:16:46]CommunicateWithHost err = 0 [22:16:46]CheckOFDResponse [22:16:46]1017 (14) - 77093643461234 [22:16:46]1041 (16) - 0000000000871756 [22:16:46]1040 (4) - 201701 [22:16:46]1012 (4) - 26.10.2024 16:16 [22:16:46]1206 (1) - 0 [22:16:46]OFD Sender: Remove packet 201701 [22:16:46]ProducePacketName [22:16:46]name=ofd_packets/00201701 [22:16:46]NVStorageDeleteData [22:16:46]Write to MH i2c: 01 00 00 C4 03 C7 [22:16:46]Write i2c OK [22:16:46]MH_I2C_Read... [22:16:46]Read from MH i2c: 01 [22:16:46]MH_I2C_Read... [22:16:46]Read from MH i2c: 01 07 00 [22:16:46]MH_I2C_Read... [22:16:46]Read from MH i2c: 01 07 00 C4 03 00 00 00 00 00 99 0C 73 [22:16:46]RasterBufferAndPrint [22:16:46]line [22:16:46]line [22:16:46]line [22:16:46]line [22:16:46]line [22:16:46]written 0, free lines is 3229 [22:16:46]MH_Cut [22:16:46]Write to MH i2c: D1 01 00 CB 03 01 A0 [22:16:46]Write i2c OK [22:16:46]MH_I2C_Read... [22:16:46]Read from MH i2c: D1 [22:16:46]MH_I2C_Read... [22:16:46]Read from MH i2c: D1 01 00 [22:16:46]MH_I2C_Read... [22:16:46]Read from MH i2c: D1 01 00 CB 03 00 9F [22:16:46]Write to MH i2c: 01 00 00 CC 03 CF [22:16:46]Write i2c OK [22:16:46]MH_I2C_Read... [22:16:46]OFD Sender: No OFD packet to send [22:16:47]*** Cut start [22:16:47]*** Purtial cut [22:16:47]*** CUTSNS_PIN = 0 [22:16:47]*** Stage 1: CUTSNS_PIN = 1 [22:16:49]Read from MH i2c: 01 [22:16:49]MH_I2C_Read... [22:16:49]*** Stop cut motor [22:16:49]*** Cut end [22:16:49]Read from MH i2c: 01 07 00 [22:16:49]MH_I2C_Read... [22:16:49]Read from MH i2c: 01 07 00 CC 03 00 00 00 00 00 FF 0F E4 [22:16:49]process_action close_receipt done [22:16:49]requested_data is exist [22:16:49]produce_requested_data [22:16:49]requested_item fm.sn is exist - process it [22:16:49]wFMCommunicate request_size=4 [22:16:49]MH_SAM_APDU [22:16:49]CAPDU: 80 11 00 00 [22:16:49]Write to MH i2c: E2 08 00 CD 03 80 11 00 00 00 00 00 00 4A [22:16:49]Write i2c OK [22:16:49]MH_I2C_Read... [22:16:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:49]Read from MH i2c: E2 [22:16:49]MH_I2C_Read... [22:16:49]Read from MH i2c: E2 17 00 [22:16:49]MH_I2C_Read... [22:16:49]Read from MH i2c: E2 17 00 CD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9F [22:16:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [22:16:49]wFMCommunicate OK [22:16:49]requested_item fd.num is exist - process it [22:16:49]SAM_PROTO_GetFieldsCounters [22:16:49]wFMCommunicate request_size=4 [22:16:49]MH_SAM_APDU [22:16:49]CAPDU: 80 13 00 00 [22:16:49]Write to MH i2c: E2 08 00 CE 03 80 13 00 00 00 00 00 00 4D [22:16:49]Write i2c OK [22:16:49]MH_I2C_Read... [22:16:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:16:49]Read from MH i2c: E2 [22:16:49]MH_I2C_Read... [22:16:49]Read from MH i2c: E2 62 00 [22:16:49]MH_I2C_Read... [22:16:49]Read from MH i2c: E2 62 00 CE 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E5 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CF 01 00 00 5E 04 04 00 CF 01 00 00 57 04 04 00 D0 01 00 00 19 04 04 00 00 00 00 00 90 00 02 [22:16:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E5 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CF 01 00 00 5E 04 04 00 CF 01 00 00 57 04 04 00 D0 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:16:49]wFMCommunicate OK [22:16:49]SAM_PROTO_GetFieldsCounters done [22:16:49]requested_item shift.num is exist - process it [22:16:49]requested_item shift.opened is exist - process it [22:16:49]req_shift_opened [22:16:49]FM_GetShiftState [22:16:49]SAM_PROTO_GetShiftState [22:16:49]wFMCommunicate request_size=4 [22:16:49]MH_SAM_APDU [22:16:49]CAPDU: 80 13 01 00 [22:16:49]Write to MH i2c: E2 08 00 CF 03 80 13 01 00 00 00 00 00 4F [22:16:49]Write i2c OK [22:16:49]MH_I2C_Read... [22:16:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:49]Read from MH i2c: E2 [22:16:49]MH_I2C_Read... [22:16:49]Read from MH i2c: E2 0E 00 [22:16:49]MH_I2C_Read... [22:16:49]Read from MH i2c: E2 0E 00 CF 03 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 5E [22:16:49]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [22:16:49]wFMCommunicate OK [22:16:49]SAM_PROTO_GetShiftState done [22:16:49]FM_GetShiftState done [22:16:49]req_shift_opened done [22:16:49]requested_item shift.open_date is exist - process it [22:16:49]req_shift_open_date [22:16:49]req_shift_open_date done [22:16:49]produce_requested_data done [22:16:49]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201701,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [22:16:49]process_action_free close_receipt [22:16:49]json_value_free [22:16:49]json_value_free done [22:16:49]process_json_proto returns [22:16:49]Send response to host [22:16:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201701,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [22:16:49]free response buf [22:16:49]execute_script done [22:16:49]execute_script returns [22:16:49]free content buf [22:16:49]Sock 9.Close socket [22:16:49]Sock 9.Thread stoped [22:16:51]OFD Sender: No OFD packet to send [22:16:56]OFD Sender: No OFD packet to send [22:17:01]OFD Sender: No OFD packet to send [22:17:06]OFD Sender: No OFD packet to send [22:17:11]OFD Sender: No OFD packet to send [22:17:16]OFD Sender: No OFD packet to send [22:17:21]OFD Sender: No OFD packet to send [22:17:26]OFD Sender: No OFD packet to send [22:17:31]OFD Sender: No OFD packet to send [22:17:36]OFD Sender: No OFD packet to send [22:17:41]OFD Sender: No OFD packet to send [22:17:46]OFD Sender: No OFD packet to send [22:17:51]OFD Sender: No OFD packet to send [22:17:56]OFD Sender: No OFD packet to send [22:18:01]OFD Sender: No OFD packet to send [22:18:06]OFD Sender: No OFD packet to send [22:18:11]OFD Sender: No OFD packet to send [22:18:16]OFD Sender: No OFD packet to send [22:18:21]OFD Sender: No OFD packet to send [22:18:26]OFD Sender: No OFD packet to send [22:18:31]OFD Sender: No OFD packet to send [22:18:36]OFD Sender: No OFD packet to send [22:18:41]OFD Sender: No OFD packet to send [22:18:46]OFD Sender: No OFD packet to send [22:18:51]OFD Sender: No OFD packet to send [22:18:56]OFD Sender: No OFD packet to send [22:19:01]OFD Sender: No OFD packet to send [22:19:06]OFD Sender: No OFD packet to send [22:19:11]OFD Sender: No OFD packet to send [22:19:16]OFD Sender: No OFD packet to send [22:19:21]OFD Sender: No OFD packet to send [22:19:26]OFD Sender: No OFD packet to send [22:19:31]OFD Sender: No OFD packet to send [22:19:36]OFD Sender: No OFD packet to send [22:19:41]OFD Sender: No OFD packet to send [22:19:46]OFD Sender: No OFD packet to send [22:19:51]OFD Sender: No OFD packet to send [22:19:56]OFD Sender: No OFD packet to send [22:20:01]OFD Sender: No OFD packet to send [22:20:06]OFD Sender: No OFD packet to send [22:20:11]OFD Sender: No OFD packet to send [22:20:16]OFD Sender: No OFD packet to send [22:20:21]OFD Sender: No OFD packet to send [22:20:26]OFD Sender: No OFD packet to send [22:20:31]OFD Sender: No OFD packet to send [22:20:36]OFD Sender: No OFD packet to send [22:20:41]OFD Sender: No OFD packet to send [22:20:46]OFD Sender: No OFD packet to send [22:20:51]OFD Sender: No OFD packet to send [22:20:56]OFD Sender: No OFD packet to send [22:21:01]OFD Sender: No OFD packet to send [22:21:06]OFD Sender: No OFD packet to send [22:21:11]OFD Sender: No OFD packet to send [22:21:16]OFD Sender: No OFD packet to send [22:21:22]OFD Sender: No OFD packet to send [22:21:27]OFD Sender: No OFD packet to send [22:21:32]OFD Sender: No OFD packet to send [22:21:37]OFD Sender: No OFD packet to send [22:21:42]OFD Sender: No OFD packet to send [22:21:47]OFD Sender: No OFD packet to send [22:21:52]OFD Sender: No OFD packet to send [22:21:57]OFD Sender: No OFD packet to send [22:22:02]OFD Sender: No OFD packet to send [22:22:07]OFD Sender: No OFD packet to send [22:22:12]OFD Sender: No OFD packet to send [22:22:17]OFD Sender: No OFD packet to send [22:22:22]OFD Sender: No OFD packet to send [22:22:27]OFD Sender: No OFD packet to send [22:22:32]OFD Sender: No OFD packet to send [22:22:37]OFD Sender: No OFD packet to send [22:22:42]OFD Sender: No OFD packet to send [22:22:47]OFD Sender: No OFD packet to send [22:22:52]OFD Sender: No OFD packet to send [22:22:57]OFD Sender: No OFD packet to send [22:23:02]OFD Sender: No OFD packet to send [22:23:07]OFD Sender: No OFD packet to send [22:23:12]OFD Sender: No OFD packet to send [22:23:17]OFD Sender: No OFD packet to send [22:23:22]OFD Sender: No OFD packet to send [22:23:27]OFD Sender: No OFD packet to send [22:23:32]OFD Sender: No OFD packet to send [22:23:37]OFD Sender: No OFD packet to send [22:23:42]OFD Sender: No OFD packet to send [22:23:47]OFD Sender: No OFD packet to send [22:23:52]OFD Sender: No OFD packet to send [22:23:57]OFD Sender: No OFD packet to send [22:24:02]OFD Sender: No OFD packet to send [22:24:07]OFD Sender: No OFD packet to send [22:24:12]OFD Sender: No OFD packet to send [22:24:17]OFD Sender: No OFD packet to send [22:24:22]OFD Sender: No OFD packet to send [22:24:27]OFD Sender: No OFD packet to send [22:24:32]OFD Sender: No OFD packet to send [22:24:37]OFD Sender: No OFD packet to send [22:24:42]OFD Sender: No OFD packet to send [22:24:47]OFD Sender: No OFD packet to send [22:24:52]OFD Sender: No OFD packet to send [22:24:57]OFD Sender: No OFD packet to send [22:25:02]OFD Sender: No OFD packet to send [22:25:07]OFD Sender: No OFD packet to send [22:25:12]OFD Sender: No OFD packet to send [22:25:17]OFD Sender: No OFD packet to send [22:25:22]OFD Sender: No OFD packet to send [22:25:27]OFD Sender: No OFD packet to send [22:25:32]OFD Sender: No OFD packet to send [22:25:37]OFD Sender: No OFD packet to send [22:25:42]OFD Sender: No OFD packet to send [22:25:47]OFD Sender: No OFD packet to send [22:25:52]OFD Sender: No OFD packet to send [22:25:57]OFD Sender: No OFD packet to send [22:26:02]OFD Sender: No OFD packet to send [22:26:07]OFD Sender: No OFD packet to send [22:26:12]OFD Sender: No OFD packet to send [22:26:17]OFD Sender: No OFD packet to send [22:26:22]OFD Sender: No OFD packet to send [22:26:27]OFD Sender: No OFD packet to send [22:26:32]OFD Sender: No OFD packet to send [22:26:37]OFD Sender: No OFD packet to send [22:26:42]OFD Sender: No OFD packet to send [22:26:47]OFD Sender: No OFD packet to send [22:26:52]OFD Sender: No OFD packet to send [22:26:57]OFD Sender: No OFD packet to send [22:27:02]OFD Sender: No OFD packet to send [22:27:07]OFD Sender: No OFD packet to send [22:27:12]OFD Sender: No OFD packet to send [22:27:17]OFD Sender: No OFD packet to send [22:27:22]OFD Sender: No OFD packet to send [22:27:27]OFD Sender: No OFD packet to send [22:27:32]OFD Sender: No OFD packet to send [22:27:37]OFD Sender: No OFD packet to send [22:27:42]OFD Sender: No OFD packet to send [22:27:47]OFD Sender: No OFD packet to send [22:27:52]OFD Sender: No OFD packet to send [22:27:57]OFD Sender: No OFD packet to send [22:28:02]OFD Sender: No OFD packet to send [22:28:07]OFD Sender: No OFD packet to send [22:28:12]OFD Sender: No OFD packet to send [22:28:17]OFD Sender: No OFD packet to send [22:28:22]OFD Sender: No OFD packet to send [22:28:27]OFD Sender: No OFD packet to send [22:28:32]OFD Sender: No OFD packet to send [22:28:37]OFD Sender: No OFD packet to send [22:28:42]OFD Sender: No OFD packet to send [22:28:47]OFD Sender: No OFD packet to send [22:28:52]OFD Sender: No OFD packet to send [22:28:57]OFD Sender: No OFD packet to send [22:29:02]OFD Sender: No OFD packet to send [22:29:07]OFD Sender: No OFD packet to send [22:29:12]OFD Sender: No OFD packet to send [22:29:17]OFD Sender: No OFD packet to send [22:29:22]OFD Sender: No OFD packet to send [22:29:27]OFD Sender: No OFD packet to send [22:29:32]OFD Sender: No OFD packet to send [22:29:37]OFD Sender: No OFD packet to send [22:29:42]OFD Sender: No OFD packet to send [22:29:47]OFD Sender: No OFD packet to send [22:29:52]OFD Sender: No OFD packet to send [22:29:57]OFD Sender: No OFD packet to send [22:30:02]OFD Sender: No OFD packet to send [22:30:07]OFD Sender: No OFD packet to send [22:30:12]OFD Sender: No OFD packet to send [22:30:17]OFD Sender: No OFD packet to send [22:30:22]OFD Sender: No OFD packet to send [22:30:27]OFD Sender: No OFD packet to send [22:30:32]OFD Sender: No OFD packet to send [22:30:37]OFD Sender: No OFD packet to send [22:30:42]OFD Sender: No OFD packet to send [22:30:47]OFD Sender: No OFD packet to send [22:30:52]OFD Sender: No OFD packet to send [22:30:57]OFD Sender: No OFD packet to send [22:30:58]accept exits with 8 [22:30:58]New connection [22:30:58]New thread 3066936676 created [22:30:58]Thread 3067080036 joined [22:30:58]Waiting for new connection... [22:30:58] Sock 8.Parse request [22:30:58]Sock 8.Check first char [22:30:58]Sock 8.First char is OK [22:30:58]request: POST /json_proto HTTP/1.0 [22:30:58]Method: POST [22:30:58]URL: /json_proto [22:30:58]Method is POST - this is cgi request [22:30:58]url: /json_proto [22:30:58]query_string will be loaded in cgi processing [22:30:58]execute_cgi json_proto POST (null) [22:30:58]execute_cgi path=json_proto method=POST [22:30:58]POST find Content-Length [22:30:58]Host: 172.17.63.195:8080 [22:30:58]Content-Length: 797 [22:30:58]Content-Type: application/json [22:30:58] [22:30:58]POST finish read [22:30:58]Found Content-Length = 797 [22:30:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4467205", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:58]execute_script... [22:30:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4467205", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:58]POST & json_proto [22:30:58]process_json_proto [22:30:58]json parsed OK: [22:30:58]protocol is kg_v1.0 [22:30:58]action value=close_receipt [22:30:58]process_action close_receipt [22:30:58]cmd_close_receipt [22:30:58]MH_GetDate [22:30:58]Write to MH i2c: F0 00 00 D0 03 C2 [22:30:58]Write i2c OK [22:30:58]MH_I2C_Read... [22:30:58]Read from MH i2c: F0 [22:30:58]MH_I2C_Read... [22:30:58]Read from MH i2c: F0 09 00 [22:30:58]MH_I2C_Read... [22:30:58]Read from MH i2c: F0 09 00 D0 03 00 A3 6D 1D 67 68 46 19 67 8D [22:30:58]GetLastDocTimeStamp 1729981005 [22:30:58]current date 1729981859 [22:30:58]FM_GetShiftState [22:30:58]SAM_PROTO_GetShiftState [22:30:58]wFMCommunicate request_size=4 [22:30:58]MH_SAM_APDU [22:30:58]CAPDU: 80 13 01 00 [22:30:58]Write to MH i2c: E2 08 00 D1 03 80 13 01 00 00 00 00 00 51 [22:30:58]Write i2c OK [22:30:58]MH_I2C_Read... [22:30:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:58]Read from MH i2c: E2 [22:30:58]MH_I2C_Read... [22:30:58]Read from MH i2c: E2 0E 00 [22:30:58]MH_I2C_Read... [22:30:58]Read from MH i2c: E2 0E 00 D1 03 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 60 [22:30:58]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [22:30:58]wFMCommunicate OK [22:30:58]SAM_PROTO_GetShiftState done [22:30:58]FM_GetShiftState done [22:30:58]opened in 1729900879 [22:30:58]opened+sec_in_day 1729987279 [22:30:58]quantity*price = 0 [22:30:58]sum+1 = 1 [22:30:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 464 26.10.2024 22:30 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Талоны: Топливные Талоны 4467205 ФМ: 0000000000871756 ФД: 201702 ФПД: 11327825442023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T223059&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201702&fm=11327825442023&tin=02508201610067®Number=0000000000091777&sum=0 [22:30:59]StoreToDocumentArchive [22:30:59]shift 543 fd 201702 [22:30:59]save to /storage/0543/doc_00201702 [22:30:59]save last doc name /storage/0543/doc_00201702 to /storage/kkm_last_doc_name [22:30:59]save OK [22:30:59]Clear old archive folders... [22:30:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:30:59]tlvbuf is B6EF9660 [22:30:59]SAM_PROTO_ClearQueue [22:30:59]wFMCommunicate request_size=4 [22:30:59]MH_SAM_APDU [22:30:59]CAPDU: 80 09 00 00 [22:30:59]Write to MH i2c: E2 08 00 DE 03 80 09 00 00 00 00 00 00 53 [22:30:59]Write i2c OK [22:30:59]MH_I2C_Read... [22:30:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:30:59]Read from MH i2c: E2 [22:30:59]MH_I2C_Read... [22:30:59]Read from MH i2c: E2 03 00 [22:30:59]MH_I2C_Read... [22:30:59]Read from MH i2c: E2 03 00 DE 03 00 90 00 55 [22:30:59]RAPDU: 90 00 [22:30:59]wFMCommunicate OK [22:30:59]SAM_PROTO_ClearQueue done [22:30:59]KKMCreateOFDPacket [22:30:59]OFDProtocolAddRootSTLVToBuf [22:30:59]FM_MakeSignedData [22:30:59]FM_MakeSignedData [22:30:59]SAM_PROTO_SignData [22:30:59]wFMCommunicate request_size=4 [22:30:59]MH_SAM_APDU [22:30:59]CAPDU: 80 0D 01 02 [22:30:59]Write to MH i2c: E2 08 00 DF 03 80 0D 01 02 00 00 00 00 5B [22:30:59]Write i2c OK [22:30:59]MH_I2C_Read... [22:30:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:30:59]Read from MH i2c: E2 [22:30:59]MH_I2C_Read... [22:30:59]Read from MH i2c: E2 03 00 [22:30:59]MH_I2C_Read... [22:30:59]Read from MH i2c: E2 03 00 DF 03 00 90 00 56 [22:30:59]RAPDU: 90 00 [22:30:59]wFMCommunicate OK [22:30:59]wFMCommunicate request_size=255 [22:30:59]MH_SAM_APDU [22:30:59]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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 01 00 00 F4 03 04 00 A3 6D 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E6 13 03 00 35 04 06 00 0A 4D 77 02 [22:30:59]Write to MH i2c: E2 02 01 E0 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 01 00 00 F4 03 04 00 A3 6D 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E6 13 03 00 35 04 06 00 0A 4D 77 02 00 00 7D [22:30:59]Write i2c OK [22:30:59]MH_I2C_Read... [22:30:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:59]Read from MH i2c: E2 [22:30:59]MH_I2C_Read... [22:30:59]Read from MH i2c: E2 03 00 [22:30:59]MH_I2C_Read... [22:30:59]Read from MH i2c: E2 03 00 E0 03 00 90 00 57 [22:30:59]RAPDU: 90 00 [22:30:59]wFMCommunicate OK [22:30:59]wFMCommunicate request_size=7 [22:30:59]MH_SAM_APDU [22:30:59]CAPDU: 80 0D 02 02 02 F4 E7 [22:30:59]Write to MH i2c: E2 0A 00 E1 03 80 0D 02 02 02 00 F4 E7 00 00 3D [22:30:59]Write i2c OK [22:30:59]MH_I2C_Read... [22:30:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:59]Read from MH i2c: E2 [22:30:59]MH_I2C_Read... [22:30:59]Read from MH i2c: E2 03 00 [22:30:59]MH_I2C_Read... [22:30:59]Read from MH i2c: E2 03 00 E1 03 00 90 00 58 [22:30:59]RAPDU: 90 00 [22:30:59]wFMCommunicate OK [22:30:59]wFMCommunicate request_size=4 [22:30:59]MH_SAM_APDU [22:30:59]CAPDU: 80 0D 03 02 [22:30:59]Write to MH i2c: E2 08 00 E2 03 80 0D 03 02 00 00 00 00 60 [22:30:59]Write i2c OK [22:30:59]MH_I2C_Read... [22:30:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:30:59]Read from MH i2c: E2 [22:30:59]MH_I2C_Read... [22:30:59]Read from MH i2c: E2 0B 00 [22:30:59]MH_I2C_Read... [22:30:59]Read from MH i2c: E2 0B 00 E2 03 00 02 25 F5 9C E6 46 9B 25 90 00 05 [22:30:59]RAPDU: 02 25 F5 9C E6 46 9B 25 90 00 [22:30:59]wFMCommunicate OK [22:30:59]SAM_PROTO_SignData done [22:30:59]FM_MakeSignedData done [22:30:59]CreateOFDProtocolMessage [22:30:59]wFMCommunicate request_size=4 [22:30:59]MH_SAM_APDU [22:30:59]CAPDU: 80 11 00 00 [22:30:59]Write to MH i2c: E2 08 00 E3 03 80 11 00 00 00 00 00 00 60 [22:30:59]Write i2c OK [22:30:59]MH_I2C_Read... [22:30:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:59]Read from MH i2c: E2 [22:30:59]MH_I2C_Read... [22:30:59]Read from MH i2c: E2 17 00 [22:30:59]MH_I2C_Read... [22:30:59]Read from MH i2c: E2 17 00 E3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B5 [22:30:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [22:30:59]wFMCommunicate OK [22:30:59]CreateOFDProtocolMessage done [22:30:59]OFDSenderStorePacket 201702 [22:30:59]StoreOFDPacket docnum=201702 [22:30:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 A4 8C 04 01 2B 78 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 01 00 00 F4 03 04 00 A3 6D 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E6 13 03 00 35 04 06 00 0A 4D 77 02 F4 E7 02 25 F5 9C E6 46 9B 25 [22:30:59]CheckFolder [22:30:59]dirname=/storage/ofd_packets [22:30:59]CheckFolder done [22:30:59]ProducePacketName [22:30:59]name=ofd_packets/00201702 [22:30:59]NVStorageSaveData ofd_packets/00201702 [22:30:59]File name is /storage/ofd_packets/00201702 [22:30:59]Write 298 bytes [22:30:59]NVStorageSaveData done [22:30:59]OFDSenderStorePacket done [22:30:59]KKMCreateOFDPacket done [22:30:59]NVStorageSaveData kkm_last_timestamp [22:30:59]File name is /storage/kkm_last_timestamp [22:30:59]Write 4 bytes [22:30:59]NVStorageSaveData done [22:30:59]ExternCall_PrintAddStr [22:30:59]wPrintStart [22:30:59]Write to MH i2c: 01 00 00 E4 03 E7 [22:30:59]Write i2c OK [22:30:59]MH_I2C_Read... [22:30:59]Read from MH i2c: 01 [22:30:59]MH_I2C_Read... [22:30:59]Read from MH i2c: 01 07 00 [22:30:59]MH_I2C_Read... [22:30:59]Read from MH i2c: 01 07 00 E4 03 00 00 00 00 00 FF 0F FC [22:30:59]RasterBufferAndPrint [22:30:59]line Счет N : (1)449461 [22:30:59]line ИНН: 02508201610067 [22:30:59]line Контрольно-Кассовый Чек [22:30:59]line ПРОДАЖА [22:30:59]line ТРК (МРК, ГНК) : 43 [22:30:59]line Товар: 2710194210 [22:30:59]line ДТ-К-2 [22:30:59]line 20.000 * 0.00 [22:30:59]line = 0.00 [22:30:59]line НДС 12% НСП 1% [22:30:59]line > о реализуемом товаре [22:30:59]line ИТОГО: 0.00 [22:30:59]line НСП 1% : 0.00 [22:30:59]line НДС 12% : 0.00 [22:30:59]line Наличными: 0.00 [22:30:59]line Безнал.: 0.00 [22:30:59]line Место: АЗС № 171 "Партнер Нефть" [22:30:59]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [22:30:59]line СНО: Общий режим [22:30:59]line Чек 464 26.10.2024 22:30 [22:30:59]line Смена: 543 ФФД: 1.0 [22:30:59]line ЗНМ: 0300000109 [22:30:59]line РНМ: 0000000000091777 [22:30:59]line Версия ККМ: 001 [22:30:59]line Талоны: Топливные Талоны [22:30:59]line 4467205 [22:30:59]line ФМ: 0000000000871756 [22:30:59]line ФД: 201702 [22:30:59]line ФПД: 11327825442023 [22:31:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T223059&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201702&fm=11327825442023&tin=02508201610067®Number=0000000000091777&sum=0 [22:31:00]OFD Sender: Processing packet 201702 [packets to send 112, broken 111] [22:31:00]ProducePacketName [22:31:00]name=ofd_packets/00201702 [22:31:00]OFD Sender: To server: pG, [22:31:00]CommunicateWithHost lk.salyk.kg:30040 [22:31:00]ConnectInit lk.salyk.kg [22:31:00]written 0, free lines is 4095 [22:31:00]Connected sock=10 [22:31:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 A4 8C 04 01 2B 78 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 01 00 00 F4 03 04 00 A3 6D 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E6 13 03 00 35 04 06 00 0A 4D 77 02 F4 E7 02 25 F5 9C E6 46 9B 25 [22:31:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 CD DA 47 00 7A 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E6 13 03 00 F4 03 04 00 4A 19 1D 67 B6 04 01 00 00 92 9F 49 1E 8D 9A 2E 2A [22:31:00]CommunicateWithHost err = 0 [22:31:00]CheckOFDResponse [22:31:00]1017 (14) - 77093643461234 [22:31:00]1041 (16) - 0000000000871756 [22:31:00]1040 (4) - 201702 [22:31:00]1012 (4) - 26.10.2024 16:31 [22:31:00]1206 (1) - 0 [22:31:00]OFD Sender: Remove packet 201702 [22:31:00]ProducePacketName [22:31:00]name=ofd_packets/00201702 [22:31:00]NVStorageDeleteData [22:31:00]Write to MH i2c: 01 00 00 0E 04 12 [22:31:00]Write i2c OK [22:31:00]MH_I2C_Read... [22:31:00]Read from MH i2c: 01 [22:31:00]MH_I2C_Read... [22:31:00]Read from MH i2c: 01 07 00 [22:31:00]MH_I2C_Read... [22:31:00]Read from MH i2c: 01 07 00 0E 04 00 00 00 00 00 AB 0C D0 [22:31:00]RasterBufferAndPrint [22:31:00]line [22:31:00]line [22:31:00]line [22:31:00]line [22:31:00]line [22:31:00]written 0, free lines is 3246 [22:31:00]MH_Cut [22:31:00]Write to MH i2c: D1 01 00 15 04 01 EB [22:31:00]Write i2c OK [22:31:00]MH_I2C_Read... [22:31:00]Read from MH i2c: D1 [22:31:00]MH_I2C_Read... [22:31:00]Read from MH i2c: D1 01 00 [22:31:00]MH_I2C_Read... [22:31:00]Read from MH i2c: D1 01 00 15 04 00 EA [22:31:00]Write to MH i2c: 01 00 00 16 04 1A [22:31:00]Write i2c OK [22:31:00]MH_I2C_Read... [22:31:01]OFD Sender: No OFD packet to send [22:31:01]*** Cut start [22:31:01]*** Purtial cut [22:31:01]*** Stage 1: CUTSNS_PIN = 1 [22:31:01]Read from MH i2c: 01 [22:31:01]MH_I2C_Read... [22:31:01]*** Stop cut motor [22:31:01]*** Cut end [22:31:01]Read from MH i2c: 01 07 00 [22:31:01]MH_I2C_Read... [22:31:01]Read from MH i2c: 01 07 00 16 04 00 00 00 00 00 FF 0F 2F [22:31:01]process_action close_receipt done [22:31:01]requested_data is exist [22:31:01]produce_requested_data [22:31:01]requested_item fm.sn is exist - process it [22:31:01]wFMCommunicate request_size=4 [22:31:01]MH_SAM_APDU [22:31:01]CAPDU: 80 11 00 00 [22:31:01]Write to MH i2c: E2 08 00 17 04 80 11 00 00 00 00 00 00 95 [22:31:01]Write i2c OK [22:31:01]MH_I2C_Read... [22:31:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:31:01]Read from MH i2c: E2 [22:31:01]MH_I2C_Read... [22:31:01]Read from MH i2c: E2 17 00 [22:31:01]MH_I2C_Read... [22:31:01]Read from MH i2c: E2 17 00 17 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 EA [22:31:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [22:31:01]wFMCommunicate OK [22:31:01]requested_item fd.num is exist - process it [22:31:01]SAM_PROTO_GetFieldsCounters [22:31:01]wFMCommunicate request_size=4 [22:31:01]MH_SAM_APDU [22:31:01]CAPDU: 80 13 00 00 [22:31:01]Write to MH i2c: E2 08 00 18 04 80 13 00 00 00 00 00 00 98 [22:31:01]Write i2c OK [22:31:01]MH_I2C_Read... [22:31:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:31:01]Read from MH i2c: E2 [22:31:01]MH_I2C_Read... [22:31:01]Read from MH i2c: E2 62 00 [22:31:01]MH_I2C_Read... [22:31:01]Read from MH i2c: E2 62 00 18 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E6 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D0 01 00 00 5E 04 04 00 D0 01 00 00 57 04 04 00 D1 01 00 00 19 04 04 00 00 00 00 00 90 00 51 [22:31:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E6 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D0 01 00 00 5E 04 04 00 D0 01 00 00 57 04 04 00 D1 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:31:01]wFMCommunicate OK [22:31:01]SAM_PROTO_GetFieldsCounters done [22:31:01]requested_item shift.num is exist - process it [22:31:01]requested_item shift.opened is exist - process it [22:31:01]req_shift_opened [22:31:01]FM_GetShiftState [22:31:01]SAM_PROTO_GetShiftState [22:31:01]wFMCommunicate request_size=4 [22:31:01]MH_SAM_APDU [22:31:01]CAPDU: 80 13 01 00 [22:31:01]Write to MH i2c: E2 08 00 19 04 80 13 01 00 00 00 00 00 9A [22:31:01]Write i2c OK [22:31:01]MH_I2C_Read... [22:31:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:31:02]Read from MH i2c: E2 [22:31:02]MH_I2C_Read... [22:31:02]Read from MH i2c: E2 0E 00 [22:31:02]MH_I2C_Read... [22:31:02]Read from MH i2c: E2 0E 00 19 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 A9 [22:31:02]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [22:31:02]wFMCommunicate OK [22:31:02]SAM_PROTO_GetShiftState done [22:31:02]FM_GetShiftState done [22:31:02]req_shift_opened done [22:31:02]requested_item shift.open_date is exist - process it [22:31:02]req_shift_open_date [22:31:02]req_shift_open_date done [22:31:02]produce_requested_data done [22:31:02]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201702,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [22:31:02]process_action_free close_receipt [22:31:02]json_value_free [22:31:02]json_value_free done [22:31:02]process_json_proto returns [22:31:02]Send response to host [22:31:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201702,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [22:31:02]free response buf [22:31:02]execute_script done [22:31:02]execute_script returns [22:31:02]free content buf [22:31:02]Sock 8.Close socket [22:31:02]Sock 8.Thread stoped [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:06]OFD Sender: No OFD packet to send [22:32:11]OFD Sender: No OFD packet to send [22:32:16]OFD Sender: No OFD packet to send [22:32:21]OFD Sender: No OFD packet to send [22:32:26]OFD Sender: No OFD packet to send [22:32:31]OFD Sender: No OFD packet to send [22:32:32]accept exits with 9 [22:32:32]New connection [22:32:32]New thread 3067080036 created [22:32:32]Thread 3066936676 joined [22:32:32]Waiting for new connection... [22:32:32] Sock 9.Parse request [22:32:32]Sock 9.Check first char [22:32:32]Sock 9.First char is OK [22:32:32]request: POST /json_proto HTTP/1.0 [22:32:32]Method: POST [22:32:32]URL: /json_proto [22:32:32]Method is POST - this is cgi request [22:32:32]url: /json_proto [22:32:32]query_string will be loaded in cgi processing [22:32:32]execute_cgi json_proto POST (null) [22:32:32]execute_cgi path=json_proto method=POST [22:32:32]POST find Content-Length [22:32:32]Host: 172.17.63.195:8080 [22:32:32]Content-Length: 679 [22:32:32]Content-Type: application/json [22:32:32] [22:32:32]POST finish read [22:32:32]Found Content-Length = 679 [22:32:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.800, "sum" : 990.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 990.00, "payments": [ { "type": 0, "sum" : 990.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:32]execute_script... [22:32:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.800, "sum" : 990.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 990.00, "payments": [ { "type": 0, "sum" : 990.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:32]POST & json_proto [22:32:32]process_json_proto [22:32:32]json parsed OK: [22:32:32]protocol is kg_v1.0 [22:32:32]action value=close_receipt [22:32:32]process_action close_receipt [22:32:32]cmd_close_receipt [22:32:32]MH_GetDate [22:32:32]Write to MH i2c: F0 00 00 1A 04 0D [22:32:32]Write i2c OK [22:32:32]MH_I2C_Read... [22:32:32]Read from MH i2c: F0 [22:32:32]MH_I2C_Read... [22:32:32]Read from MH i2c: F0 09 00 [22:32:32]MH_I2C_Read... [22:32:32]Read from MH i2c: F0 09 00 1A 04 00 01 6E 1D 67 68 46 19 67 37 [22:32:32]GetLastDocTimeStamp 1729981859 [22:32:32]current date 1729981953 [22:32:32]FM_GetShiftState [22:32:32]SAM_PROTO_GetShiftState [22:32:32]wFMCommunicate request_size=4 [22:32:32]MH_SAM_APDU [22:32:32]CAPDU: 80 13 01 00 [22:32:32]Write to MH i2c: E2 08 00 1B 04 80 13 01 00 00 00 00 00 9C [22:32:32]Write i2c OK [22:32:32]MH_I2C_Read... [22:32:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:32]Read from MH i2c: E2 [22:32:32]MH_I2C_Read... [22:32:32]Read from MH i2c: E2 0E 00 [22:32:32]MH_I2C_Read... [22:32:32]Read from MH i2c: E2 0E 00 1B 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 AB [22:32:32]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [22:32:32]wFMCommunicate OK [22:32:32]SAM_PROTO_GetShiftState done [22:32:32]FM_GetShiftState done [22:32:32]opened in 1729900879 [22:32:32]opened+sec_in_day 1729987279 [22:32:32]quantity*price = 99012 [22:32:32]sum+1 = 99013 [22:32:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 990.00 Внесено: 1000.00 СДАЧА: 10.00 НСП 1% : 8.76 НДС 12% : 105.14 Наличными: 990.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 465 26.10.2024 22:32 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201703 ФПД: 203016290276872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T223233&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201703&fm=203016290276872&tin=02508201610067®Number=0000000000091777&sum=99000 [22:32:33]StoreToDocumentArchive [22:32:33]shift 543 fd 201703 [22:32:33]save to /storage/0543/doc_00201703 [22:32:33]save last doc name /storage/0543/doc_00201703 to /storage/kkm_last_doc_name [22:32:33]save OK [22:32:33]Clear old archive folders... [22:32:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:32:33]tlvbuf is 000FCB90 [22:32:33]SAM_PROTO_ClearQueue [22:32:33]wFMCommunicate request_size=4 [22:32:33]MH_SAM_APDU [22:32:33]CAPDU: 80 09 00 00 [22:32:33]Write to MH i2c: E2 08 00 28 04 80 09 00 00 00 00 00 00 9E [22:32:33]Write i2c OK [22:32:33]MH_I2C_Read... [22:32:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:32:33]Read from MH i2c: E2 [22:32:33]MH_I2C_Read... [22:32:33]Read from MH i2c: E2 03 00 [22:32:33]MH_I2C_Read... [22:32:33]Read from MH i2c: E2 03 00 28 04 00 90 00 A0 [22:32:33]RAPDU: 90 00 [22:32:33]wFMCommunicate OK [22:32:33]SAM_PROTO_ClearQueue done [22:32:33]KKMCreateOFDPacket [22:32:33]OFDProtocolAddRootSTLVToBuf [22:32:33]FM_MakeSignedData [22:32:33]FM_MakeSignedData [22:32:33]SAM_PROTO_SignData [22:32:33]wFMCommunicate request_size=4 [22:32:33]MH_SAM_APDU [22:32:33]CAPDU: 80 0D 01 02 [22:32:33]Write to MH i2c: E2 08 00 29 04 80 0D 01 02 00 00 00 00 A6 [22:32:33]Write i2c OK [22:32:33]MH_I2C_Read... [22:32:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:32:33]Read from MH i2c: E2 [22:32:33]MH_I2C_Read... [22:32:33]Read from MH i2c: E2 03 00 [22:32:33]MH_I2C_Read... [22:32:33]Read from MH i2c: E2 03 00 29 04 00 90 00 A1 [22:32:33]RAPDU: 90 00 [22:32:33]wFMCommunicate OK [22:32:33]wFMCommunicate request_size=255 [22:32:33]MH_SAM_APDU [22:32: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 32 FF 03 08 00 03 D0 39 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C4 82 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 82 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 29 00 00 00 00 07 04 06 00 B8 82 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 01 00 00 F4 03 04 00 01 6E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E7 13 03 00 35 04 06 00 B8 [22:32:33]Write to MH i2c: E2 02 01 2A 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 32 FF 03 08 00 03 D0 39 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C4 82 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 82 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 29 00 00 00 00 07 04 06 00 B8 82 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 01 00 00 F4 03 04 00 01 6E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E7 13 03 00 35 04 06 00 B8 00 00 FC [22:32:33]Write i2c OK [22:32:33]MH_I2C_Read... [22:32:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:34]Read from MH i2c: E2 [22:32:34]MH_I2C_Read... [22:32:34]Read from MH i2c: E2 03 00 [22:32:34]MH_I2C_Read... [22:32:34]Read from MH i2c: E2 03 00 2A 04 00 90 00 A2 [22:32:34]RAPDU: 90 00 [22:32:34]wFMCommunicate OK [22:32:34]wFMCommunicate request_size=10 [22:32:34]MH_SAM_APDU [22:32:34]CAPDU: 80 0D 02 02 05 A4 69 DD 96 08 [22:32:34]Write to MH i2c: E2 0D 00 2B 04 80 0D 02 02 05 00 A4 69 DD 96 08 00 00 3B [22:32:34]Write i2c OK [22:32:34]MH_I2C_Read... [22:32:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:34]Read from MH i2c: E2 [22:32:34]MH_I2C_Read... [22:32:34]Read from MH i2c: E2 03 00 [22:32:34]MH_I2C_Read... [22:32:34]Read from MH i2c: E2 03 00 2B 04 00 90 00 A3 [22:32:34]RAPDU: 90 00 [22:32:34]wFMCommunicate OK [22:32:34]wFMCommunicate request_size=4 [22:32:34]MH_SAM_APDU [22:32:34]CAPDU: 80 0D 03 02 [22:32:34]Write to MH i2c: E2 08 00 2C 04 80 0D 03 02 00 00 00 00 AB [22:32:34]Write i2c OK [22:32:34]MH_I2C_Read... [22:32:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:32:34]Read from MH i2c: E2 [22:32:34]MH_I2C_Read... [22:32:34]Read from MH i2c: E2 0B 00 [22:32:34]MH_I2C_Read... [22:32:34]Read from MH i2c: E2 0B 00 2C 04 00 6B 55 42 8A 68 3B DA 3E 90 00 F3 [22:32:34]RAPDU: 6B 55 42 8A 68 3B DA 3E 90 00 [22:32:34]wFMCommunicate OK [22:32:34]SAM_PROTO_SignData done [22:32:34]FM_MakeSignedData done [22:32:34]CreateOFDProtocolMessage [22:32:34]wFMCommunicate request_size=4 [22:32:34]MH_SAM_APDU [22:32:34]CAPDU: 80 11 00 00 [22:32:34]Write to MH i2c: E2 08 00 2D 04 80 11 00 00 00 00 00 00 AB [22:32:34]Write i2c OK [22:32:34]MH_I2C_Read... [22:32:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:34]Read from MH i2c: E2 [22:32:34]MH_I2C_Read... [22:32:34]Read from MH i2c: E2 17 00 [22:32:34]MH_I2C_Read... [22:32:34]Read from MH i2c: E2 17 00 2D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 00 [22:32:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [22:32:34]wFMCommunicate OK [22:32:34]CreateOFDProtocolMessage done [22:32:34]OFDSenderStorePacket 201703 [22:32:34]StoreOFDPacket docnum=201703 [22:32:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E9 3B 07 01 35 32 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 32 FF 03 08 00 03 D0 39 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C4 82 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 82 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 29 00 00 00 00 07 04 06 00 B8 82 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 01 00 00 F4 03 04 00 01 6E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E7 13 03 00 35 04 06 00 B8 A4 69 DD 96 08 6B 55 42 8A 68 3B DA 3E [22:32:34]CheckFolder [22:32:34]dirname=/storage/ofd_packets [22:32:34]CheckFolder done [22:32:34]ProducePacketName [22:32:34]name=ofd_packets/00201703 [22:32:34]NVStorageSaveData ofd_packets/00201703 [22:32:34]File name is /storage/ofd_packets/00201703 [22:32:34]Write 301 bytes [22:32:34]NVStorageSaveData done [22:32:34]OFDSenderStorePacket done [22:32:34]KKMCreateOFDPacket done [22:32:34]NVStorageSaveData kkm_last_timestamp [22:32:34]File name is /storage/kkm_last_timestamp [22:32:34]Write 4 bytes [22:32:34]NVStorageSaveData done [22:32:34]OFD Sender: Processing packet 201703 [packets to send 112, broken 111] [22:32:34]ProducePacketName [22:32:34]name=ofd_packets/00201703 [22:32:34]OFD Sender: To server: pG, [22:32:34]CommunicateWithHost lk.salyk.kg:30040 [22:32:34]ConnectInit lk.salyk.kg [22:32:34]ExternCall_PrintAddStr [22:32:34]wPrintStart [22:32:34]Write to MH i2c: 01 00 00 2E 04 32 [22:32:34]Write i2c OK [22:32:34]MH_I2C_Read... [22:32:34]Read from MH i2c: 01 [22:32:34]MH_I2C_Read... [22:32:34]Read from MH i2c: 01 07 00 [22:32:34]MH_I2C_Read... [22:32:34]Read from MH i2c: 01 07 00 2E 04 00 00 00 00 00 FF 0F 47 [22:32:34]RasterBufferAndPrint [22:32:34]line Счет N : (1)449462 [22:32:34]line ИНН: 02508201610067 [22:32:34]line Контрольно-Кассовый Чек [22:32:34]line ПРОДАЖА [22:32:34]line ТРК (МРК, ГНК) : 31 [22:32:34]line Товар: 2710124130 [22:32:34]line Аи-92-К-2 [22:32:34]line 14.800 * 66.90 [22:32:34]line = 990.12 [22:32:34]line НДС 12% НСП 1% [22:32:34]line > о реализуемом товаре [22:32:34]line ОКРУГЛЕНИЕ: -0.12 [22:32:34]line ИТОГО: 990.00 [22:32:34]line Внесено: 1000.00 [22:32:34]line СДАЧА: 10.00 [22:32:34]line НСП 1% : 8.76 [22:32:34]line НДС 12% : 105.14 [22:32:34]line Наличными: 990.00 [22:32:34]line Безнал.: 0.00 [22:32:34]line Место: АЗС № 171 "Партнер Нефть" [22:32:34]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [22:32:34]line СНО: Общий режим [22:32:34]line Чек 465 26.10.2024 22:32 [22:32:34]line Смена: 543 ФФД: 1.0 [22:32:34]line ЗНМ: 0300000109 [22:32:34]line РНМ: 0000000000091777 [22:32:34]line Версия ККМ: 001 [22:32:34]line ФМ: 0000000000871756 [22:32:34]line ФД: 201703 [22:32:34]line ФПД: 203016290276872 [22:32:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T223233&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201703&fm=203016290276872&tin=02508201610067®Number=0000000000091777&sum=99000 [22:32:34]Connected sock=11 [22:32:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E9 3B 07 01 35 32 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 32 FF 03 08 00 03 D0 39 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C4 82 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 82 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 29 00 00 00 00 07 04 06 00 B8 82 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 01 00 00 F4 03 04 00 01 6E 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E7 13 03 00 35 04 06 00 B8 A4 69 DD 96 08 6B 55 42 8A 68 3B DA 3E [22:32:34]written 0, free lines is 4095 [22:32:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 2F 26 47 00 8B 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E7 13 03 00 F4 03 04 00 A9 19 1D 67 B6 04 01 00 00 D1 38 26 87 10 E3 FA 8D [22:32:34]CommunicateWithHost err = 0 [22:32:34]CheckOFDResponse [22:32:34]1017 (14) - 77093643461234 [22:32:34]1041 (16) - 0000000000871756 [22:32:34]1040 (4) - 201703 [22:32:34]1012 (4) - 26.10.2024 16:32 [22:32:34]1206 (1) - 0 [22:32:34]OFD Sender: Remove packet 201703 [22:32:34]ProducePacketName [22:32:34]name=ofd_packets/00201703 [22:32:34]NVStorageDeleteData [22:32:34]Write to MH i2c: 01 00 00 59 04 5D [22:32:34]Write i2c OK [22:32:34]MH_I2C_Read... [22:32:34]Read from MH i2c: 01 [22:32:34]MH_I2C_Read... [22:32:34]Read from MH i2c: 01 07 00 [22:32:34]MH_I2C_Read... [22:32:34]Read from MH i2c: 01 07 00 59 04 00 00 00 00 00 9B 0C 0B [22:32:34]RasterBufferAndPrint [22:32:34]line [22:32:34]line [22:32:34]line [22:32:34]line [22:32:34]line [22:32:35]written 0, free lines is 3233 [22:32:35]MH_Cut [22:32:35]Write to MH i2c: D1 01 00 60 04 01 36 [22:32:35]Write i2c OK [22:32:35]MH_I2C_Read... [22:32:35]Read from MH i2c: D1 [22:32:35]MH_I2C_Read... [22:32:35]Read from MH i2c: D1 01 00 [22:32:35]MH_I2C_Read... [22:32:35]Read from MH i2c: D1 01 00 60 04 00 35 [22:32:35]Write to MH i2c: 01 00 00 61 04 65 [22:32:35]Write i2c OK [22:32:35]MH_I2C_Read... [22:32:35]OFD Sender: No OFD packet to send [22:32:35]*** Cut start [22:32:35]*** Purtial cut [22:32:35]*** Stage 1: CUTSNS_PIN = 1 [22:32:36]Read from MH i2c: 01 [22:32:36]MH_I2C_Read... [22:32:36]*** Stop cut motor [22:32:36]*** Cut end [22:32:36]Read from MH i2c: 01 07 00 [22:32:36]MH_I2C_Read... [22:32:36]Read from MH i2c: 01 07 00 61 04 00 00 00 00 00 FF 0F 7A [22:32:36]process_action close_receipt done [22:32:36]requested_data is exist [22:32:36]produce_requested_data [22:32:36]requested_item fm.sn is exist - process it [22:32:36]wFMCommunicate request_size=4 [22:32:36]MH_SAM_APDU [22:32:36]CAPDU: 80 11 00 00 [22:32:36]Write to MH i2c: E2 08 00 62 04 80 11 00 00 00 00 00 00 E0 [22:32:36]Write i2c OK [22:32:36]MH_I2C_Read... [22:32:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:36]Read from MH i2c: E2 [22:32:36]MH_I2C_Read... [22:32:36]Read from MH i2c: E2 17 00 [22:32:36]MH_I2C_Read... [22:32:36]Read from MH i2c: E2 17 00 62 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 35 [22:32:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [22:32:36]wFMCommunicate OK [22:32:36]requested_item fd.num is exist - process it [22:32:36]SAM_PROTO_GetFieldsCounters [22:32:36]wFMCommunicate request_size=4 [22:32:36]MH_SAM_APDU [22:32:36]CAPDU: 80 13 00 00 [22:32:36]Write to MH i2c: E2 08 00 63 04 80 13 00 00 00 00 00 00 E3 [22:32:36]Write i2c OK [22:32:36]MH_I2C_Read... [22:32:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:32:36]Read from MH i2c: E2 [22:32:36]MH_I2C_Read... [22:32:36]Read from MH i2c: E2 62 00 [22:32:36]MH_I2C_Read... [22:32:36]Read from MH i2c: E2 62 00 63 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E7 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D1 01 00 00 5E 04 04 00 D1 01 00 00 57 04 04 00 D2 01 00 00 19 04 04 00 00 00 00 00 90 00 A0 [22:32:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E7 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D1 01 00 00 5E 04 04 00 D1 01 00 00 57 04 04 00 D2 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:32:36]wFMCommunicate OK [22:32:36]SAM_PROTO_GetFieldsCounters done [22:32:36]requested_item shift.num is exist - process it [22:32:36]requested_item shift.opened is exist - process it [22:32:36]req_shift_opened [22:32:36]FM_GetShiftState [22:32:36]SAM_PROTO_GetShiftState [22:32:36]wFMCommunicate request_size=4 [22:32:36]MH_SAM_APDU [22:32:36]CAPDU: 80 13 01 00 [22:32:36]Write to MH i2c: E2 08 00 64 04 80 13 01 00 00 00 00 00 E5 [22:32:36]Write i2c OK [22:32:36]MH_I2C_Read... [22:32:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:36]Read from MH i2c: E2 [22:32:36]MH_I2C_Read... [22:32:36]Read from MH i2c: E2 0E 00 [22:32:36]MH_I2C_Read... [22:32:36]Read from MH i2c: E2 0E 00 64 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F4 [22:32:36]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [22:32:36]wFMCommunicate OK [22:32:36]SAM_PROTO_GetShiftState done [22:32:36]FM_GetShiftState done [22:32:36]req_shift_opened done [22:32:36]requested_item shift.open_date is exist - process it [22:32:36]req_shift_open_date [22:32:36]req_shift_open_date done [22:32:36]produce_requested_data done [22:32:36]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201703,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [22:32:36]process_action_free close_receipt [22:32:36]json_value_free [22:32:36]json_value_free done [22:32:36]process_json_proto returns [22:32:36]Send response to host [22:32:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201703,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [22:32:36]free response buf [22:32:36]execute_script done [22:32:36]execute_script returns [22:32:36]free content buf [22:32:36]Sock 9.Close socket [22:32:36]Sock 9.Thread stoped [22:32:40]OFD Sender: No OFD packet to send [22:32:45]OFD Sender: No OFD packet to send [22:32:50]OFD Sender: No OFD packet to send [22:32:55]OFD Sender: No OFD packet to send [22:33:00]OFD Sender: No OFD packet to send [22:33:05]OFD Sender: No OFD packet to send [22:33:10]OFD Sender: No OFD packet to send [22:33:15]OFD Sender: No OFD packet to send [22:33:20]OFD Sender: No OFD packet to send [22:33:25]OFD Sender: No OFD packet to send [22:33:30]OFD Sender: No OFD packet to send [22:33:35]OFD Sender: No OFD packet to send [22:33:40]OFD Sender: No OFD packet to send [22:33:45]OFD Sender: No OFD packet to send [22:33:50]OFD Sender: No OFD packet to send [22:33:55]OFD Sender: No OFD packet to send [22:34:00]OFD Sender: No OFD packet to send [22:34:05]OFD Sender: No OFD packet to send [22:34:10]OFD Sender: No OFD packet to send [22:34:15]OFD Sender: No OFD packet to send [22:34:20]OFD Sender: No OFD packet to send [22:34:25]OFD Sender: No OFD packet to send [22:34:30]OFD Sender: No OFD packet to send [22:34:35]OFD Sender: No OFD packet to send [22:34:40]OFD Sender: No OFD packet to send [22:34:45]OFD Sender: No OFD packet to send [22:34:50]OFD Sender: No OFD packet to send [22:34:55]OFD Sender: No OFD packet to send [22:35:00]OFD Sender: No OFD packet to send [22:35:05]OFD Sender: No OFD packet to send [22:35:10]OFD Sender: No OFD packet to send [22:35:15]OFD Sender: No OFD packet to send [22:35:20]OFD Sender: No OFD packet to send [22:35:25]OFD Sender: No OFD packet to send [22:35:30]OFD Sender: No OFD packet to send [22:35:35]OFD Sender: No OFD packet to send [22:35:40]OFD Sender: No OFD packet to send [22:35:45]OFD Sender: No OFD packet to send [22:35:50]OFD Sender: No OFD packet to send [22:35:55]OFD Sender: No OFD packet to send [22:36:00]OFD Sender: No OFD packet to send [22:36:05]OFD Sender: No OFD packet to send [22:36:10]OFD Sender: No OFD packet to send [22:36:15]OFD Sender: No OFD packet to send [22:36:20]OFD Sender: No OFD packet to send [22:36:25]OFD Sender: No OFD packet to send [22:36:30]OFD Sender: No OFD packet to send [22:36:35]OFD Sender: No OFD packet to send [22:36:40]OFD Sender: No OFD packet to send [22:36:45]OFD Sender: No OFD packet to send [22:36:50]OFD Sender: No OFD packet to send [22:36:55]OFD Sender: No OFD packet to send [22:37:00]OFD Sender: No OFD packet to send [22:37:05]OFD Sender: No OFD packet to send [22:37:10]OFD Sender: No OFD packet to send [22:37:15]OFD Sender: No OFD packet to send [22:37:20]OFD Sender: No OFD packet to send [22:37:25]OFD Sender: No OFD packet to send [22:37:30]OFD Sender: No OFD packet to send [22:37:35]OFD Sender: No OFD packet to send [22:37:40]OFD Sender: No OFD packet to send [22:37:45]OFD Sender: No OFD packet to send [22:37:50]OFD Sender: No OFD packet to send [22:37:55]OFD Sender: No OFD packet to send [22:38:00]OFD Sender: No OFD packet to send [22:38:05]OFD Sender: No OFD packet to send [22:38:10]OFD Sender: No OFD packet to send [22:38:15]OFD Sender: No OFD packet to send [22:38:20]OFD Sender: No OFD packet to send [22:38:25]OFD Sender: No OFD packet to send [22:38:30]OFD Sender: No OFD packet to send [22:38:35]OFD Sender: No OFD packet to send [22:38:40]OFD Sender: No OFD packet to send [22:38:45]OFD Sender: No OFD packet to send [22:38:50]OFD Sender: No OFD packet to send [22:38:55]OFD Sender: No OFD packet to send [22:39:00]OFD Sender: No OFD packet to send [22:39:05]OFD Sender: No OFD packet to send [22:39:10]OFD Sender: No OFD packet to send [22:39:15]OFD Sender: No OFD packet to send [22:39:20]OFD Sender: No OFD packet to send [22:39:25]OFD Sender: No OFD packet to send [22:39:30]OFD Sender: No OFD packet to send [22:39:35]OFD Sender: No OFD packet to send [22:39:40]OFD Sender: No OFD packet to send [22:39:45]accept exits with 8 [22:39:45]New connection [22:39:45]New thread 3066936676 created [22:39:45]Thread 3067080036 joined [22:39:45]Waiting for new connection... [22:39:45] Sock 8.Parse request [22:39:45]Sock 8.Check first char [22:39:45]Sock 8.First char is OK [22:39:45]request: POST /json_proto HTTP/1.0 [22:39:45]Method: POST [22:39:45]URL: /json_proto [22:39:45]Method is POST - this is cgi request [22:39:45]url: /json_proto [22:39:45]query_string will be loaded in cgi processing [22:39:45]execute_cgi json_proto POST (null) [22:39:45]execute_cgi path=json_proto method=POST [22:39:45]POST find Content-Length [22:39:45]Host: 172.17.63.195:8080 [22:39:45]Content-Length: 675 [22:39:45]Content-Type: application/json [22:39:45] [22:39:45]POST finish read [22:39:45]Found Content-Length = 675 [22:39:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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:39:45]execute_script... [22:39: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)449463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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:39:45]POST & json_proto [22:39:45]process_json_proto [22:39:45]json parsed OK: [22:39:45]protocol is kg_v1.0 [22:39:45]action value=close_receipt [22:39:45]process_action close_receipt [22:39:45]cmd_close_receipt [22:39:45]MH_GetDate [22:39:45]Write to MH i2c: F0 00 00 65 04 58 [22:39:45]Write i2c OK [22:39:45]MH_I2C_Read... [22:39:45]Read from MH i2c: F0 [22:39:45]MH_I2C_Read... [22:39:45]Read from MH i2c: F0 09 00 [22:39:45]MH_I2C_Read... [22:39:45]Read from MH i2c: F0 09 00 65 04 00 B2 6F 1D 67 68 46 19 67 34 [22:39:45]GetLastDocTimeStamp 1729981953 [22:39:45]current date 1729982386 [22:39:45]FM_GetShiftState [22:39:45]SAM_PROTO_GetShiftState [22:39:45]wFMCommunicate request_size=4 [22:39:45]MH_SAM_APDU [22:39:45]CAPDU: 80 13 01 00 [22:39:45]Write to MH i2c: E2 08 00 66 04 80 13 01 00 00 00 00 00 E7 [22:39:45]Write i2c OK [22:39:45]MH_I2C_Read... [22:39:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:39:45]Read from MH i2c: E2 [22:39:45]MH_I2C_Read... [22:39:45]Read from MH i2c: E2 0E 00 [22:39:45]MH_I2C_Read... [22:39:45]Read from MH i2c: E2 0E 00 66 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F6 [22:39:45]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [22:39:45]wFMCommunicate OK [22:39:45]SAM_PROTO_GetShiftState done [22:39:45]FM_GetShiftState done [22:39:45]opened in 1729900879 [22:39:45]opened+sec_in_day 1729987279 [22:39:45]quantity*price = 100000 [22:39:45]sum+1 = 100002 [22:39:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 466 26.10.2024 22:39 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201704 ФПД: 16165386902585 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T223946&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201704&fm=16165386902585&tin=02508201610067®Number=0000000000091777&sum=100000 [22:39:46]StoreToDocumentArchive [22:39:46]shift 543 fd 201704 [22:39:46]save to /storage/0543/doc_00201704 [22:39:46]save last doc name /storage/0543/doc_00201704 to /storage/kkm_last_doc_name [22:39:46]save OK [22:39:46]Clear old archive folders... [22:39:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:39:46]tlvbuf is 000F6690 [22:39:46]SAM_PROTO_ClearQueue [22:39:46]wFMCommunicate request_size=4 [22:39:46]MH_SAM_APDU [22:39:46]CAPDU: 80 09 00 00 [22:39:46]Write to MH i2c: E2 08 00 73 04 80 09 00 00 00 00 00 00 E9 [22:39:46]Write i2c OK [22:39:46]MH_I2C_Read... [22:39:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:39:46]Read from MH i2c: E2 [22:39:46]MH_I2C_Read... [22:39:46]Read from MH i2c: E2 03 00 [22:39:46]MH_I2C_Read... [22:39:46]Read from MH i2c: E2 03 00 73 04 00 90 00 EB [22:39:46]RAPDU: 90 00 [22:39:46]wFMCommunicate OK [22:39:46]SAM_PROTO_ClearQueue done [22:39:46]KKMCreateOFDPacket [22:39:46]OFDProtocolAddRootSTLVToBuf [22:39:46]FM_MakeSignedData [22:39:46]FM_MakeSignedData [22:39:46]SAM_PROTO_SignData [22:39:46]wFMCommunicate request_size=4 [22:39:46]MH_SAM_APDU [22:39:46]CAPDU: 80 0D 01 02 [22:39:46]Write to MH i2c: E2 08 00 74 04 80 0D 01 02 00 00 00 00 F1 [22:39:46]Write i2c OK [22:39:46]MH_I2C_Read... [22:39:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:39:46]Read from MH i2c: E2 [22:39:46]MH_I2C_Read... [22:39:46]Read from MH i2c: E2 03 00 [22:39:46]MH_I2C_Read... [22:39:46]Read from MH i2c: E2 03 00 74 04 00 90 00 EC [22:39:46]RAPDU: 90 00 [22:39:46]wFMCommunicate OK [22:39:46]wFMCommunicate request_size=255 [22:39:46]MH_SAM_APDU [22:39: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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 D2 01 00 00 F4 03 04 00 B2 6F 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E8 13 03 00 35 04 06 00 [22:39:46]Write to MH i2c: E2 02 01 75 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 D2 01 00 00 F4 03 04 00 B2 6F 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E8 13 03 00 35 04 06 00 00 00 F1 [22:39:46]Write i2c OK [22:39:46]MH_I2C_Read... [22:39:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:39:46]Read from MH i2c: E2 [22:39:46]MH_I2C_Read... [22:39:46]Read from MH i2c: E2 03 00 [22:39:46]MH_I2C_Read... [22:39:46]Read from MH i2c: E2 03 00 75 04 00 90 00 ED [22:39:46]RAPDU: 90 00 [22:39:46]wFMCommunicate OK [22:39:46]wFMCommunicate request_size=11 [22:39:46]MH_SAM_APDU [22:39:46]CAPDU: 80 0D 02 02 06 0E B3 CC 24 DC 39 [22:39:46]Write to MH i2c: E2 0E 00 76 04 80 0D 02 02 06 00 0E B3 CC 24 DC 39 00 00 C6 [22:39:46]Write i2c OK [22:39:46]MH_I2C_Read... [22:39:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:39:46]Read from MH i2c: E2 [22:39:46]MH_I2C_Read... [22:39:46]Read from MH i2c: E2 03 00 [22:39:46]MH_I2C_Read... [22:39:46]Read from MH i2c: E2 03 00 76 04 00 90 00 EE [22:39:46]RAPDU: 90 00 [22:39:46]wFMCommunicate OK [22:39:46]wFMCommunicate request_size=4 [22:39:46]MH_SAM_APDU [22:39:46]CAPDU: 80 0D 03 02 [22:39:46]Write to MH i2c: E2 08 00 77 04 80 0D 03 02 00 00 00 00 F6 [22:39:46]Write i2c OK [22:39:46]MH_I2C_Read... [22:39:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:39:46]Read from MH i2c: E2 [22:39:46]MH_I2C_Read... [22:39:46]Read from MH i2c: E2 0B 00 [22:39:46]MH_I2C_Read... [22:39:46]Read from MH i2c: E2 0B 00 77 04 00 3F F9 E3 9F F6 53 B2 EC 90 00 98 [22:39:46]RAPDU: 3F F9 E3 9F F6 53 B2 EC 90 00 [22:39:46]wFMCommunicate OK [22:39:46]SAM_PROTO_SignData done [22:39:46]FM_MakeSignedData done [22:39:46]CreateOFDProtocolMessage [22:39:46]wFMCommunicate request_size=4 [22:39:46]MH_SAM_APDU [22:39:46]CAPDU: 80 11 00 00 [22:39:46]Write to MH i2c: E2 08 00 78 04 80 11 00 00 00 00 00 00 F6 [22:39:46]Write i2c OK [22:39:46]MH_I2C_Read... [22:39:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:39:46]Read from MH i2c: E2 [22:39:46]MH_I2C_Read... [22:39:46]Read from MH i2c: E2 17 00 [22:39:46]MH_I2C_Read... [22:39:46]Read from MH i2c: E2 17 00 78 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4B [22:39:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [22:39:46]wFMCommunicate OK [22:39:46]CreateOFDProtocolMessage done [22:39:46]OFDSenderStorePacket 201704 [22:39:46]StoreOFDPacket docnum=201704 [22:39:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 E8 20 08 01 FE 09 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 D2 01 00 00 F4 03 04 00 B2 6F 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E8 13 03 00 35 04 06 00 0E B3 CC 24 DC 39 3F F9 E3 9F F6 53 B2 EC [22:39:46]CheckFolder [22:39:46]dirname=/storage/ofd_packets [22:39:46]CheckFolder done [22:39:46]ProducePacketName [22:39:46]name=ofd_packets/00201704 [22:39:46]NVStorageSaveData ofd_packets/00201704 [22:39:46]File name is /storage/ofd_packets/00201704 [22:39:46]Write 302 bytes [22:39:46]NVStorageSaveData done [22:39:46]OFDSenderStorePacket done [22:39:46]KKMCreateOFDPacket done [22:39:46]NVStorageSaveData kkm_last_timestamp [22:39:46]File name is /storage/kkm_last_timestamp [22:39:46]Write 4 bytes [22:39:46]NVStorageSaveData done [22:39:46]ExternCall_PrintAddStr [22:39:46]wPrintStart [22:39:46]Write to MH i2c: 01 00 00 79 04 7D [22:39:46]Write i2c OK [22:39:46]MH_I2C_Read... [22:39:46]Read from MH i2c: 01 [22:39:46]MH_I2C_Read... [22:39:46]Read from MH i2c: 01 07 00 [22:39:46]MH_I2C_Read... [22:39:46]Read from MH i2c: 01 07 00 79 04 00 00 00 00 00 FF 0F 92 [22:39:46]RasterBufferAndPrint [22:39:46]line Счет N : (1)449463 [22:39:46]line ИНН: 02508201610067 [22:39:46]line Контрольно-Кассовый Чек [22:39:46]line ПРОДАЖА [22:39:46]line ТРК (МРК, ГНК) : 32 [22:39:46]line Товар: 2710124130 [22:39:46]line SUPER 92-К-5 [22:39:46]line 14.620 * 68.40 [22:39:46]line = 1000.01 [22:39:46]line НДС 12% НСП 1% [22:39:46]line > о реализуемом товаре [22:39:46]line ОКРУГЛЕНИЕ: -0.01 [22:39:46]line ИТОГО: 1000.00 [22:39:46]line Внесено: 1000.00 [22:39:46]line СДАЧА: 0.00 [22:39:46]line НСП 1% : 8.85 [22:39:46]line НДС 12% : 106.20 [22:39:46]line Наличными: 1000.00 [22:39:46]line Безнал.: 0.00 [22:39:46]line Место: АЗС № 171 "Партнер Нефть" [22:39:46]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [22:39:46]line СНО: Общий режим [22:39:46]line Чек 466 26.10.2024 22:39 [22:39:46]line Смена: 543 ФФД: 1.0 [22:39:46]line ЗНМ: 0300000109 [22:39:46]line РНМ: 0000000000091777 [22:39:46]line Версия ККМ: 001 [22:39:46]line ФМ: 0000000000871756 [22:39:46]line ФД: 201704 [22:39:46]line ФПД: 16165386902585 [22:39:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T223946&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201704&fm=16165386902585&tin=02508201610067®Number=0000000000091777&sum=100000 [22:39:47]OFD Sender: Processing packet 201704 [packets to send 112, broken 111] [22:39:47]ProducePacketName [22:39:47]name=ofd_packets/00201704 [22:39:47]OFD Sender: To server: pG, [22:39:47]CommunicateWithHost lk.salyk.kg:30040 [22:39:47]ConnectInit lk.salyk.kg [22:39:47]written 0, free lines is 4095 [22:39:47]Connected sock=10 [22:39:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 E8 20 08 01 FE 09 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 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 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 D2 01 00 00 F4 03 04 00 B2 6F 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E8 13 03 00 35 04 06 00 0E B3 CC 24 DC 39 3F F9 E3 9F F6 53 B2 EC [22:39:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 24 53 47 00 D1 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E8 13 03 00 F4 03 04 00 59 1B 1D 67 B6 04 01 00 00 78 A1 F1 65 89 24 EB 2D [22:39:47]CommunicateWithHost err = 0 [22:39:47]CheckOFDResponse [22:39:47]1017 (14) - 77093643461234 [22:39:47]1041 (16) - 0000000000871756 [22:39:47]1040 (4) - 201704 [22:39:47]1012 (4) - 26.10.2024 16:39 [22:39:47]1206 (1) - 0 [22:39:47]OFD Sender: Remove packet 201704 [22:39:47]ProducePacketName [22:39:47]name=ofd_packets/00201704 [22:39:47]NVStorageDeleteData [22:39:47]Write to MH i2c: 01 00 00 A4 04 A8 [22:39:47]Write i2c OK [22:39:47]MH_I2C_Read... [22:39:47]Read from MH i2c: 01 [22:39:47]MH_I2C_Read... [22:39:47]Read from MH i2c: 01 07 00 [22:39:47]MH_I2C_Read... [22:39:47]Read from MH i2c: 01 07 00 A4 04 00 00 00 00 00 9D 0C 58 [22:39:47]RasterBufferAndPrint [22:39:47]line [22:39:47]line [22:39:47]line [22:39:47]line [22:39:47]line [22:39:47]written 0, free lines is 3235 [22:39:47]MH_Cut [22:39:47]Write to MH i2c: D1 01 00 AB 04 01 81 [22:39:47]Write i2c OK [22:39:47]MH_I2C_Read... [22:39:47]Read from MH i2c: D1 [22:39:47]MH_I2C_Read... [22:39:47]Read from MH i2c: D1 01 00 [22:39:47]MH_I2C_Read... [22:39:47]Read from MH i2c: D1 01 00 AB 04 00 80 [22:39:47]Write to MH i2c: 01 00 00 AC 04 B0 [22:39:47]Write i2c OK [22:39:47]MH_I2C_Read... [22:39:47]OFD Sender: No OFD packet to send [22:39:48]*** Cut start [22:39:48]*** Purtial cut [22:39:48]*** CUTSNS_PIN = 0 [22:39:48]*** Stage 1: CUTSNS_PIN = 1 [22:39:50]Read from MH i2c: 01 [22:39:50]MH_I2C_Read... [22:39:50]*** Stop cut motor [22:39:50]*** Cut end [22:39:50]Read from MH i2c: 01 07 00 [22:39:50]MH_I2C_Read... [22:39:50]Read from MH i2c: 01 07 00 AC 04 00 00 00 00 00 FF 0F C5 [22:39:50]process_action close_receipt done [22:39:50]requested_data is exist [22:39:50]produce_requested_data [22:39:50]requested_item fm.sn is exist - process it [22:39:50]wFMCommunicate request_size=4 [22:39:50]MH_SAM_APDU [22:39:50]CAPDU: 80 11 00 00 [22:39:50]Write to MH i2c: E2 08 00 AD 04 80 11 00 00 00 00 00 00 2B [22:39:50]Write i2c OK [22:39:50]MH_I2C_Read... [22:39:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:39:50]Read from MH i2c: E2 [22:39:50]MH_I2C_Read... [22:39:50]Read from MH i2c: E2 17 00 [22:39:50]MH_I2C_Read... [22:39:50]Read from MH i2c: E2 17 00 AD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 80 [22:39:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [22:39:50]wFMCommunicate OK [22:39:50]requested_item fd.num is exist - process it [22:39:50]SAM_PROTO_GetFieldsCounters [22:39:50]wFMCommunicate request_size=4 [22:39:50]MH_SAM_APDU [22:39:50]CAPDU: 80 13 00 00 [22:39:50]Write to MH i2c: E2 08 00 AE 04 80 13 00 00 00 00 00 00 2E [22:39:50]Write i2c OK [22:39:50]MH_I2C_Read... [22:39:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:39:50]Read from MH i2c: E2 [22:39:50]MH_I2C_Read... [22:39:50]Read from MH i2c: E2 62 00 [22:39:50]MH_I2C_Read... [22:39:50]Read from MH i2c: E2 62 00 AE 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E8 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D2 01 00 00 5E 04 04 00 D2 01 00 00 57 04 04 00 D3 01 00 00 19 04 04 00 00 00 00 00 90 00 EF [22:39:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E8 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D2 01 00 00 5E 04 04 00 D2 01 00 00 57 04 04 00 D3 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:39:50]wFMCommunicate OK [22:39:50]SAM_PROTO_GetFieldsCounters done [22:39:50]requested_item shift.num is exist - process it [22:39:50]requested_item shift.opened is exist - process it [22:39:50]req_shift_opened [22:39:50]FM_GetShiftState [22:39:50]SAM_PROTO_GetShiftState [22:39:50]wFMCommunicate request_size=4 [22:39:50]MH_SAM_APDU [22:39:50]CAPDU: 80 13 01 00 [22:39:50]Write to MH i2c: E2 08 00 AF 04 80 13 01 00 00 00 00 00 30 [22:39:50]Write i2c OK [22:39:50]MH_I2C_Read... [22:39:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:39:50]Read from MH i2c: E2 [22:39:50]MH_I2C_Read... [22:39:50]Read from MH i2c: E2 0E 00 [22:39:50]MH_I2C_Read... [22:39:50]Read from MH i2c: E2 0E 00 AF 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 3F [22:39:50]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [22:39:50]wFMCommunicate OK [22:39:50]SAM_PROTO_GetShiftState done [22:39:50]FM_GetShiftState done [22:39:50]req_shift_opened done [22:39:50]requested_item shift.open_date is exist - process it [22:39:50]req_shift_open_date [22:39:50]req_shift_open_date done [22:39:50]produce_requested_data done [22:39:50]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201704,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [22:39:50]process_action_free close_receipt [22:39:50]json_value_free [22:39:50]json_value_free done [22:39:50]process_json_proto returns [22:39:50]Send response to host [22:39:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201704,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [22:39:50]free response buf [22:39:50]execute_script done [22:39:50]execute_script returns [22:39:50]free content buf [22:39:50]Sock 8.Close socket [22:39:50]Sock 8.Thread stoped [22:39:51]accept exits with 9 [22:39:51]New connection [22:39:51]New thread 3067080036 created [22:39:51]Thread 3066936676 joined [22:39:51]Waiting for new connection... [22:39:51] Sock 9.Parse request [22:39:51]Sock 9.Check first char [22:39:51]Sock 9.First char is OK [22:39:51]request: POST /json_proto HTTP/1.0 [22:39:51]Method: POST [22:39:51]URL: /json_proto [22:39:51]Method is POST - this is cgi request [22:39:51]url: /json_proto [22:39:51]query_string will be loaded in cgi processing [22:39:51]execute_cgi json_proto POST (null) [22:39:51]execute_cgi path=json_proto method=POST [22:39:51]POST find Content-Length [22:39:51]Host: 172.17.63.195:8080 [22:39:51]Content-Length: 766 [22:39:51]Content-Type: application/json [22:39:51] [22:39:51]POST finish read [22:39:51]Found Content-Length = 766 [22:39:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:39:51]execute_script... [22:39: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)449464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:39:51]POST & json_proto [22:39:51]process_json_proto [22:39:51]json parsed OK: [22:39:51]protocol is kg_v1.0 [22:39:51]action value=close_receipt [22:39:51]process_action close_receipt [22:39:51]cmd_close_receipt [22:39:51]MH_GetDate [22:39:51]Write to MH i2c: F0 00 00 B0 04 A3 [22:39:51]Write i2c OK [22:39:51]MH_I2C_Read... [22:39:51]Read from MH i2c: F0 [22:39:51]MH_I2C_Read... [22:39:51]Read from MH i2c: F0 09 00 [22:39:51]MH_I2C_Read... [22:39:51]Read from MH i2c: F0 09 00 B0 04 00 B8 6F 1D 67 68 46 19 67 85 [22:39:51]GetLastDocTimeStamp 1729982386 [22:39:51]current date 1729982392 [22:39:51]FM_GetShiftState [22:39:51]SAM_PROTO_GetShiftState [22:39:51]wFMCommunicate request_size=4 [22:39:51]MH_SAM_APDU [22:39:51]CAPDU: 80 13 01 00 [22:39:51]Write to MH i2c: E2 08 00 B1 04 80 13 01 00 00 00 00 00 32 [22:39:51]Write i2c OK [22:39:51]MH_I2C_Read... [22:39:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:39:51]Read from MH i2c: E2 [22:39:51]MH_I2C_Read... [22:39:51]Read from MH i2c: E2 0E 00 [22:39:51]MH_I2C_Read... [22:39:51]Read from MH i2c: E2 0E 00 B1 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 41 [22:39:51]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [22:39:51]wFMCommunicate OK [22:39:51]SAM_PROTO_GetShiftState done [22:39:51]FM_GetShiftState done [22:39:51]opened in 1729900879 [22:39:51]opened+sec_in_day 1729987279 [22:39:51]quantity*price = 20003 [22:39:51]sum+1 = 20004 [22:39:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 467 26.10.2024 22:39 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201705 ФПД: 168380969707346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T223952&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201705&fm=168380969707346&tin=02508201610067®Number=0000000000091777&sum=20003 [22:39:52]StoreToDocumentArchive [22:39:52]shift 543 fd 201705 [22:39:52]save to /storage/0543/doc_00201705 [22:39:52]save last doc name /storage/0543/doc_00201705 to /storage/kkm_last_doc_name [22:39:52]save OK [22:39:52]Clear old archive folders... [22:39:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:39:52]tlvbuf is 00090270 [22:39:52]SAM_PROTO_ClearQueue [22:39:52]wFMCommunicate request_size=4 [22:39:52]MH_SAM_APDU [22:39:52]CAPDU: 80 09 00 00 [22:39:52]Write to MH i2c: E2 08 00 BE 04 80 09 00 00 00 00 00 00 34 [22:39:52]Write i2c OK [22:39:52]MH_I2C_Read... [22:39:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:39:52]Read from MH i2c: E2 [22:39:52]MH_I2C_Read... [22:39:52]Read from MH i2c: E2 03 00 [22:39:52]MH_I2C_Read... [22:39:52]Read from MH i2c: E2 03 00 BE 04 00 90 00 36 [22:39:52]RAPDU: 90 00 [22:39:52]wFMCommunicate OK [22:39:52]SAM_PROTO_ClearQueue done [22:39:52]KKMCreateOFDPacket [22:39:52]OFDProtocolAddRootSTLVToBuf [22:39:52]FM_MakeSignedData [22:39:52]FM_MakeSignedData [22:39:52]SAM_PROTO_SignData [22:39:52]wFMCommunicate request_size=4 [22:39:52]MH_SAM_APDU [22:39:52]CAPDU: 80 0D 01 02 [22:39:52]Write to MH i2c: E2 08 00 BF 04 80 0D 01 02 00 00 00 00 3C [22:39:52]Write i2c OK [22:39:52]MH_I2C_Read... [22:39:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:39:52]Read from MH i2c: E2 [22:39:52]MH_I2C_Read... [22:39:52]Read from MH i2c: E2 03 00 [22:39:52]MH_I2C_Read... [22:39:52]Read from MH i2c: E2 03 00 BF 04 00 90 00 37 [22:39:52]RAPDU: 90 00 [22:39:52]wFMCommunicate OK [22:39:52]wFMCommunicate request_size=255 [22:39:52]MH_SAM_APDU [22:39: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 32 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 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 01 00 00 F4 03 04 00 B8 6F 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E9 13 03 00 35 04 06 00 99 [22:39:52]Write to MH i2c: E2 02 01 C0 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 32 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 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 01 00 00 F4 03 04 00 B8 6F 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E9 13 03 00 35 04 06 00 99 00 00 D0 [22:39:52]Write i2c OK [22:39:52]MH_I2C_Read... [22:39:52]OFD Sender: No OFD packet to send [22:39:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:39:53]Read from MH i2c: E2 [22:39:53]MH_I2C_Read... [22:39:53]Read from MH i2c: E2 03 00 [22:39:53]MH_I2C_Read... [22:39:53]Read from MH i2c: E2 03 00 C0 04 00 90 00 38 [22:39:53]RAPDU: 90 00 [22:39:53]wFMCommunicate OK [22:39:53]wFMCommunicate request_size=10 [22:39:53]MH_SAM_APDU [22:39:53]CAPDU: 80 0D 02 02 05 24 3F E2 E7 52 [22:39:53]Write to MH i2c: E2 0D 00 C1 04 80 0D 02 02 05 00 24 3F E2 E7 52 00 00 C7 [22:39:53]Write i2c OK [22:39:53]MH_I2C_Read... [22:39:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:39:53]Read from MH i2c: E2 [22:39:53]MH_I2C_Read... [22:39:53]Read from MH i2c: E2 03 00 [22:39:53]MH_I2C_Read... [22:39:53]Read from MH i2c: E2 03 00 C1 04 00 90 00 39 [22:39:53]RAPDU: 90 00 [22:39:53]wFMCommunicate OK [22:39:53]wFMCommunicate request_size=4 [22:39:53]MH_SAM_APDU [22:39:53]CAPDU: 80 0D 03 02 [22:39:53]Write to MH i2c: E2 08 00 C2 04 80 0D 03 02 00 00 00 00 41 [22:39:53]Write i2c OK [22:39:53]MH_I2C_Read... [22:39:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:39:53]Read from MH i2c: E2 [22:39:53]MH_I2C_Read... [22:39:53]Read from MH i2c: E2 0B 00 [22:39:53]MH_I2C_Read... [22:39:53]Read from MH i2c: E2 0B 00 C2 04 00 03 90 CF 48 22 2F 1B 18 90 00 70 [22:39:53]RAPDU: 03 90 CF 48 22 2F 1B 18 90 00 [22:39:53]wFMCommunicate OK [22:39:53]SAM_PROTO_SignData done [22:39:53]FM_MakeSignedData done [22:39:53]CreateOFDProtocolMessage [22:39:53]wFMCommunicate request_size=4 [22:39:53]MH_SAM_APDU [22:39:53]CAPDU: 80 11 00 00 [22:39:53]Write to MH i2c: E2 08 00 C3 04 80 11 00 00 00 00 00 00 41 [22:39:53]Write i2c OK [22:39:53]MH_I2C_Read... [22:39:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:39:53]Read from MH i2c: E2 [22:39:53]MH_I2C_Read... [22:39:53]Read from MH i2c: E2 17 00 [22:39:53]MH_I2C_Read... [22:39:53]Read from MH i2c: E2 17 00 C3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 96 [22:39:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [22:39:53]wFMCommunicate OK [22:39:53]CreateOFDProtocolMessage done [22:39:53]OFDSenderStorePacket 201705 [22:39:53]StoreOFDPacket docnum=201705 [22:39:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E5 8C 07 01 D4 9F 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 32 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 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 01 00 00 F4 03 04 00 B8 6F 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E9 13 03 00 35 04 06 00 99 24 3F E2 E7 52 03 90 CF 48 22 2F 1B 18 [22:39:53]CheckFolder [22:39:53]dirname=/storage/ofd_packets [22:39:53]CheckFolder done [22:39:53]ProducePacketName [22:39:53]name=ofd_packets/00201705 [22:39:53]NVStorageSaveData ofd_packets/00201705 [22:39:53]File name is /storage/ofd_packets/00201705 [22:39:53]Write 301 bytes [22:39:53]NVStorageSaveData done [22:39:53]OFDSenderStorePacket done [22:39:53]KKMCreateOFDPacket done [22:39:53]NVStorageSaveData kkm_last_timestamp [22:39:53]File name is /storage/kkm_last_timestamp [22:39:53]Write 4 bytes [22:39:53]NVStorageSaveData done [22:39:53]ExternCall_PrintAddStr [22:39:53]wPrintStart [22:39:53]Write to MH i2c: 01 00 00 C4 04 C8 [22:39:53]Write i2c OK [22:39:53]MH_I2C_Read... [22:39:53]Read from MH i2c: 01 [22:39:53]MH_I2C_Read... [22:39:53]Read from MH i2c: 01 07 00 [22:39:53]MH_I2C_Read... [22:39:53]Read from MH i2c: 01 07 00 C4 04 00 00 00 00 00 FF 0F DD [22:39:53]RasterBufferAndPrint [22:39:53]line Счет N : (1)449464 [22:39:53]line ИНН: 02508201610067 [22:39:53]line Контрольно-Кассовый Чек [22:39:53]line ПРОДАЖА [22:39:53]line ТРК (МРК, ГНК) : 52 [22:39:53]line Товар: 2710124130 [22:39:53]line Аи-92-К-2 [22:39:53]line 2.990 * 66.90 [22:39:53]line = 200.03 [22:39:53]line НДС 12% НСП 1% [22:39:53]line > о реализуемом товаре [22:39:53]line ИТОГО: 200.03 [22:39:53]line НСП 1% : 1.77 [22:39:53]line НДС 12% : 21.24 [22:39:53]line Наличными: 0.00 [22:39:53]line Безнал.: 200.03 [22:39:53]line Место: АЗС № 171 "Партнер Нефть" [22:39:53]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [22:39:53]line СНО: Общий режим [22:39:53]line Чек 467 26.10.2024 22:39 [22:39:53]line Смена: 543 ФФД: 1.0 [22:39:53]line ЗНМ: 0300000109 [22:39:53]line РНМ: 0000000000091777 [22:39:53]line Версия ККМ: 001 [22:39:53]line Платежная система: Mbank [22:39:53]line ФМ: 0000000000871756 [22:39:53]line ФД: 201705 [22:39:53]line ФПД: 168380969707346 [22:39:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T223952&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201705&fm=168380969707346&tin=02508201610067®Number=0000000000091777&sum=20003 [22:39:53]OFD Sender: Processing packet 201705 [packets to send 112, broken 111] [22:39:53]ProducePacketName [22:39:53]name=ofd_packets/00201705 [22:39:53]OFD Sender: To server: pG, [22:39:53]CommunicateWithHost lk.salyk.kg:30040 [22:39:53]ConnectInit lk.salyk.kg [22:39:53]written 0, free lines is 4095 [22:39:53]Connected sock=10 [22:39:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 E5 8C 07 01 D4 9F 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 32 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 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 01 00 00 F4 03 04 00 B8 6F 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E9 13 03 00 35 04 06 00 99 24 3F E2 E7 52 03 90 CF 48 22 2F 1B 18 [22:39:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 FF EE 47 00 A5 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 E9 13 03 00 F4 03 04 00 60 1B 1D 67 B6 04 01 00 00 20 C8 E8 60 4F 4D 3F ED [22:39:53]CommunicateWithHost err = 0 [22:39:53]CheckOFDResponse [22:39:53]1017 (14) - 77093643461234 [22:39:53]1041 (16) - 0000000000871756 [22:39:53]1040 (4) - 201705 [22:39:53]1012 (4) - 26.10.2024 16:40 [22:39:53]1206 (1) - 0 [22:39:53]OFD Sender: Remove packet 201705 [22:39:53]ProducePacketName [22:39:53]name=ofd_packets/00201705 [22:39:53]NVStorageDeleteData [22:39:53]Write to MH i2c: 01 00 00 ED 04 F1 [22:39:53]Write i2c OK [22:39:53]MH_I2C_Read... [22:39:53]Read from MH i2c: 01 [22:39:53]MH_I2C_Read... [22:39:53]Read from MH i2c: 01 07 00 [22:39:53]MH_I2C_Read... [22:39:53]Read from MH i2c: 01 07 00 ED 04 00 00 00 00 00 BF 0C C3 [22:39:53]RasterBufferAndPrint [22:39:53]line [22:39:53]line [22:39:53]line [22:39:53]line [22:39:53]line [22:39:53]written 0, free lines is 3271 [22:39:54]MH_Cut [22:39:54]Write to MH i2c: D1 01 00 F4 04 01 CA [22:39:54]Write i2c OK [22:39:54]MH_I2C_Read... [22:39:54]Read from MH i2c: D1 [22:39:54]MH_I2C_Read... [22:39:54]Read from MH i2c: D1 01 00 [22:39:54]MH_I2C_Read... [22:39:54]Read from MH i2c: D1 01 00 F4 04 00 C9 [22:39:54]Write to MH i2c: 01 00 00 F5 04 F9 [22:39:54]Write i2c OK [22:39:54]MH_I2C_Read... [22:39:54]OFD Sender: No OFD packet to send [22:39:54]*** Cut start [22:39:54]*** Purtial cut [22:39:54]*** Stage 1: CUTSNS_PIN = 1 [22:39:55]Read from MH i2c: 01 [22:39:55]MH_I2C_Read... [22:39:55]*** Stop cut motor [22:39:55]*** Cut end [22:39:55]Read from MH i2c: 01 07 00 [22:39:55]MH_I2C_Read... [22:39:55]Read from MH i2c: 01 07 00 F5 04 00 00 00 00 00 FF 0F 0E [22:39:55]process_action close_receipt done [22:39:55]requested_data is exist [22:39:55]produce_requested_data [22:39:55]requested_item fm.sn is exist - process it [22:39:55]wFMCommunicate request_size=4 [22:39:55]MH_SAM_APDU [22:39:55]CAPDU: 80 11 00 00 [22:39:55]Write to MH i2c: E2 08 00 F6 04 80 11 00 00 00 00 00 00 74 [22:39:55]Write i2c OK [22:39:55]MH_I2C_Read... [22:39:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:39:55]Read from MH i2c: E2 [22:39:55]MH_I2C_Read... [22:39:55]Read from MH i2c: E2 17 00 [22:39:55]MH_I2C_Read... [22:39:55]Read from MH i2c: E2 17 00 F6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C9 [22:39:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [22:39:55]wFMCommunicate OK [22:39:55]requested_item fd.num is exist - process it [22:39:55]SAM_PROTO_GetFieldsCounters [22:39:55]wFMCommunicate request_size=4 [22:39:55]MH_SAM_APDU [22:39:55]CAPDU: 80 13 00 00 [22:39:55]Write to MH i2c: E2 08 00 F7 04 80 13 00 00 00 00 00 00 77 [22:39:55]Write i2c OK [22:39:55]MH_I2C_Read... [22:39:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:39:55]Read from MH i2c: E2 [22:39:55]MH_I2C_Read... [22:39:55]Read from MH i2c: E2 62 00 [22:39:55]MH_I2C_Read... [22:39:55]Read from MH i2c: E2 62 00 F7 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E9 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D3 01 00 00 5E 04 04 00 D3 01 00 00 57 04 04 00 D4 01 00 00 19 04 04 00 00 00 00 00 90 00 3C [22:39:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 E9 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D3 01 00 00 5E 04 04 00 D3 01 00 00 57 04 04 00 D4 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:39:55]wFMCommunicate OK [22:39:55]SAM_PROTO_GetFieldsCounters done [22:39:55]requested_item shift.num is exist - process it [22:39:55]requested_item shift.opened is exist - process it [22:39:55]req_shift_opened [22:39:55]FM_GetShiftState [22:39:55]SAM_PROTO_GetShiftState [22:39:55]wFMCommunicate request_size=4 [22:39:55]MH_SAM_APDU [22:39:55]CAPDU: 80 13 01 00 [22:39:55]Write to MH i2c: E2 08 00 F8 04 80 13 01 00 00 00 00 00 79 [22:39:55]Write i2c OK [22:39:55]MH_I2C_Read... [22:39:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:39:55]Read from MH i2c: E2 [22:39:55]MH_I2C_Read... [22:39:55]Read from MH i2c: E2 0E 00 [22:39:55]MH_I2C_Read... [22:39:55]Read from MH i2c: E2 0E 00 F8 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 88 [22:39:55]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [22:39:55]wFMCommunicate OK [22:39:55]SAM_PROTO_GetShiftState done [22:39:55]FM_GetShiftState done [22:39:55]req_shift_opened done [22:39:55]requested_item shift.open_date is exist - process it [22:39:55]req_shift_open_date [22:39:55]req_shift_open_date done [22:39:55]produce_requested_data done [22:39:55]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201705,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [22:39:55]process_action_free close_receipt [22:39:55]json_value_free [22:39:55]json_value_free done [22:39:55]process_json_proto returns [22:39:55]Send response to host [22:39:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201705,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [22:39:55]free response buf [22:39:55]execute_script done [22:39:55]execute_script returns [22:39:55]free content buf [22:39:55]Sock 9.Close socket [22:39:55]Sock 9.Thread stoped [22:39:59]OFD Sender: No OFD packet to send [22:40:04]OFD Sender: No OFD packet to send [22:40:09]OFD Sender: No OFD packet to send [22:40:14]OFD Sender: No OFD packet to send [22:40:19]OFD Sender: No OFD packet to send [22:40:24]OFD Sender: No OFD packet to send [22:40:29]OFD Sender: No OFD packet to send [22:40:34]OFD Sender: No OFD packet to send [22:40:39]OFD Sender: No OFD packet to send [22:40:44]OFD Sender: No OFD packet to send [22:40:49]OFD Sender: No OFD packet to send [22:40:54]OFD Sender: No OFD packet to send [22:40:59]OFD Sender: No OFD packet to send [22:41:04]OFD Sender: No OFD packet to send [22:41:09]OFD Sender: No OFD packet to send [22:41:14]OFD Sender: No OFD packet to send [22:41:19]OFD Sender: No OFD packet to send [22:41:24]OFD Sender: No OFD packet to send [22:41:29]OFD Sender: No OFD packet to send [22:41:34]OFD Sender: No OFD packet to send [22:41:39]OFD Sender: No OFD packet to send [22:41:44]OFD Sender: No OFD packet to send [22:41:49]OFD Sender: No OFD packet to send [22:41:54]OFD Sender: No OFD packet to send [22:41:59]OFD Sender: No OFD packet to send [22:42:04]OFD Sender: No OFD packet to send [22:42:09]OFD Sender: No OFD packet to send [22:42:14]OFD Sender: No OFD packet to send [22:42:19]OFD Sender: No OFD packet to send [22:42:24]OFD Sender: No OFD packet to send [22:42:29]OFD Sender: No OFD packet to send [22:42:34]OFD Sender: No OFD packet to send [22:42:39]OFD Sender: No OFD packet to send [22:42:44]OFD Sender: No OFD packet to send [22:42:49]OFD Sender: No OFD packet to send [22:42:54]OFD Sender: No OFD packet to send [22:42:59]OFD Sender: No OFD packet to send [22:43:04]OFD Sender: No OFD packet to send [22:43:09]OFD Sender: No OFD packet to send [22:43:14]OFD Sender: No OFD packet to send [22:43:19]OFD Sender: No OFD packet to send [22:43:24]OFD Sender: No OFD packet to send [22:43:29]OFD Sender: No OFD packet to send [22:43:34]OFD Sender: No OFD packet to send [22:43:39]OFD Sender: No OFD packet to send [22:43:44]OFD Sender: No OFD packet to send [22:43:49]OFD Sender: No OFD packet to send [22:43:54]OFD Sender: No OFD packet to send [22:43:59]OFD Sender: No OFD packet to send [22:44:04]OFD Sender: No OFD packet to send [22:44:09]OFD Sender: No OFD packet to send [22:44:14]OFD Sender: No OFD packet to send [22:44:19]OFD Sender: No OFD packet to send [22:44:24]OFD Sender: No OFD packet to send [22:44:29]OFD Sender: No OFD packet to send [22:44:34]OFD Sender: No OFD packet to send [22:44:39]OFD Sender: No OFD packet to send [22:44:44]OFD Sender: No OFD packet to send [22:44:49]OFD Sender: No OFD packet to send [22:44:54]OFD Sender: No OFD packet to send [22:44:59]OFD Sender: No OFD packet to send [22:45:04]OFD Sender: No OFD packet to send [22:45:09]OFD Sender: No OFD packet to send [22:45:14]OFD Sender: No OFD packet to send [22:45:19]OFD Sender: No OFD packet to send [22:45:24]OFD Sender: No OFD packet to send [22:45:29]OFD Sender: No OFD packet to send [22:45:34]OFD Sender: No OFD packet to send [22:45:39]OFD Sender: No OFD packet to send [22:45:44]OFD Sender: No OFD packet to send [22:45:49]OFD Sender: No OFD packet to send [22:45:54]OFD Sender: No OFD packet to send [22:45:59]OFD Sender: No OFD packet to send [22:46:04]OFD Sender: No OFD packet to send [22:46:09]OFD Sender: No OFD packet to send [22:46:14]OFD Sender: No OFD packet to send [22:46:19]OFD Sender: No OFD packet to send [22:46:24]OFD Sender: No OFD packet to send [22:46:29]OFD Sender: No OFD packet to send [22:46:34]OFD Sender: No OFD packet to send [22:46:39]OFD Sender: No OFD packet to send [22:46:44]OFD Sender: No OFD packet to send [22:46:49]OFD Sender: No OFD packet to send [22:46:54]OFD Sender: No OFD packet to send [22:46:59]OFD Sender: No OFD packet to send [22:47:04]OFD Sender: No OFD packet to send [22:47:09]OFD Sender: No OFD packet to send [22:47:14]OFD Sender: No OFD packet to send [22:47:19]OFD Sender: No OFD packet to send [22:47:24]OFD Sender: No OFD packet to send [22:47:29]OFD Sender: No OFD packet to send [22:47:34]OFD Sender: No OFD packet to send [22:47:39]OFD Sender: No OFD packet to send [22:47:44]OFD Sender: No OFD packet to send [22:47:49]OFD Sender: No OFD packet to send [22:47:54]OFD Sender: No OFD packet to send [22:47:59]OFD Sender: No OFD packet to send [22:48:04]OFD Sender: No OFD packet to send [22:48:09]OFD Sender: No OFD packet to send [22:48:14]OFD Sender: No OFD packet to send [22:48:19]OFD Sender: No OFD packet to send [22:48:24]OFD Sender: No OFD packet to send [22:48:29]OFD Sender: No OFD packet to send [22:48:34]OFD Sender: No OFD packet to send [22:48:39]OFD Sender: No OFD packet to send [22:48:45]OFD Sender: No OFD packet to send [22:48:50]OFD Sender: No OFD packet to send [22:48:55]OFD Sender: No OFD packet to send [22:49:00]OFD Sender: No OFD packet to send [22:49:05]OFD Sender: No OFD packet to send [22:49:10]OFD Sender: No OFD packet to send [22:49:15]OFD Sender: No OFD packet to send [22:49:20]OFD Sender: No OFD packet to send [22:49:25]OFD Sender: No OFD packet to send [22:49:30]OFD Sender: No OFD packet to send [22:49:35]OFD Sender: No OFD packet to send [22:49:40]OFD Sender: No OFD packet to send [22:49:45]OFD Sender: No OFD packet to send [22:49:50]OFD Sender: No OFD packet to send [22:49:55]OFD Sender: No OFD packet to send [22:50:00]OFD Sender: No OFD packet to send [22:50:05]OFD Sender: No OFD packet to send [22:50:10]OFD Sender: No OFD packet to send [22:50:15]OFD Sender: No OFD packet to send [22:50:20]OFD Sender: No OFD packet to send [22:50:25]OFD Sender: No OFD packet to send [22:50:30]OFD Sender: No OFD packet to send [22:50:35]OFD Sender: No OFD packet to send [22:50:40]OFD Sender: No OFD packet to send [22:50:45]OFD Sender: No OFD packet to send [22:50:50]OFD Sender: No OFD packet to send [22:50:55]OFD Sender: No OFD packet to send [22:51:00]OFD Sender: No OFD packet to send [22:51:05]OFD Sender: No OFD packet to send [22:51:10]OFD Sender: No OFD packet to send [22:51:15]OFD Sender: No OFD packet to send [22:51:20]OFD Sender: No OFD packet to send [22:51:25]OFD Sender: No OFD packet to send [22:51:30]OFD Sender: No OFD packet to send [22:51:35]OFD Sender: No OFD packet to send [22:51:40]OFD Sender: No OFD packet to send [22:51:45]OFD Sender: No OFD packet to send [22:51:50]OFD Sender: No OFD packet to send [22:51:55]OFD Sender: No OFD packet to send [22:52:00]OFD Sender: No OFD packet to send [22:52:05]OFD Sender: No OFD packet to send [22:52:10]OFD Sender: No OFD packet to send [22:52:15]OFD Sender: No OFD packet to send [22:52:20]OFD Sender: No OFD packet to send [22:52:25]OFD Sender: No OFD packet to send [22:52:30]OFD Sender: No OFD packet to send [22:52:35]OFD Sender: No OFD packet to send [22:52:40]OFD Sender: No OFD packet to send [22:52:45]OFD Sender: No OFD packet to send [22:52:50]OFD Sender: No OFD packet to send [22:52:55]OFD Sender: No OFD packet to send [22:53:00]OFD Sender: No OFD packet to send [22:53:05]OFD Sender: No OFD packet to send [22:53:10]OFD Sender: No OFD packet to send [22:53:15]OFD Sender: No OFD packet to send [22:53:20]OFD Sender: No OFD packet to send [22:53:25]OFD Sender: No OFD packet to send [22:53:30]OFD Sender: No OFD packet to send [22:53:35]OFD Sender: No OFD packet to send [22:53:40]OFD Sender: No OFD packet to send [22:53:45]OFD Sender: No OFD packet to send [22:53:50]OFD Sender: No OFD packet to send [22:53:55]OFD Sender: No OFD packet to send [22:54:00]OFD Sender: No OFD packet to send [22:54:05]OFD Sender: No OFD packet to send [22:54:10]OFD Sender: No OFD packet to send [22:54:15]OFD Sender: No OFD packet to send [22:54:20]OFD Sender: No OFD packet to send [22:54:25]OFD Sender: No OFD packet to send [22:54:30]OFD Sender: No OFD packet to send [22:54:35]OFD Sender: No OFD packet to send [22:54:40]OFD Sender: No OFD packet to send [22:54:45]OFD Sender: No OFD packet to send [22:54:50]OFD Sender: No OFD packet to send [22:54:55]OFD Sender: No OFD packet to send [22:55:00]OFD Sender: No OFD packet to send [22:55:05]OFD Sender: No OFD packet to send [22:55:10]OFD Sender: No OFD packet to send [22:55:15]OFD Sender: No OFD packet to send [22:55:20]OFD Sender: No OFD packet to send [22:55:25]OFD Sender: No OFD packet to send [22:55:30]OFD Sender: No OFD packet to send [22:55:35]OFD Sender: No OFD packet to send [22:55:40]OFD Sender: No OFD packet to send [22:55:45]OFD Sender: No OFD packet to send [22:55:50]OFD Sender: No OFD packet to send [22:55:55]OFD Sender: No OFD packet to send [22:56:00]OFD Sender: No OFD packet to send [22:56:05]OFD Sender: No OFD packet to send [22:56:10]OFD Sender: No OFD packet to send [22:56:15]OFD Sender: No OFD packet to send [22:56:20]OFD Sender: No OFD packet to send [22:56:25]OFD Sender: No OFD packet to send [22:56:30]OFD Sender: No OFD packet to send [22:56:35]OFD Sender: No OFD packet to send [22:56:40]OFD Sender: No OFD packet to send [22:56:45]OFD Sender: No OFD packet to send [22:56:50]OFD Sender: No OFD packet to send [22:56:55]OFD Sender: No OFD packet to send [22:57:00]OFD Sender: No OFD packet to send [22:57:05]OFD Sender: No OFD packet to send [22:57:10]OFD Sender: No OFD packet to send [22:57:15]OFD Sender: No OFD packet to send [22:57:20]OFD Sender: No OFD packet to send [22:57:25]OFD Sender: No OFD packet to send [22:57:30]OFD Sender: No OFD packet to send [22:57:35]OFD Sender: No OFD packet to send [22:57:40]OFD Sender: No OFD packet to send [22:57:45]OFD Sender: No OFD packet to send [22:57:50]OFD Sender: No OFD packet to send [22:57:55]OFD Sender: No OFD packet to send [22:58:00]OFD Sender: No OFD packet to send [22:58:05]OFD Sender: No OFD packet to send [22:58:10]OFD Sender: No OFD packet to send [22:58:15]OFD Sender: No OFD packet to send [22:58:20]OFD Sender: No OFD packet to send [22:58:25]OFD Sender: No OFD packet to send [22:58:30]OFD Sender: No OFD packet to send [22:58:35]OFD Sender: No OFD packet to send [22:58:40]OFD Sender: No OFD packet to send [22:58:45]OFD Sender: No OFD packet to send [22:58:50]OFD Sender: No OFD packet to send [22:58:55]OFD Sender: No OFD packet to send [22:59:00]OFD Sender: No OFD packet to send [22:59:05]OFD Sender: No OFD packet to send [22:59:10]OFD Sender: No OFD packet to send [22:59:15]OFD Sender: No OFD packet to send [22:59:20]OFD Sender: No OFD packet to send [22:59:25]OFD Sender: No OFD packet to send [22:59:30]OFD Sender: No OFD packet to send [22:59:35]OFD Sender: No OFD packet to send [22:59:40]OFD Sender: No OFD packet to send [22:59:45]OFD Sender: No OFD packet to send [22:59:50]OFD Sender: No OFD packet to send [22:59:55]OFD Sender: No OFD packet to send [23:00:00]OFD Sender: No OFD packet to send [23:00:05]OFD Sender: No OFD packet to send [23:00:10]OFD Sender: No OFD packet to send [23:00:15]OFD Sender: No OFD packet to send [23:00:20]OFD Sender: No OFD packet to send [23:00:25]OFD Sender: No OFD packet to send [23:00:30]OFD Sender: No OFD packet to send [23:00:35]OFD Sender: No OFD packet to send [23:00:40]OFD Sender: No OFD packet to send [23:00:45]OFD Sender: No OFD packet to send [23:00:50]OFD Sender: No OFD packet to send [23:00:55]OFD Sender: No OFD packet to send [23:01:00]OFD Sender: No OFD packet to send [23:01:05]OFD Sender: No OFD packet to send [23:01:10]OFD Sender: No OFD packet to send [23:01:15]OFD Sender: No OFD packet to send [23:01:20]OFD Sender: No OFD packet to send [23:01:25]OFD Sender: No OFD packet to send [23:01:30]OFD Sender: No OFD packet to send [23:01:35]OFD Sender: No OFD packet to send [23:01:40]OFD Sender: No OFD packet to send [23:01:45]OFD Sender: No OFD packet to send [23:01:50]OFD Sender: No OFD packet to send [23:01:55]OFD Sender: No OFD packet to send [23:02:00]OFD Sender: No OFD packet to send [23:02:05]OFD Sender: No OFD packet to send [23:02:10]OFD Sender: No OFD packet to send [23:02:15]OFD Sender: No OFD packet to send [23:02:20]OFD Sender: No OFD packet to send [23:02:25]OFD Sender: No OFD packet to send [23:02:30]OFD Sender: No OFD packet to send [23:02:35]OFD Sender: No OFD packet to send [23:02:40]OFD Sender: No OFD packet to send [23:02:45]OFD Sender: No OFD packet to send [23:02:50]OFD Sender: No OFD packet to send [23:02:55]OFD Sender: No OFD packet to send [23:03:00]OFD Sender: No OFD packet to send [23:03:05]OFD Sender: No OFD packet to send [23:03:10]OFD Sender: No OFD packet to send [23:03:15]OFD Sender: No OFD packet to send [23:03:20]OFD Sender: No OFD packet to send [23:03:25]OFD Sender: No OFD packet to send [23:03:31]OFD Sender: No OFD packet to send [23:03:36]OFD Sender: No OFD packet to send [23:03:41]OFD Sender: No OFD packet to send [23:03:46]OFD Sender: No OFD packet to send [23:03:51]OFD Sender: No OFD packet to send [23:03:56]OFD Sender: No OFD packet to send [23:04:01]OFD Sender: No OFD packet to send [23:04:06]OFD Sender: No OFD packet to send [23:04:11]OFD Sender: No OFD packet to send [23:04:16]OFD Sender: No OFD packet to send [23:04:21]OFD Sender: No OFD packet to send [23:04:26]OFD Sender: No OFD packet to send [23:04:31]OFD Sender: No OFD packet to send [23:04:36]OFD Sender: No OFD packet to send [23:04:41]OFD Sender: No OFD packet to send [23:04:46]OFD Sender: No OFD packet to send [23:04:51]OFD Sender: No OFD packet to send [23:04:56]OFD Sender: No OFD packet to send [23:05:01]OFD Sender: No OFD packet to send [23:05:06]OFD Sender: No OFD packet to send [23:05:11]OFD Sender: No OFD packet to send [23:05:16]OFD Sender: No OFD packet to send [23:05:21]OFD Sender: No OFD packet to send [23:05:26]OFD Sender: No OFD packet to send [23:05:31]OFD Sender: No OFD packet to send [23:05:36]OFD Sender: No OFD packet to send [23:05:41]OFD Sender: No OFD packet to send [23:05:46]OFD Sender: No OFD packet to send [23:05:51]OFD Sender: No OFD packet to send [23:05:56]OFD Sender: No OFD packet to send [23:06:01]OFD Sender: No OFD packet to send [23:06:06]OFD Sender: No OFD packet to send [23:06:11]OFD Sender: No OFD packet to send [23:06:16]OFD Sender: No OFD packet to send [23:06:21]OFD Sender: No OFD packet to send [23:06:26]OFD Sender: No OFD packet to send [23:06:31]OFD Sender: No OFD packet to send [23:06:36]OFD Sender: No OFD packet to send [23:06:41]OFD Sender: No OFD packet to send [23:06:46]OFD Sender: No OFD packet to send [23:06:51]OFD Sender: No OFD packet to send [23:06:56]OFD Sender: No OFD packet to send [23:07:01]OFD Sender: No OFD packet to send [23:07:06]OFD Sender: No OFD packet to send [23:07:11]OFD Sender: No OFD packet to send [23:07:16]OFD Sender: No OFD packet to send [23:07:21]OFD Sender: No OFD packet to send [23:07:26]OFD Sender: No OFD packet to send [23:07:31]OFD Sender: No OFD packet to send [23:07:36]OFD Sender: No OFD packet to send [23:07:41]OFD Sender: No OFD packet to send [23:07:46]OFD Sender: No OFD packet to send [23:07:51]OFD Sender: No OFD packet to send [23:07:56]OFD Sender: No OFD packet to send [23:08:01]OFD Sender: No OFD packet to send [23:08:06]OFD Sender: No OFD packet to send [23:08:11]OFD Sender: No OFD packet to send [23:08:16]OFD Sender: No OFD packet to send [23:08:21]OFD Sender: No OFD packet to send [23:08:26]OFD Sender: No OFD packet to send [23:08:31]OFD Sender: No OFD packet to send [23:08:36]OFD Sender: No OFD packet to send [23:08:41]OFD Sender: No OFD packet to send [23:08:46]OFD Sender: No OFD packet to send [23:08:51]OFD Sender: No OFD packet to send [23:08:56]OFD Sender: No OFD packet to send [23:09:01]OFD Sender: No OFD packet to send [23:09:06]OFD Sender: No OFD packet to send [23:09:11]OFD Sender: No OFD packet to send [23:09:16]OFD Sender: No OFD packet to send [23:09:21]OFD Sender: No OFD packet to send [23:09:26]OFD Sender: No OFD packet to send [23:09:31]OFD Sender: No OFD packet to send [23:09:35]accept exits with 8 [23:09:35]New connection [23:09:35]New thread 3066936676 created [23:09:35]Thread 3067080036 joined [23:09:35]Waiting for new connection... [23:09:35] Sock 8.Parse request [23:09:35]Sock 8.Check first char [23:09:35]Sock 8.First char is OK [23:09:35]request: POST /json_proto HTTP/1.0 [23:09:35]Method: POST [23:09:35]URL: /json_proto [23:09:35]Method is POST - this is cgi request [23:09:35]url: /json_proto [23:09:35]query_string will be loaded in cgi processing [23:09:35]execute_cgi json_proto POST (null) [23:09:35]execute_cgi path=json_proto method=POST [23:09:35]POST find Content-Length [23:09:35]Host: 172.17.63.195:8080 [23:09:35]Content-Length: 674 [23:09:35]Content-Type: application/json [23:09:35] [23:09:35]POST finish read [23:09:35]Found Content-Length = 674 [23:09:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:09:35]execute_script... [23:09: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)449465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:09:35]POST & json_proto [23:09:35]process_json_proto [23:09:35]json parsed OK: [23:09:35]protocol is kg_v1.0 [23:09:35]action value=close_receipt [23:09:35]process_action close_receipt [23:09:35]cmd_close_receipt [23:09:35]MH_GetDate [23:09:35]Write to MH i2c: F0 00 00 F9 04 EC [23:09:35]Write i2c OK [23:09:35]MH_I2C_Read... [23:09:35]Read from MH i2c: F0 [23:09:35]MH_I2C_Read... [23:09:35]Read from MH i2c: F0 09 00 [23:09:35]MH_I2C_Read... [23:09:35]Read from MH i2c: F0 09 00 F9 04 00 B1 76 1D 67 68 46 19 67 CE [23:09:35]GetLastDocTimeStamp 1729982392 [23:09:35]current date 1729984177 [23:09:35]FM_GetShiftState [23:09:35]SAM_PROTO_GetShiftState [23:09:35]wFMCommunicate request_size=4 [23:09:35]MH_SAM_APDU [23:09:35]CAPDU: 80 13 01 00 [23:09:35]Write to MH i2c: E2 08 00 FA 04 80 13 01 00 00 00 00 00 7B [23:09:35]Write i2c OK [23:09:35]MH_I2C_Read... [23:09:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:09:36]Read from MH i2c: E2 [23:09:36]MH_I2C_Read... [23:09:36]Read from MH i2c: E2 0E 00 [23:09:36]MH_I2C_Read... [23:09:36]Read from MH i2c: E2 0E 00 FA 04 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 8A [23:09:36]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [23:09:36]wFMCommunicate OK [23:09:36]SAM_PROTO_GetShiftState done [23:09:36]FM_GetShiftState done [23:09:36]opened in 1729900879 [23:09:36]opened+sec_in_day 1729987279 [23:09:36]quantity*price = 50063 [23:09:36]sum+1 = 50064 [23:09:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 468 26.10.2024 23:09 Смена: 543 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201706 ФПД: 187490052370634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T230937&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201706&fm=187490052370634&tin=02508201610067®Number=0000000000091777&sum=50000 [23:09:37]StoreToDocumentArchive [23:09:37]shift 543 fd 201706 [23:09:37]save to /storage/0543/doc_00201706 [23:09:37]save last doc name /storage/0543/doc_00201706 to /storage/kkm_last_doc_name [23:09:37]save OK [23:09:37]Clear old archive folders... [23:09:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:09:37]tlvbuf is 0009BB80 [23:09:37]SAM_PROTO_ClearQueue [23:09:37]wFMCommunicate request_size=4 [23:09:37]MH_SAM_APDU [23:09:37]CAPDU: 80 09 00 00 [23:09:37]Write to MH i2c: E2 08 00 07 05 80 09 00 00 00 00 00 00 7E [23:09:37]Write i2c OK [23:09:37]MH_I2C_Read... [23:09:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:09:37]Read from MH i2c: E2 [23:09:37]MH_I2C_Read... [23:09:37]Read from MH i2c: E2 03 00 [23:09:37]MH_I2C_Read... [23:09:37]Read from MH i2c: E2 03 00 07 05 00 90 00 80 [23:09:37]RAPDU: 90 00 [23:09:37]wFMCommunicate OK [23:09:37]SAM_PROTO_ClearQueue done [23:09:37]KKMCreateOFDPacket [23:09:37]OFDProtocolAddRootSTLVToBuf [23:09:37]FM_MakeSignedData [23:09:37]FM_MakeSignedData [23:09:37]SAM_PROTO_SignData [23:09:37]wFMCommunicate request_size=4 [23:09:37]MH_SAM_APDU [23:09:37]CAPDU: 80 0D 01 02 [23:09:37]Write to MH i2c: E2 08 00 08 05 80 0D 01 02 00 00 00 00 86 [23:09:37]Write i2c OK [23:09:37]MH_I2C_Read... [23:09:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:09:37]Read from MH i2c: E2 [23:09:37]MH_I2C_Read... [23:09:37]Read from MH i2c: E2 03 00 [23:09:37]MH_I2C_Read... [23:09:37]Read from MH i2c: E2 03 00 08 05 00 90 00 81 [23:09:37]RAPDU: 90 00 [23:09:37]wFMCommunicate OK [23:09:37]wFMCommunicate request_size=255 [23:09:37]MH_SAM_APDU [23:09:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 D4 01 00 00 F4 03 04 00 B1 76 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EA 13 03 00 35 04 06 00 AA 85 6D F8 [23:09:37]Write to MH i2c: E2 02 01 09 05 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 D4 01 00 00 F4 03 04 00 B1 76 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EA 13 03 00 35 04 06 00 AA 85 6D F8 00 00 CD [23:09:37]Write i2c OK [23:09:37]MH_I2C_Read... [23:09:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:09:37]Read from MH i2c: E2 [23:09:37]MH_I2C_Read... [23:09:37]Read from MH i2c: E2 03 00 [23:09:37]MH_I2C_Read... [23:09:37]Read from MH i2c: E2 03 00 09 05 00 90 00 82 [23:09:37]RAPDU: 90 00 [23:09:37]wFMCommunicate OK [23:09:37]wFMCommunicate request_size=7 [23:09:37]MH_SAM_APDU [23:09:37]CAPDU: 80 0D 02 02 02 70 CA [23:09:37]Write to MH i2c: E2 0A 00 0A 05 80 0D 02 02 02 00 70 CA 00 00 C7 [23:09:37]Write i2c OK [23:09:37]MH_I2C_Read... [23:09:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:09:37]Read from MH i2c: E2 [23:09:37]MH_I2C_Read... [23:09:37]Read from MH i2c: E2 03 00 [23:09:37]MH_I2C_Read... [23:09:37]Read from MH i2c: E2 03 00 0A 05 00 90 00 83 [23:09:37]RAPDU: 90 00 [23:09:37]wFMCommunicate OK [23:09:37]wFMCommunicate request_size=4 [23:09:37]MH_SAM_APDU [23:09:37]CAPDU: 80 0D 03 02 [23:09:37]Write to MH i2c: E2 08 00 0B 05 80 0D 03 02 00 00 00 00 8B [23:09:37]Write i2c OK [23:09:37]MH_I2C_Read... [23:09:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:09:37]Read from MH i2c: E2 [23:09:37]MH_I2C_Read... [23:09:37]Read from MH i2c: E2 0B 00 [23:09:37]MH_I2C_Read... [23:09:37]Read from MH i2c: E2 0B 00 0B 05 00 CF 01 3B E3 81 98 9D 2C 90 00 5C [23:09:37]RAPDU: CF 01 3B E3 81 98 9D 2C 90 00 [23:09:37]wFMCommunicate OK [23:09:37]SAM_PROTO_SignData done [23:09:37]FM_MakeSignedData done [23:09:37]CreateOFDProtocolMessage [23:09:37]wFMCommunicate request_size=4 [23:09:37]MH_SAM_APDU [23:09:37]CAPDU: 80 11 00 00 [23:09:37]Write to MH i2c: E2 08 00 0C 05 80 11 00 00 00 00 00 00 8B [23:09:37]Write i2c OK [23:09:37]MH_I2C_Read... [23:09:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:09:37]Read from MH i2c: E2 [23:09:37]MH_I2C_Read... [23:09:37]Read from MH i2c: E2 17 00 [23:09:37]MH_I2C_Read... [23:09:37]Read from MH i2c: E2 17 00 0C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E0 [23:09:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [23:09:37]wFMCommunicate OK [23:09:37]CreateOFDProtocolMessage done [23:09:37]OFDSenderStorePacket 201706 [23:09:37]StoreOFDPacket docnum=201706 [23:09:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 59 00 04 01 41 9B 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 D4 01 00 00 F4 03 04 00 B1 76 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EA 13 03 00 35 04 06 00 AA 85 6D F8 70 CA CF 01 3B E3 81 98 9D 2C [23:09:37]CheckFolder [23:09:37]dirname=/storage/ofd_packets [23:09:37]CheckFolder done [23:09:37]ProducePacketName [23:09:37]name=ofd_packets/00201706 [23:09:37]NVStorageSaveData ofd_packets/00201706 [23:09:37]File name is /storage/ofd_packets/00201706 [23:09:37]Write 298 bytes [23:09:37]NVStorageSaveData done [23:09:37]OFDSenderStorePacket done [23:09:37]KKMCreateOFDPacket done [23:09:37]NVStorageSaveData kkm_last_timestamp [23:09:37]File name is /storage/kkm_last_timestamp [23:09:37]Write 4 bytes [23:09:37]NVStorageSaveData done [23:09:37]ExternCall_PrintAddStr [23:09:37]wPrintStart [23:09:37]Write to MH i2c: 01 00 00 0D 05 12 [23:09:37]Write i2c OK [23:09:37]MH_I2C_Read... [23:09:37]Read from MH i2c: 01 [23:09:37]MH_I2C_Read... [23:09:37]Read from MH i2c: 01 07 00 [23:09:37]MH_I2C_Read... [23:09:37]Read from MH i2c: 01 07 00 0D 05 00 00 00 00 00 FF 0F 27 [23:09:37]RasterBufferAndPrint [23:09:37]line Счет N : (1)449465 [23:09:37]line ИНН: 02508201610067 [23:09:37]line Контрольно-Кассовый Чек [23:09:37]line ПРОДАЖА [23:09:37]line ТРК (МРК, ГНК) : 21 [23:09:37]line Товар: 2710194210 [23:09:37]line ДТ-К-2 [23:09:37]line 6.570 * 76.20 [23:09:37]line = 500.63 [23:09:37]line НДС 12% НСП 1% [23:09:37]line > о реализуемом товаре [23:09:37]line ОКРУГЛЕНИЕ: -0.63 [23:09:37]line ИТОГО: 500.00 [23:09:37]line Внесено: 500.00 [23:09:37]line СДАЧА: 0.00 [23:09:37]line НСП 1% : 4.43 [23:09:37]line НДС 12% : 53.16 [23:09:37]line Наличными: 500.00 [23:09:37]line Безнал.: 0.00 [23:09:37]line Место: АЗС № 171 "Партнер Нефть" [23:09:37]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [23:09:37]line СНО: Общий режим [23:09:37]line Чек 468 26.10.2024 23:09 [23:09:37]line Смена: 543 ФФД: 1.0 [23:09:37]line ЗНМ: 0300000109 [23:09:37]line РНМ: 0000000000091777 [23:09:37]line Версия ККМ: 001 [23:09:37]line ФМ: 0000000000871756 [23:09:37]line ФД: 201706 [23:09:37]line ФПД: 187490052370634 [23:09:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T230937&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201706&fm=187490052370634&tin=02508201610067®Number=0000000000091777&sum=50000 [23:09:38]written 0, free lines is 4095 [23:09:38]OFD Sender: Processing packet 201706 [packets to send 112, broken 111] [23:09:38]ProducePacketName [23:09:38]name=ofd_packets/00201706 [23:09:38]OFD Sender: To server: pG, [23:09:38]CommunicateWithHost lk.salyk.kg:30040 [23:09:38]ConnectInit lk.salyk.kg [23:09:38]Connected sock=11 [23:09:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 59 00 04 01 41 9B 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 D4 01 00 00 F4 03 04 00 B1 76 1D 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EA 13 03 00 35 04 06 00 AA 85 6D F8 70 CA CF 01 3B E3 81 98 9D 2C [23:09:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 01 DF 47 00 8C 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EA 13 03 00 F4 03 04 00 58 22 1D 67 B6 04 01 00 00 99 67 7F 36 6E 14 8B 9F [23:09:38]CommunicateWithHost err = 0 [23:09:38]CheckOFDResponse [23:09:38]1017 (14) - 77093643461234 [23:09:38]1041 (16) - 0000000000871756 [23:09:38]1040 (4) - 201706 [23:09:38]1012 (4) - 26.10.2024 17:09 [23:09:38]1206 (1) - 0 [23:09:38]OFD Sender: Remove packet 201706 [23:09:38]ProducePacketName [23:09:38]name=ofd_packets/00201706 [23:09:38]NVStorageDeleteData [23:09:38]Write to MH i2c: 01 00 00 38 05 3D [23:09:38]Write i2c OK [23:09:38]MH_I2C_Read... [23:09:38]Read from MH i2c: 01 [23:09:38]MH_I2C_Read... [23:09:38]Read from MH i2c: 01 07 00 [23:09:38]MH_I2C_Read... [23:09:38]Read from MH i2c: 01 07 00 38 05 00 00 00 00 00 93 0C E3 [23:09:38]RasterBufferAndPrint [23:09:38]line [23:09:38]line [23:09:38]line [23:09:38]line [23:09:38]line [23:09:38]written 0, free lines is 3223 [23:09:38]MH_Cut [23:09:38]Write to MH i2c: D1 01 00 3F 05 01 16 [23:09:38]Write i2c OK [23:09:38]MH_I2C_Read... [23:09:38]Read from MH i2c: D1 [23:09:38]MH_I2C_Read... [23:09:38]Read from MH i2c: D1 01 00 [23:09:38]MH_I2C_Read... [23:09:38]Read from MH i2c: D1 01 00 3F 05 00 15 [23:09:38]Write to MH i2c: 01 00 00 40 05 45 [23:09:38]Write i2c OK [23:09:38]MH_I2C_Read... [23:09:38]OFD Sender: No OFD packet to send [23:09:39]*** Cut start [23:09:39]*** Purtial cut [23:09:39]*** CUTSNS_PIN = 0 [23:09:39]*** Stage 1: CUTSNS_PIN = 1 [23:09:41]Read from MH i2c: 01 [23:09:41]MH_I2C_Read... [23:09:41]*** Stop cut motor [23:09:41]*** Cut end [23:09:41]Read from MH i2c: 01 07 00 [23:09:41]MH_I2C_Read... [23:09:41]Read from MH i2c: 01 07 00 40 05 00 00 00 00 00 FF 0F 5A [23:09:41]process_action close_receipt done [23:09:41]requested_data is exist [23:09:41]produce_requested_data [23:09:41]requested_item fm.sn is exist - process it [23:09:41]wFMCommunicate request_size=4 [23:09:41]MH_SAM_APDU [23:09:41]CAPDU: 80 11 00 00 [23:09:41]Write to MH i2c: E2 08 00 41 05 80 11 00 00 00 00 00 00 C0 [23:09:41]Write i2c OK [23:09:41]MH_I2C_Read... [23:09:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:09:41]Read from MH i2c: E2 [23:09:41]MH_I2C_Read... [23:09:41]Read from MH i2c: E2 17 00 [23:09:41]MH_I2C_Read... [23:09:41]Read from MH i2c: E2 17 00 41 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 15 [23:09:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [23:09:41]wFMCommunicate OK [23:09:41]requested_item fd.num is exist - process it [23:09:41]SAM_PROTO_GetFieldsCounters [23:09:41]wFMCommunicate request_size=4 [23:09:41]MH_SAM_APDU [23:09:41]CAPDU: 80 13 00 00 [23:09:41]Write to MH i2c: E2 08 00 42 05 80 13 00 00 00 00 00 00 C3 [23:09:41]Write i2c OK [23:09:41]MH_I2C_Read... [23:09:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:09:41]Read from MH i2c: E2 [23:09:41]MH_I2C_Read... [23:09:41]Read from MH i2c: E2 62 00 [23:09:41]MH_I2C_Read... [23:09:41]Read from MH i2c: E2 62 00 42 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EA 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D4 01 00 00 5E 04 04 00 D4 01 00 00 57 04 04 00 D5 01 00 00 19 04 04 00 00 00 00 00 90 00 8C [23:09:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EA 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D4 01 00 00 5E 04 04 00 D4 01 00 00 57 04 04 00 D5 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:09:41]wFMCommunicate OK [23:09:41]SAM_PROTO_GetFieldsCounters done [23:09:41]requested_item shift.num is exist - process it [23:09:41]requested_item shift.opened is exist - process it [23:09:41]req_shift_opened [23:09:41]FM_GetShiftState [23:09:41]SAM_PROTO_GetShiftState [23:09:41]wFMCommunicate request_size=4 [23:09:41]MH_SAM_APDU [23:09:41]CAPDU: 80 13 01 00 [23:09:41]Write to MH i2c: E2 08 00 43 05 80 13 01 00 00 00 00 00 C5 [23:09:41]Write i2c OK [23:09:41]MH_I2C_Read... [23:09:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:09:41]Read from MH i2c: E2 [23:09:41]MH_I2C_Read... [23:09:41]Read from MH i2c: E2 0E 00 [23:09:41]MH_I2C_Read... [23:09:41]Read from MH i2c: E2 0E 00 43 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 D4 [23:09:41]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [23:09:41]wFMCommunicate OK [23:09:41]SAM_PROTO_GetShiftState done [23:09:41]FM_GetShiftState done [23:09:41]req_shift_opened done [23:09:41]requested_item shift.open_date is exist - process it [23:09:41]req_shift_open_date [23:09:41]req_shift_open_date done [23:09:41]produce_requested_data done [23:09:41]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201706,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [23:09:41]process_action_free close_receipt [23:09:41]json_value_free [23:09:41]json_value_free done [23:09:41]process_json_proto returns [23:09:41]Send response to host [23:09:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201706,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [23:09:41]free response buf [23:09:41]execute_script done [23:09:41]execute_script returns [23:09:41]free content buf [23:09:41]Sock 8.Close socket [23:09:41]Sock 8.Thread stoped [23:09:43]OFD Sender: No OFD packet to send [23:09:48]OFD Sender: No OFD packet to send [23:09:53]OFD Sender: No OFD packet to send [23:09:58]OFD Sender: No OFD packet to send [23:10:03]OFD Sender: No OFD packet to send [23:10:08]OFD Sender: No OFD packet to send [23:10:13]OFD Sender: No OFD packet to send [23:10:18]OFD Sender: No OFD packet to send [23:10:23]OFD Sender: No OFD packet to send [23:10:28]OFD Sender: No OFD packet to send [23:10:33]OFD Sender: No OFD packet to send [23:10:38]OFD Sender: No OFD packet to send [23:10:43]OFD Sender: No OFD packet to send [23:10:48]OFD Sender: No OFD packet to send [23:10:53]OFD Sender: No OFD packet to send [23:10:58]OFD Sender: No OFD packet to send [23:11:03]OFD Sender: No OFD packet to send [23:11:08]OFD Sender: No OFD packet to send [23:11:13]OFD Sender: No OFD packet to send [23:11:18]OFD Sender: No OFD packet to send [23:11:23]OFD Sender: No OFD packet to send [23:11:28]OFD Sender: No OFD packet to send [23:11:33]OFD Sender: No OFD packet to send [23:11:38]OFD Sender: No OFD packet to send [23:11:43]OFD Sender: No OFD packet to send [23:11:49]OFD Sender: No OFD packet to send [23:11:54]OFD Sender: No OFD packet to send [23:11:59]OFD Sender: No OFD packet to send [23:12:04]OFD Sender: No OFD packet to send [23:12:09]OFD Sender: No OFD packet to send [23:12:14]OFD Sender: No OFD packet to send [23:12:19]OFD Sender: No OFD packet to send [23:12:24]OFD Sender: No OFD packet to send [23:12:29]OFD Sender: No OFD packet to send [23:12:34]OFD Sender: No OFD packet to send [23:12:39]OFD Sender: No OFD packet to send [23:12:44]OFD Sender: No OFD packet to send [23:12:49]OFD Sender: No OFD packet to send [23:12:54]OFD Sender: No OFD packet to send [23:12:59]OFD Sender: No OFD packet to send [23:13:04]OFD Sender: No OFD packet to send [23:13:09]OFD Sender: No OFD packet to send [23:13:14]OFD Sender: No OFD packet to send [23:13:19]OFD Sender: No OFD packet to send [23:13:24]OFD Sender: No OFD packet to send [23:13:29]OFD Sender: No OFD packet to send [23:13:34]OFD Sender: No OFD packet to send [23:13:39]OFD Sender: No OFD packet to send [23:13:44]OFD Sender: No OFD packet to send [23:13:49]OFD Sender: No OFD packet to send [23:13:54]OFD Sender: No OFD packet to send [23:13:59]OFD Sender: No OFD packet to send [23:14:04]OFD Sender: No OFD packet to send [23:14:09]OFD Sender: No OFD packet to send [23:14:14]OFD Sender: No OFD packet to send [23:14:19]OFD Sender: No OFD packet to send [23:14:24]OFD Sender: No OFD packet to send [23:14:29]OFD Sender: No OFD packet to send [23:14:34]OFD Sender: No OFD packet to send [23:14:39]OFD Sender: No OFD packet to send [23:14:44]OFD Sender: No OFD packet to send [23:14:49]OFD Sender: No OFD packet to send [23:14:54]OFD Sender: No OFD packet to send [23:14:59]OFD Sender: No OFD packet to send [23:15:04]OFD Sender: No OFD packet to send [23:15:09]OFD Sender: No OFD packet to send [23:15:14]OFD Sender: No OFD packet to send [23:15:19]OFD Sender: No OFD packet to send [23:15:24]OFD Sender: No OFD packet to send [23:15:29]OFD Sender: No OFD packet to send [23:15:34]OFD Sender: No OFD packet to send [23:15:39]OFD Sender: No OFD packet to send [23:15:44]OFD Sender: No OFD packet to send [23:15:49]OFD Sender: No OFD packet to send [23:15:54]OFD Sender: No OFD packet to send [23:15:59]OFD Sender: No OFD packet to send [23:16:04]OFD Sender: No OFD packet to send [23:16:09]OFD Sender: No OFD packet to send [23:16:14]OFD Sender: No OFD packet to send [23:16:19]OFD Sender: No OFD packet to send [23:16:24]OFD Sender: No OFD packet to send [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:04]OFD Sender: No OFD packet to send [23:18:09]OFD Sender: No OFD packet to send [23:18:14]OFD Sender: No OFD packet to send [23:18:19]OFD Sender: No OFD packet to send [23:18:24]OFD Sender: No OFD packet to send [23:18:29]OFD Sender: No OFD packet to send [23:18:34]OFD Sender: No OFD packet to send [23:18:39]OFD Sender: No OFD packet to send [23:18:44]OFD Sender: No OFD packet to send [23:18:49]OFD Sender: No OFD packet to send [23:18:54]OFD Sender: No OFD packet to send [23:18:59]OFD Sender: No OFD packet to send [23:19:04]OFD Sender: No OFD packet to send [23:19:09]OFD Sender: No OFD packet to send [23:19:14]OFD Sender: No OFD packet to send [23:19:19]OFD Sender: No OFD packet to send [23:19:24]OFD Sender: No OFD packet to send [23:19:29]OFD Sender: No OFD packet to send [23:19:34]OFD Sender: No OFD packet to send [23:19:39]OFD Sender: No OFD packet to send [23:19:44]OFD Sender: No OFD packet to send [23:19:49]OFD Sender: No OFD packet to send [23:19:54]OFD Sender: No OFD packet to send [23:19:59]OFD Sender: No OFD packet to send [23:20:04]OFD Sender: No OFD packet to send [23:20:09]OFD Sender: No OFD packet to send [23:20:14]OFD Sender: No OFD packet to send [23:20:19]OFD Sender: No OFD packet to send [23:20:24]OFD Sender: No OFD packet to send [23:20:29]OFD Sender: No OFD packet to send [23:20:34]OFD Sender: No OFD packet to send [23:20:39]OFD Sender: No OFD packet to send [23:20:44]OFD Sender: No OFD packet to send [23:20:49]OFD Sender: No OFD packet to send [23:20:54]OFD Sender: No OFD packet to send [23:20:59]OFD Sender: No OFD packet to send [23:21:04]OFD Sender: No OFD packet to send [23:21:09]OFD Sender: No OFD packet to send [23:21:14]OFD Sender: No OFD packet to send [23:21:19]OFD Sender: No OFD packet to send [23:21:24]OFD Sender: No OFD packet to send [23:21:29]OFD Sender: No OFD packet to send [23:21:34]OFD Sender: No OFD packet to send [23:21:39]OFD Sender: No OFD packet to send [23:21:44]OFD Sender: No OFD packet to send [23:21:49]OFD Sender: No OFD packet to send [23:21:54]OFD Sender: No OFD packet to send [23:21:59]OFD Sender: No OFD packet to send [23:22:04]OFD Sender: No OFD packet to send [23:22:09]OFD Sender: No OFD packet to send [23:22:14]OFD Sender: No OFD packet to send [23:22:19]OFD Sender: No OFD packet to send [23:22:24]OFD Sender: No OFD packet to send [23:22:29]OFD Sender: No OFD packet to send [23:22:34]OFD Sender: No OFD packet to send [23:22:39]OFD Sender: No OFD packet to send [23:22:44]OFD Sender: No OFD packet to send [23:22:49]OFD Sender: No OFD packet to send [23:22:54]OFD Sender: No OFD packet to send [23:22:59]OFD Sender: No OFD packet to send [23:23:04]OFD Sender: No OFD packet to send [23:23:09]OFD Sender: No OFD packet to send [23:23:14]OFD Sender: No OFD packet to send [23:23:19]OFD Sender: No OFD packet to send [23:23:24]OFD Sender: No OFD packet to send [23:23:29]OFD Sender: No OFD packet to send [23:23:34]OFD Sender: No OFD packet to send [23:23:39]OFD Sender: No OFD packet to send [23:23:44]OFD Sender: No OFD packet to send [23:23:49]OFD Sender: No OFD packet to send [23:23:54]OFD Sender: No OFD packet to send [23:23:59]OFD Sender: No OFD packet to send [23:24:04]OFD Sender: No OFD packet to send [23:24:09]OFD Sender: No OFD packet to send [23:24:14]OFD Sender: No OFD packet to send [23:24:19]OFD Sender: No OFD packet to send [23:24:24]OFD Sender: No OFD packet to send [23:24:29]OFD Sender: No OFD packet to send [23:24:34]OFD Sender: No OFD packet to send [23:24:39]OFD Sender: No OFD packet to send [23:24:44]OFD Sender: No OFD packet to send [23:24:49]OFD Sender: No OFD packet to send [23:24:54]OFD Sender: No OFD packet to send [23:24:59]OFD Sender: No OFD packet to send [23:25:04]OFD Sender: No OFD packet to send [23:25:09]OFD Sender: No OFD packet to send [23:25:14]OFD Sender: No OFD packet to send [23:25:19]OFD Sender: No OFD packet to send [23:25:24]OFD Sender: No OFD packet to send [23:25:29]OFD Sender: No OFD packet to send [23:25:34]OFD Sender: No OFD packet to send [23:25:39]OFD Sender: No OFD packet to send [23:25:44]OFD Sender: No OFD packet to send [23:25:49]OFD Sender: No OFD packet to send [23:25:54]OFD Sender: No OFD packet to send [23:25:59]OFD Sender: No OFD packet to send [23:26:04]OFD Sender: No OFD packet to send [23:26:09]OFD Sender: No OFD packet to send [23:26:14]OFD Sender: No OFD packet to send [23:26:19]OFD Sender: No OFD packet to send [23:26:24]OFD Sender: No OFD packet to send [23:26:30]OFD Sender: No OFD packet to send [23:26:35]OFD Sender: No OFD packet to send [23:26:40]OFD Sender: No OFD packet to send [23:26:45]OFD Sender: No OFD packet to send [23:26:50]OFD Sender: No OFD packet to send [23:26:55]OFD Sender: No OFD packet to send [23:27:00]OFD Sender: No OFD packet to send [23:27:05]OFD Sender: No OFD packet to send [23:27:10]OFD Sender: No OFD packet to send [23:27:15]OFD Sender: No OFD packet to send [23:27:20]OFD Sender: No OFD packet to send [23:27:25]OFD Sender: No OFD packet to send [23:27:30]OFD Sender: No OFD packet to send [23:27:35]OFD Sender: No OFD packet to send [23:27:40]OFD Sender: No OFD packet to send [23:27:45]OFD Sender: No OFD packet to send [23:27:50]OFD Sender: No OFD packet to send [23:27:55]OFD Sender: No OFD packet to send [23:28:00]OFD Sender: No OFD packet to send [23:28:05]OFD Sender: No OFD packet to send [23:28:10]OFD Sender: No OFD packet to send [23:28:15]OFD Sender: No OFD packet to send [23:28:20]OFD Sender: No OFD packet to send [23:28:25]OFD Sender: No OFD packet to send [23:28:30]OFD Sender: No OFD packet to send [23:28:35]OFD Sender: No OFD packet to send [23:28:40]OFD Sender: No OFD packet to send [23:28:45]OFD Sender: No OFD packet to send [23:28:50]OFD Sender: No OFD packet to send [23:28:55]OFD Sender: No OFD packet to send [23:29:00]OFD Sender: No OFD packet to send [23:29:05]OFD Sender: No OFD packet to send [23:29:10]OFD Sender: No OFD packet to send [23:29:15]OFD Sender: No OFD packet to send [23:29:20]OFD Sender: No OFD packet to send [23:29:25]OFD Sender: No OFD packet to send [23:29:30]OFD Sender: No OFD packet to send [23:29:35]OFD Sender: No OFD packet to send [23:29:40]OFD Sender: No OFD packet to send [23:29:45]OFD Sender: No OFD packet to send [23:29:50]OFD Sender: No OFD packet to send [23:29:55]OFD Sender: No OFD packet to send [23:30:00]OFD Sender: No OFD packet to send [23:30:05]OFD Sender: No OFD packet to send [23:30:10]OFD Sender: No OFD packet to send [23:30:15]OFD Sender: No OFD packet to send [23:30:20]OFD Sender: No OFD packet to send [23:30:25]OFD Sender: No OFD packet to send [23:30:30]OFD Sender: No OFD packet to send [23:30:35]OFD Sender: No OFD packet to send [23:30:40]OFD Sender: No OFD packet to send [23:30:45]OFD Sender: No OFD packet to send [23:30:50]OFD Sender: No OFD packet to send [23:30:55]OFD Sender: No OFD packet to send [23:31:00]OFD Sender: No OFD packet to send [23:31:05]OFD Sender: No OFD packet to send [23:31:10]OFD Sender: No OFD packet to send [23:31:15]OFD Sender: No OFD packet to send [23:31:20]OFD Sender: No OFD packet to send [23:31:25]OFD Sender: No OFD packet to send [23:31:30]OFD Sender: No OFD packet to send [23:31:35]OFD Sender: No OFD packet to send [23:31:40]OFD Sender: No OFD packet to send [23:31:45]OFD Sender: No OFD packet to send [23:31:50]OFD Sender: No OFD packet to send [23:31:55]OFD Sender: No OFD packet to send [23:32:00]OFD Sender: No OFD packet to send [23:32:05]OFD Sender: No OFD packet to send [23:32:10]OFD Sender: No OFD packet to send [23:32:15]OFD Sender: No OFD packet to send [23:32:20]OFD Sender: No OFD packet to send [23:32:25]OFD Sender: No OFD packet to send [23:32:30]OFD Sender: No OFD packet to send [23:32:35]OFD Sender: No OFD packet to send [23:32:40]OFD Sender: No OFD packet to send [23:32:45]OFD Sender: No OFD packet to send [23:32:50]OFD Sender: No OFD packet to send [23:32:55]OFD Sender: No OFD packet to send [23:33:00]OFD Sender: No OFD packet to send [23:33:05]OFD Sender: No OFD packet to send [23:33:10]OFD Sender: No OFD packet to send [23:33:15]OFD Sender: No OFD packet to send [23:33:20]OFD Sender: No OFD packet to send [23:33:25]OFD Sender: No OFD packet to send [23:33:30]OFD Sender: No OFD packet to send [23:33:35]OFD Sender: No OFD packet to send [23:33:40]OFD Sender: No OFD packet to send [23:33:45]OFD Sender: No OFD packet to send [23:33:50]OFD Sender: No OFD packet to send [23:33:55]OFD Sender: No OFD packet to send [23:34:00]OFD Sender: No OFD packet to send [23:34:05]OFD Sender: No OFD packet to send [23:34:10]OFD Sender: No OFD packet to send [23:34:15]OFD Sender: No OFD packet to send [23:34:20]OFD Sender: No OFD packet to send [23:34:25]OFD Sender: No OFD packet to send [23:34:30]OFD Sender: No OFD packet to send [23:34:35]OFD Sender: No OFD packet to send [23:34:40]OFD Sender: No OFD packet to send [23:34:45]OFD Sender: No OFD packet to send [23:34:50]OFD Sender: No OFD packet to send [23:34:55]OFD Sender: No OFD packet to send [23:35:00]OFD Sender: No OFD packet to send [23:35:05]OFD Sender: No OFD packet to send [23:35:10]OFD Sender: No OFD packet to send [23:35:15]OFD Sender: No OFD packet to send [23:35:20]OFD Sender: No OFD packet to send [23:35:25]OFD Sender: No OFD packet to send [23:35:30]OFD Sender: No OFD packet to send [23:35:35]OFD Sender: No OFD packet to send [23:35:40]OFD Sender: No OFD packet to send [23:35:45]OFD Sender: No OFD packet to send [23:35:50]OFD Sender: No OFD packet to send [23:35:55]OFD Sender: No OFD packet to send [23:36:00]OFD Sender: No OFD packet to send [23:36:05]OFD Sender: No OFD packet to send [23:36:10]OFD Sender: No OFD packet to send [23:36:15]OFD Sender: No OFD packet to send [23:36:20]OFD Sender: No OFD packet to send [23:36:25]OFD Sender: No OFD packet to send [23:36:30]OFD Sender: No OFD packet to send [23:36:35]OFD Sender: No OFD packet to send [23:36:40]OFD Sender: No OFD packet to send [23:36:45]OFD Sender: No OFD packet to send [23:36:50]OFD Sender: No OFD packet to send [23:36:55]OFD Sender: No OFD packet to send [23:37:00]OFD Sender: No OFD packet to send [23:37:05]OFD Sender: No OFD packet to send [23:37:10]OFD Sender: No OFD packet to send [23:37:15]OFD Sender: No OFD packet to send [23:37:20]OFD Sender: No OFD packet to send [23:37:25]OFD Sender: No OFD packet to send [23:37:30]OFD Sender: No OFD packet to send [23:37:35]OFD Sender: No OFD packet to send [23:37:40]OFD Sender: No OFD packet to send [23:37:45]OFD Sender: No OFD packet to send [23:37:50]OFD Sender: No OFD packet to send [23:37:55]OFD Sender: No OFD packet to send [23:38:00]OFD Sender: No OFD packet to send [23:38:05]OFD Sender: No OFD packet to send [23:38:10]OFD Sender: No OFD packet to send [23:38:15]OFD Sender: No OFD packet to send [23:38:20]OFD Sender: No OFD packet to send [23:38:25]OFD Sender: No OFD packet to send [23:38:30]OFD Sender: No OFD packet to send [23:38:35]OFD Sender: No OFD packet to send [23:38:40]OFD Sender: No OFD packet to send [23:38:45]OFD Sender: No OFD packet to send [23:38:50]OFD Sender: No OFD packet to send [23:38:55]OFD Sender: No OFD packet to send [23:39:00]OFD Sender: No OFD packet to send [23:39:05]OFD Sender: No OFD packet to send [23:39:10]OFD Sender: No OFD packet to send [23:39:15]OFD Sender: No OFD packet to send [23:39:20]OFD Sender: No OFD packet to send [23:39:25]OFD Sender: No OFD packet to send [23:39:30]OFD Sender: No OFD packet to send [23:39:35]OFD Sender: No OFD packet to send [23:39:40]OFD Sender: No OFD packet to send [23:39:45]OFD Sender: No OFD packet to send [23:39:50]OFD Sender: No OFD packet to send [23:39:55]OFD Sender: No OFD packet to send [23:40:00]OFD Sender: No OFD packet to send [23:40:05]OFD Sender: No OFD packet to send [23:40:10]OFD Sender: No OFD packet to send [23:40:15]OFD Sender: No OFD packet to send [23:40:20]OFD Sender: No OFD packet to send [23:40:25]OFD Sender: No OFD packet to send [23:40:30]OFD Sender: No OFD packet to send [23:40:35]OFD Sender: No OFD packet to send [23:40:40]OFD Sender: No OFD packet to send [23:40:45]OFD Sender: No OFD packet to send [23:40:50]OFD Sender: No OFD packet to send [23:40:56]OFD Sender: No OFD packet to send [23:41:01]OFD Sender: No OFD packet to send [23:41:06]OFD Sender: No OFD packet to send [23:41:11]OFD Sender: No OFD packet to send [23:41:16]OFD Sender: No OFD packet to send [23:41:21]OFD Sender: No OFD packet to send [23:41:26]OFD Sender: No OFD packet to send [23:41:31]OFD Sender: No OFD packet to send [23:41:36]OFD Sender: No OFD packet to send [23:41:41]OFD Sender: No OFD packet to send [23:41:46]OFD Sender: No OFD packet to send [23:41:51]OFD Sender: No OFD packet to send [23:41:56]OFD Sender: No OFD packet to send [23:42:01]OFD Sender: No OFD packet to send [23:42:06]OFD Sender: No OFD packet to send [23:42:11]OFD Sender: No OFD packet to send [23:42:16]OFD Sender: No OFD packet to send [23:42:21]OFD Sender: No OFD packet to send [23:42:26]OFD Sender: No OFD packet to send [23:42:31]OFD Sender: No OFD packet to send [23:42:36]OFD Sender: No OFD packet to send [23:42:41]OFD Sender: No OFD packet to send [23:42:46]OFD Sender: No OFD packet to send [23:42:51]OFD Sender: No OFD packet to send [23:42:56]OFD Sender: No OFD packet to send [23:43:01]OFD Sender: No OFD packet to send [23:43:06]OFD Sender: No OFD packet to send [23:43:11]OFD Sender: No OFD packet to send [23:43:16]OFD Sender: No OFD packet to send [23:43:21]OFD Sender: No OFD packet to send [23:43:26]OFD Sender: No OFD packet to send [23:43:31]OFD Sender: No OFD packet to send [23:43:36]OFD Sender: No OFD packet to send [23:43:41]OFD Sender: No OFD packet to send [23:43:46]OFD Sender: No OFD packet to send [23:43:51]OFD Sender: No OFD packet to send [23:43:56]OFD Sender: No OFD packet to send [23:44:01]OFD Sender: No OFD packet to send [23:44:06]OFD Sender: No OFD packet to send [23:44:11]OFD Sender: No OFD packet to send [23:44:16]OFD Sender: No OFD packet to send [23:44:21]OFD Sender: No OFD packet to send [23:44:26]OFD Sender: No OFD packet to send [23:44:31]OFD Sender: No OFD packet to send [23:44:36]OFD Sender: No OFD packet to send [23:44:41]OFD Sender: No OFD packet to send [23:44:46]OFD Sender: No OFD packet to send [23:44:51]OFD Sender: No OFD packet to send [23:44:56]OFD Sender: No OFD packet to send [23:45:01]OFD Sender: No OFD packet to send [23:45:06]OFD Sender: No OFD packet to send [23:45:11]OFD Sender: No OFD packet to send [23:45:16]OFD Sender: No OFD packet to send [23:45:21]OFD Sender: No OFD packet to send [23:45:26]OFD Sender: No OFD packet to send [23:45:31]OFD Sender: No OFD packet to send [23:45:36]OFD Sender: No OFD packet to send [23:45:41]OFD Sender: No OFD packet to send [23:45:46]OFD Sender: No OFD packet to send [23:45:51]OFD Sender: No OFD packet to send [23:45:56]OFD Sender: No OFD packet to send [23:45:56]int [23:45:56]Write to MH i2c: 01 00 00 44 05 49 [23:45:56]*** FLAG_PRN_KEY set [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 44 05 00 08 00 00 00 FF 0F 66 [23:45:56]state=0 [23:45:56]Key pressed [23:45:56]Feed [23:45:56]Write to MH i2c: D8 00 00 45 05 21 [23:45:56]Write i2c OK [23:45:56]MH_I2C_Read... [23:45:56]Read from MH i2c: D8 [23:45:56]MH_I2C_Read... [23:45:56]Read from MH i2c: D8 01 00 [23:45:56]MH_I2C_Read... [23:45:56]Read from MH i2c: D8 01 00 45 05 00 22 [23:45:56]int [23:45:56]Write to MH i2c: 01 00 00 46 05 4B [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 46 05 00 48 00 00 00 3C 00 D6 [23:45:56]state=2 [23:45:56]Key pressed [23:45:56]int [23:45:56]Write to MH i2c: 01 00 00 47 05 4C [23:45:56]*** FLAG_PRN_KEY reset [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 47 05 00 00 00 00 00 F6 0F 58 [23:45:56]state=2 [23:45:56]Stop feed [23:46:01]OFD Sender: No OFD packet to send [23:46:06]OFD Sender: No OFD packet to send [23:46:11]OFD Sender: No OFD packet to send [23:46:16]OFD Sender: No OFD packet to send [23:46:21]OFD Sender: No OFD packet to send [23:46:26]OFD Sender: No OFD packet to send [23:46:31]OFD Sender: No OFD packet to send [23:46:36]OFD Sender: No OFD packet to send [23:46:41]OFD Sender: No OFD packet to send [23:46:46]OFD Sender: No OFD packet to send [23:46:51]OFD Sender: No OFD packet to send [23:46:56]OFD Sender: No OFD packet to send [23:47:01]OFD Sender: No OFD packet to send [23:47:06]OFD Sender: No OFD packet to send [23:47:11]OFD Sender: No OFD packet to send [23:47:16]OFD Sender: No OFD packet to send [23:47:21]OFD Sender: No OFD packet to send [23:47:26]OFD Sender: No OFD packet to send [23:47:31]OFD Sender: No OFD packet to send [23:47:36]OFD Sender: No OFD packet to send [23:47:41]OFD Sender: No OFD packet to send [23:47:46]OFD Sender: No OFD packet to send [23:47:51]OFD Sender: No OFD packet to send [23:47:56]OFD Sender: No OFD packet to send [23:48:01]OFD Sender: No OFD packet to send [23:48:06]OFD Sender: No OFD packet to send [23:48:11]OFD Sender: No OFD packet to send [23:48:16]OFD Sender: No OFD packet to send [23:48:21]OFD Sender: No OFD packet to send [23:48:26]OFD Sender: No OFD packet to send [23:48:31]OFD Sender: No OFD packet to send [23:48:36]OFD Sender: No OFD packet to send [23:48:41]OFD Sender: No OFD packet to send [23:48:46]OFD Sender: No OFD packet to send [23:48:51]OFD Sender: No OFD packet to send [23:48:56]OFD Sender: No OFD packet to send [23:49:01]OFD Sender: No OFD packet to send [23:49:06]OFD Sender: No OFD packet to send [23:49:11]OFD Sender: No OFD packet to send [23:49:16]OFD Sender: No OFD packet to send [23:49:21]OFD Sender: No OFD packet to send [23:49:26]OFD Sender: No OFD packet to send [23:49:31]OFD Sender: No OFD packet to send [23:49:36]OFD Sender: No OFD packet to send [23:49:41]OFD Sender: No OFD packet to send [23:49:46]OFD Sender: No OFD packet to send [23:49:51]OFD Sender: No OFD packet to send [23:49:56]OFD Sender: No OFD packet to send [23:50:01]OFD Sender: No OFD packet to send [23:50:06]OFD Sender: No OFD packet to send [23:50:11]OFD Sender: No OFD packet to send [23:50:16]OFD Sender: No OFD packet to send [23:50:21]OFD Sender: No OFD packet to send [23:50:26]OFD Sender: No OFD packet to send [23:50:31]OFD Sender: No OFD packet to send [23:50:36]OFD Sender: No OFD packet to send [23:50:41]OFD Sender: No OFD packet to send [23:50:46]OFD Sender: No OFD packet to send [23:50:51]OFD Sender: No OFD packet to send [23:50:56]OFD Sender: No OFD packet to send [23:51:01]OFD Sender: No OFD packet to send [23:51:06]OFD Sender: No OFD packet to send [23:51:11]OFD Sender: No OFD packet to send [23:51:16]OFD Sender: No OFD packet to send [23:51:21]OFD Sender: No OFD packet to send [23:51:26]OFD Sender: No OFD packet to send [23:51:31]OFD Sender: No OFD packet to send [23:51:36]OFD Sender: No OFD packet to send [23:51:41]OFD Sender: No OFD packet to send [23:51:46]OFD Sender: No OFD packet to send [23:51:51]OFD Sender: No OFD packet to send [23:51:56]OFD Sender: No OFD packet to send [23:52:01]OFD Sender: No OFD packet to send [23:52:06]OFD Sender: No OFD packet to send [23:52:11]OFD Sender: No OFD packet to send [23:52:16]OFD Sender: No OFD packet to send [23:52:21]OFD Sender: No OFD packet to send [23:52:26]OFD Sender: No OFD packet to send [23:52:31]OFD Sender: No OFD packet to send [23:52:36]OFD Sender: No OFD packet to send [23:52:41]OFD Sender: No OFD packet to send [23:52:46]OFD Sender: No OFD packet to send [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:06]OFD Sender: No OFD packet to send [23:53:11]OFD Sender: No OFD packet to send [23:53:16]OFD Sender: No OFD packet to send [23:53:21]OFD Sender: No OFD packet to send [23:53:26]OFD Sender: No OFD packet to send [23:53:31]OFD Sender: No OFD packet to send [23:53:36]OFD Sender: No OFD packet to send [23:53:41]OFD Sender: No OFD packet to send [23:53:46]OFD Sender: No OFD packet to send [23:53:51]OFD Sender: No OFD packet to send [23:53:56]OFD Sender: No OFD packet to send [23:54:01]OFD Sender: No OFD packet to send [23:54:06]OFD Sender: No OFD packet to send [23:54:11]OFD Sender: No OFD packet to send [23:54:16]OFD Sender: No OFD packet to send [23:54:21]OFD Sender: No OFD packet to send [23:54:26]OFD Sender: No OFD packet to send [23:54:31]OFD Sender: No OFD packet to send [23:54:36]OFD Sender: No OFD packet to send [23:54:41]OFD Sender: No OFD packet to send [23:54:46]OFD Sender: No OFD packet to send [23:54:51]OFD Sender: No OFD packet to send [23:54:56]OFD Sender: No OFD packet to send [23:55:01]OFD Sender: No OFD packet to send [23:55:06]OFD Sender: No OFD packet to send [23:55:11]OFD Sender: No OFD packet to send [23:55:16]OFD Sender: No OFD packet to send [23:55:21]OFD Sender: No OFD packet to send [23:55:22]accept exits with 9 [23:55:22]New connection [23:55:22]New thread 3067080036 created [23:55:22]Thread 3066936676 joined [23:55:22]Waiting for new connection... [23:55:22] Sock 9.Parse request [23:55:22]Sock 9.Check first char [23:55:22]Sock 9.First char is OK [23:55:22]request: POST /json_proto HTTP/1.0 [23:55:22]Method: POST [23:55:22]URL: /json_proto [23:55:22]Method is POST - this is cgi request [23:55:22]url: /json_proto [23:55:22]query_string will be loaded in cgi processing [23:55:22]execute_cgi json_proto POST (null) [23:55:22]execute_cgi path=json_proto method=POST [23:55:22]POST find Content-Length [23:55:22]Host: 172.17.63.195:8080 [23:55:22]Content-Length: 215 [23:55:22]Content-Type: application/json [23:55:22] [23:55:22]POST finish read [23:55:22]Found Content-Length = 215 [23:55:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:22]execute_script... [23:55:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:22]POST & json_proto [23:55:22]process_json_proto [23:55:22]json parsed OK: [23:55:22]protocol is kg_v1.0 [23:55:22]action value=get_value [23:55:22]process_action get_value [23:55:22]cmd_get_value [23:55:22]process_action get_value done [23:55:22]requested_data is exist [23:55:22]produce_requested_data [23:55:22]requested_item kkm.sn is exist - process it [23:55:22]requested_item kkm.ver is exist - process it [23:55:22]requested_item fm.sn is exist - process it [23:55:22]wFMCommunicate request_size=4 [23:55:22]MH_SAM_APDU [23:55:22]CAPDU: 80 11 00 00 [23:55:22]Write to MH i2c: E2 08 00 48 05 80 11 00 00 00 00 00 00 C7 [23:55:22]Write i2c OK [23:55:22]MH_I2C_Read... [23:55:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:22]Read from MH i2c: E2 [23:55:22]MH_I2C_Read... [23:55:22]Read from MH i2c: E2 17 00 [23:55:22]MH_I2C_Read... [23:55:22]Read from MH i2c: E2 17 00 48 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1C [23:55:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [23:55:22]wFMCommunicate OK [23:55:22]requested_item fd.num is exist - process it [23:55:22]SAM_PROTO_GetFieldsCounters [23:55:22]wFMCommunicate request_size=4 [23:55:22]MH_SAM_APDU [23:55:22]CAPDU: 80 13 00 00 [23:55:22]Write to MH i2c: E2 08 00 49 05 80 13 00 00 00 00 00 00 CA [23:55:22]Write i2c OK [23:55:22]MH_I2C_Read... [23:55:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:55:22]Read from MH i2c: E2 [23:55:22]MH_I2C_Read... [23:55:22]Read from MH i2c: E2 62 00 [23:55:22]MH_I2C_Read... [23:55:22]Read from MH i2c: E2 62 00 49 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EA 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D4 01 00 00 5E 04 04 00 D4 01 00 00 57 04 04 00 D5 01 00 00 19 04 04 00 00 00 00 00 90 00 93 [23:55:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EA 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D4 01 00 00 5E 04 04 00 D4 01 00 00 57 04 04 00 D5 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:55:22]wFMCommunicate OK [23:55:22]SAM_PROTO_GetFieldsCounters done [23:55:22]requested_item shift.num is exist - process it [23:55:22]requested_item shift.opened is exist - process it [23:55:22]req_shift_opened [23:55:22]FM_GetShiftState [23:55:22]SAM_PROTO_GetShiftState [23:55:22]wFMCommunicate request_size=4 [23:55:22]MH_SAM_APDU [23:55:22]CAPDU: 80 13 01 00 [23:55:22]Write to MH i2c: E2 08 00 4A 05 80 13 01 00 00 00 00 00 CC [23:55:22]Write i2c OK [23:55:22]MH_I2C_Read... [23:55:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:22]Read from MH i2c: E2 [23:55:22]MH_I2C_Read... [23:55:22]Read from MH i2c: E2 0E 00 [23:55:22]MH_I2C_Read... [23:55:22]Read from MH i2c: E2 0E 00 4A 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 DB [23:55:22]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [23:55:22]wFMCommunicate OK [23:55:22]SAM_PROTO_GetShiftState done [23:55:22]FM_GetShiftState done [23:55:22]req_shift_opened done [23:55:22]requested_item shift.open_date is exist - process it [23:55:22]req_shift_open_date [23:55:22]req_shift_open_date done [23:55:22]produce_requested_data done [23:55:22]produce_requested_data return {"kkm.sn":"0300000109","kkm.ver":"001","fm.sn":"0000000000871756","fd.num":201706,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [23:55:22]process_action_free get_value [23:55:22]json_value_free [23:55:22]json_value_free done [23:55:22]process_json_proto returns [23:55:22]Send response to host [23:55:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000109","kkm.ver":"001","fm.sn":"0000000000871756","fd.num":201706,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [23:55:22]free response buf [23:55:22]execute_script done [23:55:22]execute_script returns [23:55:22]free content buf [23:55:22]Sock 9.Close socket [23:55:22]Sock 9.Thread stoped [23:55:22]accept exits with 8 [23:55:22]New connection [23:55:22]New thread 3066936676 created [23:55:22]Thread 3067080036 joined [23:55:22]Waiting for new connection... [23:55:22] Sock 8.Parse request [23:55:22]Sock 8.Check first char [23:55:22]Sock 8.First char is OK [23:55:22]request: POST /json_proto HTTP/1.0 [23:55:22]Method: POST [23:55:22]URL: /json_proto [23:55:22]Method is POST - this is cgi request [23:55:22]url: /json_proto [23:55:22]query_string will be loaded in cgi processing [23:55:22]execute_cgi json_proto POST (null) [23:55:22]execute_cgi path=json_proto method=POST [23:55:22]POST find Content-Length [23:55:22]Host: 172.17.63.195:8080 [23:55:22]Content-Length: 331 [23:55:22]Content-Type: application/json [23:55:22] [23:55:22]POST finish read [23:55:22]Found Content-Length = 331 [23:55:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:55:22]execute_script... [23:55:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:55:22]POST & json_proto [23:55:22]process_json_proto [23:55:22]json parsed OK: [23:55:22]protocol is kg_v1.0 [23:55:22]action value=get_value [23:55:22]process_action get_value [23:55:22]cmd_get_value [23:55:22]process_action get_value done [23:55:22]requested_data is exist [23:55:22]produce_requested_data [23:55:22]requested_item fm.sale.total is exist - process it [23:55:22]SAM_PROTO_GetFMData [23:55:22]wFMCommunicate request_size=4 [23:55:22]MH_SAM_APDU [23:55:22]CAPDU: 80 13 03 00 [23:55:22]Write to MH i2c: E2 08 00 4B 05 80 13 03 00 00 00 00 00 CF [23:55:22]Write i2c OK [23:55:22]MH_I2C_Read... [23:55:23]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:55:23]Read from MH i2c: E2 [23:55:23]MH_I2C_Read... [23:55:23]Read from MH i2c: E2 FD 00 [23:55:23]MH_I2C_Read... [23:55:23]Read from MH i2c: E2 FD 00 4B 05 00 C4 04 85 04 C0 04 6E 04 04 00 AC 0F 03 00 69 04 A3 00 6F 04 04 00 87 0F 03 00 B1 04 05 00 EA CC FD AC 03 70 04 05 00 3C B1 FD 4D 03 72 04 04 00 AE 1B 00 5F 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 E1 E5 F6 63 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 69 66 54 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 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 D4 [23:55:23]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 AC 0F 03 00 69 04 A3 00 6F 04 04 00 87 0F 03 00 B1 04 05 00 EA CC FD AC 03 70 04 05 00 3C B1 FD 4D 03 72 04 04 00 AE 1B 00 5F 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 E1 E5 F6 63 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 69 66 54 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 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 [23:55:23]wFMCommunicate OK [23:55:23]wFMCommunicate request_size=4 [23:55:23]MH_SAM_APDU [23:55:23]CAPDU: 80 17 00 00 [23:55:23]Write to MH i2c: E2 08 00 4C 05 80 17 00 00 00 00 00 00 D1 [23:55:23]Write i2c OK [23:55:23]MH_I2C_Read... [23:55:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:23]Read from MH i2c: E2 [23:55:23]MH_I2C_Read... [23:55:23]Read from MH i2c: E2 FD 00 [23:55:23]MH_I2C_Read... [23:55:23]Read from MH i2c: E2 FD 00 4C 05 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 D8 [23:55:23]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [23:55:23]wFMCommunicate OK [23:55:23]wFMCommunicate request_size=4 [23:55:23]MH_SAM_APDU [23:55:23]CAPDU: 80 17 00 00 [23:55:23]Write to MH i2c: E2 08 00 4D 05 80 17 00 00 00 00 00 00 D2 [23:55:23]Write i2c OK [23:55:23]MH_I2C_Read... [23:55:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:23]Read from MH i2c: E2 [23:55:23]MH_I2C_Read... [23:55:23]Read from MH i2c: E2 FD 00 [23:55:23]MH_I2C_Read... [23:55:23]Read from MH i2c: E2 FD 00 4D 05 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 E7 [23:55:23]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [23:55:23]wFMCommunicate OK [23:55:23]wFMCommunicate request_size=4 [23:55:23]MH_SAM_APDU [23:55:23]CAPDU: 80 17 00 00 [23:55:23]Write to MH i2c: E2 08 00 4E 05 80 17 00 00 00 00 00 00 D3 [23:55:23]Write i2c OK [23:55:23]MH_I2C_Read... [23:55:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:23]Read from MH i2c: E2 [23:55:23]MH_I2C_Read... [23:55:23]Read from MH i2c: E2 FD 00 [23:55:23]MH_I2C_Read... [23:55:23]Read from MH i2c: E2 FD 00 4E 05 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 4B [23:55:23]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:55:23]wFMCommunicate OK [23:55:23]wFMCommunicate request_size=4 [23:55:23]MH_SAM_APDU [23:55:23]CAPDU: 80 17 00 00 [23:55:23]Write to MH i2c: E2 08 00 4F 05 80 17 00 00 00 00 00 00 D4 [23:55:23]Write i2c OK [23:55:23]MH_I2C_Read... [23:55:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [23:55:24]Read from MH i2c: E2 [23:55:24]MH_I2C_Read... [23:55:24]Read from MH i2c: E2 E1 00 [23:55:24]MH_I2C_Read... [23:55:24]Read from MH i2c: E2 E1 00 4F 05 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C2 [23:55:24]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:55:24]wFMCommunicate OK [23:55:24]SAM_PROTO_GetFMData done [23:55:24]requested_item fm.sale_refund.total is exist - process it [23:55:24]requested_item fm.buy.total is exist - process it [23:55:24]requested_item shift.sale.total is exist - process it [23:55:24]SAM_PROTO_GetShiftData [23:55:24]wFMCommunicate request_size=4 [23:55:24]MH_SAM_APDU [23:55:24]CAPDU: 80 13 02 00 [23:55:24]Write to MH i2c: E2 08 00 50 05 80 13 02 00 00 00 00 00 D3 [23:55:24]Write i2c OK [23:55:24]MH_I2C_Read... [23:55:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:55:24]Read from MH i2c: E2 [23:55:24]MH_I2C_Read... [23:55:24]Read from MH i2c: E2 FD 00 [23:55:24]MH_I2C_Read... [23:55:24]Read from MH i2c: E2 FD 00 50 05 00 B1 04 AA 04 AD 04 6E 04 04 00 D4 01 00 00 69 04 9E 00 6F 04 04 00 D4 01 00 00 B1 04 04 00 43 C2 54 02 70 04 04 00 A0 80 0F 02 72 04 03 00 A3 41 45 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 45 64 3F 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 58 48 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 96 [23:55:24]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 D4 01 00 00 69 04 9E 00 6F 04 04 00 D4 01 00 00 B1 04 04 00 43 C2 54 02 70 04 04 00 A0 80 0F 02 72 04 03 00 A3 41 45 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 45 64 3F 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 58 48 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:24]wFMCommunicate OK [23:55:24]wFMCommunicate request_size=4 [23:55:24]MH_SAM_APDU [23:55:24]CAPDU: 80 17 00 00 [23:55:24]Write to MH i2c: E2 08 00 51 05 80 17 00 00 00 00 00 00 D6 [23:55:24]Write i2c OK [23:55:24]MH_I2C_Read... [23:55:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:24]Read from MH i2c: E2 [23:55:24]MH_I2C_Read... [23:55:24]Read from MH i2c: E2 FD 00 [23:55:24]MH_I2C_Read... [23:55:24]Read from MH i2c: E2 FD 00 51 05 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EF [23:55:24]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:24]wFMCommunicate OK [23:55:24]wFMCommunicate request_size=4 [23:55:24]MH_SAM_APDU [23:55:24]CAPDU: 80 17 00 00 [23:55:24]Write to MH i2c: E2 08 00 52 05 80 17 00 00 00 00 00 00 D7 [23:55:24]Write i2c OK [23:55:24]MH_I2C_Read... [23:55:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:25]Read from MH i2c: E2 [23:55:25]MH_I2C_Read... [23:55:25]Read from MH i2c: E2 FD 00 [23:55:25]MH_I2C_Read... [23:55:25]Read from MH i2c: E2 FD 00 52 05 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 90 [23:55:25]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:25]wFMCommunicate OK [23:55:25]wFMCommunicate request_size=4 [23:55:25]MH_SAM_APDU [23:55:25]CAPDU: 80 17 00 00 [23:55:25]Write to MH i2c: E2 08 00 53 05 80 17 00 00 00 00 00 00 D8 [23:55:25]Write i2c OK [23:55:25]MH_I2C_Read... [23:55:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:25]Read from MH i2c: E2 [23:55:25]MH_I2C_Read... [23:55:25]Read from MH i2c: E2 FD 00 [23:55:25]MH_I2C_Read... [23:55:25]Read from MH i2c: E2 FD 00 53 05 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 90 00 50 [23:55:25]RAPDU: 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 90 00 [23:55:25]wFMCommunicate OK [23:55:25]wFMCommunicate request_size=4 [23:55:25]MH_SAM_APDU [23:55:25]CAPDU: 80 17 00 00 [23:55:25]Write to MH i2c: E2 08 00 54 05 80 17 00 00 00 00 00 00 D9 [23:55:25]Write i2c OK [23:55:25]MH_I2C_Read... [23:55:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [23:55:25]Read from MH i2c: E2 [23:55:25]MH_I2C_Read... [23:55:25]Read from MH i2c: E2 CE 00 [23:55:25]MH_I2C_Read... [23:55:25]Read from MH i2c: E2 CE 00 54 05 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 BE [23:55:25]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:55:25]wFMCommunicate OK [23:55:25]SAM_PROTO_GetShiftData done [23:55:25]requested_item shift.sale.total_cash is exist - process it [23:55:25]requested_item shift.sale_refund.total is exist - process it [23:55:25]requested_item shift.sale_refund.total_cash is exist - process it [23:55:25]requested_item shift.buy.total is exist - process it [23:55:25]requested_item shift.buy.total_cash is exist - process it [23:55:25]produce_requested_data done [23:55:25]produce_requested_data return {"fm.sale.total":157872161.06,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":391091.87,"shift.sale.total_cash":345704.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:55:25]process_action_free get_value [23:55:25]json_value_free [23:55:25]json_value_free done [23:55:25]process_json_proto returns [23:55:25]Send response to host [23:55:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":157872161.06,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":391091.87,"shift.sale.total_cash":345704.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:55:25]free response buf [23:55:25]execute_script done [23:55:25]execute_script returns [23:55:25]free content buf [23:55:25]Sock 8.Close socket [23:55:25]Sock 8.Thread stoped [23:55:25]accept exits with 9 [23:55:25]New connection [23:55:25]New thread 3067080036 created [23:55:25]Thread 3066936676 joined [23:55:25]Waiting for new connection... [23:55:25] Sock 9.Parse request [23:55:25]Sock 9.Check first char [23:55:25]Sock 9.First char is OK [23:55:25]request: POST /json_proto HTTP/1.0 [23:55:25]Method: POST [23:55:25]URL: /json_proto [23:55:25]Method is POST - this is cgi request [23:55:25]url: /json_proto [23:55:25]query_string will be loaded in cgi processing [23:55:25]execute_cgi json_proto POST (null) [23:55:25]execute_cgi path=json_proto method=POST [23:55:25]POST find Content-Length [23:55:25]Host: 172.17.63.195:8080 [23:55:25]Content-Length: 331 [23:55:25]Content-Type: application/json [23:55:25] [23:55:25]POST finish read [23:55:25]Found Content-Length = 331 [23:55:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:55:25]execute_script... [23:55:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:55:25]POST & json_proto [23:55:25]process_json_proto [23:55:25]json parsed OK: [23:55:25]protocol is kg_v1.0 [23:55:25]action value=get_value [23:55:25]process_action get_value [23:55:25]cmd_get_value [23:55:25]process_action get_value done [23:55:25]requested_data is exist [23:55:25]produce_requested_data [23:55:25]requested_item fm.sale.total is exist - process it [23:55:25]SAM_PROTO_GetFMData [23:55:25]wFMCommunicate request_size=4 [23:55:25]MH_SAM_APDU [23:55:25]CAPDU: 80 13 03 00 [23:55:25]Write to MH i2c: E2 08 00 55 05 80 13 03 00 00 00 00 00 D9 [23:55:25]Write i2c OK [23:55:25]MH_I2C_Read... [23:55:26]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:55:26]Read from MH i2c: E2 [23:55:26]MH_I2C_Read... [23:55:26]Read from MH i2c: E2 FD 00 [23:55:26]MH_I2C_Read... [23:55:26]Read from MH i2c: E2 FD 00 55 05 00 C4 04 85 04 C0 04 6E 04 04 00 AC 0F 03 00 69 04 A3 00 6F 04 04 00 87 0F 03 00 B1 04 05 00 EA CC FD AC 03 70 04 05 00 3C B1 FD 4D 03 72 04 04 00 AE 1B 00 5F 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 E1 E5 F6 63 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 69 66 54 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 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 DE [23:55:26]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 AC 0F 03 00 69 04 A3 00 6F 04 04 00 87 0F 03 00 B1 04 05 00 EA CC FD AC 03 70 04 05 00 3C B1 FD 4D 03 72 04 04 00 AE 1B 00 5F 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 E1 E5 F6 63 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 69 66 54 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 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 [23:55:26]wFMCommunicate OK [23:55:26]wFMCommunicate request_size=4 [23:55:26]MH_SAM_APDU [23:55:26]CAPDU: 80 17 00 00 [23:55:26]Write to MH i2c: E2 08 00 56 05 80 17 00 00 00 00 00 00 DB [23:55:26]Write i2c OK [23:55:26]MH_I2C_Read... [23:55:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:26]Read from MH i2c: E2 [23:55:26]MH_I2C_Read... [23:55:26]Read from MH i2c: E2 FD 00 [23:55:26]MH_I2C_Read... [23:55:26]Read from MH i2c: E2 FD 00 56 05 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 E2 [23:55:26]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [23:55:26]wFMCommunicate OK [23:55:26]wFMCommunicate request_size=4 [23:55:26]MH_SAM_APDU [23:55:26]CAPDU: 80 17 00 00 [23:55:26]Write to MH i2c: E2 08 00 57 05 80 17 00 00 00 00 00 00 DC [23:55:26]Write i2c OK [23:55:26]MH_I2C_Read... [23:55:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:27]Read from MH i2c: E2 [23:55:27]MH_I2C_Read... [23:55:27]OFD Sender: No OFD packet to send [23:55:27]Read from MH i2c: E2 FD 00 [23:55:27]MH_I2C_Read... [23:55:27]Read from MH i2c: E2 FD 00 57 05 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 F1 [23:55:27]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [23:55:27]wFMCommunicate OK [23:55:27]wFMCommunicate request_size=4 [23:55:27]MH_SAM_APDU [23:55:27]CAPDU: 80 17 00 00 [23:55:27]Write to MH i2c: E2 08 00 58 05 80 17 00 00 00 00 00 00 DD [23:55:27]Write i2c OK [23:55:27]MH_I2C_Read... [23:55:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:27]Read from MH i2c: E2 [23:55:27]MH_I2C_Read... [23:55:27]Read from MH i2c: E2 FD 00 [23:55:27]MH_I2C_Read... [23:55:27]Read from MH i2c: E2 FD 00 58 05 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 55 [23:55:27]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:55:27]wFMCommunicate OK [23:55:27]wFMCommunicate request_size=4 [23:55:27]MH_SAM_APDU [23:55:27]CAPDU: 80 17 00 00 [23:55:27]Write to MH i2c: E2 08 00 59 05 80 17 00 00 00 00 00 00 DE [23:55:27]Write i2c OK [23:55:27]MH_I2C_Read... [23:55:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [23:55:27]Read from MH i2c: E2 [23:55:27]MH_I2C_Read... [23:55:27]Read from MH i2c: E2 E1 00 [23:55:27]MH_I2C_Read... [23:55:27]Read from MH i2c: E2 E1 00 59 05 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 CC [23:55:27]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:55:27]wFMCommunicate OK [23:55:27]SAM_PROTO_GetFMData done [23:55:27]requested_item fm.sale_refund.total is exist - process it [23:55:27]requested_item fm.buy.total is exist - process it [23:55:27]requested_item shift.sale.total is exist - process it [23:55:27]SAM_PROTO_GetShiftData [23:55:27]wFMCommunicate request_size=4 [23:55:27]MH_SAM_APDU [23:55:27]CAPDU: 80 13 02 00 [23:55:27]Write to MH i2c: E2 08 00 5A 05 80 13 02 00 00 00 00 00 DD [23:55:27]Write i2c OK [23:55:27]MH_I2C_Read... [23:55:28]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:55:28]Read from MH i2c: E2 [23:55:28]MH_I2C_Read... [23:55:28]Read from MH i2c: E2 FD 00 [23:55:28]MH_I2C_Read... [23:55:28]Read from MH i2c: E2 FD 00 5A 05 00 B1 04 AA 04 AD 04 6E 04 04 00 D4 01 00 00 69 04 9E 00 6F 04 04 00 D4 01 00 00 B1 04 04 00 43 C2 54 02 70 04 04 00 A0 80 0F 02 72 04 03 00 A3 41 45 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 45 64 3F 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 58 48 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A0 [23:55:28]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 D4 01 00 00 69 04 9E 00 6F 04 04 00 D4 01 00 00 B1 04 04 00 43 C2 54 02 70 04 04 00 A0 80 0F 02 72 04 03 00 A3 41 45 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 45 64 3F 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 58 48 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:28]wFMCommunicate OK [23:55:28]wFMCommunicate request_size=4 [23:55:28]MH_SAM_APDU [23:55:28]CAPDU: 80 17 00 00 [23:55:28]Write to MH i2c: E2 08 00 5B 05 80 17 00 00 00 00 00 00 E0 [23:55:28]Write i2c OK [23:55:28]MH_I2C_Read... [23:55:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:28]Read from MH i2c: E2 [23:55:28]MH_I2C_Read... [23:55:28]Read from MH i2c: E2 FD 00 [23:55:28]MH_I2C_Read... [23:55:28]Read from MH i2c: E2 FD 00 5B 05 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F9 [23:55:28]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:28]wFMCommunicate OK [23:55:28]wFMCommunicate request_size=4 [23:55:28]MH_SAM_APDU [23:55:28]CAPDU: 80 17 00 00 [23:55:28]Write to MH i2c: E2 08 00 5C 05 80 17 00 00 00 00 00 00 E1 [23:55:28]Write i2c OK [23:55:28]MH_I2C_Read... [23:55:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:29]Read from MH i2c: E2 [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: E2 FD 00 [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: E2 FD 00 5C 05 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9A [23:55:29]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 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 17 00 00 [23:55:29]Write to MH i2c: E2 08 00 5D 05 80 17 00 00 00 00 00 00 E2 [23:55:29]Write i2c OK [23:55:29]MH_I2C_Read... [23:55:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:29]Read from MH i2c: E2 [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: E2 FD 00 [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: E2 FD 00 5D 05 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 90 00 5A [23:55:29]RAPDU: 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 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 17 00 00 [23:55:29]Write to MH i2c: E2 08 00 5E 05 80 17 00 00 00 00 00 00 E3 [23:55:29]Write i2c OK [23:55:29]MH_I2C_Read... [23:55:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [23:55:29]Read from MH i2c: E2 [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: E2 CE 00 [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: E2 CE 00 5E 05 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C8 [23:55:29]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:55:29]wFMCommunicate OK [23:55:29]SAM_PROTO_GetShiftData done [23:55:29]requested_item shift.sale.total_cash is exist - process it [23:55:29]requested_item shift.sale_refund.total is exist - process it [23:55:29]requested_item shift.sale_refund.total_cash is exist - process it [23:55:29]requested_item shift.buy.total is exist - process it [23:55:29]requested_item shift.buy.total_cash is exist - process it [23:55:29]produce_requested_data done [23:55:29]produce_requested_data return {"fm.sale.total":157872161.06,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":391091.87,"shift.sale.total_cash":345704.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:55:29]process_action_free get_value [23:55:29]json_value_free [23:55:29]json_value_free done [23:55:29]process_json_proto returns [23:55:29]Send response to host [23:55:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":157872161.06,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":391091.87,"shift.sale.total_cash":345704.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:55:29]free response buf [23:55:29]execute_script done [23:55:29]execute_script returns [23:55:29]free content buf [23:55:29]Sock 9.Close socket [23:55:29]Sock 9.Thread stoped [23:55:29]accept exits with 8 [23:55:29]New connection [23:55:29]New thread 3066936676 created [23:55:29]Thread 3067080036 joined [23:55:29]Waiting for new connection... [23:55:29] Sock 8.Parse request [23:55:29]Sock 8.Check first char [23:55:29]Sock 8.First char is OK [23:55:29]request: POST /json_proto HTTP/1.0 [23:55:29]Method: POST [23:55:29]URL: /json_proto [23:55:29]Method is POST - this is cgi request [23:55:29]url: /json_proto [23:55:29]query_string will be loaded in cgi processing [23:55:29]execute_cgi json_proto POST (null) [23:55:29]execute_cgi path=json_proto method=POST [23:55:29]POST find Content-Length [23:55:29]Host: 172.17.63.195:8080 [23:55:29]Content-Length: 270 [23:55:29]Content-Type: application/json [23:55:29] [23:55:29]POST finish read [23:55:29]Found Content-Length = 270 [23:55:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0428\u0430\u0439\u0431\u0435\u043A \u0443\u0443\u043B\u0443 \u0423. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:29]execute_script... [23:55:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0428\u0430\u0439\u0431\u0435\u043A \u0443\u0443\u043B\u0443 \u0423. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:29]POST & json_proto [23:55:29]process_json_proto [23:55:29]json parsed OK: [23:55:29]protocol is kg_v1.0 [23:55:29]action value=x_report [23:55:29]process_action x_report [23:55:29]cmd_x_report [23:55:29]MH_GetDate [23:55:29]Write to MH i2c: F0 00 00 5F 05 53 [23:55:29]Write i2c OK [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: F0 [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: F0 09 00 [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: F0 09 00 5F 05 00 73 81 1D 67 68 46 19 67 02 [23:55:29]GetLastDocTimeStamp 1729984177 [23:55:29]current date 1729986931 [23:55:29]FM_GetShiftState [23:55:29]SAM_PROTO_GetShiftState [23:55:29]wFMCommunicate request_size=4 [23:55:29]MH_SAM_APDU [23:55:29]CAPDU: 80 13 01 00 [23:55:29]Write to MH i2c: E2 08 00 60 05 80 13 01 00 00 00 00 00 E2 [23:55:29]Write i2c OK [23:55:29]MH_I2C_Read... [23:55:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:29]Read from MH i2c: E2 [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: E2 0E 00 [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: E2 0E 00 60 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 F1 [23:55:29]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [23:55:29]wFMCommunicate OK [23:55:29]SAM_PROTO_GetShiftState done [23:55:29]FM_GetShiftState done [23:55:29]KKMCreateXReportDocument [23:55:29]Load OK [23:55:29]Malloc new data [23:55:29]MH_GetDate [23:55:29]Write to MH i2c: F0 00 00 61 05 55 [23:55:29]Write i2c OK [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: F0 [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: F0 09 00 [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: F0 09 00 61 05 00 73 81 1D 67 68 46 19 67 04 [23:55:29]Malloc new data [23:55:29]Malloc new data [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 62 05 80 11 00 00 00 00 00 00 E1 [23:55:30]Write i2c OK [23:55:30]MH_I2C_Read... [23:55:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:30]Read from MH i2c: E2 [23:55:30]MH_I2C_Read... [23:55:30]Read from MH i2c: E2 17 00 [23:55:30]MH_I2C_Read... [23:55:30]Read from MH i2c: E2 17 00 62 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 36 [23:55:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [23:55:30]wFMCommunicate OK [23:55:30]SAM_PROTO_GetFieldsCounters [23:55:30]wFMCommunicate request_size=4 [23:55:30]MH_SAM_APDU [23:55:30]CAPDU: 80 13 00 00 [23:55:30]Write to MH i2c: E2 08 00 63 05 80 13 00 00 00 00 00 00 E4 [23:55:30]Write i2c OK [23:55:30]MH_I2C_Read... [23:55:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:55:30]Read from MH i2c: E2 [23:55:30]MH_I2C_Read... [23:55:30]Read from MH i2c: E2 62 00 [23:55:30]MH_I2C_Read... [23:55:30]Read from MH i2c: E2 62 00 63 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EA 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D4 01 00 00 5E 04 04 00 D4 01 00 00 57 04 04 00 D5 01 00 00 19 04 04 00 00 00 00 00 90 00 AD [23:55:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EA 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D4 01 00 00 5E 04 04 00 D4 01 00 00 57 04 04 00 D5 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:55:30]wFMCommunicate OK [23:55:30]SAM_PROTO_GetFieldsCounters done [23:55:30]Malloc new data [23:55:30]Malloc new data [23:55:30]Malloc new data [23:55:30]KKMCreateXReportDocument OK [23:55:30]KKMSetXReportData OK [23:55:30]KKMPrepareXReportFMData [23:55:30]SAM_PROTO_GetShiftData [23:55:30]wFMCommunicate request_size=4 [23:55:30]MH_SAM_APDU [23:55:30]CAPDU: 80 13 02 00 [23:55:30]Write to MH i2c: E2 08 00 64 05 80 13 02 00 00 00 00 00 E7 [23:55:30]Write i2c OK [23:55:30]MH_I2C_Read... [23:55:30]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:55:30]Read from MH i2c: E2 [23:55:30]MH_I2C_Read... [23:55:30]Read from MH i2c: E2 FD 00 [23:55:30]MH_I2C_Read... [23:55:30]Read from MH i2c: E2 FD 00 64 05 00 B1 04 AA 04 AD 04 6E 04 04 00 D4 01 00 00 69 04 9E 00 6F 04 04 00 D4 01 00 00 B1 04 04 00 43 C2 54 02 70 04 04 00 A0 80 0F 02 72 04 03 00 A3 41 45 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 45 64 3F 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 58 48 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AA [23:55:30]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 D4 01 00 00 69 04 9E 00 6F 04 04 00 D4 01 00 00 B1 04 04 00 43 C2 54 02 70 04 04 00 A0 80 0F 02 72 04 03 00 A3 41 45 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 45 64 3F 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 58 48 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:30]wFMCommunicate OK [23:55:30]wFMCommunicate request_size=4 [23:55:30]MH_SAM_APDU [23:55:30]CAPDU: 80 17 00 00 [23:55:30]Write to MH i2c: E2 08 00 65 05 80 17 00 00 00 00 00 00 EA [23:55:30]Write i2c OK [23:55:30]MH_I2C_Read... [23:55:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:31]Read from MH i2c: E2 [23:55:31]MH_I2C_Read... [23:55:31]Read from MH i2c: E2 FD 00 [23:55:31]MH_I2C_Read... [23:55:31]Read from MH i2c: E2 FD 00 65 05 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 03 [23:55:31]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:31]wFMCommunicate OK [23:55:31]wFMCommunicate request_size=4 [23:55:31]MH_SAM_APDU [23:55:31]CAPDU: 80 17 00 00 [23:55:31]Write to MH i2c: E2 08 00 66 05 80 17 00 00 00 00 00 00 EB [23:55:31]Write i2c OK [23:55:31]MH_I2C_Read... [23:55:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:31]Read from MH i2c: E2 [23:55:31]MH_I2C_Read... [23:55:31]Read from MH i2c: E2 FD 00 [23:55:31]MH_I2C_Read... [23:55:31]Read from MH i2c: E2 FD 00 66 05 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A4 [23:55:31]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:31]wFMCommunicate OK [23:55:31]wFMCommunicate request_size=4 [23:55:31]MH_SAM_APDU [23:55:31]CAPDU: 80 17 00 00 [23:55:31]Write to MH i2c: E2 08 00 67 05 80 17 00 00 00 00 00 00 EC [23:55:31]Write i2c OK [23:55:31]MH_I2C_Read... [23:55:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:32]Read from MH i2c: E2 [23:55:32]MH_I2C_Read... [23:55:32]Read from MH i2c: E2 FD 00 [23:55:32]MH_I2C_Read... [23:55:32]Read from MH i2c: E2 FD 00 67 05 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 90 00 64 [23:55:32]RAPDU: 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 OFD Sender: No OFD packet to send [23:55:32]00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:32]wFMCommunicate OK [23:55:32]wFMCommunicate request_size=4 [23:55:32]MH_SAM_APDU [23:55:32]CAPDU: 80 17 00 00 [23:55:32]Write to MH i2c: E2 08 00 68 05 80 17 00 00 00 00 00 00 ED [23:55:32]Write i2c OK [23:55:32]MH_I2C_Read... [23:55:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [23:55:32]Read from MH i2c: E2 [23:55:32]MH_I2C_Read... [23:55:32]Read from MH i2c: E2 CE 00 [23:55:32]MH_I2C_Read... [23:55:32]Read from MH i2c: E2 CE 00 68 05 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D2 [23:55:32]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:55:32]wFMCommunicate OK [23:55:32]SAM_PROTO_GetShiftData done [23:55:32]1194 (1197) - счетчики итогов смены [23:55:32] 1134 (4) - 468 - количество чеков со всеми признаками расчетов [23:55:32] 1129 (158) - счетчики операций «приход» [23:55:32] 1135 (4) - 468 - количество чеков по признаку расчетов [23:55:32] 1201 (4) - 391091.87 - общая итоговая сумма в чеках [23:55:32] 1136 (4) - 345704.00 - итоговая сумма в чеках наличными [23:55:32] 1138 (3) - 45387.87 - итоговая сумма в чеках безналичными [23:55:32] 1024 (123) - суммы налогов [23:55:32] 1006 (9) - суммы НДС [23:55:32] 1010 (1) - 0% - код ставки НДС [23:55:32] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:32] 1006 (12) - суммы НДС [23:55:32] 1010 (1) - 12% - код ставки НДС [23:55:32] 1011 (3) - 41544.37 - сумма НДС по ставке [23:55:32] 1007 (9) - суммы НСП [23:55:32] 1014 (1) - 0% - код ставки НСП [23:55:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:32] 1007 (12) - суммы НСП [23:55:32] 1014 (1) - 1% - код ставки НСП [23:55:32] 1015 (3) - 3462.00 - сумма НСП по ставке [23:55:32] 1007 (9) - суммы НСП [23:55:32] 1014 (1) - 2% - код ставки НСП [23:55:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:32] 1007 (9) - суммы НСП [23:55:32] 1014 (1) - 3% - код ставки НСП [23:55:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:32] 1007 (9) - суммы НСП [23:55:32] 1014 (1) - 5% - код ставки НСП [23:55:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:32] 1007 (9) - суммы НСП [23:55:32] 1014 (1) - 0,50% - код ставки НСП [23:55:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:32] 1007 (9) - суммы НСП [23:55:32] 1014 (1) - 1,50% - код ставки НСП [23:55:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:32] 1130 (141) - счетчики операций «возврат прихода» [23:55:32] 1135 (4) - 0 - количество чеков по признаку расчетов [23:55:32] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:55:32] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:55:32] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:55:32] 1024 (117) - суммы налогов [23:55:32] 1006 (9) - суммы НДС [23:55:32] 1010 (1) - 0% - код ставки НДС [23:55:32] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:32] 1006 (9) - суммы НДС [23:55:32] 1010 (1) - 12% - код ставки НДС [23:55:32] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:32] 1007 (9) - суммы НСП [23:55:32] 1014 (1) - 0% - код ставки НСП [23:55:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:32] 1007 (9) - суммы НСП [23:55:32] 1014 (1) - 1% - код ставки НСП [23:55:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:32] 1007 (9) - суммы НСП [23:55:32] 1014 (1) - 2% - код ставки НСП [23:55:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:32] 1007 (9) - суммы НСП [23:55:32] 1014 (1) - 3% - код ставки НСП [23:55:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:32] 1007 (9) - суммы НСП [23:55:32] 1014 (1) - 5% - код ставки НСП [23:55:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:32] 1007 (9) - суммы НСП [23:55:32] 1014 (1) - 0,50% - код ставки НСП [23:55:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:32] 1007 (9) - суммы НСП [23:55:32] 1014 (1) - 1,50% - код ставки НСП [23:55:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:32] 1131 (141) - счетчики операций «расход» [23:55:32] 1135 (4) - 0 - количество чеков по признаку расчетов [23:55:32] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:55:32] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:55:32] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:55:32] 1024 (117) - суммы налогов [23:55:32] 1006 (9) - суммы НДС [23:55:32] 1010 (1) - 0% - код ставки НДС [23:55:32] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:32] 1006 (9) - суммы НДС [23:55:32] 1010 (1) - 12% - код ставки НДС [23:55:32] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:32] 1007 (9) - суммы НСП [23:55:32] 1014 (1) - 0% - код ставки НСП [23:55:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:32] 1007 (9) - суммы НСП [23:55:32] 1014 (1) - 1% - код ставки НСП [23:55:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:32] 1007 (9) - суммы НСП [23:55:32] 1014 (1) - 2% - код ставки НСП [23:55:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:32] 1007 (9) - суммы НСП [23:55:32] 1014 (1) - 3% - код ставки НСП [23:55:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:32] 1007 (9) - суммы НСП [23:55:32] 1014 (1) - 5% - код ставки НСП [23:55:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:32] 1007 (9) - суммы НСП [23:55:32] 1014 (1) - 0,50% - код ставки НСП [23:55:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:32] 1007 (9) - суммы НСП [23:55:32] 1014 (1) - 1,50% - код ставки НСП [23:55:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:32] 1132 (141) - счетчики операций «возврат расхода» [23:55:32] 1135 (4) - 0 - количество чеков по признаку расчетов [23:55:32] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:55:32] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:55:32] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:55:32] 1024 (117) - суммы налогов [23:55:32] 1006 (9) - суммы НДС [23:55:32] 1010 (1) - 0% - код ставки НДС [23:55:32] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:32] 1006 (9) - суммы НДС [23:55:32] 1010 (1) - 12% - код ставки НДС [23:55:32] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:32] 1007 (9) - суммы НСП [23:55:32] 1014 (1) - 0% - код ставки НСП [23:55:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:32] 1007 (9) - суммы НСП [23:55:32] 1014 (1) - 1% - код ставки НСП [23:55:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:32] 1007 (9) - суммы НСП [23:55:32] 1014 (1) - 2% - код ставки НСП [23:55:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:32] 1007 (9) - суммы НСП [23:55:32] 1014 (1) - 3% - код ставки НСП [23:55:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:32] 1007 (9) - суммы НСП [23:55:32] 1014 (1) - 5% - код ставки НСП [23:55:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:32] 1007 (9) - суммы НСП [23:55:32] 1014 (1) - 0,50% - код ставки НСП [23:55:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:32] 1007 (9) - суммы НСП [23:55:32] 1014 (1) - 1,50% - код ставки НСП [23:55:32] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:32] 1133 (588) - - счетчики коррекции - не используются [23:55:32]SetTLVBufToDocument [23:55:32]Processing tag 1194 (04AA) [23:55:32]Load OK [23:55:32]SetTLVBufToDocument [23:55:32]Processing tag 1134 (046E) [23:55:32]Malloc new data [23:55:32]Processing tag 1129 (0469) [23:55:32]Load OK [23:55:32]SetTLVBufToDocument [23:55:32]Processing tag 1135 (046F) [23:55:32]Malloc new data [23:55:32]Processing tag 1201 (04B1) [23:55:32]Malloc new data [23:55:32]Processing tag 1136 (0470) [23:55:32]Malloc new data [23:55:32]Processing tag 1138 (0472) [23:55:32]Malloc new data [23:55:33]Processing tag 1024 (0400) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1006 (03EE) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1010 (03F2) [23:55:33]Malloc new data [23:55:33]Processing tag 1011 (03F3) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1006 (03EE) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1010 (03F2) [23:55:33]Malloc new data [23:55:33]Processing tag 1011 (03F3) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1007 (03EF) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1014 (03F6) [23:55:33]Malloc new data [23:55:33]Processing tag 1015 (03F7) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1007 (03EF) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1014 (03F6) [23:55:33]Malloc new data [23:55:33]Processing tag 1015 (03F7) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1007 (03EF) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1014 (03F6) [23:55:33]Malloc new data [23:55:33]Processing tag 1015 (03F7) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1007 (03EF) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1014 (03F6) [23:55:33]Malloc new data [23:55:33]Processing tag 1015 (03F7) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1007 (03EF) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1014 (03F6) [23:55:33]Malloc new data [23:55:33]Processing tag 1015 (03F7) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1007 (03EF) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1014 (03F6) [23:55:33]Malloc new data [23:55:33]Processing tag 1015 (03F7) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1007 (03EF) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1014 (03F6) [23:55:33]Malloc new data [23:55:33]Processing tag 1015 (03F7) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]SetTLVBufToDocument err=0 [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1130 (046A) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1135 (046F) [23:55:33]Malloc new data [23:55:33]Processing tag 1201 (04B1) [23:55:33]Malloc new data [23:55:33]Processing tag 1136 (0470) [23:55:33]Malloc new data [23:55:33]Processing tag 1138 (0472) [23:55:33]Malloc new data [23:55:33]Processing tag 1024 (0400) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1006 (03EE) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1010 (03F2) [23:55:33]Malloc new data [23:55:33]Processing tag 1011 (03F3) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1006 (03EE) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1010 (03F2) [23:55:33]Malloc new data [23:55:33]Processing tag 1011 (03F3) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1007 (03EF) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1014 (03F6) [23:55:33]Malloc new data [23:55:33]Processing tag 1015 (03F7) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1007 (03EF) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1014 (03F6) [23:55:33]Malloc new data [23:55:33]Processing tag 1015 (03F7) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1007 (03EF) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1014 (03F6) [23:55:33]Malloc new data [23:55:33]Processing tag 1015 (03F7) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1007 (03EF) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1014 (03F6) [23:55:33]Malloc new data [23:55:33]Processing tag 1015 (03F7) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1007 (03EF) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1014 (03F6) [23:55:33]Malloc new data [23:55:33]Processing tag 1015 (03F7) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1007 (03EF) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1014 (03F6) [23:55:33]Malloc new data [23:55:33]Processing tag 1015 (03F7) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1007 (03EF) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1014 (03F6) [23:55:33]Malloc new data [23:55:33]Processing tag 1015 (03F7) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]SetTLVBufToDocument err=0 [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1131 (046B) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1135 (046F) [23:55:33]Malloc new data [23:55:33]Processing tag 1201 (04B1) [23:55:33]Malloc new data [23:55:33]Processing tag 1136 (0470) [23:55:33]Malloc new data [23:55:33]Processing tag 1138 (0472) [23:55:33]Malloc new data [23:55:33]Processing tag 1024 (0400) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1006 (03EE) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1010 (03F2) [23:55:33]Malloc new data [23:55:33]Processing tag 1011 (03F3) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1006 (03EE) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1010 (03F2) [23:55:33]Malloc new data [23:55:33]Processing tag 1011 (03F3) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1007 (03EF) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1014 (03F6) [23:55:33]Malloc new data [23:55:33]Processing tag 1015 (03F7) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1007 (03EF) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1014 (03F6) [23:55:33]Malloc new data [23:55:33]Processing tag 1015 (03F7) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1007 (03EF) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1014 (03F6) [23:55:33]Malloc new data [23:55:33]Processing tag 1015 (03F7) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1007 (03EF) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1014 (03F6) [23:55:33]Malloc new data [23:55:33]Processing tag 1015 (03F7) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1007 (03EF) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1014 (03F6) [23:55:33]Malloc new data [23:55:33]Processing tag 1015 (03F7) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1007 (03EF) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1014 (03F6) [23:55:33]Malloc new data [23:55:33]Processing tag 1015 (03F7) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1007 (03EF) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1014 (03F6) [23:55:33]Malloc new data [23:55:33]Processing tag 1015 (03F7) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]SetTLVBufToDocument err=0 [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1132 (046C) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1135 (046F) [23:55:33]Malloc new data [23:55:33]Processing tag 1201 (04B1) [23:55:33]Malloc new data [23:55:33]Processing tag 1136 (0470) [23:55:33]Malloc new data [23:55:33]Processing tag 1138 (0472) [23:55:33]Malloc new data [23:55:33]Processing tag 1024 (0400) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1006 (03EE) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1010 (03F2) [23:55:33]Malloc new data [23:55:33]Processing tag 1011 (03F3) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1006 (03EE) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1010 (03F2) [23:55:33]Malloc new data [23:55:33]Processing tag 1011 (03F3) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1007 (03EF) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1014 (03F6) [23:55:33]Malloc new data [23:55:33]Processing tag 1015 (03F7) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1007 (03EF) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1014 (03F6) [23:55:33]Malloc new data [23:55:33]Processing tag 1015 (03F7) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1007 (03EF) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1014 (03F6) [23:55:33]Malloc new data [23:55:33]Processing tag 1015 (03F7) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1007 (03EF) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1014 (03F6) [23:55:33]Malloc new data [23:55:33]Processing tag 1015 (03F7) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1007 (03EF) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1014 (03F6) [23:55:33]Malloc new data [23:55:33]Processing tag 1015 (03F7) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1007 (03EF) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1014 (03F6) [23:55:33]Malloc new data [23:55:33]Processing tag 1015 (03F7) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1007 (03EF) [23:55:33]Load OK [23:55:33]SetTLVBufToDocument [23:55:33]Processing tag 1014 (03F6) [23:55:33]Malloc new data [23:55:33]Processing tag 1015 (03F7) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]SetTLVBufToDocument err=0 [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Processing tag 1133 (046D) [23:55:33]Malloc new data [23:55:33]SetTLVBufToDocument err=0 [23:55:33]SetTLVBufToDocument err=0 [23:55:33]Malloc new data [23:55:33]SAM_PROTO_GetFMData [23:55:33]wFMCommunicate request_size=4 [23:55:33]MH_SAM_APDU [23:55:33]CAPDU: 80 13 03 00 [23:55:33]Write to MH i2c: E2 08 00 69 05 80 13 03 00 00 00 00 00 ED [23:55:33]Write i2c OK [23:55:33]MH_I2C_Read... [23:55:34]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:55:34]Read from MH i2c: E2 [23:55:34]MH_I2C_Read... [23:55:34]Read from MH i2c: E2 FD 00 [23:55:34]MH_I2C_Read... [23:55:34]Read from MH i2c: E2 FD 00 69 05 00 C4 04 85 04 C0 04 6E 04 04 00 AC 0F 03 00 69 04 A3 00 6F 04 04 00 87 0F 03 00 B1 04 05 00 EA CC FD AC 03 70 04 05 00 3C B1 FD 4D 03 72 04 04 00 AE 1B 00 5F 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 E1 E5 F6 63 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 69 66 54 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 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 F2 [23:55:34]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 AC 0F 03 00 69 04 A3 00 6F 04 04 00 87 0F 03 00 B1 04 05 00 EA CC FD AC 03 70 04 05 00 3C B1 FD 4D 03 72 04 04 00 AE 1B 00 5F 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 E1 E5 F6 63 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 69 66 54 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 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 [23:55:34]wFMCommunicate OK [23:55:34]wFMCommunicate request_size=4 [23:55:34]MH_SAM_APDU [23:55:34]CAPDU: 80 17 00 00 [23:55:34]Write to MH i2c: E2 08 00 6A 05 80 17 00 00 00 00 00 00 EF [23:55:34]Write i2c OK [23:55:34]MH_I2C_Read... [23:55:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:34]Read from MH i2c: E2 [23:55:34]MH_I2C_Read... [23:55:34]Read from MH i2c: E2 FD 00 [23:55:34]MH_I2C_Read... [23:55:34]Read from MH i2c: E2 FD 00 6A 05 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 F6 [23:55:34]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [23:55:34]wFMCommunicate OK [23:55:34]wFMCommunicate request_size=4 [23:55:34]MH_SAM_APDU [23:55:34]CAPDU: 80 17 00 00 [23:55:34]Write to MH i2c: E2 08 00 6B 05 80 17 00 00 00 00 00 00 F0 [23:55:34]Write i2c OK [23:55:34]MH_I2C_Read... [23:55:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:35]Read from MH i2c: E2 [23:55:35]MH_I2C_Read... [23:55:35]Read from MH i2c: E2 FD 00 [23:55:35]MH_I2C_Read... [23:55:35]Read from MH i2c: E2 FD 00 6B 05 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 05 [23:55:35]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [23:55:35]wFMCommunicate OK [23:55:35]wFMCommunicate request_size=4 [23:55:35]MH_SAM_APDU [23:55:35]CAPDU: 80 17 00 00 [23:55:35]Write to MH i2c: E2 08 00 6C 05 80 17 00 00 00 00 00 00 F1 [23:55:35]Write i2c OK [23:55:35]MH_I2C_Read... [23:55:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:35]Read from MH i2c: E2 [23:55:35]MH_I2C_Read... [23:55:35]Read from MH i2c: E2 FD 00 [23:55:35]MH_I2C_Read... [23:55:35]Read from MH i2c: E2 FD 00 6C 05 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 69 [23:55:35]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:55:35]wFMCommunicate OK [23:55:35]wFMCommunicate request_size=4 [23:55:35]MH_SAM_APDU [23:55:35]CAPDU: 80 17 00 00 [23:55:35]Write to MH i2c: E2 08 00 6D 05 80 17 00 00 00 00 00 00 F2 [23:55:35]Write i2c OK [23:55:35]MH_I2C_Read... [23:55:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [23:55:36]Read from MH i2c: E2 [23:55:36]MH_I2C_Read... [23:55:36]Read from MH i2c: E2 E1 00 [23:55:36]MH_I2C_Read... [23:55:36]Read from MH i2c: E2 E1 00 6D 05 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E0 [23:55:36]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:55:36]wFMCommunicate OK [23:55:36]SAM_PROTO_GetFMData done [23:55:36]FM_GetFMData:85 04 C0 04 6E 04 04 00 AC 0F 03 00 69 04 A3 00 6F 04 04 00 87 0F 03 00 B1 04 05 00 EA CC FD AC 03 70 04 05 00 3C B1 FD 4D 03 72 04 04 00 AE 1B 00 5F 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 E1 E5 F6 63 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 69 66 54 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 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 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 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:55:37]oper:6F 04 04 00 87 0F 03 00 B1 04 05 00 EA CC FD AC 03 70 04 05 00 3C B1 FD 4D 03 72 04 04 00 AE 1B 00 5F 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 E1 E5 F6 63 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 69 66 54 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 [23:55:37]total:EA CC FD AC 03 [23:55:37]Malloc new data [23:55:37]oper:6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 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 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:55:37]total:24 F4 96 [23:55:37]Malloc new data [23:55:37]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 OFD Sender: No OFD packet to send [23:55:37]09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:55:37]total: [23:55:37]Malloc new data [23:55:37]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:55:37]total: [23:55:37]Malloc new data [23:55:37]KKMPrepareXReportFMData err=0 [23:55:37]Х отчет ИНН: 02508201610067 Кассир: Шайбек уулу У. 26.10.2024 23:55 Смена: 522 РНМ: 0000000000091777 ЗНМ: 0300000109 СНО: Общий режим Всего чеков: 468 ИТОГИ ПРИХОД Чеков: 468 Общий итог: 391091.87 Итого наличными: 345704.00 Итого безнал.: 45387.87 НДС 0% : 0.00 НДС 12% : 41544.37 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3462.00 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 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 Нал. в кассе: 345704.00 НС Приход: 157872161.06 НС Возвр.Прихода: 98929.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871756 [23:55:37]StoreToDocumentArchive [23:55:37]MH_GetDate [23:55:37]Write to MH i2c: F0 00 00 6E 05 62 [23:55:37]Write i2c OK [23:55:37]MH_I2C_Read... [23:55:37]Read from MH i2c: F0 [23:55:37]MH_I2C_Read... [23:55:37]Read from MH i2c: F0 09 00 [23:55:37]MH_I2C_Read... [23:55:37]Read from MH i2c: F0 09 00 6E 05 00 7B 81 1D 67 68 46 19 67 19 [23:55:37]shift 522 fd 1729986939 [23:55:37]Create dir for shift 0522 [23:55:37]save to /storage/0522/doc_1729986939 [23:55:37]save last doc name /storage/0522/doc_1729986939 to /storage/kkm_last_doc_name [23:55:37]save OK [23:55:37]Clear old archive folders... [23:55:37]NVStorageSaveData kkm_last_timestamp [23:55:37]File name is /storage/kkm_last_timestamp [23:55:37]Write 4 bytes [23:55:37]NVStorageSaveData done [23:55:37]ExternCall_PrintAddStr [23:55:37]wPrintStart [23:55:37]Write to MH i2c: 01 00 00 6F 05 74 [23:55:37]Write i2c OK [23:55:37]MH_I2C_Read... [23:55:37]Read from MH i2c: 01 [23:55:37]MH_I2C_Read... [23:55:37]Read from MH i2c: 01 07 00 [23:55:37]MH_I2C_Read... [23:55:37]Read from MH i2c: 01 07 00 6F 05 00 00 00 00 00 FF 0F 89 [23:55:37]RasterBufferAndPrint [23:55:37]line Х отчет [23:55:37]line ИНН: 02508201610067 [23:55:37]line Кассир: Шайбек уулу У. [23:55:37]line 26.10.2024 23:55 [23:55:37]line Смена: 522 [23:55:37]line РНМ: 0000000000091777 [23:55:37]line ЗНМ: 0300000109 [23:55:37]line СНО: Общий режим [23:55:37]line Всего чеков: 468 [23:55:37]line ИТОГИ ПРИХОД [23:55:37]line Чеков: 468 [23:55:37]line Общий итог: 391091.87 [23:55:37]line Итого наличными: 345704.00 [23:55:37]line Итого безнал.: 45387.87 [23:55:37]line НДС 0% : 0.00 [23:55:37]line НДС 12% : 41544.37 [23:55:37]line НСП 0% : 0.00 [23:55:37]line НСП 1,50% : 0.00 [23:55:37]line НСП 0,50% : 0.00 [23:55:37]line НСП 5% : 0.00 [23:55:37]line НСП 3% : 0.00 [23:55:37]line НСП 2% : 0.00 [23:55:37]line НСП 1% : 3462.00 [23:55:37]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:55:37]line Чеков: 0 [23:55:37]line Общий итог: 0.00 [23:55:37]line Итого наличными: 0.00 [23:55:37]line Итого безнал.: 0.00 [23:55:37]line НДС 0% : 0.00 [23:55:37]line НДС 12% : 0.00 [23:55:37]line НСП 0% : 0.00 [23:55:37]line НСП 1,50% : 0.00 [23:55:37]line НСП 0,50% : 0.00 [23:55:37]line НСП 5% : 0.00 [23:55:37]line НСП 3% : 0.00 [23:55:37]line НСП 2% : 0.00 [23:55:37]line НСП 1% : 0.00 [23:55:37]line ИТОГИ РАСХОД [23:55:37]line Чеков: 0 [23:55:37]line Общий итог: 0.00 [23:55:37]line Итого наличными: 0.00 [23:55:37]line Итого безнал.: 0.00 [23:55:37]line НДС 0% : 0.00 [23:55:37]line НДС 12% : 0.00 [23:55:37]line НСП 0% : 0.00 [23:55:37]line НСП 1,50% : 0.00 [23:55:37]line НСП 0,50% : 0.00 [23:55:37]line НСП 5% : 0.00 [23:55:37]line НСП 3% : 0.00 [23:55:37]line НСП 2% : 0.00 [23:55:37]line НСП 1% : 0.00 [23:55:37]line ИТОГИ ВОЗВРАТ РАСХОДА [23:55:37]line Чеков: 0 [23:55:37]line Общий итог: 0.00 [23:55:37]line Итого наличными: 0.00 [23:55:37]line Итого безнал.: 0.00 [23:55:37]line НДС 0% : 0.00 [23:55:37]line НДС 12% : 0.00 [23:55:37]line НСП 0% : 0.00 [23:55:37]line НСП 1,50% : 0.00 [23:55:37]line НСП 0,50% : 0.00 [23:55:37]line НСП 5% : 0.00 [23:55:37]line НСП 3% : 0.00 [23:55:37]line НСП 2% : 0.00 [23:55:37]line НСП 1% : 0.00 [23:55:37]line Сумма внесений: 0.00 [23:55:37]line Сумма выплат: 0.00 [23:55:37]line Нал. в кассе: 345704.00 [23:55:37]line НС Приход: 157872161.06 [23:55:37]line НС Возвр.Прихода: 98929.00 [23:55:37]line НС Расход: 0.00 [23:55:37]line НС Возвр.Расхода: 0.00 [23:55:37]line ФМ: 0000000000871756 [23:55:37]written 0, free lines is 4095 [23:55:38]Write to MH i2c: 01 00 00 BA 05 BF [23:55:38]Write i2c OK [23:55:38]MH_I2C_Read... [23:55:38]Read from MH i2c: 01 [23:55:38]MH_I2C_Read... [23:55:38]Read from MH i2c: 01 07 00 [23:55:38]MH_I2C_Read... [23:55:38]Read from MH i2c: 01 07 00 BA 05 00 00 00 00 00 4B 0A 1B [23:55:38]RasterBufferAndPrint [23:55:38]line [23:55:38]line [23:55:38]line [23:55:38]line [23:55:38]line [23:55:38]written 0, free lines is 2667 [23:55:38]MH_Cut [23:55:38]Write to MH i2c: D1 01 00 C1 05 01 98 [23:55:38]Write i2c OK [23:55:38]MH_I2C_Read... [23:55:38]Read from MH i2c: D1 [23:55:38]MH_I2C_Read... [23:55:38]Read from MH i2c: D1 01 00 [23:55:38]MH_I2C_Read... [23:55:38]Read from MH i2c: D1 01 00 C1 05 00 97 [23:55:38]Write to MH i2c: 01 00 00 C2 05 C7 [23:55:38]Write i2c OK [23:55:38]MH_I2C_Read... [23:55:39]*** Cut start [23:55:39]*** Purtial cut [23:55:39]*** Stage 1: CUTSNS_PIN = 1 [23:55:39]Read from MH i2c: 01 [23:55:39]MH_I2C_Read... [23:55:39]*** Stop cut motor [23:55:39]*** Cut end [23:55:39]Read from MH i2c: 01 07 00 [23:55:39]MH_I2C_Read... [23:55:39]Read from MH i2c: 01 07 00 C2 05 00 00 00 00 00 FF 0F DC [23:55:39]process_action x_report done [23:55:39]requested_data is exist [23:55:39]produce_requested_data [23:55:39]requested_item fd.num is exist - process it [23:55:39]SAM_PROTO_GetFieldsCounters [23:55:39]wFMCommunicate request_size=4 [23:55:39]MH_SAM_APDU [23:55:39]CAPDU: 80 13 00 00 [23:55:39]Write to MH i2c: E2 08 00 C3 05 80 13 00 00 00 00 00 00 44 [23:55:39]Write i2c OK [23:55:39]MH_I2C_Read... [23:55:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:55:39]Read from MH i2c: E2 [23:55:39]MH_I2C_Read... [23:55:39]Read from MH i2c: E2 62 00 [23:55:39]MH_I2C_Read... [23:55:39]Read from MH i2c: E2 62 00 C3 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EA 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D4 01 00 00 5E 04 04 00 D4 01 00 00 57 04 04 00 D5 01 00 00 19 04 04 00 00 00 00 00 90 00 0D [23:55:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EA 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D4 01 00 00 5E 04 04 00 D4 01 00 00 57 04 04 00 D5 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:55:40]wFMCommunicate OK [23:55:40]SAM_PROTO_GetFieldsCounters done [23:55:40]requested_item shift.num is exist - process it [23:55:40]requested_item shift.opened is exist - process it [23:55:40]req_shift_opened [23:55:40]FM_GetShiftState [23:55:40]SAM_PROTO_GetShiftState [23:55:40]wFMCommunicate request_size=4 [23:55:40]MH_SAM_APDU [23:55:40]CAPDU: 80 13 01 00 [23:55:40]Write to MH i2c: E2 08 00 C4 05 80 13 01 00 00 00 00 00 46 [23:55:40]Write i2c OK [23:55:40]MH_I2C_Read... [23:55:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:40]Read from MH i2c: E2 [23:55:40]MH_I2C_Read... [23:55:40]Read from MH i2c: E2 0E 00 [23:55:40]MH_I2C_Read... [23:55:40]Read from MH i2c: E2 0E 00 C4 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 55 [23:55:40]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [23:55:40]wFMCommunicate OK [23:55:40]SAM_PROTO_GetShiftState done [23:55:40]FM_GetShiftState done [23:55:40]req_shift_opened done [23:55:40]requested_item shift.open_date is exist - process it [23:55:40]req_shift_open_date [23:55:40]req_shift_open_date done [23:55:40]produce_requested_data done [23:55:40]produce_requested_data return {"fd.num":201706,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [23:55:40]process_action_free x_report [23:55:40]json_value_free [23:55:40]json_value_free done [23:55:40]process_json_proto returns [23:55:40]Send response to host [23:55:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":201706,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [23:55:40]free response buf [23:55:40]execute_script done [23:55:40]execute_script returns [23:55:40]free content buf [23:55:40]Sock 8.Close socket [23:55:40]Sock 8.Thread stoped [23:55:42]OFD Sender: No OFD packet to send [23:55:43]accept exits with 9 [23:55:43]New connection [23:55:43]New thread 3067080036 created [23:55:43]Thread 3066936676 joined [23:55:43]Waiting for new connection... [23:55:43] Sock 9.Parse request [23:55:43]Sock 9.Check first char [23:55:43]Sock 9.First char is OK [23:55:43]request: POST /json_proto HTTP/1.0 [23:55:43]Method: POST [23:55:43]URL: /json_proto [23:55:43]Method is POST - this is cgi request [23:55:43]url: /json_proto [23:55:43]query_string will be loaded in cgi processing [23:55:43]execute_cgi json_proto POST (null) [23:55:43]execute_cgi path=json_proto method=POST [23:55:43]POST find Content-Length [23:55:43]Host: 172.17.63.195:8080 [23:55:43]Content-Length: 215 [23:55:43]Content-Type: application/json [23:55:43] [23:55:43]POST finish read [23:55:43]Found Content-Length = 215 [23:55:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:43]execute_script... [23:55:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:43]POST & json_proto [23:55:43]process_json_proto [23:55:43]json parsed OK: [23:55:43]protocol is kg_v1.0 [23:55:43]action value=get_value [23:55:43]process_action get_value [23:55:43]cmd_get_value [23:55:43]process_action get_value done [23:55:43]requested_data is exist [23:55:43]produce_requested_data [23:55:43]requested_item kkm.sn is exist - process it [23:55:43]requested_item kkm.ver is exist - process it [23:55:43]requested_item fm.sn is exist - process it [23:55:43]wFMCommunicate request_size=4 [23:55:43]MH_SAM_APDU [23:55:43]CAPDU: 80 11 00 00 [23:55:43]Write to MH i2c: E2 08 00 C5 05 80 11 00 00 00 00 00 00 44 [23:55:43]Write i2c OK [23:55:43]MH_I2C_Read... [23:55:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:43]Read from MH i2c: E2 [23:55:43]MH_I2C_Read... [23:55:43]Read from MH i2c: E2 17 00 [23:55:43]MH_I2C_Read... [23:55:43]Read from MH i2c: E2 17 00 C5 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 99 [23:55:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [23:55:43]wFMCommunicate OK [23:55:43]requested_item fd.num is exist - process it [23:55:43]SAM_PROTO_GetFieldsCounters [23:55:43]wFMCommunicate request_size=4 [23:55:43]MH_SAM_APDU [23:55:43]CAPDU: 80 13 00 00 [23:55:43]Write to MH i2c: E2 08 00 C6 05 80 13 00 00 00 00 00 00 47 [23:55:43]Write i2c OK [23:55:43]MH_I2C_Read... [23:55:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:55:43]Read from MH i2c: E2 [23:55:43]MH_I2C_Read... [23:55:43]Read from MH i2c: E2 62 00 [23:55:43]MH_I2C_Read... [23:55:43]Read from MH i2c: E2 62 00 C6 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EA 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D4 01 00 00 5E 04 04 00 D4 01 00 00 57 04 04 00 D5 01 00 00 19 04 04 00 00 00 00 00 90 00 10 [23:55:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EA 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D4 01 00 00 5E 04 04 00 D4 01 00 00 57 04 04 00 D5 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:55:43]wFMCommunicate OK [23:55:43]SAM_PROTO_GetFieldsCounters done [23:55:43]requested_item shift.num is exist - process it [23:55:43]requested_item shift.opened is exist - process it [23:55:43]req_shift_opened [23:55:43]FM_GetShiftState [23:55:43]SAM_PROTO_GetShiftState [23:55:43]wFMCommunicate request_size=4 [23:55:43]MH_SAM_APDU [23:55:43]CAPDU: 80 13 01 00 [23:55:43]Write to MH i2c: E2 08 00 C7 05 80 13 01 00 00 00 00 00 49 [23:55:43]Write i2c OK [23:55:43]MH_I2C_Read... [23:55:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:43]Read from MH i2c: E2 [23:55:43]MH_I2C_Read... [23:55:43]Read from MH i2c: E2 0E 00 [23:55:43]MH_I2C_Read... [23:55:43]Read from MH i2c: E2 0E 00 C7 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 58 [23:55:43]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [23:55:43]wFMCommunicate OK [23:55:43]SAM_PROTO_GetShiftState done [23:55:43]FM_GetShiftState done [23:55:43]req_shift_opened done [23:55:43]requested_item shift.open_date is exist - process it [23:55:43]req_shift_open_date [23:55:43]req_shift_open_date done [23:55:43]produce_requested_data done [23:55:43]produce_requested_data return {"kkm.sn":"0300000109","kkm.ver":"001","fm.sn":"0000000000871756","fd.num":201706,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879} [23:55:43]process_action_free get_value [23:55:43]json_value_free [23:55:43]json_value_free done [23:55:43]process_json_proto returns [23:55:43]Send response to host [23:55:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000109","kkm.ver":"001","fm.sn":"0000000000871756","fd.num":201706,"shift.num":543,"shift.opened":1,"shift.open_date":1729900879}}} [23:55:43]free response buf [23:55:43]execute_script done [23:55:43]execute_script returns [23:55:43]free content buf [23:55:43]Sock 9.Close socket [23:55:43]Sock 9.Thread stoped [23:55:43]accept exits with 8 [23:55:43]New connection [23:55:43]New thread 3066936676 created [23:55:43]Thread 3067080036 joined [23:55:43]Waiting for new connection... [23:55:43] Sock 8.Parse request [23:55:43]Sock 8.Check first char [23:55:43]Sock 8.First char is OK [23:55:43]request: POST /json_proto HTTP/1.0 [23:55:43]Method: POST [23:55:43]URL: /json_proto [23:55:43]Method is POST - this is cgi request [23:55:43]url: /json_proto [23:55:43]query_string will be loaded in cgi processing [23:55:43]execute_cgi json_proto POST (null) [23:55:43]execute_cgi path=json_proto method=POST [23:55:43]POST find Content-Length [23:55:43]Host: 172.17.63.195:8080 [23:55:43]Content-Length: 331 [23:55:43]Content-Type: application/json [23:55:43] [23:55:43]POST finish read [23:55:43]Found Content-Length = 331 [23:55:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:55:43]execute_script... [23:55:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:55:43]POST & json_proto [23:55:43]process_json_proto [23:55:43]json parsed OK: [23:55:43]protocol is kg_v1.0 [23:55:43]action value=get_value [23:55:43]process_action get_value [23:55:43]cmd_get_value [23:55:43]process_action get_value done [23:55:43]requested_data is exist [23:55:43]produce_requested_data [23:55:43]requested_item fm.sale.total is exist - process it [23:55:43]SAM_PROTO_GetFMData [23:55:43]wFMCommunicate request_size=4 [23:55:43]MH_SAM_APDU [23:55:43]CAPDU: 80 13 03 00 [23:55:43]Write to MH i2c: E2 08 00 C8 05 80 13 03 00 00 00 00 00 4C [23:55:43]Write i2c OK [23:55:43]MH_I2C_Read... [23:55:44]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:55:44]Read from MH i2c: E2 [23:55:44]MH_I2C_Read... [23:55:44]Read from MH i2c: E2 FD 00 [23:55:44]MH_I2C_Read... [23:55:44]Read from MH i2c: E2 FD 00 C8 05 00 C4 04 85 04 C0 04 6E 04 04 00 AC 0F 03 00 69 04 A3 00 6F 04 04 00 87 0F 03 00 B1 04 05 00 EA CC FD AC 03 70 04 05 00 3C B1 FD 4D 03 72 04 04 00 AE 1B 00 5F 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 E1 E5 F6 63 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 69 66 54 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 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 51 [23:55:44]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 AC 0F 03 00 69 04 A3 00 6F 04 04 00 87 0F 03 00 B1 04 05 00 EA CC FD AC 03 70 04 05 00 3C B1 FD 4D 03 72 04 04 00 AE 1B 00 5F 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 E1 E5 F6 63 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 69 66 54 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 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 [23:55:44]wFMCommunicate OK [23:55:44]wFMCommunicate request_size=4 [23:55:44]MH_SAM_APDU [23:55:44]CAPDU: 80 17 00 00 [23:55:44]Write to MH i2c: E2 08 00 C9 05 80 17 00 00 00 00 00 00 4E [23:55:44]Write i2c OK [23:55:44]MH_I2C_Read... [23:55:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:44]Read from MH i2c: E2 [23:55:44]MH_I2C_Read... [23:55:44]Read from MH i2c: E2 FD 00 [23:55:44]MH_I2C_Read... [23:55:44]Read from MH i2c: E2 FD 00 C9 05 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 55 [23:55:44]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [23:55:45]wFMCommunicate OK [23:55:45]wFMCommunicate request_size=4 [23:55:45]MH_SAM_APDU [23:55:45]CAPDU: 80 17 00 00 [23:55:45]Write to MH i2c: E2 08 00 CA 05 80 17 00 00 00 00 00 00 4F [23:55:45]Write i2c OK [23:55:45]MH_I2C_Read... [23:55:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:45]Read from MH i2c: E2 [23:55:45]MH_I2C_Read... [23:55:45]Read from MH i2c: E2 FD 00 [23:55:45]MH_I2C_Read... [23:55:45]Read from MH i2c: E2 FD 00 CA 05 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 64 [23:55:45]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [23:55:45]wFMCommunicate OK [23:55:45]wFMCommunicate request_size=4 [23:55:45]MH_SAM_APDU [23:55:45]CAPDU: 80 17 00 00 [23:55:45]Write to MH i2c: E2 08 00 CB 05 80 17 00 00 00 00 00 00 50 [23:55:45]Write i2c OK [23:55:45]MH_I2C_Read... [23:55:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:45]Read from MH i2c: E2 [23:55:45]MH_I2C_Read... [23:55:45]Read from MH i2c: E2 FD 00 [23:55:45]MH_I2C_Read... [23:55:45]Read from MH i2c: E2 FD 00 CB 05 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 C8 [23:55:45]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:55:46]wFMCommunicate OK [23:55:46]wFMCommunicate request_size=4 [23:55:46]MH_SAM_APDU [23:55:46]CAPDU: 80 17 00 00 [23:55:46]Write to MH i2c: E2 08 00 CC 05 80 17 00 00 00 00 00 00 51 [23:55:46]Write i2c OK [23:55:46]MH_I2C_Read... [23:55:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [23:55:46]Read from MH i2c: E2 [23:55:46]MH_I2C_Read... [23:55:46]Read from MH i2c: E2 E1 00 [23:55:46]MH_I2C_Read... [23:55:46]Read from MH i2c: E2 E1 00 CC 05 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 3F [23:55:46]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:55:46]wFMCommunicate OK [23:55:46]SAM_PROTO_GetFMData done [23:55:46]requested_item fm.sale_refund.total is exist - process it [23:55:46]requested_item fm.buy.total is exist - process it [23:55:46]requested_item shift.sale.total is exist - process it [23:55:46]SAM_PROTO_GetShiftData [23:55:46]wFMCommunicate request_size=4 [23:55:46]MH_SAM_APDU [23:55:46]CAPDU: 80 13 02 00 [23:55:46]Write to MH i2c: E2 08 00 CD 05 80 13 02 00 00 00 00 00 50 [23:55:46]Write i2c OK [23:55:46]MH_I2C_Read... [23:55:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:55:47]Read from MH i2c: E2 [23:55:47]MH_I2C_Read... [23:55:47]Read from MH i2c: E2 FD 00 [23:55:47]MH_I2C_Read... [23:55:47]Read from MH i2c: E2 FD 00 CD 05 00 B1 04 AA 04 AD 04 6E 04 04 00 D4 01 00 00 69 04 9E 00 6F 04 04 00 D4 01 00 00 B1 04 04 00 43 C2 54 02 70 04 04 00 A0 80 0F 02 72 04 03 00 A3 41 45 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 45 64 3F 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 58 48 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 13 [23:55:47]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 D4 01 00 00 69 04 9E 00 6F 04 04 00 D4 01 00 00 B1 04 04 00 43 C2 54 02 70 04 04 00 A0 80 0F 02 72 04 03 00 A3 41 45 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 45 64 3F 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 58 48 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:47]wFMCommunicate OK [23:55:47]wFMCommunicate request_size=4 [23:55:47]MH_SAM_APDU [23:55:47]CAPDU: 80 17 00 00 [23:55:47]Write to MH i2c: E2 08 00 CE 05 80 17 00 00 00 00 00 00 53 [23:55:47]Write i2c OK [23:55:47]MH_I2C_Read... [23:55:47]OFD Sender: No OFD packet to send [23:55:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:47]Read from MH i2c: E2 [23:55:47]MH_I2C_Read... [23:55:47]Read from MH i2c: E2 FD 00 [23:55:47]MH_I2C_Read... [23:55:47]Read from MH i2c: E2 FD 00 CE 05 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6C [23:55:47]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:47]wFMCommunicate OK [23:55:47]wFMCommunicate request_size=4 [23:55:47]MH_SAM_APDU [23:55:47]CAPDU: 80 17 00 00 [23:55:47]Write to MH i2c: E2 08 00 CF 05 80 17 00 00 00 00 00 00 54 [23:55:47]Write i2c OK [23:55:47]MH_I2C_Read... [23:55:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:48]Read from MH i2c: E2 [23:55:48]MH_I2C_Read... [23:55:48]Read from MH i2c: E2 FD 00 [23:55:48]MH_I2C_Read... [23:55:48]Read from MH i2c: E2 FD 00 CF 05 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0D [23:55:48]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:48]wFMCommunicate OK [23:55:48]wFMCommunicate request_size=4 [23:55:48]MH_SAM_APDU [23:55:48]CAPDU: 80 17 00 00 [23:55:48]Write to MH i2c: E2 08 00 D0 05 80 17 00 00 00 00 00 00 55 [23:55:48]Write i2c OK [23:55:48]MH_I2C_Read... [23:55:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:48]Read from MH i2c: E2 [23:55:48]MH_I2C_Read... [23:55:48]Read from MH i2c: E2 FD 00 [23:55:48]MH_I2C_Read... [23:55:48]Read from MH i2c: E2 FD 00 D0 05 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 90 00 CD [23:55:48]RAPDU: 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 90 00 [23:55:49]wFMCommunicate OK [23:55:49]wFMCommunicate request_size=4 [23:55:49]MH_SAM_APDU [23:55:49]CAPDU: 80 17 00 00 [23:55:49]Write to MH i2c: E2 08 00 D1 05 80 17 00 00 00 00 00 00 56 [23:55:49]Write i2c OK [23:55:49]MH_I2C_Read... [23:55:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [23:55:49]Read from MH i2c: E2 [23:55:49]MH_I2C_Read... [23:55:49]Read from MH i2c: E2 CE 00 [23:55:49]MH_I2C_Read... [23:55:49]Read from MH i2c: E2 CE 00 D1 05 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3B [23:55:49]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:55:49]wFMCommunicate OK [23:55:49]SAM_PROTO_GetShiftData done [23:55:49]requested_item shift.sale.total_cash is exist - process it [23:55:49]requested_item shift.sale_refund.total is exist - process it [23:55:49]requested_item shift.sale_refund.total_cash is exist - process it [23:55:49]requested_item shift.buy.total is exist - process it [23:55:49]requested_item shift.buy.total_cash is exist - process it [23:55:49]produce_requested_data done [23:55:49]produce_requested_data return {"fm.sale.total":157872161.06,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":391091.87,"shift.sale.total_cash":345704.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:55:49]process_action_free get_value [23:55:49]json_value_free [23:55:49]json_value_free done [23:55:49]process_json_proto returns [23:55:49]Send response to host [23:55:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":157872161.06,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":391091.87,"shift.sale.total_cash":345704.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:55:49]free response buf [23:55:49]execute_script done [23:55:49]execute_script returns [23:55:49]free content buf [23:55:49]Sock 8.Close socket [23:55:49]Sock 8.Thread stoped [23:55:49]accept exits with 9 [23:55:49]New connection [23:55:49]New thread 3067080036 created [23:55:49]Thread 3066936676 joined [23:55:49]Waiting for new connection... [23:55:49] Sock 9.Parse request [23:55:49]Sock 9.Check first char [23:55:49]Sock 9.First char is OK [23:55:49]request: POST /json_proto HTTP/1.0 [23:55:49]Method: POST [23:55:49]URL: /json_proto [23:55:49]Method is POST - this is cgi request [23:55:49]url: /json_proto [23:55:49]query_string will be loaded in cgi processing [23:55:49]execute_cgi json_proto POST (null) [23:55:49]execute_cgi path=json_proto method=POST [23:55:49]POST find Content-Length [23:55:49]Host: 172.17.63.195:8080 [23:55:49]Content-Length: 331 [23:55:49]Content-Type: application/json [23:55:49] [23:55:49]POST finish read [23:55:49]Found Content-Length = 331 [23:55:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:55:49]execute_script... [23:55:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:55:49]POST & json_proto [23:55:49]process_json_proto [23:55:49]json parsed OK: [23:55:49]protocol is kg_v1.0 [23:55:49]action value=get_value [23:55:49]process_action get_value [23:55:49]cmd_get_value [23:55:49]process_action get_value done [23:55:49]requested_data is exist [23:55:49]produce_requested_data [23:55:49]requested_item fm.sale.total is exist - process it [23:55:49]SAM_PROTO_GetFMData [23:55:49]wFMCommunicate request_size=4 [23:55:49]MH_SAM_APDU [23:55:49]CAPDU: 80 13 03 00 [23:55:49]Write to MH i2c: E2 08 00 D2 05 80 13 03 00 00 00 00 00 56 [23:55:49]Write i2c OK [23:55:49]MH_I2C_Read... [23:55:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:55:50]Read from MH i2c: E2 [23:55:50]MH_I2C_Read... [23:55:50]Read from MH i2c: E2 FD 00 [23:55:50]MH_I2C_Read... [23:55:50]Read from MH i2c: E2 FD 00 D2 05 00 C4 04 85 04 C0 04 6E 04 04 00 AC 0F 03 00 69 04 A3 00 6F 04 04 00 87 0F 03 00 B1 04 05 00 EA CC FD AC 03 70 04 05 00 3C B1 FD 4D 03 72 04 04 00 AE 1B 00 5F 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 E1 E5 F6 63 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 69 66 54 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 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 5B [23:55:50]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 AC 0F 03 00 69 04 A3 00 6F 04 04 00 87 0F 03 00 B1 04 05 00 EA CC FD AC 03 70 04 05 00 3C B1 FD 4D 03 72 04 04 00 AE 1B 00 5F 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 E1 E5 F6 63 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 69 66 54 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 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 [23:55:50]wFMCommunicate OK [23:55:50]wFMCommunicate request_size=4 [23:55:50]MH_SAM_APDU [23:55:50]CAPDU: 80 17 00 00 [23:55:50]Write to MH i2c: E2 08 00 D3 05 80 17 00 00 00 00 00 00 58 [23:55:50]Write i2c OK [23:55:50]MH_I2C_Read... [23:55:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:50]Read from MH i2c: E2 [23:55:50]MH_I2C_Read... [23:55:50]Read from MH i2c: E2 FD 00 [23:55:50]MH_I2C_Read... [23:55:50]Read from MH i2c: E2 FD 00 D3 05 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 5F [23:55:51]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [23:55:51]wFMCommunicate OK [23:55:51]wFMCommunicate request_size=4 [23:55:51]MH_SAM_APDU [23:55:51]CAPDU: 80 17 00 00 [23:55:51]Write to MH i2c: E2 08 00 D4 05 80 17 00 00 00 00 00 00 59 [23:55:51]Write i2c OK [23:55:51]MH_I2C_Read... [23:55:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:51]Read from MH i2c: E2 [23:55:51]MH_I2C_Read... [23:55:51]Read from MH i2c: E2 FD 00 [23:55:51]MH_I2C_Read... [23:55:51]Read from MH i2c: E2 FD 00 D4 05 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 6E [23:55:51]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [23:55:51]wFMCommunicate OK [23:55:51]wFMCommunicate request_size=4 [23:55:51]MH_SAM_APDU [23:55:51]CAPDU: 80 17 00 00 [23:55:51]Write to MH i2c: E2 08 00 D5 05 80 17 00 00 00 00 00 00 5A [23:55:51]Write i2c OK [23:55:51]MH_I2C_Read... [23:55:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:52]Read from MH i2c: E2 [23:55:52]MH_I2C_Read... [23:55:52]Read from MH i2c: E2 FD 00 [23:55:52]MH_I2C_Read... [23:55:52]Read from MH i2c: E2 FD 00 D5 05 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 D2 [23:55:52]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:55:52]wFMCommunicate OK [23:55:52]wFMCommunicate request_size=4 [23:55:52]MH_SAM_APDU [23:55:52]CAPDU: 80 17 00 00 [23:55:52]Write to MH i2c: E2 08 00 D6 05 80 17 00 00 00 00 00 00 5B [23:55:52]OFD Sender: No OFD packet to send [23:55:52]Write i2c OK [23:55:52]MH_I2C_Read... [23:55:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [23:55:52]Read from MH i2c: E2 [23:55:52]MH_I2C_Read... [23:55:52]Read from MH i2c: E2 E1 00 [23:55:52]MH_I2C_Read... [23:55:52]Read from MH i2c: E2 E1 00 D6 05 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 49 [23:55:52]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:55:53]wFMCommunicate OK [23:55:53]SAM_PROTO_GetFMData done [23:55:53]requested_item fm.sale_refund.total is exist - process it [23:55:53]requested_item fm.buy.total is exist - process it [23:55:53]requested_item shift.sale.total is exist - process it [23:55:53]SAM_PROTO_GetShiftData [23:55:53]wFMCommunicate request_size=4 [23:55:53]MH_SAM_APDU [23:55:53]CAPDU: 80 13 02 00 [23:55:53]Write to MH i2c: E2 08 00 D7 05 80 13 02 00 00 00 00 00 5A [23:55:53]Write i2c OK [23:55:53]MH_I2C_Read... [23:55:53]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:55:53]Read from MH i2c: E2 [23:55:53]MH_I2C_Read... [23:55:53]Read from MH i2c: E2 FD 00 [23:55:53]MH_I2C_Read... [23:55:53]Read from MH i2c: E2 FD 00 D7 05 00 B1 04 AA 04 AD 04 6E 04 04 00 D4 01 00 00 69 04 9E 00 6F 04 04 00 D4 01 00 00 B1 04 04 00 43 C2 54 02 70 04 04 00 A0 80 0F 02 72 04 03 00 A3 41 45 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 45 64 3F 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 58 48 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1D [23:55:53]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 D4 01 00 00 69 04 9E 00 6F 04 04 00 D4 01 00 00 B1 04 04 00 43 C2 54 02 70 04 04 00 A0 80 0F 02 72 04 03 00 A3 41 45 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 45 64 3F 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 58 48 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:53]wFMCommunicate OK [23:55:53]wFMCommunicate request_size=4 [23:55:53]MH_SAM_APDU [23:55:53]CAPDU: 80 17 00 00 [23:55:53]Write to MH i2c: E2 08 00 D8 05 80 17 00 00 00 00 00 00 5D [23:55:53]Write i2c OK [23:55:53]MH_I2C_Read... [23:55:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:54]Read from MH i2c: E2 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: E2 FD 00 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: E2 FD 00 D8 05 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 76 [23:55:54]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:54]wFMCommunicate OK [23:55:54]wFMCommunicate request_size=4 [23:55:54]MH_SAM_APDU [23:55:54]CAPDU: 80 17 00 00 [23:55:54]Write to MH i2c: E2 08 00 D9 05 80 17 00 00 00 00 00 00 5E [23:55:54]Write i2c OK [23:55:54]MH_I2C_Read... [23:55:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:54]Read from MH i2c: E2 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: E2 FD 00 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: E2 FD 00 D9 05 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 17 [23:55:55]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:55]wFMCommunicate OK [23:55:55]wFMCommunicate request_size=4 [23:55:55]MH_SAM_APDU [23:55:55]CAPDU: 80 17 00 00 [23:55:55]Write to MH i2c: E2 08 00 DA 05 80 17 00 00 00 00 00 00 5F [23:55:55]Write i2c OK [23:55:55]MH_I2C_Read... [23:55:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:55]Read from MH i2c: E2 [23:55:55]MH_I2C_Read... [23:55:55]Read from MH i2c: E2 FD 00 [23:55:55]MH_I2C_Read... [23:55:55]Read from MH i2c: E2 FD 00 DA 05 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 90 00 D7 [23:55:55]RAPDU: 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 90 00 [23:55:56]wFMCommunicate OK [23:55:56]wFMCommunicate request_size=4 [23:55:56]MH_SAM_APDU [23:55:56]CAPDU: 80 17 00 00 [23:55:56]Write to MH i2c: E2 08 00 DB 05 80 17 00 00 00 00 00 00 60 [23:55:56]Write i2c OK [23:55:56]MH_I2C_Read... [23:55:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [23:55:56]Read from MH i2c: E2 [23:55:56]MH_I2C_Read... [23:55:56]Read from MH i2c: E2 CE 00 [23:55:56]MH_I2C_Read... [23:55:56]Read from MH i2c: E2 CE 00 DB 05 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 45 [23:55:56]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:55:56]wFMCommunicate OK [23:55:56]SAM_PROTO_GetShiftData done [23:55:56]requested_item shift.sale.total_cash is exist - process it [23:55:56]requested_item shift.sale_refund.total is exist - process it [23:55:56]requested_item shift.sale_refund.total_cash is exist - process it [23:55:56]requested_item shift.buy.total is exist - process it [23:55:56]requested_item shift.buy.total_cash is exist - process it [23:55:56]produce_requested_data done [23:55:56]produce_requested_data return {"fm.sale.total":157872161.06,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":391091.87,"shift.sale.total_cash":345704.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:55:56]process_action_free get_value [23:55:56]json_value_free [23:55:56]json_value_free done [23:55:56]process_json_proto returns [23:55:56]Send response to host [23:55:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":157872161.06,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":391091.87,"shift.sale.total_cash":345704.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:55:56]free response buf [23:55:56]execute_script done [23:55:56]execute_script returns [23:55:56]free content buf [23:55:56]Sock 9.Close socket [23:55:56]Sock 9.Thread stoped [23:55:56]accept exits with 10 [23:55:56]New connection [23:55:56]New thread 3066936676 created [23:55:56]Thread 3067080036 joined [23:55:56]Waiting for new connection... [23:55:56] Sock 10.Parse request [23:55:56]Sock 10.Check first char [23:55:56]Sock 10.First char is OK [23:55:56]request: POST /json_proto HTTP/1.0 [23:55:56]Method: POST [23:55:56]URL: /json_proto [23:55:56]Method is POST - this is cgi request [23:55:56]url: /json_proto [23:55:56]query_string will be loaded in cgi processing [23:55:56]execute_cgi json_proto POST (null) [23:55:56]execute_cgi path=json_proto method=POST [23:55:56]POST find Content-Length [23:55:56]Host: 172.17.63.195:8080 [23:55:56]Content-Length: 273 [23:55:56]Content-Type: application/json [23:55:56] [23:55:56]POST finish read [23:55:56]Found Content-Length = 273 [23:55:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0428\u0430\u0439\u0431\u0435\u043A \u0443\u0443\u043B\u0443 \u0423. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:56]execute_script... [23:55:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0428\u0430\u0439\u0431\u0435\u043A \u0443\u0443\u043B\u0443 \u0423. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:56]POST & json_proto [23:55:56]process_json_proto [23:55:56]json parsed OK: [23:55:56]protocol is kg_v1.0 [23:55:56]action value=close_shift [23:55:56]process_action close_shift [23:55:56]cmd_close_shift [23:55:56]MH_GetDate [23:55:56]Write to MH i2c: F0 00 00 DC 05 D0 [23:55:56]Write i2c OK [23:55:56]MH_I2C_Read... [23:55:56]Read from MH i2c: F0 [23:55:56]MH_I2C_Read... [23:55:56]Read from MH i2c: F0 09 00 [23:55:56]MH_I2C_Read... [23:55:56]Read from MH i2c: F0 09 00 DC 05 00 8E 81 1D 67 68 46 19 67 9A [23:55:56]GetLastDocTimeStamp 1729986931 [23:55:56]current date 1729986958 [23:55:56]FM_GetShiftState [23:55:56]SAM_PROTO_GetShiftState [23:55:56]wFMCommunicate request_size=4 [23:55:56]MH_SAM_APDU [23:55:56]CAPDU: 80 13 01 00 [23:55:56]Write to MH i2c: E2 08 00 DD 05 80 13 01 00 00 00 00 00 5F [23:55:56]Write i2c OK [23:55:56]MH_I2C_Read... [23:55:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:56]Read from MH i2c: E2 [23:55:56]MH_I2C_Read... [23:55:56]Read from MH i2c: E2 0E 00 [23:55:56]MH_I2C_Read... [23:55:56]Read from MH i2c: E2 0E 00 DD 05 00 09 00 01 4F 31 1C 67 00 00 00 00 90 00 6E [23:55:56]RAPDU: 09 00 01 4F 31 1C 67 00 00 00 00 90 00 [23:55:56]wFMCommunicate OK [23:55:56]SAM_PROTO_GetShiftState done [23:55:56]FM_GetShiftState done [23:55:56]KKMCreateCloseShiftDocument [23:55:56]Load OK [23:55:56]Malloc new data [23:55:56]MH_GetDate [23:55:56]Write to MH i2c: F0 00 00 DE 05 D2 [23:55:56]Write i2c OK [23:55:56]MH_I2C_Read... [23:55:56]Read from MH i2c: F0 [23:55:56]MH_I2C_Read... [23:55:56]Read from MH i2c: F0 09 00 [23:55:56]MH_I2C_Read... [23:55:56]Read from MH i2c: F0 09 00 DE 05 00 8E 81 1D 67 68 46 19 67 9C [23:55:56]Malloc new data [23:55:56]Malloc new data [23:55:56]Malloc new data [23:55:56]Malloc new data [23:55:56]KKMCreateCloseShiftDocument OK [23:55:56]KKMSetCloseShiftData OK [23:55:56]ProcessDocumentItem done err = 0, tmpTLVsize=76 [23:55:56]tlvbuf is 00122540 [23:55:56]KKMLoadAndSignCloseShiftData [23:55:56]SAM_PROTO_ProcessDocument [23:55:56]wFMCommunicate request_size=9 [23:55:56]MH_SAM_APDU [23:55:56]CAPDU: 80 15 01 00 04 05 00 4C 00 [23:55:56]Write to MH i2c: E2 0C 00 DF 05 80 15 01 00 04 00 05 00 4C 00 00 00 BC [23:55:56]Write i2c OK [23:55:56]MH_I2C_Read... [23:55:56]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:55:56]Read from MH i2c: E2 [23:55:56]MH_I2C_Read... [23:55:56]Read from MH i2c: E2 03 00 [23:55:56]MH_I2C_Read... [23:55:56]Read from MH i2c: E2 03 00 DF 05 00 90 00 58 [23:55:56]RAPDU: 90 00 [23:55:56]wFMCommunicate OK [23:55:56]wFMCommunicate request_size=23 [23:55:56]MH_SAM_APDU [23:55:56]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [23:55:56]Write to MH i2c: E2 1A 00 E0 05 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 5A [23:55:56]Write i2c OK [23:55:56]MH_I2C_Read... [23:55:56]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:55:56]Read from MH i2c: E2 [23:55:56]MH_I2C_Read... [23:55:56]Read from MH i2c: E2 03 00 [23:55:56]MH_I2C_Read... [23:55:56]Read from MH i2c: E2 03 00 E0 05 00 90 00 59 [23:55:56]RAPDU: 90 00 [23:55:56]wFMCommunicate OK [23:55:56]wFMCommunicate request_size=35 [23:55:56]MH_SAM_APDU [23:55:56]CAPDU: 80 15 02 00 1E FD 03 1A 00 D0 A8 D0 B0 D0 B9 D0 B1 D0 B5 D0 BA 20 D1 83 D1 83 D0 BB D1 83 20 D0 A3 2E 20 [23:55:57]Write to MH i2c: E2 26 00 E1 05 80 15 02 00 1E 00 FD 03 1A 00 D0 A8 D0 B0 D0 B9 D0 B1 D0 B5 D0 BA 20 D1 83 D1 83 D0 BB D1 83 20 D0 A3 2E 20 00 00 55 [23:55:57]Write i2c OK [23:55:57]MH_I2C_Read... [23:55:57]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:55:57]Read from MH i2c: E2 [23:55:57]MH_I2C_Read... [23:55:57]Read from MH i2c: E2 03 00 [23:55:57]MH_I2C_Read... [23:55:57]Read from MH i2c: E2 03 00 E1 05 00 90 00 5A [23:55:57]RAPDU: 90 00 [23:55:57]wFMCommunicate OK [23:55:57]wFMCommunicate request_size=13 [23:55:57]MH_SAM_APDU [23:55:57]CAPDU: 80 15 02 00 08 F4 03 04 00 8E 81 1D 67 [23:55:57]Write to MH i2c: E2 10 00 E2 05 80 15 02 00 08 00 F4 03 04 00 8E 81 1D 67 00 00 05 [23:55:57]Write i2c OK [23:55:57]MH_I2C_Read... [23:55:57]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:55:57]Read from MH i2c: E2 [23:55:57]MH_I2C_Read... [23:55:57]Read from MH i2c: E2 03 00 [23:55:57]MH_I2C_Read... [23:55:57]Read from MH i2c: E2 03 00 E2 05 00 90 00 5B [23:55:57]RAPDU: 90 00 [23:55:57]wFMCommunicate OK [23:55:57]wFMCommunicate request_size=25 [23:55:57]MH_SAM_APDU [23:55:57]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 [23:55:57]Write to MH i2c: E2 1C 00 E3 05 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 00 00 D0 [23:55:57]Write i2c OK [23:55:57]MH_I2C_Read... [23:55:57]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:55:57]Read from MH i2c: E2 [23:55:57]MH_I2C_Read... [23:55:57]Read from MH i2c: E2 03 00 [23:55:57]MH_I2C_Read... [23:55:57]Read from MH i2c: E2 03 00 E3 05 00 90 00 5C [23:55:57]RAPDU: 90 00 [23:55:57]wFMCommunicate OK [23:55:57]wFMCommunicate request_size=4 [23:55:57]MH_SAM_APDU [23:55:57]CAPDU: 80 15 03 00 [23:55:57]Write to MH i2c: E2 08 00 E4 05 80 15 03 00 00 00 00 00 6A [23:55:57]Write i2c OK [23:55:57]MH_I2C_Read... [23:55:57]OFD Sender: No OFD packet to send [23:55:57]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:55:57]Read from MH i2c: E2 [23:55:57]MH_I2C_Read... [23:55:57]Read from MH i2c: E2 FD 00 [23:55:57]MH_I2C_Read... [23:55:57]Read from MH i2c: E2 FD 00 E4 05 00 F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EB 13 03 00 0E 04 04 00 1F 02 00 00 5E 04 04 00 D4 01 00 00 57 04 04 00 D6 01 00 00 AA 04 AD 04 6E 04 04 00 D4 01 00 00 69 04 9E 00 6F 04 04 00 D4 01 00 00 B1 04 04 00 43 C2 54 02 70 04 04 00 A0 80 0F 02 72 04 03 00 A3 41 45 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 45 64 3F 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 58 48 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 90 [23:55:58]RAPDU: F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EB 13 03 00 0E 04 04 00 1F 02 00 00 5E 04 04 00 D4 01 00 00 57 04 04 00 D6 01 00 00 AA 04 AD 04 6E 04 04 00 D4 01 00 00 69 04 9E 00 6F 04 04 00 D4 01 00 00 B1 04 04 00 43 C2 54 02 70 04 04 00 A0 80 0F 02 72 04 03 00 A3 41 45 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 45 64 3F 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 58 48 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:58]wFMCommunicate OK [23:55:58]SAM_PROTO_ProcessDocument answer len = 1268 [23:55:58]SAM_PROTO_ProcessDocument remain to read = 1020 [23:55:58]wFMCommunicate request_size=4 [23:55:58]MH_SAM_APDU [23:55:58]CAPDU: 80 17 00 00 [23:55:58]Write to MH i2c: E2 08 00 E5 05 80 17 00 00 00 00 00 00 6A [23:55:58]Write i2c OK [23:55:58]MH_I2C_Read... [23:55:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:58]Read from MH i2c: E2 [23:55:58]MH_I2C_Read... [23:55:58]Read from MH i2c: E2 FD 00 [23:55:58]MH_I2C_Read... [23:55:58]Read from MH i2c: E2 FD 00 E5 05 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BE [23:55:58]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:58]wFMCommunicate OK [23:55:58]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:55:58]SAM_PROTO_ProcessDocument remain to read = 770 [23:55:58]wFMCommunicate request_size=4 [23:55:58]MH_SAM_APDU [23:55:58]CAPDU: 80 17 00 00 [23:55:58]Write to MH i2c: E2 08 00 E6 05 80 17 00 00 00 00 00 00 6B [23:55:58]Write i2c OK [23:55:58]MH_I2C_Read... [23:55:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:59]Read from MH i2c: E2 [23:55:59]MH_I2C_Read... [23:55:59]Read from MH i2c: E2 FD 00 [23:55:59]MH_I2C_Read... [23:55:59]Read from MH i2c: E2 FD 00 E6 05 00 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 90 00 CD [23:55:59]RAPDU: 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 90 00 [23:55:59]wFMCommunicate OK [23:55:59]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:55:59]SAM_PROTO_ProcessDocument remain to read = 520 [23:55:59]wFMCommunicate request_size=4 [23:55:59]MH_SAM_APDU [23:55:59]CAPDU: 80 17 00 00 [23:55:59]Write to MH i2c: E2 08 00 E7 05 80 17 00 00 00 00 00 00 6C [23:55:59]Write i2c OK [23:55:59]MH_I2C_Read... [23:55:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:59]Read from MH i2c: E2 [23:55:59]MH_I2C_Read... [23:55:59]Read from MH i2c: E2 FD 00 [23:55:59]MH_I2C_Read... [23:55:59]Read from MH i2c: E2 FD 00 E7 05 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F4 [23:56:00]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:56:00]wFMCommunicate OK [23:56:00]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:56:00]SAM_PROTO_ProcessDocument remain to read = 270 [23:56:00]wFMCommunicate request_size=4 [23:56:00]MH_SAM_APDU [23:56:00]CAPDU: 80 17 00 00 [23:56:00]Write to MH i2c: E2 08 00 E8 05 80 17 00 00 00 00 00 00 6D [23:56:00]Write i2c OK [23:56:00]MH_I2C_Read... [23:56:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:00]Read from MH i2c: E2 [23:56:00]MH_I2C_Read... [23:56:00]Read from MH i2c: E2 FD 00 [23:56:00]MH_I2C_Read... [23:56:00]Read from MH i2c: E2 FD 00 E8 05 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 37 [23:56:00]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:56:01]wFMCommunicate OK [23:56:01]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:56:01]SAM_PROTO_ProcessDocument remain to read = 20 [23:56:01]wFMCommunicate request_size=4 [23:56:01]MH_SAM_APDU [23:56:01]CAPDU: 80 17 00 00 [23:56:01]Write to MH i2c: E2 08 00 E9 05 80 17 00 00 00 00 00 00 6E [23:56:01]Write i2c OK [23:56:01]MH_I2C_Read... [23:56:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 20! [23:56:01]Read from MH i2c: E2 [23:56:01]MH_I2C_Read... [23:56:01]Read from MH i2c: E2 17 00 [23:56:01]MH_I2C_Read... [23:56:01]Read from MH i2c: E2 17 00 E9 05 00 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 9A 64 E8 A8 54 9C 90 00 2D [23:56:01]RAPDU: 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 9A 64 E8 A8 54 9C 90 00 [23:56:01]wFMCommunicate OK [23:56:01]SAM_PROTO_ProcessDocument received (without SW) 20 bytes [23:56:01]SAM_PROTO_ProcessDocument done [23:56:01]1209 (1) - 1.0 - номер версии ФФД [23:56:01]1041 (16) - 0000000000871756 - номер ФМ [23:56:01]1040 (4) - 201707 - номер ФД [23:56:01]1038 (4) - 543 - номер смены [23:56:01]1118 (4) - 468 - количество кассовых чеков за смену [23:56:01]1111 (4) - 470 - общее количество ФД за смену [23:56:01]1194 (1197) - счетчики итогов смены [23:56:01] 1134 (4) - 468 - количество чеков со всеми признаками расчетов [23:56:01] 1129 (158) - счетчики операций «приход» [23:56:01] 1135 (4) - 468 - количество чеков по признаку расчетов [23:56:01] 1201 (4) - 391091.87 - общая итоговая сумма в чеках [23:56:01] 1136 (4) - 345704.00 - итоговая сумма в чеках наличными [23:56:01] 1138 (3) - 45387.87 - итоговая сумма в чеках безналичными [23:56:01] 1024 (123) - суммы налогов [23:56:01] 1006 (9) - суммы НДС [23:56:01] 1010 (1) - 0% - код ставки НДС [23:56:01] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:01] 1006 (12) - суммы НДС [23:56:01] 1010 (1) - 12% - код ставки НДС [23:56:01] 1011 (3) - 41544.37 - сумма НДС по ставке [23:56:01] 1007 (9) - суммы НСП [23:56:01] 1014 (1) - 0% - код ставки НСП [23:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:01] 1007 (12) - суммы НСП [23:56:01] 1014 (1) - 1% - код ставки НСП [23:56:01] 1015 (3) - 3462.00 - сумма НСП по ставке [23:56:01] 1007 (9) - суммы НСП [23:56:01] 1014 (1) - 2% - код ставки НСП [23:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:01] 1007 (9) - суммы НСП [23:56:01] 1014 (1) - 3% - код ставки НСП [23:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:01] 1007 (9) - суммы НСП [23:56:01] 1014 (1) - 5% - код ставки НСП [23:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:01] 1007 (9) - суммы НСП [23:56:01] 1014 (1) - 0,50% - код ставки НСП [23:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:01] 1007 (9) - суммы НСП [23:56:01] 1014 (1) - 1,50% - код ставки НСП [23:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:01] 1130 (141) - счетчики операций «возврат прихода» [23:56:01] 1135 (4) - 0 - количество чеков по признаку расчетов [23:56:01] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:56:01] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:56:01] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:56:01] 1024 (117) - суммы налогов [23:56:01] 1006 (9) - суммы НДС [23:56:01] 1010 (1) - 0% - код ставки НДС [23:56:01] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:01] 1006 (9) - суммы НДС [23:56:01] 1010 (1) - 12% - код ставки НДС [23:56:01] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:01] 1007 (9) - суммы НСП [23:56:01] 1014 (1) - 0% - код ставки НСП [23:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:01] 1007 (9) - суммы НСП [23:56:01] 1014 (1) - 1% - код ставки НСП [23:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:01] 1007 (9) - суммы НСП [23:56:01] 1014 (1) - 2% - код ставки НСП [23:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:01] 1007 (9) - суммы НСП [23:56:01] 1014 (1) - 3% - код ставки НСП [23:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:01] 1007 (9) - суммы НСП [23:56:01] 1014 (1) - 5% - код ставки НСП [23:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:01] 1007 (9) - суммы НСП [23:56:01] 1014 (1) - 0,50% - код ставки НСП [23:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:01] 1007 (9) - суммы НСП [23:56:01] 1014 (1) - 1,50% - код ставки НСП [23:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:01] 1131 (141) - счетчики операций «расход» [23:56:01] 1135 (4) - 0 - количество чеков по признаку расчетов [23:56:01] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:56:01] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:56:01] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:56:01] 1024 (117) - суммы налогов [23:56:01] 1006 (9) - суммы НДС [23:56:01] 1010 (1) - 0% - код ставки НДС [23:56:01] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:01] 1006 (9) - суммы НДС [23:56:01] 1010 (1) - 12% - код ставки НДС [23:56:01] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:01] 1007 (9) - суммы НСП [23:56:01] 1014 (1) - 0% - код ставки НСП [23:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:01] 1007 (9) - суммы НСП [23:56:01] 1014 (1) - 1% - код ставки НСП [23:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:01] 1007 (9) - суммы НСП [23:56:01] 1014 (1) - 2% - код ставки НСП [23:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:01] 1007 (9) - суммы НСП [23:56:01] 1014 (1) - 3% - код ставки НСП [23:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:01] 1007 (9) - суммы НСП [23:56:01] 1014 (1) - 5% - код ставки НСП [23:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:01] 1007 (9) - суммы НСП [23:56:01] 1014 (1) - 0,50% - код ставки НСП [23:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:01] 1007 (9) - суммы НСП [23:56:01] 1014 (1) - 1,50% - код ставки НСП [23:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:01] 1132 (141) - счетчики операций «возврат расхода» [23:56:01] 1135 (4) - 0 - количество чеков по признаку расчетов [23:56:01] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:56:01] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:56:01] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:56:01] 1024 (117) - суммы налогов [23:56:01] 1006 (9) - суммы НДС [23:56:01] 1010 (1) - 0% - код ставки НДС [23:56:01] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:01] 1006 (9) - суммы НДС [23:56:01] 1010 (1) - 12% - код ставки НДС [23:56:01] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:01] 1007 (9) - суммы НСП [23:56:01] 1014 (1) - 0% - код ставки НСП [23:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:01] 1007 (9) - суммы НСП [23:56:01] 1014 (1) - 1% - код ставки НСП [23:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:01] 1007 (9) - суммы НСП [23:56:01] 1014 (1) - 2% - код ставки НСП [23:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:01] 1007 (9) - суммы НСП [23:56:01] 1014 (1) - 3% - код ставки НСП [23:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:01] 1007 (9) - суммы НСП [23:56:01] 1014 (1) - 5% - код ставки НСП [23:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:01] 1007 (9) - суммы НСП [23:56:01] 1014 (1) - 0,50% - код ставки НСП [23:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:01] 1007 (9) - суммы НСП [23:56:01] 1014 (1) - 1,50% - код ставки НСП [23:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:01] 1133 (588) - - счетчики коррекции - не используются [23:56:01]1077 (6) - 169758190752924 - ФПД [23:56:01]SetTLVBufToDocument [23:56:01]Processing tag 1209 (04B9) [23:56:01]Malloc new data [23:56:01]Processing tag 1041 (0411) [23:56:01]Processing tag 1040 (0410) [23:56:01]Malloc new data [23:56:01]Processing tag 1038 (040E) [23:56:01]Malloc new data [23:56:01]Processing tag 1118 (045E) [23:56:01]Malloc new data [23:56:01]Processing tag 1111 (0457) [23:56:01]Malloc new data [23:56:01]Processing tag 1194 (04AA) [23:56:01]Load OK [23:56:01]SetTLVBufToDocument [23:56:01]Processing tag 1134 (046E) [23:56:01]Malloc new data [23:56:01]Processing tag 1129 (0469) [23:56:01]Load OK [23:56:01]SetTLVBufToDocument [23:56:01]Processing tag 1135 (046F) [23:56:01]Malloc new data [23:56:01]Processing tag 1201 (04B1) [23:56:01]Malloc new data [23:56:01]Processing tag 1136 (0470) [23:56:01]Malloc new data [23:56:01]Processing tag 1138 (0472) [23:56:01]Malloc new data [23:56:01]Processing tag 1024 (0400) [23:56:01]Load OK [23:56:01]SetTLVBufToDocument [23:56:01]Processing tag 1006 (03EE) [23:56:01]Load OK [23:56:01]SetTLVBufToDocument [23:56:01]Processing tag 1010 (03F2) [23:56:01]Malloc new data [23:56:01]Processing tag 1011 (03F3) [23:56:01]Malloc new data [23:56:01]SetTLVBufToDocument err=0 [23:56:01]Processing tag 1006 (03EE) [23:56:01]Load OK [23:56:01]SetTLVBufToDocument [23:56:01]Processing tag 1010 (03F2) [23:56:01]Malloc new data [23:56:01]Processing tag 1011 (03F3) [23:56:01]Malloc new data [23:56:01]SetTLVBufToDocument err=0 [23:56:01]Processing tag 1007 (03EF) [23:56:01]Load OK [23:56:01]SetTLVBufToDocument [23:56:01]Processing tag 1014 (03F6) [23:56:01]Malloc new data [23:56:01]Processing tag 1015 (03F7) [23:56:01]Malloc new data [23:56:01]SetTLVBufToDocument err=0 [23:56:01]Processing tag 1007 (03EF) [23:56:01]Load OK [23:56:01]SetTLVBufToDocument [23:56:01]Processing tag 1014 (03F6) [23:56:01]Malloc new data [23:56:01]Processing tag 1015 (03F7) [23:56:01]Malloc new data [23:56:01]SetTLVBufToDocument err=0 [23:56:01]Processing tag 1007 (03EF) [23:56:01]Load OK [23:56:01]SetTLVBufToDocument [23:56:01]Processing tag 1014 (03F6) [23:56:01]Malloc new data [23:56:01]Processing tag 1015 (03F7) [23:56:01]Malloc new data [23:56:01]SetTLVBufToDocument err=0 [23:56:01]Processing tag 1007 (03EF) [23:56:01]Load OK [23:56:01]SetTLVBufToDocument [23:56:01]Processing tag 1014 (03F6) [23:56:01]Malloc new data [23:56:01]Processing tag 1015 (03F7) [23:56:01]Malloc new data [23:56:01]SetTLVBufToDocument err=0 [23:56:01]Processing tag 1007 (03EF) [23:56:01]Load OK [23:56:01]SetTLVBufToDocument [23:56:01]Processing tag 1014 (03F6) [23:56:01]Malloc new data [23:56:01]Processing tag 1015 (03F7) [23:56:01]Malloc new data [23:56:01]SetTLVBufToDocument err=0 [23:56:01]Processing tag 1007 (03EF) [23:56:01]Load OK [23:56:01]SetTLVBufToDocument [23:56:01]Processing tag 1014 (03F6) [23:56:01]Malloc new data [23:56:01]Processing tag 1015 (03F7) [23:56:01]Malloc new data [23:56:01]SetTLVBufToDocument err=0 [23:56:01]Processing tag 1007 (03EF) [23:56:01]Load OK [23:56:01]SetTLVBufToDocument [23:56:01]Processing tag 1014 (03F6) [23:56:01]Malloc new data [23:56:01]Processing tag 1015 (03F7) [23:56:01]Malloc new data [23:56:01]SetTLVBufToDocument err=0 [23:56:01]SetTLVBufToDocument err=0 [23:56:01]SetTLVBufToDocument err=0 [23:56:01]Processing tag 1130 (046A) [23:56:01]Load OK [23:56:01]SetTLVBufToDocument [23:56:01]Processing tag 1135 (046F) [23:56:01]Malloc new data [23:56:01]Processing tag 1201 (04B1) [23:56:01]Malloc new data [23:56:01]Processing tag 1136 (0470) [23:56:01]Malloc new data [23:56:01]Processing tag 1138 (0472) [23:56:01]Malloc new data [23:56:01]Processing tag 1024 (0400) [23:56:01]Load OK [23:56:01]SetTLVBufToDocument [23:56:01]Processing tag 1006 (03EE) [23:56:01]Load OK [23:56:01]SetTLVBufToDocument [23:56:01]Processing tag 1010 (03F2) [23:56:01]Malloc new data [23:56:01]Processing tag 1011 (03F3) [23:56:01]Malloc new data [23:56:01]SetTLVBufToDocument err=0 [23:56:01]Processing tag 1006 (03EE) [23:56:01]Load OK [23:56:01]SetTLVBufToDocument [23:56:01]Processing tag 1010 (03F2) [23:56:01]Malloc new data [23:56:01]Processing tag 1011 (03F3) [23:56:01]Malloc new data [23:56:01]SetTLVBufToDocument err=0 [23:56:01]Processing tag 1007 (03EF) [23:56:01]Load OK [23:56:01]SetTLVBufToDocument [23:56:01]Processing tag 1014 (03F6) [23:56:01]Malloc new data [23:56:01]Processing tag 1015 (03F7) [23:56:01]Malloc new data [23:56:01]SetTLVBufToDocument err=0 [23:56:01]Processing tag 1007 (03EF) [23:56:01]Load OK [23:56:01]SetTLVBufToDocument [23:56:01]Processing tag 1014 (03F6) [23:56:01]Malloc new data [23:56:01]Processing tag 1015 (03F7) [23:56:02]Malloc new data [23:56:02]SetTLVBufToDocument err=0 [23:56:02]Processing tag 1007 (03EF) [23:56:02]Load OK [23:56:02]SetTLVBufToDocument [23:56:02]Processing tag 1014 (03F6) [23:56:02]Malloc new data [23:56:02]Processing tag 1015 (03F7) [23:56:02]Malloc new data [23:56:02]SetTLVBufToDocument err=0 [23:56:02]Processing tag 1007 (03EF) [23:56:02]Load OK [23:56:02]SetTLVBufToDocument [23:56:02]Processing tag 1014 (03F6) [23:56:02]Malloc new data [23:56:02]Processing tag 1015 (03F7) [23:56:02]Malloc new data [23:56:02]SetTLVBufToDocument err=0 [23:56:02]Processing tag 1007 (03EF) [23:56:02]Load OK [23:56:02]SetTLVBufToDocument [23:56:02]Processing tag 1014 (03F6) [23:56:02]Malloc new data [23:56:02]Processing tag 1015 (03F7) [23:56:02]Malloc new data [23:56:02]SetTLVBufToDocument err=0 [23:56:02]Processing tag 1007 (03EF) [23:56:02]Load OK [23:56:02]SetTLVBufToDocument [23:56:02]Processing tag 1014 (03F6) [23:56:02]Malloc new data [23:56:02]Processing tag 1015 (03F7) [23:56:02]Malloc new data [23:56:02]SetTLVBufToDocument err=0 [23:56:02]Processing tag 1007 (03EF) [23:56:02]Load OK [23:56:02]SetTLVBufToDocument [23:56:02]Processing tag 1014 (03F6) [23:56:02]Malloc new data [23:56:02]Processing tag 1015 (03F7) [23:56:02]Malloc new data [23:56:02]SetTLVBufToDocument err=0 [23:56:02]SetTLVBufToDocument err=0 [23:56:02]SetTLVBufToDocument err=0 [23:56:02]Processing tag 1131 (046B) [23:56:02]Load OK [23:56:02]SetTLVBufToDocument [23:56:02]Processing tag 1135 (046F) [23:56:02]Malloc new data [23:56:02]Processing tag 1201 (04B1) [23:56:02]Malloc new data [23:56:02]Processing tag 1136 (0470) [23:56:02]Malloc new data [23:56:02]Processing tag 1138 (0472) [23:56:02]Malloc new data [23:56:02]Processing tag 1024 (0400) [23:56:02]Load OK [23:56:02]SetTLVBufToDocument [23:56:02]Processing tag 1006 (03EE) [23:56:02]Load OK [23:56:02]SetTLVBufToDocument [23:56:02]Processing tag 1010 (03F2) [23:56:02]Malloc new data [23:56:02]Processing tag 1011 (03F3) [23:56:02]Malloc new data [23:56:02]SetTLVBufToDocument err=0 [23:56:02]Processing tag 1006 (03EE) [23:56:02]Load OK [23:56:02]SetTLVBufToDocument [23:56:02]Processing tag 1010 (03F2) [23:56:02]Malloc new data [23:56:02]Processing tag 1011 (03F3) [23:56:02]Malloc new data [23:56:02]SetTLVBufToDocument err=0 [23:56:02]Processing tag 1007 (03EF) [23:56:02]Load OK [23:56:02]SetTLVBufToDocument [23:56:02]Processing tag 1014 (03F6) [23:56:02]Malloc new data [23:56:02]Processing tag 1015 (03F7) [23:56:02]Malloc new data [23:56:02]SetTLVBufToDocument err=0 [23:56:02]Processing tag 1007 (03EF) [23:56:02]Load OK [23:56:02]SetTLVBufToDocument [23:56:02]Processing tag 1014 (03F6) [23:56:02]Malloc new data [23:56:02]Processing tag 1015 (03F7) [23:56:02]Malloc new data [23:56:02]SetTLVBufToDocument err=0 [23:56:02]Processing tag 1007 (03EF) [23:56:02]Load OK [23:56:02]SetTLVBufToDocument [23:56:02]Processing tag 1014 (03F6) [23:56:02]Malloc new data [23:56:02]Processing tag 1015 (03F7) [23:56:02]Malloc new data [23:56:02]SetTLVBufToDocument err=0 [23:56:02]Processing tag 1007 (03EF) [23:56:02]Load OK [23:56:02]SetTLVBufToDocument [23:56:02]Processing tag 1014 (03F6) [23:56:02]Malloc new data [23:56:02]Processing tag 1015 (03F7) [23:56:02]Malloc new data [23:56:02]SetTLVBufToDocument err=0 [23:56:02]Processing tag 1007 (03EF) [23:56:02]Load OK [23:56:02]SetTLVBufToDocument [23:56:02]Processing tag 1014 (03F6) [23:56:02]Malloc new data [23:56:02]Processing tag 1015 (03F7) [23:56:02]Malloc new data [23:56:02]SetTLVBufToDocument err=0 [23:56:02]Processing tag 1007 (03EF) [23:56:02]Load OK [23:56:02]SetTLVBufToDocument [23:56:02]Processing tag 1014 (03F6) [23:56:02]Malloc new data [23:56:02]Processing tag 1015 (03F7) [23:56:02]Malloc new data [23:56:02]SetTLVBufToDocument err=0 [23:56:02]Processing tag 1007 (03EF) [23:56:02]Load OK [23:56:02]SetTLVBufToDocument [23:56:02]Processing tag 1014 (03F6) [23:56:02]Malloc new data [23:56:02]Processing tag 1015 (03F7) [23:56:02]Malloc new data [23:56:02]SetTLVBufToDocument err=0 [23:56:02]SetTLVBufToDocument err=0 [23:56:02]SetTLVBufToDocument err=0 [23:56:02]Processing tag 1132 (046C) [23:56:02]Load OK [23:56:02]SetTLVBufToDocument [23:56:02]Processing tag 1135 (046F) [23:56:02]Malloc new data [23:56:02]Processing tag 1201 (04B1) [23:56:02]Malloc new data [23:56:02]Processing tag 1136 (0470) [23:56:02]Malloc new data [23:56:02]Processing tag 1138 (0472) [23:56:02]Malloc new data [23:56:02]Processing tag 1024 (0400) [23:56:02]Load OK [23:56:02]SetTLVBufToDocument [23:56:02]Processing tag 1006 (03EE) [23:56:02]Load OK [23:56:02]SetTLVBufToDocument [23:56:02]Processing tag 1010 (03F2) [23:56:02]Malloc new data [23:56:02]Processing tag 1011 (03F3) [23:56:02]Malloc new data [23:56:02]SetTLVBufToDocument err=0 [23:56:02]Processing tag 1006 (03EE) [23:56:02]Load OK [23:56:02]SetTLVBufToDocument [23:56:02]Processing tag 1010 (03F2) [23:56:02]Malloc new data [23:56:02]Processing tag 1011 (03F3) [23:56:02]Malloc new data [23:56:02]SetTLVBufToDocument err=0 [23:56:02]Processing tag 1007 (03EF) [23:56:02]Load OK [23:56:02]SetTLVBufToDocument [23:56:02]Processing tag 1014 (03F6) [23:56:02]Malloc new data [23:56:02]Processing tag 1015 (03F7) [23:56:02]Malloc new data [23:56:02]SetTLVBufToDocument err=0 [23:56:02]Processing tag 1007 (03EF) [23:56:02]Load OK [23:56:02]SetTLVBufToDocument [23:56:02]Processing tag 1014 (03F6) [23:56:02]Malloc new data [23:56:02]Processing tag 1015 (03F7) [23:56:02]Malloc new data [23:56:02]SetTLVBufToDocument err=0 [23:56:02]Processing tag 1007 (03EF) [23:56:02]Load OK [23:56:02]SetTLVBufToDocument [23:56:02]Processing tag 1014 (03F6) [23:56:02]Malloc new data [23:56:02]Processing tag 1015 (03F7) [23:56:02]Malloc new data [23:56:02]SetTLVBufToDocument err=0 [23:56:02]Processing tag 1007 (03EF) [23:56:02]Load OK [23:56:02]SetTLVBufToDocument [23:56:02]Processing tag 1014 (03F6) [23:56:02]Malloc new data [23:56:02]Processing tag 1015 (03F7) [23:56:02]Malloc new data [23:56:02]SetTLVBufToDocument err=0 [23:56:02]Processing tag 1007 (03EF) [23:56:02]Load OK [23:56:02]SetTLVBufToDocument [23:56:02]Processing tag 1014 (03F6) [23:56:02]Malloc new data [23:56:02]Processing tag 1015 (03F7) [23:56:02]Malloc new data [23:56:02]SetTLVBufToDocument err=0 [23:56:02]Processing tag 1007 (03EF) [23:56:02]Load OK [23:56:02]SetTLVBufToDocument [23:56:02]Processing tag 1014 (03F6) [23:56:02]Malloc new data [23:56:02]Processing tag 1015 (03F7) [23:56:02]Malloc new data [23:56:02]SetTLVBufToDocument err=0 [23:56:02]Processing tag 1007 (03EF) [23:56:02]Load OK [23:56:02]SetTLVBufToDocument [23:56:02]Processing tag 1014 (03F6) [23:56:02]Malloc new data [23:56:02]Processing tag 1015 (03F7) [23:56:02]Malloc new data [23:56:02]SetTLVBufToDocument err=0 [23:56:02]SetTLVBufToDocument err=0 [23:56:02]SetTLVBufToDocument err=0 [23:56:02]Processing tag 1133 (046D) [23:56:02]Malloc new data [23:56:02]SetTLVBufToDocument err=0 [23:56:02]Processing tag 1077 (0435) [23:56:02]Malloc new data [23:56:02]SetTLVBufToDocument err=0 [23:56:02]Malloc new data [23:56:02]SAM_PROTO_GetFMData [23:56:02]wFMCommunicate request_size=4 [23:56:02]MH_SAM_APDU [23:56:02]CAPDU: 80 13 03 00 [23:56:02]Write to MH i2c: E2 08 00 EA 05 80 13 03 00 00 00 00 00 6E [23:56:02]Write i2c OK [23:56:02]MH_I2C_Read... [23:56:02]OFD Sender: No OFD packet to send [23:56:02]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:56:02]Read from MH i2c: E2 [23:56:02]MH_I2C_Read... [23:56:03]Read from MH i2c: E2 FD 00 [23:56:03]MH_I2C_Read... [23:56:03]Read from MH i2c: E2 FD 00 EA 05 00 C4 04 85 04 C0 04 6E 04 04 00 AC 0F 03 00 69 04 A3 00 6F 04 04 00 87 0F 03 00 B1 04 05 00 EA CC FD AC 03 70 04 05 00 3C B1 FD 4D 03 72 04 04 00 AE 1B 00 5F 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 E1 E5 F6 63 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 69 66 54 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 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 73 [23:56:03]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 AC 0F 03 00 69 04 A3 00 6F 04 04 00 87 0F 03 00 B1 04 05 00 EA CC FD AC 03 70 04 05 00 3C B1 FD 4D 03 72 04 04 00 AE 1B 00 5F 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 E1 E5 F6 63 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 69 66 54 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 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 [23:56:03]wFMCommunicate OK [23:56:03]wFMCommunicate request_size=4 [23:56:03]MH_SAM_APDU [23:56:03]CAPDU: 80 17 00 00 [23:56:03]Write to MH i2c: E2 08 00 EB 05 80 17 00 00 00 00 00 00 70 [23:56:03]Write i2c OK [23:56:03]MH_I2C_Read... [23:56:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:03]Read from MH i2c: E2 [23:56:03]MH_I2C_Read... [23:56:03]Read from MH i2c: E2 FD 00 [23:56:03]MH_I2C_Read... [23:56:03]Read from MH i2c: E2 FD 00 EB 05 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 77 [23:56:04]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [23:56:04]wFMCommunicate OK [23:56:04]wFMCommunicate request_size=4 [23:56:04]MH_SAM_APDU [23:56:04]CAPDU: 80 17 00 00 [23:56:04]Write to MH i2c: E2 08 00 EC 05 80 17 00 00 00 00 00 00 71 [23:56:04]Write i2c OK [23:56:04]MH_I2C_Read... [23:56:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:04]Read from MH i2c: E2 [23:56:04]MH_I2C_Read... [23:56:04]Read from MH i2c: E2 FD 00 [23:56:04]MH_I2C_Read... [23:56:04]Read from MH i2c: E2 FD 00 EC 05 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 86 [23:56:04]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [23:56:05]wFMCommunicate OK [23:56:05]wFMCommunicate request_size=4 [23:56:05]MH_SAM_APDU [23:56:05]CAPDU: 80 17 00 00 [23:56:05]Write to MH i2c: E2 08 00 ED 05 80 17 00 00 00 00 00 00 72 [23:56:05]Write i2c OK [23:56:05]MH_I2C_Read... [23:56:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:05]Read from MH i2c: E2 [23:56:05]MH_I2C_Read... [23:56:05]Read from MH i2c: E2 FD 00 [23:56:05]MH_I2C_Read... [23:56:05]Read from MH i2c: E2 FD 00 ED 05 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 EA [23:56:05]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:56:05]wFMCommunicate OK [23:56:05]wFMCommunicate request_size=4 [23:56:05]MH_SAM_APDU [23:56:05]CAPDU: 80 17 00 00 [23:56:05]Write to MH i2c: E2 08 00 EE 05 80 17 00 00 00 00 00 00 73 [23:56:05]Write i2c OK [23:56:05]MH_I2C_Read... [23:56:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [23:56:06]Read from MH i2c: E2 [23:56:06]MH_I2C_Read... [23:56:06]Read from MH i2c: E2 E1 00 [23:56:06]MH_I2C_Read... [23:56:06]Read from MH i2c: E2 E1 00 EE 05 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 61 [23:56:06]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:56:06]wFMCommunicate OK [23:56:06]SAM_PROTO_GetFMData done [23:56:06]Malloc new data [23:56:06]Malloc new data [23:56:06]Malloc new data [23:56:06]Malloc new data [23:56:06]KKMLoadAndSignCloseShiftData err=0 [23:56:06]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Шайбек уулу У. 26.10.2024 23:55 Смена: 543 РНМ: 0000000000091777 ЗНМ: 0300000109 СНО: Общий режим Чеков за смену: 468 ФД за смену: 470 Всего чеков: 468 ИТОГИ ПРИХОД Чеков: 468 Общий итог: 391091.87 Итого наличными: 345704.00 Итого безнал.: 45387.87 НДС 0% : 0.00 НДС 12% : 41544.37 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 3462.00 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 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 Нал. в кассе: 345704.00 НС Приход: 157872161.06 НС Возвр.Прихода: 98929.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 201707 ФМ: 0000000000871756 ФПД: 169758190752924 [23:56:06]StoreToDocumentArchive [23:56:06]shift 543 fd 201707 [23:56:06]save to /storage/0543/doc_00201707 [23:56:06]save last doc name /storage/0543/doc_00201707 to /storage/kkm_last_doc_name [23:56:06]save OK [23:56:06]Clear old archive folders... [23:56:06]Remove dir /storage/0522 [23:56:06]opendir ok [23:56:06]file . [23:56:06]file .. [23:56:06]file doc_1729986939 [23:56:06]remove file /storage/0522/doc_1729986939 [23:56:06]remove dir /storage/0522 [23:56:06]NVStorageSaveData kkm_registers [23:56:06]File name is /storage/kkm_registers [23:56:06]Write 24 bytes [23:56:06]NVStorageSaveData done [23:56:06]NVStorageSaveData kkm_registers [23:56:06]File name is /storage/kkm_registers [23:56:06]Write 24 bytes [23:56:06]NVStorageSaveData done [23:56:06]ProcessDocumentItem done err = 0, tmpTLVsize=1387 [23:56:06]tlvbuf is 0015D0A0 [23:56:06]SAM_PROTO_ClearQueue [23:56:06]wFMCommunicate request_size=4 [23:56:06]MH_SAM_APDU [23:56:06]CAPDU: 80 09 00 00 [23:56:06]Write to MH i2c: E2 08 00 EF 05 80 09 00 00 00 00 00 00 66 [23:56:06]Write i2c OK [23:56:06]MH_I2C_Read... [23:56:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:56:06]Read from MH i2c: E2 [23:56:06]MH_I2C_Read... [23:56:06]Read from MH i2c: E2 03 00 [23:56:06]MH_I2C_Read... [23:56:06]Read from MH i2c: E2 03 00 EF 05 00 90 00 68 [23:56:06]RAPDU: 90 00 [23:56:06]wFMCommunicate OK [23:56:06]SAM_PROTO_ClearQueue done [23:56:06]KKMCreateOFDPacket [23:56:06]OFDProtocolAddRootSTLVToBuf [23:56:06]FM_MakeSignedData [23:56:06]FM_MakeSignedData [23:56:06]SAM_PROTO_SignData [23:56:06]wFMCommunicate request_size=4 [23:56:06]MH_SAM_APDU [23:56:06]CAPDU: 80 0D 01 02 [23:56:06]Write to MH i2c: E2 08 00 F0 05 80 0D 01 02 00 00 00 00 6E [23:56:06]Write i2c OK [23:56:06]MH_I2C_Read... [23:56:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:56:06]Read from MH i2c: E2 [23:56:06]MH_I2C_Read... [23:56:06]Read from MH i2c: E2 03 00 [23:56:06]MH_I2C_Read... [23:56:06]Read from MH i2c: E2 03 00 F0 05 00 90 00 69 [23:56:06]RAPDU: 90 00 [23:56:06]wFMCommunicate OK [23:56:06]wFMCommunicate request_size=255 [23:56:06]MH_SAM_APDU [23:56:06]CAPDU: 80 0D 02 02 FA 05 00 6B 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 1A 00 D0 A8 D0 B0 D0 B9 D0 B1 D0 B5 D0 BA 20 D1 83 D1 83 D0 BB D1 83 20 D0 A3 2E 20 F4 03 04 00 8E 81 1D 67 0E 04 04 00 1F 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 5E 04 04 00 D4 01 00 00 57 04 04 00 D6 01 00 00 AA 04 D8 04 6E 04 04 00 D4 01 00 00 69 04 A5 00 6F 04 04 00 D4 01 00 00 B1 04 04 00 43 C2 54 02 70 04 04 00 A0 80 0F 02 72 04 03 00 A3 41 45 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 45 64 3F 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 [23:56:07]Write to MH i2c: E2 02 01 F1 05 80 0D 02 02 FA 00 05 00 6B 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 1A 00 D0 A8 D0 B0 D0 B9 D0 B1 D0 B5 D0 BA 20 D1 83 D1 83 D0 BB D1 83 20 D0 A3 2E 20 F4 03 04 00 8E 81 1D 67 0E 04 04 00 1F 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 5E 04 04 00 D4 01 00 00 57 04 04 00 D6 01 00 00 AA 04 D8 04 6E 04 04 00 D4 01 00 00 69 04 A5 00 6F 04 04 00 D4 01 00 00 B1 04 04 00 43 C2 54 02 70 04 04 00 A0 80 0F 02 72 04 03 00 A3 41 45 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 45 64 3F 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 00 00 37 [23:56:07]Write i2c OK [23:56:07]MH_I2C_Read... [23:56:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:07]Read from MH i2c: E2 [23:56:07]MH_I2C_Read... [23:56:07]Read from MH i2c: E2 03 00 [23:56:07]MH_I2C_Read... [23:56:07]Read from MH i2c: E2 03 00 F1 05 00 90 00 6A [23:56:07]RAPDU: 90 00 [23:56:07]wFMCommunicate OK [23:56:07]wFMCommunicate request_size=255 [23:56:07]MH_SAM_APDU [23:56:07]CAPDU: 80 0D 02 02 FA 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 58 48 05 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 OFD Sender: No OFD packet to send [23:56:07]00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 [23:56:07]Write to MH i2c: E2 02 01 F2 05 80 0D 02 02 FA 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 58 48 05 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 00 00 87 [23:56:08]Write i2c OK [23:56:08]MH_I2C_Read... [23:56:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:08]Read from MH i2c: E2 [23:56:08]MH_I2C_Read... [23:56:08]Read from MH i2c: E2 03 00 [23:56:08]MH_I2C_Read... [23:56:08]Read from MH i2c: E2 03 00 F2 05 00 90 00 6B [23:56:08]RAPDU: 90 00 [23:56:08]wFMCommunicate OK [23:56:08]wFMCommunicate request_size=255 [23:56:08]MH_SAM_APDU [23:56:08]CAPDU: 80 0D 02 02 FA 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 [23:56:08]Write to MH i2c: E2 02 01 F3 05 80 0D 02 02 FA 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 00 36 [23:56:09]Write i2c OK [23:56:09]MH_I2C_Read... [23:56:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:09]Read from MH i2c: E2 [23:56:09]MH_I2C_Read... [23:56:09]Read from MH i2c: E2 03 00 [23:56:09]MH_I2C_Read... [23:56:09]Read from MH i2c: E2 03 00 F3 05 00 90 00 6C [23:56:09]RAPDU: 90 00 [23:56:09]wFMCommunicate OK [23:56:09]wFMCommunicate request_size=255 [23:56:09]MH_SAM_APDU [23:56:09]CAPDU: 80 0D 02 02 FA 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 [23:56:09]Write to MH i2c: E2 02 01 F4 05 80 0D 02 02 FA 00 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 00 00 2F [23:56:09]Write i2c OK [23:56:09]MH_I2C_Read... [23:56:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:10]Read from MH i2c: E2 [23:56:10]MH_I2C_Read... [23:56:10]Read from MH i2c: E2 03 00 [23:56:10]MH_I2C_Read... [23:56:10]Read from MH i2c: E2 03 00 F4 05 00 90 00 6D [23:56:10]RAPDU: 90 00 [23:56:10]wFMCommunicate OK [23:56:10]wFMCommunicate request_size=255 [23:56:10]MH_SAM_APDU [23:56:10]CAPDU: 80 0D 02 02 FA 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:56:10]Write to MH i2c: E2 02 01 F5 05 80 0D 02 02 FA 00 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 00 00 [23:56:10]Write i2c OK [23:56:10]MH_I2C_Read... [23:56:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:11]Read from MH i2c: E2 [23:56:11]MH_I2C_Read... [23:56:11]Read from MH i2c: E2 03 00 [23:56:11]MH_I2C_Read... [23:56:11]Read from MH i2c: E2 03 00 F5 05 00 90 00 6E [23:56:11]RAPDU: 90 00 [23:56:11]wFMCommunicate OK [23:56:11]wFMCommunicate request_size=146 [23:56:11]MH_SAM_APDU [23:56:11]CAPDU: 80 0D 02 02 8D 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EB 13 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 35 04 06 00 9A 64 E8 A8 54 9C [23:56:11]Write to MH i2c: E2 95 00 F6 05 80 0D 02 02 8D 00 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EB 13 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 35 04 06 00 9A 64 E8 A8 54 9C 00 00 43 [23:56:11]Write i2c OK [23:56:11]MH_I2C_Read... [23:56:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:11]Read from MH i2c: E2 [23:56:11]MH_I2C_Read... [23:56:11]Read from MH i2c: E2 03 00 [23:56:11]MH_I2C_Read... [23:56:11]Read from MH i2c: E2 03 00 F6 05 00 90 00 6F [23:56:11]RAPDU: 90 00 [23:56:11]wFMCommunicate OK [23:56:11]wFMCommunicate request_size=4 [23:56:11]MH_SAM_APDU [23:56:11]CAPDU: 80 0D 03 02 [23:56:11]Write to MH i2c: E2 08 00 F7 05 80 0D 03 02 00 00 00 00 77 [23:56:11]Write i2c OK [23:56:11]MH_I2C_Read... [23:56:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:56:11]Read from MH i2c: E2 [23:56:11]MH_I2C_Read... [23:56:11]Read from MH i2c: E2 0B 00 [23:56:11]MH_I2C_Read... [23:56:11]Read from MH i2c: E2 0B 00 F7 05 00 D6 36 D2 98 A3 61 C4 B6 90 00 6C [23:56:11]RAPDU: D6 36 D2 98 A3 61 C4 B6 90 00 [23:56:11]wFMCommunicate OK [23:56:11]SAM_PROTO_SignData done [23:56:11]FM_MakeSignedData done [23:56:11]CreateOFDProtocolMessage [23:56:11]wFMCommunicate request_size=4 [23:56:11]MH_SAM_APDU [23:56:11]CAPDU: 80 11 00 00 [23:56:11]Write to MH i2c: E2 08 00 F8 05 80 11 00 00 00 00 00 00 77 [23:56:11]Write i2c OK [23:56:11]MH_I2C_Read... [23:56:11]Read from MH i2c: E2 [23:56:11]MH_I2C_Read... [23:56:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:56:11]Read from MH i2c: E2 17 00 [23:56:11]MH_I2C_Read... [23:56:11]Read from MH i2c: E2 17 00 F8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 CC [23:56:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [23:56:11]wFMCommunicate OK [23:56:11]CreateOFDProtocolMessage done [23:56:11]OFDSenderStorePacket 201707 [23:56:11]StoreOFDPacket docnum=201707 [23:56:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 7F 05 00 00 32 FD 77 05 24 15 5A 05 01 00 05 00 6B 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 1A 00 D0 A8 D0 B0 D0 B9 D0 B1 D0 B5 D0 BA 20 D1 83 D1 83 D0 BB D1 83 20 D0 A3 2E 20 F4 03 04 00 8E 81 1D 67 0E 04 04 00 1F 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 5E 04 04 00 D4 01 00 00 57 04 04 00 D6 01 00 00 AA 04 D8 04 6E 04 04 00 D4 01 00 00 69 04 A5 00 6F 04 04 00 D4 01 00 00 B1 04 04 00 43 C2 54 02 70 04 04 00 A0 80 0F 02 72 04 03 00 A3 41 45 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 45 64 3F 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 58 48 05 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 EB 13 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 35 04 06 00 9A 64 E8 A8 54 9C D6 36 D2 98 A3 61 C4 B6 [23:56:12]CheckFolder [23:56:12]dirname=/storage/ofd_packets [23:56:12]CheckFolder done [23:56:12]ProducePacketName [23:56:12]name=ofd_packets/00201707 [23:56:12]NVStorageSaveData ofd_packets/00201707 [23:56:12]File name is /storage/ofd_packets/00201707 [23:56:12]Write 1437 bytes [23:56:12]NVStorageSaveData done [23:56:12]OFDSenderStorePacket done [23:56:12]KKMCreateOFDPacket done [23:56:12]NVStorageSaveData kkm_last_timestamp [23:56:12]File name is /storage/kkm_last_timestamp [23:56:12]Write 4 bytes [23:56:12]NVStorageSaveData done [23:56:12]ExternCall_PrintAddStr [23:56:12]wPrintStart [23:56:12]Write to MH i2c: 01 00 00 F9 05 FE [23:56:12]Write i2c OK [23:56:12]MH_I2C_Read... [23:56:12]Read from MH i2c: 01 [23:56:12]MH_I2C_Read... [23:56:12]Read from MH i2c: 01 07 00 [23:56:12]MH_I2C_Read... [23:56:12]Read from MH i2c: 01 07 00 F9 05 00 00 00 00 00 FF 0F 13 [23:56:12]RasterBufferAndPrint [23:56:12]line Отчет о закрытии смены [23:56:12]line ФФД: 1.0 [23:56:12]line ИНН: 02508201610067 [23:56:12]line Кассир: Шайбек уулу У. [23:56:12]line 26.10.2024 23:55 [23:56:12]line Смена: 543 [23:56:12]line РНМ: 0000000000091777 [23:56:12]line ЗНМ: 0300000109 [23:56:12]line СНО: Общий режим [23:56:12]line Чеков за смену: 468 [23:56:12]line ФД за смену: 470 [23:56:12]line Всего чеков: 468 [23:56:12]line ИТОГИ ПРИХОД [23:56:12]line Чеков: 468 [23:56:12]line Общий итог: 391091.87 [23:56:12]line Итого наличными: 345704.00 [23:56:12]line Итого безнал.: 45387.87 [23:56:12]line НДС 0% : 0.00 [23:56:12]line НДС 12% : 41544.37 [23:56:12]line НСП 0% : 0.00 [23:56:12]line НСП 1,50% : 0.00 [23:56:12]line НСП 0,50% : 0.00 [23:56:12]line НСП 5% : 0.00 [23:56:12]line НСП 3% : 0.00 [23:56:12]line НСП 2% : 0.00 [23:56:12]line НСП 1% : 3462.00 [23:56:12]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:56:12]line Чеков: 0 [23:56:12]line Общий итог: 0.00 [23:56:12]line Итого наличными: 0.00 [23:56:12]line Итого безнал.: 0.00 [23:56:12]line НДС 0% : 0.00 [23:56:12]line НДС 12% : 0.00 [23:56:12]line НСП 0% : 0.00 [23:56:12]line НСП 1,50% : 0.00 [23:56:12]line НСП 0,50% : 0.00 [23:56:12]line НСП 5% : 0.00 [23:56:12]line НСП 3% : 0.00 [23:56:12]line НСП 2% : 0.00 [23:56:12]line НСП 1% : 0.00 [23:56:12]line ИТОГИ РАСХОД [23:56:12]line Чеков: 0 [23:56:12]line Общий итог: 0.00 [23:56:12]line Итого наличными: 0.00 [23:56:12]line Итого безнал.: 0.00 [23:56:12]line НДС 0% : 0.00 [23:56:12]line НДС 12% : 0.00 [23:56:12]line НСП 0% : 0.00 [23:56:12]line НСП 1,50% : 0.00 [23:56:12]line НСП 0,50% : 0.00 [23:56:12]line НСП 5% : 0.00 [23:56:12]line НСП 3% : 0.00 [23:56:12]line НСП 2% : 0.00 [23:56:12]line НСП 1% : 0.00 [23:56:12]line ИТОГИ ВОЗВРАТ РАСХОДА [23:56:12]line Чеков: 0 [23:56:12]line Общий итог: 0.00 [23:56:12]line Итого наличными: 0.00 [23:56:12]line Итого безнал.: 0.00 [23:56:12]line НДС 0% : 0.00 [23:56:12]line НДС 12% : 0.00 [23:56:12]OFD Sender: Processing packet 201707 [packets to send 112, broken 111] [23:56:12]line НСП 0% : 0.00 [23:56:12]ProducePacketName [23:56:12]line НСП 1,50% : 0.00 [23:56:12]name=ofd_packets/00201707 [23:56:12]line НСП 0,50% : 0.00 [23:56:12]OFD Sender: To server: pG, [23:56:12]line НСП 5% : 0.00 [23:56:12]CommunicateWithHost lk.salyk.kg:30040 [23:56:12]ConnectInit lk.salyk.kg [23:56:12]line НСП 3% : 0.00 [23:56:12]line НСП 2% : 0.00 [23:56:12]line НСП 1% : 0.00 [23:56:12]line Сумма внесений: 0.00 [23:56:12]line Сумма выплат: 0.00 [23:56:12]line Нал. в кассе: 345704.00 [23:56:12]line НС Приход: 157872161.06 [23:56:12]line НС Возвр.Прихода: 98929.00 [23:56:12]line НС Расход: 0.00 [23:56:12]line НС Возвр.Расхода: 0.00 [23:56:12]line ФД: 201707 [23:56:12]line ФМ: 0000000000871756 [23:56:12]line ФПД: 169758190752924 [23:56:12]written 0, free lines is 4095 [23:56:12]Connected sock=9 [23:56:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 7F 05 00 00 32 FD 77 05 24 15 5A 05 01 00 05 00 6B 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 1A 00 D0 A8 D0 B0 D0 B9 D0 B1 D0 B5 D0 BA 20 D1 83 D1 83 D0 BB D1 83 20 D0 A3 2E 20 F4 03 04 00 8E 81 1D 67 0E 04 04 00 1F 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 5E 04 04 00 D4 01 00 00 57 04 04 00 D6 01 00 00 AA 04 D8 04 6E 04 04 00 D4 01 00 00 69 04 A5 00 6F 04 04 00 D4 01 00 00 B1 04 04 00 43 C2 54 02 70 04 04 00 A0 80 0F 02 72 04 03 00 A3 41 45 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 45 64 3F 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 58 48 05 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 Write to MH i2c: F3 01 03 00 01 00 00 49 00 06 EE 03 0A 00 F2 03 01 00 01 F3 4F 03 [23:56:13]01 00 00 EF 03 0A 00 Write i2c OK [23:56:13]F6 MH_I2C_Read... [23:56:13]03 01 00 00 F7 Read from MH i2c: 03 01 01 [23:56:13]00 MH_I2C_Read... [23:56:13]00 EF 03 0A 00 F6 03 01 00 06 F7 03 Read from MH i2c: 01 01 00 07 00 00 EF [23:56:13]03 MH_I2C_Read... [23:56:13]0A 00 F6 03 01 00 05 F7 Read from MH i2c: 03 01 01 07 00 00 00 49 EF 06 03 00 0A 00 00 00 F6 00 03 00 01 33 00 0A 04 93 F7 [23:56:13]03 RasterBufferAndPrint [23:56:13]01 line [23:56:13]00 line [23:56:13]00 line [23:56:13]EF line [23:56:13]03 line [23:56:13]0A 00 written 0, free lines is 2811 [23:56:13]F6 03 01 00 03 F7 03 01 00 00 EF MH_Cut [23:56:13]03 Write to MH i2c: 0A D1 00 01 F6 00 03 01 00 02 F7 03 01 00 00 EF 50 03 06 0A 01 00 28 F6 [23:56:13]03 01 00 01 F7 03 01 00 00 6D 04 Write i2c OK [23:56:13]4C MH_I2C_Read... [23:56:13]02 78 04 04 00 Read from MH i2c: 00 D1 00 [23:56:13]00 MH_I2C_Read... [23:56:13]00 79 04 8D 00 6F 04 04 00 00 00 Read from MH i2c: 00 D1 00 01 B1 00 04 [23:56:13]00 MH_I2C_Read... [23:56:13]00 70 04 00 00 72 04 00 Read from MH i2c: 00 D1 00 01 04 00 75 50 00 EE 03 09 00 F2 03 01 00 00 06 F3 00 03 27 00 [23:56:13]00 Write to MH i2c: 01 EE 00 03 00 09 51 00 06 F2 03 01 00 01 F3 03 00 00 EF 57 03 [23:56:13]09 Write i2c OK [23:56:13]00 MH_I2C_Read... [23:56:13]F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EB 13 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 35 04 06 00 9A 64 E8 A8 54 9C D6 36 D2 98 A3 61 C4 B6 [23:56:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 D9 32 47 00 AE 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 *** Cut start [23:56:14]EB 13 03 00 F4 03 04 00 44 *** Purtial cut [23:56:14]2D 1D 67 B6 04 01 00 00 78 E7 96 0C 55 B2 *** Stage 1: CUTSNS_PIN = 1 [23:56:14]ED *** Stop cut motor [23:56:14]0C *** Cut end [23:56:14] [23:56:14]CommunicateWithHost err = 0 [23:56:14]CheckOFDResponse [23:56:14]1017 (14) - 77093643461234 [23:56:14]1041 (16) - 0000000000871756 [23:56:14]1040 (4) - 201707 [23:56:14]1012 (4) - 26.10.2024 17:56 [23:56:14]1206 (1) - 0 [23:56:14]OFD Sender: Remove packet 201707 [23:56:14]ProducePacketName [23:56:14]name=ofd_packets/00201707 [23:56:14]NVStorageDeleteData [23:56:14]Read from MH i2c: 01 [23:56:14]MH_I2C_Read... [23:56:14]Read from MH i2c: 01 07 00 [23:56:14]MH_I2C_Read... [23:56:14]Read from MH i2c: 01 07 00 51 06 00 00 00 00 00 FF 0F 6C [23:56:14]process_action close_shift done [23:56:14]requested_data is exist [23:56:14]produce_requested_data [23:56:14]requested_item fd.num is exist - process it [23:56:14]SAM_PROTO_GetFieldsCounters [23:56:14]wFMCommunicate request_size=4 [23:56:14]MH_SAM_APDU [23:56:14]CAPDU: 80 13 00 00 [23:56:14]Write to MH i2c: E2 08 00 52 06 80 13 00 00 00 00 00 00 D4 [23:56:14]Write i2c OK [23:56:14]MH_I2C_Read... [23:56:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:56:14]Read from MH i2c: E2 [23:56:14]MH_I2C_Read... [23:56:14]Read from MH i2c: E2 62 00 [23:56:14]MH_I2C_Read... [23:56:14]Read from MH i2c: E2 62 00 52 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EB 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D4 01 00 00 5E 04 04 00 D4 01 00 00 57 04 04 00 D6 01 00 00 19 04 04 00 00 00 00 00 90 00 9F [23:56:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EB 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D4 01 00 00 5E 04 04 00 D4 01 00 00 57 04 04 00 D6 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:56:15]wFMCommunicate OK [23:56:15]SAM_PROTO_GetFieldsCounters done [23:56:15]requested_item shift.num is exist - process it [23:56:15]requested_item shift.opened is exist - process it [23:56:15]req_shift_opened [23:56:15]FM_GetShiftState [23:56:15]SAM_PROTO_GetShiftState [23:56:15]wFMCommunicate request_size=4 [23:56:15]MH_SAM_APDU [23:56:15]CAPDU: 80 13 01 00 [23:56:15]Write to MH i2c: E2 08 00 53 06 80 13 01 00 00 00 00 00 D6 [23:56:15]Write i2c OK [23:56:15]MH_I2C_Read... [23:56:15]OFD Sender: No OFD packet to send [23:56:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:15]Read from MH i2c: E2 [23:56:15]MH_I2C_Read... [23:56:15]Read from MH i2c: E2 0E 00 [23:56:15]MH_I2C_Read... [23:56:15]Read from MH i2c: E2 0E 00 53 06 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E1 [23:56:15]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:56:15]wFMCommunicate OK [23:56:15]SAM_PROTO_GetShiftState done [23:56:15]FM_GetShiftState done [23:56:15]req_shift_opened done [23:56:15]requested_item shift.open_date is exist - process it [23:56:15]req_shift_open_date [23:56:15]FM_GetShiftState [23:56:15]SAM_PROTO_GetShiftState [23:56:15]wFMCommunicate request_size=4 [23:56:15]MH_SAM_APDU [23:56:15]CAPDU: 80 13 01 00 [23:56:15]Write to MH i2c: E2 08 00 54 06 80 13 01 00 00 00 00 00 D7 [23:56:15]Write i2c OK [23:56:15]MH_I2C_Read... [23:56:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:15]Read from MH i2c: E2 [23:56:15]MH_I2C_Read... [23:56:15]Read from MH i2c: E2 0E 00 [23:56:15]MH_I2C_Read... [23:56:15]Read from MH i2c: E2 0E 00 54 06 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E2 [23:56:15]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:56:15]wFMCommunicate OK [23:56:15]SAM_PROTO_GetShiftState done [23:56:15]FM_GetShiftState done [23:56:15]req_shift_open_date done [23:56:15]produce_requested_data done [23:56:15]produce_requested_data return {"fd.num":201707,"shift.num":543,"shift.opened":0,"shift.open_date":0} [23:56:15]process_action_free close_shift [23:56:15]json_value_free [23:56:15]json_value_free done [23:56:15]process_json_proto returns [23:56:15]Send response to host [23:56:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":201707,"shift.num":543,"shift.opened":0,"shift.open_date":0}}} [23:56:15]free response buf [23:56:15]execute_script done [23:56:15]execute_script returns [23:56:15]free content buf [23:56:15]Sock 10.Close socket [23:56:15]Sock 10.Thread stoped [23:56:19]int [23:56:19]Write to MH i2c: 01 00 00 55 06 5B [23:56:19]*** FLAG_PRN_KEY set [23:56:19]Write i2c OK [23:56:19]MH_I2C_Read... [23:56:19]Read from MH i2c: 01 [23:56:19]MH_I2C_Read... [23:56:19]Read from MH i2c: 01 07 00 [23:56:19]MH_I2C_Read... [23:56:19]Read from MH i2c: 01 07 00 55 06 00 08 00 00 00 FF 0F 78 [23:56:19]state=0 [23:56:19]Key pressed [23:56:19]Feed [23:56:19]Write to MH i2c: D8 00 00 56 06 33 [23:56:19]Write i2c OK [23:56:19]MH_I2C_Read... [23:56:19]Read from MH i2c: D8 [23:56:19]MH_I2C_Read... [23:56:19]Read from MH i2c: D8 01 00 [23:56:19]MH_I2C_Read... [23:56:19]Read from MH i2c: D8 01 00 56 06 00 34 [23:56:19]int line is 0 - check status [23:56:19]Write to MH i2c: 01 00 00 57 06 5D [23:56:19]Write i2c OK [23:56:19]MH_I2C_Read... [23:56:19]Read from MH i2c: 01 [23:56:19]MH_I2C_Read... [23:56:19]Read from MH i2c: 01 07 00 [23:56:19]MH_I2C_Read... [23:56:19]Read from MH i2c: 01 07 00 57 06 00 48 00 00 00 3C 00 E8 [23:56:19]state=2 [23:56:19]Key pressed [23:56:19]int [23:56:19]Write to MH i2c: 01 00 00 58 06 5E [23:56:19]Write i2c OK [23:56:19]MH_I2C_Read... [23:56:19]Read from MH i2c: 01 [23:56:19]MH_I2C_Read... [23:56:19]Read from MH i2c: 01 07 00 [23:56:19]MH_I2C_Read... [23:56:19]Read from MH i2c: 01 07 00 58 06 00 48 00 00 00 3C 00 E9 [23:56:19]state=2 [23:56:19]Key pressed [23:56:19]int [23:56:19]Write to MH i2c: 01 00 00 59 06 5F [23:56:19]*** FLAG_PRN_KEY reset [23:56:19]Write i2c OK [23:56:19]MH_I2C_Read... [23:56:19]Read from MH i2c: 01 [23:56:19]MH_I2C_Read... [23:56:19]Read from MH i2c: 01 07 00 [23:56:19]MH_I2C_Read... [23:56:19]Read from MH i2c: 01 07 00 59 06 00 00 00 00 00 FF 0F 74 [23:56:19]state=2 [23:56:19]Stop feed [23:56:20]OFD Sender: No OFD packet to send [23:56:25]OFD Sender: No OFD packet to send [23:56:30]OFD Sender: No OFD packet to send [23:56:35]OFD Sender: No OFD packet to send [23:56:40]OFD Sender: No OFD packet to send [23:56:45]OFD Sender: No OFD packet to send [23:56:50]OFD Sender: No OFD packet to send [23:56:55]OFD Sender: No OFD packet to send [23:57:00]OFD Sender: No OFD packet to send [23:57:05]OFD Sender: No OFD packet to send [23:57:10]OFD Sender: No OFD packet to send [23:57:15]OFD Sender: No OFD packet to send [23:57:20]OFD Sender: No OFD packet to send [23:57:25]OFD Sender: No OFD packet to send [23:57:30]OFD Sender: No OFD packet to send [23:57:35]OFD Sender: No OFD packet to send [23:57:40]OFD Sender: No OFD packet to send [23:57:45]OFD Sender: No OFD packet to send [23:57:50]OFD Sender: No OFD packet to send [23:57:55]OFD Sender: No OFD packet to send [23:58:00]OFD Sender: No OFD packet to send [23:58:05]OFD Sender: No OFD packet to send [23:58:10]OFD Sender: No OFD packet to send [23:58:15]OFD Sender: No OFD packet to send [23:58:20]OFD Sender: No OFD packet to send [23:58:25]OFD Sender: No OFD packet to send [23:58:30]OFD Sender: No OFD packet to send [23:58:35]OFD Sender: No OFD packet to send [23:58:40]OFD Sender: No OFD packet to send [23:58:45]OFD Sender: No OFD packet to send [23:58:50]OFD Sender: No OFD packet to send [23:58:55]OFD Sender: No OFD packet to send [23:59:00]OFD Sender: No OFD packet to send [23:59:05]OFD Sender: No OFD packet to send [23:59:10]OFD Sender: No OFD packet to send [23:59:15]OFD Sender: No OFD packet to send [23:59:20]OFD Sender: No OFD packet to send [23:59:25]OFD Sender: No OFD packet to send [23:59:30]OFD Sender: No OFD packet to send [23:59:35]OFD Sender: No OFD packet to send [23:59:40]OFD Sender: No OFD packet to send [23:59:45]OFD Sender: No OFD packet to send [23:59:50]OFD Sender: No OFD packet to send [23:59:55]OFD Sender: No OFD packet to send [00:00:00]OFD Sender: No OFD packet to send [00:00:05]OFD Sender: No OFD packet to send [00:00:10]OFD Sender: No OFD packet to send [00:00:15]OFD Sender: No OFD packet to send [00:00:20]OFD Sender: No OFD packet to send [00:00:25]OFD Sender: No OFD packet to send [00:00:30]OFD Sender: No OFD packet to send [00:00:35]OFD Sender: No OFD packet to send [00:00:40]OFD Sender: No OFD packet to send [00:00:45]OFD Sender: No OFD packet to send [00:00:50]OFD Sender: No OFD packet to send [00:00:55]OFD Sender: No OFD packet to send [00:01:00]OFD Sender: No OFD packet to send [00:01:05]OFD Sender: No OFD packet to send [00:01:10]OFD Sender: No OFD packet to send [00:01:15]OFD Sender: No OFD packet to send [00:01:20]OFD Sender: No OFD packet to send [00:01:25]OFD Sender: No OFD packet to send [00:01:30]OFD Sender: No OFD packet to send [00:01:35]OFD Sender: No OFD packet to send [00:01:40]OFD Sender: No OFD packet to send [00:01:45]OFD Sender: No OFD packet to send [00:01:46]accept exits with 8 [00:01:46]New connection [00:01:46]New thread 3067080036 created [00:01:46]Thread 3066936676 joined [00:01:46]Waiting for new connection... [00:01:46] Sock 8.Parse request [00:01:46]Sock 8.Check first char [00:01:46]Sock 8.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.63.195:8080 [00:01:46]Content-Length: 215 [00:01:46]Content-Type: application/json [00:01:46] [00:01:46]POST finish read [00:01:46]Found Content-Length = 215 [00:01:46]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:46]execute_script... [00:01:46]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: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=get_value [00:01:46]process_action get_value [00:01:46]cmd_get_value [00:01:46]process_action get_value done [00:01:46]requested_data is exist [00:01:46]produce_requested_data [00:01:46]requested_item kkm.sn is exist - process it [00:01:46]requested_item kkm.ver is exist - process it [00:01:46]requested_item fm.sn is exist - process it [00:01:46]wFMCommunicate request_size=4 [00:01:46]MH_SAM_APDU [00:01:46]CAPDU: 80 11 00 00 [00:01:46]Write to MH i2c: E2 08 00 5A 06 80 11 00 00 00 00 00 00 DA [00:01:46]Write i2c OK [00:01:46]MH_I2C_Read... [00:01:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:46]Read from MH i2c: E2 [00:01:46]MH_I2C_Read... [00:01:46]Read from MH i2c: E2 17 00 [00:01:46]MH_I2C_Read... [00:01:46]Read from MH i2c: E2 17 00 5A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 2F [00:01:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [00:01:46]wFMCommunicate OK [00:01:46]requested_item fd.num is exist - process it [00:01:46]SAM_PROTO_GetFieldsCounters [00:01:46]wFMCommunicate request_size=4 [00:01:46]MH_SAM_APDU [00:01:46]CAPDU: 80 13 00 00 [00:01:46]Write to MH i2c: E2 08 00 5B 06 80 13 00 00 00 00 00 00 DD [00:01:46]Write i2c OK [00:01:46]MH_I2C_Read... [00:01:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:01:46]Read from MH i2c: E2 [00:01:46]MH_I2C_Read... [00:01:46]Read from MH i2c: E2 62 00 [00:01:46]MH_I2C_Read... [00:01:46]Read from MH i2c: E2 62 00 5B 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EB 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D4 01 00 00 5E 04 04 00 D4 01 00 00 57 04 04 00 D6 01 00 00 19 04 04 00 00 00 00 00 90 00 A8 [00:01:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EB 13 03 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D4 01 00 00 5E 04 04 00 D4 01 00 00 57 04 04 00 D6 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:01:46]wFMCommunicate OK [00:01:46]SAM_PROTO_GetFieldsCounters done [00:01:46]requested_item shift.num is exist - process it [00:01:46]requested_item shift.opened is exist - process it [00:01:46]req_shift_opened [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 5C 06 80 13 01 00 00 00 00 00 DF [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 5C 06 00 09 00 00 00 00 00 00 00 00 00 00 90 00 EA [00:01:46]RAPDU: 09 00 00 00 00 00 00 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]req_shift_opened done [00:01:46]requested_item shift.open_date is exist - process it [00:01:46]req_shift_open_date [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 5D 06 80 13 01 00 00 00 00 00 E0 [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 5D 06 00 09 00 00 00 00 00 00 00 00 00 00 90 00 EB [00:01:46]RAPDU: 09 00 00 00 00 00 00 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]req_shift_open_date done [00:01:46]produce_requested_data done [00:01:46]produce_requested_data return {"kkm.sn":"0300000109","kkm.ver":"001","fm.sn":"0000000000871756","fd.num":201707,"shift.num":543,"shift.opened":0,"shift.open_date":0} [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":{"kkm.sn":"0300000109","kkm.ver":"001","fm.sn":"0000000000871756","fd.num":201707,"shift.num":543,"shift.opened":0,"shift.open_date":0}}} [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 3066936676 created [00:01:46]Thread 3067080036 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.63.195:8080 [00:01:46]Content-Length: 331 [00:01:46]Content-Type: application/json [00:01:46] [00:01:46]POST finish read [00:01:46]Found Content-Length = 331 [00:01:46]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:46]execute_script... [00:01:47]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:47]POST & json_proto [00:01:47]process_json_proto [00:01:47]json parsed OK: [00:01:47]protocol is kg_v1.0 [00:01:47]action value=get_value [00:01:47]process_action get_value [00:01:47]cmd_get_value [00:01:47]process_action get_value done [00:01:47]requested_data is exist [00:01:47]produce_requested_data [00:01:47]requested_item fm.sale.total is exist - process it [00:01:47]SAM_PROTO_GetFMData [00:01:47]wFMCommunicate request_size=4 [00:01:47]MH_SAM_APDU [00:01:47]CAPDU: 80 13 03 00 [00:01:47]Write to MH i2c: E2 08 00 5E 06 80 13 03 00 00 00 00 00 E3 [00:01:47]Write i2c OK [00:01:47]MH_I2C_Read... [00:01:47]*** iso7816_exchange 80 13 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 5E 06 00 C4 04 85 04 C0 04 6E 04 04 00 AC 0F 03 00 69 04 A3 00 6F 04 04 00 87 0F 03 00 B1 04 05 00 EA CC FD AC 03 70 04 05 00 3C B1 FD 4D 03 72 04 04 00 AE 1B 00 5F 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 E1 E5 F6 63 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 69 66 54 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 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 E8 [00:01:47]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 AC 0F 03 00 69 04 A3 00 6F 04 04 00 87 0F 03 00 B1 04 05 00 EA CC FD AC 03 70 04 05 00 3C B1 FD 4D 03 72 04 04 00 AE 1B 00 5F 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 E1 E5 F6 63 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 69 66 54 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 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 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 17 00 00 [00:01:47]Write to MH i2c: E2 08 00 5F 06 80 17 00 00 00 00 00 00 E5 [00:01:47]Write i2c OK [00:01:47]MH_I2C_Read... [00:01:47]*** iso7816_exchange 80 17 00 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 5F 06 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 EC [00:01:47]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:01:47]wFMCommunicate OK [00:01:47]wFMCommunicate request_size=4 [00:01:47]MH_SAM_APDU [00:01:47]CAPDU: 80 17 00 00 [00:01:47]Write to MH i2c: E2 08 00 60 06 80 17 00 00 00 00 00 00 E6 [00:01:47]Write i2c OK [00:01:47]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 60 06 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 FB [00:01:48]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [00:01:48]wFMCommunicate OK [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 61 06 80 17 00 00 00 00 00 00 E7 [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 61 06 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 5F [00:01:48]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:01:48]wFMCommunicate OK [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 62 06 80 17 00 00 00 00 00 00 E8 [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 = 222! [00:01:48]Read from MH i2c: E2 [00:01:48]MH_I2C_Read... [00:01:48]Read from MH i2c: E2 E1 00 [00:01:48]MH_I2C_Read... [00:01:48]Read from MH i2c: E2 E1 00 62 06 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D6 [00:01:48]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:01:48]wFMCommunicate OK [00:01:48]SAM_PROTO_GetFMData done [00:01:48]requested_item fm.sale_refund.total is exist - process it [00:01:48]requested_item fm.buy.total is exist - process it [00:01:48]requested_item shift.sale.total is exist - process it [00:01:48]SAM_PROTO_GetShiftData [00:01:48]wFMCommunicate request_size=4 [00:01:48]MH_SAM_APDU [00:01:48]CAPDU: 80 13 02 00 [00:01:48]Write to MH i2c: E2 08 00 63 06 80 13 02 00 00 00 00 00 E7 [00:01:48]Write i2c OK [00:01:48]MH_I2C_Read... [00:01:49]*** iso7816_exchange 80 13 02 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 63 06 00 B1 04 AA 04 AD 04 6E 04 04 00 D4 01 00 00 69 04 9E 00 6F 04 04 00 D4 01 00 00 B1 04 04 00 43 C2 54 02 70 04 04 00 A0 80 0F 02 72 04 03 00 A3 41 45 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 45 64 3F 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 58 48 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AA [00:01:49]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 D4 01 00 00 69 04 9E 00 6F 04 04 00 D4 01 00 00 B1 04 04 00 43 C2 54 02 70 04 04 00 A0 80 0F 02 72 04 03 00 A3 41 45 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 45 64 3F 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 58 48 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:01:49]wFMCommunicate OK [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 64 06 80 17 00 00 00 00 00 00 EA [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 64 06 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 03 [00:01:49]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:01:49]wFMCommunicate OK [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 65 06 80 17 00 00 00 00 00 00 EB [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 65 06 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A4 [00:01:49]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:01:49]wFMCommunicate OK [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 66 06 80 17 00 00 00 00 00 00 EC [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 66 06 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 90 00 64 [00:01:49]RAPDU: 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 90 00 [00:01:50]wFMCommunicate OK [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 67 06 80 17 00 00 00 00 00 00 ED [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 = 203! [00:01:50]Read from MH i2c: E2 [00:01:50]MH_I2C_Read... [00:01:50]Read from MH i2c: E2 CE 00 [00:01:50]MH_I2C_Read... [00:01:50]Read from MH i2c: E2 CE 00 67 06 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D2 [00:01:50]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:50]wFMCommunicate OK [00:01:50]SAM_PROTO_GetShiftData done [00:01:50]requested_item shift.sale.total_cash is exist - process it [00:01:50]requested_item shift.sale_refund.total is exist - process it [00:01:50]requested_item shift.sale_refund.total_cash is exist - process it [00:01:50]requested_item shift.buy.total is exist - process it [00:01:50]requested_item shift.buy.total_cash is exist - process it [00:01:50]produce_requested_data done [00:01:50]produce_requested_data return {"fm.sale.total":157872161.06,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":391091.87,"shift.sale.total_cash":345704.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:01:50]process_action_free get_value [00:01:50]json_value_free [00:01:50]json_value_free done [00:01:50]process_json_proto returns [00:01:50]Send response to host [00:01:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":157872161.06,"fm.sale_refund.total":98929.00,"fm.buy.total":0.00,"shift.sale.total":391091.87,"shift.sale.total_cash":345704.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:01:50]free response buf [00:01:50]execute_script done [00:01:50]execute_script returns [00:01:50]free content buf [00:01:50]Sock 9.Close socket [00:01:50]Sock 9.Thread stoped [00:01:50]accept exits with 8 [00:01:50]New connection [00:01:50]New thread 3067080036 created [00:01:50]Thread 3066936676 joined [00:01:50]Waiting for new connection... [00:01:50] Sock 8.Parse request [00:01:50]Sock 8.Check first char [00:01:50]Sock 8.First char is OK [00:01:50]request: POST /json_proto HTTP/1.0 [00:01:50]Method: POST [00:01:50]URL: /json_proto [00:01:50]Method is POST - this is cgi request [00:01:50]url: /json_proto [00:01:50]query_string will be loaded in cgi processing [00:01:50]execute_cgi json_proto POST (null) [00:01:50]execute_cgi path=json_proto method=POST [00:01:50]POST find Content-Length [00:01:50]Host: 172.17.63.195:8080 [00:01:50]Content-Length: 265 [00:01:50]Content-Type: application/json [00:01:50] [00:01:50]POST finish read [00:01:50]Found Content-Length = 265 [00:01:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u0448\u0438\u0440\u0431\u0435\u043A\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:50]execute_script... [00:01:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u0448\u0438\u0440\u0431\u0435\u043A\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:50]POST & json_proto [00:01:50]process_json_proto [00:01:50]json parsed OK: [00:01:50]protocol is kg_v1.0 [00:01:50]action value=open_shift [00:01:50]process_action open_shift [00:01:50]cmd_open_shift [00:01:50]MH_GetDate [00:01:50]Write to MH i2c: F0 00 00 68 06 5D [00:01:50]Write i2c OK [00:01:50]MH_I2C_Read... [00:01:50]Read from MH i2c: F0 [00:01:50]MH_I2C_Read... [00:01:50]Read from MH i2c: F0 09 00 [00:01:50]MH_I2C_Read... [00:01:50]Read from MH i2c: F0 09 00 68 06 00 EF 82 1D 67 68 46 19 67 89 [00:01:50]GetLastDocTimeStamp 1729986958 [00:01:50]current date 1729987311 [00:01:50]FM_GetShiftState [00:01:50]SAM_PROTO_GetShiftState [00:01:50]wFMCommunicate request_size=4 [00:01:50]MH_SAM_APDU [00:01:50]CAPDU: 80 13 01 00 [00:01:50]Write to MH i2c: E2 08 00 69 06 80 13 01 00 00 00 00 00 EC [00:01:50]Write i2c OK [00:01:50]MH_I2C_Read... [00:01:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:50]Read from MH i2c: E2 [00:01:50]MH_I2C_Read... [00:01:50]Read from MH i2c: E2 0E 00 [00:01:50]MH_I2C_Read... [00:01:50]Read from MH i2c: E2 0E 00 69 06 00 09 00 00 00 00 00 00 00 00 00 00 90 00 F7 [00:01:50]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:01:50]wFMCommunicate OK [00:01:50]SAM_PROTO_GetShiftState done [00:01:50]FM_GetShiftState done [00:01:50]KKMCreateOpenShiftDocument [00:01:50]Load OK [00:01:50]Malloc new data [00:01:50]MH_GetDate [00:01:50]Write to MH i2c: F0 00 00 6A 06 5F [00:01:50]Write i2c OK [00:01:50]MH_I2C_Read... [00:01:50]Read from MH i2c: F0 [00:01:50]MH_I2C_Read... [00:01:50]Read from MH i2c: F0 09 00 [00:01:50]MH_I2C_Read... [00:01:50]Read from MH i2c: F0 09 00 6A 06 00 F0 82 1D 67 68 46 19 67 8C [00:01:50]Malloc new data [00:01:50]KKMCreateOpenShiftDocument OK [00:01:50]KKMSetOpenShiftData OK [00:01:50]ProcessDocumentItem done err = 0, tmpTLVsize=211 [00:01:50]tlvbuf is 0020A470 [00:01:50]KKMLoadAndSignOpenShiftData [00:01:50]SAM_PROTO_ProcessDocument [00:01:50]wFMCommunicate request_size=9 [00:01:50]MH_SAM_APDU [00:01:50]CAPDU: 80 15 01 00 04 02 00 D3 00 [00:01:50]Write to MH i2c: E2 0C 00 6B 06 80 15 01 00 04 00 02 00 D3 00 00 00 CD [00:01:50]Write i2c OK [00:01:50]MH_I2C_Read... [00:01:50]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:01:50]Read from MH i2c: E2 [00:01:50]MH_I2C_Read... [00:01:50]Read from MH i2c: E2 03 00 [00:01:50]MH_I2C_Read... [00:01:50]Read from MH i2c: E2 03 00 6B 06 00 90 00 E5 [00:01:50]RAPDU: 90 00 [00:01:50]wFMCommunicate OK [00:01:50]wFMCommunicate request_size=23 [00:01:50]MH_SAM_APDU [00:01:50]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:50]Write to MH i2c: E2 1A 00 6C 06 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 E7 [00:01:50]Write i2c OK [00:01:50]MH_I2C_Read... [00:01:50]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:01:50]Read from MH i2c: E2 [00:01:50]MH_I2C_Read... [00:01:50]Read from MH i2c: E2 03 00 [00:01:50]MH_I2C_Read... [00:01:50]Read from MH i2c: E2 03 00 6C 06 00 90 00 E6 [00:01:50]RAPDU: 90 00 [00:01:50]wFMCommunicate OK [00:01:50]wFMCommunicate request_size=32 [00:01:50]MH_SAM_APDU [00:01:50]CAPDU: 80 15 02 00 1B FD 03 17 00 D0 90 D1 88 D0 B8 D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 9D 2E 20 [00:01:50]Write to MH i2c: E2 23 00 6D 06 80 15 02 00 1B 00 FD 03 17 00 D0 90 D1 88 D0 B8 D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 9D 2E 20 00 00 4D [00:01:50]Write i2c OK [00:01:50]MH_I2C_Read... [00:01:50]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:01:50]Read from MH i2c: E2 [00:01:50]MH_I2C_Read... [00:01:50]Read from MH i2c: E2 03 00 [00:01:50]MH_I2C_Read... [00:01:50]Read from MH i2c: E2 03 00 6D 06 00 90 00 E7 [00:01:50]RAPDU: 90 00 [00:01:50]wFMCommunicate OK [00:01:50]wFMCommunicate request_size=97 [00:01:50]MH_SAM_APDU [00:01:50]CAPDU: 80 15 02 00 5C F1 03 58 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 A2 D0 B0 D0 BC 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2D D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 34 31 2E 34 36 36 36 32 39 2C 20 37 31 2E 35 39 39 30 38 35 [00:01:50]Write to MH i2c: E2 64 00 6E 06 80 15 02 00 5C 00 F1 03 58 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 A2 D0 B0 D0 BC 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2D D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 34 31 2E 34 36 36 36 32 39 2C 20 37 31 2E 35 39 39 30 38 35 00 00 EF [00:01:50]OFD Sender: No OFD packet to send [00:01:50]Write i2c OK [00:01:50]MH_I2C_Read... [00:01:50]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:01:50]Read from MH i2c: E2 [00:01:50]MH_I2C_Read... [00:01:50]Read from MH i2c: E2 03 00 [00:01:50]MH_I2C_Read... [00:01:50]Read from MH i2c: E2 03 00 6E 06 00 90 00 E8 [00:01:50]RAPDU: 90 00 [00:01:50]wFMCommunicate OK [00:01:50]wFMCommunicate request_size=51 [00:01:50]MH_SAM_APDU [00:01:50]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 31 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:01:50]Write to MH i2c: E2 36 00 6F 06 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 31 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 A0 [00:01:50]Write i2c OK [00:01:50]MH_I2C_Read... [00:01:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:01:51]Read from MH i2c: E2 [00:01:51]MH_I2C_Read... [00:01:51]Read from MH i2c: E2 03 00 [00:01:51]MH_I2C_Read... [00:01:51]Read from MH i2c: E2 03 00 6F 06 00 90 00 E9 [00:01:51]RAPDU: 90 00 [00:01:51]wFMCommunicate OK [00:01:51]wFMCommunicate request_size=13 [00:01:51]MH_SAM_APDU [00:01:51]CAPDU: 80 15 02 00 08 F4 03 04 00 F0 82 1D 67 [00:01:51]Write to MH i2c: E2 10 00 70 06 80 15 02 00 08 00 F4 03 04 00 F0 82 1D 67 00 00 F7 [00:01:51]Write i2c OK [00:01:51]MH_I2C_Read... [00:01:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:01:51]Read from MH i2c: E2 [00:01:51]MH_I2C_Read... [00:01:51]Read from MH i2c: E2 03 00 [00:01:51]MH_I2C_Read... [00:01:51]Read from MH i2c: E2 03 00 70 06 00 90 00 EA [00:01:51]RAPDU: 90 00 [00:01:51]wFMCommunicate OK [00:01:51]wFMCommunicate request_size=25 [00:01:51]MH_SAM_APDU [00:01:51]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 [00:01:51]Write to MH i2c: E2 1C 00 71 06 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 00 00 5F [00:01:51]Write i2c OK [00:01:51]MH_I2C_Read... [00:01:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:01:51]Read from MH i2c: E2 [00:01:51]MH_I2C_Read... [00:01:51]Read from MH i2c: E2 03 00 [00:01:51]MH_I2C_Read... [00:01:51]Read from MH i2c: E2 03 00 71 06 00 90 00 EB [00:01:51]RAPDU: 90 00 [00:01:51]wFMCommunicate OK [00:01:51]wFMCommunicate request_size=4 [00:01:51]MH_SAM_APDU [00:01:51]CAPDU: 80 15 03 00 [00:01:51]Write to MH i2c: E2 08 00 72 06 80 15 03 00 00 00 00 00 F9 [00:01:51]Write i2c OK [00:01:51]MH_I2C_Read... [00:01:51]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:01:51]Read from MH i2c: E2 [00:01:51]MH_I2C_Read... [00:01:51]Read from MH i2c: E2 38 00 [00:01:51]MH_I2C_Read... [00:01:51]Read from MH i2c: E2 38 00 72 06 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EC 13 03 00 0E 04 04 00 20 02 00 00 35 04 06 00 AF 8E DB 44 52 C7 90 00 60 [00:01:51]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EC 13 03 00 0E 04 04 00 20 02 00 00 35 04 06 00 AF 8E DB 44 52 C7 90 00 [00:01:51]wFMCommunicate OK [00:01:51]SAM_PROTO_ProcessDocument answer len = 51 [00:01:51]SAM_PROTO_ProcessDocument done [00:01:51]SetTLVBufToDocument [00:01:51]Processing tag 1209 (04B9) [00:01:51]Malloc new data [00:01:51]Processing tag 1041 (0411) [00:01:51]Processing tag 1040 (0410) [00:01:51]Malloc new data [00:01:51]Processing tag 1038 (040E) [00:01:51]Malloc new data [00:01:51]Processing tag 1077 (0435) [00:01:51]Malloc new data [00:01:51]SetTLVBufToDocument err=0 [00:01:51]KKMLoadAndSignOpenShiftData store KKM data [00:01:51]KKMLoadAndSignOpenShiftData err=0 [00:01:51]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Аширбеков Н. Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 Место: АЗС № 171 "Партнер Нефть" 27.10.2024 00:01 Смена: 544 РНМ: 0000000000091777 ЗНМ: 0300000109 ФД: 201708 ФМ: 0000000000871756 ФПД: 193028098904775 [00:01:51]StoreToDocumentArchive [00:01:51]shift 544 fd 201708 [00:01:51]Create dir for shift 0544 [00:01:51]save to /storage/0544/doc_00201708 [00:01:51]save last doc name /storage/0544/doc_00201708 to /storage/kkm_last_doc_name [00:01:51]save OK [00:01:51]Clear old archive folders... [00:01:51]Remove dir /storage/0543 [00:01:51]opendir ok [00:01:51]file . [00:01:51]file .. [00:01:51]file doc_00201238 [00:01:51]remove file /storage/0543/doc_00201238 [00:01:51]file doc_00201239 [00:01:51]remove file /storage/0543/doc_00201239 [00:01:51]file doc_00201240 [00:01:51]remove file /storage/0543/doc_00201240 [00:01:51]file doc_00201241 [00:01:51]remove file /storage/0543/doc_00201241 [00:01:51]file doc_00201242 [00:01:51]remove file /storage/0543/doc_00201242 [00:01:51]file doc_00201243 [00:01:51]remove file /storage/0543/doc_00201243 [00:01:51]file doc_00201244 [00:01:51]remove file /storage/0543/doc_00201244 [00:01:51]file doc_00201245 [00:01:51]remove file /storage/0543/doc_00201245 [00:01:51]file doc_00201246 [00:01:51]remove file /storage/0543/doc_00201246 [00:01:51]file doc_00201247 [00:01:51]remove file /storage/0543/doc_00201247 [00:01:51]file doc_00201248 [00:01:51]remove file /storage/0543/doc_00201248 [00:01:51]file doc_00201249 [00:01:51]remove file /storage/0543/doc_00201249 [00:01:51]file doc_00201250 [00:01:51]remove file /storage/0543/doc_00201250 [00:01:51]file doc_00201251 [00:01:51]remove file /storage/0543/doc_00201251 [00:01:51]file doc_00201252 [00:01:51]remove file /storage/0543/doc_00201252 [00:01:51]file doc_00201253 [00:01:51]remove file /storage/0543/doc_00201253 [00:01:51]file doc_00201254 [00:01:51]remove file /storage/0543/doc_00201254 [00:01:51]file doc_00201255 [00:01:51]remove file /storage/0543/doc_00201255 [00:01:51]file doc_00201256 [00:01:51]remove file /storage/0543/doc_00201256 [00:01:51]file doc_00201257 [00:01:51]remove file /storage/0543/doc_00201257 [00:01:51]file doc_00201258 [00:01:51]remove file /storage/0543/doc_00201258 [00:01:51]file doc_00201259 [00:01:51]remove file /storage/0543/doc_00201259 [00:01:51]file doc_00201260 [00:01:51]remove file /storage/0543/doc_00201260 [00:01:51]file doc_00201261 [00:01:51]remove file /storage/0543/doc_00201261 [00:01:51]file doc_00201262 [00:01:51]remove file /storage/0543/doc_00201262 [00:01:51]file doc_00201263 [00:01:51]remove file /storage/0543/doc_00201263 [00:01:51]file doc_00201264 [00:01:51]remove file /storage/0543/doc_00201264 [00:01:51]file doc_00201265 [00:01:51]remove file /storage/0543/doc_00201265 [00:01:51]file doc_00201266 [00:01:51]remove file /storage/0543/doc_00201266 [00:01:51]file doc_00201267 [00:01:51]remove file /storage/0543/doc_00201267 [00:01:51]file doc_00201268 [00:01:51]remove file /storage/0543/doc_00201268 [00:01:51]file doc_00201269 [00:01:51]remove file /storage/0543/doc_00201269 [00:01:51]file doc_00201270 [00:01:51]remove file /storage/0543/doc_00201270 [00:01:51]file doc_00201271 [00:01:51]remove file /storage/0543/doc_00201271 [00:01:51]file doc_00201272 [00:01:51]remove file /storage/0543/doc_00201272 [00:01:51]file doc_00201273 [00:01:51]remove file /storage/0543/doc_00201273 [00:01:51]file doc_00201274 [00:01:51]remove file /storage/0543/doc_00201274 [00:01:51]file doc_00201275 [00:01:51]remove file /storage/0543/doc_00201275 [00:01:51]file doc_00201276 [00:01:51]remove file /storage/0543/doc_00201276 [00:01:51]file doc_00201277 [00:01:51]remove file /storage/0543/doc_00201277 [00:01:51]file doc_00201278 [00:01:51]remove file /storage/0543/doc_00201278 [00:01:51]file doc_00201279 [00:01:51]remove file /storage/0543/doc_00201279 [00:01:51]file doc_00201280 [00:01:51]remove file /storage/0543/doc_00201280 [00:01:51]file doc_00201281 [00:01:51]remove file /storage/0543/doc_00201281 [00:01:51]file doc_00201282 [00:01:51]remove file /storage/0543/doc_00201282 [00:01:51]file doc_00201283 [00:01:51]remove file /storage/0543/doc_00201283 [00:01:51]file doc_00201284 [00:01:51]remove file /storage/0543/doc_00201284 [00:01:51]file doc_00201285 [00:01:51]remove file /storage/0543/doc_00201285 [00:01:51]file doc_00201286 [00:01:51]remove file /storage/0543/doc_00201286 [00:01:51]file doc_00201287 [00:01:51]remove file /storage/0543/doc_00201287 [00:01:51]file doc_00201288 [00:01:51]remove file /storage/0543/doc_00201288 [00:01:51]file doc_00201289 [00:01:51]remove file /storage/0543/doc_00201289 [00:01:51]file doc_00201290 [00:01:51]remove file /storage/0543/doc_00201290 [00:01:51]file doc_00201291 [00:01:51]remove file /storage/0543/doc_00201291 [00:01:51]file doc_00201292 [00:01:51]remove file /storage/0543/doc_00201292 [00:01:51]file doc_00201293 [00:01:51]remove file /storage/0543/doc_00201293 [00:01:51]file doc_00201294 [00:01:51]remove file /storage/0543/doc_00201294 [00:01:51]file doc_00201295 [00:01:51]remove file /storage/0543/doc_00201295 [00:01:51]file doc_00201296 [00:01:51]remove file /storage/0543/doc_00201296 [00:01:51]file doc_00201297 [00:01:51]remove file /storage/0543/doc_00201297 [00:01:51]file doc_00201298 [00:01:51]remove file /storage/0543/doc_00201298 [00:01:51]file doc_00201299 [00:01:51]remove file /storage/0543/doc_00201299 [00:01:51]file doc_00201300 [00:01:51]remove file /storage/0543/doc_00201300 [00:01:51]file doc_00201301 [00:01:51]remove file /storage/0543/doc_00201301 [00:01:51]file doc_00201302 [00:01:51]remove file /storage/0543/doc_00201302 [00:01:51]file doc_00201303 [00:01:51]remove file /storage/0543/doc_00201303 [00:01:51]file doc_00201304 [00:01:51]remove file /storage/0543/doc_00201304 [00:01:51]file doc_00201305 [00:01:51]remove file /storage/0543/doc_00201305 [00:01:51]file doc_00201306 [00:01:51]remove file /storage/0543/doc_00201306 [00:01:51]file doc_00201307 [00:01:51]remove file /storage/0543/doc_00201307 [00:01:51]file doc_00201308 [00:01:51]remove file /storage/0543/doc_00201308 [00:01:51]file doc_00201309 [00:01:51]remove file /storage/0543/doc_00201309 [00:01:51]file doc_00201310 [00:01:51]remove file /storage/0543/doc_00201310 [00:01:51]file doc_00201311 [00:01:51]remove file /storage/0543/doc_00201311 [00:01:51]file doc_00201312 [00:01:51]remove file /storage/0543/doc_00201312 [00:01:51]file doc_00201313 [00:01:51]remove file /storage/0543/doc_00201313 [00:01:51]file doc_00201314 [00:01:51]remove file /storage/0543/doc_00201314 [00:01:51]file doc_00201315 [00:01:51]remove file /storage/0543/doc_00201315 [00:01:51]file doc_00201316 [00:01:51]remove file /storage/0543/doc_00201316 [00:01:51]file doc_00201317 [00:01:51]remove file /storage/0543/doc_00201317 [00:01:51]file doc_00201318 [00:01:51]remove file /storage/0543/doc_00201318 [00:01:51]file doc_00201319 [00:01:51]remove file /storage/0543/doc_00201319 [00:01:51]file doc_00201320 [00:01:51]remove file /storage/0543/doc_00201320 [00:01:51]file doc_00201321 [00:01:51]remove file /storage/0543/doc_00201321 [00:01:51]file doc_00201322 [00:01:51]remove file /storage/0543/doc_00201322 [00:01:51]file doc_00201323 [00:01:51]remove file /storage/0543/doc_00201323 [00:01:51]file doc_00201324 [00:01:51]remove file /storage/0543/doc_00201324 [00:01:51]file doc_00201325 [00:01:51]remove file /storage/0543/doc_00201325 [00:01:51]file doc_00201326 [00:01:51]remove file /storage/0543/doc_00201326 [00:01:51]file doc_00201327 [00:01:51]remove file /storage/0543/doc_00201327 [00:01:51]file doc_00201328 [00:01:51]remove file /storage/0543/doc_00201328 [00:01:51]file doc_00201329 [00:01:51]remove file /storage/0543/doc_00201329 [00:01:51]file doc_00201330 [00:01:51]remove file /storage/0543/doc_00201330 [00:01:51]file doc_00201331 [00:01:51]remove file /storage/0543/doc_00201331 [00:01:51]file doc_00201332 [00:01:51]remove file /storage/0543/doc_00201332 [00:01:51]file doc_00201333 [00:01:51]remove file /storage/0543/doc_00201333 [00:01:51]file doc_00201334 [00:01:51]remove file /storage/0543/doc_00201334 [00:01:51]file doc_00201335 [00:01:51]remove file /storage/0543/doc_00201335 [00:01:52]file doc_00201336 [00:01:52]remove file /storage/0543/doc_00201336 [00:01:52]file doc_00201337 [00:01:52]remove file /storage/0543/doc_00201337 [00:01:52]file doc_00201338 [00:01:52]remove file /storage/0543/doc_00201338 [00:01:52]file doc_00201339 [00:01:52]remove file /storage/0543/doc_00201339 [00:01:52]file doc_00201340 [00:01:52]remove file /storage/0543/doc_00201340 [00:01:52]file doc_00201341 [00:01:52]remove file /storage/0543/doc_00201341 [00:01:52]file doc_00201342 [00:01:52]remove file /storage/0543/doc_00201342 [00:01:52]file doc_00201343 [00:01:52]remove file /storage/0543/doc_00201343 [00:01:52]file doc_00201344 [00:01:52]remove file /storage/0543/doc_00201344 [00:01:52]file doc_00201345 [00:01:52]remove file /storage/0543/doc_00201345 [00:01:52]file doc_00201346 [00:01:52]remove file /storage/0543/doc_00201346 [00:01:52]file doc_00201347 [00:01:52]remove file /storage/0543/doc_00201347 [00:01:52]file doc_00201348 [00:01:52]remove file /storage/0543/doc_00201348 [00:01:52]file doc_00201349 [00:01:52]remove file /storage/0543/doc_00201349 [00:01:52]file doc_00201350 [00:01:52]remove file /storage/0543/doc_00201350 [00:01:52]file doc_00201351 [00:01:52]remove file /storage/0543/doc_00201351 [00:01:52]file doc_00201352 [00:01:52]remove file /storage/0543/doc_00201352 [00:01:52]file doc_00201353 [00:01:52]remove file /storage/0543/doc_00201353 [00:01:52]file doc_00201354 [00:01:52]remove file /storage/0543/doc_00201354 [00:01:52]file doc_00201355 [00:01:52]remove file /storage/0543/doc_00201355 [00:01:52]file doc_00201356 [00:01:52]remove file /storage/0543/doc_00201356 [00:01:52]file doc_00201357 [00:01:52]remove file /storage/0543/doc_00201357 [00:01:52]file doc_00201358 [00:01:52]remove file /storage/0543/doc_00201358 [00:01:52]file doc_00201359 [00:01:52]remove file /storage/0543/doc_00201359 [00:01:52]file doc_00201360 [00:01:52]remove file /storage/0543/doc_00201360 [00:01:52]file doc_00201361 [00:01:52]remove file /storage/0543/doc_00201361 [00:01:52]file doc_00201362 [00:01:52]remove file /storage/0543/doc_00201362 [00:01:52]file doc_00201363 [00:01:52]remove file /storage/0543/doc_00201363 [00:01:52]file doc_00201364 [00:01:52]remove file /storage/0543/doc_00201364 [00:01:52]file doc_00201365 [00:01:52]remove file /storage/0543/doc_00201365 [00:01:52]file doc_00201366 [00:01:52]remove file /storage/0543/doc_00201366 [00:01:52]file doc_00201367 [00:01:52]remove file /storage/0543/doc_00201367 [00:01:52]file doc_00201368 [00:01:52]remove file /storage/0543/doc_00201368 [00:01:52]file doc_00201369 [00:01:52]remove file /storage/0543/doc_00201369 [00:01:52]file doc_00201370 [00:01:52]remove file /storage/0543/doc_00201370 [00:01:52]file doc_00201371 [00:01:52]remove file /storage/0543/doc_00201371 [00:01:52]file doc_00201372 [00:01:52]remove file /storage/0543/doc_00201372 [00:01:52]file doc_00201373 [00:01:52]remove file /storage/0543/doc_00201373 [00:01:52]file doc_00201374 [00:01:52]remove file /storage/0543/doc_00201374 [00:01:52]file doc_00201375 [00:01:52]remove file /storage/0543/doc_00201375 [00:01:52]file doc_00201376 [00:01:52]remove file /storage/0543/doc_00201376 [00:01:52]file doc_00201377 [00:01:52]remove file /storage/0543/doc_00201377 [00:01:52]file doc_00201378 [00:01:52]remove file /storage/0543/doc_00201378 [00:01:52]file doc_00201379 [00:01:52]remove file /storage/0543/doc_00201379 [00:01:52]file doc_00201380 [00:01:52]remove file /storage/0543/doc_00201380 [00:01:52]file doc_00201381 [00:01:52]remove file /storage/0543/doc_00201381 [00:01:52]file doc_00201382 [00:01:52]remove file /storage/0543/doc_00201382 [00:01:52]file doc_00201383 [00:01:52]remove file /storage/0543/doc_00201383 [00:01:52]file doc_00201384 [00:01:52]remove file /storage/0543/doc_00201384 [00:01:52]file doc_00201385 [00:01:52]remove file /storage/0543/doc_00201385 [00:01:52]file doc_00201386 [00:01:52]remove file /storage/0543/doc_00201386 [00:01:52]file doc_00201387 [00:01:52]remove file /storage/0543/doc_00201387 [00:01:52]file doc_00201388 [00:01:52]remove file /storage/0543/doc_00201388 [00:01:52]file doc_00201389 [00:01:52]remove file /storage/0543/doc_00201389 [00:01:52]file doc_00201390 [00:01:52]remove file /storage/0543/doc_00201390 [00:01:52]file doc_00201391 [00:01:52]remove file /storage/0543/doc_00201391 [00:01:52]file doc_00201392 [00:01:52]remove file /storage/0543/doc_00201392 [00:01:52]file doc_00201393 [00:01:52]remove file /storage/0543/doc_00201393 [00:01:52]file doc_00201394 [00:01:52]remove file /storage/0543/doc_00201394 [00:01:52]file doc_00201395 [00:01:52]remove file /storage/0543/doc_00201395 [00:01:52]file doc_00201396 [00:01:52]remove file /storage/0543/doc_00201396 [00:01:52]file doc_00201397 [00:01:52]remove file /storage/0543/doc_00201397 [00:01:52]file doc_00201398 [00:01:52]remove file /storage/0543/doc_00201398 [00:01:52]file doc_00201399 [00:01:52]remove file /storage/0543/doc_00201399 [00:01:52]file doc_00201400 [00:01:52]remove file /storage/0543/doc_00201400 [00:01:52]file doc_00201401 [00:01:52]remove file /storage/0543/doc_00201401 [00:01:52]file doc_00201402 [00:01:52]remove file /storage/0543/doc_00201402 [00:01:52]file doc_00201403 [00:01:52]remove file /storage/0543/doc_00201403 [00:01:52]file doc_00201404 [00:01:52]remove file /storage/0543/doc_00201404 [00:01:52]file doc_00201405 [00:01:52]remove file /storage/0543/doc_00201405 [00:01:52]file doc_00201406 [00:01:52]remove file /storage/0543/doc_00201406 [00:01:52]file doc_00201407 [00:01:52]remove file /storage/0543/doc_00201407 [00:01:52]file doc_00201408 [00:01:52]remove file /storage/0543/doc_00201408 [00:01:52]file doc_00201409 [00:01:52]remove file /storage/0543/doc_00201409 [00:01:52]file doc_00201410 [00:01:52]remove file /storage/0543/doc_00201410 [00:01:52]file doc_00201411 [00:01:52]remove file /storage/0543/doc_00201411 [00:01:52]file doc_00201412 [00:01:52]remove file /storage/0543/doc_00201412 [00:01:52]file doc_00201413 [00:01:52]remove file /storage/0543/doc_00201413 [00:01:52]file doc_00201414 [00:01:52]remove file /storage/0543/doc_00201414 [00:01:52]file doc_00201415 [00:01:52]remove file /storage/0543/doc_00201415 [00:01:52]file doc_00201416 [00:01:52]remove file /storage/0543/doc_00201416 [00:01:52]file doc_00201417 [00:01:52]remove file /storage/0543/doc_00201417 [00:01:52]file doc_00201418 [00:01:52]remove file /storage/0543/doc_00201418 [00:01:52]file doc_00201419 [00:01:52]remove file /storage/0543/doc_00201419 [00:01:52]file doc_00201420 [00:01:52]remove file /storage/0543/doc_00201420 [00:01:52]file doc_00201421 [00:01:52]remove file /storage/0543/doc_00201421 [00:01:52]file doc_00201422 [00:01:52]remove file /storage/0543/doc_00201422 [00:01:52]file doc_00201423 [00:01:52]remove file /storage/0543/doc_00201423 [00:01:52]file doc_00201424 [00:01:52]remove file /storage/0543/doc_00201424 [00:01:52]file doc_00201425 [00:01:52]remove file /storage/0543/doc_00201425 [00:01:52]file doc_00201426 [00:01:52]remove file /storage/0543/doc_00201426 [00:01:52]file doc_00201427 [00:01:52]remove file /storage/0543/doc_00201427 [00:01:52]file doc_00201428 [00:01:52]remove file /storage/0543/doc_00201428 [00:01:52]file doc_00201429 [00:01:52]remove file /storage/0543/doc_00201429 [00:01:52]file doc_00201430 [00:01:52]remove file /storage/0543/doc_00201430 [00:01:52]file doc_00201431 [00:01:52]remove file /storage/0543/doc_00201431 [00:01:52]file doc_00201432 [00:01:52]remove file /storage/0543/doc_00201432 [00:01:52]file doc_00201433 [00:01:52]remove file /storage/0543/doc_00201433 [00:01:52]file doc_00201434 [00:01:52]remove file /storage/0543/doc_00201434 [00:01:52]file doc_00201435 [00:01:52]remove file /storage/0543/doc_00201435 [00:01:52]file doc_00201436 [00:01:52]remove file /storage/0543/doc_00201436 [00:01:52]file doc_00201437 [00:01:52]remove file /storage/0543/doc_00201437 [00:01:52]file doc_00201438 [00:01:52]remove file /storage/0543/doc_00201438 [00:01:52]file doc_00201439 [00:01:52]remove file /storage/0543/doc_00201439 [00:01:52]file doc_00201440 [00:01:52]remove file /storage/0543/doc_00201440 [00:01:52]file doc_00201441 [00:01:52]remove file /storage/0543/doc_00201441 [00:01:52]file doc_00201442 [00:01:52]remove file /storage/0543/doc_00201442 [00:01:52]file doc_00201443 [00:01:52]remove file /storage/0543/doc_00201443 [00:01:52]file doc_00201444 [00:01:52]remove file /storage/0543/doc_00201444 [00:01:52]file doc_00201445 [00:01:52]remove file /storage/0543/doc_00201445 [00:01:52]file doc_00201446 [00:01:52]remove file /storage/0543/doc_00201446 [00:01:52]file doc_00201447 [00:01:52]remove file /storage/0543/doc_00201447 [00:01:52]file doc_00201448 [00:01:52]remove file /storage/0543/doc_00201448 [00:01:52]file doc_00201449 [00:01:52]remove file /storage/0543/doc_00201449 [00:01:52]file doc_00201450 [00:01:52]remove file /storage/0543/doc_00201450 [00:01:52]file doc_00201451 [00:01:52]remove file /storage/0543/doc_00201451 [00:01:52]file doc_00201452 [00:01:52]remove file /storage/0543/doc_00201452 [00:01:52]file doc_00201453 [00:01:52]remove file /storage/0543/doc_00201453 [00:01:52]file doc_00201454 [00:01:52]remove file /storage/0543/doc_00201454 [00:01:52]file doc_00201455 [00:01:52]remove file /storage/0543/doc_00201455 [00:01:52]file doc_00201456 [00:01:52]remove file /storage/0543/doc_00201456 [00:01:52]file doc_00201457 [00:01:52]remove file /storage/0543/doc_00201457 [00:01:52]file doc_00201458 [00:01:52]remove file /storage/0543/doc_00201458 [00:01:52]file doc_00201459 [00:01:52]remove file /storage/0543/doc_00201459 [00:01:52]file doc_00201460 [00:01:52]remove file /storage/0543/doc_00201460 [00:01:52]file doc_00201461 [00:01:52]remove file /storage/0543/doc_00201461 [00:01:52]file doc_00201462 [00:01:52]remove file /storage/0543/doc_00201462 [00:01:52]file doc_00201463 [00:01:52]remove file /storage/0543/doc_00201463 [00:01:52]file doc_00201464 [00:01:52]remove file /storage/0543/doc_00201464 [00:01:52]file doc_00201465 [00:01:52]remove file /storage/0543/doc_00201465 [00:01:52]file doc_00201466 [00:01:52]remove file /storage/0543/doc_00201466 [00:01:52]file doc_00201467 [00:01:52]remove file /storage/0543/doc_00201467 [00:01:52]file doc_00201468 [00:01:52]remove file /storage/0543/doc_00201468 [00:01:52]file doc_00201469 [00:01:52]remove file /storage/0543/doc_00201469 [00:01:52]file doc_00201470 [00:01:52]remove file /storage/0543/doc_00201470 [00:01:52]file doc_00201471 [00:01:52]remove file /storage/0543/doc_00201471 [00:01:52]file doc_00201472 [00:01:52]remove file /storage/0543/doc_00201472 [00:01:52]file doc_00201473 [00:01:52]remove file /storage/0543/doc_00201473 [00:01:52]file doc_00201474 [00:01:52]remove file /storage/0543/doc_00201474 [00:01:52]file doc_00201475 [00:01:52]remove file /storage/0543/doc_00201475 [00:01:52]file doc_00201476 [00:01:52]remove file /storage/0543/doc_00201476 [00:01:52]file doc_00201477 [00:01:52]remove file /storage/0543/doc_00201477 [00:01:52]file doc_00201478 [00:01:52]remove file /storage/0543/doc_00201478 [00:01:52]file doc_00201479 [00:01:52]remove file /storage/0543/doc_00201479 [00:01:52]file doc_00201480 [00:01:52]remove file /storage/0543/doc_00201480 [00:01:52]file doc_00201481 [00:01:52]remove file /storage/0543/doc_00201481 [00:01:52]file doc_00201482 [00:01:52]remove file /storage/0543/doc_00201482 [00:01:52]file doc_00201483 [00:01:52]remove file /storage/0543/doc_00201483 [00:01:52]file doc_00201484 [00:01:52]remove file /storage/0543/doc_00201484 [00:01:52]file doc_00201485 [00:01:52]remove file /storage/0543/doc_00201485 [00:01:52]file doc_00201486 [00:01:52]remove file /storage/0543/doc_00201486 [00:01:52]file doc_00201487 [00:01:52]remove file /storage/0543/doc_00201487 [00:01:52]file doc_00201488 [00:01:52]remove file /storage/0543/doc_00201488 [00:01:52]file doc_00201489 [00:01:52]remove file /storage/0543/doc_00201489 [00:01:52]file doc_00201490 [00:01:52]remove file /storage/0543/doc_00201490 [00:01:52]file doc_00201491 [00:01:52]remove file /storage/0543/doc_00201491 [00:01:52]file doc_00201492 [00:01:52]remove file /storage/0543/doc_00201492 [00:01:52]file doc_00201493 [00:01:52]remove file /storage/0543/doc_00201493 [00:01:52]file doc_00201494 [00:01:52]remove file /storage/0543/doc_00201494 [00:01:52]file doc_00201495 [00:01:52]remove file /storage/0543/doc_00201495 [00:01:52]file doc_00201496 [00:01:52]remove file /storage/0543/doc_00201496 [00:01:52]file doc_00201497 [00:01:52]remove file /storage/0543/doc_00201497 [00:01:52]file doc_00201498 [00:01:52]remove file /storage/0543/doc_00201498 [00:01:52]file doc_00201499 [00:01:52]remove file /storage/0543/doc_00201499 [00:01:52]file doc_00201500 [00:01:52]remove file /storage/0543/doc_00201500 [00:01:52]file doc_00201501 [00:01:52]remove file /storage/0543/doc_00201501 [00:01:52]file doc_00201502 [00:01:52]remove file /storage/0543/doc_00201502 [00:01:52]file doc_00201503 [00:01:52]remove file /storage/0543/doc_00201503 [00:01:52]file doc_00201504 [00:01:52]remove file /storage/0543/doc_00201504 [00:01:52]file doc_00201505 [00:01:52]remove file /storage/0543/doc_00201505 [00:01:52]file doc_00201506 [00:01:52]remove file /storage/0543/doc_00201506 [00:01:52]file doc_00201507 [00:01:52]remove file /storage/0543/doc_00201507 [00:01:52]file doc_00201508 [00:01:52]remove file /storage/0543/doc_00201508 [00:01:52]file doc_00201509 [00:01:52]remove file /storage/0543/doc_00201509 [00:01:52]file doc_00201510 [00:01:52]remove file /storage/0543/doc_00201510 [00:01:52]file doc_00201511 [00:01:52]remove file /storage/0543/doc_00201511 [00:01:52]file doc_00201512 [00:01:52]remove file /storage/0543/doc_00201512 [00:01:52]file doc_00201513 [00:01:52]remove file /storage/0543/doc_00201513 [00:01:52]file doc_00201514 [00:01:52]remove file /storage/0543/doc_00201514 [00:01:52]file doc_00201515 [00:01:52]remove file /storage/0543/doc_00201515 [00:01:52]file doc_00201516 [00:01:52]remove file /storage/0543/doc_00201516 [00:01:52]file doc_00201517 [00:01:52]remove file /storage/0543/doc_00201517 [00:01:52]file doc_00201518 [00:01:52]remove file /storage/0543/doc_00201518 [00:01:52]file doc_00201519 [00:01:52]remove file /storage/0543/doc_00201519 [00:01:52]file doc_00201520 [00:01:52]remove file /storage/0543/doc_00201520 [00:01:52]file doc_00201521 [00:01:52]remove file /storage/0543/doc_00201521 [00:01:52]file doc_00201522 [00:01:52]remove file /storage/0543/doc_00201522 [00:01:52]file doc_00201523 [00:01:52]remove file /storage/0543/doc_00201523 [00:01:52]file doc_00201524 [00:01:52]remove file /storage/0543/doc_00201524 [00:01:53]file doc_00201525 [00:01:53]remove file /storage/0543/doc_00201525 [00:01:53]file doc_00201526 [00:01:53]remove file /storage/0543/doc_00201526 [00:01:53]file doc_00201527 [00:01:53]remove file /storage/0543/doc_00201527 [00:01:53]file doc_00201528 [00:01:53]remove file /storage/0543/doc_00201528 [00:01:53]file doc_00201529 [00:01:53]remove file /storage/0543/doc_00201529 [00:01:53]file doc_00201530 [00:01:53]remove file /storage/0543/doc_00201530 [00:01:53]file doc_00201531 [00:01:53]remove file /storage/0543/doc_00201531 [00:01:53]file doc_00201532 [00:01:53]remove file /storage/0543/doc_00201532 [00:01:53]file doc_00201533 [00:01:53]remove file /storage/0543/doc_00201533 [00:01:53]file doc_00201534 [00:01:53]remove file /storage/0543/doc_00201534 [00:01:53]file doc_00201535 [00:01:53]remove file /storage/0543/doc_00201535 [00:01:53]file doc_00201536 [00:01:53]remove file /storage/0543/doc_00201536 [00:01:53]file doc_00201537 [00:01:53]remove file /storage/0543/doc_00201537 [00:01:53]file doc_00201538 [00:01:53]remove file /storage/0543/doc_00201538 [00:01:53]file doc_00201539 [00:01:53]remove file /storage/0543/doc_00201539 [00:01:53]file doc_00201540 [00:01:53]remove file /storage/0543/doc_00201540 [00:01:53]file doc_00201541 [00:01:53]remove file /storage/0543/doc_00201541 [00:01:53]file doc_00201542 [00:01:53]remove file /storage/0543/doc_00201542 [00:01:53]file doc_00201543 [00:01:53]remove file /storage/0543/doc_00201543 [00:01:53]file doc_00201544 [00:01:53]remove file /storage/0543/doc_00201544 [00:01:53]file doc_00201545 [00:01:53]remove file /storage/0543/doc_00201545 [00:01:53]file doc_00201546 [00:01:53]remove file /storage/0543/doc_00201546 [00:01:53]file doc_00201547 [00:01:53]remove file /storage/0543/doc_00201547 [00:01:53]file doc_00201548 [00:01:53]remove file /storage/0543/doc_00201548 [00:01:53]file doc_00201549 [00:01:53]remove file /storage/0543/doc_00201549 [00:01:53]file doc_00201550 [00:01:53]remove file /storage/0543/doc_00201550 [00:01:53]file doc_00201551 [00:01:53]remove file /storage/0543/doc_00201551 [00:01:53]file doc_00201552 [00:01:53]remove file /storage/0543/doc_00201552 [00:01:53]file doc_00201553 [00:01:53]remove file /storage/0543/doc_00201553 [00:01:53]file doc_00201554 [00:01:53]remove file /storage/0543/doc_00201554 [00:01:53]file doc_00201555 [00:01:53]remove file /storage/0543/doc_00201555 [00:01:53]file doc_00201556 [00:01:53]remove file /storage/0543/doc_00201556 [00:01:53]file doc_00201557 [00:01:53]remove file /storage/0543/doc_00201557 [00:01:53]file doc_00201558 [00:01:53]remove file /storage/0543/doc_00201558 [00:01:53]file doc_00201559 [00:01:53]remove file /storage/0543/doc_00201559 [00:01:53]file doc_00201560 [00:01:53]remove file /storage/0543/doc_00201560 [00:01:53]file doc_00201561 [00:01:53]remove file /storage/0543/doc_00201561 [00:01:53]file doc_00201562 [00:01:53]remove file /storage/0543/doc_00201562 [00:01:53]file doc_00201563 [00:01:53]remove file /storage/0543/doc_00201563 [00:01:53]file doc_00201564 [00:01:53]remove file /storage/0543/doc_00201564 [00:01:53]file doc_00201565 [00:01:53]remove file /storage/0543/doc_00201565 [00:01:53]file doc_00201566 [00:01:53]remove file /storage/0543/doc_00201566 [00:01:53]file doc_00201567 [00:01:53]remove file /storage/0543/doc_00201567 [00:01:53]file doc_00201568 [00:01:53]remove file /storage/0543/doc_00201568 [00:01:53]file doc_00201569 [00:01:53]remove file /storage/0543/doc_00201569 [00:01:53]file doc_00201570 [00:01:53]remove file /storage/0543/doc_00201570 [00:01:53]file doc_00201571 [00:01:53]remove file /storage/0543/doc_00201571 [00:01:53]file doc_00201572 [00:01:53]remove file /storage/0543/doc_00201572 [00:01:53]file doc_00201573 [00:01:53]remove file /storage/0543/doc_00201573 [00:01:53]file doc_00201574 [00:01:53]remove file /storage/0543/doc_00201574 [00:01:53]file doc_00201575 [00:01:53]remove file /storage/0543/doc_00201575 [00:01:53]file doc_00201576 [00:01:53]remove file /storage/0543/doc_00201576 [00:01:53]file doc_00201577 [00:01:53]remove file /storage/0543/doc_00201577 [00:01:53]file doc_00201578 [00:01:53]remove file /storage/0543/doc_00201578 [00:01:53]file doc_00201579 [00:01:53]remove file /storage/0543/doc_00201579 [00:01:53]file doc_00201580 [00:01:53]remove file /storage/0543/doc_00201580 [00:01:53]file doc_00201581 [00:01:53]remove file /storage/0543/doc_00201581 [00:01:53]file doc_00201582 [00:01:53]remove file /storage/0543/doc_00201582 [00:01:53]file doc_00201583 [00:01:53]remove file /storage/0543/doc_00201583 [00:01:53]file doc_00201584 [00:01:53]remove file /storage/0543/doc_00201584 [00:01:53]file doc_00201585 [00:01:53]remove file /storage/0543/doc_00201585 [00:01:53]file doc_00201586 [00:01:53]remove file /storage/0543/doc_00201586 [00:01:53]file doc_00201587 [00:01:53]remove file /storage/0543/doc_00201587 [00:01:53]file doc_00201588 [00:01:53]remove file /storage/0543/doc_00201588 [00:01:53]file doc_00201589 [00:01:53]remove file /storage/0543/doc_00201589 [00:01:53]file doc_00201590 [00:01:53]remove file /storage/0543/doc_00201590 [00:01:53]file doc_00201591 [00:01:53]remove file /storage/0543/doc_00201591 [00:01:53]file doc_00201592 [00:01:53]remove file /storage/0543/doc_00201592 [00:01:53]file doc_00201593 [00:01:53]remove file /storage/0543/doc_00201593 [00:01:53]file doc_00201594 [00:01:53]remove file /storage/0543/doc_00201594 [00:01:53]file doc_00201595 [00:01:53]remove file /storage/0543/doc_00201595 [00:01:53]file doc_00201596 [00:01:53]remove file /storage/0543/doc_00201596 [00:01:53]file doc_00201597 [00:01:53]remove file /storage/0543/doc_00201597 [00:01:53]file doc_00201598 [00:01:53]remove file /storage/0543/doc_00201598 [00:01:53]file doc_00201599 [00:01:53]remove file /storage/0543/doc_00201599 [00:01:53]file doc_00201600 [00:01:53]remove file /storage/0543/doc_00201600 [00:01:53]file doc_00201601 [00:01:53]remove file /storage/0543/doc_00201601 [00:01:53]file doc_00201602 [00:01:53]remove file /storage/0543/doc_00201602 [00:01:53]file doc_00201603 [00:01:53]remove file /storage/0543/doc_00201603 [00:01:53]file doc_00201604 [00:01:53]remove file /storage/0543/doc_00201604 [00:01:53]file doc_00201605 [00:01:53]remove file /storage/0543/doc_00201605 [00:01:53]file doc_00201606 [00:01:53]remove file /storage/0543/doc_00201606 [00:01:53]file doc_00201607 [00:01:53]remove file /storage/0543/doc_00201607 [00:01:53]file doc_00201608 [00:01:53]remove file /storage/0543/doc_00201608 [00:01:53]file doc_00201609 [00:01:53]remove file /storage/0543/doc_00201609 [00:01:53]file doc_00201610 [00:01:53]remove file /storage/0543/doc_00201610 [00:01:53]file doc_00201611 [00:01:53]remove file /storage/0543/doc_00201611 [00:01:53]file doc_00201612 [00:01:53]remove file /storage/0543/doc_00201612 [00:01:53]file doc_00201613 [00:01:53]remove file /storage/0543/doc_00201613 [00:01:53]file doc_00201614 [00:01:53]remove file /storage/0543/doc_00201614 [00:01:53]file doc_00201615 [00:01:53]remove file /storage/0543/doc_00201615 [00:01:53]file doc_00201616 [00:01:53]remove file /storage/0543/doc_00201616 [00:01:53]file doc_00201617 [00:01:53]remove file /storage/0543/doc_00201617 [00:01:53]file doc_00201618 [00:01:53]remove file /storage/0543/doc_00201618 [00:01:53]file doc_00201619 [00:01:53]remove file /storage/0543/doc_00201619 [00:01:53]file doc_00201620 [00:01:53]remove file /storage/0543/doc_00201620 [00:01:53]file doc_00201621 [00:01:53]remove file /storage/0543/doc_00201621 [00:01:53]file doc_00201622 [00:01:53]remove file /storage/0543/doc_00201622 [00:01:53]file doc_00201623 [00:01:53]remove file /storage/0543/doc_00201623 [00:01:53]file doc_00201624 [00:01:53]remove file /storage/0543/doc_00201624 [00:01:53]file doc_00201625 [00:01:53]remove file /storage/0543/doc_00201625 [00:01:53]file doc_00201626 [00:01:53]remove file /storage/0543/doc_00201626 [00:01:53]file doc_00201627 [00:01:53]remove file /storage/0543/doc_00201627 [00:01:53]file doc_00201628 [00:01:53]remove file /storage/0543/doc_00201628 [00:01:53]file doc_00201629 [00:01:53]remove file /storage/0543/doc_00201629 [00:01:53]file doc_00201630 [00:01:53]remove file /storage/0543/doc_00201630 [00:01:53]file doc_00201631 [00:01:53]remove file /storage/0543/doc_00201631 [00:01:53]file doc_00201632 [00:01:53]remove file /storage/0543/doc_00201632 [00:01:53]file doc_00201633 [00:01:53]remove file /storage/0543/doc_00201633 [00:01:53]file doc_00201634 [00:01:53]remove file /storage/0543/doc_00201634 [00:01:53]file doc_00201635 [00:01:53]remove file /storage/0543/doc_00201635 [00:01:53]file doc_00201636 [00:01:53]remove file /storage/0543/doc_00201636 [00:01:53]file doc_00201637 [00:01:53]remove file /storage/0543/doc_00201637 [00:01:53]file doc_00201638 [00:01:53]remove file /storage/0543/doc_00201638 [00:01:53]file doc_00201639 [00:01:53]remove file /storage/0543/doc_00201639 [00:01:53]file doc_00201640 [00:01:53]remove file /storage/0543/doc_00201640 [00:01:53]file doc_00201641 [00:01:53]remove file /storage/0543/doc_00201641 [00:01:53]file doc_00201642 [00:01:53]remove file /storage/0543/doc_00201642 [00:01:53]file doc_00201643 [00:01:53]remove file /storage/0543/doc_00201643 [00:01:53]file doc_00201644 [00:01:53]remove file /storage/0543/doc_00201644 [00:01:53]file doc_00201645 [00:01:53]remove file /storage/0543/doc_00201645 [00:01:53]file doc_00201646 [00:01:53]remove file /storage/0543/doc_00201646 [00:01:53]file doc_00201647 [00:01:53]remove file /storage/0543/doc_00201647 [00:01:53]file doc_00201648 [00:01:53]remove file /storage/0543/doc_00201648 [00:01:53]file doc_00201649 [00:01:53]remove file /storage/0543/doc_00201649 [00:01:53]file doc_00201650 [00:01:53]remove file /storage/0543/doc_00201650 [00:01:53]file doc_00201651 [00:01:53]remove file /storage/0543/doc_00201651 [00:01:53]file doc_00201652 [00:01:53]remove file /storage/0543/doc_00201652 [00:01:53]file doc_00201653 [00:01:53]remove file /storage/0543/doc_00201653 [00:01:53]file doc_00201654 [00:01:53]remove file /storage/0543/doc_00201654 [00:01:53]file doc_00201655 [00:01:53]remove file /storage/0543/doc_00201655 [00:01:53]file doc_00201656 [00:01:53]remove file /storage/0543/doc_00201656 [00:01:53]file doc_00201657 [00:01:53]remove file /storage/0543/doc_00201657 [00:01:53]file doc_00201658 [00:01:53]remove file /storage/0543/doc_00201658 [00:01:53]file doc_00201659 [00:01:53]remove file /storage/0543/doc_00201659 [00:01:53]file doc_00201660 [00:01:53]remove file /storage/0543/doc_00201660 [00:01:53]file doc_00201661 [00:01:53]remove file /storage/0543/doc_00201661 [00:01:53]file doc_00201662 [00:01:53]remove file /storage/0543/doc_00201662 [00:01:53]file doc_00201663 [00:01:53]remove file /storage/0543/doc_00201663 [00:01:53]file doc_00201664 [00:01:53]remove file /storage/0543/doc_00201664 [00:01:53]file doc_00201665 [00:01:53]remove file /storage/0543/doc_00201665 [00:01:53]file doc_00201666 [00:01:53]remove file /storage/0543/doc_00201666 [00:01:53]file doc_00201667 [00:01:53]remove file /storage/0543/doc_00201667 [00:01:53]file doc_00201668 [00:01:53]remove file /storage/0543/doc_00201668 [00:01:53]file doc_00201669 [00:01:53]remove file /storage/0543/doc_00201669 [00:01:53]file doc_00201670 [00:01:53]remove file /storage/0543/doc_00201670 [00:01:53]file doc_00201671 [00:01:53]remove file /storage/0543/doc_00201671 [00:01:53]file doc_00201672 [00:01:53]remove file /storage/0543/doc_00201672 [00:01:53]file doc_00201673 [00:01:53]remove file /storage/0543/doc_00201673 [00:01:53]file doc_00201674 [00:01:53]remove file /storage/0543/doc_00201674 [00:01:53]file doc_00201675 [00:01:53]remove file /storage/0543/doc_00201675 [00:01:53]file doc_00201676 [00:01:53]remove file /storage/0543/doc_00201676 [00:01:53]file doc_00201677 [00:01:53]remove file /storage/0543/doc_00201677 [00:01:53]file doc_00201678 [00:01:53]remove file /storage/0543/doc_00201678 [00:01:53]file doc_00201679 [00:01:53]remove file /storage/0543/doc_00201679 [00:01:53]file doc_00201680 [00:01:53]remove file /storage/0543/doc_00201680 [00:01:53]file doc_00201681 [00:01:53]remove file /storage/0543/doc_00201681 [00:01:53]file doc_00201682 [00:01:53]remove file /storage/0543/doc_00201682 [00:01:53]file doc_00201683 [00:01:53]remove file /storage/0543/doc_00201683 [00:01:53]file doc_00201684 [00:01:53]remove file /storage/0543/doc_00201684 [00:01:53]file doc_00201685 [00:01:53]remove file /storage/0543/doc_00201685 [00:01:53]file doc_00201686 [00:01:53]remove file /storage/0543/doc_00201686 [00:01:53]file doc_00201687 [00:01:53]remove file /storage/0543/doc_00201687 [00:01:53]file doc_00201688 [00:01:53]remove file /storage/0543/doc_00201688 [00:01:53]file doc_00201689 [00:01:53]remove file /storage/0543/doc_00201689 [00:01:53]file doc_00201690 [00:01:53]remove file /storage/0543/doc_00201690 [00:01:53]file doc_00201691 [00:01:53]remove file /storage/0543/doc_00201691 [00:01:53]file doc_00201692 [00:01:53]remove file /storage/0543/doc_00201692 [00:01:53]file doc_00201693 [00:01:53]remove file /storage/0543/doc_00201693 [00:01:53]file doc_00201694 [00:01:53]remove file /storage/0543/doc_00201694 [00:01:53]file doc_00201695 [00:01:53]remove file /storage/0543/doc_00201695 [00:01:53]file doc_00201696 [00:01:53]remove file /storage/0543/doc_00201696 [00:01:53]file doc_00201697 [00:01:53]remove file /storage/0543/doc_00201697 [00:01:53]file doc_00201698 [00:01:53]remove file /storage/0543/doc_00201698 [00:01:53]file doc_00201699 [00:01:53]remove file /storage/0543/doc_00201699 [00:01:53]file doc_00201700 [00:01:53]remove file /storage/0543/doc_00201700 [00:01:53]file doc_00201701 [00:01:53]remove file /storage/0543/doc_00201701 [00:01:53]file doc_00201702 [00:01:53]remove file /storage/0543/doc_00201702 [00:01:53]file doc_00201703 [00:01:53]remove file /storage/0543/doc_00201703 [00:01:53]file doc_00201704 [00:01:53]remove file /storage/0543/doc_00201704 [00:01:53]file doc_00201705 [00:01:53]remove file /storage/0543/doc_00201705 [00:01:53]file doc_00201706 [00:01:53]remove file /storage/0543/doc_00201706 [00:01:53]file doc_00201707 [00:01:53]remove file /storage/0543/doc_00201707 [00:01:53]remove dir /storage/0543 [00:01:53]ProcessDocumentItem done err = 0, tmpTLVsize=262 [00:01:53]tlvbuf is B6F74450 [00:01:53]SAM_PROTO_ClearQueue [00:01:53]wFMCommunicate request_size=4 [00:01:53]MH_SAM_APDU [00:01:53]CAPDU: 80 09 00 00 [00:01:53]Write to MH i2c: E2 08 00 73 06 80 09 00 00 00 00 00 00 EB [00:01:53]Write i2c OK [00:01:53]MH_I2C_Read... [00:01:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:01:53]Read from MH i2c: E2 [00:01:53]MH_I2C_Read... [00:01:53]Read from MH i2c: E2 03 00 [00:01:53]MH_I2C_Read... [00:01:53]Read from MH i2c: E2 03 00 73 06 00 90 00 ED [00:01:53]RAPDU: 90 00 [00:01:53]wFMCommunicate OK [00:01:53]SAM_PROTO_ClearQueue done [00:01:53]KKMCreateOFDPacket [00:01:53]OFDProtocolAddRootSTLVToBuf [00:01:53]FM_MakeSignedData [00:01:53]FM_MakeSignedData [00:01:53]SAM_PROTO_SignData [00:01:53]wFMCommunicate request_size=4 [00:01:53]MH_SAM_APDU [00:01:53]CAPDU: 80 0D 01 02 [00:01:53]Write to MH i2c: E2 08 00 74 06 80 0D 01 02 00 00 00 00 F3 [00:01:53]Write i2c OK [00:01:53]MH_I2C_Read... [00:01:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:01:53]Read from MH i2c: E2 [00:01:53]MH_I2C_Read... [00:01:53]Read from MH i2c: E2 03 00 [00:01:53]MH_I2C_Read... [00:01:53]Read from MH i2c: E2 03 00 74 06 00 90 00 EE [00:01:53]RAPDU: 90 00 [00:01:53]wFMCommunicate OK [00:01:53]wFMCommunicate request_size=255 [00:01:53]MH_SAM_APDU [00:01:53]CAPDU: 80 0D 02 02 FA 02 00 06 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 17 00 D0 90 D1 88 D0 B8 D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 9D 2E 20 F1 03 58 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 A2 D0 B0 D0 BC 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2D D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 34 31 2E 34 36 36 36 32 39 2C 20 37 31 2E 35 39 39 30 38 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 31 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 F0 82 1D 67 0E 04 04 00 20 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EC 13 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [00:01:54]Write to MH i2c: E2 02 01 75 06 80 0D 02 02 FA 00 02 00 06 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 17 00 D0 90 D1 88 D0 B8 D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 9D 2E 20 F1 03 58 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 A2 D0 B0 D0 BC 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2D D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 34 31 2E 34 36 36 36 32 39 2C 20 37 31 2E 35 39 39 30 38 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 31 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 F0 82 1D 67 0E 04 04 00 20 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EC 13 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 C1 [00:01:54]Write i2c OK [00:01:54]MH_I2C_Read... [00:01:54]*** iso7816_exchange 80 0D 02 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 75 06 00 90 00 EF [00:01:54]RAPDU: 90 00 [00:01:54]wFMCommunicate OK [00:01:54]wFMCommunicate request_size=21 [00:01:54]MH_SAM_APDU [00:01:54]CAPDU: 80 0D 02 02 10 38 37 31 37 35 36 35 04 06 00 AF 8E DB 44 52 C7 [00:01:54]Write to MH i2c: E2 18 00 76 06 80 0D 02 02 10 00 38 37 31 37 35 36 35 04 06 00 AF 8E DB 44 52 C7 00 00 0C [00:01:54]Write i2c OK [00:01:54]MH_I2C_Read... [00:01:54]*** iso7816_exchange 80 0D 02 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 76 06 00 90 00 F0 [00:01:54]RAPDU: 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 0D 03 02 [00:01:54]Write to MH i2c: E2 08 00 77 06 80 0D 03 02 00 00 00 00 F8 [00:01:54]Write i2c OK [00:01:54]MH_I2C_Read... [00:01:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:01:54]Read from MH i2c: E2 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: E2 0B 00 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: E2 0B 00 77 06 00 4D 73 DA F7 47 AF 90 35 90 00 45 [00:01:54]RAPDU: 4D 73 DA F7 47 AF 90 35 90 00 [00:01:54]wFMCommunicate OK [00:01:54]SAM_PROTO_SignData done [00:01:54]FM_MakeSignedData done [00:01:54]CreateOFDProtocolMessage [00:01:54]wFMCommunicate request_size=4 [00:01:54]MH_SAM_APDU [00:01:54]CAPDU: 80 11 00 00 [00:01:54]Write to MH i2c: E2 08 00 78 06 80 11 00 00 00 00 00 00 F8 [00:01:54]Write i2c OK [00:01:54]MH_I2C_Read... [00:01:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:54]Read from MH i2c: E2 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: E2 17 00 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: E2 17 00 78 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 4D [00:01:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [00:01:54]wFMCommunicate OK [00:01:54]CreateOFDProtocolMessage done [00:01:54]OFDSenderStorePacket 201708 [00:01:54]StoreOFDPacket docnum=201708 [00:01:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 1A 01 00 00 16 EE 12 01 CB 3F 5A 02 01 00 02 00 06 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 17 00 D0 90 D1 88 D0 B8 D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 9D 2E 20 F1 03 58 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 A2 D0 B0 D0 BC 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2D D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 34 31 2E 34 36 36 36 32 39 2C 20 37 31 2E 35 39 39 30 38 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 31 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 F0 82 1D 67 0E 04 04 00 20 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EC 13 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 35 04 06 00 AF 8E DB 44 52 C7 4D 73 DA F7 47 AF 90 35 [00:01:54]CheckFolder [00:01:54]dirname=/storage/ofd_packets [00:01:54]CheckFolder done [00:01:54]ProducePacketName [00:01:54]name=ofd_packets/00201708 [00:01:54]NVStorageSaveData ofd_packets/00201708 [00:01:54]File name is /storage/ofd_packets/00201708 [00:01:54]Write 312 bytes [00:01:54]NVStorageSaveData done [00:01:54]OFDSenderStorePacket done [00:01:54]KKMCreateOFDPacket done [00:01:54]NVStorageSaveData kkm_last_timestamp [00:01:54]File name is /storage/kkm_last_timestamp [00:01:54]Write 4 bytes [00:01:54]NVStorageSaveData done [00:01:54]ExternCall_PrintAddStr [00:01:54]wPrintStart [00:01:54]Write to MH i2c: 01 00 00 79 06 7F [00:01:54]Write i2c OK [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: 01 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: 01 07 00 [00:01:54]MH_I2C_Read... [00:01:54]OFD Sender: Processing packet 201708 [packets to send 112, broken 111] [00:01:54]ProducePacketName [00:01:54]name=ofd_packets/00201708 [00:01:54]OFD Sender: To server: pG, [00:01:54]CommunicateWithHost lk.salyk.kg:30040 [00:01:54]ConnectInit lk.salyk.kg [00:01:54]Read from MH i2c: 01 07 00 79 06 00 00 00 00 00 FF 0F 94 [00:01:54]RasterBufferAndPrint [00:01:54]line Отчет об открытии смены [00:01:54]line ФФД: 1.0 [00:01:54]line ИНН: 02508201610067 [00:01:54]line Кассир: Аширбеков Н. [00:01:54]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [00:01:54]line Место: АЗС № 171 "Партнер Нефть" [00:01:54]line 27.10.2024 00:01 [00:01:54]line Смена: 544 [00:01:54]line РНМ: 0000000000091777 [00:01:54]line ЗНМ: 0300000109 [00:01:54]line ФД: 201708 [00:01:54]line ФМ: 0000000000871756 [00:01:54]line ФПД: 193028098904775 [00:01:54]written 0, free lines is 4095 [00:01:54]Connected sock=10 [00:01:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 1A 01 00 00 16 EE 12 01 CB 3F 5A 02 01 00 02 00 06 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 17 00 D0 90 D1 88 D0 B8 D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 9D 2E 20 F1 03 58 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 A2 D0 B0 D0 BC 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2D D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2C 20 34 31 2E 34 36 36 36 32 39 2C 20 37 31 2E 35 39 39 30 38 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 31 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 F0 82 1D 67 0E 04 04 00 20 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EC 13 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 35 04 06 00 AF 8E DB 44 52 C7 4D 73 DA F7 47 AF 90 35 [00:01:54]Write to MH i2c: 01 00 00 8B 06 91 [00:01:54]Write i2c OK [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: 01 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: 01 07 00 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: 01 07 00 8B 06 00 00 00 00 00 83 0E 29 [00:01:54]RasterBufferAndPrint [00:01:54]line [00:01:54]line [00:01:54]line [00:01:54]line [00:01:54]line [00:01:54]written 0, free lines is 3731 [00:01:54]MH_Cut [00:01:54]Write to MH i2c: D1 01 00 92 06 01 6A [00:01:54]Write i2c OK [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: D1 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: D1 01 00 [00:01:54]MH_I2C_Read... [00:01:54]Read from MH i2c: D1 01 00 92 06 00 69 [00:01:54]Write to MH i2c: 01 00 00 93 06 99 [00:01:54]Write i2c OK [00:01:54]MH_I2C_Read... [00:01:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 E3 67 47 00 C7 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EC 13 03 00 F4 03 04 00 99 2E 1D 67 B6 04 01 00 00 74 9A 9C 8D B8 9F 91 20 [00:01:55]CommunicateWithHost err = 0 [00:01:55]CheckOFDResponse [00:01:55]1017 (14) - 77093643461234 [00:01:55]1041 (16) - 0000000000871756 [00:01:55]1040 (4) - 201708 [00:01:55]1012 (4) - 26.10.2024 18:02 [00:01:55]1206 (1) - 0 [00:01:55]OFD Sender: Remove packet 201708 [00:01:55]ProducePacketName [00:01:55]name=ofd_packets/00201708 [00:01:55]NVStorageDeleteData [00:01:55]*** Cut start [00:01:55]*** Purtial cut [00:01:55]*** Stage 1: CUTSNS_PIN = 1 [00:01:55]Read from MH i2c: 01 [00:01:55]MH_I2C_Read... [00:01:55]*** Stop cut motor [00:01:55]*** Cut end [00:01:55]Read from MH i2c: 01 07 00 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: 01 07 00 93 06 00 00 00 00 00 FF 0F AE [00:01:55]process_action open_shift done [00:01:55]requested_data is exist [00:01:55]produce_requested_data [00:01:55]requested_item fd.num is exist - process it [00:01:55]SAM_PROTO_GetFieldsCounters [00:01:55]wFMCommunicate request_size=4 [00:01:55]MH_SAM_APDU [00:01:55]CAPDU: 80 13 00 00 [00:01:55]Write to MH i2c: E2 08 00 94 06 80 13 00 00 00 00 00 00 16 [00:01:55]Write i2c OK [00:01:55]MH_I2C_Read... [00:01:55]OFD Sender: No OFD packet to send [00:01:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:01:55]Read from MH i2c: E2 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: E2 62 00 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: E2 62 00 94 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EC 13 03 00 0E 04 04 00 20 02 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 63 [00:01:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EC 13 03 00 0E 04 04 00 20 02 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:01:55]wFMCommunicate OK [00:01:55]SAM_PROTO_GetFieldsCounters done [00:01:55]requested_item shift.num is exist - process it [00:01:55]requested_item shift.opened is exist - process it [00:01:55]req_shift_opened [00:01:55]FM_GetShiftState [00:01:55]SAM_PROTO_GetShiftState [00:01:55]wFMCommunicate request_size=4 [00:01:55]MH_SAM_APDU [00:01:55]CAPDU: 80 13 01 00 [00:01:55]Write to MH i2c: E2 08 00 95 06 80 13 01 00 00 00 00 00 18 [00:01:55]Write i2c OK [00:01:55]MH_I2C_Read... [00:01:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:55]Read from MH i2c: E2 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: E2 0E 00 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: E2 0E 00 95 06 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 1A [00:01:55]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [00:01:55]wFMCommunicate OK [00:01:55]SAM_PROTO_GetShiftState done [00:01:55]FM_GetShiftState done [00:01:55]req_shift_opened done [00:01:55]requested_item shift.open_date is exist - process it [00:01:55]req_shift_open_date [00:01:55]req_shift_open_date done [00:01:55]produce_requested_data done [00:01:55]produce_requested_data return {"fd.num":201708,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [00:01:55]process_action_free open_shift [00:01:55]json_value_free [00:01:55]json_value_free done [00:01:55]process_json_proto returns [00:01:55]Send response to host [00:01:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":201708,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [00:01:55]free response buf [00:01:55]execute_script done [00:01:55]execute_script returns [00:01:55]free content buf [00:01:55]Sock 8.Close socket [00:01:55]Sock 8.Thread stoped [00:01:55]accept exits with 9 [00:01:55]New connection [00:01:55]New thread 3066936676 created [00:01:55]Thread 3067080036 joined [00:01:55]Waiting for new connection... [00:01:55] Sock 9.Parse request [00:01:55]Sock 9.Check first char [00:01:55]Sock 9.First char is OK [00:01:55]request: POST /json_proto HTTP/1.0 [00:01:55]Method: POST [00:01:55]URL: /json_proto [00:01:55]Method is POST - this is cgi request [00:01:55]url: /json_proto [00:01:55]query_string will be loaded in cgi processing [00:01:55]execute_cgi json_proto POST (null) [00:01:55]execute_cgi path=json_proto method=POST [00:01:55]POST find Content-Length [00:01:55]Host: 172.17.63.195:8080 [00:01:55]Content-Length: 331 [00:01:55]Content-Type: application/json [00:01:55] [00:01:55]POST finish read [00:01:55]Found Content-Length = 331 [00:01:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:01:55]execute_script... [00:01:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:01:55]POST & json_proto [00:01:55]process_json_proto [00:01:55]json parsed OK: [00:01:55]protocol is kg_v1.0 [00:01:55]action value=get_value [00:01:55]process_action get_value [00:01:55]cmd_get_value [00:01:55]process_action get_value done [00:01:55]requested_data is exist [00:01:55]produce_requested_data [00:01:55]requested_item fm.sale.total is exist - process it [00:01:55]SAM_PROTO_GetFMData [00:01:55]wFMCommunicate request_size=4 [00:01:55]MH_SAM_APDU [00:01:55]CAPDU: 80 13 03 00 [00:01:55]Write to MH i2c: E2 08 00 96 06 80 13 03 00 00 00 00 00 1B [00:01:55]Write i2c OK [00:01:55]MH_I2C_Read... [00:01:56]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:01:56]Read from MH i2c: E2 [00:01:56]MH_I2C_Read... [00:01:56]Read from MH i2c: E2 FD 00 [00:01:56]MH_I2C_Read... [00:01:56]Read from MH i2c: E2 FD 00 96 06 00 C4 04 85 04 C0 04 6E 04 04 00 AC 0F 03 00 69 04 A3 00 6F 04 04 00 87 0F 03 00 B1 04 05 00 EA CC FD AC 03 70 04 05 00 3C B1 FD 4D 03 72 04 04 00 AE 1B 00 5F 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 E1 E5 F6 63 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 69 66 54 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 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 20 [00:01:56]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 AC 0F 03 00 69 04 A3 00 6F 04 04 00 87 0F 03 00 B1 04 05 00 EA CC FD AC 03 70 04 05 00 3C B1 FD 4D 03 72 04 04 00 AE 1B 00 5F 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 E1 E5 F6 63 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 69 66 54 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 9B 00 6F 04 04 00 25 00 00 00 B1 04 03 00 24 F4 96 70 04 03 00 5C C1 96 72 04 02 00 C8 32 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 EB 07 10 EF 03 09 00 90 00 [00:01:56]wFMCommunicate OK [00:01:56]wFMCommunicate request_size=4 [00:01:56]MH_SAM_APDU [00:01:56]CAPDU: 80 17 00 00 [00:01:56]Write to MH i2c: E2 08 00 97 06 80 17 00 00 00 00 00 00 1D [00:01:56]Write i2c OK [00:01:56]MH_I2C_Read... [00:01:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:56]Read from MH i2c: E2 [00:01:56]MH_I2C_Read... [00:01:56]Read from MH i2c: E2 FD 00 [00:01:56]MH_I2C_Read... [00:01:56]Read from MH i2c: E2 FD 00 97 06 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 24 [00:01:56]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 55 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:01:56]wFMCommunicate OK [00:01:56]wFMCommunicate request_size=4 [00:01:56]MH_SAM_APDU [00:01:56]CAPDU: 80 17 00 00 [00:01:56]Write to MH i2c: E2 08 00 98 06 80 17 00 00 00 00 00 00 1E [00:01:56]Write i2c OK [00:01:56]MH_I2C_Read... [00:01:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:57]Read from MH i2c: E2 [00:01:57]MH_I2C_Read... [00:01:57]Read from MH i2c: E2 FD 00 [00:01:57]MH_I2C_Read... [00:01:57]Read from MH i2c: E2 FD 00 98 06 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 33 [00:01:57]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [00:01:57]wFMCommunicate OK [00:01:57]wFMCommunicate request_size=4 [00:01:57]MH_SAM_APDU [00:01:57]CAPDU: 80 17 00 00 [00:01:57]Write to MH i2c: E2 08 00 99 06 80 17 00 00 00 00 00 00 1F [00:01:57]Write i2c OK [00:01:57]MH_I2C_Read... [00:01:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:57]Read from MH i2c: E2 [00:01:57]MH_I2C_Read... [00:01:57]Read from MH i2c: E2 FD 00 [00:01:57]MH_I2C_Read... [00:01:57]Read from MH i2c: E2 FD 00 99 06 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 97 [00:01:57]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:01:57]wFMCommunicate OK [00:01:57]wFMCommunicate request_size=4 [00:01:57]MH_SAM_APDU [00:01:57]CAPDU: 80 17 00 00 [00:01:57]Write to MH i2c: E2 08 00 9A 06 80 17 00 00 00 00 00 00 20 [00:01:57]Write i2c OK [00:01:57]MH_I2C_Read... [00:01:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:01:58]Read from MH i2c: E2 [00:01:58]MH_I2C_Read... [00:01:58]Read from MH i2c: E2 E1 00 [00:01:58]MH_I2C_Read... [00:01:58]Read from MH i2c: E2 E1 00 9A 06 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 0E [00:01:58]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:01:58]wFMCommunicate OK [00:01:58]SAM_PROTO_GetFMData done [00:01:58]requested_item fm.sale_refund.total is exist - process it [00:01:58]requested_item fm.buy.total is exist - process it [00:01:58]requested_item shift.sale.total is exist - process it [00:01:58]SAM_PROTO_GetShiftData [00:01:58]wFMCommunicate request_size=4 [00:01:58]MH_SAM_APDU [00:01:58]CAPDU: 80 13 02 00 [00:01:58]Write to MH i2c: E2 08 00 9B 06 80 13 02 00 00 00 00 00 1F [00:01:58]Write i2c OK [00:01:58]MH_I2C_Read... [00:01:58]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:01:58]Read from MH i2c: E2 [00:01:58]MH_I2C_Read... [00:01:58]Read from MH i2c: E2 FD 00 [00:01:58]MH_I2C_Read... [00:01:58]Read from MH i2c: E2 FD 00 9B 06 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 92 [00:01:58]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:01:58]wFMCommunicate OK [00:01:58]wFMCommunicate request_size=4 [00:01:58]MH_SAM_APDU [00:01:58]CAPDU: 80 17 00 00 [00:01:58]Write to MH i2c: E2 08 00 9C 06 80 17 00 00 00 00 00 00 22 [00:01:58]Write i2c OK [00:01:58]MH_I2C_Read... [00:01:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:59]Read from MH i2c: E2 [00:01:59]MH_I2C_Read... [00:01:59]Read from MH i2c: E2 FD 00 [00:01:59]MH_I2C_Read... [00:01:59]Read from MH i2c: E2 FD 00 9C 06 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 2A [00:01:59]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:01:59]wFMCommunicate OK [00:01:59]wFMCommunicate request_size=4 [00:01:59]MH_SAM_APDU [00:01:59]CAPDU: 80 17 00 00 [00:01:59]Write to MH i2c: E2 08 00 9D 06 80 17 00 00 00 00 00 00 23 [00:01:59]Write i2c OK [00:01:59]MH_I2C_Read... [00:01:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:59]Read from MH i2c: E2 [00:01:59]MH_I2C_Read... [00:01:59]Read from MH i2c: E2 FD 00 [00:01:59]MH_I2C_Read... [00:01:59]Read from MH i2c: E2 FD 00 9D 06 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 F5 [00:01:59]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:01:59]wFMCommunicate OK [00:01:59]wFMCommunicate request_size=4 [00:01:59]MH_SAM_APDU [00:01:59]CAPDU: 80 17 00 00 [00:01:59]Write to MH i2c: E2 08 00 9E 06 80 17 00 00 00 00 00 00 24 [00:01:59]Write i2c OK [00:01:59]MH_I2C_Read... [00:02:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:00]Read from MH i2c: E2 [00:02:00]MH_I2C_Read... [00:02:00]Read from MH i2c: E2 FD 00 [00:02:00]MH_I2C_Read... [00:02:00]Read from MH i2c: E2 FD 00 9E 06 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 96 [00:02:00]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:02:00]wFMCommunicate OK [00:02:00]wFMCommunicate request_size=4 [00:02:00]MH_SAM_APDU [00:02:00]CAPDU: 80 17 00 00 [00:02:00]Write to MH i2c: E2 08 00 9F 06 80 17 00 00 00 00 00 00 25 [00:02:00]Write i2c OK [00:02:00]MH_I2C_Read... [00:02:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:02:00]Read from MH i2c: E2 [00:02:00]MH_I2C_Read... [00:02:00]Read from MH i2c: E2 BD 00 [00:02:00]MH_I2C_Read... [00:02:00]Read from MH i2c: E2 BD 00 9F 06 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 0B [00:02:00]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:02:00]wFMCommunicate OK [00:02:00]SAM_PROTO_GetShiftData done [00:02:00]requested_item shift.sale.total_cash is exist - process it [00:02:00]requested_item shift.sale_refund.total is exist - process it [00:02:00]requested_item shift.sale_refund.total_cash is exist - process it [00:02:00]requested_item shift.buy.total is exist - process it [00:02:00]requested_item shift.buy.total_cash is exist - process it [00:02:00]produce_requested_data done [00:02:00]produce_requested_data return {"fm.sale.total":157872161.06,"fm.sale_refund.total":98929.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:02:00]process_action_free get_value [00:02:00]json_value_free [00:02:00]json_value_free done [00:02:00]process_json_proto returns [00:02:00]Send response to host [00:02:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":157872161.06,"fm.sale_refund.total":98929.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:02:00]free response buf [00:02:00]execute_script done [00:02:00]execute_script returns [00:02:00]free content buf [00:02:00]Sock 9.Close socket [00:02:00]Sock 9.Thread stoped [00:02:00]OFD Sender: No OFD packet to send [00:02:05]OFD Sender: No OFD packet to send [00:02:10]OFD Sender: No OFD packet to send [00:02:15]OFD Sender: No OFD packet to send [00:02:20]OFD Sender: No OFD packet to send [00:02:25]OFD Sender: No OFD packet to send [00:02:30]OFD Sender: No OFD packet to send [00:02:35]OFD Sender: No OFD packet to send [00:02:40]OFD Sender: No OFD packet to send [00:02:45]OFD Sender: No OFD packet to send [00:02:50]OFD Sender: No OFD packet to send [00:02:55]OFD Sender: No OFD packet to send [00:03:00]OFD Sender: No OFD packet to send [00:03:05]OFD Sender: No OFD packet to send [00:03:10]OFD Sender: No OFD packet to send [00:03:15]OFD Sender: No OFD packet to send [00:03:20]OFD Sender: No OFD packet to send [00:03:25]OFD Sender: No OFD packet to send [00:03:30]OFD Sender: No OFD packet to send [00:03:35]OFD Sender: No OFD packet to send [00:03:40]OFD Sender: No OFD packet to send [00:03:45]OFD Sender: No OFD packet to send [00:03:50]OFD Sender: No OFD packet to send [00:03:55]OFD Sender: No OFD packet to send [00:04:00]OFD Sender: No OFD packet to send [00:04:05]OFD Sender: No OFD packet to send [00:04:10]OFD Sender: No OFD packet to send [00:04:15]OFD Sender: No OFD packet to send [00:04:20]OFD Sender: No OFD packet to send [00:04:25]OFD Sender: No OFD packet to send [00:04:30]OFD Sender: No OFD packet to send [00:04:35]OFD Sender: No OFD packet to send [00:04:40]OFD Sender: No OFD packet to send [00:04:46]OFD Sender: No OFD packet to send [00:04:51]OFD Sender: No OFD packet to send [00:04:56]OFD Sender: No OFD packet to send [00:05:01]OFD Sender: No OFD packet to send [00:05:06]OFD Sender: No OFD packet to send [00:05:11]OFD Sender: No OFD packet to send [00:05:16]OFD Sender: No OFD packet to send [00:05:21]OFD Sender: No OFD packet to send [00:05:26]OFD Sender: No OFD packet to send [00:05:31]OFD Sender: No OFD packet to send [00:05:36]OFD Sender: No OFD packet to send [00:05:41]OFD Sender: No OFD packet to send [00:05:46]OFD Sender: No OFD packet to send [00:05:51]OFD Sender: No OFD packet to send [00:05:56]OFD Sender: No OFD packet to send [00:06:01]OFD Sender: No OFD packet to send [00:06:06]OFD Sender: No OFD packet to send [00:06:11]OFD Sender: No OFD packet to send [00:06:16]OFD Sender: No OFD packet to send [00:06:21]OFD Sender: No OFD packet to send [00:06:26]OFD Sender: No OFD packet to send [00:06:31]OFD Sender: No OFD packet to send [00:06:36]OFD Sender: No OFD packet to send [00:06:41]OFD Sender: No OFD packet to send [00:06:46]OFD Sender: No OFD packet to send [00:06:51]OFD Sender: No OFD packet to send [00:06:56]OFD Sender: No OFD packet to send [00:07:01]OFD Sender: No OFD packet to send [00:07:06]OFD Sender: No OFD packet to send [00:07:11]OFD Sender: No OFD packet to send [00:07:16]OFD Sender: No OFD packet to send [00:07:21]OFD Sender: No OFD packet to send [00:07:26]OFD Sender: No OFD packet to send [00:07:31]OFD Sender: No OFD packet to send [00:07:36]OFD Sender: No OFD packet to send [00:07:41]OFD Sender: No OFD packet to send [00:07:46]OFD Sender: No OFD packet to send [00:07:51]OFD Sender: No OFD packet to send [00:07:56]OFD Sender: No OFD packet to send [00:08:01]OFD Sender: No OFD packet to send [00:08:06]OFD Sender: No OFD packet to send [00:08:11]OFD Sender: No OFD packet to send [00:08:16]OFD Sender: No OFD packet to send [00:08:21]OFD Sender: No OFD packet to send [00:08:26]OFD Sender: No OFD packet to send [00:08:31]OFD Sender: No OFD packet to send [00:08:36]OFD Sender: No OFD packet to send [00:08:41]OFD Sender: No OFD packet to send [00:08:46]OFD Sender: No OFD packet to send [00:08:51]OFD Sender: No OFD packet to send [00:08:56]OFD Sender: No OFD packet to send [00:09:01]OFD Sender: No OFD packet to send [00:09:06]OFD Sender: No OFD packet to send [00:09:11]OFD Sender: No OFD packet to send [00:09:16]OFD Sender: No OFD packet to send [00:09:21]OFD Sender: No OFD packet to send [00:09:26]OFD Sender: No OFD packet to send [00:09:31]OFD Sender: No OFD packet to send [00:09:36]OFD Sender: No OFD packet to send [00:09:41]OFD Sender: No OFD packet to send [00:09:46]OFD Sender: No OFD packet to send [00:09:51]OFD Sender: No OFD packet to send [00:09:56]OFD Sender: No OFD packet to send [00:10:01]OFD Sender: No OFD packet to send [00:10:06]OFD Sender: No OFD packet to send [00:10:11]OFD Sender: No OFD packet to send [00:10:16]OFD Sender: No OFD packet to send [00:10:21]OFD Sender: No OFD packet to send [00:10:26]OFD Sender: No OFD packet to send [00:10:31]OFD Sender: No OFD packet to send [00:10:36]OFD Sender: No OFD packet to send [00:10:41]OFD Sender: No OFD packet to send [00:10:46]OFD Sender: No OFD packet to send [00:10:51]OFD Sender: No OFD packet to send [00:10:56]OFD Sender: No OFD packet to send [00:11:01]OFD Sender: No OFD packet to send [00:11:06]OFD Sender: No OFD packet to send [00:11:11]OFD Sender: No OFD packet to send [00:11:16]OFD Sender: No OFD packet to send [00:11:21]OFD Sender: No OFD packet to send [00:11:26]OFD Sender: No OFD packet to send [00:11:31]OFD Sender: No OFD packet to send [00:11:36]OFD Sender: No OFD packet to send [00:11:41]OFD Sender: No OFD packet to send [00:11:46]OFD Sender: No OFD packet to send [00:11:51]OFD Sender: No OFD packet to send [00:11:56]OFD Sender: No OFD packet to send [00:12:01]OFD Sender: No OFD packet to send [00:12:06]OFD Sender: No OFD packet to send [00:12:11]OFD Sender: No OFD packet to send [00:12:16]OFD Sender: No OFD packet to send [00:12:21]OFD Sender: No OFD packet to send [00:12:26]OFD Sender: No OFD packet to send [00:12:31]OFD Sender: No OFD packet to send [00:12:36]OFD Sender: No OFD packet to send [00:12:41]OFD Sender: No OFD packet to send [00:12:46]OFD Sender: No OFD packet to send [00:12:51]OFD Sender: No OFD packet to send [00:12:56]OFD Sender: No OFD packet to send [00:13:01]OFD Sender: No OFD packet to send [00:13:06]OFD Sender: No OFD packet to send [00:13:11]OFD Sender: No OFD packet to send [00:13:16]OFD Sender: No OFD packet to send [00:13:21]OFD Sender: No OFD packet to send [00:13:26]OFD Sender: No OFD packet to send [00:13:31]OFD Sender: No OFD packet to send [00:13:36]OFD Sender: No OFD packet to send [00:13:41]OFD Sender: No OFD packet to send [00:13:46]OFD Sender: No OFD packet to send [00:13:51]OFD Sender: No OFD packet to send [00:13:54]accept exits with 8 [00:13:54]New connection [00:13:54]New thread 3067080036 created [00:13:54]Thread 3066936676 joined [00:13:54]Waiting for new connection... [00:13:54] Sock 8.Parse request [00:13:54]Sock 8.Check first char [00:13:54]Sock 8.First char is OK [00:13:54]request: POST /json_proto HTTP/1.0 [00:13:54]Method: POST [00:13:54]URL: /json_proto [00:13:54]Method is POST - this is cgi request [00:13:54]url: /json_proto [00:13:54]query_string will be loaded in cgi processing [00:13:54]execute_cgi json_proto POST (null) [00:13:54]execute_cgi path=json_proto method=POST [00:13:54]POST find Content-Length [00:13:54]Host: 172.17.63.195:8080 [00:13:54]Content-Length: 738 [00:13:54]Content-Type: application/json [00:13:54] [00:13:54]POST finish read [00:13:54]Found Content-Length = 738 [00:13:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)7591", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 159.00, "quantity" : 1.000, "sum" : 159.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: Mbank", "payments": [ { "type": 1, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:13:54]execute_script... [00:13:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)7591", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 159.00, "quantity" : 1.000, "sum" : 159.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: Mbank", "payments": [ { "type": 1, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:13:54]POST & json_proto [00:13:54]process_json_proto [00:13:54]json parsed OK: [00:13:54]protocol is kg_v1.0 [00:13:54]action value=close_receipt [00:13:54]process_action close_receipt [00:13:54]cmd_close_receipt [00:13:54]MH_GetDate [00:13:54]Write to MH i2c: F0 00 00 A0 06 95 [00:13:54]Write i2c OK [00:13:54]MH_I2C_Read... [00:13:54]Read from MH i2c: F0 [00:13:54]MH_I2C_Read... [00:13:54]Read from MH i2c: F0 09 00 [00:13:54]MH_I2C_Read... [00:13:54]Read from MH i2c: F0 09 00 A0 06 00 C4 85 1D 67 68 46 19 67 99 [00:13:54]GetLastDocTimeStamp 1729987312 [00:13:54]current date 1729988036 [00:13:54]FM_GetShiftState [00:13:54]SAM_PROTO_GetShiftState [00:13:54]wFMCommunicate request_size=4 [00:13:54]MH_SAM_APDU [00:13:54]CAPDU: 80 13 01 00 [00:13:54]Write to MH i2c: E2 08 00 A1 06 80 13 01 00 00 00 00 00 24 [00:13:54]Write i2c OK [00:13:54]MH_I2C_Read... [00:13:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:54]Read from MH i2c: E2 [00:13:54]MH_I2C_Read... [00:13:54]Read from MH i2c: E2 0E 00 [00:13:54]MH_I2C_Read... [00:13:54]Read from MH i2c: E2 0E 00 A1 06 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 26 [00:13:54]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [00:13:54]wFMCommunicate OK [00:13:54]SAM_PROTO_GetShiftState done [00:13:54]FM_GetShiftState done [00:13:54]opened in 1729987312 [00:13:54]opened+sec_in_day 1730073712 [00:13:54]quantity*price = 15900 [00:13:54]sum+1 = 15901 [00:13:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.41 НДС 12% : 16.88 Наличными: 0.00 Безнал.: 159.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 1 27.10.2024 00:13 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201709 ФПД: 250742771580691 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T001356&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201709&fm=250742771580691&tin=02508201610067®Number=0000000000091777&sum=15900 0 [00:13:55]StoreToDocumentArchive [00:13:55]shift 544 fd 201709 [00:13:55]save to /storage/0544/doc_00201709 [00:13:55]save last doc name /storage/0544/doc_00201709 to /storage/kkm_last_doc_name [00:13:55]save OK [00:13:55]Clear old archive folders... [00:13:55]ProcessDocumentItem done err = 0, tmpTLVsize=265 [00:13:55]tlvbuf is 0008AA40 [00:13:55]SAM_PROTO_ClearQueue [00:13:55]wFMCommunicate request_size=4 [00:13:55]MH_SAM_APDU [00:13:55]CAPDU: 80 09 00 00 [00:13:55]Write to MH i2c: E2 08 00 AE 06 80 09 00 00 00 00 00 00 26 [00:13:55]Write i2c OK [00:13:55]MH_I2C_Read... [00:13:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:13:55]Read from MH i2c: E2 [00:13:55]MH_I2C_Read... [00:13:55]Read from MH i2c: E2 03 00 [00:13:55]MH_I2C_Read... [00:13:55]Read from MH i2c: E2 03 00 AE 06 00 90 00 28 [00:13:55]RAPDU: 90 00 [00:13:55]wFMCommunicate OK [00:13:55]SAM_PROTO_ClearQueue done [00:13:55]KKMCreateOFDPacket [00:13:55]OFDProtocolAddRootSTLVToBuf [00:13:55]FM_MakeSignedData [00:13:55]FM_MakeSignedData [00:13:55]SAM_PROTO_SignData [00:13:55]wFMCommunicate request_size=4 [00:13:55]MH_SAM_APDU [00:13:55]CAPDU: 80 0D 01 02 [00:13:55]Write to MH i2c: E2 08 00 AF 06 80 0D 01 02 00 00 00 00 2E [00:13:55]Write i2c OK [00:13:55]MH_I2C_Read... [00:13:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:13:55]Read from MH i2c: E2 [00:13:55]MH_I2C_Read... [00:13:55]Read from MH i2c: E2 03 00 [00:13:55]MH_I2C_Read... [00:13:55]Read from MH i2c: E2 03 00 AF 06 00 90 00 29 [00:13:55]RAPDU: 90 00 [00:13:55]wFMCommunicate OK [00:13:55]wFMCommunicate request_size=255 [00:13:55]MH_SAM_APDU [00:13:55]CAPDU: 80 0D 02 02 FA 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 C4 85 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 [00:13:55]Write to MH i2c: E2 02 01 B0 06 80 0D 02 02 FA 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 C4 85 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 00 00 52 [00:13:55]Write i2c OK [00:13:55]MH_I2C_Read... [00:13:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:55]Read from MH i2c: E2 [00:13:55]MH_I2C_Read... [00:13:55]Read from MH i2c: E2 03 00 [00:13:55]MH_I2C_Read... [00:13:55]Read from MH i2c: E2 03 00 B0 06 00 90 00 2A [00:13:55]RAPDU: 90 00 [00:13:55]wFMCommunicate OK [00:13:55]wFMCommunicate request_size=24 [00:13:55]MH_SAM_APDU [00:13:55]CAPDU: 80 0D 02 02 13 36 10 04 04 00 ED 13 03 00 35 04 06 00 E4 0C 99 D4 7F 13 [00:13:55]Write to MH i2c: E2 1B 00 B1 06 80 0D 02 02 13 00 36 10 04 04 00 ED 13 03 00 35 04 06 00 E4 0C 99 D4 7F 13 00 00 D6 [00:13:55]Write i2c OK [00:13:55]MH_I2C_Read... [00:13:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:56]Read from MH i2c: E2 [00:13:56]MH_I2C_Read... [00:13:56]Read from MH i2c: E2 03 00 [00:13:56]MH_I2C_Read... [00:13:56]Read from MH i2c: E2 03 00 B1 06 00 90 00 2B [00:13:56]RAPDU: 90 00 [00:13:56]wFMCommunicate OK [00:13:56]wFMCommunicate request_size=4 [00:13:56]MH_SAM_APDU [00:13:56]CAPDU: 80 0D 03 02 [00:13:56]Write to MH i2c: E2 08 00 B2 06 80 0D 03 02 00 00 00 00 33 [00:13:56]Write i2c OK [00:13:56]MH_I2C_Read... [00:13:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:13:56]Read from MH i2c: E2 [00:13:56]MH_I2C_Read... [00:13:56]Read from MH i2c: E2 0B 00 [00:13:56]MH_I2C_Read... [00:13:56]Read from MH i2c: E2 0B 00 B2 06 00 7B 3E 28 79 5E A6 29 DB 90 00 96 [00:13:56]RAPDU: 7B 3E 28 79 5E A6 29 DB 90 00 [00:13:56]wFMCommunicate OK [00:13:56]SAM_PROTO_SignData done [00:13:56]FM_MakeSignedData done [00:13:56]CreateOFDProtocolMessage [00:13:56]wFMCommunicate request_size=4 [00:13:56]MH_SAM_APDU [00:13:56]CAPDU: 80 11 00 00 [00:13:56]Write to MH i2c: E2 08 00 B3 06 80 11 00 00 00 00 00 00 33 [00:13:56]Write i2c OK [00:13:56]MH_I2C_Read... [00:13:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:13:56]Read from MH i2c: E2 [00:13:56]MH_I2C_Read... [00:13:56]Read from MH i2c: E2 17 00 [00:13:56]MH_I2C_Read... [00:13:56]Read from MH i2c: E2 17 00 B3 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 88 [00:13:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [00:13:56]wFMCommunicate OK [00:13:56]CreateOFDProtocolMessage done [00:13:56]OFDSenderStorePacket 201709 [00:13:56]StoreOFDPacket docnum=201709 [00:13:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 1D 01 00 00 3C F6 15 01 05 59 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 C4 85 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 ED 13 03 00 35 04 06 00 E4 0C 99 D4 7F 13 7B 3E 28 79 5E A6 29 DB [00:13:56]CheckFolder [00:13:56]dirname=/storage/ofd_packets [00:13:56]CheckFolder done [00:13:56]ProducePacketName [00:13:56]name=ofd_packets/00201709 [00:13:56]NVStorageSaveData ofd_packets/00201709 [00:13:56]File name is /storage/ofd_packets/00201709 [00:13:56]Write 315 bytes [00:13:56]NVStorageSaveData done [00:13:56]OFDSenderStorePacket done [00:13:56]KKMCreateOFDPacket done [00:13:56]NVStorageSaveData kkm_last_timestamp [00:13:56]File name is /storage/kkm_last_timestamp [00:13:56]Write 4 bytes [00:13:56]NVStorageSaveData done [00:13:56]ExternCall_PrintAddStr [00:13:56]wPrintStart [00:13:56]Write to MH i2c: 01 00 00 B4 06 BA [00:13:56]Write i2c OK [00:13:56]MH_I2C_Read... [00:13:56]Read from MH i2c: 01 [00:13:56]MH_I2C_Read... [00:13:56]Read from MH i2c: 01 07 00 [00:13:56]MH_I2C_Read... [00:13:56]Read from MH i2c: 01 07 00 B4 06 00 00 00 00 00 FF 0F CF [00:13:56]RasterBufferAndPrint [00:13:56]line Счет N : (3)7591 [00:13:56]line ИНН: 02508201610067 [00:13:56]line Контрольно-Кассовый Чек [00:13:56]line ПРОДАЖА [00:13:56]line Товар: 47803152 [00:13:56]line Сигареты Mevius Revo [00:13:56]line 1.000 * 159.00 [00:13:56]line = 159.00 [00:13:56]line НДС 12% НСП 1% [00:13:56]line > о реализуемом товаре [00:13:56]line ИТОГО: 159.00 [00:13:56]line НСП 1% : 1.41 [00:13:56]line НДС 12% : 16.88 [00:13:56]line Наличными: 0.00 [00:13:56]line Безнал.: 159.00 [00:13:56]line Место: АЗС № 171 "Партнер Нефть" [00:13:56]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [00:13:56]line СНО: Общий режим [00:13:56]line Чек 1 27.10.2024 00:13 [00:13:56]line Смена: 544 ФФД: 1.0 [00:13:56]line ЗНМ: 0300000109 [00:13:56]line РНМ: 0000000000091777 [00:13:56]line Версия ККМ: 001 [00:13:56]line Платежная система: Mbank [00:13:56]line ФМ: 0000000000871756 [00:13:56]line ФД: 201709 [00:13:56]line ФПД: 250742771580691 [00:13:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T001356&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201709&fm=250742771580691&tin=02508201610067®Number=0000000000091777&sum=15900 [00:13:56]line 0 [00:13:56]OFD Sender: Processing packet 201709 [packets to send 112, broken 111] [00:13:56]ProducePacketName [00:13:56]name=ofd_packets/00201709 [00:13:56]OFD Sender: To server: pG, [00:13:56]CommunicateWithHost lk.salyk.kg:30040 [00:13:56]ConnectInit lk.salyk.kg [00:13:56]written 0, free lines is 4095 [00:13:56]Connected sock=10 [00:13:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 1D 01 00 00 3C F6 15 01 05 59 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 C4 85 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 ED 13 03 00 35 04 06 00 E4 0C 99 D4 7F 13 7B 3E 28 79 5E A6 29 DB [00:13:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 02 B0 47 00 1F D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 ED 13 03 00 F4 03 04 00 6B 31 1D 67 B6 04 01 00 00 A2 AA 57 42 5A 89 0D 20 [00:13:56]CommunicateWithHost err = 0 [00:13:56]CheckOFDResponse [00:13:56]1017 (14) - 77093643461234 [00:13:56]1041 (16) - 0000000000871756 [00:13:56]1040 (4) - 201709 [00:13:56]1012 (4) - 26.10.2024 18:14 [00:13:56]1206 (1) - 0 [00:13:56]OFD Sender: Remove packet 201709 [00:13:56]ProducePacketName [00:13:56]name=ofd_packets/00201709 [00:13:56]NVStorageDeleteData [00:13:56]Write to MH i2c: 01 00 00 DD 06 E3 [00:13:56]Write i2c OK [00:13:56]MH_I2C_Read... [00:13:56]Read from MH i2c: 01 [00:13:56]MH_I2C_Read... [00:13:56]Read from MH i2c: 01 07 00 [00:13:56]MH_I2C_Read... [00:13:56]Read from MH i2c: 01 07 00 DD 06 00 00 00 00 00 B9 0C AF [00:13:56]RasterBufferAndPrint [00:13:56]line [00:13:56]line [00:13:56]line [00:13:56]line [00:13:56]line [00:13:56]written 0, free lines is 3262 [00:13:56]MH_Cut [00:13:56]Write to MH i2c: D1 01 00 E4 06 01 BC [00:13:56]Write i2c OK [00:13:56]MH_I2C_Read... [00:13:56]Read from MH i2c: D1 [00:13:56]MH_I2C_Read... [00:13:56]Read from MH i2c: D1 01 00 [00:13:56]MH_I2C_Read... [00:13:56]Read from MH i2c: D1 01 00 E4 06 00 BB [00:13:56]Write to MH i2c: 01 00 00 E5 06 EB [00:13:56]Write i2c OK [00:13:56]MH_I2C_Read... [00:13:57]OFD Sender: No OFD packet to send [00:13:57]*** Cut start [00:13:57]*** Purtial cut [00:13:57]*** Stage 1: CUTSNS_PIN = 1 [00:13:58]Read from MH i2c: 01 [00:13:58]MH_I2C_Read... [00:13:58]*** Stop cut motor [00:13:58]*** Cut end [00:13:58]Read from MH i2c: 01 07 00 [00:13:58]MH_I2C_Read... [00:13:58]Read from MH i2c: 01 07 00 E5 06 00 00 00 00 00 FF 0F 00 [00:13:58]process_action close_receipt done [00:13:58]requested_data is exist [00:13:58]produce_requested_data [00:13:58]requested_item fm.sn is exist - process it [00:13:58]wFMCommunicate request_size=4 [00:13:58]MH_SAM_APDU [00:13:58]CAPDU: 80 11 00 00 [00:13:58]Write to MH i2c: E2 08 00 E6 06 80 11 00 00 00 00 00 00 66 [00:13:58]Write i2c OK [00:13:58]MH_I2C_Read... [00:13:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:13:58]Read from MH i2c: E2 [00:13:58]MH_I2C_Read... [00:13:58]Read from MH i2c: E2 17 00 [00:13:58]MH_I2C_Read... [00:13:58]Read from MH i2c: E2 17 00 E6 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 BB [00:13:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [00:13:58]wFMCommunicate OK [00:13:58]requested_item fd.num is exist - process it [00:13:58]SAM_PROTO_GetFieldsCounters [00:13:58]wFMCommunicate request_size=4 [00:13:58]MH_SAM_APDU [00:13:58]CAPDU: 80 13 00 00 [00:13:58]Write to MH i2c: E2 08 00 E7 06 80 13 00 00 00 00 00 00 69 [00:13:58]Write i2c OK [00:13:58]MH_I2C_Read... [00:13:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:13:58]Read from MH i2c: E2 [00:13:58]MH_I2C_Read... [00:13:58]Read from MH i2c: E2 62 00 [00:13:58]MH_I2C_Read... [00:13:58]Read from MH i2c: E2 62 00 E7 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 ED 13 03 00 0E 04 04 00 20 02 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 BA [00:13:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 ED 13 03 00 0E 04 04 00 20 02 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:13:58]wFMCommunicate OK [00:13:58]SAM_PROTO_GetFieldsCounters done [00:13:58]requested_item shift.num is exist - process it [00:13:58]requested_item shift.opened is exist - process it [00:13:58]req_shift_opened [00:13:58]FM_GetShiftState [00:13:58]SAM_PROTO_GetShiftState [00:13:58]wFMCommunicate request_size=4 [00:13:58]MH_SAM_APDU [00:13:58]CAPDU: 80 13 01 00 [00:13:58]Write to MH i2c: E2 08 00 E8 06 80 13 01 00 00 00 00 00 6B [00:13:58]Write i2c OK [00:13:58]MH_I2C_Read... [00:13:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:58]Read from MH i2c: E2 [00:13:58]MH_I2C_Read... [00:13:58]Read from MH i2c: E2 0E 00 [00:13:58]MH_I2C_Read... [00:13:58]Read from MH i2c: E2 0E 00 E8 06 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6D [00:13:58]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [00:13:58]wFMCommunicate OK [00:13:58]SAM_PROTO_GetShiftState done [00:13:58]FM_GetShiftState done [00:13:58]req_shift_opened done [00:13:58]requested_item shift.open_date is exist - process it [00:13:58]req_shift_open_date [00:13:58]req_shift_open_date done [00:13:58]produce_requested_data done [00:13:58]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201709,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [00:13:58]process_action_free close_receipt [00:13:58]json_value_free [00:13:58]json_value_free done [00:13:58]process_json_proto returns [00:13:58]Send response to host [00:13:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201709,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [00:13:58]free response buf [00:13:58]execute_script done [00:13:58]execute_script returns [00:13:58]free content buf [00:13:58]Sock 8.Close socket [00:13:58]Sock 8.Thread stoped [00:14:02]OFD Sender: No OFD packet to send [00:14:07]OFD Sender: No OFD packet to send [00:14:12]OFD Sender: No OFD packet to send [00:14:17]OFD Sender: No OFD packet to send [00:14:22]OFD Sender: No OFD packet to send [00:14:27]OFD Sender: No OFD packet to send [00:14:32]OFD Sender: No OFD packet to send [00:14:37]OFD Sender: No OFD packet to send [00:14:42]OFD Sender: No OFD packet to send [00:14:47]OFD Sender: No OFD packet to send [00:14:52]OFD Sender: No OFD packet to send [00:14:57]OFD Sender: No OFD packet to send [00:15:02]OFD Sender: No OFD packet to send [00:15:07]OFD Sender: No OFD packet to send [00:15:12]OFD Sender: No OFD packet to send [00:15:17]OFD Sender: No OFD packet to send [00:15:22]OFD Sender: No OFD packet to send [00:15:27]OFD Sender: No OFD packet to send [00:15:32]OFD Sender: No OFD packet to send [00:15:37]OFD Sender: No OFD packet to send [00:15:42]OFD Sender: No OFD packet to send [00:15:43]accept exits with 9 [00:15:43]New connection [00:15:43]New thread 3066936676 created [00:15:43]Thread 3067080036 joined [00:15:43]Waiting for new connection... [00:15:43] Sock 9.Parse request [00:15:43]Sock 9.Check first char [00:15:43]Sock 9.First char is OK [00:15:43]request: POST /json_proto HTTP/1.0 [00:15:43]Method: POST [00:15:43]URL: /json_proto [00:15:43]Method is POST - this is cgi request [00:15:43]url: /json_proto [00:15:43]query_string will be loaded in cgi processing [00:15:43]execute_cgi json_proto POST (null) [00:15:43]execute_cgi path=json_proto method=POST [00:15:43]POST find Content-Length [00:15:43]Host: 172.17.63.195:8080 [00:15:43]Content-Length: 760 [00:15:43]Content-Type: application/json [00:15:43] [00:15:43]POST finish read [00:15:43]Found Content-Length = 760 [00:15:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 13.160, "sum" : 900.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 900.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:43]execute_script... [00:15: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)449466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 13.160, "sum" : 900.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 900.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:43]POST & json_proto [00:15:43]process_json_proto [00:15:43]json parsed OK: [00:15:43]protocol is kg_v1.0 [00:15:43]action value=close_receipt [00:15:43]process_action close_receipt [00:15:43]cmd_close_receipt [00:15:43]MH_GetDate [00:15:43]Write to MH i2c: F0 00 00 E9 06 DE [00:15:43]Write i2c OK [00:15:43]MH_I2C_Read... [00:15:43]Read from MH i2c: F0 [00:15:43]MH_I2C_Read... [00:15:43]Read from MH i2c: F0 09 00 [00:15:43]MH_I2C_Read... [00:15:43]Read from MH i2c: F0 09 00 E9 06 00 31 86 1D 67 68 46 19 67 50 [00:15:43]GetLastDocTimeStamp 1729988036 [00:15:43]current date 1729988145 [00:15:43]FM_GetShiftState [00:15:43]SAM_PROTO_GetShiftState [00:15:43]wFMCommunicate request_size=4 [00:15:43]MH_SAM_APDU [00:15:43]CAPDU: 80 13 01 00 [00:15:43]Write to MH i2c: E2 08 00 EA 06 80 13 01 00 00 00 00 00 6D [00:15:43]Write i2c OK [00:15:43]MH_I2C_Read... [00:15:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:43]Read from MH i2c: E2 [00:15:43]MH_I2C_Read... [00:15:43]Read from MH i2c: E2 0E 00 [00:15:43]MH_I2C_Read... [00:15:43]Read from MH i2c: E2 0E 00 EA 06 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 6F [00:15:43]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [00:15:43]wFMCommunicate OK [00:15:43]SAM_PROTO_GetShiftState done [00:15:43]FM_GetShiftState done [00:15:43]opened in 1729987312 [00:15:43]opened+sec_in_day 1730073712 [00:15:43]quantity*price = 90014 [00:15:43]sum+1 = 90015 [00:15:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 900.14 НСП 1% : 7.97 НДС 12% : 95.59 Наличными: 0.00 Безнал.: 900.14 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 2 27.10.2024 00:15 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201710 ФПД: 270462474206531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T001545&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201710&fm=270462474206531&tin=02508201610067®Number=0000000000091777&sum=90014 [00:15:44]StoreToDocumentArchive [00:15:44]shift 544 fd 201710 [00:15:44]save to /storage/0544/doc_00201710 [00:15:44]save last doc name /storage/0544/doc_00201710 to /storage/kkm_last_doc_name [00:15:44]save OK [00:15:44]Clear old archive folders... [00:15:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:15:45]tlvbuf is 0009C230 [00:15:45]SAM_PROTO_ClearQueue [00:15:45]wFMCommunicate request_size=4 [00:15:45]MH_SAM_APDU [00:15:45]CAPDU: 80 09 00 00 [00:15:45]Write to MH i2c: E2 08 00 F7 06 80 09 00 00 00 00 00 00 6F [00:15:45]Write i2c OK [00:15:45]MH_I2C_Read... [00:15:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:15:45]Read from MH i2c: E2 [00:15:45]MH_I2C_Read... [00:15:45]Read from MH i2c: E2 03 00 [00:15:45]MH_I2C_Read... [00:15:45]Read from MH i2c: E2 03 00 F7 06 00 90 00 71 [00:15:45]RAPDU: 90 00 [00:15:45]wFMCommunicate OK [00:15:45]SAM_PROTO_ClearQueue done [00:15:45]KKMCreateOFDPacket [00:15:45]OFDProtocolAddRootSTLVToBuf [00:15:45]FM_MakeSignedData [00:15:45]FM_MakeSignedData [00:15:45]SAM_PROTO_SignData [00:15:45]wFMCommunicate request_size=4 [00:15:45]MH_SAM_APDU [00:15:45]CAPDU: 80 0D 01 02 [00:15:45]Write to MH i2c: E2 08 00 F8 06 80 0D 01 02 00 00 00 00 77 [00:15:45]Write i2c OK [00:15:45]MH_I2C_Read... [00:15:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:15:45]Read from MH i2c: E2 [00:15:45]MH_I2C_Read... [00:15:45]Read from MH i2c: E2 03 00 [00:15:45]MH_I2C_Read... [00:15:45]Read from MH i2c: E2 03 00 F8 06 00 90 00 72 [00:15:45]RAPDU: 90 00 [00:15:45]wFMCommunicate OK [00:15:45]wFMCommunicate request_size=255 [00:15:45]MH_SAM_APDU [00:15:45]CAPDU: 80 0D 02 02 FA 03 00 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 68 33 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9E 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 31 86 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EE 13 03 00 35 04 06 00 [00:15:45]Write to MH i2c: E2 02 01 F9 06 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 68 33 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9E 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 31 86 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EE 13 03 00 35 04 06 00 00 00 8C [00:15:45]Write i2c OK [00:15:45]MH_I2C_Read... [00:15:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:15:45]Read from MH i2c: E2 [00:15:45]MH_I2C_Read... [00:15:45]Read from MH i2c: E2 03 00 [00:15:45]MH_I2C_Read... [00:15:45]Read from MH i2c: E2 03 00 F9 06 00 90 00 73 [00:15:45]RAPDU: 90 00 [00:15:45]wFMCommunicate OK [00:15:45]wFMCommunicate request_size=11 [00:15:45]MH_SAM_APDU [00:15:45]CAPDU: 80 0D 02 02 06 F5 FB F3 B3 3D 43 [00:15:45]Write to MH i2c: E2 0E 00 FA 06 80 0D 02 02 06 00 F5 FB F3 B3 3D 43 00 00 9C [00:15:45]Write i2c OK [00:15:45]MH_I2C_Read... [00:15:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:15:45]Read from MH i2c: E2 [00:15:45]MH_I2C_Read... [00:15:45]Read from MH i2c: E2 03 00 [00:15:45]MH_I2C_Read... [00:15:45]Read from MH i2c: E2 03 00 FA 06 00 90 00 74 [00:15:45]RAPDU: 90 00 [00:15:45]wFMCommunicate OK [00:15:45]wFMCommunicate request_size=4 [00:15:45]MH_SAM_APDU [00:15:45]CAPDU: 80 0D 03 02 [00:15:45]Write to MH i2c: E2 08 00 FB 06 80 0D 03 02 00 00 00 00 7C [00:15:45]Write i2c OK [00:15:45]MH_I2C_Read... [00:15:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:15:45]Read from MH i2c: E2 [00:15:45]MH_I2C_Read... [00:15:45]Read from MH i2c: E2 0B 00 [00:15:45]MH_I2C_Read... [00:15:45]Read from MH i2c: E2 0B 00 FB 06 00 18 26 59 42 E5 81 31 2F 90 00 1C [00:15:45]RAPDU: 18 26 59 42 E5 81 31 2F 90 00 [00:15:45]wFMCommunicate OK [00:15:45]SAM_PROTO_SignData done [00:15:45]FM_MakeSignedData done [00:15:45]CreateOFDProtocolMessage [00:15:45]wFMCommunicate request_size=4 [00:15:45]MH_SAM_APDU [00:15:45]CAPDU: 80 11 00 00 [00:15:45]Write to MH i2c: E2 08 00 FC 06 80 11 00 00 00 00 00 00 7C [00:15:45]Write i2c OK [00:15:45]MH_I2C_Read... [00:15:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:15:45]Read from MH i2c: E2 [00:15:45]MH_I2C_Read... [00:15:45]Read from MH i2c: E2 17 00 [00:15:45]MH_I2C_Read... [00:15:45]Read from MH i2c: E2 17 00 FC 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 D1 [00:15:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [00:15:45]wFMCommunicate OK [00:15:45]CreateOFDProtocolMessage done [00:15:45]OFDSenderStorePacket 201710 [00:15:45]StoreOFDPacket docnum=201710 [00:15:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 87 26 08 01 98 40 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 68 33 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9E 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 31 86 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EE 13 03 00 35 04 06 00 F5 FB F3 B3 3D 43 18 26 59 42 E5 81 31 2F [00:15:45]CheckFolder [00:15:45]dirname=/storage/ofd_packets [00:15:45]CheckFolder done [00:15:45]ProducePacketName [00:15:45]name=ofd_packets/00201710 [00:15:45]NVStorageSaveData ofd_packets/00201710 [00:15:45]File name is /storage/ofd_packets/00201710 [00:15:45]Write 302 bytes [00:15:45]NVStorageSaveData done [00:15:45]OFDSenderStorePacket done [00:15:45]KKMCreateOFDPacket done [00:15:45]NVStorageSaveData kkm_last_timestamp [00:15:45]File name is /storage/kkm_last_timestamp [00:15:45]Write 4 bytes [00:15:45]NVStorageSaveData done [00:15:45]ExternCall_PrintAddStr [00:15:45]wPrintStart [00:15:45]Write to MH i2c: 01 00 00 FD 06 03 [00:15:45]Write i2c OK [00:15:45]MH_I2C_Read... [00:15:45]Read from MH i2c: 01 [00:15:45]MH_I2C_Read... [00:15:45]Read from MH i2c: 01 07 00 [00:15:45]MH_I2C_Read... [00:15:45]Read from MH i2c: 01 07 00 FD 06 00 00 00 00 00 FF 0F 18 [00:15:45]RasterBufferAndPrint [00:15:45]line Счет N : (1)449466 [00:15:45]line ИНН: 02508201610067 [00:15:45]line Контрольно-Кассовый Чек [00:15:45]line ПРОДАЖА [00:15:45]line ТРК (МРК, ГНК) : 53 [00:15:45]line Товар: 2710124130 [00:15:45]line SUPER 92-К-5 [00:15:45]line 13.160 * 68.40 [00:15:45]line = 900.14 [00:15:45]line НДС 12% НСП 1% [00:15:45]line > о реализуемом товаре [00:15:45]line ИТОГО: 900.14 [00:15:45]line НСП 1% : 7.97 [00:15:45]line НДС 12% : 95.59 [00:15:45]line Наличными: 0.00 [00:15:45]line Безнал.: 900.14 [00:15:45]line Место: АЗС № 171 "Партнер Нефть" [00:15:45]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [00:15:45]line СНО: Общий режим [00:15:45]line Чек 2 27.10.2024 00:15 [00:15:45]line Смена: 544 ФФД: 1.0 [00:15:45]line ЗНМ: 0300000109 [00:15:45]line РНМ: 0000000000091777 [00:15:45]line Версия ККМ: 001 [00:15:45]line Платежная система: Mbank [00:15:45]line ФМ: 0000000000871756 [00:15:45]line ФД: 201710 [00:15:45]line ФПД: 270462474206531 [00:15:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T001545&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201710&fm=270462474206531&tin=02508201610067®Number=0000000000091777&sum=90014 [00:15:45]written 0, free lines is 4095 [00:15:45]OFD Sender: Processing packet 201710 [packets to send 112, broken 111] [00:15:45]ProducePacketName [00:15:45]name=ofd_packets/00201710 [00:15:45]OFD Sender: To server: pG, [00:15:45]CommunicateWithHost lk.salyk.kg:30040 [00:15:45]ConnectInit lk.salyk.kg [00:15:45]Connected sock=8 [00:15:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 01 00 00 87 26 08 01 98 40 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 68 33 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9E 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 31 86 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EE 13 03 00 35 04 06 00 F5 FB F3 B3 3D 43 18 26 59 42 E5 81 31 2F [00:15:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 A1 9D 47 00 3B 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 38 37 31 37 35 36 10 04 04 00 EE 13 03 00 F4 03 04 00 D8 31 1D 67 B6 04 01 00 00 A1 D4 AE 8B 03 24 A2 77 [00:15:45]CommunicateWithHost err = 0 [00:15:45]CheckOFDResponse [00:15:45]1017 (14) - 77093643461234 [00:15:45]1041 (16) - 0000000000871756 [00:15:45]1040 (4) - 201710 [00:15:45]1012 (4) - 26.10.2024 18:15 [00:15:45]1206 (1) - 0 [00:15:45]OFD Sender: Remove packet 201710 [00:15:45]ProducePacketName [00:15:45]name=ofd_packets/00201710 [00:15:45]NVStorageDeleteData [00:15:45]Write to MH i2c: 01 00 00 26 07 2D [00:15:45]Write i2c OK [00:15:45]MH_I2C_Read... [00:15:45]Read from MH i2c: 01 [00:15:45]MH_I2C_Read... [00:15:45]Read from MH i2c: 01 07 00 [00:15:45]MH_I2C_Read... [00:15:46]Read from MH i2c: 01 07 00 26 07 00 00 00 00 00 BF 0C FF [00:15:46]RasterBufferAndPrint [00:15:46]line [00:15:46]line [00:15:46]line [00:15:46]line [00:15:46]line [00:15:46]written 0, free lines is 3269 [00:15:46]MH_Cut [00:15:46]Write to MH i2c: D1 01 00 2D 07 01 06 [00:15:46]Write i2c OK [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: D1 [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: D1 01 00 [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: D1 01 00 2D 07 00 05 [00:15:46]Write to MH i2c: 01 00 00 2E 07 35 [00:15:46]Write i2c OK [00:15:46]MH_I2C_Read... [00:15:46]OFD Sender: No OFD packet to send [00:15:46]*** Cut start [00:15:46]*** Purtial cut [00:15:46]*** Stage 1: CUTSNS_PIN = 1 [00:15:47]Read from MH i2c: 01 [00:15:47]MH_I2C_Read... [00:15:47]*** Stop cut motor [00:15:47]*** Cut end [00:15:47]Read from MH i2c: 01 07 00 [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: 01 07 00 2E 07 00 00 00 00 00 FF 0F 4A [00:15:47]process_action close_receipt done [00:15:47]requested_data is exist [00:15:47]produce_requested_data [00:15:47]requested_item fm.sn is exist - process it [00:15:47]wFMCommunicate request_size=4 [00:15:47]MH_SAM_APDU [00:15:47]CAPDU: 80 11 00 00 [00:15:47]Write to MH i2c: E2 08 00 2F 07 80 11 00 00 00 00 00 00 B0 [00:15:47]Write i2c OK [00:15:47]MH_I2C_Read... [00:15:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:15:47]Read from MH i2c: E2 [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: E2 17 00 [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: E2 17 00 2F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 05 [00:15:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [00:15:47]wFMCommunicate OK [00:15:47]requested_item fd.num is exist - process it [00:15:47]SAM_PROTO_GetFieldsCounters [00:15:47]wFMCommunicate request_size=4 [00:15:47]MH_SAM_APDU [00:15:47]CAPDU: 80 13 00 00 [00:15:47]Write to MH i2c: E2 08 00 30 07 80 13 00 00 00 00 00 00 B3 [00:15:47]Write i2c OK [00:15:47]MH_I2C_Read... [00:15:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:15:47]Read from MH i2c: E2 [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: E2 62 00 [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: E2 62 00 30 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EE 13 03 00 0E 04 04 00 20 02 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 08 [00:15:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EE 13 03 00 0E 04 04 00 20 02 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:15:47]wFMCommunicate OK [00:15:47]SAM_PROTO_GetFieldsCounters done [00:15:47]requested_item shift.num is exist - process it [00:15:47]requested_item shift.opened is exist - process it [00:15:47]req_shift_opened [00:15:47]FM_GetShiftState [00:15:47]SAM_PROTO_GetShiftState [00:15:47]wFMCommunicate request_size=4 [00:15:47]MH_SAM_APDU [00:15:47]CAPDU: 80 13 01 00 [00:15:47]Write to MH i2c: E2 08 00 31 07 80 13 01 00 00 00 00 00 B5 [00:15:47]Write i2c OK [00:15:47]MH_I2C_Read... [00:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:47]Read from MH i2c: E2 [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: E2 0E 00 [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: E2 0E 00 31 07 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B7 [00:15:47]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [00:15:47]wFMCommunicate OK [00:15:47]SAM_PROTO_GetShiftState done [00:15:47]FM_GetShiftState done [00:15:47]req_shift_opened done [00:15:47]requested_item shift.open_date is exist - process it [00:15:47]req_shift_open_date [00:15:47]req_shift_open_date done [00:15:47]produce_requested_data done [00:15:47]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201710,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [00:15:47]process_action_free close_receipt [00:15:47]json_value_free [00:15:47]json_value_free done [00:15:47]process_json_proto returns [00:15:47]Send response to host [00:15:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201710,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [00:15:47]free response buf [00:15:47]execute_script done [00:15:47]execute_script returns [00:15:47]free content buf [00:15:47]Sock 9.Close socket [00:15:47]Sock 9.Thread stoped [00:15:51]OFD Sender: No OFD packet to send [00:15:56]OFD Sender: No OFD packet to send [00:16:01]OFD Sender: No OFD packet to send [00:16:06]OFD Sender: No OFD packet to send [00:16:11]OFD Sender: No OFD packet to send [00:16:16]OFD Sender: No OFD packet to send [00:16:21]OFD Sender: No OFD packet to send [00:16:26]OFD Sender: No OFD packet to send [00:16:31]OFD Sender: No OFD packet to send [00:16:36]OFD Sender: No OFD packet to send [00:16:41]OFD Sender: No OFD packet to send [00:16:46]OFD Sender: No OFD packet to send [00:16:51]OFD Sender: No OFD packet to send [00:16:56]OFD Sender: No OFD packet to send [00:17:01]OFD Sender: No OFD packet to send [00:17:06]OFD Sender: No OFD packet to send [00:17:11]OFD Sender: No OFD packet to send [00:17:16]OFD Sender: No OFD packet to send [00:17:21]OFD Sender: No OFD packet to send [00:17:26]OFD Sender: No OFD packet to send [00:17:31]OFD Sender: No OFD packet to send [00:17:36]OFD Sender: No OFD packet to send [00:17:41]OFD Sender: No OFD packet to send [00:17:46]OFD Sender: No OFD packet to send [00:17:51]OFD Sender: No OFD packet to send [00:17:56]OFD Sender: No OFD packet to send [00:18:01]OFD Sender: No OFD packet to send [00:18:06]OFD Sender: No OFD packet to send [00:18:11]OFD Sender: No OFD packet to send [00:18:16]OFD Sender: No OFD packet to send [00:18:21]OFD Sender: No OFD packet to send [00:18:26]OFD Sender: No OFD packet to send [00:18:31]OFD Sender: No OFD packet to send [00:18:36]OFD Sender: No OFD packet to send [00:18:41]OFD Sender: No OFD packet to send [00:18:46]OFD Sender: No OFD packet to send [00:18:51]OFD Sender: No OFD packet to send [00:18:56]OFD Sender: No OFD packet to send [00:19:01]OFD Sender: No OFD packet to send [00:19:06]OFD Sender: No OFD packet to send [00:19:11]OFD Sender: No OFD packet to send [00:19:16]OFD Sender: No OFD packet to send [00:19:21]OFD Sender: No OFD packet to send [00:19:26]OFD Sender: No OFD packet to send [00:19:31]OFD Sender: No OFD packet to send [00:19:36]OFD Sender: No OFD packet to send [00:19:41]OFD Sender: No OFD packet to send [00:19:46]OFD Sender: No OFD packet to send [00:19:51]OFD Sender: No OFD packet to send [00:19:56]OFD Sender: No OFD packet to send [00:20:01]OFD Sender: No OFD packet to send [00:20:06]OFD Sender: No OFD packet to send [00:20:11]OFD Sender: No OFD packet to send [00:20:16]OFD Sender: No OFD packet to send [00:20:21]OFD Sender: No OFD packet to send [00:20:26]OFD Sender: No OFD packet to send [00:20:31]OFD Sender: No OFD packet to send [00:20:36]OFD Sender: No OFD packet to send [00:20:41]OFD Sender: No OFD packet to send [00:20:46]OFD Sender: No OFD packet to send [00:20:51]OFD Sender: No OFD packet to send [00:20:56]OFD Sender: No OFD packet to send [00:21:01]OFD Sender: No OFD packet to send [00:21:06]OFD Sender: No OFD packet to send [00:21:11]OFD Sender: No OFD packet to send [00:21:16]OFD Sender: No OFD packet to send [00:21:21]OFD Sender: No OFD packet to send [00:21:26]OFD Sender: No OFD packet to send [00:21:31]OFD Sender: No OFD packet to send [00:21:36]OFD Sender: No OFD packet to send [00:21:41]OFD Sender: No OFD packet to send [00:21:46]OFD Sender: No OFD packet to send [00:21:51]OFD Sender: No OFD packet to send [00:21:56]OFD Sender: No OFD packet to send [00:22:01]OFD Sender: No OFD packet to send [00:22:06]OFD Sender: No OFD packet to send [00:22:11]OFD Sender: No OFD packet to send [00:22:16]OFD Sender: No OFD packet to send [00:22:21]OFD Sender: No OFD packet to send [00:22:26]OFD Sender: No OFD packet to send [00:22:31]OFD Sender: No OFD packet to send [00:22:36]OFD Sender: No OFD packet to send [00:22:41]OFD Sender: No OFD packet to send [00:22:46]OFD Sender: No OFD packet to send [00:22:51]OFD Sender: No OFD packet to send [00:22:56]OFD Sender: No OFD packet to send [00:23:01]OFD Sender: No OFD packet to send [00:23:06]OFD Sender: No OFD packet to send [00:23:11]OFD Sender: No OFD packet to send [00:23:16]OFD Sender: No OFD packet to send [00:23:21]OFD Sender: No OFD packet to send [00:23:26]OFD Sender: No OFD packet to send [00:23:31]OFD Sender: No OFD packet to send [00:23:36]OFD Sender: No OFD packet to send [00:23:41]OFD Sender: No OFD packet to send [00:23:46]OFD Sender: No OFD packet to send [00:23:51]OFD Sender: No OFD packet to send [00:23:56]OFD Sender: No OFD packet to send [00:24:01]OFD Sender: No OFD packet to send [00:24:06]OFD Sender: No OFD packet to send [00:24:11]OFD Sender: No OFD packet to send [00:24:16]OFD Sender: No OFD packet to send [00:24:21]OFD Sender: No OFD packet to send [00:24:26]OFD Sender: No OFD packet to send [00:24:32]OFD Sender: No OFD packet to send [00:24:37]OFD Sender: No OFD packet to send [00:24:42]OFD Sender: No OFD packet to send [00:24:47]OFD Sender: No OFD packet to send [00:24:52]OFD Sender: No OFD packet to send [00:24:57]OFD Sender: No OFD packet to send [00:25:02]OFD Sender: No OFD packet to send [00:25:07]OFD Sender: No OFD packet to send [00:25:12]OFD Sender: No OFD packet to send [00:25:17]OFD Sender: No OFD packet to send [00:25:22]OFD Sender: No OFD packet to send [00:25:27]OFD Sender: No OFD packet to send [00:25:32]OFD Sender: No OFD packet to send [00:25:37]OFD Sender: No OFD packet to send [00:25:42]OFD Sender: No OFD packet to send [00:25:47]OFD Sender: No OFD packet to send [00:25:52]OFD Sender: No OFD packet to send [00:25:57]OFD Sender: No OFD packet to send [00:26:02]OFD Sender: No OFD packet to send [00:26:07]OFD Sender: No OFD packet to send [00:26:12]OFD Sender: No OFD packet to send [00:26:17]OFD Sender: No OFD packet to send [00:26:22]OFD Sender: No OFD packet to send [00:26:27]OFD Sender: No OFD packet to send [00:26:32]OFD Sender: No OFD packet to send [00:26:37]OFD Sender: No OFD packet to send [00:26:42]OFD Sender: No OFD packet to send [00:26:47]OFD Sender: No OFD packet to send [00:26:52]OFD Sender: No OFD packet to send [00:26:57]OFD Sender: No OFD packet to send [00:27:02]OFD Sender: No OFD packet to send [00:27:07]OFD Sender: No OFD packet to send [00:27:12]OFD Sender: No OFD packet to send [00:27:17]OFD Sender: No OFD packet to send [00:27:22]OFD Sender: No OFD packet to send [00:27:27]OFD Sender: No OFD packet to send [00:27:32]OFD Sender: No OFD packet to send [00:27:37]OFD Sender: No OFD packet to send [00:27:42]OFD Sender: No OFD packet to send [00:27:47]OFD Sender: No OFD packet to send [00:27:52]OFD Sender: No OFD packet to send [00:27:57]OFD Sender: No OFD packet to send [00:28:02]OFD Sender: No OFD packet to send [00:28:07]OFD Sender: No OFD packet to send [00:28:12]OFD Sender: No OFD packet to send [00:28:17]OFD Sender: No OFD packet to send [00:28:22]OFD Sender: No OFD packet to send [00:28:27]OFD Sender: No OFD packet to send [00:28:32]OFD Sender: No OFD packet to send [00:28:37]OFD Sender: No OFD packet to send [00:28:42]OFD Sender: No OFD packet to send [00:28:47]OFD Sender: No OFD packet to send [00:28:52]OFD Sender: No OFD packet to send [00:28:57]OFD Sender: No OFD packet to send [00:29:02]OFD Sender: No OFD packet to send [00:29:07]OFD Sender: No OFD packet to send [00:29:12]OFD Sender: No OFD packet to send [00:29:17]OFD Sender: No OFD packet to send [00:29:22]OFD Sender: No OFD packet to send [00:29:27]OFD Sender: No OFD packet to send [00:29:32]OFD Sender: No OFD packet to send [00:29:37]OFD Sender: No OFD packet to send [00:29:42]OFD Sender: No OFD packet to send [00:29:47]OFD Sender: No OFD packet to send [00:29:52]OFD Sender: No OFD packet to send [00:29:57]OFD Sender: No OFD packet to send [00:30:02]OFD Sender: No OFD packet to send [00:30:07]OFD Sender: No OFD packet to send [00:30:12]OFD Sender: No OFD packet to send [00:30:17]OFD Sender: No OFD packet to send [00:30:22]OFD Sender: No OFD packet to send [00:30:27]OFD Sender: No OFD packet to send [00:30:32]OFD Sender: No OFD packet to send [00:30:37]OFD Sender: No OFD packet to send [00:30:42]OFD Sender: No OFD packet to send [00:30:47]OFD Sender: No OFD packet to send [00:30:52]OFD Sender: No OFD packet to send [00:30:57]OFD Sender: No OFD packet to send [00:31:02]OFD Sender: No OFD packet to send [00:31:07]OFD Sender: No OFD packet to send [00:31:12]OFD Sender: No OFD packet to send [00:31:17]OFD Sender: No OFD packet to send [00:31:22]OFD Sender: No OFD packet to send [00:31:27]OFD Sender: No OFD packet to send [00:31:32]OFD Sender: No OFD packet to send [00:31:37]OFD Sender: No OFD packet to send [00:31:42]OFD Sender: No OFD packet to send [00:31:47]OFD Sender: No OFD packet to send [00:31:52]OFD Sender: No OFD packet to send [00:31:57]OFD Sender: No OFD packet to send [00:32:02]OFD Sender: No OFD packet to send [00:32:07]OFD Sender: No OFD packet to send [00:32:12]OFD Sender: No OFD packet to send [00:32:17]OFD Sender: No OFD packet to send [00:32:22]OFD Sender: No OFD packet to send [00:32:27]OFD Sender: No OFD packet to send [00:32:32]OFD Sender: No OFD packet to send [00:32:37]OFD Sender: No OFD packet to send [00:32:42]OFD Sender: No OFD packet to send [00:32:47]OFD Sender: No OFD packet to send [00:32:52]OFD Sender: No OFD packet to send [00:32:57]OFD Sender: No OFD packet to send [00:33:02]OFD Sender: No OFD packet to send [00:33:07]OFD Sender: No OFD packet to send [00:33:12]OFD Sender: No OFD packet to send [00:33:17]OFD Sender: No OFD packet to send [00:33:22]OFD Sender: No OFD packet to send [00:33:27]OFD Sender: No OFD packet to send [00:33:32]OFD Sender: No OFD packet to send [00:33:37]OFD Sender: No OFD packet to send [00:33:42]OFD Sender: No OFD packet to send [00:33:47]OFD Sender: No OFD packet to send [00:33: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:35:02]OFD Sender: No OFD packet to send [00:35:07]OFD Sender: No OFD packet to send [00:35:12]OFD Sender: No OFD packet to send [00:35:17]OFD Sender: No OFD packet to send [00:35:22]OFD Sender: No OFD packet to send [00:35:27]OFD Sender: No OFD packet to send [00:35:32]OFD Sender: No OFD packet to send [00:35:37]OFD Sender: No OFD packet to send [00:35:42]OFD Sender: No OFD packet to send [00:35:47]OFD Sender: No OFD packet to send [00:35:52]OFD Sender: No OFD packet to send [00:35:57]OFD Sender: No OFD packet to send [00:36:02]OFD Sender: No OFD packet to send [00:36:07]OFD Sender: No OFD packet to send [00:36:12]OFD Sender: No OFD packet to send [00:36:17]OFD Sender: No OFD packet to send [00:36:22]OFD Sender: No OFD packet to send [00:36:27]OFD Sender: No OFD packet to send [00:36:32]OFD Sender: No OFD packet to send [00:36:37]OFD Sender: No OFD packet to send [00:36:42]OFD Sender: No OFD packet to send [00:36:47]OFD Sender: No OFD packet to send [00:36:52]OFD Sender: No OFD packet to send [00:36:57]OFD Sender: No OFD packet to send [00:37:02]OFD Sender: No OFD packet to send [00:37:07]OFD Sender: No OFD packet to send [00:37:12]OFD Sender: No OFD packet to send [00:37:17]OFD Sender: No OFD packet to send [00:37:22]OFD Sender: No OFD packet to send [00:37:27]OFD Sender: No OFD packet to send [00:37:32]OFD Sender: No OFD packet to send [00:37:37]OFD Sender: No OFD packet to send [00:37:42]OFD Sender: No OFD packet to send [00:37:47]OFD Sender: No OFD packet to send [00:37:52]OFD Sender: No OFD packet to send [00:37:57]OFD Sender: No OFD packet to send [00:38:02]OFD Sender: No OFD packet to send [00:38:07]OFD Sender: No OFD packet to send [00:38:12]OFD Sender: No OFD packet to send [00:38:17]OFD Sender: No OFD packet to send [00:38:22]OFD Sender: No OFD packet to send [00:38:27]OFD Sender: No OFD packet to send [00:38:32]OFD Sender: No OFD packet to send [00:38:37]OFD Sender: No OFD packet to send [00:38:42]OFD Sender: No OFD packet to send [00:38:47]OFD Sender: No OFD packet to send [00:38:52]OFD Sender: No OFD packet to send [00:38:57]OFD Sender: No OFD packet to send [00:39:02]OFD Sender: No OFD packet to send [00:39:07]OFD Sender: No OFD packet to send [00:39:12]OFD Sender: No OFD packet to send [00:39: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:53]OFD Sender: No OFD packet to send [00:40:58]OFD Sender: No OFD packet to send [00:41:03]OFD Sender: No OFD packet to send [00:41:08]OFD Sender: No OFD packet to send [00:41:13]OFD Sender: No OFD packet to send [00:41:18]OFD Sender: No OFD packet to send [00:41:23]OFD Sender: No OFD packet to send [00:41:28]OFD Sender: No OFD packet to send [00:41:33]OFD Sender: No OFD packet to send [00:41:38]OFD Sender: No OFD packet to send [00:41:43]OFD Sender: No OFD packet to send [00:41:48]OFD Sender: No OFD packet to send [00:41:53]OFD Sender: No OFD packet to send [00:41:58]OFD Sender: No OFD packet to send [00:42:03]OFD Sender: No OFD packet to send [00:42:08]OFD Sender: No OFD packet to send [00:42:13]OFD Sender: No OFD packet to send [00:42:18]OFD Sender: No OFD packet to send [00:42:23]OFD Sender: No OFD packet to send [00:42:28]OFD Sender: No OFD packet to send [00:42:33]OFD Sender: No OFD packet to send [00:42:38]OFD Sender: No OFD packet to send [00:42:43]OFD Sender: No OFD packet to send [00:42:48]OFD Sender: No OFD packet to send [00:42:53]OFD Sender: No OFD packet to send [00:42:58]OFD Sender: No OFD packet to send [00:43:03]OFD Sender: No OFD packet to send [00:43:08]OFD Sender: No OFD packet to send [00:43:13]OFD Sender: No OFD packet to send [00:43:18]OFD Sender: No OFD packet to send [00:43:23]OFD Sender: No OFD packet to send [00:43:28]OFD Sender: No OFD packet to send [00:43:33]OFD Sender: No OFD packet to send [00:43:38]OFD Sender: No OFD packet to send [00:43:43]OFD Sender: No OFD packet to send [00:43:48]OFD Sender: No OFD packet to send [00:43:53]OFD Sender: No OFD packet to send [00:43:58]OFD Sender: No OFD packet to send [00:44:03]OFD Sender: No OFD packet to send [00:44:08]OFD Sender: No OFD packet to send [00:44:13]OFD Sender: No OFD packet to send [00:44:18]OFD Sender: No OFD packet to send [00:44:23]OFD Sender: No OFD packet to send [00:44:28]OFD Sender: No OFD packet to send [00:44:33]OFD Sender: No OFD packet to send [00:44:38]OFD Sender: No OFD packet to send [00:44:43]OFD Sender: No OFD packet to send [00:44:48]OFD Sender: No OFD packet to send [00:44:53]OFD Sender: No OFD packet to send [00:44:58]OFD Sender: No OFD packet to send [00:45:03]OFD Sender: No OFD packet to send [00:45:08]OFD Sender: No OFD packet to send [00:45:13]OFD Sender: No OFD packet to send [00:45:18]OFD Sender: No OFD packet to send [00:45:23]OFD Sender: No OFD packet to send [00:45:28]OFD Sender: No OFD packet to send [00:45:33]OFD Sender: No OFD packet to send [00:45:38]OFD Sender: No OFD packet to send [00:45:43]OFD Sender: No OFD packet to send [00:45:44]accept exits with 10 [00:45:44]New connection [00:45:44]New thread 3067080036 created [00:45:44]Thread 3066936676 joined [00:45:44]Waiting for new connection... [00:45:44] Sock 10.Parse request [00:45:44]Sock 10.Check first char [00:45:44]Sock 10.First char is OK [00:45:44]request: POST /json_proto HTTP/1.0 [00:45:44]Method: POST [00:45:44]URL: /json_proto [00:45:44]Method is POST - this is cgi request [00:45:44]url: /json_proto [00:45:44]query_string will be loaded in cgi processing [00:45:44]execute_cgi json_proto POST (null) [00:45:44]execute_cgi path=json_proto method=POST [00:45:44]POST find Content-Length [00:45:44]Host: 172.17.63.195:8080 [00:45:44]Content-Length: 679 [00:45:44]Content-Type: application/json [00:45:44] [00:45:44]POST finish read [00:45:44]Found Content-Length = 679 [00:45:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [00:45:44]execute_script... [00:45:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [00:45:44]POST & json_proto [00:45:44]process_json_proto [00:45:44]json parsed OK: [00:45:44]protocol is kg_v1.0 [00:45:44]action value=close_receipt [00:45:44]process_action close_receipt [00:45:44]cmd_close_receipt [00:45:44]MH_GetDate [00:45:44]Write to MH i2c: F0 00 00 32 07 28 [00:45:44]Write i2c OK [00:45:44]MH_I2C_Read... [00:45:44]Read from MH i2c: F0 [00:45:44]MH_I2C_Read... [00:45:44]Read from MH i2c: F0 09 00 [00:45:44]MH_I2C_Read... [00:45:44]Read from MH i2c: F0 09 00 32 07 00 3A 8D 1D 67 68 46 19 67 AA [00:45:44]GetLastDocTimeStamp 1729988145 [00:45:44]current date 1729989946 [00:45:44]FM_GetShiftState [00:45:44]SAM_PROTO_GetShiftState [00:45:44]wFMCommunicate request_size=4 [00:45:44]MH_SAM_APDU [00:45:44]CAPDU: 80 13 01 00 [00:45:44]Write to MH i2c: E2 08 00 33 07 80 13 01 00 00 00 00 00 B7 [00:45:44]Write i2c OK [00:45:44]MH_I2C_Read... [00:45:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:44]Read from MH i2c: E2 [00:45:44]MH_I2C_Read... [00:45:44]Read from MH i2c: E2 0E 00 [00:45:44]MH_I2C_Read... [00:45:44]Read from MH i2c: E2 0E 00 33 07 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 B9 [00:45:44]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [00:45:44]wFMCommunicate OK [00:45:44]SAM_PROTO_GetShiftState done [00:45:44]FM_GetShiftState done [00:45:44]opened in 1729987312 [00:45:44]opened+sec_in_day 1730073712 [00:45:44]quantity*price = 100050 [00:45:44]sum+1 = 100052 [00:45:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 3 27.10.2024 00:45 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201711 ФПД: 214988258500952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T004546&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201711&fm=214988258500952&tin=02508201610067®Number=0000000000091777&sum=100000 [00:45:45]StoreToDocumentArchive [00:45:45]shift 544 fd 201711 [00:45:45]save to /storage/0544/doc_00201711 [00:45:45]save last doc name /storage/0544/doc_00201711 to /storage/kkm_last_doc_name [00:45:45]save OK [00:45:45]Clear old archive folders... [00:45:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:45:45]tlvbuf is 000F2890 [00:45:45]SAM_PROTO_ClearQueue [00:45:45]wFMCommunicate request_size=4 [00:45:45]MH_SAM_APDU [00:45:45]CAPDU: 80 09 00 00 [00:45:45]Write to MH i2c: E2 08 00 40 07 80 09 00 00 00 00 00 00 B9 [00:45:45]Write i2c OK [00:45:45]MH_I2C_Read... [00:45:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:45:45]Read from MH i2c: E2 [00:45:45]MH_I2C_Read... [00:45:45]Read from MH i2c: E2 03 00 [00:45:45]MH_I2C_Read... [00:45:45]Read from MH i2c: E2 03 00 40 07 00 90 00 BB [00:45:45]RAPDU: 90 00 [00:45:45]wFMCommunicate OK [00:45:45]SAM_PROTO_ClearQueue done [00:45:45]KKMCreateOFDPacket [00:45:45]OFDProtocolAddRootSTLVToBuf [00:45:45]FM_MakeSignedData [00:45:45]FM_MakeSignedData [00:45:45]SAM_PROTO_SignData [00:45:45]wFMCommunicate request_size=4 [00:45:45]MH_SAM_APDU [00:45:45]CAPDU: 80 0D 01 02 [00:45:45]Write to MH i2c: E2 08 00 41 07 80 0D 01 02 00 00 00 00 C1 [00:45:45]Write i2c OK [00:45:45]MH_I2C_Read... [00:45:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:45:45]Read from MH i2c: E2 [00:45:45]MH_I2C_Read... [00:45:45]Read from MH i2c: E2 03 00 [00:45:45]MH_I2C_Read... [00:45:45]Read from MH i2c: E2 03 00 41 07 00 90 00 BC [00:45:45]RAPDU: 90 00 [00:45:45]wFMCommunicate OK [00:45:45]wFMCommunicate request_size=255 [00:45:45]MH_SAM_APDU [00:45:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 03 00 00 00 F4 03 04 00 3A 8D 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EF 13 03 00 35 04 06 00 C3 87 DA C7 [00:45:45]Write to MH i2c: E2 02 01 42 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 03 00 00 00 F4 03 04 00 3A 8D 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EF 13 03 00 35 04 06 00 C3 87 DA C7 00 00 AB [00:45:45]Write i2c OK [00:45:45]MH_I2C_Read... [00:45:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:46]Read from MH i2c: E2 [00:45:46]MH_I2C_Read... [00:45:46]Read from MH i2c: E2 03 00 [00:45:46]MH_I2C_Read... [00:45:46]Read from MH i2c: E2 03 00 42 07 00 90 00 BD [00:45:46]RAPDU: 90 00 [00:45:46]wFMCommunicate OK [00:45:46]wFMCommunicate request_size=7 [00:45:46]MH_SAM_APDU [00:45:46]CAPDU: 80 0D 02 02 02 61 58 [00:45:46]Write to MH i2c: E2 0A 00 43 07 80 0D 02 02 02 00 61 58 00 00 81 [00:45:46]Write i2c OK [00:45:46]MH_I2C_Read... [00:45:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:46]Read from MH i2c: E2 [00:45:46]MH_I2C_Read... [00:45:46]Read from MH i2c: E2 03 00 [00:45:46]MH_I2C_Read... [00:45:46]Read from MH i2c: E2 03 00 43 07 00 90 00 BE [00:45:46]RAPDU: 90 00 [00:45:46]wFMCommunicate OK [00:45:46]wFMCommunicate request_size=4 [00:45:46]MH_SAM_APDU [00:45:46]CAPDU: 80 0D 03 02 [00:45:46]Write to MH i2c: E2 08 00 44 07 80 0D 03 02 00 00 00 00 C6 [00:45:46]Write i2c OK [00:45:46]MH_I2C_Read... [00:45:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:45:46]Read from MH i2c: E2 [00:45:46]MH_I2C_Read... [00:45:46]Read from MH i2c: E2 0B 00 [00:45:46]MH_I2C_Read... [00:45:46]Read from MH i2c: E2 0B 00 44 07 00 8B CE 11 CE 88 84 63 1E 90 00 8C [00:45:46]RAPDU: 8B CE 11 CE 88 84 63 1E 90 00 [00:45:46]wFMCommunicate OK [00:45:46]SAM_PROTO_SignData done [00:45:46]FM_MakeSignedData done [00:45:46]CreateOFDProtocolMessage [00:45:46]wFMCommunicate request_size=4 [00:45:46]MH_SAM_APDU [00:45:46]CAPDU: 80 11 00 00 [00:45:46]Write to MH i2c: E2 08 00 45 07 80 11 00 00 00 00 00 00 C6 [00:45:46]Write i2c OK [00:45:46]MH_I2C_Read... [00:45:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:46]Read from MH i2c: E2 [00:45:46]MH_I2C_Read... [00:45:46]Read from MH i2c: E2 17 00 [00:45:46]MH_I2C_Read... [00:45:46]Read from MH i2c: E2 17 00 45 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 1B [00:45:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [00:45:46]wFMCommunicate OK [00:45:46]CreateOFDProtocolMessage done [00:45:46]OFDSenderStorePacket 201711 [00:45:46]StoreOFDPacket docnum=201711 [00:45:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 43 2F 04 01 13 09 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 03 00 00 00 F4 03 04 00 3A 8D 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EF 13 03 00 35 04 06 00 C3 87 DA C7 61 58 8B CE 11 CE 88 84 63 1E [00:45:46]CheckFolder [00:45:46]dirname=/storage/ofd_packets [00:45:46]CheckFolder done [00:45:46]ProducePacketName [00:45:46]name=ofd_packets/00201711 [00:45:46]NVStorageSaveData ofd_packets/00201711 [00:45:46]File name is /storage/ofd_packets/00201711 [00:45:46]Write 298 bytes [00:45:46]NVStorageSaveData done [00:45:46]OFDSenderStorePacket done [00:45:46]KKMCreateOFDPacket done [00:45:46]NVStorageSaveData kkm_last_timestamp [00:45:46]File name is /storage/kkm_last_timestamp [00:45:46]Write 4 bytes [00:45:46]NVStorageSaveData done [00:45:46]ExternCall_PrintAddStr [00:45:46]wPrintStart [00:45:46]Write to MH i2c: 01 00 00 46 07 4D [00:45:46]Write i2c OK [00:45:46]MH_I2C_Read... [00:45:46]Read from MH i2c: 01 [00:45:46]MH_I2C_Read... [00:45:46]Read from MH i2c: 01 07 00 [00:45:46]MH_I2C_Read... [00:45:46]Read from MH i2c: 01 07 00 46 07 00 00 00 00 00 FF 0F 62 [00:45:46]RasterBufferAndPrint [00:45:46]line Счет N : (1)449467 [00:45:46]line ИНН: 02508201610067 [00:45:46]line Контрольно-Кассовый Чек [00:45:46]line ПРОДАЖА [00:45:46]line ТРК (МРК, ГНК) : 21 [00:45:46]line Товар: 2710194210 [00:45:46]line ДТ-К-2 [00:45:46]line 13.130 * 76.20 [00:45:46]line = 1000.51 [00:45:46]line НДС 12% НСП 1% [00:45:46]line > о реализуемом товаре [00:45:46]line ОКРУГЛЕНИЕ: -0.51 [00:45:46]line ИТОГО: 1000.00 [00:45:46]line Внесено: 1000.00 [00:45:46]line СДАЧА: 0.00 [00:45:46]line НСП 1% : 8.85 [00:45:46]line НДС 12% : 106.25 [00:45:46]line Наличными: 1000.00 [00:45:46]line Безнал.: 0.00 [00:45:46]line Место: АЗС № 171 "Партнер Нефть" [00:45:46]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [00:45:46]line СНО: Общий режим [00:45:46]line Чек 3 27.10.2024 00:45 [00:45:46]line Смена: 544 ФФД: 1.0 [00:45:46]line ЗНМ: 0300000109 [00:45:46]line РНМ: 0000000000091777 [00:45:46]line Версия ККМ: 001 [00:45:46]line ФМ: 0000000000871756 [00:45:46]line ФД: 201711 [00:45:46]line ФПД: 214988258500952 [00:45:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T004546&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201711&fm=214988258500952&tin=02508201610067®Number=0000000000091777&sum=100000 [00:45:46]OFD Sender: Processing packet 201711 [packets to send 112, broken 111] [00:45:46]ProducePacketName [00:45:46]name=ofd_packets/00201711 [00:45:46]OFD Sender: To server: pG, [00:45:46]CommunicateWithHost lk.salyk.kg:30040 [00:45:46]ConnectInit lk.salyk.kg [00:45:46]written 0, free lines is 4095 [00:45:46]Connected sock=9 [00:45:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 43 2F 04 01 13 09 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 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 03 00 00 00 F4 03 04 00 3A 8D 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EF 13 03 00 35 04 06 00 C3 87 DA C7 61 58 8B CE 11 CE 88 84 63 1E [00:45:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 23 57 47 00 D0 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 EF 13 03 00 F4 03 04 00 E1 38 1D 67 B6 04 01 00 00 C5 AF 36 C9 28 D7 55 6A [00:45:46]CommunicateWithHost err = 0 [00:45:46]CheckOFDResponse [00:45:46]1017 (14) - 77093643461234 [00:45:46]1041 (16) - 0000000000871756 [00:45:46]1040 (4) - 201711 [00:45:46]1012 (4) - 26.10.2024 18:45 [00:45:46]1206 (1) - 0 [00:45:46]OFD Sender: Remove packet 201711 [00:45:46]ProducePacketName [00:45:46]name=ofd_packets/00201711 [00:45:46]NVStorageDeleteData [00:45:47]Write to MH i2c: 01 00 00 71 07 78 [00:45:47]Write i2c OK [00:45:47]MH_I2C_Read... [00:45:47]Read from MH i2c: 01 [00:45:47]MH_I2C_Read... [00:45:47]Read from MH i2c: 01 07 00 [00:45:47]MH_I2C_Read... [00:45:47]Read from MH i2c: 01 07 00 71 07 00 00 00 00 00 94 0C 1F [00:45:47]RasterBufferAndPrint [00:45:47]line [00:45:47]line [00:45:47]line [00:45:47]line [00:45:47]line [00:45:47]written 0, free lines is 3225 [00:45:47]MH_Cut [00:45:47]Write to MH i2c: D1 01 00 78 07 01 51 [00:45:47]Write i2c OK [00:45:47]MH_I2C_Read... [00:45:47]Read from MH i2c: D1 [00:45:47]MH_I2C_Read... [00:45:47]Read from MH i2c: D1 01 00 [00:45:47]MH_I2C_Read... [00:45:47]Read from MH i2c: D1 01 00 78 07 00 50 [00:45:47]Write to MH i2c: 01 00 00 79 07 80 [00:45:47]Write i2c OK [00:45:47]MH_I2C_Read... [00:45:47]OFD Sender: No OFD packet to send [00:45:47]*** Cut start [00:45:47]*** Purtial cut [00:45:47]*** Stage 1: CUTSNS_PIN = 1 [00:45:48]Read from MH i2c: 01 [00:45:48]MH_I2C_Read... [00:45:48]*** Stop cut motor [00:45:48]*** Cut end [00:45:48]Read from MH i2c: 01 07 00 [00:45:48]MH_I2C_Read... [00:45:48]Read from MH i2c: 01 07 00 79 07 00 00 00 00 00 FF 0F 95 [00:45:48]process_action close_receipt done [00:45:48]requested_data is exist [00:45:48]produce_requested_data [00:45:48]requested_item fm.sn is exist - process it [00:45:48]wFMCommunicate request_size=4 [00:45:48]MH_SAM_APDU [00:45:48]CAPDU: 80 11 00 00 [00:45:48]Write to MH i2c: E2 08 00 7A 07 80 11 00 00 00 00 00 00 FB [00:45:48]Write i2c OK [00:45:48]MH_I2C_Read... [00:45:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:48]Read from MH i2c: E2 [00:45:48]MH_I2C_Read... [00:45:48]Read from MH i2c: E2 17 00 [00:45:48]MH_I2C_Read... [00:45:48]Read from MH i2c: E2 17 00 7A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 50 [00:45:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [00:45:48]wFMCommunicate OK [00:45:48]requested_item fd.num is exist - process it [00:45:48]SAM_PROTO_GetFieldsCounters [00:45:48]wFMCommunicate request_size=4 [00:45:48]MH_SAM_APDU [00:45:48]CAPDU: 80 13 00 00 [00:45:48]Write to MH i2c: E2 08 00 7B 07 80 13 00 00 00 00 00 00 FE [00:45:48]Write i2c OK [00:45:48]MH_I2C_Read... [00:45:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:45:48]Read from MH i2c: E2 [00:45:48]MH_I2C_Read... [00:45:48]Read from MH i2c: E2 62 00 [00:45:48]MH_I2C_Read... [00:45:48]Read from MH i2c: E2 62 00 7B 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EF 13 03 00 0E 04 04 00 20 02 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 57 [00:45:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 EF 13 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:45:48]wFMCommunicate OK [00:45:48]SAM_PROTO_GetFieldsCounters done [00:45:48]requested_item shift.num is exist - process it [00:45:48]requested_item shift.opened is exist - process it [00:45:48]req_shift_opened [00:45:48]FM_GetShiftState [00:45:48]SAM_PROTO_GetShiftState [00:45:48]wFMCommunicate request_size=4 [00:45:48]MH_SAM_APDU [00:45:48]CAPDU: 80 13 01 00 [00:45:48]Write to MH i2c: E2 08 00 7C 07 80 13 01 00 00 00 00 00 00 [00:45:48]Write i2c OK [00:45:48]MH_I2C_Read... [00:45:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:48]Read from MH i2c: E2 [00:45:48]MH_I2C_Read... [00:45:48]Read from MH i2c: E2 0E 00 [00:45:48]MH_I2C_Read... [00:45:48]Read from MH i2c: E2 0E 00 7C 07 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 02 [00:45:48]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [00:45:48]wFMCommunicate OK [00:45:48]SAM_PROTO_GetShiftState done [00:45:48]FM_GetShiftState done [00:45:48]req_shift_opened done [00:45:48]requested_item shift.open_date is exist - process it [00:45:48]req_shift_open_date [00:45:48]req_shift_open_date done [00:45:48]produce_requested_data done [00:45:48]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201711,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [00:45:48]process_action_free close_receipt [00:45:48]json_value_free [00:45:48]json_value_free done [00:45:48]process_json_proto returns [00:45:48]Send response to host [00:45:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201711,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [00:45:48]free response buf [00:45:48]execute_script done [00:45:48]execute_script returns [00:45:48]free content buf [00:45:48]Sock 10.Close socket [00:45:48]Sock 10.Thread stoped [00:45:52]OFD Sender: No OFD packet to send [00:45:57]OFD Sender: No OFD packet to send [00:46:02]OFD Sender: No OFD packet to send [00:46:07]OFD Sender: No OFD packet to send [00:46:12]OFD Sender: No OFD packet to send [00:46:17]OFD Sender: No OFD packet to send [00:46:22]OFD Sender: No OFD packet to send [00:46:27]OFD Sender: No OFD packet to send [00:46:32]OFD Sender: No OFD packet to send [00:46:37]OFD Sender: No OFD packet to send [00:46:42]OFD Sender: No OFD packet to send [00:46:47]OFD Sender: No OFD packet to send [00:46:52]OFD Sender: No OFD packet to send [00:46:57]OFD Sender: No OFD packet to send [00:47:02]OFD Sender: No OFD packet to send [00:47:07]OFD Sender: No OFD packet to send [00:47:12]OFD Sender: No OFD packet to send [00:47:17]OFD Sender: No OFD packet to send [00:47:22]OFD Sender: No OFD packet to send [00:47:27]OFD Sender: No OFD packet to send [00:47:32]OFD Sender: No OFD packet to send [00:47:37]OFD Sender: No OFD packet to send [00:47:42]OFD Sender: No OFD packet to send [00:47:47]OFD Sender: No OFD packet to send [00:47:52]OFD Sender: No OFD packet to send [00:47:57]OFD Sender: No OFD packet to send [00:48:02]OFD Sender: No OFD packet to send [00:48:07]OFD Sender: No OFD packet to send [00:48:12]OFD Sender: No OFD packet to send [00:48:17]OFD Sender: No OFD packet to send [00:48:22]OFD Sender: No OFD packet to send [00:48:27]OFD Sender: No OFD packet to send [00:48:32]OFD Sender: No OFD packet to send [00:48:37]OFD Sender: No OFD packet to send [00:48:42]OFD Sender: No OFD packet to send [00:48:47]OFD Sender: No OFD packet to send [00:48:52]OFD Sender: No OFD packet to send [00:48:57]OFD Sender: No OFD packet to send [00:49:02]OFD Sender: No OFD packet to send [00:49:07]OFD Sender: No OFD packet to send [00:49:12]OFD Sender: No OFD packet to send [00:49:17]OFD Sender: No OFD packet to send [00:49:18]accept exits with 8 [00:49:18]New connection [00:49:18]New thread 3066936676 created [00:49:18]Thread 3067080036 joined [00:49:18]Waiting for new connection... [00:49:18] Sock 8.Parse request [00:49:18]Sock 8.Check first char [00:49:18]Sock 8.First char is OK [00:49:18]request: POST /json_proto HTTP/1.0 [00:49:18]Method: POST [00:49:18]URL: /json_proto [00:49:18]Method is POST - this is cgi request [00:49:18]url: /json_proto [00:49:18]query_string will be loaded in cgi processing [00:49:18]execute_cgi json_proto POST (null) [00:49:18]execute_cgi path=json_proto method=POST [00:49:18]POST find Content-Length [00:49:18]Host: 172.17.63.195:8080 [00:49:18]Content-Length: 674 [00:49:18]Content-Type: application/json [00:49:18] [00:49:18]POST finish read [00:49:18]Found Content-Length = 674 [00:49:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:49:18]execute_script... [00:49:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:49:18]POST & json_proto [00:49:18]process_json_proto [00:49:18]json parsed OK: [00:49:18]protocol is kg_v1.0 [00:49:18]action value=close_receipt [00:49:18]process_action close_receipt [00:49:18]cmd_close_receipt [00:49:18]MH_GetDate [00:49:18]Write to MH i2c: F0 00 00 7D 07 73 [00:49:18]Write i2c OK [00:49:18]MH_I2C_Read... [00:49:18]Read from MH i2c: F0 [00:49:18]MH_I2C_Read... [00:49:18]Read from MH i2c: F0 09 00 [00:49:18]MH_I2C_Read... [00:49:18]Read from MH i2c: F0 09 00 7D 07 00 10 8E 1D 67 68 46 19 67 CC [00:49:18]GetLastDocTimeStamp 1729989946 [00:49:18]current date 1729990160 [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 7E 07 80 13 01 00 00 00 00 00 02 [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 7E 07 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 04 [00:49:19]RAPDU: 09 00 01 F0 82 1D 67 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]opened in 1729987312 [00:49:19]opened+sec_in_day 1730073712 [00:49:19]quantity*price = 50063 [00:49:19]sum+1 = 50064 [00:49:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 4 27.10.2024 00:49 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201712 ФПД: 100367099880066 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T004920&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201712&fm=100367099880066&tin=02508201610067®Number=0000000000091777&sum=50000 [00:49:20]StoreToDocumentArchive [00:49:20]shift 544 fd 201712 [00:49:20]save to /storage/0544/doc_00201712 [00:49:20]save last doc name /storage/0544/doc_00201712 to /storage/kkm_last_doc_name [00:49:20]save OK [00:49:20]Clear old archive folders... [00:49:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:49:20]tlvbuf is 000E4770 [00:49:20]SAM_PROTO_ClearQueue [00:49:20]wFMCommunicate request_size=4 [00:49:20]MH_SAM_APDU [00:49:20]CAPDU: 80 09 00 00 [00:49:20]Write to MH i2c: E2 08 00 8B 07 80 09 00 00 00 00 00 00 04 [00:49:20]Write i2c OK [00:49:20]MH_I2C_Read... [00:49:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:49:20]Read from MH i2c: E2 [00:49:20]MH_I2C_Read... [00:49:20]Read from MH i2c: E2 03 00 [00:49:20]MH_I2C_Read... [00:49:20]Read from MH i2c: E2 03 00 8B 07 00 90 00 06 [00:49:20]RAPDU: 90 00 [00:49:20]wFMCommunicate OK [00:49:20]SAM_PROTO_ClearQueue done [00:49:20]KKMCreateOFDPacket [00:49:20]OFDProtocolAddRootSTLVToBuf [00:49:20]FM_MakeSignedData [00:49:20]FM_MakeSignedData [00:49:20]SAM_PROTO_SignData [00:49:20]wFMCommunicate request_size=4 [00:49:20]MH_SAM_APDU [00:49:20]CAPDU: 80 0D 01 02 [00:49:20]Write to MH i2c: E2 08 00 8C 07 80 0D 01 02 00 00 00 00 0C [00:49:20]Write i2c OK [00:49:20]MH_I2C_Read... [00:49:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:49:20]Read from MH i2c: E2 [00:49:20]MH_I2C_Read... [00:49:20]Read from MH i2c: E2 03 00 [00:49:20]MH_I2C_Read... [00:49:20]Read from MH i2c: E2 03 00 8C 07 00 90 00 07 [00:49:20]RAPDU: 90 00 [00:49:20]wFMCommunicate OK [00:49:20]wFMCommunicate request_size=255 [00:49:20]MH_SAM_APDU [00:49:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 04 00 00 00 F4 03 04 00 10 8E 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F0 13 03 00 35 04 06 00 5B 48 89 55 [00:49:20]Write to MH i2c: E2 02 01 8D 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 04 00 00 00 F4 03 04 00 10 8E 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F0 13 03 00 35 04 06 00 5B 48 89 55 00 00 ED [00:49:20]Write i2c OK [00:49:20]MH_I2C_Read... [00:49:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:49:20]Read from MH i2c: E2 [00:49:20]MH_I2C_Read... [00:49:20]Read from MH i2c: E2 03 00 [00:49:20]MH_I2C_Read... [00:49:20]Read from MH i2c: E2 03 00 8D 07 00 90 00 08 [00:49:20]RAPDU: 90 00 [00:49:20]wFMCommunicate OK [00:49:20]wFMCommunicate request_size=7 [00:49:20]MH_SAM_APDU [00:49:20]CAPDU: 80 0D 02 02 02 E2 82 [00:49:20]Write to MH i2c: E2 0A 00 8E 07 80 0D 02 02 02 00 E2 82 00 00 77 [00:49:20]Write i2c OK [00:49:20]MH_I2C_Read... [00:49:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:49:20]Read from MH i2c: E2 [00:49:20]MH_I2C_Read... [00:49:20]Read from MH i2c: E2 03 00 [00:49:20]MH_I2C_Read... [00:49:20]Read from MH i2c: E2 03 00 8E 07 00 90 00 09 [00:49:20]RAPDU: 90 00 [00:49:20]wFMCommunicate OK [00:49:20]wFMCommunicate request_size=4 [00:49:20]MH_SAM_APDU [00:49:20]CAPDU: 80 0D 03 02 [00:49:20]Write to MH i2c: E2 08 00 8F 07 80 0D 03 02 00 00 00 00 11 [00:49:20]Write i2c OK [00:49:20]MH_I2C_Read... [00:49:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:49:20]Read from MH i2c: E2 [00:49:20]MH_I2C_Read... [00:49:20]Read from MH i2c: E2 0B 00 [00:49:20]MH_I2C_Read... [00:49:20]Read from MH i2c: E2 0B 00 8F 07 00 58 06 06 85 58 13 B4 30 90 00 4A [00:49:20]RAPDU: 58 06 06 85 58 13 B4 30 90 00 [00:49:20]wFMCommunicate OK [00:49:20]SAM_PROTO_SignData done [00:49:20]FM_MakeSignedData done [00:49:20]CreateOFDProtocolMessage [00:49:20]wFMCommunicate request_size=4 [00:49:20]MH_SAM_APDU [00:49:20]CAPDU: 80 11 00 00 [00:49:20]Write to MH i2c: E2 08 00 90 07 80 11 00 00 00 00 00 00 11 [00:49:20]Write i2c OK [00:49:20]MH_I2C_Read... [00:49:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:49:20]Read from MH i2c: E2 [00:49:20]MH_I2C_Read... [00:49:20]Read from MH i2c: E2 17 00 [00:49:20]MH_I2C_Read... [00:49:20]Read from MH i2c: E2 17 00 90 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 66 [00:49:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [00:49:20]wFMCommunicate OK [00:49:20]CreateOFDProtocolMessage done [00:49:20]OFDSenderStorePacket 201712 [00:49:20]StoreOFDPacket docnum=201712 [00:49:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 7E 63 04 01 8B B4 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 04 00 00 00 F4 03 04 00 10 8E 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F0 13 03 00 35 04 06 00 5B 48 89 55 E2 82 58 06 06 85 58 13 B4 30 [00:49:20]CheckFolder [00:49:20]dirname=/storage/ofd_packets [00:49:20]CheckFolder done [00:49:20]ProducePacketName [00:49:20]name=ofd_packets/00201712 [00:49:20]NVStorageSaveData ofd_packets/00201712 [00:49:20]File name is /storage/ofd_packets/00201712 [00:49:20]Write 298 bytes [00:49:20]NVStorageSaveData done [00:49:20]OFDSenderStorePacket done [00:49:20]KKMCreateOFDPacket done [00:49:20]NVStorageSaveData kkm_last_timestamp [00:49:20]File name is /storage/kkm_last_timestamp [00:49:20]Write 4 bytes [00:49:20]NVStorageSaveData done [00:49:20]ExternCall_PrintAddStr [00:49:20]wPrintStart [00:49:20]Write to MH i2c: 01 00 00 91 07 98 [00:49:20]Write i2c OK [00:49:20]MH_I2C_Read... [00:49:20]Read from MH i2c: 01 [00:49:20]MH_I2C_Read... [00:49:20]Read from MH i2c: 01 07 00 [00:49:20]MH_I2C_Read... [00:49:20]Read from MH i2c: 01 07 00 91 07 00 00 00 00 00 FF 0F AD [00:49:20]RasterBufferAndPrint [00:49:20]line Счет N : (1)449468 [00:49:20]line ИНН: 02508201610067 [00:49:20]line Контрольно-Кассовый Чек [00:49:20]line ПРОДАЖА [00:49:20]line ТРК (МРК, ГНК) : 33 [00:49:20]line Товар: 2710194210 [00:49:20]line ДТ-К-2 [00:49:20]line 6.570 * 76.20 [00:49:20]line = 500.63 [00:49:20]line НДС 12% НСП 1% [00:49:20]line > о реализуемом товаре [00:49:20]line ОКРУГЛЕНИЕ: -0.63 [00:49:20]line ИТОГО: 500.00 [00:49:20]line Внесено: 500.00 [00:49:20]line СДАЧА: 0.00 [00:49:20]line НСП 1% : 4.43 [00:49:20]line НДС 12% : 53.16 [00:49:20]line Наличными: 500.00 [00:49:20]line Безнал.: 0.00 [00:49:20]line Место: АЗС № 171 "Партнер Нефть" [00:49:20]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [00:49:20]line СНО: Общий режим [00:49:20]line Чек 4 27.10.2024 00:49 [00:49:20]line Смена: 544 ФФД: 1.0 [00:49:20]line ЗНМ: 0300000109 [00:49:20]line РНМ: 0000000000091777 [00:49:20]line Версия ККМ: 001 [00:49:20]line ФМ: 0000000000871756 [00:49:20]line ФД: 201712 [00:49:20]line ФПД: 100367099880066 [00:49:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T004920&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201712&fm=100367099880066&tin=02508201610067®Number=0000000000091777&sum=50000 [00:49:20]OFD Sender: Processing packet 201712 [packets to send 112, broken 111] [00:49:20]ProducePacketName [00:49:20]name=ofd_packets/00201712 [00:49:20]OFD Sender: To server: pG, [00:49:20]CommunicateWithHost lk.salyk.kg:30040 [00:49:20]ConnectInit lk.salyk.kg [00:49:20]written 0, free lines is 4095 [00:49:21]Connected sock=10 [00:49:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 7E 63 04 01 8B B4 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 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 04 00 00 00 F4 03 04 00 10 8E 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F0 13 03 00 35 04 06 00 5B 48 89 55 E2 82 58 06 06 85 58 13 B4 30 [00:49:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B5 C8 47 00 C8 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F0 13 03 00 F4 03 04 00 B7 39 1D 67 B6 04 01 00 00 44 B9 E3 E6 BD A9 98 1C [00:49:21]CommunicateWithHost err = 0 [00:49:21]CheckOFDResponse [00:49:21]1017 (14) - 77093643461234 [00:49:21]1041 (16) - 0000000000871756 [00:49:21]1040 (4) - 201712 [00:49:21]1012 (4) - 26.10.2024 18:49 [00:49:21]1206 (1) - 0 [00:49:21]OFD Sender: Remove packet 201712 [00:49:21]ProducePacketName [00:49:21]name=ofd_packets/00201712 [00:49:21]NVStorageDeleteData [00:49:21]Write to MH i2c: 01 00 00 BC 07 C3 [00:49:21]Write i2c OK [00:49:21]MH_I2C_Read... [00:49:21]Read from MH i2c: 01 [00:49:21]MH_I2C_Read... [00:49:21]Read from MH i2c: 01 07 00 [00:49:21]MH_I2C_Read... [00:49:21]Read from MH i2c: 01 07 00 BC 07 00 00 00 00 00 99 0C 6F [00:49:21]RasterBufferAndPrint [00:49:21]line [00:49:21]line [00:49:21]line [00:49:21]line [00:49:21]line [00:49:21]written 0, free lines is 3229 [00:49:21]MH_Cut [00:49:21]Write to MH i2c: D1 01 00 C3 07 01 9C [00:49:21]Write i2c OK [00:49:21]MH_I2C_Read... [00:49:21]Read from MH i2c: D1 [00:49:21]MH_I2C_Read... [00:49:21]Read from MH i2c: D1 01 00 [00:49:21]MH_I2C_Read... [00:49:21]Read from MH i2c: D1 01 00 C3 07 00 9B [00:49:21]Write to MH i2c: 01 00 00 C4 07 CB [00:49:21]Write i2c OK [00:49:21]MH_I2C_Read... [00:49:21]OFD Sender: No OFD packet to send [00:49:22]*** Cut start [00:49:22]*** Purtial cut [00:49:22]*** Stage 1: CUTSNS_PIN = 1 [00:49:22]Read from MH i2c: 01 [00:49:22]MH_I2C_Read... [00:49:22]*** Stop cut motor [00:49:22]*** Cut end [00:49:22]Read from MH i2c: 01 07 00 [00:49:22]MH_I2C_Read... [00:49:22]Read from MH i2c: 01 07 00 C4 07 00 00 00 00 00 FF 0F E0 [00:49:22]process_action close_receipt done [00:49:22]requested_data is exist [00:49:22]produce_requested_data [00:49:22]requested_item fm.sn is exist - process it [00:49:22]wFMCommunicate request_size=4 [00:49:22]MH_SAM_APDU [00:49:22]CAPDU: 80 11 00 00 [00:49:22]Write to MH i2c: E2 08 00 C5 07 80 11 00 00 00 00 00 00 46 [00:49:22]Write i2c OK [00:49:22]MH_I2C_Read... [00:49:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:49:22]Read from MH i2c: E2 [00:49:22]MH_I2C_Read... [00:49:22]Read from MH i2c: E2 17 00 [00:49:22]MH_I2C_Read... [00:49:22]Read from MH i2c: E2 17 00 C5 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 9B [00:49:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [00:49:22]wFMCommunicate OK [00:49:22]requested_item fd.num is exist - process it [00:49:22]SAM_PROTO_GetFieldsCounters [00:49:22]wFMCommunicate request_size=4 [00:49:22]MH_SAM_APDU [00:49:22]CAPDU: 80 13 00 00 [00:49:22]Write to MH i2c: E2 08 00 C6 07 80 13 00 00 00 00 00 00 49 [00:49:22]Write i2c OK [00:49:22]MH_I2C_Read... [00:49:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:49:22]Read from MH i2c: E2 [00:49:22]MH_I2C_Read... [00:49:22]Read from MH i2c: E2 62 00 [00:49:22]MH_I2C_Read... [00:49:22]Read from MH i2c: E2 62 00 C6 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F0 13 03 00 0E 04 04 00 20 02 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 A6 [00:49:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F0 13 03 00 0E 04 04 00 20 02 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:49:22]wFMCommunicate OK [00:49:22]SAM_PROTO_GetFieldsCounters done [00:49:22]requested_item shift.num is exist - process it [00:49:22]requested_item shift.opened is exist - process it [00:49:22]req_shift_opened [00:49:22]FM_GetShiftState [00:49:22]SAM_PROTO_GetShiftState [00:49:22]wFMCommunicate request_size=4 [00:49:22]MH_SAM_APDU [00:49:22]CAPDU: 80 13 01 00 [00:49:22]Write to MH i2c: E2 08 00 C7 07 80 13 01 00 00 00 00 00 4B [00:49:22]Write i2c OK [00:49:22]MH_I2C_Read... [00:49:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:49:22]Read from MH i2c: E2 [00:49:22]MH_I2C_Read... [00:49:22]Read from MH i2c: E2 0E 00 [00:49:22]MH_I2C_Read... [00:49:22]Read from MH i2c: E2 0E 00 C7 07 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 4D [00:49:22]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [00:49:22]wFMCommunicate OK [00:49:22]SAM_PROTO_GetShiftState done [00:49:22]FM_GetShiftState done [00:49:22]req_shift_opened done [00:49:22]requested_item shift.open_date is exist - process it [00:49:22]req_shift_open_date [00:49:22]req_shift_open_date done [00:49:22]produce_requested_data done [00:49:22]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201712,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [00:49:22]process_action_free close_receipt [00:49:22]json_value_free [00:49:22]json_value_free done [00:49:22]process_json_proto returns [00:49:22]Send response to host [00:49:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201712,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [00:49:22]free response buf [00:49:22]execute_script done [00:49:22]execute_script returns [00:49:22]free content buf [00:49:22]Sock 8.Close socket [00:49:22]Sock 8.Thread stoped [00:49:26]OFD Sender: No OFD packet to send [00:49:31]OFD Sender: No OFD packet to send [00:49:36]OFD Sender: No OFD packet to send [00:49:41]OFD Sender: No OFD packet to send [00:49:46]OFD Sender: No OFD packet to send [00:49:51]OFD Sender: No OFD packet to send [00:49:56]OFD Sender: No OFD packet to send [00:50:01]OFD Sender: No OFD packet to send [00:50:06]OFD Sender: No OFD packet to send [00:50:11]OFD Sender: No OFD packet to send [00:50:16]OFD Sender: No OFD packet to send [00:50:21]OFD Sender: No OFD packet to send [00:50:26]OFD Sender: No OFD packet to send [00:50:31]OFD Sender: No OFD packet to send [00:50:36]OFD Sender: No OFD packet to send [00:50:41]OFD Sender: No OFD packet to send [00:50:46]OFD Sender: No OFD packet to send [00:50:51]OFD Sender: No OFD packet to send [00:50:56]OFD Sender: No OFD packet to send [00:51:01]OFD Sender: No OFD packet to send [00:51:06]OFD Sender: No OFD packet to send [00:51:11]OFD Sender: No OFD packet to send [00:51:16]OFD Sender: No OFD packet to send [00:51:21]OFD Sender: No OFD packet to send [00:51:26]OFD Sender: No OFD packet to send [00:51:31]OFD Sender: No OFD packet to send [00:51:36]OFD Sender: No OFD packet to send [00:51:41]OFD Sender: No OFD packet to send [00:51:46]OFD Sender: No OFD packet to send [00:51:51]OFD Sender: No OFD packet to send [00:51:56]OFD Sender: No OFD packet to send [00:52:01]OFD Sender: No OFD packet to send [00:52:06]OFD Sender: No OFD packet to send [00:52:11]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:57]OFD Sender: No OFD packet to send [00:56:02]OFD Sender: No OFD packet to send [00:56:07]OFD Sender: No OFD packet to send [00:56:12]OFD Sender: No OFD packet to send [00:56:17]OFD Sender: No OFD packet to send [00:56:22]OFD Sender: No OFD packet to send [00:56:27]OFD Sender: No OFD packet to send [00:56:32]OFD Sender: No OFD packet to send [00:56:37]OFD Sender: No OFD packet to send [00:56:42]OFD Sender: No OFD packet to send [00:56:47]OFD Sender: No OFD packet to send [00:56:52]OFD Sender: No OFD packet to send [00:56:57]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:27]OFD Sender: No OFD packet to send [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:44]accept exits with 9 [01:02:44]New connection [01:02:44]New thread 3067080036 created [01:02:44] Sock 9.Parse request [01:02:44]Thread 3066936676 joined [01:02:44]Sock 9.Check first char [01:02:44]Waiting for new connection... [01:02:44]Sock 9.First char is OK [01:02:44]request: POST /json_proto HTTP/1.0 [01:02:44]Method: POST [01:02:44]URL: /json_proto [01:02:44]Method is POST - this is cgi request [01:02:44]url: /json_proto [01:02:44]query_string will be loaded in cgi processing [01:02:44]execute_cgi json_proto POST (null) [01:02:44]execute_cgi path=json_proto method=POST [01:02:44]POST find Content-Length [01:02:44]Host: 172.17.63.195:8080 [01:02:44]Content-Length: 674 [01:02:44]Content-Type: application/json [01:02:44] [01:02:44]POST finish read [01:02:44]Found Content-Length = 674 [01:02:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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" ] } } [01:02:44]execute_script... [01:02:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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" ] } } [01:02:44]POST & json_proto [01:02:44]process_json_proto [01:02:44]json parsed OK: [01:02:44]protocol is kg_v1.0 [01:02:44]action value=close_receipt [01:02:44]process_action close_receipt [01:02:44]cmd_close_receipt [01:02:44]MH_GetDate [01:02:44]Write to MH i2c: F0 00 00 C8 07 BE [01:02:44]Write i2c OK [01:02:44]MH_I2C_Read... [01:02:44]Read from MH i2c: F0 [01:02:44]MH_I2C_Read... [01:02:44]Read from MH i2c: F0 09 00 [01:02:44]MH_I2C_Read... [01:02:44]Read from MH i2c: F0 09 00 C8 07 00 36 91 1D 67 68 46 19 67 40 [01:02:44]GetLastDocTimeStamp 1729990160 [01:02:44]current date 1729990966 [01:02:44]FM_GetShiftState [01:02:44]SAM_PROTO_GetShiftState [01:02:44]wFMCommunicate request_size=4 [01:02:44]MH_SAM_APDU [01:02:44]CAPDU: 80 13 01 00 [01:02:44]Write to MH i2c: E2 08 00 C9 07 80 13 01 00 00 00 00 00 4D [01:02:44]Write i2c OK [01:02:44]MH_I2C_Read... [01:02:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:02:44]Read from MH i2c: E2 [01:02:44]MH_I2C_Read... [01:02:44]Read from MH i2c: E2 0E 00 [01:02:44]MH_I2C_Read... [01:02:44]Read from MH i2c: E2 0E 00 C9 07 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 4F [01:02:44]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [01:02:44]wFMCommunicate OK [01:02:44]SAM_PROTO_GetShiftState done [01:02:44]FM_GetShiftState done [01:02:44]opened in 1729987312 [01:02:44]opened+sec_in_day 1730073712 [01:02:44]quantity*price = 60045 [01:02:44]sum+1 = 60047 [01:02:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 5 27.10.2024 01:02 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201713 ФПД: 87657109593350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T010246&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201713&fm=87657109593350&tin=02508201610067®Number=0000000000091777&sum=60000 [01:02:46]StoreToDocumentArchive [01:02:46]shift 544 fd 201713 [01:02:46]save to /storage/0544/doc_00201713 [01:02:46]save last doc name /storage/0544/doc_00201713 to /storage/kkm_last_doc_name [01:02:46]save OK [01:02:46]Clear old archive folders... [01:02:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [01:02:46]tlvbuf is 000F6090 [01:02:46]SAM_PROTO_ClearQueue [01:02:46]wFMCommunicate request_size=4 [01:02:46]MH_SAM_APDU [01:02:46]CAPDU: 80 09 00 00 [01:02:46]Write to MH i2c: E2 08 00 D6 07 80 09 00 00 00 00 00 00 4F [01:02:46]Write i2c OK [01:02:46]MH_I2C_Read... [01:02:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:02:46]Read from MH i2c: E2 [01:02:46]MH_I2C_Read... [01:02:46]Read from MH i2c: E2 03 00 [01:02:46]MH_I2C_Read... [01:02:46]Read from MH i2c: E2 03 00 D6 07 00 90 00 51 [01:02:46]RAPDU: 90 00 [01:02:46]wFMCommunicate OK [01:02:46]SAM_PROTO_ClearQueue done [01:02:46]KKMCreateOFDPacket [01:02:46]OFDProtocolAddRootSTLVToBuf [01:02:46]FM_MakeSignedData [01:02:46]FM_MakeSignedData [01:02:46]SAM_PROTO_SignData [01:02:46]wFMCommunicate request_size=4 [01:02:46]MH_SAM_APDU [01:02:46]CAPDU: 80 0D 01 02 [01:02:46]Write to MH i2c: E2 08 00 D7 07 80 0D 01 02 00 00 00 00 57 [01:02:46]Write i2c OK [01:02:46]MH_I2C_Read... [01:02:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:02:46]Read from MH i2c: E2 [01:02:46]MH_I2C_Read... [01:02:46]Read from MH i2c: E2 03 00 [01:02:46]MH_I2C_Read... [01:02:46]Read from MH i2c: E2 03 00 D7 07 00 90 00 52 [01:02:46]RAPDU: 90 00 [01:02:46]wFMCommunicate OK [01:02:46]wFMCommunicate request_size=255 [01:02:46]MH_SAM_APDU [01:02:46]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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 05 00 00 00 F4 03 04 00 36 91 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F1 13 03 00 35 04 06 00 4F B9 42 E1 [01:02:46]Write to MH i2c: E2 02 01 D8 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 05 00 00 00 F4 03 04 00 36 91 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F1 13 03 00 35 04 06 00 4F B9 42 E1 00 00 46 [01:02:46]Write i2c OK [01:02:46]MH_I2C_Read... [01:02:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:02:46]Read from MH i2c: E2 [01:02:46]MH_I2C_Read... [01:02:46]Read from MH i2c: E2 03 00 [01:02:46]MH_I2C_Read... [01:02:46]Read from MH i2c: E2 03 00 D8 07 00 90 00 53 [01:02:46]RAPDU: 90 00 [01:02:46]wFMCommunicate OK [01:02:46]wFMCommunicate request_size=7 [01:02:46]MH_SAM_APDU [01:02:46]CAPDU: 80 0D 02 02 02 1D 06 [01:02:46]Write to MH i2c: E2 0A 00 D9 07 80 0D 02 02 02 00 1D 06 00 00 81 [01:02:46]Write i2c OK [01:02:46]MH_I2C_Read... [01:02:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:02:46]Read from MH i2c: E2 [01:02:46]MH_I2C_Read... [01:02:46]Read from MH i2c: E2 03 00 [01:02:46]MH_I2C_Read... [01:02:46]Read from MH i2c: E2 03 00 D9 07 00 90 00 54 [01:02:46]RAPDU: 90 00 [01:02:46]wFMCommunicate OK [01:02:46]wFMCommunicate request_size=4 [01:02:46]MH_SAM_APDU [01:02:46]CAPDU: 80 0D 03 02 [01:02:46]Write to MH i2c: E2 08 00 DA 07 80 0D 03 02 00 00 00 00 5C [01:02:46]Write i2c OK [01:02:46]MH_I2C_Read... [01:02:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:02:46]Read from MH i2c: E2 [01:02:46]MH_I2C_Read... [01:02:46]Read from MH i2c: E2 0B 00 [01:02:46]MH_I2C_Read... [01:02:46]Read from MH i2c: E2 0B 00 DA 07 00 E6 A1 2B 86 3D D9 B6 09 90 00 6A [01:02:46]RAPDU: E6 A1 2B 86 3D D9 B6 09 90 00 [01:02:46]wFMCommunicate OK [01:02:46]SAM_PROTO_SignData done [01:02:46]FM_MakeSignedData done [01:02:46]CreateOFDProtocolMessage [01:02:46]wFMCommunicate request_size=4 [01:02:46]MH_SAM_APDU [01:02:46]CAPDU: 80 11 00 00 [01:02:46]Write to MH i2c: E2 08 00 DB 07 80 11 00 00 00 00 00 00 5C [01:02:46]Write i2c OK [01:02:46]MH_I2C_Read... [01:02:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:02:46]Read from MH i2c: E2 [01:02:46]MH_I2C_Read... [01:02:46]Read from MH i2c: E2 17 00 [01:02:46]MH_I2C_Read... [01:02:46]Read from MH i2c: E2 17 00 DB 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 B1 [01:02:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [01:02:46]wFMCommunicate OK [01:02:46]CreateOFDProtocolMessage done [01:02:46]OFDSenderStorePacket 201713 [01:02:46]StoreOFDPacket docnum=201713 [01:02:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 1D A0 04 01 FC 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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 05 00 00 00 F4 03 04 00 36 91 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F1 13 03 00 35 04 06 00 4F B9 42 E1 1D 06 E6 A1 2B 86 3D D9 B6 09 [01:02:46]CheckFolder [01:02:46]dirname=/storage/ofd_packets [01:02:46]CheckFolder done [01:02:46]ProducePacketName [01:02:46]name=ofd_packets/00201713 [01:02:46]NVStorageSaveData ofd_packets/00201713 [01:02:46]File name is /storage/ofd_packets/00201713 [01:02:46]Write 298 bytes [01:02:46]NVStorageSaveData done [01:02:46]OFDSenderStorePacket done [01:02:46]KKMCreateOFDPacket done [01:02:46]NVStorageSaveData kkm_last_timestamp [01:02:46]File name is /storage/kkm_last_timestamp [01:02:46]Write 4 bytes [01:02:46]NVStorageSaveData done [01:02:46]ExternCall_PrintAddStr [01:02:46]wPrintStart [01:02:46]Write to MH i2c: 01 00 00 DC 07 E3 [01:02:46]Write i2c OK [01:02:46]MH_I2C_Read... [01:02:46]Read from MH i2c: 01 [01:02:46]MH_I2C_Read... [01:02:46]Read from MH i2c: 01 07 00 [01:02:46]MH_I2C_Read... [01:02:46]Read from MH i2c: 01 07 00 DC 07 00 00 00 00 00 FF 0F F8 [01:02:46]RasterBufferAndPrint [01:02:46]line Счет N : (1)449469 [01:02:46]line ИНН: 02508201610067 [01:02:46]line Контрольно-Кассовый Чек [01:02:46]line ПРОДАЖА [01:02:46]line ТРК (МРК, ГНК) : 11 [01:02:46]line Товар: 2710194210 [01:02:46]line ДТ-К-2 [01:02:46]line 7.880 * 76.20 [01:02:46]line = 600.46 [01:02:46]line НДС 12% НСП 1% [01:02:46]line > о реализуемом товаре [01:02:46]line ОКРУГЛЕНИЕ: -0.46 [01:02:46]line ИТОГО: 600.00 [01:02:46]line Внесено: 600.00 [01:02:46]line СДАЧА: 0.00 [01:02:46]line НСП 1% : 5.31 [01:02:46]line НДС 12% : 63.77 [01:02:46]line Наличными: 600.00 [01:02:46]line Безнал.: 0.00 [01:02:46]line Место: АЗС № 171 "Партнер Нефть" [01:02:46]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [01:02:46]line СНО: Общий режим [01:02:46]line Чек 5 27.10.2024 01:02 [01:02:46]line Смена: 544 ФФД: 1.0 [01:02:46]line ЗНМ: 0300000109 [01:02:46]line РНМ: 0000000000091777 [01:02:46]line Версия ККМ: 001 [01:02:46]line ФМ: 0000000000871756 [01:02:46]line ФД: 201713 [01:02:46]line ФПД: 87657109593350 [01:02:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T010246&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201713&fm=87657109593350&tin=02508201610067®Number=0000000000091777&sum=60000 [01:02:46]OFD Sender: Processing packet 201713 [packets to send 112, broken 111] [01:02:46]ProducePacketName [01:02:46]name=ofd_packets/00201713 [01:02:46]OFD Sender: To server: pG, [01:02:46]CommunicateWithHost lk.salyk.kg:30040 [01:02:46]ConnectInit lk.salyk.kg [01:02:46]written 0, free lines is 4095 [01:02:46]Connected sock=11 [01:02:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0C 01 00 00 1D A0 04 01 FC 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 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 05 00 00 00 F4 03 04 00 36 91 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F1 13 03 00 35 04 06 00 4F B9 42 E1 1D 06 E6 A1 2B 86 3D D9 B6 09 [01:02:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B6 49 47 00 59 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F1 13 03 00 F4 03 04 00 DD 3C 1D 67 B6 04 01 00 00 C6 24 94 2E 77 A2 27 53 [01:02:47]CommunicateWithHost err = 0 [01:02:47]CheckOFDResponse [01:02:47]1017 (14) - 77093643461234 [01:02:47]1041 (16) - 0000000000871756 [01:02:47]1040 (4) - 201713 [01:02:47]1012 (4) - 26.10.2024 19:02 [01:02:47]1206 (1) - 0 [01:02:47]OFD Sender: Remove packet 201713 [01:02:47]ProducePacketName [01:02:47]name=ofd_packets/00201713 [01:02:47]NVStorageDeleteData [01:02:47]Write to MH i2c: 01 00 00 07 08 0F [01:02:47]Write i2c OK [01:02:47]MH_I2C_Read... [01:02:47]Read from MH i2c: 01 [01:02:47]MH_I2C_Read... [01:02:47]Read from MH i2c: 01 07 00 [01:02:47]MH_I2C_Read... [01:02:47]Read from MH i2c: 01 07 00 07 08 00 00 00 00 00 8C 0C AE [01:02:47]RasterBufferAndPrint [01:02:47]line [01:02:47]line [01:02:47]line [01:02:47]line [01:02:47]line [01:02:47]written 0, free lines is 3216 [01:02:47]MH_Cut [01:02:47]Write to MH i2c: D1 01 00 0E 08 01 E8 [01:02:47]Write i2c OK [01:02:47]MH_I2C_Read... [01:02:47]Read from MH i2c: D1 [01:02:47]MH_I2C_Read... [01:02:47]Read from MH i2c: D1 01 00 [01:02:47]MH_I2C_Read... [01:02:47]Read from MH i2c: D1 01 00 0E 08 00 E7 [01:02:47]Write to MH i2c: 01 00 00 0F 08 17 [01:02:47]Write i2c OK [01:02:47]MH_I2C_Read... [01:02:47]OFD Sender: No OFD packet to send [01:02:48]*** Cut start [01:02:48]*** Purtial cut [01:02:48]*** CUTSNS_PIN = 0 [01:02:48]*** Stage 1: CUTSNS_PIN = 1 [01:02:50]Read from MH i2c: 01 [01:02:50]MH_I2C_Read... [01:02:50]*** Stop cut motor [01:02:50]*** Cut end [01:02:50]Read from MH i2c: 01 07 00 [01:02:50]MH_I2C_Read... [01:02:50]Read from MH i2c: 01 07 00 0F 08 00 00 00 00 00 FF 0F 2C [01:02:50]process_action close_receipt done [01:02:50]requested_data is exist [01:02:50]produce_requested_data [01:02:50]requested_item fm.sn is exist - process it [01:02:50]wFMCommunicate request_size=4 [01:02:50]MH_SAM_APDU [01:02:50]CAPDU: 80 11 00 00 [01:02:50]Write to MH i2c: E2 08 00 10 08 80 11 00 00 00 00 00 00 92 [01:02:50]Write i2c OK [01:02:50]MH_I2C_Read... [01:02:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:02:50]Read from MH i2c: E2 [01:02:50]MH_I2C_Read... [01:02:50]Read from MH i2c: E2 17 00 [01:02:50]MH_I2C_Read... [01:02:50]Read from MH i2c: E2 17 00 10 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 E7 [01:02:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [01:02:50]wFMCommunicate OK [01:02:50]requested_item fd.num is exist - process it [01:02:50]SAM_PROTO_GetFieldsCounters [01:02:50]wFMCommunicate request_size=4 [01:02:50]MH_SAM_APDU [01:02:50]CAPDU: 80 13 00 00 [01:02:50]Write to MH i2c: E2 08 00 11 08 80 13 00 00 00 00 00 00 95 [01:02:50]Write i2c OK [01:02:50]MH_I2C_Read... [01:02:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:02:50]Read from MH i2c: E2 [01:02:50]MH_I2C_Read... [01:02:50]Read from MH i2c: E2 62 00 [01:02:50]MH_I2C_Read... [01:02:50]Read from MH i2c: E2 62 00 11 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F1 13 03 00 0E 04 04 00 20 02 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 F6 [01:02:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F1 13 03 00 0E 04 04 00 20 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:02:50]wFMCommunicate OK [01:02:50]SAM_PROTO_GetFieldsCounters done [01:02:50]requested_item shift.num is exist - process it [01:02:50]requested_item shift.opened is exist - process it [01:02:50]req_shift_opened [01:02:50]FM_GetShiftState [01:02:50]SAM_PROTO_GetShiftState [01:02:50]wFMCommunicate request_size=4 [01:02:50]MH_SAM_APDU [01:02:50]CAPDU: 80 13 01 00 [01:02:50]Write to MH i2c: E2 08 00 12 08 80 13 01 00 00 00 00 00 97 [01:02:50]Write i2c OK [01:02:50]MH_I2C_Read... [01:02:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:02:50]Read from MH i2c: E2 [01:02:50]MH_I2C_Read... [01:02:50]Read from MH i2c: E2 0E 00 [01:02:50]MH_I2C_Read... [01:02:50]Read from MH i2c: E2 0E 00 12 08 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 99 [01:02:50]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [01:02:50]wFMCommunicate OK [01:02:50]SAM_PROTO_GetShiftState done [01:02:50]FM_GetShiftState done [01:02:50]req_shift_opened done [01:02:50]requested_item shift.open_date is exist - process it [01:02:50]req_shift_open_date [01:02:50]req_shift_open_date done [01:02:50]produce_requested_data done [01:02:50]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201713,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [01:02:50]process_action_free close_receipt [01:02:50]json_value_free [01:02:50]json_value_free done [01:02:50]process_json_proto returns [01:02:50]Send response to host [01:02:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201713,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [01:02:50]free response buf [01:02:50]execute_script done [01:02:50]execute_script returns [01:02:50]free content buf [01:02:50]Sock 9.Close socket [01:02:50]Sock 9.Thread stoped [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:32]OFD Sender: No OFD packet to send [01:04:37]OFD Sender: No OFD packet to send [01:04:42]OFD Sender: No OFD packet to send [01:04:47]OFD Sender: No OFD packet to send [01:04:52]OFD Sender: No OFD packet to send [01:04:57]OFD Sender: No OFD packet to send [01:05:02]OFD Sender: No OFD packet to send [01:05:07]OFD Sender: No OFD packet to send [01:05:12]OFD Sender: No OFD packet to send [01:05:17]OFD Sender: No OFD packet to send [01:05:22]OFD Sender: No OFD packet to send [01:05:27]OFD Sender: No OFD packet to send [01:05:32]OFD Sender: No OFD packet to send [01:05:37]OFD Sender: No OFD packet to send [01:05:42]OFD Sender: No OFD packet to send [01:05:47]OFD Sender: No OFD packet to send [01:05:48]accept exits with 8 [01:05:48]New connection [01:05:48]New thread 3066936676 created [01:05:48]Thread 3067080036 joined [01:05:48]Waiting for new connection... [01:05:48] Sock 8.Parse request [01:05:48]Sock 8.Check first char [01:05:48]Sock 8.First char is OK [01:05:48]request: POST /json_proto HTTP/1.0 [01:05:48]Method: POST [01:05:48]URL: /json_proto [01:05:48]Method is POST - this is cgi request [01:05:48]url: /json_proto [01:05:48]query_string will be loaded in cgi processing [01:05:48]execute_cgi json_proto POST (null) [01:05:48]execute_cgi path=json_proto method=POST [01:05:48]POST find Content-Length [01:05:48]Host: 172.17.63.195:8080 [01:05:48]Content-Length: 677 [01:05:48]Content-Type: application/json [01:05:48] [01:05:48]POST finish read [01:05:48]Found Content-Length = 677 [01:05:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [01:05:48]execute_script... [01:05:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [01:05:48]POST & json_proto [01:05:48]process_json_proto [01:05:48]json parsed OK: [01:05:48]protocol is kg_v1.0 [01:05:48]action value=close_receipt [01:05:48]process_action close_receipt [01:05:48]cmd_close_receipt [01:05:48]MH_GetDate [01:05:48]Write to MH i2c: F0 00 00 13 08 0A [01:05:48]Write i2c OK [01:05:48]MH_I2C_Read... [01:05:48]Read from MH i2c: F0 [01:05:48]MH_I2C_Read... [01:05:48]Read from MH i2c: F0 09 00 [01:05:48]MH_I2C_Read... [01:05:48]Read from MH i2c: F0 09 00 13 08 00 EE 91 1D 67 68 46 19 67 44 [01:05:48]GetLastDocTimeStamp 1729990966 [01:05:48]current date 1729991150 [01:05:48]FM_GetShiftState [01:05:48]SAM_PROTO_GetShiftState [01:05:48]wFMCommunicate request_size=4 [01:05:48]MH_SAM_APDU [01:05:48]CAPDU: 80 13 01 00 [01:05:48]Write to MH i2c: E2 08 00 14 08 80 13 01 00 00 00 00 00 99 [01:05:48]Write i2c OK [01:05:48]MH_I2C_Read... [01:05:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:05:48]Read from MH i2c: E2 [01:05:48]MH_I2C_Read... [01:05:48]Read from MH i2c: E2 0E 00 [01:05:48]MH_I2C_Read... [01:05:48]Read from MH i2c: E2 0E 00 14 08 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 9B [01:05:48]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [01:05:48]wFMCommunicate OK [01:05:48]SAM_PROTO_GetShiftState done [01:05:48]FM_GetShiftState done [01:05:48]opened in 1729987312 [01:05:48]opened+sec_in_day 1730073712 [01:05:48]quantity*price = 20003 [01:05:48]sum+1 = 20004 [01:05:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 6 27.10.2024 01:05 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201714 ФПД: 16014360865327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T010550&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201714&fm=16014360865327&tin=02508201610067®Number=0000000000091777&sum=20000 [01:05:49]StoreToDocumentArchive [01:05:49]shift 544 fd 201714 [01:05:49]save to /storage/0544/doc_00201714 [01:05:49]save last doc name /storage/0544/doc_00201714 to /storage/kkm_last_doc_name [01:05:49]save OK [01:05:49]Clear old archive folders... [01:05:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:05:49]tlvbuf is 00069CF0 [01:05:49]SAM_PROTO_ClearQueue [01:05:49]wFMCommunicate request_size=4 [01:05:49]MH_SAM_APDU [01:05:49]CAPDU: 80 09 00 00 [01:05:49]Write to MH i2c: E2 08 00 21 08 80 09 00 00 00 00 00 00 9B [01:05:49]Write i2c OK [01:05:49]MH_I2C_Read... [01:05:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:05:50]Read from MH i2c: E2 [01:05:50]MH_I2C_Read... [01:05:50]Read from MH i2c: E2 03 00 [01:05:50]MH_I2C_Read... [01:05:50]Read from MH i2c: E2 03 00 21 08 00 90 00 9D [01:05:50]RAPDU: 90 00 [01:05:50]wFMCommunicate OK [01:05:50]SAM_PROTO_ClearQueue done [01:05:50]KKMCreateOFDPacket [01:05:50]OFDProtocolAddRootSTLVToBuf [01:05:50]FM_MakeSignedData [01:05:50]FM_MakeSignedData [01:05:50]SAM_PROTO_SignData [01:05:50]wFMCommunicate request_size=4 [01:05:50]MH_SAM_APDU [01:05:50]CAPDU: 80 0D 01 02 [01:05:50]Write to MH i2c: E2 08 00 22 08 80 0D 01 02 00 00 00 00 A3 [01:05:50]Write i2c OK [01:05:50]MH_I2C_Read... [01:05:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:05:50]Read from MH i2c: E2 [01:05:50]MH_I2C_Read... [01:05:50]Read from MH i2c: E2 03 00 [01:05:50]MH_I2C_Read... [01:05:50]Read from MH i2c: E2 03 00 22 08 00 90 00 9E [01:05:50]RAPDU: 90 00 [01:05:50]wFMCommunicate OK [01:05:50]wFMCommunicate request_size=255 [01:05:50]MH_SAM_APDU [01:05: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 32 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 06 00 00 00 F4 03 04 00 EE 91 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F2 13 03 00 35 04 06 00 0E [01:05:50]Write to MH i2c: E2 02 01 23 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 32 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 06 00 00 00 F4 03 04 00 EE 91 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F2 13 03 00 35 04 06 00 0E 00 00 3A [01:05:50]Write i2c OK [01:05:50]MH_I2C_Read... [01:05:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:05:50]Read from MH i2c: E2 [01:05:50]MH_I2C_Read... [01:05:50]Read from MH i2c: E2 03 00 [01:05:50]MH_I2C_Read... [01:05:50]Read from MH i2c: E2 03 00 23 08 00 90 00 9F [01:05:50]RAPDU: 90 00 [01:05:50]wFMCommunicate OK [01:05:50]wFMCommunicate request_size=10 [01:05:50]MH_SAM_APDU [01:05:50]CAPDU: 80 0D 02 02 05 90 A2 4A 6A 2F [01:05:50]Write to MH i2c: E2 0D 00 24 08 80 0D 02 02 05 00 90 A2 4A 6A 2F 00 00 C5 [01:05:50]Write i2c OK [01:05:50]MH_I2C_Read... [01:05:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:05:50]Read from MH i2c: E2 [01:05:50]MH_I2C_Read... [01:05:50]Read from MH i2c: E2 03 00 [01:05:50]MH_I2C_Read... [01:05:50]Read from MH i2c: E2 03 00 24 08 00 90 00 A0 [01:05:50]RAPDU: 90 00 [01:05:50]wFMCommunicate OK [01:05:50]wFMCommunicate request_size=4 [01:05:50]MH_SAM_APDU [01:05:50]CAPDU: 80 0D 03 02 [01:05:50]Write to MH i2c: E2 08 00 25 08 80 0D 03 02 00 00 00 00 A8 [01:05:50]Write i2c OK [01:05:50]MH_I2C_Read... [01:05:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:05:50]Read from MH i2c: E2 [01:05:50]MH_I2C_Read... [01:05:50]Read from MH i2c: E2 0B 00 [01:05:50]MH_I2C_Read... [01:05:50]Read from MH i2c: E2 0B 00 25 08 00 B5 8D 00 A7 A1 FA 6D B0 90 00 4A [01:05:50]RAPDU: B5 8D 00 A7 A1 FA 6D B0 90 00 [01:05:50]wFMCommunicate OK [01:05:50]SAM_PROTO_SignData done [01:05:50]FM_MakeSignedData done [01:05:50]CreateOFDProtocolMessage [01:05:50]wFMCommunicate request_size=4 [01:05:50]MH_SAM_APDU [01:05:50]CAPDU: 80 11 00 00 [01:05:50]Write to MH i2c: E2 08 00 26 08 80 11 00 00 00 00 00 00 A8 [01:05:50]Write i2c OK [01:05:50]MH_I2C_Read... [01:05:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:05:50]Read from MH i2c: E2 [01:05:50]MH_I2C_Read... [01:05:50]Read from MH i2c: E2 17 00 [01:05:50]MH_I2C_Read... [01:05:50]Read from MH i2c: E2 17 00 26 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 FD [01:05:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [01:05:50]wFMCommunicate OK [01:05:50]CreateOFDProtocolMessage done [01:05:50]OFDSenderStorePacket 201714 [01:05:50]StoreOFDPacket docnum=201714 [01:05:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F0 69 07 01 DE 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 32 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 06 00 00 00 F4 03 04 00 EE 91 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F2 13 03 00 35 04 06 00 0E 90 A2 4A 6A 2F B5 8D 00 A7 A1 FA 6D B0 [01:05:50]CheckFolder [01:05:50]dirname=/storage/ofd_packets [01:05:50]CheckFolder done [01:05:50]ProducePacketName [01:05:50]name=ofd_packets/00201714 [01:05:50]NVStorageSaveData ofd_packets/00201714 [01:05:50]File name is /storage/ofd_packets/00201714 [01:05:50]Write 301 bytes [01:05:50]NVStorageSaveData done [01:05:50]OFDSenderStorePacket done [01:05:50]KKMCreateOFDPacket done [01:05:50]NVStorageSaveData kkm_last_timestamp [01:05:50]File name is /storage/kkm_last_timestamp [01:05:50]Write 4 bytes [01:05:50]NVStorageSaveData done [01:05:50]ExternCall_PrintAddStr [01:05:50]wPrintStart [01:05:50]Write to MH i2c: 01 00 00 27 08 2F [01:05:50]Write i2c OK [01:05:50]MH_I2C_Read... [01:05:50]Read from MH i2c: 01 [01:05:50]MH_I2C_Read... [01:05:50]Read from MH i2c: 01 07 00 [01:05:50]MH_I2C_Read... [01:05:50]Read from MH i2c: 01 07 00 27 08 00 00 00 00 00 FF 0F 44 [01:05:50]RasterBufferAndPrint [01:05:50]line Счет N : (1)449470 [01:05:50]line ИНН: 02508201610067 [01:05:50]line Контрольно-Кассовый Чек [01:05:50]line ПРОДАЖА [01:05:50]line ТРК (МРК, ГНК) : 41 [01:05:50]line Товар: 2710124130 [01:05:50]line Аи-92-К-2 [01:05:50]line 2.990 * 66.90 [01:05:50]line = 200.03 [01:05:50]line НДС 12% НСП 1% [01:05:50]line > о реализуемом товаре [01:05:50]line ОКРУГЛЕНИЕ: -0.03 [01:05:50]line ИТОГО: 200.00 [01:05:50]line Внесено: 200.00 [01:05:50]line СДАЧА: 0.00 [01:05:50]line НСП 1% : 1.77 [01:05:50]line НДС 12% : 21.24 [01:05:50]line Наличными: 200.00 [01:05:50]line Безнал.: 0.00 [01:05:50]line Место: АЗС № 171 "Партнер Нефть" [01:05:50]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [01:05:50]line СНО: Общий режим [01:05:50]line Чек 6 27.10.2024 01:05 [01:05:50]line Смена: 544 ФФД: 1.0 [01:05:50]line ЗНМ: 0300000109 [01:05:50]line РНМ: 0000000000091777 [01:05:50]line Версия ККМ: 001 [01:05:50]line ФМ: 0000000000871756 [01:05:50]line ФД: 201714 [01:05:50]line ФПД: 16014360865327 [01:05:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T010550&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201714&fm=16014360865327&tin=02508201610067®Number=0000000000091777&sum=20000 [01:05:50]OFD Sender: Processing packet 201714 [packets to send 112, broken 111] [01:05:50]ProducePacketName [01:05:50]name=ofd_packets/00201714 [01:05:50]OFD Sender: To server: pG, [01:05:50]CommunicateWithHost lk.salyk.kg:30040 [01:05:50]ConnectInit lk.salyk.kg [01:05:50]written 0, free lines is 4095 [01:05:50]Connected sock=10 [01:05:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 F0 69 07 01 DE 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 32 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 06 00 00 00 F4 03 04 00 EE 91 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F2 13 03 00 35 04 06 00 0E 90 A2 4A 6A 2F B5 8D 00 A7 A1 FA 6D B0 [01:05:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 72 CC 47 00 91 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F2 13 03 00 F4 03 04 00 95 3D 1D 67 B6 04 01 00 00 FB 13 FE D3 32 AA 30 4D [01:05:51]CommunicateWithHost err = 0 [01:05:51]CheckOFDResponse [01:05:51]1017 (14) - 77093643461234 [01:05:51]1041 (16) - 0000000000871756 [01:05:51]1040 (4) - 201714 [01:05:51]1012 (4) - 26.10.2024 19:05 [01:05:51]1206 (1) - 0 [01:05:51]OFD Sender: Remove packet 201714 [01:05:51]ProducePacketName [01:05:51]name=ofd_packets/00201714 [01:05:51]NVStorageDeleteData [01:05:51]Write to MH i2c: 01 00 00 52 08 5A [01:05:51]Write i2c OK [01:05:51]MH_I2C_Read... [01:05:51]Read from MH i2c: 01 [01:05:51]MH_I2C_Read... [01:05:51]Read from MH i2c: 01 07 00 [01:05:51]MH_I2C_Read... [01:05:51]Read from MH i2c: 01 07 00 52 08 00 00 00 00 00 95 0C 02 [01:05:51]RasterBufferAndPrint [01:05:51]line [01:05:51]line [01:05:51]line [01:05:51]line [01:05:51]line [01:05:51]written 0, free lines is 3227 [01:05:51]MH_Cut [01:05:51]Write to MH i2c: D1 01 00 59 08 01 33 [01:05:51]Write i2c OK [01:05:51]MH_I2C_Read... [01:05:51]Read from MH i2c: D1 [01:05:51]MH_I2C_Read... [01:05:51]Read from MH i2c: D1 01 00 [01:05:51]MH_I2C_Read... [01:05:51]Read from MH i2c: D1 01 00 59 08 00 32 [01:05:51]Write to MH i2c: 01 00 00 5A 08 62 [01:05:51]Write i2c OK [01:05:51]MH_I2C_Read... [01:05:51]OFD Sender: No OFD packet to send [01:05:52]*** Cut start [01:05:52]*** Purtial cut [01:05:52]*** Stage 1: CUTSNS_PIN = 1 [01:05:52]Read from MH i2c: 01 [01:05:52]MH_I2C_Read... [01:05:52]*** Stop cut motor [01:05:52]*** Cut end [01:05:52]Read from MH i2c: 01 07 00 [01:05:52]MH_I2C_Read... [01:05:52]Read from MH i2c: 01 07 00 5A 08 00 00 00 00 00 FF 0F 77 [01:05:52]process_action close_receipt done [01:05:52]requested_data is exist [01:05:52]produce_requested_data [01:05:52]requested_item fm.sn is exist - process it [01:05:52]wFMCommunicate request_size=4 [01:05:52]MH_SAM_APDU [01:05:52]CAPDU: 80 11 00 00 [01:05:52]Write to MH i2c: E2 08 00 5B 08 80 11 00 00 00 00 00 00 DD [01:05:52]Write i2c OK [01:05:52]MH_I2C_Read... [01:05:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:05:52]Read from MH i2c: E2 [01:05:52]MH_I2C_Read... [01:05:52]Read from MH i2c: E2 17 00 [01:05:52]MH_I2C_Read... [01:05:52]Read from MH i2c: E2 17 00 5B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 32 [01:05:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [01:05:52]wFMCommunicate OK [01:05:52]requested_item fd.num is exist - process it [01:05:52]SAM_PROTO_GetFieldsCounters [01:05:52]wFMCommunicate request_size=4 [01:05:52]MH_SAM_APDU [01:05:52]CAPDU: 80 13 00 00 [01:05:52]Write to MH i2c: E2 08 00 5C 08 80 13 00 00 00 00 00 00 E0 [01:05:52]Write i2c OK [01:05:52]MH_I2C_Read... [01:05:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:05:52]Read from MH i2c: E2 [01:05:52]MH_I2C_Read... [01:05:52]Read from MH i2c: E2 62 00 [01:05:52]MH_I2C_Read... [01:05:52]Read from MH i2c: E2 62 00 5C 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F2 13 03 00 0E 04 04 00 20 02 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 45 [01:05:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F2 13 03 00 0E 04 04 00 20 02 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 [01:05:52]wFMCommunicate OK [01:05:52]SAM_PROTO_GetFieldsCounters done [01:05:52]requested_item shift.num is exist - process it [01:05:52]requested_item shift.opened is exist - process it [01:05:52]req_shift_opened [01:05:52]FM_GetShiftState [01:05:52]SAM_PROTO_GetShiftState [01:05:52]wFMCommunicate request_size=4 [01:05:52]MH_SAM_APDU [01:05:52]CAPDU: 80 13 01 00 [01:05:52]Write to MH i2c: E2 08 00 5D 08 80 13 01 00 00 00 00 00 E2 [01:05:52]Write i2c OK [01:05:52]MH_I2C_Read... [01:05:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:05:52]Read from MH i2c: E2 [01:05:52]MH_I2C_Read... [01:05:52]Read from MH i2c: E2 0E 00 [01:05:52]MH_I2C_Read... [01:05:52]Read from MH i2c: E2 0E 00 5D 08 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E4 [01:05:52]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [01:05:52]wFMCommunicate OK [01:05:52]SAM_PROTO_GetShiftState done [01:05:52]FM_GetShiftState done [01:05:52]req_shift_opened done [01:05:52]requested_item shift.open_date is exist - process it [01:05:52]req_shift_open_date [01:05:52]req_shift_open_date done [01:05:52]produce_requested_data done [01:05:52]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201714,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [01:05:52]process_action_free close_receipt [01:05:52]json_value_free [01:05:52]json_value_free done [01:05:52]process_json_proto returns [01:05:52]Send response to host [01:05:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201714,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [01:05:52]free response buf [01:05:52]execute_script done [01:05:52]execute_script returns [01:05:52]free content buf [01:05:52]Sock 8.Close socket [01:05:52]Sock 8.Thread stoped [01:05:56]OFD Sender: No OFD packet to send [01:06:01]OFD Sender: No OFD packet to send [01:06:06]OFD Sender: No OFD packet to send [01:06:11]OFD Sender: No OFD packet to send [01:06:16]OFD Sender: No OFD packet to send [01:06:21]OFD Sender: No OFD packet to send [01:06:26]OFD Sender: No OFD packet to send [01:06:31]OFD Sender: No OFD packet to send [01:06:36]OFD Sender: No OFD packet to send [01:06:41]OFD Sender: No OFD packet to send [01:06:46]OFD Sender: No OFD packet to send [01:06:51]OFD Sender: No OFD packet to send [01:06:56]OFD Sender: No OFD packet to send [01:07:01]OFD Sender: No OFD packet to send [01:07:06]OFD Sender: No OFD packet to send [01:07:11]OFD Sender: No OFD packet to send [01:07:16]OFD Sender: No OFD packet to send [01:07:21]OFD Sender: No OFD packet to send [01:07:26]OFD Sender: No OFD packet to send [01:07:31]OFD Sender: No OFD packet to send [01:07:36]OFD Sender: No OFD packet to send [01:07:41]OFD Sender: No OFD packet to send [01:07:46]OFD Sender: No OFD packet to send [01:07:51]OFD Sender: No OFD packet to send [01:07:56]OFD Sender: No OFD packet to send [01:08:01]OFD Sender: No OFD packet to send [01:08:06]OFD Sender: No OFD packet to send [01:08:11]OFD Sender: No OFD packet to send [01:08:16]OFD Sender: No OFD packet to send [01:08:21]OFD Sender: No OFD packet to send [01:08:26]OFD Sender: No OFD packet to send [01:08:31]OFD Sender: No OFD packet to send [01:08:36]OFD Sender: No OFD packet to send [01:08:41]OFD Sender: No OFD packet to send [01:08:46]OFD Sender: No OFD packet to send [01:08:51]OFD Sender: No OFD packet to send [01:08:56]OFD Sender: No OFD packet to send [01:09:01]OFD Sender: No OFD packet to send [01:09:06]OFD Sender: No OFD packet to send [01:09:11]OFD Sender: No OFD packet to send [01:09:16]OFD Sender: No OFD packet to send [01:09:21]OFD Sender: No OFD packet to send [01:09:26]OFD Sender: No OFD packet to send [01:09:31]OFD Sender: No OFD packet to send [01:09:36]OFD Sender: No OFD packet to send [01:09:41]OFD Sender: No OFD packet to send [01:09:46]OFD Sender: No OFD packet to send [01:09:51]OFD Sender: No OFD packet to send [01:09:56]OFD Sender: No OFD packet to send [01:10:01]OFD Sender: No OFD packet to send [01:10:06]OFD Sender: No OFD packet to send [01:10:11]OFD Sender: No OFD packet to send [01:10:16]OFD Sender: No OFD packet to send [01:10:21]OFD Sender: No OFD packet to send [01:10:26]OFD Sender: No OFD packet to send [01:10:31]OFD Sender: No OFD packet to send [01:10:37]OFD Sender: No OFD packet to send [01:10:42]OFD Sender: No OFD packet to send [01:10:47]OFD Sender: No OFD packet to send [01:10:52]OFD Sender: No OFD packet to send [01:10:57]OFD Sender: No OFD packet to send [01:11:02]OFD Sender: No OFD packet to send [01:11:07]OFD Sender: No OFD packet to send [01:11:12]OFD Sender: No OFD packet to send [01:11:17]OFD Sender: No OFD packet to send [01:11:22]OFD Sender: No OFD packet to send [01:11:27]OFD Sender: No OFD packet to send [01:11:32]OFD Sender: No OFD packet to send [01:11:37]OFD Sender: No OFD packet to send [01:11:42]OFD Sender: No OFD packet to send [01:11:47]OFD Sender: No OFD packet to send [01:11:52]OFD Sender: No OFD packet to send [01:11:57]OFD Sender: No OFD packet to send [01:12:02]OFD Sender: No OFD packet to send [01:12:07]OFD Sender: No OFD packet to send [01:12:12]OFD Sender: No OFD packet to send [01:12:17]OFD Sender: No OFD packet to send [01:12:22]OFD Sender: No OFD packet to send [01:12:27]OFD Sender: No OFD packet to send [01:12:32]OFD Sender: No OFD packet to send [01:12:37]OFD Sender: No OFD packet to send [01:12:42]OFD Sender: No OFD packet to send [01:12:47]OFD Sender: No OFD packet to send [01:12:52]OFD Sender: No OFD packet to send [01:12:57]OFD Sender: No OFD packet to send [01:13:02]OFD Sender: No OFD packet to send [01:13:07]OFD Sender: No OFD packet to send [01:13:12]OFD Sender: No OFD packet to send [01:13:17]OFD Sender: No OFD packet to send [01:13:22]OFD Sender: No OFD packet to send [01:13:27]OFD Sender: No OFD packet to send [01:13:32]OFD Sender: No OFD packet to send [01:13:37]OFD Sender: No OFD packet to send [01:13:42]OFD Sender: No OFD packet to send [01:13:47]OFD Sender: No OFD packet to send [01:13:52]OFD Sender: No OFD packet to send [01:13:57]OFD Sender: No OFD packet to send [01:14:02]OFD Sender: No OFD packet to send [01:14:07]OFD Sender: No OFD packet to send [01:14:12]OFD Sender: No OFD packet to send [01:14:17]OFD Sender: No OFD packet to send [01:14:22]OFD Sender: No OFD packet to send [01:14:27]OFD Sender: No OFD packet to send [01:14:32]OFD Sender: No OFD packet to send [01:14:37]OFD Sender: No OFD packet to send [01:14:42]OFD Sender: No OFD packet to send [01:14:47]OFD Sender: No OFD packet to send [01:14:52]OFD Sender: No OFD packet to send [01:14:57]OFD Sender: No OFD packet to send [01:15:02]OFD Sender: No OFD packet to send [01:15:07]OFD Sender: No OFD packet to send [01:15:12]OFD Sender: No OFD packet to send [01:15:17]OFD Sender: No OFD packet to send [01:15:22]OFD Sender: No OFD packet to send [01:15:27]OFD Sender: No OFD packet to send [01:15:32]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: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:15]ConnectInit Can't connect to host [01:19:17]OFD Sender: No OFD packet to send [01:19:22]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:14]ConnectInit Can't connect to host [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:28]OFD Sender: No OFD packet to send [01:25:33]OFD Sender: No OFD packet to send [01:25:38]OFD Sender: No OFD packet to send [01:25:48]OFD Sender: No OFD packet to send [01:25:53]OFD Sender: No OFD packet to send [01:25:58]OFD Sender: No OFD packet to send [01:26:03]OFD Sender: No OFD packet to send [01:26:08]OFD Sender: No OFD packet to send [01:26:13]OFD Sender: No OFD packet to send [01:26:18]OFD Sender: No OFD packet to send [01:26:23]OFD Sender: No OFD packet to send [01:26:28]OFD Sender: No OFD packet to send [01:26:33]OFD Sender: No OFD packet to send [01:26:38]OFD Sender: No OFD packet to send [01:26:43]OFD Sender: No OFD packet to send [01:26:48]OFD Sender: No OFD packet to send [01:26:53]OFD Sender: No OFD packet to send [01:26:58]OFD Sender: No OFD packet to send [01:27:03]OFD Sender: No OFD packet to send [01:27:08]OFD Sender: No OFD packet to send [01:27:13]OFD Sender: No OFD packet to send [01:27:18]OFD Sender: No OFD packet to send [01:27:23]OFD Sender: No OFD packet to send [01:27:28]OFD Sender: No OFD packet to send [01:27:33]OFD Sender: No OFD packet to send [01:27:38]OFD Sender: No OFD packet to send [01:27:43]OFD Sender: No OFD packet to send [01:27:48]OFD Sender: No OFD packet to send [01:27:53]OFD Sender: No OFD packet to send [01:27:57]ConnectInit Can't connect to host [01:27:58]OFD Sender: No OFD packet to send [01:28:08]OFD Sender: No OFD packet to send [01:28:13]OFD Sender: No OFD packet to send [01:28:18]OFD Sender: No OFD packet to send [01:28:23]OFD Sender: No OFD packet to send [01:28:28]OFD Sender: No OFD packet to send [01:28:33]OFD Sender: No OFD packet to send [01:28:38]OFD Sender: No OFD packet to send [01:28:43]OFD Sender: No OFD packet to send [01:28:48]OFD Sender: No OFD packet to send [01:28:53]OFD Sender: No OFD packet to send [01:28:58]OFD Sender: No OFD packet to send [01:29:03]OFD Sender: No OFD packet to send [01:29:08]OFD Sender: No OFD packet to send [01:29:13]OFD Sender: No OFD packet to send [01:29:18]OFD Sender: No OFD packet to send [01:29:23]OFD Sender: No OFD packet to send [01:29:28]OFD Sender: No OFD packet to send [01:29:33]OFD Sender: No OFD packet to send [01:29:38]OFD Sender: No OFD packet to send [01:29:43]OFD Sender: No OFD packet to send [01:29:48]OFD Sender: No OFD packet to send [01:29:53]OFD Sender: No OFD packet to send [01:29:58]OFD Sender: No OFD packet to send [01:30:03]OFD Sender: No OFD packet to send [01:30:08]OFD Sender: No OFD packet to send [01:30:13]OFD Sender: No OFD packet to send [01:30:18]OFD Sender: No OFD packet to send [01:30:20]ConnectInit Can't connect to host [01:30:23]OFD Sender: No OFD packet to send [01:30:28]OFD Sender: No OFD packet to send [01:30:33]OFD Sender: No OFD packet to send [01:30:38]OFD Sender: No OFD packet to send [01:30:43]OFD Sender: No OFD packet to send [01:30:48]OFD Sender: No OFD packet to send [01:30:53]OFD Sender: No OFD packet to send [01:30:58]OFD Sender: No OFD packet to send [01:31:03]OFD Sender: No OFD packet to send [01:31:08]OFD Sender: No OFD packet to send [01:31:13]OFD Sender: No OFD packet to send [01:31:18]OFD Sender: No OFD packet to send [01:31:23]OFD Sender: No OFD packet to send [01:31:28]OFD Sender: No OFD packet to send [01:31:33]OFD Sender: No OFD packet to send [01:31:38]OFD Sender: No OFD packet to send [01:31:43]OFD Sender: No OFD packet to send [01:31:48]OFD Sender: No OFD packet to send [01:31:53]OFD Sender: No OFD packet to send [01:31:58]OFD Sender: No OFD packet to send [01:32:03]OFD Sender: No OFD packet to send [01:32:08]OFD Sender: No OFD packet to send [01:32:13]OFD Sender: No OFD packet to send [01:32:18]OFD Sender: No OFD packet to send [01:32:23]OFD Sender: No OFD packet to send [01:32:28]OFD Sender: No OFD packet to send [01:32:33]OFD Sender: No OFD packet to send [01:32:38]OFD Sender: No OFD packet to send [01:32:43]OFD Sender: No OFD packet to send [01:32:48]OFD Sender: No OFD packet to send [01:32:53]OFD Sender: No OFD packet to send [01:32:58]OFD Sender: No OFD packet to send [01:33:03]OFD Sender: No OFD packet to send [01:33:08]OFD Sender: No OFD packet to send [01:33:13]OFD Sender: No OFD packet to send [01:33:18]OFD Sender: No OFD packet to send [01:33:23]OFD Sender: No OFD packet to send [01:33:28]OFD Sender: No OFD packet to send [01:33:33]OFD Sender: No OFD packet to send [01:33:38]OFD Sender: No OFD packet to send [01:33:43]OFD Sender: No OFD packet to send [01:33:48]OFD Sender: No OFD packet to send [01:33:53]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:48]OFD Sender: No OFD packet to send [01:34:53]OFD Sender: No OFD packet to send [01:34:58]OFD Sender: No OFD packet to send [01:35:03]OFD Sender: No OFD packet to send [01:35:08]OFD Sender: No OFD packet to send [01:35:13]OFD Sender: No OFD packet to send [01:35:18]OFD Sender: No OFD packet to send [01:35:23]OFD Sender: No OFD packet to send [01:35:28]OFD Sender: No OFD packet to send [01:35:33]OFD Sender: No OFD packet to send [01:35:38]OFD Sender: No OFD packet to send [01:35:43]OFD Sender: No OFD packet to send [01:35:48]OFD Sender: No OFD packet to send [01:35:53]OFD Sender: No OFD packet to send [01:35:58]OFD Sender: No OFD packet to send [01:36:03]OFD Sender: No OFD packet to send [01:36:08]OFD Sender: No OFD packet to send [01:36:13]OFD Sender: No OFD packet to send [01:36:18]OFD Sender: No OFD packet to send [01:36:23]OFD Sender: No OFD packet to send [01:36:28]OFD Sender: No OFD packet to send [01:36:33]OFD Sender: No OFD packet to send [01:36:38]OFD Sender: No OFD packet to send [01:36:43]OFD Sender: No OFD packet to send [01:36:48]OFD Sender: No OFD packet to send [01:36:53]OFD Sender: No OFD packet to send [01:36:58]OFD Sender: No OFD packet to send [01:37:03]OFD Sender: No OFD packet to send [01:37:08]OFD Sender: No OFD packet to send [01:37:13]OFD Sender: No OFD packet to send [01:37:18]OFD Sender: No OFD packet to send [01:37:23]OFD Sender: No OFD packet to send [01:37:28]OFD Sender: No OFD packet to send [01:37:33]OFD Sender: No OFD packet to send [01:37:38]OFD Sender: No OFD packet to send [01:37:43]OFD Sender: No OFD packet to send [01:37:48]OFD Sender: No OFD packet to send [01:37:53]OFD Sender: No OFD packet to send [01:37:58]OFD Sender: No OFD packet to send [01:38:03]OFD Sender: No OFD packet to send [01:38:08]OFD Sender: No OFD packet to send [01:38:13]OFD Sender: No OFD packet to send [01:38:18]OFD Sender: No OFD packet to send [01:38:23]OFD Sender: No OFD packet to send [01:38:28]OFD Sender: No OFD packet to send [01:38:33]OFD Sender: No OFD packet to send [01:38:38]OFD Sender: No OFD packet to send [01:38:43]OFD Sender: No OFD packet to send [01:38:48]OFD Sender: No OFD packet to send [01:38:53]OFD Sender: No OFD packet to send [01:38:58]OFD Sender: No OFD packet to send [01:39:03]OFD Sender: No OFD packet to send [01:39:08]OFD Sender: No OFD packet to send [01:39:13]OFD Sender: No OFD packet to send [01:39:18]OFD Sender: No OFD packet to send [01:39:23]OFD Sender: No OFD packet to send [01:39:28]OFD Sender: No OFD packet to send [01:39:33]OFD Sender: No OFD packet to send [01:39:38]OFD Sender: No OFD packet to send [01:39:43]OFD Sender: No OFD packet to send [01:39:48]OFD Sender: No OFD packet to send [01:39:53]OFD Sender: No OFD packet to send [01:39:58]OFD Sender: No OFD packet to send [01:40:03]OFD Sender: No OFD packet to send [01:40:08]OFD Sender: No OFD packet to send [01:40:13]OFD Sender: No OFD packet to send [01:40:18]OFD Sender: No OFD packet to send [01:40:24]OFD Sender: No OFD packet to send [01:40:29]OFD Sender: No OFD packet to send [01:40:34]OFD Sender: No OFD packet to send [01:40:39]OFD Sender: No OFD packet to send [01:40:44]OFD Sender: No OFD packet to send [01:40:49]OFD Sender: No OFD packet to send [01:40:54]OFD Sender: No OFD packet to send [01:40:59]OFD Sender: No OFD packet to send [01:41:04]OFD Sender: No OFD packet to send [01:41:09]OFD Sender: No OFD packet to send [01:41:14]OFD Sender: No OFD packet to send [01:41:19]OFD Sender: No OFD packet to send [01:41:24]OFD Sender: No OFD packet to send [01:41:29]OFD Sender: No OFD packet to send [01:41:34]OFD Sender: No OFD packet to send [01:41:39]OFD Sender: No OFD packet to send [01:41:44]OFD Sender: No OFD packet to send [01:41:49]OFD Sender: No OFD packet to send [01:41:54]OFD Sender: No OFD packet to send [01:41:59]OFD Sender: No OFD packet to send [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:04]OFD Sender: No OFD packet to send [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:48]accept exits with 9 [01:47:48]New connection [01:47:48]New thread 3067080036 created [01:47:48]Thread 3066936676 joined [01:47:48]Waiting for new connection... [01:47:48] Sock 9.Parse request [01:47:48]Sock 9.Check first char [01:47:48]Sock 9.First char is OK [01:47:48]request: POST /json_proto HTTP/1.0 [01:47:48]Method: POST [01:47:48]URL: /json_proto [01:47:48]Method is POST - this is cgi request [01:47:48]url: /json_proto [01:47:48]query_string will be loaded in cgi processing [01:47:48]execute_cgi json_proto POST (null) [01:47:48]execute_cgi path=json_proto method=POST [01:47:48]POST find Content-Length [01:47:48]Host: 172.17.63.195:8080 [01:47:48]Content-Length: 677 [01:47:48]Content-Type: application/json [01:47:48] [01:47:48]POST finish read [01:47:48]Found Content-Length = 677 [01:47:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [01:47:48]execute_script... [01:47:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [01:47:48]POST & json_proto [01:47:48]process_json_proto [01:47:48]json parsed OK: [01:47:48]protocol is kg_v1.0 [01:47:48]action value=close_receipt [01:47:48]process_action close_receipt [01:47:48]cmd_close_receipt [01:47:48]MH_GetDate [01:47:48]Write to MH i2c: F0 00 00 5E 08 55 [01:47:48]Write i2c OK [01:47:48]MH_I2C_Read... [01:47:48]Read from MH i2c: F0 [01:47:48]MH_I2C_Read... [01:47:48]Read from MH i2c: F0 09 00 [01:47:48]MH_I2C_Read... [01:47:48]Read from MH i2c: F0 09 00 5E 08 00 C6 9B 1D 67 68 46 19 67 71 [01:47:48]GetLastDocTimeStamp 1729991150 [01:47:48]current date 1729993670 [01:47:48]FM_GetShiftState [01:47:48]SAM_PROTO_GetShiftState [01:47:48]wFMCommunicate request_size=4 [01:47:48]MH_SAM_APDU [01:47:48]CAPDU: 80 13 01 00 [01:47:48]Write to MH i2c: E2 08 00 5F 08 80 13 01 00 00 00 00 00 E4 [01:47:48]Write i2c OK [01:47:48]MH_I2C_Read... [01:47:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:47:48]Read from MH i2c: E2 [01:47:48]MH_I2C_Read... [01:47:48]Read from MH i2c: E2 0E 00 [01:47:48]MH_I2C_Read... [01:47:48]Read from MH i2c: E2 0E 00 5F 08 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 E6 [01:47:48]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [01:47:48]wFMCommunicate OK [01:47:48]SAM_PROTO_GetShiftState done [01:47:48]FM_GetShiftState done [01:47:48]opened in 1729987312 [01:47:48]opened+sec_in_day 1730073712 [01:47:48]quantity*price = 50041 [01:47:48]sum+1 = 50042 [01:47:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 7 27.10.2024 01:47 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 ФМ: 0000000000871756 ФД: 201715 ФПД: 157579498486345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T014750&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201715&fm=157579498486345&tin=02508201610067®Number=0000000000091777&sum=50000 [01:47:49]StoreToDocumentArchive [01:47:49]shift 544 fd 201715 [01:47:49]save to /storage/0544/doc_00201715 [01:47:49]save last doc name /storage/0544/doc_00201715 to /storage/kkm_last_doc_name [01:47:49]save OK [01:47:49]Clear old archive folders... [01:47:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:47:49]tlvbuf is 000F3640 [01:47:49]SAM_PROTO_ClearQueue [01:47:49]wFMCommunicate request_size=4 [01:47:49]MH_SAM_APDU [01:47:49]CAPDU: 80 09 00 00 [01:47:49]Write to MH i2c: E2 08 00 6C 08 80 09 00 00 00 00 00 00 E6 [01:47:49]Write i2c OK [01:47:49]MH_I2C_Read... [01:47:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:47:49]Read from MH i2c: E2 [01:47:49]MH_I2C_Read... [01:47:49]Read from MH i2c: E2 03 00 [01:47:49]MH_I2C_Read... [01:47:49]Read from MH i2c: E2 03 00 6C 08 00 90 00 E8 [01:47:49]RAPDU: 90 00 [01:47:49]wFMCommunicate OK [01:47:49]SAM_PROTO_ClearQueue done [01:47:49]KKMCreateOFDPacket [01:47:49]OFDProtocolAddRootSTLVToBuf [01:47:49]FM_MakeSignedData [01:47:49]FM_MakeSignedData [01:47:49]SAM_PROTO_SignData [01:47:49]wFMCommunicate request_size=4 [01:47:49]MH_SAM_APDU [01:47:49]CAPDU: 80 0D 01 02 [01:47:49]Write to MH i2c: E2 08 00 6D 08 80 0D 01 02 00 00 00 00 EE [01:47:49]Write i2c OK [01:47:49]MH_I2C_Read... [01:47:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:47:49]Read from MH i2c: E2 [01:47:49]MH_I2C_Read... [01:47:49]Read from MH i2c: E2 03 00 [01:47:49]MH_I2C_Read... [01:47:49]Read from MH i2c: E2 03 00 6D 08 00 90 00 E9 [01:47:49]RAPDU: 90 00 [01:47:49]wFMCommunicate OK [01:47:49]wFMCommunicate request_size=255 [01:47:49]MH_SAM_APDU [01:47: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 32 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 07 00 00 00 F4 03 04 00 C6 9B 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F3 13 03 00 35 04 06 00 8F [01:47:49]Write to MH i2c: E2 02 01 6E 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 32 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 07 00 00 00 F4 03 04 00 C6 9B 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F3 13 03 00 35 04 06 00 8F 00 00 28 [01:47:49]Write i2c OK [01:47:49]MH_I2C_Read... [01:47:49]OFD Sender: No OFD packet to send [01:47:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:47:49]Read from MH i2c: E2 [01:47:49]MH_I2C_Read... [01:47:49]Read from MH i2c: E2 03 00 [01:47:49]MH_I2C_Read... [01:47:49]Read from MH i2c: E2 03 00 6E 08 00 90 00 EA [01:47:49]RAPDU: 90 00 [01:47:49]wFMCommunicate OK [01:47:49]wFMCommunicate request_size=10 [01:47:49]MH_SAM_APDU [01:47:49]CAPDU: 80 0D 02 02 05 51 56 07 FA 49 [01:47:49]Write to MH i2c: E2 0D 00 6F 08 80 0D 02 02 05 00 51 56 07 FA 49 00 00 EC [01:47:49]Write i2c OK [01:47:49]MH_I2C_Read... [01:47:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:47:49]Read from MH i2c: E2 [01:47:49]MH_I2C_Read... [01:47:49]Read from MH i2c: E2 03 00 [01:47:49]MH_I2C_Read... [01:47:49]Read from MH i2c: E2 03 00 6F 08 00 90 00 EB [01:47:49]RAPDU: 90 00 [01:47:49]wFMCommunicate OK [01:47:49]wFMCommunicate request_size=4 [01:47:49]MH_SAM_APDU [01:47:49]CAPDU: 80 0D 03 02 [01:47:49]Write to MH i2c: E2 08 00 70 08 80 0D 03 02 00 00 00 00 F3 [01:47:49]Write i2c OK [01:47:49]MH_I2C_Read... [01:47:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:47:49]Read from MH i2c: E2 [01:47:49]MH_I2C_Read... [01:47:49]Read from MH i2c: E2 0B 00 [01:47:49]MH_I2C_Read... [01:47:49]Read from MH i2c: E2 0B 00 70 08 00 77 BE C9 7E 22 4C 33 5D 90 00 6E [01:47:49]RAPDU: 77 BE C9 7E 22 4C 33 5D 90 00 [01:47:49]wFMCommunicate OK [01:47:49]SAM_PROTO_SignData done [01:47:49]FM_MakeSignedData done [01:47:49]CreateOFDProtocolMessage [01:47:49]wFMCommunicate request_size=4 [01:47:49]MH_SAM_APDU [01:47:49]CAPDU: 80 11 00 00 [01:47:49]Write to MH i2c: E2 08 00 71 08 80 11 00 00 00 00 00 00 F3 [01:47:49]Write i2c OK [01:47:49]MH_I2C_Read... [01:47:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:47:49]Read from MH i2c: E2 [01:47:49]MH_I2C_Read... [01:47:49]Read from MH i2c: E2 17 00 [01:47:49]MH_I2C_Read... [01:47:49]Read from MH i2c: E2 17 00 71 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 48 [01:47:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [01:47:49]wFMCommunicate OK [01:47:49]CreateOFDProtocolMessage done [01:47:49]OFDSenderStorePacket 201715 [01:47:49]StoreOFDPacket docnum=201715 [01:47:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A5 E7 07 01 AE 52 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 32 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 07 00 00 00 F4 03 04 00 C6 9B 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F3 13 03 00 35 04 06 00 8F 51 56 07 FA 49 77 BE C9 7E 22 4C 33 5D [01:47:49]CheckFolder [01:47:49]dirname=/storage/ofd_packets [01:47:49]CheckFolder done [01:47:49]ProducePacketName [01:47:49]name=ofd_packets/00201715 [01:47:49]NVStorageSaveData ofd_packets/00201715 [01:47:49]File name is /storage/ofd_packets/00201715 [01:47:49]Write 301 bytes [01:47:49]NVStorageSaveData done [01:47:49]OFDSenderStorePacket done [01:47:49]KKMCreateOFDPacket done [01:47:49]NVStorageSaveData kkm_last_timestamp [01:47:49]File name is /storage/kkm_last_timestamp [01:47:49]Write 4 bytes [01:47:49]NVStorageSaveData done [01:47:49]ExternCall_PrintAddStr [01:47:49]wPrintStart [01:47:49]Write to MH i2c: 01 00 00 72 08 7A [01:47:49]Write i2c OK [01:47:49]MH_I2C_Read... [01:47:49]Read from MH i2c: 01 [01:47:49]MH_I2C_Read... [01:47:49]Read from MH i2c: 01 07 00 [01:47:49]MH_I2C_Read... [01:47:49]Read from MH i2c: 01 07 00 72 08 00 00 00 00 00 FF 0F 8F [01:47:49]RasterBufferAndPrint [01:47:49]line Счет N : (1)449471 [01:47:49]line ИНН: 02508201610067 [01:47:49]line Контрольно-Кассовый Чек [01:47:49]line ПРОДАЖА [01:47:49]line ТРК (МРК, ГНК) : 41 [01:47:49]line Товар: 2710124130 [01:47:49]line Аи-92-К-2 [01:47:49]line 7.480 * 66.90 [01:47:49]line = 500.41 [01:47:49]line НДС 12% НСП 1% [01:47:49]line > о реализуемом товаре [01:47:49]line ОКРУГЛЕНИЕ: -0.41 [01:47:49]line ИТОГО: 500.00 [01:47:49]line Внесено: 500.00 [01:47:49]line СДАЧА: 0.00 [01:47:49]line НСП 1% : 4.43 [01:47:49]line НДС 12% : 53.14 [01:47:49]line Наличными: 500.00 [01:47:49]line Безнал.: 0.00 [01:47:49]line Место: АЗС № 171 "Партнер Нефть" [01:47:49]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [01:47:49]line СНО: Общий режим [01:47:49]line Чек 7 27.10.2024 01:47 [01:47:49]line Смена: 544 ФФД: 1.0 [01:47:49]line ЗНМ: 0300000109 [01:47:49]line РНМ: 0000000000091777 [01:47:49]line Версия ККМ: 001 [01:47:49]line ФМ: 0000000000871756 [01:47:49]line ФД: 201715 [01:47:49]line ФПД: 157579498486345 [01:47:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T014750&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201715&fm=157579498486345&tin=02508201610067®Number=0000000000091777&sum=50000 [01:47:50]OFD Sender: Processing packet 201715 [packets to send 112, broken 111] [01:47:50]ProducePacketName [01:47:50]name=ofd_packets/00201715 [01:47:50]OFD Sender: To server: pG, [01:47:50]CommunicateWithHost lk.salyk.kg:30040 [01:47:50]ConnectInit lk.salyk.kg [01:47:50]written 0, free lines is 4095 [01:47:50]Connected sock=10 [01:47:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 A5 E7 07 01 AE 52 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 32 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 07 00 00 00 F4 03 04 00 C6 9B 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F3 13 03 00 35 04 06 00 8F 51 56 07 FA 49 77 BE C9 7E 22 4C 33 5D [01:47:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 B6 7A 47 00 E2 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F3 13 03 00 F4 03 04 00 6D 47 1D 67 B6 04 01 00 00 B9 7F BC 8A 34 02 C2 D8 [01:47:50]CommunicateWithHost err = 0 [01:47:50]CheckOFDResponse [01:47:50]1017 (14) - 77093643461234 [01:47:50]1041 (16) - 0000000000871756 [01:47:50]1040 (4) - 201715 [01:47:50]1012 (4) - 26.10.2024 19:47 [01:47:50]1206 (1) - 0 [01:47:50]OFD Sender: Remove packet 201715 [01:47:50]ProducePacketName [01:47:50]name=ofd_packets/00201715 [01:47:50]NVStorageDeleteData [01:47:50]Write to MH i2c: 01 00 00 9D 08 A5 [01:47:50]Write i2c OK [01:47:50]MH_I2C_Read... [01:47:50]Read from MH i2c: 01 [01:47:50]MH_I2C_Read... [01:47:50]Read from MH i2c: 01 07 00 [01:47:50]MH_I2C_Read... [01:47:50]Read from MH i2c: 01 07 00 9D 08 00 00 00 00 00 91 0C 49 [01:47:50]RasterBufferAndPrint [01:47:50]line [01:47:50]line [01:47:50]line [01:47:50]line [01:47:50]line [01:47:50]written 0, free lines is 3223 [01:47:50]MH_Cut [01:47:50]Write to MH i2c: D1 01 00 A4 08 01 7E [01:47:50]Write i2c OK [01:47:50]MH_I2C_Read... [01:47:50]Read from MH i2c: D1 [01:47:50]MH_I2C_Read... [01:47:50]Read from MH i2c: D1 01 00 [01:47:50]MH_I2C_Read... [01:47:50]Read from MH i2c: D1 01 00 A4 08 00 7D [01:47:50]Write to MH i2c: 01 00 00 A5 08 AD [01:47:50]Write i2c OK [01:47:50]MH_I2C_Read... [01:47:50]OFD Sender: No OFD packet to send [01:47:51]*** Cut start [01:47:51]*** Purtial cut [01:47:51]*** CUTSNS_PIN = 0 [01:47:51]*** Stage 1: CUTSNS_PIN = 1 [01:47:53]Read from MH i2c: 01 [01:47:53]MH_I2C_Read... [01:47:53]*** Stop cut motor [01:47:53]*** Cut end [01:47:53]Read from MH i2c: 01 07 00 [01:47:53]MH_I2C_Read... [01:47:53]Read from MH i2c: 01 07 00 A5 08 00 00 00 00 00 FF 0F C2 [01:47:53]process_action close_receipt done [01:47:53]requested_data is exist [01:47:53]produce_requested_data [01:47:53]requested_item fm.sn is exist - process it [01:47:53]wFMCommunicate request_size=4 [01:47:53]MH_SAM_APDU [01:47:53]CAPDU: 80 11 00 00 [01:47:53]Write to MH i2c: E2 08 00 A6 08 80 11 00 00 00 00 00 00 28 [01:47:53]Write i2c OK [01:47:53]MH_I2C_Read... [01:47:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:47:53]Read from MH i2c: E2 [01:47:53]MH_I2C_Read... [01:47:53]Read from MH i2c: E2 17 00 [01:47:53]MH_I2C_Read... [01:47:53]Read from MH i2c: E2 17 00 A6 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 7D [01:47:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [01:47:53]wFMCommunicate OK [01:47:53]requested_item fd.num is exist - process it [01:47:53]SAM_PROTO_GetFieldsCounters [01:47:53]wFMCommunicate request_size=4 [01:47:53]MH_SAM_APDU [01:47:53]CAPDU: 80 13 00 00 [01:47:53]Write to MH i2c: E2 08 00 A7 08 80 13 00 00 00 00 00 00 2B [01:47:53]Write i2c OK [01:47:53]MH_I2C_Read... [01:47:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:47:53]Read from MH i2c: E2 [01:47:53]MH_I2C_Read... [01:47:53]Read from MH i2c: E2 62 00 [01:47:53]MH_I2C_Read... [01:47:53]Read from MH i2c: E2 62 00 A7 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F3 13 03 00 0E 04 04 00 20 02 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 94 [01:47:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F3 13 03 00 0E 04 04 00 20 02 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 [01:47:53]wFMCommunicate OK [01:47:53]SAM_PROTO_GetFieldsCounters done [01:47:53]requested_item shift.num is exist - process it [01:47:53]requested_item shift.opened is exist - process it [01:47:53]req_shift_opened [01:47:53]FM_GetShiftState [01:47:53]SAM_PROTO_GetShiftState [01:47:53]wFMCommunicate request_size=4 [01:47:53]MH_SAM_APDU [01:47:53]CAPDU: 80 13 01 00 [01:47:53]Write to MH i2c: E2 08 00 A8 08 80 13 01 00 00 00 00 00 2D [01:47:53]Write i2c OK [01:47:53]MH_I2C_Read... [01:47:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:47:53]Read from MH i2c: E2 [01:47:53]MH_I2C_Read... [01:47:53]Read from MH i2c: E2 0E 00 [01:47:53]MH_I2C_Read... [01:47:53]Read from MH i2c: E2 0E 00 A8 08 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 2F [01:47:53]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [01:47:53]wFMCommunicate OK [01:47:53]SAM_PROTO_GetShiftState done [01:47:53]FM_GetShiftState done [01:47:53]req_shift_opened done [01:47:53]requested_item shift.open_date is exist - process it [01:47:53]req_shift_open_date [01:47:53]req_shift_open_date done [01:47:53]produce_requested_data done [01:47:53]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201715,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [01:47:53]process_action_free close_receipt [01:47:53]json_value_free [01:47:53]json_value_free done [01:47:53]process_json_proto returns [01:47:53]Send response to host [01:47:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201715,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [01:47:53]free response buf [01:47:53]execute_script done [01:47:53]execute_script returns [01:47:53]free content buf [01:47:53]Sock 9.Close socket [01:47:53]Sock 9.Thread stoped [01:47:55]OFD Sender: No OFD packet to send [01:48:00]OFD Sender: No OFD packet to send [01:48:05]OFD Sender: No OFD packet to send [01:48:10]OFD Sender: No OFD packet to send [01:48:15]OFD Sender: No OFD packet to send [01:48:20]OFD Sender: No OFD packet to send [01:48:25]OFD Sender: No OFD packet to send [01:48:30]OFD Sender: No OFD packet to send [01:48:35]OFD Sender: No OFD packet to send [01:48:40]OFD Sender: No OFD packet to send [01:48:46]OFD Sender: No OFD packet to send [01:48:51]OFD Sender: No OFD packet to send [01:48:56]OFD Sender: No OFD packet to send [01:49:01]OFD Sender: No OFD packet to send [01:49:06]OFD Sender: No OFD packet to send [01:49:11]OFD Sender: No OFD packet to send [01:49:16]OFD Sender: No OFD packet to send [01:49:21]OFD Sender: No OFD packet to send [01:49:26]OFD Sender: No OFD packet to send [01:49:31]OFD Sender: No OFD packet to send [01:49:36]OFD Sender: No OFD packet to send [01:49:41]OFD Sender: No OFD packet to send [01:49:46]OFD Sender: No OFD packet to send [01:49:51]OFD Sender: No OFD packet to send [01:49:56]OFD Sender: No OFD packet to send [01:50:01]OFD Sender: No OFD packet to send [01:50:06]OFD Sender: No OFD packet to send [01:50:11]OFD Sender: No OFD packet to send [01:50:16]OFD Sender: No OFD packet to send [01:50:21]OFD Sender: No OFD packet to send [01:50:26]OFD Sender: No OFD packet to send [01:50:31]OFD Sender: No OFD packet to send [01:50:36]OFD Sender: No OFD packet to send [01:50:41]OFD Sender: No OFD packet to send [01:50:46]OFD Sender: No OFD packet to send [01:50:51]OFD Sender: No OFD packet to send [01:50:56]OFD Sender: No OFD packet to send [01:51:01]OFD Sender: No OFD packet to send [01:51:06]OFD Sender: No OFD packet to send [01:51:11]OFD Sender: No OFD packet to send [01:51:16]OFD Sender: No OFD packet to send [01:51:21]OFD Sender: No OFD packet to send [01:51:26]OFD Sender: No OFD packet to send [01:51:31]OFD Sender: No OFD packet to send [01:51:36]OFD Sender: No OFD packet to send [01:51:41]OFD Sender: No OFD packet to send [01:51:46]OFD Sender: No OFD packet to send [01:51:51]OFD Sender: No OFD packet to send [01:51:56]OFD Sender: No OFD packet to send [01:52:01]OFD Sender: No OFD packet to send [01:52:06]OFD Sender: No OFD packet to send [01:52:11]OFD Sender: No OFD packet to send [01:52:16]OFD Sender: No OFD packet to send [01:52:21]OFD Sender: No OFD packet to send [01:52:26]OFD Sender: No OFD packet to send [01:52:31]OFD Sender: No OFD packet to send [01:52:36]OFD Sender: No OFD packet to send [01:52:41]OFD Sender: No OFD packet to send [01:52:46]OFD Sender: No OFD packet to send [01:52:51]OFD Sender: No OFD packet to send [01:52:56]OFD Sender: No OFD packet to send [01:53:01]OFD Sender: No OFD packet to send [01:53:06]OFD Sender: No OFD packet to send [01:53:11]OFD Sender: No OFD packet to send [01:53:16]OFD Sender: No OFD packet to send [01:53:21]OFD Sender: No OFD packet to send [01:53:26]OFD Sender: No OFD packet to send [01:53:31]OFD Sender: No OFD packet to send [01:53:36]OFD Sender: No OFD packet to send [01:53:41]OFD Sender: No OFD packet to send [01:53:46]OFD Sender: No OFD packet to send [01:53:51]OFD Sender: No OFD packet to send [01:53:56]OFD Sender: No OFD packet to send [01:54:01]OFD Sender: No OFD packet to send [01:54:06]OFD Sender: No OFD packet to send [01:54:11]OFD Sender: No OFD packet to send [01:54:16]OFD Sender: No OFD packet to send [01:54:21]OFD Sender: No OFD packet to send [01:54:26]OFD Sender: No OFD packet to send [01:54:31]OFD Sender: No OFD packet to send [01:54:36]OFD Sender: No OFD packet to send [01:54:41]OFD Sender: No OFD packet to send [01:54:46]OFD Sender: No OFD packet to send [01:54:51]OFD Sender: No OFD packet to send [01:54:56]OFD Sender: No OFD packet to send [01:55:01]OFD Sender: No OFD packet to send [01:55:06]OFD Sender: No OFD packet to send [01:55:11]OFD Sender: No OFD packet to send [01:55:16]OFD Sender: No OFD packet to send [01:55:21]OFD Sender: No OFD packet to send [01:55:26]OFD Sender: No OFD packet to send [01:55:31]OFD Sender: No OFD packet to send [01:55:36]OFD Sender: No OFD packet to send [01:55:41]OFD Sender: No OFD packet to send [01:55:46]OFD Sender: No OFD packet to send [01:55:51]OFD Sender: No OFD packet to send [01:55:56]OFD Sender: No OFD packet to send [01:56:01]OFD Sender: No OFD packet to send [01:56:06]OFD Sender: No OFD packet to send [01:56:11]OFD Sender: No OFD packet to send [01:56:16]OFD Sender: No OFD packet to send [01:56:21]OFD Sender: No OFD packet to send [01:56:26]OFD Sender: No OFD packet to send [01:56:31]OFD Sender: No OFD packet to send [01:56:36]OFD Sender: No OFD packet to send [01:56:41]OFD Sender: No OFD packet to send [01:56:46]OFD Sender: No OFD packet to send [01:56:51]OFD Sender: No OFD packet to send [01:56:56]OFD Sender: No OFD packet to send [01:57:01]OFD Sender: No OFD packet to send [01:57:06]OFD Sender: No OFD packet to send [01:57:11]OFD Sender: No OFD packet to send [01:57:16]OFD Sender: No OFD packet to send [01:57:21]OFD Sender: No OFD packet to send [01:57:26]OFD Sender: No OFD packet to send [01:57:31]OFD Sender: No OFD packet to send [01:57:36]OFD Sender: No OFD packet to send [01:57:41]OFD Sender: No OFD packet to send [01:57:46]OFD Sender: No OFD packet to send [01:57:51]OFD Sender: No OFD packet to send [01:57:56]OFD Sender: No OFD packet to send [01:58:01]OFD Sender: No OFD packet to send [01:58:06]OFD Sender: No OFD packet to send [01:58:11]OFD Sender: No OFD packet to send [01:58:16]OFD Sender: No OFD packet to send [01:58:21]OFD Sender: No OFD packet to send [01:58:26]OFD Sender: No OFD packet to send [01:58:31]OFD Sender: No OFD packet to send [01:58:36]OFD Sender: No OFD packet to send [01:58:41]OFD Sender: No OFD packet to send [01:58:46]OFD Sender: No OFD packet to send [01:58:51]OFD Sender: No OFD packet to send [01:58:56]OFD Sender: No OFD packet to send [01:59:01]OFD Sender: No OFD packet to send [01:59:06]OFD Sender: No OFD packet to send [01:59:11]OFD Sender: No OFD packet to send [01:59:16]OFD Sender: No OFD packet to send [01:59:21]OFD Sender: No OFD packet to send [01:59:26]OFD Sender: No OFD packet to send [01:59:31]OFD Sender: No OFD packet to send [01:59:36]OFD Sender: No OFD packet to send [01:59:41]OFD Sender: No OFD packet to send [01:59:46]OFD Sender: No OFD packet to send [01:59:51]OFD Sender: No OFD packet to send [01:59:56]OFD Sender: No OFD packet to send [01:59:57]accept exits with 8 [01:59:57]New connection [01:59:57]New thread 3066936676 created [01:59:57]Thread 3067080036 joined [01:59:57]Waiting for new connection... [01:59:57] Sock 8.Parse request [01:59:57]Sock 8.Check first char [01:59:57]Sock 8.First char is OK [01:59:57]request: POST /json_proto HTTP/1.0 [01:59:57]Method: POST [01:59:57]URL: /json_proto [01:59:57]Method is POST - this is cgi request [01:59:57]url: /json_proto [01:59:57]query_string will be loaded in cgi processing [01:59:57]execute_cgi json_proto POST (null) [01:59:57]execute_cgi path=json_proto method=POST [01:59:57]POST find Content-Length [01:59:57]Host: 172.17.63.195:8080 [01:59:57]Content-Length: 766 [01:59:57]Content-Type: application/json [01:59:57] [01:59:57]POST finish read [01:59:57]Found Content-Length = 766 [01:59:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)449472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "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: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:59:57]execute_script... [01:59: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)449472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "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: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:59:57]POST & json_proto [01:59:57]process_json_proto [01:59:57]json parsed OK: [01:59:57]protocol is kg_v1.0 [01:59:57]action value=close_receipt [01:59:57]process_action close_receipt [01:59:57]cmd_close_receipt [01:59:57]MH_GetDate [01:59:57]Write to MH i2c: F0 00 00 A9 08 A0 [01:59:57]Write i2c OK [01:59:57]MH_I2C_Read... [01:59:57]Read from MH i2c: F0 [01:59:57]MH_I2C_Read... [01:59:57]Read from MH i2c: F0 09 00 [01:59:57]MH_I2C_Read... [01:59:57]Read from MH i2c: F0 09 00 A9 08 00 A0 9E 1D 67 68 46 19 67 99 [01:59:57]GetLastDocTimeStamp 1729993670 [01:59:57]current date 1729994400 [01:59:57]FM_GetShiftState [01:59:57]SAM_PROTO_GetShiftState [01:59:57]wFMCommunicate request_size=4 [01:59:57]MH_SAM_APDU [01:59:57]CAPDU: 80 13 01 00 [01:59:57]Write to MH i2c: E2 08 00 AA 08 80 13 01 00 00 00 00 00 2F [01:59:57]Write i2c OK [01:59:57]MH_I2C_Read... [01:59:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:59:57]Read from MH i2c: E2 [01:59:57]MH_I2C_Read... [01:59:57]Read from MH i2c: E2 0E 00 [01:59:57]MH_I2C_Read... [01:59:57]Read from MH i2c: E2 0E 00 AA 08 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 31 [01:59:57]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [01:59:57]wFMCommunicate OK [01:59:57]SAM_PROTO_GetShiftState done [01:59:57]FM_GetShiftState done [01:59:57]opened in 1729987312 [01:59:57]opened+sec_in_day 1730073712 [01:59:57]quantity*price = 40006 [01:59:57]sum+1 = 40007 [01:59:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 171 "Партнер Нефть" Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 СНО: Общий режим Чек 8 27.10.2024 02:00 Смена: 544 ФФД: 1.0 ЗНМ: 0300000109 РНМ: 0000000000091777 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871756 ФД: 201716 ФПД: 266838025834980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T020000&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201716&fm=266838025834980&tin=02508201610067®Number=0000000000091777&sum=40006 [01:59:59]StoreToDocumentArchive [01:59:59]shift 544 fd 201716 [01:59:59]save to /storage/0544/doc_00201716 [01:59:59]save last doc name /storage/0544/doc_00201716 to /storage/kkm_last_doc_name [01:59:59]save OK [01:59:59]Clear old archive folders... [01:59:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:59:59]tlvbuf is 0006A160 [01:59:59]SAM_PROTO_ClearQueue [01:59:59]wFMCommunicate request_size=4 [01:59:59]MH_SAM_APDU [01:59:59]CAPDU: 80 09 00 00 [01:59:59]Write to MH i2c: E2 08 00 B7 08 80 09 00 00 00 00 00 00 31 [01:59:59]Write i2c OK [01:59:59]MH_I2C_Read... [01:59:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:59:59]Read from MH i2c: E2 [01:59:59]MH_I2C_Read... [01:59:59]Read from MH i2c: E2 03 00 [01:59:59]MH_I2C_Read... [01:59:59]Read from MH i2c: E2 03 00 B7 08 00 90 00 33 [01:59:59]RAPDU: 90 00 [01:59:59]wFMCommunicate OK [01:59:59]SAM_PROTO_ClearQueue done [01:59:59]KKMCreateOFDPacket [01:59:59]OFDProtocolAddRootSTLVToBuf [01:59:59]FM_MakeSignedData [01:59:59]FM_MakeSignedData [01:59:59]SAM_PROTO_SignData [01:59:59]wFMCommunicate request_size=4 [01:59:59]MH_SAM_APDU [01:59:59]CAPDU: 80 0D 01 02 [01:59:59]Write to MH i2c: E2 08 00 B8 08 80 0D 01 02 00 00 00 00 39 [01:59:59]Write i2c OK [01:59:59]MH_I2C_Read... [01:59:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:59:59]Read from MH i2c: E2 [01:59:59]MH_I2C_Read... [01:59:59]Read from MH i2c: E2 03 00 [01:59:59]MH_I2C_Read... [01:59:59]Read from MH i2c: E2 03 00 B8 08 00 90 00 34 [01:59:59]RAPDU: 90 00 [01:59:59]wFMCommunicate OK [01:59:59]wFMCommunicate request_size=255 [01:59:59]MH_SAM_APDU [01:59: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 32 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 46 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 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 A0 9E 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F4 13 03 00 35 04 06 00 F2 [01:59:59]Write to MH i2c: E2 02 01 B9 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 32 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 46 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 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 A0 9E 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F4 13 03 00 35 04 06 00 F2 00 00 90 [01:59:59]Write i2c OK [01:59:59]MH_I2C_Read... [01:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:59:59]Read from MH i2c: E2 [01:59:59]MH_I2C_Read... [01:59:59]Read from MH i2c: E2 03 00 [01:59:59]MH_I2C_Read... [01:59:59]Read from MH i2c: E2 03 00 B9 08 00 90 00 35 [01:59:59]RAPDU: 90 00 [01:59:59]wFMCommunicate OK [01:59:59]wFMCommunicate request_size=10 [01:59:59]MH_SAM_APDU [01:59:59]CAPDU: 80 0D 02 02 05 B0 11 BE 11 E4 [01:59:59]Write to MH i2c: E2 0D 00 BA 08 80 0D 02 02 05 00 B0 11 BE 11 E4 00 00 BA [01:59:59]Write i2c OK [01:59:59]MH_I2C_Read... [01:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:59:59]Read from MH i2c: E2 [01:59:59]MH_I2C_Read... [01:59:59]Read from MH i2c: E2 03 00 [01:59:59]MH_I2C_Read... [01:59:59]Read from MH i2c: E2 03 00 BA 08 00 90 00 36 [01:59:59]RAPDU: 90 00 [01:59:59]wFMCommunicate OK [01:59:59]wFMCommunicate request_size=4 [01:59:59]MH_SAM_APDU [01:59:59]CAPDU: 80 0D 03 02 [01:59:59]Write to MH i2c: E2 08 00 BB 08 80 0D 03 02 00 00 00 00 3E [01:59:59]Write i2c OK [01:59:59]MH_I2C_Read... [01:59:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:59:59]Read from MH i2c: E2 [01:59:59]MH_I2C_Read... [01:59:59]Read from MH i2c: E2 0B 00 [01:59:59]MH_I2C_Read... [01:59:59]Read from MH i2c: E2 0B 00 BB 08 00 4C 89 73 2A EB 23 5F B5 90 00 D3 [01:59:59]RAPDU: 4C 89 73 2A EB 23 5F B5 90 00 [01:59:59]wFMCommunicate OK [01:59:59]SAM_PROTO_SignData done [01:59:59]FM_MakeSignedData done [01:59:59]CreateOFDProtocolMessage [01:59:59]wFMCommunicate request_size=4 [01:59:59]MH_SAM_APDU [01:59:59]CAPDU: 80 11 00 00 [01:59:59]Write to MH i2c: E2 08 00 BC 08 80 11 00 00 00 00 00 00 3E [01:59:59]Write i2c OK [01:59:59]MH_I2C_Read... [01:59:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:59:59]Read from MH i2c: E2 [01:59:59]MH_I2C_Read... [01:59:59]Read from MH i2c: E2 17 00 [01:59:59]MH_I2C_Read... [01:59:59]Read from MH i2c: E2 17 00 BC 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 93 [01:59:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [01:59:59]wFMCommunicate OK [01:59:59]CreateOFDProtocolMessage done [01:59:59]OFDSenderStorePacket 201716 [01:59:59]StoreOFDPacket docnum=201716 [01:59:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 2F 5E 07 01 75 CB 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 32 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 46 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 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 A0 9E 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F4 13 03 00 35 04 06 00 F2 B0 11 BE 11 E4 4C 89 73 2A EB 23 5F B5 [01:59:59]CheckFolder [01:59:59]dirname=/storage/ofd_packets [01:59:59]CheckFolder done [01:59:59]ProducePacketName [01:59:59]name=ofd_packets/00201716 [01:59:59]NVStorageSaveData ofd_packets/00201716 [01:59:59]File name is /storage/ofd_packets/00201716 [01:59:59]Write 301 bytes [01:59:59]NVStorageSaveData done [01:59:59]OFDSenderStorePacket done [01:59:59]KKMCreateOFDPacket done [01:59:59]NVStorageSaveData kkm_last_timestamp [01:59:59]File name is /storage/kkm_last_timestamp [01:59:59]Write 4 bytes [01:59:59]NVStorageSaveData done [01:59:59]ExternCall_PrintAddStr [01:59:59]wPrintStart [01:59:59]Write to MH i2c: 01 00 00 BD 08 C5 [01:59:59]Write i2c OK [01:59:59]MH_I2C_Read... [01:59:59]Read from MH i2c: 01 [01:59:59]MH_I2C_Read... [01:59:59]Read from MH i2c: 01 07 00 [01:59:59]MH_I2C_Read... [01:59:59]Read from MH i2c: 01 07 00 BD 08 00 00 00 00 00 FF 0F DA [01:59:59]RasterBufferAndPrint [01:59:59]line Счет N : (1)449472 [01:59:59]line ИНН: 02508201610067 [01:59:59]line Контрольно-Кассовый Чек [01:59:59]line ПРОДАЖА [01:59:59]line ТРК (МРК, ГНК) : 31 [01:59:59]line Товар: 2710124130 [01:59:59]line Аи-92-К-2 [01:59:59]line 5.980 * 66.90 [01:59:59]line = 400.06 [01:59:59]line НДС 12% НСП 1% [01:59:59]line > о реализуемом товаре [01:59:59]line ИТОГО: 400.06 [01:59:59]line НСП 1% : 3.54 [01:59:59]line НДС 12% : 42.48 [01:59:59]line Наличными: 0.00 [01:59:59]line Безнал.: 400.06 [01:59:59]line Место: АЗС № 171 "Партнер Нефть" [01:59:59]line Адрес: 720001, с. Ак-Там, трасса Ала Бука-Бишкек, 41.466629, 71.599085 [01:59:59]line СНО: Общий режим [01:59:59]line Чек 8 27.10.2024 02:00 [01:59:59]line Смена: 544 ФФД: 1.0 [01:59:59]line ЗНМ: 0300000109 [01:59:59]line РНМ: 0000000000091777 [01:59:59]line Версия ККМ: 001 [01:59:59]line Платежная система: Mbank [01:59:59]line ФМ: 0000000000871756 [01:59:59]line ФД: 201716 [01:59:59]line ФПД: 266838025834980 [01:59:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T020000&type=1&operation_type=1&fn_number=0000000000871756&fd_number=201716&fm=266838025834980&tin=02508201610067®Number=0000000000091777&sum=40006 [01:59:59]written 0, free lines is 4095 [01:59:59]OFD Sender: Processing packet 201716 [packets to send 112, broken 111] [01:59:59]ProducePacketName [01:59:59]name=ofd_packets/00201716 [01:59:59]OFD Sender: To server: pG, [01:59:59]CommunicateWithHost lk.salyk.kg:30040 [01:59:59]ConnectInit lk.salyk.kg [02:00:00]Write to MH i2c: 01 00 00 E6 08 EE [02:00:00]Write i2c OK [02:00:00]MH_I2C_Read... [02:00:00]Read from MH i2c: 01 [02:00:00]MH_I2C_Read... [02:00:00]Read from MH i2c: 01 07 00 [02:00:00]MH_I2C_Read... [02:00:00]Read from MH i2c: 01 07 00 E6 08 00 00 00 00 00 B8 0C B9 [02:00:00]RasterBufferAndPrint [02:00:00]line [02:00:00]line [02:00:00]line [02:00:00]line [02:00:00]line [02:00:00]written 0, free lines is 3258 [02:00:00]MH_Cut [02:00:00]Write to MH i2c: D1 01 00 ED 08 01 C7 [02:00:00]Write i2c OK [02:00:00]MH_I2C_Read... [02:00:00]Read from MH i2c: D1 [02:00:00]MH_I2C_Read... [02:00:00]Read from MH i2c: D1 01 00 [02:00:00]MH_I2C_Read... [02:00:00]Read from MH i2c: D1 01 00 ED 08 00 C6 [02:00:00]Write to MH i2c: 01 00 00 EE 08 F6 [02:00:00]Write i2c OK [02:00:00]MH_I2C_Read... [02:00:01]*** Cut start [02:00:01]*** Purtial cut [02:00:01]*** Stage 1: CUTSNS_PIN = 1 [02:00:01]Read from MH i2c: 01 [02:00:01]MH_I2C_Read... [02:00:01]*** Stop cut motor [02:00:01]*** Cut end [02:00:01]Read from MH i2c: 01 07 00 [02:00:01]MH_I2C_Read... [02:00:01]Read from MH i2c: 01 07 00 EE 08 00 00 00 00 00 FF 0F 0B [02:00:01]process_action close_receipt done [02:00:01]requested_data is exist [02:00:01]produce_requested_data [02:00:01]requested_item fm.sn is exist - process it [02:00:01]wFMCommunicate request_size=4 [02:00:01]MH_SAM_APDU [02:00:01]CAPDU: 80 11 00 00 [02:00:01]Write to MH i2c: E2 08 00 EF 08 80 11 00 00 00 00 00 00 71 [02:00:01]Write i2c OK [02:00:01]MH_I2C_Read... [02:00:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:00:01]Read from MH i2c: E2 [02:00:01]MH_I2C_Read... [02:00:01]Read from MH i2c: E2 17 00 [02:00:01]MH_I2C_Read... [02:00:01]Read from MH i2c: E2 17 00 EF 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 C6 [02:00:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 90 00 [02:00:01]wFMCommunicate OK [02:00:01]requested_item fd.num is exist - process it [02:00:01]SAM_PROTO_GetFieldsCounters [02:00:01]wFMCommunicate request_size=4 [02:00:01]MH_SAM_APDU [02:00:01]CAPDU: 80 13 00 00 [02:00:01]Write to MH i2c: E2 08 00 F0 08 80 13 00 00 00 00 00 00 74 [02:00:01]Write i2c OK [02:00:01]MH_I2C_Read... [02:00:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:00:01]Read from MH i2c: E2 [02:00:01]MH_I2C_Read... [02:00:01]Read from MH i2c: E2 62 00 [02:00:01]MH_I2C_Read... [02:00:01]Read from MH i2c: E2 62 00 F0 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F4 13 03 00 0E 04 04 00 20 02 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 E1 [02:00:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 10 04 04 00 F4 13 03 00 0E 04 04 00 20 02 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 [02:00:01]wFMCommunicate OK [02:00:01]SAM_PROTO_GetFieldsCounters done [02:00:01]requested_item shift.num is exist - process it [02:00:01]requested_item shift.opened is exist - process it [02:00:01]req_shift_opened [02:00:01]FM_GetShiftState [02:00:01]SAM_PROTO_GetShiftState [02:00:01]wFMCommunicate request_size=4 [02:00:01]MH_SAM_APDU [02:00:01]CAPDU: 80 13 01 00 [02:00:01]Write to MH i2c: E2 08 00 F1 08 80 13 01 00 00 00 00 00 76 [02:00:01]Write i2c OK [02:00:01]MH_I2C_Read... [02:00:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:00:01]Read from MH i2c: E2 [02:00:01]MH_I2C_Read... [02:00:01]Read from MH i2c: E2 0E 00 [02:00:01]MH_I2C_Read... [02:00:01]Read from MH i2c: E2 0E 00 F1 08 00 09 00 01 F0 82 1D 67 00 00 00 00 90 00 78 [02:00:01]RAPDU: 09 00 01 F0 82 1D 67 00 00 00 00 90 00 [02:00:01]wFMCommunicate OK [02:00:01]SAM_PROTO_GetShiftState done [02:00:01]FM_GetShiftState done [02:00:01]req_shift_opened done [02:00:01]requested_item shift.open_date is exist - process it [02:00:01]req_shift_open_date [02:00:01]req_shift_open_date done [02:00:01]produce_requested_data done [02:00:01]produce_requested_data return {"fm.sn":"0000000000871756","fd.num":201716,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312} [02:00:01]process_action_free close_receipt [02:00:01]json_value_free [02:00:01]json_value_free done [02:00:01]process_json_proto returns [02:00:01]Send response to host [02:00:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871756","fd.num":201716,"shift.num":544,"shift.opened":1,"shift.open_date":1729987312}}} [02:00:01]free response buf [02:00:01]execute_script done [02:00:01]execute_script returns [02:00:01]free content buf [02:00:01]Sock 8.Close socket [02:00:01]Sock 8.Thread stoped [02:00:04]ConnectInit Can't take IP for lk.salyk.kg [02:00:04]CommunicateWithHost connect error [02:00:04]CommunicateWithHost err = -1 [02:00:04]OFD Sender: Server communicate error [02:00:10]OFD Sender: Processing packet 201716 [packets to send 112, broken 111] [02:00:10]ProducePacketName [02:00:10]name=ofd_packets/00201716 [02:00:10]OFD Sender: To server: pG, [02:00:10]CommunicateWithHost lk.salyk.kg:30040 [02:00:10]ConnectInit lk.salyk.kg [02:00:10]Connected sock=8 [02:00:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 0F 01 00 00 2F 5E 07 01 75 CB 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 32 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 46 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 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 A0 9E 1D 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F4 13 03 00 35 04 06 00 F2 B0 11 BE 11 E4 4C 89 73 2A EB 23 5F B5 [02:00:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 4F 00 00 00 95 09 47 00 A1 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 36 10 04 04 00 F4 13 03 00 F4 03 04 00 51 4A 1D 67 B6 04 01 00 00 D3 EC 12 7C 1F B3 07 55 [02:00:10]CommunicateWithHost err = 0 [02:00:10]CheckOFDResponse [02:00:10]1017 (14) - 77093643461234 [02:00:10]1041 (16) - 0000000000871756 [02:00:10]1040 (4) - 201716 [02:00:10]1012 (4) - 26.10.2024 20:00 [02:00:10]1206 (1) - 0 [02:00:10]OFD Sender: Remove packet 201716 [02:00:10]ProducePacketName [02:00:10]name=ofd_packets/00201716 [02:00:10]NVStorageDeleteData [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:30]OFD Sender: No OFD packet to send [02:00:35]OFD Sender: No OFD packet to send [02:00:40]OFD Sender: No OFD packet to send [02:00:45]OFD Sender: No OFD packet to send [02:00:50]OFD Sender: No OFD packet to send [02:00:55]OFD Sender: No OFD packet to send [02:01:00]OFD Sender: No OFD packet to send [02:01:05]OFD Sender: No OFD packet to send [02:01:10]OFD Sender: No OFD packet to send [02:01:15]OFD Sender: No OFD packet to send [02:01:20]OFD Sender: No OFD packet to send [02:01:25]OFD Sender: No OFD packet to send [02:01:30]OFD Sender: No OFD packet to send [02:01:35]OFD Sender: No OFD packet to send [02:01:40]OFD Sender: No OFD packet to send [02:01:45]OFD Sender: No OFD packet to send [02:01:50]OFD Sender: No OFD packet to send [02:01:55]OFD Sender: No OFD packet to send [02:02:00]OFD Sender: No OFD packet to send [02:02:05]OFD Sender: No OFD packet to send [02:02:10]OFD Sender: No OFD packet to send [02:02:15]OFD Sender: No OFD packet to send [02:02:20]OFD Sender: No OFD packet to send [02:02:25]OFD Sender: No OFD packet to send [02:02:31]OFD Sender: No OFD packet to send [02:02:36]OFD Sender: No OFD packet to send [02:02:41]OFD Sender: No OFD packet to send [02:02:46]OFD Sender: No OFD packet to send [02:02:51]OFD Sender: No OFD packet to send [02:02:56]OFD Sender: No OFD packet to send [02:03:01]OFD Sender: No OFD packet to send [02:03:06]OFD Sender: No OFD packet to send [02:03:11]OFD Sender: No OFD packet to send [02:03:16]OFD Sender: No OFD packet to send [02:03:21]OFD Sender: No OFD packet to send [02:03:26]OFD Sender: No OFD packet to send [02:03:31]OFD Sender: No OFD packet to send [02:03:36]OFD Sender: No OFD packet to send [02:03: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:21]OFD Sender: No OFD packet to send [02:04:26]OFD Sender: No OFD packet to send [02:04:31]OFD Sender: No OFD packet to send [02:04:36]OFD Sender: No OFD packet to send [02:04:41]OFD Sender: No OFD packet to send [02:04:46]OFD Sender: No OFD packet to send [02:04:51]OFD Sender: No OFD packet to send [02:04:56]OFD Sender: No OFD packet to send [02:05:01]OFD Sender: No OFD packet to send [02:05:06]OFD Sender: No OFD packet to send [02:05:11]OFD Sender: No OFD packet to send [02:05:16]OFD Sender: No OFD packet to send [02:05:21]OFD Sender: No OFD packet to send [02:05:26]OFD Sender: No OFD packet to send [02:05:31]OFD Sender: No OFD packet to send [02:05:36]OFD Sender: No OFD packet to send [02:05:41]OFD Sender: No OFD packet to send [02:05:46]OFD Sender: No OFD packet to send [02:05:51]OFD Sender: No OFD packet to send [02:05:56]OFD Sender: No OFD packet to send [02:06:01]OFD Sender: No OFD packet to send [02:06:06]OFD Sender: No OFD packet to send [02:06:11]OFD Sender: No OFD packet to send [02:06:16]OFD Sender: No OFD packet to send [02:06:21]OFD Sender: No OFD packet to send [02:06:26]OFD Sender: No OFD packet to send [02:06:31]OFD Sender: No OFD packet to send [02:06:36]OFD Sender: No OFD packet to send [02:06:41]OFD Sender: No OFD packet to send [02:06:46]OFD Sender: No OFD packet to send [02:06:51]OFD Sender: No OFD packet to send [02:06:56]OFD Sender: No OFD packet to send [02:07:01]OFD Sender: No OFD packet to send [02:07:06]OFD Sender: No OFD packet to send [02:07:11]OFD Sender: No OFD packet to send [02:07:16]OFD Sender: No OFD packet to send [02:07:21]OFD Sender: No OFD packet to send [02:07:26]OFD Sender: No OFD packet to send [02:07:31]OFD Sender: No OFD packet to send [02:07:36]OFD Sender: No OFD packet to send [02:07:41]OFD Sender: No OFD packet to send [02:07:46]OFD Sender: No OFD packet to send [02:07:51]OFD Sender: No OFD packet to send [02:07:56]OFD Sender: No OFD packet to send [02:08:01]OFD Sender: No OFD packet to send [02:08:06]OFD Sender: No OFD packet to send [02:08:11]OFD Sender: No OFD packet to send [02:08:16]OFD Sender: No OFD packet to send [02:08:21]OFD Sender: No OFD packet to send [02:08:26]OFD Sender: No OFD packet to send [02:08:31]OFD Sender: No OFD packet to send [02:08:36]OFD Sender: No OFD packet to send [02:08:41]OFD Sender: No OFD packet to send [02:08:46]OFD Sender: No OFD packet to send [02:08:51]OFD Sender: No OFD packet to send [02:08:56]OFD Sender: No OFD packet to send [02:09:01]OFD Sender: No OFD packet to send [02:09:06]OFD Sender: No OFD packet to send [02:09:11]OFD Sender: No OFD packet to send [02:09:16]OFD Sender: No OFD packet to send [02:09:21]OFD Sender: No OFD packet to send [02:09:26]OFD Sender: No OFD packet to send [02:09:31]OFD Sender: No OFD packet to send [02:09:36]OFD Sender: No OFD packet to send [02:09:41]OFD Sender: No OFD packet to send [02:09:46]OFD Sender: No OFD packet to send [02:09:51]OFD Sender: No OFD packet to send [02:09:56]OFD Sender: No OFD packet to send [02:10:01]OFD Sender: No OFD packet to send [02:10:06]OFD Sender: No OFD packet to send [02:10:11]OFD Sender: No OFD packet to send [02:10:16]OFD Sender: No OFD packet to send [02:10:21]OFD Sender: No OFD packet to send [02:10:26]OFD Sender: No OFD packet to send [02:10:31]OFD Sender: No OFD packet to send [02:10:36]OFD Sender: No OFD packet to send [02:10:41]OFD Sender: No OFD packet to send [02:10:46]OFD Sender: No OFD packet to send [02:10:51]OFD Sender: No OFD packet to send [02:10:56]OFD Sender: No OFD packet to send [02:11:01]OFD Sender: No OFD packet to send [02:11:06]OFD Sender: No OFD packet to send [02:11:11]OFD Sender: No OFD packet to send [02:11:16]OFD Sender: No OFD packet to send [02:11:21]OFD Sender: No OFD packet to send [02:11:26]OFD Sender: No OFD packet to send [02:11:31]OFD Sender: No OFD packet to send [02:11:36]OFD Sender: No OFD packet to send [02:11:41]OFD Sender: No OFD packet to send [02:11:46]OFD Sender: No OFD packet to send [02:11:51]OFD Sender: No OFD packet to send [02:11:56]OFD Sender: No OFD packet to send [02:12:01]OFD Sender: No OFD packet to send [02:12:06]OFD Sender: No OFD packet to send [02:12:11]OFD Sender: No OFD packet to send [02:12:16]OFD Sender: No OFD packet to send [02:12:21]OFD Sender: No OFD packet to send [02:12:26]OFD Sender: No OFD packet to send [02:12:31]OFD Sender: No OFD packet to send [02:12:36]OFD Sender: No OFD packet to send [02:12:41]OFD Sender: No OFD packet to send [02:12:46]OFD Sender: No OFD packet to send [02:12:51]OFD Sender: No OFD packet to send [02:12:56]OFD Sender: No OFD packet to send [02:13:01]OFD Sender: No OFD packet to send [02:13:06]OFD Sender: No OFD packet to send [02:13:11]OFD Sender: No OFD packet to send [02:13:16]OFD Sender: No OFD packet to send [02:13:21]OFD Sender: No OFD packet to send [02:13:26]OFD Sender: No OFD packet to send [02:13:31]OFD Sender: No OFD packet to send [02:13:36]OFD Sender: No OFD packet to send [02:13:41]OFD Sender: No OFD packet to send [02:13:46]OFD Sender: No OFD packet to send [02:13:51]OFD Sender: No OFD packet to send [02:13:56]OFD Sender: No OFD packet to send [02:14:01]OFD Sender: No OFD packet to send [02:14:06]OFD Sender: No OFD packet to send [02:14:11]OFD Sender: No OFD packet to send [02:14:16]OFD Sender: No OFD packet to send [02:14:21]OFD Sender: No OFD packet to send [02:14:26]OFD Sender: No OFD packet to send [02:14:31]OFD Sender: No OFD packet to send [02:14:36]OFD Sender: No OFD packet to send [02:14:41]OFD Sender: No OFD packet to send [02:14:46]OFD Sender: No OFD packet to send [02:14:51]OFD Sender: No OFD packet to send [02:14:56]OFD Sender: No OFD packet to send [02:15:01]OFD Sender: No OFD packet to send [02:15:06]OFD Sender: No OFD packet to send [02:15:11]OFD Sender: No OFD packet to send [02:15:16]OFD Sender: No OFD packet to send [02:15:21]OFD Sender: No OFD packet to send [02:15:26]OFD Sender: No OFD packet to send [02:15:31]OFD Sender: No OFD packet to send [02:15:36]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:12]OFD Sender: No OFD packet to send [02:17:17]OFD Sender: No OFD packet to send [02:17:22]OFD Sender: No OFD packet to send [02:17:27]OFD Sender: No OFD packet to send [02:17:32]OFD Sender: No OFD packet to send [02:17:37]OFD Sender: No OFD packet to send [02:17:42]OFD Sender: No OFD packet to send [02:17:47]OFD Sender: No OFD packet to send [02:17:52]OFD Sender: No OFD packet to send [02:17:57]OFD Sender: No OFD packet to send [02:18:02]OFD Sender: No OFD packet to send [02:18:07]OFD Sender: No OFD packet to send [02:18:12]OFD Sender: No OFD packet to send [02:18:17]OFD Sender: No OFD packet to send [02:18:22]OFD Sender: No OFD packet to send [02:18:27]OFD Sender: No OFD packet to send [02:18:32]OFD Sender: No OFD packet to send [02:18:37]OFD Sender: No OFD packet to send [02:18:42]OFD Sender: No OFD packet to send [02:18:47]OFD Sender: No OFD packet to send [02:18:52]OFD Sender: No OFD packet to send [02:18:57]OFD Sender: No OFD packet to send [02:19:02]OFD Sender: No OFD packet to send [02:19:07]OFD Sender: No OFD packet to send [02:19:12]OFD Sender: No OFD packet to send [02:19:17]OFD Sender: No OFD packet to send [02:19:22]OFD Sender: No OFD packet to send [02:19:27]OFD Sender: No OFD packet to send [02:19:32]OFD Sender: No OFD packet to send [02:19:37]OFD Sender: No OFD packet to send [02:19:42]OFD Sender: No OFD packet to send [02:19:47]OFD Sender: No OFD packet to send [02:19:52]OFD Sender: No OFD packet to send [02:19:57]OFD Sender: No OFD packet to send [02:20:02]OFD Sender: No OFD packet to send [02:20:07]OFD Sender: No OFD packet to send [02:20:12]OFD Sender: No OFD packet to send [02:20:17]OFD Sender: No OFD packet to send [02:20:22]OFD Sender: No OFD packet to send [02:20:27]OFD Sender: No OFD packet to send [02:20:32]OFD Sender: No OFD packet to send [02:20:37]OFD Sender: No OFD packet to send [02:20:42]OFD Sender: No OFD packet to send [02:20:47]OFD Sender: No OFD packet to send [02:20:52]OFD Sender: No OFD packet to send [02:20:57]OFD Sender: No OFD packet to send [02:21:02]OFD Sender: No OFD packet to send [02:21:07]OFD Sender: No OFD packet to send [02:21:12]OFD Sender: No OFD packet to send [02:21:17]OFD Sender: No OFD packet to send [02:21:22]OFD Sender: No OFD packet to send [02:21:27]OFD Sender: No OFD packet to send [02:21:32]OFD Sender: No OFD packet to send [02:21:37]OFD Sender: No OFD packet to send [02:21:42]OFD Sender: No OFD packet to send [02:21:47]OFD Sender: No OFD packet to send [02:21:52]OFD Sender: No OFD packet to send [02:21:57]OFD Sender: No OFD packet to send [02:22:02]OFD Sender: No OFD packet to send [02:22:07]OFD Sender: No OFD packet to send [02:22:12]OFD Sender: No OFD packet to send [02:22:17]OFD Sender: No OFD packet to send [02:22:22]OFD Sender: No OFD packet to send [02:22:27]OFD Sender: No OFD packet to send [02:22:32]OFD Sender: No OFD packet to send [02:22:37]OFD Sender: No OFD packet to send [02:22:42]OFD Sender: No OFD packet to send [02:22:47]OFD Sender: No OFD packet to send [02:22:52]OFD Sender: No OFD packet to send [02:22:57]OFD Sender: No OFD packet to send [02:23:02]OFD Sender: No OFD packet to send [02:23:07]OFD Sender: No OFD packet to send [02:23:12]OFD Sender: No OFD packet to send [02:23:17]OFD Sender: No OFD packet to send [02:23:22]OFD Sender: No OFD packet to send [02:23:27]OFD Sender: No OFD packet to send [02:23:32]OFD Sender: No OFD packet to send [02:23:37]OFD Sender: No OFD packet to send [02:23:42]OFD Sender: No OFD packet to send [02:23:47]OFD Sender: No OFD packet to send [02:23:52]OFD Sender: No OFD packet to send [02:23:57]OFD Sender: No OFD packet to send [02:24:02]OFD Sender: No OFD packet to send [02:24:07]OFD Sender: No OFD packet to send [02:24:12]OFD Sender: No OFD packet to send [02:24:17]OFD Sender: No OFD packet to send [02:24:22]OFD Sender: No OFD packet to send [02:24:27]OFD Sender: No OFD packet to send [02:24:32]OFD Sender: No OFD packet to send [02:24:37]OFD Sender: No OFD packet to send [02:24:42]OFD Sender: No OFD packet to send [02:24:47]OFD Sender: No OFD packet to send [02:24:52]OFD Sender: No OFD packet to send [02:24:57]OFD Sender: No OFD packet to send [02:25:02]OFD Sender: No OFD packet to send [02:25:07]OFD Sender: No OFD packet to send [02:25:12]OFD Sender: No OFD packet to send [02:25:17]OFD Sender: No OFD packet to send [02:25:22]OFD Sender: No OFD packet to send [02:25:27]OFD Sender: No OFD packet to send [02:25:32]OFD Sender: No OFD packet to send [02:25:37]OFD Sender: No OFD packet to send [02:25:42]OFD Sender: No OFD packet to send [02:25:47]OFD Sender: No OFD packet to send [02:25:52]OFD Sender: No OFD packet to send [02:25:57]OFD Sender: No OFD packet to send [02:26:02]OFD Sender: No OFD packet to send [02:26:07]OFD Sender: No OFD packet to send [02:26:12]OFD Sender: No OFD packet to send [02:26:17]OFD Sender: No OFD packet to send [02:26:22]OFD Sender: No OFD packet to send [02:26:27]OFD Sender: No OFD packet to send [02:26:32]OFD Sender: No OFD packet to send [02:26:37]OFD Sender: No OFD packet to send [02:26:42]OFD Sender: No OFD packet to send [02:26:47]OFD Sender: No OFD packet to send [02:26:52]OFD Sender: No OFD packet to send [02:26:57]OFD Sender: No OFD packet to send [02:27:02]OFD Sender: No OFD packet to send [02:27:07]OFD Sender: No OFD packet to send [02:27:12]OFD Sender: No OFD packet to send [02:27:17]OFD Sender: No OFD packet to send [02:27:22]OFD Sender: No OFD packet to send [02:27:27]OFD Sender: No OFD packet to send [02:27:32]OFD Sender: No OFD packet to send [02:27:37]OFD Sender: No OFD packet to send [02:27:42]OFD Sender: No OFD packet to send [02:27:47]OFD Sender: No OFD packet to send [02:27:52]OFD Sender: No OFD packet to send [02:27:57]OFD Sender: No OFD packet to send [02:28:02]OFD Sender: No OFD packet to send [02:28:07]OFD Sender: No OFD packet to send [02:28:12]OFD Sender: No OFD packet to send [02:28:17]OFD Sender: No OFD packet to send [02:28:22]OFD Sender: No OFD packet to send [02:28:27]OFD Sender: No OFD packet to send [02:28:32]OFD Sender: No OFD packet to send [02:28:37]OFD Sender: No OFD packet to send [02:28:42]OFD Sender: No OFD packet to send [02:28:47]OFD Sender: No OFD packet to send [02:28:52]OFD Sender: No OFD packet to send [02:28:57]OFD Sender: No OFD packet to send [02:29:02]OFD Sender: No OFD packet to send [02:29:07]OFD Sender: No OFD packet to send [02:29:12]OFD Sender: No OFD packet to send [02:29:17]OFD Sender: No OFD packet to send [02:29:22]OFD Sender: No OFD packet to send [02:29:27]OFD Sender: No OFD packet to send [02:29:32]OFD Sender: No OFD packet to send [02:29:37]OFD Sender: No OFD packet to send [02:29:42]OFD Sender: No OFD packet to send [02:29:47]OFD Sender: No OFD packet to send [02:29:52]OFD Sender: No OFD packet to send [02:29:57]OFD Sender: No OFD packet to send [02:30:02]OFD Sender: No OFD packet to send [02:30:07]OFD Sender: No OFD packet to send [02:30:12]OFD Sender: No OFD packet to send [02:30:17]OFD Sender: No OFD packet to send [02:30:22]OFD Sender: No OFD packet to send [02:30:27]OFD Sender: No OFD packet to send [02:30:32]OFD Sender: No OFD packet to send [02:30:37]OFD Sender: No OFD packet to send [02:30:42]OFD Sender: No OFD packet to send [02:30:47]OFD Sender: No OFD packet to send [02:30:52]OFD Sender: No OFD packet to send [02:30:57]OFD Sender: No OFD packet to send [02:31:02]OFD Sender: No OFD packet to send [02:31:07]OFD Sender: No OFD packet to send [02:31:12]OFD Sender: No OFD packet to send [02:31:17]OFD Sender: No OFD packet to send [02:31:22]OFD Sender: No OFD packet to send [02:31:27]OFD Sender: No OFD packet to send [02:31:32]OFD Sender: No OFD packet to send [02:31:37]OFD Sender: No OFD packet to send [02:31:42]OFD Sender: No OFD packet to send [02:31:47]OFD Sender: No OFD packet to send [02:31:52]OFD Sender: No OFD packet to send [02:31:57]OFD Sender: No OFD packet to send [02:32:03]OFD Sender: No OFD packet to send [02:32:08]OFD Sender: No OFD packet to send [02:32:13]OFD Sender: No OFD packet to send [02:32:18]OFD Sender: No OFD packet to send [02:32:23]OFD Sender: No OFD packet to send [02:32:28]OFD Sender: No OFD packet to send [02:32:33]OFD Sender: No OFD packet to send [02:32:38]OFD Sender: No OFD packet to send [02:32:43]OFD Sender: No OFD packet to send [02:32:48]OFD Sender: No OFD packet to send [02:32:53]OFD Sender: No OFD packet to send [02:32:58]OFD Sender: No OFD packet to send [02:33:03]OFD Sender: No OFD packet to send [02:33:08]OFD Sender: No OFD packet to send [02:33:13]OFD Sender: No OFD packet to send [02:33:18]OFD Sender: No OFD packet to send [02:33:23]OFD Sender: No OFD packet to send [02:33:28]OFD Sender: No OFD packet to send [02:33:33]OFD Sender: No OFD packet to send [02:33:38]OFD Sender: No OFD packet to send [02:33:43]OFD Sender: No OFD packet to send [02:33:48]OFD Sender: No OFD packet to send [02:33:53]OFD Sender: No OFD packet to send [02:33:58]OFD Sender: No OFD packet to send [02:34:03]OFD Sender: No OFD packet to send [02:34:08]OFD Sender: No OFD packet to send [02:34:13]OFD Sender: No OFD packet to send [02:34:18]OFD Sender: No OFD packet to send [02:34:23]OFD Sender: No OFD packet to send [02:34:28]OFD Sender: No OFD packet to send [02:34:33]OFD Sender: No OFD packet to send [02:34:38]OFD Sender: No OFD packet to send [02:34:43]OFD Sender: No OFD packet to send [02:34:48]OFD Sender: No OFD packet to send [02:34:53]OFD Sender: No OFD packet to send [02:34:58]OFD Sender: No OFD packet to send [02:35:03]OFD Sender: No OFD packet to send [02:35:08]OFD Sender: No OFD packet to send [02:35:13]OFD Sender: No OFD packet to send [02:35:18]OFD Sender: No OFD packet to send [02:35:23]OFD Sender: No OFD packet to send [02:35:28]OFD Sender: No OFD packet to send [02:35:33]OFD Sender: No OFD packet to send [02:35:38]OFD Sender: No OFD packet to send [02:35:43]OFD Sender: No OFD packet to send [02:35:48]OFD Sender: No OFD packet to send [02:35:53]OFD Sender: No OFD packet to send [02:35:58]OFD Sender: No OFD packet to send [02:36:03]OFD Sender: No OFD packet to send [02:36:08]OFD Sender: No OFD packet to send [02:36:13]OFD Sender: No OFD packet to send [02:36:18]OFD Sender: No OFD packet to send [02:36:23]OFD Sender: No OFD packet to send [02:36:28]OFD Sender: No OFD packet to send [02:36:33]OFD Sender: No OFD packet to send [02:36:38]OFD Sender: No OFD packet to send [02:36:43]OFD Sender: No OFD packet to send [02:36:48]OFD Sender: No OFD packet to send [02:36:53]OFD Sender: No OFD packet to send [02:36:58]OFD Sender: No OFD packet to send [02:37:03]OFD Sender: No OFD packet to send [02:37:08]OFD Sender: No OFD packet to send [02:37:13]OFD Sender: No OFD packet to send [02:37:18]OFD Sender: No OFD packet to send [02:37:23]OFD Sender: No OFD packet to send [02:37:28]OFD Sender: No OFD packet to send [02:37:33]OFD Sender: No OFD packet to send [02:37:38]OFD Sender: No OFD packet to send [02:37:43]OFD Sender: No OFD packet to send [02:37:48]OFD Sender: No OFD packet to send [02:37:53]OFD Sender: No OFD packet to send [02:37:58]OFD Sender: No OFD packet to send [02:38:03]OFD Sender: No OFD packet to send [02:38:08]OFD Sender: No OFD packet to send [02:38:13]OFD Sender: No OFD packet to send [02:38:18]OFD Sender: No OFD packet to send [02:38:23]OFD Sender: No OFD packet to send [02:38:28]OFD Sender: No OFD packet to send [02:38:33]OFD Sender: No OFD packet to send [02:38:38]OFD Sender: No OFD packet to send [02:38:43]OFD Sender: No OFD packet to send [02:38:48]OFD Sender: No OFD packet to send [02:38:53]OFD Sender: No OFD packet to send [02:38:58]OFD Sender: No OFD packet to send [02:39:03]OFD Sender: No OFD packet to send [02:39:08]OFD Sender: No OFD packet to send [02:39:13]OFD Sender: No OFD packet to send [02:39:18]OFD Sender: No OFD packet to send [02:39:23]OFD Sender: No OFD packet to send [02:39:28]OFD Sender: No OFD packet to send [02:39:33]OFD Sender: No OFD packet to send [02:39:38]OFD Sender: No OFD packet to send [02:39:43]OFD Sender: No OFD packet to send [02:39:48]OFD Sender: No OFD packet to send [02:39:53]OFD Sender: No OFD packet to send [02:39:58]OFD Sender: No OFD packet to send [02:40:03]OFD Sender: No OFD packet to send [02:40:08]OFD Sender: No OFD packet to send [02:40:13]OFD Sender: No OFD packet to send [02:40:18]OFD Sender: No OFD packet to send [02:40:23]OFD Sender: No OFD packet to send [02:40:28]OFD Sender: No OFD packet to send [02:40:33]OFD Sender: No OFD packet to send [02:40:38]OFD Sender: No OFD packet to send [02:40:43]OFD Sender: No OFD packet to send [02:40:48]OFD Sender: No OFD packet to send [02:40:53]OFD Sender: No OFD packet to send [02:40:58]OFD Sender: No OFD packet to send [02:41:03]OFD Sender: No OFD packet to send [02:41:08]OFD Sender: No OFD packet to send [02:41:13]OFD Sender: No OFD packet to send [02:41:18]OFD Sender: No OFD packet to send [02:41:23]OFD Sender: No OFD packet to send [02:41:28]OFD Sender: No OFD packet to send [02:41:33]OFD Sender: No OFD packet to send [02:41:38]OFD Sender: No OFD packet to send [02:41:43]OFD Sender: No OFD packet to send [02:41:48]OFD Sender: No OFD packet to send [02:41:53]OFD Sender: No OFD packet to send [02:41:58]OFD Sender: No OFD packet to send [02:42:03]OFD Sender: No OFD packet to send [02:42:08]OFD Sender: No OFD packet to send [02:42:13]OFD Sender: No OFD packet to send [02:42:18]OFD Sender: No OFD packet to send [02:42:23]OFD Sender: No OFD packet to send [02:42:28]OFD Sender: No OFD packet to send [02:42:33]OFD Sender: No OFD packet to send [02:42:38]OFD Sender: No OFD packet to send [02:42:43]OFD Sender: No OFD packet to send [02:42:48]OFD Sender: No OFD packet to send [02:42:53]OFD Sender: No OFD packet to send [02:42:58]OFD Sender: No OFD packet to send [02:43:03]OFD Sender: No OFD packet to send [02:43:08]OFD Sender: No OFD packet to send [02:43:13]OFD Sender: No OFD packet to send [02:43:18]OFD Sender: No OFD packet to send [02:43:23]OFD Sender: No OFD packet to send [02:43:28]OFD Sender: No OFD packet to send [02:43:33]OFD Sender: No OFD packet to send [02:43:38]OFD Sender: No OFD packet to send [02:43:43]OFD Sender: No OFD packet to send [02:43:48]OFD Sender: No OFD packet to send [02:43:53]OFD Sender: No OFD packet to send [02:43:58]OFD Sender: No OFD packet to send [02:44:03]OFD Sender: No OFD packet to send [02:44:08]OFD Sender: No OFD packet to send [02:44:13]OFD Sender: No OFD packet to send [02:44:18]OFD Sender: No OFD packet to send [02:44:23]OFD Sender: No OFD packet to send [02:44:28]OFD Sender: No OFD packet to send [02:44:33]OFD Sender: No OFD packet to send [02:44:38]OFD Sender: No OFD packet to send [02:44:43]OFD Sender: No OFD packet to send [02:44:48]OFD Sender: No OFD packet to send [02:44:53]OFD Sender: No OFD packet to send [02:44:58]OFD Sender: No OFD packet to send [02:45:03]OFD Sender: No OFD packet to send [02:45:08]OFD Sender: No OFD packet to send [02:45:13]OFD Sender: No OFD packet to send [02:45:18]OFD Sender: No OFD packet to send [02:45:23]OFD Sender: No OFD packet to send [02:45:28]OFD Sender: No OFD packet to send [02:45:33]OFD Sender: No OFD packet to send [02:45:38]OFD Sender: No OFD packet to send [02:45:43]OFD Sender: No OFD packet to send [02:45:48]OFD Sender: No OFD packet to send [02:45:53]OFD Sender: No OFD packet to send [02:45:58]OFD Sender: No OFD packet to send [02:46:03]OFD Sender: No OFD packet to send [02:46:08]OFD Sender: No OFD packet to send [02:46:13]OFD Sender: No OFD packet to send [02:46:18]OFD Sender: No OFD packet to send [02:46:23]OFD Sender: No OFD packet to send [02:46:28]OFD Sender: No OFD packet to send [02:46:33]OFD Sender: No OFD packet to send [02:46:38]OFD Sender: No OFD packet to send [02:46:43]OFD Sender: No OFD packet to send [02:46:49]OFD Sender: No OFD packet to send [02:46:54]OFD Sender: No OFD packet to send [02:46:59]OFD Sender: No OFD packet to send [02:47:04]OFD Sender: No OFD packet to send [02:47:09]OFD Sender: No OFD packet to send [02:47:14]OFD Sender: No OFD packet to send [02:47:19]OFD Sender: No OFD packet to send [02:47:24]OFD Sender: No OFD packet to send [02:47:29]OFD Sender: No OFD packet to send [02:47:34]OFD Sender: No OFD packet to send [02:47:39]OFD Sender: No OFD packet to send [02:47:44]OFD Sender: No OFD packet to send [02:47:49]OFD Sender: No OFD packet to send [02:47:54]OFD Sender: No OFD packet to send [02:47:59]OFD Sender: No OFD packet to send [02:48:04]OFD Sender: No OFD packet to send [02:48:09]OFD Sender: No OFD packet to send [02:48:14]OFD Sender: No OFD packet to send [02:48:19]OFD Sender: No OFD packet to send [02:48:24]OFD Sender: No OFD packet to send [02:48:29]OFD Sender: No OFD packet to send [02:48:34]OFD Sender: No OFD packet to send [02:48:39]OFD Sender: No OFD packet to send [02:48:44]OFD Sender: No OFD packet to send [02:48:49]OFD Sender: No OFD packet to send [02:48:54]OFD Sender: No OFD packet to send [02:48:59]OFD Sender: No OFD packet to send [02:49:04]OFD Sender: No OFD packet to send [02:49:09]OFD Sender: No OFD packet to send [02:49:14]OFD Sender: No OFD packet to send [02:49:19]OFD Sender: No OFD packet to send [02:49:24]OFD Sender: No OFD packet to send [02:49:29]OFD Sender: No OFD packet to send [02:49:34]OFD Sender: No OFD packet to send [02:49:39]OFD Sender: No OFD packet to send [02:49:44]OFD Sender: No OFD packet to send [02:49:49]OFD Sender: No OFD packet to send [02:49:54]OFD Sender: No OFD packet to send [02:49:59]OFD Sender: No OFD packet to send [02:50:04]OFD Sender: No OFD packet to send [02:50:09]OFD Sender: No OFD packet to send [02:50:14]OFD Sender: No OFD packet to send [02:50:19]OFD Sender: No OFD packet to send [02:50:24]OFD Sender: No OFD packet to send [02:50:29]OFD Sender: No OFD packet to send [02:50:34]OFD Sender: No OFD packet to send [02:50:39]OFD Sender: No OFD packet to send [02:50:44]OFD Sender: No OFD packet to send [02:50:49]OFD Sender: No OFD packet to send [02:50:54]OFD Sender: No OFD packet to send [02:50:59]OFD Sender: No OFD packet to send [02:51:04]OFD Sender: No OFD packet to send [02:51:09]OFD Sender: No OFD packet to send [02:51:14]OFD Sender: No OFD packet to send [02:51:19]OFD Sender: No OFD packet to send [02:51:24]OFD Sender: No OFD packet to send [02:51:29]OFD Sender: No OFD packet to send [02:51:34]OFD Sender: No OFD packet to send [02:51:39]OFD Sender: No OFD packet to send [02:51:44]OFD Sender: No OFD packet to send [02:51:49]OFD Sender: No OFD packet to send [02:51:54]OFD Sender: No OFD packet to send [02:51:59]OFD Sender: No OFD packet to send [02:52:04]OFD Sender: No OFD packet to send [02:52:09]OFD Sender: No OFD packet to send [02:52:14]OFD Sender: No OFD packet to send [02:52:19]OFD Sender: No OFD packet to send [02:52:24]OFD Sender: No OFD packet to send [02:52:29]OFD Sender: No OFD packet to send [02:52:34]OFD Sender: No OFD packet to send [02:52:39]OFD Sender: No OFD packet to send [02:52:44]OFD Sender: No OFD packet to send [02:52:49]OFD Sender: No OFD packet to send [02:52:54]OFD Sender: No OFD packet to send [02:52:59]OFD Sender: No OFD packet to send [02:53:04]OFD Sender: No OFD packet to send [02:53:09]OFD Sender: No OFD packet to send [02:53:14]OFD Sender: No OFD packet to send [02:53:19]OFD Sender: No OFD packet to send [02:53:24]OFD Sender: No OFD packet to send [02:53:29]OFD Sender: No OFD packet to send [02:53:34]OFD Sender: No OFD packet to send [02:53:39]OFD Sender: No OFD packet to send [02:53:44]OFD Sender: No OFD packet to send [02:53:49]OFD Sender: No OFD packet to send [02:53:54]OFD Sender: No OFD packet to send [02:53:59]OFD Sender: No OFD packet to send [02:54:04]OFD Sender: No OFD packet to send [02:54:09]OFD Sender: No OFD packet to send [02:54:14]OFD Sender: No OFD packet to send [02:54:19]OFD Sender: No OFD packet to send [02:54:24]OFD Sender: No OFD packet to send [02:54:29]OFD Sender: No OFD packet to send [02:54:34]OFD Sender: No OFD packet to send [02:54:39]OFD Sender: No OFD packet to send [02:54:44]OFD Sender: No OFD packet to send [02:54:49]OFD Sender: No OFD packet to send [02:54:54]OFD Sender: No OFD packet to send [02:54:59]OFD Sender: No OFD packet to send [02:55:04]OFD Sender: No OFD packet to send [02:55:09]OFD Sender: No OFD packet to send [02:55:14]OFD Sender: No OFD packet to send [02:55:19]OFD Sender: No OFD packet to send [02:55:24]OFD Sender: No OFD packet to send [02:55:29]OFD Sender: No OFD packet to send [02:55:34]OFD Sender: No OFD packet to send [02:55:39]OFD Sender: No OFD packet to send [02:55:44]OFD Sender: No OFD packet to send [02:55:49]OFD Sender: No OFD packet to send [02:55:54]OFD Sender: No OFD packet to send [02:55:59]OFD Sender: No OFD packet to send [02:56:04]OFD Sender: No OFD packet to send [02:56:09]OFD Sender: No OFD packet to send [02:56:14]OFD Sender: No OFD packet to send [02:56:19]OFD Sender: No OFD packet to send [02:56:24]OFD Sender: No OFD packet to send [02:56:29]OFD Sender: No OFD packet to send [02:56:34]OFD Sender: No OFD packet to send [02:56:39]OFD Sender: No OFD packet to send [02:56:44]OFD Sender: No OFD packet to send [02:56:49]OFD Sender: No OFD packet to send [02:56:54]OFD Sender: No OFD packet to send [02:56:59]OFD Sender: No OFD packet to send [02:57:04]OFD Sender: No OFD packet to send [02:57:09]OFD Sender: No OFD packet to send [02:57:14]OFD Sender: No OFD packet to send [02:57:19]OFD Sender: No OFD packet to send [02:57:24]OFD Sender: No OFD packet to send [02:57:29]OFD Sender: No OFD packet to send [02:57:34]OFD Sender: No OFD packet to send [02:57:39]OFD Sender: No OFD packet to send [02:57:44]OFD Sender: No OFD packet to send [02:57:49]OFD Sender: No OFD packet to send [02:57:54]OFD Sender: No OFD packet to send [02:57:59]OFD Sender: No OFD packet to send [02:58:04]OFD Sender: No OFD packet to send [02:58:09]OFD Sender: No OFD packet to send [02:58:14]OFD Sender: No OFD packet to send [02:58:19]OFD Sender: No OFD packet to send [02:58:24]OFD Sender: No OFD packet to send [02:58:29]OFD Sender: No OFD packet to send [02:58:34]OFD Sender: No OFD packet to send [02:58:39]OFD Sender: No OFD packet to send [02:58:44]OFD Sender: No OFD packet to send [02:58:49]OFD Sender: No OFD packet to send [02:58:54]OFD Sender: No OFD packet to send [02:58:59]OFD Sender: No OFD packet to send [02:59:04]OFD Sender: No OFD packet to send [02:59:09]OFD Sender: No OFD packet to send [02:59:14]OFD Sender: No OFD packet to send [02:59:19]OFD Sender: No OFD packet to send [02:59:24]OFD Sender: No OFD packet to send [02:59:29]OFD Sender: No OFD packet to send [02:59:34]OFD Sender: No OFD packet to send [02:59:39]OFD Sender: No OFD packet to send [02:59:44]OFD Sender: No OFD packet to send [02:59:49]OFD Sender: No OFD packet to send